@joralvmel/cosmos-elements 0.1.0 → 0.3.0

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.
@@ -288,6 +288,3109 @@
288
288
  }
289
289
  }
290
290
  ]
291
+ },
292
+ {
293
+ "kind": "javascript-module",
294
+ "path": "src/components/icon/cosm-icon.ts",
295
+ "declarations": [
296
+ {
297
+ "kind": "class",
298
+ "description": "Renders a structured SVG icon as a decorative graphic or a named informative image.",
299
+ "name": "CosmIcon",
300
+ "cssProperties": [
301
+ {
302
+ "description": "Override the rendered icon width and height.",
303
+ "name": "--cosm-icon-size"
304
+ }
305
+ ],
306
+ "cssParts": [
307
+ {
308
+ "description": "The rendered SVG image.",
309
+ "name": "icon"
310
+ }
311
+ ],
312
+ "members": [
313
+ {
314
+ "kind": "field",
315
+ "name": "icon",
316
+ "privacy": "public",
317
+ "type": {
318
+ "text": "Props['icon']"
319
+ }
320
+ },
321
+ {
322
+ "kind": "field",
323
+ "name": "size",
324
+ "privacy": "public",
325
+ "type": {
326
+ "text": "CosmIconSize"
327
+ },
328
+ "attribute": "size",
329
+ "reflects": true
330
+ },
331
+ {
332
+ "kind": "field",
333
+ "name": "stroke",
334
+ "privacy": "public",
335
+ "type": {
336
+ "text": "string"
337
+ },
338
+ "attribute": "stroke"
339
+ },
340
+ {
341
+ "kind": "field",
342
+ "name": "fill",
343
+ "privacy": "public",
344
+ "type": {
345
+ "text": "string"
346
+ },
347
+ "attribute": "fill"
348
+ },
349
+ {
350
+ "kind": "field",
351
+ "name": "strokeWidth",
352
+ "privacy": "public",
353
+ "type": {
354
+ "text": "number"
355
+ },
356
+ "attribute": "stroke-width"
357
+ },
358
+ {
359
+ "kind": "field",
360
+ "name": "label",
361
+ "privacy": "public",
362
+ "type": {
363
+ "text": "string | undefined"
364
+ },
365
+ "default": "undefined",
366
+ "attribute": "label"
367
+ },
368
+ {
369
+ "kind": "field",
370
+ "name": "decorative",
371
+ "privacy": "public",
372
+ "type": {
373
+ "text": "boolean"
374
+ },
375
+ "attribute": "decorative",
376
+ "reflects": true
377
+ },
378
+ {
379
+ "kind": "method",
380
+ "name": "#requireIcon",
381
+ "privacy": "private",
382
+ "return": {
383
+ "type": {
384
+ "text": "IconDefinition | undefined"
385
+ }
386
+ }
387
+ }
388
+ ],
389
+ "attributes": [
390
+ {
391
+ "name": "size",
392
+ "type": {
393
+ "text": "CosmIconSize"
394
+ },
395
+ "fieldName": "size"
396
+ },
397
+ {
398
+ "name": "stroke",
399
+ "type": {
400
+ "text": "string"
401
+ },
402
+ "fieldName": "stroke"
403
+ },
404
+ {
405
+ "name": "fill",
406
+ "type": {
407
+ "text": "string"
408
+ },
409
+ "fieldName": "fill"
410
+ },
411
+ {
412
+ "name": "stroke-width",
413
+ "type": {
414
+ "text": "number"
415
+ },
416
+ "fieldName": "strokeWidth"
417
+ },
418
+ {
419
+ "name": "label",
420
+ "type": {
421
+ "text": "string | undefined"
422
+ },
423
+ "default": "undefined",
424
+ "fieldName": "label"
425
+ },
426
+ {
427
+ "name": "decorative",
428
+ "type": {
429
+ "text": "boolean"
430
+ },
431
+ "fieldName": "decorative"
432
+ }
433
+ ],
434
+ "superclass": {
435
+ "name": "CosmElement",
436
+ "module": "/src/internal/cosm-element.js"
437
+ },
438
+ "tagName": "cosm-icon",
439
+ "customElement": true
440
+ }
441
+ ],
442
+ "exports": [
443
+ {
444
+ "kind": "js",
445
+ "name": "CosmIcon",
446
+ "declaration": {
447
+ "name": "CosmIcon",
448
+ "module": "src/components/icon/cosm-icon.ts"
449
+ }
450
+ }
451
+ ]
452
+ },
453
+ {
454
+ "kind": "javascript-module",
455
+ "path": "src/components/icon-button/cosm-icon-button.ts",
456
+ "declarations": [
457
+ {
458
+ "kind": "class",
459
+ "description": "Labeled icon-only action or toggle.",
460
+ "name": "CosmIconButton",
461
+ "cssProperties": [
462
+ {
463
+ "description": "Background.",
464
+ "name": "--cosm-icon-button-background"
465
+ },
466
+ {
467
+ "description": "Icon color.",
468
+ "name": "--cosm-icon-button-color"
469
+ },
470
+ {
471
+ "description": "Border color.",
472
+ "name": "--cosm-icon-button-border"
473
+ },
474
+ {
475
+ "description": "Corner radius.",
476
+ "name": "--cosm-icon-button-radius"
477
+ },
478
+ {
479
+ "description": "Focus indicator color.",
480
+ "name": "--cosm-icon-button-focus"
481
+ }
482
+ ],
483
+ "cssParts": [
484
+ {
485
+ "description": "Native button.",
486
+ "name": "base"
487
+ }
488
+ ],
489
+ "slots": [
490
+ {
491
+ "description": "Decorative icon.",
492
+ "name": ""
493
+ }
494
+ ],
495
+ "members": [
496
+ {
497
+ "kind": "field",
498
+ "name": "formAssociated",
499
+ "type": {
500
+ "text": "boolean"
501
+ },
502
+ "static": true,
503
+ "default": "true"
504
+ },
505
+ {
506
+ "kind": "field",
507
+ "name": "shadowRootOptions",
508
+ "type": {
509
+ "text": "ShadowRootInit"
510
+ },
511
+ "static": true,
512
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
513
+ },
514
+ {
515
+ "kind": "field",
516
+ "name": "label",
517
+ "privacy": "public",
518
+ "type": {
519
+ "text": "string"
520
+ },
521
+ "default": "''",
522
+ "attribute": "label"
523
+ },
524
+ {
525
+ "kind": "field",
526
+ "name": "mode",
527
+ "privacy": "public",
528
+ "type": {
529
+ "text": "Props['mode']"
530
+ },
531
+ "attribute": "mode",
532
+ "reflects": true
533
+ },
534
+ {
535
+ "kind": "field",
536
+ "name": "variant",
537
+ "privacy": "public",
538
+ "type": {
539
+ "text": "Props['variant']"
540
+ },
541
+ "attribute": "variant",
542
+ "reflects": true
543
+ },
544
+ {
545
+ "kind": "field",
546
+ "name": "tone",
547
+ "privacy": "public",
548
+ "type": {
549
+ "text": "Props['tone']"
550
+ },
551
+ "attribute": "tone",
552
+ "reflects": true
553
+ },
554
+ {
555
+ "kind": "field",
556
+ "name": "size",
557
+ "privacy": "public",
558
+ "type": {
559
+ "text": "Props['size']"
560
+ },
561
+ "attribute": "size",
562
+ "reflects": true
563
+ },
564
+ {
565
+ "kind": "field",
566
+ "name": "disabled",
567
+ "privacy": "public",
568
+ "type": {
569
+ "text": "boolean"
570
+ },
571
+ "attribute": "disabled",
572
+ "reflects": true
573
+ },
574
+ {
575
+ "kind": "field",
576
+ "name": "type",
577
+ "privacy": "public",
578
+ "type": {
579
+ "text": "Props['type']"
580
+ },
581
+ "attribute": "type"
582
+ },
583
+ {
584
+ "kind": "field",
585
+ "name": "defaultPressed",
586
+ "privacy": "public",
587
+ "type": {
588
+ "text": "boolean"
589
+ },
590
+ "attribute": "default-pressed"
591
+ },
592
+ {
593
+ "kind": "field",
594
+ "name": "pressedControlled",
595
+ "type": {
596
+ "text": "boolean"
597
+ },
598
+ "default": "false",
599
+ "description": "Adapters set ownership when a pressed binding is present."
600
+ },
601
+ {
602
+ "kind": "field",
603
+ "name": "#pressed",
604
+ "privacy": "private",
605
+ "type": {
606
+ "text": "boolean"
607
+ },
608
+ "default": "false"
609
+ },
610
+ {
611
+ "kind": "field",
612
+ "name": "#edited",
613
+ "privacy": "private",
614
+ "type": {
615
+ "text": "boolean"
616
+ },
617
+ "default": "false"
618
+ },
619
+ {
620
+ "kind": "field",
621
+ "name": "#formDisabled",
622
+ "privacy": "private",
623
+ "type": {
624
+ "text": "boolean"
625
+ },
626
+ "default": "false"
627
+ },
628
+ {
629
+ "kind": "field",
630
+ "name": "#nextSource",
631
+ "privacy": "private",
632
+ "type": {
633
+ "text": "PressSource | undefined"
634
+ }
635
+ },
636
+ {
637
+ "kind": "field",
638
+ "name": "#internals",
639
+ "privacy": "private",
640
+ "type": {
641
+ "text": "ElementInternals | undefined"
642
+ },
643
+ "readonly": true
644
+ },
645
+ {
646
+ "kind": "field",
647
+ "name": "pressed",
648
+ "privacy": "public",
649
+ "type": {
650
+ "text": "boolean"
651
+ },
652
+ "attribute": "pressed"
653
+ },
654
+ {
655
+ "kind": "method",
656
+ "name": "#setPressed",
657
+ "privacy": "private",
658
+ "return": {
659
+ "type": {
660
+ "text": "void"
661
+ }
662
+ },
663
+ "parameters": [
664
+ {
665
+ "name": "value",
666
+ "type": {
667
+ "text": "boolean"
668
+ }
669
+ }
670
+ ]
671
+ },
672
+ {
673
+ "kind": "field",
674
+ "name": "form",
675
+ "type": {
676
+ "text": "HTMLFormElement | null"
677
+ },
678
+ "readonly": true
679
+ },
680
+ {
681
+ "kind": "method",
682
+ "name": "formDisabledCallback",
683
+ "return": {
684
+ "type": {
685
+ "text": "void"
686
+ }
687
+ },
688
+ "parameters": [
689
+ {
690
+ "name": "disabled",
691
+ "type": {
692
+ "text": "boolean"
693
+ }
694
+ }
695
+ ]
696
+ },
697
+ {
698
+ "kind": "method",
699
+ "name": "click",
700
+ "return": {
701
+ "type": {
702
+ "text": "void"
703
+ }
704
+ }
705
+ },
706
+ {
707
+ "kind": "field",
708
+ "name": "#onPointerDown",
709
+ "privacy": "private"
710
+ },
711
+ {
712
+ "kind": "field",
713
+ "name": "#onKeyDown",
714
+ "privacy": "private"
715
+ },
716
+ {
717
+ "kind": "field",
718
+ "name": "#onClick",
719
+ "privacy": "private"
720
+ }
721
+ ],
722
+ "events": [
723
+ {
724
+ "type": {
725
+ "text": "CustomEvent<IconButtonPressDetail>"
726
+ },
727
+ "description": "Activation.",
728
+ "name": "cosm-press"
729
+ },
730
+ {
731
+ "type": {
732
+ "text": "CustomEvent<IconButtonPressedChangeDetail>"
733
+ },
734
+ "description": "Proposed toggle state.",
735
+ "name": "cosm-pressed-change"
736
+ }
737
+ ],
738
+ "attributes": [
739
+ {
740
+ "name": "label",
741
+ "type": {
742
+ "text": "string"
743
+ },
744
+ "default": "''",
745
+ "fieldName": "label"
746
+ },
747
+ {
748
+ "name": "mode",
749
+ "type": {
750
+ "text": "Props['mode']"
751
+ },
752
+ "fieldName": "mode"
753
+ },
754
+ {
755
+ "name": "variant",
756
+ "type": {
757
+ "text": "Props['variant']"
758
+ },
759
+ "fieldName": "variant"
760
+ },
761
+ {
762
+ "name": "tone",
763
+ "type": {
764
+ "text": "Props['tone']"
765
+ },
766
+ "fieldName": "tone"
767
+ },
768
+ {
769
+ "name": "size",
770
+ "type": {
771
+ "text": "Props['size']"
772
+ },
773
+ "fieldName": "size"
774
+ },
775
+ {
776
+ "name": "disabled",
777
+ "type": {
778
+ "text": "boolean"
779
+ },
780
+ "fieldName": "disabled"
781
+ },
782
+ {
783
+ "name": "type",
784
+ "type": {
785
+ "text": "Props['type']"
786
+ },
787
+ "fieldName": "type"
788
+ },
789
+ {
790
+ "name": "pressed",
791
+ "type": {
792
+ "text": "boolean"
793
+ },
794
+ "fieldName": "pressed"
795
+ },
796
+ {
797
+ "name": "default-pressed",
798
+ "type": {
799
+ "text": "boolean"
800
+ },
801
+ "fieldName": "defaultPressed"
802
+ }
803
+ ],
804
+ "superclass": {
805
+ "name": "CosmElement",
806
+ "module": "/src/internal/cosm-element.js"
807
+ },
808
+ "tagName": "cosm-icon-button",
809
+ "customElement": true
810
+ }
811
+ ],
812
+ "exports": [
813
+ {
814
+ "kind": "js",
815
+ "name": "CosmIconButton",
816
+ "declaration": {
817
+ "name": "CosmIconButton",
818
+ "module": "src/components/icon-button/cosm-icon-button.ts"
819
+ }
820
+ }
821
+ ]
822
+ },
823
+ {
824
+ "kind": "javascript-module",
825
+ "path": "src/components/listbox/cosm-listbox.ts",
826
+ "declarations": [
827
+ {
828
+ "kind": "class",
829
+ "description": "Renders a named, keyboard-navigable single- or multiple-selection listbox.",
830
+ "name": "CosmListbox",
831
+ "cssProperties": [
832
+ {
833
+ "description": "Container background.",
834
+ "name": "--cosm-listbox-background"
835
+ },
836
+ {
837
+ "description": "Primary foreground.",
838
+ "name": "--cosm-listbox-color"
839
+ },
840
+ {
841
+ "description": "Outlined container border color.",
842
+ "name": "--cosm-listbox-border"
843
+ },
844
+ {
845
+ "description": "Container and option corner radius.",
846
+ "name": "--cosm-listbox-radius"
847
+ },
848
+ {
849
+ "description": "Minimum option height.",
850
+ "name": "--cosm-listbox-option-height"
851
+ },
852
+ {
853
+ "description": "Option padding.",
854
+ "name": "--cosm-listbox-option-padding"
855
+ },
856
+ {
857
+ "description": "Space between icon, content and selection indicator.",
858
+ "name": "--cosm-listbox-gap"
859
+ },
860
+ {
861
+ "description": "Primary option text size.",
862
+ "name": "--cosm-listbox-font-size"
863
+ },
864
+ {
865
+ "description": "Supporting text color.",
866
+ "name": "--cosm-listbox-description-color"
867
+ },
868
+ {
869
+ "description": "Selected option background.",
870
+ "name": "--cosm-listbox-selected-background"
871
+ },
872
+ {
873
+ "description": "Selected option foreground.",
874
+ "name": "--cosm-listbox-selected-color"
875
+ },
876
+ {
877
+ "description": "Visible keyboard focus outline color.",
878
+ "name": "--cosm-listbox-focus"
879
+ },
880
+ {
881
+ "description": "Maximum scrollable list height.",
882
+ "name": "--cosm-listbox-max-height"
883
+ }
884
+ ],
885
+ "cssParts": [
886
+ {
887
+ "description": "Outer listbox container.",
888
+ "name": "base"
889
+ },
890
+ {
891
+ "description": "Visible or visually hidden accessible label.",
892
+ "name": "label"
893
+ },
894
+ {
895
+ "description": "Scrollable listbox element.",
896
+ "name": "list"
897
+ },
898
+ {
899
+ "description": "Named, noninteractive option group.",
900
+ "name": "group"
901
+ },
902
+ {
903
+ "description": "Noninteractive group heading.",
904
+ "name": "group-label"
905
+ },
906
+ {
907
+ "description": "Selectable row with data-active, data-selected and data-disabled states.",
908
+ "name": "option"
909
+ },
910
+ {
911
+ "description": "Decorative option icon.",
912
+ "name": "icon"
913
+ },
914
+ {
915
+ "description": "Option text content wrapper.",
916
+ "name": "content"
917
+ },
918
+ {
919
+ "description": "Primary option text.",
920
+ "name": "option-label"
921
+ },
922
+ {
923
+ "description": "Supporting option text.",
924
+ "name": "description"
925
+ },
926
+ {
927
+ "description": "Decorative selected-state indicator.",
928
+ "name": "indicator"
929
+ }
930
+ ],
931
+ "slots": [
932
+ {
933
+ "description": "No content slot; options are supplied through the `items` property.",
934
+ "name": ""
935
+ }
936
+ ],
937
+ "members": [
938
+ {
939
+ "kind": "field",
940
+ "name": "shadowRootOptions",
941
+ "type": {
942
+ "text": "ShadowRootInit"
943
+ },
944
+ "static": true,
945
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
946
+ },
947
+ {
948
+ "kind": "field",
949
+ "name": "label",
950
+ "privacy": "public",
951
+ "type": {
952
+ "text": "Props['label']"
953
+ },
954
+ "description": "Required, nonempty accessible name for the listbox.",
955
+ "default": "''",
956
+ "attribute": "label"
957
+ },
958
+ {
959
+ "kind": "field",
960
+ "name": "labelHidden",
961
+ "privacy": "public",
962
+ "type": {
963
+ "text": "Props['labelHidden']"
964
+ },
965
+ "description": "Visually hides the label while retaining it as the listbox accessible name.",
966
+ "attribute": "label-hidden",
967
+ "reflects": true
968
+ },
969
+ {
970
+ "kind": "field",
971
+ "name": "items",
972
+ "privacy": "public",
973
+ "type": {
974
+ "text": "Props['items']"
975
+ },
976
+ "description": "Ordered readonly options and named groups to render.",
977
+ "default": "[]"
978
+ },
979
+ {
980
+ "kind": "field",
981
+ "name": "selectionMode",
982
+ "privacy": "public",
983
+ "type": {
984
+ "text": "Props['selectionMode']"
985
+ },
986
+ "description": "Permits one selected value or toggling multiple values.",
987
+ "attribute": "selection-mode",
988
+ "reflects": true
989
+ },
990
+ {
991
+ "kind": "field",
992
+ "name": "defaultSelectedValues",
993
+ "privacy": "public",
994
+ "type": {
995
+ "text": "Props['defaultSelectedValues']"
996
+ },
997
+ "description": "Values used for the initial autonomous selection; later changes do not reset it.",
998
+ "default": "[]"
999
+ },
1000
+ {
1001
+ "kind": "field",
1002
+ "name": "variant",
1003
+ "privacy": "public",
1004
+ "type": {
1005
+ "text": "Props['variant']"
1006
+ },
1007
+ "description": "Plain or outlined container presentation.",
1008
+ "attribute": "variant",
1009
+ "reflects": true
1010
+ },
1011
+ {
1012
+ "kind": "field",
1013
+ "name": "size",
1014
+ "privacy": "public",
1015
+ "type": {
1016
+ "text": "ListboxSize"
1017
+ },
1018
+ "description": "Semantic size or a positive finite minimum option height in CSS pixels.",
1019
+ "default": "props.size.default",
1020
+ "attribute": "size",
1021
+ "reflects": true
1022
+ },
1023
+ {
1024
+ "kind": "field",
1025
+ "name": "disabled",
1026
+ "privacy": "public",
1027
+ "type": {
1028
+ "text": "Props['disabled']"
1029
+ },
1030
+ "description": "Prevents focus and selection interaction for the whole list.",
1031
+ "attribute": "disabled",
1032
+ "reflects": true
1033
+ },
1034
+ {
1035
+ "kind": "field",
1036
+ "name": "readOnly",
1037
+ "privacy": "public",
1038
+ "type": {
1039
+ "text": "Props['readOnly']"
1040
+ },
1041
+ "description": "Allows exploration while preventing selection proposals.",
1042
+ "attribute": "read-only",
1043
+ "reflects": true
1044
+ },
1045
+ {
1046
+ "kind": "field",
1047
+ "name": "locale",
1048
+ "privacy": "public",
1049
+ "type": {
1050
+ "text": "Props['locale']"
1051
+ },
1052
+ "description": "Locale override for typeahead; otherwise inherits the nearest `lang`.",
1053
+ "default": "undefined",
1054
+ "attribute": "locale"
1055
+ },
1056
+ {
1057
+ "kind": "field",
1058
+ "name": "selectedValuesControlled",
1059
+ "type": {
1060
+ "text": "boolean"
1061
+ },
1062
+ "description": "Set by adapters or imperative callers to override binding inference for `selectedValues`."
1063
+ },
1064
+ {
1065
+ "kind": "field",
1066
+ "name": "#selectedValues",
1067
+ "privacy": "private",
1068
+ "type": {
1069
+ "text": "Props['selectedValues']"
1070
+ },
1071
+ "default": "undefined"
1072
+ },
1073
+ {
1074
+ "kind": "field",
1075
+ "name": "#selectedValuesControlled",
1076
+ "privacy": "private",
1077
+ "type": {
1078
+ "text": "boolean"
1079
+ },
1080
+ "default": "false"
1081
+ },
1082
+ {
1083
+ "kind": "field",
1084
+ "name": "#selection",
1085
+ "privacy": "private",
1086
+ "type": {
1087
+ "text": "readonly string[]"
1088
+ },
1089
+ "default": "[]"
1090
+ },
1091
+ {
1092
+ "kind": "field",
1093
+ "name": "#activeValue",
1094
+ "privacy": "private",
1095
+ "type": {
1096
+ "text": "string | null"
1097
+ },
1098
+ "default": "null"
1099
+ },
1100
+ {
1101
+ "kind": "field",
1102
+ "name": "#initialized",
1103
+ "privacy": "private",
1104
+ "type": {
1105
+ "text": "boolean"
1106
+ },
1107
+ "default": "false"
1108
+ },
1109
+ {
1110
+ "kind": "field",
1111
+ "name": "#restoreFocusAfterUpdate",
1112
+ "privacy": "private",
1113
+ "type": {
1114
+ "text": "boolean"
1115
+ },
1116
+ "default": "false"
1117
+ },
1118
+ {
1119
+ "kind": "field",
1120
+ "name": "#pointerEntry",
1121
+ "privacy": "private",
1122
+ "type": {
1123
+ "text": "boolean"
1124
+ },
1125
+ "default": "false"
1126
+ },
1127
+ {
1128
+ "kind": "field",
1129
+ "name": "#typeahead",
1130
+ "privacy": "private",
1131
+ "type": {
1132
+ "text": "string"
1133
+ },
1134
+ "default": "''"
1135
+ },
1136
+ {
1137
+ "kind": "field",
1138
+ "name": "#id",
1139
+ "privacy": "private",
1140
+ "readonly": true,
1141
+ "default": "`cosm-listbox-${++instance}`"
1142
+ },
1143
+ {
1144
+ "kind": "field",
1145
+ "name": "selectedValues",
1146
+ "privacy": "public",
1147
+ "type": {
1148
+ "text": "Props['selectedValues']"
1149
+ },
1150
+ "description": "Controlled selected values; setting a defined array marks the state controlled."
1151
+ },
1152
+ {
1153
+ "kind": "field",
1154
+ "name": "currentSelectedValues",
1155
+ "type": {
1156
+ "text": "readonly string[]"
1157
+ },
1158
+ "description": "The current committed selection, regardless of whether it is autonomous or controlled.",
1159
+ "readonly": true
1160
+ },
1161
+ {
1162
+ "kind": "field",
1163
+ "name": "activeValue",
1164
+ "type": {
1165
+ "text": "string | null"
1166
+ },
1167
+ "description": "The current roving option value, or `null` when every option is disabled or absent.",
1168
+ "readonly": true
1169
+ },
1170
+ {
1171
+ "kind": "method",
1172
+ "name": "focus",
1173
+ "return": {
1174
+ "type": {
1175
+ "text": "void"
1176
+ }
1177
+ },
1178
+ "parameters": [
1179
+ {
1180
+ "name": "options",
1181
+ "optional": true,
1182
+ "type": {
1183
+ "text": "FocusOptions"
1184
+ }
1185
+ }
1186
+ ],
1187
+ "description": "Focuses the active enabled option, or the initially selected enabled option."
1188
+ },
1189
+ {
1190
+ "kind": "method",
1191
+ "name": "#getOptions",
1192
+ "privacy": "private",
1193
+ "return": {
1194
+ "type": {
1195
+ "text": "readonly ListboxOption<IconDefinition>[]"
1196
+ }
1197
+ }
1198
+ },
1199
+ {
1200
+ "kind": "method",
1201
+ "name": "#getLocale",
1202
+ "privacy": "private",
1203
+ "return": {
1204
+ "type": {
1205
+ "text": "string | undefined"
1206
+ }
1207
+ }
1208
+ },
1209
+ {
1210
+ "kind": "field",
1211
+ "name": "#onFocusIn",
1212
+ "privacy": "private"
1213
+ },
1214
+ {
1215
+ "kind": "field",
1216
+ "name": "#onFocusOut",
1217
+ "privacy": "private"
1218
+ },
1219
+ {
1220
+ "kind": "method",
1221
+ "name": "#isEnteringFromOutside",
1222
+ "privacy": "private",
1223
+ "return": {
1224
+ "type": {
1225
+ "text": "boolean"
1226
+ }
1227
+ },
1228
+ "parameters": [
1229
+ {
1230
+ "name": "target",
1231
+ "type": {
1232
+ "text": "EventTarget | null"
1233
+ }
1234
+ }
1235
+ ]
1236
+ },
1237
+ {
1238
+ "kind": "field",
1239
+ "name": "#onKeyDown",
1240
+ "privacy": "private"
1241
+ },
1242
+ {
1243
+ "kind": "field",
1244
+ "name": "#onOptionClick",
1245
+ "privacy": "private"
1246
+ },
1247
+ {
1248
+ "kind": "field",
1249
+ "name": "#onOptionPointerDown",
1250
+ "privacy": "private"
1251
+ },
1252
+ {
1253
+ "kind": "method",
1254
+ "name": "#focusFromPointer",
1255
+ "privacy": "private",
1256
+ "return": {
1257
+ "type": {
1258
+ "text": "void"
1259
+ }
1260
+ },
1261
+ "parameters": [
1262
+ {
1263
+ "name": "value",
1264
+ "type": {
1265
+ "text": "string"
1266
+ }
1267
+ }
1268
+ ]
1269
+ },
1270
+ {
1271
+ "kind": "method",
1272
+ "name": "#focusOption",
1273
+ "privacy": "private",
1274
+ "return": {
1275
+ "type": {
1276
+ "text": "void"
1277
+ }
1278
+ },
1279
+ "parameters": [
1280
+ {
1281
+ "name": "value",
1282
+ "type": {
1283
+ "text": "string | null"
1284
+ }
1285
+ },
1286
+ {
1287
+ "name": "options",
1288
+ "optional": true,
1289
+ "type": {
1290
+ "text": "FocusOptions"
1291
+ }
1292
+ }
1293
+ ]
1294
+ },
1295
+ {
1296
+ "kind": "method",
1297
+ "name": "#setActive",
1298
+ "privacy": "private",
1299
+ "return": {
1300
+ "type": {
1301
+ "text": "void"
1302
+ }
1303
+ },
1304
+ "parameters": [
1305
+ {
1306
+ "name": "value",
1307
+ "type": {
1308
+ "text": "string | null"
1309
+ }
1310
+ }
1311
+ ]
1312
+ },
1313
+ {
1314
+ "kind": "method",
1315
+ "name": "#activate",
1316
+ "privacy": "private",
1317
+ "return": {
1318
+ "type": {
1319
+ "text": "void"
1320
+ }
1321
+ },
1322
+ "parameters": [
1323
+ {
1324
+ "name": "value",
1325
+ "type": {
1326
+ "text": "string"
1327
+ }
1328
+ },
1329
+ {
1330
+ "name": "source",
1331
+ "type": {
1332
+ "text": "ListboxSelectionChangeDetail['source']"
1333
+ }
1334
+ }
1335
+ ]
1336
+ }
1337
+ ],
1338
+ "events": [
1339
+ {
1340
+ "type": {
1341
+ "text": "CustomEvent<ListboxSelectionChangeDetail>"
1342
+ },
1343
+ "description": "Proposes a selection update.",
1344
+ "name": "cosm-selection-change"
1345
+ }
1346
+ ],
1347
+ "attributes": [
1348
+ {
1349
+ "name": "label",
1350
+ "type": {
1351
+ "text": "Props['label']"
1352
+ },
1353
+ "description": "Required, nonempty accessible name for the listbox.",
1354
+ "default": "''",
1355
+ "fieldName": "label"
1356
+ },
1357
+ {
1358
+ "name": "label-hidden",
1359
+ "type": {
1360
+ "text": "Props['labelHidden']"
1361
+ },
1362
+ "description": "Visually hides the label while retaining it as the listbox accessible name.",
1363
+ "fieldName": "labelHidden"
1364
+ },
1365
+ {
1366
+ "name": "selection-mode",
1367
+ "type": {
1368
+ "text": "Props['selectionMode']"
1369
+ },
1370
+ "description": "Permits one selected value or toggling multiple values.",
1371
+ "fieldName": "selectionMode"
1372
+ },
1373
+ {
1374
+ "name": "variant",
1375
+ "type": {
1376
+ "text": "Props['variant']"
1377
+ },
1378
+ "description": "Plain or outlined container presentation.",
1379
+ "fieldName": "variant"
1380
+ },
1381
+ {
1382
+ "name": "size",
1383
+ "type": {
1384
+ "text": "ListboxSize"
1385
+ },
1386
+ "description": "Semantic size or a positive finite minimum option height in CSS pixels.",
1387
+ "default": "props.size.default",
1388
+ "fieldName": "size"
1389
+ },
1390
+ {
1391
+ "name": "disabled",
1392
+ "type": {
1393
+ "text": "Props['disabled']"
1394
+ },
1395
+ "description": "Prevents focus and selection interaction for the whole list.",
1396
+ "fieldName": "disabled"
1397
+ },
1398
+ {
1399
+ "name": "read-only",
1400
+ "type": {
1401
+ "text": "Props['readOnly']"
1402
+ },
1403
+ "description": "Allows exploration while preventing selection proposals.",
1404
+ "fieldName": "readOnly"
1405
+ },
1406
+ {
1407
+ "name": "locale",
1408
+ "type": {
1409
+ "text": "Props['locale']"
1410
+ },
1411
+ "description": "Locale override for typeahead; otherwise inherits the nearest `lang`.",
1412
+ "default": "undefined",
1413
+ "fieldName": "locale"
1414
+ }
1415
+ ],
1416
+ "superclass": {
1417
+ "name": "CosmElement",
1418
+ "module": "/src/internal/cosm-element.js"
1419
+ },
1420
+ "tagName": "cosm-listbox",
1421
+ "customElement": true
1422
+ }
1423
+ ],
1424
+ "exports": [
1425
+ {
1426
+ "kind": "js",
1427
+ "name": "CosmListbox",
1428
+ "declaration": {
1429
+ "name": "CosmListbox",
1430
+ "module": "src/components/listbox/cosm-listbox.ts"
1431
+ }
1432
+ }
1433
+ ]
1434
+ },
1435
+ {
1436
+ "kind": "javascript-module",
1437
+ "path": "src/components/popover/cosm-popover.ts",
1438
+ "declarations": [
1439
+ {
1440
+ "kind": "class",
1441
+ "description": "Non-modal content anchored to a consumer-provided trigger. Trigger naming, trigger\nappearance and panel semantics are supplied by the consumer.",
1442
+ "name": "CosmPopover",
1443
+ "cssProperties": [
1444
+ {
1445
+ "description": "Stacking level of the panel.",
1446
+ "name": "--cosm-popover-z-index"
1447
+ },
1448
+ {
1449
+ "description": "Panel padding.",
1450
+ "name": "--cosm-popover-padding"
1451
+ },
1452
+ {
1453
+ "description": "Panel corner radius.",
1454
+ "name": "--cosm-popover-radius"
1455
+ },
1456
+ {
1457
+ "description": "Panel shadow.",
1458
+ "name": "--cosm-popover-shadow"
1459
+ }
1460
+ ],
1461
+ "cssParts": [
1462
+ {
1463
+ "description": "Container for the trigger slot.",
1464
+ "name": "trigger"
1465
+ },
1466
+ {
1467
+ "description": "Non-modal anchored surface.",
1468
+ "name": "panel"
1469
+ },
1470
+ {
1471
+ "description": "Scrollable content.",
1472
+ "name": "body"
1473
+ },
1474
+ {
1475
+ "description": "Optional close IconButton.",
1476
+ "name": "close"
1477
+ },
1478
+ {
1479
+ "description": "Decorative pointer matching the panel.",
1480
+ "name": "arrow"
1481
+ }
1482
+ ],
1483
+ "slots": [
1484
+ {
1485
+ "description": "Consumer-supplied keyboard-operable trigger.",
1486
+ "name": "trigger"
1487
+ },
1488
+ {
1489
+ "description": "Consumer-supplied panel content and semantics.",
1490
+ "name": ""
1491
+ }
1492
+ ],
1493
+ "members": [
1494
+ {
1495
+ "kind": "field",
1496
+ "name": "shadowRootOptions",
1497
+ "type": {
1498
+ "text": "ShadowRootInit"
1499
+ },
1500
+ "static": true,
1501
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
1502
+ },
1503
+ {
1504
+ "kind": "field",
1505
+ "name": "defaultOpen",
1506
+ "privacy": "public",
1507
+ "type": {
1508
+ "text": "Props['defaultOpen']"
1509
+ },
1510
+ "attribute": "default-open"
1511
+ },
1512
+ {
1513
+ "kind": "field",
1514
+ "name": "triggerMode",
1515
+ "privacy": "public",
1516
+ "type": {
1517
+ "text": "Props['triggerMode']"
1518
+ },
1519
+ "attribute": "trigger-mode"
1520
+ },
1521
+ {
1522
+ "kind": "field",
1523
+ "name": "closable",
1524
+ "privacy": "public",
1525
+ "type": {
1526
+ "text": "Props['closable']"
1527
+ },
1528
+ "attribute": "closable"
1529
+ },
1530
+ {
1531
+ "kind": "field",
1532
+ "name": "closeLabel",
1533
+ "privacy": "public",
1534
+ "type": {
1535
+ "text": "Props['closeLabel']"
1536
+ },
1537
+ "attribute": "close-label"
1538
+ },
1539
+ {
1540
+ "kind": "field",
1541
+ "name": "gap",
1542
+ "privacy": "public",
1543
+ "type": {
1544
+ "text": "Props['gap']"
1545
+ },
1546
+ "attribute": "gap"
1547
+ },
1548
+ {
1549
+ "kind": "field",
1550
+ "name": "arrow",
1551
+ "privacy": "public",
1552
+ "type": {
1553
+ "text": "Props['arrow']"
1554
+ },
1555
+ "attribute": "arrow"
1556
+ },
1557
+ {
1558
+ "kind": "field",
1559
+ "name": "closeOnEscape",
1560
+ "privacy": "public",
1561
+ "type": {
1562
+ "text": "Props['closeOnEscape']"
1563
+ },
1564
+ "attribute": "close-on-escape"
1565
+ },
1566
+ {
1567
+ "kind": "field",
1568
+ "name": "closeOnOutsidePress",
1569
+ "privacy": "public",
1570
+ "type": {
1571
+ "text": "Props['closeOnOutsidePress']"
1572
+ },
1573
+ "attribute": "close-on-outside-press"
1574
+ },
1575
+ {
1576
+ "kind": "field",
1577
+ "name": "initialFocus",
1578
+ "privacy": "public",
1579
+ "type": {
1580
+ "text": "Props['initialFocus']"
1581
+ },
1582
+ "attribute": "initial-focus"
1583
+ },
1584
+ {
1585
+ "kind": "field",
1586
+ "name": "restoreFocus",
1587
+ "privacy": "public",
1588
+ "type": {
1589
+ "text": "Props['restoreFocus']"
1590
+ },
1591
+ "attribute": "restore-focus"
1592
+ },
1593
+ {
1594
+ "kind": "field",
1595
+ "name": "side",
1596
+ "privacy": "public",
1597
+ "type": {
1598
+ "text": "PopoverSide"
1599
+ },
1600
+ "attribute": "side",
1601
+ "reflects": true
1602
+ },
1603
+ {
1604
+ "kind": "field",
1605
+ "name": "align",
1606
+ "privacy": "public",
1607
+ "type": {
1608
+ "text": "PopoverAlign"
1609
+ },
1610
+ "attribute": "align",
1611
+ "reflects": true
1612
+ },
1613
+ {
1614
+ "kind": "field",
1615
+ "name": "flip",
1616
+ "privacy": "public",
1617
+ "type": {
1618
+ "text": "Props['flip']"
1619
+ },
1620
+ "attribute": "flip"
1621
+ },
1622
+ {
1623
+ "kind": "field",
1624
+ "name": "shift",
1625
+ "privacy": "public",
1626
+ "type": {
1627
+ "text": "Props['shift']"
1628
+ },
1629
+ "attribute": "shift"
1630
+ },
1631
+ {
1632
+ "kind": "field",
1633
+ "name": "openControlled",
1634
+ "type": {
1635
+ "text": "boolean"
1636
+ },
1637
+ "default": "false",
1638
+ "description": "Set by adapters to distinguish a bound `open` value from autonomous state."
1639
+ },
1640
+ {
1641
+ "kind": "field",
1642
+ "name": "#open",
1643
+ "privacy": "private",
1644
+ "type": {
1645
+ "text": "boolean"
1646
+ },
1647
+ "default": "false"
1648
+ },
1649
+ {
1650
+ "kind": "field",
1651
+ "name": "#writingOpen",
1652
+ "privacy": "private",
1653
+ "type": {
1654
+ "text": "boolean"
1655
+ },
1656
+ "default": "false"
1657
+ },
1658
+ {
1659
+ "kind": "field",
1660
+ "name": "#initialized",
1661
+ "privacy": "private",
1662
+ "type": {
1663
+ "text": "boolean"
1664
+ },
1665
+ "default": "false"
1666
+ },
1667
+ {
1668
+ "kind": "field",
1669
+ "name": "#edited",
1670
+ "privacy": "private",
1671
+ "type": {
1672
+ "text": "boolean"
1673
+ },
1674
+ "default": "false"
1675
+ },
1676
+ {
1677
+ "kind": "field",
1678
+ "name": "#pendingRestoreReason",
1679
+ "privacy": "private",
1680
+ "type": {
1681
+ "text": "PopoverCloseReason | undefined"
1682
+ }
1683
+ },
1684
+ {
1685
+ "kind": "field",
1686
+ "name": "#focusWasInsideBeforeClose",
1687
+ "privacy": "private",
1688
+ "type": {
1689
+ "text": "boolean"
1690
+ },
1691
+ "default": "false"
1692
+ },
1693
+ {
1694
+ "kind": "field",
1695
+ "name": "#openListenersInstalled",
1696
+ "privacy": "private",
1697
+ "type": {
1698
+ "text": "boolean"
1699
+ },
1700
+ "default": "false"
1701
+ },
1702
+ {
1703
+ "kind": "field",
1704
+ "name": "#inTopLayer",
1705
+ "privacy": "private",
1706
+ "type": {
1707
+ "text": "boolean"
1708
+ },
1709
+ "default": "false"
1710
+ },
1711
+ {
1712
+ "kind": "field",
1713
+ "name": "#resizeObserver",
1714
+ "privacy": "private",
1715
+ "type": {
1716
+ "text": "ResizeObserver | undefined"
1717
+ }
1718
+ },
1719
+ {
1720
+ "kind": "field",
1721
+ "name": "#triggerAttributes",
1722
+ "privacy": "private",
1723
+ "default": "new Map<Element, string | null>()"
1724
+ },
1725
+ {
1726
+ "kind": "field",
1727
+ "name": "#hovered",
1728
+ "privacy": "private",
1729
+ "type": {
1730
+ "text": "boolean"
1731
+ },
1732
+ "default": "false"
1733
+ },
1734
+ {
1735
+ "kind": "field",
1736
+ "name": "#focused",
1737
+ "privacy": "private",
1738
+ "type": {
1739
+ "text": "boolean"
1740
+ },
1741
+ "default": "false"
1742
+ },
1743
+ {
1744
+ "kind": "field",
1745
+ "name": "#hoverDismissed",
1746
+ "privacy": "private",
1747
+ "type": {
1748
+ "text": "boolean"
1749
+ },
1750
+ "default": "false"
1751
+ },
1752
+ {
1753
+ "kind": "field",
1754
+ "name": "#hoverTimer",
1755
+ "privacy": "private",
1756
+ "type": {
1757
+ "text": "ReturnType<typeof setTimeout> | undefined"
1758
+ }
1759
+ },
1760
+ {
1761
+ "kind": "field",
1762
+ "name": "#openingReason",
1763
+ "privacy": "private",
1764
+ "type": {
1765
+ "text": "'trigger' | 'hover' | 'focus' | undefined"
1766
+ }
1767
+ },
1768
+ {
1769
+ "kind": "field",
1770
+ "name": "#themeObserver",
1771
+ "privacy": "private",
1772
+ "type": {
1773
+ "text": "MutationObserver | undefined"
1774
+ }
1775
+ },
1776
+ {
1777
+ "kind": "field",
1778
+ "name": "#pressStartedClosed",
1779
+ "privacy": "private",
1780
+ "type": {
1781
+ "text": "boolean"
1782
+ },
1783
+ "default": "false"
1784
+ },
1785
+ {
1786
+ "kind": "field",
1787
+ "name": "open",
1788
+ "privacy": "public",
1789
+ "type": {
1790
+ "text": "boolean"
1791
+ },
1792
+ "attribute": "open",
1793
+ "reflects": true
1794
+ },
1795
+ {
1796
+ "kind": "method",
1797
+ "name": "requestClose",
1798
+ "return": {
1799
+ "type": {
1800
+ "text": "void"
1801
+ }
1802
+ },
1803
+ "description": "Requests closure with reason `action` only while the panel is open."
1804
+ },
1805
+ {
1806
+ "kind": "method",
1807
+ "name": "#setOpen",
1808
+ "privacy": "private",
1809
+ "return": {
1810
+ "type": {
1811
+ "text": "void"
1812
+ }
1813
+ },
1814
+ "parameters": [
1815
+ {
1816
+ "name": "value",
1817
+ "type": {
1818
+ "text": "boolean"
1819
+ }
1820
+ }
1821
+ ]
1822
+ },
1823
+ {
1824
+ "kind": "method",
1825
+ "name": "#commitOpen",
1826
+ "privacy": "private",
1827
+ "return": {
1828
+ "type": {
1829
+ "text": "void"
1830
+ }
1831
+ },
1832
+ "parameters": [
1833
+ {
1834
+ "name": "value",
1835
+ "type": {
1836
+ "text": "boolean"
1837
+ }
1838
+ }
1839
+ ]
1840
+ },
1841
+ {
1842
+ "kind": "method",
1843
+ "name": "#propose",
1844
+ "privacy": "private",
1845
+ "return": {
1846
+ "type": {
1847
+ "text": "void"
1848
+ }
1849
+ },
1850
+ "parameters": [
1851
+ {
1852
+ "name": "open",
1853
+ "type": {
1854
+ "text": "boolean"
1855
+ }
1856
+ },
1857
+ {
1858
+ "name": "reason",
1859
+ "type": {
1860
+ "text": "PopoverCloseReason"
1861
+ }
1862
+ }
1863
+ ]
1864
+ },
1865
+ {
1866
+ "kind": "field",
1867
+ "name": "#onTriggerClick",
1868
+ "privacy": "private"
1869
+ },
1870
+ {
1871
+ "kind": "field",
1872
+ "name": "#onHostClick",
1873
+ "privacy": "private"
1874
+ },
1875
+ {
1876
+ "kind": "field",
1877
+ "name": "#onTriggerPointerDown",
1878
+ "privacy": "private"
1879
+ },
1880
+ {
1881
+ "kind": "method",
1882
+ "name": "#inside",
1883
+ "privacy": "private",
1884
+ "return": {
1885
+ "type": {
1886
+ "text": "boolean"
1887
+ }
1888
+ },
1889
+ "parameters": [
1890
+ {
1891
+ "name": "target",
1892
+ "type": {
1893
+ "text": "EventTarget | null"
1894
+ }
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ "kind": "method",
1900
+ "name": "#scheduleHoverClose",
1901
+ "privacy": "private",
1902
+ "return": {
1903
+ "type": {
1904
+ "text": "void"
1905
+ }
1906
+ },
1907
+ "parameters": [
1908
+ {
1909
+ "name": "reason",
1910
+ "type": {
1911
+ "text": "'hover' | 'focus'"
1912
+ }
1913
+ }
1914
+ ]
1915
+ },
1916
+ {
1917
+ "kind": "field",
1918
+ "name": "#onPointerOver",
1919
+ "privacy": "private"
1920
+ },
1921
+ {
1922
+ "kind": "field",
1923
+ "name": "#onPointerOut",
1924
+ "privacy": "private"
1925
+ },
1926
+ {
1927
+ "kind": "method",
1928
+ "name": "#inHoverBridge",
1929
+ "privacy": "private",
1930
+ "return": {
1931
+ "type": {
1932
+ "text": "boolean"
1933
+ }
1934
+ },
1935
+ "parameters": [
1936
+ {
1937
+ "name": "x",
1938
+ "type": {
1939
+ "text": "number"
1940
+ }
1941
+ },
1942
+ {
1943
+ "name": "y",
1944
+ "type": {
1945
+ "text": "number"
1946
+ }
1947
+ }
1948
+ ]
1949
+ },
1950
+ {
1951
+ "kind": "field",
1952
+ "name": "#onPointerMove",
1953
+ "privacy": "private"
1954
+ },
1955
+ {
1956
+ "kind": "field",
1957
+ "name": "#onFocusIn",
1958
+ "privacy": "private"
1959
+ },
1960
+ {
1961
+ "kind": "field",
1962
+ "name": "#onFocusOut",
1963
+ "privacy": "private"
1964
+ },
1965
+ {
1966
+ "kind": "field",
1967
+ "name": "#onTriggerSlotChange",
1968
+ "privacy": "private"
1969
+ },
1970
+ {
1971
+ "kind": "field",
1972
+ "name": "#onKeyDown",
1973
+ "privacy": "private"
1974
+ },
1975
+ {
1976
+ "kind": "field",
1977
+ "name": "#onDocumentPointerDown",
1978
+ "privacy": "private"
1979
+ },
1980
+ {
1981
+ "kind": "field",
1982
+ "name": "#onViewportChange",
1983
+ "privacy": "private"
1984
+ },
1985
+ {
1986
+ "kind": "field",
1987
+ "name": "#onResize",
1988
+ "privacy": "private"
1989
+ },
1990
+ {
1991
+ "kind": "method",
1992
+ "name": "#installOpenListeners",
1993
+ "privacy": "private",
1994
+ "return": {
1995
+ "type": {
1996
+ "text": "void"
1997
+ }
1998
+ }
1999
+ },
2000
+ {
2001
+ "kind": "method",
2002
+ "name": "#removeOpenListeners",
2003
+ "privacy": "private",
2004
+ "return": {
2005
+ "type": {
2006
+ "text": "void"
2007
+ }
2008
+ }
2009
+ },
2010
+ {
2011
+ "kind": "method",
2012
+ "name": "#triggerSlot",
2013
+ "privacy": "private",
2014
+ "return": {
2015
+ "type": {
2016
+ "text": "HTMLSlotElement | null"
2017
+ }
2018
+ }
2019
+ },
2020
+ {
2021
+ "kind": "method",
2022
+ "name": "#panelSlot",
2023
+ "privacy": "private",
2024
+ "return": {
2025
+ "type": {
2026
+ "text": "HTMLSlotElement | null"
2027
+ }
2028
+ }
2029
+ },
2030
+ {
2031
+ "kind": "method",
2032
+ "name": "#panel",
2033
+ "privacy": "private",
2034
+ "return": {
2035
+ "type": {
2036
+ "text": "HTMLElement | null"
2037
+ }
2038
+ }
2039
+ },
2040
+ {
2041
+ "kind": "method",
2042
+ "name": "#showPanelInTopLayer",
2043
+ "privacy": "private",
2044
+ "return": {
2045
+ "type": {
2046
+ "text": "void"
2047
+ }
2048
+ }
2049
+ },
2050
+ {
2051
+ "kind": "method",
2052
+ "name": "#hidePanelFromTopLayer",
2053
+ "privacy": "private",
2054
+ "return": {
2055
+ "type": {
2056
+ "text": "void"
2057
+ }
2058
+ }
2059
+ },
2060
+ {
2061
+ "kind": "method",
2062
+ "name": "#triggerElement",
2063
+ "privacy": "private",
2064
+ "return": {
2065
+ "type": {
2066
+ "text": "HTMLElement | null"
2067
+ }
2068
+ }
2069
+ },
2070
+ {
2071
+ "kind": "method",
2072
+ "name": "#syncTriggerExpanded",
2073
+ "privacy": "private",
2074
+ "return": {
2075
+ "type": {
2076
+ "text": "void"
2077
+ }
2078
+ }
2079
+ },
2080
+ {
2081
+ "kind": "method",
2082
+ "name": "#restoreTriggerAttributes",
2083
+ "privacy": "private",
2084
+ "return": {
2085
+ "type": {
2086
+ "text": "void"
2087
+ }
2088
+ }
2089
+ },
2090
+ {
2091
+ "kind": "method",
2092
+ "name": "#focusable",
2093
+ "privacy": "private",
2094
+ "return": {
2095
+ "type": {
2096
+ "text": "boolean"
2097
+ }
2098
+ },
2099
+ "parameters": [
2100
+ {
2101
+ "name": "element",
2102
+ "type": {
2103
+ "text": "HTMLElement"
2104
+ }
2105
+ }
2106
+ ]
2107
+ },
2108
+ {
2109
+ "kind": "method",
2110
+ "name": "#focusablePanelContent",
2111
+ "privacy": "private",
2112
+ "return": {
2113
+ "type": {
2114
+ "text": "HTMLElement | null"
2115
+ }
2116
+ }
2117
+ },
2118
+ {
2119
+ "kind": "method",
2120
+ "name": "#focusPanel",
2121
+ "privacy": "private",
2122
+ "return": {
2123
+ "type": {
2124
+ "text": "void"
2125
+ }
2126
+ }
2127
+ },
2128
+ {
2129
+ "kind": "method",
2130
+ "name": "#activeElement",
2131
+ "privacy": "private",
2132
+ "return": {
2133
+ "type": {
2134
+ "text": "Element | null"
2135
+ }
2136
+ }
2137
+ },
2138
+ {
2139
+ "kind": "method",
2140
+ "name": "#isInsidePanel",
2141
+ "privacy": "private",
2142
+ "return": {
2143
+ "type": {
2144
+ "text": "boolean"
2145
+ }
2146
+ },
2147
+ "parameters": [
2148
+ {
2149
+ "name": "element",
2150
+ "type": {
2151
+ "text": "Element | null"
2152
+ }
2153
+ }
2154
+ ]
2155
+ },
2156
+ {
2157
+ "kind": "method",
2158
+ "name": "#restoreFocusToTrigger",
2159
+ "privacy": "private",
2160
+ "return": {
2161
+ "type": {
2162
+ "text": "void"
2163
+ }
2164
+ }
2165
+ },
2166
+ {
2167
+ "kind": "method",
2168
+ "name": "#viewportBounds",
2169
+ "privacy": "private",
2170
+ "return": {
2171
+ "type": {
2172
+ "text": "Bounds"
2173
+ }
2174
+ }
2175
+ },
2176
+ {
2177
+ "kind": "method",
2178
+ "name": "#coordinates",
2179
+ "privacy": "private",
2180
+ "return": {
2181
+ "type": {
2182
+ "text": "{ left: number; top: number }"
2183
+ }
2184
+ },
2185
+ "parameters": [
2186
+ {
2187
+ "name": "side",
2188
+ "type": {
2189
+ "text": "PopoverSide"
2190
+ }
2191
+ },
2192
+ {
2193
+ "name": "trigger",
2194
+ "type": {
2195
+ "text": "DOMRect"
2196
+ }
2197
+ },
2198
+ {
2199
+ "name": "panelWidth",
2200
+ "type": {
2201
+ "text": "number"
2202
+ }
2203
+ },
2204
+ {
2205
+ "name": "panelHeight",
2206
+ "type": {
2207
+ "text": "number"
2208
+ }
2209
+ }
2210
+ ]
2211
+ },
2212
+ {
2213
+ "kind": "method",
2214
+ "name": "#mainOverflow",
2215
+ "privacy": "private",
2216
+ "parameters": [
2217
+ {
2218
+ "name": "side",
2219
+ "type": {
2220
+ "text": "PopoverSide"
2221
+ }
2222
+ },
2223
+ {
2224
+ "name": "point",
2225
+ "type": {
2226
+ "text": "{ left: number; top: number }"
2227
+ }
2228
+ },
2229
+ {
2230
+ "name": "panel",
2231
+ "type": {
2232
+ "text": "DOMRect"
2233
+ }
2234
+ },
2235
+ {
2236
+ "name": "bounds",
2237
+ "type": {
2238
+ "text": "Bounds"
2239
+ }
2240
+ }
2241
+ ]
2242
+ },
2243
+ {
2244
+ "kind": "method",
2245
+ "name": "#positionPanel",
2246
+ "privacy": "private",
2247
+ "return": {
2248
+ "type": {
2249
+ "text": "void"
2250
+ }
2251
+ }
2252
+ },
2253
+ {
2254
+ "kind": "method",
2255
+ "name": "#positionArrow",
2256
+ "privacy": "private",
2257
+ "return": {
2258
+ "type": {
2259
+ "text": "void"
2260
+ }
2261
+ },
2262
+ "parameters": [
2263
+ {
2264
+ "name": "panel",
2265
+ "type": {
2266
+ "text": "HTMLElement"
2267
+ }
2268
+ },
2269
+ {
2270
+ "name": "trigger",
2271
+ "type": {
2272
+ "text": "DOMRect"
2273
+ }
2274
+ },
2275
+ {
2276
+ "name": "rect",
2277
+ "type": {
2278
+ "text": "DOMRect"
2279
+ }
2280
+ },
2281
+ {
2282
+ "name": "point",
2283
+ "type": {
2284
+ "text": "{ left: number; top: number }"
2285
+ }
2286
+ },
2287
+ {
2288
+ "name": "side",
2289
+ "type": {
2290
+ "text": "PopoverSide"
2291
+ }
2292
+ },
2293
+ {
2294
+ "name": "bounds",
2295
+ "type": {
2296
+ "text": "Bounds"
2297
+ }
2298
+ }
2299
+ ]
2300
+ }
2301
+ ],
2302
+ "events": [
2303
+ {
2304
+ "type": {
2305
+ "text": "CustomEvent<PopoverOpenChangeDetail>"
2306
+ },
2307
+ "description": "Proposes a visibility change.",
2308
+ "name": "cosm-open-change"
2309
+ }
2310
+ ],
2311
+ "attributes": [
2312
+ {
2313
+ "name": "open",
2314
+ "type": {
2315
+ "text": "boolean"
2316
+ },
2317
+ "fieldName": "open"
2318
+ },
2319
+ {
2320
+ "name": "default-open",
2321
+ "type": {
2322
+ "text": "Props['defaultOpen']"
2323
+ },
2324
+ "fieldName": "defaultOpen"
2325
+ },
2326
+ {
2327
+ "name": "trigger-mode",
2328
+ "type": {
2329
+ "text": "Props['triggerMode']"
2330
+ },
2331
+ "fieldName": "triggerMode"
2332
+ },
2333
+ {
2334
+ "name": "closable",
2335
+ "type": {
2336
+ "text": "Props['closable']"
2337
+ },
2338
+ "fieldName": "closable"
2339
+ },
2340
+ {
2341
+ "name": "close-label",
2342
+ "type": {
2343
+ "text": "Props['closeLabel']"
2344
+ },
2345
+ "fieldName": "closeLabel"
2346
+ },
2347
+ {
2348
+ "name": "gap",
2349
+ "type": {
2350
+ "text": "Props['gap']"
2351
+ },
2352
+ "fieldName": "gap"
2353
+ },
2354
+ {
2355
+ "name": "arrow",
2356
+ "type": {
2357
+ "text": "Props['arrow']"
2358
+ },
2359
+ "fieldName": "arrow"
2360
+ },
2361
+ {
2362
+ "name": "close-on-escape",
2363
+ "type": {
2364
+ "text": "Props['closeOnEscape']"
2365
+ },
2366
+ "fieldName": "closeOnEscape"
2367
+ },
2368
+ {
2369
+ "name": "close-on-outside-press",
2370
+ "type": {
2371
+ "text": "Props['closeOnOutsidePress']"
2372
+ },
2373
+ "fieldName": "closeOnOutsidePress"
2374
+ },
2375
+ {
2376
+ "name": "initial-focus",
2377
+ "type": {
2378
+ "text": "Props['initialFocus']"
2379
+ },
2380
+ "fieldName": "initialFocus"
2381
+ },
2382
+ {
2383
+ "name": "restore-focus",
2384
+ "type": {
2385
+ "text": "Props['restoreFocus']"
2386
+ },
2387
+ "fieldName": "restoreFocus"
2388
+ },
2389
+ {
2390
+ "name": "side",
2391
+ "type": {
2392
+ "text": "PopoverSide"
2393
+ },
2394
+ "fieldName": "side"
2395
+ },
2396
+ {
2397
+ "name": "align",
2398
+ "type": {
2399
+ "text": "PopoverAlign"
2400
+ },
2401
+ "fieldName": "align"
2402
+ },
2403
+ {
2404
+ "name": "flip",
2405
+ "type": {
2406
+ "text": "Props['flip']"
2407
+ },
2408
+ "fieldName": "flip"
2409
+ },
2410
+ {
2411
+ "name": "shift",
2412
+ "type": {
2413
+ "text": "Props['shift']"
2414
+ },
2415
+ "fieldName": "shift"
2416
+ }
2417
+ ],
2418
+ "superclass": {
2419
+ "name": "CosmElement",
2420
+ "module": "/src/internal/cosm-element.js"
2421
+ },
2422
+ "tagName": "cosm-popover",
2423
+ "customElement": true
2424
+ }
2425
+ ],
2426
+ "exports": [
2427
+ {
2428
+ "kind": "js",
2429
+ "name": "CosmPopover",
2430
+ "declaration": {
2431
+ "name": "CosmPopover",
2432
+ "module": "src/components/popover/cosm-popover.ts"
2433
+ }
2434
+ }
2435
+ ]
2436
+ },
2437
+ {
2438
+ "kind": "javascript-module",
2439
+ "path": "src/components/text-field/cosm-text-field.ts",
2440
+ "declarations": [
2441
+ {
2442
+ "kind": "class",
2443
+ "description": "Labeled, single-line text entry with native browser constraints and form association.",
2444
+ "name": "CosmTextField",
2445
+ "cssProperties": [
2446
+ {
2447
+ "description": "Control background.",
2448
+ "name": "--cosm-text-field-background"
2449
+ },
2450
+ {
2451
+ "description": "Editable and decoration text color.",
2452
+ "name": "--cosm-text-field-color"
2453
+ },
2454
+ {
2455
+ "description": "Placeholder text color.",
2456
+ "name": "--cosm-text-field-placeholder"
2457
+ },
2458
+ {
2459
+ "description": "Control boundary color.",
2460
+ "name": "--cosm-text-field-border"
2461
+ },
2462
+ {
2463
+ "description": "Focus indicator color.",
2464
+ "name": "--cosm-text-field-focus"
2465
+ },
2466
+ {
2467
+ "description": "Control corner radius.",
2468
+ "name": "--cosm-text-field-radius"
2469
+ },
2470
+ {
2471
+ "description": "Start icon color.",
2472
+ "name": "--cosm-text-field-start-icon-color"
2473
+ },
2474
+ {
2475
+ "description": "Start icon focused color.",
2476
+ "name": "--cosm-text-field-start-icon-focus-color"
2477
+ },
2478
+ {
2479
+ "description": "End icon color.",
2480
+ "name": "--cosm-text-field-end-icon-color"
2481
+ },
2482
+ {
2483
+ "description": "End icon focused color.",
2484
+ "name": "--cosm-text-field-end-icon-focus-color"
2485
+ }
2486
+ ],
2487
+ "cssParts": [
2488
+ {
2489
+ "description": "The visible or visually hidden label.",
2490
+ "name": "label"
2491
+ },
2492
+ {
2493
+ "description": "The visual input control.",
2494
+ "name": "control"
2495
+ },
2496
+ {
2497
+ "description": "The editable native input.",
2498
+ "name": "input"
2499
+ },
2500
+ {
2501
+ "description": "Start icon or prefix decoration.",
2502
+ "name": "start"
2503
+ },
2504
+ {
2505
+ "description": "End icon, suffix or action region.",
2506
+ "name": "end"
2507
+ },
2508
+ {
2509
+ "description": "Supporting help text.",
2510
+ "name": "help"
2511
+ },
2512
+ {
2513
+ "description": "External or browser constraint error text.",
2514
+ "name": "error"
2515
+ },
2516
+ {
2517
+ "description": "Optional accessible clear action.",
2518
+ "name": "clear-button"
2519
+ },
2520
+ {
2521
+ "description": "Optional accessible password visibility action.",
2522
+ "name": "reveal-button"
2523
+ }
2524
+ ],
2525
+ "slots": [
2526
+ {
2527
+ "description": "No content slot; use `label`, `helpText` and `error` text properties.",
2528
+ "name": ""
2529
+ }
2530
+ ],
2531
+ "members": [
2532
+ {
2533
+ "kind": "field",
2534
+ "name": "formAssociated",
2535
+ "type": {
2536
+ "text": "boolean"
2537
+ },
2538
+ "static": true,
2539
+ "default": "true"
2540
+ },
2541
+ {
2542
+ "kind": "field",
2543
+ "name": "shadowRootOptions",
2544
+ "type": {
2545
+ "text": "ShadowRootInit"
2546
+ },
2547
+ "static": true,
2548
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
2549
+ },
2550
+ {
2551
+ "kind": "field",
2552
+ "name": "label",
2553
+ "privacy": "public",
2554
+ "type": {
2555
+ "text": "Props['label']"
2556
+ },
2557
+ "default": "''",
2558
+ "attribute": "label"
2559
+ },
2560
+ {
2561
+ "kind": "field",
2562
+ "name": "labelHidden",
2563
+ "privacy": "public",
2564
+ "type": {
2565
+ "text": "boolean"
2566
+ },
2567
+ "attribute": "label-hidden",
2568
+ "reflects": true
2569
+ },
2570
+ {
2571
+ "kind": "field",
2572
+ "name": "value",
2573
+ "privacy": "public",
2574
+ "type": {
2575
+ "text": "Props['value']"
2576
+ },
2577
+ "attribute": "value"
2578
+ },
2579
+ {
2580
+ "kind": "field",
2581
+ "name": "defaultValue",
2582
+ "privacy": "public",
2583
+ "type": {
2584
+ "text": "Props['defaultValue']"
2585
+ },
2586
+ "attribute": "default-value"
2587
+ },
2588
+ {
2589
+ "kind": "field",
2590
+ "name": "type",
2591
+ "privacy": "public",
2592
+ "type": {
2593
+ "text": "Props['type']"
2594
+ },
2595
+ "default": "props.type.default",
2596
+ "attribute": "type",
2597
+ "reflects": true
2598
+ },
2599
+ {
2600
+ "kind": "field",
2601
+ "name": "variant",
2602
+ "privacy": "public",
2603
+ "type": {
2604
+ "text": "Props['variant']"
2605
+ },
2606
+ "attribute": "variant",
2607
+ "reflects": true
2608
+ },
2609
+ {
2610
+ "kind": "field",
2611
+ "name": "size",
2612
+ "privacy": "public",
2613
+ "type": {
2614
+ "text": "Props['size']"
2615
+ },
2616
+ "default": "props.size.default",
2617
+ "attribute": "size",
2618
+ "reflects": true
2619
+ },
2620
+ {
2621
+ "kind": "field",
2622
+ "name": "placeholder",
2623
+ "privacy": "public",
2624
+ "type": {
2625
+ "text": "Props['placeholder']"
2626
+ },
2627
+ "default": "''",
2628
+ "attribute": "placeholder"
2629
+ },
2630
+ {
2631
+ "kind": "field",
2632
+ "name": "helpText",
2633
+ "privacy": "public",
2634
+ "type": {
2635
+ "text": "Props['helpText']"
2636
+ },
2637
+ "default": "''",
2638
+ "attribute": "help-text"
2639
+ },
2640
+ {
2641
+ "kind": "field",
2642
+ "name": "error",
2643
+ "privacy": "public",
2644
+ "type": {
2645
+ "text": "Props['error']"
2646
+ },
2647
+ "default": "''",
2648
+ "attribute": "error"
2649
+ },
2650
+ {
2651
+ "kind": "field",
2652
+ "name": "invalid",
2653
+ "privacy": "public",
2654
+ "type": {
2655
+ "text": "Props['invalid']"
2656
+ },
2657
+ "attribute": "invalid",
2658
+ "reflects": true
2659
+ },
2660
+ {
2661
+ "kind": "field",
2662
+ "name": "required",
2663
+ "privacy": "public",
2664
+ "type": {
2665
+ "text": "Props['required']"
2666
+ },
2667
+ "attribute": "required",
2668
+ "reflects": true
2669
+ },
2670
+ {
2671
+ "kind": "field",
2672
+ "name": "disabled",
2673
+ "privacy": "public",
2674
+ "type": {
2675
+ "text": "Props['disabled']"
2676
+ },
2677
+ "attribute": "disabled",
2678
+ "reflects": true
2679
+ },
2680
+ {
2681
+ "kind": "field",
2682
+ "name": "readOnly",
2683
+ "privacy": "public",
2684
+ "type": {
2685
+ "text": "Props['readOnly']"
2686
+ },
2687
+ "attribute": "read-only",
2688
+ "reflects": true
2689
+ },
2690
+ {
2691
+ "kind": "field",
2692
+ "name": "minLength",
2693
+ "privacy": "public",
2694
+ "type": {
2695
+ "text": "Props['minLength']"
2696
+ },
2697
+ "default": "undefined",
2698
+ "attribute": "min-length"
2699
+ },
2700
+ {
2701
+ "kind": "field",
2702
+ "name": "maxLength",
2703
+ "privacy": "public",
2704
+ "type": {
2705
+ "text": "Props['maxLength']"
2706
+ },
2707
+ "default": "undefined",
2708
+ "attribute": "max-length"
2709
+ },
2710
+ {
2711
+ "kind": "field",
2712
+ "name": "pattern",
2713
+ "privacy": "public",
2714
+ "type": {
2715
+ "text": "Props['pattern']"
2716
+ },
2717
+ "default": "undefined",
2718
+ "attribute": "pattern"
2719
+ },
2720
+ {
2721
+ "kind": "field",
2722
+ "name": "name",
2723
+ "privacy": "public",
2724
+ "type": {
2725
+ "text": "Props['name']"
2726
+ },
2727
+ "default": "undefined",
2728
+ "attribute": "name",
2729
+ "reflects": true
2730
+ },
2731
+ {
2732
+ "kind": "field",
2733
+ "name": "autoComplete",
2734
+ "privacy": "public",
2735
+ "type": {
2736
+ "text": "Props['autoComplete']"
2737
+ },
2738
+ "default": "undefined",
2739
+ "attribute": "auto-complete"
2740
+ },
2741
+ {
2742
+ "kind": "field",
2743
+ "name": "inputMode",
2744
+ "privacy": "public",
2745
+ "type": {
2746
+ "text": "string"
2747
+ },
2748
+ "default": "''",
2749
+ "attribute": "input-mode"
2750
+ },
2751
+ {
2752
+ "kind": "field",
2753
+ "name": "startIcon",
2754
+ "privacy": "public",
2755
+ "type": {
2756
+ "text": "Props['startIcon']"
2757
+ },
2758
+ "default": "undefined"
2759
+ },
2760
+ {
2761
+ "kind": "field",
2762
+ "name": "endIcon",
2763
+ "privacy": "public",
2764
+ "type": {
2765
+ "text": "Props['endIcon']"
2766
+ },
2767
+ "default": "undefined"
2768
+ },
2769
+ {
2770
+ "kind": "field",
2771
+ "name": "iconFocusScope",
2772
+ "privacy": "public",
2773
+ "type": {
2774
+ "text": "Props['iconFocusScope']"
2775
+ },
2776
+ "attribute": "icon-focus-scope",
2777
+ "reflects": true
2778
+ },
2779
+ {
2780
+ "kind": "field",
2781
+ "name": "prefix",
2782
+ "privacy": "public",
2783
+ "type": {
2784
+ "text": "string | null"
2785
+ },
2786
+ "default": "''",
2787
+ "attribute": "prefix"
2788
+ },
2789
+ {
2790
+ "kind": "field",
2791
+ "name": "suffix",
2792
+ "privacy": "public",
2793
+ "type": {
2794
+ "text": "Props['suffix']"
2795
+ },
2796
+ "default": "''",
2797
+ "attribute": "suffix"
2798
+ },
2799
+ {
2800
+ "kind": "field",
2801
+ "name": "clearable",
2802
+ "privacy": "public",
2803
+ "type": {
2804
+ "text": "Props['clearable']"
2805
+ },
2806
+ "attribute": "clearable",
2807
+ "reflects": true
2808
+ },
2809
+ {
2810
+ "kind": "field",
2811
+ "name": "clearLabel",
2812
+ "privacy": "public",
2813
+ "type": {
2814
+ "text": "Props['clearLabel']"
2815
+ },
2816
+ "default": "undefined",
2817
+ "attribute": "clear-label"
2818
+ },
2819
+ {
2820
+ "kind": "field",
2821
+ "name": "passwordReveal",
2822
+ "privacy": "public",
2823
+ "type": {
2824
+ "text": "Props['passwordReveal']"
2825
+ },
2826
+ "attribute": "password-reveal",
2827
+ "reflects": true
2828
+ },
2829
+ {
2830
+ "kind": "field",
2831
+ "name": "revealPasswordLabel",
2832
+ "privacy": "public",
2833
+ "type": {
2834
+ "text": "Props['revealPasswordLabel']"
2835
+ },
2836
+ "default": "undefined",
2837
+ "attribute": "reveal-password-label"
2838
+ },
2839
+ {
2840
+ "kind": "field",
2841
+ "name": "hidePasswordLabel",
2842
+ "privacy": "public",
2843
+ "type": {
2844
+ "text": "Props['hidePasswordLabel']"
2845
+ },
2846
+ "default": "undefined",
2847
+ "attribute": "hide-password-label"
2848
+ },
2849
+ {
2850
+ "kind": "field",
2851
+ "name": "valueControlled",
2852
+ "type": {
2853
+ "text": "boolean"
2854
+ },
2855
+ "default": "false",
2856
+ "description": "Framework adapters set this metadata when `value` is actually bound."
2857
+ },
2858
+ {
2859
+ "kind": "field",
2860
+ "name": "#internals",
2861
+ "privacy": "private",
2862
+ "type": {
2863
+ "text": "ElementInternals | undefined"
2864
+ },
2865
+ "readonly": true
2866
+ },
2867
+ {
2868
+ "kind": "field",
2869
+ "name": "#id",
2870
+ "privacy": "private",
2871
+ "readonly": true,
2872
+ "default": "`cosm-text-field-${++instance}`"
2873
+ },
2874
+ {
2875
+ "kind": "field",
2876
+ "name": "#formDisabled",
2877
+ "privacy": "private",
2878
+ "type": {
2879
+ "text": "boolean"
2880
+ },
2881
+ "default": "false"
2882
+ },
2883
+ {
2884
+ "kind": "field",
2885
+ "name": "#passwordVisible",
2886
+ "privacy": "private",
2887
+ "type": {
2888
+ "text": "boolean"
2889
+ },
2890
+ "default": "false"
2891
+ },
2892
+ {
2893
+ "kind": "field",
2894
+ "name": "#composing",
2895
+ "privacy": "private",
2896
+ "type": {
2897
+ "text": "boolean"
2898
+ },
2899
+ "default": "false"
2900
+ },
2901
+ {
2902
+ "kind": "field",
2903
+ "name": "#showNativeError",
2904
+ "privacy": "private",
2905
+ "type": {
2906
+ "text": "boolean"
2907
+ },
2908
+ "default": "false"
2909
+ },
2910
+ {
2911
+ "kind": "field",
2912
+ "name": "#edited",
2913
+ "privacy": "private",
2914
+ "type": {
2915
+ "text": "boolean"
2916
+ },
2917
+ "default": "false"
2918
+ },
2919
+ {
2920
+ "kind": "field",
2921
+ "name": "#hasRendered",
2922
+ "privacy": "private",
2923
+ "type": {
2924
+ "text": "boolean"
2925
+ },
2926
+ "default": "false"
2927
+ },
2928
+ {
2929
+ "kind": "field",
2930
+ "name": "#controlledReconcileCancel",
2931
+ "privacy": "private",
2932
+ "type": {
2933
+ "text": "(() => void) | null"
2934
+ },
2935
+ "default": "null"
2936
+ },
2937
+ {
2938
+ "kind": "field",
2939
+ "name": "#pendingControlledRestore",
2940
+ "privacy": "private",
2941
+ "type": {
2942
+ "text": "{\n value: string;\n selection: {\n start: number | null;\n end: number | null;\n direction: 'forward' | 'backward' | 'none' | null;\n };\n input: HTMLInputElement;\n } | null"
2943
+ },
2944
+ "default": "null"
2945
+ },
2946
+ {
2947
+ "kind": "field",
2948
+ "name": "form",
2949
+ "type": {
2950
+ "text": "HTMLFormElement | null"
2951
+ },
2952
+ "description": "The associated form, if any.",
2953
+ "readonly": true
2954
+ },
2955
+ {
2956
+ "kind": "method",
2957
+ "name": "focus",
2958
+ "return": {
2959
+ "type": {
2960
+ "text": "void"
2961
+ }
2962
+ },
2963
+ "parameters": [
2964
+ {
2965
+ "name": "options",
2966
+ "optional": true,
2967
+ "type": {
2968
+ "text": "FocusOptions"
2969
+ }
2970
+ }
2971
+ ],
2972
+ "description": "Focuses the native editable control."
2973
+ },
2974
+ {
2975
+ "kind": "field",
2976
+ "name": "validity",
2977
+ "type": {
2978
+ "text": "ValidityState | undefined"
2979
+ },
2980
+ "description": "Returns the native validity state of the inner input.",
2981
+ "readonly": true
2982
+ },
2983
+ {
2984
+ "kind": "field",
2985
+ "name": "validationMessage",
2986
+ "type": {
2987
+ "text": "string"
2988
+ },
2989
+ "description": "Returns the browser's constraint-validation message.",
2990
+ "readonly": true
2991
+ },
2992
+ {
2993
+ "kind": "method",
2994
+ "name": "checkValidity",
2995
+ "return": {
2996
+ "type": {
2997
+ "text": "boolean"
2998
+ }
2999
+ },
3000
+ "description": "Returns whether the input satisfies its native constraints."
3001
+ },
3002
+ {
3003
+ "kind": "method",
3004
+ "name": "reportValidity",
3005
+ "return": {
3006
+ "type": {
3007
+ "text": "boolean"
3008
+ }
3009
+ },
3010
+ "description": "Checks validity and asks the browser to present its localized message."
3011
+ },
3012
+ {
3013
+ "kind": "method",
3014
+ "name": "formDisabledCallback",
3015
+ "return": {
3016
+ "type": {
3017
+ "text": "void"
3018
+ }
3019
+ },
3020
+ "parameters": [
3021
+ {
3022
+ "name": "disabled",
3023
+ "type": {
3024
+ "text": "boolean"
3025
+ }
3026
+ }
3027
+ ]
3028
+ },
3029
+ {
3030
+ "kind": "method",
3031
+ "name": "formResetCallback",
3032
+ "return": {
3033
+ "type": {
3034
+ "text": "void"
3035
+ }
3036
+ }
3037
+ },
3038
+ {
3039
+ "kind": "method",
3040
+ "name": "formStateRestoreCallback",
3041
+ "return": {
3042
+ "type": {
3043
+ "text": "void"
3044
+ }
3045
+ },
3046
+ "parameters": [
3047
+ {
3048
+ "name": "state",
3049
+ "type": {
3050
+ "text": "string | File | FormData"
3051
+ }
3052
+ }
3053
+ ]
3054
+ },
3055
+ {
3056
+ "kind": "field",
3057
+ "name": "#input",
3058
+ "privacy": "private"
3059
+ },
3060
+ {
3061
+ "kind": "method",
3062
+ "name": "#syncFormState",
3063
+ "privacy": "private",
3064
+ "return": {
3065
+ "type": {
3066
+ "text": "void"
3067
+ }
3068
+ }
3069
+ },
3070
+ {
3071
+ "kind": "method",
3072
+ "name": "#cancelControlledReconcile",
3073
+ "privacy": "private",
3074
+ "return": {
3075
+ "type": {
3076
+ "text": "void"
3077
+ }
3078
+ }
3079
+ },
3080
+ {
3081
+ "kind": "method",
3082
+ "name": "#scheduleControlledReconcile",
3083
+ "privacy": "private",
3084
+ "return": {
3085
+ "type": {
3086
+ "text": "void"
3087
+ }
3088
+ },
3089
+ "parameters": [
3090
+ {
3091
+ "name": "input",
3092
+ "type": {
3093
+ "text": "HTMLInputElement"
3094
+ }
3095
+ },
3096
+ {
3097
+ "name": "value",
3098
+ "type": {
3099
+ "text": "string"
3100
+ }
3101
+ }
3102
+ ]
3103
+ },
3104
+ {
3105
+ "kind": "field",
3106
+ "name": "#onInput",
3107
+ "privacy": "private"
3108
+ },
3109
+ {
3110
+ "kind": "field",
3111
+ "name": "#onCompositionStart",
3112
+ "privacy": "private"
3113
+ },
3114
+ {
3115
+ "kind": "field",
3116
+ "name": "#onCompositionEnd",
3117
+ "privacy": "private"
3118
+ },
3119
+ {
3120
+ "kind": "field",
3121
+ "name": "#onBlur",
3122
+ "privacy": "private"
3123
+ },
3124
+ {
3125
+ "kind": "field",
3126
+ "name": "#onKeyDown",
3127
+ "privacy": "private"
3128
+ },
3129
+ {
3130
+ "kind": "field",
3131
+ "name": "#clear",
3132
+ "privacy": "private"
3133
+ },
3134
+ {
3135
+ "kind": "field",
3136
+ "name": "#togglePassword",
3137
+ "privacy": "private"
3138
+ },
3139
+ {
3140
+ "kind": "field",
3141
+ "name": "#invalid",
3142
+ "privacy": "private"
3143
+ }
3144
+ ],
3145
+ "events": [
3146
+ {
3147
+ "type": {
3148
+ "text": "CustomEvent<TextFieldChangeDetail>"
3149
+ },
3150
+ "description": "A value edit or clear proposal.",
3151
+ "name": "cosm-change"
3152
+ },
3153
+ {
3154
+ "type": {
3155
+ "text": "CustomEvent<TextFieldSubmitDetail>"
3156
+ },
3157
+ "description": "The user invoked the submit action.",
3158
+ "name": "cosm-submit"
3159
+ }
3160
+ ],
3161
+ "attributes": [
3162
+ {
3163
+ "name": "label",
3164
+ "type": {
3165
+ "text": "Props['label']"
3166
+ },
3167
+ "default": "''",
3168
+ "fieldName": "label"
3169
+ },
3170
+ {
3171
+ "name": "label-hidden",
3172
+ "type": {
3173
+ "text": "boolean"
3174
+ },
3175
+ "fieldName": "labelHidden"
3176
+ },
3177
+ {
3178
+ "name": "value",
3179
+ "type": {
3180
+ "text": "Props['value']"
3181
+ },
3182
+ "fieldName": "value"
3183
+ },
3184
+ {
3185
+ "name": "default-value",
3186
+ "type": {
3187
+ "text": "Props['defaultValue']"
3188
+ },
3189
+ "fieldName": "defaultValue"
3190
+ },
3191
+ {
3192
+ "name": "type",
3193
+ "type": {
3194
+ "text": "Props['type']"
3195
+ },
3196
+ "default": "props.type.default",
3197
+ "fieldName": "type"
3198
+ },
3199
+ {
3200
+ "name": "variant",
3201
+ "type": {
3202
+ "text": "Props['variant']"
3203
+ },
3204
+ "fieldName": "variant"
3205
+ },
3206
+ {
3207
+ "name": "size",
3208
+ "type": {
3209
+ "text": "Props['size']"
3210
+ },
3211
+ "default": "props.size.default",
3212
+ "fieldName": "size"
3213
+ },
3214
+ {
3215
+ "name": "placeholder",
3216
+ "type": {
3217
+ "text": "Props['placeholder']"
3218
+ },
3219
+ "default": "''",
3220
+ "fieldName": "placeholder"
3221
+ },
3222
+ {
3223
+ "name": "help-text",
3224
+ "type": {
3225
+ "text": "Props['helpText']"
3226
+ },
3227
+ "default": "''",
3228
+ "fieldName": "helpText"
3229
+ },
3230
+ {
3231
+ "name": "error",
3232
+ "type": {
3233
+ "text": "Props['error']"
3234
+ },
3235
+ "default": "''",
3236
+ "fieldName": "error"
3237
+ },
3238
+ {
3239
+ "name": "invalid",
3240
+ "type": {
3241
+ "text": "Props['invalid']"
3242
+ },
3243
+ "fieldName": "invalid"
3244
+ },
3245
+ {
3246
+ "name": "required",
3247
+ "type": {
3248
+ "text": "Props['required']"
3249
+ },
3250
+ "fieldName": "required"
3251
+ },
3252
+ {
3253
+ "name": "disabled",
3254
+ "type": {
3255
+ "text": "Props['disabled']"
3256
+ },
3257
+ "fieldName": "disabled"
3258
+ },
3259
+ {
3260
+ "name": "read-only",
3261
+ "type": {
3262
+ "text": "Props['readOnly']"
3263
+ },
3264
+ "fieldName": "readOnly"
3265
+ },
3266
+ {
3267
+ "name": "min-length",
3268
+ "type": {
3269
+ "text": "Props['minLength']"
3270
+ },
3271
+ "default": "undefined",
3272
+ "fieldName": "minLength"
3273
+ },
3274
+ {
3275
+ "name": "max-length",
3276
+ "type": {
3277
+ "text": "Props['maxLength']"
3278
+ },
3279
+ "default": "undefined",
3280
+ "fieldName": "maxLength"
3281
+ },
3282
+ {
3283
+ "name": "pattern",
3284
+ "type": {
3285
+ "text": "Props['pattern']"
3286
+ },
3287
+ "default": "undefined",
3288
+ "fieldName": "pattern"
3289
+ },
3290
+ {
3291
+ "name": "name",
3292
+ "type": {
3293
+ "text": "Props['name']"
3294
+ },
3295
+ "default": "undefined",
3296
+ "fieldName": "name"
3297
+ },
3298
+ {
3299
+ "name": "auto-complete",
3300
+ "type": {
3301
+ "text": "Props['autoComplete']"
3302
+ },
3303
+ "default": "undefined",
3304
+ "fieldName": "autoComplete"
3305
+ },
3306
+ {
3307
+ "name": "input-mode",
3308
+ "type": {
3309
+ "text": "string"
3310
+ },
3311
+ "default": "''",
3312
+ "fieldName": "inputMode"
3313
+ },
3314
+ {
3315
+ "name": "icon-focus-scope",
3316
+ "type": {
3317
+ "text": "Props['iconFocusScope']"
3318
+ },
3319
+ "fieldName": "iconFocusScope"
3320
+ },
3321
+ {
3322
+ "name": "prefix",
3323
+ "type": {
3324
+ "text": "string | null"
3325
+ },
3326
+ "default": "''",
3327
+ "fieldName": "prefix"
3328
+ },
3329
+ {
3330
+ "name": "suffix",
3331
+ "type": {
3332
+ "text": "Props['suffix']"
3333
+ },
3334
+ "default": "''",
3335
+ "fieldName": "suffix"
3336
+ },
3337
+ {
3338
+ "name": "clearable",
3339
+ "type": {
3340
+ "text": "Props['clearable']"
3341
+ },
3342
+ "fieldName": "clearable"
3343
+ },
3344
+ {
3345
+ "name": "clear-label",
3346
+ "type": {
3347
+ "text": "Props['clearLabel']"
3348
+ },
3349
+ "default": "undefined",
3350
+ "fieldName": "clearLabel"
3351
+ },
3352
+ {
3353
+ "name": "password-reveal",
3354
+ "type": {
3355
+ "text": "Props['passwordReveal']"
3356
+ },
3357
+ "fieldName": "passwordReveal"
3358
+ },
3359
+ {
3360
+ "name": "reveal-password-label",
3361
+ "type": {
3362
+ "text": "Props['revealPasswordLabel']"
3363
+ },
3364
+ "default": "undefined",
3365
+ "fieldName": "revealPasswordLabel"
3366
+ },
3367
+ {
3368
+ "name": "hide-password-label",
3369
+ "type": {
3370
+ "text": "Props['hidePasswordLabel']"
3371
+ },
3372
+ "default": "undefined",
3373
+ "fieldName": "hidePasswordLabel"
3374
+ }
3375
+ ],
3376
+ "superclass": {
3377
+ "name": "CosmElement",
3378
+ "module": "/src/internal/cosm-element.js"
3379
+ },
3380
+ "tagName": "cosm-text-field",
3381
+ "customElement": true
3382
+ }
3383
+ ],
3384
+ "exports": [
3385
+ {
3386
+ "kind": "js",
3387
+ "name": "CosmTextField",
3388
+ "declaration": {
3389
+ "name": "CosmTextField",
3390
+ "module": "src/components/text-field/cosm-text-field.ts"
3391
+ }
3392
+ }
3393
+ ]
291
3394
  }
292
3395
  ]
293
3396
  }