@genesislcap/foundation-ui 15.10.1 → 15.10.3

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.
@@ -1422,37 +1422,6 @@
1422
1422
  }
1423
1423
  ]
1424
1424
  },
1425
- {
1426
- "kind": "javascript-module",
1427
- "path": "src/_config/index.ts",
1428
- "declarations": [],
1429
- "exports": [
1430
- {
1431
- "kind": "js",
1432
- "name": "*",
1433
- "declaration": {
1434
- "name": "*",
1435
- "package": "./styles"
1436
- }
1437
- },
1438
- {
1439
- "kind": "js",
1440
- "name": "*",
1441
- "declaration": {
1442
- "name": "*",
1443
- "package": "./tokens"
1444
- }
1445
- },
1446
- {
1447
- "kind": "js",
1448
- "name": "*",
1449
- "declaration": {
1450
- "name": "*",
1451
- "package": "./values"
1452
- }
1453
- }
1454
- ]
1455
- },
1456
1425
  {
1457
1426
  "kind": "javascript-module",
1458
1427
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1849,115 +1818,234 @@
1849
1818
  },
1850
1819
  {
1851
1820
  "kind": "javascript-module",
1852
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
1821
+ "path": "src/_config/index.ts",
1822
+ "declarations": [],
1823
+ "exports": [
1824
+ {
1825
+ "kind": "js",
1826
+ "name": "*",
1827
+ "declaration": {
1828
+ "name": "*",
1829
+ "package": "./styles"
1830
+ }
1831
+ },
1832
+ {
1833
+ "kind": "js",
1834
+ "name": "*",
1835
+ "declaration": {
1836
+ "name": "*",
1837
+ "package": "./tokens"
1838
+ }
1839
+ },
1840
+ {
1841
+ "kind": "js",
1842
+ "name": "*",
1843
+ "declaration": {
1844
+ "name": "*",
1845
+ "package": "./values"
1846
+ }
1847
+ }
1848
+ ]
1849
+ },
1850
+ {
1851
+ "kind": "javascript-module",
1852
+ "path": "src/actions-menu/actions-menu.styles.ts",
1853
1853
  "declarations": [
1854
1854
  {
1855
- "kind": "variable",
1856
- "name": "foundationAiCriteriaSearchStyles",
1857
- "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`"
1855
+ "kind": "function",
1856
+ "name": "actionsMenuBaseStyles",
1857
+ "return": {
1858
+ "type": {
1859
+ "text": "ElementStyles"
1860
+ }
1861
+ },
1862
+ "parameters": [
1863
+ {
1864
+ "name": "context",
1865
+ "type": {
1866
+ "text": "ElementDefinitionContext"
1867
+ }
1868
+ },
1869
+ {
1870
+ "name": "definition",
1871
+ "type": {
1872
+ "text": "FoundationElementDefinition"
1873
+ }
1874
+ }
1875
+ ]
1876
+ },
1877
+ {
1878
+ "kind": "function",
1879
+ "name": "foundationActionsMenuStyles",
1880
+ "return": {
1881
+ "type": {
1882
+ "text": "ElementStyles"
1883
+ }
1884
+ },
1885
+ "parameters": [
1886
+ {
1887
+ "name": "context",
1888
+ "type": {
1889
+ "text": "ElementDefinitionContext"
1890
+ }
1891
+ },
1892
+ {
1893
+ "name": "definition",
1894
+ "type": {
1895
+ "text": "FoundationElementDefinition"
1896
+ }
1897
+ }
1898
+ ]
1858
1899
  }
1859
1900
  ],
1860
1901
  "exports": [
1861
1902
  {
1862
1903
  "kind": "js",
1863
- "name": "foundationAiCriteriaSearchStyles",
1904
+ "name": "actionsMenuBaseStyles",
1864
1905
  "declaration": {
1865
- "name": "foundationAiCriteriaSearchStyles",
1866
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
1906
+ "name": "actionsMenuBaseStyles",
1907
+ "module": "src/actions-menu/actions-menu.styles.ts"
1908
+ }
1909
+ },
1910
+ {
1911
+ "kind": "js",
1912
+ "name": "foundationActionsMenuStyles",
1913
+ "declaration": {
1914
+ "name": "foundationActionsMenuStyles",
1915
+ "module": "src/actions-menu/actions-menu.styles.ts"
1867
1916
  }
1868
1917
  }
1869
1918
  ]
1870
1919
  },
1871
1920
  {
1872
1921
  "kind": "javascript-module",
1873
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
1922
+ "path": "src/actions-menu/actions-menu.template.ts",
1874
1923
  "declarations": [
1924
+ {
1925
+ "kind": "function",
1926
+ "name": "menuTemplate",
1927
+ "parameters": [
1928
+ {
1929
+ "name": "prefix",
1930
+ "type": {
1931
+ "text": "string"
1932
+ }
1933
+ }
1934
+ ]
1935
+ },
1936
+ {
1937
+ "kind": "function",
1938
+ "name": "singleOptionTemplate",
1939
+ "parameters": [
1940
+ {
1941
+ "name": "prefix",
1942
+ "type": {
1943
+ "text": "string"
1944
+ }
1945
+ }
1946
+ ]
1947
+ },
1875
1948
  {
1876
1949
  "kind": "variable",
1877
- "name": "foundationAiCriteriaSearchTemplate",
1950
+ "name": "foundationActionsMenuTemplate",
1878
1951
  "type": {
1879
- "text": "ViewTemplate<AiCriteriaSearch>"
1952
+ "text": "ViewTemplate<ActionsMenu>"
1880
1953
  },
1881
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
1954
+ "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`"
1882
1955
  }
1883
1956
  ],
1884
1957
  "exports": [
1885
1958
  {
1886
1959
  "kind": "js",
1887
- "name": "foundationAiCriteriaSearchTemplate",
1960
+ "name": "menuTemplate",
1888
1961
  "declaration": {
1889
- "name": "foundationAiCriteriaSearchTemplate",
1890
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
1962
+ "name": "menuTemplate",
1963
+ "module": "src/actions-menu/actions-menu.template.ts"
1964
+ }
1965
+ },
1966
+ {
1967
+ "kind": "js",
1968
+ "name": "singleOptionTemplate",
1969
+ "declaration": {
1970
+ "name": "singleOptionTemplate",
1971
+ "module": "src/actions-menu/actions-menu.template.ts"
1972
+ }
1973
+ },
1974
+ {
1975
+ "kind": "js",
1976
+ "name": "foundationActionsMenuTemplate",
1977
+ "declaration": {
1978
+ "name": "foundationActionsMenuTemplate",
1979
+ "module": "src/actions-menu/actions-menu.template.ts"
1891
1980
  }
1892
1981
  }
1893
1982
  ]
1894
1983
  },
1895
1984
  {
1896
1985
  "kind": "javascript-module",
1897
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
1986
+ "path": "src/actions-menu/actions-menu.ts",
1898
1987
  "declarations": [
1899
1988
  {
1900
1989
  "kind": "class",
1901
- "description": "Natural-language criteria search input with AI interpretation.",
1902
- "name": "AiCriteriaSearch",
1990
+ "description": "",
1991
+ "name": "ActionsMenu",
1903
1992
  "members": [
1904
1993
  {
1905
1994
  "kind": "field",
1906
- "name": "providerRegistry",
1995
+ "name": "actions",
1907
1996
  "type": {
1908
- "text": "AIProviderRegistry"
1997
+ "text": "ActionMenuItem[]"
1909
1998
  }
1910
1999
  },
1911
2000
  {
1912
2001
  "kind": "field",
1913
- "name": "placeholder",
2002
+ "name": "isVertical",
1914
2003
  "type": {
1915
- "text": "string"
2004
+ "text": "boolean"
1916
2005
  },
1917
- "default": "'Describe your search criteria in natural language...'"
2006
+ "default": "false"
1918
2007
  },
1919
2008
  {
1920
2009
  "kind": "field",
1921
- "name": "disabled",
2010
+ "name": "addDefaultActions",
1922
2011
  "type": {
1923
2012
  "text": "boolean"
1924
- }
2013
+ },
2014
+ "default": "true"
1925
2015
  },
1926
2016
  {
1927
2017
  "kind": "field",
1928
- "name": "inputValue",
2018
+ "name": "autoCloseOnAction",
1929
2019
  "type": {
1930
- "text": "string"
2020
+ "text": "boolean"
1931
2021
  },
1932
- "default": "''"
2022
+ "default": "true"
1933
2023
  },
1934
2024
  {
1935
2025
  "kind": "field",
1936
- "name": "isInterpreting",
2026
+ "name": "classNames",
1937
2027
  "type": {
1938
- "text": "boolean"
1939
- },
1940
- "default": "false"
2028
+ "text": "string"
2029
+ }
1941
2030
  },
1942
2031
  {
1943
2032
  "kind": "field",
1944
- "name": "lastValidCriteria",
2033
+ "name": "definition",
1945
2034
  "type": {
1946
- "text": "string | null"
1947
- },
1948
- "default": "null"
2035
+ "text": "any"
2036
+ }
1949
2037
  },
1950
2038
  {
1951
2039
  "kind": "field",
1952
- "name": "activeGroups",
2040
+ "name": "name",
1953
2041
  "type": {
1954
- "text": "CriteriaGroup[]"
2042
+ "text": "string"
1955
2043
  },
1956
- "default": "[]"
2044
+ "default": "'Actions'"
1957
2045
  },
1958
2046
  {
1959
2047
  "kind": "field",
1960
- "name": "showingChips",
2048
+ "name": "open",
1961
2049
  "type": {
1962
2050
  "text": "boolean"
1963
2051
  },
@@ -1965,15 +2053,14 @@
1965
2053
  },
1966
2054
  {
1967
2055
  "kind": "field",
1968
- "name": "fieldMetadata",
2056
+ "name": "buttonAppearance",
1969
2057
  "type": {
1970
- "text": "MetadataDetail[] | string[]"
1971
- },
1972
- "default": "[]"
2058
+ "text": "string"
2059
+ }
1973
2060
  },
1974
2061
  {
1975
2062
  "kind": "field",
1976
- "name": "isRecording",
2063
+ "name": "hideDisabled",
1977
2064
  "type": {
1978
2065
  "text": "boolean"
1979
2066
  },
@@ -1981,125 +2068,114 @@
1981
2068
  },
1982
2069
  {
1983
2070
  "kind": "field",
1984
- "name": "textAreaRef",
2071
+ "name": "hideMenuSingleOption",
1985
2072
  "type": {
1986
- "text": "HTMLTextAreaElement"
2073
+ "text": "boolean"
1987
2074
  },
1988
- "privacy": "public"
2075
+ "default": "false"
1989
2076
  },
