@genesislcap/foundation-ui 15.35.0 → 15.35.1-GH-2547.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.
@@ -1493,6 +1493,37 @@
1493
1493
  }
1494
1494
  ]
1495
1495
  },
1496
+ {
1497
+ "kind": "javascript-module",
1498
+ "path": "src/_config/index.ts",
1499
+ "declarations": [],
1500
+ "exports": [
1501
+ {
1502
+ "kind": "js",
1503
+ "name": "*",
1504
+ "declaration": {
1505
+ "name": "*",
1506
+ "package": "./styles"
1507
+ }
1508
+ },
1509
+ {
1510
+ "kind": "js",
1511
+ "name": "*",
1512
+ "declaration": {
1513
+ "name": "*",
1514
+ "package": "./tokens"
1515
+ }
1516
+ },
1517
+ {
1518
+ "kind": "js",
1519
+ "name": "*",
1520
+ "declaration": {
1521
+ "name": "*",
1522
+ "package": "./values"
1523
+ }
1524
+ }
1525
+ ]
1526
+ },
1496
1527
  {
1497
1528
  "kind": "javascript-module",
1498
1529
  "path": "src/accordion/accordion.styles.ts",
@@ -2010,34 +2041,11 @@
2010
2041
  },
2011
2042
  {
2012
2043
  "kind": "javascript-module",
2013
- "path": "src/actions-menu/actions-menu.styles.ts",
2044
+ "path": "src/accordion-item/accordion-item.styles.ts",
2014
2045
  "declarations": [
2015
2046
  {
2016
2047
  "kind": "function",
2017
- "name": "actionsMenuBaseStyles",
2018
- "return": {
2019
- "type": {
2020
- "text": "ElementStyles"
2021
- }
2022
- },
2023
- "parameters": [
2024
- {
2025
- "name": "context",
2026
- "type": {
2027
- "text": "ElementDefinitionContext"
2028
- }
2029
- },
2030
- {
2031
- "name": "definition",
2032
- "type": {
2033
- "text": "FoundationElementDefinition"
2034
- }
2035
- }
2036
- ]
2037
- },
2038
- {
2039
- "kind": "function",
2040
- "name": "foundationActionsMenuStyles",
2048
+ "name": "foundationAccordionItemStyles",
2041
2049
  "return": {
2042
2050
  "type": {
2043
2051
  "text": "ElementStyles"
@@ -2062,320 +2070,195 @@
2062
2070
  "exports": [
2063
2071
  {
2064
2072
  "kind": "js",
2065
- "name": "actionsMenuBaseStyles",
2066
- "declaration": {
2067
- "name": "actionsMenuBaseStyles",
2068
- "module": "src/actions-menu/actions-menu.styles.ts"
2069
- }
2070
- },
2071
- {
2072
- "kind": "js",
2073
- "name": "foundationActionsMenuStyles",
2073
+ "name": "foundationAccordionItemStyles",
2074
2074
  "declaration": {
2075
- "name": "foundationActionsMenuStyles",
2076
- "module": "src/actions-menu/actions-menu.styles.ts"
2075
+ "name": "foundationAccordionItemStyles",
2076
+ "module": "src/accordion-item/accordion-item.styles.ts"
2077
2077
  }
2078
2078
  }
2079
2079
  ]
2080
2080
  },
2081
2081
  {
2082
2082
  "kind": "javascript-module",
2083
- "path": "src/actions-menu/actions-menu.template.ts",
2083
+ "path": "src/accordion-item/accordion-item.template.ts",
2084
2084
  "declarations": [
2085
2085
  {
2086
2086
  "kind": "function",
2087
- "name": "menuTemplate",
2087
+ "name": "foundationAccordionItemTemplate",
2088
+ "return": {
2089
+ "type": {
2090
+ "text": "ViewTemplate<AccordionItem>"
2091
+ }
2092
+ },
2088
2093
  "parameters": [
2089
2094
  {
2090
- "name": "prefix",
2095
+ "name": "context",
2091
2096
  "type": {
2092
- "text": "string"
2097
+ "text": "ElementDefinitionContext"
2093
2098
  }
2094
- }
2095
- ]
2096
- },
2097
- {
2098
- "kind": "function",
2099
- "name": "singleOptionTemplate",
2100
- "parameters": [
2099
+ },
2101
2100
  {
2102
- "name": "prefix",
2101
+ "name": "definition",
2103
2102
  "type": {
2104
- "text": "string"
2103
+ "text": "FoundationElementDefinition"
2105
2104
  }
2106
2105
  }
2107
2106
  ]
2108
- },
2109
- {
2110
- "kind": "variable",
2111
- "name": "foundationActionsMenuTemplate",
2112
- "type": {
2113
- "text": "ViewTemplate<ActionsMenu>"
2114
- },
2115
- "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`"
2116
2107
  }
2117
2108
  ],
2118
2109
  "exports": [
2119
2110
  {
2120
2111
  "kind": "js",
2121
- "name": "menuTemplate",
2122
- "declaration": {
2123
- "name": "menuTemplate",
2124
- "module": "src/actions-menu/actions-menu.template.ts"
2125
- }
2126
- },
2127
- {
2128
- "kind": "js",
2129
- "name": "singleOptionTemplate",
2130
- "declaration": {
2131
- "name": "singleOptionTemplate",
2132
- "module": "src/actions-menu/actions-menu.template.ts"
2133
- }
2134
- },
2135
- {
2136
- "kind": "js",
2137
- "name": "foundationActionsMenuTemplate",
2112
+ "name": "foundationAccordionItemTemplate",
2138
2113
  "declaration": {
2139
- "name": "foundationActionsMenuTemplate",
2140
- "module": "src/actions-menu/actions-menu.template.ts"
2114
+ "name": "foundationAccordionItemTemplate",
2115
+ "module": "src/accordion-item/accordion-item.template.ts"
2141
2116
  }
2142
2117
  }
2143
2118
  ]
2144
2119
  },
2145
2120
  {
2146
2121
  "kind": "javascript-module",
2147
- "path": "src/actions-menu/actions-menu.ts",
2122
+ "path": "src/accordion-item/accordion-item.ts",
2148
2123
  "declarations": [
2149
2124
  {
2150
2125
  "kind": "class",
2151
2126
  "description": "",
2152
- "name": "ActionsMenu",
2153
- "members": [
2127
+ "name": "AccordionItem",
2128
+ "superclass": {
2129
+ "name": "FASTAccordionItem",
2130
+ "package": "@microsoft/fast-components"
2131
+ },
2132
+ "tagName": "%%prefix%%-accordion-item",
2133
+ "customElement": true,
2134
+ "attributes": [
2154
2135
  {
2155
- "kind": "field",
2156
- "name": "actions",
2136
+ "name": "heading-level",
2157
2137
  "type": {
2158
- "text": "ActionMenuItem[]"
2138
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2139
+ },
2140
+ "default": "2",
2141
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2142
+ "fieldName": "headinglevel",
2143
+ "inheritedFrom": {
2144
+ "name": "AccordionItem",
2145
+ "module": "src/accordion-item/accordion-item.ts"
2159
2146
  }
2160
2147
  },
2161
2148
  {
2162
- "kind": "field",
2163
- "name": "isVertical",
2164
2149
  "type": {
2165
2150
  "text": "boolean"
2166
2151
  },
2167
- "default": "false"
2152
+ "default": "false",
2153
+ "description": "Expands or collapses the item.",
2154
+ "fieldName": "expanded",
2155
+ "inheritedFrom": {
2156
+ "name": "AccordionItem",
2157
+ "module": "src/accordion-item/accordion-item.ts"
2158
+ }
2168
2159
  },
2160
+ {
2161
+ "name": "id",
2162
+ "type": {
2163
+ "text": "string"
2164
+ },
2165
+ "description": "The item ID",
2166
+ "fieldName": "id",
2167
+ "inheritedFrom": {
2168
+ "name": "AccordionItem",
2169
+ "module": "src/accordion-item/accordion-item.ts"
2170
+ }
2171
+ }
2172
+ ],
2173
+ "members": [
2169
2174
  {
2170
2175
  "kind": "field",
2171
- "name": "addDefaultActions",
2176
+ "name": "headinglevel",
2172
2177
  "type": {
2173
- "text": "boolean"
2178
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2174
2179
  },
2175
- "default": "true"
2180
+ "privacy": "public",
2181
+ "default": "2",
2182
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2183
+ "inheritedFrom": {
2184
+ "name": "AccordionItem",
2185
+ "module": "src/accordion-item/accordion-item.ts"
2186
+ }
2176
2187
  },
2177
2188
  {
2178
2189
  "kind": "field",
2179
- "name": "autoCloseOnAction",
2190
+ "name": "expanded",
2180
2191
  "type": {
2181
2192
  "text": "boolean"
2182
2193
  },
2183
- "default": "true"
2194
+ "privacy": "public",
2195
+ "default": "false",
2196
+ "description": "Expands or collapses the item.",
2197
+ "inheritedFrom": {
2198
+ "name": "AccordionItem",
2199
+ "module": "src/accordion-item/accordion-item.ts"
2200
+ }
2184
2201
  },
2185
2202
  {
2186
2203
  "kind": "field",
2187
- "name": "classNames",
2204
+ "name": "id",
2188
2205
  "type": {
2189
2206
  "text": "string"
2207
+ },
2208
+ "privacy": "public",
2209
+ "description": "The item ID",
2210
+ "inheritedFrom": {
2211
+ "name": "AccordionItem",
2212
+ "module": "src/accordion-item/accordion-item.ts"
2190
2213
  }
2191
2214
  },
2192
2215
  {
2193
2216
  "kind": "field",
2194
- "name": "definition",
2195
- "type": {
2196
- "text": "any"
2217
+ "name": "change",
2218
+ "privacy": "private",
2219
+ "inheritedFrom": {
2220
+ "name": "AccordionItem",
2221
+ "module": "src/accordion-item/accordion-item.ts"
2197
2222
  }
2198
2223
  },
2199
2224
  {
2200
2225
  "kind": "field",
2201
- "name": "name",
2226
+ "name": "_presentation",
2202
2227
  "type": {
2203
- "text": "string"
2228
+ "text": "ComponentPresentation | null | undefined"
2204
2229
  },
2205
- "default": "'Actions'"
2230
+ "privacy": "private",
2231
+ "default": "void 0",
2232
+ "inheritedFrom": {
2233
+ "name": "FoundationElement",
2234
+ "module": "src/foundation-element/foundation-element.ts"
2235
+ }
2206
2236
  },
2207
2237
  {
2208
2238
  "kind": "field",
2209
- "name": "open",
2239
+ "name": "$presentation",
2210
2240
  "type": {
2211
- "text": "boolean"
2241
+ "text": "ComponentPresentation | null"
2212
2242
  },
2213
- "default": "false"
2214
- },
2215
- {
2216
- "kind": "field",
2217
- "name": "buttonAppearance",
2218
- "type": {
2219
- "text": "string"
2243
+ "privacy": "public",
2244
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2245
+ "inheritedFrom": {
2246
+ "name": "FoundationElement",
2247
+ "module": "src/foundation-element/foundation-element.ts"
2220
2248
  }
2221
2249
  },
2222
2250
  {
2223
2251
  "kind": "field",
2224
- "name": "hideDisabled",
2252
+ "name": "template",
2225
2253
  "type": {
2226
- "text": "boolean"
2254
+ "text": "ElementViewTemplate | void | null"
2227
2255
  },
2228
- "default": "false"
2229
- },
2230
- {
2231
- "kind": "field",
2232
- "name": "hideMenuSingleOption",
2233
- "type": {
2234
- "text": "boolean"
2235
- },
2236
- "default": "false"
2237
- },
2238
- {
2239
- "kind": "field",
2240
- "name": "singleOption",
2241
- "type": {
2242
- "text": "ActionMenuItem"
2243
- }
2244
- },
2245
- {
2246
- "kind": "field",
2247
- "name": "actionsMenu",
2248
- "type": {
2249
- "text": "HTMLElement"
2250
- }
2251
- },
2252
- {
2253
- "kind": "field",
2254
- "name": "actionsOpener",
2255
- "type": {
2256
- "text": "HTMLElement"
2257
- }
2258
- },
2259
- {
2260
- "kind": "method",
2261
- "name": "updateMenuPosition",
2262
- "privacy": "private"
2263
- },
2264
- {
2265
- "kind": "method",
2266
- "name": "definitionChanged",
2267
- "privacy": "protected",
2268
- "parameters": [
2269
- {
2270
- "name": "oldValue",
2271
- "type": {
2272
- "text": "any"
2273
- }
2274
- },
2275
- {
2276
- "name": "newValue",
2277
- "type": {
2278
- "text": "any"
2279
- }
2280
- }
2281
- ]
2282
- },
2283
- {
2284
- "kind": "method",
2285
- "name": "openChanged",
2286
- "privacy": "protected"
2287
- },
2288
- {
2289
- "kind": "method",
2290
- "name": "toggleActionsMenuVisibility"
2291
- },
2292
- {
2293
- "kind": "method",
2294
- "name": "onActionMenuItemClick",
2295
- "parameters": [
2296
- {
2297
- "name": "callback",
2298
- "type": {
2299
- "text": "(rowData) => void | any"
2300
- }
2301
- }
2302
- ]
2303
- },
2304
- {
2305
- "kind": "field",
2306
- "name": "allActions",
2307
- "type": {
2308
- "text": "ActionMenuItem[]"
2309
- },
2310
- "readonly": true
2311
- },
2312
- {
2313
- "kind": "field",
2314
- "name": "rowData",
2315
- "readonly": true
2316
- },
2317
- {
2318
- "kind": "method",
2319
- "name": "getLabel",
2320
- "parameters": [
2321
- {
2322
- "name": "name",
2323
- "type": {
2324
- "text": "string | ((rowData: any) => string)"
2325
- }
2326
- }
2327
- ]
2328
- },
2329
- {
2330
- "kind": "method",
2331
- "name": "getTemplate",
2332
- "parameters": [
2333
- {
2334
- "name": "prefix",
2335
- "type": {
2336
- "text": "string"
2337
- }
2338
- }
2339
- ]
2340
- },
2341
- {
2342
- "kind": "field",
2343
- "name": "_presentation",
2344
- "type": {
2345
- "text": "ComponentPresentation | null | undefined"
2346
- },
2347
- "privacy": "private",
2348
- "default": "void 0",
2349
- "inheritedFrom": {
2350
- "name": "FoundationElement",
2351
- "module": "src/foundation-element/foundation-element.ts"
2352
- }
2353
- },
2354
- {
2355
- "kind": "field",
2356
- "name": "$presentation",
2357
- "type": {
2358
- "text": "ComponentPresentation | null"
2359
- },
2360
- "privacy": "public",
2361
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2362
- "inheritedFrom": {
2363
- "name": "FoundationElement",
2364
- "module": "src/foundation-element/foundation-element.ts"
2365
- }
2366
- },
2367
- {
2368
- "kind": "field",
2369
- "name": "template",
2370
- "type": {
2371
- "text": "ElementViewTemplate | void | null"
2372
- },
2373
- "privacy": "public",
2374
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2375
- "inheritedFrom": {
2376
- "name": "FoundationElement",
2377
- "module": "src/foundation-element/foundation-element.ts"
2378
- }
2256
+ "privacy": "public",
2257
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2258
+ "inheritedFrom": {
2259
+ "name": "FoundationElement",
2260
+ "module": "src/foundation-element/foundation-element.ts"
2261
+ }
2379
2262
  },
2380
2263
  {
2381
2264
  "kind": "method",
@@ -2450,107 +2333,78 @@
2450
2333
  }
2451
2334
  }
2452
2335
  ],
2453
- "attributes": [
2454
- {
2455
- "name": "is-vertical",
2456
- "type": {
2457
- "text": "boolean"
2458
- },
2459
- "default": "false",
2460
- "fieldName": "isVertical"
2461
- },
2462
- {
2463
- "name": "add-default-actions",
2464
- "type": {
2465
- "text": "boolean"
2466
- },
2467
- "default": "true",
2468
- "fieldName": "addDefaultActions"
2469
- },
2470
- {
2471
- "name": "auto-close-on-action",
2472
- "type": {
2473
- "text": "boolean"
2474
- },
2475
- "default": "true",
2476
- "fieldName": "autoCloseOnAction"
2477
- },
2478
- {
2479
- "name": "name",
2480
- "type": {
2481
- "text": "string"
2482
- },
2483
- "default": "'Actions'",
2484
- "fieldName": "name"
2485
- },
2486
- {
2487
- "name": "open",
2488
- "type": {
2489
- "text": "boolean"
2490
- },
2491
- "default": "false",
2492
- "fieldName": "open"
2493
- },
2494
- {
2495
- "name": "buttonAppearance",
2496
- "type": {
2497
- "text": "string"
2498
- },
2499
- "fieldName": "buttonAppearance"
2500
- },
2501
- {
2502
- "name": "hide-disabled",
2503
- "type": {
2504
- "text": "boolean"
2505
- },
2506
- "default": "false",
2507
- "fieldName": "hideDisabled"
2508
- },
2336
+ "events": [
2509
2337
  {
2510
- "name": "hide-menu-single-option",
2511
- "type": {
2512
- "text": "boolean"
2513
- },
2514
- "default": "false",
2515
- "fieldName": "hideMenuSingleOption"
2338
+ "description": "Fires a custom 'change' event when the button is invoked",
2339
+ "name": "change",
2340
+ "inheritedFrom": {
2341
+ "name": "AccordionItem",
2342
+ "module": "src/accordion-item/accordion-item.ts"
2343
+ }
2516
2344
  }
2517
- ],
2518
- "superclass": {
2519
- "name": "FoundationElement",
2520
- "package": "@microsoft/fast-foundation"
2345
+ ]
2346
+ },
2347
+ {
2348
+ "kind": "variable",
2349
+ "name": "foundationAccordionItemShadowOptions",
2350
+ "type": {
2351
+ "text": "ShadowRootInit"
2521
2352
  },
2522
- "tagName": "%%prefix%%-actions-menu",
2523
- "customElement": true
2353
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2524
2354
  },
2525
2355
  {
2526
2356
  "kind": "variable",
2527
- "name": "foundationActionsMenu",
2528
- "description": "The Foundation Actions Menu",
2357
+ "name": "defaultAccordionItemConfig",
2358
+ "type": {
2359
+ "text": "object"
2360
+ },
2361
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2362
+ },
2363
+ {
2364
+ "kind": "variable",
2365
+ "name": "foundationAccordionItem",
2366
+ "description": "The Foundation Accordion Item",
2529
2367
  "privacy": "public"
2530
2368
  }
2531
2369
  ],
2532
2370
  "exports": [
2533
2371
  {
2534
2372
  "kind": "js",
2535
- "name": "ActionsMenu",
2373
+ "name": "AccordionItem",
2536
2374
  "declaration": {
2537
- "name": "ActionsMenu",
2538
- "module": "src/actions-menu/actions-menu.ts"
2375
+ "name": "AccordionItem",
2376
+ "module": "src/accordion-item/accordion-item.ts"
2539
2377
  }
2540
2378
  },
2541
2379
  {
2542
2380
  "kind": "js",
2543
- "name": "foundationActionsMenu",
2381
+ "name": "foundationAccordionItemShadowOptions",
2544
2382
  "declaration": {
2545
- "name": "foundationActionsMenu",
2546
- "module": "src/actions-menu/actions-menu.ts"
2383
+ "name": "foundationAccordionItemShadowOptions",
2384
+ "module": "src/accordion-item/accordion-item.ts"
2385
+ }
2386
+ },
2387
+ {
2388
+ "kind": "js",
2389
+ "name": "defaultAccordionItemConfig",
2390
+ "declaration": {
2391
+ "name": "defaultAccordionItemConfig",
2392
+ "module": "src/accordion-item/accordion-item.ts"
2393
+ }
2394
+ },
2395
+ {
2396
+ "kind": "js",
2397
+ "name": "foundationAccordionItem",
2398
+ "declaration": {
2399
+ "name": "foundationAccordionItem",
2400
+ "module": "src/accordion-item/accordion-item.ts"
2547
2401
  }
2548
2402
  }
2549
2403
  ]
2550
2404
  },
2551
2405
  {
2552
2406
  "kind": "javascript-module",
2553
- "path": "src/actions-menu/index.ts",
2407
+ "path": "src/accordion-item/index.ts",
2554
2408
  "declarations": [],
2555
2409
  "exports": [
2556
2410
  {
@@ -2558,7 +2412,7 @@
2558
2412
  "name": "*",
2559
2413
  "declaration": {
2560
2414
  "name": "*",
2561
- "package": "./actions-menu.styles"
2415
+ "package": "./accordion-item.template"
2562
2416
  }
2563
2417
  },
2564
2418
  {
@@ -2566,7 +2420,7 @@
2566
2420
  "name": "*",
2567
2421
  "declaration": {
2568
2422
  "name": "*",
2569
- "package": "./actions-menu.template"
2423
+ "package": "./accordion-item.styles"
2570
2424
  }
2571
2425
  },
2572
2426
  {
@@ -2574,153 +2428,210 @@
2574
2428
  "name": "*",
2575
2429
  "declaration": {
2576
2430
  "name": "*",
2577
- "package": "./actions-menu"
2431
+ "package": "./accordion-item"
2578
2432
  }
2579
2433
  }
2580
2434
  ]
2581
2435
  },
2582
2436
  {
2583
2437
  "kind": "javascript-module",
2584
- "path": "src/_config/index.ts",
2585
- "declarations": [],
2586
- "exports": [
2438
+ "path": "src/actions-menu/actions-menu.styles.ts",
2439
+ "declarations": [
2587
2440
  {
2588
- "kind": "js",
2589
- "name": "*",
2590
- "declaration": {
2591
- "name": "*",
2592
- "package": "./styles"
2593
- }
2441
+ "kind": "function",
2442
+ "name": "actionsMenuBaseStyles",
2443
+ "return": {
2444
+ "type": {
2445
+ "text": "ElementStyles"
2446
+ }
2447
+ },
2448
+ "parameters": [
2449
+ {
2450
+ "name": "context",
2451
+ "type": {
2452
+ "text": "ElementDefinitionContext"
2453
+ }
2454
+ },
2455
+ {
2456
+ "name": "definition",
2457
+ "type": {
2458
+ "text": "FoundationElementDefinition"
2459
+ }
2460
+ }
2461
+ ]
2594
2462
  },
2463
+ {
2464
+ "kind": "function",
2465
+ "name": "foundationActionsMenuStyles",
2466
+ "return": {
2467
+ "type": {
2468
+ "text": "ElementStyles"
2469
+ }
2470
+ },
2471
+ "parameters": [
2472
+ {
2473
+ "name": "context",
2474
+ "type": {
2475
+ "text": "ElementDefinitionContext"
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "definition",
2480
+ "type": {
2481
+ "text": "FoundationElementDefinition"
2482
+ }
2483
+ }
2484
+ ]
2485
+ }
2486
+ ],
2487
+ "exports": [
2595
2488
  {
2596
2489
  "kind": "js",
2597
- "name": "*",
2490
+ "name": "actionsMenuBaseStyles",
2598
2491
  "declaration": {
2599
- "name": "*",
2600
- "package": "./tokens"
2492
+ "name": "actionsMenuBaseStyles",
2493
+ "module": "src/actions-menu/actions-menu.styles.ts"
2601
2494
  }
2602
2495
  },
2603
2496
  {
2604
2497
  "kind": "js",
2605
- "name": "*",
2498
+ "name": "foundationActionsMenuStyles",
2606
2499
  "declaration": {
2607
- "name": "*",
2608
- "package": "./values"
2500
+ "name": "foundationActionsMenuStyles",
2501
+ "module": "src/actions-menu/actions-menu.styles.ts"
2609
2502
  }
2610
2503
  }
2611
2504
  ]
2612
2505
  },
2613
2506
  {
2614
2507
  "kind": "javascript-module",
2615
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2508
+ "path": "src/actions-menu/actions-menu.template.ts",
2616
2509
  "declarations": [
2510
+ {
2511
+ "kind": "function",
2512
+ "name": "menuTemplate",
2513
+ "parameters": [
2514
+ {
2515
+ "name": "prefix",
2516
+ "type": {
2517
+ "text": "string"
2518
+ }
2519
+ }
2520
+ ]
2521
+ },
2522
+ {
2523
+ "kind": "function",
2524
+ "name": "singleOptionTemplate",
2525
+ "parameters": [
2526
+ {
2527
+ "name": "prefix",
2528
+ "type": {
2529
+ "text": "string"
2530
+ }
2531
+ }
2532
+ ]
2533
+ },
2617
2534
  {
2618
2535
  "kind": "variable",
2619
- "name": "foundationAiCriteriaSearchStyles",
2620
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2536
+ "name": "foundationActionsMenuTemplate",
2537
+ "type": {
2538
+ "text": "ViewTemplate<ActionsMenu>"
2539
+ },
2540
+ "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`"
2621
2541
  }
2622
2542
  ],
2623
2543
  "exports": [
2624
2544
  {
2625
2545
  "kind": "js",
2626
- "name": "foundationAiCriteriaSearchStyles",
2546
+ "name": "menuTemplate",
2627
2547
  "declaration": {
2628
- "name": "foundationAiCriteriaSearchStyles",
2629
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2548
+ "name": "menuTemplate",
2549
+ "module": "src/actions-menu/actions-menu.template.ts"
2630
2550
  }
2631
- }
2632
- ]
2633
- },
2634
- {
2635
- "kind": "javascript-module",
2636
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2637
- "declarations": [
2551
+ },
2638
2552
  {
2639
- "kind": "variable",
2640
- "name": "foundationAiCriteriaSearchTemplate",
2641
- "type": {
2642
- "text": "ViewTemplate<AiCriteriaSearch>"
2643
- },
2644
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2645
- }
2646
- ],
2647
- "exports": [
2553
+ "kind": "js",
2554
+ "name": "singleOptionTemplate",
2555
+ "declaration": {
2556
+ "name": "singleOptionTemplate",
2557
+ "module": "src/actions-menu/actions-menu.template.ts"
2558
+ }
2559
+ },
2648
2560
  {
2649
2561
  "kind": "js",
2650
- "name": "foundationAiCriteriaSearchTemplate",
2562
+ "name": "foundationActionsMenuTemplate",
2651
2563
  "declaration": {
2652
- "name": "foundationAiCriteriaSearchTemplate",
2653
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2564
+ "name": "foundationActionsMenuTemplate",
2565
+ "module": "src/actions-menu/actions-menu.template.ts"
2654
2566
  }
2655
2567
  }
2656
2568
  ]
2657
2569
  },
2658
2570
  {
2659
2571
  "kind": "javascript-module",
2660
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2572
+ "path": "src/actions-menu/actions-menu.ts",
2661
2573
  "declarations": [
2662
2574
  {
2663
2575
  "kind": "class",
2664
- "description": "Natural-language criteria search input with AI interpretation.",
2665
- "name": "AiCriteriaSearch",
2576
+ "description": "",
2577
+ "name": "ActionsMenu",
2666
2578
  "members": [
2667
2579
  {
2668
2580
  "kind": "field",
2669
- "name": "providerRegistry",
2581
+ "name": "actions",
2670
2582
  "type": {
2671
- "text": "AIProviderRegistry"
2583
+ "text": "ActionMenuItem[]"
2672
2584
  }
2673
2585
  },
2674
2586
  {
2675
2587
  "kind": "field",
2676
- "name": "placeholder",
2588
+ "name": "isVertical",
2677
2589
  "type": {
2678
- "text": "string"
2590
+ "text": "boolean"
2679
2591
  },
2680
- "default": "'Describe your search criteria in natural language...'"
2592
+ "default": "false"
2681
2593
  },
2682
2594
  {
2683
2595
  "kind": "field",
2684
- "name": "disabled",
2596
+ "name": "addDefaultActions",
2685
2597
  "type": {
2686
2598
  "text": "boolean"
2687
- }
2599
+ },
2600
+ "default": "true"
2688
2601
  },
2689
2602
  {
2690
2603
  "kind": "field",
2691
- "name": "inputValue",
2604
+ "name": "autoCloseOnAction",
2692
2605
  "type": {
2693
- "text": "string"
2606
+ "text": "boolean"
2694
2607
  },
2695
- "default": "''"
2608
+ "default": "true"
2696
2609
  },
2697
2610
  {
2698
2611
  "kind": "field",
2699
- "name": "isInterpreting",
2612
+ "name": "classNames",
2700
2613
  "type": {
2701
- "text": "boolean"
2702
- },
2703
- "default": "false"
2614
+ "text": "string"
2615
+ }
2704
2616
  },
2705
2617
  {
2706
2618
  "kind": "field",
2707
- "name": "lastValidCriteria",
2619
+ "name": "definition",
2708
2620
  "type": {
2709
- "text": "string | null"
2710
- },
2711
- "default": "null"
2621
+ "text": "any"
2622
+ }
2712
2623
  },
2713
2624
  {
2714
2625
  "kind": "field",
2715
- "name": "activeGroups",
2626
+ "name": "name",
2716
2627
  "type": {
2717
- "text": "CriteriaGroup[]"
2628
+ "text": "string"
2718
2629
  },
2719
- "default": "[]"
2630
+ "default": "'Actions'"
2720
2631
  },
2721
2632
  {
2722
2633
  "kind": "field",
2723
- "name": "showingChips",
2634
+ "name": "open",
2724
2635
  "type": {
2725
2636
  "text": "boolean"
2726
2637
  },
@@ -2728,15 +2639,14 @@
2728
2639
  },
2729
2640
  {
2730
2641
  "kind": "field",
2731
- "name": "fieldMetadata",
2642
+ "name": "buttonAppearance",
2732
2643
  "type": {
2733
- "text": "MetadataDetail[] | string[]"
2734
- },
2735
- "default": "[]"
2644
+ "text": "string"
2645
+ }
2736
2646
  },
2737
2647
  {
2738
2648
  "kind": "field",
2739
- "name": "isRecording",
2649
+ "name": "hideDisabled",
2740
2650
  "type": {
2741
2651
  "text": "boolean"
2742
2652
  },
@@ -2744,125 +2654,114 @@
2744
2654
  },
2745
2655
  {
2746
2656
  "kind": "field",
2747
- "name": "textAreaRef",
2748
- "type": {
2749
- "text": "HTMLTextAreaElement"
2750
- },
2751
- "privacy": "public"
2752
- },
2753
- {
2754
- "kind": "field",
2755
- "name": "stopRecording",
2657
+ "name": "hideMenuSingleOption",
2756
2658
  "type": {
2757
- "text": "(() => void) | null"
2659
+ "text": "boolean"
2758
2660
  },
2759
- "privacy": "private",
2760
- "default": "null"
2661
+ "default": "false"
2761
2662
  },
2762
2663
  {
2763
2664
  "kind": "field",
2764
- "name": "speechApplyDebounceTimer",
2665
+ "name": "singleOption",
2765
2666
  "type": {
2766
- "text": "ReturnType<typeof setTimeout> | null"
2767
- },
2768
- "privacy": "private",
2769
- "default": "null"
2667
+ "text": "ActionMenuItem"
2668
+ }
2770
2669
  },
2771
2670
  {
2772
2671
  "kind": "field",
2773
- "name": "speechAvailable",
2672
+ "name": "actionsMenu",
2774
2673
  "type": {
2775
- "text": "boolean"
2776
- },
2777
- "readonly": true
2674
+ "text": "HTMLElement"
2675
+ }
2778
2676
  },
2779
2677
  {
2780
2678
  "kind": "field",
2781
- "name": "criteriaChips",
2679
+ "name": "actionsOpener",
2782
2680
  "type": {
2783
- "text": "CriteriaChip[]"
2784
- },
2785
- "readonly": true
2786
- },
2787
- {
2788
- "kind": "method",
2789
- "name": "getFieldLabel",
2790
- "privacy": "private",
2791
- "return": {
2792
- "type": {
2793
- "text": "string"
2794
- }
2795
- },
2796
- "parameters": [
2797
- {
2798
- "name": "fieldName",
2799
- "type": {
2800
- "text": "string"
2801
- }
2802
- }
2803
- ]
2681
+ "text": "HTMLElement"
2682
+ }
2804
2683
  },
2805
2684
  {
2806
2685
  "kind": "method",
2807
- "name": "toggleCriteriaView",
2808
- "return": {
2809
- "type": {
2810
- "text": "void"
2811
- }
2812
- }
2686
+ "name": "updateMenuPosition",
2687
+ "privacy": "private"
2813
2688
  },
2814
2689
  {
2815
2690
  "kind": "method",
2816
- "name": "removeChip",
2817
- "return": {
2818
- "type": {
2819
- "text": "void"
2820
- }
2821
- },
2691
+ "name": "definitionChanged",
2692
+ "privacy": "protected",
2822
2693
  "parameters": [
2823
2694
  {
2824
- "name": "groupIndex",
2695
+ "name": "oldValue",
2825
2696
  "type": {
2826
- "text": "number"
2697
+ "text": "any"
2827
2698
  }
2828
2699
  },
2829
2700
  {
2830
- "name": "clauseIndex",
2701
+ "name": "newValue",
2831
2702
  "type": {
2832
- "text": "number"
2703
+ "text": "any"
2833
2704
  }
2834
2705
  }
2835
2706
  ]
2836
2707
  },
2837
2708
  {
2838
2709
  "kind": "method",
2839
- "name": "clearChips",
2840
- "return": {
2841
- "type": {
2842
- "text": "void"
2843
- }
2844
- }
2710
+ "name": "openChanged",
2711
+ "privacy": "protected"
2845
2712
  },
2846
2713
  {
2847
2714
  "kind": "method",
2848
- "name": "handleSubmit"
2715
+ "name": "toggleActionsMenuVisibility"
2849
2716
  },
2850
2717
  {
2851
2718
  "kind": "method",
2852
- "name": "handleBlur"
2719
+ "name": "onActionMenuItemClick",
2720
+ "parameters": [
2721
+ {
2722
+ "name": "callback",
2723
+ "type": {
2724
+ "text": "(rowData) => void | any"
2725
+ }
2726
+ }
2727
+ ]
2853
2728
  },
2854
2729
  {
2855
- "kind": "method",
2856
- "name": "clear"
2730
+ "kind": "field",
2731
+ "name": "allActions",
2732
+ "type": {
2733
+ "text": "ActionMenuItem[]"
2734
+ },
2735
+ "readonly": true
2736
+ },
2737
+ {
2738
+ "kind": "field",
2739
+ "name": "rowData",
2740
+ "readonly": true
2857
2741
  },
2858
2742
  {
2859
2743
  "kind": "method",
2860
- "name": "toggleSpeechInput"
2744
+ "name": "getLabel",
2745
+ "parameters": [
2746
+ {
2747
+ "name": "name",
2748
+ "type": {
2749
+ "text": "string | ((rowData: any) => string)"
2750
+ }
2751
+ }
2752
+ ]
2861
2753
  },
2862
2754
  {
2863
2755
  "kind": "method",
2864
- "name": "clearSpeechApplyDebounce",
2865
- "privacy": "private"
2756
+ "name": "getTemplate",
2757
+ "parameters": [
2758
+ {
2759
+ "name": "prefix",
2760
+ "type": {
2761
+ "text": "string"
2762
+ }
2763
+ }
2764
+ ]
2866
2765
  },
2867
2766
  {
2868
2767
  "kind": "field",
@@ -2976,320 +2875,188 @@
2976
2875
  }
2977
2876
  }
2978
2877
  ],
2979
- "events": [
2878
+ "attributes": [
2980
2879
  {
2981
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2982
- "name": "criteria-changed"
2880
+ "name": "is-vertical",
2881
+ "type": {
2882
+ "text": "boolean"
2883
+ },
2884
+ "default": "false",
2885
+ "fieldName": "isVertical"
2983
2886
  },
2984
2887
  {
2985
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2986
- "name": "validation-errors"
2987
- }
2988
- ],
2989
- "attributes": [
2888
+ "name": "add-default-actions",
2889
+ "type": {
2890
+ "text": "boolean"
2891
+ },
2892
+ "default": "true",
2893
+ "fieldName": "addDefaultActions"
2894
+ },
2990
2895
  {
2991
- "name": "placeholder",
2896
+ "name": "auto-close-on-action",
2897
+ "type": {
2898
+ "text": "boolean"
2899
+ },
2900
+ "default": "true",
2901
+ "fieldName": "autoCloseOnAction"
2902
+ },
2903
+ {
2904
+ "name": "name",
2992
2905
  "type": {
2993
2906
  "text": "string"
2994
2907
  },
2995
- "default": "'Describe your search criteria in natural language...'",
2996
- "fieldName": "placeholder"
2908
+ "default": "'Actions'",
2909
+ "fieldName": "name"
2997
2910
  },
2998
2911
  {
2912
+ "name": "open",
2999
2913
  "type": {
3000
2914
  "text": "boolean"
3001
2915
  },
3002
- "fieldName": "disabled"
2916
+ "default": "false",
2917
+ "fieldName": "open"
2918
+ },
2919
+ {
2920
+ "name": "buttonAppearance",
2921
+ "type": {
2922
+ "text": "string"
2923
+ },
2924
+ "fieldName": "buttonAppearance"
2925
+ },
2926
+ {
2927
+ "name": "hide-disabled",
2928
+ "type": {
2929
+ "text": "boolean"
2930
+ },
2931
+ "default": "false",
2932
+ "fieldName": "hideDisabled"
2933
+ },
2934
+ {
2935
+ "name": "hide-menu-single-option",
2936
+ "type": {
2937
+ "text": "boolean"
2938
+ },
2939
+ "default": "false",
2940
+ "fieldName": "hideMenuSingleOption"
3003
2941
  }
3004
2942
  ],
3005
2943
  "superclass": {
3006
2944
  "name": "FoundationElement",
3007
2945
  "package": "@microsoft/fast-foundation"
3008
2946
  },
3009
- "tagName": "%%prefix%%-ai-criteria-search",
2947
+ "tagName": "%%prefix%%-actions-menu",
3010
2948
  "customElement": true
3011
2949
  },
