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