1990
2077
  {
1991
2078
  "kind": "field",
1992
- "name": "stopRecording",
2079
+ "name": "singleOption",
1993
2080
  "type": {
1994
- "text": "(() => void) | null"
1995
- },
1996
- "privacy": "private",
1997
- "default": "null"
2081
+ "text": "ActionMenuItem"
2082
+ }
1998
2083
  },
1999
2084
  {
2000
2085
  "kind": "field",
2001
- "name": "speechApplyDebounceTimer",
2086
+ "name": "actionsMenu",
2002
2087
  "type": {
2003
- "text": "ReturnType<typeof setTimeout> | null"
2004
- },
2005
- "privacy": "private",
2006
- "default": "null"
2007
- },
2008
- {
2009
- "kind": "field",
2010
- "name": "speechAvailable",
2011
- "type": {
2012
- "text": "boolean"
2013
- },
2014
- "readonly": true
2088
+ "text": "HTMLElement"
2089
+ }
2015
2090
  },
2016
2091
  {
2017
2092
  "kind": "field",
2018
- "name": "criteriaChips",
2093
+ "name": "actionsOpener",
2019
2094
  "type": {
2020
- "text": "CriteriaChip[]"
2021
- },
2022
- "readonly": true
2023
- },
2024
- {
2025
- "kind": "method",
2026
- "name": "getFieldLabel",
2027
- "privacy": "private",
2028
- "return": {
2029
- "type": {
2030
- "text": "string"
2031
- }
2032
- },
2033
- "parameters": [
2034
- {
2035
- "name": "fieldName",
2036
- "type": {
2037
- "text": "string"
2038
- }
2039
- }
2040
- ]
2095
+ "text": "HTMLElement"
2096
+ }
2041
2097
  },
2042
2098
  {
2043
2099
  "kind": "method",
2044
- "name": "toggleCriteriaView",
2045
- "return": {
2046
- "type": {
2047
- "text": "void"
2048
- }
2049
- }
2100
+ "name": "updateMenuPosition",
2101
+ "privacy": "private"
2050
2102
  },
2051
2103
  {
2052
2104
  "kind": "method",
2053
- "name": "removeChip",
2054
- "return": {
2055
- "type": {
2056
- "text": "void"
2057
- }
2058
- },
2105
+ "name": "definitionChanged",
2106
+ "privacy": "protected",
2059
2107
  "parameters": [
2060
2108
  {
2061
- "name": "groupIndex",
2109
+ "name": "oldValue",
2062
2110
  "type": {
2063
- "text": "number"
2111
+ "text": "any"
2064
2112
  }
2065
2113
  },
2066
2114
  {
2067
- "name": "clauseIndex",
2115
+ "name": "newValue",
2068
2116
  "type": {
2069
- "text": "number"
2117
+ "text": "any"
2070
2118
  }
2071
2119
  }
2072
2120
  ]
2073
2121
  },
2074
2122
  {
2075
2123
  "kind": "method",
2076
- "name": "clearChips",
2077
- "return": {
2078
- "type": {
2079
- "text": "void"
2080
- }
2081
- }
2124
+ "name": "openChanged",
2125
+ "privacy": "protected"
2082
2126
  },
2083
2127
  {
2084
2128
  "kind": "method",
2085
- "name": "handleSubmit"
2129
+ "name": "toggleActionsMenuVisibility"
2086
2130
  },
2087
2131
  {
2088
2132
  "kind": "method",
2089
- "name": "handleBlur"
2133
+ "name": "onActionMenuItemClick",
2134
+ "parameters": [
2135
+ {
2136
+ "name": "callback",
2137
+ "type": {
2138
+ "text": "(rowData) => void | any"
2139
+ }
2140
+ }
2141
+ ]
2090
2142
  },
2091
2143
  {
2092
- "kind": "method",
2093
- "name": "clear"
2144
+ "kind": "field",
2145
+ "name": "allActions",
2146
+ "type": {
2147
+ "text": "ActionMenuItem[]"
2148
+ },
2149
+ "readonly": true
2150
+ },
2151
+ {
2152
+ "kind": "field",
2153
+ "name": "rowData",
2154
+ "readonly": true
2094
2155
  },
2095
2156
  {
2096
2157
  "kind": "method",
2097
- "name": "toggleSpeechInput"
2158
+ "name": "getLabel",
2159
+ "parameters": [
2160
+ {
2161
+ "name": "name",
2162
+ "type": {
2163
+ "text": "string | ((rowData: any) => string)"
2164
+ }
2165
+ }
2166
+ ]
2098
2167
  },
2099
2168
  {
2100
2169
  "kind": "method",
2101
- "name": "clearSpeechApplyDebounce",
2102
- "privacy": "private"
2170
+ "name": "getTemplate",
2171
+ "parameters": [
2172
+ {
2173
+ "name": "prefix",
2174
+ "type": {
2175
+ "text": "string"
2176
+ }
2177
+ }
2178
+ ]
2103
2179
  },
2104
2180
  {
2105
2181
  "kind": "field",
@@ -2213,448 +2289,246 @@
2213
2289
  }
2214
2290
  }
2215
2291
  ],
2216
- "events": [
2292
+ "attributes": [
2217
2293
  {
2218
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2219
- "name": "criteria-changed"
2294
+ "name": "is-vertical",
2295
+ "type": {
2296
+ "text": "boolean"
2297
+ },
2298
+ "default": "false",
2299
+ "fieldName": "isVertical"
2220
2300
  },
2221
2301
  {
2222
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2223
- "name": "validation-errors"
2224
- }
2225
- ],
2226
- "attributes": [
2302
+ "name": "add-default-actions",
2303
+ "type": {
2304
+ "text": "boolean"
2305
+ },
2306
+ "default": "true",
2307
+ "fieldName": "addDefaultActions"
2308
+ },
2227
2309
  {
2228
- "name": "placeholder",
2310
+ "name": "auto-close-on-action",
2311
+ "type": {
2312
+ "text": "boolean"
2313
+ },
2314
+ "default": "true",
2315
+ "fieldName": "autoCloseOnAction"
2316
+ },
2317
+ {
2318
+ "name": "name",
2229
2319
  "type": {
2230
2320
  "text": "string"
2231
2321
  },
2232
- "default": "'Describe your search criteria in natural language...'",
2233
- "fieldName": "placeholder"
2322
+ "default": "'Actions'",
2323
+ "fieldName": "name"
2234
2324
  },
2235
2325
  {
2326
+ "name": "open",
2236
2327
  "type": {
2237
2328
  "text": "boolean"
2238
2329
  },
2239
- "fieldName": "disabled"
2330
+ "default": "false",
2331
+ "fieldName": "open"
2332
+ },
2333
+ {
2334
+ "name": "buttonAppearance",
2335
+ "type": {
2336
+ "text": "string"
2337
+ },
2338
+ "fieldName": "buttonAppearance"
2339
+ },
2340
+ {
2341
+ "name": "hide-disabled",
2342
+ "type": {
2343
+ "text": "boolean"
2344
+ },
2345
+ "default": "false",
2346
+ "fieldName": "hideDisabled"
2347
+ },
2348
+ {
2349
+ "name": "hide-menu-single-option",
2350
+ "type": {
2351
+ "text": "boolean"
2352
+ },
2353
+ "default": "false",
2354
+ "fieldName": "hideMenuSingleOption"
2240
2355
  }
2241
2356
  ],
2242
2357
  "superclass": {
2243
2358
  "name": "FoundationElement",
2244
2359
  "package": "@microsoft/fast-foundation"
2245
2360
  },
2246
- "tagName": "%%prefix%%-ai-criteria-search",
2361
+ "tagName": "%%prefix%%-actions-menu",
2247
2362
  "customElement": true
2248
2363
  },
2249
2364
  {
2250
2365
  "kind": "variable",
2251
- "name": "foundationAiCriteriaSearchShadowOptions",
2252
- "type": {
2253
- "text": "ShadowRootInit"
2254
- },
2255
- "default": "undefined"
2256
- },
2257
- {
2258
- "kind": "variable",
2259
- "name": "defaultAiCriteriaSearchConfig",
2260
- "type": {
2261
- "text": "object"
2262
- },
2263
- "default": "{}"
2264
- },
2265
- {
2266
- "kind": "variable",
2267
- "name": "foundationAiCriteriaSearch"
2366
+ "name": "foundationActionsMenu",
2367
+ "description": "The Foundation Actions Menu",
2368
+ "privacy": "public"
2268
2369
  }
2269
2370
  ],
2270
2371
  "exports": [
2271
2372
  {
2272
2373
  "kind": "js",
2273
- "name": "AiCriteriaSearch",
2274
- "declaration": {
2275
- "name": "AiCriteriaSearch",
2276
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2277
- }
2278
- },
2279
- {
2280
- "kind": "js",
2281
- "name": "foundationAiCriteriaSearchShadowOptions",
2282
- "declaration": {
2283
- "name": "foundationAiCriteriaSearchShadowOptions",
2284
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2285
- }
2286
- },
2287
- {
2288
- "kind": "js",
2289
- "name": "defaultAiCriteriaSearchConfig",
2374
+ "name": "ActionsMenu",
2290
2375
  "declaration": {
2291
- "name": "defaultAiCriteriaSearchConfig",
2292
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2376
+ "name": "ActionsMenu",
2377
+ "module": "src/actions-menu/actions-menu.ts"
2293
2378
  }
2294
2379
  },
2295
2380
  {
2296
2381
  "kind": "js",
2297
- "name": "foundationAiCriteriaSearch",
2382
+ "name": "foundationActionsMenu",
2298
2383
  "declaration": {
2299
- "name": "foundationAiCriteriaSearch",
2300
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2384
+ "name": "foundationActionsMenu",
2385
+ "module": "src/actions-menu/actions-menu.ts"
2301
2386
  }
2302
2387
  }
2303
2388
  ]
2304
2389
  },
