@spectrum-web-components/action-group 0.12.7-react.48 → 0.12.7-react.50

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,391 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-action-group.ts",
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.ts",
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'"
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": "vertical",
132
+ "type": {
133
+ "text": "boolean"
134
+ },
135
+ "privacy": "public",
136
+ "default": "false",
137
+ "attribute": "vertical",
138
+ "reflects": true
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "_selected",
143
+ "type": {
144
+ "text": "string[]"
145
+ },
146
+ "privacy": "private",
147
+ "default": "[]"
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "selected",
152
+ "type": {
153
+ "text": "string[]"
154
+ },
155
+ "attribute": "selected"
156
+ },
157
+ {
158
+ "kind": "method",
159
+ "name": "dispatchChange",
160
+ "privacy": "private",
161
+ "return": {
162
+ "type": {
163
+ "text": "void"
164
+ }
165
+ },
166
+ "parameters": [
167
+ {
168
+ "name": "old",
169
+ "type": {
170
+ "text": "string[]"
171
+ }
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "kind": "method",
177
+ "name": "setSelected",
178
+ "privacy": "private",
179
+ "return": {
180
+ "type": {
181
+ "text": "void"
182
+ }
183
+ },
184
+ "parameters": [
185
+ {
186
+ "name": "selected",
187
+ "type": {
188
+ "text": "string[]"
189
+ }
190
+ },
191
+ {
192
+ "name": "announce",
193
+ "optional": true,
194
+ "type": {
195
+ "text": "boolean"
196
+ }
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "kind": "method",
202
+ "name": "focus",
203
+ "privacy": "public",
204
+ "return": {
205
+ "type": {
206
+ "text": "void"
207
+ }
208
+ },
209
+ "parameters": [
210
+ {
211
+ "name": "options",
212
+ "optional": true,
213
+ "type": {
214
+ "text": "FocusOptions"
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "kind": "method",
221
+ "name": "deselectSelectedButtons",
222
+ "privacy": "private",
223
+ "return": {
224
+ "type": {
225
+ "text": "void"
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "kind": "method",
231
+ "name": "handleClick",
232
+ "privacy": "private",
233
+ "return": {
234
+ "type": {
235
+ "text": "void"
236
+ }
237
+ },
238
+ "parameters": [
239
+ {
240
+ "name": "event",
241
+ "type": {
242
+ "text": "Event"
243
+ }
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "kind": "method",
249
+ "name": "applySelects",
250
+ "privacy": "private",
251
+ "return": {
252
+ "type": {
253
+ "text": "Promise<void>"
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "kind": "method",
259
+ "name": "manageSelects",
260
+ "privacy": "private",
261
+ "return": {
262
+ "type": {
263
+ "text": "Promise<void>"
264
+ }
265
+ },
266
+ "parameters": [
267
+ {
268
+ "name": "applied",
269
+ "optional": true,
270
+ "type": {
271
+ "text": "boolean"
272
+ }
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "kind": "method",
278
+ "name": "manageChildren",
279
+ "privacy": "private",
280
+ "return": {
281
+ "type": {
282
+ "text": "void"
283
+ }
284
+ }
285
+ },
286
+ {
287
+ "kind": "field",
288
+ "name": "manageButtons",
289
+ "privacy": "private"
290
+ }
291
+ ],
292
+ "events": [
293
+ {
294
+ "name": "change",
295
+ "type": {
296
+ "text": "Event"
297
+ },
298
+ "description": "Announces that selection state has been changed by user"
299
+ }
300
+ ],
301
+ "attributes": [
302
+ {
303
+ "name": "compact",
304
+ "type": {
305
+ "text": "boolean"
306
+ },
307
+ "default": "false",
308
+ "fieldName": "compact"
309
+ },
310
+ {
311
+ "name": "emphasized",
312
+ "type": {
313
+ "text": "boolean"
314
+ },
315
+ "default": "false",
316
+ "fieldName": "emphasized"
317
+ },
318
+ {
319
+ "name": "justified",
320
+ "type": {
321
+ "text": "boolean"
322
+ },
323
+ "default": "false",
324
+ "fieldName": "justified"
325
+ },
326
+ {
327
+ "name": "label",
328
+ "type": {
329
+ "text": "string"
330
+ },
331
+ "default": "''",
332
+ "fieldName": "label"
333
+ },
334
+ {
335
+ "name": "quiet",
336
+ "type": {
337
+ "text": "boolean"
338
+ },
339
+ "default": "false",
340
+ "fieldName": "quiet"
341
+ },
342
+ {
343
+ "name": "selects",
344
+ "type": {
345
+ "text": "undefined | 'single' | 'multiple'"
346
+ },
347
+ "fieldName": "selects"
348
+ },
349
+ {
350
+ "name": "vertical",
351
+ "type": {
352
+ "text": "boolean"
353
+ },
354
+ "default": "false",
355
+ "fieldName": "vertical"
356
+ },
357
+ {
358
+ "name": "selected",
359
+ "type": {
360
+ "text": "string[]"
361
+ },
362
+ "fieldName": "selected"
363
+ }
364
+ ],
365
+ "mixins": [
366
+ {
367
+ "name": "SizedMixin",
368
+ "package": "@spectrum-web-components/base"
369
+ }
370
+ ],
371
+ "superclass": {
372
+ "name": "SpectrumElement",
373
+ "package": "@spectrum-web-components/base"
374
+ },
375
+ "tagName": "sp-action-group",
376
+ "customElement": true
377
+ }
378
+ ],
379
+ "exports": [
380
+ {
381
+ "kind": "js",
382
+ "name": "ActionGroup",
383
+ "declaration": {
384
+ "name": "ActionGroup",
385
+ "module": "src/ActionGroup.ts"
386
+ }
387
+ }
388
+ ]
389
+ }
390
+ ]
391
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/action-group",
3
- "version": "0.12.7-react.48+e4fada004",
3
+ "version": "0.12.7-react.50+474992be7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,9 +58,9 @@
58
58
  ],
59
59
  "dependencies": {
60
60
  "@lit-labs/observers": "^1.0.1",
61
- "@spectrum-web-components/action-button": "^0.10.11-react.48+e4fada004",
62
- "@spectrum-web-components/base": "^0.7.5-react.48+e4fada004",
63
- "@spectrum-web-components/reactive-controllers": "^0.3.6-react.78+e4fada004"
61
+ "@spectrum-web-components/action-button": "^0.10.11-react.50+474992be7",
62
+ "@spectrum-web-components/base": "^0.7.5-react.50+474992be7",
63
+ "@spectrum-web-components/reactive-controllers": "^0.3.6-react.80+474992be7"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@spectrum-css/actiongroup": "^3.0.9"
@@ -71,5 +71,5 @@
71
71
  "./sp-*.js",
72
72
  "./**/*.dev.js"
73
73
  ],
74
- "gitHead": "e4fada0040dcaf1e1267f2159f366ec708cb2d09"
74
+ "gitHead": "474992be7513cad160eeeec0b522600243babc70"
75
75
  }