@genesislcap/foundation-ui 15.8.1 → 15.8.2-FUI-0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -958,97 +958,44 @@
958
958
  },
959
959
  {
960
960
  "kind": "javascript-module",
961
- "path": "src/_config/index.ts",
962
- "declarations": [],
963
- "exports": [
964
- {
965
- "kind": "js",
966
- "name": "*",
967
- "declaration": {
968
- "name": "*",
969
- "package": "./styles"
970
- }
971
- },
972
- {
973
- "kind": "js",
974
- "name": "*",
975
- "declaration": {
976
- "name": "*",
977
- "package": "./tokens"
978
- }
979
- },
980
- {
981
- "kind": "js",
982
- "name": "*",
983
- "declaration": {
984
- "name": "*",
985
- "package": "./values"
986
- }
987
- }
988
- ]
989
- },
990
- {
991
- "kind": "javascript-module",
992
- "path": "src/accordion-item/accordion-item.styles.ts",
961
+ "path": "src/_common/affix-mixin.ts",
993
962
  "declarations": [
994
963
  {
995
- "kind": "function",
996
- "name": "foundationAccordionItemStyles",
997
- "return": {
998
- "type": {
999
- "text": "ElementStyles"
1000
- }
1001
- },
1002
- "parameters": [
964
+ "kind": "mixin",
965
+ "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
966
+ "name": "AffixMixin",
967
+ "members": [
1003
968
  {
1004
- "name": "context",
969
+ "kind": "field",
970
+ "name": "prefix",
1005
971
  "type": {
1006
- "text": "ElementDefinitionContext"
1007
- }
972
+ "text": "string"
973
+ },
974
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
1008
975
  },
1009
976
  {
1010
- "name": "definition",
977
+ "kind": "field",
978
+ "name": "suffix",
1011
979
  "type": {
1012
- "text": "FoundationElementDefinition"
1013
- }
1014
- }
1015
- ]
1016
- }
1017
- ],
1018
- "exports": [
1019
- {
1020
- "kind": "js",
1021
- "name": "foundationAccordionItemStyles",
1022
- "declaration": {
1023
- "name": "foundationAccordionItemStyles",
1024
- "module": "src/accordion-item/accordion-item.styles.ts"
1025
- }
1026
- }
1027
- ]
1028
- },
1029
- {
1030
- "kind": "javascript-module",
1031
- "path": "src/accordion-item/accordion-item.template.ts",
1032
- "declarations": [
1033
- {
1034
- "kind": "function",
1035
- "name": "foundationAccordionItemTemplate",
1036
- "return": {
1037
- "type": {
1038
- "text": "ViewTemplate<AccordionItem>"
1039
- }
1040
- },
1041
- "parameters": [
980
+ "text": "string"
981
+ },
982
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
983
+ },
1042
984
  {
1043
- "name": "context",
985
+ "kind": "field",
986
+ "name": "hideAffixFromScreenReader",
1044
987
  "type": {
1045
- "text": "ElementDefinitionContext"
1046
- }
1047
- },
988
+ "text": "boolean"
989
+ },
990
+ "default": "false",
991
+ "description": "When true, prefix/suffix are not exposed to assistive technology (`aria-hidden` on affixes,\nand their ids are omitted from the control's `aria-describedby`).\nUse only when the unit or symbol is redundant with the visible label or other text."
992
+ }
993
+ ],
994
+ "parameters": [
1048
995
  {
1049
- "name": "definition",
996
+ "name": "Base",
1050
997
  "type": {
1051
- "text": "FoundationElementDefinition"
998
+ "text": "TBase"
1052
999
  }
1053
1000
  }
1054
1001
  ]
@@ -1057,161 +1004,213 @@
1057
1004
  "exports": [
1058
1005
  {
1059
1006
  "kind": "js",
1060
- "name": "foundationAccordionItemTemplate",
1007
+ "name": "AffixMixin",
1061
1008
  "declaration": {
1062
- "name": "foundationAccordionItemTemplate",
1063
- "module": "src/accordion-item/accordion-item.template.ts"
1009
+ "name": "AffixMixin",
1010
+ "module": "src/_common/affix-mixin.ts"
1064
1011
  }
1065
1012
  }
1066
1013
  ]
1067
1014
  },