3012
2950
  {
3013
2951
  "kind": "variable",
3014
- "name": "foundationAiCriteriaSearchShadowOptions",
3015
- "type": {
3016
- "text": "ShadowRootInit"
3017
- },
3018
- "default": "undefined"
3019
- },
3020
- {
3021
- "kind": "variable",
3022
- "name": "defaultAiCriteriaSearchConfig",
3023
- "type": {
3024
- "text": "object"
3025
- },
3026
- "default": "{}"
3027
- },
3028
- {
3029
- "kind": "variable",
3030
- "name": "foundationAiCriteriaSearch"
2952
+ "name": "foundationActionsMenu",
2953
+ "description": "The Foundation Actions Menu",
2954
+ "privacy": "public"
3031
2955
  }
3032
2956
  ],
3033
2957
  "exports": [
3034
2958
  {
3035
2959
  "kind": "js",
3036
- "name": "AiCriteriaSearch",
3037
- "declaration": {
3038
- "name": "AiCriteriaSearch",
3039
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3040
- }
3041
- },
3042
- {
3043
- "kind": "js",
3044
- "name": "foundationAiCriteriaSearchShadowOptions",
3045
- "declaration": {
3046
- "name": "foundationAiCriteriaSearchShadowOptions",
3047
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3048
- }
3049
- },
3050
- {
3051
- "kind": "js",
3052
- "name": "defaultAiCriteriaSearchConfig",
2960
+ "name": "ActionsMenu",
3053
2961
  "declaration": {
3054
- "name": "defaultAiCriteriaSearchConfig",
3055
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2962
+ "name": "ActionsMenu",
2963
+ "module": "src/actions-menu/actions-menu.ts"
3056
2964
  }
3057
2965
  },
3058
2966
  {
3059
2967
  "kind": "js",
3060
- "name": "foundationAiCriteriaSearch",
2968
+ "name": "foundationActionsMenu",
3061
2969
  "declaration": {
3062
- "name": "foundationAiCriteriaSearch",
3063
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2970
+ "name": "foundationActionsMenu",
2971
+ "module": "src/actions-menu/actions-menu.ts"
3064
2972
  }
3065
2973
  }
3066
2974
  ]
