@genesislcap/foundation-ui 15.92.1 → 15.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1920,11 +1920,11 @@
1920
1920
  },
1921
1921
  {
1922
1922
  "kind": "javascript-module",
1923
- "path": "src/accordion/accordion.styles.ts",
1923
+ "path": "src/actions-menu/actions-menu.styles.ts",
1924
1924
  "declarations": [
1925
1925
  {
1926
1926
  "kind": "function",
1927
- "name": "foundationAccordionStyles",
1927
+ "name": "actionsMenuBaseStyles",
1928
1928
  "return": {
1929
1929
  "type": {
1930
1930
  "text": "ElementStyles"
@@ -1944,29 +1944,13 @@
1944
1944
  }
1945
1945
  }
1946
1946
  ]
1947
- }
1948
- ],
1949
- "exports": [
1950
- {
1951
- "kind": "js",
1952
- "name": "foundationAccordionStyles",
1953
- "declaration": {
1954
- "name": "foundationAccordionStyles",
1955
- "module": "src/accordion/accordion.styles.ts"
1956
- }
1957
- }
1958
- ]
1959
- },
1960
- {
1961
- "kind": "javascript-module",
1962
- "path": "src/accordion/accordion.template.ts",
1963
- "declarations": [
1947
+ },
1964
1948
  {
1965
1949
  "kind": "function",
1966
- "name": "foundationAccordionTemplate",
1950
+ "name": "foundationActionsMenuStyles",
1967
1951
  "return": {
1968
1952
  "type": {
1969
- "text": "ViewTemplate<Accordion>"
1953
+ "text": "ElementStyles"
1970
1954
  }
1971
1955
  },
1972
1956
  "parameters": [
@@ -1988,238 +1972,376 @@
1988
1972
  "exports": [
1989
1973
  {
1990
1974
  "kind": "js",
1991
- "name": "foundationAccordionTemplate",
1975
+ "name": "actionsMenuBaseStyles",
1992
1976
  "declaration": {
1993
- "name": "foundationAccordionTemplate",
1994
- "module": "src/accordion/accordion.template.ts"
1977
+ "name": "actionsMenuBaseStyles",
1978
+ "module": "src/actions-menu/actions-menu.styles.ts"
1979
+ }
1980
+ },
1981
+ {
1982
+ "kind": "js",
1983
+ "name": "foundationActionsMenuStyles",
1984
+ "declaration": {
1985
+ "name": "foundationActionsMenuStyles",
1986
+ "module": "src/actions-menu/actions-menu.styles.ts"
1995
1987
  }
1996
1988
  }
1997
1989
  ]
1998
1990
  },
1999
1991
  {
2000
1992
  "kind": "javascript-module",
2001
- "path": "src/accordion/accordion.ts",
1993
+ "path": "src/actions-menu/actions-menu.template.ts",
1994
+ "declarations": [
1995
+ {
1996
+ "kind": "variable",
1997
+ "name": "menuTemplate"
1998
+ },
1999
+ {
2000
+ "kind": "variable",
2001
+ "name": "singleOptionTemplate"
2002
+ },
2003
+ {
2004
+ "kind": "variable",
2005
+ "name": "foundationActionsMenuTemplate",
2006
+ "type": {
2007
+ "text": "ViewTemplate<ActionsMenu>"
2008
+ },
2009
+ "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`"
2010
+ }
2011
+ ],
2012
+ "exports": [
2013
+ {
2014
+ "kind": "js",
2015
+ "name": "menuTemplate",
2016
+ "declaration": {
2017
+ "name": "menuTemplate",
2018
+ "module": "src/actions-menu/actions-menu.template.ts"
2019
+ }
2020
+ },
2021
+ {
2022
+ "kind": "js",
2023
+ "name": "singleOptionTemplate",
2024
+ "declaration": {
2025
+ "name": "singleOptionTemplate",
2026
+ "module": "src/actions-menu/actions-menu.template.ts"
2027
+ }
2028
+ },
2029
+ {
2030
+ "kind": "js",
2031
+ "name": "foundationActionsMenuTemplate",
2032
+ "declaration": {
2033
+ "name": "foundationActionsMenuTemplate",
2034
+ "module": "src/actions-menu/actions-menu.template.ts"
2035
+ }
2036
+ }
2037
+ ]
2038
+ },
2039
+ {
2040
+ "kind": "javascript-module",
2041
+ "path": "src/actions-menu/actions-menu.ts",
2002
2042
  "declarations": [
2003
2043
  {
2004
2044
  "kind": "class",
2005
2045
  "description": "",
2006
- "name": "Accordion",
2007
- "superclass": {
2008
- "name": "FASTAccordion",
2009
- "package": "@microsoft/fast-foundation"
2010
- },
2011
- "tagName": "%%prefix%%-accordion",
2012
- "customElement": true,
2013
- "attributes": [
2046
+ "name": "ActionsMenu",
2047
+ "members": [
2014
2048
  {
2015
- "name": "expand-mode",
2049
+ "kind": "field",
2050
+ "name": "actions",
2016
2051
  "type": {
2017
- "text": "AccordionExpandMode"
2018
- },
2019
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2020
- "fieldName": "expandmode",
2021
- "inheritedFrom": {
2022
- "name": "Accordion",
2023
- "module": "src/accordion/accordion.ts"
2052
+ "text": "ActionMenuItem[]"
2024
2053
  }
2025
- }
2026
- ],
2027
- "members": [
2054
+ },
2028
2055
  {
2029
2056
  "kind": "field",
2030
- "name": "expandmode",
2057
+ "name": "actionsResolver",
2031
2058
  "type": {
2032
- "text": "AccordionExpandMode"
2059
+ "text": "ActionMenuItemsResolver | undefined"
2033
2060
  },
2034
- "privacy": "public",
2035
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2036
- "inheritedFrom": {
2037
- "name": "Accordion",
2038
- "module": "src/accordion/accordion.ts"
2039
- }
2061
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2040
2062
  },
2041
2063
  {
2042
2064
  "kind": "field",
2043
- "name": "activeid",
2065
+ "name": "isVertical",
2044
2066
  "type": {
2045
- "text": "string | null"
2067
+ "text": "boolean"
2046
2068
  },
2047
- "privacy": "private",
2048
- "inheritedFrom": {
2049
- "name": "Accordion",
2050
- "module": "src/accordion/accordion.ts"
2051
- }
2069
+ "default": "false"
2052
2070
  },
2053
2071
  {
2054
2072
  "kind": "field",
2055
- "name": "activeItemIndex",
2073
+ "name": "addDefaultActions",
2056
2074
  "type": {
2057
- "text": "number"
2075
+ "text": "boolean"
2058
2076
  },
2059
- "privacy": "private",
2060
- "default": "0",
2061
- "inheritedFrom": {
2062
- "name": "Accordion",
2063
- "module": "src/accordion/accordion.ts"
2064
- }
2077
+ "default": "true"
2065
2078
  },
2066
2079
  {
2067
2080
  "kind": "field",
2068
- "name": "accordionIds",
2081
+ "name": "autoCloseOnAction",
2069
2082
  "type": {
2070
- "text": "Array<string | null>"
2083
+ "text": "boolean"
2071
2084
  },
2072
- "privacy": "private",
2073
- "inheritedFrom": {
2074
- "name": "Accordion",
2075
- "module": "src/accordion/accordion.ts"
2085
+ "default": "true"
2086
+ },
2087
+ {
2088
+ "kind": "field",
2089
+ "name": "classNames",
2090
+ "type": {
2091
+ "text": "string"
2076
2092
  }
2077
2093
  },
2078
2094
  {
2079
2095
  "kind": "field",
2080
- "name": "change",
2081
- "privacy": "private",
2082
- "inheritedFrom": {
2083
- "name": "Accordion",
2084
- "module": "src/accordion/accordion.ts"
2096
+ "name": "definition",
2097
+ "type": {
2098
+ "text": "any"
2085
2099
  }
2086
2100
  },
2087
2101
  {
2088
- "kind": "method",
2089
- "name": "findExpandedItem",
2090
- "privacy": "private",
2091
- "return": {
2092
- "type": {
2093
- "text": "AccordionItem | null"
2094
- }
2102
+ "kind": "field",
2103
+ "name": "name",
2104
+ "type": {
2105
+ "text": "string"
2095
2106
  },
2096
- "inheritedFrom": {
2097
- "name": "Accordion",
2098
- "module": "src/accordion/accordion.ts"
2099
- }
2107
+ "default": "'Actions'"
2100
2108
  },
2101
2109
  {
2102
2110
  "kind": "field",
2103
- "name": "setItems",
2104
- "privacy": "private",
2105
- "inheritedFrom": {
2106
- "name": "Accordion",
2107
- "module": "src/accordion/accordion.ts"
2108
- }
2111
+ "name": "iconName",
2112
+ "type": {
2113
+ "text": "string"
2114
+ },
2115
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2109
2116
  },
2110
2117
  {
2111
- "kind": "method",
2112
- "name": "resetItems",
2113
- "privacy": "private",
2114
- "return": {
2115
- "type": {
2116
- "text": "void"
2117
- }
2118
+ "kind": "field",
2119
+ "name": "open",
2120
+ "type": {
2121
+ "text": "boolean"
2118
2122
  },
2119
- "inheritedFrom": {
2120
- "name": "Accordion",
2121
- "module": "src/accordion/accordion.ts"
2122
- }
2123
+ "default": "false"
2123
2124
  },
2124
2125
  {
2125
2126
  "kind": "field",
2126
- "name": "removeItemListeners",
2127
- "privacy": "private",
2128
- "inheritedFrom": {
2129
- "name": "Accordion",
2130
- "module": "src/accordion/accordion.ts"
2127
+ "name": "buttonAppearance",
2128
+ "type": {
2129
+ "text": "string"
2131
2130
  }
2132
2131
  },
2133
2132
  {
2134
2133
  "kind": "field",
2135
- "name": "activeItemChange",
2136
- "privacy": "private",
2137
- "inheritedFrom": {
2138
- "name": "Accordion",
2139
- "module": "src/accordion/accordion.ts"
2140
- }
2134
+ "name": "hideDisabled",
2135
+ "type": {
2136
+ "text": "boolean"
2137
+ },
2138
+ "default": "false"
2141
2139
  },
2142
2140
  {
2143
- "kind": "method",
2144
- "name": "getItemIds",
2145
- "privacy": "private",
2146
- "return": {
2147
- "type": {
2148
- "text": "Array<string | null>"
2149
- }
2141
+ "kind": "field",
2142
+ "name": "hideMenuSingleOption",
2143
+ "type": {
2144
+ "text": "boolean"
2150
2145
  },
2151
- "inheritedFrom": {
2152
- "name": "Accordion",
2153
- "module": "src/accordion/accordion.ts"
2146
+ "default": "false"
2147
+ },
2148
+ {
2149
+ "kind": "field",
2150
+ "name": "singleOption",
2151
+ "type": {
2152
+ "text": "ActionMenuItem"
2154
2153
  }
2155
2154
  },
2156
2155
  {
2157
- "kind": "method",
2158
- "name": "isSingleExpandMode",
2159
- "privacy": "private",
2160
- "return": {
2161
- "type": {
2162
- "text": "boolean"
2163
- }
2164
- },
2165
- "inheritedFrom": {
2166
- "name": "Accordion",
2167
- "module": "src/accordion/accordion.ts"
2156
+ "kind": "field",
2157
+ "name": "actionsMenu",
2158
+ "type": {
2159
+ "text": "HTMLElement"
2168
2160
  }
2169
2161
  },
2170
2162
  {
2171
2163
  "kind": "field",
2172
- "name": "handleItemKeyDown",
2173
- "privacy": "private",
2174
- "inheritedFrom": {
2175
- "name": "Accordion",
2176
- "module": "src/accordion/accordion.ts"
2164
+ "name": "actionsOpener",
2165
+ "type": {
2166
+ "text": "HTMLElement"
2177
2167
  }
2178
2168
  },
2179
2169
  {
2180
2170
  "kind": "field",
2181
- "name": "handleItemFocus",
2171
+ "name": "positionTracker",
2172
+ "type": {
2173
+ "text": "AnchoredPopoverPositionTracker | undefined"
2174
+ },
2175
+ "privacy": "private"
2176
+ },
2177
+ {
2178
+ "kind": "field",
2179
+ "name": "focusMenuOnOpen",
2180
+ "type": {
2181
+ "text": "boolean"
2182
+ },
2182
2183
  "privacy": "private",
2183
- "inheritedFrom": {
2184
- "name": "Accordion",
2185
- "module": "src/accordion/accordion.ts"
2186
- }
2184
+ "default": "false",
2185
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2187
2186
  },
2188
2187
  {
2189
2188
  "kind": "method",
2190
- "name": "adjust",
2191
- "privacy": "private",
2189
+ "name": "updateMenuPosition",
2190
+ "privacy": "private"
2191
+ },
2192
+ {
2193
+ "kind": "method",
2194
+ "name": "startTrackingPosition",
2195
+ "privacy": "private"
2196
+ },
2197
+ {
2198
+ "kind": "method",
2199
+ "name": "stopTrackingPosition",
2200
+ "privacy": "private"
2201
+ },
2202
+ {
2203
+ "kind": "method",
2204
+ "name": "definitionChanged",
2205
+ "privacy": "protected",
2206
+ "parameters": [
2207
+ {
2208
+ "name": "oldValue",
2209
+ "type": {
2210
+ "text": "any"
2211
+ }
2212
+ },
2213
+ {
2214
+ "name": "newValue",
2215
+ "type": {
2216
+ "text": "any"
2217
+ }
2218
+ }
2219
+ ]
2220
+ },
2221
+ {
2222
+ "kind": "method",
2223
+ "name": "openChanged",
2224
+ "privacy": "protected"
2225
+ },
2226
+ {
2227
+ "kind": "method",
2228
+ "name": "toggleActionsMenuVisibility"
2229
+ },
2230
+ {
2231
+ "kind": "method",
2232
+ "name": "onPopoverToggle",
2233
+ "parameters": [
2234
+ {
2235
+ "name": "event",
2236
+ "type": {
2237
+ "text": "Event"
2238
+ }
2239
+ }
2240
+ ],
2241
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2242
+ },
2243
+ {
2244
+ "kind": "method",
2245
+ "name": "onIconOpenerKeydown",
2192
2246
  "return": {
2193
2247
  "type": {
2194
- "text": "void"
2248
+ "text": "boolean"
2195
2249
  }
2196
2250
  },
2197
2251
  "parameters": [
2198
2252
  {
2199
- "name": "adjustment",
2253
+ "name": "event",
2200
2254
  "type": {
2201
- "text": "number"
2255
+ "text": "KeyboardEvent"
2202
2256
  }
2203
2257
  }
2204
2258
  ],
2205
- "inheritedFrom": {
2206
- "name": "Accordion",
2207
- "module": "src/accordion/accordion.ts"
2208
- }
2259
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2209
2260
  },
2210
2261
  {
2211
2262
  "kind": "method",
2212
- "name": "focusItem",
2213
- "privacy": "private",
2263
+ "name": "onActionMenuItemClick",
2264
+ "parameters": [
2265
+ {
2266
+ "name": "callback",
2267
+ "type": {
2268
+ "text": "(rowData) => void | any"
2269
+ }
2270
+ }
2271
+ ]
2272
+ },
2273
+ {
2274
+ "kind": "method",
2275
+ "name": "isActionDisabled",
2214
2276
  "return": {
2215
2277
  "type": {
2216
- "text": "void"
2278
+ "text": "boolean"
2217
2279
  }
2218
2280
  },
2219
- "inheritedFrom": {
2220
- "name": "Accordion",
2221
- "module": "src/accordion/accordion.ts"
2222
- }
2281
+ "parameters": [
2282
+ {
2283
+ "name": "action",
2284
+ "type": {
2285
+ "text": "ActionMenuItem"
2286
+ }
2287
+ }
2288
+ ],
2289
+ "description": "Resolves an action's `isDisabled` for the current row."
2290
+ },
2291
+ {
2292
+ "kind": "field",
2293
+ "name": "resolvedActions",
2294
+ "type": {
2295
+ "text": "ActionMenuItem[]"
2296
+ },
2297
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2298
+ "readonly": true
2299
+ },
2300
+ {
2301
+ "kind": "field",
2302
+ "name": "hasVisibleActions",
2303
+ "type": {
2304
+ "text": "boolean"
2305
+ },
2306
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2307
+ "readonly": true
2308
+ },
2309
+ {
2310
+ "kind": "field",
2311
+ "name": "allActions",
2312
+ "type": {
2313
+ "text": "ActionMenuItem[]"
2314
+ },
2315
+ "readonly": true
2316
+ },
2317
+ {
2318
+ "kind": "field",
2319
+ "name": "rowData",
2320
+ "readonly": true
2321
+ },
2322
+ {
2323
+ "kind": "method",
2324
+ "name": "getLabel",
2325
+ "parameters": [
2326
+ {
2327
+ "name": "name",
2328
+ "type": {
2329
+ "text": "string | ((rowData: any) => string)"
2330
+ }
2331
+ }
2332
+ ]
2333
+ },
2334
+ {
2335
+ "kind": "method",
2336
+ "name": "getTemplate",
2337
+ "parameters": [
2338
+ {
2339
+ "name": "prefix",
2340
+ "type": {
2341
+ "text": "string"
2342
+ }
2343
+ }
2344
+ ]
2223
2345
  },
2224
2346
  {
2225
2347
  "kind": "field",
@@ -2333,305 +2455,281 @@
2333
2455
  }
2334
2456
  }
2335
2457
  ],
2336
- "events": [
2458
+ "attributes": [
2337
2459
  {
2338
- "description": "Fires a custom 'change' event when the active item changes",
2339
- "name": "change",
2340
- "inheritedFrom": {
2341
- "name": "Accordion",
2342
- "module": "src/accordion/accordion.ts"
2343
- }
2344
- }
2345
- ]
2346
- },
2347
- {
2348
- "kind": "variable",
2349
- "name": "foundationAccordionShadowOptions",
2350
- "type": {
2351
- "text": "ShadowRootInit"
2352
- },
2353
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2354
- },
2355
- {
2356
- "kind": "variable",
2357
- "name": "defaultAccordionConfig",
2358
- "type": {
2359
- "text": "object"
2360
- },
2361
- "default": "{}"
2362
- },
2363
- {
2364
- "kind": "variable",
2365
- "name": "foundationAccordion",
2366
- "description": "The Foundation Accordion",
2367
- "privacy": "public"
2368
- }
2369
- ],
2370
- "exports": [
2371
- {
2372
- "kind": "js",
2373
- "name": "Accordion",
2374
- "declaration": {
2375
- "name": "Accordion",
2376
- "module": "src/accordion/accordion.ts"
2377
- }
2378
- },
2379
- {
2380
- "kind": "js",
2381
- "name": "foundationAccordionShadowOptions",
2382
- "declaration": {
2383
- "name": "foundationAccordionShadowOptions",
2384
- "module": "src/accordion/accordion.ts"
2385
- }
2386
- },
2387
- {
2388
- "kind": "js",
2389
- "name": "defaultAccordionConfig",
2390
- "declaration": {
2391
- "name": "defaultAccordionConfig",
2392
- "module": "src/accordion/accordion.ts"
2393
- }
2394
- },
2395
- {
2396
- "kind": "js",
2397
- "name": "foundationAccordion",
2398
- "declaration": {
2399
- "name": "foundationAccordion",
2400
- "module": "src/accordion/accordion.ts"
2401
- }
2460
+ "name": "is-vertical",
2461
+ "type": {
2462
+ "text": "boolean"
2463
+ },
2464
+ "default": "false",
2465
+ "fieldName": "isVertical"
2466
+ },
2467
+ {
2468
+ "name": "add-default-actions",
2469
+ "type": {
2470
+ "text": "boolean"
2471
+ },
2472
+ "default": "true",
2473
+ "fieldName": "addDefaultActions"
2474
+ },
2475
+ {
2476
+ "name": "auto-close-on-action",
2477
+ "type": {
2478
+ "text": "boolean"
2479
+ },
2480
+ "default": "true",
2481
+ "fieldName": "autoCloseOnAction"
2482
+ },
2483
+ {
2484
+ "name": "name",
2485
+ "type": {
2486
+ "text": "string"
2487
+ },
2488
+ "default": "'Actions'",
2489
+ "fieldName": "name"
2490
+ },
2491
+ {
2492
+ "name": "icon-name",
2493
+ "type": {
2494
+ "text": "string"
2495
+ },
2496
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
2497
+ "fieldName": "iconName"
2498
+ },
2499
+ {
2500
+ "name": "open",
2501
+ "type": {
2502
+ "text": "boolean"
2503
+ },
2504
+ "default": "false",
2505
+ "fieldName": "open"
2506
+ },
2507
+ {
2508
+ "name": "buttonAppearance",
2509
+ "type": {
2510
+ "text": "string"
2511
+ },
2512
+ "fieldName": "buttonAppearance"
2513
+ },
2514
+ {
2515
+ "name": "hide-disabled",
2516
+ "type": {
2517
+ "text": "boolean"
2518
+ },
2519
+ "default": "false",
2520
+ "fieldName": "hideDisabled"
2521
+ },
2522
+ {
2523
+ "name": "hide-menu-single-option",
2524
+ "type": {
2525
+ "text": "boolean"
2526
+ },
2527
+ "default": "false",
2528
+ "fieldName": "hideMenuSingleOption"
2529
+ }
2530
+ ],
2531
+ "superclass": {
2532
+ "name": "FoundationElement",
2533
+ "package": "@microsoft/fast-foundation"
2534
+ },
2535
+ "tagName": "%%prefix%%-actions-menu",
2536
+ "customElement": true
2537
+ },
2538
+ {
2539
+ "kind": "variable",
2540
+ "name": "foundationActionsMenu",
2541
+ "description": "The Foundation Actions Menu",
2542
+ "privacy": "public"
2402
2543
  }
2403
- ]
2404
- },
2405
- {
2406
- "kind": "javascript-module",
2407
- "path": "src/accordion/index.ts",
2408
- "declarations": [],
2544
+ ],
2409
2545
  "exports": [
2410
2546
  {
2411
2547
  "kind": "js",
2412
- "name": "*",
2413
- "declaration": {
2414
- "name": "*",
2415
- "package": "./accordion.template"
2416
- }
2417
- },
2418
- {
2419
- "kind": "js",
2420
- "name": "*",
2548
+ "name": "ActionsMenu",
2421
2549
  "declaration": {
2422
- "name": "*",
2423
- "package": "./accordion.styles"
2550
+ "name": "ActionsMenu",
2551
+ "module": "src/actions-menu/actions-menu.ts"
2424
2552
  }
2425
2553
  },
2426
2554
  {
2427
2555
  "kind": "js",
2428
- "name": "*",
2556
+ "name": "foundationActionsMenu",
2429
2557
  "declaration": {
2430
- "name": "*",
2431
- "package": "./accordion"
2558
+ "name": "foundationActionsMenu",
2559
+ "module": "src/actions-menu/actions-menu.ts"
2432
2560
  }
2433
2561
  }
2434
2562
  ]
2435
2563
  },
2436
2564
  {
2437
2565
  "kind": "javascript-module",
2438
- "path": "src/actions-menu/actions-menu.styles.ts",
2566
+ "path": "src/actions-menu/ag-menu.styles.ts",
2439
2567
  "declarations": [
2440
2568
  {
2441
2569
  "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
- ]
2462
- },
2463
- {
2464
- "kind": "function",
2465
- "name": "foundationActionsMenuStyles",
2570
+ "name": "agMenuStyles",
2466
2571
  "return": {
2467
2572
  "type": {
2468
- "text": "ElementStyles"
2573
+ "text": ""
2469
2574
  }
2470
2575
  },
2471
2576
  "parameters": [
2472
2577
  {
2473
- "name": "context",
2578
+ "name": "menuSelector",
2474
2579
  "type": {
2475
- "text": "ElementDefinitionContext"
2476
- }
2580
+ "text": "string"
2581
+ },
2582
+ "description": "Selects the menu surface. May be a selector list."
2477
2583
  },
2478
2584
  {
2479
- "name": "definition",
2585
+ "name": "itemSelector",
2480
2586
  "type": {
2481
- "text": "FoundationElementDefinition"
2482
- }
2587
+ "text": "string"
2588
+ },
2589
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
2483
2590
  }
2484
- ]
2591
+ ],
2592
+ "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
2593
+ "privacy": "public"
2485
2594
  }
2486
2595
  ],
2487
2596
  "exports": [
2488
2597
  {
2489
2598
  "kind": "js",
2490
- "name": "actionsMenuBaseStyles",
2599
+ "name": "agMenuStyles",
2491
2600
  "declaration": {
2492
- "name": "actionsMenuBaseStyles",
2493
- "module": "src/actions-menu/actions-menu.styles.ts"
2601
+ "name": "agMenuStyles",
2602
+ "module": "src/actions-menu/ag-menu.styles.ts"
2603
+ }
2604
+ }
2605
+ ]
2606
+ },
2607
+ {
2608
+ "kind": "javascript-module",
2609
+ "path": "src/actions-menu/index.ts",
2610
+ "declarations": [],
2611
+ "exports": [
2612
+ {
2613
+ "kind": "js",
2614
+ "name": "*",
2615
+ "declaration": {
2616
+ "name": "*",
2617
+ "package": "./actions-menu.styles"
2494
2618
  }
2495
2619
  },
2496
2620
  {
2497
2621
  "kind": "js",
2498
- "name": "foundationActionsMenuStyles",
2622
+ "name": "*",
2499
2623
  "declaration": {
2500
- "name": "foundationActionsMenuStyles",
2501
- "module": "src/actions-menu/actions-menu.styles.ts"
2624
+ "name": "*",
2625
+ "package": "./actions-menu.template"
2626
+ }
2627
+ },
2628
+ {
2629
+ "kind": "js",
2630
+ "name": "*",
2631
+ "declaration": {
2632
+ "name": "*",
2633
+ "package": "./actions-menu"
2634
+ }
2635
+ },
2636
+ {
2637
+ "kind": "js",
2638
+ "name": "*",
2639
+ "declaration": {
2640
+ "name": "*",
2641
+ "package": "./ag-menu.styles"
2502
2642
  }
2503
2643
  }
2504
2644
  ]
2505
2645
  },
2506
2646
  {
2507
2647
  "kind": "javascript-module",
2508
- "path": "src/actions-menu/actions-menu.template.ts",
2648
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2509
2649
  "declarations": [
2510
2650
  {
2511
2651
  "kind": "variable",
2512
- "name": "menuTemplate"
2513
- },
2514
- {
2515
- "kind": "variable",
2516
- "name": "singleOptionTemplate"
2517
- },
2518
- {
2519
- "kind": "variable",
2520
- "name": "foundationActionsMenuTemplate",
2521
- "type": {
2522
- "text": "ViewTemplate<ActionsMenu>"
2523
- },
2524
- "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`"
2652
+ "name": "foundationAiCriteriaSearchStyles",
2653
+ "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`"
2525
2654
  }
2526
2655
  ],
2527
2656
  "exports": [
2528
2657
  {
2529
2658
  "kind": "js",
2530
- "name": "menuTemplate",
2659
+ "name": "foundationAiCriteriaSearchStyles",
2531
2660
  "declaration": {
2532
- "name": "menuTemplate",
2533
- "module": "src/actions-menu/actions-menu.template.ts"
2661
+ "name": "foundationAiCriteriaSearchStyles",
2662
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2534
2663
  }
2535
- },
2664
+ }
2665
+ ]
2666
+ },
2667
+ {
2668
+ "kind": "javascript-module",
2669
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2670
+ "declarations": [
2536
2671
  {
2537
- "kind": "js",
2538
- "name": "singleOptionTemplate",
2539
- "declaration": {
2540
- "name": "singleOptionTemplate",
2541
- "module": "src/actions-menu/actions-menu.template.ts"
2542
- }
2543
- },
2672
+ "kind": "variable",
2673
+ "name": "foundationAiCriteriaSearchTemplate",
2674
+ "type": {
2675
+ "text": "ViewTemplate<AiCriteriaSearch>"
2676
+ },
2677
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2678
+ }
2679
+ ],
2680
+ "exports": [
2544
2681
  {
2545
2682
  "kind": "js",
2546
- "name": "foundationActionsMenuTemplate",
2683
+ "name": "foundationAiCriteriaSearchTemplate",
2547
2684
  "declaration": {
2548
- "name": "foundationActionsMenuTemplate",
2549
- "module": "src/actions-menu/actions-menu.template.ts"
2685
+ "name": "foundationAiCriteriaSearchTemplate",
2686
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2550
2687
  }
2551
2688
  }
2552
2689
  ]
2553
2690
  },
2554
2691
  {
2555
2692
  "kind": "javascript-module",
2556
- "path": "src/actions-menu/actions-menu.ts",
2693
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2557
2694
  "declarations": [
2558
2695
  {
2559
2696
  "kind": "class",
2560
- "description": "",
2561
- "name": "ActionsMenu",
2697
+ "description": "Natural-language criteria search input with AI interpretation.",
2698
+ "name": "AiCriteriaSearch",
2562
2699
  "members": [
2563
2700
  {
2564
2701
  "kind": "field",
2565
- "name": "actions",
2702
+ "name": "providerRegistry",
2566
2703
  "type": {
2567
- "text": "ActionMenuItem[]"
2704
+ "text": "AIProviderRegistry"
2568
2705
  }
2569
2706
  },
2570
2707
  {
2571
2708
  "kind": "field",
2572
- "name": "actionsResolver",
2573
- "type": {
2574
- "text": "ActionMenuItemsResolver | undefined"
2575
- },
2576
- "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2577
- },
2578
- {
2579
- "kind": "field",
2580
- "name": "isVertical",
2581
- "type": {
2582
- "text": "boolean"
2583
- },
2584
- "default": "false"
2585
- },
2586
- {
2587
- "kind": "field",
2588
- "name": "addDefaultActions",
2709
+ "name": "placeholder",
2589
2710
  "type": {
2590
- "text": "boolean"
2711
+ "text": "string"
2591
2712
  },
2592
- "default": "true"
2713
+ "default": "'Describe your search criteria in natural language...'"
2593
2714
  },
2594
2715
  {
2595
2716
  "kind": "field",
2596
- "name": "autoCloseOnAction",
2717
+ "name": "disabled",
2597
2718
  "type": {
2598
2719
  "text": "boolean"
2599
- },
2600
- "default": "true"
2601
- },
2602
- {
2603
- "kind": "field",
2604
- "name": "classNames",
2605
- "type": {
2606
- "text": "string"
2607
2720
  }
2608
2721
  },
2609
2722
  {
2610
2723
  "kind": "field",
2611
- "name": "definition",
2612
- "type": {
2613
- "text": "any"
2614
- }
2615
- },
2616
- {
2617
- "kind": "field",
2618
- "name": "name",
2619
- "type": {
2620
- "text": "string"
2621
- },
2622
- "default": "'Actions'"
2623
- },
2624
- {
2625
- "kind": "field",
2626
- "name": "iconName",
2724
+ "name": "inputValue",
2627
2725
  "type": {
2628
2726
  "text": "string"
2629
2727
  },
2630
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2728
+ "default": "''"
2631
2729
  },
2632
2730
  {
2633
2731
  "kind": "field",
2634
- "name": "open",
2732
+ "name": "isInterpreting",
2635
2733
  "type": {
2636
2734
  "text": "boolean"
2637
2735
  },
@@ -2639,22 +2737,23 @@
2639
2737
  },
2640
2738
  {
2641
2739
  "kind": "field",
2642
- "name": "buttonAppearance",
2740
+ "name": "lastValidCriteria",
2643
2741
  "type": {
2644
- "text": "string"
2645
- }
2742
+ "text": "string | null"
2743
+ },
2744
+ "default": "null"
2646
2745
  },
2647
2746
  {
2648
2747
  "kind": "field",
2649
- "name": "hideDisabled",
2748
+ "name": "activeGroups",
2650
2749
  "type": {
2651
- "text": "boolean"
2750
+ "text": "CriteriaGroup[]"
2652
2751
  },
2653
- "default": "false"
2752
+ "default": "[]"
2654
2753
  },
2655
2754
  {
2656
2755
  "kind": "field",
2657
- "name": "hideMenuSingleOption",
2756
+ "name": "showingChips",
2658
2757
  "type": {
2659
2758
  "text": "boolean"
2660
2759
  },
@@ -2662,201 +2761,141 @@
2662
2761
  },
2663
2762
  {
2664
2763
  "kind": "field",
2665
- "name": "singleOption",
2764
+ "name": "fieldMetadata",
2666
2765
  "type": {
2667
- "text": "ActionMenuItem"
2668
- }
2766
+ "text": "MetadataDetail[] | string[]"
2767
+ },
2768
+ "default": "[]"
2669
2769
  },
2670
2770
  {
2671
2771
  "kind": "field",
2672
- "name": "actionsMenu",
2772
+ "name": "isRecording",
2673
2773
  "type": {
2674
- "text": "HTMLElement"
2675
- }
2774
+ "text": "boolean"
2775
+ },
2776
+ "default": "false"
2676
2777
  },
2677
2778
  {
2678
2779
  "kind": "field",
2679
- "name": "actionsOpener",
2780
+ "name": "textAreaRef",
2680
2781
  "type": {
2681
- "text": "HTMLElement"
2682
- }
2782
+ "text": "HTMLTextAreaElement"
2783
+ },
2784
+ "privacy": "public"
2683
2785
  },
2684
2786
  {
2685
2787
  "kind": "field",
2686
- "name": "positionTracker",
2788
+ "name": "stopRecording",
2687
2789
  "type": {
2688
- "text": "AnchoredPopoverPositionTracker | undefined"
2790
+ "text": "(() => void) | null"
2689
2791
  },
2690
- "privacy": "private"
2792
+ "privacy": "private",
2793
+ "default": "null"
2691
2794
  },
2692
2795
  {
2693
2796
  "kind": "field",
2694
- "name": "focusMenuOnOpen",
2797
+ "name": "speechApplyDebounceTimer",
2695
2798
  "type": {
2696
- "text": "boolean"
2799
+ "text": "ReturnType<typeof setTimeout> | null"
2697
2800
  },
2698
2801
  "privacy": "private",
2699
- "default": "false",
2700
- "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2701
- },
2702
- {
2703
- "kind": "method",
2704
- "name": "updateMenuPosition",
2705
- "privacy": "private"
2802
+ "default": "null"
2706
2803
  },
2707
2804
  {
2708
- "kind": "method",
2709
- "name": "startTrackingPosition",
2710
- "privacy": "private"
2805
+ "kind": "field",
2806
+ "name": "speechAvailable",
2807
+ "type": {
2808
+ "text": "boolean"
2809
+ },
2810
+ "readonly": true
2711
2811
  },
2712
2812
  {
2713
- "kind": "method",
2714
- "name": "stopTrackingPosition",
2715
- "privacy": "private"
2813
+ "kind": "field",
2814
+ "name": "criteriaChips",
2815
+ "type": {
2816
+ "text": "CriteriaChip[]"
2817
+ },
2818
+ "readonly": true
2716
2819
  },
2717
2820
  {
2718
2821
  "kind": "method",
2719
- "name": "definitionChanged",
2720
- "privacy": "protected",
2822
+ "name": "getFieldLabel",
2823
+ "privacy": "private",
2824
+ "return": {
2825
+ "type": {
2826
+ "text": "string"
2827
+ }
2828
+ },
2721
2829
  "parameters": [
2722
2830
  {
2723
- "name": "oldValue",
2724
- "type": {
2725
- "text": "any"
2726
- }
2727
- },
2728
- {
2729
- "name": "newValue",
2831
+ "name": "fieldName",
2730
2832
  "type": {
2731
- "text": "any"
2833
+ "text": "string"
2732
2834
  }
2733
2835
  }
2734
2836
  ]
2735
2837
  },
2736
2838
  {
2737
2839
  "kind": "method",
2738
- "name": "openChanged",
2739
- "privacy": "protected"
2740
- },
2741
- {
2742
- "kind": "method",
2743
- "name": "toggleActionsMenuVisibility"
2744
- },
2745
- {
2746
- "kind": "method",
2747
- "name": "onPopoverToggle",
2748
- "parameters": [
2749
- {
2750
- "name": "event",
2751
- "type": {
2752
- "text": "Event"
2753
- }
2840
+ "name": "toggleCriteriaView",
2841
+ "return": {
2842
+ "type": {
2843
+ "text": "void"
2754
2844
  }
2755
- ],
2756
- "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2845
+ }
2757
2846
  },
2758
2847
  {
2759
2848
  "kind": "method",
2760
- "name": "onIconOpenerKeydown",
2849
+ "name": "removeChip",
2761
2850
  "return": {
2762
2851
  "type": {
2763
- "text": "boolean"
2852
+ "text": "void"
2764
2853
  }
2765
2854
  },
2766
2855
  "parameters": [
2767
2856
  {
2768
- "name": "event",
2857
+ "name": "groupIndex",
2769
2858
  "type": {
2770
- "text": "KeyboardEvent"
2859
+ "text": "number"
2771
2860
  }
2772
- }
2773
- ],
2774
- "description": "Opens the icon-only opener from the keyboard, as a native button would."
2775
- },
2776
- {
2777
- "kind": "method",
2778
- "name": "onActionMenuItemClick",
2779
- "parameters": [
2861
+ },
2780
2862
  {
2781
- "name": "callback",
2863
+ "name": "clauseIndex",
2782
2864
  "type": {
2783
- "text": "(rowData) => void | any"
2865
+ "text": "number"
2784
2866
  }
2785
2867
  }
2786
2868
  ]
2787
2869
  },
2788
2870
  {
2789
2871
  "kind": "method",
2790
- "name": "isActionDisabled",
2872
+ "name": "clearChips",
2791
2873
  "return": {
2792
2874
  "type": {
2793
- "text": "boolean"
2794
- }
2795
- },
2796
- "parameters": [
2797
- {
2798
- "name": "action",
2799
- "type": {
2800
- "text": "ActionMenuItem"
2801
- }
2875
+ "text": "void"
2802
2876
  }
2803
- ],
2804
- "description": "Resolves an action's `isDisabled` for the current row."
2805
- },
2806
- {
2807
- "kind": "field",
2808
- "name": "resolvedActions",
2809
- "type": {
2810
- "text": "ActionMenuItem[]"
2811
- },
2812
- "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2813
- "readonly": true
2877
+ }
2814
2878
  },
2815
2879
  {
2816
- "kind": "field",
2817
- "name": "hasVisibleActions",
2818
- "type": {
2819
- "text": "boolean"
2820
- },
2821
- "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2822
- "readonly": true
2880
+ "kind": "method",
2881
+ "name": "handleSubmit"
2823
2882
  },
2824
2883
  {
2825
- "kind": "field",
2826
- "name": "allActions",
2827
- "type": {
2828
- "text": "ActionMenuItem[]"
2829
- },
2830
- "readonly": true
2884
+ "kind": "method",
2885
+ "name": "handleBlur"
2831
2886
  },
2832
2887
  {
2833
- "kind": "field",
2834
- "name": "rowData",
2835
- "readonly": true
2888
+ "kind": "method",
2889
+ "name": "clear"
2836
2890
  },
2837
2891
  {
2838
2892
  "kind": "method",
2839
- "name": "getLabel",
2840
- "parameters": [
2841
- {
2842
- "name": "name",
2843
- "type": {
2844
- "text": "string | ((rowData: any) => string)"
2845
- }
2846
- }
2847
- ]
2893
+ "name": "toggleSpeechInput"
2848
2894
  },
2849
2895
  {
2850
2896
  "kind": "method",
2851
- "name": "getTemplate",
2852
- "parameters": [
2853
- {
2854
- "name": "prefix",
2855
- "type": {
2856
- "text": "string"
2857
- }
2858
- }
2859
- ]
2897
+ "name": "clearSpeechApplyDebounce",
2898
+ "privacy": "private"
2860
2899
  },
2861
2900
  {
2862
2901
  "kind": "field",
@@ -2968,168 +3007,148 @@
2968
3007
  "name": "FoundationElement",
2969
3008
  "module": "src/foundation-element/foundation-element.ts"
2970
3009
  }
2971
- }
2972
- ],
2973
- "attributes": [
2974
- {
2975
- "name": "is-vertical",
2976
- "type": {
2977
- "text": "boolean"
2978
- },
2979
- "default": "false",
2980
- "fieldName": "isVertical"
2981
- },
2982
- {
2983
- "name": "add-default-actions",
2984
- "type": {
2985
- "text": "boolean"
2986
- },
2987
- "default": "true",
2988
- "fieldName": "addDefaultActions"
2989
- },
2990
- {
2991
- "name": "auto-close-on-action",
2992
- "type": {
2993
- "text": "boolean"
2994
- },
2995
- "default": "true",
2996
- "fieldName": "autoCloseOnAction"
2997
- },
2998
- {
2999
- "name": "name",
3000
- "type": {
3001
- "text": "string"
3002
- },
3003
- "default": "'Actions'",
3004
- "fieldName": "name"
3005
- },
3006
- {
3007
- "name": "icon-name",
3008
- "type": {
3009
- "text": "string"
3010
- },
3011
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3012
- "fieldName": "iconName"
3013
- },
3014
- {
3015
- "name": "open",
3016
- "type": {
3017
- "text": "boolean"
3018
- },
3019
- "default": "false",
3020
- "fieldName": "open"
3021
- },
3010
+ }
3011
+ ],
3012
+ "events": [
3022
3013
  {
3023
- "name": "buttonAppearance",
3024
- "type": {
3025
- "text": "string"
3026
- },
3027
- "fieldName": "buttonAppearance"
3014
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3015
+ "name": "criteria-changed"
3028
3016
  },
3029
3017
  {
3030
- "name": "hide-disabled",
3018
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3019
+ "name": "validation-errors"
3020
+ }
3021
+ ],
3022
+ "attributes": [
3023
+ {
3024
+ "name": "placeholder",
3031
3025
  "type": {
3032
- "text": "boolean"
3026
+ "text": "string"
3033
3027
  },
3034
- "default": "false",
3035
- "fieldName": "hideDisabled"
3028
+ "default": "'Describe your search criteria in natural language...'",
3029
+ "fieldName": "placeholder"
3036
3030
  },
3037
3031
  {
3038
- "name": "hide-menu-single-option",
3039
3032
  "type": {
3040
3033
  "text": "boolean"
3041
3034
  },
3042
- "default": "false",
3043
- "fieldName": "hideMenuSingleOption"
3035
+ "fieldName": "disabled"
3044
3036
  }
3045
3037
  ],
