@genesislcap/foundation-ui 15.21.0 → 15.21.1

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