3067
2975
  },
3068
2976
  {
3069
2977
  "kind": "javascript-module",
3070
- "path": "src/ai-criteria-search/index.ts",
2978
+ "path": "src/actions-menu/index.ts",
3071
2979
  "declarations": [],
3072
2980
  "exports": [
3073
- {
3074
- "kind": "js",
3075
- "name": "AiCriteriaSearch",
3076
- "declaration": {
3077
- "name": "AiCriteriaSearch",
3078
- "module": "./ai-criteria-search"
3079
- }
3080
- },
3081
- {
3082
- "kind": "js",
3083
- "name": "defaultAiCriteriaSearchConfig",
3084
- "declaration": {
3085
- "name": "defaultAiCriteriaSearchConfig",
3086
- "module": "./ai-criteria-search"
3087
- }
3088
- },
3089
- {
3090
- "kind": "js",
3091
- "name": "foundationAiCriteriaSearch",
3092
- "declaration": {
3093
- "name": "foundationAiCriteriaSearch",
3094
- "module": "./ai-criteria-search"
3095
- }
3096
- },
3097
- {
3098
- "kind": "js",
3099
- "name": "foundationAiCriteriaSearchShadowOptions",
3100
- "declaration": {
3101
- "name": "foundationAiCriteriaSearchShadowOptions",
3102
- "module": "./ai-criteria-search"
3103
- }
3104
- },
3105
- {
3106
- "kind": "js",
3107
- "name": "foundationAiCriteriaSearchStyles",
3108
- "declaration": {
3109
- "name": "foundationAiCriteriaSearchStyles",
3110
- "module": "./ai-criteria-search.styles"
3111
- }
3112
- },
3113
- {
3114
- "kind": "js",
3115
- "name": "foundationAiCriteriaSearchTemplate",
3116
- "declaration": {
3117
- "name": "foundationAiCriteriaSearchTemplate",
3118
- "module": "./ai-criteria-search.template"
3119
- }
3120
- },
3121
- {
3122
- "kind": "js",
3123
- "name": "*",
3124
- "declaration": {
3125
- "name": "*",
3126
- "package": "./validation/criteria-ir"
3127
- }
3128
- },
3129
- {
3130
- "kind": "js",
3131
- "name": "*",
3132
- "declaration": {
3133
- "name": "*",
3134
- "package": "./validation/operator-map"
3135
- }
3136
- },
3137
2981
  {
3138
2982
  "kind": "js",
3139
2983
  "name": "*",
3140
2984
  "declaration": {
3141
2985
  "name": "*",
3142
- "package": "./validation/schema-validator"
2986
+ "package": "./actions-menu.styles"
3143
2987
  }
3144
- }
3145
- ]
3146
- },
3147
- {
3148
- "kind": "javascript-module",
3149
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3150
- "declarations": [
3151
- {
3152
- "kind": "function",
3153
- "name": "formatValidationErrors",
3154
- "return": {
3155
- "type": {
3156
- "text": "string"
3157
- }
3158
- },
3159
- "parameters": [
3160
- {
3161
- "name": "errors",
3162
- "type": {
3163
- "text": "ValidationError[]"
3164
- }
3165
- }
3166
- ],
3167
- "description": "Formats validation errors into a user-friendly message."
3168
- },
3169
- {
3170
- "kind": "function",
3171
- "name": "showCriteriaError",
3172
- "return": {
3173
- "type": {
3174
- "text": "void"
3175
- }
3176
- },
3177
- "parameters": [
3178
- {
3179
- "name": "title",
3180
- "type": {
3181
- "text": "string"
3182
- },
3183
- "description": "Notification title (e.g. \"Criteria validation error\")"
3184
- },
3185
- {
3186
- "name": "body",
3187
- "type": {
3188
- "text": "string"
3189
- },
3190
- "description": "Error message to display"
3191
- },
3192
- {
3193
- "name": "tagName",
3194
- "type": {
3195
- "text": "string"
3196
- },
3197
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3198
- }
3199
- ],
3200
- "description": "Shows a criteria error as a toast notification."
3201
- }
3202
- ],
3203
- "exports": [
2988
+ },
3204
2989
  {
3205
2990
  "kind": "js",
3206
- "name": "formatValidationErrors",
2991
+ "name": "*",
3207
2992
  "declaration": {
3208
- "name": "formatValidationErrors",
3209
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2993
+ "name": "*",
2994
+ "package": "./actions-menu.template"
3210
2995
  }
3211
2996
  },
3212
2997
  {
3213
2998
  "kind": "js",
3214
- "name": "showCriteriaError",
2999
+ "name": "*",
3215
3000
  "declaration": {
3216
- "name": "showCriteriaError",
3217
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3001
+ "name": "*",
3002
+ "package": "./actions-menu"
3218
3003
  }
3219
3004
  }
3220
3005
  ]
