@genesislcap/foundation-ui 15.23.1-agent-log-submit.1 → 15.23.1-agent-log-submit.2

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,27 +958,44 @@
958
958
  },
959
959
  {
960
960
  "kind": "javascript-module",
961
- "path": "src/accordion-item/accordion-item.styles.ts",
961
+ "path": "src/_common/affix-mixin.ts",
962
962
  "declarations": [
963
963
  {
964
- "kind": "function",
965
- "name": "foundationAccordionItemStyles",
966
- "return": {
967
- "type": {
968
- "text": "ElementStyles"
969
- }
970
- },
971
- "parameters": [
964
+ "kind": "mixin",
965
+ "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
966
+ "name": "AffixMixin",
967
+ "members": [
972
968
  {
973
- "name": "context",
969
+ "kind": "field",
970
+ "name": "prefix",
974
971
  "type": {
975
- "text": "ElementDefinitionContext"
976
- }
972
+ "text": "string"
973
+ },
974
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
977
975
  },
978
976
  {
979
- "name": "definition",
977
+ "kind": "field",
978
+ "name": "suffix",
980
979
  "type": {
981
- "text": "FoundationElementDefinition"
980
+ "text": "string"
981
+ },
982
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
983
+ },
984
+ {
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",
997
+ "type": {
998
+ "text": "TBase"
982
999
  }
983
1000
  }
984
1001
  ]
@@ -987,195 +1004,271 @@
987
1004
  "exports": [
988
1005
  {
989
1006
  "kind": "js",
990
- "name": "foundationAccordionItemStyles",
1007
+ "name": "AffixMixin",
991
1008
  "declaration": {
992
- "name": "foundationAccordionItemStyles",
993
- "module": "src/accordion-item/accordion-item.styles.ts"
1009
+ "name": "AffixMixin",
1010
+ "module": "src/_common/affix-mixin.ts"
994
1011
  }
995
1012
  }
996
1013
  ]
997
1014
  },
998
1015
  {
999
1016
  "kind": "javascript-module",
1000
- "path": "src/accordion-item/accordion-item.template.ts",
1017
+ "path": "src/_common/alert-flash-clock.ts",
1001
1018
  "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
+ },
1002
1039
  {
1003
1040
  "kind": "function",
1004
- "name": "foundationAccordionItemTemplate",
1041
+ "name": "installAlertFlashClock",
1005
1042
  "return": {
1006
1043
  "type": {
1007
- "text": "ViewTemplate<AccordionItem>"
1044
+ "text": "void"
1008
1045
  }
1009
1046
  },
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
- ]
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"
1024
1049
  }
1025
1050
  ],
1026
1051
  "exports": [
1027
1052
  {
1028
1053
  "kind": "js",
1029
- "name": "foundationAccordionItemTemplate",
1054
+ "name": "alertFlashPhaseProperty",
1030
1055
  "declaration": {
1031
- "name": "foundationAccordionItemTemplate",
1032
- "module": "src/accordion-item/accordion-item.template.ts"
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",
1071
+ "declaration": {
1072
+ "name": "installAlertFlashClock",
1073
+ "module": "src/_common/alert-flash-clock.ts"
1033
1074
  }
1034
1075
  }
1035
1076
  ]
1036
1077
  },
1037
1078
  {
1038
1079
  "kind": "javascript-module",
1039
- "path": "src/accordion-item/accordion-item.ts",
1080
+ "path": "src/_common/base-file-component.ts",
1040
1081
  "declarations": [
1041
1082
  {
1042
1083
  "kind": "class",
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": [
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": [
1052
1087
  {
1053
- "name": "heading-level",
1088
+ "kind": "field",
1089
+ "name": "fileInput",
1054
1090
  "type": {
1055
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1091
+ "text": "HTMLInputElement"
1056
1092
  },
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
- }
1093
+ "privacy": "public"
1064
1094
  },
1065
1095
  {
1096
+ "kind": "field",
1097
+ "name": "selectedFile",
1066
1098
  "type": {
1067
- "text": "boolean"
1099
+ "text": "File | null"
1068
1100
  },
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
- }
1101
+ "privacy": "protected",
1102
+ "default": "null"
1076
1103
  },
1077
1104
  {
1078
- "name": "id",
1105
+ "kind": "field",
1106
+ "name": "label",
1079
1107
  "type": {
1080
1108
  "text": "string"
1081
- },
1082
- "description": "The item ID",
1083
- "fieldName": "id",
1084
- "inheritedFrom": {
1085
- "name": "AccordionItem",
1086
- "module": "src/accordion-item/accordion-item.ts"
1087
1109
  }
1088
- }
1089
- ],
1090
- "members": [
1110
+ },
1091
1111
  {
1092
1112
  "kind": "field",
1093
- "name": "headinglevel",
1113
+ "name": "accept",
1094
1114
  "type": {
1095
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1115
+ "text": "string"
1096
1116
  },
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
- }
1117
+ "default": "''"
1104
1118
  },
1105
1119
  {
1106
1120
  "kind": "field",
1107
- "name": "expanded",
1121
+ "name": "fileSizeLimitBytes",
1122
+ "default": "10_485_760",
1108
1123
  "type": {
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"
1124
+ "text": "number"
1117
1125
  }
1118
1126
  },
1119
1127
  {
1120
1128
  "kind": "field",
1121
- "name": "id",
1129
+ "name": "fileName",
1122
1130
  "type": {
1123
1131
  "text": "string"
1124
1132
  },
1125
- "privacy": "public",
1126
- "description": "The item ID",
1127
- "inheritedFrom": {
1128
- "name": "AccordionItem",
1129
- "module": "src/accordion-item/accordion-item.ts"
1130
- }
1131
- },
1132
- {
1133
- "kind": "field",
1134
- "name": "change",
1135
- "privacy": "private",
1136
- "inheritedFrom": {
1137
- "name": "AccordionItem",
1138
- "module": "src/accordion-item/accordion-item.ts"
1139
- }
1133
+ "default": "''"
1140
1134
  },
1141
1135
  {
1142
1136
  "kind": "field",
1143
- "name": "_presentation",
1137
+ "name": "isProcessing",
1144
1138
  "type": {
1145
- "text": "ComponentPresentation | null | undefined"
1139
+ "text": "boolean"
1146
1140
  },
1147
- "privacy": "private",
1148
- "default": "void 0",
1149
- "inheritedFrom": {
1150
- "name": "FoundationElement",
1151
- "module": "src/foundation-element/foundation-element.ts"
1152
- }
1141
+ "default": "false"
1153
1142
  },
1154
1143
  {
1155
- "kind": "field",
1156
- "name": "$presentation",
1157
- "type": {
1158
- "text": "ComponentPresentation | null"
1159
- },
1144
+ "kind": "method",
1145
+ "name": "handleClick",
1160
1146
  "privacy": "public",
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
- }
1147
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1166
1148
  },
1167
1149
  {
1168
- "kind": "field",
1169
- "name": "template",
1170
- "type": {
1171
- "text": "ElementViewTemplate | void | null"
1172
- },
1150
+ "kind": "method",
1151
+ "name": "onInputChange",
1173
1152
  "privacy": "public",
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
- }
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
+ }
1179
1272
  },
1180
1273
  {
1181
1274
  "kind": "method",
@@ -1252,76 +1345,110 @@
1252
1345
  ],
1253
1346
  "events": [
1254
1347
  {
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
- }
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"
1261
1354
  }
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"
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"
1379
+ }
1380
+ ],
1381
+ "superclass": {
1382
+ "name": "FoundationElement",
1383
+ "package": "@microsoft/fast-foundation"
1384
+ }
1285
1385
  }
1286
1386
  ],
