@genesislcap/foundation-ui 14.417.0 → 14.417.1-alpha-efccb2a.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.
@@ -1380,6 +1380,188 @@
1380
1380
  }
1381
1381
  ]
1382
1382
  },
1383
+ {
1384
+ "kind": "javascript-module",
1385
+ "path": "src/accordion/accordion.styles.ts",
1386
+ "declarations": [
1387
+ {
1388
+ "kind": "function",
1389
+ "name": "foundationAccordionStyles",
1390
+ "return": {
1391
+ "type": {
1392
+ "text": "ElementStyles"
1393
+ }
1394
+ },
1395
+ "parameters": [
1396
+ {
1397
+ "name": "context",
1398
+ "type": {
1399
+ "text": "ElementDefinitionContext"
1400
+ }
1401
+ },
1402
+ {
1403
+ "name": "definition",
1404
+ "type": {
1405
+ "text": "FoundationElementDefinition"
1406
+ }
1407
+ }
1408
+ ]
1409
+ }
1410
+ ],
1411
+ "exports": [
1412
+ {
1413
+ "kind": "js",
1414
+ "name": "foundationAccordionStyles",
1415
+ "declaration": {
1416
+ "name": "foundationAccordionStyles",
1417
+ "module": "src/accordion/accordion.styles.ts"
1418
+ }
1419
+ }
1420
+ ]
1421
+ },
1422
+ {
1423
+ "kind": "javascript-module",
1424
+ "path": "src/accordion/accordion.template.ts",
1425
+ "declarations": [
1426
+ {
1427
+ "kind": "function",
1428
+ "name": "foundationAccordionTemplate",
1429
+ "return": {
1430
+ "type": {
1431
+ "text": "ViewTemplate<Accordion>"
1432
+ }
1433
+ },
1434
+ "parameters": [
1435
+ {
1436
+ "name": "context",
1437
+ "type": {
1438
+ "text": "ElementDefinitionContext"
1439
+ }
1440
+ },
1441
+ {
1442
+ "name": "definition",
1443
+ "type": {
1444
+ "text": "FoundationElementDefinition"
1445
+ }
1446
+ }
1447
+ ]
1448
+ }
1449
+ ],
1450
+ "exports": [
1451
+ {
1452
+ "kind": "js",
1453
+ "name": "foundationAccordionTemplate",
1454
+ "declaration": {
1455
+ "name": "foundationAccordionTemplate",
1456
+ "module": "src/accordion/accordion.template.ts"
1457
+ }
1458
+ }
1459
+ ]
1460
+ },
1461
+ {
1462
+ "kind": "javascript-module",
1463
+ "path": "src/accordion/accordion.ts",
1464
+ "declarations": [
1465
+ {
1466
+ "kind": "class",
1467
+ "description": "",
1468
+ "name": "Accordion",
1469
+ "superclass": {
1470
+ "name": "FASTAccordion",
1471
+ "package": "@microsoft/fast-foundation"
1472
+ },
1473
+ "tagName": "%%prefix%%-accordion",
1474
+ "customElement": true
1475
+ },
1476
+ {
1477
+ "kind": "variable",
1478
+ "name": "foundationAccordionShadowOptions",
1479
+ "type": {
1480
+ "text": "ShadowRootInit"
1481
+ },
1482
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1483
+ },
1484
+ {
1485
+ "kind": "variable",
1486
+ "name": "defaultAccordionConfig",
1487
+ "type": {
1488
+ "text": "object"
1489
+ },
1490
+ "default": "{}"
1491
+ },
1492
+ {
1493
+ "kind": "variable",
1494
+ "name": "foundationAccordion",
1495
+ "description": "The Foundation Accordion",
1496
+ "privacy": "public"
1497
+ }
1498
+ ],
1499
+ "exports": [
1500
+ {
1501
+ "kind": "js",
1502
+ "name": "Accordion",
1503
+ "declaration": {
1504
+ "name": "Accordion",
1505
+ "module": "src/accordion/accordion.ts"
1506
+ }
1507
+ },
1508
+ {
1509
+ "kind": "js",
1510
+ "name": "foundationAccordionShadowOptions",
1511
+ "declaration": {
1512
+ "name": "foundationAccordionShadowOptions",
1513
+ "module": "src/accordion/accordion.ts"
1514
+ }
1515
+ },
1516
+ {
1517
+ "kind": "js",
1518
+ "name": "defaultAccordionConfig",
1519
+ "declaration": {
1520
+ "name": "defaultAccordionConfig",
1521
+ "module": "src/accordion/accordion.ts"
1522
+ }
1523
+ },
1524
+ {
1525
+ "kind": "js",
1526
+ "name": "foundationAccordion",
1527
+ "declaration": {
1528
+ "name": "foundationAccordion",
1529
+ "module": "src/accordion/accordion.ts"
1530
+ }
1531
+ }
1532
+ ]
1533
+ },
1534
+ {
1535
+ "kind": "javascript-module",
1536
+ "path": "src/accordion/index.ts",
1537
+ "declarations": [],
1538
+ "exports": [
1539
+ {
1540
+ "kind": "js",
1541
+ "name": "*",
1542
+ "declaration": {
1543
+ "name": "*",
1544
+ "package": "./accordion.template"
1545
+ }
1546
+ },
1547
+ {
1548
+ "kind": "js",
1549
+ "name": "*",
1550
+ "declaration": {
1551
+ "name": "*",
1552
+ "package": "./accordion.styles"
1553
+ }
1554
+ },
1555
+ {
1556
+ "kind": "js",
1557
+ "name": "*",
1558
+ "declaration": {
1559
+ "name": "*",
1560
+ "package": "./accordion"
1561
+ }
1562
+ }
1563
+ ]
1564
+ },
1383
1565
  {
1384
1566
  "kind": "javascript-module",
1385
1567
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1807,321 +1989,191 @@
1807
1989
  },
1808
1990
  {
1809
1991
  "kind": "javascript-module",
1810
- "path": "src/actions-menu/actions-menu.styles.ts",
1992
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
1811
1993
  "declarations": [
1812
1994
  {
1813
- "kind": "function",
1814
- "name": "actionsMenuBaseStyles",
1815
- "return": {
1816
- "type": {
1817
- "text": "ElementStyles"
1818
- }
1819
- },
1820
- "parameters": [
1821
- {
1822
- "name": "context",
1823
- "type": {
1824
- "text": "ElementDefinitionContext"
1825
- }
1826
- },
1827
- {
1828
- "name": "definition",
1829
- "type": {
1830
- "text": "FoundationElementDefinition"
1831
- }
1832
- }
1833
- ]
1834
- },
1835
- {
1836
- "kind": "function",
1837
- "name": "foundationActionsMenuStyles",
1838
- "return": {
1839
- "type": {
1840
- "text": "ElementStyles"
1841
- }
1842
- },
1843
- "parameters": [
1844
- {
1845
- "name": "context",
1846
- "type": {
1847
- "text": "ElementDefinitionContext"
1848
- }
1849
- },
1850
- {
1851
- "name": "definition",
1852
- "type": {
1853
- "text": "FoundationElementDefinition"
1854
- }
1855
- }
1856
- ]
1995
+ "kind": "variable",
1996
+ "name": "foundationAiCriteriaSearchStyles",
1997
+ "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`"
1857
1998
  }
1858
1999
  ],
1859
2000
  "exports": [
1860
2001
  {
1861
2002
  "kind": "js",
1862
- "name": "actionsMenuBaseStyles",
1863
- "declaration": {
1864
- "name": "actionsMenuBaseStyles",
1865
- "module": "src/actions-menu/actions-menu.styles.ts"
1866
- }
1867
- },
1868
- {
1869
- "kind": "js",
1870
- "name": "foundationActionsMenuStyles",
2003
+ "name": "foundationAiCriteriaSearchStyles",
1871
2004
  "declaration": {
1872
- "name": "foundationActionsMenuStyles",
1873
- "module": "src/actions-menu/actions-menu.styles.ts"
2005
+ "name": "foundationAiCriteriaSearchStyles",
2006
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
1874
2007
  }
1875
2008
  }
1876
2009
  ]
1877
2010
  },
