@genesislcap/foundation-ui 15.21.1 → 15.22.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,157 +2484,64 @@
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/ai-indicator/ai-indicator.styles.ts",
2494
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2533
2495
  "declarations": [
2534
2496
  {
2535
- "kind": "function",
2536
- "name": "foundationAiIndicatorStyles",
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
- ]
2497
+ "kind": "variable",
2498
+ "name": "foundationAiCriteriaSearchStyles",
2499
+ "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2556
2500
  }
2557
2501
  ],
2558
2502
  "exports": [
2559
2503
  {
2560
2504
  "kind": "js",
2561
- "name": "foundationAiIndicatorStyles",
2505
+ "name": "foundationAiCriteriaSearchStyles",
2562
2506
  "declaration": {
2563
- "name": "foundationAiIndicatorStyles",
2564
- "module": "src/ai-indicator/ai-indicator.styles.ts"
2507
+ "name": "foundationAiCriteriaSearchStyles",
2508
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2565
2509
  }
2566
2510
  }
2567
2511
  ]
2568
2512
  },
2569
2513
  {
2570
2514
  "kind": "javascript-module",
2571
- "path": "src/ai-indicator/ai-indicator.template.ts",
2515
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2572
2516
  "declarations": [
2573
2517
  {
2574
2518
  "kind": "variable",
2575
- "name": "foundationAiIndicatorTemplate",
2519
+ "name": "foundationAiCriteriaSearchTemplate",
2576
2520
  "type": {
2577
- "text": "ViewTemplate<AiIndicator>"
2521
+ "text": "ViewTemplate<AiCriteriaSearch>"
2578
2522
  },
2579
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2523
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2580
2524
  }
2581
2525
  ],
2582
2526
  "exports": [
2583
2527
  {
2584
2528
  "kind": "js",
2585
- "name": "foundationAiIndicatorTemplate",
2529
+ "name": "foundationAiCriteriaSearchTemplate",
2586
2530
  "declaration": {
2587
- "name": "foundationAiIndicatorTemplate",
2588
- "module": "src/ai-indicator/ai-indicator.template.ts"
2531
+ "name": "foundationAiCriteriaSearchTemplate",
2532
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2589
2533
  }
2590
2534
  }
2591
2535
  ]
2592
2536
  },