1068
1015
  {
1069
1016
  "kind": "javascript-module",
1070
- "path": "src/accordion-item/accordion-item.ts",
1017
+ "path": "src/_common/base-file-component.ts",
1071
1018
  "declarations": [
1072
1019
  {
1073
1020
  "kind": "class",
1074
- "description": "",
1075
- "name": "AccordionItem",
1076
- "superclass": {
1077
- "name": "FASTAccordionItem",
1078
- "package": "@microsoft/fast-components"
1079
- },
1080
- "tagName": "%%prefix%%-accordion-item",
1081
- "customElement": true,
1082
- "attributes": [
1021
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1022
+ "name": "BaseFileComponent",
1023
+ "members": [
1083
1024
  {
1084
- "name": "heading-level",
1025
+ "kind": "field",
1026
+ "name": "fileInput",
1085
1027
  "type": {
1086
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1028
+ "text": "HTMLInputElement"
1087
1029
  },
1088
- "default": "2",
1089
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1090
- "fieldName": "headinglevel",
1091
- "inheritedFrom": {
1092
- "name": "AccordionItem",
1093
- "module": "src/accordion-item/accordion-item.ts"
1094
- }
1030
+ "privacy": "public"
1095
1031
  },
1096
1032
  {
1033
+ "kind": "field",
1034
+ "name": "selectedFile",
1097
1035
  "type": {
1098
- "text": "boolean"
1036
+ "text": "File | null"
1099
1037
  },
1100
- "default": "false",
1101
- "description": "Expands or collapses the item.",
1102
- "fieldName": "expanded",
1103
- "inheritedFrom": {
1104
- "name": "AccordionItem",
1105
- "module": "src/accordion-item/accordion-item.ts"
1106
- }
1038
+ "privacy": "protected",
1039
+ "default": "null"
1107
1040
  },
1108
1041
  {
1109
- "name": "id",
1042
+ "kind": "field",
1043
+ "name": "label",
1110
1044
  "type": {
1111
1045
  "text": "string"
1112
- },
1113
- "description": "The item ID",
1114
- "fieldName": "id",
1115
- "inheritedFrom": {
1116
- "name": "AccordionItem",
1117
- "module": "src/accordion-item/accordion-item.ts"
1118
1046
  }
1119
- }
1120
- ],
1121
- "members": [
1047
+ },
1122
1048
  {
1123
1049
  "kind": "field",
1124
- "name": "headinglevel",
1050
+ "name": "accept",
1125
1051
  "type": {
1126
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1052
+ "text": "string"
1127
1053
  },
1128
- "privacy": "public",
1129
- "default": "2",
1130
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1131
- "inheritedFrom": {
1132
- "name": "AccordionItem",
1133
- "module": "src/accordion-item/accordion-item.ts"
1134
- }
1054
+ "default": "''"
1135
1055
  },
1136
1056
  {
1137
1057
  "kind": "field",
1138
- "name": "expanded",
1058
+ "name": "fileSizeLimitBytes",
1059
+ "default": "10_485_760",
1139
1060
  "type": {
1140
- "text": "boolean"
1141
- },
1142
- "privacy": "public",
1143
- "default": "false",
1144
- "description": "Expands or collapses the item.",
1145
- "inheritedFrom": {
1146
- "name": "AccordionItem",
1147
- "module": "src/accordion-item/accordion-item.ts"
1061
+ "text": "number"
1148
1062
  }
1149
1063
  },
1150
1064
  {
1151
1065
  "kind": "field",
1152
- "name": "id",
1066
+ "name": "fileName",
1153
1067
  "type": {
1154
1068
  "text": "string"
1155
1069
  },
1156
- "privacy": "public",
1157
- "description": "The item ID",
1158
- "inheritedFrom": {
1159
- "name": "AccordionItem",
1160
- "module": "src/accordion-item/accordion-item.ts"
1161
- }
1162
- },
1163
- {
1164
- "kind": "field",
1165
- "name": "change",
1166
- "privacy": "private",
1167
- "inheritedFrom": {
1168
- "name": "AccordionItem",
1169
- "module": "src/accordion-item/accordion-item.ts"
1170
- }
1070
+ "default": "''"
1171
1071
  },
1172
1072
  {
1173
1073
  "kind": "field",
1174
- "name": "_presentation",
1074
+ "name": "isProcessing",
1175
1075
  "type": {
1176
- "text": "ComponentPresentation | null | undefined"
1076
+ "text": "boolean"
1177
1077
  },
1178
- "privacy": "private",
1179
- "default": "void 0",
1180
- "inheritedFrom": {
1181
- "name": "FoundationElement",
1182
- "module": "src/foundation-element/foundation-element.ts"
1183
- }
1078
+ "default": "false"
1184
1079
  },
1185
1080
  {
1186
- "kind": "field",
1187
- "name": "$presentation",
1188
- "type": {
1189
- "text": "ComponentPresentation | null"
1190
- },
1081
+ "kind": "method",
1082
+ "name": "handleClick",
1191
1083
  "privacy": "public",
1192
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1193
- "inheritedFrom": {
1194
- "name": "FoundationElement",
1195
- "module": "src/foundation-element/foundation-element.ts"
1196
- }
1084
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1197
1085
  },
1198
1086
  {
1199
- "kind": "field",
1200
- "name": "template",
1201
- "type": {
1202
- "text": "ElementViewTemplate | void | null"
1203
- },
1087
+ "kind": "method",
1088
+ "name": "onInputChange",
1204
1089
  "privacy": "public",
1205
- "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.",
1206
- "inheritedFrom": {
1207
- "name": "FoundationElement",
1208
- "module": "src/foundation-element/foundation-element.ts"
1209
- }
1090
+ "parameters": [
1091
+ {
1092
+ "name": "e",
1093
+ "type": {
1094
+ "text": "Event"
1095
+ },
1096
+ "description": "The change event from the file input"
1097
+ }
1098
+ ],
1099
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1210
1100
  },
1211
1101
  {
1212
1102
  "kind": "method",
1213
- "name": "templateChanged",
1214
- "privacy": "protected",
1103
+ "name": "clearSelection",
1104
+ "privacy": "public",
1105
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
1106
+ },
1107
+ {
1108
+ "kind": "method",
1109
+ "name": "getSelectedFile",
1110
+ "privacy": "public",
1111
+ "description": "Gets the currently selected file object",
1112
+ "return": {
1113
+ "type": {
1114
+ "text": ""
1115
+ }
1116
+ }
1117
+ },
1118
+ {
1119
+ "kind": "method",
1120
+ "name": "showError",
1121
+ "privacy": "protected",
1122
+ "parameters": [
1123
+ {
1124
+ "name": "title",
1125
+ "type": {
1126
+ "text": "string"
1127
+ },
1128
+ "description": "The error title"
1129
+ },
1130
+ {
1131
+ "name": "message",
1132
+ "type": {
1133
+ "text": "string"
1134
+ },
1135
+ "description": "The error message"
1136
+ }
1137
+ ],
1138
+ "description": "Shows an error notification using the unified error handling system"
1139
+ },
1140
+ {
1141
+ "kind": "method",
1142
+ "name": "onFileSelected",
1143
+ "privacy": "protected",
1144
+ "return": {
1145
+ "type": {
1146
+ "text": "void"
1147
+ }
1148
+ },
1149
+ "parameters": [
1150
+ {
1151
+ "name": "files",
1152
+ "type": {
1153
+ "text": "File[]"
1154
+ },
1155
+ "description": "The selected file"
1156
+ }
1157
+ ],
1158
+ "description": "Abstract method called when a file is selected"
1159
+ },
1160
+ {
1161
+ "kind": "method",
1162
+ "name": "onFileCleared",
1163
+ "privacy": "protected",
1164
+ "return": {
1165
+ "type": {
1166
+ "text": "void"
1167
+ }
1168
+ },
1169
+ "description": "Abstract method called when file selection is cleared"
1170
+ },
1171
+ {
1172
+ "kind": "field",
1173
+ "name": "_presentation",
1174
+ "type": {
1175
+ "text": "ComponentPresentation | null | undefined"
1176
+ },
1177
+ "privacy": "private",
1178
+ "default": "void 0",
1179
+ "inheritedFrom": {
1180
+ "name": "FoundationElement",
1181
+ "module": "src/foundation-element/foundation-element.ts"
1182
+ }
1183
+ },
1184
+ {
1185
+ "kind": "field",
1186
+ "name": "$presentation",
1187
+ "type": {
1188
+ "text": "ComponentPresentation | null"
1189
+ },
1190
+ "privacy": "public",
1191
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1192
+ "inheritedFrom": {
1193
+ "name": "FoundationElement",
1194
+ "module": "src/foundation-element/foundation-element.ts"
1195
+ }
1196
+ },
1197
+ {
1198
+ "kind": "field",
1199
+ "name": "template",
1200
+ "type": {
1201
+ "text": "ElementViewTemplate | void | null"
1202
+ },
1203
+ "privacy": "public",
1204
+ "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.",
1205
+ "inheritedFrom": {
1206
+ "name": "FoundationElement",
1207
+ "module": "src/foundation-element/foundation-element.ts"
1208
+ }
1209
+ },
1210
+ {
1211
+ "kind": "method",
1212
+ "name": "templateChanged",
1213
+ "privacy": "protected",
1215
1214
  "return": {
1216
1215
  "type": {
1217
1216
  "text": "void"
@@ -1283,76 +1282,110 @@
1283
1282
  ],
1284
1283
  "events": [
1285
1284
  {
1286
- "description": "Fires a custom 'change' event when the button is invoked",
1287
- "name": "change",
1288
- "inheritedFrom": {
1289
- "name": "AccordionItem",
1290
- "module": "src/accordion-item/accordion-item.ts"
1291
- }
1285
+ "description": "Fired when file size validation fails. detail: `Error`",
1286
+ "name": "error"
1287
+ },
1288
+ {
1289
+ "description": "Fired when selection is cleared",
1290
+ "name": "clear"
1292
1291
  }
1293
- ]
1294
- },
1295
- {
1296
- "kind": "variable",
1297
- "name": "foundationAccordionItemShadowOptions",
1298
- "type": {
1299
- "text": "ShadowRootInit"
1300
- },
1301
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1302
- },
1303
- {
1304
- "kind": "variable",
1305
- "name": "defaultAccordionItemConfig",
1306
- "type": {
1307
- "text": "object"
1308
- },
1309
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1310
- },
1311
- {
1312
- "kind": "variable",
1313
- "name": "foundationAccordionItem",
1314
- "description": "The Foundation Accordion Item",
1315
- "privacy": "public"
1292
+ ],
1293
+ "attributes": [
1294
+ {
1295
+ "name": "label",
1296
+ "type": {
1297
+ "text": "string"
1298
+ },
1299
+ "fieldName": "label"
1300
+ },
1301
+ {
1302
+ "name": "accept",
1303
+ "type": {
1304
+ "text": "string"
1305
+ },
1306
+ "default": "''",
1307
+ "fieldName": "accept"
1308
+ },
1309
+ {
1310
+ "name": "file-size-limit-bytes",
1311
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
1312
+ "resolveInitializer": {
1313
+ "module": "src/_common/base-file-component.ts"
1314
+ },
1315
+ "fieldName": "fileSizeLimitBytes"
1316
+ }
1317
+ ],
1318
+ "superclass": {
1319
+ "name": "FoundationElement",
1320
+ "package": "@microsoft/fast-foundation"
1321
+ }
1316
1322
  }
1317
1323
  ],
1318
1324
  "exports": [
1319
1325
  {
1320
1326
  "kind": "js",
1321
- "name": "AccordionItem",
1327
+ "name": "BaseFileComponent",
1322
1328
  "declaration": {
1323
- "name": "AccordionItem",
1324
- "module": "src/accordion-item/accordion-item.ts"
1329
+ "name": "BaseFileComponent",
1330
+ "module": "src/_common/base-file-component.ts"
1325
1331
  }
1326
- },
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ "kind": "javascript-module",
1337
+ "path": "src/_common/field-styles.ts",
1338
+ "declarations": [
1327
1339
  {
1328
- "kind": "js",
1329
- "name": "foundationAccordionItemShadowOptions",
1330
- "declaration": {
1331
- "name": "foundationAccordionItemShadowOptions",
1332
- "module": "src/accordion-item/accordion-item.ts"
1333
- }
1334
- },
1340
+ "kind": "variable",
1341
+ "name": "sharedFieldStyles",
1342
+ "default": "css`\n .label-hidden {\n margin: 0;\n }\n\n .control-field {\n display: flex;\n flex: 1 1 0%;\n min-width: 0;\n align-self: stretch;\n align-items: stretch;\n }\n\n .control-field .control {\n flex: 1 1 auto;\n min-width: 0;\n width: auto;\n }\n\n .prefix,\n .suffix {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n box-sizing: border-box;\n padding: 0 calc(var(--design-unit) * 2px);\n user-select: none;\n white-space: nowrap;\n background-color: var(--neutral-fill-rest);\n color: var(--neutral-foreground-hint);\n font-size: var(--type-ramp-base-font-size);\n font-family: inherit;\n line-height: 1;\n }\n\n .prefix {\n border-right: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n .suffix {\n border-left: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-prefix:not(.has-suffix)) .control-field .control {\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-suffix:not(.has-prefix)) .control-field .control {\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n :host(.has-prefix.has-suffix) .control-field .control {\n border-radius: 0;\n }\n`"
1343
+ }
1344
+ ],
1345
+ "exports": [
1335
1346
  {
1336
1347
  "kind": "js",
1337
- "name": "defaultAccordionItemConfig",
1348
+ "name": "sharedFieldStyles",
1338
1349
  "declaration": {
1339
- "name": "defaultAccordionItemConfig",
1340
- "module": "src/accordion-item/accordion-item.ts"
1350
+ "name": "sharedFieldStyles",
1351
+ "module": "src/_common/field-styles.ts"
1341
1352
  }
1342
- },
1353
+ }
1354
+ ]
1355
+ },
1356
+ {
1357
+ "kind": "javascript-module",
1358
+ "path": "src/_common/icons.ts",
1359
+ "declarations": [
1360
+ {
1361
+ "kind": "function",
1362
+ "name": "closeIcon",
1363
+ "parameters": [
1364
+ {
1365
+ "name": "slot",
1366
+ "default": "'start'"
1367
+ },
1368
+ {
1369
+ "name": "fill",
1370
+ "default": "'#879ba6'"
1371
+ }
1372
+ ]
1373
+ }
1374
+ ],
1375
+ "exports": [
1343
1376
  {
1344
1377
  "kind": "js",
1345
- "name": "foundationAccordionItem",
1378
+ "name": "closeIcon",
1346
1379
  "declaration": {
1347
- "name": "foundationAccordionItem",
1348
- "module": "src/accordion-item/accordion-item.ts"
1380
+ "name": "closeIcon",
1381
+ "module": "src/_common/icons.ts"
1349
1382
  }
1350
1383
  }
1351
1384
  ]
1352
1385
  },
1353
1386
  {
1354
1387
  "kind": "javascript-module",
1355
- "path": "src/accordion-item/index.ts",
1388
+ "path": "src/_common/index.ts",
1356
1389
  "declarations": [],
1357
1390
  "exports": [
1358
1391
  {
@@ -1360,7 +1393,7 @@
1360
1393
  "name": "*",
1361
1394
  "declaration": {
1362
1395
  "name": "*",
1363
- "package": "./accordion-item.template"
1396
+ "package": "./affix-mixin"
1364
1397
  }
1365
1398
  },
1366
1399
  {
@@ -1368,7 +1401,7 @@
1368
1401
  "name": "*",
1369
1402
  "declaration": {
1370
1403
  "name": "*",
1371
- "package": "./accordion-item.styles"
1404
+ "package": "./base-file-component"
1372
1405
  }
1373
1406
  },
1374
1407
  {
@@ -1376,51 +1409,112 @@
1376
1409
  "name": "*",
1377
1410
  "declaration": {
1378
1411
  "name": "*",
1379
- "package": "./accordion-item"
1412
+ "package": "./field-styles"
1413
+ }
1414
+ },
1415
+ {
1416
+ "kind": "js",
1417
+ "name": "*",
1418
+ "declaration": {
1419
+ "name": "*",
1420
+ "package": "./icons"
1380
1421
  }
1381
1422
  }
1382
1423
  ]
1383
1424
  },
1384
1425
  {
1385
1426
  "kind": "javascript-module",
1386
- "path": "src/_common/affix-mixin.ts",
1427
+ "path": "src/_config/index.ts",
1428
+ "declarations": [],
1429
+ "exports": [
1430
+ {
1431
+ "kind": "js",
1432
+ "name": "*",
1433
+ "declaration": {
1434
+ "name": "*",
1435
+ "package": "./styles"
1436
+ }
1437
+ },
1438
+ {
1439
+ "kind": "js",
1440
+ "name": "*",
1441
+ "declaration": {
1442
+ "name": "*",
1443
+ "package": "./tokens"
1444
+ }
1445
+ },
1446
+ {
1447
+ "kind": "js",
1448
+ "name": "*",
1449
+ "declaration": {
1450
+ "name": "*",
1451
+ "package": "./values"
1452
+ }
1453
+ }
1454
+ ]
1455
+ },
1456
+ {
1457
+ "kind": "javascript-module",
1458
+ "path": "src/accordion-item/accordion-item.styles.ts",
1387
1459
  "declarations": [
1388
1460
  {
1389
- "kind": "mixin",
1390
- "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
1391
- "name": "AffixMixin",
1392
- "members": [
1393
- {
1394
- "kind": "field",
1395
- "name": "prefix",
1396
- "type": {
1397
- "text": "string"
1398
- },
1399
- "description": "Optional non-editable label shown on the left inside the field, before the input."
1400
- },
1461
+ "kind": "function",
1462
+ "name": "foundationAccordionItemStyles",
1463
+ "return": {
1464
+ "type": {
1465
+ "text": "ElementStyles"
1466
+ }
1467
+ },
1468
+ "parameters": [
1401
1469
  {
1402
- "kind": "field",
1403
- "name": "suffix",
1470
+ "name": "context",
1404
1471
  "type": {
1405
- "text": "string"
1406
- },
1407
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
1472
+ "text": "ElementDefinitionContext"
1473
+ }
1408
1474
  },
1409
1475
  {
1410
- "kind": "field",
1411
- "name": "hideAffixFromScreenReader",
1476
+ "name": "definition",
1412
1477
  "type": {
1413
- "text": "boolean"
1414
- },
1415
- "default": "false",
1416
- "description": "When true, prefix/suffix are not exposed to assistive technology (`aria-hidden` on affixes,\nand their ids are omitted from the control's `aria-describedby`).\nUse only when the unit or symbol is redundant with the visible label or other text."
1478
+ "text": "FoundationElementDefinition"
1479
+ }
1417
1480
  }
1418
- ],
1481
+ ]
1482
+ }
1483
+ ],
1484
+ "exports": [
1485
+ {
1486
+ "kind": "js",
1487
+ "name": "foundationAccordionItemStyles",
1488
+ "declaration": {
1489
+ "name": "foundationAccordionItemStyles",
1490
+ "module": "src/accordion-item/accordion-item.styles.ts"
1491
+ }
1492
+ }
1493
+ ]
1494
+ },
1495
+ {
1496
+ "kind": "javascript-module",
1497
+ "path": "src/accordion-item/accordion-item.template.ts",
1498
+ "declarations": [
1499
+ {
1500
+ "kind": "function",
1501
+ "name": "foundationAccordionItemTemplate",
1502
+ "return": {
1503
+ "type": {
1504
+ "text": "ViewTemplate<AccordionItem>"
1505
+ }
1506
+ },
1419
1507
  "parameters": [
1420
1508
  {
1421
- "name": "Base",
1509
+ "name": "context",
1422
1510
  "type": {
1423
- "text": "TBase"
1511
+ "text": "ElementDefinitionContext"
1512
+ }
1513
+ },
1514
+ {
1515
+ "name": "definition",
1516
+ "type": {
1517
+ "text": "FoundationElementDefinition"
1424
1518
  }
1425
1519
  }
1426
1520
  ]
@@ -1429,208 +1523,156 @@
1429
1523
  "exports": [
1430
1524
  {
1431
1525
  "kind": "js",
1432
- "name": "AffixMixin",
1526
+ "name": "foundationAccordionItemTemplate",
1433
1527
  "declaration": {
1434
- "name": "AffixMixin",
1435
- "module": "src/_common/affix-mixin.ts"
1528
+ "name": "foundationAccordionItemTemplate",
1529
+ "module": "src/accordion-item/accordion-item.template.ts"
1436
1530
  }
1437
1531
  }
1438
1532
  ]
1439
1533
  },
1440
1534
  {
1441
1535
  "kind": "javascript-module",
1442
- "path": "src/_common/base-file-component.ts",
1536
+ "path": "src/accordion-item/accordion-item.ts",
1443
1537
  "declarations": [
1444
1538
  {
1445
1539
  "kind": "class",
1446
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1447
- "name": "BaseFileComponent",
1448
- "members": [
1540
+ "description": "",
1541
+ "name": "AccordionItem",
1542
+ "superclass": {
1543
+ "name": "FASTAccordionItem",
1544
+ "package": "@microsoft/fast-components"
1545
+ },
1546
+ "tagName": "%%prefix%%-accordion-item",
1547
+ "customElement": true,
1548
+ "attributes": [
1449
1549
  {
1450
- "kind": "field",
1451
- "name": "fileInput",
1550
+ "name": "heading-level",
1452
1551
  "type": {
1453
- "text": "HTMLInputElement"
1552
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1454
1553
  },
1455
- "privacy": "public"
1554
+ "default": "2",
1555
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1556
+ "fieldName": "headinglevel",
1557
+ "inheritedFrom": {
1558
+ "name": "AccordionItem",
1559
+ "module": "src/accordion-item/accordion-item.ts"
1560
+ }
1456
1561
  },
1457
1562
  {
1458
- "kind": "field",
1459
- "name": "selectedFile",
1460
1563
  "type": {
1461
- "text": "File | null"
1564
+ "text": "boolean"
1462
1565
  },
1463
- "privacy": "protected",
1464
- "default": "null"
1566
+ "default": "false",
1567
+ "description": "Expands or collapses the item.",
1568
+ "fieldName": "expanded",
1569
+ "inheritedFrom": {
1570
+ "name": "AccordionItem",
1571
+ "module": "src/accordion-item/accordion-item.ts"
1572
+ }
1465
1573
  },
1466
1574
  {
1467
- "kind": "field",
1468
- "name": "label",
1575
+ "name": "id",
1469
1576
  "type": {
1470
1577
  "text": "string"
1578
+ },
1579
+ "description": "The item ID",
1580
+ "fieldName": "id",
1581
+ "inheritedFrom": {
1582
+ "name": "AccordionItem",
1583
+ "module": "src/accordion-item/accordion-item.ts"
1471
1584
  }
1472
- },
1585
+ }
1586
+ ],
1587
+ "members": [
1473
1588
  {
1474
1589
  "kind": "field",
1475
- "name": "accept",
1590
+ "name": "headinglevel",
1476
1591
  "type": {
1477
- "text": "string"
1592
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1478
1593
  },
1479
- "default": "''"
1594
+ "privacy": "public",
1595
+ "default": "2",
1596
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1597
+ "inheritedFrom": {
1598
+ "name": "AccordionItem",
1599
+ "module": "src/accordion-item/accordion-item.ts"
1600
+ }
1480
1601
  },
1481
1602
  {
1482
1603
  "kind": "field",
1483
- "name": "fileSizeLimitBytes",
1484
- "default": "10_485_760",
1604
+ "name": "expanded",
1485
1605
  "type": {
1486
- "text": "number"
1606
+ "text": "boolean"
1607
+ },
1608
+ "privacy": "public",
1609
+ "default": "false",
1610
+ "description": "Expands or collapses the item.",
1611
+ "inheritedFrom": {
1612
+ "name": "AccordionItem",
1613
+ "module": "src/accordion-item/accordion-item.ts"
1487
1614
  }
1488
1615
  },
1489
1616
  {
1490
1617
  "kind": "field",
1491
- "name": "fileName",
1618
+ "name": "id",
1492
1619
  "type": {
1493
1620
  "text": "string"
1494
1621
  },
1495
- "default": "''"
1622
+ "privacy": "public",
1623
+ "description": "The item ID",
1624
+ "inheritedFrom": {
1625
+ "name": "AccordionItem",
1626
+ "module": "src/accordion-item/accordion-item.ts"
1627
+ }
1496
1628
  },
1497
1629
  {
1498
1630
  "kind": "field",
1499
- "name": "isProcessing",
1631
+ "name": "change",
1632
+ "privacy": "private",
1633
+ "inheritedFrom": {
1634
+ "name": "AccordionItem",
1635
+ "module": "src/accordion-item/accordion-item.ts"
1636
+ }
1637
+ },
1638
+ {
1639
+ "kind": "field",
1640
+ "name": "_presentation",
1500
1641
  "type": {
1501
- "text": "boolean"
1642
+ "text": "ComponentPresentation | null | undefined"
1502
1643
  },
1503
- "default": "false"
1644
+ "privacy": "private",
1645
+ "default": "void 0",
1646
+ "inheritedFrom": {
1647
+ "name": "FoundationElement",
1648
+ "module": "src/foundation-element/foundation-element.ts"
1649
+ }
1504
1650
  },
1505
1651
  {
1506
- "kind": "method",
1507
- "name": "handleClick",
1652
+ "kind": "field",
1653
+ "name": "$presentation",
1654
+ "type": {
1655
+ "text": "ComponentPresentation | null"
1656
+ },
1508
1657
  "privacy": "public",
1509
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1658
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1659
+ "inheritedFrom": {
1660
+ "name": "FoundationElement",
1661
+ "module": "src/foundation-element/foundation-element.ts"
1662
+ }
1510
1663
  },
1511
1664
  {
1512
- "kind": "method",
1513
- "name": "onInputChange",
1665
+ "kind": "field",
1666
+ "name": "template",
1667
+ "type": {
1668
+ "text": "ElementViewTemplate | void | null"
1669
+ },
1514
1670
  "privacy": "public",
1515
- "parameters": [
1516
- {
1517
- "name": "e",
1518
- "type": {
1519
- "text": "Event"
1520
- },
1521
- "description": "The change event from the file input"
1522
- }
1523
- ],
1524
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1525
- },
1526
- {
1527
- "kind": "method",
1528
- "name": "clearSelection",
1529
- "privacy": "public",
1530
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
1531
- },
1532
- {
1533
- "kind": "method",
1534
- "name": "getSelectedFile",
1535
- "privacy": "public",
1536
- "description": "Gets the currently selected file object",
1537
- "return": {
1538
- "type": {
1539
- "text": ""
1540
- }
1541
- }
1542
- },
1543
- {
1544
- "kind": "method",
1545
- "name": "showError",
1546
- "privacy": "protected",
1547
- "parameters": [
1548
- {
1549
- "name": "title",
1550
- "type": {
1551
- "text": "string"
1552
- },
1553
- "description": "The error title"
1554
- },
1555
- {
1556
- "name": "message",
1557
- "type": {
1558
- "text": "string"
1559
- },
1560
- "description": "The error message"
1561
- }
1562
- ],
1563
- "description": "Shows an error notification using the unified error handling system"
1564
- },
1565
- {
1566
- "kind": "method",
1567
- "name": "onFileSelected",
1568
- "privacy": "protected",
1569
- "return": {
1570
- "type": {
1571
- "text": "void"
1572
- }
1573
- },
1574
- "parameters": [
1575
- {
1576
- "name": "files",
1577
- "type": {
1578
- "text": "File[]"
1579
- },
1580
- "description": "The selected file"
1581
- }
1582
- ],
1583
- "description": "Abstract method called when a file is selected"
1584
- },
1585
- {
1586
- "kind": "method",
1587
- "name": "onFileCleared",
1588
- "privacy": "protected",
1589
- "return": {
1590
- "type": {
1591
- "text": "void"
1592
- }
1593
- },
1594
- "description": "Abstract method called when file selection is cleared"
1595
- },
1596
- {
1597
- "kind": "field",
1598
- "name": "_presentation",
1599
- "type": {
1600
- "text": "ComponentPresentation | null | undefined"
1601
- },
1602
- "privacy": "private",
1603
- "default": "void 0",
1604
- "inheritedFrom": {
1605
- "name": "FoundationElement",
1606
- "module": "src/foundation-element/foundation-element.ts"
1607
- }
1608
- },
1609
- {
1610
- "kind": "field",
1611
- "name": "$presentation",
1612
- "type": {
1613
- "text": "ComponentPresentation | null"
1614
- },
1615
- "privacy": "public",
1616
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1617
- "inheritedFrom": {
1618
- "name": "FoundationElement",
1619
- "module": "src/foundation-element/foundation-element.ts"
1620
- }
1621
- },
1622
- {
1623
- "kind": "field",
1624
- "name": "template",
1625
- "type": {
1626
- "text": "ElementViewTemplate | void | null"
1627
- },
1628
- "privacy": "public",
1629
- "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.",
1630
- "inheritedFrom": {
1631
- "name": "FoundationElement",
1632
- "module": "src/foundation-element/foundation-element.ts"
1633
- }
1671
+ "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.",
1672
+ "inheritedFrom": {
1673
+ "name": "FoundationElement",
1674
+ "module": "src/foundation-element/foundation-element.ts"
1675
+ }
1634
1676
  },
1635
1677
  {
1636
1678
  "kind": "method",
@@ -1707,110 +1749,76 @@
1707
1749
  ],
1708
1750
  "events": [
1709
1751
  {
1710
- "description": "Fired when file size validation fails. detail: `Error`",
1711
- "name": "error"
1712
- },
1713
- {
1714
- "description": "Fired when selection is cleared",
1715
- "name": "clear"
1716
- }
1717
- ],
1718
- "attributes": [
1719
- {
1720
- "name": "label",
1721
- "type": {
1722
- "text": "string"
1723
- },
1724
- "fieldName": "label"
1725
- },
1726
- {
1727
- "name": "accept",
1728
- "type": {
1729
- "text": "string"
1730
- },
1731
- "default": "''",
1732
- "fieldName": "accept"
1733
- },
1734
- {
1735
- "name": "file-size-limit-bytes",
1736
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1737
- "resolveInitializer": {
1738
- "module": "src/_common/base-file-component.ts"
1739
- },
1740
- "fieldName": "fileSizeLimitBytes"
1752
+ "description": "Fires a custom 'change' event when the button is invoked",
1753
+ "name": "change",
1754
+ "inheritedFrom": {
1755
+ "name": "AccordionItem",
1756
+ "module": "src/accordion-item/accordion-item.ts"
1757
+ }
1741
1758
  }
1742
- ],
1743
- "superclass": {
1744
- "name": "FoundationElement",
1745
- "package": "@microsoft/fast-foundation"
1746
- }
1759
+ ]
1760
+ },
1761
+ {
1762
+ "kind": "variable",
1763
+ "name": "foundationAccordionItemShadowOptions",
1764
+ "type": {
1765
+ "text": "ShadowRootInit"
1766
+ },
1767
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1768
+ },
1769
+ {
1770
+ "kind": "variable",
1771
+ "name": "defaultAccordionItemConfig",
1772
+ "type": {
1773
+ "text": "object"
1774
+ },
1775
+ "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}"
1776
+ },
1777
+ {
1778
+ "kind": "variable",
1779
+ "name": "foundationAccordionItem",
1780
+ "description": "The Foundation Accordion Item",
1781
+ "privacy": "public"
1747
1782
  }
1748
1783
  ],
1749
1784
  "exports": [
1750
1785
  {
1751
1786
  "kind": "js",
1752
- "name": "BaseFileComponent",
1787
+ "name": "AccordionItem",
1753
1788
  "declaration": {
1754
- "name": "BaseFileComponent",
1755
- "module": "src/_common/base-file-component.ts"
1789
+ "name": "AccordionItem",
1790
+ "module": "src/accordion-item/accordion-item.ts"
1756
1791
  }
1757
- }
1758
- ]
1759
- },
1760
- {
1761
- "kind": "javascript-module",
1762
- "path": "src/_common/field-styles.ts",
1763
- "declarations": [
1764
- {
1765
- "kind": "variable",
1766
- "name": "sharedFieldStyles",
1767
- "default": "css`\n .label-hidden {\n margin: 0;\n }\n\n .control-field {\n display: flex;\n flex: 1 1 0%;\n min-width: 0;\n align-self: stretch;\n align-items: stretch;\n }\n\n .control-field .control {\n flex: 1 1 auto;\n min-width: 0;\n width: auto;\n }\n\n .prefix,\n .suffix {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n box-sizing: border-box;\n padding: 0 calc(var(--design-unit) * 2px);\n user-select: none;\n white-space: nowrap;\n background-color: var(--neutral-fill-rest);\n color: var(--neutral-foreground-hint);\n font-size: var(--type-ramp-base-font-size);\n font-family: inherit;\n line-height: 1;\n }\n\n .prefix {\n border-right: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n .suffix {\n border-left: 1px solid var(--neutral-stroke-divider-rest);\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-prefix:not(.has-suffix)) .control-field .control {\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n }\n\n :host(.has-suffix:not(.has-prefix)) .control-field .control {\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n }\n\n :host(.has-prefix.has-suffix) .control-field .control {\n border-radius: 0;\n }\n`"
1768
- }
1769
- ],
1770
- "exports": [
1792
+ },
1771
1793
  {
1772
1794
  "kind": "js",
1773
- "name": "sharedFieldStyles",
1795
+ "name": "foundationAccordionItemShadowOptions",
1774
1796
  "declaration": {
1775
- "name": "sharedFieldStyles",
1776
- "module": "src/_common/field-styles.ts"
1797
+ "name": "foundationAccordionItemShadowOptions",
1798
+ "module": "src/accordion-item/accordion-item.ts"
1777
1799
  }
1778
- }
1779
- ]
1780
- },
1781
- {
1782
- "kind": "javascript-module",
1783
- "path": "src/_common/icons.ts",
1784
- "declarations": [
1800
+ },
1785
1801
  {
1786
- "kind": "function",
1787
- "name": "closeIcon",
1788
- "parameters": [
1789
- {
1790
- "name": "slot",
1791
- "default": "'start'"
1792
- },
1793
- {
1794
- "name": "fill",
1795
- "default": "'#879ba6'"
1796
- }
1797
- ]
1798
- }
1799
- ],
1800
- "exports": [
1802
+ "kind": "js",
1803
+ "name": "defaultAccordionItemConfig",
1804
+ "declaration": {
1805
+ "name": "defaultAccordionItemConfig",
1806
+ "module": "src/accordion-item/accordion-item.ts"
1807
+ }
1808
+ },
1801
1809
  {
1802
1810
  "kind": "js",
1803
- "name": "closeIcon",
1811
+ "name": "foundationAccordionItem",
1804
1812
  "declaration": {
1805
- "name": "closeIcon",
1806
- "module": "src/_common/icons.ts"
1813
+ "name": "foundationAccordionItem",
1814
+ "module": "src/accordion-item/accordion-item.ts"
1807
1815
  }
1808
1816
  }
1809
1817
  ]
