@genesislcap/foundation-ui 15.8.0 → 15.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -958,44 +958,97 @@
958
958
  },
959
959
  {
960
960
  "kind": "javascript-module",
961
- "path": "src/_common/affix-mixin.ts",
961
+ "path": "src/_config/index.ts",
962
+ "declarations": [],
963
+ "exports": [
964
+ {
965
+ "kind": "js",
966
+ "name": "*",
967
+ "declaration": {
968
+ "name": "*",
969
+ "package": "./styles"
970
+ }
971
+ },
972
+ {
973
+ "kind": "js",
974
+ "name": "*",
975
+ "declaration": {
976
+ "name": "*",
977
+ "package": "./tokens"
978
+ }
979
+ },
980
+ {
981
+ "kind": "js",
982
+ "name": "*",
983
+ "declaration": {
984
+ "name": "*",
985
+ "package": "./values"
986
+ }
987
+ }
988
+ ]
989
+ },
990
+ {
991
+ "kind": "javascript-module",
992
+ "path": "src/accordion-item/accordion-item.styles.ts",
962
993
  "declarations": [
963
994
  {
964
- "kind": "mixin",
965
- "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
966
- "name": "AffixMixin",
967
- "members": [
968
- {
969
- "kind": "field",
970
- "name": "prefix",
971
- "type": {
972
- "text": "string"
973
- },
974
- "description": "Optional non-editable label shown on the left inside the field, before the input."
975
- },
995
+ "kind": "function",
996
+ "name": "foundationAccordionItemStyles",
997
+ "return": {
998
+ "type": {
999
+ "text": "ElementStyles"
1000
+ }
1001
+ },
1002
+ "parameters": [
976
1003
  {
977
- "kind": "field",
978
- "name": "suffix",
1004
+ "name": "context",
979
1005
  "type": {
980
- "text": "string"
981
- },
982
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
1006
+ "text": "ElementDefinitionContext"
1007
+ }
983
1008
  },
984
1009
  {
985
- "kind": "field",
986
- "name": "hideAffixFromScreenReader",
1010
+ "name": "definition",
987
1011
  "type": {
988
- "text": "boolean"
989
- },
990
- "default": "false",
991
- "description": "When true, prefix/suffix are not exposed to assistive technology (`aria-hidden` on affixes,\nand their ids are omitted from the control's `aria-describedby`).\nUse only when the unit or symbol is redundant with the visible label or other text."
1012
+ "text": "FoundationElementDefinition"
1013
+ }
992
1014
  }
993
- ],
1015
+ ]
1016
+ }
1017
+ ],
1018
+ "exports": [
1019
+ {
1020
+ "kind": "js",
1021
+ "name": "foundationAccordionItemStyles",
1022
+ "declaration": {
1023
+ "name": "foundationAccordionItemStyles",
1024
+ "module": "src/accordion-item/accordion-item.styles.ts"
1025
+ }
1026
+ }
1027
+ ]
1028
+ },
1029
+ {
1030
+ "kind": "javascript-module",
1031
+ "path": "src/accordion-item/accordion-item.template.ts",
1032
+ "declarations": [
1033
+ {
1034
+ "kind": "function",
1035
+ "name": "foundationAccordionItemTemplate",
1036
+ "return": {
1037
+ "type": {
1038
+ "text": "ViewTemplate<AccordionItem>"
1039
+ }
1040
+ },
994
1041
  "parameters": [
995
1042
  {
996
- "name": "Base",
1043
+ "name": "context",
997
1044
  "type": {
998
- "text": "TBase"
1045
+ "text": "ElementDefinitionContext"
1046
+ }
1047
+ },
1048
+ {
1049
+ "name": "definition",
1050
+ "type": {
1051
+ "text": "FoundationElementDefinition"
999
1052
  }
1000
1053
  }
1001
1054
  ]
@@ -1004,169 +1057,117 @@
1004
1057
  "exports": [
1005
1058
  {
1006
1059
  "kind": "js",
1007
- "name": "AffixMixin",
1060
+ "name": "foundationAccordionItemTemplate",
1008
1061
  "declaration": {
1009
- "name": "AffixMixin",
1010
- "module": "src/_common/affix-mixin.ts"
1062
+ "name": "foundationAccordionItemTemplate",
1063
+ "module": "src/accordion-item/accordion-item.template.ts"
1011
1064
  }
1012
1065
  }
1013
1066
  ]
1014
1067
  },
1015
1068
  {
1016
1069
  "kind": "javascript-module",
1017
- "path": "src/_common/base-file-component.ts",
1070
+ "path": "src/accordion-item/accordion-item.ts",
1018
1071
  "declarations": [
1019
1072
  {
1020
1073
  "kind": "class",
1021
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1022
- "name": "BaseFileComponent",
1023
- "members": [
1074
+ "description": "",
1075
+ "name": "AccordionItem",
1076
+ "superclass": {
1077
+ "name": "FASTAccordionItem",
1078
+ "package": "@microsoft/fast-components"
1079
+ },
1080
+ "tagName": "%%prefix%%-accordion-item",
1081
+ "customElement": true,
1082
+ "attributes": [
1024
1083
  {
1025
- "kind": "field",
1026
- "name": "fileInput",
1084
+ "name": "heading-level",
1027
1085
  "type": {
1028
- "text": "HTMLInputElement"
1086
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1029
1087
  },
1030
- "privacy": "public"
1088
+ "default": "2",
1089
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1090
+ "fieldName": "headinglevel",
1091
+ "inheritedFrom": {
1092
+ "name": "AccordionItem",
1093
+ "module": "src/accordion-item/accordion-item.ts"
1094
+ }
1031
1095
  },
1032
1096
  {
1033
- "kind": "field",
1034
- "name": "selectedFile",
1035
1097
  "type": {
1036
- "text": "File | null"
1098
+ "text": "boolean"
1037
1099
  },
1038
- "privacy": "protected",
1039
- "default": "null"
1040
- },
1041
- {
1042
- "kind": "field",
1043
- "name": "label",
1044
- "type": {
1045
- "text": "string"
1100
+ "default": "false",
1101
+ "description": "Expands or collapses the item.",
1102
+ "fieldName": "expanded",
1103
+ "inheritedFrom": {
1104
+ "name": "AccordionItem",
1105
+ "module": "src/accordion-item/accordion-item.ts"
1046
1106
  }
1047
1107
  },
1048
1108
  {
1049
- "kind": "field",
1050
- "name": "accept",
1109
+ "name": "id",
1051
1110
  "type": {
1052
1111
  "text": "string"
1053
1112
  },
1054
- "default": "''"
1055
- },
1056
- {
1057
- "kind": "field",
1058
- "name": "fileSizeLimitBytes",
1059
- "default": "10_485_760",
1060
- "type": {
1061
- "text": "number"
1113
+ "description": "The item ID",
1114
+ "fieldName": "id",
1115
+ "inheritedFrom": {
1116
+ "name": "AccordionItem",
1117
+ "module": "src/accordion-item/accordion-item.ts"
1062
1118
  }
1063
- },
1119
+ }
1120
+ ],
1121
+ "members": [
1064
1122
  {
1065
1123
  "kind": "field",
1066
- "name": "fileName",
1124
+ "name": "headinglevel",
1067
1125
  "type": {
1068
- "text": "string"
1126
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1069
1127
  },
1070
- "default": "''"
1128
+ "privacy": "public",
1129
+ "default": "2",
1130
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1131
+ "inheritedFrom": {
1132
+ "name": "AccordionItem",
1133
+ "module": "src/accordion-item/accordion-item.ts"
1134
+ }
1071
1135
  },
1072
1136
  {
1073
1137
  "kind": "field",
1074
- "name": "isProcessing",
1138
+ "name": "expanded",
1075
1139
  "type": {
1076
1140
  "text": "boolean"
1077
1141
  },
1078
- "default": "false"
1079
- },
1080
- {
1081
- "kind": "method",
1082
- "name": "handleClick",
1083
- "privacy": "public",
1084
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1085
- },
1086
- {
1087
- "kind": "method",
1088
- "name": "onInputChange",
1089
- "privacy": "public",
1090
- "parameters": [
1091
- {
1092
- "name": "e",
1093
- "type": {
1094
- "text": "Event"
1095
- },
1096
- "description": "The change event from the file input"
1097
- }
1098
- ],
1099
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1100
- },
1101
- {
1102
- "kind": "method",
1103
- "name": "clearSelection",
1104
1142
  "privacy": "public",
1105
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
1106
- },
1107
- {
1108
- "kind": "method",
1109
- "name": "getSelectedFile",
1110
- "privacy": "public",
1111
- "description": "Gets the currently selected file object",
1112
- "return": {
1113
- "type": {
1114
- "text": ""
1115
- }
1143
+ "default": "false",
1144
+ "description": "Expands or collapses the item.",
1145
+ "inheritedFrom": {
1146
+ "name": "AccordionItem",
1147
+ "module": "src/accordion-item/accordion-item.ts"
1116
1148
  }
1117
1149
  },
1118
1150
  {
1119
- "kind": "method",
1120
- "name": "showError",
1121
- "privacy": "protected",
1122
- "parameters": [
1123
- {
1124
- "name": "title",
1125
- "type": {
1126
- "text": "string"
1127
- },
1128
- "description": "The error title"
1129
- },
1130
- {
1131
- "name": "message",
1132
- "type": {
1133
- "text": "string"
1134
- },
1135
- "description": "The error message"
1136
- }
1137
- ],
1138
- "description": "Shows an error notification using the unified error handling system"
1139
- },
1140
- {
1141
- "kind": "method",
1142
- "name": "onFileSelected",
1143
- "privacy": "protected",
1144
- "return": {
1145
- "type": {
1146
- "text": "void"
1147
- }
1151
+ "kind": "field",
1152
+ "name": "id",
1153
+ "type": {
1154
+ "text": "string"
1148
1155
  },
1149
- "parameters": [
1150
- {
1151
- "name": "files",
1152
- "type": {
1153
- "text": "File[]"
1154
- },
1155
- "description": "The selected file"
1156
- }
1157
- ],
1158
- "description": "Abstract method called when a file is selected"
1156
+ "privacy": "public",
1157
+ "description": "The item ID",
1158
+ "inheritedFrom": {
1159
+ "name": "AccordionItem",
1160
+ "module": "src/accordion-item/accordion-item.ts"
1161
+ }
1159
1162
  },
1160
1163
  {
1161
- "kind": "method",
1162
- "name": "onFileCleared",
1163
- "privacy": "protected",
1164
- "return": {
1165
- "type": {
1166
- "text": "void"
1167
- }
1168
- },
1169
- "description": "Abstract method called when file selection is cleared"
1164
+ "kind": "field",
1165
+ "name": "change",
1166
+ "privacy": "private",
1167
+ "inheritedFrom": {
1168
+ "name": "AccordionItem",
1169
+ "module": "src/accordion-item/accordion-item.ts"
1170
+ }
1170
1171
  },
1171
1172
  {
1172
1173
  "kind": "field",
@@ -1282,110 +1283,76 @@
1282
1283
  ],
1283
1284
  "events": [
1284
1285
  {
1285
- "description": "Fired when file size validation fails. detail: `Error`",
1286
- "name": "error"
1287
- },
1288
- {
1289
- "description": "Fired when selection is cleared",
1290
- "name": "clear"
1291
- }
1292
- ],
1293
- "attributes": [
1294
- {
1295
- "name": "label",
1296
- "type": {
1297
- "text": "string"
1298
- },
1299
- "fieldName": "label"
1300
- },
1301
- {
1302
- "name": "accept",
1303
- "type": {
1304
- "text": "string"
1305
- },
1306
- "default": "''",
1307
- "fieldName": "accept"
1308
- },
1309
- {
1310
- "name": "file-size-limit-bytes",
1311
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1312
- "resolveInitializer": {
1313
- "module": "src/_common/base-file-component.ts"
1314
- },
1315
- "fieldName": "fileSizeLimitBytes"
1286
+ "description": "Fires a custom 'change' event when the button is invoked",
1287
+ "name": "change",
1288
+ "inheritedFrom": {
1289
+ "name": "AccordionItem",
1290
+ "module": "src/accordion-item/accordion-item.ts"
1291
+ }
1316
1292
  }
1317
- ],
1318
- "superclass": {
1319
- "name": "FoundationElement",
1320
- "package": "@microsoft/fast-foundation"
1321
- }
1293
+ ]
1294
+ },
1295
+ {
1296
+ "kind": "variable",
1297
+ "name": "foundationAccordionItemShadowOptions",
1298
+ "type": {
1299
+ "text": "ShadowRootInit"
1300
+ },
1301
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1302
+ },
1303
+ {
1304
+ "kind": "variable",
1305
+ "name": "defaultAccordionItemConfig",
1306
+ "type": {
1307
+ "text": "object"
1308
+ },
1309
+ "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}"
1310
+ },
1311
+ {
1312
+ "kind": "variable",
1313
+ "name": "foundationAccordionItem",
1314
+ "description": "The Foundation Accordion Item",
1315
+ "privacy": "public"
1322
1316
  }
1323
1317
  ],
1324
1318
  "exports": [
1325
1319
  {
1326
1320
  "kind": "js",
1327
- "name": "BaseFileComponent",
1321
+ "name": "AccordionItem",
1328
1322
  "declaration": {
1329
- "name": "BaseFileComponent",
1330
- "module": "src/_common/base-file-component.ts"
1323
+ "name": "AccordionItem",
1324
+ "module": "src/accordion-item/accordion-item.ts"
1331
1325
  }
1332
- }
1333
- ]
1334
- },
1335
- {
1336
- "kind": "javascript-module",
1337
- "path": "src/_common/field-styles.ts",
1338
- "declarations": [
1339
- {
1340
- "kind": "variable",
1341
- "name": "sharedFieldStyles",
1342
- "default": "css`\n .label-hidden {\n margin: 0;\n }\n\n .control-field {\n display: flex;\n flex: 1 1 0%;\n min-width: 0;\n align-self: stretch;\n align-items: stretch;\n }\n\n .control-field .control {\n flex: 1 1 auto;\n min-width: 0;\n width: auto;\n }\n\n .prefix,\n .suffix {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n box-sizing: border-box;\n padding: 0 calc(var(--design-unit) * 2px);\n user-select: none;\n white-space: nowrap;\n background-color: var(--neutral-fill-rest);\n color: var(--neutral-foreground-hint);\n font-size: var(--type-ramp-base-font-size);\n font-family: inherit;\n line-height: 1;\n }\n\n .prefix {\n border-right: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n .suffix {\n border-left: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-prefix:not(.has-suffix)) .control-field .control {\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-suffix:not(.has-prefix)) .control-field .control {\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n :host(.has-prefix.has-suffix) .control-field .control {\n border-radius: 0;\n }\n`"
1343
- }
1344
- ],
1345
- "exports": [
1326
+ },
1346
1327
  {
1347
1328
  "kind": "js",
1348
- "name": "sharedFieldStyles",
1329
+ "name": "foundationAccordionItemShadowOptions",
1349
1330
  "declaration": {
1350
- "name": "sharedFieldStyles",
1351
- "module": "src/_common/field-styles.ts"
1331
+ "name": "foundationAccordionItemShadowOptions",
1332
+ "module": "src/accordion-item/accordion-item.ts"
1352
1333
  }
1353
- }
1354
- ]
1355
- },
1356
- {
1357
- "kind": "javascript-module",
1358
- "path": "src/_common/icons.ts",
1359
- "declarations": [
1334
+ },
1360
1335
  {
1361
- "kind": "function",
1362
- "name": "closeIcon",
1363
- "parameters": [
1364
- {
1365
- "name": "slot",
1366
- "default": "'start'"
1367
- },
1368
- {
1369
- "name": "fill",
1370
- "default": "'#879ba6'"
1371
- }
1372
- ]
1373
- }
1374
- ],
1375
- "exports": [
1336
+ "kind": "js",
1337
+ "name": "defaultAccordionItemConfig",
1338
+ "declaration": {
1339
+ "name": "defaultAccordionItemConfig",
1340
+ "module": "src/accordion-item/accordion-item.ts"
1341
+ }
1342
+ },
1376
1343
  {
1377
1344
  "kind": "js",
1378
- "name": "closeIcon",
1345
+ "name": "foundationAccordionItem",
1379
1346
  "declaration": {
1380
- "name": "closeIcon",
1381
- "module": "src/_common/icons.ts"
1347
+ "name": "foundationAccordionItem",
1348
+ "module": "src/accordion-item/accordion-item.ts"
1382
1349
  }
1383
1350
  }
1384
1351
  ]
1385
1352
  },
1386
1353
  {
1387
1354
  "kind": "javascript-module",
1388
- "path": "src/_common/index.ts",
1355
+ "path": "src/accordion-item/index.ts",
1389
1356
  "declarations": [],
1390
1357
  "exports": [
1391
1358
  {
@@ -1393,15 +1360,7 @@
1393
1360
  "name": "*",
1394
1361
  "declaration": {
1395
1362
  "name": "*",
1396
- "package": "./affix-mixin"
1397
- }
1398
- },
1399
- {
1400
- "kind": "js",
1401
- "name": "*",
1402
- "declaration": {
1403
- "name": "*",
1404
- "package": "./base-file-component"
1363
+ "package": "./accordion-item.template"
1405
1364
  }
1406
1365
  },
1407
1366
  {
@@ -1409,7 +1368,7 @@
1409
1368
  "name": "*",
1410
1369
  "declaration": {
1411
1370
  "name": "*",
1412
- "package": "./field-styles"
1371
+ "package": "./accordion-item.styles"
1413
1372
  }
1414
1373
  },
1415
1374
  {
@@ -1417,73 +1376,51 @@
1417
1376
  "name": "*",
1418
1377
  "declaration": {
1419
1378
  "name": "*",
1420
- "package": "./icons"
1379
+ "package": "./accordion-item"
1421
1380
  }
1422
1381
  }
1423
1382
  ]
1424
1383
  },
1425
1384
  {
1426
1385
  "kind": "javascript-module",
1427
- "path": "src/accordion-item/accordion-item.styles.ts",
1386
+ "path": "src/_common/affix-mixin.ts",
1428
1387
  "declarations": [
1429
1388
  {
1430
- "kind": "function",
1431
- "name": "foundationAccordionItemStyles",
1432
- "return": {
1433
- "type": {
1434
- "text": "ElementStyles"
1435
- }
1436
- },
1437
- "parameters": [
1389
+ "kind": "mixin",
1390
+ "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
1391
+ "name": "AffixMixin",
1392
+ "members": [
1438
1393
  {
1439
- "name": "context",
1394
+ "kind": "field",
1395
+ "name": "prefix",
1440
1396
  "type": {
1441
- "text": "ElementDefinitionContext"
1442
- }
1397
+ "text": "string"
1398
+ },
1399
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
1443
1400
  },
1444
1401
  {
1445
- "name": "definition",
1402
+ "kind": "field",
1403
+ "name": "suffix",
1446
1404
  "type": {
1447
- "text": "FoundationElementDefinition"
1448
- }
1449
- }
1450
- ]
1451
- }
1452
- ],
1453
- "exports": [
1454
- {
1455
- "kind": "js",
1456
- "name": "foundationAccordionItemStyles",
1457
- "declaration": {
1458
- "name": "foundationAccordionItemStyles",
1459
- "module": "src/accordion-item/accordion-item.styles.ts"
1460
- }
1461
- }
1462
- ]
1463
- },
1464
- {
1465
- "kind": "javascript-module",
1466
- "path": "src/accordion-item/accordion-item.template.ts",
1467
- "declarations": [
1468
- {
1469
- "kind": "function",
1470
- "name": "foundationAccordionItemTemplate",
1471
- "return": {
1472
- "type": {
1473
- "text": "ViewTemplate<AccordionItem>"
1474
- }
1475
- },
1476
- "parameters": [
1405
+ "text": "string"
1406
+ },
1407
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
1408
+ },
1477
1409
  {
1478
- "name": "context",
1410
+ "kind": "field",
1411
+ "name": "hideAffixFromScreenReader",
1479
1412
  "type": {
1480
- "text": "ElementDefinitionContext"
1481
- }
1482
- },
1413
+ "text": "boolean"
1414
+ },
1415
+ "default": "false",
1416
+ "description": "When true, prefix/suffix are not exposed to assistive technology (`aria-hidden` on affixes,\nand their ids are omitted from the control's `aria-describedby`).\nUse only when the unit or symbol is redundant with the visible label or other text."
1417
+ }
1418
+ ],
1419
+ "parameters": [
1483
1420
  {
1484
- "name": "definition",
1421
+ "name": "Base",
1485
1422
  "type": {
1486
- "text": "FoundationElementDefinition"
1423
+ "text": "TBase"
1487
1424
  }
1488
1425
  }
1489
1426
  ]
@@ -1492,118 +1429,170 @@
1492
1429
  "exports": [
1493
1430
  {
1494
1431
  "kind": "js",
1495
- "name": "foundationAccordionItemTemplate",
1432
+ "name": "AffixMixin",
1496
1433
  "declaration": {
1497
- "name": "foundationAccordionItemTemplate",
1498
- "module": "src/accordion-item/accordion-item.template.ts"
1434
+ "name": "AffixMixin",
1435
+ "module": "src/_common/affix-mixin.ts"
1499
1436
  }
1500
1437
  }
1501
1438
  ]
1502
1439
  },
1503
1440
  {
1504
1441
  "kind": "javascript-module",
1505
- "path": "src/accordion-item/accordion-item.ts",
1442
+ "path": "src/_common/base-file-component.ts",
1506
1443
  "declarations": [
1507
1444
  {
1508
1445
  "kind": "class",
1509
- "description": "",
1510
- "name": "AccordionItem",
1511
- "superclass": {
1512
- "name": "FASTAccordionItem",
1513
- "package": "@microsoft/fast-components"
1514
- },
1515
- "tagName": "%%prefix%%-accordion-item",
1516
- "customElement": true,
1517
- "attributes": [
1446
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1447
+ "name": "BaseFileComponent",
1448
+ "members": [
1518
1449
  {
1519
- "name": "heading-level",
1450
+ "kind": "field",
1451
+ "name": "fileInput",
1520
1452
  "type": {
1521
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1453
+ "text": "HTMLInputElement"
1522
1454
  },
1523
- "default": "2",
1524
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1525
- "fieldName": "headinglevel",
1526
- "inheritedFrom": {
1527
- "name": "AccordionItem",
1528
- "module": "src/accordion-item/accordion-item.ts"
1529
- }
1455
+ "privacy": "public"
1530
1456
  },
1531
1457
  {
1458
+ "kind": "field",
1459
+ "name": "selectedFile",
1532
1460
  "type": {
1533
- "text": "boolean"
1461
+ "text": "File | null"
1534
1462
  },
1535
- "default": "false",
1536
- "description": "Expands or collapses the item.",
1537
- "fieldName": "expanded",
1538
- "inheritedFrom": {
1539
- "name": "AccordionItem",
1540
- "module": "src/accordion-item/accordion-item.ts"
1463
+ "privacy": "protected",
1464
+ "default": "null"
1465
+ },
1466
+ {
1467
+ "kind": "field",
1468
+ "name": "label",
1469
+ "type": {
1470
+ "text": "string"
1541
1471
  }
1542
1472
  },
1543
1473
  {
1544
- "name": "id",
1474
+ "kind": "field",
1475
+ "name": "accept",
1545
1476
  "type": {
1546
1477
  "text": "string"
1547
1478
  },
1548
- "description": "The item ID",
1549
- "fieldName": "id",
1550
- "inheritedFrom": {
1551
- "name": "AccordionItem",
1552
- "module": "src/accordion-item/accordion-item.ts"
1479
+ "default": "''"
1480
+ },
1481
+ {
1482
+ "kind": "field",
1483
+ "name": "fileSizeLimitBytes",
1484
+ "default": "10_485_760",
1485
+ "type": {
1486
+ "text": "number"
1553
1487
  }
1554
- }
1555
- ],
1556
- "members": [
1488
+ },
1557
1489
  {
1558
1490
  "kind": "field",
1559
- "name": "headinglevel",
1491
+ "name": "fileName",
1560
1492
  "type": {
1561
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1493
+ "text": "string"
1562
1494
  },
1563
- "privacy": "public",
1564
- "default": "2",
1565
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1566
- "inheritedFrom": {
1567
- "name": "AccordionItem",
1568
- "module": "src/accordion-item/accordion-item.ts"
1569
- }
1495
+ "default": "''"
1570
1496
  },
1571
1497
  {
1572
1498
  "kind": "field",
1573
- "name": "expanded",
1499
+ "name": "isProcessing",
1574
1500
  "type": {
1575
1501
  "text": "boolean"
1576
1502
  },
1503
+ "default": "false"
1504
+ },
1505
+ {
1506
+ "kind": "method",
1507
+ "name": "handleClick",
1577
1508
  "privacy": "public",
1578
- "default": "false",
1579
- "description": "Expands or collapses the item.",
1580
- "inheritedFrom": {
1581
- "name": "AccordionItem",
1582
- "module": "src/accordion-item/accordion-item.ts"
1583
- }
1509
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1584
1510
  },
1585
1511
  {
1586
- "kind": "field",
1587
- "name": "id",
1588
- "type": {
1589
- "text": "string"
1590
- },
1512
+ "kind": "method",
1513
+ "name": "onInputChange",
1591
1514
  "privacy": "public",
1592
- "description": "The item ID",
1593
- "inheritedFrom": {
1594
- "name": "AccordionItem",
1595
- "module": "src/accordion-item/accordion-item.ts"
1596
- }
1515
+ "parameters": [
1516
+ {
1517
+ "name": "e",
1518
+ "type": {
1519
+ "text": "Event"
1520
+ },
1521
+ "description": "The change event from the file input"
1522
+ }
1523
+ ],
1524
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1597
1525
  },
1598
1526
  {
1599
- "kind": "field",
1600
- "name": "change",
1601
- "privacy": "private",
1602
- "inheritedFrom": {
1603
- "name": "AccordionItem",
1604
- "module": "src/accordion-item/accordion-item.ts"
1527
+ "kind": "method",
1528
+ "name": "clearSelection",
1529
+ "privacy": "public",
1530
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
1531
+ },
1532
+ {
1533
+ "kind": "method",
1534
+ "name": "getSelectedFile",
1535
+ "privacy": "public",
1536
+ "description": "Gets the currently selected file object",
1537
+ "return": {
1538
+ "type": {
1539
+ "text": ""
1540
+ }
1605
1541
  }
1606
1542
  },
1543
+ {
1544
+ "kind": "method",
1545
+ "name": "showError",
1546
+ "privacy": "protected",
1547
+ "parameters": [
1548
+ {
1549
+ "name": "title",
1550
+ "type": {
1551
+ "text": "string"
1552
+ },
1553
+ "description": "The error title"
1554
+ },
1555
+ {
1556
+ "name": "message",
1557
+ "type": {
1558
+ "text": "string"
1559
+ },
1560
+ "description": "The error message"
1561
+ }
1562
+ ],
1563
+ "description": "Shows an error notification using the unified error handling system"
1564
+ },
1565
+ {
1566
+ "kind": "method",
1567
+ "name": "onFileSelected",
1568
+ "privacy": "protected",
1569
+ "return": {
1570
+ "type": {
1571
+ "text": "void"
1572
+ }
1573
+ },
1574
+ "parameters": [
1575
+ {
1576
+ "name": "files",
1577
+ "type": {
1578
+ "text": "File[]"
1579
+ },
1580
+ "description": "The selected file"
1581
+ }
1582
+ ],
1583
+ "description": "Abstract method called when a file is selected"
1584
+ },
1585
+ {
1586
+ "kind": "method",
1587
+ "name": "onFileCleared",
1588
+ "privacy": "protected",
1589
+ "return": {
1590
+ "type": {
1591
+ "text": "void"
1592
+ }
1593
+ },
1594
+ "description": "Abstract method called when file selection is cleared"
1595
+ },
1607
1596
  {
1608
1597
  "kind": "field",
1609
1598
  "name": "_presentation",
@@ -1718,107 +1707,110 @@
1718
1707
  ],
1719
1708
  "events": [
1720
1709
  {
1721
- "description": "Fires a custom 'change' event when the button is invoked",
1722
- "name": "change",
1723
- "inheritedFrom": {
1724
- "name": "AccordionItem",
1725
- "module": "src/accordion-item/accordion-item.ts"
1726
- }
1710
+ "description": "Fired when file size validation fails. detail: `Error`",
1711
+ "name": "error"
1712
+ },
1713
+ {
1714
+ "description": "Fired when selection is cleared",
1715
+ "name": "clear"
1727
1716
  }
1728
- ]
1729
- },
1730
- {
1731
- "kind": "variable",
1732
- "name": "foundationAccordionItemShadowOptions",
1733
- "type": {
1734
- "text": "ShadowRootInit"
1735
- },
1736
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1737
- },
1738
- {
1739
- "kind": "variable",
1740
- "name": "defaultAccordionItemConfig",
1741
- "type": {
1742
- "text": "object"
1743
- },
1744
- "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}"
1745
- },
1746
- {
1747
- "kind": "variable",
1748
- "name": "foundationAccordionItem",
1749
- "description": "The Foundation Accordion Item",
1750
- "privacy": "public"
1717
+ ],
1718
+ "attributes": [
1719
+ {
1720
+ "name": "label",
1721
+ "type": {
1722
+ "text": "string"
1723
+ },
1724
+ "fieldName": "label"
1725
+ },
1726
+ {
1727
+ "name": "accept",
1728
+ "type": {
1729
+ "text": "string"
1730
+ },
1731
+ "default": "''",
1732
+ "fieldName": "accept"
1733
+ },
1734
+ {
1735
+ "name": "file-size-limit-bytes",
1736
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
1737
+ "resolveInitializer": {
1738
+ "module": "src/_common/base-file-component.ts"
1739
+ },
1740
+ "fieldName": "fileSizeLimitBytes"
1741
+ }
1742
+ ],
1743
+ "superclass": {
1744
+ "name": "FoundationElement",
1745
+ "package": "@microsoft/fast-foundation"
1746
+ }
1751
1747
  }
1752
1748
  ],
1753
1749
  "exports": [
1754
1750
  {
1755
1751
  "kind": "js",
1756
- "name": "AccordionItem",
1757
- "declaration": {
1758
- "name": "AccordionItem",
1759
- "module": "src/accordion-item/accordion-item.ts"
1760
- }
1761
- },
1762
- {
1763
- "kind": "js",
1764
- "name": "foundationAccordionItemShadowOptions",
1765
- "declaration": {
1766
- "name": "foundationAccordionItemShadowOptions",
1767
- "module": "src/accordion-item/accordion-item.ts"
1768
- }
1769
- },
1770
- {
1771
- "kind": "js",
1772
- "name": "defaultAccordionItemConfig",
1773
- "declaration": {
1774
- "name": "defaultAccordionItemConfig",
1775
- "module": "src/accordion-item/accordion-item.ts"
1776
- }
1777
- },
1778
- {
1779
- "kind": "js",
1780
- "name": "foundationAccordionItem",
1752
+ "name": "BaseFileComponent",
1781
1753
  "declaration": {
1782
- "name": "foundationAccordionItem",
1783
- "module": "src/accordion-item/accordion-item.ts"
1754
+ "name": "BaseFileComponent",
1755
+ "module": "src/_common/base-file-component.ts"
1784
1756
  }
1785
1757
  }
1786
1758
  ]
1787
1759
  },
1788
1760
  {
1789
1761
  "kind": "javascript-module",
1790
- "path": "src/accordion-item/index.ts",
1791
- "declarations": [],
1762
+ "path": "src/_common/field-styles.ts",
1763
+ "declarations": [
1764
+ {
1765
+ "kind": "variable",
1766
+ "name": "sharedFieldStyles",
1767
+ "default": "css`\n .label-hidden {\n margin: 0;\n }\n\n .control-field {\n display: flex;\n flex: 1 1 0%;\n min-width: 0;\n align-self: stretch;\n align-items: stretch;\n }\n\n .control-field .control {\n flex: 1 1 auto;\n min-width: 0;\n width: auto;\n }\n\n .prefix,\n .suffix {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n box-sizing: border-box;\n padding: 0 calc(var(--design-unit) * 2px);\n user-select: none;\n white-space: nowrap;\n background-color: var(--neutral-fill-rest);\n color: var(--neutral-foreground-hint);\n font-size: var(--type-ramp-base-font-size);\n font-family: inherit;\n line-height: 1;\n }\n\n .prefix {\n border-right: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n .suffix {\n border-left: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-prefix:not(.has-suffix)) .control-field .control {\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-suffix:not(.has-prefix)) .control-field .control {\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n :host(.has-prefix.has-suffix) .control-field .control {\n border-radius: 0;\n }\n`"
1768
+ }
1769
+ ],
1792
1770
  "exports": [
1793
1771
  {
1794
1772
  "kind": "js",
1795
- "name": "*",
1773
+ "name": "sharedFieldStyles",
1796
1774
  "declaration": {
1797
- "name": "*",
1798
- "package": "./accordion-item.template"
1775
+ "name": "sharedFieldStyles",
1776
+ "module": "src/_common/field-styles.ts"
1799
1777
  }
1800
- },
1778
+ }
1779
+ ]
1780
+ },
1781
+ {
1782
+ "kind": "javascript-module",
1783
+ "path": "src/_common/icons.ts",
1784
+ "declarations": [
1801
1785
  {
1802
- "kind": "js",
1803
- "name": "*",
1804
- "declaration": {
1805
- "name": "*",
1806
- "package": "./accordion-item.styles"
1807
- }
1808
- },
1786
+ "kind": "function",
1787
+ "name": "closeIcon",
1788
+ "parameters": [
1789
+ {
1790
+ "name": "slot",
1791
+ "default": "'start'"
1792
+ },
1793
+ {
1794
+ "name": "fill",
1795
+ "default": "'#879ba6'"
1796
+ }
1797
+ ]
1798
+ }
1799
+ ],
1800
+ "exports": [
1809
1801
  {
1810
1802
  "kind": "js",
1811
- "name": "*",
1803
+ "name": "closeIcon",
1812
1804
  "declaration": {
1813
- "name": "*",
1814
- "package": "./accordion-item"
1805
+ "name": "closeIcon",
1806
+ "module": "src/_common/icons.ts"
1815
1807
  }
1816
1808
  }
1817
1809
  ]
1818
1810
  },
1819
1811
  {
1820
1812
  "kind": "javascript-module",
1821
- "path": "src/_config/index.ts",
1813
+ "path": "src/_common/index.ts",
1822
1814
  "declarations": [],
1823
1815
  "exports": [
1824
1816
  {
@@ -1826,7 +1818,7 @@
1826
1818
  "name": "*",
1827
1819
  "declaration": {
1828
1820
  "name": "*",
1829
- "package": "./styles"
1821
+ "package": "./affix-mixin"
1830
1822
  }
1831
1823
  },
1832
1824
  {
@@ -1834,7 +1826,7 @@
1834
1826
  "name": "*",
1835
1827
  "declaration": {
1836
1828
  "name": "*",
1837
- "package": "./tokens"
1829
+ "package": "./base-file-component"
1838
1830
  }
1839
1831
  },
1840
1832
  {
@@ -1842,41 +1834,26 @@
1842
1834
  "name": "*",
1843
1835
  "declaration": {
1844
1836
  "name": "*",
1845
- "package": "./values"
1837
+ "package": "./field-styles"
1838
+ }
1839
+ },
1840
+ {
1841
+ "kind": "js",
1842
+ "name": "*",
1843
+ "declaration": {
1844
+ "name": "*",
1845
+ "package": "./icons"
1846
1846
  }
1847
1847
  }
1848
1848
  ]
1849
1849
  },
1850
1850
  {
1851
1851
  "kind": "javascript-module",
1852
- "path": "src/actions-menu/actions-menu.styles.ts",
1852
+ "path": "src/accordion/accordion.styles.ts",
1853
1853
  "declarations": [
1854
1854
  {
1855
1855
  "kind": "function",
1856
- "name": "actionsMenuBaseStyles",
1857
- "return": {
1858
- "type": {
1859
- "text": "ElementStyles"
1860
- }
1861
- },
1862
- "parameters": [
1863
- {
1864
- "name": "context",
1865
- "type": {
1866
- "text": "ElementDefinitionContext"
1867
- }
1868
- },
1869
- {
1870
- "name": "definition",
1871
- "type": {
1872
- "text": "FoundationElementDefinition"
1873
- }
1874
- }
1875
- ]
1876
- },
1877
- {
1878
- "kind": "function",
1879
- "name": "foundationActionsMenuStyles",
1856
+ "name": "foundationAccordionStyles",
1880
1857
  "return": {
1881
1858
  "type": {
1882
1859
  "text": "ElementStyles"
@@ -1901,281 +1878,277 @@
1901
1878
  "exports": [
1902
1879
  {
1903
1880
  "kind": "js",
1904
- "name": "actionsMenuBaseStyles",
1905
- "declaration": {
1906
- "name": "actionsMenuBaseStyles",
1907
- "module": "src/actions-menu/actions-menu.styles.ts"
1908
- }
1909
- },
1910
- {
1911
- "kind": "js",
1912
- "name": "foundationActionsMenuStyles",
1881
+ "name": "foundationAccordionStyles",
1913
1882
  "declaration": {
1914
- "name": "foundationActionsMenuStyles",
1915
- "module": "src/actions-menu/actions-menu.styles.ts"
1883
+ "name": "foundationAccordionStyles",
1884
+ "module": "src/accordion/accordion.styles.ts"
1916
1885
  }
1917
1886
  }
1918
1887
  ]
1919
1888
  },
1920
1889
  {
1921
1890
  "kind": "javascript-module",
1922
- "path": "src/actions-menu/actions-menu.template.ts",
1891
+ "path": "src/accordion/accordion.template.ts",
1923
1892
  "declarations": [
1924
1893
  {
1925
1894
  "kind": "function",
1926
- "name": "menuTemplate",
1895
+ "name": "foundationAccordionTemplate",
1896
+ "return": {
1897
+ "type": {
1898
+ "text": "ViewTemplate<Accordion>"
1899
+ }
1900
+ },
1927
1901
  "parameters": [
1928
1902
  {
1929
- "name": "prefix",
1903
+ "name": "context",
1930
1904
  "type": {
1931
- "text": "string"
1905
+ "text": "ElementDefinitionContext"
1932
1906
  }
1933
- }
1934
- ]
1935
- },
1936
- {
1937
- "kind": "function",
1938
- "name": "singleOptionTemplate",
1939
- "parameters": [
1907
+ },
1940
1908
  {
1941
- "name": "prefix",
1909
+ "name": "definition",
1942
1910
  "type": {
1943
- "text": "string"
1911
+ "text": "FoundationElementDefinition"
1944
1912
  }
1945
1913
  }
1946
1914
  ]
1947
- },
1948
- {
1949
- "kind": "variable",
1950
- "name": "foundationActionsMenuTemplate",
1951
- "type": {
1952
- "text": "ViewTemplate<ActionsMenu>"
1953
- },
1954
- "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`"
1955
1915
  }
1956
1916
  ],
1957
1917
  "exports": [
1958
1918
  {
1959
1919
  "kind": "js",
1960
- "name": "menuTemplate",
1961
- "declaration": {
1962
- "name": "menuTemplate",
1963
- "module": "src/actions-menu/actions-menu.template.ts"
1964
- }
1965
- },
1966
- {
1967
- "kind": "js",
1968
- "name": "singleOptionTemplate",
1969
- "declaration": {
1970
- "name": "singleOptionTemplate",
1971
- "module": "src/actions-menu/actions-menu.template.ts"
1972
- }
1973
- },
1974
- {
1975
- "kind": "js",
1976
- "name": "foundationActionsMenuTemplate",
1920
+ "name": "foundationAccordionTemplate",
1977
1921
  "declaration": {
1978
- "name": "foundationActionsMenuTemplate",
1979
- "module": "src/actions-menu/actions-menu.template.ts"
1922
+ "name": "foundationAccordionTemplate",
1923
+ "module": "src/accordion/accordion.template.ts"
1980
1924
  }
1981
1925
  }
1982
1926
  ]
1983
1927
  },
1984
1928
  {
1985
1929
  "kind": "javascript-module",
1986
- "path": "src/actions-menu/actions-menu.ts",
1930
+ "path": "src/accordion/accordion.ts",
1987
1931
  "declarations": [
1988
1932
  {
1989
1933
  "kind": "class",
1990
1934
  "description": "",
1991
- "name": "ActionsMenu",
1992
- "members": [
1993
- {
1994
- "kind": "field",
1995
- "name": "actions",
1996
- "type": {
1997
- "text": "ActionMenuItem[]"
1998
- }
1999
- },
2000
- {
2001
- "kind": "field",
2002
- "name": "isVertical",
2003
- "type": {
2004
- "text": "boolean"
2005
- },
2006
- "default": "false"
2007
- },
2008
- {
2009
- "kind": "field",
2010
- "name": "addDefaultActions",
2011
- "type": {
2012
- "text": "boolean"
2013
- },
2014
- "default": "true"
2015
- },
1935
+ "name": "Accordion",
1936
+ "superclass": {
1937
+ "name": "FASTAccordion",
1938
+ "package": "@microsoft/fast-foundation"
1939
+ },
1940
+ "tagName": "%%prefix%%-accordion",
1941
+ "customElement": true,
1942
+ "attributes": [
2016
1943
  {
2017
- "kind": "field",
2018
- "name": "autoCloseOnAction",
1944
+ "name": "expand-mode",
2019
1945
  "type": {
2020
- "text": "boolean"
1946
+ "text": "AccordionExpandMode"
2021
1947
  },
2022
- "default": "true"
2023
- },
2024
- {
2025
- "kind": "field",
2026
- "name": "classNames",
2027
- "type": {
2028
- "text": "string"
2029
- }
2030
- },
2031
- {
2032
- "kind": "field",
2033
- "name": "definition",
2034
- "type": {
2035
- "text": "any"
1948
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1949
+ "fieldName": "expandmode",
1950
+ "inheritedFrom": {
1951
+ "name": "Accordion",
1952
+ "module": "src/accordion/accordion.ts"
2036
1953
  }
2037
- },
1954
+ }
1955
+ ],
1956
+ "members": [
2038
1957
  {
2039
1958
  "kind": "field",
2040
- "name": "name",
1959
+ "name": "expandmode",
2041
1960
  "type": {
2042
- "text": "string"
1961
+ "text": "AccordionExpandMode"
2043
1962
  },
2044
- "default": "'Actions'"
1963
+ "privacy": "public",
1964
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1965
+ "inheritedFrom": {
1966
+ "name": "Accordion",
1967
+ "module": "src/accordion/accordion.ts"
1968
+ }
2045
1969
  },
2046
1970
  {
2047
1971
  "kind": "field",
2048
- "name": "open",
1972
+ "name": "activeid",
2049
1973
  "type": {
2050
- "text": "boolean"
1974
+ "text": "string | null"
2051
1975
  },
2052
- "default": "false"
2053
- },
2054
- {
2055
- "kind": "field",
2056
- "name": "buttonAppearance",
2057
- "type": {
2058
- "text": "string"
1976
+ "privacy": "private",
1977
+ "inheritedFrom": {
1978
+ "name": "Accordion",
1979
+ "module": "src/accordion/accordion.ts"
2059
1980
  }
2060
1981
  },
2061
1982
  {
2062
1983
  "kind": "field",
2063
- "name": "hideDisabled",
1984
+ "name": "activeItemIndex",
2064
1985
  "type": {
2065
- "text": "boolean"
1986
+ "text": "number"
2066
1987
  },
2067
- "default": "false"
1988
+ "privacy": "private",
1989
+ "default": "0",
1990
+ "inheritedFrom": {
1991
+ "name": "Accordion",
1992
+ "module": "src/accordion/accordion.ts"
1993
+ }
2068
1994
  },
2069
1995
  {
2070
1996
  "kind": "field",
2071
- "name": "hideMenuSingleOption",
1997
+ "name": "accordionIds",
2072
1998
  "type": {
2073
- "text": "boolean"
1999
+ "text": "Array<string | null>"
2074
2000
  },
2075
- "default": "false"
2001
+ "privacy": "private",
2002
+ "inheritedFrom": {
2003
+ "name": "Accordion",
2004
+ "module": "src/accordion/accordion.ts"
2005
+ }
2076
2006
  },
2077
2007
  {
2078
2008
  "kind": "field",
2079
- "name": "singleOption",
2080
- "type": {
2081
- "text": "ActionMenuItem"
2009
+ "name": "change",
2010
+ "privacy": "private",
2011
+ "inheritedFrom": {
2012
+ "name": "Accordion",
2013
+ "module": "src/accordion/accordion.ts"
2082
2014
  }
2083
2015
  },
2084
2016
  {
2085
- "kind": "field",
2086
- "name": "actionsMenu",
2087
- "type": {
2088
- "text": "HTMLElement"
2017
+ "kind": "method",
2018
+ "name": "findExpandedItem",
2019
+ "privacy": "private",
2020
+ "return": {
2021
+ "type": {
2022
+ "text": "AccordionItem | null"
2023
+ }
2024
+ },
2025
+ "inheritedFrom": {
2026
+ "name": "Accordion",
2027
+ "module": "src/accordion/accordion.ts"
2089
2028
  }
2090
2029
  },
2091
2030
  {
2092
2031
  "kind": "field",
2093
- "name": "actionsOpener",
2094
- "type": {
2095
- "text": "HTMLElement"
2032
+ "name": "setItems",
2033
+ "privacy": "private",
2034
+ "inheritedFrom": {
2035
+ "name": "Accordion",
2036
+ "module": "src/accordion/accordion.ts"
2096
2037
  }
2097
2038
  },
2098
2039
  {
2099
2040
  "kind": "method",
2100
- "name": "updateMenuPosition",
2101
- "privacy": "private"
2041
+ "name": "resetItems",
2042
+ "privacy": "private",
2043
+ "return": {
2044
+ "type": {
2045
+ "text": "void"
2046
+ }
2047
+ },
2048
+ "inheritedFrom": {
2049
+ "name": "Accordion",
2050
+ "module": "src/accordion/accordion.ts"
2051
+ }
2102
2052
  },
2103
2053
  {
2104
- "kind": "method",
2105
- "name": "definitionChanged",
2106
- "privacy": "protected",
2107
- "parameters": [
2108
- {
2109
- "name": "oldValue",
2110
- "type": {
2111
- "text": "any"
2112
- }
2113
- },
2114
- {
2115
- "name": "newValue",
2116
- "type": {
2117
- "text": "any"
2118
- }
2119
- }
2120
- ]
2054
+ "kind": "field",
2055
+ "name": "removeItemListeners",
2056
+ "privacy": "private",
2057
+ "inheritedFrom": {
2058
+ "name": "Accordion",
2059
+ "module": "src/accordion/accordion.ts"
2060
+ }
2121
2061
  },
2122
2062
  {
2123
- "kind": "method",
2124
- "name": "openChanged",
2125
- "privacy": "protected"
2063
+ "kind": "field",
2064
+ "name": "activeItemChange",
2065
+ "privacy": "private",
2066
+ "inheritedFrom": {
2067
+ "name": "Accordion",
2068
+ "module": "src/accordion/accordion.ts"
2069
+ }
2126
2070
  },
2127
2071
  {
2128
2072
  "kind": "method",
2129
- "name": "toggleActionsMenuVisibility"
2073
+ "name": "getItemIds",
2074
+ "privacy": "private",
2075
+ "return": {
2076
+ "type": {
2077
+ "text": "Array<string | null>"
2078
+ }
2079
+ },
2080
+ "inheritedFrom": {
2081
+ "name": "Accordion",
2082
+ "module": "src/accordion/accordion.ts"
2083
+ }
2130
2084
  },
2131
2085
  {
2132
2086
  "kind": "method",
2133
- "name": "onActionMenuItemClick",
2134
- "parameters": [
2135
- {
2136
- "name": "callback",
2137
- "type": {
2138
- "text": "(rowData) => void | any"
2139
- }
2087
+ "name": "isSingleExpandMode",
2088
+ "privacy": "private",
2089
+ "return": {
2090
+ "type": {
2091
+ "text": "boolean"
2140
2092
  }
2141
- ]
2093
+ },
2094
+ "inheritedFrom": {
2095
+ "name": "Accordion",
2096
+ "module": "src/accordion/accordion.ts"
2097
+ }
2142
2098
  },
2143
2099
  {
2144
2100
  "kind": "field",
2145
- "name": "allActions",
2146
- "type": {
2147
- "text": "ActionMenuItem[]"
2148
- },
2149
- "readonly": true
2101
+ "name": "handleItemKeyDown",
2102
+ "privacy": "private",
2103
+ "inheritedFrom": {
2104
+ "name": "Accordion",
2105
+ "module": "src/accordion/accordion.ts"
2106
+ }
2150
2107
  },
2151
2108
  {
2152
2109
  "kind": "field",
2153
- "name": "rowData",
2154
- "readonly": true
2110
+ "name": "handleItemFocus",
2111
+ "privacy": "private",
2112
+ "inheritedFrom": {
2113
+ "name": "Accordion",
2114
+ "module": "src/accordion/accordion.ts"
2115
+ }
2155
2116
  },
2156
2117
  {
2157
2118
  "kind": "method",
2158
- "name": "getLabel",
2119
+ "name": "adjust",
2120
+ "privacy": "private",
2121
+ "return": {
2122
+ "type": {
2123
+ "text": "void"
2124
+ }
2125
+ },
2159
2126
  "parameters": [
2160
2127
  {
2161
- "name": "name",
2128
+ "name": "adjustment",
2162
2129
  "type": {
2163
- "text": "string | ((rowData: any) => string)"
2130
+ "text": "number"
2164
2131
  }
2165
2132
  }
2166
- ]
2133
+ ],
2134
+ "inheritedFrom": {
2135
+ "name": "Accordion",
2136
+ "module": "src/accordion/accordion.ts"
2137
+ }
2167
2138
  },
2168
2139
  {
2169
2140
  "kind": "method",
2170
- "name": "getTemplate",
2171
- "parameters": [
2172
- {
2173
- "name": "prefix",
2174
- "type": {
2175
- "text": "string"
2176
- }
2141
+ "name": "focusItem",
2142
+ "privacy": "private",
2143
+ "return": {
2144
+ "type": {
2145
+ "text": "void"
2177
2146
  }
2178
- ]
2147
+ },
2148
+ "inheritedFrom": {
2149
+ "name": "Accordion",
2150
+ "module": "src/accordion/accordion.ts"
2151
+ }
2179
2152
  },
2180
2153
  {
2181
2154
  "kind": "field",
@@ -2289,107 +2262,78 @@
2289
2262
  }
2290
2263
  }
2291
2264
  ],
2292
- "attributes": [
2293
- {
2294
- "name": "is-vertical",
2295
- "type": {
2296
- "text": "boolean"
2297
- },
2298
- "default": "false",
2299
- "fieldName": "isVertical"
2300
- },
2301
- {
2302
- "name": "add-default-actions",
2303
- "type": {
2304
- "text": "boolean"
2305
- },
2306
- "default": "true",
2307
- "fieldName": "addDefaultActions"
2308
- },
2309
- {
2310
- "name": "auto-close-on-action",
2311
- "type": {
2312
- "text": "boolean"
2313
- },
2314
- "default": "true",
2315
- "fieldName": "autoCloseOnAction"
2316
- },
2317
- {
2318
- "name": "name",
2319
- "type": {
2320
- "text": "string"
2321
- },
2322
- "default": "'Actions'",
2323
- "fieldName": "name"
2324
- },
2325
- {
2326
- "name": "open",
2327
- "type": {
2328
- "text": "boolean"
2329
- },
2330
- "default": "false",
2331
- "fieldName": "open"
2332
- },
2333
- {
2334
- "name": "buttonAppearance",
2335
- "type": {
2336
- "text": "string"
2337
- },
2338
- "fieldName": "buttonAppearance"
2339
- },
2340
- {
2341
- "name": "hide-disabled",
2342
- "type": {
2343
- "text": "boolean"
2344
- },
2345
- "default": "false",
2346
- "fieldName": "hideDisabled"
2347
- },
2265
+ "events": [
2348
2266
  {
2349
- "name": "hide-menu-single-option",
2350
- "type": {
2351
- "text": "boolean"
2352
- },
2353
- "default": "false",
2354
- "fieldName": "hideMenuSingleOption"
2267
+ "description": "Fires a custom 'change' event when the active item changes",
2268
+ "name": "change",
2269
+ "inheritedFrom": {
2270
+ "name": "Accordion",
2271
+ "module": "src/accordion/accordion.ts"
2272
+ }
2355
2273
  }
2356
- ],
2357
- "superclass": {
2358
- "name": "FoundationElement",
2359
- "package": "@microsoft/fast-foundation"
2274
+ ]
2275
+ },
2276
+ {
2277
+ "kind": "variable",
2278
+ "name": "foundationAccordionShadowOptions",
2279
+ "type": {
2280
+ "text": "ShadowRootInit"
2360
2281
  },
2361
- "tagName": "%%prefix%%-actions-menu",
2362
- "customElement": true
2282
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2363
2283
  },
2364
2284
  {
2365
2285
  "kind": "variable",
2366
- "name": "foundationActionsMenu",
2367
- "description": "The Foundation Actions Menu",
2286
+ "name": "defaultAccordionConfig",
2287
+ "type": {
2288
+ "text": "object"
2289
+ },
2290
+ "default": "{}"
2291
+ },
2292
+ {
2293
+ "kind": "variable",
2294
+ "name": "foundationAccordion",
2295
+ "description": "The Foundation Accordion",
2368
2296
  "privacy": "public"
2369
2297
  }
2370
2298
  ],
2371
2299
  "exports": [
2372
2300
  {
2373
2301
  "kind": "js",
2374
- "name": "ActionsMenu",
2302
+ "name": "Accordion",
2375
2303
  "declaration": {
2376
- "name": "ActionsMenu",
2377
- "module": "src/actions-menu/actions-menu.ts"
2304
+ "name": "Accordion",
2305
+ "module": "src/accordion/accordion.ts"
2306
+ }
2307
+ },
2308
+ {
2309
+ "kind": "js",
2310
+ "name": "foundationAccordionShadowOptions",
2311
+ "declaration": {
2312
+ "name": "foundationAccordionShadowOptions",
2313
+ "module": "src/accordion/accordion.ts"
2314
+ }
2315
+ },
2316
+ {
2317
+ "kind": "js",
2318
+ "name": "defaultAccordionConfig",
2319
+ "declaration": {
2320
+ "name": "defaultAccordionConfig",
2321
+ "module": "src/accordion/accordion.ts"
2378
2322
  }
2379
2323
  },
2380
2324
  {
2381
2325
  "kind": "js",
2382
- "name": "foundationActionsMenu",
2326
+ "name": "foundationAccordion",
2383
2327
  "declaration": {
2384
- "name": "foundationActionsMenu",
2385
- "module": "src/actions-menu/actions-menu.ts"
2328
+ "name": "foundationAccordion",
2329
+ "module": "src/accordion/accordion.ts"
2386
2330
  }
2387
2331
  }
2388
2332
  ]
2389
2333
  },
2390
2334
  {
2391
2335
  "kind": "javascript-module",
2392
- "path": "src/actions-menu/index.ts",
2336
+ "path": "src/accordion/index.ts",
2393
2337
  "declarations": [],
2394
2338
  "exports": [
2395
2339
  {
@@ -2397,7 +2341,7 @@
2397
2341
  "name": "*",
2398
2342
  "declaration": {
2399
2343
  "name": "*",
2400
- "package": "./actions-menu.styles"
2344
+ "package": "./accordion.template"
2401
2345
  }
2402
2346
  },
2403
2347
  {
@@ -2405,7 +2349,7 @@
2405
2349
  "name": "*",
2406
2350
  "declaration": {
2407
2351
  "name": "*",
2408
- "package": "./actions-menu.template"
2352
+ "package": "./accordion.styles"
2409
2353
  }
2410
2354
  },
2411
2355
  {
@@ -2413,18 +2357,41 @@
2413
2357
  "name": "*",
2414
2358
  "declaration": {
2415
2359
  "name": "*",
2416
- "package": "./actions-menu"
2360
+ "package": "./accordion"
2417
2361
  }
2418
2362
  }
2419
2363
  ]
2420
2364
  },
2421
2365
  {
2422
2366
  "kind": "javascript-module",
2423
- "path": "src/accordion/accordion.styles.ts",
2367
+ "path": "src/actions-menu/actions-menu.styles.ts",
2424
2368
  "declarations": [
2425
2369
  {
2426
2370
  "kind": "function",
2427
- "name": "foundationAccordionStyles",
2371
+ "name": "actionsMenuBaseStyles",
2372
+ "return": {
2373
+ "type": {
2374
+ "text": "ElementStyles"
2375
+ }
2376
+ },
2377
+ "parameters": [
2378
+ {
2379
+ "name": "context",
2380
+ "type": {
2381
+ "text": "ElementDefinitionContext"
2382
+ }
2383
+ },
2384
+ {
2385
+ "name": "definition",
2386
+ "type": {
2387
+ "text": "FoundationElementDefinition"
2388
+ }
2389
+ }
2390
+ ]
2391
+ },
2392
+ {
2393
+ "kind": "function",
2394
+ "name": "foundationActionsMenuStyles",
2428
2395
  "return": {
2429
2396
  "type": {
2430
2397
  "text": "ElementStyles"
@@ -2449,277 +2416,281 @@
2449
2416
  "exports": [
2450
2417
  {
2451
2418
  "kind": "js",
2452
- "name": "foundationAccordionStyles",
2419
+ "name": "actionsMenuBaseStyles",
2453
2420
  "declaration": {
2454
- "name": "foundationAccordionStyles",
2455
- "module": "src/accordion/accordion.styles.ts"
2421
+ "name": "actionsMenuBaseStyles",
2422
+ "module": "src/actions-menu/actions-menu.styles.ts"
2423
+ }
2424
+ },
2425
+ {
2426
+ "kind": "js",
2427
+ "name": "foundationActionsMenuStyles",
2428
+ "declaration": {
2429
+ "name": "foundationActionsMenuStyles",
2430
+ "module": "src/actions-menu/actions-menu.styles.ts"
2456
2431
  }
2457
2432
  }
2458
2433
  ]
2459
2434
  },
2460
2435
  {
2461
2436
  "kind": "javascript-module",
2462
- "path": "src/accordion/accordion.template.ts",
2437
+ "path": "src/actions-menu/actions-menu.template.ts",
2463
2438
  "declarations": [
2464
2439
  {
2465
2440
  "kind": "function",
2466
- "name": "foundationAccordionTemplate",
2467
- "return": {
2468
- "type": {
2469
- "text": "ViewTemplate<Accordion>"
2470
- }
2471
- },
2441
+ "name": "menuTemplate",
2472
2442
  "parameters": [
2473
2443
  {
2474
- "name": "context",
2444
+ "name": "prefix",
2475
2445
  "type": {
2476
- "text": "ElementDefinitionContext"
2446
+ "text": "string"
2477
2447
  }
2478
- },
2448
+ }
2449
+ ]
2450
+ },
2451
+ {
2452
+ "kind": "function",
2453
+ "name": "singleOptionTemplate",
2454
+ "parameters": [
2479
2455
  {
2480
- "name": "definition",
2456
+ "name": "prefix",
2481
2457
  "type": {
2482
- "text": "FoundationElementDefinition"
2458
+ "text": "string"
2483
2459
  }
2484
2460
  }
2485
2461
  ]
2462
+ },
2463
+ {
2464
+ "kind": "variable",
2465
+ "name": "foundationActionsMenuTemplate",
2466
+ "type": {
2467
+ "text": "ViewTemplate<ActionsMenu>"
2468
+ },
2469
+ "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`"
2486
2470
  }
2487
2471
  ],
2488
2472
  "exports": [
2489
2473
  {
2490
2474
  "kind": "js",
2491
- "name": "foundationAccordionTemplate",
2475
+ "name": "menuTemplate",
2492
2476
  "declaration": {
2493
- "name": "foundationAccordionTemplate",
2494
- "module": "src/accordion/accordion.template.ts"
2477
+ "name": "menuTemplate",
2478
+ "module": "src/actions-menu/actions-menu.template.ts"
2479
+ }
2480
+ },
2481
+ {
2482
+ "kind": "js",
2483
+ "name": "singleOptionTemplate",
2484
+ "declaration": {
2485
+ "name": "singleOptionTemplate",
2486
+ "module": "src/actions-menu/actions-menu.template.ts"
2487
+ }
2488
+ },
2489
+ {
2490
+ "kind": "js",
2491
+ "name": "foundationActionsMenuTemplate",
2492
+ "declaration": {
2493
+ "name": "foundationActionsMenuTemplate",
2494
+ "module": "src/actions-menu/actions-menu.template.ts"
2495
2495
  }
2496
2496
  }
2497
2497
  ]
2498
2498
  },
2499
2499
  {
2500
2500
  "kind": "javascript-module",
2501
- "path": "src/accordion/accordion.ts",
2501
+ "path": "src/actions-menu/actions-menu.ts",
2502
2502
  "declarations": [
2503
2503
  {
2504
2504
  "kind": "class",
2505
2505
  "description": "",
2506
- "name": "Accordion",
2507
- "superclass": {
2508
- "name": "FASTAccordion",
2509
- "package": "@microsoft/fast-foundation"
2510
- },
2511
- "tagName": "%%prefix%%-accordion",
2512
- "customElement": true,
2513
- "attributes": [
2506
+ "name": "ActionsMenu",
2507
+ "members": [
2514
2508
  {
2515
- "name": "expand-mode",
2509
+ "kind": "field",
2510
+ "name": "actions",
2516
2511
  "type": {
2517
- "text": "AccordionExpandMode"
2518
- },
2519
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2520
- "fieldName": "expandmode",
2521
- "inheritedFrom": {
2522
- "name": "Accordion",
2523
- "module": "src/accordion/accordion.ts"
2512
+ "text": "ActionMenuItem[]"
2524
2513
  }
2525
- }
2526
- ],
2527
- "members": [
2514
+ },
2528
2515
  {
2529
2516
  "kind": "field",
2530
- "name": "expandmode",
2517
+ "name": "isVertical",
2531
2518
  "type": {
2532
- "text": "AccordionExpandMode"
2519
+ "text": "boolean"
2533
2520
  },
2534
- "privacy": "public",
2535
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2536
- "inheritedFrom": {
2537
- "name": "Accordion",
2538
- "module": "src/accordion/accordion.ts"
2539
- }
2521
+ "default": "false"
2540
2522
  },
2541
2523
  {
2542
2524
  "kind": "field",
2543
- "name": "activeid",
2525
+ "name": "addDefaultActions",
2544
2526
  "type": {
2545
- "text": "string | null"
2527
+ "text": "boolean"
2546
2528
  },
2547
- "privacy": "private",
2548
- "inheritedFrom": {
2549
- "name": "Accordion",
2550
- "module": "src/accordion/accordion.ts"
2551
- }
2529
+ "default": "true"
2552
2530
  },
2553
2531
  {
2554
2532
  "kind": "field",
2555
- "name": "activeItemIndex",
2533
+ "name": "autoCloseOnAction",
2556
2534
  "type": {
2557
- "text": "number"
2535
+ "text": "boolean"
2558
2536
  },
2559
- "privacy": "private",
2560
- "default": "0",
2561
- "inheritedFrom": {
2562
- "name": "Accordion",
2563
- "module": "src/accordion/accordion.ts"
2564
- }
2537
+ "default": "true"
2565
2538
  },
2566
2539
  {
2567
2540
  "kind": "field",
2568
- "name": "accordionIds",
2541
+ "name": "classNames",
2569
2542
  "type": {
2570
- "text": "Array<string | null>"
2571
- },
2572
- "privacy": "private",
2573
- "inheritedFrom": {
2574
- "name": "Accordion",
2575
- "module": "src/accordion/accordion.ts"
2543
+ "text": "string"
2576
2544
  }
2577
2545
  },
2578
2546
  {
2579
2547
  "kind": "field",
2580
- "name": "change",
2581
- "privacy": "private",
2582
- "inheritedFrom": {
2583
- "name": "Accordion",
2584
- "module": "src/accordion/accordion.ts"
2548
+ "name": "definition",
2549
+ "type": {
2550
+ "text": "any"
2585
2551
  }
2586
2552
  },
2587
2553
  {
2588
- "kind": "method",
2589
- "name": "findExpandedItem",
2590
- "privacy": "private",
2591
- "return": {
2592
- "type": {
2593
- "text": "AccordionItem | null"
2594
- }
2554
+ "kind": "field",
2555
+ "name": "name",
2556
+ "type": {
2557
+ "text": "string"
2595
2558
  },
2596
- "inheritedFrom": {
2597
- "name": "Accordion",
2598
- "module": "src/accordion/accordion.ts"
2599
- }
2559
+ "default": "'Actions'"
2600
2560
  },
2601
2561
  {
2602
2562
  "kind": "field",
2603
- "name": "setItems",
2604
- "privacy": "private",
2605
- "inheritedFrom": {
2606
- "name": "Accordion",
2607
- "module": "src/accordion/accordion.ts"
2563
+ "name": "open",
2564
+ "type": {
2565
+ "text": "boolean"
2566
+ },
2567
+ "default": "false"
2568
+ },
2569
+ {
2570
+ "kind": "field",
2571
+ "name": "buttonAppearance",
2572
+ "type": {
2573
+ "text": "string"
2608
2574
  }
2609
2575
  },
2610
2576
  {
2611
- "kind": "method",
2612
- "name": "resetItems",
2613
- "privacy": "private",
2614
- "return": {
2615
- "type": {
2616
- "text": "void"
2617
- }
2577
+ "kind": "field",
2578
+ "name": "hideDisabled",
2579
+ "type": {
2580
+ "text": "boolean"
2618
2581
  },
2619
- "inheritedFrom": {
2620
- "name": "Accordion",
2621
- "module": "src/accordion/accordion.ts"
2582
+ "default": "false"
2583
+ },
2584
+ {
2585
+ "kind": "field",
2586
+ "name": "hideMenuSingleOption",
2587
+ "type": {
2588
+ "text": "boolean"
2589
+ },
2590
+ "default": "false"
2591
+ },
2592
+ {
2593
+ "kind": "field",
2594
+ "name": "singleOption",
2595
+ "type": {
2596
+ "text": "ActionMenuItem"
2597
+ }
2598
+ },
2599
+ {
2600
+ "kind": "field",
2601
+ "name": "actionsMenu",
2602
+ "type": {
2603
+ "text": "HTMLElement"
2622
2604
  }
2623
2605
  },
2624
2606
  {
2625
2607
  "kind": "field",
2626
- "name": "removeItemListeners",
2627
- "privacy": "private",
2628
- "inheritedFrom": {
2629
- "name": "Accordion",
2630
- "module": "src/accordion/accordion.ts"
2608
+ "name": "actionsOpener",
2609
+ "type": {
2610
+ "text": "HTMLElement"
2631
2611
  }
2632
2612
  },
2633
2613
  {
2634
- "kind": "field",
2635
- "name": "activeItemChange",
2636
- "privacy": "private",
2637
- "inheritedFrom": {
2638
- "name": "Accordion",
2639
- "module": "src/accordion/accordion.ts"
2640
- }
2614
+ "kind": "method",
2615
+ "name": "updateMenuPosition",
2616
+ "privacy": "private"
2641
2617
  },
2642
2618
  {
2643
2619
  "kind": "method",
2644
- "name": "getItemIds",
2645
- "privacy": "private",
2646
- "return": {
2647
- "type": {
2648
- "text": "Array<string | null>"
2620
+ "name": "definitionChanged",
2621
+ "privacy": "protected",
2622
+ "parameters": [
2623
+ {
2624
+ "name": "oldValue",
2625
+ "type": {
2626
+ "text": "any"
2627
+ }
2628
+ },
2629
+ {
2630
+ "name": "newValue",
2631
+ "type": {
2632
+ "text": "any"
2633
+ }
2649
2634
  }
2650
- },
2651
- "inheritedFrom": {
2652
- "name": "Accordion",
2653
- "module": "src/accordion/accordion.ts"
2654
- }
2635
+ ]
2655
2636
  },
2656
2637
  {
2657
2638
  "kind": "method",
2658
- "name": "isSingleExpandMode",
2659
- "privacy": "private",
2660
- "return": {
2661
- "type": {
2662
- "text": "boolean"
2639
+ "name": "openChanged",
2640
+ "privacy": "protected"
2641
+ },
2642
+ {
2643
+ "kind": "method",
2644
+ "name": "toggleActionsMenuVisibility"
2645
+ },
2646
+ {
2647
+ "kind": "method",
2648
+ "name": "onActionMenuItemClick",
2649
+ "parameters": [
2650
+ {
2651
+ "name": "callback",
2652
+ "type": {
2653
+ "text": "(rowData) => void | any"
2654
+ }
2663
2655
  }
2664
- },
2665
- "inheritedFrom": {
2666
- "name": "Accordion",
2667
- "module": "src/accordion/accordion.ts"
2668
- }
2656
+ ]
2669
2657
  },
2670
2658
  {
2671
2659
  "kind": "field",
2672
- "name": "handleItemKeyDown",
2673
- "privacy": "private",
2674
- "inheritedFrom": {
2675
- "name": "Accordion",
2676
- "module": "src/accordion/accordion.ts"
2677
- }
2660
+ "name": "allActions",
2661
+ "type": {
2662
+ "text": "ActionMenuItem[]"
2663
+ },
2664
+ "readonly": true
2678
2665
  },
2679
2666
  {
2680
2667
  "kind": "field",
2681
- "name": "handleItemFocus",
2682
- "privacy": "private",
2683
- "inheritedFrom": {
2684
- "name": "Accordion",
2685
- "module": "src/accordion/accordion.ts"
2686
- }
2668
+ "name": "rowData",
2669
+ "readonly": true
2687
2670
  },
2688
2671
  {
2689
2672
  "kind": "method",
2690
- "name": "adjust",
2691
- "privacy": "private",
2692
- "return": {
2693
- "type": {
2694
- "text": "void"
2695
- }
2696
- },
2673
+ "name": "getLabel",
2697
2674
  "parameters": [
2698
2675
  {
2699
- "name": "adjustment",
2676
+ "name": "name",
2700
2677
  "type": {
2701
- "text": "number"
2678
+ "text": "string | ((rowData: any) => string)"
2702
2679
  }
2703
2680
  }
2704
- ],
2705
- "inheritedFrom": {
2706
- "name": "Accordion",
2707
- "module": "src/accordion/accordion.ts"
2708
- }
2681
+ ]
2709
2682
  },
2710
2683
  {
2711
2684
  "kind": "method",
2712
- "name": "focusItem",
2713
- "privacy": "private",
2714
- "return": {
2715
- "type": {
2716
- "text": "void"
2685
+ "name": "getTemplate",
2686
+ "parameters": [
2687
+ {
2688
+ "name": "prefix",
2689
+ "type": {
2690
+ "text": "string"
2691
+ }
2717
2692
  }
2718
- },
2719
- "inheritedFrom": {
2720
- "name": "Accordion",
2721
- "module": "src/accordion/accordion.ts"
2722
- }
2693
+ ]
2723
2694
  },
2724
2695
  {
2725
2696
  "kind": "field",
@@ -2833,78 +2804,107 @@
2833
2804
  }
2834
2805
  }
2835
2806
  ],
2836
- "events": [
2807
+ "attributes": [
2837
2808
  {
2838
- "description": "Fires a custom 'change' event when the active item changes",
2839
- "name": "change",
2840
- "inheritedFrom": {
2841
- "name": "Accordion",
2842
- "module": "src/accordion/accordion.ts"
2843
- }
2809
+ "name": "is-vertical",
2810
+ "type": {
2811
+ "text": "boolean"
2812
+ },
2813
+ "default": "false",
2814
+ "fieldName": "isVertical"
2815
+ },
2816
+ {
2817
+ "name": "add-default-actions",
2818
+ "type": {
2819
+ "text": "boolean"
2820
+ },
2821
+ "default": "true",
2822
+ "fieldName": "addDefaultActions"
2823
+ },
2824
+ {
2825
+ "name": "auto-close-on-action",
2826
+ "type": {
2827
+ "text": "boolean"
2828
+ },
2829
+ "default": "true",
2830
+ "fieldName": "autoCloseOnAction"
2831
+ },
2832
+ {
2833
+ "name": "name",
2834
+ "type": {
2835
+ "text": "string"
2836
+ },
2837
+ "default": "'Actions'",
2838
+ "fieldName": "name"
2839
+ },
2840
+ {
2841
+ "name": "open",
2842
+ "type": {
2843
+ "text": "boolean"
2844
+ },
2845
+ "default": "false",
2846
+ "fieldName": "open"
2847
+ },
2848
+ {
2849
+ "name": "buttonAppearance",
2850
+ "type": {
2851
+ "text": "string"
2852
+ },
2853
+ "fieldName": "buttonAppearance"
2854
+ },
2855
+ {
2856
+ "name": "hide-disabled",
2857
+ "type": {
2858
+ "text": "boolean"
2859
+ },
2860
+ "default": "false",
2861
+ "fieldName": "hideDisabled"
2862
+ },
2863
+ {
2864
+ "name": "hide-menu-single-option",
2865
+ "type": {
2866
+ "text": "boolean"
2867
+ },
2868
+ "default": "false",
2869
+ "fieldName": "hideMenuSingleOption"
2844
2870
  }
2845
- ]
2846
- },
2847
- {
2848
- "kind": "variable",
2849
- "name": "foundationAccordionShadowOptions",
2850
- "type": {
2851
- "text": "ShadowRootInit"
2852
- },
2853
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2854
- },
2855
- {
2856
- "kind": "variable",
2857
- "name": "defaultAccordionConfig",
2858
- "type": {
2859
- "text": "object"
2871
+ ],
2872
+ "superclass": {
2873
+ "name": "FoundationElement",
2874
+ "package": "@microsoft/fast-foundation"
2860
2875
  },
2861
- "default": "{}"
2876
+ "tagName": "%%prefix%%-actions-menu",
2877
+ "customElement": true
2862
2878
  },
2863
2879
  {
2864
2880
  "kind": "variable",
2865
- "name": "foundationAccordion",
2866
- "description": "The Foundation Accordion",
2881
+ "name": "foundationActionsMenu",
2882
+ "description": "The Foundation Actions Menu",
2867
2883
  "privacy": "public"
2868
2884
  }
2869
2885
  ],
2870
2886
  "exports": [
2871
2887
  {
2872
2888
  "kind": "js",
2873
- "name": "Accordion",
2874
- "declaration": {
2875
- "name": "Accordion",
2876
- "module": "src/accordion/accordion.ts"
2877
- }
2878
- },
2879
- {
2880
- "kind": "js",
2881
- "name": "foundationAccordionShadowOptions",
2882
- "declaration": {
2883
- "name": "foundationAccordionShadowOptions",
2884
- "module": "src/accordion/accordion.ts"
2885
- }
2886
- },
2887
- {
2888
- "kind": "js",
2889
- "name": "defaultAccordionConfig",
2889
+ "name": "ActionsMenu",
2890
2890
  "declaration": {
2891
- "name": "defaultAccordionConfig",
2892
- "module": "src/accordion/accordion.ts"
2891
+ "name": "ActionsMenu",
2892
+ "module": "src/actions-menu/actions-menu.ts"
2893
2893
  }
2894
2894
  },
2895
2895
  {
2896
2896
  "kind": "js",
2897
- "name": "foundationAccordion",
2897
+ "name": "foundationActionsMenu",
2898
2898
  "declaration": {
2899
- "name": "foundationAccordion",
2900
- "module": "src/accordion/accordion.ts"
2899
+ "name": "foundationActionsMenu",
2900
+ "module": "src/actions-menu/actions-menu.ts"
2901
2901
  }
2902
2902
  }
2903
2903
  ]
2904
2904
  },
2905
2905
  {
2906
2906
  "kind": "javascript-module",
2907
- "path": "src/accordion/index.ts",
2907
+ "path": "src/actions-menu/index.ts",
2908
2908
  "declarations": [],
2909
2909
  "exports": [
2910
2910
  {
@@ -2912,7 +2912,7 @@
2912
2912
  "name": "*",
2913
2913
  "declaration": {
2914
2914
  "name": "*",
2915
- "package": "./accordion.template"
2915
+ "package": "./actions-menu.styles"
2916
2916
  }
2917
2917
  },
2918
2918
  {
@@ -2920,7 +2920,7 @@
2920
2920
  "name": "*",
2921
2921
  "declaration": {
2922
2922
  "name": "*",
2923
- "package": "./accordion.styles"
2923
+ "package": "./actions-menu.template"
2924
2924
  }
2925
2925
  },
2926
2926
  {
@@ -2928,7 +2928,7 @@
2928
2928
  "name": "*",
2929
2929
  "declaration": {
2930
2930
  "name": "*",
2931
- "package": "./accordion"
2931
+ "package": "./actions-menu"
2932
2932
  }
2933
2933
  }
2934
2934
  ]