@genesislcap/foundation-ui 14.451.0 → 14.451.1-alpha-3c3e1d3.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.
@@ -1398,37 +1398,6 @@
1398
1398
  }
1399
1399
  ]
1400
1400
  },
1401
- {
1402
- "kind": "javascript-module",
1403
- "path": "src/_config/index.ts",
1404
- "declarations": [],
1405
- "exports": [
1406
- {
1407
- "kind": "js",
1408
- "name": "*",
1409
- "declaration": {
1410
- "name": "*",
1411
- "package": "./styles"
1412
- }
1413
- },
1414
- {
1415
- "kind": "js",
1416
- "name": "*",
1417
- "declaration": {
1418
- "name": "*",
1419
- "package": "./tokens"
1420
- }
1421
- },
1422
- {
1423
- "kind": "js",
1424
- "name": "*",
1425
- "declaration": {
1426
- "name": "*",
1427
- "package": "./values"
1428
- }
1429
- }
1430
- ]
1431
- },
1432
1401
  {
1433
1402
  "kind": "javascript-module",
1434
1403
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1825,203 +1794,146 @@
1825
1794
  },
1826
1795
  {
1827
1796
  "kind": "javascript-module",
1828
- "path": "src/actions-menu/actions-menu.styles.ts",
1829
- "declarations": [
1797
+ "path": "src/_config/index.ts",
1798
+ "declarations": [],
1799
+ "exports": [
1830
1800
  {
1831
- "kind": "function",
1832
- "name": "actionsMenuBaseStyles",
1833
- "return": {
1834
- "type": {
1835
- "text": "ElementStyles"
1836
- }
1837
- },
1838
- "parameters": [
1839
- {
1840
- "name": "context",
1841
- "type": {
1842
- "text": "ElementDefinitionContext"
1843
- }
1844
- },
1845
- {
1846
- "name": "definition",
1847
- "type": {
1848
- "text": "FoundationElementDefinition"
1849
- }
1850
- }
1851
- ]
1801
+ "kind": "js",
1802
+ "name": "*",
1803
+ "declaration": {
1804
+ "name": "*",
1805
+ "package": "./styles"
1806
+ }
1852
1807
  },
1853
- {
1854
- "kind": "function",
1855
- "name": "foundationActionsMenuStyles",
1856
- "return": {
1857
- "type": {
1858
- "text": "ElementStyles"
1859
- }
1860
- },
1861
- "parameters": [
1862
- {
1863
- "name": "context",
1864
- "type": {
1865
- "text": "ElementDefinitionContext"
1866
- }
1867
- },
1868
- {
1869
- "name": "definition",
1870
- "type": {
1871
- "text": "FoundationElementDefinition"
1872
- }
1873
- }
1874
- ]
1875
- }
1876
- ],
1877
- "exports": [
1878
1808
  {
1879
1809
  "kind": "js",
1880
- "name": "actionsMenuBaseStyles",
1810
+ "name": "*",
1881
1811
  "declaration": {
1882
- "name": "actionsMenuBaseStyles",
1883
- "module": "src/actions-menu/actions-menu.styles.ts"
1812
+ "name": "*",
1813
+ "package": "./tokens"
1884
1814
  }
1885
1815
  },
1886
1816
  {
1887
1817
  "kind": "js",
1888
- "name": "foundationActionsMenuStyles",
1818
+ "name": "*",
1889
1819
  "declaration": {
1890
- "name": "foundationActionsMenuStyles",
1891
- "module": "src/actions-menu/actions-menu.styles.ts"
1820
+ "name": "*",
1821
+ "package": "./values"
1892
1822
  }
1893
1823
  }
1894
1824
  ]
1895
1825
  },
1896
1826
  {
1897
1827
  "kind": "javascript-module",
1898
- "path": "src/actions-menu/actions-menu.template.ts",
1828
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
1899
1829
  "declarations": [
1900
- {
1901
- "kind": "function",
1902
- "name": "menuTemplate",
1903
- "parameters": [
1904
- {
1905
- "name": "prefix",
1906
- "type": {
1907
- "text": "string"
1908
- }
1909
- }
1910
- ]
1911
- },
1912
- {
1913
- "kind": "function",
1914
- "name": "singleOptionTemplate",
1915
- "parameters": [
1916
- {
1917
- "name": "prefix",
1918
- "type": {
1919
- "text": "string"
1920
- }
1921
- }
1922
- ]
1923
- },
1924
1830
  {
1925
1831
  "kind": "variable",
1926
- "name": "foundationActionsMenuTemplate",
1927
- "type": {
1928
- "text": "ViewTemplate<ActionsMenu>"
1929
- },
1930
- "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`"
1832
+ "name": "foundationAiCriteriaSearchStyles",
1833
+ "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`"
1931
1834
  }
1932
1835
  ],
1933
1836
  "exports": [
1934
1837
  {
1935
1838
  "kind": "js",
1936
- "name": "menuTemplate",
1839
+ "name": "foundationAiCriteriaSearchStyles",
1937
1840
  "declaration": {
1938
- "name": "menuTemplate",
1939
- "module": "src/actions-menu/actions-menu.template.ts"
1841
+ "name": "foundationAiCriteriaSearchStyles",
1842
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
1940
1843
  }
1941
- },
1844
+ }
1845
+ ]
1846
+ },
1847
+ {
1848
+ "kind": "javascript-module",
1849
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
1850
+ "declarations": [
1942
1851
  {
1943
- "kind": "js",
1944
- "name": "singleOptionTemplate",
1945
- "declaration": {
1946
- "name": "singleOptionTemplate",
1947
- "module": "src/actions-menu/actions-menu.template.ts"
1948
- }
1949
- },
1852
+ "kind": "variable",
1853
+ "name": "foundationAiCriteriaSearchTemplate",
1854
+ "type": {
1855
+ "text": "ViewTemplate<AiCriteriaSearch>"
1856
+ },
1857
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
1858
+ }
1859
+ ],
1860
+ "exports": [
1950
1861
  {
1951
1862
  "kind": "js",
1952
- "name": "foundationActionsMenuTemplate",
1863
+ "name": "foundationAiCriteriaSearchTemplate",
1953
1864
  "declaration": {
1954
- "name": "foundationActionsMenuTemplate",
1955
- "module": "src/actions-menu/actions-menu.template.ts"
1865
+ "name": "foundationAiCriteriaSearchTemplate",
1866
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
1956
1867
  }
1957
1868
  }
1958
1869
  ]
1959
1870
  },
1960
1871
  {
1961
1872
  "kind": "javascript-module",
1962
- "path": "src/actions-menu/actions-menu.ts",
1873
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
1963
1874
  "declarations": [
1964
1875
  {
1965
1876
  "kind": "class",
1966
- "description": "",
1967
- "name": "ActionsMenu",
1877
+ "description": "Natural-language criteria search input with AI interpretation.",
1878
+ "name": "AiCriteriaSearch",
1968
1879
  "members": [
1969
1880
  {
1970
1881
  "kind": "field",
1971
- "name": "actions",
1882
+ "name": "providerRegistry",
1972
1883
  "type": {
1973
- "text": "ActionMenuItem[]"
1884
+ "text": "AIProviderRegistry"
1974
1885
  }
1975
1886
  },
1976
1887
  {
1977
1888
  "kind": "field",
1978
- "name": "isVertical",
1889
+ "name": "placeholder",
1979
1890
  "type": {
1980
- "text": "boolean"
1891
+ "text": "string"
1981
1892
  },
1982
- "default": "false"
1893
+ "default": "'Describe your search criteria in natural language...'"
1983
1894
  },
1984
1895
  {
1985
1896
  "kind": "field",
1986
- "name": "addDefaultActions",
1897
+ "name": "disabled",
1987
1898
  "type": {
1988
1899
  "text": "boolean"
1989
- },
1990
- "default": "true"
1900
+ }
1991
1901
  },
1992
1902
  {
1993
1903
  "kind": "field",
1994
- "name": "autoCloseOnAction",
1904
+ "name": "inputValue",
1995
1905
  "type": {
1996
- "text": "boolean"
1906
+ "text": "string"
1997
1907
  },
1998
- "default": "true"
1908
+ "default": "''"
1999
1909
  },
2000
1910
  {
2001
1911
  "kind": "field",
2002
- "name": "classNames",
1912
+ "name": "isInterpreting",
2003
1913
  "type": {
2004
- "text": "string"
2005
- }
1914
+ "text": "boolean"
1915
+ },
1916
+ "default": "false"
2006
1917
  },
2007
1918
  {
2008
1919
  "kind": "field",
2009
- "name": "definition",
1920
+ "name": "lastValidCriteria",
2010
1921
  "type": {
2011
- "text": "any"
2012
- }
1922
+ "text": "string | null"
1923
+ },
1924
+ "default": "null"
2013
1925
  },
2014
1926
  {
2015
1927
  "kind": "field",
2016
- "name": "name",
1928
+ "name": "activeGroups",
2017
1929
  "type": {
2018
- "text": "string"
1930
+ "text": "CriteriaGroup[]"
2019
1931
  },
2020
- "default": "'Actions'"
1932
+ "default": "[]"
2021
1933
  },
2022
1934
  {
2023
1935
  "kind": "field",
2024
- "name": "open",
1936
+ "name": "showingChips",
2025
1937
  "type": {
2026
1938
  "text": "boolean"
2027
1939
  },
@@ -2029,14 +1941,15 @@
2029
1941
  },
2030
1942
  {
2031
1943
  "kind": "field",
2032
- "name": "buttonAppearance",
1944
+ "name": "fieldMetadata",
2033
1945
  "type": {
2034
- "text": "string"
2035
- }
1946
+ "text": "MetadataDetail[] | string[]"
1947
+ },
1948
+ "default": "[]"
2036
1949
  },