1810
1818
  },
1811
1819
  {
1812
1820
  "kind": "javascript-module",
1813
- "path": "src/_common/index.ts",
1821
+ "path": "src/accordion-item/index.ts",
1814
1822
  "declarations": [],
1815
1823
  "exports": [
1816
1824
  {
@@ -1818,15 +1826,7 @@
1818
1826
  "name": "*",
1819
1827
  "declaration": {
1820
1828
  "name": "*",
1821
- "package": "./affix-mixin"
1822
- }
1823
- },
1824
- {
1825
- "kind": "js",
1826
- "name": "*",
1827
- "declaration": {
1828
- "name": "*",
1829
- "package": "./base-file-component"
1829
+ "package": "./accordion-item.template"
1830
1830
  }
1831
1831
  },
1832
1832
  {
@@ -1834,7 +1834,7 @@
1834
1834
  "name": "*",
1835
1835
  "declaration": {
1836
1836
  "name": "*",
1837
- "package": "./field-styles"
1837
+ "package": "./accordion-item.styles"
1838
1838
  }
1839
1839
  },
1840
1840
  {
@@ -1842,18 +1842,18 @@
1842
1842
  "name": "*",
1843
1843
  "declaration": {
1844
1844
  "name": "*",
1845
- "package": "./icons"
1845
+ "package": "./accordion-item"
1846
1846
  }
1847
1847
  }
1848
1848
  ]
1849
1849
  },