1878
2011
  {
1879
2012
  "kind": "javascript-module",
1880
- "path": "src/actions-menu/actions-menu.template.ts",
2013
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
1881
2014
  "declarations": [
1882
- {
1883
- "kind": "function",
1884
- "name": "menuTemplate",
1885
- "parameters": [
1886
- {
1887
- "name": "prefix",
1888
- "type": {
1889
- "text": "string"
1890
- }
1891
- }
1892
- ]
1893
- },
1894
- {
1895
- "kind": "function",
1896
- "name": "singleOptionTemplate",
1897
- "parameters": [
1898
- {
1899
- "name": "prefix",
1900
- "type": {
1901
- "text": "string"
1902
- }
1903
- }
1904
- ]
1905
- },
1906
2015
  {
1907
2016
  "kind": "variable",
1908
- "name": "foundationActionsMenuTemplate",
2017
+ "name": "foundationAiCriteriaSearchTemplate",
1909
2018
  "type": {
1910
- "text": "ViewTemplate<ActionsMenu>"
2019
+ "text": "ViewTemplate<AiCriteriaSearch>"
1911
2020
  },
1912
- "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`"
2021
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
1913
2022
  }
1914
2023
  ],
1915
2024
  "exports": [
1916
2025
  {
1917
2026
  "kind": "js",
1918
- "name": "menuTemplate",
1919
- "declaration": {
1920
- "name": "menuTemplate",
1921
- "module": "src/actions-menu/actions-menu.template.ts"
1922
- }
1923
- },
1924
- {
1925
- "kind": "js",
1926
- "name": "singleOptionTemplate",
1927
- "declaration": {
1928
- "name": "singleOptionTemplate",
1929
- "module": "src/actions-menu/actions-menu.template.ts"
1930
- }
1931
- },
1932
- {
1933
- "kind": "js",
1934
- "name": "foundationActionsMenuTemplate",
2027
+ "name": "foundationAiCriteriaSearchTemplate",
1935
2028
  "declaration": {
1936
- "name": "foundationActionsMenuTemplate",
1937
- "module": "src/actions-menu/actions-menu.template.ts"
2029
+ "name": "foundationAiCriteriaSearchTemplate",
2030
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
1938
2031
  }
1939
2032
  }
1940
2033
  ]
1941
2034
  },
1942
2035
  {
1943
2036
  "kind": "javascript-module",
1944
- "path": "src/actions-menu/actions-menu.ts",
2037
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
1945
2038
  "declarations": [
1946
2039
  {
1947
2040
  "kind": "class",
1948
2041
  "description": "",
1949
- "name": "ActionsMenu",
2042
+ "name": "AiCriteriaSearch",
1950
2043
  "members": [
1951
2044
  {
1952
2045
  "kind": "field",
1953
- "name": "actions",
2046
+ "name": "aiProvider",
1954
2047
  "type": {
1955
- "text": "ActionMenuItem[]"
2048
+ "text": "AIProvider"
1956
2049
  }
1957
2050
  },
1958
2051
  {
1959
2052
  "kind": "field",
1960
- "name": "isVertical",
2053
+ "name": "placeholder",
1961
2054
  "type": {
1962
- "text": "boolean"
2055
+ "text": "string"
1963
2056
  },
1964
- "default": "false"
2057
+ "default": "'Describe your search criteria in natural language...'"
1965
2058
  },
1966
2059
  {
1967
2060
  "kind": "field",
1968
- "name": "addDefaultActions",
2061
+ "name": "disabled",
1969
2062
  "type": {
1970
2063
  "text": "boolean"
1971
- },
1972
- "default": "true"
2064
+ }
1973
2065
  },
1974
2066
  {
1975
2067
  "kind": "field",
1976
- "name": "autoCloseOnAction",
2068
+ "name": "mode",
1977
2069
  "type": {
1978
- "text": "boolean"
2070
+ "text": "'append' | 'replace'"
1979
2071
  },
1980
- "default": "true"
2072
+ "default": "'replace'"
1981
2073
  },
1982
2074
  {
1983
2075
  "kind": "field",
1984
- "name": "classNames",
2076
+ "name": "inputValue",
1985
2077
  "type": {
1986
2078
  "text": "string"
1987
- }
2079
+ },
2080
+ "default": "''"
1988
2081
  },
1989
2082
  {
1990
2083
  "kind": "field",
1991
- "name": "definition",
2084
+ "name": "isInterpreting",
1992
2085
  "type": {
1993
- "text": "any"
1994
- }
2086
+ "text": "boolean"
2087
+ },
2088
+ "default": "false"
1995
2089
  },
1996
2090
  {
1997
2091
  "kind": "field",
1998
- "name": "name",
2092
+ "name": "lastValidCriteria",
1999
2093
  "type": {
2000
- "text": "string"
2094
+ "text": "string | null"
2001
2095
  },
2002
- "default": "'Actions'"
2096
+ "default": "null"
2003
2097
  },
2004
2098
  {
2005
2099
  "kind": "field",
2006
- "name": "open",
2100
+ "name": "fieldMetadata",
2007
2101
  "type": {
2008
- "text": "boolean"
2102
+ "text": "MetadataDetail[] | string[]"
2009
2103
  },
2010
- "default": "false"
2104
+ "default": "[]"
2011
2105
  },
2012
2106
  {
2013
2107
  "kind": "field",
2014
- "name": "buttonAppearance",
2108
+ "name": "isRecording",
2015
2109
  "type": {
2016
- "text": "string"
2017
- }
2110
+ "text": "boolean"
2111
+ },
2112
+ "default": "false"
2018
2113
  },
2019
2114
  {
2020
2115
  "kind": "field",
2021
- "name": "hideDisabled",
2116
+ "name": "textAreaRef",
2022
2117
  "type": {
2023
- "text": "boolean"
2118
+ "text": "HTMLTextAreaElement"
2024
2119
  },
2025
- "default": "false"
2120
+ "privacy": "public"
2026
2121
  },
2027
2122
  {
2028
2123
  "kind": "field",
2029
- "name": "hideMenuSingleOption",
2124
+ "name": "stopRecording",
2030
2125
  "type": {
2031
- "text": "boolean"
2126
+ "text": "(() => void) | null"
2032
2127
  },
2033
- "default": "false"
2128
+ "privacy": "private",
2129
+ "default": "null"
2034
2130
  },
2035
2131
  {
2036
2132
  "kind": "field",
2037
- "name": "singleOption",
2133
+ "name": "speechApplyDebounceTimer",
2038
2134
  "type": {
2039
- "text": "ActionMenuItem"
2040
- }
2135
+ "text": "ReturnType<typeof setTimeout> | null"
2136
+ },
2137
+ "privacy": "private",
2138
+ "default": "null"
2041
2139
  },
2042
2140
  {
2043
2141
  "kind": "field",
2044
- "name": "actionsMenu",
2142
+ "name": "baseInputForAppend",
2045
2143
  "type": {
2046
- "text": "HTMLElement"
2047
- }
2144
+ "text": "string"
2145
+ },
2146
+ "privacy": "private",
2147
+ "default": "''"
2048
2148
  },
2049
2149
  {
2050
- "kind": "method",
2051
- "name": "definitionChanged",
2052
- "privacy": "protected",
2053
- "parameters": [
2054
- {
2055
- "name": "oldValue",
2056
- "type": {
2057
- "text": "any"
2058
- }
2059
- },
2060
- {
2061
- "name": "newValue",
2062
- "type": {
2063
- "text": "any"
2064
- }
2065
- }
2066
- ]
2150
+ "kind": "field",
2151
+ "name": "speechAvailable",
2152
+ "type": {
2153
+ "text": "boolean"
2154
+ },
2155
+ "readonly": true
2067
2156
  },
2068
2157
  {
2069
2158
  "kind": "method",
2070
- "name": "openChanged",
2071
- "privacy": "protected"
2159
+ "name": "handleSubmit"
2072
2160
  },
2073
2161
  {
2074
2162
  "kind": "method",
2075
- "name": "toggleActionsMenuVisibility"
2163
+ "name": "handleBlur"
2076
2164
  },
2077
2165
  {
2078
2166
  "kind": "method",
2079
- "name": "onActionMenuItemClick",
2080
- "parameters": [
2081
- {
2082
- "name": "callback",
2083
- "type": {
2084
- "text": "(rowData) => void | any"
2085
- }
2086
- }
2087
- ]
2088
- },
2089
- {
2090
- "kind": "field",
2091
- "name": "allActions",
2092
- "type": {
2093
- "text": "ActionMenuItem[]"
2094
- },
2095
- "readonly": true
2096
- },
2097
- {
2098
- "kind": "field",
2099
- "name": "rowData",
2100
- "readonly": true
2167
+ "name": "clear"
2101
2168
  },
2102
2169
  {
2103
2170
  "kind": "method",
2104
- "name": "getLabel",
2105
- "parameters": [
2106
- {
2107
- "name": "name",
2108
- "type": {
2109
- "text": "string | ((rowData: any) => string)"
2110
- }
2111
- }
2112
- ]
2171
+ "name": "toggleSpeechInput"
2113
2172
  },
2114
2173
  {
2115
2174
  "kind": "method",
2116
- "name": "getTemplate",
2117
- "parameters": [
2118
- {
2119
- "name": "prefix",
2120
- "type": {
2121
- "text": "string"
2122
- }
2123
- }
2124
- ]
2175
+ "name": "clearSpeechApplyDebounce",
2176
+ "privacy": "private"
2125
2177
  },
