@spectrum-web-components/table 0.1.11-overlay.0 → 0.1.12

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.
Files changed (62) hide show
  1. package/custom-elements.json +1174 -0
  2. package/package.json +5 -5
  3. package/src/Table.dev.js +2 -0
  4. package/src/Table.dev.js.map +2 -2
  5. package/src/Table.js +6 -6
  6. package/src/Table.js.map +2 -2
  7. package/src/TableRow.d.ts +1 -1
  8. package/src/TableRow.dev.js +6 -2
  9. package/src/TableRow.dev.js.map +2 -2
  10. package/src/TableRow.js +1 -1
  11. package/src/TableRow.js.map +2 -2
  12. package/src/spectrum-config.js +142 -191
  13. package/src/spectrum-table-body.css.dev.js +1 -3
  14. package/src/spectrum-table-body.css.dev.js.map +2 -2
  15. package/src/spectrum-table-body.css.js +1 -3
  16. package/src/spectrum-table-body.css.js.map +2 -2
  17. package/src/spectrum-table-cell.css.dev.js +4 -10
  18. package/src/spectrum-table-cell.css.dev.js.map +2 -2
  19. package/src/spectrum-table-cell.css.js +4 -10
  20. package/src/spectrum-table-cell.css.js.map +2 -2
  21. package/src/spectrum-table-checkbox-cell.css.dev.js +1 -5
  22. package/src/spectrum-table-checkbox-cell.css.dev.js.map +2 -2
  23. package/src/spectrum-table-checkbox-cell.css.js +1 -5
  24. package/src/spectrum-table-checkbox-cell.css.js.map +2 -2
  25. package/src/spectrum-table-head-cell.css.dev.js +1 -39
  26. package/src/spectrum-table-head-cell.css.dev.js.map +2 -2
  27. package/src/spectrum-table-head-cell.css.js +3 -41
  28. package/src/spectrum-table-head-cell.css.js.map +2 -2
  29. package/src/spectrum-table-row.css.dev.js +2 -6
  30. package/src/spectrum-table-row.css.dev.js.map +2 -2
  31. package/src/spectrum-table-row.css.js +2 -6
  32. package/src/spectrum-table-row.css.js.map +2 -2
  33. package/src/spectrum-table.css.dev.js +1 -183
  34. package/src/spectrum-table.css.dev.js.map +2 -2
  35. package/src/spectrum-table.css.js +1 -183
  36. package/src/spectrum-table.css.js.map +2 -2
  37. package/src/table-body.css.dev.js +1 -3
  38. package/src/table-body.css.dev.js.map +2 -2
  39. package/src/table-body.css.js +1 -3
  40. package/src/table-body.css.js.map +2 -2
  41. package/src/table-cell.css.dev.js +4 -10
  42. package/src/table-cell.css.dev.js.map +2 -2
  43. package/src/table-cell.css.js +4 -10
  44. package/src/table-cell.css.js.map +2 -2
  45. package/src/table-checkbox-cell.css.dev.js +1 -5
  46. package/src/table-checkbox-cell.css.dev.js.map +2 -2
  47. package/src/table-checkbox-cell.css.js +1 -5
  48. package/src/table-checkbox-cell.css.js.map +2 -2
  49. package/src/table-head-cell.css.dev.js +1 -39
  50. package/src/table-head-cell.css.dev.js.map +2 -2
  51. package/src/table-head-cell.css.js +3 -41
  52. package/src/table-head-cell.css.js.map +2 -2
  53. package/src/table-row.css.dev.js +3 -7
  54. package/src/table-row.css.dev.js.map +2 -2
  55. package/src/table-row.css.js +3 -7
  56. package/src/table-row.css.js.map +2 -2
  57. package/src/table.css.dev.js +1 -183
  58. package/src/table.css.dev.js.map +2 -2
  59. package/src/table.css.js +1 -183
  60. package/src/table.css.js.map +2 -2
  61. package/test/table-selects.test.js +36 -0
  62. package/test/table-selects.test.js.map +2 -2
