@genesislcap/foundation-ui 14.360.1-alpha-ed37658.0 → 14.360.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +895 -895
  2. package/package.json +18 -18
@@ -902,238 +902,264 @@
902
902
  },
903
903
  {
904
904
  "kind": "javascript-module",
905
- "path": "src/_common/base-file-component.ts",
905
+ "path": "src/accordion-item/accordion-item.styles.ts",
906
+ "declarations": [
907
+ {
908
+ "kind": "function",
909
+ "name": "foundationAccordionItemStyles",
910
+ "return": {
911
+ "type": {
912
+ "text": "ElementStyles"
913
+ }
914
+ },
915
+ "parameters": [
916
+ {
917
+ "name": "context",
918
+ "type": {
919
+ "text": "ElementDefinitionContext"
920
+ }
921
+ },
922
+ {
923
+ "name": "definition",
924
+ "type": {
925
+ "text": "FoundationElementDefinition"
926
+ }
927
+ }
928
+ ]
929
+ }
930
+ ],
931
+ "exports": [
932
+ {
933
+ "kind": "js",
934
+ "name": "foundationAccordionItemStyles",
935
+ "declaration": {
936
+ "name": "foundationAccordionItemStyles",
937
+ "module": "src/accordion-item/accordion-item.styles.ts"
938
+ }
939
+ }
940
+ ]
941
+ },
942
+ {
943
+ "kind": "javascript-module",
944
+ "path": "src/accordion-item/accordion-item.template.ts",
945
+ "declarations": [
946
+ {
947
+ "kind": "function",
948
+ "name": "foundationAccordionItemTemplate",
949
+ "return": {
950
+ "type": {
951
+ "text": "ViewTemplate<AccordionItem>"
952
+ }
953
+ },
954
+ "parameters": [
955
+ {
956
+ "name": "context",
957
+ "type": {
958
+ "text": "ElementDefinitionContext"
959
+ }
960
+ },
961
+ {
962
+ "name": "definition",
963
+ "type": {
964
+ "text": "FoundationElementDefinition"
965
+ }
966
+ }
967
+ ]
968
+ }
969
+ ],
970
+ "exports": [
971
+ {
972
+ "kind": "js",
973
+ "name": "foundationAccordionItemTemplate",
974
+ "declaration": {
975
+ "name": "foundationAccordionItemTemplate",
976
+ "module": "src/accordion-item/accordion-item.template.ts"
977
+ }
978
+ }
979
+ ]
980
+ },
981
+ {
982
+ "kind": "javascript-module",
983
+ "path": "src/accordion-item/accordion-item.ts",
906
984
  "declarations": [
907
985
  {
908
986
  "kind": "class",
909
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
910
- "name": "BaseFileComponent",
911
- "members": [
987
+ "description": "",
988
+ "name": "AccordionItem",
989
+ "superclass": {
990
+ "name": "FASTAccordionItem",
991
+ "package": "@microsoft/fast-components"
992
+ },
993
+ "tagName": "%%prefix%%-accordion-item",
994
+ "customElement": true,
995
+ "attributes": [
912
996
  {
913
- "kind": "field",
914
- "name": "fileInput",
997
+ "name": "heading-level",
915
998
  "type": {
916
- "text": "HTMLInputElement"
999
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
917
1000
  },
918
- "privacy": "public"
1001
+ "default": "2",
1002
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1003
+ "fieldName": "headinglevel",
1004
+ "inheritedFrom": {
1005
+ "name": "AccordionItem",
1006
+ "module": "src/accordion-item/accordion-item.ts"
1007
+ }
1008
+ },
1009
+ {
1010
+ "type": {
1011
+ "text": "boolean"
1012
+ },
1013
+ "default": "false",
1014
+ "description": "Expands or collapses the item.",
1015
+ "fieldName": "expanded",
1016
+ "inheritedFrom": {
1017
+ "name": "AccordionItem",
1018
+ "module": "src/accordion-item/accordion-item.ts"
1019
+ }
919
1020
  },
1021
+ {
1022
+ "name": "id",
1023
+ "type": {
1024
+ "text": "string"
1025
+ },
1026
+ "description": "The item ID",
1027
+ "fieldName": "id",
1028
+ "inheritedFrom": {
1029
+ "name": "AccordionItem",
1030
+ "module": "src/accordion-item/accordion-item.ts"
1031
+ }
1032
+ }
1033
+ ],
1034
+ "members": [
920
1035
  {
921
1036
  "kind": "field",
922
- "name": "selectedFile",
1037
+ "name": "headinglevel",
923
1038
  "type": {
924
- "text": "File | null"
1039
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
925
1040
  },
926
- "privacy": "protected",
927
- "default": "null"
1041
+ "privacy": "public",
1042
+ "default": "2",
1043
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1044
+ "inheritedFrom": {
1045
+ "name": "AccordionItem",
1046
+ "module": "src/accordion-item/accordion-item.ts"
1047
+ }
928
1048
  },
929
1049
  {
930
1050
  "kind": "field",
931
- "name": "label",
1051
+ "name": "expanded",
932
1052
  "type": {
933
- "text": "string"
1053
+ "text": "boolean"
1054
+ },
1055
+ "privacy": "public",
1056
+ "default": "false",
1057
+ "description": "Expands or collapses the item.",
1058
+ "inheritedFrom": {
1059
+ "name": "AccordionItem",
1060
+ "module": "src/accordion-item/accordion-item.ts"
934
1061
  }
935
1062
  },
936
1063
  {
937
1064
  "kind": "field",
938
- "name": "accept",
1065
+ "name": "id",
939
1066
  "type": {
940
1067
  "text": "string"
941
1068
  },
942
- "default": "''"
1069
+ "privacy": "public",
1070
+ "description": "The item ID",
1071
+ "inheritedFrom": {
1072
+ "name": "AccordionItem",
1073
+ "module": "src/accordion-item/accordion-item.ts"
1074
+ }
943
1075
  },
944
1076
  {
945
1077
  "kind": "field",
946
- "name": "fileSizeLimitBytes",
947
- "default": "10_485_760",
948
- "type": {
949
- "text": "number"
1078
+ "name": "change",
1079
+ "privacy": "private",
1080
+ "inheritedFrom": {
1081
+ "name": "AccordionItem",
1082
+ "module": "src/accordion-item/accordion-item.ts"
950
1083
  }
951
1084
  },
952
1085
  {
953
1086
  "kind": "field",
954
- "name": "fileName",
1087
+ "name": "_presentation",
955
1088
  "type": {
956
- "text": "string"
1089
+ "text": "ComponentPresentation | null | undefined"
957
1090
  },
958
- "default": "''"
1091
+ "privacy": "private",
1092
+ "default": "void 0",
1093
+ "inheritedFrom": {
1094
+ "name": "FoundationElement",
1095
+ "module": "src/foundation-element/foundation-element.ts"
1096
+ }
959
1097
  },
960
1098
  {
961
1099
  "kind": "field",
962
- "name": "isProcessing",
1100
+ "name": "$presentation",
963
1101
  "type": {
964
- "text": "boolean"
1102
+ "text": "ComponentPresentation | null"
965
1103
  },
966
- "default": "false"
1104
+ "privacy": "public",
1105
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1106
+ "inheritedFrom": {
1107
+ "name": "FoundationElement",
1108
+ "module": "src/foundation-element/foundation-element.ts"
1109
+ }
967
1110
  },
968
1111
  {
969
- "kind": "method",
970
- "name": "handleClick",
1112
+ "kind": "field",
1113
+ "name": "template",
1114
+ "type": {
1115
+ "text": "ElementViewTemplate | void | null"
1116
+ },
971
1117
  "privacy": "public",
972
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1118
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1119
+ "inheritedFrom": {
1120
+ "name": "FoundationElement",
1121
+ "module": "src/foundation-element/foundation-element.ts"
1122
+ }
973
1123
  },
974
1124
  {
975
1125
  "kind": "method",
976
- "name": "onInputChange",
977
- "privacy": "public",
978
- "parameters": [
979
- {
980
- "name": "e",
981
- "type": {
982
- "text": "Event"
983
- },
984
- "description": "The change event from the file input"
1126
+ "name": "templateChanged",
1127
+ "privacy": "protected",
1128
+ "return": {
1129
+ "type": {
1130
+ "text": "void"
985
1131
  }
986
- ],
987
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1132
+ },
1133
+ "inheritedFrom": {
1134
+ "name": "FoundationElement",
1135
+ "module": "src/foundation-element/foundation-element.ts"
1136
+ }
988
1137
  },
989
1138
  {
990
- "kind": "method",
991
- "name": "clearSelection",
1139
+ "kind": "field",
1140
+ "name": "styles",
1141
+ "type": {
1142
+ "text": "ElementStyles | void | null"
1143
+ },
992
1144
  "privacy": "public",
993
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
1145
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1146
+ "inheritedFrom": {
1147
+ "name": "FoundationElement",
1148
+ "module": "src/foundation-element/foundation-element.ts"
1149
+ }
994
1150
  },
995
1151
  {
996
1152
  "kind": "method",
997
- "name": "getSelectedFile",
998
- "privacy": "public",
999
- "description": "Gets the currently selected file object",
1153
+ "name": "stylesChanged",
1154
+ "privacy": "protected",
1000
1155
  "return": {
1001
1156
  "type": {
1002
- "text": ""
1157
+ "text": "void"
1003
1158
  }
1004
- }
1005
- },
1006
- {
1007
- "kind": "method",
1008
- "name": "showError",
1009
- "privacy": "protected",
1010
- "parameters": [
1011
- {
1012
- "name": "title",
1013
- "type": {
1014
- "text": "string"
1015
- },
1016
- "description": "The error title"
1017
- },
1018
- {
1019
- "name": "message",
1020
- "type": {
1021
- "text": "string"
1022
- },
1023
- "description": "The error message"
1024
- }
1025
- ],
1026
- "description": "Shows an error notification using the unified error handling system"
1027
- },
1028
- {
1029
- "kind": "method",
1030
- "name": "onFileSelected",
1031
- "privacy": "protected",
1032
- "return": {
1033
- "type": {
1034
- "text": "void"
1035
- }
1036
- },
1037
- "parameters": [
1038
- {
1039
- "name": "files",
1040
- "type": {
1041
- "text": "File[]"
1042
- },
1043
- "description": "The selected file"
1044
- }
1045
- ],
1046
- "description": "Abstract method called when a file is selected"
1047
- },
1048
- {
1049
- "kind": "method",
1050
- "name": "onFileCleared",
1051
- "privacy": "protected",
1052
- "return": {
1053
- "type": {
1054
- "text": "void"
1055
- }
1056
- },
1057
- "description": "Abstract method called when file selection is cleared"
1058
- },
1059
- {
1060
- "kind": "field",
1061
- "name": "_presentation",
1062
- "type": {
1063
- "text": "ComponentPresentation | null | undefined"
1064
- },
1065
- "privacy": "private",
1066
- "default": "void 0",
1067
- "inheritedFrom": {
1068
- "name": "FoundationElement",
1069
- "module": "src/foundation-element/foundation-element.ts"
1070
- }
1071
- },
1072
- {
1073
- "kind": "field",
1074
- "name": "$presentation",
1075
- "type": {
1076
- "text": "ComponentPresentation | null"
1077
- },
1078
- "privacy": "public",
1079
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1080
- "inheritedFrom": {
1081
- "name": "FoundationElement",
1082
- "module": "src/foundation-element/foundation-element.ts"
1083
- }
1084
- },
1085
- {
1086
- "kind": "field",
1087
- "name": "template",
1088
- "type": {
1089
- "text": "ElementViewTemplate | void | null"
1090
- },
1091
- "privacy": "public",
1092
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1093
- "inheritedFrom": {
1094
- "name": "FoundationElement",
1095
- "module": "src/foundation-element/foundation-element.ts"
1096
- }
1097
- },
1098
- {
1099
- "kind": "method",
1100
- "name": "templateChanged",
1101
- "privacy": "protected",
1102
- "return": {
1103
- "type": {
1104
- "text": "void"
1105
- }
1106
- },
1107
- "inheritedFrom": {
1108
- "name": "FoundationElement",
1109
- "module": "src/foundation-element/foundation-element.ts"
1110
- }
1111
- },
1112
- {
1113
- "kind": "field",
1114
- "name": "styles",
1115
- "type": {
1116
- "text": "ElementStyles | void | null"
1117
- },
1118
- "privacy": "public",
1119
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1120
- "inheritedFrom": {
1121
- "name": "FoundationElement",
1122
- "module": "src/foundation-element/foundation-element.ts"
1123
- }
1124
- },
1125
- {
1126
- "kind": "method",
1127
- "name": "stylesChanged",
1128
- "privacy": "protected",
1129
- "return": {
1130
- "type": {
1131
- "text": "void"
1132
- }
1133
- },
1134
- "inheritedFrom": {
1135
- "name": "FoundationElement",
1136
- "module": "src/foundation-element/foundation-element.ts"
1159
+ },
1160
+ "inheritedFrom": {
1161
+ "name": "FoundationElement",
1162
+ "module": "src/foundation-element/foundation-element.ts"
1137
1163
  }
1138
1164
  },
1139
1165
  {
@@ -1168,81 +1194,78 @@
1168
1194
  }
1169
1195
  }
1170
1196
  ],
1171
- "attributes": [
1172
- {
1173
- "name": "label",
1174
- "type": {
1175
- "text": "string"
1176
- },
1177
- "fieldName": "label"
1178
- },
1179
- {
1180
- "name": "accept",
1181
- "type": {
1182
- "text": "string"
1183
- },
1184
- "default": "''",
1185
- "fieldName": "accept"
1186
- },
1197
+ "events": [
1187
1198
  {
1188
- "name": "file-size-limit-bytes",
1189
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1190
- "resolveInitializer": {
1191
- "module": "src/_common/base-file-component.ts"
1192
- },
1193
- "fieldName": "fileSizeLimitBytes"
1199
+ "description": "Fires a custom 'change' event when the button is invoked",
1200
+ "name": "change",
1201
+ "inheritedFrom": {
1202
+ "name": "AccordionItem",
1203
+ "module": "src/accordion-item/accordion-item.ts"
1204
+ }
1194
1205
  }
1195
- ],
1196
- "superclass": {
1197
- "name": "FoundationElement",
1198
- "package": "@microsoft/fast-foundation"
1199
- }
1206
+ ]
1207
+ },
1208
+ {
1209
+ "kind": "variable",
1210
+ "name": "foundationAccordionItemShadowOptions",
1211
+ "type": {
1212
+ "text": "ShadowRootInit"
1213
+ },
1214
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1215
+ },
1216
+ {
1217
+ "kind": "variable",
1218
+ "name": "defaultAccordionItemConfig",
1219
+ "type": {
1220
+ "text": "object"
1221
+ },
1222
+ "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}"
1223
+ },
1224
+ {
1225
+ "kind": "variable",
1226
+ "name": "foundationAccordionItem",
1227
+ "description": "The Foundation Accordion Item",
1228
+ "privacy": "public"
1200
1229
  }
1201
1230
  ],
1202
1231
  "exports": [
1203
1232
  {
1204
1233
  "kind": "js",
1205
- "name": "BaseFileComponent",
1234
+ "name": "AccordionItem",
1206
1235
  "declaration": {
1207
- "name": "BaseFileComponent",
1208
- "module": "src/_common/base-file-component.ts"
1236
+ "name": "AccordionItem",
1237
+ "module": "src/accordion-item/accordion-item.ts"
1209
1238
  }
1210
- }
1211
- ]
1212
- },
1213
- {
1214
- "kind": "javascript-module",
1215
- "path": "src/_common/icons.ts",
1216
- "declarations": [
1239
+ },
1217
1240
  {
1218
- "kind": "function",
1219
- "name": "closeIcon",
1220
- "parameters": [
1221
- {
1222
- "name": "slot",
1223
- "default": "'start'"
1224
- },
1225
- {
1226
- "name": "fill",
1227
- "default": "'#879ba6'"
1228
- }
1229
- ]
1230
- }
1231
- ],
1232
- "exports": [
1241
+ "kind": "js",
1242
+ "name": "foundationAccordionItemShadowOptions",
1243
+ "declaration": {
1244
+ "name": "foundationAccordionItemShadowOptions",
1245
+ "module": "src/accordion-item/accordion-item.ts"
1246
+ }
1247
+ },
1233
1248
  {
1234
1249
  "kind": "js",
1235
- "name": "closeIcon",
1250
+ "name": "defaultAccordionItemConfig",
1236
1251
  "declaration": {
1237
- "name": "closeIcon",
1238
- "module": "src/_common/icons.ts"
1252
+ "name": "defaultAccordionItemConfig",
1253
+ "module": "src/accordion-item/accordion-item.ts"
1254
+ }
1255
+ },
1256
+ {
1257
+ "kind": "js",
1258
+ "name": "foundationAccordionItem",
1259
+ "declaration": {
1260
+ "name": "foundationAccordionItem",
1261
+ "module": "src/accordion-item/accordion-item.ts"
1239
1262
  }
1240
1263
  }
1241
1264
  ]
1242
1265
  },
