@xdam/ember-partials 0.9.0-beta.1 → 0.10.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 (152) hide show
  1. package/.gitattributes +6 -0
  2. package/LICENSE.md +9 -9
  3. package/README.md +75 -60
  4. package/addon/components/xep-avatar.js +2 -15
  5. package/addon/components/xep-bubble.js +1 -6
  6. package/addon/components/xep-button.js +2 -20
  7. package/addon/components/xep-checkbox.js +1 -11
  8. package/addon/components/xep-chip-icon.js +0 -4
  9. package/addon/components/xep-chip-set.js +3 -11
  10. package/addon/components/xep-chip-text.js +0 -3
  11. package/addon/components/xep-chip.js +0 -7
  12. package/addon/components/xep-dialog-actions.js +0 -3
  13. package/addon/components/xep-dialog-content.js +0 -3
  14. package/addon/components/xep-dialog-title.js +0 -3
  15. package/addon/components/xep-dialog.js +2 -10
  16. package/addon/components/xep-drawer-content.js +0 -3
  17. package/addon/components/xep-drawer-header.js +0 -3
  18. package/addon/components/xep-drawer.js +2 -12
  19. package/addon/components/xep-input.js +1 -37
  20. package/addon/components/xep-list-divider.js +0 -5
  21. package/addon/components/xep-list-item-graphic.js +0 -3
  22. package/addon/components/xep-list-item-meta.js +0 -3
  23. package/addon/components/xep-list-item-text.js +1 -6
  24. package/addon/components/xep-list-item.js +0 -8
  25. package/addon/components/xep-list.js +2 -15
  26. package/addon/components/xep-menu-surface.js +1 -6
  27. package/addon/components/xep-menu.js +1 -13
  28. package/addon/components/xep-radio.js +1 -11
  29. package/addon/components/xep-slider.js +3 -18
  30. package/addon/components/xep-snackbar.js +1 -11
  31. package/addon/components/xep-switch.js +1 -9
  32. package/addon/components/xep-textarea.js +1 -37
  33. package/addon/components/xep-toolbar-divider.js +0 -3
  34. package/addon/components/xep-toolbar-item-icon.js +0 -3
  35. package/addon/components/xep-toolbar-item-text.js +0 -3
  36. package/addon/components/xep-toolbar-item.js +0 -4
  37. package/addon/components/xep-toolbar-section.js +1 -8
  38. package/addon/components/xep-toolbar.js +2 -17
  39. package/addon/mixins/xep-resize.js +0 -0
  40. package/addon/services/xep-manager.js +1 -1
  41. package/addon/templates/components/xep-avatar.hbs +1 -1
  42. package/addon/templates/components/xep-bubble.hbs +0 -0
  43. package/addon/templates/components/xep-button.hbs +0 -0
  44. package/addon/templates/components/xep-checkbox.hbs +0 -0
  45. package/addon/templates/components/xep-chip-icon.hbs +0 -0
  46. package/addon/templates/components/xep-chip-set.hbs +0 -0
  47. package/addon/templates/components/xep-chip-text.hbs +0 -0
  48. package/addon/templates/components/xep-chip.hbs +0 -0
  49. package/addon/templates/components/xep-dialog-actions.hbs +0 -0
  50. package/addon/templates/components/xep-dialog-content.hbs +0 -0
  51. package/addon/templates/components/xep-dialog-title.hbs +0 -0
  52. package/addon/templates/components/xep-dialog.hbs +0 -0
  53. package/addon/templates/components/xep-drawer-content.hbs +0 -0
  54. package/addon/templates/components/xep-drawer-header.hbs +0 -0
  55. package/addon/templates/components/xep-drawer.hbs +0 -0
  56. package/addon/templates/components/xep-input.hbs +0 -0
  57. package/addon/templates/components/xep-list-divider.hbs +0 -0
  58. package/addon/templates/components/xep-list-item-graphic.hbs +0 -0
  59. package/addon/templates/components/xep-list-item-meta.hbs +0 -0
  60. package/addon/templates/components/xep-list-item-text.hbs +0 -0
  61. package/addon/templates/components/xep-list-item.hbs +0 -0
  62. package/addon/templates/components/xep-list.hbs +0 -0
  63. package/addon/templates/components/xep-menu-surface.hbs +0 -0
  64. package/addon/templates/components/xep-menu.hbs +0 -0
  65. package/addon/templates/components/xep-power-select.hbs +0 -0
  66. package/addon/templates/components/xep-radio.hbs +0 -0
  67. package/addon/templates/components/xep-slider.hbs +0 -0
  68. package/addon/templates/components/xep-snackbar.hbs +0 -0
  69. package/addon/templates/components/xep-switch.hbs +0 -0
  70. package/addon/templates/components/xep-textarea.hbs +0 -0
  71. package/addon/templates/components/xep-toolbar-divider.hbs +0 -0
  72. package/addon/templates/components/xep-toolbar-item-icon.hbs +0 -0
  73. package/addon/templates/components/xep-toolbar-item-text.hbs +0 -0
  74. package/addon/templates/components/xep-toolbar-item.hbs +0 -0
  75. package/addon/templates/components/xep-toolbar-section.hbs +0 -0
  76. package/addon/templates/components/xep-toolbar.hbs +0 -0
  77. package/addon/utils/style-string.js +0 -0
  78. package/addon/utils/update-dirty-props.js +0 -0
  79. package/app/components/xep-avatar.js +0 -0
  80. package/app/components/xep-bubble.js +0 -0
  81. package/app/components/xep-button.js +0 -0
  82. package/app/components/xep-checkbox.js +0 -0
  83. package/app/components/xep-chip-icon.js +0 -0
  84. package/app/components/xep-chip-set.js +0 -0
  85. package/app/components/xep-chip-text.js +0 -0
  86. package/app/components/xep-chip.js +0 -0
  87. package/app/components/xep-dialog-actions.js +0 -0
  88. package/app/components/xep-dialog-content.js +0 -0
  89. package/app/components/xep-dialog-title.js +0 -0
  90. package/app/components/xep-dialog.js +0 -0
  91. package/app/components/xep-drawer-content.js +0 -0
  92. package/app/components/xep-drawer-header.js +0 -0
  93. package/app/components/xep-drawer.js +0 -0
  94. package/app/components/xep-input.js +0 -0
  95. package/app/components/xep-list-divider.js +0 -0
  96. package/app/components/xep-list-item-graphic.js +0 -0
  97. package/app/components/xep-list-item-meta.js +0 -0
  98. package/app/components/xep-list-item-text.js +0 -0
  99. package/app/components/xep-list-item.js +0 -0
  100. package/app/components/xep-list.js +0 -0
  101. package/app/components/xep-menu-surface.js +0 -0
  102. package/app/components/xep-menu.js +0 -0
  103. package/app/components/xep-radio.js +0 -0
  104. package/app/components/xep-slider.js +0 -0
  105. package/app/components/xep-snackbar.js +0 -0
  106. package/app/components/xep-switch.js +0 -0
  107. package/app/components/xep-textarea.js +0 -0
  108. package/app/components/xep-toolbar-divider.js +0 -0
  109. package/app/components/xep-toolbar-item-icon.js +0 -0
  110. package/app/components/xep-toolbar-item-text.js +0 -0
  111. package/app/components/xep-toolbar-item.js +0 -0
  112. package/app/components/xep-toolbar-section.js +0 -0
  113. package/app/components/xep-toolbar.js +0 -0
  114. package/app/mixins/xep-resize.js +0 -0
  115. package/app/services/xep-manager.js +0 -0
  116. package/app/styles/ember-partials/components/xep-avatar.scss +24 -24
  117. package/app/styles/ember-partials/components/xep-bubble.scss +20 -20
  118. package/app/styles/ember-partials/components/xep-button.scss +58 -58
  119. package/app/styles/ember-partials/components/xep-drawer.scss +21 -21
  120. package/app/styles/ember-partials/components/xep-snackbar.scss +3 -3
  121. package/app/styles/ember-partials/components/xep-toolbar.scss +107 -107
  122. package/app/styles/ember-partials/dark-theme.scss +42 -42
  123. package/app/styles/ember-partials/helpers/alignment.scss +59 -59
  124. package/app/styles/ember-partials/helpers/color.scss +27 -27
  125. package/app/styles/ember-partials/helpers/display.scss +27 -27
  126. package/app/styles/ember-partials/helpers/overrides.scss +7 -7
  127. package/app/styles/ember-partials/helpers/root.scss +13 -13
  128. package/app/styles/ember-partials/helpers/rotate.scss +11 -11
  129. package/app/styles/ember-partials/helpers/spacing.scss +25 -25
  130. package/app/styles/ember-partials/helpers/typography.scss +5 -5
  131. package/app/styles/ember-partials/helpers/visibility.scss +23 -23
  132. package/app/styles/ember-partials/light-theme.scss +42 -42
  133. package/app/styles/ember-partials/mixins/breakpoints.scss +24 -24
  134. package/app/styles/ember-partials/mixins/strip-unit.scss +10 -10
  135. package/app/styles/ember-partials/variables.scss +35 -35
  136. package/app/styles/ember-partials/xdam-theme.scss +42 -42
  137. package/app/styles/ember-partials.scss +35 -35
  138. package/app/utils/style-string.js +0 -0
  139. package/backstop.json +168 -168
  140. package/blueprints/xep-component/files/__root__/__path__/__name__.js +0 -0
  141. package/blueprints/xep-component/files/__root__/__templatepath__/__templatename__.hbs +0 -0
  142. package/blueprints/xep-component/index.js +0 -0
  143. package/blueprints/xep-component-test/index.js +0 -0
  144. package/blueprints/xep-component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -0
  145. package/config/addon-docs.js +0 -0
  146. package/config/deploy.js +0 -0
  147. package/config/environment.js +0 -0
  148. package/config/release.js +0 -0
  149. package/index.js +2 -2
  150. package/package.json +124 -125
  151. package/.npmignore +0 -36
  152. package/.vscode/settings.json +0 -16
