@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
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classNames, layout, attribute, className,
|
|
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-slider';
|
|
9
6
|
import { MDCSlider } from '@material/slider';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import EmberObject from '@ember/object';
|
|
14
|
-
import { inject as service } from '@ember-decorators/service';
|
|
7
|
+
import { alias } from '@ember/object/computed';
|
|
8
|
+
import EmberObject, { computed } from '@ember/object';
|
|
9
|
+
import { inject as service } from '@ember/service';
|
|
15
10
|
import { addEventListener, runDisposables } from 'ember-lifeline';
|
|
16
11
|
|
|
17
12
|
import updateDirtyProps from '@xdam/ember-partials/utils/update-dirty-props';
|
|
@@ -39,7 +34,6 @@ export default class XepSliderComponent extends Component {
|
|
|
39
34
|
* @argument [testSelector]
|
|
40
35
|
* @type {String}
|
|
41
36
|
*/
|
|
42
|
-
@argument(optional('string'))
|
|
43
37
|
@attribute('data-test-slider')
|
|
44
38
|
testSelector;
|
|
45
39
|
|
|
@@ -92,7 +86,6 @@ export default class XepSliderComponent extends Component {
|
|
|
92
86
|
* @argument [disabled]
|
|
93
87
|
* @type {Boolean}
|
|
94
88
|
*/
|
|
95
|
-
@argument(optional('boolean'))
|
|
96
89
|
disabled;
|
|
97
90
|
|
|
98
91
|
/**
|
|
@@ -100,7 +93,6 @@ export default class XepSliderComponent extends Component {
|
|
|
100
93
|
* @argument [tabindex]
|
|
101
94
|
* @type {Number}
|
|
102
95
|
*/
|
|
103
|
-
@argument('number')
|
|
104
96
|
@attribute
|
|
105
97
|
tabindex = 0;
|
|
106
98
|
|
|
@@ -109,7 +101,6 @@ export default class XepSliderComponent extends Component {
|
|
|
109
101
|
* @argument [discrete]
|
|
110
102
|
* @type {Boolean}
|
|
111
103
|
*/
|
|
112
|
-
@argument(optional('boolean'))
|
|
113
104
|
@className('mdc-slider--discrete')
|
|
114
105
|
discrete;
|
|
115
106
|
|
|
@@ -119,7 +110,6 @@ export default class XepSliderComponent extends Component {
|
|
|
119
110
|
* @argument [step]
|
|
120
111
|
* @type {Number}
|
|
121
112
|
*/
|
|
122
|
-
@argument(optional('number'))
|
|
123
113
|
@attribute('data-step')
|
|
124
114
|
step;
|
|
125
115
|
|
|
@@ -128,7 +118,6 @@ export default class XepSliderComponent extends Component {
|
|
|
128
118
|
* @argument [value]
|
|
129
119
|
* @type {Number}
|
|
130
120
|
*/
|
|
131
|
-
@argument('number')
|
|
132
121
|
value = 0;
|
|
133
122
|
|
|
134
123
|
/**
|
|
@@ -137,7 +126,6 @@ export default class XepSliderComponent extends Component {
|
|
|
137
126
|
* @argument [min]
|
|
138
127
|
* @type {Number}
|
|
139
128
|
*/
|
|
140
|
-
@argument('number')
|
|
141
129
|
min = 0;
|
|
142
130
|
|
|
143
131
|
/**
|
|
@@ -146,7 +134,6 @@ export default class XepSliderComponent extends Component {
|
|
|
146
134
|
* @argument [max]
|
|
147
135
|
* @type {Number}
|
|
148
136
|
*/
|
|
149
|
-
@argument('number')
|
|
150
137
|
max = 100;
|
|
151
138
|
|
|
152
139
|
/**
|
|
@@ -154,7 +141,6 @@ export default class XepSliderComponent extends Component {
|
|
|
154
141
|
* @argument [register]
|
|
155
142
|
* @type {String}
|
|
156
143
|
*/
|
|
157
|
-
@argument(optional('string'))
|
|
158
144
|
register;
|
|
159
145
|
|
|
160
146
|
/**
|
|
@@ -162,7 +148,6 @@ export default class XepSliderComponent extends Component {
|
|
|
162
148
|
* @argument [variantType]
|
|
163
149
|
* @type {String}
|
|
164
150
|
*/
|
|
165
|
-
@argument(optional(oneOf(...Object.keys(VARIANT_TYPES))))
|
|
166
151
|
variant = 'standard';
|
|
167
152
|
|
|
168
153
|
// Map of classNames for each variant type
|
|
@@ -2,11 +2,9 @@ import {
|
|
|
2
2
|
classNames, layout, attribute, className,
|
|
3
3
|
} from '@ember-decorators/component';
|
|
4
4
|
import Component from '@ember/component';
|
|
5
|
-
import { optional, Action } from '@ember-decorators/argument/types';
|
|
6
5
|
import template from '@xdam/ember-partials/templates/components/xep-snackbar';
|
|
7
6
|
import { MDCSnackbar } from '@material/snackbar';
|
|
8
|
-
import {
|
|
9
|
-
import { inject as service } from '@ember-decorators/service';
|
|
7
|
+
import { inject as service } from '@ember/service';
|
|
10
8
|
|
|
11
9
|
import updateDirtyProps from '@xdam/ember-partials/utils/update-dirty-props';
|
|
12
10
|
|
|
@@ -30,7 +28,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
30
28
|
* @argument [closeOnEscape]
|
|
31
29
|
* @type {Boolean}
|
|
32
30
|
*/
|
|
33
|
-
@argument('boolean')
|
|
34
31
|
closeOnEscape = true;
|
|
35
32
|
|
|
36
33
|
/**
|
|
@@ -39,7 +36,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
39
36
|
* @argument [timeoutMs]
|
|
40
37
|
* @type {Number}
|
|
41
38
|
*/
|
|
42
|
-
@argument('number')
|
|
43
39
|
timeoutMs = 5000;
|
|
44
40
|
|
|
45
41
|
/**
|
|
@@ -47,7 +43,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
47
43
|
* @argument [labelText]
|
|
48
44
|
* @type {String}
|
|
49
45
|
*/
|
|
50
|
-
@argument(optional('string'))
|
|
51
46
|
labelText;
|
|
52
47
|
|
|
53
48
|
/**
|
|
@@ -55,7 +50,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
55
50
|
* @argument [actionButtonText]
|
|
56
51
|
* @type {String}
|
|
57
52
|
*/
|
|
58
|
-
@argument(optional('string'))
|
|
59
53
|
actionButtonText;
|
|
60
54
|
|
|
61
55
|
/**
|
|
@@ -63,7 +57,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
63
57
|
* @argument [actionClick]
|
|
64
58
|
* @type {ClosureAction}
|
|
65
59
|
*/
|
|
66
|
-
@argument(optional(Action))
|
|
67
60
|
actionClick = () => null;
|
|
68
61
|
|
|
69
62
|
/**
|
|
@@ -71,7 +64,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
71
64
|
* @argument [testSelector]
|
|
72
65
|
* @type {String}
|
|
73
66
|
*/
|
|
74
|
-
@argument(optional('string'))
|
|
75
67
|
@attribute('data-test-snackbar')
|
|
76
68
|
testSelector;
|
|
77
69
|
|
|
@@ -80,7 +72,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
80
72
|
* @argument [leading]
|
|
81
73
|
* @type {Boolean}
|
|
82
74
|
*/
|
|
83
|
-
@argument('boolean')
|
|
84
75
|
@className('mdc-snackbar--leading')
|
|
85
76
|
leading = false;
|
|
86
77
|
|
|
@@ -89,7 +80,6 @@ export default class XepSnackbarComponent extends Component {
|
|
|
89
80
|
* @argument [register]
|
|
90
81
|
* @type {String}
|
|
91
82
|
*/
|
|
92
|
-
@argument(optional('string'))
|
|
93
83
|
register;
|
|
94
84
|
|
|
95
85
|
trackedProps = ['closeOnEscape', 'timeoutMs', 'labelText', 'actionButtonText'];
|
|
@@ -2,10 +2,8 @@ import Component from '@ember/component';
|
|
|
2
2
|
import { attribute, classNames, layout } from '@ember-decorators/component';
|
|
3
3
|
import template from '@xdam/ember-partials/templates/components/xep-switch';
|
|
4
4
|
import { MDCSwitch } from '@material/switch';
|
|
5
|
-
import { argument } from '@ember-decorators/argument';
|
|
6
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
7
5
|
import { guidFor } from '@ember/object/internals';
|
|
8
|
-
import { inject as service } from '@ember
|
|
6
|
+
import { inject as service } from '@ember/service';
|
|
9
7
|
import { addEventListener, runDisposables } from 'ember-lifeline';
|
|
10
8
|
|
|
11
9
|
import updateDirtyProps from '@xdam/ember-partials/utils/update-dirty-props';
|
|
@@ -27,7 +25,6 @@ export default class XepSwitchComponent extends Component {
|
|
|
27
25
|
* @argument [testSelector]
|
|
28
26
|
* @type {String}
|
|
29
27
|
*/
|
|
30
|
-
@argument(optional('string'))
|
|
31
28
|
@attribute('data-test-switch')
|
|
32
29
|
testSelector;
|
|
33
30
|
|
|
@@ -36,7 +33,6 @@ export default class XepSwitchComponent extends Component {
|
|
|
36
33
|
* @argument [register]
|
|
37
34
|
* @type {String}
|
|
38
35
|
*/
|
|
39
|
-
@argument(optional('string'))
|
|
40
36
|
register;
|
|
41
37
|
|
|
42
38
|
/**
|
|
@@ -44,7 +40,6 @@ export default class XepSwitchComponent extends Component {
|
|
|
44
40
|
* @argument [switchId]
|
|
45
41
|
* @type {String}
|
|
46
42
|
*/
|
|
47
|
-
@argument('string')
|
|
48
43
|
switchId = guidFor(Symbol('Input Id'));
|
|
49
44
|
|
|
50
45
|
/**
|
|
@@ -52,7 +47,6 @@ export default class XepSwitchComponent extends Component {
|
|
|
52
47
|
* @argument [checked]
|
|
53
48
|
* @type {String}
|
|
54
49
|
*/
|
|
55
|
-
@argument(optional('boolean'))
|
|
56
50
|
checked;
|
|
57
51
|
|
|
58
52
|
/**
|
|
@@ -60,7 +54,6 @@ export default class XepSwitchComponent extends Component {
|
|
|
60
54
|
* @argument [disabled]
|
|
61
55
|
* @type {String}
|
|
62
56
|
*/
|
|
63
|
-
@argument(optional('boolean'))
|
|
64
57
|
disabled;
|
|
65
58
|
|
|
66
59
|
/**
|
|
@@ -68,7 +61,6 @@ export default class XepSwitchComponent extends Component {
|
|
|
68
61
|
* @argument [label]
|
|
69
62
|
* @type {String}
|
|
70
63
|
*/
|
|
71
|
-
@argument(optional('string'))
|
|
72
64
|
label;
|
|
73
65
|
|
|
74
66
|
trackedProps = ['disabled', 'checked']
|
|
@@ -3,11 +3,9 @@ import {
|
|
|
3
3
|
} from '@ember-decorators/component';
|
|
4
4
|
import Component from '@ember/component';
|
|
5
5
|
import { MDCTextField, MDCTextFieldHelperText } from '@material/textfield';
|
|
6
|
-
import { argument } from '@ember-decorators/argument';
|
|
7
|
-
import { optional, oneOf, Action } from '@ember-decorators/argument/types';
|
|
8
6
|
import template from '@xdam/ember-partials/templates/components/xep-textarea';
|
|
9
7
|
import { guidFor } from '@ember/object/internals';
|
|
10
|
-
import { inject as service } from '@ember
|
|
8
|
+
import { inject as service } from '@ember/service';
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* Component `<textarea>` element. Implements [material design's
|
|
@@ -28,7 +26,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
28
26
|
* @argument [testSelector]
|
|
29
27
|
* @type {String}
|
|
30
28
|
*/
|
|
31
|
-
@argument(optional('string'))
|
|
32
29
|
@attribute('data-test-textarea')
|
|
33
30
|
testSelector;
|
|
34
31
|
|
|
@@ -37,7 +34,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
37
34
|
* @argument [cols]
|
|
38
35
|
* @type {Boolean}
|
|
39
36
|
*/
|
|
40
|
-
@argument(optional('number'))
|
|
41
37
|
cols;
|
|
42
38
|
|
|
43
39
|
/**
|
|
@@ -45,7 +41,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
45
41
|
* @argument [rows]
|
|
46
42
|
* @type {Boolean}
|
|
47
43
|
*/
|
|
48
|
-
@argument(optional('number'))
|
|
49
44
|
rows;
|
|
50
45
|
|
|
51
46
|
/**
|
|
@@ -53,7 +48,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
53
48
|
* @argument [rows]
|
|
54
49
|
* @type {Boolean}
|
|
55
50
|
*/
|
|
56
|
-
@argument(optional(oneOf('hard', 'soft', 'off')))
|
|
57
51
|
wrap;
|
|
58
52
|
|
|
59
53
|
/**
|
|
@@ -61,7 +55,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
61
55
|
* @argument [minlength]
|
|
62
56
|
* @type {Number}
|
|
63
57
|
*/
|
|
64
|
-
@argument(optional('number'))
|
|
65
58
|
minlength;
|
|
66
59
|
|
|
67
60
|
/**
|
|
@@ -69,7 +62,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
69
62
|
* @argument [maxlength]
|
|
70
63
|
* @type {Number}
|
|
71
64
|
*/
|
|
72
|
-
@argument(optional('number'))
|
|
73
65
|
maxlength;
|
|
74
66
|
|
|
75
67
|
/**
|
|
@@ -77,7 +69,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
77
69
|
* @argument [placeholder]
|
|
78
70
|
* @type {String}
|
|
79
71
|
*/
|
|
80
|
-
@argument(optional('string'))
|
|
81
72
|
placeholder;
|
|
82
73
|
|
|
83
74
|
/**
|
|
@@ -85,7 +76,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
85
76
|
* @argument [value]
|
|
86
77
|
* @type {String}
|
|
87
78
|
*/
|
|
88
|
-
@argument(optional('string'))
|
|
89
79
|
value;
|
|
90
80
|
|
|
91
81
|
/**
|
|
@@ -93,7 +83,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
93
83
|
* @argument [autofocus]
|
|
94
84
|
* @type {Boolean}
|
|
95
85
|
*/
|
|
96
|
-
@argument(optional('boolean'))
|
|
97
86
|
autofocus;
|
|
98
87
|
|
|
99
88
|
/**
|
|
@@ -101,7 +90,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
101
90
|
* @argument [autocomplete]
|
|
102
91
|
* @type {String}
|
|
103
92
|
*/
|
|
104
|
-
@argument(optional(oneOf('off', 'on')))
|
|
105
93
|
autocomplete;
|
|
106
94
|
|
|
107
95
|
/**
|
|
@@ -109,7 +97,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
109
97
|
* @argument [autocapitalize]
|
|
110
98
|
* @type {String}
|
|
111
99
|
*/
|
|
112
|
-
@argument(optional(oneOf('none', 'words', 'characters', 'sentences')))
|
|
113
100
|
autocapitalize;
|
|
114
101
|
|
|
115
102
|
/**
|
|
@@ -117,7 +104,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
117
104
|
* @argument [required]
|
|
118
105
|
* @type {Boolean}
|
|
119
106
|
*/
|
|
120
|
-
@argument(optional('boolean'))
|
|
121
107
|
required;
|
|
122
108
|
|
|
123
109
|
/**
|
|
@@ -125,7 +111,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
125
111
|
* @argument [step]
|
|
126
112
|
* @type {Number}
|
|
127
113
|
*/
|
|
128
|
-
@argument(optional('number'))
|
|
129
114
|
step;
|
|
130
115
|
|
|
131
116
|
/**
|
|
@@ -133,7 +118,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
133
118
|
* @argument [pattern]
|
|
134
119
|
* @type {String}
|
|
135
120
|
*/
|
|
136
|
-
@argument(optional('string'))
|
|
137
121
|
pattern;
|
|
138
122
|
|
|
139
123
|
/**
|
|
@@ -141,7 +125,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
141
125
|
* @argument [multiple]
|
|
142
126
|
* @type {Boolean}
|
|
143
127
|
*/
|
|
144
|
-
@argument(optional('boolean'))
|
|
145
128
|
multiple;
|
|
146
129
|
|
|
147
130
|
/**
|
|
@@ -149,7 +132,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
149
132
|
* @argument [readonly]
|
|
150
133
|
* @type {Boolean}
|
|
151
134
|
*/
|
|
152
|
-
@argument(optional('boolean'))
|
|
153
135
|
readonly;
|
|
154
136
|
|
|
155
137
|
/**
|
|
@@ -157,7 +139,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
157
139
|
* @argument [spellcheck]
|
|
158
140
|
* @type {Boolean}
|
|
159
141
|
*/
|
|
160
|
-
@argument(optional('boolean'))
|
|
161
142
|
spellcheck;
|
|
162
143
|
|
|
163
144
|
/**
|
|
@@ -165,7 +146,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
165
146
|
* @argument [disabled]
|
|
166
147
|
* @type {Boolean}
|
|
167
148
|
*/
|
|
168
|
-
@argument(optional('boolean'))
|
|
169
149
|
@className('mdc-text-field--disabled')
|
|
170
150
|
disabled;
|
|
171
151
|
|
|
@@ -174,7 +154,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
174
154
|
* @argument [outlined]
|
|
175
155
|
* @type {Boolean}
|
|
176
156
|
*/
|
|
177
|
-
@argument(optional('boolean'))
|
|
178
157
|
@className('mdc-text-field--outlined')
|
|
179
158
|
outlined;
|
|
180
159
|
|
|
@@ -183,7 +162,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
183
162
|
* @argument [tabindex]
|
|
184
163
|
* @type {Number}
|
|
185
164
|
*/
|
|
186
|
-
@argument(optional('number'))
|
|
187
165
|
tabindex;
|
|
188
166
|
|
|
189
167
|
/**
|
|
@@ -191,7 +169,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
191
169
|
* @argument [type]
|
|
192
170
|
* @type {String}
|
|
193
171
|
*/
|
|
194
|
-
@argument(optional('string'))
|
|
195
172
|
type;
|
|
196
173
|
|
|
197
174
|
/**
|
|
@@ -199,7 +176,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
199
176
|
* @argument [dense]
|
|
200
177
|
* @type {Boolean}
|
|
201
178
|
*/
|
|
202
|
-
@argument(optional('boolean'))
|
|
203
179
|
@className('mdc-text-field--dense')
|
|
204
180
|
dense;
|
|
205
181
|
|
|
@@ -208,7 +184,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
208
184
|
* @argument [fullWidth]
|
|
209
185
|
* @type {Boolean}
|
|
210
186
|
*/
|
|
211
|
-
@argument(optional('boolean'))
|
|
212
187
|
@className('mdc-text-field--fullwidth')
|
|
213
188
|
fullWidth;
|
|
214
189
|
|
|
@@ -217,7 +192,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
217
192
|
* @argument [label]
|
|
218
193
|
* @type {String}
|
|
219
194
|
*/
|
|
220
|
-
@argument(optional('string'))
|
|
221
195
|
label;
|
|
222
196
|
|
|
223
197
|
/**
|
|
@@ -226,7 +200,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
226
200
|
* @argument [helperText]
|
|
227
201
|
* @type {String}
|
|
228
202
|
*/
|
|
229
|
-
@argument(optional('string'))
|
|
230
203
|
helperText;
|
|
231
204
|
|
|
232
205
|
/**
|
|
@@ -234,7 +207,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
234
207
|
* @argument [persistentHelpText]
|
|
235
208
|
* @type {Boolean}
|
|
236
209
|
*/
|
|
237
|
-
@argument(optional('boolean'))
|
|
238
210
|
persistentHelperText;
|
|
239
211
|
|
|
240
212
|
/**
|
|
@@ -242,7 +214,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
242
214
|
* @argument [validationHelperText]
|
|
243
215
|
* @type {Boolean}
|
|
244
216
|
*/
|
|
245
|
-
@argument(optional('boolean'))
|
|
246
217
|
validationHelperText;
|
|
247
218
|
|
|
248
219
|
/**
|
|
@@ -250,7 +221,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
250
221
|
* @argument [handleKeyDown]
|
|
251
222
|
* @type {Action}
|
|
252
223
|
*/
|
|
253
|
-
@argument(optional(Action))
|
|
254
224
|
handleKeyDown;
|
|
255
225
|
|
|
256
226
|
/**
|
|
@@ -258,7 +228,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
258
228
|
* @argument [handleFocusIn]
|
|
259
229
|
* @type {Action}
|
|
260
230
|
*/
|
|
261
|
-
@argument(optional(Action))
|
|
262
231
|
handleFocusIn;
|
|
263
232
|
|
|
264
233
|
/**
|
|
@@ -266,7 +235,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
266
235
|
* @argument [handleFocusOut]
|
|
267
236
|
* @type {Action}
|
|
268
237
|
*/
|
|
269
|
-
@argument(optional(Action))
|
|
270
238
|
handleFocusOut;
|
|
271
239
|
|
|
272
240
|
/**
|
|
@@ -274,7 +242,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
274
242
|
* @argument [handleChange]
|
|
275
243
|
* @type {Action}
|
|
276
244
|
*/
|
|
277
|
-
@argument(optional(Action))
|
|
278
245
|
handleChange;
|
|
279
246
|
|
|
280
247
|
/**
|
|
@@ -282,7 +249,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
282
249
|
* @argument [handleInput]
|
|
283
250
|
* @type {Action}
|
|
284
251
|
*/
|
|
285
|
-
@argument(optional(Action))
|
|
286
252
|
handleInput;
|
|
287
253
|
|
|
288
254
|
/**
|
|
@@ -290,7 +256,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
290
256
|
* @argument [textareaId]
|
|
291
257
|
* @type {String}
|
|
292
258
|
*/
|
|
293
|
-
@argument('string')
|
|
294
259
|
textareaId = guidFor(Symbol('Textarea Id'));
|
|
295
260
|
|
|
296
261
|
/**
|
|
@@ -298,7 +263,6 @@ export default class XepTextareaComponent extends Component {
|
|
|
298
263
|
* @argument [register]
|
|
299
264
|
* @type {String}
|
|
300
265
|
*/
|
|
301
|
-
@argument(optional('string'))
|
|
302
266
|
register;
|
|
303
267
|
|
|
304
268
|
didInsertElement() {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import Component from '@ember/component';
|
|
2
2
|
import { attribute, classNames, layout } from '@ember-decorators/component';
|
|
3
3
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-divider';
|
|
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-toolbar__divider')
|
|
@@ -12,7 +10,6 @@ export default class XepToolbarDividerComponent extends Component {
|
|
|
12
10
|
* @argument [testSelector]
|
|
13
11
|
* @type {String}
|
|
14
12
|
*/
|
|
15
|
-
@argument(optional('string'))
|
|
16
13
|
@attribute('data-test-toolbar-divider')
|
|
17
14
|
testSelector;
|
|
18
15
|
}
|
|
@@ -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-toolbar-item-icon';
|
|
6
|
-
import { argument } from '@ember-decorators/argument';
|
|
7
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
8
6
|
|
|
9
7
|
@layout(template)
|
|
10
8
|
@tagName('span')
|
|
@@ -15,7 +13,6 @@ export default class XepToolbarItemIconComponent extends Component {
|
|
|
15
13
|
* @argument [testSelector]
|
|
16
14
|
* @type {String}
|
|
17
15
|
*/
|
|
18
|
-
@argument(optional('string'))
|
|
19
16
|
@attribute('data-test-toolbar-item-icon')
|
|
20
17
|
testSelector;
|
|
21
18
|
}
|
|
@@ -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-toolbar-item-text';
|
|
6
|
-
import { argument } from '@ember-decorators/argument';
|
|
7
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
8
6
|
|
|
9
7
|
@layout(template)
|
|
10
8
|
@tagName('span')
|
|
@@ -15,7 +13,6 @@ export default class XepToolbarItemTextComponent extends Component {
|
|
|
15
13
|
* @argument [testSelector]
|
|
16
14
|
* @type {String}
|
|
17
15
|
*/
|
|
18
|
-
@argument(optional('string'))
|
|
19
16
|
@attribute('data-test-toolbar-item-text')
|
|
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-toolbar-item';
|
|
4
|
-
import { argument } from '@ember-decorators/argument';
|
|
5
|
-
import { optional, Action } from '@ember-decorators/argument/types';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Toolbar items are used to expose actions, page titles, breadcrumbs, etc... within
|
|
@@ -23,7 +21,6 @@ export default class XepToolbarItemComponent extends Component {
|
|
|
23
21
|
* @argument [testSelector]
|
|
24
22
|
* @type {String}
|
|
25
23
|
*/
|
|
26
|
-
@argument(optional('string'))
|
|
27
24
|
@attribute('data-test-toolbar-item')
|
|
28
25
|
testSelector;
|
|
29
26
|
|
|
@@ -32,6 +29,5 @@ export default class XepToolbarItemComponent extends Component {
|
|
|
32
29
|
* @argument [click]
|
|
33
30
|
* @type {Action}
|
|
34
31
|
*/
|
|
35
|
-
@argument(optional(Action))
|
|
36
32
|
click;
|
|
37
33
|
}
|
|
@@ -3,10 +3,7 @@ import {
|
|
|
3
3
|
classNames, layout, tagName, className, attribute,
|
|
4
4
|
} from '@ember-decorators/component';
|
|
5
5
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-section';
|
|
6
|
-
import {
|
|
7
|
-
import { optional, oneOf, Action } from '@ember-decorators/argument/types';
|
|
8
|
-
import { computed } from '@ember-decorators/object';
|
|
9
|
-
import EmberObject from '@ember/object';
|
|
6
|
+
import EmberObject, { computed } from '@ember/object';
|
|
10
7
|
|
|
11
8
|
const ALIGN_TYPES = {
|
|
12
9
|
// Makes section align to the start.
|
|
@@ -39,7 +36,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
39
36
|
* @argument [testSelector]
|
|
40
37
|
* @type {String}
|
|
41
38
|
*/
|
|
42
|
-
@argument(optional('string'))
|
|
43
39
|
@attribute('data-test-toolbar-section')
|
|
44
40
|
testSelector;
|
|
45
41
|
|
|
@@ -48,7 +44,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
48
44
|
* @argument [align]
|
|
49
45
|
* @type {String}
|
|
50
46
|
*/
|
|
51
|
-
@argument(optional(oneOf(...Object.keys(ALIGN_TYPES))))
|
|
52
47
|
align = 'start';
|
|
53
48
|
|
|
54
49
|
// Map of classNames for each alignment type
|
|
@@ -73,7 +68,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
73
68
|
* @argument [flex]
|
|
74
69
|
* @type {String}
|
|
75
70
|
*/
|
|
76
|
-
@argument(optional(oneOf(...Object.keys(FLEX_TYPES))))
|
|
77
71
|
flex = 'grow';
|
|
78
72
|
|
|
79
73
|
// Map of classNames for each flex type
|
|
@@ -97,6 +91,5 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
97
91
|
* @argument [click]
|
|
98
92
|
* @type {Action}
|
|
99
93
|
*/
|
|
100
|
-
@argument(optional(Action))
|
|
101
94
|
click;
|
|
102
95
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classNames, layout, className, attribute,
|
|
3
3
|
} from '@ember-decorators/component';
|
|
4
|
-
import {
|
|
5
|
-
optional, oneOf, shapeOf,
|
|
6
|
-
} from '@ember-decorators/argument/types';
|
|
7
4
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar';
|
|
8
|
-
import { argument } from '@ember-decorators/argument';
|
|
9
|
-
import { computed } from '@ember-decorators/object';
|
|
10
5
|
import Component from '@ember/component';
|
|
11
|
-
import EmberObject from '@ember/object';
|
|
12
|
-
import { inject as service } from '@ember
|
|
6
|
+
import EmberObject, { computed } from '@ember/object';
|
|
7
|
+
import { inject as service } from '@ember/service';
|
|
13
8
|
|
|
14
9
|
import styleString from '@xdam/ember-partials/utils/style-string';
|
|
15
10
|
|
|
@@ -40,7 +35,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
40
35
|
* @argument [testSelector]
|
|
41
36
|
* @type {String}
|
|
42
37
|
*/
|
|
43
|
-
@argument(optional('string'))
|
|
44
38
|
@attribute('data-test-toolbar')
|
|
45
39
|
testSelector;
|
|
46
40
|
|
|
@@ -49,7 +43,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
49
43
|
* @argument [register]
|
|
50
44
|
* @type {String}
|
|
51
45
|
*/
|
|
52
|
-
@argument(optional('string'))
|
|
53
46
|
register;
|
|
54
47
|
|
|
55
48
|
/**
|
|
@@ -57,12 +50,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
57
50
|
* @argument [position]
|
|
58
51
|
* @type {Object<top: String, right: String, bottom: String, left: String>}
|
|
59
52
|
*/
|
|
60
|
-
@argument(optional(shapeOf({
|
|
61
|
-
top: optional('string'),
|
|
62
|
-
right: optional('string'),
|
|
63
|
-
bottom: optional('string'),
|
|
64
|
-
left: optional('string'),
|
|
65
|
-
})))
|
|
66
53
|
position;
|
|
67
54
|
|
|
68
55
|
/**
|
|
@@ -70,7 +57,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
70
57
|
* @argument [orientation]
|
|
71
58
|
* @type {"horizontal"|"vertical"}
|
|
72
59
|
*/
|
|
73
|
-
@argument(oneOf('horizontal', 'vertical'))
|
|
74
60
|
orientation = 'horizontal';
|
|
75
61
|
|
|
76
62
|
/**
|
|
@@ -78,7 +64,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
78
64
|
* @argument [variantType]
|
|
79
65
|
* @type {String}
|
|
80
66
|
*/
|
|
81
|
-
@argument(optional(oneOf(...Object.keys(VARIANT_TYPES))))
|
|
82
67
|
variant = 'standard';
|
|
83
68
|
|
|
84
69
|
// Map of classNames for each variant type
|