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