@genesislcap/foundation-ui 15.19.3 → 15.19.4-alpha-487017916.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.
@@ -1920,115 +1920,203 @@
1920
1920
  },
1921
1921
  {
1922
1922
  "kind": "javascript-module",
1923
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
1923
+ "path": "src/actions-menu/actions-menu.styles.ts",
1924
1924
  "declarations": [
1925
1925
  {
1926
- "kind": "variable",
1927
- "name": "foundationAiCriteriaSearchStyles",
1928
- "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`"
1926
+ "kind": "function",
1927
+ "name": "actionsMenuBaseStyles",
1928
+ "return": {
1929
+ "type": {
1930
+ "text": "ElementStyles"
1931
+ }
1932
+ },
1933
+ "parameters": [
1934
+ {
1935
+ "name": "context",
1936
+ "type": {
1937
+ "text": "ElementDefinitionContext"
1938
+ }
1939
+ },
1940
+ {
1941
+ "name": "definition",
1942
+ "type": {
1943
+ "text": "FoundationElementDefinition"
1944
+ }
1945
+ }
1946
+ ]
1947
+ },
1948
+ {
1949
+ "kind": "function",
1950
+ "name": "foundationActionsMenuStyles",
1951
+ "return": {
1952
+ "type": {
1953
+ "text": "ElementStyles"
1954
+ }
1955
+ },
1956
+ "parameters": [
1957
+ {
1958
+ "name": "context",
1959
+ "type": {
1960
+ "text": "ElementDefinitionContext"
1961
+ }
1962
+ },
1963
+ {
1964
+ "name": "definition",
1965
+ "type": {
1966
+ "text": "FoundationElementDefinition"
1967
+ }
1968
+ }
1969
+ ]
1929
1970
  }
1930
1971
  ],
1931
1972
  "exports": [
1932
1973
  {
1933
1974
  "kind": "js",
1934
- "name": "foundationAiCriteriaSearchStyles",
1975
+ "name": "actionsMenuBaseStyles",
1935
1976
  "declaration": {
1936
- "name": "foundationAiCriteriaSearchStyles",
1937
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
1977
+ "name": "actionsMenuBaseStyles",
1978
+ "module": "src/actions-menu/actions-menu.styles.ts"
1979
+ }
1980
+ },
1981
+ {
1982
+ "kind": "js",
1983
+ "name": "foundationActionsMenuStyles",
1984
+ "declaration": {
1985
+ "name": "foundationActionsMenuStyles",
1986
+ "module": "src/actions-menu/actions-menu.styles.ts"
1938
1987
  }
1939
1988
  }
1940
1989
  ]
1941
1990
  },
1942
1991
  {
1943
1992
  "kind": "javascript-module",
1944
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
1993
+ "path": "src/actions-menu/actions-menu.template.ts",
1945
1994
  "declarations": [
1995
+ {
1996
+ "kind": "function",
1997
+ "name": "menuTemplate",
1998
+ "parameters": [
1999
+ {
2000
+ "name": "prefix",
2001
+ "type": {
2002
+ "text": "string"
2003
+ }
2004
+ }
2005
+ ]
2006
+ },
2007
+ {
2008
+ "kind": "function",
2009
+ "name": "singleOptionTemplate",
2010
+ "parameters": [
2011
+ {
2012
+ "name": "prefix",
2013
+ "type": {
2014
+ "text": "string"
2015
+ }
2016
+ }
2017
+ ]
2018
+ },
1946
2019
  {
1947
2020
  "kind": "variable",
1948
- "name": "foundationAiCriteriaSearchTemplate",
2021
+ "name": "foundationActionsMenuTemplate",
1949
2022
  "type": {
1950
- "text": "ViewTemplate<AiCriteriaSearch>"
2023
+ "text": "ViewTemplate<ActionsMenu>"
1951
2024
  },
1952
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2025
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1953
2026
  }
1954
2027
  ],
1955
2028
  "exports": [
1956
2029
  {
1957
2030
  "kind": "js",
1958
- "name": "foundationAiCriteriaSearchTemplate",
2031
+ "name": "menuTemplate",
1959
2032
  "declaration": {
1960
- "name": "foundationAiCriteriaSearchTemplate",
1961
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2033
+ "name": "menuTemplate",
2034
+ "module": "src/actions-menu/actions-menu.template.ts"
2035
+ }
2036
+ },
2037
+ {
2038
+ "kind": "js",
2039
+ "name": "singleOptionTemplate",
2040
+ "declaration": {
2041
+ "name": "singleOptionTemplate",
2042
+ "module": "src/actions-menu/actions-menu.template.ts"
2043
+ }
2044
+ },
2045
+ {
2046
+ "kind": "js",
2047
+ "name": "foundationActionsMenuTemplate",
2048
+ "declaration": {
2049
+ "name": "foundationActionsMenuTemplate",
2050
+ "module": "src/actions-menu/actions-menu.template.ts"
1962
2051
  }
1963
2052
  }
1964
2053
  ]
1965
2054
  },
1966
2055
  {
1967
2056
  "kind": "javascript-module",
1968
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2057
+ "path": "src/actions-menu/actions-menu.ts",
1969
2058
  "declarations": [
1970
2059
  {
1971
2060
  "kind": "class",
1972
- "description": "Natural-language criteria search input with AI interpretation.",
1973
- "name": "AiCriteriaSearch",
2061
+ "description": "",
2062
+ "name": "ActionsMenu",
1974
2063
  "members": [
1975
2064
  {
1976
2065
  "kind": "field",
1977
- "name": "providerRegistry",
2066
+ "name": "actions",
1978
2067
  "type": {
1979
- "text": "AIProviderRegistry"
2068
+ "text": "ActionMenuItem[]"
1980
2069
  }
1981
2070
  },
1982
2071
  {
1983
2072
  "kind": "field",
1984
- "name": "placeholder",
2073
+ "name": "isVertical",
1985
2074
  "type": {
1986
- "text": "string"
2075
+ "text": "boolean"
1987
2076
  },
1988
- "default": "'Describe your search criteria in natural language...'"
2077
+ "default": "false"
1989
2078
  },
1990
2079
  {
1991
2080
  "kind": "field",
1992
- "name": "disabled",
2081
+ "name": "addDefaultActions",
1993
2082
  "type": {
1994
2083
  "text": "boolean"
1995
- }
2084
+ },
2085
+ "default": "true"
1996
2086
  },
1997
2087
  {
1998
2088
  "kind": "field",
1999
- "name": "inputValue",
2089
+ "name": "autoCloseOnAction",
2000
2090
  "type": {
2001
- "text": "string"
2091
+ "text": "boolean"
2002
2092
  },
2003
- "default": "''"
2093
+ "default": "true"
2004
2094
  },
2005
2095
  {
2006
2096
  "kind": "field",
2007
- "name": "isInterpreting",
2097
+ "name": "classNames",
2008
2098
  "type": {
2009
- "text": "boolean"
2010
- },
2011
- "default": "false"
2099
+ "text": "string"
2100
+ }
2012
2101
  },
2013
2102
  {
2014
2103
  "kind": "field",
2015
- "name": "lastValidCriteria",
2104
+ "name": "definition",
2016
2105
  "type": {
2017
- "text": "string | null"
2018
- },
2019
- "default": "null"
2106
+ "text": "any"
2107
+ }
2020
2108
  },
2021
2109
  {
2022
2110
  "kind": "field",
2023
- "name": "activeGroups",
2111
+ "name": "name",
2024
2112
  "type": {
2025
- "text": "CriteriaGroup[]"
2113
+ "text": "string"
2026
2114
  },
2027
- "default": "[]"
2115
+ "default": "'Actions'"
2028
2116
  },
2029
2117
  {
2030
2118
  "kind": "field",
2031
- "name": "showingChips",
2119
+ "name": "open",
2032
2120
  "type": {
2033
2121
  "text": "boolean"
2034
2122
  },
@@ -2036,15 +2124,14 @@
2036
2124
  },
2037
2125
  {
2038
2126
  "kind": "field",
2039
- "name": "fieldMetadata",
2127
+ "name": "buttonAppearance",
2040
2128
  "type": {
2041
- "text": "MetadataDetail[] | string[]"
2042
- },
2043
- "default": "[]"
2129
+ "text": "string"
2130
+ }
2044
2131
  },
