- mobx5 support
- Introduced observable
type
field prop - Removed
label
fallback to fieldname
- fix: #432 #415 #355 #347 #425
- Added
struct
constructor prop - Reimplemented add() method
- mobx4 support
- Validate with different props.
- Reimplemented Event Hooks & Handlers.
- Introduced new Event Hooks.
- Introduced
input
/output
props (converters). - Introduced
hooks
Field prop and class function. - Introduced
handlers
Field prop and class function. - Introduced
validatedWith
Field prop. - Introduced
validatedValue
Field computed. - Option
alwaysShowDefaultError
removed. - Option
uniqueId
(Custom Function) added. - Option
validateDisabledFields
added. - Computed
hasIncrementalNestedFields
renamed tohasIncrementalKeys
. - No more manually wire
onDrop
toonChange
.
- Option
validateOnBlur
added. - Option
validateOnChange
isfalse
by default. - Option
showErrorsOnUpdate
renamedshowErrorsOnChange
. - Option
showErrorsOnChange
istrue
by default. - Option
retrieveAlsoDisabledFields
renamedretrieveOnlyEnabledFields
. - Option
retrieveOnlyEnabledFields
isfalse
by default. - Option
validationDebounceOptions
default is{ leading: false, trailing: true }
options
Field prop renamedextra
.options
Field prop handle individual Field Options.- Field Options will fallback on Form Options.
- Implemented input file
type
handling. - Introduced
onDrop
Field Event Handler. - Introduced
onDrop
Field Hook. - Introduced
files
Field prop. - Introduced
resetting
&&clearing
computed. - Dropzone support.
- Ability to pass
onChange
&onToggle
in constructor.
- New
onClear
&onReset
Form & Fields Hooks. - Introduced
retrieveAlsoDisabledFields
option. observe
/intercept
now supports Form props.changed
&touched
are now false afterclear
/reset
.- Fixed unified mode
initial
prop handling.
- Event Hooks deprecated.
- Method
forEach()
renamedeach()
. - Refactored & semplified
map()
. - Introduced
has()
method. - Introduced Form
showErrors()
method. - Introduced
size
computed prop. - Prop
validate
renamedvalidators
for consistency. - Fixed empty nested array element (index 0 no more added).
focus
computed renamedfocused
.- Introduced
autoFocus
input support. - Introduced Field
focus()
method.
- Introduced
retrieveOnlyDirtyValues
option
- Introduced
extra
data
showErrors
onField
isfalse
by default.showErrors
onvalidate()
isfalse
by default.- Introduced new showErrors options.
showErrorsOnUpdate
is changed tofalse
by default.showErrorsOnBlur
is nowtrue
by default.- Introduced new
observeShowErrors()
Field method. - Introduced
debouncedValidation
onsubmit
.
- Auto invalidate
onSubmit
>onError
if defaultGenericError is defined. - Validation Handlers supports Promises.
- Introduced
submitting
prop - Introduced
submitThrowsError
. option.
- Introduced Sub-Form Submission.
- Register
onSubmit
callbacks with constructor. validate()
resolves to object (not boolean).- Fixed Single Field Validation.
- Introduced Interceptors.
dispose()
API changed.
- Introduced
debouncedValidation
. - Introduced Form & Field
validating
mobx 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).
loadingMessage
option 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-form
tomobx-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