@spectrum-web-components/table 1.0.0 → 1.1.0-beta.1

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