@genesislcap/foundation-ui 15.86.1-FUI-2666.3 → 15.86.1-FUI-2666.4

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,157 +1004,233 @@
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
- }
1133
+ "default": "''"
1131
1134
  },
1132
1135
  {
1133
1136
  "kind": "field",
1134
- "name": "change",
1135
- "privacy": "private",
1136
- "inheritedFrom": {
1137
- "name": "AccordionItem",
1138
- "module": "src/accordion-item/accordion-item.ts"
1137
+ "name": "isProcessing",
1138
+ "type": {
1139
+ "text": "boolean"
1140
+ },
1141
+ "default": "false"
1142
+ },
1143
+ {
1144
+ "kind": "method",
1145
+ "name": "handleClick",
1146
+ "privacy": "public",
1147
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1148
+ },
1149
+ {
1150
+ "kind": "method",
1151
+ "name": "onInputChange",
1152
+ "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
+ }
1139
1179
  }
1140
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
+ },
1141
1234
  {
1142
1235
  "kind": "field",
1143
1236
  "name": "_presentation",
@@ -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,18 +1472,34 @@
1345
1472
  "name": "*",
1346
1473
  "declaration": {
1347
1474
  "name": "*",
1348
- "package": "./accordion-item"
1475
+ "package": "./base-file-component"
1476
+ }
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"
1349
1492
  }
1350
1493
  }
1351
1494
  ]
1352
1495
  },