2037
1950
  {
2038
1951
  "kind": "field",
2039
- "name": "hideDisabled",
1952
+ "name": "isRecording",
2040
1953
  "type": {
2041
1954
  "text": "boolean"
2042
1955
  },
@@ -2044,102 +1957,125 @@
2044
1957
  },
2045
1958
  {
2046
1959
  "kind": "field",
2047
- "name": "hideMenuSingleOption",
1960
+ "name": "textAreaRef",
2048
1961
  "type": {
2049
- "text": "boolean"
1962
+ "text": "HTMLTextAreaElement"
2050
1963
  },
2051
- "default": "false"
1964
+ "privacy": "public"
2052
1965
  },
2053
1966
  {
2054
1967
  "kind": "field",
2055
- "name": "singleOption",
1968
+ "name": "stopRecording",
2056
1969
  "type": {
2057
- "text": "ActionMenuItem"
2058
- }
1970
+ "text": "(() => void) | null"
1971
+ },
1972
+ "privacy": "private",
1973
+ "default": "null"
2059
1974
  },
2060
1975
  {
2061
1976
  "kind": "field",
2062
- "name": "actionsMenu",
1977
+ "name": "speechApplyDebounceTimer",
2063
1978
  "type": {
2064
- "text": "HTMLElement"
2065
- }
1979
+ "text": "ReturnType<typeof setTimeout> | null"
1980
+ },
1981
+ "privacy": "private",
1982
+ "default": "null"
2066
1983
  },
2067
1984
  {
2068
- "kind": "method",
2069
- "name": "definitionChanged",
2070
- "privacy": "protected",
2071
- "parameters": [
2072
- {
2073
- "name": "oldValue",
2074
- "type": {
2075
- "text": "any"
2076
- }
2077
- },
1985
+ "kind": "field",
1986
+ "name": "speechAvailable",
1987
+ "type": {
1988
+ "text": "boolean"
1989
+ },
1990
+ "readonly": true
1991
+ },
1992
+ {
1993
+ "kind": "field",
1994
+ "name": "criteriaChips",
1995
+ "type": {
1996
+ "text": "CriteriaChip[]"
1997
+ },
1998
+ "readonly": true
1999
+ },
2000
+ {
2001
+ "kind": "method",
2002
+ "name": "getFieldLabel",
2003
+ "privacy": "private",
2004
+ "return": {
2005
+ "type": {
2006
+ "text": "string"
2007
+ }
2008
+ },
2009
+ "parameters": [
2078
2010
  {
2079
- "name": "newValue",
2011
+ "name": "fieldName",
2080
2012
  "type": {
2081
- "text": "any"
2013
+ "text": "string"
2082
2014
  }
2083
2015
  }
2084
2016
  ]
2085
2017
  },
2086
2018
  {
2087
2019
  "kind": "method",
2088
- "name": "openChanged",
2089
- "privacy": "protected"
2090
- },
2091
- {
2092
- "kind": "method",
2093
- "name": "toggleActionsMenuVisibility"
2020
+ "name": "toggleCriteriaView",
2021
+ "return": {
2022
+ "type": {
2023
+ "text": "void"
2024
+ }
2025
+ }
2094
2026
  },
2095
2027
  {
2096
2028
  "kind": "method",
2097
- "name": "onActionMenuItemClick",
2029
+ "name": "removeChip",
2030
+ "return": {
2031
+ "type": {
2032
+ "text": "void"
2033
+ }
2034
+ },
2098
2035
  "parameters": [
2099
2036
  {
2100
- "name": "callback",
2037
+ "name": "groupIndex",
2101
2038
  "type": {
2102
- "text": "(rowData) => void | any"
2039
+ "text": "number"
2040
+ }
2041
+ },
2042
+ {
2043
+ "name": "clauseIndex",
2044
+ "type": {
2045
+ "text": "number"
2103
2046
  }
2104
2047
  }
2105
2048
  ]
2106
2049
  },
2107
2050
  {
2108
- "kind": "field",
2109
- "name": "allActions",
2110
- "type": {
2111
- "text": "ActionMenuItem[]"
2112
- },
2113
- "readonly": true
2051
+ "kind": "method",
2052
+ "name": "clearChips",
2053
+ "return": {
2054
+ "type": {
2055
+ "text": "void"
2056
+ }
2057
+ }
2114
2058
  },
2115
2059
  {
2116
- "kind": "field",
2117
- "name": "rowData",
2118
- "readonly": true
2060
+ "kind": "method",
2061
+ "name": "handleSubmit"
2119
2062
  },
2120
2063
  {
2121
2064
  "kind": "method",
2122
- "name": "getLabel",
2123
- "parameters": [
2124
- {
2125
- "name": "name",
2126
- "type": {
2127
- "text": "string | ((rowData: any) => string)"
2128
- }
2129
- }
2130
- ]
2065
+ "name": "handleBlur"
2131
2066
  },
2132
2067
  {
2133
2068
  "kind": "method",
2134
- "name": "getTemplate",
2135
- "parameters": [
2136
- {
2137
- "name": "prefix",
2138
- "type": {
2139
- "text": "string"
2140
- }
2141
- }
2142
- ]
2069
+ "name": "clear"
2070
+ },
2071
+ {
2072
+ "kind": "method",
2073
+ "name": "toggleSpeechInput"
2074
+ },
2075
+ {
2076
+ "kind": "method",
2077
+ "name": "clearSpeechApplyDebounce",
2078
+ "privacy": "private"
2143
2079
  },
2144
2080
  {
2145
2081
  "kind": "field",
@@ -2253,147 +2189,284 @@
2253
2189
  }
2254
2190
  }
2255
2191
  ],
