@spectrum-web-components/action-group 0.49.0-beta.2 → 0.49.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.
@@ -0,0 +1,470 @@
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
+ "deprecated": "Use `staticColor` instead.",
137
+ "attribute": "static",
138
+ "reflects": true
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "staticColor",
143
+ "type": {
144
+ "text": "'white' | 'black' | undefined"
145
+ },
146
+ "privacy": "public",
147
+ "attribute": "static-color",
148
+ "reflects": true
149
+ },
150
+ {
151
+ "kind": "field",
152
+ "name": "vertical",
153
+ "type": {
154
+ "text": "boolean"
155
+ },
156
+ "privacy": "public",
157
+ "default": "false",
158
+ "attribute": "vertical",
159
+ "reflects": true
160
+ },
161
+ {
162
+ "kind": "field",
163
+ "name": "_selected",
164
+ "type": {
165
+ "text": "string[]"
166
+ },
167
+ "privacy": "private",
168
+ "default": "[]"
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "selected",
173
+ "type": {
174
+ "text": "string[]"
175
+ },
176
+ "attribute": "selected"
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "slotElement",
181
+ "type": {
182
+ "text": "HTMLSlotElement"
183
+ }
184
+ },
185
+ {
186
+ "kind": "method",
187
+ "name": "dispatchChange",
188
+ "privacy": "private",
189
+ "return": {
190
+ "type": {
191
+ "text": "void"
192
+ }
193
+ },
194
+ "parameters": [
195
+ {
196
+ "name": "old",
197
+ "type": {
198
+ "text": "string[]"
199
+ }
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "kind": "method",
205
+ "name": "setSelected",
206
+ "privacy": "private",
207
+ "return": {
208
+ "type": {
209
+ "text": "void"
210
+ }
211
+ },
212
+ "parameters": [
213
+ {
214
+ "name": "selected",
215
+ "type": {
216
+ "text": "string[]"
217
+ }
218
+ },
219
+ {
220
+ "name": "announce",
221
+ "optional": true,
222
+ "type": {
223
+ "text": "boolean"
224
+ }
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "kind": "method",
230
+ "name": "focus",
231
+ "privacy": "public",
232
+ "return": {
233
+ "type": {
234
+ "text": "void"
235
+ }
236
+ },
237
+ "parameters": [
238
+ {
239
+ "name": "options",
240
+ "optional": true,
241
+ "type": {
242
+ "text": "FocusOptions"
243
+ }
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "kind": "method",
249
+ "name": "deselectSelectedButtons",
250
+ "privacy": "private",
251
+ "return": {
252
+ "type": {
253
+ "text": "void"
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "kind": "method",
259
+ "name": "handleActionButtonChange",
260
+ "privacy": "private",
261
+ "return": {
262
+ "type": {
263
+ "text": "void"
264
+ }
265
+ },
266
+ "parameters": [
267
+ {
268
+ "name": "event",
269
+ "type": {
270
+ "text": "Event"
271
+ }
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "kind": "method",
277
+ "name": "handleClick",
278
+ "privacy": "private",
279
+ "return": {
280
+ "type": {
281
+ "text": "void"
282
+ }
283
+ },
284
+ "parameters": [
285
+ {
286
+ "name": "event",
287
+ "type": {
288
+ "text": "Event"
289
+ }
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ "kind": "method",
295
+ "name": "applySelects",
296
+ "privacy": "private",
297
+ "return": {
298
+ "type": {
299
+ "text": "Promise<void>"
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "kind": "method",
305
+ "name": "manageSelects",
306
+ "privacy": "private",
307
+ "return": {
308
+ "type": {
309
+ "text": "Promise<void>"
310
+ }
311
+ },
312
+ "parameters": [
313
+ {
314
+ "name": "applied",
315
+ "optional": true,
316
+ "type": {
317
+ "text": "boolean"
318
+ }
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "kind": "method",
324
+ "name": "manageChildren",
325
+ "privacy": "private",
326
+ "return": {
327
+ "type": {
328
+ "text": "void"
329
+ }
330
+ },
331
+ "parameters": [
332
+ {
333
+ "name": "changes",
334
+ "optional": true,
335
+ "type": {
336
+ "text": "PropertyValues"
337
+ }
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "kind": "field",
343
+ "name": "hasManaged",
344
+ "type": {
345
+ "text": "boolean"
346
+ },
347
+ "privacy": "private",
348
+ "default": "false"
349
+ },
350
+ {
351
+ "kind": "field",
352
+ "name": "manageButtons",
353
+ "privacy": "private"
354
+ }
355
+ ],
356
+ "events": [
357
+ {
358
+ "name": "change",
359
+ "type": {
360
+ "text": "Event"
361
+ },
362
+ "description": "Announces that selection state has been changed by user"
363
+ }
364
+ ],
365
+ "attributes": [
366
+ {
367
+ "name": "compact",
368
+ "type": {
369
+ "text": "boolean"
370
+ },
371
+ "default": "false",
372
+ "fieldName": "compact"
373
+ },
374
+ {
375
+ "name": "emphasized",
376
+ "type": {
377
+ "text": "boolean"
378
+ },
379
+ "default": "false",
380
+ "fieldName": "emphasized"
381
+ },
382
+ {
383
+ "name": "justified",
384
+ "type": {
385
+ "text": "boolean"
386
+ },
387
+ "default": "false",
388
+ "fieldName": "justified"
389
+ },
390
+ {
391
+ "name": "label",
392
+ "type": {
393
+ "text": "string"
394
+ },
395
+ "default": "''",
396
+ "fieldName": "label"
397
+ },
398
+ {
399
+ "name": "quiet",
400
+ "type": {
401
+ "text": "boolean"
402
+ },
403
+ "default": "false",
404
+ "fieldName": "quiet"
405
+ },
406
+ {
407
+ "name": "selects",
408
+ "type": {
409
+ "text": "undefined | 'single' | 'multiple'"
410
+ },
411
+ "fieldName": "selects"
412
+ },
413
+ {
414
+ "name": "static",
415
+ "type": {
416
+ "text": "'white' | 'black' | undefined"
417
+ },
418
+ "deprecated": "Use `staticColor` instead.",
419
+ "fieldName": "static"
420
+ },
421
+ {
422
+ "name": "static-color",
423
+ "type": {
424
+ "text": "'white' | 'black' | undefined"
425
+ },
426
+ "fieldName": "staticColor"
427
+ },
428
+ {
429
+ "name": "vertical",
430
+ "type": {
431
+ "text": "boolean"
432
+ },
433
+ "default": "false",
434
+ "fieldName": "vertical"
435
+ },
436
+ {
437
+ "name": "selected",
438
+ "type": {
439
+ "text": "string[]"
440
+ },
441
+ "fieldName": "selected"
442
+ }
443
+ ],
444
+ "mixins": [
445
+ {
446
+ "name": "SizedMixin",
447
+ "package": "@spectrum-web-components/base"
448
+ }
449
+ ],
450
+ "superclass": {
451
+ "name": "SpectrumElement",
452
+ "package": "@spectrum-web-components/base"
453
+ },
454
+ "tagName": "sp-action-group",
455
+ "customElement": true
456
+ }
457
+ ],
458
+ "exports": [
459
+ {
460
+ "kind": "js",
461
+ "name": "ActionGroup",
462
+ "declaration": {
463
+ "name": "ActionGroup",
464
+ "module": "src/ActionGroup.js"
465
+ }
466
+ }
467
+ ]
468
+ }
469
+ ]
470
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/action-group",
3
- "version": "0.49.0-beta.2",
3
+ "version": "0.49.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.49.0-beta.2",
62
- "@spectrum-web-components/base": "^0.49.0-beta.2",
63
- "@spectrum-web-components/icons-workflow": "^0.49.0-beta.2",
64
- "@spectrum-web-components/reactive-controllers": "^0.49.0-beta.2"
61
+ "@spectrum-web-components/action-button": "^0.49.0",
62
+ "@spectrum-web-components/base": "^0.49.0",
63
+ "@spectrum-web-components/icons-workflow": "^0.49.0",
64
+ "@spectrum-web-components/reactive-controllers": "^0.49.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": "2a8752a182e31dfd71c010b72bece20b0b5d1c9e"
75
+ "gitHead": "088e84caa1e2f723d735b011608ca0a3411e2149"
76
76
  }