@genesislcap/foundation-ui 15.88.1 → 15.88.2-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -958,44 +958,27 @@
958
958
  },
959
959
  {
960
960
  "kind": "javascript-module",
961
- "path": "src/_common/affix-mixin.ts",
961
+ "path": "src/accordion-item/accordion-item.styles.ts",
962
962
  "declarations": [
963
963
  {
964
- "kind": "mixin",
965
- "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
966
- "name": "AffixMixin",
967
- "members": [
968
- {
969
- "kind": "field",
970
- "name": "prefix",
971
- "type": {
972
- "text": "string"
973
- },
974
- "description": "Optional non-editable label shown on the left inside the field, before the input."
975
- },
964
+ "kind": "function",
965
+ "name": "foundationAccordionItemStyles",
966
+ "return": {
967
+ "type": {
968
+ "text": "ElementStyles"
969
+ }
970
+ },
971
+ "parameters": [
976
972
  {
977
- "kind": "field",
978
- "name": "suffix",
973
+ "name": "context",
979
974
  "type": {
980
- "text": "string"
981
- },
982
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
975
+ "text": "ElementDefinitionContext"
976
+ }
983
977
  },
984
978
  {
985
- "kind": "field",
986
- "name": "hideAffixFromScreenReader",
987
- "type": {
988
- "text": "boolean"
989
- },
990
- "default": "false",
991
- "description": "When true, prefix/suffix are not exposed to assistive technology (`aria-hidden` on affixes,\nand their ids are omitted from the control's `aria-describedby`).\nUse only when the unit or symbol is redundant with the visible label or other text."
992
- }
993
- ],
994
- "parameters": [
995
- {
996
- "name": "Base",
979
+ "name": "definition",
997
980
  "type": {
998
- "text": "TBase"
981
+ "text": "FoundationElementDefinition"
999
982
  }
1000
983
  }
1001
984
  ]
@@ -1004,271 +987,195 @@
1004
987
  "exports": [
1005
988
  {
1006
989
  "kind": "js",
1007
- "name": "AffixMixin",
990
+ "name": "foundationAccordionItemStyles",
1008
991
  "declaration": {
1009
- "name": "AffixMixin",
1010
- "module": "src/_common/affix-mixin.ts"
992
+ "name": "foundationAccordionItemStyles",
993
+ "module": "src/accordion-item/accordion-item.styles.ts"
1011
994
  }
1012
995
  }
1013
996
  ]
1014
997
  },
1015
998
  {
1016
999
  "kind": "javascript-module",
1017
- "path": "src/_common/alert-flash-clock.ts",
1000
+ "path": "src/accordion-item/accordion-item.template.ts",
1018
1001
  "declarations": [
1019
- {
1020
- "kind": "variable",
1021
- "name": "alertFlashPhaseProperty",
1022
- "type": {
1023
- "text": "string"
1024
- },
1025
- "default": "'--alert-flash-t'",
1026
- "description": "Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.\n\nAlerting surfaces sample this rather than running animations of their own, because independent\nCSS animations start whenever their element started and drift apart. Registered as an\ninheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside\na component's shadow DOM stays in step with a tab header in the light DOM.",
1027
- "privacy": "public"
1028
- },
1029
- {
1030
- "kind": "variable",
1031
- "name": "alertFlashDurationProperty",
1032
- "type": {
1033
- "text": "string"
1034
- },
1035
- "default": "'--alert-flash-duration'",
1036
- "description": "Custom property setting how long one flash cycle takes. Set it on `:root` to retime every\nalerting surface at once.",
1037
- "privacy": "public"
1038
- },
1039
1002
  {
1040
1003
  "kind": "function",
1041
- "name": "installAlertFlashClock",
1004
+ "name": "foundationAccordionItemTemplate",
1042
1005
  "return": {
1043
1006
  "type": {
1044
- "text": "void"
1007
+ "text": "ViewTemplate<AccordionItem>"
1045
1008
  }
1046
1009
  },
1047
- "description": "Starts the document-level clock that alert flashes sample.\n\nSafe to call repeatedly and from any number of components — the first call does the work. Called\nautomatically by the components that flash, so apps only need this to start the clock earlier.\n\nDoes nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which\nleaves alerting surfaces on their static fallback colour rather than breaking them.",
1048
- "privacy": "public"
1010
+ "parameters": [
1011
+ {
1012
+ "name": "context",
1013
+ "type": {
1014
+ "text": "ElementDefinitionContext"
1015
+ }
1016
+ },
1017
+ {
1018
+ "name": "definition",
1019
+ "type": {
1020
+ "text": "FoundationElementDefinition"
1021
+ }
1022
+ }
1023
+ ]
1049
1024
  }
1050
1025
  ],
1051
1026
  "exports": [
1052
1027
  {
1053
1028
  "kind": "js",
1054
- "name": "alertFlashPhaseProperty",
1055
- "declaration": {
1056
- "name": "alertFlashPhaseProperty",
1057
- "module": "src/_common/alert-flash-clock.ts"
1058
- }
1059
- },
1060
- {
1061
- "kind": "js",
1062
- "name": "alertFlashDurationProperty",
1063
- "declaration": {
1064
- "name": "alertFlashDurationProperty",
1065
- "module": "src/_common/alert-flash-clock.ts"
1066
- }
1067
- },
1068
- {
1069
- "kind": "js",
1070
- "name": "installAlertFlashClock",
1029
+ "name": "foundationAccordionItemTemplate",
1071
1030
  "declaration": {
1072
- "name": "installAlertFlashClock",
1073
- "module": "src/_common/alert-flash-clock.ts"
1031
+ "name": "foundationAccordionItemTemplate",
1032
+ "module": "src/accordion-item/accordion-item.template.ts"
1074
1033
  }
1075
1034
  }
1076
1035
  ]
1077
1036
  },
1078
1037
  {
1079
1038
  "kind": "javascript-module",
1080
- "path": "src/_common/base-file-component.ts",
1039
+ "path": "src/accordion-item/accordion-item.ts",
1081
1040
  "declarations": [
1082
1041
  {
1083
1042
  "kind": "class",
1084
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1085
- "name": "BaseFileComponent",
1086
- "members": [
1043
+ "description": "",
1044
+ "name": "AccordionItem",
1045
+ "superclass": {
1046
+ "name": "FASTAccordionItem",
1047
+ "package": "@microsoft/fast-components"
1048
+ },
1049
+ "tagName": "%%prefix%%-accordion-item",
1050
+ "customElement": true,
1051
+ "attributes": [
1087
1052
  {
1088
- "kind": "field",
1089
- "name": "fileInput",
1053
+ "name": "heading-level",
1090
1054
  "type": {
1091
- "text": "HTMLInputElement"
1055
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1092
1056
  },
1093
- "privacy": "public"
1057
+ "default": "2",
1058
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1059
+ "fieldName": "headinglevel",
1060
+ "inheritedFrom": {
1061
+ "name": "AccordionItem",
1062
+ "module": "src/accordion-item/accordion-item.ts"
1063
+ }
1094
1064
  },
1095
1065
  {
1096
- "kind": "field",
1097
- "name": "selectedFile",
1098
1066
  "type": {
1099
- "text": "File | null"
1067
+ "text": "boolean"
1100
1068
  },
1101
- "privacy": "protected",
1102
- "default": "null"
1069
+ "default": "false",
1070
+ "description": "Expands or collapses the item.",
1071
+ "fieldName": "expanded",
1072
+ "inheritedFrom": {
1073
+ "name": "AccordionItem",
1074
+ "module": "src/accordion-item/accordion-item.ts"
1075
+ }
1103
1076
  },
1104
1077
  {
1105
- "kind": "field",
1106
- "name": "label",
1078
+ "name": "id",
1107
1079
  "type": {
1108
1080
  "text": "string"
1081
+ },
1082
+ "description": "The item ID",
1083
+ "fieldName": "id",
1084
+ "inheritedFrom": {
1085
+ "name": "AccordionItem",
1086
+ "module": "src/accordion-item/accordion-item.ts"
1109
1087
  }
1110
- },
1088
+ }
1089
+ ],
1090
+ "members": [
1111
1091
  {
1112
1092
  "kind": "field",
1113
- "name": "accept",
1093
+ "name": "headinglevel",
1114
1094
  "type": {
1115
- "text": "string"
1095
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1116
1096
  },
1117
- "default": "''"
1097
+ "privacy": "public",
1098
+ "default": "2",
1099
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1100
+ "inheritedFrom": {
1101
+ "name": "AccordionItem",
1102
+ "module": "src/accordion-item/accordion-item.ts"
1103
+ }
1118
1104
  },
1119
1105
  {
1120
1106
  "kind": "field",
1121
- "name": "fileSizeLimitBytes",
1122
- "default": "10_485_760",
1107
+ "name": "expanded",
1123
1108
  "type": {
1124
- "text": "number"
1109
+ "text": "boolean"
1110
+ },
1111
+ "privacy": "public",
1112
+ "default": "false",
1113
+ "description": "Expands or collapses the item.",
1114
+ "inheritedFrom": {
1115
+ "name": "AccordionItem",
1116
+ "module": "src/accordion-item/accordion-item.ts"
1125
1117
  }
1126
1118
  },
1127
1119
  {
1128
1120
  "kind": "field",
1129
- "name": "fileName",
1121
+ "name": "id",
1130
1122
  "type": {
1131
1123
  "text": "string"
1132
1124
  },
1133
- "default": "''"
1125
+ "privacy": "public",
1126
+ "description": "The item ID",
1127
+ "inheritedFrom": {
1128
+ "name": "AccordionItem",
1129
+ "module": "src/accordion-item/accordion-item.ts"
1130
+ }
1134
1131
  },
1135
1132
  {
1136
1133
  "kind": "field",
1137
- "name": "isProcessing",
1134
+ "name": "change",
1135
+ "privacy": "private",
1136
+ "inheritedFrom": {
1137
+ "name": "AccordionItem",
1138
+ "module": "src/accordion-item/accordion-item.ts"
1139
+ }
1140
+ },
1141
+ {
1142
+ "kind": "field",
1143
+ "name": "_presentation",
1138
1144
  "type": {
1139
- "text": "boolean"
1145
+ "text": "ComponentPresentation | null | undefined"
1140
1146
  },
1141
- "default": "false"
1147
+ "privacy": "private",
1148
+ "default": "void 0",
1149
+ "inheritedFrom": {
1150
+ "name": "FoundationElement",
1151
+ "module": "src/foundation-element/foundation-element.ts"
1152
+ }
1142
1153
  },
1143
1154
  {
1144
- "kind": "method",
1145
- "name": "handleClick",
1155
+ "kind": "field",
1156
+ "name": "$presentation",
1157
+ "type": {
1158
+ "text": "ComponentPresentation | null"
1159
+ },
1146
1160
  "privacy": "public",
1147
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1161
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1162
+ "inheritedFrom": {
1163
+ "name": "FoundationElement",
1164
+ "module": "src/foundation-element/foundation-element.ts"
1165
+ }
1148
1166
  },
1149
1167
  {
1150
- "kind": "method",
1151
- "name": "onInputChange",
1168
+ "kind": "field",
1169
+ "name": "template",
1170
+ "type": {
1171
+ "text": "ElementViewTemplate | void | null"
1172
+ },
1152
1173
  "privacy": "public",
1153
- "parameters": [
1154
- {
1155
- "name": "e",
1156
- "type": {
1157
- "text": "Event"
1158
- },
1159
- "description": "The change event from the file input"
1160
- }
1161
- ],
1162
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1163
- },
1164
- {
1165
- "kind": "method",
1166
- "name": "clearSelection",
1167
- "privacy": "public",
1168
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
1169
- },
1170
- {
1171
- "kind": "method",
1172
- "name": "getSelectedFile",
1173
- "privacy": "public",
1174
- "description": "Gets the currently selected file object",
1175
- "return": {
1176
- "type": {
1177
- "text": ""
1178
- }
1179
- }
1180
- },
1181
- {
1182
- "kind": "method",
1183
- "name": "showError",
1184
- "privacy": "protected",
1185
- "parameters": [
1186
- {
1187
- "name": "title",
1188
- "type": {
1189
- "text": "string"
1190
- },
1191
- "description": "The error title"
1192
- },
1193
- {
1194
- "name": "message",
1195
- "type": {
1196
- "text": "string"
1197
- },
1198
- "description": "The error message"
1199
- }
1200
- ],
1201
- "description": "Shows an error notification using the unified error handling system"
1202
- },
1203
- {
1204
- "kind": "method",
1205
- "name": "onFileSelected",
1206
- "privacy": "protected",
1207
- "return": {
1208
- "type": {
1209
- "text": "void"
1210
- }
1211
- },
1212
- "parameters": [
1213
- {
1214
- "name": "files",
1215
- "type": {
1216
- "text": "File[]"
1217
- },
1218
- "description": "The selected file"
1219
- }
1220
- ],
1221
- "description": "Abstract method called when a file is selected"
1222
- },
1223
- {
1224
- "kind": "method",
1225
- "name": "onFileCleared",
1226
- "privacy": "protected",
1227
- "return": {
1228
- "type": {
1229
- "text": "void"
1230
- }
1231
- },
1232
- "description": "Abstract method called when file selection is cleared"
1233
- },
1234
- {
1235
- "kind": "field",
1236
- "name": "_presentation",
1237
- "type": {
1238
- "text": "ComponentPresentation | null | undefined"
1239
- },
1240
- "privacy": "private",
1241
- "default": "void 0",
1242
- "inheritedFrom": {
1243
- "name": "FoundationElement",
1244
- "module": "src/foundation-element/foundation-element.ts"
1245
- }
1246
- },
1247
- {
1248
- "kind": "field",
1249
- "name": "$presentation",
1250
- "type": {
1251
- "text": "ComponentPresentation | null"
1252
- },
1253
- "privacy": "public",
1254
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1255
- "inheritedFrom": {
1256
- "name": "FoundationElement",
1257
- "module": "src/foundation-element/foundation-element.ts"
1258
- }
1259
- },
1260
- {
1261
- "kind": "field",
1262
- "name": "template",
1263
- "type": {
1264
- "text": "ElementViewTemplate | void | null"
1265
- },
1266
- "privacy": "public",
1267
- "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.",
1268
- "inheritedFrom": {
1269
- "name": "FoundationElement",
1270
- "module": "src/foundation-element/foundation-element.ts"
1271
- }
1174
+ "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.",
1175
+ "inheritedFrom": {
1176
+ "name": "FoundationElement",
1177
+ "module": "src/foundation-element/foundation-element.ts"
1178
+ }
1272
1179
  },
1273
1180
  {
1274
1181
  "kind": "method",
@@ -1345,110 +1252,76 @@
1345
1252
  ],
1346
1253
  "events": [
1347
1254
  {
1348
- "description": "Fired when file size validation fails. detail: `Error`",
1349
- "name": "error"
1350
- },
1351
- {
1352
- "description": "Fired when selection is cleared",
1353
- "name": "clear"
1354
- }
1355
- ],
1356
- "attributes": [
1357
- {
1358
- "name": "label",
1359
- "type": {
1360
- "text": "string"
1361
- },
1362
- "fieldName": "label"
1363
- },
1364
- {
1365
- "name": "accept",
1366
- "type": {
1367
- "text": "string"
1368
- },
1369
- "default": "''",
1370
- "fieldName": "accept"
1371
- },
1372
- {
1373
- "name": "file-size-limit-bytes",
1374
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1375
- "resolveInitializer": {
1376
- "module": "src/_common/base-file-component.ts"
1377
- },
1378
- "fieldName": "fileSizeLimitBytes"
1255
+ "description": "Fires a custom 'change' event when the button is invoked",
1256
+ "name": "change",
1257
+ "inheritedFrom": {
1258
+ "name": "AccordionItem",
1259
+ "module": "src/accordion-item/accordion-item.ts"
1260
+ }
1379
1261
  }
1380
- ],
1381
- "superclass": {
1382
- "name": "FoundationElement",
1383
- "package": "@microsoft/fast-foundation"
1384
- }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "kind": "variable",
1266
+ "name": "foundationAccordionItemShadowOptions",
1267
+ "type": {
1268
+ "text": "ShadowRootInit"
1269
+ },
1270
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1271
+ },
1272
+ {
1273
+ "kind": "variable",
1274
+ "name": "defaultAccordionItemConfig",
1275
+ "type": {
1276
+ "text": "object"
1277
+ },
1278
+ "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}"
1279
+ },
1280
+ {
1281
+ "kind": "variable",
1282
+ "name": "foundationAccordionItem",
1283
+ "description": "The Foundation Accordion Item",
1284
+ "privacy": "public"
1385
1285
  }
1386
1286
  ],
1387
1287
  "exports": [
1388
1288
  {
1389
1289
  "kind": "js",
1390
- "name": "BaseFileComponent",
1290
+ "name": "AccordionItem",
1391
1291
  "declaration": {
1392
- "name": "BaseFileComponent",
1393
- "module": "src/_common/base-file-component.ts"
1292
+ "name": "AccordionItem",
1293
+ "module": "src/accordion-item/accordion-item.ts"
1394
1294
  }
1395
- }
1396
- ]
1397
- },
1398
- {
1399
- "kind": "javascript-module",
1400
- "path": "src/_common/field-styles.ts",
1401
- "declarations": [
1402
- {
1403
- "kind": "variable",
1404
- "name": "sharedFieldStyles",
1405
- "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`"
1406
- }
1407
- ],
1408
- "exports": [
1295
+ },
1409
1296
  {
1410
1297
  "kind": "js",
1411
- "name": "sharedFieldStyles",
1298
+ "name": "foundationAccordionItemShadowOptions",
1412
1299
  "declaration": {
1413
- "name": "sharedFieldStyles",
1414
- "module": "src/_common/field-styles.ts"
1300
+ "name": "foundationAccordionItemShadowOptions",
1301
+ "module": "src/accordion-item/accordion-item.ts"
1415
1302
  }
1416
- }
1417
- ]
1418
- },
1419
- {
1420
- "kind": "javascript-module",
1421
- "path": "src/_common/icons.ts",
1422
- "declarations": [
1303
+ },
1423
1304
  {
1424
- "kind": "function",
1425
- "name": "closeIcon",
1426
- "parameters": [
1427
- {
1428
- "name": "slot",
1429
- "default": "'start'"
1430
- },
1431
- {
1432
- "name": "fill",
1433
- "default": "'#879ba6'"
1434
- }
1435
- ]
1436
- }
1437
- ],
1438
- "exports": [
1305
+ "kind": "js",
1306
+ "name": "defaultAccordionItemConfig",
1307
+ "declaration": {
1308
+ "name": "defaultAccordionItemConfig",
1309
+ "module": "src/accordion-item/accordion-item.ts"
1310
+ }
1311
+ },
1439
1312
  {
1440
1313
  "kind": "js",
1441
- "name": "closeIcon",
1314
+ "name": "foundationAccordionItem",
1442
1315
  "declaration": {
1443
- "name": "closeIcon",
1444
- "module": "src/_common/icons.ts"
1316
+ "name": "foundationAccordionItem",
1317
+ "module": "src/accordion-item/accordion-item.ts"
1445
1318
  }
1446
1319
  }
1447
1320
  ]
1448
1321
  },