2593
2537
  {
2594
2538
  "kind": "javascript-module",
2595
- "path": "src/ai-indicator/ai-indicator.ts",
2539
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2596
2540
  "declarations": [
2597
2541
  {
2598
2542
  "kind": "class",
2599
- "description": "",
2600
- "name": "AiIndicator",
2543
+ "description": "Natural-language criteria search input with AI interpretation.",
2544
+ "name": "AiCriteriaSearch",
2601
2545
  "members": [
2602
2546
  {
2603
2547
  "kind": "field",
@@ -2608,25 +2552,54 @@
2608
2552
  },
2609
2553
  {
2610
2554
  "kind": "field",
2611
- "name": "aiProvider",
2555
+ "name": "placeholder",
2612
2556
  "type": {
2613
- "text": "AIProvider | undefined"
2557
+ "text": "string"
2614
2558
  },
2615
- "privacy": "private",
2616
- "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.",
2617
- "readonly": true
2559
+ "default": "'Describe your search criteria in natural language...'"
2618
2560
  },
2619
2561
  {
2620
2562
  "kind": "field",
2621
- "name": "status",
2563
+ "name": "disabled",
2622
2564
  "type": {
2623
- "text": "AIStatus | null"
2565
+ "text": "boolean"
2566
+ }
2567
+ },
2568
+ {
2569
+ "kind": "field",
2570
+ "name": "inputValue",
2571
+ "type": {
2572
+ "text": "string"
2573
+ },
2574
+ "default": "''"
2575
+ },
2576
+ {
2577
+ "kind": "field",
2578
+ "name": "isInterpreting",
2579
+ "type": {
2580
+ "text": "boolean"
2581
+ },
2582
+ "default": "false"
2583
+ },
2584
+ {
2585
+ "kind": "field",
2586
+ "name": "lastValidCriteria",
2587
+ "type": {
2588
+ "text": "string | null"
2624
2589
  },
2625
2590
  "default": "null"
2626
2591
  },
2627
2592
  {
2628
2593
  "kind": "field",
2629
- "name": "open",
2594
+ "name": "activeGroups",
2595
+ "type": {
2596
+ "text": "CriteriaGroup[]"
2597
+ },
2598
+ "default": "[]"
2599
+ },
2600
+ {
2601
+ "kind": "field",
2602
+ "name": "showingChips",
2630
2603
  "type": {
2631
2604
  "text": "boolean"
2632
2605
  },
@@ -2634,15 +2607,15 @@
2634
2607
  },
2635
2608
  {
2636
2609
  "kind": "field",
2637
- "name": "state",
2610
+ "name": "fieldMetadata",
2638
2611
  "type": {
2639
- "text": "AIIndicatorState"
2612
+ "text": "MetadataDetail[] | string[]"
2640
2613
  },
2641
- "default": "'none'"
2614
+ "default": "[]"
2642
2615
  },
2643
2616
  {
2644
2617
  "kind": "field",
2645
- "name": "isInstalling",
2618
+ "name": "isRecording",
2646
2619
  "type": {
2647
2620
  "text": "boolean"
2648
2621
  },
@@ -2650,29 +2623,33 @@
2650
2623
  },
2651
2624
  {
2652
2625
  "kind": "field",
2653
- "name": "pollTimer",
2626
+ "name": "textAreaRef",
2654
2627
  "type": {
2655
- "text": "ReturnType<typeof setInterval> | null"
2628
+ "text": "HTMLTextAreaElement"
2656
2629
  },
2657
- "privacy": "private",
2658
- "default": "null"
2630
+ "privacy": "public"
2659
2631
  },
2660
2632
  {
2661
2633
  "kind": "field",
2662
- "name": "clickOutside",
2663
- "privacy": "private"
2634
+ "name": "stopRecording",
2635
+ "type": {
2636
+ "text": "(() => void) | null"
2637
+ },
2638
+ "privacy": "private",
2639
+ "default": "null"
2664
2640
  },
2665
2641
  {
2666
2642
  "kind": "field",
2667
- "name": "chromeStatusLabel",
2643
+ "name": "speechApplyDebounceTimer",
2668
2644
  "type": {
2669
- "text": "string | null"
2645
+ "text": "ReturnType<typeof setTimeout> | null"
2670
2646
  },
2671
- "readonly": true
2647
+ "privacy": "private",
2648
+ "default": "null"
2672
2649
  },
2673
2650
  {
2674
2651
  "kind": "field",
2675
- "name": "canInstall",
2652
+ "name": "speechAvailable",
2676
2653
  "type": {
2677
2654
  "text": "boolean"
2678
2655
  },
@@ -2680,69 +2657,65 @@
2680
2657
  },
2681
2658
  {
2682
2659
  "kind": "field",
2683
- "name": "isDownloading",
2660
+ "name": "criteriaChips",
2684
2661
  "type": {
2685
- "text": "boolean"
2662
+ "text": "CriteriaChip[]"
2686
2663
  },
2687
2664
  "readonly": true
2688
2665
  },
2689
2666
  {
2690
2667
  "kind": "method",
2691
- "name": "openChanged",
2668
+ "name": "getFieldLabel",
2669
+ "privacy": "private",
2692
2670
  "return": {
2693
2671
  "type": {
2694
- "text": "void"
2672
+ "text": "string"
2695
2673
  }
2696
- }
2697
- },
2698
- {
2699
- "kind": "method",
2700
- "name": "handleClickOutside",
2701
- "privacy": "private",
2674
+ },
2702
2675
  "parameters": [
2703
2676
  {
2704
- "name": "event",
2677
+ "name": "fieldName",
2705
2678
  "type": {
2706
- "text": "MouseEvent"
2679
+ "text": "string"
2707
2680
  }
2708
2681
  }
2709
2682
  ]
2710
2683
  },
2711
2684
  {
2712
2685
  "kind": "method",
2713
- "name": "toggleDropdown"
2714
- },
2715
- {
2716
- "kind": "method",
2717
- "name": "refreshStatus",
2686
+ "name": "toggleCriteriaView",
2718
2687
  "return": {
2719
2688
  "type": {
2720
- "text": "Promise<void>"
2689
+ "text": "void"
2721
2690
  }
2722
2691
  }
2723
2692
  },
2724
2693
  {
2725
2694
  "kind": "method",
2726
- "name": "deriveState",
2727
- "privacy": "private",
2695
+ "name": "removeChip",
2728
2696
  "return": {
2729
2697
  "type": {
2730
- "text": "AIIndicatorState"
2698
+ "text": "void"
2731
2699
  }
2732
2700
  },
2733
2701
  "parameters": [
2734
2702
  {
2735
- "name": "s",
2703
+ "name": "groupIndex",
2736
2704
  "type": {
2737
- "text": "AIStatus | null"
2705
+ "text": "number"
2706
+ }
2707
+ },
2708
+ {
2709
+ "name": "clauseIndex",
2710
+ "type": {
2711
+ "text": "number"
2738
2712
  }
2739
2713
  }
2740
2714
  ]
2741
2715
  },
2742
2716
  {
2743
2717
  "kind": "method",
2744
- "name": "maybeStartPolling",
2745
- "privacy": "private",
2718
+ "name": "clearChips",
2746
2719
  "return": {
2747
2720
  "type": {
2748
2721
  "text": "void"
@@ -2751,32 +2724,24 @@
2751
2724
  },
2752
2725
  {
2753
2726
  "kind": "method",
2754
- "name": "startPolling",
2755
- "privacy": "private",
2756
- "return": {
2757
- "type": {
2758
- "text": "void"
2759
- }
2760
- }
2727
+ "name": "handleSubmit"
2761
2728
  },
2762
2729
  {
2763
2730
  "kind": "method",
2764
- "name": "stopPolling",
2765
- "privacy": "private",
2766
- "return": {
2767
- "type": {
2768
- "text": "void"
2769
- }
2770
- }
2731
+ "name": "handleBlur"
2771
2732
  },
2772
2733
  {
2773
2734
  "kind": "method",
2774
- "name": "onInstall",
2775
- "return": {
2776
- "type": {
2777
- "text": "Promise<void>"
2778
- }
2779
- }
2735
+ "name": "clear"
2736
+ },
2737
+ {
2738
+ "kind": "method",
2739
+ "name": "toggleSpeechInput"
2740
+ },
2741
+ {
2742
+ "kind": "method",
2743
+ "name": "clearSpeechApplyDebounce",
2744
+ "privacy": "private"
2780
2745
  },
2781
2746
  {
2782
2747
  "kind": "field",
@@ -2890,287 +2855,345 @@
2890
2855
  }
2891
2856
  }
2892
2857
  ],
2858
+ "events": [
2859
+ {
2860
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2861
+ "name": "criteria-changed"
2862
+ },
2863
+ {
2864
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2865
+ "name": "validation-errors"
2866
+ }
2867
+ ],
2868
+ "attributes": [
2869
+ {
2870
+ "name": "placeholder",
2871
+ "type": {
2872
+ "text": "string"
2873
+ },
2874
+ "default": "'Describe your search criteria in natural language...'",
2875
+ "fieldName": "placeholder"
2876
+ },
2877
+ {
2878
+ "type": {
2879
+ "text": "boolean"
2880
+ },
2881
+ "fieldName": "disabled"
2882
+ }
2883
+ ],
2893
2884
  "superclass": {
2894
2885
  "name": "FoundationElement",
2895
2886
  "package": "@microsoft/fast-foundation"
2896
2887
  },
2897
- "tagName": "%%prefix%%-ai-indicator",
2888
+ "tagName": "%%prefix%%-ai-criteria-search",
2898
2889
  "customElement": true
2899
2890
  },
2900
2891
  {
2901
2892
  "kind": "variable",
2902
- "name": "foundationAiIndicator"
2893
+ "name": "foundationAiCriteriaSearchShadowOptions",
2894
+ "type": {
2895
+ "text": "ShadowRootInit"
2896
+ },
2897
+ "default": "undefined"
2898
+ },
2899
+ {
2900
+ "kind": "variable",
2901
+ "name": "defaultAiCriteriaSearchConfig",
2902
+ "type": {
2903
+ "text": "object"
2904
+ },
2905
+ "default": "{}"
2906
+ },
2907
+ {
2908
+ "kind": "variable",
2909
+ "name": "foundationAiCriteriaSearch"
2903
2910
  }
2904
2911
  ],
2905
2912
  "exports": [
2906
2913
  {
2907
2914
  "kind": "js",
2908
- "name": "AiIndicator",
2915
+ "name": "AiCriteriaSearch",
2916
+ "declaration": {
2917
+ "name": "AiCriteriaSearch",
2918
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2919
+ }
2920
+ },
2921
+ {
2922
+ "kind": "js",
2923
+ "name": "foundationAiCriteriaSearchShadowOptions",
2924
+ "declaration": {
2925
+ "name": "foundationAiCriteriaSearchShadowOptions",
2926
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2927
+ }
2928
+ },
2929
+ {
2930
+ "kind": "js",
2931
+ "name": "defaultAiCriteriaSearchConfig",
2932
+ "declaration": {
2933
+ "name": "defaultAiCriteriaSearchConfig",
2934
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2935
+ }
2936
+ },
2937
+ {
2938
+ "kind": "js",
2939
+ "name": "foundationAiCriteriaSearch",
2940
+ "declaration": {
2941
+ "name": "foundationAiCriteriaSearch",
2942
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2943
+ }
2944
+ }
2945
+ ]
2946
+ },
2947
+ {
2948
+ "kind": "javascript-module",
2949
+ "path": "src/ai-criteria-search/index.ts",
2950
+ "declarations": [],
2951
+ "exports": [
2952
+ {
2953
+ "kind": "js",
2954
+ "name": "AiCriteriaSearch",
2909
2955
  "declaration": {
2910
- "name": "AiIndicator",
2911
- "module": "src/ai-indicator/ai-indicator.ts"
2956
+ "name": "AiCriteriaSearch",
2957
+ "module": "./ai-criteria-search"
2912
2958
  }
2913
2959
  },
2914
2960
  {
2915
2961
  "kind": "js",
2916
- "name": "foundationAiIndicator",
2962
+ "name": "defaultAiCriteriaSearchConfig",
2917
2963
  "declaration": {
2918
- "name": "foundationAiIndicator",
2919
- "module": "src/ai-indicator/ai-indicator.ts"
2964
+ "name": "defaultAiCriteriaSearchConfig",
2965
+ "module": "./ai-criteria-search"
2920
2966
  }
2921
- }
2922
- ]
2923
- },
2924
- {
2925
- "kind": "javascript-module",
2926
- "path": "src/ai-indicator/index.ts",
2927
- "declarations": [],
2928
- "exports": [
2967
+ },
2929
2968
  {
2930
2969
  "kind": "js",
2931
- "name": "AiIndicator",
2970
+ "name": "foundationAiCriteriaSearch",
2932
2971
  "declaration": {
2933
- "name": "AiIndicator",
2934
- "module": "./ai-indicator"
2972
+ "name": "foundationAiCriteriaSearch",
2973
+ "module": "./ai-criteria-search"
2935
2974
  }
2936
2975
  },
2937
2976
  {
2938
2977
  "kind": "js",
2939
- "name": "foundationAiIndicator",
2978
+ "name": "foundationAiCriteriaSearchShadowOptions",
2940
2979
  "declaration": {
2941
- "name": "foundationAiIndicator",
2942
- "module": "./ai-indicator"
2980
+ "name": "foundationAiCriteriaSearchShadowOptions",
2981
+ "module": "./ai-criteria-search"
2943
2982
  }
2944
2983
  },
2945
2984
  {
2946
2985
  "kind": "js",
2947
- "name": "type",
2986
+ "name": "foundationAiCriteriaSearchStyles",
2948
2987
  "declaration": {
2949
- "name": "type",
2950
- "module": "./ai-indicator"
2988
+ "name": "foundationAiCriteriaSearchStyles",
2989
+ "module": "./ai-criteria-search.styles"
2951
2990
  }
2952
2991
  },
2953
2992
  {
2954
2993
  "kind": "js",
2955
- "name": "AIIndicatorState",
2994
+ "name": "foundationAiCriteriaSearchTemplate",
2956
2995
  "declaration": {
2957
- "name": "AIIndicatorState",
2958
- "module": "./ai-indicator"
2996
+ "name": "foundationAiCriteriaSearchTemplate",
2997
+ "module": "./ai-criteria-search.template"
2959
2998
  }
2960
2999
  },
2961
3000
  {
2962
3001
  "kind": "js",
2963
- "name": "foundationAiIndicatorTemplate",
3002
+ "name": "*",
2964
3003
  "declaration": {
2965
- "name": "foundationAiIndicatorTemplate",
2966
- "module": "./ai-indicator.template"
3004
+ "name": "*",
3005
+ "package": "./validation/criteria-ir"
2967
3006
  }
2968
3007
  },
2969
3008
  {
2970
3009
  "kind": "js",
2971
- "name": "foundationAiIndicatorStyles",
3010
+ "name": "*",
2972
3011
  "declaration": {
2973
- "name": "foundationAiIndicatorStyles",
2974
- "module": "./ai-indicator.styles"
3012
+ "name": "*",
3013
+ "package": "./validation/operator-map"
3014
+ }
3015
+ },
3016
+ {
3017
+ "kind": "js",
3018
+ "name": "*",
3019
+ "declaration": {
3020
+ "name": "*",
3021
+ "package": "./validation/schema-validator"
2975
3022
  }
2976
3023
  }
2977
3024
  ]
