Skip to content

Releases: colinaut/alpinejs-plugin-simple-validate

v1.5.6

25 Jul 10:51
Compare
Choose a tag to compare
  • refactor: improved data magic function and some code cleanup fc87113
  • fix: checkbox array 0e50aef
  • fix: missed 'submit' type in fieldSelector isField 814012b

v1.5.5...v1.5.6

v1.5.5

24 Jul 21:41
Compare
Choose a tag to compare
  • fix: improved number validation c2535f3
  • feat: added stepped form example f719fb2

v1.5.4...v1.5.5

v1.5.4

24 Jul 03:05
Compare
Choose a tag to compare
  • fix: fixed issue with isComplete() 0ce6ef8

v1.5.3...v1.5.4

v1.5.3

24 Jul 02:40
Compare
Choose a tag to compare
  • refactor: smaller and fixed a small issue when getForm is given bad data 5f9554e
  • docs: readme fix 0c6ac5f

v1.5.2...v1.5.3

v1.5.2

24 Jul 00:02
Compare
Choose a tag to compare
  • Form id no longer required since formData references the form node itself. Magic formData functions still work with id but $refs is now recommended
  • Fieldsets are detected when you use x-validate on form <form>
  • $validate.isComplete() can be used on either the form or individual fieldsets.

v1.5.1...v1.5.2

v1.5.1

23 Jul 08:07
Compare
Choose a tag to compare

Somehow a bug got in 1.5.0 sorry

v1.5.0...v1.5.1

v1.5.0

23 Jul 01:42
Compare
Choose a tag to compare

I've completely refactored this plugin. It's now simpler to use then before and has some new functionality:

  • You only need to add x-validate to the <form> element to get basic validation functionality and reactive formData!
  • It still works if you only want to add x-validate to the fields themselves!
  • It now also automatically includes group validation for groups of checkboxes and radio buttons!
  • There are a few new UI modifiers.

It's still generally backwards compatible with a handful of small breaking changes:

  • x-validate.checked isn't needed since required now works on checkboxes.
  • Date format modifiers are renamed (see Directives below).
  • The modifier 'phone' is now 'tel' in keeping with the input type.

v1.4.1...v1.5.0

v1.4.1

20 Jul 01:10
Compare
Choose a tag to compare

Small Feature Addition:

  • added $validate.submit function used on form element @submit="$validate.submit" to validate before allowing submit

v1.4.0...v1.4.1

v1.4.0

19 Jul 22:16
Compare
Choose a tag to compare

New Features:

  • Added reactive formData
    • $validate.isFormComplete('formId') returns true or false depending on if every form field is validated or not
    • $validate.formData('formId') returns an array of form data {name,value,valid}
  • Added input modifier to force validation on 'input' event from get go
  • Added additional examples

v1.3.3...v1.4.0

v1.3.3

15 Jul 14:17
Compare
Choose a tag to compare
  • fix: broken function with not required f55eb7d

v1.3.2...v1.3.3