1353
1496
  {
1354
1497
  "kind": "javascript-module",
1355
- "path": "src/actions-menu/actions-menu.styles.ts",
1498
+ "path": "src/accordion-item/accordion-item.styles.ts",
1356
1499
  "declarations": [
1357
1500
  {
1358
1501
  "kind": "function",
1359
- "name": "actionsMenuBaseStyles",
1502
+ "name": "foundationAccordionItemStyles",
1360
1503
  "return": {
1361
1504
  "type": {
1362
1505
  "text": "ElementStyles"
@@ -1376,13 +1519,29 @@
1376
1519
  }
1377
1520
  }
1378
1521
  ]
1379
- },
1522
+ }
1523
+ ],
1524
+ "exports": [
1525
+ {
1526
+ "kind": "js",
1527
+ "name": "foundationAccordionItemStyles",
1528
+ "declaration": {
1529
+ "name": "foundationAccordionItemStyles",
1530
+ "module": "src/accordion-item/accordion-item.styles.ts"
1531
+ }
1532
+ }
1533
+ ]
1534
+ },
1535
+ {
1536
+ "kind": "javascript-module",
1537
+ "path": "src/accordion-item/accordion-item.template.ts",
1538
+ "declarations": [
1380
1539
  {
1381
1540
  "kind": "function",
1382
- "name": "foundationActionsMenuStyles",
1541
+ "name": "foundationAccordionItemTemplate",
1383
1542
  "return": {
1384
1543
  "type": {
1385
- "text": "ElementStyles"
1544
+ "text": "ViewTemplate<AccordionItem>"
1386
1545
  }
1387
1546
  },
1388
1547
  "parameters": [
@@ -1404,376 +1563,117 @@
1404
1563
  "exports": [
1405
1564
  {
1406
1565
  "kind": "js",
1407
- "name": "actionsMenuBaseStyles",
1408
- "declaration": {
1409
- "name": "actionsMenuBaseStyles",
1410
- "module": "src/actions-menu/actions-menu.styles.ts"
1411
- }
1412
- },
1413
- {
1414
- "kind": "js",
1415
- "name": "foundationActionsMenuStyles",
1566
+ "name": "foundationAccordionItemTemplate",
1416
1567
  "declaration": {
1417
- "name": "foundationActionsMenuStyles",
1418
- "module": "src/actions-menu/actions-menu.styles.ts"
1568
+ "name": "foundationAccordionItemTemplate",
1569
+ "module": "src/accordion-item/accordion-item.template.ts"
1419
1570
  }
1420
1571
  }
1421
1572
  ]
1422
1573
  },
1423
1574
  {
1424
1575
  "kind": "javascript-module",
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",
1576
+ "path": "src/accordion-item/accordion-item.ts",
1474
1577
  "declarations": [
1475
1578
  {
1476
1579
  "kind": "class",
1477
1580
  "description": "",
1478
- "name": "ActionsMenu",
1479
- "members": [
1480
- {
1481
- "kind": "field",
1482
- "name": "actions",
1483
- "type": {
1484
- "text": "ActionMenuItem[]"
1485
- }
1486
- },
1487
- {
1488
- "kind": "field",
1489
- "name": "actionsResolver",
1490
- "type": {
1491
- "text": "ActionMenuItemsResolver | undefined"
1492
- },
1493
- "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
1494
- },
1495
- {
1496
- "kind": "field",
1497
- "name": "isVertical",
1498
- "type": {
1499
- "text": "boolean"
1500
- },
1501
- "default": "false"
1502
- },
1581
+ "name": "AccordionItem",
1582
+ "superclass": {
1583
+ "name": "FASTAccordionItem",
1584
+ "package": "@microsoft/fast-components"
1585
+ },
1586
+ "tagName": "%%prefix%%-accordion-item",
1587
+ "customElement": true,
1588
+ "attributes": [
1503
1589
  {
1504
- "kind": "field",
1505
- "name": "addDefaultActions",
1590
+ "name": "heading-level",
1506
1591
  "type": {
1507
- "text": "boolean"
1592
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1508
1593
  },
1509
- "default": "true"
1594
+ "default": "2",
1595
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1596
+ "fieldName": "headinglevel",
1597
+ "inheritedFrom": {
1598
+ "name": "AccordionItem",
1599
+ "module": "src/accordion-item/accordion-item.ts"
1600
+ }
1510
1601
  },
1511
1602
  {
1512
- "kind": "field",
1513
- "name": "autoCloseOnAction",
1514
1603
  "type": {
1515
1604
  "text": "boolean"
1516
1605
  },
1517
- "default": "true"
1518
- },
1519
- {
1520
- "kind": "field",
1521
- "name": "classNames",
1522
- "type": {
1523
- "text": "string"
1524
- }
1525
- },
1526
- {
1527
- "kind": "field",
1528
- "name": "definition",
1529
- "type": {
1530
- "text": "any"
1606
+ "default": "false",
1607
+ "description": "Expands or collapses the item.",
1608
+ "fieldName": "expanded",
1609
+ "inheritedFrom": {
1610
+ "name": "AccordionItem",
1611
+ "module": "src/accordion-item/accordion-item.ts"
1531
1612
  }
1532
1613
  },
1533
1614
  {
1534
- "kind": "field",
1535
- "name": "name",
1536
- "type": {
1537
- "text": "string"
1538
- },
1539
- "default": "'Actions'"
1540
- },
1541
- {
1542
- "kind": "field",
1543
- "name": "iconName",
1615
+ "name": "id",
1544
1616
  "type": {
1545
1617
  "text": "string"
1546
1618
  },
1547
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
1548
- },
1549
- {
1550
- "kind": "field",
1551
- "name": "open",
1552
- "type": {
1553
- "text": "boolean"
1554
- },
1555
- "default": "false"
1556
- },
1557
- {
1558
- "kind": "field",
1559
- "name": "buttonAppearance",
1560
- "type": {
1561
- "text": "string"
1619
+ "description": "The item ID",
1620
+ "fieldName": "id",
1621
+ "inheritedFrom": {
1622
+ "name": "AccordionItem",
1623
+ "module": "src/accordion-item/accordion-item.ts"
1562
1624
  }
1563
- },
1564
- {
1565
- "kind": "field",
1566
- "name": "hideDisabled",
1567
- "type": {
1568
- "text": "boolean"
1569
- },
1570
- "default": "false"
1571
- },
1625
+ }
1626
+ ],
1627
+ "members": [
1572
1628
  {
1573
1629
  "kind": "field",
1574
- "name": "hideMenuSingleOption",
1630
+ "name": "headinglevel",
1575
1631
  "type": {
1576
- "text": "boolean"
1632
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1577
1633
  },
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"
1634
+ "privacy": "public",
1635
+ "default": "2",
1636
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1637
+ "inheritedFrom": {
1638
+ "name": "AccordionItem",
1639
+ "module": "src/accordion-item/accordion-item.ts"
1599
1640
  }
1600
1641
  },
1601
1642
  {
1602
1643
  "kind": "field",
1603
- "name": "positionTracker",
1604
- "type": {
1605
- "text": "AnchoredPopoverPositionTracker | undefined"
1606
- },
1607
- "privacy": "private"
1608
- },
1609
- {
1610
- "kind": "field",
1611
- "name": "focusMenuOnOpen",
1644
+ "name": "expanded",
1612
1645
  "type": {
1613
1646
  "text": "boolean"
1614
1647
  },
1615
- "privacy": "private",
1648
+ "privacy": "public",
1616
1649
  "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
1650
+ "description": "Expands or collapses the item.",
1651
+ "inheritedFrom": {
1652
+ "name": "AccordionItem",
1653
+ "module": "src/accordion-item/accordion-item.ts"
1654
+ }
1740
1655
  },
1741
1656
  {
1742
1657
  "kind": "field",
1743
- "name": "allActions",
1658
+ "name": "id",
1744
1659
  "type": {
1745
- "text": "ActionMenuItem[]"
1660
+ "text": "string"
1746
1661
  },
1747
- "readonly": true
1662
+ "privacy": "public",
1663
+ "description": "The item ID",
1664
+ "inheritedFrom": {
1665
+ "name": "AccordionItem",
1666
+ "module": "src/accordion-item/accordion-item.ts"
1667
+ }
1748
1668
  },
1749
1669
  {
1750
1670
  "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
- ]
1671
+ "name": "change",
1672
+ "privacy": "private",
1673
+ "inheritedFrom": {
1674
+ "name": "AccordionItem",
1675
+ "module": "src/accordion-item/accordion-item.ts"
1676
+ }
1777
1677
  },
1778
1678
  {
1779
1679
  "kind": "field",
@@ -1887,158 +1787,78 @@
1887
1787
  }
1888
1788
  }
1889
1789
  ],
1890
- "attributes": [
1891
- {
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
- },
1790
+ "events": [
1954
1791
  {
1955
- "name": "hide-menu-single-option",
1956
- "type": {
1957
- "text": "boolean"
1958
- },
1959
- "default": "false",
1960
- "fieldName": "hideMenuSingleOption"
1792
+ "description": "Fires a custom 'change' event when the button is invoked",
1793
+ "name": "change",
1794
+ "inheritedFrom": {
1795
+ "name": "AccordionItem",
1796
+ "module": "src/accordion-item/accordion-item.ts"
1797
+ }
1961
1798
  }
1962
- ],
1963
- "superclass": {
1964
- "name": "FoundationElement",
1965
- "package": "@microsoft/fast-foundation"
1799
+ ]
1800
+ },
1801
+ {
1802
+ "kind": "variable",
1803
+ "name": "foundationAccordionItemShadowOptions",
1804
+ "type": {
1805
+ "text": "ShadowRootInit"
1966
1806
  },
1967
- "tagName": "%%prefix%%-actions-menu",
1968
- "customElement": true
1807
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1969
1808
  },
1970
1809
  {
1971
1810
  "kind": "variable",
1972
- "name": "foundationActionsMenu",
1973
- "description": "The Foundation Actions Menu",
1811
+ "name": "defaultAccordionItemConfig",
1812
+ "type": {
1813
+ "text": "object"
1814
+ },
1815
+ "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}"
1816
+ },
1817
+ {
1818
+ "kind": "variable",
1819
+ "name": "foundationAccordionItem",
1820
+ "description": "The Foundation Accordion Item",
1974
1821
  "privacy": "public"
1975
1822
  }
1976
1823
  ],
1977
1824
  "exports": [
1978
1825
  {
1979
1826
  "kind": "js",
1980
- "name": "ActionsMenu",
1827
+ "name": "AccordionItem",
1981
1828
  "declaration": {
1982
- "name": "ActionsMenu",
1983
- "module": "src/actions-menu/actions-menu.ts"
1829
+ "name": "AccordionItem",
1830
+ "module": "src/accordion-item/accordion-item.ts"
1984
1831
  }
1985
1832
  },
1986
1833
  {
1987
1834
  "kind": "js",
1988
- "name": "foundationActionsMenu",
1835
+ "name": "foundationAccordionItemShadowOptions",
1989
1836
  "declaration": {
1990
- "name": "foundationActionsMenu",
1991
- "module": "src/actions-menu/actions-menu.ts"
1837
+ "name": "foundationAccordionItemShadowOptions",
1838
+ "module": "src/accordion-item/accordion-item.ts"
1992
1839
  }
1993
- }
1994
- ]
1995
- },
1996
- {
1997
- "kind": "javascript-module",
1998
- "path": "src/actions-menu/ag-menu.styles.ts",
1999
- "declarations": [
1840
+ },
2000
1841
  {
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.",
2025
- "privacy": "public"
2026
- }
2027
- ],
2028
- "exports": [
1842
+ "kind": "js",
1843
+ "name": "defaultAccordionItemConfig",
1844
+ "declaration": {
1845
+ "name": "defaultAccordionItemConfig",
1846
+ "module": "src/accordion-item/accordion-item.ts"
1847
+ }
1848
+ },
2029
1849
  {
2030
1850
  "kind": "js",
2031
- "name": "agMenuStyles",
1851
+ "name": "foundationAccordionItem",
2032
1852
  "declaration": {
2033
- "name": "agMenuStyles",
2034
- "module": "src/actions-menu/ag-menu.styles.ts"
1853
+ "name": "foundationAccordionItem",
1854
+ "module": "src/accordion-item/accordion-item.ts"
2035
1855
  }
2036
1856
  }
2037
1857
  ]
2038
1858
  },
2039
1859
  {
2040
1860
  "kind": "javascript-module",
2041
- "path": "src/actions-menu/index.ts",
1861
+ "path": "src/accordion-item/index.ts",
2042
1862
  "declarations": [],
2043
1863
  "exports": [
2044
1864
  {
@@ -2046,7 +1866,7 @@
2046
1866
  "name": "*",
2047
1867
  "declaration": {
2048
1868
  "name": "*",
2049
- "package": "./actions-menu.styles"
1869
+ "package": "./accordion-item.template"
2050
1870
  }
2051
1871
  },
2052
1872
  {
@@ -2054,7 +1874,7 @@
2054
1874
  "name": "*",
2055
1875
  "declaration": {
2056
1876
  "name": "*",
2057
- "package": "./actions-menu.template"
1877
+ "package": "./accordion-item.styles"
2058
1878
  }
2059
1879
  },
2060
1880
  {
@@ -2062,7 +1882,22 @@
2062
1882
  "name": "*",
2063
1883
  "declaration": {
2064
1884
  "name": "*",
2065
- "package": "./actions-menu"
1885
+ "package": "./accordion-item"
1886
+ }
1887
+ }
1888
+ ]
1889
+ },
1890
+ {
1891
+ "kind": "javascript-module",
1892
+ "path": "src/_config/index.ts",
1893
+ "declarations": [],
1894
+ "exports": [
1895
+ {
1896
+ "kind": "js",
1897
+ "name": "*",
1898
+ "declaration": {
1899
+ "name": "*",
1900
+ "package": "./styles"
2066
1901
  }
2067
1902
  },
2068
1903
  {
@@ -2070,51 +1905,42 @@
2070
1905
  "name": "*",
2071
1906
  "declaration": {
2072
1907
  "name": "*",
2073
- "package": "./ag-menu.styles"
1908
+ "package": "./tokens"
1909
+ }
1910
+ },
1911
+ {
1912
+ "kind": "js",
1913
+ "name": "*",
1914
+ "declaration": {
1915
+ "name": "*",
1916
+ "package": "./values"
2074
1917
  }
2075
1918
  }
2076
1919
  ]
2077
1920
  },
2078
1921
  {
2079
1922
  "kind": "javascript-module",
2080
- "path": "src/_common/affix-mixin.ts",
1923
+ "path": "src/accordion/accordion.styles.ts",
2081
1924
  "declarations": [
2082
1925
  {
2083
- "kind": "mixin",
2084
- "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.",
2085
- "name": "AffixMixin",
2086
- "members": [
2087
- {
2088
- "kind": "field",
2089
- "name": "prefix",
2090
- "type": {
2091
- "text": "string"
2092
- },
2093
- "description": "Optional non-editable label shown on the left inside the field, before the input."
2094
- },
1926
+ "kind": "function",
1927
+ "name": "foundationAccordionStyles",
1928
+ "return": {
1929
+ "type": {
1930
+ "text": "ElementStyles"
1931
+ }
1932
+ },
1933
+ "parameters": [
2095
1934
  {
2096
- "kind": "field",
2097
- "name": "suffix",
1935
+ "name": "context",
2098
1936
  "type": {
2099
- "text": "string"
2100
- },
2101
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
1937
+ "text": "ElementDefinitionContext"
1938
+ }
2102
1939
  },
2103
1940
  {
2104
- "kind": "field",
2105
- "name": "hideAffixFromScreenReader",
2106
- "type": {
2107
- "text": "boolean"
2108
- },
2109
- "default": "false",
2110
- "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."
2111
- }
2112
- ],
2113
- "parameters": [
2114
- {
2115
- "name": "Base",
1941
+ "name": "definition",
2116
1942
  "type": {
2117
- "text": "TBase"
1943
+ "text": "FoundationElementDefinition"
2118
1944
  }
2119
1945
  }
2120
1946
  ]
@@ -2123,206 +1949,246 @@
2123
1949
  "exports": [
2124
1950
  {
2125
1951
  "kind": "js",
2126
- "name": "AffixMixin",
1952
+ "name": "foundationAccordionStyles",
2127
1953
  "declaration": {
2128
- "name": "AffixMixin",
2129
- "module": "src/_common/affix-mixin.ts"
1954
+ "name": "foundationAccordionStyles",
1955
+ "module": "src/accordion/accordion.styles.ts"
2130
1956
  }
2131
1957
  }
2132
1958
  ]
2133
1959
  },
2134
1960
  {
2135
1961
  "kind": "javascript-module",
2136
- "path": "src/_common/alert-flash-clock.ts",
1962
+ "path": "src/accordion/accordion.template.ts",
2137
1963
  "declarations": [
2138
- {
2139
- "kind": "variable",
2140
- "name": "alertFlashPhaseProperty",
2141
- "type": {
2142
- "text": "string"
2143
- },
2144
- "default": "'--alert-flash-t'",
2145
- "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.",
2146
- "privacy": "public"
2147
- },
2148
- {
2149
- "kind": "variable",
2150
- "name": "alertFlashDurationProperty",
2151
- "type": {
2152
- "text": "string"
2153
- },
2154
- "default": "'--alert-flash-duration'",
2155
- "description": "Custom property setting how long one flash cycle takes. Set it on `:root` to retime every\nalerting surface at once.",
2156
- "privacy": "public"
2157
- },
2158
1964
  {
2159
1965
  "kind": "function",
2160
- "name": "installAlertFlashClock",
1966
+ "name": "foundationAccordionTemplate",
2161
1967
  "return": {
2162
1968
  "type": {
2163
- "text": "void"
1969
+ "text": "ViewTemplate<Accordion>"
2164
1970
  }
2165
1971
  },
2166
- "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.",
2167
- "privacy": "public"
1972
+ "parameters": [
1973
+ {
1974
+ "name": "context",
1975
+ "type": {
1976
+ "text": "ElementDefinitionContext"
1977
+ }
1978
+ },
1979
+ {
1980
+ "name": "definition",
1981
+ "type": {
1982
+ "text": "FoundationElementDefinition"
1983
+ }
1984
+ }
1985
+ ]
2168
1986
  }
2169
1987
  ],
2170
1988
  "exports": [
2171
1989
  {
2172
1990
  "kind": "js",
2173
- "name": "alertFlashPhaseProperty",
2174
- "declaration": {
2175
- "name": "alertFlashPhaseProperty",
2176
- "module": "src/_common/alert-flash-clock.ts"
2177
- }
2178
- },
2179
- {
2180
- "kind": "js",
2181
- "name": "alertFlashDurationProperty",
2182
- "declaration": {
2183
- "name": "alertFlashDurationProperty",
2184
- "module": "src/_common/alert-flash-clock.ts"
2185
- }
2186
- },
2187
- {
2188
- "kind": "js",
2189
- "name": "installAlertFlashClock",
1991
+ "name": "foundationAccordionTemplate",
2190
1992
  "declaration": {
2191
- "name": "installAlertFlashClock",
2192
- "module": "src/_common/alert-flash-clock.ts"
1993
+ "name": "foundationAccordionTemplate",
1994
+ "module": "src/accordion/accordion.template.ts"
2193
1995
  }
2194
1996
  }
2195
1997
  ]
2196
1998
  },
2197
1999
  {
2198
2000
  "kind": "javascript-module",
2199
- "path": "src/_common/base-file-component.ts",
2001
+ "path": "src/accordion/accordion.ts",
2200
2002
  "declarations": [
2201
2003
  {
2202
2004
  "kind": "class",
2203
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
2204
- "name": "BaseFileComponent",
2005
+ "description": "",
2006
+ "name": "Accordion",
2007
+ "superclass": {
2008
+ "name": "FASTAccordion",
2009
+ "package": "@microsoft/fast-foundation"
2010
+ },
2011
+ "tagName": "%%prefix%%-accordion",
2012
+ "customElement": true,
2013
+ "attributes": [
2014
+ {
2015
+ "name": "expand-mode",
2016
+ "type": {
2017
+ "text": "AccordionExpandMode"
2018
+ },
2019
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2020
+ "fieldName": "expandmode",
2021
+ "inheritedFrom": {
2022
+ "name": "Accordion",
2023
+ "module": "src/accordion/accordion.ts"
2024
+ }
2025
+ }
2026
+ ],
2205
2027
  "members": [
2206
2028
  {
2207
2029
  "kind": "field",
2208
- "name": "fileInput",
2030
+ "name": "expandmode",
2209
2031
  "type": {
2210
- "text": "HTMLInputElement"
2032
+ "text": "AccordionExpandMode"
2211
2033
  },
2212
- "privacy": "public"
2034
+ "privacy": "public",
2035
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2036
+ "inheritedFrom": {
2037
+ "name": "Accordion",
2038
+ "module": "src/accordion/accordion.ts"
2039
+ }
2213
2040
  },
2214
2041
  {
2215
2042
  "kind": "field",
2216
- "name": "selectedFile",
2043
+ "name": "activeid",
2217
2044
  "type": {
2218
- "text": "File | null"
2045
+ "text": "string | null"
2219
2046
  },
2220
- "privacy": "protected",
2221
- "default": "null"
2047
+ "privacy": "private",
2048
+ "inheritedFrom": {
2049
+ "name": "Accordion",
2050
+ "module": "src/accordion/accordion.ts"
2051
+ }
2222
2052
  },
2223
2053
  {
2224
2054
  "kind": "field",
2225
- "name": "label",
2055
+ "name": "activeItemIndex",
2226
2056
  "type": {
2227
- "text": "string"
2057
+ "text": "number"
2058
+ },
2059
+ "privacy": "private",
2060
+ "default": "0",
2061
+ "inheritedFrom": {
2062
+ "name": "Accordion",
2063
+ "module": "src/accordion/accordion.ts"
2228
2064
  }
2229
2065
  },
2230
2066
  {
2231
2067
  "kind": "field",
2232
- "name": "accept",
2068
+ "name": "accordionIds",
2233
2069
  "type": {
2234
- "text": "string"
2070
+ "text": "Array<string | null>"
2235
2071
  },
2236
- "default": "''"
2072
+ "privacy": "private",
2073
+ "inheritedFrom": {
2074
+ "name": "Accordion",
2075
+ "module": "src/accordion/accordion.ts"
2076
+ }
2237
2077
  },
2238
2078
  {
2239
2079
  "kind": "field",
2240
- "name": "fileSizeLimitBytes",
2241
- "default": "10_485_760",
2242
- "type": {
2243
- "text": "number"
2080
+ "name": "change",
2081
+ "privacy": "private",
2082
+ "inheritedFrom": {
2083
+ "name": "Accordion",
2084
+ "module": "src/accordion/accordion.ts"
2244
2085
  }
2245
2086
  },
2246
2087
  {
2247
- "kind": "field",
2248
- "name": "fileName",
2249
- "type": {
2250
- "text": "string"
2088
+ "kind": "method",
2089
+ "name": "findExpandedItem",
2090
+ "privacy": "private",
2091
+ "return": {
2092
+ "type": {
2093
+ "text": "AccordionItem | null"
2094
+ }
2251
2095
  },
2252
- "default": "''"
2096
+ "inheritedFrom": {
2097
+ "name": "Accordion",
2098
+ "module": "src/accordion/accordion.ts"
2099
+ }
2253
2100
  },
2254
2101
  {
2255
2102
  "kind": "field",
2256
- "name": "isProcessing",
2257
- "type": {
2258
- "text": "boolean"
2259
- },
2260
- "default": "false"
2103
+ "name": "setItems",
2104
+ "privacy": "private",
2105
+ "inheritedFrom": {
2106
+ "name": "Accordion",
2107
+ "module": "src/accordion/accordion.ts"
2108
+ }
2261
2109
  },
2262
2110
  {
2263
2111
  "kind": "method",
2264
- "name": "handleClick",
2265
- "privacy": "public",
2266
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
2112
+ "name": "resetItems",
2113
+ "privacy": "private",
2114
+ "return": {
2115
+ "type": {
2116
+ "text": "void"
2117
+ }
2118
+ },
2119
+ "inheritedFrom": {
2120
+ "name": "Accordion",
2121
+ "module": "src/accordion/accordion.ts"
2122
+ }
2267
2123
  },
2268
2124
  {
2269
- "kind": "method",
2270
- "name": "onInputChange",
2271
- "privacy": "public",
2272
- "parameters": [
2273
- {
2274
- "name": "e",
2275
- "type": {
2276
- "text": "Event"
2277
- },
2278
- "description": "The change event from the file input"
2279
- }
2280
- ],
2281
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
2125
+ "kind": "field",
2126
+ "name": "removeItemListeners",
2127
+ "privacy": "private",
2128
+ "inheritedFrom": {
2129
+ "name": "Accordion",
2130
+ "module": "src/accordion/accordion.ts"
2131
+ }
2282
2132
  },
2283
2133
  {
2284
- "kind": "method",
2285
- "name": "clearSelection",
2286
- "privacy": "public",
2287
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
2134
+ "kind": "field",
2135
+ "name": "activeItemChange",
2136
+ "privacy": "private",
2137
+ "inheritedFrom": {
2138
+ "name": "Accordion",
2139
+ "module": "src/accordion/accordion.ts"
2140
+ }
2288
2141
  },
2289
2142
  {
2290
2143
  "kind": "method",
2291
- "name": "getSelectedFile",
2292
- "privacy": "public",
2293
- "description": "Gets the currently selected file object",
2144
+ "name": "getItemIds",
2145
+ "privacy": "private",
2294
2146
  "return": {
2295
2147
  "type": {
2296
- "text": ""
2148
+ "text": "Array<string | null>"
2297
2149
  }
2150
+ },
2151
+ "inheritedFrom": {
2152
+ "name": "Accordion",
2153
+ "module": "src/accordion/accordion.ts"
2298
2154
  }
2299
2155
  },
2300
2156
  {
2301
2157
  "kind": "method",
2302
- "name": "showError",
2303
- "privacy": "protected",
2304
- "parameters": [
2305
- {
2306
- "name": "title",
2307
- "type": {
2308
- "text": "string"
2309
- },
2310
- "description": "The error title"
2311
- },
2312
- {
2313
- "name": "message",
2314
- "type": {
2315
- "text": "string"
2316
- },
2317
- "description": "The error message"
2158
+ "name": "isSingleExpandMode",
2159
+ "privacy": "private",
2160
+ "return": {
2161
+ "type": {
2162
+ "text": "boolean"
2318
2163
  }
2319
- ],
2320
- "description": "Shows an error notification using the unified error handling system"
2164
+ },
2165
+ "inheritedFrom": {
2166
+ "name": "Accordion",
2167
+ "module": "src/accordion/accordion.ts"
2168
+ }
2169
+ },
2170
+ {
2171
+ "kind": "field",
2172
+ "name": "handleItemKeyDown",
2173
+ "privacy": "private",
2174
+ "inheritedFrom": {
2175
+ "name": "Accordion",
2176
+ "module": "src/accordion/accordion.ts"
2177
+ }
2178
+ },
2179
+ {
2180
+ "kind": "field",
2181
+ "name": "handleItemFocus",
2182
+ "privacy": "private",
2183
+ "inheritedFrom": {
2184
+ "name": "Accordion",
2185
+ "module": "src/accordion/accordion.ts"
2186
+ }
2321
2187
  },
2322
2188
  {
2323
2189
  "kind": "method",
2324
- "name": "onFileSelected",
2325
- "privacy": "protected",
2190
+ "name": "adjust",
2191
+ "privacy": "private",
2326
2192
  "return": {
2327
2193
  "type": {
2328
2194
  "text": "void"
@@ -2330,25 +2196,30 @@
2330
2196
  },
2331
2197
  "parameters": [
2332
2198
  {
2333
- "name": "files",
2199
+ "name": "adjustment",
2334
2200
  "type": {
2335
- "text": "File[]"
2336
- },
2337
- "description": "The selected file"
2201
+ "text": "number"
2202
+ }
2338
2203
  }
2339
2204
  ],
2340
- "description": "Abstract method called when a file is selected"
2205
+ "inheritedFrom": {
2206
+ "name": "Accordion",
2207
+ "module": "src/accordion/accordion.ts"
2208
+ }
2341
2209
  },
2342
2210
  {
2343
2211
  "kind": "method",
2344
- "name": "onFileCleared",
2345
- "privacy": "protected",
2212
+ "name": "focusItem",
2213
+ "privacy": "private",
2346
2214
  "return": {
2347
2215
  "type": {
2348
2216
  "text": "void"
2349
2217
  }
2350
2218
  },
2351
- "description": "Abstract method called when file selection is cleared"
2219
+ "inheritedFrom": {
2220
+ "name": "Accordion",
2221
+ "module": "src/accordion/accordion.ts"
2222
+ }
2352
2223
  },
2353
2224
  {
2354
2225
  "kind": "field",
@@ -2448,150 +2319,100 @@
2448
2319
  }
2449
2320
  },
2450
2321
  {
2451
- "name": "elementDefinition",
2452
- "type": {
2453
- "text": "T"
2454
- },
2455
- "description": "The definition of the element to create the registry\nfunction for."
2456
- }
2457
- ],
2458
- "description": "Defines an element registry function with a set of element definition defaults.",
2459
- "inheritedFrom": {
2460
- "name": "FoundationElement",
2461
- "module": "src/foundation-element/foundation-element.ts"
2462
- }
2463
- }
2464
- ],
2465
- "events": [
2466
- {
2467
- "description": "Fired when file size validation fails. detail: `Error`",
2468
- "name": "error"
2469
- },
2470
- {
2471
- "description": "Fired when selection is cleared",
2472
- "name": "clear"
2473
- }
2474
- ],
2475
- "attributes": [
2476
- {
2477
- "name": "label",
2478
- "type": {
2479
- "text": "string"
2480
- },
2481
- "fieldName": "label"
2482
- },
2483
- {
2484
- "name": "accept",
2485
- "type": {
2486
- "text": "string"
2487
- },
2488
- "default": "''",
2489
- "fieldName": "accept"
2490
- },
2491
- {
2492
- "name": "file-size-limit-bytes",
2493
- "default": "DEFAULT_FILE_SIZE_LIMIT",
2494
- "resolveInitializer": {
2495
- "module": "src/_common/base-file-component.ts"
2496
- },
2497
- "fieldName": "fileSizeLimitBytes"
2322
+ "name": "elementDefinition",
2323
+ "type": {
2324
+ "text": "T"
2325
+ },
2326
+ "description": "The definition of the element to create the registry\nfunction for."
2327
+ }
2328
+ ],
2329
+ "description": "Defines an element registry function with a set of element definition defaults.",
2330
+ "inheritedFrom": {
2331
+ "name": "FoundationElement",
2332
+ "module": "src/foundation-element/foundation-element.ts"
2333
+ }
2498
2334
  }
2499
2335
  ],
2500
- "superclass": {
2501
- "name": "FoundationElement",
2502
- "package": "@microsoft/fast-foundation"
2503
- }
2504
- }
2505
- ],
2506
- "exports": [
2336
+ "events": [
2337
+ {
2338
+ "description": "Fires a custom 'change' event when the active item changes",
2339
+ "name": "change",
2340
+ "inheritedFrom": {
2341
+ "name": "Accordion",
2342
+ "module": "src/accordion/accordion.ts"
2343
+ }
2344
+ }
2345
+ ]
2346
+ },
2507
2347
  {
2508
- "kind": "js",
2509
- "name": "BaseFileComponent",
2510
- "declaration": {
2511
- "name": "BaseFileComponent",
2512
- "module": "src/_common/base-file-component.ts"
2513
- }
2514
- }
2515
- ]
2516
- },
2517
- {
2518
- "kind": "javascript-module",
2519
- "path": "src/_common/field-styles.ts",
2520
- "declarations": [
2348
+ "kind": "variable",
2349
+ "name": "foundationAccordionShadowOptions",
2350
+ "type": {
2351
+ "text": "ShadowRootInit"
2352
+ },
2353
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2354
+ },
2521
2355
  {
2522
2356
  "kind": "variable",
2523
- "name": "sharedFieldStyles",
2524
- "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`"
2357
+ "name": "defaultAccordionConfig",
2358
+ "type": {
2359
+ "text": "object"
2360
+ },
2361
+ "default": "{}"
2362
+ },
2363
+ {
2364
+ "kind": "variable",
2365
+ "name": "foundationAccordion",
2366
+ "description": "The Foundation Accordion",
2367
+ "privacy": "public"
2525
2368
  }
2526
2369
  ],
2527
2370
  "exports": [
2528
2371
  {
2529
2372
  "kind": "js",
2530
- "name": "sharedFieldStyles",
2373
+ "name": "Accordion",
2531
2374
  "declaration": {
2532
- "name": "sharedFieldStyles",
2533
- "module": "src/_common/field-styles.ts"
2375
+ "name": "Accordion",
2376
+ "module": "src/accordion/accordion.ts"
2534
2377
  }
2535
- }
2536
- ]
2537
- },
2538
- {
2539
- "kind": "javascript-module",
2540
- "path": "src/_common/icons.ts",
2541
- "declarations": [
2542
- {
2543
- "kind": "function",
2544
- "name": "closeIcon",
2545
- "parameters": [
2546
- {
2547
- "name": "slot",
2548
- "default": "'start'"
2549
- },
2550
- {
2551
- "name": "fill",
2552
- "default": "'#879ba6'"
2553
- }
2554
- ]
2555
- }
2556
- ],
2557
- "exports": [
2378
+ },
2558
2379
  {
2559
2380
  "kind": "js",
2560
- "name": "closeIcon",
2381
+ "name": "foundationAccordionShadowOptions",
2561
2382
  "declaration": {
2562
- "name": "closeIcon",
2563
- "module": "src/_common/icons.ts"
2383
+ "name": "foundationAccordionShadowOptions",
2384
+ "module": "src/accordion/accordion.ts"
2564
2385
  }
2565
- }
2566
- ]
2567
- },
2568
- {
2569
- "kind": "javascript-module",
2570
- "path": "src/_common/index.ts",
2571
- "declarations": [],
2572
- "exports": [
2386
+ },
2573
2387
  {
2574
2388
  "kind": "js",
2575
- "name": "*",
2389
+ "name": "defaultAccordionConfig",
2576
2390
  "declaration": {
2577
- "name": "*",
2578
- "package": "./affix-mixin"
2391
+ "name": "defaultAccordionConfig",
2392
+ "module": "src/accordion/accordion.ts"
2579
2393
  }
2580
2394
  },
2581
2395
  {
2582
2396
  "kind": "js",
2583
- "name": "*",
2397
+ "name": "foundationAccordion",
2584
2398
  "declaration": {
2585
- "name": "*",
2586
- "package": "./alert-flash-clock"
2399
+ "name": "foundationAccordion",
2400
+ "module": "src/accordion/accordion.ts"
2587
2401
  }
2588
- },
2402
+ }
2403
+ ]
2404
+ },
2405
+ {
2406
+ "kind": "javascript-module",
2407
+ "path": "src/accordion/index.ts",
2408
+ "declarations": [],
2409
+ "exports": [
2589
2410
  {
2590
2411
  "kind": "js",
2591
2412
  "name": "*",
2592
2413
  "declaration": {
2593
2414
  "name": "*",
2594
- "package": "./base-file-component"
2415
+ "package": "./accordion.template"
2595
2416
  }
2596
2417
  },
2597
2418
  {
@@ -2599,7 +2420,7 @@
2599
2420
  "name": "*",
2600
2421
  "declaration": {
2601
2422
  "name": "*",
2602
- "package": "./field-styles"
2423
+ "package": "./accordion.styles"
2603
2424
  }
2604
2425
  },
2605
2426
  {
@@ -2607,122 +2428,210 @@
2607
2428
  "name": "*",
2608
2429
  "declaration": {
2609
2430
  "name": "*",
2610
- "package": "./icons"
2431
+ "package": "./accordion"
2611
2432
  }
2612
2433
  }
2613
2434
  ]
2614
2435
  },