@@ -0,0 +1,1174 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-table-body.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-table-body",
13
+ "declaration": {
14
+ "name": "TableBody",
15
+ "module": "/src/TableBody.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "sp-table-cell.js",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "custom-element-definition",
27
+ "name": "sp-table-cell",
28
+ "declaration": {
29
+ "name": "TableCell",
30
+ "module": "/src/TableCell.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "sp-table-checkbox-cell.js",
38
+ "declarations": [],
39
+ "exports": [
40
+ {
41
+ "kind": "custom-element-definition",
42
+ "name": "sp-table-checkbox-cell",
43
+ "declaration": {
44
+ "name": "TableCheckboxCell",
45
+ "module": "/src/TableCheckboxCell.js"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "kind": "javascript-module",
52
+ "path": "sp-table-head-cell.js",
53
+ "declarations": [],
54
+ "exports": [
55
+ {
56
+ "kind": "custom-element-definition",
57
+ "name": "sp-table-head-cell",
58
+ "declaration": {
59
+ "name": "TableHeadCell",
60
+ "module": "/src/TableHeadCell.js"
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "kind": "javascript-module",
67
+ "path": "sp-table-head.js",
68
+ "declarations": [],
69
+ "exports": [
70
+ {
71
+ "kind": "custom-element-definition",
72
+ "name": "sp-table-head",
73
+ "declaration": {
74
+ "name": "TableHead",
75
+ "module": "/src/TableHead.js"
76
+ }
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "kind": "javascript-module",
82
+ "path": "sp-table-row.js",
83
+ "declarations": [],
84
+ "exports": [
85
+ {
86
+ "kind": "custom-element-definition",
87
+ "name": "sp-table-row",
88
+ "declaration": {
89
+ "name": "TableRow",
90
+ "module": "/src/TableRow.js"
91
+ }
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "kind": "javascript-module",
97
+ "path": "sp-table.js",
98
+ "declarations": [],
99
+ "exports": [
100
+ {
101
+ "kind": "custom-element-definition",
102
+ "name": "sp-table",
103
+ "declaration": {
104
+ "name": "Table",
105
+ "module": "/src/Table.js"
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "kind": "javascript-module",
112
+ "path": "src/Table.js",
113
+ "declarations": [
114
+ {
115
+ "kind": "class",
116
+ "description": "",
117
+ "name": "RangeChangedEvent",
118
+ "members": [
119
+ {
120
+ "kind": "field",
121
+ "name": "eventName",
122
+ "type": {
123
+ "text": "string"
124
+ },
125
+ "static": true,
126
+ "default": "'rangeChanged'"
127
+ },
128
+ {
129
+ "kind": "field",
130
+ "name": "first",
131
+ "type": {
132
+ "text": "number"
133
+ }
134
+ },
135
+ {
136
+ "kind": "field",
137
+ "name": "last",
138
+ "type": {
139
+ "text": "number"
140
+ }
141
+ }
142
+ ],
143
+ "superclass": {
144
+ "name": "Event",
145
+ "module": "src/Table.ts"
146
+ }
147
+ },
148
+ {
149
+ "kind": "class",
150
+ "description": "",
151
+ "name": "Table",
152
+ "members": [
153
+ {
154
+ "kind": "field",
155
+ "name": "renderItem",
156
+ "type": {
157
+ "text": "(\n item: Record<string, unknown>,\n index: number\n ) => TemplateResult"
158
+ }
159
+ },
160
+ {
161
+ "kind": "field",
162
+ "name": "_renderItem",
163
+ "type": {
164
+ "text": "(\n item: Record<string, unknown>,\n index: number\n ) => TemplateResult"
165
+ },
166
+ "privacy": "private"
167
+ },
168
+ {
169
+ "kind": "field",
170
+ "name": "role",
171
+ "type": {
172
+ "text": "string"
173
+ },
174
+ "privacy": "public",
175
+ "default": "'grid'",
176
+ "attribute": "role",
177
+ "reflects": true
178
+ },
179
+ {
180
+ "kind": "field",
181
+ "name": "selects",
182
+ "type": {
183
+ "text": "undefined | 'single' | 'multiple'"
184
+ },
185
+ "privacy": "public",
186
+ "description": "Whether the Table allows users to select a row or rows, and thus controls whether or not the Table also renders checkboxes.",
187
+ "attribute": "selects",
188
+ "reflects": true
189
+ },
190
+ {
191
+ "kind": "field",
192
+ "name": "selected",
193
+ "type": {
194
+ "text": "string[]"
195
+ },
196
+ "privacy": "public",
197
+ "default": "[]",
198
+ "description": "An array of <sp-row> values that have been selected.",
199
+ "attribute": "selected"
200
+ },
201
+ {
202
+ "kind": "field",
203
+ "name": "selectedSet",
204
+ "privacy": "private",
205
+ "default": "new Set<string>()"
206
+ },
207
+ {
208
+ "kind": "field",
209
+ "name": "items",
210
+ "type": {
211
+ "text": "Record<string, unknown>[]"
212
+ },
213
+ "privacy": "public",
214
+ "default": "[]",
215
+ "description": "The content of the rows rendered by the virtualized table. The key is the value of the sp-table-row, and the value is the sp-table-row's content (not the row itself).",
216
+ "attribute": "items"
217
+ },
218
+ {
219
+ "kind": "field",
220
+ "name": "itemValue",
221
+ "privacy": "public",
222
+ "description": "The value of an item. By default, it is set to the index of the sp-table-row.",
223
+ "attribute": "itemValue"
224
+ },
225
+ {
226
+ "kind": "field",
227
+ "name": "scroller",
228
+ "type": {
229
+ "text": "boolean"
230
+ },
231
+ "privacy": "public",
232
+ "default": "false",
233
+ "description": "Whether or not the virtualized table has a scroll bar. If this is set to true, make sure to specify a height in the sp-table's inline styles.",
234
+ "attribute": "scroller",
235
+ "reflects": true
236
+ },
237
+ {
238
+ "kind": "field",
239
+ "name": "tableBody",
240
+ "type": {
241
+ "text": "TableBody | undefined"
242
+ },
243
+ "privacy": "private"
244
+ },
245
+ {
246
+ "kind": "field",
247
+ "name": "tableHeadCheckboxCell",
248
+ "type": {
249
+ "text": "TableCheckboxCell | undefined"
250
+ },
251
+ "privacy": "private"
252
+ },
253
+ {
254
+ "kind": "field",
255
+ "name": "tableHead",
256
+ "type": {
257
+ "text": "TableHead"
258
+ },
259
+ "privacy": "private"
260
+ },
261
+ {
262
+ "kind": "field",
263
+ "name": "tableRows",
264
+ "type": {
265
+ "text": "TableRow[]"
266
+ },
267
+ "privacy": "private"
268
+ },
269
+ {
270
+ "kind": "field",
271
+ "name": "isVirtualized",
272
+ "type": {
273
+ "text": "boolean"
274
+ },
275
+ "privacy": "private"
276
+ },
277
+ {
278
+ "kind": "method",
279
+ "name": "focus",
280
+ "privacy": "public",
281
+ "return": {
282
+ "type": {
283
+ "text": "void"
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "kind": "method",
289
+ "name": "selectAllRows",
290
+ "privacy": "private",
291
+ "return": {
292
+ "type": {
293
+ "text": "void"
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "kind": "method",
299
+ "name": "deselectAllRows",
300
+ "privacy": "private",
301
+ "return": {
302
+ "type": {
303
+ "text": "void"
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "kind": "method",
309
+ "name": "manageSelects",
310
+ "privacy": "protected",
311
+ "return": {
312
+ "type": {
313
+ "text": "void"
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "kind": "method",
319
+ "name": "validateSelected",
320
+ "privacy": "protected",
321
+ "return": {
322
+ "type": {
323
+ "text": "void"
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "kind": "method",
329
+ "name": "manageSelected",
330
+ "privacy": "protected",
331
+ "return": {
332
+ "type": {
333
+ "text": "void"
334
+ }
335
+ }
336
+ },
337
+ {
338
+ "kind": "method",
339
+ "name": "manageCheckboxes",
340
+ "privacy": "protected",
341
+ "return": {
342
+ "type": {
343
+ "text": "void"
344
+ }
345
+ }
346
+ },
347
+ {
348
+ "kind": "method",
349
+ "name": "manageHeadCheckbox",
350
+ "privacy": "protected",
351
+ "return": {
352
+ "type": {
353
+ "text": "void"
354
+ }
355
+ },
356
+ "parameters": [
357
+ {
358
+ "name": "allSelected",
359
+ "type": {
360
+ "text": "boolean"
361
+ }
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "kind": "method",
367
+ "name": "handleChange",
368
+ "privacy": "protected",
369
+ "return": {
370
+ "type": {
371
+ "text": "void"
372
+ }
373
+ },
374
+ "parameters": [
375
+ {
376
+ "name": "event",
377
+ "type": {
378
+ "text": "Event"
379
+ }
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "kind": "method",
385
+ "name": "scrollToIndex",
386
+ "privacy": "public",
387
+ "return": {
388
+ "type": {
389
+ "text": "void"
390
+ }
391
+ },
392
+ "parameters": [
393
+ {
394
+ "name": "index",
395
+ "optional": true,
396
+ "type": {
397
+ "text": "number"
398
+ }
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "kind": "method",
404
+ "name": "renderVirtualizedItems",
405
+ "privacy": "protected",
406
+ "return": {
407
+ "type": {
408
+ "text": "void"
409
+ }
410
+ }
411
+ }
412
+ ],
413
+ "events": [
414
+ {
415
+ "name": "change",
416
+ "type": {
417
+ "text": "Event"
418
+ },
419
+ "description": "Announces a change in the `selected` property of a table row"
420
+ },
421
+ {
422
+ "type": {
423
+ "text": "RangeChangedEvent"
424
+ }
425
+ },
426
+ {
427
+ "description": "Announces a change in the range of visible cells on the table body",
428
+ "name": "rangeChanged"
429
+ }
430
+ ],
431
+ "attributes": [
432
+ {
433
+ "name": "role",
434
+ "type": {
435
+ "text": "string"
436
+ },
437
+ "default": "'grid'",
438
+ "fieldName": "role"
439
+ },
440
+ {
441
+ "name": "selects",
442
+ "type": {
443
+ "text": "undefined | 'single' | 'multiple'"
444
+ },
445
+ "description": "Whether the Table allows users to select a row or rows, and thus controls whether or not the Table also renders checkboxes.",
446
+ "fieldName": "selects"
447
+ },
448
+ {
449
+ "name": "selected",
450
+ "type": {
451
+ "text": "string[]"
452
+ },
453
+ "default": "[]",
454
+ "description": "An array of <sp-row> values that have been selected.",
455
+ "fieldName": "selected"
456
+ },
457
+ {
458
+ "name": "items",
459
+ "type": {
460
+ "text": "Record<string, unknown>[]"
461
+ },
462
+ "default": "[]",
463
+ "description": "The content of the rows rendered by the virtualized table. The key is the value of the sp-table-row, and the value is the sp-table-row's content (not the row itself).",
464
+ "fieldName": "items"
465
+ },
466
+ {
467
+ "name": "itemValue",
468
+ "description": "The value of an item. By default, it is set to the index of the sp-table-row.",
469
+ "fieldName": "itemValue"
470
+ },
471
+ {
472
+ "name": "scroller",
473
+ "type": {
474
+ "text": "boolean"
475
+ },
476
+ "default": "false",
477
+ "description": "Whether or not the virtualized table has a scroll bar. If this is set to true, make sure to specify a height in the sp-table's inline styles.",
478
+ "fieldName": "scroller"
479
+ }
480
+ ],
481
+ "mixins": [
482
+ {
483
+ "name": "SizedMixin",
484
+ "package": "@spectrum-web-components/base"
485
+ }
486
+ ],
487
+ "superclass": {
488
+ "name": "SpectrumElement",
489
+ "package": "@spectrum-web-components/base"
490
+ },
491
+ "tagName": "sp-table",
492
+ "customElement": true
493
+ }
494
+ ],
495
+ "exports": [
496
+ {
497
+ "kind": "js",
498
+ "name": "RangeChangedEvent",
499
+ "declaration": {
500
+ "name": "RangeChangedEvent",
501
+ "module": "src/Table.js"
502
+ }
503
+ },
504
+ {
505
+ "kind": "js",
506
+ "name": "Table",
507
+ "declaration": {
508
+ "name": "Table",
509
+ "module": "src/Table.js"
510
+ }
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ "kind": "javascript-module",
516
+ "path": "src/TableBody.js",
517
+ "declarations": [
518
+ {
519
+ "kind": "class",
520
+ "description": "",
521
+ "name": "TableBody",
522
+ "members": [
523
+ {
524
+ "kind": "method",
525
+ "name": "shouldHaveTabIndex",
526
+ "privacy": "protected",
527
+ "return": {
528
+ "type": {
529
+ "text": "void"
530
+ }
531
+ }
532
+ },
533
+ {
534
+ "kind": "field",
535
+ "name": "role",
536
+ "type": {
537
+ "text": "string"
538
+ },
539
+ "privacy": "public",
540
+ "default": "'rowgroup'",
541
+ "attribute": "role",
542
+ "reflects": true
543
+ }
544
+ ],
545
+ "attributes": [
546
+ {
547
+ "name": "role",
548
+ "type": {
549
+ "text": "string"
550
+ },
551
+ "default": "'rowgroup'",
552
+ "fieldName": "role"
553
+ }
554
+ ],
555
+ "superclass": {
556
+ "name": "SpectrumElement",
557
+ "package": "@spectrum-web-components/base"
558
+ },
559
+ "tagName": "sp-table-body",
560
+ "customElement": true
561
+ }
562
+ ],
563
+ "exports": [
564
+ {
565
+ "kind": "js",
566
+ "name": "TableBody",
567
+ "declaration": {
568
+ "name": "TableBody",
569
+ "module": "src/TableBody.js"
570
+ }
571
+ }
572
+ ]
573
+ },
574
+ {
575
+ "kind": "javascript-module",
576
+ "path": "src/TableCell.js",
577
+ "declarations": [
578
+ {
579
+ "kind": "class",
580
+ "description": "",
581
+ "name": "TableCell",
582
+ "members": [
583
+ {
584
+ "kind": "field",
585
+ "name": "role",
586
+ "type": {
587
+ "text": "string"
588
+ },
589
+ "privacy": "public",
590
+ "default": "'gridcell'",
591
+ "attribute": "role",
592
+ "reflects": true
593
+ }
594
+ ],
595
+ "attributes": [
596
+ {
597
+ "name": "role",
598
+ "type": {
599
+ "text": "string"
600
+ },
601
+ "default": "'gridcell'",
602
+ "fieldName": "role"
603
+ }
604
+ ],
605
+ "superclass": {
606
+ "name": "SpectrumElement",
607
+ "package": "@spectrum-web-components/base"
608
+ },
609
+ "tagName": "sp-table-cell",
610
+ "customElement": true
611
+ }
612
+ ],
613
+ "exports": [
614
+ {
615
+ "kind": "js",
616
+ "name": "TableCell",
617
+ "declaration": {
618
+ "name": "TableCell",
619
+ "module": "src/TableCell.js"
620
+ }
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "kind": "javascript-module",
626
+ "path": "src/TableCheckboxCell.js",
627
+ "declarations": [
628
+ {
629
+ "kind": "class",
630
+ "description": "",
631
+ "name": "TableCheckboxCell",
632
+ "members": [
633
+ {
634
+ "kind": "field",
635
+ "name": "role",
636
+ "type": {
637
+ "text": "string"
638
+ },
639
+ "privacy": "public",
640
+ "default": "'gridcell'",
641
+ "attribute": "role",
642
+ "reflects": true
643
+ },
644
+ {
645
+ "kind": "field",
646
+ "name": "checkbox",
647
+ "type": {
648
+ "text": "Checkbox"
649
+ },
650
+ "privacy": "public"
651
+ },
652
+ {
653
+ "kind": "field",
654
+ "name": "indeterminate",
655
+ "type": {
656
+ "text": "boolean"
657
+ },
658
+ "privacy": "public",
659
+ "default": "false",
660
+ "attribute": "indeterminate"
661
+ },
662
+ {
663
+ "kind": "field",
664
+ "name": "checked",
665
+ "type": {
666
+ "text": "boolean"
667
+ },
668
+ "privacy": "public",
669
+ "default": "false",
670
+ "attribute": "checked"
671
+ },
672
+ {
673
+ "kind": "field",
674
+ "name": "disabled",
675
+ "type": {
676
+ "text": "boolean"
677
+ },
678
+ "privacy": "public",
679
+ "default": "false",
680
+ "attribute": "disabled"
681
+ },
682
+ {
683
+ "kind": "field",
684
+ "name": "selectsSingle",
685
+ "type": {
686
+ "text": "boolean"
687
+ },
688
+ "privacy": "public",
689
+ "default": "false",
690
+ "attribute": "selects-single",
691
+ "reflects": true
692
+ },
693
+ {
694
+ "kind": "method",
695
+ "name": "click",
696
+ "privacy": "public",
697
+ "return": {
698
+ "type": {
699
+ "text": "void"
700
+ }
701
+ }
702
+ }
703
+ ],
704
+ "attributes": [
705
+ {
706
+ "name": "role",
707
+ "type": {
708
+ "text": "string"
709
+ },
710
+ "default": "'gridcell'",
711
+ "fieldName": "role"
712
+ },
713
+ {
714
+ "name": "indeterminate",
715
+ "type": {
716
+ "text": "boolean"
717
+ },
718
+ "default": "false",
719
+ "fieldName": "indeterminate"
720
+ },
721
+ {
722
+ "name": "checked",
723
+ "type": {
724
+ "text": "boolean"
725
+ },
726
+ "default": "false",
727
+ "fieldName": "checked"
728
+ },
729
+ {
730
+ "name": "disabled",
731
+ "type": {
732
+ "text": "boolean"
733
+ },
734
+ "default": "false",
735
+ "fieldName": "disabled"
736
+ },
737
+ {
738
+ "name": "selects-single",
739
+ "type": {
740
+ "text": "boolean"
741
+ },
742
+ "default": "false",
743
+ "fieldName": "selectsSingle"
744
+ }
745
+ ],
746
+ "superclass": {
747
+ "name": "SpectrumElement",
748
+ "package": "@spectrum-web-components/base"
749
+ },
750
+ "tagName": "sp-table-checkbox-cell",
751
+ "customElement": true
752
+ }
753
+ ],
754
+ "exports": [
755
+ {
756
+ "kind": "js",
757
+ "name": "TableCheckboxCell",
758
+ "declaration": {
759
+ "name": "TableCheckboxCell",
760
+ "module": "src/TableCheckboxCell.js"
761
+ }
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "kind": "javascript-module",
767
+ "path": "src/TableHead.js",
768
+ "declarations": [
769
+ {
770
+ "kind": "class",
771
+ "description": "",
772
+ "name": "TableHead",
773
+ "members": [
774
+ {
775
+ "kind": "field",
776
+ "name": "role",
777
+ "type": {
778
+ "text": "string"
779
+ },
780
+ "privacy": "public",
781
+ "default": "'row'",
782
+ "attribute": "role",
783
+ "reflects": true
784
+ },
785
+ {
786
+ "kind": "field",
787
+ "name": "selected",
788
+ "type": {
789
+ "text": "boolean | undefined"
790
+ },
791
+ "privacy": "public",
792
+ "attribute": "selected",
793
+ "reflects": true
794
+ },
795
+ {
796
+ "kind": "method",
797
+ "name": "handleSorted",
798
+ "privacy": "private",
799
+ "return": {
800
+ "type": {
801
+ "text": "void"
802
+ }
803
+ },
804
+ "parameters": [
805
+ {
806
+ "name": "{ target }",
807
+ "type": {
808
+ "text": "Event"
809
+ }
810
+ }
811
+ ]
812
+ },
813
+ {
814
+ "kind": "method",
815
+ "name": "handleChange",
816
+ "privacy": "protected",
817
+ "return": {
818
+ "type": {
819
+ "text": "void"
820
+ }
821
+ },
822
+ "parameters": [
823
+ {
824
+ "name": "{\n target: checkboxCell,\n }",
825
+ "type": {
826
+ "text": "Event & { target: TableCheckboxCell }"
827
+ }
828
+ }
829
+ ]
830
+ }
831
+ ],
832
+ "attributes": [
833
+ {
834
+ "name": "role",
835
+ "type": {
836
+ "text": "string"
837
+ },
838
+ "default": "'row'",
839
+ "fieldName": "role"
840
+ },
841
+ {
842
+ "name": "selected",
843
+ "type": {
844
+ "text": "boolean | undefined"
845
+ },
846
+ "fieldName": "selected"
847
+ }
848
+ ],
849
+ "superclass": {
850
+ "name": "SpectrumElement",
851
+ "package": "@spectrum-web-components/base"
852
+ },
853
+ "tagName": "sp-table-head",
854
+ "customElement": true
855
+ }
856
+ ],
857
+ "exports": [
858
+ {
859
+ "kind": "js",
860
+ "name": "TableHead",
861
+ "declaration": {
862
+ "name": "TableHead",
863
+ "module": "src/TableHead.js"
864
+ }
865
+ }
866
+ ]
867
+ },
868
+ {
869
+ "kind": "javascript-module",
870
+ "path": "src/TableHeadCell.js",
871
+ "declarations": [
872
+ {
873
+ "kind": "class",
874
+ "description": "",
875
+ "name": "TableHeadCell",
876
+ "members": [
877
+ {
878
+ "kind": "field",
879
+ "name": "role",
880
+ "type": {
881
+ "text": "string"
882
+ },
883
+ "privacy": "public",
884
+ "default": "'columnheader'",
885
+ "attribute": "role",
886
+ "reflects": true
887
+ },
888
+ {
889
+ "kind": "field",
890
+ "name": "sortable",
891
+ "type": {
892
+ "text": "boolean"
893
+ },
894
+ "privacy": "public",
895
+ "default": "false",
896
+ "attribute": "sortable",
897
+ "reflects": true
898
+ },
899
+ {
900
+ "kind": "field",
901
+ "name": "sortDirection",
902
+ "type": {
903
+ "text": "'asc' | 'desc' | undefined"
904
+ },
905
+ "privacy": "public",
906
+ "attribute": "sort-direction",
907
+ "reflects": true
908
+ },
909
+ {
910
+ "kind": "field",
911
+ "name": "sortKey",
912
+ "type": {
913
+ "text": "string"
914
+ },
915
+ "privacy": "public",
916
+ "default": "''",
917
+ "attribute": "sort-key"
918
+ },
919
+ {
920
+ "kind": "method",
921
+ "name": "handleClick",
922
+ "privacy": "protected",
923
+ "return": {
924
+ "type": {
925
+ "text": "void"
926
+ }
927
+ }
928
+ }
929
+ ],
930
+ "events": [
931
+ {
932
+ "name": "sorted",
933
+ "type": {
934
+ "text": "CustomEvent"
935
+ },
936
+ "description": "Announces that the table head has been sorted and handles the sorted event"
937
+ }
938
+ ],
939
+ "attributes": [
940
+ {
941
+ "name": "role",
942
+ "type": {
943
+ "text": "string"
944
+ },
945
+ "default": "'columnheader'",
946
+ "fieldName": "role"
947
+ },
948
+ {
949
+ "name": "sortable",
950
+ "type": {
951
+ "text": "boolean"
952
+ },
953
+ "default": "false",
954
+ "fieldName": "sortable"
955
+ },
956
+ {
957
+ "name": "sort-direction",
958
+ "type": {
959
+ "text": "'asc' | 'desc' | undefined"
960
+ },
961
+ "fieldName": "sortDirection"
962
+ },
963
+ {
964
+ "name": "sort-key",
965
+ "type": {
966
+ "text": "string"
967
+ },
968
+ "default": "''",
969
+ "fieldName": "sortKey"
970
+ }
971
+ ],
972
+ "superclass": {
973
+ "name": "SpectrumElement",
974
+ "package": "@spectrum-web-components/base"
975
+ },
976
+ "tagName": "sp-table-head-cell",
977
+ "customElement": true
978
+ }
979
+ ],
980
+ "exports": [
981
+ {
982
+ "kind": "js",
983
+ "name": "TableHeadCell",
984
+ "declaration": {
985
+ "name": "TableHeadCell",
986
+ "module": "src/TableHeadCell.js"
987
+ }
988
+ }
989
+ ]
990
+ },
991
+ {
992
+ "kind": "javascript-module",
993
+ "path": "src/TableRow.js",
994
+ "declarations": [
995
+ {
996
+ "kind": "class",
997
+ "description": "",
998
+ "name": "TableRow",
999
+ "members": [
1000
+ {
1001
+ "kind": "field",
1002
+ "name": "checkboxCells",
1003
+ "type": {
1004
+ "text": "TableCheckboxCell[]"
1005
+ }
1006
+ },
1007
+ {
1008
+ "kind": "field",
1009
+ "name": "role",
1010
+ "type": {
1011
+ "text": "string"
1012
+ },
1013
+ "privacy": "public",
1014
+ "default": "'row'",
1015
+ "attribute": "role",
1016
+ "reflects": true
1017
+ },
1018
+ {
1019
+ "kind": "field",
1020
+ "name": "selectable",
1021
+ "type": {
1022
+ "text": "boolean"
1023
+ },
1024
+ "privacy": "public",
1025
+ "default": "false",
1026
+ "attribute": "selectable"
1027
+ },
1028
+ {
1029
+ "kind": "field",
1030
+ "name": "selected",
1031
+ "type": {
1032
+ "text": "boolean"
1033
+ },
1034
+ "privacy": "public",
1035
+ "default": "false",
1036
+ "attribute": "selected",
1037
+ "reflects": true
1038
+ },
1039
+ {
1040
+ "kind": "field",
1041
+ "name": "value",
1042
+ "type": {
1043
+ "text": "string"
1044
+ },
1045
+ "privacy": "public",
1046
+ "default": "''",
1047
+ "attribute": "value"
1048
+ },
1049
+ {
1050
+ "kind": "method",
1051
+ "name": "handleChange",
1052
+ "privacy": "protected",
1053
+ "return": {
1054
+ "type": {
1055
+ "text": "Promise<void>"
1056
+ }
1057
+ },
1058
+ "parameters": [
1059
+ {
1060
+ "name": "event",
1061
+ "type": {
1062
+ "text": "Event & { target: TableCheckboxCell }"
1063
+ }
1064
+ }
1065
+ ]
1066
+ },
1067
+ {
1068
+ "kind": "method",
1069
+ "name": "handleSlotchange",
1070
+ "privacy": "protected",
1071
+ "return": {
1072
+ "type": {
1073
+ "text": "void"
1074
+ }
1075
+ },
1076
+ "parameters": [
1077
+ {
1078
+ "name": "{\n target,\n }",
1079
+ "type": {
1080
+ "text": "Event & { target: HTMLSlotElement }"
1081
+ }
1082
+ }
1083
+ ]
1084
+ },
1085
+ {
1086
+ "kind": "method",
1087
+ "name": "manageSelected",
1088
+ "privacy": "protected",
1089
+ "return": {
1090
+ "type": {
1091
+ "text": "Promise<void>"
1092
+ }
1093
+ }
1094
+ },
1095
+ {
1096
+ "kind": "method",
1097
+ "name": "handleClick",
1098
+ "privacy": "protected",
1099
+ "return": {
1100
+ "type": {
1101
+ "text": "void"
1102
+ }
1103
+ },
1104
+ "parameters": [
1105
+ {
1106
+ "name": "event",
1107
+ "type": {
1108
+ "text": "Event"
1109
+ }
1110
+ }
1111
+ ]
1112
+ }
1113
+ ],
1114
+ "events": [
1115
+ {
1116
+ "description": "Announces that `selected` of the table row has changed",
1117
+ "name": "sorted"
1118
+ }
1119
+ ],
1120
+ "attributes": [
1121
+ {
1122
+ "name": "role",
1123
+ "type": {
1124
+ "text": "string"
1125
+ },
1126
+ "default": "'row'",
1127
+ "fieldName": "role"
1128
+ },
1129
+ {
1130
+ "name": "selectable",
1131
+ "type": {
1132
+ "text": "boolean"
1133
+ },
1134
+ "default": "false",
1135
+ "fieldName": "selectable"
1136
+ },
1137
+ {
1138
+ "name": "selected",
1139
+ "type": {
1140
+ "text": "boolean"
1141
+ },
1142
+ "default": "false",
1143
+ "fieldName": "selected"
1144
+ },
1145
+ {
1146
+ "name": "value",
1147
+ "type": {
1148
+ "text": "string"
1149
+ },
1150
+ "default": "''",
1151
+ "fieldName": "value"
1152
+ }
1153
+ ],
1154
+ "superclass": {
1155
+ "name": "SpectrumElement",
1156
+ "package": "@spectrum-web-components/base"
1157
+ },
1158
+ "tagName": "sp-table-row",
1159
+ "customElement": true
1160
+ }
1161
+ ],
1162
+ "exports": [
1163
+ {
1164
+ "kind": "js",
1165
+ "name": "TableRow",
1166
+ "declaration": {
1167
+ "name": "TableRow",
1168
+ "module": "src/TableRow.js"
1169
+ }
1170
+ }
1171
+ ]
1172
+ }
1173
+ ]
1174
+ }