3046
3038
  "superclass": {
3047
3039
  "name": "FoundationElement",
3048
3040
  "package": "@microsoft/fast-foundation"
3049
3041
  },
3050
- "tagName": "%%prefix%%-actions-menu",
3042
+ "tagName": "%%prefix%%-ai-criteria-search",
3051
3043
  "customElement": true
3052
3044
  },
3053
3045
  {
3054
3046
  "kind": "variable",
3055
- "name": "foundationActionsMenu",
3056
- "description": "The Foundation Actions Menu",
3057
- "privacy": "public"
3047
+ "name": "foundationAiCriteriaSearchShadowOptions",
3048
+ "type": {
3049
+ "text": "ShadowRootInit"
3050
+ },
3051
+ "default": "undefined"
3052
+ },
3053
+ {
3054
+ "kind": "variable",
3055
+ "name": "defaultAiCriteriaSearchConfig",
3056
+ "type": {
3057
+ "text": "object"
3058
+ },
3059
+ "default": "{}"
3060
+ },
3061
+ {
3062
+ "kind": "variable",
3063
+ "name": "foundationAiCriteriaSearch"
3058
3064
  }
3059
3065
  ],
3060
3066
  "exports": [
3061
3067
  {
3062
3068
  "kind": "js",
3063
- "name": "ActionsMenu",
3069
+ "name": "AiCriteriaSearch",
3064
3070
  "declaration": {
3065
- "name": "ActionsMenu",
3066
- "module": "src/actions-menu/actions-menu.ts"
3071
+ "name": "AiCriteriaSearch",
3072
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3067
3073
  }
3068
3074
  },
3069
3075
  {
3070
3076
  "kind": "js",
3071
- "name": "foundationActionsMenu",
3077
+ "name": "foundationAiCriteriaSearchShadowOptions",
3072
3078
  "declaration": {
3073
- "name": "foundationActionsMenu",
3074
- "module": "src/actions-menu/actions-menu.ts"
3079
+ "name": "foundationAiCriteriaSearchShadowOptions",
3080
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3075
3081
  }
3076
- }
3077
- ]
3078
- },
3079
- {
3080
- "kind": "javascript-module",
3081
- "path": "src/actions-menu/ag-menu.styles.ts",
3082
- "declarations": [
3082
+ },
3083
3083
  {
3084
- "kind": "function",
3085
- "name": "agMenuStyles",
3086
- "return": {
3087
- "type": {
3088
- "text": ""
3089
- }
3090
- },
3091
- "parameters": [
3092
- {
3093
- "name": "menuSelector",
3094
- "type": {
3095
- "text": "string"
3096
- },
3097
- "description": "Selects the menu surface. May be a selector list."
3098
- },
3099
- {
3100
- "name": "itemSelector",
3101
- "type": {
3102
- "text": "string"
3103
- },
3104
- "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3105
- }
3106
- ],
3107
- "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
3108
- "privacy": "public"
3109
- }
3110
- ],
3111
- "exports": [
3084
+ "kind": "js",
3085
+ "name": "defaultAiCriteriaSearchConfig",
3086
+ "declaration": {
3087
+ "name": "defaultAiCriteriaSearchConfig",
3088
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3089
+ }
3090
+ },
3112
3091
  {
3113
3092
  "kind": "js",
3114
- "name": "agMenuStyles",
3093
+ "name": "foundationAiCriteriaSearch",
3115
3094
  "declaration": {
3116
- "name": "agMenuStyles",
3117
- "module": "src/actions-menu/ag-menu.styles.ts"
3095
+ "name": "foundationAiCriteriaSearch",
3096
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3118
3097
  }
3119
3098
  }
