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