2615
2436
  {
2616
2437
  "kind": "javascript-module",
2617
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2438
+ "path": "src/actions-menu/actions-menu.styles.ts",
2618
2439
  "declarations": [
2619
2440
  {
2620
- "kind": "variable",
2621
- "name": "foundationAiCriteriaSearchStyles",
2622
- "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`"
2441
+ "kind": "function",
2442
+ "name": "actionsMenuBaseStyles",
2443
+ "return": {
2444
+ "type": {
2445
+ "text": "ElementStyles"
2446
+ }
2447
+ },
2448
+ "parameters": [
2449
+ {
2450
+ "name": "context",
2451
+ "type": {
2452
+ "text": "ElementDefinitionContext"
2453
+ }
2454
+ },
2455
+ {
2456
+ "name": "definition",
2457
+ "type": {
2458
+ "text": "FoundationElementDefinition"
2459
+ }
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "kind": "function",
2465
+ "name": "foundationActionsMenuStyles",
2466
+ "return": {
2467
+ "type": {
2468
+ "text": "ElementStyles"
2469
+ }
2470
+ },
2471
+ "parameters": [
2472
+ {
2473
+ "name": "context",
2474
+ "type": {
2475
+ "text": "ElementDefinitionContext"
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "definition",
2480
+ "type": {
2481
+ "text": "FoundationElementDefinition"
2482
+ }
2483
+ }
2484
+ ]
2623
2485
  }
2624
2486
  ],
2625
2487
  "exports": [
2626
2488
  {
2627
2489
  "kind": "js",
2628
- "name": "foundationAiCriteriaSearchStyles",
2490
+ "name": "actionsMenuBaseStyles",
2629
2491
  "declaration": {
2630
- "name": "foundationAiCriteriaSearchStyles",
2631
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2492
+ "name": "actionsMenuBaseStyles",
2493
+ "module": "src/actions-menu/actions-menu.styles.ts"
2494
+ }
2495
+ },
2496
+ {
2497
+ "kind": "js",
2498
+ "name": "foundationActionsMenuStyles",
2499
+ "declaration": {
2500
+ "name": "foundationActionsMenuStyles",
2501
+ "module": "src/actions-menu/actions-menu.styles.ts"
2632
2502
  }
2633
2503
  }
2634
2504
  ]
2635
2505
  },
2636
2506
  {
2637
2507
  "kind": "javascript-module",
2638
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2508
+ "path": "src/actions-menu/actions-menu.template.ts",
2639
2509
  "declarations": [
2640
2510
  {
2641
2511
  "kind": "variable",
2642
- "name": "foundationAiCriteriaSearchTemplate",
2512
+ "name": "menuTemplate"
2513
+ },
2514
+ {
2515
+ "kind": "variable",
2516
+ "name": "singleOptionTemplate"
2517
+ },
2518
+ {
2519
+ "kind": "variable",
2520
+ "name": "foundationActionsMenuTemplate",
2643
2521
  "type": {
2644
- "text": "ViewTemplate<AiCriteriaSearch>"
2522
+ "text": "ViewTemplate<ActionsMenu>"
2645
2523
  },
2646
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2524
+ "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`"
2647
2525
  }
2648
2526
  ],
2649
2527
  "exports": [
2650
2528
  {
2651
2529
  "kind": "js",
2652
- "name": "foundationAiCriteriaSearchTemplate",
2530
+ "name": "menuTemplate",
2653
2531
  "declaration": {
2654
- "name": "foundationAiCriteriaSearchTemplate",
2655
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2532
+ "name": "menuTemplate",
2533
+ "module": "src/actions-menu/actions-menu.template.ts"
2534
+ }
2535
+ },
2536
+ {
2537
+ "kind": "js",
2538
+ "name": "singleOptionTemplate",
2539
+ "declaration": {
2540
+ "name": "singleOptionTemplate",
2541
+ "module": "src/actions-menu/actions-menu.template.ts"
2542
+ }
2543
+ },
2544
+ {
2545
+ "kind": "js",
2546
+ "name": "foundationActionsMenuTemplate",
2547
+ "declaration": {
2548
+ "name": "foundationActionsMenuTemplate",
2549
+ "module": "src/actions-menu/actions-menu.template.ts"
2656
2550
  }
2657
2551
  }
2658
2552
  ]
2659
2553
  },
2660
2554
  {
2661
2555
  "kind": "javascript-module",
2662
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2556
+ "path": "src/actions-menu/actions-menu.ts",
2663
2557
  "declarations": [
2664
2558
  {
2665
2559
  "kind": "class",
2666
- "description": "Natural-language criteria search input with AI interpretation.",
2667
- "name": "AiCriteriaSearch",
2560
+ "description": "",
2561
+ "name": "ActionsMenu",
2668
2562
  "members": [
2669
2563
  {
2670
2564
  "kind": "field",
2671
- "name": "providerRegistry",
2565
+ "name": "actions",
2672
2566
  "type": {
2673
- "text": "AIProviderRegistry"
2567
+ "text": "ActionMenuItem[]"
2674
2568
  }
2675
2569
  },
2676
2570
  {
2677
2571
  "kind": "field",
2678
- "name": "placeholder",
2572
+ "name": "actionsResolver",
2679
2573
  "type": {
2680
- "text": "string"
2574
+ "text": "ActionMenuItemsResolver | undefined"
2681
2575
  },
2682
- "default": "'Describe your search criteria in natural language...'"
2576
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2683
2577
  },
2684
2578
  {
2685
2579
  "kind": "field",
2686
- "name": "disabled",
2580
+ "name": "isVertical",
2687
2581
  "type": {
2688
2582
  "text": "boolean"
2689
- }
2583
+ },
2584
+ "default": "false"
2690
2585
  },
2691
2586
  {
2692
2587
  "kind": "field",
2693
- "name": "inputValue",
2588
+ "name": "addDefaultActions",
2694
2589
  "type": {
2695
- "text": "string"
2590
+ "text": "boolean"
2696
2591
  },
2697
- "default": "''"
2592
+ "default": "true"
2698
2593
  },
2699
2594
  {
2700
2595
  "kind": "field",
2701
- "name": "isInterpreting",
2596
+ "name": "autoCloseOnAction",
2702
2597
  "type": {
2703
2598
  "text": "boolean"
2704
2599
  },
2705
- "default": "false"
2600
+ "default": "true"
2706
2601
  },
2707
2602
  {
2708
2603
  "kind": "field",
2709
- "name": "lastValidCriteria",
2604
+ "name": "classNames",
2710
2605
  "type": {
2711
- "text": "string | null"
2606
+ "text": "string"
2607
+ }
2608
+ },
2609
+ {
2610
+ "kind": "field",
2611
+ "name": "definition",
2612
+ "type": {
2613
+ "text": "any"
2614
+ }
2615
+ },
2616
+ {
2617
+ "kind": "field",
2618
+ "name": "name",
2619
+ "type": {
2620
+ "text": "string"
2712
2621
  },
2713
- "default": "null"
2622
+ "default": "'Actions'"
2714
2623
  },
2715
2624
  {
2716
2625
  "kind": "field",
2717
- "name": "activeGroups",
2626
+ "name": "iconName",
2718
2627
  "type": {
2719
- "text": "CriteriaGroup[]"
2628
+ "text": "string"
2720
2629
  },
2721
- "default": "[]"
2630
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2722
2631
  },
2723
2632
  {
2724
2633
  "kind": "field",
2725
- "name": "showingChips",
2634
+ "name": "open",
2726
2635
  "type": {
2727
2636
  "text": "boolean"
2728
2637
  },
@@ -2730,15 +2639,14 @@
2730
2639
  },
2731
2640
  {
2732
2641
  "kind": "field",
2733
- "name": "fieldMetadata",
2642
+ "name": "buttonAppearance",
2734
2643
  "type": {
2735
- "text": "MetadataDetail[] | string[]"
2736
- },
2737
- "default": "[]"
2644
+ "text": "string"
2645
+ }
2738
2646
  },
2739
2647
  {
2740
2648
  "kind": "field",
2741
- "name": "isRecording",
2649
+ "name": "hideDisabled",
2742
2650
  "type": {
2743
2651
  "text": "boolean"
2744
2652
  },
@@ -2746,125 +2654,209 @@
2746
2654
  },
2747
2655
  {
2748
2656
  "kind": "field",
2749
- "name": "textAreaRef",
2657
+ "name": "hideMenuSingleOption",
2750
2658
  "type": {
2751
- "text": "HTMLTextAreaElement"
2659
+ "text": "boolean"
2752
2660
  },
2753
- "privacy": "public"
2661
+ "default": "false"
2754
2662
  },
2755
2663
  {
2756
2664
  "kind": "field",
2757
- "name": "stopRecording",
2665
+ "name": "singleOption",
2758
2666
  "type": {
2759
- "text": "(() => void) | null"
2760
- },
2761
- "privacy": "private",
2762
- "default": "null"
2667
+ "text": "ActionMenuItem"
2668
+ }
2763
2669
  },
2764
2670
  {
2765
2671
  "kind": "field",
2766
- "name": "speechApplyDebounceTimer",
2672
+ "name": "actionsMenu",
2767
2673
  "type": {
2768
- "text": "ReturnType<typeof setTimeout> | null"
2769
- },
2770
- "privacy": "private",
2771
- "default": "null"
2674
+ "text": "HTMLElement"
2675
+ }
2772
2676
  },
2773
2677
  {
2774
2678
  "kind": "field",
2775
- "name": "speechAvailable",
2679
+ "name": "actionsOpener",
2776
2680
  "type": {
2777
- "text": "boolean"
2681
+ "text": "HTMLElement"
2682
+ }
2683
+ },
2684
+ {
2685
+ "kind": "field",
2686
+ "name": "positionTracker",
2687
+ "type": {
2688
+ "text": "AnchoredPopoverPositionTracker | undefined"
2778
2689
  },
2779
- "readonly": true
2690
+ "privacy": "private"
2780
2691
  },
2781
2692
  {
2782
2693
  "kind": "field",
2783
- "name": "criteriaChips",
2694
+ "name": "focusMenuOnOpen",
2784
2695
  "type": {
2785
- "text": "CriteriaChip[]"
2696
+ "text": "boolean"
2786
2697
  },
2787
- "readonly": true
2698
+ "privacy": "private",
2699
+ "default": "false",
2700
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2788
2701
  },
2789
2702
  {
2790
2703
  "kind": "method",
2791
- "name": "getFieldLabel",
2792
- "privacy": "private",
2793
- "return": {
2794
- "type": {
2795
- "text": "string"
2796
- }
2797
- },
2704
+ "name": "updateMenuPosition",
2705
+ "privacy": "private"
2706
+ },
2707
+ {
2708
+ "kind": "method",
2709
+ "name": "startTrackingPosition",
2710
+ "privacy": "private"
2711
+ },
2712
+ {
2713
+ "kind": "method",
2714
+ "name": "stopTrackingPosition",
2715
+ "privacy": "private"
2716
+ },
2717
+ {
2718
+ "kind": "method",
2719
+ "name": "definitionChanged",
2720
+ "privacy": "protected",
2798
2721
  "parameters": [
2799
2722
  {
2800
- "name": "fieldName",
2723
+ "name": "oldValue",
2801
2724
  "type": {
2802
- "text": "string"
2725
+ "text": "any"
2726
+ }
2727
+ },
2728
+ {
2729
+ "name": "newValue",
2730
+ "type": {
2731
+ "text": "any"
2803
2732
  }
2804
2733
  }
2805
2734
  ]
2806
2735
  },
2807
2736
  {
2808
2737
  "kind": "method",
2809
- "name": "toggleCriteriaView",
2810
- "return": {
2811
- "type": {
2812
- "text": "void"
2738
+ "name": "openChanged",
2739
+ "privacy": "protected"
2740
+ },
2741
+ {
2742
+ "kind": "method",
2743
+ "name": "toggleActionsMenuVisibility"
2744
+ },
2745
+ {
2746
+ "kind": "method",
2747
+ "name": "onPopoverToggle",
2748
+ "parameters": [
2749
+ {
2750
+ "name": "event",
2751
+ "type": {
2752
+ "text": "Event"
2753
+ }
2813
2754
  }
2814
- }
2755
+ ],
2756
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2815
2757
  },
2816
2758
  {
2817
2759
  "kind": "method",
2818
- "name": "removeChip",
2760
+ "name": "onIconOpenerKeydown",
2819
2761
  "return": {
2820
2762
  "type": {
2821
- "text": "void"
2763
+ "text": "boolean"
2822
2764
  }
2823
2765
  },
2824
2766
  "parameters": [
2825
2767
  {
2826
- "name": "groupIndex",
2768
+ "name": "event",
2827
2769
  "type": {
2828
- "text": "number"
2770
+ "text": "KeyboardEvent"
2829
2771
  }
2830
- },
2772
+ }
2773
+ ],
2774
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2775
+ },
2776
+ {
2777
+ "kind": "method",
2778
+ "name": "onActionMenuItemClick",
2779
+ "parameters": [
2831
2780
  {
2832
- "name": "clauseIndex",
2781
+ "name": "callback",
2833
2782
  "type": {
2834
- "text": "number"
2783
+ "text": "(rowData) => void | any"
2835
2784
  }
2836
2785
  }
2837
2786
  ]
2838
2787
  },
2839
2788
  {
2840
2789
  "kind": "method",
2841
- "name": "clearChips",
2790
+ "name": "isActionDisabled",
2842
2791
  "return": {
2843
2792
  "type": {
2844
- "text": "void"
2793
+ "text": "boolean"
2845
2794
  }
2846
- }
2795
+ },
2796
+ "parameters": [
2797
+ {
2798
+ "name": "action",
2799
+ "type": {
2800
+ "text": "ActionMenuItem"
2801
+ }
2802
+ }
2803
+ ],
2804
+ "description": "Resolves an action's `isDisabled` for the current row."
2847
2805
  },
2848
2806
  {
2849
- "kind": "method",
2850
- "name": "handleSubmit"
2807
+ "kind": "field",
2808
+ "name": "resolvedActions",
2809
+ "type": {
2810
+ "text": "ActionMenuItem[]"
2811
+ },
2812
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2813
+ "readonly": true
2851
2814
  },
2852
2815
  {
2853
- "kind": "method",
2854
- "name": "handleBlur"
2816
+ "kind": "field",
2817
+ "name": "hasVisibleActions",
2818
+ "type": {
2819
+ "text": "boolean"
2820
+ },
2821
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2822
+ "readonly": true
2855
2823
  },
2856
2824
  {
2857
- "kind": "method",
2858
- "name": "clear"
2825
+ "kind": "field",
2826
+ "name": "allActions",
2827
+ "type": {
2828
+ "text": "ActionMenuItem[]"
2829
+ },
2830
+ "readonly": true
2831
+ },
2832
+ {
2833
+ "kind": "field",
2834
+ "name": "rowData",
2835
+ "readonly": true
2859
2836
  },
2860
2837
  {
2861
2838
  "kind": "method",
2862
- "name": "toggleSpeechInput"
2839
+ "name": "getLabel",
2840
+ "parameters": [
2841
+ {
2842
+ "name": "name",
2843
+ "type": {
2844
+ "text": "string | ((rowData: any) => string)"
2845
+ }
2846
+ }
2847
+ ]
2863
2848
  },
2864
2849
  {
2865
2850
  "kind": "method",
2866
- "name": "clearSpeechApplyDebounce",
2867
- "privacy": "private"
2851
+ "name": "getTemplate",
2852
+ "parameters": [
2853
+ {
2854
+ "name": "prefix",
2855
+ "type": {
2856
+ "text": "string"
2857
+ }
2858
+ }
2859
+ ]
2868
2860
  },
2869
2861
  {
2870
2862
  "kind": "field",
@@ -2978,154 +2970,166 @@
2978
2970
  }
2979
2971
  }
2980
2972
  ],
