All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ducks.form.FormPlugin.ts Maven / Gradle / Ivy

The newest version!
import { ModelPrefix } from '../../core/datasource/const'
import { ValidationsKey } from '../../core/validation/types'

export const getDefaultState = () => ({
    datasource: null,
    dirty: false,
    fields: {},
    formName: null,
    modelPrefix: ModelPrefix.active,
    // Костыль для валидации фильтров
    validationKey: ValidationsKey.Validations,
})

export const getDefaultField = () => ({
    isInit: false,
    visible: true,
    visible_field: true,
    visible_set: true,
    disabled: false,
    disabled_field: false,
    disabled_set: false,
    filter: [],
    dependency: null,
    required: false,
    loading: false,
    touched: false,
    isActive: false,
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy