@genesislcap/foundation-ui 15.5.0 → 15.6.1

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.
@@ -1424,65 +1424,11 @@
1424
1424
  },
1425
1425
  {
1426
1426
  "kind": "javascript-module",
1427
- "path": "src/_config/index.ts",
1428
- "declarations": [],
1429
- "exports": [
1430
- {
1431
- "kind": "js",
1432
- "name": "*",
1433
- "declaration": {
1434
- "name": "*",
1435
- "package": "./styles"
1436
- }
1437
- },
1438
- {
1439
- "kind": "js",
1440
- "name": "*",
1441
- "declaration": {
1442
- "name": "*",
1443
- "package": "./tokens"
1444
- }
1445
- },
1446
- {
1447
- "kind": "js",
1448
- "name": "*",
1449
- "declaration": {
1450
- "name": "*",
1451
- "package": "./values"
1452
- }
1453
- }
1454
- ]
1455
- },
1456
- {
1457
- "kind": "javascript-module",
1458
- "path": "src/actions-menu/actions-menu.styles.ts",
1427
+ "path": "src/accordion/accordion.styles.ts",
1459
1428
  "declarations": [
1460
1429
  {
1461
1430
  "kind": "function",
1462
- "name": "actionsMenuBaseStyles",
1463
- "return": {
1464
- "type": {
1465
- "text": "ElementStyles"
1466
- }
1467
- },
1468
- "parameters": [
1469
- {
1470
- "name": "context",
1471
- "type": {
1472
- "text": "ElementDefinitionContext"
1473
- }
1474
- },
1475
- {
1476
- "name": "definition",
1477
- "type": {
1478
- "text": "FoundationElementDefinition"
1479
- }
1480
- }
1481
- ]
1482
- },
1483
- {
1484
- "kind": "function",
1485
- "name": "foundationActionsMenuStyles",
1431
+ "name": "foundationAccordionStyles",
1486
1432
  "return": {
1487
1433
  "type": {
1488
1434
  "text": "ElementStyles"
@@ -1507,281 +1453,277 @@
1507
1453
  "exports": [
1508
1454
  {
1509
1455
  "kind": "js",
1510
- "name": "actionsMenuBaseStyles",
1511
- "declaration": {
1512
- "name": "actionsMenuBaseStyles",
1513
- "module": "src/actions-menu/actions-menu.styles.ts"
1514
- }
1515
- },
1516
- {
1517
- "kind": "js",
1518
- "name": "foundationActionsMenuStyles",
1456
+ "name": "foundationAccordionStyles",
1519
1457
  "declaration": {
1520
- "name": "foundationActionsMenuStyles",
1521
- "module": "src/actions-menu/actions-menu.styles.ts"
1458
+ "name": "foundationAccordionStyles",
1459
+ "module": "src/accordion/accordion.styles.ts"
1522
1460
  }
1523
1461
  }
1524
1462
  ]
1525
1463
  },
1526
1464
  {
1527
1465
  "kind": "javascript-module",
1528
- "path": "src/actions-menu/actions-menu.template.ts",
1466
+ "path": "src/accordion/accordion.template.ts",
1529
1467
  "declarations": [
1530
1468
  {
1531
1469
  "kind": "function",
1532
- "name": "menuTemplate",
1470
+ "name": "foundationAccordionTemplate",
1471
+ "return": {
1472
+ "type": {
1473
+ "text": "ViewTemplate<Accordion>"
1474
+ }
1475
+ },
1533
1476
  "parameters": [
1534
1477
  {
1535
- "name": "prefix",
1478
+ "name": "context",
1536
1479
  "type": {
1537
- "text": "string"
1480
+ "text": "ElementDefinitionContext"
1538
1481
  }
1539
- }
1540
- ]
1541
- },
1542
- {
1543
- "kind": "function",
1544
- "name": "singleOptionTemplate",
1545
- "parameters": [
1482
+ },
1546
1483
  {
1547
- "name": "prefix",
1484
+ "name": "definition",
1548
1485
  "type": {
1549
- "text": "string"
1486
+ "text": "FoundationElementDefinition"
1550
1487
  }
1551
1488
  }
1552
1489
  ]
1553
- },
1554
- {
1555
- "kind": "variable",
1556
- "name": "foundationActionsMenuTemplate",
1557
- "type": {
1558
- "text": "ViewTemplate<ActionsMenu>"
1559
- },
1560
- "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`"
1561
1490
  }
1562
1491
  ],
1563
1492
  "exports": [
1564
1493
  {
1565
1494
  "kind": "js",
1566
- "name": "menuTemplate",
1567
- "declaration": {
1568
- "name": "menuTemplate",
1569
- "module": "src/actions-menu/actions-menu.template.ts"
1570
- }
1571
- },
1572
- {
1573
- "kind": "js",
1574
- "name": "singleOptionTemplate",
1575
- "declaration": {
1576
- "name": "singleOptionTemplate",
1577
- "module": "src/actions-menu/actions-menu.template.ts"
1578
- }
1579
- },
1580
- {
1581
- "kind": "js",
1582
- "name": "foundationActionsMenuTemplate",
1495
+ "name": "foundationAccordionTemplate",
1583
1496
  "declaration": {
1584
- "name": "foundationActionsMenuTemplate",
1585
- "module": "src/actions-menu/actions-menu.template.ts"
1497
+ "name": "foundationAccordionTemplate",
1498
+ "module": "src/accordion/accordion.template.ts"
1586
1499
  }
1587
1500
  }
1588
1501
  ]
1589
1502
  },
1590
1503
  {
1591
1504
  "kind": "javascript-module",
1592
- "path": "src/actions-menu/actions-menu.ts",
1505
+ "path": "src/accordion/accordion.ts",
1593
1506
  "declarations": [
1594
1507
  {
1595
1508
  "kind": "class",
1596
1509
  "description": "",
1597
- "name": "ActionsMenu",
1598
- "members": [
1599
- {
1600
- "kind": "field",
1601
- "name": "actions",
1602
- "type": {
1603
- "text": "ActionMenuItem[]"
1604
- }
1605
- },
1606
- {
1607
- "kind": "field",
1608
- "name": "isVertical",
1609
- "type": {
1610
- "text": "boolean"
1611
- },
1612
- "default": "false"
1613
- },
1614
- {
1615
- "kind": "field",
1616
- "name": "addDefaultActions",
1617
- "type": {
1618
- "text": "boolean"
1619
- },
1620
- "default": "true"
1621
- },
1510
+ "name": "Accordion",
1511
+ "superclass": {
1512
+ "name": "FASTAccordion",
1513
+ "package": "@microsoft/fast-foundation"
1514
+ },
1515
+ "tagName": "%%prefix%%-accordion",
1516
+ "customElement": true,
1517
+ "attributes": [
1622
1518
  {
1623
- "kind": "field",
1624
- "name": "autoCloseOnAction",
1519
+ "name": "expand-mode",
1625
1520
  "type": {
1626
- "text": "boolean"
1521
+ "text": "AccordionExpandMode"
1627
1522
  },
1628
- "default": "true"
1629
- },
1630
- {
1631
- "kind": "field",
1632
- "name": "classNames",
1633
- "type": {
1634
- "text": "string"
1635
- }
1636
- },
1637
- {
1638
- "kind": "field",
1639
- "name": "definition",
1640
- "type": {
1641
- "text": "any"
1523
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1524
+ "fieldName": "expandmode",
1525
+ "inheritedFrom": {
1526
+ "name": "Accordion",
1527
+ "module": "src/accordion/accordion.ts"
1642
1528
  }
1643
- },
1529
+ }
1530
+ ],
1531
+ "members": [
1644
1532
  {
1645
1533
  "kind": "field",
1646
- "name": "name",
1534
+ "name": "expandmode",
1647
1535
  "type": {
1648
- "text": "string"
1536
+ "text": "AccordionExpandMode"
1649
1537
  },
1650
- "default": "'Actions'"
1538
+ "privacy": "public",
1539
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1540
+ "inheritedFrom": {
1541
+ "name": "Accordion",
1542
+ "module": "src/accordion/accordion.ts"
1543
+ }
1651
1544
  },
1652
1545
  {
1653
1546
  "kind": "field",
1654
- "name": "open",
1547
+ "name": "activeid",
1655
1548
  "type": {
1656
- "text": "boolean"
1549
+ "text": "string | null"
1657
1550
  },
1658
- "default": "false"
1659
- },
1660
- {
1661
- "kind": "field",
1662
- "name": "buttonAppearance",
1663
- "type": {
1664
- "text": "string"
1551
+ "privacy": "private",
1552
+ "inheritedFrom": {
1553
+ "name": "Accordion",
1554
+ "module": "src/accordion/accordion.ts"
1665
1555
  }
1666
1556
  },
1667
1557
  {
1668
1558
  "kind": "field",
1669
- "name": "hideDisabled",
1559
+ "name": "activeItemIndex",
1670
1560
  "type": {
1671
- "text": "boolean"
1561
+ "text": "number"
1672
1562
  },
1673
- "default": "false"
1563
+ "privacy": "private",
1564
+ "default": "0",
1565
+ "inheritedFrom": {
1566
+ "name": "Accordion",
1567
+ "module": "src/accordion/accordion.ts"
1568
+ }
1674
1569
  },
1675
1570
  {
1676
1571
  "kind": "field",
1677
- "name": "hideMenuSingleOption",
1572
+ "name": "accordionIds",
1678
1573
  "type": {
1679
- "text": "boolean"
1574
+ "text": "Array<string | null>"
1680
1575
  },
1681
- "default": "false"
1576
+ "privacy": "private",
1577
+ "inheritedFrom": {
1578
+ "name": "Accordion",
1579
+ "module": "src/accordion/accordion.ts"
1580
+ }
1682
1581
  },
1683
1582
  {
1684
1583
  "kind": "field",
1685
- "name": "singleOption",
1686
- "type": {
1687
- "text": "ActionMenuItem"
1584
+ "name": "change",
1585
+ "privacy": "private",
1586
+ "inheritedFrom": {
1587
+ "name": "Accordion",
1588
+ "module": "src/accordion/accordion.ts"
1688
1589
  }
1689
1590
  },
1690
1591
  {
1691
- "kind": "field",
1692
- "name": "actionsMenu",
1693
- "type": {
1694
- "text": "HTMLElement"
1592
+ "kind": "method",
1593
+ "name": "findExpandedItem",
1594
+ "privacy": "private",
1595
+ "return": {
1596
+ "type": {
1597
+ "text": "AccordionItem | null"
1598
+ }
1599
+ },
1600
+ "inheritedFrom": {
1601
+ "name": "Accordion",
1602
+ "module": "src/accordion/accordion.ts"
1695
1603
  }
1696
1604
  },
1697
1605
  {
1698
1606
  "kind": "field",
1699
- "name": "actionsOpener",
1700
- "type": {
1701
- "text": "HTMLElement"
1607
+ "name": "setItems",
1608
+ "privacy": "private",
1609
+ "inheritedFrom": {
1610
+ "name": "Accordion",
1611
+ "module": "src/accordion/accordion.ts"
1702
1612
  }
1703
1613
  },
1704
1614
  {
1705
1615
  "kind": "method",
1706
- "name": "updateMenuPosition",
1707
- "privacy": "private"
1708
- },
1709
- {
1710
- "kind": "method",
1711
- "name": "definitionChanged",
1712
- "privacy": "protected",
1713
- "parameters": [
1714
- {
1715
- "name": "oldValue",
1716
- "type": {
1717
- "text": "any"
1718
- }
1719
- },
1720
- {
1721
- "name": "newValue",
1722
- "type": {
1723
- "text": "any"
1724
- }
1616
+ "name": "resetItems",
1617
+ "privacy": "private",
1618
+ "return": {
1619
+ "type": {
1620
+ "text": "void"
1725
1621
  }
1726
- ]
1622
+ },
1623
+ "inheritedFrom": {
1624
+ "name": "Accordion",
1625
+ "module": "src/accordion/accordion.ts"
1626
+ }
1727
1627
  },
1728
1628
  {
1729
- "kind": "method",
1730
- "name": "openChanged",
1731
- "privacy": "protected"
1629
+ "kind": "field",
1630
+ "name": "removeItemListeners",
1631
+ "privacy": "private",
1632
+ "inheritedFrom": {
1633
+ "name": "Accordion",
1634
+ "module": "src/accordion/accordion.ts"
1635
+ }
1636
+ },
1637
+ {
1638
+ "kind": "field",
1639
+ "name": "activeItemChange",
1640
+ "privacy": "private",
1641
+ "inheritedFrom": {
1642
+ "name": "Accordion",
1643
+ "module": "src/accordion/accordion.ts"
1644
+ }
1732
1645
  },
1733
1646
  {
1734
1647
  "kind": "method",
1735
- "name": "toggleActionsMenuVisibility"
1648
+ "name": "getItemIds",
1649
+ "privacy": "private",
1650
+ "return": {
1651
+ "type": {
1652
+ "text": "Array<string | null>"
1653
+ }
1654
+ },
1655
+ "inheritedFrom": {
1656
+ "name": "Accordion",
1657
+ "module": "src/accordion/accordion.ts"
1658
+ }
1736
1659
  },
1737
1660
  {
1738
1661
  "kind": "method",
1739
- "name": "onActionMenuItemClick",
1740
- "parameters": [
1741
- {
1742
- "name": "callback",
1743
- "type": {
1744
- "text": "(rowData) => void | any"
1745
- }
1662
+ "name": "isSingleExpandMode",
1663
+ "privacy": "private",
1664
+ "return": {
1665
+ "type": {
1666
+ "text": "boolean"
1746
1667
  }
1747
- ]
1668
+ },
1669
+ "inheritedFrom": {
1670
+ "name": "Accordion",
1671
+ "module": "src/accordion/accordion.ts"
1672
+ }
1748
1673
  },
1749
1674
  {
1750
1675
  "kind": "field",
1751
- "name": "allActions",
1752
- "type": {
1753
- "text": "ActionMenuItem[]"
1754
- },
1755
- "readonly": true
1676
+ "name": "handleItemKeyDown",
1677
+ "privacy": "private",
1678
+ "inheritedFrom": {
1679
+ "name": "Accordion",
1680
+ "module": "src/accordion/accordion.ts"
1681
+ }
1756
1682
  },
1757
1683
  {
1758
1684
  "kind": "field",
1759
- "name": "rowData",
1760
- "readonly": true
1685
+ "name": "handleItemFocus",
1686
+ "privacy": "private",
1687
+ "inheritedFrom": {
1688
+ "name": "Accordion",
1689
+ "module": "src/accordion/accordion.ts"
1690
+ }
1761
1691
  },
1762
1692
  {
1763
1693
  "kind": "method",
1764
- "name": "getLabel",
1694
+ "name": "adjust",
1695
+ "privacy": "private",
1696
+ "return": {
1697
+ "type": {
1698
+ "text": "void"
1699
+ }
1700
+ },
1765
1701
  "parameters": [
1766
1702
  {
1767
- "name": "name",
1703
+ "name": "adjustment",
1768
1704
  "type": {
1769
- "text": "string | ((rowData: any) => string)"
1705
+ "text": "number"
1770
1706
  }
1771
1707
  }
1772
- ]
1708
+ ],
1709
+ "inheritedFrom": {
1710
+ "name": "Accordion",
1711
+ "module": "src/accordion/accordion.ts"
1712
+ }
1773
1713
  },
1774
1714
  {
1775
1715
  "kind": "method",
1776
- "name": "getTemplate",
1777
- "parameters": [
1778
- {
1779
- "name": "prefix",
1780
- "type": {
1781
- "text": "string"
1782
- }
1716
+ "name": "focusItem",
1717
+ "privacy": "private",
1718
+ "return": {
1719
+ "type": {
1720
+ "text": "void"
1783
1721
  }
1784
- ]
1722
+ },
1723
+ "inheritedFrom": {
1724
+ "name": "Accordion",
1725
+ "module": "src/accordion/accordion.ts"
1726
+ }
1785
1727
  },
1786
1728
  {
1787
1729
  "kind": "field",
@@ -1895,107 +1837,109 @@
1895
1837
  }
1896
1838
  }
1897
1839
  ],
1898
- "attributes": [
1899
- {
1900
- "name": "is-vertical",
1901
- "type": {
1902
- "text": "boolean"
1903
- },
1904
- "default": "false",
1905
- "fieldName": "isVertical"
1906
- },
1907
- {
1908
- "name": "add-default-actions",
1909
- "type": {
1910
- "text": "boolean"
1911
- },
1912
- "default": "true",
1913
- "fieldName": "addDefaultActions"
1914
- },
1915
- {
1916
- "name": "auto-close-on-action",
1917
- "type": {
1918
- "text": "boolean"
1919
- },
1920
- "default": "true",
1921
- "fieldName": "autoCloseOnAction"
1922
- },
1923
- {
1924
- "name": "name",
1925
- "type": {
1926
- "text": "string"
1927
- },
1928
- "default": "'Actions'",
1929
- "fieldName": "name"
1930
- },
1931
- {
1932
- "name": "open",
1933
- "type": {
1934
- "text": "boolean"
1935
- },
1936
- "default": "false",
1937
- "fieldName": "open"
1938
- },
1939
- {
1940
- "name": "buttonAppearance",
1941
- "type": {
1942
- "text": "string"
1943
- },
1944
- "fieldName": "buttonAppearance"
1945
- },
1946
- {
1947
- "name": "hide-disabled",
1948
- "type": {
1949
- "text": "boolean"
1950
- },
1951
- "default": "false",
1952
- "fieldName": "hideDisabled"
1953
- },
1840
+ "events": [
1954
1841
  {
1955
- "name": "hide-menu-single-option",
1956
- "type": {
1957
- "text": "boolean"
1958
- },
1959
- "default": "false",
1960
- "fieldName": "hideMenuSingleOption"
1842
+ "description": "Fires a custom 'change' event when the active item changes",
1843
+ "name": "change",
1844
+ "inheritedFrom": {
1845
+ "name": "Accordion",
1846
+ "module": "src/accordion/accordion.ts"
1847
+ }
1961
1848
  }
1962
- ],
1963
- "superclass": {
1964
- "name": "FoundationElement",
1965
- "package": "@microsoft/fast-foundation"
1849
+ ]
1850
+ },
1851
+ {
1852
+ "kind": "variable",
1853
+ "name": "foundationAccordionShadowOptions",
1854
+ "type": {
1855
+ "text": "ShadowRootInit"
1966
1856
  },
1967
- "tagName": "%%prefix%%-actions-menu",
1968
- "customElement": true
1857
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1969
1858
  },
1970
1859
  {
1971
1860
  "kind": "variable",
1972
- "name": "foundationActionsMenu",
1973
- "description": "The Foundation Actions Menu",
1861
+ "name": "defaultAccordionConfig",
1862
+ "type": {
1863
+ "text": "object"
1864
+ },
1865
+ "default": "{}"
1866
+ },
1867
+ {
1868
+ "kind": "variable",
1869
+ "name": "foundationAccordion",
1870
+ "description": "The Foundation Accordion",
1974
1871
  "privacy": "public"
1975
1872
  }
1976
1873
  ],
1977
1874
  "exports": [
1978
1875
  {
1979
1876
  "kind": "js",
1980
- "name": "ActionsMenu",
1877
+ "name": "Accordion",
1981
1878
  "declaration": {
1982
- "name": "ActionsMenu",
1983
- "module": "src/actions-menu/actions-menu.ts"
1879
+ "name": "Accordion",
1880
+ "module": "src/accordion/accordion.ts"
1881
+ }
1882
+ },
1883
+ {
1884
+ "kind": "js",
1885
+ "name": "foundationAccordionShadowOptions",
1886
+ "declaration": {
1887
+ "name": "foundationAccordionShadowOptions",
1888
+ "module": "src/accordion/accordion.ts"
1889
+ }
1890
+ },
1891
+ {
1892
+ "kind": "js",
1893
+ "name": "defaultAccordionConfig",
1894
+ "declaration": {
1895
+ "name": "defaultAccordionConfig",
1896
+ "module": "src/accordion/accordion.ts"
1897
+ }
1898
+ },
1899
+ {
1900
+ "kind": "js",
1901
+ "name": "foundationAccordion",
1902
+ "declaration": {
1903
+ "name": "foundationAccordion",
1904
+ "module": "src/accordion/accordion.ts"
1905
+ }
1906
+ }
1907
+ ]
1908
+ },
1909
+ {
1910
+ "kind": "javascript-module",
1911
+ "path": "src/accordion/index.ts",
1912
+ "declarations": [],
1913
+ "exports": [
1914
+ {
1915
+ "kind": "js",
1916
+ "name": "*",
1917
+ "declaration": {
1918
+ "name": "*",
1919
+ "package": "./accordion.template"
1920
+ }
1921
+ },
1922
+ {
1923
+ "kind": "js",
1924
+ "name": "*",
1925
+ "declaration": {
1926
+ "name": "*",
1927
+ "package": "./accordion.styles"
1984
1928
  }
1985
1929
  },
1986
1930
  {
1987
1931
  "kind": "js",
1988
- "name": "foundationActionsMenu",
1932
+ "name": "*",
1989
1933
  "declaration": {
1990
- "name": "foundationActionsMenu",
1991
- "module": "src/actions-menu/actions-menu.ts"
1934
+ "name": "*",
1935
+ "package": "./accordion"
1992
1936
  }
1993
1937
  }
1994
1938
  ]
1995
1939
  },
1996
1940
  {
1997
1941
  "kind": "javascript-module",
1998
- "path": "src/actions-menu/index.ts",
1942
+ "path": "src/_config/index.ts",
1999
1943
  "declarations": [],
2000
1944
  "exports": [
2001
1945
  {
@@ -2003,7 +1947,7 @@
2003
1947
  "name": "*",
2004
1948
  "declaration": {
2005
1949
  "name": "*",
2006
- "package": "./actions-menu.styles"
1950
+ "package": "./styles"
2007
1951
  }
2008
1952
  },
2009
1953
  {
@@ -2011,7 +1955,7 @@
2011
1955
  "name": "*",
2012
1956
  "declaration": {
2013
1957
  "name": "*",
2014
- "package": "./actions-menu.template"
1958
+ "package": "./tokens"
2015
1959
  }
2016
1960
  },
2017
1961
  {
@@ -2019,7 +1963,7 @@
2019
1963
  "name": "*",
2020
1964
  "declaration": {
2021
1965
  "name": "*",
2022
- "package": "./actions-menu"
1966
+ "package": "./values"
2023
1967
  }
2024
1968
  }
2025
1969
  ]
@@ -3478,11 +3422,34 @@
3478
3422
  },
3479
3423
  {
3480
3424
  "kind": "javascript-module",
3481
- "path": "src/accordion/accordion.styles.ts",
3425
+ "path": "src/actions-menu/actions-menu.styles.ts",
3482
3426
  "declarations": [
3483
3427
  {
3484
3428
  "kind": "function",
3485
- "name": "foundationAccordionStyles",
3429
+ "name": "actionsMenuBaseStyles",
3430
+ "return": {
3431
+ "type": {
3432
+ "text": "ElementStyles"
3433
+ }
3434
+ },
3435
+ "parameters": [
3436
+ {
3437
+ "name": "context",
3438
+ "type": {
3439
+ "text": "ElementDefinitionContext"
3440
+ }
3441
+ },
3442
+ {
3443
+ "name": "definition",
3444
+ "type": {
3445
+ "text": "FoundationElementDefinition"
3446
+ }
3447
+ }
3448
+ ]
3449
+ },
3450
+ {
3451
+ "kind": "function",
3452
+ "name": "foundationActionsMenuStyles",
3486
3453
  "return": {
3487
3454
  "type": {
3488
3455
  "text": "ElementStyles"
@@ -3507,277 +3474,281 @@
3507
3474
  "exports": [
3508
3475
  {
3509
3476
  "kind": "js",
3510
- "name": "foundationAccordionStyles",
3477
+ "name": "actionsMenuBaseStyles",
3511
3478
  "declaration": {
3512
- "name": "foundationAccordionStyles",
3513
- "module": "src/accordion/accordion.styles.ts"
3479
+ "name": "actionsMenuBaseStyles",
3480
+ "module": "src/actions-menu/actions-menu.styles.ts"
3481
+ }
3482
+ },
3483
+ {
3484
+ "kind": "js",
3485
+ "name": "foundationActionsMenuStyles",
3486
+ "declaration": {
3487
+ "name": "foundationActionsMenuStyles",
3488
+ "module": "src/actions-menu/actions-menu.styles.ts"
3514
3489
  }
3515
3490
  }
3516
3491
  ]
3517
3492
  },
3518
3493
  {
3519
3494
  "kind": "javascript-module",
3520
- "path": "src/accordion/accordion.template.ts",
3495
+ "path": "src/actions-menu/actions-menu.template.ts",
3521
3496
  "declarations": [
3522
3497
  {
3523
3498
  "kind": "function",
3524
- "name": "foundationAccordionTemplate",
3525
- "return": {
3526
- "type": {
3527
- "text": "ViewTemplate<Accordion>"
3528
- }
3529
- },
3499
+ "name": "menuTemplate",
3530
3500
  "parameters": [
3531
3501
  {
3532
- "name": "context",
3502
+ "name": "prefix",
3533
3503
  "type": {
3534
- "text": "ElementDefinitionContext"
3504
+ "text": "string"
3535
3505
  }
3536
- },
3506
+ }
3507
+ ]
3508
+ },
3509
+ {
3510
+ "kind": "function",
3511
+ "name": "singleOptionTemplate",
3512
+ "parameters": [
3537
3513
  {
3538
- "name": "definition",
3514
+ "name": "prefix",
3539
3515
  "type": {
3540
- "text": "FoundationElementDefinition"
3516
+ "text": "string"
3541
3517
  }
3542
3518
  }
3543
3519
  ]
3520
+ },
3521
+ {
3522
+ "kind": "variable",
3523
+ "name": "foundationActionsMenuTemplate",
3524
+ "type": {
3525
+ "text": "ViewTemplate<ActionsMenu>"
3526
+ },
3527
+ "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`"
3544
3528
  }
3545
3529
  ],
3546
3530
  "exports": [
3547
3531
  {
3548
3532
  "kind": "js",
3549
- "name": "foundationAccordionTemplate",
3533
+ "name": "menuTemplate",
3550
3534
  "declaration": {
3551
- "name": "foundationAccordionTemplate",
3552
- "module": "src/accordion/accordion.template.ts"
3535
+ "name": "menuTemplate",
3536
+ "module": "src/actions-menu/actions-menu.template.ts"
3537
+ }
3538
+ },
3539
+ {
3540
+ "kind": "js",
3541
+ "name": "singleOptionTemplate",
3542
+ "declaration": {
3543
+ "name": "singleOptionTemplate",
3544
+ "module": "src/actions-menu/actions-menu.template.ts"
3545
+ }
3546
+ },
3547
+ {
3548
+ "kind": "js",
3549
+ "name": "foundationActionsMenuTemplate",
3550
+ "declaration": {
3551
+ "name": "foundationActionsMenuTemplate",
3552
+ "module": "src/actions-menu/actions-menu.template.ts"
3553
3553
  }
3554
3554
  }
3555
3555
  ]
3556
3556
  },
3557
3557
  {
3558
3558
  "kind": "javascript-module",
3559
- "path": "src/accordion/accordion.ts",
3559
+ "path": "src/actions-menu/actions-menu.ts",
3560
3560
  "declarations": [
3561
3561
  {
3562
3562
  "kind": "class",
3563
3563
  "description": "",
3564
- "name": "Accordion",
3565
- "superclass": {
3566
- "name": "FASTAccordion",
3567
- "package": "@microsoft/fast-foundation"
3568
- },
3569
- "tagName": "%%prefix%%-accordion",
3570
- "customElement": true,
3571
- "attributes": [
3564
+ "name": "ActionsMenu",
3565
+ "members": [
3572
3566
  {
3573
- "name": "expand-mode",
3567
+ "kind": "field",
3568
+ "name": "actions",
3574
3569
  "type": {
3575
- "text": "AccordionExpandMode"
3576
- },
3577
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3578
- "fieldName": "expandmode",
3579
- "inheritedFrom": {
3580
- "name": "Accordion",
3581
- "module": "src/accordion/accordion.ts"
3570
+ "text": "ActionMenuItem[]"
3582
3571
  }
3583
- }
3584
- ],
3585
- "members": [
3572
+ },
3586
3573
  {
3587
3574
  "kind": "field",
3588
- "name": "expandmode",
3575
+ "name": "isVertical",
3589
3576
  "type": {
3590
- "text": "AccordionExpandMode"
3577
+ "text": "boolean"
3591
3578
  },
3592
- "privacy": "public",
3593
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3594
- "inheritedFrom": {
3595
- "name": "Accordion",
3596
- "module": "src/accordion/accordion.ts"
3597
- }
3579
+ "default": "false"
3598
3580
  },
3599
3581
  {
3600
3582
  "kind": "field",
3601
- "name": "activeid",
3583
+ "name": "addDefaultActions",
3602
3584
  "type": {
3603
- "text": "string | null"
3585
+ "text": "boolean"
3604
3586
  },
3605
- "privacy": "private",
3606
- "inheritedFrom": {
3607
- "name": "Accordion",
3608
- "module": "src/accordion/accordion.ts"
3609
- }
3587
+ "default": "true"
3610
3588
  },
3611
3589
  {
3612
3590
  "kind": "field",
3613
- "name": "activeItemIndex",
3591
+ "name": "autoCloseOnAction",
3614
3592
  "type": {
3615
- "text": "number"
3593
+ "text": "boolean"
3616
3594
  },
3617
- "privacy": "private",
3618
- "default": "0",
3619
- "inheritedFrom": {
3620
- "name": "Accordion",
3621
- "module": "src/accordion/accordion.ts"
3622
- }
3595
+ "default": "true"
3623
3596
  },
3624
3597
  {
3625
3598
  "kind": "field",
3626
- "name": "accordionIds",
3599
+ "name": "classNames",
3627
3600
  "type": {
3628
- "text": "Array<string | null>"
3629
- },
3630
- "privacy": "private",
3631
- "inheritedFrom": {
3632
- "name": "Accordion",
3633
- "module": "src/accordion/accordion.ts"
3601
+ "text": "string"
3634
3602
  }
3635
3603
  },
3636
3604
  {
3637
3605
  "kind": "field",
3638
- "name": "change",
3639
- "privacy": "private",
3640
- "inheritedFrom": {
3641
- "name": "Accordion",
3642
- "module": "src/accordion/accordion.ts"
3606
+ "name": "definition",
3607
+ "type": {
3608
+ "text": "any"
3643
3609
  }
3644
3610
  },
3645
3611
  {
3646
- "kind": "method",
3647
- "name": "findExpandedItem",
3648
- "privacy": "private",
3649
- "return": {
3650
- "type": {
3651
- "text": "AccordionItem | null"
3652
- }
3612
+ "kind": "field",
3613
+ "name": "name",
3614
+ "type": {
3615
+ "text": "string"
3653
3616
  },
3654
- "inheritedFrom": {
3655
- "name": "Accordion",
3656
- "module": "src/accordion/accordion.ts"
3657
- }
3617
+ "default": "'Actions'"
3658
3618
  },
3659
3619
  {
3660
3620
  "kind": "field",
3661
- "name": "setItems",
3662
- "privacy": "private",
3663
- "inheritedFrom": {
3664
- "name": "Accordion",
3665
- "module": "src/accordion/accordion.ts"
3621
+ "name": "open",
3622
+ "type": {
3623
+ "text": "boolean"
3624
+ },
3625
+ "default": "false"
3626
+ },
3627
+ {
3628
+ "kind": "field",
3629
+ "name": "buttonAppearance",
3630
+ "type": {
3631
+ "text": "string"
3666
3632
  }
3667
3633
  },
3668
3634
  {
3669
- "kind": "method",
3670
- "name": "resetItems",
3671
- "privacy": "private",
3672
- "return": {
3673
- "type": {
3674
- "text": "void"
3675
- }
3635
+ "kind": "field",
3636
+ "name": "hideDisabled",
3637
+ "type": {
3638
+ "text": "boolean"
3676
3639
  },
3677
- "inheritedFrom": {
3678
- "name": "Accordion",
3679
- "module": "src/accordion/accordion.ts"
3640
+ "default": "false"
3641
+ },
3642
+ {
3643
+ "kind": "field",
3644
+ "name": "hideMenuSingleOption",
3645
+ "type": {
3646
+ "text": "boolean"
3647
+ },
3648
+ "default": "false"
3649
+ },
3650
+ {
3651
+ "kind": "field",
3652
+ "name": "singleOption",
3653
+ "type": {
3654
+ "text": "ActionMenuItem"
3655
+ }
3656
+ },
3657
+ {
3658
+ "kind": "field",
3659
+ "name": "actionsMenu",
3660
+ "type": {
3661
+ "text": "HTMLElement"
3680
3662
  }
3681
3663
  },
3682
3664
  {
3683
3665
  "kind": "field",
3684
- "name": "removeItemListeners",
3685
- "privacy": "private",
3686
- "inheritedFrom": {
3687
- "name": "Accordion",
3688
- "module": "src/accordion/accordion.ts"
3666
+ "name": "actionsOpener",
3667
+ "type": {
3668
+ "text": "HTMLElement"
3689
3669
  }
3690
3670
  },
3691
3671
  {
3692
- "kind": "field",
3693
- "name": "activeItemChange",
3694
- "privacy": "private",
3695
- "inheritedFrom": {
3696
- "name": "Accordion",
3697
- "module": "src/accordion/accordion.ts"
3698
- }
3672
+ "kind": "method",
3673
+ "name": "updateMenuPosition",
3674
+ "privacy": "private"
3699
3675
  },
3700
3676
  {
3701
3677
  "kind": "method",
3702
- "name": "getItemIds",
3703
- "privacy": "private",
3704
- "return": {
3705
- "type": {
3706
- "text": "Array<string | null>"
3678
+ "name": "definitionChanged",
3679
+ "privacy": "protected",
3680
+ "parameters": [
3681
+ {
3682
+ "name": "oldValue",
3683
+ "type": {
3684
+ "text": "any"
3685
+ }
3686
+ },
3687
+ {
3688
+ "name": "newValue",
3689
+ "type": {
3690
+ "text": "any"
3691
+ }
3707
3692
  }
3708
- },
3709
- "inheritedFrom": {
3710
- "name": "Accordion",
3711
- "module": "src/accordion/accordion.ts"
3712
- }
3693
+ ]
3713
3694
  },
3714
3695
  {
3715
3696
  "kind": "method",
3716
- "name": "isSingleExpandMode",
3717
- "privacy": "private",
3718
- "return": {
3719
- "type": {
3720
- "text": "boolean"
3697
+ "name": "openChanged",
3698
+ "privacy": "protected"
3699
+ },
3700
+ {
3701
+ "kind": "method",
3702
+ "name": "toggleActionsMenuVisibility"
3703
+ },
3704
+ {
3705
+ "kind": "method",
3706
+ "name": "onActionMenuItemClick",
3707
+ "parameters": [
3708
+ {
3709
+ "name": "callback",
3710
+ "type": {
3711
+ "text": "(rowData) => void | any"
3712
+ }
3721
3713
  }
3722
- },
3723
- "inheritedFrom": {
3724
- "name": "Accordion",
3725
- "module": "src/accordion/accordion.ts"
3726
- }
3714
+ ]
3727
3715
  },
3728
3716
  {
3729
3717
  "kind": "field",
3730
- "name": "handleItemKeyDown",
3731
- "privacy": "private",
3732
- "inheritedFrom": {
3733
- "name": "Accordion",
3734
- "module": "src/accordion/accordion.ts"
3735
- }
3718
+ "name": "allActions",
3719
+ "type": {
3720
+ "text": "ActionMenuItem[]"
3721
+ },
3722
+ "readonly": true
3736
3723
  },
3737
3724
  {
3738
3725
  "kind": "field",
3739
- "name": "handleItemFocus",
3740
- "privacy": "private",
3741
- "inheritedFrom": {
3742
- "name": "Accordion",
3743
- "module": "src/accordion/accordion.ts"
3744
- }
3726
+ "name": "rowData",
3727
+ "readonly": true
3745
3728
  },
3746
3729
  {
3747
3730
  "kind": "method",
3748
- "name": "adjust",
3749
- "privacy": "private",
3750
- "return": {
3751
- "type": {
3752
- "text": "void"
3753
- }
3754
- },
3731
+ "name": "getLabel",
3755
3732
  "parameters": [
3756
3733
  {
3757
- "name": "adjustment",
3734
+ "name": "name",
3758
3735
  "type": {
3759
- "text": "number"
3736
+ "text": "string | ((rowData: any) => string)"
3760
3737
  }
3761
3738
  }
3762
- ],
3763
- "inheritedFrom": {
3764
- "name": "Accordion",
3765
- "module": "src/accordion/accordion.ts"
3766
- }
3739
+ ]
3767
3740
  },
3768
3741
  {
3769
3742
  "kind": "method",
3770
- "name": "focusItem",
3771
- "privacy": "private",
3772
- "return": {
3773
- "type": {
3774
- "text": "void"
3743
+ "name": "getTemplate",
3744
+ "parameters": [
3745
+ {
3746
+ "name": "prefix",
3747
+ "type": {
3748
+ "text": "string"
3749
+ }
3775
3750
  }
3776
- },
3777
- "inheritedFrom": {
3778
- "name": "Accordion",
3779
- "module": "src/accordion/accordion.ts"
3780
- }
3751
+ ]
3781
3752
  },
3782
3753
  {
3783
3754
  "kind": "field",
@@ -3891,78 +3862,107 @@
3891
3862
  }
3892
3863
  }
3893
3864
  ],
3894
- "events": [
3865
+ "attributes": [
3895
3866
  {
3896
- "description": "Fires a custom 'change' event when the active item changes",
3897
- "name": "change",
3898
- "inheritedFrom": {
3899
- "name": "Accordion",
3900
- "module": "src/accordion/accordion.ts"
3901
- }
3867
+ "name": "is-vertical",
3868
+ "type": {
3869
+ "text": "boolean"
3870
+ },
3871
+ "default": "false",
3872
+ "fieldName": "isVertical"
3873
+ },
3874
+ {
3875
+ "name": "add-default-actions",
3876
+ "type": {
3877
+ "text": "boolean"
3878
+ },
3879
+ "default": "true",
3880
+ "fieldName": "addDefaultActions"
3881
+ },
3882
+ {
3883
+ "name": "auto-close-on-action",
3884
+ "type": {
3885
+ "text": "boolean"
3886
+ },
3887
+ "default": "true",
3888
+ "fieldName": "autoCloseOnAction"
3889
+ },
3890
+ {
3891
+ "name": "name",
3892
+ "type": {
3893
+ "text": "string"
3894
+ },
3895
+ "default": "'Actions'",
3896
+ "fieldName": "name"
3897
+ },
3898
+ {
3899
+ "name": "open",
3900
+ "type": {
3901
+ "text": "boolean"
3902
+ },
3903
+ "default": "false",
3904
+ "fieldName": "open"
3905
+ },
3906
+ {
3907
+ "name": "buttonAppearance",
3908
+ "type": {
3909
+ "text": "string"
3910
+ },
3911
+ "fieldName": "buttonAppearance"
3912
+ },
3913
+ {
3914
+ "name": "hide-disabled",
3915
+ "type": {
3916
+ "text": "boolean"
3917
+ },
3918
+ "default": "false",
3919
+ "fieldName": "hideDisabled"
3920
+ },
3921
+ {
3922
+ "name": "hide-menu-single-option",
3923
+ "type": {
3924
+ "text": "boolean"
3925
+ },
3926
+ "default": "false",
3927
+ "fieldName": "hideMenuSingleOption"
3902
3928
  }
3903
- ]
3904
- },
3905
- {
3906
- "kind": "variable",
3907
- "name": "foundationAccordionShadowOptions",
3908
- "type": {
3909
- "text": "ShadowRootInit"
3910
- },
3911
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3912
- },
3913
- {
3914
- "kind": "variable",
3915
- "name": "defaultAccordionConfig",
3916
- "type": {
3917
- "text": "object"
3929
+ ],
3930
+ "superclass": {
3931
+ "name": "FoundationElement",
3932
+ "package": "@microsoft/fast-foundation"
3918
3933
  },
3919
- "default": "{}"
3934
+ "tagName": "%%prefix%%-actions-menu",
3935
+ "customElement": true
3920
3936
  },
3921
3937
  {
3922
3938
  "kind": "variable",
3923
- "name": "foundationAccordion",
3924
- "description": "The Foundation Accordion",
3939
+ "name": "foundationActionsMenu",
3940
+ "description": "The Foundation Actions Menu",
3925
3941
  "privacy": "public"
3926
3942
  }
3927
3943
  ],
3928
3944
  "exports": [
3929
3945
  {
3930
3946
  "kind": "js",
3931
- "name": "Accordion",
3932
- "declaration": {
3933
- "name": "Accordion",
3934
- "module": "src/accordion/accordion.ts"
3935
- }
3936
- },
3937
- {
3938
- "kind": "js",
3939
- "name": "foundationAccordionShadowOptions",
3940
- "declaration": {
3941
- "name": "foundationAccordionShadowOptions",
3942
- "module": "src/accordion/accordion.ts"
3943
- }
3944
- },
3945
- {
3946
- "kind": "js",
3947
- "name": "defaultAccordionConfig",
3947
+ "name": "ActionsMenu",
3948
3948
  "declaration": {
3949
- "name": "defaultAccordionConfig",
3950
- "module": "src/accordion/accordion.ts"
3949
+ "name": "ActionsMenu",
3950
+ "module": "src/actions-menu/actions-menu.ts"
3951
3951
  }
3952
3952
  },
3953
3953
  {
3954
3954
  "kind": "js",
3955
- "name": "foundationAccordion",
3955
+ "name": "foundationActionsMenu",
3956
3956
  "declaration": {
3957
- "name": "foundationAccordion",
3958
- "module": "src/accordion/accordion.ts"
3957
+ "name": "foundationActionsMenu",
3958
+ "module": "src/actions-menu/actions-menu.ts"
3959
3959
  }
3960
3960
  }
3961
3961
  ]
3962
3962
  },
3963
3963
  {
3964
3964
  "kind": "javascript-module",
3965
- "path": "src/accordion/index.ts",
3965
+ "path": "src/actions-menu/index.ts",
3966
3966
  "declarations": [],
3967
3967
  "exports": [
3968
3968
  {
@@ -3970,7 +3970,7 @@
3970
3970
  "name": "*",
3971
3971
  "declaration": {
3972
3972
  "name": "*",
3973
- "package": "./accordion.template"
3973
+ "package": "./actions-menu.styles"
3974
3974
  }
3975
3975
  },
3976
3976
  {
@@ -3978,7 +3978,7 @@
3978
3978
  "name": "*",
3979
3979
  "declaration": {
3980
3980
  "name": "*",
3981
- "package": "./accordion.styles"
3981
+ "package": "./actions-menu.template"
3982
3982
  }
3983
3983
  },
3984
3984
  {
@@ -3986,7 +3986,7 @@
3986
3986
  "name": "*",
3987
3987
  "declaration": {
3988
3988
  "name": "*",
3989
- "package": "./accordion"
3989
+ "package": "./actions-menu"
3990
3990
  }
3991
3991
  }
3992
3992
  ]