@genesislcap/foundation-ui 15.75.0 → 15.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1495,42 +1495,11 @@
1495
1495
  },
1496
1496
  {
1497
1497
  "kind": "javascript-module",
1498
- "path": "src/_config/index.ts",
1499
- "declarations": [],
1500
- "exports": [
1501
- {
1502
- "kind": "js",
1503
- "name": "*",
1504
- "declaration": {
1505
- "name": "*",
1506
- "package": "./styles"
1507
- }
1508
- },
1509
- {
1510
- "kind": "js",
1511
- "name": "*",
1512
- "declaration": {
1513
- "name": "*",
1514
- "package": "./tokens"
1515
- }
1516
- },
1517
- {
1518
- "kind": "js",
1519
- "name": "*",
1520
- "declaration": {
1521
- "name": "*",
1522
- "package": "./values"
1523
- }
1524
- }
1525
- ]
1526
- },
1527
- {
1528
- "kind": "javascript-module",
1529
- "path": "src/accordion-item/accordion-item.styles.ts",
1498
+ "path": "src/accordion/accordion.styles.ts",
1530
1499
  "declarations": [
1531
1500
  {
1532
1501
  "kind": "function",
1533
- "name": "foundationAccordionItemStyles",
1502
+ "name": "foundationAccordionStyles",
1534
1503
  "return": {
1535
1504
  "type": {
1536
1505
  "text": "ElementStyles"
@@ -1555,24 +1524,24 @@
1555
1524
  "exports": [
1556
1525
  {
1557
1526
  "kind": "js",
1558
- "name": "foundationAccordionItemStyles",
1527
+ "name": "foundationAccordionStyles",
1559
1528
  "declaration": {
1560
- "name": "foundationAccordionItemStyles",
1561
- "module": "src/accordion-item/accordion-item.styles.ts"
1529
+ "name": "foundationAccordionStyles",
1530
+ "module": "src/accordion/accordion.styles.ts"
1562
1531
  }
1563
1532
  }
1564
1533
  ]
1565
1534
  },
1566
1535
  {
1567
1536
  "kind": "javascript-module",
1568
- "path": "src/accordion-item/accordion-item.template.ts",
1537
+ "path": "src/accordion/accordion.template.ts",
1569
1538
  "declarations": [
1570
1539
  {
1571
1540
  "kind": "function",
1572
- "name": "foundationAccordionItemTemplate",
1541
+ "name": "foundationAccordionTemplate",
1573
1542
  "return": {
1574
1543
  "type": {
1575
- "text": "ViewTemplate<AccordionItem>"
1544
+ "text": "ViewTemplate<Accordion>"
1576
1545
  }
1577
1546
  },
1578
1547
  "parameters": [
@@ -1594,116 +1563,237 @@
1594
1563
  "exports": [
1595
1564
  {
1596
1565
  "kind": "js",
1597
- "name": "foundationAccordionItemTemplate",
1566
+ "name": "foundationAccordionTemplate",
1598
1567
  "declaration": {
1599
- "name": "foundationAccordionItemTemplate",
1600
- "module": "src/accordion-item/accordion-item.template.ts"
1568
+ "name": "foundationAccordionTemplate",
1569
+ "module": "src/accordion/accordion.template.ts"
1601
1570
  }
1602
1571
  }
1603
1572
  ]
1604
1573
  },
1605
1574
  {
1606
1575
  "kind": "javascript-module",
1607
- "path": "src/accordion-item/accordion-item.ts",
1576
+ "path": "src/accordion/accordion.ts",
1608
1577
  "declarations": [
1609
1578
  {
1610
1579
  "kind": "class",
1611
1580
  "description": "",
1612
- "name": "AccordionItem",
1581
+ "name": "Accordion",
1613
1582
  "superclass": {
1614
- "name": "FASTAccordionItem",
1615
- "package": "@microsoft/fast-components"
1583
+ "name": "FASTAccordion",
1584
+ "package": "@microsoft/fast-foundation"
1616
1585
  },
1617
- "tagName": "%%prefix%%-accordion-item",
1586
+ "tagName": "%%prefix%%-accordion",
1618
1587
  "customElement": true,
1619
1588
  "attributes": [
1620
1589
  {
1621
- "name": "heading-level",
1590
+ "name": "expand-mode",
1622
1591
  "type": {
1623
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1592
+ "text": "AccordionExpandMode"
1624
1593
  },
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",
1594
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1595
+ "fieldName": "expandmode",
1628
1596
  "inheritedFrom": {
1629
- "name": "AccordionItem",
1630
- "module": "src/accordion-item/accordion-item.ts"
1597
+ "name": "Accordion",
1598
+ "module": "src/accordion/accordion.ts"
1631
1599
  }
1632
- },
1600
+ }
1601
+ ],
1602
+ "members": [
1633
1603
  {
1604
+ "kind": "field",
1605
+ "name": "expandmode",
1634
1606
  "type": {
1635
- "text": "boolean"
1607
+ "text": "AccordionExpandMode"
1636
1608
  },
1637
- "default": "false",
1638
- "description": "Expands or collapses the item.",
1639
- "fieldName": "expanded",
1609
+ "privacy": "public",
1610
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1640
1611
  "inheritedFrom": {
1641
- "name": "AccordionItem",
1642
- "module": "src/accordion-item/accordion-item.ts"
1612
+ "name": "Accordion",
1613
+ "module": "src/accordion/accordion.ts"
1643
1614
  }
1644
1615
  },
1645
1616
  {
1646
- "name": "id",
1617
+ "kind": "field",
1618
+ "name": "activeid",
1647
1619
  "type": {
1648
- "text": "string"
1620
+ "text": "string | null"
1649
1621
  },
1650
- "description": "The item ID",
1651
- "fieldName": "id",
1622
+ "privacy": "private",
1652
1623
  "inheritedFrom": {
1653
- "name": "AccordionItem",
1654
- "module": "src/accordion-item/accordion-item.ts"
1624
+ "name": "Accordion",
1625
+ "module": "src/accordion/accordion.ts"
1655
1626
  }
1656
- }
1657
- ],
1658
- "members": [
1627
+ },
1659
1628
  {
1660
1629
  "kind": "field",
1661
- "name": "headinglevel",
1630
+ "name": "activeItemIndex",
1662
1631
  "type": {
1663
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1632
+ "text": "number"
1664
1633
  },
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.",
1634
+ "privacy": "private",
1635
+ "default": "0",
1668
1636
  "inheritedFrom": {
1669
- "name": "AccordionItem",
1670
- "module": "src/accordion-item/accordion-item.ts"
1637
+ "name": "Accordion",
1638
+ "module": "src/accordion/accordion.ts"
1671
1639
  }
1672
1640
  },
1673
1641
  {
1674
1642
  "kind": "field",
1675
- "name": "expanded",
1643
+ "name": "accordionIds",
1676
1644
  "type": {
1677
- "text": "boolean"
1645
+ "text": "Array<string | null>"
1678
1646
  },
1679
- "privacy": "public",
1680
- "default": "false",
1681
- "description": "Expands or collapses the item.",
1647
+ "privacy": "private",
1682
1648
  "inheritedFrom": {
1683
- "name": "AccordionItem",
1684
- "module": "src/accordion-item/accordion-item.ts"
1649
+ "name": "Accordion",
1650
+ "module": "src/accordion/accordion.ts"
1685
1651
  }
1686
1652
  },
1687
1653
  {
1688
1654
  "kind": "field",
1689
- "name": "id",
1690
- "type": {
1691
- "text": "string"
1655
+ "name": "change",
1656
+ "privacy": "private",
1657
+ "inheritedFrom": {
1658
+ "name": "Accordion",
1659
+ "module": "src/accordion/accordion.ts"
1660
+ }
1661
+ },
1662
+ {
1663
+ "kind": "method",
1664
+ "name": "findExpandedItem",
1665
+ "privacy": "private",
1666
+ "return": {
1667
+ "type": {
1668
+ "text": "AccordionItem | null"
1669
+ }
1692
1670
  },
1693
- "privacy": "public",
1694
- "description": "The item ID",
1695
1671
  "inheritedFrom": {
1696
- "name": "AccordionItem",
1697
- "module": "src/accordion-item/accordion-item.ts"
1672
+ "name": "Accordion",
1673
+ "module": "src/accordion/accordion.ts"
1698
1674
  }
1699
1675
  },
1700
1676
  {
1701
1677
  "kind": "field",
1702
- "name": "change",
1678
+ "name": "setItems",
1703
1679
  "privacy": "private",
1704
1680
  "inheritedFrom": {
1705
- "name": "AccordionItem",
1706
- "module": "src/accordion-item/accordion-item.ts"
1681
+ "name": "Accordion",
1682
+ "module": "src/accordion/accordion.ts"
1683
+ }
1684
+ },
1685
+ {
1686
+ "kind": "method",
1687
+ "name": "resetItems",
1688
+ "privacy": "private",
1689
+ "return": {
1690
+ "type": {
1691
+ "text": "void"
1692
+ }
1693
+ },
1694
+ "inheritedFrom": {
1695
+ "name": "Accordion",
1696
+ "module": "src/accordion/accordion.ts"
1697
+ }
1698
+ },
1699
+ {
1700
+ "kind": "field",
1701
+ "name": "removeItemListeners",
1702
+ "privacy": "private",
1703
+ "inheritedFrom": {
1704
+ "name": "Accordion",
1705
+ "module": "src/accordion/accordion.ts"
1706
+ }
1707
+ },
1708
+ {
1709
+ "kind": "field",
1710
+ "name": "activeItemChange",
1711
+ "privacy": "private",
1712
+ "inheritedFrom": {
1713
+ "name": "Accordion",
1714
+ "module": "src/accordion/accordion.ts"
1715
+ }
1716
+ },
1717
+ {
1718
+ "kind": "method",
1719
+ "name": "getItemIds",
1720
+ "privacy": "private",
1721
+ "return": {
1722
+ "type": {
1723
+ "text": "Array<string | null>"
1724
+ }
1725
+ },
1726
+ "inheritedFrom": {
1727
+ "name": "Accordion",
1728
+ "module": "src/accordion/accordion.ts"
1729
+ }
1730
+ },
1731
+ {
1732
+ "kind": "method",
1733
+ "name": "isSingleExpandMode",
1734
+ "privacy": "private",
1735
+ "return": {
1736
+ "type": {
1737
+ "text": "boolean"
1738
+ }
1739
+ },
1740
+ "inheritedFrom": {
1741
+ "name": "Accordion",
1742
+ "module": "src/accordion/accordion.ts"
1743
+ }
1744
+ },
1745
+ {
1746
+ "kind": "field",
1747
+ "name": "handleItemKeyDown",
1748
+ "privacy": "private",
1749
+ "inheritedFrom": {
1750
+ "name": "Accordion",
1751
+ "module": "src/accordion/accordion.ts"
1752
+ }
1753
+ },
1754
+ {
1755
+ "kind": "field",
1756
+ "name": "handleItemFocus",
1757
+ "privacy": "private",
1758
+ "inheritedFrom": {
1759
+ "name": "Accordion",
1760
+ "module": "src/accordion/accordion.ts"
1761
+ }
1762
+ },
1763
+ {
1764
+ "kind": "method",
1765
+ "name": "adjust",
1766
+ "privacy": "private",
1767
+ "return": {
1768
+ "type": {
1769
+ "text": "void"
1770
+ }
1771
+ },
1772
+ "parameters": [
1773
+ {
1774
+ "name": "adjustment",
1775
+ "type": {
1776
+ "text": "number"
1777
+ }
1778
+ }
1779
+ ],
1780
+ "inheritedFrom": {
1781
+ "name": "Accordion",
1782
+ "module": "src/accordion/accordion.ts"
1783
+ }
1784
+ },
1785
+ {
1786
+ "kind": "method",
1787
+ "name": "focusItem",
1788
+ "privacy": "private",
1789
+ "return": {
1790
+ "type": {
1791
+ "text": "void"
1792
+ }
1793
+ },
1794
+ "inheritedFrom": {
1795
+ "name": "Accordion",
1796
+ "module": "src/accordion/accordion.ts"
1707
1797
  }
1708
1798
  },
1709
1799
  {
@@ -1820,18 +1910,18 @@
1820
1910
  ],
1821
1911
  "events": [
1822
1912
  {
1823
- "description": "Fires a custom 'change' event when the button is invoked",
1913
+ "description": "Fires a custom 'change' event when the active item changes",
1824
1914
  "name": "change",
1825
1915
  "inheritedFrom": {
1826
- "name": "AccordionItem",
1827
- "module": "src/accordion-item/accordion-item.ts"
1916
+ "name": "Accordion",
1917
+ "module": "src/accordion/accordion.ts"
1828
1918
  }
1829
1919
  }
1830
1920
  ]
1831
1921
  },
1832
1922
  {
1833
1923
  "kind": "variable",
1834
- "name": "foundationAccordionItemShadowOptions",
1924
+ "name": "foundationAccordionShadowOptions",
1835
1925
  "type": {
1836
1926
  "text": "ShadowRootInit"
1837
1927
  },
@@ -1839,57 +1929,57 @@
1839
1929
  },
1840
1930
  {
1841
1931
  "kind": "variable",
1842
- "name": "defaultAccordionItemConfig",
1932
+ "name": "defaultAccordionConfig",
1843
1933
  "type": {
1844
1934
  "text": "object"
1845
1935
  },
1846
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1936
+ "default": "{}"
1847
1937
  },
1848
1938
  {
1849
1939
  "kind": "variable",
1850
- "name": "foundationAccordionItem",
1851
- "description": "The Foundation Accordion Item",
1940
+ "name": "foundationAccordion",
1941
+ "description": "The Foundation Accordion",
1852
1942
  "privacy": "public"
1853
1943
  }
1854
1944
  ],
1855
1945
  "exports": [
1856
1946
  {
1857
1947
  "kind": "js",
1858
- "name": "AccordionItem",
1948
+ "name": "Accordion",
1859
1949
  "declaration": {
1860
- "name": "AccordionItem",
1861
- "module": "src/accordion-item/accordion-item.ts"
1950
+ "name": "Accordion",
1951
+ "module": "src/accordion/accordion.ts"
1862
1952
  }
1863
1953
  },
1864
1954
  {
1865
1955
  "kind": "js",
1866
- "name": "foundationAccordionItemShadowOptions",
1956
+ "name": "foundationAccordionShadowOptions",
1867
1957
  "declaration": {
1868
- "name": "foundationAccordionItemShadowOptions",
1869
- "module": "src/accordion-item/accordion-item.ts"
1958
+ "name": "foundationAccordionShadowOptions",
1959
+ "module": "src/accordion/accordion.ts"
1870
1960
  }
1871
1961
  },
1872
1962
  {
1873
1963
  "kind": "js",
1874
- "name": "defaultAccordionItemConfig",
1964
+ "name": "defaultAccordionConfig",
1875
1965
  "declaration": {
1876
- "name": "defaultAccordionItemConfig",
1877
- "module": "src/accordion-item/accordion-item.ts"
1966
+ "name": "defaultAccordionConfig",
1967
+ "module": "src/accordion/accordion.ts"
1878
1968
  }
1879
1969
  },
1880
1970
  {
1881
1971
  "kind": "js",
1882
- "name": "foundationAccordionItem",
1972
+ "name": "foundationAccordion",
1883
1973
  "declaration": {
1884
- "name": "foundationAccordionItem",
1885
- "module": "src/accordion-item/accordion-item.ts"
1974
+ "name": "foundationAccordion",
1975
+ "module": "src/accordion/accordion.ts"
1886
1976
  }
1887
1977
  }
1888
1978
  ]
1889
1979
  },
1890
1980
  {
1891
1981
  "kind": "javascript-module",
1892
- "path": "src/accordion-item/index.ts",
1982
+ "path": "src/accordion/index.ts",
1893
1983
  "declarations": [],
1894
1984
  "exports": [
1895
1985
  {
@@ -1897,7 +1987,7 @@
1897
1987
  "name": "*",
1898
1988
  "declaration": {
1899
1989
  "name": "*",
1900
- "package": "./accordion-item.template"
1990
+ "package": "./accordion.template"
1901
1991
  }
1902
1992
  },
1903
1993
  {
@@ -1905,7 +1995,7 @@
1905
1995
  "name": "*",
1906
1996
  "declaration": {
1907
1997
  "name": "*",
1908
- "package": "./accordion-item.styles"
1998
+ "package": "./accordion.styles"
1909
1999
  }
1910
2000
  },
1911
2001
  {
@@ -1913,41 +2003,49 @@
1913
2003
  "name": "*",
1914
2004
  "declaration": {
1915
2005
  "name": "*",
1916
- "package": "./accordion-item"
2006
+ "package": "./accordion"
1917
2007
  }
1918
2008
  }
1919
2009
  ]
1920
2010
  },
1921
2011
  {
1922
2012
  "kind": "javascript-module",
1923
- "path": "src/actions-menu/actions-menu.styles.ts",
1924
- "declarations": [
2013
+ "path": "src/_config/index.ts",
2014
+ "declarations": [],
2015
+ "exports": [
1925
2016
  {
1926
- "kind": "function",
1927
- "name": "actionsMenuBaseStyles",
1928
- "return": {
1929
- "type": {
1930
- "text": "ElementStyles"
1931
- }
1932
- },
1933
- "parameters": [
1934
- {
1935
- "name": "context",
1936
- "type": {
1937
- "text": "ElementDefinitionContext"
1938
- }
1939
- },
1940
- {
1941
- "name": "definition",
1942
- "type": {
1943
- "text": "FoundationElementDefinition"
1944
- }
1945
- }
1946
- ]
2017
+ "kind": "js",
2018
+ "name": "*",
2019
+ "declaration": {
2020
+ "name": "*",
2021
+ "package": "./styles"
2022
+ }
2023
+ },
2024
+ {
2025
+ "kind": "js",
2026
+ "name": "*",
2027
+ "declaration": {
2028
+ "name": "*",
2029
+ "package": "./tokens"
2030
+ }
1947
2031
  },
2032
+ {
2033
+ "kind": "js",
2034
+ "name": "*",
2035
+ "declaration": {
2036
+ "name": "*",
2037
+ "package": "./values"
2038
+ }
2039
+ }
2040
+ ]
2041
+ },
2042
+ {
2043
+ "kind": "javascript-module",
2044
+ "path": "src/accordion-item/accordion-item.styles.ts",
2045
+ "declarations": [
1948
2046
  {
1949
2047
  "kind": "function",
1950
- "name": "foundationActionsMenuStyles",
2048
+ "name": "foundationAccordionItemStyles",
1951
2049
  "return": {
1952
2050
  "type": {
1953
2051
  "text": "ElementStyles"
@@ -1972,282 +2070,157 @@
1972
2070
  "exports": [
1973
2071
  {
1974
2072
  "kind": "js",
1975
- "name": "actionsMenuBaseStyles",
1976
- "declaration": {
1977
- "name": "actionsMenuBaseStyles",
1978
- "module": "src/actions-menu/actions-menu.styles.ts"
1979
- }
1980
- },
1981
- {
1982
- "kind": "js",
1983
- "name": "foundationActionsMenuStyles",
2073
+ "name": "foundationAccordionItemStyles",
1984
2074
  "declaration": {
1985
- "name": "foundationActionsMenuStyles",
1986
- "module": "src/actions-menu/actions-menu.styles.ts"
2075
+ "name": "foundationAccordionItemStyles",
2076
+ "module": "src/accordion-item/accordion-item.styles.ts"
1987
2077
  }
1988
2078
  }
1989
2079
  ]
1990
2080
  },
1991
2081
  {
1992
2082
  "kind": "javascript-module",
1993
- "path": "src/actions-menu/actions-menu.template.ts",
2083
+ "path": "src/accordion-item/accordion-item.template.ts",
1994
2084
  "declarations": [
1995
2085
  {
1996
2086
  "kind": "function",
1997
- "name": "menuTemplate",
2087
+ "name": "foundationAccordionItemTemplate",
2088
+ "return": {
2089
+ "type": {
2090
+ "text": "ViewTemplate<AccordionItem>"
2091
+ }
2092
+ },
1998
2093
  "parameters": [
1999
2094
  {
2000
- "name": "prefix",
2095
+ "name": "context",
2001
2096
  "type": {
2002
- "text": "string"
2097
+ "text": "ElementDefinitionContext"
2003
2098
  }
2004
- }
2005
- ]
2006
- },
2007
- {
2008
- "kind": "function",
2009
- "name": "singleOptionTemplate",
2010
- "parameters": [
2099
+ },
2011
2100
  {
2012
- "name": "prefix",
2101
+ "name": "definition",
2013
2102
  "type": {
2014
- "text": "string"
2103
+ "text": "FoundationElementDefinition"
2015
2104
  }
2016
2105
  }
2017
2106
  ]
2018
- },
2019
- {
2020
- "kind": "variable",
2021
- "name": "foundationActionsMenuTemplate",
2022
- "type": {
2023
- "text": "ViewTemplate<ActionsMenu>"
2024
- },
2025
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2026
2107
  }
2027
2108
  ],
2028
2109
  "exports": [
2029
2110
  {
2030
2111
  "kind": "js",
2031
- "name": "menuTemplate",
2032
- "declaration": {
2033
- "name": "menuTemplate",
2034
- "module": "src/actions-menu/actions-menu.template.ts"
2035
- }
2036
- },
2037
- {
2038
- "kind": "js",
2039
- "name": "singleOptionTemplate",
2040
- "declaration": {
2041
- "name": "singleOptionTemplate",
2042
- "module": "src/actions-menu/actions-menu.template.ts"
2043
- }
2044
- },
2045
- {
2046
- "kind": "js",
2047
- "name": "foundationActionsMenuTemplate",
2112
+ "name": "foundationAccordionItemTemplate",
2048
2113
  "declaration": {
2049
- "name": "foundationActionsMenuTemplate",
2050
- "module": "src/actions-menu/actions-menu.template.ts"
2114
+ "name": "foundationAccordionItemTemplate",
2115
+ "module": "src/accordion-item/accordion-item.template.ts"
2051
2116
  }
2052
2117
  }
2053
2118
  ]
2054
2119
  },
2055
2120
  {
2056
2121
  "kind": "javascript-module",
2057
- "path": "src/actions-menu/actions-menu.ts",
2122
+ "path": "src/accordion-item/accordion-item.ts",
2058
2123
  "declarations": [
2059
2124
  {
2060
2125
  "kind": "class",
2061
2126
  "description": "",
2062
- "name": "ActionsMenu",
2063
- "members": [
2127
+ "name": "AccordionItem",
2128
+ "superclass": {
2129
+ "name": "FASTAccordionItem",
2130
+ "package": "@microsoft/fast-components"
2131
+ },
2132
+ "tagName": "%%prefix%%-accordion-item",
2133
+ "customElement": true,
2134
+ "attributes": [
2064
2135
  {
2065
- "kind": "field",
2066
- "name": "actions",
2136
+ "name": "heading-level",
2067
2137
  "type": {
2068
- "text": "ActionMenuItem[]"
2138
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2139
+ },
2140
+ "default": "2",
2141
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2142
+ "fieldName": "headinglevel",
2143
+ "inheritedFrom": {
2144
+ "name": "AccordionItem",
2145
+ "module": "src/accordion-item/accordion-item.ts"
2069
2146
  }
2070
2147
  },
2071
2148
  {
2072
- "kind": "field",
2073
- "name": "isVertical",
2074
2149
  "type": {
2075
2150
  "text": "boolean"
2076
2151
  },
2077
- "default": "false"
2152
+ "default": "false",
2153
+ "description": "Expands or collapses the item.",
2154
+ "fieldName": "expanded",
2155
+ "inheritedFrom": {
2156
+ "name": "AccordionItem",
2157
+ "module": "src/accordion-item/accordion-item.ts"
2158
+ }
2078
2159
  },
2079
2160
  {
2080
- "kind": "field",
2081
- "name": "addDefaultActions",
2161
+ "name": "id",
2082
2162
  "type": {
2083
- "text": "boolean"
2163
+ "text": "string"
2084
2164
  },
2085
- "default": "true"
2086
- },
2165
+ "description": "The item ID",
2166
+ "fieldName": "id",
2167
+ "inheritedFrom": {
2168
+ "name": "AccordionItem",
2169
+ "module": "src/accordion-item/accordion-item.ts"
2170
+ }
2171
+ }
2172
+ ],
2173
+ "members": [
2087
2174
  {
2088
2175
  "kind": "field",
2089
- "name": "autoCloseOnAction",
2176
+ "name": "headinglevel",
2090
2177
  "type": {
2091
- "text": "boolean"
2178
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2092
2179
  },
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"
2180
+ "privacy": "public",
2181
+ "default": "2",
2182
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2183
+ "inheritedFrom": {
2184
+ "name": "AccordionItem",
2185
+ "module": "src/accordion-item/accordion-item.ts"
2107
2186
  }
2108
2187
  },
2109
2188
  {
2110
2189
  "kind": "field",
2111
- "name": "name",
2112
- "type": {
2113
- "text": "string"
2114
- },
2115
- "default": "'Actions'"
2116
- },
2117
- {
2118
- "kind": "field",
2119
- "name": "open",
2190
+ "name": "expanded",
2120
2191
  "type": {
2121
2192
  "text": "boolean"
2122
2193
  },
2123
- "default": "false"
2124
- },
2125
- {
2126
- "kind": "field",
2127
- "name": "buttonAppearance",
2128
- "type": {
2129
- "text": "string"
2194
+ "privacy": "public",
2195
+ "default": "false",
2196
+ "description": "Expands or collapses the item.",
2197
+ "inheritedFrom": {
2198
+ "name": "AccordionItem",
2199
+ "module": "src/accordion-item/accordion-item.ts"
2130
2200
  }
2131
2201
  },
2132
2202
  {
2133
2203
  "kind": "field",
2134
- "name": "hideDisabled",
2135
- "type": {
2136
- "text": "boolean"
2137
- },
2138
- "default": "false"
2139
- },
2140
- {
2141
- "kind": "field",
2142
- "name": "hideMenuSingleOption",
2204
+ "name": "id",
2143
2205
  "type": {
2144
- "text": "boolean"
2206
+ "text": "string"
2145
2207
  },
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"
2208
+ "privacy": "public",
2209
+ "description": "The item ID",
2210
+ "inheritedFrom": {
2211
+ "name": "AccordionItem",
2212
+ "module": "src/accordion-item/accordion-item.ts"
2160
2213
  }
2161
2214
  },
2162
2215
  {
2163
2216
  "kind": "field",
2164
- "name": "actionsOpener",
2165
- "type": {
2166
- "text": "HTMLElement"
2217
+ "name": "change",
2218
+ "privacy": "private",
2219
+ "inheritedFrom": {
2220
+ "name": "AccordionItem",
2221
+ "module": "src/accordion-item/accordion-item.ts"
2167
2222
  }
2168
2223
  },
2169
- {
2170
- "kind": "method",
2171
- "name": "updateMenuPosition",
2172
- "privacy": "private"
2173
- },
2174
- {
2175
- "kind": "method",
2176
- "name": "definitionChanged",
2177
- "privacy": "protected",
2178
- "parameters": [
2179
- {
2180
- "name": "oldValue",
2181
- "type": {
2182
- "text": "any"
2183
- }
2184
- },
2185
- {
2186
- "name": "newValue",
2187
- "type": {
2188
- "text": "any"
2189
- }
2190
- }
2191
- ]
2192
- },
2193
- {
2194
- "kind": "method",
2195
- "name": "openChanged",
2196
- "privacy": "protected"
2197
- },
2198
- {
2199
- "kind": "method",
2200
- "name": "toggleActionsMenuVisibility"
2201
- },
2202
- {
2203
- "kind": "method",
2204
- "name": "onActionMenuItemClick",
2205
- "parameters": [
2206
- {
2207
- "name": "callback",
2208
- "type": {
2209
- "text": "(rowData) => void | any"
2210
- }
2211
- }
2212
- ]
2213
- },
2214
- {
2215
- "kind": "field",
2216
- "name": "allActions",
2217
- "type": {
2218
- "text": "ActionMenuItem[]"
2219
- },
2220
- "readonly": true
2221
- },
2222
- {
2223
- "kind": "field",
2224
- "name": "rowData",
2225
- "readonly": true
2226
- },
2227
- {
2228
- "kind": "method",
2229
- "name": "getLabel",
2230
- "parameters": [
2231
- {
2232
- "name": "name",
2233
- "type": {
2234
- "text": "string | ((rowData: any) => string)"
2235
- }
2236
- }
2237
- ]
2238
- },
2239
- {
2240
- "kind": "method",
2241
- "name": "getTemplate",
2242
- "parameters": [
2243
- {
2244
- "name": "prefix",
2245
- "type": {
2246
- "text": "string"
2247
- }
2248
- }
2249
- ]
2250
- },
2251
2224
  {
2252
2225
  "kind": "field",
2253
2226
  "name": "_presentation",
@@ -2360,107 +2333,78 @@
2360
2333
  }
2361
2334
  }
2362
2335
  ],
2363
- "attributes": [
2364
- {
2365
- "name": "is-vertical",
2366
- "type": {
2367
- "text": "boolean"
2368
- },
2369
- "default": "false",
2370
- "fieldName": "isVertical"
2371
- },
2372
- {
2373
- "name": "add-default-actions",
2374
- "type": {
2375
- "text": "boolean"
2376
- },
2377
- "default": "true",
2378
- "fieldName": "addDefaultActions"
2379
- },
2380
- {
2381
- "name": "auto-close-on-action",
2382
- "type": {
2383
- "text": "boolean"
2384
- },
2385
- "default": "true",
2386
- "fieldName": "autoCloseOnAction"
2387
- },
2388
- {
2389
- "name": "name",
2390
- "type": {
2391
- "text": "string"
2392
- },
2393
- "default": "'Actions'",
2394
- "fieldName": "name"
2395
- },
2396
- {
2397
- "name": "open",
2398
- "type": {
2399
- "text": "boolean"
2400
- },
2401
- "default": "false",
2402
- "fieldName": "open"
2403
- },
2404
- {
2405
- "name": "buttonAppearance",
2406
- "type": {
2407
- "text": "string"
2408
- },
2409
- "fieldName": "buttonAppearance"
2410
- },
2411
- {
2412
- "name": "hide-disabled",
2413
- "type": {
2414
- "text": "boolean"
2415
- },
2416
- "default": "false",
2417
- "fieldName": "hideDisabled"
2418
- },
2336
+ "events": [
2419
2337
  {
2420
- "name": "hide-menu-single-option",
2421
- "type": {
2422
- "text": "boolean"
2423
- },
2424
- "default": "false",
2425
- "fieldName": "hideMenuSingleOption"
2338
+ "description": "Fires a custom 'change' event when the button is invoked",
2339
+ "name": "change",
2340
+ "inheritedFrom": {
2341
+ "name": "AccordionItem",
2342
+ "module": "src/accordion-item/accordion-item.ts"
2343
+ }
2426
2344
  }
2427
- ],
2428
- "superclass": {
2429
- "name": "FoundationElement",
2430
- "package": "@microsoft/fast-foundation"
2345
+ ]
2346
+ },
2347
+ {
2348
+ "kind": "variable",
2349
+ "name": "foundationAccordionItemShadowOptions",
2350
+ "type": {
2351
+ "text": "ShadowRootInit"
2431
2352
  },
2432
- "tagName": "%%prefix%%-actions-menu",
2433
- "customElement": true
2353
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2434
2354
  },
2435
2355
  {
2436
2356
  "kind": "variable",
2437
- "name": "foundationActionsMenu",
2438
- "description": "The Foundation Actions Menu",
2357
+ "name": "defaultAccordionItemConfig",
2358
+ "type": {
2359
+ "text": "object"
2360
+ },
2361
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2362
+ },
2363
+ {
2364
+ "kind": "variable",
2365
+ "name": "foundationAccordionItem",
2366
+ "description": "The Foundation Accordion Item",
2439
2367
  "privacy": "public"
2440
2368
  }
2441
2369
  ],
2442
2370
  "exports": [
2443
2371
  {
2444
2372
  "kind": "js",
2445
- "name": "ActionsMenu",
2373
+ "name": "AccordionItem",
2446
2374
  "declaration": {
2447
- "name": "ActionsMenu",
2448
- "module": "src/actions-menu/actions-menu.ts"
2375
+ "name": "AccordionItem",
2376
+ "module": "src/accordion-item/accordion-item.ts"
2449
2377
  }
2450
2378
  },
2451
2379
  {
2452
2380
  "kind": "js",
2453
- "name": "foundationActionsMenu",
2381
+ "name": "foundationAccordionItemShadowOptions",
2454
2382
  "declaration": {
2455
- "name": "foundationActionsMenu",
2456
- "module": "src/actions-menu/actions-menu.ts"
2383
+ "name": "foundationAccordionItemShadowOptions",
2384
+ "module": "src/accordion-item/accordion-item.ts"
2385
+ }
2386
+ },
2387
+ {
2388
+ "kind": "js",
2389
+ "name": "defaultAccordionItemConfig",
2390
+ "declaration": {
2391
+ "name": "defaultAccordionItemConfig",
2392
+ "module": "src/accordion-item/accordion-item.ts"
2393
+ }
2394
+ },
2395
+ {
2396
+ "kind": "js",
2397
+ "name": "foundationAccordionItem",
2398
+ "declaration": {
2399
+ "name": "foundationAccordionItem",
2400
+ "module": "src/accordion-item/accordion-item.ts"
2457
2401
  }
2458
2402
  }
2459
2403
  ]
2460
2404
  },
2461
2405
  {
2462
2406
  "kind": "javascript-module",
2463
- "path": "src/actions-menu/index.ts",
2407
+ "path": "src/accordion-item/index.ts",
2464
2408
  "declarations": [],
2465
2409
  "exports": [
2466
2410
  {
@@ -2468,7 +2412,7 @@
2468
2412
  "name": "*",
2469
2413
  "declaration": {
2470
2414
  "name": "*",
2471
- "package": "./actions-menu.styles"
2415
+ "package": "./accordion-item.template"
2472
2416
  }
2473
2417
  },
2474
2418
  {
@@ -2476,7 +2420,7 @@
2476
2420
  "name": "*",
2477
2421
  "declaration": {
2478
2422
  "name": "*",
2479
- "package": "./actions-menu.template"
2423
+ "package": "./accordion-item.styles"
2480
2424
  }
2481
2425
  },
2482
2426
  {
@@ -2484,122 +2428,210 @@
2484
2428
  "name": "*",
2485
2429
  "declaration": {
2486
2430
  "name": "*",
2487
- "package": "./actions-menu"
2431
+ "package": "./accordion-item"
2488
2432
  }
2489
2433
  }
2490
2434
  ]
2491
2435
  },
2492
2436
  {
2493
2437
  "kind": "javascript-module",
2494
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2438
+ "path": "src/actions-menu/actions-menu.styles.ts",
2495
2439
  "declarations": [
2496
2440
  {
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`"
2441
+ "kind": "function",
2442
+ "name": "actionsMenuBaseStyles",
2443
+ "return": {
2444
+ "type": {
2445
+ "text": "ElementStyles"
2446
+ }
2447
+ },
2448
+ "parameters": [
2449
+ {
2450
+ "name": "context",
2451
+ "type": {
2452
+ "text": "ElementDefinitionContext"
2453
+ }
2454
+ },
2455
+ {
2456
+ "name": "definition",
2457
+ "type": {
2458
+ "text": "FoundationElementDefinition"
2459
+ }
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "kind": "function",
2465
+ "name": "foundationActionsMenuStyles",
2466
+ "return": {
2467
+ "type": {
2468
+ "text": "ElementStyles"
2469
+ }
2470
+ },
2471
+ "parameters": [
2472
+ {
2473
+ "name": "context",
2474
+ "type": {
2475
+ "text": "ElementDefinitionContext"
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "definition",
2480
+ "type": {
2481
+ "text": "FoundationElementDefinition"
2482
+ }
2483
+ }
2484
+ ]
2500
2485
  }
2501
2486
  ],
2502
2487
  "exports": [
2503
2488
  {
2504
2489
  "kind": "js",
2505
- "name": "foundationAiCriteriaSearchStyles",
2490
+ "name": "actionsMenuBaseStyles",
2506
2491
  "declaration": {
2507
- "name": "foundationAiCriteriaSearchStyles",
2508
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2492
+ "name": "actionsMenuBaseStyles",
2493
+ "module": "src/actions-menu/actions-menu.styles.ts"
2494
+ }
2495
+ },
2496
+ {
2497
+ "kind": "js",
2498
+ "name": "foundationActionsMenuStyles",
2499
+ "declaration": {
2500
+ "name": "foundationActionsMenuStyles",
2501
+ "module": "src/actions-menu/actions-menu.styles.ts"
2509
2502
  }
2510
2503
  }
2511
2504
  ]
2512
2505
  },
2513
2506
  {
2514
2507
  "kind": "javascript-module",
2515
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2508
+ "path": "src/actions-menu/actions-menu.template.ts",
2516
2509
  "declarations": [
2517
2510
  {
2518
2511
  "kind": "variable",
2519
- "name": "foundationAiCriteriaSearchTemplate",
2512
+ "name": "menuTemplate"
2513
+ },
2514
+ {
2515
+ "kind": "variable",
2516
+ "name": "singleOptionTemplate"
2517
+ },
2518
+ {
2519
+ "kind": "variable",
2520
+ "name": "foundationActionsMenuTemplate",
2520
2521
  "type": {
2521
- "text": "ViewTemplate<AiCriteriaSearch>"
2522
+ "text": "ViewTemplate<ActionsMenu>"
2522
2523
  },
2523
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2524
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2524
2525
  }
2525
2526
  ],
2526
2527
  "exports": [
2527
2528
  {
2528
2529
  "kind": "js",
2529
- "name": "foundationAiCriteriaSearchTemplate",
2530
+ "name": "menuTemplate",
2530
2531
  "declaration": {
2531
- "name": "foundationAiCriteriaSearchTemplate",
2532
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2532
+ "name": "menuTemplate",
2533
+ "module": "src/actions-menu/actions-menu.template.ts"
2534
+ }
2535
+ },
2536
+ {
2537
+ "kind": "js",
2538
+ "name": "singleOptionTemplate",
2539
+ "declaration": {
2540
+ "name": "singleOptionTemplate",
2541
+ "module": "src/actions-menu/actions-menu.template.ts"
2542
+ }
2543
+ },
2544
+ {
2545
+ "kind": "js",
2546
+ "name": "foundationActionsMenuTemplate",
2547
+ "declaration": {
2548
+ "name": "foundationActionsMenuTemplate",
2549
+ "module": "src/actions-menu/actions-menu.template.ts"
2533
2550
  }
2534
2551
  }
2535
2552
  ]
2536
2553
  },
2537
2554
  {
2538
2555
  "kind": "javascript-module",
2539
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2556
+ "path": "src/actions-menu/actions-menu.ts",
2540
2557
  "declarations": [
2541
2558
  {
2542
2559
  "kind": "class",
2543
- "description": "Natural-language criteria search input with AI interpretation.",
2544
- "name": "AiCriteriaSearch",
2560
+ "description": "",
2561
+ "name": "ActionsMenu",
2545
2562
  "members": [
2546
2563
  {
2547
2564
  "kind": "field",
2548
- "name": "providerRegistry",
2565
+ "name": "actions",
2549
2566
  "type": {
2550
- "text": "AIProviderRegistry"
2567
+ "text": "ActionMenuItem[]"
2551
2568
  }
2552
2569
  },
2553
2570
  {
2554
2571
  "kind": "field",
2555
- "name": "placeholder",
2572
+ "name": "actionsResolver",
2556
2573
  "type": {
2557
- "text": "string"
2574
+ "text": "ActionMenuItemsResolver | undefined"
2558
2575
  },
2559
- "default": "'Describe your search criteria in natural language...'"
2576
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2560
2577
  },
2561
2578
  {
2562
2579
  "kind": "field",
2563
- "name": "disabled",
2580
+ "name": "isVertical",
2564
2581
  "type": {
2565
2582
  "text": "boolean"
2566
- }
2583
+ },
2584
+ "default": "false"
2567
2585
  },
2568
2586
  {
2569
2587
  "kind": "field",
2570
- "name": "inputValue",
2588
+ "name": "addDefaultActions",
2571
2589
  "type": {
2572
- "text": "string"
2590
+ "text": "boolean"
2573
2591
  },
2574
- "default": "''"
2592
+ "default": "true"
2575
2593
  },
2576
2594
  {
2577
2595
  "kind": "field",
2578
- "name": "isInterpreting",
2596
+ "name": "autoCloseOnAction",
2579
2597
  "type": {
2580
2598
  "text": "boolean"
2581
2599
  },
2582
- "default": "false"
2600
+ "default": "true"
2583
2601
  },
2584
2602
  {
2585
2603
  "kind": "field",
2586
- "name": "lastValidCriteria",
2604
+ "name": "classNames",
2587
2605
  "type": {
2588
- "text": "string | null"
2606
+ "text": "string"
2607
+ }
2608
+ },
2609
+ {
2610
+ "kind": "field",
2611
+ "name": "definition",
2612
+ "type": {
2613
+ "text": "any"
2614
+ }
2615
+ },
2616
+ {
2617
+ "kind": "field",
2618
+ "name": "name",
2619
+ "type": {
2620
+ "text": "string"
2589
2621
  },
2590
- "default": "null"
2622
+ "default": "'Actions'"
2591
2623
  },
2592
2624
  {
2593
2625
  "kind": "field",
2594
- "name": "activeGroups",
2626
+ "name": "iconName",
2595
2627
  "type": {
2596
- "text": "CriteriaGroup[]"
2628
+ "text": "string"
2597
2629
  },
2598
- "default": "[]"
2630
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2599
2631
  },
2600
2632
  {
2601
2633
  "kind": "field",
2602
- "name": "showingChips",
2634
+ "name": "open",
2603
2635
  "type": {
2604
2636
  "text": "boolean"
2605
2637
  },
@@ -2607,15 +2639,14 @@
2607
2639
  },
2608
2640
  {
2609
2641
  "kind": "field",
2610
- "name": "fieldMetadata",
2642
+ "name": "buttonAppearance",
2611
2643
  "type": {
2612
- "text": "MetadataDetail[] | string[]"
2613
- },
2614
- "default": "[]"
2644
+ "text": "string"
2645
+ }
2615
2646
  },
2616
2647
  {
2617
2648
  "kind": "field",
2618
- "name": "isRecording",
2649
+ "name": "hideDisabled",
2619
2650
  "type": {
2620
2651
  "text": "boolean"
2621
2652
  },
@@ -2623,125 +2654,209 @@
2623
2654
  },
2624
2655
  {
2625
2656
  "kind": "field",
2626
- "name": "textAreaRef",
2657
+ "name": "hideMenuSingleOption",
2627
2658
  "type": {
2628
- "text": "HTMLTextAreaElement"
2659
+ "text": "boolean"
2629
2660
  },
2630
- "privacy": "public"
2661
+ "default": "false"
2631
2662
  },
2632
2663
  {
2633
2664
  "kind": "field",
2634
- "name": "stopRecording",
2665
+ "name": "singleOption",
2635
2666
  "type": {
2636
- "text": "(() => void) | null"
2637
- },
2638
- "privacy": "private",
2639
- "default": "null"
2667
+ "text": "ActionMenuItem"
2668
+ }
2640
2669
  },
2641
2670
  {
2642
2671
  "kind": "field",
2643
- "name": "speechApplyDebounceTimer",
2672
+ "name": "actionsMenu",
2644
2673
  "type": {
2645
- "text": "ReturnType<typeof setTimeout> | null"
2646
- },
2647
- "privacy": "private",
2648
- "default": "null"
2674
+ "text": "HTMLElement"
2675
+ }
2649
2676
  },
2650
2677
  {
2651
2678
  "kind": "field",
2652
- "name": "speechAvailable",
2679
+ "name": "actionsOpener",
2653
2680
  "type": {
2654
- "text": "boolean"
2681
+ "text": "HTMLElement"
2682
+ }
2683
+ },
2684
+ {
2685
+ "kind": "field",
2686
+ "name": "positionTracker",
2687
+ "type": {
2688
+ "text": "AnchoredPopoverPositionTracker | undefined"
2655
2689
  },
2656
- "readonly": true
2690
+ "privacy": "private"
2657
2691
  },
2658
2692
  {
2659
2693
  "kind": "field",
2660
- "name": "criteriaChips",
2694
+ "name": "focusMenuOnOpen",
2661
2695
  "type": {
2662
- "text": "CriteriaChip[]"
2696
+ "text": "boolean"
2663
2697
  },
2664
- "readonly": true
2698
+ "privacy": "private",
2699
+ "default": "false",
2700
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2665
2701
  },
2666
2702
  {
2667
2703
  "kind": "method",
2668
- "name": "getFieldLabel",
2669
- "privacy": "private",
2670
- "return": {
2671
- "type": {
2672
- "text": "string"
2673
- }
2674
- },
2704
+ "name": "updateMenuPosition",
2705
+ "privacy": "private"
2706
+ },
2707
+ {
2708
+ "kind": "method",
2709
+ "name": "startTrackingPosition",
2710
+ "privacy": "private"
2711
+ },
2712
+ {
2713
+ "kind": "method",
2714
+ "name": "stopTrackingPosition",
2715
+ "privacy": "private"
2716
+ },
2717
+ {
2718
+ "kind": "method",
2719
+ "name": "definitionChanged",
2720
+ "privacy": "protected",
2675
2721
  "parameters": [
2676
2722
  {
2677
- "name": "fieldName",
2723
+ "name": "oldValue",
2678
2724
  "type": {
2679
- "text": "string"
2725
+ "text": "any"
2726
+ }
2727
+ },
2728
+ {
2729
+ "name": "newValue",
2730
+ "type": {
2731
+ "text": "any"
2680
2732
  }
2681
2733
  }
2682
2734
  ]
2683
2735
  },
2684
2736
  {
2685
2737
  "kind": "method",
2686
- "name": "toggleCriteriaView",
2687
- "return": {
2688
- "type": {
2689
- "text": "void"
2738
+ "name": "openChanged",
2739
+ "privacy": "protected"
2740
+ },
2741
+ {
2742
+ "kind": "method",
2743
+ "name": "toggleActionsMenuVisibility"
2744
+ },
2745
+ {
2746
+ "kind": "method",
2747
+ "name": "onPopoverToggle",
2748
+ "parameters": [
2749
+ {
2750
+ "name": "event",
2751
+ "type": {
2752
+ "text": "Event"
2753
+ }
2690
2754
  }
2691
- }
2755
+ ],
2756
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2692
2757
  },
2693
2758
  {
2694
2759
  "kind": "method",
2695
- "name": "removeChip",
2760
+ "name": "onIconOpenerKeydown",
2696
2761
  "return": {
2697
2762
  "type": {
2698
- "text": "void"
2763
+ "text": "boolean"
2699
2764
  }
2700
2765
  },
2701
2766
  "parameters": [
2702
2767
  {
2703
- "name": "groupIndex",
2768
+ "name": "event",
2704
2769
  "type": {
2705
- "text": "number"
2770
+ "text": "KeyboardEvent"
2706
2771
  }
2707
- },
2772
+ }
2773
+ ],
2774
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2775
+ },
2776
+ {
2777
+ "kind": "method",
2778
+ "name": "onActionMenuItemClick",
2779
+ "parameters": [
2708
2780
  {
2709
- "name": "clauseIndex",
2781
+ "name": "callback",
2710
2782
  "type": {
2711
- "text": "number"
2783
+ "text": "(rowData) => void | any"
2712
2784
  }
2713
2785
  }
2714
2786
  ]
2715
2787
  },
2716
2788
  {
2717
2789
  "kind": "method",
2718
- "name": "clearChips",
2790
+ "name": "isActionDisabled",
2719
2791
  "return": {
2720
2792
  "type": {
2721
- "text": "void"
2793
+ "text": "boolean"
2722
2794
  }
2723
- }
2795
+ },
2796
+ "parameters": [
2797
+ {
2798
+ "name": "action",
2799
+ "type": {
2800
+ "text": "ActionMenuItem"
2801
+ }
2802
+ }
2803
+ ],
2804
+ "description": "Resolves an action's `isDisabled` for the current row."
2724
2805
  },
2725
2806
  {
2726
- "kind": "method",
2727
- "name": "handleSubmit"
2807
+ "kind": "field",
2808
+ "name": "resolvedActions",
2809
+ "type": {
2810
+ "text": "ActionMenuItem[]"
2811
+ },
2812
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2813
+ "readonly": true
2728
2814
  },
2729
2815
  {
2730
- "kind": "method",
2731
- "name": "handleBlur"
2816
+ "kind": "field",
2817
+ "name": "hasVisibleActions",
2818
+ "type": {
2819
+ "text": "boolean"
2820
+ },
2821
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2822
+ "readonly": true
2732
2823
  },
2733
2824
  {
2734
- "kind": "method",
2735
- "name": "clear"
2825
+ "kind": "field",
2826
+ "name": "allActions",
2827
+ "type": {
2828
+ "text": "ActionMenuItem[]"
2829
+ },
2830
+ "readonly": true
2831
+ },
2832
+ {
2833
+ "kind": "field",
2834
+ "name": "rowData",
2835
+ "readonly": true
2736
2836
  },
2737
2837
  {
2738
2838
  "kind": "method",
2739
- "name": "toggleSpeechInput"
2839
+ "name": "getLabel",
2840
+ "parameters": [
2841
+ {
2842
+ "name": "name",
2843
+ "type": {
2844
+ "text": "string | ((rowData: any) => string)"
2845
+ }
2846
+ }
2847
+ ]
2740
2848
  },
2741
2849
  {
2742
2850
  "kind": "method",
2743
- "name": "clearSpeechApplyDebounce",
2744
- "privacy": "private"
2851
+ "name": "getTemplate",
2852
+ "parameters": [
2853
+ {
2854
+ "name": "prefix",
2855
+ "type": {
2856
+ "text": "string"
2857
+ }
2858
+ }
2859
+ ]
2745
2860
  },
2746
2861
  {
2747
2862
  "kind": "field",
@@ -2855,154 +2970,166 @@
2855
2970
  }
2856
2971
  }
2857
2972
  ],
2858
- "events": [
2973
+ "attributes": [
2859
2974
  {
2860
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2861
- "name": "criteria-changed"
2975
+ "name": "is-vertical",
2976
+ "type": {
2977
+ "text": "boolean"
2978
+ },
2979
+ "default": "false",
2980
+ "fieldName": "isVertical"
2862
2981
  },
2863
2982
  {
2864
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2865
- "name": "validation-errors"
2866
- }
2867
- ],
2868
- "attributes": [
2983
+ "name": "add-default-actions",
2984
+ "type": {
2985
+ "text": "boolean"
2986
+ },
2987
+ "default": "true",
2988
+ "fieldName": "addDefaultActions"
2989
+ },
2869
2990
  {
2870
- "name": "placeholder",
2991
+ "name": "auto-close-on-action",
2992
+ "type": {
2993
+ "text": "boolean"
2994
+ },
2995
+ "default": "true",
2996
+ "fieldName": "autoCloseOnAction"
2997
+ },
2998
+ {
2999
+ "name": "name",
2871
3000
  "type": {
2872
3001
  "text": "string"
2873
3002
  },
2874
- "default": "'Describe your search criteria in natural language...'",
2875
- "fieldName": "placeholder"
3003
+ "default": "'Actions'",
3004
+ "fieldName": "name"
2876
3005
  },
2877
3006
  {
3007
+ "name": "icon-name",
3008
+ "type": {
3009
+ "text": "string"
3010
+ },
3011
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3012
+ "fieldName": "iconName"
3013
+ },
3014
+ {
3015
+ "name": "open",
2878
3016
  "type": {
2879
3017
  "text": "boolean"
2880
3018
  },
2881
- "fieldName": "disabled"
3019
+ "default": "false",
3020
+ "fieldName": "open"
3021
+ },
3022
+ {
3023
+ "name": "buttonAppearance",
3024
+ "type": {
3025
+ "text": "string"
3026
+ },
3027
+ "fieldName": "buttonAppearance"
3028
+ },
3029
+ {
3030
+ "name": "hide-disabled",
3031
+ "type": {
3032
+ "text": "boolean"
3033
+ },
3034
+ "default": "false",
3035
+ "fieldName": "hideDisabled"
3036
+ },
3037
+ {
3038
+ "name": "hide-menu-single-option",
3039
+ "type": {
3040
+ "text": "boolean"
3041
+ },
3042
+ "default": "false",
3043
+ "fieldName": "hideMenuSingleOption"
2882
3044
  }
2883
3045
  ],
2884
3046
  "superclass": {
2885
3047
  "name": "FoundationElement",
2886
3048
  "package": "@microsoft/fast-foundation"
2887
3049
  },
2888
- "tagName": "%%prefix%%-ai-criteria-search",
3050
+ "tagName": "%%prefix%%-actions-menu",
2889
3051
  "customElement": true
2890
3052
  },
2891
3053
  {
2892
3054
  "kind": "variable",
2893
- "name": "foundationAiCriteriaSearchShadowOptions",
2894
- "type": {
2895
- "text": "ShadowRootInit"
2896
- },
2897
- "default": "undefined"
2898
- },
2899
- {
2900
- "kind": "variable",
2901
- "name": "defaultAiCriteriaSearchConfig",
2902
- "type": {
2903
- "text": "object"
2904
- },
2905
- "default": "{}"
2906
- },
2907
- {
2908
- "kind": "variable",
2909
- "name": "foundationAiCriteriaSearch"
3055
+ "name": "foundationActionsMenu",
3056
+ "description": "The Foundation Actions Menu",
3057
+ "privacy": "public"
2910
3058
  }
2911
3059
  ],
2912
3060
  "exports": [
2913
3061
  {
2914
3062
  "kind": "js",
2915
- "name": "AiCriteriaSearch",
3063
+ "name": "ActionsMenu",
2916
3064
  "declaration": {
2917
- "name": "AiCriteriaSearch",
2918
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3065
+ "name": "ActionsMenu",
3066
+ "module": "src/actions-menu/actions-menu.ts"
2919
3067
  }
2920
3068
  },
2921
3069
  {
2922
3070
  "kind": "js",
2923
- "name": "foundationAiCriteriaSearchShadowOptions",
3071
+ "name": "foundationActionsMenu",
2924
3072
  "declaration": {
2925
- "name": "foundationAiCriteriaSearchShadowOptions",
2926
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3073
+ "name": "foundationActionsMenu",
3074
+ "module": "src/actions-menu/actions-menu.ts"
2927
3075
  }
2928
- },
3076
+ }
3077
+ ]
3078
+ },
3079
+ {
3080
+ "kind": "javascript-module",
3081
+ "path": "src/actions-menu/ag-menu.styles.ts",
3082
+ "declarations": [
2929
3083
  {
2930
- "kind": "js",
2931
- "name": "defaultAiCriteriaSearchConfig",
2932
- "declaration": {
2933
- "name": "defaultAiCriteriaSearchConfig",
2934
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2935
- }
2936
- },
3084
+ "kind": "function",
3085
+ "name": "agMenuStyles",
3086
+ "return": {
3087
+ "type": {
3088
+ "text": ""
3089
+ }
3090
+ },
3091
+ "parameters": [
3092
+ {
3093
+ "name": "menuSelector",
3094
+ "type": {
3095
+ "text": "string"
3096
+ },
3097
+ "description": "Selects the menu surface. May be a selector list."
3098
+ },
3099
+ {
3100
+ "name": "itemSelector",
3101
+ "type": {
3102
+ "text": "string"
3103
+ },
3104
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3105
+ }
3106
+ ],
3107
+ "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
3108
+ "privacy": "public"
3109
+ }
3110
+ ],
3111
+ "exports": [
2937
3112
  {
2938
3113
  "kind": "js",
2939
- "name": "foundationAiCriteriaSearch",
3114
+ "name": "agMenuStyles",
2940
3115
  "declaration": {
2941
- "name": "foundationAiCriteriaSearch",
2942
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3116
+ "name": "agMenuStyles",
3117
+ "module": "src/actions-menu/ag-menu.styles.ts"
2943
3118
  }
2944
3119
  }
2945
3120
  ]
2946
3121
  },
2947
3122
  {
2948
3123
  "kind": "javascript-module",
2949
- "path": "src/ai-criteria-search/index.ts",
3124
+ "path": "src/actions-menu/index.ts",
2950
3125
  "declarations": [],
2951
3126
  "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
3127
  {
3001
3128
  "kind": "js",
3002
3129
  "name": "*",
3003
3130
  "declaration": {
3004
3131
  "name": "*",
3005
- "package": "./validation/criteria-ir"
3132
+ "package": "./actions-menu.styles"
3006
3133
  }
3007
3134
  },
3008
3135
  {
@@ -3010,7 +3137,7 @@
3010
3137
  "name": "*",
3011
3138
  "declaration": {
3012
3139
  "name": "*",
3013
- "package": "./validation/operator-map"
3140
+ "package": "./actions-menu.template"
3014
3141
  }
3015
3142
  },
3016
3143
  {
@@ -3018,357 +3145,223 @@
3018
3145
  "name": "*",
3019
3146
  "declaration": {
3020
3147
  "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"
3148
+ "package": "./actions-menu"
3089
3149
  }
3090
3150
  },
3091
3151
  {
3092
3152
  "kind": "js",
3093
- "name": "showCriteriaError",
3153
+ "name": "*",
3094
3154
  "declaration": {
3095
- "name": "showCriteriaError",
3096
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3155
+ "name": "*",
3156
+ "package": "./ag-menu.styles"
3097
3157
  }
3098
3158
  }
3099
3159
  ]
3100
3160
  },
3101
3161
  {
3102
3162
  "kind": "javascript-module",
3103
- "path": "src/accordion/accordion.styles.ts",
3104
- "declarations": [
3105
- {
3106
- "kind": "function",
3107
- "name": "foundationAccordionStyles",
3108
- "return": {
3109
- "type": {
3110
- "text": "ElementStyles"
3111
- }
3112
- },
3113
- "parameters": [
3114
- {
3115
- "name": "context",
3116
- "type": {
3117
- "text": "ElementDefinitionContext"
3118
- }
3119
- },
3120
- {
3121
- "name": "definition",
3122
- "type": {
3123
- "text": "FoundationElementDefinition"
3124
- }
3125
- }
3126
- ]
3163
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3164
+ "declarations": [
3165
+ {
3166
+ "kind": "variable",
3167
+ "name": "foundationAiCriteriaSearchStyles",
3168
+ "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`"
3127
3169
  }
3128
3170
  ],
3129
3171
  "exports": [
3130
3172
  {
3131
3173
  "kind": "js",
3132
- "name": "foundationAccordionStyles",
3174
+ "name": "foundationAiCriteriaSearchStyles",
3133
3175
  "declaration": {
3134
- "name": "foundationAccordionStyles",
3135
- "module": "src/accordion/accordion.styles.ts"
3176
+ "name": "foundationAiCriteriaSearchStyles",
3177
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3136
3178
  }
3137
3179
  }
3138
3180
  ]
3139
3181
  },
3140
3182
  {
3141
3183
  "kind": "javascript-module",
3142
- "path": "src/accordion/accordion.template.ts",
3184
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3143
3185
  "declarations": [
3144
3186
  {
3145
- "kind": "function",
3146
- "name": "foundationAccordionTemplate",
3147
- "return": {
3148
- "type": {
3149
- "text": "ViewTemplate<Accordion>"
3150
- }
3187
+ "kind": "variable",
3188
+ "name": "foundationAiCriteriaSearchTemplate",
3189
+ "type": {
3190
+ "text": "ViewTemplate<AiCriteriaSearch>"
3151
3191
  },
3152
- "parameters": [
3153
- {
3154
- "name": "context",
3155
- "type": {
3156
- "text": "ElementDefinitionContext"
3157
- }
3158
- },
3159
- {
3160
- "name": "definition",
3161
- "type": {
3162
- "text": "FoundationElementDefinition"
3163
- }
3164
- }
3165
- ]
3192
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3166
3193
  }
3167
3194
  ],
3168
3195
  "exports": [
3169
3196
  {
3170
3197
  "kind": "js",
3171
- "name": "foundationAccordionTemplate",
3198
+ "name": "foundationAiCriteriaSearchTemplate",
3172
3199
  "declaration": {
3173
- "name": "foundationAccordionTemplate",
3174
- "module": "src/accordion/accordion.template.ts"
3200
+ "name": "foundationAiCriteriaSearchTemplate",
3201
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3175
3202
  }
3176
3203
  }
3177
3204
  ]
3178
3205
  },
3179
3206
  {
3180
3207
  "kind": "javascript-module",
3181
- "path": "src/accordion/accordion.ts",
3208
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3182
3209
  "declarations": [
3183
3210
  {
3184
3211
  "kind": "class",
3185
- "description": "",
3186
- "name": "Accordion",
3187
- "superclass": {
3188
- "name": "FASTAccordion",
3189
- "package": "@microsoft/fast-foundation"
3190
- },
3191
- "tagName": "%%prefix%%-accordion",
3192
- "customElement": true,
3193
- "attributes": [
3212
+ "description": "Natural-language criteria search input with AI interpretation.",
3213
+ "name": "AiCriteriaSearch",
3214
+ "members": [
3194
3215
  {
3195
- "name": "expand-mode",
3216
+ "kind": "field",
3217
+ "name": "providerRegistry",
3196
3218
  "type": {
3197
- "text": "AccordionExpandMode"
3198
- },
3199
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3200
- "fieldName": "expandmode",
3201
- "inheritedFrom": {
3202
- "name": "Accordion",
3203
- "module": "src/accordion/accordion.ts"
3219
+ "text": "AIProviderRegistry"
3204
3220
  }
3205
- }
3206
- ],
3207
- "members": [
3221
+ },
3208
3222
  {
3209
3223
  "kind": "field",
3210
- "name": "expandmode",
3224
+ "name": "placeholder",
3211
3225
  "type": {
3212
- "text": "AccordionExpandMode"
3226
+ "text": "string"
3213
3227
  },
3214
- "privacy": "public",
3215
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3216
- "inheritedFrom": {
3217
- "name": "Accordion",
3218
- "module": "src/accordion/accordion.ts"
3228
+ "default": "'Describe your search criteria in natural language...'"
3229
+ },
3230
+ {
3231
+ "kind": "field",
3232
+ "name": "disabled",
3233
+ "type": {
3234
+ "text": "boolean"
3219
3235
  }
3220
3236
  },
3221
3237
  {
3222
3238
  "kind": "field",
3223
- "name": "activeid",
3239
+ "name": "inputValue",
3224
3240
  "type": {
3225
- "text": "string | null"
3241
+ "text": "string"
3226
3242
  },
3227
- "privacy": "private",
3228
- "inheritedFrom": {
3229
- "name": "Accordion",
3230
- "module": "src/accordion/accordion.ts"
3231
- }
3243
+ "default": "''"
3232
3244
  },
3233
3245
  {
3234
3246
  "kind": "field",
3235
- "name": "activeItemIndex",
3247
+ "name": "isInterpreting",
3236
3248
  "type": {
3237
- "text": "number"
3249
+ "text": "boolean"
3238
3250
  },
3239
- "privacy": "private",
3240
- "default": "0",
3241
- "inheritedFrom": {
3242
- "name": "Accordion",
3243
- "module": "src/accordion/accordion.ts"
3244
- }
3251
+ "default": "false"
3245
3252
  },
3246
3253
  {
3247
3254
  "kind": "field",
3248
- "name": "accordionIds",
3255
+ "name": "lastValidCriteria",
3249
3256
  "type": {
3250
- "text": "Array<string | null>"
3257
+ "text": "string | null"
3251
3258
  },
3252
- "privacy": "private",
3253
- "inheritedFrom": {
3254
- "name": "Accordion",
3255
- "module": "src/accordion/accordion.ts"
3256
- }
3259
+ "default": "null"
3257
3260
  },
3258
3261
  {
3259
3262
  "kind": "field",
3260
- "name": "change",
3261
- "privacy": "private",
3262
- "inheritedFrom": {
3263
- "name": "Accordion",
3264
- "module": "src/accordion/accordion.ts"
3265
- }
3263
+ "name": "activeGroups",
3264
+ "type": {
3265
+ "text": "CriteriaGroup[]"
3266
+ },
3267
+ "default": "[]"
3266
3268
  },
3267
3269
  {
3268
- "kind": "method",
3269
- "name": "findExpandedItem",
3270
- "privacy": "private",
3271
- "return": {
3272
- "type": {
3273
- "text": "AccordionItem | null"
3274
- }
3270
+ "kind": "field",
3271
+ "name": "showingChips",
3272
+ "type": {
3273
+ "text": "boolean"
3275
3274
  },
3276
- "inheritedFrom": {
3277
- "name": "Accordion",
3278
- "module": "src/accordion/accordion.ts"
3279
- }
3275
+ "default": "false"
3280
3276
  },
3281
3277
  {
3282
3278
  "kind": "field",
3283
- "name": "setItems",
3284
- "privacy": "private",
3285
- "inheritedFrom": {
3286
- "name": "Accordion",
3287
- "module": "src/accordion/accordion.ts"
3288
- }
3279
+ "name": "fieldMetadata",
3280
+ "type": {
3281
+ "text": "MetadataDetail[] | string[]"
3282
+ },
3283
+ "default": "[]"
3289
3284
  },
3290
3285
  {
3291
- "kind": "method",
3292
- "name": "resetItems",
3293
- "privacy": "private",
3294
- "return": {
3295
- "type": {
3296
- "text": "void"
3297
- }
3286
+ "kind": "field",
3287
+ "name": "isRecording",
3288
+ "type": {
3289
+ "text": "boolean"
3298
3290
  },
3299
- "inheritedFrom": {
3300
- "name": "Accordion",
3301
- "module": "src/accordion/accordion.ts"
3302
- }
3291
+ "default": "false"
3303
3292
  },
3304
3293
  {
3305
3294
  "kind": "field",
3306
- "name": "removeItemListeners",
3295
+ "name": "textAreaRef",
3296
+ "type": {
3297
+ "text": "HTMLTextAreaElement"
3298
+ },
3299
+ "privacy": "public"
3300
+ },
3301
+ {
3302
+ "kind": "field",
3303
+ "name": "stopRecording",
3304
+ "type": {
3305
+ "text": "(() => void) | null"
3306
+ },
3307
3307
  "privacy": "private",
3308
- "inheritedFrom": {
3309
- "name": "Accordion",
3310
- "module": "src/accordion/accordion.ts"
3311
- }
3308
+ "default": "null"
3312
3309
  },
3313
3310
  {
3314
3311
  "kind": "field",
3315
- "name": "activeItemChange",
3312
+ "name": "speechApplyDebounceTimer",
3313
+ "type": {
3314
+ "text": "ReturnType<typeof setTimeout> | null"
3315
+ },
3316
3316
  "privacy": "private",
3317
- "inheritedFrom": {
3318
- "name": "Accordion",
3319
- "module": "src/accordion/accordion.ts"
3320
- }
3317
+ "default": "null"
3318
+ },
3319
+ {
3320
+ "kind": "field",
3321
+ "name": "speechAvailable",
3322
+ "type": {
3323
+ "text": "boolean"
3324
+ },
3325
+ "readonly": true
3326
+ },
3327
+ {
3328
+ "kind": "field",
3329
+ "name": "criteriaChips",
3330
+ "type": {
3331
+ "text": "CriteriaChip[]"
3332
+ },
3333
+ "readonly": true
3321
3334
  },
3322
3335
  {
3323
3336
  "kind": "method",
3324
- "name": "getItemIds",
3337
+ "name": "getFieldLabel",
3325
3338
  "privacy": "private",
3326
3339
  "return": {
3327
3340
  "type": {
3328
- "text": "Array<string | null>"
3341
+ "text": "string"
3329
3342
  }
3330
3343
  },
3331
- "inheritedFrom": {
3332
- "name": "Accordion",
3333
- "module": "src/accordion/accordion.ts"
3334
- }
3344
+ "parameters": [
3345
+ {
3346
+ "name": "fieldName",
3347
+ "type": {
3348
+ "text": "string"
3349
+ }
3350
+ }
3351
+ ]
3335
3352
  },
3336
3353
  {
3337
3354
  "kind": "method",
3338
- "name": "isSingleExpandMode",
3339
- "privacy": "private",
3355
+ "name": "toggleCriteriaView",
3340
3356
  "return": {
3341
3357
  "type": {
3342
- "text": "boolean"
3358
+ "text": "void"
3343
3359
  }
3344
- },
3345
- "inheritedFrom": {
3346
- "name": "Accordion",
3347
- "module": "src/accordion/accordion.ts"
3348
- }
3349
- },
3350
- {
3351
- "kind": "field",
3352
- "name": "handleItemKeyDown",
3353
- "privacy": "private",
3354
- "inheritedFrom": {
3355
- "name": "Accordion",
3356
- "module": "src/accordion/accordion.ts"
3357
- }
3358
- },
3359
- {
3360
- "kind": "field",
3361
- "name": "handleItemFocus",
3362
- "privacy": "private",
3363
- "inheritedFrom": {
3364
- "name": "Accordion",
3365
- "module": "src/accordion/accordion.ts"
3366
3360
  }
3367
3361
  },
3368
3362
  {
3369
3363
  "kind": "method",
3370
- "name": "adjust",
3371
- "privacy": "private",
3364
+ "name": "removeChip",
3372
3365
  "return": {
3373
3366
  "type": {
3374
3367
  "text": "void"
@@ -3376,31 +3369,49 @@
3376
3369
  },
3377
3370
  "parameters": [
3378
3371
  {
3379
- "name": "adjustment",
3372
+ "name": "groupIndex",
3373
+ "type": {
3374
+ "text": "number"
3375
+ }
3376
+ },
3377
+ {
3378
+ "name": "clauseIndex",
3380
3379
  "type": {
3381
3380
  "text": "number"
3382
3381
  }
3383
3382
  }
3384
- ],
3385
- "inheritedFrom": {
3386
- "name": "Accordion",
3387
- "module": "src/accordion/accordion.ts"
3388
- }
3383
+ ]
3389
3384
  },
3390
3385
  {
3391
3386
  "kind": "method",
3392
- "name": "focusItem",
3393
- "privacy": "private",
3387
+ "name": "clearChips",
3394
3388
  "return": {
3395
3389
  "type": {
3396
3390
  "text": "void"
3397
3391
  }
3398
- },
3399
- "inheritedFrom": {
3400
- "name": "Accordion",
3401
- "module": "src/accordion/accordion.ts"
3402
3392
  }
3403
3393
  },
3394
+ {
3395
+ "kind": "method",
3396
+ "name": "handleSubmit"
3397
+ },
3398
+ {
3399
+ "kind": "method",
3400
+ "name": "handleBlur"
3401
+ },
3402
+ {
3403
+ "kind": "method",
3404
+ "name": "clear"
3405
+ },
3406
+ {
3407
+ "kind": "method",
3408
+ "name": "toggleSpeechInput"
3409
+ },
3410
+ {
3411
+ "kind": "method",
3412
+ "name": "clearSpeechApplyDebounce",
3413
+ "privacy": "private"
3414
+ },
3404
3415
  {
3405
3416
  "kind": "field",
3406
3417
  "name": "_presentation",
@@ -3515,26 +3526,48 @@
3515
3526
  ],
3516
3527
  "events": [
3517
3528
  {
3518
- "description": "Fires a custom 'change' event when the active item changes",
3519
- "name": "change",
3520
- "inheritedFrom": {
3521
- "name": "Accordion",
3522
- "module": "src/accordion/accordion.ts"
3523
- }
3529
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3530
+ "name": "criteria-changed"
3531
+ },
3532
+ {
3533
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3534
+ "name": "validation-errors"
3524
3535
  }
3525
- ]
3536
+ ],
3537
+ "attributes": [
3538
+ {
3539
+ "name": "placeholder",
3540
+ "type": {
3541
+ "text": "string"
3542
+ },
3543
+ "default": "'Describe your search criteria in natural language...'",
3544
+ "fieldName": "placeholder"
3545
+ },
3546
+ {
3547
+ "type": {
3548
+ "text": "boolean"
3549
+ },
3550
+ "fieldName": "disabled"
3551
+ }
3552
+ ],
3553
+ "superclass": {
3554
+ "name": "FoundationElement",
3555
+ "package": "@microsoft/fast-foundation"
3556
+ },
3557
+ "tagName": "%%prefix%%-ai-criteria-search",
3558
+ "customElement": true
3526
3559
  },
3527
3560
  {
3528
3561
  "kind": "variable",
3529
- "name": "foundationAccordionShadowOptions",
3562
+ "name": "foundationAiCriteriaSearchShadowOptions",
3530
3563
  "type": {
3531
3564
  "text": "ShadowRootInit"
3532
3565
  },
3533
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3566
+ "default": "undefined"
3534
3567
  },
3535
3568
  {
3536
3569
  "kind": "variable",
3537
- "name": "defaultAccordionConfig",
3570
+ "name": "defaultAiCriteriaSearchConfig",
3538
3571
  "type": {
3539
3572
  "text": "object"
3540
3573
  },
@@ -3542,57 +3575,103 @@
3542
3575
  },
3543
3576
  {
3544
3577
  "kind": "variable",
3545
- "name": "foundationAccordion",
3546
- "description": "The Foundation Accordion",
3547
- "privacy": "public"
3578
+ "name": "foundationAiCriteriaSearch"
3548
3579
  }
3549
3580
  ],
3550
3581
  "exports": [
3551
3582
  {
3552
3583
  "kind": "js",
3553
- "name": "Accordion",
3584
+ "name": "AiCriteriaSearch",
3554
3585
  "declaration": {
3555
- "name": "Accordion",
3556
- "module": "src/accordion/accordion.ts"
3586
+ "name": "AiCriteriaSearch",
3587
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3557
3588
  }
3558
3589
  },
3559
3590
  {
3560
3591
  "kind": "js",
3561
- "name": "foundationAccordionShadowOptions",
3592
+ "name": "foundationAiCriteriaSearchShadowOptions",
3562
3593
  "declaration": {
3563
- "name": "foundationAccordionShadowOptions",
3564
- "module": "src/accordion/accordion.ts"
3594
+ "name": "foundationAiCriteriaSearchShadowOptions",
3595
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3565
3596
  }
3566
3597
  },
3567
3598
  {
3568
3599
  "kind": "js",
3569
- "name": "defaultAccordionConfig",
3600
+ "name": "defaultAiCriteriaSearchConfig",
3570
3601
  "declaration": {
3571
- "name": "defaultAccordionConfig",
3572
- "module": "src/accordion/accordion.ts"
3602
+ "name": "defaultAiCriteriaSearchConfig",
3603
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3573
3604
  }
3574
3605
  },
3575
3606
  {
3576
3607
  "kind": "js",
3577
- "name": "foundationAccordion",
3608
+ "name": "foundationAiCriteriaSearch",
3578
3609
  "declaration": {
3579
- "name": "foundationAccordion",
3580
- "module": "src/accordion/accordion.ts"
3610
+ "name": "foundationAiCriteriaSearch",
3611
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3581
3612
  }
3582
3613
  }
3583
3614
  ]
3584
3615
  },
3585
3616
  {
3586
3617
  "kind": "javascript-module",
3587
- "path": "src/accordion/index.ts",
3618
+ "path": "src/ai-criteria-search/index.ts",
3588
3619
  "declarations": [],
3589
3620
  "exports": [
3621
+ {
3622
+ "kind": "js",
3623
+ "name": "AiCriteriaSearch",
3624
+ "declaration": {
3625
+ "name": "AiCriteriaSearch",
3626
+ "module": "./ai-criteria-search"
3627
+ }
3628
+ },
3629
+ {
3630
+ "kind": "js",
3631
+ "name": "defaultAiCriteriaSearchConfig",
3632
+ "declaration": {
3633
+ "name": "defaultAiCriteriaSearchConfig",
3634
+ "module": "./ai-criteria-search"
3635
+ }
3636
+ },
3637
+ {
3638
+ "kind": "js",
3639
+ "name": "foundationAiCriteriaSearch",
3640
+ "declaration": {
3641
+ "name": "foundationAiCriteriaSearch",
3642
+ "module": "./ai-criteria-search"
3643
+ }
3644
+ },
3645
+ {
3646
+ "kind": "js",
3647
+ "name": "foundationAiCriteriaSearchShadowOptions",
3648
+ "declaration": {
3649
+ "name": "foundationAiCriteriaSearchShadowOptions",
3650
+ "module": "./ai-criteria-search"
3651
+ }
3652
+ },
3653
+ {
3654
+ "kind": "js",
3655
+ "name": "foundationAiCriteriaSearchStyles",
3656
+ "declaration": {
3657
+ "name": "foundationAiCriteriaSearchStyles",
3658
+ "module": "./ai-criteria-search.styles"
3659
+ }
3660
+ },
3661
+ {
3662
+ "kind": "js",
3663
+ "name": "foundationAiCriteriaSearchTemplate",
3664
+ "declaration": {
3665
+ "name": "foundationAiCriteriaSearchTemplate",
3666
+ "module": "./ai-criteria-search.template"
3667
+ }
3668
+ },
3590
3669
  {
3591
3670
  "kind": "js",
3592
3671
  "name": "*",
3593
3672
  "declaration": {
3594
3673
  "name": "*",
3595
- "package": "./accordion.template"
3674
+ "package": "./validation/criteria-ir"
3596
3675
  }
3597
3676
  },
3598
3677
  {
@@ -3600,7 +3679,7 @@
3600
3679
  "name": "*",
3601
3680
  "declaration": {
3602
3681
  "name": "*",
3603
- "package": "./accordion.styles"
3682
+ "package": "./validation/operator-map"
3604
3683
  }
3605
3684
  },
3606
3685
  {
@@ -3608,7 +3687,82 @@
3608
3687
  "name": "*",
3609
3688
  "declaration": {
3610
3689
  "name": "*",
3611
- "package": "./accordion"
3690
+ "package": "./validation/schema-validator"
3691
+ }
3692
+ }
3693
+ ]
3694
+ },
3695
+ {
3696
+ "kind": "javascript-module",
3697
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3698
+ "declarations": [
3699
+ {
3700
+ "kind": "function",
3701
+ "name": "formatValidationErrors",
3702
+ "return": {
3703
+ "type": {
3704
+ "text": "string"
3705
+ }
3706
+ },
3707
+ "parameters": [
3708
+ {
3709
+ "name": "errors",
3710
+ "type": {
3711
+ "text": "ValidationError[]"
3712
+ }
3713
+ }
3714
+ ],
3715
+ "description": "Formats validation errors into a user-friendly message."
3716
+ },
3717
+ {
3718
+ "kind": "function",
3719
+ "name": "showCriteriaError",
3720
+ "return": {
3721
+ "type": {
3722
+ "text": "void"
3723
+ }
3724
+ },
3725
+ "parameters": [
3726
+ {
3727
+ "name": "title",
3728
+ "type": {
3729
+ "text": "string"
3730
+ },
3731
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3732
+ },
3733
+ {
3734
+ "name": "body",
3735
+ "type": {
3736
+ "text": "string"
3737
+ },
3738
+ "description": "Error message to display"
3739
+ },
3740
+ {
3741
+ "name": "tagName",
3742
+ "type": {
3743
+ "text": "string"
3744
+ },
3745
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3746
+ }
3747
+ ],
3748
+ "description": "Shows a criteria error as a toast notification."
3749
+ }
3750
+ ],
3751
+ "exports": [
3752
+ {
3753
+ "kind": "js",
3754
+ "name": "formatValidationErrors",
3755
+ "declaration": {
3756
+ "name": "formatValidationErrors",
3757
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3758
+ }
3759
+ },
3760
+ {
3761
+ "kind": "js",
3762
+ "name": "showCriteriaError",
3763
+ "declaration": {
3764
+ "name": "showCriteriaError",
3765
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3612
3766
  }
3613
3767
  }
3614
3768
  ]
@@ -59719,6 +59873,12 @@
59719
59873
  }
59720
59874
  ]
59721
59875
  },
59876
+ {
59877
+ "kind": "javascript-module",
59878
+ "path": "src/utils/popover-position.ts",
59879
+ "declarations": [],
59880
+ "exports": []
59881
+ },
59722
59882
  {
59723
59883
  "kind": "javascript-module",
59724
59884
  "path": "src/utils/tooltip.ts",