2978
3025
  },
2979
3026
  {
2980
3027
  "kind": "javascript-module",
2981
- "path": "src/actions-menu/actions-menu.styles.ts",
3028
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2982
3029
  "declarations": [
2983
3030
  {
2984
3031
  "kind": "function",
2985
- "name": "actionsMenuBaseStyles",
3032
+ "name": "formatValidationErrors",
2986
3033
  "return": {
2987
3034
  "type": {
2988
- "text": "ElementStyles"
3035
+ "text": "string"
2989
3036
  }
2990
3037
  },
2991
3038
  "parameters": [
2992
3039
  {
2993
- "name": "context",
2994
- "type": {
2995
- "text": "ElementDefinitionContext"
2996
- }
2997
- },
2998
- {
2999
- "name": "definition",
3040
+ "name": "errors",
3000
3041
  "type": {
3001
- "text": "FoundationElementDefinition"
3042
+ "text": "ValidationError[]"
3002
3043
  }
3003
3044
  }
3004
- ]
3045
+ ],
3046
+ "description": "Formats validation errors into a user-friendly message."
3005
3047
  },
3006
3048
  {
3007
3049
  "kind": "function",
3008
- "name": "foundationActionsMenuStyles",
3050
+ "name": "showCriteriaError",
3009
3051
  "return": {
3010
3052
  "type": {
3011
- "text": "ElementStyles"
3053
+ "text": "void"
3012
3054
  }
3013
3055
  },
3014
3056
  "parameters": [
3015
3057
  {
3016
- "name": "context",
3058
+ "name": "title",
3017
3059
  "type": {
3018
- "text": "ElementDefinitionContext"
3019
- }
3060
+ "text": "string"
3061
+ },
3062
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3020
3063
  },
3021
3064
  {
3022
- "name": "definition",
3065
+ "name": "body",
3023
3066
  "type": {
3024
- "text": "FoundationElementDefinition"
3025
- }
3067
+ "text": "string"
3068
+ },
3069
+ "description": "Error message to display"
3070
+ },
3071
+ {
3072
+ "name": "tagName",
3073
+ "type": {
3074
+ "text": "string"
3075
+ },
3076
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3026
3077
  }
3027
- ]
3078
+ ],
3079
+ "description": "Shows a criteria error as a toast notification."
3028
3080
  }
