@genesislcap/foundation-ui 15.47.0 → 15.48.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.
@@ -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/accordion.styles.ts",
@@ -2010,65 +2041,11 @@
2010
2041
  },
2011
2042
  {
2012
2043
  "kind": "javascript-module",
2013
- "path": "src/_config/index.ts",
2014
- "declarations": [],
2015
- "exports": [
2016
- {
2017
- "kind": "js",
2018
- "name": "*",
2019
- "declaration": {
2020
- "name": "*",
2021
- "package": "./styles"
2022
- }
2023
- },
2024
- {
2025
- "kind": "js",
2026
- "name": "*",
2027
- "declaration": {
2028
- "name": "*",
2029
- "package": "./tokens"
2030
- }
2031
- },
2032
- {
2033
- "kind": "js",
2034
- "name": "*",
2035
- "declaration": {
2036
- "name": "*",
2037
- "package": "./values"
2038
- }
2039
- }
2040
- ]
2041
- },
2042
- {
2043
- "kind": "javascript-module",
2044
- "path": "src/actions-menu/actions-menu.styles.ts",
2044
+ "path": "src/accordion-item/accordion-item.styles.ts",
2045
2045
  "declarations": [
2046
2046
  {
2047
2047
  "kind": "function",
2048
- "name": "actionsMenuBaseStyles",
2049
- "return": {
2050
- "type": {
2051
- "text": "ElementStyles"
2052
- }
2053
- },
2054
- "parameters": [
2055
- {
2056
- "name": "context",
2057
- "type": {
2058
- "text": "ElementDefinitionContext"
2059
- }
2060
- },
2061
- {
2062
- "name": "definition",
2063
- "type": {
2064
- "text": "FoundationElementDefinition"
2065
- }
2066
- }
2067
- ]
2068
- },
2069
- {
2070
- "kind": "function",
2071
- "name": "foundationActionsMenuStyles",
2048
+ "name": "foundationAccordionItemStyles",
2072
2049
  "return": {
2073
2050
  "type": {
2074
2051
  "text": "ElementStyles"
@@ -2093,294 +2070,169 @@
2093
2070
  "exports": [
2094
2071
  {
2095
2072
  "kind": "js",
2096
- "name": "actionsMenuBaseStyles",
2097
- "declaration": {
2098
- "name": "actionsMenuBaseStyles",
2099
- "module": "src/actions-menu/actions-menu.styles.ts"
2100
- }
2101
- },
2102
- {
2103
- "kind": "js",
2104
- "name": "foundationActionsMenuStyles",
2073
+ "name": "foundationAccordionItemStyles",
2105
2074
  "declaration": {
2106
- "name": "foundationActionsMenuStyles",
2107
- "module": "src/actions-menu/actions-menu.styles.ts"
2075
+ "name": "foundationAccordionItemStyles",
2076
+ "module": "src/accordion-item/accordion-item.styles.ts"
2108
2077
  }
2109
2078
  }
2110
2079
  ]
2111
2080
  },
2112
2081
  {
2113
2082
  "kind": "javascript-module",
2114
- "path": "src/actions-menu/actions-menu.template.ts",
2083
+ "path": "src/accordion-item/accordion-item.template.ts",
2115
2084
  "declarations": [
2116
2085
  {
2117
2086
  "kind": "function",
2118
- "name": "menuTemplate",
2087
+ "name": "foundationAccordionItemTemplate",
2088
+ "return": {
2089
+ "type": {
2090
+ "text": "ViewTemplate<AccordionItem>"
2091
+ }
2092
+ },
2119
2093
  "parameters": [
2120
2094
  {
2121
- "name": "prefix",
2095
+ "name": "context",
2122
2096
  "type": {
2123
- "text": "string"
2097
+ "text": "ElementDefinitionContext"
2124
2098
  }
2125
- }
2126
- ]
2127
- },
2128
- {
2129
- "kind": "function",
2130
- "name": "singleOptionTemplate",
2131
- "parameters": [
2099
+ },
2132
2100
  {
2133
- "name": "prefix",
2101
+ "name": "definition",
2134
2102
  "type": {
2135
- "text": "string"
2103
+ "text": "FoundationElementDefinition"
2136
2104
  }
2137
2105
  }
2138
2106
  ]
2139
- },
2140
- {
2141
- "kind": "variable",
2142
- "name": "foundationActionsMenuTemplate",
2143
- "type": {
2144
- "text": "ViewTemplate<ActionsMenu>"
2145
- },
2146
- "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`"
2147
2107
  }
2148
2108
  ],
2149
2109
  "exports": [
2150
2110
  {
2151
2111
  "kind": "js",
2152
- "name": "menuTemplate",
2153
- "declaration": {
2154
- "name": "menuTemplate",
2155
- "module": "src/actions-menu/actions-menu.template.ts"
2156
- }
2157
- },
2158
- {
2159
- "kind": "js",
2160
- "name": "singleOptionTemplate",
2161
- "declaration": {
2162
- "name": "singleOptionTemplate",
2163
- "module": "src/actions-menu/actions-menu.template.ts"
2164
- }
2165
- },
2166
- {
2167
- "kind": "js",
2168
- "name": "foundationActionsMenuTemplate",
2112
+ "name": "foundationAccordionItemTemplate",
2169
2113
  "declaration": {
2170
- "name": "foundationActionsMenuTemplate",
2171
- "module": "src/actions-menu/actions-menu.template.ts"
2114
+ "name": "foundationAccordionItemTemplate",
2115
+ "module": "src/accordion-item/accordion-item.template.ts"
2172
2116
  }
2173
2117
  }
2174
2118
  ]
2175
2119
  },
2176
2120
  {
2177
2121
  "kind": "javascript-module",
2178
- "path": "src/actions-menu/actions-menu.ts",
2122
+ "path": "src/accordion-item/accordion-item.ts",
2179
2123
  "declarations": [
2180
2124
  {
2181
2125
  "kind": "class",
2182
2126
  "description": "",
2183
- "name": "ActionsMenu",
2184
- "members": [
2127
+ "name": "AccordionItem",
2128
+ "superclass": {
2129
+ "name": "FASTAccordionItem",
2130
+ "package": "@microsoft/fast-components"
2131
+ },
2132
+ "tagName": "%%prefix%%-accordion-item",
2133
+ "customElement": true,
2134
+ "attributes": [
2185
2135
  {
2186
- "kind": "field",
2187
- "name": "actions",
2136
+ "name": "heading-level",
2188
2137
  "type": {
2189
- "text": "ActionMenuItem[]"
2138
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2139
+ },
2140
+ "default": "2",
2141
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2142
+ "fieldName": "headinglevel",
2143
+ "inheritedFrom": {
2144
+ "name": "AccordionItem",
2145
+ "module": "src/accordion-item/accordion-item.ts"
2190
2146
  }
2191
2147
  },
2192
2148
  {
2193
- "kind": "field",
2194
- "name": "isVertical",
2195
2149
  "type": {
2196
2150
  "text": "boolean"
2197
2151
  },
2198
- "default": "false"
2152
+ "default": "false",
2153
+ "description": "Expands or collapses the item.",
2154
+ "fieldName": "expanded",
2155
+ "inheritedFrom": {
2156
+ "name": "AccordionItem",
2157
+ "module": "src/accordion-item/accordion-item.ts"
2158
+ }
2199
2159
  },
2160
+ {
2161
+ "name": "id",
2162
+ "type": {
2163
+ "text": "string"
2164
+ },
2165
+ "description": "The item ID",
2166
+ "fieldName": "id",
2167
+ "inheritedFrom": {
2168
+ "name": "AccordionItem",
2169
+ "module": "src/accordion-item/accordion-item.ts"
2170
+ }
2171
+ }
2172
+ ],
2173
+ "members": [
2200
2174
  {
2201
2175
  "kind": "field",
2202
- "name": "addDefaultActions",
2176
+ "name": "headinglevel",
2203
2177
  "type": {
2204
- "text": "boolean"
2178
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2205
2179
  },
2206
- "default": "true"
2180
+ "privacy": "public",
2181
+ "default": "2",
2182
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2183
+ "inheritedFrom": {
2184
+ "name": "AccordionItem",
2185
+ "module": "src/accordion-item/accordion-item.ts"
2186
+ }
2207
2187
  },
2208
2188
  {
2209
2189
  "kind": "field",
2210
- "name": "autoCloseOnAction",
2190
+ "name": "expanded",
2211
2191
  "type": {
2212
2192
  "text": "boolean"
2213
2193
  },
2214
- "default": "true"
2194
+ "privacy": "public",
2195
+ "default": "false",
2196
+ "description": "Expands or collapses the item.",
2197
+ "inheritedFrom": {
2198
+ "name": "AccordionItem",
2199
+ "module": "src/accordion-item/accordion-item.ts"
2200
+ }
2215
2201
  },
2216
2202
  {
2217
2203
  "kind": "field",
2218
- "name": "classNames",
2204
+ "name": "id",
2219
2205
  "type": {
2220
2206
  "text": "string"
2207
+ },
2208
+ "privacy": "public",
2209
+ "description": "The item ID",
2210
+ "inheritedFrom": {
2211
+ "name": "AccordionItem",
2212
+ "module": "src/accordion-item/accordion-item.ts"
2221
2213
  }
2222
2214
  },
2223
2215
  {
2224
2216
  "kind": "field",
2225
- "name": "definition",
2226
- "type": {
2227
- "text": "any"
2217
+ "name": "change",
2218
+ "privacy": "private",
2219
+ "inheritedFrom": {
2220
+ "name": "AccordionItem",
2221
+ "module": "src/accordion-item/accordion-item.ts"
2228
2222
  }
2229
2223
  },
2230
2224
  {
2231
2225
  "kind": "field",
2232
- "name": "name",
2226
+ "name": "_presentation",
2233
2227
  "type": {
2234
- "text": "string"
2228
+ "text": "ComponentPresentation | null | undefined"
2235
2229
  },
2236
- "default": "'Actions'"
2237
- },
2238
- {
2239
- "kind": "field",
2240
- "name": "open",
2241
- "type": {
2242
- "text": "boolean"
2243
- },
2244
- "default": "false"
2245
- },
2246
- {
2247
- "kind": "field",
2248
- "name": "buttonAppearance",
2249
- "type": {
2250
- "text": "string"
2251
- }
2252
- },
2253
- {
2254
- "kind": "field",
2255
- "name": "hideDisabled",
2256
- "type": {
2257
- "text": "boolean"
2258
- },
2259
- "default": "false"
2260
- },
2261
- {
2262
- "kind": "field",
2263
- "name": "hideMenuSingleOption",
2264
- "type": {
2265
- "text": "boolean"
2266
- },
2267
- "default": "false"
2268
- },
2269
- {
2270
- "kind": "field",
2271
- "name": "singleOption",
2272
- "type": {
2273
- "text": "ActionMenuItem"
2274
- }
2275
- },
2276
- {
2277
- "kind": "field",
2278
- "name": "actionsMenu",
2279
- "type": {
2280
- "text": "HTMLElement"
2281
- }
2282
- },
2283
- {
2284
- "kind": "field",
2285
- "name": "actionsOpener",
2286
- "type": {
2287
- "text": "HTMLElement"
2288
- }
2289
- },
2290
- {
2291
- "kind": "method",
2292
- "name": "updateMenuPosition",
2293
- "privacy": "private"
2294
- },
2295
- {
2296
- "kind": "method",
2297
- "name": "definitionChanged",
2298
- "privacy": "protected",
2299
- "parameters": [
2300
- {
2301
- "name": "oldValue",
2302
- "type": {
2303
- "text": "any"
2304
- }
2305
- },
2306
- {
2307
- "name": "newValue",
2308
- "type": {
2309
- "text": "any"
2310
- }
2311
- }
2312
- ]
2313
- },
2314
- {
2315
- "kind": "method",
2316
- "name": "openChanged",
2317
- "privacy": "protected"
2318
- },
2319
- {
2320
- "kind": "method",
2321
- "name": "toggleActionsMenuVisibility"
2322
- },
2323
- {
2324
- "kind": "method",
2325
- "name": "onActionMenuItemClick",
2326
- "parameters": [
2327
- {
2328
- "name": "callback",
2329
- "type": {
2330
- "text": "(rowData) => void | any"
2331
- }
2332
- }
2333
- ]
2334
- },
2335
- {
2336
- "kind": "field",
2337
- "name": "allActions",
2338
- "type": {
2339
- "text": "ActionMenuItem[]"
2340
- },
2341
- "readonly": true
2342
- },
2343
- {
2344
- "kind": "field",
2345
- "name": "rowData",
2346
- "readonly": true
2347
- },
2348
- {
2349
- "kind": "method",
2350
- "name": "getLabel",
2351
- "parameters": [
2352
- {
2353
- "name": "name",
2354
- "type": {
2355
- "text": "string | ((rowData: any) => string)"
2356
- }
2357
- }
2358
- ]
2359
- },
2360
- {
2361
- "kind": "method",
2362
- "name": "getTemplate",
2363
- "parameters": [
2364
- {
2365
- "name": "prefix",
2366
- "type": {
2367
- "text": "string"
2368
- }
2369
- }
2370
- ]
2371
- },
2372
- {
2373
- "kind": "field",
2374
- "name": "_presentation",
2375
- "type": {
2376
- "text": "ComponentPresentation | null | undefined"
2377
- },
2378
- "privacy": "private",
2379
- "default": "void 0",
2380
- "inheritedFrom": {
2381
- "name": "FoundationElement",
2382
- "module": "src/foundation-element/foundation-element.ts"
2383
- }
2230
+ "privacy": "private",
2231
+ "default": "void 0",
2232
+ "inheritedFrom": {
2233
+ "name": "FoundationElement",
2234
+ "module": "src/foundation-element/foundation-element.ts"
2235
+ }
2384
2236
  },
2385
2237
  {
2386
2238
  "kind": "field",
@@ -2481,107 +2333,78 @@
2481
2333
  }
2482
2334
  }
2483
2335
  ],
2484
- "attributes": [
2485
- {
2486
- "name": "is-vertical",
2487
- "type": {
2488
- "text": "boolean"
2489
- },
2490
- "default": "false",
2491
- "fieldName": "isVertical"
2492
- },
2493
- {
2494
- "name": "add-default-actions",
2495
- "type": {
2496
- "text": "boolean"
2497
- },
2498
- "default": "true",
2499
- "fieldName": "addDefaultActions"
2500
- },
2501
- {
2502
- "name": "auto-close-on-action",
2503
- "type": {
2504
- "text": "boolean"
2505
- },
2506
- "default": "true",
2507
- "fieldName": "autoCloseOnAction"
2508
- },
2509
- {
2510
- "name": "name",
2511
- "type": {
2512
- "text": "string"
2513
- },
2514
- "default": "'Actions'",
2515
- "fieldName": "name"
2516
- },
2517
- {
2518
- "name": "open",
2519
- "type": {
2520
- "text": "boolean"
2521
- },
2522
- "default": "false",
2523
- "fieldName": "open"
2524
- },
2525
- {
2526
- "name": "buttonAppearance",
2527
- "type": {
2528
- "text": "string"
2529
- },
2530
- "fieldName": "buttonAppearance"
2531
- },
2532
- {
2533
- "name": "hide-disabled",
2534
- "type": {
2535
- "text": "boolean"
2536
- },
2537
- "default": "false",
2538
- "fieldName": "hideDisabled"
2539
- },
2336
+ "events": [
2540
2337
  {
2541
- "name": "hide-menu-single-option",
2542
- "type": {
2543
- "text": "boolean"
2544
- },
2545
- "default": "false",
2546
- "fieldName": "hideMenuSingleOption"
2338
+ "description": "Fires a custom 'change' event when the button is invoked",
2339
+ "name": "change",
2340
+ "inheritedFrom": {
2341
+ "name": "AccordionItem",
2342
+ "module": "src/accordion-item/accordion-item.ts"
2343
+ }
2547
2344
  }
2548
- ],
2549
- "superclass": {
2550
- "name": "FoundationElement",
2551
- "package": "@microsoft/fast-foundation"
2345
+ ]
2346
+ },
2347
+ {
2348
+ "kind": "variable",
2349
+ "name": "foundationAccordionItemShadowOptions",
2350
+ "type": {
2351
+ "text": "ShadowRootInit"
2552
2352
  },
2553
- "tagName": "%%prefix%%-actions-menu",
2554
- "customElement": true
2353
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2555
2354
  },
2556
2355
  {
2557
2356
  "kind": "variable",
2558
- "name": "foundationActionsMenu",
2559
- "description": "The Foundation Actions Menu",
2357
+ "name": "defaultAccordionItemConfig",
2358
+ "type": {
2359
+ "text": "object"
2360
+ },
2361
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2362
+ },
2363
+ {
2364
+ "kind": "variable",
2365
+ "name": "foundationAccordionItem",
2366
+ "description": "The Foundation Accordion Item",
2560
2367
  "privacy": "public"
2561
2368
  }
2562
2369
  ],
2563
2370
  "exports": [
2564
2371
  {
2565
2372
  "kind": "js",
2566
- "name": "ActionsMenu",
2373
+ "name": "AccordionItem",
2567
2374
  "declaration": {
2568
- "name": "ActionsMenu",
2569
- "module": "src/actions-menu/actions-menu.ts"
2375
+ "name": "AccordionItem",
2376
+ "module": "src/accordion-item/accordion-item.ts"
2570
2377
  }
2571
2378
  },
2572
2379
  {
2573
2380
  "kind": "js",
2574
- "name": "foundationActionsMenu",
2381
+ "name": "foundationAccordionItemShadowOptions",
2575
2382
  "declaration": {
2576
- "name": "foundationActionsMenu",
2577
- "module": "src/actions-menu/actions-menu.ts"
2383
+ "name": "foundationAccordionItemShadowOptions",
2384
+ "module": "src/accordion-item/accordion-item.ts"
2385
+ }
2386
+ },
2387
+ {
2388
+ "kind": "js",
2389
+ "name": "defaultAccordionItemConfig",
2390
+ "declaration": {
2391
+ "name": "defaultAccordionItemConfig",
2392
+ "module": "src/accordion-item/accordion-item.ts"
2393
+ }
2394
+ },
2395
+ {
2396
+ "kind": "js",
2397
+ "name": "foundationAccordionItem",
2398
+ "declaration": {
2399
+ "name": "foundationAccordionItem",
2400
+ "module": "src/accordion-item/accordion-item.ts"
2578
2401
  }
2579
2402
  }
2580
2403
  ]
2581
2404
  },
2582
2405
  {
2583
2406
  "kind": "javascript-module",
2584
- "path": "src/actions-menu/index.ts",
2407
+ "path": "src/accordion-item/index.ts",
2585
2408
  "declarations": [],
2586
2409
  "exports": [
2587
2410
  {
@@ -2589,7 +2412,7 @@
2589
2412
  "name": "*",
2590
2413
  "declaration": {
2591
2414
  "name": "*",
2592
- "package": "./actions-menu.styles"
2415
+ "package": "./accordion-item.template"
2593
2416
  }
2594
2417
  },
2595
2418
  {
@@ -2597,7 +2420,7 @@
2597
2420
  "name": "*",
2598
2421
  "declaration": {
2599
2422
  "name": "*",
2600
- "package": "./actions-menu.template"
2423
+ "package": "./accordion-item.styles"
2601
2424
  }
2602
2425
  },
2603
2426
  {
@@ -2605,7 +2428,7 @@
2605
2428
  "name": "*",
2606
2429
  "declaration": {
2607
2430
  "name": "*",
2608
- "package": "./actions-menu"
2431
+ "package": "./accordion-item"
2609
2432
  }
2610
2433
  }
2611
2434
  ]
@@ -3670,11 +3493,34 @@
3670
3493
  },
3671
3494
  {
3672
3495
  "kind": "javascript-module",
3673
- "path": "src/accordion-item/accordion-item.styles.ts",
3496
+ "path": "src/actions-menu/actions-menu.styles.ts",
3674
3497
  "declarations": [
3675
3498
  {
3676
3499
  "kind": "function",
3677
- "name": "foundationAccordionItemStyles",
3500
+ "name": "actionsMenuBaseStyles",
3501
+ "return": {
3502
+ "type": {
3503
+ "text": "ElementStyles"
3504
+ }
3505
+ },
3506
+ "parameters": [
3507
+ {
3508
+ "name": "context",
3509
+ "type": {
3510
+ "text": "ElementDefinitionContext"
3511
+ }
3512
+ },
3513
+ {
3514
+ "name": "definition",
3515
+ "type": {
3516
+ "text": "FoundationElementDefinition"
3517
+ }
3518
+ }
3519
+ ]
3520
+ },
3521
+ {
3522
+ "kind": "function",
3523
+ "name": "foundationActionsMenuStyles",
3678
3524
  "return": {
3679
3525
  "type": {
3680
3526
  "text": "ElementStyles"
@@ -3699,156 +3545,281 @@
3699
3545
  "exports": [
3700
3546
  {
3701
3547
  "kind": "js",
3702
- "name": "foundationAccordionItemStyles",
3548
+ "name": "actionsMenuBaseStyles",
3703
3549
  "declaration": {
3704
- "name": "foundationAccordionItemStyles",
3705
- "module": "src/accordion-item/accordion-item.styles.ts"
3550
+ "name": "actionsMenuBaseStyles",
3551
+ "module": "src/actions-menu/actions-menu.styles.ts"
3552
+ }
3553
+ },
3554
+ {
3555
+ "kind": "js",
3556
+ "name": "foundationActionsMenuStyles",
3557
+ "declaration": {
3558
+ "name": "foundationActionsMenuStyles",
3559
+ "module": "src/actions-menu/actions-menu.styles.ts"
3706
3560
  }
3707
3561
  }
3708
3562
  ]
3709
3563
  },
3710
3564
  {
3711
3565
  "kind": "javascript-module",
3712
- "path": "src/accordion-item/accordion-item.template.ts",
3566
+ "path": "src/actions-menu/actions-menu.template.ts",
3713
3567
  "declarations": [
3714
3568
  {
3715
3569
  "kind": "function",
3716
- "name": "foundationAccordionItemTemplate",
3717
- "return": {
3718
- "type": {
3719
- "text": "ViewTemplate<AccordionItem>"
3720
- }
3721
- },
3570
+ "name": "menuTemplate",
3722
3571
  "parameters": [
3723
3572
  {
3724
- "name": "context",
3573
+ "name": "prefix",
3725
3574
  "type": {
3726
- "text": "ElementDefinitionContext"
3575
+ "text": "string"
3727
3576
  }
3728
- },
3577
+ }
3578
+ ]
3579
+ },
3580
+ {
3581
+ "kind": "function",
3582
+ "name": "singleOptionTemplate",
3583
+ "parameters": [
3729
3584
  {
3730
- "name": "definition",
3585
+ "name": "prefix",
3731
3586
  "type": {
3732
- "text": "FoundationElementDefinition"
3587
+ "text": "string"
3733
3588
  }
3734
3589
  }
3735
3590
  ]
3591
+ },
3592
+ {
3593
+ "kind": "variable",
3594
+ "name": "foundationActionsMenuTemplate",
3595
+ "type": {
3596
+ "text": "ViewTemplate<ActionsMenu>"
3597
+ },
3598
+ "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`"
3736
3599
  }
3737
3600
  ],
3738
3601
  "exports": [
3739
3602
  {
3740
3603
  "kind": "js",
3741
- "name": "foundationAccordionItemTemplate",
3604
+ "name": "menuTemplate",
3742
3605
  "declaration": {
3743
- "name": "foundationAccordionItemTemplate",
3744
- "module": "src/accordion-item/accordion-item.template.ts"
3606
+ "name": "menuTemplate",
3607
+ "module": "src/actions-menu/actions-menu.template.ts"
3608
+ }
3609
+ },
3610
+ {
3611
+ "kind": "js",
3612
+ "name": "singleOptionTemplate",
3613
+ "declaration": {
3614
+ "name": "singleOptionTemplate",
3615
+ "module": "src/actions-menu/actions-menu.template.ts"
3616
+ }
3617
+ },
3618
+ {
3619
+ "kind": "js",
3620
+ "name": "foundationActionsMenuTemplate",
3621
+ "declaration": {
3622
+ "name": "foundationActionsMenuTemplate",
3623
+ "module": "src/actions-menu/actions-menu.template.ts"
3745
3624
  }
3746
3625
  }
3747
3626
  ]
3748
3627
  },
3749
3628
  {
3750
3629
  "kind": "javascript-module",
3751
- "path": "src/accordion-item/accordion-item.ts",
3630
+ "path": "src/actions-menu/actions-menu.ts",
3752
3631
  "declarations": [
3753
3632
  {
3754
3633
  "kind": "class",
3755
3634
  "description": "",
3756
- "name": "AccordionItem",
3757
- "superclass": {
3758
- "name": "FASTAccordionItem",
3759
- "package": "@microsoft/fast-components"
3760
- },
3761
- "tagName": "%%prefix%%-accordion-item",
3762
- "customElement": true,
3763
- "attributes": [
3635
+ "name": "ActionsMenu",
3636
+ "members": [
3764
3637
  {
3765
- "name": "heading-level",
3638
+ "kind": "field",
3639
+ "name": "actions",
3766
3640
  "type": {
3767
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3641
+ "text": "ActionMenuItem[]"
3642
+ }
3643
+ },
3644
+ {
3645
+ "kind": "field",
3646
+ "name": "isVertical",
3647
+ "type": {
3648
+ "text": "boolean"
3768
3649
  },
3769
- "default": "2",
3770
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
3771
- "fieldName": "headinglevel",
3772
- "inheritedFrom": {
3773
- "name": "AccordionItem",
3774
- "module": "src/accordion-item/accordion-item.ts"
3650
+ "default": "false"
3651
+ },
3652
+ {
3653
+ "kind": "field",
3654
+ "name": "addDefaultActions",
3655
+ "type": {
3656
+ "text": "boolean"
3657
+ },
3658
+ "default": "true"
3659
+ },
3660
+ {
3661
+ "kind": "field",
3662
+ "name": "autoCloseOnAction",
3663
+ "type": {
3664
+ "text": "boolean"
3665
+ },
3666
+ "default": "true"
3667
+ },
3668
+ {
3669
+ "kind": "field",
3670
+ "name": "classNames",
3671
+ "type": {
3672
+ "text": "string"
3673
+ }
3674
+ },
3675
+ {
3676
+ "kind": "field",
3677
+ "name": "definition",
3678
+ "type": {
3679
+ "text": "any"
3775
3680
  }
3776
3681
  },
3777
3682
  {
3683
+ "kind": "field",
3684
+ "name": "name",
3685
+ "type": {
3686
+ "text": "string"
3687
+ },
3688
+ "default": "'Actions'"
3689
+ },
3690
+ {
3691
+ "kind": "field",
3692
+ "name": "open",
3778
3693
  "type": {
3779
3694
  "text": "boolean"
3780
3695
  },
3781
- "default": "false",
3782
- "description": "Expands or collapses the item.",
3783
- "fieldName": "expanded",
3784
- "inheritedFrom": {
3785
- "name": "AccordionItem",
3786
- "module": "src/accordion-item/accordion-item.ts"
3696
+ "default": "false"
3697
+ },
3698
+ {
3699
+ "kind": "field",
3700
+ "name": "buttonAppearance",
3701
+ "type": {
3702
+ "text": "string"
3787
3703
  }
3788
3704
  },
3789
3705
  {
3790
- "name": "id",
3706
+ "kind": "field",
3707
+ "name": "hideDisabled",
3708
+ "type": {
3709
+ "text": "boolean"
3710
+ },
3711
+ "default": "false"
3712
+ },
3713
+ {
3714
+ "kind": "field",
3715
+ "name": "hideMenuSingleOption",
3716
+ "type": {
3717
+ "text": "boolean"
3718
+ },
3719
+ "default": "false"
3720
+ },
3721
+ {
3722
+ "kind": "field",
3723
+ "name": "singleOption",
3791
3724
  "type": {
3792
- "text": "string"
3793
- },
3794
- "description": "The item ID",
3795
- "fieldName": "id",
3796
- "inheritedFrom": {
3797
- "name": "AccordionItem",
3798
- "module": "src/accordion-item/accordion-item.ts"
3725
+ "text": "ActionMenuItem"
3799
3726
  }
3800
- }
3801
- ],
3802
- "members": [
3727
+ },
3803
3728
  {
3804
3729
  "kind": "field",
3805
- "name": "headinglevel",
3730
+ "name": "actionsMenu",
3806
3731
  "type": {
3807
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3808
- },
3809
- "privacy": "public",
3810
- "default": "2",
3811
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
3812
- "inheritedFrom": {
3813
- "name": "AccordionItem",
3814
- "module": "src/accordion-item/accordion-item.ts"
3732
+ "text": "HTMLElement"
3815
3733
  }
3816
3734
  },
3817
3735
  {
3818
3736
  "kind": "field",
3819
- "name": "expanded",
3737
+ "name": "actionsOpener",
3820
3738
  "type": {
3821
- "text": "boolean"
3822
- },
3823
- "privacy": "public",
3824
- "default": "false",
3825
- "description": "Expands or collapses the item.",
3826
- "inheritedFrom": {
3827
- "name": "AccordionItem",
3828
- "module": "src/accordion-item/accordion-item.ts"
3739
+ "text": "HTMLElement"
3829
3740
  }
3830
3741
  },
3742
+ {
3743
+ "kind": "method",
3744
+ "name": "updateMenuPosition",
3745
+ "privacy": "private"
3746
+ },
3747
+ {
3748
+ "kind": "method",
3749
+ "name": "definitionChanged",
3750
+ "privacy": "protected",
3751
+ "parameters": [
3752
+ {
3753
+ "name": "oldValue",
3754
+ "type": {
3755
+ "text": "any"
3756
+ }
3757
+ },
3758
+ {
3759
+ "name": "newValue",
3760
+ "type": {
3761
+ "text": "any"
3762
+ }
3763
+ }
3764
+ ]
3765
+ },
3766
+ {
3767
+ "kind": "method",
3768
+ "name": "openChanged",
3769
+ "privacy": "protected"
3770
+ },
3771
+ {
3772
+ "kind": "method",
3773
+ "name": "toggleActionsMenuVisibility"
3774
+ },
3775
+ {
3776
+ "kind": "method",
3777
+ "name": "onActionMenuItemClick",
3778
+ "parameters": [
3779
+ {
3780
+ "name": "callback",
3781
+ "type": {
3782
+ "text": "(rowData) => void | any"
3783
+ }
3784
+ }
3785
+ ]
3786
+ },
3831
3787
  {
3832
3788
  "kind": "field",
3833
- "name": "id",
3789
+ "name": "allActions",
3834
3790
  "type": {
3835
- "text": "string"
3791
+ "text": "ActionMenuItem[]"
3836
3792
  },
3837
- "privacy": "public",
3838
- "description": "The item ID",
3839
- "inheritedFrom": {
3840
- "name": "AccordionItem",
3841
- "module": "src/accordion-item/accordion-item.ts"
3842
- }
3793
+ "readonly": true
3843
3794
  },
3844
3795
  {
3845
3796
  "kind": "field",
3846
- "name": "change",
3847
- "privacy": "private",
3848
- "inheritedFrom": {
3849
- "name": "AccordionItem",
3850
- "module": "src/accordion-item/accordion-item.ts"
3851
- }
3797
+ "name": "rowData",
3798
+ "readonly": true
3799
+ },
3800
+ {
3801
+ "kind": "method",
3802
+ "name": "getLabel",
3803
+ "parameters": [
3804
+ {
3805
+ "name": "name",
3806
+ "type": {
3807
+ "text": "string | ((rowData: any) => string)"
3808
+ }
3809
+ }
3810
+ ]
3811
+ },
3812
+ {
3813
+ "kind": "method",
3814
+ "name": "getTemplate",
3815
+ "parameters": [
3816
+ {
3817
+ "name": "prefix",
3818
+ "type": {
3819
+ "text": "string"
3820
+ }
3821
+ }
3822
+ ]
3852
3823
  },
3853
3824
  {
3854
3825
  "kind": "field",
@@ -3962,78 +3933,107 @@
3962
3933
  }
3963
3934
  }
3964
3935
  ],
3965
- "events": [
3936
+ "attributes": [
3966
3937
  {
3967
- "description": "Fires a custom 'change' event when the button is invoked",
3968
- "name": "change",
3969
- "inheritedFrom": {
3970
- "name": "AccordionItem",
3971
- "module": "src/accordion-item/accordion-item.ts"
3972
- }
3938
+ "name": "is-vertical",
3939
+ "type": {
3940
+ "text": "boolean"
3941
+ },
3942
+ "default": "false",
3943
+ "fieldName": "isVertical"
3944
+ },
3945
+ {
3946
+ "name": "add-default-actions",
3947
+ "type": {
3948
+ "text": "boolean"
3949
+ },
3950
+ "default": "true",
3951
+ "fieldName": "addDefaultActions"
3952
+ },
3953
+ {
3954
+ "name": "auto-close-on-action",
3955
+ "type": {
3956
+ "text": "boolean"
3957
+ },
3958
+ "default": "true",
3959
+ "fieldName": "autoCloseOnAction"
3960
+ },
3961
+ {
3962
+ "name": "name",
3963
+ "type": {
3964
+ "text": "string"
3965
+ },
3966
+ "default": "'Actions'",
3967
+ "fieldName": "name"
3968
+ },
3969
+ {
3970
+ "name": "open",
3971
+ "type": {
3972
+ "text": "boolean"
3973
+ },
3974
+ "default": "false",
3975
+ "fieldName": "open"
3976
+ },
3977
+ {
3978
+ "name": "buttonAppearance",
3979
+ "type": {
3980
+ "text": "string"
3981
+ },
3982
+ "fieldName": "buttonAppearance"
3983
+ },
3984
+ {
3985
+ "name": "hide-disabled",
3986
+ "type": {
3987
+ "text": "boolean"
3988
+ },
3989
+ "default": "false",
3990
+ "fieldName": "hideDisabled"
3991
+ },
3992
+ {
3993
+ "name": "hide-menu-single-option",
3994
+ "type": {
3995
+ "text": "boolean"
3996
+ },
3997
+ "default": "false",
3998
+ "fieldName": "hideMenuSingleOption"
3973
3999
  }
3974
- ]
3975
- },
3976
- {
3977
- "kind": "variable",
3978
- "name": "foundationAccordionItemShadowOptions",
3979
- "type": {
3980
- "text": "ShadowRootInit"
3981
- },
3982
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3983
- },
3984
- {
3985
- "kind": "variable",
3986
- "name": "defaultAccordionItemConfig",
3987
- "type": {
3988
- "text": "object"
4000
+ ],
4001
+ "superclass": {
4002
+ "name": "FoundationElement",
4003
+ "package": "@microsoft/fast-foundation"
3989
4004
  },
3990
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
4005
+ "tagName": "%%prefix%%-actions-menu",
4006
+ "customElement": true
3991
4007
  },
3992
4008
  {
3993
4009
  "kind": "variable",
3994
- "name": "foundationAccordionItem",
3995
- "description": "The Foundation Accordion Item",
4010
+ "name": "foundationActionsMenu",
4011
+ "description": "The Foundation Actions Menu",
3996
4012
  "privacy": "public"
3997
4013
  }
3998
4014
  ],
3999
4015
  "exports": [
4000
4016
  {
4001
4017
  "kind": "js",
4002
- "name": "AccordionItem",
4003
- "declaration": {
4004
- "name": "AccordionItem",
4005
- "module": "src/accordion-item/accordion-item.ts"
4006
- }
4007
- },
4008
- {
4009
- "kind": "js",
4010
- "name": "foundationAccordionItemShadowOptions",
4011
- "declaration": {
4012
- "name": "foundationAccordionItemShadowOptions",
4013
- "module": "src/accordion-item/accordion-item.ts"
4014
- }
4015
- },
4016
- {
4017
- "kind": "js",
4018
- "name": "defaultAccordionItemConfig",
4018
+ "name": "ActionsMenu",
4019
4019
  "declaration": {
4020
- "name": "defaultAccordionItemConfig",
4021
- "module": "src/accordion-item/accordion-item.ts"
4020
+ "name": "ActionsMenu",
4021
+ "module": "src/actions-menu/actions-menu.ts"
4022
4022
  }
4023
4023
  },
4024
4024
  {
4025
4025
  "kind": "js",
4026
- "name": "foundationAccordionItem",
4026
+ "name": "foundationActionsMenu",
4027
4027
  "declaration": {
4028
- "name": "foundationAccordionItem",
4029
- "module": "src/accordion-item/accordion-item.ts"
4028
+ "name": "foundationActionsMenu",
4029
+ "module": "src/actions-menu/actions-menu.ts"
4030
4030
  }
4031
4031
  }
4032
4032
  ]
4033
4033
  },
4034
4034
  {
4035
4035
  "kind": "javascript-module",
4036
- "path": "src/accordion-item/index.ts",
4036
+ "path": "src/actions-menu/index.ts",
4037
4037
  "declarations": [],
4038
4038
  "exports": [
4039
4039
  {
@@ -4041,7 +4041,7 @@
4041
4041
  "name": "*",
4042
4042
  "declaration": {
4043
4043
  "name": "*",
4044
- "package": "./accordion-item.template"
4044
+ "package": "./actions-menu.styles"
4045
4045
  }
4046
4046
  },
4047
4047
  {
@@ -4049,7 +4049,7 @@
4049
4049
  "name": "*",
4050
4050
  "declaration": {
4051
4051
  "name": "*",
4052
- "package": "./accordion-item.styles"
4052
+ "package": "./actions-menu.template"
4053
4053
  }
4054
4054
  },
4055
4055
  {
@@ -4057,7 +4057,7 @@
4057
4057
  "name": "*",
4058
4058
  "declaration": {
4059
4059
  "name": "*",
4060
- "package": "./accordion-item"
4060
+ "package": "./actions-menu"
4061
4061
  }
4062
4062
  }
4063
4063
  ]