@genesislcap/foundation-ui 14.430.2-alpha-d7b354f.0 → 14.430.2

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