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