1850
1850
  {
1851
1851
  "kind": "javascript-module",
1852
- "path": "src/accordion/accordion.styles.ts",
1852
+ "path": "src/actions-menu/actions-menu.styles.ts",
1853
1853
  "declarations": [
1854
1854
  {
1855
1855
  "kind": "function",
1856
- "name": "foundationAccordionStyles",
1856
+ "name": "actionsMenuBaseStyles",
1857
1857
  "return": {
1858
1858
  "type": {
1859
1859
  "text": "ElementStyles"
@@ -1873,282 +1873,309 @@
1873
1873
  }
1874
1874
  }
1875
1875
  ]
1876
- }
1877
- ],
1876
+ },
1877
+ {
1878
+ "kind": "function",
1879
+ "name": "foundationActionsMenuStyles",
1880
+ "return": {
1881
+ "type": {
1882
+ "text": "ElementStyles"
1883
+ }
1884
+ },
1885
+ "parameters": [
1886
+ {
1887
+ "name": "context",
1888
+ "type": {
1889
+ "text": "ElementDefinitionContext"
1890
+ }
1891
+ },
1892
+ {
1893
+ "name": "definition",
1894
+ "type": {
1895
+ "text": "FoundationElementDefinition"
1896
+ }
1897
+ }
1898
+ ]
1899
+ }
1900
+ ],
1878
1901
  "exports": [
1879
1902
  {
1880
1903
  "kind": "js",
1881
- "name": "foundationAccordionStyles",
1904
+ "name": "actionsMenuBaseStyles",
1882
1905
  "declaration": {
1883
- "name": "foundationAccordionStyles",
1884
- "module": "src/accordion/accordion.styles.ts"
1906
+ "name": "actionsMenuBaseStyles",
1907
+ "module": "src/actions-menu/actions-menu.styles.ts"
1908
+ }
1909
+ },
1910
+ {
1911
+ "kind": "js",
1912
+ "name": "foundationActionsMenuStyles",
1913
+ "declaration": {
1914
+ "name": "foundationActionsMenuStyles",
1915
+ "module": "src/actions-menu/actions-menu.styles.ts"
1885
1916
  }
1886
1917
  }
1887
1918
  ]
1888
1919
  },
1889
1920
  {
1890
1921
  "kind": "javascript-module",
1891
- "path": "src/accordion/accordion.template.ts",
1922
+ "path": "src/actions-menu/actions-menu.template.ts",
1892
1923
  "declarations": [
1893
1924
  {
1894
1925
  "kind": "function",
1895
- "name": "foundationAccordionTemplate",
1896
- "return": {
1897
- "type": {
1898
- "text": "ViewTemplate<Accordion>"
1899
- }
1900
- },
1926
+ "name": "menuTemplate",
1901
1927
  "parameters": [
1902
1928
  {
1903
- "name": "context",
1929
+ "name": "prefix",
1904
1930
  "type": {
1905
- "text": "ElementDefinitionContext"
1931
+ "text": "string"
1906
1932
  }
1907
- },
1933
+ }
1934
+ ]
1935
+ },
1936
+ {
1937
+ "kind": "function",
1938
+ "name": "singleOptionTemplate",
1939
+ "parameters": [
1908
1940
  {
1909
- "name": "definition",
1941
+ "name": "prefix",
1910
1942
  "type": {
1911
- "text": "FoundationElementDefinition"
1943
+ "text": "string"
1912
1944
  }
1913
1945
  }
1914
1946
  ]
1947
+ },
1948
+ {
1949
+ "kind": "variable",
1950
+ "name": "foundationActionsMenuTemplate",
1951
+ "type": {
1952
+ "text": "ViewTemplate<ActionsMenu>"
1953
+ },
1954
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1915
1955
  }
1916
1956
  ],
1917
1957
  "exports": [
1918
1958
  {
1919
1959
  "kind": "js",
1920
- "name": "foundationAccordionTemplate",
1960
+ "name": "menuTemplate",
1921
1961
  "declaration": {
1922
- "name": "foundationAccordionTemplate",
1923
- "module": "src/accordion/accordion.template.ts"
1962
+ "name": "menuTemplate",
1963
+ "module": "src/actions-menu/actions-menu.template.ts"
1964
+ }
1965
+ },
1966
+ {
1967
+ "kind": "js",
1968
+ "name": "singleOptionTemplate",
1969
+ "declaration": {
1970
+ "name": "singleOptionTemplate",
1971
+ "module": "src/actions-menu/actions-menu.template.ts"
1972
+ }
1973
+ },
1974
+ {
1975
+ "kind": "js",
1976
+ "name": "foundationActionsMenuTemplate",
1977
+ "declaration": {
1978
+ "name": "foundationActionsMenuTemplate",
1979
+ "module": "src/actions-menu/actions-menu.template.ts"
1924
1980
  }
1925
1981
  }
1926
1982
  ]
1927
1983
  },
