@genesislcap/foundation-ui 14.488.0 → 14.488.1

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,7 +2333,7 @@
2377
2333
  "name": "*",
2378
2334
  "declaration": {
2379
2335
  "name": "*",
2380
- "package": "./values"
2336
+ "package": "./accordion"
2381
2337
  }
2382
2338
  }
2383
2339
  ]
@@ -2993,11 +2949,34 @@
2993
2949
  },
2994
2950
  {
2995
2951
  "kind": "javascript-module",
2996
- "path": "src/accordion/accordion.styles.ts",
2952
+ "path": "src/actions-menu/actions-menu.styles.ts",
2997
2953
  "declarations": [
2998
2954
  {
2999
2955
  "kind": "function",
3000
- "name": "foundationAccordionStyles",
2956
+ "name": "actionsMenuBaseStyles",
2957
+ "return": {
2958
+ "type": {
2959
+ "text": "ElementStyles"
2960
+ }
2961
+ },
2962
+ "parameters": [
2963
+ {
2964
+ "name": "context",
2965
+ "type": {
2966
+ "text": "ElementDefinitionContext"
2967
+ }
2968
+ },
2969
+ {
2970
+ "name": "definition",
2971
+ "type": {
2972
+ "text": "FoundationElementDefinition"
2973
+ }
2974
+ }
2975
+ ]
2976
+ },
2977
+ {
2978
+ "kind": "function",
2979
+ "name": "foundationActionsMenuStyles",
3001
2980
  "return": {
3002
2981
  "type": {
3003
2982
  "text": "ElementStyles"
@@ -3022,277 +3001,269 @@
3022
3001
  "exports": [
3023
3002
  {
3024
3003
  "kind": "js",
3025
- "name": "foundationAccordionStyles",
3004
+ "name": "actionsMenuBaseStyles",
3026
3005
  "declaration": {
3027
- "name": "foundationAccordionStyles",
3028
- "module": "src/accordion/accordion.styles.ts"
3006
+ "name": "actionsMenuBaseStyles",
3007
+ "module": "src/actions-menu/actions-menu.styles.ts"
3008
+ }
3009
+ },
3010
+ {
3011
+ "kind": "js",
3012
+ "name": "foundationActionsMenuStyles",
3013
+ "declaration": {
3014
+ "name": "foundationActionsMenuStyles",
3015
+ "module": "src/actions-menu/actions-menu.styles.ts"
3029
3016
  }
3030
3017
  }
3031
3018
  ]
3032
3019
  },
3033
3020
  {
3034
3021
  "kind": "javascript-module",
3035
- "path": "src/accordion/accordion.template.ts",
3022
+ "path": "src/actions-menu/actions-menu.template.ts",
3036
3023
  "declarations": [
3037
3024
  {
3038
3025
  "kind": "function",
3039
- "name": "foundationAccordionTemplate",
3040
- "return": {
3041
- "type": {
3042
- "text": "ViewTemplate<Accordion>"
3043
- }
3044
- },
3026
+ "name": "menuTemplate",
3045
3027
  "parameters": [
3046
3028
  {
3047
- "name": "context",
3029
+ "name": "prefix",
3048
3030
  "type": {
3049
- "text": "ElementDefinitionContext"
3031
+ "text": "string"
3050
3032
  }
3051
- },
3033
+ }
3034
+ ]
3035
+ },
3036
+ {
3037
+ "kind": "function",
3038
+ "name": "singleOptionTemplate",
3039
+ "parameters": [
3052
3040
  {
3053
- "name": "definition",
3041
+ "name": "prefix",
3054
3042
  "type": {
3055
- "text": "FoundationElementDefinition"
3043
+ "text": "string"
3056
3044
  }
3057
3045
  }
3058
3046
  ]
3047
+ },
3048
+ {
3049
+ "kind": "variable",
3050
+ "name": "foundationActionsMenuTemplate",
3051
+ "type": {
3052
+ "text": "ViewTemplate<ActionsMenu>"
3053
+ },
3054
+ "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`"
3059
3055
  }
3060
3056
  ],
3061
3057
  "exports": [
3062
3058
  {
3063
3059
  "kind": "js",
3064
- "name": "foundationAccordionTemplate",
3060
+ "name": "menuTemplate",
3065
3061
  "declaration": {
3066
- "name": "foundationAccordionTemplate",
3067
- "module": "src/accordion/accordion.template.ts"
3062
+ "name": "menuTemplate",
3063
+ "module": "src/actions-menu/actions-menu.template.ts"
3064
+ }
3065
+ },
3066
+ {
3067
+ "kind": "js",
3068
+ "name": "singleOptionTemplate",
3069
+ "declaration": {
3070
+ "name": "singleOptionTemplate",
3071
+ "module": "src/actions-menu/actions-menu.template.ts"
3072
+ }
3073
+ },
3074
+ {
3075
+ "kind": "js",
3076
+ "name": "foundationActionsMenuTemplate",
3077
+ "declaration": {
3078
+ "name": "foundationActionsMenuTemplate",
3079
+ "module": "src/actions-menu/actions-menu.template.ts"
3068
3080
  }
3069
3081
  }
3070
3082
  ]
3071
3083
  },
3072
3084
  {
3073
3085
  "kind": "javascript-module",
3074
- "path": "src/accordion/accordion.ts",
3086
+ "path": "src/actions-menu/actions-menu.ts",
3075
3087
  "declarations": [
3076
3088
  {
3077
3089
  "kind": "class",
3078
3090
  "description": "",
3079
- "name": "Accordion",
3080
- "superclass": {
3081
- "name": "FASTAccordion",
3082
- "package": "@microsoft/fast-foundation"
3083
- },
3084
- "tagName": "%%prefix%%-accordion",
3085
- "customElement": true,
3086
- "attributes": [
3091
+ "name": "ActionsMenu",
3092
+ "members": [
3087
3093
  {
3088
- "name": "expand-mode",
3094
+ "kind": "field",
3095
+ "name": "actions",
3089
3096
  "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
+ "text": "ActionMenuItem[]"
3097
3098
  }
3098
- }
3099
- ],
3100
- "members": [
3099
+ },
3101
3100
  {
3102
3101
  "kind": "field",
3103
- "name": "expandmode",
3102
+ "name": "isVertical",
3104
3103
  "type": {
3105
- "text": "AccordionExpandMode"
3104
+ "text": "boolean"
3106
3105
  },
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"
3112
- }
3106
+ "default": "false"
3113
3107
  },
3114
3108
  {
3115
3109
  "kind": "field",
3116
- "name": "activeid",
3110
+ "name": "addDefaultActions",
3117
3111
  "type": {
3118
- "text": "string | null"
3112
+ "text": "boolean"
3119
3113
  },
3120
- "privacy": "private",
3121
- "inheritedFrom": {
3122
- "name": "Accordion",
3123
- "module": "src/accordion/accordion.ts"
3124
- }
3114
+ "default": "true"
3125
3115
  },
3126
3116
  {
3127
3117
  "kind": "field",
3128
- "name": "activeItemIndex",
3118
+ "name": "autoCloseOnAction",
3129
3119
  "type": {
3130
- "text": "number"
3120
+ "text": "boolean"
3131
3121
  },
3132
- "privacy": "private",
3133
- "default": "0",
3134
- "inheritedFrom": {
3135
- "name": "Accordion",
3136
- "module": "src/accordion/accordion.ts"
3137
- }
3122
+ "default": "true"
3138
3123
  },
3139
3124
  {
3140
3125
  "kind": "field",
3141
- "name": "accordionIds",
3126
+ "name": "classNames",
3142
3127
  "type": {
3143
- "text": "Array<string | null>"
3144
- },
3145
- "privacy": "private",
3146
- "inheritedFrom": {
3147
- "name": "Accordion",
3148
- "module": "src/accordion/accordion.ts"
3128
+ "text": "string"
3149
3129
  }
3150
3130
  },
3151
3131
  {
3152
3132
  "kind": "field",
3153
- "name": "change",
3154
- "privacy": "private",
3155
- "inheritedFrom": {
3156
- "name": "Accordion",
3157
- "module": "src/accordion/accordion.ts"
3133
+ "name": "definition",
3134
+ "type": {
3135
+ "text": "any"
3158
3136
  }
3159
3137
  },
3160
3138
  {
3161
- "kind": "method",
3162
- "name": "findExpandedItem",
3163
- "privacy": "private",
3164
- "return": {
3165
- "type": {
3166
- "text": "AccordionItem | null"
3167
- }
3139
+ "kind": "field",
3140
+ "name": "name",
3141
+ "type": {
3142
+ "text": "string"
3168
3143
  },
3169
- "inheritedFrom": {
3170
- "name": "Accordion",
3171
- "module": "src/accordion/accordion.ts"
3172
- }
3144
+ "default": "'Actions'"
3173
3145
  },
3174
3146
  {
3175
3147
  "kind": "field",
3176
- "name": "setItems",
3177
- "privacy": "private",
3178
- "inheritedFrom": {
3179
- "name": "Accordion",
3180
- "module": "src/accordion/accordion.ts"
3148
+ "name": "open",
3149
+ "type": {
3150
+ "text": "boolean"
3151
+ },
3152
+ "default": "false"
3153
+ },
3154
+ {
3155
+ "kind": "field",
3156
+ "name": "buttonAppearance",
3157
+ "type": {
3158
+ "text": "string"
3181
3159
  }
3182
3160
  },
3183
3161
  {
3184
- "kind": "method",
3185
- "name": "resetItems",
3186
- "privacy": "private",
3187
- "return": {
3188
- "type": {
3189
- "text": "void"
3190
- }
3162
+ "kind": "field",
3163
+ "name": "hideDisabled",
3164
+ "type": {
3165
+ "text": "boolean"
3191
3166
  },
3192
- "inheritedFrom": {
3193
- "name": "Accordion",
3194
- "module": "src/accordion/accordion.ts"
3195
- }
3167
+ "default": "false"
3168
+ },
3169
+ {
3170
+ "kind": "field",
3171
+ "name": "hideMenuSingleOption",
3172
+ "type": {
3173
+ "text": "boolean"
3174
+ },
3175
+ "default": "false"
3196
3176
  },
3197
3177
  {
3198
3178
  "kind": "field",
3199
- "name": "removeItemListeners",
3200
- "privacy": "private",
3201
- "inheritedFrom": {
3202
- "name": "Accordion",
3203
- "module": "src/accordion/accordion.ts"
3179
+ "name": "singleOption",
3180
+ "type": {
3181
+ "text": "ActionMenuItem"
3204
3182
  }
3205
3183
  },
3206
3184
  {
3207
3185
  "kind": "field",
3208
- "name": "activeItemChange",
3209
- "privacy": "private",
3210
- "inheritedFrom": {
3211
- "name": "Accordion",
3212
- "module": "src/accordion/accordion.ts"
3186
+ "name": "actionsMenu",
3187
+ "type": {
3188
+ "text": "HTMLElement"
3213
3189
  }
3214
3190
  },
3215
3191
  {
3216
3192
  "kind": "method",
3217
- "name": "getItemIds",
3218
- "privacy": "private",
3219
- "return": {
3220
- "type": {
3221
- "text": "Array<string | null>"
3193
+ "name": "definitionChanged",
3194
+ "privacy": "protected",
3195
+ "parameters": [
3196
+ {
3197
+ "name": "oldValue",
3198
+ "type": {
3199
+ "text": "any"
3200
+ }
3201
+ },
3202
+ {
3203
+ "name": "newValue",
3204
+ "type": {
3205
+ "text": "any"
3206
+ }
3222
3207
  }
3223
- },
3224
- "inheritedFrom": {
3225
- "name": "Accordion",
3226
- "module": "src/accordion/accordion.ts"
3227
- }
3208
+ ]
3228
3209
  },
3229
3210
  {
3230
3211
  "kind": "method",
3231
- "name": "isSingleExpandMode",
3232
- "privacy": "private",
3233
- "return": {
3234
- "type": {
3235
- "text": "boolean"
3212
+ "name": "openChanged",
3213
+ "privacy": "protected"
3214
+ },
3215
+ {
3216
+ "kind": "method",
3217
+ "name": "toggleActionsMenuVisibility"
3218
+ },
3219
+ {
3220
+ "kind": "method",
3221
+ "name": "onActionMenuItemClick",
3222
+ "parameters": [
3223
+ {
3224
+ "name": "callback",
3225
+ "type": {
3226
+ "text": "(rowData) => void | any"
3227
+ }
3236
3228
  }
3237
- },
3238
- "inheritedFrom": {
3239
- "name": "Accordion",
3240
- "module": "src/accordion/accordion.ts"
3241
- }
3229
+ ]
3242
3230
  },
3243
3231
  {
3244
3232
  "kind": "field",
3245
- "name": "handleItemKeyDown",
3246
- "privacy": "private",
3247
- "inheritedFrom": {
3248
- "name": "Accordion",
3249
- "module": "src/accordion/accordion.ts"
3250
- }
3233
+ "name": "allActions",
3234
+ "type": {
3235
+ "text": "ActionMenuItem[]"
3236
+ },
3237
+ "readonly": true
3251
3238
  },
3252
3239
  {
3253
3240
  "kind": "field",
3254
- "name": "handleItemFocus",
3255
- "privacy": "private",
3256
- "inheritedFrom": {
3257
- "name": "Accordion",
3258
- "module": "src/accordion/accordion.ts"
3259
- }
3241
+ "name": "rowData",
3242
+ "readonly": true
3260
3243
  },
3261
3244
  {
3262
3245
  "kind": "method",
3263
- "name": "adjust",
3264
- "privacy": "private",
3265
- "return": {
3266
- "type": {
3267
- "text": "void"
3268
- }
3269
- },
3246
+ "name": "getLabel",
3270
3247
  "parameters": [
3271
3248
  {
3272
- "name": "adjustment",
3249
+ "name": "name",
3273
3250
  "type": {
3274
- "text": "number"
3251
+ "text": "string | ((rowData: any) => string)"
3275
3252
  }
3276
3253
  }
3277
- ],
3278
- "inheritedFrom": {
3279
- "name": "Accordion",
3280
- "module": "src/accordion/accordion.ts"
3281
- }
3254
+ ]
3282
3255
  },
3283
3256
  {
3284
3257
  "kind": "method",
3285
- "name": "focusItem",
3286
- "privacy": "private",
3287
- "return": {
3288
- "type": {
3289
- "text": "void"
3258
+ "name": "getTemplate",
3259
+ "parameters": [
3260
+ {
3261
+ "name": "prefix",
3262
+ "type": {
3263
+ "text": "string"
3264
+ }
3290
3265
  }
3291
- },
3292
- "inheritedFrom": {
3293
- "name": "Accordion",
3294
- "module": "src/accordion/accordion.ts"
3295
- }
3266
+ ]
3296
3267
  },
3297
3268
  {
3298
3269
  "kind": "field",
@@ -3406,78 +3377,107 @@
3406
3377
  }
3407
3378
  }
3408
3379
  ],
3409
- "events": [
3380
+ "attributes": [
3410
3381
  {
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
- }
3382
+ "name": "is-vertical",
3383
+ "type": {
3384
+ "text": "boolean"
3385
+ },
3386
+ "default": "false",
3387
+ "fieldName": "isVertical"
3388
+ },
3389
+ {
3390
+ "name": "add-default-actions",
3391
+ "type": {
3392
+ "text": "boolean"
3393
+ },
3394
+ "default": "true",
3395
+ "fieldName": "addDefaultActions"
3396
+ },
3397
+ {
3398
+ "name": "auto-close-on-action",
3399
+ "type": {
3400
+ "text": "boolean"
3401
+ },
3402
+ "default": "true",
3403
+ "fieldName": "autoCloseOnAction"
3404
+ },
3405
+ {
3406
+ "name": "name",
3407
+ "type": {
3408
+ "text": "string"
3409
+ },
3410
+ "default": "'Actions'",
3411
+ "fieldName": "name"
3412
+ },
3413
+ {
3414
+ "name": "open",
3415
+ "type": {
3416
+ "text": "boolean"
3417
+ },
3418
+ "default": "false",
3419
+ "fieldName": "open"
3420
+ },
3421
+ {
3422
+ "name": "buttonAppearance",
3423
+ "type": {
3424
+ "text": "string"
3425
+ },
3426
+ "fieldName": "buttonAppearance"
3427
+ },
3428
+ {
3429
+ "name": "hide-disabled",
3430
+ "type": {
3431
+ "text": "boolean"
3432
+ },
3433
+ "default": "false",
3434
+ "fieldName": "hideDisabled"
3435
+ },
3436
+ {
3437
+ "name": "hide-menu-single-option",
3438
+ "type": {
3439
+ "text": "boolean"
3440
+ },
3441
+ "default": "false",
3442
+ "fieldName": "hideMenuSingleOption"
3417
3443
  }
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"
3444
+ ],
3445
+ "superclass": {
3446
+ "name": "FoundationElement",
3447
+ "package": "@microsoft/fast-foundation"
3433
3448
  },
3434
- "default": "{}"
3449
+ "tagName": "%%prefix%%-actions-menu",
3450
+ "customElement": true
3435
3451
  },
3436
3452
  {
3437
3453
  "kind": "variable",
3438
- "name": "foundationAccordion",
3439
- "description": "The Foundation Accordion",
3454
+ "name": "foundationActionsMenu",
3455
+ "description": "The Foundation Actions Menu",
3440
3456
  "privacy": "public"
3441
3457
  }
3442
3458
  ],
3443
3459
  "exports": [
3444
3460
  {
3445
3461
  "kind": "js",
3446
- "name": "Accordion",
3447
- "declaration": {
3448
- "name": "Accordion",
3449
- "module": "src/accordion/accordion.ts"
3450
- }
3451
- },
3452
- {
3453
- "kind": "js",
3454
- "name": "foundationAccordionShadowOptions",
3455
- "declaration": {
3456
- "name": "foundationAccordionShadowOptions",
3457
- "module": "src/accordion/accordion.ts"
3458
- }
3459
- },
3460
- {
3461
- "kind": "js",
3462
- "name": "defaultAccordionConfig",
3462
+ "name": "ActionsMenu",
3463
3463
  "declaration": {
3464
- "name": "defaultAccordionConfig",
3465
- "module": "src/accordion/accordion.ts"
3464
+ "name": "ActionsMenu",
3465
+ "module": "src/actions-menu/actions-menu.ts"
3466
3466
  }
3467
3467
  },
3468
3468
  {
3469
3469
  "kind": "js",
3470
- "name": "foundationAccordion",
3470
+ "name": "foundationActionsMenu",
3471
3471
  "declaration": {
3472
- "name": "foundationAccordion",
3473
- "module": "src/accordion/accordion.ts"
3472
+ "name": "foundationActionsMenu",
3473
+ "module": "src/actions-menu/actions-menu.ts"
3474
3474
  }
3475
3475
  }
3476
3476
  ]
3477
3477
  },
3478
3478
  {
3479
3479
  "kind": "javascript-module",
3480
- "path": "src/accordion/index.ts",
3480
+ "path": "src/actions-menu/index.ts",
3481
3481
  "declarations": [],
3482
3482
  "exports": [
3483
3483
  {
@@ -3485,7 +3485,7 @@
3485
3485
  "name": "*",
3486
3486
  "declaration": {
3487
3487
  "name": "*",
3488
- "package": "./accordion.template"
3488
+ "package": "./actions-menu.styles"
3489
3489
  }
3490
3490
  },
3491
3491
  {
@@ -3493,7 +3493,7 @@
3493
3493
  "name": "*",
3494
3494
  "declaration": {
3495
3495
  "name": "*",
3496
- "package": "./accordion.styles"
3496
+ "package": "./actions-menu.template"
3497
3497
  }
3498
3498
  },
3499
3499
  {
@@ -3501,7 +3501,7 @@
3501
3501
  "name": "*",
3502
3502
  "declaration": {
3503
3503
  "name": "*",
3504
- "package": "./accordion"
3504
+ "package": "./actions-menu"
3505
3505
  }
3506
3506
  }
3507
3507
  ]