package/.gitattributes ADDED
@@ -0,0 +1,6 @@
1
+ # default to let git choose the best setting for files not explicitly defined here
2
+ * text=auto
3
+
4
+ # All js files must have lf line ends to pass in the linter
5
+ *.js text eol=lf
6
+ *.hbs text eol=lf
package/LICENSE.md CHANGED
@@ -1,9 +1,9 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,60 +1,75 @@
1
- @xdam/ember-partials (xep)
2
- ==============================================================================
3
-
4
- Ember components for XDAM applications.
5
-
6
- - [@xdam/ember-partials (xep)](#xdamember-partials-xep)
7
- - [Installation](#installation)
8
- - [Usage](#usage)
9
- - [Contributing](#contributing)
10
- - [Installation](#installation-1)
11
- - [Linting](#linting)
12
- - [Running tests](#running-tests)
13
- - [Running the dummy application](#running-the-dummy-application)
14
-
15
- Installation
16
- ------------------------------------------------------------------------------
17
-
18
- > Note: This package does not provide prefixed styles (see ember-cli-autoprefixer).
19
-
20
- Usage
21
- ------------------------------------------------------------------------------
22
-
23
- Usage available in the dummy app available at [http://localhost:4200](http://localhost:4200).
24
-
25
- Contributing
26
- ------------------------------------------------------------------------------
27
-
28
- ### Installation
29
-
30
- * `git clone <repository-url>`
31
- * `cd ember-partials`
32
- * `yarn install`
33
-
34
- ### Linting
35
-
36
- Lint every kind:
37
-
38
- * `yarn lint`
39
-
40
- Or individually:
41
-
42
- * `yarn lint:js`
43
- * `yarn lint:js --fix`
44
- * `yarn lint:hbs`
45
- * `yarn lint:hbs --fix`
46
- * `yarn lint:scss`
47
- * `yarn lint:scss --fix`
48
-
49
- ### Running tests
50
-
51
- * `ember test` – Runs the test suite on the current Ember version
52
- * `ember test --server` – Runs the test suite in "watch mode"
53
- * `ember try:each` – Runs the test suite against multiple Ember versions
54
-
55
- ### Running the dummy application
56
-
57
- * `ember serve`
58
- * Visit the dummy application at [http://localhost:4200](http://localhost:4200).
59
-
60
- For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
1
+ @xdam/ember-partials (xep)
2
+ ==============================================================================
3
+
4
+ Ember components for XDAM applications.
5
+
6
+ - [@xdam/ember-partials (xep)](#xdamember-partials-xep)
7
+ - [Installation](#installation)
8
+ - [Usage](#usage)
9
+ - [Contributing](#contributing)
10
+ - [Installation](#installation-1)
11
+ - [Linting](#linting)
12
+ - [Running tests](#running-tests)
13
+ - [Running the dummy application](#running-the-dummy-application)
14
+
15
+
16
+ Compatibility
17
+ ------------------------------------------------------------------------------
18
+
19
+ * Ember.js v2.18 or above
20
+ * Ember CLI v2.13 or above
21
+
22
+
23
+ Installation
24
+ ------------------------------------------------------------------------------
25
+
26
+ > Note: This package does not provide prefixed styles (see ember-cli-autoprefixer).
27
+
28
+ Usage
29
+ ------------------------------------------------------------------------------
30
+
31
+ Usage available in the dummy app available at [http://localhost:4200](http://localhost:4200).
32
+
33
+
34
+ Contributing
35
+ ------------------------------------------------------------------------------
36
+
37
+ See the [Contributing](CONTRIBUTING.md) guide for details.
38
+
39
+
40
+ License
41
+ ------------------------------------------------------------------------------
42
+
43
+ ### Installation
44
+
45
+ * `git clone <repository-url>`
46
+ * `cd ember-partials`
47
+ * `yarn install`
48
+
49
+ ### Linting
50
+
51
+ Lint every kind:
52
+
53
+ * `yarn lint`
54
+
55
+ Or individually:
56
+
57
+ * `yarn lint:js`
58
+ * `yarn lint:js --fix`
59
+ * `yarn lint:hbs`
60
+ * `yarn lint:hbs --fix`
61
+ * `yarn lint:scss`
62
+ * `yarn lint:scss --fix`
63
+
64
+ ### Running tests
65
+
66
+ * `ember test` – Runs the test suite on the current Ember version
67
+ * `ember test --server` – Runs the test suite in "watch mode"
68
+ * `ember try:each` – Runs the test suite against multiple Ember versions
69
+
70
+ ### Running the dummy application
71
+
72
+ * `ember serve`
73
+ * Visit the dummy application at [http://localhost:4200](http://localhost:4200).
74
+
75
+ For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
@@ -3,10 +3,8 @@ import {
3
3
  } from '@ember-decorators/component';
4
4
  import Component from '@ember/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-avatar';
6
- import { argument } from '@ember-decorators/argument';
7
- import { optional } from '@ember-decorators/argument/types';
8
- import { computed } from '@ember-decorators/object';
9
- import { inject as service } from '@ember-decorators/service';
6
+ import { computed } from '@ember/object';
7
+ import { inject as service } from '@ember/service';
10
8
 
11
9
  import styleString from '@xdam/ember-partials/utils/style-string';
12
10
 
@@ -29,7 +27,6 @@ export default class XepAvatarComponent extends Component {
29
27
  * @argument [testSelector]
30
28
  * @type {String}
31
29
  */
32
- @argument(optional('string'))
33
30
  @attribute('data-test-avatar')
34
31
  testSelector;
35
32
 
@@ -38,7 +35,6 @@ export default class XepAvatarComponent extends Component {
38
35
  * @argument [href]
39
36
  * @type {String}
40
37
  */
41
- @argument(optional('string'))
42
38
  @attribute
43
39
  href;
44
40
 
@@ -47,7 +43,6 @@ export default class XepAvatarComponent extends Component {
47
43
  * @argument [register]
48
44
  * @type {String}
49
45
  */
50
- @argument(optional('string'))
51
46
  register;
52
47
 
53
48
  /**
@@ -55,7 +50,6 @@ export default class XepAvatarComponent extends Component {
55
50
  * @argument [firstName]
56
51
  * @type {String}
57
52
  */
58
- @argument(optional('string'))
59
53
  firstName;
60
54
 
61
55
  /**
@@ -63,7 +57,6 @@ export default class XepAvatarComponent extends Component {
63
57
  * @argument [lastName]
64
58
  * @type {String}
65
59
  */
66
- @argument(optional('string'))
67
60
  lastName;
68
61
 
69
62
  /**
@@ -71,7 +64,6 @@ export default class XepAvatarComponent extends Component {
71
64
  * @argument [entityName]
72
65
  * @type {String}
73
66
  */
74
- @argument(optional('string'))
75
67
  entityName;
76
68
 
77
69
  /**
@@ -79,7 +71,6 @@ export default class XepAvatarComponent extends Component {
79
71
  * @argument [textContent]
80
72
  * @type {String}
81
73
  */
82
- @argument(optional('string'))
83
74
  textContent;
84
75
 
85
76
  /**
@@ -87,7 +78,6 @@ export default class XepAvatarComponent extends Component {
87
78
  * @argument [image]
88
79
  * @type {String}
89
80
  */
90
- @argument(optional('string'))
91
81
  image;
92
82
 
93
83
  /**
@@ -96,7 +86,6 @@ export default class XepAvatarComponent extends Component {
96
86
  * @argument [backgroundColor]
97
87
  * @type {String}
98
88
  */
99
- @argument(optional('string'))
100
89
  backgroundColor;
101
90
 
102
91
  /**
@@ -104,7 +93,6 @@ export default class XepAvatarComponent extends Component {
104
93
  * @argument [width]
105
94
  * @type {Number}
106
95
  */
107
- @argument('number')
108
96
  width = 32;
109
97
 
110
98
  /**
@@ -112,7 +100,6 @@ export default class XepAvatarComponent extends Component {
112
100
  * @argument [border]
113
101
  * @type {String}
114
102
  */
115
- @argument(optional('string'))
116
103
  border;
117
104
 
118
105
  /**
@@ -3,9 +3,7 @@ import {
3
3
  } from '@ember-decorators/component';
4
4
  import Component from '@ember/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-bubble';
6
- import { argument } from '@ember-decorators/argument';
7
- import { optional } from '@ember-decorators/argument/types';
8
- import { inject as service } from '@ember-decorators/service';
6
+ import { inject as service } from '@ember/service';
9
7
 
10
8
  /**
11
9
  * Component description...
@@ -25,7 +23,6 @@ export default class XepBubbleComponent extends Component {
25
23
  * @argument [testSelector]
26
24
  * @type {String}
27
25
  */
28
- @argument(optional('string'))
29
26
  @attribute('data-test-bubble')
30
27
  testSelector;
31
28
 
@@ -34,7 +31,6 @@ export default class XepBubbleComponent extends Component {
34
31
  * @argument [floating]
35
32
  * @type {Boolean}
36
33
  */
37
- @argument(optional('boolean'))
38
34
  @className('xep-bubble--floating')
39
35
  floating;
40
36
 
@@ -43,7 +39,6 @@ export default class XepBubbleComponent extends Component {
43
39
  * @argument [register]
44
40
  * @type {String}
45
41
  */
46
- @argument(optional('string'))
47
42
  register;
48
43
 
49
44
  init() {
@@ -2,12 +2,9 @@ import Component from '@ember/component';
2
2
  import {
3
3
  classNames, attribute, className, tagName, layout,
4
4
  } from '@ember-decorators/component';
5
- import { argument } from '@ember-decorators/argument';
6
- import { computed } from '@ember-decorators/object';
7
- import { oneOf, optional, Action } from '@ember-decorators/argument/types';
8
- import EmberObject from '@ember/object';
5
+ import EmberObject, { computed } from '@ember/object';
9
6
  import template from '@xdam/ember-partials/templates/components/xep-button';
10
- import { inject as service } from '@ember-decorators/service';
7
+ import { inject as service } from '@ember/service';
11
8
 
12
9
  const VARIANT_TYPES = {
13
10
  // Defaults to a text button that is flush with the surface.
@@ -44,7 +41,6 @@ export default class XepButtonComponent extends Component {
44
41
  * @argument [testSelector]
45
42
  * @type {String}
46
43
  */
47
- @argument(optional('string'))
48
44
  @attribute('data-test-button')
49
45
  testSelector;
50
46
 
@@ -53,7 +49,6 @@ export default class XepButtonComponent extends Component {
53
49
  * @argument [tabindex]
54
50
  * @type {String}
55
51
  */
56
- @argument(optional('string'))
57
52
  @attribute
58
53
  title;
59
54
 
@@ -62,7 +57,6 @@ export default class XepButtonComponent extends Component {
62
57
  * @argument [tabindex]
63
58
  * @type {Number}
64
59
  */
65
- @argument(optional('number'))
66
60
  @attribute
67
61
  tabindex;
68
62
 
@@ -71,7 +65,6 @@ export default class XepButtonComponent extends Component {
71
65
  * @argument [type]
72
66
  * @type {String}
73
67
  */
74
- @argument(optional(oneOf('submit', 'reset', 'button')))
75
68
  @attribute
76
69
  type;
77
70
 
@@ -80,7 +73,6 @@ export default class XepButtonComponent extends Component {
80
73
  * @argument [name]
81
74
  * @type {String}
82
75
  */
83
- @argument(optional('string'))
84
76
  @attribute
85
77
  name;
86
78
 
@@ -89,7 +81,6 @@ export default class XepButtonComponent extends Component {
89
81
  * @argument [value]
90
82
  * @type {*}
91
83
  */
92
- @argument(optional('any'))
93
84
  @attribute
94
85
  value;
95
86
 
@@ -98,7 +89,6 @@ export default class XepButtonComponent extends Component {
98
89
  * @argument [disabled]
99
90
  * @type {Boolean}
100
91
  */
101
- @argument(optional('boolean'))
102
92
  @attribute
103
93
  disabled;
104
94
 
@@ -107,7 +97,6 @@ export default class XepButtonComponent extends Component {
107
97
  * @argument [dense]
108
98
  * @type {Boolean}
109
99
  */
110
- @argument(optional('boolean'))
111
100
  @className('mdc-button--dense')
112
101
  dense;
113
102
 
@@ -117,7 +106,6 @@ export default class XepButtonComponent extends Component {
117
106
  * @argument [active]
118
107
  * @type {Boolean}
119
108
  */
120
- @argument(optional('boolean'))
121
109
  @className('xep-button--active')
122
110
  active;
123
111
 
@@ -126,7 +114,6 @@ export default class XepButtonComponent extends Component {
126
114
  * @argument [dialogActionName]
127
115
  * @type {String}
128
116
  */
129
- @argument(optional('string'))
130
117
  @attribute('data-mdc-dialog-action')
131
118
  dialogActionName;
132
119
 
@@ -135,7 +122,6 @@ export default class XepButtonComponent extends Component {
135
122
  * @argument [dialogActionName]
136
123
  * @type {Boolean}
137
124
  */
138
- @argument(optional('boolean'))
139
125
  @className('mdc-dialog__button--default')
140
126
  dialogDefaultAction;
141
127
 
@@ -144,7 +130,6 @@ export default class XepButtonComponent extends Component {
144
130
  * @argument [register]
145
131
  * @type {String}
146
132
  */
147
- @argument(optional('string'))
148
133
  register;
149
134
 
150
135
  /**
@@ -152,7 +137,6 @@ export default class XepButtonComponent extends Component {
152
137
  * @argument [click]
153
138
  * @type {Action}
154
139
  */
155
- @argument(optional(Action))
156
140
  click;
157
141
 
158
142
  /**
@@ -160,7 +144,6 @@ export default class XepButtonComponent extends Component {
160
144
  * @argument variant
161
145
  * @type {String}
162
146
  */
163
- @argument(optional(oneOf(...Object.keys(VARIANT_TYPES))))
164
147
  variant = 'standard';
165
148
 
166
149
  // Map of classNames for each variant type
@@ -186,7 +169,6 @@ export default class XepButtonComponent extends Component {
186
169
  * @argument color
187
170
  * @type {String}
188
171
  */
189
- @argument('string')
190
172
  color = 'primary';
191
173
 
192
174
  /**
@@ -3,11 +3,9 @@ import {
3
3
  } from '@ember-decorators/component';
4
4
  import Component from '@ember/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-checkbox';
6
- import { argument } from '@ember-decorators/argument';
7
- import { optional } from '@ember-decorators/argument/types';
8
6
  import { guidFor } from '@ember/object/internals';
9
7
  import { MDCCheckbox } from '@material/checkbox';
10
- import { inject as service } from '@ember-decorators/service';
8
+ import { inject as service } from '@ember/service';
11
9
  import { addEventListener, runDisposables } from 'ember-lifeline';
12
10
 
13
11
  import updateDirtyProps from '@xdam/ember-partials/utils/update-dirty-props';
@@ -29,7 +27,6 @@ export default class XepCheckboxComponent extends Component {
29
27
  * @argument [testSelector]
30
28
  * @type {String}
31
29
  */
32
- @argument(optional('string'))
33
30
  @attribute('data-test-checkbox')
34
31
  testSelector;
35
32
 
@@ -38,7 +35,6 @@ export default class XepCheckboxComponent extends Component {
38
35
  * @argument [register]
39
36
  * @type {String}
40
37
  */
41
- @argument(optional('string'))
42
38
  register;
43
39
 
44
40
  /**
@@ -46,7 +42,6 @@ export default class XepCheckboxComponent extends Component {
46
42
  * @argument [checkboxId]
47
43
  * @type {String}
48
44
  */
49
- @argument('string')
50
45
  checkboxId = guidFor(Symbol('Input Id'));
51
46
 
52
47
  /**
@@ -54,7 +49,6 @@ export default class XepCheckboxComponent extends Component {
54
49
  * @argument [label]
55
50
  * @type {String}
56
51
  */
57
- @argument(optional('string'))
58
52
  label;
59
53
 
60
54
  /**
@@ -62,7 +56,6 @@ export default class XepCheckboxComponent extends Component {
62
56
  * @argument [checked]
63
57
  * @type {String}
64
58
  */
65
- @argument(optional('boolean'))
66
59
  checked;
67
60
 
68
61
  /**
@@ -70,7 +63,6 @@ export default class XepCheckboxComponent extends Component {
70
63
  * @argument [value]
71
64
  * @type {String}
72
65
  */
73
- @argument(optional('string'))
74
66
  value;
75
67
 
76
68
  /**
@@ -78,7 +70,6 @@ export default class XepCheckboxComponent extends Component {
78
70
  * @argument [indeterminate]
79
71
  * @type {String}
80
72
  */
81
- @argument(optional('boolean'))
82
73
  indeterminate;
83
74
 
84
75
  /**
@@ -86,7 +77,6 @@ export default class XepCheckboxComponent extends Component {
86
77
  * @argument [disabled]
87
78
  * @type {String}
88
79
  */
89
- @argument(optional('boolean'))
90
80
  disabled;
91
81
 
92
82
  trackedProps = ['indeterminate', 'disabled', 'checked', 'value'];
@@ -3,8 +3,6 @@ import {
3
3
  classNames, layout, attribute,
4
4
  } from '@ember-decorators/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-chip-icon';
6
- import { argument } from '@ember-decorators/argument';
7
- import { optional, Action } from '@ember-decorators/argument/types';
8
6
 
9
7
  /**
10
8
  * You can optionally add a leading icon (i.e. thumbnail) and/or a trailing “remove” icon to a chip.
@@ -23,7 +21,6 @@ export default class XepChipIconComponent extends Component {
23
21
  * @argument [testSelector]
24
22
  * @type {String}
25
23
  */
26
- @argument(optional('string'))
27
24
  @attribute('data-test-chip-icon')
28
25
  testSelector;
29
26
 
@@ -32,6 +29,5 @@ export default class XepChipIconComponent extends Component {
32
29
  * @argument [click]
33
30
  * @type {Action}
34
31
  */
35
- @argument(optional(Action))
36
32
  click;
37
33
  }
@@ -1,18 +1,13 @@
1
- import {
2
- oneOf, optional,
3
- } from '@ember-decorators/argument/types';
4
1
  import Component from '@ember/component';
5
2
  import {
6
3
  classNames, layout, className, attribute,
7
4
  } from '@ember-decorators/component';
8
5
  import template from '@xdam/ember-partials/templates/components/xep-chip-set';
9
- import { alias } from '@ember-decorators/object/computed';
10
- import { argument } from '@ember-decorators/argument';
11
- import { inject as service } from '@ember-decorators/service';
12
- import { computed } from '@ember-decorators/object';
6
+ import { alias } from '@ember/object/computed';
7
+ import { inject as service } from '@ember/service';
13
8
  import { MDCChipSet } from '@material/chips';
14
9
  import { addEventListener, runDisposables } from 'ember-lifeline';
15
- import EmberObject from '@ember/object';
10
+ import EmberObject, { computed } from '@ember/object';
16
11
 
17
12
  const VARIANT_TYPES = {
18
13
  standard: '',
@@ -53,7 +48,6 @@ export default class XepChipSetComponent extends Component {
53
48
  * @argument [testSelector]
54
49
  * @type {String}
55
50
  */
56
- @argument(optional('string'))
57
51
  @attribute('data-test-chip-set')
58
52
  testSelector;
59
53
 
@@ -62,7 +56,6 @@ export default class XepChipSetComponent extends Component {
62
56
  * @argument [register]
63
57
  * @type {String}
64
58
  */
65
- @argument(optional('string'))
66
59
  register;
67
60
 
68
61
  /**
@@ -70,7 +63,6 @@ export default class XepChipSetComponent extends Component {
70
63
  * @argument variant
71
64
  * @type {String}
72
65
  */
73
- @argument(optional(oneOf(...Object.keys(VARIANT_TYPES))))
74
66
  variant = 'standard';
75
67
 
76
68
  // Map of classNames for each variant type
@@ -1,8 +1,6 @@
1
1
  import Component from '@ember/component';
2
2
  import { classNames, layout, attribute } from '@ember-decorators/component';
3
3
  import template from '@xdam/ember-partials/templates/components/xep-chip-text';
4
- import { argument } from '@ember-decorators/argument';
5
- import { optional } from '@ember-decorators/argument/types';
6
4
 
7
5
  @layout(template)
8
6
  @classNames('xep-chip-text', 'mdc-chip__text')
@@ -12,7 +10,6 @@ export default class XepChipTextComponent extends Component {
12
10
  * @argument [testSelector]
13
11
  * @type {String}
14
12
  */
15
- @argument(optional('string'))
16
13
  @attribute('data-test-chip-text')
17
14
  testSelector;
18
15
  }
@@ -3,8 +3,6 @@ import {
3
3
  } from '@ember-decorators/component';
4
4
  import Component from '@ember/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-chip';
6
- import { argument } from '@ember-decorators/argument';
7
- import { optional } from '@ember-decorators/argument/types';
8
6
  import { addEventListener, runDisposables } from 'ember-lifeline';
9
7
 
10
8
  /**
@@ -24,7 +22,6 @@ export default class XepChipComponent extends Component {
24
22
  * @argument [testSelector]
25
23
  * @type {String}
26
24
  */
27
- @argument(optional('string'))
28
25
  @attribute('data-test-chip')
29
26
  testSelector;
30
27
 
@@ -33,7 +30,6 @@ export default class XepChipComponent extends Component {
33
30
  * @argument [tabindex]
34
31
  * @type {Number}
35
32
  */
36
- @argument(optional('number'))
37
33
  @attribute
38
34
  tabindex = 0;
39
35
 
@@ -42,7 +38,6 @@ export default class XepChipComponent extends Component {
42
38
  * @argument [elementId]
43
39
  * @type {String}
44
40
  */
45
- @argument(optional('string'))
46
41
  elementId;
47
42
 
48
43
  /**
@@ -50,7 +45,6 @@ export default class XepChipComponent extends Component {
50
45
  * @argument [selected]
51
46
  * @type {Boolean}
52
47
  */
53
- @argument('boolean')
54
48
  @className('mdc-chip--selected')
55
49
  selected = false;
56
50
 
@@ -60,7 +54,6 @@ export default class XepChipComponent extends Component {
60
54
  * @argument variant
61
55
  * @type {String}
62
56
  */
63
- @argument('string')
64
57
  variant;
65
58
 
66
59
  didInsertElement() {
@@ -3,8 +3,6 @@ import {
3
3
  classNames, layout, tagName, attribute,
4
4
  } from '@ember-decorators/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-dialog-actions';
6
- import { argument } from '@ember-decorators/argument';
7
- import { optional } from '@ember-decorators/argument/types';
8
6
 
9
7
  @tagName('footer')
10
8
  @layout(template)
@@ -15,7 +13,6 @@ export default class XepDialogActionsComponent extends Component {
15
13
  * @argument [testSelector]
16
14
  * @type {String}
17
15
  */
18
- @argument(optional('string'))
19
16
  @attribute('data-test-dialog-actions')
20
17
  testSelector;
21
18
  }
@@ -1,8 +1,6 @@
1
1
  import Component from '@ember/component';
2
2
  import { classNames, layout, attribute } from '@ember-decorators/component';
3
3
  import template from '@xdam/ember-partials/templates/components/xep-dialog-content';
4
- import { argument } from '@ember-decorators/argument';
5
- import { optional } from '@ember-decorators/argument/types';
6
4
 
7
5
  @layout(template)
8
6
  @classNames('xep-dialog-content', 'mdc-dialog__content')
@@ -12,7 +10,6 @@ export default class XepDialogContentComponent extends Component {
12
10
  * @argument [testSelector]
13
11
  * @type {String}
14
12
  */
15
- @argument(optional('string'))
16
13
  @attribute('data-test-dialog-content')
17
14
  testSelector;
18
15
  }