3221
3006
  },
3222
3007
  {
3223
3008
  "kind": "javascript-module",
3224
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3009
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3225
3010
  "declarations": [
3226
3011
  {
3227
- "kind": "function",
3228
- "name": "foundationAiIndicatorStyles",
3229
- "return": {
3230
- "type": {
3231
- "text": "ElementStyles"
3232
- }
3233
- },
3234
- "parameters": [
3235
- {
3236
- "name": "context",
3237
- "type": {
3238
- "text": "ElementDefinitionContext"
3239
- }
3240
- },
3241
- {
3242
- "name": "definition",
3243
- "type": {
3244
- "text": "FoundationElementDefinition"
3245
- }
3246
- }
3247
- ]
3012
+ "kind": "variable",
3013
+ "name": "foundationAiCriteriaSearchStyles",
3014
+ "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
3248
3015
  }
3249
3016
  ],
3250
3017
  "exports": [
3251
3018
  {
3252
3019
  "kind": "js",
3253
- "name": "foundationAiIndicatorStyles",
3020
+ "name": "foundationAiCriteriaSearchStyles",
3254
3021
  "declaration": {
3255
- "name": "foundationAiIndicatorStyles",
3256
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3022
+ "name": "foundationAiCriteriaSearchStyles",
3023
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3257
3024
  }
3258
3025
  }
3259
3026
  ]
3260
3027
  },
