Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vuelidate-error-extractor

dobromir-hristov13.9kMIT2.4.1

Helps showing vuelidate error messages from translation files.

plugin, vue, vuelidate, vuelidate-error-extractor, foundation, bootstrap, vuejs

readme

Vuelidate-error-extractor logo

Vuelidate Error Extractor

Vuelidate-error-extractor makes error message display from vuelidate a breeze. Be it for a single form element or all displaying all the errors in a form.

Key features

  • :rocket: Easy to use
  • :boom: Flexible - can be tailored to fit your needs
  • :fire: Optional templates - yey mixins and slots!!!
  • :punch: No extra styling mucking your own
  • :muscle: Tested

Error messages can be styled to fit either Foundation 6, Bootstrap 3 and Bootstrap 4 styles out of the box, or can be totally customized via your own custom templates.

Vuelidate-error-extractor is also able to work with vue-i18n or any vue translation plugin as long as it exposes a $t function to the Vue prototype. We also support predefining custom validation messages for all components and overriding them per component.

Example

See the Pen Vuelidate Error extractor Usage Example

Upgrade Guide

Version 2 added some breaking changes. Instead of reaching into templates directly for the predefined templates, you need to go into either templates.singleErrorExtractor or templates.multiErrorExtractor. Everything else is backwards compatible.

import VuelidateErrorExtractor, { templates } from 'vuelidate-error-extractor'
Vue.use(VuelidateErrorExtractor, {
  template: templates.singleErrorExtractor.foundaton6
})

Documentation

Documentation and examples can be found at http://dobromir-hristov.github.io/vuelidate-error-extractor/

Changelog

Detailed changes for each release are documented in the CHANGELOG.md.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.4.1 (2019-12-30)

2.4.0 (2019-03-29)

Bug Fixes

  • revamp the documentation (4c20c2b)

Features

  • allow passing path to translation as attribute in i18n mode (0a588b1)

2.3.1 (2019-01-28)

Bug Fixes

  • passing zero as a parameter (62ac854)

2.3.0 (2018-12-26)

Bug Fixes

  • fix issue with using wrong validator param key. (6c71274)
  • Make Foundation 6 template default error field element a div (59b1e60)

Features

  • allow overriding i18n validation messages on FormWrapper, MultiErrorExtractor and SingleErrorExtractor components. (c6d9012)

2.2.3 (2018-11-12)

2.2.2 (2018-07-29)

Bug Fixes

  • fix multiErrorExtractor hasErrors property (1c2a55f)
  • fix travis lint command (426ab9d)
  • rename travis config file (1448de3)
  • return null if not dirty on isValid computed property (df15584)

2.2.1 (2018-07-25)

2.2.0 (2018-07-25)

Bug Fixes

  • Add Docs for Nested object validation using $each (60e8e21)

Features

  • add ability to walk through nested $each declarations. (2821014)

2.1.1 (2018-07-18)

Bug Fixes

  • add bootstrap4 to UMD generated files (2cd4381)

2.1.0 (2018-07-18)

Features

  • Add boostrap4 single and multi error templates. (39e185d)

2.0.0 (2018-07-15)

Bug Fixes

  • move docs to docs-source. (b1cff93)
  • set proper vuepress base (f181a10)

2.0.0-beta.0 (2018-07-12)

Features

  • Add formWrapper to provide/inject validator data into error-extractors. (69df4ec)
  • Add multiErrorExtractor. Almost complete rewrite of the plugin. (2c041dd)

BREAKING CHANGES

  • template structure changed. Rename messageExtractorMixin to single-error-extractor-mixin.

1.3.1 (2018-04-02)

1.3.0 (2017-12-05)

Features

  • add attribute prop to use instead of the label (7fe6a56)

1.2.1 (2017-10-10)

Bug Fixes

  • slot did not have a closing tag. (298db82)

1.2.0 (2017-10-10)

Bug Fixes

  • fix errors when trying to access messages that do not have props at all. (68e1555)

Features

  • support nested parameter dot notation and nested messages. (4db24ee)

1.1.0 (2017-10-10)

Features

  • support nested parameter dot notation and nested messages. (4db24ee)

1.0.3 (2017-08-11)

1.0.2 (2017-08-11)

1.0.1 (2017-08-10)

1.0.0 (2017-08-10)

Code Refactoring

  • rename elements export to templates (3cf936f)

BREAKING CHANGES

  • Changing the elements to templates is a breaking change.

0.0.1-alpha.0 (2017-08-10)