2045
2132
  {
2046
2133
  "kind": "field",
2047
- "name": "isRecording",
2134
+ "name": "hideDisabled",
2048
2135
  "type": {
2049
2136
  "text": "boolean"
2050
2137
  },
@@ -2052,125 +2139,114 @@
2052
2139
  },
2053
2140
  {
2054
2141
  "kind": "field",
2055
- "name": "textAreaRef",
2142
+ "name": "hideMenuSingleOption",
2056
2143
  "type": {
2057
- "text": "HTMLTextAreaElement"
2144
+ "text": "boolean"
2058
2145
  },
2059
- "privacy": "public"
2146
+ "default": "false"
2060
2147
  },
2061
2148
  {
2062
2149
  "kind": "field",
2063
- "name": "stopRecording",
2150
+ "name": "singleOption",
2064
2151
  "type": {
2065
- "text": "(() => void) | null"
2066
- },
2067
- "privacy": "private",
2068
- "default": "null"
2152
+ "text": "ActionMenuItem"
2153
+ }
2069
2154
  },
2070
2155
  {
2071
2156
  "kind": "field",
2072
- "name": "speechApplyDebounceTimer",
2157
+ "name": "actionsMenu",
2073
2158
  "type": {
2074
- "text": "ReturnType<typeof setTimeout> | null"
2075
- },
2076
- "privacy": "private",
2077
- "default": "null"
2159
+ "text": "HTMLElement"
2160
+ }
2078
2161
  },
2079
2162
  {
2080
2163
  "kind": "field",
2081
- "name": "speechAvailable",
2164
+ "name": "actionsOpener",
2082
2165
  "type": {
2083
- "text": "boolean"
2084
- },
2085
- "readonly": true
2166
+ "text": "HTMLElement"
2167
+ }
2086
2168
  },
2087
2169
  {
2088
- "kind": "field",
2089
- "name": "criteriaChips",
2090
- "type": {
2091
- "text": "CriteriaChip[]"
2092
- },
2093
- "readonly": true
2170
+ "kind": "method",
2171
+ "name": "updateMenuPosition",
2172
+ "privacy": "private"
2094
2173
  },
2095
2174
  {
2096
2175
  "kind": "method",
2097
- "name": "getFieldLabel",
2098
- "privacy": "private",
2099
- "return": {
2100
- "type": {
2101
- "text": "string"
2102
- }
2103
- },
2176
+ "name": "definitionChanged",
2177
+ "privacy": "protected",
2104
2178
  "parameters": [
2105
2179
  {
2106
- "name": "fieldName",
2180
+ "name": "oldValue",
2107
2181
  "type": {
2108
- "text": "string"
2182
+ "text": "any"
2183
+ }
2184
+ },
2185
+ {
2186
+ "name": "newValue",
2187
+ "type": {
2188
+ "text": "any"
2109
2189
  }
2110
2190
  }
2111
2191
  ]
2112
2192
  },
2113
2193
  {
2114
2194
  "kind": "method",
2115
- "name": "toggleCriteriaView",
2116
- "return": {
2117
- "type": {
2118
- "text": "void"
2119
- }
2120
- }
2195
+ "name": "openChanged",
2196
+ "privacy": "protected"
2121
2197
  },
2122
2198
  {
2123
2199
  "kind": "method",
2124
- "name": "removeChip",
2125
- "return": {
2126
- "type": {
2127
- "text": "void"
2128
- }
2129
- },
2200
+ "name": "toggleActionsMenuVisibility"
2201
+ },
2202
+ {
2203
+ "kind": "method",
2204
+ "name": "onActionMenuItemClick",
2130
2205
  "parameters": [
2131
2206
  {
2132
- "name": "groupIndex",
2207
+ "name": "callback",
2133
2208
  "type": {
2134
- "text": "number"
2135
- }
2136
- },
2137
- {
2138
- "name": "clauseIndex",
2139
- "type": {
2140
- "text": "number"
2209
+ "text": "(rowData) => void | any"
2141
2210
  }
2142
2211
  }
2143
2212
  ]
2144
2213
  },
2145
2214
  {
2146
- "kind": "method",
2147
- "name": "clearChips",
2148
- "return": {
2149
- "type": {
2150
- "text": "void"
2151
- }
2152
- }
2153
- },
2154
- {
2155
- "kind": "method",
2156
- "name": "handleSubmit"
2157
- },
2158
- {
2159
- "kind": "method",
2160
- "name": "handleBlur"
2215
+ "kind": "field",
2216
+ "name": "allActions",
2217
+ "type": {
2218
+ "text": "ActionMenuItem[]"
2219
+ },
2220
+ "readonly": true
2161
2221
  },
2162
2222
  {
2163
- "kind": "method",
2164
- "name": "clear"
2223
+ "kind": "field",
2224
+ "name": "rowData",
2225
+ "readonly": true
2165
2226
  },
2166
2227
  {
2167
2228
  "kind": "method",
2168
- "name": "toggleSpeechInput"
2229
+ "name": "getLabel",
2230
+ "parameters": [
2231
+ {
2232
+ "name": "name",
2233
+ "type": {
2234
+ "text": "string | ((rowData: any) => string)"
2235
+ }
2236
+ }
2237
+ ]
2169
2238
  },
2170
2239
  {
2171
2240
  "kind": "method",
2172
- "name": "clearSpeechApplyDebounce",
2173
- "privacy": "private"
2241
+ "name": "getTemplate",
2242
+ "parameters": [
2243
+ {
2244
+ "name": "prefix",
2245
+ "type": {
2246
+ "text": "string"
2247
+ }
2248
+ }
2249
+ ]
2174
2250
  },
2175
2251
  {
2176
2252
  "kind": "field",
@@ -2284,154 +2360,115 @@
2284
2360
  }
2285
2361
  }
2286
2362
  ],
2287
- "events": [
2363
+ "attributes": [
2288
2364
  {
2289
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2290
- "name": "criteria-changed"
2365
+ "name": "is-vertical",
2366
+ "type": {
2367
+ "text": "boolean"
2368
+ },
2369
+ "default": "false",
2370
+ "fieldName": "isVertical"
2291
2371
  },
2292
2372
  {
2293
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2294
- "name": "validation-errors"
2295
- }
2296
- ],
2297
- "attributes": [
2373
+ "name": "add-default-actions",
2374
+ "type": {
2375
+ "text": "boolean"
2376
+ },
2377
+ "default": "true",
2378
+ "fieldName": "addDefaultActions"
2379
+ },
2298
2380
  {
2299
- "name": "placeholder",
2381
+ "name": "auto-close-on-action",
2382
+ "type": {
2383
+ "text": "boolean"
2384
+ },
2385
+ "default": "true",
2386
+ "fieldName": "autoCloseOnAction"
2387
+ },
2388
+ {
2389
+ "name": "name",
2300
2390
  "type": {
2301
2391
  "text": "string"
2302
2392
  },
2303
- "default": "'Describe your search criteria in natural language...'",
2304
- "fieldName": "placeholder"
2393
+ "default": "'Actions'",
2394
+ "fieldName": "name"
2305
2395
  },
2306
2396
  {
2397
+ "name": "open",
2307
2398
  "type": {
2308
2399
  "text": "boolean"
2309
2400
  },
2310
- "fieldName": "disabled"
2401
+ "default": "false",
2402
+ "fieldName": "open"
2403
+ },
2404
+ {
2405
+ "name": "buttonAppearance",
2406
+ "type": {
2407
+ "text": "string"
2408
+ },
2409
+ "fieldName": "buttonAppearance"
2410
+ },
2411
+ {
2412
+ "name": "hide-disabled",
2413
+ "type": {
2414
+ "text": "boolean"
2415
+ },
2416
+ "default": "false",
2417
+ "fieldName": "hideDisabled"
2418
+ },
2419
+ {
2420
+ "name": "hide-menu-single-option",
2421
+ "type": {
2422
+ "text": "boolean"
2423
+ },
2424
+ "default": "false",
2425
+ "fieldName": "hideMenuSingleOption"
2311
2426
  }
2312
2427
  ],
