ember-validated-form 5.3.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +141 -138
- package/README.md +3 -3
- package/addon/components/validated-button/button.hbs +17 -1
- package/addon/components/validated-button.hbs +19 -17
- package/addon/components/validated-button.js +9 -15
- package/addon/components/validated-form.js +7 -9
- package/addon/components/validated-input/error.hbs +15 -1
- package/addon/components/validated-input/hint.hbs +9 -1
- package/addon/components/validated-input/label.hbs +5 -1
- package/addon/components/validated-input/render/wrapper.hbs +5 -0
- package/addon/components/validated-input/render.hbs +21 -27
- package/addon/components/validated-input/render.js +7 -8
- package/addon/components/validated-input/types/checkbox-group.hbs +51 -13
- package/addon/components/validated-input/types/checkbox.hbs +41 -10
- package/addon/components/validated-input/types/input.hbs +16 -1
- package/addon/components/validated-input/types/input.js +0 -1
- package/addon/components/validated-input/types/radio-group.hbs +53 -13
- package/addon/components/validated-input/types/select.hbs +18 -3
- package/addon/components/validated-input/types/select.js +8 -28
- package/addon/components/validated-input/types/textarea.hbs +16 -1
- package/addon/components/validated-input.hbs +52 -54
- package/addon/components/validated-input.js +5 -5
- package/addon/helpers/class-list.js +9 -0
- package/addon/passed-or-default.js +17 -0
- package/app/components/validated-input/{-themes/uikit/hint.js → render/wrapper.js} +1 -1
- package/app/helpers/class-list.js +1 -0
- package/index.js +63 -0
- package/package.json +25 -23
- package/addon/-private/themed-component.js +0 -38
- package/addon/components/validated-button/-themes/bootstrap/button.js +0 -10
- package/addon/components/validated-button/-themes/uikit/button.js +0 -10
- package/addon/components/validated-button/button.js +0 -4
- package/addon/components/validated-input/-themes/bootstrap/error.js +0 -5
- package/addon/components/validated-input/-themes/bootstrap/hint.js +0 -5
- package/addon/components/validated-input/-themes/bootstrap/label.js +0 -3
- package/addon/components/validated-input/-themes/bootstrap/render.js +0 -5
- package/addon/components/validated-input/-themes/uikit/error.hbs +0 -4
- package/addon/components/validated-input/-themes/uikit/error.js +0 -3
- package/addon/components/validated-input/-themes/uikit/hint.js +0 -5
- package/addon/components/validated-input/-themes/uikit/label.js +0 -5
- package/addon/components/validated-input/-themes/uikit/render.hbs +0 -118
- package/addon/components/validated-input/-themes/uikit/render.js +0 -5
- package/addon/components/validated-input/hint.js +0 -4
- package/addon/components/validated-input/label.js +0 -4
- package/addon/components/validated-input/types/-themes/bootstrap/checkbox-group.hbs +0 -19
- package/addon/components/validated-input/types/-themes/bootstrap/checkbox-group.js +0 -3
- package/addon/components/validated-input/types/-themes/bootstrap/checkbox.hbs +0 -14
- package/addon/components/validated-input/types/-themes/bootstrap/checkbox.js +0 -3
- package/addon/components/validated-input/types/-themes/bootstrap/input.js +0 -13
- package/addon/components/validated-input/types/-themes/bootstrap/radio-group.hbs +0 -20
- package/addon/components/validated-input/types/-themes/bootstrap/radio-group.js +0 -3
- package/addon/components/validated-input/types/-themes/bootstrap/select.js +0 -13
- package/addon/components/validated-input/types/-themes/bootstrap/textarea.js +0 -13
- package/addon/components/validated-input/types/-themes/uikit/checkbox-group.hbs +0 -19
- package/addon/components/validated-input/types/-themes/uikit/checkbox-group.js +0 -3
- package/addon/components/validated-input/types/-themes/uikit/checkbox.hbs +0 -15
- package/addon/components/validated-input/types/-themes/uikit/checkbox.js +0 -3
- package/addon/components/validated-input/types/-themes/uikit/input.js +0 -13
- package/addon/components/validated-input/types/-themes/uikit/radio-group.hbs +0 -20
- package/addon/components/validated-input/types/-themes/uikit/radio-group.js +0 -3
- package/addon/components/validated-input/types/-themes/uikit/select.js +0 -13
- package/addon/components/validated-input/types/-themes/uikit/textarea.js +0 -13
- package/app/components/validated-button/-themes/bootstrap/button.js +0 -1
- package/app/components/validated-button/-themes/uikit/button.js +0 -1
- package/app/components/validated-input/-themes/bootstrap/error.js +0 -1
- package/app/components/validated-input/-themes/bootstrap/hint.js +0 -1
- package/app/components/validated-input/-themes/bootstrap/label.js +0 -1
- package/app/components/validated-input/-themes/bootstrap/render.js +0 -1
- package/app/components/validated-input/-themes/uikit/error.js +0 -1
- package/app/components/validated-input/-themes/uikit/label.js +0 -1
- package/app/components/validated-input/-themes/uikit/render.js +0 -1
- package/app/components/validated-input/types/-themes/bootstrap/checkbox-group.js +0 -1
- package/app/components/validated-input/types/-themes/bootstrap/checkbox.js +0 -1
- package/app/components/validated-input/types/-themes/bootstrap/input.js +0 -1
- package/app/components/validated-input/types/-themes/bootstrap/radio-group.js +0 -1
- package/app/components/validated-input/types/-themes/bootstrap/select.js +0 -1
- package/app/components/validated-input/types/-themes/bootstrap/textarea.js +0 -1
- package/app/components/validated-input/types/-themes/uikit/checkbox-group.js +0 -1
- package/app/components/validated-input/types/-themes/uikit/checkbox.js +0 -1
- package/app/components/validated-input/types/-themes/uikit/input.js +0 -1
- package/app/components/validated-input/types/-themes/uikit/radio-group.js +0 -1
- package/app/components/validated-input/types/-themes/uikit/select.js +0 -1
- package/app/components/validated-input/types/-themes/uikit/textarea.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,161 +1,164 @@
|
|
|
1
|
-
|
|
1
|
+
# [6.0.0](https://github.com/adfinis/ember-validated-form/compare/v5.3.1...v6.0.0) (2022-09-08)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### chore
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **deps:** update ember and drop node 12 support ([3f3fb67](https://github.com/adfinis/ember-validated-form/commit/3f3fb67e269b8e8e30f5939ccbbc58a01a2a6aa0))
|
|
7
|
+
* **select:** remove deprecated option includeBlank on selects ([3ef60b2](https://github.com/adfinis/ember-validated-form/commit/3ef60b21c1bc10259ab3865aacb5b3e2fdeda6bc))
|
|
7
8
|
|
|
8
|
-
# [5.3.0](https://github.com/adfinis-sygroup/ember-validated-form/compare/v5.2.2...v5.3.0) (2022-02-22)
|
|
9
9
|
|
|
10
|
+
### Features
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
* support embroider builds ([b0b0bde](https://github.com/adfinis/ember-validated-form/commit/b0b0bdea32a035fa499a9b0bae7ed245b4dd66f7))
|
|
12
13
|
|
|
13
|
-
* addon docs root url ([7d8151f](https://github.com/adfinis-sygroup/ember-validated-form/commit/7d8151fa9d854cdf9595f27347fa57652e58ef10))
|
|
14
|
-
* **blueprint:** add ember-truth-helpers to default blueprint ([a401589](https://github.com/adfinis-sygroup/ember-validated-form/commit/a401589dab6d013f5d659865927919346655295d))
|
|
15
|
-
* **deps:** move required deps to dependencies instead of devDependencies ([46629ce](https://github.com/adfinis-sygroup/ember-validated-form/commit/46629ceb48210bbc58898c299a9388ce7fa816ec))
|
|
16
|
-
* new link to docs ([c1073e5](https://github.com/adfinis-sygroup/ember-validated-form/commit/c1073e55e3a916ed393e33bcf4a045124c320967))
|
|
17
|
-
* **select:** pass prompt argument down to input component ([64a1377](https://github.com/adfinis-sygroup/ember-validated-form/commit/64a1377d64618fa880b332f8a693e1c7f1a321f7))
|
|
18
14
|
|
|
15
|
+
### BREAKING CHANGES
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
* **select:** Remove deprecated option `includeBlank` on select
|
|
18
|
+
inputs.
|
|
19
|
+
* This changes the global configuration for features,
|
|
20
|
+
themes and default components completely. For instructions on how to
|
|
21
|
+
migrate, check the migration to v6 guide.
|
|
22
|
+
* **deps:** Drop support for Node v12 and Ember LTS 3.24
|
|
23
|
+
|
|
24
|
+
## [5.3.1](https://github.com/adfinis/ember-validated-form/compare/v5.3.0...v5.3.1) (2022-09-02)
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
### Bug Fixes
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
- **select:** fix promptIsSelectable in combination with targetPath ([#853](https://github.com/adfinis/ember-validated-form/issues/853)) ([526d81f](https://github.com/adfinis/ember-validated-form/commit/526d81f25eb47f938fa2fa031d5f5e710a0386bf))
|
|
25
29
|
|
|
30
|
+
# [5.3.0](https://github.com/adfinis/ember-validated-form/compare/v5.2.2...v5.3.0) (2022-02-22)
|
|
26
31
|
|
|
27
32
|
### Bug Fixes
|
|
28
33
|
|
|
29
|
-
|
|
34
|
+
- addon docs root url ([7d8151f](https://github.com/adfinis/ember-validated-form/commit/7d8151fa9d854cdf9595f27347fa57652e58ef10))
|
|
35
|
+
- **blueprint:** add ember-truth-helpers to default blueprint ([a401589](https://github.com/adfinis/ember-validated-form/commit/a401589dab6d013f5d659865927919346655295d))
|
|
36
|
+
- **deps:** move required deps to dependencies instead of devDependencies ([46629ce](https://github.com/adfinis/ember-validated-form/commit/46629ceb48210bbc58898c299a9388ce7fa816ec))
|
|
37
|
+
- new link to docs ([c1073e5](https://github.com/adfinis/ember-validated-form/commit/c1073e55e3a916ed393e33bcf4a045124c320967))
|
|
38
|
+
- **select:** pass prompt argument down to input component ([64a1377](https://github.com/adfinis/ember-validated-form/commit/64a1377d64618fa880b332f8a693e1c7f1a321f7))
|
|
39
|
+
|
|
40
|
+
### Features
|
|
30
41
|
|
|
31
|
-
|
|
42
|
+
- pass attributes to input components ([dc0417d](https://github.com/adfinis/ember-validated-form/commit/dc0417d125fe4c20cb59b76531ae4f7391258259))
|
|
32
43
|
|
|
44
|
+
## [5.2.2](https://github.com/adfinis/ember-validated-form/compare/v5.2.1...v5.2.2) (2022-02-10)
|
|
33
45
|
|
|
34
46
|
### Bug Fixes
|
|
35
47
|
|
|
36
|
-
|
|
48
|
+
- select support for plain options ([#747](https://github.com/adfinis/ember-validated-form/issues/747)) ([a58e26d](https://github.com/adfinis/ember-validated-form/commit/a58e26ddcd46ec5328c3bb5351bafc7781eacdbd))
|
|
37
49
|
|
|
38
|
-
|
|
50
|
+
## [5.2.1](https://github.com/adfinis/ember-validated-form/compare/v5.2.0...v5.2.1) (2022-02-09)
|
|
39
51
|
|
|
52
|
+
### Bug Fixes
|
|
40
53
|
|
|
41
|
-
|
|
54
|
+
- respect scrollErrorIntoView for validated buttons as well ([#743](https://github.com/adfinis/ember-validated-form/issues/743)) ([fd6be2a](https://github.com/adfinis/ember-validated-form/commit/fd6be2a49c5f947bfcf5eb3f7ab61a23ac00064a))
|
|
42
55
|
|
|
43
|
-
|
|
44
|
-
* **validated-button:** add `triggerValidations` flag ([#721](https://github.com/adfinis-sygroup/ember-validated-form/issues/721)) ([765f5f4](https://github.com/adfinis-sygroup/ember-validated-form/commit/765f5f40c9d2e5ccfca7129fb701ff3bb0ed661e))
|
|
56
|
+
# [5.2.0](https://github.com/adfinis/ember-validated-form/compare/v5.1.1...v5.2.0) (2022-02-03)
|
|
45
57
|
|
|
46
|
-
|
|
58
|
+
### Features
|
|
47
59
|
|
|
60
|
+
- scroll first invalid element into view ([#733](https://github.com/adfinis/ember-validated-form/issues/733)) ([ae7c8b2](https://github.com/adfinis/ember-validated-form/commit/ae7c8b2b160307646adf90cd09a091effa549238))
|
|
61
|
+
- **validated-button:** add `triggerValidations` flag ([#721](https://github.com/adfinis/ember-validated-form/issues/721)) ([765f5f4](https://github.com/adfinis/ember-validated-form/commit/765f5f40c9d2e5ccfca7129fb701ff3bb0ed661e))
|
|
48
62
|
|
|
49
|
-
|
|
63
|
+
# [5.0.0](https://github.com/adfinis/ember-validated-form/compare/v4.1.0...v5.0.0) (2021-10-08)
|
|
50
64
|
|
|
51
|
-
|
|
52
|
-
* **ember:** remove support for ember 3.20 ([0cfebfc](https://github.com/adfinis-sygroup/ember-validated-form/commit/0cfebfcc5792a1df52093a972878af1617ec8100))
|
|
65
|
+
### chore
|
|
53
66
|
|
|
67
|
+
- **deps:** update ember and other dependencies ([41e099c](https://github.com/adfinis/ember-validated-form/commit/41e099c4da82135c562493e5b2a4f9420dca73c6))
|
|
68
|
+
- **ember:** remove support for ember 3.20 ([0cfebfc](https://github.com/adfinis/ember-validated-form/commit/0cfebfcc5792a1df52093a972878af1617ec8100))
|
|
54
69
|
|
|
55
70
|
### Features
|
|
56
71
|
|
|
57
|
-
|
|
58
|
-
|
|
72
|
+
- refactor all components to glimmer and use native classes ([cee7373](https://github.com/adfinis/ember-validated-form/commit/cee7373a3c0783a02fe00b5e510c41ba604403c2))
|
|
59
73
|
|
|
60
74
|
### BREAKING CHANGES
|
|
61
75
|
|
|
62
|
-
|
|
63
|
-
has a bug with autotracking.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
chance that this will break implementations if someone's extending the
|
|
67
|
-
components of this addon. Components that do need to be refactored to
|
|
68
|
-
glimmer.
|
|
69
|
-
|
|
70
|
-
# [4.1.0](https://github.com/adfinis-sygroup/ember-validated-form/compare/v4.0.1...v4.1.0) (2021-09-30)
|
|
76
|
+
- **ember:** Remove support for ember LTS 3.20 since that version
|
|
77
|
+
has a bug with autotracking.
|
|
78
|
+
- **deps:** Require `ember-auto-import` v2+
|
|
79
|
+
- While the public API won't change, there is a huge
|
|
80
|
+
chance that this will break implementations if someone's extending the
|
|
81
|
+
components of this addon. Components that do need to be refactored to
|
|
82
|
+
glimmer.
|
|
71
83
|
|
|
84
|
+
# [4.1.0](https://github.com/adfinis/ember-validated-form/compare/v4.0.1...v4.1.0) (2021-09-30)
|
|
72
85
|
|
|
73
86
|
### Bug Fixes
|
|
74
87
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
88
|
+
- **deps:** [security] bump handlebars from 4.7.6 to 4.7.7 ([#588](https://github.com/adfinis/ember-validated-form/issues/588)) ([d167207](https://github.com/adfinis/ember-validated-form/commit/d167207ee059bd9b968a08fb61f18f43dadab0ab))
|
|
89
|
+
- **deps:** [security] bump striptags from 3.1.1 to 3.2.0 ([#637](https://github.com/adfinis/ember-validated-form/issues/637)) ([3632f52](https://github.com/adfinis/ember-validated-form/commit/3632f52e7fa1fc6f0e17dd3365a74a80ceb92833))
|
|
90
|
+
- **deps:** [security] bump trim-newlines from 3.0.0 to 3.0.1 ([#634](https://github.com/adfinis/ember-validated-form/issues/634)) ([10e3974](https://github.com/adfinis/ember-validated-form/commit/10e397452b30a3af11a299c5bcdafd703d9b0c18))
|
|
91
|
+
- **deps:** [security] bump ws from 6.2.1 to 6.2.2 ([#624](https://github.com/adfinis/ember-validated-form/issues/624)) ([910ec64](https://github.com/adfinis/ember-validated-form/commit/910ec64b2f84562fd77a8be14094fd2f326d60b6))
|
|
92
|
+
- call on-update hook correctly ([#641](https://github.com/adfinis/ember-validated-form/issues/641)) ([b8688b6](https://github.com/adfinis/ember-validated-form/commit/b8688b6d9dedbd9096d34c3b236bf59efb045556))
|
|
81
93
|
|
|
82
94
|
### Features
|
|
83
95
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## [4.0.1](https://github.com/adfinis-sygroup/ember-validated-form/compare/v4.0.0...v4.0.1) (2021-05-21)
|
|
96
|
+
- checkbox groups ([#640](https://github.com/adfinis/ember-validated-form/issues/640)) ([9099ce8](https://github.com/adfinis/ember-validated-form/commit/9099ce81bbedc53c961653dca59c555d96ee9128))
|
|
87
97
|
|
|
98
|
+
## [4.0.1](https://github.com/adfinis/ember-validated-form/compare/v4.0.0...v4.0.1) (2021-05-21)
|
|
88
99
|
|
|
89
100
|
### Bug Fixes
|
|
90
101
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
# [4.0.0](https://github.com/adfinis-sygroup/ember-validated-form/compare/v3.0.3...v4.0.0) (2021-05-19)
|
|
102
|
+
- **validated-input:** use changeset.set if available to preserve state tracking on nested objects ([#609](https://github.com/adfinis/ember-validated-form/issues/609)) ([d3b92ee](https://github.com/adfinis/ember-validated-form/commit/d3b92ee5dfb7e0a6f4fbdb1899d9be34b67d1722))
|
|
94
103
|
|
|
104
|
+
# [4.0.0](https://github.com/adfinis/ember-validated-form/compare/v3.0.3...v4.0.0) (2021-05-19)
|
|
95
105
|
|
|
96
106
|
### Bug Fixes
|
|
97
107
|
|
|
98
|
-
|
|
99
|
-
|
|
108
|
+
- **validated-input:** rewrite to glimmer and support nested changesets ([#581](https://github.com/adfinis/ember-validated-form/issues/581)) ([2f3e7c5](https://github.com/adfinis/ember-validated-form/commit/2f3e7c5c9e13ad39ecba9358305cfcc4bac8f6b8))
|
|
100
109
|
|
|
101
110
|
### BREAKING CHANGES
|
|
102
111
|
|
|
103
|
-
|
|
112
|
+
- **validated-input:** This drops support for Ember LTS 3.16 and `ember-changeset` < 3.0.0 and `ember-changeset-validations` < 3.0.0
|
|
104
113
|
|
|
105
|
-
|
|
114
|
+
- refactor(validated-input): refactor dynamic component call to angle-brackets
|
|
106
115
|
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
- chore(\*): drop node v10 support
|
|
117
|
+
- **validated-input:** drop node v10 support since v10 has reached EOL
|
|
109
118
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
## [3.0.3](https://github.com/adfinis-sygroup/ember-validated-form/compare/v3.0.2...v3.0.3) (2021-04-15)
|
|
119
|
+
- fix(themed-component): convert array to string befor using in key path
|
|
113
120
|
|
|
121
|
+
## [3.0.3](https://github.com/adfinis/ember-validated-form/compare/v3.0.2...v3.0.3) (2021-04-15)
|
|
114
122
|
|
|
115
123
|
### Bug Fixes
|
|
116
124
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## [3.0.2](https://github.com/adfinis
|
|
131
|
-
|
|
125
|
+
- **deps:** [security] bump elliptic from 6.5.3 to 6.5.4 ([#538](https://github.com/adfinis/ember-validated-form/issues/538)) ([b36030c](https://github.com/adfinis/ember-validated-form/commit/b36030cd289485154fbaaefe914535cad7639043))
|
|
126
|
+
- **deps:** [security] bump ini from 1.3.5 to 1.3.8 ([#450](https://github.com/adfinis/ember-validated-form/issues/450)) ([97870d1](https://github.com/adfinis/ember-validated-form/commit/97870d152b12a273328fae257fb7399a067d7f9c))
|
|
127
|
+
- **deps:** [security] bump socket.io from 2.3.0 to 2.4.1 ([#474](https://github.com/adfinis/ember-validated-form/issues/474)) ([fe46f19](https://github.com/adfinis/ember-validated-form/commit/fe46f197439ff85170c92b6236f73c34f459d01f))
|
|
128
|
+
- **deps:** [security] bump y18n from 3.2.1 to 3.2.2 ([#560](https://github.com/adfinis/ember-validated-form/issues/560)) ([727144e](https://github.com/adfinis/ember-validated-form/commit/727144edc1920d323aee882240de695ca5f0e228))
|
|
129
|
+
- remove unused modules which lead to invalid imports ([#464](https://github.com/adfinis/ember-validated-form/issues/464)) ([d0405bf](https://github.com/adfinis/ember-validated-form/commit/d0405bf8733119394c953f73155349f65e2e5a88))
|
|
130
|
+
- **deps:** bump ember-auto-import from 1.10.1 to 1.11.2 ([#557](https://github.com/adfinis/ember-validated-form/issues/557)) ([f01f882](https://github.com/adfinis/ember-validated-form/commit/f01f8826fe6cddfa1d5776960fb773973a25545d))
|
|
131
|
+
- **deps:** bump ember-auto-import from 1.7.0 to 1.10.1 ([#456](https://github.com/adfinis/ember-validated-form/issues/456)) ([d4940d7](https://github.com/adfinis/ember-validated-form/commit/d4940d7cf6a367184dccd0e6677f3bdae6afdee8))
|
|
132
|
+
- **deps:** bump ember-cli-babel from 7.23.0 to 7.23.1 ([#473](https://github.com/adfinis/ember-validated-form/issues/473)) ([df7cec0](https://github.com/adfinis/ember-validated-form/commit/df7cec06c35b0665df6e177f495360a14572cb73))
|
|
133
|
+
- **deps:** bump ember-cli-babel from 7.23.1 to 7.26.3 ([#558](https://github.com/adfinis/ember-validated-form/issues/558)) ([6b0ee99](https://github.com/adfinis/ember-validated-form/commit/6b0ee99faf936d329378959c63303a18fd855912))
|
|
134
|
+
- **deps:** bump ember-cli-htmlbars from 5.6.4 to 5.7.1 ([#549](https://github.com/adfinis/ember-validated-form/issues/549)) ([e00e417](https://github.com/adfinis/ember-validated-form/commit/e00e41791039ce1b410f442900b8f079a42cae4d))
|
|
135
|
+
- **deps:** bump ember-one-way-select from 4.0.0 to 4.0.1 ([#565](https://github.com/adfinis/ember-validated-form/issues/565)) ([0564346](https://github.com/adfinis/ember-validated-form/commit/05643467b6edffc6e08eb067f77acdd79161ae5b))
|
|
136
|
+
- **deps:** bump uuid from 8.3.1 to 8.3.2 ([#439](https://github.com/adfinis/ember-validated-form/issues/439)) ([d72f013](https://github.com/adfinis/ember-validated-form/commit/d72f0130f5b34cda2bda3b82da5204403d026541))
|
|
137
|
+
|
|
138
|
+
## [3.0.2](https://github.com/adfinis/ember-validated-form/compare/v3.0.1...v3.0.2) (2020-11-20)
|
|
132
139
|
|
|
133
140
|
### Bug Fixes
|
|
134
141
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
## [3.0.1](https://github.com/adfinis-sygroup/ember-validated-form/compare/v3.0.0...v3.0.1) (2020-11-18)
|
|
142
|
+
- **intl:** remove unused translation that caused warnings in apps ([f20f233](https://github.com/adfinis/ember-validated-form/commit/f20f2332cbf8cf70711f292864e7a9dd2df8b995))
|
|
138
143
|
|
|
144
|
+
## [3.0.1](https://github.com/adfinis/ember-validated-form/compare/v3.0.0...v3.0.1) (2020-11-18)
|
|
139
145
|
|
|
140
146
|
### Bug Fixes
|
|
141
147
|
|
|
142
|
-
|
|
148
|
+
- **deps:** update ember-changeset and validations to v3+ ([a9d83e2](https://github.com/adfinis/ember-validated-form/commit/a9d83e208ad2599b0bd3847bc170179294d479ad))
|
|
143
149
|
|
|
144
|
-
# [3.0.0](https://github.com/adfinis
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* chore!: update dependencies (#392) ([2664399](https://github.com/adfinis-sygroup/ember-validated-form/commit/266439966050dee4ec6033f24828c84f5e0543b8)), closes [#392](https://github.com/adfinis-sygroup/ember-validated-form/issues/392)
|
|
150
|
+
# [3.0.0](https://github.com/adfinis/ember-validated-form/compare/v2.0.0...v3.0.0) (2020-11-06)
|
|
148
151
|
|
|
152
|
+
- chore!: update dependencies (#392) ([2664399](https://github.com/adfinis/ember-validated-form/commit/266439966050dee4ec6033f24828c84f5e0543b8)), closes [#392](https://github.com/adfinis/ember-validated-form/issues/392)
|
|
149
153
|
|
|
150
154
|
### Bug Fixes
|
|
151
155
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
- **deps:** bump ember-auto-import from 1.6.0 to 1.7.0 ([#394](https://github.com/adfinis/ember-validated-form/issues/394)) ([9d464e4](https://github.com/adfinis/ember-validated-form/commit/9d464e4b5e83f19f3bd46897ef56a3caaaeb7153))
|
|
157
|
+
- **select:** pass promptIsSelectable to select ([e739b4f](https://github.com/adfinis/ember-validated-form/commit/e739b4fea27165e97ae0130e5d330990bdf501ee))
|
|
155
158
|
|
|
156
159
|
### BREAKING CHANGES
|
|
157
160
|
|
|
158
|
-
|
|
161
|
+
- This drops support for Ember LTS 3.8 and 3.12
|
|
159
162
|
|
|
160
163
|
# Change Log
|
|
161
164
|
|
|
@@ -168,67 +171,67 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
168
171
|
|
|
169
172
|
### Changed
|
|
170
173
|
|
|
171
|
-
|
|
174
|
+
- Bump version because of a wrong npm publish
|
|
172
175
|
|
|
173
176
|
## [1.4.1]
|
|
174
177
|
|
|
175
178
|
### Changed
|
|
176
179
|
|
|
177
|
-
|
|
180
|
+
- Fix changing of a changeset property from outside of the form (#118)
|
|
178
181
|
|
|
179
182
|
## [1.4.0]
|
|
180
183
|
|
|
181
184
|
### Changed
|
|
182
185
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
- Update ember to version 3.1
|
|
187
|
+
- Fix mixed content in docs (#107 / #108, credits to @sliverc)
|
|
188
|
+
- Fix wrong bootstrap class in documentation (#114, credits to @kimroen)
|
|
186
189
|
|
|
187
190
|
### Added
|
|
188
191
|
|
|
189
|
-
|
|
190
|
-
|
|
192
|
+
- `on-invalid-submit` action gets called on submitting an invalid form (#111, credits to @omairvaiyani)
|
|
193
|
+
- `inputId` is yielded from the `validated-input` component (#115, credits to @kimroen)
|
|
191
194
|
|
|
192
195
|
## [1.3.1]
|
|
193
196
|
|
|
194
197
|
### Changed
|
|
195
198
|
|
|
196
|
-
|
|
199
|
+
- Addon docs with [`ember-cli-addon-docs`](https://github.com/ember-learn/ember-cli-addon-docs)
|
|
197
200
|
|
|
198
201
|
## [1.3.0]
|
|
199
202
|
|
|
200
203
|
### Changed
|
|
201
204
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
- Bootstrap 4 support (#100, credits to @anehx)
|
|
206
|
+
- Add valid and invalid class to input component (#100, credits to @anehx)
|
|
207
|
+
- Only set valid class if value is dirty (#100, credits to @anehx)
|
|
205
208
|
|
|
206
209
|
## [1.2.0]
|
|
207
210
|
|
|
208
211
|
### Changed
|
|
209
212
|
|
|
210
|
-
|
|
211
|
-
|
|
213
|
+
- Add support for custom label components (#95, credits to @przywartya)
|
|
214
|
+
- Allow setting autocomplete attribute on validated-form and validated-input (#97, credits to @makepanic)
|
|
212
215
|
|
|
213
216
|
## [1.1.0]
|
|
214
217
|
|
|
215
218
|
### Changed
|
|
216
219
|
|
|
217
|
-
|
|
220
|
+
- Update ember-cli to 3.0.0, update dependencies
|
|
218
221
|
|
|
219
222
|
## [1.0.1]
|
|
220
223
|
|
|
221
224
|
### Changed
|
|
222
225
|
|
|
223
|
-
|
|
226
|
+
- fix: use radio value to expose option key (#91, credits to @makepanic)
|
|
224
227
|
|
|
225
228
|
## [1.0.0]
|
|
226
229
|
|
|
227
230
|
### Changed
|
|
228
231
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
+
- Install `ember-changeset` and `ember-changeset-validations` from the blueprint (#86, credits to @bendemboski)
|
|
233
|
+
- Update dependencies (#87, credits to @bendemboski)
|
|
234
|
+
- Remove deprecated task support (#88, credits to @bendemboski)
|
|
232
235
|
|
|
233
236
|
The 1.0.0 release removes ember-changeset and ember-changeset-validations as dependencies because this addon is built to make them very easy to use, but doesn't require them. So if you are using either or both of them in your application code but do not already have them in your package.json, you should run
|
|
234
237
|
|
|
@@ -243,32 +246,32 @@ This release also removes the previously deprecated API for passing ember-concou
|
|
|
243
246
|
|
|
244
247
|
### Changed
|
|
245
248
|
|
|
246
|
-
|
|
249
|
+
- Fix for removal from DOM during submit (#85, credits to @bendemboski)
|
|
247
250
|
|
|
248
251
|
## [0.7.0]
|
|
249
252
|
|
|
250
253
|
### Changed
|
|
251
254
|
|
|
252
|
-
|
|
255
|
+
- Wrap radio, checkbox in span to allow custom styles (#82, credits to @makepanic)
|
|
253
256
|
|
|
254
257
|
## [0.6.4]
|
|
255
258
|
|
|
256
259
|
### Changed
|
|
257
260
|
|
|
258
|
-
|
|
259
|
-
|
|
261
|
+
- Update ember truth helpers (#79, credits to @bendemboski)
|
|
262
|
+
- Update ember-cli to 2.18.0 (#80)
|
|
260
263
|
|
|
261
264
|
## [0.6.3]
|
|
262
265
|
|
|
263
266
|
### Changed
|
|
264
267
|
|
|
265
|
-
|
|
268
|
+
- Add disabled flag on checkbox instance (#77, credits to @toumbask)
|
|
266
269
|
|
|
267
270
|
## [0.6.2]
|
|
268
271
|
|
|
269
272
|
### Changed
|
|
270
273
|
|
|
271
|
-
|
|
274
|
+
- Yield loading state, change `on-submit` to promise semantics (#75, credits to @bendemboski)
|
|
272
275
|
|
|
273
276
|
This release deprecates passing an ember-concurrency task directly to `on-submit`:
|
|
274
277
|
|
|
@@ -287,16 +290,16 @@ Instead, `on-submit` accepts a promise - which is returned by wrapping the task
|
|
|
287
290
|
|
|
288
291
|
### Added
|
|
289
292
|
|
|
290
|
-
|
|
291
|
-
|
|
293
|
+
- Add more input attributes (#71, credits to @bendemboski)
|
|
294
|
+
- Add validateBeforeSubmit option (#70, credits to @bendemboski)
|
|
292
295
|
|
|
293
296
|
## [0.6.0]
|
|
294
297
|
|
|
295
298
|
### Changed
|
|
296
299
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
+
- Use yarn instead of npm (#62)
|
|
301
|
+
- Update dependencies (#62)
|
|
302
|
+
- Remove automatic disabling of submit button while task is running (#63)
|
|
300
303
|
|
|
301
304
|
To restore the old behaviour, all you have to do is pass the `isRunning` state as `disabled` property to the submit button:
|
|
302
305
|
|
|
@@ -311,91 +314,91 @@ To restore the old behaviour, all you have to do is pass the `isRunning` state a
|
|
|
311
314
|
|
|
312
315
|
### Added
|
|
313
316
|
|
|
314
|
-
|
|
315
|
-
|
|
317
|
+
- Add loading class to button if task is running (#63)
|
|
318
|
+
- Support block style usage of submit button (#61)
|
|
316
319
|
|
|
317
320
|
### Removed
|
|
318
321
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
+
- Useless class name binding on button (#65)
|
|
323
|
+
- Dependency to ember-data (#62)
|
|
324
|
+
- Various unused dependencies (#62)
|
|
322
325
|
|
|
323
326
|
## [0.5.4]
|
|
324
327
|
|
|
325
328
|
### Changed
|
|
326
329
|
|
|
327
|
-
|
|
328
|
-
|
|
330
|
+
- Input, Textarea: Use native input tag instead of one-way-input (#60)
|
|
331
|
+
- Dummy app: load bootstrap from CDN (#59)
|
|
329
332
|
|
|
330
333
|
## [0.5.3]
|
|
331
334
|
|
|
332
335
|
### Changed
|
|
333
336
|
|
|
334
|
-
|
|
337
|
+
- Fix bug that caused ID collisions when multiple forms on the same page use inputs with
|
|
335
338
|
the same name (#55, credits to @anehx)
|
|
336
339
|
|
|
337
340
|
## [0.5.2]
|
|
338
341
|
|
|
339
342
|
### Changed
|
|
340
343
|
|
|
341
|
-
|
|
344
|
+
- Update ember-cli to v2.5.1 (#53)
|
|
342
345
|
|
|
343
346
|
## [0.5.1]
|
|
344
347
|
|
|
345
348
|
### Changed
|
|
346
349
|
|
|
347
|
-
|
|
350
|
+
- Add proper `id` attributes to select and simple form components (#51)
|
|
348
351
|
|
|
349
352
|
## [0.5.0]
|
|
350
353
|
|
|
351
354
|
### Changed
|
|
352
355
|
|
|
353
|
-
|
|
356
|
+
- Separate classes for field hints and validation messages (#42, credits to @jacob-financit). If you've
|
|
354
357
|
been using the (previously undocumented) option `help` on input fields, you'll have to rename them to `hint`.
|
|
355
358
|
|
|
356
359
|
## [0.4.2]
|
|
357
360
|
|
|
358
361
|
### Added
|
|
359
362
|
|
|
360
|
-
|
|
363
|
+
- Better documentation for custom component integration (#46)
|
|
361
364
|
|
|
362
365
|
### Changed
|
|
363
366
|
|
|
364
|
-
|
|
367
|
+
- Fix bug that causes form to break for select fields without option `promptIsSelectable` (#45)
|
|
365
368
|
|
|
366
369
|
## [0.4.1]
|
|
367
370
|
|
|
368
371
|
### Added
|
|
369
372
|
|
|
370
|
-
|
|
373
|
+
- Support selectable prompts from the select dropdown (#40, credits to @steverhoades)
|
|
371
374
|
|
|
372
375
|
### Changed
|
|
373
376
|
|
|
374
|
-
|
|
375
|
-
|
|
377
|
+
- Update dependencies (#33, #34, credits to @okachynskyy)
|
|
378
|
+
- Move addon from pods to default structure (#32, credits to @okachynskyy)
|
|
376
379
|
|
|
377
380
|
## [0.4.0]
|
|
378
381
|
|
|
379
382
|
### Added
|
|
380
383
|
|
|
381
|
-
|
|
384
|
+
- Support block form usage of radioGroups (#28, credits to @jacob-financeit)
|
|
382
385
|
|
|
383
386
|
### Changed
|
|
384
387
|
|
|
385
|
-
|
|
388
|
+
- remove hardcoded `radio` class for radio button groups. If you're using bootstrap, you
|
|
386
389
|
might have to add `radio: 'radio'` to the CSS config.
|
|
387
390
|
|
|
388
391
|
## [0.3.1]
|
|
389
392
|
|
|
390
393
|
### Added
|
|
391
394
|
|
|
392
|
-
|
|
395
|
+
- More CSS configuration options and docs on how to integrate semantic UI (#26)
|
|
393
396
|
|
|
394
397
|
## [0.3.0]
|
|
395
398
|
|
|
396
399
|
### Changed
|
|
397
400
|
|
|
398
|
-
|
|
401
|
+
- Removed automatic inference if field is required (which appended "\*" to labels) because it
|
|
399
402
|
was incorrect. (#27, credits to @andreabettich) Now, fields have to be marked as required explicitly:
|
|
400
403
|
|
|
401
404
|
```Handlebars
|
|
@@ -404,21 +407,21 @@ To restore the old behaviour, all you have to do is pass the `isRunning` state a
|
|
|
404
407
|
|
|
405
408
|
## [0.2.2]
|
|
406
409
|
|
|
407
|
-
|
|
410
|
+
- Upgrade to ember 2.12.0 (#24, credits to @sproj)
|
|
408
411
|
|
|
409
412
|
## [0.2.1]
|
|
410
413
|
|
|
411
414
|
### Added
|
|
412
415
|
|
|
413
|
-
|
|
414
|
-
|
|
416
|
+
- Override initial value of input field using `value` attribute (#22, credits to @kaldras)
|
|
417
|
+
- Document `on-update` property for custom update functions of input elements,
|
|
415
418
|
and add `changeset` argument to its signature
|
|
416
419
|
|
|
417
420
|
## [0.2.0]
|
|
418
421
|
|
|
419
422
|
### Changed
|
|
420
423
|
|
|
421
|
-
|
|
424
|
+
- yield `submit` button instead of automatically rendering it, removed `cancel` button. Migration is simple:
|
|
422
425
|
|
|
423
426
|
Before:
|
|
424
427
|
|
|
@@ -449,10 +452,10 @@ After:
|
|
|
449
452
|
|
|
450
453
|
### Added
|
|
451
454
|
|
|
452
|
-
|
|
455
|
+
- Checkbox support (#5, credits to @psteininger)
|
|
453
456
|
|
|
454
457
|
## [0.1.10] - 2017-03-23
|
|
455
458
|
|
|
456
459
|
### Added
|
|
457
460
|
|
|
458
|
-
|
|
461
|
+
- Easy integration of custom components (#17, credits to @feanor07)
|
package/README.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/ember-validated-form)
|
|
4
4
|
[](https://emberobserver.com/addons/ember-validated-form)
|
|
5
|
-
[](https://github.com/adfinis/ember-validated-form/actions?query=workflow%3ATest)
|
|
6
6
|
[](https://github.com/prettier/prettier)
|
|
7
7
|
|
|
8
8
|
Easily create forms with client side validations.
|
|
9
9
|
|
|
10
|
-

|
|
11
11
|
|
|
12
|
-
Want to try it yourself? [View the docs here.](https://
|
|
12
|
+
Want to try it yourself? [View the docs here.](https://adfinis.github.io/ember-validated-form)
|
|
13
13
|
|
|
14
14
|
# Contributing
|
|
15
15
|
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
<button
|
|
2
|
-
class={{
|
|
2
|
+
class={{class-list
|
|
3
|
+
(if
|
|
4
|
+
(macroCondition (macroGetOwnConfig "isUikit"))
|
|
5
|
+
(class-list
|
|
6
|
+
"uk-button"
|
|
7
|
+
(if (eq @type "submit") "uk-button-primary" "uk-button-default")
|
|
8
|
+
)
|
|
9
|
+
)
|
|
10
|
+
(if
|
|
11
|
+
(macroCondition (macroGetOwnConfig "isBootstrap"))
|
|
12
|
+
(class-list
|
|
13
|
+
"btn"
|
|
14
|
+
(if (eq @type "submit") "btn-primary" "btn-default")
|
|
15
|
+
(if @loading "loading")
|
|
16
|
+
)
|
|
17
|
+
)
|
|
18
|
+
}}
|
|
3
19
|
type={{@type}}
|
|
4
20
|
disabled={{@disabled}}
|
|
5
21
|
{{on "click" @onClick}}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
{{#
|
|
2
|
-
|
|
3
|
-
this.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
{{#if (has-block)}}
|
|
2
|
+
<this.buttonComponent
|
|
3
|
+
@onClick={{this.click}}
|
|
4
|
+
@loading={{this.loading}}
|
|
5
|
+
@disabled={{or @disabled this.loading}}
|
|
6
|
+
@label={{@label}}
|
|
7
|
+
@type={{@type}}
|
|
8
|
+
...attributes
|
|
9
|
+
>{{yield}}</this.buttonComponent>
|
|
10
|
+
{{else}}
|
|
11
|
+
<this.buttonComponent
|
|
12
|
+
@onClick={{this.click}}
|
|
13
|
+
@loading={{this.loading}}
|
|
14
|
+
@disabled={{or @disabled this.loading}}
|
|
15
|
+
@label={{@label}}
|
|
16
|
+
@type={{@type}}
|
|
17
|
+
...attributes
|
|
18
|
+
/>
|
|
19
|
+
{{/if}}
|