- mobx5 support
- Introduced observable
typefield prop - Removed
labelfallback to fieldname - fix: #432 #415 #355 #347 #425
- Added
structconstructor prop - Reimplemented add() method
- mobx4 support
- Validate with different props.
- Reimplemented Event Hooks & Handlers.
- Introduced new Event Hooks.
- Introduced
input/outputprops (converters). - Introduced
hooksField prop and class function. - Introduced
handlersField prop and class function. - Introduced
validatedWithField prop. - Introduced
validatedValueField computed. - Option
alwaysShowDefaultErrorremoved. - Option
uniqueId(Custom Function) added. - Option
validateDisabledFieldsadded. - Computed
hasIncrementalNestedFieldsrenamed tohasIncrementalKeys. - No more manually wire
onDroptoonChange.
- Option
validateOnBluradded. - Option
validateOnChangeisfalseby default. - Option
showErrorsOnUpdaterenamedshowErrorsOnChange. - Option
showErrorsOnChangeistrueby default. - Option
retrieveAlsoDisabledFieldsrenamedretrieveOnlyEnabledFields. - Option
retrieveOnlyEnabledFieldsisfalseby default. - Option
validationDebounceOptionsdefault is{ leading: false, trailing: true } optionsField prop renamedextra.optionsField prop handle individual Field Options.- Field Options will fallback on Form Options.
- Implemented input file
typehandling. - Introduced
onDropField Event Handler. - Introduced
onDropField Hook. - Introduced
filesField prop. - Introduced
resetting&&clearingcomputed. - Dropzone support.
- Ability to pass
onChange&onTogglein constructor.
- New
onClear&onResetForm & Fields Hooks. - Introduced
retrieveAlsoDisabledFieldsoption. observe/interceptnow supports Form props.changed&touchedare now false afterclear/reset.- Fixed unified mode
initialprop handling.
- Event Hooks deprecated.
- Method
forEach()renamedeach(). - Refactored & semplified
map(). - Introduced
has()method. - Introduced Form
showErrors()method. - Introduced
sizecomputed prop. - Prop
validaterenamedvalidatorsfor consistency. - Fixed empty nested array element (index 0 no more added).
focuscomputed renamedfocused.- Introduced
autoFocusinput support. - Introduced Field
focus()method.
- Introduced
retrieveOnlyDirtyValuesoption
- Introduced
extradata
showErrorsonFieldisfalseby default.showErrorsonvalidate()isfalseby default.- Introduced new showErrors options.
showErrorsOnUpdateis changed tofalseby default.showErrorsOnBluris nowtrueby default.- Introduced new
observeShowErrors()Field method. - Introduced
debouncedValidationonsubmit.
- Auto invalidate
onSubmit>onErrorif defaultGenericError is defined. - Validation Handlers supports Promises.
- Introduced
submittingprop - Introduced
submitThrowsError. option.
- Introduced Sub-Form Submission.
- Register
onSubmitcallbacks with constructor. validate()resolves to object (not boolean).- Fixed Single Field Validation.
- Introduced Interceptors.
dispose()API changed.
- Introduced
debouncedValidation. - Introduced Form & Field
validatingmobx computed (async check). - Events Hooks: returned Form instance (was a Field instance).
- Fixed Async error state (removed
loadingMessage) - Fixed Async "validating..." Message (null as default).
loadingMessageoption removed.
- Introduced Observers.
- Introduced Converters (parse & format).
- Better Array Handling.
- Optional
submit()onSuccess/onError callbacks. - Fixed Empty Array Handling in Field Container.
- Removed Initial Array element "0" (no more del(0)).
- Ability to pass 'plugins' with plugins() method
- Ability to pass 'options' with options() method
- Ability to pass 'options' as fields prop
- Ability to pass 'bindings' to Form constructor
- Form 'options' moved on the second argument of the Form constructor
- Form 'plugins' moved on the second argument of the Form constructor
- Updated dependencies.
- Code refactoring & optimization.
- Reimplemented del(), observe(), validate().
- Introduced field computed validators().
- Introduced form computed validating().
- Introduced alwaysShowDefaultError option.
- Introduced setup() method.
- Introduced "disabled" computed prop
- Introduced Fields Props Bindings
- Introduced initial props: types, bindings.
- Introduced field props: type, bindings.
- Introduced $try helper for bindings.
- Allow add() to include initial value
- Allow add() to assign custom field key
- Introduced Field invalidate() method
- Introduced Field placeholder
- Introduced unique Field ID
- Introduced autoParseNumbers option
- Extensible Field
- Computed Deep Check
- Nested Fields
- Nested Validation
- MobX as peer depdendency
- Lodash Cherry Pick
- Fixed #74 (validateOnChange option)
- Enhanced events handlers
- Added validateOnChange, strictUpdate, showErrorsOnUpdate options
- Define Fields Properties and Validators Separately
- Define fields as Array of Objects
- Added field set(prop, val) for edit props
- Added form onInit() event
- Added form options() get/set
- Bulk update() form properties
- Fixed some documentation errors
- Enabled VJF enhancement
- Support for React Select
- Validation Plugins
- Multiple Validation Styles
- Support for Async Validation
- Support for Material UI, React Widgets
- Package name changed from
mobx-ajv-formtomobx-react-form
- Decoupled validator from fields
- Validation using mobx observe on field $value
- Display errors of related fields
- Custom Validation Functions
- Support for v5 json schema rules
- Updated constructor with single object
- Custom Validation Keywords
- Created API Documentation
- Added methods: isDirty();
- Renamed computed values: valid to isValid
- Added some tests
- Added silent mode
- Updated methods: validate(); clear(); reset();
- Clear genericErrorMessage on clear/reset
- Added methods: reset();
- Updated methods: clear();
- Fixed UMD build external libs
- Added UMD build/support
- Updated README.md
- First Release