1287
1387
  "exports": [
1288
1388
  {
1289
1389
  "kind": "js",
1290
- "name": "AccordionItem",
1390
+ "name": "BaseFileComponent",
1291
1391
  "declaration": {
1292
- "name": "AccordionItem",
1293
- "module": "src/accordion-item/accordion-item.ts"
1392
+ "name": "BaseFileComponent",
1393
+ "module": "src/_common/base-file-component.ts"
1294
1394
  }
1295
- },
1395
+ }
1396
+ ]
1397
+ },
1398
+ {
1399
+ "kind": "javascript-module",
1400
+ "path": "src/_common/field-styles.ts",
1401
+ "declarations": [
1296
1402
  {
1297
- "kind": "js",
1298
- "name": "foundationAccordionItemShadowOptions",
1299
- "declaration": {
1300
- "name": "foundationAccordionItemShadowOptions",
1301
- "module": "src/accordion-item/accordion-item.ts"
1302
- }
1303
- },
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": [
1304
1409
  {
1305
1410
  "kind": "js",
1306
- "name": "defaultAccordionItemConfig",
1411
+ "name": "sharedFieldStyles",
1307
1412
  "declaration": {
1308
- "name": "defaultAccordionItemConfig",
1309
- "module": "src/accordion-item/accordion-item.ts"
1413
+ "name": "sharedFieldStyles",
1414
+ "module": "src/_common/field-styles.ts"
1310
1415
  }
1311
- },
1416
+ }
1417
+ ]
1418
+ },
1419
+ {
1420
+ "kind": "javascript-module",
1421
+ "path": "src/_common/icons.ts",
1422
+ "declarations": [
1423
+ {
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": [
1312
1439
  {
1313
1440
  "kind": "js",
1314
- "name": "foundationAccordionItem",
1441
+ "name": "closeIcon",
1315
1442
  "declaration": {
1316
- "name": "foundationAccordionItem",
1317
- "module": "src/accordion-item/accordion-item.ts"
1443
+ "name": "closeIcon",
1444
+ "module": "src/_common/icons.ts"
1318
1445
  }
1319
1446
  }
1320
1447
  ]
1321
1448
  },
1322
1449
  {
1323
1450
  "kind": "javascript-module",
1324
- "path": "src/accordion-item/index.ts",
1451
+ "path": "src/_common/index.ts",
1325
1452
  "declarations": [],
1326
1453
  "exports": [
1327
1454
  {
@@ -1329,7 +1456,7 @@
1329
1456
  "name": "*",
1330
1457
  "declaration": {
1331
1458
  "name": "*",
1332
- "package": "./accordion-item.template"
1459
+ "package": "./affix-mixin"
1333
1460
  }
1334
1461
  },
1335
1462
  {
@@ -1337,7 +1464,7 @@
1337
1464
  "name": "*",
1338
1465
  "declaration": {
1339
1466
  "name": "*",
1340
- "package": "./accordion-item.styles"
1467
+ "package": "./alert-flash-clock"
1341
1468
  }
1342
1469
  },
1343
1470
  {
@@ -1345,19 +1472,35 @@
1345
1472
  "name": "*",
1346
1473
  "declaration": {
1347
1474
  "name": "*",
1348
- "package": "./accordion-item"
1475
+ "package": "./base-file-component"
1349
1476
  }
1350
- }
1351
- ]
1352
- },
1353
- {
1354
- "kind": "javascript-module",
1355
- "path": "src/actions-menu/actions-menu.styles.ts",
1356
- "declarations": [
1477
+ },
1357
1478
  {
1358
- "kind": "function",
1359
- "name": "actionsMenuBaseStyles",
1360
- "return": {
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/actions-menu/actions-menu.styles.ts",
1499
+ "declarations": [
1500
+ {
1501
+ "kind": "function",
1502
+ "name": "actionsMenuBaseStyles",
1503
+ "return": {
1361
1504
  "type": {
1362
1505
  "text": "ElementStyles"
1363
1506
  }
@@ -1923,44 +2066,27 @@
1923
2066
  },
1924
2067
  {
1925
2068
  "kind": "javascript-module",
1926
- "path": "src/_common/affix-mixin.ts",
2069
+ "path": "src/accordion-item/accordion-item.styles.ts",
1927
2070
  "declarations": [
1928
2071
  {
1929
- "kind": "mixin",
1930
- "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.",
1931
- "name": "AffixMixin",
1932
- "members": [
1933
- {
1934
- "kind": "field",
1935
- "name": "prefix",
1936
- "type": {
1937
- "text": "string"
1938
- },
1939
- "description": "Optional non-editable label shown on the left inside the field, before the input."
1940
- },
2072
+ "kind": "function",
2073
+ "name": "foundationAccordionItemStyles",
2074
+ "return": {
2075
+ "type": {
2076
+ "text": "ElementStyles"
2077
+ }
2078
+ },
2079
+ "parameters": [
1941
2080
  {
1942
- "kind": "field",
1943
- "name": "suffix",
2081
+ "name": "context",
1944
2082
  "type": {
1945
- "text": "string"
1946
- },
1947
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
2083
+ "text": "ElementDefinitionContext"
2084
+ }
1948
2085
  },
1949
2086
  {
1950
- "kind": "field",
1951
- "name": "hideAffixFromScreenReader",
1952
- "type": {
1953
- "text": "boolean"
1954
- },
1955
- "default": "false",
1956
- "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."
1957
- }
1958
- ],
1959
- "parameters": [
1960
- {
1961
- "name": "Base",
2087
+ "name": "definition",
1962
2088
  "type": {
1963
- "text": "TBase"
2089
+ "text": "FoundationElementDefinition"
1964
2090
  }
1965
2091
  }
1966
2092
  ]
@@ -1969,232 +2095,156 @@
1969
2095
  "exports": [
1970
2096
  {
1971
2097
  "kind": "js",
1972
- "name": "AffixMixin",
2098
+ "name": "foundationAccordionItemStyles",
1973
2099
  "declaration": {
1974
- "name": "AffixMixin",
1975
- "module": "src/_common/affix-mixin.ts"
2100
+ "name": "foundationAccordionItemStyles",
2101
+ "module": "src/accordion-item/accordion-item.styles.ts"
1976
2102
  }
1977
2103
  }
1978
2104
  ]
1979
2105
  },
1980
2106
  {
1981
2107
  "kind": "javascript-module",
1982
- "path": "src/_common/alert-flash-clock.ts",
2108
+ "path": "src/accordion-item/accordion-item.template.ts",
1983
2109
  "declarations": [
1984
- {
1985
- "kind": "variable",
1986
- "name": "alertFlashPhaseProperty",
1987
- "type": {
1988
- "text": "string"
1989
- },
1990
- "default": "'--alert-flash-t'",
1991
- "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.",
1992
- "privacy": "public"
1993
- },
1994
- {
1995
- "kind": "variable",
1996
- "name": "alertFlashDurationProperty",
1997
- "type": {
1998
- "text": "string"
1999
- },
2000
- "default": "'--alert-flash-duration'",
2001
- "description": "Custom property setting how long one flash cycle takes. Set it on `:root` to retime every\nalerting surface at once.",
2002
- "privacy": "public"
2003
- },
2004
2110
  {
2005
2111
  "kind": "function",
2006
- "name": "installAlertFlashClock",
2112
+ "name": "foundationAccordionItemTemplate",
2007
2113
  "return": {
2008
2114
  "type": {
2009
- "text": "void"
2115
+ "text": "ViewTemplate<AccordionItem>"
2010
2116
  }
2011
2117
  },
2012
- "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.",
2013
- "privacy": "public"
2118
+ "parameters": [
2119
+ {
2120
+ "name": "context",
2121
+ "type": {
2122
+ "text": "ElementDefinitionContext"
2123
+ }
2124
+ },
2125
+ {
2126
+ "name": "definition",
2127
+ "type": {
2128
+ "text": "FoundationElementDefinition"
2129
+ }
2130
+ }
2131
+ ]
2014
2132
  }
2015
2133
  ],
2016
2134
  "exports": [
2017
2135
  {
2018
2136
  "kind": "js",
2019
- "name": "alertFlashPhaseProperty",
2020
- "declaration": {
2021
- "name": "alertFlashPhaseProperty",
2022
- "module": "src/_common/alert-flash-clock.ts"
2023
- }
2024
- },
2025
- {
2026
- "kind": "js",
2027
- "name": "alertFlashDurationProperty",
2028
- "declaration": {
2029
- "name": "alertFlashDurationProperty",
2030
- "module": "src/_common/alert-flash-clock.ts"
2031
- }
2032
- },
2033
- {
2034
- "kind": "js",
2035
- "name": "installAlertFlashClock",
2137
+ "name": "foundationAccordionItemTemplate",
2036
2138
  "declaration": {
2037
- "name": "installAlertFlashClock",
2038
- "module": "src/_common/alert-flash-clock.ts"
2139
+ "name": "foundationAccordionItemTemplate",
2140
+ "module": "src/accordion-item/accordion-item.template.ts"
2039
2141
  }
2040
2142
  }
2041
2143
  ]
2042
2144
  },
2043
2145
  {
2044
2146
  "kind": "javascript-module",
2045
- "path": "src/_common/base-file-component.ts",
2147
+ "path": "src/accordion-item/accordion-item.ts",
2046
2148
  "declarations": [
2047
2149
  {
2048
2150
  "kind": "class",
2049
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
2050
- "name": "BaseFileComponent",
2051
- "members": [
2151
+ "description": "",
2152
+ "name": "AccordionItem",
2153
+ "superclass": {
2154
+ "name": "FASTAccordionItem",
2155
+ "package": "@microsoft/fast-components"
2156
+ },
2157
+ "tagName": "%%prefix%%-accordion-item",
2158
+ "customElement": true,
2159
+ "attributes": [
2052
2160
  {
2053
- "kind": "field",
2054
- "name": "fileInput",
2161
+ "name": "heading-level",
2055
2162
  "type": {
2056
- "text": "HTMLInputElement"
2163
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2057
2164
  },
2058
- "privacy": "public"
2165
+ "default": "2",
2166
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2167
+ "fieldName": "headinglevel",
2168
+ "inheritedFrom": {
2169
+ "name": "AccordionItem",
2170
+ "module": "src/accordion-item/accordion-item.ts"
2171
+ }
2059
2172
  },
2060
2173
  {
2061
- "kind": "field",
2062
- "name": "selectedFile",
2063
2174
  "type": {
2064
- "text": "File | null"
2175
+ "text": "boolean"
2065
2176
  },
2066
- "privacy": "protected",
2067
- "default": "null"
2068
- },
2069
- {
2070
- "kind": "field",
2071
- "name": "label",
2072
- "type": {
2073
- "text": "string"
2177
+ "default": "false",
2178
+ "description": "Expands or collapses the item.",
2179
+ "fieldName": "expanded",
2180
+ "inheritedFrom": {
2181
+ "name": "AccordionItem",
2182
+ "module": "src/accordion-item/accordion-item.ts"
2074
2183
  }
2075
2184
  },
2076
2185
  {
2077
- "kind": "field",
2078
- "name": "accept",
2186
+ "name": "id",
2079
2187
  "type": {
2080
2188
  "text": "string"
2081
2189
  },
2082
- "default": "''"
2083
- },
2084
- {
2085
- "kind": "field",
2086
- "name": "fileSizeLimitBytes",
2087
- "default": "10_485_760",
2088
- "type": {
2089
- "text": "number"
2190
+ "description": "The item ID",
2191
+ "fieldName": "id",
2192
+ "inheritedFrom": {
2193
+ "name": "AccordionItem",
2194
+ "module": "src/accordion-item/accordion-item.ts"
2090
2195
  }
2091
- },
2196
+ }
2197
+ ],
2198
+ "members": [
2092
2199
  {
2093
2200
  "kind": "field",
2094
- "name": "fileName",
2201
+ "name": "headinglevel",
2095
2202
  "type": {
2096
- "text": "string"
2203
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2097
2204
  },
2098
- "default": "''"
2205
+ "privacy": "public",
2206
+ "default": "2",
2207
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2208
+ "inheritedFrom": {
2209
+ "name": "AccordionItem",
2210
+ "module": "src/accordion-item/accordion-item.ts"
2211
+ }
2099
2212
  },
2100
2213
  {
2101
2214
  "kind": "field",
2102
- "name": "isProcessing",
2215
+ "name": "expanded",
2103
2216
  "type": {
2104
2217
  "text": "boolean"
2105
2218
  },
2106
- "default": "false"
2107
- },
2108
- {
2109
- "kind": "method",
2110
- "name": "handleClick",
2111
2219
  "privacy": "public",
2112
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
2113
- },
2114
- {
2115
- "kind": "method",
2116
- "name": "onInputChange",
2117
- "privacy": "public",
2118
- "parameters": [
2119
- {
2120
- "name": "e",
2121
- "type": {
2122
- "text": "Event"
2123
- },
2124
- "description": "The change event from the file input"
2125
- }
2126
- ],
2127
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
2128
- },
2129
- {
2130
- "kind": "method",
2131
- "name": "clearSelection",
2132
- "privacy": "public",
2133
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
2134
- },
2135
- {
2136
- "kind": "method",
2137
- "name": "getSelectedFile",
2138
- "privacy": "public",
2139
- "description": "Gets the currently selected file object",
2140
- "return": {
2141
- "type": {
2142
- "text": ""
2143
- }
2144
- }
2145
- },
2146
- {
2147
- "kind": "method",
2148
- "name": "showError",
2149
- "privacy": "protected",
2150
- "parameters": [
2151
- {
2152
- "name": "title",
2153
- "type": {
2154
- "text": "string"
2155
- },
2156
- "description": "The error title"
2157
- },
2158
- {
2159
- "name": "message",
2160
- "type": {
2161
- "text": "string"
2162
- },
2163
- "description": "The error message"
2164
- }
2165
- ],
2166
- "description": "Shows an error notification using the unified error handling system"
2167
- },
2168
- {
2169
- "kind": "method",
2170
- "name": "onFileSelected",
2171
- "privacy": "protected",
2172
- "return": {
2173
- "type": {
2174
- "text": "void"
2175
- }
2176
- },
2177
- "parameters": [
2178
- {
2179
- "name": "files",
2180
- "type": {
2181
- "text": "File[]"
2182
- },
2183
- "description": "The selected file"
2184
- }
2185
- ],
2186
- "description": "Abstract method called when a file is selected"
2220
+ "default": "false",
2221
+ "description": "Expands or collapses the item.",
2222
+ "inheritedFrom": {
2223
+ "name": "AccordionItem",
2224
+ "module": "src/accordion-item/accordion-item.ts"
2225
+ }
2187
2226
  },
2188
2227
  {
2189
- "kind": "method",
2190
- "name": "onFileCleared",
2191
- "privacy": "protected",
2192
- "return": {
2193
- "type": {
2194
- "text": "void"
2195
- }
2228
+ "kind": "field",
2229
+ "name": "id",
2230
+ "type": {
2231
+ "text": "string"
2196
2232
  },
2197
- "description": "Abstract method called when file selection is cleared"
2233
+ "privacy": "public",
2234
+ "description": "The item ID",
2235
+ "inheritedFrom": {
2236
+ "name": "AccordionItem",
2237
+ "module": "src/accordion-item/accordion-item.ts"
2238
+ }
2239
+ },
2240
+ {
2241
+ "kind": "field",
2242
+ "name": "change",
2243
+ "privacy": "private",
2244
+ "inheritedFrom": {
2245
+ "name": "AccordionItem",
2246
+ "module": "src/accordion-item/accordion-item.ts"
2247
+ }
2198
2248
  },
2199
2249
  {
2200
2250
  "kind": "field",
@@ -2310,134 +2360,84 @@
2310
2360
  ],
2311
2361
  "events": [
2312
2362
  {
2313
- "description": "Fired when file size validation fails. detail: `Error`",
2314
- "name": "error"
2315
- },
2316
- {
2317
- "description": "Fired when selection is cleared",
2318
- "name": "clear"
2319
- }
2320
- ],
2321
- "attributes": [
2322
- {
2323
- "name": "label",
2324
- "type": {
2325
- "text": "string"
2326
- },
2327
- "fieldName": "label"
2328
- },
2329
- {
2330
- "name": "accept",
2331
- "type": {
2332
- "text": "string"
2333
- },
2334
- "default": "''",
2335
- "fieldName": "accept"
2336
- },
2337
- {
2338
- "name": "file-size-limit-bytes",
2339
- "default": "DEFAULT_FILE_SIZE_LIMIT",
2340
- "resolveInitializer": {
2341
- "module": "src/_common/base-file-component.ts"
2342
- },
2343
- "fieldName": "fileSizeLimitBytes"
2363
+ "description": "Fires a custom 'change' event when the button is invoked",
2364
+ "name": "change",
2365
+ "inheritedFrom": {
2366
+ "name": "AccordionItem",
2367
+ "module": "src/accordion-item/accordion-item.ts"
2368
+ }
2344
2369
  }
2345
- ],
2346
- "superclass": {
2347
- "name": "FoundationElement",
2348
- "package": "@microsoft/fast-foundation"
2349
- }
2350
- }
2351
- ],
2352
- "exports": [
2370
+ ]
2371
+ },
2353
2372
  {
2354
- "kind": "js",
2355
- "name": "BaseFileComponent",
2356
- "declaration": {
2357
- "name": "BaseFileComponent",
2358
- "module": "src/_common/base-file-component.ts"
2359
- }
2360
- }
2361
- ]
2362
- },
2363
- {
2364
- "kind": "javascript-module",
2365
- "path": "src/_common/field-styles.ts",
2366
- "declarations": [
2373
+ "kind": "variable",
2374
+ "name": "foundationAccordionItemShadowOptions",
2375
+ "type": {
2376
+ "text": "ShadowRootInit"
2377
+ },
2378
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2379
+ },
2367
2380
  {
2368
2381
  "kind": "variable",
2369
- "name": "sharedFieldStyles",
2370
- "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`"
2382
+ "name": "defaultAccordionItemConfig",
2383
+ "type": {
2384
+ "text": "object"
2385
+ },
2386
+ "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}"
2387
+ },
2388
+ {
2389
+ "kind": "variable",
2390
+ "name": "foundationAccordionItem",
2391
+ "description": "The Foundation Accordion Item",
2392
+ "privacy": "public"
2371
2393
  }
2372
2394
  ],
2373
2395
  "exports": [
2374
2396
  {
2375
2397
  "kind": "js",
2376
- "name": "sharedFieldStyles",
2398
+ "name": "AccordionItem",
2377
2399
  "declaration": {
2378
- "name": "sharedFieldStyles",
2379
- "module": "src/_common/field-styles.ts"
2400
+ "name": "AccordionItem",
2401
+ "module": "src/accordion-item/accordion-item.ts"
2380
2402
  }
2381
- }
2382
- ]
2383
- },
2384
- {
2385
- "kind": "javascript-module",
2386
- "path": "src/_common/icons.ts",
2387
- "declarations": [
2388
- {
2389
- "kind": "function",
2390
- "name": "closeIcon",
2391
- "parameters": [
2392
- {
2393
- "name": "slot",
2394
- "default": "'start'"
2395
- },
2396
- {
2397
- "name": "fill",
2398
- "default": "'#879ba6'"
2399
- }
2400
- ]
2401
- }
2402
- ],
2403
- "exports": [
2403
+ },
2404
2404
  {
2405
2405
  "kind": "js",
2406
- "name": "closeIcon",
2406
+ "name": "foundationAccordionItemShadowOptions",
2407
2407
  "declaration": {
2408
- "name": "closeIcon",
2409
- "module": "src/_common/icons.ts"
2408
+ "name": "foundationAccordionItemShadowOptions",
2409
+ "module": "src/accordion-item/accordion-item.ts"
2410
2410
  }
2411
- }
2412
- ]
2413
- },
2414
- {
2415
- "kind": "javascript-module",
2416
- "path": "src/_common/index.ts",
2417
- "declarations": [],
2418
- "exports": [
2411
+ },
2419
2412
  {
2420
2413
  "kind": "js",
2421
- "name": "*",
2414
+ "name": "defaultAccordionItemConfig",
2422
2415
  "declaration": {
2423
- "name": "*",
2424
- "package": "./affix-mixin"
2416
+ "name": "defaultAccordionItemConfig",
2417
+ "module": "src/accordion-item/accordion-item.ts"
2425
2418
  }
2426
2419
  },
2427
2420
  {
2428
2421
  "kind": "js",
2429
- "name": "*",
2422
+ "name": "foundationAccordionItem",
2430
2423
  "declaration": {
2431
- "name": "*",
2432
- "package": "./alert-flash-clock"
2424
+ "name": "foundationAccordionItem",
2425
+ "module": "src/accordion-item/accordion-item.ts"
2433
2426
  }
2434
- },
2427
+ }
2428
+ ]
2429
+ },
2430
+ {
2431
+ "kind": "javascript-module",
2432
+ "path": "src/accordion-item/index.ts",
2433
+ "declarations": [],
2434
+ "exports": [
2435
2435
  {
2436
2436
  "kind": "js",
2437
2437
  "name": "*",
2438
2438
  "declaration": {
2439
2439
  "name": "*",
2440
- "package": "./base-file-component"
2440
+ "package": "./accordion-item.template"
2441
2441
  }
2442
2442
  },
2443
2443
  {
@@ -2445,7 +2445,7 @@
2445
2445
  "name": "*",
2446
2446
  "declaration": {
2447
2447
  "name": "*",
2448
- "package": "./field-styles"
2448
+ "package": "./accordion-item.styles"
2449
2449
  }
2450
2450
  },
2451
2451
  {
@@ -2453,122 +2453,111 @@
2453
2453
  "name": "*",
2454
2454
  "declaration": {
2455
2455
  "name": "*",
2456
- "package": "./icons"
2456
+ "package": "./accordion-item"
2457
2457
  }
2458
2458
  }
2459
2459
  ]
2460
2460
  },
2461
2461
  {
2462
2462
  "kind": "javascript-module",
2463
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2463
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
2464
2464
  "declarations": [
2465
2465
  {
2466
- "kind": "variable",
2467
- "name": "foundationAiCriteriaSearchStyles",
2468
- "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`"
2466
+ "kind": "function",
2467
+ "name": "foundationAiIndicatorStyles",
2468
+ "return": {
2469
+ "type": {
2470
+ "text": "ElementStyles"
2471
+ }
2472
+ },
2473
+ "parameters": [
2474
+ {
2475
+ "name": "context",
2476
+ "type": {
2477
+ "text": "ElementDefinitionContext"
2478
+ }
2479
+ },
2480
+ {
2481
+ "name": "definition",
2482
+ "type": {
2483
+ "text": "FoundationElementDefinition"
2484
+ }
2485
+ }
2486
+ ]
2469
2487
  }
2470
2488
  ],
2471
2489
  "exports": [
2472
2490
  {
2473
2491
  "kind": "js",
2474
- "name": "foundationAiCriteriaSearchStyles",
2492
+ "name": "foundationAiIndicatorStyles",
2475
2493
  "declaration": {
2476
- "name": "foundationAiCriteriaSearchStyles",
2477
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2494
+ "name": "foundationAiIndicatorStyles",
2495
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
2478
2496
  }
2479
2497
  }
2480
2498
  ]
2481
2499
  },
2482
2500
  {
2483
2501
  "kind": "javascript-module",
2484
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2502
+ "path": "src/ai-indicator/ai-indicator.template.ts",
2485
2503
  "declarations": [
2486
2504
  {
2487
2505
  "kind": "variable",
2488
- "name": "foundationAiCriteriaSearchTemplate",
2506
+ "name": "foundationAiIndicatorTemplate",
2489
2507
  "type": {
2490
- "text": "ViewTemplate<AiCriteriaSearch>"
2508
+ "text": "ViewTemplate<AiIndicator>"
2491
2509
  },
2492
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2510
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2493
2511
  }
2494
2512
  ],
2495
2513
  "exports": [
2496
2514
  {
2497
2515
  "kind": "js",
2498
- "name": "foundationAiCriteriaSearchTemplate",
2516
+ "name": "foundationAiIndicatorTemplate",
2499
2517
  "declaration": {
2500
- "name": "foundationAiCriteriaSearchTemplate",
2501
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2518
+ "name": "foundationAiIndicatorTemplate",
2519
+ "module": "src/ai-indicator/ai-indicator.template.ts"
2502
2520
  }
2503
2521
  }
2504
2522
  ]
2505
2523
  },
2506
2524
  {
2507
2525
  "kind": "javascript-module",
2508
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2526
+ "path": "src/ai-indicator/ai-indicator.ts",
2509
2527
  "declarations": [
2510
2528
  {
2511
2529
  "kind": "class",
2512
- "description": "Natural-language criteria search input with AI interpretation.",
2513
- "name": "AiCriteriaSearch",
2530
+ "description": "",
2531
+ "name": "AiIndicator",
2514
2532
  "members": [
2515
2533
  {
2516
2534
  "kind": "field",
2517
- "name": "providerRegistry",
2518
- "type": {
2519
- "text": "AIProviderRegistry"
2520
- }
2521
- },
2522
- {
2523
- "kind": "field",
2524
- "name": "placeholder",
2525
- "type": {
2526
- "text": "string"
2527
- },
2528
- "default": "'Describe your search criteria in natural language...'"
2529
- },
2530
- {
2531
- "kind": "field",
2532
- "name": "disabled",
2533
- "type": {
2534
- "text": "boolean"
2535
- }
2536
- },
2537
- {
2538
- "kind": "field",
2539
- "name": "inputValue",
2535
+ "name": "providerRegistry",
2540
2536
  "type": {
2541
- "text": "string"
2542
- },
2543
- "default": "''"
2537
+ "text": "AIProviderRegistry"
2538
+ }
2544
2539
  },
2545
2540
  {
2546
2541
  "kind": "field",
2547
- "name": "isInterpreting",
2542
+ "name": "aiProvider",
2548
2543
  "type": {
2549
- "text": "boolean"
2544
+ "text": "AIProvider | undefined"
2550
2545
  },
2551
- "default": "false"
2546
+ "privacy": "private",
2547
+ "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
2548
+ "readonly": true
2552
2549
  },
2553
2550
  {
2554
2551
  "kind": "field",
2555
- "name": "lastValidCriteria",
2552
+ "name": "status",
2556
2553
  "type": {
2557
- "text": "string | null"
2554
+ "text": "AIStatus | null"
2558
2555
  },
2559
2556
  "default": "null"
2560
2557
  },
2561
2558
  {
2562
2559
  "kind": "field",
2563
- "name": "activeGroups",
2564
- "type": {
2565
- "text": "CriteriaGroup[]"
2566
- },
2567
- "default": "[]"
2568
- },
2569
- {
2570
- "kind": "field",
2571
- "name": "showingChips",
2560
+ "name": "open",
2572
2561
  "type": {
2573
2562
  "text": "boolean"
2574
2563
  },
@@ -2576,15 +2565,15 @@
2576
2565
  },
2577
2566
  {
2578
2567
  "kind": "field",
2579
- "name": "fieldMetadata",
2568
+ "name": "state",
2580
2569
  "type": {
2581
- "text": "MetadataDetail[] | string[]"
2570
+ "text": "AIIndicatorState"
2582
2571
  },
2583
- "default": "[]"
2572
+ "default": "'none'"
2584
2573
  },
2585
2574
  {
2586
2575
  "kind": "field",
2587
- "name": "isRecording",
2576
+ "name": "isInstalling",
2588
2577
  "type": {
2589
2578
  "text": "boolean"
2590
2579
  },
@@ -2592,33 +2581,29 @@
2592
2581
  },
2593
2582
  {
2594
2583
  "kind": "field",
2595
- "name": "textAreaRef",
2584
+ "name": "pollTimer",
2596
2585
  "type": {
2597
- "text": "HTMLTextAreaElement"
2586
+ "text": "ReturnType<typeof setInterval> | null"
2598
2587
  },
2599
- "privacy": "public"
2588
+ "privacy": "private",
2589
+ "default": "null"
2600
2590
  },
2601
2591
  {
2602
2592
  "kind": "field",
2603
- "name": "stopRecording",
2604
- "type": {
2605
- "text": "(() => void) | null"
2606
- },
2607
- "privacy": "private",
2608
- "default": "null"
2593
+ "name": "clickOutside",
2594
+ "privacy": "private"
2609
2595
  },
2610
2596
  {
2611
2597
  "kind": "field",
2612
- "name": "speechApplyDebounceTimer",
2598
+ "name": "chromeStatusLabel",
2613
2599
  "type": {
2614
- "text": "ReturnType<typeof setTimeout> | null"
2600
+ "text": "string | null"
2615
2601
  },
2616
- "privacy": "private",
2617
- "default": "null"
2602
+ "readonly": true
2618
2603
  },
2619
2604
  {
2620
2605
  "kind": "field",
2621
- "name": "speechAvailable",
2606
+ "name": "canInstall",
2622
2607
  "type": {
2623
2608
  "text": "boolean"
2624
2609
  },
@@ -2626,65 +2611,69 @@
2626
2611
  },
2627
2612
  {
2628
2613
  "kind": "field",
2629
- "name": "criteriaChips",
2614
+ "name": "isDownloading",
2630
2615
  "type": {
2631
- "text": "CriteriaChip[]"
2616
+ "text": "boolean"
2632
2617
  },
2633
2618
  "readonly": true
2634
2619
  },
2635
2620
  {
2636
2621
  "kind": "method",
2637
- "name": "getFieldLabel",
2638
- "privacy": "private",
2622
+ "name": "openChanged",
2639
2623
  "return": {
2640
2624
  "type": {
2641
- "text": "string"
2625
+ "text": "void"
2642
2626
  }
2643
- },
2627
+ }
2628
+ },
2629
+ {
2630
+ "kind": "method",
2631
+ "name": "handleClickOutside",
2632
+ "privacy": "private",
2644
2633
  "parameters": [
2645
2634
  {
2646
- "name": "fieldName",
2635
+ "name": "event",
2647
2636
  "type": {
2648
- "text": "string"
2637
+ "text": "MouseEvent"
2649
2638
  }
2650
2639
  }
2651
2640
  ]
2652
2641
  },
2653
2642
  {
2654
2643
  "kind": "method",
2655
- "name": "toggleCriteriaView",
2644
+ "name": "toggleDropdown"
2645
+ },
2646
+ {
2647
+ "kind": "method",
2648
+ "name": "refreshStatus",
2656
2649
  "return": {
2657
2650
  "type": {
2658
- "text": "void"
2651
+ "text": "Promise<void>"
2659
2652
  }
2660
2653
  }
2661
2654
  },
2662
2655
  {
2663
2656
  "kind": "method",
2664
- "name": "removeChip",
2657
+ "name": "deriveState",
2658
+ "privacy": "private",
2665
2659
  "return": {
2666
2660
  "type": {
2667
- "text": "void"
2661
+ "text": "AIIndicatorState"
2668
2662
  }
2669
2663
  },
2670
2664
  "parameters": [
2671
2665
  {
2672
- "name": "groupIndex",
2673
- "type": {
2674
- "text": "number"
2675
- }
2676
- },
2677
- {
2678
- "name": "clauseIndex",
2666
+ "name": "s",
2679
2667
  "type": {
2680
- "text": "number"
2668
+ "text": "AIStatus | null"
2681
2669
  }
2682
2670
  }
2683
2671
  ]
2684
2672
  },
2685
2673
  {
2686
2674
  "kind": "method",
2687
- "name": "clearChips",
2675
+ "name": "maybeStartPolling",
2676
+ "privacy": "private",
2688
2677
  "return": {
2689
2678
  "type": {
2690
2679
  "text": "void"
@@ -2693,24 +2682,32 @@
2693
2682
  },
2694
2683
  {
2695
2684
  "kind": "method",
2696
- "name": "handleSubmit"
2697
- },
2698
- {
2699
- "kind": "method",
2700
- "name": "handleBlur"
2701
- },
2702
- {
2703
- "kind": "method",
2704
- "name": "clear"
2685
+ "name": "startPolling",
2686
+ "privacy": "private",
2687
+ "return": {
2688
+ "type": {
2689
+ "text": "void"
2690
+ }
2691
+ }
2705
2692
  },
2706
2693
  {
2707
2694
  "kind": "method",
2708
- "name": "toggleSpeechInput"
2695
+ "name": "stopPolling",
2696
+ "privacy": "private",
2697
+ "return": {
2698
+ "type": {
2699
+ "text": "void"
2700
+ }
2701
+ }
2709
2702
  },
2710
2703
  {
2711
2704
  "kind": "method",
2712
- "name": "clearSpeechApplyDebounce",
2713
- "privacy": "private"
2705
+ "name": "onInstall",
2706
+ "return": {
2707
+ "type": {
2708
+ "text": "Promise<void>"
2709
+ }
2710
+ }
2714
2711
  },
2715
2712
  {
2716
2713
  "kind": "field",
@@ -2824,245 +2821,88 @@
2824
2821
  }
2825
2822
  }
2826
2823
  ],
2827
- "events": [
2828
- {
2829
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2830
- "name": "criteria-changed"
2831
- },
2832
- {
2833
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2834
- "name": "validation-errors"
2835
- }
2836
- ],
2837
- "attributes": [
2838
- {
2839
- "name": "placeholder",
2840
- "type": {
2841
- "text": "string"
2842
- },
2843
- "default": "'Describe your search criteria in natural language...'",
2844
- "fieldName": "placeholder"
2845
- },
2846
- {
2847
- "type": {
2848
- "text": "boolean"
2849
- },
2850
- "fieldName": "disabled"
2851
- }
2852
- ],
2853
2824
  "superclass": {
2854
2825
  "name": "FoundationElement",
2855
2826
  "package": "@microsoft/fast-foundation"
2856
2827
  },
2857
- "tagName": "%%prefix%%-ai-criteria-search",
2828
+ "tagName": "%%prefix%%-ai-indicator",
2858
2829
  "customElement": true
2859
2830
  },
2860
2831
  {
2861
2832
  "kind": "variable",
2862
- "name": "foundationAiCriteriaSearchShadowOptions",
2863
- "type": {
2864
- "text": "ShadowRootInit"
2865
- },
2866
- "default": "undefined"
2867
- },
2868
- {
2869
- "kind": "variable",
2870
- "name": "defaultAiCriteriaSearchConfig",
2871
- "type": {
2872
- "text": "object"
2873
- },
2874
- "default": "{}"
2875
- },
2876
- {
2877
- "kind": "variable",
2878
- "name": "foundationAiCriteriaSearch"
2833
+ "name": "foundationAiIndicator"
2879
2834
  }
2880
2835
  ],
2881
2836
  "exports": [
2882
2837
  {
2883
2838
  "kind": "js",
2884
- "name": "AiCriteriaSearch",
2885
- "declaration": {
2886
- "name": "AiCriteriaSearch",
2887
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2888
- }
2889
- },
2890
- {
2891
- "kind": "js",
2892
- "name": "foundationAiCriteriaSearchShadowOptions",
2893
- "declaration": {
2894
- "name": "foundationAiCriteriaSearchShadowOptions",
2895
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2896
- }
2897
- },
2898
- {
2899
- "kind": "js",
2900
- "name": "defaultAiCriteriaSearchConfig",
2839
+ "name": "AiIndicator",
2901
2840
  "declaration": {
2902
- "name": "defaultAiCriteriaSearchConfig",
2903
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2841
+ "name": "AiIndicator",
2842
+ "module": "src/ai-indicator/ai-indicator.ts"
2904
2843
  }
2905
2844
  },
2906
2845
  {
2907
2846
  "kind": "js",
2908
- "name": "foundationAiCriteriaSearch",
2847
+ "name": "foundationAiIndicator",
2909
2848
  "declaration": {
2910
- "name": "foundationAiCriteriaSearch",
2911
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2849
+ "name": "foundationAiIndicator",
2850
+ "module": "src/ai-indicator/ai-indicator.ts"
2912
2851
  }
2913
2852
  }
2914
2853
  ]
2915
2854
  },
2916
2855
  {
2917
2856
  "kind": "javascript-module",
2918
- "path": "src/ai-criteria-search/index.ts",
2857
+ "path": "src/ai-indicator/index.ts",
2919
2858
  "declarations": [],
2920
2859
  "exports": [
2921
2860
  {
2922
2861
  "kind": "js",
2923
- "name": "AiCriteriaSearch",
2924
- "declaration": {
2925
- "name": "AiCriteriaSearch",
2926
- "module": "./ai-criteria-search"
2927
- }
2928
- },
2929
- {
2930
- "kind": "js",
2931
- "name": "defaultAiCriteriaSearchConfig",
2932
- "declaration": {
2933
- "name": "defaultAiCriteriaSearchConfig",
2934
- "module": "./ai-criteria-search"
2935
- }
2936
- },
2937
- {
2938
- "kind": "js",
2939
- "name": "foundationAiCriteriaSearch",
2940
- "declaration": {
2941
- "name": "foundationAiCriteriaSearch",
2942
- "module": "./ai-criteria-search"
2943
- }
2944
- },
2945
- {
2946
- "kind": "js",
2947
- "name": "foundationAiCriteriaSearchShadowOptions",
2948
- "declaration": {
2949
- "name": "foundationAiCriteriaSearchShadowOptions",
2950
- "module": "./ai-criteria-search"
2951
- }
2952
- },
2953
- {
2954
- "kind": "js",
2955
- "name": "foundationAiCriteriaSearchStyles",
2956
- "declaration": {
2957
- "name": "foundationAiCriteriaSearchStyles",
2958
- "module": "./ai-criteria-search.styles"
2959
- }
2960
- },
2961
- {
2962
- "kind": "js",
2963
- "name": "foundationAiCriteriaSearchTemplate",
2862
+ "name": "AiIndicator",
2964
2863
  "declaration": {
2965
- "name": "foundationAiCriteriaSearchTemplate",
2966
- "module": "./ai-criteria-search.template"
2864
+ "name": "AiIndicator",
2865
+ "module": "./ai-indicator"
2967
2866
  }
2968
2867
  },
2969
2868
  {
2970
2869
  "kind": "js",
2971
- "name": "*",
2870
+ "name": "foundationAiIndicator",
2972
2871
  "declaration": {
2973
- "name": "*",
2974
- "package": "./validation/criteria-ir"
2872
+ "name": "foundationAiIndicator",
2873
+ "module": "./ai-indicator"
2975
2874
  }
2976
2875
  },
2977
2876
  {
2978
2877
  "kind": "js",
2979
- "name": "*",
2878
+ "name": "type",
2980
2879
  "declaration": {
2981
- "name": "*",
2982
- "package": "./validation/operator-map"
2880
+ "name": "type",
2881
+ "module": "./ai-indicator"
2983
2882
  }
2984
2883
  },
2985
2884
  {
2986
2885
  "kind": "js",
2987
- "name": "*",
2886
+ "name": "AIIndicatorState",
2988
2887
  "declaration": {
2989
- "name": "*",
2990
- "package": "./validation/schema-validator"
2888
+ "name": "AIIndicatorState",
2889
+ "module": "./ai-indicator"
2991
2890
  }
2992
- }
2993
- ]
2994
- },
2995
- {
2996
- "kind": "javascript-module",
2997
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2998
- "declarations": [
2999
- {
3000
- "kind": "function",
3001
- "name": "formatValidationErrors",
3002
- "return": {
3003
- "type": {
3004
- "text": "string"
3005
- }
3006
- },
3007
- "parameters": [
3008
- {
3009
- "name": "errors",
3010
- "type": {
3011
- "text": "ValidationError[]"
3012
- }
3013
- }
3014
- ],
3015
- "description": "Formats validation errors into a user-friendly message."
3016
2891
  },
3017
- {
3018
- "kind": "function",
3019
- "name": "showCriteriaError",
3020
- "return": {
3021
- "type": {
3022
- "text": "void"
3023
- }
3024
- },
3025
- "parameters": [
3026
- {
3027
- "name": "title",
3028
- "type": {
3029
- "text": "string"
3030
- },
3031
- "description": "Notification title (e.g. \"Criteria validation error\")"
3032
- },
3033
- {
3034
- "name": "body",
3035
- "type": {
3036
- "text": "string"
3037
- },
3038
- "description": "Error message to display"
3039
- },
3040
- {
3041
- "name": "tagName",
3042
- "type": {
3043
- "text": "string"
3044
- },
3045
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3046
- }
3047
- ],
3048
- "description": "Shows a criteria error as a toast notification."
3049
- }
3050
- ],
3051
- "exports": [
3052
2892
  {
3053
2893
  "kind": "js",
3054
- "name": "formatValidationErrors",
2894
+ "name": "foundationAiIndicatorTemplate",
3055
2895
  "declaration": {
3056
- "name": "formatValidationErrors",
3057
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2896
+ "name": "foundationAiIndicatorTemplate",
2897
+ "module": "./ai-indicator.template"
3058
2898
  }
3059
2899
  },
3060
2900
  {
3061
2901
  "kind": "js",
3062
- "name": "showCriteriaError",
2902
+ "name": "foundationAiIndicatorStyles",
3063
2903
  "declaration": {
3064
- "name": "showCriteriaError",
3065
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2904
+ "name": "foundationAiIndicatorStyles",
2905
+ "module": "./ai-indicator.styles"
3066
2906
  }
3067
2907
  }
3068
2908
  ]
@@ -3584,75 +3424,57 @@
3584
3424
  },
3585
3425
  {
3586
3426
  "kind": "javascript-module",
3587
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3427
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3588
3428
  "declarations": [
3589
3429
  {
3590
- "kind": "function",
3591
- "name": "foundationAiIndicatorStyles",
3592
- "return": {
3593
- "type": {
3594
- "text": "ElementStyles"
3595
- }
3596
- },
3597
- "parameters": [
3598
- {
3599
- "name": "context",
3600
- "type": {
3601
- "text": "ElementDefinitionContext"
3602
- }
3603
- },
3604
- {
3605
- "name": "definition",
3606
- "type": {
3607
- "text": "FoundationElementDefinition"
3608
- }
3609
- }
3610
- ]
3430
+ "kind": "variable",
3431
+ "name": "foundationAiCriteriaSearchStyles",
3432
+ "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`"
3611
3433
  }
3612
3434
  ],
3613
3435
  "exports": [
3614
3436
  {
3615
3437
  "kind": "js",
3616
- "name": "foundationAiIndicatorStyles",
3438
+ "name": "foundationAiCriteriaSearchStyles",
3617
3439
  "declaration": {
3618
- "name": "foundationAiIndicatorStyles",
3619
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3440
+ "name": "foundationAiCriteriaSearchStyles",
3441
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3620
3442
  }
3621
3443
  }
3622
3444
  ]
3623
3445
  },
3624
3446
  {
3625
3447
  "kind": "javascript-module",
3626
- "path": "src/ai-indicator/ai-indicator.template.ts",
3448
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3627
3449
  "declarations": [
3628
3450
  {
3629
3451
  "kind": "variable",
3630
- "name": "foundationAiIndicatorTemplate",
3452
+ "name": "foundationAiCriteriaSearchTemplate",
3631
3453
  "type": {
3632
- "text": "ViewTemplate<AiIndicator>"
3454
+ "text": "ViewTemplate<AiCriteriaSearch>"
3633
3455
  },
3634
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3456
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3635
3457
  }
3636
3458
  ],
3637
3459
  "exports": [
3638
3460
  {
3639
3461
  "kind": "js",
3640
- "name": "foundationAiIndicatorTemplate",
3462
+ "name": "foundationAiCriteriaSearchTemplate",
3641
3463
  "declaration": {
3642
- "name": "foundationAiIndicatorTemplate",
3643
- "module": "src/ai-indicator/ai-indicator.template.ts"
3464
+ "name": "foundationAiCriteriaSearchTemplate",
3465
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3644
3466
  }
3645
3467
  }
3646
3468
  ]
3647
3469
  },
3648
3470
  {
3649
3471
  "kind": "javascript-module",
3650
- "path": "src/ai-indicator/ai-indicator.ts",
3472
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3651
3473
  "declarations": [
3652
3474
  {
3653
3475
  "kind": "class",
3654
- "description": "",
3655
- "name": "AiIndicator",
3476
+ "description": "Natural-language criteria search input with AI interpretation.",
3477
+ "name": "AiCriteriaSearch",
3656
3478
  "members": [
3657
3479
  {
3658
3480
  "kind": "field",
@@ -3663,25 +3485,54 @@
3663
3485
  },
3664
3486
  {
3665
3487
  "kind": "field",
3666
- "name": "aiProvider",
3488
+ "name": "placeholder",
3667
3489
  "type": {
3668
- "text": "AIProvider | undefined"
3490
+ "text": "string"
3669
3491
  },
3670
- "privacy": "private",
3671
- "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3672
- "readonly": true
3492
+ "default": "'Describe your search criteria in natural language...'"
3673
3493
  },
3674
3494
  {
3675
3495
  "kind": "field",
3676
- "name": "status",
3496
+ "name": "disabled",
3677
3497
  "type": {
3678
- "text": "AIStatus | null"
3498
+ "text": "boolean"
3499
+ }
3500
+ },
3501
+ {
3502
+ "kind": "field",
3503
+ "name": "inputValue",
3504
+ "type": {
3505
+ "text": "string"
3506
+ },
3507
+ "default": "''"
3508
+ },
3509
+ {
3510
+ "kind": "field",
3511
+ "name": "isInterpreting",
3512
+ "type": {
3513
+ "text": "boolean"
3514
+ },
3515
+ "default": "false"
3516
+ },
3517
+ {
3518
+ "kind": "field",
3519
+ "name": "lastValidCriteria",
3520
+ "type": {
3521
+ "text": "string | null"
3679
3522
  },
3680
3523
  "default": "null"
3681
3524
  },
3682
3525
  {
3683
3526
  "kind": "field",
3684
- "name": "open",
3527
+ "name": "activeGroups",
3528
+ "type": {
3529
+ "text": "CriteriaGroup[]"
3530
+ },
3531
+ "default": "[]"
3532
+ },
3533
+ {
3534
+ "kind": "field",
3535
+ "name": "showingChips",
3685
3536
  "type": {
3686
3537
  "text": "boolean"
3687
3538
  },
@@ -3689,15 +3540,15 @@
3689
3540
  },
3690
3541
  {
3691
3542
  "kind": "field",
3692
- "name": "state",
3543
+ "name": "fieldMetadata",
3693
3544
  "type": {
3694
- "text": "AIIndicatorState"
3545
+ "text": "MetadataDetail[] | string[]"
3695
3546
  },
3696
- "default": "'none'"
3547
+ "default": "[]"
3697
3548
  },
3698
3549
  {
3699
3550
  "kind": "field",
3700
- "name": "isInstalling",
3551
+ "name": "isRecording",
3701
3552
  "type": {
3702
3553
  "text": "boolean"
3703
3554
  },
@@ -3705,29 +3556,33 @@
3705
3556
  },
3706
3557
  {
3707
3558
  "kind": "field",
3708
- "name": "pollTimer",
3559
+ "name": "textAreaRef",
3709
3560
  "type": {
3710
- "text": "ReturnType<typeof setInterval> | null"
3561
+ "text": "HTMLTextAreaElement"
3711
3562
  },
3712
- "privacy": "private",
3713
- "default": "null"
3563
+ "privacy": "public"
3714
3564
  },
3715
3565
  {
3716
3566
  "kind": "field",
3717
- "name": "clickOutside",
3718
- "privacy": "private"
3567
+ "name": "stopRecording",
3568
+ "type": {
3569
+ "text": "(() => void) | null"
3570
+ },
3571
+ "privacy": "private",
3572
+ "default": "null"
3719
3573
  },
3720
3574
  {
3721
3575
  "kind": "field",
3722
- "name": "chromeStatusLabel",
3576
+ "name": "speechApplyDebounceTimer",
3723
3577
  "type": {
3724
- "text": "string | null"
3578
+ "text": "ReturnType<typeof setTimeout> | null"
3725
3579
  },
3726
- "readonly": true
3580
+ "privacy": "private",
3581
+ "default": "null"
3727
3582
  },
3728
3583
  {
3729
3584
  "kind": "field",
3730
- "name": "canInstall",
3585
+ "name": "speechAvailable",
3731
3586
  "type": {
3732
3587
  "text": "boolean"
3733
3588
  },
@@ -3735,69 +3590,65 @@
3735
3590
  },
3736
3591
  {
3737
3592
  "kind": "field",
3738
- "name": "isDownloading",
3593
+ "name": "criteriaChips",
3739
3594
  "type": {
3740
- "text": "boolean"
3595
+ "text": "CriteriaChip[]"
3741
3596
  },
3742
3597
  "readonly": true
3743
3598
  },
3744
3599
  {
3745
3600
  "kind": "method",
3746
- "name": "openChanged",
3601
+ "name": "getFieldLabel",
3602
+ "privacy": "private",
3747
3603
  "return": {
3748
3604
  "type": {
3749
- "text": "void"
3605
+ "text": "string"
3750
3606
  }
3751
- }
3752
- },
3753
- {
3754
- "kind": "method",
3755
- "name": "handleClickOutside",
3756
- "privacy": "private",
3607
+ },
3757
3608
  "parameters": [
3758
3609
  {
3759
- "name": "event",
3610
+ "name": "fieldName",
3760
3611
  "type": {
3761
- "text": "MouseEvent"
3612
+ "text": "string"
3762
3613
  }
3763
3614
  }
3764
3615
  ]
3765
3616
  },
3766
3617
  {
3767
3618
  "kind": "method",
3768
- "name": "toggleDropdown"
3769
- },
3770
- {
3771
- "kind": "method",
3772
- "name": "refreshStatus",
3619
+ "name": "toggleCriteriaView",
3773
3620
  "return": {
3774
3621
  "type": {
3775
- "text": "Promise<void>"
3622
+ "text": "void"
3776
3623
  }
3777
3624
  }
3778
3625
  },
3779
3626
  {
3780
3627
  "kind": "method",
3781
- "name": "deriveState",
3782
- "privacy": "private",
3628
+ "name": "removeChip",
3783
3629
  "return": {
3784
3630
  "type": {
3785
- "text": "AIIndicatorState"
3631
+ "text": "void"
3786
3632
  }
3787
3633
  },
3788
3634
  "parameters": [
3789
3635
  {
3790
- "name": "s",
3636
+ "name": "groupIndex",
3791
3637
  "type": {
3792
- "text": "AIStatus | null"
3638
+ "text": "number"
3639
+ }
3640
+ },
3641
+ {
3642
+ "name": "clauseIndex",
3643
+ "type": {
3644
+ "text": "number"
3793
3645
  }
3794
3646
  }
3795
3647
  ]
3796
3648
  },
3797
3649
  {
3798
3650
  "kind": "method",
3799
- "name": "maybeStartPolling",
3800
- "privacy": "private",
3651
+ "name": "clearChips",
3801
3652
  "return": {
3802
3653
  "type": {
3803
3654
  "text": "void"
@@ -3806,32 +3657,24 @@
3806
3657
  },
3807
3658
  {
3808
3659
  "kind": "method",
3809
- "name": "startPolling",
3810
- "privacy": "private",
3811
- "return": {
3812
- "type": {
3813
- "text": "void"
3814
- }
3815
- }
3660
+ "name": "handleSubmit"
3816
3661
  },
3817
3662
  {
3818
3663
  "kind": "method",
3819
- "name": "stopPolling",
3820
- "privacy": "private",
3821
- "return": {
3822
- "type": {
3823
- "text": "void"
3824
- }
3825
- }
3664
+ "name": "handleBlur"
3826
3665
  },
3827
3666
  {
3828
3667
  "kind": "method",
3829
- "name": "onInstall",
3830
- "return": {
3831
- "type": {
3832
- "text": "Promise<void>"
3833
- }
3834
- }
3668
+ "name": "clear"
3669
+ },
3670
+ {
3671
+ "kind": "method",
3672
+ "name": "toggleSpeechInput"
3673
+ },
3674
+ {
3675
+ "kind": "method",
3676
+ "name": "clearSpeechApplyDebounce",
3677
+ "privacy": "private"
3835
3678
  },
3836
3679
  {
3837
3680
  "kind": "field",
@@ -3945,88 +3788,245 @@
3945
3788
  }
3946
3789
  }
3947
3790
  ],
3791
+ "events": [
3792
+ {
3793
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3794
+ "name": "criteria-changed"
3795
+ },
3796
+ {
3797
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3798
+ "name": "validation-errors"
3799
+ }
3800
+ ],
3801
+ "attributes": [
3802
+ {
3803
+ "name": "placeholder",
3804
+ "type": {
3805
+ "text": "string"
3806
+ },
3807
+ "default": "'Describe your search criteria in natural language...'",
3808
+ "fieldName": "placeholder"
3809
+ },
3810
+ {
3811
+ "type": {
3812
+ "text": "boolean"
3813
+ },
3814
+ "fieldName": "disabled"
3815
+ }
3816
+ ],
3948
3817
  "superclass": {
3949
3818
  "name": "FoundationElement",
3950
3819
  "package": "@microsoft/fast-foundation"
3951
3820
  },
3952
- "tagName": "%%prefix%%-ai-indicator",
3821
+ "tagName": "%%prefix%%-ai-criteria-search",
3953
3822
  "customElement": true
3954
3823
  },
3955
3824
  {
3956
3825
  "kind": "variable",
3957
- "name": "foundationAiIndicator"
3826
+ "name": "foundationAiCriteriaSearchShadowOptions",
3827
+ "type": {
3828
+ "text": "ShadowRootInit"
3829
+ },
3830
+ "default": "undefined"
3831
+ },
3832
+ {
3833
+ "kind": "variable",
3834
+ "name": "defaultAiCriteriaSearchConfig",
3835
+ "type": {
3836
+ "text": "object"
3837
+ },
3838
+ "default": "{}"
3839
+ },
3840
+ {
3841
+ "kind": "variable",
3842
+ "name": "foundationAiCriteriaSearch"
3958
3843
  }
3959
3844
  ],
3960
3845
  "exports": [
3961
3846
  {
3962
3847
  "kind": "js",
3963
- "name": "AiIndicator",
3848
+ "name": "AiCriteriaSearch",
3964
3849
  "declaration": {
3965
- "name": "AiIndicator",
3966
- "module": "src/ai-indicator/ai-indicator.ts"
3850
+ "name": "AiCriteriaSearch",
3851
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3967
3852
  }
3968
3853
  },
3969
3854
  {
3970
3855
  "kind": "js",
3971
- "name": "foundationAiIndicator",
3856
+ "name": "foundationAiCriteriaSearchShadowOptions",
3972
3857
  "declaration": {
3973
- "name": "foundationAiIndicator",
3974
- "module": "src/ai-indicator/ai-indicator.ts"
3858
+ "name": "foundationAiCriteriaSearchShadowOptions",
3859
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3860
+ }
3861
+ },
3862
+ {
3863
+ "kind": "js",
3864
+ "name": "defaultAiCriteriaSearchConfig",
3865
+ "declaration": {
3866
+ "name": "defaultAiCriteriaSearchConfig",
3867
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3868
+ }
3869
+ },
3870
+ {
3871
+ "kind": "js",
3872
+ "name": "foundationAiCriteriaSearch",
3873
+ "declaration": {
3874
+ "name": "foundationAiCriteriaSearch",
3875
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3975
3876
  }
3976
3877
  }
3977
3878
  ]
3978
3879
  },
3979
3880
  {
3980
3881
  "kind": "javascript-module",
3981
- "path": "src/ai-indicator/index.ts",
3882
+ "path": "src/ai-criteria-search/index.ts",
3982
3883
  "declarations": [],
3983
3884
  "exports": [
3984
3885
  {
3985
3886
  "kind": "js",
3986
- "name": "AiIndicator",
3887
+ "name": "AiCriteriaSearch",
3987
3888
  "declaration": {
3988
- "name": "AiIndicator",
3989
- "module": "./ai-indicator"
3889
+ "name": "AiCriteriaSearch",
3890
+ "module": "./ai-criteria-search"
3990
3891
  }
3991
3892
  },
3992
3893
  {
3993
3894
  "kind": "js",
3994
- "name": "foundationAiIndicator",
3895
+ "name": "defaultAiCriteriaSearchConfig",
3995
3896
  "declaration": {
3996
- "name": "foundationAiIndicator",
3997
- "module": "./ai-indicator"
3897
+ "name": "defaultAiCriteriaSearchConfig",
3898
+ "module": "./ai-criteria-search"
3998
3899
  }
3999
3900
  },
4000
3901
  {
4001
3902
  "kind": "js",
4002
- "name": "type",
3903
+ "name": "foundationAiCriteriaSearch",
4003
3904
  "declaration": {
4004
- "name": "type",
4005
- "module": "./ai-indicator"
3905
+ "name": "foundationAiCriteriaSearch",
3906
+ "module": "./ai-criteria-search"
4006
3907
  }
4007
3908
  },
4008
3909
  {
4009
3910
  "kind": "js",
4010
- "name": "AIIndicatorState",
3911
+ "name": "foundationAiCriteriaSearchShadowOptions",
4011
3912
  "declaration": {
4012
- "name": "AIIndicatorState",
4013
- "module": "./ai-indicator"
3913
+ "name": "foundationAiCriteriaSearchShadowOptions",
3914
+ "module": "./ai-criteria-search"
4014
3915
  }
4015
3916
  },
4016
3917
  {
4017
3918
  "kind": "js",
4018
- "name": "foundationAiIndicatorTemplate",
3919
+ "name": "foundationAiCriteriaSearchStyles",
4019
3920
  "declaration": {
4020
- "name": "foundationAiIndicatorTemplate",
4021
- "module": "./ai-indicator.template"
3921
+ "name": "foundationAiCriteriaSearchStyles",
3922
+ "module": "./ai-criteria-search.styles"
4022
3923
  }
4023
3924
  },
4024
3925
  {
4025
3926
  "kind": "js",
4026
- "name": "foundationAiIndicatorStyles",
3927
+ "name": "foundationAiCriteriaSearchTemplate",
4027
3928
  "declaration": {
4028
- "name": "foundationAiIndicatorStyles",
4029
- "module": "./ai-indicator.styles"
3929
+ "name": "foundationAiCriteriaSearchTemplate",
3930
+ "module": "./ai-criteria-search.template"
3931
+ }
3932
+ },
3933
+ {
3934
+ "kind": "js",
3935
+ "name": "*",
3936
+ "declaration": {
3937
+ "name": "*",
3938
+ "package": "./validation/criteria-ir"
3939
+ }
3940
+ },
3941
+ {
3942
+ "kind": "js",
3943
+ "name": "*",
3944
+ "declaration": {
3945
+ "name": "*",
3946
+ "package": "./validation/operator-map"
3947
+ }
3948
+ },
3949
+ {
3950
+ "kind": "js",
3951
+ "name": "*",
3952
+ "declaration": {
3953
+ "name": "*",
3954
+ "package": "./validation/schema-validator"
3955
+ }
3956
+ }
3957
+ ]
3958
+ },
3959
+ {
3960
+ "kind": "javascript-module",
3961
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3962
+ "declarations": [
3963
+ {
3964
+ "kind": "function",
3965
+ "name": "formatValidationErrors",
3966
+ "return": {
3967
+ "type": {
3968
+ "text": "string"
3969
+ }
3970
+ },
3971
+ "parameters": [
3972
+ {
3973
+ "name": "errors",
3974
+ "type": {
3975
+ "text": "ValidationError[]"
3976
+ }
3977
+ }
3978
+ ],
3979
+ "description": "Formats validation errors into a user-friendly message."
3980
+ },
3981
+ {
3982
+ "kind": "function",
3983
+ "name": "showCriteriaError",
3984
+ "return": {
3985
+ "type": {
3986
+ "text": "void"
3987
+ }
3988
+ },
3989
+ "parameters": [
3990
+ {
3991
+ "name": "title",
3992
+ "type": {
3993
+ "text": "string"
3994
+ },
3995
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3996
+ },
3997
+ {
3998
+ "name": "body",
3999
+ "type": {
4000
+ "text": "string"
4001
+ },
4002
+ "description": "Error message to display"
4003
+ },
4004
+ {
4005
+ "name": "tagName",
4006
+ "type": {
4007
+ "text": "string"
4008
+ },
4009
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
4010
+ }
4011
+ ],
4012
+ "description": "Shows a criteria error as a toast notification."
4013
+ }
4014
+ ],
4015
+ "exports": [
4016
+ {
4017
+ "kind": "js",
4018
+ "name": "formatValidationErrors",
4019
+ "declaration": {
4020
+ "name": "formatValidationErrors",
4021
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
4022
+ }
4023
+ },
4024
+ {
4025
+ "kind": "js",
4026
+ "name": "showCriteriaError",
4027
+ "declaration": {
4028
+ "name": "showCriteriaError",
4029
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
4030
4030
  }
4031
4031
  }
4032
4032
  ]