2305
2390
  {
2306
2391
  "kind": "javascript-module",
2307
- "path": "src/ai-criteria-search/index.ts",
2392
+ "path": "src/actions-menu/index.ts",
2308
2393
  "declarations": [],
2309
2394
  "exports": [
2310
2395
  {
2311
2396
  "kind": "js",
2312
- "name": "AiCriteriaSearch",
2397
+ "name": "*",
2313
2398
  "declaration": {
2314
- "name": "AiCriteriaSearch",
2315
- "module": "./ai-criteria-search"
2399
+ "name": "*",
2400
+ "package": "./actions-menu.styles"
2316
2401
  }
2317
2402
  },
2318
2403
  {
2319
2404
  "kind": "js",
2320
- "name": "defaultAiCriteriaSearchConfig",
2405
+ "name": "*",
2321
2406
  "declaration": {
2322
- "name": "defaultAiCriteriaSearchConfig",
2323
- "module": "./ai-criteria-search"
2407
+ "name": "*",
2408
+ "package": "./actions-menu.template"
2324
2409
  }
2325
2410
  },
2326
2411
  {
2327
2412
  "kind": "js",
2328
- "name": "foundationAiCriteriaSearch",
2413
+ "name": "*",
2329
2414
  "declaration": {
2330
- "name": "foundationAiCriteriaSearch",
2331
- "module": "./ai-criteria-search"
2415
+ "name": "*",
2416
+ "package": "./actions-menu"
2332
2417
  }
2333
- },
2418
+ }
2419
+ ]
2420
+ },
2421
+ {
2422
+ "kind": "javascript-module",
2423
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2424
+ "declarations": [
2334
2425
  {
2335
- "kind": "js",
2336
- "name": "foundationAiCriteriaSearchShadowOptions",
2337
- "declaration": {
2338
- "name": "foundationAiCriteriaSearchShadowOptions",
2339
- "module": "./ai-criteria-search"
2340
- }
2341
- },
2342
- {
2343
- "kind": "js",
2426
+ "kind": "variable",
2344
2427
  "name": "foundationAiCriteriaSearchStyles",
2345
- "declaration": {
2346
- "name": "foundationAiCriteriaSearchStyles",
2347
- "module": "./ai-criteria-search.styles"
2348
- }
2349
- },
2350
- {
2351
- "kind": "js",
2352
- "name": "foundationAiCriteriaSearchTemplate",
2353
- "declaration": {
2354
- "name": "foundationAiCriteriaSearchTemplate",
2355
- "module": "./ai-criteria-search.template"
2356
- }
2357
- },
2358
- {
2359
- "kind": "js",
2360
- "name": "*",
2361
- "declaration": {
2362
- "name": "*",
2363
- "package": "./validation/criteria-ir"
2364
- }
2365
- },
2366
- {
2367
- "kind": "js",
2368
- "name": "*",
2369
- "declaration": {
2370
- "name": "*",
2371
- "package": "./validation/operator-map"
2372
- }
2373
- },
2374
- {
2375
- "kind": "js",
2376
- "name": "*",
2377
- "declaration": {
2378
- "name": "*",
2379
- "package": "./validation/schema-validator"
2380
- }
2381
- }
2382
- ]
2383
- },
2384
- {
2385
- "kind": "javascript-module",
2386
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2387
- "declarations": [
2388
- {
2389
- "kind": "function",
2390
- "name": "formatValidationErrors",
2391
- "return": {
2392
- "type": {
2393
- "text": "string"
2394
- }
2395
- },
2396
- "parameters": [
2397
- {
2398
- "name": "errors",
2399
- "type": {
2400
- "text": "ValidationError[]"
2401
- }
2402
- }
2403
- ],
2404
- "description": "Formats validation errors into a user-friendly message."
2405
- },
2406
- {
2407
- "kind": "function",
2408
- "name": "showCriteriaError",
2409
- "return": {
2410
- "type": {
2411
- "text": "void"
2412
- }
2413
- },
2414
- "parameters": [
2415
- {
2416
- "name": "title",
2417
- "type": {
2418
- "text": "string"
2419
- },
2420
- "description": "Notification title (e.g. \"Criteria validation error\")"
2421
- },
2422
- {
2423
- "name": "body",
2424
- "type": {
2425
- "text": "string"
2426
- },
2427
- "description": "Error message to display"
2428
- },
2429
- {
2430
- "name": "tagName",
2431
- "type": {
2432
- "text": "string"
2433
- },
2434
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2435
- }
2436
- ],
2437
- "description": "Shows a criteria error as a toast notification."
2438
- }
2439
- ],
2440
- "exports": [
2441
- {
2442
- "kind": "js",
2443
- "name": "formatValidationErrors",
2444
- "declaration": {
2445
- "name": "formatValidationErrors",
2446
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2447
- }
2448
- },
2449
- {
2450
- "kind": "js",
2451
- "name": "showCriteriaError",
2452
- "declaration": {
2453
- "name": "showCriteriaError",
2454
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2455
- }
2456
- }
2457
- ]
2458
- },
2459
- {
2460
- "kind": "javascript-module",
2461
- "path": "src/actions-menu/actions-menu.styles.ts",
2462
- "declarations": [
2463
- {
2464
- "kind": "function",
2465
- "name": "actionsMenuBaseStyles",
2466
- "return": {
2467
- "type": {
2468
- "text": "ElementStyles"
2469
- }
2470
- },
2471
- "parameters": [
2472
- {
2473
- "name": "context",
2474
- "type": {
2475
- "text": "ElementDefinitionContext"
2476
- }
2477
- },
2478
- {
2479
- "name": "definition",
2480
- "type": {
2481
- "text": "FoundationElementDefinition"
2482
- }
2483
- }
2484
- ]
2485
- },
2486
- {
2487
- "kind": "function",
2488
- "name": "foundationActionsMenuStyles",
2489
- "return": {
2490
- "type": {
2491
- "text": "ElementStyles"
2492
- }
2493
- },
2494
- "parameters": [
2495
- {
2496
- "name": "context",
2497
- "type": {
2498
- "text": "ElementDefinitionContext"
2499
- }
2500
- },
2501
- {
2502
- "name": "definition",
2503
- "type": {
2504
- "text": "FoundationElementDefinition"
2505
- }
2506
- }
2507
- ]
2428
+ "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`"
2508
2429
  }
2509
2430
  ],
2510
2431
  "exports": [
2511
2432
  {
2512
2433
  "kind": "js",
2513
- "name": "actionsMenuBaseStyles",
2514
- "declaration": {
2515
- "name": "actionsMenuBaseStyles",
2516
- "module": "src/actions-menu/actions-menu.styles.ts"
2517
- }
2518
- },
2519
- {
2520
- "kind": "js",
2521
- "name": "foundationActionsMenuStyles",
2434
+ "name": "foundationAiCriteriaSearchStyles",
2522
2435
  "declaration": {
2523
- "name": "foundationActionsMenuStyles",
2524
- "module": "src/actions-menu/actions-menu.styles.ts"
2436
+ "name": "foundationAiCriteriaSearchStyles",
2437
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2525
2438
  }
2526
2439
  }
2527
2440
  ]
2528
2441
  },
2529
2442
  {
2530
2443
  "kind": "javascript-module",
2531
- "path": "src/actions-menu/actions-menu.template.ts",
2444
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2532
2445
  "declarations": [
2533
- {
2534
- "kind": "function",
2535
- "name": "menuTemplate",
2536
- "parameters": [
2537
- {
2538
- "name": "prefix",
2539
- "type": {
2540
- "text": "string"
2541
- }
2542
- }
2543
- ]
2544
- },
2545
- {
2546
- "kind": "function",
2547
- "name": "singleOptionTemplate",
2548
- "parameters": [
2549
- {
2550
- "name": "prefix",
2551
- "type": {
2552
- "text": "string"
2553
- }
2554
- }
2555
- ]
2556
- },
2557
2446
  {
2558
2447
  "kind": "variable",
2559
- "name": "foundationActionsMenuTemplate",
2448
+ "name": "foundationAiCriteriaSearchTemplate",
2560
2449
  "type": {
2561
- "text": "ViewTemplate<ActionsMenu>"
2450
+ "text": "ViewTemplate<AiCriteriaSearch>"
2562
2451
  },
2563
- "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`"
2452
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2564
2453
  }
2565
2454
  ],
2566
2455
  "exports": [
2567
2456
  {
2568
2457
  "kind": "js",
2569
- "name": "menuTemplate",
2570
- "declaration": {
2571
- "name": "menuTemplate",
2572
- "module": "src/actions-menu/actions-menu.template.ts"
2573
- }
2574
- },
2575
- {
2576
- "kind": "js",
2577
- "name": "singleOptionTemplate",
2578
- "declaration": {
2579
- "name": "singleOptionTemplate",
2580
- "module": "src/actions-menu/actions-menu.template.ts"
2581
- }
2582
- },
2583
- {
2584
- "kind": "js",
2585
- "name": "foundationActionsMenuTemplate",
2458
+ "name": "foundationAiCriteriaSearchTemplate",
2586
2459
  "declaration": {
2587
- "name": "foundationActionsMenuTemplate",
2588
- "module": "src/actions-menu/actions-menu.template.ts"
2460
+ "name": "foundationAiCriteriaSearchTemplate",
2461
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2589
2462
  }
2590
2463
  }
2591
2464
  ]
2592
2465
  },
