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