3261
3028
  {
3262
3029
  "kind": "javascript-module",
3263
- "path": "src/ai-indicator/ai-indicator.template.ts",
3030
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3264
3031
  "declarations": [
3265
3032
  {
3266
3033
  "kind": "variable",
3267
- "name": "foundationAiIndicatorTemplate",
3034
+ "name": "foundationAiCriteriaSearchTemplate",
3268
3035
  "type": {
3269
- "text": "ViewTemplate<AiIndicator>"
3036
+ "text": "ViewTemplate<AiCriteriaSearch>"
3270
3037
  },
3271
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3038
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3272
3039
  }
3273
3040
  ],
3274
3041
  "exports": [
3275
3042
  {
3276
3043
  "kind": "js",
3277
- "name": "foundationAiIndicatorTemplate",
3044
+ "name": "foundationAiCriteriaSearchTemplate",
3278
3045
  "declaration": {
3279
- "name": "foundationAiIndicatorTemplate",
3280
- "module": "src/ai-indicator/ai-indicator.template.ts"
3046
+ "name": "foundationAiCriteriaSearchTemplate",
3047
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3281
3048
  }
3282
3049
  }
3283
3050
  ]
3284
3051
  },
3285
3052
  {
3286
3053
  "kind": "javascript-module",
3287
- "path": "src/ai-indicator/ai-indicator.ts",
3054
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3288
3055
  "declarations": [
3289
3056
  {
3290
3057
  "kind": "class",
3291
- "description": "",
3292
- "name": "AiIndicator",
3058
+ "description": "Natural-language criteria search input with AI interpretation.",
3059
+ "name": "AiCriteriaSearch",
3293
3060
  "members": [
3294
3061
  {
3295
3062
  "kind": "field",
@@ -3300,25 +3067,54 @@
3300
3067
  },
3301
3068
  {
3302
3069
  "kind": "field",
3303
- "name": "aiProvider",
3070
+ "name": "placeholder",
3304
3071
  "type": {
3305
- "text": "AIProvider | undefined"
3072
+ "text": "string"
3306
3073
  },
3307
- "privacy": "private",
3308
- "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3309
- "readonly": true
3074
+ "default": "'Describe your search criteria in natural language...'"
3310
3075
  },
3311
3076
  {
3312
3077
  "kind": "field",
3313
- "name": "status",
3078
+ "name": "disabled",
3314
3079
  "type": {
3315
- "text": "AIStatus | null"
3080
+ "text": "boolean"
3081
+ }
3082
+ },
3083
+ {
3084
+ "kind": "field",
3085
+ "name": "inputValue",
3086
+ "type": {
3087
+ "text": "string"
3088
+ },
3089
+ "default": "''"
3090
+ },
3091
+ {
3092
+ "kind": "field",
3093
+ "name": "isInterpreting",
3094
+ "type": {
3095
+ "text": "boolean"
3096
+ },
3097
+ "default": "false"
3098
+ },
3099
+ {
3100
+ "kind": "field",
3101
+ "name": "lastValidCriteria",
3102
+ "type": {
3103
+ "text": "string | null"
3316
3104
  },
3317
3105
  "default": "null"
3318
3106
  },
3319
3107
  {
3320
3108
  "kind": "field",
3321
- "name": "open",
3109
+ "name": "activeGroups",
3110
+ "type": {
3111
+ "text": "CriteriaGroup[]"
3112
+ },
3113
+ "default": "[]"
3114
+ },
3115
+ {
3116
+ "kind": "field",
3117
+ "name": "showingChips",
3322
3118
  "type": {
3323
3119
  "text": "boolean"
3324
3120
  },
@@ -3326,15 +3122,15 @@
3326
3122
  },
3327
3123
  {
3328
3124
  "kind": "field",
3329
- "name": "state",
3125
+ "name": "fieldMetadata",
3330
3126
  "type": {
3331
- "text": "AIIndicatorState"
3127
+ "text": "MetadataDetail[] | string[]"
3332
3128
  },
3333
- "default": "'none'"
3129
+ "default": "[]"
3334
3130
  },
3335
3131
  {
3336
3132
  "kind": "field",
3337
- "name": "isInstalling",
3133
+ "name": "isRecording",
3338
3134
  "type": {
3339
3135
  "text": "boolean"
3340
3136
  },
@@ -3342,29 +3138,33 @@
3342
3138
  },
3343
3139
  {
3344
3140
  "kind": "field",
3345
- "name": "pollTimer",
3141
+ "name": "textAreaRef",
3346
3142
  "type": {
3347
- "text": "ReturnType<typeof setInterval> | null"
3143
+ "text": "HTMLTextAreaElement"
3348
3144
  },
3349
- "privacy": "private",
3350
- "default": "null"
3145
+ "privacy": "public"
3351
3146
  },
3352
3147
  {
3353
3148
  "kind": "field",
3354
- "name": "clickOutside",
3355
- "privacy": "private"
3149
+ "name": "stopRecording",
3150
+ "type": {
3151
+ "text": "(() => void) | null"
3152
+ },
3153
+ "privacy": "private",
3154
+ "default": "null"
3356
3155
  },
3357
3156
  {
3358
3157
  "kind": "field",
3359
- "name": "chromeStatusLabel",
3158
+ "name": "speechApplyDebounceTimer",
3360
3159
  "type": {
3361
- "text": "string | null"
3160
+ "text": "ReturnType<typeof setTimeout> | null"
3362
3161
  },
3363
- "readonly": true
3162
+ "privacy": "private",
3163
+ "default": "null"
3364
3164
  },
3365
3165
  {
3366
3166
  "kind": "field",
3367
- "name": "canInstall",
3167
+ "name": "speechAvailable",
3368
3168
  "type": {
3369
3169
  "text": "boolean"
3370
3170
  },
@@ -3372,69 +3172,65 @@
3372
3172
  },
3373
3173
  {
3374
3174
  "kind": "field",
3375
- "name": "isDownloading",
3175
+ "name": "criteriaChips",
3376
3176
  "type": {
3377
- "text": "boolean"
3177
+ "text": "CriteriaChip[]"
3378
3178
  },
3379
3179
  "readonly": true
3380
3180
  },
3381
3181
  {
3382
3182
  "kind": "method",
3383
- "name": "openChanged",
3183
+ "name": "getFieldLabel",
3184
+ "privacy": "private",
3384
3185
  "return": {
3385
3186
  "type": {
3386
- "text": "void"
3187
+ "text": "string"
3387
3188
  }
3388
- }
3389
- },
3390
- {
3391
- "kind": "method",
3392
- "name": "handleClickOutside",
3393
- "privacy": "private",
3189
+ },
3394
3190
  "parameters": [
3395
3191
  {
3396
- "name": "event",
3192
+ "name": "fieldName",
3397
3193
  "type": {
3398
- "text": "MouseEvent"
3194
+ "text": "string"
3399
3195
  }
3400
3196
  }
3401
3197
  ]
3402
3198
  },
3403
3199
  {
3404
3200
  "kind": "method",
3405
- "name": "toggleDropdown"
3406
- },
3407
- {
3408
- "kind": "method",
3409
- "name": "refreshStatus",
3201
+ "name": "toggleCriteriaView",
3410
3202
  "return": {
3411
3203
  "type": {
3412
- "text": "Promise<void>"
3204
+ "text": "void"
3413
3205
  }
3414
3206
  }
3415
3207
  },
3416
3208
  {
3417
3209
  "kind": "method",
3418
- "name": "deriveState",
3419
- "privacy": "private",
3210
+ "name": "removeChip",
3420
3211
  "return": {
3421
3212
  "type": {
3422
- "text": "AIIndicatorState"
3213
+ "text": "void"
3423
3214
  }
3424
3215
  },
3425
3216
  "parameters": [
3426
3217
  {
3427
- "name": "s",
3218
+ "name": "groupIndex",
3428
3219
  "type": {
3429
- "text": "AIStatus | null"
3220
+ "text": "number"
3221
+ }
3222
+ },
3223
+ {
3224
+ "name": "clauseIndex",
3225
+ "type": {
3226
+ "text": "number"
3430
3227
  }
3431
3228
  }
3432
3229
  ]
3433
3230
  },
3434
3231
  {
3435
3232
  "kind": "method",
3436
- "name": "maybeStartPolling",
3437
- "privacy": "private",
3233
+ "name": "clearChips",
3438
3234
  "return": {
3439
3235
  "type": {
3440
3236
  "text": "void"
@@ -3443,32 +3239,24 @@
3443
3239
  },
3444
3240
  {
3445
3241
  "kind": "method",
3446
- "name": "startPolling",
3447
- "privacy": "private",
3448
- "return": {
3449
- "type": {
3450
- "text": "void"
3451
- }
3452
- }
3242
+ "name": "handleSubmit"
3453
3243
  },
3454
3244
  {
3455
3245
  "kind": "method",
3456
- "name": "stopPolling",
3457
- "privacy": "private",
3458
- "return": {
3459
- "type": {
3460
- "text": "void"
3461
- }
3462
- }
3246
+ "name": "handleBlur"
3463
3247
  },
3464
3248
  {
3465
3249
  "kind": "method",
3466
- "name": "onInstall",
3467
- "return": {
3468
- "type": {
3469
- "text": "Promise<void>"
3470
- }
3471
- }
3250
+ "name": "clear"
3251
+ },
3252
+ {
3253
+ "kind": "method",
3254
+ "name": "toggleSpeechInput"
3255
+ },
3256
+ {
3257
+ "kind": "method",
3258
+ "name": "clearSpeechApplyDebounce",
3259
+ "privacy": "private"
3472
3260
  },
3473
3261
  {
3474
3262
  "kind": "field",
@@ -3582,141 +3370,259 @@
3582
3370
  }
3583
3371
  }
3584
3372
  ],
3373
+ "events": [
3374
+ {
3375
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3376
+ "name": "criteria-changed"
3377
+ },
3378
+ {
3379
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3380
+ "name": "validation-errors"
3381
+ }
3382
+ ],
3383
+ "attributes": [
3384
+ {
3385
+ "name": "placeholder",
3386
+ "type": {
3387
+ "text": "string"
3388
+ },
3389
+ "default": "'Describe your search criteria in natural language...'",
3390
+ "fieldName": "placeholder"
3391
+ },
3392
+ {
3393
+ "type": {
3394
+ "text": "boolean"
3395
+ },
3396
+ "fieldName": "disabled"
3397
+ }
3398
+ ],
3585
3399
  "superclass": {
3586
3400
  "name": "FoundationElement",
3587
3401
  "package": "@microsoft/fast-foundation"
3588
3402
  },
3589
- "tagName": "%%prefix%%-ai-indicator",
3590
- "customElement": true
3403
+ "tagName": "%%prefix%%-ai-criteria-search",
3404
+ "customElement": true
3405
+ },
3406
+ {
3407
+ "kind": "variable",
3408
+ "name": "foundationAiCriteriaSearchShadowOptions",
3409
+ "type": {
3410
+ "text": "ShadowRootInit"
3411
+ },
3412
+ "default": "undefined"
3413
+ },
3414
+ {
3415
+ "kind": "variable",
3416
+ "name": "defaultAiCriteriaSearchConfig",
3417
+ "type": {
3418
+ "text": "object"
3419
+ },
3420
+ "default": "{}"
3591
3421
  },
3592
3422
  {
3593
3423
  "kind": "variable",
3594
- "name": "foundationAiIndicator"
3424
+ "name": "foundationAiCriteriaSearch"
3595
3425
  }
3596
3426
  ],
3597
3427
  "exports": [
3598
3428
  {
3599
3429
  "kind": "js",
3600
- "name": "AiIndicator",
3430
+ "name": "AiCriteriaSearch",
3601
3431
  "declaration": {
3602
- "name": "AiIndicator",
3603
- "module": "src/ai-indicator/ai-indicator.ts"
3432
+ "name": "AiCriteriaSearch",
3433
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3604
3434
  }
3605
3435
  },
3606
3436
  {
3607
3437
  "kind": "js",
3608
- "name": "foundationAiIndicator",
3438
+ "name": "foundationAiCriteriaSearchShadowOptions",
3609
3439
  "declaration": {
3610
- "name": "foundationAiIndicator",
3611
- "module": "src/ai-indicator/ai-indicator.ts"
3440
+ "name": "foundationAiCriteriaSearchShadowOptions",
3441
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3442
+ }
3443
+ },
3444
+ {
3445
+ "kind": "js",
3446
+ "name": "defaultAiCriteriaSearchConfig",
3447
+ "declaration": {
3448
+ "name": "defaultAiCriteriaSearchConfig",
3449
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3450
+ }
3451
+ },
3452
+ {
3453
+ "kind": "js",
3454
+ "name": "foundationAiCriteriaSearch",
3455
+ "declaration": {
3456
+ "name": "foundationAiCriteriaSearch",
3457
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3612
3458
  }
3613
3459
  }
3614
3460
  ]
3615
3461
  },