2981
- "events": [
2973
+ "attributes": [
2974
+ {
2975
+ "name": "is-vertical",
2976
+ "type": {
2977
+ "text": "boolean"
2978
+ },
2979
+ "default": "false",
2980
+ "fieldName": "isVertical"
2981
+ },
2982
+ {
2983
+ "name": "add-default-actions",
2984
+ "type": {
2985
+ "text": "boolean"
2986
+ },
2987
+ "default": "true",
2988
+ "fieldName": "addDefaultActions"
2989
+ },
2990
+ {
2991
+ "name": "auto-close-on-action",
2992
+ "type": {
2993
+ "text": "boolean"
2994
+ },
2995
+ "default": "true",
2996
+ "fieldName": "autoCloseOnAction"
2997
+ },
2982
2998
  {
2983
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2984
- "name": "criteria-changed"
2999
+ "name": "name",
3000
+ "type": {
3001
+ "text": "string"
3002
+ },
3003
+ "default": "'Actions'",
3004
+ "fieldName": "name"
2985
3005
  },
2986
3006
  {
2987
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2988
- "name": "validation-errors"
2989
- }
2990
- ],
2991
- "attributes": [
3007
+ "name": "icon-name",
3008
+ "type": {
3009
+ "text": "string"
3010
+ },
3011
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3012
+ "fieldName": "iconName"
3013
+ },
2992
3014
  {
2993
- "name": "placeholder",
3015
+ "name": "open",
3016
+ "type": {
3017
+ "text": "boolean"
3018
+ },
3019
+ "default": "false",
3020
+ "fieldName": "open"
3021
+ },
3022
+ {
3023
+ "name": "buttonAppearance",
2994
3024
  "type": {
2995
3025
  "text": "string"
2996
3026
  },
2997
- "default": "'Describe your search criteria in natural language...'",
2998
- "fieldName": "placeholder"
3027
+ "fieldName": "buttonAppearance"
2999
3028
  },
3000
3029
  {
3030
+ "name": "hide-disabled",
3001
3031
  "type": {
3002
3032
  "text": "boolean"
3003
3033
  },
3004
- "fieldName": "disabled"
3034
+ "default": "false",
3035
+ "fieldName": "hideDisabled"
3036
+ },
3037
+ {
3038
+ "name": "hide-menu-single-option",
3039
+ "type": {
3040
+ "text": "boolean"
3041
+ },
3042
+ "default": "false",
3043
+ "fieldName": "hideMenuSingleOption"
3005
3044
  }
3006
3045
  ],
3007
3046
  "superclass": {
3008
3047
  "name": "FoundationElement",
3009
3048
  "package": "@microsoft/fast-foundation"
3010
3049
  },
3011
- "tagName": "%%prefix%%-ai-criteria-search",
3050
+ "tagName": "%%prefix%%-actions-menu",
3012
3051
  "customElement": true
3013
3052
  },
3014
3053
  {
3015
3054
  "kind": "variable",
3016
- "name": "foundationAiCriteriaSearchShadowOptions",
3017
- "type": {
3018
- "text": "ShadowRootInit"
3019
- },
3020
- "default": "undefined"
3021
- },
3022
- {
3023
- "kind": "variable",
3024
- "name": "defaultAiCriteriaSearchConfig",
3025
- "type": {
3026
- "text": "object"
3027
- },
3028
- "default": "{}"
3029
- },
3030
- {
3031
- "kind": "variable",
3032
- "name": "foundationAiCriteriaSearch"
3055
+ "name": "foundationActionsMenu",
3056
+ "description": "The Foundation Actions Menu",
3057
+ "privacy": "public"
3033
3058
  }
3034
3059
  ],
3035
3060
  "exports": [
3036
3061
  {
3037
3062
  "kind": "js",
3038
- "name": "AiCriteriaSearch",
3063
+ "name": "ActionsMenu",
3039
3064
  "declaration": {
3040
- "name": "AiCriteriaSearch",
3041
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3065
+ "name": "ActionsMenu",
3066
+ "module": "src/actions-menu/actions-menu.ts"
3042
3067
  }
3043
3068
  },
3044
3069
  {
3045
3070
  "kind": "js",
3046
- "name": "foundationAiCriteriaSearchShadowOptions",
3071
+ "name": "foundationActionsMenu",
3047
3072
  "declaration": {
3048
- "name": "foundationAiCriteriaSearchShadowOptions",
3049
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3073
+ "name": "foundationActionsMenu",
3074
+ "module": "src/actions-menu/actions-menu.ts"
3050
3075
  }
3051
- },
3076
+ }
3077
+ ]
3078
+ },
3079
+ {
3080
+ "kind": "javascript-module",
3081
+ "path": "src/actions-menu/ag-menu.styles.ts",
3082
+ "declarations": [
3052
3083
  {
3053
- "kind": "js",
3054
- "name": "defaultAiCriteriaSearchConfig",
3055
- "declaration": {
3056
- "name": "defaultAiCriteriaSearchConfig",
3057
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3058
- }
3059
- },
3084
+ "kind": "function",
3085
+ "name": "agMenuStyles",
3086
+ "return": {
3087
+ "type": {
3088
+ "text": ""
3089
+ }
3090
+ },
3091
+ "parameters": [
3092
+ {
3093
+ "name": "menuSelector",
3094
+ "type": {
3095
+ "text": "string"
3096
+ },
3097
+ "description": "Selects the menu surface. May be a selector list."
3098
+ },
3099
+ {
3100
+ "name": "itemSelector",
3101
+ "type": {
3102
+ "text": "string"
3103
+ },
3104
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3105
+ }
3106
+ ],
3107
+ "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.",
3108
+ "privacy": "public"
3109
+ }
3110
+ ],
3111
+ "exports": [
3060
3112
  {
3061
3113
  "kind": "js",
3062
- "name": "foundationAiCriteriaSearch",
3114
+ "name": "agMenuStyles",
3063
3115
  "declaration": {
3064
- "name": "foundationAiCriteriaSearch",
3065
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3116
+ "name": "agMenuStyles",
3117
+ "module": "src/actions-menu/ag-menu.styles.ts"
3066
3118
  }
3067
3119
  }
3068
3120
  ]
