@genesislcap/foundation-ui 15.6.2 → 15.7.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.
@@ -1424,42 +1424,11 @@
1424
1424
  },
1425
1425
  {
1426
1426
  "kind": "javascript-module",
1427
- "path": "src/_config/index.ts",
1428
- "declarations": [],
1429
- "exports": [
1430
- {
1431
- "kind": "js",
1432
- "name": "*",
1433
- "declaration": {
1434
- "name": "*",
1435
- "package": "./styles"
1436
- }
1437
- },
1438
- {
1439
- "kind": "js",
1440
- "name": "*",
1441
- "declaration": {
1442
- "name": "*",
1443
- "package": "./tokens"
1444
- }
1445
- },
1446
- {
1447
- "kind": "js",
1448
- "name": "*",
1449
- "declaration": {
1450
- "name": "*",
1451
- "package": "./values"
1452
- }
1453
- }
1454
- ]
1455
- },
1456
- {
1457
- "kind": "javascript-module",
1458
- "path": "src/accordion-item/accordion-item.styles.ts",
1427
+ "path": "src/accordion/accordion.styles.ts",
1459
1428
  "declarations": [
1460
1429
  {
1461
1430
  "kind": "function",
1462
- "name": "foundationAccordionItemStyles",
1431
+ "name": "foundationAccordionStyles",
1463
1432
  "return": {
1464
1433
  "type": {
1465
1434
  "text": "ElementStyles"
@@ -1484,24 +1453,24 @@
1484
1453
  "exports": [
1485
1454
  {
1486
1455
  "kind": "js",
1487
- "name": "foundationAccordionItemStyles",
1456
+ "name": "foundationAccordionStyles",
1488
1457
  "declaration": {
1489
- "name": "foundationAccordionItemStyles",
1490
- "module": "src/accordion-item/accordion-item.styles.ts"
1458
+ "name": "foundationAccordionStyles",
1459
+ "module": "src/accordion/accordion.styles.ts"
1491
1460
  }
1492
1461
  }
1493
1462
  ]
1494
1463
  },
1495
1464
  {
1496
1465
  "kind": "javascript-module",
1497
- "path": "src/accordion-item/accordion-item.template.ts",
1466
+ "path": "src/accordion/accordion.template.ts",
1498
1467
  "declarations": [
1499
1468
  {
1500
1469
  "kind": "function",
1501
- "name": "foundationAccordionItemTemplate",
1470
+ "name": "foundationAccordionTemplate",
1502
1471
  "return": {
1503
1472
  "type": {
1504
- "text": "ViewTemplate<AccordionItem>"
1473
+ "text": "ViewTemplate<Accordion>"
1505
1474
  }
1506
1475
  },
1507
1476
  "parameters": [
@@ -1523,244 +1492,365 @@
1523
1492
  "exports": [
1524
1493
  {
1525
1494
  "kind": "js",
1526
- "name": "foundationAccordionItemTemplate",
1495
+ "name": "foundationAccordionTemplate",
1527
1496
  "declaration": {
1528
- "name": "foundationAccordionItemTemplate",
1529
- "module": "src/accordion-item/accordion-item.template.ts"
1497
+ "name": "foundationAccordionTemplate",
1498
+ "module": "src/accordion/accordion.template.ts"
1530
1499
  }
1531
1500
  }
1532
1501
  ]
1533
1502
  },
1534
1503
  {
1535
1504
  "kind": "javascript-module",
1536
- "path": "src/accordion-item/accordion-item.ts",
1505
+ "path": "src/accordion/accordion.ts",
1537
1506
  "declarations": [
1538
1507
  {
1539
1508
  "kind": "class",
1540
1509
  "description": "",
1541
- "name": "AccordionItem",
1510
+ "name": "Accordion",
1542
1511
  "superclass": {
1543
- "name": "FASTAccordionItem",
1544
- "package": "@microsoft/fast-components"
1512
+ "name": "FASTAccordion",
1513
+ "package": "@microsoft/fast-foundation"
1545
1514
  },
1546
- "tagName": "%%prefix%%-accordion-item",
1515
+ "tagName": "%%prefix%%-accordion",
1547
1516
  "customElement": true,
1548
1517
  "attributes": [
1549
1518
  {
1550
- "name": "heading-level",
1551
- "type": {
1552
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1553
- },
1554
- "default": "2",
1555
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1556
- "fieldName": "headinglevel",
1557
- "inheritedFrom": {
1558
- "name": "AccordionItem",
1559
- "module": "src/accordion-item/accordion-item.ts"
1560
- }
1561
- },
1562
- {
1563
- "type": {
1564
- "text": "boolean"
1565
- },
1566
- "default": "false",
1567
- "description": "Expands or collapses the item.",
1568
- "fieldName": "expanded",
1569
- "inheritedFrom": {
1570
- "name": "AccordionItem",
1571
- "module": "src/accordion-item/accordion-item.ts"
1572
- }
1573
- },
1574
- {
1575
- "name": "id",
1519
+ "name": "expand-mode",
1576
1520
  "type": {
1577
- "text": "string"
1521
+ "text": "AccordionExpandMode"
1578
1522
  },
1579
- "description": "The item ID",
1580
- "fieldName": "id",
1523
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1524
+ "fieldName": "expandmode",
1581
1525
  "inheritedFrom": {
1582
- "name": "AccordionItem",
1583
- "module": "src/accordion-item/accordion-item.ts"
1526
+ "name": "Accordion",
1527
+ "module": "src/accordion/accordion.ts"
1584
1528
  }
1585
1529
  }
1586
1530
  ],
1587
1531
  "members": [
1588
1532
  {
1589
1533
  "kind": "field",
1590
- "name": "headinglevel",
1534
+ "name": "expandmode",
1591
1535
  "type": {
1592
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1536
+ "text": "AccordionExpandMode"
1593
1537
  },
1594
1538
  "privacy": "public",
1595
- "default": "2",
1596
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1539
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1597
1540
  "inheritedFrom": {
1598
- "name": "AccordionItem",
1599
- "module": "src/accordion-item/accordion-item.ts"
1541
+ "name": "Accordion",
1542
+ "module": "src/accordion/accordion.ts"
1600
1543
  }
1601
1544
  },
1602
1545
  {
1603
1546
  "kind": "field",
1604
- "name": "expanded",
1547
+ "name": "activeid",
1605
1548
  "type": {
1606
- "text": "boolean"
1549
+ "text": "string | null"
1607
1550
  },
1608
- "privacy": "public",
1609
- "default": "false",
1610
- "description": "Expands or collapses the item.",
1551
+ "privacy": "private",
1611
1552
  "inheritedFrom": {
1612
- "name": "AccordionItem",
1613
- "module": "src/accordion-item/accordion-item.ts"
1553
+ "name": "Accordion",
1554
+ "module": "src/accordion/accordion.ts"
1614
1555
  }
1615
1556
  },
1616
1557
  {
1617
1558
  "kind": "field",
1618
- "name": "id",
1559
+ "name": "activeItemIndex",
1619
1560
  "type": {
1620
- "text": "string"
1561
+ "text": "number"
1621
1562
  },
1622
- "privacy": "public",
1623
- "description": "The item ID",
1563
+ "privacy": "private",
1564
+ "default": "0",
1624
1565
  "inheritedFrom": {
1625
- "name": "AccordionItem",
1626
- "module": "src/accordion-item/accordion-item.ts"
1566
+ "name": "Accordion",
1567
+ "module": "src/accordion/accordion.ts"
1627
1568
  }
1628
1569
  },
1629
1570
  {
1630
1571
  "kind": "field",
1631
- "name": "change",
1572
+ "name": "accordionIds",
1573
+ "type": {
1574
+ "text": "Array<string | null>"
1575
+ },
1632
1576
  "privacy": "private",
1633
1577
  "inheritedFrom": {
1634
- "name": "AccordionItem",
1635
- "module": "src/accordion-item/accordion-item.ts"
1578
+ "name": "Accordion",
1579
+ "module": "src/accordion/accordion.ts"
1636
1580
  }
1637
1581
  },
1638
1582
  {
1639
1583
  "kind": "field",
1640
- "name": "_presentation",
1641
- "type": {
1642
- "text": "ComponentPresentation | null | undefined"
1643
- },
1584
+ "name": "change",
1644
1585
  "privacy": "private",
1645
- "default": "void 0",
1646
1586
  "inheritedFrom": {
1647
- "name": "FoundationElement",
1648
- "module": "src/foundation-element/foundation-element.ts"
1587
+ "name": "Accordion",
1588
+ "module": "src/accordion/accordion.ts"
1649
1589
  }
1650
1590
  },
1651
1591
  {
1652
- "kind": "field",
1653
- "name": "$presentation",
1654
- "type": {
1655
- "text": "ComponentPresentation | null"
1592
+ "kind": "method",
1593
+ "name": "findExpandedItem",
1594
+ "privacy": "private",
1595
+ "return": {
1596
+ "type": {
1597
+ "text": "AccordionItem | null"
1598
+ }
1656
1599
  },
1657
- "privacy": "public",
1658
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1659
1600
  "inheritedFrom": {
1660
- "name": "FoundationElement",
1661
- "module": "src/foundation-element/foundation-element.ts"
1601
+ "name": "Accordion",
1602
+ "module": "src/accordion/accordion.ts"
1662
1603
  }
1663
1604
  },
1664
1605
  {
1665
1606
  "kind": "field",
1666
- "name": "template",
1667
- "type": {
1668
- "text": "ElementViewTemplate | void | null"
1669
- },
1670
- "privacy": "public",
1671
- "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.",
1607
+ "name": "setItems",
1608
+ "privacy": "private",
1672
1609
  "inheritedFrom": {
1673
- "name": "FoundationElement",
1674
- "module": "src/foundation-element/foundation-element.ts"
1610
+ "name": "Accordion",
1611
+ "module": "src/accordion/accordion.ts"
1675
1612
  }
1676
1613
  },
1677
1614
  {
1678
1615
  "kind": "method",
1679
- "name": "templateChanged",
1680
- "privacy": "protected",
1616
+ "name": "resetItems",
1617
+ "privacy": "private",
1681
1618
  "return": {
1682
1619
  "type": {
1683
1620
  "text": "void"
1684
1621
  }
1685
1622
  },
1686
1623
  "inheritedFrom": {
1687
- "name": "FoundationElement",
1688
- "module": "src/foundation-element/foundation-element.ts"
1624
+ "name": "Accordion",
1625
+ "module": "src/accordion/accordion.ts"
1689
1626
  }
1690
1627
  },
1691
1628
  {
1692
1629
  "kind": "field",
1693
- "name": "styles",
1694
- "type": {
1695
- "text": "ElementStyles | void | null"
1696
- },
1697
- "privacy": "public",
1698
- "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.",
1630
+ "name": "removeItemListeners",
1631
+ "privacy": "private",
1699
1632
  "inheritedFrom": {
1700
- "name": "FoundationElement",
1701
- "module": "src/foundation-element/foundation-element.ts"
1633
+ "name": "Accordion",
1634
+ "module": "src/accordion/accordion.ts"
1635
+ }
1636
+ },
1637
+ {
1638
+ "kind": "field",
1639
+ "name": "activeItemChange",
1640
+ "privacy": "private",
1641
+ "inheritedFrom": {
1642
+ "name": "Accordion",
1643
+ "module": "src/accordion/accordion.ts"
1702
1644
  }
1703
1645
  },
1704
1646
  {
1705
1647
  "kind": "method",
1706
- "name": "stylesChanged",
1707
- "privacy": "protected",
1648
+ "name": "getItemIds",
1649
+ "privacy": "private",
1708
1650
  "return": {
1709
1651
  "type": {
1710
- "text": "void"
1652
+ "text": "Array<string | null>"
1711
1653
  }
1712
1654
  },
1713
1655
  "inheritedFrom": {
1714
- "name": "FoundationElement",
1715
- "module": "src/foundation-element/foundation-element.ts"
1656
+ "name": "Accordion",
1657
+ "module": "src/accordion/accordion.ts"
1716
1658
  }
1717
1659
  },
1718
1660
  {
1719
1661
  "kind": "method",
1720
- "name": "compose",
1721
- "privacy": "public",
1722
- "static": true,
1662
+ "name": "isSingleExpandMode",
1663
+ "privacy": "private",
1723
1664
  "return": {
1724
1665
  "type": {
1725
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1666
+ "text": "boolean"
1726
1667
  }
1727
1668
  },
1728
- "parameters": [
1729
- {
1730
- "name": "this",
1731
- "type": {
1732
- "text": "K"
1733
- }
1734
- },
1735
- {
1736
- "name": "elementDefinition",
1737
- "type": {
1738
- "text": "T"
1739
- },
1740
- "description": "The definition of the element to create the registry\nfunction for."
1741
- }
1742
- ],
1743
- "description": "Defines an element registry function with a set of element definition defaults.",
1744
1669
  "inheritedFrom": {
1745
- "name": "FoundationElement",
1746
- "module": "src/foundation-element/foundation-element.ts"
1670
+ "name": "Accordion",
1671
+ "module": "src/accordion/accordion.ts"
1747
1672
  }
1748
- }
1749
- ],
1750
- "events": [
1673
+ },
1751
1674
  {
1752
- "description": "Fires a custom 'change' event when the button is invoked",
1753
- "name": "change",
1754
- "inheritedFrom": {
1755
- "name": "AccordionItem",
1756
- "module": "src/accordion-item/accordion-item.ts"
1675
+ "kind": "field",
1676
+ "name": "handleItemKeyDown",
1677
+ "privacy": "private",
1678
+ "inheritedFrom": {
1679
+ "name": "Accordion",
1680
+ "module": "src/accordion/accordion.ts"
1681
+ }
1682
+ },
1683
+ {
1684
+ "kind": "field",
1685
+ "name": "handleItemFocus",
1686
+ "privacy": "private",
1687
+ "inheritedFrom": {
1688
+ "name": "Accordion",
1689
+ "module": "src/accordion/accordion.ts"
1690
+ }
1691
+ },
1692
+ {
1693
+ "kind": "method",
1694
+ "name": "adjust",
1695
+ "privacy": "private",
1696
+ "return": {
1697
+ "type": {
1698
+ "text": "void"
1699
+ }
1700
+ },
1701
+ "parameters": [
1702
+ {
1703
+ "name": "adjustment",
1704
+ "type": {
1705
+ "text": "number"
1706
+ }
1707
+ }
1708
+ ],
1709
+ "inheritedFrom": {
1710
+ "name": "Accordion",
1711
+ "module": "src/accordion/accordion.ts"
1712
+ }
1713
+ },
1714
+ {
1715
+ "kind": "method",
1716
+ "name": "focusItem",
1717
+ "privacy": "private",
1718
+ "return": {
1719
+ "type": {
1720
+ "text": "void"
1721
+ }
1722
+ },
1723
+ "inheritedFrom": {
1724
+ "name": "Accordion",
1725
+ "module": "src/accordion/accordion.ts"
1726
+ }
1727
+ },
1728
+ {
1729
+ "kind": "field",
1730
+ "name": "_presentation",
1731
+ "type": {
1732
+ "text": "ComponentPresentation | null | undefined"
1733
+ },
1734
+ "privacy": "private",
1735
+ "default": "void 0",
1736
+ "inheritedFrom": {
1737
+ "name": "FoundationElement",
1738
+ "module": "src/foundation-element/foundation-element.ts"
1739
+ }
1740
+ },
1741
+ {
1742
+ "kind": "field",
1743
+ "name": "$presentation",
1744
+ "type": {
1745
+ "text": "ComponentPresentation | null"
1746
+ },
1747
+ "privacy": "public",
1748
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1749
+ "inheritedFrom": {
1750
+ "name": "FoundationElement",
1751
+ "module": "src/foundation-element/foundation-element.ts"
1752
+ }
1753
+ },
1754
+ {
1755
+ "kind": "field",
1756
+ "name": "template",
1757
+ "type": {
1758
+ "text": "ElementViewTemplate | void | null"
1759
+ },
1760
+ "privacy": "public",
1761
+ "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.",
1762
+ "inheritedFrom": {
1763
+ "name": "FoundationElement",
1764
+ "module": "src/foundation-element/foundation-element.ts"
1765
+ }
1766
+ },
1767
+ {
1768
+ "kind": "method",
1769
+ "name": "templateChanged",
1770
+ "privacy": "protected",
1771
+ "return": {
1772
+ "type": {
1773
+ "text": "void"
1774
+ }
1775
+ },
1776
+ "inheritedFrom": {
1777
+ "name": "FoundationElement",
1778
+ "module": "src/foundation-element/foundation-element.ts"
1779
+ }
1780
+ },
1781
+ {
1782
+ "kind": "field",
1783
+ "name": "styles",
1784
+ "type": {
1785
+ "text": "ElementStyles | void | null"
1786
+ },
1787
+ "privacy": "public",
1788
+ "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.",
1789
+ "inheritedFrom": {
1790
+ "name": "FoundationElement",
1791
+ "module": "src/foundation-element/foundation-element.ts"
1792
+ }
1793
+ },
1794
+ {
1795
+ "kind": "method",
1796
+ "name": "stylesChanged",
1797
+ "privacy": "protected",
1798
+ "return": {
1799
+ "type": {
1800
+ "text": "void"
1801
+ }
1802
+ },
1803
+ "inheritedFrom": {
1804
+ "name": "FoundationElement",
1805
+ "module": "src/foundation-element/foundation-element.ts"
1806
+ }
1807
+ },
1808
+ {
1809
+ "kind": "method",
1810
+ "name": "compose",
1811
+ "privacy": "public",
1812
+ "static": true,
1813
+ "return": {
1814
+ "type": {
1815
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1816
+ }
1817
+ },
1818
+ "parameters": [
1819
+ {
1820
+ "name": "this",
1821
+ "type": {
1822
+ "text": "K"
1823
+ }
1824
+ },
1825
+ {
1826
+ "name": "elementDefinition",
1827
+ "type": {
1828
+ "text": "T"
1829
+ },
1830
+ "description": "The definition of the element to create the registry\nfunction for."
1831
+ }
1832
+ ],
1833
+ "description": "Defines an element registry function with a set of element definition defaults.",
1834
+ "inheritedFrom": {
1835
+ "name": "FoundationElement",
1836
+ "module": "src/foundation-element/foundation-element.ts"
1837
+ }
1838
+ }
1839
+ ],
1840
+ "events": [
1841
+ {
1842
+ "description": "Fires a custom 'change' event when the active item changes",
1843
+ "name": "change",
1844
+ "inheritedFrom": {
1845
+ "name": "Accordion",
1846
+ "module": "src/accordion/accordion.ts"
1757
1847
  }
1758
1848
  }
1759
1849
  ]
1760
1850
  },
1761
1851
  {
1762
1852
  "kind": "variable",
1763
- "name": "foundationAccordionItemShadowOptions",
1853
+ "name": "foundationAccordionShadowOptions",
1764
1854
  "type": {
1765
1855
  "text": "ShadowRootInit"
1766
1856
  },
@@ -1768,57 +1858,57 @@
1768
1858
  },
1769
1859
  {
1770
1860
  "kind": "variable",
1771
- "name": "defaultAccordionItemConfig",
1861
+ "name": "defaultAccordionConfig",
1772
1862
  "type": {
1773
1863
  "text": "object"
1774
1864
  },
1775
- "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}"
1865
+ "default": "{}"
1776
1866
  },
1777
1867
  {
1778
1868
  "kind": "variable",
1779
- "name": "foundationAccordionItem",
1780
- "description": "The Foundation Accordion Item",
1869
+ "name": "foundationAccordion",
1870
+ "description": "The Foundation Accordion",
1781
1871
  "privacy": "public"
1782
1872
  }
1783
1873
  ],
1784
1874
  "exports": [
1785
1875
  {
1786
1876
  "kind": "js",
1787
- "name": "AccordionItem",
1877
+ "name": "Accordion",
1788
1878
  "declaration": {
1789
- "name": "AccordionItem",
1790
- "module": "src/accordion-item/accordion-item.ts"
1879
+ "name": "Accordion",
1880
+ "module": "src/accordion/accordion.ts"
1791
1881
  }
1792
1882
  },
1793
1883
  {
1794
1884
  "kind": "js",
1795
- "name": "foundationAccordionItemShadowOptions",
1885
+ "name": "foundationAccordionShadowOptions",
1796
1886
  "declaration": {
1797
- "name": "foundationAccordionItemShadowOptions",
1798
- "module": "src/accordion-item/accordion-item.ts"
1887
+ "name": "foundationAccordionShadowOptions",
1888
+ "module": "src/accordion/accordion.ts"
1799
1889
  }
1800
1890
  },
1801
1891
  {
1802
1892
  "kind": "js",
1803
- "name": "defaultAccordionItemConfig",
1893
+ "name": "defaultAccordionConfig",
1804
1894
  "declaration": {
1805
- "name": "defaultAccordionItemConfig",
1806
- "module": "src/accordion-item/accordion-item.ts"
1895
+ "name": "defaultAccordionConfig",
1896
+ "module": "src/accordion/accordion.ts"
1807
1897
  }
1808
1898
  },
1809
1899
  {
1810
1900
  "kind": "js",
1811
- "name": "foundationAccordionItem",
1901
+ "name": "foundationAccordion",
1812
1902
  "declaration": {
1813
- "name": "foundationAccordionItem",
1814
- "module": "src/accordion-item/accordion-item.ts"
1903
+ "name": "foundationAccordion",
1904
+ "module": "src/accordion/accordion.ts"
1815
1905
  }
1816
1906
  }
1817
1907
  ]
1818
1908
  },
1819
1909
  {
1820
1910
  "kind": "javascript-module",
1821
- "path": "src/accordion-item/index.ts",
1911
+ "path": "src/accordion/index.ts",
1822
1912
  "declarations": [],
1823
1913
  "exports": [
1824
1914
  {
@@ -1826,7 +1916,7 @@
1826
1916
  "name": "*",
1827
1917
  "declaration": {
1828
1918
  "name": "*",
1829
- "package": "./accordion-item.template"
1919
+ "package": "./accordion.template"
1830
1920
  }
1831
1921
  },
1832
1922
  {
@@ -1834,7 +1924,7 @@
1834
1924
  "name": "*",
1835
1925
  "declaration": {
1836
1926
  "name": "*",
1837
- "package": "./accordion-item.styles"
1927
+ "package": "./accordion.styles"
1838
1928
  }
1839
1929
  },
1840
1930
  {
@@ -1842,41 +1932,18 @@
1842
1932
  "name": "*",
1843
1933
  "declaration": {
1844
1934
  "name": "*",
1845
- "package": "./accordion-item"
1935
+ "package": "./accordion"
1846
1936
  }
1847
1937
  }
1848
1938
  ]
1849
1939
  },
1850
1940
  {
1851
1941
  "kind": "javascript-module",
1852
- "path": "src/actions-menu/actions-menu.styles.ts",
1942
+ "path": "src/accordion-item/accordion-item.styles.ts",
1853
1943
  "declarations": [
1854
1944
  {
1855
1945
  "kind": "function",
1856
- "name": "actionsMenuBaseStyles",
1857
- "return": {
1858
- "type": {
1859
- "text": "ElementStyles"
1860
- }
1861
- },
1862
- "parameters": [
1863
- {
1864
- "name": "context",
1865
- "type": {
1866
- "text": "ElementDefinitionContext"
1867
- }
1868
- },
1869
- {
1870
- "name": "definition",
1871
- "type": {
1872
- "text": "FoundationElementDefinition"
1873
- }
1874
- }
1875
- ]
1876
- },
1877
- {
1878
- "kind": "function",
1879
- "name": "foundationActionsMenuStyles",
1946
+ "name": "foundationAccordionItemStyles",
1880
1947
  "return": {
1881
1948
  "type": {
1882
1949
  "text": "ElementStyles"
@@ -1901,281 +1968,156 @@
1901
1968
  "exports": [
1902
1969
  {
1903
1970
  "kind": "js",
1904
- "name": "actionsMenuBaseStyles",
1905
- "declaration": {
1906
- "name": "actionsMenuBaseStyles",
1907
- "module": "src/actions-menu/actions-menu.styles.ts"
1908
- }
1909
- },
1910
- {
1911
- "kind": "js",
1912
- "name": "foundationActionsMenuStyles",
1971
+ "name": "foundationAccordionItemStyles",
1913
1972
  "declaration": {
1914
- "name": "foundationActionsMenuStyles",
1915
- "module": "src/actions-menu/actions-menu.styles.ts"
1973
+ "name": "foundationAccordionItemStyles",
1974
+ "module": "src/accordion-item/accordion-item.styles.ts"
1916
1975
  }
1917
1976
  }
1918
1977
  ]
1919
1978
  },
1920
1979
  {
1921
1980
  "kind": "javascript-module",
1922
- "path": "src/actions-menu/actions-menu.template.ts",
1981
+ "path": "src/accordion-item/accordion-item.template.ts",
1923
1982
  "declarations": [
1924
1983
  {
1925
1984
  "kind": "function",
1926
- "name": "menuTemplate",
1985
+ "name": "foundationAccordionItemTemplate",
1986
+ "return": {
1987
+ "type": {
1988
+ "text": "ViewTemplate<AccordionItem>"
1989
+ }
1990
+ },
1927
1991
  "parameters": [
1928
1992
  {
1929
- "name": "prefix",
1993
+ "name": "context",
1930
1994
  "type": {
1931
- "text": "string"
1995
+ "text": "ElementDefinitionContext"
1932
1996
  }
1933
- }
1934
- ]
1935
- },
1936
- {
1937
- "kind": "function",
1938
- "name": "singleOptionTemplate",
1939
- "parameters": [
1997
+ },
1940
1998
  {
1941
- "name": "prefix",
1999
+ "name": "definition",
1942
2000
  "type": {
1943
- "text": "string"
2001
+ "text": "FoundationElementDefinition"
1944
2002
  }
1945
2003
  }
1946
2004
  ]
1947
- },
1948
- {
1949
- "kind": "variable",
1950
- "name": "foundationActionsMenuTemplate",
1951
- "type": {
1952
- "text": "ViewTemplate<ActionsMenu>"
1953
- },
1954
- "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`"
1955
2005
  }
1956
2006
  ],
1957
2007
  "exports": [
1958
2008
  {
1959
2009
  "kind": "js",
1960
- "name": "menuTemplate",
1961
- "declaration": {
1962
- "name": "menuTemplate",
1963
- "module": "src/actions-menu/actions-menu.template.ts"
1964
- }
1965
- },
1966
- {
1967
- "kind": "js",
1968
- "name": "singleOptionTemplate",
1969
- "declaration": {
1970
- "name": "singleOptionTemplate",
1971
- "module": "src/actions-menu/actions-menu.template.ts"
1972
- }
1973
- },
1974
- {
1975
- "kind": "js",
1976
- "name": "foundationActionsMenuTemplate",
2010
+ "name": "foundationAccordionItemTemplate",
1977
2011
  "declaration": {
1978
- "name": "foundationActionsMenuTemplate",
1979
- "module": "src/actions-menu/actions-menu.template.ts"
2012
+ "name": "foundationAccordionItemTemplate",
2013
+ "module": "src/accordion-item/accordion-item.template.ts"
1980
2014
  }
1981
2015
  }
1982
2016
  ]
1983
2017
  },
1984
2018
  {
1985
2019
  "kind": "javascript-module",
1986
- "path": "src/actions-menu/actions-menu.ts",
2020
+ "path": "src/accordion-item/accordion-item.ts",
1987
2021
  "declarations": [
1988
2022
  {
1989
2023
  "kind": "class",
1990
2024
  "description": "",
1991
- "name": "ActionsMenu",
1992
- "members": [
1993
- {
1994
- "kind": "field",
1995
- "name": "actions",
1996
- "type": {
1997
- "text": "ActionMenuItem[]"
1998
- }
1999
- },
2000
- {
2001
- "kind": "field",
2002
- "name": "isVertical",
2003
- "type": {
2004
- "text": "boolean"
2005
- },
2006
- "default": "false"
2007
- },
2008
- {
2009
- "kind": "field",
2010
- "name": "addDefaultActions",
2011
- "type": {
2012
- "text": "boolean"
2013
- },
2014
- "default": "true"
2015
- },
2025
+ "name": "AccordionItem",
2026
+ "superclass": {
2027
+ "name": "FASTAccordionItem",
2028
+ "package": "@microsoft/fast-components"
2029
+ },
2030
+ "tagName": "%%prefix%%-accordion-item",
2031
+ "customElement": true,
2032
+ "attributes": [
2016
2033
  {
2017
- "kind": "field",
2018
- "name": "autoCloseOnAction",
2034
+ "name": "heading-level",
2019
2035
  "type": {
2020
- "text": "boolean"
2036
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2021
2037
  },
2022
- "default": "true"
2023
- },
2024
- {
2025
- "kind": "field",
2026
- "name": "classNames",
2027
- "type": {
2028
- "text": "string"
2029
- }
2030
- },
2031
- {
2032
- "kind": "field",
2033
- "name": "definition",
2034
- "type": {
2035
- "text": "any"
2038
+ "default": "2",
2039
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2040
+ "fieldName": "headinglevel",
2041
+ "inheritedFrom": {
2042
+ "name": "AccordionItem",
2043
+ "module": "src/accordion-item/accordion-item.ts"
2036
2044
  }
2037
2045
  },
2038
2046
  {
2039
- "kind": "field",
2040
- "name": "name",
2041
- "type": {
2042
- "text": "string"
2043
- },
2044
- "default": "'Actions'"
2045
- },
2046
- {
2047
- "kind": "field",
2048
- "name": "open",
2049
2047
  "type": {
2050
2048
  "text": "boolean"
2051
2049
  },
2052
- "default": "false"
2053
- },
2054
- {
2055
- "kind": "field",
2056
- "name": "buttonAppearance",
2057
- "type": {
2058
- "text": "string"
2050
+ "default": "false",
2051
+ "description": "Expands or collapses the item.",
2052
+ "fieldName": "expanded",
2053
+ "inheritedFrom": {
2054
+ "name": "AccordionItem",
2055
+ "module": "src/accordion-item/accordion-item.ts"
2059
2056
  }
2060
2057
  },
2061
2058
  {
2062
- "kind": "field",
2063
- "name": "hideDisabled",
2064
- "type": {
2065
- "text": "boolean"
2066
- },
2067
- "default": "false"
2068
- },
2069
- {
2070
- "kind": "field",
2071
- "name": "hideMenuSingleOption",
2059
+ "name": "id",
2072
2060
  "type": {
2073
- "text": "boolean"
2061
+ "text": "string"
2074
2062
  },
2075
- "default": "false"
2076
- },
2077
- {
2078
- "kind": "field",
2079
- "name": "singleOption",
2080
- "type": {
2081
- "text": "ActionMenuItem"
2063
+ "description": "The item ID",
2064
+ "fieldName": "id",
2065
+ "inheritedFrom": {
2066
+ "name": "AccordionItem",
2067
+ "module": "src/accordion-item/accordion-item.ts"
2082
2068
  }
2083
- },
2069
+ }
2070
+ ],
2071
+ "members": [
2084
2072
  {
2085
2073
  "kind": "field",
2086
- "name": "actionsMenu",
2074
+ "name": "headinglevel",
2087
2075
  "type": {
2088
- "text": "HTMLElement"
2076
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2077
+ },
2078
+ "privacy": "public",
2079
+ "default": "2",
2080
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2081
+ "inheritedFrom": {
2082
+ "name": "AccordionItem",
2083
+ "module": "src/accordion-item/accordion-item.ts"
2089
2084
  }
2090
2085
  },
2091
2086
  {
2092
2087
  "kind": "field",
2093
- "name": "actionsOpener",
2088
+ "name": "expanded",
2094
2089
  "type": {
2095
- "text": "HTMLElement"
2090
+ "text": "boolean"
2091
+ },
2092
+ "privacy": "public",
2093
+ "default": "false",
2094
+ "description": "Expands or collapses the item.",
2095
+ "inheritedFrom": {
2096
+ "name": "AccordionItem",
2097
+ "module": "src/accordion-item/accordion-item.ts"
2096
2098
  }
2097
2099
  },
2098
- {
2099
- "kind": "method",
2100
- "name": "updateMenuPosition",
2101
- "privacy": "private"
2102
- },
2103
- {
2104
- "kind": "method",
2105
- "name": "definitionChanged",
2106
- "privacy": "protected",
2107
- "parameters": [
2108
- {
2109
- "name": "oldValue",
2110
- "type": {
2111
- "text": "any"
2112
- }
2113
- },
2114
- {
2115
- "name": "newValue",
2116
- "type": {
2117
- "text": "any"
2118
- }
2119
- }
2120
- ]
2121
- },
2122
- {
2123
- "kind": "method",
2124
- "name": "openChanged",
2125
- "privacy": "protected"
2126
- },
2127
- {
2128
- "kind": "method",
2129
- "name": "toggleActionsMenuVisibility"
2130
- },
2131
- {
2132
- "kind": "method",
2133
- "name": "onActionMenuItemClick",
2134
- "parameters": [
2135
- {
2136
- "name": "callback",
2137
- "type": {
2138
- "text": "(rowData) => void | any"
2139
- }
2140
- }
2141
- ]
2142
- },
2143
2100
  {
2144
2101
  "kind": "field",
2145
- "name": "allActions",
2102
+ "name": "id",
2146
2103
  "type": {
2147
- "text": "ActionMenuItem[]"
2104
+ "text": "string"
2148
2105
  },
2149
- "readonly": true
2106
+ "privacy": "public",
2107
+ "description": "The item ID",
2108
+ "inheritedFrom": {
2109
+ "name": "AccordionItem",
2110
+ "module": "src/accordion-item/accordion-item.ts"
2111
+ }
2150
2112
  },
2151
2113
  {
2152
2114
  "kind": "field",
2153
- "name": "rowData",
2154
- "readonly": true
2155
- },
2156
- {
2157
- "kind": "method",
2158
- "name": "getLabel",
2159
- "parameters": [
2160
- {
2161
- "name": "name",
2162
- "type": {
2163
- "text": "string | ((rowData: any) => string)"
2164
- }
2165
- }
2166
- ]
2167
- },
2168
- {
2169
- "kind": "method",
2170
- "name": "getTemplate",
2171
- "parameters": [
2172
- {
2173
- "name": "prefix",
2174
- "type": {
2175
- "text": "string"
2176
- }
2177
- }
2178
- ]
2115
+ "name": "change",
2116
+ "privacy": "private",
2117
+ "inheritedFrom": {
2118
+ "name": "AccordionItem",
2119
+ "module": "src/accordion-item/accordion-item.ts"
2120
+ }
2179
2121
  },
2180
2122
  {
2181
2123
  "kind": "field",
@@ -2289,107 +2231,109 @@
2289
2231
  }
2290
2232
  }
2291
2233
  ],
2292
- "attributes": [
2293
- {
2294
- "name": "is-vertical",
2295
- "type": {
2296
- "text": "boolean"
2297
- },
2298
- "default": "false",
2299
- "fieldName": "isVertical"
2300
- },
2301
- {
2302
- "name": "add-default-actions",
2303
- "type": {
2304
- "text": "boolean"
2305
- },
2306
- "default": "true",
2307
- "fieldName": "addDefaultActions"
2308
- },
2309
- {
2310
- "name": "auto-close-on-action",
2311
- "type": {
2312
- "text": "boolean"
2313
- },
2314
- "default": "true",
2315
- "fieldName": "autoCloseOnAction"
2316
- },
2317
- {
2318
- "name": "name",
2319
- "type": {
2320
- "text": "string"
2321
- },
2322
- "default": "'Actions'",
2323
- "fieldName": "name"
2324
- },
2325
- {
2326
- "name": "open",
2327
- "type": {
2328
- "text": "boolean"
2329
- },
2330
- "default": "false",
2331
- "fieldName": "open"
2332
- },
2333
- {
2334
- "name": "buttonAppearance",
2335
- "type": {
2336
- "text": "string"
2337
- },
2338
- "fieldName": "buttonAppearance"
2339
- },
2340
- {
2341
- "name": "hide-disabled",
2342
- "type": {
2343
- "text": "boolean"
2344
- },
2345
- "default": "false",
2346
- "fieldName": "hideDisabled"
2347
- },
2234
+ "events": [
2348
2235
  {
2349
- "name": "hide-menu-single-option",
2350
- "type": {
2351
- "text": "boolean"
2352
- },
2353
- "default": "false",
2354
- "fieldName": "hideMenuSingleOption"
2236
+ "description": "Fires a custom 'change' event when the button is invoked",
2237
+ "name": "change",
2238
+ "inheritedFrom": {
2239
+ "name": "AccordionItem",
2240
+ "module": "src/accordion-item/accordion-item.ts"
2241
+ }
2355
2242
  }
2356
- ],
2357
- "superclass": {
2358
- "name": "FoundationElement",
2359
- "package": "@microsoft/fast-foundation"
2243
+ ]
2244
+ },
2245
+ {
2246
+ "kind": "variable",
2247
+ "name": "foundationAccordionItemShadowOptions",
2248
+ "type": {
2249
+ "text": "ShadowRootInit"
2360
2250
  },
2361
- "tagName": "%%prefix%%-actions-menu",
2362
- "customElement": true
2251
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2363
2252
  },
2364
2253
  {
2365
2254
  "kind": "variable",
2366
- "name": "foundationActionsMenu",
2367
- "description": "The Foundation Actions Menu",
2255
+ "name": "defaultAccordionItemConfig",
2256
+ "type": {
2257
+ "text": "object"
2258
+ },
2259
+ "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}"
2260
+ },
2261
+ {
2262
+ "kind": "variable",
2263
+ "name": "foundationAccordionItem",
2264
+ "description": "The Foundation Accordion Item",
2368
2265
  "privacy": "public"
2369
2266
  }
2370
2267
  ],
2371
2268
  "exports": [
2372
2269
  {
2373
2270
  "kind": "js",
2374
- "name": "ActionsMenu",
2271
+ "name": "AccordionItem",
2375
2272
  "declaration": {
2376
- "name": "ActionsMenu",
2377
- "module": "src/actions-menu/actions-menu.ts"
2273
+ "name": "AccordionItem",
2274
+ "module": "src/accordion-item/accordion-item.ts"
2275
+ }
2276
+ },
2277
+ {
2278
+ "kind": "js",
2279
+ "name": "foundationAccordionItemShadowOptions",
2280
+ "declaration": {
2281
+ "name": "foundationAccordionItemShadowOptions",
2282
+ "module": "src/accordion-item/accordion-item.ts"
2283
+ }
2284
+ },
2285
+ {
2286
+ "kind": "js",
2287
+ "name": "defaultAccordionItemConfig",
2288
+ "declaration": {
2289
+ "name": "defaultAccordionItemConfig",
2290
+ "module": "src/accordion-item/accordion-item.ts"
2291
+ }
2292
+ },
2293
+ {
2294
+ "kind": "js",
2295
+ "name": "foundationAccordionItem",
2296
+ "declaration": {
2297
+ "name": "foundationAccordionItem",
2298
+ "module": "src/accordion-item/accordion-item.ts"
2299
+ }
2300
+ }
2301
+ ]
2302
+ },
2303
+ {
2304
+ "kind": "javascript-module",
2305
+ "path": "src/accordion-item/index.ts",
2306
+ "declarations": [],
2307
+ "exports": [
2308
+ {
2309
+ "kind": "js",
2310
+ "name": "*",
2311
+ "declaration": {
2312
+ "name": "*",
2313
+ "package": "./accordion-item.template"
2314
+ }
2315
+ },
2316
+ {
2317
+ "kind": "js",
2318
+ "name": "*",
2319
+ "declaration": {
2320
+ "name": "*",
2321
+ "package": "./accordion-item.styles"
2378
2322
  }
2379
2323
  },
2380
2324
  {
2381
2325
  "kind": "js",
2382
- "name": "foundationActionsMenu",
2326
+ "name": "*",
2383
2327
  "declaration": {
2384
- "name": "foundationActionsMenu",
2385
- "module": "src/actions-menu/actions-menu.ts"
2328
+ "name": "*",
2329
+ "package": "./accordion-item"
2386
2330
  }
2387
2331
  }
2388
2332
  ]
2389
2333
  },
2390
2334
  {
2391
2335
  "kind": "javascript-module",
2392
- "path": "src/actions-menu/index.ts",
2336
+ "path": "src/_config/index.ts",
2393
2337
  "declarations": [],
2394
2338
  "exports": [
2395
2339
  {
@@ -2397,7 +2341,7 @@
2397
2341
  "name": "*",
2398
2342
  "declaration": {
2399
2343
  "name": "*",
2400
- "package": "./actions-menu.styles"
2344
+ "package": "./styles"
2401
2345
  }
2402
2346
  },
2403
2347
  {
@@ -2405,7 +2349,7 @@
2405
2349
  "name": "*",
2406
2350
  "declaration": {
2407
2351
  "name": "*",
2408
- "package": "./actions-menu.template"
2352
+ "package": "./tokens"
2409
2353
  }
2410
2354
  },
2411
2355
  {
@@ -2413,18 +2357,41 @@
2413
2357
  "name": "*",
2414
2358
  "declaration": {
2415
2359
  "name": "*",
2416
- "package": "./actions-menu"
2360
+ "package": "./values"
2417
2361
  }
2418
2362
  }
2419
2363
  ]
2420
2364
  },
2421
2365
  {
2422
2366
  "kind": "javascript-module",
2423
- "path": "src/accordion/accordion.styles.ts",
2367
+ "path": "src/actions-menu/actions-menu.styles.ts",
2424
2368
  "declarations": [
2425
2369
  {
2426
2370
  "kind": "function",
2427
- "name": "foundationAccordionStyles",
2371
+ "name": "actionsMenuBaseStyles",
2372
+ "return": {
2373
+ "type": {
2374
+ "text": "ElementStyles"
2375
+ }
2376
+ },
2377
+ "parameters": [
2378
+ {
2379
+ "name": "context",
2380
+ "type": {
2381
+ "text": "ElementDefinitionContext"
2382
+ }
2383
+ },
2384
+ {
2385
+ "name": "definition",
2386
+ "type": {
2387
+ "text": "FoundationElementDefinition"
2388
+ }
2389
+ }
2390
+ ]
2391
+ },
2392
+ {
2393
+ "kind": "function",
2394
+ "name": "foundationActionsMenuStyles",
2428
2395
  "return": {
2429
2396
  "type": {
2430
2397
  "text": "ElementStyles"
@@ -2449,277 +2416,281 @@
2449
2416
  "exports": [
2450
2417
  {
2451
2418
  "kind": "js",
2452
- "name": "foundationAccordionStyles",
2419
+ "name": "actionsMenuBaseStyles",
2453
2420
  "declaration": {
2454
- "name": "foundationAccordionStyles",
2455
- "module": "src/accordion/accordion.styles.ts"
2421
+ "name": "actionsMenuBaseStyles",
2422
+ "module": "src/actions-menu/actions-menu.styles.ts"
2423
+ }
2424
+ },
2425
+ {
2426
+ "kind": "js",
2427
+ "name": "foundationActionsMenuStyles",
2428
+ "declaration": {
2429
+ "name": "foundationActionsMenuStyles",
2430
+ "module": "src/actions-menu/actions-menu.styles.ts"
2456
2431
  }
2457
2432
  }
2458
2433
  ]
2459
2434
  },
2460
2435
  {
2461
2436
  "kind": "javascript-module",
2462
- "path": "src/accordion/accordion.template.ts",
2437
+ "path": "src/actions-menu/actions-menu.template.ts",
2463
2438
  "declarations": [
2464
2439
  {
2465
2440
  "kind": "function",
2466
- "name": "foundationAccordionTemplate",
2467
- "return": {
2468
- "type": {
2469
- "text": "ViewTemplate<Accordion>"
2470
- }
2471
- },
2441
+ "name": "menuTemplate",
2472
2442
  "parameters": [
2473
2443
  {
2474
- "name": "context",
2444
+ "name": "prefix",
2475
2445
  "type": {
2476
- "text": "ElementDefinitionContext"
2446
+ "text": "string"
2477
2447
  }
2478
- },
2448
+ }
2449
+ ]
2450
+ },
2451
+ {
2452
+ "kind": "function",
2453
+ "name": "singleOptionTemplate",
2454
+ "parameters": [
2479
2455
  {
2480
- "name": "definition",
2456
+ "name": "prefix",
2481
2457
  "type": {
2482
- "text": "FoundationElementDefinition"
2458
+ "text": "string"
2483
2459
  }
2484
2460
  }
2485
2461
  ]
2462
+ },
2463
+ {
2464
+ "kind": "variable",
2465
+ "name": "foundationActionsMenuTemplate",
2466
+ "type": {
2467
+ "text": "ViewTemplate<ActionsMenu>"
2468
+ },
2469
+ "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`"
2486
2470
  }
2487
2471
  ],
2488
2472
  "exports": [
2489
2473
  {
2490
2474
  "kind": "js",
2491
- "name": "foundationAccordionTemplate",
2475
+ "name": "menuTemplate",
2492
2476
  "declaration": {
2493
- "name": "foundationAccordionTemplate",
2494
- "module": "src/accordion/accordion.template.ts"
2477
+ "name": "menuTemplate",
2478
+ "module": "src/actions-menu/actions-menu.template.ts"
2479
+ }
2480
+ },
2481
+ {
2482
+ "kind": "js",
2483
+ "name": "singleOptionTemplate",
2484
+ "declaration": {
2485
+ "name": "singleOptionTemplate",
2486
+ "module": "src/actions-menu/actions-menu.template.ts"
2487
+ }
2488
+ },
2489
+ {
2490
+ "kind": "js",
2491
+ "name": "foundationActionsMenuTemplate",
2492
+ "declaration": {
2493
+ "name": "foundationActionsMenuTemplate",
2494
+ "module": "src/actions-menu/actions-menu.template.ts"
2495
2495
  }
2496
2496
  }
2497
2497
  ]
2498
2498
  },
2499
2499
  {
2500
2500
  "kind": "javascript-module",
2501
- "path": "src/accordion/accordion.ts",
2501
+ "path": "src/actions-menu/actions-menu.ts",
2502
2502
  "declarations": [
2503
2503
  {
2504
2504
  "kind": "class",
2505
2505
  "description": "",
2506
- "name": "Accordion",
2507
- "superclass": {
2508
- "name": "FASTAccordion",
2509
- "package": "@microsoft/fast-foundation"
2510
- },
2511
- "tagName": "%%prefix%%-accordion",
2512
- "customElement": true,
2513
- "attributes": [
2506
+ "name": "ActionsMenu",
2507
+ "members": [
2514
2508
  {
2515
- "name": "expand-mode",
2509
+ "kind": "field",
2510
+ "name": "actions",
2516
2511
  "type": {
2517
- "text": "AccordionExpandMode"
2518
- },
2519
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2520
- "fieldName": "expandmode",
2521
- "inheritedFrom": {
2522
- "name": "Accordion",
2523
- "module": "src/accordion/accordion.ts"
2512
+ "text": "ActionMenuItem[]"
2524
2513
  }
2525
- }
2526
- ],
2527
- "members": [
2514
+ },
2528
2515
  {
2529
2516
  "kind": "field",
2530
- "name": "expandmode",
2517
+ "name": "isVertical",
2531
2518
  "type": {
2532
- "text": "AccordionExpandMode"
2519
+ "text": "boolean"
2533
2520
  },
2534
- "privacy": "public",
2535
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2536
- "inheritedFrom": {
2537
- "name": "Accordion",
2538
- "module": "src/accordion/accordion.ts"
2539
- }
2521
+ "default": "false"
2540
2522
  },
2541
2523
  {
2542
2524
  "kind": "field",
2543
- "name": "activeid",
2525
+ "name": "addDefaultActions",
2544
2526
  "type": {
2545
- "text": "string | null"
2527
+ "text": "boolean"
2546
2528
  },
2547
- "privacy": "private",
2548
- "inheritedFrom": {
2549
- "name": "Accordion",
2550
- "module": "src/accordion/accordion.ts"
2551
- }
2529
+ "default": "true"
2552
2530
  },
2553
2531
  {
2554
2532
  "kind": "field",
2555
- "name": "activeItemIndex",
2533
+ "name": "autoCloseOnAction",
2556
2534
  "type": {
2557
- "text": "number"
2535
+ "text": "boolean"
2558
2536
  },
2559
- "privacy": "private",
2560
- "default": "0",
2561
- "inheritedFrom": {
2562
- "name": "Accordion",
2563
- "module": "src/accordion/accordion.ts"
2564
- }
2537
+ "default": "true"
2565
2538
  },
2566
2539
  {
2567
2540
  "kind": "field",
2568
- "name": "accordionIds",
2541
+ "name": "classNames",
2569
2542
  "type": {
2570
- "text": "Array<string | null>"
2571
- },
2572
- "privacy": "private",
2573
- "inheritedFrom": {
2574
- "name": "Accordion",
2575
- "module": "src/accordion/accordion.ts"
2543
+ "text": "string"
2576
2544
  }
2577
2545
  },
2578
2546
  {
2579
2547
  "kind": "field",
2580
- "name": "change",
2581
- "privacy": "private",
2582
- "inheritedFrom": {
2583
- "name": "Accordion",
2584
- "module": "src/accordion/accordion.ts"
2548
+ "name": "definition",
2549
+ "type": {
2550
+ "text": "any"
2585
2551
  }
2586
2552
  },
2587
2553
  {
2588
- "kind": "method",
2589
- "name": "findExpandedItem",
2590
- "privacy": "private",
2591
- "return": {
2592
- "type": {
2593
- "text": "AccordionItem | null"
2594
- }
2554
+ "kind": "field",
2555
+ "name": "name",
2556
+ "type": {
2557
+ "text": "string"
2595
2558
  },
2596
- "inheritedFrom": {
2597
- "name": "Accordion",
2598
- "module": "src/accordion/accordion.ts"
2599
- }
2559
+ "default": "'Actions'"
2600
2560
  },
2601
2561
  {
2602
2562
  "kind": "field",
2603
- "name": "setItems",
2604
- "privacy": "private",
2605
- "inheritedFrom": {
2606
- "name": "Accordion",
2607
- "module": "src/accordion/accordion.ts"
2563
+ "name": "open",
2564
+ "type": {
2565
+ "text": "boolean"
2566
+ },
2567
+ "default": "false"
2568
+ },
2569
+ {
2570
+ "kind": "field",
2571
+ "name": "buttonAppearance",
2572
+ "type": {
2573
+ "text": "string"
2608
2574
  }
2609
2575
  },
2610
2576
  {
2611
- "kind": "method",
2612
- "name": "resetItems",
2613
- "privacy": "private",
2614
- "return": {
2615
- "type": {
2616
- "text": "void"
2617
- }
2577
+ "kind": "field",
2578
+ "name": "hideDisabled",
2579
+ "type": {
2580
+ "text": "boolean"
2618
2581
  },
2619
- "inheritedFrom": {
2620
- "name": "Accordion",
2621
- "module": "src/accordion/accordion.ts"
2582
+ "default": "false"
2583
+ },
2584
+ {
2585
+ "kind": "field",
2586
+ "name": "hideMenuSingleOption",
2587
+ "type": {
2588
+ "text": "boolean"
2589
+ },
2590
+ "default": "false"
2591
+ },
2592
+ {
2593
+ "kind": "field",
2594
+ "name": "singleOption",
2595
+ "type": {
2596
+ "text": "ActionMenuItem"
2597
+ }
2598
+ },
2599
+ {
2600
+ "kind": "field",
2601
+ "name": "actionsMenu",
2602
+ "type": {
2603
+ "text": "HTMLElement"
2622
2604
  }
2623
2605
  },
2624
2606
  {
2625
2607
  "kind": "field",
2626
- "name": "removeItemListeners",
2627
- "privacy": "private",
2628
- "inheritedFrom": {
2629
- "name": "Accordion",
2630
- "module": "src/accordion/accordion.ts"
2608
+ "name": "actionsOpener",
2609
+ "type": {
2610
+ "text": "HTMLElement"
2631
2611
  }
2632
2612
  },
2633
2613
  {
2634
- "kind": "field",
2635
- "name": "activeItemChange",
2636
- "privacy": "private",
2637
- "inheritedFrom": {
2638
- "name": "Accordion",
2639
- "module": "src/accordion/accordion.ts"
2640
- }
2614
+ "kind": "method",
2615
+ "name": "updateMenuPosition",
2616
+ "privacy": "private"
2641
2617
  },
2642
2618
  {
2643
2619
  "kind": "method",
2644
- "name": "getItemIds",
2645
- "privacy": "private",
2646
- "return": {
2647
- "type": {
2648
- "text": "Array<string | null>"
2620
+ "name": "definitionChanged",
2621
+ "privacy": "protected",
2622
+ "parameters": [
2623
+ {
2624
+ "name": "oldValue",
2625
+ "type": {
2626
+ "text": "any"
2627
+ }
2628
+ },
2629
+ {
2630
+ "name": "newValue",
2631
+ "type": {
2632
+ "text": "any"
2633
+ }
2649
2634
  }
2650
- },
2651
- "inheritedFrom": {
2652
- "name": "Accordion",
2653
- "module": "src/accordion/accordion.ts"
2654
- }
2635
+ ]
2655
2636
  },
2656
2637
  {
2657
2638
  "kind": "method",
2658
- "name": "isSingleExpandMode",
2659
- "privacy": "private",
2660
- "return": {
2661
- "type": {
2662
- "text": "boolean"
2639
+ "name": "openChanged",
2640
+ "privacy": "protected"
2641
+ },
2642
+ {
2643
+ "kind": "method",
2644
+ "name": "toggleActionsMenuVisibility"
2645
+ },
2646
+ {
2647
+ "kind": "method",
2648
+ "name": "onActionMenuItemClick",
2649
+ "parameters": [
2650
+ {
2651
+ "name": "callback",
2652
+ "type": {
2653
+ "text": "(rowData) => void | any"
2654
+ }
2663
2655
  }
2664
- },
2665
- "inheritedFrom": {
2666
- "name": "Accordion",
2667
- "module": "src/accordion/accordion.ts"
2668
- }
2656
+ ]
2669
2657
  },
2670
2658
  {
2671
2659
  "kind": "field",
2672
- "name": "handleItemKeyDown",
2673
- "privacy": "private",
2674
- "inheritedFrom": {
2675
- "name": "Accordion",
2676
- "module": "src/accordion/accordion.ts"
2677
- }
2660
+ "name": "allActions",
2661
+ "type": {
2662
+ "text": "ActionMenuItem[]"
2663
+ },
2664
+ "readonly": true
2678
2665
  },
2679
2666
  {
2680
2667
  "kind": "field",
2681
- "name": "handleItemFocus",
2682
- "privacy": "private",
2683
- "inheritedFrom": {
2684
- "name": "Accordion",
2685
- "module": "src/accordion/accordion.ts"
2686
- }
2668
+ "name": "rowData",
2669
+ "readonly": true
2687
2670
  },
2688
2671
  {
2689
2672
  "kind": "method",
2690
- "name": "adjust",
2691
- "privacy": "private",
2692
- "return": {
2693
- "type": {
2694
- "text": "void"
2695
- }
2696
- },
2673
+ "name": "getLabel",
2697
2674
  "parameters": [
2698
2675
  {
2699
- "name": "adjustment",
2676
+ "name": "name",
2700
2677
  "type": {
2701
- "text": "number"
2678
+ "text": "string | ((rowData: any) => string)"
2702
2679
  }
2703
2680
  }
2704
- ],
2705
- "inheritedFrom": {
2706
- "name": "Accordion",
2707
- "module": "src/accordion/accordion.ts"
2708
- }
2681
+ ]
2709
2682
  },
2710
2683
  {
2711
2684
  "kind": "method",
2712
- "name": "focusItem",
2713
- "privacy": "private",
2714
- "return": {
2715
- "type": {
2716
- "text": "void"
2685
+ "name": "getTemplate",
2686
+ "parameters": [
2687
+ {
2688
+ "name": "prefix",
2689
+ "type": {
2690
+ "text": "string"
2691
+ }
2717
2692
  }
2718
- },
2719
- "inheritedFrom": {
2720
- "name": "Accordion",
2721
- "module": "src/accordion/accordion.ts"
2722
- }
2693
+ ]
2723
2694
  },
2724
2695
  {
2725
2696
  "kind": "field",
@@ -2833,78 +2804,107 @@
2833
2804
  }
2834
2805
  }
2835
2806
  ],
2836
- "events": [
2807
+ "attributes": [
2837
2808
  {
2838
- "description": "Fires a custom 'change' event when the active item changes",
2839
- "name": "change",
2840
- "inheritedFrom": {
2841
- "name": "Accordion",
2842
- "module": "src/accordion/accordion.ts"
2843
- }
2809
+ "name": "is-vertical",
2810
+ "type": {
2811
+ "text": "boolean"
2812
+ },
2813
+ "default": "false",
2814
+ "fieldName": "isVertical"
2815
+ },
2816
+ {
2817
+ "name": "add-default-actions",
2818
+ "type": {
2819
+ "text": "boolean"
2820
+ },
2821
+ "default": "true",
2822
+ "fieldName": "addDefaultActions"
2823
+ },
2824
+ {
2825
+ "name": "auto-close-on-action",
2826
+ "type": {
2827
+ "text": "boolean"
2828
+ },
2829
+ "default": "true",
2830
+ "fieldName": "autoCloseOnAction"
2831
+ },
2832
+ {
2833
+ "name": "name",
2834
+ "type": {
2835
+ "text": "string"
2836
+ },
2837
+ "default": "'Actions'",
2838
+ "fieldName": "name"
2839
+ },
2840
+ {
2841
+ "name": "open",
2842
+ "type": {
2843
+ "text": "boolean"
2844
+ },
2845
+ "default": "false",
2846
+ "fieldName": "open"
2847
+ },
2848
+ {
2849
+ "name": "buttonAppearance",
2850
+ "type": {
2851
+ "text": "string"
2852
+ },
2853
+ "fieldName": "buttonAppearance"
2854
+ },
2855
+ {
2856
+ "name": "hide-disabled",
2857
+ "type": {
2858
+ "text": "boolean"
2859
+ },
2860
+ "default": "false",
2861
+ "fieldName": "hideDisabled"
2862
+ },
2863
+ {
2864
+ "name": "hide-menu-single-option",
2865
+ "type": {
2866
+ "text": "boolean"
2867
+ },
2868
+ "default": "false",
2869
+ "fieldName": "hideMenuSingleOption"
2844
2870
  }
2845
- ]
2846
- },
2847
- {
2848
- "kind": "variable",
2849
- "name": "foundationAccordionShadowOptions",
2850
- "type": {
2851
- "text": "ShadowRootInit"
2852
- },
2853
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2854
- },
2855
- {
2856
- "kind": "variable",
2857
- "name": "defaultAccordionConfig",
2858
- "type": {
2859
- "text": "object"
2871
+ ],
2872
+ "superclass": {
2873
+ "name": "FoundationElement",
2874
+ "package": "@microsoft/fast-foundation"
2860
2875
  },
2861
- "default": "{}"
2876
+ "tagName": "%%prefix%%-actions-menu",
2877
+ "customElement": true
2862
2878
  },
2863
2879
  {
2864
2880
  "kind": "variable",
2865
- "name": "foundationAccordion",
2866
- "description": "The Foundation Accordion",
2881
+ "name": "foundationActionsMenu",
2882
+ "description": "The Foundation Actions Menu",
2867
2883
  "privacy": "public"
2868
2884
  }
2869
2885
  ],
2870
2886
  "exports": [
2871
2887
  {
2872
2888
  "kind": "js",
2873
- "name": "Accordion",
2874
- "declaration": {
2875
- "name": "Accordion",
2876
- "module": "src/accordion/accordion.ts"
2877
- }
2878
- },
2879
- {
2880
- "kind": "js",
2881
- "name": "foundationAccordionShadowOptions",
2882
- "declaration": {
2883
- "name": "foundationAccordionShadowOptions",
2884
- "module": "src/accordion/accordion.ts"
2885
- }
2886
- },
2887
- {
2888
- "kind": "js",
2889
- "name": "defaultAccordionConfig",
2889
+ "name": "ActionsMenu",
2890
2890
  "declaration": {
2891
- "name": "defaultAccordionConfig",
2892
- "module": "src/accordion/accordion.ts"
2891
+ "name": "ActionsMenu",
2892
+ "module": "src/actions-menu/actions-menu.ts"
2893
2893
  }
2894
2894
  },
2895
2895
  {
2896
2896
  "kind": "js",
2897
- "name": "foundationAccordion",
2897
+ "name": "foundationActionsMenu",
2898
2898
  "declaration": {
2899
- "name": "foundationAccordion",
2900
- "module": "src/accordion/accordion.ts"
2899
+ "name": "foundationActionsMenu",
2900
+ "module": "src/actions-menu/actions-menu.ts"
2901
2901
  }
2902
2902
  }
2903
2903
  ]
2904
2904
  },
2905
2905
  {
2906
2906
  "kind": "javascript-module",
2907
- "path": "src/accordion/index.ts",
2907
+ "path": "src/actions-menu/index.ts",
2908
2908
  "declarations": [],
2909
2909
  "exports": [
2910
2910
  {
@@ -2912,7 +2912,7 @@
2912
2912
  "name": "*",
2913
2913
  "declaration": {
2914
2914
  "name": "*",
2915
- "package": "./accordion.template"
2915
+ "package": "./actions-menu.styles"
2916
2916
  }
2917
2917
  },
2918
2918
  {
@@ -2920,7 +2920,7 @@
2920
2920
  "name": "*",
2921
2921
  "declaration": {
2922
2922
  "name": "*",
2923
- "package": "./accordion.styles"
2923
+ "package": "./actions-menu.template"
2924
2924
  }
2925
2925
  },
2926
2926
  {
@@ -2928,7 +2928,7 @@
2928
2928
  "name": "*",
2929
2929
  "declaration": {
2930
2930
  "name": "*",
2931
- "package": "./accordion"
2931
+ "package": "./actions-menu"
2932
2932
  }
2933
2933
  }
2934
2934
  ]