@genesislcap/foundation-ui 14.396.1 → 14.396.2-alpha-66a2e7a.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.
@@ -1302,6 +1302,400 @@
1302
1302
  }
1303
1303
  ]
1304
1304
  },
1305
+ {
1306
+ "kind": "javascript-module",
1307
+ "path": "src/accordion-item/accordion-item.styles.ts",
1308
+ "declarations": [
1309
+ {
1310
+ "kind": "function",
1311
+ "name": "foundationAccordionItemStyles",
1312
+ "return": {
1313
+ "type": {
1314
+ "text": "ElementStyles"
1315
+ }
1316
+ },
1317
+ "parameters": [
1318
+ {
1319
+ "name": "context",
1320
+ "type": {
1321
+ "text": "ElementDefinitionContext"
1322
+ }
1323
+ },
1324
+ {
1325
+ "name": "definition",
1326
+ "type": {
1327
+ "text": "FoundationElementDefinition"
1328
+ }
1329
+ }
1330
+ ]
1331
+ }
1332
+ ],
1333
+ "exports": [
1334
+ {
1335
+ "kind": "js",
1336
+ "name": "foundationAccordionItemStyles",
1337
+ "declaration": {
1338
+ "name": "foundationAccordionItemStyles",
1339
+ "module": "src/accordion-item/accordion-item.styles.ts"
1340
+ }
1341
+ }
1342
+ ]
1343
+ },
1344
+ {
1345
+ "kind": "javascript-module",
1346
+ "path": "src/accordion-item/accordion-item.template.ts",
1347
+ "declarations": [
1348
+ {
1349
+ "kind": "function",
1350
+ "name": "foundationAccordionItemTemplate",
1351
+ "return": {
1352
+ "type": {
1353
+ "text": "ViewTemplate<AccordionItem>"
1354
+ }
1355
+ },
1356
+ "parameters": [
1357
+ {
1358
+ "name": "context",
1359
+ "type": {
1360
+ "text": "ElementDefinitionContext"
1361
+ }
1362
+ },
1363
+ {
1364
+ "name": "definition",
1365
+ "type": {
1366
+ "text": "FoundationElementDefinition"
1367
+ }
1368
+ }
1369
+ ]
1370
+ }
1371
+ ],
1372
+ "exports": [
1373
+ {
1374
+ "kind": "js",
1375
+ "name": "foundationAccordionItemTemplate",
1376
+ "declaration": {
1377
+ "name": "foundationAccordionItemTemplate",
1378
+ "module": "src/accordion-item/accordion-item.template.ts"
1379
+ }
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ "kind": "javascript-module",
1385
+ "path": "src/accordion-item/accordion-item.ts",
1386
+ "declarations": [
1387
+ {
1388
+ "kind": "class",
1389
+ "description": "",
1390
+ "name": "AccordionItem",
1391
+ "superclass": {
1392
+ "name": "FASTAccordionItem",
1393
+ "package": "@microsoft/fast-components"
1394
+ },
1395
+ "tagName": "%%prefix%%-accordion-item",
1396
+ "customElement": true,
1397
+ "attributes": [
1398
+ {
1399
+ "name": "heading-level",
1400
+ "type": {
1401
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1402
+ },
1403
+ "default": "2",
1404
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1405
+ "fieldName": "headinglevel",
1406
+ "inheritedFrom": {
1407
+ "name": "AccordionItem",
1408
+ "module": "src/accordion-item/accordion-item.ts"
1409
+ }
1410
+ },
1411
+ {
1412
+ "type": {
1413
+ "text": "boolean"
1414
+ },
1415
+ "default": "false",
1416
+ "description": "Expands or collapses the item.",
1417
+ "fieldName": "expanded",
1418
+ "inheritedFrom": {
1419
+ "name": "AccordionItem",
1420
+ "module": "src/accordion-item/accordion-item.ts"
1421
+ }
1422
+ },
1423
+ {
1424
+ "name": "id",
1425
+ "type": {
1426
+ "text": "string"
1427
+ },
1428
+ "description": "The item ID",
1429
+ "fieldName": "id",
1430
+ "inheritedFrom": {
1431
+ "name": "AccordionItem",
1432
+ "module": "src/accordion-item/accordion-item.ts"
1433
+ }
1434
+ }
1435
+ ],
1436
+ "members": [
1437
+ {
1438
+ "kind": "field",
1439
+ "name": "headinglevel",
1440
+ "type": {
1441
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1442
+ },
1443
+ "privacy": "public",
1444
+ "default": "2",
1445
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1446
+ "inheritedFrom": {
1447
+ "name": "AccordionItem",
1448
+ "module": "src/accordion-item/accordion-item.ts"
1449
+ }
1450
+ },
1451
+ {
1452
+ "kind": "field",
1453
+ "name": "expanded",
1454
+ "type": {
1455
+ "text": "boolean"
1456
+ },
1457
+ "privacy": "public",
1458
+ "default": "false",
1459
+ "description": "Expands or collapses the item.",
1460
+ "inheritedFrom": {
1461
+ "name": "AccordionItem",
1462
+ "module": "src/accordion-item/accordion-item.ts"
1463
+ }
1464
+ },
1465
+ {
1466
+ "kind": "field",
1467
+ "name": "id",
1468
+ "type": {
1469
+ "text": "string"
1470
+ },
1471
+ "privacy": "public",
1472
+ "description": "The item ID",
1473
+ "inheritedFrom": {
1474
+ "name": "AccordionItem",
1475
+ "module": "src/accordion-item/accordion-item.ts"
1476
+ }
1477
+ },
1478
+ {
1479
+ "kind": "field",
1480
+ "name": "change",
1481
+ "privacy": "private",
1482
+ "inheritedFrom": {
1483
+ "name": "AccordionItem",
1484
+ "module": "src/accordion-item/accordion-item.ts"
1485
+ }
1486
+ },
1487
+ {
1488
+ "kind": "field",
1489
+ "name": "_presentation",
1490
+ "type": {
1491
+ "text": "ComponentPresentation | null | undefined"
1492
+ },
1493
+ "privacy": "private",
1494
+ "default": "void 0",
1495
+ "inheritedFrom": {
1496
+ "name": "FoundationElement",
1497
+ "module": "src/foundation-element/foundation-element.ts"
1498
+ }
1499
+ },
1500
+ {
1501
+ "kind": "field",
1502
+ "name": "$presentation",
1503
+ "type": {
1504
+ "text": "ComponentPresentation | null"
1505
+ },
1506
+ "privacy": "public",
1507
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1508
+ "inheritedFrom": {
1509
+ "name": "FoundationElement",
1510
+ "module": "src/foundation-element/foundation-element.ts"
1511
+ }
1512
+ },
1513
+ {
1514
+ "kind": "field",
1515
+ "name": "template",
1516
+ "type": {
1517
+ "text": "ElementViewTemplate | void | null"
1518
+ },
1519
+ "privacy": "public",
1520
+ "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.",
1521
+ "inheritedFrom": {
1522
+ "name": "FoundationElement",
1523
+ "module": "src/foundation-element/foundation-element.ts"
1524
+ }
1525
+ },
1526
+ {
1527
+ "kind": "method",
1528
+ "name": "templateChanged",
1529
+ "privacy": "protected",
1530
+ "return": {
1531
+ "type": {
1532
+ "text": "void"
1533
+ }
1534
+ },
1535
+ "inheritedFrom": {
1536
+ "name": "FoundationElement",
1537
+ "module": "src/foundation-element/foundation-element.ts"
1538
+ }
1539
+ },
1540
+ {
1541
+ "kind": "field",
1542
+ "name": "styles",
1543
+ "type": {
1544
+ "text": "ElementStyles | void | null"
1545
+ },
1546
+ "privacy": "public",
1547
+ "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.",
1548
+ "inheritedFrom": {
1549
+ "name": "FoundationElement",
1550
+ "module": "src/foundation-element/foundation-element.ts"
1551
+ }
1552
+ },
1553
+ {
1554
+ "kind": "method",
1555
+ "name": "stylesChanged",
1556
+ "privacy": "protected",
1557
+ "return": {
1558
+ "type": {
1559
+ "text": "void"
1560
+ }
1561
+ },
1562
+ "inheritedFrom": {
1563
+ "name": "FoundationElement",
1564
+ "module": "src/foundation-element/foundation-element.ts"
1565
+ }
1566
+ },
1567
+ {
1568
+ "kind": "method",
1569
+ "name": "compose",
1570
+ "privacy": "public",
1571
+ "static": true,
1572
+ "return": {
1573
+ "type": {
1574
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1575
+ }
1576
+ },
1577
+ "parameters": [
1578
+ {
1579
+ "name": "this",
1580
+ "type": {
1581
+ "text": "K"
1582
+ }
1583
+ },
1584
+ {
1585
+ "name": "elementDefinition",
1586
+ "type": {
1587
+ "text": "T"
1588
+ },
1589
+ "description": "The definition of the element to create the registry\nfunction for."
1590
+ }
1591
+ ],
1592
+ "description": "Defines an element registry function with a set of element definition defaults.",
1593
+ "inheritedFrom": {
1594
+ "name": "FoundationElement",
1595
+ "module": "src/foundation-element/foundation-element.ts"
1596
+ }
1597
+ }
1598
+ ],
1599
+ "events": [
1600
+ {
1601
+ "description": "Fires a custom 'change' event when the button is invoked",
1602
+ "name": "change",
1603
+ "inheritedFrom": {
1604
+ "name": "AccordionItem",
1605
+ "module": "src/accordion-item/accordion-item.ts"
1606
+ }
1607
+ }
1608
+ ]
1609
+ },
1610
+ {
1611
+ "kind": "variable",
1612
+ "name": "foundationAccordionItemShadowOptions",
1613
+ "type": {
1614
+ "text": "ShadowRootInit"
1615
+ },
1616
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1617
+ },
1618
+ {
1619
+ "kind": "variable",
1620
+ "name": "defaultAccordionItemConfig",
1621
+ "type": {
1622
+ "text": "object"
1623
+ },
1624
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1625
+ },
1626
+ {
1627
+ "kind": "variable",
1628
+ "name": "foundationAccordionItem",
1629
+ "description": "The Foundation Accordion Item",
1630
+ "privacy": "public"
1631
+ }
1632
+ ],
1633
+ "exports": [
1634
+ {
1635
+ "kind": "js",
1636
+ "name": "AccordionItem",
1637
+ "declaration": {
1638
+ "name": "AccordionItem",
1639
+ "module": "src/accordion-item/accordion-item.ts"
1640
+ }
1641
+ },
1642
+ {
1643
+ "kind": "js",
1644
+ "name": "foundationAccordionItemShadowOptions",
1645
+ "declaration": {
1646
+ "name": "foundationAccordionItemShadowOptions",
1647
+ "module": "src/accordion-item/accordion-item.ts"
1648
+ }
1649
+ },
1650
+ {
1651
+ "kind": "js",
1652
+ "name": "defaultAccordionItemConfig",
1653
+ "declaration": {
1654
+ "name": "defaultAccordionItemConfig",
1655
+ "module": "src/accordion-item/accordion-item.ts"
1656
+ }
1657
+ },
1658
+ {
1659
+ "kind": "js",
1660
+ "name": "foundationAccordionItem",
1661
+ "declaration": {
1662
+ "name": "foundationAccordionItem",
1663
+ "module": "src/accordion-item/accordion-item.ts"
1664
+ }
1665
+ }
1666
+ ]
1667
+ },
1668
+ {
1669
+ "kind": "javascript-module",
1670
+ "path": "src/accordion-item/index.ts",
1671
+ "declarations": [],
1672
+ "exports": [
1673
+ {
1674
+ "kind": "js",
1675
+ "name": "*",
1676
+ "declaration": {
1677
+ "name": "*",
1678
+ "package": "./accordion-item.template"
1679
+ }
1680
+ },
1681
+ {
1682
+ "kind": "js",
1683
+ "name": "*",
1684
+ "declaration": {
1685
+ "name": "*",
1686
+ "package": "./accordion-item.styles"
1687
+ }
1688
+ },
1689
+ {
1690
+ "kind": "js",
1691
+ "name": "*",
1692
+ "declaration": {
1693
+ "name": "*",
1694
+ "package": "./accordion-item"
1695
+ }
1696
+ }
1697
+ ]
1698
+ },
1305
1699
  {
1306
1700
  "kind": "javascript-module",
1307
1701
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -1861,400 +2255,6 @@
1861
2255
  }
1862
2256
  ]
1863
2257
  },
