@genesislcap/foundation-ui 14.476.0-GENC-1410.3 → 14.476.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +439 -439
  2. package/package.json +19 -19
@@ -934,44 +934,66 @@
934
934
  },
935
935
  {
936
936
  "kind": "javascript-module",
937
- "path": "src/_common/affix-mixin.ts",
937
+ "path": "src/accordion-item/accordion-item.styles.ts",
938
938
  "declarations": [
939
939
  {
940
- "kind": "mixin",
941
- "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.",
942
- "name": "AffixMixin",
943
- "members": [
944
- {
945
- "kind": "field",
946
- "name": "prefix",
947
- "type": {
948
- "text": "string"
949
- },
950
- "description": "Optional non-editable label shown on the left inside the field, before the input."
951
- },
940
+ "kind": "function",
941
+ "name": "foundationAccordionItemStyles",
942
+ "return": {
943
+ "type": {
944
+ "text": "ElementStyles"
945
+ }
946
+ },
947
+ "parameters": [
952
948
  {
953
- "kind": "field",
954
- "name": "suffix",
949
+ "name": "context",
955
950
  "type": {
956
- "text": "string"
957
- },
958
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
951
+ "text": "ElementDefinitionContext"
952
+ }
959
953
  },
960
954
  {
961
- "kind": "field",
962
- "name": "hideAffixFromScreenReader",
955
+ "name": "definition",
963
956
  "type": {
964
- "text": "boolean"
965
- },
966
- "default": "false",
967
- "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."
957
+ "text": "FoundationElementDefinition"
958
+ }
968
959
  }
969
- ],
960
+ ]
961
+ }
962
+ ],
963
+ "exports": [
964
+ {
965
+ "kind": "js",
966
+ "name": "foundationAccordionItemStyles",
967
+ "declaration": {
968
+ "name": "foundationAccordionItemStyles",
969
+ "module": "src/accordion-item/accordion-item.styles.ts"
970
+ }
971
+ }
972
+ ]
973
+ },
974
+ {
975
+ "kind": "javascript-module",
976
+ "path": "src/accordion-item/accordion-item.template.ts",
977
+ "declarations": [
978
+ {
979
+ "kind": "function",
980
+ "name": "foundationAccordionItemTemplate",
981
+ "return": {
982
+ "type": {
983
+ "text": "ViewTemplate<AccordionItem>"
984
+ }
985
+ },
970
986
  "parameters": [
971
987
  {
972
- "name": "Base",
988
+ "name": "context",
973
989
  "type": {
974
- "text": "TBase"
990
+ "text": "ElementDefinitionContext"
991
+ }
992
+ },
993
+ {
994
+ "name": "definition",
995
+ "type": {
996
+ "text": "FoundationElementDefinition"
975
997
  }
976
998
  }
977
999
  ]
@@ -980,169 +1002,117 @@
980
1002
  "exports": [
981
1003
  {
982
1004
  "kind": "js",
983
- "name": "AffixMixin",
1005
+ "name": "foundationAccordionItemTemplate",
984
1006
  "declaration": {
985
- "name": "AffixMixin",
986
- "module": "src/_common/affix-mixin.ts"
1007
+ "name": "foundationAccordionItemTemplate",
1008
+ "module": "src/accordion-item/accordion-item.template.ts"
987
1009
  }
988
1010
  }
989
1011
  ]
990
1012
  },
991
1013
  {
992
1014
  "kind": "javascript-module",
993
- "path": "src/_common/base-file-component.ts",
1015
+ "path": "src/accordion-item/accordion-item.ts",
994
1016
  "declarations": [
995
1017
  {
996
1018
  "kind": "class",
997
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
998
- "name": "BaseFileComponent",
999
- "members": [
1019
+ "description": "",
1020
+ "name": "AccordionItem",
1021
+ "superclass": {
1022
+ "name": "FASTAccordionItem",
1023
+ "package": "@microsoft/fast-components"
1024
+ },
1025
+ "tagName": "%%prefix%%-accordion-item",
1026
+ "customElement": true,
1027
+ "attributes": [
1000
1028
  {
1001
- "kind": "field",
1002
- "name": "fileInput",
1029
+ "name": "heading-level",
1003
1030
  "type": {
1004
- "text": "HTMLInputElement"
1031
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1005
1032
  },
1006
- "privacy": "public"
1033
+ "default": "2",
1034
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1035
+ "fieldName": "headinglevel",
1036
+ "inheritedFrom": {
1037
+ "name": "AccordionItem",
1038
+ "module": "src/accordion-item/accordion-item.ts"
1039
+ }
1007
1040
  },
1008
1041
  {
1009
- "kind": "field",
1010
- "name": "selectedFile",
1011
1042
  "type": {
1012
- "text": "File | null"
1043
+ "text": "boolean"
1013
1044
  },
1014
- "privacy": "protected",
1015
- "default": "null"
1016
- },
1017
- {
1018
- "kind": "field",
1019
- "name": "label",
1020
- "type": {
1021
- "text": "string"
1045
+ "default": "false",
1046
+ "description": "Expands or collapses the item.",
1047
+ "fieldName": "expanded",
1048
+ "inheritedFrom": {
1049
+ "name": "AccordionItem",
1050
+ "module": "src/accordion-item/accordion-item.ts"
1022
1051
  }
1023
1052
  },
1024
1053
  {
1025
- "kind": "field",
1026
- "name": "accept",
1054
+ "name": "id",
1027
1055
  "type": {
1028
1056
  "text": "string"
1029
1057
  },
1030
- "default": "''"
1031
- },
1032
- {
1033
- "kind": "field",
1034
- "name": "fileSizeLimitBytes",
1035
- "default": "10_485_760",
1036
- "type": {
1037
- "text": "number"
1058
+ "description": "The item ID",
1059
+ "fieldName": "id",
1060
+ "inheritedFrom": {
1061
+ "name": "AccordionItem",
1062
+ "module": "src/accordion-item/accordion-item.ts"
1038
1063
  }
1039
- },
1064
+ }
1065
+ ],
1066
+ "members": [
1040
1067
  {
1041
1068
  "kind": "field",
1042
- "name": "fileName",
1069
+ "name": "headinglevel",
1043
1070
  "type": {
1044
- "text": "string"
1071
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1045
1072
  },
1046
- "default": "''"
1073
+ "privacy": "public",
1074
+ "default": "2",
1075
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1076
+ "inheritedFrom": {
1077
+ "name": "AccordionItem",
1078
+ "module": "src/accordion-item/accordion-item.ts"
1079
+ }
1047
1080
  },
1048
1081
  {
1049
1082
  "kind": "field",
1050
- "name": "isProcessing",
1083
+ "name": "expanded",
1051
1084
  "type": {
1052
1085
  "text": "boolean"
1053
1086
  },
1054
- "default": "false"
1055
- },
1056
- {
1057
- "kind": "method",
1058
- "name": "handleClick",
1059
- "privacy": "public",
1060
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1061
- },
1062
- {
1063
- "kind": "method",
1064
- "name": "onInputChange",
1065
- "privacy": "public",
1066
- "parameters": [
1067
- {
1068
- "name": "e",
1069
- "type": {
1070
- "text": "Event"
1071
- },
1072
- "description": "The change event from the file input"
1073
- }
1074
- ],
1075
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1076
- },
1077
- {
1078
- "kind": "method",
1079
- "name": "clearSelection",
1080
- "privacy": "public",
1081
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
1082
- },
1083
- {
1084
- "kind": "method",
1085
- "name": "getSelectedFile",
1086
1087
  "privacy": "public",
1087
- "description": "Gets the currently selected file object",
1088
- "return": {
1089
- "type": {
1090
- "text": ""
1091
- }
1088
+ "default": "false",
1089
+ "description": "Expands or collapses the item.",
1090
+ "inheritedFrom": {
1091
+ "name": "AccordionItem",
1092
+ "module": "src/accordion-item/accordion-item.ts"
1092
1093
  }
1093
1094
  },
1094
1095
  {
1095
- "kind": "method",
1096
- "name": "showError",
1097
- "privacy": "protected",
1098
- "parameters": [
1099
- {
1100
- "name": "title",
1101
- "type": {
1102
- "text": "string"
1103
- },
1104
- "description": "The error title"
1105
- },
1106
- {
1107
- "name": "message",
1108
- "type": {
1109
- "text": "string"
1110
- },
1111
- "description": "The error message"
1112
- }
1113
- ],
1114
- "description": "Shows an error notification using the unified error handling system"
1115
- },
1116
- {
1117
- "kind": "method",
1118
- "name": "onFileSelected",
1119
- "privacy": "protected",
1120
- "return": {
1121
- "type": {
1122
- "text": "void"
1123
- }
1096
+ "kind": "field",
1097
+ "name": "id",
1098
+ "type": {
1099
+ "text": "string"
1124
1100
  },
1125
- "parameters": [
1126
- {
1127
- "name": "files",
1128
- "type": {
1129
- "text": "File[]"
1130
- },
1131
- "description": "The selected file"
1132
- }
1133
- ],
1134
- "description": "Abstract method called when a file is selected"
1101
+ "privacy": "public",
1102
+ "description": "The item ID",
1103
+ "inheritedFrom": {
1104
+ "name": "AccordionItem",
1105
+ "module": "src/accordion-item/accordion-item.ts"
1106
+ }
1135
1107
  },
1136
1108
  {
1137
- "kind": "method",
1138
- "name": "onFileCleared",
1139
- "privacy": "protected",
1140
- "return": {
1141
- "type": {
1142
- "text": "void"
1143
- }
1144
- },
1145
- "description": "Abstract method called when file selection is cleared"
1109
+ "kind": "field",
1110
+ "name": "change",
1111
+ "privacy": "private",
1112
+ "inheritedFrom": {
1113
+ "name": "AccordionItem",
1114
+ "module": "src/accordion-item/accordion-item.ts"
1115
+ }
1146
1116
  },
1147
1117
  {
1148
1118
  "kind": "field",
@@ -1258,149 +1228,76 @@
1258
1228
  ],
1259
1229
  "events": [
1260
1230
  {
1261
- "description": "Fired when file size validation fails",
1262
- "name": "error"
1263
- },
1264
- {
1265
- "description": "Fired when selection is cleared",
1266
- "name": "clear"
1267
- }
1268
- ],
1269
- "attributes": [
1270
- {
1271
- "name": "label",
1272
- "type": {
1273
- "text": "string"
1274
- },
1275
- "fieldName": "label"
1276
- },
1277
- {
1278
- "name": "accept",
1279
- "type": {
1280
- "text": "string"
1281
- },
1282
- "default": "''",
1283
- "fieldName": "accept"
1284
- },
1285
- {
1286
- "name": "file-size-limit-bytes",
1287
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1288
- "resolveInitializer": {
1289
- "module": "src/_common/base-file-component.ts"
1290
- },
1291
- "fieldName": "fileSizeLimitBytes"
1231
+ "description": "Fires a custom 'change' event when the button is invoked",
1232
+ "name": "change",
1233
+ "inheritedFrom": {
1234
+ "name": "AccordionItem",
1235
+ "module": "src/accordion-item/accordion-item.ts"
1236
+ }
1292
1237
  }
1293
- ],
1294
- "superclass": {
1295
- "name": "FoundationElement",
1296
- "package": "@microsoft/fast-foundation"
1297
- }
1298
- }
1299
- ],
1300
- "exports": [
1301
- {
1302
- "kind": "js",
1303
- "name": "BaseFileComponent",
1304
- "declaration": {
1305
- "name": "BaseFileComponent",
1306
- "module": "src/_common/base-file-component.ts"
1307
- }
1308
- }
1309
- ]
1310
- },
1311
- {
1312
- "kind": "javascript-module",
1313
- "path": "src/_common/field-styles.ts",
1314
- "declarations": [
1238
+ ]
1239
+ },
1315
1240
  {
1316
1241
  "kind": "variable",
1317
- "name": "sharedFieldStyles",
1318
- "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`"
1319
- }
1320
- ],
1321
- "exports": [
1322
- {
1323
- "kind": "js",
1324
- "name": "sharedFieldStyles",
1325
- "declaration": {
1326
- "name": "sharedFieldStyles",
1327
- "module": "src/_common/field-styles.ts"
1328
- }
1329
- }
1330
- ]
1331
- },
1332
- {
1333
- "kind": "javascript-module",
1334
- "path": "src/_common/icons.ts",
1335
- "declarations": [
1336
- {
1337
- "kind": "function",
1338
- "name": "closeIcon",
1339
- "parameters": [
1340
- {
1341
- "name": "slot",
1342
- "default": "'start'"
1343
- },
1344
- {
1345
- "name": "fill",
1346
- "default": "'#879ba6'"
1347
- }
1348
- ]
1349
- }
1350
- ],
1351
- "exports": [
1242
+ "name": "foundationAccordionItemShadowOptions",
1243
+ "type": {
1244
+ "text": "ShadowRootInit"
1245
+ },
1246
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1247
+ },
1352
1248
  {
1353
- "kind": "js",
1354
- "name": "closeIcon",
1355
- "declaration": {
1356
- "name": "closeIcon",
1357
- "module": "src/_common/icons.ts"
1358
- }
1249
+ "kind": "variable",
1250
+ "name": "defaultAccordionItemConfig",
1251
+ "type": {
1252
+ "text": "object"
1253
+ },
1254
+ "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}"
1255
+ },
1256
+ {
1257
+ "kind": "variable",
1258
+ "name": "foundationAccordionItem",
1259
+ "description": "The Foundation Accordion Item",
1260
+ "privacy": "public"
1359
1261
  }
1360
- ]
1361
- },
1362
- {
1363
- "kind": "javascript-module",
1364
- "path": "src/_common/index.ts",
1365
- "declarations": [],
1262
+ ],
1366
1263
  "exports": [
1367
1264
  {
1368
1265
  "kind": "js",
1369
- "name": "*",
1266
+ "name": "AccordionItem",
1370
1267
  "declaration": {
1371
- "name": "*",
1372
- "package": "./affix-mixin"
1268
+ "name": "AccordionItem",
1269
+ "module": "src/accordion-item/accordion-item.ts"
1373
1270
  }
1374
1271
  },
1375
1272
  {
1376
1273
  "kind": "js",
1377
- "name": "*",
1274
+ "name": "foundationAccordionItemShadowOptions",
1378
1275
  "declaration": {
1379
- "name": "*",
1380
- "package": "./base-file-component"
1276
+ "name": "foundationAccordionItemShadowOptions",
1277
+ "module": "src/accordion-item/accordion-item.ts"
1381
1278
  }
1382
1279
  },
1383
1280
  {
1384
1281
  "kind": "js",
1385
- "name": "*",
1282
+ "name": "defaultAccordionItemConfig",
1386
1283
  "declaration": {
1387
- "name": "*",
1388
- "package": "./field-styles"
1284
+ "name": "defaultAccordionItemConfig",
1285
+ "module": "src/accordion-item/accordion-item.ts"
1389
1286
  }
1390
1287
  },
1391
1288
  {
1392
1289
  "kind": "js",
1393
- "name": "*",
1290
+ "name": "foundationAccordionItem",
1394
1291
  "declaration": {
1395
- "name": "*",
1396
- "package": "./icons"
1292
+ "name": "foundationAccordionItem",
1293
+ "module": "src/accordion-item/accordion-item.ts"
1397
1294
  }
1398
1295
  }
1399
1296
  ]
1400
1297
  },
1401
1298
  {
1402
1299
  "kind": "javascript-module",
1403
- "path": "src/_config/index.ts",
1300
+ "path": "src/accordion-item/index.ts",
1404
1301
  "declarations": [],
1405
1302
  "exports": [
1406
1303
  {
@@ -1408,7 +1305,7 @@
1408
1305
  "name": "*",
1409
1306
  "declaration": {
1410
1307
  "name": "*",
1411
- "package": "./styles"
1308
+ "package": "./accordion-item.template"
1412
1309
  }
1413
1310
  },
1414
1311
  {
@@ -1416,7 +1313,7 @@
1416
1313
  "name": "*",
1417
1314
  "declaration": {
1418
1315
  "name": "*",
1419
- "package": "./tokens"
1316
+ "package": "./accordion-item.styles"
1420
1317
  }
1421
1318
  },
1422
1319
  {
@@ -1424,73 +1321,51 @@
1424
1321
  "name": "*",
1425
1322
  "declaration": {
1426
1323
  "name": "*",
1427
- "package": "./values"
1324
+ "package": "./accordion-item"
1428
1325
  }
1429
1326
  }
1430
1327
  ]
1431
1328
  },
1432
1329
  {
1433
1330
  "kind": "javascript-module",
1434
- "path": "src/accordion-item/accordion-item.styles.ts",
1331
+ "path": "src/_common/affix-mixin.ts",
1435
1332
  "declarations": [
1436
1333
  {
1437
- "kind": "function",
1438
- "name": "foundationAccordionItemStyles",
1439
- "return": {
1440
- "type": {
1441
- "text": "ElementStyles"
1442
- }
1443
- },
1444
- "parameters": [
1334
+ "kind": "mixin",
1335
+ "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.",
1336
+ "name": "AffixMixin",
1337
+ "members": [
1445
1338
  {
1446
- "name": "context",
1339
+ "kind": "field",
1340
+ "name": "prefix",
1447
1341
  "type": {
1448
- "text": "ElementDefinitionContext"
1449
- }
1342
+ "text": "string"
1343
+ },
1344
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
1450
1345
  },
1451
1346
  {
1452
- "name": "definition",
1347
+ "kind": "field",
1348
+ "name": "suffix",
1453
1349
  "type": {
1454
- "text": "FoundationElementDefinition"
1455
- }
1456
- }
1457
- ]
1458
- }
1459
- ],
1460
- "exports": [
1461
- {
1462
- "kind": "js",
1463
- "name": "foundationAccordionItemStyles",
1464
- "declaration": {
1465
- "name": "foundationAccordionItemStyles",
1466
- "module": "src/accordion-item/accordion-item.styles.ts"
1467
- }
1468
- }
1469
- ]
1470
- },
1471
- {
1472
- "kind": "javascript-module",
1473
- "path": "src/accordion-item/accordion-item.template.ts",
1474
- "declarations": [
1475
- {
1476
- "kind": "function",
1477
- "name": "foundationAccordionItemTemplate",
1478
- "return": {
1479
- "type": {
1480
- "text": "ViewTemplate<AccordionItem>"
1481
- }
1482
- },
1483
- "parameters": [
1350
+ "text": "string"
1351
+ },
1352
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
1353
+ },
1484
1354
  {
1485
- "name": "context",
1355
+ "kind": "field",
1356
+ "name": "hideAffixFromScreenReader",
1486
1357
  "type": {
1487
- "text": "ElementDefinitionContext"
1488
- }
1489
- },
1358
+ "text": "boolean"
1359
+ },
1360
+ "default": "false",
1361
+ "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."
1362
+ }
1363
+ ],
1364
+ "parameters": [
1490
1365
  {
1491
- "name": "definition",
1366
+ "name": "Base",
1492
1367
  "type": {
1493
- "text": "FoundationElementDefinition"
1368
+ "text": "TBase"
1494
1369
  }
1495
1370
  }
1496
1371
  ]
@@ -1499,117 +1374,169 @@
1499
1374
  "exports": [
1500
1375
  {
1501
1376
  "kind": "js",
1502
- "name": "foundationAccordionItemTemplate",
1377
+ "name": "AffixMixin",
1503
1378
  "declaration": {
1504
- "name": "foundationAccordionItemTemplate",
1505
- "module": "src/accordion-item/accordion-item.template.ts"
1379
+ "name": "AffixMixin",
1380
+ "module": "src/_common/affix-mixin.ts"
1506
1381
  }
1507
1382
  }
1508
1383
  ]
1509
1384
  },
1510
1385
  {
1511
1386
  "kind": "javascript-module",
1512
- "path": "src/accordion-item/accordion-item.ts",
1387
+ "path": "src/_common/base-file-component.ts",
1513
1388
  "declarations": [
1514
1389
  {
1515
1390
  "kind": "class",
1516
- "description": "",
1517
- "name": "AccordionItem",
1518
- "superclass": {
1519
- "name": "FASTAccordionItem",
1520
- "package": "@microsoft/fast-components"
1521
- },
1522
- "tagName": "%%prefix%%-accordion-item",
1523
- "customElement": true,
1524
- "attributes": [
1391
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1392
+ "name": "BaseFileComponent",
1393
+ "members": [
1525
1394
  {
1526
- "name": "heading-level",
1395
+ "kind": "field",
1396
+ "name": "fileInput",
1527
1397
  "type": {
1528
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1398
+ "text": "HTMLInputElement"
1529
1399
  },
1530
- "default": "2",
1531
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1532
- "fieldName": "headinglevel",
1533
- "inheritedFrom": {
1534
- "name": "AccordionItem",
1535
- "module": "src/accordion-item/accordion-item.ts"
1536
- }
1400
+ "privacy": "public"
1537
1401
  },
1538
1402
  {
1403
+ "kind": "field",
1404
+ "name": "selectedFile",
1539
1405
  "type": {
1540
- "text": "boolean"
1406
+ "text": "File | null"
1541
1407
  },
1542
- "default": "false",
1543
- "description": "Expands or collapses the item.",
1544
- "fieldName": "expanded",
1545
- "inheritedFrom": {
1546
- "name": "AccordionItem",
1547
- "module": "src/accordion-item/accordion-item.ts"
1408
+ "privacy": "protected",
1409
+ "default": "null"
1410
+ },
1411
+ {
1412
+ "kind": "field",
1413
+ "name": "label",
1414
+ "type": {
1415
+ "text": "string"
1548
1416
  }
1549
1417
  },
1550
1418
  {
1551
- "name": "id",
1419
+ "kind": "field",
1420
+ "name": "accept",
1552
1421
  "type": {
1553
1422
  "text": "string"
1554
1423
  },
1555
- "description": "The item ID",
1556
- "fieldName": "id",
1557
- "inheritedFrom": {
1558
- "name": "AccordionItem",
1559
- "module": "src/accordion-item/accordion-item.ts"
1424
+ "default": "''"
1425
+ },
1426
+ {
1427
+ "kind": "field",
1428
+ "name": "fileSizeLimitBytes",
1429
+ "default": "10_485_760",
1430
+ "type": {
1431
+ "text": "number"
1560
1432
  }
1561
- }
1562
- ],
1563
- "members": [
1433
+ },
1564
1434
  {
1565
1435
  "kind": "field",
1566
- "name": "headinglevel",
1436
+ "name": "fileName",
1567
1437
  "type": {
1568
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1438
+ "text": "string"
1439
+ },
1440
+ "default": "''"
1441
+ },
1442
+ {
1443
+ "kind": "field",
1444
+ "name": "isProcessing",
1445
+ "type": {
1446
+ "text": "boolean"
1569
1447
  },
1448
+ "default": "false"
1449
+ },
1450
+ {
1451
+ "kind": "method",
1452
+ "name": "handleClick",
1570
1453
  "privacy": "public",
1571
- "default": "2",
1572
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1573
- "inheritedFrom": {
1574
- "name": "AccordionItem",
1575
- "module": "src/accordion-item/accordion-item.ts"
1454
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1455
+ },
1456
+ {
1457
+ "kind": "method",
1458
+ "name": "onInputChange",
1459
+ "privacy": "public",
1460
+ "parameters": [
1461
+ {
1462
+ "name": "e",
1463
+ "type": {
1464
+ "text": "Event"
1465
+ },
1466
+ "description": "The change event from the file input"
1467
+ }
1468
+ ],
1469
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1470
+ },
1471
+ {
1472
+ "kind": "method",
1473
+ "name": "clearSelection",
1474
+ "privacy": "public",
1475
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
1476
+ },
1477
+ {
1478
+ "kind": "method",
1479
+ "name": "getSelectedFile",
1480
+ "privacy": "public",
1481
+ "description": "Gets the currently selected file object",
1482
+ "return": {
1483
+ "type": {
1484
+ "text": ""
1485
+ }
1576
1486
  }
1577
1487
  },
1578
1488
  {
1579
- "kind": "field",
1580
- "name": "expanded",
1581
- "type": {
1582
- "text": "boolean"
1583
- },
1584
- "privacy": "public",
1585
- "default": "false",
1586
- "description": "Expands or collapses the item.",
1587
- "inheritedFrom": {
1588
- "name": "AccordionItem",
1589
- "module": "src/accordion-item/accordion-item.ts"
1590
- }
1489
+ "kind": "method",
1490
+ "name": "showError",
1491
+ "privacy": "protected",
1492
+ "parameters": [
1493
+ {
1494
+ "name": "title",
1495
+ "type": {
1496
+ "text": "string"
1497
+ },
1498
+ "description": "The error title"
1499
+ },
1500
+ {
1501
+ "name": "message",
1502
+ "type": {
1503
+ "text": "string"
1504
+ },
1505
+ "description": "The error message"
1506
+ }
1507
+ ],
1508
+ "description": "Shows an error notification using the unified error handling system"
1591
1509
  },
1592
1510
  {
1593
- "kind": "field",
1594
- "name": "id",
1595
- "type": {
1596
- "text": "string"
1511
+ "kind": "method",
1512
+ "name": "onFileSelected",
1513
+ "privacy": "protected",
1514
+ "return": {
1515
+ "type": {
1516
+ "text": "void"
1517
+ }
1597
1518
  },
1598
- "privacy": "public",
1599
- "description": "The item ID",
1600
- "inheritedFrom": {
1601
- "name": "AccordionItem",
1602
- "module": "src/accordion-item/accordion-item.ts"
1603
- }
1519
+ "parameters": [
1520
+ {
1521
+ "name": "files",
1522
+ "type": {
1523
+ "text": "File[]"
1524
+ },
1525
+ "description": "The selected file"
1526
+ }
1527
+ ],
1528
+ "description": "Abstract method called when a file is selected"
1604
1529
  },
1605
1530
  {
1606
- "kind": "field",
1607
- "name": "change",
1608
- "privacy": "private",
1609
- "inheritedFrom": {
1610
- "name": "AccordionItem",
1611
- "module": "src/accordion-item/accordion-item.ts"
1612
- }
1531
+ "kind": "method",
1532
+ "name": "onFileCleared",
1533
+ "privacy": "protected",
1534
+ "return": {
1535
+ "type": {
1536
+ "text": "void"
1537
+ }
1538
+ },
1539
+ "description": "Abstract method called when file selection is cleared"
1613
1540
  },
1614
1541
  {
1615
1542
  "kind": "field",
@@ -1725,76 +1652,110 @@
1725
1652
  ],
1726
1653
  "events": [
1727
1654
  {
1728
- "description": "Fires a custom 'change' event when the button is invoked",
1729
- "name": "change",
1730
- "inheritedFrom": {
1731
- "name": "AccordionItem",
1732
- "module": "src/accordion-item/accordion-item.ts"
1733
- }
1655
+ "description": "Fired when file size validation fails",
1656
+ "name": "error"
1657
+ },
1658
+ {
1659
+ "description": "Fired when selection is cleared",
1660
+ "name": "clear"
1734
1661
  }
1735
- ]
1736
- },
1737
- {
1738
- "kind": "variable",
1739
- "name": "foundationAccordionItemShadowOptions",
1740
- "type": {
1741
- "text": "ShadowRootInit"
1742
- },
1743
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1744
- },
1745
- {
1746
- "kind": "variable",
1747
- "name": "defaultAccordionItemConfig",
1748
- "type": {
1749
- "text": "object"
1750
- },
1751
- "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}"
1752
- },
1753
- {
1754
- "kind": "variable",
1755
- "name": "foundationAccordionItem",
1756
- "description": "The Foundation Accordion Item",
1757
- "privacy": "public"
1662
+ ],
1663
+ "attributes": [
1664
+ {
1665
+ "name": "label",
1666
+ "type": {
1667
+ "text": "string"
1668
+ },
1669
+ "fieldName": "label"
1670
+ },
1671
+ {
1672
+ "name": "accept",
1673
+ "type": {
1674
+ "text": "string"
1675
+ },
1676
+ "default": "''",
1677
+ "fieldName": "accept"
1678
+ },
1679
+ {
1680
+ "name": "file-size-limit-bytes",
1681
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
1682
+ "resolveInitializer": {
1683
+ "module": "src/_common/base-file-component.ts"
1684
+ },
1685
+ "fieldName": "fileSizeLimitBytes"
1686
+ }
1687
+ ],
1688
+ "superclass": {
1689
+ "name": "FoundationElement",
1690
+ "package": "@microsoft/fast-foundation"
1691
+ }
1758
1692
  }
1759
1693
  ],
1760
1694
  "exports": [
1761
1695
  {
1762
1696
  "kind": "js",
1763
- "name": "AccordionItem",
1697
+ "name": "BaseFileComponent",
1764
1698
  "declaration": {
1765
- "name": "AccordionItem",
1766
- "module": "src/accordion-item/accordion-item.ts"
1699
+ "name": "BaseFileComponent",
1700
+ "module": "src/_common/base-file-component.ts"
1767
1701
  }
1768
- },
1702
+ }
1703
+ ]
1704
+ },
1705
+ {
1706
+ "kind": "javascript-module",
1707
+ "path": "src/_common/field-styles.ts",
1708
+ "declarations": [
1769
1709
  {
1770
- "kind": "js",
1771
- "name": "foundationAccordionItemShadowOptions",
1772
- "declaration": {
1773
- "name": "foundationAccordionItemShadowOptions",
1774
- "module": "src/accordion-item/accordion-item.ts"
1775
- }
1776
- },
1710
+ "kind": "variable",
1711
+ "name": "sharedFieldStyles",
1712
+ "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`"
1713
+ }
1714
+ ],
1715
+ "exports": [
1777
1716
  {
1778
1717
  "kind": "js",
1779
- "name": "defaultAccordionItemConfig",
1718
+ "name": "sharedFieldStyles",
1780
1719
  "declaration": {
1781
- "name": "defaultAccordionItemConfig",
1782
- "module": "src/accordion-item/accordion-item.ts"
1720
+ "name": "sharedFieldStyles",
1721
+ "module": "src/_common/field-styles.ts"
1783
1722
  }
1784
- },
1723
+ }
1724
+ ]
1725
+ },
1726
+ {
1727
+ "kind": "javascript-module",
1728
+ "path": "src/_common/icons.ts",
1729
+ "declarations": [
1730
+ {
1731
+ "kind": "function",
1732
+ "name": "closeIcon",
1733
+ "parameters": [
1734
+ {
1735
+ "name": "slot",
1736
+ "default": "'start'"
1737
+ },
1738
+ {
1739
+ "name": "fill",
1740
+ "default": "'#879ba6'"
1741
+ }
1742
+ ]
1743
+ }
1744
+ ],
1745
+ "exports": [
1785
1746
  {
1786
1747
  "kind": "js",
1787
- "name": "foundationAccordionItem",
1748
+ "name": "closeIcon",
1788
1749
  "declaration": {
1789
- "name": "foundationAccordionItem",
1790
- "module": "src/accordion-item/accordion-item.ts"
1750
+ "name": "closeIcon",
1751
+ "module": "src/_common/icons.ts"
1791
1752
  }
1792
1753
  }
1793
1754
  ]
1794
1755
  },
1795
1756
  {
1796
1757
  "kind": "javascript-module",
1797
- "path": "src/accordion-item/index.ts",
1758
+ "path": "src/_common/index.ts",
1798
1759
  "declarations": [],
1799
1760
  "exports": [
1800
1761
  {
@@ -1802,7 +1763,7 @@
1802
1763
  "name": "*",
1803
1764
  "declaration": {
1804
1765
  "name": "*",
1805
- "package": "./accordion-item.template"
1766
+ "package": "./affix-mixin"
1806
1767
  }
1807
1768
  },
1808
1769
  {
@@ -1810,7 +1771,7 @@
1810
1771
  "name": "*",
1811
1772
  "declaration": {
1812
1773
  "name": "*",
1813
- "package": "./accordion-item.styles"
1774
+ "package": "./base-file-component"
1814
1775
  }
1815
1776
  },
1816
1777
  {
@@ -1818,7 +1779,15 @@
1818
1779
  "name": "*",
1819
1780
  "declaration": {
1820
1781
  "name": "*",
1821
- "package": "./accordion-item"
1782
+ "package": "./field-styles"
1783
+ }
1784
+ },
1785
+ {
1786
+ "kind": "js",
1787
+ "name": "*",
1788
+ "declaration": {
1789
+ "name": "*",
1790
+ "package": "./icons"
1822
1791
  }
1823
1792
  }
1824
1793
  ]
@@ -2338,6 +2307,37 @@
2338
2307
  }
2339
2308
  ]
2340
2309
  },