2593
2466
  {
2594
2467
  "kind": "javascript-module",
2595
- "path": "src/actions-menu/actions-menu.ts",
2468
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2596
2469
  "declarations": [
2597
2470
  {
2598
2471
  "kind": "class",
2599
- "description": "",
2600
- "name": "ActionsMenu",
2472
+ "description": "Natural-language criteria search input with AI interpretation.",
2473
+ "name": "AiCriteriaSearch",
2601
2474
  "members": [
2602
2475
  {
2603
2476
  "kind": "field",
2604
- "name": "actions",
2477
+ "name": "providerRegistry",
2605
2478
  "type": {
2606
- "text": "ActionMenuItem[]"
2479
+ "text": "AIProviderRegistry"
2607
2480
  }
2608
2481
  },
2609
2482
  {
2610
2483
  "kind": "field",
2611
- "name": "isVertical",
2484
+ "name": "placeholder",
2612
2485
  "type": {
2613
- "text": "boolean"
2486
+ "text": "string"
2614
2487
  },
2615
- "default": "false"
2488
+ "default": "'Describe your search criteria in natural language...'"
2616
2489
  },
2617
2490
  {
2618
2491
  "kind": "field",
2619
- "name": "addDefaultActions",
2492
+ "name": "disabled",
2620
2493
  "type": {
2621
2494
  "text": "boolean"
2622
- },
2623
- "default": "true"
2495
+ }
2624
2496
  },
2625
2497
  {
2626
2498
  "kind": "field",
2627
- "name": "autoCloseOnAction",
2499
+ "name": "inputValue",
2628
2500
  "type": {
2629
- "text": "boolean"
2501
+ "text": "string"
2630
2502
  },
2631
- "default": "true"
2503
+ "default": "''"
2632
2504
  },
2633
2505
  {
2634
2506
  "kind": "field",
2635
- "name": "classNames",
2507
+ "name": "isInterpreting",
2636
2508
  "type": {
2637
- "text": "string"
2638
- }
2509
+ "text": "boolean"
2510
+ },
2511
+ "default": "false"
2639
2512
  },
2640
2513
  {
2641
2514
  "kind": "field",
2642
- "name": "definition",
2515
+ "name": "lastValidCriteria",
2643
2516
  "type": {
2644
- "text": "any"
2645
- }
2517
+ "text": "string | null"
2518
+ },
2519
+ "default": "null"
2646
2520
  },
2647
2521
  {
2648
2522
  "kind": "field",
2649
- "name": "name",
2523
+ "name": "activeGroups",
2650
2524
  "type": {
2651
- "text": "string"
2525
+ "text": "CriteriaGroup[]"
2652
2526
  },
2653
- "default": "'Actions'"
2527
+ "default": "[]"
2654
2528
  },
2655
2529
  {
2656
2530
  "kind": "field",
2657
- "name": "open",
2531
+ "name": "showingChips",
2658
2532
  "type": {
2659
2533
  "text": "boolean"
2660
2534
  },
@@ -2662,14 +2536,15 @@
2662
2536
  },
2663
2537
  {
2664
2538
  "kind": "field",
2665
- "name": "buttonAppearance",
2539
+ "name": "fieldMetadata",
2666
2540
  "type": {
2667
- "text": "string"
2668
- }
2541
+ "text": "MetadataDetail[] | string[]"
2542
+ },
2543
+ "default": "[]"
2669
2544
  },
2670
2545
  {
2671
2546
  "kind": "field",
2672
- "name": "hideDisabled",
2547
+ "name": "isRecording",
2673
2548
  "type": {
2674
2549
  "text": "boolean"
2675
2550
  },
@@ -2677,114 +2552,125 @@
2677
2552
  },
2678
2553
  {
2679
2554
  "kind": "field",
2680
- "name": "hideMenuSingleOption",
2555
+ "name": "textAreaRef",
2681
2556
  "type": {
2682
- "text": "boolean"
2557
+ "text": "HTMLTextAreaElement"
2683
2558
  },
2684
- "default": "false"
2559
+ "privacy": "public"
2685
2560
  },
2686
2561
  {
2687
2562
  "kind": "field",
2688
- "name": "singleOption",
2563
+ "name": "stopRecording",
2689
2564
  "type": {
2690
- "text": "ActionMenuItem"
2691
- }
2565
+ "text": "(() => void) | null"
2566
+ },
2567
+ "privacy": "private",
2568
+ "default": "null"
2692
2569
  },
2693
2570
  {
2694
2571
  "kind": "field",
2695
- "name": "actionsMenu",
2572
+ "name": "speechApplyDebounceTimer",
2696
2573
  "type": {
2697
- "text": "HTMLElement"
2698
- }
2574
+ "text": "ReturnType<typeof setTimeout> | null"
2575
+ },
2576
+ "privacy": "private",
2577
+ "default": "null"
2699
2578
  },
2700
2579
  {
2701
2580
  "kind": "field",
2702
- "name": "actionsOpener",
2581
+ "name": "speechAvailable",
2703
2582
  "type": {
2704
- "text": "HTMLElement"
2705
- }
2583
+ "text": "boolean"
2584
+ },
2585
+ "readonly": true
2706
2586
  },
2707
2587
  {
2708
- "kind": "method",
2709
- "name": "updateMenuPosition",
2710
- "privacy": "private"
2588
+ "kind": "field",
2589
+ "name": "criteriaChips",
2590
+ "type": {
2591
+ "text": "CriteriaChip[]"
2592
+ },
2593
+ "readonly": true
2711
2594
  },
2712
2595
  {
2713
2596
  "kind": "method",
2714
- "name": "definitionChanged",
2715
- "privacy": "protected",
2597
+ "name": "getFieldLabel",
2598
+ "privacy": "private",
2599
+ "return": {
2600
+ "type": {
2601
+ "text": "string"
2602
+ }
2603
+ },
2716
2604
  "parameters": [
2717
2605
  {
2718
- "name": "oldValue",
2719
- "type": {
2720
- "text": "any"
2721
- }
2722
- },
2723
- {
2724
- "name": "newValue",
2606
+ "name": "fieldName",
2725
2607
  "type": {
2726
- "text": "any"
2608
+ "text": "string"
2727
2609
  }
2728
2610
  }
2729
2611
  ]
2730
2612
  },
2731
2613
  {
2732
2614
  "kind": "method",
2733
- "name": "openChanged",
2734
- "privacy": "protected"
2735
- },
2736
- {
2737
- "kind": "method",
2738
- "name": "toggleActionsMenuVisibility"
2615
+ "name": "toggleCriteriaView",
2616
+ "return": {
2617
+ "type": {
2618
+ "text": "void"
2619
+ }
2620
+ }
2739
2621
  },
2740
2622
  {
2741
2623
  "kind": "method",
2742
- "name": "onActionMenuItemClick",
2624
+ "name": "removeChip",
2625
+ "return": {
2626
+ "type": {
2627
+ "text": "void"
2628
+ }
2629
+ },
2743
2630
  "parameters": [
2744
2631
  {
2745
- "name": "callback",
2632
+ "name": "groupIndex",
2746
2633
  "type": {
2747
- "text": "(rowData) => void | any"
2634
+ "text": "number"
2635
+ }
2636
+ },
2637
+ {
2638
+ "name": "clauseIndex",
2639
+ "type": {
2640
+ "text": "number"
2748
2641
  }
2749
2642
  }
2750
2643
  ]
2751
2644
  },
2752
2645
  {
2753
- "kind": "field",
2754
- "name": "allActions",
2755
- "type": {
2756
- "text": "ActionMenuItem[]"
2757
- },
2758
- "readonly": true
2646
+ "kind": "method",
2647
+ "name": "clearChips",
2648
+ "return": {
2649
+ "type": {
2650
+ "text": "void"
2651
+ }
2652
+ }
2759
2653
  },
2760
2654
  {
2761
- "kind": "field",
2762
- "name": "rowData",
2763
- "readonly": true
2655
+ "kind": "method",
2656
+ "name": "handleSubmit"
2657
+ },
2658
+ {
2659
+ "kind": "method",
2660
+ "name": "handleBlur"
2661
+ },
2662
+ {
2663
+ "kind": "method",
2664
+ "name": "clear"
2764
2665
  },
2765
2666
  {
2766
2667
  "kind": "method",
2767
- "name": "getLabel",
2768
- "parameters": [
2769
- {
2770
- "name": "name",
2771
- "type": {
2772
- "text": "string | ((rowData: any) => string)"
2773
- }
2774
- }
2775
- ]
2668
+ "name": "toggleSpeechInput"
2776
2669
  },
2777
2670
  {
2778
2671
  "kind": "method",
2779
- "name": "getTemplate",
2780
- "parameters": [
2781
- {
2782
- "name": "prefix",
2783
- "type": {
2784
- "text": "string"
2785
- }
2786
- }
2787
- ]
2672
+ "name": "clearSpeechApplyDebounce",
2673
+ "privacy": "private"
2788
2674
  },
2789
2675
  {
2790
2676
  "kind": "field",
@@ -2898,142 +2784,256 @@
2898
2784
  }
2899
2785
  }
2900
2786
  ],
2901
- "attributes": [
2902
- {
2903
- "name": "is-vertical",
2904
- "type": {
2905
- "text": "boolean"
2906
- },
2907
- "default": "false",
2908
- "fieldName": "isVertical"
2909
- },
2910
- {
2911
- "name": "add-default-actions",
2912
- "type": {
2913
- "text": "boolean"
2914
- },
2915
- "default": "true",
2916
- "fieldName": "addDefaultActions"
2917
- },
2918
- {
2919
- "name": "auto-close-on-action",
2920
- "type": {
2921
- "text": "boolean"
2922
- },
2923
- "default": "true",
2924
- "fieldName": "autoCloseOnAction"
2925
- },
2787
+ "events": [
2926
2788
  {
2927
- "name": "name",
2928
- "type": {
2929
- "text": "string"
2930
- },
2931
- "default": "'Actions'",
2932
- "fieldName": "name"
2789
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2790
+ "name": "criteria-changed"
2933
2791
  },
2934
2792
  {
2935
- "name": "open",
2936
- "type": {
2937
- "text": "boolean"
2938
- },
2939
- "default": "false",
2940
- "fieldName": "open"
2941
- },
2793
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2794
+ "name": "validation-errors"
2795
+ }
2796
+ ],
2797
+ "attributes": [
2942
2798
  {
2943
- "name": "buttonAppearance",
2799
+ "name": "placeholder",
2944
2800
  "type": {
2945
2801
  "text": "string"
2946
2802
  },
2947
- "fieldName": "buttonAppearance"
2948
- },
2949
- {
2950
- "name": "hide-disabled",
2951
- "type": {
2952
- "text": "boolean"
2953
- },
2954
- "default": "false",
2955
- "fieldName": "hideDisabled"
2803
+ "default": "'Describe your search criteria in natural language...'",
2804
+ "fieldName": "placeholder"
2956
2805
  },
2957
2806
  {
2958
- "name": "hide-menu-single-option",
2959
2807
  "type": {
2960
2808
  "text": "boolean"
2961
2809
  },
2962
- "default": "false",
2963
- "fieldName": "hideMenuSingleOption"
2810
+ "fieldName": "disabled"
2964
2811
  }
2965
2812
  ],
2966
2813
  "superclass": {
2967
2814
  "name": "FoundationElement",
2968
2815
  "package": "@microsoft/fast-foundation"
2969
2816
  },
2970
- "tagName": "%%prefix%%-actions-menu",
2817
+ "tagName": "%%prefix%%-ai-criteria-search",
2971
2818
  "customElement": true
2972
2819
  },
2973
2820
  {
2974
2821
  "kind": "variable",
2975
- "name": "foundationActionsMenu",
2976
- "description": "The Foundation Actions Menu",
2977
- "privacy": "public"
2822
+ "name": "foundationAiCriteriaSearchShadowOptions",
2823
+ "type": {
2824
+ "text": "ShadowRootInit"
2825
+ },
2826
+ "default": "undefined"
2827
+ },
2828
+ {
2829
+ "kind": "variable",
2830
+ "name": "defaultAiCriteriaSearchConfig",
2831
+ "type": {
2832
+ "text": "object"
2833
+ },
2834
+ "default": "{}"
2835
+ },
2836
+ {
2837
+ "kind": "variable",
2838
+ "name": "foundationAiCriteriaSearch"
2978
2839
  }
