1
Fork 0
Commit Graph

33 Commits

Author SHA1 Message Date
Conduitry 7616b07f8e remove workaround for missing event.relatedTarget 2022-09-16 12:25:36 -04:00
Conduitry 99662333e6 tweak readme 2022-09-11 21:12:09 -04:00
Conduitry 525407cb6d tweak some code comments 2022-09-10 10:25:52 -04:00
Conduitry 2f688744f2 enforce no parameter on action in types 2022-08-09 09:03:07 -04:00
Conduitry 6cbc2346c4 add initial types 2022-08-09 01:14:47 -04:00
Conduitry 0330ad5e12 some tiny adjustments 2022-07-30 10:26:00 -04:00
Conduitry 8e489ab1b6 make store value be validation message directly; do not expose .valid 2022-07-26 19:57:31 -04:00
Conduitry e3fdc88ee2 field -> validator 2022-07-26 19:43:58 -04:00
Conduitry 4bcfe70a5a svelte-tiny-validation -> svelte-tiny-validator 2022-07-26 19:16:41 -04:00
Conduitry 0e24074870 add some code comments 2022-07-26 12:33:03 -04:00
Conduitry adf7ed0a6f add readme note about falsy arguments in validate() and reset() 2022-07-26 12:08:58 -04:00
Conduitry 6bf9c2b587 format 2022-07-26 12:03:53 -04:00
Conduitry e876b949d9 add note about .set() to readme 2022-07-25 16:53:51 -04:00
Conduitry 97e740d679 just use `field()` instead of explicit `field(false)` in readme 2022-07-25 16:33:41 -04:00
Conduitry 52243e025a set message directly to writable field store, not value 2022-07-24 23:02:32 -04:00
Conduitry 6acf83078d add initial readme 2022-07-24 22:22:12 -04:00
Conduitry 7fadfaaee6 don't traverse DOM if messages are already enabled for this field 2022-07-24 22:01:16 -04:00
Conduitry 77f9154048 work around event.relatedTarget not being available sometimes 2022-07-24 08:54:40 -04:00
Conduitry 1e5699ef92 support ignoring falsy fields in reset() as well 2022-07-24 08:05:14 -04:00
Conduitry b10eed85cc add reset() convenient function 2022-07-24 07:58:31 -04:00
Conduitry a68aeef687 replace .reset() with .validate(false) 2022-07-24 07:57:53 -04:00
Conduitry 455a86b63b add .reset() 2022-07-23 22:30:53 -04:00
Conduitry 8040241d6b skip falsy fields in validate() 2022-07-23 10:34:11 -04:00
Conduitry 4cc1c0afe9 rework how field values are passed in 2022-07-23 10:33:27 -04:00
Conduitry f59c82dfef handle multiple action instances 2022-07-23 10:05:40 -04:00
Conduitry 2ac0771eb7 return validity boolean from .validate() 2022-07-23 09:39:14 -04:00
Conduitry f912c2c7b1 only trigger validation on focusing out of given element 2022-07-22 19:59:39 -04:00
Conduitry 36f7fb9ad2 add chill mode 2022-07-22 18:54:47 -04:00
Conduitry 83a14fb6d5 don't mutate validity store value 2022-07-22 18:45:22 -04:00
Conduitry 93ae65f384 make .validate() prepare fields that do not currently exist 2022-07-22 17:19:49 -04:00
Conduitry 00460240fa add blur event handler during capture phase 2022-07-22 07:56:05 -04:00
Conduitry 98dbe93f1f add initial version 2022-07-21 22:20:13 -04:00
Conduitry 836c15d320 initial commit 2022-07-21 22:17:55 -04:00