@spectrum-web-components/grid 0.31.1-overlay.29 → 0.31.1-react.2

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,418 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-grid.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-grid",
13
+ "declaration": {
14
+ "name": "Grid",
15
+ "module": "/src/Grid.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/Grid.ts",
23
+ "declarations": [
24
+ {
25
+ "kind": "class",
26
+ "description": "",
27
+ "name": "Grid",
28
+ "members": [
29
+ {
30
+ "kind": "field",
31
+ "name": "focusableSelector",
32
+ "type": {
33
+ "text": "string"
34
+ },
35
+ "privacy": "public",
36
+ "attribute": "focusableSelector"
37
+ },
38
+ {
39
+ "kind": "field",
40
+ "name": "gap",
41
+ "type": {
42
+ "text": "`${'0' | `${number}px`}`"
43
+ },
44
+ "privacy": "public",
45
+ "default": "'0'",
46
+ "attribute": "gap"
47
+ },
48
+ {
49
+ "kind": "field",
50
+ "name": "padding",
51
+ "type": {
52
+ "text": "`${'0' | `${number}px`}` | undefined"
53
+ },
54
+ "privacy": "public",
55
+ "attribute": "padding"
56
+ },
57
+ {
58
+ "kind": "field",
59
+ "name": "items",
60
+ "type": {
61
+ "text": "Record<string, unknown>[]"
62
+ },
63
+ "privacy": "public",
64
+ "default": "[]",
65
+ "attribute": "items"
66
+ },
67
+ {
68
+ "kind": "field",
69
+ "name": "itemSize",
70
+ "type": {
71
+ "text": "{\n width: number;\n height: number;\n }"
72
+ },
73
+ "privacy": "public",
74
+ "default": "{\n width: 200,\n height: 200,\n }",
75
+ "attribute": "itemSize"
76
+ },
77
+ {
78
+ "kind": "field",
79
+ "name": "selected",
80
+ "type": {
81
+ "text": "Record<string, unknown>[]"
82
+ },
83
+ "privacy": "public",
84
+ "default": "[]",
85
+ "attribute": "selected"
86
+ },
87
+ {
88
+ "kind": "field",
89
+ "name": "gridController",
90
+ "default": "new GridController<HTMLElement>(this, {\n elements: () => [],\n itemSize: () => this.itemSize,\n /* c8 ignore next 2 */\n gap: () => this.gap,\n padding: () => this.padding || this.gap,\n })"
91
+ },
92
+ {
93
+ "kind": "method",
94
+ "name": "handleChange",
95
+ "privacy": "protected",
96
+ "return": {
97
+ "type": {
98
+ "text": "void"
99
+ }
100
+ },
101
+ "parameters": [
102
+ {
103
+ "name": "event",
104
+ "type": {
105
+ "text": "Event"
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "kind": "method",
112
+ "name": "createRenderRoot",
113
+ "privacy": "public",
114
+ "return": {
115
+ "type": {
116
+ "text": "this"
117
+ }
118
+ }
119
+ }
120
+ ],
121
+ "events": [
122
+ {
123
+ "description": "Announces that the value of `selected` has changed",
124
+ "name": "change"
125
+ }
126
+ ],
127
+ "attributes": [
128
+ {
129
+ "name": "focusableSelector",
130
+ "type": {
131
+ "text": "string"
132
+ },
133
+ "fieldName": "focusableSelector"
134
+ },
135
+ {
136
+ "name": "gap",
137
+ "type": {
138
+ "text": "`${'0' | `${number}px`}`"
139
+ },
140
+ "default": "'0'",
141
+ "fieldName": "gap"
142
+ },
143
+ {
144
+ "name": "padding",
145
+ "type": {
146
+ "text": "`${'0' | `${number}px`}` | undefined"
147
+ },
148
+ "fieldName": "padding"
149
+ },
150
+ {
151
+ "name": "items",
152
+ "type": {
153
+ "text": "Record<string, unknown>[]"
154
+ },
155
+ "default": "[]",
156
+ "fieldName": "items"
157
+ },
158
+ {
159
+ "name": "itemSize",
160
+ "type": {
161
+ "text": "{\n width: number;\n height: number;\n }"
162
+ },
163
+ "default": "{\n width: 200,\n height: 200,\n }",
164
+ "fieldName": "itemSize"
165
+ },
166
+ {
167
+ "name": "selected",
168
+ "type": {
169
+ "text": "Record<string, unknown>[]"
170
+ },
171
+ "default": "[]",
172
+ "fieldName": "selected"
173
+ }
174
+ ],
175
+ "superclass": {
176
+ "name": "LitVirtualizer",
177
+ "package": "@lit-labs/virtualizer/LitVirtualizer.js"
178
+ },
179
+ "tagName": "sp-grid",
180
+ "customElement": true
181
+ }
182
+ ],
183
+ "exports": [
184
+ {
185
+ "kind": "js",
186
+ "name": "Grid",
187
+ "declaration": {
188
+ "name": "Grid",
189
+ "module": "src/Grid.ts"
190
+ }
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "kind": "javascript-module",
196
+ "path": "src/GridController.ts",
197
+ "declarations": [
198
+ {
199
+ "kind": "class",
200
+ "description": "",
201
+ "name": "GridController",
202
+ "members": [
203
+ {
204
+ "kind": "field",
205
+ "name": "host",
206
+ "type": {
207
+ "text": "Grid"
208
+ },
209
+ "default": "host"
210
+ },
211
+ {
212
+ "kind": "field",
213
+ "name": "resizeController",
214
+ "type": {
215
+ "text": "ResizeController"
216
+ },
217
+ "default": "new ResizeController(this.host, {\n callback: (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n this.measureDirectionLength(entry.contentRect);\n });\n },\n })"
218
+ },
219
+ {
220
+ "kind": "field",
221
+ "name": "rovingTabindexController",
222
+ "type": {
223
+ "text": "RovingTabindexController<T>"
224
+ },
225
+ "default": "new RovingTabindexController<T>(\n this.host,\n {\n direction: 'grid',\n elements,\n focusInIndex: () => {\n const activeElement = (this.host.getRootNode() as Document)\n .activeElement as HTMLElement;\n return activeElement === this.host ? 0 : -1;\n },\n }\n )"
226
+ },
227
+ {
228
+ "kind": "field",
229
+ "name": "itemSize",
230
+ "type": {
231
+ "text": "ItemSize"
232
+ }
233
+ },
234
+ {
235
+ "kind": "method",
236
+ "name": "_itemSize",
237
+ "privacy": "private",
238
+ "return": {
239
+ "type": {
240
+ "text": "ItemSize"
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "kind": "field",
246
+ "name": "_first",
247
+ "type": {
248
+ "text": "number"
249
+ },
250
+ "default": "0"
251
+ },
252
+ {
253
+ "kind": "field",
254
+ "name": "gap",
255
+ "type": {
256
+ "text": "string | undefined"
257
+ }
258
+ },
259
+ {
260
+ "kind": "method",
261
+ "name": "_gap",
262
+ "privacy": "private",
263
+ "return": {
264
+ "type": {
265
+ "text": "string | undefined"
266
+ }
267
+ }
268
+ },
269
+ {
270
+ "kind": "field",
271
+ "name": "padding",
272
+ "type": {
273
+ "text": "string | undefined"
274
+ }
275
+ },
276
+ {
277
+ "kind": "method",
278
+ "name": "_padding",
279
+ "privacy": "private",
280
+ "return": {
281
+ "type": {
282
+ "text": "string | undefined"
283
+ }
284
+ }
285
+ },
286
+ {
287
+ "kind": "field",
288
+ "name": "_last",
289
+ "type": {
290
+ "text": "number"
291
+ },
292
+ "default": "0"
293
+ },
294
+ {
295
+ "kind": "method",
296
+ "name": "focus",
297
+ "privacy": "public",
298
+ "return": {
299
+ "type": {
300
+ "text": "void"
301
+ }
302
+ },
303
+ "parameters": [
304
+ {
305
+ "name": "options",
306
+ "optional": true,
307
+ "type": {
308
+ "text": "FocusOptions"
309
+ }
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "kind": "method",
315
+ "name": "applyLayout",
316
+ "privacy": "protected",
317
+ "return": {
318
+ "type": {
319
+ "text": "void"
320
+ }
321
+ },
322
+ "parameters": [
323
+ {
324
+ "name": "itemSize",
325
+ "type": {
326
+ "text": "ItemSize | (() => ItemSize)"
327
+ }
328
+ },
329
+ {
330
+ "name": "gap",
331
+ "optional": true,
332
+ "type": {
333
+ "text": "string | (() => string)"
334
+ }
335
+ },
336
+ {
337
+ "name": "padding",
338
+ "optional": true,
339
+ "type": {
340
+ "text": "string | (() => string)"
341
+ }
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "kind": "method",
347
+ "name": "measureDirectionLength",
348
+ "privacy": "protected",
349
+ "return": {
350
+ "type": {
351
+ "text": "void"
352
+ }
353
+ },
354
+ "parameters": [
355
+ {
356
+ "name": "contentRect",
357
+ "type": {
358
+ "text": "DOMRect"
359
+ }
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "kind": "field",
365
+ "name": "handleFocusin",
366
+ "privacy": "protected"
367
+ },
368
+ {
369
+ "kind": "field",
370
+ "name": "handleFocusout",
371
+ "privacy": "protected"
372
+ },
373
+ {
374
+ "kind": "field",
375
+ "name": "handleRangeChanged",
376
+ "privacy": "protected"
377
+ },
378
+ {
379
+ "kind": "field",
380
+ "name": "handleVisibleChanged",
381
+ "privacy": "protected"
382
+ },
383
+ {
384
+ "kind": "method",
385
+ "name": "hostConnected",
386
+ "privacy": "public",
387
+ "return": {
388
+ "type": {
389
+ "text": "void"
390
+ }
391
+ }
392
+ },
393
+ {
394
+ "kind": "method",
395
+ "name": "hostDisconnected",
396
+ "privacy": "public",
397
+ "return": {
398
+ "type": {
399
+ "text": "void"
400
+ }
401
+ }
402
+ }
403
+ ]
404
+ }
405
+ ],
406
+ "exports": [
407
+ {
408
+ "kind": "js",
409
+ "name": "GridController",
410
+ "declaration": {
411
+ "name": "GridController",
412
+ "module": "src/GridController.ts"
413
+ }
414
+ }
415
+ ]
416
+ }
417
+ ]
418
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/grid",
3
- "version": "0.31.1-overlay.29+93d3f11dd",
3
+ "version": "0.31.1-react.2+971de948d",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -64,8 +64,8 @@
64
64
  "dependencies": {
65
65
  "@lit-labs/observers": "^2.0.0",
66
66
  "@lit-labs/virtualizer": "^1.0.1",
67
- "@spectrum-web-components/base": "^0.31.1-overlay.29+93d3f11dd",
68
- "@spectrum-web-components/reactive-controllers": "^0.31.1-overlay.29+93d3f11dd"
67
+ "@spectrum-web-components/base": "^0.31.1-react.2+971de948d",
68
+ "@spectrum-web-components/reactive-controllers": "^0.31.1-react.2+971de948d"
69
69
  },
70
70
  "types": "./src/index.d.ts",
71
71
  "customElements": "custom-elements.json",
@@ -73,5 +73,5 @@
73
73
  "./sp-*.js",
74
74
  "./**/*.dev.js"
75
75
  ],
76
- "gitHead": "93d3f11dde0f578bd1ddcf7fbb78b02916fdfbe0"
76
+ "gitHead": "971de948df12f7082f13ab5dd5e638d456ebbb94"
77
77
  }