@genesislcap/foundation-ui 14.231.1-alpha-e01af29.0 → 14.231.1-alpha-e92fa0b.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +1693 -1693
  2. package/package.json +16 -16
@@ -864,6 +864,219 @@
864
864
  }
865
865
  ]
866
866
  },
867
+ {
868
+ "kind": "javascript-module",
869
+ "path": "src/_config/index.ts",
870
+ "declarations": [],
871
+ "exports": [
872
+ {
873
+ "kind": "js",
874
+ "name": "*",
875
+ "declaration": {
876
+ "name": "*",
877
+ "package": "./styles"
878
+ }
879
+ },
880
+ {
881
+ "kind": "js",
882
+ "name": "*",
883
+ "declaration": {
884
+ "name": "*",
885
+ "package": "./tokens"
886
+ }
887
+ },
888
+ {
889
+ "kind": "js",
890
+ "name": "*",
891
+ "declaration": {
892
+ "name": "*",
893
+ "package": "./values"
894
+ }
895
+ }
896
+ ]
897
+ },
898
+ {
899
+ "kind": "javascript-module",
900
+ "path": "src/accordion/accordion.styles.ts",
901
+ "declarations": [
902
+ {
903
+ "kind": "function",
904
+ "name": "foundationAccordionStyles",
905
+ "return": {
906
+ "type": {
907
+ "text": "ElementStyles"
908
+ }
909
+ },
910
+ "parameters": [
911
+ {
912
+ "name": "context",
913
+ "type": {
914
+ "text": "ElementDefinitionContext"
915
+ }
916
+ },
917
+ {
918
+ "name": "definition",
919
+ "type": {
920
+ "text": "FoundationElementDefinition"
921
+ }
922
+ }
923
+ ]
924
+ }
925
+ ],
926
+ "exports": [
927
+ {
928
+ "kind": "js",
929
+ "name": "foundationAccordionStyles",
930
+ "declaration": {
931
+ "name": "foundationAccordionStyles",
932
+ "module": "src/accordion/accordion.styles.ts"
933
+ }
934
+ }
935
+ ]
936
+ },
937
+ {
938
+ "kind": "javascript-module",
939
+ "path": "src/accordion/accordion.template.ts",
940
+ "declarations": [
941
+ {
942
+ "kind": "function",
943
+ "name": "foundationAccordionTemplate",
944
+ "return": {
945
+ "type": {
946
+ "text": "ViewTemplate<Accordion>"
947
+ }
948
+ },
949
+ "parameters": [
950
+ {
951
+ "name": "context",
952
+ "type": {
953
+ "text": "ElementDefinitionContext"
954
+ }
955
+ },
956
+ {
957
+ "name": "definition",
958
+ "type": {
959
+ "text": "FoundationElementDefinition"
960
+ }
961
+ }
962
+ ]
963
+ }
964
+ ],
965
+ "exports": [
966
+ {
967
+ "kind": "js",
968
+ "name": "foundationAccordionTemplate",
969
+ "declaration": {
970
+ "name": "foundationAccordionTemplate",
971
+ "module": "src/accordion/accordion.template.ts"
972
+ }
973
+ }
974
+ ]
975
+ },
976
+ {
977
+ "kind": "javascript-module",
978
+ "path": "src/accordion/accordion.ts",
979
+ "declarations": [
980
+ {
981
+ "kind": "class",
982
+ "description": "",
983
+ "name": "Accordion",
984
+ "superclass": {
985
+ "name": "FASTAccordion",
986
+ "package": "@microsoft/fast-foundation"
987
+ },
988
+ "tagName": "%%prefix%%-accordion",
989
+ "customElement": true
990
+ },
991
+ {
992
+ "kind": "variable",
993
+ "name": "foundationAccordionShadowOptions",
994
+ "type": {
995
+ "text": "ShadowRootInit"
996
+ },
997
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
998
+ },
999
+ {
1000
+ "kind": "variable",
1001
+ "name": "defaultAccordionConfig",
1002
+ "type": {
1003
+ "text": "object"
1004
+ },
1005
+ "default": "{}"
1006
+ },
1007
+ {
1008
+ "kind": "variable",
1009
+ "name": "foundationAccordion",
1010
+ "description": "The Foundation Accordion",
1011
+ "privacy": "public"
1012
+ }
1013
+ ],
1014
+ "exports": [
1015
+ {
1016
+ "kind": "js",
1017
+ "name": "Accordion",
1018
+ "declaration": {
1019
+ "name": "Accordion",
1020
+ "module": "src/accordion/accordion.ts"
1021
+ }
1022
+ },
1023
+ {
1024
+ "kind": "js",
1025
+ "name": "foundationAccordionShadowOptions",
1026
+ "declaration": {
1027
+ "name": "foundationAccordionShadowOptions",
1028
+ "module": "src/accordion/accordion.ts"
1029
+ }
1030
+ },
1031
+ {
1032
+ "kind": "js",
1033
+ "name": "defaultAccordionConfig",
1034
+ "declaration": {
1035
+ "name": "defaultAccordionConfig",
1036
+ "module": "src/accordion/accordion.ts"
1037
+ }
1038
+ },
1039
+ {
1040
+ "kind": "js",
1041
+ "name": "foundationAccordion",
1042
+ "declaration": {
1043
+ "name": "foundationAccordion",
1044
+ "module": "src/accordion/accordion.ts"
1045
+ }
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "kind": "javascript-module",
1051
+ "path": "src/accordion/index.ts",
1052
+ "declarations": [],
1053
+ "exports": [
1054
+ {
1055
+ "kind": "js",
1056
+ "name": "*",
1057
+ "declaration": {
1058
+ "name": "*",
1059
+ "package": "./accordion.template"
1060
+ }
1061
+ },
1062
+ {
1063
+ "kind": "js",
1064
+ "name": "*",
1065
+ "declaration": {
1066
+ "name": "*",
1067
+ "package": "./accordion.styles"
1068
+ }
1069
+ },
1070
+ {
1071
+ "kind": "js",
1072
+ "name": "*",
1073
+ "declaration": {
1074
+ "name": "*",
1075
+ "package": "./accordion"
1076
+ }
1077
+ }
1078
+ ]
1079
+ },
867
1080
  {
868
1081
  "kind": "javascript-module",
869
1082
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1260,42 +1473,11 @@
1260
1473
  },
1261
1474
  {
1262
1475
  "kind": "javascript-module",
1263
- "path": "src/_config/index.ts",
1264
- "declarations": [],
1265
- "exports": [
1266
- {
1267
- "kind": "js",
1268
- "name": "*",
1269
- "declaration": {
1270
- "name": "*",
1271
- "package": "./styles"
1272
- }
1273
- },
1274
- {
1275
- "kind": "js",
1276
- "name": "*",
1277
- "declaration": {
1278
- "name": "*",
1279
- "package": "./tokens"
1280
- }
1281
- },
1282
- {
1283
- "kind": "js",
1284
- "name": "*",
1285
- "declaration": {
1286
- "name": "*",
1287
- "package": "./values"
1288
- }
1289
- }
1290
- ]
1291
- },
1292
- {
1293
- "kind": "javascript-module",
1294
- "path": "src/accordion/accordion.styles.ts",
1476
+ "path": "src/actions-menu/actions-menu.styles.ts",
1295
1477
  "declarations": [
1296
1478
  {
1297
1479
  "kind": "function",
1298
- "name": "foundationAccordionStyles",
1480
+ "name": "actionsMenuBaseStyles",
1299
1481
  "return": {
1300
1482
  "type": {
1301
1483
  "text": "ElementStyles"
@@ -1315,189 +1497,7 @@
1315
1497
  }
1316
1498
  }
1317
1499
  ]
1318
- }
1319
- ],
1320
- "exports": [
1321
- {
1322
- "kind": "js",
1323
- "name": "foundationAccordionStyles",
1324
- "declaration": {
1325
- "name": "foundationAccordionStyles",
1326
- "module": "src/accordion/accordion.styles.ts"
1327
- }
1328
- }
1329
- ]
1330
- },
1331
- {
1332
- "kind": "javascript-module",
1333
- "path": "src/accordion/accordion.template.ts",
1334
- "declarations": [
1335
- {
1336
- "kind": "function",
1337
- "name": "foundationAccordionTemplate",
1338
- "return": {
1339
- "type": {
1340
- "text": "ViewTemplate<Accordion>"
1341
- }
1342
- },
1343
- "parameters": [
1344
- {
1345
- "name": "context",
1346
- "type": {
1347
- "text": "ElementDefinitionContext"
1348
- }
1349
- },
1350
- {
1351
- "name": "definition",
1352
- "type": {
1353
- "text": "FoundationElementDefinition"
1354
- }
1355
- }
1356
- ]
1357
- }
1358
- ],
1359
- "exports": [
1360
- {
1361
- "kind": "js",
1362
- "name": "foundationAccordionTemplate",
1363
- "declaration": {
1364
- "name": "foundationAccordionTemplate",
1365
- "module": "src/accordion/accordion.template.ts"
1366
- }
1367
- }
1368
- ]
1369
- },
1370
- {
1371
- "kind": "javascript-module",
1372
- "path": "src/accordion/accordion.ts",
1373
- "declarations": [
1374
- {
1375
- "kind": "class",
1376
- "description": "",
1377
- "name": "Accordion",
1378
- "superclass": {
1379
- "name": "FASTAccordion",
1380
- "package": "@microsoft/fast-foundation"
1381
- },
1382
- "tagName": "%%prefix%%-accordion",
1383
- "customElement": true
1384
- },
1385
- {
1386
- "kind": "variable",
1387
- "name": "foundationAccordionShadowOptions",
1388
- "type": {
1389
- "text": "ShadowRootInit"
1390
- },
1391
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1392
- },
1393
- {
1394
- "kind": "variable",
1395
- "name": "defaultAccordionConfig",
1396
- "type": {
1397
- "text": "object"
1398
- },
1399
- "default": "{}"
1400
- },
1401
- {
1402
- "kind": "variable",
1403
- "name": "foundationAccordion",
1404
- "description": "The Foundation Accordion",
1405
- "privacy": "public"
1406
- }
1407
- ],
1408
- "exports": [
1409
- {
1410
- "kind": "js",
1411
- "name": "Accordion",
1412
- "declaration": {
1413
- "name": "Accordion",
1414
- "module": "src/accordion/accordion.ts"
1415
- }
1416
- },
1417
- {
1418
- "kind": "js",
1419
- "name": "foundationAccordionShadowOptions",
1420
- "declaration": {
1421
- "name": "foundationAccordionShadowOptions",
1422
- "module": "src/accordion/accordion.ts"
1423
- }
1424
- },
1425
- {
1426
- "kind": "js",
1427
- "name": "defaultAccordionConfig",
1428
- "declaration": {
1429
- "name": "defaultAccordionConfig",
1430
- "module": "src/accordion/accordion.ts"
1431
- }
1432
- },
1433
- {
1434
- "kind": "js",
1435
- "name": "foundationAccordion",
1436
- "declaration": {
1437
- "name": "foundationAccordion",
1438
- "module": "src/accordion/accordion.ts"
1439
- }
1440
- }
1441
- ]
1442
- },
1443
- {
1444
- "kind": "javascript-module",
1445
- "path": "src/accordion/index.ts",
1446
- "declarations": [],
1447
- "exports": [
1448
- {
1449
- "kind": "js",
1450
- "name": "*",
1451
- "declaration": {
1452
- "name": "*",
1453
- "package": "./accordion.template"
1454
- }
1455
- },
1456
- {
1457
- "kind": "js",
1458
- "name": "*",
1459
- "declaration": {
1460
- "name": "*",
1461
- "package": "./accordion.styles"
1462
- }
1463
- },
1464
- {
1465
- "kind": "js",
1466
- "name": "*",
1467
- "declaration": {
1468
- "name": "*",
1469
- "package": "./accordion"
1470
- }
1471
- }
1472
- ]
1473
- },
1474
- {
1475
- "kind": "javascript-module",
1476
- "path": "src/actions-menu/actions-menu.styles.ts",
1477
- "declarations": [
1478
- {
1479
- "kind": "function",
1480
- "name": "actionsMenuBaseStyles",
1481
- "return": {
1482
- "type": {
1483
- "text": "ElementStyles"
1484
- }
1485
- },
1486
- "parameters": [
1487
- {
1488
- "name": "context",
1489
- "type": {
1490
- "text": "ElementDefinitionContext"
1491
- }
1492
- },
1493
- {
1494
- "name": "definition",
1495
- "type": {
1496
- "text": "FoundationElementDefinition"
1497
- }
1498
- }
1499
- ]
1500
- },
1500
+ },
1501
1501
  {
1502
1502
  "kind": "function",
1503
1503
  "name": "foundationActionsMenuStyles",
@@ -14641,23 +14641,17 @@
14641
14641
  },
14642
14642
  {
14643
14643
  "kind": "javascript-module",
14644
- "path": "src/dropdown-menu/dropdown-menu.styles.ts",
14644
+ "path": "src/disclosure/disclosure.styles.ts",
14645
14645
  "declarations": [
14646
14646
  {
14647
14647
  "kind": "function",
14648
- "name": "dropdownMenuBaseStyles",
14648
+ "name": "foundationDisclosureStyles",
14649
14649
  "return": {
14650
14650
  "type": {
14651
14651
  "text": "ElementStyles"
14652
14652
  }
14653
14653
  },
14654
14654
  "parameters": [
14655
- {
14656
- "name": "prefix",
14657
- "type": {
14658
- "text": "string"
14659
- }
14660
- },
14661
14655
  {
14662
14656
  "name": "context",
14663
14657
  "type": {
@@ -14671,13 +14665,29 @@
14671
14665
  }
14672
14666
  }
14673
14667
  ]
14674
- },
14668
+ }
14669
+ ],
14670
+ "exports": [
14671
+ {
14672
+ "kind": "js",
14673
+ "name": "foundationDisclosureStyles",
14674
+ "declaration": {
14675
+ "name": "foundationDisclosureStyles",
14676
+ "module": "src/disclosure/disclosure.styles.ts"
14677
+ }
14678
+ }
14679
+ ]
14680
+ },
14681
+ {
14682
+ "kind": "javascript-module",
14683
+ "path": "src/disclosure/disclosure.template.ts",
14684
+ "declarations": [
14675
14685
  {
14676
14686
  "kind": "function",
14677
- "name": "foundationDropdownMenuStyles",
14687
+ "name": "foundationDisclosureTemplate",
14678
14688
  "return": {
14679
14689
  "type": {
14680
- "text": "ElementStyles"
14690
+ "text": "ViewTemplate<Disclosure>"
14681
14691
  }
14682
14692
  },
14683
14693
  "parameters": [
@@ -14699,473 +14709,180 @@
14699
14709
  "exports": [
14700
14710
  {
14701
14711
  "kind": "js",
14702
- "name": "dropdownMenuBaseStyles",
14703
- "declaration": {
14704
- "name": "dropdownMenuBaseStyles",
14705
- "module": "src/dropdown-menu/dropdown-menu.styles.ts"
14706
- }
14707
- },
14708
- {
14709
- "kind": "js",
14710
- "name": "foundationDropdownMenuStyles",
14712
+ "name": "foundationDisclosureTemplate",
14711
14713
  "declaration": {
14712
- "name": "foundationDropdownMenuStyles",
14713
- "module": "src/dropdown-menu/dropdown-menu.styles.ts"
14714
+ "name": "foundationDisclosureTemplate",
14715
+ "module": "src/disclosure/disclosure.template.ts"
14714
14716
  }
14715
14717
  }
14716
14718
  ]
14717
14719
  },
14718
14720
  {
14719
14721
  "kind": "javascript-module",
14720
- "path": "src/dropdown-menu/dropdown-menu.template.ts",
14722
+ "path": "src/disclosure/disclosure.ts",
14721
14723
  "declarations": [
14722
14724
  {
14723
- "kind": "function",
14724
- "name": "extractMenuItems",
14725
- "parameters": [
14726
- {
14727
- "name": "items",
14728
- "type": {
14729
- "text": "DropdownMenuItem[]"
14730
- }
14731
- },
14732
- {
14733
- "name": "prefix",
14734
- "type": {
14735
- "text": "string"
14736
- }
14737
- }
14738
- ]
14725
+ "kind": "class",
14726
+ "description": "",
14727
+ "name": "Disclosure",
14728
+ "superclass": {
14729
+ "name": "FASTDisclosure",
14730
+ "package": "@microsoft/fast-foundation"
14731
+ },
14732
+ "tagName": "%%prefix%%-disclosure",
14733
+ "customElement": true
14739
14734
  },
14740
14735
  {
14741
- "kind": "function",
14742
- "name": "getDropdownMenuTemplate",
14743
- "parameters": [
14744
- {
14745
- "name": "prefix"
14746
- }
14747
- ]
14736
+ "kind": "variable",
14737
+ "name": "foundationDisclosureShadowOptions",
14738
+ "type": {
14739
+ "text": "ShadowRootInit"
14740
+ },
14741
+ "default": "undefined"
14748
14742
  },
14749
14743
  {
14750
14744
  "kind": "variable",
14751
- "name": "foundationDropdownMenuTemplate",
14752
- "default": "html<DropdownMenu>`\n ${(x) => getDropdownMenuTemplate(getPrefix(x))}\n`"
14745
+ "name": "defaultDisclosureConfig",
14746
+ "type": {
14747
+ "text": "object"
14748
+ },
14749
+ "default": "{}"
14750
+ },
14751
+ {
14752
+ "kind": "variable",
14753
+ "name": "foundationDisclosure",
14754
+ "description": "The Foundation Disclosure",
14755
+ "privacy": "public"
14753
14756
  }
14754
14757
  ],
14755
14758
  "exports": [
14756
14759
  {
14757
14760
  "kind": "js",
14758
- "name": "extractMenuItems",
14761
+ "name": "Disclosure",
14759
14762
  "declaration": {
14760
- "name": "extractMenuItems",
14761
- "module": "src/dropdown-menu/dropdown-menu.template.ts"
14763
+ "name": "Disclosure",
14764
+ "module": "src/disclosure/disclosure.ts"
14762
14765
  }
14763
14766
  },
14764
14767
  {
14765
14768
  "kind": "js",
14766
- "name": "getDropdownMenuTemplate",
14769
+ "name": "foundationDisclosureShadowOptions",
14767
14770
  "declaration": {
14768
- "name": "getDropdownMenuTemplate",
14769
- "module": "src/dropdown-menu/dropdown-menu.template.ts"
14771
+ "name": "foundationDisclosureShadowOptions",
14772
+ "module": "src/disclosure/disclosure.ts"
14770
14773
  }
14771
14774
  },
14772
14775
  {
14773
14776
  "kind": "js",
14774
- "name": "foundationDropdownMenuTemplate",
14777
+ "name": "defaultDisclosureConfig",
14775
14778
  "declaration": {
14776
- "name": "foundationDropdownMenuTemplate",
14777
- "module": "src/dropdown-menu/dropdown-menu.template.ts"
14779
+ "name": "defaultDisclosureConfig",
14780
+ "module": "src/disclosure/disclosure.ts"
14781
+ }
14782
+ },
14783
+ {
14784
+ "kind": "js",
14785
+ "name": "foundationDisclosure",
14786
+ "declaration": {
14787
+ "name": "foundationDisclosure",
14788
+ "module": "src/disclosure/disclosure.ts"
14778
14789
  }
14779
14790
  }
14780
14791
  ]
14781
14792
  },
14782
14793
  {
14783
14794
  "kind": "javascript-module",
14784
- "path": "src/dropdown-menu/dropdown-menu.ts",
14795
+ "path": "src/disclosure/index.ts",
14796
+ "declarations": [],
14797
+ "exports": [
14798
+ {
14799
+ "kind": "js",
14800
+ "name": "*",
14801
+ "declaration": {
14802
+ "name": "*",
14803
+ "package": "./disclosure.template"
14804
+ }
14805
+ },
14806
+ {
14807
+ "kind": "js",
14808
+ "name": "*",
14809
+ "declaration": {
14810
+ "name": "*",
14811
+ "package": "./disclosure.styles"
14812
+ }
14813
+ },
14814
+ {
14815
+ "kind": "js",
14816
+ "name": "*",
14817
+ "declaration": {
14818
+ "name": "*",
14819
+ "package": "./disclosure"
14820
+ }
14821
+ }
14822
+ ]
14823
+ },
14824
+ {
14825
+ "kind": "javascript-module",
14826
+ "path": "src/divider/divider.styles.ts",
14785
14827
  "declarations": [
14786
14828
  {
14787
- "kind": "class",
14788
- "description": "",
14789
- "name": "DropdownMenu",
14790
- "members": [
14791
- {
14792
- "kind": "field",
14793
- "name": "items",
14794
- "type": {
14795
- "text": "DropdownMenuItem[]"
14796
- }
14797
- },
14798
- {
14799
- "kind": "field",
14800
- "name": "autoClose",
14801
- "type": {
14802
- "text": "boolean"
14803
- },
14804
- "default": "true"
14805
- },
14806
- {
14807
- "kind": "field",
14808
- "name": "disabled",
14809
- "type": {
14810
- "text": "boolean"
14811
- },
14812
- "default": "false"
14813
- },
14814
- {
14815
- "kind": "field",
14816
- "name": "classNames",
14817
- "type": {
14818
- "text": "string"
14819
- }
14820
- },
14821
- {
14822
- "kind": "field",
14823
- "name": "name",
14824
- "type": {
14825
- "text": "string"
14826
- },
14827
- "default": "'Dropdown Menu'"
14828
- },
14829
- {
14830
- "kind": "field",
14831
- "name": "open",
14832
- "type": {
14833
- "text": "boolean"
14834
- },
14835
- "default": "false"
14836
- },
14837
- {
14838
- "kind": "field",
14839
- "name": "buttonAppearance",
14840
- "type": {
14841
- "text": "string"
14842
- }
14843
- },
14829
+ "kind": "function",
14830
+ "name": "foundationDividerStyles",
14831
+ "return": {
14832
+ "type": {
14833
+ "text": "ElementStyles"
14834
+ }
14835
+ },
14836
+ "parameters": [
14844
14837
  {
14845
- "kind": "field",
14846
- "name": "dropdownMenu",
14838
+ "name": "context",
14847
14839
  "type": {
14848
- "text": "HTMLElement"
14840
+ "text": "ElementDefinitionContext"
14849
14841
  }
14850
14842
  },
14851
14843
  {
14852
- "kind": "field",
14853
- "name": "clickOutside",
14854
- "privacy": "private"
14855
- },
14856
- {
14857
- "kind": "method",
14858
- "name": "handleClickOutside",
14859
- "privacy": "private",
14860
- "parameters": [
14861
- {
14862
- "name": "event",
14863
- "type": {
14864
- "text": "MouseEvent"
14865
- }
14866
- }
14867
- ]
14868
- },
14869
- {
14870
- "kind": "method",
14871
- "name": "openChanged",
14872
- "privacy": "protected"
14873
- },
14874
- {
14875
- "kind": "method",
14876
- "name": "toggleDropdownMenuVisibility"
14877
- },
14878
- {
14879
- "kind": "method",
14880
- "name": "onDropdownMenuItemClick"
14881
- },
14882
- {
14883
- "kind": "field",
14884
- "name": "allItems",
14885
- "type": {
14886
- "text": "DropdownMenuItem[]"
14887
- },
14888
- "readonly": true
14889
- },
14890
- {
14891
- "kind": "field",
14892
- "name": "_presentation",
14844
+ "name": "definition",
14893
14845
  "type": {
14894
- "text": "ComponentPresentation | null | undefined"
14895
- },
14896
- "privacy": "private",
14897
- "default": "void 0",
14898
- "inheritedFrom": {
14899
- "name": "FoundationElement",
14900
- "module": "src/foundation-element/foundation-element.ts"
14846
+ "text": "FoundationElementDefinition"
14901
14847
  }
14902
- },
14848
+ }
14849
+ ]
14850
+ }
14851
+ ],
14852
+ "exports": [
14853
+ {
14854
+ "kind": "js",
14855
+ "name": "foundationDividerStyles",
14856
+ "declaration": {
14857
+ "name": "foundationDividerStyles",
14858
+ "module": "src/divider/divider.styles.ts"
14859
+ }
14860
+ }
14861
+ ]
14862
+ },
14863
+ {
14864
+ "kind": "javascript-module",
14865
+ "path": "src/divider/divider.template.ts",
14866
+ "declarations": [
14867
+ {
14868
+ "kind": "function",
14869
+ "name": "foundationDividerTemplate",
14870
+ "return": {
14871
+ "type": {
14872
+ "text": "ViewTemplate<Divider>"
14873
+ }
14874
+ },
14875
+ "parameters": [
14903
14876
  {
14904
- "kind": "field",
14905
- "name": "$presentation",
14877
+ "name": "context",
14906
14878
  "type": {
14907
- "text": "ComponentPresentation | null"
14908
- },
14909
- "privacy": "public",
14910
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
14911
- "inheritedFrom": {
14912
- "name": "FoundationElement",
14913
- "module": "src/foundation-element/foundation-element.ts"
14879
+ "text": "ElementDefinitionContext"
14914
14880
  }
14915
14881
  },
14916
14882
  {
14917
- "kind": "field",
14918
- "name": "template",
14883
+ "name": "definition",
14919
14884
  "type": {
14920
- "text": "ElementViewTemplate | void | null"
14921
- },
14922
- "privacy": "public",
14923
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
14924
- "inheritedFrom": {
14925
- "name": "FoundationElement",
14926
- "module": "src/foundation-element/foundation-element.ts"
14927
- }
14928
- },
14929
- {
14930
- "kind": "method",
14931
- "name": "templateChanged",
14932
- "privacy": "protected",
14933
- "return": {
14934
- "type": {
14935
- "text": "void"
14936
- }
14937
- },
14938
- "inheritedFrom": {
14939
- "name": "FoundationElement",
14940
- "module": "src/foundation-element/foundation-element.ts"
14941
- }
14942
- },
14943
- {
14944
- "kind": "field",
14945
- "name": "styles",
14946
- "type": {
14947
- "text": "ElementStyles | void | null"
14948
- },
14949
- "privacy": "public",
14950
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
14951
- "inheritedFrom": {
14952
- "name": "FoundationElement",
14953
- "module": "src/foundation-element/foundation-element.ts"
14954
- }
14955
- },
14956
- {
14957
- "kind": "method",
14958
- "name": "stylesChanged",
14959
- "privacy": "protected",
14960
- "return": {
14961
- "type": {
14962
- "text": "void"
14963
- }
14964
- },
14965
- "inheritedFrom": {
14966
- "name": "FoundationElement",
14967
- "module": "src/foundation-element/foundation-element.ts"
14968
- }
14969
- },
14970
- {
14971
- "kind": "method",
14972
- "name": "compose",
14973
- "privacy": "public",
14974
- "static": true,
14975
- "return": {
14976
- "type": {
14977
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
14978
- }
14979
- },
14980
- "parameters": [
14981
- {
14982
- "name": "this",
14983
- "type": {
14984
- "text": "K"
14985
- }
14986
- },
14987
- {
14988
- "name": "elementDefinition",
14989
- "type": {
14990
- "text": "T"
14991
- },
14992
- "description": "The definition of the element to create the registry\nfunction for."
14993
- }
14994
- ],
14995
- "description": "Defines an element registry function with a set of element definition defaults.",
14996
- "inheritedFrom": {
14997
- "name": "FoundationElement",
14998
- "module": "src/foundation-element/foundation-element.ts"
14999
- }
15000
- }
15001
- ],
15002
- "attributes": [
15003
- {
15004
- "name": "auto-close",
15005
- "type": {
15006
- "text": "boolean"
15007
- },
15008
- "default": "true",
15009
- "fieldName": "autoClose"
15010
- },
15011
- {
15012
- "name": "disable-button",
15013
- "type": {
15014
- "text": "boolean"
15015
- },
15016
- "default": "false",
15017
- "fieldName": "disabled"
15018
- },
15019
- {
15020
- "name": "name",
15021
- "type": {
15022
- "text": "string"
15023
- },
15024
- "default": "'Dropdown Menu'",
15025
- "fieldName": "name"
15026
- },
15027
- {
15028
- "name": "open",
15029
- "type": {
15030
- "text": "boolean"
15031
- },
15032
- "default": "false",
15033
- "fieldName": "open"
15034
- },
15035
- {
15036
- "name": "buttonAppearance",
15037
- "type": {
15038
- "text": "string"
15039
- },
15040
- "fieldName": "buttonAppearance"
15041
- }
15042
- ],
15043
- "superclass": {
15044
- "name": "FoundationElement",
15045
- "package": "@microsoft/fast-foundation"
15046
- },
15047
- "tagName": "%%prefix%%-dropdown-menu",
15048
- "customElement": true
15049
- },
15050
- {
15051
- "kind": "variable",
15052
- "name": "foundationDropdownMenu",
15053
- "description": "The Foundation Dropdown Menu",
15054
- "privacy": "public"
15055
- }
15056
- ],
15057
- "exports": [
15058
- {
15059
- "kind": "js",
15060
- "name": "DropdownMenu",
15061
- "declaration": {
15062
- "name": "DropdownMenu",
15063
- "module": "src/dropdown-menu/dropdown-menu.ts"
15064
- }
15065
- },
15066
- {
15067
- "kind": "js",
15068
- "name": "foundationDropdownMenu",
15069
- "declaration": {
15070
- "name": "foundationDropdownMenu",
15071
- "module": "src/dropdown-menu/dropdown-menu.ts"
15072
- }
15073
- }
15074
- ]
15075
- },
15076
- {
15077
- "kind": "javascript-module",
15078
- "path": "src/dropdown-menu/index.ts",
15079
- "declarations": [],
15080
- "exports": [
15081
- {
15082
- "kind": "js",
15083
- "name": "*",
15084
- "declaration": {
15085
- "name": "*",
15086
- "package": "./dropdown-menu.styles"
15087
- }
15088
- },
15089
- {
15090
- "kind": "js",
15091
- "name": "*",
15092
- "declaration": {
15093
- "name": "*",
15094
- "package": "./dropdown-menu.template"
15095
- }
15096
- },
15097
- {
15098
- "kind": "js",
15099
- "name": "*",
15100
- "declaration": {
15101
- "name": "*",
15102
- "package": "./dropdown-menu"
15103
- }
15104
- }
15105
- ]
15106
- },
15107
- {
15108
- "kind": "javascript-module",
15109
- "path": "src/divider/divider.styles.ts",
15110
- "declarations": [
15111
- {
15112
- "kind": "function",
15113
- "name": "foundationDividerStyles",
15114
- "return": {
15115
- "type": {
15116
- "text": "ElementStyles"
15117
- }
15118
- },
15119
- "parameters": [
15120
- {
15121
- "name": "context",
15122
- "type": {
15123
- "text": "ElementDefinitionContext"
15124
- }
15125
- },
15126
- {
15127
- "name": "definition",
15128
- "type": {
15129
- "text": "FoundationElementDefinition"
15130
- }
15131
- }
15132
- ]
15133
- }
15134
- ],
15135
- "exports": [
15136
- {
15137
- "kind": "js",
15138
- "name": "foundationDividerStyles",
15139
- "declaration": {
15140
- "name": "foundationDividerStyles",
15141
- "module": "src/divider/divider.styles.ts"
15142
- }
15143
- }
15144
- ]
15145
- },
15146
- {
15147
- "kind": "javascript-module",
15148
- "path": "src/divider/divider.template.ts",
15149
- "declarations": [
15150
- {
15151
- "kind": "function",
15152
- "name": "foundationDividerTemplate",
15153
- "return": {
15154
- "type": {
15155
- "text": "ViewTemplate<Divider>"
15156
- }
15157
- },
15158
- "parameters": [
15159
- {
15160
- "name": "context",
15161
- "type": {
15162
- "text": "ElementDefinitionContext"
15163
- }
15164
- },
15165
- {
15166
- "name": "definition",
15167
- "type": {
15168
- "text": "FoundationElementDefinition"
14885
+ "text": "FoundationElementDefinition"
15169
14886
  }
15170
14887
  }
15171
14888
  ]
@@ -15288,17 +15005,23 @@
15288
15005
  },
15289
15006
  {
15290
15007
  "kind": "javascript-module",
15291
- "path": "src/disclosure/disclosure.styles.ts",
15008
+ "path": "src/dropdown-menu/dropdown-menu.styles.ts",
15292
15009
  "declarations": [
15293
15010
  {
15294
15011
  "kind": "function",
15295
- "name": "foundationDisclosureStyles",
15012
+ "name": "dropdownMenuBaseStyles",
15296
15013
  "return": {
15297
15014
  "type": {
15298
15015
  "text": "ElementStyles"
15299
15016
  }
15300
15017
  },
15301
15018
  "parameters": [
15019
+ {
15020
+ "name": "prefix",
15021
+ "type": {
15022
+ "text": "string"
15023
+ }
15024
+ },
15302
15025
  {
15303
15026
  "name": "context",
15304
15027
  "type": {
@@ -15312,134 +15035,411 @@
15312
15035
  }
15313
15036
  }
15314
15037
  ]
15315
- }
15316
- ],
15317
- "exports": [
15038
+ },
15318
15039
  {
15319
- "kind": "js",
15320
- "name": "foundationDisclosureStyles",
15321
- "declaration": {
15322
- "name": "foundationDisclosureStyles",
15323
- "module": "src/disclosure/disclosure.styles.ts"
15324
- }
15325
- }
15040
+ "kind": "function",
15041
+ "name": "foundationDropdownMenuStyles",
15042
+ "return": {
15043
+ "type": {
15044
+ "text": "ElementStyles"
15045
+ }
15046
+ },
15047
+ "parameters": [
15048
+ {
15049
+ "name": "context",
15050
+ "type": {
15051
+ "text": "ElementDefinitionContext"
15052
+ }
15053
+ },
15054
+ {
15055
+ "name": "definition",
15056
+ "type": {
15057
+ "text": "FoundationElementDefinition"
15058
+ }
15059
+ }
15060
+ ]
15061
+ }
15062
+ ],
15063
+ "exports": [
15064
+ {
15065
+ "kind": "js",
15066
+ "name": "dropdownMenuBaseStyles",
15067
+ "declaration": {
15068
+ "name": "dropdownMenuBaseStyles",
15069
+ "module": "src/dropdown-menu/dropdown-menu.styles.ts"
15070
+ }
15071
+ },
15072
+ {
15073
+ "kind": "js",
15074
+ "name": "foundationDropdownMenuStyles",
15075
+ "declaration": {
15076
+ "name": "foundationDropdownMenuStyles",
15077
+ "module": "src/dropdown-menu/dropdown-menu.styles.ts"
15078
+ }
15079
+ }
15326
15080
  ]
15327
15081
  },
15328
15082
  {
15329
15083
  "kind": "javascript-module",
15330
- "path": "src/disclosure/disclosure.template.ts",
15084
+ "path": "src/dropdown-menu/dropdown-menu.template.ts",
15331
15085
  "declarations": [
15332
15086
  {
15333
15087
  "kind": "function",
15334
- "name": "foundationDisclosureTemplate",
15335
- "return": {
15336
- "type": {
15337
- "text": "ViewTemplate<Disclosure>"
15088
+ "name": "extractMenuItems",
15089
+ "parameters": [
15090
+ {
15091
+ "name": "items",
15092
+ "type": {
15093
+ "text": "DropdownMenuItem[]"
15094
+ }
15095
+ },
15096
+ {
15097
+ "name": "prefix",
15098
+ "type": {
15099
+ "text": "string"
15100
+ }
15101
+ }
15102
+ ]
15103
+ },
15104
+ {
15105
+ "kind": "function",
15106
+ "name": "getDropdownMenuTemplate",
15107
+ "parameters": [
15108
+ {
15109
+ "name": "prefix"
15110
+ }
15111
+ ]
15112
+ },
15113
+ {
15114
+ "kind": "variable",
15115
+ "name": "foundationDropdownMenuTemplate",
15116
+ "default": "html<DropdownMenu>`\n ${(x) => getDropdownMenuTemplate(getPrefix(x))}\n`"
15117
+ }
15118
+ ],
15119
+ "exports": [
15120
+ {
15121
+ "kind": "js",
15122
+ "name": "extractMenuItems",
15123
+ "declaration": {
15124
+ "name": "extractMenuItems",
15125
+ "module": "src/dropdown-menu/dropdown-menu.template.ts"
15126
+ }
15127
+ },
15128
+ {
15129
+ "kind": "js",
15130
+ "name": "getDropdownMenuTemplate",
15131
+ "declaration": {
15132
+ "name": "getDropdownMenuTemplate",
15133
+ "module": "src/dropdown-menu/dropdown-menu.template.ts"
15134
+ }
15135
+ },
15136
+ {
15137
+ "kind": "js",
15138
+ "name": "foundationDropdownMenuTemplate",
15139
+ "declaration": {
15140
+ "name": "foundationDropdownMenuTemplate",
15141
+ "module": "src/dropdown-menu/dropdown-menu.template.ts"
15142
+ }
15143
+ }
15144
+ ]
15145
+ },
15146
+ {
15147
+ "kind": "javascript-module",
15148
+ "path": "src/dropdown-menu/dropdown-menu.ts",
15149
+ "declarations": [
15150
+ {
15151
+ "kind": "class",
15152
+ "description": "",
15153
+ "name": "DropdownMenu",
15154
+ "members": [
15155
+ {
15156
+ "kind": "field",
15157
+ "name": "items",
15158
+ "type": {
15159
+ "text": "DropdownMenuItem[]"
15160
+ }
15161
+ },
15162
+ {
15163
+ "kind": "field",
15164
+ "name": "autoClose",
15165
+ "type": {
15166
+ "text": "boolean"
15167
+ },
15168
+ "default": "true"
15169
+ },
15170
+ {
15171
+ "kind": "field",
15172
+ "name": "disabled",
15173
+ "type": {
15174
+ "text": "boolean"
15175
+ },
15176
+ "default": "false"
15177
+ },
15178
+ {
15179
+ "kind": "field",
15180
+ "name": "classNames",
15181
+ "type": {
15182
+ "text": "string"
15183
+ }
15184
+ },
15185
+ {
15186
+ "kind": "field",
15187
+ "name": "name",
15188
+ "type": {
15189
+ "text": "string"
15190
+ },
15191
+ "default": "'Dropdown Menu'"
15192
+ },
15193
+ {
15194
+ "kind": "field",
15195
+ "name": "open",
15196
+ "type": {
15197
+ "text": "boolean"
15198
+ },
15199
+ "default": "false"
15200
+ },
15201
+ {
15202
+ "kind": "field",
15203
+ "name": "buttonAppearance",
15204
+ "type": {
15205
+ "text": "string"
15206
+ }
15207
+ },
15208
+ {
15209
+ "kind": "field",
15210
+ "name": "dropdownMenu",
15211
+ "type": {
15212
+ "text": "HTMLElement"
15213
+ }
15214
+ },
15215
+ {
15216
+ "kind": "field",
15217
+ "name": "clickOutside",
15218
+ "privacy": "private"
15219
+ },
15220
+ {
15221
+ "kind": "method",
15222
+ "name": "handleClickOutside",
15223
+ "privacy": "private",
15224
+ "parameters": [
15225
+ {
15226
+ "name": "event",
15227
+ "type": {
15228
+ "text": "MouseEvent"
15229
+ }
15230
+ }
15231
+ ]
15232
+ },
15233
+ {
15234
+ "kind": "method",
15235
+ "name": "openChanged",
15236
+ "privacy": "protected"
15237
+ },
15238
+ {
15239
+ "kind": "method",
15240
+ "name": "toggleDropdownMenuVisibility"
15241
+ },
15242
+ {
15243
+ "kind": "method",
15244
+ "name": "onDropdownMenuItemClick"
15245
+ },
15246
+ {
15247
+ "kind": "field",
15248
+ "name": "allItems",
15249
+ "type": {
15250
+ "text": "DropdownMenuItem[]"
15251
+ },
15252
+ "readonly": true
15253
+ },
15254
+ {
15255
+ "kind": "field",
15256
+ "name": "_presentation",
15257
+ "type": {
15258
+ "text": "ComponentPresentation | null | undefined"
15259
+ },
15260
+ "privacy": "private",
15261
+ "default": "void 0",
15262
+ "inheritedFrom": {
15263
+ "name": "FoundationElement",
15264
+ "module": "src/foundation-element/foundation-element.ts"
15265
+ }
15266
+ },
15267
+ {
15268
+ "kind": "field",
15269
+ "name": "$presentation",
15270
+ "type": {
15271
+ "text": "ComponentPresentation | null"
15272
+ },
15273
+ "privacy": "public",
15274
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
15275
+ "inheritedFrom": {
15276
+ "name": "FoundationElement",
15277
+ "module": "src/foundation-element/foundation-element.ts"
15278
+ }
15279
+ },
15280
+ {
15281
+ "kind": "field",
15282
+ "name": "template",
15283
+ "type": {
15284
+ "text": "ElementViewTemplate | void | null"
15285
+ },
15286
+ "privacy": "public",
15287
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
15288
+ "inheritedFrom": {
15289
+ "name": "FoundationElement",
15290
+ "module": "src/foundation-element/foundation-element.ts"
15291
+ }
15292
+ },
15293
+ {
15294
+ "kind": "method",
15295
+ "name": "templateChanged",
15296
+ "privacy": "protected",
15297
+ "return": {
15298
+ "type": {
15299
+ "text": "void"
15300
+ }
15301
+ },
15302
+ "inheritedFrom": {
15303
+ "name": "FoundationElement",
15304
+ "module": "src/foundation-element/foundation-element.ts"
15305
+ }
15306
+ },
15307
+ {
15308
+ "kind": "field",
15309
+ "name": "styles",
15310
+ "type": {
15311
+ "text": "ElementStyles | void | null"
15312
+ },
15313
+ "privacy": "public",
15314
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
15315
+ "inheritedFrom": {
15316
+ "name": "FoundationElement",
15317
+ "module": "src/foundation-element/foundation-element.ts"
15318
+ }
15319
+ },
15320
+ {
15321
+ "kind": "method",
15322
+ "name": "stylesChanged",
15323
+ "privacy": "protected",
15324
+ "return": {
15325
+ "type": {
15326
+ "text": "void"
15327
+ }
15328
+ },
15329
+ "inheritedFrom": {
15330
+ "name": "FoundationElement",
15331
+ "module": "src/foundation-element/foundation-element.ts"
15332
+ }
15333
+ },
15334
+ {
15335
+ "kind": "method",
15336
+ "name": "compose",
15337
+ "privacy": "public",
15338
+ "static": true,
15339
+ "return": {
15340
+ "type": {
15341
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
15342
+ }
15343
+ },
15344
+ "parameters": [
15345
+ {
15346
+ "name": "this",
15347
+ "type": {
15348
+ "text": "K"
15349
+ }
15350
+ },
15351
+ {
15352
+ "name": "elementDefinition",
15353
+ "type": {
15354
+ "text": "T"
15355
+ },
15356
+ "description": "The definition of the element to create the registry\nfunction for."
15357
+ }
15358
+ ],
15359
+ "description": "Defines an element registry function with a set of element definition defaults.",
15360
+ "inheritedFrom": {
15361
+ "name": "FoundationElement",
15362
+ "module": "src/foundation-element/foundation-element.ts"
15363
+ }
15338
15364
  }
15339
- },
15340
- "parameters": [
15365
+ ],
15366
+ "attributes": [
15341
15367
  {
15342
- "name": "context",
15368
+ "name": "auto-close",
15343
15369
  "type": {
15344
- "text": "ElementDefinitionContext"
15345
- }
15370
+ "text": "boolean"
15371
+ },
15372
+ "default": "true",
15373
+ "fieldName": "autoClose"
15346
15374
  },
15347
15375
  {
15348
- "name": "definition",
15376
+ "name": "disable-button",
15349
15377
  "type": {
15350
- "text": "FoundationElementDefinition"
15351
- }
15378
+ "text": "boolean"
15379
+ },
15380
+ "default": "false",
15381
+ "fieldName": "disabled"
15382
+ },
15383
+ {
15384
+ "name": "name",
15385
+ "type": {
15386
+ "text": "string"
15387
+ },
15388
+ "default": "'Dropdown Menu'",
15389
+ "fieldName": "name"
15390
+ },
15391
+ {
15392
+ "name": "open",
15393
+ "type": {
15394
+ "text": "boolean"
15395
+ },
15396
+ "default": "false",
15397
+ "fieldName": "open"
15398
+ },
15399
+ {
15400
+ "name": "buttonAppearance",
15401
+ "type": {
15402
+ "text": "string"
15403
+ },
15404
+ "fieldName": "buttonAppearance"
15352
15405
  }
15353
- ]
15354
- }
15355
- ],
15356
- "exports": [
15357
- {
15358
- "kind": "js",
15359
- "name": "foundationDisclosureTemplate",
15360
- "declaration": {
15361
- "name": "foundationDisclosureTemplate",
15362
- "module": "src/disclosure/disclosure.template.ts"
15363
- }
15364
- }
15365
- ]
15366
- },
15367
- {
15368
- "kind": "javascript-module",
15369
- "path": "src/disclosure/disclosure.ts",
15370
- "declarations": [
15371
- {
15372
- "kind": "class",
15373
- "description": "",
15374
- "name": "Disclosure",
15406
+ ],
15375
15407
  "superclass": {
15376
- "name": "FASTDisclosure",
15408
+ "name": "FoundationElement",
15377
15409
  "package": "@microsoft/fast-foundation"
15378
15410
  },
15379
- "tagName": "%%prefix%%-disclosure",
15411
+ "tagName": "%%prefix%%-dropdown-menu",
15380
15412
  "customElement": true
15381
15413
  },
15382
15414
  {
15383
15415
  "kind": "variable",
15384
- "name": "foundationDisclosureShadowOptions",
15385
- "type": {
15386
- "text": "ShadowRootInit"
15387
- },
15388
- "default": "undefined"
15389
- },
15390
- {
15391
- "kind": "variable",
15392
- "name": "defaultDisclosureConfig",
15393
- "type": {
15394
- "text": "object"
15395
- },
15396
- "default": "{}"
15397
- },
15398
- {
15399
- "kind": "variable",
15400
- "name": "foundationDisclosure",
15401
- "description": "The Foundation Disclosure",
15416
+ "name": "foundationDropdownMenu",
15417
+ "description": "The Foundation Dropdown Menu",
15402
15418
  "privacy": "public"
15403
15419
  }
15404
15420
  ],
15405
15421
  "exports": [
15406
15422
  {
15407
15423
  "kind": "js",
15408
- "name": "Disclosure",
15409
- "declaration": {
15410
- "name": "Disclosure",
15411
- "module": "src/disclosure/disclosure.ts"
15412
- }
15413
- },
15414
- {
15415
- "kind": "js",
15416
- "name": "foundationDisclosureShadowOptions",
15417
- "declaration": {
15418
- "name": "foundationDisclosureShadowOptions",
15419
- "module": "src/disclosure/disclosure.ts"
15420
- }
15421
- },
15422
- {
15423
- "kind": "js",
15424
- "name": "defaultDisclosureConfig",
15424
+ "name": "DropdownMenu",
15425
15425
  "declaration": {
15426
- "name": "defaultDisclosureConfig",
15427
- "module": "src/disclosure/disclosure.ts"
15426
+ "name": "DropdownMenu",
15427
+ "module": "src/dropdown-menu/dropdown-menu.ts"
15428
15428
  }
15429
15429
  },
15430
15430
  {
15431
15431
  "kind": "js",
15432
- "name": "foundationDisclosure",
15432
+ "name": "foundationDropdownMenu",
15433
15433
  "declaration": {
15434
- "name": "foundationDisclosure",
15435
- "module": "src/disclosure/disclosure.ts"
15434
+ "name": "foundationDropdownMenu",
15435
+ "module": "src/dropdown-menu/dropdown-menu.ts"
15436
15436
  }
15437
15437
  }
15438
15438
  ]
15439
15439
  },
15440
15440
  {
15441
15441
  "kind": "javascript-module",
15442
- "path": "src/disclosure/index.ts",
15442
+ "path": "src/dropdown-menu/index.ts",
15443
15443
  "declarations": [],
15444
15444
  "exports": [
15445
15445
  {
@@ -15447,7 +15447,7 @@
15447
15447
  "name": "*",
15448
15448
  "declaration": {
15449
15449
  "name": "*",
15450
- "package": "./disclosure.template"
15450
+ "package": "./dropdown-menu.styles"
15451
15451
  }
15452
15452
  },
15453
15453
  {
@@ -15455,7 +15455,7 @@
15455
15455
  "name": "*",
15456
15456
  "declaration": {
15457
15457
  "name": "*",
15458
- "package": "./disclosure.styles"
15458
+ "package": "./dropdown-menu.template"
15459
15459
  }
15460
15460
  },
15461
15461
  {
@@ -15463,7 +15463,7 @@
15463
15463
  "name": "*",
15464
15464
  "declaration": {
15465
15465
  "name": "*",
15466
- "package": "./disclosure"
15466
+ "package": "./dropdown-menu"
15467
15467
  }
15468
15468
  }
15469
15469
  ]
@@ -23008,7 +23008,7 @@
23008
23008
  },
23009
23009
  {
23010
23010
  "kind": "javascript-module",
23011
- "path": "src/modal/index.ts",
23011
+ "path": "src/menu-item/index.ts",
23012
23012
  "declarations": [],
23013
23013
  "exports": [
23014
23014
  {
@@ -23016,7 +23016,7 @@
23016
23016
  "name": "*",
23017
23017
  "declaration": {
23018
23018
  "name": "*",
23019
- "package": "./modal.styles"
23019
+ "package": "./menu-item.template"
23020
23020
  }
23021
23021
  },
23022
23022
  {
@@ -23024,7 +23024,7 @@
23024
23024
  "name": "*",
23025
23025
  "declaration": {
23026
23026
  "name": "*",
23027
- "package": "./modal.template"
23027
+ "package": "./menu-item.styles"
23028
23028
  }
23029
23029
  },
23030
23030
  {
@@ -23032,240 +23032,269 @@
23032
23032
  "name": "*",
23033
23033
  "declaration": {
23034
23034
  "name": "*",
23035
- "package": "./modal"
23035
+ "package": "./menu-item"
23036
23036
  }
23037
23037
  }
23038
23038
  ]
23039
23039
  },
23040
23040
  {
23041
23041
  "kind": "javascript-module",
23042
- "path": "src/modal/modal.styles.ts",
23042
+ "path": "src/menu-item/menu-item.styles.ts",
23043
23043
  "declarations": [
23044
23044
  {
23045
- "kind": "variable",
23046
- "name": "foundationModalStyles",
23047
- "type": {
23048
- "text": "ElementStyles"
23045
+ "kind": "function",
23046
+ "name": "foundationMenuItemStyles",
23047
+ "return": {
23048
+ "type": {
23049
+ "text": "ElementStyles"
23050
+ }
23049
23051
  },
23050
- "default": "css`\n ${foundationDialogStyles}\n`"
23052
+ "parameters": [
23053
+ {
23054
+ "name": "context",
23055
+ "type": {
23056
+ "text": "ElementDefinitionContext"
23057
+ }
23058
+ },
23059
+ {
23060
+ "name": "definition",
23061
+ "type": {
23062
+ "text": "MenuItemOptions"
23063
+ }
23064
+ }
23065
+ ]
23051
23066
  }
23052
23067
  ],
23053
23068
  "exports": [
23054
23069
  {
23055
23070
  "kind": "js",
23056
- "name": "foundationModalStyles",
23071
+ "name": "foundationMenuItemStyles",
23057
23072
  "declaration": {
23058
- "name": "foundationModalStyles",
23059
- "module": "src/modal/modal.styles.ts"
23073
+ "name": "foundationMenuItemStyles",
23074
+ "module": "src/menu-item/menu-item.styles.ts"
23060
23075
  }
23061
23076
  }
23062
23077
  ]
23063
23078
  },
23064
23079
  {
23065
23080
  "kind": "javascript-module",
23066
- "path": "src/modal/modal.template.ts",
23081
+ "path": "src/menu-item/menu-item.template.ts",
23067
23082
  "declarations": [
23068
23083
  {
23069
- "kind": "variable",
23070
- "name": "foundationModalTemplate",
23071
- "type": {
23072
- "text": "ViewTemplate<Modal>"
23084
+ "kind": "function",
23085
+ "name": "foundationMenuItemTemplate",
23086
+ "return": {
23087
+ "type": {
23088
+ "text": "ViewTemplate<MenuItem>"
23089
+ }
23073
23090
  },
23074
- "default": "html`\n ${foundationDialogTemplate}\n`"
23091
+ "parameters": [
23092
+ {
23093
+ "name": "context",
23094
+ "type": {
23095
+ "text": "ElementDefinitionContext"
23096
+ }
23097
+ },
23098
+ {
23099
+ "name": "definition",
23100
+ "type": {
23101
+ "text": "MenuItemOptions"
23102
+ }
23103
+ }
23104
+ ]
23075
23105
  }
23076
23106
  ],
23077
23107
  "exports": [
23078
23108
  {
23079
23109
  "kind": "js",
23080
- "name": "foundationModalTemplate",
23110
+ "name": "foundationMenuItemTemplate",
23081
23111
  "declaration": {
23082
- "name": "foundationModalTemplate",
23083
- "module": "src/modal/modal.template.ts"
23112
+ "name": "foundationMenuItemTemplate",
23113
+ "module": "src/menu-item/menu-item.template.ts"
23084
23114
  }
23085
23115
  }
23086
23116
  ]
23087
23117
  },
23088
23118
  {
23089
23119
  "kind": "javascript-module",
23090
- "path": "src/modal/modal.ts",
23120
+ "path": "src/menu-item/menu-item.ts",
23091
23121
  "declarations": [
23092
- {
23093
- "kind": "variable",
23094
- "name": "foundationModalShadowOptions",
23095
- "type": {
23096
- "text": "ShadowRootInit"
23097
- },
23098
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
23099
- },
23100
- {
23101
- "kind": "variable",
23102
- "name": "defaultModalConfig",
23103
- "type": {
23104
- "text": "object"
23105
- },
23106
- "default": "{}"
23107
- },
23108
23122
  {
23109
23123
  "kind": "class",
23110
23124
  "description": "",
23111
- "name": "Modal",
23112
- "members": [
23113
- {
23114
- "kind": "method",
23115
- "name": "show",
23116
- "return": {
23117
- "type": {
23118
- "text": "void"
23119
- }
23120
- },
23121
- "description": "Show the HTMLDialogElement and its contents",
23122
- "inheritedFrom": {
23123
- "name": "<local>_DialogElement",
23124
- "module": "src/dialog/dialog.ts"
23125
- }
23126
- },
23127
- {
23128
- "kind": "field",
23129
- "name": "mainElement",
23130
- "type": {
23131
- "text": "HTMLDialogElement"
23132
- },
23133
- "description": "A reference to the dialog element\nin the component Shadow DOM.",
23134
- "inheritedFrom": {
23135
- "name": "<local>_DialogElement",
23136
- "module": "src/dialog/dialog.ts"
23137
- }
23138
- },
23125
+ "name": "MenuItem",
23126
+ "superclass": {
23127
+ "name": "FASTMenuItem",
23128
+ "package": "@microsoft/fast-components"
23129
+ },
23130
+ "tagName": "%%prefix%%-menu-item",
23131
+ "customElement": true,
23132
+ "attributes": [
23139
23133
  {
23140
- "kind": "field",
23141
- "name": "notification",
23142
23134
  "type": {
23143
- "text": "NotificationStructure"
23135
+ "text": "boolean"
23144
23136
  },
23137
+ "description": "The disabled state of the element.",
23138
+ "fieldName": "disabled",
23145
23139
  "inheritedFrom": {
23146
- "name": "<local>_DialogElement",
23147
- "module": "src/dialog/dialog.ts"
23148
- }
23149
- },
23150
- {
23151
- "kind": "method",
23152
- "name": "notificationChanged",
23153
- "inheritedFrom": {
23154
- "name": "<local>_DialogElement",
23155
- "module": "src/dialog/dialog.ts"
23140
+ "name": "MenuItem",
23141
+ "module": "src/menu-item/menu-item.ts"
23156
23142
  }
23157
23143
  },
23158
23144
  {
23159
- "kind": "field",
23160
- "name": "type",
23145
+ "name": "role",
23161
23146
  "type": {
23162
- "text": "DialogType"
23147
+ "text": "MenuItemRole"
23163
23148
  },
23164
- "default": "'default'",
23149
+ "description": "The role of the element.",
23150
+ "fieldName": "role",
23165
23151
  "inheritedFrom": {
23166
- "name": "<local>_DialogElement",
23167
- "module": "src/dialog/dialog.ts"
23152
+ "name": "MenuItem",
23153
+ "module": "src/menu-item/menu-item.ts"
23168
23154
  }
23169
- },
23155
+ }
23156
+ ],
23157
+ "members": [
23170
23158
  {
23171
23159
  "kind": "field",
23172
- "name": "position",
23160
+ "name": "disabled",
23173
23161
  "type": {
23174
- "text": "DialogPosition"
23162
+ "text": "boolean"
23175
23163
  },
23176
- "default": "'center'",
23164
+ "privacy": "public",
23165
+ "description": "The disabled state of the element.",
23177
23166
  "inheritedFrom": {
23178
- "name": "<local>_DialogElement",
23179
- "module": "src/dialog/dialog.ts"
23167
+ "name": "MenuItem",
23168
+ "module": "src/menu-item/menu-item.ts"
23180
23169
  }
23181
23170
  },
23182
23171
  {
23183
23172
  "kind": "field",
23184
- "name": "showCloseIcon",
23173
+ "name": "expanded",
23185
23174
  "type": {
23186
23175
  "text": "boolean"
23187
23176
  },
23188
- "default": "true",
23189
- "description": "Whether or not to show the close icon",
23177
+ "privacy": "public",
23178
+ "description": "The expanded state of the element.",
23190
23179
  "inheritedFrom": {
23191
- "name": "<local>_DialogElement",
23192
- "module": "src/dialog/dialog.ts"
23180
+ "name": "MenuItem",
23181
+ "module": "src/menu-item/menu-item.ts"
23193
23182
  }
23194
23183
  },
23195
23184
  {
23196
- "kind": "field",
23197
- "name": "onShowCallback",
23198
- "type": {
23199
- "text": "() => void"
23185
+ "kind": "method",
23186
+ "name": "expandedChanged",
23187
+ "privacy": "private",
23188
+ "return": {
23189
+ "type": {
23190
+ "text": "void"
23191
+ }
23200
23192
  },
23201
- "description": "Callback to run *before* HTMLDialogElement is shown",
23193
+ "parameters": [
23194
+ {
23195
+ "name": "oldValue",
23196
+ "type": {
23197
+ "text": "boolean"
23198
+ }
23199
+ }
23200
+ ],
23202
23201
  "inheritedFrom": {
23203
- "name": "<local>_DialogElement",
23204
- "module": "src/dialog/dialog.ts"
23202
+ "name": "MenuItem",
23203
+ "module": "src/menu-item/menu-item.ts"
23205
23204
  }
23206
23205
  },
23207
23206
  {
23208
23207
  "kind": "field",
23209
- "name": "onCloseCallback",
23208
+ "name": "role",
23210
23209
  "type": {
23211
- "text": "() => void"
23210
+ "text": "MenuItemRole"
23212
23211
  },
23213
- "description": "Callback to run *after* HTMLDialogElement is closed",
23212
+ "privacy": "public",
23213
+ "description": "The role of the element.",
23214
23214
  "inheritedFrom": {
23215
- "name": "<local>_DialogElement",
23216
- "module": "src/dialog/dialog.ts"
23215
+ "name": "MenuItem",
23216
+ "module": "src/menu-item/menu-item.ts"
23217
23217
  }
23218
23218
  },
23219
23219
  {
23220
23220
  "kind": "field",
23221
- "name": "open",
23221
+ "name": "checked",
23222
23222
  "type": {
23223
23223
  "text": "boolean"
23224
23224
  },
23225
- "description": "Determine if the dialog is showing or closed.",
23226
- "readonly": true,
23225
+ "privacy": "public",
23226
+ "description": "The checked value of the element.",
23227
23227
  "inheritedFrom": {
23228
- "name": "<local>_DialogElement",
23229
- "module": "src/dialog/dialog.ts"
23228
+ "name": "MenuItem",
23229
+ "module": "src/menu-item/menu-item.ts"
23230
23230
  }
23231
23231
  },
23232
23232
  {
23233
23233
  "kind": "method",
23234
- "name": "close",
23234
+ "name": "checkedChanged",
23235
+ "privacy": "private",
23235
23236
  "return": {
23236
23237
  "type": {
23237
23238
  "text": "void"
23238
23239
  }
23239
23240
  },
23240
- "description": "Remove the HTMLDialogElement from display",
23241
+ "parameters": [
23242
+ {
23243
+ "name": "oldValue",
23244
+ "type": {
23245
+ "text": "boolean"
23246
+ }
23247
+ },
23248
+ {
23249
+ "name": "newValue",
23250
+ "type": {
23251
+ "text": "boolean"
23252
+ }
23253
+ }
23254
+ ],
23241
23255
  "inheritedFrom": {
23242
- "name": "<local>_DialogElement",
23243
- "module": "src/dialog/dialog.ts"
23256
+ "name": "MenuItem",
23257
+ "module": "src/menu-item/menu-item.ts"
23244
23258
  }
23245
23259
  },
23246
23260
  {
23247
- "kind": "method",
23248
- "name": "dismiss",
23249
- "privacy": "public",
23250
- "description": "Dismiss the Dialog from display and calls the dismissing action.",
23261
+ "kind": "field",
23262
+ "name": "focusSubmenuOnLoad",
23263
+ "type": {
23264
+ "text": "boolean"
23265
+ },
23266
+ "privacy": "private",
23267
+ "default": "false",
23251
23268
  "inheritedFrom": {
23252
- "name": "<local>_DialogElement",
23253
- "module": "src/dialog/dialog.ts"
23269
+ "name": "MenuItem",
23270
+ "module": "src/menu-item/menu-item.ts"
23271
+ }
23272
+ },
23273
+ {
23274
+ "kind": "field",
23275
+ "name": "observer",
23276
+ "type": {
23277
+ "text": "MutationObserver | undefined"
23278
+ },
23279
+ "privacy": "private",
23280
+ "inheritedFrom": {
23281
+ "name": "MenuItem",
23282
+ "module": "src/menu-item/menu-item.ts"
23254
23283
  }
23255
23284
  },
23256
23285
  {
23257
23286
  "kind": "method",
23258
- "name": "closeDialog",
23259
- "privacy": "public",
23287
+ "name": "domChildren",
23288
+ "privacy": "private",
23260
23289
  "return": {
23261
23290
  "type": {
23262
- "text": "void"
23291
+ "text": "Element[]"
23263
23292
  }
23264
23293
  },
23265
- "description": "Dismiss the Dialog from display.",
23294
+ "description": "get an array of valid DOM children",
23266
23295
  "inheritedFrom": {
23267
- "name": "<local>_DialogElement",
23268
- "module": "src/dialog/dialog.ts"
23296
+ "name": "MenuItem",
23297
+ "module": "src/menu-item/menu-item.ts"
23269
23298
  }
23270
23299
  },
23271
23300
  {
@@ -23380,97 +23409,86 @@
23380
23409
  }
23381
23410
  }
23382
23411
  ],
23383
- "superclass": {
23384
- "name": "DialogElement",
23385
- "module": "/src/dialog"
23386
- },
23387
- "tagName": "%%prefix%%-modal",
23388
- "customElement": true,
23389
- "attributes": [
23390
- {
23391
- "name": "type",
23392
- "type": {
23393
- "text": "DialogType"
23394
- },
23395
- "default": "'default'",
23396
- "fieldName": "type",
23397
- "inheritedFrom": {
23398
- "name": "<local>_DialogElement",
23399
- "module": "src/dialog/dialog.ts"
23400
- }
23401
- },
23412
+ "events": [
23402
23413
  {
23403
- "name": "position",
23404
- "type": {
23405
- "text": "DialogPosition"
23406
- },
23407
- "default": "'center'",
23408
- "fieldName": "position",
23414
+ "description": "Fires a custom 'expanded-change' event when the expanded state changes",
23415
+ "name": "expanded-change",
23409
23416
  "inheritedFrom": {
23410
- "name": "<local>_DialogElement",
23411
- "module": "src/dialog/dialog.ts"
23417
+ "name": "MenuItem",
23418
+ "module": "src/menu-item/menu-item.ts"
23412
23419
  }
23413
23420
  },
23414
23421
  {
23415
- "name": "show-close-icon",
23416
- "type": {
23417
- "text": "boolean"
23418
- },
23419
- "default": "true",
23420
- "description": "Whether or not to show the close icon",
23421
- "fieldName": "showCloseIcon",
23422
+ "description": "Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked",
23423
+ "name": "change",
23422
23424
  "inheritedFrom": {
23423
- "name": "<local>_DialogElement",
23424
- "module": "src/dialog/dialog.ts"
23425
+ "name": "MenuItem",
23426
+ "module": "src/menu-item/menu-item.ts"
23425
23427
  }
23426
23428
  }
23427
23429
  ]
23428
23430
  },
23429
23431
  {
23430
23432
  "kind": "variable",
23431
- "name": "foundationModal",
23432
- "description": "The Foundation Modal",
23433
+ "name": "foundationMenuItemShadowOptions",
23434
+ "type": {
23435
+ "text": "ShadowRootInit"
23436
+ },
23437
+ "default": "undefined"
23438
+ },
23439
+ {
23440
+ "kind": "variable",
23441
+ "name": "defaultMenuItemConfig",
23442
+ "type": {
23443
+ "text": "object"
23444
+ },
23445
+ "default": "{\n expandCollapseGlyph: `\n <svg\n class=\"expand-collapse-glyph\"\n part=\"expand-collapse-glyph\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z\"\n />\n </svg>\n `,\n}"
23446
+ },
23447
+ {
23448
+ "kind": "variable",
23449
+ "name": "foundationMenuItem",
23450
+ "description": "The Foundation Menu Item",
23433
23451
  "privacy": "public"
23434
23452
  }
23435
23453
  ],
23436
23454
  "exports": [
23437
23455
  {
23438
23456
  "kind": "js",
23439
- "name": "foundationModalShadowOptions",
23457
+ "name": "MenuItem",
23440
23458
  "declaration": {
23441
- "name": "foundationModalShadowOptions",
23442
- "module": "src/modal/modal.ts"
23459
+ "name": "MenuItem",
23460
+ "module": "src/menu-item/menu-item.ts"
23443
23461
  }
23444
23462
  },
23445
23463
  {
23446
23464
  "kind": "js",
23447
- "name": "defaultModalConfig",
23465
+ "name": "foundationMenuItemShadowOptions",
23448
23466
  "declaration": {
23449
- "name": "defaultModalConfig",
23450
- "module": "src/modal/modal.ts"
23467
+ "name": "foundationMenuItemShadowOptions",
23468
+ "module": "src/menu-item/menu-item.ts"
23451
23469
  }
23452
23470
  },
23453
23471
  {
23454
23472
  "kind": "js",
23455
- "name": "Modal",
23473
+ "name": "defaultMenuItemConfig",
23456
23474
  "declaration": {
23457
- "name": "Modal",
23458
- "module": "src/modal/modal.ts"
23475
+ "name": "defaultMenuItemConfig",
23476
+ "module": "src/menu-item/menu-item.ts"
23459
23477
  }
23460
23478
  },
23461
23479
  {
23462
23480
  "kind": "js",
23463
- "name": "foundationModal",
23481
+ "name": "foundationMenuItem",
23464
23482
  "declaration": {
23465
- "name": "foundationModal",
23466
- "module": "src/modal/modal.ts"
23483
+ "name": "foundationMenuItem",
23484
+ "module": "src/menu-item/menu-item.ts"
23467
23485
  }
23468
23486
  }
23469
23487
  ]
23470
23488
  },
23471
23489
  {
23472
23490
  "kind": "javascript-module",
23473
- "path": "src/multiselect/index.ts",
23491
+ "path": "src/modal/index.ts",
23474
23492
  "declarations": [],
23475
23493
  "exports": [
23476
23494
  {
@@ -23478,15 +23496,7 @@
23478
23496
  "name": "*",
23479
23497
  "declaration": {
23480
23498
  "name": "*",
23481
- "package": "./multiselect-consts"
23482
- }
23483
- },
23484
- {
23485
- "kind": "js",
23486
- "name": "*",
23487
- "declaration": {
23488
- "name": "*",
23489
- "package": "./multiselect"
23499
+ "package": "./modal.styles"
23490
23500
  }
23491
23501
  },
23492
23502
  {
@@ -23494,7 +23504,7 @@
23494
23504
  "name": "*",
23495
23505
  "declaration": {
23496
23506
  "name": "*",
23497
- "package": "./multiselect.styles"
23507
+ "package": "./modal.template"
23498
23508
  }
23499
23509
  },
23500
23510
  {
@@ -23502,108 +23512,74 @@
23502
23512
  "name": "*",
23503
23513
  "declaration": {
23504
23514
  "name": "*",
23505
- "package": "./multiselect.template"
23515
+ "package": "./modal"
23506
23516
  }
23507
23517
  }
23508
23518
  ]
23509
23519
  },
23510
23520
  {
23511
23521
  "kind": "javascript-module",
23512
- "path": "src/multiselect/multiselect-consts.ts",
23513
- "declarations": [],
23514
- "exports": []
23515
- },
23516
- {
23517
- "kind": "javascript-module",
23518
- "path": "src/multiselect/multiselect.styles.ts",
23522
+ "path": "src/modal/modal.styles.ts",
23519
23523
  "declarations": [
23520
23524
  {
23521
23525
  "kind": "variable",
23522
- "name": "maxheight",
23526
+ "name": "foundationModalStyles",
23523
23527
  "type": {
23524
- "text": "number"
23528
+ "text": "ElementStyles"
23525
23529
  },
23526
- "default": "230"
23527
- },
23528
- {
23529
- "kind": "variable",
23530
- "name": "multiselectStyles",
23531
- "default": "css`\n .root {\n position: relative;\n width: inherit;\n min-width: 250px;\n }\n\n .control {\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field {\n width: 100%;\n cursor: pointer;\n color: rgb(241 241 241);\n min-height: 40px;\n padding: 0 calc(var(--design-unit) * 2.25px);\n border-width: 0;\n background-color: var(--neutral-fill-input-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field[disabled] {\n cursor: not-allowed;\n opacity: 30%;\n }\n\n #display-field:focus {\n outline: 1px solid var(--accent-fill-rest);\n background: var(--neutral-fill-input-rest);\n border-style: none;\n box-shadow: none;\n }\n\n #display-field:hover:not(:focus):not([disabled]) {\n outline: 1px solid rgb(231 232 232);\n }\n\n button {\n pointer-events: none;\n }\n\n .indicator {\n position: absolute;\n left: calc(100% - 26px);\n padding: 0;\n cursor: pointer;\n }\n\n #arrow-icon {\n width: 16px;\n fill: white;\n transform: rotate(0deg);\n transition: transform 0.2s linear 0s;\n }\n\n #arrow-icon.flipped {\n transform: rotate(180deg);\n }\n\n .disabled-svg {\n pointer-events: none;\n opacity: 30%;\n }\n\n .options {\n display: flex;\n flex-direction: column;\n position: absolute;\n height: max-content;\n overflow-y: hidden;\n margin-top: calc(var(--design-unit) * 1px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);\n border-radius: 4px;\n background: var(--neutral-fill-input-rest);\n width: 100%;\n max-height: 0;\n visibility: hidden;\n transition:\n max-height 0.4s ease 0s,\n visibility 0.4s ease 0s;\n z-index: 999;\n }\n\n .position-above {\n bottom: 100%;\n }\n\n .checkbox-container {\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n scrollbar-width: thin;\n scrollbar-color: var(--neutral-layer-2) var(--neutral-layer-4);\n list-style: none;\n }\n\n .checkbox-container zero-checkbox {\n min-width: fit-content;\n }\n\n .checkbox-container zero-checkbox[disabled],\n .checkbox-container foundation-checkbox[disabled] {\n cursor: not-allowed;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-4);\n }\n\n ::-webkit-scrollbar-thumb {\n width: 8px;\n border-radius: 10px;\n box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);\n background-color: var(--neutral-layer-2);\n border: 3px solid var(--neutral-layer-4);\n }\n\n .visible {\n visibility: visible;\n max-height: ${maxheight.toString()}px;\n }\n\n ::slotted(foundation-checkbox),\n foundation-checkbox {\n border-bottom: 1px solid var(--neutral-layer-4);\n padding: 5px 0 5px 5px;\n margin: 0;\n }\n\n ::slotted(foundation-checkbox:hover),\n foundation-checkbox:hover {\n background-color: var(--neutral-layer-3);\n cursor: pointer;\n }\n\n ::slotted(foundation-checkbox)::part(label),\n foundation-checkbox::part(label) {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .label {\n display: block;\n cursor: pointer;\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-style: normal;\n margin: calc(var(--design-unit) * 2px) 0;\n }\n\n .label-hidden {\n display: none;\n }\n\n ol,\n li {\n margin: 0;\n padding: 0;\n }\n\n .checkbox {\n width: 100%;\n }\n\n .select-all {\n width: 100%;\n }\n\n .display-value {\n position: absolute;\n right: 40px;\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-family: var(--body-font);\n }\n`"
23530
+ "default": "css`\n ${foundationDialogStyles}\n`"
23532
23531
  }
23533
23532
  ],
23534
23533
  "exports": [
23535
23534
  {
23536
23535
  "kind": "js",
23537
- "name": "maxheight",
23538
- "declaration": {
23539
- "name": "maxheight",
23540
- "module": "src/multiselect/multiselect.styles.ts"
23541
- }
23542
- },
23543
- {
23544
- "kind": "js",
23545
- "name": "multiselectStyles",
23536
+ "name": "foundationModalStyles",
23546
23537
  "declaration": {
23547
- "name": "multiselectStyles",
23548
- "module": "src/multiselect/multiselect.styles.ts"
23538
+ "name": "foundationModalStyles",
23539
+ "module": "src/modal/modal.styles.ts"
23549
23540
  }
23550
23541
  }
23551
23542
  ]
23552
23543
  },
23553
23544
  {
23554
23545
  "kind": "javascript-module",
23555
- "path": "src/multiselect/multiselect.template.ts",
23546
+ "path": "src/modal/modal.template.ts",
23556
23547
  "declarations": [
23557
- {
23558
- "kind": "function",
23559
- "name": "getPrefixedMultiselect",
23560
- "parameters": [
23561
- {
23562
- "name": "prefix",
23563
- "default": "'foundation'"
23564
- }
23565
- ]
23566
- },
23567
23548
  {
23568
23549
  "kind": "variable",
23569
- "name": "multiselectTemplate",
23570
- "default": "html<Multiselect>`\n ${getPrefixedMultiselect()}\n`"
23550
+ "name": "foundationModalTemplate",
23551
+ "type": {
23552
+ "text": "ViewTemplate<Modal>"
23553
+ },
23554
+ "default": "html`\n ${foundationDialogTemplate}\n`"
23571
23555
  }
23572
23556
  ],
23573
23557
  "exports": [
23574
23558
  {
23575
23559
  "kind": "js",
23576
- "name": "getPrefixedMultiselect",
23577
- "declaration": {
23578
- "name": "getPrefixedMultiselect",
23579
- "module": "src/multiselect/multiselect.template.ts"
23580
- }
23581
- },
23582
- {
23583
- "kind": "js",
23584
- "name": "multiselectTemplate",
23560
+ "name": "foundationModalTemplate",
23585
23561
  "declaration": {
23586
- "name": "multiselectTemplate",
23587
- "module": "src/multiselect/multiselect.template.ts"
23562
+ "name": "foundationModalTemplate",
23563
+ "module": "src/modal/modal.template.ts"
23588
23564
  }
23589
23565
  }
23590
23566
  ]
23591
23567
  },
23592
23568
  {
23593
23569
  "kind": "javascript-module",
23594
- "path": "src/multiselect/multiselect.ts",
23570
+ "path": "src/modal/modal.ts",
23595
23571
  "declarations": [
23596
23572
  {
23597
23573
  "kind": "variable",
23598
- "name": "foundationMultiselectShadowOptions",
23574
+ "name": "foundationModalShadowOptions",
23599
23575
  "type": {
23600
23576
  "text": "ShadowRootInit"
23601
23577
  },
23602
- "default": "undefined"
23578
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
23603
23579
  },
23604
23580
  {
23605
23581
  "kind": "variable",
23606
- "name": "defaultMultiselectConfig",
23582
+ "name": "defaultModalConfig",
23607
23583
  "type": {
23608
23584
  "text": "object"
23609
23585
  },
@@ -23612,431 +23588,165 @@
23612
23588
  {
23613
23589
  "kind": "class",
23614
23590
  "description": "",
23615
- "name": "Multiselect",
23616
- "members": [
23617
- {
23618
- "kind": "field",
23619
- "name": "name",
23620
- "type": {
23621
- "text": "string"
23622
- },
23623
- "default": "''"
23624
- },
23625
- {
23626
- "kind": "field",
23627
- "name": "autoPosition",
23628
- "type": {
23629
- "text": "boolean"
23630
- },
23631
- "default": "true"
23632
- },
23633
- {
23634
- "kind": "field",
23635
- "name": "all",
23636
- "type": {
23637
- "text": "boolean"
23638
- },
23639
- "default": "true"
23640
- },
23641
- {
23642
- "kind": "field",
23643
- "name": "allSelected",
23644
- "type": {
23645
- "text": "boolean"
23646
- },
23647
- "default": "false"
23648
- },
23649
- {
23650
- "kind": "field",
23651
- "name": "search",
23652
- "type": {
23653
- "text": "boolean"
23654
- },
23655
- "default": "true"
23656
- },
23657
- {
23658
- "kind": "field",
23659
- "name": "disabled",
23660
- "type": {
23661
- "text": "boolean"
23662
- },
23663
- "default": "false"
23664
- },
23665
- {
23666
- "kind": "field",
23667
- "name": "creatable",
23668
- "type": {
23669
- "text": "boolean"
23670
- },
23671
- "default": "false"
23672
- },
23673
- {
23674
- "kind": "field",
23675
- "name": "async",
23676
- "type": {
23677
- "text": "boolean"
23678
- },
23679
- "default": "false"
23680
- },
23681
- {
23682
- "kind": "field",
23683
- "name": "debounce",
23684
- "type": {
23685
- "text": "number"
23686
- },
23687
- "default": "500"
23688
- },
23689
- {
23690
- "kind": "field",
23691
- "name": "filterByContains",
23692
- "type": {
23693
- "text": "boolean"
23694
- },
23695
- "default": "false",
23696
- "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check"
23697
- },
23698
- {
23699
- "kind": "method",
23700
- "name": "debounceChanged",
23701
- "parameters": [
23702
- {
23703
- "name": "oldValue"
23704
- },
23705
- {
23706
- "name": "newValue",
23707
- "type": {
23708
- "text": "number"
23709
- }
23710
- }
23711
- ]
23712
- },
23713
- {
23714
- "kind": "field",
23715
- "name": "debouncedInputHandler"
23716
- },
23717
- {
23718
- "kind": "field",
23719
- "name": "defaultSlottedNodes",
23720
- "type": {
23721
- "text": "Node[]"
23722
- }
23723
- },
23724
- {
23725
- "kind": "field",
23726
- "name": "slottedDatasource",
23727
- "type": {
23728
- "text": "MultiselectDatasource[]"
23729
- }
23730
- },
23731
- {
23732
- "kind": "field",
23733
- "name": "valueFormatter"
23734
- },
23735
- {
23736
- "kind": "field",
23737
- "name": "loading",
23738
- "type": {
23739
- "text": "boolean"
23740
- }
23741
- },
23742
- {
23743
- "kind": "field",
23744
- "name": "filterSearchValue",
23745
- "type": {
23746
- "text": "string"
23747
- },
23748
- "default": "''"
23749
- },
23750
- {
23751
- "kind": "field",
23752
- "name": "clickOutside",
23753
- "privacy": "private"
23754
- },
23755
- {
23756
- "kind": "field",
23757
- "name": "open",
23758
- "type": {
23759
- "text": "boolean"
23760
- },
23761
- "default": "false"
23762
- },
23763
- {
23764
- "kind": "method",
23765
- "name": "openChanged",
23766
- "parameters": [
23767
- {
23768
- "name": "previous",
23769
- "type": {
23770
- "text": "boolean"
23771
- }
23772
- },
23773
- {
23774
- "name": "open",
23775
- "type": {
23776
- "text": "boolean"
23777
- }
23778
- }
23779
- ]
23780
- },
23591
+ "name": "Modal",
23592
+ "members": [
23781
23593
  {
23782
- "kind": "field",
23783
- "name": "options",
23784
- "type": {
23785
- "text": "MultiselectOption[]"
23594
+ "kind": "method",
23595
+ "name": "show",
23596
+ "return": {
23597
+ "type": {
23598
+ "text": "void"
23599
+ }
23786
23600
  },
23787
- "default": "[]"
23601
+ "description": "Show the HTMLDialogElement and its contents",
23602
+ "inheritedFrom": {
23603
+ "name": "<local>_DialogElement",
23604
+ "module": "src/dialog/dialog.ts"
23605
+ }
23788
23606
  },
23789
23607
  {
23790
23608
  "kind": "field",
23791
- "name": "selectedOptions",
23609
+ "name": "mainElement",
23792
23610
  "type": {
23793
- "text": "string[]"
23611
+ "text": "HTMLDialogElement"
23794
23612
  },
23795
- "default": "[]"
23613
+ "description": "A reference to the dialog element\nin the component Shadow DOM.",
23614
+ "inheritedFrom": {
23615
+ "name": "<local>_DialogElement",
23616
+ "module": "src/dialog/dialog.ts"
23617
+ }
23796
23618
  },
23797
23619
  {
23798
23620
  "kind": "field",
23799
- "name": "filteredAvailableOptions",
23621
+ "name": "notification",
23800
23622
  "type": {
23801
- "text": "MultiselectOption[]"
23623
+ "text": "NotificationStructure"
23802
23624
  },
23803
- "default": "[...this.options]"
23625
+ "inheritedFrom": {
23626
+ "name": "<local>_DialogElement",
23627
+ "module": "src/dialog/dialog.ts"
23628
+ }
23804
23629
  },
23805
23630
  {
23806
- "kind": "field",
23807
- "name": "scrollContainer",
23808
- "type": {
23809
- "text": "HTMLElement"
23631
+ "kind": "method",
23632
+ "name": "notificationChanged",
23633
+ "inheritedFrom": {
23634
+ "name": "<local>_DialogElement",
23635
+ "module": "src/dialog/dialog.ts"
23810
23636
  }
23811
23637
  },
23812
23638
  {
23813
23639
  "kind": "field",
23814
- "name": "position",
23640
+ "name": "type",
23815
23641
  "type": {
23816
- "text": "Position"
23642
+ "text": "DialogType"
23817
23643
  },
23818
- "description": "Controls the positioning of the multiselect dropdown. Accepts the following values:\n- Position.ABOVE: Forces the dropdown to always open above the input field.\n- Position.BELOW: Forces the dropdown to always open below the input field."
23644
+ "default": "'default'",
23645
+ "inheritedFrom": {
23646
+ "name": "<local>_DialogElement",
23647
+ "module": "src/dialog/dialog.ts"
23648
+ }
23819
23649
  },
23820
23650
  {
23821
23651
  "kind": "field",
23822
- "name": "onAllSelectedCallback",
23652
+ "name": "position",
23823
23653
  "type": {
23824
- "text": "(allSelected: boolean) => void"
23654
+ "text": "DialogPosition"
23655
+ },
23656
+ "default": "'center'",
23657
+ "inheritedFrom": {
23658
+ "name": "<local>_DialogElement",
23659
+ "module": "src/dialog/dialog.ts"
23825
23660
  }
23826
23661
  },
23827
23662
  {
23828
23663
  "kind": "field",
23829
- "name": "initialisedOptions",
23664
+ "name": "showCloseIcon",
23830
23665
  "type": {
23831
23666
  "text": "boolean"
23832
23667
  },
23833
- "privacy": "private",
23834
- "default": "false"
23668
+ "default": "true",
23669
+ "description": "Whether or not to show the close icon",
23670
+ "inheritedFrom": {
23671
+ "name": "<local>_DialogElement",
23672
+ "module": "src/dialog/dialog.ts"
23673
+ }
23835
23674
  },
23836
23675
  {
23837
23676
  "kind": "field",
23838
- "name": "arrowIcon",
23677
+ "name": "onShowCallback",
23839
23678
  "type": {
23840
- "text": "SVGElement"
23679
+ "text": "() => void"
23680
+ },
23681
+ "description": "Callback to run *before* HTMLDialogElement is shown",
23682
+ "inheritedFrom": {
23683
+ "name": "<local>_DialogElement",
23684
+ "module": "src/dialog/dialog.ts"
23841
23685
  }
23842
23686
  },
23843
23687
  {
23844
23688
  "kind": "field",
23845
- "name": "optionsElement",
23689
+ "name": "onCloseCallback",
23846
23690
  "type": {
23847
- "text": "HTMLElement"
23691
+ "text": "() => void"
23692
+ },
23693
+ "description": "Callback to run *after* HTMLDialogElement is closed",
23694
+ "inheritedFrom": {
23695
+ "name": "<local>_DialogElement",
23696
+ "module": "src/dialog/dialog.ts"
23848
23697
  }
23849
23698
  },
23850
- {
23851
- "kind": "method",
23852
- "name": "toggle"
23853
- },
23854
- {
23855
- "kind": "method",
23856
- "name": "optionsChanged"
23857
- },
23858
- {
23859
- "kind": "method",
23860
- "name": "selectedOptionsChanged"
23861
- },
23862
- {
23863
- "kind": "method",
23864
- "name": "setDropdownPosition",
23865
- "privacy": "private",
23866
- "description": "Sets the dropdown position based on the current configuration."
23867
- },
23868
- {
23869
- "kind": "method",
23870
- "name": "optionGetter",
23871
- "parameters": [
23872
- {
23873
- "name": "option",
23874
- "type": {
23875
- "text": "MultiselectOption"
23876
- }
23877
- }
23878
- ]
23879
- },
23880
- {
23881
- "kind": "method",
23882
- "name": "getItemLabel",
23883
- "parameters": [
23884
- {
23885
- "name": "option",
23886
- "type": {
23887
- "text": "MultiselectOption"
23888
- }
23889
- }
23890
- ]
23891
- },
23892
- {
23893
- "kind": "method",
23894
- "name": "isOptionDisabled",
23895
- "parameters": [
23896
- {
23897
- "name": "option",
23898
- "type": {
23899
- "text": "MultiselectOption"
23900
- }
23901
- }
23902
- ]
23903
- },
23904
- {
23905
- "kind": "field",
23906
- "name": "getDisplayValue",
23907
- "readonly": true
23908
- },
23909
- {
23910
- "kind": "field",
23911
- "name": "getPlaceholder",
23912
- "readonly": true
23913
- },
23914
- {
23915
- "kind": "field",
23916
- "name": "isAllOptionsDisabled",
23917
- "readonly": true
23918
- },
23919
23699
  {
23920
23700
  "kind": "field",
23921
- "name": "showCreatable",
23922
- "readonly": true
23923
- },
23924
- {
23925
- "kind": "method",
23926
- "name": "isOptionSelected",
23927
- "return": {
23928
- "type": {
23929
- "text": "boolean"
23930
- }
23701
+ "name": "open",
23702
+ "type": {
23703
+ "text": "boolean"
23931
23704
  },
23932
- "parameters": [
23933
- {
23934
- "name": "normalizedOption",
23935
- "type": {
23936
- "text": "MultiselectOption"
23937
- }
23938
- }
23939
- ]
23940
- },
23941
- {
23942
- "kind": "method",
23943
- "name": "selectCheckboxOne",
23944
- "parameters": [
23945
- {
23946
- "name": "normalizedOption",
23947
- "type": {
23948
- "text": "MultiselectOption"
23949
- }
23950
- }
23951
- ]
23952
- },
23953
- {
23954
- "kind": "method",
23955
- "name": "checkboxKeyDown",
23956
- "parameters": [
23957
- {
23958
- "name": "normalizedOption",
23959
- "type": {
23960
- "text": "MultiselectOption"
23961
- }
23962
- },
23963
- {
23964
- "name": "event",
23965
- "type": {
23966
- "text": "KeyboardEvent"
23967
- }
23968
- }
23969
- ]
23970
- },
23971
- {
23972
- "kind": "method",
23973
- "name": "getEnabledOptionsCount"
23974
- },
23975
- {
23976
- "kind": "method",
23977
- "name": "selectCheckboxAll"
23978
- },
23979
- {
23980
- "kind": "method",
23981
- "name": "inputHandler"
23982
- },
23983
- {
23984
- "kind": "method",
23985
- "name": "findExactMatchOptions"
23986
- },
23987
- {
23988
- "kind": "method",
23989
- "name": "setFilter"
23990
- },
23991
- {
23992
- "kind": "method",
23993
- "name": "addOption"
23994
- },
23995
- {
23996
- "kind": "method",
23997
- "name": "asyncSetFilter"
23998
- },
23999
- {
24000
- "kind": "method",
24001
- "name": "changeHandler",
24002
- "parameters": [
24003
- {
24004
- "name": "event",
24005
- "type": {
24006
- "text": "Event"
24007
- }
24008
- }
24009
- ]
23705
+ "description": "Determine if the dialog is showing or closed.",
23706
+ "readonly": true,
23707
+ "inheritedFrom": {
23708
+ "name": "<local>_DialogElement",
23709
+ "module": "src/dialog/dialog.ts"
23710
+ }
24010
23711
  },
24011
23712
  {
24012
23713
  "kind": "method",
24013
- "name": "handleClickOutside",
24014
- "privacy": "private",
24015
- "parameters": [
24016
- {
24017
- "name": "event",
24018
- "type": {
24019
- "text": "MouseEvent"
24020
- }
23714
+ "name": "close",
23715
+ "return": {
23716
+ "type": {
23717
+ "text": "void"
24021
23718
  }
24022
- ]
23719
+ },
23720
+ "description": "Remove the HTMLDialogElement from display",
23721
+ "inheritedFrom": {
23722
+ "name": "<local>_DialogElement",
23723
+ "module": "src/dialog/dialog.ts"
23724
+ }
24023
23725
  },
24024
23726
  {
24025
23727
  "kind": "method",
24026
- "name": "keydownHandler",
23728
+ "name": "dismiss",
23729
+ "privacy": "public",
23730
+ "description": "Dismiss the Dialog from display and calls the dismissing action.",
23731
+ "inheritedFrom": {
23732
+ "name": "<local>_DialogElement",
23733
+ "module": "src/dialog/dialog.ts"
23734
+ }
23735
+ },
23736
+ {
23737
+ "kind": "method",
23738
+ "name": "closeDialog",
23739
+ "privacy": "public",
24027
23740
  "return": {
24028
23741
  "type": {
24029
- "text": "boolean | void"
23742
+ "text": "void"
24030
23743
  }
24031
23744
  },
24032
- "parameters": [
24033
- {
24034
- "name": "e",
24035
- "type": {
24036
- "text": "Event & KeyboardEvent"
24037
- }
24038
- }
24039
- ]
23745
+ "description": "Dismiss the Dialog from display.",
23746
+ "inheritedFrom": {
23747
+ "name": "<local>_DialogElement",
23748
+ "module": "src/dialog/dialog.ts"
23749
+ }
24040
23750
  },
24041
23751
  {
24042
23752
  "kind": "field",
@@ -24150,431 +23860,663 @@
24150
23860
  }
24151
23861
  }
24152
23862
  ],
23863
+ "superclass": {
23864
+ "name": "DialogElement",
23865
+ "module": "/src/dialog"
23866
+ },
23867
+ "tagName": "%%prefix%%-modal",
23868
+ "customElement": true,
24153
23869
  "attributes": [
24154
23870
  {
23871
+ "name": "type",
23872
+ "type": {
23873
+ "text": "DialogType"
23874
+ },
23875
+ "default": "'default'",
23876
+ "fieldName": "type",
23877
+ "inheritedFrom": {
23878
+ "name": "<local>_DialogElement",
23879
+ "module": "src/dialog/dialog.ts"
23880
+ }
23881
+ },
23882
+ {
23883
+ "name": "position",
23884
+ "type": {
23885
+ "text": "DialogPosition"
23886
+ },
23887
+ "default": "'center'",
23888
+ "fieldName": "position",
23889
+ "inheritedFrom": {
23890
+ "name": "<local>_DialogElement",
23891
+ "module": "src/dialog/dialog.ts"
23892
+ }
23893
+ },
23894
+ {
23895
+ "name": "show-close-icon",
23896
+ "type": {
23897
+ "text": "boolean"
23898
+ },
23899
+ "default": "true",
23900
+ "description": "Whether or not to show the close icon",
23901
+ "fieldName": "showCloseIcon",
23902
+ "inheritedFrom": {
23903
+ "name": "<local>_DialogElement",
23904
+ "module": "src/dialog/dialog.ts"
23905
+ }
23906
+ }
23907
+ ]
23908
+ },
23909
+ {
23910
+ "kind": "variable",
23911
+ "name": "foundationModal",
23912
+ "description": "The Foundation Modal",
23913
+ "privacy": "public"
23914
+ }
23915
+ ],
23916
+ "exports": [
23917
+ {
23918
+ "kind": "js",
23919
+ "name": "foundationModalShadowOptions",
23920
+ "declaration": {
23921
+ "name": "foundationModalShadowOptions",
23922
+ "module": "src/modal/modal.ts"
23923
+ }
23924
+ },
23925
+ {
23926
+ "kind": "js",
23927
+ "name": "defaultModalConfig",
23928
+ "declaration": {
23929
+ "name": "defaultModalConfig",
23930
+ "module": "src/modal/modal.ts"
23931
+ }
23932
+ },
23933
+ {
23934
+ "kind": "js",
23935
+ "name": "Modal",
23936
+ "declaration": {
23937
+ "name": "Modal",
23938
+ "module": "src/modal/modal.ts"
23939
+ }
23940
+ },
23941
+ {
23942
+ "kind": "js",
23943
+ "name": "foundationModal",
23944
+ "declaration": {
23945
+ "name": "foundationModal",
23946
+ "module": "src/modal/modal.ts"
23947
+ }
23948
+ }
23949
+ ]
23950
+ },
23951
+ {
23952
+ "kind": "javascript-module",
23953
+ "path": "src/multiselect/index.ts",
23954
+ "declarations": [],
23955
+ "exports": [
23956
+ {
23957
+ "kind": "js",
23958
+ "name": "*",
23959
+ "declaration": {
23960
+ "name": "*",
23961
+ "package": "./multiselect-consts"
23962
+ }
23963
+ },
23964
+ {
23965
+ "kind": "js",
23966
+ "name": "*",
23967
+ "declaration": {
23968
+ "name": "*",
23969
+ "package": "./multiselect"
23970
+ }
23971
+ },
23972
+ {
23973
+ "kind": "js",
23974
+ "name": "*",
23975
+ "declaration": {
23976
+ "name": "*",
23977
+ "package": "./multiselect.styles"
23978
+ }
23979
+ },
23980
+ {
23981
+ "kind": "js",
23982
+ "name": "*",
23983
+ "declaration": {
23984
+ "name": "*",
23985
+ "package": "./multiselect.template"
23986
+ }
23987
+ }
23988
+ ]
23989
+ },
23990
+ {
23991
+ "kind": "javascript-module",
23992
+ "path": "src/multiselect/multiselect-consts.ts",
23993
+ "declarations": [],
23994
+ "exports": []
23995
+ },
23996
+ {
23997
+ "kind": "javascript-module",
23998
+ "path": "src/multiselect/multiselect.styles.ts",
23999
+ "declarations": [
24000
+ {
24001
+ "kind": "variable",
24002
+ "name": "maxheight",
24003
+ "type": {
24004
+ "text": "number"
24005
+ },
24006
+ "default": "230"
24007
+ },
24008
+ {
24009
+ "kind": "variable",
24010
+ "name": "multiselectStyles",
24011
+ "default": "css`\n .root {\n position: relative;\n width: inherit;\n min-width: 250px;\n }\n\n .control {\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field {\n width: 100%;\n cursor: pointer;\n color: rgb(241 241 241);\n min-height: 40px;\n padding: 0 calc(var(--design-unit) * 2.25px);\n border-width: 0;\n background-color: var(--neutral-fill-input-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field[disabled] {\n cursor: not-allowed;\n opacity: 30%;\n }\n\n #display-field:focus {\n outline: 1px solid var(--accent-fill-rest);\n background: var(--neutral-fill-input-rest);\n border-style: none;\n box-shadow: none;\n }\n\n #display-field:hover:not(:focus):not([disabled]) {\n outline: 1px solid rgb(231 232 232);\n }\n\n button {\n pointer-events: none;\n }\n\n .indicator {\n position: absolute;\n left: calc(100% - 26px);\n padding: 0;\n cursor: pointer;\n }\n\n #arrow-icon {\n width: 16px;\n fill: white;\n transform: rotate(0deg);\n transition: transform 0.2s linear 0s;\n }\n\n #arrow-icon.flipped {\n transform: rotate(180deg);\n }\n\n .disabled-svg {\n pointer-events: none;\n opacity: 30%;\n }\n\n .options {\n display: flex;\n flex-direction: column;\n position: absolute;\n height: max-content;\n overflow-y: hidden;\n margin-top: calc(var(--design-unit) * 1px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);\n border-radius: 4px;\n background: var(--neutral-fill-input-rest);\n width: 100%;\n max-height: 0;\n visibility: hidden;\n transition:\n max-height 0.4s ease 0s,\n visibility 0.4s ease 0s;\n z-index: 999;\n }\n\n .position-above {\n bottom: 100%;\n }\n\n .checkbox-container {\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n scrollbar-width: thin;\n scrollbar-color: var(--neutral-layer-2) var(--neutral-layer-4);\n list-style: none;\n }\n\n .checkbox-container zero-checkbox {\n min-width: fit-content;\n }\n\n .checkbox-container zero-checkbox[disabled],\n .checkbox-container foundation-checkbox[disabled] {\n cursor: not-allowed;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-4);\n }\n\n ::-webkit-scrollbar-thumb {\n width: 8px;\n border-radius: 10px;\n box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);\n background-color: var(--neutral-layer-2);\n border: 3px solid var(--neutral-layer-4);\n }\n\n .visible {\n visibility: visible;\n max-height: ${maxheight.toString()}px;\n }\n\n ::slotted(foundation-checkbox),\n foundation-checkbox {\n border-bottom: 1px solid var(--neutral-layer-4);\n padding: 5px 0 5px 5px;\n margin: 0;\n }\n\n ::slotted(foundation-checkbox:hover),\n foundation-checkbox:hover {\n background-color: var(--neutral-layer-3);\n cursor: pointer;\n }\n\n ::slotted(foundation-checkbox)::part(label),\n foundation-checkbox::part(label) {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .label {\n display: block;\n cursor: pointer;\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-style: normal;\n margin: calc(var(--design-unit) * 2px) 0;\n }\n\n .label-hidden {\n display: none;\n }\n\n ol,\n li {\n margin: 0;\n padding: 0;\n }\n\n .checkbox {\n width: 100%;\n }\n\n .select-all {\n width: 100%;\n }\n\n .display-value {\n position: absolute;\n right: 40px;\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-family: var(--body-font);\n }\n`"
24012
+ }
24013
+ ],
24014
+ "exports": [
24015
+ {
24016
+ "kind": "js",
24017
+ "name": "maxheight",
24018
+ "declaration": {
24019
+ "name": "maxheight",
24020
+ "module": "src/multiselect/multiselect.styles.ts"
24021
+ }
24022
+ },
24023
+ {
24024
+ "kind": "js",
24025
+ "name": "multiselectStyles",
24026
+ "declaration": {
24027
+ "name": "multiselectStyles",
24028
+ "module": "src/multiselect/multiselect.styles.ts"
24029
+ }
24030
+ }
24031
+ ]
24032
+ },
24033
+ {
24034
+ "kind": "javascript-module",
24035
+ "path": "src/multiselect/multiselect.template.ts",
24036
+ "declarations": [
24037
+ {
24038
+ "kind": "function",
24039
+ "name": "getPrefixedMultiselect",
24040
+ "parameters": [
24041
+ {
24042
+ "name": "prefix",
24043
+ "default": "'foundation'"
24044
+ }
24045
+ ]
24046
+ },
24047
+ {
24048
+ "kind": "variable",
24049
+ "name": "multiselectTemplate",
24050
+ "default": "html<Multiselect>`\n ${getPrefixedMultiselect()}\n`"
24051
+ }
24052
+ ],
24053
+ "exports": [
24054
+ {
24055
+ "kind": "js",
24056
+ "name": "getPrefixedMultiselect",
24057
+ "declaration": {
24058
+ "name": "getPrefixedMultiselect",
24059
+ "module": "src/multiselect/multiselect.template.ts"
24060
+ }
24061
+ },
24062
+ {
24063
+ "kind": "js",
24064
+ "name": "multiselectTemplate",
24065
+ "declaration": {
24066
+ "name": "multiselectTemplate",
24067
+ "module": "src/multiselect/multiselect.template.ts"
24068
+ }
24069
+ }
24070
+ ]
24071
+ },
24072
+ {
24073
+ "kind": "javascript-module",
24074
+ "path": "src/multiselect/multiselect.ts",
24075
+ "declarations": [
24076
+ {
24077
+ "kind": "variable",
24078
+ "name": "foundationMultiselectShadowOptions",
24079
+ "type": {
24080
+ "text": "ShadowRootInit"
24081
+ },
24082
+ "default": "undefined"
24083
+ },
24084
+ {
24085
+ "kind": "variable",
24086
+ "name": "defaultMultiselectConfig",
24087
+ "type": {
24088
+ "text": "object"
24089
+ },
24090
+ "default": "{}"
24091
+ },
24092
+ {
24093
+ "kind": "class",
24094
+ "description": "",
24095
+ "name": "Multiselect",
24096
+ "members": [
24097
+ {
24098
+ "kind": "field",
24155
24099
  "name": "name",
24156
24100
  "type": {
24157
24101
  "text": "string"
24158
24102
  },
24159
- "default": "''",
24160
- "fieldName": "name"
24103
+ "default": "''"
24161
24104
  },
24162
24105
  {
24163
- "name": "auto-position",
24106
+ "kind": "field",
24107
+ "name": "autoPosition",
24164
24108
  "type": {
24165
24109
  "text": "boolean"
24166
24110
  },
24167
- "default": "true",
24168
- "fieldName": "autoPosition"
24111
+ "default": "true"
24169
24112
  },
24170
24113
  {
24114
+ "kind": "field",
24115
+ "name": "all",
24171
24116
  "type": {
24172
24117
  "text": "boolean"
24173
24118
  },
24174
- "default": "true",
24175
- "fieldName": "all"
24119
+ "default": "true"
24176
24120
  },
24177
24121
  {
24122
+ "kind": "field",
24123
+ "name": "allSelected",
24178
24124
  "type": {
24179
24125
  "text": "boolean"
24180
24126
  },
24181
- "default": "false",
24182
- "fieldName": "allSelected"
24127
+ "default": "false"
24183
24128
  },
24184
24129
  {
24130
+ "kind": "field",
24131
+ "name": "search",
24185
24132
  "type": {
24186
24133
  "text": "boolean"
24187
24134
  },
24188
- "default": "true",
24189
- "fieldName": "search"
24135
+ "default": "true"
24190
24136
  },
24191
24137
  {
24138
+ "kind": "field",
24139
+ "name": "disabled",
24192
24140
  "type": {
24193
24141
  "text": "boolean"
24194
24142
  },
24195
- "default": "false",
24196
- "fieldName": "disabled"
24143
+ "default": "false"
24197
24144
  },
24198
24145
  {
24146
+ "kind": "field",
24147
+ "name": "creatable",
24199
24148
  "type": {
24200
24149
  "text": "boolean"
24201
24150
  },
24202
- "default": "false",
24203
- "fieldName": "creatable"
24151
+ "default": "false"
24204
24152
  },
24205
24153
  {
24154
+ "kind": "field",
24155
+ "name": "async",
24206
24156
  "type": {
24207
24157
  "text": "boolean"
24208
24158
  },
24209
- "default": "false",
24210
- "fieldName": "async"
24159
+ "default": "false"
24211
24160
  },
24212
24161
  {
24162
+ "kind": "field",
24213
24163
  "name": "debounce",
24214
24164
  "type": {
24215
24165
  "text": "number"
24216
24166
  },
24217
- "default": "DEBOUNCE_TIME",
24218
- "resolveInitializer": {
24219
- "module": "src/multiselect/multiselect.ts"
24220
- },
24221
- "fieldName": "debounce"
24167
+ "default": "500"
24222
24168
  },
24223
24169
  {
24224
- "name": "filter-by-contains",
24170
+ "kind": "field",
24171
+ "name": "filterByContains",
24225
24172
  "type": {
24226
24173
  "text": "boolean"
24227
24174
  },
24228
24175
  "default": "false",
24229
- "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check",
24230
- "fieldName": "filterByContains"
24176
+ "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check"
24231
24177
  },
24232
24178
  {
24233
- "name": "position",
24179
+ "kind": "method",
24180
+ "name": "debounceChanged",
24181
+ "parameters": [
24182
+ {
24183
+ "name": "oldValue"
24184
+ },
24185
+ {
24186
+ "name": "newValue",
24187
+ "type": {
24188
+ "text": "number"
24189
+ }
24190
+ }
24191
+ ]
24192
+ },
24193
+ {
24194
+ "kind": "field",
24195
+ "name": "debouncedInputHandler"
24196
+ },
24197
+ {
24198
+ "kind": "field",
24199
+ "name": "defaultSlottedNodes",
24234
24200
  "type": {
24235
- "text": "Position"
24201
+ "text": "Node[]"
24202
+ }
24203
+ },
24204
+ {
24205
+ "kind": "field",
24206
+ "name": "slottedDatasource",
24207
+ "type": {
24208
+ "text": "MultiselectDatasource[]"
24209
+ }
24210
+ },
24211
+ {
24212
+ "kind": "field",
24213
+ "name": "valueFormatter"
24214
+ },
24215
+ {
24216
+ "kind": "field",
24217
+ "name": "loading",
24218
+ "type": {
24219
+ "text": "boolean"
24220
+ }
24221
+ },
24222
+ {
24223
+ "kind": "field",
24224
+ "name": "filterSearchValue",
24225
+ "type": {
24226
+ "text": "string"
24236
24227
  },
24237
- "description": "Controls the positioning of the multiselect dropdown. Accepts the following values:\n- Position.ABOVE: Forces the dropdown to always open above the input field.\n- Position.BELOW: Forces the dropdown to always open below the input field.",
24238
- "fieldName": "position"
24239
- }
24240
- ],
24241
- "superclass": {
24242
- "name": "FoundationElement",
24243
- "package": "@microsoft/fast-foundation"
24244
- },
24245
- "tagName": "%%prefix%%-multiselect",
24246
- "customElement": true
24247
- },
24248
- {
24249
- "kind": "variable",
24250
- "name": "foundationMultiselect"
24251
- }
24252
- ],
24253
- "exports": [
24254
- {
24255
- "kind": "js",
24256
- "name": "foundationMultiselectShadowOptions",
24257
- "declaration": {
24258
- "name": "foundationMultiselectShadowOptions",
24259
- "module": "src/multiselect/multiselect.ts"
24260
- }
24261
- },
24262
- {
24263
- "kind": "js",
24264
- "name": "defaultMultiselectConfig",
24265
- "declaration": {
24266
- "name": "defaultMultiselectConfig",
24267
- "module": "src/multiselect/multiselect.ts"
24268
- }
24269
- },
24270
- {
24271
- "kind": "js",
24272
- "name": "Multiselect",
24273
- "declaration": {
24274
- "name": "Multiselect",
24275
- "module": "src/multiselect/multiselect.ts"
24276
- }
24277
- },
24278
- {
24279
- "kind": "js",
24280
- "name": "foundationMultiselect",
24281
- "declaration": {
24282
- "name": "foundationMultiselect",
24283
- "module": "src/multiselect/multiselect.ts"
24284
- }
24285
- }
24286
- ]
24287
- },
24288
- {
24289
- "kind": "javascript-module",
24290
- "path": "src/menu-item/index.ts",
24291
- "declarations": [],
24292
- "exports": [
24293
- {
24294
- "kind": "js",
24295
- "name": "*",
24296
- "declaration": {
24297
- "name": "*",
24298
- "package": "./menu-item.template"
24299
- }
24300
- },
24301
- {
24302
- "kind": "js",
24303
- "name": "*",
24304
- "declaration": {
24305
- "name": "*",
24306
- "package": "./menu-item.styles"
24307
- }
24308
- },
24309
- {
24310
- "kind": "js",
24311
- "name": "*",
24312
- "declaration": {
24313
- "name": "*",
24314
- "package": "./menu-item"
24315
- }
24316
- }
24317
- ]
24318
- },
24319
- {
24320
- "kind": "javascript-module",
24321
- "path": "src/menu-item/menu-item.styles.ts",
24322
- "declarations": [
24323
- {
24324
- "kind": "function",
24325
- "name": "foundationMenuItemStyles",
24326
- "return": {
24327
- "type": {
24328
- "text": "ElementStyles"
24329
- }
24330
- },
24331
- "parameters": [
24228
+ "default": "''"
24229
+ },
24230
+ {
24231
+ "kind": "field",
24232
+ "name": "clickOutside",
24233
+ "privacy": "private"
24234
+ },
24235
+ {
24236
+ "kind": "field",
24237
+ "name": "open",
24238
+ "type": {
24239
+ "text": "boolean"
24240
+ },
24241
+ "default": "false"
24242
+ },
24243
+ {
24244
+ "kind": "method",
24245
+ "name": "openChanged",
24246
+ "parameters": [
24247
+ {
24248
+ "name": "previous",
24249
+ "type": {
24250
+ "text": "boolean"
24251
+ }
24252
+ },
24253
+ {
24254
+ "name": "open",
24255
+ "type": {
24256
+ "text": "boolean"
24257
+ }
24258
+ }
24259
+ ]
24260
+ },
24332
24261
  {
24333
- "name": "context",
24262
+ "kind": "field",
24263
+ "name": "options",
24334
24264
  "type": {
24335
- "text": "ElementDefinitionContext"
24336
- }
24265
+ "text": "MultiselectOption[]"
24266
+ },
24267
+ "default": "[]"
24337
24268
  },
24338
24269
  {
24339
- "name": "definition",
24270
+ "kind": "field",
24271
+ "name": "selectedOptions",
24340
24272
  "type": {
24341
- "text": "MenuItemOptions"
24342
- }
24343
- }
24344
- ]
24345
- }
24346
- ],
24347
- "exports": [
24348
- {
24349
- "kind": "js",
24350
- "name": "foundationMenuItemStyles",
24351
- "declaration": {
24352
- "name": "foundationMenuItemStyles",
24353
- "module": "src/menu-item/menu-item.styles.ts"
24354
- }
24355
- }
24356
- ]
24357
- },
24358
- {
24359
- "kind": "javascript-module",
24360
- "path": "src/menu-item/menu-item.template.ts",
24361
- "declarations": [
24362
- {
24363
- "kind": "function",
24364
- "name": "foundationMenuItemTemplate",
24365
- "return": {
24366
- "type": {
24367
- "text": "ViewTemplate<MenuItem>"
24368
- }
24369
- },
24370
- "parameters": [
24273
+ "text": "string[]"
24274
+ },
24275
+ "default": "[]"
24276
+ },
24371
24277
  {
24372
- "name": "context",
24278
+ "kind": "field",
24279
+ "name": "filteredAvailableOptions",
24373
24280
  "type": {
24374
- "text": "ElementDefinitionContext"
24375
- }
24281
+ "text": "MultiselectOption[]"
24282
+ },
24283
+ "default": "[...this.options]"
24376
24284
  },
24377
24285
  {
24378
- "name": "definition",
24286
+ "kind": "field",
24287
+ "name": "scrollContainer",
24379
24288
  "type": {
24380
- "text": "MenuItemOptions"
24289
+ "text": "HTMLElement"
24381
24290
  }
24382
- }
24383
- ]
24384
- }
24385
- ],
24386
- "exports": [
24387
- {
24388
- "kind": "js",
24389
- "name": "foundationMenuItemTemplate",
24390
- "declaration": {
24391
- "name": "foundationMenuItemTemplate",
24392
- "module": "src/menu-item/menu-item.template.ts"
24393
- }
24394
- }
24395
- ]
24396
- },
24397
- {
24398
- "kind": "javascript-module",
24399
- "path": "src/menu-item/menu-item.ts",
24400
- "declarations": [
24401
- {
24402
- "kind": "class",
24403
- "description": "",
24404
- "name": "MenuItem",
24405
- "superclass": {
24406
- "name": "FASTMenuItem",
24407
- "package": "@microsoft/fast-components"
24408
- },
24409
- "tagName": "%%prefix%%-menu-item",
24410
- "customElement": true,
24411
- "attributes": [
24291
+ },
24412
24292
  {
24293
+ "kind": "field",
24294
+ "name": "position",
24413
24295
  "type": {
24414
- "text": "boolean"
24296
+ "text": "Position"
24415
24297
  },
24416
- "description": "The disabled state of the element.",
24417
- "fieldName": "disabled",
24418
- "inheritedFrom": {
24419
- "name": "MenuItem",
24420
- "module": "src/menu-item/menu-item.ts"
24421
- }
24298
+ "description": "Controls the positioning of the multiselect dropdown. Accepts the following values:\n- Position.ABOVE: Forces the dropdown to always open above the input field.\n- Position.BELOW: Forces the dropdown to always open below the input field."
24422
24299
  },
24423
24300
  {
24424
- "name": "role",
24301
+ "kind": "field",
24302
+ "name": "onAllSelectedCallback",
24425
24303
  "type": {
24426
- "text": "MenuItemRole"
24427
- },
24428
- "description": "The role of the element.",
24429
- "fieldName": "role",
24430
- "inheritedFrom": {
24431
- "name": "MenuItem",
24432
- "module": "src/menu-item/menu-item.ts"
24304
+ "text": "(allSelected: boolean) => void"
24433
24305
  }
24434
- }
24435
- ],
24436
- "members": [
24306
+ },
24437
24307
  {
24438
24308
  "kind": "field",
24439
- "name": "disabled",
24309
+ "name": "initialisedOptions",
24440
24310
  "type": {
24441
24311
  "text": "boolean"
24442
24312
  },
24443
- "privacy": "public",
24444
- "description": "The disabled state of the element.",
24445
- "inheritedFrom": {
24446
- "name": "MenuItem",
24447
- "module": "src/menu-item/menu-item.ts"
24313
+ "privacy": "private",
24314
+ "default": "false"
24315
+ },
24316
+ {
24317
+ "kind": "field",
24318
+ "name": "arrowIcon",
24319
+ "type": {
24320
+ "text": "SVGElement"
24448
24321
  }
24449
24322
  },
24450
24323
  {
24451
24324
  "kind": "field",
24452
- "name": "expanded",
24325
+ "name": "optionsElement",
24453
24326
  "type": {
24454
- "text": "boolean"
24455
- },
24456
- "privacy": "public",
24457
- "description": "The expanded state of the element.",
24458
- "inheritedFrom": {
24459
- "name": "MenuItem",
24460
- "module": "src/menu-item/menu-item.ts"
24327
+ "text": "HTMLElement"
24461
24328
  }
24462
24329
  },
24463
24330
  {
24464
24331
  "kind": "method",
24465
- "name": "expandedChanged",
24332
+ "name": "toggle"
24333
+ },
24334
+ {
24335
+ "kind": "method",
24336
+ "name": "optionsChanged"
24337
+ },
24338
+ {
24339
+ "kind": "method",
24340
+ "name": "selectedOptionsChanged"
24341
+ },
24342
+ {
24343
+ "kind": "method",
24344
+ "name": "setDropdownPosition",
24466
24345
  "privacy": "private",
24467
- "return": {
24468
- "type": {
24469
- "text": "void"
24346
+ "description": "Sets the dropdown position based on the current configuration."
24347
+ },
24348
+ {
24349
+ "kind": "method",
24350
+ "name": "optionGetter",
24351
+ "parameters": [
24352
+ {
24353
+ "name": "option",
24354
+ "type": {
24355
+ "text": "MultiselectOption"
24356
+ }
24470
24357
  }
24471
- },
24358
+ ]
24359
+ },
24360
+ {
24361
+ "kind": "method",
24362
+ "name": "getItemLabel",
24472
24363
  "parameters": [
24473
24364
  {
24474
- "name": "oldValue",
24365
+ "name": "option",
24475
24366
  "type": {
24476
- "text": "boolean"
24367
+ "text": "MultiselectOption"
24477
24368
  }
24478
24369
  }
24479
- ],
24480
- "inheritedFrom": {
24481
- "name": "MenuItem",
24482
- "module": "src/menu-item/menu-item.ts"
24483
- }
24370
+ ]
24371
+ },
24372
+ {
24373
+ "kind": "method",
24374
+ "name": "isOptionDisabled",
24375
+ "parameters": [
24376
+ {
24377
+ "name": "option",
24378
+ "type": {
24379
+ "text": "MultiselectOption"
24380
+ }
24381
+ }
24382
+ ]
24484
24383
  },
24485
24384
  {
24486
24385
  "kind": "field",
24487
- "name": "role",
24488
- "type": {
24489
- "text": "MenuItemRole"
24490
- },
24491
- "privacy": "public",
24492
- "description": "The role of the element.",
24493
- "inheritedFrom": {
24494
- "name": "MenuItem",
24495
- "module": "src/menu-item/menu-item.ts"
24496
- }
24386
+ "name": "getDisplayValue",
24387
+ "readonly": true
24497
24388
  },
24498
24389
  {
24499
24390
  "kind": "field",
24500
- "name": "checked",
24501
- "type": {
24502
- "text": "boolean"
24391
+ "name": "getPlaceholder",
24392
+ "readonly": true
24393
+ },
24394
+ {
24395
+ "kind": "field",
24396
+ "name": "isAllOptionsDisabled",
24397
+ "readonly": true
24398
+ },
24399
+ {
24400
+ "kind": "field",
24401
+ "name": "showCreatable",
24402
+ "readonly": true
24403
+ },
24404
+ {
24405
+ "kind": "method",
24406
+ "name": "isOptionSelected",
24407
+ "return": {
24408
+ "type": {
24409
+ "text": "boolean"
24410
+ }
24503
24411
  },
24504
- "privacy": "public",
24505
- "description": "The checked value of the element.",
24506
- "inheritedFrom": {
24507
- "name": "MenuItem",
24508
- "module": "src/menu-item/menu-item.ts"
24509
- }
24412
+ "parameters": [
24413
+ {
24414
+ "name": "normalizedOption",
24415
+ "type": {
24416
+ "text": "MultiselectOption"
24417
+ }
24418
+ }
24419
+ ]
24420
+ },
24421
+ {
24422
+ "kind": "method",
24423
+ "name": "selectCheckboxOne",
24424
+ "parameters": [
24425
+ {
24426
+ "name": "normalizedOption",
24427
+ "type": {
24428
+ "text": "MultiselectOption"
24429
+ }
24430
+ }
24431
+ ]
24510
24432
  },
24511
24433
  {
24512
24434
  "kind": "method",
24513
- "name": "checkedChanged",
24514
- "privacy": "private",
24515
- "return": {
24516
- "type": {
24517
- "text": "void"
24518
- }
24519
- },
24435
+ "name": "checkboxKeyDown",
24520
24436
  "parameters": [
24521
24437
  {
24522
- "name": "oldValue",
24438
+ "name": "normalizedOption",
24523
24439
  "type": {
24524
- "text": "boolean"
24440
+ "text": "MultiselectOption"
24525
24441
  }
24526
24442
  },
24527
24443
  {
24528
- "name": "newValue",
24444
+ "name": "event",
24529
24445
  "type": {
24530
- "text": "boolean"
24446
+ "text": "KeyboardEvent"
24531
24447
  }
24532
24448
  }
24533
- ],
24534
- "inheritedFrom": {
24535
- "name": "MenuItem",
24536
- "module": "src/menu-item/menu-item.ts"
24537
- }
24449
+ ]
24538
24450
  },
24539
24451
  {
24540
- "kind": "field",
24541
- "name": "focusSubmenuOnLoad",
24542
- "type": {
24543
- "text": "boolean"
24544
- },
24545
- "privacy": "private",
24546
- "default": "false",
24547
- "inheritedFrom": {
24548
- "name": "MenuItem",
24549
- "module": "src/menu-item/menu-item.ts"
24550
- }
24452
+ "kind": "method",
24453
+ "name": "getEnabledOptionsCount"
24551
24454
  },
24552
24455
  {
24553
- "kind": "field",
24554
- "name": "observer",
24555
- "type": {
24556
- "text": "MutationObserver | undefined"
24557
- },
24558
- "privacy": "private",
24559
- "inheritedFrom": {
24560
- "name": "MenuItem",
24561
- "module": "src/menu-item/menu-item.ts"
24562
- }
24456
+ "kind": "method",
24457
+ "name": "selectCheckboxAll"
24563
24458
  },
24564
24459
  {
24565
24460
  "kind": "method",
24566
- "name": "domChildren",
24461
+ "name": "inputHandler"
24462
+ },
24463
+ {
24464
+ "kind": "method",
24465
+ "name": "findExactMatchOptions"
24466
+ },
24467
+ {
24468
+ "kind": "method",
24469
+ "name": "setFilter"
24470
+ },
24471
+ {
24472
+ "kind": "method",
24473
+ "name": "addOption"
24474
+ },
24475
+ {
24476
+ "kind": "method",
24477
+ "name": "asyncSetFilter"
24478
+ },
24479
+ {
24480
+ "kind": "method",
24481
+ "name": "changeHandler",
24482
+ "parameters": [
24483
+ {
24484
+ "name": "event",
24485
+ "type": {
24486
+ "text": "Event"
24487
+ }
24488
+ }
24489
+ ]
24490
+ },
24491
+ {
24492
+ "kind": "method",
24493
+ "name": "handleClickOutside",
24567
24494
  "privacy": "private",
24495
+ "parameters": [
24496
+ {
24497
+ "name": "event",
24498
+ "type": {
24499
+ "text": "MouseEvent"
24500
+ }
24501
+ }
24502
+ ]
24503
+ },
24504
+ {
24505
+ "kind": "method",
24506
+ "name": "keydownHandler",
24568
24507
  "return": {
24569
24508
  "type": {
24570
- "text": "Element[]"
24509
+ "text": "boolean | void"
24571
24510
  }
24572
24511
  },
24573
- "description": "get an array of valid DOM children",
24574
- "inheritedFrom": {
24575
- "name": "MenuItem",
24576
- "module": "src/menu-item/menu-item.ts"
24577
- }
24512
+ "parameters": [
24513
+ {
24514
+ "name": "e",
24515
+ "type": {
24516
+ "text": "Event & KeyboardEvent"
24517
+ }
24518
+ }
24519
+ ]
24578
24520
  },
24579
24521
  {
24580
24522
  "kind": "field",
@@ -24688,79 +24630,137 @@
24688
24630
  }
24689
24631
  }
24690
24632
  ],
24691
- "events": [
24633
+ "attributes": [
24692
24634
  {
24693
- "description": "Fires a custom 'expanded-change' event when the expanded state changes",
24694
- "name": "expanded-change",
24695
- "inheritedFrom": {
24696
- "name": "MenuItem",
24697
- "module": "src/menu-item/menu-item.ts"
24698
- }
24635
+ "name": "name",
24636
+ "type": {
24637
+ "text": "string"
24638
+ },
24639
+ "default": "''",
24640
+ "fieldName": "name"
24699
24641
  },
24700
24642
  {
24701
- "description": "Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked",
24702
- "name": "change",
24703
- "inheritedFrom": {
24704
- "name": "MenuItem",
24705
- "module": "src/menu-item/menu-item.ts"
24706
- }
24643
+ "name": "auto-position",
24644
+ "type": {
24645
+ "text": "boolean"
24646
+ },
24647
+ "default": "true",
24648
+ "fieldName": "autoPosition"
24649
+ },
24650
+ {
24651
+ "type": {
24652
+ "text": "boolean"
24653
+ },
24654
+ "default": "true",
24655
+ "fieldName": "all"
24656
+ },
24657
+ {
24658
+ "type": {
24659
+ "text": "boolean"
24660
+ },
24661
+ "default": "false",
24662
+ "fieldName": "allSelected"
24663
+ },
24664
+ {
24665
+ "type": {
24666
+ "text": "boolean"
24667
+ },
24668
+ "default": "true",
24669
+ "fieldName": "search"
24670
+ },
24671
+ {
24672
+ "type": {
24673
+ "text": "boolean"
24674
+ },
24675
+ "default": "false",
24676
+ "fieldName": "disabled"
24677
+ },
24678
+ {
24679
+ "type": {
24680
+ "text": "boolean"
24681
+ },
24682
+ "default": "false",
24683
+ "fieldName": "creatable"
24684
+ },
24685
+ {
24686
+ "type": {
24687
+ "text": "boolean"
24688
+ },
24689
+ "default": "false",
24690
+ "fieldName": "async"
24691
+ },
24692
+ {
24693
+ "name": "debounce",
24694
+ "type": {
24695
+ "text": "number"
24696
+ },
24697
+ "default": "DEBOUNCE_TIME",
24698
+ "resolveInitializer": {
24699
+ "module": "src/multiselect/multiselect.ts"
24700
+ },
24701
+ "fieldName": "debounce"
24702
+ },
24703
+ {
24704
+ "name": "filter-by-contains",
24705
+ "type": {
24706
+ "text": "boolean"
24707
+ },
24708
+ "default": "false",
24709
+ "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check",
24710
+ "fieldName": "filterByContains"
24711
+ },
24712
+ {
24713
+ "name": "position",
24714
+ "type": {
24715
+ "text": "Position"
24716
+ },
24717
+ "description": "Controls the positioning of the multiselect dropdown. Accepts the following values:\n- Position.ABOVE: Forces the dropdown to always open above the input field.\n- Position.BELOW: Forces the dropdown to always open below the input field.",
24718
+ "fieldName": "position"
24707
24719
  }
24708
- ]
24709
- },
24710
- {
24711
- "kind": "variable",
24712
- "name": "foundationMenuItemShadowOptions",
24713
- "type": {
24714
- "text": "ShadowRootInit"
24715
- },
24716
- "default": "undefined"
24717
- },
24718
- {
24719
- "kind": "variable",
24720
- "name": "defaultMenuItemConfig",
24721
- "type": {
24722
- "text": "object"
24720
+ ],
24721
+ "superclass": {
24722
+ "name": "FoundationElement",
24723
+ "package": "@microsoft/fast-foundation"
24723
24724
  },
24724
- "default": "{\n expandCollapseGlyph: `\n <svg\n class=\"expand-collapse-glyph\"\n part=\"expand-collapse-glyph\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z\"\n />\n </svg>\n `,\n}"
24725
+ "tagName": "%%prefix%%-multiselect",
24726
+ "customElement": true
24725
24727
  },
24726
24728
  {
24727
24729
  "kind": "variable",
24728
- "name": "foundationMenuItem",
24729
- "description": "The Foundation Menu Item",
24730
- "privacy": "public"
24730
+ "name": "foundationMultiselect"
24731
24731
  }
24732
24732
  ],
24733
24733
  "exports": [
24734
24734
  {
24735
24735
  "kind": "js",
24736
- "name": "MenuItem",
24736
+ "name": "foundationMultiselectShadowOptions",
24737
24737
  "declaration": {
24738
- "name": "MenuItem",
24739
- "module": "src/menu-item/menu-item.ts"
24738
+ "name": "foundationMultiselectShadowOptions",
24739
+ "module": "src/multiselect/multiselect.ts"
24740
24740
  }
24741
24741
  },
24742
24742
  {
24743
24743
  "kind": "js",
24744
- "name": "foundationMenuItemShadowOptions",
24744
+ "name": "defaultMultiselectConfig",
24745
24745
  "declaration": {
24746
- "name": "foundationMenuItemShadowOptions",
24747
- "module": "src/menu-item/menu-item.ts"
24746
+ "name": "defaultMultiselectConfig",
24747
+ "module": "src/multiselect/multiselect.ts"
24748
24748
  }
24749
24749
  },
24750
24750
  {
24751
24751
  "kind": "js",
24752
- "name": "defaultMenuItemConfig",
24752
+ "name": "Multiselect",
24753
24753
  "declaration": {
24754
- "name": "defaultMenuItemConfig",
24755
- "module": "src/menu-item/menu-item.ts"
24754
+ "name": "Multiselect",
24755
+ "module": "src/multiselect/multiselect.ts"
24756
24756
  }
24757
24757
  },
24758
24758
  {
24759
24759
  "kind": "js",
24760
- "name": "foundationMenuItem",
24760
+ "name": "foundationMultiselect",
24761
24761
  "declaration": {
24762
- "name": "foundationMenuItem",
24763
- "module": "src/menu-item/menu-item.ts"
24762
+ "name": "foundationMultiselect",
24763
+ "module": "src/multiselect/multiselect.ts"
24764
24764
  }
24765
24765
  }
24766
24766
  ]