3069
3121
  },
3070
3122
  {
3071
3123
  "kind": "javascript-module",
3072
- "path": "src/ai-criteria-search/index.ts",
3124
+ "path": "src/actions-menu/index.ts",
3073
3125
  "declarations": [],
3074
3126
  "exports": [
3075
- {
3076
- "kind": "js",
3077
- "name": "AiCriteriaSearch",
3078
- "declaration": {
3079
- "name": "AiCriteriaSearch",
3080
- "module": "./ai-criteria-search"
3081
- }
3082
- },
3083
- {
3084
- "kind": "js",
3085
- "name": "defaultAiCriteriaSearchConfig",
3086
- "declaration": {
3087
- "name": "defaultAiCriteriaSearchConfig",
3088
- "module": "./ai-criteria-search"
3089
- }
3090
- },
3091
- {
3092
- "kind": "js",
3093
- "name": "foundationAiCriteriaSearch",
3094
- "declaration": {
3095
- "name": "foundationAiCriteriaSearch",
3096
- "module": "./ai-criteria-search"
3097
- }
3098
- },
3099
- {
3100
- "kind": "js",
3101
- "name": "foundationAiCriteriaSearchShadowOptions",
3102
- "declaration": {
3103
- "name": "foundationAiCriteriaSearchShadowOptions",
3104
- "module": "./ai-criteria-search"
3105
- }
3106
- },
3107
- {
3108
- "kind": "js",
3109
- "name": "foundationAiCriteriaSearchStyles",
3110
- "declaration": {
3111
- "name": "foundationAiCriteriaSearchStyles",
3112
- "module": "./ai-criteria-search.styles"
3113
- }
3114
- },
3115
- {
3116
- "kind": "js",
3117
- "name": "foundationAiCriteriaSearchTemplate",
3118
- "declaration": {
3119
- "name": "foundationAiCriteriaSearchTemplate",
3120
- "module": "./ai-criteria-search.template"
3121
- }
3122
- },
3123
3127
  {
3124
3128
  "kind": "js",
3125
3129
  "name": "*",
3126
3130
  "declaration": {
3127
3131
  "name": "*",
3128
- "package": "./validation/criteria-ir"
3132
+ "package": "./actions-menu.styles"
3129
3133
  }
3130
3134
  },
3131
3135
  {
@@ -3133,7 +3137,7 @@
3133
3137
  "name": "*",
3134
3138
  "declaration": {
3135
3139
  "name": "*",
3136
- "package": "./validation/operator-map"
3140
+ "package": "./actions-menu.template"
3137
3141
  }
3138
3142
  },
3139
3143
  {
@@ -3141,157 +3145,72 @@
3141
3145
  "name": "*",
3142
3146
  "declaration": {
3143
3147
  "name": "*",
3144
- "package": "./validation/schema-validator"
3145
- }
3146
- }
3147
- ]
3148
- },
3149
- {
3150
- "kind": "javascript-module",
3151
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3152
- "declarations": [
3153
- {
3154
- "kind": "function",
3155
- "name": "formatValidationErrors",
3156
- "return": {
3157
- "type": {
3158
- "text": "string"
3159
- }
3160
- },
3161
- "parameters": [
3162
- {
3163
- "name": "errors",
3164
- "type": {
3165
- "text": "ValidationError[]"
3166
- }
3167
- }
3168
- ],
3169
- "description": "Formats validation errors into a user-friendly message."
3170
- },
3171
- {
3172
- "kind": "function",
3173
- "name": "showCriteriaError",
3174
- "return": {
3175
- "type": {
3176
- "text": "void"
3177
- }
3178
- },
3179
- "parameters": [
3180
- {
3181
- "name": "title",
3182
- "type": {
3183
- "text": "string"
3184
- },
3185
- "description": "Notification title (e.g. \"Criteria validation error\")"
3186
- },
3187
- {
3188
- "name": "body",
3189
- "type": {
3190
- "text": "string"
3191
- },
3192
- "description": "Error message to display"
3193
- },
3194
- {
3195
- "name": "tagName",
3196
- "type": {
3197
- "text": "string"
3198
- },
3199
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3200
- }
3201
- ],
3202
- "description": "Shows a criteria error as a toast notification."
3203
- }
3204
- ],
3205
- "exports": [
3206
- {
3207
- "kind": "js",
3208
- "name": "formatValidationErrors",
3209
- "declaration": {
3210
- "name": "formatValidationErrors",
3211
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3148
+ "package": "./actions-menu"
3212
3149
  }
3213
3150
  },
3214
3151
  {
3215
3152
  "kind": "js",
3216
- "name": "showCriteriaError",
3153
+ "name": "*",
3217
3154
  "declaration": {
3218
- "name": "showCriteriaError",
3219
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3155
+ "name": "*",
3156
+ "package": "./ag-menu.styles"
3220
3157
  }
3221
3158
  }
3222
3159
  ]
3223
3160
  },
3224
3161
  {
3225
3162
  "kind": "javascript-module",
3226
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3163
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3227
3164
  "declarations": [
3228
3165
  {
3229
- "kind": "function",
3230
- "name": "foundationAiIndicatorStyles",
3231
- "return": {
3232
- "type": {
3233
- "text": "ElementStyles"
3234
- }
3235
- },
3236
- "parameters": [
3237
- {
3238
- "name": "context",
3239
- "type": {
3240
- "text": "ElementDefinitionContext"
3241
- }
3242
- },
3243
- {
3244
- "name": "definition",
3245
- "type": {
3246
- "text": "FoundationElementDefinition"
3247
- }
3248
- }
3249
- ]
3166
+ "kind": "variable",
3167
+ "name": "foundationAiCriteriaSearchStyles",
3168
+ "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`"
3250
3169
  }
3251
3170
  ],
3252
3171
  "exports": [
3253
3172
  {
3254
3173
  "kind": "js",
3255
- "name": "foundationAiIndicatorStyles",
3174
+ "name": "foundationAiCriteriaSearchStyles",
3256
3175
  "declaration": {
3257
- "name": "foundationAiIndicatorStyles",
3258
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3176
+ "name": "foundationAiCriteriaSearchStyles",
3177
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3259
3178
  }
3260
3179
  }
3261
3180
  ]
3262
3181
  },
3263
3182
  {
3264
3183
  "kind": "javascript-module",
3265
- "path": "src/ai-indicator/ai-indicator.template.ts",
3184
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3266
3185
  "declarations": [
3267
3186
  {
3268
3187
  "kind": "variable",
3269
- "name": "foundationAiIndicatorTemplate",
3188
+ "name": "foundationAiCriteriaSearchTemplate",
3270
3189
  "type": {
3271
- "text": "ViewTemplate<AiIndicator>"
3190
+ "text": "ViewTemplate<AiCriteriaSearch>"
3272
3191
  },
3273
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3192
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3274
3193
  }
3275
3194
  ],
3276
3195
  "exports": [
3277
3196
  {
3278
3197
  "kind": "js",
3279
- "name": "foundationAiIndicatorTemplate",
3198
+ "name": "foundationAiCriteriaSearchTemplate",
3280
3199
  "declaration": {
3281
- "name": "foundationAiIndicatorTemplate",
3282
- "module": "src/ai-indicator/ai-indicator.template.ts"
3200
+ "name": "foundationAiCriteriaSearchTemplate",
3201
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3283
3202
  }
3284
3203
  }
3285
3204
  ]
3286
3205
  },
3287
3206
  {
3288
3207
  "kind": "javascript-module",
3289
- "path": "src/ai-indicator/ai-indicator.ts",
3208
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3290
3209
  "declarations": [
3291
3210
  {
3292
3211
  "kind": "class",
3293
- "description": "",
3294
- "name": "AiIndicator",
3212
+ "description": "Natural-language criteria search input with AI interpretation.",
3213
+ "name": "AiCriteriaSearch",
3295
3214
  "members": [
3296
3215
  {
3297
3216
  "kind": "field",
@@ -3302,25 +3221,54 @@
3302
3221
  },
3303
3222
  {
3304
3223
  "kind": "field",
3305
- "name": "aiProvider",
3224
+ "name": "placeholder",
3306
3225
  "type": {
3307
- "text": "AIProvider | undefined"
3226
+ "text": "string"
3308
3227
  },
3309
- "privacy": "private",
3310
- "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.",
3311
- "readonly": true
3228
+ "default": "'Describe your search criteria in natural language...'"
3312
3229
  },
3313
3230
  {
3314
3231
  "kind": "field",
3315
- "name": "status",
3232
+ "name": "disabled",
3316
3233
  "type": {
3317
- "text": "AIStatus | null"
3234
+ "text": "boolean"
3235
+ }
3236
+ },
3237
+ {
3238
+ "kind": "field",
3239
+ "name": "inputValue",
3240
+ "type": {
3241
+ "text": "string"
3242
+ },
3243
+ "default": "''"
3244
+ },
3245
+ {
3246
+ "kind": "field",
3247
+ "name": "isInterpreting",
3248
+ "type": {
3249
+ "text": "boolean"
3250
+ },
3251
+ "default": "false"
3252
+ },
3253
+ {
3254
+ "kind": "field",
3255
+ "name": "lastValidCriteria",
3256
+ "type": {
3257
+ "text": "string | null"
3318
3258
  },
3319
3259
  "default": "null"
3320
3260
  },
3321
3261
  {
3322
3262
  "kind": "field",
3323
- "name": "open",
3263
+ "name": "activeGroups",
3264
+ "type": {
3265
+ "text": "CriteriaGroup[]"
3266
+ },
3267
+ "default": "[]"
3268
+ },
3269
+ {
3270
+ "kind": "field",
3271
+ "name": "showingChips",
3324
3272
  "type": {
3325
3273
  "text": "boolean"
3326
3274
  },
@@ -3328,15 +3276,15 @@
3328
3276
  },
3329
3277
  {
3330
3278
  "kind": "field",
3331
- "name": "state",
3279
+ "name": "fieldMetadata",
3332
3280
  "type": {
3333
- "text": "AIIndicatorState"
3281
+ "text": "MetadataDetail[] | string[]"
3334
3282
  },
3335
- "default": "'none'"
3283
+ "default": "[]"
3336
3284
  },
3337
3285
  {
3338
3286
  "kind": "field",
3339
- "name": "isInstalling",
3287
+ "name": "isRecording",
3340
3288
  "type": {
3341
3289
  "text": "boolean"
3342
3290
  },
@@ -3344,29 +3292,33 @@
3344
3292
  },
3345
3293
  {
3346
3294
  "kind": "field",
3347
- "name": "pollTimer",
3295
+ "name": "textAreaRef",
3348
3296
  "type": {
3349
- "text": "ReturnType<typeof setInterval> | null"
3297
+ "text": "HTMLTextAreaElement"
3350
3298
  },
3351
- "privacy": "private",
3352
- "default": "null"
3299
+ "privacy": "public"
3353
3300
  },
3354
3301
  {
3355
3302
  "kind": "field",
3356
- "name": "clickOutside",
3357
- "privacy": "private"
3303
+ "name": "stopRecording",
3304
+ "type": {
3305
+ "text": "(() => void) | null"
3306
+ },
3307
+ "privacy": "private",
3308
+ "default": "null"
3358
3309
  },
3359
3310
  {
3360
3311
  "kind": "field",
3361
- "name": "chromeStatusLabel",
3312
+ "name": "speechApplyDebounceTimer",
3362
3313
  "type": {
3363
- "text": "string | null"
3314
+ "text": "ReturnType<typeof setTimeout> | null"
3364
3315
  },
3365
- "readonly": true
3316
+ "privacy": "private",
3317
+ "default": "null"
3366
3318
  },
3367
3319
  {
3368
3320
  "kind": "field",
3369
- "name": "canInstall",
3321
+ "name": "speechAvailable",
3370
3322
  "type": {
3371
3323
  "text": "boolean"
3372
3324
  },
@@ -3374,69 +3326,65 @@
3374
3326
  },
3375
3327
  {
3376
3328
  "kind": "field",
3377
- "name": "isDownloading",
3329
+ "name": "criteriaChips",
3378
3330
  "type": {
3379
- "text": "boolean"
3331
+ "text": "CriteriaChip[]"
3380
3332
  },
3381
3333
  "readonly": true
3382
3334
  },
3383
3335
  {
3384
3336
  "kind": "method",
3385
- "name": "openChanged",
3337
+ "name": "getFieldLabel",
3338
+ "privacy": "private",
3386
3339
  "return": {
3387
3340
  "type": {
3388
- "text": "void"
3341
+ "text": "string"
3389
3342
  }
3390
- }
3391
- },
3392
- {
3393
- "kind": "method",
3394
- "name": "handleClickOutside",
3395
- "privacy": "private",
3343
+ },
3396
3344
  "parameters": [
3397
3345
  {
3398
- "name": "event",
3346
+ "name": "fieldName",
3399
3347
  "type": {
3400
- "text": "MouseEvent"
3348
+ "text": "string"
3401
3349
  }
3402
3350
  }
3403
3351
  ]
3404
3352
  },
3405
3353
  {
3406
3354
  "kind": "method",
3407
- "name": "toggleDropdown"
3408
- },
3409
- {
3410
- "kind": "method",
3411
- "name": "refreshStatus",
3355
+ "name": "toggleCriteriaView",
3412
3356
  "return": {
3413
3357
  "type": {
3414
- "text": "Promise<void>"
3358
+ "text": "void"
3415
3359
  }
3416
3360
  }
3417
3361
  },
3418
3362
  {
3419
3363
  "kind": "method",
3420
- "name": "deriveState",
3421
- "privacy": "private",
3364
+ "name": "removeChip",
3422
3365
  "return": {
3423
3366
  "type": {
3424
- "text": "AIIndicatorState"
3367
+ "text": "void"
3425
3368
  }
3426
3369
  },
3427
3370
  "parameters": [
3428
3371
  {
3429
- "name": "s",
3372
+ "name": "groupIndex",
3430
3373
  "type": {
3431
- "text": "AIStatus | null"
3374
+ "text": "number"
3375
+ }
3376
+ },
3377
+ {
3378
+ "name": "clauseIndex",
3379
+ "type": {
3380
+ "text": "number"
3432
3381
  }
3433
3382
  }
3434
3383
  ]
3435
3384
  },
3436
3385
  {
3437
3386
  "kind": "method",
3438
- "name": "maybeStartPolling",
3439
- "privacy": "private",
3387
+ "name": "clearChips",
3440
3388
  "return": {
3441
3389
  "type": {
3442
3390
  "text": "void"
@@ -3445,32 +3393,24 @@
3445
3393
  },
3446
3394
  {
3447
3395
  "kind": "method",
3448
- "name": "startPolling",
3449
- "privacy": "private",
3450
- "return": {
3451
- "type": {
3452
- "text": "void"
3453
- }
3454
- }
3396
+ "name": "handleSubmit"
3455
3397
  },
3456
3398
  {
3457
3399
  "kind": "method",
3458
- "name": "stopPolling",
3459
- "privacy": "private",
3460
- "return": {
3461
- "type": {
3462
- "text": "void"
3463
- }
3464
- }
3400
+ "name": "handleBlur"
3465
3401
  },
3466
3402
  {
3467
3403
  "kind": "method",
3468
- "name": "onInstall",
3469
- "return": {
3470
- "type": {
3471
- "text": "Promise<void>"
3472
- }
3473
- }
3404
+ "name": "clear"
3405
+ },
3406
+ {
3407
+ "kind": "method",
3408
+ "name": "toggleSpeechInput"
3409
+ },
3410
+ {
3411
+ "kind": "method",
3412
+ "name": "clearSpeechApplyDebounce",
3413
+ "privacy": "private"
3474
3414
  },
3475
3415
  {
3476
3416
  "kind": "field",
@@ -3584,103 +3524,154 @@
3584
3524
  }
3585
3525
  }
3586
3526
  ],
3527
+ "events": [
3528
+ {
3529
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3530
+ "name": "criteria-changed"
3531
+ },
3532
+ {
3533
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3534
+ "name": "validation-errors"
3535
+ }
3536
+ ],
3537
+ "attributes": [
3538
+ {
3539
+ "name": "placeholder",
3540
+ "type": {
3541
+ "text": "string"
3542
+ },
3543
+ "default": "'Describe your search criteria in natural language...'",
3544
+ "fieldName": "placeholder"
3545
+ },
3546
+ {
3547
+ "type": {
3548
+ "text": "boolean"
3549
+ },
3550
+ "fieldName": "disabled"
3551
+ }
3552
+ ],
3587
3553
  "superclass": {
3588
3554
  "name": "FoundationElement",
3589
3555
  "package": "@microsoft/fast-foundation"
3590
3556
  },
3591
- "tagName": "%%prefix%%-ai-indicator",
3557
+ "tagName": "%%prefix%%-ai-criteria-search",
3592
3558
  "customElement": true
3593
3559
  },
3594
3560
  {
3595
3561
  "kind": "variable",
3596
- "name": "foundationAiIndicator"
3562
+ "name": "foundationAiCriteriaSearchShadowOptions",
3563
+ "type": {
3564
+ "text": "ShadowRootInit"
3565
+ },
3566
+ "default": "undefined"
3567
+ },
3568
+ {
3569
+ "kind": "variable",
3570
+ "name": "defaultAiCriteriaSearchConfig",
3571
+ "type": {
3572
+ "text": "object"
3573
+ },
3574
+ "default": "{}"
3575
+ },
3576
+ {
3577
+ "kind": "variable",
3578
+ "name": "foundationAiCriteriaSearch"
3597
3579
  }
3598
3580
  ],
3599
3581
  "exports": [
3600
3582
  {
3601
3583
  "kind": "js",
3602
- "name": "AiIndicator",
3584
+ "name": "AiCriteriaSearch",
3603
3585
  "declaration": {
3604
- "name": "AiIndicator",
3605
- "module": "src/ai-indicator/ai-indicator.ts"
3586
+ "name": "AiCriteriaSearch",
3587
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3606
3588
  }
3607
3589
  },
3608
3590
  {
3609
3591
  "kind": "js",
3610
- "name": "foundationAiIndicator",
3592
+ "name": "foundationAiCriteriaSearchShadowOptions",
3611
3593
  "declaration": {
3612
- "name": "foundationAiIndicator",
3613
- "module": "src/ai-indicator/ai-indicator.ts"
3594
+ "name": "foundationAiCriteriaSearchShadowOptions",
3595
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3596
+ }
3597
+ },
3598
+ {
3599
+ "kind": "js",
3600
+ "name": "defaultAiCriteriaSearchConfig",
3601
+ "declaration": {
3602
+ "name": "defaultAiCriteriaSearchConfig",
3603
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3604
+ }
3605
+ },
3606
+ {
3607
+ "kind": "js",
3608
+ "name": "foundationAiCriteriaSearch",
3609
+ "declaration": {
3610
+ "name": "foundationAiCriteriaSearch",
3611
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3614
3612
  }
3615
3613
  }
3616
3614
  ]
3617
3615
  },