2126
2178
  {
2127
2179
  "kind": "field",
@@ -2237,113 +2289,150 @@
2237
2289
  ],
2238
2290
  "attributes": [
2239
2291
  {
2240
- "name": "is-vertical",
2241
- "type": {
2242
- "text": "boolean"
2243
- },
2244
- "default": "false",
2245
- "fieldName": "isVertical"
2246
- },
2247
- {
2248
- "name": "add-default-actions",
2249
- "type": {
2250
- "text": "boolean"
2251
- },
2252
- "default": "true",
2253
- "fieldName": "addDefaultActions"
2254
- },
2255
- {
2256
- "name": "auto-close-on-action",
2257
- "type": {
2258
- "text": "boolean"
2259
- },
2260
- "default": "true",
2261
- "fieldName": "autoCloseOnAction"
2262
- },
2263
- {
2264
- "name": "name",
2265
- "type": {
2266
- "text": "string"
2267
- },
2268
- "default": "'Actions'",
2269
- "fieldName": "name"
2270
- },
2271
- {
2272
- "name": "open",
2273
- "type": {
2274
- "text": "boolean"
2275
- },
2276
- "default": "false",
2277
- "fieldName": "open"
2278
- },
2279
- {
2280
- "name": "buttonAppearance",
2292
+ "name": "placeholder",
2281
2293
  "type": {
2282
2294
  "text": "string"
2283
2295
  },
2284
- "fieldName": "buttonAppearance"
2296
+ "default": "'Describe your search criteria in natural language...'",
2297
+ "fieldName": "placeholder"
2285
2298
  },
2286
2299
  {
2287
- "name": "hide-disabled",
2288
2300
  "type": {
2289
2301
  "text": "boolean"
2290
2302
  },
2291
- "default": "false",
2292
- "fieldName": "hideDisabled"
2303
+ "fieldName": "disabled"
2293
2304
  },
2294
2305
  {
2295
- "name": "hide-menu-single-option",
2306
+ "name": "mode",
2296
2307
  "type": {
2297
- "text": "boolean"
2308
+ "text": "'append' | 'replace'"
2298
2309
  },
2299
- "default": "false",
2300
- "fieldName": "hideMenuSingleOption"
2301
- }
2310
+ "default": "'replace'",
2311
+ "fieldName": "mode"
2312
+ }
2302
2313
  ],
2303
2314
  "superclass": {
2304
2315
  "name": "FoundationElement",
2305
2316
  "package": "@microsoft/fast-foundation"
2306
2317
  },
2307
- "tagName": "%%prefix%%-actions-menu",
2318
+ "tagName": "%%prefix%%-ai-criteria-search",
2308
2319
  "customElement": true
2309
2320
  },
2310
2321
  {
2311
2322
  "kind": "variable",
2312
- "name": "foundationActionsMenu",
2313
- "description": "The Foundation Actions Menu",
2314
- "privacy": "public"
2323
+ "name": "foundationAiCriteriaSearchShadowOptions",
2324
+ "type": {
2325
+ "text": "ShadowRootInit"
2326
+ },
2327
+ "default": "undefined"
2328
+ },
2329
+ {
2330
+ "kind": "variable",
2331
+ "name": "defaultAiCriteriaSearchConfig",
2332
+ "type": {
2333
+ "text": "object"
2334
+ },
2335
+ "default": "{}"
2336
+ },
2337
+ {
2338
+ "kind": "variable",
2339
+ "name": "foundationAiCriteriaSearch"
2315
2340
  }
2316
2341
  ],
2317
2342
  "exports": [
2318
2343
  {
2319
2344
  "kind": "js",
2320
- "name": "ActionsMenu",
2345
+ "name": "AiCriteriaSearch",
2321
2346
  "declaration": {
2322
- "name": "ActionsMenu",
2323
- "module": "src/actions-menu/actions-menu.ts"
2347
+ "name": "AiCriteriaSearch",
2348
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2324
2349
  }
2325
2350
  },
2326
2351
  {
2327
2352
  "kind": "js",
2328
- "name": "foundationActionsMenu",
2353
+ "name": "foundationAiCriteriaSearchShadowOptions",
2329
2354
  "declaration": {
2330
- "name": "foundationActionsMenu",
2331
- "module": "src/actions-menu/actions-menu.ts"
2355
+ "name": "foundationAiCriteriaSearchShadowOptions",
2356
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2357
+ }
2358
+ },
2359
+ {
2360
+ "kind": "js",
2361
+ "name": "defaultAiCriteriaSearchConfig",
2362
+ "declaration": {
2363
+ "name": "defaultAiCriteriaSearchConfig",
2364
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2365
+ }
2366
+ },
2367
+ {
2368
+ "kind": "js",
2369
+ "name": "foundationAiCriteriaSearch",
2370
+ "declaration": {
2371
+ "name": "foundationAiCriteriaSearch",
2372
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2332
2373
  }
2333
2374
  }
2334
2375
  ]
2335
2376
  },
2336
2377
  {
2337
2378
  "kind": "javascript-module",
2338
- "path": "src/actions-menu/index.ts",
2379
+ "path": "src/ai-criteria-search/index.ts",
2339
2380
  "declarations": [],
2340
2381
  "exports": [
2382
+ {
2383
+ "kind": "js",
2384
+ "name": "AiCriteriaSearch",
2385
+ "declaration": {
2386
+ "name": "AiCriteriaSearch",
2387
+ "module": "./ai-criteria-search"
2388
+ }
2389
+ },
2390
+ {
2391
+ "kind": "js",
2392
+ "name": "defaultAiCriteriaSearchConfig",
2393
+ "declaration": {
2394
+ "name": "defaultAiCriteriaSearchConfig",
2395
+ "module": "./ai-criteria-search"
2396
+ }
2397
+ },
2398
+ {
2399
+ "kind": "js",
2400
+ "name": "foundationAiCriteriaSearch",
2401
+ "declaration": {
2402
+ "name": "foundationAiCriteriaSearch",
2403
+ "module": "./ai-criteria-search"
2404
+ }
2405
+ },
2406
+ {
2407
+ "kind": "js",
2408
+ "name": "foundationAiCriteriaSearchShadowOptions",
2409
+ "declaration": {
2410
+ "name": "foundationAiCriteriaSearchShadowOptions",
2411
+ "module": "./ai-criteria-search"
2412
+ }
2413
+ },
2414
+ {
2415
+ "kind": "js",
2416
+ "name": "foundationAiCriteriaSearchStyles",
2417
+ "declaration": {
2418
+ "name": "foundationAiCriteriaSearchStyles",
2419
+ "module": "./ai-criteria-search.styles"
2420
+ }
2421
+ },
2422
+ {
2423
+ "kind": "js",
2424
+ "name": "foundationAiCriteriaSearchTemplate",
2425
+ "declaration": {
2426
+ "name": "foundationAiCriteriaSearchTemplate",
2427
+ "module": "./ai-criteria-search.template"
2428
+ }
2429
+ },
2341
2430
  {
2342
2431
  "kind": "js",
2343
2432
  "name": "*",
2344
2433
  "declaration": {
2345
2434
  "name": "*",
2346
- "package": "./actions-menu.styles"
2435
+ "package": "./validation/criteria-ir"
2347
2436
  }
2348
2437
  },
2349
2438
  {
@@ -2351,7 +2440,7 @@
2351
2440
  "name": "*",
2352
2441
  "declaration": {
2353
2442
  "name": "*",
2354
- "package": "./actions-menu.template"
2443
+ "package": "./validation/operator-map"
2355
2444
  }
2356
2445
  },
2357
2446
  {
@@ -2359,64 +2448,157 @@
2359
2448
  "name": "*",
2360
2449
  "declaration": {
2361
2450
  "name": "*",
2362
- "package": "./actions-menu"
2451
+ "package": "./validation/schema-validator"
2363
2452
  }
2364
2453
  }
2365
2454
  ]
2366
2455
  },