3029
3081
  ],
3030
3082
  "exports": [
3031
3083
  {
3032
3084
  "kind": "js",
3033
- "name": "actionsMenuBaseStyles",
3085
+ "name": "formatValidationErrors",
3034
3086
  "declaration": {
3035
- "name": "actionsMenuBaseStyles",
3036
- "module": "src/actions-menu/actions-menu.styles.ts"
3087
+ "name": "formatValidationErrors",
3088
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3037
3089
  }
3038
3090
  },
3039
3091
  {
3040
3092
  "kind": "js",
3041
- "name": "foundationActionsMenuStyles",
3093
+ "name": "showCriteriaError",
3042
3094
  "declaration": {
3043
- "name": "foundationActionsMenuStyles",
3044
- "module": "src/actions-menu/actions-menu.styles.ts"
3095
+ "name": "showCriteriaError",
3096
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3045
3097
  }
3046
3098
  }
3047
3099
  ]
3048
3100
  },
3049
3101
  {
3050
3102
  "kind": "javascript-module",
3051
- "path": "src/actions-menu/actions-menu.template.ts",
3103
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3052
3104
  "declarations": [
3053
3105
  {
3054
3106
  "kind": "function",
3055
- "name": "menuTemplate",
3107
+ "name": "foundationAiIndicatorStyles",
3108
+ "return": {
3109
+ "type": {
3110
+ "text": "ElementStyles"
3111
+ }
3112
+ },
3056
3113
  "parameters": [
3057
3114
  {
3058
- "name": "prefix",
3115
+ "name": "context",
3059
3116
  "type": {
3060
- "text": "string"
3117
+ "text": "ElementDefinitionContext"
3061
3118
  }
3062
- }
3063
- ]
3064
- },
3065
- {
3066
- "kind": "function",
3067
- "name": "singleOptionTemplate",
3068
- "parameters": [
3119
+ },
3069
3120
  {
3070
- "name": "prefix",
3121
+ "name": "definition",
3071
3122
  "type": {
3072
- "text": "string"
3123
+ "text": "FoundationElementDefinition"
3073
3124
  }
3074
3125
  }
3075
3126
  ]
3076
- },
3077
- {
3078
- "kind": "variable",
3079
- "name": "foundationActionsMenuTemplate",
3080
- "type": {
3081
- "text": "ViewTemplate<ActionsMenu>"
3082
- },
3083
- "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`"
3084
3127
  }
3085
3128
  ],
