@xdam/ember-partials 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/addon/components/xep-avatar.js +2 -15
- package/addon/components/xep-bubble.js +1 -6
- package/addon/components/xep-button.js +2 -20
- package/addon/components/xep-checkbox.js +1 -11
- package/addon/components/xep-chip-icon.js +0 -4
- package/addon/components/xep-chip-set.js +3 -11
- package/addon/components/xep-chip-text.js +0 -3
- package/addon/components/xep-chip.js +0 -7
- package/addon/components/xep-dialog-actions.js +0 -3
- package/addon/components/xep-dialog-content.js +0 -3
- package/addon/components/xep-dialog-title.js +0 -3
- package/addon/components/xep-dialog.js +2 -10
- package/addon/components/xep-drawer-content.js +0 -3
- package/addon/components/xep-drawer-header.js +0 -3
- package/addon/components/xep-drawer.js +2 -12
- package/addon/components/xep-input.js +1 -37
- package/addon/components/xep-list-divider.js +0 -5
- package/addon/components/xep-list-item-graphic.js +0 -3
- package/addon/components/xep-list-item-meta.js +0 -3
- package/addon/components/xep-list-item-text.js +1 -6
- package/addon/components/xep-list-item.js +0 -8
- package/addon/components/xep-list.js +2 -15
- package/addon/components/xep-menu-surface.js +1 -6
- package/addon/components/xep-menu.js +1 -13
- package/addon/components/xep-radio.js +1 -11
- package/addon/components/xep-slider.js +3 -18
- package/addon/components/xep-snackbar.js +1 -11
- package/addon/components/xep-switch.js +1 -9
- package/addon/components/xep-textarea.js +1 -37
- package/addon/components/xep-toolbar-divider.js +0 -3
- package/addon/components/xep-toolbar-item-icon.js +0 -3
- package/addon/components/xep-toolbar-item-text.js +0 -3
- package/addon/components/xep-toolbar-item.js +0 -4
- package/addon/components/xep-toolbar-section.js +1 -8
- package/addon/components/xep-toolbar.js +2 -17
- package/addon/services/xep-manager.js +1 -1
- package/package.json +13 -14
package/README.md
CHANGED
|
@@ -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 {
|
|
7
|
-
import {
|
|
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 {
|
|
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 {
|
|
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
|
|
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
|
|
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
|
|
10
|
-
import {
|
|
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
|
}
|
|
@@ -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-title';
|
|
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-title', 'mdc-dialog__title')
|
|
@@ -12,7 +10,6 @@ export default class XepDialogTitleComponent extends Component {
|
|
|
12
10
|
* @argument [testSelector]
|
|
13
11
|
* @type {String}
|
|
14
12
|
*/
|
|
15
|
-
@argument(optional('string'))
|
|
16
13
|
@attribute('data-test-dialog-title')
|
|
17
14
|
testSelector;
|
|
18
15
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { classNames, layout, attribute } from '@ember-decorators/component';
|
|
2
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
3
|
-
import { argument } from '@ember-decorators/argument';
|
|
4
2
|
import template from '@xdam/ember-partials/templates/components/xep-dialog';
|
|
5
3
|
import Component from '@ember/component';
|
|
6
|
-
import { inject as service } from '@ember
|
|
4
|
+
import { inject as service } from '@ember/service';
|
|
7
5
|
import { MDCDialog } from '@material/dialog';
|
|
8
|
-
import { alias, readOnly } from '@ember
|
|
6
|
+
import { alias, readOnly } from '@ember/object/computed';
|
|
9
7
|
|
|
10
8
|
import updateDirtyProps from '@xdam/ember-partials/utils/update-dirty-props';
|
|
11
9
|
|
|
@@ -33,7 +31,6 @@ export default class XepDialogComponent extends Component {
|
|
|
33
31
|
* @argument [testSelector]
|
|
34
32
|
* @type {String}
|
|
35
33
|
*/
|
|
36
|
-
@argument(optional('string'))
|
|
37
34
|
@attribute('data-test-dialog')
|
|
38
35
|
testSelector;
|
|
39
36
|
|
|
@@ -72,7 +69,6 @@ export default class XepDialogComponent extends Component {
|
|
|
72
69
|
* @argument [escapeKeyAction]
|
|
73
70
|
* @type {String}
|
|
74
71
|
*/
|
|
75
|
-
@argument(optional('string'))
|
|
76
72
|
escapeKeyAction;
|
|
77
73
|
|
|
78
74
|
/**
|
|
@@ -80,7 +76,6 @@ export default class XepDialogComponent extends Component {
|
|
|
80
76
|
* @argument [scrimClickAction]
|
|
81
77
|
* @type {String}
|
|
82
78
|
*/
|
|
83
|
-
@argument(optional('string'))
|
|
84
79
|
scrimClickAction;
|
|
85
80
|
|
|
86
81
|
/**
|
|
@@ -88,7 +83,6 @@ export default class XepDialogComponent extends Component {
|
|
|
88
83
|
* @argument [autoStackButtons]
|
|
89
84
|
* @type {Boolean}
|
|
90
85
|
*/
|
|
91
|
-
@argument(optional('boolean'))
|
|
92
86
|
autoStackButtons;
|
|
93
87
|
|
|
94
88
|
/**
|
|
@@ -96,7 +90,6 @@ export default class XepDialogComponent extends Component {
|
|
|
96
90
|
* @argument [register]
|
|
97
91
|
* @type {String}
|
|
98
92
|
*/
|
|
99
|
-
@argument(optional('string'))
|
|
100
93
|
register;
|
|
101
94
|
|
|
102
95
|
/**
|
|
@@ -104,7 +97,6 @@ export default class XepDialogComponent extends Component {
|
|
|
104
97
|
* @argument [initialFocusSelector]
|
|
105
98
|
* @type {String}
|
|
106
99
|
*/
|
|
107
|
-
@argument('string')
|
|
108
100
|
initialFocusSelector = '.mdc-dialog__button--default';
|
|
109
101
|
|
|
110
102
|
trackedProps = ['escapeKeyAction', 'scrimClickAction', 'autoStackButtons'];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import Component from '@ember/component';
|
|
2
2
|
import { attribute, classNames, layout } from '@ember-decorators/component';
|
|
3
|
-
import { argument } from '@ember-decorators/argument';
|
|
4
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
5
3
|
import template from '@xdam/ember-partials/templates/components/xep-drawer-content';
|
|
6
4
|
|
|
7
5
|
@layout(template)
|
|
@@ -12,7 +10,6 @@ export default class XepDrawerContentComponent extends Component {
|
|
|
12
10
|
* @argument [testSelector]
|
|
13
11
|
* @type {String}
|
|
14
12
|
*/
|
|
15
|
-
@argument(optional('string'))
|
|
16
13
|
@attribute('data-test-drawer-content')
|
|
17
14
|
testSelector;
|
|
18
15
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import Component from '@ember/component';
|
|
2
2
|
import { classNames, layout, attribute } from '@ember-decorators/component';
|
|
3
|
-
import { argument } from '@ember-decorators/argument';
|
|
4
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
5
3
|
import template from '@xdam/ember-partials/templates/components/xep-drawer-header';
|
|
6
4
|
|
|
7
5
|
@layout(template)
|
|
@@ -12,7 +10,6 @@ export default class XepDrawerHeaderComponent extends Component {
|
|
|
12
10
|
* @argument [testSelector]
|
|
13
11
|
* @type {String}
|
|
14
12
|
*/
|
|
15
|
-
@argument(optional('string'))
|
|
16
13
|
@attribute('data-test-drawer-header')
|
|
17
14
|
testSelector;
|
|
18
15
|
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classNames, layout, tagName, className, attribute,
|
|
3
3
|
} from '@ember-decorators/component';
|
|
4
|
-
import {
|
|
5
|
-
optional, oneOf,
|
|
6
|
-
} from '@ember-decorators/argument/types';
|
|
7
4
|
import Component from '@ember/component';
|
|
8
5
|
import template from '@xdam/ember-partials/templates/components/xep-drawer';
|
|
9
6
|
import { MDCDrawer } from '@material/drawer';
|
|
10
|
-
import EmberObject from '@ember/object';
|
|
11
|
-
import {
|
|
12
|
-
import { computed } from '@ember-decorators/object';
|
|
13
|
-
import { inject as service } from '@ember-decorators/service';
|
|
7
|
+
import EmberObject, { computed } from '@ember/object';
|
|
8
|
+
import { inject as service } from '@ember/service';
|
|
14
9
|
import { addEventListener, runDisposables } from 'ember-lifeline';
|
|
15
10
|
|
|
16
11
|
import updateDirtyProps from '@xdam/ember-partials/utils/update-dirty-props';
|
|
@@ -43,7 +38,6 @@ export default class XepDrawerComponent extends Component {
|
|
|
43
38
|
* @argument [testSelector]
|
|
44
39
|
* @type {String}
|
|
45
40
|
*/
|
|
46
|
-
@argument(optional('string'))
|
|
47
41
|
@attribute('data-test-drawer')
|
|
48
42
|
testSelector;
|
|
49
43
|
|
|
@@ -67,7 +61,6 @@ export default class XepDrawerComponent extends Component {
|
|
|
67
61
|
* @argument open
|
|
68
62
|
* @type {Boolean}
|
|
69
63
|
*/
|
|
70
|
-
@argument('boolean')
|
|
71
64
|
open;
|
|
72
65
|
|
|
73
66
|
/**
|
|
@@ -75,7 +68,6 @@ export default class XepDrawerComponent extends Component {
|
|
|
75
68
|
* @argument register
|
|
76
69
|
* @type {Boolean}
|
|
77
70
|
*/
|
|
78
|
-
@argument(optional('string'))
|
|
79
71
|
register;
|
|
80
72
|
|
|
81
73
|
/**
|
|
@@ -83,7 +75,6 @@ export default class XepDrawerComponent extends Component {
|
|
|
83
75
|
* @argument [variantType]
|
|
84
76
|
* @type {'modal'|'dismissible'}
|
|
85
77
|
*/
|
|
86
|
-
@argument(oneOf(...Object.keys(VARIANT_TYPES)))
|
|
87
78
|
variant = 'dismissible';
|
|
88
79
|
|
|
89
80
|
// Map of classNames for each variant type
|
|
@@ -94,7 +85,6 @@ export default class XepDrawerComponent extends Component {
|
|
|
94
85
|
* @argument [positionType]
|
|
95
86
|
* @type {'left'|'right'}
|
|
96
87
|
*/
|
|
97
|
-
@argument(optional(oneOf(...Object.keys(POSITION_TYPES))))
|
|
98
88
|
positionType = 'left';
|
|
99
89
|
|
|
100
90
|
// Map of classNames for each positionType
|