🐛 Fixes
- cancel delayed/on-going validation after calling
reset()
#1727 changed
flag was not in sync correctly inValidationProvider
slot scope.- Fix validator.reset not respecting vmId when clearing errors (#1714) (#1716) thanks to @jcupps
- Directive rules now take precendence over inferred rules #1706
🛠 Enhancements
- Validation Components are now added to TS typings (#1715) thanks to @cexbrayat
mapFields
helper is now added to TS typings (#1713) thanks to @cexbrayaterrors
andfields
injections are now added to Vue Components TS typings #1704 (#1710) thanks to @cexbrayatValidator
Constructor options are marked as optional in TS typings thanks to @sebastianks- Inferred rules are now disabled by default and can be enabled by setting
validity
option totrue
. #1717 - Fix initial Undefined values validation in
ValidationProvider
. #1719 - Added
validate
method in ValidationProvider slot scope which allows validating non v-model bound inputs and advanced handling over validation events. - Added
reset
method in ValidationProvider slot scope for template-triggered resets. - Added
validate
method inValidationObserver
with a Promise-like interface to chain methods after successful validation. - Added
reset
method inValidationObserver
for template-triggered form resets. ValidationObserver
no longer requires a scoped-slot to be present, this is useful if you are only interested in the observerref
to trigger validations and resets and not interested in the slot-scope data (nothing in the template changes based on the form state).
As usual, there are multiple localization enhancements in this release as well.