1864
- {
1865
- "kind": "javascript-module",
1866
- "path": "src/accordion-item/accordion-item.styles.ts",
1867
- "declarations": [
1868
- {
1869
- "kind": "function",
1870
- "name": "foundationAccordionItemStyles",
1871
- "return": {
1872
- "type": {
1873
- "text": "ElementStyles"
1874
- }
1875
- },
1876
- "parameters": [
1877
- {
1878
- "name": "context",
1879
- "type": {
1880
- "text": "ElementDefinitionContext"
1881
- }
1882
- },
1883
- {
1884
- "name": "definition",
1885
- "type": {
1886
- "text": "FoundationElementDefinition"
1887
- }
1888
- }
1889
- ]
1890
- }
1891
- ],
1892
- "exports": [
1893
- {
1894
- "kind": "js",
1895
- "name": "foundationAccordionItemStyles",
1896
- "declaration": {
1897
- "name": "foundationAccordionItemStyles",
1898
- "module": "src/accordion-item/accordion-item.styles.ts"
1899
- }
1900
- }
1901
- ]
1902
- },
1903
- {
1904
- "kind": "javascript-module",
1905
- "path": "src/accordion-item/accordion-item.template.ts",
1906
- "declarations": [
1907
- {
1908
- "kind": "function",
1909
- "name": "foundationAccordionItemTemplate",
1910
- "return": {
1911
- "type": {
1912
- "text": "ViewTemplate<AccordionItem>"
1913
- }
1914
- },
1915
- "parameters": [
1916
- {
1917
- "name": "context",
1918
- "type": {
1919
- "text": "ElementDefinitionContext"
1920
- }
1921
- },
1922
- {
1923
- "name": "definition",
1924
- "type": {
1925
- "text": "FoundationElementDefinition"
1926
- }
1927
- }
1928
- ]
1929
- }
1930
- ],
1931
- "exports": [
1932
- {
1933
- "kind": "js",
1934
- "name": "foundationAccordionItemTemplate",
1935
- "declaration": {
1936
- "name": "foundationAccordionItemTemplate",
1937
- "module": "src/accordion-item/accordion-item.template.ts"
1938
- }
1939
- }
1940
- ]
1941
- },
1942
- {
1943
- "kind": "javascript-module",
1944
- "path": "src/accordion-item/accordion-item.ts",
1945
- "declarations": [
1946
- {
1947
- "kind": "class",
1948
- "description": "",
1949
- "name": "AccordionItem",
1950
- "superclass": {
1951
- "name": "FASTAccordionItem",
1952
- "package": "@microsoft/fast-components"
1953
- },
1954
- "tagName": "%%prefix%%-accordion-item",
1955
- "customElement": true,
1956
- "attributes": [
1957
- {
1958
- "name": "heading-level",
1959
- "type": {
1960
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1961
- },
1962
- "default": "2",
1963
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1964
- "fieldName": "headinglevel",
1965
- "inheritedFrom": {
1966
- "name": "AccordionItem",
1967
- "module": "src/accordion-item/accordion-item.ts"
1968
- }
1969
- },
1970
- {
1971
- "type": {
1972
- "text": "boolean"
1973
- },
1974
- "default": "false",
1975
- "description": "Expands or collapses the item.",
1976
- "fieldName": "expanded",
1977
- "inheritedFrom": {
1978
- "name": "AccordionItem",
1979
- "module": "src/accordion-item/accordion-item.ts"
1980
- }
1981
- },
1982
- {
1983
- "name": "id",
1984
- "type": {
1985
- "text": "string"
1986
- },
1987
- "description": "The item ID",
1988
- "fieldName": "id",
1989
- "inheritedFrom": {
1990
- "name": "AccordionItem",
1991
- "module": "src/accordion-item/accordion-item.ts"
1992
- }
1993
- }
1994
- ],
1995
- "members": [
1996
- {
1997
- "kind": "field",
1998
- "name": "headinglevel",
1999
- "type": {
2000
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2001
- },
2002
- "privacy": "public",
2003
- "default": "2",
2004
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2005
- "inheritedFrom": {
2006
- "name": "AccordionItem",
2007
- "module": "src/accordion-item/accordion-item.ts"
2008
- }
2009
- },
2010
- {
2011
- "kind": "field",
2012
- "name": "expanded",
2013
- "type": {
2014
- "text": "boolean"
2015
- },
2016
- "privacy": "public",
2017
- "default": "false",
2018
- "description": "Expands or collapses the item.",
2019
- "inheritedFrom": {
2020
- "name": "AccordionItem",
2021
- "module": "src/accordion-item/accordion-item.ts"
2022
- }
2023
- },
2024
- {
2025
- "kind": "field",
2026
- "name": "id",
2027
- "type": {
2028
- "text": "string"
2029
- },
2030
- "privacy": "public",
2031
- "description": "The item ID",
2032
- "inheritedFrom": {
2033
- "name": "AccordionItem",
2034
- "module": "src/accordion-item/accordion-item.ts"
2035
- }
2036
- },
2037
- {
2038
- "kind": "field",
2039
- "name": "change",
2040
- "privacy": "private",
2041
- "inheritedFrom": {
2042
- "name": "AccordionItem",
2043
- "module": "src/accordion-item/accordion-item.ts"
2044
- }
2045
- },
2046
- {
2047
- "kind": "field",
2048
- "name": "_presentation",
2049
- "type": {
2050
- "text": "ComponentPresentation | null | undefined"
2051
- },
2052
- "privacy": "private",
2053
- "default": "void 0",
2054
- "inheritedFrom": {
2055
- "name": "FoundationElement",
2056
- "module": "src/foundation-element/foundation-element.ts"
2057
- }
2058
- },
2059
- {
2060
- "kind": "field",
2061
- "name": "$presentation",
2062
- "type": {
2063
- "text": "ComponentPresentation | null"
2064
- },
2065
- "privacy": "public",
2066
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2067
- "inheritedFrom": {
2068
- "name": "FoundationElement",
2069
- "module": "src/foundation-element/foundation-element.ts"
2070
- }
2071
- },
2072
- {
2073
- "kind": "field",
2074
- "name": "template",
2075
- "type": {
2076
- "text": "ElementViewTemplate | void | null"
2077
- },
2078
- "privacy": "public",
2079
- "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.",
2080
- "inheritedFrom": {
2081
- "name": "FoundationElement",
2082
- "module": "src/foundation-element/foundation-element.ts"
2083
- }
2084
- },
2085
- {
2086
- "kind": "method",
2087
- "name": "templateChanged",
2088
- "privacy": "protected",
2089
- "return": {
2090
- "type": {
2091
- "text": "void"
2092
- }
2093
- },
2094
- "inheritedFrom": {
2095
- "name": "FoundationElement",
2096
- "module": "src/foundation-element/foundation-element.ts"
2097
- }
2098
- },
2099
- {
2100
- "kind": "field",
2101
- "name": "styles",
2102
- "type": {
2103
- "text": "ElementStyles | void | null"
2104
- },
2105
- "privacy": "public",
2106
- "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.",
2107
- "inheritedFrom": {
2108
- "name": "FoundationElement",
2109
- "module": "src/foundation-element/foundation-element.ts"
2110
- }
2111
- },
2112
- {
2113
- "kind": "method",
2114
- "name": "stylesChanged",
2115
- "privacy": "protected",
2116
- "return": {
2117
- "type": {
2118
- "text": "void"
2119
- }
2120
- },
2121
- "inheritedFrom": {
2122
- "name": "FoundationElement",
2123
- "module": "src/foundation-element/foundation-element.ts"
2124
- }
2125
- },
2126
- {
2127
- "kind": "method",
2128
- "name": "compose",
2129
- "privacy": "public",
2130
- "static": true,
2131
- "return": {
2132
- "type": {
2133
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2134
- }
2135
- },
2136
- "parameters": [
2137
- {
2138
- "name": "this",
2139
- "type": {
2140
- "text": "K"
2141
- }
2142
- },
2143
- {
2144
- "name": "elementDefinition",
2145
- "type": {
2146
- "text": "T"
2147
- },
2148
- "description": "The definition of the element to create the registry\nfunction for."
2149
- }
2150
- ],
2151
- "description": "Defines an element registry function with a set of element definition defaults.",
2152
- "inheritedFrom": {
2153
- "name": "FoundationElement",
2154
- "module": "src/foundation-element/foundation-element.ts"
2155
- }
2156
- }
2157
- ],
2158
- "events": [
2159
- {
2160
- "description": "Fires a custom 'change' event when the button is invoked",
2161
- "name": "change",
2162
- "inheritedFrom": {
2163
- "name": "AccordionItem",
2164
- "module": "src/accordion-item/accordion-item.ts"
2165
- }
2166
- }
2167
- ]
2168
- },
2169
- {
2170
- "kind": "variable",
2171
- "name": "foundationAccordionItemShadowOptions",
2172
- "type": {
2173
- "text": "ShadowRootInit"
2174
- },
2175
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2176
- },
2177
- {
2178
- "kind": "variable",
2179
- "name": "defaultAccordionItemConfig",
2180
- "type": {
2181
- "text": "object"
2182
- },
2183
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2184
- },
2185
- {
2186
- "kind": "variable",
2187
- "name": "foundationAccordionItem",
2188
- "description": "The Foundation Accordion Item",
2189
- "privacy": "public"
2190
- }
2191
- ],
2192
- "exports": [
2193
- {
2194
- "kind": "js",
2195
- "name": "AccordionItem",
2196
- "declaration": {
2197
- "name": "AccordionItem",
2198
- "module": "src/accordion-item/accordion-item.ts"
2199
- }
2200
- },
2201
- {
2202
- "kind": "js",
2203
- "name": "foundationAccordionItemShadowOptions",
2204
- "declaration": {
2205
- "name": "foundationAccordionItemShadowOptions",
2206
- "module": "src/accordion-item/accordion-item.ts"
2207
- }
2208
- },
2209
- {
2210
- "kind": "js",
2211
- "name": "defaultAccordionItemConfig",
2212
- "declaration": {
2213
- "name": "defaultAccordionItemConfig",
2214
- "module": "src/accordion-item/accordion-item.ts"
2215
- }
2216
- },
2217
- {
2218
- "kind": "js",
2219
- "name": "foundationAccordionItem",
2220
- "declaration": {
2221
- "name": "foundationAccordionItem",
2222
- "module": "src/accordion-item/accordion-item.ts"
2223
- }
2224
- }
2225
- ]
2226
- },
2227
- {
2228
- "kind": "javascript-module",
2229
- "path": "src/accordion-item/index.ts",
2230
- "declarations": [],
2231
- "exports": [
2232
- {
2233
- "kind": "js",
2234
- "name": "*",
2235
- "declaration": {
2236
- "name": "*",
2237
- "package": "./accordion-item.template"
2238
- }
2239
- },
2240
- {
2241
- "kind": "js",
2242
- "name": "*",
2243
- "declaration": {
2244
- "name": "*",
2245
- "package": "./accordion-item.styles"
2246
- }
2247
- },
2248
- {
2249
- "kind": "js",
2250
- "name": "*",
2251
- "declaration": {
2252
- "name": "*",
2253
- "package": "./accordion-item"
2254
- }
2255
- }
2256
- ]
2257
- },
2258
2258
  {
2259
2259
  "kind": "javascript-module",
2260
2260
  "path": "src/anchor/anchor.styles.ts",
@@ -41194,6 +41194,15 @@
41194
41194
  "description": "",
41195
41195
  "name": "Select",
41196
41196
  "members": [
41197
+ {
41198
+ "kind": "field",
41199
+ "name": "_scrollIntoViewRafId",
41200
+ "type": {
41201
+ "text": "number | null"
41202
+ },
41203
+ "privacy": "private",
41204
+ "default": "null"
41205
+ },
41197
41206
  {
41198
41207
  "kind": "method",
41199
41208
  "name": "openChanged",
@@ -4,6 +4,7 @@ import type { ListboxOption, SelectOptions } from '@microsoft/fast-foundation';
4
4
  * @tagname %%prefix%%-select
5
5
  */
6
6
  export declare class Select extends FASTSelect {
7
+ private _scrollIntoViewRafId;
7
8
  /**
8
9
  * @internal
9
10
  */
@@ -16,6 +17,7 @@ export declare class Select extends FASTSelect {
16
17
  */
17
18
  protected focusAndScrollOptionIntoView(optionToFocus?: ListboxOption | null): void;
18
19
  openChanged(prev: boolean | undefined, next: boolean): void;
20
+ disconnectedCallback(): void;
19
21
  keydownHandler(e: KeyboardEvent): boolean | void;
20
22
  }
21
23
  export declare const foundationSelectShadowOptions: ShadowRootInit;
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK/E;;GAEG;AACH,qBAAa,MAAO,SAAQ,UAAU;IACpC;;OAEG;IACa,qBAAqB,CACnC,IAAI,EAAE,WAAW,EAAE,GAAG,SAAS,EAC/B,IAAI,EAAE,WAAW,EAAE,GAClB,IAAI;IAqCP;;;;;OAKG;IACH,SAAS,CAAC,4BAA4B,CACpC,aAAa,GAAE,aAAa,GAAG,IAA+B,GAC7D,IAAI;IAcE,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAuB3D,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;CAoB1D;AAGD,eAAO,MAAM,6BAA6B,EAAE,cAA0B,CAAC;AAEvE,eAAO,MAAM,mBAAmB;;CAa/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,0SAM3B,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK/E;;GAEG;AACH,qBAAa,MAAO,SAAQ,UAAU;IACpC,OAAO,CAAC,oBAAoB,CAAuB;IAEnD;;OAEG;IACa,qBAAqB,CACnC,IAAI,EAAE,WAAW,EAAE,GAAG,SAAS,EAC/B,IAAI,EAAE,WAAW,EAAE,GAClB,IAAI;IAqCP;;;;;OAKG;IACH,SAAS,CAAC,4BAA4B,CACpC,aAAa,GAAE,aAAa,GAAG,IAA+B,GAC7D,IAAI;IAqBE,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IA2B3D,oBAAoB,IAAI,IAAI;IAU5B,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;CAoB1D;AAGD,eAAO,MAAM,6BAA6B,EAAE,cAA0B,CAAC;AAEvE,eAAO,MAAM,mBAAmB;;CAa/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,0SAM3B,CAAC"}
@@ -7,6 +7,10 @@ import { foundationSelectTemplate as template } from './select.template';
7
7
  * @tagname %%prefix%%-select
8
8
  */
9
9
  export class Select extends FASTSelect {
10
+ constructor() {
11
+ super(...arguments);
12
+ this._scrollIntoViewRafId = null;
13
+ }
10
14
  /**
11
15
  * @internal
12
16
  */
@@ -56,9 +60,16 @@ export class Select extends FASTSelect {
56
60
  // causes the calls to be grouped into the same frame. To prevent this,
57
61
  // `requestAnimationFrame` is used instead of `DOM.queueUpdate`.
58
62
  if (this.contains(getRootActiveElement(this)) && optionToFocus !== null) {
63
+ if (this._scrollIntoViewRafId !== null) {
64
+ cancelAnimationFrame(this._scrollIntoViewRafId);
65
+ this._scrollIntoViewRafId = null;
66
+ }
59
67
  optionToFocus.focus();
60
- requestAnimationFrame(() => {
61
- optionToFocus.scrollIntoView({ block: 'nearest' });
68
+ this._scrollIntoViewRafId = requestAnimationFrame(() => {
69
+ this._scrollIntoViewRafId = null;
70
+ if (this.isConnected && this.contains(optionToFocus)) {
71
+ optionToFocus.scrollIntoView({ block: 'nearest' });
72
+ }
62
73
  });
63
74
  }
64
75
  }
@@ -73,12 +84,25 @@ export class Select extends FASTSelect {
73
84
  this.focusAndScrollOptionIntoView();
74
85
  this['indexWhenOpened'] = this.selectedIndex;
75
86
  // focus is directed to the element when `open` is changed programmatically
76
- DOM.queueUpdate(() => this.focus());
87
+ DOM.queueUpdate(() => {
88
+ if (this.isConnected) {
89
+ this.focus();
90
+ }
91
+ });
77
92
  return;
78
93
  }
79
94
  this.ariaControls = '';
80
95
  this.ariaExpanded = 'false';
81
96
  }
97
+ disconnectedCallback() {
98
+ if (this._scrollIntoViewRafId !== null) {
99
+ cancelAnimationFrame(this._scrollIntoViewRafId);
100
+ this._scrollIntoViewRafId = null;
101
+ }
102
+ this.options = [];
103
+ this.slottedOptions = [];
104
+ super.disconnectedCallback();
105
+ }
82
106
  keydownHandler(e) {
83
107
  const key = e.key;
84
108
  switch (key) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.396.1",
4
+ "version": "14.396.2-alpha-66a2e7a.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -85,13 +85,13 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@genesislcap/foundation-testing": "14.396.1",
89
- "@genesislcap/genx": "14.396.1",
90
- "@genesislcap/rollup-builder": "14.396.1",
91
- "@genesislcap/ts-builder": "14.396.1",
92
- "@genesislcap/uvu-playwright-builder": "14.396.1",
93
- "@genesislcap/vite-builder": "14.396.1",
94
- "@genesislcap/webpack-builder": "14.396.1",
88
+ "@genesislcap/foundation-testing": "14.396.2-alpha-66a2e7a.0",
89
+ "@genesislcap/genx": "14.396.2-alpha-66a2e7a.0",
90
+ "@genesislcap/rollup-builder": "14.396.2-alpha-66a2e7a.0",
91
+ "@genesislcap/ts-builder": "14.396.2-alpha-66a2e7a.0",
92
+ "@genesislcap/uvu-playwright-builder": "14.396.2-alpha-66a2e7a.0",
93
+ "@genesislcap/vite-builder": "14.396.2-alpha-66a2e7a.0",
94
+ "@genesislcap/webpack-builder": "14.396.2-alpha-66a2e7a.0",
95
95
  "copyfiles": "^2.4.1"
96
96
  },
97
97
  "dependencies": {
@@ -100,15 +100,15 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "14.396.1",
104
- "@genesislcap/foundation-comms": "14.396.1",
105
- "@genesislcap/foundation-criteria": "14.396.1",
106
- "@genesislcap/foundation-errors": "14.396.1",
107
- "@genesislcap/foundation-events": "14.396.1",
108
- "@genesislcap/foundation-logger": "14.396.1",
109
- "@genesislcap/foundation-notifications": "14.396.1",
110
- "@genesislcap/foundation-user": "14.396.1",
111
- "@genesislcap/foundation-utils": "14.396.1",
103
+ "@genesislcap/expression-builder": "14.396.2-alpha-66a2e7a.0",
104
+ "@genesislcap/foundation-comms": "14.396.2-alpha-66a2e7a.0",
105
+ "@genesislcap/foundation-criteria": "14.396.2-alpha-66a2e7a.0",
106
+ "@genesislcap/foundation-errors": "14.396.2-alpha-66a2e7a.0",
107
+ "@genesislcap/foundation-events": "14.396.2-alpha-66a2e7a.0",
108
+ "@genesislcap/foundation-logger": "14.396.2-alpha-66a2e7a.0",
109
+ "@genesislcap/foundation-notifications": "14.396.2-alpha-66a2e7a.0",
110
+ "@genesislcap/foundation-user": "14.396.2-alpha-66a2e7a.0",
111
+ "@genesislcap/foundation-utils": "14.396.2-alpha-66a2e7a.0",
112
112
  "@microsoft/fast-colors": "5.3.1",
113
113
  "@microsoft/fast-components": "2.30.6",
114
114
  "@microsoft/fast-element": "1.14.0",
@@ -130,5 +130,5 @@
130
130
  "access": "public"
131
131
  },
132
132
  "customElements": "dist/custom-elements.json",
133
- "gitHead": "4a6225102f4b6566bff9ec8a91848d661b528588"
133
+ "gitHead": "1cf33f2f284a90fa94f15a82f19487ad1db2e13e"
134
134
  }