1
0
mirror of synced 2024-11-22 21:36:04 +03:00
Commit Graph

218 Commits

Author SHA1 Message Date
Zaytsev Kirill
da56b04213 fix: Fixed toString calls in validators 2021-11-11 11:28:12 +03:00
Zaytsev Kirill
67dba981a1 fix: Blob objects are no longer cloned 2021-10-21 12:45:43 +03:00
Zaytsev Kirill
d39ca17e45 feat!: Added property "unregisterBehavior" to FormularioField to control value unset behavior on field component removal
Defaults to "none" which means value will not be unset and path will not be remove
2021-09-30 12:33:54 +03:00
Kruglov Kirill
5d9991e880
Merge pull request #34 from cmath10/formulario-field-html-tag
feat: Possibility to change html tag used by FormularioField
2021-09-29 11:37:49 +03:00
Zaytsev Kirill
c7d3e833a4 feat: Possibility to change html tag used by FormularioField 2021-09-29 11:15:32 +03:00
Zaytsev Kirill
1d785ec5eb fix: Fixed records & arrays detection 2021-09-20 21:47:37 +03:00
1on
1023ae2fc1 fix: Url validator now allows empty value 2021-08-03 10:52:10 +03:00
Zaytsev Kirill
ea54f0a800 chore: Removed unused type declaration 2021-06-15 11:14:04 +03:00
Zaytsev Kirill
b37040d2d3 refactor: Deep cloning of state, deep equal checker 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
7c2a9e8110 feat!: Validation event payload property "name" renamed to "path" 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
a1476d9986 refactor: State management logic & tests 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
9868d99c19 chore: Form state management refactor preparations 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
343bdb16cb refactor: Improved logic of clone utility 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
fd780cd585 feat: Added possibility to run / reset form validation via $formulario 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
6612d8a5f9 refactor!: FormularioFieldGroup - isArrayItem prop no longer required, replaced with integer name value detection 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
b4ab3404a4 fix: Got rid of redundant input events 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
b1c2ee9056 chore: clone logic refactor preparations & typehinting 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
320df96b96 test: Tests logic refactor, typehinting improvements 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
9a344bf8b5 feat!: FormularioField - individual field errors are always presumed as a string array 2021-06-14 14:02:10 +03:00
Zaytsev Kirill
aee0dc977a feat: FormularioForm - added ::runValidation() method to run entire form validation manually and return all form violations 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
4e05844e73 refactor!: FormularioForm - renamed prop errors to fieldsErrors, some internal renamings; tests semantic improvements 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
4c3274e621 refactor: Simplified logic of field components registry, moved value set logic from registry to form component 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
8144c27c69 refactor!: FormularioForm - renamed formularioValue into state 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
735fa3f126 chore!: FormularioField - removed formulario-input class from root element 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
6afe5f0a08 refactor: Got rid of error observer to push errors into fields 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
7aca27a010 refactor: Typehinting improvals, moved registry class, improved logic of shallow equal checker 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
e6271bb069 refactor: moved isScalar to new file, improved typehinting 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
013931fbfc feat: Renamed FormularioInput => FormularioField, FormularioGrouping => FormularioFieldGroup, old names are preserved in plugin install method for compatibility 2021-06-14 14:02:09 +03:00
Zaytsev Kirill
6a86d1f7b7 style: Rearranged imports 2021-06-14 13:59:23 +03:00
Zaytsev Kirill
cb2f350edf chore: Fixed description for registry forEach method 2021-06-14 13:59:23 +03:00
Zaytsev Kirill
5547cb5b87 chore: Improved typehinting 2021-06-14 13:59:23 +03:00
1on
ed0f3aaeac fix: fixed removing array item in form data 2020-11-16 17:42:26 +03:00
Zaytsev Kirill
7a6fc72839 fix: Typehints for modelGetConverter / modelSetConverter 2020-11-13 13:01:22 +03:00
1on
61bc90bc39 feat: custom model setter and getter props are added for FormularioInput 2020-11-13 12:13:55 +03:00
1on
75ee75f311 fix: Fixed resetting field`s local errors when form errors prop cleared 2020-11-12 10:05:56 +03:00
Zaytsev Kirill
849738f0d0 refactor: Logic optimization 2020-11-10 17:27:14 +03:00
Zaytsev Kirill
076e140452 chore: Typehints fixes 2020-11-10 09:53:13 +03:00
Zaytsev Kirill
602af0a22d chore: Typehints fixes 2020-11-10 09:47:40 +03:00
Zaytsev Kirill
b567c115c9 chore: Removed unnecessary comment 2020-11-10 09:46:04 +03:00
Zaytsev Kirill
0bca0873a6 style: Code style 2020-11-09 09:52:04 +03:00
Zaytsev Kirill
c82c8de5db chore: Typehints, rewritten comments in @/validation/messages 2020-11-09 09:52:04 +03:00
Zaytsev Kirill
62e65687d1 chore: Types renames 2020-11-09 09:52:04 +03:00
Zaytsev Kirill
8e3bacab3c refactor: Got rid of promises in default validation rules fns, rewritten rules tests 2020-11-09 09:52:04 +03:00
Zaytsev Kirill
a0345a605e refactor: Moved install method out of Formulario class 2020-11-09 09:52:04 +03:00
Zaytsev Kirill
904119deb8 refactor: Renamed register() method to add(), old add() method removed 2020-11-09 09:48:55 +03:00
Zaytsev Kirill
edf1fc6340 fix: cloning dates in clone util 2020-11-09 09:48:55 +03:00
1on
8f4081357d fix: Fixed setNested when removed field from array of fields 2020-11-02 11:59:27 +03:00
1on
96a991f46f fix: Fixed registry.getNested for array of fields 2020-11-02 11:59:26 +03:00
1on
9ae0e4e859 fix: added deep option for watch on mergedFieldErrors 2020-10-28 16:02:23 +03:00
Zaytsev Kirill
4251d46591 refactor!: rules & messages Formulario options renamed to validationRules & validationMessages 2020-10-26 17:03:24 +03:00