3618
3616
  {
3619
3617
  "kind": "javascript-module",
3620
- "path": "src/ai-indicator/index.ts",
3618
+ "path": "src/ai-criteria-search/index.ts",
3621
3619
  "declarations": [],
3622
3620
  "exports": [
3623
3621
  {
3624
3622
  "kind": "js",
3625
- "name": "AiIndicator",
3623
+ "name": "AiCriteriaSearch",
3626
3624
  "declaration": {
3627
- "name": "AiIndicator",
3628
- "module": "./ai-indicator"
3625
+ "name": "AiCriteriaSearch",
3626
+ "module": "./ai-criteria-search"
3629
3627
  }
3630
3628
  },
3631
3629
  {
3632
3630
  "kind": "js",
3633
- "name": "foundationAiIndicator",
3631
+ "name": "defaultAiCriteriaSearchConfig",
3634
3632
  "declaration": {
3635
- "name": "foundationAiIndicator",
3636
- "module": "./ai-indicator"
3633
+ "name": "defaultAiCriteriaSearchConfig",
3634
+ "module": "./ai-criteria-search"
3637
3635
  }
3638
3636
  },
3639
3637
  {
3640
3638
  "kind": "js",
3641
- "name": "type",
3639
+ "name": "foundationAiCriteriaSearch",
3642
3640
  "declaration": {
3643
- "name": "type",
3644
- "module": "./ai-indicator"
3641
+ "name": "foundationAiCriteriaSearch",
3642
+ "module": "./ai-criteria-search"
3645
3643
  }
3646
3644
  },
3647
3645
  {
3648
3646
  "kind": "js",
3649
- "name": "AIIndicatorState",
3647
+ "name": "foundationAiCriteriaSearchShadowOptions",
3650
3648
  "declaration": {
3651
- "name": "AIIndicatorState",
3652
- "module": "./ai-indicator"
3649
+ "name": "foundationAiCriteriaSearchShadowOptions",
3650
+ "module": "./ai-criteria-search"
3653
3651
  }
3654
3652
  },
3655
3653
  {
3656
3654
  "kind": "js",
3657
- "name": "foundationAiIndicatorTemplate",
3655
+ "name": "foundationAiCriteriaSearchStyles",
3658
3656
  "declaration": {
3659
- "name": "foundationAiIndicatorTemplate",
3660
- "module": "./ai-indicator.template"
3657
+ "name": "foundationAiCriteriaSearchStyles",
3658
+ "module": "./ai-criteria-search.styles"
3661
3659
  }
3662
3660
  },
3663
3661
  {
3664
3662
  "kind": "js",
3665
- "name": "foundationAiIndicatorStyles",
3663
+ "name": "foundationAiCriteriaSearchTemplate",
3666
3664
  "declaration": {
3667
- "name": "foundationAiIndicatorStyles",
3668
- "module": "./ai-indicator.styles"
3665
+ "name": "foundationAiCriteriaSearchTemplate",
3666
+ "module": "./ai-criteria-search.template"
3669
3667
  }
3670
- }
3671
- ]
3672
- },
3673
- {
3674
- "kind": "javascript-module",
3675
- "path": "src/_config/index.ts",
3676
- "declarations": [],
3677
- "exports": [
3668
+ },
3678
3669
  {
3679
3670
  "kind": "js",
3680
3671
  "name": "*",
3681
3672
  "declaration": {
3682
3673
  "name": "*",
3683
- "package": "./styles"
3674
+ "package": "./validation/criteria-ir"
3684
3675
  }
3685
3676
  },
3686
3677
  {
@@ -3688,7 +3679,7 @@
3688
3679
  "name": "*",
3689
3680
  "declaration": {
3690
3681
  "name": "*",
3691
- "package": "./tokens"
3682
+ "package": "./validation/operator-map"
3692
3683
  }
3693
3684
  },
3694
3685
  {
@@ -3696,60 +3687,96 @@
3696
3687
  "name": "*",
3697
3688
  "declaration": {
3698
3689
  "name": "*",
3699
- "package": "./values"
3690
+ "package": "./validation/schema-validator"
3700
3691
  }
3701
3692
  }
3702
3693
  ]
3703
3694
  },
3704
3695
  {
3705
3696
  "kind": "javascript-module",
3706
- "path": "src/accordion/accordion.styles.ts",
3697
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3707
3698
  "declarations": [
3708
3699
  {
3709
3700
  "kind": "function",
3710
- "name": "foundationAccordionStyles",
3701
+ "name": "formatValidationErrors",
3711
3702
  "return": {
3712
3703
  "type": {
3713
- "text": "ElementStyles"
3704
+ "text": "string"
3714
3705
  }
3715
3706
  },
3716
3707
  "parameters": [
3717
3708
  {
3718
- "name": "context",
3709
+ "name": "errors",
3719
3710
  "type": {
3720
- "text": "ElementDefinitionContext"
3711
+ "text": "ValidationError[]"
3721
3712
  }
3713
+ }
3714
+ ],
3715
+ "description": "Formats validation errors into a user-friendly message."
3716
+ },
3717
+ {
3718
+ "kind": "function",
3719
+ "name": "showCriteriaError",
3720
+ "return": {
3721
+ "type": {
3722
+ "text": "void"
3723
+ }
3724
+ },
3725
+ "parameters": [
3726
+ {
3727
+ "name": "title",
3728
+ "type": {
3729
+ "text": "string"
3730
+ },
3731
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3722
3732
  },
3723
3733
  {
3724
- "name": "definition",
3734
+ "name": "body",
3725
3735
  "type": {
3726
- "text": "FoundationElementDefinition"
3727
- }
3736
+ "text": "string"
3737
+ },
3738
+ "description": "Error message to display"
3739
+ },
3740
+ {
3741
+ "name": "tagName",
3742
+ "type": {
3743
+ "text": "string"
3744
+ },
3745
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3728
3746
  }
3729
- ]
3747
+ ],
3748
+ "description": "Shows a criteria error as a toast notification."
3730
3749
  }
3731
3750
  ],
3732
3751
  "exports": [
3733
3752
  {
3734
3753
  "kind": "js",
3735
- "name": "foundationAccordionStyles",
3754
+ "name": "formatValidationErrors",
3736
3755
  "declaration": {
3737
- "name": "foundationAccordionStyles",
3738
- "module": "src/accordion/accordion.styles.ts"
3756
+ "name": "formatValidationErrors",
3757
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3758
+ }
3759
+ },
3760
+ {
3761
+ "kind": "js",
3762
+ "name": "showCriteriaError",
3763
+ "declaration": {
3764
+ "name": "showCriteriaError",
3765
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3739
3766
  }
3740
3767
  }
3741
3768
  ]
3742
3769
  },
