mobx-react-form
Version:
Reactive MobX Form State Management
98 lines (96 loc) • 4.34 kB
text/typescript
export enum OptionsEnum {
uniqueId = 'uniqueId',
fallback = 'fallback',
fallbackValue = 'fallbackValue',
defaultGenericError = 'defaultGenericError',
submitThrowsError = 'submitThrowsError',
showErrorsOnInit = 'showErrorsOnInit',
showErrorsOnSubmit = 'showErrorsOnSubmit',
showErrorsOnBlur = 'showErrorsOnBlur',
showErrorsOnChange = 'showErrorsOnChange',
showErrorsOnClear = 'showErrorsOnClear',
showErrorsOnReset = 'showErrorsOnReset',
validateOnInit = 'validateOnInit',
validateOnSubmit = 'validateOnSubmit',
validateOnBlur = 'validateOnBlur',
validateOnChange = 'validateOnChange',
validateOnChangeAfterInitialBlur = 'validateOnChangeAfterInitialBlur',
validateOnChangeAfterSubmit = 'validateOnChangeAfterSubmit',
validateDisabledFields = 'validateDisabledFields',
validateDeletedFields = 'validateDeletedFields',
validatePristineFields = 'validatePristineFields',
validateTrimmedValue = 'validateTrimmedValue',
validateOnClear = 'validateOnClear',
validateOnReset = 'validateOnReset',
strictSet = 'strictSet',
strictUpdate = 'strictUpdate',
strictDelete = 'strictDelete',
strictSelect = 'strictSelect',
softDelete = 'softDelete',
retrieveOnlyDirtyFieldsValues = 'retrieveOnlyDirtyFieldsValues',
retrieveOnlyEnabledFieldsValues = 'retrieveOnlyEnabledFieldsValues',
retrieveOnlyEnabledFieldsErrors = 'retrieveOnlyEnabledFieldsErrors',
retrieveNullifiedEmptyStrings = 'retrieveNullifiedEmptyStrings',
removeNullishValuesInArrays = 'removeNullishValuesInArrays',
preserveDeletedFieldsValues = 'preserveDeletedFieldsValues',
autoTrimValue = 'autoTrimValue',
autoParseNumbers = 'autoParseNumbers',
validationDebounceWait = 'validationDebounceWait',
validationDebounceOptions = 'validationDebounceOptions',
stopValidationOnError = 'stopValidationOnError',
validationPluginsOrder = 'validationPluginsOrder',
resetValidationBeforeValidate = 'resetValidationBeforeValidate',
applyInputConverterOnInit = 'applyInputConverterOnInit',
applyInputConverterOnSet = 'applyInputConverterOnSet',
applyInputConverterOnUpdate = 'applyInputConverterOnUpdate',
}
export interface OptionsModel {
[ ]?: Function;
[ ]?: boolean;
[ ]?: any;
[ ]?: null | string;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: boolean;
[ ]?: number;
[ ]?: {
leading?: boolean;
trailing?: boolean;
};
[ ]?: boolean;
[ ]?: undefined | string[];
[ ]?: boolean;
[ ]?: boolean,
[ ]?: boolean,
[ ]?: boolean,
}
export default OptionsModel;