@genesislcap/foundation-ui 14.459.0 → 14.460.0

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