3120
3099
  ]
3121
3100
  },
3122
3101
  {
3123
3102
  "kind": "javascript-module",
3124
- "path": "src/actions-menu/index.ts",
3103
+ "path": "src/ai-criteria-search/index.ts",
3125
3104
  "declarations": [],
3126
3105
  "exports": [
3127
3106
  {
3128
3107
  "kind": "js",
3129
- "name": "*",
3108
+ "name": "AiCriteriaSearch",
3130
3109
  "declaration": {
3131
- "name": "*",
3132
- "package": "./actions-menu.styles"
3110
+ "name": "AiCriteriaSearch",
3111
+ "module": "./ai-criteria-search"
3112
+ }
3113
+ },
3114
+ {
3115
+ "kind": "js",
3116
+ "name": "defaultAiCriteriaSearchConfig",
3117
+ "declaration": {
3118
+ "name": "defaultAiCriteriaSearchConfig",
3119
+ "module": "./ai-criteria-search"
3120
+ }
3121
+ },
3122
+ {
3123
+ "kind": "js",
3124
+ "name": "foundationAiCriteriaSearch",
3125
+ "declaration": {
3126
+ "name": "foundationAiCriteriaSearch",
3127
+ "module": "./ai-criteria-search"
3128
+ }
3129
+ },
3130
+ {
3131
+ "kind": "js",
3132
+ "name": "foundationAiCriteriaSearchShadowOptions",
3133
+ "declaration": {
3134
+ "name": "foundationAiCriteriaSearchShadowOptions",
3135
+ "module": "./ai-criteria-search"
3136
+ }
3137
+ },
3138
+ {
3139
+ "kind": "js",
3140
+ "name": "foundationAiCriteriaSearchStyles",
3141
+ "declaration": {
3142
+ "name": "foundationAiCriteriaSearchStyles",
3143
+ "module": "./ai-criteria-search.styles"
3144
+ }
3145
+ },
3146
+ {
3147
+ "kind": "js",
3148
+ "name": "foundationAiCriteriaSearchTemplate",
3149
+ "declaration": {
3150
+ "name": "foundationAiCriteriaSearchTemplate",
3151
+ "module": "./ai-criteria-search.template"
3133
3152
  }
3134
3153
  },
3135
3154
  {
@@ -3137,7 +3156,7 @@
3137
3156
  "name": "*",
3138
3157
  "declaration": {
3139
3158
  "name": "*",
3140
- "package": "./actions-menu.template"
3159
+ "package": "./validation/criteria-ir"
3141
3160
  }
3142
3161
  },
3143
3162
  {
@@ -3145,7 +3164,7 @@
3145
3164
  "name": "*",
3146
3165
  "declaration": {
3147
3166
  "name": "*",
3148
- "package": "./actions-menu"
3167
+ "package": "./validation/operator-map"
3149
3168
  }
3150
3169
  },
3151
3170
  {
@@ -3153,215 +3172,357 @@
3153
3172
  "name": "*",
3154
3173
  "declaration": {
3155
3174
  "name": "*",
3156
- "package": "./ag-menu.styles"
3175
+ "package": "./validation/schema-validator"
3157
3176
  }
3158
3177
  }
3159
3178
  ]
3160
3179
  },
