@genesislcap/foundation-ui 15.84.2 → 15.85.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.
@@ -1495,11 +1495,42 @@
1495
1495
  },
1496
1496
  {
1497
1497
  "kind": "javascript-module",
1498
- "path": "src/accordion/accordion.styles.ts",
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-item/accordion-item.styles.ts",
1499
1530
  "declarations": [
1500
1531
  {
1501
1532
  "kind": "function",
1502
- "name": "foundationAccordionStyles",
1533
+ "name": "foundationAccordionItemStyles",
1503
1534
  "return": {
1504
1535
  "type": {
1505
1536
  "text": "ElementStyles"
@@ -1524,24 +1555,24 @@
1524
1555
  "exports": [
1525
1556
  {
1526
1557
  "kind": "js",
1527
- "name": "foundationAccordionStyles",
1558
+ "name": "foundationAccordionItemStyles",
1528
1559
  "declaration": {
1529
- "name": "foundationAccordionStyles",
1530
- "module": "src/accordion/accordion.styles.ts"
1560
+ "name": "foundationAccordionItemStyles",
1561
+ "module": "src/accordion-item/accordion-item.styles.ts"
1531
1562
  }
1532
1563
  }
1533
1564
  ]
1534
1565
  },
1535
1566
  {
1536
1567
  "kind": "javascript-module",
1537
- "path": "src/accordion/accordion.template.ts",
1568
+ "path": "src/accordion-item/accordion-item.template.ts",
1538
1569
  "declarations": [
1539
1570
  {
1540
1571
  "kind": "function",
1541
- "name": "foundationAccordionTemplate",
1572
+ "name": "foundationAccordionItemTemplate",
1542
1573
  "return": {
1543
1574
  "type": {
1544
- "text": "ViewTemplate<Accordion>"
1575
+ "text": "ViewTemplate<AccordionItem>"
1545
1576
  }
1546
1577
  },
1547
1578
  "parameters": [
@@ -1563,365 +1594,244 @@
1563
1594
  "exports": [
1564
1595
  {
1565
1596
  "kind": "js",
1566
- "name": "foundationAccordionTemplate",
1597
+ "name": "foundationAccordionItemTemplate",
1567
1598
  "declaration": {
1568
- "name": "foundationAccordionTemplate",
1569
- "module": "src/accordion/accordion.template.ts"
1599
+ "name": "foundationAccordionItemTemplate",
1600
+ "module": "src/accordion-item/accordion-item.template.ts"
1570
1601
  }
1571
1602
  }
1572
1603
  ]
1573
1604
  },
1574
1605
  {
1575
1606
  "kind": "javascript-module",
1576
- "path": "src/accordion/accordion.ts",
1607
+ "path": "src/accordion-item/accordion-item.ts",
1577
1608
  "declarations": [
1578
1609
  {
1579
1610
  "kind": "class",
1580
1611
  "description": "",
1581
- "name": "Accordion",
1612
+ "name": "AccordionItem",
1582
1613
  "superclass": {
1583
- "name": "FASTAccordion",
1584
- "package": "@microsoft/fast-foundation"
1614
+ "name": "FASTAccordionItem",
1615
+ "package": "@microsoft/fast-components"
1585
1616
  },
1586
- "tagName": "%%prefix%%-accordion",
1617
+ "tagName": "%%prefix%%-accordion-item",
1587
1618
  "customElement": true,
1588
1619
  "attributes": [
1589
1620
  {
1590
- "name": "expand-mode",
1621
+ "name": "heading-level",
1591
1622
  "type": {
1592
- "text": "AccordionExpandMode"
1623
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1593
1624
  },
1594
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1595
- "fieldName": "expandmode",
1625
+ "default": "2",
1626
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1627
+ "fieldName": "headinglevel",
1596
1628
  "inheritedFrom": {
1597
- "name": "Accordion",
1598
- "module": "src/accordion/accordion.ts"
1629
+ "name": "AccordionItem",
1630
+ "module": "src/accordion-item/accordion-item.ts"
1631
+ }
1632
+ },
1633
+ {
1634
+ "type": {
1635
+ "text": "boolean"
1636
+ },
1637
+ "default": "false",
1638
+ "description": "Expands or collapses the item.",
1639
+ "fieldName": "expanded",
1640
+ "inheritedFrom": {
1641
+ "name": "AccordionItem",
1642
+ "module": "src/accordion-item/accordion-item.ts"
1643
+ }
1644
+ },
1645
+ {
1646
+ "name": "id",
1647
+ "type": {
1648
+ "text": "string"
1649
+ },
1650
+ "description": "The item ID",
1651
+ "fieldName": "id",
1652
+ "inheritedFrom": {
1653
+ "name": "AccordionItem",
1654
+ "module": "src/accordion-item/accordion-item.ts"
1599
1655
  }
1600
1656
  }
1601
1657
  ],
1602
1658
  "members": [
1603
1659
  {
1604
1660
  "kind": "field",
1605
- "name": "expandmode",
1661
+ "name": "headinglevel",
1606
1662
  "type": {
1607
- "text": "AccordionExpandMode"
1663
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1608
1664
  },
1609
1665
  "privacy": "public",
1610
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1666
+ "default": "2",
1667
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1611
1668
  "inheritedFrom": {
1612
- "name": "Accordion",
1613
- "module": "src/accordion/accordion.ts"
1669
+ "name": "AccordionItem",
1670
+ "module": "src/accordion-item/accordion-item.ts"
1614
1671
  }
1615
1672
  },
1616
1673
  {
1617
1674
  "kind": "field",
1618
- "name": "activeid",
1675
+ "name": "expanded",
1619
1676
  "type": {
1620
- "text": "string | null"
1677
+ "text": "boolean"
1621
1678
  },
1622
- "privacy": "private",
1679
+ "privacy": "public",
1680
+ "default": "false",
1681
+ "description": "Expands or collapses the item.",
1623
1682
  "inheritedFrom": {
1624
- "name": "Accordion",
1625
- "module": "src/accordion/accordion.ts"
1683
+ "name": "AccordionItem",
1684
+ "module": "src/accordion-item/accordion-item.ts"
1626
1685
  }
1627
1686
  },
1628
1687
  {
1629
1688
  "kind": "field",
1630
- "name": "activeItemIndex",
1689
+ "name": "id",
1631
1690
  "type": {
1632
- "text": "number"
1691
+ "text": "string"
1633
1692
  },
1634
- "privacy": "private",
1635
- "default": "0",
1693
+ "privacy": "public",
1694
+ "description": "The item ID",
1636
1695
  "inheritedFrom": {
1637
- "name": "Accordion",
1638
- "module": "src/accordion/accordion.ts"
1696
+ "name": "AccordionItem",
1697
+ "module": "src/accordion-item/accordion-item.ts"
1639
1698
  }
1640
1699
  },
1641
1700
  {
1642
1701
  "kind": "field",
1643
- "name": "accordionIds",
1644
- "type": {
1645
- "text": "Array<string | null>"
1646
- },
1702
+ "name": "change",
1647
1703
  "privacy": "private",
1648
1704
  "inheritedFrom": {
1649
- "name": "Accordion",
1650
- "module": "src/accordion/accordion.ts"
1705
+ "name": "AccordionItem",
1706
+ "module": "src/accordion-item/accordion-item.ts"
1651
1707
  }
1652
1708
  },
1653
1709
  {
1654
1710
  "kind": "field",
1655
- "name": "change",
1711
+ "name": "_presentation",
1712
+ "type": {
1713
+ "text": "ComponentPresentation | null | undefined"
1714
+ },
1656
1715
  "privacy": "private",
1716
+ "default": "void 0",
1657
1717
  "inheritedFrom": {
1658
- "name": "Accordion",
1659
- "module": "src/accordion/accordion.ts"
1718
+ "name": "FoundationElement",
1719
+ "module": "src/foundation-element/foundation-element.ts"
1660
1720
  }
1661
1721
  },
1662
1722
  {
1663
- "kind": "method",
1664
- "name": "findExpandedItem",
1665
- "privacy": "private",
1666
- "return": {
1667
- "type": {
1668
- "text": "AccordionItem | null"
1669
- }
1723
+ "kind": "field",
1724
+ "name": "$presentation",
1725
+ "type": {
1726
+ "text": "ComponentPresentation | null"
1670
1727
  },
1728
+ "privacy": "public",
1729
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1671
1730
  "inheritedFrom": {
1672
- "name": "Accordion",
1673
- "module": "src/accordion/accordion.ts"
1731
+ "name": "FoundationElement",
1732
+ "module": "src/foundation-element/foundation-element.ts"
1674
1733
  }
1675
1734
  },
1676
1735
  {
1677
1736
  "kind": "field",
1678
- "name": "setItems",
1679
- "privacy": "private",
1737
+ "name": "template",
1738
+ "type": {
1739
+ "text": "ElementViewTemplate | void | null"
1740
+ },
1741
+ "privacy": "public",
1742
+ "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.",
1680
1743
  "inheritedFrom": {
1681
- "name": "Accordion",
1682
- "module": "src/accordion/accordion.ts"
1744
+ "name": "FoundationElement",
1745
+ "module": "src/foundation-element/foundation-element.ts"
1683
1746
  }
1684
1747
  },
1685
1748
  {
1686
1749
  "kind": "method",
1687
- "name": "resetItems",
1688
- "privacy": "private",
1750
+ "name": "templateChanged",
1751
+ "privacy": "protected",
1689
1752
  "return": {
1690
1753
  "type": {
1691
1754
  "text": "void"
1692
1755
  }
1693
1756
  },
1694
1757
  "inheritedFrom": {
1695
- "name": "Accordion",
1696
- "module": "src/accordion/accordion.ts"
1697
- }
1698
- },
1699
- {
1700
- "kind": "field",
1701
- "name": "removeItemListeners",
1702
- "privacy": "private",
1703
- "inheritedFrom": {
1704
- "name": "Accordion",
1705
- "module": "src/accordion/accordion.ts"
1758
+ "name": "FoundationElement",
1759
+ "module": "src/foundation-element/foundation-element.ts"
1706
1760
  }
1707
1761
  },
1708
1762
  {
1709
1763
  "kind": "field",
1710
- "name": "activeItemChange",
1711
- "privacy": "private",
1764
+ "name": "styles",
1765
+ "type": {
1766
+ "text": "ElementStyles | void | null"
1767
+ },
1768
+ "privacy": "public",
1769
+ "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.",
1712
1770
  "inheritedFrom": {
1713
- "name": "Accordion",
1714
- "module": "src/accordion/accordion.ts"
1771
+ "name": "FoundationElement",
1772
+ "module": "src/foundation-element/foundation-element.ts"
1715
1773
  }
1716
1774
  },
1717
1775
  {
1718
1776
  "kind": "method",
1719
- "name": "getItemIds",
1720
- "privacy": "private",
1777
+ "name": "stylesChanged",
1778
+ "privacy": "protected",
1721
1779
  "return": {
1722
1780
  "type": {
1723
- "text": "Array<string | null>"
1781
+ "text": "void"
1724
1782
  }
1725
1783
  },
1726
1784
  "inheritedFrom": {
1727
- "name": "Accordion",
1728
- "module": "src/accordion/accordion.ts"
1785
+ "name": "FoundationElement",
1786
+ "module": "src/foundation-element/foundation-element.ts"
1729
1787
  }
1730
1788
  },
1731
1789
  {
1732
1790
  "kind": "method",
1733
- "name": "isSingleExpandMode",
1734
- "privacy": "private",
1791
+ "name": "compose",
1792
+ "privacy": "public",
1793
+ "static": true,
1735
1794
  "return": {
1736
1795
  "type": {
1737
- "text": "boolean"
1796
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1738
1797
  }
1739
1798
  },
1799
+ "parameters": [
1800
+ {
1801
+ "name": "this",
1802
+ "type": {
1803
+ "text": "K"
1804
+ }
1805
+ },
1806
+ {
1807
+ "name": "elementDefinition",
1808
+ "type": {
1809
+ "text": "T"
1810
+ },
1811
+ "description": "The definition of the element to create the registry\nfunction for."
1812
+ }
1813
+ ],
1814
+ "description": "Defines an element registry function with a set of element definition defaults.",
1740
1815
  "inheritedFrom": {
1741
- "name": "Accordion",
1742
- "module": "src/accordion/accordion.ts"
1816
+ "name": "FoundationElement",
1817
+ "module": "src/foundation-element/foundation-element.ts"
1743
1818
  }
1744
- },
1819
+ }
1820
+ ],
1821
+ "events": [
1745
1822
  {
1746
- "kind": "field",
1747
- "name": "handleItemKeyDown",
1748
- "privacy": "private",
1749
- "inheritedFrom": {
1750
- "name": "Accordion",
1751
- "module": "src/accordion/accordion.ts"
1752
- }
1753
- },
1754
- {
1755
- "kind": "field",
1756
- "name": "handleItemFocus",
1757
- "privacy": "private",
1758
- "inheritedFrom": {
1759
- "name": "Accordion",
1760
- "module": "src/accordion/accordion.ts"
1761
- }
1762
- },
1763
- {
1764
- "kind": "method",
1765
- "name": "adjust",
1766
- "privacy": "private",
1767
- "return": {
1768
- "type": {
1769
- "text": "void"
1770
- }
1771
- },
1772
- "parameters": [
1773
- {
1774
- "name": "adjustment",
1775
- "type": {
1776
- "text": "number"
1777
- }
1778
- }
1779
- ],
1780
- "inheritedFrom": {
1781
- "name": "Accordion",
1782
- "module": "src/accordion/accordion.ts"
1783
- }
1784
- },
1785
- {
1786
- "kind": "method",
1787
- "name": "focusItem",
1788
- "privacy": "private",
1789
- "return": {
1790
- "type": {
1791
- "text": "void"
1792
- }
1793
- },
1794
- "inheritedFrom": {
1795
- "name": "Accordion",
1796
- "module": "src/accordion/accordion.ts"
1797
- }
1798
- },
1799
- {
1800
- "kind": "field",
1801
- "name": "_presentation",
1802
- "type": {
1803
- "text": "ComponentPresentation | null | undefined"
1804
- },
1805
- "privacy": "private",
1806
- "default": "void 0",
1807
- "inheritedFrom": {
1808
- "name": "FoundationElement",
1809
- "module": "src/foundation-element/foundation-element.ts"
1810
- }
1811
- },
1812
- {
1813
- "kind": "field",
1814
- "name": "$presentation",
1815
- "type": {
1816
- "text": "ComponentPresentation | null"
1817
- },
1818
- "privacy": "public",
1819
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1820
- "inheritedFrom": {
1821
- "name": "FoundationElement",
1822
- "module": "src/foundation-element/foundation-element.ts"
1823
- }
1824
- },
1825
- {
1826
- "kind": "field",
1827
- "name": "template",
1828
- "type": {
1829
- "text": "ElementViewTemplate | void | null"
1830
- },
1831
- "privacy": "public",
1832
- "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.",
1833
- "inheritedFrom": {
1834
- "name": "FoundationElement",
1835
- "module": "src/foundation-element/foundation-element.ts"
1836
- }
1837
- },
1838
- {
1839
- "kind": "method",
1840
- "name": "templateChanged",
1841
- "privacy": "protected",
1842
- "return": {
1843
- "type": {
1844
- "text": "void"
1845
- }
1846
- },
1847
- "inheritedFrom": {
1848
- "name": "FoundationElement",
1849
- "module": "src/foundation-element/foundation-element.ts"
1850
- }
1851
- },
1852
- {
1853
- "kind": "field",
1854
- "name": "styles",
1855
- "type": {
1856
- "text": "ElementStyles | void | null"
1857
- },
1858
- "privacy": "public",
1859
- "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.",
1860
- "inheritedFrom": {
1861
- "name": "FoundationElement",
1862
- "module": "src/foundation-element/foundation-element.ts"
1863
- }
1864
- },
1865
- {
1866
- "kind": "method",
1867
- "name": "stylesChanged",
1868
- "privacy": "protected",
1869
- "return": {
1870
- "type": {
1871
- "text": "void"
1872
- }
1873
- },
1874
- "inheritedFrom": {
1875
- "name": "FoundationElement",
1876
- "module": "src/foundation-element/foundation-element.ts"
1877
- }
1878
- },
1879
- {
1880
- "kind": "method",
1881
- "name": "compose",
1882
- "privacy": "public",
1883
- "static": true,
1884
- "return": {
1885
- "type": {
1886
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1887
- }
1888
- },
1889
- "parameters": [
1890
- {
1891
- "name": "this",
1892
- "type": {
1893
- "text": "K"
1894
- }
1895
- },
1896
- {
1897
- "name": "elementDefinition",
1898
- "type": {
1899
- "text": "T"
1900
- },
1901
- "description": "The definition of the element to create the registry\nfunction for."
1902
- }
1903
- ],
1904
- "description": "Defines an element registry function with a set of element definition defaults.",
1905
- "inheritedFrom": {
1906
- "name": "FoundationElement",
1907
- "module": "src/foundation-element/foundation-element.ts"
1908
- }
1909
- }
1910
- ],
1911
- "events": [
1912
- {
1913
- "description": "Fires a custom 'change' event when the active item changes",
1823
+ "description": "Fires a custom 'change' event when the button is invoked",
1914
1824
  "name": "change",
1915
1825
  "inheritedFrom": {
1916
- "name": "Accordion",
1917
- "module": "src/accordion/accordion.ts"
1826
+ "name": "AccordionItem",
1827
+ "module": "src/accordion-item/accordion-item.ts"
1918
1828
  }
1919
1829
  }
1920
1830
  ]
1921
1831
  },
1922
1832
  {
1923
1833
  "kind": "variable",
1924
- "name": "foundationAccordionShadowOptions",
1834
+ "name": "foundationAccordionItemShadowOptions",
1925
1835
  "type": {
1926
1836
  "text": "ShadowRootInit"
1927
1837
  },
@@ -1929,57 +1839,57 @@
1929
1839
  },
1930
1840
  {
1931
1841
  "kind": "variable",
1932
- "name": "defaultAccordionConfig",
1842
+ "name": "defaultAccordionItemConfig",
1933
1843
  "type": {
1934
1844
  "text": "object"
1935
1845
  },
1936
- "default": "{}"
1846
+ "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}"
1937
1847
  },
1938
1848
  {
1939
1849
  "kind": "variable",
1940
- "name": "foundationAccordion",
1941
- "description": "The Foundation Accordion",
1850
+ "name": "foundationAccordionItem",
1851
+ "description": "The Foundation Accordion Item",
1942
1852
  "privacy": "public"
1943
1853
  }
1944
1854
  ],
1945
1855
  "exports": [
1946
1856
  {
1947
1857
  "kind": "js",
1948
- "name": "Accordion",
1858
+ "name": "AccordionItem",
1949
1859
  "declaration": {
1950
- "name": "Accordion",
1951
- "module": "src/accordion/accordion.ts"
1860
+ "name": "AccordionItem",
1861
+ "module": "src/accordion-item/accordion-item.ts"
1952
1862
  }
1953
1863
  },
1954
1864
  {
1955
1865
  "kind": "js",
1956
- "name": "foundationAccordionShadowOptions",
1866
+ "name": "foundationAccordionItemShadowOptions",
1957
1867
  "declaration": {
1958
- "name": "foundationAccordionShadowOptions",
1959
- "module": "src/accordion/accordion.ts"
1868
+ "name": "foundationAccordionItemShadowOptions",
1869
+ "module": "src/accordion-item/accordion-item.ts"
1960
1870
  }
1961
1871
  },
1962
1872
  {
1963
1873
  "kind": "js",
1964
- "name": "defaultAccordionConfig",
1874
+ "name": "defaultAccordionItemConfig",
1965
1875
  "declaration": {
1966
- "name": "defaultAccordionConfig",
1967
- "module": "src/accordion/accordion.ts"
1876
+ "name": "defaultAccordionItemConfig",
1877
+ "module": "src/accordion-item/accordion-item.ts"
1968
1878
  }
1969
1879
  },
1970
1880
  {
1971
1881
  "kind": "js",
1972
- "name": "foundationAccordion",
1882
+ "name": "foundationAccordionItem",
1973
1883
  "declaration": {
1974
- "name": "foundationAccordion",
1975
- "module": "src/accordion/accordion.ts"
1884
+ "name": "foundationAccordionItem",
1885
+ "module": "src/accordion-item/accordion-item.ts"
1976
1886
  }
1977
1887
  }
1978
1888
  ]
1979
1889
  },
1980
1890
  {
1981
1891
  "kind": "javascript-module",
1982
- "path": "src/accordion/index.ts",
1892
+ "path": "src/accordion-item/index.ts",
1983
1893
  "declarations": [],
1984
1894
  "exports": [
1985
1895
  {
@@ -1987,7 +1897,7 @@
1987
1897
  "name": "*",
1988
1898
  "declaration": {
1989
1899
  "name": "*",
1990
- "package": "./accordion.template"
1900
+ "package": "./accordion-item.template"
1991
1901
  }
1992
1902
  },
1993
1903
  {
@@ -1995,7 +1905,7 @@
1995
1905
  "name": "*",
1996
1906
  "declaration": {
1997
1907
  "name": "*",
1998
- "package": "./accordion.styles"
1908
+ "package": "./accordion-item.styles"
1999
1909
  }
2000
1910
  },
2001
1911
  {
@@ -2003,18 +1913,18 @@
2003
1913
  "name": "*",
2004
1914
  "declaration": {
2005
1915
  "name": "*",
2006
- "package": "./accordion"
1916
+ "package": "./accordion-item"
2007
1917
  }
2008
1918
  }
2009
1919
  ]
2010
1920
  },
2011
1921
  {
2012
1922
  "kind": "javascript-module",
2013
- "path": "src/accordion-item/accordion-item.styles.ts",
1923
+ "path": "src/actions-menu/actions-menu.styles.ts",
2014
1924
  "declarations": [
2015
1925
  {
2016
1926
  "kind": "function",
2017
- "name": "foundationAccordionItemStyles",
1927
+ "name": "actionsMenuBaseStyles",
2018
1928
  "return": {
2019
1929
  "type": {
2020
1930
  "text": "ElementStyles"
@@ -2034,29 +1944,13 @@
2034
1944
  }
2035
1945
  }
2036
1946
  ]
2037
- }
2038
- ],
2039
- "exports": [
2040
- {
2041
- "kind": "js",
2042
- "name": "foundationAccordionItemStyles",
2043
- "declaration": {
2044
- "name": "foundationAccordionItemStyles",
2045
- "module": "src/accordion-item/accordion-item.styles.ts"
2046
- }
2047
- }
2048
- ]
2049
- },
2050
- {
2051
- "kind": "javascript-module",
2052
- "path": "src/accordion-item/accordion-item.template.ts",
2053
- "declarations": [
1947
+ },
2054
1948
  {
2055
1949
  "kind": "function",
2056
- "name": "foundationAccordionItemTemplate",
1950
+ "name": "foundationActionsMenuStyles",
2057
1951
  "return": {
2058
1952
  "type": {
2059
- "text": "ViewTemplate<AccordionItem>"
1953
+ "text": "ElementStyles"
2060
1954
  }
2061
1955
  },
2062
1956
  "parameters": [
@@ -2078,207 +1972,466 @@
2078
1972
  "exports": [
2079
1973
  {
2080
1974
  "kind": "js",
2081
- "name": "foundationAccordionItemTemplate",
1975
+ "name": "actionsMenuBaseStyles",
2082
1976
  "declaration": {
2083
- "name": "foundationAccordionItemTemplate",
2084
- "module": "src/accordion-item/accordion-item.template.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"
2085
1987
  }
2086
1988
  }
2087
1989
  ]
2088
1990
  },
2089
1991
  {
2090
1992
  "kind": "javascript-module",
2091
- "path": "src/accordion-item/accordion-item.ts",
1993
+ "path": "src/actions-menu/actions-menu.template.ts",
2092
1994
  "declarations": [
2093
1995
  {
2094
- "kind": "class",
2095
- "description": "",
2096
- "name": "AccordionItem",
2097
- "superclass": {
2098
- "name": "FASTAccordionItem",
2099
- "package": "@microsoft/fast-components"
1996
+ "kind": "variable",
1997
+ "name": "menuTemplate"
1998
+ },
1999
+ {
2000
+ "kind": "variable",
2001
+ "name": "singleOptionTemplate"
2002
+ },
2003
+ {
2004
+ "kind": "variable",
2005
+ "name": "foundationActionsMenuTemplate",
2006
+ "type": {
2007
+ "text": "ViewTemplate<ActionsMenu>"
2100
2008
  },
2101
- "tagName": "%%prefix%%-accordion-item",
2102
- "customElement": true,
2103
- "attributes": [
2009
+ "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`"
2010
+ }
2011
+ ],
2012
+ "exports": [
2013
+ {
2014
+ "kind": "js",
2015
+ "name": "menuTemplate",
2016
+ "declaration": {
2017
+ "name": "menuTemplate",
2018
+ "module": "src/actions-menu/actions-menu.template.ts"
2019
+ }
2020
+ },
2021
+ {
2022
+ "kind": "js",
2023
+ "name": "singleOptionTemplate",
2024
+ "declaration": {
2025
+ "name": "singleOptionTemplate",
2026
+ "module": "src/actions-menu/actions-menu.template.ts"
2027
+ }
2028
+ },
2029
+ {
2030
+ "kind": "js",
2031
+ "name": "foundationActionsMenuTemplate",
2032
+ "declaration": {
2033
+ "name": "foundationActionsMenuTemplate",
2034
+ "module": "src/actions-menu/actions-menu.template.ts"
2035
+ }
2036
+ }
2037
+ ]
2038
+ },
2039
+ {
2040
+ "kind": "javascript-module",
2041
+ "path": "src/actions-menu/actions-menu.ts",
2042
+ "declarations": [
2043
+ {
2044
+ "kind": "class",
2045
+ "description": "",
2046
+ "name": "ActionsMenu",
2047
+ "members": [
2104
2048
  {
2105
- "name": "heading-level",
2049
+ "kind": "field",
2050
+ "name": "actions",
2106
2051
  "type": {
2107
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2108
- },
2109
- "default": "2",
2110
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2111
- "fieldName": "headinglevel",
2112
- "inheritedFrom": {
2113
- "name": "AccordionItem",
2114
- "module": "src/accordion-item/accordion-item.ts"
2052
+ "text": "ActionMenuItem[]"
2115
2053
  }
2116
2054
  },
2117
2055
  {
2056
+ "kind": "field",
2057
+ "name": "actionsResolver",
2058
+ "type": {
2059
+ "text": "ActionMenuItemsResolver | undefined"
2060
+ },
2061
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2062
+ },
2063
+ {
2064
+ "kind": "field",
2065
+ "name": "isVertical",
2066
+ "type": {
2067
+ "text": "boolean"
2068
+ },
2069
+ "default": "false"
2070
+ },
2071
+ {
2072
+ "kind": "field",
2073
+ "name": "addDefaultActions",
2118
2074
  "type": {
2119
2075
  "text": "boolean"
2120
2076
  },
2121
- "default": "false",
2122
- "description": "Expands or collapses the item.",
2123
- "fieldName": "expanded",
2124
- "inheritedFrom": {
2125
- "name": "AccordionItem",
2126
- "module": "src/accordion-item/accordion-item.ts"
2077
+ "default": "true"
2078
+ },
2079
+ {
2080
+ "kind": "field",
2081
+ "name": "autoCloseOnAction",
2082
+ "type": {
2083
+ "text": "boolean"
2084
+ },
2085
+ "default": "true"
2086
+ },
2087
+ {
2088
+ "kind": "field",
2089
+ "name": "classNames",
2090
+ "type": {
2091
+ "text": "string"
2127
2092
  }
2128
2093
  },
2129
2094
  {
2130
- "name": "id",
2095
+ "kind": "field",
2096
+ "name": "definition",
2097
+ "type": {
2098
+ "text": "any"
2099
+ }
2100
+ },
2101
+ {
2102
+ "kind": "field",
2103
+ "name": "name",
2131
2104
  "type": {
2132
2105
  "text": "string"
2133
2106
  },
2134
- "description": "The item ID",
2135
- "fieldName": "id",
2136
- "inheritedFrom": {
2137
- "name": "AccordionItem",
2138
- "module": "src/accordion-item/accordion-item.ts"
2139
- }
2140
- }
2141
- ],
2142
- "members": [
2107
+ "default": "'Actions'"
2108
+ },
2143
2109
  {
2144
2110
  "kind": "field",
2145
- "name": "headinglevel",
2111
+ "name": "iconName",
2146
2112
  "type": {
2147
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2113
+ "text": "string"
2148
2114
  },
2149
- "privacy": "public",
2150
- "default": "2",
2151
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2152
- "inheritedFrom": {
2153
- "name": "AccordionItem",
2154
- "module": "src/accordion-item/accordion-item.ts"
2155
- }
2115
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2156
2116
  },
2157
2117
  {
2158
2118
  "kind": "field",
2159
- "name": "expanded",
2119
+ "name": "open",
2160
2120
  "type": {
2161
2121
  "text": "boolean"
2162
2122
  },
2163
- "privacy": "public",
2164
- "default": "false",
2165
- "description": "Expands or collapses the item.",
2166
- "inheritedFrom": {
2167
- "name": "AccordionItem",
2168
- "module": "src/accordion-item/accordion-item.ts"
2169
- }
2123
+ "default": "false"
2170
2124
  },
2171
2125
  {
2172
2126
  "kind": "field",
2173
- "name": "id",
2127
+ "name": "buttonAppearance",
2174
2128
  "type": {
2175
2129
  "text": "string"
2176
- },
2177
- "privacy": "public",
2178
- "description": "The item ID",
2179
- "inheritedFrom": {
2180
- "name": "AccordionItem",
2181
- "module": "src/accordion-item/accordion-item.ts"
2182
2130
  }
2183
2131
  },
2184
2132
  {
2185
2133
  "kind": "field",
2186
- "name": "change",
2187
- "privacy": "private",
2188
- "inheritedFrom": {
2189
- "name": "AccordionItem",
2190
- "module": "src/accordion-item/accordion-item.ts"
2191
- }
2134
+ "name": "hideDisabled",
2135
+ "type": {
2136
+ "text": "boolean"
2137
+ },
2138
+ "default": "false"
2192
2139
  },
2193
2140
  {
2194
2141
  "kind": "field",
2195
- "name": "_presentation",
2142
+ "name": "hideMenuSingleOption",
2196
2143
  "type": {
2197
- "text": "ComponentPresentation | null | undefined"
2144
+ "text": "boolean"
2198
2145
  },
2199
- "privacy": "private",
2200
- "default": "void 0",
2201
- "inheritedFrom": {
2202
- "name": "FoundationElement",
2203
- "module": "src/foundation-element/foundation-element.ts"
2146
+ "default": "false"
2147
+ },
2148
+ {
2149
+ "kind": "field",
2150
+ "name": "singleOption",
2151
+ "type": {
2152
+ "text": "ActionMenuItem"
2204
2153
  }
2205
2154
  },
2206
2155
  {
2207
2156
  "kind": "field",
2208
- "name": "$presentation",
2157
+ "name": "actionsMenu",
2209
2158
  "type": {
2210
- "text": "ComponentPresentation | null"
2211
- },
2212
- "privacy": "public",
2213
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2214
- "inheritedFrom": {
2215
- "name": "FoundationElement",
2216
- "module": "src/foundation-element/foundation-element.ts"
2159
+ "text": "HTMLElement"
2217
2160
  }
2218
2161
  },
2219
2162
  {
2220
2163
  "kind": "field",
2221
- "name": "template",
2164
+ "name": "actionsOpener",
2222
2165
  "type": {
2223
- "text": "ElementViewTemplate | void | null"
2224
- },
2225
- "privacy": "public",
2226
- "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.",
2227
- "inheritedFrom": {
2228
- "name": "FoundationElement",
2229
- "module": "src/foundation-element/foundation-element.ts"
2166
+ "text": "HTMLElement"
2230
2167
  }
2231
2168
  },
2232
2169
  {
2233
- "kind": "method",
2234
- "name": "templateChanged",
2235
- "privacy": "protected",
2236
- "return": {
2237
- "type": {
2238
- "text": "void"
2239
- }
2170
+ "kind": "field",
2171
+ "name": "positionTracker",
2172
+ "type": {
2173
+ "text": "AnchoredPopoverPositionTracker | undefined"
2240
2174
  },
2241
- "inheritedFrom": {
2242
- "name": "FoundationElement",
2243
- "module": "src/foundation-element/foundation-element.ts"
2244
- }
2175
+ "privacy": "private"
2245
2176
  },
2246
2177
  {
2247
2178
  "kind": "field",
2248
- "name": "styles",
2179
+ "name": "focusMenuOnOpen",
2249
2180
  "type": {
2250
- "text": "ElementStyles | void | null"
2181
+ "text": "boolean"
2251
2182
  },
2252
- "privacy": "public",
2253
- "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.",
2254
- "inheritedFrom": {
2255
- "name": "FoundationElement",
2256
- "module": "src/foundation-element/foundation-element.ts"
2257
- }
2183
+ "privacy": "private",
2184
+ "default": "false",
2185
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2258
2186
  },
2259
2187
  {
2260
2188
  "kind": "method",
2261
- "name": "stylesChanged",
2262
- "privacy": "protected",
2263
- "return": {
2264
- "type": {
2265
- "text": "void"
2266
- }
2267
- },
2268
- "inheritedFrom": {
2269
- "name": "FoundationElement",
2270
- "module": "src/foundation-element/foundation-element.ts"
2271
- }
2189
+ "name": "updateMenuPosition",
2190
+ "privacy": "private"
2272
2191
  },
2273
2192
  {
2274
2193
  "kind": "method",
2275
- "name": "compose",
2276
- "privacy": "public",
2277
- "static": true,
2278
- "return": {
2279
- "type": {
2280
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2281
- }
2194
+ "name": "startTrackingPosition",
2195
+ "privacy": "private"
2196
+ },
2197
+ {
2198
+ "kind": "method",
2199
+ "name": "stopTrackingPosition",
2200
+ "privacy": "private"
2201
+ },
2202
+ {
2203
+ "kind": "method",
2204
+ "name": "definitionChanged",
2205
+ "privacy": "protected",
2206
+ "parameters": [
2207
+ {
2208
+ "name": "oldValue",
2209
+ "type": {
2210
+ "text": "any"
2211
+ }
2212
+ },
2213
+ {
2214
+ "name": "newValue",
2215
+ "type": {
2216
+ "text": "any"
2217
+ }
2218
+ }
2219
+ ]
2220
+ },
2221
+ {
2222
+ "kind": "method",
2223
+ "name": "openChanged",
2224
+ "privacy": "protected"
2225
+ },
2226
+ {
2227
+ "kind": "method",
2228
+ "name": "toggleActionsMenuVisibility"
2229
+ },
2230
+ {
2231
+ "kind": "method",
2232
+ "name": "onPopoverToggle",
2233
+ "parameters": [
2234
+ {
2235
+ "name": "event",
2236
+ "type": {
2237
+ "text": "Event"
2238
+ }
2239
+ }
2240
+ ],
2241
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2242
+ },
2243
+ {
2244
+ "kind": "method",
2245
+ "name": "onIconOpenerKeydown",
2246
+ "return": {
2247
+ "type": {
2248
+ "text": "boolean"
2249
+ }
2250
+ },
2251
+ "parameters": [
2252
+ {
2253
+ "name": "event",
2254
+ "type": {
2255
+ "text": "KeyboardEvent"
2256
+ }
2257
+ }
2258
+ ],
2259
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2260
+ },
2261
+ {
2262
+ "kind": "method",
2263
+ "name": "onActionMenuItemClick",
2264
+ "parameters": [
2265
+ {
2266
+ "name": "callback",
2267
+ "type": {
2268
+ "text": "(rowData) => void | any"
2269
+ }
2270
+ }
2271
+ ]
2272
+ },
2273
+ {
2274
+ "kind": "method",
2275
+ "name": "isActionDisabled",
2276
+ "return": {
2277
+ "type": {
2278
+ "text": "boolean"
2279
+ }
2280
+ },
2281
+ "parameters": [
2282
+ {
2283
+ "name": "action",
2284
+ "type": {
2285
+ "text": "ActionMenuItem"
2286
+ }
2287
+ }
2288
+ ],
2289
+ "description": "Resolves an action's `isDisabled` for the current row."
2290
+ },
2291
+ {
2292
+ "kind": "field",
2293
+ "name": "resolvedActions",
2294
+ "type": {
2295
+ "text": "ActionMenuItem[]"
2296
+ },
2297
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2298
+ "readonly": true
2299
+ },
2300
+ {
2301
+ "kind": "field",
2302
+ "name": "hasVisibleActions",
2303
+ "type": {
2304
+ "text": "boolean"
2305
+ },
2306
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2307
+ "readonly": true
2308
+ },
2309
+ {
2310
+ "kind": "field",
2311
+ "name": "allActions",
2312
+ "type": {
2313
+ "text": "ActionMenuItem[]"
2314
+ },
2315
+ "readonly": true
2316
+ },
2317
+ {
2318
+ "kind": "field",
2319
+ "name": "rowData",
2320
+ "readonly": true
2321
+ },
2322
+ {
2323
+ "kind": "method",
2324
+ "name": "getLabel",
2325
+ "parameters": [
2326
+ {
2327
+ "name": "name",
2328
+ "type": {
2329
+ "text": "string | ((rowData: any) => string)"
2330
+ }
2331
+ }
2332
+ ]
2333
+ },
2334
+ {
2335
+ "kind": "method",
2336
+ "name": "getTemplate",
2337
+ "parameters": [
2338
+ {
2339
+ "name": "prefix",
2340
+ "type": {
2341
+ "text": "string"
2342
+ }
2343
+ }
2344
+ ]
2345
+ },
2346
+ {
2347
+ "kind": "field",
2348
+ "name": "_presentation",
2349
+ "type": {
2350
+ "text": "ComponentPresentation | null | undefined"
2351
+ },
2352
+ "privacy": "private",
2353
+ "default": "void 0",
2354
+ "inheritedFrom": {
2355
+ "name": "FoundationElement",
2356
+ "module": "src/foundation-element/foundation-element.ts"
2357
+ }
2358
+ },
2359
+ {
2360
+ "kind": "field",
2361
+ "name": "$presentation",
2362
+ "type": {
2363
+ "text": "ComponentPresentation | null"
2364
+ },
2365
+ "privacy": "public",
2366
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2367
+ "inheritedFrom": {
2368
+ "name": "FoundationElement",
2369
+ "module": "src/foundation-element/foundation-element.ts"
2370
+ }
2371
+ },
2372
+ {
2373
+ "kind": "field",
2374
+ "name": "template",
2375
+ "type": {
2376
+ "text": "ElementViewTemplate | void | null"
2377
+ },
2378
+ "privacy": "public",
2379
+ "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.",
2380
+ "inheritedFrom": {
2381
+ "name": "FoundationElement",
2382
+ "module": "src/foundation-element/foundation-element.ts"
2383
+ }
2384
+ },
2385
+ {
2386
+ "kind": "method",
2387
+ "name": "templateChanged",
2388
+ "privacy": "protected",
2389
+ "return": {
2390
+ "type": {
2391
+ "text": "void"
2392
+ }
2393
+ },
2394
+ "inheritedFrom": {
2395
+ "name": "FoundationElement",
2396
+ "module": "src/foundation-element/foundation-element.ts"
2397
+ }
2398
+ },
2399
+ {
2400
+ "kind": "field",
2401
+ "name": "styles",
2402
+ "type": {
2403
+ "text": "ElementStyles | void | null"
2404
+ },
2405
+ "privacy": "public",
2406
+ "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.",
2407
+ "inheritedFrom": {
2408
+ "name": "FoundationElement",
2409
+ "module": "src/foundation-element/foundation-element.ts"
2410
+ }
2411
+ },
2412
+ {
2413
+ "kind": "method",
2414
+ "name": "stylesChanged",
2415
+ "privacy": "protected",
2416
+ "return": {
2417
+ "type": {
2418
+ "text": "void"
2419
+ }
2420
+ },
2421
+ "inheritedFrom": {
2422
+ "name": "FoundationElement",
2423
+ "module": "src/foundation-element/foundation-element.ts"
2424
+ }
2425
+ },
2426
+ {
2427
+ "kind": "method",
2428
+ "name": "compose",
2429
+ "privacy": "public",
2430
+ "static": true,
2431
+ "return": {
2432
+ "type": {
2433
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2434
+ }
2282
2435
  },
2283
2436
  "parameters": [
2284
2437
  {
@@ -2302,109 +2455,158 @@
2302
2455
  }
2303
2456
  }
2304
2457
  ],
2305
- "events": [
2458
+ "attributes": [
2306
2459
  {
2307
- "description": "Fires a custom 'change' event when the button is invoked",
2308
- "name": "change",
2309
- "inheritedFrom": {
2310
- "name": "AccordionItem",
2311
- "module": "src/accordion-item/accordion-item.ts"
2312
- }
2460
+ "name": "is-vertical",
2461
+ "type": {
2462
+ "text": "boolean"
2463
+ },
2464
+ "default": "false",
2465
+ "fieldName": "isVertical"
2466
+ },
2467
+ {
2468
+ "name": "add-default-actions",
2469
+ "type": {
2470
+ "text": "boolean"
2471
+ },
2472
+ "default": "true",
2473
+ "fieldName": "addDefaultActions"
2474
+ },
2475
+ {
2476
+ "name": "auto-close-on-action",
2477
+ "type": {
2478
+ "text": "boolean"
2479
+ },
2480
+ "default": "true",
2481
+ "fieldName": "autoCloseOnAction"
2482
+ },
2483
+ {
2484
+ "name": "name",
2485
+ "type": {
2486
+ "text": "string"
2487
+ },
2488
+ "default": "'Actions'",
2489
+ "fieldName": "name"
2490
+ },
2491
+ {
2492
+ "name": "icon-name",
2493
+ "type": {
2494
+ "text": "string"
2495
+ },
2496
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
2497
+ "fieldName": "iconName"
2498
+ },
2499
+ {
2500
+ "name": "open",
2501
+ "type": {
2502
+ "text": "boolean"
2503
+ },
2504
+ "default": "false",
2505
+ "fieldName": "open"
2506
+ },
2507
+ {
2508
+ "name": "buttonAppearance",
2509
+ "type": {
2510
+ "text": "string"
2511
+ },
2512
+ "fieldName": "buttonAppearance"
2513
+ },
2514
+ {
2515
+ "name": "hide-disabled",
2516
+ "type": {
2517
+ "text": "boolean"
2518
+ },
2519
+ "default": "false",
2520
+ "fieldName": "hideDisabled"
2521
+ },
2522
+ {
2523
+ "name": "hide-menu-single-option",
2524
+ "type": {
2525
+ "text": "boolean"
2526
+ },
2527
+ "default": "false",
2528
+ "fieldName": "hideMenuSingleOption"
2313
2529
  }
2314
- ]
2315
- },
2316
- {
2317
- "kind": "variable",
2318
- "name": "foundationAccordionItemShadowOptions",
2319
- "type": {
2320
- "text": "ShadowRootInit"
2321
- },
2322
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2323
- },
2324
- {
2325
- "kind": "variable",
2326
- "name": "defaultAccordionItemConfig",
2327
- "type": {
2328
- "text": "object"
2530
+ ],
2531
+ "superclass": {
2532
+ "name": "FoundationElement",
2533
+ "package": "@microsoft/fast-foundation"
2329
2534
  },
2330
- "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}"
2331
- },
2332
- {
2333
- "kind": "variable",
2334
- "name": "foundationAccordionItem",
2335
- "description": "The Foundation Accordion Item",
2336
- "privacy": "public"
2337
- }
2338
- ],
2339
- "exports": [
2340
- {
2341
- "kind": "js",
2342
- "name": "AccordionItem",
2343
- "declaration": {
2344
- "name": "AccordionItem",
2345
- "module": "src/accordion-item/accordion-item.ts"
2346
- }
2347
- },
2348
- {
2349
- "kind": "js",
2350
- "name": "foundationAccordionItemShadowOptions",
2351
- "declaration": {
2352
- "name": "foundationAccordionItemShadowOptions",
2353
- "module": "src/accordion-item/accordion-item.ts"
2354
- }
2535
+ "tagName": "%%prefix%%-actions-menu",
2536
+ "customElement": true
2355
2537
  },
2538
+ {
2539
+ "kind": "variable",
2540
+ "name": "foundationActionsMenu",
2541
+ "description": "The Foundation Actions Menu",
2542
+ "privacy": "public"
2543
+ }
2544
+ ],
2545
+ "exports": [
2356
2546
  {
2357
2547
  "kind": "js",
2358
- "name": "defaultAccordionItemConfig",
2548
+ "name": "ActionsMenu",
2359
2549
  "declaration": {
2360
- "name": "defaultAccordionItemConfig",
2361
- "module": "src/accordion-item/accordion-item.ts"
2550
+ "name": "ActionsMenu",
2551
+ "module": "src/actions-menu/actions-menu.ts"
2362
2552
  }
2363
2553
  },
2364
2554
  {
2365
2555
  "kind": "js",
2366
- "name": "foundationAccordionItem",
2556
+ "name": "foundationActionsMenu",
2367
2557
  "declaration": {
2368
- "name": "foundationAccordionItem",
2369
- "module": "src/accordion-item/accordion-item.ts"
2558
+ "name": "foundationActionsMenu",
2559
+ "module": "src/actions-menu/actions-menu.ts"
2370
2560
  }
2371
2561
  }
2372
2562
  ]
2373
2563
  },
2374
2564
  {
2375
2565
  "kind": "javascript-module",
2376
- "path": "src/accordion-item/index.ts",
2377
- "declarations": [],
2378
- "exports": [
2379
- {
2380
- "kind": "js",
2381
- "name": "*",
2382
- "declaration": {
2383
- "name": "*",
2384
- "package": "./accordion-item.template"
2385
- }
2386
- },
2566
+ "path": "src/actions-menu/ag-menu.styles.ts",
2567
+ "declarations": [
2387
2568
  {
2388
- "kind": "js",
2389
- "name": "*",
2390
- "declaration": {
2391
- "name": "*",
2392
- "package": "./accordion-item.styles"
2393
- }
2394
- },
2569
+ "kind": "function",
2570
+ "name": "agMenuStyles",
2571
+ "return": {
2572
+ "type": {
2573
+ "text": ""
2574
+ }
2575
+ },
2576
+ "parameters": [
2577
+ {
2578
+ "name": "menuSelector",
2579
+ "type": {
2580
+ "text": "string"
2581
+ },
2582
+ "description": "Selects the menu surface. May be a selector list."
2583
+ },
2584
+ {
2585
+ "name": "itemSelector",
2586
+ "type": {
2587
+ "text": "string"
2588
+ },
2589
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
2590
+ }
2591
+ ],
2592
+ "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
2593
+ "privacy": "public"
2594
+ }
2595
+ ],
2596
+ "exports": [
2395
2597
  {
2396
2598
  "kind": "js",
2397
- "name": "*",
2599
+ "name": "agMenuStyles",
2398
2600
  "declaration": {
2399
- "name": "*",
2400
- "package": "./accordion-item"
2601
+ "name": "agMenuStyles",
2602
+ "module": "src/actions-menu/ag-menu.styles.ts"
2401
2603
  }
2402
2604
  }
2403
2605
  ]
2404
2606
  },
2405
2607
  {
2406
2608
  "kind": "javascript-module",
2407
- "path": "src/_config/index.ts",
2609
+ "path": "src/actions-menu/index.ts",
2408
2610
  "declarations": [],
2409
2611
  "exports": [
2410
2612
  {
@@ -2412,7 +2614,7 @@
2412
2614
  "name": "*",
2413
2615
  "declaration": {
2414
2616
  "name": "*",
2415
- "package": "./styles"
2617
+ "package": "./actions-menu.styles"
2416
2618
  }
2417
2619
  },
2418
2620
  {
@@ -2420,7 +2622,7 @@
2420
2622
  "name": "*",
2421
2623
  "declaration": {
2422
2624
  "name": "*",
2423
- "package": "./tokens"
2625
+ "package": "./actions-menu.template"
2424
2626
  }
2425
2627
  },
2426
2628
  {
@@ -2428,41 +2630,26 @@
2428
2630
  "name": "*",
2429
2631
  "declaration": {
2430
2632
  "name": "*",
2431
- "package": "./values"
2633
+ "package": "./actions-menu"
2634
+ }
2635
+ },
2636
+ {
2637
+ "kind": "js",
2638
+ "name": "*",
2639
+ "declaration": {
2640
+ "name": "*",
2641
+ "package": "./ag-menu.styles"
2432
2642
  }
2433
2643
  }
2434
2644
  ]
2435
2645
  },
2436
2646
  {
2437
2647
  "kind": "javascript-module",
2438
- "path": "src/actions-menu/actions-menu.styles.ts",
2648
+ "path": "src/accordion/accordion.styles.ts",
2439
2649
  "declarations": [
2440
2650
  {
2441
2651
  "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",
2652
+ "name": "foundationAccordionStyles",
2466
2653
  "return": {
2467
2654
  "type": {
2468
2655
  "text": "ElementStyles"
@@ -2487,376 +2674,277 @@
2487
2674
  "exports": [
2488
2675
  {
2489
2676
  "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",
2499
- "declaration": {
2500
- "name": "foundationActionsMenuStyles",
2501
- "module": "src/actions-menu/actions-menu.styles.ts"
2502
- }
2503
- }
2504
- ]
2505
- },
2506
- {
2507
- "kind": "javascript-module",
2508
- "path": "src/actions-menu/actions-menu.template.ts",
2509
- "declarations": [
2510
- {
2511
- "kind": "variable",
2512
- "name": "menuTemplate"
2513
- },
2514
- {
2515
- "kind": "variable",
2516
- "name": "singleOptionTemplate"
2517
- },
2518
- {
2519
- "kind": "variable",
2520
- "name": "foundationActionsMenuTemplate",
2521
- "type": {
2522
- "text": "ViewTemplate<ActionsMenu>"
2523
- },
2524
- "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`"
2525
- }
2526
- ],
2527
- "exports": [
2528
- {
2529
- "kind": "js",
2530
- "name": "menuTemplate",
2531
- "declaration": {
2532
- "name": "menuTemplate",
2533
- "module": "src/actions-menu/actions-menu.template.ts"
2534
- }
2535
- },
2536
- {
2537
- "kind": "js",
2538
- "name": "singleOptionTemplate",
2539
- "declaration": {
2540
- "name": "singleOptionTemplate",
2541
- "module": "src/actions-menu/actions-menu.template.ts"
2542
- }
2543
- },
2544
- {
2545
- "kind": "js",
2546
- "name": "foundationActionsMenuTemplate",
2677
+ "name": "foundationAccordionStyles",
2547
2678
  "declaration": {
2548
- "name": "foundationActionsMenuTemplate",
2549
- "module": "src/actions-menu/actions-menu.template.ts"
2679
+ "name": "foundationAccordionStyles",
2680
+ "module": "src/accordion/accordion.styles.ts"
2550
2681
  }
2551
2682
  }
2552
2683
  ]
2553
2684
  },
2554
2685
  {
2555
2686
  "kind": "javascript-module",
2556
- "path": "src/actions-menu/actions-menu.ts",
2687
+ "path": "src/accordion/accordion.template.ts",
2557
2688
  "declarations": [
2558
2689
  {
2559
- "kind": "class",
2560
- "description": "",
2561
- "name": "ActionsMenu",
2562
- "members": [
2563
- {
2564
- "kind": "field",
2565
- "name": "actions",
2566
- "type": {
2567
- "text": "ActionMenuItem[]"
2568
- }
2569
- },
2570
- {
2571
- "kind": "field",
2572
- "name": "actionsResolver",
2573
- "type": {
2574
- "text": "ActionMenuItemsResolver | undefined"
2575
- },
2576
- "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2577
- },
2578
- {
2579
- "kind": "field",
2580
- "name": "isVertical",
2581
- "type": {
2582
- "text": "boolean"
2583
- },
2584
- "default": "false"
2585
- },
2586
- {
2587
- "kind": "field",
2588
- "name": "addDefaultActions",
2589
- "type": {
2590
- "text": "boolean"
2591
- },
2592
- "default": "true"
2593
- },
2594
- {
2595
- "kind": "field",
2596
- "name": "autoCloseOnAction",
2597
- "type": {
2598
- "text": "boolean"
2599
- },
2600
- "default": "true"
2601
- },
2602
- {
2603
- "kind": "field",
2604
- "name": "classNames",
2605
- "type": {
2606
- "text": "string"
2607
- }
2608
- },
2609
- {
2610
- "kind": "field",
2611
- "name": "definition",
2612
- "type": {
2613
- "text": "any"
2614
- }
2615
- },
2616
- {
2617
- "kind": "field",
2618
- "name": "name",
2619
- "type": {
2620
- "text": "string"
2621
- },
2622
- "default": "'Actions'"
2623
- },
2624
- {
2625
- "kind": "field",
2626
- "name": "iconName",
2627
- "type": {
2628
- "text": "string"
2629
- },
2630
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2631
- },
2690
+ "kind": "function",
2691
+ "name": "foundationAccordionTemplate",
2692
+ "return": {
2693
+ "type": {
2694
+ "text": "ViewTemplate<Accordion>"
2695
+ }
2696
+ },
2697
+ "parameters": [
2632
2698
  {
2633
- "kind": "field",
2634
- "name": "open",
2699
+ "name": "context",
2635
2700
  "type": {
2636
- "text": "boolean"
2637
- },
2638
- "default": "false"
2701
+ "text": "ElementDefinitionContext"
2702
+ }
2639
2703
  },
2640
2704
  {
2641
- "kind": "field",
2642
- "name": "buttonAppearance",
2705
+ "name": "definition",
2643
2706
  "type": {
2644
- "text": "string"
2707
+ "text": "FoundationElementDefinition"
2645
2708
  }
2646
- },
2709
+ }
2710
+ ]
2711
+ }
2712
+ ],
2713
+ "exports": [
2714
+ {
2715
+ "kind": "js",
2716
+ "name": "foundationAccordionTemplate",
2717
+ "declaration": {
2718
+ "name": "foundationAccordionTemplate",
2719
+ "module": "src/accordion/accordion.template.ts"
2720
+ }
2721
+ }
2722
+ ]
2723
+ },
2724
+ {
2725
+ "kind": "javascript-module",
2726
+ "path": "src/accordion/accordion.ts",
2727
+ "declarations": [
2728
+ {
2729
+ "kind": "class",
2730
+ "description": "",
2731
+ "name": "Accordion",
2732
+ "superclass": {
2733
+ "name": "FASTAccordion",
2734
+ "package": "@microsoft/fast-foundation"
2735
+ },
2736
+ "tagName": "%%prefix%%-accordion",
2737
+ "customElement": true,
2738
+ "attributes": [
2647
2739
  {
2648
- "kind": "field",
2649
- "name": "hideDisabled",
2740
+ "name": "expand-mode",
2650
2741
  "type": {
2651
- "text": "boolean"
2742
+ "text": "AccordionExpandMode"
2652
2743
  },
2653
- "default": "false"
2654
- },
2744
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2745
+ "fieldName": "expandmode",
2746
+ "inheritedFrom": {
2747
+ "name": "Accordion",
2748
+ "module": "src/accordion/accordion.ts"
2749
+ }
2750
+ }
2751
+ ],
2752
+ "members": [
2655
2753
  {
2656
2754
  "kind": "field",
2657
- "name": "hideMenuSingleOption",
2755
+ "name": "expandmode",
2658
2756
  "type": {
2659
- "text": "boolean"
2757
+ "text": "AccordionExpandMode"
2660
2758
  },
2661
- "default": "false"
2662
- },
2663
- {
2664
- "kind": "field",
2665
- "name": "singleOption",
2666
- "type": {
2667
- "text": "ActionMenuItem"
2759
+ "privacy": "public",
2760
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2761
+ "inheritedFrom": {
2762
+ "name": "Accordion",
2763
+ "module": "src/accordion/accordion.ts"
2668
2764
  }
2669
2765
  },
2670
2766
  {
2671
2767
  "kind": "field",
2672
- "name": "actionsMenu",
2768
+ "name": "activeid",
2673
2769
  "type": {
2674
- "text": "HTMLElement"
2770
+ "text": "string | null"
2771
+ },
2772
+ "privacy": "private",
2773
+ "inheritedFrom": {
2774
+ "name": "Accordion",
2775
+ "module": "src/accordion/accordion.ts"
2675
2776
  }
2676
2777
  },
2677
2778
  {
2678
2779
  "kind": "field",
2679
- "name": "actionsOpener",
2780
+ "name": "activeItemIndex",
2680
2781
  "type": {
2681
- "text": "HTMLElement"
2782
+ "text": "number"
2783
+ },
2784
+ "privacy": "private",
2785
+ "default": "0",
2786
+ "inheritedFrom": {
2787
+ "name": "Accordion",
2788
+ "module": "src/accordion/accordion.ts"
2682
2789
  }
2683
2790
  },
2684
2791
  {
2685
2792
  "kind": "field",
2686
- "name": "positionTracker",
2793
+ "name": "accordionIds",
2687
2794
  "type": {
2688
- "text": "AnchoredPopoverPositionTracker | undefined"
2795
+ "text": "Array<string | null>"
2689
2796
  },
2690
- "privacy": "private"
2797
+ "privacy": "private",
2798
+ "inheritedFrom": {
2799
+ "name": "Accordion",
2800
+ "module": "src/accordion/accordion.ts"
2801
+ }
2691
2802
  },
2692
2803
  {
2693
2804
  "kind": "field",
2694
- "name": "focusMenuOnOpen",
2695
- "type": {
2696
- "text": "boolean"
2697
- },
2805
+ "name": "change",
2698
2806
  "privacy": "private",
2699
- "default": "false",
2700
- "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2701
- },
2702
- {
2703
- "kind": "method",
2704
- "name": "updateMenuPosition",
2705
- "privacy": "private"
2706
- },
2707
- {
2708
- "kind": "method",
2709
- "name": "startTrackingPosition",
2710
- "privacy": "private"
2711
- },
2712
- {
2713
- "kind": "method",
2714
- "name": "stopTrackingPosition",
2715
- "privacy": "private"
2807
+ "inheritedFrom": {
2808
+ "name": "Accordion",
2809
+ "module": "src/accordion/accordion.ts"
2810
+ }
2716
2811
  },
2717
2812
  {
2718
2813
  "kind": "method",
2719
- "name": "definitionChanged",
2720
- "privacy": "protected",
2721
- "parameters": [
2722
- {
2723
- "name": "oldValue",
2724
- "type": {
2725
- "text": "any"
2726
- }
2727
- },
2728
- {
2729
- "name": "newValue",
2730
- "type": {
2731
- "text": "any"
2732
- }
2814
+ "name": "findExpandedItem",
2815
+ "privacy": "private",
2816
+ "return": {
2817
+ "type": {
2818
+ "text": "AccordionItem | null"
2733
2819
  }
2734
- ]
2735
- },
2736
- {
2737
- "kind": "method",
2738
- "name": "openChanged",
2739
- "privacy": "protected"
2740
- },
2741
- {
2742
- "kind": "method",
2743
- "name": "toggleActionsMenuVisibility"
2820
+ },
2821
+ "inheritedFrom": {
2822
+ "name": "Accordion",
2823
+ "module": "src/accordion/accordion.ts"
2824
+ }
2744
2825
  },
2745
2826
  {
2746
- "kind": "method",
2747
- "name": "onPopoverToggle",
2748
- "parameters": [
2749
- {
2750
- "name": "event",
2751
- "type": {
2752
- "text": "Event"
2753
- }
2754
- }
2755
- ],
2756
- "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2827
+ "kind": "field",
2828
+ "name": "setItems",
2829
+ "privacy": "private",
2830
+ "inheritedFrom": {
2831
+ "name": "Accordion",
2832
+ "module": "src/accordion/accordion.ts"
2833
+ }
2757
2834
  },
2758
2835
  {
2759
2836
  "kind": "method",
2760
- "name": "onIconOpenerKeydown",
2837
+ "name": "resetItems",
2838
+ "privacy": "private",
2761
2839
  "return": {
2762
2840
  "type": {
2763
- "text": "boolean"
2841
+ "text": "void"
2764
2842
  }
2765
2843
  },
2766
- "parameters": [
2767
- {
2768
- "name": "event",
2769
- "type": {
2770
- "text": "KeyboardEvent"
2771
- }
2772
- }
2773
- ],
2774
- "description": "Opens the icon-only opener from the keyboard, as a native button would."
2844
+ "inheritedFrom": {
2845
+ "name": "Accordion",
2846
+ "module": "src/accordion/accordion.ts"
2847
+ }
2775
2848
  },
2776
2849
  {
2777
- "kind": "method",
2778
- "name": "onActionMenuItemClick",
2779
- "parameters": [
2780
- {
2781
- "name": "callback",
2782
- "type": {
2783
- "text": "(rowData) => void | any"
2784
- }
2785
- }
2786
- ]
2850
+ "kind": "field",
2851
+ "name": "removeItemListeners",
2852
+ "privacy": "private",
2853
+ "inheritedFrom": {
2854
+ "name": "Accordion",
2855
+ "module": "src/accordion/accordion.ts"
2856
+ }
2857
+ },
2858
+ {
2859
+ "kind": "field",
2860
+ "name": "activeItemChange",
2861
+ "privacy": "private",
2862
+ "inheritedFrom": {
2863
+ "name": "Accordion",
2864
+ "module": "src/accordion/accordion.ts"
2865
+ }
2787
2866
  },
2788
2867
  {
2789
2868
  "kind": "method",
2790
- "name": "isActionDisabled",
2869
+ "name": "getItemIds",
2870
+ "privacy": "private",
2791
2871
  "return": {
2792
2872
  "type": {
2793
- "text": "boolean"
2794
- }
2795
- },
2796
- "parameters": [
2797
- {
2798
- "name": "action",
2799
- "type": {
2800
- "text": "ActionMenuItem"
2801
- }
2873
+ "text": "Array<string | null>"
2802
2874
  }
2803
- ],
2804
- "description": "Resolves an action's `isDisabled` for the current row."
2805
- },
2806
- {
2807
- "kind": "field",
2808
- "name": "resolvedActions",
2809
- "type": {
2810
- "text": "ActionMenuItem[]"
2811
2875
  },
2812
- "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2813
- "readonly": true
2876
+ "inheritedFrom": {
2877
+ "name": "Accordion",
2878
+ "module": "src/accordion/accordion.ts"
2879
+ }
2814
2880
  },
2815
2881
  {
2816
- "kind": "field",
2817
- "name": "hasVisibleActions",
2818
- "type": {
2819
- "text": "boolean"
2882
+ "kind": "method",
2883
+ "name": "isSingleExpandMode",
2884
+ "privacy": "private",
2885
+ "return": {
2886
+ "type": {
2887
+ "text": "boolean"
2888
+ }
2820
2889
  },
2821
- "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2822
- "readonly": true
2890
+ "inheritedFrom": {
2891
+ "name": "Accordion",
2892
+ "module": "src/accordion/accordion.ts"
2893
+ }
2823
2894
  },
2824
2895
  {
2825
2896
  "kind": "field",
2826
- "name": "allActions",
2827
- "type": {
2828
- "text": "ActionMenuItem[]"
2829
- },
2830
- "readonly": true
2897
+ "name": "handleItemKeyDown",
2898
+ "privacy": "private",
2899
+ "inheritedFrom": {
2900
+ "name": "Accordion",
2901
+ "module": "src/accordion/accordion.ts"
2902
+ }
2831
2903
  },
2832
2904
  {
2833
2905
  "kind": "field",
2834
- "name": "rowData",
2835
- "readonly": true
2906
+ "name": "handleItemFocus",
2907
+ "privacy": "private",
2908
+ "inheritedFrom": {
2909
+ "name": "Accordion",
2910
+ "module": "src/accordion/accordion.ts"
2911
+ }
2836
2912
  },
2837
2913
  {
2838
2914
  "kind": "method",
2839
- "name": "getLabel",
2915
+ "name": "adjust",
2916
+ "privacy": "private",
2917
+ "return": {
2918
+ "type": {
2919
+ "text": "void"
2920
+ }
2921
+ },
2840
2922
  "parameters": [
2841
2923
  {
2842
- "name": "name",
2924
+ "name": "adjustment",
2843
2925
  "type": {
2844
- "text": "string | ((rowData: any) => string)"
2926
+ "text": "number"
2845
2927
  }
2846
2928
  }
2847
- ]
2929
+ ],
2930
+ "inheritedFrom": {
2931
+ "name": "Accordion",
2932
+ "module": "src/accordion/accordion.ts"
2933
+ }
2848
2934
  },
2849
2935
  {
2850
2936
  "kind": "method",
2851
- "name": "getTemplate",
2852
- "parameters": [
2853
- {
2854
- "name": "prefix",
2855
- "type": {
2856
- "text": "string"
2857
- }
2937
+ "name": "focusItem",
2938
+ "privacy": "private",
2939
+ "return": {
2940
+ "type": {
2941
+ "text": "void"
2858
2942
  }
2859
- ]
2943
+ },
2944
+ "inheritedFrom": {
2945
+ "name": "Accordion",
2946
+ "module": "src/accordion/accordion.ts"
2947
+ }
2860
2948
  },
2861
2949
  {
2862
2950
  "kind": "field",
@@ -2970,158 +3058,78 @@
2970
3058
  }
2971
3059
  }
2972
3060
  ],
2973
- "attributes": [
2974
- {
2975
- "name": "is-vertical",
2976
- "type": {
2977
- "text": "boolean"
2978
- },
2979
- "default": "false",
2980
- "fieldName": "isVertical"
2981
- },
2982
- {
2983
- "name": "add-default-actions",
2984
- "type": {
2985
- "text": "boolean"
2986
- },
2987
- "default": "true",
2988
- "fieldName": "addDefaultActions"
2989
- },
2990
- {
2991
- "name": "auto-close-on-action",
2992
- "type": {
2993
- "text": "boolean"
2994
- },
2995
- "default": "true",
2996
- "fieldName": "autoCloseOnAction"
2997
- },
2998
- {
2999
- "name": "name",
3000
- "type": {
3001
- "text": "string"
3002
- },
3003
- "default": "'Actions'",
3004
- "fieldName": "name"
3005
- },
3006
- {
3007
- "name": "icon-name",
3008
- "type": {
3009
- "text": "string"
3010
- },
3011
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3012
- "fieldName": "iconName"
3013
- },
3014
- {
3015
- "name": "open",
3016
- "type": {
3017
- "text": "boolean"
3018
- },
3019
- "default": "false",
3020
- "fieldName": "open"
3021
- },
3022
- {
3023
- "name": "buttonAppearance",
3024
- "type": {
3025
- "text": "string"
3026
- },
3027
- "fieldName": "buttonAppearance"
3028
- },
3029
- {
3030
- "name": "hide-disabled",
3031
- "type": {
3032
- "text": "boolean"
3033
- },
3034
- "default": "false",
3035
- "fieldName": "hideDisabled"
3036
- },
3061
+ "events": [
3037
3062
  {
3038
- "name": "hide-menu-single-option",
3039
- "type": {
3040
- "text": "boolean"
3041
- },
3042
- "default": "false",
3043
- "fieldName": "hideMenuSingleOption"
3063
+ "description": "Fires a custom 'change' event when the active item changes",
3064
+ "name": "change",
3065
+ "inheritedFrom": {
3066
+ "name": "Accordion",
3067
+ "module": "src/accordion/accordion.ts"
3068
+ }
3044
3069
  }
3045
- ],
3046
- "superclass": {
3047
- "name": "FoundationElement",
3048
- "package": "@microsoft/fast-foundation"
3070
+ ]
3071
+ },
3072
+ {
3073
+ "kind": "variable",
3074
+ "name": "foundationAccordionShadowOptions",
3075
+ "type": {
3076
+ "text": "ShadowRootInit"
3049
3077
  },
3050
- "tagName": "%%prefix%%-actions-menu",
3051
- "customElement": true
3078
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3052
3079
  },
3053
3080
  {
3054
3081
  "kind": "variable",
3055
- "name": "foundationActionsMenu",
3056
- "description": "The Foundation Actions Menu",
3082
+ "name": "defaultAccordionConfig",
3083
+ "type": {
3084
+ "text": "object"
3085
+ },
3086
+ "default": "{}"
3087
+ },
3088
+ {
3089
+ "kind": "variable",
3090
+ "name": "foundationAccordion",
3091
+ "description": "The Foundation Accordion",
3057
3092
  "privacy": "public"
3058
3093
  }
3059
3094
  ],
3060
3095
  "exports": [
3061
3096
  {
3062
3097
  "kind": "js",
3063
- "name": "ActionsMenu",
3098
+ "name": "Accordion",
3064
3099
  "declaration": {
3065
- "name": "ActionsMenu",
3066
- "module": "src/actions-menu/actions-menu.ts"
3100
+ "name": "Accordion",
3101
+ "module": "src/accordion/accordion.ts"
3067
3102
  }
3068
3103
  },
3069
3104
  {
3070
3105
  "kind": "js",
3071
- "name": "foundationActionsMenu",
3106
+ "name": "foundationAccordionShadowOptions",
3072
3107
  "declaration": {
3073
- "name": "foundationActionsMenu",
3074
- "module": "src/actions-menu/actions-menu.ts"
3108
+ "name": "foundationAccordionShadowOptions",
3109
+ "module": "src/accordion/accordion.ts"
3075
3110
  }
3076
- }
3077
- ]
3078
- },
3079
- {
3080
- "kind": "javascript-module",
3081
- "path": "src/actions-menu/ag-menu.styles.ts",
3082
- "declarations": [
3111
+ },
3083
3112
  {
3084
- "kind": "function",
3085
- "name": "agMenuStyles",
3086
- "return": {
3087
- "type": {
3088
- "text": ""
3089
- }
3090
- },
3091
- "parameters": [
3092
- {
3093
- "name": "menuSelector",
3094
- "type": {
3095
- "text": "string"
3096
- },
3097
- "description": "Selects the menu surface. May be a selector list."
3098
- },
3099
- {
3100
- "name": "itemSelector",
3101
- "type": {
3102
- "text": "string"
3103
- },
3104
- "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3105
- }
3106
- ],
3107
- "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
3108
- "privacy": "public"
3109
- }
3110
- ],
3111
- "exports": [
3113
+ "kind": "js",
3114
+ "name": "defaultAccordionConfig",
3115
+ "declaration": {
3116
+ "name": "defaultAccordionConfig",
3117
+ "module": "src/accordion/accordion.ts"
3118
+ }
3119
+ },
3112
3120
  {
3113
3121
  "kind": "js",
3114
- "name": "agMenuStyles",
3122
+ "name": "foundationAccordion",
3115
3123
  "declaration": {
3116
- "name": "agMenuStyles",
3117
- "module": "src/actions-menu/ag-menu.styles.ts"
3124
+ "name": "foundationAccordion",
3125
+ "module": "src/accordion/accordion.ts"
3118
3126
  }
3119
3127
  }
3120
3128
  ]
3121
3129
  },
3122
3130
  {
3123
3131
  "kind": "javascript-module",
3124
- "path": "src/actions-menu/index.ts",
3132
+ "path": "src/accordion/index.ts",
3125
3133
  "declarations": [],
3126
3134
  "exports": [
3127
3135
  {
@@ -3129,15 +3137,7 @@
3129
3137
  "name": "*",
3130
3138
  "declaration": {
3131
3139
  "name": "*",
3132
- "package": "./actions-menu.styles"
3133
- }
3134
- },
3135
- {
3136
- "kind": "js",
3137
- "name": "*",
3138
- "declaration": {
3139
- "name": "*",
3140
- "package": "./actions-menu.template"
3140
+ "package": "./accordion.template"
3141
3141
  }
3142
3142
  },
3143
3143
  {
@@ -3145,7 +3145,7 @@
3145
3145
  "name": "*",
3146
3146
  "declaration": {
3147
3147
  "name": "*",
3148
- "package": "./actions-menu"
3148
+ "package": "./accordion.styles"
3149
3149
  }
3150
3150
  },
3151
3151
  {
@@ -3153,7 +3153,7 @@
3153
3153
  "name": "*",
3154
3154
  "declaration": {
3155
3155
  "name": "*",
3156
- "package": "./ag-menu.styles"
3156
+ "package": "./accordion"
3157
3157
  }
3158
3158
  }
3159
3159
  ]