2313
2428
  "superclass": {
2314
2429
  "name": "FoundationElement",
2315
2430
  "package": "@microsoft/fast-foundation"
2316
2431
  },
2317
- "tagName": "%%prefix%%-ai-criteria-search",
2432
+ "tagName": "%%prefix%%-actions-menu",
2318
2433
  "customElement": true
2319
2434
  },
2320
2435
  {
2321
2436
  "kind": "variable",
2322
- "name": "foundationAiCriteriaSearchShadowOptions",
2323
- "type": {
2324
- "text": "ShadowRootInit"
2325
- },
2326
- "default": "undefined"
2327
- },
2328
- {
2329
- "kind": "variable",
2330
- "name": "defaultAiCriteriaSearchConfig",
2331
- "type": {
2332
- "text": "object"
2333
- },
2334
- "default": "{}"
2335
- },
2336
- {
2337
- "kind": "variable",
2338
- "name": "foundationAiCriteriaSearch"
2437
+ "name": "foundationActionsMenu",
2438
+ "description": "The Foundation Actions Menu",
2439
+ "privacy": "public"
2339
2440
  }
2340
2441
  ],
2341
2442
  "exports": [
2342
2443
  {
2343
2444
  "kind": "js",
2344
- "name": "AiCriteriaSearch",
2345
- "declaration": {
2346
- "name": "AiCriteriaSearch",
2347
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2348
- }
2349
- },
2350
- {
2351
- "kind": "js",
2352
- "name": "foundationAiCriteriaSearchShadowOptions",
2353
- "declaration": {
2354
- "name": "foundationAiCriteriaSearchShadowOptions",
2355
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2356
- }
2357
- },
2358
- {
2359
- "kind": "js",
2360
- "name": "defaultAiCriteriaSearchConfig",
2445
+ "name": "ActionsMenu",
2361
2446
  "declaration": {
2362
- "name": "defaultAiCriteriaSearchConfig",
2363
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2447
+ "name": "ActionsMenu",
2448
+ "module": "src/actions-menu/actions-menu.ts"
2364
2449
  }
2365
2450
  },
2366
2451
  {
2367
2452
  "kind": "js",
2368
- "name": "foundationAiCriteriaSearch",
2453
+ "name": "foundationActionsMenu",
2369
2454
  "declaration": {
2370
- "name": "foundationAiCriteriaSearch",
2371
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2455
+ "name": "foundationActionsMenu",
2456
+ "module": "src/actions-menu/actions-menu.ts"
2372
2457
  }
2373
2458
  }
2374
2459
  ]
2375
2460
  },
2376
2461
  {
2377
2462
  "kind": "javascript-module",
2378
- "path": "src/ai-criteria-search/index.ts",
2463
+ "path": "src/actions-menu/index.ts",
2379
2464
  "declarations": [],
2380
2465
  "exports": [
2381
- {
2382
- "kind": "js",
2383
- "name": "AiCriteriaSearch",
2384
- "declaration": {
2385
- "name": "AiCriteriaSearch",
2386
- "module": "./ai-criteria-search"
2387
- }
2388
- },
2389
- {
2390
- "kind": "js",
2391
- "name": "defaultAiCriteriaSearchConfig",
2392
- "declaration": {
2393
- "name": "defaultAiCriteriaSearchConfig",
2394
- "module": "./ai-criteria-search"
2395
- }
2396
- },
2397
- {
2398
- "kind": "js",
2399
- "name": "foundationAiCriteriaSearch",
2400
- "declaration": {
2401
- "name": "foundationAiCriteriaSearch",
2402
- "module": "./ai-criteria-search"
2403
- }
2404
- },
2405
- {
2406
- "kind": "js",
2407
- "name": "foundationAiCriteriaSearchShadowOptions",
2408
- "declaration": {
2409
- "name": "foundationAiCriteriaSearchShadowOptions",
2410
- "module": "./ai-criteria-search"
2411
- }
2412
- },
2413
- {
2414
- "kind": "js",
2415
- "name": "foundationAiCriteriaSearchStyles",
2416
- "declaration": {
2417
- "name": "foundationAiCriteriaSearchStyles",
2418
- "module": "./ai-criteria-search.styles"
2419
- }
2420
- },
2421
- {
2422
- "kind": "js",
2423
- "name": "foundationAiCriteriaSearchTemplate",
2424
- "declaration": {
2425
- "name": "foundationAiCriteriaSearchTemplate",
2426
- "module": "./ai-criteria-search.template"
2427
- }
2428
- },
2429
2466
  {
2430
2467
  "kind": "js",
2431
2468
  "name": "*",
2432
2469
  "declaration": {
2433
2470
  "name": "*",
2434
- "package": "./validation/criteria-ir"
2471
+ "package": "./actions-menu.styles"
2435
2472
  }
2436
2473
  },
2437
2474
  {
@@ -2439,7 +2476,7 @@
2439
2476
  "name": "*",
2440
2477
  "declaration": {
2441
2478
  "name": "*",
2442
- "package": "./validation/operator-map"
2479
+ "package": "./actions-menu.template"
2443
2480
  }
2444
2481
  },
2445
2482
  {
@@ -2447,116 +2484,18 @@
2447
2484
  "name": "*",
2448
2485
  "declaration": {
2449
2486
  "name": "*",
2450
- "package": "./validation/schema-validator"
2451
- }
2452
- }
2453
- ]
2454
- },
2455
- {
2456
- "kind": "javascript-module",
2457
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2458
- "declarations": [
2459
- {
2460
- "kind": "function",
2461
- "name": "formatValidationErrors",
2462
- "return": {
2463
- "type": {
2464
- "text": "string"
2465
- }
2466
- },
2467
- "parameters": [
2468
- {
2469
- "name": "errors",
2470
- "type": {
2471
- "text": "ValidationError[]"
2472
- }
2473
- }
2474
- ],
2475
- "description": "Formats validation errors into a user-friendly message."
2476
- },
2477
- {
2478
- "kind": "function",
2479
- "name": "showCriteriaError",
2480
- "return": {
2481
- "type": {
2482
- "text": "void"
2483
- }
2484
- },
2485
- "parameters": [
2486
- {
2487
- "name": "title",
2488
- "type": {
2489
- "text": "string"
2490
- },
2491
- "description": "Notification title (e.g. \"Criteria validation error\")"
2492
- },
2493
- {
2494
- "name": "body",
2495
- "type": {
2496
- "text": "string"
2497
- },
2498
- "description": "Error message to display"
2499
- },
2500
- {
2501
- "name": "tagName",
2502
- "type": {
2503
- "text": "string"
2504
- },
2505
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2506
- }
2507
- ],
2508
- "description": "Shows a criteria error as a toast notification."
2509
- }
2510
- ],
2511
- "exports": [
2512
- {
2513
- "kind": "js",
2514
- "name": "formatValidationErrors",
2515
- "declaration": {
2516
- "name": "formatValidationErrors",
2517
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2518
- }
2519
- },
2520
- {
2521
- "kind": "js",
2522
- "name": "showCriteriaError",
2523
- "declaration": {
2524
- "name": "showCriteriaError",
2525
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2487
+ "package": "./actions-menu"
2526
2488
  }
2527
2489
  }
2528
2490
  ]
2529
2491
  },
