@genesislcap/foundation-ui 14.428.1 → 14.428.2-alpha-9a52971.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1825,11 +1825,34 @@
1825
1825
  },
1826
1826
  {
1827
1827
  "kind": "javascript-module",
1828
- "path": "src/accordion/accordion.styles.ts",
1828
+ "path": "src/actions-menu/actions-menu.styles.ts",
1829
1829
  "declarations": [
1830
1830
  {
1831
1831
  "kind": "function",
1832
- "name": "foundationAccordionStyles",
1832
+ "name": "actionsMenuBaseStyles",
1833
+ "return": {
1834
+ "type": {
1835
+ "text": "ElementStyles"
1836
+ }
1837
+ },
1838
+ "parameters": [
1839
+ {
1840
+ "name": "context",
1841
+ "type": {
1842
+ "text": "ElementDefinitionContext"
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "definition",
1847
+ "type": {
1848
+ "text": "FoundationElementDefinition"
1849
+ }
1850
+ }
1851
+ ]
1852
+ },
1853
+ {
1854
+ "kind": "function",
1855
+ "name": "foundationActionsMenuStyles",
1833
1856
  "return": {
1834
1857
  "type": {
1835
1858
  "text": "ElementStyles"
@@ -1854,277 +1877,269 @@
1854
1877
  "exports": [
1855
1878
  {
1856
1879
  "kind": "js",
1857
- "name": "foundationAccordionStyles",
1880
+ "name": "actionsMenuBaseStyles",
1858
1881
  "declaration": {
1859
- "name": "foundationAccordionStyles",
1860
- "module": "src/accordion/accordion.styles.ts"
1882
+ "name": "actionsMenuBaseStyles",
1883
+ "module": "src/actions-menu/actions-menu.styles.ts"
1884
+ }
1885
+ },
1886
+ {
1887
+ "kind": "js",
1888
+ "name": "foundationActionsMenuStyles",
1889
+ "declaration": {
1890
+ "name": "foundationActionsMenuStyles",
1891
+ "module": "src/actions-menu/actions-menu.styles.ts"
1861
1892
  }
1862
1893
  }
1863
1894
  ]
1864
1895
  },
1865
1896
  {
1866
1897
  "kind": "javascript-module",
1867
- "path": "src/accordion/accordion.template.ts",
1898
+ "path": "src/actions-menu/actions-menu.template.ts",
1868
1899
  "declarations": [
1869
1900
  {
1870
1901
  "kind": "function",
1871
- "name": "foundationAccordionTemplate",
1872
- "return": {
1873
- "type": {
1874
- "text": "ViewTemplate<Accordion>"
1875
- }
1876
- },
1902
+ "name": "menuTemplate",
1877
1903
  "parameters": [
1878
1904
  {
1879
- "name": "context",
1905
+ "name": "prefix",
1880
1906
  "type": {
1881
- "text": "ElementDefinitionContext"
1907
+ "text": "string"
1882
1908
  }
1883
- },
1909
+ }
1910
+ ]
1911
+ },
1912
+ {
1913
+ "kind": "function",
1914
+ "name": "singleOptionTemplate",
1915
+ "parameters": [
1884
1916
  {
1885
- "name": "definition",
1917
+ "name": "prefix",
1886
1918
  "type": {
1887
- "text": "FoundationElementDefinition"
1919
+ "text": "string"
1888
1920
  }
1889
1921
  }
1890
1922
  ]
1923
+ },
1924
+ {
1925
+ "kind": "variable",
1926
+ "name": "foundationActionsMenuTemplate",
1927
+ "type": {
1928
+ "text": "ViewTemplate<ActionsMenu>"
1929
+ },
1930
+ "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`"
1891
1931
  }
1892
1932
  ],
1893
1933
  "exports": [
1894
1934
  {
1895
1935
  "kind": "js",
1896
- "name": "foundationAccordionTemplate",
1936
+ "name": "menuTemplate",
1897
1937
  "declaration": {
1898
- "name": "foundationAccordionTemplate",
1899
- "module": "src/accordion/accordion.template.ts"
1938
+ "name": "menuTemplate",
1939
+ "module": "src/actions-menu/actions-menu.template.ts"
1940
+ }
1941
+ },
1942
+ {
1943
+ "kind": "js",
1944
+ "name": "singleOptionTemplate",
1945
+ "declaration": {
1946
+ "name": "singleOptionTemplate",
1947
+ "module": "src/actions-menu/actions-menu.template.ts"
1948
+ }
1949
+ },
1950
+ {
1951
+ "kind": "js",
1952
+ "name": "foundationActionsMenuTemplate",
1953
+ "declaration": {
1954
+ "name": "foundationActionsMenuTemplate",
1955
+ "module": "src/actions-menu/actions-menu.template.ts"
1900
1956
  }
1901
1957
  }
1902
1958
  ]
1903
1959
  },
1904
1960
  {
1905
1961
  "kind": "javascript-module",
1906
- "path": "src/accordion/accordion.ts",
1962
+ "path": "src/actions-menu/actions-menu.ts",
1907
1963
  "declarations": [
1908
1964
  {
1909
1965
  "kind": "class",
1910
1966
  "description": "",
1911
- "name": "Accordion",
1912
- "superclass": {
1913
- "name": "FASTAccordion",
1914
- "package": "@microsoft/fast-foundation"
1915
- },
1916
- "tagName": "%%prefix%%-accordion",
1917
- "customElement": true,
1918
- "attributes": [
1967
+ "name": "ActionsMenu",
1968
+ "members": [
1919
1969
  {
1920
- "name": "expand-mode",
1970
+ "kind": "field",
1971
+ "name": "actions",
1921
1972
  "type": {
1922
- "text": "AccordionExpandMode"
1923
- },
1924
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1925
- "fieldName": "expandmode",
1926
- "inheritedFrom": {
1927
- "name": "Accordion",
1928
- "module": "src/accordion/accordion.ts"
1973
+ "text": "ActionMenuItem[]"
1929
1974
  }
1930
- }
1931
- ],
1932
- "members": [
1975
+ },
1933
1976
  {
1934
1977
  "kind": "field",
1935
- "name": "expandmode",
1978
+ "name": "isVertical",
1936
1979
  "type": {
1937
- "text": "AccordionExpandMode"
1980
+ "text": "boolean"
1938
1981
  },
1939
- "privacy": "public",
1940
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1941
- "inheritedFrom": {
1942
- "name": "Accordion",
1943
- "module": "src/accordion/accordion.ts"
1944
- }
1982
+ "default": "false"
1945
1983
  },
1946
1984
  {
1947
1985
  "kind": "field",
1948
- "name": "activeid",
1986
+ "name": "addDefaultActions",
1949
1987
  "type": {
1950
- "text": "string | null"
1988
+ "text": "boolean"
1951
1989
  },
1952
- "privacy": "private",
1953
- "inheritedFrom": {
1954
- "name": "Accordion",
1955
- "module": "src/accordion/accordion.ts"
1956
- }
1990
+ "default": "true"
1957
1991
  },
1958
1992
  {
1959
1993
  "kind": "field",
1960
- "name": "activeItemIndex",
1994
+ "name": "autoCloseOnAction",
1961
1995
  "type": {
1962
- "text": "number"
1996
+ "text": "boolean"
1963
1997
  },
1964
- "privacy": "private",
1965
- "default": "0",
1966
- "inheritedFrom": {
1967
- "name": "Accordion",
1968
- "module": "src/accordion/accordion.ts"
1969
- }
1998
+ "default": "true"
1970
1999
  },
1971
2000
  {
1972
2001
  "kind": "field",
1973
- "name": "accordionIds",
2002
+ "name": "classNames",
1974
2003
  "type": {
1975
- "text": "Array<string | null>"
1976
- },
1977
- "privacy": "private",
1978
- "inheritedFrom": {
1979
- "name": "Accordion",
1980
- "module": "src/accordion/accordion.ts"
2004
+ "text": "string"
1981
2005
  }
1982
2006
  },
1983
2007
  {
1984
2008
  "kind": "field",
1985
- "name": "change",
1986
- "privacy": "private",
1987
- "inheritedFrom": {
1988
- "name": "Accordion",
1989
- "module": "src/accordion/accordion.ts"
2009
+ "name": "definition",
2010
+ "type": {
2011
+ "text": "any"
1990
2012
  }
1991
2013
  },
1992
2014
  {
1993
- "kind": "method",
1994
- "name": "findExpandedItem",
1995
- "privacy": "private",
1996
- "return": {
1997
- "type": {
1998
- "text": "AccordionItem | null"
1999
- }
2015
+ "kind": "field",
2016
+ "name": "name",
2017
+ "type": {
2018
+ "text": "string"
2000
2019
  },
2001
- "inheritedFrom": {
2002
- "name": "Accordion",
2003
- "module": "src/accordion/accordion.ts"
2004
- }
2020
+ "default": "'Actions'"
2005
2021
  },
2006
2022
  {
2007
2023
  "kind": "field",
2008
- "name": "setItems",
2009
- "privacy": "private",
2010
- "inheritedFrom": {
2011
- "name": "Accordion",
2012
- "module": "src/accordion/accordion.ts"
2024
+ "name": "open",
2025
+ "type": {
2026
+ "text": "boolean"
2027
+ },
2028
+ "default": "false"
2029
+ },
2030
+ {
2031
+ "kind": "field",
2032
+ "name": "buttonAppearance",
2033
+ "type": {
2034
+ "text": "string"
2013
2035
  }
2014
2036
  },
2015
2037
  {
2016
- "kind": "method",
2017
- "name": "resetItems",
2018
- "privacy": "private",
2019
- "return": {
2020
- "type": {
2021
- "text": "void"
2022
- }
2038
+ "kind": "field",
2039
+ "name": "hideDisabled",
2040
+ "type": {
2041
+ "text": "boolean"
2023
2042
  },
2024
- "inheritedFrom": {
2025
- "name": "Accordion",
2026
- "module": "src/accordion/accordion.ts"
2027
- }
2043
+ "default": "false"
2028
2044
  },
2029
2045
  {
2030
2046
  "kind": "field",
2031
- "name": "removeItemListeners",
2032
- "privacy": "private",
2033
- "inheritedFrom": {
2034
- "name": "Accordion",
2035
- "module": "src/accordion/accordion.ts"
2036
- }
2047
+ "name": "hideMenuSingleOption",
2048
+ "type": {
2049
+ "text": "boolean"
2050
+ },
2051
+ "default": "false"
2037
2052
  },
2038
2053
  {
2039
2054
  "kind": "field",
2040
- "name": "activeItemChange",
2041
- "privacy": "private",
2042
- "inheritedFrom": {
2043
- "name": "Accordion",
2044
- "module": "src/accordion/accordion.ts"
2055
+ "name": "singleOption",
2056
+ "type": {
2057
+ "text": "ActionMenuItem"
2045
2058
  }
2046
2059
  },
2047
2060
  {
2048
- "kind": "method",
2049
- "name": "getItemIds",
2050
- "privacy": "private",
2051
- "return": {
2052
- "type": {
2053
- "text": "Array<string | null>"
2054
- }
2055
- },
2056
- "inheritedFrom": {
2057
- "name": "Accordion",
2058
- "module": "src/accordion/accordion.ts"
2061
+ "kind": "field",
2062
+ "name": "actionsMenu",
2063
+ "type": {
2064
+ "text": "HTMLElement"
2059
2065
  }
2060
2066
  },
2061
2067
  {
2062
2068
  "kind": "method",
2063
- "name": "isSingleExpandMode",
2064
- "privacy": "private",
2065
- "return": {
2066
- "type": {
2067
- "text": "boolean"
2069
+ "name": "definitionChanged",
2070
+ "privacy": "protected",
2071
+ "parameters": [
2072
+ {
2073
+ "name": "oldValue",
2074
+ "type": {
2075
+ "text": "any"
2076
+ }
2077
+ },
2078
+ {
2079
+ "name": "newValue",
2080
+ "type": {
2081
+ "text": "any"
2082
+ }
2068
2083
  }
2069
- },
2070
- "inheritedFrom": {
2071
- "name": "Accordion",
2072
- "module": "src/accordion/accordion.ts"
2073
- }
2084
+ ]
2074
2085
  },
2075
2086
  {
2076
- "kind": "field",
2077
- "name": "handleItemKeyDown",
2078
- "privacy": "private",
2079
- "inheritedFrom": {
2080
- "name": "Accordion",
2081
- "module": "src/accordion/accordion.ts"
2082
- }
2087
+ "kind": "method",
2088
+ "name": "openChanged",
2089
+ "privacy": "protected"
2083
2090
  },
2084
2091
  {
2085
- "kind": "field",
2086
- "name": "handleItemFocus",
2087
- "privacy": "private",
2088
- "inheritedFrom": {
2089
- "name": "Accordion",
2090
- "module": "src/accordion/accordion.ts"
2091
- }
2092
+ "kind": "method",
2093
+ "name": "toggleActionsMenuVisibility"
2092
2094
  },
2093
2095
  {
2094
2096
  "kind": "method",
2095
- "name": "adjust",
2096
- "privacy": "private",
2097
- "return": {
2098
- "type": {
2099
- "text": "void"
2097
+ "name": "onActionMenuItemClick",
2098
+ "parameters": [
2099
+ {
2100
+ "name": "callback",
2101
+ "type": {
2102
+ "text": "(rowData) => void | any"
2103
+ }
2100
2104
  }
2105
+ ]
2106
+ },
2107
+ {
2108
+ "kind": "field",
2109
+ "name": "allActions",
2110
+ "type": {
2111
+ "text": "ActionMenuItem[]"
2101
2112
  },
2113
+ "readonly": true
2114
+ },
2115
+ {
2116
+ "kind": "field",
2117
+ "name": "rowData",
2118
+ "readonly": true
2119
+ },
2120
+ {
2121
+ "kind": "method",
2122
+ "name": "getLabel",
2102
2123
  "parameters": [
2103
2124
  {
2104
- "name": "adjustment",
2125
+ "name": "name",
2105
2126
  "type": {
2106
- "text": "number"
2127
+ "text": "string | ((rowData: any) => string)"
2107
2128
  }
2108
2129
  }
2109
- ],
2110
- "inheritedFrom": {
2111
- "name": "Accordion",
2112
- "module": "src/accordion/accordion.ts"
2113
- }
2130
+ ]
2114
2131
  },
2115
2132
  {
2116
2133
  "kind": "method",
2117
- "name": "focusItem",
2118
- "privacy": "private",
2119
- "return": {
2120
- "type": {
2121
- "text": "void"
2134
+ "name": "getTemplate",
2135
+ "parameters": [
2136
+ {
2137
+ "name": "prefix",
2138
+ "type": {
2139
+ "text": "string"
2140
+ }
2122
2141
  }
2123
- },
2124
- "inheritedFrom": {
2125
- "name": "Accordion",
2126
- "module": "src/accordion/accordion.ts"
2127
- }
2142
+ ]
2128
2143
  },
2129
2144
  {
2130
2145
  "kind": "field",
@@ -2238,78 +2253,107 @@
2238
2253
  }
2239
2254
  }
2240
2255
  ],
2241
- "events": [
2256
+ "attributes": [
2242
2257
  {
2243
- "description": "Fires a custom 'change' event when the active item changes",
2244
- "name": "change",
2245
- "inheritedFrom": {
2246
- "name": "Accordion",
2247
- "module": "src/accordion/accordion.ts"
2248
- }
2258
+ "name": "is-vertical",
2259
+ "type": {
2260
+ "text": "boolean"
2261
+ },
2262
+ "default": "false",
2263
+ "fieldName": "isVertical"
2264
+ },
2265
+ {
2266
+ "name": "add-default-actions",
2267
+ "type": {
2268
+ "text": "boolean"
2269
+ },
2270
+ "default": "true",
2271
+ "fieldName": "addDefaultActions"
2272
+ },
2273
+ {
2274
+ "name": "auto-close-on-action",
2275
+ "type": {
2276
+ "text": "boolean"
2277
+ },
2278
+ "default": "true",
2279
+ "fieldName": "autoCloseOnAction"
2280
+ },
2281
+ {
2282
+ "name": "name",
2283
+ "type": {
2284
+ "text": "string"
2285
+ },
2286
+ "default": "'Actions'",
2287
+ "fieldName": "name"
2288
+ },
2289
+ {
2290
+ "name": "open",
2291
+ "type": {
2292
+ "text": "boolean"
2293
+ },
2294
+ "default": "false",
2295
+ "fieldName": "open"
2296
+ },
2297
+ {
2298
+ "name": "buttonAppearance",
2299
+ "type": {
2300
+ "text": "string"
2301
+ },
2302
+ "fieldName": "buttonAppearance"
2303
+ },
2304
+ {
2305
+ "name": "hide-disabled",
2306
+ "type": {
2307
+ "text": "boolean"
2308
+ },
2309
+ "default": "false",
2310
+ "fieldName": "hideDisabled"
2311
+ },
2312
+ {
2313
+ "name": "hide-menu-single-option",
2314
+ "type": {
2315
+ "text": "boolean"
2316
+ },
2317
+ "default": "false",
2318
+ "fieldName": "hideMenuSingleOption"
2249
2319
  }
2250
- ]
2251
- },
2252
- {
2253
- "kind": "variable",
2254
- "name": "foundationAccordionShadowOptions",
2255
- "type": {
2256
- "text": "ShadowRootInit"
2257
- },
2258
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2259
- },
2260
- {
2261
- "kind": "variable",
2262
- "name": "defaultAccordionConfig",
2263
- "type": {
2264
- "text": "object"
2320
+ ],
2321
+ "superclass": {
2322
+ "name": "FoundationElement",
2323
+ "package": "@microsoft/fast-foundation"
2265
2324
  },
2266
- "default": "{}"
2325
+ "tagName": "%%prefix%%-actions-menu",
2326
+ "customElement": true
2267
2327
  },
2268
2328
  {
2269
2329
  "kind": "variable",
2270
- "name": "foundationAccordion",
2271
- "description": "The Foundation Accordion",
2330
+ "name": "foundationActionsMenu",
2331
+ "description": "The Foundation Actions Menu",
2272
2332
  "privacy": "public"
2273
2333
  }
2274
2334
  ],
2275
2335
  "exports": [
2276
2336
  {
2277
2337
  "kind": "js",
2278
- "name": "Accordion",
2279
- "declaration": {
2280
- "name": "Accordion",
2281
- "module": "src/accordion/accordion.ts"
2282
- }
2283
- },
2284
- {
2285
- "kind": "js",
2286
- "name": "foundationAccordionShadowOptions",
2287
- "declaration": {
2288
- "name": "foundationAccordionShadowOptions",
2289
- "module": "src/accordion/accordion.ts"
2290
- }
2291
- },
2292
- {
2293
- "kind": "js",
2294
- "name": "defaultAccordionConfig",
2338
+ "name": "ActionsMenu",
2295
2339
  "declaration": {
2296
- "name": "defaultAccordionConfig",
2297
- "module": "src/accordion/accordion.ts"
2340
+ "name": "ActionsMenu",
2341
+ "module": "src/actions-menu/actions-menu.ts"
2298
2342
  }
2299
2343
  },
2300
2344
  {
2301
2345
  "kind": "js",
2302
- "name": "foundationAccordion",
2346
+ "name": "foundationActionsMenu",
2303
2347
  "declaration": {
2304
- "name": "foundationAccordion",
2305
- "module": "src/accordion/accordion.ts"
2348
+ "name": "foundationActionsMenu",
2349
+ "module": "src/actions-menu/actions-menu.ts"
2306
2350
  }
2307
2351
  }
2308
2352
  ]
2309
2353
  },
2310
2354
  {
2311
2355
  "kind": "javascript-module",
2312
- "path": "src/accordion/index.ts",
2356
+ "path": "src/actions-menu/index.ts",
2313
2357
  "declarations": [],
2314
2358
  "exports": [
2315
2359
  {
@@ -2317,7 +2361,7 @@
2317
2361
  "name": "*",
2318
2362
  "declaration": {
2319
2363
  "name": "*",
2320
- "package": "./accordion.template"
2364
+ "package": "./actions-menu.styles"
2321
2365
  }
2322
2366
  },
2323
2367
  {
@@ -2325,7 +2369,7 @@
2325
2369
  "name": "*",
2326
2370
  "declaration": {
2327
2371
  "name": "*",
2328
- "package": "./accordion.styles"
2372
+ "package": "./actions-menu.template"
2329
2373
  }
2330
2374
  },
2331
2375
  {
@@ -2333,328 +2377,198 @@
2333
2377
  "name": "*",
2334
2378
  "declaration": {
2335
2379
  "name": "*",
2336
- "package": "./accordion"
2380
+ "package": "./actions-menu"
2337
2381
  }
2338
2382
  }
2339
2383
  ]
2340
2384
  },
2341
2385
  {
2342
2386
  "kind": "javascript-module",
2343
- "path": "src/actions-menu/actions-menu.styles.ts",
2387
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2344
2388
  "declarations": [
2345
2389
  {
2346
- "kind": "function",
2347
- "name": "actionsMenuBaseStyles",
2348
- "return": {
2349
- "type": {
2350
- "text": "ElementStyles"
2351
- }
2352
- },
2353
- "parameters": [
2354
- {
2355
- "name": "context",
2356
- "type": {
2357
- "text": "ElementDefinitionContext"
2358
- }
2359
- },
2360
- {
2361
- "name": "definition",
2362
- "type": {
2363
- "text": "FoundationElementDefinition"
2364
- }
2365
- }
2366
- ]
2367
- },
2368
- {
2369
- "kind": "function",
2370
- "name": "foundationActionsMenuStyles",
2371
- "return": {
2372
- "type": {
2373
- "text": "ElementStyles"
2374
- }
2375
- },
2376
- "parameters": [
2377
- {
2378
- "name": "context",
2379
- "type": {
2380
- "text": "ElementDefinitionContext"
2381
- }
2382
- },
2383
- {
2384
- "name": "definition",
2385
- "type": {
2386
- "text": "FoundationElementDefinition"
2387
- }
2388
- }
2389
- ]
2390
+ "kind": "variable",
2391
+ "name": "foundationAiCriteriaSearchStyles",
2392
+ "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 .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .mode-control {\n flex-shrink: 0;\n }\n`"
2390
2393
  }
2391
2394
  ],
2392
2395
  "exports": [
2393
2396
  {
2394
2397
  "kind": "js",
2395
- "name": "actionsMenuBaseStyles",
2396
- "declaration": {
2397
- "name": "actionsMenuBaseStyles",
2398
- "module": "src/actions-menu/actions-menu.styles.ts"
2399
- }
2400
- },
2401
- {
2402
- "kind": "js",
2403
- "name": "foundationActionsMenuStyles",
2398
+ "name": "foundationAiCriteriaSearchStyles",
2404
2399
  "declaration": {
2405
- "name": "foundationActionsMenuStyles",
2406
- "module": "src/actions-menu/actions-menu.styles.ts"
2400
+ "name": "foundationAiCriteriaSearchStyles",
2401
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2407
2402
  }
2408
2403
  }
2409
2404
  ]
2410
2405
  },
2411
2406
  {
2412
2407
  "kind": "javascript-module",
2413
- "path": "src/actions-menu/actions-menu.template.ts",
2408
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2414
2409
  "declarations": [
2415
- {
2416
- "kind": "function",
2417
- "name": "menuTemplate",
2418
- "parameters": [
2419
- {
2420
- "name": "prefix",
2421
- "type": {
2422
- "text": "string"
2423
- }
2424
- }
2425
- ]
2426
- },
2427
- {
2428
- "kind": "function",
2429
- "name": "singleOptionTemplate",
2430
- "parameters": [
2431
- {
2432
- "name": "prefix",
2433
- "type": {
2434
- "text": "string"
2435
- }
2436
- }
2437
- ]
2438
- },
2439
2410
  {
2440
2411
  "kind": "variable",
2441
- "name": "foundationActionsMenuTemplate",
2412
+ "name": "foundationAiCriteriaSearchTemplate",
2442
2413
  "type": {
2443
- "text": "ViewTemplate<ActionsMenu>"
2414
+ "text": "ViewTemplate<AiCriteriaSearch>"
2444
2415
  },
2445
- "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`"
2416
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2446
2417
  }
2447
2418
  ],
2448
2419
  "exports": [
2449
2420
  {
2450
2421
  "kind": "js",
2451
- "name": "menuTemplate",
2452
- "declaration": {
2453
- "name": "menuTemplate",
2454
- "module": "src/actions-menu/actions-menu.template.ts"
2455
- }
2456
- },
2457
- {
2458
- "kind": "js",
2459
- "name": "singleOptionTemplate",
2460
- "declaration": {
2461
- "name": "singleOptionTemplate",
2462
- "module": "src/actions-menu/actions-menu.template.ts"
2463
- }
2464
- },
2465
- {
2466
- "kind": "js",
2467
- "name": "foundationActionsMenuTemplate",
2422
+ "name": "foundationAiCriteriaSearchTemplate",
2468
2423
  "declaration": {
2469
- "name": "foundationActionsMenuTemplate",
2470
- "module": "src/actions-menu/actions-menu.template.ts"
2424
+ "name": "foundationAiCriteriaSearchTemplate",
2425
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2471
2426
  }
2472
2427
  }
2473
2428
  ]
2474
2429
  },
2475
2430
  {
2476
2431
  "kind": "javascript-module",
2477
- "path": "src/actions-menu/actions-menu.ts",
2432
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2478
2433
  "declarations": [
2479
2434
  {
2480
2435
  "kind": "class",
2481
- "description": "",
2482
- "name": "ActionsMenu",
2436
+ "description": "Natural-language criteria search input with AI interpretation.",
2437
+ "name": "AiCriteriaSearch",
2483
2438
  "members": [
2484
2439
  {
2485
2440
  "kind": "field",
2486
- "name": "actions",
2441
+ "name": "aiProvider",
2487
2442
  "type": {
2488
- "text": "ActionMenuItem[]"
2443
+ "text": "AIProvider"
2489
2444
  }
2490
2445
  },
2491
2446
  {
2492
2447
  "kind": "field",
2493
- "name": "isVertical",
2448
+ "name": "placeholder",
2494
2449
  "type": {
2495
- "text": "boolean"
2450
+ "text": "string"
2496
2451
  },
2497
- "default": "false"
2452
+ "default": "'Describe your search criteria in natural language...'"
2498
2453
  },
2499
2454
  {
2500
2455
  "kind": "field",
2501
- "name": "addDefaultActions",
2456
+ "name": "disabled",
2502
2457
  "type": {
2503
2458
  "text": "boolean"
2504
- },
2505
- "default": "true"
2459
+ }
2506
2460
  },
2507
2461
  {
2508
2462
  "kind": "field",
2509
- "name": "autoCloseOnAction",
2463
+ "name": "mode",
2510
2464
  "type": {
2511
- "text": "boolean"
2465
+ "text": "'append' | 'replace'"
2512
2466
  },
2513
- "default": "true"
2467
+ "default": "'replace'"
2514
2468
  },
2515
2469
  {
2516
2470
  "kind": "field",
2517
- "name": "classNames",
2471
+ "name": "inputValue",
2518
2472
  "type": {
2519
2473
  "text": "string"
2520
- }
2474
+ },
2475
+ "default": "''"
2521
2476
  },
2522
2477
  {
2523
2478
  "kind": "field",
2524
- "name": "definition",
2479
+ "name": "isInterpreting",
2525
2480
  "type": {
2526
- "text": "any"
2527
- }
2481
+ "text": "boolean"
2482
+ },
2483
+ "default": "false"
2528
2484
  },
2529
2485
  {
2530
2486
  "kind": "field",
2531
- "name": "name",
2487
+ "name": "lastValidCriteria",
2532
2488
  "type": {
2533
- "text": "string"
2489
+ "text": "string | null"
2534
2490
  },
2535
- "default": "'Actions'"
2491
+ "default": "null"
2536
2492
  },
2537
2493
  {
2538
2494
  "kind": "field",
2539
- "name": "open",
2495
+ "name": "fieldMetadata",
2540
2496
  "type": {
2541
- "text": "boolean"
2497
+ "text": "MetadataDetail[] | string[]"
2542
2498
  },
2543
- "default": "false"
2499
+ "default": "[]"
2544
2500
  },
2545
2501
  {
2546
2502
  "kind": "field",
2547
- "name": "buttonAppearance",
2503
+ "name": "isRecording",
2548
2504
  "type": {
2549
- "text": "string"
2550
- }
2505
+ "text": "boolean"
2506
+ },
2507
+ "default": "false"
2551
2508
  },
2552
2509
  {
2553
2510
  "kind": "field",
2554
- "name": "hideDisabled",
2511
+ "name": "textAreaRef",
2555
2512
  "type": {
2556
- "text": "boolean"
2513
+ "text": "HTMLTextAreaElement"
2557
2514
  },
2558
- "default": "false"
2515
+ "privacy": "public"
2559
2516
  },
2560
2517
  {
2561
2518
  "kind": "field",
2562
- "name": "hideMenuSingleOption",
2519
+ "name": "stopRecording",
2563
2520
  "type": {
2564
- "text": "boolean"
2521
+ "text": "(() => void) | null"
2565
2522
  },
2566
- "default": "false"
2523
+ "privacy": "private",
2524
+ "default": "null"
2567
2525
  },
2568
2526
  {
2569
2527
  "kind": "field",
2570
- "name": "singleOption",
2528
+ "name": "speechApplyDebounceTimer",
2571
2529
  "type": {
2572
- "text": "ActionMenuItem"
2573
- }
2530
+ "text": "ReturnType<typeof setTimeout> | null"
2531
+ },
2532
+ "privacy": "private",
2533
+ "default": "null"
2574
2534
  },
2575
2535
  {
2576
2536
  "kind": "field",
2577
- "name": "actionsMenu",
2537
+ "name": "baseInputForAppend",
2578
2538
  "type": {
2579
- "text": "HTMLElement"
2580
- }
2539
+ "text": "string"
2540
+ },
2541
+ "privacy": "private",
2542
+ "default": "''"
2581
2543
  },
2582
2544
  {
2583
- "kind": "method",
2584
- "name": "definitionChanged",
2585
- "privacy": "protected",
2586
- "parameters": [
2587
- {
2588
- "name": "oldValue",
2589
- "type": {
2590
- "text": "any"
2591
- }
2592
- },
2593
- {
2594
- "name": "newValue",
2595
- "type": {
2596
- "text": "any"
2597
- }
2598
- }
2599
- ]
2545
+ "kind": "field",
2546
+ "name": "speechAvailable",
2547
+ "type": {
2548
+ "text": "boolean"
2549
+ },
2550
+ "readonly": true
2600
2551
  },
2601
2552
  {
2602
2553
  "kind": "method",
2603
- "name": "openChanged",
2604
- "privacy": "protected"
2554
+ "name": "handleSubmit"
2605
2555
  },
2606
2556
  {
2607
2557
  "kind": "method",
2608
- "name": "toggleActionsMenuVisibility"
2558
+ "name": "handleBlur"
2609
2559
  },
2610
2560
  {
2611
2561
  "kind": "method",
2612
- "name": "onActionMenuItemClick",
2613
- "parameters": [
2614
- {
2615
- "name": "callback",
2616
- "type": {
2617
- "text": "(rowData) => void | any"
2618
- }
2619
- }
2620
- ]
2621
- },
2622
- {
2623
- "kind": "field",
2624
- "name": "allActions",
2625
- "type": {
2626
- "text": "ActionMenuItem[]"
2627
- },
2628
- "readonly": true
2629
- },
2630
- {
2631
- "kind": "field",
2632
- "name": "rowData",
2633
- "readonly": true
2562
+ "name": "clear"
2634
2563
  },
2635
2564
  {
2636
2565
  "kind": "method",
2637
- "name": "getLabel",
2638
- "parameters": [
2639
- {
2640
- "name": "name",
2641
- "type": {
2642
- "text": "string | ((rowData: any) => string)"
2643
- }
2644
- }
2645
- ]
2566
+ "name": "toggleSpeechInput"
2646
2567
  },
2647
2568
  {
2648
2569
  "kind": "method",
2649
- "name": "getTemplate",
2650
- "parameters": [
2651
- {
2652
- "name": "prefix",
2653
- "type": {
2654
- "text": "string"
2655
- }
2656
- }
2657
- ]
2570
+ "name": "clearSpeechApplyDebounce",
2571
+ "privacy": "private"
2658
2572
  },
2659
2573
  {
2660
2574
  "kind": "field",
@@ -2768,115 +2682,162 @@
2768
2682
  }
2769
2683
  }
2770
2684
  ],
2771
- "attributes": [
2685
+ "events": [
2772
2686
  {
2773
- "name": "is-vertical",
2774
- "type": {
2775
- "text": "boolean"
2776
- },
2777
- "default": "false",
2778
- "fieldName": "isVertical"
2779
- },
2780
- {
2781
- "name": "add-default-actions",
2782
- "type": {
2783
- "text": "boolean"
2784
- },
2785
- "default": "true",
2786
- "fieldName": "addDefaultActions"
2787
- },
2788
- {
2789
- "name": "auto-close-on-action",
2790
- "type": {
2791
- "text": "boolean"
2792
- },
2793
- "default": "true",
2794
- "fieldName": "autoCloseOnAction"
2795
- },
2796
- {
2797
- "name": "name",
2798
- "type": {
2799
- "text": "string"
2800
- },
2801
- "default": "'Actions'",
2802
- "fieldName": "name"
2687
+ "description": "Fired when interpreted criteria is applied or cleared",
2688
+ "name": "criteria-changed"
2803
2689
  },
2804
2690
  {
2805
- "name": "open",
2806
- "type": {
2807
- "text": "boolean"
2808
- },
2809
- "default": "false",
2810
- "fieldName": "open"
2811
- },
2691
+ "description": "Fired when interpreted criteria contains invalid clauses",
2692
+ "name": "validation-errors"
2693
+ }
2694
+ ],
2695
+ "attributes": [
2812
2696
  {
2813
- "name": "buttonAppearance",
2697
+ "name": "placeholder",
2814
2698
  "type": {
2815
2699
  "text": "string"
2816
2700
  },
2817
- "fieldName": "buttonAppearance"
2701
+ "default": "'Describe your search criteria in natural language...'",
2702
+ "fieldName": "placeholder"
2818
2703
  },
2819
2704
  {
2820
- "name": "hide-disabled",
2821
2705
  "type": {
2822
2706
  "text": "boolean"
2823
2707
  },
2824
- "default": "false",
2825
- "fieldName": "hideDisabled"
2708
+ "fieldName": "disabled"
2826
2709
  },
2827
2710
  {
2828
- "name": "hide-menu-single-option",
2711
+ "name": "mode",
2829
2712
  "type": {
2830
- "text": "boolean"
2713
+ "text": "'append' | 'replace'"
2831
2714
  },
2832
- "default": "false",
2833
- "fieldName": "hideMenuSingleOption"
2715
+ "default": "'replace'",
2716
+ "fieldName": "mode"
2834
2717
  }
2835
2718
  ],
2836
2719
  "superclass": {
2837
2720
  "name": "FoundationElement",
2838
2721
  "package": "@microsoft/fast-foundation"
2839
2722
  },
2840
- "tagName": "%%prefix%%-actions-menu",
2723
+ "tagName": "%%prefix%%-ai-criteria-search",
2841
2724
  "customElement": true
2842
2725
  },
2843
2726
  {
2844
2727
  "kind": "variable",
2845
- "name": "foundationActionsMenu",
2846
- "description": "The Foundation Actions Menu",
2847
- "privacy": "public"
2728
+ "name": "foundationAiCriteriaSearchShadowOptions",
2729
+ "type": {
2730
+ "text": "ShadowRootInit"
2731
+ },
2732
+ "default": "undefined"
2733
+ },
2734
+ {
2735
+ "kind": "variable",
2736
+ "name": "defaultAiCriteriaSearchConfig",
2737
+ "type": {
2738
+ "text": "object"
2739
+ },
2740
+ "default": "{}"
2741
+ },
2742
+ {
2743
+ "kind": "variable",
2744
+ "name": "foundationAiCriteriaSearch"
2848
2745
  }
2849
2746
  ],
2850
2747
  "exports": [
2851
2748
  {
2852
2749
  "kind": "js",
2853
- "name": "ActionsMenu",
2750
+ "name": "AiCriteriaSearch",
2854
2751
  "declaration": {
2855
- "name": "ActionsMenu",
2856
- "module": "src/actions-menu/actions-menu.ts"
2752
+ "name": "AiCriteriaSearch",
2753
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2857
2754
  }
2858
2755
  },
2859
2756
  {
2860
2757
  "kind": "js",
2861
- "name": "foundationActionsMenu",
2758
+ "name": "foundationAiCriteriaSearchShadowOptions",
2862
2759
  "declaration": {
2863
- "name": "foundationActionsMenu",
2864
- "module": "src/actions-menu/actions-menu.ts"
2760
+ "name": "foundationAiCriteriaSearchShadowOptions",
2761
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2762
+ }
2763
+ },
2764
+ {
2765
+ "kind": "js",
2766
+ "name": "defaultAiCriteriaSearchConfig",
2767
+ "declaration": {
2768
+ "name": "defaultAiCriteriaSearchConfig",
2769
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2770
+ }
2771
+ },
2772
+ {
2773
+ "kind": "js",
2774
+ "name": "foundationAiCriteriaSearch",
2775
+ "declaration": {
2776
+ "name": "foundationAiCriteriaSearch",
2777
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2865
2778
  }
2866
2779
  }
2867
2780
  ]
2868
2781
  },
2869
2782
  {
2870
2783
  "kind": "javascript-module",
2871
- "path": "src/actions-menu/index.ts",
2784
+ "path": "src/ai-criteria-search/index.ts",
2872
2785
  "declarations": [],
2873
2786
  "exports": [
2787
+ {
2788
+ "kind": "js",
2789
+ "name": "AiCriteriaSearch",
2790
+ "declaration": {
2791
+ "name": "AiCriteriaSearch",
2792
+ "module": "./ai-criteria-search"
2793
+ }
2794
+ },
2795
+ {
2796
+ "kind": "js",
2797
+ "name": "defaultAiCriteriaSearchConfig",
2798
+ "declaration": {
2799
+ "name": "defaultAiCriteriaSearchConfig",
2800
+ "module": "./ai-criteria-search"
2801
+ }
2802
+ },
2803
+ {
2804
+ "kind": "js",
2805
+ "name": "foundationAiCriteriaSearch",
2806
+ "declaration": {
2807
+ "name": "foundationAiCriteriaSearch",
2808
+ "module": "./ai-criteria-search"
2809
+ }
2810
+ },
2811
+ {
2812
+ "kind": "js",
2813
+ "name": "foundationAiCriteriaSearchShadowOptions",
2814
+ "declaration": {
2815
+ "name": "foundationAiCriteriaSearchShadowOptions",
2816
+ "module": "./ai-criteria-search"
2817
+ }
2818
+ },
2819
+ {
2820
+ "kind": "js",
2821
+ "name": "foundationAiCriteriaSearchStyles",
2822
+ "declaration": {
2823
+ "name": "foundationAiCriteriaSearchStyles",
2824
+ "module": "./ai-criteria-search.styles"
2825
+ }
2826
+ },
2827
+ {
2828
+ "kind": "js",
2829
+ "name": "foundationAiCriteriaSearchTemplate",
2830
+ "declaration": {
2831
+ "name": "foundationAiCriteriaSearchTemplate",
2832
+ "module": "./ai-criteria-search.template"
2833
+ }
2834
+ },
2874
2835
  {
2875
2836
  "kind": "js",
2876
2837
  "name": "*",
2877
2838
  "declaration": {
2878
2839
  "name": "*",
2879
- "package": "./actions-menu.styles"
2840
+ "package": "./validation/criteria-ir"
2880
2841
  }
2881
2842
  },
2882
2843
  {
@@ -2884,7 +2845,7 @@
2884
2845
  "name": "*",
2885
2846
  "declaration": {
2886
2847
  "name": "*",
2887
- "package": "./actions-menu.template"
2848
+ "package": "./validation/operator-map"
2888
2849
  }
2889
2850
  },
2890
2851
  {
@@ -2892,198 +2853,388 @@
2892
2853
  "name": "*",
2893
2854
  "declaration": {
2894
2855
  "name": "*",
2895
- "package": "./actions-menu"
2856
+ "package": "./validation/schema-validator"
2896
2857
  }
2897
2858
  }
2898
2859
  ]
2899
2860
  },
2900
2861
  {
2901
2862
  "kind": "javascript-module",
2902
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2863
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2903
2864
  "declarations": [
2904
2865
  {
2905
- "kind": "variable",
2906
- "name": "foundationAiCriteriaSearchStyles",
2907
- "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 .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .mode-control {\n flex-shrink: 0;\n }\n`"
2866
+ "kind": "function",
2867
+ "name": "formatValidationErrors",
2868
+ "return": {
2869
+ "type": {
2870
+ "text": "string"
2871
+ }
2872
+ },
2873
+ "parameters": [
2874
+ {
2875
+ "name": "errors",
2876
+ "type": {
2877
+ "text": "ValidationError[]"
2878
+ }
2879
+ }
2880
+ ],
2881
+ "description": "Formats validation errors into a user-friendly message."
2882
+ },
2883
+ {
2884
+ "kind": "function",
2885
+ "name": "showCriteriaError",
2886
+ "return": {
2887
+ "type": {
2888
+ "text": "void"
2889
+ }
2890
+ },
2891
+ "parameters": [
2892
+ {
2893
+ "name": "title",
2894
+ "type": {
2895
+ "text": "string"
2896
+ },
2897
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2898
+ },
2899
+ {
2900
+ "name": "body",
2901
+ "type": {
2902
+ "text": "string"
2903
+ },
2904
+ "description": "Error message to display"
2905
+ },
2906
+ {
2907
+ "name": "tagName",
2908
+ "type": {
2909
+ "text": "string"
2910
+ },
2911
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2912
+ }
2913
+ ],
2914
+ "description": "Shows a criteria error as a toast notification."
2908
2915
  }
2909
2916
  ],
2910
2917
  "exports": [
2911
2918
  {
2912
2919
  "kind": "js",
2913
- "name": "foundationAiCriteriaSearchStyles",
2920
+ "name": "formatValidationErrors",
2914
2921
  "declaration": {
2915
- "name": "foundationAiCriteriaSearchStyles",
2916
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2922
+ "name": "formatValidationErrors",
2923
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2924
+ }
2925
+ },
2926
+ {
2927
+ "kind": "js",
2928
+ "name": "showCriteriaError",
2929
+ "declaration": {
2930
+ "name": "showCriteriaError",
2931
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2917
2932
  }
2918
2933
  }
2919
2934
  ]
2920
2935
  },
2921
2936
  {
2922
2937
  "kind": "javascript-module",
2923
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2938
+ "path": "src/accordion/accordion.styles.ts",
2924
2939
  "declarations": [
2925
2940
  {
2926
- "kind": "variable",
2927
- "name": "foundationAiCriteriaSearchTemplate",
2928
- "type": {
2929
- "text": "ViewTemplate<AiCriteriaSearch>"
2941
+ "kind": "function",
2942
+ "name": "foundationAccordionStyles",
2943
+ "return": {
2944
+ "type": {
2945
+ "text": "ElementStyles"
2946
+ }
2930
2947
  },
2931
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2948
+ "parameters": [
2949
+ {
2950
+ "name": "context",
2951
+ "type": {
2952
+ "text": "ElementDefinitionContext"
2953
+ }
2954
+ },
2955
+ {
2956
+ "name": "definition",
2957
+ "type": {
2958
+ "text": "FoundationElementDefinition"
2959
+ }
2960
+ }
2961
+ ]
2932
2962
  }
2933
2963
  ],
2934
2964
  "exports": [
2935
2965
  {
2936
2966
  "kind": "js",
2937
- "name": "foundationAiCriteriaSearchTemplate",
2967
+ "name": "foundationAccordionStyles",
2938
2968
  "declaration": {
2939
- "name": "foundationAiCriteriaSearchTemplate",
2940
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2969
+ "name": "foundationAccordionStyles",
2970
+ "module": "src/accordion/accordion.styles.ts"
2941
2971
  }
2942
2972
  }
2943
2973
  ]
2944
2974
  },
2945
2975
  {
2946
2976
  "kind": "javascript-module",
2947
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2977
+ "path": "src/accordion/accordion.template.ts",
2948
2978
  "declarations": [
2949
2979
  {
2950
- "kind": "class",
2951
- "description": "Natural-language criteria search input with AI interpretation.",
2952
- "name": "AiCriteriaSearch",
2953
- "members": [
2980
+ "kind": "function",
2981
+ "name": "foundationAccordionTemplate",
2982
+ "return": {
2983
+ "type": {
2984
+ "text": "ViewTemplate<Accordion>"
2985
+ }
2986
+ },
2987
+ "parameters": [
2954
2988
  {
2955
- "kind": "field",
2956
- "name": "aiProvider",
2989
+ "name": "context",
2957
2990
  "type": {
2958
- "text": "AIProvider"
2991
+ "text": "ElementDefinitionContext"
2959
2992
  }
2960
2993
  },
2961
2994
  {
2962
- "kind": "field",
2963
- "name": "placeholder",
2995
+ "name": "definition",
2964
2996
  "type": {
2965
- "text": "string"
2966
- },
2967
- "default": "'Describe your search criteria in natural language...'"
2968
- },
2997
+ "text": "FoundationElementDefinition"
2998
+ }
2999
+ }
3000
+ ]
3001
+ }
3002
+ ],
3003
+ "exports": [
3004
+ {
3005
+ "kind": "js",
3006
+ "name": "foundationAccordionTemplate",
3007
+ "declaration": {
3008
+ "name": "foundationAccordionTemplate",
3009
+ "module": "src/accordion/accordion.template.ts"
3010
+ }
3011
+ }
3012
+ ]
3013
+ },
3014
+ {
3015
+ "kind": "javascript-module",
3016
+ "path": "src/accordion/accordion.ts",
3017
+ "declarations": [
3018
+ {
3019
+ "kind": "class",
3020
+ "description": "",
3021
+ "name": "Accordion",
3022
+ "superclass": {
3023
+ "name": "FASTAccordion",
3024
+ "package": "@microsoft/fast-foundation"
3025
+ },
3026
+ "tagName": "%%prefix%%-accordion",
3027
+ "customElement": true,
3028
+ "attributes": [
2969
3029
  {
2970
- "kind": "field",
2971
- "name": "disabled",
3030
+ "name": "expand-mode",
2972
3031
  "type": {
2973
- "text": "boolean"
3032
+ "text": "AccordionExpandMode"
3033
+ },
3034
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3035
+ "fieldName": "expandmode",
3036
+ "inheritedFrom": {
3037
+ "name": "Accordion",
3038
+ "module": "src/accordion/accordion.ts"
2974
3039
  }
2975
- },
3040
+ }
3041
+ ],
3042
+ "members": [
2976
3043
  {
2977
3044
  "kind": "field",
2978
- "name": "mode",
3045
+ "name": "expandmode",
2979
3046
  "type": {
2980
- "text": "'append' | 'replace'"
3047
+ "text": "AccordionExpandMode"
2981
3048
  },
2982
- "default": "'replace'"
3049
+ "privacy": "public",
3050
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3051
+ "inheritedFrom": {
3052
+ "name": "Accordion",
3053
+ "module": "src/accordion/accordion.ts"
3054
+ }
2983
3055
  },
2984
3056
  {
2985
3057
  "kind": "field",
2986
- "name": "inputValue",
3058
+ "name": "activeid",
2987
3059
  "type": {
2988
- "text": "string"
3060
+ "text": "string | null"
2989
3061
  },
2990
- "default": "''"
3062
+ "privacy": "private",
3063
+ "inheritedFrom": {
3064
+ "name": "Accordion",
3065
+ "module": "src/accordion/accordion.ts"
3066
+ }
2991
3067
  },
2992
3068
  {
2993
3069
  "kind": "field",
2994
- "name": "isInterpreting",
3070
+ "name": "activeItemIndex",
2995
3071
  "type": {
2996
- "text": "boolean"
3072
+ "text": "number"
2997
3073
  },
2998
- "default": "false"
3074
+ "privacy": "private",
3075
+ "default": "0",
3076
+ "inheritedFrom": {
3077
+ "name": "Accordion",
3078
+ "module": "src/accordion/accordion.ts"
3079
+ }
2999
3080
  },
3000
3081
  {
3001
3082
  "kind": "field",
3002
- "name": "lastValidCriteria",
3083
+ "name": "accordionIds",
3003
3084
  "type": {
3004
- "text": "string | null"
3085
+ "text": "Array<string | null>"
3005
3086
  },
3006
- "default": "null"
3087
+ "privacy": "private",
3088
+ "inheritedFrom": {
3089
+ "name": "Accordion",
3090
+ "module": "src/accordion/accordion.ts"
3091
+ }
3007
3092
  },
3008
3093
  {
3009
3094
  "kind": "field",
3010
- "name": "fieldMetadata",
3011
- "type": {
3012
- "text": "MetadataDetail[] | string[]"
3013
- },
3014
- "default": "[]"
3095
+ "name": "change",
3096
+ "privacy": "private",
3097
+ "inheritedFrom": {
3098
+ "name": "Accordion",
3099
+ "module": "src/accordion/accordion.ts"
3100
+ }
3015
3101
  },
3016
3102
  {
3017
- "kind": "field",
3018
- "name": "isRecording",
3019
- "type": {
3020
- "text": "boolean"
3103
+ "kind": "method",
3104
+ "name": "findExpandedItem",
3105
+ "privacy": "private",
3106
+ "return": {
3107
+ "type": {
3108
+ "text": "AccordionItem | null"
3109
+ }
3021
3110
  },
3022
- "default": "false"
3111
+ "inheritedFrom": {
3112
+ "name": "Accordion",
3113
+ "module": "src/accordion/accordion.ts"
3114
+ }
3023
3115
  },
3024
3116
  {
3025
3117
  "kind": "field",
3026
- "name": "textAreaRef",
3027
- "type": {
3028
- "text": "HTMLTextAreaElement"
3029
- },
3030
- "privacy": "public"
3118
+ "name": "setItems",
3119
+ "privacy": "private",
3120
+ "inheritedFrom": {
3121
+ "name": "Accordion",
3122
+ "module": "src/accordion/accordion.ts"
3123
+ }
3031
3124
  },
3032
3125
  {
3033
- "kind": "field",
3034
- "name": "stopRecording",
3035
- "type": {
3036
- "text": "(() => void) | null"
3037
- },
3126
+ "kind": "method",
3127
+ "name": "resetItems",
3038
3128
  "privacy": "private",
3039
- "default": "null"
3129
+ "return": {
3130
+ "type": {
3131
+ "text": "void"
3132
+ }
3133
+ },
3134
+ "inheritedFrom": {
3135
+ "name": "Accordion",
3136
+ "module": "src/accordion/accordion.ts"
3137
+ }
3040
3138
  },
3041
3139
  {
3042
3140
  "kind": "field",
3043
- "name": "speechApplyDebounceTimer",
3044
- "type": {
3045
- "text": "ReturnType<typeof setTimeout> | null"
3046
- },
3141
+ "name": "removeItemListeners",
3047
3142
  "privacy": "private",
3048
- "default": "null"
3143
+ "inheritedFrom": {
3144
+ "name": "Accordion",
3145
+ "module": "src/accordion/accordion.ts"
3146
+ }
3049
3147
  },
3050
3148
  {
3051
3149
  "kind": "field",
3052
- "name": "baseInputForAppend",
3053
- "type": {
3054
- "text": "string"
3055
- },
3150
+ "name": "activeItemChange",
3056
3151
  "privacy": "private",
3057
- "default": "''"
3152
+ "inheritedFrom": {
3153
+ "name": "Accordion",
3154
+ "module": "src/accordion/accordion.ts"
3155
+ }
3058
3156
  },
3059
3157
  {
3060
- "kind": "field",
3061
- "name": "speechAvailable",
3062
- "type": {
3063
- "text": "boolean"
3158
+ "kind": "method",
3159
+ "name": "getItemIds",
3160
+ "privacy": "private",
3161
+ "return": {
3162
+ "type": {
3163
+ "text": "Array<string | null>"
3164
+ }
3064
3165
  },
3065
- "readonly": true
3166
+ "inheritedFrom": {
3167
+ "name": "Accordion",
3168
+ "module": "src/accordion/accordion.ts"
3169
+ }
3066
3170
  },
3067
3171
  {
3068
3172
  "kind": "method",
3069
- "name": "handleSubmit"
3173
+ "name": "isSingleExpandMode",
3174
+ "privacy": "private",
3175
+ "return": {
3176
+ "type": {
3177
+ "text": "boolean"
3178
+ }
3179
+ },
3180
+ "inheritedFrom": {
3181
+ "name": "Accordion",
3182
+ "module": "src/accordion/accordion.ts"
3183
+ }
3070
3184
  },
3071
3185
  {
3072
- "kind": "method",
3073
- "name": "handleBlur"
3186
+ "kind": "field",
3187
+ "name": "handleItemKeyDown",
3188
+ "privacy": "private",
3189
+ "inheritedFrom": {
3190
+ "name": "Accordion",
3191
+ "module": "src/accordion/accordion.ts"
3192
+ }
3074
3193
  },
3075
3194
  {
3076
- "kind": "method",
3077
- "name": "clear"
3195
+ "kind": "field",
3196
+ "name": "handleItemFocus",
3197
+ "privacy": "private",
3198
+ "inheritedFrom": {
3199
+ "name": "Accordion",
3200
+ "module": "src/accordion/accordion.ts"
3201
+ }
3078
3202
  },
3079
3203
  {
3080
3204
  "kind": "method",
3081
- "name": "toggleSpeechInput"
3205
+ "name": "adjust",
3206
+ "privacy": "private",
3207
+ "return": {
3208
+ "type": {
3209
+ "text": "void"
3210
+ }
3211
+ },
3212
+ "parameters": [
3213
+ {
3214
+ "name": "adjustment",
3215
+ "type": {
3216
+ "text": "number"
3217
+ }
3218
+ }
3219
+ ],
3220
+ "inheritedFrom": {
3221
+ "name": "Accordion",
3222
+ "module": "src/accordion/accordion.ts"
3223
+ }
3082
3224
  },
3083
3225
  {
3084
3226
  "kind": "method",
3085
- "name": "clearSpeechApplyDebounce",
3086
- "privacy": "private"
3227
+ "name": "focusItem",
3228
+ "privacy": "private",
3229
+ "return": {
3230
+ "type": {
3231
+ "text": "void"
3232
+ }
3233
+ },
3234
+ "inheritedFrom": {
3235
+ "name": "Accordion",
3236
+ "module": "src/accordion/accordion.ts"
3237
+ }
3087
3238
  },
3088
3239
  {
3089
3240
  "kind": "field",
@@ -3199,56 +3350,26 @@
3199
3350
  ],
3200
3351
  "events": [
3201
3352
  {
3202
- "description": "Fired when interpreted criteria is applied or cleared",
3203
- "name": "criteria-changed"
3204
- },
3205
- {
3206
- "description": "Fired when interpreted criteria contains invalid clauses",
3207
- "name": "validation-errors"
3208
- }
3209
- ],
3210
- "attributes": [
3211
- {
3212
- "name": "placeholder",
3213
- "type": {
3214
- "text": "string"
3215
- },
3216
- "default": "'Describe your search criteria in natural language...'",
3217
- "fieldName": "placeholder"
3218
- },
3219
- {
3220
- "type": {
3221
- "text": "boolean"
3222
- },
3223
- "fieldName": "disabled"
3224
- },
3225
- {
3226
- "name": "mode",
3227
- "type": {
3228
- "text": "'append' | 'replace'"
3229
- },
3230
- "default": "'replace'",
3231
- "fieldName": "mode"
3353
+ "description": "Fires a custom 'change' event when the active item changes",
3354
+ "name": "change",
3355
+ "inheritedFrom": {
3356
+ "name": "Accordion",
3357
+ "module": "src/accordion/accordion.ts"
3358
+ }
3232
3359
  }
3233
- ],
3234
- "superclass": {
3235
- "name": "FoundationElement",
3236
- "package": "@microsoft/fast-foundation"
3237
- },
3238
- "tagName": "%%prefix%%-ai-criteria-search",
3239
- "customElement": true
3360
+ ]
3240
3361
  },
3241
3362
  {
3242
3363
  "kind": "variable",
3243
- "name": "foundationAiCriteriaSearchShadowOptions",
3364
+ "name": "foundationAccordionShadowOptions",
3244
3365
  "type": {
3245
3366
  "text": "ShadowRootInit"
3246
3367
  },
3247
- "default": "undefined"
3368
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3248
3369
  },
3249
3370
  {
3250
3371
  "kind": "variable",
3251
- "name": "defaultAiCriteriaSearchConfig",
3372
+ "name": "defaultAccordionConfig",
3252
3373
  "type": {
3253
3374
  "text": "object"
3254
3375
  },
@@ -3256,103 +3377,57 @@
3256
3377
  },
3257
3378
  {
3258
3379
  "kind": "variable",
3259
- "name": "foundationAiCriteriaSearch"
3380
+ "name": "foundationAccordion",
3381
+ "description": "The Foundation Accordion",
3382
+ "privacy": "public"
3260
3383
  }
3261
3384
  ],
3262
3385
  "exports": [
3263
3386
  {
3264
3387
  "kind": "js",
3265
- "name": "AiCriteriaSearch",
3388
+ "name": "Accordion",
3266
3389
  "declaration": {
3267
- "name": "AiCriteriaSearch",
3268
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3390
+ "name": "Accordion",
3391
+ "module": "src/accordion/accordion.ts"
3269
3392
  }
3270
3393
  },
3271
3394
  {
3272
3395
  "kind": "js",
3273
- "name": "foundationAiCriteriaSearchShadowOptions",
3396
+ "name": "foundationAccordionShadowOptions",
3274
3397
  "declaration": {
3275
- "name": "foundationAiCriteriaSearchShadowOptions",
3276
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3398
+ "name": "foundationAccordionShadowOptions",
3399
+ "module": "src/accordion/accordion.ts"
3277
3400
  }
3278
3401
  },
3279
3402
  {
3280
3403
  "kind": "js",
3281
- "name": "defaultAiCriteriaSearchConfig",
3404
+ "name": "defaultAccordionConfig",
3282
3405
  "declaration": {
3283
- "name": "defaultAiCriteriaSearchConfig",
3284
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3406
+ "name": "defaultAccordionConfig",
3407
+ "module": "src/accordion/accordion.ts"
3285
3408
  }
3286
3409
  },
3287
3410
  {
3288
3411
  "kind": "js",
3289
- "name": "foundationAiCriteriaSearch",
3412
+ "name": "foundationAccordion",
3290
3413
  "declaration": {
3291
- "name": "foundationAiCriteriaSearch",
3292
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3414
+ "name": "foundationAccordion",
3415
+ "module": "src/accordion/accordion.ts"
3293
3416
  }
3294
3417
  }
3295
3418
  ]
3296
3419
  },
3297
3420
  {
3298
3421
  "kind": "javascript-module",
3299
- "path": "src/ai-criteria-search/index.ts",
3422
+ "path": "src/accordion/index.ts",
3300
3423
  "declarations": [],
3301
3424
  "exports": [
3302
- {
3303
- "kind": "js",
3304
- "name": "AiCriteriaSearch",
3305
- "declaration": {
3306
- "name": "AiCriteriaSearch",
3307
- "module": "./ai-criteria-search"
3308
- }
3309
- },
3310
- {
3311
- "kind": "js",
3312
- "name": "defaultAiCriteriaSearchConfig",
3313
- "declaration": {
3314
- "name": "defaultAiCriteriaSearchConfig",
3315
- "module": "./ai-criteria-search"
3316
- }
3317
- },
3318
- {
3319
- "kind": "js",
3320
- "name": "foundationAiCriteriaSearch",
3321
- "declaration": {
3322
- "name": "foundationAiCriteriaSearch",
3323
- "module": "./ai-criteria-search"
3324
- }
3325
- },
3326
- {
3327
- "kind": "js",
3328
- "name": "foundationAiCriteriaSearchShadowOptions",
3329
- "declaration": {
3330
- "name": "foundationAiCriteriaSearchShadowOptions",
3331
- "module": "./ai-criteria-search"
3332
- }
3333
- },
3334
- {
3335
- "kind": "js",
3336
- "name": "foundationAiCriteriaSearchStyles",
3337
- "declaration": {
3338
- "name": "foundationAiCriteriaSearchStyles",
3339
- "module": "./ai-criteria-search.styles"
3340
- }
3341
- },
3342
- {
3343
- "kind": "js",
3344
- "name": "foundationAiCriteriaSearchTemplate",
3345
- "declaration": {
3346
- "name": "foundationAiCriteriaSearchTemplate",
3347
- "module": "./ai-criteria-search.template"
3348
- }
3349
- },
3350
3425
  {
3351
3426
  "kind": "js",
3352
3427
  "name": "*",
3353
3428
  "declaration": {
3354
3429
  "name": "*",
3355
- "package": "./validation/criteria-ir"
3430
+ "package": "./accordion.template"
3356
3431
  }
3357
3432
  },
3358
3433
  {
@@ -3360,7 +3435,7 @@
3360
3435
  "name": "*",
3361
3436
  "declaration": {
3362
3437
  "name": "*",
3363
- "package": "./validation/operator-map"
3438
+ "package": "./accordion.styles"
3364
3439
  }
3365
3440
  },
3366
3441
  {
@@ -3368,82 +3443,7 @@
3368
3443
  "name": "*",
3369
3444
  "declaration": {
3370
3445
  "name": "*",
3371
- "package": "./validation/schema-validator"
3372
- }
3373
- }
3374
- ]
3375
- },
3376
- {
3377
- "kind": "javascript-module",
3378
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3379
- "declarations": [
3380
- {
3381
- "kind": "function",
3382
- "name": "formatValidationErrors",
3383
- "return": {
3384
- "type": {
3385
- "text": "string"
3386
- }
3387
- },
3388
- "parameters": [
3389
- {
3390
- "name": "errors",
3391
- "type": {
3392
- "text": "ValidationError[]"
3393
- }
3394
- }
3395
- ],
3396
- "description": "Formats validation errors into a user-friendly message."
3397
- },
3398
- {
3399
- "kind": "function",
3400
- "name": "showCriteriaError",
3401
- "return": {
3402
- "type": {
3403
- "text": "void"
3404
- }
3405
- },
3406
- "parameters": [
3407
- {
3408
- "name": "title",
3409
- "type": {
3410
- "text": "string"
3411
- },
3412
- "description": "Notification title (e.g. \"Criteria validation error\")"
3413
- },
3414
- {
3415
- "name": "body",
3416
- "type": {
3417
- "text": "string"
3418
- },
3419
- "description": "Error message to display"
3420
- },
3421
- {
3422
- "name": "tagName",
3423
- "type": {
3424
- "text": "string"
3425
- },
3426
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3427
- }
3428
- ],
3429
- "description": "Shows a criteria error as a toast notification."
3430
- }
3431
- ],
3432
- "exports": [
3433
- {
3434
- "kind": "js",
3435
- "name": "formatValidationErrors",
3436
- "declaration": {
3437
- "name": "formatValidationErrors",
3438
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3439
- }
3440
- },
3441
- {
3442
- "kind": "js",
3443
- "name": "showCriteriaError",
3444
- "declaration": {
3445
- "name": "showCriteriaError",
3446
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3446
+ "package": "./accordion"
3447
3447
  }
3448
3448
  }
3449
3449
  ]