3616
3462
  {
3617
3463
  "kind": "javascript-module",
3618
- "path": "src/ai-indicator/index.ts",
3464
+ "path": "src/ai-criteria-search/index.ts",
3619
3465
  "declarations": [],
3620
3466
  "exports": [
3621
3467
  {
3622
3468
  "kind": "js",
3623
- "name": "AiIndicator",
3469
+ "name": "AiCriteriaSearch",
3624
3470
  "declaration": {
3625
- "name": "AiIndicator",
3626
- "module": "./ai-indicator"
3471
+ "name": "AiCriteriaSearch",
3472
+ "module": "./ai-criteria-search"
3627
3473
  }
3628
3474
  },
3629
3475
  {
3630
3476
  "kind": "js",
3631
- "name": "foundationAiIndicator",
3477
+ "name": "defaultAiCriteriaSearchConfig",
3632
3478
  "declaration": {
3633
- "name": "foundationAiIndicator",
3634
- "module": "./ai-indicator"
3479
+ "name": "defaultAiCriteriaSearchConfig",
3480
+ "module": "./ai-criteria-search"
3635
3481
  }
3636
3482
  },
3637
3483
  {
3638
3484
  "kind": "js",
3639
- "name": "type",
3485
+ "name": "foundationAiCriteriaSearch",
3640
3486
  "declaration": {
3641
- "name": "type",
3642
- "module": "./ai-indicator"
3487
+ "name": "foundationAiCriteriaSearch",
3488
+ "module": "./ai-criteria-search"
3643
3489
  }
3644
3490
  },
3645
3491
  {
3646
3492
  "kind": "js",
3647
- "name": "AIIndicatorState",
3493
+ "name": "foundationAiCriteriaSearchShadowOptions",
3648
3494
  "declaration": {
3649
- "name": "AIIndicatorState",
3650
- "module": "./ai-indicator"
3495
+ "name": "foundationAiCriteriaSearchShadowOptions",
3496
+ "module": "./ai-criteria-search"
3651
3497
  }
3652
3498
  },
3653
3499
  {
3654
3500
  "kind": "js",
3655
- "name": "foundationAiIndicatorTemplate",
3501
+ "name": "foundationAiCriteriaSearchStyles",
3656
3502
  "declaration": {
3657
- "name": "foundationAiIndicatorTemplate",
3658
- "module": "./ai-indicator.template"
3503
+ "name": "foundationAiCriteriaSearchStyles",
3504
+ "module": "./ai-criteria-search.styles"
3659
3505
  }
3660
3506
  },
3661
3507
  {
3662
3508
  "kind": "js",
3663
- "name": "foundationAiIndicatorStyles",
3509
+ "name": "foundationAiCriteriaSearchTemplate",
3664
3510
  "declaration": {
3665
- "name": "foundationAiIndicatorStyles",
3666
- "module": "./ai-indicator.styles"
3511
+ "name": "foundationAiCriteriaSearchTemplate",
3512
+ "module": "./ai-criteria-search.template"
3513
+ }
3514
+ },
3515
+ {
3516
+ "kind": "js",
3517
+ "name": "*",
3518
+ "declaration": {
3519
+ "name": "*",
3520
+ "package": "./validation/criteria-ir"
3521
+ }
3522
+ },
3523
+ {
3524
+ "kind": "js",
3525
+ "name": "*",
3526
+ "declaration": {
3527
+ "name": "*",
3528
+ "package": "./validation/operator-map"
3529
+ }
3530
+ },
3531
+ {
3532
+ "kind": "js",
3533
+ "name": "*",
3534
+ "declaration": {
3535
+ "name": "*",
3536
+ "package": "./validation/schema-validator"
3667
3537
  }
3668
3538
  }
3669
3539
  ]
3670
3540
  },
