ember-validated-form 5.3.0 → 6.0.1

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