@genesislcap/foundation-ui 15.24.2 → 15.25.0-FUI-2611.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -958,44 +958,27 @@
958
958
  },
959
959
  {
960
960
  "kind": "javascript-module",
961
- "path": "src/_common/affix-mixin.ts",
961
+ "path": "src/accordion-item/accordion-item.styles.ts",
962
962
  "declarations": [
963
963
  {
964
- "kind": "mixin",
965
- "description": "Mixin that adds prefix/suffix affix support with screen-reader handling to an input field component.\nShared between TextField and NumberField to keep the behaviour consistent and avoid duplication.",
966
- "name": "AffixMixin",
967
- "members": [
968
- {
969
- "kind": "field",
970
- "name": "prefix",
971
- "type": {
972
- "text": "string"
973
- },
974
- "description": "Optional non-editable label shown on the left inside the field, before the input."
975
- },
964
+ "kind": "function",
965
+ "name": "foundationAccordionItemStyles",
966
+ "return": {
967
+ "type": {
968
+ "text": "ElementStyles"
969
+ }
970
+ },
971
+ "parameters": [
976
972
  {
977
- "kind": "field",
978
- "name": "suffix",
973
+ "name": "context",
979
974
  "type": {
980
- "text": "string"
981
- },
982
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
975
+ "text": "ElementDefinitionContext"
976
+ }
983
977
  },
984
978
  {
985
- "kind": "field",
986
- "name": "hideAffixFromScreenReader",
987
- "type": {
988
- "text": "boolean"
989
- },
990
- "default": "false",
991
- "description": "When true, prefix/suffix are not exposed to assistive technology (`aria-hidden` on affixes,\nand their ids are omitted from the control's `aria-describedby`).\nUse only when the unit or symbol is redundant with the visible label or other text."
992
- }
993
- ],
994
- "parameters": [
995
- {
996
- "name": "Base",
979
+ "name": "definition",
997
980
  "type": {
998
- "text": "TBase"
981
+ "text": "FoundationElementDefinition"
999
982
  }
1000
983
  }
1001
984
  ]
@@ -1004,232 +987,156 @@
1004
987
  "exports": [
1005
988
  {
1006
989
  "kind": "js",
1007
- "name": "AffixMixin",
990
+ "name": "foundationAccordionItemStyles",
1008
991
  "declaration": {
1009
- "name": "AffixMixin",
1010
- "module": "src/_common/affix-mixin.ts"
992
+ "name": "foundationAccordionItemStyles",
993
+ "module": "src/accordion-item/accordion-item.styles.ts"
1011
994
  }
1012
995
  }
1013
996
  ]
1014
997
  },
1015
998
  {
1016
999
  "kind": "javascript-module",
1017
- "path": "src/_common/alert-flash-clock.ts",
1000
+ "path": "src/accordion-item/accordion-item.template.ts",
1018
1001
  "declarations": [
1019
- {
1020
- "kind": "variable",
1021
- "name": "alertFlashPhaseProperty",
1022
- "type": {
1023
- "text": "string"
1024
- },
1025
- "default": "'--alert-flash-t'",
1026
- "description": "Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.\n\nAlerting surfaces sample this rather than running animations of their own, because independent\nCSS animations start whenever their element started and drift apart. Registered as an\ninheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside\na component's shadow DOM stays in step with a tab header in the light DOM.",
1027
- "privacy": "public"
1028
- },
1029
- {
1030
- "kind": "variable",
1031
- "name": "alertFlashDurationProperty",
1032
- "type": {
1033
- "text": "string"
1034
- },
1035
- "default": "'--alert-flash-duration'",
1036
- "description": "Custom property setting how long one flash cycle takes. Set it on `:root` to retime every\nalerting surface at once.",
1037
- "privacy": "public"
1038
- },
1039
1002
  {
1040
1003
  "kind": "function",
1041
- "name": "installAlertFlashClock",
1004
+ "name": "foundationAccordionItemTemplate",
1042
1005
  "return": {
1043
1006
  "type": {
1044
- "text": "void"
1007
+ "text": "ViewTemplate<AccordionItem>"
1045
1008
  }
1046
1009
  },
1047
- "description": "Starts the document-level clock that alert flashes sample.\n\nSafe to call repeatedly and from any number of components — the first call does the work. Called\nautomatically by the components that flash, so apps only need this to start the clock earlier.\n\nDoes nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which\nleaves alerting surfaces on their static fallback colour rather than breaking them.",
1048
- "privacy": "public"
1010
+ "parameters": [
1011
+ {
1012
+ "name": "context",
1013
+ "type": {
1014
+ "text": "ElementDefinitionContext"
1015
+ }
1016
+ },
1017
+ {
1018
+ "name": "definition",
1019
+ "type": {
1020
+ "text": "FoundationElementDefinition"
1021
+ }
1022
+ }
1023
+ ]
1049
1024
  }
1050
1025
  ],
1051
1026
  "exports": [
1052
1027
  {
1053
1028
  "kind": "js",
1054
- "name": "alertFlashPhaseProperty",
1055
- "declaration": {
1056
- "name": "alertFlashPhaseProperty",
1057
- "module": "src/_common/alert-flash-clock.ts"
1058
- }
1059
- },
1060
- {
1061
- "kind": "js",
1062
- "name": "alertFlashDurationProperty",
1063
- "declaration": {
1064
- "name": "alertFlashDurationProperty",
1065
- "module": "src/_common/alert-flash-clock.ts"
1066
- }
1067
- },
1068
- {
1069
- "kind": "js",
1070
- "name": "installAlertFlashClock",
1029
+ "name": "foundationAccordionItemTemplate",
1071
1030
  "declaration": {
1072
- "name": "installAlertFlashClock",
1073
- "module": "src/_common/alert-flash-clock.ts"
1031
+ "name": "foundationAccordionItemTemplate",
1032
+ "module": "src/accordion-item/accordion-item.template.ts"
1074
1033
  }
1075
1034
  }
1076
1035
  ]
1077
1036
  },
1078
1037
  {
1079
1038
  "kind": "javascript-module",
1080
- "path": "src/_common/base-file-component.ts",
1039
+ "path": "src/accordion-item/accordion-item.ts",
1081
1040
  "declarations": [
1082
1041
  {
1083
1042
  "kind": "class",
1084
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1085
- "name": "BaseFileComponent",
1086
- "members": [
1043
+ "description": "",
1044
+ "name": "AccordionItem",
1045
+ "superclass": {
1046
+ "name": "FASTAccordionItem",
1047
+ "package": "@microsoft/fast-components"
1048
+ },
1049
+ "tagName": "%%prefix%%-accordion-item",
1050
+ "customElement": true,
1051
+ "attributes": [
1087
1052
  {
1088
- "kind": "field",
1089
- "name": "fileInput",
1053
+ "name": "heading-level",
1090
1054
  "type": {
1091
- "text": "HTMLInputElement"
1055
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1092
1056
  },
1093
- "privacy": "public"
1057
+ "default": "2",
1058
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1059
+ "fieldName": "headinglevel",
1060
+ "inheritedFrom": {
1061
+ "name": "AccordionItem",
1062
+ "module": "src/accordion-item/accordion-item.ts"
1063
+ }
1094
1064
  },
1095
1065
  {
1096
- "kind": "field",
1097
- "name": "selectedFile",
1098
1066
  "type": {
1099
- "text": "File | null"
1067
+ "text": "boolean"
1100
1068
  },
1101
- "privacy": "protected",
1102
- "default": "null"
1103
- },
1104
- {
1105
- "kind": "field",
1106
- "name": "label",
1107
- "type": {
1108
- "text": "string"
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"
1109
1075
  }
1110
1076
  },
1111
1077
  {
1112
- "kind": "field",
1113
- "name": "accept",
1078
+ "name": "id",
1114
1079
  "type": {
1115
1080
  "text": "string"
1116
1081
  },
1117
- "default": "''"
1118
- },
1119
- {
1120
- "kind": "field",
1121
- "name": "fileSizeLimitBytes",
1122
- "default": "10_485_760",
1123
- "type": {
1124
- "text": "number"
1082
+ "description": "The item ID",
1083
+ "fieldName": "id",
1084
+ "inheritedFrom": {
1085
+ "name": "AccordionItem",
1086
+ "module": "src/accordion-item/accordion-item.ts"
1125
1087
  }
1126
- },
1088
+ }
1089
+ ],
1090
+ "members": [
1127
1091
  {
1128
1092
  "kind": "field",
1129
- "name": "fileName",
1093
+ "name": "headinglevel",
1130
1094
  "type": {
1131
- "text": "string"
1095
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1132
1096
  },
1133
- "default": "''"
1097
+ "privacy": "public",
1098
+ "default": "2",
1099
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1100
+ "inheritedFrom": {
1101
+ "name": "AccordionItem",
1102
+ "module": "src/accordion-item/accordion-item.ts"
1103
+ }
1134
1104
  },
1135
1105
  {
1136
1106
  "kind": "field",
1137
- "name": "isProcessing",
1107
+ "name": "expanded",
1138
1108
  "type": {
1139
1109
  "text": "boolean"
1140
1110
  },
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
1111
  "privacy": "public",
1174
- "description": "Gets the currently selected file object",
1175
- "return": {
1176
- "type": {
1177
- "text": ""
1178
- }
1112
+ "default": "false",
1113
+ "description": "Expands or collapses the item.",
1114
+ "inheritedFrom": {
1115
+ "name": "AccordionItem",
1116
+ "module": "src/accordion-item/accordion-item.ts"
1179
1117
  }
1180
1118
  },
1181
1119
  {
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
- }
1120
+ "kind": "field",
1121
+ "name": "id",
1122
+ "type": {
1123
+ "text": "string"
1211
1124
  },
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"
1125
+ "privacy": "public",
1126
+ "description": "The item ID",
1127
+ "inheritedFrom": {
1128
+ "name": "AccordionItem",
1129
+ "module": "src/accordion-item/accordion-item.ts"
1130
+ }
1222
1131
  },
1223
1132
  {
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"
1133
+ "kind": "field",
1134
+ "name": "change",
1135
+ "privacy": "private",
1136
+ "inheritedFrom": {
1137
+ "name": "AccordionItem",
1138
+ "module": "src/accordion-item/accordion-item.ts"
1139
+ }
1233
1140
  },
1234
1141
  {
1235
1142
  "kind": "field",
@@ -1345,157 +1252,76 @@
1345
1252
  ],
1346
1253
  "events": [
1347
1254
  {
1348
- "description": "Fired when file size validation fails. detail: `Error`",
1349
- "name": "error"
1350
- },
1351
- {
1352
- "description": "Fired when selection is cleared",
1353
- "name": "clear"
1354
- }
1355
- ],
1356
- "attributes": [
1357
- {
1358
- "name": "label",
1359
- "type": {
1360
- "text": "string"
1361
- },
1362
- "fieldName": "label"
1363
- },
1364
- {
1365
- "name": "accept",
1366
- "type": {
1367
- "text": "string"
1368
- },
1369
- "default": "''",
1370
- "fieldName": "accept"
1371
- },
1372
- {
1373
- "name": "file-size-limit-bytes",
1374
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1375
- "resolveInitializer": {
1376
- "module": "src/_common/base-file-component.ts"
1377
- },
1378
- "fieldName": "fileSizeLimitBytes"
1255
+ "description": "Fires a custom 'change' event when the button is invoked",
1256
+ "name": "change",
1257
+ "inheritedFrom": {
1258
+ "name": "AccordionItem",
1259
+ "module": "src/accordion-item/accordion-item.ts"
1260
+ }
1379
1261
  }
1380
- ],
1381
- "superclass": {
1382
- "name": "FoundationElement",
1383
- "package": "@microsoft/fast-foundation"
1384
- }
1385
- }
1386
- ],
1387
- "exports": [
1388
- {
1389
- "kind": "js",
1390
- "name": "BaseFileComponent",
1391
- "declaration": {
1392
- "name": "BaseFileComponent",
1393
- "module": "src/_common/base-file-component.ts"
1394
- }
1395
- }
1396
- ]
1397
- },
1398
- {
1399
- "kind": "javascript-module",
1400
- "path": "src/_common/field-styles.ts",
1401
- "declarations": [
1262
+ ]
1263
+ },
1402
1264
  {
1403
1265
  "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": [
1266
+ "name": "foundationAccordionItemShadowOptions",
1267
+ "type": {
1268
+ "text": "ShadowRootInit"
1269
+ },
1270
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1271
+ },
1409
1272
  {
1410
- "kind": "js",
1411
- "name": "sharedFieldStyles",
1412
- "declaration": {
1413
- "name": "sharedFieldStyles",
1414
- "module": "src/_common/field-styles.ts"
1415
- }
1416
- }
1417
- ]
1418
- },
1419
- {
1420
- "kind": "javascript-module",
1421
- "path": "src/_common/icons.ts",
1422
- "declarations": [
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
+ },
1423
1280
  {
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
- ]
1281
+ "kind": "variable",
1282
+ "name": "foundationAccordionItem",
1283
+ "description": "The Foundation Accordion Item",
1284
+ "privacy": "public"
1436
1285
  }
1437
1286
  ],
1438
1287
  "exports": [
1439
1288
  {
1440
1289
  "kind": "js",
1441
- "name": "closeIcon",
1442
- "declaration": {
1443
- "name": "closeIcon",
1444
- "module": "src/_common/icons.ts"
1445
- }
1446
- }
1447
- ]
1448
- },
1449
- {
1450
- "kind": "javascript-module",
1451
- "path": "src/_common/index.ts",
1452
- "declarations": [],
1453
- "exports": [
1454
- {
1455
- "kind": "js",
1456
- "name": "*",
1457
- "declaration": {
1458
- "name": "*",
1459
- "package": "./affix-mixin"
1460
- }
1461
- },
1462
- {
1463
- "kind": "js",
1464
- "name": "*",
1290
+ "name": "AccordionItem",
1465
1291
  "declaration": {
1466
- "name": "*",
1467
- "package": "./alert-flash-clock"
1292
+ "name": "AccordionItem",
1293
+ "module": "src/accordion-item/accordion-item.ts"
1468
1294
  }
1469
1295
  },
1470
1296
  {
1471
1297
  "kind": "js",
1472
- "name": "*",
1298
+ "name": "foundationAccordionItemShadowOptions",
1473
1299
  "declaration": {
1474
- "name": "*",
1475
- "package": "./base-file-component"
1300
+ "name": "foundationAccordionItemShadowOptions",
1301
+ "module": "src/accordion-item/accordion-item.ts"
1476
1302
  }
1477
1303
  },
1478
1304
  {
1479
1305
  "kind": "js",
1480
- "name": "*",
1306
+ "name": "defaultAccordionItemConfig",
1481
1307
  "declaration": {
1482
- "name": "*",
1483
- "package": "./field-styles"
1308
+ "name": "defaultAccordionItemConfig",
1309
+ "module": "src/accordion-item/accordion-item.ts"
1484
1310
  }
1485
1311
  },
1486
1312
  {
1487
1313
  "kind": "js",
1488
- "name": "*",
1314
+ "name": "foundationAccordionItem",
1489
1315
  "declaration": {
1490
- "name": "*",
1491
- "package": "./icons"
1316
+ "name": "foundationAccordionItem",
1317
+ "module": "src/accordion-item/accordion-item.ts"
1492
1318
  }
1493
1319
  }
1494
1320
  ]
1495
1321
  },
1496
1322
  {
1497
1323
  "kind": "javascript-module",
1498
- "path": "src/_config/index.ts",
1324
+ "path": "src/accordion-item/index.ts",
1499
1325
  "declarations": [],
1500
1326
  "exports": [
1501
1327
  {
@@ -1503,7 +1329,7 @@
1503
1329
  "name": "*",
1504
1330
  "declaration": {
1505
1331
  "name": "*",
1506
- "package": "./styles"
1332
+ "package": "./accordion-item.template"
1507
1333
  }
1508
1334
  },
1509
1335
  {
@@ -1511,7 +1337,7 @@
1511
1337
  "name": "*",
1512
1338
  "declaration": {
1513
1339
  "name": "*",
1514
- "package": "./tokens"
1340
+ "package": "./accordion-item.styles"
1515
1341
  }
1516
1342
  },
1517
1343
  {
@@ -1519,18 +1345,18 @@
1519
1345
  "name": "*",
1520
1346
  "declaration": {
1521
1347
  "name": "*",
1522
- "package": "./values"
1348
+ "package": "./accordion-item"
1523
1349
  }
1524
1350
  }
1525
1351
  ]
1526
1352
  },
1527
1353
  {
1528
1354
  "kind": "javascript-module",
1529
- "path": "src/accordion/accordion.styles.ts",
1355
+ "path": "src/actions-menu/actions-menu.styles.ts",
1530
1356
  "declarations": [
1531
1357
  {
1532
1358
  "kind": "function",
1533
- "name": "foundationAccordionStyles",
1359
+ "name": "actionsMenuBaseStyles",
1534
1360
  "return": {
1535
1361
  "type": {
1536
1362
  "text": "ElementStyles"
@@ -1550,29 +1376,13 @@
1550
1376
  }
1551
1377
  }
1552
1378
  ]
1553
- }
1554
- ],
1555
- "exports": [
1556
- {
1557
- "kind": "js",
1558
- "name": "foundationAccordionStyles",
1559
- "declaration": {
1560
- "name": "foundationAccordionStyles",
1561
- "module": "src/accordion/accordion.styles.ts"
1562
- }
1563
- }
1564
- ]
1565
- },
1566
- {
1567
- "kind": "javascript-module",
1568
- "path": "src/accordion/accordion.template.ts",
1569
- "declarations": [
1379
+ },
1570
1380
  {
1571
1381
  "kind": "function",
1572
- "name": "foundationAccordionTemplate",
1382
+ "name": "foundationActionsMenuStyles",
1573
1383
  "return": {
1574
1384
  "type": {
1575
- "text": "ViewTemplate<Accordion>"
1385
+ "text": "ElementStyles"
1576
1386
  }
1577
1387
  },
1578
1388
  "parameters": [
@@ -1594,238 +1404,281 @@
1594
1404
  "exports": [
1595
1405
  {
1596
1406
  "kind": "js",
1597
- "name": "foundationAccordionTemplate",
1407
+ "name": "actionsMenuBaseStyles",
1598
1408
  "declaration": {
1599
- "name": "foundationAccordionTemplate",
1600
- "module": "src/accordion/accordion.template.ts"
1409
+ "name": "actionsMenuBaseStyles",
1410
+ "module": "src/actions-menu/actions-menu.styles.ts"
1411
+ }
1412
+ },
1413
+ {
1414
+ "kind": "js",
1415
+ "name": "foundationActionsMenuStyles",
1416
+ "declaration": {
1417
+ "name": "foundationActionsMenuStyles",
1418
+ "module": "src/actions-menu/actions-menu.styles.ts"
1601
1419
  }
1602
1420
  }
1603
1421
  ]
1604
1422
  },
1605
1423
  {
1606
1424
  "kind": "javascript-module",
1607
- "path": "src/accordion/accordion.ts",
1425
+ "path": "src/actions-menu/actions-menu.template.ts",
1608
1426
  "declarations": [
1609
1427
  {
1610
- "kind": "class",
1611
- "description": "",
1612
- "name": "Accordion",
1613
- "superclass": {
1614
- "name": "FASTAccordion",
1615
- "package": "@microsoft/fast-foundation"
1616
- },
1617
- "tagName": "%%prefix%%-accordion",
1618
- "customElement": true,
1619
- "attributes": [
1428
+ "kind": "function",
1429
+ "name": "menuTemplate",
1430
+ "parameters": [
1620
1431
  {
1621
- "name": "expand-mode",
1432
+ "name": "prefix",
1622
1433
  "type": {
1623
- "text": "AccordionExpandMode"
1624
- },
1625
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1626
- "fieldName": "expandmode",
1627
- "inheritedFrom": {
1628
- "name": "Accordion",
1629
- "module": "src/accordion/accordion.ts"
1434
+ "text": "string"
1630
1435
  }
1631
1436
  }
1632
- ],
1437
+ ]
1438
+ },
1439
+ {
1440
+ "kind": "function",
1441
+ "name": "singleOptionTemplate",
1442
+ "parameters": [
1443
+ {
1444
+ "name": "prefix",
1445
+ "type": {
1446
+ "text": "string"
1447
+ }
1448
+ }
1449
+ ]
1450
+ },
1451
+ {
1452
+ "kind": "variable",
1453
+ "name": "foundationActionsMenuTemplate",
1454
+ "type": {
1455
+ "text": "ViewTemplate<ActionsMenu>"
1456
+ },
1457
+ "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`"
1458
+ }
1459
+ ],
1460
+ "exports": [
1461
+ {
1462
+ "kind": "js",
1463
+ "name": "menuTemplate",
1464
+ "declaration": {
1465
+ "name": "menuTemplate",
1466
+ "module": "src/actions-menu/actions-menu.template.ts"
1467
+ }
1468
+ },
1469
+ {
1470
+ "kind": "js",
1471
+ "name": "singleOptionTemplate",
1472
+ "declaration": {
1473
+ "name": "singleOptionTemplate",
1474
+ "module": "src/actions-menu/actions-menu.template.ts"
1475
+ }
1476
+ },
1477
+ {
1478
+ "kind": "js",
1479
+ "name": "foundationActionsMenuTemplate",
1480
+ "declaration": {
1481
+ "name": "foundationActionsMenuTemplate",
1482
+ "module": "src/actions-menu/actions-menu.template.ts"
1483
+ }
1484
+ }
1485
+ ]
1486
+ },
1487
+ {
1488
+ "kind": "javascript-module",
1489
+ "path": "src/actions-menu/actions-menu.ts",
1490
+ "declarations": [
1491
+ {
1492
+ "kind": "class",
1493
+ "description": "",
1494
+ "name": "ActionsMenu",
1633
1495
  "members": [
1634
1496
  {
1635
1497
  "kind": "field",
1636
- "name": "expandmode",
1498
+ "name": "actions",
1637
1499
  "type": {
1638
- "text": "AccordionExpandMode"
1639
- },
1640
- "privacy": "public",
1641
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1642
- "inheritedFrom": {
1643
- "name": "Accordion",
1644
- "module": "src/accordion/accordion.ts"
1500
+ "text": "ActionMenuItem[]"
1645
1501
  }
1646
1502
  },
1647
1503
  {
1648
1504
  "kind": "field",
1649
- "name": "activeid",
1505
+ "name": "isVertical",
1650
1506
  "type": {
1651
- "text": "string | null"
1507
+ "text": "boolean"
1652
1508
  },
1653
- "privacy": "private",
1654
- "inheritedFrom": {
1655
- "name": "Accordion",
1656
- "module": "src/accordion/accordion.ts"
1657
- }
1509
+ "default": "false"
1658
1510
  },
1659
1511
  {
1660
1512
  "kind": "field",
1661
- "name": "activeItemIndex",
1513
+ "name": "addDefaultActions",
1662
1514
  "type": {
1663
- "text": "number"
1515
+ "text": "boolean"
1664
1516
  },
1665
- "privacy": "private",
1666
- "default": "0",
1667
- "inheritedFrom": {
1668
- "name": "Accordion",
1669
- "module": "src/accordion/accordion.ts"
1670
- }
1517
+ "default": "true"
1671
1518
  },
1672
1519
  {
1673
1520
  "kind": "field",
1674
- "name": "accordionIds",
1521
+ "name": "autoCloseOnAction",
1675
1522
  "type": {
1676
- "text": "Array<string | null>"
1523
+ "text": "boolean"
1677
1524
  },
1678
- "privacy": "private",
1679
- "inheritedFrom": {
1680
- "name": "Accordion",
1681
- "module": "src/accordion/accordion.ts"
1525
+ "default": "true"
1526
+ },
1527
+ {
1528
+ "kind": "field",
1529
+ "name": "classNames",
1530
+ "type": {
1531
+ "text": "string"
1682
1532
  }
1683
1533
  },
1684
1534
  {
1685
1535
  "kind": "field",
1686
- "name": "change",
1687
- "privacy": "private",
1688
- "inheritedFrom": {
1689
- "name": "Accordion",
1690
- "module": "src/accordion/accordion.ts"
1536
+ "name": "definition",
1537
+ "type": {
1538
+ "text": "any"
1691
1539
  }
1692
1540
  },
1693
1541
  {
1694
- "kind": "method",
1695
- "name": "findExpandedItem",
1696
- "privacy": "private",
1697
- "return": {
1698
- "type": {
1699
- "text": "AccordionItem | null"
1700
- }
1542
+ "kind": "field",
1543
+ "name": "name",
1544
+ "type": {
1545
+ "text": "string"
1701
1546
  },
1702
- "inheritedFrom": {
1703
- "name": "Accordion",
1704
- "module": "src/accordion/accordion.ts"
1705
- }
1547
+ "default": "'Actions'"
1706
1548
  },
1707
1549
  {
1708
1550
  "kind": "field",
1709
- "name": "setItems",
1710
- "privacy": "private",
1711
- "inheritedFrom": {
1712
- "name": "Accordion",
1713
- "module": "src/accordion/accordion.ts"
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"
1714
1562
  }
1715
1563
  },
1716
1564
  {
1717
- "kind": "method",
1718
- "name": "resetItems",
1719
- "privacy": "private",
1720
- "return": {
1721
- "type": {
1722
- "text": "void"
1723
- }
1565
+ "kind": "field",
1566
+ "name": "hideDisabled",
1567
+ "type": {
1568
+ "text": "boolean"
1724
1569
  },
1725
- "inheritedFrom": {
1726
- "name": "Accordion",
1727
- "module": "src/accordion/accordion.ts"
1570
+ "default": "false"
1571
+ },
1572
+ {
1573
+ "kind": "field",
1574
+ "name": "hideMenuSingleOption",
1575
+ "type": {
1576
+ "text": "boolean"
1577
+ },
1578
+ "default": "false"
1579
+ },
1580
+ {
1581
+ "kind": "field",
1582
+ "name": "singleOption",
1583
+ "type": {
1584
+ "text": "ActionMenuItem"
1728
1585
  }
1729
1586
  },
1730
1587
  {
1731
1588
  "kind": "field",
1732
- "name": "removeItemListeners",
1733
- "privacy": "private",
1734
- "inheritedFrom": {
1735
- "name": "Accordion",
1736
- "module": "src/accordion/accordion.ts"
1589
+ "name": "actionsMenu",
1590
+ "type": {
1591
+ "text": "HTMLElement"
1737
1592
  }
1738
1593
  },
1739
1594
  {
1740
1595
  "kind": "field",
1741
- "name": "activeItemChange",
1742
- "privacy": "private",
1743
- "inheritedFrom": {
1744
- "name": "Accordion",
1745
- "module": "src/accordion/accordion.ts"
1596
+ "name": "actionsOpener",
1597
+ "type": {
1598
+ "text": "HTMLElement"
1746
1599
  }
1747
1600
  },
1748
1601
  {
1749
1602
  "kind": "method",
1750
- "name": "getItemIds",
1751
- "privacy": "private",
1752
- "return": {
1753
- "type": {
1754
- "text": "Array<string | null>"
1603
+ "name": "updateMenuPosition",
1604
+ "privacy": "private"
1605
+ },
1606
+ {
1607
+ "kind": "method",
1608
+ "name": "definitionChanged",
1609
+ "privacy": "protected",
1610
+ "parameters": [
1611
+ {
1612
+ "name": "oldValue",
1613
+ "type": {
1614
+ "text": "any"
1615
+ }
1616
+ },
1617
+ {
1618
+ "name": "newValue",
1619
+ "type": {
1620
+ "text": "any"
1621
+ }
1755
1622
  }
1756
- },
1757
- "inheritedFrom": {
1758
- "name": "Accordion",
1759
- "module": "src/accordion/accordion.ts"
1760
- }
1623
+ ]
1761
1624
  },
1762
1625
  {
1763
1626
  "kind": "method",
1764
- "name": "isSingleExpandMode",
1765
- "privacy": "private",
1766
- "return": {
1767
- "type": {
1768
- "text": "boolean"
1627
+ "name": "openChanged",
1628
+ "privacy": "protected"
1629
+ },
1630
+ {
1631
+ "kind": "method",
1632
+ "name": "toggleActionsMenuVisibility"
1633
+ },
1634
+ {
1635
+ "kind": "method",
1636
+ "name": "onActionMenuItemClick",
1637
+ "parameters": [
1638
+ {
1639
+ "name": "callback",
1640
+ "type": {
1641
+ "text": "(rowData) => void | any"
1642
+ }
1769
1643
  }
1770
- },
1771
- "inheritedFrom": {
1772
- "name": "Accordion",
1773
- "module": "src/accordion/accordion.ts"
1774
- }
1644
+ ]
1775
1645
  },
1776
1646
  {
1777
1647
  "kind": "field",
1778
- "name": "handleItemKeyDown",
1779
- "privacy": "private",
1780
- "inheritedFrom": {
1781
- "name": "Accordion",
1782
- "module": "src/accordion/accordion.ts"
1783
- }
1648
+ "name": "allActions",
1649
+ "type": {
1650
+ "text": "ActionMenuItem[]"
1651
+ },
1652
+ "readonly": true
1784
1653
  },
1785
1654
  {
1786
1655
  "kind": "field",
1787
- "name": "handleItemFocus",
1788
- "privacy": "private",
1789
- "inheritedFrom": {
1790
- "name": "Accordion",
1791
- "module": "src/accordion/accordion.ts"
1792
- }
1656
+ "name": "rowData",
1657
+ "readonly": true
1793
1658
  },
1794
1659
  {
1795
1660
  "kind": "method",
1796
- "name": "adjust",
1797
- "privacy": "private",
1798
- "return": {
1799
- "type": {
1800
- "text": "void"
1801
- }
1802
- },
1661
+ "name": "getLabel",
1803
1662
  "parameters": [
1804
1663
  {
1805
- "name": "adjustment",
1664
+ "name": "name",
1806
1665
  "type": {
1807
- "text": "number"
1666
+ "text": "string | ((rowData: any) => string)"
1808
1667
  }
1809
1668
  }
1810
- ],
1811
- "inheritedFrom": {
1812
- "name": "Accordion",
1813
- "module": "src/accordion/accordion.ts"
1814
- }
1669
+ ]
1815
1670
  },
1816
1671
  {
1817
1672
  "kind": "method",
1818
- "name": "focusItem",
1819
- "privacy": "private",
1820
- "return": {
1821
- "type": {
1822
- "text": "void"
1673
+ "name": "getTemplate",
1674
+ "parameters": [
1675
+ {
1676
+ "name": "prefix",
1677
+ "type": {
1678
+ "text": "string"
1679
+ }
1823
1680
  }
1824
- },
1825
- "inheritedFrom": {
1826
- "name": "Accordion",
1827
- "module": "src/accordion/accordion.ts"
1828
- }
1681
+ ]
1829
1682
  },
1830
1683
  {
1831
1684
  "kind": "field",
@@ -1939,78 +1792,107 @@
1939
1792
  }
1940
1793
  }
1941
1794
  ],
1942
- "events": [
1795
+ "attributes": [
1943
1796
  {
1944
- "description": "Fires a custom 'change' event when the active item changes",
1945
- "name": "change",
1946
- "inheritedFrom": {
1947
- "name": "Accordion",
1948
- "module": "src/accordion/accordion.ts"
1949
- }
1797
+ "name": "is-vertical",
1798
+ "type": {
1799
+ "text": "boolean"
1800
+ },
1801
+ "default": "false",
1802
+ "fieldName": "isVertical"
1803
+ },
1804
+ {
1805
+ "name": "add-default-actions",
1806
+ "type": {
1807
+ "text": "boolean"
1808
+ },
1809
+ "default": "true",
1810
+ "fieldName": "addDefaultActions"
1811
+ },
1812
+ {
1813
+ "name": "auto-close-on-action",
1814
+ "type": {
1815
+ "text": "boolean"
1816
+ },
1817
+ "default": "true",
1818
+ "fieldName": "autoCloseOnAction"
1819
+ },
1820
+ {
1821
+ "name": "name",
1822
+ "type": {
1823
+ "text": "string"
1824
+ },
1825
+ "default": "'Actions'",
1826
+ "fieldName": "name"
1827
+ },
1828
+ {
1829
+ "name": "open",
1830
+ "type": {
1831
+ "text": "boolean"
1832
+ },
1833
+ "default": "false",
1834
+ "fieldName": "open"
1835
+ },
1836
+ {
1837
+ "name": "buttonAppearance",
1838
+ "type": {
1839
+ "text": "string"
1840
+ },
1841
+ "fieldName": "buttonAppearance"
1842
+ },
1843
+ {
1844
+ "name": "hide-disabled",
1845
+ "type": {
1846
+ "text": "boolean"
1847
+ },
1848
+ "default": "false",
1849
+ "fieldName": "hideDisabled"
1850
+ },
1851
+ {
1852
+ "name": "hide-menu-single-option",
1853
+ "type": {
1854
+ "text": "boolean"
1855
+ },
1856
+ "default": "false",
1857
+ "fieldName": "hideMenuSingleOption"
1950
1858
  }
1951
- ]
1952
- },
1953
- {
1954
- "kind": "variable",
1955
- "name": "foundationAccordionShadowOptions",
1956
- "type": {
1957
- "text": "ShadowRootInit"
1958
- },
1959
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1960
- },
1961
- {
1962
- "kind": "variable",
1963
- "name": "defaultAccordionConfig",
1964
- "type": {
1965
- "text": "object"
1859
+ ],
1860
+ "superclass": {
1861
+ "name": "FoundationElement",
1862
+ "package": "@microsoft/fast-foundation"
1966
1863
  },
1967
- "default": "{}"
1864
+ "tagName": "%%prefix%%-actions-menu",
1865
+ "customElement": true
1968
1866
  },
1969
1867
  {
1970
1868
  "kind": "variable",
1971
- "name": "foundationAccordion",
1972
- "description": "The Foundation Accordion",
1869
+ "name": "foundationActionsMenu",
1870
+ "description": "The Foundation Actions Menu",
1973
1871
  "privacy": "public"
1974
1872
  }
1975
1873
  ],
1976
1874
  "exports": [
1977
1875
  {
1978
1876
  "kind": "js",
1979
- "name": "Accordion",
1980
- "declaration": {
1981
- "name": "Accordion",
1982
- "module": "src/accordion/accordion.ts"
1983
- }
1984
- },
1985
- {
1986
- "kind": "js",
1987
- "name": "foundationAccordionShadowOptions",
1988
- "declaration": {
1989
- "name": "foundationAccordionShadowOptions",
1990
- "module": "src/accordion/accordion.ts"
1991
- }
1992
- },
1993
- {
1994
- "kind": "js",
1995
- "name": "defaultAccordionConfig",
1877
+ "name": "ActionsMenu",
1996
1878
  "declaration": {
1997
- "name": "defaultAccordionConfig",
1998
- "module": "src/accordion/accordion.ts"
1879
+ "name": "ActionsMenu",
1880
+ "module": "src/actions-menu/actions-menu.ts"
1999
1881
  }
2000
1882
  },
2001
1883
  {
2002
1884
  "kind": "js",
2003
- "name": "foundationAccordion",
1885
+ "name": "foundationActionsMenu",
2004
1886
  "declaration": {
2005
- "name": "foundationAccordion",
2006
- "module": "src/accordion/accordion.ts"
1887
+ "name": "foundationActionsMenu",
1888
+ "module": "src/actions-menu/actions-menu.ts"
2007
1889
  }
2008
1890
  }
2009
1891
  ]
2010
1892
  },
2011
1893
  {
2012
1894
  "kind": "javascript-module",
2013
- "path": "src/accordion/index.ts",
1895
+ "path": "src/actions-menu/index.ts",
2014
1896
  "declarations": [],
2015
1897
  "exports": [
2016
1898
  {
@@ -2018,7 +1900,7 @@
2018
1900
  "name": "*",
2019
1901
  "declaration": {
2020
1902
  "name": "*",
2021
- "package": "./accordion.template"
1903
+ "package": "./actions-menu.styles"
2022
1904
  }
2023
1905
  },
2024
1906
  {
@@ -2026,7 +1908,7 @@
2026
1908
  "name": "*",
2027
1909
  "declaration": {
2028
1910
  "name": "*",
2029
- "package": "./accordion.styles"
1911
+ "package": "./actions-menu.template"
2030
1912
  }
2031
1913
  },
2032
1914
  {
@@ -2034,193 +1916,265 @@
2034
1916
  "name": "*",
2035
1917
  "declaration": {
2036
1918
  "name": "*",
2037
- "package": "./accordion"
1919
+ "package": "./actions-menu"
2038
1920
  }
2039
1921
  }
2040
1922
  ]
2041
1923
  },
2042
1924
  {
2043
1925
  "kind": "javascript-module",
2044
- "path": "src/accordion-item/accordion-item.styles.ts",
1926
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2045
1927
  "declarations": [
2046
1928
  {
2047
- "kind": "function",
2048
- "name": "foundationAccordionItemStyles",
2049
- "return": {
2050
- "type": {
2051
- "text": "ElementStyles"
2052
- }
2053
- },
2054
- "parameters": [
2055
- {
2056
- "name": "context",
2057
- "type": {
2058
- "text": "ElementDefinitionContext"
2059
- }
2060
- },
2061
- {
2062
- "name": "definition",
2063
- "type": {
2064
- "text": "FoundationElementDefinition"
2065
- }
2066
- }
2067
- ]
1929
+ "kind": "variable",
1930
+ "name": "foundationAiCriteriaSearchStyles",
1931
+ "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`"
2068
1932
  }
2069
1933
  ],
2070
1934
  "exports": [
2071
1935
  {
2072
1936
  "kind": "js",
2073
- "name": "foundationAccordionItemStyles",
1937
+ "name": "foundationAiCriteriaSearchStyles",
2074
1938
  "declaration": {
2075
- "name": "foundationAccordionItemStyles",
2076
- "module": "src/accordion-item/accordion-item.styles.ts"
1939
+ "name": "foundationAiCriteriaSearchStyles",
1940
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2077
1941
  }
2078
1942
  }
2079
1943
  ]
2080
1944
  },
2081
1945
  {
2082
1946
  "kind": "javascript-module",
2083
- "path": "src/accordion-item/accordion-item.template.ts",
1947
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2084
1948
  "declarations": [
2085
1949
  {
2086
- "kind": "function",
2087
- "name": "foundationAccordionItemTemplate",
2088
- "return": {
2089
- "type": {
2090
- "text": "ViewTemplate<AccordionItem>"
2091
- }
1950
+ "kind": "variable",
1951
+ "name": "foundationAiCriteriaSearchTemplate",
1952
+ "type": {
1953
+ "text": "ViewTemplate<AiCriteriaSearch>"
2092
1954
  },
2093
- "parameters": [
2094
- {
2095
- "name": "context",
2096
- "type": {
2097
- "text": "ElementDefinitionContext"
2098
- }
2099
- },
2100
- {
2101
- "name": "definition",
2102
- "type": {
2103
- "text": "FoundationElementDefinition"
2104
- }
2105
- }
2106
- ]
1955
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2107
1956
  }
2108
1957
  ],
2109
1958
  "exports": [
2110
1959
  {
2111
1960
  "kind": "js",
2112
- "name": "foundationAccordionItemTemplate",
1961
+ "name": "foundationAiCriteriaSearchTemplate",
2113
1962
  "declaration": {
2114
- "name": "foundationAccordionItemTemplate",
2115
- "module": "src/accordion-item/accordion-item.template.ts"
1963
+ "name": "foundationAiCriteriaSearchTemplate",
1964
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2116
1965
  }
2117
1966
  }
2118
1967
  ]
2119
1968
  },
2120
1969
  {
2121
1970
  "kind": "javascript-module",
2122
- "path": "src/accordion-item/accordion-item.ts",
1971
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2123
1972
  "declarations": [
2124
1973
  {
2125
1974
  "kind": "class",
2126
- "description": "",
2127
- "name": "AccordionItem",
2128
- "superclass": {
2129
- "name": "FASTAccordionItem",
2130
- "package": "@microsoft/fast-components"
2131
- },
2132
- "tagName": "%%prefix%%-accordion-item",
2133
- "customElement": true,
2134
- "attributes": [
1975
+ "description": "Natural-language criteria search input with AI interpretation.",
1976
+ "name": "AiCriteriaSearch",
1977
+ "members": [
2135
1978
  {
2136
- "name": "heading-level",
1979
+ "kind": "field",
1980
+ "name": "providerRegistry",
2137
1981
  "type": {
2138
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2139
- },
2140
- "default": "2",
2141
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2142
- "fieldName": "headinglevel",
2143
- "inheritedFrom": {
2144
- "name": "AccordionItem",
2145
- "module": "src/accordion-item/accordion-item.ts"
1982
+ "text": "AIProviderRegistry"
2146
1983
  }
2147
1984
  },
2148
1985
  {
1986
+ "kind": "field",
1987
+ "name": "placeholder",
2149
1988
  "type": {
2150
- "text": "boolean"
1989
+ "text": "string"
2151
1990
  },
2152
- "default": "false",
2153
- "description": "Expands or collapses the item.",
2154
- "fieldName": "expanded",
2155
- "inheritedFrom": {
2156
- "name": "AccordionItem",
2157
- "module": "src/accordion-item/accordion-item.ts"
1991
+ "default": "'Describe your search criteria in natural language...'"
1992
+ },
1993
+ {
1994
+ "kind": "field",
1995
+ "name": "disabled",
1996
+ "type": {
1997
+ "text": "boolean"
2158
1998
  }
2159
1999
  },
2160
2000
  {
2161
- "name": "id",
2001
+ "kind": "field",
2002
+ "name": "inputValue",
2162
2003
  "type": {
2163
2004
  "text": "string"
2164
2005
  },
2165
- "description": "The item ID",
2166
- "fieldName": "id",
2167
- "inheritedFrom": {
2168
- "name": "AccordionItem",
2169
- "module": "src/accordion-item/accordion-item.ts"
2170
- }
2171
- }
2172
- ],
2173
- "members": [
2006
+ "default": "''"
2007
+ },
2174
2008
  {
2175
2009
  "kind": "field",
2176
- "name": "headinglevel",
2010
+ "name": "isInterpreting",
2177
2011
  "type": {
2178
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2012
+ "text": "boolean"
2179
2013
  },
2180
- "privacy": "public",
2181
- "default": "2",
2182
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2183
- "inheritedFrom": {
2184
- "name": "AccordionItem",
2185
- "module": "src/accordion-item/accordion-item.ts"
2186
- }
2014
+ "default": "false"
2187
2015
  },
2188
2016
  {
2189
2017
  "kind": "field",
2190
- "name": "expanded",
2018
+ "name": "lastValidCriteria",
2019
+ "type": {
2020
+ "text": "string | null"
2021
+ },
2022
+ "default": "null"
2023
+ },
2024
+ {
2025
+ "kind": "field",
2026
+ "name": "activeGroups",
2027
+ "type": {
2028
+ "text": "CriteriaGroup[]"
2029
+ },
2030
+ "default": "[]"
2031
+ },
2032
+ {
2033
+ "kind": "field",
2034
+ "name": "showingChips",
2191
2035
  "type": {
2192
2036
  "text": "boolean"
2193
2037
  },
2194
- "privacy": "public",
2195
- "default": "false",
2196
- "description": "Expands or collapses the item.",
2197
- "inheritedFrom": {
2198
- "name": "AccordionItem",
2199
- "module": "src/accordion-item/accordion-item.ts"
2200
- }
2038
+ "default": "false"
2201
2039
  },
2202
2040
  {
2203
2041
  "kind": "field",
2204
- "name": "id",
2042
+ "name": "fieldMetadata",
2205
2043
  "type": {
2206
- "text": "string"
2044
+ "text": "MetadataDetail[] | string[]"
2207
2045
  },
2208
- "privacy": "public",
2209
- "description": "The item ID",
2210
- "inheritedFrom": {
2211
- "name": "AccordionItem",
2212
- "module": "src/accordion-item/accordion-item.ts"
2213
- }
2046
+ "default": "[]"
2214
2047
  },
2215
2048
  {
2216
2049
  "kind": "field",
2217
- "name": "change",
2050
+ "name": "isRecording",
2051
+ "type": {
2052
+ "text": "boolean"
2053
+ },
2054
+ "default": "false"
2055
+ },
2056
+ {
2057
+ "kind": "field",
2058
+ "name": "textAreaRef",
2059
+ "type": {
2060
+ "text": "HTMLTextAreaElement"
2061
+ },
2062
+ "privacy": "public"
2063
+ },
2064
+ {
2065
+ "kind": "field",
2066
+ "name": "stopRecording",
2067
+ "type": {
2068
+ "text": "(() => void) | null"
2069
+ },
2218
2070
  "privacy": "private",
2219
- "inheritedFrom": {
2220
- "name": "AccordionItem",
2221
- "module": "src/accordion-item/accordion-item.ts"
2071
+ "default": "null"
2072
+ },
2073
+ {
2074
+ "kind": "field",
2075
+ "name": "speechApplyDebounceTimer",
2076
+ "type": {
2077
+ "text": "ReturnType<typeof setTimeout> | null"
2078
+ },
2079
+ "privacy": "private",
2080
+ "default": "null"
2081
+ },
2082
+ {
2083
+ "kind": "field",
2084
+ "name": "speechAvailable",
2085
+ "type": {
2086
+ "text": "boolean"
2087
+ },
2088
+ "readonly": true
2089
+ },
2090
+ {
2091
+ "kind": "field",
2092
+ "name": "criteriaChips",
2093
+ "type": {
2094
+ "text": "CriteriaChip[]"
2095
+ },
2096
+ "readonly": true
2097
+ },
2098
+ {
2099
+ "kind": "method",
2100
+ "name": "getFieldLabel",
2101
+ "privacy": "private",
2102
+ "return": {
2103
+ "type": {
2104
+ "text": "string"
2105
+ }
2106
+ },
2107
+ "parameters": [
2108
+ {
2109
+ "name": "fieldName",
2110
+ "type": {
2111
+ "text": "string"
2112
+ }
2113
+ }
2114
+ ]
2115
+ },
2116
+ {
2117
+ "kind": "method",
2118
+ "name": "toggleCriteriaView",
2119
+ "return": {
2120
+ "type": {
2121
+ "text": "void"
2122
+ }
2123
+ }
2124
+ },
2125
+ {
2126
+ "kind": "method",
2127
+ "name": "removeChip",
2128
+ "return": {
2129
+ "type": {
2130
+ "text": "void"
2131
+ }
2132
+ },
2133
+ "parameters": [
2134
+ {
2135
+ "name": "groupIndex",
2136
+ "type": {
2137
+ "text": "number"
2138
+ }
2139
+ },
2140
+ {
2141
+ "name": "clauseIndex",
2142
+ "type": {
2143
+ "text": "number"
2144
+ }
2145
+ }
2146
+ ]
2147
+ },
2148
+ {
2149
+ "kind": "method",
2150
+ "name": "clearChips",
2151
+ "return": {
2152
+ "type": {
2153
+ "text": "void"
2154
+ }
2222
2155
  }
2223
2156
  },
2157
+ {
2158
+ "kind": "method",
2159
+ "name": "handleSubmit"
2160
+ },
2161
+ {
2162
+ "kind": "method",
2163
+ "name": "handleBlur"
2164
+ },
2165
+ {
2166
+ "kind": "method",
2167
+ "name": "clear"
2168
+ },
2169
+ {
2170
+ "kind": "method",
2171
+ "name": "toggleSpeechInput"
2172
+ },
2173
+ {
2174
+ "kind": "method",
2175
+ "name": "clearSpeechApplyDebounce",
2176
+ "privacy": "private"
2177
+ },
2224
2178
  {
2225
2179
  "kind": "field",
2226
2180
  "name": "_presentation",
@@ -2335,84 +2289,152 @@
2335
2289
  ],
2336
2290
  "events": [
2337
2291
  {
2338
- "description": "Fires a custom 'change' event when the button is invoked",
2339
- "name": "change",
2340
- "inheritedFrom": {
2341
- "name": "AccordionItem",
2342
- "module": "src/accordion-item/accordion-item.ts"
2343
- }
2292
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2293
+ "name": "criteria-changed"
2294
+ },
2295
+ {
2296
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2297
+ "name": "validation-errors"
2344
2298
  }
2345
- ]
2299
+ ],
2300
+ "attributes": [
2301
+ {
2302
+ "name": "placeholder",
2303
+ "type": {
2304
+ "text": "string"
2305
+ },
2306
+ "default": "'Describe your search criteria in natural language...'",
2307
+ "fieldName": "placeholder"
2308
+ },
2309
+ {
2310
+ "type": {
2311
+ "text": "boolean"
2312
+ },
2313
+ "fieldName": "disabled"
2314
+ }
2315
+ ],
2316
+ "superclass": {
2317
+ "name": "FoundationElement",
2318
+ "package": "@microsoft/fast-foundation"
2319
+ },
2320
+ "tagName": "%%prefix%%-ai-criteria-search",
2321
+ "customElement": true
2346
2322
  },
2347
2323
  {
2348
2324
  "kind": "variable",
2349
- "name": "foundationAccordionItemShadowOptions",
2325
+ "name": "foundationAiCriteriaSearchShadowOptions",
2350
2326
  "type": {
2351
2327
  "text": "ShadowRootInit"
2352
2328
  },
2353
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2329
+ "default": "undefined"
2354
2330
  },
2355
2331
  {
2356
2332
  "kind": "variable",
2357
- "name": "defaultAccordionItemConfig",
2333
+ "name": "defaultAiCriteriaSearchConfig",
2358
2334
  "type": {
2359
2335
  "text": "object"
2360
2336
  },
2361
- "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}"
2337
+ "default": "{}"
2362
2338
  },
2363
2339
  {
2364
2340
  "kind": "variable",
2365
- "name": "foundationAccordionItem",
2366
- "description": "The Foundation Accordion Item",
2367
- "privacy": "public"
2341
+ "name": "foundationAiCriteriaSearch"
2368
2342
  }
2369
2343
  ],
2370
2344
  "exports": [
2371
2345
  {
2372
2346
  "kind": "js",
2373
- "name": "AccordionItem",
2347
+ "name": "AiCriteriaSearch",
2374
2348
  "declaration": {
2375
- "name": "AccordionItem",
2376
- "module": "src/accordion-item/accordion-item.ts"
2349
+ "name": "AiCriteriaSearch",
2350
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2377
2351
  }
2378
2352
  },
2379
2353
  {
2380
2354
  "kind": "js",
2381
- "name": "foundationAccordionItemShadowOptions",
2355
+ "name": "foundationAiCriteriaSearchShadowOptions",
2382
2356
  "declaration": {
2383
- "name": "foundationAccordionItemShadowOptions",
2384
- "module": "src/accordion-item/accordion-item.ts"
2357
+ "name": "foundationAiCriteriaSearchShadowOptions",
2358
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2385
2359
  }
2386
2360
  },
2387
2361
  {
2388
2362
  "kind": "js",
2389
- "name": "defaultAccordionItemConfig",
2363
+ "name": "defaultAiCriteriaSearchConfig",
2390
2364
  "declaration": {
2391
- "name": "defaultAccordionItemConfig",
2392
- "module": "src/accordion-item/accordion-item.ts"
2365
+ "name": "defaultAiCriteriaSearchConfig",
2366
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2393
2367
  }
2394
2368
  },
2395
2369
  {
2396
2370
  "kind": "js",
2397
- "name": "foundationAccordionItem",
2371
+ "name": "foundationAiCriteriaSearch",
2398
2372
  "declaration": {
2399
- "name": "foundationAccordionItem",
2400
- "module": "src/accordion-item/accordion-item.ts"
2373
+ "name": "foundationAiCriteriaSearch",
2374
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2401
2375
  }
2402
2376
  }
2403
2377
  ]
2404
2378
  },
2405
2379
  {
2406
2380
  "kind": "javascript-module",
2407
- "path": "src/accordion-item/index.ts",
2381
+ "path": "src/ai-criteria-search/index.ts",
2408
2382
  "declarations": [],
2409
2383
  "exports": [
2384
+ {
2385
+ "kind": "js",
2386
+ "name": "AiCriteriaSearch",
2387
+ "declaration": {
2388
+ "name": "AiCriteriaSearch",
2389
+ "module": "./ai-criteria-search"
2390
+ }
2391
+ },
2392
+ {
2393
+ "kind": "js",
2394
+ "name": "defaultAiCriteriaSearchConfig",
2395
+ "declaration": {
2396
+ "name": "defaultAiCriteriaSearchConfig",
2397
+ "module": "./ai-criteria-search"
2398
+ }
2399
+ },
2400
+ {
2401
+ "kind": "js",
2402
+ "name": "foundationAiCriteriaSearch",
2403
+ "declaration": {
2404
+ "name": "foundationAiCriteriaSearch",
2405
+ "module": "./ai-criteria-search"
2406
+ }
2407
+ },
2408
+ {
2409
+ "kind": "js",
2410
+ "name": "foundationAiCriteriaSearchShadowOptions",
2411
+ "declaration": {
2412
+ "name": "foundationAiCriteriaSearchShadowOptions",
2413
+ "module": "./ai-criteria-search"
2414
+ }
2415
+ },
2416
+ {
2417
+ "kind": "js",
2418
+ "name": "foundationAiCriteriaSearchStyles",
2419
+ "declaration": {
2420
+ "name": "foundationAiCriteriaSearchStyles",
2421
+ "module": "./ai-criteria-search.styles"
2422
+ }
2423
+ },
2424
+ {
2425
+ "kind": "js",
2426
+ "name": "foundationAiCriteriaSearchTemplate",
2427
+ "declaration": {
2428
+ "name": "foundationAiCriteriaSearchTemplate",
2429
+ "module": "./ai-criteria-search.template"
2430
+ }
2431
+ },
2410
2432
  {
2411
2433
  "kind": "js",
2412
2434
  "name": "*",
2413
2435
  "declaration": {
2414
2436
  "name": "*",
2415
- "package": "./accordion-item.template"
2437
+ "package": "./validation/criteria-ir"
2416
2438
  }
2417
2439
  },
2418
2440
  {
@@ -2420,7 +2442,7 @@
2420
2442
  "name": "*",
2421
2443
  "declaration": {
2422
2444
  "name": "*",
2423
- "package": "./accordion-item.styles"
2445
+ "package": "./validation/operator-map"
2424
2446
  }
2425
2447
  },
2426
2448
  {
@@ -2428,215 +2450,357 @@
2428
2450
  "name": "*",
2429
2451
  "declaration": {
2430
2452
  "name": "*",
2431
- "package": "./accordion-item"
2453
+ "package": "./validation/schema-validator"
2432
2454
  }
2433
2455
  }
2434
2456
  ]
2435
2457
  },
2436
2458
  {
2437
2459
  "kind": "javascript-module",
2438
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2460
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2439
2461
  "declarations": [
2440
2462
  {
2441
- "kind": "variable",
2442
- "name": "foundationAiCriteriaSearchStyles",
2443
- "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`"
2463
+ "kind": "function",
2464
+ "name": "formatValidationErrors",
2465
+ "return": {
2466
+ "type": {
2467
+ "text": "string"
2468
+ }
2469
+ },
2470
+ "parameters": [
2471
+ {
2472
+ "name": "errors",
2473
+ "type": {
2474
+ "text": "ValidationError[]"
2475
+ }
2476
+ }
2477
+ ],
2478
+ "description": "Formats validation errors into a user-friendly message."
2479
+ },
2480
+ {
2481
+ "kind": "function",
2482
+ "name": "showCriteriaError",
2483
+ "return": {
2484
+ "type": {
2485
+ "text": "void"
2486
+ }
2487
+ },
2488
+ "parameters": [
2489
+ {
2490
+ "name": "title",
2491
+ "type": {
2492
+ "text": "string"
2493
+ },
2494
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2495
+ },
2496
+ {
2497
+ "name": "body",
2498
+ "type": {
2499
+ "text": "string"
2500
+ },
2501
+ "description": "Error message to display"
2502
+ },
2503
+ {
2504
+ "name": "tagName",
2505
+ "type": {
2506
+ "text": "string"
2507
+ },
2508
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2509
+ }
2510
+ ],
2511
+ "description": "Shows a criteria error as a toast notification."
2444
2512
  }
2445
2513
  ],
2446
2514
  "exports": [
2447
2515
  {
2448
2516
  "kind": "js",
2449
- "name": "foundationAiCriteriaSearchStyles",
2517
+ "name": "formatValidationErrors",
2450
2518
  "declaration": {
2451
- "name": "foundationAiCriteriaSearchStyles",
2452
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2519
+ "name": "formatValidationErrors",
2520
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2521
+ }
2522
+ },
2523
+ {
2524
+ "kind": "js",
2525
+ "name": "showCriteriaError",
2526
+ "declaration": {
2527
+ "name": "showCriteriaError",
2528
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2453
2529
  }
2454
2530
  }
2455
2531
  ]
2456
2532
  },
2457
2533
  {
2458
2534
  "kind": "javascript-module",
2459
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2535
+ "path": "src/accordion/accordion.styles.ts",
2460
2536
  "declarations": [
2461
2537
  {
2462
- "kind": "variable",
2463
- "name": "foundationAiCriteriaSearchTemplate",
2464
- "type": {
2465
- "text": "ViewTemplate<AiCriteriaSearch>"
2538
+ "kind": "function",
2539
+ "name": "foundationAccordionStyles",
2540
+ "return": {
2541
+ "type": {
2542
+ "text": "ElementStyles"
2543
+ }
2544
+ },
2545
+ "parameters": [
2546
+ {
2547
+ "name": "context",
2548
+ "type": {
2549
+ "text": "ElementDefinitionContext"
2550
+ }
2551
+ },
2552
+ {
2553
+ "name": "definition",
2554
+ "type": {
2555
+ "text": "FoundationElementDefinition"
2556
+ }
2557
+ }
2558
+ ]
2559
+ }
2560
+ ],
2561
+ "exports": [
2562
+ {
2563
+ "kind": "js",
2564
+ "name": "foundationAccordionStyles",
2565
+ "declaration": {
2566
+ "name": "foundationAccordionStyles",
2567
+ "module": "src/accordion/accordion.styles.ts"
2568
+ }
2569
+ }
2570
+ ]
2571
+ },
2572
+ {
2573
+ "kind": "javascript-module",
2574
+ "path": "src/accordion/accordion.template.ts",
2575
+ "declarations": [
2576
+ {
2577
+ "kind": "function",
2578
+ "name": "foundationAccordionTemplate",
2579
+ "return": {
2580
+ "type": {
2581
+ "text": "ViewTemplate<Accordion>"
2582
+ }
2466
2583
  },
2467
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2584
+ "parameters": [
2585
+ {
2586
+ "name": "context",
2587
+ "type": {
2588
+ "text": "ElementDefinitionContext"
2589
+ }
2590
+ },
2591
+ {
2592
+ "name": "definition",
2593
+ "type": {
2594
+ "text": "FoundationElementDefinition"
2595
+ }
2596
+ }
2597
+ ]
2468
2598
  }
2469
2599
  ],
2470
2600
  "exports": [
2471
2601
  {
2472
2602
  "kind": "js",
2473
- "name": "foundationAiCriteriaSearchTemplate",
2603
+ "name": "foundationAccordionTemplate",
2474
2604
  "declaration": {
2475
- "name": "foundationAiCriteriaSearchTemplate",
2476
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2605
+ "name": "foundationAccordionTemplate",
2606
+ "module": "src/accordion/accordion.template.ts"
2477
2607
  }
2478
2608
  }
2479
2609
  ]
2480
2610
  },
2481
2611
  {
2482
2612
  "kind": "javascript-module",
2483
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2613
+ "path": "src/accordion/accordion.ts",
2484
2614
  "declarations": [
2485
2615
  {
2486
2616
  "kind": "class",
2487
- "description": "Natural-language criteria search input with AI interpretation.",
2488
- "name": "AiCriteriaSearch",
2489
- "members": [
2490
- {
2491
- "kind": "field",
2492
- "name": "providerRegistry",
2493
- "type": {
2494
- "text": "AIProviderRegistry"
2495
- }
2496
- },
2617
+ "description": "",
2618
+ "name": "Accordion",
2619
+ "superclass": {
2620
+ "name": "FASTAccordion",
2621
+ "package": "@microsoft/fast-foundation"
2622
+ },
2623
+ "tagName": "%%prefix%%-accordion",
2624
+ "customElement": true,
2625
+ "attributes": [
2497
2626
  {
2498
- "kind": "field",
2499
- "name": "placeholder",
2627
+ "name": "expand-mode",
2500
2628
  "type": {
2501
- "text": "string"
2629
+ "text": "AccordionExpandMode"
2502
2630
  },
2503
- "default": "'Describe your search criteria in natural language...'"
2504
- },
2505
- {
2506
- "kind": "field",
2507
- "name": "disabled",
2508
- "type": {
2509
- "text": "boolean"
2631
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2632
+ "fieldName": "expandmode",
2633
+ "inheritedFrom": {
2634
+ "name": "Accordion",
2635
+ "module": "src/accordion/accordion.ts"
2510
2636
  }
2511
- },
2512
- {
2513
- "kind": "field",
2514
- "name": "inputValue",
2515
- "type": {
2516
- "text": "string"
2517
- },
2518
- "default": "''"
2519
- },
2637
+ }
2638
+ ],
2639
+ "members": [
2520
2640
  {
2521
2641
  "kind": "field",
2522
- "name": "isInterpreting",
2642
+ "name": "expandmode",
2523
2643
  "type": {
2524
- "text": "boolean"
2644
+ "text": "AccordionExpandMode"
2525
2645
  },
2526
- "default": "false"
2646
+ "privacy": "public",
2647
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2648
+ "inheritedFrom": {
2649
+ "name": "Accordion",
2650
+ "module": "src/accordion/accordion.ts"
2651
+ }
2527
2652
  },
2528
2653
  {
2529
2654
  "kind": "field",
2530
- "name": "lastValidCriteria",
2655
+ "name": "activeid",
2531
2656
  "type": {
2532
2657
  "text": "string | null"
2533
2658
  },
2534
- "default": "null"
2535
- },
2536
- {
2537
- "kind": "field",
2538
- "name": "activeGroups",
2539
- "type": {
2540
- "text": "CriteriaGroup[]"
2541
- },
2542
- "default": "[]"
2659
+ "privacy": "private",
2660
+ "inheritedFrom": {
2661
+ "name": "Accordion",
2662
+ "module": "src/accordion/accordion.ts"
2663
+ }
2543
2664
  },
2544
2665
  {
2545
2666
  "kind": "field",
2546
- "name": "showingChips",
2667
+ "name": "activeItemIndex",
2547
2668
  "type": {
2548
- "text": "boolean"
2669
+ "text": "number"
2549
2670
  },
2550
- "default": "false"
2671
+ "privacy": "private",
2672
+ "default": "0",
2673
+ "inheritedFrom": {
2674
+ "name": "Accordion",
2675
+ "module": "src/accordion/accordion.ts"
2676
+ }
2551
2677
  },
2552
2678
  {
2553
2679
  "kind": "field",
2554
- "name": "fieldMetadata",
2680
+ "name": "accordionIds",
2555
2681
  "type": {
2556
- "text": "MetadataDetail[] | string[]"
2682
+ "text": "Array<string | null>"
2557
2683
  },
2558
- "default": "[]"
2684
+ "privacy": "private",
2685
+ "inheritedFrom": {
2686
+ "name": "Accordion",
2687
+ "module": "src/accordion/accordion.ts"
2688
+ }
2559
2689
  },
2560
2690
  {
2561
2691
  "kind": "field",
2562
- "name": "isRecording",
2563
- "type": {
2564
- "text": "boolean"
2565
- },
2566
- "default": "false"
2692
+ "name": "change",
2693
+ "privacy": "private",
2694
+ "inheritedFrom": {
2695
+ "name": "Accordion",
2696
+ "module": "src/accordion/accordion.ts"
2697
+ }
2567
2698
  },
2568
2699
  {
2569
- "kind": "field",
2570
- "name": "textAreaRef",
2571
- "type": {
2572
- "text": "HTMLTextAreaElement"
2700
+ "kind": "method",
2701
+ "name": "findExpandedItem",
2702
+ "privacy": "private",
2703
+ "return": {
2704
+ "type": {
2705
+ "text": "AccordionItem | null"
2706
+ }
2573
2707
  },
2574
- "privacy": "public"
2708
+ "inheritedFrom": {
2709
+ "name": "Accordion",
2710
+ "module": "src/accordion/accordion.ts"
2711
+ }
2575
2712
  },
2576
2713
  {
2577
2714
  "kind": "field",
2578
- "name": "stopRecording",
2579
- "type": {
2580
- "text": "(() => void) | null"
2581
- },
2715
+ "name": "setItems",
2582
2716
  "privacy": "private",
2583
- "default": "null"
2717
+ "inheritedFrom": {
2718
+ "name": "Accordion",
2719
+ "module": "src/accordion/accordion.ts"
2720
+ }
2584
2721
  },
2585
2722
  {
2586
- "kind": "field",
2587
- "name": "speechApplyDebounceTimer",
2588
- "type": {
2589
- "text": "ReturnType<typeof setTimeout> | null"
2590
- },
2723
+ "kind": "method",
2724
+ "name": "resetItems",
2591
2725
  "privacy": "private",
2592
- "default": "null"
2726
+ "return": {
2727
+ "type": {
2728
+ "text": "void"
2729
+ }
2730
+ },
2731
+ "inheritedFrom": {
2732
+ "name": "Accordion",
2733
+ "module": "src/accordion/accordion.ts"
2734
+ }
2593
2735
  },
2594
2736
  {
2595
2737
  "kind": "field",
2596
- "name": "speechAvailable",
2597
- "type": {
2598
- "text": "boolean"
2599
- },
2600
- "readonly": true
2738
+ "name": "removeItemListeners",
2739
+ "privacy": "private",
2740
+ "inheritedFrom": {
2741
+ "name": "Accordion",
2742
+ "module": "src/accordion/accordion.ts"
2743
+ }
2601
2744
  },
2602
2745
  {
2603
2746
  "kind": "field",
2604
- "name": "criteriaChips",
2605
- "type": {
2606
- "text": "CriteriaChip[]"
2607
- },
2608
- "readonly": true
2747
+ "name": "activeItemChange",
2748
+ "privacy": "private",
2749
+ "inheritedFrom": {
2750
+ "name": "Accordion",
2751
+ "module": "src/accordion/accordion.ts"
2752
+ }
2609
2753
  },
2610
2754
  {
2611
2755
  "kind": "method",
2612
- "name": "getFieldLabel",
2756
+ "name": "getItemIds",
2613
2757
  "privacy": "private",
2614
2758
  "return": {
2615
2759
  "type": {
2616
- "text": "string"
2760
+ "text": "Array<string | null>"
2617
2761
  }
2618
2762
  },
2619
- "parameters": [
2620
- {
2621
- "name": "fieldName",
2622
- "type": {
2623
- "text": "string"
2624
- }
2625
- }
2626
- ]
2763
+ "inheritedFrom": {
2764
+ "name": "Accordion",
2765
+ "module": "src/accordion/accordion.ts"
2766
+ }
2627
2767
  },
2628
2768
  {
2629
2769
  "kind": "method",
2630
- "name": "toggleCriteriaView",
2770
+ "name": "isSingleExpandMode",
2771
+ "privacy": "private",
2631
2772
  "return": {
2632
2773
  "type": {
2633
- "text": "void"
2774
+ "text": "boolean"
2634
2775
  }
2776
+ },
2777
+ "inheritedFrom": {
2778
+ "name": "Accordion",
2779
+ "module": "src/accordion/accordion.ts"
2780
+ }
2781
+ },
2782
+ {
2783
+ "kind": "field",
2784
+ "name": "handleItemKeyDown",
2785
+ "privacy": "private",
2786
+ "inheritedFrom": {
2787
+ "name": "Accordion",
2788
+ "module": "src/accordion/accordion.ts"
2789
+ }
2790
+ },
2791
+ {
2792
+ "kind": "field",
2793
+ "name": "handleItemFocus",
2794
+ "privacy": "private",
2795
+ "inheritedFrom": {
2796
+ "name": "Accordion",
2797
+ "module": "src/accordion/accordion.ts"
2635
2798
  }
2636
2799
  },
2637
2800
  {
2638
2801
  "kind": "method",
2639
- "name": "removeChip",
2802
+ "name": "adjust",
2803
+ "privacy": "private",
2640
2804
  "return": {
2641
2805
  "type": {
2642
2806
  "text": "void"
@@ -2644,49 +2808,31 @@
2644
2808
  },
2645
2809
  "parameters": [
2646
2810
  {
2647
- "name": "groupIndex",
2648
- "type": {
2649
- "text": "number"
2650
- }
2651
- },
2652
- {
2653
- "name": "clauseIndex",
2811
+ "name": "adjustment",
2654
2812
  "type": {
2655
2813
  "text": "number"
2656
2814
  }
2657
2815
  }
2658
- ]
2816
+ ],
2817
+ "inheritedFrom": {
2818
+ "name": "Accordion",
2819
+ "module": "src/accordion/accordion.ts"
2820
+ }
2659
2821
  },
2660
2822
  {
2661
2823
  "kind": "method",
2662
- "name": "clearChips",
2824
+ "name": "focusItem",
2825
+ "privacy": "private",
2663
2826
  "return": {
2664
2827
  "type": {
2665
2828
  "text": "void"
2666
2829
  }
2830
+ },
2831
+ "inheritedFrom": {
2832
+ "name": "Accordion",
2833
+ "module": "src/accordion/accordion.ts"
2667
2834
  }
2668
2835
  },
2669
- {
2670
- "kind": "method",
2671
- "name": "handleSubmit"
2672
- },
2673
- {
2674
- "kind": "method",
2675
- "name": "handleBlur"
2676
- },
2677
- {
2678
- "kind": "method",
2679
- "name": "clear"
2680
- },
2681
- {
2682
- "kind": "method",
2683
- "name": "toggleSpeechInput"
2684
- },
2685
- {
2686
- "kind": "method",
2687
- "name": "clearSpeechApplyDebounce",
2688
- "privacy": "private"
2689
- },
2690
2836
  {
2691
2837
  "kind": "field",
2692
2838
  "name": "_presentation",
@@ -2801,48 +2947,26 @@
2801
2947
  ],
2802
2948
  "events": [
2803
2949
  {
2804
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2805
- "name": "criteria-changed"
2806
- },
2807
- {
2808
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2809
- "name": "validation-errors"
2810
- }
2811
- ],
2812
- "attributes": [
2813
- {
2814
- "name": "placeholder",
2815
- "type": {
2816
- "text": "string"
2817
- },
2818
- "default": "'Describe your search criteria in natural language...'",
2819
- "fieldName": "placeholder"
2820
- },
2821
- {
2822
- "type": {
2823
- "text": "boolean"
2824
- },
2825
- "fieldName": "disabled"
2950
+ "description": "Fires a custom 'change' event when the active item changes",
2951
+ "name": "change",
2952
+ "inheritedFrom": {
2953
+ "name": "Accordion",
2954
+ "module": "src/accordion/accordion.ts"
2955
+ }
2826
2956
  }
2827
- ],
2828
- "superclass": {
2829
- "name": "FoundationElement",
2830
- "package": "@microsoft/fast-foundation"
2831
- },
2832
- "tagName": "%%prefix%%-ai-criteria-search",
2833
- "customElement": true
2957
+ ]
2834
2958
  },
2835
2959
  {
2836
2960
  "kind": "variable",
2837
- "name": "foundationAiCriteriaSearchShadowOptions",
2961
+ "name": "foundationAccordionShadowOptions",
2838
2962
  "type": {
2839
2963
  "text": "ShadowRootInit"
2840
2964
  },
2841
- "default": "undefined"
2965
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2842
2966
  },
2843
2967
  {
2844
2968
  "kind": "variable",
2845
- "name": "defaultAiCriteriaSearchConfig",
2969
+ "name": "defaultAccordionConfig",
2846
2970
  "type": {
2847
2971
  "text": "object"
2848
2972
  },
@@ -2850,103 +2974,57 @@
2850
2974
  },
2851
2975
  {
2852
2976
  "kind": "variable",
2853
- "name": "foundationAiCriteriaSearch"
2977
+ "name": "foundationAccordion",
2978
+ "description": "The Foundation Accordion",
2979
+ "privacy": "public"
2854
2980
  }
2855
2981
  ],
2856
2982
  "exports": [
2857
2983
  {
2858
2984
  "kind": "js",
2859
- "name": "AiCriteriaSearch",
2985
+ "name": "Accordion",
2860
2986
  "declaration": {
2861
- "name": "AiCriteriaSearch",
2862
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2987
+ "name": "Accordion",
2988
+ "module": "src/accordion/accordion.ts"
2863
2989
  }
2864
2990
  },
2865
2991
  {
2866
2992
  "kind": "js",
2867
- "name": "foundationAiCriteriaSearchShadowOptions",
2993
+ "name": "foundationAccordionShadowOptions",
2868
2994
  "declaration": {
2869
- "name": "foundationAiCriteriaSearchShadowOptions",
2870
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2995
+ "name": "foundationAccordionShadowOptions",
2996
+ "module": "src/accordion/accordion.ts"
2871
2997
  }
2872
2998
  },
2873
2999
  {
2874
3000
  "kind": "js",
2875
- "name": "defaultAiCriteriaSearchConfig",
3001
+ "name": "defaultAccordionConfig",
2876
3002
  "declaration": {
2877
- "name": "defaultAiCriteriaSearchConfig",
2878
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3003
+ "name": "defaultAccordionConfig",
3004
+ "module": "src/accordion/accordion.ts"
2879
3005
  }
2880
3006
  },
2881
3007
  {
2882
3008
  "kind": "js",
2883
- "name": "foundationAiCriteriaSearch",
3009
+ "name": "foundationAccordion",
2884
3010
  "declaration": {
2885
- "name": "foundationAiCriteriaSearch",
2886
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3011
+ "name": "foundationAccordion",
3012
+ "module": "src/accordion/accordion.ts"
2887
3013
  }
2888
3014
  }
2889
3015
  ]
2890
3016
  },
2891
3017
  {
2892
3018
  "kind": "javascript-module",
2893
- "path": "src/ai-criteria-search/index.ts",
3019
+ "path": "src/accordion/index.ts",
2894
3020
  "declarations": [],
2895
3021
  "exports": [
2896
- {
2897
- "kind": "js",
2898
- "name": "AiCriteriaSearch",
2899
- "declaration": {
2900
- "name": "AiCriteriaSearch",
2901
- "module": "./ai-criteria-search"
2902
- }
2903
- },
2904
- {
2905
- "kind": "js",
2906
- "name": "defaultAiCriteriaSearchConfig",
2907
- "declaration": {
2908
- "name": "defaultAiCriteriaSearchConfig",
2909
- "module": "./ai-criteria-search"
2910
- }
2911
- },
2912
- {
2913
- "kind": "js",
2914
- "name": "foundationAiCriteriaSearch",
2915
- "declaration": {
2916
- "name": "foundationAiCriteriaSearch",
2917
- "module": "./ai-criteria-search"
2918
- }
2919
- },
2920
- {
2921
- "kind": "js",
2922
- "name": "foundationAiCriteriaSearchShadowOptions",
2923
- "declaration": {
2924
- "name": "foundationAiCriteriaSearchShadowOptions",
2925
- "module": "./ai-criteria-search"
2926
- }
2927
- },
2928
- {
2929
- "kind": "js",
2930
- "name": "foundationAiCriteriaSearchStyles",
2931
- "declaration": {
2932
- "name": "foundationAiCriteriaSearchStyles",
2933
- "module": "./ai-criteria-search.styles"
2934
- }
2935
- },
2936
- {
2937
- "kind": "js",
2938
- "name": "foundationAiCriteriaSearchTemplate",
2939
- "declaration": {
2940
- "name": "foundationAiCriteriaSearchTemplate",
2941
- "module": "./ai-criteria-search.template"
2942
- }
2943
- },
2944
3022
  {
2945
3023
  "kind": "js",
2946
3024
  "name": "*",
2947
3025
  "declaration": {
2948
3026
  "name": "*",
2949
- "package": "./validation/criteria-ir"
3027
+ "package": "./accordion.template"
2950
3028
  }
2951
3029
  },
2952
3030
  {
@@ -2954,7 +3032,7 @@
2954
3032
  "name": "*",
2955
3033
  "declaration": {
2956
3034
  "name": "*",
2957
- "package": "./validation/operator-map"
3035
+ "package": "./accordion.styles"
2958
3036
  }
2959
3037
  },
2960
3038
  {
@@ -2962,82 +3040,7 @@
2962
3040
  "name": "*",
2963
3041
  "declaration": {
2964
3042
  "name": "*",
2965
- "package": "./validation/schema-validator"
2966
- }
2967
- }
2968
- ]
2969
- },
2970
- {
2971
- "kind": "javascript-module",
2972
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2973
- "declarations": [
2974
- {
2975
- "kind": "function",
2976
- "name": "formatValidationErrors",
2977
- "return": {
2978
- "type": {
2979
- "text": "string"
2980
- }
2981
- },
2982
- "parameters": [
2983
- {
2984
- "name": "errors",
2985
- "type": {
2986
- "text": "ValidationError[]"
2987
- }
2988
- }
2989
- ],
2990
- "description": "Formats validation errors into a user-friendly message."
2991
- },
2992
- {
2993
- "kind": "function",
2994
- "name": "showCriteriaError",
2995
- "return": {
2996
- "type": {
2997
- "text": "void"
2998
- }
2999
- },
3000
- "parameters": [
3001
- {
3002
- "name": "title",
3003
- "type": {
3004
- "text": "string"
3005
- },
3006
- "description": "Notification title (e.g. \"Criteria validation error\")"
3007
- },
3008
- {
3009
- "name": "body",
3010
- "type": {
3011
- "text": "string"
3012
- },
3013
- "description": "Error message to display"
3014
- },
3015
- {
3016
- "name": "tagName",
3017
- "type": {
3018
- "text": "string"
3019
- },
3020
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3021
- }
3022
- ],
3023
- "description": "Shows a criteria error as a toast notification."
3024
- }
3025
- ],
3026
- "exports": [
3027
- {
3028
- "kind": "js",
3029
- "name": "formatValidationErrors",
3030
- "declaration": {
3031
- "name": "formatValidationErrors",
3032
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3033
- }
3034
- },
3035
- {
3036
- "kind": "js",
3037
- "name": "showCriteriaError",
3038
- "declaration": {
3039
- "name": "showCriteriaError",
3040
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3043
+ "package": "./accordion"
3041
3044
  }
3042
3045
  }
3043
3046
  ]
@@ -3467,76 +3470,101 @@
3467
3470
  },
3468
3471
  {
3469
3472
  "kind": "js",
3470
- "name": "AIIndicatorState",
3473
+ "name": "AIIndicatorState",
3474
+ "declaration": {
3475
+ "name": "AIIndicatorState",
3476
+ "module": "./ai-indicator"
3477
+ }
3478
+ },
3479
+ {
3480
+ "kind": "js",
3481
+ "name": "foundationAiIndicatorTemplate",
3482
+ "declaration": {
3483
+ "name": "foundationAiIndicatorTemplate",
3484
+ "module": "./ai-indicator.template"
3485
+ }
3486
+ },
3487
+ {
3488
+ "kind": "js",
3489
+ "name": "foundationAiIndicatorStyles",
3490
+ "declaration": {
3491
+ "name": "foundationAiIndicatorStyles",
3492
+ "module": "./ai-indicator.styles"
3493
+ }
3494
+ }
3495
+ ]
3496
+ },
3497
+ {
3498
+ "kind": "javascript-module",
3499
+ "path": "src/_config/index.ts",
3500
+ "declarations": [],
3501
+ "exports": [
3502
+ {
3503
+ "kind": "js",
3504
+ "name": "*",
3471
3505
  "declaration": {
3472
- "name": "AIIndicatorState",
3473
- "module": "./ai-indicator"
3506
+ "name": "*",
3507
+ "package": "./styles"
3474
3508
  }
3475
3509
  },
3476
3510
  {
3477
3511
  "kind": "js",
3478
- "name": "foundationAiIndicatorTemplate",
3512
+ "name": "*",
3479
3513
  "declaration": {
3480
- "name": "foundationAiIndicatorTemplate",
3481
- "module": "./ai-indicator.template"
3514
+ "name": "*",
3515
+ "package": "./tokens"
3482
3516
  }
3483
3517
  },
3484
3518
  {
3485
3519
  "kind": "js",
3486
- "name": "foundationAiIndicatorStyles",
3520
+ "name": "*",
3487
3521
  "declaration": {
3488
- "name": "foundationAiIndicatorStyles",
3489
- "module": "./ai-indicator.styles"
3522
+ "name": "*",
3523
+ "package": "./values"
3490
3524
  }
3491
3525
  }
3492
3526
  ]
3493
3527
  },
3494
3528
  {
3495
3529
  "kind": "javascript-module",
3496
- "path": "src/actions-menu/actions-menu.styles.ts",
3530
+ "path": "src/_common/affix-mixin.ts",
3497
3531
  "declarations": [
3498
3532
  {
3499
- "kind": "function",
3500
- "name": "actionsMenuBaseStyles",
3501
- "return": {
3502
- "type": {
3503
- "text": "ElementStyles"
3504
- }
3505
- },
3506
- "parameters": [
3533
+ "kind": "mixin",
3534
+ "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.",
3535
+ "name": "AffixMixin",
3536
+ "members": [
3507
3537
  {
3508
- "name": "context",
3538
+ "kind": "field",
3539
+ "name": "prefix",
3509
3540
  "type": {
3510
- "text": "ElementDefinitionContext"
3511
- }
3541
+ "text": "string"
3542
+ },
3543
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
3512
3544
  },
3513
3545
  {
3514
- "name": "definition",
3546
+ "kind": "field",
3547
+ "name": "suffix",
3515
3548
  "type": {
3516
- "text": "FoundationElementDefinition"
3517
- }
3518
- }
3519
- ]
3520
- },
3521
- {
3522
- "kind": "function",
3523
- "name": "foundationActionsMenuStyles",
3524
- "return": {
3525
- "type": {
3526
- "text": "ElementStyles"
3527
- }
3528
- },
3529
- "parameters": [
3549
+ "text": "string"
3550
+ },
3551
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
3552
+ },
3530
3553
  {
3531
- "name": "context",
3554
+ "kind": "field",
3555
+ "name": "hideAffixFromScreenReader",
3532
3556
  "type": {
3533
- "text": "ElementDefinitionContext"
3534
- }
3535
- },
3557
+ "text": "boolean"
3558
+ },
3559
+ "default": "false",
3560
+ "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."
3561
+ }
3562
+ ],
3563
+ "parameters": [
3536
3564
  {
3537
- "name": "definition",
3565
+ "name": "Base",
3538
3566
  "type": {
3539
- "text": "FoundationElementDefinition"
3567
+ "text": "TBase"
3540
3568
  }
3541
3569
  }
3542
3570
  ]
@@ -3545,281 +3573,232 @@
3545
3573
  "exports": [
3546
3574
  {
3547
3575
  "kind": "js",
3548
- "name": "actionsMenuBaseStyles",
3549
- "declaration": {
3550
- "name": "actionsMenuBaseStyles",
3551
- "module": "src/actions-menu/actions-menu.styles.ts"
3552
- }
3553
- },
3554
- {
3555
- "kind": "js",
3556
- "name": "foundationActionsMenuStyles",
3576
+ "name": "AffixMixin",
3557
3577
  "declaration": {
3558
- "name": "foundationActionsMenuStyles",
3559
- "module": "src/actions-menu/actions-menu.styles.ts"
3578
+ "name": "AffixMixin",
3579
+ "module": "src/_common/affix-mixin.ts"
3560
3580
  }
3561
3581
  }
3562
3582
  ]
3563
3583
  },
3564
3584
  {
3565
3585
  "kind": "javascript-module",
3566
- "path": "src/actions-menu/actions-menu.template.ts",
3586
+ "path": "src/_common/alert-flash-clock.ts",
3567
3587
  "declarations": [
3568
3588
  {
3569
- "kind": "function",
3570
- "name": "menuTemplate",
3571
- "parameters": [
3572
- {
3573
- "name": "prefix",
3574
- "type": {
3575
- "text": "string"
3576
- }
3577
- }
3578
- ]
3579
- },
3580
- {
3581
- "kind": "function",
3582
- "name": "singleOptionTemplate",
3583
- "parameters": [
3584
- {
3585
- "name": "prefix",
3586
- "type": {
3587
- "text": "string"
3588
- }
3589
- }
3590
- ]
3589
+ "kind": "variable",
3590
+ "name": "alertFlashPhaseProperty",
3591
+ "type": {
3592
+ "text": "string"
3593
+ },
3594
+ "default": "'--alert-flash-t'",
3595
+ "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.",
3596
+ "privacy": "public"
3591
3597
  },
3592
3598
  {
3593
3599
  "kind": "variable",
3594
- "name": "foundationActionsMenuTemplate",
3600
+ "name": "alertFlashDurationProperty",
3595
3601
  "type": {
3596
- "text": "ViewTemplate<ActionsMenu>"
3602
+ "text": "string"
3597
3603
  },
3598
- "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`"
3604
+ "default": "'--alert-flash-duration'",
3605
+ "description": "Custom property setting how long one flash cycle takes. Set it on `:root` to retime every\nalerting surface at once.",
3606
+ "privacy": "public"
3607
+ },
3608
+ {
3609
+ "kind": "function",
3610
+ "name": "installAlertFlashClock",
3611
+ "return": {
3612
+ "type": {
3613
+ "text": "void"
3614
+ }
3615
+ },
3616
+ "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.",
3617
+ "privacy": "public"
3599
3618
  }
3600
3619
  ],
3601
3620
  "exports": [
3602
3621
  {
3603
3622
  "kind": "js",
3604
- "name": "menuTemplate",
3623
+ "name": "alertFlashPhaseProperty",
3605
3624
  "declaration": {
3606
- "name": "menuTemplate",
3607
- "module": "src/actions-menu/actions-menu.template.ts"
3625
+ "name": "alertFlashPhaseProperty",
3626
+ "module": "src/_common/alert-flash-clock.ts"
3608
3627
  }
3609
3628
  },
3610
3629
  {
3611
3630
  "kind": "js",
3612
- "name": "singleOptionTemplate",
3631
+ "name": "alertFlashDurationProperty",
3613
3632
  "declaration": {
3614
- "name": "singleOptionTemplate",
3615
- "module": "src/actions-menu/actions-menu.template.ts"
3633
+ "name": "alertFlashDurationProperty",
3634
+ "module": "src/_common/alert-flash-clock.ts"
3616
3635
  }
3617
3636
  },
3618
3637
  {
3619
3638
  "kind": "js",
3620
- "name": "foundationActionsMenuTemplate",
3639
+ "name": "installAlertFlashClock",
3621
3640
  "declaration": {
3622
- "name": "foundationActionsMenuTemplate",
3623
- "module": "src/actions-menu/actions-menu.template.ts"
3641
+ "name": "installAlertFlashClock",
3642
+ "module": "src/_common/alert-flash-clock.ts"
3624
3643
  }
3625
3644
  }
3626
3645
  ]
3627
3646
  },
3628
3647
  {
3629
3648
  "kind": "javascript-module",
3630
- "path": "src/actions-menu/actions-menu.ts",
3649
+ "path": "src/_common/base-file-component.ts",
3631
3650
  "declarations": [
3632
3651
  {
3633
3652
  "kind": "class",
3634
- "description": "",
3635
- "name": "ActionsMenu",
3653
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
3654
+ "name": "BaseFileComponent",
3636
3655
  "members": [
3637
3656
  {
3638
3657
  "kind": "field",
3639
- "name": "actions",
3640
- "type": {
3641
- "text": "ActionMenuItem[]"
3642
- }
3643
- },
3644
- {
3645
- "kind": "field",
3646
- "name": "isVertical",
3647
- "type": {
3648
- "text": "boolean"
3649
- },
3650
- "default": "false"
3651
- },
3652
- {
3653
- "kind": "field",
3654
- "name": "addDefaultActions",
3658
+ "name": "fileInput",
3655
3659
  "type": {
3656
- "text": "boolean"
3660
+ "text": "HTMLInputElement"
3657
3661
  },
3658
- "default": "true"
3662
+ "privacy": "public"
3659
3663
  },
3660
3664
  {
3661
3665
  "kind": "field",
3662
- "name": "autoCloseOnAction",
3666
+ "name": "selectedFile",
3663
3667
  "type": {
3664
- "text": "boolean"
3668
+ "text": "File | null"
3665
3669
  },
3666
- "default": "true"
3670
+ "privacy": "protected",
3671
+ "default": "null"
3667
3672
  },
3668
3673
  {
3669
3674
  "kind": "field",
3670
- "name": "classNames",
3675
+ "name": "label",
3671
3676
  "type": {
3672
3677
  "text": "string"
3673
3678
  }
3674
3679
  },
3675
3680
  {
3676
3681
  "kind": "field",
3677
- "name": "definition",
3678
- "type": {
3679
- "text": "any"
3680
- }
3681
- },
3682
- {
3683
- "kind": "field",
3684
- "name": "name",
3682
+ "name": "accept",
3685
3683
  "type": {
3686
3684
  "text": "string"
3687
3685
  },
3688
- "default": "'Actions'"
3689
- },
3690
- {
3691
- "kind": "field",
3692
- "name": "open",
3693
- "type": {
3694
- "text": "boolean"
3695
- },
3696
- "default": "false"
3686
+ "default": "''"
3697
3687
  },
3698
3688
  {
3699
3689
  "kind": "field",
3700
- "name": "buttonAppearance",
3690
+ "name": "fileSizeLimitBytes",
3691
+ "default": "10_485_760",
3701
3692
  "type": {
3702
- "text": "string"
3693
+ "text": "number"
3703
3694
  }
3704
3695
  },
3705
3696
  {
3706
3697
  "kind": "field",
3707
- "name": "hideDisabled",
3698
+ "name": "fileName",
3708
3699
  "type": {
3709
- "text": "boolean"
3700
+ "text": "string"
3710
3701
  },
3711
- "default": "false"
3702
+ "default": "''"
3712
3703
  },
3713
3704
  {
3714
3705
  "kind": "field",
3715
- "name": "hideMenuSingleOption",
3706
+ "name": "isProcessing",
3716
3707
  "type": {
3717
3708
  "text": "boolean"
3718
3709
  },
3719
3710
  "default": "false"
3720
3711
  },
3721
- {
3722
- "kind": "field",
3723
- "name": "singleOption",
3724
- "type": {
3725
- "text": "ActionMenuItem"
3726
- }
3727
- },
3728
- {
3729
- "kind": "field",
3730
- "name": "actionsMenu",
3731
- "type": {
3732
- "text": "HTMLElement"
3733
- }
3734
- },
3735
- {
3736
- "kind": "field",
3737
- "name": "actionsOpener",
3738
- "type": {
3739
- "text": "HTMLElement"
3740
- }
3741
- },
3742
3712
  {
3743
3713
  "kind": "method",
3744
- "name": "updateMenuPosition",
3745
- "privacy": "private"
3714
+ "name": "handleClick",
3715
+ "privacy": "public",
3716
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
3746
3717
  },
3747
3718
  {
3748
3719
  "kind": "method",
3749
- "name": "definitionChanged",
3750
- "privacy": "protected",
3720
+ "name": "onInputChange",
3721
+ "privacy": "public",
3751
3722
  "parameters": [
3752
3723
  {
3753
- "name": "oldValue",
3754
- "type": {
3755
- "text": "any"
3756
- }
3757
- },
3758
- {
3759
- "name": "newValue",
3724
+ "name": "e",
3760
3725
  "type": {
3761
- "text": "any"
3762
- }
3726
+ "text": "Event"
3727
+ },
3728
+ "description": "The change event from the file input"
3763
3729
  }
3764
- ]
3730
+ ],
3731
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
3765
3732
  },
3766
3733
  {
3767
3734
  "kind": "method",
3768
- "name": "openChanged",
3769
- "privacy": "protected"
3735
+ "name": "clearSelection",
3736
+ "privacy": "public",
3737
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
3770
3738
  },
3771
3739
  {
3772
3740
  "kind": "method",
3773
- "name": "toggleActionsMenuVisibility"
3741
+ "name": "getSelectedFile",
3742
+ "privacy": "public",
3743
+ "description": "Gets the currently selected file object",
3744
+ "return": {
3745
+ "type": {
3746
+ "text": ""
3747
+ }
3748
+ }
3774
3749
  },
3775
3750
  {
3776
3751
  "kind": "method",
3777
- "name": "onActionMenuItemClick",
3752
+ "name": "showError",
3753
+ "privacy": "protected",
3778
3754
  "parameters": [
3779
3755
  {
3780
- "name": "callback",
3756
+ "name": "title",
3781
3757
  "type": {
3782
- "text": "(rowData) => void | any"
3783
- }
3758
+ "text": "string"
3759
+ },
3760
+ "description": "The error title"
3761
+ },
3762
+ {
3763
+ "name": "message",
3764
+ "type": {
3765
+ "text": "string"
3766
+ },
3767
+ "description": "The error message"
3784
3768
  }
3785
- ]
3786
- },
3787
- {
3788
- "kind": "field",
3789
- "name": "allActions",
3790
- "type": {
3791
- "text": "ActionMenuItem[]"
3792
- },
3793
- "readonly": true
3794
- },
3795
- {
3796
- "kind": "field",
3797
- "name": "rowData",
3798
- "readonly": true
3769
+ ],
3770
+ "description": "Shows an error notification using the unified error handling system"
3799
3771
  },
3800
3772
  {
3801
3773
  "kind": "method",
3802
- "name": "getLabel",
3774
+ "name": "onFileSelected",
3775
+ "privacy": "protected",
3776
+ "return": {
3777
+ "type": {
3778
+ "text": "void"
3779
+ }
3780
+ },
3803
3781
  "parameters": [
3804
3782
  {
3805
- "name": "name",
3783
+ "name": "files",
3806
3784
  "type": {
3807
- "text": "string | ((rowData: any) => string)"
3808
- }
3785
+ "text": "File[]"
3786
+ },
3787
+ "description": "The selected file"
3809
3788
  }
3810
- ]
3789
+ ],
3790
+ "description": "Abstract method called when a file is selected"
3811
3791
  },
3812
3792
  {
3813
3793
  "kind": "method",
3814
- "name": "getTemplate",
3815
- "parameters": [
3816
- {
3817
- "name": "prefix",
3818
- "type": {
3819
- "text": "string"
3820
- }
3794
+ "name": "onFileCleared",
3795
+ "privacy": "protected",
3796
+ "return": {
3797
+ "type": {
3798
+ "text": "void"
3821
3799
  }
3822
- ]
3800
+ },
3801
+ "description": "Abstract method called when file selection is cleared"
3823
3802
  },
3824
3803
  {
3825
3804
  "kind": "field",
@@ -3933,107 +3912,112 @@
3933
3912
  }
3934
3913
  }
3935
3914
  ],
3936
- "attributes": [
3937
- {
3938
- "name": "is-vertical",
3939
- "type": {
3940
- "text": "boolean"
3941
- },
3942
- "default": "false",
3943
- "fieldName": "isVertical"
3944
- },
3915
+ "events": [
3945
3916
  {
3946
- "name": "add-default-actions",
3947
- "type": {
3948
- "text": "boolean"
3949
- },
3950
- "default": "true",
3951
- "fieldName": "addDefaultActions"
3917
+ "description": "Fired when file size validation fails. detail: `Error`",
3918
+ "name": "error"
3952
3919
  },
3953
3920
  {
3954
- "name": "auto-close-on-action",
3955
- "type": {
3956
- "text": "boolean"
3957
- },
3958
- "default": "true",
3959
- "fieldName": "autoCloseOnAction"
3960
- },
3921
+ "description": "Fired when selection is cleared",
3922
+ "name": "clear"
3923
+ }
3924
+ ],
3925
+ "attributes": [
3961
3926
  {
3962
- "name": "name",
3927
+ "name": "label",
3963
3928
  "type": {
3964
3929
  "text": "string"
3965
3930
  },
3966
- "default": "'Actions'",
3967
- "fieldName": "name"
3968
- },
3969
- {
3970
- "name": "open",
3971
- "type": {
3972
- "text": "boolean"
3973
- },
3974
- "default": "false",
3975
- "fieldName": "open"
3931
+ "fieldName": "label"
3976
3932
  },
3977
3933
  {
3978
- "name": "buttonAppearance",
3934
+ "name": "accept",
3979
3935
  "type": {
3980
3936
  "text": "string"
3981
3937
  },
3982
- "fieldName": "buttonAppearance"
3983
- },
3984
- {
3985
- "name": "hide-disabled",
3986
- "type": {
3987
- "text": "boolean"
3988
- },
3989
- "default": "false",
3990
- "fieldName": "hideDisabled"
3938
+ "default": "''",
3939
+ "fieldName": "accept"
3991
3940
  },
3992
3941
  {
3993
- "name": "hide-menu-single-option",
3994
- "type": {
3995
- "text": "boolean"
3942
+ "name": "file-size-limit-bytes",
3943
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
3944
+ "resolveInitializer": {
3945
+ "module": "src/_common/base-file-component.ts"
3996
3946
  },
3997
- "default": "false",
3998
- "fieldName": "hideMenuSingleOption"
3947
+ "fieldName": "fileSizeLimitBytes"
3999
3948
  }
4000
3949
  ],
4001
3950
  "superclass": {
4002
3951
  "name": "FoundationElement",
4003
3952
  "package": "@microsoft/fast-foundation"
4004
- },
4005
- "tagName": "%%prefix%%-actions-menu",
4006
- "customElement": true
4007
- },
3953
+ }
3954
+ }
3955
+ ],
3956
+ "exports": [
3957
+ {
3958
+ "kind": "js",
3959
+ "name": "BaseFileComponent",
3960
+ "declaration": {
3961
+ "name": "BaseFileComponent",
3962
+ "module": "src/_common/base-file-component.ts"
3963
+ }
3964
+ }
3965
+ ]
3966
+ },
3967
+ {
3968
+ "kind": "javascript-module",
3969
+ "path": "src/_common/field-styles.ts",
3970
+ "declarations": [
4008
3971
  {
4009
3972
  "kind": "variable",
4010
- "name": "foundationActionsMenu",
4011
- "description": "The Foundation Actions Menu",
4012
- "privacy": "public"
3973
+ "name": "sharedFieldStyles",
3974
+ "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`"
4013
3975
  }
4014
3976
  ],
4015
3977
  "exports": [
4016
3978
  {
4017
3979
  "kind": "js",
4018
- "name": "ActionsMenu",
3980
+ "name": "sharedFieldStyles",
4019
3981
  "declaration": {
4020
- "name": "ActionsMenu",
4021
- "module": "src/actions-menu/actions-menu.ts"
3982
+ "name": "sharedFieldStyles",
3983
+ "module": "src/_common/field-styles.ts"
4022
3984
  }
4023
- },
3985
+ }
3986
+ ]
3987
+ },
3988
+ {
3989
+ "kind": "javascript-module",
3990
+ "path": "src/_common/icons.ts",
3991
+ "declarations": [
3992
+ {
3993
+ "kind": "function",
3994
+ "name": "closeIcon",
3995
+ "parameters": [
3996
+ {
3997
+ "name": "slot",
3998
+ "default": "'start'"
3999
+ },
4000
+ {
4001
+ "name": "fill",
4002
+ "default": "'#879ba6'"
4003
+ }
4004
+ ]
4005
+ }
4006
+ ],
4007
+ "exports": [
4024
4008
  {
4025
4009
  "kind": "js",
4026
- "name": "foundationActionsMenu",
4010
+ "name": "closeIcon",
4027
4011
  "declaration": {
4028
- "name": "foundationActionsMenu",
4029
- "module": "src/actions-menu/actions-menu.ts"
4012
+ "name": "closeIcon",
4013
+ "module": "src/_common/icons.ts"
4030
4014
  }
4031
4015
  }
4032
4016
  ]
4033
4017
  },
4034
4018
  {
4035
4019
  "kind": "javascript-module",
4036
- "path": "src/actions-menu/index.ts",
4020
+ "path": "src/_common/index.ts",
4037
4021
  "declarations": [],
4038
4022
  "exports": [
4039
4023
  {
@@ -4041,7 +4025,7 @@
4041
4025
  "name": "*",
4042
4026
  "declaration": {
4043
4027
  "name": "*",
4044
- "package": "./actions-menu.styles"
4028
+ "package": "./affix-mixin"
4045
4029
  }
4046
4030
  },
4047
4031
  {
@@ -4049,7 +4033,7 @@
4049
4033
  "name": "*",
4050
4034
  "declaration": {
4051
4035
  "name": "*",
4052
- "package": "./actions-menu.template"
4036
+ "package": "./alert-flash-clock"
4053
4037
  }
4054
4038
  },
4055
4039
  {
@@ -4057,7 +4041,23 @@
4057
4041
  "name": "*",
4058
4042
  "declaration": {
4059
4043
  "name": "*",
4060
- "package": "./actions-menu"
4044
+ "package": "./base-file-component"
4045
+ }
4046
+ },
4047
+ {
4048
+ "kind": "js",
4049
+ "name": "*",
4050
+ "declaration": {
4051
+ "name": "*",
4052
+ "package": "./field-styles"
4053
+ }
4054
+ },
4055
+ {
4056
+ "kind": "js",
4057
+ "name": "*",
4058
+ "declaration": {
4059
+ "name": "*",
4060
+ "package": "./icons"
4061
4061
  }
4062
4062
  }
4063
4063
  ]
@@ -60120,6 +60120,197 @@
60120
60120
  }
60121
60121
  ]
60122
60122
  },
60123
+ {
60124
+ "kind": "javascript-module",
60125
+ "path": "src/ai-criteria-search/validation/criteria-ir.ts",
60126
+ "declarations": [],
60127
+ "exports": []
60128
+ },
60129
+ {
60130
+ "kind": "javascript-module",
60131
+ "path": "src/ai-criteria-search/validation/operator-map.ts",
60132
+ "declarations": [
60133
+ {
60134
+ "kind": "function",
60135
+ "name": "groupsToCriteria",
60136
+ "return": {
60137
+ "type": {
60138
+ "text": "string"
60139
+ }
60140
+ },
60141
+ "parameters": [
60142
+ {
60143
+ "name": "groups",
60144
+ "type": {
60145
+ "text": "CriteriaGroup[]"
60146
+ }
60147
+ }
60148
+ ],
60149
+ "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."
60150
+ },
60151
+ {
60152
+ "kind": "variable",
60153
+ "name": "STRING_OPERATORS",
60154
+ "type": {
60155
+ "text": "CriteriaOperator[]"
60156
+ },
60157
+ "default": "[\n 'contains',\n 'equals',\n 'startsWith',\n 'endsWith',\n 'notEqual',\n]"
60158
+ },
60159
+ {
60160
+ "kind": "variable",
60161
+ "name": "NUMERIC_OPERATORS",
60162
+ "type": {
60163
+ "text": "CriteriaOperator[]"
60164
+ },
60165
+ "default": "[\n 'equals',\n 'greaterThan',\n 'lessThan',\n 'greaterThanOrEqual',\n 'lessThanOrEqual',\n 'notEqual',\n]"
60166
+ },
60167
+ {
60168
+ "kind": "variable",
60169
+ "name": "DATE_OPERATORS",
60170
+ "type": {
60171
+ "text": "CriteriaOperator[]"
60172
+ },
60173
+ "default": "[\n 'dateIsToday',\n 'dateIsAfter',\n 'dateIsBefore',\n 'dateIsEqual',\n 'dateIsGreaterEqual',\n 'dateIsLessEqual',\n]"
60174
+ },
60175
+ {
60176
+ "kind": "variable",
60177
+ "name": "DATETIME_OPERATORS",
60178
+ "type": {
60179
+ "text": "CriteriaOperator[]"
60180
+ },
60181
+ "default": "[\n 'dateTimeIsAfter',\n 'dateTimeIsBefore',\n 'dateTimeIsGreaterEqual',\n 'dateTimeIsLessEqual',\n]"
60182
+ },
60183
+ {
60184
+ "kind": "variable",
60185
+ "name": "OPERATOR_DISPLAY_LABEL",
60186
+ "type": {
60187
+ "text": "Record<CriteriaOperator, string>"
60188
+ },
60189
+ "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}"
60190
+ }
60191
+ ],
60192
+ "exports": [
60193
+ {
60194
+ "kind": "js",
60195
+ "name": "groupsToCriteria",
60196
+ "declaration": {
60197
+ "name": "groupsToCriteria",
60198
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60199
+ }
60200
+ },
60201
+ {
60202
+ "kind": "js",
60203
+ "name": "STRING_OPERATORS",
60204
+ "declaration": {
60205
+ "name": "STRING_OPERATORS",
60206
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60207
+ }
60208
+ },
60209
+ {
60210
+ "kind": "js",
60211
+ "name": "NUMERIC_OPERATORS",
60212
+ "declaration": {
60213
+ "name": "NUMERIC_OPERATORS",
60214
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60215
+ }
60216
+ },
60217
+ {
60218
+ "kind": "js",
60219
+ "name": "DATE_OPERATORS",
60220
+ "declaration": {
60221
+ "name": "DATE_OPERATORS",
60222
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60223
+ }
60224
+ },
60225
+ {
60226
+ "kind": "js",
60227
+ "name": "DATETIME_OPERATORS",
60228
+ "declaration": {
60229
+ "name": "DATETIME_OPERATORS",
60230
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60231
+ }
60232
+ },
60233
+ {
60234
+ "kind": "js",
60235
+ "name": "OPERATOR_DISPLAY_LABEL",
60236
+ "declaration": {
60237
+ "name": "OPERATOR_DISPLAY_LABEL",
60238
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60239
+ }
60240
+ }
60241
+ ]
60242
+ },
60243
+ {
60244
+ "kind": "javascript-module",
60245
+ "path": "src/ai-criteria-search/validation/schema-validator.ts",
60246
+ "declarations": [
60247
+ {
60248
+ "kind": "function",
60249
+ "name": "validateClauses",
60250
+ "return": {
60251
+ "type": {
60252
+ "text": "ValidationResult"
60253
+ }
60254
+ },
60255
+ "parameters": [
60256
+ {
60257
+ "name": "clauses",
60258
+ "type": {
60259
+ "text": "CriteriaClause[]"
60260
+ }
60261
+ },
60262
+ {
60263
+ "name": "fieldMetadata",
60264
+ "type": {
60265
+ "text": "MetadataDetail[] | string[]"
60266
+ }
60267
+ }
60268
+ ]
60269
+ },
60270
+ {
60271
+ "kind": "function",
60272
+ "name": "validateGroups",
60273
+ "return": {
60274
+ "type": {
60275
+ "text": "GroupsValidationResult"
60276
+ }
60277
+ },
60278
+ "parameters": [
60279
+ {
60280
+ "name": "groups",
60281
+ "type": {
60282
+ "text": "CriteriaGroup[]"
60283
+ }
60284
+ },
60285
+ {
60286
+ "name": "fieldMetadata",
60287
+ "type": {
60288
+ "text": "MetadataDetail[] | string[]"
60289
+ }
60290
+ }
60291
+ ],
60292
+ "description": "Validates groups of criteria clauses. Each group's clauses are validated\nusing the same per-clause logic as validateClauses."
60293
+ }
60294
+ ],
60295
+ "exports": [
60296
+ {
60297
+ "kind": "js",
60298
+ "name": "validateClauses",
60299
+ "declaration": {
60300
+ "name": "validateClauses",
60301
+ "module": "src/ai-criteria-search/validation/schema-validator.ts"
60302
+ }
60303
+ },
60304
+ {
60305
+ "kind": "js",
60306
+ "name": "validateGroups",
60307
+ "declaration": {
60308
+ "name": "validateGroups",
60309
+ "module": "src/ai-criteria-search/validation/schema-validator.ts"
60310
+ }
60311
+ }
60312
+ ]
60313
+ },
60123
60314
  {
60124
60315
  "kind": "javascript-module",
60125
60316
  "path": "src/_config/styles/colors.ts",
@@ -61492,197 +61683,6 @@
61492
61683
  "declarations": [],
61493
61684
  "exports": []
61494
61685
  },
61495
- {
61496
- "kind": "javascript-module",
61497
- "path": "src/ai-criteria-search/validation/criteria-ir.ts",
61498
- "declarations": [],
61499
- "exports": []
61500
- },
61501
- {
61502
- "kind": "javascript-module",
61503
- "path": "src/ai-criteria-search/validation/operator-map.ts",
61504
- "declarations": [
61505
- {
61506
- "kind": "function",
61507
- "name": "groupsToCriteria",
61508
- "return": {
61509
- "type": {
61510
- "text": "string"
61511
- }
61512
- },
61513
- "parameters": [
61514
- {
61515
- "name": "groups",
61516
- "type": {
61517
- "text": "CriteriaGroup[]"
61518
- }
61519
- }
61520
- ],
61521
- "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."
61522
- },
61523
- {
61524
- "kind": "variable",
61525
- "name": "STRING_OPERATORS",
61526
- "type": {
61527
- "text": "CriteriaOperator[]"
61528
- },
61529
- "default": "[\n 'contains',\n 'equals',\n 'startsWith',\n 'endsWith',\n 'notEqual',\n]"
61530
- },
61531
- {
61532
- "kind": "variable",
61533
- "name": "NUMERIC_OPERATORS",
61534
- "type": {
61535
- "text": "CriteriaOperator[]"
61536
- },
61537
- "default": "[\n 'equals',\n 'greaterThan',\n 'lessThan',\n 'greaterThanOrEqual',\n 'lessThanOrEqual',\n 'notEqual',\n]"
61538
- },
61539
- {
61540
- "kind": "variable",
61541
- "name": "DATE_OPERATORS",
61542
- "type": {
61543
- "text": "CriteriaOperator[]"
61544
- },
61545
- "default": "[\n 'dateIsToday',\n 'dateIsAfter',\n 'dateIsBefore',\n 'dateIsEqual',\n 'dateIsGreaterEqual',\n 'dateIsLessEqual',\n]"
61546
- },
61547
- {
61548
- "kind": "variable",
61549
- "name": "DATETIME_OPERATORS",
61550
- "type": {
61551
- "text": "CriteriaOperator[]"
61552
- },
61553
- "default": "[\n 'dateTimeIsAfter',\n 'dateTimeIsBefore',\n 'dateTimeIsGreaterEqual',\n 'dateTimeIsLessEqual',\n]"
61554
- },
61555
- {
61556
- "kind": "variable",
61557
- "name": "OPERATOR_DISPLAY_LABEL",
61558
- "type": {
61559
- "text": "Record<CriteriaOperator, string>"
61560
- },
61561
- "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}"
61562
- }
61563
- ],
61564
- "exports": [
61565
- {
61566
- "kind": "js",
61567
- "name": "groupsToCriteria",
61568
- "declaration": {
61569
- "name": "groupsToCriteria",
61570
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61571
- }
61572
- },
61573
- {
61574
- "kind": "js",
61575
- "name": "STRING_OPERATORS",
61576
- "declaration": {
61577
- "name": "STRING_OPERATORS",
61578
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61579
- }
61580
- },
61581
- {
61582
- "kind": "js",
61583
- "name": "NUMERIC_OPERATORS",
61584
- "declaration": {
61585
- "name": "NUMERIC_OPERATORS",
61586
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61587
- }
61588
- },
61589
- {
61590
- "kind": "js",
61591
- "name": "DATE_OPERATORS",
61592
- "declaration": {
61593
- "name": "DATE_OPERATORS",
61594
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61595
- }
61596
- },
61597
- {
61598
- "kind": "js",
61599
- "name": "DATETIME_OPERATORS",
61600
- "declaration": {
61601
- "name": "DATETIME_OPERATORS",
61602
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61603
- }
61604
- },
61605
- {
61606
- "kind": "js",
61607
- "name": "OPERATOR_DISPLAY_LABEL",
61608
- "declaration": {
61609
- "name": "OPERATOR_DISPLAY_LABEL",
61610
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61611
- }
61612
- }
61613
- ]
61614
- },
61615
- {
61616
- "kind": "javascript-module",
61617
- "path": "src/ai-criteria-search/validation/schema-validator.ts",
61618
- "declarations": [
61619
- {
61620
- "kind": "function",
61621
- "name": "validateClauses",
61622
- "return": {
61623
- "type": {
61624
- "text": "ValidationResult"
61625
- }
61626
- },
61627
- "parameters": [
61628
- {
61629
- "name": "clauses",
61630
- "type": {
61631
- "text": "CriteriaClause[]"
61632
- }
61633
- },
61634
- {
61635
- "name": "fieldMetadata",
61636
- "type": {
61637
- "text": "MetadataDetail[] | string[]"
61638
- }
61639
- }
61640
- ]
61641
- },
61642
- {
61643
- "kind": "function",
61644
- "name": "validateGroups",
61645
- "return": {
61646
- "type": {
61647
- "text": "GroupsValidationResult"
61648
- }
61649
- },
61650
- "parameters": [
61651
- {
61652
- "name": "groups",
61653
- "type": {
61654
- "text": "CriteriaGroup[]"
61655
- }
61656
- },
61657
- {
61658
- "name": "fieldMetadata",
61659
- "type": {
61660
- "text": "MetadataDetail[] | string[]"
61661
- }
61662
- }
61663
- ],
61664
- "description": "Validates groups of criteria clauses. Each group's clauses are validated\nusing the same per-clause logic as validateClauses."
61665
- }
61666
- ],
61667
- "exports": [
61668
- {
61669
- "kind": "js",
61670
- "name": "validateClauses",
61671
- "declaration": {
61672
- "name": "validateClauses",
61673
- "module": "src/ai-criteria-search/validation/schema-validator.ts"
61674
- }
61675
- },
61676
- {
61677
- "kind": "js",
61678
- "name": "validateGroups",
61679
- "declaration": {
61680
- "name": "validateGroups",
61681
- "module": "src/ai-criteria-search/validation/schema-validator.ts"
61682
- }
61683
- }
61684
- ]
61685
- },
61686
61686
  {
61687
61687
  "kind": "javascript-module",
61688
61688
  "path": "src/environment-indicator/utils/configure.ts",