@spectrum-web-components/action-group 0.47.2 → 0.48.0-beta.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/package.json +6 -6
- package/custom-elements.json +0 -451
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/action-group",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@lit-labs/observers": "^2.0.0",
|
|
61
|
-
"@spectrum-web-components/action-button": "^0.
|
|
62
|
-
"@spectrum-web-components/base": "^0.
|
|
63
|
-
"@spectrum-web-components/icons-workflow": "^0.
|
|
64
|
-
"@spectrum-web-components/reactive-controllers": "^0.
|
|
61
|
+
"@spectrum-web-components/action-button": "^0.48.0-beta.0",
|
|
62
|
+
"@spectrum-web-components/base": "^0.48.0-beta.0",
|
|
63
|
+
"@spectrum-web-components/icons-workflow": "^0.48.0-beta.0",
|
|
64
|
+
"@spectrum-web-components/reactive-controllers": "^0.48.0-beta.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@spectrum-css/actiongroup": "^5.1.0"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"./sp-*.js",
|
|
73
73
|
"./**/*.dev.js"
|
|
74
74
|
],
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "9a1377f0402a17b732b96e17ad06b800df6ab52e"
|
|
76
76
|
}
|
package/custom-elements.json
DELETED
|
@@ -1,451 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-action-group.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-action-group",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "ActionGroup",
|
|
15
|
-
"module": "/src/ActionGroup.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/ActionGroup.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "class",
|
|
26
|
-
"description": "",
|
|
27
|
-
"name": "ActionGroup",
|
|
28
|
-
"slots": [
|
|
29
|
-
{
|
|
30
|
-
"description": "the sp-action-button elements that make up the group",
|
|
31
|
-
"name": ""
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"members": [
|
|
35
|
-
{
|
|
36
|
-
"kind": "field",
|
|
37
|
-
"name": "buttons",
|
|
38
|
-
"privacy": "public",
|
|
39
|
-
"type": {
|
|
40
|
-
"text": "ActionButton[]"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"kind": "field",
|
|
45
|
-
"name": "_buttons",
|
|
46
|
-
"type": {
|
|
47
|
-
"text": "ActionButton[]"
|
|
48
|
-
},
|
|
49
|
-
"privacy": "public",
|
|
50
|
-
"default": "[]"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"kind": "field",
|
|
54
|
-
"name": "_buttonSelector",
|
|
55
|
-
"type": {
|
|
56
|
-
"text": "string"
|
|
57
|
-
},
|
|
58
|
-
"privacy": "protected",
|
|
59
|
-
"default": "'sp-action-button, sp-action-menu'"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"kind": "field",
|
|
63
|
-
"name": "rovingTabindexController",
|
|
64
|
-
"default": "new RovingTabindexController<ActionButton>(\n this,\n {\n focusInIndex: (elements: ActionButton[]) => {\n let firstEnabledIndex = -1;\n const firstSelectedIndex = elements.findIndex((el, index) => {\n if (!elements[firstEnabledIndex] && !el.disabled) {\n firstEnabledIndex = index;\n }\n return el.selected && !el.disabled;\n });\n return elements[firstSelectedIndex]\n ? firstSelectedIndex\n : firstEnabledIndex;\n },\n elements: () => this.buttons,\n isFocusableElement: (el: ActionButton) => !el.disabled,\n }\n )"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"kind": "field",
|
|
68
|
-
"name": "compact",
|
|
69
|
-
"type": {
|
|
70
|
-
"text": "boolean"
|
|
71
|
-
},
|
|
72
|
-
"privacy": "public",
|
|
73
|
-
"default": "false",
|
|
74
|
-
"attribute": "compact",
|
|
75
|
-
"reflects": true
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"kind": "field",
|
|
79
|
-
"name": "emphasized",
|
|
80
|
-
"type": {
|
|
81
|
-
"text": "boolean"
|
|
82
|
-
},
|
|
83
|
-
"privacy": "public",
|
|
84
|
-
"default": "false",
|
|
85
|
-
"attribute": "emphasized",
|
|
86
|
-
"reflects": true
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"kind": "field",
|
|
90
|
-
"name": "justified",
|
|
91
|
-
"type": {
|
|
92
|
-
"text": "boolean"
|
|
93
|
-
},
|
|
94
|
-
"privacy": "public",
|
|
95
|
-
"default": "false",
|
|
96
|
-
"attribute": "justified",
|
|
97
|
-
"reflects": true
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"kind": "field",
|
|
101
|
-
"name": "label",
|
|
102
|
-
"type": {
|
|
103
|
-
"text": "string"
|
|
104
|
-
},
|
|
105
|
-
"privacy": "public",
|
|
106
|
-
"default": "''",
|
|
107
|
-
"attribute": "label"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"kind": "field",
|
|
111
|
-
"name": "quiet",
|
|
112
|
-
"type": {
|
|
113
|
-
"text": "boolean"
|
|
114
|
-
},
|
|
115
|
-
"privacy": "public",
|
|
116
|
-
"default": "false",
|
|
117
|
-
"attribute": "quiet",
|
|
118
|
-
"reflects": true
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"kind": "field",
|
|
122
|
-
"name": "selects",
|
|
123
|
-
"type": {
|
|
124
|
-
"text": "undefined | 'single' | 'multiple'"
|
|
125
|
-
},
|
|
126
|
-
"privacy": "public",
|
|
127
|
-
"attribute": "selects"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"kind": "field",
|
|
131
|
-
"name": "static",
|
|
132
|
-
"type": {
|
|
133
|
-
"text": "'white' | 'black' | undefined"
|
|
134
|
-
},
|
|
135
|
-
"privacy": "public",
|
|
136
|
-
"attribute": "static",
|
|
137
|
-
"reflects": true
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"kind": "field",
|
|
141
|
-
"name": "vertical",
|
|
142
|
-
"type": {
|
|
143
|
-
"text": "boolean"
|
|
144
|
-
},
|
|
145
|
-
"privacy": "public",
|
|
146
|
-
"default": "false",
|
|
147
|
-
"attribute": "vertical",
|
|
148
|
-
"reflects": true
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"kind": "field",
|
|
152
|
-
"name": "_selected",
|
|
153
|
-
"type": {
|
|
154
|
-
"text": "string[]"
|
|
155
|
-
},
|
|
156
|
-
"privacy": "private",
|
|
157
|
-
"default": "[]"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"kind": "field",
|
|
161
|
-
"name": "selected",
|
|
162
|
-
"type": {
|
|
163
|
-
"text": "string[]"
|
|
164
|
-
},
|
|
165
|
-
"attribute": "selected"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"kind": "field",
|
|
169
|
-
"name": "slotElement",
|
|
170
|
-
"type": {
|
|
171
|
-
"text": "HTMLSlotElement"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"kind": "method",
|
|
176
|
-
"name": "dispatchChange",
|
|
177
|
-
"privacy": "private",
|
|
178
|
-
"return": {
|
|
179
|
-
"type": {
|
|
180
|
-
"text": "void"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"parameters": [
|
|
184
|
-
{
|
|
185
|
-
"name": "old",
|
|
186
|
-
"type": {
|
|
187
|
-
"text": "string[]"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"kind": "method",
|
|
194
|
-
"name": "setSelected",
|
|
195
|
-
"privacy": "private",
|
|
196
|
-
"return": {
|
|
197
|
-
"type": {
|
|
198
|
-
"text": "void"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
"parameters": [
|
|
202
|
-
{
|
|
203
|
-
"name": "selected",
|
|
204
|
-
"type": {
|
|
205
|
-
"text": "string[]"
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "announce",
|
|
210
|
-
"optional": true,
|
|
211
|
-
"type": {
|
|
212
|
-
"text": "boolean"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"kind": "method",
|
|
219
|
-
"name": "focus",
|
|
220
|
-
"privacy": "public",
|
|
221
|
-
"return": {
|
|
222
|
-
"type": {
|
|
223
|
-
"text": "void"
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
"parameters": [
|
|
227
|
-
{
|
|
228
|
-
"name": "options",
|
|
229
|
-
"optional": true,
|
|
230
|
-
"type": {
|
|
231
|
-
"text": "FocusOptions"
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"kind": "method",
|
|
238
|
-
"name": "deselectSelectedButtons",
|
|
239
|
-
"privacy": "private",
|
|
240
|
-
"return": {
|
|
241
|
-
"type": {
|
|
242
|
-
"text": "void"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"kind": "method",
|
|
248
|
-
"name": "handleActionButtonChange",
|
|
249
|
-
"privacy": "private",
|
|
250
|
-
"return": {
|
|
251
|
-
"type": {
|
|
252
|
-
"text": "void"
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"parameters": [
|
|
256
|
-
{
|
|
257
|
-
"name": "event",
|
|
258
|
-
"type": {
|
|
259
|
-
"text": "Event"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
]
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"kind": "method",
|
|
266
|
-
"name": "handleClick",
|
|
267
|
-
"privacy": "private",
|
|
268
|
-
"return": {
|
|
269
|
-
"type": {
|
|
270
|
-
"text": "void"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"parameters": [
|
|
274
|
-
{
|
|
275
|
-
"name": "event",
|
|
276
|
-
"type": {
|
|
277
|
-
"text": "Event"
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
]
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"kind": "method",
|
|
284
|
-
"name": "applySelects",
|
|
285
|
-
"privacy": "private",
|
|
286
|
-
"return": {
|
|
287
|
-
"type": {
|
|
288
|
-
"text": "Promise<void>"
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"kind": "method",
|
|
294
|
-
"name": "manageSelects",
|
|
295
|
-
"privacy": "private",
|
|
296
|
-
"return": {
|
|
297
|
-
"type": {
|
|
298
|
-
"text": "Promise<void>"
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
"parameters": [
|
|
302
|
-
{
|
|
303
|
-
"name": "applied",
|
|
304
|
-
"optional": true,
|
|
305
|
-
"type": {
|
|
306
|
-
"text": "boolean"
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
]
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"kind": "method",
|
|
313
|
-
"name": "manageChildren",
|
|
314
|
-
"privacy": "private",
|
|
315
|
-
"return": {
|
|
316
|
-
"type": {
|
|
317
|
-
"text": "void"
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"parameters": [
|
|
321
|
-
{
|
|
322
|
-
"name": "changes",
|
|
323
|
-
"optional": true,
|
|
324
|
-
"type": {
|
|
325
|
-
"text": "PropertyValues"
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
]
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"kind": "field",
|
|
332
|
-
"name": "hasManaged",
|
|
333
|
-
"type": {
|
|
334
|
-
"text": "boolean"
|
|
335
|
-
},
|
|
336
|
-
"privacy": "private",
|
|
337
|
-
"default": "false"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"kind": "field",
|
|
341
|
-
"name": "manageButtons",
|
|
342
|
-
"privacy": "private"
|
|
343
|
-
}
|
|
344
|
-
],
|
|
345
|
-
"events": [
|
|
346
|
-
{
|
|
347
|
-
"name": "change",
|
|
348
|
-
"type": {
|
|
349
|
-
"text": "Event"
|
|
350
|
-
},
|
|
351
|
-
"description": "Announces that selection state has been changed by user"
|
|
352
|
-
}
|
|
353
|
-
],
|
|
354
|
-
"attributes": [
|
|
355
|
-
{
|
|
356
|
-
"name": "compact",
|
|
357
|
-
"type": {
|
|
358
|
-
"text": "boolean"
|
|
359
|
-
},
|
|
360
|
-
"default": "false",
|
|
361
|
-
"fieldName": "compact"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"name": "emphasized",
|
|
365
|
-
"type": {
|
|
366
|
-
"text": "boolean"
|
|
367
|
-
},
|
|
368
|
-
"default": "false",
|
|
369
|
-
"fieldName": "emphasized"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"name": "justified",
|
|
373
|
-
"type": {
|
|
374
|
-
"text": "boolean"
|
|
375
|
-
},
|
|
376
|
-
"default": "false",
|
|
377
|
-
"fieldName": "justified"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"name": "label",
|
|
381
|
-
"type": {
|
|
382
|
-
"text": "string"
|
|
383
|
-
},
|
|
384
|
-
"default": "''",
|
|
385
|
-
"fieldName": "label"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"name": "quiet",
|
|
389
|
-
"type": {
|
|
390
|
-
"text": "boolean"
|
|
391
|
-
},
|
|
392
|
-
"default": "false",
|
|
393
|
-
"fieldName": "quiet"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"name": "selects",
|
|
397
|
-
"type": {
|
|
398
|
-
"text": "undefined | 'single' | 'multiple'"
|
|
399
|
-
},
|
|
400
|
-
"fieldName": "selects"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"name": "static",
|
|
404
|
-
"type": {
|
|
405
|
-
"text": "'white' | 'black' | undefined"
|
|
406
|
-
},
|
|
407
|
-
"fieldName": "static"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "vertical",
|
|
411
|
-
"type": {
|
|
412
|
-
"text": "boolean"
|
|
413
|
-
},
|
|
414
|
-
"default": "false",
|
|
415
|
-
"fieldName": "vertical"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"name": "selected",
|
|
419
|
-
"type": {
|
|
420
|
-
"text": "string[]"
|
|
421
|
-
},
|
|
422
|
-
"fieldName": "selected"
|
|
423
|
-
}
|
|
424
|
-
],
|
|
425
|
-
"mixins": [
|
|
426
|
-
{
|
|
427
|
-
"name": "SizedMixin",
|
|
428
|
-
"package": "@spectrum-web-components/base"
|
|
429
|
-
}
|
|
430
|
-
],
|
|
431
|
-
"superclass": {
|
|
432
|
-
"name": "SpectrumElement",
|
|
433
|
-
"package": "@spectrum-web-components/base"
|
|
434
|
-
},
|
|
435
|
-
"tagName": "sp-action-group",
|
|
436
|
-
"customElement": true
|
|
437
|
-
}
|
|
438
|
-
],
|
|
439
|
-
"exports": [
|
|
440
|
-
{
|
|
441
|
-
"kind": "js",
|
|
442
|
-
"name": "ActionGroup",
|
|
443
|
-
"declaration": {
|
|
444
|
-
"name": "ActionGroup",
|
|
445
|
-
"module": "src/ActionGroup.js"
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
}
|
|
450
|
-
]
|
|
451
|
-
}
|