1449
1322
  {
1450
1323
  "kind": "javascript-module",
1451
- "path": "src/_common/index.ts",
1324
+ "path": "src/accordion-item/index.ts",
1452
1325
  "declarations": [],
1453
1326
  "exports": [
1454
1327
  {
@@ -1456,7 +1329,7 @@
1456
1329
  "name": "*",
1457
1330
  "declaration": {
1458
1331
  "name": "*",
1459
- "package": "./affix-mixin"
1332
+ "package": "./accordion-item.template"
1460
1333
  }
1461
1334
  },
1462
1335
  {
@@ -1464,7 +1337,7 @@
1464
1337
  "name": "*",
1465
1338
  "declaration": {
1466
1339
  "name": "*",
1467
- "package": "./alert-flash-clock"
1340
+ "package": "./accordion-item.styles"
1468
1341
  }
1469
1342
  },
1470
1343
  {
@@ -1472,65 +1345,18 @@
1472
1345
  "name": "*",
1473
1346
  "declaration": {
1474
1347
  "name": "*",
1475
- "package": "./base-file-component"
1348
+ "package": "./accordion-item"
1476
1349
  }
1477
- },
1478
- {
1479
- "kind": "js",
1480
- "name": "*",
1481
- "declaration": {
1482
- "name": "*",
1483
- "package": "./field-styles"
1484
- }
1485
- },
1486
- {
1487
- "kind": "js",
1488
- "name": "*",
1489
- "declaration": {
1490
- "name": "*",
1491
- "package": "./icons"
1492
- }
1493
- }
1494
- ]
1495
- },
1496
- {
1497
- "kind": "javascript-module",
1498
- "path": "src/_config/index.ts",
1499
- "declarations": [],
1500
- "exports": [
1501
- {
1502
- "kind": "js",
1503
- "name": "*",
1504
- "declaration": {
1505
- "name": "*",
1506
- "package": "./styles"
1507
- }
1508
- },
1509
- {
1510
- "kind": "js",
1511
- "name": "*",
1512
- "declaration": {
1513
- "name": "*",
1514
- "package": "./tokens"
1515
- }
1516
- },
1517
- {
1518
- "kind": "js",
1519
- "name": "*",
1520
- "declaration": {
1521
- "name": "*",
1522
- "package": "./values"
1523
- }
1524
- }
1525
- ]
1526
- },
1527
- {
1528
- "kind": "javascript-module",
1529
- "path": "src/accordion-item/accordion-item.styles.ts",
1530
- "declarations": [
1350
+ }
1351
+ ]
1352
+ },
1353
+ {
1354
+ "kind": "javascript-module",
1355
+ "path": "src/actions-menu/actions-menu.styles.ts",
1356
+ "declarations": [
1531
1357
  {
1532
1358
  "kind": "function",
1533
- "name": "foundationAccordionItemStyles",
1359
+ "name": "actionsMenuBaseStyles",
1534
1360
  "return": {
1535
1361
  "type": {
1536
1362
  "text": "ElementStyles"
@@ -1550,29 +1376,13 @@
1550
1376
  }
1551
1377
  }
1552
1378
  ]
1553
- }
1554
- ],
1555
- "exports": [
1556
- {
1557
- "kind": "js",
1558
- "name": "foundationAccordionItemStyles",
1559
- "declaration": {
1560
- "name": "foundationAccordionItemStyles",
1561
- "module": "src/accordion-item/accordion-item.styles.ts"
1562
- }
1563
- }
1564
- ]
1565
- },
1566
- {
1567
- "kind": "javascript-module",
1568
- "path": "src/accordion-item/accordion-item.template.ts",
1569
- "declarations": [
1379
+ },
1570
1380
  {
1571
1381
  "kind": "function",
1572
- "name": "foundationAccordionItemTemplate",
1382
+ "name": "foundationActionsMenuStyles",
1573
1383
  "return": {
1574
1384
  "type": {
1575
- "text": "ViewTemplate<AccordionItem>"
1385
+ "text": "ElementStyles"
1576
1386
  }
1577
1387
  },
1578
1388
  "parameters": [
@@ -1594,154 +1404,413 @@
1594
1404
  "exports": [
1595
1405
  {
1596
1406
  "kind": "js",
1597
- "name": "foundationAccordionItemTemplate",
1407
+ "name": "actionsMenuBaseStyles",
1598
1408
  "declaration": {
1599
- "name": "foundationAccordionItemTemplate",
1600
- "module": "src/accordion-item/accordion-item.template.ts"
1409
+ "name": "actionsMenuBaseStyles",
1410
+ "module": "src/actions-menu/actions-menu.styles.ts"
1411
+ }
1412
+ },
1413
+ {
1414
+ "kind": "js",
1415
+ "name": "foundationActionsMenuStyles",
1416
+ "declaration": {
1417
+ "name": "foundationActionsMenuStyles",
1418
+ "module": "src/actions-menu/actions-menu.styles.ts"
1601
1419
  }
1602
1420
  }
1603
1421
  ]
1604
1422
  },
1605
1423
  {
1606
1424
  "kind": "javascript-module",
1607
- "path": "src/accordion-item/accordion-item.ts",
1425
+ "path": "src/actions-menu/actions-menu.template.ts",
1426
+ "declarations": [
1427
+ {
1428
+ "kind": "variable",
1429
+ "name": "menuTemplate"
1430
+ },
1431
+ {
1432
+ "kind": "variable",
1433
+ "name": "singleOptionTemplate"
1434
+ },
1435
+ {
1436
+ "kind": "variable",
1437
+ "name": "foundationActionsMenuTemplate",
1438
+ "type": {
1439
+ "text": "ViewTemplate<ActionsMenu>"
1440
+ },
1441
+ "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`"
1442
+ }
1443
+ ],
1444
+ "exports": [
1445
+ {
1446
+ "kind": "js",
1447
+ "name": "menuTemplate",
1448
+ "declaration": {
1449
+ "name": "menuTemplate",
1450
+ "module": "src/actions-menu/actions-menu.template.ts"
1451
+ }
1452
+ },
1453
+ {
1454
+ "kind": "js",
1455
+ "name": "singleOptionTemplate",
1456
+ "declaration": {
1457
+ "name": "singleOptionTemplate",
1458
+ "module": "src/actions-menu/actions-menu.template.ts"
1459
+ }
1460
+ },
1461
+ {
1462
+ "kind": "js",
1463
+ "name": "foundationActionsMenuTemplate",
1464
+ "declaration": {
1465
+ "name": "foundationActionsMenuTemplate",
1466
+ "module": "src/actions-menu/actions-menu.template.ts"
1467
+ }
1468
+ }
1469
+ ]
1470
+ },
1471
+ {
1472
+ "kind": "javascript-module",
1473
+ "path": "src/actions-menu/actions-menu.ts",
1608
1474
  "declarations": [
1609
1475
  {
1610
1476
  "kind": "class",
1611
1477
  "description": "",
1612
- "name": "AccordionItem",
1613
- "superclass": {
1614
- "name": "FASTAccordionItem",
1615
- "package": "@microsoft/fast-components"
1616
- },
1617
- "tagName": "%%prefix%%-accordion-item",
1618
- "customElement": true,
1619
- "attributes": [
1478
+ "name": "ActionsMenu",
1479
+ "members": [
1620
1480
  {
1621
- "name": "heading-level",
1481
+ "kind": "field",
1482
+ "name": "actions",
1622
1483
  "type": {
1623
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1624
- },
1625
- "default": "2",
1626
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1627
- "fieldName": "headinglevel",
1628
- "inheritedFrom": {
1629
- "name": "AccordionItem",
1630
- "module": "src/accordion-item/accordion-item.ts"
1484
+ "text": "ActionMenuItem[]"
1631
1485
  }
1632
1486
  },
1633
1487
  {
1488
+ "kind": "field",
1489
+ "name": "actionsResolver",
1634
1490
  "type": {
1635
- "text": "boolean"
1491
+ "text": "ActionMenuItemsResolver | undefined"
1636
1492
  },
1637
- "default": "false",
1638
- "description": "Expands or collapses the item.",
1639
- "fieldName": "expanded",
1640
- "inheritedFrom": {
1641
- "name": "AccordionItem",
1642
- "module": "src/accordion-item/accordion-item.ts"
1643
- }
1493
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
1644
1494
  },
1645
1495
  {
1646
- "name": "id",
1496
+ "kind": "field",
1497
+ "name": "isVertical",
1647
1498
  "type": {
1648
- "text": "string"
1499
+ "text": "boolean"
1649
1500
  },
1650
- "description": "The item ID",
1651
- "fieldName": "id",
1652
- "inheritedFrom": {
1653
- "name": "AccordionItem",
1654
- "module": "src/accordion-item/accordion-item.ts"
1655
- }
1656
- }
1657
- ],
1658
- "members": [
1501
+ "default": "false"
1502
+ },
1659
1503
  {
1660
1504
  "kind": "field",
1661
- "name": "headinglevel",
1505
+ "name": "addDefaultActions",
1662
1506
  "type": {
1663
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1507
+ "text": "boolean"
1664
1508
  },
1665
- "privacy": "public",
1666
- "default": "2",
1667
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1668
- "inheritedFrom": {
1669
- "name": "AccordionItem",
1670
- "module": "src/accordion-item/accordion-item.ts"
1671
- }
1509
+ "default": "true"
1672
1510
  },
1673
1511
  {
1674
1512
  "kind": "field",
1675
- "name": "expanded",
1513
+ "name": "autoCloseOnAction",
1676
1514
  "type": {
1677
1515
  "text": "boolean"
1678
1516
  },
1679
- "privacy": "public",
1680
- "default": "false",
1681
- "description": "Expands or collapses the item.",
1682
- "inheritedFrom": {
1683
- "name": "AccordionItem",
1684
- "module": "src/accordion-item/accordion-item.ts"
1685
- }
1517
+ "default": "true"
1686
1518
  },
1687
1519
  {
1688
1520
  "kind": "field",
1689
- "name": "id",
1521
+ "name": "classNames",
1690
1522
  "type": {
1691
1523
  "text": "string"
1692
- },
1693
- "privacy": "public",
1694
- "description": "The item ID",
1695
- "inheritedFrom": {
1696
- "name": "AccordionItem",
1697
- "module": "src/accordion-item/accordion-item.ts"
1698
1524
  }
1699
1525
  },
1700
1526
  {
1701
1527
  "kind": "field",
1702
- "name": "change",
1703
- "privacy": "private",
1704
- "inheritedFrom": {
1705
- "name": "AccordionItem",
1706
- "module": "src/accordion-item/accordion-item.ts"
1528
+ "name": "definition",
1529
+ "type": {
1530
+ "text": "any"
1707
1531
  }
1708
1532
  },
1709
1533
  {
1710
1534
  "kind": "field",
1711
- "name": "_presentation",
1535
+ "name": "name",
1712
1536
  "type": {
1713
- "text": "ComponentPresentation | null | undefined"
1537
+ "text": "string"
1714
1538
  },
1715
- "privacy": "private",
1716
- "default": "void 0",
1717
- "inheritedFrom": {
1718
- "name": "FoundationElement",
1719
- "module": "src/foundation-element/foundation-element.ts"
1720
- }
1539
+ "default": "'Actions'"
1721
1540
  },
1722
1541
  {
1723
1542
  "kind": "field",
1724
- "name": "$presentation",
1543
+ "name": "iconName",
1725
1544
  "type": {
1726
- "text": "ComponentPresentation | null"
1545
+ "text": "string"
1727
1546
  },
1728
- "privacy": "public",
1729
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1730
- "inheritedFrom": {
1731
- "name": "FoundationElement",
1732
- "module": "src/foundation-element/foundation-element.ts"
1733
- }
1547
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
1734
1548
  },
1735
1549
  {
1736
1550
  "kind": "field",
1737
- "name": "template",
1551
+ "name": "open",
1738
1552
  "type": {
1739
- "text": "ElementViewTemplate | void | null"
1553
+ "text": "boolean"
1740
1554
  },
1741
- "privacy": "public",
1742
- "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.",
1743
- "inheritedFrom": {
1744
- "name": "FoundationElement",
1555
+ "default": "false"
1556
+ },
1557
+ {
1558
+ "kind": "field",
1559
+ "name": "buttonAppearance",
1560
+ "type": {
1561
+ "text": "string"
1562
+ }
1563
+ },
1564
+ {
1565
+ "kind": "field",
1566
+ "name": "hideDisabled",
1567
+ "type": {
1568
+ "text": "boolean"
1569
+ },
1570
+ "default": "false"
1571
+ },
1572
+ {
1573
+ "kind": "field",
1574
+ "name": "hideMenuSingleOption",
1575
+ "type": {
1576
+ "text": "boolean"
1577
+ },
1578
+ "default": "false"
1579
+ },
1580
+ {
1581
+ "kind": "field",
1582
+ "name": "singleOption",
1583
+ "type": {
1584
+ "text": "ActionMenuItem"
1585
+ }
1586
+ },
1587
+ {
1588
+ "kind": "field",
1589
+ "name": "actionsMenu",
1590
+ "type": {
1591
+ "text": "HTMLElement"
1592
+ }
1593
+ },
1594
+ {
1595
+ "kind": "field",
1596
+ "name": "actionsOpener",
1597
+ "type": {
1598
+ "text": "HTMLElement"
1599
+ }
1600
+ },
1601
+ {
1602
+ "kind": "field",
1603
+ "name": "positionTracker",
1604
+ "type": {
1605
+ "text": "AnchoredPopoverPositionTracker | undefined"
1606
+ },
1607
+ "privacy": "private"
1608
+ },
1609
+ {
1610
+ "kind": "field",
1611
+ "name": "focusMenuOnOpen",
1612
+ "type": {
1613
+ "text": "boolean"
1614
+ },
1615
+ "privacy": "private",
1616
+ "default": "false",
1617
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
1618
+ },
1619
+ {
1620
+ "kind": "method",
1621
+ "name": "updateMenuPosition",
1622
+ "privacy": "private"
1623
+ },
1624
+ {
1625
+ "kind": "method",
1626
+ "name": "startTrackingPosition",
1627
+ "privacy": "private"
1628
+ },
1629
+ {
1630
+ "kind": "method",
1631
+ "name": "stopTrackingPosition",
1632
+ "privacy": "private"
1633
+ },
1634
+ {
1635
+ "kind": "method",
1636
+ "name": "definitionChanged",
1637
+ "privacy": "protected",
1638
+ "parameters": [
1639
+ {
1640
+ "name": "oldValue",
1641
+ "type": {
1642
+ "text": "any"
1643
+ }
1644
+ },
1645
+ {
1646
+ "name": "newValue",
1647
+ "type": {
1648
+ "text": "any"
1649
+ }
1650
+ }
1651
+ ]
1652
+ },
1653
+ {
1654
+ "kind": "method",
1655
+ "name": "openChanged",
1656
+ "privacy": "protected"
1657
+ },
1658
+ {
1659
+ "kind": "method",
1660
+ "name": "toggleActionsMenuVisibility"
1661
+ },
1662
+ {
1663
+ "kind": "method",
1664
+ "name": "onPopoverToggle",
1665
+ "parameters": [
1666
+ {
1667
+ "name": "event",
1668
+ "type": {
1669
+ "text": "Event"
1670
+ }
1671
+ }
1672
+ ],
1673
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
1674
+ },
1675
+ {
1676
+ "kind": "method",
1677
+ "name": "onIconOpenerKeydown",
1678
+ "return": {
1679
+ "type": {
1680
+ "text": "boolean"
1681
+ }
1682
+ },
1683
+ "parameters": [
1684
+ {
1685
+ "name": "event",
1686
+ "type": {
1687
+ "text": "KeyboardEvent"
1688
+ }
1689
+ }
1690
+ ],
1691
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
1692
+ },
1693
+ {
1694
+ "kind": "method",
1695
+ "name": "onActionMenuItemClick",
1696
+ "parameters": [
1697
+ {
1698
+ "name": "callback",
1699
+ "type": {
1700
+ "text": "(rowData) => void | any"
1701
+ }
1702
+ }
1703
+ ]
1704
+ },
1705
+ {
1706
+ "kind": "method",
1707
+ "name": "isActionDisabled",
1708
+ "return": {
1709
+ "type": {
1710
+ "text": "boolean"
1711
+ }
1712
+ },
1713
+ "parameters": [
1714
+ {
1715
+ "name": "action",
1716
+ "type": {
1717
+ "text": "ActionMenuItem"
1718
+ }
1719
+ }
1720
+ ],
1721
+ "description": "Resolves an action's `isDisabled` for the current row."
1722
+ },
1723
+ {
1724
+ "kind": "field",
1725
+ "name": "resolvedActions",
1726
+ "type": {
1727
+ "text": "ActionMenuItem[]"
1728
+ },
1729
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
1730
+ "readonly": true
1731
+ },
1732
+ {
1733
+ "kind": "field",
1734
+ "name": "hasVisibleActions",
1735
+ "type": {
1736
+ "text": "boolean"
1737
+ },
1738
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
1739
+ "readonly": true
1740
+ },
1741
+ {
1742
+ "kind": "field",
1743
+ "name": "allActions",
1744
+ "type": {
1745
+ "text": "ActionMenuItem[]"
1746
+ },
1747
+ "readonly": true
1748
+ },
1749
+ {
1750
+ "kind": "field",
1751
+ "name": "rowData",
1752
+ "readonly": true
1753
+ },
1754
+ {
1755
+ "kind": "method",
1756
+ "name": "getLabel",
1757
+ "parameters": [
1758
+ {
1759
+ "name": "name",
1760
+ "type": {
1761
+ "text": "string | ((rowData: any) => string)"
1762
+ }
1763
+ }
1764
+ ]
1765
+ },
1766
+ {
1767
+ "kind": "method",
1768
+ "name": "getTemplate",
1769
+ "parameters": [
1770
+ {
1771
+ "name": "prefix",
1772
+ "type": {
1773
+ "text": "string"
1774
+ }
1775
+ }
1776
+ ]
1777
+ },
1778
+ {
1779
+ "kind": "field",
1780
+ "name": "_presentation",
1781
+ "type": {
1782
+ "text": "ComponentPresentation | null | undefined"
1783
+ },
1784
+ "privacy": "private",
1785
+ "default": "void 0",
1786
+ "inheritedFrom": {
1787
+ "name": "FoundationElement",
1788
+ "module": "src/foundation-element/foundation-element.ts"
1789
+ }
1790
+ },
1791
+ {
1792
+ "kind": "field",
1793
+ "name": "$presentation",
1794
+ "type": {
1795
+ "text": "ComponentPresentation | null"
1796
+ },
1797
+ "privacy": "public",
1798
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1799
+ "inheritedFrom": {
1800
+ "name": "FoundationElement",
1801
+ "module": "src/foundation-element/foundation-element.ts"
1802
+ }
1803
+ },
1804
+ {
1805
+ "kind": "field",
1806
+ "name": "template",
1807
+ "type": {
1808
+ "text": "ElementViewTemplate | void | null"
1809
+ },
1810
+ "privacy": "public",
1811
+ "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.",
1812
+ "inheritedFrom": {
1813
+ "name": "FoundationElement",
1745
1814
  "module": "src/foundation-element/foundation-element.ts"
1746
1815
  }
1747
1816
  },
@@ -1818,78 +1887,197 @@
1818
1887
  }
1819
1888
  }
1820
1889
  ],
1821
- "events": [
1890
+ "attributes": [
1822
1891
  {
1823
- "description": "Fires a custom 'change' event when the button is invoked",
1824
- "name": "change",
1825
- "inheritedFrom": {
1826
- "name": "AccordionItem",
1827
- "module": "src/accordion-item/accordion-item.ts"
1828
- }
1892
+ "name": "is-vertical",
1893
+ "type": {
1894
+ "text": "boolean"
1895
+ },
1896
+ "default": "false",
1897
+ "fieldName": "isVertical"
1898
+ },
1899
+ {
1900
+ "name": "add-default-actions",
1901
+ "type": {
1902
+ "text": "boolean"
1903
+ },
1904
+ "default": "true",
1905
+ "fieldName": "addDefaultActions"
1906
+ },
1907
+ {
1908
+ "name": "auto-close-on-action",
1909
+ "type": {
1910
+ "text": "boolean"
1911
+ },
1912
+ "default": "true",
1913
+ "fieldName": "autoCloseOnAction"
1914
+ },
1915
+ {
1916
+ "name": "name",
1917
+ "type": {
1918
+ "text": "string"
1919
+ },
1920
+ "default": "'Actions'",
1921
+ "fieldName": "name"
1922
+ },
1923
+ {
1924
+ "name": "icon-name",
1925
+ "type": {
1926
+ "text": "string"
1927
+ },
1928
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
1929
+ "fieldName": "iconName"
1930
+ },
1931
+ {
1932
+ "name": "open",
1933
+ "type": {
1934
+ "text": "boolean"
1935
+ },
1936
+ "default": "false",
1937
+ "fieldName": "open"
1938
+ },
1939
+ {
1940
+ "name": "buttonAppearance",
1941
+ "type": {
1942
+ "text": "string"
1943
+ },
1944
+ "fieldName": "buttonAppearance"
1945
+ },
1946
+ {
1947
+ "name": "hide-disabled",
1948
+ "type": {
1949
+ "text": "boolean"
1950
+ },
1951
+ "default": "false",
1952
+ "fieldName": "hideDisabled"
1953
+ },
1954
+ {
1955
+ "name": "hide-menu-single-option",
1956
+ "type": {
1957
+ "text": "boolean"
1958
+ },
1959
+ "default": "false",
1960
+ "fieldName": "hideMenuSingleOption"
1829
1961
  }
1830
- ]
1831
- },
1832
- {
1833
- "kind": "variable",
1834
- "name": "foundationAccordionItemShadowOptions",
1835
- "type": {
1836
- "text": "ShadowRootInit"
1962
+ ],
1963
+ "superclass": {
1964
+ "name": "FoundationElement",
1965
+ "package": "@microsoft/fast-foundation"
1837
1966
  },
1838
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1967
+ "tagName": "%%prefix%%-actions-menu",
1968
+ "customElement": true
1839
1969
  },
1840
1970
  {
1841
1971
  "kind": "variable",
1842
- "name": "defaultAccordionItemConfig",
1843
- "type": {
1844
- "text": "object"
1845
- },
1846
- "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}"
1972
+ "name": "foundationActionsMenu",
1973
+ "description": "The Foundation Actions Menu",
1974
+ "privacy": "public"
1975
+ }
1976
+ ],
1977
+ "exports": [
1978
+ {
1979
+ "kind": "js",
1980
+ "name": "ActionsMenu",
1981
+ "declaration": {
1982
+ "name": "ActionsMenu",
1983
+ "module": "src/actions-menu/actions-menu.ts"
1984
+ }
1847
1985
  },
1848
1986
  {
1849
- "kind": "variable",
1850
- "name": "foundationAccordionItem",
1851
- "description": "The Foundation Accordion Item",
1987
+ "kind": "js",
1988
+ "name": "foundationActionsMenu",
1989
+ "declaration": {
1990
+ "name": "foundationActionsMenu",
1991
+ "module": "src/actions-menu/actions-menu.ts"
1992
+ }
1993
+ }
1994
+ ]
1995
+ },
1996
+ {
1997
+ "kind": "javascript-module",
1998
+ "path": "src/actions-menu/ag-menu.styles.ts",
1999
+ "declarations": [
2000
+ {
2001
+ "kind": "function",
2002
+ "name": "agMenuStyles",
2003
+ "return": {
2004
+ "type": {
2005
+ "text": ""
2006
+ }
2007
+ },
2008
+ "parameters": [
2009
+ {
2010
+ "name": "menuSelector",
2011
+ "type": {
2012
+ "text": "string"
2013
+ },
2014
+ "description": "Selects the menu surface. May be a selector list."
2015
+ },
2016
+ {
2017
+ "name": "itemSelector",
2018
+ "type": {
2019
+ "text": "string"
2020
+ },
2021
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
2022
+ }
2023
+ ],
2024
+ "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
1852
2025
  "privacy": "public"
1853
2026
  }
1854
2027
  ],
1855
2028
  "exports": [
1856
2029
  {
1857
2030
  "kind": "js",
1858
- "name": "AccordionItem",
2031
+ "name": "agMenuStyles",
1859
2032
  "declaration": {
1860
- "name": "AccordionItem",
1861
- "module": "src/accordion-item/accordion-item.ts"
2033
+ "name": "agMenuStyles",
2034
+ "module": "src/actions-menu/ag-menu.styles.ts"
2035
+ }
2036
+ }
2037
+ ]
2038
+ },
2039
+ {
2040
+ "kind": "javascript-module",
2041
+ "path": "src/actions-menu/index.ts",
2042
+ "declarations": [],
2043
+ "exports": [
2044
+ {
2045
+ "kind": "js",
2046
+ "name": "*",
2047
+ "declaration": {
2048
+ "name": "*",
2049
+ "package": "./actions-menu.styles"
1862
2050
  }
1863
2051
  },
1864
2052
  {
1865
2053
  "kind": "js",
1866
- "name": "foundationAccordionItemShadowOptions",
2054
+ "name": "*",
1867
2055
  "declaration": {
1868
- "name": "foundationAccordionItemShadowOptions",
1869
- "module": "src/accordion-item/accordion-item.ts"
2056
+ "name": "*",
2057
+ "package": "./actions-menu.template"
1870
2058
  }
1871
2059
  },
1872
2060
  {
1873
2061
  "kind": "js",
1874
- "name": "defaultAccordionItemConfig",
2062
+ "name": "*",
1875
2063
  "declaration": {
1876
- "name": "defaultAccordionItemConfig",
1877
- "module": "src/accordion-item/accordion-item.ts"
2064
+ "name": "*",
2065
+ "package": "./actions-menu"
1878
2066
  }
1879
2067
  },
1880
2068
  {
1881
2069
  "kind": "js",
1882
- "name": "foundationAccordionItem",
2070
+ "name": "*",
1883
2071
  "declaration": {
1884
- "name": "foundationAccordionItem",
1885
- "module": "src/accordion-item/accordion-item.ts"
2072
+ "name": "*",
2073
+ "package": "./ag-menu.styles"
1886
2074
  }
1887
2075
  }
1888
2076
  ]
1889
2077
  },
1890
2078
  {
1891
2079
  "kind": "javascript-module",
1892
- "path": "src/accordion-item/index.ts",
2080
+ "path": "src/_config/index.ts",
1893
2081
  "declarations": [],
1894
2082
  "exports": [
1895
2083
  {
@@ -1897,7 +2085,7 @@
1897
2085
  "name": "*",
1898
2086
  "declaration": {
1899
2087
  "name": "*",
1900
- "package": "./accordion-item.template"
2088
+ "package": "./styles"
1901
2089
  }
1902
2090
  },
1903
2091
  {
@@ -1905,7 +2093,7 @@
1905
2093
  "name": "*",
1906
2094
  "declaration": {
1907
2095
  "name": "*",
1908
- "package": "./accordion-item.styles"
2096
+ "package": "./tokens"
1909
2097
  }
1910
2098
  },
1911
2099
  {
@@ -1913,18 +2101,18 @@
1913
2101
  "name": "*",
1914
2102
  "declaration": {
1915
2103
  "name": "*",
1916
- "package": "./accordion-item"
2104
+ "package": "./values"
1917
2105
  }
1918
2106
  }
1919
2107
  ]
1920
2108
  },
1921
2109
  {
1922
2110
  "kind": "javascript-module",
1923
- "path": "src/actions-menu/actions-menu.styles.ts",
2111
+ "path": "src/accordion/accordion.styles.ts",
1924
2112
  "declarations": [
1925
2113
  {
1926
2114
  "kind": "function",
1927
- "name": "actionsMenuBaseStyles",
2115
+ "name": "foundationAccordionStyles",
1928
2116
  "return": {
1929
2117
  "type": {
1930
2118
  "text": "ElementStyles"
@@ -1944,13 +2132,29 @@
1944
2132
  }
1945
2133
  }
1946
2134
  ]
1947
- },
2135
+ }
2136
+ ],
2137
+ "exports": [
2138
+ {
2139
+ "kind": "js",
2140
+ "name": "foundationAccordionStyles",
2141
+ "declaration": {
2142
+ "name": "foundationAccordionStyles",
2143
+ "module": "src/accordion/accordion.styles.ts"
2144
+ }
2145
+ }
2146
+ ]
2147
+ },
2148
+ {
2149
+ "kind": "javascript-module",
2150
+ "path": "src/accordion/accordion.template.ts",
2151
+ "declarations": [
1948
2152
  {
1949
2153
  "kind": "function",
1950
- "name": "foundationActionsMenuStyles",
2154
+ "name": "foundationAccordionTemplate",
1951
2155
  "return": {
1952
2156
  "type": {
1953
- "text": "ElementStyles"
2157
+ "text": "ViewTemplate<Accordion>"
1954
2158
  }
1955
2159
  },
1956
2160
  "parameters": [
@@ -1972,376 +2176,238 @@
1972
2176
  "exports": [
1973
2177
  {
1974
2178
  "kind": "js",
1975
- "name": "actionsMenuBaseStyles",
1976
- "declaration": {
1977
- "name": "actionsMenuBaseStyles",
1978
- "module": "src/actions-menu/actions-menu.styles.ts"
1979
- }
1980
- },
1981
- {
1982
- "kind": "js",
1983
- "name": "foundationActionsMenuStyles",
1984
- "declaration": {
1985
- "name": "foundationActionsMenuStyles",
1986
- "module": "src/actions-menu/actions-menu.styles.ts"
1987
- }
1988
- }
1989
- ]
1990
- },
1991
- {
1992
- "kind": "javascript-module",
1993
- "path": "src/actions-menu/actions-menu.template.ts",
1994
- "declarations": [
1995
- {
1996
- "kind": "variable",
1997
- "name": "menuTemplate"
1998
- },
1999
- {
2000
- "kind": "variable",
2001
- "name": "singleOptionTemplate"
2002
- },
2003
- {
2004
- "kind": "variable",
2005
- "name": "foundationActionsMenuTemplate",
2006
- "type": {
2007
- "text": "ViewTemplate<ActionsMenu>"
2008
- },
2009
- "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`"
2010
- }
2011
- ],
2012
- "exports": [
2013
- {
2014
- "kind": "js",
2015
- "name": "menuTemplate",
2016
- "declaration": {
2017
- "name": "menuTemplate",
2018
- "module": "src/actions-menu/actions-menu.template.ts"
2019
- }
2020
- },
2021
- {
2022
- "kind": "js",
2023
- "name": "singleOptionTemplate",
2024
- "declaration": {
2025
- "name": "singleOptionTemplate",
2026
- "module": "src/actions-menu/actions-menu.template.ts"
2027
- }
2028
- },
2029
- {
2030
- "kind": "js",
2031
- "name": "foundationActionsMenuTemplate",
2179
+ "name": "foundationAccordionTemplate",
2032
2180
  "declaration": {
2033
- "name": "foundationActionsMenuTemplate",
2034
- "module": "src/actions-menu/actions-menu.template.ts"
2181
+ "name": "foundationAccordionTemplate",
2182
+ "module": "src/accordion/accordion.template.ts"
2035
2183
  }
2036
2184
  }
2037
2185
  ]
2038
2186
  },
2039
2187
  {
2040
2188
  "kind": "javascript-module",
2041
- "path": "src/actions-menu/actions-menu.ts",
2189
+ "path": "src/accordion/accordion.ts",
2042
2190
  "declarations": [
2043
2191
  {
2044
2192
  "kind": "class",
2045
2193
  "description": "",
2046
- "name": "ActionsMenu",
2047
- "members": [
2048
- {
2049
- "kind": "field",
2050
- "name": "actions",
2051
- "type": {
2052
- "text": "ActionMenuItem[]"
2053
- }
2054
- },
2055
- {
2056
- "kind": "field",
2057
- "name": "actionsResolver",
2058
- "type": {
2059
- "text": "ActionMenuItemsResolver | undefined"
2060
- },
2061
- "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2062
- },
2063
- {
2064
- "kind": "field",
2065
- "name": "isVertical",
2066
- "type": {
2067
- "text": "boolean"
2068
- },
2069
- "default": "false"
2070
- },
2071
- {
2072
- "kind": "field",
2073
- "name": "addDefaultActions",
2074
- "type": {
2075
- "text": "boolean"
2076
- },
2077
- "default": "true"
2078
- },
2079
- {
2080
- "kind": "field",
2081
- "name": "autoCloseOnAction",
2082
- "type": {
2083
- "text": "boolean"
2084
- },
2085
- "default": "true"
2086
- },
2087
- {
2088
- "kind": "field",
2089
- "name": "classNames",
2090
- "type": {
2091
- "text": "string"
2092
- }
2093
- },
2094
- {
2095
- "kind": "field",
2096
- "name": "definition",
2097
- "type": {
2098
- "text": "any"
2099
- }
2100
- },
2101
- {
2102
- "kind": "field",
2103
- "name": "name",
2104
- "type": {
2105
- "text": "string"
2106
- },
2107
- "default": "'Actions'"
2108
- },
2109
- {
2110
- "kind": "field",
2111
- "name": "iconName",
2112
- "type": {
2113
- "text": "string"
2114
- },
2115
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2116
- },
2117
- {
2118
- "kind": "field",
2119
- "name": "open",
2120
- "type": {
2121
- "text": "boolean"
2122
- },
2123
- "default": "false"
2124
- },
2125
- {
2126
- "kind": "field",
2127
- "name": "buttonAppearance",
2128
- "type": {
2129
- "text": "string"
2130
- }
2131
- },
2132
- {
2133
- "kind": "field",
2134
- "name": "hideDisabled",
2135
- "type": {
2136
- "text": "boolean"
2137
- },
2138
- "default": "false"
2139
- },
2140
- {
2141
- "kind": "field",
2142
- "name": "hideMenuSingleOption",
2143
- "type": {
2144
- "text": "boolean"
2145
- },
2146
- "default": "false"
2147
- },
2194
+ "name": "Accordion",
2195
+ "superclass": {
2196
+ "name": "FASTAccordion",
2197
+ "package": "@microsoft/fast-foundation"
2198
+ },
2199
+ "tagName": "%%prefix%%-accordion",
2200
+ "customElement": true,
2201
+ "attributes": [
2148
2202
  {
2149
- "kind": "field",
2150
- "name": "singleOption",
2203
+ "name": "expand-mode",
2151
2204
  "type": {
2152
- "text": "ActionMenuItem"
2205
+ "text": "AccordionExpandMode"
2206
+ },
2207
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2208
+ "fieldName": "expandmode",
2209
+ "inheritedFrom": {
2210
+ "name": "Accordion",
2211
+ "module": "src/accordion/accordion.ts"
2153
2212
  }
2154
- },
2213
+ }
2214
+ ],
2215
+ "members": [
2155
2216
  {
2156
2217
  "kind": "field",
2157
- "name": "actionsMenu",
2218
+ "name": "expandmode",
2158
2219
  "type": {
2159
- "text": "HTMLElement"
2220
+ "text": "AccordionExpandMode"
2221
+ },
2222
+ "privacy": "public",
2223
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2224
+ "inheritedFrom": {
2225
+ "name": "Accordion",
2226
+ "module": "src/accordion/accordion.ts"
2160
2227
  }
2161
2228
  },
2162
2229
  {
2163
2230
  "kind": "field",
2164
- "name": "actionsOpener",
2231
+ "name": "activeid",
2165
2232
  "type": {
2166
- "text": "HTMLElement"
2233
+ "text": "string | null"
2234
+ },
2235
+ "privacy": "private",
2236
+ "inheritedFrom": {
2237
+ "name": "Accordion",
2238
+ "module": "src/accordion/accordion.ts"
2167
2239
  }
2168
2240
  },
2169
2241
  {
2170
2242
  "kind": "field",
2171
- "name": "positionTracker",
2243
+ "name": "activeItemIndex",
2172
2244
  "type": {
2173
- "text": "AnchoredPopoverPositionTracker | undefined"
2245
+ "text": "number"
2174
2246
  },
2175
- "privacy": "private"
2247
+ "privacy": "private",
2248
+ "default": "0",
2249
+ "inheritedFrom": {
2250
+ "name": "Accordion",
2251
+ "module": "src/accordion/accordion.ts"
2252
+ }
2176
2253
  },
2177
2254
  {
2178
2255
  "kind": "field",
2179
- "name": "focusMenuOnOpen",
2256
+ "name": "accordionIds",
2180
2257
  "type": {
2181
- "text": "boolean"
2258
+ "text": "Array<string | null>"
2182
2259
  },
2183
2260
  "privacy": "private",
2184
- "default": "false",
2185
- "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2261
+ "inheritedFrom": {
2262
+ "name": "Accordion",
2263
+ "module": "src/accordion/accordion.ts"
2264
+ }
2186
2265
  },
2187
2266
  {
2188
- "kind": "method",
2189
- "name": "updateMenuPosition",
2190
- "privacy": "private"
2267
+ "kind": "field",
2268
+ "name": "change",
2269
+ "privacy": "private",
2270
+ "inheritedFrom": {
2271
+ "name": "Accordion",
2272
+ "module": "src/accordion/accordion.ts"
2273
+ }
2191
2274
  },
2192
2275
  {
2193
2276
  "kind": "method",
2194
- "name": "startTrackingPosition",
2195
- "privacy": "private"
2277
+ "name": "findExpandedItem",
2278
+ "privacy": "private",
2279
+ "return": {
2280
+ "type": {
2281
+ "text": "AccordionItem | null"
2282
+ }
2283
+ },
2284
+ "inheritedFrom": {
2285
+ "name": "Accordion",
2286
+ "module": "src/accordion/accordion.ts"
2287
+ }
2196
2288
  },
2197
2289
  {
2198
- "kind": "method",
2199
- "name": "stopTrackingPosition",
2200
- "privacy": "private"
2290
+ "kind": "field",
2291
+ "name": "setItems",
2292
+ "privacy": "private",
2293
+ "inheritedFrom": {
2294
+ "name": "Accordion",
2295
+ "module": "src/accordion/accordion.ts"
2296
+ }
2201
2297
  },
2202
2298
  {
2203
2299
  "kind": "method",
2204
- "name": "definitionChanged",
2205
- "privacy": "protected",
2206
- "parameters": [
2207
- {
2208
- "name": "oldValue",
2209
- "type": {
2210
- "text": "any"
2211
- }
2212
- },
2213
- {
2214
- "name": "newValue",
2215
- "type": {
2216
- "text": "any"
2217
- }
2300
+ "name": "resetItems",
2301
+ "privacy": "private",
2302
+ "return": {
2303
+ "type": {
2304
+ "text": "void"
2218
2305
  }
2219
- ]
2220
- },
2221
- {
2222
- "kind": "method",
2223
- "name": "openChanged",
2224
- "privacy": "protected"
2306
+ },
2307
+ "inheritedFrom": {
2308
+ "name": "Accordion",
2309
+ "module": "src/accordion/accordion.ts"
2310
+ }
2225
2311
  },
2226
2312
  {
2227
- "kind": "method",
2228
- "name": "toggleActionsMenuVisibility"
2313
+ "kind": "field",
2314
+ "name": "removeItemListeners",
2315
+ "privacy": "private",
2316
+ "inheritedFrom": {
2317
+ "name": "Accordion",
2318
+ "module": "src/accordion/accordion.ts"
2319
+ }
2229
2320
  },
2230
2321
  {
2231
- "kind": "method",
2232
- "name": "onPopoverToggle",
2233
- "parameters": [
2234
- {
2235
- "name": "event",
2236
- "type": {
2237
- "text": "Event"
2238
- }
2239
- }
2240
- ],
2241
- "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2322
+ "kind": "field",
2323
+ "name": "activeItemChange",
2324
+ "privacy": "private",
2325
+ "inheritedFrom": {
2326
+ "name": "Accordion",
2327
+ "module": "src/accordion/accordion.ts"
2328
+ }
2242
2329
  },
2243
2330
  {
2244
2331
  "kind": "method",
2245
- "name": "onIconOpenerKeydown",
2332
+ "name": "getItemIds",
2333
+ "privacy": "private",
2246
2334
  "return": {
2247
2335
  "type": {
2248
- "text": "boolean"
2336
+ "text": "Array<string | null>"
2249
2337
  }
2250
2338
  },
2251
- "parameters": [
2252
- {
2253
- "name": "event",
2254
- "type": {
2255
- "text": "KeyboardEvent"
2256
- }
2257
- }
2258
- ],
2259
- "description": "Opens the icon-only opener from the keyboard, as a native button would."
2260
- },
2261
- {
2262
- "kind": "method",
2263
- "name": "onActionMenuItemClick",
2264
- "parameters": [
2265
- {
2266
- "name": "callback",
2267
- "type": {
2268
- "text": "(rowData) => void | any"
2269
- }
2270
- }
2271
- ]
2339
+ "inheritedFrom": {
2340
+ "name": "Accordion",
2341
+ "module": "src/accordion/accordion.ts"
2342
+ }
2272
2343
  },
2273
2344
  {
2274
2345
  "kind": "method",
2275
- "name": "isActionDisabled",
2346
+ "name": "isSingleExpandMode",
2347
+ "privacy": "private",
2276
2348
  "return": {
2277
2349
  "type": {
2278
2350
  "text": "boolean"
2279
2351
  }
2280
2352
  },
2281
- "parameters": [
2282
- {
2283
- "name": "action",
2284
- "type": {
2285
- "text": "ActionMenuItem"
2286
- }
2287
- }
2288
- ],
2289
- "description": "Resolves an action's `isDisabled` for the current row."
2290
- },
2291
- {
2292
- "kind": "field",
2293
- "name": "resolvedActions",
2294
- "type": {
2295
- "text": "ActionMenuItem[]"
2296
- },
2297
- "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2298
- "readonly": true
2299
- },
2300
- {
2301
- "kind": "field",
2302
- "name": "hasVisibleActions",
2303
- "type": {
2304
- "text": "boolean"
2305
- },
2306
- "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2307
- "readonly": true
2353
+ "inheritedFrom": {
2354
+ "name": "Accordion",
2355
+ "module": "src/accordion/accordion.ts"
2356
+ }
2308
2357
  },
2309
2358
  {
2310
2359
  "kind": "field",
2311
- "name": "allActions",
2312
- "type": {
2313
- "text": "ActionMenuItem[]"
2314
- },
2315
- "readonly": true
2360
+ "name": "handleItemKeyDown",
2361
+ "privacy": "private",
2362
+ "inheritedFrom": {
2363
+ "name": "Accordion",
2364
+ "module": "src/accordion/accordion.ts"
2365
+ }
2316
2366
  },
2317
2367
  {
2318
2368
  "kind": "field",
2319
- "name": "rowData",
2320
- "readonly": true
2369
+ "name": "handleItemFocus",
2370
+ "privacy": "private",
2371
+ "inheritedFrom": {
2372
+ "name": "Accordion",
2373
+ "module": "src/accordion/accordion.ts"
2374
+ }
2321
2375
  },
2322
2376
  {
2323
2377
  "kind": "method",
2324
- "name": "getLabel",
2378
+ "name": "adjust",
2379
+ "privacy": "private",
2380
+ "return": {
2381
+ "type": {
2382
+ "text": "void"
2383
+ }
2384
+ },
2325
2385
  "parameters": [
2326
2386
  {
2327
- "name": "name",
2387
+ "name": "adjustment",
2328
2388
  "type": {
2329
- "text": "string | ((rowData: any) => string)"
2389
+ "text": "number"
2330
2390
  }
2331
2391
  }
2332
- ]
2392
+ ],
2393
+ "inheritedFrom": {
2394
+ "name": "Accordion",
2395
+ "module": "src/accordion/accordion.ts"
2396
+ }
2333
2397
  },
2334
2398
  {
2335
- "kind": "method",
2336
- "name": "getTemplate",
2337
- "parameters": [
2338
- {
2339
- "name": "prefix",
2340
- "type": {
2341
- "text": "string"
2342
- }
2399
+ "kind": "method",
2400
+ "name": "focusItem",
2401
+ "privacy": "private",
2402
+ "return": {
2403
+ "type": {
2404
+ "text": "void"
2343
2405
  }
2344
- ]
2406
+ },
2407
+ "inheritedFrom": {
2408
+ "name": "Accordion",
2409
+ "module": "src/accordion/accordion.ts"
2410
+ }
2345
2411
  },
2346
2412
  {
2347
2413
  "kind": "field",
@@ -2455,158 +2521,78 @@
2455
2521
  }
2456
2522
  }
2457
2523
  ],
2458
- "attributes": [
2459
- {
2460
- "name": "is-vertical",
2461
- "type": {
2462
- "text": "boolean"
2463
- },
2464
- "default": "false",
2465
- "fieldName": "isVertical"
2466
- },
2467
- {
2468
- "name": "add-default-actions",
2469
- "type": {
2470
- "text": "boolean"
2471
- },
2472
- "default": "true",
2473
- "fieldName": "addDefaultActions"
2474
- },
2475
- {
2476
- "name": "auto-close-on-action",
2477
- "type": {
2478
- "text": "boolean"
2479
- },
2480
- "default": "true",
2481
- "fieldName": "autoCloseOnAction"
2482
- },
2483
- {
2484
- "name": "name",
2485
- "type": {
2486
- "text": "string"
2487
- },
2488
- "default": "'Actions'",
2489
- "fieldName": "name"
2490
- },
2491
- {
2492
- "name": "icon-name",
2493
- "type": {
2494
- "text": "string"
2495
- },
2496
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
2497
- "fieldName": "iconName"
2498
- },
2499
- {
2500
- "name": "open",
2501
- "type": {
2502
- "text": "boolean"
2503
- },
2504
- "default": "false",
2505
- "fieldName": "open"
2506
- },
2507
- {
2508
- "name": "buttonAppearance",
2509
- "type": {
2510
- "text": "string"
2511
- },
2512
- "fieldName": "buttonAppearance"
2513
- },
2514
- {
2515
- "name": "hide-disabled",
2516
- "type": {
2517
- "text": "boolean"
2518
- },
2519
- "default": "false",
2520
- "fieldName": "hideDisabled"
2521
- },
2524
+ "events": [
2522
2525
  {
2523
- "name": "hide-menu-single-option",
2524
- "type": {
2525
- "text": "boolean"
2526
- },
2527
- "default": "false",
2528
- "fieldName": "hideMenuSingleOption"
2526
+ "description": "Fires a custom 'change' event when the active item changes",
2527
+ "name": "change",
2528
+ "inheritedFrom": {
2529
+ "name": "Accordion",
2530
+ "module": "src/accordion/accordion.ts"
2531
+ }
2529
2532
  }
2530
- ],
2531
- "superclass": {
2532
- "name": "FoundationElement",
2533
- "package": "@microsoft/fast-foundation"
2533
+ ]
2534
+ },
2535
+ {
2536
+ "kind": "variable",
2537
+ "name": "foundationAccordionShadowOptions",
2538
+ "type": {
2539
+ "text": "ShadowRootInit"
2534
2540
  },
2535
- "tagName": "%%prefix%%-actions-menu",
2536
- "customElement": true
2541
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2537
2542
  },
2538
2543
  {
2539
2544
  "kind": "variable",
2540
- "name": "foundationActionsMenu",
2541
- "description": "The Foundation Actions Menu",
2545
+ "name": "defaultAccordionConfig",
2546
+ "type": {
2547
+ "text": "object"
2548
+ },
2549
+ "default": "{}"
2550
+ },
2551
+ {
2552
+ "kind": "variable",
2553
+ "name": "foundationAccordion",
2554
+ "description": "The Foundation Accordion",
2542
2555
  "privacy": "public"
2543
2556
  }
2544
2557
  ],
2545
2558
  "exports": [
2546
2559
  {
2547
2560
  "kind": "js",
2548
- "name": "ActionsMenu",
2561
+ "name": "Accordion",
2549
2562
  "declaration": {
2550
- "name": "ActionsMenu",
2551
- "module": "src/actions-menu/actions-menu.ts"
2563
+ "name": "Accordion",
2564
+ "module": "src/accordion/accordion.ts"
2552
2565
  }
2553
2566
  },
2554
2567
  {
2555
2568
  "kind": "js",
2556
- "name": "foundationActionsMenu",
2569
+ "name": "foundationAccordionShadowOptions",
2557
2570
  "declaration": {
2558
- "name": "foundationActionsMenu",
2559
- "module": "src/actions-menu/actions-menu.ts"
2571
+ "name": "foundationAccordionShadowOptions",
2572
+ "module": "src/accordion/accordion.ts"
2560
2573
  }
2561
- }
2562
- ]
2563
- },
2564
- {
2565
- "kind": "javascript-module",
2566
- "path": "src/actions-menu/ag-menu.styles.ts",
2567
- "declarations": [
2574
+ },
2568
2575
  {
2569
- "kind": "function",
2570
- "name": "agMenuStyles",
2571
- "return": {
2572
- "type": {
2573
- "text": ""
2574
- }
2575
- },
2576
- "parameters": [
2577
- {
2578
- "name": "menuSelector",
2579
- "type": {
2580
- "text": "string"
2581
- },
2582
- "description": "Selects the menu surface. May be a selector list."
2583
- },
2584
- {
2585
- "name": "itemSelector",
2586
- "type": {
2587
- "text": "string"
2588
- },
2589
- "description": "Selects a menu item. Must be a single selector, as states are appended to it."
2590
- }
2591
- ],
2592
- "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
2593
- "privacy": "public"
2594
- }
2595
- ],
2596
- "exports": [
2576
+ "kind": "js",
2577
+ "name": "defaultAccordionConfig",
2578
+ "declaration": {
2579
+ "name": "defaultAccordionConfig",
2580
+ "module": "src/accordion/accordion.ts"
2581
+ }
2582
+ },
2597
2583
  {
2598
2584
  "kind": "js",
2599
- "name": "agMenuStyles",
2585
+ "name": "foundationAccordion",
2600
2586
  "declaration": {
2601
- "name": "agMenuStyles",
2602
- "module": "src/actions-menu/ag-menu.styles.ts"
2587
+ "name": "foundationAccordion",
2588
+ "module": "src/accordion/accordion.ts"
2603
2589
  }
2604
2590
  }
2605
2591
  ]
2606
2592
  },
2607
2593
  {
2608
2594
  "kind": "javascript-module",
2609
- "path": "src/actions-menu/index.ts",
2595
+ "path": "src/accordion/index.ts",
2610
2596
  "declarations": [],
2611
2597
  "exports": [
2612
2598
  {
@@ -2614,15 +2600,7 @@
2614
2600
  "name": "*",
2615
2601
  "declaration": {
2616
2602
  "name": "*",
2617
- "package": "./actions-menu.styles"
2618
- }
2619
- },
2620
- {
2621
- "kind": "js",
2622
- "name": "*",
2623
- "declaration": {
2624
- "name": "*",
2625
- "package": "./actions-menu.template"
2603
+ "package": "./accordion.template"
2626
2604
  }
2627
2605
  },
2628
2606
  {
@@ -2630,7 +2608,7 @@
2630
2608
  "name": "*",
2631
2609
  "declaration": {
2632
2610
  "name": "*",
2633
- "package": "./actions-menu"
2611
+ "package": "./accordion.styles"
2634
2612
  }
2635
2613
  },
2636
2614
  {
@@ -2638,282 +2616,215 @@
2638
2616
  "name": "*",
2639
2617
  "declaration": {
2640
2618
  "name": "*",
2641
- "package": "./ag-menu.styles"
2619
+ "package": "./accordion"
2642
2620
  }
2643
2621
  }
2644
2622
  ]
2645
2623
  },
2646
2624
  {
2647
2625
  "kind": "javascript-module",
2648
- "path": "src/accordion/accordion.styles.ts",
2626
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2649
2627
  "declarations": [
2650
2628
  {
2651
- "kind": "function",
2652
- "name": "foundationAccordionStyles",
2653
- "return": {
2654
- "type": {
2655
- "text": "ElementStyles"
2656
- }
2657
- },
2658
- "parameters": [
2659
- {
2660
- "name": "context",
2661
- "type": {
2662
- "text": "ElementDefinitionContext"
2663
- }
2664
- },
2665
- {
2666
- "name": "definition",
2667
- "type": {
2668
- "text": "FoundationElementDefinition"
2669
- }
2670
- }
2671
- ]
2629
+ "kind": "variable",
2630
+ "name": "foundationAiCriteriaSearchStyles",
2631
+ "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`"
2672
2632
  }
2673
2633
  ],
2674
2634
  "exports": [
2675
2635
  {
2676
2636
  "kind": "js",
2677
- "name": "foundationAccordionStyles",
2637
+ "name": "foundationAiCriteriaSearchStyles",
2678
2638
  "declaration": {
2679
- "name": "foundationAccordionStyles",
2680
- "module": "src/accordion/accordion.styles.ts"
2639
+ "name": "foundationAiCriteriaSearchStyles",
2640
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2681
2641
  }
2682
2642
  }
2683
2643
  ]
2684
2644
  },
2685
2645
  {
2686
2646
  "kind": "javascript-module",
2687
- "path": "src/accordion/accordion.template.ts",
2647
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2688
2648
  "declarations": [
2689
2649
  {
2690
- "kind": "function",
2691
- "name": "foundationAccordionTemplate",
2692
- "return": {
2693
- "type": {
2694
- "text": "ViewTemplate<Accordion>"
2695
- }
2650
+ "kind": "variable",
2651
+ "name": "foundationAiCriteriaSearchTemplate",
2652
+ "type": {
2653
+ "text": "ViewTemplate<AiCriteriaSearch>"
2696
2654
  },
2697
- "parameters": [
2698
- {
2699
- "name": "context",
2700
- "type": {
2701
- "text": "ElementDefinitionContext"
2702
- }
2703
- },
2704
- {
2705
- "name": "definition",
2706
- "type": {
2707
- "text": "FoundationElementDefinition"
2708
- }
2709
- }
2710
- ]
2655
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2711
2656
  }
2712
2657
  ],
2713
2658
  "exports": [
2714
2659
  {
2715
2660
  "kind": "js",
2716
- "name": "foundationAccordionTemplate",
2717
- "declaration": {
2718
- "name": "foundationAccordionTemplate",
2719
- "module": "src/accordion/accordion.template.ts"
2661
+ "name": "foundationAiCriteriaSearchTemplate",
2662
+ "declaration": {
2663
+ "name": "foundationAiCriteriaSearchTemplate",
2664
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2720
2665
  }
2721
2666
  }
2722
2667
  ]
2723
2668
  },
2724
2669
  {
2725
2670
  "kind": "javascript-module",
2726
- "path": "src/accordion/accordion.ts",
2671
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2727
2672
  "declarations": [
2728
2673
  {
2729
2674
  "kind": "class",
2730
- "description": "",
2731
- "name": "Accordion",
2732
- "superclass": {
2733
- "name": "FASTAccordion",
2734
- "package": "@microsoft/fast-foundation"
2735
- },
2736
- "tagName": "%%prefix%%-accordion",
2737
- "customElement": true,
2738
- "attributes": [
2675
+ "description": "Natural-language criteria search input with AI interpretation.",
2676
+ "name": "AiCriteriaSearch",
2677
+ "members": [
2739
2678
  {
2740
- "name": "expand-mode",
2679
+ "kind": "field",
2680
+ "name": "providerRegistry",
2741
2681
  "type": {
2742
- "text": "AccordionExpandMode"
2743
- },
2744
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2745
- "fieldName": "expandmode",
2746
- "inheritedFrom": {
2747
- "name": "Accordion",
2748
- "module": "src/accordion/accordion.ts"
2682
+ "text": "AIProviderRegistry"
2749
2683
  }
2750
- }
2751
- ],
2752
- "members": [
2684
+ },
2753
2685
  {
2754
2686
  "kind": "field",
2755
- "name": "expandmode",
2687
+ "name": "placeholder",
2756
2688
  "type": {
2757
- "text": "AccordionExpandMode"
2689
+ "text": "string"
2758
2690
  },
2759
- "privacy": "public",
2760
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2761
- "inheritedFrom": {
2762
- "name": "Accordion",
2763
- "module": "src/accordion/accordion.ts"
2691
+ "default": "'Describe your search criteria in natural language...'"
2692
+ },
2693
+ {
2694
+ "kind": "field",
2695
+ "name": "disabled",
2696
+ "type": {
2697
+ "text": "boolean"
2764
2698
  }
2765
2699
  },
2766
2700
  {
2767
2701
  "kind": "field",
2768
- "name": "activeid",
2702
+ "name": "inputValue",
2769
2703
  "type": {
2770
- "text": "string | null"
2704
+ "text": "string"
2771
2705
  },
2772
- "privacy": "private",
2773
- "inheritedFrom": {
2774
- "name": "Accordion",
2775
- "module": "src/accordion/accordion.ts"
2776
- }
2706
+ "default": "''"
2777
2707
  },
2778
2708
  {
2779
2709
  "kind": "field",
2780
- "name": "activeItemIndex",
2710
+ "name": "isInterpreting",
2781
2711
  "type": {
2782
- "text": "number"
2712
+ "text": "boolean"
2783
2713
  },
2784
- "privacy": "private",
2785
- "default": "0",
2786
- "inheritedFrom": {
2787
- "name": "Accordion",
2788
- "module": "src/accordion/accordion.ts"
2789
- }
2714
+ "default": "false"
2790
2715
  },
2791
2716
  {
2792
2717
  "kind": "field",
2793
- "name": "accordionIds",
2718
+ "name": "lastValidCriteria",
2794
2719
  "type": {
2795
- "text": "Array<string | null>"
2720
+ "text": "string | null"
2796
2721
  },
2797
- "privacy": "private",
2798
- "inheritedFrom": {
2799
- "name": "Accordion",
2800
- "module": "src/accordion/accordion.ts"
2801
- }
2722
+ "default": "null"
2802
2723
  },
2803
2724
  {
2804
2725
  "kind": "field",
2805
- "name": "change",
2806
- "privacy": "private",
2807
- "inheritedFrom": {
2808
- "name": "Accordion",
2809
- "module": "src/accordion/accordion.ts"
2810
- }
2726
+ "name": "activeGroups",
2727
+ "type": {
2728
+ "text": "CriteriaGroup[]"
2729
+ },
2730
+ "default": "[]"
2811
2731
  },
2812
2732
  {
2813
- "kind": "method",
2814
- "name": "findExpandedItem",
2815
- "privacy": "private",
2816
- "return": {
2817
- "type": {
2818
- "text": "AccordionItem | null"
2819
- }
2733
+ "kind": "field",
2734
+ "name": "showingChips",
2735
+ "type": {
2736
+ "text": "boolean"
2820
2737
  },
2821
- "inheritedFrom": {
2822
- "name": "Accordion",
2823
- "module": "src/accordion/accordion.ts"
2824
- }
2738
+ "default": "false"
2825
2739
  },
2826
2740
  {
2827
2741
  "kind": "field",
2828
- "name": "setItems",
2829
- "privacy": "private",
2830
- "inheritedFrom": {
2831
- "name": "Accordion",
2832
- "module": "src/accordion/accordion.ts"
2833
- }
2742
+ "name": "fieldMetadata",
2743
+ "type": {
2744
+ "text": "MetadataDetail[] | string[]"
2745
+ },
2746
+ "default": "[]"
2834
2747
  },
2835
2748
  {
2836
- "kind": "method",
2837
- "name": "resetItems",
2838
- "privacy": "private",
2839
- "return": {
2840
- "type": {
2841
- "text": "void"
2842
- }
2749
+ "kind": "field",
2750
+ "name": "isRecording",
2751
+ "type": {
2752
+ "text": "boolean"
2843
2753
  },
2844
- "inheritedFrom": {
2845
- "name": "Accordion",
2846
- "module": "src/accordion/accordion.ts"
2847
- }
2754
+ "default": "false"
2848
2755
  },
2849
2756
  {
2850
2757
  "kind": "field",
2851
- "name": "removeItemListeners",
2758
+ "name": "textAreaRef",
2759
+ "type": {
2760
+ "text": "HTMLTextAreaElement"
2761
+ },
2762
+ "privacy": "public"
2763
+ },
2764
+ {
2765
+ "kind": "field",
2766
+ "name": "stopRecording",
2767
+ "type": {
2768
+ "text": "(() => void) | null"
2769
+ },
2852
2770
  "privacy": "private",
2853
- "inheritedFrom": {
2854
- "name": "Accordion",
2855
- "module": "src/accordion/accordion.ts"
2856
- }
2771
+ "default": "null"
2857
2772
  },
2858
2773
  {
2859
2774
  "kind": "field",
2860
- "name": "activeItemChange",
2775
+ "name": "speechApplyDebounceTimer",
2776
+ "type": {
2777
+ "text": "ReturnType<typeof setTimeout> | null"
2778
+ },
2861
2779
  "privacy": "private",
2862
- "inheritedFrom": {
2863
- "name": "Accordion",
2864
- "module": "src/accordion/accordion.ts"
2865
- }
2780
+ "default": "null"
2781
+ },
2782
+ {
2783
+ "kind": "field",
2784
+ "name": "speechAvailable",
2785
+ "type": {
2786
+ "text": "boolean"
2787
+ },
2788
+ "readonly": true
2789
+ },
2790
+ {
2791
+ "kind": "field",
2792
+ "name": "criteriaChips",
2793
+ "type": {
2794
+ "text": "CriteriaChip[]"
2795
+ },
2796
+ "readonly": true
2866
2797
  },
2867
2798
  {
2868
2799
  "kind": "method",
2869
- "name": "getItemIds",
2800
+ "name": "getFieldLabel",
2870
2801
  "privacy": "private",
2871
2802
  "return": {
2872
2803
  "type": {
2873
- "text": "Array<string | null>"
2804
+ "text": "string"
2874
2805
  }
2875
2806
  },
2876
- "inheritedFrom": {
2877
- "name": "Accordion",
2878
- "module": "src/accordion/accordion.ts"
2879
- }
2807
+ "parameters": [
2808
+ {
2809
+ "name": "fieldName",
2810
+ "type": {
2811
+ "text": "string"
2812
+ }
2813
+ }
2814
+ ]
2880
2815
  },
2881
2816
  {
2882
2817
  "kind": "method",
2883
- "name": "isSingleExpandMode",
2884
- "privacy": "private",
2818
+ "name": "toggleCriteriaView",
2885
2819
  "return": {
2886
2820
  "type": {
2887
- "text": "boolean"
2821
+ "text": "void"
2888
2822
  }
2889
- },
2890
- "inheritedFrom": {
2891
- "name": "Accordion",
2892
- "module": "src/accordion/accordion.ts"
2893
- }
2894
- },
2895
- {
2896
- "kind": "field",
2897
- "name": "handleItemKeyDown",
2898
- "privacy": "private",
2899
- "inheritedFrom": {
2900
- "name": "Accordion",
2901
- "module": "src/accordion/accordion.ts"
2902
- }
2903
- },
2904
- {
2905
- "kind": "field",
2906
- "name": "handleItemFocus",
2907
- "privacy": "private",
2908
- "inheritedFrom": {
2909
- "name": "Accordion",
2910
- "module": "src/accordion/accordion.ts"
2911
2823
  }
2912
2824
  },
2913
2825
  {
2914
2826
  "kind": "method",
2915
- "name": "adjust",
2916
- "privacy": "private",
2827
+ "name": "removeChip",
2917
2828
  "return": {
2918
2829
  "type": {
2919
2830
  "text": "void"
@@ -2921,30 +2832,48 @@
2921
2832
  },
2922
2833
  "parameters": [
2923
2834
  {
2924
- "name": "adjustment",
2835
+ "name": "groupIndex",
2836
+ "type": {
2837
+ "text": "number"
2838
+ }
2839
+ },
2840
+ {
2841
+ "name": "clauseIndex",
2925
2842
  "type": {
2926
2843
  "text": "number"
2927
2844
  }
2928
2845
  }
2929
- ],
2930
- "inheritedFrom": {
2931
- "name": "Accordion",
2932
- "module": "src/accordion/accordion.ts"
2846
+ ]
2847
+ },
2848
+ {
2849
+ "kind": "method",
2850
+ "name": "clearChips",
2851
+ "return": {
2852
+ "type": {
2853
+ "text": "void"
2854
+ }
2933
2855
  }
2934
2856
  },
2935
2857
  {
2936
2858
  "kind": "method",
2937
- "name": "focusItem",
2938
- "privacy": "private",
2939
- "return": {
2940
- "type": {
2941
- "text": "void"
2942
- }
2943
- },
2944
- "inheritedFrom": {
2945
- "name": "Accordion",
2946
- "module": "src/accordion/accordion.ts"
2947
- }
2859
+ "name": "handleSubmit"
2860
+ },
2861
+ {
2862
+ "kind": "method",
2863
+ "name": "handleBlur"
2864
+ },
2865
+ {
2866
+ "kind": "method",
2867
+ "name": "clear"
2868
+ },
2869
+ {
2870
+ "kind": "method",
2871
+ "name": "toggleSpeechInput"
2872
+ },
2873
+ {
2874
+ "kind": "method",
2875
+ "name": "clearSpeechApplyDebounce",
2876
+ "privacy": "private"
2948
2877
  },
2949
2878
  {
2950
2879
  "kind": "field",
@@ -3060,26 +2989,48 @@
3060
2989
  ],
3061
2990
  "events": [
3062
2991
  {
3063
- "description": "Fires a custom 'change' event when the active item changes",
3064
- "name": "change",
3065
- "inheritedFrom": {
3066
- "name": "Accordion",
3067
- "module": "src/accordion/accordion.ts"
3068
- }
2992
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2993
+ "name": "criteria-changed"
2994
+ },
2995
+ {
2996
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2997
+ "name": "validation-errors"
3069
2998
  }
3070
- ]
2999
+ ],
3000
+ "attributes": [
3001
+ {
3002
+ "name": "placeholder",
3003
+ "type": {
3004
+ "text": "string"
3005
+ },
3006
+ "default": "'Describe your search criteria in natural language...'",
3007
+ "fieldName": "placeholder"
3008
+ },
3009
+ {
3010
+ "type": {
3011
+ "text": "boolean"
3012
+ },
3013
+ "fieldName": "disabled"
3014
+ }
3015
+ ],
3016
+ "superclass": {
3017
+ "name": "FoundationElement",
3018
+ "package": "@microsoft/fast-foundation"
3019
+ },
3020
+ "tagName": "%%prefix%%-ai-criteria-search",
3021
+ "customElement": true
3071
3022
  },
3072
3023
  {
3073
3024
  "kind": "variable",
3074
- "name": "foundationAccordionShadowOptions",
3025
+ "name": "foundationAiCriteriaSearchShadowOptions",
3075
3026
  "type": {
3076
3027
  "text": "ShadowRootInit"
3077
3028
  },
3078
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3029
+ "default": "undefined"
3079
3030
  },
3080
3031
  {
3081
3032
  "kind": "variable",
3082
- "name": "defaultAccordionConfig",
3033
+ "name": "defaultAiCriteriaSearchConfig",
3083
3034
  "type": {
3084
3035
  "text": "object"
3085
3036
  },
@@ -3087,57 +3038,103 @@
3087
3038
  },
3088
3039
  {
3089
3040
  "kind": "variable",
3090
- "name": "foundationAccordion",
3091
- "description": "The Foundation Accordion",
3092
- "privacy": "public"
3041
+ "name": "foundationAiCriteriaSearch"
3093
3042
  }
3094
3043
  ],
3095
3044
  "exports": [
3096
3045
  {
3097
3046
  "kind": "js",
3098
- "name": "Accordion",
3047
+ "name": "AiCriteriaSearch",
3099
3048
  "declaration": {
3100
- "name": "Accordion",
3101
- "module": "src/accordion/accordion.ts"
3049
+ "name": "AiCriteriaSearch",
3050
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3102
3051
  }
3103
3052
  },
3104
3053
  {
3105
3054
  "kind": "js",
3106
- "name": "foundationAccordionShadowOptions",
3055
+ "name": "foundationAiCriteriaSearchShadowOptions",
3107
3056
  "declaration": {
3108
- "name": "foundationAccordionShadowOptions",
3109
- "module": "src/accordion/accordion.ts"
3057
+ "name": "foundationAiCriteriaSearchShadowOptions",
3058
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3110
3059
  }
3111
3060
  },
3112
3061
  {
3113
3062
  "kind": "js",
3114
- "name": "defaultAccordionConfig",
3063
+ "name": "defaultAiCriteriaSearchConfig",
3115
3064
  "declaration": {
3116
- "name": "defaultAccordionConfig",
3117
- "module": "src/accordion/accordion.ts"
3065
+ "name": "defaultAiCriteriaSearchConfig",
3066
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3118
3067
  }
3119
3068
  },
3120
3069
  {
3121
3070
  "kind": "js",
3122
- "name": "foundationAccordion",
3071
+ "name": "foundationAiCriteriaSearch",
3123
3072
  "declaration": {
3124
- "name": "foundationAccordion",
3125
- "module": "src/accordion/accordion.ts"
3073
+ "name": "foundationAiCriteriaSearch",
3074
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3126
3075
  }
3127
3076
  }
3128
3077
  ]
3129
3078
  },
3130
3079
  {
3131
3080
  "kind": "javascript-module",
3132
- "path": "src/accordion/index.ts",
3081
+ "path": "src/ai-criteria-search/index.ts",
3133
3082
  "declarations": [],
3134
3083
  "exports": [
3084
+ {
3085
+ "kind": "js",
3086
+ "name": "AiCriteriaSearch",
3087
+ "declaration": {
3088
+ "name": "AiCriteriaSearch",
3089
+ "module": "./ai-criteria-search"
3090
+ }
3091
+ },
3092
+ {
3093
+ "kind": "js",
3094
+ "name": "defaultAiCriteriaSearchConfig",
3095
+ "declaration": {
3096
+ "name": "defaultAiCriteriaSearchConfig",
3097
+ "module": "./ai-criteria-search"
3098
+ }
3099
+ },
3100
+ {
3101
+ "kind": "js",
3102
+ "name": "foundationAiCriteriaSearch",
3103
+ "declaration": {
3104
+ "name": "foundationAiCriteriaSearch",
3105
+ "module": "./ai-criteria-search"
3106
+ }
3107
+ },
3108
+ {
3109
+ "kind": "js",
3110
+ "name": "foundationAiCriteriaSearchShadowOptions",
3111
+ "declaration": {
3112
+ "name": "foundationAiCriteriaSearchShadowOptions",
3113
+ "module": "./ai-criteria-search"
3114
+ }
3115
+ },
3116
+ {
3117
+ "kind": "js",
3118
+ "name": "foundationAiCriteriaSearchStyles",
3119
+ "declaration": {
3120
+ "name": "foundationAiCriteriaSearchStyles",
3121
+ "module": "./ai-criteria-search.styles"
3122
+ }
3123
+ },
3124
+ {
3125
+ "kind": "js",
3126
+ "name": "foundationAiCriteriaSearchTemplate",
3127
+ "declaration": {
3128
+ "name": "foundationAiCriteriaSearchTemplate",
3129
+ "module": "./ai-criteria-search.template"
3130
+ }
3131
+ },
3135
3132
  {
3136
3133
  "kind": "js",
3137
3134
  "name": "*",
3138
3135
  "declaration": {
3139
3136
  "name": "*",
3140
- "package": "./accordion.template"
3137
+ "package": "./validation/criteria-ir"
3141
3138
  }
3142
3139
  },
3143
3140
  {
@@ -3145,7 +3142,7 @@
3145
3142
  "name": "*",
3146
3143
  "declaration": {
3147
3144
  "name": "*",
3148
- "package": "./accordion.styles"
3145
+ "package": "./validation/operator-map"
3149
3146
  }
3150
3147
  },
3151
3148
  {
@@ -3153,7 +3150,82 @@
3153
3150
  "name": "*",
3154
3151
  "declaration": {
3155
3152
  "name": "*",
3156
- "package": "./accordion"
3153
+ "package": "./validation/schema-validator"
3154
+ }
3155
+ }
3156
+ ]
3157
+ },
3158
+ {
3159
+ "kind": "javascript-module",
3160
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3161
+ "declarations": [
3162
+ {
3163
+ "kind": "function",
3164
+ "name": "formatValidationErrors",
3165
+ "return": {
3166
+ "type": {
3167
+ "text": "string"
3168
+ }
3169
+ },
3170
+ "parameters": [
3171
+ {
3172
+ "name": "errors",
3173
+ "type": {
3174
+ "text": "ValidationError[]"
3175
+ }
3176
+ }
3177
+ ],
3178
+ "description": "Formats validation errors into a user-friendly message."
3179
+ },
3180
+ {
3181
+ "kind": "function",
3182
+ "name": "showCriteriaError",
3183
+ "return": {
3184
+ "type": {
3185
+ "text": "void"
3186
+ }
3187
+ },
3188
+ "parameters": [
3189
+ {
3190
+ "name": "title",
3191
+ "type": {
3192
+ "text": "string"
3193
+ },
3194
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3195
+ },
3196
+ {
3197
+ "name": "body",
3198
+ "type": {
3199
+ "text": "string"
3200
+ },
3201
+ "description": "Error message to display"
3202
+ },
3203
+ {
3204
+ "name": "tagName",
3205
+ "type": {
3206
+ "text": "string"
3207
+ },
3208
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3209
+ }
3210
+ ],
3211
+ "description": "Shows a criteria error as a toast notification."
3212
+ }
3213
+ ],
3214
+ "exports": [
3215
+ {
3216
+ "kind": "js",
3217
+ "name": "formatValidationErrors",
3218
+ "declaration": {
3219
+ "name": "formatValidationErrors",
3220
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3221
+ }
3222
+ },
3223
+ {
3224
+ "kind": "js",
3225
+ "name": "showCriteriaError",
3226
+ "declaration": {
3227
+ "name": "showCriteriaError",
3228
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3157
3229
  }
3158
3230
  }
3159
3231
  ]
@@ -3609,83 +3681,159 @@
3609
3681
  },
3610
3682
  {
3611
3683
  "kind": "javascript-module",
3612
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3684
+ "path": "src/_common/affix-mixin.ts",
3613
3685
  "declarations": [
3614
3686
  {
3615
- "kind": "variable",
3616
- "name": "foundationAiCriteriaSearchStyles",
3617
- "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`"
3687
+ "kind": "mixin",
3688
+ "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.",
3689
+ "name": "AffixMixin",
3690
+ "members": [
3691
+ {
3692
+ "kind": "field",
3693
+ "name": "prefix",
3694
+ "type": {
3695
+ "text": "string"
3696
+ },
3697
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
3698
+ },
3699
+ {
3700
+ "kind": "field",
3701
+ "name": "suffix",
3702
+ "type": {
3703
+ "text": "string"
3704
+ },
3705
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
3706
+ },
3707
+ {
3708
+ "kind": "field",
3709
+ "name": "hideAffixFromScreenReader",
3710
+ "type": {
3711
+ "text": "boolean"
3712
+ },
3713
+ "default": "false",
3714
+ "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."
3715
+ }
3716
+ ],
3717
+ "parameters": [
3718
+ {
3719
+ "name": "Base",
3720
+ "type": {
3721
+ "text": "TBase"
3722
+ }
3723
+ }
3724
+ ]
3618
3725
  }
3619
3726
  ],
3620
3727
  "exports": [
3621
3728
  {
3622
3729
  "kind": "js",
3623
- "name": "foundationAiCriteriaSearchStyles",
3730
+ "name": "AffixMixin",
3624
3731
  "declaration": {
3625
- "name": "foundationAiCriteriaSearchStyles",
3626
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3732
+ "name": "AffixMixin",
3733
+ "module": "src/_common/affix-mixin.ts"
3627
3734
  }
3628
3735
  }
3629
3736
  ]
3630
3737
  },
3631
3738
  {
3632
3739
  "kind": "javascript-module",
3633
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3740
+ "path": "src/_common/alert-flash-clock.ts",
3634
3741
  "declarations": [
3635
3742
  {
3636
3743
  "kind": "variable",
3637
- "name": "foundationAiCriteriaSearchTemplate",
3744
+ "name": "alertFlashPhaseProperty",
3638
3745
  "type": {
3639
- "text": "ViewTemplate<AiCriteriaSearch>"
3746
+ "text": "string"
3640
3747
  },
3641
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3748
+ "default": "'--alert-flash-t'",
3749
+ "description": "Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.\n\nAlerting surfaces sample this rather than running animations of their own, because independent\nCSS animations start whenever their element started and drift apart. Registered as an\ninheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside\na component's shadow DOM stays in step with a tab header in the light DOM.",
3750
+ "privacy": "public"
3751
+ },
3752
+ {
3753
+ "kind": "variable",
3754
+ "name": "alertFlashDurationProperty",
3755
+ "type": {
3756
+ "text": "string"
3757
+ },
3758
+ "default": "'--alert-flash-duration'",
3759
+ "description": "Custom property setting how long one flash cycle takes. Set it on `:root` to retime every\nalerting surface at once.",
3760
+ "privacy": "public"
3761
+ },
3762
+ {
3763
+ "kind": "function",
3764
+ "name": "installAlertFlashClock",
3765
+ "return": {
3766
+ "type": {
3767
+ "text": "void"
3768
+ }
3769
+ },
3770
+ "description": "Starts the document-level clock that alert flashes sample.\n\nSafe to call repeatedly and from any number of components — the first call does the work. Called\nautomatically by the components that flash, so apps only need this to start the clock earlier.\n\nDoes nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which\nleaves alerting surfaces on their static fallback colour rather than breaking them.",
3771
+ "privacy": "public"
3642
3772
  }
3643
3773
  ],
3644
3774
  "exports": [
3645
3775
  {
3646
3776
  "kind": "js",
3647
- "name": "foundationAiCriteriaSearchTemplate",
3777
+ "name": "alertFlashPhaseProperty",
3648
3778
  "declaration": {
3649
- "name": "foundationAiCriteriaSearchTemplate",
3650
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3779
+ "name": "alertFlashPhaseProperty",
3780
+ "module": "src/_common/alert-flash-clock.ts"
3781
+ }
3782
+ },
3783
+ {
3784
+ "kind": "js",
3785
+ "name": "alertFlashDurationProperty",
3786
+ "declaration": {
3787
+ "name": "alertFlashDurationProperty",
3788
+ "module": "src/_common/alert-flash-clock.ts"
3789
+ }
3790
+ },
3791
+ {
3792
+ "kind": "js",
3793
+ "name": "installAlertFlashClock",
3794
+ "declaration": {
3795
+ "name": "installAlertFlashClock",
3796
+ "module": "src/_common/alert-flash-clock.ts"
3651
3797
  }
3652
3798
  }
3653
3799
  ]
3654
3800
  },
3655
3801
  {
3656
3802
  "kind": "javascript-module",
3657
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3803
+ "path": "src/_common/base-file-component.ts",
3658
3804
  "declarations": [
3659
3805
  {
3660
3806
  "kind": "class",
3661
- "description": "Natural-language criteria search input with AI interpretation.",
3662
- "name": "AiCriteriaSearch",
3807
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
3808
+ "name": "BaseFileComponent",
3663
3809
  "members": [
3664
3810
  {
3665
3811
  "kind": "field",
3666
- "name": "providerRegistry",
3812
+ "name": "fileInput",
3667
3813
  "type": {
3668
- "text": "AIProviderRegistry"
3669
- }
3814
+ "text": "HTMLInputElement"
3815
+ },
3816
+ "privacy": "public"
3670
3817
  },
3671
3818
  {
3672
3819
  "kind": "field",
3673
- "name": "placeholder",
3820
+ "name": "selectedFile",
3674
3821
  "type": {
3675
- "text": "string"
3822
+ "text": "File | null"
3676
3823
  },
3677
- "default": "'Describe your search criteria in natural language...'"
3824
+ "privacy": "protected",
3825
+ "default": "null"
3678
3826
  },
3679
3827
  {
3680
3828
  "kind": "field",
3681
- "name": "disabled",
3829
+ "name": "label",
3682
3830
  "type": {
3683
- "text": "boolean"
3831
+ "text": "string"
3684
3832
  }
3685
3833
  },
3686
3834
  {
3687
3835
  "kind": "field",
3688
- "name": "inputValue",
3836
+ "name": "accept",
3689
3837
  "type": {
3690
3838
  "text": "string"
3691
3839
  },
@@ -3693,173 +3841,118 @@
3693
3841
  },
3694
3842
  {
3695
3843
  "kind": "field",
3696
- "name": "isInterpreting",
3697
- "type": {
3698
- "text": "boolean"
3699
- },
3700
- "default": "false"
3701
- },
3702
- {
3703
- "kind": "field",
3704
- "name": "lastValidCriteria",
3705
- "type": {
3706
- "text": "string | null"
3707
- },
3708
- "default": "null"
3709
- },
3710
- {
3711
- "kind": "field",
3712
- "name": "activeGroups",
3713
- "type": {
3714
- "text": "CriteriaGroup[]"
3715
- },
3716
- "default": "[]"
3717
- },
3718
- {
3719
- "kind": "field",
3720
- "name": "showingChips",
3844
+ "name": "fileSizeLimitBytes",
3845
+ "default": "10_485_760",
3721
3846
  "type": {
3722
- "text": "boolean"
3723
- },
3724
- "default": "false"
3847
+ "text": "number"
3848
+ }
3725
3849
  },
3726
3850
  {
3727
3851
  "kind": "field",
3728
- "name": "fieldMetadata",
3852
+ "name": "fileName",
3729
3853
  "type": {
3730
- "text": "MetadataDetail[] | string[]"
3854
+ "text": "string"
3731
3855
  },
3732
- "default": "[]"
3856
+ "default": "''"
3733
3857
  },
3734
3858
  {
3735
3859
  "kind": "field",
3736
- "name": "isRecording",
3860
+ "name": "isProcessing",
3737
3861
  "type": {
3738
3862
  "text": "boolean"
3739
3863
  },
3740
3864
  "default": "false"
3741
3865
  },
3742
3866
  {
3743
- "kind": "field",
3744
- "name": "textAreaRef",
3745
- "type": {
3746
- "text": "HTMLTextAreaElement"
3747
- },
3748
- "privacy": "public"
3749
- },
3750
- {
3751
- "kind": "field",
3752
- "name": "stopRecording",
3753
- "type": {
3754
- "text": "(() => void) | null"
3755
- },
3756
- "privacy": "private",
3757
- "default": "null"
3758
- },
3759
- {
3760
- "kind": "field",
3761
- "name": "speechApplyDebounceTimer",
3762
- "type": {
3763
- "text": "ReturnType<typeof setTimeout> | null"
3764
- },
3765
- "privacy": "private",
3766
- "default": "null"
3767
- },
3768
- {
3769
- "kind": "field",
3770
- "name": "speechAvailable",
3771
- "type": {
3772
- "text": "boolean"
3773
- },
3774
- "readonly": true
3775
- },
3776
- {
3777
- "kind": "field",
3778
- "name": "criteriaChips",
3779
- "type": {
3780
- "text": "CriteriaChip[]"
3781
- },
3782
- "readonly": true
3867
+ "kind": "method",
3868
+ "name": "handleClick",
3869
+ "privacy": "public",
3870
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
3783
3871
  },
3784
3872
  {
3785
3873
  "kind": "method",
3786
- "name": "getFieldLabel",
3787
- "privacy": "private",
3788
- "return": {
3789
- "type": {
3790
- "text": "string"
3791
- }
3792
- },
3874
+ "name": "onInputChange",
3875
+ "privacy": "public",
3793
3876
  "parameters": [
3794
3877
  {
3795
- "name": "fieldName",
3878
+ "name": "e",
3796
3879
  "type": {
3797
- "text": "string"
3798
- }
3880
+ "text": "Event"
3881
+ },
3882
+ "description": "The change event from the file input"
3799
3883
  }
3800
- ]
3884
+ ],
3885
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
3801
3886
  },
3802
3887
  {
3803
3888
  "kind": "method",
3804
- "name": "toggleCriteriaView",
3889
+ "name": "clearSelection",
3890
+ "privacy": "public",
3891
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
3892
+ },
3893
+ {
3894
+ "kind": "method",
3895
+ "name": "getSelectedFile",
3896
+ "privacy": "public",
3897
+ "description": "Gets the currently selected file object",
3805
3898
  "return": {
3806
3899
  "type": {
3807
- "text": "void"
3900
+ "text": ""
3808
3901
  }
3809
3902
  }
3810
3903
  },
3811
3904
  {
3812
3905
  "kind": "method",
3813
- "name": "removeChip",
3814
- "return": {
3815
- "type": {
3816
- "text": "void"
3817
- }
3818
- },
3906
+ "name": "showError",
3907
+ "privacy": "protected",
3819
3908
  "parameters": [
3820
3909
  {
3821
- "name": "groupIndex",
3910
+ "name": "title",
3822
3911
  "type": {
3823
- "text": "number"
3824
- }
3912
+ "text": "string"
3913
+ },
3914
+ "description": "The error title"
3825
3915
  },
3826
3916
  {
3827
- "name": "clauseIndex",
3917
+ "name": "message",
3828
3918
  "type": {
3829
- "text": "number"
3830
- }
3919
+ "text": "string"
3920
+ },
3921
+ "description": "The error message"
3831
3922
  }
3832
- ]
3923
+ ],
3924
+ "description": "Shows an error notification using the unified error handling system"
3833
3925
  },
3834
3926
  {
3835
3927
  "kind": "method",
3836
- "name": "clearChips",
3928
+ "name": "onFileSelected",
3929
+ "privacy": "protected",
3837
3930
  "return": {
3838
3931
  "type": {
3839
3932
  "text": "void"
3840
3933
  }
3841
- }
3842
- },
3843
- {
3844
- "kind": "method",
3845
- "name": "handleSubmit"
3846
- },
3847
- {
3848
- "kind": "method",
3849
- "name": "handleBlur"
3850
- },
3851
- {
3852
- "kind": "method",
3853
- "name": "clear"
3854
- },
3855
- {
3856
- "kind": "method",
3857
- "name": "toggleSpeechInput"
3934
+ },
3935
+ "parameters": [
3936
+ {
3937
+ "name": "files",
3938
+ "type": {
3939
+ "text": "File[]"
3940
+ },
3941
+ "description": "The selected file"
3942
+ }
3943
+ ],
3944
+ "description": "Abstract method called when a file is selected"
3858
3945
  },
3859
3946
  {
3860
3947
  "kind": "method",
3861
- "name": "clearSpeechApplyDebounce",
3862
- "privacy": "private"
3948
+ "name": "onFileCleared",
3949
+ "privacy": "protected",
3950
+ "return": {
3951
+ "type": {
3952
+ "text": "void"
3953
+ }
3954
+ },
3955
+ "description": "Abstract method called when file selection is cleared"
3863
3956
  },
3864
3957
  {
3865
3958
  "kind": "field",
@@ -3975,152 +4068,118 @@
3975
4068
  ],
3976
4069
  "events": [
3977
4070
  {
3978
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3979
- "name": "criteria-changed"
4071
+ "description": "Fired when file size validation fails. detail: `Error`",
4072
+ "name": "error"
3980
4073
  },
3981
4074
  {
3982
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3983
- "name": "validation-errors"
4075
+ "description": "Fired when selection is cleared",
4076
+ "name": "clear"
3984
4077
  }
3985
4078
  ],
3986
4079
  "attributes": [
3987
4080
  {
3988
- "name": "placeholder",
4081
+ "name": "label",
3989
4082
  "type": {
3990
4083
  "text": "string"
3991
4084
  },
3992
- "default": "'Describe your search criteria in natural language...'",
3993
- "fieldName": "placeholder"
4085
+ "fieldName": "label"
3994
4086
  },
3995
4087
  {
4088
+ "name": "accept",
3996
4089
  "type": {
3997
- "text": "boolean"
4090
+ "text": "string"
3998
4091
  },
3999
- "fieldName": "disabled"
4092
+ "default": "''",
4093
+ "fieldName": "accept"
4094
+ },
4095
+ {
4096
+ "name": "file-size-limit-bytes",
4097
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
4098
+ "resolveInitializer": {
4099
+ "module": "src/_common/base-file-component.ts"
4100
+ },
4101
+ "fieldName": "fileSizeLimitBytes"
4000
4102
  }
4001
4103
  ],
4002
4104
  "superclass": {
4003
4105
  "name": "FoundationElement",
4004
4106
  "package": "@microsoft/fast-foundation"
4005
- },
4006
- "tagName": "%%prefix%%-ai-criteria-search",
4007
- "customElement": true
4008
- },
4009
- {
4010
- "kind": "variable",
4011
- "name": "foundationAiCriteriaSearchShadowOptions",
4012
- "type": {
4013
- "text": "ShadowRootInit"
4014
- },
4015
- "default": "undefined"
4016
- },
4017
- {
4018
- "kind": "variable",
4019
- "name": "defaultAiCriteriaSearchConfig",
4020
- "type": {
4021
- "text": "object"
4022
- },
4023
- "default": "{}"
4024
- },
4025
- {
4026
- "kind": "variable",
4027
- "name": "foundationAiCriteriaSearch"
4107
+ }
4028
4108
  }
4029
4109
  ],
4030
4110
  "exports": [
4031
4111
  {
4032
4112
  "kind": "js",
4033
- "name": "AiCriteriaSearch",
4113
+ "name": "BaseFileComponent",
4034
4114
  "declaration": {
4035
- "name": "AiCriteriaSearch",
4036
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
4115
+ "name": "BaseFileComponent",
4116
+ "module": "src/_common/base-file-component.ts"
4037
4117
  }
4038
- },
4118
+ }
4119
+ ]
4120
+ },
4121
+ {
4122
+ "kind": "javascript-module",
4123
+ "path": "src/_common/field-styles.ts",
4124
+ "declarations": [
4039
4125
  {
4040
- "kind": "js",
4041
- "name": "foundationAiCriteriaSearchShadowOptions",
4042
- "declaration": {
4043
- "name": "foundationAiCriteriaSearchShadowOptions",
4044
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
4045
- }
4046
- },
4126
+ "kind": "variable",
4127
+ "name": "sharedFieldStyles",
4128
+ "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`"
4129
+ }
4130
+ ],
4131
+ "exports": [
4047
4132
  {
4048
4133
  "kind": "js",
4049
- "name": "defaultAiCriteriaSearchConfig",
4134
+ "name": "sharedFieldStyles",
4050
4135
  "declaration": {
4051
- "name": "defaultAiCriteriaSearchConfig",
4052
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
4136
+ "name": "sharedFieldStyles",
4137
+ "module": "src/_common/field-styles.ts"
4053
4138
  }
4054
- },
4139
+ }
4140
+ ]
4141
+ },
4142
+ {
4143
+ "kind": "javascript-module",
4144
+ "path": "src/_common/icons.ts",
4145
+ "declarations": [
4146
+ {
4147
+ "kind": "function",
4148
+ "name": "closeIcon",
4149
+ "parameters": [
4150
+ {
4151
+ "name": "slot",
4152
+ "default": "'start'"
4153
+ },
4154
+ {
4155
+ "name": "fill",
4156
+ "default": "'#879ba6'"
4157
+ }
4158
+ ]
4159
+ }
4160
+ ],
4161
+ "exports": [
4055
4162
  {
4056
4163
  "kind": "js",
4057
- "name": "foundationAiCriteriaSearch",
4164
+ "name": "closeIcon",
4058
4165
  "declaration": {
4059
- "name": "foundationAiCriteriaSearch",
4060
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
4166
+ "name": "closeIcon",
4167
+ "module": "src/_common/icons.ts"
4061
4168
  }
4062
4169
  }
4063
4170
  ]
4064
4171
  },