3086
3129
  "exports": [
3087
3130
  {
3088
3131
  "kind": "js",
3089
- "name": "menuTemplate",
3132
+ "name": "foundationAiIndicatorStyles",
3090
3133
  "declaration": {
3091
- "name": "menuTemplate",
3092
- "module": "src/actions-menu/actions-menu.template.ts"
3134
+ "name": "foundationAiIndicatorStyles",
3135
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3093
3136
  }
3094
- },
3137
+ }
3138
+ ]
3139
+ },
3140
+ {
3141
+ "kind": "javascript-module",
3142
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3143
+ "declarations": [
3095
3144
  {
3096
- "kind": "js",
3097
- "name": "singleOptionTemplate",
3098
- "declaration": {
3099
- "name": "singleOptionTemplate",
3100
- "module": "src/actions-menu/actions-menu.template.ts"
3101
- }
3102
- },
3145
+ "kind": "variable",
3146
+ "name": "foundationAiIndicatorTemplate",
3147
+ "type": {
3148
+ "text": "ViewTemplate<AiIndicator>"
3149
+ },
3150
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3151
+ }
3152
+ ],
3153
+ "exports": [
3103
3154
  {
3104
3155
  "kind": "js",
3105
- "name": "foundationActionsMenuTemplate",
3156
+ "name": "foundationAiIndicatorTemplate",
3106
3157
  "declaration": {
3107
- "name": "foundationActionsMenuTemplate",
3108
- "module": "src/actions-menu/actions-menu.template.ts"
3158
+ "name": "foundationAiIndicatorTemplate",
3159
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3109
3160
  }
3110
3161
  }
3111
3162
  ]