1243
1266
  {
1244
1267
  "kind": "javascript-module",
1245
- "path": "src/_common/index.ts",
1268
+ "path": "src/accordion-item/index.ts",
1246
1269
  "declarations": [],
1247
1270
  "exports": [
1248
1271
  {
@@ -1250,7 +1273,7 @@
1250
1273
  "name": "*",
1251
1274
  "declaration": {
1252
1275
  "name": "*",
1253
- "package": "./base-file-component"
1276
+ "package": "./accordion-item.template"
1254
1277
  }
1255
1278
  },
1256
1279
  {
@@ -1258,18 +1281,26 @@
1258
1281
  "name": "*",
1259
1282
  "declaration": {
1260
1283
  "name": "*",
1261
- "package": "./icons"
1284
+ "package": "./accordion-item.styles"
1285
+ }
1286
+ },
1287
+ {
1288
+ "kind": "js",
1289
+ "name": "*",
1290
+ "declaration": {
1291
+ "name": "*",
1292
+ "package": "./accordion-item"
1262
1293
  }
1263
1294
  }
1264
1295
  ]
1265
1296
  },
1266
1297
  {
1267
1298
  "kind": "javascript-module",
1268
- "path": "src/accordion-item/accordion-item.styles.ts",
1299
+ "path": "src/actions-menu/actions-menu.styles.ts",
1269
1300
  "declarations": [
1270
1301
  {
1271
1302
  "kind": "function",
1272
- "name": "foundationAccordionItemStyles",
1303
+ "name": "actionsMenuBaseStyles",
1273
1304
  "return": {
1274
1305
  "type": {
1275
1306
  "text": "ElementStyles"
@@ -1289,618 +1320,224 @@
1289
1320
  }
1290
1321
  }
1291
1322
  ]
1292
- }
1323
+ },
1324
+ {
1325
+ "kind": "function",
1326
+ "name": "foundationActionsMenuStyles",
1327
+ "return": {
1328
+ "type": {
1329
+ "text": "ElementStyles"
1330
+ }
1331
+ },
1332
+ "parameters": [
1333
+ {
1334
+ "name": "context",
1335
+ "type": {
1336
+ "text": "ElementDefinitionContext"
1337
+ }
1338
+ },
1339
+ {
1340
+ "name": "definition",
1341
+ "type": {
1342
+ "text": "FoundationElementDefinition"
1343
+ }
1344
+ }
1345
+ ]
1346
+ }
1293
1347
  ],