3671
3541
  {
3672
3542
  "kind": "javascript-module",
3673
- "path": "src/accordion-item/accordion-item.styles.ts",
3543
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3674
3544
  "declarations": [
3675
3545
  {
3676
3546
  "kind": "function",
3677
- "name": "foundationAccordionItemStyles",
3547
+ "name": "formatValidationErrors",
3678
3548
  "return": {
3679
3549
  "type": {
3680
- "text": "ElementStyles"
3550
+ "text": "string"
3681
3551
  }
3682
3552
  },
3683
3553
  "parameters": [
3684
3554
  {
3685
- "name": "context",
3555
+ "name": "errors",
3686
3556
  "type": {
3687
- "text": "ElementDefinitionContext"
3557
+ "text": "ValidationError[]"
3688
3558
  }
3559
+ }
3560
+ ],
3561
+ "description": "Formats validation errors into a user-friendly message."
3562
+ },
3563
+ {
3564
+ "kind": "function",
3565
+ "name": "showCriteriaError",
3566
+ "return": {
3567
+ "type": {
3568
+ "text": "void"
3569
+ }
3570
+ },
3571
+ "parameters": [
3572
+ {
3573
+ "name": "title",
3574
+ "type": {
3575
+ "text": "string"
3576
+ },
3577
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3689
3578
  },
3690
3579
  {
3691
- "name": "definition",
3580
+ "name": "body",
3692
3581
  "type": {
3693
- "text": "FoundationElementDefinition"
3694
- }
3582
+ "text": "string"
3583
+ },
3584
+ "description": "Error message to display"
3585
+ },
3586
+ {
3587
+ "name": "tagName",
3588
+ "type": {
3589
+ "text": "string"
3590
+ },
3591
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3695
3592
  }
3696
- ]
3593
+ ],
3594
+ "description": "Shows a criteria error as a toast notification."
3697
3595
  }
3698
3596
  ],
3699
3597
  "exports": [
3700
3598
  {
3701
3599
  "kind": "js",
3702
- "name": "foundationAccordionItemStyles",
3600
+ "name": "formatValidationErrors",
3703
3601
  "declaration": {
3704
- "name": "foundationAccordionItemStyles",
3705
- "module": "src/accordion-item/accordion-item.styles.ts"
3602
+ "name": "formatValidationErrors",
3603
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3604
+ }
3605
+ },
3606
+ {
3607
+ "kind": "js",
3608
+ "name": "showCriteriaError",
3609
+ "declaration": {
3610
+ "name": "showCriteriaError",
3611
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3706
3612
  }
3707
3613
  }
3708
3614
  ]
3709
3615
  },
