@vollowx/seele 0.8.9 → 0.8.11

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,1339 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/m3/checkbox.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "M3Checkbox",
13
+ "cssParts": [
14
+ {
15
+ "name": "icon"
16
+ },
17
+ {
18
+ "name": "mark"
19
+ },
20
+ {
21
+ "name": "mark-short"
22
+ },
23
+ {
24
+ "name": "mark-long"
25
+ }
26
+ ],
27
+ "members": [
28
+ {
29
+ "kind": "method",
30
+ "name": "renderIcon"
31
+ },
32
+ {
33
+ "kind": "field",
34
+ "name": "error",
35
+ "type": {
36
+ "text": "boolean"
37
+ },
38
+ "default": "false",
39
+ "attribute": "error",
40
+ "reflects": true
41
+ }
42
+ ],
43
+ "attributes": [
44
+ {
45
+ "name": "error",
46
+ "type": {
47
+ "text": "boolean"
48
+ },
49
+ "default": "false",
50
+ "fieldName": "error"
51
+ }
52
+ ],
53
+ "superclass": {
54
+ "name": "Checkbox",
55
+ "module": "/src/base/checkbox.js"
56
+ },
57
+ "tagName": "md-checkbox",
58
+ "customElement": true
59
+ }
60
+ ],
61
+ "exports": [
62
+ {
63
+ "kind": "js",
64
+ "name": "M3Checkbox",
65
+ "declaration": {
66
+ "name": "M3Checkbox",
67
+ "module": "src/m3/checkbox.ts"
68
+ }
69
+ },
70
+ {
71
+ "kind": "custom-element-definition",
72
+ "name": "md-checkbox",
73
+ "declaration": {
74
+ "name": "M3Checkbox",
75
+ "module": "src/m3/checkbox.ts"
76
+ }
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "kind": "javascript-module",
82
+ "path": "src/m3/fab.ts",
83
+ "declarations": [
84
+ {
85
+ "kind": "class",
86
+ "description": "",
87
+ "name": "M3FAB",
88
+ "cssParts": [
89
+ {
90
+ "name": "icon"
91
+ },
92
+ {
93
+ "name": "label"
94
+ }
95
+ ],
96
+ "slots": [
97
+ {
98
+ "description": "icon",
99
+ "name": ""
100
+ },
101
+ {
102
+ "description": "label",
103
+ "name": "label"
104
+ }
105
+ ],
106
+ "members": [
107
+ {
108
+ "kind": "field",
109
+ "name": "size",
110
+ "type": {
111
+ "text": "'small' | 'medium' | 'large'"
112
+ },
113
+ "default": "'medium'",
114
+ "attribute": "size",
115
+ "reflects": true
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "color",
120
+ "type": {
121
+ "text": "| 'surface'\r\n | 'primary'\r\n | 'secondary'\r\n | 'tertiary'"
122
+ },
123
+ "default": "'surface'",
124
+ "attribute": "color",
125
+ "reflects": true
126
+ },
127
+ {
128
+ "kind": "field",
129
+ "name": "lowered",
130
+ "type": {
131
+ "text": "boolean"
132
+ },
133
+ "default": "false",
134
+ "attribute": "lowered",
135
+ "reflects": true
136
+ }
137
+ ],
138
+ "attributes": [
139
+ {
140
+ "name": "size",
141
+ "type": {
142
+ "text": "'small' | 'medium' | 'large'"
143
+ },
144
+ "default": "'medium'",
145
+ "fieldName": "size"
146
+ },
147
+ {
148
+ "name": "color",
149
+ "type": {
150
+ "text": "| 'surface'\r\n | 'primary'\r\n | 'secondary'\r\n | 'tertiary'"
151
+ },
152
+ "default": "'surface'",
153
+ "fieldName": "color"
154
+ },
155
+ {
156
+ "name": "lowered",
157
+ "type": {
158
+ "text": "boolean"
159
+ },
160
+ "default": "false",
161
+ "fieldName": "lowered"
162
+ }
163
+ ],
164
+ "superclass": {
165
+ "name": "Button",
166
+ "module": "/src/base/button.js"
167
+ },
168
+ "tagName": "md-fab",
169
+ "customElement": true
170
+ }
171
+ ],
172
+ "exports": [
173
+ {
174
+ "kind": "js",
175
+ "name": "M3FAB",
176
+ "declaration": {
177
+ "name": "M3FAB",
178
+ "module": "src/m3/fab.ts"
179
+ }
180
+ },
181
+ {
182
+ "kind": "custom-element-definition",
183
+ "name": "md-fab",
184
+ "declaration": {
185
+ "name": "M3FAB",
186
+ "module": "src/m3/fab.ts"
187
+ }
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "kind": "javascript-module",
193
+ "path": "src/m3/focus-ring.ts",
194
+ "declarations": [
195
+ {
196
+ "kind": "class",
197
+ "description": "",
198
+ "name": "M3FocusRing",
199
+ "cssProperties": [
200
+ {
201
+ "name": "--md-focus-ring-active-width"
202
+ },
203
+ {
204
+ "name": "--md-focus-ring-color"
205
+ },
206
+ {
207
+ "name": "--md-focus-ring-duration"
208
+ },
209
+ {
210
+ "name": "--md-focus-ring-inward-offset"
211
+ },
212
+ {
213
+ "name": "--md-focus-ring-outward-offset"
214
+ },
215
+ {
216
+ "name": "--md-focus-ring-shape"
217
+ },
218
+ {
219
+ "name": "--md-focus-ring-shape-end-end"
220
+ },
221
+ {
222
+ "name": "--md-focus-ring-shape-end-start"
223
+ },
224
+ {
225
+ "name": "--md-focus-ring-shape-start-end"
226
+ },
227
+ {
228
+ "name": "--md-focus-ring-shape-start-start"
229
+ },
230
+ {
231
+ "name": "--md-focus-ring-width"
232
+ }
233
+ ],
234
+ "members": [
235
+ {
236
+ "kind": "field",
237
+ "name": "inward",
238
+ "type": {
239
+ "text": "boolean"
240
+ },
241
+ "default": "false",
242
+ "attribute": "inward",
243
+ "reflects": true
244
+ },
245
+ {
246
+ "kind": "field",
247
+ "name": "#boundFocusIn",
248
+ "privacy": "private"
249
+ },
250
+ {
251
+ "kind": "field",
252
+ "name": "#boundFocusOut",
253
+ "privacy": "private"
254
+ },
255
+ {
256
+ "kind": "field",
257
+ "name": "#boundPointerDown",
258
+ "privacy": "private"
259
+ },
260
+ {
261
+ "kind": "method",
262
+ "name": "#handleFocusIn",
263
+ "privacy": "private"
264
+ },
265
+ {
266
+ "kind": "method",
267
+ "name": "#handleFocusOut",
268
+ "privacy": "private"
269
+ },
270
+ {
271
+ "kind": "method",
272
+ "name": "#handlePointerDown",
273
+ "privacy": "private"
274
+ },
275
+ {
276
+ "kind": "method",
277
+ "name": "visualFocus"
278
+ },
279
+ {
280
+ "kind": "method",
281
+ "name": "visualBlur"
282
+ },
283
+ {
284
+ "kind": "method",
285
+ "name": "handleControlChange",
286
+ "parameters": [
287
+ {
288
+ "name": "prev",
289
+ "default": "null",
290
+ "type": {
291
+ "text": "HTMLElement | null"
292
+ }
293
+ },
294
+ {
295
+ "name": "next",
296
+ "default": "null",
297
+ "type": {
298
+ "text": "HTMLElement | null"
299
+ }
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "kind": "field",
305
+ "name": "ariaHidden",
306
+ "type": {
307
+ "text": "string"
308
+ },
309
+ "default": "'true'"
310
+ }
311
+ ],
312
+ "attributes": [
313
+ {
314
+ "name": "inward",
315
+ "type": {
316
+ "text": "boolean"
317
+ },
318
+ "default": "false",
319
+ "fieldName": "inward"
320
+ }
321
+ ],
322
+ "mixins": [
323
+ {
324
+ "name": "Attachable",
325
+ "module": "/src/base/mixins/attachable.js"
326
+ },
327
+ {
328
+ "name": "InternalsAttached",
329
+ "module": "/src/base/mixins/internals-attached.js"
330
+ }
331
+ ],
332
+ "superclass": {
333
+ "name": "LitElement",
334
+ "package": "lit"
335
+ },
336
+ "tagName": "md-focus-ring",
337
+ "customElement": true
338
+ }
339
+ ],
340
+ "exports": [
341
+ {
342
+ "kind": "js",
343
+ "name": "M3FocusRing",
344
+ "declaration": {
345
+ "name": "M3FocusRing",
346
+ "module": "src/m3/focus-ring.ts"
347
+ }
348
+ },
349
+ {
350
+ "kind": "custom-element-definition",
351
+ "name": "md-focus-ring",
352
+ "declaration": {
353
+ "name": "M3FocusRing",
354
+ "module": "src/m3/focus-ring.ts"
355
+ }
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "kind": "javascript-module",
361
+ "path": "src/m3/item.ts",
362
+ "declarations": [
363
+ {
364
+ "kind": "class",
365
+ "description": "",
366
+ "name": "M3Item",
367
+ "cssParts": [
368
+ {
369
+ "name": "container"
370
+ },
371
+ {
372
+ "name": "start"
373
+ },
374
+ {
375
+ "name": "text"
376
+ },
377
+ {
378
+ "name": "overline"
379
+ },
380
+ {
381
+ "name": "headline"
382
+ },
383
+ {
384
+ "name": "supporting-text"
385
+ },
386
+ {
387
+ "name": "trailing-supporting-text"
388
+ },
389
+ {
390
+ "name": "end"
391
+ }
392
+ ],
393
+ "slots": [
394
+ {
395
+ "description": "container element",
396
+ "name": "container"
397
+ },
398
+ {
399
+ "description": "start content",
400
+ "name": "start"
401
+ },
402
+ {
403
+ "description": "overline text",
404
+ "name": "overline"
405
+ },
406
+ {
407
+ "description": "headline text",
408
+ "name": "headline"
409
+ },
410
+ {
411
+ "description": "supporting text",
412
+ "name": "supporting-text"
413
+ },
414
+ {
415
+ "description": "trailing supporting text",
416
+ "name": "trailing-supporting-text"
417
+ },
418
+ {
419
+ "description": "end content",
420
+ "name": "end"
421
+ }
422
+ ],
423
+ "members": [
424
+ {
425
+ "kind": "field",
426
+ "name": "multiline",
427
+ "type": {
428
+ "text": "boolean"
429
+ },
430
+ "default": "false",
431
+ "attribute": "multiline",
432
+ "reflects": true
433
+ }
434
+ ],
435
+ "attributes": [
436
+ {
437
+ "name": "multiline",
438
+ "type": {
439
+ "text": "boolean"
440
+ },
441
+ "default": "false",
442
+ "fieldName": "multiline"
443
+ }
444
+ ],
445
+ "superclass": {
446
+ "name": "Item",
447
+ "module": "/src/base/item.js"
448
+ },
449
+ "tagName": "md-item",
450
+ "customElement": true
451
+ }
452
+ ],
453
+ "exports": [
454
+ {
455
+ "kind": "js",
456
+ "name": "M3Item",
457
+ "declaration": {
458
+ "name": "M3Item",
459
+ "module": "src/m3/item.ts"
460
+ }
461
+ },
462
+ {
463
+ "kind": "custom-element-definition",
464
+ "name": "md-item",
465
+ "declaration": {
466
+ "name": "M3Item",
467
+ "module": "src/m3/item.ts"
468
+ }
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "kind": "javascript-module",
474
+ "path": "src/m3/list-item.ts",
475
+ "declarations": [
476
+ {
477
+ "kind": "class",
478
+ "description": "",
479
+ "name": "M3ListItem",
480
+ "slots": [
481
+ {
482
+ "description": "contents in md-item",
483
+ "name": ""
484
+ }
485
+ ],
486
+ "members": [
487
+ {
488
+ "kind": "field",
489
+ "name": "ripple",
490
+ "type": {
491
+ "text": "M3Ripple"
492
+ }
493
+ },
494
+ {
495
+ "kind": "field",
496
+ "name": "focusRing",
497
+ "type": {
498
+ "text": "M3FocusRing"
499
+ }
500
+ }
501
+ ],
502
+ "superclass": {
503
+ "name": "ListItem",
504
+ "module": "/src/base/list-item.js"
505
+ },
506
+ "tagName": "md-list-item",
507
+ "customElement": true
508
+ }
509
+ ],
510
+ "exports": [
511
+ {
512
+ "kind": "js",
513
+ "name": "M3ListItem",
514
+ "declaration": {
515
+ "name": "M3ListItem",
516
+ "module": "src/m3/list-item.ts"
517
+ }
518
+ },
519
+ {
520
+ "kind": "custom-element-definition",
521
+ "name": "md-list-item",
522
+ "declaration": {
523
+ "name": "M3ListItem",
524
+ "module": "src/m3/list-item.ts"
525
+ }
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "kind": "javascript-module",
531
+ "path": "src/m3/list.ts",
532
+ "declarations": [
533
+ {
534
+ "kind": "class",
535
+ "description": "",
536
+ "name": "M3List",
537
+ "members": [],
538
+ "superclass": {
539
+ "name": "LitElement",
540
+ "package": "lit"
541
+ },
542
+ "tagName": "md-list",
543
+ "customElement": true
544
+ }
545
+ ],
546
+ "exports": [
547
+ {
548
+ "kind": "js",
549
+ "name": "M3List",
550
+ "declaration": {
551
+ "name": "M3List",
552
+ "module": "src/m3/list.ts"
553
+ }
554
+ },
555
+ {
556
+ "kind": "custom-element-definition",
557
+ "name": "md-list",
558
+ "declaration": {
559
+ "name": "M3List",
560
+ "module": "src/m3/list.ts"
561
+ }
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "kind": "javascript-module",
567
+ "path": "src/m3/menu-item.ts",
568
+ "declarations": [
569
+ {
570
+ "kind": "class",
571
+ "description": "",
572
+ "name": "M3MenuItem",
573
+ "slots": [
574
+ {
575
+ "description": "contents in md-item",
576
+ "name": "",
577
+ "inheritedFrom": {
578
+ "name": "M3ListItem",
579
+ "module": "src/m3/list-item.ts"
580
+ }
581
+ }
582
+ ],
583
+ "mixins": [
584
+ {
585
+ "name": "MenuItemMixin",
586
+ "module": "/src/base/menu-item.js"
587
+ }
588
+ ],
589
+ "superclass": {
590
+ "name": "M3ListItem",
591
+ "module": "/src/m3/list-item.js"
592
+ },
593
+ "tagName": "md-menu-item",
594
+ "customElement": true,
595
+ "members": [
596
+ {
597
+ "kind": "field",
598
+ "name": "ripple",
599
+ "type": {
600
+ "text": "M3Ripple"
601
+ },
602
+ "inheritedFrom": {
603
+ "name": "M3ListItem",
604
+ "module": "src/m3/list-item.ts"
605
+ }
606
+ },
607
+ {
608
+ "kind": "field",
609
+ "name": "focusRing",
610
+ "type": {
611
+ "text": "M3FocusRing"
612
+ },
613
+ "inheritedFrom": {
614
+ "name": "M3ListItem",
615
+ "module": "src/m3/list-item.ts"
616
+ }
617
+ }
618
+ ]
619
+ }
620
+ ],
621
+ "exports": [
622
+ {
623
+ "kind": "js",
624
+ "name": "M3MenuItem",
625
+ "declaration": {
626
+ "name": "M3MenuItem",
627
+ "module": "src/m3/menu-item.ts"
628
+ }
629
+ },
630
+ {
631
+ "kind": "custom-element-definition",
632
+ "name": "md-menu-item",
633
+ "declaration": {
634
+ "name": "M3MenuItem",
635
+ "module": "src/m3/menu-item.ts"
636
+ }
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ "kind": "javascript-module",
642
+ "path": "src/m3/menu.ts",
643
+ "declarations": [
644
+ {
645
+ "kind": "class",
646
+ "description": "",
647
+ "name": "M3Menu",
648
+ "cssParts": [
649
+ {
650
+ "name": "menu-surface"
651
+ },
652
+ {
653
+ "name": "list"
654
+ }
655
+ ],
656
+ "slots": [
657
+ {
658
+ "description": "menu items",
659
+ "name": ""
660
+ }
661
+ ],
662
+ "members": [
663
+ {
664
+ "kind": "field",
665
+ "name": "_possibleItemTags",
666
+ "type": {
667
+ "text": "array"
668
+ },
669
+ "readonly": true,
670
+ "default": "[ 'md-menu-item', 'md-menu-item-checkbox', 'md-menu-item-radio', ]"
671
+ },
672
+ {
673
+ "kind": "field",
674
+ "name": "_durations",
675
+ "type": {
676
+ "text": "object"
677
+ },
678
+ "readonly": true,
679
+ "default": "{ show: 300, hide: 200 }"
680
+ },
681
+ {
682
+ "kind": "field",
683
+ "name": "_scrollPadding",
684
+ "type": {
685
+ "text": "number"
686
+ },
687
+ "readonly": true,
688
+ "default": "4"
689
+ }
690
+ ],
691
+ "superclass": {
692
+ "name": "Menu",
693
+ "module": "/src/base/menu.js"
694
+ },
695
+ "tagName": "md-menu",
696
+ "customElement": true
697
+ }
698
+ ],
699
+ "exports": [
700
+ {
701
+ "kind": "js",
702
+ "name": "M3Menu",
703
+ "declaration": {
704
+ "name": "M3Menu",
705
+ "module": "src/m3/menu.ts"
706
+ }
707
+ },
708
+ {
709
+ "kind": "custom-element-definition",
710
+ "name": "md-menu",
711
+ "declaration": {
712
+ "name": "M3Menu",
713
+ "module": "src/m3/menu.ts"
714
+ }
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ "kind": "javascript-module",
720
+ "path": "src/m3/option.ts",
721
+ "declarations": [
722
+ {
723
+ "kind": "class",
724
+ "description": "",
725
+ "name": "M3Option",
726
+ "slots": [
727
+ {
728
+ "description": "contents in md-menu-item",
729
+ "name": "",
730
+ "inheritedFrom": {
731
+ "name": "M3ListItem",
732
+ "module": "src/m3/list-item.ts"
733
+ }
734
+ }
735
+ ],
736
+ "mixins": [
737
+ {
738
+ "name": "OptionMixin",
739
+ "module": "/src/base/option.js"
740
+ }
741
+ ],
742
+ "superclass": {
743
+ "name": "M3ListItem",
744
+ "module": "/src/m3/list-item.js"
745
+ },
746
+ "tagName": "md-option",
747
+ "customElement": true,
748
+ "members": [
749
+ {
750
+ "kind": "field",
751
+ "name": "ripple",
752
+ "type": {
753
+ "text": "M3Ripple"
754
+ },
755
+ "inheritedFrom": {
756
+ "name": "M3ListItem",
757
+ "module": "src/m3/list-item.ts"
758
+ }
759
+ },
760
+ {
761
+ "kind": "field",
762
+ "name": "focusRing",
763
+ "type": {
764
+ "text": "M3FocusRing"
765
+ },
766
+ "inheritedFrom": {
767
+ "name": "M3ListItem",
768
+ "module": "src/m3/list-item.ts"
769
+ }
770
+ }
771
+ ]
772
+ }
773
+ ],
774
+ "exports": [
775
+ {
776
+ "kind": "js",
777
+ "name": "M3Option",
778
+ "declaration": {
779
+ "name": "M3Option",
780
+ "module": "src/m3/option.ts"
781
+ }
782
+ },
783
+ {
784
+ "kind": "custom-element-definition",
785
+ "name": "md-option",
786
+ "declaration": {
787
+ "name": "M3Option",
788
+ "module": "src/m3/option.ts"
789
+ }
790
+ }
791
+ ]
792
+ },
793
+ {
794
+ "kind": "javascript-module",
795
+ "path": "src/m3/ripple.ts",
796
+ "declarations": [
797
+ {
798
+ "kind": "class",
799
+ "description": "",
800
+ "name": "M3Ripple",
801
+ "cssProperties": [
802
+ {
803
+ "name": "--md-ripple-color"
804
+ }
805
+ ],
806
+ "members": [
807
+ {
808
+ "kind": "field",
809
+ "name": "clickBehavior",
810
+ "type": {
811
+ "text": "'always' | 'none'"
812
+ },
813
+ "default": "'always'",
814
+ "attribute": "clickBehavior"
815
+ },
816
+ {
817
+ "kind": "field",
818
+ "name": "enterBehavior",
819
+ "type": {
820
+ "text": "'always' | 'none'"
821
+ },
822
+ "default": "'always'",
823
+ "attribute": "enterBehavior"
824
+ },
825
+ {
826
+ "kind": "field",
827
+ "name": "spaceBehavior",
828
+ "type": {
829
+ "text": "'always' | 'once' | 'none'"
830
+ },
831
+ "default": "'once'",
832
+ "attribute": "spaceBehavior"
833
+ },
834
+ {
835
+ "kind": "field",
836
+ "name": "$ripples",
837
+ "type": {
838
+ "text": "HTMLSpanElement[]"
839
+ },
840
+ "default": "[]"
841
+ },
842
+ {
843
+ "kind": "field",
844
+ "name": "#spaceKeyDown",
845
+ "privacy": "private",
846
+ "type": {
847
+ "text": "boolean"
848
+ },
849
+ "default": "false"
850
+ },
851
+ {
852
+ "kind": "field",
853
+ "name": "#pointerDown",
854
+ "privacy": "private",
855
+ "type": {
856
+ "text": "boolean"
857
+ },
858
+ "default": "false"
859
+ },
860
+ {
861
+ "kind": "field",
862
+ "name": "#lastTime",
863
+ "privacy": "private",
864
+ "type": {
865
+ "text": "number"
866
+ },
867
+ "default": "0"
868
+ },
869
+ {
870
+ "kind": "field",
871
+ "name": "#handleKeyDown",
872
+ "privacy": "private"
873
+ },
874
+ {
875
+ "kind": "field",
876
+ "name": "#handleKeyUp",
877
+ "privacy": "private"
878
+ },
879
+ {
880
+ "kind": "field",
881
+ "name": "#handlePointerEnter",
882
+ "privacy": "private"
883
+ },
884
+ {
885
+ "kind": "field",
886
+ "name": "#handlePointerLeave",
887
+ "privacy": "private"
888
+ },
889
+ {
890
+ "kind": "field",
891
+ "name": "#handlePointerDown",
892
+ "privacy": "private"
893
+ },
894
+ {
895
+ "kind": "field",
896
+ "name": "#handlePointerUp",
897
+ "privacy": "private"
898
+ },
899
+ {
900
+ "kind": "method",
901
+ "name": "handleControlChange",
902
+ "parameters": [
903
+ {
904
+ "name": "prev",
905
+ "default": "null",
906
+ "type": {
907
+ "text": "HTMLElement | null"
908
+ }
909
+ },
910
+ {
911
+ "name": "next",
912
+ "default": "null",
913
+ "type": {
914
+ "text": "HTMLElement | HTMLInputElement | null"
915
+ }
916
+ }
917
+ ]
918
+ },
919
+ {
920
+ "kind": "method",
921
+ "name": "#calculateRipple",
922
+ "privacy": "private",
923
+ "parameters": [
924
+ {
925
+ "name": "e",
926
+ "default": "null",
927
+ "type": {
928
+ "text": "MouseEvent | null"
929
+ }
930
+ }
931
+ ]
932
+ },
933
+ {
934
+ "kind": "method",
935
+ "name": "addRipple",
936
+ "parameters": [
937
+ {
938
+ "name": "e",
939
+ "default": "null",
940
+ "type": {
941
+ "text": "MouseEvent | null"
942
+ }
943
+ }
944
+ ]
945
+ },
946
+ {
947
+ "kind": "method",
948
+ "name": "removeRipple",
949
+ "parameters": [
950
+ {
951
+ "name": "ripple",
952
+ "type": {
953
+ "text": "HTMLSpanElement"
954
+ }
955
+ }
956
+ ]
957
+ },
958
+ {
959
+ "kind": "method",
960
+ "name": "removeRippleAll"
961
+ },
962
+ {
963
+ "kind": "field",
964
+ "name": "ariaHidden",
965
+ "type": {
966
+ "text": "string"
967
+ },
968
+ "default": "'true'"
969
+ }
970
+ ],
971
+ "attributes": [
972
+ {
973
+ "name": "clickBehavior",
974
+ "type": {
975
+ "text": "'always' | 'none'"
976
+ },
977
+ "default": "'always'",
978
+ "fieldName": "clickBehavior"
979
+ },
980
+ {
981
+ "name": "enterBehavior",
982
+ "type": {
983
+ "text": "'always' | 'none'"
984
+ },
985
+ "default": "'always'",
986
+ "fieldName": "enterBehavior"
987
+ },
988
+ {
989
+ "name": "spaceBehavior",
990
+ "type": {
991
+ "text": "'always' | 'once' | 'none'"
992
+ },
993
+ "default": "'once'",
994
+ "fieldName": "spaceBehavior"
995
+ }
996
+ ],
997
+ "mixins": [
998
+ {
999
+ "name": "Attachable",
1000
+ "module": "/src/base/mixins/attachable.js"
1001
+ },
1002
+ {
1003
+ "name": "InternalsAttached",
1004
+ "module": "/src/base/mixins/internals-attached.js"
1005
+ }
1006
+ ],
1007
+ "superclass": {
1008
+ "name": "LitElement",
1009
+ "package": "lit"
1010
+ },
1011
+ "tagName": "md-ripple",
1012
+ "customElement": true
1013
+ }
1014
+ ],
1015
+ "exports": [
1016
+ {
1017
+ "kind": "js",
1018
+ "name": "M3Ripple",
1019
+ "declaration": {
1020
+ "name": "M3Ripple",
1021
+ "module": "src/m3/ripple.ts"
1022
+ }
1023
+ },
1024
+ {
1025
+ "kind": "custom-element-definition",
1026
+ "name": "md-ripple",
1027
+ "declaration": {
1028
+ "name": "M3Ripple",
1029
+ "module": "src/m3/ripple.ts"
1030
+ }
1031
+ }
1032
+ ]
1033
+ },
1034
+ {
1035
+ "kind": "javascript-module",
1036
+ "path": "src/m3/switch.ts",
1037
+ "declarations": [
1038
+ {
1039
+ "kind": "class",
1040
+ "description": "",
1041
+ "name": "M3Switch",
1042
+ "cssParts": [
1043
+ {
1044
+ "name": "thumb"
1045
+ },
1046
+ {
1047
+ "name": "label"
1048
+ }
1049
+ ],
1050
+ "members": [
1051
+ {
1052
+ "kind": "method",
1053
+ "name": "renderOnIcon"
1054
+ },
1055
+ {
1056
+ "kind": "method",
1057
+ "name": "renderOffIcon"
1058
+ },
1059
+ {
1060
+ "kind": "field",
1061
+ "name": "$ripple",
1062
+ "type": {
1063
+ "text": "M3Ripple"
1064
+ }
1065
+ },
1066
+ {
1067
+ "kind": "field",
1068
+ "name": "$thumb",
1069
+ "type": {
1070
+ "text": "HTMLSpanElement"
1071
+ }
1072
+ },
1073
+ {
1074
+ "kind": "field",
1075
+ "name": "icons",
1076
+ "type": {
1077
+ "text": "boolean"
1078
+ },
1079
+ "default": "false",
1080
+ "attribute": "icons",
1081
+ "reflects": true
1082
+ },
1083
+ {
1084
+ "kind": "field",
1085
+ "name": "checkedIconOnly",
1086
+ "type": {
1087
+ "text": "boolean"
1088
+ },
1089
+ "default": "false",
1090
+ "attribute": "checkedIconOnly",
1091
+ "reflects": true
1092
+ },
1093
+ {
1094
+ "kind": "field",
1095
+ "name": "#pointerDownX",
1096
+ "privacy": "private",
1097
+ "type": {
1098
+ "text": "number"
1099
+ },
1100
+ "default": "0"
1101
+ },
1102
+ {
1103
+ "kind": "field",
1104
+ "name": "#handlePointerDown",
1105
+ "privacy": "private"
1106
+ },
1107
+ {
1108
+ "kind": "field",
1109
+ "name": "#handlePointerMove",
1110
+ "privacy": "private"
1111
+ },
1112
+ {
1113
+ "kind": "field",
1114
+ "name": "#handlePointerUp",
1115
+ "privacy": "private"
1116
+ }
1117
+ ],
1118
+ "attributes": [
1119
+ {
1120
+ "name": "icons",
1121
+ "type": {
1122
+ "text": "boolean"
1123
+ },
1124
+ "default": "false",
1125
+ "fieldName": "icons"
1126
+ },
1127
+ {
1128
+ "name": "checkedIconOnly",
1129
+ "type": {
1130
+ "text": "boolean"
1131
+ },
1132
+ "default": "false",
1133
+ "fieldName": "checkedIconOnly"
1134
+ }
1135
+ ],
1136
+ "superclass": {
1137
+ "name": "Switch",
1138
+ "module": "/src/base/switch.js"
1139
+ },
1140
+ "tagName": "md-switch",
1141
+ "customElement": true
1142
+ }
1143
+ ],
1144
+ "exports": [
1145
+ {
1146
+ "kind": "js",
1147
+ "name": "M3Switch",
1148
+ "declaration": {
1149
+ "name": "M3Switch",
1150
+ "module": "src/m3/switch.ts"
1151
+ }
1152
+ },
1153
+ {
1154
+ "kind": "custom-element-definition",
1155
+ "name": "md-switch",
1156
+ "declaration": {
1157
+ "name": "M3Switch",
1158
+ "module": "src/m3/switch.ts"
1159
+ }
1160
+ }
1161
+ ]
1162
+ },
1163
+ {
1164
+ "kind": "javascript-module",
1165
+ "path": "src/m3/toolbar.ts",
1166
+ "declarations": [
1167
+ {
1168
+ "kind": "class",
1169
+ "description": "",
1170
+ "name": "M3Toolbar",
1171
+ "cssParts": [
1172
+ {
1173
+ "name": "container"
1174
+ },
1175
+ {
1176
+ "name": "fab-slot"
1177
+ }
1178
+ ],
1179
+ "slots": [
1180
+ {
1181
+ "description": "toolbar contents",
1182
+ "name": ""
1183
+ },
1184
+ {
1185
+ "description": "FAB element",
1186
+ "name": "fab"
1187
+ }
1188
+ ],
1189
+ "members": [
1190
+ {
1191
+ "kind": "field",
1192
+ "name": "type",
1193
+ "type": {
1194
+ "text": "'docked' | 'floating'"
1195
+ },
1196
+ "default": "'docked'",
1197
+ "attribute": "type",
1198
+ "reflects": true
1199
+ },
1200
+ {
1201
+ "kind": "field",
1202
+ "name": "color",
1203
+ "type": {
1204
+ "text": "'standard' | 'vibrant'"
1205
+ },
1206
+ "default": "'standard'",
1207
+ "attribute": "color",
1208
+ "reflects": true
1209
+ },
1210
+ {
1211
+ "kind": "field",
1212
+ "name": "orientation",
1213
+ "type": {
1214
+ "text": "'horizontal' | 'vertical'"
1215
+ },
1216
+ "default": "'horizontal'",
1217
+ "attribute": "orientation",
1218
+ "reflects": true
1219
+ },
1220
+ {
1221
+ "kind": "field",
1222
+ "name": "role",
1223
+ "type": {
1224
+ "text": "string"
1225
+ },
1226
+ "default": "'toolbar'"
1227
+ },
1228
+ {
1229
+ "kind": "field",
1230
+ "name": "ariaOrientation"
1231
+ }
1232
+ ],
1233
+ "attributes": [
1234
+ {
1235
+ "name": "type",
1236
+ "type": {
1237
+ "text": "'docked' | 'floating'"
1238
+ },
1239
+ "default": "'docked'",
1240
+ "fieldName": "type"
1241
+ },
1242
+ {
1243
+ "name": "color",
1244
+ "type": {
1245
+ "text": "'standard' | 'vibrant'"
1246
+ },
1247
+ "default": "'standard'",
1248
+ "fieldName": "color"
1249
+ },
1250
+ {
1251
+ "name": "orientation",
1252
+ "type": {
1253
+ "text": "'horizontal' | 'vertical'"
1254
+ },
1255
+ "default": "'horizontal'",
1256
+ "fieldName": "orientation"
1257
+ }
1258
+ ],
1259
+ "mixins": [
1260
+ {
1261
+ "name": "InternalsAttached",
1262
+ "module": "/src/base/mixins/internals-attached.js"
1263
+ }
1264
+ ],
1265
+ "superclass": {
1266
+ "name": "LitElement",
1267
+ "package": "lit"
1268
+ },
1269
+ "tagName": "md-toolbar",
1270
+ "customElement": true
1271
+ }
1272
+ ],
1273
+ "exports": [
1274
+ {
1275
+ "kind": "js",
1276
+ "name": "M3Toolbar",
1277
+ "declaration": {
1278
+ "name": "M3Toolbar",
1279
+ "module": "src/m3/toolbar.ts"
1280
+ }
1281
+ },
1282
+ {
1283
+ "kind": "custom-element-definition",
1284
+ "name": "md-toolbar",
1285
+ "declaration": {
1286
+ "name": "M3Toolbar",
1287
+ "module": "src/m3/toolbar.ts"
1288
+ }
1289
+ }
1290
+ ]
1291
+ },
1292
+ {
1293
+ "kind": "javascript-module",
1294
+ "path": "src/m3/tooltip.ts",
1295
+ "declarations": [
1296
+ {
1297
+ "kind": "class",
1298
+ "description": "",
1299
+ "name": "M3Tooltip",
1300
+ "members": [
1301
+ {
1302
+ "kind": "field",
1303
+ "name": "_durations",
1304
+ "type": {
1305
+ "text": "object"
1306
+ },
1307
+ "readonly": true,
1308
+ "default": "{ show: 150, hide: 150 }"
1309
+ }
1310
+ ],
1311
+ "superclass": {
1312
+ "name": "Tooltip",
1313
+ "module": "/src/base/tooltip.js"
1314
+ },
1315
+ "tagName": "md-tooltip",
1316
+ "customElement": true
1317
+ }
1318
+ ],
1319
+ "exports": [
1320
+ {
1321
+ "kind": "js",
1322
+ "name": "M3Tooltip",
1323
+ "declaration": {
1324
+ "name": "M3Tooltip",
1325
+ "module": "src/m3/tooltip.ts"
1326
+ }
1327
+ },
1328
+ {
1329
+ "kind": "custom-element-definition",
1330
+ "name": "md-tooltip",
1331
+ "declaration": {
1332
+ "name": "M3Tooltip",
1333
+ "module": "src/m3/tooltip.ts"
1334
+ }
1335
+ }
1336
+ ]
1337
+ }
1338
+ ]
1339
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vollowx/seele",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
4
4
  "description": "Standard Extensible Elements. A web components library that can be styled and extended freely, pre-providing components in Material Design 3.",
5
5
  "author": "vollowx",
6
6
  "license": "MIT",
@@ -15,6 +15,7 @@
15
15
  "files": [
16
16
  "src/**/*.js",
17
17
  "src/**/*.d.ts",
18
+ "custom-elements.json",
18
19
  "LICENSE",
19
20
  "README.md"
20
21
  ],
@@ -41,7 +42,8 @@
41
42
  "prepublishOnly": "bun cleanup && bun run build",
42
43
  "format": "prettier . --check",
43
44
  "format:fix": "prettier . --check --write",
44
- "format:sortcss": "bunx postcss \"src/**/*.css\" --replace --no-map"
45
+ "format:sortcss": "bunx postcss \"src/**/*.css\" --replace --no-map",
46
+ "cem": "bunx cem analyze --litelement --globs 'src/m3/*.ts' --exclude 'src/m3/*.css.ts'"
45
47
  },
46
48
  "devDependencies": {
47
49
  "@custom-elements-manifest/analyzer": "^0.11.0",
@@ -13,6 +13,9 @@ export class ListItem extends FormAssociated(InternalsAttached(LitElement)) {
13
13
  this._role = 'option';
14
14
  }
15
15
  static { this.styles = [hiddenStyles]; }
16
+ get displayText() {
17
+ return this.innerText.trim();
18
+ }
16
19
  connectedCallback() {
17
20
  super.connectedCallback();
18
21
  this[internals].role = this._role;
@@ -272,12 +272,16 @@ export class Select extends Base {
272
272
  changed = this.lastSelectedOption !== firstSelectedOption;
273
273
  this.lastSelectedOption = firstSelectedOption;
274
274
  this[VALUE] = firstSelectedOption.value;
275
- this.displayText = firstSelectedOption.innerText;
275
+ this.displayText = firstSelectedOption.displayText;
276
276
  }
277
277
  else {
278
278
  changed = this.lastSelectedOption !== null;
279
279
  this.lastSelectedOption = null;
280
280
  this[VALUE] = '';
281
+ // Keep displayText if it was set (e.g., from SSR) and options aren't available yet.
282
+ if (this.options.length === 0 && this.displayText) {
283
+ return changed;
284
+ }
281
285
  this.displayText = '';
282
286
  }
283
287
  return changed;
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export const menuPartStyles = css `[part=menu]{background:var(--md-sys-color-surface-container);box-shadow:var(--md-sys-elevation-shadow-2);box-sizing:border-box;color:var(--md-sys-color-on-surface);height:inherit;max-height:inherit;max-width:inherit;min-width:inherit;opacity:0;-webkit-user-select:none;user-select:none;z-index:1000;border-radius:16px;outline:0;padding:4px;inset:auto;overflow-y:auto;transform:scaleY(.4)}:host(:state(closed)) [part=menu]{display:none}:host(:state(opening)) [part=menu]{opacity:1;transition:opacity 67ms,transform var(--md-sys-motion-exp-effects-slow-duration)var(--md-sys-motion-exp-effects-slow);display:block;transform:scaleY(1)}:host(:state(opened)) [part=menu]{opacity:1;display:block;transform:scaleY(1)}:host(:state(closing)) [part=menu]{opacity:0;transition:opacity var(--md-sys-motion-exp-effects-default-duration),transform var(--md-sys-motion-exp-effects-default-duration)var(--md-sys-motion-exp-effects-default);transform:scaleY(.4)}[part=items]{opacity:0;flex-direction:column;gap:2px;display:flex}:host(:state(opening)) [part=items]{opacity:1;transition:opacity 67ms linear 67ms}:host(:state(opened)) [part=items]{opacity:1}:host(:state(closing)) [part=items]{opacity:0;transition:opacity 67ms}`;
2
+ export const menuPartStyles = css `[part=menu]{background:var(--md-sys-color-surface-container);box-shadow:var(--md-sys-elevation-shadow-2);box-sizing:border-box;color:var(--md-sys-color-on-surface);height:inherit;max-height:inherit;max-width:inherit;min-width:inherit;opacity:0;-webkit-user-select:none;user-select:none;z-index:1000;border-radius:16px;outline:0;padding:4px;inset:auto;overflow-y:auto;transform:scaleY(.4)}:host(:not(:state(opening)):not(:state(opened))):not(:state(closing)) [part=menu],:host(:state(closed)) [part=menu]{display:none}:host(:state(opening)) [part=menu]{opacity:1;transition:opacity 67ms,transform var(--md-sys-motion-exp-effects-slow-duration)var(--md-sys-motion-exp-effects-slow);display:block;transform:scaleY(1)}:host(:state(opened)) [part=menu]{opacity:1;display:block;transform:scaleY(1)}:host(:state(closing)) [part=menu]{opacity:0;transition:opacity var(--md-sys-motion-exp-effects-default-duration),transform var(--md-sys-motion-exp-effects-default-duration)var(--md-sys-motion-exp-effects-default);transform:scaleY(.4)}[part=items]{opacity:0;flex-direction:column;gap:2px;display:flex}:host(:state(opening)) [part=items]{opacity:1;transition:opacity 67ms linear 67ms}:host(:state(opened)) [part=items]{opacity:1}:host(:state(closing)) [part=items]{opacity:0;transition:opacity 67ms}`;