Zaytsev Kirill
91a97e4365
refactor: pendingValidation renamed to validationRun
2020-10-26 00:43:09 +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
89d99cccc7
chore: Code comments
2020-10-23 13:37:51 +03:00
Zaytsev Kirill
cd248b7678
refactor: Decrease of code block nesting
2020-10-23 13:24:27 +03:00
Zaytsev Kirill
25a4f5530f
chore: Dead code removal
2020-10-22 17:45:00 +03:00
Zaytsev Kirill
cc5bb03bae
chore!: Removed uploading functionality, dead code removals
2020-10-22 16:37:57 +03:00
Zaytsev Kirill
434b288a3c
fix: Validator groups enlargement, number validation rule
2020-10-22 14:20:50 +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
1on
ebbf10043b
fix: Fixed input event on data with nested objects
2020-10-21 10:58:00 +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
d1a0986ba4
fix: Typehint fixes
2020-10-20 17:41:28 +03:00
Zaytsev Kirill
ca292960ff
fix: Components names
2020-10-19 18:53:24 +03:00
Zaytsev Kirill
bd53602f5e
chore: Added changes from master
2020-10-19 13:45:32 +03:00
Zaytsev Kirill
578cb0f34b
chore: Added Grouping example to storybook, typehints fixes
2020-10-19 13:45:29 +03:00
Zaytsev Kirill
c2aa0cb4f1
chore: Added storybook, removed vue-i18n (was not in use)
2020-10-19 13:45:28 +03:00
Zaytsev Kirill
323fbf4bf4
chore: Rearranged functions in utils.ts, additional typehinting
2020-10-19 13:45:26 +03:00
Zaytsev Kirill
54bf820824
chore: Additional typehints, Object/ObjectType replaced with Record<string, any>
2020-10-19 13:45:25 +03:00
Zaytsev Kirill
a3eb14a745
fix: Nested fields assignment, classes computed prop removed, additional typehints
2020-10-19 13:45:24 +03:00
Zaytsev Kirill
35aff198ba
refactor: ValidatableData interface moved to validation/types
2020-10-19 13:45:23 +03:00
Zaytsev Kirill
f3410db883
refactor: ArrayType moved to common.type, dead code removal
2020-10-19 13:45:22 +03:00
Zaytsev Kirill
ec1035a9a0
refactor: Merge utility moved to a separated file
2020-10-19 13:45:20 +03:00
Zaytsev Kirill
c5bb8076e6
fix: Fixed build config
2020-10-19 13:45:19 +03:00
Zaytsev Kirill
0274ccd58a
refactor: Moved components options to components classes, additional typehints
2020-10-19 13:45:16 +03:00
Zaytsev Kirill
713a2bab51
chore: Build config fixes, modules paths correction
2020-10-19 13:45:15 +03:00
Zaytsev Kirill
45f29ff27a
refactor: Validation callbacks logic simplification, typehints
2020-10-19 13:45:13 +03:00
Zaytsev Kirill
63a7c88905
refactor: Rewritten onto typescript@3.9
2020-10-19 13:45:11 +03:00
Zaytsev Kirill
acb6357433
style: Addition of the eslint rules
2020-10-19 13:45:11 +03:00
1on
f53738dac3
Fixed shallowEqualObjects on Date
2020-10-16 10:52:54 +03:00
1on
ef285012fa
Removed field validation on created when errorBehavior is not live.
2020-10-16 10:52:54 +03:00
1on
613c3cd497
Fixed proxy actualization on value change
2020-09-16 13:49:45 +03:00
1on
88f7ab2638
Added pluralization for validation messages for min|max rules
2020-05-27 13:11:05 +03:00
1on
2b26ab85c7
email, startsWith and endsWith validators now return valid result if value is empty
2020-05-25 13:42:40 +03:00
1on
15ec7c7743
Errors now are an objects with fields message, rule and context. Fixed validation messages generation. Default validation messages generator added.
2020-05-25 13:41:38 +03:00
1on
83d36526c3
Library renamed to formulario
2020-05-22 14:22:56 +03:00
1on
4ce9d0ea2b
Refactored FormulateInputContent
2020-05-19 11:03:49 +03:00
Justin Schroeder
bed18767fb
Fixes bug that could cause the wrong repeatable group to be removed
2020-05-18 00:15:45 -04:00
Justin Schroeder
58ce5db539
Fixes help text bleeding through on box classification, adds full specimen sheet
2020-05-17 15:06:55 -04:00
Justin Schroeder
2d097fadb4
Adds support for new named form methods
2020-05-15 23:20:29 -04:00
Justin Schroeder
1d869936c8
Merge branch 'feature/error-behavior' into feature/grouping
2020-05-15 14:13:29 -04:00
Justin Schroeder
fbc54bd72b
Adds aria-describedby, rule bailing
2020-05-15 14:08:58 -04:00
Justin Schroeder
af5e23098d
Fixes issue #55 , removing form data on deregister
2020-05-14 16:45:29 -04:00
Justin Schroeder
fdcf7b3dbf
Updates vue-test-utils to 1.0.2
2020-05-14 16:08:54 -04:00
Justin Schroeder
1e403a7fe9
Adds slot component tests
2020-05-10 15:23:18 -04:00
Justin Schroeder
9f20c63f13
Adds default empty state for non repeatable groups
2020-05-10 10:24:38 -04:00
Justin Schroeder
a08163fba8
Adds index support to default context
2020-05-09 23:01:02 -04:00
Justin Schroeder
27272e6582
Updates build files
2020-05-08 23:55:43 -04:00
Justin Schroeder
07165d4d97
Adds testing and more rubust support for repeating groups
2020-05-08 17:25:52 -04:00
Justin Schroeder
8e3ca76685
Adds initial grouping tests and first functional, repeatable, modelable grouped fields
2020-05-06 23:33:58 -04:00
Justin Schroeder
1d5606c939
Adds build files
2020-05-04 16:02:15 -04:00
Justin Schroeder
637e5afe54
Fixes limitation of name values
2020-05-04 14:57:47 -04:00
Justin Schroeder
430f27f24c
Improved deep slot support
2020-05-04 14:50:32 -04:00
Justin Schroeder
48994e88e1
Update src/Formulate.js
...
Co-authored-by: Andrew Boyd <andrew@wearebraid.com>
2020-05-02 10:31:51 -04:00
Andrew Boyd
45711c581a
reset hasGivenName check to more explicit string matching.
2020-05-02 09:34:15 -04:00
Andrew Boyd
bdbf2afc8f
Update src/libs/context.js
...
Co-authored-by: Justin Schroeder <justin@wearebraid.com>
2020-05-02 09:30:26 -04:00
Justin Schroeder
84219e10ef
Removes unecessary imports
2020-05-01 22:44:30 -04:00
Justin Schroeder
aed01eb4ff
Adds support for deterministic ids
2020-05-01 15:58:40 -04:00
Andrew Boyd
70ebb846ce
passes name through to box elements and adds tests to check agaist unwanted props bleed
2020-05-01 15:42:47 -04:00
Andrew Boyd
59ee882863
adds name prop as pass-through attribute on certain input types
2020-05-01 14:57:30 -04:00
Chris
57a349fa3c
adding FormulateInput deregister functionality
2020-04-28 12:00:38 -04:00
Justin Schroeder
f7248d029c
Adds new registry class
2020-04-22 00:00:02 -04:00
Justin Schroeder
978a209e3e
Adds array support to cloneDeep
2020-04-19 14:34:25 -04:00
Justin Schroeder
8b25eee634
Basic grouping inheritance working
2020-04-18 23:57:43 -04:00
Justin Schroeder
105cae1a78
Adds initial grouping capability
2020-04-18 00:39:25 -04:00
Justin Schroeder
dfef74cd27
Removes all style block tags
2020-04-16 10:21:12 -04:00
Justin Schroeder
1e52dcc213
Adds initial work on groupings
2020-04-16 09:22:58 -04:00
Justin Schroeder
ada48ec31f
Fixes #60 and merges #61 .
...
- Bugfix: Fixes #60 , a bug that caused an evaluation loop when selects or box types used an empty array as the options prop. Adds supporting test cases.
- Merges in #61 which passes the form name to the error handler function. Adds supporting test cases.
2020-04-13 11:59:54 -04:00
Justin Schroeder
3d79733cba
INitial scoped slot expansion work
2020-04-06 09:29:04 -04:00
Justin Schroeder
b58ed70a5f
Adds help text slot
2020-03-29 00:46:39 -04:00
Justin Schroeder
2ad38933ee
Initial support for public scoped slot api
2020-03-29 00:32:07 -04:00
Justin Schroeder
486e477ebb
Adds support for validation and error-visibility events
...
* Adds validation events
Adds validation events on FormulateInput and FormulateForm — also refactors some of the context object to get ensure errors are available in context (for future scoped slot work that is relevant to this).
Co-authored-by: Christoph Wagner <christoph@cwagner.me>
2020-03-24 23:44:19 -04:00
Justin Schroeder
fa26a24fa7
Adds IE11 support
...
* Adds support for ie11
* Fixes IE11 support, still requires polyfills
* Adds build files
* Fixes issue in ie11 related to function.name
2020-03-20 15:40:47 -04:00
Justin Schroeder
5e46b40399
Updates between validation rule to support type forcing.
...
* Adds force to between
* Updates i18n to 1.3.2 with support for between force
2020-03-18 17:15:54 -04:00
Justin Schroeder
217b8b3ea9
Release 2.2.3
...
* Upgrades vue-formulate-i18n to 1.3.0 for Italian support
* Fixes issue #35 data-has-preview (#38 )
* Adds build files for 2.2.3
* Updates vue-formulate-i18n to 1.3.1
2020-03-16 11:02:31 -04:00
Justin Schroeder
289f0f262e
Adds tests for new submit error behavior
2020-03-11 22:01:18 -04:00
Justin Schroeder
57ac45be20
Adds title to filenames and better long-filename styling
2020-03-09 11:03:33 -04:00
Justin Schroeder
314b2b054e
Changes the sequence in which plugins are registered
2020-03-07 10:27:51 -05:00
Justin Schroeder
f9378cda25
Fixes issue where english was no being used as a plugin
2020-03-07 10:05:05 -05:00
Justin Schroeder
34de4ba6dc
Adds support for @braid/vue-formulate-i18n
...
* Adds support form FormulateError form errors
* Adds support for form-errors prop
Also includes tests for both named-form-errors as well, form-errors prop, positioning form errors with the <FormulateErrors /> component, and allowing multiple <FormulateErrors />
* Adds form error support, error handling, and supporting tests
* Remove unused util functions
* Adds german localization locales/de.js (#14 )
* Create de.js
* Added startsWith and endsWith
* adds build process for localization support, removes dist
* Adds danish localization
* fixes bug that resulted in validation failing if run more than once
Credit to @luan-nk-nguyen for discovering the bug
* Moves locales to vue-formulate-i18n
* Adds dist files for locales
* Adds vue-formulate-i18n 1.0.1
* Uses i18n 1.0.3
* Build files
* Fixes #19
* Update src/locales/README.md
Co-Authored-By: Andrew Boyd <andrew@wearebraid.com>
* changes v-html to v-text for error message output
credit to @skix123 for the bug report!
Co-authored-by: Andrew Boyd <andrew@wearebraid.com>
2020-03-07 09:03:59 -05:00
Justin Schroeder
adf8299a33
Feature/form errors ( #13 )
...
* Adds support form FormulateError form errors
* Adds support for form-errors prop
Also includes tests for both named-form-errors as well, form-errors prop, positioning form errors with the <FormulateErrors /> component, and allowing multiple <FormulateErrors />
* Adds form error support, error handling, and supporting tests
* Remove unused util functions
* fixes bug that resulted in validation failing if run more than once
Credit to @luan-nk-nguyen for discovering the bug
Co-authored-by: Andrew Boyd <andrew@wearebraid.com>
2020-03-06 16:10:25 -05:00
Justin Schroeder
4b36b9c4ba
Adds validation rules endsWith, startsWith and fixes box classification blur handler
...
* adds language definitions for new rules
* re-order rules file to order rule definitions alphabetically
* adds support for endsWith validation rule and converts snake_case rules to camelCase function calls
* adds support for startsWith field validation
* better en.js definitions for new validations
* adds tests for snakeCaseToCamelCase function
* coerces all validation messages and validation rules to be camelCase under the hood
* ensures that array syntax rules are properly converted internally to camelCase
* adds more robust tests for non-string type data for endsWith and startsWith validation rules
* adds support for words that start with numbers to snakeToCamel method
renames snakeCaseToCamelCase to snakeToCamel to reduce package size
* Reduces some property name lengths for byte savings
* Fixes bug that caused validation rules to not be displayed on blur for the box classification
Co-authored-by: Justin Schroeder <justin@wearebraid.com>
2020-03-04 13:45:37 -05:00
Andrew Boyd
4bfe43719d
Adds startsWith and endsWith validation rules ( #9 )
...
* adds language definitions for new rules
* re-order rules file to order rule definitions alphabetically
* adds support for endsWith validation rule and converts snake_case rules to camelCase function calls
* adds support for startsWith field validation
* better en.js definitions for new validations
* adds tests for snakeCaseToCamelCase function
2020-03-03 06:53:04 -05:00
Sasha Milenkovic
bd0af7d6cc
fixes classname typos in snow.css, formulatefiles component, and inputs.scss
2020-03-02 13:34:44 -05:00
Justin Schroeder
192a2cd93b
Fixes #6
2020-03-02 01:34:18 -05:00
Justin Schroeder
c6eae3493b
Fixes issues with upload field re-hydration and requried validation rule for FileUpload fields.
2020-03-02 00:35:56 -05:00
Justin Schroeder
cf9396e0d6
Fixes issue with grouped options hydrating initial values
2020-03-01 22:29:54 -05:00
Justin Schroeder
3fcfa759a9
Patches axios uploader behavior
2020-03-01 13:28:46 -05:00
Justin Schroeder
12326a91fd
Adds a new values prop to FormulateForm
2020-02-29 00:50:31 -05:00
Justin Schroeder
433ac5728e
Patches form uploads to proper swap server return back into the form data
2020-02-29 00:18:58 -05:00
Justin Schroeder
08d9cd0ff9
Makes rollup not use named exports
2020-02-28 23:30:43 -05:00
Luan Nguyen
1528d45405
Fix default validation rule language for max to be more accurate.
...
Correct “max” variable name in max validation rule.
2020-02-28 14:26:14 -05:00
Justin Schroeder
50ff66f86f
Improves minified browser build
2020-02-28 11:19:44 -05:00
Justin Schroeder
c0ffcab79f
Adds support for plugin architecture
2020-02-27 14:47:24 -05:00
Justin Schroeder
c31e896b86
Includes support for slider values, custom validation rules and messages
2020-02-27 01:18:51 -05:00
Justin Schroeder
3a0bc0c26e
Fixes bug that caused FormulateForm::submitForm to return an unresolving promise
2020-02-26 10:11:34 -05:00