@genesislcap/foundation-ui 15.53.0 → 15.55.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.
@@ -1526,34 +1526,11 @@
1526
1526
  },
1527
1527
  {
1528
1528
  "kind": "javascript-module",
1529
- "path": "src/actions-menu/actions-menu.styles.ts",
1529
+ "path": "src/accordion-item/accordion-item.styles.ts",
1530
1530
  "declarations": [
1531
1531
  {
1532
1532
  "kind": "function",
1533
- "name": "actionsMenuBaseStyles",
1534
- "return": {
1535
- "type": {
1536
- "text": "ElementStyles"
1537
- }
1538
- },
1539
- "parameters": [
1540
- {
1541
- "name": "context",
1542
- "type": {
1543
- "text": "ElementDefinitionContext"
1544
- }
1545
- },
1546
- {
1547
- "name": "definition",
1548
- "type": {
1549
- "text": "FoundationElementDefinition"
1550
- }
1551
- }
1552
- ]
1553
- },
1554
- {
1555
- "kind": "function",
1556
- "name": "foundationActionsMenuStyles",
1533
+ "name": "foundationAccordionItemStyles",
1557
1534
  "return": {
1558
1535
  "type": {
1559
1536
  "text": "ElementStyles"
@@ -1578,346 +1555,221 @@
1578
1555
  "exports": [
1579
1556
  {
1580
1557
  "kind": "js",
1581
- "name": "actionsMenuBaseStyles",
1582
- "declaration": {
1583
- "name": "actionsMenuBaseStyles",
1584
- "module": "src/actions-menu/actions-menu.styles.ts"
1585
- }
1586
- },
1587
- {
1588
- "kind": "js",
1589
- "name": "foundationActionsMenuStyles",
1558
+ "name": "foundationAccordionItemStyles",
1590
1559
  "declaration": {
1591
- "name": "foundationActionsMenuStyles",
1592
- "module": "src/actions-menu/actions-menu.styles.ts"
1560
+ "name": "foundationAccordionItemStyles",
1561
+ "module": "src/accordion-item/accordion-item.styles.ts"
1593
1562
  }
1594
1563
  }
1595
1564
  ]
1596
1565
  },
1597
1566
  {
1598
1567
  "kind": "javascript-module",
1599
- "path": "src/actions-menu/actions-menu.template.ts",
1568
+ "path": "src/accordion-item/accordion-item.template.ts",
1600
1569
  "declarations": [
1601
1570
  {
1602
1571
  "kind": "function",
1603
- "name": "menuTemplate",
1572
+ "name": "foundationAccordionItemTemplate",
1573
+ "return": {
1574
+ "type": {
1575
+ "text": "ViewTemplate<AccordionItem>"
1576
+ }
1577
+ },
1604
1578
  "parameters": [
1605
1579
  {
1606
- "name": "prefix",
1580
+ "name": "context",
1607
1581
  "type": {
1608
- "text": "string"
1582
+ "text": "ElementDefinitionContext"
1609
1583
  }
1610
- }
1611
- ]
1612
- },
1613
- {
1614
- "kind": "function",
1615
- "name": "singleOptionTemplate",
1616
- "parameters": [
1584
+ },
1617
1585
  {
1618
- "name": "prefix",
1586
+ "name": "definition",
1619
1587
  "type": {
1620
- "text": "string"
1588
+ "text": "FoundationElementDefinition"
1621
1589
  }
1622
1590
  }
1623
1591
  ]
1624
- },
1625
- {
1626
- "kind": "variable",
1627
- "name": "foundationActionsMenuTemplate",
1628
- "type": {
1629
- "text": "ViewTemplate<ActionsMenu>"
1630
- },
1631
- "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`"
1632
1592
  }
1633
1593
  ],
1634
1594
  "exports": [
1635
1595
  {
1636
1596
  "kind": "js",
1637
- "name": "menuTemplate",
1638
- "declaration": {
1639
- "name": "menuTemplate",
1640
- "module": "src/actions-menu/actions-menu.template.ts"
1641
- }
1642
- },
1643
- {
1644
- "kind": "js",
1645
- "name": "singleOptionTemplate",
1646
- "declaration": {
1647
- "name": "singleOptionTemplate",
1648
- "module": "src/actions-menu/actions-menu.template.ts"
1649
- }
1650
- },
1651
- {
1652
- "kind": "js",
1653
- "name": "foundationActionsMenuTemplate",
1597
+ "name": "foundationAccordionItemTemplate",
1654
1598
  "declaration": {
1655
- "name": "foundationActionsMenuTemplate",
1656
- "module": "src/actions-menu/actions-menu.template.ts"
1599
+ "name": "foundationAccordionItemTemplate",
1600
+ "module": "src/accordion-item/accordion-item.template.ts"
1657
1601
  }
1658
1602
  }
1659
1603
  ]
1660
1604
  },
1661
1605
  {
1662
1606
  "kind": "javascript-module",
1663
- "path": "src/actions-menu/actions-menu.ts",
1607
+ "path": "src/accordion-item/accordion-item.ts",
1664
1608
  "declarations": [
1665
1609
  {
1666
1610
  "kind": "class",
1667
1611
  "description": "",
1668
- "name": "ActionsMenu",
1669
- "members": [
1612
+ "name": "AccordionItem",
1613
+ "superclass": {
1614
+ "name": "FASTAccordionItem",
1615
+ "package": "@microsoft/fast-components"
1616
+ },
1617
+ "tagName": "%%prefix%%-accordion-item",
1618
+ "customElement": true,
1619
+ "attributes": [
1670
1620
  {
1671
- "kind": "field",
1672
- "name": "actions",
1621
+ "name": "heading-level",
1673
1622
  "type": {
1674
- "text": "ActionMenuItem[]"
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"
1675
1631
  }
1676
1632
  },
1677
1633
  {
1678
- "kind": "field",
1679
- "name": "isVertical",
1680
1634
  "type": {
1681
1635
  "text": "boolean"
1682
1636
  },
1683
- "default": "false"
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
+ }
1684
1644
  },
1685
1645
  {
1686
- "kind": "field",
1687
- "name": "addDefaultActions",
1646
+ "name": "id",
1688
1647
  "type": {
1689
- "text": "boolean"
1648
+ "text": "string"
1690
1649
  },
1691
- "default": "true"
1692
- },
1650
+ "description": "The item ID",
1651
+ "fieldName": "id",
1652
+ "inheritedFrom": {
1653
+ "name": "AccordionItem",
1654
+ "module": "src/accordion-item/accordion-item.ts"
1655
+ }
1656
+ }
1657
+ ],
1658
+ "members": [
1693
1659
  {
1694
1660
  "kind": "field",
1695
- "name": "autoCloseOnAction",
1661
+ "name": "headinglevel",
1696
1662
  "type": {
1697
- "text": "boolean"
1663
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1698
1664
  },
1699
- "default": "true"
1700
- },
1701
- {
1702
- "kind": "field",
1703
- "name": "classNames",
1704
- "type": {
1705
- "text": "string"
1665
+ "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.",
1668
+ "inheritedFrom": {
1669
+ "name": "AccordionItem",
1670
+ "module": "src/accordion-item/accordion-item.ts"
1706
1671
  }
1707
1672
  },
1708
1673
  {
1709
1674
  "kind": "field",
1710
- "name": "definition",
1675
+ "name": "expanded",
1711
1676
  "type": {
1712
- "text": "any"
1677
+ "text": "boolean"
1678
+ },
1679
+ "privacy": "public",
1680
+ "default": "false",
1681
+ "description": "Expands or collapses the item.",
1682
+ "inheritedFrom": {
1683
+ "name": "AccordionItem",
1684
+ "module": "src/accordion-item/accordion-item.ts"
1713
1685
  }
1714
1686
  },
1715
1687
  {
1716
1688
  "kind": "field",
1717
- "name": "name",
1689
+ "name": "id",
1718
1690
  "type": {
1719
1691
  "text": "string"
1720
1692
  },
1721
- "default": "'Actions'"
1722
- },
1723
- {
1724
- "kind": "field",
1725
- "name": "open",
1726
- "type": {
1727
- "text": "boolean"
1728
- },
1729
- "default": "false"
1693
+ "privacy": "public",
1694
+ "description": "The item ID",
1695
+ "inheritedFrom": {
1696
+ "name": "AccordionItem",
1697
+ "module": "src/accordion-item/accordion-item.ts"
1698
+ }
1730
1699
  },
1731
1700
  {
1732
1701
  "kind": "field",
1733
- "name": "buttonAppearance",
1734
- "type": {
1735
- "text": "string"
1702
+ "name": "change",
1703
+ "privacy": "private",
1704
+ "inheritedFrom": {
1705
+ "name": "AccordionItem",
1706
+ "module": "src/accordion-item/accordion-item.ts"
1736
1707
  }
1737
1708
  },
1738
1709
  {
1739
1710
  "kind": "field",
1740
- "name": "hideDisabled",
1711
+ "name": "_presentation",
1741
1712
  "type": {
1742
- "text": "boolean"
1713
+ "text": "ComponentPresentation | null | undefined"
1743
1714
  },
1744
- "default": "false"
1715
+ "privacy": "private",
1716
+ "default": "void 0",
1717
+ "inheritedFrom": {
1718
+ "name": "FoundationElement",
1719
+ "module": "src/foundation-element/foundation-element.ts"
1720
+ }
1745
1721
  },
1746
1722
  {
1747
1723
  "kind": "field",
1748
- "name": "hideMenuSingleOption",
1724
+ "name": "$presentation",
1749
1725
  "type": {
1750
- "text": "boolean"
1726
+ "text": "ComponentPresentation | null"
1751
1727
  },
1752
- "default": "false"
1728
+ "privacy": "public",
1729
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1730
+ "inheritedFrom": {
1731
+ "name": "FoundationElement",
1732
+ "module": "src/foundation-element/foundation-element.ts"
1733
+ }
1753
1734
  },
1754
1735
  {
1755
1736
  "kind": "field",
1756
- "name": "singleOption",
1737
+ "name": "template",
1757
1738
  "type": {
1758
- "text": "ActionMenuItem"
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.",
1743
+ "inheritedFrom": {
1744
+ "name": "FoundationElement",
1745
+ "module": "src/foundation-element/foundation-element.ts"
1759
1746
  }
1760
1747
  },
1761
1748
  {
1762
- "kind": "field",
1763
- "name": "actionsMenu",
1764
- "type": {
1765
- "text": "HTMLElement"
1749
+ "kind": "method",
1750
+ "name": "templateChanged",
1751
+ "privacy": "protected",
1752
+ "return": {
1753
+ "type": {
1754
+ "text": "void"
1755
+ }
1756
+ },
1757
+ "inheritedFrom": {
1758
+ "name": "FoundationElement",
1759
+ "module": "src/foundation-element/foundation-element.ts"
1766
1760
  }
1767
1761
  },
1768
1762
  {
1769
1763
  "kind": "field",
1770
- "name": "actionsOpener",
1764
+ "name": "styles",
1771
1765
  "type": {
1772
- "text": "HTMLElement"
1773
- }
1774
- },
1775
- {
1776
- "kind": "method",
1777
- "name": "updateMenuPosition",
1778
- "privacy": "private"
1779
- },
1780
- {
1781
- "kind": "method",
1782
- "name": "definitionChanged",
1783
- "privacy": "protected",
1784
- "parameters": [
1785
- {
1786
- "name": "oldValue",
1787
- "type": {
1788
- "text": "any"
1789
- }
1790
- },
1791
- {
1792
- "name": "newValue",
1793
- "type": {
1794
- "text": "any"
1795
- }
1796
- }
1797
- ]
1798
- },
1799
- {
1800
- "kind": "method",
1801
- "name": "openChanged",
1802
- "privacy": "protected"
1803
- },
1804
- {
1805
- "kind": "method",
1806
- "name": "toggleActionsMenuVisibility"
1807
- },
1808
- {
1809
- "kind": "method",
1810
- "name": "onActionMenuItemClick",
1811
- "parameters": [
1812
- {
1813
- "name": "callback",
1814
- "type": {
1815
- "text": "(rowData) => void | any"
1816
- }
1817
- }
1818
- ]
1819
- },
1820
- {
1821
- "kind": "field",
1822
- "name": "allActions",
1823
- "type": {
1824
- "text": "ActionMenuItem[]"
1825
- },
1826
- "readonly": true
1827
- },
1828
- {
1829
- "kind": "field",
1830
- "name": "rowData",
1831
- "readonly": true
1832
- },
1833
- {
1834
- "kind": "method",
1835
- "name": "getLabel",
1836
- "parameters": [
1837
- {
1838
- "name": "name",
1839
- "type": {
1840
- "text": "string | ((rowData: any) => string)"
1841
- }
1842
- }
1843
- ]
1844
- },
1845
- {
1846
- "kind": "method",
1847
- "name": "getTemplate",
1848
- "parameters": [
1849
- {
1850
- "name": "prefix",
1851
- "type": {
1852
- "text": "string"
1853
- }
1854
- }
1855
- ]
1856
- },
1857
- {
1858
- "kind": "field",
1859
- "name": "_presentation",
1860
- "type": {
1861
- "text": "ComponentPresentation | null | undefined"
1862
- },
1863
- "privacy": "private",
1864
- "default": "void 0",
1865
- "inheritedFrom": {
1866
- "name": "FoundationElement",
1867
- "module": "src/foundation-element/foundation-element.ts"
1868
- }
1869
- },
1870
- {
1871
- "kind": "field",
1872
- "name": "$presentation",
1873
- "type": {
1874
- "text": "ComponentPresentation | null"
1875
- },
1876
- "privacy": "public",
1877
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1878
- "inheritedFrom": {
1879
- "name": "FoundationElement",
1880
- "module": "src/foundation-element/foundation-element.ts"
1881
- }
1882
- },
1883
- {
1884
- "kind": "field",
1885
- "name": "template",
1886
- "type": {
1887
- "text": "ElementViewTemplate | void | null"
1888
- },
1889
- "privacy": "public",
1890
- "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.",
1891
- "inheritedFrom": {
1892
- "name": "FoundationElement",
1893
- "module": "src/foundation-element/foundation-element.ts"
1894
- }
1895
- },
1896
- {
1897
- "kind": "method",
1898
- "name": "templateChanged",
1899
- "privacy": "protected",
1900
- "return": {
1901
- "type": {
1902
- "text": "void"
1903
- }
1904
- },
1905
- "inheritedFrom": {
1906
- "name": "FoundationElement",
1907
- "module": "src/foundation-element/foundation-element.ts"
1908
- }
1909
- },
1910
- {
1911
- "kind": "field",
1912
- "name": "styles",
1913
- "type": {
1914
- "text": "ElementStyles | void | null"
1915
- },
1916
- "privacy": "public",
1917
- "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.",
1918
- "inheritedFrom": {
1919
- "name": "FoundationElement",
1920
- "module": "src/foundation-element/foundation-element.ts"
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.",
1770
+ "inheritedFrom": {
1771
+ "name": "FoundationElement",
1772
+ "module": "src/foundation-element/foundation-element.ts"
1921
1773
  }
1922
1774
  },
1923
1775
  {
@@ -1966,107 +1818,78 @@
1966
1818
  }
1967
1819
  }
1968
1820
  ],
1969
- "attributes": [
1970
- {
1971
- "name": "is-vertical",
1972
- "type": {
1973
- "text": "boolean"
1974
- },
1975
- "default": "false",
1976
- "fieldName": "isVertical"
1977
- },
1978
- {
1979
- "name": "add-default-actions",
1980
- "type": {
1981
- "text": "boolean"
1982
- },
1983
- "default": "true",
1984
- "fieldName": "addDefaultActions"
1985
- },
1986
- {
1987
- "name": "auto-close-on-action",
1988
- "type": {
1989
- "text": "boolean"
1990
- },
1991
- "default": "true",
1992
- "fieldName": "autoCloseOnAction"
1993
- },
1994
- {
1995
- "name": "name",
1996
- "type": {
1997
- "text": "string"
1998
- },
1999
- "default": "'Actions'",
2000
- "fieldName": "name"
2001
- },
2002
- {
2003
- "name": "open",
2004
- "type": {
2005
- "text": "boolean"
2006
- },
2007
- "default": "false",
2008
- "fieldName": "open"
2009
- },
2010
- {
2011
- "name": "buttonAppearance",
2012
- "type": {
2013
- "text": "string"
2014
- },
2015
- "fieldName": "buttonAppearance"
2016
- },
2017
- {
2018
- "name": "hide-disabled",
2019
- "type": {
2020
- "text": "boolean"
2021
- },
2022
- "default": "false",
2023
- "fieldName": "hideDisabled"
2024
- },
1821
+ "events": [
2025
1822
  {
2026
- "name": "hide-menu-single-option",
2027
- "type": {
2028
- "text": "boolean"
2029
- },
2030
- "default": "false",
2031
- "fieldName": "hideMenuSingleOption"
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"
1828
+ }
2032
1829
  }
2033
- ],
2034
- "superclass": {
2035
- "name": "FoundationElement",
2036
- "package": "@microsoft/fast-foundation"
1830
+ ]
1831
+ },
1832
+ {
1833
+ "kind": "variable",
1834
+ "name": "foundationAccordionItemShadowOptions",
1835
+ "type": {
1836
+ "text": "ShadowRootInit"
2037
1837
  },
2038
- "tagName": "%%prefix%%-actions-menu",
2039
- "customElement": true
1838
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2040
1839
  },
2041
1840
  {
2042
1841
  "kind": "variable",
2043
- "name": "foundationActionsMenu",
2044
- "description": "The Foundation Actions Menu",
1842
+ "name": "defaultAccordionItemConfig",
1843
+ "type": {
1844
+ "text": "object"
1845
+ },
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}"
1847
+ },
1848
+ {
1849
+ "kind": "variable",
1850
+ "name": "foundationAccordionItem",
1851
+ "description": "The Foundation Accordion Item",
2045
1852
  "privacy": "public"
2046
1853
  }
2047
1854
  ],
2048
1855
  "exports": [
2049
1856
  {
2050
1857
  "kind": "js",
2051
- "name": "ActionsMenu",
1858
+ "name": "AccordionItem",
2052
1859
  "declaration": {
2053
- "name": "ActionsMenu",
2054
- "module": "src/actions-menu/actions-menu.ts"
1860
+ "name": "AccordionItem",
1861
+ "module": "src/accordion-item/accordion-item.ts"
2055
1862
  }
2056
1863
  },
2057
1864
  {
2058
1865
  "kind": "js",
2059
- "name": "foundationActionsMenu",
1866
+ "name": "foundationAccordionItemShadowOptions",
2060
1867
  "declaration": {
2061
- "name": "foundationActionsMenu",
2062
- "module": "src/actions-menu/actions-menu.ts"
1868
+ "name": "foundationAccordionItemShadowOptions",
1869
+ "module": "src/accordion-item/accordion-item.ts"
1870
+ }
1871
+ },
1872
+ {
1873
+ "kind": "js",
1874
+ "name": "defaultAccordionItemConfig",
1875
+ "declaration": {
1876
+ "name": "defaultAccordionItemConfig",
1877
+ "module": "src/accordion-item/accordion-item.ts"
1878
+ }
1879
+ },
1880
+ {
1881
+ "kind": "js",
1882
+ "name": "foundationAccordionItem",
1883
+ "declaration": {
1884
+ "name": "foundationAccordionItem",
1885
+ "module": "src/accordion-item/accordion-item.ts"
2063
1886
  }
2064
1887
  }
2065
1888
  ]
2066
1889
  },
2067
1890
  {
2068
1891
  "kind": "javascript-module",
2069
- "path": "src/actions-menu/index.ts",
1892
+ "path": "src/accordion-item/index.ts",
2070
1893
  "declarations": [],
2071
1894
  "exports": [
2072
1895
  {
@@ -2074,7 +1897,7 @@
2074
1897
  "name": "*",
2075
1898
  "declaration": {
2076
1899
  "name": "*",
2077
- "package": "./actions-menu.styles"
1900
+ "package": "./accordion-item.template"
2078
1901
  }
2079
1902
  },
2080
1903
  {
@@ -2082,7 +1905,7 @@
2082
1905
  "name": "*",
2083
1906
  "declaration": {
2084
1907
  "name": "*",
2085
- "package": "./actions-menu.template"
1908
+ "package": "./accordion-item.styles"
2086
1909
  }
2087
1910
  },
2088
1911
  {
@@ -2090,18 +1913,41 @@
2090
1913
  "name": "*",
2091
1914
  "declaration": {
2092
1915
  "name": "*",
2093
- "package": "./actions-menu"
1916
+ "package": "./accordion-item"
2094
1917
  }
2095
1918
  }
2096
1919
  ]
2097
1920
  },
2098
1921
  {
2099
1922
  "kind": "javascript-module",
2100
- "path": "src/accordion-item/accordion-item.styles.ts",
1923
+ "path": "src/actions-menu/actions-menu.styles.ts",
2101
1924
  "declarations": [
2102
1925
  {
2103
1926
  "kind": "function",
2104
- "name": "foundationAccordionItemStyles",
1927
+ "name": "actionsMenuBaseStyles",
1928
+ "return": {
1929
+ "type": {
1930
+ "text": "ElementStyles"
1931
+ }
1932
+ },
1933
+ "parameters": [
1934
+ {
1935
+ "name": "context",
1936
+ "type": {
1937
+ "text": "ElementDefinitionContext"
1938
+ }
1939
+ },
1940
+ {
1941
+ "name": "definition",
1942
+ "type": {
1943
+ "text": "FoundationElementDefinition"
1944
+ }
1945
+ }
1946
+ ]
1947
+ },
1948
+ {
1949
+ "kind": "function",
1950
+ "name": "foundationActionsMenuStyles",
2105
1951
  "return": {
2106
1952
  "type": {
2107
1953
  "text": "ElementStyles"
@@ -2126,156 +1972,281 @@
2126
1972
  "exports": [
2127
1973
  {
2128
1974
  "kind": "js",
2129
- "name": "foundationAccordionItemStyles",
1975
+ "name": "actionsMenuBaseStyles",
2130
1976
  "declaration": {
2131
- "name": "foundationAccordionItemStyles",
2132
- "module": "src/accordion-item/accordion-item.styles.ts"
1977
+ "name": "actionsMenuBaseStyles",
1978
+ "module": "src/actions-menu/actions-menu.styles.ts"
1979
+ }
1980
+ },
1981
+ {
1982
+ "kind": "js",
1983
+ "name": "foundationActionsMenuStyles",
1984
+ "declaration": {
1985
+ "name": "foundationActionsMenuStyles",
1986
+ "module": "src/actions-menu/actions-menu.styles.ts"
2133
1987
  }
2134
1988
  }
2135
1989
  ]
2136
1990
  },
2137
1991
  {
2138
1992
  "kind": "javascript-module",
2139
- "path": "src/accordion-item/accordion-item.template.ts",
1993
+ "path": "src/actions-menu/actions-menu.template.ts",
2140
1994
  "declarations": [
2141
1995
  {
2142
1996
  "kind": "function",
2143
- "name": "foundationAccordionItemTemplate",
2144
- "return": {
2145
- "type": {
2146
- "text": "ViewTemplate<AccordionItem>"
2147
- }
2148
- },
1997
+ "name": "menuTemplate",
2149
1998
  "parameters": [
2150
1999
  {
2151
- "name": "context",
2000
+ "name": "prefix",
2152
2001
  "type": {
2153
- "text": "ElementDefinitionContext"
2002
+ "text": "string"
2154
2003
  }
2155
- },
2004
+ }
2005
+ ]
2006
+ },
2007
+ {
2008
+ "kind": "function",
2009
+ "name": "singleOptionTemplate",
2010
+ "parameters": [
2156
2011
  {
2157
- "name": "definition",
2012
+ "name": "prefix",
2158
2013
  "type": {
2159
- "text": "FoundationElementDefinition"
2014
+ "text": "string"
2160
2015
  }
2161
2016
  }
2162
2017
  ]
2018
+ },
2019
+ {
2020
+ "kind": "variable",
2021
+ "name": "foundationActionsMenuTemplate",
2022
+ "type": {
2023
+ "text": "ViewTemplate<ActionsMenu>"
2024
+ },
2025
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2163
2026
  }
2164
2027
  ],
2165
2028
  "exports": [
2166
2029
  {
2167
2030
  "kind": "js",
2168
- "name": "foundationAccordionItemTemplate",
2031
+ "name": "menuTemplate",
2169
2032
  "declaration": {
2170
- "name": "foundationAccordionItemTemplate",
2171
- "module": "src/accordion-item/accordion-item.template.ts"
2033
+ "name": "menuTemplate",
2034
+ "module": "src/actions-menu/actions-menu.template.ts"
2035
+ }
2036
+ },
2037
+ {
2038
+ "kind": "js",
2039
+ "name": "singleOptionTemplate",
2040
+ "declaration": {
2041
+ "name": "singleOptionTemplate",
2042
+ "module": "src/actions-menu/actions-menu.template.ts"
2043
+ }
2044
+ },
2045
+ {
2046
+ "kind": "js",
2047
+ "name": "foundationActionsMenuTemplate",
2048
+ "declaration": {
2049
+ "name": "foundationActionsMenuTemplate",
2050
+ "module": "src/actions-menu/actions-menu.template.ts"
2172
2051
  }
2173
2052
  }
2174
2053
  ]
2175
2054
  },
2176
2055
  {
2177
2056
  "kind": "javascript-module",
2178
- "path": "src/accordion-item/accordion-item.ts",
2057
+ "path": "src/actions-menu/actions-menu.ts",
2179
2058
  "declarations": [
2180
2059
  {
2181
2060
  "kind": "class",
2182
2061
  "description": "",
2183
- "name": "AccordionItem",
2184
- "superclass": {
2185
- "name": "FASTAccordionItem",
2186
- "package": "@microsoft/fast-components"
2187
- },
2188
- "tagName": "%%prefix%%-accordion-item",
2189
- "customElement": true,
2190
- "attributes": [
2062
+ "name": "ActionsMenu",
2063
+ "members": [
2191
2064
  {
2192
- "name": "heading-level",
2065
+ "kind": "field",
2066
+ "name": "actions",
2193
2067
  "type": {
2194
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2068
+ "text": "ActionMenuItem[]"
2069
+ }
2070
+ },
2071
+ {
2072
+ "kind": "field",
2073
+ "name": "isVertical",
2074
+ "type": {
2075
+ "text": "boolean"
2195
2076
  },
2196
- "default": "2",
2197
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2198
- "fieldName": "headinglevel",
2199
- "inheritedFrom": {
2200
- "name": "AccordionItem",
2201
- "module": "src/accordion-item/accordion-item.ts"
2077
+ "default": "false"
2078
+ },
2079
+ {
2080
+ "kind": "field",
2081
+ "name": "addDefaultActions",
2082
+ "type": {
2083
+ "text": "boolean"
2084
+ },
2085
+ "default": "true"
2086
+ },
2087
+ {
2088
+ "kind": "field",
2089
+ "name": "autoCloseOnAction",
2090
+ "type": {
2091
+ "text": "boolean"
2092
+ },
2093
+ "default": "true"
2094
+ },
2095
+ {
2096
+ "kind": "field",
2097
+ "name": "classNames",
2098
+ "type": {
2099
+ "text": "string"
2100
+ }
2101
+ },
2102
+ {
2103
+ "kind": "field",
2104
+ "name": "definition",
2105
+ "type": {
2106
+ "text": "any"
2107
+ }
2108
+ },
2109
+ {
2110
+ "kind": "field",
2111
+ "name": "name",
2112
+ "type": {
2113
+ "text": "string"
2114
+ },
2115
+ "default": "'Actions'"
2116
+ },
2117
+ {
2118
+ "kind": "field",
2119
+ "name": "open",
2120
+ "type": {
2121
+ "text": "boolean"
2122
+ },
2123
+ "default": "false"
2124
+ },
2125
+ {
2126
+ "kind": "field",
2127
+ "name": "buttonAppearance",
2128
+ "type": {
2129
+ "text": "string"
2202
2130
  }
2203
2131
  },
2204
2132
  {
2133
+ "kind": "field",
2134
+ "name": "hideDisabled",
2205
2135
  "type": {
2206
2136
  "text": "boolean"
2207
2137
  },
2208
- "default": "false",
2209
- "description": "Expands or collapses the item.",
2210
- "fieldName": "expanded",
2211
- "inheritedFrom": {
2212
- "name": "AccordionItem",
2213
- "module": "src/accordion-item/accordion-item.ts"
2138
+ "default": "false"
2139
+ },
2140
+ {
2141
+ "kind": "field",
2142
+ "name": "hideMenuSingleOption",
2143
+ "type": {
2144
+ "text": "boolean"
2145
+ },
2146
+ "default": "false"
2147
+ },
2148
+ {
2149
+ "kind": "field",
2150
+ "name": "singleOption",
2151
+ "type": {
2152
+ "text": "ActionMenuItem"
2153
+ }
2154
+ },
2155
+ {
2156
+ "kind": "field",
2157
+ "name": "actionsMenu",
2158
+ "type": {
2159
+ "text": "HTMLElement"
2160
+ }
2161
+ },
2162
+ {
2163
+ "kind": "field",
2164
+ "name": "actionsOpener",
2165
+ "type": {
2166
+ "text": "HTMLElement"
2214
2167
  }
2215
2168
  },
2216
- {
2217
- "name": "id",
2218
- "type": {
2219
- "text": "string"
2220
- },
2221
- "description": "The item ID",
2222
- "fieldName": "id",
2223
- "inheritedFrom": {
2224
- "name": "AccordionItem",
2225
- "module": "src/accordion-item/accordion-item.ts"
2226
- }
2227
- }
2228
- ],
2229
- "members": [
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
+ },
2230
2214
  {
2231
2215
  "kind": "field",
2232
- "name": "headinglevel",
2216
+ "name": "allActions",
2233
2217
  "type": {
2234
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2218
+ "text": "ActionMenuItem[]"
2235
2219
  },
2236
- "privacy": "public",
2237
- "default": "2",
2238
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2239
- "inheritedFrom": {
2240
- "name": "AccordionItem",
2241
- "module": "src/accordion-item/accordion-item.ts"
2242
- }
2220
+ "readonly": true
2243
2221
  },
2244
2222
  {
2245
2223
  "kind": "field",
2246
- "name": "expanded",
2247
- "type": {
2248
- "text": "boolean"
2249
- },
2250
- "privacy": "public",
2251
- "default": "false",
2252
- "description": "Expands or collapses the item.",
2253
- "inheritedFrom": {
2254
- "name": "AccordionItem",
2255
- "module": "src/accordion-item/accordion-item.ts"
2256
- }
2224
+ "name": "rowData",
2225
+ "readonly": true
2257
2226
  },
2258
2227
  {
2259
- "kind": "field",
2260
- "name": "id",
2261
- "type": {
2262
- "text": "string"
2263
- },
2264
- "privacy": "public",
2265
- "description": "The item ID",
2266
- "inheritedFrom": {
2267
- "name": "AccordionItem",
2268
- "module": "src/accordion-item/accordion-item.ts"
2269
- }
2228
+ "kind": "method",
2229
+ "name": "getLabel",
2230
+ "parameters": [
2231
+ {
2232
+ "name": "name",
2233
+ "type": {
2234
+ "text": "string | ((rowData: any) => string)"
2235
+ }
2236
+ }
2237
+ ]
2270
2238
  },
2271
2239
  {
2272
- "kind": "field",
2273
- "name": "change",
2274
- "privacy": "private",
2275
- "inheritedFrom": {
2276
- "name": "AccordionItem",
2277
- "module": "src/accordion-item/accordion-item.ts"
2278
- }
2240
+ "kind": "method",
2241
+ "name": "getTemplate",
2242
+ "parameters": [
2243
+ {
2244
+ "name": "prefix",
2245
+ "type": {
2246
+ "text": "string"
2247
+ }
2248
+ }
2249
+ ]
2279
2250
  },
2280
2251
  {
2281
2252
  "kind": "field",
@@ -2389,78 +2360,107 @@
2389
2360
  }
2390
2361
  }
2391
2362
  ],
2392
- "events": [
2363
+ "attributes": [
2393
2364
  {
2394
- "description": "Fires a custom 'change' event when the button is invoked",
2395
- "name": "change",
2396
- "inheritedFrom": {
2397
- "name": "AccordionItem",
2398
- "module": "src/accordion-item/accordion-item.ts"
2399
- }
2365
+ "name": "is-vertical",
2366
+ "type": {
2367
+ "text": "boolean"
2368
+ },
2369
+ "default": "false",
2370
+ "fieldName": "isVertical"
2371
+ },
2372
+ {
2373
+ "name": "add-default-actions",
2374
+ "type": {
2375
+ "text": "boolean"
2376
+ },
2377
+ "default": "true",
2378
+ "fieldName": "addDefaultActions"
2379
+ },
2380
+ {
2381
+ "name": "auto-close-on-action",
2382
+ "type": {
2383
+ "text": "boolean"
2384
+ },
2385
+ "default": "true",
2386
+ "fieldName": "autoCloseOnAction"
2387
+ },
2388
+ {
2389
+ "name": "name",
2390
+ "type": {
2391
+ "text": "string"
2392
+ },
2393
+ "default": "'Actions'",
2394
+ "fieldName": "name"
2395
+ },
2396
+ {
2397
+ "name": "open",
2398
+ "type": {
2399
+ "text": "boolean"
2400
+ },
2401
+ "default": "false",
2402
+ "fieldName": "open"
2403
+ },
2404
+ {
2405
+ "name": "buttonAppearance",
2406
+ "type": {
2407
+ "text": "string"
2408
+ },
2409
+ "fieldName": "buttonAppearance"
2410
+ },
2411
+ {
2412
+ "name": "hide-disabled",
2413
+ "type": {
2414
+ "text": "boolean"
2415
+ },
2416
+ "default": "false",
2417
+ "fieldName": "hideDisabled"
2418
+ },
2419
+ {
2420
+ "name": "hide-menu-single-option",
2421
+ "type": {
2422
+ "text": "boolean"
2423
+ },
2424
+ "default": "false",
2425
+ "fieldName": "hideMenuSingleOption"
2400
2426
  }
2401
- ]
2402
- },
2403
- {
2404
- "kind": "variable",
2405
- "name": "foundationAccordionItemShadowOptions",
2406
- "type": {
2407
- "text": "ShadowRootInit"
2408
- },
2409
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2410
- },
2411
- {
2412
- "kind": "variable",
2413
- "name": "defaultAccordionItemConfig",
2414
- "type": {
2415
- "text": "object"
2427
+ ],
2428
+ "superclass": {
2429
+ "name": "FoundationElement",
2430
+ "package": "@microsoft/fast-foundation"
2416
2431
  },
2417
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2432
+ "tagName": "%%prefix%%-actions-menu",
2433
+ "customElement": true
2418
2434
  },
2419
2435
  {
2420
2436
  "kind": "variable",
2421
- "name": "foundationAccordionItem",
2422
- "description": "The Foundation Accordion Item",
2437
+ "name": "foundationActionsMenu",
2438
+ "description": "The Foundation Actions Menu",
2423
2439
  "privacy": "public"
2424
2440
  }
2425
2441
  ],
2426
2442
  "exports": [
2427
2443
  {
2428
2444
  "kind": "js",
2429
- "name": "AccordionItem",
2430
- "declaration": {
2431
- "name": "AccordionItem",
2432
- "module": "src/accordion-item/accordion-item.ts"
2433
- }
2434
- },
2435
- {
2436
- "kind": "js",
2437
- "name": "foundationAccordionItemShadowOptions",
2438
- "declaration": {
2439
- "name": "foundationAccordionItemShadowOptions",
2440
- "module": "src/accordion-item/accordion-item.ts"
2441
- }
2442
- },
2443
- {
2444
- "kind": "js",
2445
- "name": "defaultAccordionItemConfig",
2445
+ "name": "ActionsMenu",
2446
2446
  "declaration": {
2447
- "name": "defaultAccordionItemConfig",
2448
- "module": "src/accordion-item/accordion-item.ts"
2447
+ "name": "ActionsMenu",
2448
+ "module": "src/actions-menu/actions-menu.ts"
2449
2449
  }
2450
2450
  },
2451
2451
  {
2452
2452
  "kind": "js",
2453
- "name": "foundationAccordionItem",
2453
+ "name": "foundationActionsMenu",
2454
2454
  "declaration": {
2455
- "name": "foundationAccordionItem",
2456
- "module": "src/accordion-item/accordion-item.ts"
2455
+ "name": "foundationActionsMenu",
2456
+ "module": "src/actions-menu/actions-menu.ts"
2457
2457
  }
2458
2458
  }
2459
2459
  ]
2460
2460
  },
2461
2461
  {
2462
2462
  "kind": "javascript-module",
2463
- "path": "src/accordion-item/index.ts",
2463
+ "path": "src/actions-menu/index.ts",
2464
2464
  "declarations": [],
2465
2465
  "exports": [
2466
2466
  {
@@ -2468,7 +2468,7 @@
2468
2468
  "name": "*",
2469
2469
  "declaration": {
2470
2470
  "name": "*",
2471
- "package": "./accordion-item.template"
2471
+ "package": "./actions-menu.styles"
2472
2472
  }
2473
2473
  },
2474
2474
  {
@@ -2476,7 +2476,7 @@
2476
2476
  "name": "*",
2477
2477
  "declaration": {
2478
2478
  "name": "*",
2479
- "package": "./accordion-item.styles"
2479
+ "package": "./actions-menu.template"
2480
2480
  }
2481
2481
  },
2482
2482
  {
@@ -2484,215 +2484,282 @@
2484
2484
  "name": "*",
2485
2485
  "declaration": {
2486
2486
  "name": "*",
2487
- "package": "./accordion-item"
2487
+ "package": "./actions-menu"
2488
2488
  }
2489
2489
  }
2490
2490
  ]
2491
2491
  },
2492
2492
  {
2493
2493
  "kind": "javascript-module",
2494
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2494
+ "path": "src/accordion/accordion.styles.ts",
2495
2495
  "declarations": [
2496
2496
  {
2497
- "kind": "variable",
2498
- "name": "foundationAiCriteriaSearchStyles",
2499
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2497
+ "kind": "function",
2498
+ "name": "foundationAccordionStyles",
2499
+ "return": {
2500
+ "type": {
2501
+ "text": "ElementStyles"
2502
+ }
2503
+ },
2504
+ "parameters": [
2505
+ {
2506
+ "name": "context",
2507
+ "type": {
2508
+ "text": "ElementDefinitionContext"
2509
+ }
2510
+ },
2511
+ {
2512
+ "name": "definition",
2513
+ "type": {
2514
+ "text": "FoundationElementDefinition"
2515
+ }
2516
+ }
2517
+ ]
2500
2518
  }
2501
2519
  ],
2502
2520
  "exports": [
2503
2521
  {
2504
2522
  "kind": "js",
2505
- "name": "foundationAiCriteriaSearchStyles",
2523
+ "name": "foundationAccordionStyles",
2506
2524
  "declaration": {
2507
- "name": "foundationAiCriteriaSearchStyles",
2508
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2525
+ "name": "foundationAccordionStyles",
2526
+ "module": "src/accordion/accordion.styles.ts"
2509
2527
  }
2510
2528
  }
2511
2529
  ]
2512
2530
  },
2513
2531
  {
2514
2532
  "kind": "javascript-module",
2515
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2533
+ "path": "src/accordion/accordion.template.ts",
2516
2534
  "declarations": [
2517
2535
  {
2518
- "kind": "variable",
2519
- "name": "foundationAiCriteriaSearchTemplate",
2520
- "type": {
2521
- "text": "ViewTemplate<AiCriteriaSearch>"
2536
+ "kind": "function",
2537
+ "name": "foundationAccordionTemplate",
2538
+ "return": {
2539
+ "type": {
2540
+ "text": "ViewTemplate<Accordion>"
2541
+ }
2522
2542
  },
2523
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2543
+ "parameters": [
2544
+ {
2545
+ "name": "context",
2546
+ "type": {
2547
+ "text": "ElementDefinitionContext"
2548
+ }
2549
+ },
2550
+ {
2551
+ "name": "definition",
2552
+ "type": {
2553
+ "text": "FoundationElementDefinition"
2554
+ }
2555
+ }
2556
+ ]
2524
2557
  }
2525
2558
  ],
2526
2559
  "exports": [
2527
2560
  {
2528
2561
  "kind": "js",
2529
- "name": "foundationAiCriteriaSearchTemplate",
2562
+ "name": "foundationAccordionTemplate",
2530
2563
  "declaration": {
2531
- "name": "foundationAiCriteriaSearchTemplate",
2532
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2564
+ "name": "foundationAccordionTemplate",
2565
+ "module": "src/accordion/accordion.template.ts"
2533
2566
  }
2534
2567
  }
2535
2568
  ]
2536
2569
  },
2537
2570
  {
2538
2571
  "kind": "javascript-module",
2539
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2572
+ "path": "src/accordion/accordion.ts",
2540
2573
  "declarations": [
2541
2574
  {
2542
2575
  "kind": "class",
2543
- "description": "Natural-language criteria search input with AI interpretation.",
2544
- "name": "AiCriteriaSearch",
2545
- "members": [
2546
- {
2547
- "kind": "field",
2548
- "name": "providerRegistry",
2549
- "type": {
2550
- "text": "AIProviderRegistry"
2551
- }
2552
- },
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": [
2553
2585
  {
2554
- "kind": "field",
2555
- "name": "placeholder",
2586
+ "name": "expand-mode",
2556
2587
  "type": {
2557
- "text": "string"
2588
+ "text": "AccordionExpandMode"
2558
2589
  },
2559
- "default": "'Describe your search criteria in natural language...'"
2560
- },
2561
- {
2562
- "kind": "field",
2563
- "name": "disabled",
2564
- "type": {
2565
- "text": "boolean"
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"
2566
2595
  }
2567
- },
2568
- {
2569
- "kind": "field",
2570
- "name": "inputValue",
2571
- "type": {
2572
- "text": "string"
2573
- },
2574
- "default": "''"
2575
- },
2596
+ }
2597
+ ],
2598
+ "members": [
2576
2599
  {
2577
2600
  "kind": "field",
2578
- "name": "isInterpreting",
2601
+ "name": "expandmode",
2579
2602
  "type": {
2580
- "text": "boolean"
2603
+ "text": "AccordionExpandMode"
2581
2604
  },
2582
- "default": "false"
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
+ }
2583
2611
  },
2584
2612
  {
2585
2613
  "kind": "field",
2586
- "name": "lastValidCriteria",
2614
+ "name": "activeid",
2587
2615
  "type": {
2588
2616
  "text": "string | null"
2589
2617
  },
2590
- "default": "null"
2591
- },
2592
- {
2593
- "kind": "field",
2594
- "name": "activeGroups",
2595
- "type": {
2596
- "text": "CriteriaGroup[]"
2597
- },
2598
- "default": "[]"
2618
+ "privacy": "private",
2619
+ "inheritedFrom": {
2620
+ "name": "Accordion",
2621
+ "module": "src/accordion/accordion.ts"
2622
+ }
2599
2623
  },
2600
2624
  {
2601
2625
  "kind": "field",
2602
- "name": "showingChips",
2626
+ "name": "activeItemIndex",
2603
2627
  "type": {
2604
- "text": "boolean"
2628
+ "text": "number"
2605
2629
  },
2606
- "default": "false"
2630
+ "privacy": "private",
2631
+ "default": "0",
2632
+ "inheritedFrom": {
2633
+ "name": "Accordion",
2634
+ "module": "src/accordion/accordion.ts"
2635
+ }
2607
2636
  },
2608
2637
  {
2609
2638
  "kind": "field",
2610
- "name": "fieldMetadata",
2639
+ "name": "accordionIds",
2611
2640
  "type": {
2612
- "text": "MetadataDetail[] | string[]"
2641
+ "text": "Array<string | null>"
2613
2642
  },
2614
- "default": "[]"
2643
+ "privacy": "private",
2644
+ "inheritedFrom": {
2645
+ "name": "Accordion",
2646
+ "module": "src/accordion/accordion.ts"
2647
+ }
2615
2648
  },
2616
2649
  {
2617
2650
  "kind": "field",
2618
- "name": "isRecording",
2619
- "type": {
2620
- "text": "boolean"
2621
- },
2622
- "default": "false"
2651
+ "name": "change",
2652
+ "privacy": "private",
2653
+ "inheritedFrom": {
2654
+ "name": "Accordion",
2655
+ "module": "src/accordion/accordion.ts"
2656
+ }
2623
2657
  },
2624
2658
  {
2625
- "kind": "field",
2626
- "name": "textAreaRef",
2627
- "type": {
2628
- "text": "HTMLTextAreaElement"
2659
+ "kind": "method",
2660
+ "name": "findExpandedItem",
2661
+ "privacy": "private",
2662
+ "return": {
2663
+ "type": {
2664
+ "text": "AccordionItem | null"
2665
+ }
2629
2666
  },
2630
- "privacy": "public"
2667
+ "inheritedFrom": {
2668
+ "name": "Accordion",
2669
+ "module": "src/accordion/accordion.ts"
2670
+ }
2631
2671
  },
2632
2672
  {
2633
2673
  "kind": "field",
2634
- "name": "stopRecording",
2635
- "type": {
2636
- "text": "(() => void) | null"
2637
- },
2674
+ "name": "setItems",
2638
2675
  "privacy": "private",
2639
- "default": "null"
2676
+ "inheritedFrom": {
2677
+ "name": "Accordion",
2678
+ "module": "src/accordion/accordion.ts"
2679
+ }
2640
2680
  },
2641
2681
  {
2642
- "kind": "field",
2643
- "name": "speechApplyDebounceTimer",
2644
- "type": {
2645
- "text": "ReturnType<typeof setTimeout> | null"
2646
- },
2682
+ "kind": "method",
2683
+ "name": "resetItems",
2647
2684
  "privacy": "private",
2648
- "default": "null"
2685
+ "return": {
2686
+ "type": {
2687
+ "text": "void"
2688
+ }
2689
+ },
2690
+ "inheritedFrom": {
2691
+ "name": "Accordion",
2692
+ "module": "src/accordion/accordion.ts"
2693
+ }
2649
2694
  },
2650
2695
  {
2651
2696
  "kind": "field",
2652
- "name": "speechAvailable",
2653
- "type": {
2654
- "text": "boolean"
2655
- },
2656
- "readonly": true
2697
+ "name": "removeItemListeners",
2698
+ "privacy": "private",
2699
+ "inheritedFrom": {
2700
+ "name": "Accordion",
2701
+ "module": "src/accordion/accordion.ts"
2702
+ }
2657
2703
  },
2658
2704
  {
2659
2705
  "kind": "field",
2660
- "name": "criteriaChips",
2661
- "type": {
2662
- "text": "CriteriaChip[]"
2663
- },
2664
- "readonly": true
2706
+ "name": "activeItemChange",
2707
+ "privacy": "private",
2708
+ "inheritedFrom": {
2709
+ "name": "Accordion",
2710
+ "module": "src/accordion/accordion.ts"
2711
+ }
2665
2712
  },
2666
2713
  {
2667
2714
  "kind": "method",
2668
- "name": "getFieldLabel",
2715
+ "name": "getItemIds",
2669
2716
  "privacy": "private",
2670
2717
  "return": {
2671
2718
  "type": {
2672
- "text": "string"
2719
+ "text": "Array<string | null>"
2673
2720
  }
2674
2721
  },
2675
- "parameters": [
2676
- {
2677
- "name": "fieldName",
2678
- "type": {
2679
- "text": "string"
2680
- }
2681
- }
2682
- ]
2722
+ "inheritedFrom": {
2723
+ "name": "Accordion",
2724
+ "module": "src/accordion/accordion.ts"
2725
+ }
2683
2726
  },
2684
2727
  {
2685
2728
  "kind": "method",
2686
- "name": "toggleCriteriaView",
2729
+ "name": "isSingleExpandMode",
2730
+ "privacy": "private",
2687
2731
  "return": {
2688
2732
  "type": {
2689
- "text": "void"
2733
+ "text": "boolean"
2690
2734
  }
2735
+ },
2736
+ "inheritedFrom": {
2737
+ "name": "Accordion",
2738
+ "module": "src/accordion/accordion.ts"
2739
+ }
2740
+ },
2741
+ {
2742
+ "kind": "field",
2743
+ "name": "handleItemKeyDown",
2744
+ "privacy": "private",
2745
+ "inheritedFrom": {
2746
+ "name": "Accordion",
2747
+ "module": "src/accordion/accordion.ts"
2748
+ }
2749
+ },
2750
+ {
2751
+ "kind": "field",
2752
+ "name": "handleItemFocus",
2753
+ "privacy": "private",
2754
+ "inheritedFrom": {
2755
+ "name": "Accordion",
2756
+ "module": "src/accordion/accordion.ts"
2691
2757
  }
2692
2758
  },
2693
2759
  {
2694
2760
  "kind": "method",
2695
- "name": "removeChip",
2761
+ "name": "adjust",
2762
+ "privacy": "private",
2696
2763
  "return": {
2697
2764
  "type": {
2698
2765
  "text": "void"
@@ -2700,49 +2767,31 @@
2700
2767
  },
2701
2768
  "parameters": [
2702
2769
  {
2703
- "name": "groupIndex",
2704
- "type": {
2705
- "text": "number"
2706
- }
2707
- },
2708
- {
2709
- "name": "clauseIndex",
2770
+ "name": "adjustment",
2710
2771
  "type": {
2711
2772
  "text": "number"
2712
2773
  }
2713
2774
  }
2714
- ]
2775
+ ],
2776
+ "inheritedFrom": {
2777
+ "name": "Accordion",
2778
+ "module": "src/accordion/accordion.ts"
2779
+ }
2715
2780
  },
2716
2781
  {
2717
2782
  "kind": "method",
2718
- "name": "clearChips",
2783
+ "name": "focusItem",
2784
+ "privacy": "private",
2719
2785
  "return": {
2720
2786
  "type": {
2721
2787
  "text": "void"
2722
2788
  }
2789
+ },
2790
+ "inheritedFrom": {
2791
+ "name": "Accordion",
2792
+ "module": "src/accordion/accordion.ts"
2723
2793
  }
2724
2794
  },
2725
- {
2726
- "kind": "method",
2727
- "name": "handleSubmit"
2728
- },
2729
- {
2730
- "kind": "method",
2731
- "name": "handleBlur"
2732
- },
2733
- {
2734
- "kind": "method",
2735
- "name": "clear"
2736
- },
2737
- {
2738
- "kind": "method",
2739
- "name": "toggleSpeechInput"
2740
- },
2741
- {
2742
- "kind": "method",
2743
- "name": "clearSpeechApplyDebounce",
2744
- "privacy": "private"
2745
- },
2746
2795
  {
2747
2796
  "kind": "field",
2748
2797
  "name": "_presentation",
@@ -2857,48 +2906,26 @@
2857
2906
  ],
2858
2907
  "events": [
2859
2908
  {
2860
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2861
- "name": "criteria-changed"
2862
- },
2863
- {
2864
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2865
- "name": "validation-errors"
2866
- }
2867
- ],
2868
- "attributes": [
2869
- {
2870
- "name": "placeholder",
2871
- "type": {
2872
- "text": "string"
2873
- },
2874
- "default": "'Describe your search criteria in natural language...'",
2875
- "fieldName": "placeholder"
2876
- },
2877
- {
2878
- "type": {
2879
- "text": "boolean"
2880
- },
2881
- "fieldName": "disabled"
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
+ }
2882
2915
  }
2883
- ],
2884
- "superclass": {
2885
- "name": "FoundationElement",
2886
- "package": "@microsoft/fast-foundation"
2887
- },
2888
- "tagName": "%%prefix%%-ai-criteria-search",
2889
- "customElement": true
2916
+ ]
2890
2917
  },
2891
2918
  {
2892
2919
  "kind": "variable",
2893
- "name": "foundationAiCriteriaSearchShadowOptions",
2920
+ "name": "foundationAccordionShadowOptions",
2894
2921
  "type": {
2895
2922
  "text": "ShadowRootInit"
2896
2923
  },
2897
- "default": "undefined"
2924
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2898
2925
  },
2899
2926
  {
2900
2927
  "kind": "variable",
2901
- "name": "defaultAiCriteriaSearchConfig",
2928
+ "name": "defaultAccordionConfig",
2902
2929
  "type": {
2903
2930
  "text": "object"
2904
2931
  },
@@ -2906,103 +2933,57 @@
2906
2933
  },
2907
2934
  {
2908
2935
  "kind": "variable",
2909
- "name": "foundationAiCriteriaSearch"
2936
+ "name": "foundationAccordion",
2937
+ "description": "The Foundation Accordion",
2938
+ "privacy": "public"
2910
2939
  }
2911
2940
  ],
2912
2941
  "exports": [
2913
2942
  {
2914
2943
  "kind": "js",
2915
- "name": "AiCriteriaSearch",
2944
+ "name": "Accordion",
2916
2945
  "declaration": {
2917
- "name": "AiCriteriaSearch",
2918
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2946
+ "name": "Accordion",
2947
+ "module": "src/accordion/accordion.ts"
2919
2948
  }
2920
2949
  },
2921
2950
  {
2922
2951
  "kind": "js",
2923
- "name": "foundationAiCriteriaSearchShadowOptions",
2952
+ "name": "foundationAccordionShadowOptions",
2924
2953
  "declaration": {
2925
- "name": "foundationAiCriteriaSearchShadowOptions",
2926
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2954
+ "name": "foundationAccordionShadowOptions",
2955
+ "module": "src/accordion/accordion.ts"
2927
2956
  }
2928
2957
  },
2929
2958
  {
2930
2959
  "kind": "js",
2931
- "name": "defaultAiCriteriaSearchConfig",
2960
+ "name": "defaultAccordionConfig",
2932
2961
  "declaration": {
2933
- "name": "defaultAiCriteriaSearchConfig",
2934
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2962
+ "name": "defaultAccordionConfig",
2963
+ "module": "src/accordion/accordion.ts"
2935
2964
  }
2936
2965
  },
2937
2966
  {
2938
2967
  "kind": "js",
2939
- "name": "foundationAiCriteriaSearch",
2968
+ "name": "foundationAccordion",
2940
2969
  "declaration": {
2941
- "name": "foundationAiCriteriaSearch",
2942
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2970
+ "name": "foundationAccordion",
2971
+ "module": "src/accordion/accordion.ts"
2943
2972
  }
2944
2973
  }
2945
2974
  ]
2946
2975
  },
2947
2976
  {
2948
2977
  "kind": "javascript-module",
2949
- "path": "src/ai-criteria-search/index.ts",
2978
+ "path": "src/accordion/index.ts",
2950
2979
  "declarations": [],
2951
2980
  "exports": [
2952
- {
2953
- "kind": "js",
2954
- "name": "AiCriteriaSearch",
2955
- "declaration": {
2956
- "name": "AiCriteriaSearch",
2957
- "module": "./ai-criteria-search"
2958
- }
2959
- },
2960
- {
2961
- "kind": "js",
2962
- "name": "defaultAiCriteriaSearchConfig",
2963
- "declaration": {
2964
- "name": "defaultAiCriteriaSearchConfig",
2965
- "module": "./ai-criteria-search"
2966
- }
2967
- },
2968
- {
2969
- "kind": "js",
2970
- "name": "foundationAiCriteriaSearch",
2971
- "declaration": {
2972
- "name": "foundationAiCriteriaSearch",
2973
- "module": "./ai-criteria-search"
2974
- }
2975
- },
2976
- {
2977
- "kind": "js",
2978
- "name": "foundationAiCriteriaSearchShadowOptions",
2979
- "declaration": {
2980
- "name": "foundationAiCriteriaSearchShadowOptions",
2981
- "module": "./ai-criteria-search"
2982
- }
2983
- },
2984
- {
2985
- "kind": "js",
2986
- "name": "foundationAiCriteriaSearchStyles",
2987
- "declaration": {
2988
- "name": "foundationAiCriteriaSearchStyles",
2989
- "module": "./ai-criteria-search.styles"
2990
- }
2991
- },
2992
- {
2993
- "kind": "js",
2994
- "name": "foundationAiCriteriaSearchTemplate",
2995
- "declaration": {
2996
- "name": "foundationAiCriteriaSearchTemplate",
2997
- "module": "./ai-criteria-search.template"
2998
- }
2999
- },
3000
2981
  {
3001
2982
  "kind": "js",
3002
2983
  "name": "*",
3003
2984
  "declaration": {
3004
2985
  "name": "*",
3005
- "package": "./validation/criteria-ir"
2986
+ "package": "./accordion.template"
3006
2987
  }
3007
2988
  },
3008
2989
  {
@@ -3010,7 +2991,7 @@
3010
2991
  "name": "*",
3011
2992
  "declaration": {
3012
2993
  "name": "*",
3013
- "package": "./validation/operator-map"
2994
+ "package": "./accordion.styles"
3014
2995
  }
3015
2996
  },
3016
2997
  {
@@ -3018,82 +2999,7 @@
3018
2999
  "name": "*",
3019
3000
  "declaration": {
3020
3001
  "name": "*",
3021
- "package": "./validation/schema-validator"
3022
- }
3023
- }
3024
- ]
3025
- },
3026
- {
3027
- "kind": "javascript-module",
3028
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3029
- "declarations": [
3030
- {
3031
- "kind": "function",
3032
- "name": "formatValidationErrors",
3033
- "return": {
3034
- "type": {
3035
- "text": "string"
3036
- }
3037
- },
3038
- "parameters": [
3039
- {
3040
- "name": "errors",
3041
- "type": {
3042
- "text": "ValidationError[]"
3043
- }
3044
- }
3045
- ],
3046
- "description": "Formats validation errors into a user-friendly message."
3047
- },
3048
- {
3049
- "kind": "function",
3050
- "name": "showCriteriaError",
3051
- "return": {
3052
- "type": {
3053
- "text": "void"
3054
- }
3055
- },
3056
- "parameters": [
3057
- {
3058
- "name": "title",
3059
- "type": {
3060
- "text": "string"
3061
- },
3062
- "description": "Notification title (e.g. \"Criteria validation error\")"
3063
- },
3064
- {
3065
- "name": "body",
3066
- "type": {
3067
- "text": "string"
3068
- },
3069
- "description": "Error message to display"
3070
- },
3071
- {
3072
- "name": "tagName",
3073
- "type": {
3074
- "text": "string"
3075
- },
3076
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3077
- }
3078
- ],
3079
- "description": "Shows a criteria error as a toast notification."
3080
- }
3081
- ],
3082
- "exports": [
3083
- {
3084
- "kind": "js",
3085
- "name": "formatValidationErrors",
3086
- "declaration": {
3087
- "name": "formatValidationErrors",
3088
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3089
- }
3090
- },
3091
- {
3092
- "kind": "js",
3093
- "name": "showCriteriaError",
3094
- "declaration": {
3095
- "name": "showCriteriaError",
3096
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3002
+ "package": "./accordion"
3097
3003
  }
3098
3004
  }
3099
3005
  ]
@@ -3549,275 +3455,208 @@
3549
3455
  },
3550
3456
  {
3551
3457
  "kind": "javascript-module",
3552
- "path": "src/accordion/accordion.styles.ts",
3458
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3553
3459
  "declarations": [
3554
- {
3555
- "kind": "function",
3556
- "name": "foundationAccordionStyles",
3557
- "return": {
3558
- "type": {
3559
- "text": "ElementStyles"
3560
- }
3561
- },
3562
- "parameters": [
3563
- {
3564
- "name": "context",
3565
- "type": {
3566
- "text": "ElementDefinitionContext"
3567
- }
3568
- },
3569
- {
3570
- "name": "definition",
3571
- "type": {
3572
- "text": "FoundationElementDefinition"
3573
- }
3574
- }
3575
- ]
3460
+ {
3461
+ "kind": "variable",
3462
+ "name": "foundationAiCriteriaSearchStyles",
3463
+ "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
3576
3464
  }
3577
3465
  ],
3578
3466
  "exports": [
3579
3467
  {
3580
3468
  "kind": "js",
3581
- "name": "foundationAccordionStyles",
3469
+ "name": "foundationAiCriteriaSearchStyles",
3582
3470
  "declaration": {
3583
- "name": "foundationAccordionStyles",
3584
- "module": "src/accordion/accordion.styles.ts"
3471
+ "name": "foundationAiCriteriaSearchStyles",
3472
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3585
3473
  }
3586
3474
  }
3587
3475
  ]
3588
3476
  },
3589
3477
  {
3590
3478
  "kind": "javascript-module",
3591
- "path": "src/accordion/accordion.template.ts",
3479
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3592
3480
  "declarations": [
3593
3481
  {
3594
- "kind": "function",
3595
- "name": "foundationAccordionTemplate",
3596
- "return": {
3597
- "type": {
3598
- "text": "ViewTemplate<Accordion>"
3599
- }
3482
+ "kind": "variable",
3483
+ "name": "foundationAiCriteriaSearchTemplate",
3484
+ "type": {
3485
+ "text": "ViewTemplate<AiCriteriaSearch>"
3600
3486
  },
3601
- "parameters": [
3602
- {
3603
- "name": "context",
3604
- "type": {
3605
- "text": "ElementDefinitionContext"
3606
- }
3607
- },
3608
- {
3609
- "name": "definition",
3610
- "type": {
3611
- "text": "FoundationElementDefinition"
3612
- }
3613
- }
3614
- ]
3487
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3615
3488
  }
3616
3489
  ],
3617
3490
  "exports": [
3618
3491
  {
3619
3492
  "kind": "js",
3620
- "name": "foundationAccordionTemplate",
3493
+ "name": "foundationAiCriteriaSearchTemplate",
3621
3494
  "declaration": {
3622
- "name": "foundationAccordionTemplate",
3623
- "module": "src/accordion/accordion.template.ts"
3495
+ "name": "foundationAiCriteriaSearchTemplate",
3496
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3624
3497
  }
3625
3498
  }
3626
3499
  ]
3627
3500
  },
3628
3501
  {
3629
3502
  "kind": "javascript-module",
3630
- "path": "src/accordion/accordion.ts",
3503
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3631
3504
  "declarations": [
3632
3505
  {
3633
3506
  "kind": "class",
3634
- "description": "",
3635
- "name": "Accordion",
3636
- "superclass": {
3637
- "name": "FASTAccordion",
3638
- "package": "@microsoft/fast-foundation"
3639
- },
3640
- "tagName": "%%prefix%%-accordion",
3641
- "customElement": true,
3642
- "attributes": [
3507
+ "description": "Natural-language criteria search input with AI interpretation.",
3508
+ "name": "AiCriteriaSearch",
3509
+ "members": [
3643
3510
  {
3644
- "name": "expand-mode",
3511
+ "kind": "field",
3512
+ "name": "providerRegistry",
3645
3513
  "type": {
3646
- "text": "AccordionExpandMode"
3647
- },
3648
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3649
- "fieldName": "expandmode",
3650
- "inheritedFrom": {
3651
- "name": "Accordion",
3652
- "module": "src/accordion/accordion.ts"
3514
+ "text": "AIProviderRegistry"
3653
3515
  }
3654
- }
3655
- ],
3656
- "members": [
3516
+ },
3657
3517
  {
3658
3518
  "kind": "field",
3659
- "name": "expandmode",
3519
+ "name": "placeholder",
3660
3520
  "type": {
3661
- "text": "AccordionExpandMode"
3521
+ "text": "string"
3662
3522
  },
3663
- "privacy": "public",
3664
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3665
- "inheritedFrom": {
3666
- "name": "Accordion",
3667
- "module": "src/accordion/accordion.ts"
3523
+ "default": "'Describe your search criteria in natural language...'"
3524
+ },
3525
+ {
3526
+ "kind": "field",
3527
+ "name": "disabled",
3528
+ "type": {
3529
+ "text": "boolean"
3668
3530
  }
3669
3531
  },
3670
3532
  {
3671
3533
  "kind": "field",
3672
- "name": "activeid",
3534
+ "name": "inputValue",
3673
3535
  "type": {
3674
- "text": "string | null"
3536
+ "text": "string"
3675
3537
  },
3676
- "privacy": "private",
3677
- "inheritedFrom": {
3678
- "name": "Accordion",
3679
- "module": "src/accordion/accordion.ts"
3680
- }
3538
+ "default": "''"
3681
3539
  },
3682
3540
  {
3683
3541
  "kind": "field",
3684
- "name": "activeItemIndex",
3542
+ "name": "isInterpreting",
3685
3543
  "type": {
3686
- "text": "number"
3544
+ "text": "boolean"
3687
3545
  },
3688
- "privacy": "private",
3689
- "default": "0",
3690
- "inheritedFrom": {
3691
- "name": "Accordion",
3692
- "module": "src/accordion/accordion.ts"
3693
- }
3546
+ "default": "false"
3694
3547
  },
3695
3548
  {
3696
3549
  "kind": "field",
3697
- "name": "accordionIds",
3550
+ "name": "lastValidCriteria",
3698
3551
  "type": {
3699
- "text": "Array<string | null>"
3552
+ "text": "string | null"
3700
3553
  },
3701
- "privacy": "private",
3702
- "inheritedFrom": {
3703
- "name": "Accordion",
3704
- "module": "src/accordion/accordion.ts"
3705
- }
3554
+ "default": "null"
3706
3555
  },
3707
3556
  {
3708
3557
  "kind": "field",
3709
- "name": "change",
3710
- "privacy": "private",
3711
- "inheritedFrom": {
3712
- "name": "Accordion",
3713
- "module": "src/accordion/accordion.ts"
3714
- }
3558
+ "name": "activeGroups",
3559
+ "type": {
3560
+ "text": "CriteriaGroup[]"
3561
+ },
3562
+ "default": "[]"
3715
3563
  },
3716
3564
  {
3717
- "kind": "method",
3718
- "name": "findExpandedItem",
3719
- "privacy": "private",
3720
- "return": {
3721
- "type": {
3722
- "text": "AccordionItem | null"
3723
- }
3565
+ "kind": "field",
3566
+ "name": "showingChips",
3567
+ "type": {
3568
+ "text": "boolean"
3724
3569
  },
3725
- "inheritedFrom": {
3726
- "name": "Accordion",
3727
- "module": "src/accordion/accordion.ts"
3728
- }
3570
+ "default": "false"
3729
3571
  },
3730
3572
  {
3731
3573
  "kind": "field",
3732
- "name": "setItems",
3733
- "privacy": "private",
3734
- "inheritedFrom": {
3735
- "name": "Accordion",
3736
- "module": "src/accordion/accordion.ts"
3737
- }
3574
+ "name": "fieldMetadata",
3575
+ "type": {
3576
+ "text": "MetadataDetail[] | string[]"
3577
+ },
3578
+ "default": "[]"
3738
3579
  },
3739
3580
  {
3740
- "kind": "method",
3741
- "name": "resetItems",
3742
- "privacy": "private",
3743
- "return": {
3744
- "type": {
3745
- "text": "void"
3746
- }
3581
+ "kind": "field",
3582
+ "name": "isRecording",
3583
+ "type": {
3584
+ "text": "boolean"
3747
3585
  },
3748
- "inheritedFrom": {
3749
- "name": "Accordion",
3750
- "module": "src/accordion/accordion.ts"
3751
- }
3586
+ "default": "false"
3752
3587
  },
3753
3588
  {
3754
3589
  "kind": "field",
3755
- "name": "removeItemListeners",
3756
- "privacy": "private",
3757
- "inheritedFrom": {
3758
- "name": "Accordion",
3759
- "module": "src/accordion/accordion.ts"
3760
- }
3590
+ "name": "textAreaRef",
3591
+ "type": {
3592
+ "text": "HTMLTextAreaElement"
3593
+ },
3594
+ "privacy": "public"
3761
3595
  },
3762
3596
  {
3763
3597
  "kind": "field",
3764
- "name": "activeItemChange",
3598
+ "name": "stopRecording",
3599
+ "type": {
3600
+ "text": "(() => void) | null"
3601
+ },
3765
3602
  "privacy": "private",
3766
- "inheritedFrom": {
3767
- "name": "Accordion",
3768
- "module": "src/accordion/accordion.ts"
3769
- }
3603
+ "default": "null"
3770
3604
  },
3771
3605
  {
3772
- "kind": "method",
3773
- "name": "getItemIds",
3774
- "privacy": "private",
3775
- "return": {
3776
- "type": {
3777
- "text": "Array<string | null>"
3778
- }
3606
+ "kind": "field",
3607
+ "name": "speechApplyDebounceTimer",
3608
+ "type": {
3609
+ "text": "ReturnType<typeof setTimeout> | null"
3779
3610
  },
3780
- "inheritedFrom": {
3781
- "name": "Accordion",
3782
- "module": "src/accordion/accordion.ts"
3783
- }
3611
+ "privacy": "private",
3612
+ "default": "null"
3784
3613
  },
3785
3614
  {
3786
- "kind": "method",
3787
- "name": "isSingleExpandMode",
3788
- "privacy": "private",
3789
- "return": {
3790
- "type": {
3791
- "text": "boolean"
3792
- }
3615
+ "kind": "field",
3616
+ "name": "speechAvailable",
3617
+ "type": {
3618
+ "text": "boolean"
3793
3619
  },
3794
- "inheritedFrom": {
3795
- "name": "Accordion",
3796
- "module": "src/accordion/accordion.ts"
3797
- }
3620
+ "readonly": true
3798
3621
  },
3799
3622
  {
3800
3623
  "kind": "field",
3801
- "name": "handleItemKeyDown",
3802
- "privacy": "private",
3803
- "inheritedFrom": {
3804
- "name": "Accordion",
3805
- "module": "src/accordion/accordion.ts"
3806
- }
3624
+ "name": "criteriaChips",
3625
+ "type": {
3626
+ "text": "CriteriaChip[]"
3627
+ },
3628
+ "readonly": true
3807
3629
  },
3808
3630
  {
3809
- "kind": "field",
3810
- "name": "handleItemFocus",
3631
+ "kind": "method",
3632
+ "name": "getFieldLabel",
3811
3633
  "privacy": "private",
3812
- "inheritedFrom": {
3813
- "name": "Accordion",
3814
- "module": "src/accordion/accordion.ts"
3634
+ "return": {
3635
+ "type": {
3636
+ "text": "string"
3637
+ }
3638
+ },
3639
+ "parameters": [
3640
+ {
3641
+ "name": "fieldName",
3642
+ "type": {
3643
+ "text": "string"
3644
+ }
3645
+ }
3646
+ ]
3647
+ },
3648
+ {
3649
+ "kind": "method",
3650
+ "name": "toggleCriteriaView",
3651
+ "return": {
3652
+ "type": {
3653
+ "text": "void"
3654
+ }
3815
3655
  }
3816
3656
  },
3817
3657
  {
3818
3658
  "kind": "method",
3819
- "name": "adjust",
3820
- "privacy": "private",
3659
+ "name": "removeChip",
3821
3660
  "return": {
3822
3661
  "type": {
3823
3662
  "text": "void"
@@ -3825,31 +3664,49 @@
3825
3664
  },
3826
3665
  "parameters": [
3827
3666
  {
3828
- "name": "adjustment",
3667
+ "name": "groupIndex",
3668
+ "type": {
3669
+ "text": "number"
3670
+ }
3671
+ },
3672
+ {
3673
+ "name": "clauseIndex",
3829
3674
  "type": {
3830
3675
  "text": "number"
3831
3676
  }
3832
3677
  }
3833
- ],
3834
- "inheritedFrom": {
3835
- "name": "Accordion",
3836
- "module": "src/accordion/accordion.ts"
3837
- }
3678
+ ]
3838
3679
  },
3839
3680
  {
3840
3681
  "kind": "method",
3841
- "name": "focusItem",
3842
- "privacy": "private",
3682
+ "name": "clearChips",
3843
3683
  "return": {
3844
3684
  "type": {
3845
3685
  "text": "void"
3846
3686
  }
3847
- },
3848
- "inheritedFrom": {
3849
- "name": "Accordion",
3850
- "module": "src/accordion/accordion.ts"
3851
3687
  }
3852
3688
  },
3689
+ {
3690
+ "kind": "method",
3691
+ "name": "handleSubmit"
3692
+ },
3693
+ {
3694
+ "kind": "method",
3695
+ "name": "handleBlur"
3696
+ },
3697
+ {
3698
+ "kind": "method",
3699
+ "name": "clear"
3700
+ },
3701
+ {
3702
+ "kind": "method",
3703
+ "name": "toggleSpeechInput"
3704
+ },
3705
+ {
3706
+ "kind": "method",
3707
+ "name": "clearSpeechApplyDebounce",
3708
+ "privacy": "private"
3709
+ },
3853
3710
  {
3854
3711
  "kind": "field",
3855
3712
  "name": "_presentation",
@@ -3964,26 +3821,48 @@
3964
3821
  ],
3965
3822
  "events": [
3966
3823
  {
3967
- "description": "Fires a custom 'change' event when the active item changes",
3968
- "name": "change",
3969
- "inheritedFrom": {
3970
- "name": "Accordion",
3971
- "module": "src/accordion/accordion.ts"
3972
- }
3824
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3825
+ "name": "criteria-changed"
3826
+ },
3827
+ {
3828
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3829
+ "name": "validation-errors"
3973
3830
  }
3974
- ]
3831
+ ],
3832
+ "attributes": [
3833
+ {
3834
+ "name": "placeholder",
3835
+ "type": {
3836
+ "text": "string"
3837
+ },
3838
+ "default": "'Describe your search criteria in natural language...'",
3839
+ "fieldName": "placeholder"
3840
+ },
3841
+ {
3842
+ "type": {
3843
+ "text": "boolean"
3844
+ },
3845
+ "fieldName": "disabled"
3846
+ }
3847
+ ],
3848
+ "superclass": {
3849
+ "name": "FoundationElement",
3850
+ "package": "@microsoft/fast-foundation"
3851
+ },
3852
+ "tagName": "%%prefix%%-ai-criteria-search",
3853
+ "customElement": true
3975
3854
  },
3976
3855
  {
3977
3856
  "kind": "variable",
3978
- "name": "foundationAccordionShadowOptions",
3857
+ "name": "foundationAiCriteriaSearchShadowOptions",
3979
3858
  "type": {
3980
3859
  "text": "ShadowRootInit"
3981
3860
  },
3982
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3861
+ "default": "undefined"
3983
3862
  },
3984
3863
  {
3985
3864
  "kind": "variable",
3986
- "name": "defaultAccordionConfig",
3865
+ "name": "defaultAiCriteriaSearchConfig",
3987
3866
  "type": {
3988
3867
  "text": "object"
3989
3868
  },
@@ -3991,57 +3870,103 @@
3991
3870
  },
3992
3871
  {
3993
3872
  "kind": "variable",
3994
- "name": "foundationAccordion",
3995
- "description": "The Foundation Accordion",
3996
- "privacy": "public"
3873
+ "name": "foundationAiCriteriaSearch"
3997
3874
  }
3998
3875
  ],
3999
3876
  "exports": [
4000
3877
  {
4001
3878
  "kind": "js",
4002
- "name": "Accordion",
3879
+ "name": "AiCriteriaSearch",
4003
3880
  "declaration": {
4004
- "name": "Accordion",
4005
- "module": "src/accordion/accordion.ts"
3881
+ "name": "AiCriteriaSearch",
3882
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
4006
3883
  }
4007
3884
  },
4008
3885
  {
4009
3886
  "kind": "js",
4010
- "name": "foundationAccordionShadowOptions",
3887
+ "name": "foundationAiCriteriaSearchShadowOptions",
4011
3888
  "declaration": {
4012
- "name": "foundationAccordionShadowOptions",
4013
- "module": "src/accordion/accordion.ts"
3889
+ "name": "foundationAiCriteriaSearchShadowOptions",
3890
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
4014
3891
  }
4015
3892
  },
4016
3893
  {
4017
3894
  "kind": "js",
4018
- "name": "defaultAccordionConfig",
3895
+ "name": "defaultAiCriteriaSearchConfig",
4019
3896
  "declaration": {
4020
- "name": "defaultAccordionConfig",
4021
- "module": "src/accordion/accordion.ts"
3897
+ "name": "defaultAiCriteriaSearchConfig",
3898
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
4022
3899
  }
4023
3900
  },
4024
3901
  {
4025
3902
  "kind": "js",
4026
- "name": "foundationAccordion",
3903
+ "name": "foundationAiCriteriaSearch",
4027
3904
  "declaration": {
4028
- "name": "foundationAccordion",
4029
- "module": "src/accordion/accordion.ts"
3905
+ "name": "foundationAiCriteriaSearch",
3906
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
4030
3907
  }
4031
3908
  }
4032
3909
  ]
4033
3910
  },
4034
3911
  {
4035
3912
  "kind": "javascript-module",
4036
- "path": "src/accordion/index.ts",
3913
+ "path": "src/ai-criteria-search/index.ts",
4037
3914
  "declarations": [],
4038
3915
  "exports": [
3916
+ {
3917
+ "kind": "js",
3918
+ "name": "AiCriteriaSearch",
3919
+ "declaration": {
3920
+ "name": "AiCriteriaSearch",
3921
+ "module": "./ai-criteria-search"
3922
+ }
3923
+ },
3924
+ {
3925
+ "kind": "js",
3926
+ "name": "defaultAiCriteriaSearchConfig",
3927
+ "declaration": {
3928
+ "name": "defaultAiCriteriaSearchConfig",
3929
+ "module": "./ai-criteria-search"
3930
+ }
3931
+ },
3932
+ {
3933
+ "kind": "js",
3934
+ "name": "foundationAiCriteriaSearch",
3935
+ "declaration": {
3936
+ "name": "foundationAiCriteriaSearch",
3937
+ "module": "./ai-criteria-search"
3938
+ }
3939
+ },
3940
+ {
3941
+ "kind": "js",
3942
+ "name": "foundationAiCriteriaSearchShadowOptions",
3943
+ "declaration": {
3944
+ "name": "foundationAiCriteriaSearchShadowOptions",
3945
+ "module": "./ai-criteria-search"
3946
+ }
3947
+ },
3948
+ {
3949
+ "kind": "js",
3950
+ "name": "foundationAiCriteriaSearchStyles",
3951
+ "declaration": {
3952
+ "name": "foundationAiCriteriaSearchStyles",
3953
+ "module": "./ai-criteria-search.styles"
3954
+ }
3955
+ },
3956
+ {
3957
+ "kind": "js",
3958
+ "name": "foundationAiCriteriaSearchTemplate",
3959
+ "declaration": {
3960
+ "name": "foundationAiCriteriaSearchTemplate",
3961
+ "module": "./ai-criteria-search.template"
3962
+ }
3963
+ },
4039
3964
  {
4040
3965
  "kind": "js",
4041
3966
  "name": "*",
4042
3967
  "declaration": {
4043
3968
  "name": "*",
4044
- "package": "./accordion.template"
3969
+ "package": "./validation/criteria-ir"
4045
3970
  }
4046
3971
  },
4047
3972
  {
@@ -4049,7 +3974,7 @@
4049
3974
  "name": "*",
4050
3975
  "declaration": {
4051
3976
  "name": "*",
4052
- "package": "./accordion.styles"
3977
+ "package": "./validation/operator-map"
4053
3978
  }
4054
3979
  },
4055
3980
  {
@@ -4057,7 +3982,82 @@
4057
3982
  "name": "*",
4058
3983
  "declaration": {
4059
3984
  "name": "*",
4060
- "package": "./accordion"
3985
+ "package": "./validation/schema-validator"
3986
+ }
3987
+ }
3988
+ ]
3989
+ },
3990
+ {
3991
+ "kind": "javascript-module",
3992
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3993
+ "declarations": [
3994
+ {
3995
+ "kind": "function",
3996
+ "name": "formatValidationErrors",
3997
+ "return": {
3998
+ "type": {
3999
+ "text": "string"
4000
+ }
4001
+ },
4002
+ "parameters": [
4003
+ {
4004
+ "name": "errors",
4005
+ "type": {
4006
+ "text": "ValidationError[]"
4007
+ }
4008
+ }
4009
+ ],
4010
+ "description": "Formats validation errors into a user-friendly message."
4011
+ },
4012
+ {
4013
+ "kind": "function",
4014
+ "name": "showCriteriaError",
4015
+ "return": {
4016
+ "type": {
4017
+ "text": "void"
4018
+ }
4019
+ },
4020
+ "parameters": [
4021
+ {
4022
+ "name": "title",
4023
+ "type": {
4024
+ "text": "string"
4025
+ },
4026
+ "description": "Notification title (e.g. \"Criteria validation error\")"
4027
+ },
4028
+ {
4029
+ "name": "body",
4030
+ "type": {
4031
+ "text": "string"
4032
+ },
4033
+ "description": "Error message to display"
4034
+ },
4035
+ {
4036
+ "name": "tagName",
4037
+ "type": {
4038
+ "text": "string"
4039
+ },
4040
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
4041
+ }
4042
+ ],
4043
+ "description": "Shows a criteria error as a toast notification."
4044
+ }
4045
+ ],
4046
+ "exports": [
4047
+ {
4048
+ "kind": "js",
4049
+ "name": "formatValidationErrors",
4050
+ "declaration": {
4051
+ "name": "formatValidationErrors",
4052
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
4053
+ }
4054
+ },
4055
+ {
4056
+ "kind": "js",
4057
+ "name": "showCriteriaError",
4058
+ "declaration": {
4059
+ "name": "showCriteriaError",
4060
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
4061
4061
  }
4062
4062
  }
4063
4063
  ]