3112
3163
  },
3113
3164
  {
3114
3165
  "kind": "javascript-module",
3115
- "path": "src/actions-menu/actions-menu.ts",
3166
+ "path": "src/ai-indicator/ai-indicator.ts",
3116
3167
  "declarations": [
3117
3168
  {
3118
3169
  "kind": "class",
3119
3170
  "description": "",
3120
- "name": "ActionsMenu",
3171
+ "name": "AiIndicator",
3121
3172
  "members": [
3122
3173
  {
3123
3174
  "kind": "field",
3124
- "name": "actions",
3175
+ "name": "providerRegistry",
3125
3176
  "type": {
3126
- "text": "ActionMenuItem[]"
3177
+ "text": "AIProviderRegistry"
3127
3178
  }
3128
3179
  },
3129
3180
  {
3130
3181
  "kind": "field",
3131
- "name": "isVertical",
3132
- "type": {
3133
- "text": "boolean"
3134
- },
3135
- "default": "false"
3136
- },
3137
- {
3138
- "kind": "field",
3139
- "name": "addDefaultActions",
3140
- "type": {
3141
- "text": "boolean"
3142
- },
3143
- "default": "true"
3144
- },
3145
- {
3146
- "kind": "field",
3147
- "name": "autoCloseOnAction",
3182
+ "name": "aiProvider",
3148
3183
  "type": {
3149
- "text": "boolean"
3184
+ "text": "AIProvider | undefined"
3150
3185
  },
3151
- "default": "true"
3152
- },
3153
- {
3154
- "kind": "field",
3155
- "name": "classNames",
3156
- "type": {
3157
- "text": "string"
3158
- }
3159
- },
3160
- {
3161
- "kind": "field",
3162
- "name": "definition",
3163
- "type": {
3164
- "text": "any"
3165
- }
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
3166
3189
  },
3167
3190
  {
3168
3191
  "kind": "field",
3169
- "name": "name",
3192
+ "name": "status",
3170
3193
  "type": {
3171
- "text": "string"
3194
+ "text": "AIStatus | null"
3172
3195
  },
3173
- "default": "'Actions'"
3196
+ "default": "null"
3174
3197
  },
3175
3198
  {
3176
3199
  "kind": "field",
@@ -3182,14 +3205,15 @@
3182
3205
  },
3183
3206
  {
3184
3207
  "kind": "field",
3185
- "name": "buttonAppearance",
3208
+ "name": "state",
3186
3209
  "type": {
3187
- "text": "string"
3188
- }
3210
+ "text": "AIIndicatorState"
3211
+ },
3212
+ "default": "'none'"
3189
3213
  },
3190
3214
  {
3191
3215
  "kind": "field",
3192
- "name": "hideDisabled",
3216
+ "name": "isInstalling",
3193
3217
  "type": {
3194
3218
  "text": "boolean"
3195
3219
  },
@@ -3197,114 +3221,133 @@
3197
3221
  },
3198
3222
  {
3199
3223
  "kind": "field",
3200
- "name": "hideMenuSingleOption",
3224
+ "name": "pollTimer",
3201
3225
  "type": {
3202
- "text": "boolean"
3226
+ "text": "ReturnType<typeof setInterval> | null"
3203
3227
  },
3204
- "default": "false"
3228
+ "privacy": "private",
3229
+ "default": "null"
3205
3230
  },
3206
3231
  {
3207
3232
  "kind": "field",
3208
- "name": "singleOption",
3233
+ "name": "clickOutside",
3234
+ "privacy": "private"
3235
+ },
3236
+ {
3237
+ "kind": "field",
3238
+ "name": "chromeStatusLabel",
3209
3239
  "type": {
3210
- "text": "ActionMenuItem"
3211
- }
3240
+ "text": "string | null"
3241
+ },
3242
+ "readonly": true
3212
3243
  },
3213
3244
  {
3214
3245
  "kind": "field",
3215
- "name": "actionsMenu",
3246
+ "name": "canInstall",
3216
3247
  "type": {
3217
- "text": "HTMLElement"
3218
- }
3248
+ "text": "boolean"
3249
+ },
3250
+ "readonly": true
3219
3251
  },
3220
3252
  {
3221
3253
  "kind": "field",
3222
- "name": "actionsOpener",
3254
+ "name": "isDownloading",
3223
3255
  "type": {
3224
- "text": "HTMLElement"
3225
- }
3256
+ "text": "boolean"
3257
+ },
3258
+ "readonly": true
3226
3259
  },