3161
3180
  {
3162
3181
  "kind": "javascript-module",
3163
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3182
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3164
3183
  "declarations": [
3165
3184
  {
3166
- "kind": "variable",
3167
- "name": "foundationAiCriteriaSearchStyles",
3168
- "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`"
3185
+ "kind": "function",
3186
+ "name": "formatValidationErrors",
3187
+ "return": {
3188
+ "type": {
3189
+ "text": "string"
3190
+ }
3191
+ },
3192
+ "parameters": [
3193
+ {
3194
+ "name": "errors",
3195
+ "type": {
3196
+ "text": "ValidationError[]"
3197
+ }
3198
+ }
3199
+ ],
3200
+ "description": "Formats validation errors into a user-friendly message."
3201
+ },
3202
+ {
3203
+ "kind": "function",
3204
+ "name": "showCriteriaError",
3205
+ "return": {
3206
+ "type": {
3207
+ "text": "void"
3208
+ }
3209
+ },
3210
+ "parameters": [
3211
+ {
3212
+ "name": "title",
3213
+ "type": {
3214
+ "text": "string"
3215
+ },
3216
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3217
+ },
3218
+ {
3219
+ "name": "body",
3220
+ "type": {
3221
+ "text": "string"
3222
+ },
3223
+ "description": "Error message to display"
3224
+ },
3225
+ {
3226
+ "name": "tagName",
3227
+ "type": {
3228
+ "text": "string"
3229
+ },
3230
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3231
+ }
3232
+ ],
3233
+ "description": "Shows a criteria error as a toast notification."
3234
+ }
3235
+ ],
3236
+ "exports": [
3237
+ {
3238
+ "kind": "js",
3239
+ "name": "formatValidationErrors",
3240
+ "declaration": {
3241
+ "name": "formatValidationErrors",
3242
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3243
+ }
3244
+ },
3245
+ {
3246
+ "kind": "js",
3247
+ "name": "showCriteriaError",
3248
+ "declaration": {
3249
+ "name": "showCriteriaError",
3250
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3251
+ }
3252
+ }
3253
+ ]
3254
+ },
3255
+ {
3256
+ "kind": "javascript-module",
3257
+ "path": "src/accordion/accordion.styles.ts",
3258
+ "declarations": [
3259
+ {
3260
+ "kind": "function",
3261
+ "name": "foundationAccordionStyles",
3262
+ "return": {
3263
+ "type": {
3264
+ "text": "ElementStyles"
3265
+ }
3266
+ },
3267
+ "parameters": [
3268
+ {
3269
+ "name": "context",
3270
+ "type": {
3271
+ "text": "ElementDefinitionContext"
3272
+ }
3273
+ },
3274
+ {
3275
+ "name": "definition",
3276
+ "type": {
3277
+ "text": "FoundationElementDefinition"
3278
+ }
3279
+ }
3280
+ ]
3169
3281
  }
3170
3282
  ],
3171
3283
  "exports": [
3172
3284
  {
3173
3285
  "kind": "js",
3174
- "name": "foundationAiCriteriaSearchStyles",
3286
+ "name": "foundationAccordionStyles",
3175
3287
  "declaration": {
3176
- "name": "foundationAiCriteriaSearchStyles",
3177
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3288
+ "name": "foundationAccordionStyles",
3289
+ "module": "src/accordion/accordion.styles.ts"
3178
3290
  }
3179
3291
  }
3180
3292
  ]
3181
3293
  },