2367
2456
  {
2368
2457
  "kind": "javascript-module",
2369
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2458
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2370
2459
  "declarations": [
2371
2460
  {
2372
- "kind": "variable",
2373
- "name": "foundationAiCriteriaSearchStyles",
2374
- "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`"
2461
+ "kind": "function",
2462
+ "name": "formatValidationErrors",
2463
+ "return": {
2464
+ "type": {
2465
+ "text": "string"
2466
+ }
2467
+ },
2468
+ "parameters": [
2469
+ {
2470
+ "name": "errors",
2471
+ "type": {
2472
+ "text": "ValidationError[]"
2473
+ }
2474
+ }
2475
+ ],
2476
+ "description": "Formats validation errors into a user-friendly message."
2477
+ },
2478
+ {
2479
+ "kind": "function",
2480
+ "name": "showCriteriaError",
2481
+ "return": {
2482
+ "type": {
2483
+ "text": "void"
2484
+ }
2485
+ },
2486
+ "parameters": [
2487
+ {
2488
+ "name": "title",
2489
+ "type": {
2490
+ "text": "string"
2491
+ },
2492
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2493
+ },
2494
+ {
2495
+ "name": "body",
2496
+ "type": {
2497
+ "text": "string"
2498
+ },
2499
+ "description": "Error message to display"
2500
+ },
2501
+ {
2502
+ "name": "tagName",
2503
+ "type": {
2504
+ "text": "string"
2505
+ },
2506
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2507
+ }
2508
+ ],
2509
+ "description": "Shows a criteria error as a toast notification."
2375
2510
  }
2376
2511
  ],
2377
2512
  "exports": [
2378
2513
  {
2379
2514
  "kind": "js",
2380
- "name": "foundationAiCriteriaSearchStyles",
2515
+ "name": "formatValidationErrors",
2381
2516
  "declaration": {
2382
- "name": "foundationAiCriteriaSearchStyles",
2383
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2517
+ "name": "formatValidationErrors",
2518
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2519
+ }
2520
+ },
2521
+ {
2522
+ "kind": "js",
2523
+ "name": "showCriteriaError",
2524
+ "declaration": {
2525
+ "name": "showCriteriaError",
2526
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2384
2527
  }
2385
2528
  }
2386
2529
  ]
2387
2530
  },
2388
2531
  {
2389
2532
  "kind": "javascript-module",
2390
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2533
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
2534
+ "declarations": [
2535
+ {
2536
+ "kind": "function",
2537
+ "name": "foundationAiIndicatorStyles",
2538
+ "return": {
2539
+ "type": {
2540
+ "text": "ElementStyles"
2541
+ }
2542
+ },
2543
+ "parameters": [
2544
+ {
2545
+ "name": "context",
2546
+ "type": {
2547
+ "text": "ElementDefinitionContext"
2548
+ }
2549
+ },
2550
+ {
2551
+ "name": "definition",
2552
+ "type": {
2553
+ "text": "FoundationElementDefinition"
2554
+ }
2555
+ }
2556
+ ]
2557
+ }
2558
+ ],
2559
+ "exports": [
2560
+ {
2561
+ "kind": "js",
2562
+ "name": "foundationAiIndicatorStyles",
2563
+ "declaration": {
2564
+ "name": "foundationAiIndicatorStyles",
2565
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
2566
+ }
2567
+ }
2568
+ ]
2569
+ },
2570
+ {
2571
+ "kind": "javascript-module",
2572
+ "path": "src/ai-indicator/ai-indicator.template.ts",
2391
2573
  "declarations": [
2392
2574
  {
2393
2575
  "kind": "variable",
2394
- "name": "foundationAiCriteriaSearchTemplate",
2576
+ "name": "foundationAiIndicatorTemplate",
2395
2577
  "type": {
2396
- "text": "ViewTemplate<AiCriteriaSearch>"
2578
+ "text": "ViewTemplate<AiIndicator>"
2397
2579
  },
2398
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2580
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2399
2581
  }
2400
2582
  ],
2401
2583
  "exports": [
2402
2584
  {
2403
2585
  "kind": "js",
2404
- "name": "foundationAiCriteriaSearchTemplate",
2586
+ "name": "foundationAiIndicatorTemplate",
2405
2587
  "declaration": {
2406
- "name": "foundationAiCriteriaSearchTemplate",
2407
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2588
+ "name": "foundationAiIndicatorTemplate",
2589
+ "module": "src/ai-indicator/ai-indicator.template.ts"
2408
2590
  }
2409
2591
  }
2410
2592
  ]
2411
2593
  },