3227
3260
  {
3228
3261
  "kind": "method",
3229
- "name": "updateMenuPosition",
3230
- "privacy": "private"
3262
+ "name": "openChanged",
3263
+ "return": {
3264
+ "type": {
3265
+ "text": "void"
3266
+ }
3267
+ }
3231
3268
  },
3232
3269
  {
3233
3270
  "kind": "method",
3234
- "name": "definitionChanged",
3235
- "privacy": "protected",
3271
+ "name": "handleClickOutside",
3272
+ "privacy": "private",
3236
3273
  "parameters": [
3237
3274
  {
3238
- "name": "oldValue",
3239
- "type": {
3240
- "text": "any"
3241
- }
3242
- },
3243
- {
3244
- "name": "newValue",
3275
+ "name": "event",
3245
3276
  "type": {
3246
- "text": "any"
3277
+ "text": "MouseEvent"
3247
3278
  }
3248
3279
  }
3249
3280
  ]
3250
3281
  },
3251
3282
  {
3252
3283
  "kind": "method",
3253
- "name": "openChanged",
3254
- "privacy": "protected"
3284
+ "name": "toggleDropdown"
3255
3285
  },
3256
3286
  {
3257
3287
  "kind": "method",
3258
- "name": "toggleActionsMenuVisibility"
3288
+ "name": "refreshStatus",
3289
+ "return": {
3290
+ "type": {
3291
+ "text": "Promise<void>"
3292
+ }
3293
+ }
3259
3294
  },
3260
3295
  {
3261
3296
  "kind": "method",
3262
- "name": "onActionMenuItemClick",
3297
+ "name": "deriveState",
3298
+ "privacy": "private",
3299
+ "return": {
3300
+ "type": {
3301
+ "text": "AIIndicatorState"
3302
+ }
3303
+ },
3263
3304
  "parameters": [
3264
3305
  {
3265
- "name": "callback",
3306
+ "name": "s",
3266
3307
  "type": {
3267
- "text": "(rowData) => void | any"
3308
+ "text": "AIStatus | null"
3268
3309
  }
3269
3310
  }
3270
3311
  ]
3271
3312
  },
3272
3313
  {
3273
- "kind": "field",
3274
- "name": "allActions",
3275
- "type": {
3276
- "text": "ActionMenuItem[]"
3277
- },
3278
- "readonly": true
3314
+ "kind": "method",
3315
+ "name": "maybeStartPolling",
3316
+ "privacy": "private",
3317
+ "return": {
3318
+ "type": {
3319
+ "text": "void"
3320
+ }
3321
+ }
3279
3322
  },
3280
3323
  {
3281
- "kind": "field",
3282
- "name": "rowData",
3283
- "readonly": true
3324
+ "kind": "method",
3325
+ "name": "startPolling",
3326
+ "privacy": "private",
3327
+ "return": {
3328
+ "type": {
3329
+ "text": "void"
3330
+ }
3331
+ }
3284
3332
  },
3285
3333
  {
3286
3334
  "kind": "method",
3287
- "name": "getLabel",
3288
- "parameters": [
3289
- {
3290
- "name": "name",
3291
- "type": {
3292
- "text": "string | ((rowData: any) => string)"
3293
- }
3335
+ "name": "stopPolling",
3336
+ "privacy": "private",
3337
+ "return": {
3338
+ "type": {
3339
+ "text": "void"
3294
3340
  }
3295
- ]
3341
+ }
3296
3342
  },
3297
3343
  {
3298
3344
  "kind": "method",
3299
- "name": "getTemplate",
3300
- "parameters": [
3301
- {
3302
- "name": "prefix",
3303
- "type": {
3304
- "text": "string"
3305
- }
3345
+ "name": "onInstall",
3346
+ "return": {
3347
+ "type": {
3348
+ "text": "Promise<void>"
3306
3349
  }
3307
- ]
3350
+ }
3308
3351
  },
3309
3352
  {
3310
3353
  "kind": "field",
@@ -3418,131 +3461,88 @@
3418
3461
  }
3419
3462
  }
3420
3463
  ],