4065
4172
  {
4066
4173
  "kind": "javascript-module",
4067
- "path": "src/ai-criteria-search/index.ts",
4174
+ "path": "src/_common/index.ts",
4068
4175
  "declarations": [],
4069
4176
  "exports": [
4070
- {
4071
- "kind": "js",
4072
- "name": "AiCriteriaSearch",
4073
- "declaration": {
4074
- "name": "AiCriteriaSearch",
4075
- "module": "./ai-criteria-search"
4076
- }
4077
- },
4078
- {
4079
- "kind": "js",
4080
- "name": "defaultAiCriteriaSearchConfig",
4081
- "declaration": {
4082
- "name": "defaultAiCriteriaSearchConfig",
4083
- "module": "./ai-criteria-search"
4084
- }
4085
- },
4086
- {
4087
- "kind": "js",
4088
- "name": "foundationAiCriteriaSearch",
4089
- "declaration": {
4090
- "name": "foundationAiCriteriaSearch",
4091
- "module": "./ai-criteria-search"
4092
- }
4093
- },
4094
- {
4095
- "kind": "js",
4096
- "name": "foundationAiCriteriaSearchShadowOptions",
4097
- "declaration": {
4098
- "name": "foundationAiCriteriaSearchShadowOptions",
4099
- "module": "./ai-criteria-search"
4100
- }
4101
- },
4102
- {
4103
- "kind": "js",
4104
- "name": "foundationAiCriteriaSearchStyles",
4105
- "declaration": {
4106
- "name": "foundationAiCriteriaSearchStyles",
4107
- "module": "./ai-criteria-search.styles"
4108
- }
4109
- },
4110
- {
4111
- "kind": "js",
4112
- "name": "foundationAiCriteriaSearchTemplate",
4113
- "declaration": {
4114
- "name": "foundationAiCriteriaSearchTemplate",
4115
- "module": "./ai-criteria-search.template"
4116
- }
4117
- },
4118
4177
  {
4119
4178
  "kind": "js",
4120
4179
  "name": "*",
4121
4180
  "declaration": {
4122
4181
  "name": "*",
4123
- "package": "./validation/criteria-ir"
4182
+ "package": "./affix-mixin"
4124
4183
  }
4125
4184
  },
4126
4185
  {
@@ -4128,7 +4187,7 @@
4128
4187
  "name": "*",
4129
4188
  "declaration": {
4130
4189
  "name": "*",
4131
- "package": "./validation/operator-map"
4190
+ "package": "./alert-flash-clock"
4132
4191
  }
4133
4192
  },
4134
4193
  {
@@ -4136,82 +4195,23 @@
4136
4195
  "name": "*",
4137
4196
  "declaration": {
4138
4197
  "name": "*",
4139
- "package": "./validation/schema-validator"
4198
+ "package": "./base-file-component"
4140
4199
  }
4141
- }
4142
- ]
4143
- },
4144
- {
4145
- "kind": "javascript-module",
4146
- "path": "src/ai-criteria-search/validation-error-notification.ts",
4147
- "declarations": [
4148
- {
4149
- "kind": "function",
4150
- "name": "formatValidationErrors",
4151
- "return": {
4152
- "type": {
4153
- "text": "string"
4154
- }
4155
- },
4156
- "parameters": [
4157
- {
4158
- "name": "errors",
4159
- "type": {
4160
- "text": "ValidationError[]"
4161
- }
4162
- }
4163
- ],
4164
- "description": "Formats validation errors into a user-friendly message."
4165
4200
  },
4166
- {
4167
- "kind": "function",
4168
- "name": "showCriteriaError",
4169
- "return": {
4170
- "type": {
4171
- "text": "void"
4172
- }
4173
- },
4174
- "parameters": [
4175
- {
4176
- "name": "title",
4177
- "type": {
4178
- "text": "string"
4179
- },
4180
- "description": "Notification title (e.g. \"Criteria validation error\")"
4181
- },
4182
- {
4183
- "name": "body",
4184
- "type": {
4185
- "text": "string"
4186
- },
4187
- "description": "Error message to display"
4188
- },
4189
- {
4190
- "name": "tagName",
4191
- "type": {
4192
- "text": "string"
4193
- },
4194
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
4195
- }
4196
- ],
4197
- "description": "Shows a criteria error as a toast notification."
4198
- }
4199
- ],
4200
- "exports": [
4201
4201
  {
4202
4202
  "kind": "js",
4203
- "name": "formatValidationErrors",
4203
+ "name": "*",
4204
4204
  "declaration": {
4205
- "name": "formatValidationErrors",
4206
- "module": "src/ai-criteria-search/validation-error-notification.ts"
4205
+ "name": "*",
4206
+ "package": "./field-styles"
4207
4207
  }
4208
4208
  },
4209
4209
  {
4210
4210
  "kind": "js",
4211
- "name": "showCriteriaError",
4211
+ "name": "*",
4212
4212
  "declaration": {
4213
- "name": "showCriteriaError",
4214
- "module": "src/ai-criteria-search/validation-error-notification.ts"
4213
+ "name": "*",
4214
+ "package": "./icons"
4215
4215
  }
4216
4216
  }
4217
4217
  ]