1
0
mirror of synced 2024-11-25 14:56:03 +03:00
Commit Graph

103 Commits

Author SHA1 Message Date
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
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
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
12326a91fd Adds a new values prop to FormulateForm 2020-02-29 00:50:31 -05:00
Justin Schroeder
6ac21642fa Initial file upload tests 2020-02-27 23:39: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
Justin Schroeder
839f0936ed Fixes form submissions, and a bug that prevented value props from populating forms 2020-02-26 00:21:10 -05:00
Justin Schroeder
d7e3859951 Adds support for validation rules that are aware of other form elements 2020-02-25 17:32:40 -05:00
Justin Schroeder
778d6b8731 Makes value set the initial value of inputs 2020-01-31 22:50:18 -05:00
Justin Schroeder
4a53d17fc7 Adds support for buttons 2020-01-28 12:12:08 -05:00
Justin Schroeder
dd74fcb12e Fixes stray drag/drop on missed dropzones, allows removing of non uploaded files 2019-11-19 07:15:13 -05:00
Justin Schroeder
2d1c58f725 Adds faux uploader method and initial upload styling 2019-11-15 14:44:01 -05:00
Justin Schroeder
cb9349a6cf Adds new date format capability and associated tests 2019-11-14 01:00:56 -05:00
Justin Schroeder
ba24fc21e8 Adds default validation messages for all rule types 2019-11-13 16:10:17 -05:00
Justin Schroeder
e952e46aad Adds initial validation rules and support 2019-11-07 17:03:34 -05:00
Justin Schroeder
a53edaa342 Initial tests written for validation parsing and rules 2019-11-06 17:17:19 -05:00
Justin Schroeder
9522459600 Adds a internalFormModelProxy to FormulateForm to allow two way model bindings 2019-11-05 10:52:05 -05:00
Justin Schroeder
c736f818af Removes debugging artifacts for Travis CI troubleshooting 2019-11-01 21:03:01 -04:00
Justin Schroeder
4f250563fd Updated formualte to be capitalized 2019-11-01 17:12:27 -04:00
Justin Schroeder
2db5754c6f Sets node target to version 9 2019-11-01 16:21:16 -04:00
Justin Schroeder
616676d451 Removes the js transformer 2019-11-01 16:14:32 -04:00
Justin Schroeder
d812479c8b Revers to back using ../ as module import path 2019-11-01 16:08:18 -04:00
Justin Schroeder
4b85898462 Reverts to using esm.js 2019-11-01 16:01:42 -04:00
Justin Schroeder
a09ce24104 Adds js suffix to formulate module 2019-11-01 15:51:54 -04:00
Justin Schroeder
a30857fd2d Updates tests to use src alias 2019-11-01 15:45:53 -04:00
Justin Schroeder
7d12414914 Updates babel-jest transform pattern matching 2019-11-01 14:47:25 -04:00
Justin Schroeder
58822a86e6 Adds a workaround test for bug vuejs/vue-test-utils#1130 2019-10-31 10:24:18 -04:00
Justin Schroeder
7809cdd2e3 Adds form level data binding 2019-10-29 23:33:31 -04:00
Justin Schroeder
3ad166ac90 Adds full multi-option support for checkboxes and radios 2019-10-08 13:50:53 -04:00
Justin Schroeder
27bd2bda26 Initial commit of the version 2 rewrite 2019-10-07 10:24:30 -04:00