3421
- "attributes": [
3422
- {
3423
- "name": "is-vertical",
3424
- "type": {
3425
- "text": "boolean"
3426
- },
3427
- "default": "false",
3428
- "fieldName": "isVertical"
3429
- },
3430
- {
3431
- "name": "add-default-actions",
3432
- "type": {
3433
- "text": "boolean"
3434
- },
3435
- "default": "true",
3436
- "fieldName": "addDefaultActions"
3437
- },
3438
- {
3439
- "name": "auto-close-on-action",
3440
- "type": {
3441
- "text": "boolean"
3442
- },
3443
- "default": "true",
3444
- "fieldName": "autoCloseOnAction"
3445
- },
3446
- {
3447
- "name": "name",
3448
- "type": {
3449
- "text": "string"
3450
- },
3451
- "default": "'Actions'",
3452
- "fieldName": "name"
3453
- },
3454
- {
3455
- "name": "open",
3456
- "type": {
3457
- "text": "boolean"
3458
- },
3459
- "default": "false",
3460
- "fieldName": "open"
3461
- },
3462
- {
3463
- "name": "buttonAppearance",
3464
- "type": {
3465
- "text": "string"
3466
- },
3467
- "fieldName": "buttonAppearance"
3468
- },
3469
- {
3470
- "name": "hide-disabled",
3471
- "type": {
3472
- "text": "boolean"
3473
- },
3474
- "default": "false",
3475
- "fieldName": "hideDisabled"
3476
- },
3477
- {
3478
- "name": "hide-menu-single-option",
3479
- "type": {
3480
- "text": "boolean"
3481
- },
3482
- "default": "false",
3483
- "fieldName": "hideMenuSingleOption"
3484
- }
3485
- ],
3486
3464
  "superclass": {
3487
3465
  "name": "FoundationElement",
3488
3466
  "package": "@microsoft/fast-foundation"
3489
3467
  },
3490
- "tagName": "%%prefix%%-actions-menu",
3468
+ "tagName": "%%prefix%%-ai-indicator",
3491
3469
  "customElement": true
3492
3470
  },
3493
3471
  {
3494
3472
  "kind": "variable",
3495
- "name": "foundationActionsMenu",
3496
- "description": "The Foundation Actions Menu",
3497
- "privacy": "public"
3473
+ "name": "foundationAiIndicator"
3498
3474
  }
3499
3475
  ],
3500
3476
  "exports": [
3501
3477
  {
3502
3478
  "kind": "js",
3503
- "name": "ActionsMenu",
3479
+ "name": "AiIndicator",
3504
3480
  "declaration": {
3505
- "name": "ActionsMenu",
3506
- "module": "src/actions-menu/actions-menu.ts"
3481
+ "name": "AiIndicator",
3482
+ "module": "src/ai-indicator/ai-indicator.ts"
3507
3483
  }
3508
3484
  },
3509
3485
  {
3510
3486
  "kind": "js",
3511
- "name": "foundationActionsMenu",
3487
+ "name": "foundationAiIndicator",
3512
3488
  "declaration": {
3513
- "name": "foundationActionsMenu",
3514
- "module": "src/actions-menu/actions-menu.ts"
3489
+ "name": "foundationAiIndicator",
3490
+ "module": "src/ai-indicator/ai-indicator.ts"
3515
3491
  }
3516
3492
  }
3517
3493
  ]
3518
3494
  },
3519
3495
  {
3520
3496
  "kind": "javascript-module",
3521
- "path": "src/actions-menu/index.ts",
3497
+ "path": "src/ai-indicator/index.ts",
3522
3498
  "declarations": [],
3523
3499
  "exports": [
3524
3500
  {
3525
3501
  "kind": "js",
3526
- "name": "*",
3502
+ "name": "AiIndicator",
3527
3503
  "declaration": {
3528
- "name": "*",
3529
- "package": "./actions-menu.styles"
3504
+ "name": "AiIndicator",
3505
+ "module": "./ai-indicator"
3530
3506
  }
3531
3507
  },
3532
3508
  {
3533
3509
  "kind": "js",
3534
- "name": "*",
3510
+ "name": "foundationAiIndicator",
3535
3511
  "declaration": {
3536
- "name": "*",
3537
- "package": "./actions-menu.template"
3512
+ "name": "foundationAiIndicator",
3513
+ "module": "./ai-indicator"
3538
3514
  }
3539
3515
  },
3540
3516
  {
3541
3517
  "kind": "js",
3542
- "name": "*",
3518
+ "name": "type",
3543
3519
  "declaration": {
3544
- "name": "*",
3545
- "package": "./actions-menu"
3520
+ "name": "type",
3521
+ "module": "./ai-indicator"
3522
+ }
3523
+ },
3524
+ {
3525
+ "kind": "js",
3526
+ "name": "AIIndicatorState",
3527
+ "declaration": {
3528
+ "name": "AIIndicatorState",
3529
+ "module": "./ai-indicator"
3530
+ }
3531
+ },
3532
+ {
3533
+ "kind": "js",
3534
+ "name": "foundationAiIndicatorTemplate",
3535
+ "declaration": {
3536
+ "name": "foundationAiIndicatorTemplate",
3537
+ "module": "./ai-indicator.template"
3538
+ }
3539
+ },
3540
+ {
3541
+ "kind": "js",
3542
+ "name": "foundationAiIndicatorStyles",
3543
+ "declaration": {
3544
+ "name": "foundationAiIndicatorStyles",
3545
+ "module": "./ai-indicator.styles"
3546
3546
  }
3547
3547
  }
3548
3548
  ]