@genesislcap/foundation-ui 15.92.0-GENC-1665.1 → 15.92.0-HT-305.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1493,6 +1493,37 @@
1493
1493
  }
1494
1494
  ]
1495
1495
  },
1496
+ {
1497
+ "kind": "javascript-module",
1498
+ "path": "src/_config/index.ts",
1499
+ "declarations": [],
1500
+ "exports": [
1501
+ {
1502
+ "kind": "js",
1503
+ "name": "*",
1504
+ "declaration": {
1505
+ "name": "*",
1506
+ "package": "./styles"
1507
+ }
1508
+ },
1509
+ {
1510
+ "kind": "js",
1511
+ "name": "*",
1512
+ "declaration": {
1513
+ "name": "*",
1514
+ "package": "./tokens"
1515
+ }
1516
+ },
1517
+ {
1518
+ "kind": "js",
1519
+ "name": "*",
1520
+ "declaration": {
1521
+ "name": "*",
1522
+ "package": "./values"
1523
+ }
1524
+ }
1525
+ ]
1526
+ },
1496
1527
  {
1497
1528
  "kind": "javascript-module",
1498
1529
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1889,42 +1920,11 @@
1889
1920
  },
1890
1921
  {
1891
1922
  "kind": "javascript-module",
1892
- "path": "src/_config/index.ts",
1893
- "declarations": [],
1894
- "exports": [
1895
- {
1896
- "kind": "js",
1897
- "name": "*",
1898
- "declaration": {
1899
- "name": "*",
1900
- "package": "./styles"
1901
- }
1902
- },
1903
- {
1904
- "kind": "js",
1905
- "name": "*",
1906
- "declaration": {
1907
- "name": "*",
1908
- "package": "./tokens"
1909
- }
1910
- },
1911
- {
1912
- "kind": "js",
1913
- "name": "*",
1914
- "declaration": {
1915
- "name": "*",
1916
- "package": "./values"
1917
- }
1918
- }
1919
- ]
1920
- },
1921
- {
1922
- "kind": "javascript-module",
1923
- "path": "src/actions-menu/actions-menu.styles.ts",
1923
+ "path": "src/accordion/accordion.styles.ts",
1924
1924
  "declarations": [
1925
1925
  {
1926
1926
  "kind": "function",
1927
- "name": "actionsMenuBaseStyles",
1927
+ "name": "foundationAccordionStyles",
1928
1928
  "return": {
1929
1929
  "type": {
1930
1930
  "text": "ElementStyles"
@@ -1944,13 +1944,29 @@
1944
1944
  }
1945
1945
  }
1946
1946
  ]
1947
- },
1947
+ }
1948
+ ],
1949
+ "exports": [
1950
+ {
1951
+ "kind": "js",
1952
+ "name": "foundationAccordionStyles",
1953
+ "declaration": {
1954
+ "name": "foundationAccordionStyles",
1955
+ "module": "src/accordion/accordion.styles.ts"
1956
+ }
1957
+ }
1958
+ ]
1959
+ },
1960
+ {
1961
+ "kind": "javascript-module",
1962
+ "path": "src/accordion/accordion.template.ts",
1963
+ "declarations": [
1948
1964
  {
1949
1965
  "kind": "function",
1950
- "name": "foundationActionsMenuStyles",
1966
+ "name": "foundationAccordionTemplate",
1951
1967
  "return": {
1952
1968
  "type": {
1953
- "text": "ElementStyles"
1969
+ "text": "ViewTemplate<Accordion>"
1954
1970
  }
1955
1971
  },
1956
1972
  "parameters": [
@@ -1972,480 +1988,342 @@
1972
1988
  "exports": [
1973
1989
  {
1974
1990
  "kind": "js",
1975
- "name": "actionsMenuBaseStyles",
1976
- "declaration": {
1977
- "name": "actionsMenuBaseStyles",
1978
- "module": "src/actions-menu/actions-menu.styles.ts"
1979
- }
1980
- },
1981
- {
1982
- "kind": "js",
1983
- "name": "foundationActionsMenuStyles",
1984
- "declaration": {
1985
- "name": "foundationActionsMenuStyles",
1986
- "module": "src/actions-menu/actions-menu.styles.ts"
1987
- }
1988
- }
1989
- ]
1990
- },
1991
- {
1992
- "kind": "javascript-module",
1993
- "path": "src/actions-menu/actions-menu.template.ts",
1994
- "declarations": [
1995
- {
1996
- "kind": "variable",
1997
- "name": "menuTemplate"
1998
- },
1999
- {
2000
- "kind": "variable",
2001
- "name": "singleOptionTemplate"
2002
- },
2003
- {
2004
- "kind": "variable",
2005
- "name": "foundationActionsMenuTemplate",
2006
- "type": {
2007
- "text": "ViewTemplate<ActionsMenu>"
2008
- },
2009
- "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`"
2010
- }
2011
- ],
2012
- "exports": [
2013
- {
2014
- "kind": "js",
2015
- "name": "menuTemplate",
2016
- "declaration": {
2017
- "name": "menuTemplate",
2018
- "module": "src/actions-menu/actions-menu.template.ts"
2019
- }
2020
- },
2021
- {
2022
- "kind": "js",
2023
- "name": "singleOptionTemplate",
2024
- "declaration": {
2025
- "name": "singleOptionTemplate",
2026
- "module": "src/actions-menu/actions-menu.template.ts"
2027
- }
2028
- },
2029
- {
2030
- "kind": "js",
2031
- "name": "foundationActionsMenuTemplate",
1991
+ "name": "foundationAccordionTemplate",
2032
1992
  "declaration": {
2033
- "name": "foundationActionsMenuTemplate",
2034
- "module": "src/actions-menu/actions-menu.template.ts"
1993
+ "name": "foundationAccordionTemplate",
1994
+ "module": "src/accordion/accordion.template.ts"
2035
1995
  }
2036
1996
  }
2037
1997
  ]
2038
1998
  },
2039
1999
  {
2040
2000
  "kind": "javascript-module",
2041
- "path": "src/actions-menu/actions-menu.ts",
2001
+ "path": "src/accordion/accordion.ts",
2042
2002
  "declarations": [
2043
2003
  {
2044
2004
  "kind": "class",
2045
2005
  "description": "",
2046
- "name": "ActionsMenu",
2047
- "members": [
2006
+ "name": "Accordion",
2007
+ "superclass": {
2008
+ "name": "FASTAccordion",
2009
+ "package": "@microsoft/fast-foundation"
2010
+ },
2011
+ "tagName": "%%prefix%%-accordion",
2012
+ "customElement": true,
2013
+ "attributes": [
2048
2014
  {
2049
- "kind": "field",
2050
- "name": "actions",
2015
+ "name": "expand-mode",
2051
2016
  "type": {
2052
- "text": "ActionMenuItem[]"
2017
+ "text": "AccordionExpandMode"
2018
+ },
2019
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2020
+ "fieldName": "expandmode",
2021
+ "inheritedFrom": {
2022
+ "name": "Accordion",
2023
+ "module": "src/accordion/accordion.ts"
2053
2024
  }
2054
- },
2025
+ }
2026
+ ],
2027
+ "members": [
2055
2028
  {
2056
2029
  "kind": "field",
2057
- "name": "actionsResolver",
2030
+ "name": "expandmode",
2058
2031
  "type": {
2059
- "text": "ActionMenuItemsResolver | undefined"
2032
+ "text": "AccordionExpandMode"
2060
2033
  },
2061
- "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2034
+ "privacy": "public",
2035
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2036
+ "inheritedFrom": {
2037
+ "name": "Accordion",
2038
+ "module": "src/accordion/accordion.ts"
2039
+ }
2062
2040
  },
2063
2041
  {
2064
2042
  "kind": "field",
2065
- "name": "isVertical",
2043
+ "name": "activeid",
2066
2044
  "type": {
2067
- "text": "boolean"
2045
+ "text": "string | null"
2068
2046
  },
2069
- "default": "false"
2047
+ "privacy": "private",
2048
+ "inheritedFrom": {
2049
+ "name": "Accordion",
2050
+ "module": "src/accordion/accordion.ts"
2051
+ }
2070
2052
  },
2071
2053
  {
2072
2054
  "kind": "field",
2073
- "name": "addDefaultActions",
2055
+ "name": "activeItemIndex",
2074
2056
  "type": {
2075
- "text": "boolean"
2057
+ "text": "number"
2076
2058
  },
2077
- "default": "true"
2059
+ "privacy": "private",
2060
+ "default": "0",
2061
+ "inheritedFrom": {
2062
+ "name": "Accordion",
2063
+ "module": "src/accordion/accordion.ts"
2064
+ }
2078
2065
  },
2079
2066
  {
2080
2067
  "kind": "field",
2081
- "name": "autoCloseOnAction",
2068
+ "name": "accordionIds",
2082
2069
  "type": {
2083
- "text": "boolean"
2070
+ "text": "Array<string | null>"
2084
2071
  },
2085
- "default": "true"
2072
+ "privacy": "private",
2073
+ "inheritedFrom": {
2074
+ "name": "Accordion",
2075
+ "module": "src/accordion/accordion.ts"
2076
+ }
2086
2077
  },
2087
2078
  {
2088
2079
  "kind": "field",
2089
- "name": "classNames",
2090
- "type": {
2091
- "text": "string"
2080
+ "name": "change",
2081
+ "privacy": "private",
2082
+ "inheritedFrom": {
2083
+ "name": "Accordion",
2084
+ "module": "src/accordion/accordion.ts"
2092
2085
  }
2093
2086
  },
2094
2087
  {
2095
- "kind": "field",
2096
- "name": "definition",
2097
- "type": {
2098
- "text": "any"
2088
+ "kind": "method",
2089
+ "name": "findExpandedItem",
2090
+ "privacy": "private",
2091
+ "return": {
2092
+ "type": {
2093
+ "text": "AccordionItem | null"
2094
+ }
2095
+ },
2096
+ "inheritedFrom": {
2097
+ "name": "Accordion",
2098
+ "module": "src/accordion/accordion.ts"
2099
2099
  }
2100
2100
  },
2101
2101
  {
2102
2102
  "kind": "field",
2103
- "name": "name",
2104
- "type": {
2105
- "text": "string"
2106
- },
2107
- "default": "'Actions'"
2103
+ "name": "setItems",
2104
+ "privacy": "private",
2105
+ "inheritedFrom": {
2106
+ "name": "Accordion",
2107
+ "module": "src/accordion/accordion.ts"
2108
+ }
2108
2109
  },
2109
2110
  {
2110
- "kind": "field",
2111
- "name": "iconName",
2112
- "type": {
2113
- "text": "string"
2111
+ "kind": "method",
2112
+ "name": "resetItems",
2113
+ "privacy": "private",
2114
+ "return": {
2115
+ "type": {
2116
+ "text": "void"
2117
+ }
2114
2118
  },
2115
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2119
+ "inheritedFrom": {
2120
+ "name": "Accordion",
2121
+ "module": "src/accordion/accordion.ts"
2122
+ }
2116
2123
  },
2117
2124
  {
2118
2125
  "kind": "field",
2119
- "name": "open",
2120
- "type": {
2121
- "text": "boolean"
2122
- },
2123
- "default": "false"
2126
+ "name": "removeItemListeners",
2127
+ "privacy": "private",
2128
+ "inheritedFrom": {
2129
+ "name": "Accordion",
2130
+ "module": "src/accordion/accordion.ts"
2131
+ }
2124
2132
  },
2125
2133
  {
2126
2134
  "kind": "field",
2127
- "name": "buttonAppearance",
2128
- "type": {
2129
- "text": "string"
2135
+ "name": "activeItemChange",
2136
+ "privacy": "private",
2137
+ "inheritedFrom": {
2138
+ "name": "Accordion",
2139
+ "module": "src/accordion/accordion.ts"
2130
2140
  }
2131
2141
  },
2132
2142
  {
2133
- "kind": "field",
2134
- "name": "hideDisabled",
2135
- "type": {
2136
- "text": "boolean"
2143
+ "kind": "method",
2144
+ "name": "getItemIds",
2145
+ "privacy": "private",
2146
+ "return": {
2147
+ "type": {
2148
+ "text": "Array<string | null>"
2149
+ }
2137
2150
  },
2138
- "default": "false"
2151
+ "inheritedFrom": {
2152
+ "name": "Accordion",
2153
+ "module": "src/accordion/accordion.ts"
2154
+ }
2139
2155
  },
2140
2156
  {
2141
- "kind": "field",
2142
- "name": "hideMenuSingleOption",
2143
- "type": {
2144
- "text": "boolean"
2157
+ "kind": "method",
2158
+ "name": "isSingleExpandMode",
2159
+ "privacy": "private",
2160
+ "return": {
2161
+ "type": {
2162
+ "text": "boolean"
2163
+ }
2145
2164
  },
2146
- "default": "false"
2165
+ "inheritedFrom": {
2166
+ "name": "Accordion",
2167
+ "module": "src/accordion/accordion.ts"
2168
+ }
2147
2169
  },
2148
2170
  {
2149
2171
  "kind": "field",
2150
- "name": "singleOption",
2151
- "type": {
2152
- "text": "ActionMenuItem"
2172
+ "name": "handleItemKeyDown",
2173
+ "privacy": "private",
2174
+ "inheritedFrom": {
2175
+ "name": "Accordion",
2176
+ "module": "src/accordion/accordion.ts"
2153
2177
  }
2154
2178
  },
2155
2179
  {
2156
2180
  "kind": "field",
2157
- "name": "actionsMenu",
2158
- "type": {
2159
- "text": "HTMLElement"
2181
+ "name": "handleItemFocus",
2182
+ "privacy": "private",
2183
+ "inheritedFrom": {
2184
+ "name": "Accordion",
2185
+ "module": "src/accordion/accordion.ts"
2160
2186
  }
2161
2187
  },
2162
2188
  {
2163
- "kind": "field",
2164
- "name": "actionsOpener",
2165
- "type": {
2166
- "text": "HTMLElement"
2189
+ "kind": "method",
2190
+ "name": "adjust",
2191
+ "privacy": "private",
2192
+ "return": {
2193
+ "type": {
2194
+ "text": "void"
2195
+ }
2196
+ },
2197
+ "parameters": [
2198
+ {
2199
+ "name": "adjustment",
2200
+ "type": {
2201
+ "text": "number"
2202
+ }
2203
+ }
2204
+ ],
2205
+ "inheritedFrom": {
2206
+ "name": "Accordion",
2207
+ "module": "src/accordion/accordion.ts"
2167
2208
  }
2168
2209
  },
2169
2210
  {
2170
- "kind": "field",
2171
- "name": "positionTracker",
2172
- "type": {
2173
- "text": "AnchoredPopoverPositionTracker | undefined"
2211
+ "kind": "method",
2212
+ "name": "focusItem",
2213
+ "privacy": "private",
2214
+ "return": {
2215
+ "type": {
2216
+ "text": "void"
2217
+ }
2174
2218
  },
2175
- "privacy": "private"
2219
+ "inheritedFrom": {
2220
+ "name": "Accordion",
2221
+ "module": "src/accordion/accordion.ts"
2222
+ }
2176
2223
  },
2177
2224
  {
2178
2225
  "kind": "field",
2179
- "name": "focusMenuOnOpen",
2226
+ "name": "_presentation",
2180
2227
  "type": {
2181
- "text": "boolean"
2228
+ "text": "ComponentPresentation | null | undefined"
2182
2229
  },
2183
2230
  "privacy": "private",
2184
- "default": "false",
2185
- "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2186
- },
2187
- {
2188
- "kind": "method",
2189
- "name": "updateMenuPosition",
2190
- "privacy": "private"
2231
+ "default": "void 0",
2232
+ "inheritedFrom": {
2233
+ "name": "FoundationElement",
2234
+ "module": "src/foundation-element/foundation-element.ts"
2235
+ }
2191
2236
  },
2192
2237
  {
2193
- "kind": "method",
2194
- "name": "startTrackingPosition",
2195
- "privacy": "private"
2238
+ "kind": "field",
2239
+ "name": "$presentation",
2240
+ "type": {
2241
+ "text": "ComponentPresentation | null"
2242
+ },
2243
+ "privacy": "public",
2244
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2245
+ "inheritedFrom": {
2246
+ "name": "FoundationElement",
2247
+ "module": "src/foundation-element/foundation-element.ts"
2248
+ }
2196
2249
  },
2197
2250
  {
2198
- "kind": "method",
2199
- "name": "stopTrackingPosition",
2200
- "privacy": "private"
2251
+ "kind": "field",
2252
+ "name": "template",
2253
+ "type": {
2254
+ "text": "ElementViewTemplate | void | null"
2255
+ },
2256
+ "privacy": "public",
2257
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2258
+ "inheritedFrom": {
2259
+ "name": "FoundationElement",
2260
+ "module": "src/foundation-element/foundation-element.ts"
2261
+ }
2201
2262
  },
2202
2263
  {
2203
2264
  "kind": "method",
2204
- "name": "definitionChanged",
2265
+ "name": "templateChanged",
2205
2266
  "privacy": "protected",
2206
- "parameters": [
2207
- {
2208
- "name": "oldValue",
2209
- "type": {
2210
- "text": "any"
2211
- }
2212
- },
2213
- {
2214
- "name": "newValue",
2215
- "type": {
2216
- "text": "any"
2217
- }
2267
+ "return": {
2268
+ "type": {
2269
+ "text": "void"
2218
2270
  }
2219
- ]
2220
- },
2221
- {
2222
- "kind": "method",
2223
- "name": "openChanged",
2224
- "privacy": "protected"
2271
+ },
2272
+ "inheritedFrom": {
2273
+ "name": "FoundationElement",
2274
+ "module": "src/foundation-element/foundation-element.ts"
2275
+ }
2225
2276
  },
2226
2277
  {
2227
- "kind": "method",
2228
- "name": "toggleActionsMenuVisibility"
2278
+ "kind": "field",
2279
+ "name": "styles",
2280
+ "type": {
2281
+ "text": "ElementStyles | void | null"
2282
+ },
2283
+ "privacy": "public",
2284
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2285
+ "inheritedFrom": {
2286
+ "name": "FoundationElement",
2287
+ "module": "src/foundation-element/foundation-element.ts"
2288
+ }
2229
2289
  },
2230
2290
  {
2231
2291
  "kind": "method",
2232
- "name": "onPopoverToggle",
2233
- "parameters": [
2234
- {
2235
- "name": "event",
2236
- "type": {
2237
- "text": "Event"
2238
- }
2292
+ "name": "stylesChanged",
2293
+ "privacy": "protected",
2294
+ "return": {
2295
+ "type": {
2296
+ "text": "void"
2239
2297
  }
2240
- ],
2241
- "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2298
+ },
2299
+ "inheritedFrom": {
2300
+ "name": "FoundationElement",
2301
+ "module": "src/foundation-element/foundation-element.ts"
2302
+ }
2242
2303
  },
2243
2304
  {
2244
2305
  "kind": "method",
2245
- "name": "onIconOpenerKeydown",
2306
+ "name": "compose",
2307
+ "privacy": "public",
2308
+ "static": true,
2246
2309
  "return": {
2247
2310
  "type": {
2248
- "text": "boolean"
2311
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2249
2312
  }
2250
2313
  },
2251
2314
  "parameters": [
2252
2315
  {
2253
- "name": "event",
2316
+ "name": "this",
2254
2317
  "type": {
2255
- "text": "KeyboardEvent"
2318
+ "text": "K"
2256
2319
  }
2257
- }
2258
- ],
2259
- "description": "Opens the icon-only opener from the keyboard, as a native button would."
2260
- },
2261
- {
2262
- "kind": "method",
2263
- "name": "onActionMenuItemClick",
2264
- "parameters": [
2320
+ },
2265
2321
  {
2266
- "name": "callback",
2322
+ "name": "elementDefinition",
2267
2323
  "type": {
2268
- "text": "(rowData) => void | any"
2269
- }
2270
- }
2271
- ]
2272
- },
2273
- {
2274
- "kind": "method",
2275
- "name": "isActionDisabled",
2276
- "return": {
2277
- "type": {
2278
- "text": "boolean"
2279
- }
2280
- },
2281
- "parameters": [
2282
- {
2283
- "name": "action",
2284
- "type": {
2285
- "text": "ActionMenuItem"
2286
- }
2287
- }
2288
- ],
2289
- "description": "Resolves an action's `isDisabled` for the current row."
2290
- },
2291
- {
2292
- "kind": "field",
2293
- "name": "resolvedActions",
2294
- "type": {
2295
- "text": "ActionMenuItem[]"
2296
- },
2297
- "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2298
- "readonly": true
2299
- },
2300
- {
2301
- "kind": "field",
2302
- "name": "hasVisibleActions",
2303
- "type": {
2304
- "text": "boolean"
2305
- },
2306
- "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2307
- "readonly": true
2308
- },
2309
- {
2310
- "kind": "field",
2311
- "name": "allActions",
2312
- "type": {
2313
- "text": "ActionMenuItem[]"
2314
- },
2315
- "readonly": true
2316
- },
2317
- {
2318
- "kind": "field",
2319
- "name": "rowData",
2320
- "readonly": true
2321
- },
2322
- {
2323
- "kind": "method",
2324
- "name": "getLabel",
2325
- "parameters": [
2326
- {
2327
- "name": "name",
2328
- "type": {
2329
- "text": "string | ((rowData: any) => string)"
2330
- }
2331
- }
2332
- ]
2333
- },
2334
- {
2335
- "kind": "method",
2336
- "name": "getTemplate",
2337
- "parameters": [
2338
- {
2339
- "name": "prefix",
2340
- "type": {
2341
- "text": "string"
2342
- }
2343
- }
2344
- ]
2345
- },
2346
- {
2347
- "kind": "field",
2348
- "name": "_presentation",
2349
- "type": {
2350
- "text": "ComponentPresentation | null | undefined"
2351
- },
2352
- "privacy": "private",
2353
- "default": "void 0",
2354
- "inheritedFrom": {
2355
- "name": "FoundationElement",
2356
- "module": "src/foundation-element/foundation-element.ts"
2357
- }
2358
- },
2359
- {
2360
- "kind": "field",
2361
- "name": "$presentation",
2362
- "type": {
2363
- "text": "ComponentPresentation | null"
2364
- },
2365
- "privacy": "public",
2366
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2367
- "inheritedFrom": {
2368
- "name": "FoundationElement",
2369
- "module": "src/foundation-element/foundation-element.ts"
2370
- }
2371
- },
2372
- {
2373
- "kind": "field",
2374
- "name": "template",
2375
- "type": {
2376
- "text": "ElementViewTemplate | void | null"
2377
- },
2378
- "privacy": "public",
2379
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2380
- "inheritedFrom": {
2381
- "name": "FoundationElement",
2382
- "module": "src/foundation-element/foundation-element.ts"
2383
- }
2384
- },
2385
- {
2386
- "kind": "method",
2387
- "name": "templateChanged",
2388
- "privacy": "protected",
2389
- "return": {
2390
- "type": {
2391
- "text": "void"
2392
- }
2393
- },
2394
- "inheritedFrom": {
2395
- "name": "FoundationElement",
2396
- "module": "src/foundation-element/foundation-element.ts"
2397
- }
2398
- },
2399
- {
2400
- "kind": "field",
2401
- "name": "styles",
2402
- "type": {
2403
- "text": "ElementStyles | void | null"
2404
- },
2405
- "privacy": "public",
2406
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2407
- "inheritedFrom": {
2408
- "name": "FoundationElement",
2409
- "module": "src/foundation-element/foundation-element.ts"
2410
- }
2411
- },
2412
- {
2413
- "kind": "method",
2414
- "name": "stylesChanged",
2415
- "privacy": "protected",
2416
- "return": {
2417
- "type": {
2418
- "text": "void"
2419
- }
2420
- },
2421
- "inheritedFrom": {
2422
- "name": "FoundationElement",
2423
- "module": "src/foundation-element/foundation-element.ts"
2424
- }
2425
- },
2426
- {
2427
- "kind": "method",
2428
- "name": "compose",
2429
- "privacy": "public",
2430
- "static": true,
2431
- "return": {
2432
- "type": {
2433
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2434
- }
2435
- },
2436
- "parameters": [
2437
- {
2438
- "name": "this",
2439
- "type": {
2440
- "text": "K"
2441
- }
2442
- },
2443
- {
2444
- "name": "elementDefinition",
2445
- "type": {
2446
- "text": "T"
2447
- },
2448
- "description": "The definition of the element to create the registry\nfunction for."
2324
+ "text": "T"
2325
+ },
2326
+ "description": "The definition of the element to create the registry\nfunction for."
2449
2327
  }
2450
2328
  ],
2451
2329
  "description": "Defines an element registry function with a set of element definition defaults.",
@@ -2455,158 +2333,78 @@
2455
2333
  }
2456
2334
  }
2457
2335
  ],
2458
- "attributes": [
2459
- {
2460
- "name": "is-vertical",
2461
- "type": {
2462
- "text": "boolean"
2463
- },
2464
- "default": "false",
2465
- "fieldName": "isVertical"
2466
- },
2467
- {
2468
- "name": "add-default-actions",
2469
- "type": {
2470
- "text": "boolean"
2471
- },
2472
- "default": "true",
2473
- "fieldName": "addDefaultActions"
2474
- },
2475
- {
2476
- "name": "auto-close-on-action",
2477
- "type": {
2478
- "text": "boolean"
2479
- },
2480
- "default": "true",
2481
- "fieldName": "autoCloseOnAction"
2482
- },
2483
- {
2484
- "name": "name",
2485
- "type": {
2486
- "text": "string"
2487
- },
2488
- "default": "'Actions'",
2489
- "fieldName": "name"
2490
- },
2491
- {
2492
- "name": "icon-name",
2493
- "type": {
2494
- "text": "string"
2495
- },
2496
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
2497
- "fieldName": "iconName"
2498
- },
2499
- {
2500
- "name": "open",
2501
- "type": {
2502
- "text": "boolean"
2503
- },
2504
- "default": "false",
2505
- "fieldName": "open"
2506
- },
2507
- {
2508
- "name": "buttonAppearance",
2509
- "type": {
2510
- "text": "string"
2511
- },
2512
- "fieldName": "buttonAppearance"
2513
- },
2514
- {
2515
- "name": "hide-disabled",
2516
- "type": {
2517
- "text": "boolean"
2518
- },
2519
- "default": "false",
2520
- "fieldName": "hideDisabled"
2521
- },
2336
+ "events": [
2522
2337
  {
2523
- "name": "hide-menu-single-option",
2524
- "type": {
2525
- "text": "boolean"
2526
- },
2527
- "default": "false",
2528
- "fieldName": "hideMenuSingleOption"
2338
+ "description": "Fires a custom 'change' event when the active item changes",
2339
+ "name": "change",
2340
+ "inheritedFrom": {
2341
+ "name": "Accordion",
2342
+ "module": "src/accordion/accordion.ts"
2343
+ }
2529
2344
  }
2530
- ],
2531
- "superclass": {
2532
- "name": "FoundationElement",
2533
- "package": "@microsoft/fast-foundation"
2345
+ ]
2346
+ },
2347
+ {
2348
+ "kind": "variable",
2349
+ "name": "foundationAccordionShadowOptions",
2350
+ "type": {
2351
+ "text": "ShadowRootInit"
2534
2352
  },
2535
- "tagName": "%%prefix%%-actions-menu",
2536
- "customElement": true
2353
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2537
2354
  },
2538
2355
  {
2539
2356
  "kind": "variable",
2540
- "name": "foundationActionsMenu",
2541
- "description": "The Foundation Actions Menu",
2357
+ "name": "defaultAccordionConfig",
2358
+ "type": {
2359
+ "text": "object"
2360
+ },
2361
+ "default": "{}"
2362
+ },
2363
+ {
2364
+ "kind": "variable",
2365
+ "name": "foundationAccordion",
2366
+ "description": "The Foundation Accordion",
2542
2367
  "privacy": "public"
2543
2368
  }
2544
2369
  ],
2545
2370
  "exports": [
2546
2371
  {
2547
2372
  "kind": "js",
2548
- "name": "ActionsMenu",
2373
+ "name": "Accordion",
2549
2374
  "declaration": {
2550
- "name": "ActionsMenu",
2551
- "module": "src/actions-menu/actions-menu.ts"
2375
+ "name": "Accordion",
2376
+ "module": "src/accordion/accordion.ts"
2552
2377
  }
2553
2378
  },
2554
2379
  {
2555
2380
  "kind": "js",
2556
- "name": "foundationActionsMenu",
2381
+ "name": "foundationAccordionShadowOptions",
2557
2382
  "declaration": {
2558
- "name": "foundationActionsMenu",
2559
- "module": "src/actions-menu/actions-menu.ts"
2383
+ "name": "foundationAccordionShadowOptions",
2384
+ "module": "src/accordion/accordion.ts"
2560
2385
  }
2561
- }
2562
- ]
2563
- },
2564
- {
2565
- "kind": "javascript-module",
2566
- "path": "src/actions-menu/ag-menu.styles.ts",
2567
- "declarations": [
2386
+ },
2568
2387
  {
2569
- "kind": "function",
2570
- "name": "agMenuStyles",
2571
- "return": {
2572
- "type": {
2573
- "text": ""
2574
- }
2575
- },
2576
- "parameters": [
2577
- {
2578
- "name": "menuSelector",
2579
- "type": {
2580
- "text": "string"
2581
- },
2582
- "description": "Selects the menu surface. May be a selector list."
2583
- },
2584
- {
2585
- "name": "itemSelector",
2586
- "type": {
2587
- "text": "string"
2588
- },
2589
- "description": "Selects a menu item. Must be a single selector, as states are appended to it."
2590
- }
2591
- ],
2592
- "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
2593
- "privacy": "public"
2594
- }
2595
- ],
2596
- "exports": [
2388
+ "kind": "js",
2389
+ "name": "defaultAccordionConfig",
2390
+ "declaration": {
2391
+ "name": "defaultAccordionConfig",
2392
+ "module": "src/accordion/accordion.ts"
2393
+ }
2394
+ },
2597
2395
  {
2598
2396
  "kind": "js",
2599
- "name": "agMenuStyles",
2397
+ "name": "foundationAccordion",
2600
2398
  "declaration": {
2601
- "name": "agMenuStyles",
2602
- "module": "src/actions-menu/ag-menu.styles.ts"
2399
+ "name": "foundationAccordion",
2400
+ "module": "src/accordion/accordion.ts"
2603
2401
  }
2604
2402
  }
2605
2403
  ]
2606
2404
  },
2607
2405
  {
2608
2406
  "kind": "javascript-module",
2609
- "path": "src/actions-menu/index.ts",
2407
+ "path": "src/accordion/index.ts",
2610
2408
  "declarations": [],
2611
2409
  "exports": [
2612
2410
  {
@@ -2614,15 +2412,7 @@
2614
2412
  "name": "*",
2615
2413
  "declaration": {
2616
2414
  "name": "*",
2617
- "package": "./actions-menu.styles"
2618
- }
2619
- },
2620
- {
2621
- "kind": "js",
2622
- "name": "*",
2623
- "declaration": {
2624
- "name": "*",
2625
- "package": "./actions-menu.template"
2415
+ "package": "./accordion.template"
2626
2416
  }
2627
2417
  },
2628
2418
  {
@@ -2630,7 +2420,7 @@
2630
2420
  "name": "*",
2631
2421
  "declaration": {
2632
2422
  "name": "*",
2633
- "package": "./actions-menu"
2423
+ "package": "./accordion.styles"
2634
2424
  }
2635
2425
  },
2636
2426
  {
@@ -2638,18 +2428,41 @@
2638
2428
  "name": "*",
2639
2429
  "declaration": {
2640
2430
  "name": "*",
2641
- "package": "./ag-menu.styles"
2431
+ "package": "./accordion"
2642
2432
  }
2643
2433
  }
2644
2434
  ]
2645
2435
  },
2646
2436
  {
2647
2437
  "kind": "javascript-module",
2648
- "path": "src/accordion/accordion.styles.ts",
2438
+ "path": "src/actions-menu/actions-menu.styles.ts",
2649
2439
  "declarations": [
2650
2440
  {
2651
2441
  "kind": "function",
2652
- "name": "foundationAccordionStyles",
2442
+ "name": "actionsMenuBaseStyles",
2443
+ "return": {
2444
+ "type": {
2445
+ "text": "ElementStyles"
2446
+ }
2447
+ },
2448
+ "parameters": [
2449
+ {
2450
+ "name": "context",
2451
+ "type": {
2452
+ "text": "ElementDefinitionContext"
2453
+ }
2454
+ },
2455
+ {
2456
+ "name": "definition",
2457
+ "type": {
2458
+ "text": "FoundationElementDefinition"
2459
+ }
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "kind": "function",
2465
+ "name": "foundationActionsMenuStyles",
2653
2466
  "return": {
2654
2467
  "type": {
2655
2468
  "text": "ElementStyles"
@@ -2674,277 +2487,376 @@
2674
2487
  "exports": [
2675
2488
  {
2676
2489
  "kind": "js",
2677
- "name": "foundationAccordionStyles",
2490
+ "name": "actionsMenuBaseStyles",
2678
2491
  "declaration": {
2679
- "name": "foundationAccordionStyles",
2680
- "module": "src/accordion/accordion.styles.ts"
2492
+ "name": "actionsMenuBaseStyles",
2493
+ "module": "src/actions-menu/actions-menu.styles.ts"
2494
+ }
2495
+ },
2496
+ {
2497
+ "kind": "js",
2498
+ "name": "foundationActionsMenuStyles",
2499
+ "declaration": {
2500
+ "name": "foundationActionsMenuStyles",
2501
+ "module": "src/actions-menu/actions-menu.styles.ts"
2681
2502
  }
2682
2503
  }
2683
2504
  ]
2684
2505
  },
2685
2506
  {
2686
2507
  "kind": "javascript-module",
2687
- "path": "src/accordion/accordion.template.ts",
2508
+ "path": "src/actions-menu/actions-menu.template.ts",
2688
2509
  "declarations": [
2689
2510
  {
2690
- "kind": "function",
2691
- "name": "foundationAccordionTemplate",
2692
- "return": {
2693
- "type": {
2694
- "text": "ViewTemplate<Accordion>"
2695
- }
2511
+ "kind": "variable",
2512
+ "name": "menuTemplate"
2513
+ },
2514
+ {
2515
+ "kind": "variable",
2516
+ "name": "singleOptionTemplate"
2517
+ },
2518
+ {
2519
+ "kind": "variable",
2520
+ "name": "foundationActionsMenuTemplate",
2521
+ "type": {
2522
+ "text": "ViewTemplate<ActionsMenu>"
2696
2523
  },
2697
- "parameters": [
2524
+ "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`"
2525
+ }
2526
+ ],
2527
+ "exports": [
2528
+ {
2529
+ "kind": "js",
2530
+ "name": "menuTemplate",
2531
+ "declaration": {
2532
+ "name": "menuTemplate",
2533
+ "module": "src/actions-menu/actions-menu.template.ts"
2534
+ }
2535
+ },
2536
+ {
2537
+ "kind": "js",
2538
+ "name": "singleOptionTemplate",
2539
+ "declaration": {
2540
+ "name": "singleOptionTemplate",
2541
+ "module": "src/actions-menu/actions-menu.template.ts"
2542
+ }
2543
+ },
2544
+ {
2545
+ "kind": "js",
2546
+ "name": "foundationActionsMenuTemplate",
2547
+ "declaration": {
2548
+ "name": "foundationActionsMenuTemplate",
2549
+ "module": "src/actions-menu/actions-menu.template.ts"
2550
+ }
2551
+ }
2552
+ ]
2553
+ },
2554
+ {
2555
+ "kind": "javascript-module",
2556
+ "path": "src/actions-menu/actions-menu.ts",
2557
+ "declarations": [
2558
+ {
2559
+ "kind": "class",
2560
+ "description": "",
2561
+ "name": "ActionsMenu",
2562
+ "members": [
2563
+ {
2564
+ "kind": "field",
2565
+ "name": "actions",
2566
+ "type": {
2567
+ "text": "ActionMenuItem[]"
2568
+ }
2569
+ },
2570
+ {
2571
+ "kind": "field",
2572
+ "name": "actionsResolver",
2573
+ "type": {
2574
+ "text": "ActionMenuItemsResolver | undefined"
2575
+ },
2576
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2577
+ },
2578
+ {
2579
+ "kind": "field",
2580
+ "name": "isVertical",
2581
+ "type": {
2582
+ "text": "boolean"
2583
+ },
2584
+ "default": "false"
2585
+ },
2586
+ {
2587
+ "kind": "field",
2588
+ "name": "addDefaultActions",
2589
+ "type": {
2590
+ "text": "boolean"
2591
+ },
2592
+ "default": "true"
2593
+ },
2594
+ {
2595
+ "kind": "field",
2596
+ "name": "autoCloseOnAction",
2597
+ "type": {
2598
+ "text": "boolean"
2599
+ },
2600
+ "default": "true"
2601
+ },
2602
+ {
2603
+ "kind": "field",
2604
+ "name": "classNames",
2605
+ "type": {
2606
+ "text": "string"
2607
+ }
2608
+ },
2609
+ {
2610
+ "kind": "field",
2611
+ "name": "definition",
2612
+ "type": {
2613
+ "text": "any"
2614
+ }
2615
+ },
2616
+ {
2617
+ "kind": "field",
2618
+ "name": "name",
2619
+ "type": {
2620
+ "text": "string"
2621
+ },
2622
+ "default": "'Actions'"
2623
+ },
2624
+ {
2625
+ "kind": "field",
2626
+ "name": "iconName",
2627
+ "type": {
2628
+ "text": "string"
2629
+ },
2630
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2631
+ },
2698
2632
  {
2699
- "name": "context",
2633
+ "kind": "field",
2634
+ "name": "open",
2700
2635
  "type": {
2701
- "text": "ElementDefinitionContext"
2702
- }
2636
+ "text": "boolean"
2637
+ },
2638
+ "default": "false"
2703
2639
  },
2704
2640
  {
2705
- "name": "definition",
2641
+ "kind": "field",
2642
+ "name": "buttonAppearance",
2706
2643
  "type": {
2707
- "text": "FoundationElementDefinition"
2644
+ "text": "string"
2708
2645
  }
2709
- }
2710
- ]
2711
- }
2712
- ],
2713
- "exports": [
2714
- {
2715
- "kind": "js",
2716
- "name": "foundationAccordionTemplate",
2717
- "declaration": {
2718
- "name": "foundationAccordionTemplate",
2719
- "module": "src/accordion/accordion.template.ts"
2720
- }
2721
- }
2722
- ]
2723
- },
2724
- {
2725
- "kind": "javascript-module",
2726
- "path": "src/accordion/accordion.ts",
2727
- "declarations": [
2728
- {
2729
- "kind": "class",
2730
- "description": "",
2731
- "name": "Accordion",
2732
- "superclass": {
2733
- "name": "FASTAccordion",
2734
- "package": "@microsoft/fast-foundation"
2735
- },
2736
- "tagName": "%%prefix%%-accordion",
2737
- "customElement": true,
2738
- "attributes": [
2646
+ },
2739
2647
  {
2740
- "name": "expand-mode",
2648
+ "kind": "field",
2649
+ "name": "hideDisabled",
2741
2650
  "type": {
2742
- "text": "AccordionExpandMode"
2651
+ "text": "boolean"
2743
2652
  },
2744
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2745
- "fieldName": "expandmode",
2746
- "inheritedFrom": {
2747
- "name": "Accordion",
2748
- "module": "src/accordion/accordion.ts"
2749
- }
2750
- }
2751
- ],
2752
- "members": [
2653
+ "default": "false"
2654
+ },
2753
2655
  {
2754
2656
  "kind": "field",
2755
- "name": "expandmode",
2657
+ "name": "hideMenuSingleOption",
2756
2658
  "type": {
2757
- "text": "AccordionExpandMode"
2659
+ "text": "boolean"
2758
2660
  },
2759
- "privacy": "public",
2760
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2761
- "inheritedFrom": {
2762
- "name": "Accordion",
2763
- "module": "src/accordion/accordion.ts"
2661
+ "default": "false"
2662
+ },
2663
+ {
2664
+ "kind": "field",
2665
+ "name": "singleOption",
2666
+ "type": {
2667
+ "text": "ActionMenuItem"
2764
2668
  }
2765
2669
  },
2766
2670
  {
2767
2671
  "kind": "field",
2768
- "name": "activeid",
2672
+ "name": "actionsMenu",
2769
2673
  "type": {
2770
- "text": "string | null"
2771
- },
2772
- "privacy": "private",
2773
- "inheritedFrom": {
2774
- "name": "Accordion",
2775
- "module": "src/accordion/accordion.ts"
2674
+ "text": "HTMLElement"
2776
2675
  }
2777
2676
  },
2778
2677
  {
2779
2678
  "kind": "field",
2780
- "name": "activeItemIndex",
2679
+ "name": "actionsOpener",
2781
2680
  "type": {
2782
- "text": "number"
2783
- },
2784
- "privacy": "private",
2785
- "default": "0",
2786
- "inheritedFrom": {
2787
- "name": "Accordion",
2788
- "module": "src/accordion/accordion.ts"
2681
+ "text": "HTMLElement"
2789
2682
  }
2790
2683
  },
2791
2684
  {
2792
2685
  "kind": "field",
2793
- "name": "accordionIds",
2686
+ "name": "positionTracker",
2794
2687
  "type": {
2795
- "text": "Array<string | null>"
2688
+ "text": "AnchoredPopoverPositionTracker | undefined"
2796
2689
  },
2797
- "privacy": "private",
2798
- "inheritedFrom": {
2799
- "name": "Accordion",
2800
- "module": "src/accordion/accordion.ts"
2801
- }
2690
+ "privacy": "private"
2802
2691
  },
2803
2692
  {
2804
2693
  "kind": "field",
2805
- "name": "change",
2694
+ "name": "focusMenuOnOpen",
2695
+ "type": {
2696
+ "text": "boolean"
2697
+ },
2806
2698
  "privacy": "private",
2807
- "inheritedFrom": {
2808
- "name": "Accordion",
2809
- "module": "src/accordion/accordion.ts"
2810
- }
2699
+ "default": "false",
2700
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2811
2701
  },
2812
2702
  {
2813
2703
  "kind": "method",
2814
- "name": "findExpandedItem",
2815
- "privacy": "private",
2816
- "return": {
2817
- "type": {
2818
- "text": "AccordionItem | null"
2704
+ "name": "updateMenuPosition",
2705
+ "privacy": "private"
2706
+ },
2707
+ {
2708
+ "kind": "method",
2709
+ "name": "startTrackingPosition",
2710
+ "privacy": "private"
2711
+ },
2712
+ {
2713
+ "kind": "method",
2714
+ "name": "stopTrackingPosition",
2715
+ "privacy": "private"
2716
+ },
2717
+ {
2718
+ "kind": "method",
2719
+ "name": "definitionChanged",
2720
+ "privacy": "protected",
2721
+ "parameters": [
2722
+ {
2723
+ "name": "oldValue",
2724
+ "type": {
2725
+ "text": "any"
2726
+ }
2727
+ },
2728
+ {
2729
+ "name": "newValue",
2730
+ "type": {
2731
+ "text": "any"
2732
+ }
2819
2733
  }
2820
- },
2821
- "inheritedFrom": {
2822
- "name": "Accordion",
2823
- "module": "src/accordion/accordion.ts"
2824
- }
2734
+ ]
2825
2735
  },
2826
2736
  {
2827
- "kind": "field",
2828
- "name": "setItems",
2829
- "privacy": "private",
2830
- "inheritedFrom": {
2831
- "name": "Accordion",
2832
- "module": "src/accordion/accordion.ts"
2833
- }
2737
+ "kind": "method",
2738
+ "name": "openChanged",
2739
+ "privacy": "protected"
2834
2740
  },
2835
2741
  {
2836
2742
  "kind": "method",
2837
- "name": "resetItems",
2838
- "privacy": "private",
2743
+ "name": "toggleActionsMenuVisibility"
2744
+ },
2745
+ {
2746
+ "kind": "method",
2747
+ "name": "onPopoverToggle",
2748
+ "parameters": [
2749
+ {
2750
+ "name": "event",
2751
+ "type": {
2752
+ "text": "Event"
2753
+ }
2754
+ }
2755
+ ],
2756
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2757
+ },
2758
+ {
2759
+ "kind": "method",
2760
+ "name": "onIconOpenerKeydown",
2839
2761
  "return": {
2840
2762
  "type": {
2841
- "text": "void"
2763
+ "text": "boolean"
2842
2764
  }
2843
2765
  },
2844
- "inheritedFrom": {
2845
- "name": "Accordion",
2846
- "module": "src/accordion/accordion.ts"
2847
- }
2848
- },
2849
- {
2850
- "kind": "field",
2851
- "name": "removeItemListeners",
2852
- "privacy": "private",
2853
- "inheritedFrom": {
2854
- "name": "Accordion",
2855
- "module": "src/accordion/accordion.ts"
2856
- }
2766
+ "parameters": [
2767
+ {
2768
+ "name": "event",
2769
+ "type": {
2770
+ "text": "KeyboardEvent"
2771
+ }
2772
+ }
2773
+ ],
2774
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2857
2775
  },
2858
2776
  {
2859
- "kind": "field",
2860
- "name": "activeItemChange",
2861
- "privacy": "private",
2862
- "inheritedFrom": {
2863
- "name": "Accordion",
2864
- "module": "src/accordion/accordion.ts"
2865
- }
2777
+ "kind": "method",
2778
+ "name": "onActionMenuItemClick",
2779
+ "parameters": [
2780
+ {
2781
+ "name": "callback",
2782
+ "type": {
2783
+ "text": "(rowData) => void | any"
2784
+ }
2785
+ }
2786
+ ]
2866
2787
  },
2867
2788
  {
2868
2789
  "kind": "method",
2869
- "name": "getItemIds",
2870
- "privacy": "private",
2790
+ "name": "isActionDisabled",
2871
2791
  "return": {
2872
2792
  "type": {
2873
- "text": "Array<string | null>"
2793
+ "text": "boolean"
2874
2794
  }
2875
2795
  },
2876
- "inheritedFrom": {
2877
- "name": "Accordion",
2878
- "module": "src/accordion/accordion.ts"
2879
- }
2796
+ "parameters": [
2797
+ {
2798
+ "name": "action",
2799
+ "type": {
2800
+ "text": "ActionMenuItem"
2801
+ }
2802
+ }
2803
+ ],
2804
+ "description": "Resolves an action's `isDisabled` for the current row."
2805
+ },
2806
+ {
2807
+ "kind": "field",
2808
+ "name": "resolvedActions",
2809
+ "type": {
2810
+ "text": "ActionMenuItem[]"
2811
+ },
2812
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2813
+ "readonly": true
2880
2814
  },
2881
2815
  {
2882
- "kind": "method",
2883
- "name": "isSingleExpandMode",
2884
- "privacy": "private",
2885
- "return": {
2886
- "type": {
2887
- "text": "boolean"
2888
- }
2816
+ "kind": "field",
2817
+ "name": "hasVisibleActions",
2818
+ "type": {
2819
+ "text": "boolean"
2889
2820
  },
2890
- "inheritedFrom": {
2891
- "name": "Accordion",
2892
- "module": "src/accordion/accordion.ts"
2893
- }
2821
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2822
+ "readonly": true
2894
2823
  },
2895
2824
  {
2896
2825
  "kind": "field",
2897
- "name": "handleItemKeyDown",
2898
- "privacy": "private",
2899
- "inheritedFrom": {
2900
- "name": "Accordion",
2901
- "module": "src/accordion/accordion.ts"
2902
- }
2826
+ "name": "allActions",
2827
+ "type": {
2828
+ "text": "ActionMenuItem[]"
2829
+ },
2830
+ "readonly": true
2903
2831
  },
2904
2832
  {
2905
2833
  "kind": "field",
2906
- "name": "handleItemFocus",
2907
- "privacy": "private",
2908
- "inheritedFrom": {
2909
- "name": "Accordion",
2910
- "module": "src/accordion/accordion.ts"
2911
- }
2834
+ "name": "rowData",
2835
+ "readonly": true
2912
2836
  },
2913
2837
  {
2914
2838
  "kind": "method",
2915
- "name": "adjust",
2916
- "privacy": "private",
2917
- "return": {
2918
- "type": {
2919
- "text": "void"
2920
- }
2921
- },
2839
+ "name": "getLabel",
2922
2840
  "parameters": [
2923
2841
  {
2924
- "name": "adjustment",
2842
+ "name": "name",
2925
2843
  "type": {
2926
- "text": "number"
2844
+ "text": "string | ((rowData: any) => string)"
2927
2845
  }
2928
2846
  }
2929
- ],
2930
- "inheritedFrom": {
2931
- "name": "Accordion",
2932
- "module": "src/accordion/accordion.ts"
2933
- }
2847
+ ]
2934
2848
  },
2935
2849
  {
2936
2850
  "kind": "method",
2937
- "name": "focusItem",
2938
- "privacy": "private",
2939
- "return": {
2940
- "type": {
2941
- "text": "void"
2851
+ "name": "getTemplate",
2852
+ "parameters": [
2853
+ {
2854
+ "name": "prefix",
2855
+ "type": {
2856
+ "text": "string"
2857
+ }
2942
2858
  }
2943
- },
2944
- "inheritedFrom": {
2945
- "name": "Accordion",
2946
- "module": "src/accordion/accordion.ts"
2947
- }
2859
+ ]
2948
2860
  },
2949
2861
  {
2950
2862
  "kind": "field",
@@ -3058,78 +2970,158 @@
3058
2970
  }
3059
2971
  }
3060
2972
  ],
3061
- "events": [
2973
+ "attributes": [
3062
2974
  {
3063
- "description": "Fires a custom 'change' event when the active item changes",
3064
- "name": "change",
3065
- "inheritedFrom": {
3066
- "name": "Accordion",
3067
- "module": "src/accordion/accordion.ts"
3068
- }
2975
+ "name": "is-vertical",
2976
+ "type": {
2977
+ "text": "boolean"
2978
+ },
2979
+ "default": "false",
2980
+ "fieldName": "isVertical"
2981
+ },
2982
+ {
2983
+ "name": "add-default-actions",
2984
+ "type": {
2985
+ "text": "boolean"
2986
+ },
2987
+ "default": "true",
2988
+ "fieldName": "addDefaultActions"
2989
+ },
2990
+ {
2991
+ "name": "auto-close-on-action",
2992
+ "type": {
2993
+ "text": "boolean"
2994
+ },
2995
+ "default": "true",
2996
+ "fieldName": "autoCloseOnAction"
2997
+ },
2998
+ {
2999
+ "name": "name",
3000
+ "type": {
3001
+ "text": "string"
3002
+ },
3003
+ "default": "'Actions'",
3004
+ "fieldName": "name"
3005
+ },
3006
+ {
3007
+ "name": "icon-name",
3008
+ "type": {
3009
+ "text": "string"
3010
+ },
3011
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3012
+ "fieldName": "iconName"
3013
+ },
3014
+ {
3015
+ "name": "open",
3016
+ "type": {
3017
+ "text": "boolean"
3018
+ },
3019
+ "default": "false",
3020
+ "fieldName": "open"
3021
+ },
3022
+ {
3023
+ "name": "buttonAppearance",
3024
+ "type": {
3025
+ "text": "string"
3026
+ },
3027
+ "fieldName": "buttonAppearance"
3028
+ },
3029
+ {
3030
+ "name": "hide-disabled",
3031
+ "type": {
3032
+ "text": "boolean"
3033
+ },
3034
+ "default": "false",
3035
+ "fieldName": "hideDisabled"
3036
+ },
3037
+ {
3038
+ "name": "hide-menu-single-option",
3039
+ "type": {
3040
+ "text": "boolean"
3041
+ },
3042
+ "default": "false",
3043
+ "fieldName": "hideMenuSingleOption"
3069
3044
  }
3070
- ]
3071
- },
3072
- {
3073
- "kind": "variable",
3074
- "name": "foundationAccordionShadowOptions",
3075
- "type": {
3076
- "text": "ShadowRootInit"
3077
- },
3078
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3079
- },
3080
- {
3081
- "kind": "variable",
3082
- "name": "defaultAccordionConfig",
3083
- "type": {
3084
- "text": "object"
3045
+ ],
3046
+ "superclass": {
3047
+ "name": "FoundationElement",
3048
+ "package": "@microsoft/fast-foundation"
3085
3049
  },
3086
- "default": "{}"
3050
+ "tagName": "%%prefix%%-actions-menu",
3051
+ "customElement": true
3087
3052
  },
3088
3053
  {
3089
3054
  "kind": "variable",
3090
- "name": "foundationAccordion",
3091
- "description": "The Foundation Accordion",
3055
+ "name": "foundationActionsMenu",
3056
+ "description": "The Foundation Actions Menu",
3092
3057
  "privacy": "public"
3093
3058
  }
3094
3059
  ],
3095
3060
  "exports": [
3096
3061
  {
3097
3062
  "kind": "js",
3098
- "name": "Accordion",
3063
+ "name": "ActionsMenu",
3099
3064
  "declaration": {
3100
- "name": "Accordion",
3101
- "module": "src/accordion/accordion.ts"
3065
+ "name": "ActionsMenu",
3066
+ "module": "src/actions-menu/actions-menu.ts"
3102
3067
  }
3103
3068
  },
3104
3069
  {
3105
3070
  "kind": "js",
3106
- "name": "foundationAccordionShadowOptions",
3071
+ "name": "foundationActionsMenu",
3107
3072
  "declaration": {
3108
- "name": "foundationAccordionShadowOptions",
3109
- "module": "src/accordion/accordion.ts"
3073
+ "name": "foundationActionsMenu",
3074
+ "module": "src/actions-menu/actions-menu.ts"
3110
3075
  }
3111
- },
3076
+ }
3077
+ ]
3078
+ },
3079
+ {
3080
+ "kind": "javascript-module",
3081
+ "path": "src/actions-menu/ag-menu.styles.ts",
3082
+ "declarations": [
3112
3083
  {
3113
- "kind": "js",
3114
- "name": "defaultAccordionConfig",
3115
- "declaration": {
3116
- "name": "defaultAccordionConfig",
3117
- "module": "src/accordion/accordion.ts"
3118
- }
3119
- },
3084
+ "kind": "function",
3085
+ "name": "agMenuStyles",
3086
+ "return": {
3087
+ "type": {
3088
+ "text": ""
3089
+ }
3090
+ },
3091
+ "parameters": [
3092
+ {
3093
+ "name": "menuSelector",
3094
+ "type": {
3095
+ "text": "string"
3096
+ },
3097
+ "description": "Selects the menu surface. May be a selector list."
3098
+ },
3099
+ {
3100
+ "name": "itemSelector",
3101
+ "type": {
3102
+ "text": "string"
3103
+ },
3104
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3105
+ }
3106
+ ],
3107
+ "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
3108
+ "privacy": "public"
3109
+ }
3110
+ ],
3111
+ "exports": [
3120
3112
  {
3121
3113
  "kind": "js",
3122
- "name": "foundationAccordion",
3114
+ "name": "agMenuStyles",
3123
3115
  "declaration": {
3124
- "name": "foundationAccordion",
3125
- "module": "src/accordion/accordion.ts"
3116
+ "name": "agMenuStyles",
3117
+ "module": "src/actions-menu/ag-menu.styles.ts"
3126
3118
  }
3127
3119
  }
3128
3120
  ]
3129
3121
  },
3130
3122
  {
3131
3123
  "kind": "javascript-module",
3132
- "path": "src/accordion/index.ts",
3124
+ "path": "src/actions-menu/index.ts",
3133
3125
  "declarations": [],
3134
3126
  "exports": [
3135
3127
  {
@@ -3137,7 +3129,7 @@
3137
3129
  "name": "*",
3138
3130
  "declaration": {
3139
3131
  "name": "*",
3140
- "package": "./accordion.template"
3132
+ "package": "./actions-menu.styles"
3141
3133
  }
3142
3134
  },
3143
3135
  {
@@ -3145,7 +3137,7 @@
3145
3137
  "name": "*",
3146
3138
  "declaration": {
3147
3139
  "name": "*",
3148
- "package": "./accordion.styles"
3140
+ "package": "./actions-menu.template"
3149
3141
  }
3150
3142
  },
3151
3143
  {
@@ -3153,7 +3145,15 @@
3153
3145
  "name": "*",
3154
3146
  "declaration": {
3155
3147
  "name": "*",
3156
- "package": "./accordion"
3148
+ "package": "./actions-menu"
3149
+ }
3150
+ },
3151
+ {
3152
+ "kind": "js",
3153
+ "name": "*",
3154
+ "declaration": {
3155
+ "name": "*",
3156
+ "package": "./ag-menu.styles"
3157
3157
  }
3158
3158
  }
3159
3159
  ]