@genesislcap/foundation-ui 14.461.0 → 14.461.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.
@@ -1398,6 +1398,37 @@
1398
1398
  }
1399
1399
  ]
1400
1400
  },
1401
+ {
1402
+ "kind": "javascript-module",
1403
+ "path": "src/_config/index.ts",
1404
+ "declarations": [],
1405
+ "exports": [
1406
+ {
1407
+ "kind": "js",
1408
+ "name": "*",
1409
+ "declaration": {
1410
+ "name": "*",
1411
+ "package": "./styles"
1412
+ }
1413
+ },
1414
+ {
1415
+ "kind": "js",
1416
+ "name": "*",
1417
+ "declaration": {
1418
+ "name": "*",
1419
+ "package": "./tokens"
1420
+ }
1421
+ },
1422
+ {
1423
+ "kind": "js",
1424
+ "name": "*",
1425
+ "declaration": {
1426
+ "name": "*",
1427
+ "package": "./values"
1428
+ }
1429
+ }
1430
+ ]
1431
+ },
1401
1432
  {
1402
1433
  "kind": "javascript-module",
1403
1434
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1794,34 +1825,11 @@
1794
1825
  },
1795
1826
  {
1796
1827
  "kind": "javascript-module",
1797
- "path": "src/actions-menu/actions-menu.styles.ts",
1828
+ "path": "src/accordion/accordion.styles.ts",
1798
1829
  "declarations": [
1799
1830
  {
1800
1831
  "kind": "function",
1801
- "name": "actionsMenuBaseStyles",
1802
- "return": {
1803
- "type": {
1804
- "text": "ElementStyles"
1805
- }
1806
- },
1807
- "parameters": [
1808
- {
1809
- "name": "context",
1810
- "type": {
1811
- "text": "ElementDefinitionContext"
1812
- }
1813
- },
1814
- {
1815
- "name": "definition",
1816
- "type": {
1817
- "text": "FoundationElementDefinition"
1818
- }
1819
- }
1820
- ]
1821
- },
1822
- {
1823
- "kind": "function",
1824
- "name": "foundationActionsMenuStyles",
1832
+ "name": "foundationAccordionStyles",
1825
1833
  "return": {
1826
1834
  "type": {
1827
1835
  "text": "ElementStyles"
@@ -1846,269 +1854,277 @@
1846
1854
  "exports": [
1847
1855
  {
1848
1856
  "kind": "js",
1849
- "name": "actionsMenuBaseStyles",
1850
- "declaration": {
1851
- "name": "actionsMenuBaseStyles",
1852
- "module": "src/actions-menu/actions-menu.styles.ts"
1853
- }
1854
- },
1855
- {
1856
- "kind": "js",
1857
- "name": "foundationActionsMenuStyles",
1857
+ "name": "foundationAccordionStyles",
1858
1858
  "declaration": {
1859
- "name": "foundationActionsMenuStyles",
1860
- "module": "src/actions-menu/actions-menu.styles.ts"
1859
+ "name": "foundationAccordionStyles",
1860
+ "module": "src/accordion/accordion.styles.ts"
1861
1861
  }
1862
1862
  }
1863
1863
  ]
1864
1864
  },
1865
1865
  {
1866
1866
  "kind": "javascript-module",
1867
- "path": "src/actions-menu/actions-menu.template.ts",
1867
+ "path": "src/accordion/accordion.template.ts",
1868
1868
  "declarations": [
1869
1869
  {
1870
1870
  "kind": "function",
1871
- "name": "menuTemplate",
1871
+ "name": "foundationAccordionTemplate",
1872
+ "return": {
1873
+ "type": {
1874
+ "text": "ViewTemplate<Accordion>"
1875
+ }
1876
+ },
1872
1877
  "parameters": [
1873
1878
  {
1874
- "name": "prefix",
1879
+ "name": "context",
1875
1880
  "type": {
1876
- "text": "string"
1881
+ "text": "ElementDefinitionContext"
1877
1882
  }
1878
- }
1879
- ]
1880
- },
1881
- {
1882
- "kind": "function",
1883
- "name": "singleOptionTemplate",
1884
- "parameters": [
1883
+ },
1885
1884
  {
1886
- "name": "prefix",
1885
+ "name": "definition",
1887
1886
  "type": {
1888
- "text": "string"
1887
+ "text": "FoundationElementDefinition"
1889
1888
  }
1890
1889
  }
1891
1890
  ]
1892
- },
1893
- {
1894
- "kind": "variable",
1895
- "name": "foundationActionsMenuTemplate",
1896
- "type": {
1897
- "text": "ViewTemplate<ActionsMenu>"
1898
- },
1899
- "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`"
1900
1891
  }
1901
1892
  ],
1902
1893
  "exports": [
1903
1894
  {
1904
1895
  "kind": "js",
1905
- "name": "menuTemplate",
1906
- "declaration": {
1907
- "name": "menuTemplate",
1908
- "module": "src/actions-menu/actions-menu.template.ts"
1909
- }
1910
- },
1911
- {
1912
- "kind": "js",
1913
- "name": "singleOptionTemplate",
1914
- "declaration": {
1915
- "name": "singleOptionTemplate",
1916
- "module": "src/actions-menu/actions-menu.template.ts"
1917
- }
1918
- },
1919
- {
1920
- "kind": "js",
1921
- "name": "foundationActionsMenuTemplate",
1896
+ "name": "foundationAccordionTemplate",
1922
1897
  "declaration": {
1923
- "name": "foundationActionsMenuTemplate",
1924
- "module": "src/actions-menu/actions-menu.template.ts"
1898
+ "name": "foundationAccordionTemplate",
1899
+ "module": "src/accordion/accordion.template.ts"
1925
1900
  }
1926
1901
  }
1927
1902
  ]
1928
1903
  },
1929
1904
  {
1930
1905
  "kind": "javascript-module",
1931
- "path": "src/actions-menu/actions-menu.ts",
1906
+ "path": "src/accordion/accordion.ts",
1932
1907
  "declarations": [
1933
1908
  {
1934
1909
  "kind": "class",
1935
1910
  "description": "",
1936
- "name": "ActionsMenu",
1937
- "members": [
1911
+ "name": "Accordion",
1912
+ "superclass": {
1913
+ "name": "FASTAccordion",
1914
+ "package": "@microsoft/fast-foundation"
1915
+ },
1916
+ "tagName": "%%prefix%%-accordion",
1917
+ "customElement": true,
1918
+ "attributes": [
1938
1919
  {
1939
- "kind": "field",
1940
- "name": "actions",
1920
+ "name": "expand-mode",
1941
1921
  "type": {
1942
- "text": "ActionMenuItem[]"
1922
+ "text": "AccordionExpandMode"
1923
+ },
1924
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1925
+ "fieldName": "expandmode",
1926
+ "inheritedFrom": {
1927
+ "name": "Accordion",
1928
+ "module": "src/accordion/accordion.ts"
1943
1929
  }
1944
- },
1930
+ }
1931
+ ],
1932
+ "members": [
1945
1933
  {
1946
1934
  "kind": "field",
1947
- "name": "isVertical",
1935
+ "name": "expandmode",
1948
1936
  "type": {
1949
- "text": "boolean"
1937
+ "text": "AccordionExpandMode"
1950
1938
  },
1951
- "default": "false"
1939
+ "privacy": "public",
1940
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1941
+ "inheritedFrom": {
1942
+ "name": "Accordion",
1943
+ "module": "src/accordion/accordion.ts"
1944
+ }
1952
1945
  },
1953
1946
  {
1954
1947
  "kind": "field",
1955
- "name": "addDefaultActions",
1948
+ "name": "activeid",
1956
1949
  "type": {
1957
- "text": "boolean"
1950
+ "text": "string | null"
1958
1951
  },
1959
- "default": "true"
1952
+ "privacy": "private",
1953
+ "inheritedFrom": {
1954
+ "name": "Accordion",
1955
+ "module": "src/accordion/accordion.ts"
1956
+ }
1960
1957
  },
1961
1958
  {
1962
1959
  "kind": "field",
1963
- "name": "autoCloseOnAction",
1960
+ "name": "activeItemIndex",
1964
1961
  "type": {
1965
- "text": "boolean"
1962
+ "text": "number"
1966
1963
  },
1967
- "default": "true"
1964
+ "privacy": "private",
1965
+ "default": "0",
1966
+ "inheritedFrom": {
1967
+ "name": "Accordion",
1968
+ "module": "src/accordion/accordion.ts"
1969
+ }
1968
1970
  },
1969
1971
  {
1970
1972
  "kind": "field",
1971
- "name": "classNames",
1973
+ "name": "accordionIds",
1972
1974
  "type": {
1973
- "text": "string"
1975
+ "text": "Array<string | null>"
1976
+ },
1977
+ "privacy": "private",
1978
+ "inheritedFrom": {
1979
+ "name": "Accordion",
1980
+ "module": "src/accordion/accordion.ts"
1974
1981
  }
1975
1982
  },
1976
1983
  {
1977
1984
  "kind": "field",
1978
- "name": "definition",
1979
- "type": {
1980
- "text": "any"
1985
+ "name": "change",
1986
+ "privacy": "private",
1987
+ "inheritedFrom": {
1988
+ "name": "Accordion",
1989
+ "module": "src/accordion/accordion.ts"
1981
1990
  }
1982
1991
  },
1983
1992
  {
1984
- "kind": "field",
1985
- "name": "name",
1986
- "type": {
1987
- "text": "string"
1993
+ "kind": "method",
1994
+ "name": "findExpandedItem",
1995
+ "privacy": "private",
1996
+ "return": {
1997
+ "type": {
1998
+ "text": "AccordionItem | null"
1999
+ }
1988
2000
  },
1989
- "default": "'Actions'"
2001
+ "inheritedFrom": {
2002
+ "name": "Accordion",
2003
+ "module": "src/accordion/accordion.ts"
2004
+ }
1990
2005
  },
1991
2006
  {
1992
2007
  "kind": "field",
1993
- "name": "open",
1994
- "type": {
1995
- "text": "boolean"
1996
- },
1997
- "default": "false"
2008
+ "name": "setItems",
2009
+ "privacy": "private",
2010
+ "inheritedFrom": {
2011
+ "name": "Accordion",
2012
+ "module": "src/accordion/accordion.ts"
2013
+ }
1998
2014
  },
1999
2015
  {
2000
- "kind": "field",
2001
- "name": "buttonAppearance",
2002
- "type": {
2003
- "text": "string"
2016
+ "kind": "method",
2017
+ "name": "resetItems",
2018
+ "privacy": "private",
2019
+ "return": {
2020
+ "type": {
2021
+ "text": "void"
2022
+ }
2023
+ },
2024
+ "inheritedFrom": {
2025
+ "name": "Accordion",
2026
+ "module": "src/accordion/accordion.ts"
2004
2027
  }
2005
2028
  },
2006
2029
  {
2007
2030
  "kind": "field",
2008
- "name": "hideDisabled",
2009
- "type": {
2010
- "text": "boolean"
2011
- },
2012
- "default": "false"
2031
+ "name": "removeItemListeners",
2032
+ "privacy": "private",
2033
+ "inheritedFrom": {
2034
+ "name": "Accordion",
2035
+ "module": "src/accordion/accordion.ts"
2036
+ }
2013
2037
  },
2014
2038
  {
2015
2039
  "kind": "field",
2016
- "name": "hideMenuSingleOption",
2017
- "type": {
2018
- "text": "boolean"
2019
- },
2020
- "default": "false"
2021
- },
2022
- {
2023
- "kind": "field",
2024
- "name": "singleOption",
2025
- "type": {
2026
- "text": "ActionMenuItem"
2027
- }
2028
- },
2029
- {
2030
- "kind": "field",
2031
- "name": "actionsMenu",
2032
- "type": {
2033
- "text": "HTMLElement"
2040
+ "name": "activeItemChange",
2041
+ "privacy": "private",
2042
+ "inheritedFrom": {
2043
+ "name": "Accordion",
2044
+ "module": "src/accordion/accordion.ts"
2034
2045
  }
2035
2046
  },
2036
2047
  {
2037
2048
  "kind": "method",
2038
- "name": "definitionChanged",
2039
- "privacy": "protected",
2040
- "parameters": [
2041
- {
2042
- "name": "oldValue",
2043
- "type": {
2044
- "text": "any"
2045
- }
2046
- },
2047
- {
2048
- "name": "newValue",
2049
- "type": {
2050
- "text": "any"
2051
- }
2049
+ "name": "getItemIds",
2050
+ "privacy": "private",
2051
+ "return": {
2052
+ "type": {
2053
+ "text": "Array<string | null>"
2052
2054
  }
2053
- ]
2054
- },
2055
- {
2056
- "kind": "method",
2057
- "name": "openChanged",
2058
- "privacy": "protected"
2059
- },
2060
- {
2061
- "kind": "method",
2062
- "name": "toggleActionsMenuVisibility"
2055
+ },
2056
+ "inheritedFrom": {
2057
+ "name": "Accordion",
2058
+ "module": "src/accordion/accordion.ts"
2059
+ }
2063
2060
  },
2064
2061
  {
2065
2062
  "kind": "method",
2066
- "name": "onActionMenuItemClick",
2067
- "parameters": [
2068
- {
2069
- "name": "callback",
2070
- "type": {
2071
- "text": "(rowData) => void | any"
2072
- }
2063
+ "name": "isSingleExpandMode",
2064
+ "privacy": "private",
2065
+ "return": {
2066
+ "type": {
2067
+ "text": "boolean"
2073
2068
  }
2074
- ]
2069
+ },
2070
+ "inheritedFrom": {
2071
+ "name": "Accordion",
2072
+ "module": "src/accordion/accordion.ts"
2073
+ }
2075
2074
  },
2076
2075
  {
2077
2076
  "kind": "field",
2078
- "name": "allActions",
2079
- "type": {
2080
- "text": "ActionMenuItem[]"
2081
- },
2082
- "readonly": true
2077
+ "name": "handleItemKeyDown",
2078
+ "privacy": "private",
2079
+ "inheritedFrom": {
2080
+ "name": "Accordion",
2081
+ "module": "src/accordion/accordion.ts"
2082
+ }
2083
2083
  },
2084
2084
  {
2085
2085
  "kind": "field",
2086
- "name": "rowData",
2087
- "readonly": true
2086
+ "name": "handleItemFocus",
2087
+ "privacy": "private",
2088
+ "inheritedFrom": {
2089
+ "name": "Accordion",
2090
+ "module": "src/accordion/accordion.ts"
2091
+ }
2088
2092
  },
2089
2093
  {
2090
2094
  "kind": "method",
2091
- "name": "getLabel",
2095
+ "name": "adjust",
2096
+ "privacy": "private",
2097
+ "return": {
2098
+ "type": {
2099
+ "text": "void"
2100
+ }
2101
+ },
2092
2102
  "parameters": [
2093
2103
  {
2094
- "name": "name",
2104
+ "name": "adjustment",
2095
2105
  "type": {
2096
- "text": "string | ((rowData: any) => string)"
2106
+ "text": "number"
2097
2107
  }
2098
2108
  }
2099
- ]
2109
+ ],
2110
+ "inheritedFrom": {
2111
+ "name": "Accordion",
2112
+ "module": "src/accordion/accordion.ts"
2113
+ }
2100
2114
  },
2101
2115
  {
2102
2116
  "kind": "method",
2103
- "name": "getTemplate",
2104
- "parameters": [
2105
- {
2106
- "name": "prefix",
2107
- "type": {
2108
- "text": "string"
2109
- }
2117
+ "name": "focusItem",
2118
+ "privacy": "private",
2119
+ "return": {
2120
+ "type": {
2121
+ "text": "void"
2110
2122
  }
2111
- ]
2123
+ },
2124
+ "inheritedFrom": {
2125
+ "name": "Accordion",
2126
+ "module": "src/accordion/accordion.ts"
2127
+ }
2112
2128
  },
2113
2129
  {
2114
2130
  "kind": "field",
@@ -2222,138 +2238,78 @@
2222
2238
  }
2223
2239
  }
2224
2240
  ],
2225
- "attributes": [
2226
- {
2227
- "name": "is-vertical",
2228
- "type": {
2229
- "text": "boolean"
2230
- },
2231
- "default": "false",
2232
- "fieldName": "isVertical"
2233
- },
2234
- {
2235
- "name": "add-default-actions",
2236
- "type": {
2237
- "text": "boolean"
2238
- },
2239
- "default": "true",
2240
- "fieldName": "addDefaultActions"
2241
- },
2242
- {
2243
- "name": "auto-close-on-action",
2244
- "type": {
2245
- "text": "boolean"
2246
- },
2247
- "default": "true",
2248
- "fieldName": "autoCloseOnAction"
2249
- },
2250
- {
2251
- "name": "name",
2252
- "type": {
2253
- "text": "string"
2254
- },
2255
- "default": "'Actions'",
2256
- "fieldName": "name"
2257
- },
2258
- {
2259
- "name": "open",
2260
- "type": {
2261
- "text": "boolean"
2262
- },
2263
- "default": "false",
2264
- "fieldName": "open"
2265
- },
2266
- {
2267
- "name": "buttonAppearance",
2268
- "type": {
2269
- "text": "string"
2270
- },
2271
- "fieldName": "buttonAppearance"
2272
- },
2273
- {
2274
- "name": "hide-disabled",
2275
- "type": {
2276
- "text": "boolean"
2277
- },
2278
- "default": "false",
2279
- "fieldName": "hideDisabled"
2280
- },
2241
+ "events": [
2281
2242
  {
2282
- "name": "hide-menu-single-option",
2283
- "type": {
2284
- "text": "boolean"
2285
- },
2286
- "default": "false",
2287
- "fieldName": "hideMenuSingleOption"
2243
+ "description": "Fires a custom 'change' event when the active item changes",
2244
+ "name": "change",
2245
+ "inheritedFrom": {
2246
+ "name": "Accordion",
2247
+ "module": "src/accordion/accordion.ts"
2248
+ }
2288
2249
  }
2289
- ],
2290
- "superclass": {
2291
- "name": "FoundationElement",
2292
- "package": "@microsoft/fast-foundation"
2250
+ ]
2251
+ },
2252
+ {
2253
+ "kind": "variable",
2254
+ "name": "foundationAccordionShadowOptions",
2255
+ "type": {
2256
+ "text": "ShadowRootInit"
2293
2257
  },
2294
- "tagName": "%%prefix%%-actions-menu",
2295
- "customElement": true
2258
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2296
2259
  },
2297
2260
  {
2298
2261
  "kind": "variable",
2299
- "name": "foundationActionsMenu",
2300
- "description": "The Foundation Actions Menu",
2262
+ "name": "defaultAccordionConfig",
2263
+ "type": {
2264
+ "text": "object"
2265
+ },
2266
+ "default": "{}"
2267
+ },
2268
+ {
2269
+ "kind": "variable",
2270
+ "name": "foundationAccordion",
2271
+ "description": "The Foundation Accordion",
2301
2272
  "privacy": "public"
2302
2273
  }
2303
2274
  ],
2304
2275
  "exports": [
2305
2276
  {
2306
2277
  "kind": "js",
2307
- "name": "ActionsMenu",
2278
+ "name": "Accordion",
2308
2279
  "declaration": {
2309
- "name": "ActionsMenu",
2310
- "module": "src/actions-menu/actions-menu.ts"
2280
+ "name": "Accordion",
2281
+ "module": "src/accordion/accordion.ts"
2311
2282
  }
2312
2283
  },
2313
2284
  {
2314
2285
  "kind": "js",
2315
- "name": "foundationActionsMenu",
2316
- "declaration": {
2317
- "name": "foundationActionsMenu",
2318
- "module": "src/actions-menu/actions-menu.ts"
2319
- }
2320
- }
2321
- ]
2322
- },
2323
- {
2324
- "kind": "javascript-module",
2325
- "path": "src/actions-menu/index.ts",
2326
- "declarations": [],
2327
- "exports": [
2328
- {
2329
- "kind": "js",
2330
- "name": "*",
2286
+ "name": "foundationAccordionShadowOptions",
2331
2287
  "declaration": {
2332
- "name": "*",
2333
- "package": "./actions-menu.styles"
2288
+ "name": "foundationAccordionShadowOptions",
2289
+ "module": "src/accordion/accordion.ts"
2334
2290
  }
2335
2291
  },
2336
2292
  {
2337
2293
  "kind": "js",
2338
- "name": "*",
2294
+ "name": "defaultAccordionConfig",
2339
2295
  "declaration": {
2340
- "name": "*",
2341
- "package": "./actions-menu.template"
2296
+ "name": "defaultAccordionConfig",
2297
+ "module": "src/accordion/accordion.ts"
2342
2298
  }
2343
2299
  },
2344
2300
  {
2345
2301
  "kind": "js",
2346
- "name": "*",
2302
+ "name": "foundationAccordion",
2347
2303
  "declaration": {
2348
- "name": "*",
2349
- "package": "./actions-menu"
2304
+ "name": "foundationAccordion",
2305
+ "module": "src/accordion/accordion.ts"
2350
2306
  }
2351
2307
  }
2352
2308
  ]
2353
2309
  },
2354
2310
  {
2355
2311
  "kind": "javascript-module",
2356
- "path": "src/_config/index.ts",
2312
+ "path": "src/accordion/index.ts",
2357
2313
  "declarations": [],
2358
2314
  "exports": [
2359
2315
  {
@@ -2361,7 +2317,7 @@
2361
2317
  "name": "*",
2362
2318
  "declaration": {
2363
2319
  "name": "*",
2364
- "package": "./styles"
2320
+ "package": "./accordion.template"
2365
2321
  }
2366
2322
  },
2367
2323
  {
@@ -2369,7 +2325,7 @@
2369
2325
  "name": "*",
2370
2326
  "declaration": {
2371
2327
  "name": "*",
2372
- "package": "./tokens"
2328
+ "package": "./accordion.styles"
2373
2329
  }
2374
2330
  },
2375
2331
  {
@@ -2377,18 +2333,41 @@
2377
2333
  "name": "*",
2378
2334
  "declaration": {
2379
2335
  "name": "*",
2380
- "package": "./values"
2336
+ "package": "./accordion"
2381
2337
  }
2382
2338
  }
2383
2339
  ]
2384
2340
  },
2385
2341
  {
2386
2342
  "kind": "javascript-module",
2387
- "path": "src/accordion/accordion.styles.ts",
2343
+ "path": "src/actions-menu/actions-menu.styles.ts",
2388
2344
  "declarations": [
2389
2345
  {
2390
2346
  "kind": "function",
2391
- "name": "foundationAccordionStyles",
2347
+ "name": "actionsMenuBaseStyles",
2348
+ "return": {
2349
+ "type": {
2350
+ "text": "ElementStyles"
2351
+ }
2352
+ },
2353
+ "parameters": [
2354
+ {
2355
+ "name": "context",
2356
+ "type": {
2357
+ "text": "ElementDefinitionContext"
2358
+ }
2359
+ },
2360
+ {
2361
+ "name": "definition",
2362
+ "type": {
2363
+ "text": "FoundationElementDefinition"
2364
+ }
2365
+ }
2366
+ ]
2367
+ },
2368
+ {
2369
+ "kind": "function",
2370
+ "name": "foundationActionsMenuStyles",
2392
2371
  "return": {
2393
2372
  "type": {
2394
2373
  "text": "ElementStyles"
@@ -2413,277 +2392,269 @@
2413
2392
  "exports": [
2414
2393
  {
2415
2394
  "kind": "js",
2416
- "name": "foundationAccordionStyles",
2395
+ "name": "actionsMenuBaseStyles",
2417
2396
  "declaration": {
2418
- "name": "foundationAccordionStyles",
2419
- "module": "src/accordion/accordion.styles.ts"
2397
+ "name": "actionsMenuBaseStyles",
2398
+ "module": "src/actions-menu/actions-menu.styles.ts"
2399
+ }
2400
+ },
2401
+ {
2402
+ "kind": "js",
2403
+ "name": "foundationActionsMenuStyles",
2404
+ "declaration": {
2405
+ "name": "foundationActionsMenuStyles",
2406
+ "module": "src/actions-menu/actions-menu.styles.ts"
2420
2407
  }
2421
2408
  }
2422
2409
  ]
2423
2410
  },
2424
2411
  {
2425
2412
  "kind": "javascript-module",
2426
- "path": "src/accordion/accordion.template.ts",
2413
+ "path": "src/actions-menu/actions-menu.template.ts",
2427
2414
  "declarations": [
2428
2415
  {
2429
2416
  "kind": "function",
2430
- "name": "foundationAccordionTemplate",
2431
- "return": {
2432
- "type": {
2433
- "text": "ViewTemplate<Accordion>"
2434
- }
2435
- },
2417
+ "name": "menuTemplate",
2436
2418
  "parameters": [
2437
2419
  {
2438
- "name": "context",
2420
+ "name": "prefix",
2439
2421
  "type": {
2440
- "text": "ElementDefinitionContext"
2422
+ "text": "string"
2441
2423
  }
2442
- },
2424
+ }
2425
+ ]
2426
+ },
2427
+ {
2428
+ "kind": "function",
2429
+ "name": "singleOptionTemplate",
2430
+ "parameters": [
2443
2431
  {
2444
- "name": "definition",
2432
+ "name": "prefix",
2445
2433
  "type": {
2446
- "text": "FoundationElementDefinition"
2434
+ "text": "string"
2447
2435
  }
2448
2436
  }
2449
2437
  ]
2438
+ },
2439
+ {
2440
+ "kind": "variable",
2441
+ "name": "foundationActionsMenuTemplate",
2442
+ "type": {
2443
+ "text": "ViewTemplate<ActionsMenu>"
2444
+ },
2445
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2450
2446
  }
2451
2447
  ],
2452
2448
  "exports": [
2453
2449
  {
2454
2450
  "kind": "js",
2455
- "name": "foundationAccordionTemplate",
2451
+ "name": "menuTemplate",
2456
2452
  "declaration": {
2457
- "name": "foundationAccordionTemplate",
2458
- "module": "src/accordion/accordion.template.ts"
2453
+ "name": "menuTemplate",
2454
+ "module": "src/actions-menu/actions-menu.template.ts"
2455
+ }
2456
+ },
2457
+ {
2458
+ "kind": "js",
2459
+ "name": "singleOptionTemplate",
2460
+ "declaration": {
2461
+ "name": "singleOptionTemplate",
2462
+ "module": "src/actions-menu/actions-menu.template.ts"
2463
+ }
2464
+ },
2465
+ {
2466
+ "kind": "js",
2467
+ "name": "foundationActionsMenuTemplate",
2468
+ "declaration": {
2469
+ "name": "foundationActionsMenuTemplate",
2470
+ "module": "src/actions-menu/actions-menu.template.ts"
2459
2471
  }
2460
2472
  }
2461
2473
  ]
2462
2474
  },
2463
2475
  {
2464
2476
  "kind": "javascript-module",
2465
- "path": "src/accordion/accordion.ts",
2477
+ "path": "src/actions-menu/actions-menu.ts",
2466
2478
  "declarations": [
2467
2479
  {
2468
2480
  "kind": "class",
2469
2481
  "description": "",
2470
- "name": "Accordion",
2471
- "superclass": {
2472
- "name": "FASTAccordion",
2473
- "package": "@microsoft/fast-foundation"
2474
- },
2475
- "tagName": "%%prefix%%-accordion",
2476
- "customElement": true,
2477
- "attributes": [
2482
+ "name": "ActionsMenu",
2483
+ "members": [
2478
2484
  {
2479
- "name": "expand-mode",
2485
+ "kind": "field",
2486
+ "name": "actions",
2480
2487
  "type": {
2481
- "text": "AccordionExpandMode"
2482
- },
2483
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2484
- "fieldName": "expandmode",
2485
- "inheritedFrom": {
2486
- "name": "Accordion",
2487
- "module": "src/accordion/accordion.ts"
2488
+ "text": "ActionMenuItem[]"
2488
2489
  }
2489
- }
2490
- ],
2491
- "members": [
2490
+ },
2492
2491
  {
2493
2492
  "kind": "field",
2494
- "name": "expandmode",
2493
+ "name": "isVertical",
2495
2494
  "type": {
2496
- "text": "AccordionExpandMode"
2495
+ "text": "boolean"
2497
2496
  },
2498
- "privacy": "public",
2499
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2500
- "inheritedFrom": {
2501
- "name": "Accordion",
2502
- "module": "src/accordion/accordion.ts"
2503
- }
2497
+ "default": "false"
2504
2498
  },
2505
2499
  {
2506
2500
  "kind": "field",
2507
- "name": "activeid",
2501
+ "name": "addDefaultActions",
2508
2502
  "type": {
2509
- "text": "string | null"
2503
+ "text": "boolean"
2510
2504
  },
2511
- "privacy": "private",
2512
- "inheritedFrom": {
2513
- "name": "Accordion",
2514
- "module": "src/accordion/accordion.ts"
2515
- }
2505
+ "default": "true"
2516
2506
  },
2517
2507
  {
2518
2508
  "kind": "field",
2519
- "name": "activeItemIndex",
2509
+ "name": "autoCloseOnAction",
2520
2510
  "type": {
2521
- "text": "number"
2511
+ "text": "boolean"
2522
2512
  },
2523
- "privacy": "private",
2524
- "default": "0",
2525
- "inheritedFrom": {
2526
- "name": "Accordion",
2527
- "module": "src/accordion/accordion.ts"
2528
- }
2513
+ "default": "true"
2529
2514
  },
2530
2515
  {
2531
2516
  "kind": "field",
2532
- "name": "accordionIds",
2517
+ "name": "classNames",
2533
2518
  "type": {
2534
- "text": "Array<string | null>"
2535
- },
2536
- "privacy": "private",
2537
- "inheritedFrom": {
2538
- "name": "Accordion",
2539
- "module": "src/accordion/accordion.ts"
2519
+ "text": "string"
2540
2520
  }
2541
2521
  },
2542
2522
  {
2543
2523
  "kind": "field",
2544
- "name": "change",
2545
- "privacy": "private",
2546
- "inheritedFrom": {
2547
- "name": "Accordion",
2548
- "module": "src/accordion/accordion.ts"
2524
+ "name": "definition",
2525
+ "type": {
2526
+ "text": "any"
2549
2527
  }
2550
2528
  },
2551
2529
  {
2552
- "kind": "method",
2553
- "name": "findExpandedItem",
2554
- "privacy": "private",
2555
- "return": {
2556
- "type": {
2557
- "text": "AccordionItem | null"
2558
- }
2530
+ "kind": "field",
2531
+ "name": "name",
2532
+ "type": {
2533
+ "text": "string"
2559
2534
  },
2560
- "inheritedFrom": {
2561
- "name": "Accordion",
2562
- "module": "src/accordion/accordion.ts"
2563
- }
2535
+ "default": "'Actions'"
2564
2536
  },
2565
2537
  {
2566
2538
  "kind": "field",
2567
- "name": "setItems",
2568
- "privacy": "private",
2569
- "inheritedFrom": {
2570
- "name": "Accordion",
2571
- "module": "src/accordion/accordion.ts"
2539
+ "name": "open",
2540
+ "type": {
2541
+ "text": "boolean"
2542
+ },
2543
+ "default": "false"
2544
+ },
2545
+ {
2546
+ "kind": "field",
2547
+ "name": "buttonAppearance",
2548
+ "type": {
2549
+ "text": "string"
2572
2550
  }
2573
2551
  },
2574
2552
  {
2575
- "kind": "method",
2576
- "name": "resetItems",
2577
- "privacy": "private",
2578
- "return": {
2579
- "type": {
2580
- "text": "void"
2581
- }
2553
+ "kind": "field",
2554
+ "name": "hideDisabled",
2555
+ "type": {
2556
+ "text": "boolean"
2582
2557
  },
2583
- "inheritedFrom": {
2584
- "name": "Accordion",
2585
- "module": "src/accordion/accordion.ts"
2586
- }
2558
+ "default": "false"
2559
+ },
2560
+ {
2561
+ "kind": "field",
2562
+ "name": "hideMenuSingleOption",
2563
+ "type": {
2564
+ "text": "boolean"
2565
+ },
2566
+ "default": "false"
2587
2567
  },
2588
2568
  {
2589
2569
  "kind": "field",
2590
- "name": "removeItemListeners",
2591
- "privacy": "private",
2592
- "inheritedFrom": {
2593
- "name": "Accordion",
2594
- "module": "src/accordion/accordion.ts"
2570
+ "name": "singleOption",
2571
+ "type": {
2572
+ "text": "ActionMenuItem"
2595
2573
  }
2596
2574
  },
2597
2575
  {
2598
2576
  "kind": "field",
2599
- "name": "activeItemChange",
2600
- "privacy": "private",
2601
- "inheritedFrom": {
2602
- "name": "Accordion",
2603
- "module": "src/accordion/accordion.ts"
2577
+ "name": "actionsMenu",
2578
+ "type": {
2579
+ "text": "HTMLElement"
2604
2580
  }
2605
2581
  },
2606
2582
  {
2607
2583
  "kind": "method",
2608
- "name": "getItemIds",
2609
- "privacy": "private",
2610
- "return": {
2611
- "type": {
2612
- "text": "Array<string | null>"
2584
+ "name": "definitionChanged",
2585
+ "privacy": "protected",
2586
+ "parameters": [
2587
+ {
2588
+ "name": "oldValue",
2589
+ "type": {
2590
+ "text": "any"
2591
+ }
2592
+ },
2593
+ {
2594
+ "name": "newValue",
2595
+ "type": {
2596
+ "text": "any"
2597
+ }
2613
2598
  }
2614
- },
2615
- "inheritedFrom": {
2616
- "name": "Accordion",
2617
- "module": "src/accordion/accordion.ts"
2618
- }
2599
+ ]
2619
2600
  },
2620
2601
  {
2621
2602
  "kind": "method",
2622
- "name": "isSingleExpandMode",
2623
- "privacy": "private",
2624
- "return": {
2625
- "type": {
2626
- "text": "boolean"
2603
+ "name": "openChanged",
2604
+ "privacy": "protected"
2605
+ },
2606
+ {
2607
+ "kind": "method",
2608
+ "name": "toggleActionsMenuVisibility"
2609
+ },
2610
+ {
2611
+ "kind": "method",
2612
+ "name": "onActionMenuItemClick",
2613
+ "parameters": [
2614
+ {
2615
+ "name": "callback",
2616
+ "type": {
2617
+ "text": "(rowData) => void | any"
2618
+ }
2627
2619
  }
2628
- },
2629
- "inheritedFrom": {
2630
- "name": "Accordion",
2631
- "module": "src/accordion/accordion.ts"
2632
- }
2620
+ ]
2633
2621
  },
2634
2622
  {
2635
2623
  "kind": "field",
2636
- "name": "handleItemKeyDown",
2637
- "privacy": "private",
2638
- "inheritedFrom": {
2639
- "name": "Accordion",
2640
- "module": "src/accordion/accordion.ts"
2641
- }
2624
+ "name": "allActions",
2625
+ "type": {
2626
+ "text": "ActionMenuItem[]"
2627
+ },
2628
+ "readonly": true
2642
2629
  },
2643
2630
  {
2644
2631
  "kind": "field",
2645
- "name": "handleItemFocus",
2646
- "privacy": "private",
2647
- "inheritedFrom": {
2648
- "name": "Accordion",
2649
- "module": "src/accordion/accordion.ts"
2650
- }
2632
+ "name": "rowData",
2633
+ "readonly": true
2651
2634
  },
2652
2635
  {
2653
2636
  "kind": "method",
2654
- "name": "adjust",
2655
- "privacy": "private",
2656
- "return": {
2657
- "type": {
2658
- "text": "void"
2659
- }
2660
- },
2637
+ "name": "getLabel",
2661
2638
  "parameters": [
2662
2639
  {
2663
- "name": "adjustment",
2640
+ "name": "name",
2664
2641
  "type": {
2665
- "text": "number"
2642
+ "text": "string | ((rowData: any) => string)"
2666
2643
  }
2667
2644
  }
2668
- ],
2669
- "inheritedFrom": {
2670
- "name": "Accordion",
2671
- "module": "src/accordion/accordion.ts"
2672
- }
2645
+ ]
2673
2646
  },
2674
2647
  {
2675
2648
  "kind": "method",
2676
- "name": "focusItem",
2677
- "privacy": "private",
2678
- "return": {
2679
- "type": {
2680
- "text": "void"
2649
+ "name": "getTemplate",
2650
+ "parameters": [
2651
+ {
2652
+ "name": "prefix",
2653
+ "type": {
2654
+ "text": "string"
2655
+ }
2681
2656
  }
2682
- },
2683
- "inheritedFrom": {
2684
- "name": "Accordion",
2685
- "module": "src/accordion/accordion.ts"
2686
- }
2657
+ ]
2687
2658
  },
2688
2659
  {
2689
2660
  "kind": "field",
@@ -2797,78 +2768,107 @@
2797
2768
  }
2798
2769
  }
2799
2770
  ],
2800
- "events": [
2771
+ "attributes": [
2801
2772
  {
2802
- "description": "Fires a custom 'change' event when the active item changes",
2803
- "name": "change",
2804
- "inheritedFrom": {
2805
- "name": "Accordion",
2806
- "module": "src/accordion/accordion.ts"
2807
- }
2773
+ "name": "is-vertical",
2774
+ "type": {
2775
+ "text": "boolean"
2776
+ },
2777
+ "default": "false",
2778
+ "fieldName": "isVertical"
2779
+ },
2780
+ {
2781
+ "name": "add-default-actions",
2782
+ "type": {
2783
+ "text": "boolean"
2784
+ },
2785
+ "default": "true",
2786
+ "fieldName": "addDefaultActions"
2787
+ },
2788
+ {
2789
+ "name": "auto-close-on-action",
2790
+ "type": {
2791
+ "text": "boolean"
2792
+ },
2793
+ "default": "true",
2794
+ "fieldName": "autoCloseOnAction"
2795
+ },
2796
+ {
2797
+ "name": "name",
2798
+ "type": {
2799
+ "text": "string"
2800
+ },
2801
+ "default": "'Actions'",
2802
+ "fieldName": "name"
2803
+ },
2804
+ {
2805
+ "name": "open",
2806
+ "type": {
2807
+ "text": "boolean"
2808
+ },
2809
+ "default": "false",
2810
+ "fieldName": "open"
2811
+ },
2812
+ {
2813
+ "name": "buttonAppearance",
2814
+ "type": {
2815
+ "text": "string"
2816
+ },
2817
+ "fieldName": "buttonAppearance"
2818
+ },
2819
+ {
2820
+ "name": "hide-disabled",
2821
+ "type": {
2822
+ "text": "boolean"
2823
+ },
2824
+ "default": "false",
2825
+ "fieldName": "hideDisabled"
2826
+ },
2827
+ {
2828
+ "name": "hide-menu-single-option",
2829
+ "type": {
2830
+ "text": "boolean"
2831
+ },
2832
+ "default": "false",
2833
+ "fieldName": "hideMenuSingleOption"
2808
2834
  }
2809
- ]
2810
- },
2811
- {
2812
- "kind": "variable",
2813
- "name": "foundationAccordionShadowOptions",
2814
- "type": {
2815
- "text": "ShadowRootInit"
2816
- },
2817
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2818
- },
2819
- {
2820
- "kind": "variable",
2821
- "name": "defaultAccordionConfig",
2822
- "type": {
2823
- "text": "object"
2835
+ ],
2836
+ "superclass": {
2837
+ "name": "FoundationElement",
2838
+ "package": "@microsoft/fast-foundation"
2824
2839
  },
2825
- "default": "{}"
2840
+ "tagName": "%%prefix%%-actions-menu",
2841
+ "customElement": true
2826
2842
  },
2827
2843
  {
2828
2844
  "kind": "variable",
2829
- "name": "foundationAccordion",
2830
- "description": "The Foundation Accordion",
2845
+ "name": "foundationActionsMenu",
2846
+ "description": "The Foundation Actions Menu",
2831
2847
  "privacy": "public"
2832
2848
  }
2833
2849
  ],
2834
2850
  "exports": [
2835
2851
  {
2836
2852
  "kind": "js",
2837
- "name": "Accordion",
2838
- "declaration": {
2839
- "name": "Accordion",
2840
- "module": "src/accordion/accordion.ts"
2841
- }
2842
- },
2843
- {
2844
- "kind": "js",
2845
- "name": "foundationAccordionShadowOptions",
2846
- "declaration": {
2847
- "name": "foundationAccordionShadowOptions",
2848
- "module": "src/accordion/accordion.ts"
2849
- }
2850
- },
2851
- {
2852
- "kind": "js",
2853
- "name": "defaultAccordionConfig",
2853
+ "name": "ActionsMenu",
2854
2854
  "declaration": {
2855
- "name": "defaultAccordionConfig",
2856
- "module": "src/accordion/accordion.ts"
2855
+ "name": "ActionsMenu",
2856
+ "module": "src/actions-menu/actions-menu.ts"
2857
2857
  }
2858
2858
  },
2859
2859
  {
2860
2860
  "kind": "js",
2861
- "name": "foundationAccordion",
2861
+ "name": "foundationActionsMenu",
2862
2862
  "declaration": {
2863
- "name": "foundationAccordion",
2864
- "module": "src/accordion/accordion.ts"
2863
+ "name": "foundationActionsMenu",
2864
+ "module": "src/actions-menu/actions-menu.ts"
2865
2865
  }
2866
2866
  }
2867
2867
  ]
2868
2868
  },
2869
2869
  {
2870
2870
  "kind": "javascript-module",
2871
- "path": "src/accordion/index.ts",
2871
+ "path": "src/actions-menu/index.ts",
2872
2872
  "declarations": [],
2873
2873
  "exports": [
2874
2874
  {
@@ -2876,7 +2876,7 @@
2876
2876
  "name": "*",
2877
2877
  "declaration": {
2878
2878
  "name": "*",
2879
- "package": "./accordion.template"
2879
+ "package": "./actions-menu.styles"
2880
2880
  }
2881
2881
  },
2882
2882
  {
@@ -2884,7 +2884,7 @@
2884
2884
  "name": "*",
2885
2885
  "declaration": {
2886
2886
  "name": "*",
2887
- "package": "./accordion.styles"
2887
+ "package": "./actions-menu.template"
2888
2888
  }
2889
2889
  },
2890
2890
  {
@@ -2892,7 +2892,7 @@
2892
2892
  "name": "*",
2893
2893
  "declaration": {
2894
2894
  "name": "*",
2895
- "package": "./accordion"
2895
+ "package": "./actions-menu"
2896
2896
  }
2897
2897
  }
2898
2898
  ]