3182
3294
  {
3183
3295
  "kind": "javascript-module",
3184
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3296
+ "path": "src/accordion/accordion.template.ts",
3185
3297
  "declarations": [
3186
3298
  {
3187
- "kind": "variable",
3188
- "name": "foundationAiCriteriaSearchTemplate",
3189
- "type": {
3190
- "text": "ViewTemplate<AiCriteriaSearch>"
3299
+ "kind": "function",
3300
+ "name": "foundationAccordionTemplate",
3301
+ "return": {
3302
+ "type": {
3303
+ "text": "ViewTemplate<Accordion>"
3304
+ }
3191
3305
  },
3192
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3306
+ "parameters": [
3307
+ {
3308
+ "name": "context",
3309
+ "type": {
3310
+ "text": "ElementDefinitionContext"
3311
+ }
3312
+ },
3313
+ {
3314
+ "name": "definition",
3315
+ "type": {
3316
+ "text": "FoundationElementDefinition"
3317
+ }
3318
+ }
3319
+ ]
3193
3320
  }
3194
3321
  ],
3195
3322
  "exports": [
3196
3323
  {
3197
3324
  "kind": "js",
3198
- "name": "foundationAiCriteriaSearchTemplate",
3325
+ "name": "foundationAccordionTemplate",
3199
3326
  "declaration": {
3200
- "name": "foundationAiCriteriaSearchTemplate",
3201
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3327
+ "name": "foundationAccordionTemplate",
3328
+ "module": "src/accordion/accordion.template.ts"
3202
3329
  }
3203
3330
  }
3204
3331
  ]
3205
3332
  },
3206
3333
  {
3207
3334
  "kind": "javascript-module",
3208
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3335
+ "path": "src/accordion/accordion.ts",
3209
3336
  "declarations": [
3210
3337
  {
3211
3338
  "kind": "class",
3212
- "description": "Natural-language criteria search input with AI interpretation.",
3213
- "name": "AiCriteriaSearch",
3214
- "members": [
3215
- {
3216
- "kind": "field",
3217
- "name": "providerRegistry",
3218
- "type": {
3219
- "text": "AIProviderRegistry"
3220
- }
3221
- },
3339
+ "description": "",
3340
+ "name": "Accordion",
3341
+ "superclass": {
3342
+ "name": "FASTAccordion",
3343
+ "package": "@microsoft/fast-foundation"
3344
+ },
3345
+ "tagName": "%%prefix%%-accordion",
3346
+ "customElement": true,
3347
+ "attributes": [
3222
3348
  {
3223
- "kind": "field",
3224
- "name": "placeholder",
3349
+ "name": "expand-mode",
3225
3350
  "type": {
3226
- "text": "string"
3351
+ "text": "AccordionExpandMode"
3227
3352
  },
3228
- "default": "'Describe your search criteria in natural language...'"
3229
- },
3230
- {
3231
- "kind": "field",
3232
- "name": "disabled",
3233
- "type": {
3234
- "text": "boolean"
3353
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3354
+ "fieldName": "expandmode",
3355
+ "inheritedFrom": {
3356
+ "name": "Accordion",
3357
+ "module": "src/accordion/accordion.ts"
3235
3358
  }
3236
- },
3237
- {
3238
- "kind": "field",
3239
- "name": "inputValue",
3240
- "type": {
3241
- "text": "string"
3242
- },
3243
- "default": "''"
3244
- },
3359
+ }
3360
+ ],
3361
+ "members": [
3245
3362
  {
3246
3363
  "kind": "field",
3247
- "name": "isInterpreting",
3364
+ "name": "expandmode",
3248
3365
  "type": {
3249
- "text": "boolean"
3366
+ "text": "AccordionExpandMode"
3250
3367
  },
3251
- "default": "false"
3368
+ "privacy": "public",
3369
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3370
+ "inheritedFrom": {
3371
+ "name": "Accordion",
3372
+ "module": "src/accordion/accordion.ts"
3373
+ }
3252
3374
  },
3253
3375
  {
3254
3376
  "kind": "field",
3255
- "name": "lastValidCriteria",
3377
+ "name": "activeid",
3256
3378
  "type": {
3257
3379
  "text": "string | null"
3258
3380
  },
3259
- "default": "null"
3260
- },
3261
- {
3262
- "kind": "field",
3263
- "name": "activeGroups",
3264
- "type": {
3265
- "text": "CriteriaGroup[]"
3266
- },
3267
- "default": "[]"
3381
+ "privacy": "private",
3382
+ "inheritedFrom": {
3383
+ "name": "Accordion",
3384
+ "module": "src/accordion/accordion.ts"
3385
+ }
3268
3386
  },
3269
3387
  {
3270
3388
  "kind": "field",
3271
- "name": "showingChips",
3389
+ "name": "activeItemIndex",
3272
3390
  "type": {
3273
- "text": "boolean"
3391
+ "text": "number"
3274
3392
  },
3275
- "default": "false"
3393
+ "privacy": "private",
3394
+ "default": "0",
3395
+ "inheritedFrom": {
3396
+ "name": "Accordion",
3397
+ "module": "src/accordion/accordion.ts"
3398
+ }
3276
3399
  },
3277
3400
  {
3278
3401
  "kind": "field",
3279
- "name": "fieldMetadata",
3402
+ "name": "accordionIds",
3280
3403
  "type": {
3281
- "text": "MetadataDetail[] | string[]"
3404
+ "text": "Array<string | null>"
3282
3405
  },
3283
- "default": "[]"
3406
+ "privacy": "private",
3407
+ "inheritedFrom": {
3408
+ "name": "Accordion",
3409
+ "module": "src/accordion/accordion.ts"
3410
+ }
3284
3411
  },
3285
3412
  {
3286
3413
  "kind": "field",
3287
- "name": "isRecording",
3288
- "type": {
3289
- "text": "boolean"
3290
- },
3291
- "default": "false"
3414
+ "name": "change",
3415
+ "privacy": "private",
3416
+ "inheritedFrom": {
3417
+ "name": "Accordion",
3418
+ "module": "src/accordion/accordion.ts"
3419
+ }
3292
3420
  },
3293
3421
  {
3294
- "kind": "field",
3295
- "name": "textAreaRef",
3296
- "type": {
3297
- "text": "HTMLTextAreaElement"
3422
+ "kind": "method",
3423
+ "name": "findExpandedItem",
3424
+ "privacy": "private",
3425
+ "return": {
3426
+ "type": {
3427
+ "text": "AccordionItem | null"
3428
+ }
3298
3429
  },
3299
- "privacy": "public"
3430
+ "inheritedFrom": {
3431
+ "name": "Accordion",
3432
+ "module": "src/accordion/accordion.ts"
3433
+ }
3300
3434
  },
3301
3435
  {
3302
3436
  "kind": "field",
3303
- "name": "stopRecording",
3304
- "type": {
3305
- "text": "(() => void) | null"
3306
- },
3437
+ "name": "setItems",
3307
3438
  "privacy": "private",
3308
- "default": "null"
3439
+ "inheritedFrom": {
3440
+ "name": "Accordion",
3441
+ "module": "src/accordion/accordion.ts"
3442
+ }
3309
3443
  },
3310
3444
  {
3311
- "kind": "field",
3312
- "name": "speechApplyDebounceTimer",
3313
- "type": {
3314
- "text": "ReturnType<typeof setTimeout> | null"
3315
- },
3445
+ "kind": "method",
3446
+ "name": "resetItems",
3316
3447
  "privacy": "private",
3317
- "default": "null"
3448
+ "return": {
3449
+ "type": {
3450
+ "text": "void"
3451
+ }
3452
+ },
3453
+ "inheritedFrom": {
3454
+ "name": "Accordion",
3455
+ "module": "src/accordion/accordion.ts"
3456
+ }
3318
3457
  },
3319
3458
  {
3320
3459
  "kind": "field",
3321
- "name": "speechAvailable",
3322
- "type": {
3323
- "text": "boolean"
3324
- },
3325
- "readonly": true
3460
+ "name": "removeItemListeners",
3461
+ "privacy": "private",
3462
+ "inheritedFrom": {
3463
+ "name": "Accordion",
3464
+ "module": "src/accordion/accordion.ts"
3465
+ }
3326
3466
  },
3327
3467
  {
3328
3468
  "kind": "field",
3329
- "name": "criteriaChips",
3330
- "type": {
3331
- "text": "CriteriaChip[]"
3332
- },
3333
- "readonly": true
3469
+ "name": "activeItemChange",
3470
+ "privacy": "private",
3471
+ "inheritedFrom": {
3472
+ "name": "Accordion",
3473
+ "module": "src/accordion/accordion.ts"
3474
+ }
3334
3475
  },
3335
3476
  {
3336
3477
  "kind": "method",
3337
- "name": "getFieldLabel",
3478
+ "name": "getItemIds",
3338
3479
  "privacy": "private",
3339
3480
  "return": {
3340
3481
  "type": {
3341
- "text": "string"
3482
+ "text": "Array<string | null>"
3342
3483
  }
3343
3484
  },
3344
- "parameters": [
3345
- {
3346
- "name": "fieldName",
3347
- "type": {
3348
- "text": "string"
3349
- }
3350
- }
3351
- ]
3485
+ "inheritedFrom": {
3486
+ "name": "Accordion",
3487
+ "module": "src/accordion/accordion.ts"
3488
+ }
3352
3489
  },
3353
3490
  {
3354
3491
  "kind": "method",
3355
- "name": "toggleCriteriaView",
3492
+ "name": "isSingleExpandMode",
3493
+ "privacy": "private",
3356
3494
  "return": {
3357
3495
  "type": {
3358
- "text": "void"
3496
+ "text": "boolean"
3359
3497
  }
3498
+ },
3499
+ "inheritedFrom": {
3500
+ "name": "Accordion",
3501
+ "module": "src/accordion/accordion.ts"
3502
+ }
3503
+ },
3504
+ {
3505
+ "kind": "field",
3506
+ "name": "handleItemKeyDown",
3507
+ "privacy": "private",
3508
+ "inheritedFrom": {
3509
+ "name": "Accordion",
3510
+ "module": "src/accordion/accordion.ts"
3511
+ }
3512
+ },
3513
+ {
3514
+ "kind": "field",
3515
+ "name": "handleItemFocus",
3516
+ "privacy": "private",
3517
+ "inheritedFrom": {
3518
+ "name": "Accordion",
3519
+ "module": "src/accordion/accordion.ts"
3360
3520
  }
3361
3521
  },
3362
3522
  {
3363
3523
  "kind": "method",
3364
- "name": "removeChip",
3524
+ "name": "adjust",
3525
+ "privacy": "private",
3365
3526
  "return": {
3366
3527
  "type": {
3367
3528
  "text": "void"
@@ -3369,49 +3530,31 @@
3369
3530
  },
3370
3531
  "parameters": [
3371
3532
  {
3372
- "name": "groupIndex",
3373
- "type": {
3374
- "text": "number"
3375
- }
3376
- },
3377
- {
3378
- "name": "clauseIndex",
3533
+ "name": "adjustment",
3379
3534
  "type": {
3380
3535
  "text": "number"
3381
3536
  }
3382
3537
  }
3383
- ]
3538
+ ],
3539
+ "inheritedFrom": {
3540
+ "name": "Accordion",
3541
+ "module": "src/accordion/accordion.ts"
3542
+ }
3384
3543
  },
3385
3544
  {
3386
3545
  "kind": "method",
3387
- "name": "clearChips",
3546
+ "name": "focusItem",
3547
+ "privacy": "private",
3388
3548
  "return": {
3389
3549
  "type": {
3390
3550
  "text": "void"
3391
3551
  }
3552
+ },
3553
+ "inheritedFrom": {
3554
+ "name": "Accordion",
3555
+ "module": "src/accordion/accordion.ts"
3392
3556
  }
3393
3557
  },
3394
- {
3395
- "kind": "method",
3396
- "name": "handleSubmit"
3397
- },
3398
- {
3399
- "kind": "method",
3400
- "name": "handleBlur"
3401
- },
3402
- {
3403
- "kind": "method",
3404
- "name": "clear"
3405
- },
3406
- {
3407
- "kind": "method",
3408
- "name": "toggleSpeechInput"
3409
- },
3410
- {
3411
- "kind": "method",
3412
- "name": "clearSpeechApplyDebounce",
3413
- "privacy": "private"
3414
- },
3415
3558
  {
3416
3559
  "kind": "field",
3417
3560
  "name": "_presentation",
@@ -3526,48 +3669,26 @@
3526
3669
  ],
3527
3670
  "events": [
3528
3671
  {
3529
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3530
- "name": "criteria-changed"
3531
- },
3532
- {
3533
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3534
- "name": "validation-errors"
3535
- }
3536
- ],
3537
- "attributes": [
3538
- {
3539
- "name": "placeholder",
3540
- "type": {
3541
- "text": "string"
3542
- },
3543
- "default": "'Describe your search criteria in natural language...'",
3544
- "fieldName": "placeholder"
3545
- },
3546
- {
3547
- "type": {
3548
- "text": "boolean"
3549
- },
3550
- "fieldName": "disabled"
3672
+ "description": "Fires a custom 'change' event when the active item changes",
3673
+ "name": "change",
3674
+ "inheritedFrom": {
3675
+ "name": "Accordion",
3676
+ "module": "src/accordion/accordion.ts"
3677
+ }
3551
3678
  }
3552
- ],
3553
- "superclass": {
3554
- "name": "FoundationElement",
3555
- "package": "@microsoft/fast-foundation"
3556
- },
3557
- "tagName": "%%prefix%%-ai-criteria-search",
3558
- "customElement": true
3679
+ ]
3559
3680
  },
3560
3681
  {
3561
3682
  "kind": "variable",
3562
- "name": "foundationAiCriteriaSearchShadowOptions",
3683
+ "name": "foundationAccordionShadowOptions",
3563
3684
  "type": {
3564
3685
  "text": "ShadowRootInit"
3565
3686
  },
3566
- "default": "undefined"
3687
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3567
3688
  },
3568
3689
  {
3569
3690
  "kind": "variable",
3570
- "name": "defaultAiCriteriaSearchConfig",
3691
+ "name": "defaultAccordionConfig",
3571
3692
  "type": {
3572
3693
  "text": "object"
3573
3694
  },
@@ -3575,103 +3696,57 @@
3575
3696
  },
3576
3697
  {
3577
3698
  "kind": "variable",
3578
- "name": "foundationAiCriteriaSearch"
3699
+ "name": "foundationAccordion",
3700
+ "description": "The Foundation Accordion",
3701
+ "privacy": "public"
3579
3702
  }
3580
3703
  ],
3581
3704
  "exports": [
3582
3705
  {
3583
3706
  "kind": "js",
3584
- "name": "AiCriteriaSearch",
3707
+ "name": "Accordion",
3585
3708
  "declaration": {
3586
- "name": "AiCriteriaSearch",
3587
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3709
+ "name": "Accordion",
3710
+ "module": "src/accordion/accordion.ts"
3588
3711
  }
3589
3712
  },
3590
3713
  {
3591
3714
  "kind": "js",
3592
- "name": "foundationAiCriteriaSearchShadowOptions",
3715
+ "name": "foundationAccordionShadowOptions",
3593
3716
  "declaration": {
3594
- "name": "foundationAiCriteriaSearchShadowOptions",
3595
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3717
+ "name": "foundationAccordionShadowOptions",
3718
+ "module": "src/accordion/accordion.ts"
3596
3719
  }
3597
3720
  },
3598
3721
  {
3599
3722
  "kind": "js",
3600
- "name": "defaultAiCriteriaSearchConfig",
3723
+ "name": "defaultAccordionConfig",
3601
3724
  "declaration": {
3602
- "name": "defaultAiCriteriaSearchConfig",
3603
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3725
+ "name": "defaultAccordionConfig",
3726
+ "module": "src/accordion/accordion.ts"
3604
3727
  }
3605
3728
  },
3606
3729
  {
3607
3730
  "kind": "js",
3608
- "name": "foundationAiCriteriaSearch",
3731
+ "name": "foundationAccordion",
3609
3732
  "declaration": {
3610
- "name": "foundationAiCriteriaSearch",
3611
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3733
+ "name": "foundationAccordion",
3734
+ "module": "src/accordion/accordion.ts"
3612
3735
  }
3613
3736
  }
3614
3737
  ]
3615
3738
  },
3616
3739
  {
3617
3740
  "kind": "javascript-module",
3618
- "path": "src/ai-criteria-search/index.ts",
3741
+ "path": "src/accordion/index.ts",
3619
3742
  "declarations": [],
3620
3743
  "exports": [
3621
- {
3622
- "kind": "js",
3623
- "name": "AiCriteriaSearch",
3624
- "declaration": {
3625
- "name": "AiCriteriaSearch",
3626
- "module": "./ai-criteria-search"
3627
- }
3628
- },
3629
- {
3630
- "kind": "js",
3631
- "name": "defaultAiCriteriaSearchConfig",
3632
- "declaration": {
3633
- "name": "defaultAiCriteriaSearchConfig",
3634
- "module": "./ai-criteria-search"
3635
- }
3636
- },
3637
- {
3638
- "kind": "js",
3639
- "name": "foundationAiCriteriaSearch",
3640
- "declaration": {
3641
- "name": "foundationAiCriteriaSearch",
3642
- "module": "./ai-criteria-search"
3643
- }
3644
- },
3645
- {
3646
- "kind": "js",
3647
- "name": "foundationAiCriteriaSearchShadowOptions",
3648
- "declaration": {
3649
- "name": "foundationAiCriteriaSearchShadowOptions",
3650
- "module": "./ai-criteria-search"
3651
- }
3652
- },
3653
- {
3654
- "kind": "js",
3655
- "name": "foundationAiCriteriaSearchStyles",
3656
- "declaration": {
3657
- "name": "foundationAiCriteriaSearchStyles",
3658
- "module": "./ai-criteria-search.styles"
3659
- }
3660
- },
3661
- {
3662
- "kind": "js",
3663
- "name": "foundationAiCriteriaSearchTemplate",
3664
- "declaration": {
3665
- "name": "foundationAiCriteriaSearchTemplate",
3666
- "module": "./ai-criteria-search.template"
3667
- }
3668
- },
3669
3744
  {
3670
3745
  "kind": "js",
3671
3746
  "name": "*",
3672
3747
  "declaration": {
3673
3748
  "name": "*",
3674
- "package": "./validation/criteria-ir"
3749
+ "package": "./accordion.template"
3675
3750
  }
3676
3751
  },
3677
3752
  {
@@ -3679,7 +3754,7 @@
3679
3754
  "name": "*",
3680
3755
  "declaration": {
3681
3756
  "name": "*",
3682
- "package": "./validation/operator-map"
3757
+ "package": "./accordion.styles"
3683
3758
  }
3684
3759
  },
3685
3760
  {
@@ -3687,82 +3762,7 @@
3687
3762
  "name": "*",
3688
3763
  "declaration": {
3689
3764
  "name": "*",
3690
- "package": "./validation/schema-validator"
3691
- }
3692
- }
3693
- ]
3694
- },
3695
- {
3696
- "kind": "javascript-module",
3697
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3698
- "declarations": [
3699
- {
3700
- "kind": "function",
3701
- "name": "formatValidationErrors",
3702
- "return": {
3703
- "type": {
3704
- "text": "string"
3705
- }
3706
- },
3707
- "parameters": [
3708
- {
3709
- "name": "errors",
3710
- "type": {
3711
- "text": "ValidationError[]"
3712
- }
3713
- }
3714
- ],
3715
- "description": "Formats validation errors into a user-friendly message."
3716
- },
3717
- {
3718
- "kind": "function",
3719
- "name": "showCriteriaError",
3720
- "return": {
3721
- "type": {
3722
- "text": "void"
3723
- }
3724
- },
3725
- "parameters": [
3726
- {
3727
- "name": "title",
3728
- "type": {
3729
- "text": "string"
3730
- },
3731
- "description": "Notification title (e.g. \"Criteria validation error\")"
3732
- },
3733
- {
3734
- "name": "body",
3735
- "type": {
3736
- "text": "string"
3737
- },
3738
- "description": "Error message to display"
3739
- },
3740
- {
3741
- "name": "tagName",
3742
- "type": {
3743
- "text": "string"
3744
- },
3745
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3746
- }
3747
- ],
3748
- "description": "Shows a criteria error as a toast notification."
3749
- }
3750
- ],
3751
- "exports": [
3752
- {
3753
- "kind": "js",
3754
- "name": "formatValidationErrors",
3755
- "declaration": {
3756
- "name": "formatValidationErrors",
3757
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3758
- }
3759
- },
3760
- {
3761
- "kind": "js",
3762
- "name": "showCriteriaError",
3763
- "declaration": {
3764
- "name": "showCriteriaError",
3765
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3765
+ "package": "./accordion"
3766
3766
  }
3767
3767
  }
3768
3768
  ]