2310
+ {
2311
+ "kind": "javascript-module",
2312
+ "path": "src/_config/index.ts",
2313
+ "declarations": [],
2314
+ "exports": [
2315
+ {
2316
+ "kind": "js",
2317
+ "name": "*",
2318
+ "declaration": {
2319
+ "name": "*",
2320
+ "package": "./styles"
2321
+ }
2322
+ },
2323
+ {
2324
+ "kind": "js",
2325
+ "name": "*",
2326
+ "declaration": {
2327
+ "name": "*",
2328
+ "package": "./tokens"
2329
+ }
2330
+ },
2331
+ {
2332
+ "kind": "js",
2333
+ "name": "*",
2334
+ "declaration": {
2335
+ "name": "*",
2336
+ "package": "./values"
2337
+ }
2338
+ }
2339
+ ]
2340
+ },
2341
2341
  {
2342
2342
  "kind": "javascript-module",
2343
2343
  "path": "src/actions-menu/actions-menu.styles.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.476.0-GENC-1410.3",
4
+ "version": "14.476.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -85,13 +85,13 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@genesislcap/foundation-testing": "14.476.0-GENC-1410.3",
89
- "@genesislcap/genx": "14.476.0-GENC-1410.3",
90
- "@genesislcap/rollup-builder": "14.476.0-GENC-1410.3",
91
- "@genesislcap/ts-builder": "14.476.0-GENC-1410.3",
92
- "@genesislcap/uvu-playwright-builder": "14.476.0-GENC-1410.3",
93
- "@genesislcap/vite-builder": "14.476.0-GENC-1410.3",
94
- "@genesislcap/webpack-builder": "14.476.0-GENC-1410.3",
88
+ "@genesislcap/foundation-testing": "14.476.0",
89
+ "@genesislcap/genx": "14.476.0",
90
+ "@genesislcap/rollup-builder": "14.476.0",
91
+ "@genesislcap/ts-builder": "14.476.0",
92
+ "@genesislcap/uvu-playwright-builder": "14.476.0",
93
+ "@genesislcap/vite-builder": "14.476.0",
94
+ "@genesislcap/webpack-builder": "14.476.0",
95
95
  "copyfiles": "^2.4.1"
96
96
  },