1928
1984
  {
1929
1985
  "kind": "javascript-module",
1930
- "path": "src/accordion/accordion.ts",
1986
+ "path": "src/actions-menu/actions-menu.ts",
1931
1987
  "declarations": [
1932
1988
  {
1933
1989
  "kind": "class",
1934
1990
  "description": "",
1935
- "name": "Accordion",
1936
- "superclass": {
1937
- "name": "FASTAccordion",
1938
- "package": "@microsoft/fast-foundation"
1939
- },
1940
- "tagName": "%%prefix%%-accordion",
1941
- "customElement": true,
1942
- "attributes": [
1991
+ "name": "ActionsMenu",
1992
+ "members": [
1943
1993
  {
1944
- "name": "expand-mode",
1994
+ "kind": "field",
1995
+ "name": "actions",
1945
1996
  "type": {
1946
- "text": "AccordionExpandMode"
1947
- },
1948
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1949
- "fieldName": "expandmode",
1950
- "inheritedFrom": {
1951
- "name": "Accordion",
1952
- "module": "src/accordion/accordion.ts"
1997
+ "text": "ActionMenuItem[]"
1953
1998
  }
1954
- }
1955
- ],
1956
- "members": [
1999
+ },
1957
2000
  {
1958
2001
  "kind": "field",
1959
- "name": "expandmode",
2002
+ "name": "isVertical",
1960
2003
  "type": {
1961
- "text": "AccordionExpandMode"
2004
+ "text": "boolean"
1962
2005
  },
1963
- "privacy": "public",
1964
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1965
- "inheritedFrom": {
1966
- "name": "Accordion",
1967
- "module": "src/accordion/accordion.ts"
1968
- }
2006
+ "default": "false"
1969
2007
  },
1970
2008
  {
1971
2009
  "kind": "field",
1972
- "name": "activeid",
2010
+ "name": "addDefaultActions",
1973
2011
  "type": {
1974
- "text": "string | null"
2012
+ "text": "boolean"
1975
2013
  },
1976
- "privacy": "private",
1977
- "inheritedFrom": {
1978
- "name": "Accordion",
1979
- "module": "src/accordion/accordion.ts"
1980
- }
2014
+ "default": "true"
1981
2015
  },
1982
2016
  {
1983
2017
  "kind": "field",
1984
- "name": "activeItemIndex",
2018
+ "name": "autoCloseOnAction",
1985
2019
  "type": {
1986
- "text": "number"
2020
+ "text": "boolean"
1987
2021
  },
1988
- "privacy": "private",
1989
- "default": "0",
1990
- "inheritedFrom": {
1991
- "name": "Accordion",
1992
- "module": "src/accordion/accordion.ts"
1993
- }
2022
+ "default": "true"
1994
2023
  },
1995
2024
  {
1996
2025
  "kind": "field",
1997
- "name": "accordionIds",
2026
+ "name": "classNames",
1998
2027
  "type": {
1999
- "text": "Array<string | null>"
2000
- },
2001
- "privacy": "private",
2002
- "inheritedFrom": {
2003
- "name": "Accordion",
2004
- "module": "src/accordion/accordion.ts"
2028
+ "text": "string"
2005
2029
  }
2006
2030
  },
2007
2031
  {
2008
2032
  "kind": "field",
2009
- "name": "change",
2010
- "privacy": "private",
2011
- "inheritedFrom": {
2012
- "name": "Accordion",
2013
- "module": "src/accordion/accordion.ts"
2033
+ "name": "definition",
2034
+ "type": {
2035
+ "text": "any"
2014
2036
  }
2015
2037
  },
2016
2038
  {
2017
- "kind": "method",
2018
- "name": "findExpandedItem",
2019
- "privacy": "private",
2020
- "return": {
2021
- "type": {
2022
- "text": "AccordionItem | null"
2023
- }
2039
+ "kind": "field",
2040
+ "name": "name",
2041
+ "type": {
2042
+ "text": "string"
2024
2043
  },
2025
- "inheritedFrom": {
2026
- "name": "Accordion",
2027
- "module": "src/accordion/accordion.ts"
2028
- }
2044
+ "default": "'Actions'"
2029
2045
  },
2030
2046
  {
2031
2047
  "kind": "field",
2032
- "name": "setItems",
2033
- "privacy": "private",
2034
- "inheritedFrom": {
2035
- "name": "Accordion",
2036
- "module": "src/accordion/accordion.ts"
2048
+ "name": "open",
2049
+ "type": {
2050
+ "text": "boolean"
2051
+ },
2052
+ "default": "false"
2053
+ },
2054
+ {
2055
+ "kind": "field",
2056
+ "name": "buttonAppearance",
2057
+ "type": {
2058
+ "text": "string"
2037
2059
  }
2038
2060
  },
2039
2061
  {
2040
- "kind": "method",
2041
- "name": "resetItems",
2042
- "privacy": "private",
2043
- "return": {
2044
- "type": {
2045
- "text": "void"
2046
- }
2062
+ "kind": "field",
2063
+ "name": "hideDisabled",
2064
+ "type": {
2065
+ "text": "boolean"
2047
2066
  },
2048
- "inheritedFrom": {
2049
- "name": "Accordion",
2050
- "module": "src/accordion/accordion.ts"
2051
- }
2067
+ "default": "false"
2052
2068
  },
2053
2069
  {
2054
2070
  "kind": "field",
2055
- "name": "removeItemListeners",
2056
- "privacy": "private",
2057
- "inheritedFrom": {
2058
- "name": "Accordion",
2059
- "module": "src/accordion/accordion.ts"
2060
- }
2071
+ "name": "hideMenuSingleOption",
2072
+ "type": {
2073
+ "text": "boolean"
2074
+ },
2075
+ "default": "false"
2061
2076
  },
2062
2077
  {
2063
2078
  "kind": "field",
2064
- "name": "activeItemChange",
2065
- "privacy": "private",
2066
- "inheritedFrom": {
2067
- "name": "Accordion",
2068
- "module": "src/accordion/accordion.ts"
2079
+ "name": "singleOption",
2080
+ "type": {
2081
+ "text": "ActionMenuItem"
2069
2082
  }
2070
2083
  },
2071
2084
  {
2072
- "kind": "method",
2073
- "name": "getItemIds",
2074
- "privacy": "private",
2075
- "return": {
2076
- "type": {
2077
- "text": "Array<string | null>"
2078
- }
2079
- },
2080
- "inheritedFrom": {
2081
- "name": "Accordion",
2082
- "module": "src/accordion/accordion.ts"
2085
+ "kind": "field",
2086
+ "name": "actionsMenu",
2087
+ "type": {
2088
+ "text": "HTMLElement"
2083
2089
  }
2084
2090
  },
2085
2091
  {
2086
- "kind": "method",
2087
- "name": "isSingleExpandMode",
2088
- "privacy": "private",
2089
- "return": {
2090
- "type": {
2091
- "text": "boolean"
2092
- }
2093
- },
2094
- "inheritedFrom": {
2095
- "name": "Accordion",
2096
- "module": "src/accordion/accordion.ts"
2092
+ "kind": "field",
2093
+ "name": "actionsOpener",
2094
+ "type": {
2095
+ "text": "HTMLElement"
2097
2096
  }
2098
2097
  },
2099
2098
  {
2100
- "kind": "field",
2101
- "name": "handleItemKeyDown",
2102
- "privacy": "private",
2103
- "inheritedFrom": {
2104
- "name": "Accordion",
2105
- "module": "src/accordion/accordion.ts"
2106
- }
2099
+ "kind": "method",
2100
+ "name": "updateMenuPosition",
2101
+ "privacy": "private"
2107
2102
  },
2108
2103
  {
2109
- "kind": "field",
2110
- "name": "handleItemFocus",
2111
- "privacy": "private",
2112
- "inheritedFrom": {
2113
- "name": "Accordion",
2114
- "module": "src/accordion/accordion.ts"
2115
- }
2104
+ "kind": "method",
2105
+ "name": "definitionChanged",
2106
+ "privacy": "protected",
2107
+ "parameters": [
2108
+ {
2109
+ "name": "oldValue",
2110
+ "type": {
2111
+ "text": "any"
2112
+ }
2113
+ },
2114
+ {
2115
+ "name": "newValue",
2116
+ "type": {
2117
+ "text": "any"
2118
+ }
2119
+ }
2120
+ ]
2116
2121
  },
2117
2122
  {
2118
2123
  "kind": "method",
2119
- "name": "adjust",
2120
- "privacy": "private",
2121
- "return": {
2122
- "type": {
2123
- "text": "void"
2124
+ "name": "openChanged",
2125
+ "privacy": "protected"
2126
+ },
2127
+ {
2128
+ "kind": "method",
2129
+ "name": "toggleActionsMenuVisibility"
2130
+ },
2131
+ {
2132
+ "kind": "method",
2133
+ "name": "onActionMenuItemClick",
2134
+ "parameters": [
2135
+ {
2136
+ "name": "callback",
2137
+ "type": {
2138
+ "text": "(rowData) => void | any"
2139
+ }
2124
2140
  }
2141
+ ]
2142
+ },
2143
+ {
2144
+ "kind": "field",
2145
+ "name": "allActions",
2146
+ "type": {
2147
+ "text": "ActionMenuItem[]"
2125
2148
  },
2149
+ "readonly": true
2150
+ },
2151
+ {
2152
+ "kind": "field",
2153
+ "name": "rowData",
2154
+ "readonly": true
2155
+ },
2156
+ {
2157
+ "kind": "method",
2158
+ "name": "getLabel",
2126
2159
  "parameters": [
2127
2160
  {
2128
- "name": "adjustment",
2161
+ "name": "name",
2129
2162
  "type": {
2130
- "text": "number"
2163
+ "text": "string | ((rowData: any) => string)"
2131
2164
  }
2132
2165
  }
2133
- ],
2134
- "inheritedFrom": {
2135
- "name": "Accordion",
2136
- "module": "src/accordion/accordion.ts"
2137
- }
2166
+ ]
2138
2167
  },
2139
2168
  {
2140
2169
  "kind": "method",
2141
- "name": "focusItem",
2142
- "privacy": "private",
2143
- "return": {
2144
- "type": {
2145
- "text": "void"
2170
+ "name": "getTemplate",
2171
+ "parameters": [
2172
+ {
2173
+ "name": "prefix",
2174
+ "type": {
2175
+ "text": "string"
2176
+ }
2146
2177
  }
2147
- },
2148
- "inheritedFrom": {
2149
- "name": "Accordion",
2150
- "module": "src/accordion/accordion.ts"
2151
- }
2178
+ ]
2152
2179
  },
2153
2180
  {
2154
2181
  "kind": "field",
@@ -2262,78 +2289,107 @@
2262
2289
  }
2263
2290
  }
2264
2291
  ],
2265
- "events": [
2292
+ "attributes": [
2266
2293
  {
2267
- "description": "Fires a custom 'change' event when the active item changes",
2268
- "name": "change",
2269
- "inheritedFrom": {
2270
- "name": "Accordion",
2271
- "module": "src/accordion/accordion.ts"
2272
- }
2294
+ "name": "is-vertical",
2295
+ "type": {
2296
+ "text": "boolean"
2297
+ },
2298
+ "default": "false",
2299
+ "fieldName": "isVertical"
2300
+ },
2301
+ {
2302
+ "name": "add-default-actions",
2303
+ "type": {
2304
+ "text": "boolean"
2305
+ },
2306
+ "default": "true",
2307
+ "fieldName": "addDefaultActions"
2308
+ },
2309
+ {
2310
+ "name": "auto-close-on-action",
2311
+ "type": {
2312
+ "text": "boolean"
2313
+ },
2314
+ "default": "true",
2315
+ "fieldName": "autoCloseOnAction"
2316
+ },
2317
+ {
2318
+ "name": "name",
2319
+ "type": {
2320
+ "text": "string"
2321
+ },
2322
+ "default": "'Actions'",
2323
+ "fieldName": "name"
2324
+ },
2325
+ {
2326
+ "name": "open",
2327
+ "type": {
2328
+ "text": "boolean"
2329
+ },
2330
+ "default": "false",
2331
+ "fieldName": "open"
2332
+ },
2333
+ {
2334
+ "name": "buttonAppearance",
2335
+ "type": {
2336
+ "text": "string"
2337
+ },
2338
+ "fieldName": "buttonAppearance"
2339
+ },
2340
+ {
2341
+ "name": "hide-disabled",
2342
+ "type": {
2343
+ "text": "boolean"
2344
+ },
2345
+ "default": "false",
2346
+ "fieldName": "hideDisabled"
2347
+ },
2348
+ {
2349
+ "name": "hide-menu-single-option",
2350
+ "type": {
2351
+ "text": "boolean"
2352
+ },
2353
+ "default": "false",
2354
+ "fieldName": "hideMenuSingleOption"
2273
2355
  }
2274
- ]
2275
- },
2276
- {
2277
- "kind": "variable",
2278
- "name": "foundationAccordionShadowOptions",
2279
- "type": {
2280
- "text": "ShadowRootInit"
2281
- },
2282
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2283
- },
2284
- {
2285
- "kind": "variable",
2286
- "name": "defaultAccordionConfig",
2287
- "type": {
2288
- "text": "object"
2356
+ ],
2357
+ "superclass": {
2358
+ "name": "FoundationElement",
2359
+ "package": "@microsoft/fast-foundation"
2289
2360
  },
2290
- "default": "{}"
2361
+ "tagName": "%%prefix%%-actions-menu",
2362
+ "customElement": true
2291
2363
  },
2292
2364
  {
2293
2365
  "kind": "variable",
2294
- "name": "foundationAccordion",
2295
- "description": "The Foundation Accordion",
2366
+ "name": "foundationActionsMenu",
2367
+ "description": "The Foundation Actions Menu",
2296
2368
  "privacy": "public"
2297
2369
  }
2298
2370
  ],
2299
2371
  "exports": [
2300
2372
  {
2301
2373
  "kind": "js",
2302
- "name": "Accordion",
2303
- "declaration": {
2304
- "name": "Accordion",
2305
- "module": "src/accordion/accordion.ts"
2306
- }
2307
- },
2308
- {
2309
- "kind": "js",
2310
- "name": "foundationAccordionShadowOptions",
2311
- "declaration": {
2312
- "name": "foundationAccordionShadowOptions",
2313
- "module": "src/accordion/accordion.ts"
2314
- }
2315
- },
2316
- {
2317
- "kind": "js",
2318
- "name": "defaultAccordionConfig",
2374
+ "name": "ActionsMenu",
2319
2375
  "declaration": {
2320
- "name": "defaultAccordionConfig",
2321
- "module": "src/accordion/accordion.ts"
2376
+ "name": "ActionsMenu",
2377
+ "module": "src/actions-menu/actions-menu.ts"
2322
2378
  }
2323
2379
  },
2324
2380
  {
2325
2381
  "kind": "js",
2326
- "name": "foundationAccordion",
2382
+ "name": "foundationActionsMenu",
2327
2383
  "declaration": {
2328
- "name": "foundationAccordion",
2329
- "module": "src/accordion/accordion.ts"
2384
+ "name": "foundationActionsMenu",
2385
+ "module": "src/actions-menu/actions-menu.ts"
2330
2386
  }
2331
2387
  }
2332
2388
  ]
2333
2389
  },
2334
2390
  {
2335
2391
  "kind": "javascript-module",
2336
- "path": "src/accordion/index.ts",
2392
+ "path": "src/actions-menu/index.ts",
2337
2393
  "declarations": [],
2338
2394
  "exports": [
2339
2395
  {
@@ -2341,7 +2397,7 @@
2341
2397
  "name": "*",
2342
2398
  "declaration": {
2343
2399
  "name": "*",
2344
- "package": "./accordion.template"
2400
+ "package": "./actions-menu.styles"
2345
2401
  }
2346
2402
  },
2347
2403
  {
@@ -2349,7 +2405,7 @@
2349
2405
  "name": "*",
2350
2406
  "declaration": {
2351
2407
  "name": "*",
2352
- "package": "./accordion.styles"
2408
+ "package": "./actions-menu.template"
2353
2409
  }
2354
2410
  },
2355
2411
  {
@@ -2357,210 +2413,122 @@
2357
2413
  "name": "*",
2358
2414
  "declaration": {
2359
2415
  "name": "*",
2360
- "package": "./accordion"
2416
+ "package": "./actions-menu"
2361
2417
  }
2362
2418
  }
2363
2419
  ]
2364
2420
  },
2365
2421
  {
2366
2422
  "kind": "javascript-module",
2367
- "path": "src/actions-menu/actions-menu.styles.ts",
2423
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2368
2424
  "declarations": [
2369
2425
  {
2370
- "kind": "function",
2371
- "name": "actionsMenuBaseStyles",
2372
- "return": {
2373
- "type": {
2374
- "text": "ElementStyles"
2375
- }
2376
- },
2377
- "parameters": [
2378
- {
2379
- "name": "context",
2380
- "type": {
2381
- "text": "ElementDefinitionContext"
2382
- }
2383
- },
2384
- {
2385
- "name": "definition",
2386
- "type": {
2387
- "text": "FoundationElementDefinition"
2388
- }
2389
- }
2390
- ]
2391
- },
2392
- {
2393
- "kind": "function",
2394
- "name": "foundationActionsMenuStyles",
2395
- "return": {
2396
- "type": {
2397
- "text": "ElementStyles"
2398
- }
2399
- },
2400
- "parameters": [
2401
- {
2402
- "name": "context",
2403
- "type": {
2404
- "text": "ElementDefinitionContext"
2405
- }
2406
- },
2407
- {
2408
- "name": "definition",
2409
- "type": {
2410
- "text": "FoundationElementDefinition"
2411
- }
2412
- }
2413
- ]
2426
+ "kind": "variable",
2427
+ "name": "foundationAiCriteriaSearchStyles",
2428
+ "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2414
2429
  }
2415
2430
  ],
2416
2431
  "exports": [
2417
2432
  {
2418
2433
  "kind": "js",
2419
- "name": "actionsMenuBaseStyles",
2420
- "declaration": {
2421
- "name": "actionsMenuBaseStyles",
2422
- "module": "src/actions-menu/actions-menu.styles.ts"
2423
- }
2424
- },
2425
- {
2426
- "kind": "js",
2427
- "name": "foundationActionsMenuStyles",
2434
+ "name": "foundationAiCriteriaSearchStyles",
2428
2435
  "declaration": {
2429
- "name": "foundationActionsMenuStyles",
2430
- "module": "src/actions-menu/actions-menu.styles.ts"
2436
+ "name": "foundationAiCriteriaSearchStyles",
2437
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2431
2438
  }
2432
2439
  }
2433
2440
  ]
2434
2441
  },
2435
2442
  {
2436
2443
  "kind": "javascript-module",
2437
- "path": "src/actions-menu/actions-menu.template.ts",
2444
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2438
2445
  "declarations": [
2439
- {
2440
- "kind": "function",
2441
- "name": "menuTemplate",
2442
- "parameters": [
2443
- {
2444
- "name": "prefix",
2445
- "type": {
2446
- "text": "string"
2447
- }
2448
- }
2449
- ]
2450
- },
2451
- {
2452
- "kind": "function",
2453
- "name": "singleOptionTemplate",
2454
- "parameters": [
2455
- {
2456
- "name": "prefix",
2457
- "type": {
2458
- "text": "string"
2459
- }
2460
- }
2461
- ]
2462
- },
2463
2446
  {
2464
2447
  "kind": "variable",
2465
- "name": "foundationActionsMenuTemplate",
2448
+ "name": "foundationAiCriteriaSearchTemplate",
2466
2449
  "type": {
2467
- "text": "ViewTemplate<ActionsMenu>"
2450
+ "text": "ViewTemplate<AiCriteriaSearch>"
2468
2451
  },
2469
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2452
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2470
2453
  }
2471
2454
  ],
2472
2455
  "exports": [
2473
2456
  {
2474
2457
  "kind": "js",
2475
- "name": "menuTemplate",
2476
- "declaration": {
2477
- "name": "menuTemplate",
2478
- "module": "src/actions-menu/actions-menu.template.ts"
2479
- }
2480
- },
2481
- {
2482
- "kind": "js",
2483
- "name": "singleOptionTemplate",
2484
- "declaration": {
2485
- "name": "singleOptionTemplate",
2486
- "module": "src/actions-menu/actions-menu.template.ts"
2487
- }
2488
- },
2489
- {
2490
- "kind": "js",
2491
- "name": "foundationActionsMenuTemplate",
2458
+ "name": "foundationAiCriteriaSearchTemplate",
2492
2459
  "declaration": {
2493
- "name": "foundationActionsMenuTemplate",
2494
- "module": "src/actions-menu/actions-menu.template.ts"
2460
+ "name": "foundationAiCriteriaSearchTemplate",
2461
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2495
2462
  }
2496
2463
  }
2497
2464
  ]
2498
2465
  },
2499
2466
  {
2500
2467
  "kind": "javascript-module",
2501
- "path": "src/actions-menu/actions-menu.ts",
2468
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2502
2469
  "declarations": [
2503
2470
  {
2504
2471
  "kind": "class",
2505
- "description": "",
2506
- "name": "ActionsMenu",
2472
+ "description": "Natural-language criteria search input with AI interpretation.",
2473
+ "name": "AiCriteriaSearch",
2507
2474
  "members": [
2508
2475
  {
2509
2476
  "kind": "field",
2510
- "name": "actions",
2477
+ "name": "providerRegistry",
2511
2478
  "type": {
2512
- "text": "ActionMenuItem[]"
2479
+ "text": "AIProviderRegistry"
2513
2480
  }
2514
2481
  },
2515
2482
  {
2516
2483
  "kind": "field",
2517
- "name": "isVertical",
2484
+ "name": "placeholder",
2518
2485
  "type": {
2519
- "text": "boolean"
2486
+ "text": "string"
2520
2487
  },
2521
- "default": "false"
2488
+ "default": "'Describe your search criteria in natural language...'"
2522
2489
  },
2523
2490
  {
2524
2491
  "kind": "field",
2525
- "name": "addDefaultActions",
2492
+ "name": "disabled",
2526
2493
  "type": {
2527
2494
  "text": "boolean"
2528
- },
2529
- "default": "true"
2495
+ }
2530
2496
  },
2531
2497
  {
2532
2498
  "kind": "field",
2533
- "name": "autoCloseOnAction",
2499
+ "name": "inputValue",
2534
2500
  "type": {
2535
- "text": "boolean"
2501
+ "text": "string"
2536
2502
  },
2537
- "default": "true"
2503
+ "default": "''"
2538
2504
  },
2539
2505
  {
2540
2506
  "kind": "field",
2541
- "name": "classNames",
2507
+ "name": "isInterpreting",
2542
2508
  "type": {
2543
- "text": "string"
2544
- }
2509
+ "text": "boolean"
2510
+ },
2511
+ "default": "false"
2545
2512
  },
2546
2513
  {
2547
2514
  "kind": "field",
2548
- "name": "definition",
2515
+ "name": "lastValidCriteria",
2549
2516
  "type": {
2550
- "text": "any"
2551
- }
2517
+ "text": "string | null"
2518
+ },
2519
+ "default": "null"
2552
2520
  },
2553
2521
  {
2554
2522
  "kind": "field",
2555
- "name": "name",
2523
+ "name": "activeGroups",
2556
2524
  "type": {
2557
- "text": "string"
2525
+ "text": "CriteriaGroup[]"
2558
2526
  },
2559
- "default": "'Actions'"
2527
+ "default": "[]"
2560
2528
  },
2561
2529
  {
2562
2530
  "kind": "field",
2563
- "name": "open",
2531
+ "name": "showingChips",
2564
2532
  "type": {
2565
2533
  "text": "boolean"
2566
2534
  },
@@ -2568,14 +2536,15 @@
2568
2536
  },
2569
2537
  {
2570
2538
  "kind": "field",
2571
- "name": "buttonAppearance",
2539
+ "name": "fieldMetadata",
2572
2540
  "type": {
2573
- "text": "string"
2574
- }
2541
+ "text": "MetadataDetail[] | string[]"
2542
+ },
2543
+ "default": "[]"
2575
2544
  },
2576
2545
  {
2577
2546
  "kind": "field",
2578
- "name": "hideDisabled",
2547
+ "name": "isRecording",
2579
2548
  "type": {
2580
2549
  "text": "boolean"
2581
2550
  },
@@ -2583,114 +2552,125 @@
2583
2552
  },
2584
2553
  {
2585
2554
  "kind": "field",
2586
- "name": "hideMenuSingleOption",
2555
+ "name": "textAreaRef",
2587
2556
  "type": {
2588
- "text": "boolean"
2557
+ "text": "HTMLTextAreaElement"
2589
2558
  },
2590
- "default": "false"
2559
+ "privacy": "public"
2591
2560
  },
2592
2561
  {
2593
2562
  "kind": "field",
2594
- "name": "singleOption",
2563
+ "name": "stopRecording",
2595
2564
  "type": {
2596
- "text": "ActionMenuItem"
2597
- }
2565
+ "text": "(() => void) | null"
2566
+ },
2567
+ "privacy": "private",
2568
+ "default": "null"
2598
2569
  },
2599
2570
  {
2600
2571
  "kind": "field",
2601
- "name": "actionsMenu",
2572
+ "name": "speechApplyDebounceTimer",
2602
2573
  "type": {
2603
- "text": "HTMLElement"
2604
- }
2574
+ "text": "ReturnType<typeof setTimeout> | null"
2575
+ },
2576
+ "privacy": "private",
2577
+ "default": "null"
2605
2578
  },
2606
2579
  {
2607
2580
  "kind": "field",
2608
- "name": "actionsOpener",
2581
+ "name": "speechAvailable",
2609
2582
  "type": {
2610
- "text": "HTMLElement"
2611
- }
2583
+ "text": "boolean"
2584
+ },
2585
+ "readonly": true
2612
2586
  },
2613
2587
  {
2614
- "kind": "method",
2615
- "name": "updateMenuPosition",
2616
- "privacy": "private"
2588
+ "kind": "field",
2589
+ "name": "criteriaChips",
2590
+ "type": {
2591
+ "text": "CriteriaChip[]"
2592
+ },
2593
+ "readonly": true
2617
2594
  },
2618
2595
  {
2619
2596
  "kind": "method",
2620
- "name": "definitionChanged",
2621
- "privacy": "protected",
2597
+ "name": "getFieldLabel",
2598
+ "privacy": "private",
2599
+ "return": {
2600
+ "type": {
2601
+ "text": "string"
2602
+ }
2603
+ },
2622
2604
  "parameters": [
2623
2605
  {
2624
- "name": "oldValue",
2625
- "type": {
2626
- "text": "any"
2627
- }
2628
- },
2629
- {
2630
- "name": "newValue",
2606
+ "name": "fieldName",
2631
2607
  "type": {
2632
- "text": "any"
2608
+ "text": "string"
2633
2609
  }
2634
2610
  }
2635
2611
  ]
2636
2612
  },
2637
2613
  {
2638
2614
  "kind": "method",
2639
- "name": "openChanged",
2640
- "privacy": "protected"
2641
- },
2642
- {
2643
- "kind": "method",
2644
- "name": "toggleActionsMenuVisibility"
2615
+ "name": "toggleCriteriaView",
2616
+ "return": {
2617
+ "type": {
2618
+ "text": "void"
2619
+ }
2620
+ }
2645
2621
  },
2646
2622
  {
2647
2623
  "kind": "method",
2648
- "name": "onActionMenuItemClick",
2624
+ "name": "removeChip",
2625
+ "return": {
2626
+ "type": {
2627
+ "text": "void"
2628
+ }
2629
+ },
2649
2630
  "parameters": [
2650
2631
  {
2651
- "name": "callback",
2632
+ "name": "groupIndex",
2652
2633
  "type": {
2653
- "text": "(rowData) => void | any"
2634
+ "text": "number"
2635
+ }
2636
+ },
2637
+ {
2638
+ "name": "clauseIndex",
2639
+ "type": {
2640
+ "text": "number"
2654
2641
  }
2655
2642
  }
2656
2643
  ]
2657
2644
  },
2658
2645
  {
2659
- "kind": "field",
2660
- "name": "allActions",
2661
- "type": {
2662
- "text": "ActionMenuItem[]"
2663
- },
2664
- "readonly": true
2665
- },
2666
- {
2667
- "kind": "field",
2668
- "name": "rowData",
2669
- "readonly": true
2646
+ "kind": "method",
2647
+ "name": "clearChips",
2648
+ "return": {
2649
+ "type": {
2650
+ "text": "void"
2651
+ }
2652
+ }
2670
2653
  },
2671
2654
  {
2672
2655
  "kind": "method",
2673
- "name": "getLabel",
2674
- "parameters": [
2675
- {
2676
- "name": "name",
2677
- "type": {
2678
- "text": "string | ((rowData: any) => string)"
2679
- }
2680
- }
2681
- ]
2656
+ "name": "handleSubmit"
2682
2657
  },
2683
2658
  {
2684
2659
  "kind": "method",
2685
- "name": "getTemplate",
2686
- "parameters": [
2687
- {
2688
- "name": "prefix",
2689
- "type": {
2690
- "text": "string"
2691
- }
2692
- }
2693
- ]
2660
+ "name": "handleBlur"
2661
+ },
2662
+ {
2663
+ "kind": "method",
2664
+ "name": "clear"
2665
+ },
2666
+ {
2667
+ "kind": "method",
2668
+ "name": "toggleSpeechInput"
2669
+ },
2670
+ {
2671
+ "kind": "method",
2672
+ "name": "clearSpeechApplyDebounce",
2673
+ "privacy": "private"
2694
2674
  },
2695
2675
  {
2696
2676
  "kind": "field",
@@ -2804,115 +2784,154 @@
2804
2784
  }
2805
2785
  }
2806
2786
  ],
2807
- "attributes": [
2808
- {
2809
- "name": "is-vertical",
2810
- "type": {
2811
- "text": "boolean"
2812
- },
2813
- "default": "false",
2814
- "fieldName": "isVertical"
2815
- },
2816
- {
2817
- "name": "add-default-actions",
2818
- "type": {
2819
- "text": "boolean"
2820
- },
2821
- "default": "true",
2822
- "fieldName": "addDefaultActions"
2823
- },
2824
- {
2825
- "name": "auto-close-on-action",
2826
- "type": {
2827
- "text": "boolean"
2828
- },
2829
- "default": "true",
2830
- "fieldName": "autoCloseOnAction"
2831
- },
2787
+ "events": [
2832
2788
  {
2833
- "name": "name",
2834
- "type": {
2835
- "text": "string"
2836
- },
2837
- "default": "'Actions'",
2838
- "fieldName": "name"
2789
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2790
+ "name": "criteria-changed"
2839
2791
  },
2840
2792
  {
2841
- "name": "open",
2842
- "type": {
2843
- "text": "boolean"
2844
- },
2845
- "default": "false",
2846
- "fieldName": "open"
2847
- },
2793
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2794
+ "name": "validation-errors"
2795
+ }
2796
+ ],
2797
+ "attributes": [
2848
2798
  {
2849
- "name": "buttonAppearance",
2799
+ "name": "placeholder",
2850
2800
  "type": {
2851
2801
  "text": "string"
2852
2802
  },
2853
- "fieldName": "buttonAppearance"
2854
- },
2855
- {
2856
- "name": "hide-disabled",
2857
- "type": {
2858
- "text": "boolean"
2859
- },
2860
- "default": "false",
2861
- "fieldName": "hideDisabled"
2803
+ "default": "'Describe your search criteria in natural language...'",
2804
+ "fieldName": "placeholder"
2862
2805
  },
2863
2806
  {
2864
- "name": "hide-menu-single-option",
2865
2807
  "type": {
2866
2808
  "text": "boolean"
2867
2809
  },
2868
- "default": "false",
2869
- "fieldName": "hideMenuSingleOption"
2810
+ "fieldName": "disabled"
2870
2811
  }
2871
2812
  ],
2872
2813
  "superclass": {
2873
2814
  "name": "FoundationElement",
2874
2815
  "package": "@microsoft/fast-foundation"
2875
2816
  },
2876
- "tagName": "%%prefix%%-actions-menu",
2817
+ "tagName": "%%prefix%%-ai-criteria-search",
2877
2818
  "customElement": true
2878
2819
  },
2879
2820
  {
2880
2821
  "kind": "variable",
2881
- "name": "foundationActionsMenu",
2882
- "description": "The Foundation Actions Menu",
2883
- "privacy": "public"
2822
+ "name": "foundationAiCriteriaSearchShadowOptions",
2823
+ "type": {
2824
+ "text": "ShadowRootInit"
2825
+ },
2826
+ "default": "undefined"
2827
+ },
2828
+ {
2829
+ "kind": "variable",
2830
+ "name": "defaultAiCriteriaSearchConfig",
2831
+ "type": {
2832
+ "text": "object"
2833
+ },
2834
+ "default": "{}"
2835
+ },
2836
+ {
2837
+ "kind": "variable",
2838
+ "name": "foundationAiCriteriaSearch"
2884
2839
  }
2885
2840
  ],
2886
2841
  "exports": [
2887
2842
  {
2888
2843
  "kind": "js",
2889
- "name": "ActionsMenu",
2844
+ "name": "AiCriteriaSearch",
2890
2845
  "declaration": {
2891
- "name": "ActionsMenu",
2892
- "module": "src/actions-menu/actions-menu.ts"
2846
+ "name": "AiCriteriaSearch",
2847
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2893
2848
  }
2894
2849
  },
2895
2850
  {
2896
2851
  "kind": "js",
2897
- "name": "foundationActionsMenu",
2852
+ "name": "foundationAiCriteriaSearchShadowOptions",
2898
2853
  "declaration": {
2899
- "name": "foundationActionsMenu",
2900
- "module": "src/actions-menu/actions-menu.ts"
2854
+ "name": "foundationAiCriteriaSearchShadowOptions",
2855
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2856
+ }
2857
+ },
2858
+ {
2859
+ "kind": "js",
2860
+ "name": "defaultAiCriteriaSearchConfig",
2861
+ "declaration": {
2862
+ "name": "defaultAiCriteriaSearchConfig",
2863
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2864
+ }
2865
+ },
2866
+ {
2867
+ "kind": "js",
2868
+ "name": "foundationAiCriteriaSearch",
2869
+ "declaration": {
2870
+ "name": "foundationAiCriteriaSearch",
2871
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2901
2872
  }
2902
2873
  }
2903
2874
  ]
2904
2875
  },
2905
2876
  {
2906
2877
  "kind": "javascript-module",
2907
- "path": "src/actions-menu/index.ts",
2878
+ "path": "src/ai-criteria-search/index.ts",
2908
2879
  "declarations": [],
2909
2880
  "exports": [
2881
+ {
2882
+ "kind": "js",
2883
+ "name": "AiCriteriaSearch",
2884
+ "declaration": {
2885
+ "name": "AiCriteriaSearch",
2886
+ "module": "./ai-criteria-search"
2887
+ }
2888
+ },
2889
+ {
2890
+ "kind": "js",
2891
+ "name": "defaultAiCriteriaSearchConfig",
2892
+ "declaration": {
2893
+ "name": "defaultAiCriteriaSearchConfig",
2894
+ "module": "./ai-criteria-search"
2895
+ }
2896
+ },
2897
+ {
2898
+ "kind": "js",
2899
+ "name": "foundationAiCriteriaSearch",
2900
+ "declaration": {
2901
+ "name": "foundationAiCriteriaSearch",
2902
+ "module": "./ai-criteria-search"
2903
+ }
2904
+ },
2905
+ {
2906
+ "kind": "js",
2907
+ "name": "foundationAiCriteriaSearchShadowOptions",
2908
+ "declaration": {
2909
+ "name": "foundationAiCriteriaSearchShadowOptions",
2910
+ "module": "./ai-criteria-search"
2911
+ }
2912
+ },
2913
+ {
2914
+ "kind": "js",
2915
+ "name": "foundationAiCriteriaSearchStyles",
2916
+ "declaration": {
2917
+ "name": "foundationAiCriteriaSearchStyles",
2918
+ "module": "./ai-criteria-search.styles"
2919
+ }
2920
+ },
2921
+ {
2922
+ "kind": "js",
2923
+ "name": "foundationAiCriteriaSearchTemplate",
2924
+ "declaration": {
2925
+ "name": "foundationAiCriteriaSearchTemplate",
2926
+ "module": "./ai-criteria-search.template"
2927
+ }
2928
+ },
2910
2929
  {
2911
2930
  "kind": "js",
2912
2931
  "name": "*",
2913
2932
  "declaration": {
2914
2933
  "name": "*",
2915
- "package": "./actions-menu.styles"
2934
+ "package": "./validation/criteria-ir"
2916
2935
  }
2917
2936
  },
2918
2937
  {
@@ -2920,7 +2939,7 @@
2920
2939
  "name": "*",
2921
2940
  "declaration": {
2922
2941
  "name": "*",
2923
- "package": "./actions-menu.template"
2942
+ "package": "./validation/operator-map"
2924
2943
  }
2925
2944
  },
2926
2945
  {
@@ -2928,215 +2947,357 @@
2928
2947
  "name": "*",
2929
2948
  "declaration": {
2930
2949
  "name": "*",
2931
- "package": "./actions-menu"
2950
+ "package": "./validation/schema-validator"
2932
2951
  }
2933
2952
  }
2934
2953
  ]
2935
2954
  },
2936
2955
  {
2937
2956
  "kind": "javascript-module",
2938
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2957
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2939
2958
  "declarations": [
2940
2959
  {
2941
- "kind": "variable",
2942
- "name": "foundationAiCriteriaSearchStyles",
2943
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2960
+ "kind": "function",
2961
+ "name": "formatValidationErrors",
2962
+ "return": {
2963
+ "type": {
2964
+ "text": "string"
2965
+ }
2966
+ },
2967
+ "parameters": [
2968
+ {
2969
+ "name": "errors",
2970
+ "type": {
2971
+ "text": "ValidationError[]"
2972
+ }
2973
+ }
2974
+ ],
2975
+ "description": "Formats validation errors into a user-friendly message."
2976
+ },
2977
+ {
2978
+ "kind": "function",
2979
+ "name": "showCriteriaError",
2980
+ "return": {
2981
+ "type": {
2982
+ "text": "void"
2983
+ }
2984
+ },
2985
+ "parameters": [
2986
+ {
2987
+ "name": "title",
2988
+ "type": {
2989
+ "text": "string"
2990
+ },
2991
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2992
+ },
2993
+ {
2994
+ "name": "body",
2995
+ "type": {
2996
+ "text": "string"
2997
+ },
2998
+ "description": "Error message to display"
2999
+ },
3000
+ {
3001
+ "name": "tagName",
3002
+ "type": {
3003
+ "text": "string"
3004
+ },
3005
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3006
+ }
3007
+ ],
3008
+ "description": "Shows a criteria error as a toast notification."
3009
+ }
3010
+ ],
3011
+ "exports": [
3012
+ {
3013
+ "kind": "js",
3014
+ "name": "formatValidationErrors",
3015
+ "declaration": {
3016
+ "name": "formatValidationErrors",
3017
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3018
+ }
3019
+ },
3020
+ {
3021
+ "kind": "js",
3022
+ "name": "showCriteriaError",
3023
+ "declaration": {
3024
+ "name": "showCriteriaError",
3025
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3026
+ }
3027
+ }
3028
+ ]
3029
+ },
3030
+ {
3031
+ "kind": "javascript-module",
3032
+ "path": "src/accordion/accordion.styles.ts",
3033
+ "declarations": [
3034
+ {
3035
+ "kind": "function",
3036
+ "name": "foundationAccordionStyles",
3037
+ "return": {
3038
+ "type": {
3039
+ "text": "ElementStyles"
3040
+ }
3041
+ },
3042
+ "parameters": [
3043
+ {
3044
+ "name": "context",
3045
+ "type": {
3046
+ "text": "ElementDefinitionContext"
3047
+ }
3048
+ },
3049
+ {
3050
+ "name": "definition",
3051
+ "type": {
3052
+ "text": "FoundationElementDefinition"
3053
+ }
3054
+ }
3055
+ ]
2944
3056
  }
2945
3057
  ],
2946
3058
  "exports": [
2947
3059
  {
2948
3060
  "kind": "js",
2949
- "name": "foundationAiCriteriaSearchStyles",
3061
+ "name": "foundationAccordionStyles",
2950
3062
  "declaration": {
2951
- "name": "foundationAiCriteriaSearchStyles",
2952
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3063
+ "name": "foundationAccordionStyles",
3064
+ "module": "src/accordion/accordion.styles.ts"
2953
3065
  }
2954
3066
  }
2955
3067
  ]
2956
3068
  },
2957
3069
  {
2958
3070
  "kind": "javascript-module",
2959
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3071
+ "path": "src/accordion/accordion.template.ts",
2960
3072
  "declarations": [
2961
3073
  {
2962
- "kind": "variable",
2963
- "name": "foundationAiCriteriaSearchTemplate",
2964
- "type": {
2965
- "text": "ViewTemplate<AiCriteriaSearch>"
3074
+ "kind": "function",
3075
+ "name": "foundationAccordionTemplate",
3076
+ "return": {
3077
+ "type": {
3078
+ "text": "ViewTemplate<Accordion>"
3079
+ }
2966
3080
  },
2967
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3081
+ "parameters": [
3082
+ {
3083
+ "name": "context",
3084
+ "type": {
3085
+ "text": "ElementDefinitionContext"
3086
+ }
3087
+ },
3088
+ {
3089
+ "name": "definition",
3090
+ "type": {
3091
+ "text": "FoundationElementDefinition"
3092
+ }
3093
+ }
3094
+ ]
2968
3095
  }
2969
3096
  ],
2970
3097
  "exports": [
2971
3098
  {
2972
3099
  "kind": "js",
2973
- "name": "foundationAiCriteriaSearchTemplate",
3100
+ "name": "foundationAccordionTemplate",
2974
3101
  "declaration": {
2975
- "name": "foundationAiCriteriaSearchTemplate",
2976
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3102
+ "name": "foundationAccordionTemplate",
3103
+ "module": "src/accordion/accordion.template.ts"
2977
3104
  }
2978
3105
  }
2979
3106
  ]
2980
3107
  },
2981
3108
  {
2982
3109
  "kind": "javascript-module",
2983
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3110
+ "path": "src/accordion/accordion.ts",
2984
3111
  "declarations": [
2985
3112
  {
2986
3113
  "kind": "class",
2987
- "description": "Natural-language criteria search input with AI interpretation.",
2988
- "name": "AiCriteriaSearch",
2989
- "members": [
2990
- {
2991
- "kind": "field",
2992
- "name": "providerRegistry",
2993
- "type": {
2994
- "text": "AIProviderRegistry"
2995
- }
2996
- },
3114
+ "description": "",
3115
+ "name": "Accordion",
3116
+ "superclass": {
3117
+ "name": "FASTAccordion",
3118
+ "package": "@microsoft/fast-foundation"
3119
+ },
3120
+ "tagName": "%%prefix%%-accordion",
3121
+ "customElement": true,
3122
+ "attributes": [
2997
3123
  {
2998
- "kind": "field",
2999
- "name": "placeholder",
3124
+ "name": "expand-mode",
3000
3125
  "type": {
3001
- "text": "string"
3126
+ "text": "AccordionExpandMode"
3002
3127
  },
3003
- "default": "'Describe your search criteria in natural language...'"
3004
- },
3005
- {
3006
- "kind": "field",
3007
- "name": "disabled",
3008
- "type": {
3009
- "text": "boolean"
3128
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3129
+ "fieldName": "expandmode",
3130
+ "inheritedFrom": {
3131
+ "name": "Accordion",
3132
+ "module": "src/accordion/accordion.ts"
3010
3133
  }
3011
- },
3012
- {
3013
- "kind": "field",
3014
- "name": "inputValue",
3015
- "type": {
3016
- "text": "string"
3017
- },
3018
- "default": "''"
3019
- },
3134
+ }
3135
+ ],
3136
+ "members": [
3020
3137
  {
3021
3138
  "kind": "field",
3022
- "name": "isInterpreting",
3139
+ "name": "expandmode",
3023
3140
  "type": {
3024
- "text": "boolean"
3141
+ "text": "AccordionExpandMode"
3025
3142
  },
3026
- "default": "false"
3143
+ "privacy": "public",
3144
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3145
+ "inheritedFrom": {
3146
+ "name": "Accordion",
3147
+ "module": "src/accordion/accordion.ts"
3148
+ }
3027
3149
  },
3028
3150
  {
3029
3151
  "kind": "field",
3030
- "name": "lastValidCriteria",
3152
+ "name": "activeid",
3031
3153
  "type": {
3032
3154
  "text": "string | null"
3033
3155
  },
3034
- "default": "null"
3035
- },
3036
- {
3037
- "kind": "field",
3038
- "name": "activeGroups",
3039
- "type": {
3040
- "text": "CriteriaGroup[]"
3041
- },
3042
- "default": "[]"
3156
+ "privacy": "private",
3157
+ "inheritedFrom": {
3158
+ "name": "Accordion",
3159
+ "module": "src/accordion/accordion.ts"
3160
+ }
3043
3161
  },
3044
3162
  {
3045
3163
  "kind": "field",
3046
- "name": "showingChips",
3164
+ "name": "activeItemIndex",
3047
3165
  "type": {
3048
- "text": "boolean"
3166
+ "text": "number"
3049
3167
  },
3050
- "default": "false"
3168
+ "privacy": "private",
3169
+ "default": "0",
3170
+ "inheritedFrom": {
3171
+ "name": "Accordion",
3172
+ "module": "src/accordion/accordion.ts"
3173
+ }
3051
3174
  },
3052
3175
  {
3053
3176
  "kind": "field",
3054
- "name": "fieldMetadata",
3177
+ "name": "accordionIds",
3055
3178
  "type": {
3056
- "text": "MetadataDetail[] | string[]"
3179
+ "text": "Array<string | null>"
3057
3180
  },
3058
- "default": "[]"
3181
+ "privacy": "private",
3182
+ "inheritedFrom": {
3183
+ "name": "Accordion",
3184
+ "module": "src/accordion/accordion.ts"
3185
+ }
3059
3186
  },
3060
3187
  {
3061
3188
  "kind": "field",
3062
- "name": "isRecording",
3063
- "type": {
3064
- "text": "boolean"
3065
- },
3066
- "default": "false"
3189
+ "name": "change",
3190
+ "privacy": "private",
3191
+ "inheritedFrom": {
3192
+ "name": "Accordion",
3193
+ "module": "src/accordion/accordion.ts"
3194
+ }
3067
3195
  },
3068
3196
  {
3069
- "kind": "field",
3070
- "name": "textAreaRef",
3071
- "type": {
3072
- "text": "HTMLTextAreaElement"
3197
+ "kind": "method",
3198
+ "name": "findExpandedItem",
3199
+ "privacy": "private",
3200
+ "return": {
3201
+ "type": {
3202
+ "text": "AccordionItem | null"
3203
+ }
3073
3204
  },
3074
- "privacy": "public"
3205
+ "inheritedFrom": {
3206
+ "name": "Accordion",
3207
+ "module": "src/accordion/accordion.ts"
3208
+ }
3075
3209
  },
3076
3210
  {
3077
3211
  "kind": "field",
3078
- "name": "stopRecording",
3079
- "type": {
3080
- "text": "(() => void) | null"
3081
- },
3212
+ "name": "setItems",
3082
3213
  "privacy": "private",
3083
- "default": "null"
3214
+ "inheritedFrom": {
3215
+ "name": "Accordion",
3216
+ "module": "src/accordion/accordion.ts"
3217
+ }
3084
3218
  },
3085
3219
  {
3086
- "kind": "field",
3087
- "name": "speechApplyDebounceTimer",
3088
- "type": {
3089
- "text": "ReturnType<typeof setTimeout> | null"
3090
- },
3220
+ "kind": "method",
3221
+ "name": "resetItems",
3091
3222
  "privacy": "private",
3092
- "default": "null"
3223
+ "return": {
3224
+ "type": {
3225
+ "text": "void"
3226
+ }
3227
+ },
3228
+ "inheritedFrom": {
3229
+ "name": "Accordion",
3230
+ "module": "src/accordion/accordion.ts"
3231
+ }
3093
3232
  },
3094
3233
  {
3095
3234
  "kind": "field",
3096
- "name": "speechAvailable",
3097
- "type": {
3098
- "text": "boolean"
3099
- },
3100
- "readonly": true
3235
+ "name": "removeItemListeners",
3236
+ "privacy": "private",
3237
+ "inheritedFrom": {
3238
+ "name": "Accordion",
3239
+ "module": "src/accordion/accordion.ts"
3240
+ }
3101
3241
  },
3102
3242
  {
3103
3243
  "kind": "field",
3104
- "name": "criteriaChips",
3105
- "type": {
3106
- "text": "CriteriaChip[]"
3107
- },
3108
- "readonly": true
3244
+ "name": "activeItemChange",
3245
+ "privacy": "private",
3246
+ "inheritedFrom": {
3247
+ "name": "Accordion",
3248
+ "module": "src/accordion/accordion.ts"
3249
+ }
3109
3250
  },
3110
3251
  {
3111
3252
  "kind": "method",
3112
- "name": "getFieldLabel",
3253
+ "name": "getItemIds",
3113
3254
  "privacy": "private",
3114
3255
  "return": {
3115
3256
  "type": {
3116
- "text": "string"
3257
+ "text": "Array<string | null>"
3117
3258
  }
3118
3259
  },
3119
- "parameters": [
3120
- {
3121
- "name": "fieldName",
3122
- "type": {
3123
- "text": "string"
3124
- }
3125
- }
3126
- ]
3260
+ "inheritedFrom": {
3261
+ "name": "Accordion",
3262
+ "module": "src/accordion/accordion.ts"
3263
+ }
3127
3264
  },
3128
3265
  {
3129
3266
  "kind": "method",
3130
- "name": "toggleCriteriaView",
3267
+ "name": "isSingleExpandMode",
3268
+ "privacy": "private",
3131
3269
  "return": {
3132
3270
  "type": {
3133
- "text": "void"
3271
+ "text": "boolean"
3134
3272
  }
3273
+ },
3274
+ "inheritedFrom": {
3275
+ "name": "Accordion",
3276
+ "module": "src/accordion/accordion.ts"
3277
+ }
3278
+ },
3279
+ {
3280
+ "kind": "field",
3281
+ "name": "handleItemKeyDown",
3282
+ "privacy": "private",
3283
+ "inheritedFrom": {
3284
+ "name": "Accordion",
3285
+ "module": "src/accordion/accordion.ts"
3286
+ }
3287
+ },
3288
+ {
3289
+ "kind": "field",
3290
+ "name": "handleItemFocus",
3291
+ "privacy": "private",
3292
+ "inheritedFrom": {
3293
+ "name": "Accordion",
3294
+ "module": "src/accordion/accordion.ts"
3135
3295
  }
3136
3296
  },
3137
3297
  {
3138
3298
  "kind": "method",
3139
- "name": "removeChip",
3299
+ "name": "adjust",
3300
+ "privacy": "private",
3140
3301
  "return": {
3141
3302
  "type": {
3142
3303
  "text": "void"
@@ -3144,49 +3305,31 @@
3144
3305
  },
3145
3306
  "parameters": [
3146
3307
  {
3147
- "name": "groupIndex",
3148
- "type": {
3149
- "text": "number"
3150
- }
3151
- },
3152
- {
3153
- "name": "clauseIndex",
3308
+ "name": "adjustment",
3154
3309
  "type": {
3155
3310
  "text": "number"
3156
3311
  }
3157
3312
  }
3158
- ]
3313
+ ],
3314
+ "inheritedFrom": {
3315
+ "name": "Accordion",
3316
+ "module": "src/accordion/accordion.ts"
3317
+ }
3159
3318
  },
3160
3319
  {
3161
3320
  "kind": "method",
3162
- "name": "clearChips",
3321
+ "name": "focusItem",
3322
+ "privacy": "private",
3163
3323
  "return": {
3164
3324
  "type": {
3165
3325
  "text": "void"
3166
3326
  }
3327
+ },
3328
+ "inheritedFrom": {
3329
+ "name": "Accordion",
3330
+ "module": "src/accordion/accordion.ts"
3167
3331
  }
3168
3332
  },
3169
- {
3170
- "kind": "method",
3171
- "name": "handleSubmit"
3172
- },
3173
- {
3174
- "kind": "method",
3175
- "name": "handleBlur"
3176
- },
3177
- {
3178
- "kind": "method",
3179
- "name": "clear"
3180
- },
3181
- {
3182
- "kind": "method",
3183
- "name": "toggleSpeechInput"
3184
- },
3185
- {
3186
- "kind": "method",
3187
- "name": "clearSpeechApplyDebounce",
3188
- "privacy": "private"
3189
- },
3190
3333
  {
3191
3334
  "kind": "field",
3192
3335
  "name": "_presentation",
@@ -3301,48 +3444,26 @@
3301
3444
  ],
3302
3445
  "events": [
3303
3446
  {
3304
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3305
- "name": "criteria-changed"
3306
- },
3307
- {
3308
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3309
- "name": "validation-errors"
3310
- }
3311
- ],
3312
- "attributes": [
3313
- {
3314
- "name": "placeholder",
3315
- "type": {
3316
- "text": "string"
3317
- },
3318
- "default": "'Describe your search criteria in natural language...'",
3319
- "fieldName": "placeholder"
3320
- },
3321
- {
3322
- "type": {
3323
- "text": "boolean"
3324
- },
3325
- "fieldName": "disabled"
3447
+ "description": "Fires a custom 'change' event when the active item changes",
3448
+ "name": "change",
3449
+ "inheritedFrom": {
3450
+ "name": "Accordion",
3451
+ "module": "src/accordion/accordion.ts"
3452
+ }
3326
3453
  }
3327
- ],
3328
- "superclass": {
3329
- "name": "FoundationElement",
3330
- "package": "@microsoft/fast-foundation"
3331
- },
3332
- "tagName": "%%prefix%%-ai-criteria-search",
3333
- "customElement": true
3454
+ ]
3334
3455
  },
3335
3456
  {
3336
3457
  "kind": "variable",
3337
- "name": "foundationAiCriteriaSearchShadowOptions",
3458
+ "name": "foundationAccordionShadowOptions",
3338
3459
  "type": {
3339
3460
  "text": "ShadowRootInit"
3340
3461
  },
3341
- "default": "undefined"
3462
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3342
3463
  },
3343
3464
  {
3344
3465
  "kind": "variable",
3345
- "name": "defaultAiCriteriaSearchConfig",
3466
+ "name": "defaultAccordionConfig",
3346
3467
  "type": {
3347
3468
  "text": "object"
3348
3469
  },
@@ -3350,103 +3471,57 @@
3350
3471
  },
3351
3472
  {
3352
3473
  "kind": "variable",
3353
- "name": "foundationAiCriteriaSearch"
3474
+ "name": "foundationAccordion",
3475
+ "description": "The Foundation Accordion",
3476
+ "privacy": "public"
3354
3477
  }
3355
3478
  ],
3356
3479
  "exports": [
3357
3480
  {
3358
3481
  "kind": "js",
3359
- "name": "AiCriteriaSearch",
3482
+ "name": "Accordion",
3360
3483
  "declaration": {
3361
- "name": "AiCriteriaSearch",
3362
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3484
+ "name": "Accordion",
3485
+ "module": "src/accordion/accordion.ts"
3363
3486
  }
3364
3487
  },
3365
3488
  {
3366
3489
  "kind": "js",
3367
- "name": "foundationAiCriteriaSearchShadowOptions",
3490
+ "name": "foundationAccordionShadowOptions",
3368
3491
  "declaration": {
3369
- "name": "foundationAiCriteriaSearchShadowOptions",
3370
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3492
+ "name": "foundationAccordionShadowOptions",
3493
+ "module": "src/accordion/accordion.ts"
3371
3494
  }
3372
3495
  },
3373
3496
  {
3374
3497
  "kind": "js",
3375
- "name": "defaultAiCriteriaSearchConfig",
3498
+ "name": "defaultAccordionConfig",
3376
3499
  "declaration": {
3377
- "name": "defaultAiCriteriaSearchConfig",
3378
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3500
+ "name": "defaultAccordionConfig",
3501
+ "module": "src/accordion/accordion.ts"
3379
3502
  }
3380
3503
  },
3381
3504
  {
3382
3505
  "kind": "js",
3383
- "name": "foundationAiCriteriaSearch",
3506
+ "name": "foundationAccordion",
3384
3507
  "declaration": {
3385
- "name": "foundationAiCriteriaSearch",
3386
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3508
+ "name": "foundationAccordion",
3509
+ "module": "src/accordion/accordion.ts"
3387
3510
  }
3388
3511
  }
3389
3512
  ]
3390
3513
  },
3391
3514
  {
3392
3515
  "kind": "javascript-module",
3393
- "path": "src/ai-criteria-search/index.ts",
3516
+ "path": "src/accordion/index.ts",
3394
3517
  "declarations": [],
3395
3518
  "exports": [
3396
- {
3397
- "kind": "js",
3398
- "name": "AiCriteriaSearch",
3399
- "declaration": {
3400
- "name": "AiCriteriaSearch",
3401
- "module": "./ai-criteria-search"
3402
- }
3403
- },
3404
- {
3405
- "kind": "js",
3406
- "name": "defaultAiCriteriaSearchConfig",
3407
- "declaration": {
3408
- "name": "defaultAiCriteriaSearchConfig",
3409
- "module": "./ai-criteria-search"
3410
- }
3411
- },
3412
- {
3413
- "kind": "js",
3414
- "name": "foundationAiCriteriaSearch",
3415
- "declaration": {
3416
- "name": "foundationAiCriteriaSearch",
3417
- "module": "./ai-criteria-search"
3418
- }
3419
- },
3420
- {
3421
- "kind": "js",
3422
- "name": "foundationAiCriteriaSearchShadowOptions",
3423
- "declaration": {
3424
- "name": "foundationAiCriteriaSearchShadowOptions",
3425
- "module": "./ai-criteria-search"
3426
- }
3427
- },
3428
- {
3429
- "kind": "js",
3430
- "name": "foundationAiCriteriaSearchStyles",
3431
- "declaration": {
3432
- "name": "foundationAiCriteriaSearchStyles",
3433
- "module": "./ai-criteria-search.styles"
3434
- }
3435
- },
3436
- {
3437
- "kind": "js",
3438
- "name": "foundationAiCriteriaSearchTemplate",
3439
- "declaration": {
3440
- "name": "foundationAiCriteriaSearchTemplate",
3441
- "module": "./ai-criteria-search.template"
3442
- }
3443
- },
3444
3519
  {
3445
3520
  "kind": "js",
3446
3521
  "name": "*",
3447
3522
  "declaration": {
3448
3523
  "name": "*",
3449
- "package": "./validation/criteria-ir"
3524
+ "package": "./accordion.template"
3450
3525
  }
3451
3526
  },
3452
3527
  {
@@ -3454,7 +3529,7 @@
3454
3529
  "name": "*",
3455
3530
  "declaration": {
3456
3531
  "name": "*",
3457
- "package": "./validation/operator-map"
3532
+ "package": "./accordion.styles"
3458
3533
  }
3459
3534
  },
3460
3535
  {
@@ -3462,82 +3537,7 @@
3462
3537
  "name": "*",
3463
3538
  "declaration": {
3464
3539
  "name": "*",
3465
- "package": "./validation/schema-validator"
3466
- }
3467
- }
3468
- ]
3469
- },
3470
- {
3471
- "kind": "javascript-module",
3472
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3473
- "declarations": [
3474
- {
3475
- "kind": "function",
3476
- "name": "formatValidationErrors",
3477
- "return": {
3478
- "type": {
3479
- "text": "string"
3480
- }
3481
- },
3482
- "parameters": [
3483
- {
3484
- "name": "errors",
3485
- "type": {
3486
- "text": "ValidationError[]"
3487
- }
3488
- }
3489
- ],
3490
- "description": "Formats validation errors into a user-friendly message."
3491
- },
3492
- {
3493
- "kind": "function",
3494
- "name": "showCriteriaError",
3495
- "return": {
3496
- "type": {
3497
- "text": "void"
3498
- }
3499
- },
3500
- "parameters": [
3501
- {
3502
- "name": "title",
3503
- "type": {
3504
- "text": "string"
3505
- },
3506
- "description": "Notification title (e.g. \"Criteria validation error\")"
3507
- },
3508
- {
3509
- "name": "body",
3510
- "type": {
3511
- "text": "string"
3512
- },
3513
- "description": "Error message to display"
3514
- },
3515
- {
3516
- "name": "tagName",
3517
- "type": {
3518
- "text": "string"
3519
- },
3520
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3521
- }
3522
- ],
3523
- "description": "Shows a criteria error as a toast notification."
3524
- }
3525
- ],
3526
- "exports": [
3527
- {
3528
- "kind": "js",
3529
- "name": "formatValidationErrors",
3530
- "declaration": {
3531
- "name": "formatValidationErrors",
3532
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3533
- }
3534
- },
3535
- {
3536
- "kind": "js",
3537
- "name": "showCriteriaError",
3538
- "declaration": {
3539
- "name": "showCriteriaError",
3540
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3540
+ "package": "./accordion"
3541
3541
  }
3542
3542
  }
3543
3543
  ]