2979
2840
  ],
2980
2841
  "exports": [
2981
2842
  {
2982
2843
  "kind": "js",
2983
- "name": "ActionsMenu",
2844
+ "name": "AiCriteriaSearch",
2984
2845
  "declaration": {
2985
- "name": "ActionsMenu",
2986
- "module": "src/actions-menu/actions-menu.ts"
2846
+ "name": "AiCriteriaSearch",
2847
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2987
2848
  }
2988
2849
  },
2989
2850
  {
2990
2851
  "kind": "js",
2991
- "name": "foundationActionsMenu",
2852
+ "name": "foundationAiCriteriaSearchShadowOptions",
2992
2853
  "declaration": {
2993
- "name": "foundationActionsMenu",
2994
- "module": "src/actions-menu/actions-menu.ts"
2854
+ "name": "foundationAiCriteriaSearchShadowOptions",
2855
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2856
+ }
2857
+ },
2858
+ {
2859
+ "kind": "js",
2860
+ "name": "defaultAiCriteriaSearchConfig",
2861
+ "declaration": {
2862
+ "name": "defaultAiCriteriaSearchConfig",
2863
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2864
+ }
2865
+ },
2866
+ {
2867
+ "kind": "js",
2868
+ "name": "foundationAiCriteriaSearch",
2869
+ "declaration": {
2870
+ "name": "foundationAiCriteriaSearch",
2871
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2995
2872
  }
2996
2873
  }
2997
2874
  ]
2998
2875
  },
2999
2876
  {
3000
2877
  "kind": "javascript-module",
3001
- "path": "src/actions-menu/index.ts",
2878
+ "path": "src/ai-criteria-search/index.ts",
3002
2879
  "declarations": [],
3003
2880
  "exports": [
2881
+ {
2882
+ "kind": "js",
2883
+ "name": "AiCriteriaSearch",
2884
+ "declaration": {
2885
+ "name": "AiCriteriaSearch",
2886
+ "module": "./ai-criteria-search"
2887
+ }
2888
+ },
2889
+ {
2890
+ "kind": "js",
2891
+ "name": "defaultAiCriteriaSearchConfig",
2892
+ "declaration": {
2893
+ "name": "defaultAiCriteriaSearchConfig",
2894
+ "module": "./ai-criteria-search"
2895
+ }
2896
+ },
2897
+ {
2898
+ "kind": "js",
2899
+ "name": "foundationAiCriteriaSearch",
2900
+ "declaration": {
2901
+ "name": "foundationAiCriteriaSearch",
2902
+ "module": "./ai-criteria-search"
2903
+ }
2904
+ },
2905
+ {
2906
+ "kind": "js",
2907
+ "name": "foundationAiCriteriaSearchShadowOptions",
2908
+ "declaration": {
2909
+ "name": "foundationAiCriteriaSearchShadowOptions",
2910
+ "module": "./ai-criteria-search"
2911
+ }
2912
+ },
2913
+ {
2914
+ "kind": "js",
2915
+ "name": "foundationAiCriteriaSearchStyles",
2916
+ "declaration": {
2917
+ "name": "foundationAiCriteriaSearchStyles",
2918
+ "module": "./ai-criteria-search.styles"
2919
+ }
2920
+ },
2921
+ {
2922
+ "kind": "js",
2923
+ "name": "foundationAiCriteriaSearchTemplate",
2924
+ "declaration": {
2925
+ "name": "foundationAiCriteriaSearchTemplate",
2926
+ "module": "./ai-criteria-search.template"
2927
+ }
2928
+ },
3004
2929
  {
3005
2930
  "kind": "js",
3006
2931
  "name": "*",
3007
2932
  "declaration": {
3008
2933
  "name": "*",
3009
- "package": "./actions-menu.styles"
2934
+ "package": "./validation/criteria-ir"
2935
+ }
2936
+ },
2937
+ {
2938
+ "kind": "js",
2939
+ "name": "*",
2940
+ "declaration": {
2941
+ "name": "*",
2942
+ "package": "./validation/operator-map"
2943
+ }
2944
+ },
2945
+ {
2946
+ "kind": "js",
2947
+ "name": "*",
2948
+ "declaration": {
2949
+ "name": "*",
2950
+ "package": "./validation/schema-validator"
3010
2951
  }
2952
+ }
2953
+ ]
2954
+ },
2955
+ {
2956
+ "kind": "javascript-module",
2957
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2958
+ "declarations": [
2959
+ {
2960
+ "kind": "function",
2961
+ "name": "formatValidationErrors",
2962
+ "return": {
2963
+ "type": {
2964
+ "text": "string"
2965
+ }
2966
+ },
2967
+ "parameters": [
2968
+ {
2969
+ "name": "errors",
2970
+ "type": {
2971
+ "text": "ValidationError[]"
2972
+ }
2973
+ }
2974
+ ],
2975
+ "description": "Formats validation errors into a user-friendly message."
3011
2976
  },
2977
+ {
2978
+ "kind": "function",
2979
+ "name": "showCriteriaError",
2980
+ "return": {
2981
+ "type": {
2982
+ "text": "void"
2983
+ }
2984
+ },
2985
+ "parameters": [
2986
+ {
2987
+ "name": "title",
2988
+ "type": {
2989
+ "text": "string"
2990
+ },
2991
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2992
+ },
2993
+ {
2994
+ "name": "body",
2995
+ "type": {
2996
+ "text": "string"
2997
+ },
2998
+ "description": "Error message to display"
2999
+ },
3000
+ {
3001
+ "name": "tagName",
3002
+ "type": {
3003
+ "text": "string"
3004
+ },
3005
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3006
+ }
3007
+ ],
3008
+ "description": "Shows a criteria error as a toast notification."
3009
+ }
3010
+ ],
3011
+ "exports": [
3012
3012
  {
3013
3013
  "kind": "js",
3014
- "name": "*",
3014
+ "name": "formatValidationErrors",
3015
3015
  "declaration": {
3016
- "name": "*",
3017
- "package": "./actions-menu.template"
3016
+ "name": "formatValidationErrors",
3017
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3018
3018
  }
3019
3019
  },
3020
3020
  {
3021
3021
  "kind": "js",
3022
- "name": "*",
3022
+ "name": "showCriteriaError",
3023
3023
  "declaration": {
3024
- "name": "*",
3025
- "package": "./actions-menu"
3024
+ "name": "showCriteriaError",
3025
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3026
3026
  }
3027
3027
  }
3028
3028
  ]
3029
3029
  },
