@genesislcap/foundation-ui 14.456.3-alpha-d42d86c.0 → 14.457.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.
@@ -1400,11 +1400,65 @@
1400
1400
  },
1401
1401
  {
1402
1402
  "kind": "javascript-module",
1403
- "path": "src/accordion/accordion.styles.ts",
1403
+ "path": "src/_config/index.ts",
1404
+ "declarations": [],
1405
+ "exports": [
1406
+ {
1407
+ "kind": "js",
1408
+ "name": "*",
1409
+ "declaration": {
1410
+ "name": "*",
1411
+ "package": "./styles"
1412
+ }
1413
+ },
1414
+ {
1415
+ "kind": "js",
1416
+ "name": "*",
1417
+ "declaration": {
1418
+ "name": "*",
1419
+ "package": "./tokens"
1420
+ }
1421
+ },
1422
+ {
1423
+ "kind": "js",
1424
+ "name": "*",
1425
+ "declaration": {
1426
+ "name": "*",
1427
+ "package": "./values"
1428
+ }
1429
+ }
1430
+ ]
1431
+ },
1432
+ {
1433
+ "kind": "javascript-module",
1434
+ "path": "src/actions-menu/actions-menu.styles.ts",
1404
1435
  "declarations": [
1405
1436
  {
1406
1437
  "kind": "function",
1407
- "name": "foundationAccordionStyles",
1438
+ "name": "actionsMenuBaseStyles",
1439
+ "return": {
1440
+ "type": {
1441
+ "text": "ElementStyles"
1442
+ }
1443
+ },
1444
+ "parameters": [
1445
+ {
1446
+ "name": "context",
1447
+ "type": {
1448
+ "text": "ElementDefinitionContext"
1449
+ }
1450
+ },
1451
+ {
1452
+ "name": "definition",
1453
+ "type": {
1454
+ "text": "FoundationElementDefinition"
1455
+ }
1456
+ }
1457
+ ]
1458
+ },
1459
+ {
1460
+ "kind": "function",
1461
+ "name": "foundationActionsMenuStyles",
1408
1462
  "return": {
1409
1463
  "type": {
1410
1464
  "text": "ElementStyles"
@@ -1429,277 +1483,269 @@
1429
1483
  "exports": [
1430
1484
  {
1431
1485
  "kind": "js",
1432
- "name": "foundationAccordionStyles",
1486
+ "name": "actionsMenuBaseStyles",
1433
1487
  "declaration": {
1434
- "name": "foundationAccordionStyles",
1435
- "module": "src/accordion/accordion.styles.ts"
1488
+ "name": "actionsMenuBaseStyles",
1489
+ "module": "src/actions-menu/actions-menu.styles.ts"
1490
+ }
1491
+ },
1492
+ {
1493
+ "kind": "js",
1494
+ "name": "foundationActionsMenuStyles",
1495
+ "declaration": {
1496
+ "name": "foundationActionsMenuStyles",
1497
+ "module": "src/actions-menu/actions-menu.styles.ts"
1436
1498
  }
1437
1499
  }
1438
1500
  ]
1439
1501
  },
1440
1502
  {
1441
1503
  "kind": "javascript-module",
1442
- "path": "src/accordion/accordion.template.ts",
1504
+ "path": "src/actions-menu/actions-menu.template.ts",
1443
1505
  "declarations": [
1444
1506
  {
1445
1507
  "kind": "function",
1446
- "name": "foundationAccordionTemplate",
1447
- "return": {
1448
- "type": {
1449
- "text": "ViewTemplate<Accordion>"
1450
- }
1451
- },
1508
+ "name": "menuTemplate",
1452
1509
  "parameters": [
1453
1510
  {
1454
- "name": "context",
1511
+ "name": "prefix",
1455
1512
  "type": {
1456
- "text": "ElementDefinitionContext"
1513
+ "text": "string"
1457
1514
  }
1458
- },
1515
+ }
1516
+ ]
1517
+ },
1518
+ {
1519
+ "kind": "function",
1520
+ "name": "singleOptionTemplate",
1521
+ "parameters": [
1459
1522
  {
1460
- "name": "definition",
1523
+ "name": "prefix",
1461
1524
  "type": {
1462
- "text": "FoundationElementDefinition"
1525
+ "text": "string"
1463
1526
  }
1464
1527
  }
1465
1528
  ]
1529
+ },
1530
+ {
1531
+ "kind": "variable",
1532
+ "name": "foundationActionsMenuTemplate",
1533
+ "type": {
1534
+ "text": "ViewTemplate<ActionsMenu>"
1535
+ },
1536
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1466
1537
  }
1467
1538
  ],
1468
1539
  "exports": [
1469
1540
  {
1470
1541
  "kind": "js",
1471
- "name": "foundationAccordionTemplate",
1542
+ "name": "menuTemplate",
1472
1543
  "declaration": {
1473
- "name": "foundationAccordionTemplate",
1474
- "module": "src/accordion/accordion.template.ts"
1544
+ "name": "menuTemplate",
1545
+ "module": "src/actions-menu/actions-menu.template.ts"
1546
+ }
1547
+ },
1548
+ {
1549
+ "kind": "js",
1550
+ "name": "singleOptionTemplate",
1551
+ "declaration": {
1552
+ "name": "singleOptionTemplate",
1553
+ "module": "src/actions-menu/actions-menu.template.ts"
1554
+ }
1555
+ },
1556
+ {
1557
+ "kind": "js",
1558
+ "name": "foundationActionsMenuTemplate",
1559
+ "declaration": {
1560
+ "name": "foundationActionsMenuTemplate",
1561
+ "module": "src/actions-menu/actions-menu.template.ts"
1475
1562
  }
1476
1563
  }
1477
1564
  ]
1478
1565
  },
1479
1566
  {
1480
1567
  "kind": "javascript-module",
1481
- "path": "src/accordion/accordion.ts",
1568
+ "path": "src/actions-menu/actions-menu.ts",
1482
1569
  "declarations": [
1483
1570
  {
1484
1571
  "kind": "class",
1485
1572
  "description": "",
1486
- "name": "Accordion",
1487
- "superclass": {
1488
- "name": "FASTAccordion",
1489
- "package": "@microsoft/fast-foundation"
1490
- },
1491
- "tagName": "%%prefix%%-accordion",
1492
- "customElement": true,
1493
- "attributes": [
1573
+ "name": "ActionsMenu",
1574
+ "members": [
1494
1575
  {
1495
- "name": "expand-mode",
1576
+ "kind": "field",
1577
+ "name": "actions",
1496
1578
  "type": {
1497
- "text": "AccordionExpandMode"
1498
- },
1499
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1500
- "fieldName": "expandmode",
1501
- "inheritedFrom": {
1502
- "name": "Accordion",
1503
- "module": "src/accordion/accordion.ts"
1579
+ "text": "ActionMenuItem[]"
1504
1580
  }
1505
- }
1506
- ],
1507
- "members": [
1581
+ },
1508
1582
  {
1509
1583
  "kind": "field",
1510
- "name": "expandmode",
1584
+ "name": "isVertical",
1511
1585
  "type": {
1512
- "text": "AccordionExpandMode"
1586
+ "text": "boolean"
1513
1587
  },
1514
- "privacy": "public",
1515
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1516
- "inheritedFrom": {
1517
- "name": "Accordion",
1518
- "module": "src/accordion/accordion.ts"
1519
- }
1588
+ "default": "false"
1520
1589
  },
1521
1590
  {
1522
1591
  "kind": "field",
1523
- "name": "activeid",
1592
+ "name": "addDefaultActions",
1524
1593
  "type": {
1525
- "text": "string | null"
1594
+ "text": "boolean"
1526
1595
  },
1527
- "privacy": "private",
1528
- "inheritedFrom": {
1529
- "name": "Accordion",
1530
- "module": "src/accordion/accordion.ts"
1531
- }
1596
+ "default": "true"
1532
1597
  },
1533
1598
  {
1534
1599
  "kind": "field",
1535
- "name": "activeItemIndex",
1600
+ "name": "autoCloseOnAction",
1536
1601
  "type": {
1537
- "text": "number"
1602
+ "text": "boolean"
1538
1603
  },
1539
- "privacy": "private",
1540
- "default": "0",
1541
- "inheritedFrom": {
1542
- "name": "Accordion",
1543
- "module": "src/accordion/accordion.ts"
1604
+ "default": "true"
1605
+ },
1606
+ {
1607
+ "kind": "field",
1608
+ "name": "classNames",
1609
+ "type": {
1610
+ "text": "string"
1544
1611
  }
1545
1612
  },
1546
1613
  {
1547
1614
  "kind": "field",
1548
- "name": "accordionIds",
1615
+ "name": "definition",
1549
1616
  "type": {
1550
- "text": "Array<string | null>"
1551
- },
1552
- "privacy": "private",
1553
- "inheritedFrom": {
1554
- "name": "Accordion",
1555
- "module": "src/accordion/accordion.ts"
1617
+ "text": "any"
1556
1618
  }
1557
1619
  },
1558
1620
  {
1559
1621
  "kind": "field",
1560
- "name": "change",
1561
- "privacy": "private",
1562
- "inheritedFrom": {
1563
- "name": "Accordion",
1564
- "module": "src/accordion/accordion.ts"
1622
+ "name": "name",
1623
+ "type": {
1624
+ "text": "string"
1625
+ },
1626
+ "default": "'Actions'"
1627
+ },
1628
+ {
1629
+ "kind": "field",
1630
+ "name": "open",
1631
+ "type": {
1632
+ "text": "boolean"
1633
+ },
1634
+ "default": "false"
1635
+ },
1636
+ {
1637
+ "kind": "field",
1638
+ "name": "buttonAppearance",
1639
+ "type": {
1640
+ "text": "string"
1565
1641
  }
1566
1642
  },
1567
1643
  {
1568
- "kind": "method",
1569
- "name": "findExpandedItem",
1570
- "privacy": "private",
1571
- "return": {
1572
- "type": {
1573
- "text": "AccordionItem | null"
1574
- }
1644
+ "kind": "field",
1645
+ "name": "hideDisabled",
1646
+ "type": {
1647
+ "text": "boolean"
1575
1648
  },
1576
- "inheritedFrom": {
1577
- "name": "Accordion",
1578
- "module": "src/accordion/accordion.ts"
1649
+ "default": "false"
1650
+ },
1651
+ {
1652
+ "kind": "field",
1653
+ "name": "hideMenuSingleOption",
1654
+ "type": {
1655
+ "text": "boolean"
1656
+ },
1657
+ "default": "false"
1658
+ },
1659
+ {
1660
+ "kind": "field",
1661
+ "name": "singleOption",
1662
+ "type": {
1663
+ "text": "ActionMenuItem"
1579
1664
  }
1580
1665
  },
1581
1666
  {
1582
1667
  "kind": "field",
1583
- "name": "setItems",
1584
- "privacy": "private",
1585
- "inheritedFrom": {
1586
- "name": "Accordion",
1587
- "module": "src/accordion/accordion.ts"
1668
+ "name": "actionsMenu",
1669
+ "type": {
1670
+ "text": "HTMLElement"
1588
1671
  }
1589
1672
  },
1590
1673
  {
1591
1674
  "kind": "method",
1592
- "name": "resetItems",
1593
- "privacy": "private",
1594
- "return": {
1595
- "type": {
1596
- "text": "void"
1675
+ "name": "definitionChanged",
1676
+ "privacy": "protected",
1677
+ "parameters": [
1678
+ {
1679
+ "name": "oldValue",
1680
+ "type": {
1681
+ "text": "any"
1682
+ }
1683
+ },
1684
+ {
1685
+ "name": "newValue",
1686
+ "type": {
1687
+ "text": "any"
1688
+ }
1597
1689
  }
1598
- },
1599
- "inheritedFrom": {
1600
- "name": "Accordion",
1601
- "module": "src/accordion/accordion.ts"
1602
- }
1603
- },
1604
- {
1605
- "kind": "field",
1606
- "name": "removeItemListeners",
1607
- "privacy": "private",
1608
- "inheritedFrom": {
1609
- "name": "Accordion",
1610
- "module": "src/accordion/accordion.ts"
1611
- }
1690
+ ]
1612
1691
  },
1613
1692
  {
1614
- "kind": "field",
1615
- "name": "activeItemChange",
1616
- "privacy": "private",
1617
- "inheritedFrom": {
1618
- "name": "Accordion",
1619
- "module": "src/accordion/accordion.ts"
1620
- }
1693
+ "kind": "method",
1694
+ "name": "openChanged",
1695
+ "privacy": "protected"
1621
1696
  },
1622
1697
  {
1623
1698
  "kind": "method",
1624
- "name": "getItemIds",
1625
- "privacy": "private",
1626
- "return": {
1627
- "type": {
1628
- "text": "Array<string | null>"
1629
- }
1630
- },
1631
- "inheritedFrom": {
1632
- "name": "Accordion",
1633
- "module": "src/accordion/accordion.ts"
1634
- }
1699
+ "name": "toggleActionsMenuVisibility"
1635
1700
  },
1636
1701
  {
1637
1702
  "kind": "method",
1638
- "name": "isSingleExpandMode",
1639
- "privacy": "private",
1640
- "return": {
1641
- "type": {
1642
- "text": "boolean"
1703
+ "name": "onActionMenuItemClick",
1704
+ "parameters": [
1705
+ {
1706
+ "name": "callback",
1707
+ "type": {
1708
+ "text": "(rowData) => void | any"
1709
+ }
1643
1710
  }
1644
- },
1645
- "inheritedFrom": {
1646
- "name": "Accordion",
1647
- "module": "src/accordion/accordion.ts"
1648
- }
1711
+ ]
1649
1712
  },
1650
1713
  {
1651
1714
  "kind": "field",
1652
- "name": "handleItemKeyDown",
1653
- "privacy": "private",
1654
- "inheritedFrom": {
1655
- "name": "Accordion",
1656
- "module": "src/accordion/accordion.ts"
1657
- }
1715
+ "name": "allActions",
1716
+ "type": {
1717
+ "text": "ActionMenuItem[]"
1718
+ },
1719
+ "readonly": true
1658
1720
  },
1659
1721
  {
1660
1722
  "kind": "field",
1661
- "name": "handleItemFocus",
1662
- "privacy": "private",
1663
- "inheritedFrom": {
1664
- "name": "Accordion",
1665
- "module": "src/accordion/accordion.ts"
1666
- }
1723
+ "name": "rowData",
1724
+ "readonly": true
1667
1725
  },
1668
1726
  {
1669
1727
  "kind": "method",
1670
- "name": "adjust",
1671
- "privacy": "private",
1672
- "return": {
1673
- "type": {
1674
- "text": "void"
1675
- }
1676
- },
1728
+ "name": "getLabel",
1677
1729
  "parameters": [
1678
1730
  {
1679
- "name": "adjustment",
1731
+ "name": "name",
1680
1732
  "type": {
1681
- "text": "number"
1733
+ "text": "string | ((rowData: any) => string)"
1682
1734
  }
1683
1735
  }
1684
- ],
1685
- "inheritedFrom": {
1686
- "name": "Accordion",
1687
- "module": "src/accordion/accordion.ts"
1688
- }
1736
+ ]
1689
1737
  },
1690
1738
  {
1691
1739
  "kind": "method",
1692
- "name": "focusItem",
1693
- "privacy": "private",
1694
- "return": {
1695
- "type": {
1696
- "text": "void"
1740
+ "name": "getTemplate",
1741
+ "parameters": [
1742
+ {
1743
+ "name": "prefix",
1744
+ "type": {
1745
+ "text": "string"
1746
+ }
1697
1747
  }
1698
- },
1699
- "inheritedFrom": {
1700
- "name": "Accordion",
1701
- "module": "src/accordion/accordion.ts"
1702
- }
1748
+ ]
1703
1749
  },
1704
1750
  {
1705
1751
  "kind": "field",
@@ -1813,109 +1859,107 @@
1813
1859
  }
1814
1860
  }
1815
1861
  ],
1816
- "events": [
1862
+ "attributes": [
1817
1863
  {
1818
- "description": "Fires a custom 'change' event when the active item changes",
1819
- "name": "change",
1820
- "inheritedFrom": {
1821
- "name": "Accordion",
1822
- "module": "src/accordion/accordion.ts"
1823
- }
1864
+ "name": "is-vertical",
1865
+ "type": {
1866
+ "text": "boolean"
1867
+ },
1868
+ "default": "false",
1869
+ "fieldName": "isVertical"
1870
+ },
1871
+ {
1872
+ "name": "add-default-actions",
1873
+ "type": {
1874
+ "text": "boolean"
1875
+ },
1876
+ "default": "true",
1877
+ "fieldName": "addDefaultActions"
1878
+ },
1879
+ {
1880
+ "name": "auto-close-on-action",
1881
+ "type": {
1882
+ "text": "boolean"
1883
+ },
1884
+ "default": "true",
1885
+ "fieldName": "autoCloseOnAction"
1886
+ },
1887
+ {
1888
+ "name": "name",
1889
+ "type": {
1890
+ "text": "string"
1891
+ },
1892
+ "default": "'Actions'",
1893
+ "fieldName": "name"
1894
+ },
1895
+ {
1896
+ "name": "open",
1897
+ "type": {
1898
+ "text": "boolean"
1899
+ },
1900
+ "default": "false",
1901
+ "fieldName": "open"
1902
+ },
1903
+ {
1904
+ "name": "buttonAppearance",
1905
+ "type": {
1906
+ "text": "string"
1907
+ },
1908
+ "fieldName": "buttonAppearance"
1909
+ },
1910
+ {
1911
+ "name": "hide-disabled",
1912
+ "type": {
1913
+ "text": "boolean"
1914
+ },
1915
+ "default": "false",
1916
+ "fieldName": "hideDisabled"
1917
+ },
1918
+ {
1919
+ "name": "hide-menu-single-option",
1920
+ "type": {
1921
+ "text": "boolean"
1922
+ },
1923
+ "default": "false",
1924
+ "fieldName": "hideMenuSingleOption"
1824
1925
  }
1825
- ]
1826
- },
1827
- {
1828
- "kind": "variable",
1829
- "name": "foundationAccordionShadowOptions",
1830
- "type": {
1831
- "text": "ShadowRootInit"
1832
- },
1833
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1834
- },
1835
- {
1836
- "kind": "variable",
1837
- "name": "defaultAccordionConfig",
1838
- "type": {
1839
- "text": "object"
1926
+ ],
1927
+ "superclass": {
1928
+ "name": "FoundationElement",
1929
+ "package": "@microsoft/fast-foundation"
1840
1930
  },
1841
- "default": "{}"
1842
- },
1843
- {
1844
- "kind": "variable",
1845
- "name": "foundationAccordion",
1846
- "description": "The Foundation Accordion",
1847
- "privacy": "public"
1848
- }
1849
- ],
1850
- "exports": [
1851
- {
1852
- "kind": "js",
1853
- "name": "Accordion",
1854
- "declaration": {
1855
- "name": "Accordion",
1856
- "module": "src/accordion/accordion.ts"
1857
- }
1858
- },
1859
- {
1860
- "kind": "js",
1861
- "name": "foundationAccordionShadowOptions",
1862
- "declaration": {
1863
- "name": "foundationAccordionShadowOptions",
1864
- "module": "src/accordion/accordion.ts"
1865
- }
1866
- },
1867
- {
1868
- "kind": "js",
1869
- "name": "defaultAccordionConfig",
1870
- "declaration": {
1871
- "name": "defaultAccordionConfig",
1872
- "module": "src/accordion/accordion.ts"
1873
- }
1874
- },
1875
- {
1876
- "kind": "js",
1877
- "name": "foundationAccordion",
1878
- "declaration": {
1879
- "name": "foundationAccordion",
1880
- "module": "src/accordion/accordion.ts"
1881
- }
1882
- }
1883
- ]
1884
- },
1885
- {
1886
- "kind": "javascript-module",
1887
- "path": "src/accordion/index.ts",
1888
- "declarations": [],
1889
- "exports": [
1890
- {
1891
- "kind": "js",
1892
- "name": "*",
1893
- "declaration": {
1894
- "name": "*",
1895
- "package": "./accordion.template"
1896
- }
1931
+ "tagName": "%%prefix%%-actions-menu",
1932
+ "customElement": true
1897
1933
  },
1934
+ {
1935
+ "kind": "variable",
1936
+ "name": "foundationActionsMenu",
1937
+ "description": "The Foundation Actions Menu",
1938
+ "privacy": "public"
1939
+ }
1940
+ ],
1941
+ "exports": [
1898
1942
  {
1899
1943
  "kind": "js",
1900
- "name": "*",
1944
+ "name": "ActionsMenu",
1901
1945
  "declaration": {
1902
- "name": "*",
1903
- "package": "./accordion.styles"
1946
+ "name": "ActionsMenu",
1947
+ "module": "src/actions-menu/actions-menu.ts"
1904
1948
  }
1905
1949
  },
1906
1950
  {
1907
1951
  "kind": "js",
1908
- "name": "*",
1952
+ "name": "foundationActionsMenu",
1909
1953
  "declaration": {
1910
- "name": "*",
1911
- "package": "./accordion"
1954
+ "name": "foundationActionsMenu",
1955
+ "module": "src/actions-menu/actions-menu.ts"
1912
1956
  }
1913
1957
  }
1914
1958
  ]
1915
1959
  },
1916
1960
  {
1917
1961
  "kind": "javascript-module",
1918
- "path": "src/_config/index.ts",
1962
+ "path": "src/actions-menu/index.ts",
1919
1963
  "declarations": [],
1920
1964
  "exports": [
1921
1965
  {
@@ -1923,7 +1967,7 @@
1923
1967
  "name": "*",
1924
1968
  "declaration": {
1925
1969
  "name": "*",
1926
- "package": "./styles"
1970
+ "package": "./actions-menu.styles"
1927
1971
  }
1928
1972
  },
1929
1973
  {
@@ -1931,7 +1975,7 @@
1931
1975
  "name": "*",
1932
1976
  "declaration": {
1933
1977
  "name": "*",
1934
- "package": "./tokens"
1978
+ "package": "./actions-menu.template"
1935
1979
  }
1936
1980
  },
1937
1981
  {
@@ -1939,7 +1983,7 @@
1939
1983
  "name": "*",
1940
1984
  "declaration": {
1941
1985
  "name": "*",
1942
- "package": "./values"
1986
+ "package": "./actions-menu"
1943
1987
  }
1944
1988
  }
1945
1989
  ]
@@ -3398,34 +3442,11 @@
3398
3442
  },
3399
3443
  {
3400
3444
  "kind": "javascript-module",
3401
- "path": "src/actions-menu/actions-menu.styles.ts",
3445
+ "path": "src/accordion/accordion.styles.ts",
3402
3446
  "declarations": [
3403
3447
  {
3404
3448
  "kind": "function",
3405
- "name": "actionsMenuBaseStyles",
3406
- "return": {
3407
- "type": {
3408
- "text": "ElementStyles"
3409
- }
3410
- },
3411
- "parameters": [
3412
- {
3413
- "name": "context",
3414
- "type": {
3415
- "text": "ElementDefinitionContext"
3416
- }
3417
- },
3418
- {
3419
- "name": "definition",
3420
- "type": {
3421
- "text": "FoundationElementDefinition"
3422
- }
3423
- }
3424
- ]
3425
- },
3426
- {
3427
- "kind": "function",
3428
- "name": "foundationActionsMenuStyles",
3449
+ "name": "foundationAccordionStyles",
3429
3450
  "return": {
3430
3451
  "type": {
3431
3452
  "text": "ElementStyles"
@@ -3450,269 +3471,277 @@
3450
3471
  "exports": [
3451
3472
  {
3452
3473
  "kind": "js",
3453
- "name": "actionsMenuBaseStyles",
3454
- "declaration": {
3455
- "name": "actionsMenuBaseStyles",
3456
- "module": "src/actions-menu/actions-menu.styles.ts"
3457
- }
3458
- },
3459
- {
3460
- "kind": "js",
3461
- "name": "foundationActionsMenuStyles",
3474
+ "name": "foundationAccordionStyles",
3462
3475
  "declaration": {
3463
- "name": "foundationActionsMenuStyles",
3464
- "module": "src/actions-menu/actions-menu.styles.ts"
3476
+ "name": "foundationAccordionStyles",
3477
+ "module": "src/accordion/accordion.styles.ts"
3465
3478
  }
3466
3479
  }
3467
3480
  ]
3468
3481
  },
3469
3482
  {
3470
3483
  "kind": "javascript-module",
3471
- "path": "src/actions-menu/actions-menu.template.ts",
3484
+ "path": "src/accordion/accordion.template.ts",
3472
3485
  "declarations": [
3473
3486
  {
3474
3487
  "kind": "function",
3475
- "name": "menuTemplate",
3488
+ "name": "foundationAccordionTemplate",
3489
+ "return": {
3490
+ "type": {
3491
+ "text": "ViewTemplate<Accordion>"
3492
+ }
3493
+ },
3476
3494
  "parameters": [
3477
3495
  {
3478
- "name": "prefix",
3496
+ "name": "context",
3479
3497
  "type": {
3480
- "text": "string"
3498
+ "text": "ElementDefinitionContext"
3481
3499
  }
3482
- }
3483
- ]
3484
- },
3485
- {
3486
- "kind": "function",
3487
- "name": "singleOptionTemplate",
3488
- "parameters": [
3500
+ },
3489
3501
  {
3490
- "name": "prefix",
3502
+ "name": "definition",
3491
3503
  "type": {
3492
- "text": "string"
3504
+ "text": "FoundationElementDefinition"
3493
3505
  }
3494
3506
  }
3495
3507
  ]
3496
- },
3497
- {
3498
- "kind": "variable",
3499
- "name": "foundationActionsMenuTemplate",
3500
- "type": {
3501
- "text": "ViewTemplate<ActionsMenu>"
3502
- },
3503
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
3504
3508
  }
3505
3509
  ],
3506
3510
  "exports": [
3507
3511
  {
3508
3512
  "kind": "js",
3509
- "name": "menuTemplate",
3510
- "declaration": {
3511
- "name": "menuTemplate",
3512
- "module": "src/actions-menu/actions-menu.template.ts"
3513
- }
3514
- },
3515
- {
3516
- "kind": "js",
3517
- "name": "singleOptionTemplate",
3518
- "declaration": {
3519
- "name": "singleOptionTemplate",
3520
- "module": "src/actions-menu/actions-menu.template.ts"
3521
- }
3522
- },
3523
- {
3524
- "kind": "js",
3525
- "name": "foundationActionsMenuTemplate",
3513
+ "name": "foundationAccordionTemplate",
3526
3514
  "declaration": {
3527
- "name": "foundationActionsMenuTemplate",
3528
- "module": "src/actions-menu/actions-menu.template.ts"
3515
+ "name": "foundationAccordionTemplate",
3516
+ "module": "src/accordion/accordion.template.ts"
3529
3517
  }
3530
3518
  }
3531
3519
  ]
3532
3520
  },
3533
3521
  {
3534
3522
  "kind": "javascript-module",
3535
- "path": "src/actions-menu/actions-menu.ts",
3523
+ "path": "src/accordion/accordion.ts",
3536
3524
  "declarations": [
3537
3525
  {
3538
3526
  "kind": "class",
3539
3527
  "description": "",
3540
- "name": "ActionsMenu",
3541
- "members": [
3528
+ "name": "Accordion",
3529
+ "superclass": {
3530
+ "name": "FASTAccordion",
3531
+ "package": "@microsoft/fast-foundation"
3532
+ },
3533
+ "tagName": "%%prefix%%-accordion",
3534
+ "customElement": true,
3535
+ "attributes": [
3542
3536
  {
3543
- "kind": "field",
3544
- "name": "actions",
3537
+ "name": "expand-mode",
3545
3538
  "type": {
3546
- "text": "ActionMenuItem[]"
3539
+ "text": "AccordionExpandMode"
3540
+ },
3541
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3542
+ "fieldName": "expandmode",
3543
+ "inheritedFrom": {
3544
+ "name": "Accordion",
3545
+ "module": "src/accordion/accordion.ts"
3547
3546
  }
3548
- },
3547
+ }
3548
+ ],
3549
+ "members": [
3549
3550
  {
3550
3551
  "kind": "field",
3551
- "name": "isVertical",
3552
+ "name": "expandmode",
3552
3553
  "type": {
3553
- "text": "boolean"
3554
+ "text": "AccordionExpandMode"
3554
3555
  },
3555
- "default": "false"
3556
+ "privacy": "public",
3557
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3558
+ "inheritedFrom": {
3559
+ "name": "Accordion",
3560
+ "module": "src/accordion/accordion.ts"
3561
+ }
3556
3562
  },
3557
3563
  {
3558
3564
  "kind": "field",
3559
- "name": "addDefaultActions",
3565
+ "name": "activeid",
3560
3566
  "type": {
3561
- "text": "boolean"
3567
+ "text": "string | null"
3562
3568
  },
3563
- "default": "true"
3569
+ "privacy": "private",
3570
+ "inheritedFrom": {
3571
+ "name": "Accordion",
3572
+ "module": "src/accordion/accordion.ts"
3573
+ }
3564
3574
  },
3565
3575
  {
3566
3576
  "kind": "field",
3567
- "name": "autoCloseOnAction",
3577
+ "name": "activeItemIndex",
3568
3578
  "type": {
3569
- "text": "boolean"
3579
+ "text": "number"
3570
3580
  },
3571
- "default": "true"
3572
- },
3573
- {
3574
- "kind": "field",
3575
- "name": "classNames",
3576
- "type": {
3577
- "text": "string"
3581
+ "privacy": "private",
3582
+ "default": "0",
3583
+ "inheritedFrom": {
3584
+ "name": "Accordion",
3585
+ "module": "src/accordion/accordion.ts"
3578
3586
  }
3579
3587
  },
3580
3588
  {
3581
3589
  "kind": "field",
3582
- "name": "definition",
3590
+ "name": "accordionIds",
3583
3591
  "type": {
3584
- "text": "any"
3592
+ "text": "Array<string | null>"
3593
+ },
3594
+ "privacy": "private",
3595
+ "inheritedFrom": {
3596
+ "name": "Accordion",
3597
+ "module": "src/accordion/accordion.ts"
3585
3598
  }
3586
3599
  },
3587
3600
  {
3588
3601
  "kind": "field",
3589
- "name": "name",
3590
- "type": {
3591
- "text": "string"
3592
- },
3593
- "default": "'Actions'"
3602
+ "name": "change",
3603
+ "privacy": "private",
3604
+ "inheritedFrom": {
3605
+ "name": "Accordion",
3606
+ "module": "src/accordion/accordion.ts"
3607
+ }
3594
3608
  },
3595
3609
  {
3596
- "kind": "field",
3597
- "name": "open",
3598
- "type": {
3599
- "text": "boolean"
3610
+ "kind": "method",
3611
+ "name": "findExpandedItem",
3612
+ "privacy": "private",
3613
+ "return": {
3614
+ "type": {
3615
+ "text": "AccordionItem | null"
3616
+ }
3600
3617
  },
3601
- "default": "false"
3602
- },
3603
- {
3604
- "kind": "field",
3605
- "name": "buttonAppearance",
3606
- "type": {
3607
- "text": "string"
3618
+ "inheritedFrom": {
3619
+ "name": "Accordion",
3620
+ "module": "src/accordion/accordion.ts"
3608
3621
  }
3609
3622
  },
3610
3623
  {
3611
3624
  "kind": "field",
3612
- "name": "hideDisabled",
3613
- "type": {
3614
- "text": "boolean"
3615
- },
3616
- "default": "false"
3625
+ "name": "setItems",
3626
+ "privacy": "private",
3627
+ "inheritedFrom": {
3628
+ "name": "Accordion",
3629
+ "module": "src/accordion/accordion.ts"
3630
+ }
3617
3631
  },
3618
3632
  {
3619
- "kind": "field",
3620
- "name": "hideMenuSingleOption",
3621
- "type": {
3622
- "text": "boolean"
3633
+ "kind": "method",
3634
+ "name": "resetItems",
3635
+ "privacy": "private",
3636
+ "return": {
3637
+ "type": {
3638
+ "text": "void"
3639
+ }
3623
3640
  },
3624
- "default": "false"
3641
+ "inheritedFrom": {
3642
+ "name": "Accordion",
3643
+ "module": "src/accordion/accordion.ts"
3644
+ }
3625
3645
  },
3626
3646
  {
3627
3647
  "kind": "field",
3628
- "name": "singleOption",
3629
- "type": {
3630
- "text": "ActionMenuItem"
3648
+ "name": "removeItemListeners",
3649
+ "privacy": "private",
3650
+ "inheritedFrom": {
3651
+ "name": "Accordion",
3652
+ "module": "src/accordion/accordion.ts"
3631
3653
  }
3632
3654
  },
3633
3655
  {
3634
3656
  "kind": "field",
3635
- "name": "actionsMenu",
3636
- "type": {
3637
- "text": "HTMLElement"
3657
+ "name": "activeItemChange",
3658
+ "privacy": "private",
3659
+ "inheritedFrom": {
3660
+ "name": "Accordion",
3661
+ "module": "src/accordion/accordion.ts"
3638
3662
  }
3639
3663
  },
3640
3664
  {
3641
3665
  "kind": "method",
3642
- "name": "definitionChanged",
3643
- "privacy": "protected",
3644
- "parameters": [
3645
- {
3646
- "name": "oldValue",
3647
- "type": {
3648
- "text": "any"
3649
- }
3650
- },
3651
- {
3652
- "name": "newValue",
3653
- "type": {
3654
- "text": "any"
3655
- }
3666
+ "name": "getItemIds",
3667
+ "privacy": "private",
3668
+ "return": {
3669
+ "type": {
3670
+ "text": "Array<string | null>"
3656
3671
  }
3657
- ]
3658
- },
3659
- {
3660
- "kind": "method",
3661
- "name": "openChanged",
3662
- "privacy": "protected"
3663
- },
3664
- {
3665
- "kind": "method",
3666
- "name": "toggleActionsMenuVisibility"
3672
+ },
3673
+ "inheritedFrom": {
3674
+ "name": "Accordion",
3675
+ "module": "src/accordion/accordion.ts"
3676
+ }
3667
3677
  },
3668
3678
  {
3669
3679
  "kind": "method",
3670
- "name": "onActionMenuItemClick",
3671
- "parameters": [
3672
- {
3673
- "name": "callback",
3674
- "type": {
3675
- "text": "(rowData) => void | any"
3676
- }
3680
+ "name": "isSingleExpandMode",
3681
+ "privacy": "private",
3682
+ "return": {
3683
+ "type": {
3684
+ "text": "boolean"
3677
3685
  }
3678
- ]
3686
+ },
3687
+ "inheritedFrom": {
3688
+ "name": "Accordion",
3689
+ "module": "src/accordion/accordion.ts"
3690
+ }
3679
3691
  },
3680
3692
  {
3681
3693
  "kind": "field",
3682
- "name": "allActions",
3683
- "type": {
3684
- "text": "ActionMenuItem[]"
3685
- },
3686
- "readonly": true
3694
+ "name": "handleItemKeyDown",
3695
+ "privacy": "private",
3696
+ "inheritedFrom": {
3697
+ "name": "Accordion",
3698
+ "module": "src/accordion/accordion.ts"
3699
+ }
3687
3700
  },
3688
3701
  {
3689
3702
  "kind": "field",
3690
- "name": "rowData",
3691
- "readonly": true
3703
+ "name": "handleItemFocus",
3704
+ "privacy": "private",
3705
+ "inheritedFrom": {
3706
+ "name": "Accordion",
3707
+ "module": "src/accordion/accordion.ts"
3708
+ }
3692
3709
  },
3693
3710
  {
3694
3711
  "kind": "method",
3695
- "name": "getLabel",
3712
+ "name": "adjust",
3713
+ "privacy": "private",
3714
+ "return": {
3715
+ "type": {
3716
+ "text": "void"
3717
+ }
3718
+ },
3696
3719
  "parameters": [
3697
3720
  {
3698
- "name": "name",
3721
+ "name": "adjustment",
3699
3722
  "type": {
3700
- "text": "string | ((rowData: any) => string)"
3723
+ "text": "number"
3701
3724
  }
3702
3725
  }
3703
- ]
3726
+ ],
3727
+ "inheritedFrom": {
3728
+ "name": "Accordion",
3729
+ "module": "src/accordion/accordion.ts"
3730
+ }
3704
3731
  },
3705
3732
  {
3706
3733
  "kind": "method",
3707
- "name": "getTemplate",
3708
- "parameters": [
3709
- {
3710
- "name": "prefix",
3711
- "type": {
3712
- "text": "string"
3713
- }
3734
+ "name": "focusItem",
3735
+ "privacy": "private",
3736
+ "return": {
3737
+ "type": {
3738
+ "text": "void"
3714
3739
  }
3715
- ]
3740
+ },
3741
+ "inheritedFrom": {
3742
+ "name": "Accordion",
3743
+ "module": "src/accordion/accordion.ts"
3744
+ }
3716
3745
  },
3717
3746
  {
3718
3747
  "kind": "field",
@@ -3826,107 +3855,78 @@
3826
3855
  }
3827
3856
  }
3828
3857
  ],
3829
- "attributes": [
3830
- {
3831
- "name": "is-vertical",
3832
- "type": {
3833
- "text": "boolean"
3834
- },
3835
- "default": "false",
3836
- "fieldName": "isVertical"
3837
- },
3838
- {
3839
- "name": "add-default-actions",
3840
- "type": {
3841
- "text": "boolean"
3842
- },
3843
- "default": "true",
3844
- "fieldName": "addDefaultActions"
3845
- },
3846
- {
3847
- "name": "auto-close-on-action",
3848
- "type": {
3849
- "text": "boolean"
3850
- },
3851
- "default": "true",
3852
- "fieldName": "autoCloseOnAction"
3853
- },
3854
- {
3855
- "name": "name",
3856
- "type": {
3857
- "text": "string"
3858
- },
3859
- "default": "'Actions'",
3860
- "fieldName": "name"
3861
- },
3862
- {
3863
- "name": "open",
3864
- "type": {
3865
- "text": "boolean"
3866
- },
3867
- "default": "false",
3868
- "fieldName": "open"
3869
- },
3870
- {
3871
- "name": "buttonAppearance",
3872
- "type": {
3873
- "text": "string"
3874
- },
3875
- "fieldName": "buttonAppearance"
3876
- },
3877
- {
3878
- "name": "hide-disabled",
3879
- "type": {
3880
- "text": "boolean"
3881
- },
3882
- "default": "false",
3883
- "fieldName": "hideDisabled"
3884
- },
3858
+ "events": [
3885
3859
  {
3886
- "name": "hide-menu-single-option",
3887
- "type": {
3888
- "text": "boolean"
3889
- },
3890
- "default": "false",
3891
- "fieldName": "hideMenuSingleOption"
3860
+ "description": "Fires a custom 'change' event when the active item changes",
3861
+ "name": "change",
3862
+ "inheritedFrom": {
3863
+ "name": "Accordion",
3864
+ "module": "src/accordion/accordion.ts"
3865
+ }
3892
3866
  }
3893
- ],
3894
- "superclass": {
3895
- "name": "FoundationElement",
3896
- "package": "@microsoft/fast-foundation"
3867
+ ]
3868
+ },
3869
+ {
3870
+ "kind": "variable",
3871
+ "name": "foundationAccordionShadowOptions",
3872
+ "type": {
3873
+ "text": "ShadowRootInit"
3897
3874
  },
3898
- "tagName": "%%prefix%%-actions-menu",
3899
- "customElement": true
3875
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3900
3876
  },
3901
3877
  {
3902
3878
  "kind": "variable",
3903
- "name": "foundationActionsMenu",
3904
- "description": "The Foundation Actions Menu",
3879
+ "name": "defaultAccordionConfig",
3880
+ "type": {
3881
+ "text": "object"
3882
+ },
3883
+ "default": "{}"
3884
+ },
3885
+ {
3886
+ "kind": "variable",
3887
+ "name": "foundationAccordion",
3888
+ "description": "The Foundation Accordion",
3905
3889
  "privacy": "public"
3906
3890
  }
3907
3891
  ],
3908
3892
  "exports": [
3909
3893
  {
3910
3894
  "kind": "js",
3911
- "name": "ActionsMenu",
3895
+ "name": "Accordion",
3912
3896
  "declaration": {
3913
- "name": "ActionsMenu",
3914
- "module": "src/actions-menu/actions-menu.ts"
3897
+ "name": "Accordion",
3898
+ "module": "src/accordion/accordion.ts"
3915
3899
  }
3916
3900
  },
3917
3901
  {
3918
3902
  "kind": "js",
3919
- "name": "foundationActionsMenu",
3903
+ "name": "foundationAccordionShadowOptions",
3920
3904
  "declaration": {
3921
- "name": "foundationActionsMenu",
3922
- "module": "src/actions-menu/actions-menu.ts"
3905
+ "name": "foundationAccordionShadowOptions",
3906
+ "module": "src/accordion/accordion.ts"
3907
+ }
3908
+ },
3909
+ {
3910
+ "kind": "js",
3911
+ "name": "defaultAccordionConfig",
3912
+ "declaration": {
3913
+ "name": "defaultAccordionConfig",
3914
+ "module": "src/accordion/accordion.ts"
3915
+ }
3916
+ },
3917
+ {
3918
+ "kind": "js",
3919
+ "name": "foundationAccordion",
3920
+ "declaration": {
3921
+ "name": "foundationAccordion",
3922
+ "module": "src/accordion/accordion.ts"
3923
3923
  }
3924
3924
  }
3925
3925
  ]
3926
3926
  },
3927
3927
  {
3928
3928
  "kind": "javascript-module",
3929
- "path": "src/actions-menu/index.ts",
3929
+ "path": "src/accordion/index.ts",
3930
3930
  "declarations": [],
3931
3931
  "exports": [
3932
3932
  {
@@ -3934,7 +3934,7 @@
3934
3934
  "name": "*",
3935
3935
  "declaration": {
3936
3936
  "name": "*",
3937
- "package": "./actions-menu.styles"
3937
+ "package": "./accordion.template"
3938
3938
  }
3939
3939
  },
3940
3940
  {
@@ -3942,7 +3942,7 @@
3942
3942
  "name": "*",
3943
3943
  "declaration": {
3944
3944
  "name": "*",
3945
- "package": "./actions-menu.template"
3945
+ "package": "./accordion.styles"
3946
3946
  }
3947
3947
  },
3948
3948
  {
@@ -3950,7 +3950,7 @@
3950
3950
  "name": "*",
3951
3951
  "declaration": {
3952
3952
  "name": "*",
3953
- "package": "./actions-menu"
3953
+ "package": "./accordion"
3954
3954
  }
3955
3955
  }
3956
3956
  ]