2256
- "attributes": [
2257
- {
2258
- "name": "is-vertical",
2259
- "type": {
2260
- "text": "boolean"
2261
- },
2262
- "default": "false",
2263
- "fieldName": "isVertical"
2264
- },
2265
- {
2266
- "name": "add-default-actions",
2267
- "type": {
2268
- "text": "boolean"
2269
- },
2270
- "default": "true",
2271
- "fieldName": "addDefaultActions"
2272
- },
2273
- {
2274
- "name": "auto-close-on-action",
2275
- "type": {
2276
- "text": "boolean"
2277
- },
2278
- "default": "true",
2279
- "fieldName": "autoCloseOnAction"
2280
- },
2192
+ "events": [
2281
2193
  {
2282
- "name": "name",
2283
- "type": {
2284
- "text": "string"
2285
- },
2286
- "default": "'Actions'",
2287
- "fieldName": "name"
2194
+ "description": "Fired when interpreted criteria is applied or cleared",
2195
+ "name": "criteria-changed"
2288
2196
  },
2289
2197
  {
2290
- "name": "open",
2291
- "type": {
2292
- "text": "boolean"
2293
- },
2294
- "default": "false",
2295
- "fieldName": "open"
2296
- },
2198
+ "description": "Fired when interpreted criteria contains invalid clauses",
2199
+ "name": "validation-errors"
2200
+ }
2201
+ ],
2202
+ "attributes": [
2297
2203
  {
2298
- "name": "buttonAppearance",
2204
+ "name": "placeholder",
2299
2205
  "type": {
2300
2206
  "text": "string"
2301
2207
  },
2302
- "fieldName": "buttonAppearance"
2303
- },
2304
- {
2305
- "name": "hide-disabled",
2306
- "type": {
2307
- "text": "boolean"
2308
- },
2309
- "default": "false",
2310
- "fieldName": "hideDisabled"
2208
+ "default": "'Describe your search criteria in natural language...'",
2209
+ "fieldName": "placeholder"
2311
2210
  },
2312
2211
  {
2313
- "name": "hide-menu-single-option",
2314
2212
  "type": {
2315
2213
  "text": "boolean"
2316
2214
  },
2317
- "default": "false",
2318
- "fieldName": "hideMenuSingleOption"
2215
+ "fieldName": "disabled"
2319
2216
  }
2320
2217
  ],
2321
2218
  "superclass": {
2322
2219
  "name": "FoundationElement",
2323
2220
  "package": "@microsoft/fast-foundation"
2324
2221
  },
2325
- "tagName": "%%prefix%%-actions-menu",
2222
+ "tagName": "%%prefix%%-ai-criteria-search",
2326
2223
  "customElement": true
2327
2224
  },
2328
2225
  {
2329
2226
  "kind": "variable",
2330
- "name": "foundationActionsMenu",
2331
- "description": "The Foundation Actions Menu",
2332
- "privacy": "public"
2227
+ "name": "foundationAiCriteriaSearchShadowOptions",
2228
+ "type": {
2229
+ "text": "ShadowRootInit"
2230
+ },
2231
+ "default": "undefined"
2232
+ },
2233
+ {
2234
+ "kind": "variable",
2235
+ "name": "defaultAiCriteriaSearchConfig",
2236
+ "type": {
2237
+ "text": "object"
2238
+ },
2239
+ "default": "{}"
2240
+ },
2241
+ {
2242
+ "kind": "variable",
2243
+ "name": "foundationAiCriteriaSearch"
2333
2244
  }
2334
2245
  ],
2335
2246
  "exports": [
2336
2247
  {
2337
2248
  "kind": "js",
2338
- "name": "ActionsMenu",
2249
+ "name": "AiCriteriaSearch",
2339
2250
  "declaration": {
2340
- "name": "ActionsMenu",
2341
- "module": "src/actions-menu/actions-menu.ts"
2251
+ "name": "AiCriteriaSearch",
2252
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2342
2253
  }
2343
2254
  },
2344
2255
  {
2345
2256
  "kind": "js",
2346
- "name": "foundationActionsMenu",
2257
+ "name": "foundationAiCriteriaSearchShadowOptions",
2347
2258
  "declaration": {
2348
- "name": "foundationActionsMenu",
2349
- "module": "src/actions-menu/actions-menu.ts"
2259
+ "name": "foundationAiCriteriaSearchShadowOptions",
2260
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2261
+ }
2262
+ },
2263
+ {
2264
+ "kind": "js",
2265
+ "name": "defaultAiCriteriaSearchConfig",
2266
+ "declaration": {
2267
+ "name": "defaultAiCriteriaSearchConfig",
2268
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2269
+ }
2270
+ },
2271
+ {
2272
+ "kind": "js",
2273
+ "name": "foundationAiCriteriaSearch",
2274
+ "declaration": {
2275
+ "name": "foundationAiCriteriaSearch",
2276
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2350
2277
  }
2351
2278
  }
2352
2279
  ]
2353
2280
  },