3030
3030
  {
3031
3031
  "kind": "javascript-module",
3032
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3032
+ "path": "src/accordion/accordion.styles.ts",
3033
3033
  "declarations": [
3034
3034
  {
3035
3035
  "kind": "function",
3036
- "name": "foundationAiIndicatorStyles",
3036
+ "name": "foundationAccordionStyles",
3037
3037
  "return": {
3038
3038
  "type": {
3039
3039
  "text": "ElementStyles"
@@ -3058,224 +3058,276 @@
3058
3058
  "exports": [
3059
3059
  {
3060
3060
  "kind": "js",
3061
- "name": "foundationAiIndicatorStyles",
3061
+ "name": "foundationAccordionStyles",
3062
3062
  "declaration": {
3063
- "name": "foundationAiIndicatorStyles",
3064
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3063
+ "name": "foundationAccordionStyles",
3064
+ "module": "src/accordion/accordion.styles.ts"
3065
3065
  }
3066
3066
  }
3067
3067
  ]
3068
3068
  },
3069
3069
  {
3070
3070
  "kind": "javascript-module",
3071
- "path": "src/ai-indicator/ai-indicator.template.ts",
3071
+ "path": "src/accordion/accordion.template.ts",
3072
3072
  "declarations": [
3073
3073
  {
3074
- "kind": "variable",
3075
- "name": "foundationAiIndicatorTemplate",
3076
- "type": {
3077
- "text": "ViewTemplate<AiIndicator>"
3074
+ "kind": "function",
3075
+ "name": "foundationAccordionTemplate",
3076
+ "return": {
3077
+ "type": {
3078
+ "text": "ViewTemplate<Accordion>"
3079
+ }
3078
3080
  },
3079
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3081
+ "parameters": [
3082
+ {
3083
+ "name": "context",
3084
+ "type": {
3085
+ "text": "ElementDefinitionContext"
3086
+ }
3087
+ },
3088
+ {
3089
+ "name": "definition",
3090
+ "type": {
3091
+ "text": "FoundationElementDefinition"
3092
+ }
3093
+ }
3094
+ ]
3080
3095
  }
3081
3096
  ],
3082
3097
  "exports": [
3083
3098
  {
3084
3099
  "kind": "js",
3085
- "name": "foundationAiIndicatorTemplate",
3100
+ "name": "foundationAccordionTemplate",
3086
3101
  "declaration": {
3087
- "name": "foundationAiIndicatorTemplate",
3088
- "module": "src/ai-indicator/ai-indicator.template.ts"
3102
+ "name": "foundationAccordionTemplate",
3103
+ "module": "src/accordion/accordion.template.ts"
3089
3104
  }
3090
3105
  }
3091
3106
  ]
3092
3107
  },
3093
3108
  {
3094
3109
  "kind": "javascript-module",
3095
- "path": "src/ai-indicator/ai-indicator.ts",
3110
+ "path": "src/accordion/accordion.ts",
3096
3111
  "declarations": [
3097
3112
  {
3098
3113
  "kind": "class",
3099
3114
  "description": "",
3100
- "name": "AiIndicator",
3101
- "members": [
3102
- {
3103
- "kind": "field",
3104
- "name": "providerRegistry",
3105
- "type": {
3106
- "text": "AIProviderRegistry"
3107
- }
3108
- },
3109
- {
3110
- "kind": "field",
3111
- "name": "aiProvider",
3112
- "type": {
3113
- "text": "AIProvider | undefined"
3114
- },
3115
- "privacy": "private",
3116
- "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3117
- "readonly": true
3118
- },
3115
+ "name": "Accordion",
3116
+ "superclass": {
3117
+ "name": "FASTAccordion",
3118
+ "package": "@microsoft/fast-foundation"
3119
+ },
3120
+ "tagName": "%%prefix%%-accordion",
3121
+ "customElement": true,
3122
+ "attributes": [
3119
3123
  {
3120
- "kind": "field",
3121
- "name": "status",
3124
+ "name": "expand-mode",
3122
3125
  "type": {
3123
- "text": "AIStatus | null"
3126
+ "text": "AccordionExpandMode"
3124
3127
  },
3125
- "default": "null"
3126
- },
3128
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3129
+ "fieldName": "expandmode",
3130
+ "inheritedFrom": {
3131
+ "name": "Accordion",
3132
+ "module": "src/accordion/accordion.ts"
3133
+ }
3134
+ }
3135
+ ],
3136
+ "members": [
3127
3137
  {
3128
3138
  "kind": "field",
3129
- "name": "open",
3139
+ "name": "expandmode",
3130
3140
  "type": {
3131
- "text": "boolean"
3141
+ "text": "AccordionExpandMode"
3132
3142
  },
3133
- "default": "false"
3143
+ "privacy": "public",
3144
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3145
+ "inheritedFrom": {
3146
+ "name": "Accordion",
3147
+ "module": "src/accordion/accordion.ts"
3148
+ }
3134
3149
  },
3135
3150
  {
3136
3151
  "kind": "field",
3137
- "name": "state",
3152
+ "name": "activeid",
3138
3153
  "type": {
3139
- "text": "AIIndicatorState"
3154
+ "text": "string | null"
3140
3155
  },
3141
- "default": "'none'"
3156
+ "privacy": "private",
3157
+ "inheritedFrom": {
3158
+ "name": "Accordion",
3159
+ "module": "src/accordion/accordion.ts"
3160
+ }
3142
3161
  },
3143
3162
  {
3144
3163
  "kind": "field",
3145
- "name": "isInstalling",
3164
+ "name": "activeItemIndex",
3146
3165
  "type": {
3147
- "text": "boolean"
3166
+ "text": "number"
3148
3167
  },
3149
- "default": "false"
3168
+ "privacy": "private",
3169
+ "default": "0",
3170
+ "inheritedFrom": {
3171
+ "name": "Accordion",
3172
+ "module": "src/accordion/accordion.ts"
3173
+ }
3150
3174
  },
3151
3175
  {
3152
3176
  "kind": "field",
3153
- "name": "pollTimer",
3177
+ "name": "accordionIds",
3154
3178
  "type": {
3155
- "text": "ReturnType<typeof setInterval> | null"
3179
+ "text": "Array<string | null>"
3156
3180
  },
3157
3181
  "privacy": "private",
3158
- "default": "null"
3159
- },
3160
- {
3161
- "kind": "field",
3162
- "name": "clickOutside",
3163
- "privacy": "private"
3182
+ "inheritedFrom": {
3183
+ "name": "Accordion",
3184
+ "module": "src/accordion/accordion.ts"
3185
+ }
3164
3186
  },
3165
3187
  {
3166
3188
  "kind": "field",
3167
- "name": "chromeStatusLabel",
3168
- "type": {
3169
- "text": "string | null"
3170
- },
3171
- "readonly": true
3189
+ "name": "change",
3190
+ "privacy": "private",
3191
+ "inheritedFrom": {
3192
+ "name": "Accordion",
3193
+ "module": "src/accordion/accordion.ts"
3194
+ }
3172
3195
  },
3173
3196
  {
3174
- "kind": "field",
3175
- "name": "canInstall",
3176
- "type": {
3177
- "text": "boolean"
3197
+ "kind": "method",
3198
+ "name": "findExpandedItem",
3199
+ "privacy": "private",
3200
+ "return": {
3201
+ "type": {
3202
+ "text": "AccordionItem | null"
3203
+ }
3178
3204
  },
3179
- "readonly": true
3205
+ "inheritedFrom": {
3206
+ "name": "Accordion",
3207
+ "module": "src/accordion/accordion.ts"
3208
+ }
3180
3209
  },
3181
3210
  {
3182
3211
  "kind": "field",
3183
- "name": "isDownloading",
3184
- "type": {
3185
- "text": "boolean"
3186
- },
3187
- "readonly": true
3212
+ "name": "setItems",
3213
+ "privacy": "private",
3214
+ "inheritedFrom": {
3215
+ "name": "Accordion",
3216
+ "module": "src/accordion/accordion.ts"
3217
+ }
3188
3218
  },
3189
3219
  {
3190
3220
  "kind": "method",
3191
- "name": "openChanged",
3221
+ "name": "resetItems",
3222
+ "privacy": "private",
3192
3223
  "return": {
3193
3224
  "type": {
3194
3225
  "text": "void"
3195
3226
  }
3227
+ },
3228
+ "inheritedFrom": {
3229
+ "name": "Accordion",
3230
+ "module": "src/accordion/accordion.ts"
3196
3231
  }
3197
3232
  },
3198
3233
  {
3199
- "kind": "method",
3200
- "name": "handleClickOutside",
3234
+ "kind": "field",
3235
+ "name": "removeItemListeners",
3201
3236
  "privacy": "private",
3202
- "parameters": [
3203
- {
3204
- "name": "event",
3205
- "type": {
3206
- "text": "MouseEvent"
3207
- }
3208
- }
3209
- ]
3237
+ "inheritedFrom": {
3238
+ "name": "Accordion",
3239
+ "module": "src/accordion/accordion.ts"
3240
+ }
3210
3241
  },
3211
3242
  {
3212
- "kind": "method",
3213
- "name": "toggleDropdown"
3243
+ "kind": "field",
3244
+ "name": "activeItemChange",
3245
+ "privacy": "private",
3246
+ "inheritedFrom": {
3247
+ "name": "Accordion",
3248
+ "module": "src/accordion/accordion.ts"
3249
+ }
3214
3250
  },
3215
3251
  {
3216
3252
  "kind": "method",
3217
- "name": "refreshStatus",
3253
+ "name": "getItemIds",
3254
+ "privacy": "private",
3218
3255
  "return": {
3219
3256
  "type": {
3220
- "text": "Promise<void>"
3257
+ "text": "Array<string | null>"
3221
3258
  }
3259
+ },
3260
+ "inheritedFrom": {
3261
+ "name": "Accordion",
3262
+ "module": "src/accordion/accordion.ts"
3222
3263
  }
3223
3264
  },
3224
3265
  {
3225
3266
  "kind": "method",
3226
- "name": "deriveState",
3267
+ "name": "isSingleExpandMode",
3227
3268
  "privacy": "private",
3228
3269
  "return": {
3229
3270
  "type": {
3230
- "text": "AIIndicatorState"
3271
+ "text": "boolean"
3231
3272
  }
3232
3273
  },
3233
- "parameters": [
3234
- {
3235
- "name": "s",
3236
- "type": {
3237
- "text": "AIStatus | null"
3238
- }
3239
- }
3240
- ]
3274
+ "inheritedFrom": {
3275
+ "name": "Accordion",
3276
+ "module": "src/accordion/accordion.ts"
3277
+ }
3241
3278
  },
3242
3279
  {
3243
- "kind": "method",
3244
- "name": "maybeStartPolling",
3245
- "privacy": "private",
3246
- "return": {
3247
- "type": {
3248
- "text": "void"
3249
- }
3280
+ "kind": "field",
3281
+ "name": "handleItemKeyDown",
3282
+ "privacy": "private",
3283
+ "inheritedFrom": {
3284
+ "name": "Accordion",
3285
+ "module": "src/accordion/accordion.ts"
3250
3286
  }
3251
3287
  },
3252
3288
  {
3253
- "kind": "method",
3254
- "name": "startPolling",
3289
+ "kind": "field",
3290
+ "name": "handleItemFocus",
3255
3291
  "privacy": "private",
3256
- "return": {
3257
- "type": {
3258
- "text": "void"
3259
- }
3292
+ "inheritedFrom": {
3293
+ "name": "Accordion",
3294
+ "module": "src/accordion/accordion.ts"
3260
3295
  }
3261
3296
  },
3262
3297
  {
3263
3298
  "kind": "method",
3264
- "name": "stopPolling",
3299
+ "name": "adjust",
3265
3300
  "privacy": "private",
3266
3301
  "return": {
3267
3302
  "type": {
3268
3303
  "text": "void"
3269
3304
  }
3305
+ },
3306
+ "parameters": [
3307
+ {
3308
+ "name": "adjustment",
3309
+ "type": {
3310
+ "text": "number"
3311
+ }
3312
+ }
3313
+ ],
3314
+ "inheritedFrom": {
3315
+ "name": "Accordion",
3316
+ "module": "src/accordion/accordion.ts"
3270
3317
  }
3271
3318
  },
3272
3319
  {
3273
3320
  "kind": "method",
3274
- "name": "onInstall",
3321
+ "name": "focusItem",
3322
+ "privacy": "private",
3275
3323
  "return": {
3276
3324
  "type": {
3277
- "text": "Promise<void>"
3325
+ "text": "void"
3278
3326
  }
3327
+ },
3328
+ "inheritedFrom": {
3329
+ "name": "Accordion",
3330
+ "module": "src/accordion/accordion.ts"
3279
3331
  }
3280
3332
  },
3281
3333
  {
@@ -3390,99 +3442,113 @@
3390
3442
  }
3391
3443
  }
3392
3444
  ],
3393
- "superclass": {
3394
- "name": "FoundationElement",
3395
- "package": "@microsoft/fast-foundation"
3445
+ "events": [
3446
+ {
3447
+ "description": "Fires a custom 'change' event when the active item changes",
3448
+ "name": "change",
3449
+ "inheritedFrom": {
3450
+ "name": "Accordion",
3451
+ "module": "src/accordion/accordion.ts"
3452
+ }
3453
+ }
3454
+ ]
3455
+ },
3456
+ {
3457
+ "kind": "variable",
3458
+ "name": "foundationAccordionShadowOptions",
3459
+ "type": {
3460
+ "text": "ShadowRootInit"
3396
3461
  },
3397
- "tagName": "%%prefix%%-ai-indicator",
3398
- "customElement": true
3462
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3399
3463
  },
3400
3464
  {
3401
3465
  "kind": "variable",
3402
- "name": "foundationAiIndicator"
3466
+ "name": "defaultAccordionConfig",
3467
+ "type": {
3468
+ "text": "object"
3469
+ },
3470
+ "default": "{}"
3471
+ },
3472
+ {
3473
+ "kind": "variable",
3474
+ "name": "foundationAccordion",
3475
+ "description": "The Foundation Accordion",
3476
+ "privacy": "public"
3403
3477
  }
3404
3478
  ],
3405
3479
  "exports": [
3406
3480
  {
3407
3481
  "kind": "js",
3408
- "name": "AiIndicator",
3482
+ "name": "Accordion",
3409
3483
  "declaration": {
3410
- "name": "AiIndicator",
3411
- "module": "src/ai-indicator/ai-indicator.ts"
3484
+ "name": "Accordion",
3485
+ "module": "src/accordion/accordion.ts"
3412
3486
  }
3413
3487
  },
3414
3488
  {
3415
3489
  "kind": "js",
3416
- "name": "foundationAiIndicator",
3417
- "declaration": {
3418
- "name": "foundationAiIndicator",
3419
- "module": "src/ai-indicator/ai-indicator.ts"
3420
- }
3421
- }
3422
- ]
3423
- },
3424
- {
3425
- "kind": "javascript-module",
3426
- "path": "src/ai-indicator/index.ts",
3427
- "declarations": [],
3428
- "exports": [
3429
- {
3430
- "kind": "js",
3431
- "name": "AiIndicator",
3490
+ "name": "foundationAccordionShadowOptions",
3432
3491
  "declaration": {
3433
- "name": "AiIndicator",
3434
- "module": "./ai-indicator"
3492
+ "name": "foundationAccordionShadowOptions",
3493
+ "module": "src/accordion/accordion.ts"
3435
3494
  }
3436
3495
  },
3437
3496
  {
3438
3497
  "kind": "js",
3439
- "name": "foundationAiIndicator",
3498
+ "name": "defaultAccordionConfig",
3440
3499
  "declaration": {
3441
- "name": "foundationAiIndicator",
3442
- "module": "./ai-indicator"
3500
+ "name": "defaultAccordionConfig",
3501
+ "module": "src/accordion/accordion.ts"
3443
3502
  }
3444
3503
  },
3445
3504
  {
3446
3505
  "kind": "js",
3447
- "name": "type",
3506
+ "name": "foundationAccordion",
3448
3507
  "declaration": {
3449
- "name": "type",
3450
- "module": "./ai-indicator"
3508
+ "name": "foundationAccordion",
3509
+ "module": "src/accordion/accordion.ts"
3451
3510
  }
3452
- },
3511
+ }
3512
+ ]
3513
+ },
3514
+ {
3515
+ "kind": "javascript-module",
3516
+ "path": "src/accordion/index.ts",
3517
+ "declarations": [],
3518
+ "exports": [
3453
3519
  {
3454
3520
  "kind": "js",
3455
- "name": "AIIndicatorState",
3521
+ "name": "*",
3456
3522
  "declaration": {
3457
- "name": "AIIndicatorState",
3458
- "module": "./ai-indicator"
3523
+ "name": "*",
3524
+ "package": "./accordion.template"
3459
3525
  }
3460
3526
  },
3461
3527
  {
3462
3528
  "kind": "js",
3463
- "name": "foundationAiIndicatorTemplate",
3529
+ "name": "*",
3464
3530
  "declaration": {
3465
- "name": "foundationAiIndicatorTemplate",
3466
- "module": "./ai-indicator.template"
3531
+ "name": "*",
3532
+ "package": "./accordion.styles"
3467
3533
  }
3468
3534
  },
3469
3535
  {
3470
3536
  "kind": "js",
3471
- "name": "foundationAiIndicatorStyles",
3537
+ "name": "*",
3472
3538
  "declaration": {
3473
- "name": "foundationAiIndicatorStyles",
3474
- "module": "./ai-indicator.styles"
3539
+ "name": "*",
3540
+ "package": "./accordion"
3475
3541
  }
3476
3542
  }
3477
3543
  ]
3478
3544
  },
3479
3545
  {
3480
3546
  "kind": "javascript-module",
3481
- "path": "src/accordion/accordion.styles.ts",
3547
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3482
3548
  "declarations": [
3483
3549
  {
3484
3550
  "kind": "function",
3485
- "name": "foundationAccordionStyles",
3551
+ "name": "foundationAiIndicatorStyles",
3486
3552
  "return": {
3487
3553
  "type": {
3488
3554
  "text": "ElementStyles"
@@ -3507,276 +3573,224 @@
3507
3573
  "exports": [
3508
3574
  {
3509
3575
  "kind": "js",
3510
- "name": "foundationAccordionStyles",
3576
+ "name": "foundationAiIndicatorStyles",
3511
3577
  "declaration": {
3512
- "name": "foundationAccordionStyles",
3513
- "module": "src/accordion/accordion.styles.ts"
3578
+ "name": "foundationAiIndicatorStyles",
3579
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3514
3580
  }
3515
3581
  }
3516
3582
  ]
3517
3583
  },
3518
3584
  {
3519
3585
  "kind": "javascript-module",
3520
- "path": "src/accordion/accordion.template.ts",
3586
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3521
3587
  "declarations": [
3522
3588
  {
3523
- "kind": "function",
3524
- "name": "foundationAccordionTemplate",
3525
- "return": {
3526
- "type": {
3527
- "text": "ViewTemplate<Accordion>"
3528
- }
3589
+ "kind": "variable",
3590
+ "name": "foundationAiIndicatorTemplate",
3591
+ "type": {
3592
+ "text": "ViewTemplate<AiIndicator>"
3529
3593
  },
3530
- "parameters": [
3531
- {
3532
- "name": "context",
3533
- "type": {
3534
- "text": "ElementDefinitionContext"
3535
- }
3536
- },
3537
- {
3538
- "name": "definition",
3539
- "type": {
3540
- "text": "FoundationElementDefinition"
3541
- }
3542
- }
3543
- ]
3594
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3544
3595
  }
3545
3596
  ],
3546
3597
  "exports": [
3547
3598
  {
3548
3599
  "kind": "js",
3549
- "name": "foundationAccordionTemplate",
3600
+ "name": "foundationAiIndicatorTemplate",
3550
3601
  "declaration": {
3551
- "name": "foundationAccordionTemplate",
3552
- "module": "src/accordion/accordion.template.ts"
3602
+ "name": "foundationAiIndicatorTemplate",
3603
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3553
3604
  }
3554
3605
  }
3555
3606
  ]
3556
3607
  },
3557
3608
  {
3558
3609
  "kind": "javascript-module",
3559
- "path": "src/accordion/accordion.ts",
3610
+ "path": "src/ai-indicator/ai-indicator.ts",
3560
3611
  "declarations": [
3561
3612
  {
3562
3613
  "kind": "class",
3563
3614
  "description": "",
3564
- "name": "Accordion",
3565
- "superclass": {
3566
- "name": "FASTAccordion",
3567
- "package": "@microsoft/fast-foundation"
3568
- },
3569
- "tagName": "%%prefix%%-accordion",
3570
- "customElement": true,
3571
- "attributes": [
3615
+ "name": "AiIndicator",
3616
+ "members": [
3572
3617
  {
3573
- "name": "expand-mode",
3618
+ "kind": "field",
3619
+ "name": "providerRegistry",
3574
3620
  "type": {
3575
- "text": "AccordionExpandMode"
3576
- },
3577
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3578
- "fieldName": "expandmode",
3579
- "inheritedFrom": {
3580
- "name": "Accordion",
3581
- "module": "src/accordion/accordion.ts"
3621
+ "text": "AIProviderRegistry"
3582
3622
  }
3583
- }
3584
- ],
3585
- "members": [
3623
+ },
3586
3624
  {
3587
3625
  "kind": "field",
3588
- "name": "expandmode",
3626
+ "name": "aiProvider",
3589
3627
  "type": {
3590
- "text": "AccordionExpandMode"
3628
+ "text": "AIProvider | undefined"
3591
3629
  },
3592
- "privacy": "public",
3593
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3594
- "inheritedFrom": {
3595
- "name": "Accordion",
3596
- "module": "src/accordion/accordion.ts"
3597
- }
3630
+ "privacy": "private",
3631
+ "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3632
+ "readonly": true
3598
3633
  },
3599
3634
  {
3600
3635
  "kind": "field",
3601
- "name": "activeid",
3636
+ "name": "status",
3602
3637
  "type": {
3603
- "text": "string | null"
3638
+ "text": "AIStatus | null"
3604
3639
  },
3605
- "privacy": "private",
3606
- "inheritedFrom": {
3607
- "name": "Accordion",
3608
- "module": "src/accordion/accordion.ts"
3609
- }
3640
+ "default": "null"
3610
3641
  },
3611
3642
  {
3612
3643
  "kind": "field",
3613
- "name": "activeItemIndex",
3644
+ "name": "open",
3614
3645
  "type": {
3615
- "text": "number"
3646
+ "text": "boolean"
3616
3647
  },
3617
- "privacy": "private",
3618
- "default": "0",
3619
- "inheritedFrom": {
3620
- "name": "Accordion",
3621
- "module": "src/accordion/accordion.ts"
3622
- }
3648
+ "default": "false"
3649
+ },
3650
+ {
3651
+ "kind": "field",
3652
+ "name": "state",
3653
+ "type": {
3654
+ "text": "AIIndicatorState"
3655
+ },
3656
+ "default": "'none'"
3657
+ },
3658
+ {
3659
+ "kind": "field",
3660
+ "name": "isInstalling",
3661
+ "type": {
3662
+ "text": "boolean"
3663
+ },
3664
+ "default": "false"
3623
3665
  },
3624
3666
  {
3625
3667
  "kind": "field",
3626
- "name": "accordionIds",
3668
+ "name": "pollTimer",
3627
3669
  "type": {
3628
- "text": "Array<string | null>"
3670
+ "text": "ReturnType<typeof setInterval> | null"
3629
3671
  },
3630
3672
  "privacy": "private",
3631
- "inheritedFrom": {
3632
- "name": "Accordion",
3633
- "module": "src/accordion/accordion.ts"
3634
- }
3673
+ "default": "null"
3635
3674
  },
3636
3675
  {
3637
3676
  "kind": "field",
3638
- "name": "change",
3639
- "privacy": "private",
3640
- "inheritedFrom": {
3641
- "name": "Accordion",
3642
- "module": "src/accordion/accordion.ts"
3643
- }
3677
+ "name": "clickOutside",
3678
+ "privacy": "private"
3644
3679
  },
3645
3680
  {
3646
- "kind": "method",
3647
- "name": "findExpandedItem",
3648
- "privacy": "private",
3649
- "return": {
3650
- "type": {
3651
- "text": "AccordionItem | null"
3652
- }
3681
+ "kind": "field",
3682
+ "name": "chromeStatusLabel",
3683
+ "type": {
3684
+ "text": "string | null"
3653
3685
  },
3654
- "inheritedFrom": {
3655
- "name": "Accordion",
3656
- "module": "src/accordion/accordion.ts"
3657
- }
3686
+ "readonly": true
3658
3687
  },
3659
3688
  {
3660
3689
  "kind": "field",
3661
- "name": "setItems",
3662
- "privacy": "private",
3663
- "inheritedFrom": {
3664
- "name": "Accordion",
3665
- "module": "src/accordion/accordion.ts"
3666
- }
3690
+ "name": "canInstall",
3691
+ "type": {
3692
+ "text": "boolean"
3693
+ },
3694
+ "readonly": true
3695
+ },
3696
+ {
3697
+ "kind": "field",
3698
+ "name": "isDownloading",
3699
+ "type": {
3700
+ "text": "boolean"
3701
+ },
3702
+ "readonly": true
3667
3703
  },
3668
3704
  {
3669
3705
  "kind": "method",
3670
- "name": "resetItems",
3671
- "privacy": "private",
3706
+ "name": "openChanged",
3672
3707
  "return": {
3673
3708
  "type": {
3674
3709
  "text": "void"
3675
3710
  }
3676
- },
3677
- "inheritedFrom": {
3678
- "name": "Accordion",
3679
- "module": "src/accordion/accordion.ts"
3680
3711
  }
3681
3712
  },
3682
3713
  {
3683
- "kind": "field",
3684
- "name": "removeItemListeners",
3714
+ "kind": "method",
3715
+ "name": "handleClickOutside",
3685
3716
  "privacy": "private",
3686
- "inheritedFrom": {
3687
- "name": "Accordion",
3688
- "module": "src/accordion/accordion.ts"
3689
- }
3717
+ "parameters": [
3718
+ {
3719
+ "name": "event",
3720
+ "type": {
3721
+ "text": "MouseEvent"
3722
+ }
3723
+ }
3724
+ ]
3690
3725
  },
3691
3726
  {
3692
- "kind": "field",
3693
- "name": "activeItemChange",
3694
- "privacy": "private",
3695
- "inheritedFrom": {
3696
- "name": "Accordion",
3697
- "module": "src/accordion/accordion.ts"
3698
- }
3727
+ "kind": "method",
3728
+ "name": "toggleDropdown"
3699
3729
  },
3700
3730
  {
3701
3731
  "kind": "method",
3702
- "name": "getItemIds",
3703
- "privacy": "private",
3732
+ "name": "refreshStatus",
3704
3733
  "return": {
3705
3734
  "type": {
3706
- "text": "Array<string | null>"
3735
+ "text": "Promise<void>"
3707
3736
  }
3708
- },
3709
- "inheritedFrom": {
3710
- "name": "Accordion",
3711
- "module": "src/accordion/accordion.ts"
3712
3737
  }
3713
3738
  },
3714
3739
  {
3715
3740
  "kind": "method",
3716
- "name": "isSingleExpandMode",
3741
+ "name": "deriveState",
3717
3742
  "privacy": "private",
3718
3743
  "return": {
3719
3744
  "type": {
3720
- "text": "boolean"
3745
+ "text": "AIIndicatorState"
3721
3746
  }
3722
3747
  },
3723
- "inheritedFrom": {
3724
- "name": "Accordion",
3725
- "module": "src/accordion/accordion.ts"
3726
- }
3748
+ "parameters": [
3749
+ {
3750
+ "name": "s",
3751
+ "type": {
3752
+ "text": "AIStatus | null"
3753
+ }
3754
+ }
3755
+ ]
3727
3756
  },
3728
3757
  {
3729
- "kind": "field",
3730
- "name": "handleItemKeyDown",
3758
+ "kind": "method",
3759
+ "name": "maybeStartPolling",
3731
3760
  "privacy": "private",
3732
- "inheritedFrom": {
3733
- "name": "Accordion",
3734
- "module": "src/accordion/accordion.ts"
3761
+ "return": {
3762
+ "type": {
3763
+ "text": "void"
3764
+ }
3735
3765
  }
3736
3766
  },
3737
3767
  {
3738
- "kind": "field",
3739
- "name": "handleItemFocus",
3768
+ "kind": "method",
3769
+ "name": "startPolling",
3740
3770
  "privacy": "private",
3741
- "inheritedFrom": {
3742
- "name": "Accordion",
3743
- "module": "src/accordion/accordion.ts"
3771
+ "return": {
3772
+ "type": {
3773
+ "text": "void"
3774
+ }
3744
3775
  }
3745
3776
  },
3746
3777
  {
3747
3778
  "kind": "method",
3748
- "name": "adjust",
3779
+ "name": "stopPolling",
3749
3780
  "privacy": "private",
3750
3781
  "return": {
3751
3782
  "type": {
3752
3783
  "text": "void"
3753
3784
  }
3754
- },
3755
- "parameters": [
3756
- {
3757
- "name": "adjustment",
3758
- "type": {
3759
- "text": "number"
3760
- }
3761
- }
3762
- ],
3763
- "inheritedFrom": {
3764
- "name": "Accordion",
3765
- "module": "src/accordion/accordion.ts"
3766
3785
  }
3767
3786
  },
3768
3787
  {
3769
3788
  "kind": "method",
3770
- "name": "focusItem",
3771
- "privacy": "private",
3789
+ "name": "onInstall",
3772
3790
  "return": {
3773
3791
  "type": {
3774
- "text": "void"
3792
+ "text": "Promise<void>"
3775
3793
  }
3776
- },
3777
- "inheritedFrom": {
3778
- "name": "Accordion",
3779
- "module": "src/accordion/accordion.ts"
3780
3794
  }
3781
3795
  },
3782
3796
  {
@@ -3891,102 +3905,88 @@
3891
3905
  }
3892
3906
  }
3893
3907
  ],
3894
- "events": [
3895
- {
3896
- "description": "Fires a custom 'change' event when the active item changes",
3897
- "name": "change",
3898
- "inheritedFrom": {
3899
- "name": "Accordion",
3900
- "module": "src/accordion/accordion.ts"
3901
- }
3902
- }
3903
- ]
3904
- },
3905
- {
3906
- "kind": "variable",
3907
- "name": "foundationAccordionShadowOptions",
3908
- "type": {
3909
- "text": "ShadowRootInit"
3910
- },
3911
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3912
- },
3913
- {
3914
- "kind": "variable",
3915
- "name": "defaultAccordionConfig",
3916
- "type": {
3917
- "text": "object"
3908
+ "superclass": {
3909
+ "name": "FoundationElement",
3910
+ "package": "@microsoft/fast-foundation"
3918
3911
  },
3919
- "default": "{}"
3912
+ "tagName": "%%prefix%%-ai-indicator",
3913
+ "customElement": true
3920
3914
  },
3921
3915
  {
3922
3916
  "kind": "variable",
3923
- "name": "foundationAccordion",
3924
- "description": "The Foundation Accordion",
3925
- "privacy": "public"
3917
+ "name": "foundationAiIndicator"
3926
3918
  }
3927
3919
  ],
3928
3920
  "exports": [
3929
3921
  {
3930
3922
  "kind": "js",
3931
- "name": "Accordion",
3923
+ "name": "AiIndicator",
3932
3924
  "declaration": {
3933
- "name": "Accordion",
3934
- "module": "src/accordion/accordion.ts"
3925
+ "name": "AiIndicator",
3926
+ "module": "src/ai-indicator/ai-indicator.ts"
3935
3927
  }
3936
3928
  },
3937
3929
  {
3938
3930
  "kind": "js",
3939
- "name": "foundationAccordionShadowOptions",
3931
+ "name": "foundationAiIndicator",
3940
3932
  "declaration": {
3941
- "name": "foundationAccordionShadowOptions",
3942
- "module": "src/accordion/accordion.ts"
3933
+ "name": "foundationAiIndicator",
3934
+ "module": "src/ai-indicator/ai-indicator.ts"
3935
+ }
3936
+ }
3937
+ ]
3938
+ },
3939
+ {
3940
+ "kind": "javascript-module",
3941
+ "path": "src/ai-indicator/index.ts",
3942
+ "declarations": [],
3943
+ "exports": [
3944
+ {
3945
+ "kind": "js",
3946
+ "name": "AiIndicator",
3947
+ "declaration": {
3948
+ "name": "AiIndicator",
3949
+ "module": "./ai-indicator"
3943
3950
  }
3944
3951
  },
3945
3952
  {
3946
3953
  "kind": "js",
3947
- "name": "defaultAccordionConfig",
3954
+ "name": "foundationAiIndicator",
3948
3955
  "declaration": {
3949
- "name": "defaultAccordionConfig",
3950
- "module": "src/accordion/accordion.ts"
3956
+ "name": "foundationAiIndicator",
3957
+ "module": "./ai-indicator"
3951
3958
  }
3952
3959
  },
3953
3960
  {
3954
3961
  "kind": "js",
3955
- "name": "foundationAccordion",
3962
+ "name": "type",
3956
3963
  "declaration": {
3957
- "name": "foundationAccordion",
3958
- "module": "src/accordion/accordion.ts"
3964
+ "name": "type",
3965
+ "module": "./ai-indicator"
3959
3966
  }
3960
- }
3961
- ]
3962
- },
3963
- {
3964
- "kind": "javascript-module",
3965
- "path": "src/accordion/index.ts",
3966
- "declarations": [],
3967
- "exports": [
3967
+ },
3968
3968
  {
3969
3969
  "kind": "js",
3970
- "name": "*",
3970
+ "name": "AIIndicatorState",
3971
3971
  "declaration": {
3972
- "name": "*",
3973
- "package": "./accordion.template"
3972
+ "name": "AIIndicatorState",
3973
+ "module": "./ai-indicator"
3974
3974
  }
3975
3975
  },
3976
3976
  {
3977
3977
  "kind": "js",
3978
- "name": "*",
3978
+ "name": "foundationAiIndicatorTemplate",
3979
3979
  "declaration": {
3980
- "name": "*",
3981
- "package": "./accordion.styles"
3980
+ "name": "foundationAiIndicatorTemplate",
3981
+ "module": "./ai-indicator.template"
3982
3982
  }
3983
3983
  },
3984
3984
  {
3985
3985
  "kind": "js",
3986
- "name": "*",
3986
+ "name": "foundationAiIndicatorStyles",
3987
3987
  "declaration": {
3988
- "name": "*",
3989
- "package": "./accordion"
3988
+ "name": "foundationAiIndicatorStyles",
3989
+ "module": "./ai-indicator.styles"
3990
3990
  }
3991
3991
  }
3992
3992
  ]