3743
3770
  {
3744
3771
  "kind": "javascript-module",
3745
- "path": "src/accordion/accordion.template.ts",
3772
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3746
3773
  "declarations": [
3747
3774
  {
3748
3775
  "kind": "function",
3749
- "name": "foundationAccordionTemplate",
3776
+ "name": "foundationAiIndicatorStyles",
3750
3777
  "return": {
3751
3778
  "type": {
3752
- "text": "ViewTemplate<Accordion>"
3779
+ "text": "ElementStyles"
3753
3780
  }
3754
3781
  },
3755
3782
  "parameters": [
@@ -3771,237 +3798,224 @@
3771
3798
  "exports": [
3772
3799
  {
3773
3800
  "kind": "js",
3774
- "name": "foundationAccordionTemplate",
3801
+ "name": "foundationAiIndicatorStyles",
3775
3802
  "declaration": {
3776
- "name": "foundationAccordionTemplate",
3777
- "module": "src/accordion/accordion.template.ts"
3803
+ "name": "foundationAiIndicatorStyles",
3804
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3778
3805
  }
3779
3806
  }
3780
3807
  ]
3781
3808
  },
3782
3809
  {
3783
3810
  "kind": "javascript-module",
3784
- "path": "src/accordion/accordion.ts",
3811
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3812
+ "declarations": [
3813
+ {
3814
+ "kind": "variable",
3815
+ "name": "foundationAiIndicatorTemplate",
3816
+ "type": {
3817
+ "text": "ViewTemplate<AiIndicator>"
3818
+ },
3819
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3820
+ }
3821
+ ],
3822
+ "exports": [
3823
+ {
3824
+ "kind": "js",
3825
+ "name": "foundationAiIndicatorTemplate",
3826
+ "declaration": {
3827
+ "name": "foundationAiIndicatorTemplate",
3828
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3829
+ }
3830
+ }
3831
+ ]
3832
+ },
3833
+ {
3834
+ "kind": "javascript-module",
3835
+ "path": "src/ai-indicator/ai-indicator.ts",
3785
3836
  "declarations": [
3786
3837
  {
3787
3838
  "kind": "class",
3788
3839
  "description": "",
3789
- "name": "Accordion",
3790
- "superclass": {
3791
- "name": "FASTAccordion",
3792
- "package": "@microsoft/fast-foundation"
3793
- },
3794
- "tagName": "%%prefix%%-accordion",
3795
- "customElement": true,
3796
- "attributes": [
3840
+ "name": "AiIndicator",
3841
+ "members": [
3797
3842
  {
3798
- "name": "expand-mode",
3843
+ "kind": "field",
3844
+ "name": "providerRegistry",
3799
3845
  "type": {
3800
- "text": "AccordionExpandMode"
3801
- },
3802
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3803
- "fieldName": "expandmode",
3804
- "inheritedFrom": {
3805
- "name": "Accordion",
3806
- "module": "src/accordion/accordion.ts"
3846
+ "text": "AIProviderRegistry"
3807
3847
  }
3808
- }
3809
- ],
3810
- "members": [
3848
+ },
3811
3849
  {
3812
3850
  "kind": "field",
3813
- "name": "expandmode",
3851
+ "name": "aiProvider",
3814
3852
  "type": {
3815
- "text": "AccordionExpandMode"
3853
+ "text": "AIProvider | undefined"
3816
3854
  },
3817
- "privacy": "public",
3818
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3819
- "inheritedFrom": {
3820
- "name": "Accordion",
3821
- "module": "src/accordion/accordion.ts"
3822
- }
3855
+ "privacy": "private",
3856
+ "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.",
3857
+ "readonly": true
3823
3858
  },
3824
3859
  {
3825
3860
  "kind": "field",
3826
- "name": "activeid",
3861
+ "name": "status",
3827
3862
  "type": {
3828
- "text": "string | null"
3863
+ "text": "AIStatus | null"
3829
3864
  },
3830
- "privacy": "private",
3831
- "inheritedFrom": {
3832
- "name": "Accordion",
3833
- "module": "src/accordion/accordion.ts"
3834
- }
3865
+ "default": "null"
3835
3866
  },
3836
3867
  {
3837
3868
  "kind": "field",
3838
- "name": "activeItemIndex",
3869
+ "name": "open",
3839
3870
  "type": {
3840
- "text": "number"
3871
+ "text": "boolean"
3841
3872
  },
3842
- "privacy": "private",
3843
- "default": "0",
3844
- "inheritedFrom": {
3845
- "name": "Accordion",
3846
- "module": "src/accordion/accordion.ts"
3847
- }
3873
+ "default": "false"
3848
3874
  },
3849
3875
  {
3850
3876
  "kind": "field",
3851
- "name": "accordionIds",
3877
+ "name": "state",
3852
3878
  "type": {
3853
- "text": "Array<string | null>"
3879
+ "text": "AIIndicatorState"
3854
3880
  },
3855
- "privacy": "private",
3856
- "inheritedFrom": {
3857
- "name": "Accordion",
3858
- "module": "src/accordion/accordion.ts"
3859
- }
3881
+ "default": "'none'"
3860
3882
  },
3861
3883
  {
3862
3884
  "kind": "field",
3863
- "name": "change",
3864
- "privacy": "private",
3865
- "inheritedFrom": {
3866
- "name": "Accordion",
3867
- "module": "src/accordion/accordion.ts"
3868
- }
3885
+ "name": "isInstalling",
3886
+ "type": {
3887
+ "text": "boolean"
3888
+ },
3889
+ "default": "false"
3869
3890
  },
3870
3891
  {
3871
- "kind": "method",
3872
- "name": "findExpandedItem",
3892
+ "kind": "field",
3893
+ "name": "pollTimer",
3894
+ "type": {
3895
+ "text": "ReturnType<typeof setInterval> | null"
3896
+ },
3873
3897
  "privacy": "private",
3874
- "return": {
3875
- "type": {
3876
- "text": "AccordionItem | null"
3877
- }
3898
+ "default": "null"
3899
+ },
3900
+ {
3901
+ "kind": "field",
3902
+ "name": "clickOutside",
3903
+ "privacy": "private"
3904
+ },
3905
+ {
3906
+ "kind": "field",
3907
+ "name": "chromeStatusLabel",
3908
+ "type": {
3909
+ "text": "string | null"
3878
3910
  },
3879
- "inheritedFrom": {
3880
- "name": "Accordion",
3881
- "module": "src/accordion/accordion.ts"
3882
- }
3911
+ "readonly": true
3883
3912
  },
3884
3913
  {
3885
3914
  "kind": "field",
3886
- "name": "setItems",
3887
- "privacy": "private",
3888
- "inheritedFrom": {
3889
- "name": "Accordion",
3890
- "module": "src/accordion/accordion.ts"
3891
- }
3915
+ "name": "canInstall",
3916
+ "type": {
3917
+ "text": "boolean"
3918
+ },
3919
+ "readonly": true
3920
+ },
3921
+ {
3922
+ "kind": "field",
3923
+ "name": "isDownloading",
3924
+ "type": {
3925
+ "text": "boolean"
3926
+ },
3927
+ "readonly": true
3892
3928
  },
3893
3929
  {
3894
3930
  "kind": "method",
3895
- "name": "resetItems",
3896
- "privacy": "private",
3931
+ "name": "openChanged",
3897
3932
  "return": {
3898
3933
  "type": {
3899
3934
  "text": "void"
3900
3935
  }
3901
- },
3902
- "inheritedFrom": {
3903
- "name": "Accordion",
3904
- "module": "src/accordion/accordion.ts"
3905
3936
  }
3906
3937
  },
3907
3938
  {
3908
- "kind": "field",
3909
- "name": "removeItemListeners",
3939
+ "kind": "method",
3940
+ "name": "handleClickOutside",
3910
3941
  "privacy": "private",
3911
- "inheritedFrom": {
3912
- "name": "Accordion",
3913
- "module": "src/accordion/accordion.ts"
3914
- }
3942
+ "parameters": [
3943
+ {
3944
+ "name": "event",
3945
+ "type": {
3946
+ "text": "MouseEvent"
3947
+ }
3948
+ }
3949
+ ]
3915
3950
  },
3916
3951
  {
3917
- "kind": "field",
3918
- "name": "activeItemChange",
3919
- "privacy": "private",
3920
- "inheritedFrom": {
3921
- "name": "Accordion",
3922
- "module": "src/accordion/accordion.ts"
3923
- }
3952
+ "kind": "method",
3953
+ "name": "toggleDropdown"
3924
3954
  },
3925
3955
  {
3926
3956
  "kind": "method",
3927
- "name": "getItemIds",
3928
- "privacy": "private",
3957
+ "name": "refreshStatus",
3929
3958
  "return": {
3930
3959
  "type": {
3931
- "text": "Array<string | null>"
3960
+ "text": "Promise<void>"
3932
3961
  }
3933
- },
3934
- "inheritedFrom": {
3935
- "name": "Accordion",
3936
- "module": "src/accordion/accordion.ts"
3937
3962
  }
3938
3963
  },
3939
3964
  {
3940
3965
  "kind": "method",
3941
- "name": "isSingleExpandMode",
3966
+ "name": "deriveState",
3942
3967
  "privacy": "private",
3943
3968
  "return": {
3944
3969
  "type": {
3945
- "text": "boolean"
3970
+ "text": "AIIndicatorState"
3946
3971
  }
3947
3972
  },
3948
- "inheritedFrom": {
3949
- "name": "Accordion",
3950
- "module": "src/accordion/accordion.ts"
3951
- }
3973
+ "parameters": [
3974
+ {
3975
+ "name": "s",
3976
+ "type": {
3977
+ "text": "AIStatus | null"
3978
+ }
3979
+ }
3980
+ ]
3952
3981
  },
3953
3982
  {
3954
- "kind": "field",
3955
- "name": "handleItemKeyDown",
3983
+ "kind": "method",
3984
+ "name": "maybeStartPolling",
3956
3985
  "privacy": "private",
3957
- "inheritedFrom": {
3958
- "name": "Accordion",
3959
- "module": "src/accordion/accordion.ts"
3986
+ "return": {
3987
+ "type": {
3988
+ "text": "void"
3989
+ }
3960
3990
  }
3961
3991
  },
3962
3992
  {
3963
- "kind": "field",
3964
- "name": "handleItemFocus",
3993
+ "kind": "method",
3994
+ "name": "startPolling",
3965
3995
  "privacy": "private",
3966
- "inheritedFrom": {
3967
- "name": "Accordion",
3968
- "module": "src/accordion/accordion.ts"
3996
+ "return": {
3997
+ "type": {
3998
+ "text": "void"
3999
+ }
3969
4000
  }
3970
4001
  },
3971
4002
  {
3972
4003
  "kind": "method",
3973
- "name": "adjust",
4004
+ "name": "stopPolling",
3974
4005
  "privacy": "private",
3975
4006
  "return": {
3976
4007
  "type": {
3977
4008
  "text": "void"
3978
4009
  }
3979
- },
3980
- "parameters": [
3981
- {
3982
- "name": "adjustment",
3983
- "type": {
3984
- "text": "number"
3985
- }
3986
- }
3987
- ],
3988
- "inheritedFrom": {
3989
- "name": "Accordion",
3990
- "module": "src/accordion/accordion.ts"
3991
4010
  }
3992
4011
  },
3993
4012
  {
3994
4013
  "kind": "method",
3995
- "name": "focusItem",
3996
- "privacy": "private",
4014
+ "name": "onInstall",
3997
4015
  "return": {
3998
4016
  "type": {
3999
- "text": "void"
4017
+ "text": "Promise<void>"
4000
4018
  }
4001
- },
4002
- "inheritedFrom": {
4003
- "name": "Accordion",
4004
- "module": "src/accordion/accordion.ts"
4005
4019
  }
4006
4020
  },
4007
4021
  {
@@ -4116,102 +4130,88 @@
4116
4130
  }
4117
4131
  }
4118
4132
  ],
4119
- "events": [
4120
- {
4121
- "description": "Fires a custom 'change' event when the active item changes",
4122
- "name": "change",
4123
- "inheritedFrom": {
4124
- "name": "Accordion",
4125
- "module": "src/accordion/accordion.ts"
4126
- }
4127
- }
4128
- ]
4129
- },
4130
- {
4131
- "kind": "variable",
4132
- "name": "foundationAccordionShadowOptions",
4133
- "type": {
4134
- "text": "ShadowRootInit"
4135
- },
4136
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
4137
- },
4138
- {
4139
- "kind": "variable",
4140
- "name": "defaultAccordionConfig",
4141
- "type": {
4142
- "text": "object"
4133
+ "superclass": {
4134
+ "name": "FoundationElement",
4135
+ "package": "@microsoft/fast-foundation"
4143
4136
  },
4144
- "default": "{}"
4137
+ "tagName": "%%prefix%%-ai-indicator",
4138
+ "customElement": true
4145
4139
  },
4146
4140
  {
4147
4141
  "kind": "variable",
4148
- "name": "foundationAccordion",
4149
- "description": "The Foundation Accordion",
4150
- "privacy": "public"
4142
+ "name": "foundationAiIndicator"
4151
4143
  }
4152
4144
  ],
4153
4145
  "exports": [
4154
4146
  {
4155
4147
  "kind": "js",
4156
- "name": "Accordion",
4148
+ "name": "AiIndicator",
4157
4149
  "declaration": {
4158
- "name": "Accordion",
4159
- "module": "src/accordion/accordion.ts"
4150
+ "name": "AiIndicator",
4151
+ "module": "src/ai-indicator/ai-indicator.ts"
4160
4152
  }
4161
4153
  },
4162
4154
  {
4163
4155
  "kind": "js",
4164
- "name": "foundationAccordionShadowOptions",
4156
+ "name": "foundationAiIndicator",
4165
4157
  "declaration": {
4166
- "name": "foundationAccordionShadowOptions",
4167
- "module": "src/accordion/accordion.ts"
4158
+ "name": "foundationAiIndicator",
4159
+ "module": "src/ai-indicator/ai-indicator.ts"
4160
+ }
4161
+ }
4162
+ ]
4163
+ },
4164
+ {
4165
+ "kind": "javascript-module",
4166
+ "path": "src/ai-indicator/index.ts",
4167
+ "declarations": [],
4168
+ "exports": [
4169
+ {
4170
+ "kind": "js",
4171
+ "name": "AiIndicator",
4172
+ "declaration": {
4173
+ "name": "AiIndicator",
4174
+ "module": "./ai-indicator"
4168
4175
  }
4169
4176
  },
4170
4177
  {
4171
4178
  "kind": "js",
4172
- "name": "defaultAccordionConfig",
4179
+ "name": "foundationAiIndicator",
4173
4180
  "declaration": {
4174
- "name": "defaultAccordionConfig",
4175
- "module": "src/accordion/accordion.ts"
4181
+ "name": "foundationAiIndicator",
4182
+ "module": "./ai-indicator"
4176
4183
  }
4177
4184
  },
4178
4185
  {
4179
4186
  "kind": "js",
4180
- "name": "foundationAccordion",
4187
+ "name": "type",
4181
4188
  "declaration": {
4182
- "name": "foundationAccordion",
4183
- "module": "src/accordion/accordion.ts"
4189
+ "name": "type",
4190
+ "module": "./ai-indicator"
4184
4191
  }
4185
- }
4186
- ]
4187
- },
4188
- {
4189
- "kind": "javascript-module",
4190
- "path": "src/accordion/index.ts",
4191
- "declarations": [],
4192
- "exports": [
4192
+ },
4193
4193
  {
4194
4194
  "kind": "js",
4195
- "name": "*",
4195
+ "name": "AIIndicatorState",
4196
4196
  "declaration": {
4197
- "name": "*",
4198
- "package": "./accordion.template"
4197
+ "name": "AIIndicatorState",
4198
+ "module": "./ai-indicator"
4199
4199
  }
4200
4200
  },
4201
4201
  {
4202
4202
  "kind": "js",
4203
- "name": "*",
4203
+ "name": "foundationAiIndicatorTemplate",
4204
4204
  "declaration": {
4205
- "name": "*",
4206
- "package": "./accordion.styles"
4205
+ "name": "foundationAiIndicatorTemplate",
4206
+ "module": "./ai-indicator.template"
4207
4207
  }
4208
4208
  },
4209
4209
  {
4210
4210
  "kind": "js",
4211
- "name": "*",
4211
+ "name": "foundationAiIndicatorStyles",
4212
4212
  "declaration": {
4213
- "name": "*",
4214
- "package": "./accordion"
4213
+ "name": "foundationAiIndicatorStyles",
4214
+ "module": "./ai-indicator.styles"
4215
4215
  }
4216
4216
  }
4217
4217
  ]
@@ -60776,197 +60776,6 @@
60776
60776
  }
60777
60777
  ]
60778
60778
  },
60779
- {
60780
- "kind": "javascript-module",
60781
- "path": "src/ai-criteria-search/validation/criteria-ir.ts",
60782
- "declarations": [],
60783
- "exports": []
60784
- },
60785
- {
60786
- "kind": "javascript-module",
60787
- "path": "src/ai-criteria-search/validation/operator-map.ts",
60788
- "declarations": [
60789
- {
60790
- "kind": "function",
60791
- "name": "groupsToCriteria",
60792
- "return": {
60793
- "type": {
60794
- "text": "string"
60795
- }
60796
- },
60797
- "parameters": [
60798
- {
60799
- "name": "groups",
60800
- "type": {
60801
- "text": "CriteriaGroup[]"
60802
- }
60803
- }
60804
- ],
60805
- "description": "Converts validated CriteriaGroup[] to a Groovy criteria string using CriteriaBuilder.\nGroups are AND-ed at top level. Within each group, clauses use group.logic (and/or).\nIf group.negated is true, the group's combined expression is wrapped in NOT."
60806
- },
60807
- {
60808
- "kind": "variable",
60809
- "name": "STRING_OPERATORS",
60810
- "type": {
60811
- "text": "CriteriaOperator[]"
60812
- },
60813
- "default": "[\n 'contains',\n 'equals',\n 'startsWith',\n 'notEqual',\n]"
60814
- },
60815
- {
60816
- "kind": "variable",
60817
- "name": "NUMERIC_OPERATORS",
60818
- "type": {
60819
- "text": "CriteriaOperator[]"
60820
- },
60821
- "default": "[\n 'equals',\n 'greaterThan',\n 'lessThan',\n 'greaterThanOrEqual',\n 'lessThanOrEqual',\n 'notEqual',\n]"
60822
- },
60823
- {
60824
- "kind": "variable",
60825
- "name": "DATE_OPERATORS",
60826
- "type": {
60827
- "text": "CriteriaOperator[]"
60828
- },
60829
- "default": "[\n 'dateIsToday',\n 'dateIsAfter',\n 'dateIsBefore',\n 'dateIsEqual',\n 'dateIsGreaterEqual',\n 'dateIsLessEqual',\n]"
60830
- },
60831
- {
60832
- "kind": "variable",
60833
- "name": "DATETIME_OPERATORS",
60834
- "type": {
60835
- "text": "CriteriaOperator[]"
60836
- },
60837
- "default": "[\n 'dateTimeIsAfter',\n 'dateTimeIsBefore',\n 'dateTimeIsGreaterEqual',\n 'dateTimeIsLessEqual',\n]"
60838
- },
60839
- {
60840
- "kind": "variable",
60841
- "name": "OPERATOR_DISPLAY_LABEL",
60842
- "type": {
60843
- "text": "Record<CriteriaOperator, string>"
60844
- },
60845
- "default": "{\n contains: 'contains',\n equals: '=',\n startsWith: 'starts with',\n endsWith: 'ends with',\n notEqual: '≠',\n greaterThan: '>',\n lessThan: '<',\n greaterThanOrEqual: '≥',\n lessThanOrEqual: '≤',\n dateIsToday: 'is today',\n dateIsAfter: 'after',\n dateIsBefore: 'before',\n dateIsEqual: '=',\n dateIsGreaterEqual: '≥',\n dateIsLessEqual: '≤',\n dateTimeIsAfter: 'after',\n dateTimeIsBefore: 'before',\n dateTimeIsGreaterEqual: '≥',\n dateTimeIsLessEqual: '≤',\n}"
60846
- }
60847
- ],
60848
- "exports": [
60849
- {
60850
- "kind": "js",
60851
- "name": "groupsToCriteria",
60852
- "declaration": {
60853
- "name": "groupsToCriteria",
60854
- "module": "src/ai-criteria-search/validation/operator-map.ts"
60855
- }
60856
- },
60857
- {
60858
- "kind": "js",
60859
- "name": "STRING_OPERATORS",
60860
- "declaration": {
60861
- "name": "STRING_OPERATORS",
60862
- "module": "src/ai-criteria-search/validation/operator-map.ts"
60863
- }
60864
- },
60865
- {
60866
- "kind": "js",
60867
- "name": "NUMERIC_OPERATORS",
60868
- "declaration": {
60869
- "name": "NUMERIC_OPERATORS",
60870
- "module": "src/ai-criteria-search/validation/operator-map.ts"
60871
- }
60872
- },
60873
- {
60874
- "kind": "js",
60875
- "name": "DATE_OPERATORS",
60876
- "declaration": {
60877
- "name": "DATE_OPERATORS",
60878
- "module": "src/ai-criteria-search/validation/operator-map.ts"
60879
- }
60880
- },
60881
- {
60882
- "kind": "js",
60883
- "name": "DATETIME_OPERATORS",
60884
- "declaration": {
60885
- "name": "DATETIME_OPERATORS",
60886
- "module": "src/ai-criteria-search/validation/operator-map.ts"
60887
- }
60888
- },
60889
- {
60890
- "kind": "js",
60891
- "name": "OPERATOR_DISPLAY_LABEL",
60892
- "declaration": {
60893
- "name": "OPERATOR_DISPLAY_LABEL",
60894
- "module": "src/ai-criteria-search/validation/operator-map.ts"
60895
- }
60896
- }
60897
- ]
60898
- },
60899
- {
60900
- "kind": "javascript-module",
60901
- "path": "src/ai-criteria-search/validation/schema-validator.ts",
60902
- "declarations": [
60903
- {
60904
- "kind": "function",
60905
- "name": "validateClauses",
60906
- "return": {
60907
- "type": {
60908
- "text": "ValidationResult"
60909
- }
60910
- },
60911
- "parameters": [
60912
- {
60913
- "name": "clauses",
60914
- "type": {
60915
- "text": "CriteriaClause[]"
60916
- }
60917
- },
60918
- {
60919
- "name": "fieldMetadata",
60920
- "type": {
60921
- "text": "MetadataDetail[] | string[]"
60922
- }
60923
- }
60924
- ]
60925
- },
60926
- {
60927
- "kind": "function",
60928
- "name": "validateGroups",
60929
- "return": {
60930
- "type": {
60931
- "text": "GroupsValidationResult"
60932
- }
60933
- },
60934
- "parameters": [
60935
- {
60936
- "name": "groups",
60937
- "type": {
60938
- "text": "CriteriaGroup[]"
60939
- }
60940
- },
60941
- {
60942
- "name": "fieldMetadata",
60943
- "type": {
60944
- "text": "MetadataDetail[] | string[]"
60945
- }
60946
- }
60947
- ],
60948
- "description": "Validates groups of criteria clauses. Each group's clauses are validated\nusing the same per-clause logic as validateClauses."
60949
- }
60950
- ],
60951
- "exports": [
60952
- {
60953
- "kind": "js",
60954
- "name": "validateClauses",
60955
- "declaration": {
60956
- "name": "validateClauses",
60957
- "module": "src/ai-criteria-search/validation/schema-validator.ts"
60958
- }
60959
- },
60960
- {
60961
- "kind": "js",
60962
- "name": "validateGroups",
60963
- "declaration": {
60964
- "name": "validateGroups",
60965
- "module": "src/ai-criteria-search/validation/schema-validator.ts"
60966
- }
60967
- }
60968
- ]
60969
- },
60970
60779
  {
60971
60780
  "kind": "javascript-module",
60972
60781
  "path": "src/_config/styles/colors.ts",
@@ -62339,6 +62148,197 @@
62339
62148
  "declarations": [],
62340
62149
  "exports": []
62341
62150
  },
62151
+ {
62152
+ "kind": "javascript-module",
62153
+ "path": "src/ai-criteria-search/validation/criteria-ir.ts",
62154
+ "declarations": [],
62155
+ "exports": []
62156
+ },
62157
+ {
62158
+ "kind": "javascript-module",
62159
+ "path": "src/ai-criteria-search/validation/operator-map.ts",
62160
+ "declarations": [
62161
+ {
62162
+ "kind": "function",
62163
+ "name": "groupsToCriteria",
62164
+ "return": {
62165
+ "type": {
62166
+ "text": "string"
62167
+ }
62168
+ },
62169
+ "parameters": [
62170
+ {
62171
+ "name": "groups",
62172
+ "type": {
62173
+ "text": "CriteriaGroup[]"
62174
+ }
62175
+ }
62176
+ ],
62177
+ "description": "Converts validated CriteriaGroup[] to a Groovy criteria string using CriteriaBuilder.\nGroups are AND-ed at top level. Within each group, clauses use group.logic (and/or).\nIf group.negated is true, the group's combined expression is wrapped in NOT."
62178
+ },
62179
+ {
62180
+ "kind": "variable",
62181
+ "name": "STRING_OPERATORS",
62182
+ "type": {
62183
+ "text": "CriteriaOperator[]"
62184
+ },
62185
+ "default": "[\n 'contains',\n 'equals',\n 'startsWith',\n 'notEqual',\n]"
62186
+ },
62187
+ {
62188
+ "kind": "variable",
62189
+ "name": "NUMERIC_OPERATORS",
62190
+ "type": {
62191
+ "text": "CriteriaOperator[]"
62192
+ },
62193
+ "default": "[\n 'equals',\n 'greaterThan',\n 'lessThan',\n 'greaterThanOrEqual',\n 'lessThanOrEqual',\n 'notEqual',\n]"
62194
+ },
62195
+ {
62196
+ "kind": "variable",
62197
+ "name": "DATE_OPERATORS",
62198
+ "type": {
62199
+ "text": "CriteriaOperator[]"
62200
+ },
62201
+ "default": "[\n 'dateIsToday',\n 'dateIsAfter',\n 'dateIsBefore',\n 'dateIsEqual',\n 'dateIsGreaterEqual',\n 'dateIsLessEqual',\n]"
62202
+ },
62203
+ {
62204
+ "kind": "variable",
62205
+ "name": "DATETIME_OPERATORS",
62206
+ "type": {
62207
+ "text": "CriteriaOperator[]"
62208
+ },
62209
+ "default": "[\n 'dateTimeIsAfter',\n 'dateTimeIsBefore',\n 'dateTimeIsGreaterEqual',\n 'dateTimeIsLessEqual',\n]"
62210
+ },
62211
+ {
62212
+ "kind": "variable",
62213
+ "name": "OPERATOR_DISPLAY_LABEL",
62214
+ "type": {
62215
+ "text": "Record<CriteriaOperator, string>"
62216
+ },
62217
+ "default": "{\n contains: 'contains',\n equals: '=',\n startsWith: 'starts with',\n endsWith: 'ends with',\n notEqual: '≠',\n greaterThan: '>',\n lessThan: '<',\n greaterThanOrEqual: '≥',\n lessThanOrEqual: '≤',\n dateIsToday: 'is today',\n dateIsAfter: 'after',\n dateIsBefore: 'before',\n dateIsEqual: '=',\n dateIsGreaterEqual: '≥',\n dateIsLessEqual: '≤',\n dateTimeIsAfter: 'after',\n dateTimeIsBefore: 'before',\n dateTimeIsGreaterEqual: '≥',\n dateTimeIsLessEqual: '≤',\n}"
62218
+ }
62219
+ ],
62220
+ "exports": [
62221
+ {
62222
+ "kind": "js",
62223
+ "name": "groupsToCriteria",
62224
+ "declaration": {
62225
+ "name": "groupsToCriteria",
62226
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
62227
+ }
62228
+ },
62229
+ {
62230
+ "kind": "js",
62231
+ "name": "STRING_OPERATORS",
62232
+ "declaration": {
62233
+ "name": "STRING_OPERATORS",
62234
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
62235
+ }
62236
+ },
62237
+ {
62238
+ "kind": "js",
62239
+ "name": "NUMERIC_OPERATORS",
62240
+ "declaration": {
62241
+ "name": "NUMERIC_OPERATORS",
62242
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
62243
+ }
62244
+ },
62245
+ {
62246
+ "kind": "js",
62247
+ "name": "DATE_OPERATORS",
62248
+ "declaration": {
62249
+ "name": "DATE_OPERATORS",
62250
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
62251
+ }
62252
+ },
62253
+ {
62254
+ "kind": "js",
62255
+ "name": "DATETIME_OPERATORS",
62256
+ "declaration": {
62257
+ "name": "DATETIME_OPERATORS",
62258
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
62259
+ }
62260
+ },
62261
+ {
62262
+ "kind": "js",
62263
+ "name": "OPERATOR_DISPLAY_LABEL",
62264
+ "declaration": {
62265
+ "name": "OPERATOR_DISPLAY_LABEL",
62266
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
62267
+ }
62268
+ }
62269
+ ]
62270
+ },
62271
+ {
62272
+ "kind": "javascript-module",
62273
+ "path": "src/ai-criteria-search/validation/schema-validator.ts",
62274
+ "declarations": [
62275
+ {
62276
+ "kind": "function",
62277
+ "name": "validateClauses",
62278
+ "return": {
62279
+ "type": {
62280
+ "text": "ValidationResult"
62281
+ }
62282
+ },
62283
+ "parameters": [
62284
+ {
62285
+ "name": "clauses",
62286
+ "type": {
62287
+ "text": "CriteriaClause[]"
62288
+ }
62289
+ },
62290
+ {
62291
+ "name": "fieldMetadata",
62292
+ "type": {
62293
+ "text": "MetadataDetail[] | string[]"
62294
+ }
62295
+ }
62296
+ ]
62297
+ },
62298
+ {
62299
+ "kind": "function",
62300
+ "name": "validateGroups",
62301
+ "return": {
62302
+ "type": {
62303
+ "text": "GroupsValidationResult"
62304
+ }
62305
+ },
62306
+ "parameters": [
62307
+ {
62308
+ "name": "groups",
62309
+ "type": {
62310
+ "text": "CriteriaGroup[]"
62311
+ }
62312
+ },
62313
+ {
62314
+ "name": "fieldMetadata",
62315
+ "type": {
62316
+ "text": "MetadataDetail[] | string[]"
62317
+ }
62318
+ }
62319
+ ],
62320
+ "description": "Validates groups of criteria clauses. Each group's clauses are validated\nusing the same per-clause logic as validateClauses."
62321
+ }
62322
+ ],
62323
+ "exports": [
62324
+ {
62325
+ "kind": "js",
62326
+ "name": "validateClauses",
62327
+ "declaration": {
62328
+ "name": "validateClauses",
62329
+ "module": "src/ai-criteria-search/validation/schema-validator.ts"
62330
+ }
62331
+ },
62332
+ {
62333
+ "kind": "js",
62334
+ "name": "validateGroups",
62335
+ "declaration": {
62336
+ "name": "validateGroups",
62337
+ "module": "src/ai-criteria-search/validation/schema-validator.ts"
62338
+ }
62339
+ }
62340
+ ]
62341
+ },
62342
62342
  {
62343
62343
  "kind": "javascript-module",
62344
62344
  "path": "src/environment-indicator/utils/configure.ts",