3710
3616
  {
3711
3617
  "kind": "javascript-module",
3712
- "path": "src/accordion-item/accordion-item.template.ts",
3618
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3713
3619
  "declarations": [
3714
3620
  {
3715
3621
  "kind": "function",
3716
- "name": "foundationAccordionItemTemplate",
3622
+ "name": "foundationAiIndicatorStyles",
3717
3623
  "return": {
3718
3624
  "type": {
3719
- "text": "ViewTemplate<AccordionItem>"
3625
+ "text": "ElementStyles"
3720
3626
  }
3721
3627
  },
3722
3628
  "parameters": [
@@ -3738,116 +3644,224 @@
3738
3644
  "exports": [
3739
3645
  {
3740
3646
  "kind": "js",
3741
- "name": "foundationAccordionItemTemplate",
3647
+ "name": "foundationAiIndicatorStyles",
3742
3648
  "declaration": {
3743
- "name": "foundationAccordionItemTemplate",
3744
- "module": "src/accordion-item/accordion-item.template.ts"
3649
+ "name": "foundationAiIndicatorStyles",
3650
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3745
3651
  }
3746
3652
  }
3747
3653
  ]
3748
3654
  },
3749
3655
  {
3750
3656
  "kind": "javascript-module",
3751
- "path": "src/accordion-item/accordion-item.ts",
3657
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3658
+ "declarations": [
3659
+ {
3660
+ "kind": "variable",
3661
+ "name": "foundationAiIndicatorTemplate",
3662
+ "type": {
3663
+ "text": "ViewTemplate<AiIndicator>"
3664
+ },
3665
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3666
+ }
3667
+ ],
3668
+ "exports": [
3669
+ {
3670
+ "kind": "js",
3671
+ "name": "foundationAiIndicatorTemplate",
3672
+ "declaration": {
3673
+ "name": "foundationAiIndicatorTemplate",
3674
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3675
+ }
3676
+ }
3677
+ ]
3678
+ },
3679
+ {
3680
+ "kind": "javascript-module",
3681
+ "path": "src/ai-indicator/ai-indicator.ts",
3752
3682
  "declarations": [
3753
3683
  {
3754
3684
  "kind": "class",
3755
3685
  "description": "",
3756
- "name": "AccordionItem",
3757
- "superclass": {
3758
- "name": "FASTAccordionItem",
3759
- "package": "@microsoft/fast-components"
3760
- },
3761
- "tagName": "%%prefix%%-accordion-item",
3762
- "customElement": true,
3763
- "attributes": [
3686
+ "name": "AiIndicator",
3687
+ "members": [
3764
3688
  {
3765
- "name": "heading-level",
3689
+ "kind": "field",
3690
+ "name": "providerRegistry",
3766
3691
  "type": {
3767
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3768
- },
3769
- "default": "2",
3770
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
3771
- "fieldName": "headinglevel",
3772
- "inheritedFrom": {
3773
- "name": "AccordionItem",
3774
- "module": "src/accordion-item/accordion-item.ts"
3692
+ "text": "AIProviderRegistry"
3775
3693
  }
3776
3694
  },
3777
3695
  {
3696
+ "kind": "field",
3697
+ "name": "aiProvider",
3698
+ "type": {
3699
+ "text": "AIProvider | undefined"
3700
+ },
3701
+ "privacy": "private",
3702
+ "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.",
3703
+ "readonly": true
3704
+ },
3705
+ {
3706
+ "kind": "field",
3707
+ "name": "status",
3708
+ "type": {
3709
+ "text": "AIStatus | null"
3710
+ },
3711
+ "default": "null"
3712
+ },
3713
+ {
3714
+ "kind": "field",
3715
+ "name": "open",
3716
+ "type": {
3717
+ "text": "boolean"
3718
+ },
3719
+ "default": "false"
3720
+ },
3721
+ {
3722
+ "kind": "field",
3723
+ "name": "state",
3724
+ "type": {
3725
+ "text": "AIIndicatorState"
3726
+ },
3727
+ "default": "'none'"
3728
+ },
3729
+ {
3730
+ "kind": "field",
3731
+ "name": "isInstalling",
3778
3732
  "type": {
3779
3733
  "text": "boolean"
3780
3734
  },
3781
- "default": "false",
3782
- "description": "Expands or collapses the item.",
3783
- "fieldName": "expanded",
3784
- "inheritedFrom": {
3785
- "name": "AccordionItem",
3786
- "module": "src/accordion-item/accordion-item.ts"
3787
- }
3735
+ "default": "false"
3788
3736
  },
3789
3737
  {
3790
- "name": "id",
3738
+ "kind": "field",
3739
+ "name": "pollTimer",
3791
3740
  "type": {
3792
- "text": "string"
3741
+ "text": "ReturnType<typeof setInterval> | null"
3793
3742
  },
3794
- "description": "The item ID",
3795
- "fieldName": "id",
3796
- "inheritedFrom": {
3797
- "name": "AccordionItem",
3798
- "module": "src/accordion-item/accordion-item.ts"
3799
- }
3800
- }
3801
- ],
3802
- "members": [
3743
+ "privacy": "private",
3744
+ "default": "null"
3745
+ },
3803
3746
  {
3804
3747
  "kind": "field",
3805
- "name": "headinglevel",
3748
+ "name": "clickOutside",
3749
+ "privacy": "private"
3750
+ },
3751
+ {
3752
+ "kind": "field",
3753
+ "name": "chromeStatusLabel",
3806
3754
  "type": {
3807
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3755
+ "text": "string | null"
3808
3756
  },
3809
- "privacy": "public",
3810
- "default": "2",
3811
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
3812
- "inheritedFrom": {
3813
- "name": "AccordionItem",
3814
- "module": "src/accordion-item/accordion-item.ts"
3815
- }
3757
+ "readonly": true
3816
3758
  },
3817
3759
  {
3818
3760
  "kind": "field",
3819
- "name": "expanded",
3761
+ "name": "canInstall",
3820
3762
  "type": {
3821
3763
  "text": "boolean"
3822
3764
  },
3823
- "privacy": "public",
3824
- "default": "false",
3825
- "description": "Expands or collapses the item.",
3826
- "inheritedFrom": {
3827
- "name": "AccordionItem",
3828
- "module": "src/accordion-item/accordion-item.ts"
3829
- }
3765
+ "readonly": true
3830
3766
  },
3831
3767
  {
3832
3768
  "kind": "field",
3833
- "name": "id",
3769
+ "name": "isDownloading",
3834
3770
  "type": {
3835
- "text": "string"
3771
+ "text": "boolean"
3836
3772
  },
3837
- "privacy": "public",
3838
- "description": "The item ID",
3839
- "inheritedFrom": {
3840
- "name": "AccordionItem",
3841
- "module": "src/accordion-item/accordion-item.ts"
3773
+ "readonly": true
3774
+ },
3775
+ {
3776
+ "kind": "method",
3777
+ "name": "openChanged",
3778
+ "return": {
3779
+ "type": {
3780
+ "text": "void"
3781
+ }
3842
3782
  }
3843
3783
  },
3844
3784
  {
3845
- "kind": "field",
3846
- "name": "change",
3785
+ "kind": "method",
3786
+ "name": "handleClickOutside",
3847
3787
  "privacy": "private",
3848
- "inheritedFrom": {
3849
- "name": "AccordionItem",
3850
- "module": "src/accordion-item/accordion-item.ts"
3788
+ "parameters": [
3789
+ {
3790
+ "name": "event",
3791
+ "type": {
3792
+ "text": "MouseEvent"
3793
+ }
3794
+ }
3795
+ ]
3796
+ },
3797
+ {
3798
+ "kind": "method",
3799
+ "name": "toggleDropdown"
3800
+ },
3801
+ {
3802
+ "kind": "method",
3803
+ "name": "refreshStatus",
3804
+ "return": {
3805
+ "type": {
3806
+ "text": "Promise<void>"
3807
+ }
3808
+ }
3809
+ },
3810
+ {
3811
+ "kind": "method",
3812
+ "name": "deriveState",
3813
+ "privacy": "private",
3814
+ "return": {
3815
+ "type": {
3816
+ "text": "AIIndicatorState"
3817
+ }
3818
+ },
3819
+ "parameters": [
3820
+ {
3821
+ "name": "s",
3822
+ "type": {
3823
+ "text": "AIStatus | null"
3824
+ }
3825
+ }
3826
+ ]
3827
+ },
3828
+ {
3829
+ "kind": "method",
3830
+ "name": "maybeStartPolling",
3831
+ "privacy": "private",
3832
+ "return": {
3833
+ "type": {
3834
+ "text": "void"
3835
+ }
3836
+ }
3837
+ },
3838
+ {
3839
+ "kind": "method",
3840
+ "name": "startPolling",
3841
+ "privacy": "private",
3842
+ "return": {
3843
+ "type": {
3844
+ "text": "void"
3845
+ }
3846
+ }
3847
+ },
3848
+ {
3849
+ "kind": "method",
3850
+ "name": "stopPolling",
3851
+ "privacy": "private",
3852
+ "return": {
3853
+ "type": {
3854
+ "text": "void"
3855
+ }
3856
+ }
3857
+ },
3858
+ {
3859
+ "kind": "method",
3860
+ "name": "onInstall",
3861
+ "return": {
3862
+ "type": {
3863
+ "text": "Promise<void>"
3864
+ }
3851
3865
  }
3852
3866
  },
3853
3867
  {
@@ -3962,102 +3976,88 @@
3962
3976
  }
3963
3977
  }
3964
3978
  ],
3965
- "events": [
3966
- {
3967
- "description": "Fires a custom 'change' event when the button is invoked",
3968
- "name": "change",
3969
- "inheritedFrom": {
3970
- "name": "AccordionItem",
3971
- "module": "src/accordion-item/accordion-item.ts"
3972
- }
3973
- }
3974
- ]
3975
- },
3976
- {
3977
- "kind": "variable",
3978
- "name": "foundationAccordionItemShadowOptions",
3979
- "type": {
3980
- "text": "ShadowRootInit"
3981
- },
3982
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3983
- },
3984
- {
3985
- "kind": "variable",
3986
- "name": "defaultAccordionItemConfig",
3987
- "type": {
3988
- "text": "object"
3979
+ "superclass": {
3980
+ "name": "FoundationElement",
3981
+ "package": "@microsoft/fast-foundation"
3989
3982
  },
3990
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
3983
+ "tagName": "%%prefix%%-ai-indicator",
3984
+ "customElement": true
3991
3985
  },
3992
3986
  {
3993
3987
  "kind": "variable",
3994
- "name": "foundationAccordionItem",
3995
- "description": "The Foundation Accordion Item",
3996
- "privacy": "public"
3988
+ "name": "foundationAiIndicator"
3997
3989
  }
3998
3990
  ],
3999
3991
  "exports": [
4000
3992
  {
4001
3993
  "kind": "js",
4002
- "name": "AccordionItem",
3994
+ "name": "AiIndicator",
4003
3995
  "declaration": {
4004
- "name": "AccordionItem",
4005
- "module": "src/accordion-item/accordion-item.ts"
3996
+ "name": "AiIndicator",
3997
+ "module": "src/ai-indicator/ai-indicator.ts"
4006
3998
  }
4007
3999
  },
4008
4000
  {
4009
4001
  "kind": "js",
4010
- "name": "foundationAccordionItemShadowOptions",
4002
+ "name": "foundationAiIndicator",
4011
4003
  "declaration": {
4012
- "name": "foundationAccordionItemShadowOptions",
4013
- "module": "src/accordion-item/accordion-item.ts"
4004
+ "name": "foundationAiIndicator",
4005
+ "module": "src/ai-indicator/ai-indicator.ts"
4006
+ }
4007
+ }
4008
+ ]
4009
+ },
4010
+ {
4011
+ "kind": "javascript-module",
4012
+ "path": "src/ai-indicator/index.ts",
4013
+ "declarations": [],
4014
+ "exports": [
4015
+ {
4016
+ "kind": "js",
4017
+ "name": "AiIndicator",
4018
+ "declaration": {
4019
+ "name": "AiIndicator",
4020
+ "module": "./ai-indicator"
4014
4021
  }
4015
4022
  },
4016
4023
  {
4017
4024
  "kind": "js",
4018
- "name": "defaultAccordionItemConfig",
4025
+ "name": "foundationAiIndicator",
4019
4026
  "declaration": {
4020
- "name": "defaultAccordionItemConfig",
4021
- "module": "src/accordion-item/accordion-item.ts"
4027
+ "name": "foundationAiIndicator",
4028
+ "module": "./ai-indicator"
4022
4029
  }
4023
4030
  },
4024
4031
  {
4025
4032
  "kind": "js",
4026
- "name": "foundationAccordionItem",
4033
+ "name": "type",
4027
4034
  "declaration": {
4028
- "name": "foundationAccordionItem",
4029
- "module": "src/accordion-item/accordion-item.ts"
4035
+ "name": "type",
4036
+ "module": "./ai-indicator"
4030
4037
  }
4031
- }
4032
- ]
4033
- },
4034
- {
4035
- "kind": "javascript-module",
4036
- "path": "src/accordion-item/index.ts",
4037
- "declarations": [],
4038
- "exports": [
4038
+ },
4039
4039
  {
4040
4040
  "kind": "js",
4041
- "name": "*",
4041
+ "name": "AIIndicatorState",
4042
4042
  "declaration": {
4043
- "name": "*",
4044
- "package": "./accordion-item.template"
4043
+ "name": "AIIndicatorState",
4044
+ "module": "./ai-indicator"
4045
4045
  }
4046
4046
  },
4047
4047
  {
4048
4048
  "kind": "js",
4049
- "name": "*",
4049
+ "name": "foundationAiIndicatorTemplate",
4050
4050
  "declaration": {
4051
- "name": "*",
4052
- "package": "./accordion-item.styles"
4051
+ "name": "foundationAiIndicatorTemplate",
4052
+ "module": "./ai-indicator.template"
4053
4053
  }
4054
4054
  },
4055
4055
  {
4056
4056
  "kind": "js",
4057
- "name": "*",
4057
+ "name": "foundationAiIndicatorStyles",
4058
4058
  "declaration": {
4059
- "name": "*",
4060
- "package": "./accordion-item"
4059
+ "name": "foundationAiIndicatorStyles",
4060
+ "module": "./ai-indicator.styles"
4061
4061
  }
4062
4062
  }
4063
4063
  ]