1294
1348
  "exports": [
1295
1349
  {
1296
1350
  "kind": "js",
1297
- "name": "foundationAccordionItemStyles",
1351
+ "name": "actionsMenuBaseStyles",
1298
1352
  "declaration": {
1299
- "name": "foundationAccordionItemStyles",
1300
- "module": "src/accordion-item/accordion-item.styles.ts"
1353
+ "name": "actionsMenuBaseStyles",
1354
+ "module": "src/actions-menu/actions-menu.styles.ts"
1355
+ }
1356
+ },
1357
+ {
1358
+ "kind": "js",
1359
+ "name": "foundationActionsMenuStyles",
1360
+ "declaration": {
1361
+ "name": "foundationActionsMenuStyles",
1362
+ "module": "src/actions-menu/actions-menu.styles.ts"
1301
1363
  }
1302
1364
  }
1303
1365
  ]
1304
1366
  },
1305
1367
  {
1306
1368
  "kind": "javascript-module",
1307
- "path": "src/accordion-item/accordion-item.template.ts",
1369
+ "path": "src/actions-menu/actions-menu.template.ts",
1308
1370
  "declarations": [
1309
1371
  {
1310
1372
  "kind": "function",
1311
- "name": "foundationAccordionItemTemplate",
1312
- "return": {
1313
- "type": {
1314
- "text": "ViewTemplate<AccordionItem>"
1315
- }
1316
- },
1373
+ "name": "menuTemplate",
1317
1374
  "parameters": [
1318
1375
  {
1319
- "name": "context",
1376
+ "name": "prefix",
1320
1377
  "type": {
1321
- "text": "ElementDefinitionContext"
1378
+ "text": "string"
1322
1379
  }
1323
- },
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ "kind": "function",
1385
+ "name": "singleOptionTemplate",
1386
+ "parameters": [
1324
1387
  {
1325
- "name": "definition",
1388
+ "name": "prefix",
1326
1389
  "type": {
1327
- "text": "FoundationElementDefinition"
1390
+ "text": "string"
1328
1391
  }
1329
1392
  }
1330
1393
  ]
1394
+ },
1395
+ {
1396
+ "kind": "variable",
1397
+ "name": "foundationActionsMenuTemplate",
1398
+ "type": {
1399
+ "text": "ViewTemplate<ActionsMenu>"
1400
+ },
1401
+ "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`"
1331
1402
  }
1332
1403
  ],
1333
1404
  "exports": [
1334
1405
  {
1335
1406
  "kind": "js",
1336
- "name": "foundationAccordionItemTemplate",
1407
+ "name": "menuTemplate",
1337
1408
  "declaration": {
1338
- "name": "foundationAccordionItemTemplate",
1339
- "module": "src/accordion-item/accordion-item.template.ts"
1409
+ "name": "menuTemplate",
1410
+ "module": "src/actions-menu/actions-menu.template.ts"
1411
+ }
1412
+ },
1413
+ {
1414
+ "kind": "js",
1415
+ "name": "singleOptionTemplate",
1416
+ "declaration": {
1417
+ "name": "singleOptionTemplate",
1418
+ "module": "src/actions-menu/actions-menu.template.ts"
1419
+ }
1420
+ },
1421
+ {
1422
+ "kind": "js",
1423
+ "name": "foundationActionsMenuTemplate",
1424
+ "declaration": {
1425
+ "name": "foundationActionsMenuTemplate",
1426
+ "module": "src/actions-menu/actions-menu.template.ts"
1340
1427
  }
1341
1428
  }
1342
1429
  ]
1343
1430
  },
1344
1431
  {
1345
1432
  "kind": "javascript-module",
1346
- "path": "src/accordion-item/accordion-item.ts",
1433
+ "path": "src/actions-menu/actions-menu.ts",
1347
1434
  "declarations": [
1348
1435
  {
1349
1436
  "kind": "class",
1350
1437
  "description": "",
1351
- "name": "AccordionItem",
1352
- "superclass": {
1353
- "name": "FASTAccordionItem",
1354
- "package": "@microsoft/fast-components"
1355
- },
1356
- "tagName": "%%prefix%%-accordion-item",
1357
- "customElement": true,
1358
- "attributes": [
1438
+ "name": "ActionsMenu",
1439
+ "members": [
1359
1440
  {
1360
- "name": "heading-level",
1441
+ "kind": "field",
1442
+ "name": "actions",
1361
1443
  "type": {
1362
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1363
- },
1364
- "default": "2",
1365
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1366
- "fieldName": "headinglevel",
1367
- "inheritedFrom": {
1368
- "name": "AccordionItem",
1369
- "module": "src/accordion-item/accordion-item.ts"
1444
+ "text": "ActionMenuItem[]"
1370
1445
  }
1371
1446
  },
1372
1447
  {
1448
+ "kind": "field",
1449
+ "name": "isVertical",
1373
1450
  "type": {
1374
1451
  "text": "boolean"
1375
1452
  },
1376
- "default": "false",
1377
- "description": "Expands or collapses the item.",
1378
- "fieldName": "expanded",
1379
- "inheritedFrom": {
1380
- "name": "AccordionItem",
1381
- "module": "src/accordion-item/accordion-item.ts"
1382
- }
1453
+ "default": "false"
1383
1454
  },
1384
- {
1385
- "name": "id",
1386
- "type": {
1387
- "text": "string"
1388
- },
1389
- "description": "The item ID",
1390
- "fieldName": "id",
1391
- "inheritedFrom": {
1392
- "name": "AccordionItem",
1393
- "module": "src/accordion-item/accordion-item.ts"
1394
- }
1395
- }
1396
- ],
1397
- "members": [
1398
1455
  {
1399
1456
  "kind": "field",
1400
- "name": "headinglevel",
1457
+ "name": "addDefaultActions",
1401
1458
  "type": {
1402
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1459
+ "text": "boolean"
1403
1460
  },
1404
- "privacy": "public",
1405
- "default": "2",
1406
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1407
- "inheritedFrom": {
1408
- "name": "AccordionItem",
1409
- "module": "src/accordion-item/accordion-item.ts"
1410
- }
1461
+ "default": "true"
1411
1462
  },
1412
1463
  {
1413
1464
  "kind": "field",
1414
- "name": "expanded",
1465
+ "name": "autoCloseOnAction",
1415
1466
  "type": {
1416
1467
  "text": "boolean"
1417
1468
  },
1418
- "privacy": "public",
1419
- "default": "false",
1420
- "description": "Expands or collapses the item.",
1421
- "inheritedFrom": {
1422
- "name": "AccordionItem",
1423
- "module": "src/accordion-item/accordion-item.ts"
1424
- }
1469
+ "default": "true"
1425
1470
  },
1426
1471
  {
1427
1472
  "kind": "field",
1428
- "name": "id",
1473
+ "name": "classNames",
1429
1474
  "type": {
1430
1475
  "text": "string"
1431
- },
1432
- "privacy": "public",
1433
- "description": "The item ID",
1434
- "inheritedFrom": {
1435
- "name": "AccordionItem",
1436
- "module": "src/accordion-item/accordion-item.ts"
1437
1476
  }
1438
1477
  },
1439
1478
  {
1440
1479
  "kind": "field",
1441
- "name": "change",
1442
- "privacy": "private",
1443
- "inheritedFrom": {
1444
- "name": "AccordionItem",
1445
- "module": "src/accordion-item/accordion-item.ts"
1480
+ "name": "definition",
1481
+ "type": {
1482
+ "text": "any"
1446
1483
  }
1447
1484
  },
1448
1485
  {
1449
1486
  "kind": "field",
1450
- "name": "_presentation",
1487
+ "name": "name",
1451
1488
  "type": {
1452
- "text": "ComponentPresentation | null | undefined"
1489
+ "text": "string"
1453
1490
  },
1454
- "privacy": "private",
1455
- "default": "void 0",
1456
- "inheritedFrom": {
1457
- "name": "FoundationElement",
1458
- "module": "src/foundation-element/foundation-element.ts"
1459
- }
1491
+ "default": "'Actions'"
1460
1492
  },
1461
1493
  {
1462
1494
  "kind": "field",
1463
- "name": "$presentation",
1495
+ "name": "open",
1464
1496
  "type": {
1465
- "text": "ComponentPresentation | null"
1497
+ "text": "boolean"
1466
1498
  },
1467
- "privacy": "public",
1468
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1469
- "inheritedFrom": {
1470
- "name": "FoundationElement",
1471
- "module": "src/foundation-element/foundation-element.ts"
1499
+ "default": "false"
1500
+ },
1501
+ {
1502
+ "kind": "field",
1503
+ "name": "buttonAppearance",
1504
+ "type": {
1505
+ "text": "string"
1472
1506
  }
1473
1507
  },
1474
1508
  {
1475
1509
  "kind": "field",
1476
- "name": "template",
1510
+ "name": "hideDisabled",
1477
1511
  "type": {
1478
- "text": "ElementViewTemplate | void | null"
1512
+ "text": "boolean"
1479
1513
  },
1480
- "privacy": "public",
1481
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1482
- "inheritedFrom": {
1483
- "name": "FoundationElement",
1484
- "module": "src/foundation-element/foundation-element.ts"
1485
- }
1514
+ "default": "false"
1486
1515
  },
1487
1516
  {
1488
- "kind": "method",
1489
- "name": "templateChanged",
1490
- "privacy": "protected",
1491
- "return": {
1492
- "type": {
1493
- "text": "void"
1494
- }
1517
+ "kind": "field",
1518
+ "name": "hideMenuSingleOption",
1519
+ "type": {
1520
+ "text": "boolean"
1495
1521
  },
1496
- "inheritedFrom": {
1497
- "name": "FoundationElement",
1498
- "module": "src/foundation-element/foundation-element.ts"
1522
+ "default": "false"
1523
+ },
1524
+ {
1525
+ "kind": "field",
1526
+ "name": "singleOption",
1527
+ "type": {
1528
+ "text": "ActionMenuItem"
1499
1529
  }
1500
1530
  },
1501
1531
  {
1502
1532
  "kind": "field",
1503
- "name": "styles",
1533
+ "name": "actionsMenu",
1504
1534
  "type": {
1505
- "text": "ElementStyles | void | null"
1506
- },
1507
- "privacy": "public",
1508
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1509
- "inheritedFrom": {
1510
- "name": "FoundationElement",
1511
- "module": "src/foundation-element/foundation-element.ts"
1535
+ "text": "HTMLElement"
1512
1536
  }
1513
1537
  },
1514
1538
  {
1515
1539
  "kind": "method",
1516
- "name": "stylesChanged",
1517
- "privacy": "protected",
1518
- "return": {
1519
- "type": {
1520
- "text": "void"
1521
- }
1522
- },
1523
- "inheritedFrom": {
1524
- "name": "FoundationElement",
1525
- "module": "src/foundation-element/foundation-element.ts"
1526
- }
1527
- },
1528
- {
1529
- "kind": "method",
1530
- "name": "compose",
1531
- "privacy": "public",
1532
- "static": true,
1533
- "return": {
1534
- "type": {
1535
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1536
- }
1537
- },
1538
- "parameters": [
1539
- {
1540
- "name": "this",
1541
- "type": {
1542
- "text": "K"
1543
- }
1544
- },
1545
- {
1546
- "name": "elementDefinition",
1547
- "type": {
1548
- "text": "T"
1549
- },
1550
- "description": "The definition of the element to create the registry\nfunction for."
1551
- }
1552
- ],
1553
- "description": "Defines an element registry function with a set of element definition defaults.",
1554
- "inheritedFrom": {
1555
- "name": "FoundationElement",
1556
- "module": "src/foundation-element/foundation-element.ts"
1557
- }
1558
- }
1559
- ],
1560
- "events": [
1561
- {
1562
- "description": "Fires a custom 'change' event when the button is invoked",
1563
- "name": "change",
1564
- "inheritedFrom": {
1565
- "name": "AccordionItem",
1566
- "module": "src/accordion-item/accordion-item.ts"
1567
- }
1568
- }
1569
- ]
1570
- },
1571
- {
1572
- "kind": "variable",
1573
- "name": "foundationAccordionItemShadowOptions",
1574
- "type": {
1575
- "text": "ShadowRootInit"
1576
- },
1577
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1578
- },
1579
- {
1580
- "kind": "variable",
1581
- "name": "defaultAccordionItemConfig",
1582
- "type": {
1583
- "text": "object"
1584
- },
1585
- "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}"
1586
- },
1587
- {
1588
- "kind": "variable",
1589
- "name": "foundationAccordionItem",
1590
- "description": "The Foundation Accordion Item",
1591
- "privacy": "public"
1592
- }
1593
- ],
1594
- "exports": [
1595
- {
1596
- "kind": "js",
1597
- "name": "AccordionItem",
1598
- "declaration": {
1599
- "name": "AccordionItem",
1600
- "module": "src/accordion-item/accordion-item.ts"
1601
- }
1602
- },
1603
- {
1604
- "kind": "js",
1605
- "name": "foundationAccordionItemShadowOptions",
1606
- "declaration": {
1607
- "name": "foundationAccordionItemShadowOptions",
1608
- "module": "src/accordion-item/accordion-item.ts"
1609
- }
1610
- },
1611
- {
1612
- "kind": "js",
1613
- "name": "defaultAccordionItemConfig",
1614
- "declaration": {
1615
- "name": "defaultAccordionItemConfig",
1616
- "module": "src/accordion-item/accordion-item.ts"
1617
- }
1618
- },
1619
- {
1620
- "kind": "js",
1621
- "name": "foundationAccordionItem",
1622
- "declaration": {
1623
- "name": "foundationAccordionItem",
1624
- "module": "src/accordion-item/accordion-item.ts"
1625
- }
1626
- }
1627
- ]
1628
- },
1629
- {
1630
- "kind": "javascript-module",
1631
- "path": "src/accordion-item/index.ts",
1632
- "declarations": [],
1633
- "exports": [
1634
- {
1635
- "kind": "js",
1636
- "name": "*",
1637
- "declaration": {
1638
- "name": "*",
1639
- "package": "./accordion-item.template"
1640
- }
1641
- },
1642
- {
1643
- "kind": "js",
1644
- "name": "*",
1645
- "declaration": {
1646
- "name": "*",
1647
- "package": "./accordion-item.styles"
1648
- }
1649
- },
1650
- {
1651
- "kind": "js",
1652
- "name": "*",
1653
- "declaration": {
1654
- "name": "*",
1655
- "package": "./accordion-item"
1656
- }
1657
- }
1658
- ]
1659
- },
1660
- {
1661
- "kind": "javascript-module",
1662
- "path": "src/actions-menu/actions-menu.styles.ts",
1663
- "declarations": [
1664
- {
1665
- "kind": "function",
1666
- "name": "actionsMenuBaseStyles",
1667
- "return": {
1668
- "type": {
1669
- "text": "ElementStyles"
1670
- }
1671
- },
1672
- "parameters": [
1673
- {
1674
- "name": "context",
1675
- "type": {
1676
- "text": "ElementDefinitionContext"
1677
- }
1678
- },
1679
- {
1680
- "name": "definition",
1681
- "type": {
1682
- "text": "FoundationElementDefinition"
1683
- }
1684
- }
1685
- ]
1686
- },
1687
- {
1688
- "kind": "function",
1689
- "name": "foundationActionsMenuStyles",
1690
- "return": {
1691
- "type": {
1692
- "text": "ElementStyles"
1693
- }
1694
- },
1695
- "parameters": [
1696
- {
1697
- "name": "context",
1698
- "type": {
1699
- "text": "ElementDefinitionContext"
1700
- }
1701
- },
1702
- {
1703
- "name": "definition",
1704
- "type": {
1705
- "text": "FoundationElementDefinition"
1706
- }
1707
- }
1708
- ]
1709
- }
1710
- ],
1711
- "exports": [
1712
- {
1713
- "kind": "js",
1714
- "name": "actionsMenuBaseStyles",
1715
- "declaration": {
1716
- "name": "actionsMenuBaseStyles",
1717
- "module": "src/actions-menu/actions-menu.styles.ts"
1718
- }
1719
- },
1720
- {
1721
- "kind": "js",
1722
- "name": "foundationActionsMenuStyles",
1723
- "declaration": {
1724
- "name": "foundationActionsMenuStyles",
1725
- "module": "src/actions-menu/actions-menu.styles.ts"
1726
- }
1727
- }
1728
- ]
1729
- },
1730
- {
1731
- "kind": "javascript-module",
1732
- "path": "src/actions-menu/actions-menu.template.ts",
1733
- "declarations": [
1734
- {
1735
- "kind": "function",
1736
- "name": "menuTemplate",
1737
- "parameters": [
1738
- {
1739
- "name": "prefix",
1740
- "type": {
1741
- "text": "string"
1742
- }
1743
- }
1744
- ]
1745
- },
1746
- {
1747
- "kind": "function",
1748
- "name": "singleOptionTemplate",
1749
- "parameters": [
1750
- {
1751
- "name": "prefix",
1752
- "type": {
1753
- "text": "string"
1754
- }
1755
- }
1756
- ]
1757
- },
1758
- {
1759
- "kind": "variable",
1760
- "name": "foundationActionsMenuTemplate",
1761
- "type": {
1762
- "text": "ViewTemplate<ActionsMenu>"
1763
- },
1764
- "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`"
1765
- }
1766
- ],
1767
- "exports": [
1768
- {
1769
- "kind": "js",
1770
- "name": "menuTemplate",
1771
- "declaration": {
1772
- "name": "menuTemplate",
1773
- "module": "src/actions-menu/actions-menu.template.ts"
1774
- }
1775
- },
1776
- {
1777
- "kind": "js",
1778
- "name": "singleOptionTemplate",
1779
- "declaration": {
1780
- "name": "singleOptionTemplate",
1781
- "module": "src/actions-menu/actions-menu.template.ts"
1782
- }
1783
- },
1784
- {
1785
- "kind": "js",
1786
- "name": "foundationActionsMenuTemplate",
1787
- "declaration": {
1788
- "name": "foundationActionsMenuTemplate",
1789
- "module": "src/actions-menu/actions-menu.template.ts"
1790
- }
1791
- }
1792
- ]
1793
- },
1794
- {
1795
- "kind": "javascript-module",
1796
- "path": "src/actions-menu/actions-menu.ts",
1797
- "declarations": [
1798
- {
1799
- "kind": "class",
1800
- "description": "",
1801
- "name": "ActionsMenu",
1802
- "members": [
1803
- {
1804
- "kind": "field",
1805
- "name": "actions",
1806
- "type": {
1807
- "text": "ActionMenuItem[]"
1808
- }
1809
- },
1810
- {
1811
- "kind": "field",
1812
- "name": "isVertical",
1813
- "type": {
1814
- "text": "boolean"
1815
- },
1816
- "default": "false"
1817
- },
1818
- {
1819
- "kind": "field",
1820
- "name": "addDefaultActions",
1821
- "type": {
1822
- "text": "boolean"
1823
- },
1824
- "default": "true"
1825
- },
1826
- {
1827
- "kind": "field",
1828
- "name": "autoCloseOnAction",
1829
- "type": {
1830
- "text": "boolean"
1831
- },
1832
- "default": "true"
1833
- },
1834
- {
1835
- "kind": "field",
1836
- "name": "classNames",
1837
- "type": {
1838
- "text": "string"
1839
- }
1840
- },
1841
- {
1842
- "kind": "field",
1843
- "name": "definition",
1844
- "type": {
1845
- "text": "any"
1846
- }
1847
- },
1848
- {
1849
- "kind": "field",
1850
- "name": "name",
1851
- "type": {
1852
- "text": "string"
1853
- },
1854
- "default": "'Actions'"
1855
- },
1856
- {
1857
- "kind": "field",
1858
- "name": "open",
1859
- "type": {
1860
- "text": "boolean"
1861
- },
1862
- "default": "false"
1863
- },
1864
- {
1865
- "kind": "field",
1866
- "name": "buttonAppearance",
1867
- "type": {
1868
- "text": "string"
1869
- }
1870
- },
1871
- {
1872
- "kind": "field",
1873
- "name": "hideDisabled",
1874
- "type": {
1875
- "text": "boolean"
1876
- },
1877
- "default": "false"
1878
- },
1879
- {
1880
- "kind": "field",
1881
- "name": "hideMenuSingleOption",
1882
- "type": {
1883
- "text": "boolean"
1884
- },
1885
- "default": "false"
1886
- },
1887
- {
1888
- "kind": "field",
1889
- "name": "singleOption",
1890
- "type": {
1891
- "text": "ActionMenuItem"
1892
- }
1893
- },
1894
- {
1895
- "kind": "field",
1896
- "name": "actionsMenu",
1897
- "type": {
1898
- "text": "HTMLElement"
1899
- }
1900
- },
1901
- {
1902
- "kind": "method",
1903
- "name": "definitionChanged",
1540
+ "name": "definitionChanged",
1904
1541
  "privacy": "protected",
1905
1542
  "parameters": [
1906
1543
  {
@@ -2144,50 +1781,232 @@
2144
1781
  "fieldName": "hideDisabled"
2145
1782
  },
2146
1783
  {
2147
- "name": "hide-menu-single-option",
1784
+ "name": "hide-menu-single-option",
1785
+ "type": {
1786
+ "text": "boolean"
1787
+ },
1788
+ "default": "false",
1789
+ "fieldName": "hideMenuSingleOption"
1790
+ }
1791
+ ],
1792
+ "superclass": {
1793
+ "name": "FoundationElement",
1794
+ "package": "@microsoft/fast-foundation"
1795
+ },
1796
+ "tagName": "%%prefix%%-actions-menu",
1797
+ "customElement": true
1798
+ },
1799
+ {
1800
+ "kind": "variable",
1801
+ "name": "foundationActionsMenu",
1802
+ "description": "The Foundation Actions Menu",
1803
+ "privacy": "public"
1804
+ }
1805
+ ],
1806
+ "exports": [
1807
+ {
1808
+ "kind": "js",
1809
+ "name": "ActionsMenu",
1810
+ "declaration": {
1811
+ "name": "ActionsMenu",
1812
+ "module": "src/actions-menu/actions-menu.ts"
1813
+ }
1814
+ },
1815
+ {
1816
+ "kind": "js",
1817
+ "name": "foundationActionsMenu",
1818
+ "declaration": {
1819
+ "name": "foundationActionsMenu",
1820
+ "module": "src/actions-menu/actions-menu.ts"
1821
+ }
1822
+ }
1823
+ ]
1824
+ },
1825
+ {
1826
+ "kind": "javascript-module",
1827
+ "path": "src/actions-menu/index.ts",
1828
+ "declarations": [],
1829
+ "exports": [
1830
+ {
1831
+ "kind": "js",
1832
+ "name": "*",
1833
+ "declaration": {
1834
+ "name": "*",
1835
+ "package": "./actions-menu.styles"
1836
+ }
1837
+ },
1838
+ {
1839
+ "kind": "js",
1840
+ "name": "*",
1841
+ "declaration": {
1842
+ "name": "*",
1843
+ "package": "./actions-menu.template"
1844
+ }
1845
+ },
1846
+ {
1847
+ "kind": "js",
1848
+ "name": "*",
1849
+ "declaration": {
1850
+ "name": "*",
1851
+ "package": "./actions-menu"
1852
+ }
1853
+ }
1854
+ ]
1855
+ },
1856
+ {
1857
+ "kind": "javascript-module",
1858
+ "path": "src/accordion/accordion.styles.ts",
1859
+ "declarations": [
1860
+ {
1861
+ "kind": "function",
1862
+ "name": "foundationAccordionStyles",
1863
+ "return": {
1864
+ "type": {
1865
+ "text": "ElementStyles"
1866
+ }
1867
+ },
1868
+ "parameters": [
1869
+ {
1870
+ "name": "context",
1871
+ "type": {
1872
+ "text": "ElementDefinitionContext"
1873
+ }
1874
+ },
1875
+ {
1876
+ "name": "definition",
1877
+ "type": {
1878
+ "text": "FoundationElementDefinition"
1879
+ }
1880
+ }
1881
+ ]
1882
+ }
1883
+ ],
1884
+ "exports": [
1885
+ {
1886
+ "kind": "js",
1887
+ "name": "foundationAccordionStyles",
1888
+ "declaration": {
1889
+ "name": "foundationAccordionStyles",
1890
+ "module": "src/accordion/accordion.styles.ts"
1891
+ }
1892
+ }
1893
+ ]
1894
+ },
1895
+ {
1896
+ "kind": "javascript-module",
1897
+ "path": "src/accordion/accordion.template.ts",
1898
+ "declarations": [
1899
+ {
1900
+ "kind": "function",
1901
+ "name": "foundationAccordionTemplate",
1902
+ "return": {
1903
+ "type": {
1904
+ "text": "ViewTemplate<Accordion>"
1905
+ }
1906
+ },
1907
+ "parameters": [
1908
+ {
1909
+ "name": "context",
1910
+ "type": {
1911
+ "text": "ElementDefinitionContext"
1912
+ }
1913
+ },
1914
+ {
1915
+ "name": "definition",
2148
1916
  "type": {
2149
- "text": "boolean"
2150
- },
2151
- "default": "false",
2152
- "fieldName": "hideMenuSingleOption"
1917
+ "text": "FoundationElementDefinition"
1918
+ }
2153
1919
  }
2154
- ],
1920
+ ]
1921
+ }
1922
+ ],
1923
+ "exports": [
1924
+ {
1925
+ "kind": "js",
1926
+ "name": "foundationAccordionTemplate",
1927
+ "declaration": {
1928
+ "name": "foundationAccordionTemplate",
1929
+ "module": "src/accordion/accordion.template.ts"
1930
+ }
1931
+ }
1932
+ ]
1933
+ },
1934
+ {
1935
+ "kind": "javascript-module",
1936
+ "path": "src/accordion/accordion.ts",
1937
+ "declarations": [
1938
+ {
1939
+ "kind": "class",
1940
+ "description": "",
1941
+ "name": "Accordion",
2155
1942
  "superclass": {
2156
- "name": "FoundationElement",
1943
+ "name": "FASTAccordion",
2157
1944
  "package": "@microsoft/fast-foundation"
2158
1945
  },
2159
- "tagName": "%%prefix%%-actions-menu",
1946
+ "tagName": "%%prefix%%-accordion",
2160
1947
  "customElement": true
2161
1948
  },
2162
1949
  {
2163
1950
  "kind": "variable",
2164
- "name": "foundationActionsMenu",
2165
- "description": "The Foundation Actions Menu",
1951
+ "name": "foundationAccordionShadowOptions",
1952
+ "type": {
1953
+ "text": "ShadowRootInit"
1954
+ },
1955
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1956
+ },
1957
+ {
1958
+ "kind": "variable",
1959
+ "name": "defaultAccordionConfig",
1960
+ "type": {
1961
+ "text": "object"
1962
+ },
1963
+ "default": "{}"
1964
+ },
1965
+ {
1966
+ "kind": "variable",
1967
+ "name": "foundationAccordion",
1968
+ "description": "The Foundation Accordion",
2166
1969
  "privacy": "public"
2167
1970
  }
2168
1971
  ],
2169
1972
  "exports": [
2170
1973
  {
2171
1974
  "kind": "js",
2172
- "name": "ActionsMenu",
1975
+ "name": "Accordion",
2173
1976
  "declaration": {
2174
- "name": "ActionsMenu",
2175
- "module": "src/actions-menu/actions-menu.ts"
1977
+ "name": "Accordion",
1978
+ "module": "src/accordion/accordion.ts"
2176
1979
  }
2177
1980
  },
2178
1981
  {
2179
1982
  "kind": "js",
2180
- "name": "foundationActionsMenu",
1983
+ "name": "foundationAccordionShadowOptions",
2181
1984
  "declaration": {
2182
- "name": "foundationActionsMenu",
2183
- "module": "src/actions-menu/actions-menu.ts"
1985
+ "name": "foundationAccordionShadowOptions",
1986
+ "module": "src/accordion/accordion.ts"
1987
+ }
1988
+ },
1989
+ {
1990
+ "kind": "js",
1991
+ "name": "defaultAccordionConfig",
1992
+ "declaration": {
1993
+ "name": "defaultAccordionConfig",
1994
+ "module": "src/accordion/accordion.ts"
1995
+ }
1996
+ },
1997
+ {
1998
+ "kind": "js",
1999
+ "name": "foundationAccordion",
2000
+ "declaration": {
2001
+ "name": "foundationAccordion",
2002
+ "module": "src/accordion/accordion.ts"
2184
2003
  }
2185
2004
  }
2186
2005
  ]
2187
2006
  },
2188
2007
  {
2189
2008
  "kind": "javascript-module",
2190
- "path": "src/actions-menu/index.ts",
2009
+ "path": "src/accordion/index.ts",
2191
2010
  "declarations": [],
2192
2011
  "exports": [
2193
2012
  {
@@ -2195,7 +2014,7 @@
2195
2014
  "name": "*",
2196
2015
  "declaration": {
2197
2016
  "name": "*",
2198
- "package": "./actions-menu.styles"
2017
+ "package": "./accordion.template"
2199
2018
  }
2200
2019
  },
2201
2020
  {
@@ -2203,7 +2022,7 @@
2203
2022
  "name": "*",
2204
2023
  "declaration": {
2205
2024
  "name": "*",
2206
- "package": "./actions-menu.template"
2025
+ "package": "./accordion.styles"
2207
2026
  }
2208
2027
  },
2209
2028
  {
@@ -2211,7 +2030,7 @@
2211
2030
  "name": "*",
2212
2031
  "declaration": {
2213
2032
  "name": "*",
2214
- "package": "./actions-menu"
2033
+ "package": "./accordion"
2215
2034
  }
2216
2035
  }
2217
2036
  ]
@@ -4328,67 +4147,329 @@
4328
4147
  },
4329
4148
  {
4330
4149
  "kind": "javascript-module",
4331
- "path": "src/accordion/accordion.styles.ts",
4150
+ "path": "src/_common/base-file-component.ts",
4332
4151
  "declarations": [
4333
4152
  {
4334
- "kind": "function",
4335
- "name": "foundationAccordionStyles",
4336
- "return": {
4337
- "type": {
4338
- "text": "ElementStyles"
4339
- }
4340
- },
4341
- "parameters": [
4153
+ "kind": "class",
4154
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
4155
+ "name": "BaseFileComponent",
4156
+ "members": [
4157
+ {
4158
+ "kind": "field",
4159
+ "name": "fileInput",
4160
+ "type": {
4161
+ "text": "HTMLInputElement"
4162
+ },
4163
+ "privacy": "public"
4164
+ },
4165
+ {
4166
+ "kind": "field",
4167
+ "name": "selectedFile",
4168
+ "type": {
4169
+ "text": "File | null"
4170
+ },
4171
+ "privacy": "protected",
4172
+ "default": "null"
4173
+ },
4174
+ {
4175
+ "kind": "field",
4176
+ "name": "label",
4177
+ "type": {
4178
+ "text": "string"
4179
+ }
4180
+ },
4181
+ {
4182
+ "kind": "field",
4183
+ "name": "accept",
4184
+ "type": {
4185
+ "text": "string"
4186
+ },
4187
+ "default": "''"
4188
+ },
4189
+ {
4190
+ "kind": "field",
4191
+ "name": "fileSizeLimitBytes",
4192
+ "default": "10_485_760",
4193
+ "type": {
4194
+ "text": "number"
4195
+ }
4196
+ },
4197
+ {
4198
+ "kind": "field",
4199
+ "name": "fileName",
4200
+ "type": {
4201
+ "text": "string"
4202
+ },
4203
+ "default": "''"
4204
+ },
4205
+ {
4206
+ "kind": "field",
4207
+ "name": "isProcessing",
4208
+ "type": {
4209
+ "text": "boolean"
4210
+ },
4211
+ "default": "false"
4212
+ },
4213
+ {
4214
+ "kind": "method",
4215
+ "name": "handleClick",
4216
+ "privacy": "public",
4217
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
4218
+ },
4219
+ {
4220
+ "kind": "method",
4221
+ "name": "onInputChange",
4222
+ "privacy": "public",
4223
+ "parameters": [
4224
+ {
4225
+ "name": "e",
4226
+ "type": {
4227
+ "text": "Event"
4228
+ },
4229
+ "description": "The change event from the file input"
4230
+ }
4231
+ ],
4232
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
4233
+ },
4234
+ {
4235
+ "kind": "method",
4236
+ "name": "clearSelection",
4237
+ "privacy": "public",
4238
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
4239
+ },
4240
+ {
4241
+ "kind": "method",
4242
+ "name": "getSelectedFile",
4243
+ "privacy": "public",
4244
+ "description": "Gets the currently selected file object",
4245
+ "return": {
4246
+ "type": {
4247
+ "text": ""
4248
+ }
4249
+ }
4250
+ },
4251
+ {
4252
+ "kind": "method",
4253
+ "name": "showError",
4254
+ "privacy": "protected",
4255
+ "parameters": [
4256
+ {
4257
+ "name": "title",
4258
+ "type": {
4259
+ "text": "string"
4260
+ },
4261
+ "description": "The error title"
4262
+ },
4263
+ {
4264
+ "name": "message",
4265
+ "type": {
4266
+ "text": "string"
4267
+ },
4268
+ "description": "The error message"
4269
+ }
4270
+ ],
4271
+ "description": "Shows an error notification using the unified error handling system"
4272
+ },
4273
+ {
4274
+ "kind": "method",
4275
+ "name": "onFileSelected",
4276
+ "privacy": "protected",
4277
+ "return": {
4278
+ "type": {
4279
+ "text": "void"
4280
+ }
4281
+ },
4282
+ "parameters": [
4283
+ {
4284
+ "name": "files",
4285
+ "type": {
4286
+ "text": "File[]"
4287
+ },
4288
+ "description": "The selected file"
4289
+ }
4290
+ ],
4291
+ "description": "Abstract method called when a file is selected"
4292
+ },
4293
+ {
4294
+ "kind": "method",
4295
+ "name": "onFileCleared",
4296
+ "privacy": "protected",
4297
+ "return": {
4298
+ "type": {
4299
+ "text": "void"
4300
+ }
4301
+ },
4302
+ "description": "Abstract method called when file selection is cleared"
4303
+ },
4304
+ {
4305
+ "kind": "field",
4306
+ "name": "_presentation",
4307
+ "type": {
4308
+ "text": "ComponentPresentation | null | undefined"
4309
+ },
4310
+ "privacy": "private",
4311
+ "default": "void 0",
4312
+ "inheritedFrom": {
4313
+ "name": "FoundationElement",
4314
+ "module": "src/foundation-element/foundation-element.ts"
4315
+ }
4316
+ },
4342
4317
  {
4343
- "name": "context",
4318
+ "kind": "field",
4319
+ "name": "$presentation",
4344
4320
  "type": {
4345
- "text": "ElementDefinitionContext"
4321
+ "text": "ComponentPresentation | null"
4322
+ },
4323
+ "privacy": "public",
4324
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
4325
+ "inheritedFrom": {
4326
+ "name": "FoundationElement",
4327
+ "module": "src/foundation-element/foundation-element.ts"
4346
4328
  }
4347
4329
  },
4348
4330
  {
4349
- "name": "definition",
4331
+ "kind": "field",
4332
+ "name": "template",
4350
4333
  "type": {
4351
- "text": "FoundationElementDefinition"
4334
+ "text": "ElementViewTemplate | void | null"
4335
+ },
4336
+ "privacy": "public",
4337
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
4338
+ "inheritedFrom": {
4339
+ "name": "FoundationElement",
4340
+ "module": "src/foundation-element/foundation-element.ts"
4341
+ }
4342
+ },
4343
+ {
4344
+ "kind": "method",
4345
+ "name": "templateChanged",
4346
+ "privacy": "protected",
4347
+ "return": {
4348
+ "type": {
4349
+ "text": "void"
4350
+ }
4351
+ },
4352
+ "inheritedFrom": {
4353
+ "name": "FoundationElement",
4354
+ "module": "src/foundation-element/foundation-element.ts"
4355
+ }
4356
+ },
4357
+ {
4358
+ "kind": "field",
4359
+ "name": "styles",
4360
+ "type": {
4361
+ "text": "ElementStyles | void | null"
4362
+ },
4363
+ "privacy": "public",
4364
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
4365
+ "inheritedFrom": {
4366
+ "name": "FoundationElement",
4367
+ "module": "src/foundation-element/foundation-element.ts"
4368
+ }
4369
+ },
4370
+ {
4371
+ "kind": "method",
4372
+ "name": "stylesChanged",
4373
+ "privacy": "protected",
4374
+ "return": {
4375
+ "type": {
4376
+ "text": "void"
4377
+ }
4378
+ },
4379
+ "inheritedFrom": {
4380
+ "name": "FoundationElement",
4381
+ "module": "src/foundation-element/foundation-element.ts"
4382
+ }
4383
+ },
4384
+ {
4385
+ "kind": "method",
4386
+ "name": "compose",
4387
+ "privacy": "public",
4388
+ "static": true,
4389
+ "return": {
4390
+ "type": {
4391
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
4392
+ }
4393
+ },
4394
+ "parameters": [
4395
+ {
4396
+ "name": "this",
4397
+ "type": {
4398
+ "text": "K"
4399
+ }
4400
+ },
4401
+ {
4402
+ "name": "elementDefinition",
4403
+ "type": {
4404
+ "text": "T"
4405
+ },
4406
+ "description": "The definition of the element to create the registry\nfunction for."
4407
+ }
4408
+ ],
4409
+ "description": "Defines an element registry function with a set of element definition defaults.",
4410
+ "inheritedFrom": {
4411
+ "name": "FoundationElement",
4412
+ "module": "src/foundation-element/foundation-element.ts"
4352
4413
  }
4353
4414
  }
4354
- ]
4415
+ ],
4416
+ "attributes": [
4417
+ {
4418
+ "name": "label",
4419
+ "type": {
4420
+ "text": "string"
4421
+ },
4422
+ "fieldName": "label"
4423
+ },
4424
+ {
4425
+ "name": "accept",
4426
+ "type": {
4427
+ "text": "string"
4428
+ },
4429
+ "default": "''",
4430
+ "fieldName": "accept"
4431
+ },
4432
+ {
4433
+ "name": "file-size-limit-bytes",
4434
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
4435
+ "resolveInitializer": {
4436
+ "module": "src/_common/base-file-component.ts"
4437
+ },
4438
+ "fieldName": "fileSizeLimitBytes"
4439
+ }
4440
+ ],
4441
+ "superclass": {
4442
+ "name": "FoundationElement",
4443
+ "package": "@microsoft/fast-foundation"
4444
+ }
4355
4445
  }
4356
4446
  ],
4357
4447
  "exports": [
4358
4448
  {
4359
4449
  "kind": "js",
4360
- "name": "foundationAccordionStyles",
4450
+ "name": "BaseFileComponent",
4361
4451
  "declaration": {
4362
- "name": "foundationAccordionStyles",
4363
- "module": "src/accordion/accordion.styles.ts"
4452
+ "name": "BaseFileComponent",
4453
+ "module": "src/_common/base-file-component.ts"
4364
4454
  }
4365
4455
  }
4366
4456
  ]
4367
4457
  },
4368
4458
  {
4369
4459
  "kind": "javascript-module",
4370
- "path": "src/accordion/accordion.template.ts",
4460
+ "path": "src/_common/icons.ts",
4371
4461
  "declarations": [
4372
4462
  {
4373
4463
  "kind": "function",
4374
- "name": "foundationAccordionTemplate",
4375
- "return": {
4376
- "type": {
4377
- "text": "ViewTemplate<Accordion>"
4378
- }
4379
- },
4464
+ "name": "closeIcon",
4380
4465
  "parameters": [
4381
4466
  {
4382
- "name": "context",
4383
- "type": {
4384
- "text": "ElementDefinitionContext"
4385
- }
4467
+ "name": "slot",
4468
+ "default": "'start'"
4386
4469
  },
4387
4470
  {
4388
- "name": "definition",
4389
- "type": {
4390
- "text": "FoundationElementDefinition"
4391
- }
4471
+ "name": "fill",
4472
+ "default": "'#879ba6'"
4392
4473
  }
4393
4474
  ]
4394
4475
  }
@@ -4396,90 +4477,17 @@
4396
4477
  "exports": [
4397
4478
  {
4398
4479
  "kind": "js",
4399
- "name": "foundationAccordionTemplate",
4400
- "declaration": {
4401
- "name": "foundationAccordionTemplate",
4402
- "module": "src/accordion/accordion.template.ts"
4403
- }
4404
- }
4405
- ]
4406
- },
4407
- {
4408
- "kind": "javascript-module",
4409
- "path": "src/accordion/accordion.ts",
4410
- "declarations": [
4411
- {
4412
- "kind": "class",
4413
- "description": "",
4414
- "name": "Accordion",
4415
- "superclass": {
4416
- "name": "FASTAccordion",
4417
- "package": "@microsoft/fast-foundation"
4418
- },
4419
- "tagName": "%%prefix%%-accordion",
4420
- "customElement": true
4421
- },
4422
- {
4423
- "kind": "variable",
4424
- "name": "foundationAccordionShadowOptions",
4425
- "type": {
4426
- "text": "ShadowRootInit"
4427
- },
4428
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
4429
- },
4430
- {
4431
- "kind": "variable",
4432
- "name": "defaultAccordionConfig",
4433
- "type": {
4434
- "text": "object"
4435
- },
4436
- "default": "{}"
4437
- },
4438
- {
4439
- "kind": "variable",
4440
- "name": "foundationAccordion",
4441
- "description": "The Foundation Accordion",
4442
- "privacy": "public"
4443
- }
4444
- ],
4445
- "exports": [
4446
- {
4447
- "kind": "js",
4448
- "name": "Accordion",
4449
- "declaration": {
4450
- "name": "Accordion",
4451
- "module": "src/accordion/accordion.ts"
4452
- }
4453
- },
4454
- {
4455
- "kind": "js",
4456
- "name": "foundationAccordionShadowOptions",
4457
- "declaration": {
4458
- "name": "foundationAccordionShadowOptions",
4459
- "module": "src/accordion/accordion.ts"
4460
- }
4461
- },
4462
- {
4463
- "kind": "js",
4464
- "name": "defaultAccordionConfig",
4465
- "declaration": {
4466
- "name": "defaultAccordionConfig",
4467
- "module": "src/accordion/accordion.ts"
4468
- }
4469
- },
4470
- {
4471
- "kind": "js",
4472
- "name": "foundationAccordion",
4480
+ "name": "closeIcon",
4473
4481
  "declaration": {
4474
- "name": "foundationAccordion",
4475
- "module": "src/accordion/accordion.ts"
4482
+ "name": "closeIcon",
4483
+ "module": "src/_common/icons.ts"
4476
4484
  }
4477
4485
  }
4478
4486
  ]
4479
4487
  },
4480
4488
  {
4481
4489
  "kind": "javascript-module",
4482
- "path": "src/accordion/index.ts",
4490
+ "path": "src/_common/index.ts",
4483
4491
  "declarations": [],
4484
4492
  "exports": [
4485
4493
  {
@@ -4487,15 +4495,7 @@
4487
4495
  "name": "*",
4488
4496
  "declaration": {
4489
4497
  "name": "*",
4490
- "package": "./accordion.template"
4491
- }
4492
- },
4493
- {
4494
- "kind": "js",
4495
- "name": "*",
4496
- "declaration": {
4497
- "name": "*",
4498
- "package": "./accordion.styles"
4498
+ "package": "./base-file-component"
4499
4499
  }
4500
4500
  },
4501
4501
  {
@@ -4503,7 +4503,7 @@
4503
4503
  "name": "*",
4504
4504
  "declaration": {
4505
4505
  "name": "*",
4506
- "package": "./accordion"
4506
+ "package": "./icons"
4507
4507
  }
4508
4508
  }
4509
4509
  ]