2530
2492
  {
2531
2493
  "kind": "javascript-module",
2532
- "path": "src/actions-menu/actions-menu.styles.ts",
2494
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
2533
2495
  "declarations": [
2534
2496
  {
2535
2497
  "kind": "function",
2536
- "name": "actionsMenuBaseStyles",
2537
- "return": {
2538
- "type": {
2539
- "text": "ElementStyles"
2540
- }
2541
- },
2542
- "parameters": [
2543
- {
2544
- "name": "context",
2545
- "type": {
2546
- "text": "ElementDefinitionContext"
2547
- }
2548
- },
2549
- {
2550
- "name": "definition",
2551
- "type": {
2552
- "text": "FoundationElementDefinition"
2553
- }
2554
- }
2555
- ]
2556
- },
2557
- {
2558
- "kind": "function",
2559
- "name": "foundationActionsMenuStyles",
2498
+ "name": "foundationAiIndicatorStyles",
2560
2499
  "return": {
2561
2500
  "type": {
2562
2501
  "text": "ElementStyles"
@@ -2581,147 +2520,71 @@
2581
2520
  "exports": [
2582
2521
  {
2583
2522
  "kind": "js",
2584
- "name": "actionsMenuBaseStyles",
2585
- "declaration": {
2586
- "name": "actionsMenuBaseStyles",
2587
- "module": "src/actions-menu/actions-menu.styles.ts"
2588
- }
2589
- },
2590
- {
2591
- "kind": "js",
2592
- "name": "foundationActionsMenuStyles",
2523
+ "name": "foundationAiIndicatorStyles",
2593
2524
  "declaration": {
2594
- "name": "foundationActionsMenuStyles",
2595
- "module": "src/actions-menu/actions-menu.styles.ts"
2525
+ "name": "foundationAiIndicatorStyles",
2526
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
2596
2527
  }
2597
2528
  }
2598
2529
  ]
2599
2530
  },
2600
2531
  {
2601
2532
  "kind": "javascript-module",
2602
- "path": "src/actions-menu/actions-menu.template.ts",
2533
+ "path": "src/ai-indicator/ai-indicator.template.ts",
2603
2534
  "declarations": [
2604
- {
2605
- "kind": "function",
2606
- "name": "menuTemplate",
2607
- "parameters": [
2608
- {
2609
- "name": "prefix",
2610
- "type": {
2611
- "text": "string"
2612
- }
2613
- }
2614
- ]
2615
- },
2616
- {
2617
- "kind": "function",
2618
- "name": "singleOptionTemplate",
2619
- "parameters": [
2620
- {
2621
- "name": "prefix",
2622
- "type": {
2623
- "text": "string"
2624
- }
2625
- }
2626
- ]
2627
- },
2628
2535
  {
2629
2536
  "kind": "variable",
2630
- "name": "foundationActionsMenuTemplate",
2537
+ "name": "foundationAiIndicatorTemplate",
2631
2538
  "type": {
2632
- "text": "ViewTemplate<ActionsMenu>"
2539
+ "text": "ViewTemplate<AiIndicator>"
2633
2540
  },
2634
- "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`"
2541
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2635
2542
  }
2636
2543
  ],
2637
2544
  "exports": [
2638
2545
  {
2639
2546
  "kind": "js",
2640
- "name": "menuTemplate",
2641
- "declaration": {
2642
- "name": "menuTemplate",
2643
- "module": "src/actions-menu/actions-menu.template.ts"
2644
- }
2645
- },
2646
- {
2647
- "kind": "js",
2648
- "name": "singleOptionTemplate",
2649
- "declaration": {
2650
- "name": "singleOptionTemplate",
2651
- "module": "src/actions-menu/actions-menu.template.ts"
2652
- }
2653
- },
2654
- {
2655
- "kind": "js",
2656
- "name": "foundationActionsMenuTemplate",
2547
+ "name": "foundationAiIndicatorTemplate",
2657
2548
  "declaration": {
2658
- "name": "foundationActionsMenuTemplate",
2659
- "module": "src/actions-menu/actions-menu.template.ts"
2549
+ "name": "foundationAiIndicatorTemplate",
2550
+ "module": "src/ai-indicator/ai-indicator.template.ts"
2660
2551
  }
2661
2552
  }
2662
2553
  ]
2663
2554
  },
2664
2555
  {
2665
2556
  "kind": "javascript-module",
2666
- "path": "src/actions-menu/actions-menu.ts",
2667
- "declarations": [
2668
- {
2669
- "kind": "class",
2670
- "description": "",
2671
- "name": "ActionsMenu",
2672
- "members": [
2673
- {
2674
- "kind": "field",
2675
- "name": "actions",
2676
- "type": {
2677
- "text": "ActionMenuItem[]"
2678
- }
2679
- },
2680
- {
2681
- "kind": "field",
2682
- "name": "isVertical",
2683
- "type": {
2684
- "text": "boolean"
2685
- },
2686
- "default": "false"
2687
- },
2688
- {
2689
- "kind": "field",
2690
- "name": "addDefaultActions",
2691
- "type": {
2692
- "text": "boolean"
2693
- },
2694
- "default": "true"
2695
- },
2696
- {
2697
- "kind": "field",
2698
- "name": "autoCloseOnAction",
2699
- "type": {
2700
- "text": "boolean"
2701
- },
2702
- "default": "true"
2703
- },
2557
+ "path": "src/ai-indicator/ai-indicator.ts",
2558
+ "declarations": [
2559
+ {
2560
+ "kind": "class",
2561
+ "description": "",
2562
+ "name": "AiIndicator",
2563
+ "members": [
2704
2564
  {
2705
2565
  "kind": "field",
2706
- "name": "classNames",
2566
+ "name": "providerRegistry",
2707
2567
  "type": {
2708
- "text": "string"
2568
+ "text": "AIProviderRegistry"
2709
2569
  }
2710
2570
  },
2711
2571
  {
2712
2572
  "kind": "field",
2713
- "name": "definition",
2573
+ "name": "aiProvider",
2714
2574
  "type": {
2715
- "text": "any"
2716
- }
2575
+ "text": "AIProvider | undefined"
2576
+ },
2577
+ "privacy": "private",
2578
+ "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.",
2579
+ "readonly": true
2717
2580
  },
2718
2581
  {
2719
2582
  "kind": "field",
2720
- "name": "name",
2583
+ "name": "status",
2721
2584
  "type": {
2722
- "text": "string"
2585
+ "text": "AIStatus | null"
2723
2586
  },
2724
- "default": "'Actions'"
2587
+ "default": "null"
2725
2588
  },
2726
2589
  {
2727
2590
  "kind": "field",
@@ -2733,14 +2596,15 @@
2733
2596
  },
2734
2597
  {
2735
2598
  "kind": "field",
2736
- "name": "buttonAppearance",
2599
+ "name": "state",
2737
2600
  "type": {
2738
- "text": "string"
2739
- }
2601
+ "text": "AIIndicatorState"
2602
+ },
2603
+ "default": "'none'"
2740
2604
  },
2741
2605
  {
2742
2606
  "kind": "field",
2743
- "name": "hideDisabled",
2607
+ "name": "isInstalling",
2744
2608
  "type": {
2745
2609
  "text": "boolean"
2746
2610
  },
@@ -2748,114 +2612,133 @@
2748
2612
  },
2749
2613
  {
2750
2614
  "kind": "field",
2751
- "name": "hideMenuSingleOption",
2615
+ "name": "pollTimer",
2752
2616
  "type": {
2753
- "text": "boolean"
2617
+ "text": "ReturnType<typeof setInterval> | null"
2754
2618
  },
2755
- "default": "false"
2619
+ "privacy": "private",
2620
+ "default": "null"
2756
2621
  },
2757
2622
  {
2758
2623
  "kind": "field",
2759
- "name": "singleOption",
2624
+ "name": "clickOutside",
2625
+ "privacy": "private"
2626
+ },
2627
+ {
2628
+ "kind": "field",
2629
+ "name": "chromeStatusLabel",
2760
2630
  "type": {
2761
- "text": "ActionMenuItem"
2762
- }
2631
+ "text": "string | null"
2632
+ },
2633
+ "readonly": true
2763
2634
  },
2764
2635
  {
2765
2636
  "kind": "field",
2766
- "name": "actionsMenu",
2637
+ "name": "canInstall",
2767
2638
  "type": {
2768
- "text": "HTMLElement"
2769
- }
2639
+ "text": "boolean"
2640
+ },
2641
+ "readonly": true
2770
2642
  },
2771
2643
  {
2772
2644
  "kind": "field",
2773
- "name": "actionsOpener",
2645
+ "name": "isDownloading",
2774
2646
  "type": {
2775
- "text": "HTMLElement"
2776
- }
2647
+ "text": "boolean"
2648
+ },
2649
+ "readonly": true
2777
2650
  },
2778
2651
  {
2779
2652
  "kind": "method",
2780
- "name": "updateMenuPosition",
2781
- "privacy": "private"
2653
+ "name": "openChanged",
2654
+ "return": {
2655
+ "type": {
2656
+ "text": "void"
2657
+ }
2658
+ }
2782
2659
  },
2783
2660
  {
2784
2661
  "kind": "method",
2785
- "name": "definitionChanged",
2786
- "privacy": "protected",
2662
+ "name": "handleClickOutside",
2663
+ "privacy": "private",
2787
2664
  "parameters": [
2788
2665
  {
2789
- "name": "oldValue",
2790
- "type": {
2791
- "text": "any"
2792
- }
2793
- },
2794
- {
2795
- "name": "newValue",
2666
+ "name": "event",
2796
2667
  "type": {
2797
- "text": "any"
2668
+ "text": "MouseEvent"
2798
2669
  }
2799
2670
  }
2800
2671
  ]
2801
2672
  },
2802
2673
  {
2803
2674
  "kind": "method",
2804
- "name": "openChanged",
2805
- "privacy": "protected"
2675
+ "name": "toggleDropdown"
2806
2676
  },
2807
2677
  {
2808
2678
  "kind": "method",
2809
- "name": "toggleActionsMenuVisibility"
2679
+ "name": "refreshStatus",
2680
+ "return": {
2681
+ "type": {
2682
+ "text": "Promise<void>"
2683
+ }
2684
+ }
2810
2685
  },
2811
2686
  {
2812
2687
  "kind": "method",
2813
- "name": "onActionMenuItemClick",
2688
+ "name": "deriveState",
2689
+ "privacy": "private",
2690
+ "return": {
2691
+ "type": {
2692
+ "text": "AIIndicatorState"
2693
+ }
2694
+ },
2814
2695
  "parameters": [
2815
2696
  {
2816
- "name": "callback",
2697
+ "name": "s",
2817
2698
  "type": {
2818
- "text": "(rowData) => void | any"
2699
+ "text": "AIStatus | null"
2819
2700
  }
2820
2701
  }
2821
2702
  ]
2822
2703
  },
2823
2704
  {
2824
- "kind": "field",
2825
- "name": "allActions",
2826
- "type": {
2827
- "text": "ActionMenuItem[]"
2828
- },
2829
- "readonly": true
2705
+ "kind": "method",
2706
+ "name": "maybeStartPolling",
2707
+ "privacy": "private",
2708
+ "return": {
2709
+ "type": {
2710
+ "text": "void"
2711
+ }
2712
+ }
2830
2713
  },
2831
2714
  {
2832
- "kind": "field",
2833
- "name": "rowData",
2834
- "readonly": true
2715
+ "kind": "method",
2716
+ "name": "startPolling",
2717
+ "privacy": "private",
2718
+ "return": {
2719
+ "type": {
2720
+ "text": "void"
2721
+ }
2722
+ }
2835
2723
  },
2836
2724
  {
2837
2725
  "kind": "method",
2838
- "name": "getLabel",
2839
- "parameters": [
2840
- {
2841
- "name": "name",
2842
- "type": {
2843
- "text": "string | ((rowData: any) => string)"
2844
- }
2726
+ "name": "stopPolling",
2727
+ "privacy": "private",
2728
+ "return": {
2729
+ "type": {
2730
+ "text": "void"
2845
2731
  }
2846
- ]
2732
+ }
2847
2733
  },
2848
2734
  {
2849
2735
  "kind": "method",
2850
- "name": "getTemplate",
2851
- "parameters": [
2852
- {
2853
- "name": "prefix",
2854
- "type": {
2855
- "text": "string"
2856
- }
2736
+ "name": "onInstall",
2737
+ "return": {
2738
+ "type": {
2739
+ "text": "Promise<void>"
2857
2740
  }
2858
- ]
2741
+ }
2859
2742
  },
2860
2743
  {
2861
2744
  "kind": "field",
@@ -2936,239 +2819,178 @@
2936
2819
  "name": "FoundationElement",
2937
2820
  "module": "src/foundation-element/foundation-element.ts"
2938
2821
  }
2939
- },
2940
- {
2941
- "kind": "method",
2942
- "name": "compose",
2943
- "privacy": "public",
2944
- "static": true,
2945
- "return": {
2946
- "type": {
2947
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2948
- }
2949
- },
2950
- "parameters": [
2951
- {
2952
- "name": "this",
2953
- "type": {
2954
- "text": "K"
2955
- }
2956
- },
2957
- {
2958
- "name": "elementDefinition",
2959
- "type": {
2960
- "text": "T"
2961
- },
2962
- "description": "The definition of the element to create the registry\nfunction for."
2963
- }
2964
- ],
2965
- "description": "Defines an element registry function with a set of element definition defaults.",
2966
- "inheritedFrom": {
2967
- "name": "FoundationElement",
2968
- "module": "src/foundation-element/foundation-element.ts"
2969
- }
2970
- }
2971
- ],
2972
- "attributes": [
2973
- {
2974
- "name": "is-vertical",
2975
- "type": {
2976
- "text": "boolean"
2977
- },
2978
- "default": "false",
2979
- "fieldName": "isVertical"
2980
- },
2981
- {
2982
- "name": "add-default-actions",
2983
- "type": {
2984
- "text": "boolean"
2985
- },
2986
- "default": "true",
2987
- "fieldName": "addDefaultActions"
2988
- },
2989
- {
2990
- "name": "auto-close-on-action",
2991
- "type": {
2992
- "text": "boolean"
2993
- },
2994
- "default": "true",
2995
- "fieldName": "autoCloseOnAction"
2996
- },
2997
- {
2998
- "name": "name",
2999
- "type": {
3000
- "text": "string"
3001
- },
3002
- "default": "'Actions'",
3003
- "fieldName": "name"
3004
- },
3005
- {
3006
- "name": "open",
3007
- "type": {
3008
- "text": "boolean"
3009
- },
3010
- "default": "false",
3011
- "fieldName": "open"
3012
- },
3013
- {
3014
- "name": "buttonAppearance",
3015
- "type": {
3016
- "text": "string"
3017
- },
3018
- "fieldName": "buttonAppearance"
3019
- },
3020
- {
3021
- "name": "hide-disabled",
3022
- "type": {
3023
- "text": "boolean"
3024
- },
3025
- "default": "false",
3026
- "fieldName": "hideDisabled"
3027
- },
3028
- {
3029
- "name": "hide-menu-single-option",
3030
- "type": {
3031
- "text": "boolean"
2822
+ },
2823
+ {
2824
+ "kind": "method",
2825
+ "name": "compose",
2826
+ "privacy": "public",
2827
+ "static": true,
2828
+ "return": {
2829
+ "type": {
2830
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2831
+ }
3032
2832
  },
3033
- "default": "false",
3034
- "fieldName": "hideMenuSingleOption"
2833
+ "parameters": [
2834
+ {
2835
+ "name": "this",
2836
+ "type": {
2837
+ "text": "K"
2838
+ }
2839
+ },
2840
+ {
2841
+ "name": "elementDefinition",
2842
+ "type": {
2843
+ "text": "T"
2844
+ },
2845
+ "description": "The definition of the element to create the registry\nfunction for."
2846
+ }
2847
+ ],
2848
+ "description": "Defines an element registry function with a set of element definition defaults.",
2849
+ "inheritedFrom": {
2850
+ "name": "FoundationElement",
2851
+ "module": "src/foundation-element/foundation-element.ts"
2852
+ }
3035
2853
  }
3036
2854
  ],
3037
2855
  "superclass": {
3038
2856
  "name": "FoundationElement",
3039
2857
  "package": "@microsoft/fast-foundation"
3040
2858
  },
3041
- "tagName": "%%prefix%%-actions-menu",
2859
+ "tagName": "%%prefix%%-ai-indicator",
3042
2860
  "customElement": true
3043
2861
  },
3044
2862
  {
3045
2863
  "kind": "variable",
3046
- "name": "foundationActionsMenu",
3047
- "description": "The Foundation Actions Menu",
3048
- "privacy": "public"
2864
+ "name": "foundationAiIndicator"
3049
2865
  }
3050
2866
  ],
3051
2867
  "exports": [
3052
2868
  {
3053
2869
  "kind": "js",
3054
- "name": "ActionsMenu",
2870
+ "name": "AiIndicator",
3055
2871
  "declaration": {
3056
- "name": "ActionsMenu",
3057
- "module": "src/actions-menu/actions-menu.ts"
2872
+ "name": "AiIndicator",
2873
+ "module": "src/ai-indicator/ai-indicator.ts"
3058
2874
  }
3059
2875
  },
3060
2876
  {
3061
2877
  "kind": "js",
3062
- "name": "foundationActionsMenu",
2878
+ "name": "foundationAiIndicator",
3063
2879
  "declaration": {
3064
- "name": "foundationActionsMenu",
3065
- "module": "src/actions-menu/actions-menu.ts"
2880
+ "name": "foundationAiIndicator",
2881
+ "module": "src/ai-indicator/ai-indicator.ts"
3066
2882
  }
3067
2883
  }
3068
2884
  ]
3069
2885
  },
3070
2886
  {
3071
2887
  "kind": "javascript-module",
3072
- "path": "src/actions-menu/index.ts",
2888
+ "path": "src/ai-indicator/index.ts",
3073
2889
  "declarations": [],
3074
2890
  "exports": [
3075
2891
  {
3076
2892
  "kind": "js",
3077
- "name": "*",
2893
+ "name": "AiIndicator",
3078
2894
  "declaration": {
3079
- "name": "*",
3080
- "package": "./actions-menu.styles"
2895
+ "name": "AiIndicator",
2896
+ "module": "./ai-indicator"
3081
2897
  }
3082
2898
  },
3083
2899
  {
3084
2900
  "kind": "js",
3085
- "name": "*",
2901
+ "name": "foundationAiIndicator",
3086
2902
  "declaration": {
3087
- "name": "*",
3088
- "package": "./actions-menu.template"
2903
+ "name": "foundationAiIndicator",
2904
+ "module": "./ai-indicator"
3089
2905
  }
3090
2906
  },
3091
2907
  {
3092
2908
  "kind": "js",
3093
- "name": "*",
2909
+ "name": "type",
3094
2910
  "declaration": {
3095
- "name": "*",
3096
- "package": "./actions-menu"
2911
+ "name": "type",
2912
+ "module": "./ai-indicator"
2913
+ }
2914
+ },
2915
+ {
2916
+ "kind": "js",
2917
+ "name": "AIIndicatorState",
2918
+ "declaration": {
2919
+ "name": "AIIndicatorState",
2920
+ "module": "./ai-indicator"
2921
+ }
2922
+ },
2923
+ {
2924
+ "kind": "js",
2925
+ "name": "foundationAiIndicatorTemplate",
2926
+ "declaration": {
2927
+ "name": "foundationAiIndicatorTemplate",
2928
+ "module": "./ai-indicator.template"
2929
+ }
2930
+ },
2931
+ {
2932
+ "kind": "js",
2933
+ "name": "foundationAiIndicatorStyles",
2934
+ "declaration": {
2935
+ "name": "foundationAiIndicatorStyles",
2936
+ "module": "./ai-indicator.styles"
3097
2937
  }
3098
2938
  }
3099
2939
  ]
3100
2940
  },
3101
2941
  {
3102
2942
  "kind": "javascript-module",
3103
- "path": "src/ai-indicator/ai-indicator.styles.ts",
2943
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3104
2944
  "declarations": [
3105
2945
  {
3106
- "kind": "function",
3107
- "name": "foundationAiIndicatorStyles",
3108
- "return": {
3109
- "type": {
3110
- "text": "ElementStyles"
3111
- }
3112
- },
3113
- "parameters": [
3114
- {
3115
- "name": "context",
3116
- "type": {
3117
- "text": "ElementDefinitionContext"
3118
- }
3119
- },
3120
- {
3121
- "name": "definition",
3122
- "type": {
3123
- "text": "FoundationElementDefinition"
3124
- }
3125
- }
3126
- ]
2946
+ "kind": "variable",
2947
+ "name": "foundationAiCriteriaSearchStyles",
2948
+ "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
3127
2949
  }
3128
2950
  ],
3129
2951
  "exports": [
3130
2952
  {
3131
2953
  "kind": "js",
3132
- "name": "foundationAiIndicatorStyles",
2954
+ "name": "foundationAiCriteriaSearchStyles",
3133
2955
  "declaration": {
3134
- "name": "foundationAiIndicatorStyles",
3135
- "module": "src/ai-indicator/ai-indicator.styles.ts"
2956
+ "name": "foundationAiCriteriaSearchStyles",
2957
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3136
2958
  }
3137
2959
  }
3138
2960
  ]
3139
2961
  },
3140
2962
  {
3141
2963
  "kind": "javascript-module",
3142
- "path": "src/ai-indicator/ai-indicator.template.ts",
2964
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3143
2965
  "declarations": [
3144
2966
  {
3145
2967
  "kind": "variable",
3146
- "name": "foundationAiIndicatorTemplate",
2968
+ "name": "foundationAiCriteriaSearchTemplate",
3147
2969
  "type": {
3148
- "text": "ViewTemplate<AiIndicator>"
2970
+ "text": "ViewTemplate<AiCriteriaSearch>"
3149
2971
  },
3150
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2972
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3151
2973
  }
3152
2974
  ],
3153
2975
  "exports": [
3154
2976
  {
3155
2977
  "kind": "js",
3156
- "name": "foundationAiIndicatorTemplate",
2978
+ "name": "foundationAiCriteriaSearchTemplate",
3157
2979
  "declaration": {
3158
- "name": "foundationAiIndicatorTemplate",
3159
- "module": "src/ai-indicator/ai-indicator.template.ts"
2980
+ "name": "foundationAiCriteriaSearchTemplate",
2981
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3160
2982
  }
3161
2983
  }
3162
2984
  ]
3163
2985
  },
3164
2986
  {
3165
2987
  "kind": "javascript-module",
3166
- "path": "src/ai-indicator/ai-indicator.ts",
2988
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3167
2989
  "declarations": [
3168
2990
  {
3169
2991
  "kind": "class",
3170
- "description": "",
3171
- "name": "AiIndicator",
2992
+ "description": "Natural-language criteria search input with AI interpretation.",
2993
+ "name": "AiCriteriaSearch",
3172
2994
  "members": [
3173
2995
  {
3174
2996
  "kind": "field",
@@ -3179,25 +3001,54 @@
3179
3001
  },
3180
3002
  {
3181
3003
  "kind": "field",
3182
- "name": "aiProvider",
3004
+ "name": "placeholder",
3183
3005
  "type": {
3184
- "text": "AIProvider | undefined"
3006
+ "text": "string"
3185
3007
  },
3186
- "privacy": "private",
3187
- "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.",
3188
- "readonly": true
3008
+ "default": "'Describe your search criteria in natural language...'"
3189
3009
  },
3190
3010
  {
3191
3011
  "kind": "field",
3192
- "name": "status",
3012
+ "name": "disabled",
3193
3013
  "type": {
3194
- "text": "AIStatus | null"
3014
+ "text": "boolean"
3015
+ }
3016
+ },
3017
+ {
3018
+ "kind": "field",
3019
+ "name": "inputValue",
3020
+ "type": {
3021
+ "text": "string"
3022
+ },
3023
+ "default": "''"
3024
+ },
3025
+ {
3026
+ "kind": "field",
3027
+ "name": "isInterpreting",
3028
+ "type": {
3029
+ "text": "boolean"
3030
+ },
3031
+ "default": "false"
3032
+ },
3033
+ {
3034
+ "kind": "field",
3035
+ "name": "lastValidCriteria",
3036
+ "type": {
3037
+ "text": "string | null"
3195
3038
  },
3196
3039
  "default": "null"
3197
3040
  },
3198
3041
  {
3199
3042
  "kind": "field",
3200
- "name": "open",
3043
+ "name": "activeGroups",
3044
+ "type": {
3045
+ "text": "CriteriaGroup[]"
3046
+ },
3047
+ "default": "[]"
3048
+ },
3049
+ {
3050
+ "kind": "field",
3051
+ "name": "showingChips",
3201
3052
  "type": {
3202
3053
  "text": "boolean"
3203
3054
  },
@@ -3205,15 +3056,15 @@
3205
3056
  },
3206
3057
  {
3207
3058
  "kind": "field",
3208
- "name": "state",
3059
+ "name": "fieldMetadata",
3209
3060
  "type": {
3210
- "text": "AIIndicatorState"
3061
+ "text": "MetadataDetail[] | string[]"
3211
3062
  },
3212
- "default": "'none'"
3063
+ "default": "[]"
3213
3064
  },
3214
3065
  {
3215
3066
  "kind": "field",
3216
- "name": "isInstalling",
3067
+ "name": "isRecording",
3217
3068
  "type": {
3218
3069
  "text": "boolean"
3219
3070
  },
@@ -3221,29 +3072,33 @@
3221
3072
  },
3222
3073
  {
3223
3074
  "kind": "field",
3224
- "name": "pollTimer",
3075
+ "name": "textAreaRef",
3225
3076
  "type": {
3226
- "text": "ReturnType<typeof setInterval> | null"
3077
+ "text": "HTMLTextAreaElement"
3227
3078
  },
3228
- "privacy": "private",
3229
- "default": "null"
3079
+ "privacy": "public"
3230
3080
  },
3231
3081
  {
3232
3082
  "kind": "field",
3233
- "name": "clickOutside",
3234
- "privacy": "private"
3083
+ "name": "stopRecording",
3084
+ "type": {
3085
+ "text": "(() => void) | null"
3086
+ },
3087
+ "privacy": "private",
3088
+ "default": "null"
3235
3089
  },
3236
3090
  {
3237
3091
  "kind": "field",
3238
- "name": "chromeStatusLabel",
3092
+ "name": "speechApplyDebounceTimer",
3239
3093
  "type": {
3240
- "text": "string | null"
3094
+ "text": "ReturnType<typeof setTimeout> | null"
3241
3095
  },
3242
- "readonly": true
3096
+ "privacy": "private",
3097
+ "default": "null"
3243
3098
  },
3244
3099
  {
3245
3100
  "kind": "field",
3246
- "name": "canInstall",
3101
+ "name": "speechAvailable",
3247
3102
  "type": {
3248
3103
  "text": "boolean"
3249
3104
  },
@@ -3251,69 +3106,65 @@
3251
3106
  },
3252
3107
  {
3253
3108
  "kind": "field",
3254
- "name": "isDownloading",
3109
+ "name": "criteriaChips",
3255
3110
  "type": {
3256
- "text": "boolean"
3111
+ "text": "CriteriaChip[]"
3257
3112
  },
3258
3113
  "readonly": true
3259
3114
  },
3260
3115
  {
3261
3116
  "kind": "method",
3262
- "name": "openChanged",
3117
+ "name": "getFieldLabel",
3118
+ "privacy": "private",
3263
3119
  "return": {
3264
3120
  "type": {
3265
- "text": "void"
3121
+ "text": "string"
3266
3122
  }
3267
- }
3268
- },
3269
- {
3270
- "kind": "method",
3271
- "name": "handleClickOutside",
3272
- "privacy": "private",
3123
+ },
3273
3124
  "parameters": [
3274
3125
  {
3275
- "name": "event",
3126
+ "name": "fieldName",
3276
3127
  "type": {
3277
- "text": "MouseEvent"
3128
+ "text": "string"
3278
3129
  }
3279
3130
  }
3280
3131
  ]
3281
3132
  },
3282
3133
  {
3283
3134
  "kind": "method",
3284
- "name": "toggleDropdown"
3285
- },
3286
- {
3287
- "kind": "method",
3288
- "name": "refreshStatus",
3135
+ "name": "toggleCriteriaView",
3289
3136
  "return": {
3290
3137
  "type": {
3291
- "text": "Promise<void>"
3138
+ "text": "void"
3292
3139
  }
3293
3140
  }
3294
3141
  },
3295
3142
  {
3296
3143
  "kind": "method",
3297
- "name": "deriveState",
3298
- "privacy": "private",
3144
+ "name": "removeChip",
3299
3145
  "return": {
3300
3146
  "type": {
3301
- "text": "AIIndicatorState"
3147
+ "text": "void"
3302
3148
  }
3303
3149
  },
3304
3150
  "parameters": [
3305
3151
  {
3306
- "name": "s",
3152
+ "name": "groupIndex",
3307
3153
  "type": {
3308
- "text": "AIStatus | null"
3154
+ "text": "number"
3155
+ }
3156
+ },
3157
+ {
3158
+ "name": "clauseIndex",
3159
+ "type": {
3160
+ "text": "number"
3309
3161
  }
3310
3162
  }
3311
3163
  ]
3312
3164
  },
3313
3165
  {
3314
3166
  "kind": "method",
3315
- "name": "maybeStartPolling",
3316
- "privacy": "private",
3167
+ "name": "clearChips",
3317
3168
  "return": {
3318
3169
  "type": {
3319
3170
  "text": "void"
@@ -3322,32 +3173,24 @@
3322
3173
  },
3323
3174
  {
3324
3175
  "kind": "method",
3325
- "name": "startPolling",
3326
- "privacy": "private",
3327
- "return": {
3328
- "type": {
3329
- "text": "void"
3330
- }
3331
- }
3176
+ "name": "handleSubmit"
3332
3177
  },
3333
3178
  {
3334
3179
  "kind": "method",
3335
- "name": "stopPolling",
3336
- "privacy": "private",
3337
- "return": {
3338
- "type": {
3339
- "text": "void"
3340
- }
3341
- }
3180
+ "name": "handleBlur"
3342
3181
  },
3343
3182
  {
3344
3183
  "kind": "method",
3345
- "name": "onInstall",
3346
- "return": {
3347
- "type": {
3348
- "text": "Promise<void>"
3349
- }
3350
- }
3184
+ "name": "clear"
3185
+ },
3186
+ {
3187
+ "kind": "method",
3188
+ "name": "toggleSpeechInput"
3189
+ },
3190
+ {
3191
+ "kind": "method",
3192
+ "name": "clearSpeechApplyDebounce",
3193
+ "privacy": "private"
3351
3194
  },
3352
3195
  {
3353
3196
  "kind": "field",
@@ -3461,88 +3304,245 @@
3461
3304
  }
3462
3305
  }
3463
3306
  ],
3307
+ "events": [
3308
+ {
3309
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3310
+ "name": "criteria-changed"
3311
+ },
3312
+ {
3313
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3314
+ "name": "validation-errors"
3315
+ }
3316
+ ],
3317
+ "attributes": [
3318
+ {
3319
+ "name": "placeholder",
3320
+ "type": {
3321
+ "text": "string"
3322
+ },
3323
+ "default": "'Describe your search criteria in natural language...'",
3324
+ "fieldName": "placeholder"
3325
+ },
3326
+ {
3327
+ "type": {
3328
+ "text": "boolean"
3329
+ },
3330
+ "fieldName": "disabled"
3331
+ }
3332
+ ],
3464
3333
  "superclass": {
3465
3334
  "name": "FoundationElement",
3466
3335
  "package": "@microsoft/fast-foundation"
3467
3336
  },
3468
- "tagName": "%%prefix%%-ai-indicator",
3337
+ "tagName": "%%prefix%%-ai-criteria-search",
3469
3338
  "customElement": true
3470
3339
  },
3471
3340
  {
3472
3341
  "kind": "variable",
3473
- "name": "foundationAiIndicator"
3342
+ "name": "foundationAiCriteriaSearchShadowOptions",
3343
+ "type": {
3344
+ "text": "ShadowRootInit"
3345
+ },
3346
+ "default": "undefined"
3347
+ },
3348
+ {
3349
+ "kind": "variable",
3350
+ "name": "defaultAiCriteriaSearchConfig",
3351
+ "type": {
3352
+ "text": "object"
3353
+ },
3354
+ "default": "{}"
3355
+ },
3356
+ {
3357
+ "kind": "variable",
3358
+ "name": "foundationAiCriteriaSearch"
3474
3359
  }
3475
3360
  ],
3476
3361
  "exports": [
3477
3362
  {
3478
3363
  "kind": "js",
3479
- "name": "AiIndicator",
3364
+ "name": "AiCriteriaSearch",
3480
3365
  "declaration": {
3481
- "name": "AiIndicator",
3482
- "module": "src/ai-indicator/ai-indicator.ts"
3366
+ "name": "AiCriteriaSearch",
3367
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3483
3368
  }
3484
3369
  },
3485
3370
  {
3486
3371
  "kind": "js",
3487
- "name": "foundationAiIndicator",
3372
+ "name": "foundationAiCriteriaSearchShadowOptions",
3488
3373
  "declaration": {
3489
- "name": "foundationAiIndicator",
3490
- "module": "src/ai-indicator/ai-indicator.ts"
3374
+ "name": "foundationAiCriteriaSearchShadowOptions",
3375
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3376
+ }
3377
+ },
3378
+ {
3379
+ "kind": "js",
3380
+ "name": "defaultAiCriteriaSearchConfig",
3381
+ "declaration": {
3382
+ "name": "defaultAiCriteriaSearchConfig",
3383
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3384
+ }
3385
+ },
3386
+ {
3387
+ "kind": "js",
3388
+ "name": "foundationAiCriteriaSearch",
3389
+ "declaration": {
3390
+ "name": "foundationAiCriteriaSearch",
3391
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3491
3392
  }
3492
3393
  }
3493
3394
  ]
3494
3395
  },
3495
3396
  {
3496
3397
  "kind": "javascript-module",
3497
- "path": "src/ai-indicator/index.ts",
3398
+ "path": "src/ai-criteria-search/index.ts",
3498
3399
  "declarations": [],
3499
3400
  "exports": [
3500
3401
  {
3501
3402
  "kind": "js",
3502
- "name": "AiIndicator",
3403
+ "name": "AiCriteriaSearch",
3503
3404
  "declaration": {
3504
- "name": "AiIndicator",
3505
- "module": "./ai-indicator"
3405
+ "name": "AiCriteriaSearch",
3406
+ "module": "./ai-criteria-search"
3506
3407
  }
3507
3408
  },
3508
3409
  {
3509
3410
  "kind": "js",
3510
- "name": "foundationAiIndicator",
3411
+ "name": "defaultAiCriteriaSearchConfig",
3511
3412
  "declaration": {
3512
- "name": "foundationAiIndicator",
3513
- "module": "./ai-indicator"
3413
+ "name": "defaultAiCriteriaSearchConfig",
3414
+ "module": "./ai-criteria-search"
3514
3415
  }
3515
3416
  },
3516
3417
  {
3517
3418
  "kind": "js",
3518
- "name": "type",
3419
+ "name": "foundationAiCriteriaSearch",
3519
3420
  "declaration": {
3520
- "name": "type",
3521
- "module": "./ai-indicator"
3421
+ "name": "foundationAiCriteriaSearch",
3422
+ "module": "./ai-criteria-search"
3522
3423
  }
3523
3424
  },
3524
3425
  {
3525
3426
  "kind": "js",
3526
- "name": "AIIndicatorState",
3427
+ "name": "foundationAiCriteriaSearchShadowOptions",
3527
3428
  "declaration": {
3528
- "name": "AIIndicatorState",
3529
- "module": "./ai-indicator"
3429
+ "name": "foundationAiCriteriaSearchShadowOptions",
3430
+ "module": "./ai-criteria-search"
3530
3431
  }
3531
3432
  },
3532
3433
  {
3533
3434
  "kind": "js",
3534
- "name": "foundationAiIndicatorTemplate",
3435
+ "name": "foundationAiCriteriaSearchStyles",
3535
3436
  "declaration": {
3536
- "name": "foundationAiIndicatorTemplate",
3537
- "module": "./ai-indicator.template"
3437
+ "name": "foundationAiCriteriaSearchStyles",
3438
+ "module": "./ai-criteria-search.styles"
3538
3439
  }
3539
3440
  },
3540
3441
  {
3541
3442
  "kind": "js",
3542
- "name": "foundationAiIndicatorStyles",
3443
+ "name": "foundationAiCriteriaSearchTemplate",
3543
3444
  "declaration": {
3544
- "name": "foundationAiIndicatorStyles",
3545
- "module": "./ai-indicator.styles"
3445
+ "name": "foundationAiCriteriaSearchTemplate",
3446
+ "module": "./ai-criteria-search.template"
3447
+ }
3448
+ },
3449
+ {
3450
+ "kind": "js",
3451
+ "name": "*",
3452
+ "declaration": {
3453
+ "name": "*",
3454
+ "package": "./validation/criteria-ir"
3455
+ }
3456
+ },
3457
+ {
3458
+ "kind": "js",
3459
+ "name": "*",
3460
+ "declaration": {
3461
+ "name": "*",
3462
+ "package": "./validation/operator-map"
3463
+ }
3464
+ },
3465
+ {
3466
+ "kind": "js",
3467
+ "name": "*",
3468
+ "declaration": {
3469
+ "name": "*",
3470
+ "package": "./validation/schema-validator"
3471
+ }
3472
+ }
3473
+ ]
3474
+ },
3475
+ {
3476
+ "kind": "javascript-module",
3477
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3478
+ "declarations": [
3479
+ {
3480
+ "kind": "function",
3481
+ "name": "formatValidationErrors",
3482
+ "return": {
3483
+ "type": {
3484
+ "text": "string"
3485
+ }
3486
+ },
3487
+ "parameters": [
3488
+ {
3489
+ "name": "errors",
3490
+ "type": {
3491
+ "text": "ValidationError[]"
3492
+ }
3493
+ }
3494
+ ],
3495
+ "description": "Formats validation errors into a user-friendly message."
3496
+ },
3497
+ {
3498
+ "kind": "function",
3499
+ "name": "showCriteriaError",
3500
+ "return": {
3501
+ "type": {
3502
+ "text": "void"
3503
+ }
3504
+ },
3505
+ "parameters": [
3506
+ {
3507
+ "name": "title",
3508
+ "type": {
3509
+ "text": "string"
3510
+ },
3511
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3512
+ },
3513
+ {
3514
+ "name": "body",
3515
+ "type": {
3516
+ "text": "string"
3517
+ },
3518
+ "description": "Error message to display"
3519
+ },
3520
+ {
3521
+ "name": "tagName",
3522
+ "type": {
3523
+ "text": "string"
3524
+ },
3525
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3526
+ }
3527
+ ],
3528
+ "description": "Shows a criteria error as a toast notification."
3529
+ }
3530
+ ],
3531
+ "exports": [
3532
+ {
3533
+ "kind": "js",
3534
+ "name": "formatValidationErrors",
3535
+ "declaration": {
3536
+ "name": "formatValidationErrors",
3537
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3538
+ }
3539
+ },
3540
+ {
3541
+ "kind": "js",
3542
+ "name": "showCriteriaError",
3543
+ "declaration": {
3544
+ "name": "showCriteriaError",
3545
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3546
3546
  }
3547
3547
  }
3548
3548
  ]