@genesislcap/foundation-ui 15.57.0 → 15.58.1-FUI-2629.4

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,11 +1526,11 @@
1526
1526
  },
1527
1527
  {
1528
1528
  "kind": "javascript-module",
1529
- "path": "src/accordion/accordion.styles.ts",
1529
+ "path": "src/accordion-item/accordion-item.styles.ts",
1530
1530
  "declarations": [
1531
1531
  {
1532
1532
  "kind": "function",
1533
- "name": "foundationAccordionStyles",
1533
+ "name": "foundationAccordionItemStyles",
1534
1534
  "return": {
1535
1535
  "type": {
1536
1536
  "text": "ElementStyles"
@@ -1555,24 +1555,24 @@
1555
1555
  "exports": [
1556
1556
  {
1557
1557
  "kind": "js",
1558
- "name": "foundationAccordionStyles",
1558
+ "name": "foundationAccordionItemStyles",
1559
1559
  "declaration": {
1560
- "name": "foundationAccordionStyles",
1561
- "module": "src/accordion/accordion.styles.ts"
1560
+ "name": "foundationAccordionItemStyles",
1561
+ "module": "src/accordion-item/accordion-item.styles.ts"
1562
1562
  }
1563
1563
  }
1564
1564
  ]
1565
1565
  },
1566
1566
  {
1567
1567
  "kind": "javascript-module",
1568
- "path": "src/accordion/accordion.template.ts",
1568
+ "path": "src/accordion-item/accordion-item.template.ts",
1569
1569
  "declarations": [
1570
1570
  {
1571
1571
  "kind": "function",
1572
- "name": "foundationAccordionTemplate",
1572
+ "name": "foundationAccordionItemTemplate",
1573
1573
  "return": {
1574
1574
  "type": {
1575
- "text": "ViewTemplate<Accordion>"
1575
+ "text": "ViewTemplate<AccordionItem>"
1576
1576
  }
1577
1577
  },
1578
1578
  "parameters": [
@@ -1594,237 +1594,116 @@
1594
1594
  "exports": [
1595
1595
  {
1596
1596
  "kind": "js",
1597
- "name": "foundationAccordionTemplate",
1597
+ "name": "foundationAccordionItemTemplate",
1598
1598
  "declaration": {
1599
- "name": "foundationAccordionTemplate",
1600
- "module": "src/accordion/accordion.template.ts"
1599
+ "name": "foundationAccordionItemTemplate",
1600
+ "module": "src/accordion-item/accordion-item.template.ts"
1601
1601
  }
1602
1602
  }
1603
1603
  ]
1604
1604
  },
1605
1605
  {
1606
1606
  "kind": "javascript-module",
1607
- "path": "src/accordion/accordion.ts",
1607
+ "path": "src/accordion-item/accordion-item.ts",
1608
1608
  "declarations": [
1609
1609
  {
1610
1610
  "kind": "class",
1611
1611
  "description": "",
1612
- "name": "Accordion",
1612
+ "name": "AccordionItem",
1613
1613
  "superclass": {
1614
- "name": "FASTAccordion",
1615
- "package": "@microsoft/fast-foundation"
1614
+ "name": "FASTAccordionItem",
1615
+ "package": "@microsoft/fast-components"
1616
1616
  },
1617
- "tagName": "%%prefix%%-accordion",
1617
+ "tagName": "%%prefix%%-accordion-item",
1618
1618
  "customElement": true,
1619
1619
  "attributes": [
1620
1620
  {
1621
- "name": "expand-mode",
1622
- "type": {
1623
- "text": "AccordionExpandMode"
1624
- },
1625
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1626
- "fieldName": "expandmode",
1627
- "inheritedFrom": {
1628
- "name": "Accordion",
1629
- "module": "src/accordion/accordion.ts"
1630
- }
1631
- }
1632
- ],
1633
- "members": [
1634
- {
1635
- "kind": "field",
1636
- "name": "expandmode",
1621
+ "name": "heading-level",
1637
1622
  "type": {
1638
- "text": "AccordionExpandMode"
1623
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1639
1624
  },
1640
- "privacy": "public",
1641
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
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",
1642
1628
  "inheritedFrom": {
1643
- "name": "Accordion",
1644
- "module": "src/accordion/accordion.ts"
1629
+ "name": "AccordionItem",
1630
+ "module": "src/accordion-item/accordion-item.ts"
1645
1631
  }
1646
1632
  },
1647
1633
  {
1648
- "kind": "field",
1649
- "name": "activeid",
1650
1634
  "type": {
1651
- "text": "string | null"
1635
+ "text": "boolean"
1652
1636
  },
1653
- "privacy": "private",
1637
+ "default": "false",
1638
+ "description": "Expands or collapses the item.",
1639
+ "fieldName": "expanded",
1654
1640
  "inheritedFrom": {
1655
- "name": "Accordion",
1656
- "module": "src/accordion/accordion.ts"
1641
+ "name": "AccordionItem",
1642
+ "module": "src/accordion-item/accordion-item.ts"
1657
1643
  }
1658
1644
  },
1659
1645
  {
1660
- "kind": "field",
1661
- "name": "activeItemIndex",
1646
+ "name": "id",
1662
1647
  "type": {
1663
- "text": "number"
1648
+ "text": "string"
1664
1649
  },
1665
- "privacy": "private",
1666
- "default": "0",
1650
+ "description": "The item ID",
1651
+ "fieldName": "id",
1667
1652
  "inheritedFrom": {
1668
- "name": "Accordion",
1669
- "module": "src/accordion/accordion.ts"
1653
+ "name": "AccordionItem",
1654
+ "module": "src/accordion-item/accordion-item.ts"
1670
1655
  }
1671
- },
1656
+ }
1657
+ ],
1658
+ "members": [
1672
1659
  {
1673
1660
  "kind": "field",
1674
- "name": "accordionIds",
1661
+ "name": "headinglevel",
1675
1662
  "type": {
1676
- "text": "Array<string | null>"
1677
- },
1678
- "privacy": "private",
1679
- "inheritedFrom": {
1680
- "name": "Accordion",
1681
- "module": "src/accordion/accordion.ts"
1682
- }
1683
- },
1684
- {
1685
- "kind": "field",
1686
- "name": "change",
1687
- "privacy": "private",
1688
- "inheritedFrom": {
1689
- "name": "Accordion",
1690
- "module": "src/accordion/accordion.ts"
1691
- }
1692
- },
1693
- {
1694
- "kind": "method",
1695
- "name": "findExpandedItem",
1696
- "privacy": "private",
1697
- "return": {
1698
- "type": {
1699
- "text": "AccordionItem | null"
1700
- }
1663
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1701
1664
  },
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.",
1702
1668
  "inheritedFrom": {
1703
- "name": "Accordion",
1704
- "module": "src/accordion/accordion.ts"
1669
+ "name": "AccordionItem",
1670
+ "module": "src/accordion-item/accordion-item.ts"
1705
1671
  }
1706
1672
  },
1707
1673
  {
1708
1674
  "kind": "field",
1709
- "name": "setItems",
1710
- "privacy": "private",
1711
- "inheritedFrom": {
1712
- "name": "Accordion",
1713
- "module": "src/accordion/accordion.ts"
1714
- }
1715
- },
1716
- {
1717
- "kind": "method",
1718
- "name": "resetItems",
1719
- "privacy": "private",
1720
- "return": {
1721
- "type": {
1722
- "text": "void"
1723
- }
1675
+ "name": "expanded",
1676
+ "type": {
1677
+ "text": "boolean"
1724
1678
  },
1679
+ "privacy": "public",
1680
+ "default": "false",
1681
+ "description": "Expands or collapses the item.",
1725
1682
  "inheritedFrom": {
1726
- "name": "Accordion",
1727
- "module": "src/accordion/accordion.ts"
1728
- }
1729
- },
1730
- {
1731
- "kind": "field",
1732
- "name": "removeItemListeners",
1733
- "privacy": "private",
1734
- "inheritedFrom": {
1735
- "name": "Accordion",
1736
- "module": "src/accordion/accordion.ts"
1683
+ "name": "AccordionItem",
1684
+ "module": "src/accordion-item/accordion-item.ts"
1737
1685
  }
1738
1686
  },
1739
1687
  {
1740
1688
  "kind": "field",
1741
- "name": "activeItemChange",
1742
- "privacy": "private",
1743
- "inheritedFrom": {
1744
- "name": "Accordion",
1745
- "module": "src/accordion/accordion.ts"
1746
- }
1747
- },
1748
- {
1749
- "kind": "method",
1750
- "name": "getItemIds",
1751
- "privacy": "private",
1752
- "return": {
1753
- "type": {
1754
- "text": "Array<string | null>"
1755
- }
1756
- },
1757
- "inheritedFrom": {
1758
- "name": "Accordion",
1759
- "module": "src/accordion/accordion.ts"
1760
- }
1761
- },
1762
- {
1763
- "kind": "method",
1764
- "name": "isSingleExpandMode",
1765
- "privacy": "private",
1766
- "return": {
1767
- "type": {
1768
- "text": "boolean"
1769
- }
1689
+ "name": "id",
1690
+ "type": {
1691
+ "text": "string"
1770
1692
  },
1693
+ "privacy": "public",
1694
+ "description": "The item ID",
1771
1695
  "inheritedFrom": {
1772
- "name": "Accordion",
1773
- "module": "src/accordion/accordion.ts"
1774
- }
1775
- },
1776
- {
1777
- "kind": "field",
1778
- "name": "handleItemKeyDown",
1779
- "privacy": "private",
1780
- "inheritedFrom": {
1781
- "name": "Accordion",
1782
- "module": "src/accordion/accordion.ts"
1696
+ "name": "AccordionItem",
1697
+ "module": "src/accordion-item/accordion-item.ts"
1783
1698
  }
1784
1699
  },
1785
1700
  {
1786
1701
  "kind": "field",
1787
- "name": "handleItemFocus",
1788
- "privacy": "private",
1789
- "inheritedFrom": {
1790
- "name": "Accordion",
1791
- "module": "src/accordion/accordion.ts"
1792
- }
1793
- },
1794
- {
1795
- "kind": "method",
1796
- "name": "adjust",
1797
- "privacy": "private",
1798
- "return": {
1799
- "type": {
1800
- "text": "void"
1801
- }
1802
- },
1803
- "parameters": [
1804
- {
1805
- "name": "adjustment",
1806
- "type": {
1807
- "text": "number"
1808
- }
1809
- }
1810
- ],
1811
- "inheritedFrom": {
1812
- "name": "Accordion",
1813
- "module": "src/accordion/accordion.ts"
1814
- }
1815
- },
1816
- {
1817
- "kind": "method",
1818
- "name": "focusItem",
1702
+ "name": "change",
1819
1703
  "privacy": "private",
1820
- "return": {
1821
- "type": {
1822
- "text": "void"
1823
- }
1824
- },
1825
1704
  "inheritedFrom": {
1826
- "name": "Accordion",
1827
- "module": "src/accordion/accordion.ts"
1705
+ "name": "AccordionItem",
1706
+ "module": "src/accordion-item/accordion-item.ts"
1828
1707
  }
1829
1708
  },
1830
1709
  {
@@ -1941,18 +1820,18 @@
1941
1820
  ],
1942
1821
  "events": [
1943
1822
  {
1944
- "description": "Fires a custom 'change' event when the active item changes",
1823
+ "description": "Fires a custom 'change' event when the button is invoked",
1945
1824
  "name": "change",
1946
1825
  "inheritedFrom": {
1947
- "name": "Accordion",
1948
- "module": "src/accordion/accordion.ts"
1826
+ "name": "AccordionItem",
1827
+ "module": "src/accordion-item/accordion-item.ts"
1949
1828
  }
1950
1829
  }
1951
1830
  ]
1952
1831
  },
1953
1832
  {
1954
1833
  "kind": "variable",
1955
- "name": "foundationAccordionShadowOptions",
1834
+ "name": "foundationAccordionItemShadowOptions",
1956
1835
  "type": {
1957
1836
  "text": "ShadowRootInit"
1958
1837
  },
@@ -1960,57 +1839,57 @@
1960
1839
  },
1961
1840
  {
1962
1841
  "kind": "variable",
1963
- "name": "defaultAccordionConfig",
1842
+ "name": "defaultAccordionItemConfig",
1964
1843
  "type": {
1965
1844
  "text": "object"
1966
1845
  },
1967
- "default": "{}"
1846
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1968
1847
  },
1969
1848
  {
1970
1849
  "kind": "variable",
1971
- "name": "foundationAccordion",
1972
- "description": "The Foundation Accordion",
1850
+ "name": "foundationAccordionItem",
1851
+ "description": "The Foundation Accordion Item",
1973
1852
  "privacy": "public"
1974
1853
  }
1975
1854
  ],
1976
1855
  "exports": [
1977
1856
  {
1978
1857
  "kind": "js",
1979
- "name": "Accordion",
1858
+ "name": "AccordionItem",
1980
1859
  "declaration": {
1981
- "name": "Accordion",
1982
- "module": "src/accordion/accordion.ts"
1860
+ "name": "AccordionItem",
1861
+ "module": "src/accordion-item/accordion-item.ts"
1983
1862
  }
1984
1863
  },
1985
1864
  {
1986
1865
  "kind": "js",
1987
- "name": "foundationAccordionShadowOptions",
1866
+ "name": "foundationAccordionItemShadowOptions",
1988
1867
  "declaration": {
1989
- "name": "foundationAccordionShadowOptions",
1990
- "module": "src/accordion/accordion.ts"
1868
+ "name": "foundationAccordionItemShadowOptions",
1869
+ "module": "src/accordion-item/accordion-item.ts"
1991
1870
  }
1992
1871
  },
1993
1872
  {
1994
1873
  "kind": "js",
1995
- "name": "defaultAccordionConfig",
1874
+ "name": "defaultAccordionItemConfig",
1996
1875
  "declaration": {
1997
- "name": "defaultAccordionConfig",
1998
- "module": "src/accordion/accordion.ts"
1876
+ "name": "defaultAccordionItemConfig",
1877
+ "module": "src/accordion-item/accordion-item.ts"
1999
1878
  }
2000
1879
  },
2001
1880
  {
2002
1881
  "kind": "js",
2003
- "name": "foundationAccordion",
1882
+ "name": "foundationAccordionItem",
2004
1883
  "declaration": {
2005
- "name": "foundationAccordion",
2006
- "module": "src/accordion/accordion.ts"
1884
+ "name": "foundationAccordionItem",
1885
+ "module": "src/accordion-item/accordion-item.ts"
2007
1886
  }
2008
1887
  }
2009
1888
  ]
2010
1889
  },
2011
1890
  {
2012
1891
  "kind": "javascript-module",
2013
- "path": "src/accordion/index.ts",
1892
+ "path": "src/accordion-item/index.ts",
2014
1893
  "declarations": [],
2015
1894
  "exports": [
2016
1895
  {
@@ -2018,7 +1897,7 @@
2018
1897
  "name": "*",
2019
1898
  "declaration": {
2020
1899
  "name": "*",
2021
- "package": "./accordion.template"
1900
+ "package": "./accordion-item.template"
2022
1901
  }
2023
1902
  },
2024
1903
  {
@@ -2026,7 +1905,7 @@
2026
1905
  "name": "*",
2027
1906
  "declaration": {
2028
1907
  "name": "*",
2029
- "package": "./accordion.styles"
1908
+ "package": "./accordion-item.styles"
2030
1909
  }
2031
1910
  },
2032
1911
  {
@@ -2034,7 +1913,7 @@
2034
1913
  "name": "*",
2035
1914
  "declaration": {
2036
1915
  "name": "*",
2037
- "package": "./accordion"
1916
+ "package": "./accordion-item"
2038
1917
  }
2039
1918
  }
2040
1919
  ]
@@ -2186,7 +2065,7 @@
2186
2065
  "kind": "field",
2187
2066
  "name": "actions",
2188
2067
  "type": {
2189
- "text": "ActionMenuItem[]"
2068
+ "text": "ActionMenuItems"
2190
2069
  }
2191
2070
  },
2192
2071
  {
@@ -2235,6 +2114,14 @@
2235
2114
  },
2236
2115
  "default": "'Actions'"
2237
2116
  },
2117
+ {
2118
+ "kind": "field",
2119
+ "name": "iconName",
2120
+ "type": {
2121
+ "text": "string"
2122
+ },
2123
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2124
+ },
2238
2125
  {
2239
2126
  "kind": "field",
2240
2127
  "name": "open",
@@ -2287,11 +2174,29 @@
2287
2174
  "text": "HTMLElement"
2288
2175
  }
2289
2176
  },
2177
+ {
2178
+ "kind": "field",
2179
+ "name": "positionTracker",
2180
+ "type": {
2181
+ "text": "AnchoredPopoverPositionTracker | undefined"
2182
+ },
2183
+ "privacy": "private"
2184
+ },
2290
2185
  {
2291
2186
  "kind": "method",
2292
2187
  "name": "updateMenuPosition",
2293
2188
  "privacy": "private"
2294
2189
  },
2190
+ {
2191
+ "kind": "method",
2192
+ "name": "startTrackingPosition",
2193
+ "privacy": "private"
2194
+ },
2195
+ {
2196
+ "kind": "method",
2197
+ "name": "stopTrackingPosition",
2198
+ "privacy": "private"
2199
+ },
2295
2200
  {
2296
2201
  "kind": "method",
2297
2202
  "name": "definitionChanged",
@@ -2320,6 +2225,37 @@
2320
2225
  "kind": "method",
2321
2226
  "name": "toggleActionsMenuVisibility"
2322
2227
  },
2228
+ {
2229
+ "kind": "method",
2230
+ "name": "onPopoverToggle",
2231
+ "parameters": [
2232
+ {
2233
+ "name": "event",
2234
+ "type": {
2235
+ "text": "Event"
2236
+ }
2237
+ }
2238
+ ],
2239
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2240
+ },
2241
+ {
2242
+ "kind": "method",
2243
+ "name": "onIconOpenerKeydown",
2244
+ "return": {
2245
+ "type": {
2246
+ "text": "boolean"
2247
+ }
2248
+ },
2249
+ "parameters": [
2250
+ {
2251
+ "name": "event",
2252
+ "type": {
2253
+ "text": "KeyboardEvent"
2254
+ }
2255
+ }
2256
+ ],
2257
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2258
+ },
2323
2259
  {
2324
2260
  "kind": "method",
2325
2261
  "name": "onActionMenuItemClick",
@@ -2332,6 +2268,32 @@
2332
2268
  }
2333
2269
  ]
2334
2270
  },
2271
+ {
2272
+ "kind": "method",
2273
+ "name": "isActionDisabled",
2274
+ "return": {
2275
+ "type": {
2276
+ "text": "boolean"
2277
+ }
2278
+ },
2279
+ "parameters": [
2280
+ {
2281
+ "name": "action",
2282
+ "type": {
2283
+ "text": "ActionMenuItem"
2284
+ }
2285
+ }
2286
+ ],
2287
+ "description": "Resolves an action's `isDisabled` flag or row-data function for the current row."
2288
+ },
2289
+ {
2290
+ "kind": "field",
2291
+ "name": "resolvedActions",
2292
+ "type": {
2293
+ "text": "ActionMenuItem[]"
2294
+ },
2295
+ "readonly": true
2296
+ },
2335
2297
  {
2336
2298
  "kind": "field",
2337
2299
  "name": "allActions",
@@ -2514,6 +2476,14 @@
2514
2476
  "default": "'Actions'",
2515
2477
  "fieldName": "name"
2516
2478
  },
2479
+ {
2480
+ "name": "icon-name",
2481
+ "type": {
2482
+ "text": "string"
2483
+ },
2484
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
2485
+ "fieldName": "iconName"
2486
+ },
2517
2487
  {
2518
2488
  "name": "open",
2519
2489
  "type": {
@@ -2612,208 +2582,275 @@
2612
2582
  },
2613
2583
  {
2614
2584
  "kind": "javascript-module",
2615
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2585
+ "path": "src/accordion/accordion.styles.ts",
2616
2586
  "declarations": [
2617
2587
  {
2618
- "kind": "variable",
2619
- "name": "foundationAiCriteriaSearchStyles",
2620
- "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`"
2588
+ "kind": "function",
2589
+ "name": "foundationAccordionStyles",
2590
+ "return": {
2591
+ "type": {
2592
+ "text": "ElementStyles"
2593
+ }
2594
+ },
2595
+ "parameters": [
2596
+ {
2597
+ "name": "context",
2598
+ "type": {
2599
+ "text": "ElementDefinitionContext"
2600
+ }
2601
+ },
2602
+ {
2603
+ "name": "definition",
2604
+ "type": {
2605
+ "text": "FoundationElementDefinition"
2606
+ }
2607
+ }
2608
+ ]
2621
2609
  }
2622
2610
  ],
2623
2611
  "exports": [
2624
2612
  {
2625
2613
  "kind": "js",
2626
- "name": "foundationAiCriteriaSearchStyles",
2614
+ "name": "foundationAccordionStyles",
2627
2615
  "declaration": {
2628
- "name": "foundationAiCriteriaSearchStyles",
2629
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2616
+ "name": "foundationAccordionStyles",
2617
+ "module": "src/accordion/accordion.styles.ts"
2630
2618
  }
2631
2619
  }
2632
2620
  ]
2633
2621
  },
2634
2622
  {
2635
2623
  "kind": "javascript-module",
2636
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2624
+ "path": "src/accordion/accordion.template.ts",
2637
2625
  "declarations": [
2638
2626
  {
2639
- "kind": "variable",
2640
- "name": "foundationAiCriteriaSearchTemplate",
2641
- "type": {
2642
- "text": "ViewTemplate<AiCriteriaSearch>"
2627
+ "kind": "function",
2628
+ "name": "foundationAccordionTemplate",
2629
+ "return": {
2630
+ "type": {
2631
+ "text": "ViewTemplate<Accordion>"
2632
+ }
2643
2633
  },
2644
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2634
+ "parameters": [
2635
+ {
2636
+ "name": "context",
2637
+ "type": {
2638
+ "text": "ElementDefinitionContext"
2639
+ }
2640
+ },
2641
+ {
2642
+ "name": "definition",
2643
+ "type": {
2644
+ "text": "FoundationElementDefinition"
2645
+ }
2646
+ }
2647
+ ]
2645
2648
  }
2646
2649
  ],
2647
2650
  "exports": [
2648
2651
  {
2649
2652
  "kind": "js",
2650
- "name": "foundationAiCriteriaSearchTemplate",
2653
+ "name": "foundationAccordionTemplate",
2651
2654
  "declaration": {
2652
- "name": "foundationAiCriteriaSearchTemplate",
2653
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2655
+ "name": "foundationAccordionTemplate",
2656
+ "module": "src/accordion/accordion.template.ts"
2654
2657
  }
2655
2658
  }
2656
2659
  ]
2657
2660
  },
2658
2661
  {
2659
2662
  "kind": "javascript-module",
2660
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2663
+ "path": "src/accordion/accordion.ts",
2661
2664
  "declarations": [
2662
2665
  {
2663
2666
  "kind": "class",
2664
- "description": "Natural-language criteria search input with AI interpretation.",
2665
- "name": "AiCriteriaSearch",
2666
- "members": [
2667
- {
2668
- "kind": "field",
2669
- "name": "providerRegistry",
2670
- "type": {
2671
- "text": "AIProviderRegistry"
2672
- }
2673
- },
2667
+ "description": "",
2668
+ "name": "Accordion",
2669
+ "superclass": {
2670
+ "name": "FASTAccordion",
2671
+ "package": "@microsoft/fast-foundation"
2672
+ },
2673
+ "tagName": "%%prefix%%-accordion",
2674
+ "customElement": true,
2675
+ "attributes": [
2674
2676
  {
2675
- "kind": "field",
2676
- "name": "placeholder",
2677
+ "name": "expand-mode",
2677
2678
  "type": {
2678
- "text": "string"
2679
+ "text": "AccordionExpandMode"
2679
2680
  },
2680
- "default": "'Describe your search criteria in natural language...'"
2681
- },
2682
- {
2683
- "kind": "field",
2684
- "name": "disabled",
2685
- "type": {
2686
- "text": "boolean"
2681
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2682
+ "fieldName": "expandmode",
2683
+ "inheritedFrom": {
2684
+ "name": "Accordion",
2685
+ "module": "src/accordion/accordion.ts"
2687
2686
  }
2688
- },
2689
- {
2690
- "kind": "field",
2691
- "name": "inputValue",
2692
- "type": {
2693
- "text": "string"
2694
- },
2695
- "default": "''"
2696
- },
2687
+ }
2688
+ ],
2689
+ "members": [
2697
2690
  {
2698
2691
  "kind": "field",
2699
- "name": "isInterpreting",
2692
+ "name": "expandmode",
2700
2693
  "type": {
2701
- "text": "boolean"
2694
+ "text": "AccordionExpandMode"
2702
2695
  },
2703
- "default": "false"
2696
+ "privacy": "public",
2697
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2698
+ "inheritedFrom": {
2699
+ "name": "Accordion",
2700
+ "module": "src/accordion/accordion.ts"
2701
+ }
2704
2702
  },
2705
2703
  {
2706
2704
  "kind": "field",
2707
- "name": "lastValidCriteria",
2705
+ "name": "activeid",
2708
2706
  "type": {
2709
2707
  "text": "string | null"
2710
2708
  },
2711
- "default": "null"
2712
- },
2713
- {
2714
- "kind": "field",
2715
- "name": "activeGroups",
2716
- "type": {
2717
- "text": "CriteriaGroup[]"
2718
- },
2719
- "default": "[]"
2709
+ "privacy": "private",
2710
+ "inheritedFrom": {
2711
+ "name": "Accordion",
2712
+ "module": "src/accordion/accordion.ts"
2713
+ }
2720
2714
  },
2721
2715
  {
2722
2716
  "kind": "field",
2723
- "name": "showingChips",
2717
+ "name": "activeItemIndex",
2724
2718
  "type": {
2725
- "text": "boolean"
2719
+ "text": "number"
2726
2720
  },
2727
- "default": "false"
2721
+ "privacy": "private",
2722
+ "default": "0",
2723
+ "inheritedFrom": {
2724
+ "name": "Accordion",
2725
+ "module": "src/accordion/accordion.ts"
2726
+ }
2728
2727
  },
2729
2728
  {
2730
2729
  "kind": "field",
2731
- "name": "fieldMetadata",
2730
+ "name": "accordionIds",
2732
2731
  "type": {
2733
- "text": "MetadataDetail[] | string[]"
2732
+ "text": "Array<string | null>"
2734
2733
  },
2735
- "default": "[]"
2734
+ "privacy": "private",
2735
+ "inheritedFrom": {
2736
+ "name": "Accordion",
2737
+ "module": "src/accordion/accordion.ts"
2738
+ }
2736
2739
  },
2737
2740
  {
2738
2741
  "kind": "field",
2739
- "name": "isRecording",
2740
- "type": {
2741
- "text": "boolean"
2742
- },
2743
- "default": "false"
2742
+ "name": "change",
2743
+ "privacy": "private",
2744
+ "inheritedFrom": {
2745
+ "name": "Accordion",
2746
+ "module": "src/accordion/accordion.ts"
2747
+ }
2744
2748
  },
2745
2749
  {
2746
- "kind": "field",
2747
- "name": "textAreaRef",
2748
- "type": {
2749
- "text": "HTMLTextAreaElement"
2750
+ "kind": "method",
2751
+ "name": "findExpandedItem",
2752
+ "privacy": "private",
2753
+ "return": {
2754
+ "type": {
2755
+ "text": "AccordionItem | null"
2756
+ }
2750
2757
  },
2751
- "privacy": "public"
2758
+ "inheritedFrom": {
2759
+ "name": "Accordion",
2760
+ "module": "src/accordion/accordion.ts"
2761
+ }
2752
2762
  },
2753
2763
  {
2754
2764
  "kind": "field",
2755
- "name": "stopRecording",
2756
- "type": {
2757
- "text": "(() => void) | null"
2758
- },
2765
+ "name": "setItems",
2759
2766
  "privacy": "private",
2760
- "default": "null"
2767
+ "inheritedFrom": {
2768
+ "name": "Accordion",
2769
+ "module": "src/accordion/accordion.ts"
2770
+ }
2761
2771
  },
2762
2772
  {
2763
- "kind": "field",
2764
- "name": "speechApplyDebounceTimer",
2765
- "type": {
2766
- "text": "ReturnType<typeof setTimeout> | null"
2767
- },
2773
+ "kind": "method",
2774
+ "name": "resetItems",
2768
2775
  "privacy": "private",
2769
- "default": "null"
2776
+ "return": {
2777
+ "type": {
2778
+ "text": "void"
2779
+ }
2780
+ },
2781
+ "inheritedFrom": {
2782
+ "name": "Accordion",
2783
+ "module": "src/accordion/accordion.ts"
2784
+ }
2770
2785
  },
2771
2786
  {
2772
2787
  "kind": "field",
2773
- "name": "speechAvailable",
2774
- "type": {
2775
- "text": "boolean"
2776
- },
2777
- "readonly": true
2788
+ "name": "removeItemListeners",
2789
+ "privacy": "private",
2790
+ "inheritedFrom": {
2791
+ "name": "Accordion",
2792
+ "module": "src/accordion/accordion.ts"
2793
+ }
2778
2794
  },
2779
2795
  {
2780
2796
  "kind": "field",
2781
- "name": "criteriaChips",
2782
- "type": {
2783
- "text": "CriteriaChip[]"
2784
- },
2785
- "readonly": true
2797
+ "name": "activeItemChange",
2798
+ "privacy": "private",
2799
+ "inheritedFrom": {
2800
+ "name": "Accordion",
2801
+ "module": "src/accordion/accordion.ts"
2802
+ }
2786
2803
  },
2787
2804
  {
2788
2805
  "kind": "method",
2789
- "name": "getFieldLabel",
2806
+ "name": "getItemIds",
2790
2807
  "privacy": "private",
2791
2808
  "return": {
2792
2809
  "type": {
2793
- "text": "string"
2810
+ "text": "Array<string | null>"
2794
2811
  }
2795
2812
  },
2796
- "parameters": [
2797
- {
2798
- "name": "fieldName",
2799
- "type": {
2800
- "text": "string"
2801
- }
2802
- }
2803
- ]
2813
+ "inheritedFrom": {
2814
+ "name": "Accordion",
2815
+ "module": "src/accordion/accordion.ts"
2816
+ }
2804
2817
  },
2805
2818
  {
2806
2819
  "kind": "method",
2807
- "name": "toggleCriteriaView",
2820
+ "name": "isSingleExpandMode",
2821
+ "privacy": "private",
2808
2822
  "return": {
2809
2823
  "type": {
2810
- "text": "void"
2824
+ "text": "boolean"
2811
2825
  }
2826
+ },
2827
+ "inheritedFrom": {
2828
+ "name": "Accordion",
2829
+ "module": "src/accordion/accordion.ts"
2830
+ }
2831
+ },
2832
+ {
2833
+ "kind": "field",
2834
+ "name": "handleItemKeyDown",
2835
+ "privacy": "private",
2836
+ "inheritedFrom": {
2837
+ "name": "Accordion",
2838
+ "module": "src/accordion/accordion.ts"
2839
+ }
2840
+ },
2841
+ {
2842
+ "kind": "field",
2843
+ "name": "handleItemFocus",
2844
+ "privacy": "private",
2845
+ "inheritedFrom": {
2846
+ "name": "Accordion",
2847
+ "module": "src/accordion/accordion.ts"
2812
2848
  }
2813
2849
  },
2814
2850
  {
2815
2851
  "kind": "method",
2816
- "name": "removeChip",
2852
+ "name": "adjust",
2853
+ "privacy": "private",
2817
2854
  "return": {
2818
2855
  "type": {
2819
2856
  "text": "void"
@@ -2821,49 +2858,31 @@
2821
2858
  },
2822
2859
  "parameters": [
2823
2860
  {
2824
- "name": "groupIndex",
2825
- "type": {
2826
- "text": "number"
2827
- }
2828
- },
2829
- {
2830
- "name": "clauseIndex",
2861
+ "name": "adjustment",
2831
2862
  "type": {
2832
2863
  "text": "number"
2833
2864
  }
2834
2865
  }
2835
- ]
2866
+ ],
2867
+ "inheritedFrom": {
2868
+ "name": "Accordion",
2869
+ "module": "src/accordion/accordion.ts"
2870
+ }
2836
2871
  },
2837
2872
  {
2838
2873
  "kind": "method",
2839
- "name": "clearChips",
2874
+ "name": "focusItem",
2875
+ "privacy": "private",
2840
2876
  "return": {
2841
2877
  "type": {
2842
2878
  "text": "void"
2843
2879
  }
2880
+ },
2881
+ "inheritedFrom": {
2882
+ "name": "Accordion",
2883
+ "module": "src/accordion/accordion.ts"
2844
2884
  }
2845
2885
  },
2846
- {
2847
- "kind": "method",
2848
- "name": "handleSubmit"
2849
- },
2850
- {
2851
- "kind": "method",
2852
- "name": "handleBlur"
2853
- },
2854
- {
2855
- "kind": "method",
2856
- "name": "clear"
2857
- },
2858
- {
2859
- "kind": "method",
2860
- "name": "toggleSpeechInput"
2861
- },
2862
- {
2863
- "kind": "method",
2864
- "name": "clearSpeechApplyDebounce",
2865
- "privacy": "private"
2866
- },
2867
2886
  {
2868
2887
  "kind": "field",
2869
2888
  "name": "_presentation",
@@ -2978,48 +2997,26 @@
2978
2997
  ],
2979
2998
  "events": [
2980
2999
  {
2981
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2982
- "name": "criteria-changed"
2983
- },
2984
- {
2985
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2986
- "name": "validation-errors"
2987
- }
2988
- ],
2989
- "attributes": [
2990
- {
2991
- "name": "placeholder",
2992
- "type": {
2993
- "text": "string"
2994
- },
2995
- "default": "'Describe your search criteria in natural language...'",
2996
- "fieldName": "placeholder"
2997
- },
2998
- {
2999
- "type": {
3000
- "text": "boolean"
3001
- },
3002
- "fieldName": "disabled"
3000
+ "description": "Fires a custom 'change' event when the active item changes",
3001
+ "name": "change",
3002
+ "inheritedFrom": {
3003
+ "name": "Accordion",
3004
+ "module": "src/accordion/accordion.ts"
3005
+ }
3003
3006
  }
3004
- ],
3005
- "superclass": {
3006
- "name": "FoundationElement",
3007
- "package": "@microsoft/fast-foundation"
3008
- },
3009
- "tagName": "%%prefix%%-ai-criteria-search",
3010
- "customElement": true
3007
+ ]
3011
3008
  },
3012
3009
  {
3013
3010
  "kind": "variable",
3014
- "name": "foundationAiCriteriaSearchShadowOptions",
3011
+ "name": "foundationAccordionShadowOptions",
3015
3012
  "type": {
3016
3013
  "text": "ShadowRootInit"
3017
3014
  },
3018
- "default": "undefined"
3015
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3019
3016
  },
3020
3017
  {
3021
3018
  "kind": "variable",
3022
- "name": "defaultAiCriteriaSearchConfig",
3019
+ "name": "defaultAccordionConfig",
3023
3020
  "type": {
3024
3021
  "text": "object"
3025
3022
  },
@@ -3027,103 +3024,57 @@
3027
3024
  },
3028
3025
  {
3029
3026
  "kind": "variable",
3030
- "name": "foundationAiCriteriaSearch"
3027
+ "name": "foundationAccordion",
3028
+ "description": "The Foundation Accordion",
3029
+ "privacy": "public"
3031
3030
  }
3032
3031
  ],
3033
3032
  "exports": [
3034
3033
  {
3035
3034
  "kind": "js",
3036
- "name": "AiCriteriaSearch",
3035
+ "name": "Accordion",
3037
3036
  "declaration": {
3038
- "name": "AiCriteriaSearch",
3039
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3037
+ "name": "Accordion",
3038
+ "module": "src/accordion/accordion.ts"
3040
3039
  }
3041
3040
  },
3042
3041
  {
3043
3042
  "kind": "js",
3044
- "name": "foundationAiCriteriaSearchShadowOptions",
3043
+ "name": "foundationAccordionShadowOptions",
3045
3044
  "declaration": {
3046
- "name": "foundationAiCriteriaSearchShadowOptions",
3047
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3045
+ "name": "foundationAccordionShadowOptions",
3046
+ "module": "src/accordion/accordion.ts"
3048
3047
  }
3049
3048
  },
3050
3049
  {
3051
3050
  "kind": "js",
3052
- "name": "defaultAiCriteriaSearchConfig",
3051
+ "name": "defaultAccordionConfig",
3053
3052
  "declaration": {
3054
- "name": "defaultAiCriteriaSearchConfig",
3055
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3053
+ "name": "defaultAccordionConfig",
3054
+ "module": "src/accordion/accordion.ts"
3056
3055
  }
3057
3056
  },
3058
3057
  {
3059
3058
  "kind": "js",
3060
- "name": "foundationAiCriteriaSearch",
3059
+ "name": "foundationAccordion",
3061
3060
  "declaration": {
3062
- "name": "foundationAiCriteriaSearch",
3063
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3061
+ "name": "foundationAccordion",
3062
+ "module": "src/accordion/accordion.ts"
3064
3063
  }
3065
3064
  }
3066
3065
  ]
3067
3066
  },
3068
3067
  {
3069
3068
  "kind": "javascript-module",
3070
- "path": "src/ai-criteria-search/index.ts",
3069
+ "path": "src/accordion/index.ts",
3071
3070
  "declarations": [],
3072
3071
  "exports": [
3073
- {
3074
- "kind": "js",
3075
- "name": "AiCriteriaSearch",
3076
- "declaration": {
3077
- "name": "AiCriteriaSearch",
3078
- "module": "./ai-criteria-search"
3079
- }
3080
- },
3081
- {
3082
- "kind": "js",
3083
- "name": "defaultAiCriteriaSearchConfig",
3084
- "declaration": {
3085
- "name": "defaultAiCriteriaSearchConfig",
3086
- "module": "./ai-criteria-search"
3087
- }
3088
- },
3089
- {
3090
- "kind": "js",
3091
- "name": "foundationAiCriteriaSearch",
3092
- "declaration": {
3093
- "name": "foundationAiCriteriaSearch",
3094
- "module": "./ai-criteria-search"
3095
- }
3096
- },
3097
- {
3098
- "kind": "js",
3099
- "name": "foundationAiCriteriaSearchShadowOptions",
3100
- "declaration": {
3101
- "name": "foundationAiCriteriaSearchShadowOptions",
3102
- "module": "./ai-criteria-search"
3103
- }
3104
- },
3105
- {
3106
- "kind": "js",
3107
- "name": "foundationAiCriteriaSearchStyles",
3108
- "declaration": {
3109
- "name": "foundationAiCriteriaSearchStyles",
3110
- "module": "./ai-criteria-search.styles"
3111
- }
3112
- },
3113
- {
3114
- "kind": "js",
3115
- "name": "foundationAiCriteriaSearchTemplate",
3116
- "declaration": {
3117
- "name": "foundationAiCriteriaSearchTemplate",
3118
- "module": "./ai-criteria-search.template"
3119
- }
3120
- },
3121
3072
  {
3122
3073
  "kind": "js",
3123
3074
  "name": "*",
3124
3075
  "declaration": {
3125
3076
  "name": "*",
3126
- "package": "./validation/criteria-ir"
3077
+ "package": "./accordion.template"
3127
3078
  }
3128
3079
  },
3129
3080
  {
@@ -3131,7 +3082,7 @@
3131
3082
  "name": "*",
3132
3083
  "declaration": {
3133
3084
  "name": "*",
3134
- "package": "./validation/operator-map"
3085
+ "package": "./accordion.styles"
3135
3086
  }
3136
3087
  },
3137
3088
  {
@@ -3139,157 +3090,64 @@
3139
3090
  "name": "*",
3140
3091
  "declaration": {
3141
3092
  "name": "*",
3142
- "package": "./validation/schema-validator"
3143
- }
3144
- }
3145
- ]
3146
- },
3147
- {
3148
- "kind": "javascript-module",
3149
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3150
- "declarations": [
3151
- {
3152
- "kind": "function",
3153
- "name": "formatValidationErrors",
3154
- "return": {
3155
- "type": {
3156
- "text": "string"
3157
- }
3158
- },
3159
- "parameters": [
3160
- {
3161
- "name": "errors",
3162
- "type": {
3163
- "text": "ValidationError[]"
3164
- }
3165
- }
3166
- ],
3167
- "description": "Formats validation errors into a user-friendly message."
3168
- },
3169
- {
3170
- "kind": "function",
3171
- "name": "showCriteriaError",
3172
- "return": {
3173
- "type": {
3174
- "text": "void"
3175
- }
3176
- },
3177
- "parameters": [
3178
- {
3179
- "name": "title",
3180
- "type": {
3181
- "text": "string"
3182
- },
3183
- "description": "Notification title (e.g. \"Criteria validation error\")"
3184
- },
3185
- {
3186
- "name": "body",
3187
- "type": {
3188
- "text": "string"
3189
- },
3190
- "description": "Error message to display"
3191
- },
3192
- {
3193
- "name": "tagName",
3194
- "type": {
3195
- "text": "string"
3196
- },
3197
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3198
- }
3199
- ],
3200
- "description": "Shows a criteria error as a toast notification."
3201
- }
3202
- ],
3203
- "exports": [
3204
- {
3205
- "kind": "js",
3206
- "name": "formatValidationErrors",
3207
- "declaration": {
3208
- "name": "formatValidationErrors",
3209
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3210
- }
3211
- },
3212
- {
3213
- "kind": "js",
3214
- "name": "showCriteriaError",
3215
- "declaration": {
3216
- "name": "showCriteriaError",
3217
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3093
+ "package": "./accordion"
3218
3094
  }
3219
3095
  }
3220
3096
  ]
3221
3097
  },
3222
3098
  {
3223
3099
  "kind": "javascript-module",
3224
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3100
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3225
3101
  "declarations": [
3226
3102
  {
3227
- "kind": "function",
3228
- "name": "foundationAiIndicatorStyles",
3229
- "return": {
3230
- "type": {
3231
- "text": "ElementStyles"
3232
- }
3233
- },
3234
- "parameters": [
3235
- {
3236
- "name": "context",
3237
- "type": {
3238
- "text": "ElementDefinitionContext"
3239
- }
3240
- },
3241
- {
3242
- "name": "definition",
3243
- "type": {
3244
- "text": "FoundationElementDefinition"
3245
- }
3246
- }
3247
- ]
3103
+ "kind": "variable",
3104
+ "name": "foundationAiCriteriaSearchStyles",
3105
+ "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`"
3248
3106
  }
3249
3107
  ],
3250
3108
  "exports": [
3251
3109
  {
3252
3110
  "kind": "js",
3253
- "name": "foundationAiIndicatorStyles",
3111
+ "name": "foundationAiCriteriaSearchStyles",
3254
3112
  "declaration": {
3255
- "name": "foundationAiIndicatorStyles",
3256
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3113
+ "name": "foundationAiCriteriaSearchStyles",
3114
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3257
3115
  }
3258
3116
  }
3259
3117
  ]
3260
3118
  },
3261
3119
  {
3262
3120
  "kind": "javascript-module",
3263
- "path": "src/ai-indicator/ai-indicator.template.ts",
3121
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3264
3122
  "declarations": [
3265
3123
  {
3266
3124
  "kind": "variable",
3267
- "name": "foundationAiIndicatorTemplate",
3125
+ "name": "foundationAiCriteriaSearchTemplate",
3268
3126
  "type": {
3269
- "text": "ViewTemplate<AiIndicator>"
3127
+ "text": "ViewTemplate<AiCriteriaSearch>"
3270
3128
  },
3271
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3129
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3272
3130
  }
3273
3131
  ],
3274
3132
  "exports": [
3275
3133
  {
3276
3134
  "kind": "js",
3277
- "name": "foundationAiIndicatorTemplate",
3135
+ "name": "foundationAiCriteriaSearchTemplate",
3278
3136
  "declaration": {
3279
- "name": "foundationAiIndicatorTemplate",
3280
- "module": "src/ai-indicator/ai-indicator.template.ts"
3137
+ "name": "foundationAiCriteriaSearchTemplate",
3138
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3281
3139
  }
3282
3140
  }
3283
3141
  ]
3284
3142
  },
3285
3143
  {
3286
3144
  "kind": "javascript-module",
3287
- "path": "src/ai-indicator/ai-indicator.ts",
3145
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3288
3146
  "declarations": [
3289
3147
  {
3290
3148
  "kind": "class",
3291
- "description": "",
3292
- "name": "AiIndicator",
3149
+ "description": "Natural-language criteria search input with AI interpretation.",
3150
+ "name": "AiCriteriaSearch",
3293
3151
  "members": [
3294
3152
  {
3295
3153
  "kind": "field",
@@ -3300,25 +3158,54 @@
3300
3158
  },
3301
3159
  {
3302
3160
  "kind": "field",
3303
- "name": "aiProvider",
3161
+ "name": "placeholder",
3304
3162
  "type": {
3305
- "text": "AIProvider | undefined"
3163
+ "text": "string"
3306
3164
  },
3307
- "privacy": "private",
3308
- "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3309
- "readonly": true
3165
+ "default": "'Describe your search criteria in natural language...'"
3310
3166
  },
3311
3167
  {
3312
3168
  "kind": "field",
3313
- "name": "status",
3169
+ "name": "disabled",
3314
3170
  "type": {
3315
- "text": "AIStatus | null"
3171
+ "text": "boolean"
3172
+ }
3173
+ },
3174
+ {
3175
+ "kind": "field",
3176
+ "name": "inputValue",
3177
+ "type": {
3178
+ "text": "string"
3179
+ },
3180
+ "default": "''"
3181
+ },
3182
+ {
3183
+ "kind": "field",
3184
+ "name": "isInterpreting",
3185
+ "type": {
3186
+ "text": "boolean"
3187
+ },
3188
+ "default": "false"
3189
+ },
3190
+ {
3191
+ "kind": "field",
3192
+ "name": "lastValidCriteria",
3193
+ "type": {
3194
+ "text": "string | null"
3316
3195
  },
3317
3196
  "default": "null"
3318
3197
  },
3319
3198
  {
3320
3199
  "kind": "field",
3321
- "name": "open",
3200
+ "name": "activeGroups",
3201
+ "type": {
3202
+ "text": "CriteriaGroup[]"
3203
+ },
3204
+ "default": "[]"
3205
+ },
3206
+ {
3207
+ "kind": "field",
3208
+ "name": "showingChips",
3322
3209
  "type": {
3323
3210
  "text": "boolean"
3324
3211
  },
@@ -3326,15 +3213,15 @@
3326
3213
  },
3327
3214
  {
3328
3215
  "kind": "field",
3329
- "name": "state",
3216
+ "name": "fieldMetadata",
3330
3217
  "type": {
3331
- "text": "AIIndicatorState"
3218
+ "text": "MetadataDetail[] | string[]"
3332
3219
  },
3333
- "default": "'none'"
3220
+ "default": "[]"
3334
3221
  },
3335
3222
  {
3336
3223
  "kind": "field",
3337
- "name": "isInstalling",
3224
+ "name": "isRecording",
3338
3225
  "type": {
3339
3226
  "text": "boolean"
3340
3227
  },
@@ -3342,29 +3229,33 @@
3342
3229
  },
3343
3230
  {
3344
3231
  "kind": "field",
3345
- "name": "pollTimer",
3232
+ "name": "textAreaRef",
3346
3233
  "type": {
3347
- "text": "ReturnType<typeof setInterval> | null"
3234
+ "text": "HTMLTextAreaElement"
3348
3235
  },
3349
- "privacy": "private",
3350
- "default": "null"
3236
+ "privacy": "public"
3351
3237
  },
3352
3238
  {
3353
3239
  "kind": "field",
3354
- "name": "clickOutside",
3355
- "privacy": "private"
3240
+ "name": "stopRecording",
3241
+ "type": {
3242
+ "text": "(() => void) | null"
3243
+ },
3244
+ "privacy": "private",
3245
+ "default": "null"
3356
3246
  },
3357
3247
  {
3358
3248
  "kind": "field",
3359
- "name": "chromeStatusLabel",
3249
+ "name": "speechApplyDebounceTimer",
3360
3250
  "type": {
3361
- "text": "string | null"
3251
+ "text": "ReturnType<typeof setTimeout> | null"
3362
3252
  },
3363
- "readonly": true
3253
+ "privacy": "private",
3254
+ "default": "null"
3364
3255
  },
3365
3256
  {
3366
3257
  "kind": "field",
3367
- "name": "canInstall",
3258
+ "name": "speechAvailable",
3368
3259
  "type": {
3369
3260
  "text": "boolean"
3370
3261
  },
@@ -3372,69 +3263,65 @@
3372
3263
  },
3373
3264
  {
3374
3265
  "kind": "field",
3375
- "name": "isDownloading",
3266
+ "name": "criteriaChips",
3376
3267
  "type": {
3377
- "text": "boolean"
3268
+ "text": "CriteriaChip[]"
3378
3269
  },
3379
3270
  "readonly": true
3380
3271
  },
3381
3272
  {
3382
3273
  "kind": "method",
3383
- "name": "openChanged",
3274
+ "name": "getFieldLabel",
3275
+ "privacy": "private",
3384
3276
  "return": {
3385
3277
  "type": {
3386
- "text": "void"
3278
+ "text": "string"
3387
3279
  }
3388
- }
3389
- },
3390
- {
3391
- "kind": "method",
3392
- "name": "handleClickOutside",
3393
- "privacy": "private",
3280
+ },
3394
3281
  "parameters": [
3395
3282
  {
3396
- "name": "event",
3283
+ "name": "fieldName",
3397
3284
  "type": {
3398
- "text": "MouseEvent"
3285
+ "text": "string"
3399
3286
  }
3400
3287
  }
3401
3288
  ]
3402
3289
  },
3403
3290
  {
3404
3291
  "kind": "method",
3405
- "name": "toggleDropdown"
3406
- },
3407
- {
3408
- "kind": "method",
3409
- "name": "refreshStatus",
3292
+ "name": "toggleCriteriaView",
3410
3293
  "return": {
3411
3294
  "type": {
3412
- "text": "Promise<void>"
3295
+ "text": "void"
3413
3296
  }
3414
3297
  }
3415
3298
  },
3416
3299
  {
3417
3300
  "kind": "method",
3418
- "name": "deriveState",
3419
- "privacy": "private",
3301
+ "name": "removeChip",
3420
3302
  "return": {
3421
3303
  "type": {
3422
- "text": "AIIndicatorState"
3304
+ "text": "void"
3423
3305
  }
3424
3306
  },
3425
3307
  "parameters": [
3426
3308
  {
3427
- "name": "s",
3309
+ "name": "groupIndex",
3428
3310
  "type": {
3429
- "text": "AIStatus | null"
3311
+ "text": "number"
3312
+ }
3313
+ },
3314
+ {
3315
+ "name": "clauseIndex",
3316
+ "type": {
3317
+ "text": "number"
3430
3318
  }
3431
3319
  }
3432
3320
  ]
3433
3321
  },
3434
3322
  {
3435
3323
  "kind": "method",
3436
- "name": "maybeStartPolling",
3437
- "privacy": "private",
3324
+ "name": "clearChips",
3438
3325
  "return": {
3439
3326
  "type": {
3440
3327
  "text": "void"
@@ -3443,32 +3330,24 @@
3443
3330
  },
3444
3331
  {
3445
3332
  "kind": "method",
3446
- "name": "startPolling",
3447
- "privacy": "private",
3448
- "return": {
3449
- "type": {
3450
- "text": "void"
3451
- }
3452
- }
3333
+ "name": "handleSubmit"
3453
3334
  },
3454
3335
  {
3455
3336
  "kind": "method",
3456
- "name": "stopPolling",
3457
- "privacy": "private",
3458
- "return": {
3459
- "type": {
3460
- "text": "void"
3461
- }
3462
- }
3337
+ "name": "handleBlur"
3463
3338
  },
3464
3339
  {
3465
3340
  "kind": "method",
3466
- "name": "onInstall",
3467
- "return": {
3468
- "type": {
3469
- "text": "Promise<void>"
3470
- }
3471
- }
3341
+ "name": "clear"
3342
+ },
3343
+ {
3344
+ "kind": "method",
3345
+ "name": "toggleSpeechInput"
3346
+ },
3347
+ {
3348
+ "kind": "method",
3349
+ "name": "clearSpeechApplyDebounce",
3350
+ "privacy": "private"
3472
3351
  },
3473
3352
  {
3474
3353
  "kind": "field",
@@ -3582,99 +3461,256 @@
3582
3461
  }
3583
3462
  }
3584
3463
  ],
3464
+ "events": [
3465
+ {
3466
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3467
+ "name": "criteria-changed"
3468
+ },
3469
+ {
3470
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3471
+ "name": "validation-errors"
3472
+ }
3473
+ ],
3474
+ "attributes": [
3475
+ {
3476
+ "name": "placeholder",
3477
+ "type": {
3478
+ "text": "string"
3479
+ },
3480
+ "default": "'Describe your search criteria in natural language...'",
3481
+ "fieldName": "placeholder"
3482
+ },
3483
+ {
3484
+ "type": {
3485
+ "text": "boolean"
3486
+ },
3487
+ "fieldName": "disabled"
3488
+ }
3489
+ ],
3585
3490
  "superclass": {
3586
3491
  "name": "FoundationElement",
3587
3492
  "package": "@microsoft/fast-foundation"
3588
3493
  },
3589
- "tagName": "%%prefix%%-ai-indicator",
3494
+ "tagName": "%%prefix%%-ai-criteria-search",
3590
3495
  "customElement": true
3591
3496
  },
3592
3497
  {
3593
3498
  "kind": "variable",
3594
- "name": "foundationAiIndicator"
3499
+ "name": "foundationAiCriteriaSearchShadowOptions",
3500
+ "type": {
3501
+ "text": "ShadowRootInit"
3502
+ },
3503
+ "default": "undefined"
3504
+ },
3505
+ {
3506
+ "kind": "variable",
3507
+ "name": "defaultAiCriteriaSearchConfig",
3508
+ "type": {
3509
+ "text": "object"
3510
+ },
3511
+ "default": "{}"
3512
+ },
3513
+ {
3514
+ "kind": "variable",
3515
+ "name": "foundationAiCriteriaSearch"
3595
3516
  }
3596
3517
  ],
3597
3518
  "exports": [
3598
3519
  {
3599
3520
  "kind": "js",
3600
- "name": "AiIndicator",
3521
+ "name": "AiCriteriaSearch",
3601
3522
  "declaration": {
3602
- "name": "AiIndicator",
3603
- "module": "src/ai-indicator/ai-indicator.ts"
3523
+ "name": "AiCriteriaSearch",
3524
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3604
3525
  }
3605
3526
  },
3606
3527
  {
3607
3528
  "kind": "js",
3608
- "name": "foundationAiIndicator",
3529
+ "name": "foundationAiCriteriaSearchShadowOptions",
3609
3530
  "declaration": {
3610
- "name": "foundationAiIndicator",
3611
- "module": "src/ai-indicator/ai-indicator.ts"
3531
+ "name": "foundationAiCriteriaSearchShadowOptions",
3532
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3533
+ }
3534
+ },
3535
+ {
3536
+ "kind": "js",
3537
+ "name": "defaultAiCriteriaSearchConfig",
3538
+ "declaration": {
3539
+ "name": "defaultAiCriteriaSearchConfig",
3540
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3541
+ }
3542
+ },
3543
+ {
3544
+ "kind": "js",
3545
+ "name": "foundationAiCriteriaSearch",
3546
+ "declaration": {
3547
+ "name": "foundationAiCriteriaSearch",
3548
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3612
3549
  }
3613
3550
  }
3614
3551
  ]
3615
3552
  },
3616
3553
  {
3617
3554
  "kind": "javascript-module",
3618
- "path": "src/ai-indicator/index.ts",
3555
+ "path": "src/ai-criteria-search/index.ts",
3619
3556
  "declarations": [],
3620
3557
  "exports": [
3621
3558
  {
3622
3559
  "kind": "js",
3623
- "name": "AiIndicator",
3560
+ "name": "AiCriteriaSearch",
3624
3561
  "declaration": {
3625
- "name": "AiIndicator",
3626
- "module": "./ai-indicator"
3562
+ "name": "AiCriteriaSearch",
3563
+ "module": "./ai-criteria-search"
3627
3564
  }
3628
3565
  },
3629
3566
  {
3630
3567
  "kind": "js",
3631
- "name": "foundationAiIndicator",
3568
+ "name": "defaultAiCriteriaSearchConfig",
3632
3569
  "declaration": {
3633
- "name": "foundationAiIndicator",
3634
- "module": "./ai-indicator"
3570
+ "name": "defaultAiCriteriaSearchConfig",
3571
+ "module": "./ai-criteria-search"
3635
3572
  }
3636
3573
  },
3637
3574
  {
3638
3575
  "kind": "js",
3639
- "name": "type",
3576
+ "name": "foundationAiCriteriaSearch",
3640
3577
  "declaration": {
3641
- "name": "type",
3642
- "module": "./ai-indicator"
3578
+ "name": "foundationAiCriteriaSearch",
3579
+ "module": "./ai-criteria-search"
3643
3580
  }
3644
3581
  },
3645
3582
  {
3646
3583
  "kind": "js",
3647
- "name": "AIIndicatorState",
3584
+ "name": "foundationAiCriteriaSearchShadowOptions",
3648
3585
  "declaration": {
3649
- "name": "AIIndicatorState",
3650
- "module": "./ai-indicator"
3586
+ "name": "foundationAiCriteriaSearchShadowOptions",
3587
+ "module": "./ai-criteria-search"
3651
3588
  }
3652
3589
  },
3653
3590
  {
3654
3591
  "kind": "js",
3655
- "name": "foundationAiIndicatorTemplate",
3592
+ "name": "foundationAiCriteriaSearchStyles",
3656
3593
  "declaration": {
3657
- "name": "foundationAiIndicatorTemplate",
3658
- "module": "./ai-indicator.template"
3594
+ "name": "foundationAiCriteriaSearchStyles",
3595
+ "module": "./ai-criteria-search.styles"
3659
3596
  }
3660
3597
  },
3661
3598
  {
3662
3599
  "kind": "js",
3663
- "name": "foundationAiIndicatorStyles",
3600
+ "name": "foundationAiCriteriaSearchTemplate",
3664
3601
  "declaration": {
3665
- "name": "foundationAiIndicatorStyles",
3666
- "module": "./ai-indicator.styles"
3602
+ "name": "foundationAiCriteriaSearchTemplate",
3603
+ "module": "./ai-criteria-search.template"
3604
+ }
3605
+ },
3606
+ {
3607
+ "kind": "js",
3608
+ "name": "*",
3609
+ "declaration": {
3610
+ "name": "*",
3611
+ "package": "./validation/criteria-ir"
3612
+ }
3613
+ },
3614
+ {
3615
+ "kind": "js",
3616
+ "name": "*",
3617
+ "declaration": {
3618
+ "name": "*",
3619
+ "package": "./validation/operator-map"
3620
+ }
3621
+ },
3622
+ {
3623
+ "kind": "js",
3624
+ "name": "*",
3625
+ "declaration": {
3626
+ "name": "*",
3627
+ "package": "./validation/schema-validator"
3667
3628
  }
3668
3629
  }
3669
3630
  ]
3670
3631
  },
3671
3632
  {
3672
3633
  "kind": "javascript-module",
3673
- "path": "src/accordion-item/accordion-item.styles.ts",
3634
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3674
3635
  "declarations": [
3675
3636
  {
3676
3637
  "kind": "function",
3677
- "name": "foundationAccordionItemStyles",
3638
+ "name": "formatValidationErrors",
3639
+ "return": {
3640
+ "type": {
3641
+ "text": "string"
3642
+ }
3643
+ },
3644
+ "parameters": [
3645
+ {
3646
+ "name": "errors",
3647
+ "type": {
3648
+ "text": "ValidationError[]"
3649
+ }
3650
+ }
3651
+ ],
3652
+ "description": "Formats validation errors into a user-friendly message."
3653
+ },
3654
+ {
3655
+ "kind": "function",
3656
+ "name": "showCriteriaError",
3657
+ "return": {
3658
+ "type": {
3659
+ "text": "void"
3660
+ }
3661
+ },
3662
+ "parameters": [
3663
+ {
3664
+ "name": "title",
3665
+ "type": {
3666
+ "text": "string"
3667
+ },
3668
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3669
+ },
3670
+ {
3671
+ "name": "body",
3672
+ "type": {
3673
+ "text": "string"
3674
+ },
3675
+ "description": "Error message to display"
3676
+ },
3677
+ {
3678
+ "name": "tagName",
3679
+ "type": {
3680
+ "text": "string"
3681
+ },
3682
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3683
+ }
3684
+ ],
3685
+ "description": "Shows a criteria error as a toast notification."
3686
+ }
3687
+ ],
3688
+ "exports": [
3689
+ {
3690
+ "kind": "js",
3691
+ "name": "formatValidationErrors",
3692
+ "declaration": {
3693
+ "name": "formatValidationErrors",
3694
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3695
+ }
3696
+ },
3697
+ {
3698
+ "kind": "js",
3699
+ "name": "showCriteriaError",
3700
+ "declaration": {
3701
+ "name": "showCriteriaError",
3702
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3703
+ }
3704
+ }
3705
+ ]
3706
+ },
3707
+ {
3708
+ "kind": "javascript-module",
3709
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3710
+ "declarations": [
3711
+ {
3712
+ "kind": "function",
3713
+ "name": "foundationAiIndicatorStyles",
3678
3714
  "return": {
3679
3715
  "type": {
3680
3716
  "text": "ElementStyles"
@@ -3699,155 +3735,224 @@
3699
3735
  "exports": [
3700
3736
  {
3701
3737
  "kind": "js",
3702
- "name": "foundationAccordionItemStyles",
3738
+ "name": "foundationAiIndicatorStyles",
3703
3739
  "declaration": {
3704
- "name": "foundationAccordionItemStyles",
3705
- "module": "src/accordion-item/accordion-item.styles.ts"
3740
+ "name": "foundationAiIndicatorStyles",
3741
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3706
3742
  }
3707
3743
  }
3708
3744
  ]
3709
3745
  },
3710
3746
  {
3711
3747
  "kind": "javascript-module",
3712
- "path": "src/accordion-item/accordion-item.template.ts",
3748
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3713
3749
  "declarations": [
3714
3750
  {
3715
- "kind": "function",
3716
- "name": "foundationAccordionItemTemplate",
3717
- "return": {
3718
- "type": {
3719
- "text": "ViewTemplate<AccordionItem>"
3720
- }
3751
+ "kind": "variable",
3752
+ "name": "foundationAiIndicatorTemplate",
3753
+ "type": {
3754
+ "text": "ViewTemplate<AiIndicator>"
3721
3755
  },
3722
- "parameters": [
3723
- {
3724
- "name": "context",
3725
- "type": {
3726
- "text": "ElementDefinitionContext"
3727
- }
3728
- },
3729
- {
3730
- "name": "definition",
3731
- "type": {
3732
- "text": "FoundationElementDefinition"
3733
- }
3734
- }
3735
- ]
3756
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3736
3757
  }
3737
3758
  ],
3738
3759
  "exports": [
3739
3760
  {
3740
3761
  "kind": "js",
3741
- "name": "foundationAccordionItemTemplate",
3762
+ "name": "foundationAiIndicatorTemplate",
3742
3763
  "declaration": {
3743
- "name": "foundationAccordionItemTemplate",
3744
- "module": "src/accordion-item/accordion-item.template.ts"
3764
+ "name": "foundationAiIndicatorTemplate",
3765
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3745
3766
  }
3746
3767
  }
3747
3768
  ]
3748
3769
  },
3749
3770
  {
3750
3771
  "kind": "javascript-module",
3751
- "path": "src/accordion-item/accordion-item.ts",
3772
+ "path": "src/ai-indicator/ai-indicator.ts",
3752
3773
  "declarations": [
3753
3774
  {
3754
3775
  "kind": "class",
3755
3776
  "description": "",
3756
- "name": "AccordionItem",
3757
- "superclass": {
3758
- "name": "FASTAccordionItem",
3759
- "package": "@microsoft/fast-components"
3760
- },
3761
- "tagName": "%%prefix%%-accordion-item",
3762
- "customElement": true,
3763
- "attributes": [
3777
+ "name": "AiIndicator",
3778
+ "members": [
3764
3779
  {
3765
- "name": "heading-level",
3780
+ "kind": "field",
3781
+ "name": "providerRegistry",
3766
3782
  "type": {
3767
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3768
- },
3769
- "default": "2",
3770
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
3771
- "fieldName": "headinglevel",
3772
- "inheritedFrom": {
3773
- "name": "AccordionItem",
3774
- "module": "src/accordion-item/accordion-item.ts"
3783
+ "text": "AIProviderRegistry"
3775
3784
  }
3776
3785
  },
3777
3786
  {
3787
+ "kind": "field",
3788
+ "name": "aiProvider",
3789
+ "type": {
3790
+ "text": "AIProvider | undefined"
3791
+ },
3792
+ "privacy": "private",
3793
+ "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3794
+ "readonly": true
3795
+ },
3796
+ {
3797
+ "kind": "field",
3798
+ "name": "status",
3799
+ "type": {
3800
+ "text": "AIStatus | null"
3801
+ },
3802
+ "default": "null"
3803
+ },
3804
+ {
3805
+ "kind": "field",
3806
+ "name": "open",
3778
3807
  "type": {
3779
3808
  "text": "boolean"
3780
3809
  },
3781
- "default": "false",
3782
- "description": "Expands or collapses the item.",
3783
- "fieldName": "expanded",
3784
- "inheritedFrom": {
3785
- "name": "AccordionItem",
3786
- "module": "src/accordion-item/accordion-item.ts"
3787
- }
3810
+ "default": "false"
3788
3811
  },
3789
3812
  {
3790
- "name": "id",
3813
+ "kind": "field",
3814
+ "name": "state",
3791
3815
  "type": {
3792
- "text": "string"
3816
+ "text": "AIIndicatorState"
3793
3817
  },
3794
- "description": "The item ID",
3795
- "fieldName": "id",
3796
- "inheritedFrom": {
3797
- "name": "AccordionItem",
3798
- "module": "src/accordion-item/accordion-item.ts"
3799
- }
3800
- }
3801
- ],
3802
- "members": [
3818
+ "default": "'none'"
3819
+ },
3803
3820
  {
3804
3821
  "kind": "field",
3805
- "name": "headinglevel",
3822
+ "name": "isInstalling",
3806
3823
  "type": {
3807
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3824
+ "text": "boolean"
3808
3825
  },
3809
- "privacy": "public",
3810
- "default": "2",
3811
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
3812
- "inheritedFrom": {
3813
- "name": "AccordionItem",
3814
- "module": "src/accordion-item/accordion-item.ts"
3815
- }
3826
+ "default": "false"
3816
3827
  },
3817
3828
  {
3818
3829
  "kind": "field",
3819
- "name": "expanded",
3830
+ "name": "pollTimer",
3831
+ "type": {
3832
+ "text": "ReturnType<typeof setInterval> | null"
3833
+ },
3834
+ "privacy": "private",
3835
+ "default": "null"
3836
+ },
3837
+ {
3838
+ "kind": "field",
3839
+ "name": "clickOutside",
3840
+ "privacy": "private"
3841
+ },
3842
+ {
3843
+ "kind": "field",
3844
+ "name": "chromeStatusLabel",
3845
+ "type": {
3846
+ "text": "string | null"
3847
+ },
3848
+ "readonly": true
3849
+ },
3850
+ {
3851
+ "kind": "field",
3852
+ "name": "canInstall",
3820
3853
  "type": {
3821
3854
  "text": "boolean"
3822
3855
  },
3823
- "privacy": "public",
3824
- "default": "false",
3825
- "description": "Expands or collapses the item.",
3826
- "inheritedFrom": {
3827
- "name": "AccordionItem",
3828
- "module": "src/accordion-item/accordion-item.ts"
3829
- }
3856
+ "readonly": true
3830
3857
  },
3831
3858
  {
3832
3859
  "kind": "field",
3833
- "name": "id",
3860
+ "name": "isDownloading",
3834
3861
  "type": {
3835
- "text": "string"
3862
+ "text": "boolean"
3836
3863
  },
3837
- "privacy": "public",
3838
- "description": "The item ID",
3839
- "inheritedFrom": {
3840
- "name": "AccordionItem",
3841
- "module": "src/accordion-item/accordion-item.ts"
3864
+ "readonly": true
3865
+ },
3866
+ {
3867
+ "kind": "method",
3868
+ "name": "openChanged",
3869
+ "return": {
3870
+ "type": {
3871
+ "text": "void"
3872
+ }
3842
3873
  }
3843
3874
  },
3844
3875
  {
3845
- "kind": "field",
3846
- "name": "change",
3876
+ "kind": "method",
3877
+ "name": "handleClickOutside",
3847
3878
  "privacy": "private",
3848
- "inheritedFrom": {
3849
- "name": "AccordionItem",
3850
- "module": "src/accordion-item/accordion-item.ts"
3879
+ "parameters": [
3880
+ {
3881
+ "name": "event",
3882
+ "type": {
3883
+ "text": "MouseEvent"
3884
+ }
3885
+ }
3886
+ ]
3887
+ },
3888
+ {
3889
+ "kind": "method",
3890
+ "name": "toggleDropdown"
3891
+ },
3892
+ {
3893
+ "kind": "method",
3894
+ "name": "refreshStatus",
3895
+ "return": {
3896
+ "type": {
3897
+ "text": "Promise<void>"
3898
+ }
3899
+ }
3900
+ },
3901
+ {
3902
+ "kind": "method",
3903
+ "name": "deriveState",
3904
+ "privacy": "private",
3905
+ "return": {
3906
+ "type": {
3907
+ "text": "AIIndicatorState"
3908
+ }
3909
+ },
3910
+ "parameters": [
3911
+ {
3912
+ "name": "s",
3913
+ "type": {
3914
+ "text": "AIStatus | null"
3915
+ }
3916
+ }
3917
+ ]
3918
+ },
3919
+ {
3920
+ "kind": "method",
3921
+ "name": "maybeStartPolling",
3922
+ "privacy": "private",
3923
+ "return": {
3924
+ "type": {
3925
+ "text": "void"
3926
+ }
3927
+ }
3928
+ },
3929
+ {
3930
+ "kind": "method",
3931
+ "name": "startPolling",
3932
+ "privacy": "private",
3933
+ "return": {
3934
+ "type": {
3935
+ "text": "void"
3936
+ }
3937
+ }
3938
+ },
3939
+ {
3940
+ "kind": "method",
3941
+ "name": "stopPolling",
3942
+ "privacy": "private",
3943
+ "return": {
3944
+ "type": {
3945
+ "text": "void"
3946
+ }
3947
+ }
3948
+ },
3949
+ {
3950
+ "kind": "method",
3951
+ "name": "onInstall",
3952
+ "return": {
3953
+ "type": {
3954
+ "text": "Promise<void>"
3955
+ }
3851
3956
  }
3852
3957
  },
3853
3958
  {
@@ -3962,102 +4067,88 @@
3962
4067
  }
3963
4068
  }
3964
4069
  ],
3965
- "events": [
3966
- {
3967
- "description": "Fires a custom 'change' event when the button is invoked",
3968
- "name": "change",
3969
- "inheritedFrom": {
3970
- "name": "AccordionItem",
3971
- "module": "src/accordion-item/accordion-item.ts"
3972
- }
3973
- }
3974
- ]
3975
- },
3976
- {
3977
- "kind": "variable",
3978
- "name": "foundationAccordionItemShadowOptions",
3979
- "type": {
3980
- "text": "ShadowRootInit"
3981
- },
3982
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3983
- },
3984
- {
3985
- "kind": "variable",
3986
- "name": "defaultAccordionItemConfig",
3987
- "type": {
3988
- "text": "object"
4070
+ "superclass": {
4071
+ "name": "FoundationElement",
4072
+ "package": "@microsoft/fast-foundation"
3989
4073
  },
3990
- "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}"
4074
+ "tagName": "%%prefix%%-ai-indicator",
4075
+ "customElement": true
3991
4076
  },
3992
4077
  {
3993
4078
  "kind": "variable",
3994
- "name": "foundationAccordionItem",
3995
- "description": "The Foundation Accordion Item",
3996
- "privacy": "public"
4079
+ "name": "foundationAiIndicator"
3997
4080
  }
3998
4081
  ],
3999
4082
  "exports": [
4000
4083
  {
4001
4084
  "kind": "js",
4002
- "name": "AccordionItem",
4085
+ "name": "AiIndicator",
4003
4086
  "declaration": {
4004
- "name": "AccordionItem",
4005
- "module": "src/accordion-item/accordion-item.ts"
4087
+ "name": "AiIndicator",
4088
+ "module": "src/ai-indicator/ai-indicator.ts"
4006
4089
  }
4007
4090
  },
4008
4091
  {
4009
4092
  "kind": "js",
4010
- "name": "foundationAccordionItemShadowOptions",
4093
+ "name": "foundationAiIndicator",
4011
4094
  "declaration": {
4012
- "name": "foundationAccordionItemShadowOptions",
4013
- "module": "src/accordion-item/accordion-item.ts"
4095
+ "name": "foundationAiIndicator",
4096
+ "module": "src/ai-indicator/ai-indicator.ts"
4097
+ }
4098
+ }
4099
+ ]
4100
+ },
4101
+ {
4102
+ "kind": "javascript-module",
4103
+ "path": "src/ai-indicator/index.ts",
4104
+ "declarations": [],
4105
+ "exports": [
4106
+ {
4107
+ "kind": "js",
4108
+ "name": "AiIndicator",
4109
+ "declaration": {
4110
+ "name": "AiIndicator",
4111
+ "module": "./ai-indicator"
4014
4112
  }
4015
4113
  },
4016
4114
  {
4017
4115
  "kind": "js",
4018
- "name": "defaultAccordionItemConfig",
4116
+ "name": "foundationAiIndicator",
4019
4117
  "declaration": {
4020
- "name": "defaultAccordionItemConfig",
4021
- "module": "src/accordion-item/accordion-item.ts"
4118
+ "name": "foundationAiIndicator",
4119
+ "module": "./ai-indicator"
4022
4120
  }
4023
4121
  },
4024
4122
  {
4025
4123
  "kind": "js",
4026
- "name": "foundationAccordionItem",
4124
+ "name": "type",
4027
4125
  "declaration": {
4028
- "name": "foundationAccordionItem",
4029
- "module": "src/accordion-item/accordion-item.ts"
4126
+ "name": "type",
4127
+ "module": "./ai-indicator"
4030
4128
  }
4031
- }
4032
- ]
4033
- },
4034
- {
4035
- "kind": "javascript-module",
4036
- "path": "src/accordion-item/index.ts",
4037
- "declarations": [],
4038
- "exports": [
4129
+ },
4039
4130
  {
4040
4131
  "kind": "js",
4041
- "name": "*",
4132
+ "name": "AIIndicatorState",
4042
4133
  "declaration": {
4043
- "name": "*",
4044
- "package": "./accordion-item.template"
4134
+ "name": "AIIndicatorState",
4135
+ "module": "./ai-indicator"
4045
4136
  }
4046
4137
  },
4047
4138
  {
4048
4139
  "kind": "js",
4049
- "name": "*",
4140
+ "name": "foundationAiIndicatorTemplate",
4050
4141
  "declaration": {
4051
- "name": "*",
4052
- "package": "./accordion-item.styles"
4142
+ "name": "foundationAiIndicatorTemplate",
4143
+ "module": "./ai-indicator.template"
4053
4144
  }
4054
4145
  },
4055
4146
  {
4056
4147
  "kind": "js",
4057
- "name": "*",
4148
+ "name": "foundationAiIndicatorStyles",
4058
4149
  "declaration": {
4059
- "name": "*",
4060
- "package": "./accordion-item"
4150
+ "name": "foundationAiIndicatorStyles",
4151
+ "module": "./ai-indicator.styles"
4061
4152
  }
4062
4153
  }
4063
4154
  ]
@@ -59561,6 +59652,14 @@
59561
59652
  "package": "./options-datasource-utils"
59562
59653
  }
59563
59654
  },
59655
+ {
59656
+ "kind": "js",
59657
+ "name": "*",
59658
+ "declaration": {
59659
+ "name": "*",
59660
+ "package": "./popover-position"
59661
+ }
59662
+ },
59564
59663
  {
59565
59664
  "kind": "js",
59566
59665
  "name": "*",
@@ -59694,6 +59793,89 @@
59694
59793
  }
59695
59794
  ]
59696
59795
  },
59796
+ {
59797
+ "kind": "javascript-module",
59798
+ "path": "src/utils/popover-position.ts",
59799
+ "declarations": [
59800
+ {
59801
+ "kind": "function",
59802
+ "name": "findScrollableAncestors",
59803
+ "return": {
59804
+ "type": {
59805
+ "text": "(HTMLElement | Document)[]"
59806
+ }
59807
+ },
59808
+ "parameters": [
59809
+ {
59810
+ "name": "element",
59811
+ "type": {
59812
+ "text": "HTMLElement"
59813
+ }
59814
+ }
59815
+ ],
59816
+ "description": "Walks up from `element`, crossing shadow-root boundaries via `.host`, collecting every\nscrollable ancestor (including the anchor's own document).",
59817
+ "privacy": "public"
59818
+ },
59819
+ {
59820
+ "kind": "class",
59821
+ "description": "Keeps a Popover-API element anchored to its trigger while any of the trigger's scrollable\nancestors scroll, and reports back when the trigger has been removed from the DOM (e.g. AG\nGrid row virtualization recycling the row that owns it).",
59822
+ "name": "AnchoredPopoverPositionTracker",
59823
+ "members": [
59824
+ {
59825
+ "kind": "field",
59826
+ "name": "ancestors",
59827
+ "type": {
59828
+ "text": "(HTMLElement | Document)[]"
59829
+ },
59830
+ "privacy": "private",
59831
+ "default": "[]"
59832
+ },
59833
+ {
59834
+ "kind": "field",
59835
+ "name": "handleScroll",
59836
+ "privacy": "private",
59837
+ "readonly": true
59838
+ },
59839
+ {
59840
+ "kind": "method",
59841
+ "name": "start",
59842
+ "return": {
59843
+ "type": {
59844
+ "text": "void"
59845
+ }
59846
+ }
59847
+ },
59848
+ {
59849
+ "kind": "method",
59850
+ "name": "stop",
59851
+ "return": {
59852
+ "type": {
59853
+ "text": "void"
59854
+ }
59855
+ }
59856
+ }
59857
+ ]
59858
+ }
59859
+ ],
59860
+ "exports": [
59861
+ {
59862
+ "kind": "js",
59863
+ "name": "findScrollableAncestors",
59864
+ "declaration": {
59865
+ "name": "findScrollableAncestors",
59866
+ "module": "src/utils/popover-position.ts"
59867
+ }
59868
+ },
59869
+ {
59870
+ "kind": "js",
59871
+ "name": "AnchoredPopoverPositionTracker",
59872
+ "declaration": {
59873
+ "name": "AnchoredPopoverPositionTracker",
59874
+ "module": "src/utils/popover-position.ts"
59875
+ }
59876
+ }
59877
+ ]
59878
+ },
59697
59879
  {
59698
59880
  "kind": "javascript-module",
59699
59881
  "path": "src/utils/tooltip.ts",