2412
2594
  {
2413
2595
  "kind": "javascript-module",
2414
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2596
+ "path": "src/ai-indicator/ai-indicator.ts",
2415
2597
  "declarations": [
2416
2598
  {
2417
2599
  "kind": "class",
2418
2600
  "description": "",
2419
- "name": "AiCriteriaSearch",
2601
+ "name": "AiIndicator",
2420
2602
  "members": [
2421
2603
  {
2422
2604
  "kind": "field",
@@ -2427,130 +2609,165 @@
2427
2609
  },
2428
2610
  {
2429
2611
  "kind": "field",
2430
- "name": "placeholder",
2612
+ "name": "status",
2431
2613
  "type": {
2432
- "text": "string"
2614
+ "text": "AIStatus | null"
2433
2615
  },
2434
- "default": "'Describe your search criteria in natural language...'"
2616
+ "default": "null"
2435
2617
  },
2436
2618
  {
2437
2619
  "kind": "field",
2438
- "name": "disabled",
2620
+ "name": "open",
2439
2621
  "type": {
2440
2622
  "text": "boolean"
2441
- }
2623
+ },
2624
+ "default": "false"
2442
2625
  },
2443
2626
  {
2444
2627
  "kind": "field",
2445
- "name": "mode",
2628
+ "name": "state",
2446
2629
  "type": {
2447
- "text": "'append' | 'replace'"
2630
+ "text": "AIIndicatorState"
2448
2631
  },
2449
- "default": "'replace'"
2632
+ "default": "'none'"
2450
2633
  },
2451
2634
  {
2452
2635
  "kind": "field",
2453
- "name": "inputValue",
2636
+ "name": "isInstalling",
2454
2637
  "type": {
2455
- "text": "string"
2638
+ "text": "boolean"
2456
2639
  },
2457
- "default": "''"
2640
+ "default": "false"
2458
2641
  },
2459
2642
  {
2460
2643
  "kind": "field",
2461
- "name": "isInterpreting",
2644
+ "name": "pollTimer",
2462
2645
  "type": {
2463
- "text": "boolean"
2646
+ "text": "ReturnType<typeof setInterval> | null"
2464
2647
  },
2465
- "default": "false"
2648
+ "privacy": "private",
2649
+ "default": "null"
2466
2650
  },
2467
2651
  {
2468
2652
  "kind": "field",
2469
- "name": "lastValidCriteria",
2470
- "type": {
2471
- "text": "string | null"
2472
- },
2473
- "default": "null"
2653
+ "name": "clickOutside",
2654
+ "privacy": "private"
2474
2655
  },
2475
2656
  {
2476
2657
  "kind": "field",
2477
- "name": "fieldMetadata",
2658
+ "name": "chromeStatusLabel",
2478
2659
  "type": {
2479
- "text": "MetadataDetail[] | string[]"
2660
+ "text": "string | null"
2480
2661
  },
2481
- "default": "[]"
2662
+ "readonly": true
2482
2663
  },
2483
2664
  {
2484
2665
  "kind": "field",
2485
- "name": "isRecording",
2666
+ "name": "canInstall",
2486
2667
  "type": {
2487
2668
  "text": "boolean"
2488
2669
  },
2489
- "default": "false"
2670
+ "readonly": true
2490
2671
  },
2491
2672
  {
2492
2673
  "kind": "field",
2493
- "name": "textAreaRef",
2674
+ "name": "isDownloading",
2494
2675
  "type": {
2495
- "text": "HTMLTextAreaElement"
2676
+ "text": "boolean"
2496
2677
  },
2497
- "privacy": "public"
2678
+ "readonly": true
2498
2679
  },
2499
2680
  {
2500
- "kind": "field",
2501
- "name": "stopRecording",
2502
- "type": {
2503
- "text": "(() => void) | null"
2504
- },
2505
- "privacy": "private",
2506
- "default": "null"
2681
+ "kind": "method",
2682
+ "name": "openChanged",
2683
+ "return": {
2684
+ "type": {
2685
+ "text": "void"
2686
+ }
2687
+ }
2507
2688
  },
2508
2689
  {
2509
- "kind": "field",
2510
- "name": "speechApplyDebounceTimer",
2511
- "type": {
2512
- "text": "ReturnType<typeof setTimeout> | null"
2513
- },
2690
+ "kind": "method",
2691
+ "name": "handleClickOutside",
2514
2692
  "privacy": "private",
2515
- "default": "null"
2693
+ "parameters": [
2694
+ {
2695
+ "name": "event",
2696
+ "type": {
2697
+ "text": "MouseEvent"
2698
+ }
2699
+ }
2700
+ ]
2516
2701
  },
2517
2702
  {
2518
- "kind": "field",
2519
- "name": "baseInputForAppend",
2520
- "type": {
2521
- "text": "string"
2522
- },
2523
- "privacy": "private",
2524
- "default": "''"
2703
+ "kind": "method",
2704
+ "name": "toggleDropdown"
2525
2705
  },
2526
2706
  {
2527
- "kind": "field",
2528
- "name": "speechAvailable",
2529
- "type": {
2530
- "text": "boolean"
2531
- },
2532
- "readonly": true
2707
+ "kind": "method",
2708
+ "name": "refreshStatus",
2709
+ "return": {
2710
+ "type": {
2711
+ "text": "Promise<void>"
2712
+ }
2713
+ }
2533
2714
  },
2534
2715
  {
2535
2716
  "kind": "method",
2536
- "name": "handleSubmit"
2717
+ "name": "deriveState",
2718
+ "privacy": "private",
2719
+ "return": {
2720
+ "type": {
2721
+ "text": "AIIndicatorState"
2722
+ }
2723
+ },
2724
+ "parameters": [
2725
+ {
2726
+ "name": "s",
2727
+ "type": {
2728
+ "text": "AIStatus | null"
2729
+ }
2730
+ }
2731
+ ]
2537
2732
  },
2538
2733
  {
2539
2734
  "kind": "method",
2540
- "name": "handleBlur"
2735
+ "name": "maybeStartPolling",
2736
+ "privacy": "private",
2737
+ "return": {
2738
+ "type": {
2739
+ "text": "void"
2740
+ }
2741
+ }
2541
2742
  },
2542
2743
  {
2543
2744
  "kind": "method",
2544
- "name": "clear"
2745
+ "name": "startPolling",
2746
+ "privacy": "private",
2747
+ "return": {
2748
+ "type": {
2749
+ "text": "void"
2750
+ }
2751
+ }
2545
2752
  },
2546
2753
  {
2547
2754
  "kind": "method",
2548
- "name": "toggleSpeechInput"
2755
+ "name": "stopPolling",
2756
+ "privacy": "private",
2757
+ "return": {
2758
+ "type": {
2759
+ "text": "void"
2760
+ }
2761
+ }
2549
2762
  },
2550
2763
  {
2551
2764
  "kind": "method",
2552
- "name": "clearSpeechApplyDebounce",
2553
- "privacy": "private"
2765
+ "name": "onInstall",
2766
+ "return": {
2767
+ "type": {
2768
+ "text": "Promise<void>"
2769
+ }
2770
+ }
2554
2771
  },
2555
2772
  {
2556
2773
  "kind": "field",
@@ -2656,444 +2873,130 @@
2656
2873
  },
2657
2874
  "description": "The definition of the element to create the registry\nfunction for."
2658
2875
  }
2659
- ],
2660
- "description": "Defines an element registry function with a set of element definition defaults.",
2661
- "inheritedFrom": {
2662
- "name": "FoundationElement",
2663
- "module": "src/foundation-element/foundation-element.ts"
2664
- }
2665
- }
2666
- ],
2667
- "attributes": [
2668
- {
2669
- "name": "placeholder",
2670
- "type": {
2671
- "text": "string"
2672
- },
2673
- "default": "'Describe your search criteria in natural language...'",
2674
- "fieldName": "placeholder"
2675
- },
2676
- {
2677
- "type": {
2678
- "text": "boolean"
2679
- },
2680
- "fieldName": "disabled"
2681
- },
2682
- {
2683
- "name": "mode",
2684
- "type": {
2685
- "text": "'append' | 'replace'"
2686
- },
2687
- "default": "'replace'",
2688
- "fieldName": "mode"
2689
- }
2690
- ],
2691
- "superclass": {
2692
- "name": "FoundationElement",
2693
- "package": "@microsoft/fast-foundation"
2694
- },
2695
- "tagName": "%%prefix%%-ai-criteria-search",
2696
- "customElement": true
2697
- },
2698
- {
2699
- "kind": "variable",
2700
- "name": "foundationAiCriteriaSearchShadowOptions",
2701
- "type": {
2702
- "text": "ShadowRootInit"
2703
- },
2704
- "default": "undefined"
2705
- },
2706
- {
2707
- "kind": "variable",
2708
- "name": "defaultAiCriteriaSearchConfig",
2709
- "type": {
2710
- "text": "object"
2711
- },
2712
- "default": "{}"
2713
- },
2714
- {
2715
- "kind": "variable",
2716
- "name": "foundationAiCriteriaSearch"
2717
- }
2718
- ],
2719
- "exports": [
2720
- {
2721
- "kind": "js",
2722
- "name": "AiCriteriaSearch",
2723
- "declaration": {
2724
- "name": "AiCriteriaSearch",
2725
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2726
- }
2727
- },
2728
- {
2729
- "kind": "js",
2730
- "name": "foundationAiCriteriaSearchShadowOptions",
2731
- "declaration": {
2732
- "name": "foundationAiCriteriaSearchShadowOptions",
2733
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2734
- }
2735
- },
2736
- {
2737
- "kind": "js",
2738
- "name": "defaultAiCriteriaSearchConfig",
2739
- "declaration": {
2740
- "name": "defaultAiCriteriaSearchConfig",
2741
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2742
- }
2743
- },
2744
- {
2745
- "kind": "js",
2746
- "name": "foundationAiCriteriaSearch",
2747
- "declaration": {
2748
- "name": "foundationAiCriteriaSearch",
2749
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2750
- }
2751
- }
2752
- ]
2753
- },
2754
- {
2755
- "kind": "javascript-module",
2756
- "path": "src/ai-criteria-search/index.ts",
2757
- "declarations": [],
2758
- "exports": [
2759
- {
2760
- "kind": "js",
2761
- "name": "AiCriteriaSearch",
2762
- "declaration": {
2763
- "name": "AiCriteriaSearch",
2764
- "module": "./ai-criteria-search"
2765
- }
2766
- },
2767
- {
2768
- "kind": "js",
2769
- "name": "defaultAiCriteriaSearchConfig",
2770
- "declaration": {
2771
- "name": "defaultAiCriteriaSearchConfig",
2772
- "module": "./ai-criteria-search"
2773
- }
2774
- },
2775
- {
2776
- "kind": "js",
2777
- "name": "foundationAiCriteriaSearch",
2778
- "declaration": {
2779
- "name": "foundationAiCriteriaSearch",
2780
- "module": "./ai-criteria-search"
2781
- }
2782
- },
2783
- {
2784
- "kind": "js",
2785
- "name": "foundationAiCriteriaSearchShadowOptions",
2786
- "declaration": {
2787
- "name": "foundationAiCriteriaSearchShadowOptions",
2788
- "module": "./ai-criteria-search"
2789
- }
2790
- },
2791
- {
2792
- "kind": "js",
2793
- "name": "foundationAiCriteriaSearchStyles",
2794
- "declaration": {
2795
- "name": "foundationAiCriteriaSearchStyles",
2796
- "module": "./ai-criteria-search.styles"
2797
- }
2798
- },
2799
- {
2800
- "kind": "js",
2801
- "name": "foundationAiCriteriaSearchTemplate",
2802
- "declaration": {
2803
- "name": "foundationAiCriteriaSearchTemplate",
2804
- "module": "./ai-criteria-search.template"
2805
- }
2806
- },
2807
- {
2808
- "kind": "js",
2809
- "name": "*",
2810
- "declaration": {
2811
- "name": "*",
2812
- "package": "./validation/criteria-ir"
2813
- }
2814
- },
2815
- {
2816
- "kind": "js",
2817
- "name": "*",
2818
- "declaration": {
2819
- "name": "*",
2820
- "package": "./validation/operator-map"
2821
- }
2822
- },
2823
- {
2824
- "kind": "js",
2825
- "name": "*",
2826
- "declaration": {
2827
- "name": "*",
2828
- "package": "./validation/schema-validator"
2829
- }
2830
- }
2831
- ]
2832
- },
2833
- {
2834
- "kind": "javascript-module",
2835
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2836
- "declarations": [
2837
- {
2838
- "kind": "function",
2839
- "name": "formatValidationErrors",
2840
- "return": {
2841
- "type": {
2842
- "text": "string"
2843
- }
2844
- },
2845
- "parameters": [
2846
- {
2847
- "name": "errors",
2848
- "type": {
2849
- "text": "ValidationError[]"
2850
- }
2851
- }
2852
- ],
2853
- "description": "Formats validation errors into a user-friendly message."
2854
- },
2855
- {
2856
- "kind": "function",
2857
- "name": "showCriteriaError",
2858
- "return": {
2859
- "type": {
2860
- "text": "void"
2861
- }
2862
- },
2863
- "parameters": [
2864
- {
2865
- "name": "title",
2866
- "type": {
2867
- "text": "string"
2868
- },
2869
- "description": "Notification title (e.g. \"Criteria validation error\")"
2870
- },
2871
- {
2872
- "name": "body",
2873
- "type": {
2874
- "text": "string"
2875
- },
2876
- "description": "Error message to display"
2877
- },
2878
- {
2879
- "name": "tagName",
2880
- "type": {
2881
- "text": "string"
2882
- },
2883
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2884
- }
2885
- ],
2886
- "description": "Shows a criteria error as a toast notification."
2887
- }
2888
- ],
2889
- "exports": [
2890
- {
2891
- "kind": "js",
2892
- "name": "formatValidationErrors",
2893
- "declaration": {
2894
- "name": "formatValidationErrors",
2895
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2896
- }
2897
- },
2898
- {
2899
- "kind": "js",
2900
- "name": "showCriteriaError",
2901
- "declaration": {
2902
- "name": "showCriteriaError",
2903
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2904
- }
2905
- }
2906
- ]
2907
- },
2908
- {
2909
- "kind": "javascript-module",
2910
- "path": "src/accordion/accordion.styles.ts",
2911
- "declarations": [
2912
- {
2913
- "kind": "function",
2914
- "name": "foundationAccordionStyles",
2915
- "return": {
2916
- "type": {
2917
- "text": "ElementStyles"
2918
- }
2919
- },
2920
- "parameters": [
2921
- {
2922
- "name": "context",
2923
- "type": {
2924
- "text": "ElementDefinitionContext"
2925
- }
2926
- },
2927
- {
2928
- "name": "definition",
2929
- "type": {
2930
- "text": "FoundationElementDefinition"
2931
- }
2932
- }
2933
- ]
2934
- }
2935
- ],
2936
- "exports": [
2937
- {
2938
- "kind": "js",
2939
- "name": "foundationAccordionStyles",
2940
- "declaration": {
2941
- "name": "foundationAccordionStyles",
2942
- "module": "src/accordion/accordion.styles.ts"
2943
- }
2944
- }
2945
- ]
2946
- },
2947
- {
2948
- "kind": "javascript-module",
2949
- "path": "src/accordion/accordion.template.ts",
2950
- "declarations": [
2951
- {
2952
- "kind": "function",
2953
- "name": "foundationAccordionTemplate",
2954
- "return": {
2955
- "type": {
2956
- "text": "ViewTemplate<Accordion>"
2957
- }
2958
- },
2959
- "parameters": [
2960
- {
2961
- "name": "context",
2962
- "type": {
2963
- "text": "ElementDefinitionContext"
2964
- }
2965
- },
2966
- {
2967
- "name": "definition",
2968
- "type": {
2969
- "text": "FoundationElementDefinition"
2876
+ ],
2877
+ "description": "Defines an element registry function with a set of element definition defaults.",
2878
+ "inheritedFrom": {
2879
+ "name": "FoundationElement",
2880
+ "module": "src/foundation-element/foundation-element.ts"
2970
2881
  }
2971
2882
  }
2972
- ]
2973
- }
2974
- ],
2975
- "exports": [
2976
- {
2977
- "kind": "js",
2978
- "name": "foundationAccordionTemplate",
2979
- "declaration": {
2980
- "name": "foundationAccordionTemplate",
2981
- "module": "src/accordion/accordion.template.ts"
2982
- }
2983
- }
2984
- ]
2985
- },
2986
- {
2987
- "kind": "javascript-module",
2988
- "path": "src/accordion/accordion.ts",
2989
- "declarations": [
2990
- {
2991
- "kind": "class",
2992
- "description": "",
2993
- "name": "Accordion",
2883
+ ],
2994
2884
  "superclass": {
2995
- "name": "FASTAccordion",
2885
+ "name": "FoundationElement",
2996
2886
  "package": "@microsoft/fast-foundation"
2997
2887
  },
2998
- "tagName": "%%prefix%%-accordion",
2888
+ "tagName": "%%prefix%%-ai-indicator",
2999
2889
  "customElement": true
3000
2890
  },
3001
2891
  {
3002
2892
  "kind": "variable",
3003
- "name": "foundationAccordionShadowOptions",
3004
- "type": {
3005
- "text": "ShadowRootInit"
3006
- },
3007
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3008
- },
3009
- {
3010
- "kind": "variable",
3011
- "name": "defaultAccordionConfig",
3012
- "type": {
3013
- "text": "object"
3014
- },
3015
- "default": "{}"
3016
- },
3017
- {
3018
- "kind": "variable",
3019
- "name": "foundationAccordion",
3020
- "description": "The Foundation Accordion",
3021
- "privacy": "public"
2893
+ "name": "foundationAiIndicator"
3022
2894
  }
3023
2895
  ],