97
97
  "dependencies": {
@@ -100,16 +100,16 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "14.476.0-GENC-1410.3",
104
- "@genesislcap/foundation-ai": "14.476.0-GENC-1410.3",
105
- "@genesislcap/foundation-comms": "14.476.0-GENC-1410.3",
106
- "@genesislcap/foundation-criteria": "14.476.0-GENC-1410.3",
107
- "@genesislcap/foundation-errors": "14.476.0-GENC-1410.3",
108
- "@genesislcap/foundation-events": "14.476.0-GENC-1410.3",
109
- "@genesislcap/foundation-logger": "14.476.0-GENC-1410.3",
110
- "@genesislcap/foundation-notifications": "14.476.0-GENC-1410.3",
111
- "@genesislcap/foundation-user": "14.476.0-GENC-1410.3",
112
- "@genesislcap/foundation-utils": "14.476.0-GENC-1410.3",
103
+ "@genesislcap/expression-builder": "14.476.0",
104
+ "@genesislcap/foundation-ai": "14.476.0",
105
+ "@genesislcap/foundation-comms": "14.476.0",
106
+ "@genesislcap/foundation-criteria": "14.476.0",
107
+ "@genesislcap/foundation-errors": "14.476.0",
108
+ "@genesislcap/foundation-events": "14.476.0",
109
+ "@genesislcap/foundation-logger": "14.476.0",
110
+ "@genesislcap/foundation-notifications": "14.476.0",
111
+ "@genesislcap/foundation-user": "14.476.0",
112
+ "@genesislcap/foundation-utils": "14.476.0",
113
113
  "@microsoft/fast-colors": "5.3.1",
114
114
  "@microsoft/fast-components": "2.30.6",
115
115
  "@microsoft/fast-element": "1.14.0",
@@ -142,5 +142,5 @@
142
142
  "require": "./dist/react.cjs"
143
143
  }
144
144
  },
145
- "gitHead": "b0a2fe4c0f36fb416a3bbe8f7b00583a90c8e601"
145
+ "gitHead": "0103e4203276998db0d28a1e26545fd0b229a5d6"
146
146
  }