@genesislcap/foundation-ui 15.69.0 → 15.71.0-FUI-2650.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.
@@ -1495,42 +1495,11 @@
1495
1495
  },
1496
1496
  {
1497
1497
  "kind": "javascript-module",
1498
- "path": "src/_config/index.ts",
1499
- "declarations": [],
1500
- "exports": [
1501
- {
1502
- "kind": "js",
1503
- "name": "*",
1504
- "declaration": {
1505
- "name": "*",
1506
- "package": "./styles"
1507
- }
1508
- },
1509
- {
1510
- "kind": "js",
1511
- "name": "*",
1512
- "declaration": {
1513
- "name": "*",
1514
- "package": "./tokens"
1515
- }
1516
- },
1517
- {
1518
- "kind": "js",
1519
- "name": "*",
1520
- "declaration": {
1521
- "name": "*",
1522
- "package": "./values"
1523
- }
1524
- }
1525
- ]
1526
- },
1527
- {
1528
- "kind": "javascript-module",
1529
- "path": "src/accordion/accordion.styles.ts",
1498
+ "path": "src/accordion-item/accordion-item.styles.ts",
1530
1499
  "declarations": [
1531
1500
  {
1532
1501
  "kind": "function",
1533
- "name": "foundationAccordionStyles",
1502
+ "name": "foundationAccordionItemStyles",
1534
1503
  "return": {
1535
1504
  "type": {
1536
1505
  "text": "ElementStyles"
@@ -1555,24 +1524,24 @@
1555
1524
  "exports": [
1556
1525
  {
1557
1526
  "kind": "js",
1558
- "name": "foundationAccordionStyles",
1527
+ "name": "foundationAccordionItemStyles",
1559
1528
  "declaration": {
1560
- "name": "foundationAccordionStyles",
1561
- "module": "src/accordion/accordion.styles.ts"
1529
+ "name": "foundationAccordionItemStyles",
1530
+ "module": "src/accordion-item/accordion-item.styles.ts"
1562
1531
  }
1563
1532
  }
1564
1533
  ]
1565
1534
  },
1566
1535
  {
1567
1536
  "kind": "javascript-module",
1568
- "path": "src/accordion/accordion.template.ts",
1537
+ "path": "src/accordion-item/accordion-item.template.ts",
1569
1538
  "declarations": [
1570
1539
  {
1571
1540
  "kind": "function",
1572
- "name": "foundationAccordionTemplate",
1541
+ "name": "foundationAccordionItemTemplate",
1573
1542
  "return": {
1574
1543
  "type": {
1575
- "text": "ViewTemplate<Accordion>"
1544
+ "text": "ViewTemplate<AccordionItem>"
1576
1545
  }
1577
1546
  },
1578
1547
  "parameters": [
@@ -1594,365 +1563,244 @@
1594
1563
  "exports": [
1595
1564
  {
1596
1565
  "kind": "js",
1597
- "name": "foundationAccordionTemplate",
1566
+ "name": "foundationAccordionItemTemplate",
1598
1567
  "declaration": {
1599
- "name": "foundationAccordionTemplate",
1600
- "module": "src/accordion/accordion.template.ts"
1568
+ "name": "foundationAccordionItemTemplate",
1569
+ "module": "src/accordion-item/accordion-item.template.ts"
1601
1570
  }
1602
1571
  }
1603
1572
  ]
1604
1573
  },
1605
1574
  {
1606
1575
  "kind": "javascript-module",
1607
- "path": "src/accordion/accordion.ts",
1576
+ "path": "src/accordion-item/accordion-item.ts",
1608
1577
  "declarations": [
1609
1578
  {
1610
1579
  "kind": "class",
1611
1580
  "description": "",
1612
- "name": "Accordion",
1581
+ "name": "AccordionItem",
1613
1582
  "superclass": {
1614
- "name": "FASTAccordion",
1615
- "package": "@microsoft/fast-foundation"
1583
+ "name": "FASTAccordionItem",
1584
+ "package": "@microsoft/fast-components"
1616
1585
  },
1617
- "tagName": "%%prefix%%-accordion",
1586
+ "tagName": "%%prefix%%-accordion-item",
1618
1587
  "customElement": true,
1619
1588
  "attributes": [
1620
1589
  {
1621
- "name": "expand-mode",
1590
+ "name": "heading-level",
1622
1591
  "type": {
1623
- "text": "AccordionExpandMode"
1592
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1624
1593
  },
1625
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1626
- "fieldName": "expandmode",
1594
+ "default": "2",
1595
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1596
+ "fieldName": "headinglevel",
1627
1597
  "inheritedFrom": {
1628
- "name": "Accordion",
1629
- "module": "src/accordion/accordion.ts"
1598
+ "name": "AccordionItem",
1599
+ "module": "src/accordion-item/accordion-item.ts"
1600
+ }
1601
+ },
1602
+ {
1603
+ "type": {
1604
+ "text": "boolean"
1605
+ },
1606
+ "default": "false",
1607
+ "description": "Expands or collapses the item.",
1608
+ "fieldName": "expanded",
1609
+ "inheritedFrom": {
1610
+ "name": "AccordionItem",
1611
+ "module": "src/accordion-item/accordion-item.ts"
1612
+ }
1613
+ },
1614
+ {
1615
+ "name": "id",
1616
+ "type": {
1617
+ "text": "string"
1618
+ },
1619
+ "description": "The item ID",
1620
+ "fieldName": "id",
1621
+ "inheritedFrom": {
1622
+ "name": "AccordionItem",
1623
+ "module": "src/accordion-item/accordion-item.ts"
1630
1624
  }
1631
1625
  }
1632
1626
  ],
1633
1627
  "members": [
1634
1628
  {
1635
1629
  "kind": "field",
1636
- "name": "expandmode",
1630
+ "name": "headinglevel",
1637
1631
  "type": {
1638
- "text": "AccordionExpandMode"
1632
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1639
1633
  },
1640
1634
  "privacy": "public",
1641
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1635
+ "default": "2",
1636
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1642
1637
  "inheritedFrom": {
1643
- "name": "Accordion",
1644
- "module": "src/accordion/accordion.ts"
1638
+ "name": "AccordionItem",
1639
+ "module": "src/accordion-item/accordion-item.ts"
1645
1640
  }
1646
1641
  },
1647
1642
  {
1648
1643
  "kind": "field",
1649
- "name": "activeid",
1644
+ "name": "expanded",
1650
1645
  "type": {
1651
- "text": "string | null"
1646
+ "text": "boolean"
1652
1647
  },
1653
- "privacy": "private",
1648
+ "privacy": "public",
1649
+ "default": "false",
1650
+ "description": "Expands or collapses the item.",
1654
1651
  "inheritedFrom": {
1655
- "name": "Accordion",
1656
- "module": "src/accordion/accordion.ts"
1652
+ "name": "AccordionItem",
1653
+ "module": "src/accordion-item/accordion-item.ts"
1657
1654
  }
1658
1655
  },
1659
1656
  {
1660
1657
  "kind": "field",
1661
- "name": "activeItemIndex",
1658
+ "name": "id",
1662
1659
  "type": {
1663
- "text": "number"
1660
+ "text": "string"
1664
1661
  },
1665
- "privacy": "private",
1666
- "default": "0",
1662
+ "privacy": "public",
1663
+ "description": "The item ID",
1667
1664
  "inheritedFrom": {
1668
- "name": "Accordion",
1669
- "module": "src/accordion/accordion.ts"
1665
+ "name": "AccordionItem",
1666
+ "module": "src/accordion-item/accordion-item.ts"
1670
1667
  }
1671
1668
  },
1672
1669
  {
1673
1670
  "kind": "field",
1674
- "name": "accordionIds",
1675
- "type": {
1676
- "text": "Array<string | null>"
1677
- },
1671
+ "name": "change",
1678
1672
  "privacy": "private",
1679
1673
  "inheritedFrom": {
1680
- "name": "Accordion",
1681
- "module": "src/accordion/accordion.ts"
1674
+ "name": "AccordionItem",
1675
+ "module": "src/accordion-item/accordion-item.ts"
1682
1676
  }
1683
1677
  },
1684
1678
  {
1685
1679
  "kind": "field",
1686
- "name": "change",
1680
+ "name": "_presentation",
1681
+ "type": {
1682
+ "text": "ComponentPresentation | null | undefined"
1683
+ },
1687
1684
  "privacy": "private",
1685
+ "default": "void 0",
1688
1686
  "inheritedFrom": {
1689
- "name": "Accordion",
1690
- "module": "src/accordion/accordion.ts"
1687
+ "name": "FoundationElement",
1688
+ "module": "src/foundation-element/foundation-element.ts"
1691
1689
  }
1692
1690
  },
1693
1691
  {
1694
- "kind": "method",
1695
- "name": "findExpandedItem",
1696
- "privacy": "private",
1697
- "return": {
1698
- "type": {
1699
- "text": "AccordionItem | null"
1700
- }
1692
+ "kind": "field",
1693
+ "name": "$presentation",
1694
+ "type": {
1695
+ "text": "ComponentPresentation | null"
1701
1696
  },
1697
+ "privacy": "public",
1698
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1702
1699
  "inheritedFrom": {
1703
- "name": "Accordion",
1704
- "module": "src/accordion/accordion.ts"
1700
+ "name": "FoundationElement",
1701
+ "module": "src/foundation-element/foundation-element.ts"
1705
1702
  }
1706
1703
  },
1707
1704
  {
1708
1705
  "kind": "field",
1709
- "name": "setItems",
1710
- "privacy": "private",
1706
+ "name": "template",
1707
+ "type": {
1708
+ "text": "ElementViewTemplate | void | null"
1709
+ },
1710
+ "privacy": "public",
1711
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1711
1712
  "inheritedFrom": {
1712
- "name": "Accordion",
1713
- "module": "src/accordion/accordion.ts"
1713
+ "name": "FoundationElement",
1714
+ "module": "src/foundation-element/foundation-element.ts"
1714
1715
  }
1715
1716
  },
1716
1717
  {
1717
1718
  "kind": "method",
1718
- "name": "resetItems",
1719
- "privacy": "private",
1719
+ "name": "templateChanged",
1720
+ "privacy": "protected",
1720
1721
  "return": {
1721
1722
  "type": {
1722
1723
  "text": "void"
1723
1724
  }
1724
1725
  },
1725
1726
  "inheritedFrom": {
1726
- "name": "Accordion",
1727
- "module": "src/accordion/accordion.ts"
1728
- }
1729
- },
1730
- {
1731
- "kind": "field",
1732
- "name": "removeItemListeners",
1733
- "privacy": "private",
1734
- "inheritedFrom": {
1735
- "name": "Accordion",
1736
- "module": "src/accordion/accordion.ts"
1727
+ "name": "FoundationElement",
1728
+ "module": "src/foundation-element/foundation-element.ts"
1737
1729
  }
1738
1730
  },
1739
1731
  {
1740
1732
  "kind": "field",
1741
- "name": "activeItemChange",
1742
- "privacy": "private",
1733
+ "name": "styles",
1734
+ "type": {
1735
+ "text": "ElementStyles | void | null"
1736
+ },
1737
+ "privacy": "public",
1738
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1743
1739
  "inheritedFrom": {
1744
- "name": "Accordion",
1745
- "module": "src/accordion/accordion.ts"
1740
+ "name": "FoundationElement",
1741
+ "module": "src/foundation-element/foundation-element.ts"
1746
1742
  }
1747
1743
  },
1748
1744
  {
1749
1745
  "kind": "method",
1750
- "name": "getItemIds",
1751
- "privacy": "private",
1746
+ "name": "stylesChanged",
1747
+ "privacy": "protected",
1752
1748
  "return": {
1753
1749
  "type": {
1754
- "text": "Array<string | null>"
1750
+ "text": "void"
1755
1751
  }
1756
1752
  },
1757
1753
  "inheritedFrom": {
1758
- "name": "Accordion",
1759
- "module": "src/accordion/accordion.ts"
1754
+ "name": "FoundationElement",
1755
+ "module": "src/foundation-element/foundation-element.ts"
1760
1756
  }
1761
1757
  },
1762
1758
  {
1763
1759
  "kind": "method",
1764
- "name": "isSingleExpandMode",
1765
- "privacy": "private",
1760
+ "name": "compose",
1761
+ "privacy": "public",
1762
+ "static": true,
1766
1763
  "return": {
1767
1764
  "type": {
1768
- "text": "boolean"
1765
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1769
1766
  }
1770
1767
  },
1768
+ "parameters": [
1769
+ {
1770
+ "name": "this",
1771
+ "type": {
1772
+ "text": "K"
1773
+ }
1774
+ },
1775
+ {
1776
+ "name": "elementDefinition",
1777
+ "type": {
1778
+ "text": "T"
1779
+ },
1780
+ "description": "The definition of the element to create the registry\nfunction for."
1781
+ }
1782
+ ],
1783
+ "description": "Defines an element registry function with a set of element definition defaults.",
1771
1784
  "inheritedFrom": {
1772
- "name": "Accordion",
1773
- "module": "src/accordion/accordion.ts"
1785
+ "name": "FoundationElement",
1786
+ "module": "src/foundation-element/foundation-element.ts"
1774
1787
  }
1775
- },
1788
+ }
1789
+ ],
1790
+ "events": [
1776
1791
  {
1777
- "kind": "field",
1778
- "name": "handleItemKeyDown",
1779
- "privacy": "private",
1780
- "inheritedFrom": {
1781
- "name": "Accordion",
1782
- "module": "src/accordion/accordion.ts"
1783
- }
1784
- },
1785
- {
1786
- "kind": "field",
1787
- "name": "handleItemFocus",
1788
- "privacy": "private",
1789
- "inheritedFrom": {
1790
- "name": "Accordion",
1791
- "module": "src/accordion/accordion.ts"
1792
- }
1793
- },
1794
- {
1795
- "kind": "method",
1796
- "name": "adjust",
1797
- "privacy": "private",
1798
- "return": {
1799
- "type": {
1800
- "text": "void"
1801
- }
1802
- },
1803
- "parameters": [
1804
- {
1805
- "name": "adjustment",
1806
- "type": {
1807
- "text": "number"
1808
- }
1809
- }
1810
- ],
1811
- "inheritedFrom": {
1812
- "name": "Accordion",
1813
- "module": "src/accordion/accordion.ts"
1814
- }
1815
- },
1816
- {
1817
- "kind": "method",
1818
- "name": "focusItem",
1819
- "privacy": "private",
1820
- "return": {
1821
- "type": {
1822
- "text": "void"
1823
- }
1824
- },
1825
- "inheritedFrom": {
1826
- "name": "Accordion",
1827
- "module": "src/accordion/accordion.ts"
1828
- }
1829
- },
1830
- {
1831
- "kind": "field",
1832
- "name": "_presentation",
1833
- "type": {
1834
- "text": "ComponentPresentation | null | undefined"
1835
- },
1836
- "privacy": "private",
1837
- "default": "void 0",
1838
- "inheritedFrom": {
1839
- "name": "FoundationElement",
1840
- "module": "src/foundation-element/foundation-element.ts"
1841
- }
1842
- },
1843
- {
1844
- "kind": "field",
1845
- "name": "$presentation",
1846
- "type": {
1847
- "text": "ComponentPresentation | null"
1848
- },
1849
- "privacy": "public",
1850
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1851
- "inheritedFrom": {
1852
- "name": "FoundationElement",
1853
- "module": "src/foundation-element/foundation-element.ts"
1854
- }
1855
- },
1856
- {
1857
- "kind": "field",
1858
- "name": "template",
1859
- "type": {
1860
- "text": "ElementViewTemplate | void | null"
1861
- },
1862
- "privacy": "public",
1863
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1864
- "inheritedFrom": {
1865
- "name": "FoundationElement",
1866
- "module": "src/foundation-element/foundation-element.ts"
1867
- }
1868
- },
1869
- {
1870
- "kind": "method",
1871
- "name": "templateChanged",
1872
- "privacy": "protected",
1873
- "return": {
1874
- "type": {
1875
- "text": "void"
1876
- }
1877
- },
1878
- "inheritedFrom": {
1879
- "name": "FoundationElement",
1880
- "module": "src/foundation-element/foundation-element.ts"
1881
- }
1882
- },
1883
- {
1884
- "kind": "field",
1885
- "name": "styles",
1886
- "type": {
1887
- "text": "ElementStyles | void | null"
1888
- },
1889
- "privacy": "public",
1890
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1891
- "inheritedFrom": {
1892
- "name": "FoundationElement",
1893
- "module": "src/foundation-element/foundation-element.ts"
1894
- }
1895
- },
1896
- {
1897
- "kind": "method",
1898
- "name": "stylesChanged",
1899
- "privacy": "protected",
1900
- "return": {
1901
- "type": {
1902
- "text": "void"
1903
- }
1904
- },
1905
- "inheritedFrom": {
1906
- "name": "FoundationElement",
1907
- "module": "src/foundation-element/foundation-element.ts"
1908
- }
1909
- },
1910
- {
1911
- "kind": "method",
1912
- "name": "compose",
1913
- "privacy": "public",
1914
- "static": true,
1915
- "return": {
1916
- "type": {
1917
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1918
- }
1919
- },
1920
- "parameters": [
1921
- {
1922
- "name": "this",
1923
- "type": {
1924
- "text": "K"
1925
- }
1926
- },
1927
- {
1928
- "name": "elementDefinition",
1929
- "type": {
1930
- "text": "T"
1931
- },
1932
- "description": "The definition of the element to create the registry\nfunction for."
1933
- }
1934
- ],
1935
- "description": "Defines an element registry function with a set of element definition defaults.",
1936
- "inheritedFrom": {
1937
- "name": "FoundationElement",
1938
- "module": "src/foundation-element/foundation-element.ts"
1939
- }
1940
- }
1941
- ],
1942
- "events": [
1943
- {
1944
- "description": "Fires a custom 'change' event when the active item changes",
1792
+ "description": "Fires a custom 'change' event when the button is invoked",
1945
1793
  "name": "change",
1946
1794
  "inheritedFrom": {
1947
- "name": "Accordion",
1948
- "module": "src/accordion/accordion.ts"
1795
+ "name": "AccordionItem",
1796
+ "module": "src/accordion-item/accordion-item.ts"
1949
1797
  }
1950
1798
  }
1951
1799
  ]
1952
1800
  },
1953
1801
  {
1954
1802
  "kind": "variable",
1955
- "name": "foundationAccordionShadowOptions",
1803
+ "name": "foundationAccordionItemShadowOptions",
1956
1804
  "type": {
1957
1805
  "text": "ShadowRootInit"
1958
1806
  },
@@ -1960,57 +1808,57 @@
1960
1808
  },
1961
1809
  {
1962
1810
  "kind": "variable",
1963
- "name": "defaultAccordionConfig",
1811
+ "name": "defaultAccordionItemConfig",
1964
1812
  "type": {
1965
1813
  "text": "object"
1966
1814
  },
1967
- "default": "{}"
1815
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1968
1816
  },
1969
1817
  {
1970
1818
  "kind": "variable",
1971
- "name": "foundationAccordion",
1972
- "description": "The Foundation Accordion",
1819
+ "name": "foundationAccordionItem",
1820
+ "description": "The Foundation Accordion Item",
1973
1821
  "privacy": "public"
1974
1822
  }
1975
1823
  ],
1976
1824
  "exports": [
1977
1825
  {
1978
1826
  "kind": "js",
1979
- "name": "Accordion",
1827
+ "name": "AccordionItem",
1980
1828
  "declaration": {
1981
- "name": "Accordion",
1982
- "module": "src/accordion/accordion.ts"
1829
+ "name": "AccordionItem",
1830
+ "module": "src/accordion-item/accordion-item.ts"
1983
1831
  }
1984
1832
  },
1985
1833
  {
1986
1834
  "kind": "js",
1987
- "name": "foundationAccordionShadowOptions",
1835
+ "name": "foundationAccordionItemShadowOptions",
1988
1836
  "declaration": {
1989
- "name": "foundationAccordionShadowOptions",
1990
- "module": "src/accordion/accordion.ts"
1837
+ "name": "foundationAccordionItemShadowOptions",
1838
+ "module": "src/accordion-item/accordion-item.ts"
1991
1839
  }
1992
1840
  },
1993
1841
  {
1994
1842
  "kind": "js",
1995
- "name": "defaultAccordionConfig",
1843
+ "name": "defaultAccordionItemConfig",
1996
1844
  "declaration": {
1997
- "name": "defaultAccordionConfig",
1998
- "module": "src/accordion/accordion.ts"
1845
+ "name": "defaultAccordionItemConfig",
1846
+ "module": "src/accordion-item/accordion-item.ts"
1999
1847
  }
2000
1848
  },
2001
1849
  {
2002
1850
  "kind": "js",
2003
- "name": "foundationAccordion",
1851
+ "name": "foundationAccordionItem",
2004
1852
  "declaration": {
2005
- "name": "foundationAccordion",
2006
- "module": "src/accordion/accordion.ts"
1853
+ "name": "foundationAccordionItem",
1854
+ "module": "src/accordion-item/accordion-item.ts"
2007
1855
  }
2008
1856
  }
2009
1857
  ]
2010
1858
  },
2011
1859
  {
2012
1860
  "kind": "javascript-module",
2013
- "path": "src/accordion/index.ts",
1861
+ "path": "src/accordion-item/index.ts",
2014
1862
  "declarations": [],
2015
1863
  "exports": [
2016
1864
  {
@@ -2018,7 +1866,7 @@
2018
1866
  "name": "*",
2019
1867
  "declaration": {
2020
1868
  "name": "*",
2021
- "package": "./accordion.template"
1869
+ "package": "./accordion-item.template"
2022
1870
  }
2023
1871
  },
2024
1872
  {
@@ -2026,7 +1874,7 @@
2026
1874
  "name": "*",
2027
1875
  "declaration": {
2028
1876
  "name": "*",
2029
- "package": "./accordion.styles"
1877
+ "package": "./accordion-item.styles"
2030
1878
  }
2031
1879
  },
2032
1880
  {
@@ -2034,18 +1882,72 @@
2034
1882
  "name": "*",
2035
1883
  "declaration": {
2036
1884
  "name": "*",
2037
- "package": "./accordion"
1885
+ "package": "./accordion-item"
2038
1886
  }
2039
1887
  }
2040
1888
  ]
2041
1889
  },
2042
1890
  {
2043
1891
  "kind": "javascript-module",
2044
- "path": "src/accordion-item/accordion-item.styles.ts",
1892
+ "path": "src/_config/index.ts",
1893
+ "declarations": [],
1894
+ "exports": [
1895
+ {
1896
+ "kind": "js",
1897
+ "name": "*",
1898
+ "declaration": {
1899
+ "name": "*",
1900
+ "package": "./styles"
1901
+ }
1902
+ },
1903
+ {
1904
+ "kind": "js",
1905
+ "name": "*",
1906
+ "declaration": {
1907
+ "name": "*",
1908
+ "package": "./tokens"
1909
+ }
1910
+ },
1911
+ {
1912
+ "kind": "js",
1913
+ "name": "*",
1914
+ "declaration": {
1915
+ "name": "*",
1916
+ "package": "./values"
1917
+ }
1918
+ }
1919
+ ]
1920
+ },
1921
+ {
1922
+ "kind": "javascript-module",
1923
+ "path": "src/actions-menu/actions-menu.styles.ts",
2045
1924
  "declarations": [
2046
1925
  {
2047
1926
  "kind": "function",
2048
- "name": "foundationAccordionItemStyles",
1927
+ "name": "actionsMenuBaseStyles",
1928
+ "return": {
1929
+ "type": {
1930
+ "text": "ElementStyles"
1931
+ }
1932
+ },
1933
+ "parameters": [
1934
+ {
1935
+ "name": "context",
1936
+ "type": {
1937
+ "text": "ElementDefinitionContext"
1938
+ }
1939
+ },
1940
+ {
1941
+ "name": "definition",
1942
+ "type": {
1943
+ "text": "FoundationElementDefinition"
1944
+ }
1945
+ }
1946
+ ]
1947
+ },
1948
+ {
1949
+ "kind": "function",
1950
+ "name": "foundationActionsMenuStyles",
2049
1951
  "return": {
2050
1952
  "type": {
2051
1953
  "text": "ElementStyles"
@@ -2070,156 +1972,281 @@
2070
1972
  "exports": [
2071
1973
  {
2072
1974
  "kind": "js",
2073
- "name": "foundationAccordionItemStyles",
1975
+ "name": "actionsMenuBaseStyles",
2074
1976
  "declaration": {
2075
- "name": "foundationAccordionItemStyles",
2076
- "module": "src/accordion-item/accordion-item.styles.ts"
1977
+ "name": "actionsMenuBaseStyles",
1978
+ "module": "src/actions-menu/actions-menu.styles.ts"
1979
+ }
1980
+ },
1981
+ {
1982
+ "kind": "js",
1983
+ "name": "foundationActionsMenuStyles",
1984
+ "declaration": {
1985
+ "name": "foundationActionsMenuStyles",
1986
+ "module": "src/actions-menu/actions-menu.styles.ts"
2077
1987
  }
2078
1988
  }
2079
1989
  ]
2080
1990
  },
2081
1991
  {
2082
1992
  "kind": "javascript-module",
2083
- "path": "src/accordion-item/accordion-item.template.ts",
1993
+ "path": "src/actions-menu/actions-menu.template.ts",
2084
1994
  "declarations": [
2085
1995
  {
2086
1996
  "kind": "function",
2087
- "name": "foundationAccordionItemTemplate",
2088
- "return": {
2089
- "type": {
2090
- "text": "ViewTemplate<AccordionItem>"
2091
- }
2092
- },
1997
+ "name": "menuTemplate",
2093
1998
  "parameters": [
2094
1999
  {
2095
- "name": "context",
2000
+ "name": "prefix",
2096
2001
  "type": {
2097
- "text": "ElementDefinitionContext"
2002
+ "text": "string"
2098
2003
  }
2099
- },
2004
+ }
2005
+ ]
2006
+ },
2007
+ {
2008
+ "kind": "function",
2009
+ "name": "singleOptionTemplate",
2010
+ "parameters": [
2100
2011
  {
2101
- "name": "definition",
2012
+ "name": "prefix",
2102
2013
  "type": {
2103
- "text": "FoundationElementDefinition"
2014
+ "text": "string"
2104
2015
  }
2105
2016
  }
2106
2017
  ]
2018
+ },
2019
+ {
2020
+ "kind": "variable",
2021
+ "name": "foundationActionsMenuTemplate",
2022
+ "type": {
2023
+ "text": "ViewTemplate<ActionsMenu>"
2024
+ },
2025
+ "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`"
2107
2026
  }
2108
2027
  ],
2109
2028
  "exports": [
2110
2029
  {
2111
2030
  "kind": "js",
2112
- "name": "foundationAccordionItemTemplate",
2031
+ "name": "menuTemplate",
2113
2032
  "declaration": {
2114
- "name": "foundationAccordionItemTemplate",
2115
- "module": "src/accordion-item/accordion-item.template.ts"
2033
+ "name": "menuTemplate",
2034
+ "module": "src/actions-menu/actions-menu.template.ts"
2035
+ }
2036
+ },
2037
+ {
2038
+ "kind": "js",
2039
+ "name": "singleOptionTemplate",
2040
+ "declaration": {
2041
+ "name": "singleOptionTemplate",
2042
+ "module": "src/actions-menu/actions-menu.template.ts"
2043
+ }
2044
+ },
2045
+ {
2046
+ "kind": "js",
2047
+ "name": "foundationActionsMenuTemplate",
2048
+ "declaration": {
2049
+ "name": "foundationActionsMenuTemplate",
2050
+ "module": "src/actions-menu/actions-menu.template.ts"
2116
2051
  }
2117
2052
  }
2118
2053
  ]
2119
2054
  },
2120
2055
  {
2121
2056
  "kind": "javascript-module",
2122
- "path": "src/accordion-item/accordion-item.ts",
2057
+ "path": "src/actions-menu/actions-menu.ts",
2123
2058
  "declarations": [
2124
2059
  {
2125
2060
  "kind": "class",
2126
2061
  "description": "",
2127
- "name": "AccordionItem",
2128
- "superclass": {
2129
- "name": "FASTAccordionItem",
2130
- "package": "@microsoft/fast-components"
2131
- },
2132
- "tagName": "%%prefix%%-accordion-item",
2133
- "customElement": true,
2134
- "attributes": [
2062
+ "name": "ActionsMenu",
2063
+ "members": [
2135
2064
  {
2136
- "name": "heading-level",
2065
+ "kind": "field",
2066
+ "name": "actions",
2137
2067
  "type": {
2138
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2068
+ "text": "ActionMenuItem[]"
2069
+ }
2070
+ },
2071
+ {
2072
+ "kind": "field",
2073
+ "name": "isVertical",
2074
+ "type": {
2075
+ "text": "boolean"
2139
2076
  },
2140
- "default": "2",
2141
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2142
- "fieldName": "headinglevel",
2143
- "inheritedFrom": {
2144
- "name": "AccordionItem",
2145
- "module": "src/accordion-item/accordion-item.ts"
2077
+ "default": "false"
2078
+ },
2079
+ {
2080
+ "kind": "field",
2081
+ "name": "addDefaultActions",
2082
+ "type": {
2083
+ "text": "boolean"
2084
+ },
2085
+ "default": "true"
2086
+ },
2087
+ {
2088
+ "kind": "field",
2089
+ "name": "autoCloseOnAction",
2090
+ "type": {
2091
+ "text": "boolean"
2092
+ },
2093
+ "default": "true"
2094
+ },
2095
+ {
2096
+ "kind": "field",
2097
+ "name": "classNames",
2098
+ "type": {
2099
+ "text": "string"
2100
+ }
2101
+ },
2102
+ {
2103
+ "kind": "field",
2104
+ "name": "definition",
2105
+ "type": {
2106
+ "text": "any"
2107
+ }
2108
+ },
2109
+ {
2110
+ "kind": "field",
2111
+ "name": "name",
2112
+ "type": {
2113
+ "text": "string"
2114
+ },
2115
+ "default": "'Actions'"
2116
+ },
2117
+ {
2118
+ "kind": "field",
2119
+ "name": "open",
2120
+ "type": {
2121
+ "text": "boolean"
2122
+ },
2123
+ "default": "false"
2124
+ },
2125
+ {
2126
+ "kind": "field",
2127
+ "name": "buttonAppearance",
2128
+ "type": {
2129
+ "text": "string"
2146
2130
  }
2147
2131
  },
2148
2132
  {
2133
+ "kind": "field",
2134
+ "name": "hideDisabled",
2149
2135
  "type": {
2150
2136
  "text": "boolean"
2151
2137
  },
2152
- "default": "false",
2153
- "description": "Expands or collapses the item.",
2154
- "fieldName": "expanded",
2155
- "inheritedFrom": {
2156
- "name": "AccordionItem",
2157
- "module": "src/accordion-item/accordion-item.ts"
2158
- }
2138
+ "default": "false"
2159
2139
  },
2160
2140
  {
2161
- "name": "id",
2141
+ "kind": "field",
2142
+ "name": "hideMenuSingleOption",
2162
2143
  "type": {
2163
- "text": "string"
2144
+ "text": "boolean"
2164
2145
  },
2165
- "description": "The item ID",
2166
- "fieldName": "id",
2167
- "inheritedFrom": {
2168
- "name": "AccordionItem",
2169
- "module": "src/accordion-item/accordion-item.ts"
2146
+ "default": "false"
2147
+ },
2148
+ {
2149
+ "kind": "field",
2150
+ "name": "singleOption",
2151
+ "type": {
2152
+ "text": "ActionMenuItem"
2170
2153
  }
2171
- }
2172
- ],
2173
- "members": [
2154
+ },
2174
2155
  {
2175
2156
  "kind": "field",
2176
- "name": "headinglevel",
2157
+ "name": "actionsMenu",
2177
2158
  "type": {
2178
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2179
- },
2180
- "privacy": "public",
2181
- "default": "2",
2182
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2183
- "inheritedFrom": {
2184
- "name": "AccordionItem",
2185
- "module": "src/accordion-item/accordion-item.ts"
2159
+ "text": "HTMLElement"
2186
2160
  }
2187
2161
  },
2188
2162
  {
2189
2163
  "kind": "field",
2190
- "name": "expanded",
2164
+ "name": "actionsOpener",
2191
2165
  "type": {
2192
- "text": "boolean"
2193
- },
2194
- "privacy": "public",
2195
- "default": "false",
2196
- "description": "Expands or collapses the item.",
2197
- "inheritedFrom": {
2198
- "name": "AccordionItem",
2199
- "module": "src/accordion-item/accordion-item.ts"
2166
+ "text": "HTMLElement"
2200
2167
  }
2201
2168
  },
2169
+ {
2170
+ "kind": "method",
2171
+ "name": "updateMenuPosition",
2172
+ "privacy": "private"
2173
+ },
2174
+ {
2175
+ "kind": "method",
2176
+ "name": "definitionChanged",
2177
+ "privacy": "protected",
2178
+ "parameters": [
2179
+ {
2180
+ "name": "oldValue",
2181
+ "type": {
2182
+ "text": "any"
2183
+ }
2184
+ },
2185
+ {
2186
+ "name": "newValue",
2187
+ "type": {
2188
+ "text": "any"
2189
+ }
2190
+ }
2191
+ ]
2192
+ },
2193
+ {
2194
+ "kind": "method",
2195
+ "name": "openChanged",
2196
+ "privacy": "protected"
2197
+ },
2198
+ {
2199
+ "kind": "method",
2200
+ "name": "toggleActionsMenuVisibility"
2201
+ },
2202
+ {
2203
+ "kind": "method",
2204
+ "name": "onActionMenuItemClick",
2205
+ "parameters": [
2206
+ {
2207
+ "name": "callback",
2208
+ "type": {
2209
+ "text": "(rowData) => void | any"
2210
+ }
2211
+ }
2212
+ ]
2213
+ },
2202
2214
  {
2203
2215
  "kind": "field",
2204
- "name": "id",
2216
+ "name": "allActions",
2205
2217
  "type": {
2206
- "text": "string"
2218
+ "text": "ActionMenuItem[]"
2207
2219
  },
2208
- "privacy": "public",
2209
- "description": "The item ID",
2210
- "inheritedFrom": {
2211
- "name": "AccordionItem",
2212
- "module": "src/accordion-item/accordion-item.ts"
2213
- }
2220
+ "readonly": true
2214
2221
  },
2215
2222
  {
2216
2223
  "kind": "field",
2217
- "name": "change",
2218
- "privacy": "private",
2219
- "inheritedFrom": {
2220
- "name": "AccordionItem",
2221
- "module": "src/accordion-item/accordion-item.ts"
2222
- }
2224
+ "name": "rowData",
2225
+ "readonly": true
2226
+ },
2227
+ {
2228
+ "kind": "method",
2229
+ "name": "getLabel",
2230
+ "parameters": [
2231
+ {
2232
+ "name": "name",
2233
+ "type": {
2234
+ "text": "string | ((rowData: any) => string)"
2235
+ }
2236
+ }
2237
+ ]
2238
+ },
2239
+ {
2240
+ "kind": "method",
2241
+ "name": "getTemplate",
2242
+ "parameters": [
2243
+ {
2244
+ "name": "prefix",
2245
+ "type": {
2246
+ "text": "string"
2247
+ }
2248
+ }
2249
+ ]
2223
2250
  },
2224
2251
  {
2225
2252
  "kind": "field",
@@ -2333,78 +2360,107 @@
2333
2360
  }
2334
2361
  }
2335
2362
  ],
2336
- "events": [
2363
+ "attributes": [
2337
2364
  {
2338
- "description": "Fires a custom 'change' event when the button is invoked",
2339
- "name": "change",
2340
- "inheritedFrom": {
2341
- "name": "AccordionItem",
2342
- "module": "src/accordion-item/accordion-item.ts"
2343
- }
2365
+ "name": "is-vertical",
2366
+ "type": {
2367
+ "text": "boolean"
2368
+ },
2369
+ "default": "false",
2370
+ "fieldName": "isVertical"
2371
+ },
2372
+ {
2373
+ "name": "add-default-actions",
2374
+ "type": {
2375
+ "text": "boolean"
2376
+ },
2377
+ "default": "true",
2378
+ "fieldName": "addDefaultActions"
2379
+ },
2380
+ {
2381
+ "name": "auto-close-on-action",
2382
+ "type": {
2383
+ "text": "boolean"
2384
+ },
2385
+ "default": "true",
2386
+ "fieldName": "autoCloseOnAction"
2387
+ },
2388
+ {
2389
+ "name": "name",
2390
+ "type": {
2391
+ "text": "string"
2392
+ },
2393
+ "default": "'Actions'",
2394
+ "fieldName": "name"
2395
+ },
2396
+ {
2397
+ "name": "open",
2398
+ "type": {
2399
+ "text": "boolean"
2400
+ },
2401
+ "default": "false",
2402
+ "fieldName": "open"
2403
+ },
2404
+ {
2405
+ "name": "buttonAppearance",
2406
+ "type": {
2407
+ "text": "string"
2408
+ },
2409
+ "fieldName": "buttonAppearance"
2410
+ },
2411
+ {
2412
+ "name": "hide-disabled",
2413
+ "type": {
2414
+ "text": "boolean"
2415
+ },
2416
+ "default": "false",
2417
+ "fieldName": "hideDisabled"
2418
+ },
2419
+ {
2420
+ "name": "hide-menu-single-option",
2421
+ "type": {
2422
+ "text": "boolean"
2423
+ },
2424
+ "default": "false",
2425
+ "fieldName": "hideMenuSingleOption"
2344
2426
  }
2345
- ]
2346
- },
2347
- {
2348
- "kind": "variable",
2349
- "name": "foundationAccordionItemShadowOptions",
2350
- "type": {
2351
- "text": "ShadowRootInit"
2352
- },
2353
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2354
- },
2355
- {
2356
- "kind": "variable",
2357
- "name": "defaultAccordionItemConfig",
2358
- "type": {
2359
- "text": "object"
2427
+ ],
2428
+ "superclass": {
2429
+ "name": "FoundationElement",
2430
+ "package": "@microsoft/fast-foundation"
2360
2431
  },
2361
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2432
+ "tagName": "%%prefix%%-actions-menu",
2433
+ "customElement": true
2362
2434
  },
2363
2435
  {
2364
2436
  "kind": "variable",
2365
- "name": "foundationAccordionItem",
2366
- "description": "The Foundation Accordion Item",
2437
+ "name": "foundationActionsMenu",
2438
+ "description": "The Foundation Actions Menu",
2367
2439
  "privacy": "public"
2368
2440
  }
2369
2441
  ],
2370
2442
  "exports": [
2371
2443
  {
2372
2444
  "kind": "js",
2373
- "name": "AccordionItem",
2374
- "declaration": {
2375
- "name": "AccordionItem",
2376
- "module": "src/accordion-item/accordion-item.ts"
2377
- }
2378
- },
2379
- {
2380
- "kind": "js",
2381
- "name": "foundationAccordionItemShadowOptions",
2382
- "declaration": {
2383
- "name": "foundationAccordionItemShadowOptions",
2384
- "module": "src/accordion-item/accordion-item.ts"
2385
- }
2386
- },
2387
- {
2388
- "kind": "js",
2389
- "name": "defaultAccordionItemConfig",
2445
+ "name": "ActionsMenu",
2390
2446
  "declaration": {
2391
- "name": "defaultAccordionItemConfig",
2392
- "module": "src/accordion-item/accordion-item.ts"
2447
+ "name": "ActionsMenu",
2448
+ "module": "src/actions-menu/actions-menu.ts"
2393
2449
  }
2394
2450
  },
2395
2451
  {
2396
2452
  "kind": "js",
2397
- "name": "foundationAccordionItem",
2453
+ "name": "foundationActionsMenu",
2398
2454
  "declaration": {
2399
- "name": "foundationAccordionItem",
2400
- "module": "src/accordion-item/accordion-item.ts"
2455
+ "name": "foundationActionsMenu",
2456
+ "module": "src/actions-menu/actions-menu.ts"
2401
2457
  }
2402
2458
  }
2403
2459
  ]
2404
2460
  },
2405
2461
  {
2406
2462
  "kind": "javascript-module",
2407
- "path": "src/accordion-item/index.ts",
2463
+ "path": "src/actions-menu/index.ts",
2408
2464
  "declarations": [],
2409
2465
  "exports": [
2410
2466
  {
@@ -2412,7 +2468,7 @@
2412
2468
  "name": "*",
2413
2469
  "declaration": {
2414
2470
  "name": "*",
2415
- "package": "./accordion-item.template"
2471
+ "package": "./actions-menu.styles"
2416
2472
  }
2417
2473
  },
2418
2474
  {
@@ -2420,7 +2476,7 @@
2420
2476
  "name": "*",
2421
2477
  "declaration": {
2422
2478
  "name": "*",
2423
- "package": "./accordion-item.styles"
2479
+ "package": "./actions-menu.template"
2424
2480
  }
2425
2481
  },
2426
2482
  {
@@ -2428,41 +2484,18 @@
2428
2484
  "name": "*",
2429
2485
  "declaration": {
2430
2486
  "name": "*",
2431
- "package": "./accordion-item"
2487
+ "package": "./actions-menu"
2432
2488
  }
2433
2489
  }
2434
2490
  ]
2435
2491
  },
2436
2492
  {
2437
2493
  "kind": "javascript-module",
2438
- "path": "src/actions-menu/actions-menu.styles.ts",
2494
+ "path": "src/accordion/accordion.styles.ts",
2439
2495
  "declarations": [
2440
2496
  {
2441
2497
  "kind": "function",
2442
- "name": "actionsMenuBaseStyles",
2443
- "return": {
2444
- "type": {
2445
- "text": "ElementStyles"
2446
- }
2447
- },
2448
- "parameters": [
2449
- {
2450
- "name": "context",
2451
- "type": {
2452
- "text": "ElementDefinitionContext"
2453
- }
2454
- },
2455
- {
2456
- "name": "definition",
2457
- "type": {
2458
- "text": "FoundationElementDefinition"
2459
- }
2460
- }
2461
- ]
2462
- },
2463
- {
2464
- "kind": "function",
2465
- "name": "foundationActionsMenuStyles",
2498
+ "name": "foundationAccordionStyles",
2466
2499
  "return": {
2467
2500
  "type": {
2468
2501
  "text": "ElementStyles"
@@ -2487,281 +2520,277 @@
2487
2520
  "exports": [
2488
2521
  {
2489
2522
  "kind": "js",
2490
- "name": "actionsMenuBaseStyles",
2491
- "declaration": {
2492
- "name": "actionsMenuBaseStyles",
2493
- "module": "src/actions-menu/actions-menu.styles.ts"
2494
- }
2495
- },
2496
- {
2497
- "kind": "js",
2498
- "name": "foundationActionsMenuStyles",
2523
+ "name": "foundationAccordionStyles",
2499
2524
  "declaration": {
2500
- "name": "foundationActionsMenuStyles",
2501
- "module": "src/actions-menu/actions-menu.styles.ts"
2525
+ "name": "foundationAccordionStyles",
2526
+ "module": "src/accordion/accordion.styles.ts"
2502
2527
  }
2503
2528
  }
2504
2529
  ]
2505
2530
  },
2506
2531
  {
2507
2532
  "kind": "javascript-module",
2508
- "path": "src/actions-menu/actions-menu.template.ts",
2533
+ "path": "src/accordion/accordion.template.ts",
2509
2534
  "declarations": [
2510
2535
  {
2511
2536
  "kind": "function",
2512
- "name": "menuTemplate",
2537
+ "name": "foundationAccordionTemplate",
2538
+ "return": {
2539
+ "type": {
2540
+ "text": "ViewTemplate<Accordion>"
2541
+ }
2542
+ },
2513
2543
  "parameters": [
2514
2544
  {
2515
- "name": "prefix",
2545
+ "name": "context",
2516
2546
  "type": {
2517
- "text": "string"
2547
+ "text": "ElementDefinitionContext"
2518
2548
  }
2519
- }
2520
- ]
2521
- },
2522
- {
2523
- "kind": "function",
2524
- "name": "singleOptionTemplate",
2525
- "parameters": [
2549
+ },
2526
2550
  {
2527
- "name": "prefix",
2551
+ "name": "definition",
2528
2552
  "type": {
2529
- "text": "string"
2553
+ "text": "FoundationElementDefinition"
2530
2554
  }
2531
2555
  }
2532
2556
  ]
2533
- },
2534
- {
2535
- "kind": "variable",
2536
- "name": "foundationActionsMenuTemplate",
2537
- "type": {
2538
- "text": "ViewTemplate<ActionsMenu>"
2539
- },
2540
- "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`"
2541
2557
  }
2542
2558
  ],
2543
2559
  "exports": [
2544
2560
  {
2545
2561
  "kind": "js",
2546
- "name": "menuTemplate",
2547
- "declaration": {
2548
- "name": "menuTemplate",
2549
- "module": "src/actions-menu/actions-menu.template.ts"
2550
- }
2551
- },
2552
- {
2553
- "kind": "js",
2554
- "name": "singleOptionTemplate",
2555
- "declaration": {
2556
- "name": "singleOptionTemplate",
2557
- "module": "src/actions-menu/actions-menu.template.ts"
2558
- }
2559
- },
2560
- {
2561
- "kind": "js",
2562
- "name": "foundationActionsMenuTemplate",
2562
+ "name": "foundationAccordionTemplate",
2563
2563
  "declaration": {
2564
- "name": "foundationActionsMenuTemplate",
2565
- "module": "src/actions-menu/actions-menu.template.ts"
2564
+ "name": "foundationAccordionTemplate",
2565
+ "module": "src/accordion/accordion.template.ts"
2566
2566
  }
2567
2567
  }
2568
2568
  ]
2569
2569
  },
2570
2570
  {
2571
2571
  "kind": "javascript-module",
2572
- "path": "src/actions-menu/actions-menu.ts",
2572
+ "path": "src/accordion/accordion.ts",
2573
2573
  "declarations": [
2574
2574
  {
2575
2575
  "kind": "class",
2576
2576
  "description": "",
2577
- "name": "ActionsMenu",
2578
- "members": [
2579
- {
2580
- "kind": "field",
2581
- "name": "actions",
2582
- "type": {
2583
- "text": "ActionMenuItem[]"
2584
- }
2585
- },
2586
- {
2587
- "kind": "field",
2588
- "name": "isVertical",
2589
- "type": {
2590
- "text": "boolean"
2591
- },
2592
- "default": "false"
2593
- },
2577
+ "name": "Accordion",
2578
+ "superclass": {
2579
+ "name": "FASTAccordion",
2580
+ "package": "@microsoft/fast-foundation"
2581
+ },
2582
+ "tagName": "%%prefix%%-accordion",
2583
+ "customElement": true,
2584
+ "attributes": [
2594
2585
  {
2595
- "kind": "field",
2596
- "name": "addDefaultActions",
2586
+ "name": "expand-mode",
2597
2587
  "type": {
2598
- "text": "boolean"
2588
+ "text": "AccordionExpandMode"
2599
2589
  },
2600
- "default": "true"
2601
- },
2590
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2591
+ "fieldName": "expandmode",
2592
+ "inheritedFrom": {
2593
+ "name": "Accordion",
2594
+ "module": "src/accordion/accordion.ts"
2595
+ }
2596
+ }
2597
+ ],
2598
+ "members": [
2602
2599
  {
2603
2600
  "kind": "field",
2604
- "name": "autoCloseOnAction",
2601
+ "name": "expandmode",
2605
2602
  "type": {
2606
- "text": "boolean"
2603
+ "text": "AccordionExpandMode"
2607
2604
  },
2608
- "default": "true"
2609
- },
2610
- {
2611
- "kind": "field",
2612
- "name": "classNames",
2613
- "type": {
2614
- "text": "string"
2605
+ "privacy": "public",
2606
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2607
+ "inheritedFrom": {
2608
+ "name": "Accordion",
2609
+ "module": "src/accordion/accordion.ts"
2615
2610
  }
2616
2611
  },
2617
2612
  {
2618
2613
  "kind": "field",
2619
- "name": "definition",
2614
+ "name": "activeid",
2620
2615
  "type": {
2621
- "text": "any"
2616
+ "text": "string | null"
2617
+ },
2618
+ "privacy": "private",
2619
+ "inheritedFrom": {
2620
+ "name": "Accordion",
2621
+ "module": "src/accordion/accordion.ts"
2622
2622
  }
2623
2623
  },
2624
2624
  {
2625
2625
  "kind": "field",
2626
- "name": "name",
2626
+ "name": "activeItemIndex",
2627
2627
  "type": {
2628
- "text": "string"
2628
+ "text": "number"
2629
2629
  },
2630
- "default": "'Actions'"
2630
+ "privacy": "private",
2631
+ "default": "0",
2632
+ "inheritedFrom": {
2633
+ "name": "Accordion",
2634
+ "module": "src/accordion/accordion.ts"
2635
+ }
2631
2636
  },
2632
2637
  {
2633
2638
  "kind": "field",
2634
- "name": "open",
2639
+ "name": "accordionIds",
2635
2640
  "type": {
2636
- "text": "boolean"
2641
+ "text": "Array<string | null>"
2637
2642
  },
2638
- "default": "false"
2639
- },
2640
- {
2641
- "kind": "field",
2642
- "name": "buttonAppearance",
2643
- "type": {
2644
- "text": "string"
2643
+ "privacy": "private",
2644
+ "inheritedFrom": {
2645
+ "name": "Accordion",
2646
+ "module": "src/accordion/accordion.ts"
2645
2647
  }
2646
2648
  },
2647
2649
  {
2648
2650
  "kind": "field",
2649
- "name": "hideDisabled",
2650
- "type": {
2651
- "text": "boolean"
2652
- },
2653
- "default": "false"
2651
+ "name": "change",
2652
+ "privacy": "private",
2653
+ "inheritedFrom": {
2654
+ "name": "Accordion",
2655
+ "module": "src/accordion/accordion.ts"
2656
+ }
2654
2657
  },
2655
2658
  {
2656
- "kind": "field",
2657
- "name": "hideMenuSingleOption",
2658
- "type": {
2659
- "text": "boolean"
2659
+ "kind": "method",
2660
+ "name": "findExpandedItem",
2661
+ "privacy": "private",
2662
+ "return": {
2663
+ "type": {
2664
+ "text": "AccordionItem | null"
2665
+ }
2660
2666
  },
2661
- "default": "false"
2667
+ "inheritedFrom": {
2668
+ "name": "Accordion",
2669
+ "module": "src/accordion/accordion.ts"
2670
+ }
2662
2671
  },
2663
2672
  {
2664
2673
  "kind": "field",
2665
- "name": "singleOption",
2666
- "type": {
2667
- "text": "ActionMenuItem"
2674
+ "name": "setItems",
2675
+ "privacy": "private",
2676
+ "inheritedFrom": {
2677
+ "name": "Accordion",
2678
+ "module": "src/accordion/accordion.ts"
2668
2679
  }
2669
2680
  },
2670
2681
  {
2671
- "kind": "field",
2672
- "name": "actionsMenu",
2673
- "type": {
2674
- "text": "HTMLElement"
2682
+ "kind": "method",
2683
+ "name": "resetItems",
2684
+ "privacy": "private",
2685
+ "return": {
2686
+ "type": {
2687
+ "text": "void"
2688
+ }
2689
+ },
2690
+ "inheritedFrom": {
2691
+ "name": "Accordion",
2692
+ "module": "src/accordion/accordion.ts"
2675
2693
  }
2676
2694
  },
2677
2695
  {
2678
2696
  "kind": "field",
2679
- "name": "actionsOpener",
2680
- "type": {
2681
- "text": "HTMLElement"
2697
+ "name": "removeItemListeners",
2698
+ "privacy": "private",
2699
+ "inheritedFrom": {
2700
+ "name": "Accordion",
2701
+ "module": "src/accordion/accordion.ts"
2682
2702
  }
2683
2703
  },
2684
2704
  {
2685
- "kind": "method",
2686
- "name": "updateMenuPosition",
2687
- "privacy": "private"
2705
+ "kind": "field",
2706
+ "name": "activeItemChange",
2707
+ "privacy": "private",
2708
+ "inheritedFrom": {
2709
+ "name": "Accordion",
2710
+ "module": "src/accordion/accordion.ts"
2711
+ }
2688
2712
  },
2689
2713
  {
2690
2714
  "kind": "method",
2691
- "name": "definitionChanged",
2692
- "privacy": "protected",
2693
- "parameters": [
2694
- {
2695
- "name": "oldValue",
2696
- "type": {
2697
- "text": "any"
2698
- }
2699
- },
2700
- {
2701
- "name": "newValue",
2702
- "type": {
2703
- "text": "any"
2704
- }
2715
+ "name": "getItemIds",
2716
+ "privacy": "private",
2717
+ "return": {
2718
+ "type": {
2719
+ "text": "Array<string | null>"
2705
2720
  }
2706
- ]
2707
- },
2708
- {
2709
- "kind": "method",
2710
- "name": "openChanged",
2711
- "privacy": "protected"
2712
- },
2713
- {
2714
- "kind": "method",
2715
- "name": "toggleActionsMenuVisibility"
2721
+ },
2722
+ "inheritedFrom": {
2723
+ "name": "Accordion",
2724
+ "module": "src/accordion/accordion.ts"
2725
+ }
2716
2726
  },
2717
2727
  {
2718
2728
  "kind": "method",
2719
- "name": "onActionMenuItemClick",
2720
- "parameters": [
2721
- {
2722
- "name": "callback",
2723
- "type": {
2724
- "text": "(rowData) => void | any"
2725
- }
2729
+ "name": "isSingleExpandMode",
2730
+ "privacy": "private",
2731
+ "return": {
2732
+ "type": {
2733
+ "text": "boolean"
2726
2734
  }
2727
- ]
2735
+ },
2736
+ "inheritedFrom": {
2737
+ "name": "Accordion",
2738
+ "module": "src/accordion/accordion.ts"
2739
+ }
2728
2740
  },
2729
2741
  {
2730
2742
  "kind": "field",
2731
- "name": "allActions",
2732
- "type": {
2733
- "text": "ActionMenuItem[]"
2734
- },
2735
- "readonly": true
2743
+ "name": "handleItemKeyDown",
2744
+ "privacy": "private",
2745
+ "inheritedFrom": {
2746
+ "name": "Accordion",
2747
+ "module": "src/accordion/accordion.ts"
2748
+ }
2736
2749
  },
2737
2750
  {
2738
2751
  "kind": "field",
2739
- "name": "rowData",
2740
- "readonly": true
2752
+ "name": "handleItemFocus",
2753
+ "privacy": "private",
2754
+ "inheritedFrom": {
2755
+ "name": "Accordion",
2756
+ "module": "src/accordion/accordion.ts"
2757
+ }
2741
2758
  },
2742
2759
  {
2743
2760
  "kind": "method",
2744
- "name": "getLabel",
2761
+ "name": "adjust",
2762
+ "privacy": "private",
2763
+ "return": {
2764
+ "type": {
2765
+ "text": "void"
2766
+ }
2767
+ },
2745
2768
  "parameters": [
2746
2769
  {
2747
- "name": "name",
2770
+ "name": "adjustment",
2748
2771
  "type": {
2749
- "text": "string | ((rowData: any) => string)"
2772
+ "text": "number"
2750
2773
  }
2751
2774
  }
2752
- ]
2775
+ ],
2776
+ "inheritedFrom": {
2777
+ "name": "Accordion",
2778
+ "module": "src/accordion/accordion.ts"
2779
+ }
2753
2780
  },
2754
2781
  {
2755
2782
  "kind": "method",
2756
- "name": "getTemplate",
2757
- "parameters": [
2758
- {
2759
- "name": "prefix",
2760
- "type": {
2761
- "text": "string"
2762
- }
2783
+ "name": "focusItem",
2784
+ "privacy": "private",
2785
+ "return": {
2786
+ "type": {
2787
+ "text": "void"
2763
2788
  }
2764
- ]
2789
+ },
2790
+ "inheritedFrom": {
2791
+ "name": "Accordion",
2792
+ "module": "src/accordion/accordion.ts"
2793
+ }
2765
2794
  },
2766
2795
  {
2767
2796
  "kind": "field",
@@ -2875,107 +2904,78 @@
2875
2904
  }
2876
2905
  }
2877
2906
  ],
2878
- "attributes": [
2879
- {
2880
- "name": "is-vertical",
2881
- "type": {
2882
- "text": "boolean"
2883
- },
2884
- "default": "false",
2885
- "fieldName": "isVertical"
2886
- },
2887
- {
2888
- "name": "add-default-actions",
2889
- "type": {
2890
- "text": "boolean"
2891
- },
2892
- "default": "true",
2893
- "fieldName": "addDefaultActions"
2894
- },
2895
- {
2896
- "name": "auto-close-on-action",
2897
- "type": {
2898
- "text": "boolean"
2899
- },
2900
- "default": "true",
2901
- "fieldName": "autoCloseOnAction"
2902
- },
2903
- {
2904
- "name": "name",
2905
- "type": {
2906
- "text": "string"
2907
- },
2908
- "default": "'Actions'",
2909
- "fieldName": "name"
2910
- },
2911
- {
2912
- "name": "open",
2913
- "type": {
2914
- "text": "boolean"
2915
- },
2916
- "default": "false",
2917
- "fieldName": "open"
2918
- },
2919
- {
2920
- "name": "buttonAppearance",
2921
- "type": {
2922
- "text": "string"
2923
- },
2924
- "fieldName": "buttonAppearance"
2925
- },
2926
- {
2927
- "name": "hide-disabled",
2928
- "type": {
2929
- "text": "boolean"
2930
- },
2931
- "default": "false",
2932
- "fieldName": "hideDisabled"
2933
- },
2907
+ "events": [
2934
2908
  {
2935
- "name": "hide-menu-single-option",
2936
- "type": {
2937
- "text": "boolean"
2938
- },
2939
- "default": "false",
2940
- "fieldName": "hideMenuSingleOption"
2909
+ "description": "Fires a custom 'change' event when the active item changes",
2910
+ "name": "change",
2911
+ "inheritedFrom": {
2912
+ "name": "Accordion",
2913
+ "module": "src/accordion/accordion.ts"
2914
+ }
2941
2915
  }
2942
- ],
2943
- "superclass": {
2944
- "name": "FoundationElement",
2945
- "package": "@microsoft/fast-foundation"
2916
+ ]
2917
+ },
2918
+ {
2919
+ "kind": "variable",
2920
+ "name": "foundationAccordionShadowOptions",
2921
+ "type": {
2922
+ "text": "ShadowRootInit"
2946
2923
  },
2947
- "tagName": "%%prefix%%-actions-menu",
2948
- "customElement": true
2924
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2949
2925
  },
2950
2926
  {
2951
2927
  "kind": "variable",
2952
- "name": "foundationActionsMenu",
2953
- "description": "The Foundation Actions Menu",
2928
+ "name": "defaultAccordionConfig",
2929
+ "type": {
2930
+ "text": "object"
2931
+ },
2932
+ "default": "{}"
2933
+ },
2934
+ {
2935
+ "kind": "variable",
2936
+ "name": "foundationAccordion",
2937
+ "description": "The Foundation Accordion",
2954
2938
  "privacy": "public"
2955
2939
  }
2956
2940
  ],
2957
2941
  "exports": [
2958
2942
  {
2959
2943
  "kind": "js",
2960
- "name": "ActionsMenu",
2944
+ "name": "Accordion",
2961
2945
  "declaration": {
2962
- "name": "ActionsMenu",
2963
- "module": "src/actions-menu/actions-menu.ts"
2946
+ "name": "Accordion",
2947
+ "module": "src/accordion/accordion.ts"
2964
2948
  }
2965
2949
  },
2966
2950
  {
2967
2951
  "kind": "js",
2968
- "name": "foundationActionsMenu",
2952
+ "name": "foundationAccordionShadowOptions",
2969
2953
  "declaration": {
2970
- "name": "foundationActionsMenu",
2971
- "module": "src/actions-menu/actions-menu.ts"
2954
+ "name": "foundationAccordionShadowOptions",
2955
+ "module": "src/accordion/accordion.ts"
2956
+ }
2957
+ },
2958
+ {
2959
+ "kind": "js",
2960
+ "name": "defaultAccordionConfig",
2961
+ "declaration": {
2962
+ "name": "defaultAccordionConfig",
2963
+ "module": "src/accordion/accordion.ts"
2964
+ }
2965
+ },
2966
+ {
2967
+ "kind": "js",
2968
+ "name": "foundationAccordion",
2969
+ "declaration": {
2970
+ "name": "foundationAccordion",
2971
+ "module": "src/accordion/accordion.ts"
2972
2972
  }
2973
2973
  }
2974
2974
  ]
2975
2975
  },
2976
2976
  {
2977
2977
  "kind": "javascript-module",
2978
- "path": "src/actions-menu/index.ts",
2978
+ "path": "src/accordion/index.ts",
2979
2979
  "declarations": [],
2980
2980
  "exports": [
2981
2981
  {
@@ -2983,7 +2983,7 @@
2983
2983
  "name": "*",
2984
2984
  "declaration": {
2985
2985
  "name": "*",
2986
- "package": "./actions-menu.styles"
2986
+ "package": "./accordion.template"
2987
2987
  }
2988
2988
  },
2989
2989
  {
@@ -2991,7 +2991,7 @@
2991
2991
  "name": "*",
2992
2992
  "declaration": {
2993
2993
  "name": "*",
2994
- "package": "./actions-menu.template"
2994
+ "package": "./accordion.styles"
2995
2995
  }
2996
2996
  },
2997
2997
  {
@@ -2999,7 +2999,7 @@
2999
2999
  "name": "*",
3000
3000
  "declaration": {
3001
3001
  "name": "*",
3002
- "package": "./actions-menu"
3002
+ "package": "./accordion"
3003
3003
  }
3004
3004
  }
3005
3005
  ]