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