2354
2281
  {
2355
2282
  "kind": "javascript-module",
2356
- "path": "src/actions-menu/index.ts",
2283
+ "path": "src/ai-criteria-search/index.ts",
2357
2284
  "declarations": [],
2358
2285
  "exports": [
2359
2286
  {
2360
2287
  "kind": "js",
2361
- "name": "*",
2288
+ "name": "AiCriteriaSearch",
2362
2289
  "declaration": {
2363
- "name": "*",
2364
- "package": "./actions-menu.styles"
2290
+ "name": "AiCriteriaSearch",
2291
+ "module": "./ai-criteria-search"
2365
2292
  }
2366
2293
  },
2367
2294
  {
2368
2295
  "kind": "js",
2369
- "name": "*",
2296
+ "name": "defaultAiCriteriaSearchConfig",
2370
2297
  "declaration": {
2371
- "name": "*",
2372
- "package": "./actions-menu.template"
2298
+ "name": "defaultAiCriteriaSearchConfig",
2299
+ "module": "./ai-criteria-search"
2373
2300
  }
2374
2301
  },
2375
2302
  {
2376
2303
  "kind": "js",
2377
- "name": "*",
2304
+ "name": "foundationAiCriteriaSearch",
2378
2305
  "declaration": {
2379
- "name": "*",
2380
- "package": "./actions-menu"
2306
+ "name": "foundationAiCriteriaSearch",
2307
+ "module": "./ai-criteria-search"
2381
2308
  }
2382
- }
2383
- ]
2384
- },
2385
- {
2386
- "kind": "javascript-module",
2387
- "path": "src/ai-indicator/ai-indicator.styles.ts",
2388
- "declarations": [
2309
+ },
2389
2310
  {
2390
- "kind": "function",
2391
- "name": "foundationAiIndicatorStyles",
2392
- "return": {
2393
- "type": {
2394
- "text": "ElementStyles"
2395
- }
2396
- },
2311
+ "kind": "js",
2312
+ "name": "foundationAiCriteriaSearchShadowOptions",
2313
+ "declaration": {
2314
+ "name": "foundationAiCriteriaSearchShadowOptions",
2315
+ "module": "./ai-criteria-search"
2316
+ }
2317
+ },
2318
+ {
2319
+ "kind": "js",
2320
+ "name": "foundationAiCriteriaSearchStyles",
2321
+ "declaration": {
2322
+ "name": "foundationAiCriteriaSearchStyles",
2323
+ "module": "./ai-criteria-search.styles"
2324
+ }
2325
+ },
2326
+ {
2327
+ "kind": "js",
2328
+ "name": "foundationAiCriteriaSearchTemplate",
2329
+ "declaration": {
2330
+ "name": "foundationAiCriteriaSearchTemplate",
2331
+ "module": "./ai-criteria-search.template"
2332
+ }
2333
+ },
2334
+ {
2335
+ "kind": "js",
2336
+ "name": "*",
2337
+ "declaration": {
2338
+ "name": "*",
2339
+ "package": "./validation/criteria-ir"
2340
+ }
2341
+ },
2342
+ {
2343
+ "kind": "js",
2344
+ "name": "*",
2345
+ "declaration": {
2346
+ "name": "*",
2347
+ "package": "./validation/operator-map"
2348
+ }
2349
+ },
2350
+ {
2351
+ "kind": "js",
2352
+ "name": "*",
2353
+ "declaration": {
2354
+ "name": "*",
2355
+ "package": "./validation/schema-validator"
2356
+ }
2357
+ }
2358
+ ]
2359
+ },
2360
+ {
2361
+ "kind": "javascript-module",
2362
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2363
+ "declarations": [
2364
+ {
2365
+ "kind": "function",
2366
+ "name": "formatValidationErrors",
2367
+ "return": {
2368
+ "type": {
2369
+ "text": "string"
2370
+ }
2371
+ },
2372
+ "parameters": [
2373
+ {
2374
+ "name": "errors",
2375
+ "type": {
2376
+ "text": "ValidationError[]"
2377
+ }
2378
+ }
2379
+ ],
2380
+ "description": "Formats validation errors into a user-friendly message."
2381
+ },
2382
+ {
2383
+ "kind": "function",
2384
+ "name": "showCriteriaError",
2385
+ "return": {
2386
+ "type": {
2387
+ "text": "void"
2388
+ }
2389
+ },
2390
+ "parameters": [
2391
+ {
2392
+ "name": "title",
2393
+ "type": {
2394
+ "text": "string"
2395
+ },
2396
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2397
+ },
2398
+ {
2399
+ "name": "body",
2400
+ "type": {
2401
+ "text": "string"
2402
+ },
2403
+ "description": "Error message to display"
2404
+ },
2405
+ {
2406
+ "name": "tagName",
2407
+ "type": {
2408
+ "text": "string"
2409
+ },
2410
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2411
+ }
2412
+ ],
2413
+ "description": "Shows a criteria error as a toast notification."
2414
+ }
2415
+ ],
2416
+ "exports": [
2417
+ {
2418
+ "kind": "js",
2419
+ "name": "formatValidationErrors",
2420
+ "declaration": {
2421
+ "name": "formatValidationErrors",
2422
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2423
+ }
2424
+ },
2425
+ {
2426
+ "kind": "js",
2427
+ "name": "showCriteriaError",
2428
+ "declaration": {
2429
+ "name": "showCriteriaError",
2430
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2431
+ }
2432
+ }
2433
+ ]
2434
+ },
2435
+ {
2436
+ "kind": "javascript-module",
2437
+ "path": "src/actions-menu/actions-menu.styles.ts",
2438
+ "declarations": [
2439
+ {
2440
+ "kind": "function",
2441
+ "name": "actionsMenuBaseStyles",
2442
+ "return": {
2443
+ "type": {
2444
+ "text": "ElementStyles"
2445
+ }
2446
+ },
2447
+ "parameters": [
2448
+ {
2449
+ "name": "context",
2450
+ "type": {
2451
+ "text": "ElementDefinitionContext"
2452
+ }
2453
+ },
2454
+ {
2455
+ "name": "definition",
2456
+ "type": {
2457
+ "text": "FoundationElementDefinition"
2458
+ }
2459
+ }
2460
+ ]
2461
+ },
2462
+ {
2463
+ "kind": "function",
2464
+ "name": "foundationActionsMenuStyles",
2465
+ "return": {
2466
+ "type": {
2467
+ "text": "ElementStyles"
2468
+ }
2469
+ },
2397
2470
  "parameters": [
2398
2471
  {
2399
2472
  "name": "context",
@@ -2413,225 +2486,269 @@
2413
2486
  "exports": [
2414
2487
  {
2415
2488
  "kind": "js",
2416
- "name": "foundationAiIndicatorStyles",
2489
+ "name": "actionsMenuBaseStyles",
2417
2490
  "declaration": {
2418
- "name": "foundationAiIndicatorStyles",
2419
- "module": "src/ai-indicator/ai-indicator.styles.ts"
2491
+ "name": "actionsMenuBaseStyles",
2492
+ "module": "src/actions-menu/actions-menu.styles.ts"
2493
+ }
2494
+ },
2495
+ {
2496
+ "kind": "js",
2497
+ "name": "foundationActionsMenuStyles",
2498
+ "declaration": {
2499
+ "name": "foundationActionsMenuStyles",
2500
+ "module": "src/actions-menu/actions-menu.styles.ts"
2420
2501
  }
2421
2502
  }
2422
2503
  ]
2423
2504
  },
2424
2505
  {
2425
2506
  "kind": "javascript-module",
2426
- "path": "src/ai-indicator/ai-indicator.template.ts",
2507
+ "path": "src/actions-menu/actions-menu.template.ts",
2427
2508
  "declarations": [
2509
+ {
2510
+ "kind": "function",
2511
+ "name": "menuTemplate",
2512
+ "parameters": [
2513
+ {
2514
+ "name": "prefix",
2515
+ "type": {
2516
+ "text": "string"
2517
+ }
2518
+ }
2519
+ ]
2520
+ },
2521
+ {
2522
+ "kind": "function",
2523
+ "name": "singleOptionTemplate",
2524
+ "parameters": [
2525
+ {
2526
+ "name": "prefix",
2527
+ "type": {
2528
+ "text": "string"
2529
+ }
2530
+ }
2531
+ ]
2532
+ },
2428
2533
  {
2429
2534
  "kind": "variable",
2430
- "name": "foundationAiIndicatorTemplate",
2535
+ "name": "foundationActionsMenuTemplate",
2431
2536
  "type": {
2432
- "text": "ViewTemplate<AiIndicator>"
2537
+ "text": "ViewTemplate<ActionsMenu>"
2433
2538
  },
2434
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2539
+ "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`"
2435
2540
  }
2436
2541
  ],
2437
2542
  "exports": [
2438
2543
  {
2439
2544
  "kind": "js",
2440
- "name": "foundationAiIndicatorTemplate",
2545
+ "name": "menuTemplate",
2441
2546
  "declaration": {
2442
- "name": "foundationAiIndicatorTemplate",
2443
- "module": "src/ai-indicator/ai-indicator.template.ts"
2547
+ "name": "menuTemplate",
2548
+ "module": "src/actions-menu/actions-menu.template.ts"
2549
+ }
2550
+ },
2551
+ {
2552
+ "kind": "js",
2553
+ "name": "singleOptionTemplate",
2554
+ "declaration": {
2555
+ "name": "singleOptionTemplate",
2556
+ "module": "src/actions-menu/actions-menu.template.ts"
2557
+ }
2558
+ },
2559
+ {
2560
+ "kind": "js",
2561
+ "name": "foundationActionsMenuTemplate",
2562
+ "declaration": {
2563
+ "name": "foundationActionsMenuTemplate",
2564
+ "module": "src/actions-menu/actions-menu.template.ts"
2444
2565
  }
2445
2566
  }
2446
2567
  ]
2447
2568
  },
2448
2569
  {
2449
2570
  "kind": "javascript-module",
2450
- "path": "src/ai-indicator/ai-indicator.ts",
2571
+ "path": "src/actions-menu/actions-menu.ts",
2451
2572
  "declarations": [
2452
2573
  {
2453
2574
  "kind": "class",
2454
2575
  "description": "",
2455
- "name": "AiIndicator",
2576
+ "name": "ActionsMenu",
2456
2577
  "members": [
2457
2578
  {
2458
2579
  "kind": "field",
2459
- "name": "providerRegistry",
2580
+ "name": "actions",
2460
2581
  "type": {
2461
- "text": "AIProviderRegistry"
2582
+ "text": "ActionMenuItem[]"
2462
2583
  }
2463
2584
  },
2464
2585
  {
2465
2586
  "kind": "field",
2466
- "name": "aiProvider",
2587
+ "name": "isVertical",
2467
2588
  "type": {
2468
- "text": "AIProvider | undefined"
2589
+ "text": "boolean"
2469
2590
  },
2470
- "privacy": "private",
2471
- "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.",
2472
- "readonly": true
2591
+ "default": "false"
2473
2592
  },
2474
2593
  {
2475
2594
  "kind": "field",
2476
- "name": "status",
2595
+ "name": "addDefaultActions",
2477
2596
  "type": {
2478
- "text": "AIStatus | null"
2597
+ "text": "boolean"
2479
2598
  },
2480
- "default": "null"
2599
+ "default": "true"
2481
2600
  },
2482
2601
  {
2483
2602
  "kind": "field",
2484
- "name": "open",
2603
+ "name": "autoCloseOnAction",
2485
2604
  "type": {
2486
2605
  "text": "boolean"
2487
2606
  },
2488
- "default": "false"
2607
+ "default": "true"
2489
2608
  },
2490
2609
  {
2491
2610
  "kind": "field",
2492
- "name": "state",
2611
+ "name": "classNames",
2493
2612
  "type": {
2494
- "text": "AIIndicatorState"
2495
- },
2496
- "default": "'none'"
2613
+ "text": "string"
2614
+ }
2497
2615
  },
2498
2616
  {
2499
2617
  "kind": "field",
2500
- "name": "isInstalling",
2618
+ "name": "definition",
2501
2619
  "type": {
2502
- "text": "boolean"
2503
- },
2504
- "default": "false"
2620
+ "text": "any"
2621
+ }
2505
2622
  },
2506
2623
  {
2507
2624
  "kind": "field",
2508
- "name": "pollTimer",
2625
+ "name": "name",
2509
2626
  "type": {
2510
- "text": "ReturnType<typeof setInterval> | null"
2627
+ "text": "string"
2511
2628
  },
2512
- "privacy": "private",
2513
- "default": "null"
2629
+ "default": "'Actions'"
2514
2630
  },
2515
2631
  {
2516
2632
  "kind": "field",
2517
- "name": "clickOutside",
2518
- "privacy": "private"
2633
+ "name": "open",
2634
+ "type": {
2635
+ "text": "boolean"
2636
+ },
2637
+ "default": "false"
2519
2638
  },
2520
2639
  {
2521
2640
  "kind": "field",
2522
- "name": "chromeStatusLabel",
2641
+ "name": "buttonAppearance",
2523
2642
  "type": {
2524
- "text": "string | null"
2525
- },
2526
- "readonly": true
2643
+ "text": "string"
2644
+ }
2527
2645
  },
2528
2646
  {
2529
2647
  "kind": "field",
2530
- "name": "canInstall",
2648
+ "name": "hideDisabled",
2531
2649
  "type": {
2532
2650
  "text": "boolean"
2533
2651
  },
2534
- "readonly": true
2652
+ "default": "false"
2535
2653
  },
2536
2654
  {
2537
2655
  "kind": "field",
2538
- "name": "isDownloading",
2656
+ "name": "hideMenuSingleOption",
2539
2657
  "type": {
2540
2658
  "text": "boolean"
2541
2659
  },
2542
- "readonly": true
2660
+ "default": "false"
2543
2661
  },
2544
2662
  {
2545
- "kind": "method",
2546
- "name": "openChanged",
2547
- "return": {
2548
- "type": {
2549
- "text": "void"
2550
- }
2663
+ "kind": "field",
2664
+ "name": "singleOption",
2665
+ "type": {
2666
+ "text": "ActionMenuItem"
2667
+ }
2668
+ },
2669
+ {
2670
+ "kind": "field",
2671
+ "name": "actionsMenu",
2672
+ "type": {
2673
+ "text": "HTMLElement"
2551
2674
  }
2552
2675
  },
2553
2676
  {
2554
2677
  "kind": "method",
2555
- "name": "handleClickOutside",
2556
- "privacy": "private",
2678
+ "name": "definitionChanged",
2679
+ "privacy": "protected",
2557
2680
  "parameters": [
2558
2681
  {
2559
- "name": "event",
2682
+ "name": "oldValue",
2560
2683
  "type": {
2561
- "text": "MouseEvent"
2684
+ "text": "any"
2685
+ }
2686
+ },
2687
+ {
2688
+ "name": "newValue",
2689
+ "type": {
2690
+ "text": "any"
2562
2691
  }
2563
2692
  }
2564
2693
  ]
2565
2694
  },
2566
2695
  {
2567
2696
  "kind": "method",
2568
- "name": "toggleDropdown"
2697
+ "name": "openChanged",
2698
+ "privacy": "protected"
2569
2699
  },
2570
2700
  {
2571
2701
  "kind": "method",
2572
- "name": "refreshStatus",
2573
- "return": {
2574
- "type": {
2575
- "text": "Promise<void>"
2576
- }
2577
- }
2702
+ "name": "toggleActionsMenuVisibility"
2578
2703
  },
2579
2704
  {
2580
2705
  "kind": "method",
2581
- "name": "deriveState",
2582
- "privacy": "private",
2583
- "return": {
2584
- "type": {
2585
- "text": "AIIndicatorState"
2586
- }
2587
- },
2706
+ "name": "onActionMenuItemClick",
2588
2707
  "parameters": [
2589
2708
  {
2590
- "name": "s",
2709
+ "name": "callback",
2591
2710
  "type": {
2592
- "text": "AIStatus | null"
2711
+ "text": "(rowData) => void | any"
2593
2712
  }
2594
2713
  }
2595
2714
  ]
2596
2715
  },
2597
2716
  {
2598
- "kind": "method",
2599
- "name": "maybeStartPolling",
2600
- "privacy": "private",
2601
- "return": {
2602
- "type": {
2603
- "text": "void"
2604
- }
2605
- }
2717
+ "kind": "field",
2718
+ "name": "allActions",
2719
+ "type": {
2720
+ "text": "ActionMenuItem[]"
2721
+ },
2722
+ "readonly": true
2606
2723
  },
2607
2724
  {
2608
- "kind": "method",
2609
- "name": "startPolling",
2610
- "privacy": "private",
2611
- "return": {
2612
- "type": {
2613
- "text": "void"
2614
- }
2615
- }
2725
+ "kind": "field",
2726
+ "name": "rowData",
2727
+ "readonly": true
2616
2728
  },
2617
2729
  {
2618
2730
  "kind": "method",
2619
- "name": "stopPolling",
2620
- "privacy": "private",
2621
- "return": {
2622
- "type": {
2623
- "text": "void"
2731
+ "name": "getLabel",
2732
+ "parameters": [
2733
+ {
2734
+ "name": "name",
2735
+ "type": {
2736
+ "text": "string | ((rowData: any) => string)"
2737
+ }
2624
2738
  }
2625
- }
2739
+ ]
2626
2740
  },
2627
2741
  {
2628
2742
  "kind": "method",
2629
- "name": "onInstall",
2630
- "return": {
2631
- "type": {
2632
- "text": "Promise<void>"
2743
+ "name": "getTemplate",
2744
+ "parameters": [
2745
+ {
2746
+ "name": "prefix",
2747
+ "type": {
2748
+ "text": "string"
2749
+ }
2633
2750
  }
2634
- }
2751
+ ]
2635
2752
  },
2636
2753
  {
2637
2754
  "kind": "field",
@@ -2723,167 +2840,228 @@
2723
2840
  "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2724
2841
  }
2725
2842
  },
2726
- "parameters": [
2727
- {
2728
- "name": "this",
2729
- "type": {
2730
- "text": "K"
2731
- }
2732
- },
2733
- {
2734
- "name": "elementDefinition",
2735
- "type": {
2736
- "text": "T"
2737
- },
2738
- "description": "The definition of the element to create the registry\nfunction for."
2739
- }
2740
- ],
2741
- "description": "Defines an element registry function with a set of element definition defaults.",
2742
- "inheritedFrom": {
2743
- "name": "FoundationElement",
2744
- "module": "src/foundation-element/foundation-element.ts"
2745
- }
2843
+ "parameters": [
2844
+ {
2845
+ "name": "this",
2846
+ "type": {
2847
+ "text": "K"
2848
+ }
2849
+ },
2850
+ {
2851
+ "name": "elementDefinition",
2852
+ "type": {
2853
+ "text": "T"
2854
+ },
2855
+ "description": "The definition of the element to create the registry\nfunction for."
2856
+ }
2857
+ ],
2858
+ "description": "Defines an element registry function with a set of element definition defaults.",
2859
+ "inheritedFrom": {
2860
+ "name": "FoundationElement",
2861
+ "module": "src/foundation-element/foundation-element.ts"
2862
+ }
2863
+ }
2864
+ ],
2865
+ "attributes": [
2866
+ {
2867
+ "name": "is-vertical",
2868
+ "type": {
2869
+ "text": "boolean"
2870
+ },
2871
+ "default": "false",
2872
+ "fieldName": "isVertical"
2873
+ },
2874
+ {
2875
+ "name": "add-default-actions",
2876
+ "type": {
2877
+ "text": "boolean"
2878
+ },
2879
+ "default": "true",
2880
+ "fieldName": "addDefaultActions"
2881
+ },
2882
+ {
2883
+ "name": "auto-close-on-action",
2884
+ "type": {
2885
+ "text": "boolean"
2886
+ },
2887
+ "default": "true",
2888
+ "fieldName": "autoCloseOnAction"
2889
+ },
2890
+ {
2891
+ "name": "name",
2892
+ "type": {
2893
+ "text": "string"
2894
+ },
2895
+ "default": "'Actions'",
2896
+ "fieldName": "name"
2897
+ },
2898
+ {
2899
+ "name": "open",
2900
+ "type": {
2901
+ "text": "boolean"
2902
+ },
2903
+ "default": "false",
2904
+ "fieldName": "open"
2905
+ },
2906
+ {
2907
+ "name": "buttonAppearance",
2908
+ "type": {
2909
+ "text": "string"
2910
+ },
2911
+ "fieldName": "buttonAppearance"
2912
+ },
2913
+ {
2914
+ "name": "hide-disabled",
2915
+ "type": {
2916
+ "text": "boolean"
2917
+ },
2918
+ "default": "false",
2919
+ "fieldName": "hideDisabled"
2920
+ },
2921
+ {
2922
+ "name": "hide-menu-single-option",
2923
+ "type": {
2924
+ "text": "boolean"
2925
+ },
2926
+ "default": "false",
2927
+ "fieldName": "hideMenuSingleOption"
2746
2928
  }
2747
2929
  ],
2748
2930
  "superclass": {
2749
2931
  "name": "FoundationElement",
2750
2932
  "package": "@microsoft/fast-foundation"
2751
2933
  },
2752
- "tagName": "%%prefix%%-ai-indicator",
2934
+ "tagName": "%%prefix%%-actions-menu",
2753
2935
  "customElement": true
2754
2936
  },
2755
2937
  {
2756
2938
  "kind": "variable",
2757
- "name": "foundationAiIndicator"
2939
+ "name": "foundationActionsMenu",
2940
+ "description": "The Foundation Actions Menu",
2941
+ "privacy": "public"
2758
2942
  }
2759
2943
  ],
2760
2944
  "exports": [
2761
2945
  {
2762
2946
  "kind": "js",
2763
- "name": "AiIndicator",
2947
+ "name": "ActionsMenu",
2764
2948
  "declaration": {
2765
- "name": "AiIndicator",
2766
- "module": "src/ai-indicator/ai-indicator.ts"
2949
+ "name": "ActionsMenu",
2950
+ "module": "src/actions-menu/actions-menu.ts"
2767
2951
  }
2768
2952
  },
2769
2953
  {
2770
2954
  "kind": "js",
2771
- "name": "foundationAiIndicator",
2955
+ "name": "foundationActionsMenu",
2772
2956
  "declaration": {
2773
- "name": "foundationAiIndicator",
2774
- "module": "src/ai-indicator/ai-indicator.ts"
2957
+ "name": "foundationActionsMenu",
2958
+ "module": "src/actions-menu/actions-menu.ts"
2775
2959
  }
2776
2960
  }
2777
2961
  ]
2778
2962
  },
2779
2963
  {
2780
2964
  "kind": "javascript-module",
2781
- "path": "src/ai-indicator/index.ts",
2965
+ "path": "src/actions-menu/index.ts",
2782
2966
  "declarations": [],
2783
2967
  "exports": [
2784
2968
  {
2785
2969
  "kind": "js",
2786
- "name": "AiIndicator",
2787
- "declaration": {
2788
- "name": "AiIndicator",
2789
- "module": "./ai-indicator"
2790
- }
2791
- },
2792
- {
2793
- "kind": "js",
2794
- "name": "foundationAiIndicator",
2795
- "declaration": {
2796
- "name": "foundationAiIndicator",
2797
- "module": "./ai-indicator"
2798
- }
2799
- },
2800
- {
2801
- "kind": "js",
2802
- "name": "type",
2803
- "declaration": {
2804
- "name": "type",
2805
- "module": "./ai-indicator"
2806
- }
2807
- },
2808
- {
2809
- "kind": "js",
2810
- "name": "AIIndicatorState",
2970
+ "name": "*",
2811
2971
  "declaration": {
2812
- "name": "AIIndicatorState",
2813
- "module": "./ai-indicator"
2972
+ "name": "*",
2973
+ "package": "./actions-menu.styles"
2814
2974
  }
2815
2975
  },
2816
2976
  {
2817
2977
  "kind": "js",
2818
- "name": "foundationAiIndicatorTemplate",
2978
+ "name": "*",
2819
2979
  "declaration": {
2820
- "name": "foundationAiIndicatorTemplate",
2821
- "module": "./ai-indicator.template"
2980
+ "name": "*",
2981
+ "package": "./actions-menu.template"
2822
2982
  }
2823
2983
  },
2824
2984
  {
2825
2985
  "kind": "js",
2826
- "name": "foundationAiIndicatorStyles",
2986
+ "name": "*",
2827
2987
  "declaration": {
2828
- "name": "foundationAiIndicatorStyles",
2829
- "module": "./ai-indicator.styles"
2988
+ "name": "*",
2989
+ "package": "./actions-menu"
2830
2990
  }
2831
2991
  }
2832
2992
  ]
2833
2993
  },
2834
2994
  {
2835
2995
  "kind": "javascript-module",
2836
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2996
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
2837
2997
  "declarations": [
2838
2998
  {
2839
- "kind": "variable",
2840
- "name": "foundationAiCriteriaSearchStyles",
2841
- "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`"
2999
+ "kind": "function",
3000
+ "name": "foundationAiIndicatorStyles",
3001
+ "return": {
3002
+ "type": {
3003
+ "text": "ElementStyles"
3004
+ }
3005
+ },
3006
+ "parameters": [
3007
+ {
3008
+ "name": "context",
3009
+ "type": {
3010
+ "text": "ElementDefinitionContext"
3011
+ }
3012
+ },
3013
+ {
3014
+ "name": "definition",
3015
+ "type": {
3016
+ "text": "FoundationElementDefinition"
3017
+ }
3018
+ }
3019
+ ]
2842
3020
  }
2843
3021
  ],
2844
3022
  "exports": [
2845
3023
  {
2846
3024
  "kind": "js",
2847
- "name": "foundationAiCriteriaSearchStyles",
3025
+ "name": "foundationAiIndicatorStyles",
2848
3026
  "declaration": {
2849
- "name": "foundationAiCriteriaSearchStyles",
2850
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3027
+ "name": "foundationAiIndicatorStyles",
3028
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
2851
3029
  }
2852
3030
  }
2853
3031
  ]
2854
3032
  },
2855
3033
  {
2856
3034
  "kind": "javascript-module",
2857
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3035
+ "path": "src/ai-indicator/ai-indicator.template.ts",
2858
3036
  "declarations": [
2859
3037
  {
2860
3038
  "kind": "variable",
2861
- "name": "foundationAiCriteriaSearchTemplate",
3039
+ "name": "foundationAiIndicatorTemplate",
2862
3040
  "type": {
2863
- "text": "ViewTemplate<AiCriteriaSearch>"
3041
+ "text": "ViewTemplate<AiIndicator>"
2864
3042
  },
2865
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3043
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2866
3044
  }
2867
3045
  ],
2868
3046
  "exports": [
2869
3047
  {
2870
3048
  "kind": "js",
2871
- "name": "foundationAiCriteriaSearchTemplate",
3049
+ "name": "foundationAiIndicatorTemplate",
2872
3050
  "declaration": {
2873
- "name": "foundationAiCriteriaSearchTemplate",
2874
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3051
+ "name": "foundationAiIndicatorTemplate",
3052
+ "module": "src/ai-indicator/ai-indicator.template.ts"
2875
3053
  }
2876
3054
  }
2877
3055
  ]
2878
3056
  },
2879
3057
  {
2880
3058
  "kind": "javascript-module",
2881
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3059
+ "path": "src/ai-indicator/ai-indicator.ts",
2882
3060
  "declarations": [
2883
3061
  {
2884
3062
  "kind": "class",
2885
- "description": "Natural-language criteria search input with AI interpretation.",
2886
- "name": "AiCriteriaSearch",
3063
+ "description": "",
3064
+ "name": "AiIndicator",
2887
3065
  "members": [
2888
3066
  {
2889
3067
  "kind": "field",
@@ -2894,54 +3072,25 @@
2894
3072
  },
2895
3073
  {
2896
3074
  "kind": "field",
2897
- "name": "placeholder",
2898
- "type": {
2899
- "text": "string"
2900
- },
2901
- "default": "'Describe your search criteria in natural language...'"
2902
- },
2903
- {
2904
- "kind": "field",
2905
- "name": "disabled",
2906
- "type": {
2907
- "text": "boolean"
2908
- }
2909
- },
2910
- {
2911
- "kind": "field",
2912
- "name": "inputValue",
2913
- "type": {
2914
- "text": "string"
2915
- },
2916
- "default": "''"
2917
- },
2918
- {
2919
- "kind": "field",
2920
- "name": "isInterpreting",
3075
+ "name": "aiProvider",
2921
3076
  "type": {
2922
- "text": "boolean"
3077
+ "text": "AIProvider | undefined"
2923
3078
  },
2924
- "default": "false"
3079
+ "privacy": "private",
3080
+ "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.",
3081
+ "readonly": true
2925
3082
  },
2926
3083
  {
2927
3084
  "kind": "field",
2928
- "name": "lastValidCriteria",
3085
+ "name": "status",
2929
3086
  "type": {
2930
- "text": "string | null"
3087
+ "text": "AIStatus | null"
2931
3088
  },
2932
3089
  "default": "null"
2933
3090
  },
2934
3091
  {
2935
3092
  "kind": "field",
2936
- "name": "activeGroups",
2937
- "type": {
2938
- "text": "CriteriaGroup[]"
2939
- },
2940
- "default": "[]"
2941
- },
2942
- {
2943
- "kind": "field",
2944
- "name": "showingChips",
3093
+ "name": "open",
2945
3094
  "type": {
2946
3095
  "text": "boolean"
2947
3096
  },
@@ -2949,15 +3098,15 @@
2949
3098
  },
2950
3099
  {
2951
3100
  "kind": "field",
2952
- "name": "fieldMetadata",
3101
+ "name": "state",
2953
3102
  "type": {
2954
- "text": "MetadataDetail[] | string[]"
3103
+ "text": "AIIndicatorState"
2955
3104
  },
2956
- "default": "[]"
3105
+ "default": "'none'"
2957
3106
  },
2958
3107
  {
2959
3108
  "kind": "field",
2960
- "name": "isRecording",
3109
+ "name": "isInstalling",
2961
3110
  "type": {
2962
3111
  "text": "boolean"
2963
3112
  },
@@ -2965,33 +3114,29 @@
2965
3114
  },
2966
3115
  {
2967
3116
  "kind": "field",
2968
- "name": "textAreaRef",
3117
+ "name": "pollTimer",
2969
3118
  "type": {
2970
- "text": "HTMLTextAreaElement"
3119
+ "text": "ReturnType<typeof setInterval> | null"
2971
3120
  },
2972
- "privacy": "public"
3121
+ "privacy": "private",
3122
+ "default": "null"
2973
3123
  },
2974
3124
  {
2975
3125
  "kind": "field",
2976
- "name": "stopRecording",
2977
- "type": {
2978
- "text": "(() => void) | null"
2979
- },
2980
- "privacy": "private",
2981
- "default": "null"
3126
+ "name": "clickOutside",
3127
+ "privacy": "private"
2982
3128
  },
2983
3129
  {
2984
3130
  "kind": "field",
2985
- "name": "speechApplyDebounceTimer",
3131
+ "name": "chromeStatusLabel",
2986
3132
  "type": {
2987
- "text": "ReturnType<typeof setTimeout> | null"
3133
+ "text": "string | null"
2988
3134
  },
2989
- "privacy": "private",
2990
- "default": "null"
3135
+ "readonly": true
2991
3136
  },
2992
3137
  {
2993
3138
  "kind": "field",
2994
- "name": "speechAvailable",
3139
+ "name": "canInstall",
2995
3140
  "type": {
2996
3141
  "text": "boolean"
2997
3142
  },
@@ -2999,65 +3144,69 @@
2999
3144
  },
3000
3145
  {
3001
3146
  "kind": "field",
3002
- "name": "criteriaChips",
3147
+ "name": "isDownloading",
3003
3148
  "type": {
3004
- "text": "CriteriaChip[]"
3149
+ "text": "boolean"
3005
3150
  },
3006
3151
  "readonly": true
3007
3152
  },
3008
3153
  {
3009
3154
  "kind": "method",
3010
- "name": "getFieldLabel",
3011
- "privacy": "private",
3155
+ "name": "openChanged",
3012
3156
  "return": {
3013
3157
  "type": {
3014
- "text": "string"
3158
+ "text": "void"
3015
3159
  }
3016
- },
3160
+ }
3161
+ },
3162
+ {
3163
+ "kind": "method",
3164
+ "name": "handleClickOutside",
3165
+ "privacy": "private",
3017
3166
  "parameters": [
3018
3167
  {
3019
- "name": "fieldName",
3168
+ "name": "event",
3020
3169
  "type": {
3021
- "text": "string"
3170
+ "text": "MouseEvent"
3022
3171
  }
3023
3172
  }
3024
3173
  ]
3025
3174
  },
3026
3175
  {
3027
3176
  "kind": "method",
3028
- "name": "toggleCriteriaView",
3177
+ "name": "toggleDropdown"
3178
+ },
3179
+ {
3180
+ "kind": "method",
3181
+ "name": "refreshStatus",
3029
3182
  "return": {
3030
3183
  "type": {
3031
- "text": "void"
3184
+ "text": "Promise<void>"
3032
3185
  }
3033
3186
  }
3034
3187
  },
3035
3188
  {
3036
3189
  "kind": "method",
3037
- "name": "removeChip",
3190
+ "name": "deriveState",
3191
+ "privacy": "private",
3038
3192
  "return": {
3039
3193
  "type": {
3040
- "text": "void"
3194
+ "text": "AIIndicatorState"
3041
3195
  }
3042
3196
  },
3043
3197
  "parameters": [
3044
3198
  {
3045
- "name": "groupIndex",
3046
- "type": {
3047
- "text": "number"
3048
- }
3049
- },
3050
- {
3051
- "name": "clauseIndex",
3199
+ "name": "s",
3052
3200
  "type": {
3053
- "text": "number"
3201
+ "text": "AIStatus | null"
3054
3202
  }
3055
3203
  }
3056
3204
  ]
3057
3205
  },
3058
3206
  {
3059
3207
  "kind": "method",
3060
- "name": "clearChips",
3208
+ "name": "maybeStartPolling",
3209
+ "privacy": "private",
3061
3210
  "return": {
3062
3211
  "type": {
3063
3212
  "text": "void"
@@ -3066,24 +3215,32 @@
3066
3215
  },
3067
3216
  {
3068
3217
  "kind": "method",
3069
- "name": "handleSubmit"
3070
- },
3071
- {
3072
- "kind": "method",
3073
- "name": "handleBlur"
3074
- },
3075
- {
3076
- "kind": "method",
3077
- "name": "clear"
3218
+ "name": "startPolling",
3219
+ "privacy": "private",
3220
+ "return": {
3221
+ "type": {
3222
+ "text": "void"
3223
+ }
3224
+ }
3078
3225
  },
3079
3226
  {
3080
3227
  "kind": "method",
3081
- "name": "toggleSpeechInput"
3228
+ "name": "stopPolling",
3229
+ "privacy": "private",
3230
+ "return": {
3231
+ "type": {
3232
+ "text": "void"
3233
+ }
3234
+ }
3082
3235
  },
3083
3236
  {
3084
3237
  "kind": "method",
3085
- "name": "clearSpeechApplyDebounce",
3086
- "privacy": "private"
3238
+ "name": "onInstall",
3239
+ "return": {
3240
+ "type": {
3241
+ "text": "Promise<void>"
3242
+ }
3243
+ }
3087
3244
  },
3088
3245
  {
3089
3246
  "kind": "field",
@@ -3197,245 +3354,88 @@
3197
3354
  }
3198
3355
  }
3199
3356
  ],
3200
- "events": [
3201
- {
3202
- "description": "Fired when interpreted criteria is applied or cleared",
3203
- "name": "criteria-changed"
3204
- },
3205
- {
3206
- "description": "Fired when interpreted criteria contains invalid clauses",
3207
- "name": "validation-errors"
3208
- }
3209
- ],
3210
- "attributes": [
3211
- {
3212
- "name": "placeholder",
3213
- "type": {
3214
- "text": "string"
3215
- },
3216
- "default": "'Describe your search criteria in natural language...'",
3217
- "fieldName": "placeholder"
3218
- },
3219
- {
3220
- "type": {
3221
- "text": "boolean"
3222
- },
3223
- "fieldName": "disabled"
3224
- }
3225
- ],
3226
3357
  "superclass": {
3227
3358
  "name": "FoundationElement",
3228
3359
  "package": "@microsoft/fast-foundation"
3229
3360
  },
3230
- "tagName": "%%prefix%%-ai-criteria-search",
3361
+ "tagName": "%%prefix%%-ai-indicator",
3231
3362
  "customElement": true
3232
3363
  },
3233
3364
  {
3234
3365
  "kind": "variable",
3235
- "name": "foundationAiCriteriaSearchShadowOptions",
3236
- "type": {
3237
- "text": "ShadowRootInit"
3238
- },
3239
- "default": "undefined"
3240
- },
3241
- {
3242
- "kind": "variable",
3243
- "name": "defaultAiCriteriaSearchConfig",
3244
- "type": {
3245
- "text": "object"
3246
- },
3247
- "default": "{}"
3248
- },
3249
- {
3250
- "kind": "variable",
3251
- "name": "foundationAiCriteriaSearch"
3366
+ "name": "foundationAiIndicator"
3252
3367
  }
3253
3368
  ],
3254
3369
  "exports": [
3255
3370
  {
3256
3371
  "kind": "js",
3257
- "name": "AiCriteriaSearch",
3258
- "declaration": {
3259
- "name": "AiCriteriaSearch",
3260
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3261
- }
3262
- },
3263
- {
3264
- "kind": "js",
3265
- "name": "foundationAiCriteriaSearchShadowOptions",
3266
- "declaration": {
3267
- "name": "foundationAiCriteriaSearchShadowOptions",
3268
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3269
- }
3270
- },
3271
- {
3272
- "kind": "js",
3273
- "name": "defaultAiCriteriaSearchConfig",
3372
+ "name": "AiIndicator",
3274
3373
  "declaration": {
3275
- "name": "defaultAiCriteriaSearchConfig",
3276
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3374
+ "name": "AiIndicator",
3375
+ "module": "src/ai-indicator/ai-indicator.ts"
3277
3376
  }
3278
3377
  },
3279
3378
  {
3280
3379
  "kind": "js",
3281
- "name": "foundationAiCriteriaSearch",
3380
+ "name": "foundationAiIndicator",
3282
3381
  "declaration": {
3283
- "name": "foundationAiCriteriaSearch",
3284
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3382
+ "name": "foundationAiIndicator",
3383
+ "module": "src/ai-indicator/ai-indicator.ts"
3285
3384
  }
3286
3385
  }
3287
3386
  ]
3288
3387
  },
3289
3388
  {
3290
3389
  "kind": "javascript-module",
3291
- "path": "src/ai-criteria-search/index.ts",
3390
+ "path": "src/ai-indicator/index.ts",
3292
3391
  "declarations": [],
3293
3392
  "exports": [
3294
3393
  {
3295
3394
  "kind": "js",
3296
- "name": "AiCriteriaSearch",
3297
- "declaration": {
3298
- "name": "AiCriteriaSearch",
3299
- "module": "./ai-criteria-search"
3300
- }
3301
- },
3302
- {
3303
- "kind": "js",
3304
- "name": "defaultAiCriteriaSearchConfig",
3305
- "declaration": {
3306
- "name": "defaultAiCriteriaSearchConfig",
3307
- "module": "./ai-criteria-search"
3308
- }
3309
- },
3310
- {
3311
- "kind": "js",
3312
- "name": "foundationAiCriteriaSearch",
3313
- "declaration": {
3314
- "name": "foundationAiCriteriaSearch",
3315
- "module": "./ai-criteria-search"
3316
- }
3317
- },
3318
- {
3319
- "kind": "js",
3320
- "name": "foundationAiCriteriaSearchShadowOptions",
3321
- "declaration": {
3322
- "name": "foundationAiCriteriaSearchShadowOptions",
3323
- "module": "./ai-criteria-search"
3324
- }
3325
- },
3326
- {
3327
- "kind": "js",
3328
- "name": "foundationAiCriteriaSearchStyles",
3329
- "declaration": {
3330
- "name": "foundationAiCriteriaSearchStyles",
3331
- "module": "./ai-criteria-search.styles"
3332
- }
3333
- },
3334
- {
3335
- "kind": "js",
3336
- "name": "foundationAiCriteriaSearchTemplate",
3395
+ "name": "AiIndicator",
3337
3396
  "declaration": {
3338
- "name": "foundationAiCriteriaSearchTemplate",
3339
- "module": "./ai-criteria-search.template"
3397
+ "name": "AiIndicator",
3398
+ "module": "./ai-indicator"
3340
3399
  }
3341
3400
  },
3342
3401
  {
3343
3402
  "kind": "js",
3344
- "name": "*",
3403
+ "name": "foundationAiIndicator",
3345
3404
  "declaration": {
3346
- "name": "*",
3347
- "package": "./validation/criteria-ir"
3405
+ "name": "foundationAiIndicator",
3406
+ "module": "./ai-indicator"
3348
3407
  }
3349
3408
  },
3350
3409
  {
3351
3410
  "kind": "js",
3352
- "name": "*",
3411
+ "name": "type",
3353
3412
  "declaration": {
3354
- "name": "*",
3355
- "package": "./validation/operator-map"
3413
+ "name": "type",
3414
+ "module": "./ai-indicator"
3356
3415
  }
3357
3416
  },
3358
3417
  {
3359
3418
  "kind": "js",
3360
- "name": "*",
3419
+ "name": "AIIndicatorState",
3361
3420
  "declaration": {
3362
- "name": "*",
3363
- "package": "./validation/schema-validator"
3421
+ "name": "AIIndicatorState",
3422
+ "module": "./ai-indicator"
3364
3423
  }
3365
- }
3366
- ]
3367
- },
3368
- {
3369
- "kind": "javascript-module",
3370
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3371
- "declarations": [
3372
- {
3373
- "kind": "function",
3374
- "name": "formatValidationErrors",
3375
- "return": {
3376
- "type": {
3377
- "text": "string"
3378
- }
3379
- },
3380
- "parameters": [
3381
- {
3382
- "name": "errors",
3383
- "type": {
3384
- "text": "ValidationError[]"
3385
- }
3386
- }
3387
- ],
3388
- "description": "Formats validation errors into a user-friendly message."
3389
3424
  },
3390
- {
3391
- "kind": "function",
3392
- "name": "showCriteriaError",
3393
- "return": {
3394
- "type": {
3395
- "text": "void"
3396
- }
3397
- },
3398
- "parameters": [
3399
- {
3400
- "name": "title",
3401
- "type": {
3402
- "text": "string"
3403
- },
3404
- "description": "Notification title (e.g. \"Criteria validation error\")"
3405
- },
3406
- {
3407
- "name": "body",
3408
- "type": {
3409
- "text": "string"
3410
- },
3411
- "description": "Error message to display"
3412
- },
3413
- {
3414
- "name": "tagName",
3415
- "type": {
3416
- "text": "string"
3417
- },
3418
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3419
- }
3420
- ],
3421
- "description": "Shows a criteria error as a toast notification."
3422
- }
3423
- ],
3424
- "exports": [
3425
3425
  {
3426
3426
  "kind": "js",
3427
- "name": "formatValidationErrors",
3427
+ "name": "foundationAiIndicatorTemplate",
3428
3428
  "declaration": {
3429
- "name": "formatValidationErrors",
3430
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3429
+ "name": "foundationAiIndicatorTemplate",
3430
+ "module": "./ai-indicator.template"
3431
3431
  }
3432
3432
  },
3433
3433
  {
3434
3434
  "kind": "js",
3435
- "name": "showCriteriaError",
3435
+ "name": "foundationAiIndicatorStyles",
3436
3436
  "declaration": {
3437
- "name": "showCriteriaError",
3438
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3437
+ "name": "foundationAiIndicatorStyles",
3438
+ "module": "./ai-indicator.styles"
3439
3439
  }
3440
3440
  }
3441
3441
  ]