1
0
mirror of synced 2024-12-18 17:48:48 +03:00
Commit Graph

92 Commits

Author SHA1 Message Date
Zaytsev Kirill
0d2a5329db refactor: merge util removed due it's no longer required 2023-12-28 12:48:51 +04:00
Kirill Zaytsev
dfc6557bc6 feat: Components conststructors are exposed as external API, added TypeScript declarations 2023-12-28 12:48:51 +04: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
Zaytsev Kirill
1d785ec5eb fix: Fixed records & arrays detection 2021-09-20 21:47:37 +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
0cba9e56b3 test: Test logic refactor 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
7f864c7951 test: Tests logic refactor 2021-06-14 14:02:09 +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
e55ea0c410 test: Improved test for validation interruption & code style 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
c4a16c6fdf test: Imporved test for plugin install, fixed outdated components names 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
4cec18b1d7 test: Improved checking validation event & code style 2021-06-14 13:59:23 +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
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
98b5c0935d test: Restored remaining tests for form 2020-11-09 09:48:55 +03:00
1on
96a991f46f fix: Fixed registry.getNested for array of fields 2020-11-02 11:59:26 +03:00
Zaytsev Kirill
47f631e6ae test: Added tests for validation functions 2020-10-26 20:54:43 +03:00
Zaytsev Kirill
4251d46591 refactor!: rules & messages Formulario options renamed to validationRules & validationMessages 2020-10-26 17:03:24 +03:00
Zaytsev Kirill
3cc80f20da test: Removed checks for allErrors prop, replaced with checks for particular errors & violations 2020-10-26 00:51:19 +03:00
Zaytsev Kirill
7b5d38923f refactor!: errorBehavior renamed to validationBehavior 2020-10-26 00:43:09 +03:00
Zaytsev Kirill
3f5735299d refactor: Moved utils to separated files, code cleanup 2020-10-26 00:43:09 +03:00
Zaytsev Kirill
e814edf9fc refactor!: performValidation method renamed to runValidation 2020-10-26 00:43:09 +03:00
Zaytsev Kirill
b1e126a149 refactor!: Renamed validationMessages Formulario option to messages 2020-10-26 00:43:09 +03:00
Zaytsev Kirill
ea93863a05 feat!: Remove blur error behavior & blurHandler, validation logic refactor & cleanup 2020-10-26 00:43:09 +03:00
Zaytsev Kirill
3d31c461e6 feat!: formularioValue prop removed, prop value now used as model 2020-10-26 00:43:09 +03:00
Zaytsev Kirill
13362a703a test: Removed unnecessary slots 2020-10-22 17:23:45 +03:00
Zaytsev Kirill
9540e37226 test: Fixed tests for submit event 2020-10-22 17:16:49 +03:00
Zaytsev Kirill
cc5bb03bae chore!: Removed uploading functionality, dead code removals 2020-10-22 16:37:57 +03:00
Zaytsev Kirill
c85f3332eb fix: Getting validators
BREAKING CHANGE: Removed form registry
2020-10-22 13:46:35 +03:00
Zaytsev Kirill
467dca656b refactor: Validation logic refactor, additional typehints, removed dead code
BREAKING CHANGE: Plugin system removed
2020-10-22 10:59:47 +03:00
Zaytsev Kirill
6e0f9b3223 test: Rewritten grouping test without checking internal class FormSubmission 2020-10-22 10:52:01 +03:00
1on
06c79905a8 fix: Removed validation on field value change, when errorBehavior is not live 2020-10-21 10:57:58 +03:00
Zaytsev Kirill
bd53602f5e chore: Added changes from master 2020-10-19 13:45:32 +03:00
Zaytsev Kirill
54bf820824 chore: Additional typehints, Object/ObjectType replaced with Record<string, any> 2020-10-19 13:45:25 +03:00