3024
2896
  "exports": [
3025
2897
  {
3026
2898
  "kind": "js",
3027
- "name": "Accordion",
2899
+ "name": "AiIndicator",
3028
2900
  "declaration": {
3029
- "name": "Accordion",
3030
- "module": "src/accordion/accordion.ts"
2901
+ "name": "AiIndicator",
2902
+ "module": "src/ai-indicator/ai-indicator.ts"
3031
2903
  }
3032
2904
  },
3033
2905
  {
3034
2906
  "kind": "js",
3035
- "name": "foundationAccordionShadowOptions",
2907
+ "name": "foundationAiIndicator",
3036
2908
  "declaration": {
3037
- "name": "foundationAccordionShadowOptions",
3038
- "module": "src/accordion/accordion.ts"
2909
+ "name": "foundationAiIndicator",
2910
+ "module": "src/ai-indicator/ai-indicator.ts"
2911
+ }
2912
+ }
2913
+ ]
2914
+ },
2915
+ {
2916
+ "kind": "javascript-module",
2917
+ "path": "src/ai-indicator/index.ts",
2918
+ "declarations": [],
2919
+ "exports": [
2920
+ {
2921
+ "kind": "js",
2922
+ "name": "AiIndicator",
2923
+ "declaration": {
2924
+ "name": "AiIndicator",
2925
+ "module": "./ai-indicator"
3039
2926
  }
3040
2927
  },
3041
2928
  {
3042
2929
  "kind": "js",
3043
- "name": "defaultAccordionConfig",
2930
+ "name": "foundationAiIndicator",
3044
2931
  "declaration": {
3045
- "name": "defaultAccordionConfig",
3046
- "module": "src/accordion/accordion.ts"
2932
+ "name": "foundationAiIndicator",
2933
+ "module": "./ai-indicator"
3047
2934
  }
3048
2935
  },
3049
2936
  {
3050
2937
  "kind": "js",
3051
- "name": "foundationAccordion",
2938
+ "name": "type",
3052
2939
  "declaration": {
3053
- "name": "foundationAccordion",
3054
- "module": "src/accordion/accordion.ts"
2940
+ "name": "type",
2941
+ "module": "./ai-indicator"
3055
2942
  }
3056
- }
3057
- ]
3058
- },
3059
- {
3060
- "kind": "javascript-module",
3061
- "path": "src/accordion/index.ts",
3062
- "declarations": [],
3063
- "exports": [
2943
+ },
3064
2944
  {
3065
2945
  "kind": "js",
3066
- "name": "*",
2946
+ "name": "AIIndicatorState",
3067
2947
  "declaration": {
3068
- "name": "*",
3069
- "package": "./accordion.template"
2948
+ "name": "AIIndicatorState",
2949
+ "module": "./ai-indicator"
3070
2950
  }
3071
2951
  },
3072
2952
  {
3073
2953
  "kind": "js",
3074
- "name": "*",
2954
+ "name": "foundationAiIndicatorTemplate",
3075
2955
  "declaration": {
3076
- "name": "*",
3077
- "package": "./accordion.styles"
2956
+ "name": "foundationAiIndicatorTemplate",
2957
+ "module": "./ai-indicator.template"
3078
2958
  }
3079
2959
  },
3080
2960
  {
3081
2961
  "kind": "js",
3082
- "name": "*",
2962
+ "name": "foundationAiIndicatorStyles",
3083
2963
  "declaration": {
3084
- "name": "*",
3085
- "package": "./accordion"
2964
+ "name": "foundationAiIndicatorStyles",
2965
+ "module": "./ai-indicator.styles"
3086
2966
  }
3087
2967
  }
3088
2968
  ]
3089
2969
  },
3090
2970
  {
3091
2971
  "kind": "javascript-module",
3092
- "path": "src/ai-indicator/ai-indicator.styles.ts",
2972
+ "path": "src/actions-menu/actions-menu.styles.ts",
3093
2973
  "declarations": [
3094
2974
  {
3095
2975
  "kind": "function",
3096
- "name": "foundationAiIndicatorStyles",
2976
+ "name": "actionsMenuBaseStyles",
2977
+ "return": {
2978
+ "type": {
2979
+ "text": "ElementStyles"
2980
+ }
2981
+ },
2982
+ "parameters": [
2983
+ {
2984
+ "name": "context",
2985
+ "type": {
2986
+ "text": "ElementDefinitionContext"
2987
+ }
2988
+ },
2989
+ {
2990
+ "name": "definition",
2991
+ "type": {
2992
+ "text": "FoundationElementDefinition"
2993
+ }
2994
+ }
2995
+ ]
2996
+ },
2997
+ {
2998
+ "kind": "function",
2999
+ "name": "foundationActionsMenuStyles",
3097
3000
  "return": {
3098
3001
  "type": {
3099
3002
  "text": "ElementStyles"
@@ -3118,215 +3021,269 @@
3118
3021
  "exports": [
3119
3022
  {
3120
3023
  "kind": "js",
3121
- "name": "foundationAiIndicatorStyles",
3024
+ "name": "actionsMenuBaseStyles",
3122
3025
  "declaration": {
3123
- "name": "foundationAiIndicatorStyles",
3124
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3026
+ "name": "actionsMenuBaseStyles",
3027
+ "module": "src/actions-menu/actions-menu.styles.ts"
3028
+ }
3029
+ },
3030
+ {
3031
+ "kind": "js",
3032
+ "name": "foundationActionsMenuStyles",
3033
+ "declaration": {
3034
+ "name": "foundationActionsMenuStyles",
3035
+ "module": "src/actions-menu/actions-menu.styles.ts"
3125
3036
  }
3126
3037
  }
3127
3038
  ]
3128
3039
  },
3129
3040
  {
3130
3041
  "kind": "javascript-module",
3131
- "path": "src/ai-indicator/ai-indicator.template.ts",
3042
+ "path": "src/actions-menu/actions-menu.template.ts",
3132
3043
  "declarations": [
3044
+ {
3045
+ "kind": "function",
3046
+ "name": "menuTemplate",
3047
+ "parameters": [
3048
+ {
3049
+ "name": "prefix",
3050
+ "type": {
3051
+ "text": "string"
3052
+ }
3053
+ }
3054
+ ]
3055
+ },
3056
+ {
3057
+ "kind": "function",
3058
+ "name": "singleOptionTemplate",
3059
+ "parameters": [
3060
+ {
3061
+ "name": "prefix",
3062
+ "type": {
3063
+ "text": "string"
3064
+ }
3065
+ }
3066
+ ]
3067
+ },
3133
3068
  {
3134
3069
  "kind": "variable",
3135
- "name": "foundationAiIndicatorTemplate",
3070
+ "name": "foundationActionsMenuTemplate",
3136
3071
  "type": {
3137
- "text": "ViewTemplate<AiIndicator>"
3072
+ "text": "ViewTemplate<ActionsMenu>"
3138
3073
  },
3139
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3074
+ "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`"
3140
3075
  }
3141
3076
  ],
3142
3077
  "exports": [
3143
3078
  {
3144
3079
  "kind": "js",
3145
- "name": "foundationAiIndicatorTemplate",
3080
+ "name": "menuTemplate",
3146
3081
  "declaration": {
3147
- "name": "foundationAiIndicatorTemplate",
3148
- "module": "src/ai-indicator/ai-indicator.template.ts"
3082
+ "name": "menuTemplate",
3083
+ "module": "src/actions-menu/actions-menu.template.ts"
3084
+ }
3085
+ },
3086
+ {
3087
+ "kind": "js",
3088
+ "name": "singleOptionTemplate",
3089
+ "declaration": {
3090
+ "name": "singleOptionTemplate",
3091
+ "module": "src/actions-menu/actions-menu.template.ts"
3092
+ }
3093
+ },
3094
+ {
3095
+ "kind": "js",
3096
+ "name": "foundationActionsMenuTemplate",
3097
+ "declaration": {
3098
+ "name": "foundationActionsMenuTemplate",
3099
+ "module": "src/actions-menu/actions-menu.template.ts"
3149
3100
  }
3150
3101
  }
3151
3102
  ]
3152
3103
  },
3153
3104
  {
3154
3105
  "kind": "javascript-module",
3155
- "path": "src/ai-indicator/ai-indicator.ts",
3106
+ "path": "src/actions-menu/actions-menu.ts",
3156
3107
  "declarations": [
3157
3108
  {
3158
3109
  "kind": "class",
3159
3110
  "description": "",
3160
- "name": "AiIndicator",
3111
+ "name": "ActionsMenu",
3161
3112
  "members": [
3162
3113
  {
3163
3114
  "kind": "field",
3164
- "name": "aiProvider",
3115
+ "name": "actions",
3165
3116
  "type": {
3166
- "text": "AIProvider"
3117
+ "text": "ActionMenuItem[]"
3167
3118
  }
3168
3119
  },
3169
3120
  {
3170
3121
  "kind": "field",
3171
- "name": "status",
3122
+ "name": "isVertical",
3172
3123
  "type": {
3173
- "text": "AIStatus | null"
3124
+ "text": "boolean"
3174
3125
  },
3175
- "default": "null"
3126
+ "default": "false"
3176
3127
  },
3177
3128
  {
3178
3129
  "kind": "field",
3179
- "name": "open",
3130
+ "name": "addDefaultActions",
3180
3131
  "type": {
3181
3132
  "text": "boolean"
3182
3133
  },
3183
- "default": "false"
3134
+ "default": "true"
3184
3135
  },
3185
3136
  {
3186
3137
  "kind": "field",
3187
- "name": "state",
3138
+ "name": "autoCloseOnAction",
3188
3139
  "type": {
3189
- "text": "AIIndicatorState"
3140
+ "text": "boolean"
3190
3141
  },
3191
- "default": "'none'"
3142
+ "default": "true"
3192
3143
  },
3193
3144
  {
3194
3145
  "kind": "field",
3195
- "name": "isInstalling",
3146
+ "name": "classNames",
3196
3147
  "type": {
3197
- "text": "boolean"
3148
+ "text": "string"
3149
+ }
3150
+ },
3151
+ {
3152
+ "kind": "field",
3153
+ "name": "definition",
3154
+ "type": {
3155
+ "text": "any"
3156
+ }
3157
+ },
3158
+ {
3159
+ "kind": "field",
3160
+ "name": "name",
3161
+ "type": {
3162
+ "text": "string"
3198
3163
  },
3199
- "default": "false"
3164
+ "default": "'Actions'"
3200
3165
  },
3201
3166
  {
3202
3167
  "kind": "field",
3203
- "name": "pollTimer",
3168
+ "name": "open",
3204
3169
  "type": {
3205
- "text": "ReturnType<typeof setInterval> | null"
3170
+ "text": "boolean"
3206
3171
  },
3207
- "privacy": "private",
3208
- "default": "null"
3172
+ "default": "false"
3209
3173
  },
3210
3174
  {
3211
3175
  "kind": "field",
3212
- "name": "clickOutside",
3213
- "privacy": "private"
3176
+ "name": "buttonAppearance",
3177
+ "type": {
3178
+ "text": "string"
3179
+ }
3214
3180
  },
3215
3181
  {
3216
3182
  "kind": "field",
3217
- "name": "chromeStatusLabel",
3183
+ "name": "hideDisabled",
3218
3184
  "type": {
3219
- "text": "string | null"
3185
+ "text": "boolean"
3220
3186
  },
3221
- "readonly": true
3187
+ "default": "false"
3222
3188
  },
3223
3189
  {
3224
3190
  "kind": "field",
3225
- "name": "canInstall",
3191
+ "name": "hideMenuSingleOption",
3226
3192
  "type": {
3227
3193
  "text": "boolean"
3228
3194
  },
3229
- "readonly": true
3195
+ "default": "false"
3230
3196
  },
3231
3197
  {
3232
3198
  "kind": "field",
3233
- "name": "isDownloading",
3199
+ "name": "singleOption",
3234
3200
  "type": {
3235
- "text": "boolean"
3236
- },
3237
- "readonly": true
3201
+ "text": "ActionMenuItem"
3202
+ }
3238
3203
  },
3239
3204
  {
3240
- "kind": "method",
3241
- "name": "openChanged",
3242
- "return": {
3243
- "type": {
3244
- "text": "void"
3245
- }
3205
+ "kind": "field",
3206
+ "name": "actionsMenu",
3207
+ "type": {
3208
+ "text": "HTMLElement"
3246
3209
  }
3247
3210
  },
3248
3211
  {
3249
3212
  "kind": "method",
3250
- "name": "handleClickOutside",
3251
- "privacy": "private",
3213
+ "name": "definitionChanged",
3214
+ "privacy": "protected",
3252
3215
  "parameters": [
3253
3216
  {
3254
- "name": "event",
3217
+ "name": "oldValue",
3255
3218
  "type": {
3256
- "text": "MouseEvent"
3219
+ "text": "any"
3220
+ }
3221
+ },
3222
+ {
3223
+ "name": "newValue",
3224
+ "type": {
3225
+ "text": "any"
3257
3226
  }
3258
3227
  }
3259
3228
  ]
3260
3229
  },
3261
3230
  {
3262
3231
  "kind": "method",
3263
- "name": "toggleDropdown"
3232
+ "name": "openChanged",
3233
+ "privacy": "protected"
3264
3234
  },
3265
3235
  {
3266
3236
  "kind": "method",
3267
- "name": "refreshStatus",
3268
- "return": {
3269
- "type": {
3270
- "text": "Promise<void>"
3271
- }
3272
- }
3237
+ "name": "toggleActionsMenuVisibility"
3273
3238
  },
3274
3239
  {
3275
3240
  "kind": "method",
3276
- "name": "deriveState",
3277
- "privacy": "private",
3278
- "return": {
3279
- "type": {
3280
- "text": "AIIndicatorState"
3281
- }
3282
- },
3241
+ "name": "onActionMenuItemClick",
3283
3242
  "parameters": [
3284
3243
  {
3285
- "name": "s",
3244
+ "name": "callback",
3286
3245
  "type": {
3287
- "text": "AIStatus | null"
3246
+ "text": "(rowData) => void | any"
3288
3247
  }
3289
3248
  }
3290
3249
  ]
3291
3250
  },
3292
3251
  {
3293
- "kind": "method",
3294
- "name": "maybeStartPolling",
3295
- "privacy": "private",
3296
- "return": {
3297
- "type": {
3298
- "text": "void"
3299
- }
3300
- }
3252
+ "kind": "field",
3253
+ "name": "allActions",
3254
+ "type": {
3255
+ "text": "ActionMenuItem[]"
3256
+ },
3257
+ "readonly": true
3301
3258
  },
3302
3259
  {
3303
- "kind": "method",
3304
- "name": "startPolling",
3305
- "privacy": "private",
3306
- "return": {
3307
- "type": {
3308
- "text": "void"
3309
- }
3310
- }
3260
+ "kind": "field",
3261
+ "name": "rowData",
3262
+ "readonly": true
3311
3263
  },
3312
3264
  {
3313
3265
  "kind": "method",
3314
- "name": "stopPolling",
3315
- "privacy": "private",
3316
- "return": {
3317
- "type": {
3318
- "text": "void"
3266
+ "name": "getLabel",
3267
+ "parameters": [
3268
+ {
3269
+ "name": "name",
3270
+ "type": {
3271
+ "text": "string | ((rowData: any) => string)"
3272
+ }
3319
3273
  }
3320
- }
3274
+ ]
3321
3275
  },
3322
3276
  {
3323
3277
  "kind": "method",
3324
- "name": "onInstall",
3325
- "return": {
3326
- "type": {
3327
- "text": "Promise<void>"
3278
+ "name": "getTemplate",
3279
+ "parameters": [
3280
+ {
3281
+ "name": "prefix",
3282
+ "type": {
3283
+ "text": "string"
3284
+ }
3328
3285
  }
3329
- }
3286
+ ]
3330
3287
  },
3331
3288
  {
3332
3289
  "kind": "field",
@@ -3440,88 +3397,131 @@
3440
3397
  }
3441
3398
  }
3442
3399
  ],
3400
+ "attributes": [
3401
+ {
3402
+ "name": "is-vertical",
3403
+ "type": {
3404
+ "text": "boolean"
3405
+ },
3406
+ "default": "false",
3407
+ "fieldName": "isVertical"
3408
+ },
3409
+ {
3410
+ "name": "add-default-actions",
3411
+ "type": {
3412
+ "text": "boolean"
3413
+ },
3414
+ "default": "true",
3415
+ "fieldName": "addDefaultActions"
3416
+ },
3417
+ {
3418
+ "name": "auto-close-on-action",
3419
+ "type": {
3420
+ "text": "boolean"
3421
+ },
3422
+ "default": "true",
3423
+ "fieldName": "autoCloseOnAction"
3424
+ },
3425
+ {
3426
+ "name": "name",
3427
+ "type": {
3428
+ "text": "string"
3429
+ },
3430
+ "default": "'Actions'",
3431
+ "fieldName": "name"
3432
+ },
3433
+ {
3434
+ "name": "open",
3435
+ "type": {
3436
+ "text": "boolean"
3437
+ },
3438
+ "default": "false",
3439
+ "fieldName": "open"
3440
+ },
3441
+ {
3442
+ "name": "buttonAppearance",
3443
+ "type": {
3444
+ "text": "string"
3445
+ },
3446
+ "fieldName": "buttonAppearance"
3447
+ },
3448
+ {
3449
+ "name": "hide-disabled",
3450
+ "type": {
3451
+ "text": "boolean"
3452
+ },
3453
+ "default": "false",
3454
+ "fieldName": "hideDisabled"
3455
+ },
3456
+ {
3457
+ "name": "hide-menu-single-option",
3458
+ "type": {
3459
+ "text": "boolean"
3460
+ },
3461
+ "default": "false",
3462
+ "fieldName": "hideMenuSingleOption"
3463
+ }
3464
+ ],
3443
3465
  "superclass": {
3444
3466
  "name": "FoundationElement",
3445
3467
  "package": "@microsoft/fast-foundation"
3446
3468
  },
3447
- "tagName": "%%prefix%%-ai-indicator",
3469
+ "tagName": "%%prefix%%-actions-menu",
3448
3470
  "customElement": true
3449
3471
  },
3450
3472
  {
3451
3473
  "kind": "variable",
3452
- "name": "foundationAiIndicator"
3474
+ "name": "foundationActionsMenu",
3475
+ "description": "The Foundation Actions Menu",
3476
+ "privacy": "public"
3453
3477
  }
3454
3478
  ],
3455
3479
  "exports": [
3456
3480
  {
3457
3481
  "kind": "js",
3458
- "name": "AiIndicator",
3482
+ "name": "ActionsMenu",
3459
3483
  "declaration": {
3460
- "name": "AiIndicator",
3461
- "module": "src/ai-indicator/ai-indicator.ts"
3484
+ "name": "ActionsMenu",
3485
+ "module": "src/actions-menu/actions-menu.ts"
3462
3486
  }
3463
3487
  },
3464
3488
  {
3465
3489
  "kind": "js",
3466
- "name": "foundationAiIndicator",
3490
+ "name": "foundationActionsMenu",
3467
3491
  "declaration": {
3468
- "name": "foundationAiIndicator",
3469
- "module": "src/ai-indicator/ai-indicator.ts"
3492
+ "name": "foundationActionsMenu",
3493
+ "module": "src/actions-menu/actions-menu.ts"
3470
3494
  }
3471
3495
  }
3472
3496
  ]
3473
3497
  },
3474
3498
  {
3475
3499
  "kind": "javascript-module",
3476
- "path": "src/ai-indicator/index.ts",
3500
+ "path": "src/actions-menu/index.ts",
3477
3501
  "declarations": [],
3478
3502
  "exports": [
3479
3503
  {
3480
3504
  "kind": "js",
3481
- "name": "AiIndicator",
3482
- "declaration": {
3483
- "name": "AiIndicator",
3484
- "module": "./ai-indicator"
3485
- }
3486
- },
3487
- {
3488
- "kind": "js",
3489
- "name": "foundationAiIndicator",
3490
- "declaration": {
3491
- "name": "foundationAiIndicator",
3492
- "module": "./ai-indicator"
3493
- }
3494
- },
3495
- {
3496
- "kind": "js",
3497
- "name": "type",
3498
- "declaration": {
3499
- "name": "type",
3500
- "module": "./ai-indicator"
3501
- }
3502
- },
3503
- {
3504
- "kind": "js",
3505
- "name": "AIIndicatorState",
3505
+ "name": "*",
3506
3506
  "declaration": {
3507
- "name": "AIIndicatorState",
3508
- "module": "./ai-indicator"
3507
+ "name": "*",
3508
+ "package": "./actions-menu.styles"
3509
3509
  }
3510
3510
  },
3511
3511
  {
3512
3512
  "kind": "js",
3513
- "name": "foundationAiIndicatorTemplate",
3513
+ "name": "*",
3514
3514
  "declaration": {
3515
- "name": "foundationAiIndicatorTemplate",
3516
- "module": "./ai-indicator.template"
3515
+ "name": "*",
3516
+ "package": "./actions-menu.template"
3517
3517
  }
3518
3518
  },
3519
3519
  {
3520
3520
  "kind": "js",
3521
- "name": "foundationAiIndicatorStyles",
3521
+ "name": "*",
3522
3522
  "declaration": {
3523
- "name": "foundationAiIndicatorStyles",
3524
- "module": "./ai-indicator.styles"
3523
+ "name": "*",
3524
+ "package": "./actions-menu"
3525
3525
  }
3526
3526
  }
3527
3527
  ]