@genesislcap/foundation-ui 14.476.0 → 14.477.0

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.
@@ -934,66 +934,44 @@
934
934
  },
935
935
  {
936
936
  "kind": "javascript-module",
937
- "path": "src/accordion-item/accordion-item.styles.ts",
937
+ "path": "src/_common/affix-mixin.ts",
938
938
  "declarations": [
939
939
  {
940
- "kind": "function",
941
- "name": "foundationAccordionItemStyles",
942
- "return": {
943
- "type": {
944
- "text": "ElementStyles"
945
- }
946
- },
947
- "parameters": [
940
+ "kind": "mixin",
941
+ "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.",
942
+ "name": "AffixMixin",
943
+ "members": [
948
944
  {
949
- "name": "context",
945
+ "kind": "field",
946
+ "name": "prefix",
950
947
  "type": {
951
- "text": "ElementDefinitionContext"
952
- }
948
+ "text": "string"
949
+ },
950
+ "description": "Optional non-editable label shown on the left inside the field, before the input."
953
951
  },
954
952
  {
955
- "name": "definition",
953
+ "kind": "field",
954
+ "name": "suffix",
956
955
  "type": {
957
- "text": "FoundationElementDefinition"
958
- }
959
- }
960
- ]
961
- }
962
- ],
963
- "exports": [
964
- {
965
- "kind": "js",
966
- "name": "foundationAccordionItemStyles",
967
- "declaration": {
968
- "name": "foundationAccordionItemStyles",
969
- "module": "src/accordion-item/accordion-item.styles.ts"
970
- }
971
- }
972
- ]
973
- },
974
- {
975
- "kind": "javascript-module",
976
- "path": "src/accordion-item/accordion-item.template.ts",
977
- "declarations": [
978
- {
979
- "kind": "function",
980
- "name": "foundationAccordionItemTemplate",
981
- "return": {
982
- "type": {
983
- "text": "ViewTemplate<AccordionItem>"
984
- }
985
- },
986
- "parameters": [
956
+ "text": "string"
957
+ },
958
+ "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
959
+ },
987
960
  {
988
- "name": "context",
961
+ "kind": "field",
962
+ "name": "hideAffixFromScreenReader",
989
963
  "type": {
990
- "text": "ElementDefinitionContext"
991
- }
992
- },
964
+ "text": "boolean"
965
+ },
966
+ "default": "false",
967
+ "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."
968
+ }
969
+ ],
970
+ "parameters": [
993
971
  {
994
- "name": "definition",
972
+ "name": "Base",
995
973
  "type": {
996
- "text": "FoundationElementDefinition"
974
+ "text": "TBase"
997
975
  }
998
976
  }
999
977
  ]
@@ -1002,195 +980,247 @@
1002
980
  "exports": [
1003
981
  {
1004
982
  "kind": "js",
1005
- "name": "foundationAccordionItemTemplate",
983
+ "name": "AffixMixin",
1006
984
  "declaration": {
1007
- "name": "foundationAccordionItemTemplate",
1008
- "module": "src/accordion-item/accordion-item.template.ts"
985
+ "name": "AffixMixin",
986
+ "module": "src/_common/affix-mixin.ts"
1009
987
  }
1010
988
  }
1011
989
  ]
1012
990
  },
1013
991
  {
1014
992
  "kind": "javascript-module",
1015
- "path": "src/accordion-item/accordion-item.ts",
993
+ "path": "src/_common/base-file-component.ts",
1016
994
  "declarations": [
1017
995
  {
1018
996
  "kind": "class",
1019
- "description": "",
1020
- "name": "AccordionItem",
1021
- "superclass": {
1022
- "name": "FASTAccordionItem",
1023
- "package": "@microsoft/fast-components"
1024
- },
1025
- "tagName": "%%prefix%%-accordion-item",
1026
- "customElement": true,
1027
- "attributes": [
1028
- {
1029
- "name": "heading-level",
1030
- "type": {
1031
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1032
- },
1033
- "default": "2",
1034
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1035
- "fieldName": "headinglevel",
1036
- "inheritedFrom": {
1037
- "name": "AccordionItem",
1038
- "module": "src/accordion-item/accordion-item.ts"
1039
- }
1040
- },
997
+ "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
998
+ "name": "BaseFileComponent",
999
+ "members": [
1041
1000
  {
1001
+ "kind": "field",
1002
+ "name": "fileInput",
1042
1003
  "type": {
1043
- "text": "boolean"
1004
+ "text": "HTMLInputElement"
1044
1005
  },
1045
- "default": "false",
1046
- "description": "Expands or collapses the item.",
1047
- "fieldName": "expanded",
1048
- "inheritedFrom": {
1049
- "name": "AccordionItem",
1050
- "module": "src/accordion-item/accordion-item.ts"
1051
- }
1006
+ "privacy": "public"
1052
1007
  },
1053
- {
1054
- "name": "id",
1055
- "type": {
1056
- "text": "string"
1057
- },
1058
- "description": "The item ID",
1059
- "fieldName": "id",
1060
- "inheritedFrom": {
1061
- "name": "AccordionItem",
1062
- "module": "src/accordion-item/accordion-item.ts"
1063
- }
1064
- }
1065
- ],
1066
- "members": [
1067
1008
  {
1068
1009
  "kind": "field",
1069
- "name": "headinglevel",
1010
+ "name": "selectedFile",
1070
1011
  "type": {
1071
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1012
+ "text": "File | null"
1072
1013
  },
1073
- "privacy": "public",
1074
- "default": "2",
1075
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1076
- "inheritedFrom": {
1077
- "name": "AccordionItem",
1078
- "module": "src/accordion-item/accordion-item.ts"
1079
- }
1014
+ "privacy": "protected",
1015
+ "default": "null"
1080
1016
  },
1081
1017
  {
1082
1018
  "kind": "field",
1083
- "name": "expanded",
1019
+ "name": "label",
1084
1020
  "type": {
1085
- "text": "boolean"
1086
- },
1087
- "privacy": "public",
1088
- "default": "false",
1089
- "description": "Expands or collapses the item.",
1090
- "inheritedFrom": {
1091
- "name": "AccordionItem",
1092
- "module": "src/accordion-item/accordion-item.ts"
1021
+ "text": "string"
1093
1022
  }
1094
1023
  },
1095
1024
  {
1096
1025
  "kind": "field",
1097
- "name": "id",
1026
+ "name": "accept",
1098
1027
  "type": {
1099
1028
  "text": "string"
1100
1029
  },
1101
- "privacy": "public",
1102
- "description": "The item ID",
1103
- "inheritedFrom": {
1104
- "name": "AccordionItem",
1105
- "module": "src/accordion-item/accordion-item.ts"
1106
- }
1030
+ "default": "''"
1107
1031
  },
1108
1032
  {
1109
1033
  "kind": "field",
1110
- "name": "change",
1111
- "privacy": "private",
1112
- "inheritedFrom": {
1113
- "name": "AccordionItem",
1114
- "module": "src/accordion-item/accordion-item.ts"
1034
+ "name": "fileSizeLimitBytes",
1035
+ "default": "10_485_760",
1036
+ "type": {
1037
+ "text": "number"
1115
1038
  }
1116
1039
  },
1117
1040
  {
1118
1041
  "kind": "field",
1119
- "name": "_presentation",
1042
+ "name": "fileName",
1120
1043
  "type": {
1121
- "text": "ComponentPresentation | null | undefined"
1044
+ "text": "string"
1122
1045
  },
1123
- "privacy": "private",
1124
- "default": "void 0",
1125
- "inheritedFrom": {
1126
- "name": "FoundationElement",
1127
- "module": "src/foundation-element/foundation-element.ts"
1128
- }
1046
+ "default": "''"
1129
1047
  },
1130
1048
  {
1131
1049
  "kind": "field",
1132
- "name": "$presentation",
1050
+ "name": "isProcessing",
1133
1051
  "type": {
1134
- "text": "ComponentPresentation | null"
1052
+ "text": "boolean"
1135
1053
  },
1136
- "privacy": "public",
1137
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1138
- "inheritedFrom": {
1139
- "name": "FoundationElement",
1140
- "module": "src/foundation-element/foundation-element.ts"
1141
- }
1054
+ "default": "false"
1142
1055
  },
1143
1056
  {
1144
- "kind": "field",
1145
- "name": "template",
1146
- "type": {
1147
- "text": "ElementViewTemplate | void | null"
1148
- },
1057
+ "kind": "method",
1058
+ "name": "handleClick",
1149
1059
  "privacy": "public",
1150
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1151
- "inheritedFrom": {
1152
- "name": "FoundationElement",
1153
- "module": "src/foundation-element/foundation-element.ts"
1154
- }
1060
+ "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1155
1061
  },
1156
1062
  {
1157
1063
  "kind": "method",
1158
- "name": "templateChanged",
1159
- "privacy": "protected",
1160
- "return": {
1161
- "type": {
1162
- "text": "void"
1064
+ "name": "onInputChange",
1065
+ "privacy": "public",
1066
+ "parameters": [
1067
+ {
1068
+ "name": "e",
1069
+ "type": {
1070
+ "text": "Event"
1071
+ },
1072
+ "description": "The change event from the file input"
1163
1073
  }
1164
- },
1165
- "inheritedFrom": {
1166
- "name": "FoundationElement",
1167
- "module": "src/foundation-element/foundation-element.ts"
1168
- }
1074
+ ],
1075
+ "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1169
1076
  },
1170
1077
  {
1171
- "kind": "field",
1172
- "name": "styles",
1173
- "type": {
1174
- "text": "ElementStyles | void | null"
1175
- },
1078
+ "kind": "method",
1079
+ "name": "clearSelection",
1176
1080
  "privacy": "public",
1177
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1178
- "inheritedFrom": {
1179
- "name": "FoundationElement",
1180
- "module": "src/foundation-element/foundation-element.ts"
1181
- }
1081
+ "description": "Clears all file selection and processing state\nResets the component to its initial state"
1182
1082
  },
1183
1083
  {
1184
1084
  "kind": "method",
1185
- "name": "stylesChanged",
1186
- "privacy": "protected",
1085
+ "name": "getSelectedFile",
1086
+ "privacy": "public",
1087
+ "description": "Gets the currently selected file object",
1187
1088
  "return": {
1188
1089
  "type": {
1189
- "text": "void"
1090
+ "text": ""
1190
1091
  }
1191
- },
1192
- "inheritedFrom": {
1193
- "name": "FoundationElement",
1092
+ }
1093
+ },
1094
+ {
1095
+ "kind": "method",
1096
+ "name": "showError",
1097
+ "privacy": "protected",
1098
+ "parameters": [
1099
+ {
1100
+ "name": "title",
1101
+ "type": {
1102
+ "text": "string"
1103
+ },
1104
+ "description": "The error title"
1105
+ },
1106
+ {
1107
+ "name": "message",
1108
+ "type": {
1109
+ "text": "string"
1110
+ },
1111
+ "description": "The error message"
1112
+ }
1113
+ ],
1114
+ "description": "Shows an error notification using the unified error handling system"
1115
+ },
1116
+ {
1117
+ "kind": "method",
1118
+ "name": "onFileSelected",
1119
+ "privacy": "protected",
1120
+ "return": {
1121
+ "type": {
1122
+ "text": "void"
1123
+ }
1124
+ },
1125
+ "parameters": [
1126
+ {
1127
+ "name": "files",
1128
+ "type": {
1129
+ "text": "File[]"
1130
+ },
1131
+ "description": "The selected file"
1132
+ }
1133
+ ],
1134
+ "description": "Abstract method called when a file is selected"
1135
+ },
1136
+ {
1137
+ "kind": "method",
1138
+ "name": "onFileCleared",
1139
+ "privacy": "protected",
1140
+ "return": {
1141
+ "type": {
1142
+ "text": "void"
1143
+ }
1144
+ },
1145
+ "description": "Abstract method called when file selection is cleared"
1146
+ },
1147
+ {
1148
+ "kind": "field",
1149
+ "name": "_presentation",
1150
+ "type": {
1151
+ "text": "ComponentPresentation | null | undefined"
1152
+ },
1153
+ "privacy": "private",
1154
+ "default": "void 0",
1155
+ "inheritedFrom": {
1156
+ "name": "FoundationElement",
1157
+ "module": "src/foundation-element/foundation-element.ts"
1158
+ }
1159
+ },
1160
+ {
1161
+ "kind": "field",
1162
+ "name": "$presentation",
1163
+ "type": {
1164
+ "text": "ComponentPresentation | null"
1165
+ },
1166
+ "privacy": "public",
1167
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1168
+ "inheritedFrom": {
1169
+ "name": "FoundationElement",
1170
+ "module": "src/foundation-element/foundation-element.ts"
1171
+ }
1172
+ },
1173
+ {
1174
+ "kind": "field",
1175
+ "name": "template",
1176
+ "type": {
1177
+ "text": "ElementViewTemplate | void | null"
1178
+ },
1179
+ "privacy": "public",
1180
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1181
+ "inheritedFrom": {
1182
+ "name": "FoundationElement",
1183
+ "module": "src/foundation-element/foundation-element.ts"
1184
+ }
1185
+ },
1186
+ {
1187
+ "kind": "method",
1188
+ "name": "templateChanged",
1189
+ "privacy": "protected",
1190
+ "return": {
1191
+ "type": {
1192
+ "text": "void"
1193
+ }
1194
+ },
1195
+ "inheritedFrom": {
1196
+ "name": "FoundationElement",
1197
+ "module": "src/foundation-element/foundation-element.ts"
1198
+ }
1199
+ },
1200
+ {
1201
+ "kind": "field",
1202
+ "name": "styles",
1203
+ "type": {
1204
+ "text": "ElementStyles | void | null"
1205
+ },
1206
+ "privacy": "public",
1207
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1208
+ "inheritedFrom": {
1209
+ "name": "FoundationElement",
1210
+ "module": "src/foundation-element/foundation-element.ts"
1211
+ }
1212
+ },
1213
+ {
1214
+ "kind": "method",
1215
+ "name": "stylesChanged",
1216
+ "privacy": "protected",
1217
+ "return": {
1218
+ "type": {
1219
+ "text": "void"
1220
+ }
1221
+ },
1222
+ "inheritedFrom": {
1223
+ "name": "FoundationElement",
1194
1224
  "module": "src/foundation-element/foundation-element.ts"
1195
1225
  }
1196
1226
  },
@@ -1228,76 +1258,110 @@
1228
1258
  ],
1229
1259
  "events": [
1230
1260
  {
1231
- "description": "Fires a custom 'change' event when the button is invoked",
1232
- "name": "change",
1233
- "inheritedFrom": {
1234
- "name": "AccordionItem",
1235
- "module": "src/accordion-item/accordion-item.ts"
1236
- }
1261
+ "description": "Fired when file size validation fails",
1262
+ "name": "error"
1263
+ },
1264
+ {
1265
+ "description": "Fired when selection is cleared",
1266
+ "name": "clear"
1237
1267
  }
1238
- ]
1239
- },
1240
- {
1241
- "kind": "variable",
1242
- "name": "foundationAccordionItemShadowOptions",
1243
- "type": {
1244
- "text": "ShadowRootInit"
1245
- },
1246
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1247
- },
1248
- {
1249
- "kind": "variable",
1250
- "name": "defaultAccordionItemConfig",
1251
- "type": {
1252
- "text": "object"
1253
- },
1254
- "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}"
1255
- },
1256
- {
1257
- "kind": "variable",
1258
- "name": "foundationAccordionItem",
1259
- "description": "The Foundation Accordion Item",
1260
- "privacy": "public"
1268
+ ],
1269
+ "attributes": [
1270
+ {
1271
+ "name": "label",
1272
+ "type": {
1273
+ "text": "string"
1274
+ },
1275
+ "fieldName": "label"
1276
+ },
1277
+ {
1278
+ "name": "accept",
1279
+ "type": {
1280
+ "text": "string"
1281
+ },
1282
+ "default": "''",
1283
+ "fieldName": "accept"
1284
+ },
1285
+ {
1286
+ "name": "file-size-limit-bytes",
1287
+ "default": "DEFAULT_FILE_SIZE_LIMIT",
1288
+ "resolveInitializer": {
1289
+ "module": "src/_common/base-file-component.ts"
1290
+ },
1291
+ "fieldName": "fileSizeLimitBytes"
1292
+ }
1293
+ ],
1294
+ "superclass": {
1295
+ "name": "FoundationElement",
1296
+ "package": "@microsoft/fast-foundation"
1297
+ }
1261
1298
  }
1262
1299
  ],
1263
1300
  "exports": [
1264
1301
  {
1265
1302
  "kind": "js",
1266
- "name": "AccordionItem",
1303
+ "name": "BaseFileComponent",
1267
1304
  "declaration": {
1268
- "name": "AccordionItem",
1269
- "module": "src/accordion-item/accordion-item.ts"
1305
+ "name": "BaseFileComponent",
1306
+ "module": "src/_common/base-file-component.ts"
1270
1307
  }
1271
- },
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ "kind": "javascript-module",
1313
+ "path": "src/_common/field-styles.ts",
1314
+ "declarations": [
1272
1315
  {
1273
- "kind": "js",
1274
- "name": "foundationAccordionItemShadowOptions",
1275
- "declaration": {
1276
- "name": "foundationAccordionItemShadowOptions",
1277
- "module": "src/accordion-item/accordion-item.ts"
1278
- }
1279
- },
1316
+ "kind": "variable",
1317
+ "name": "sharedFieldStyles",
1318
+ "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`"
1319
+ }
1320
+ ],
1321
+ "exports": [
1280
1322
  {
1281
1323
  "kind": "js",
1282
- "name": "defaultAccordionItemConfig",
1324
+ "name": "sharedFieldStyles",
1283
1325
  "declaration": {
1284
- "name": "defaultAccordionItemConfig",
1285
- "module": "src/accordion-item/accordion-item.ts"
1326
+ "name": "sharedFieldStyles",
1327
+ "module": "src/_common/field-styles.ts"
1286
1328
  }
1287
- },
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ "kind": "javascript-module",
1334
+ "path": "src/_common/icons.ts",
1335
+ "declarations": [
1336
+ {
1337
+ "kind": "function",
1338
+ "name": "closeIcon",
1339
+ "parameters": [
1340
+ {
1341
+ "name": "slot",
1342
+ "default": "'start'"
1343
+ },
1344
+ {
1345
+ "name": "fill",
1346
+ "default": "'#879ba6'"
1347
+ }
1348
+ ]
1349
+ }
1350
+ ],
1351
+ "exports": [
1288
1352
  {
1289
1353
  "kind": "js",
1290
- "name": "foundationAccordionItem",
1354
+ "name": "closeIcon",
1291
1355
  "declaration": {
1292
- "name": "foundationAccordionItem",
1293
- "module": "src/accordion-item/accordion-item.ts"
1356
+ "name": "closeIcon",
1357
+ "module": "src/_common/icons.ts"
1294
1358
  }
1295
1359
  }
1296
1360
  ]
1297
1361
  },
1298
1362
  {
1299
1363
  "kind": "javascript-module",
1300
- "path": "src/accordion-item/index.ts",
1364
+ "path": "src/_common/index.ts",
1301
1365
  "declarations": [],
1302
1366
  "exports": [
1303
1367
  {
@@ -1305,7 +1369,7 @@
1305
1369
  "name": "*",
1306
1370
  "declaration": {
1307
1371
  "name": "*",
1308
- "package": "./accordion-item.template"
1372
+ "package": "./affix-mixin"
1309
1373
  }
1310
1374
  },
1311
1375
  {
@@ -1313,59 +1377,89 @@
1313
1377
  "name": "*",
1314
1378
  "declaration": {
1315
1379
  "name": "*",
1316
- "package": "./accordion-item.styles"
1380
+ "package": "./base-file-component"
1317
1381
  }
1318
1382
  },
1319
1383
  {
1320
1384
  "kind": "js",
1321
- "name": "*",
1385
+ "name": "*",
1386
+ "declaration": {
1387
+ "name": "*",
1388
+ "package": "./field-styles"
1389
+ }
1390
+ },
1391
+ {
1392
+ "kind": "js",
1393
+ "name": "*",
1394
+ "declaration": {
1395
+ "name": "*",
1396
+ "package": "./icons"
1397
+ }
1398
+ }
1399
+ ]
1400
+ },
1401
+ {
1402
+ "kind": "javascript-module",
1403
+ "path": "src/accordion-item/accordion-item.styles.ts",
1404
+ "declarations": [
1405
+ {
1406
+ "kind": "function",
1407
+ "name": "foundationAccordionItemStyles",
1408
+ "return": {
1409
+ "type": {
1410
+ "text": "ElementStyles"
1411
+ }
1412
+ },
1413
+ "parameters": [
1414
+ {
1415
+ "name": "context",
1416
+ "type": {
1417
+ "text": "ElementDefinitionContext"
1418
+ }
1419
+ },
1420
+ {
1421
+ "name": "definition",
1422
+ "type": {
1423
+ "text": "FoundationElementDefinition"
1424
+ }
1425
+ }
1426
+ ]
1427
+ }
1428
+ ],
1429
+ "exports": [
1430
+ {
1431
+ "kind": "js",
1432
+ "name": "foundationAccordionItemStyles",
1322
1433
  "declaration": {
1323
- "name": "*",
1324
- "package": "./accordion-item"
1434
+ "name": "foundationAccordionItemStyles",
1435
+ "module": "src/accordion-item/accordion-item.styles.ts"
1325
1436
  }
1326
1437
  }
1327
1438
  ]
1328
1439
  },
1329
1440
  {
1330
1441
  "kind": "javascript-module",
1331
- "path": "src/_common/affix-mixin.ts",
1442
+ "path": "src/accordion-item/accordion-item.template.ts",
1332
1443
  "declarations": [
1333
1444
  {
1334
- "kind": "mixin",
1335
- "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.",
1336
- "name": "AffixMixin",
1337
- "members": [
1338
- {
1339
- "kind": "field",
1340
- "name": "prefix",
1341
- "type": {
1342
- "text": "string"
1343
- },
1344
- "description": "Optional non-editable label shown on the left inside the field, before the input."
1345
- },
1445
+ "kind": "function",
1446
+ "name": "foundationAccordionItemTemplate",
1447
+ "return": {
1448
+ "type": {
1449
+ "text": "ViewTemplate<AccordionItem>"
1450
+ }
1451
+ },
1452
+ "parameters": [
1346
1453
  {
1347
- "kind": "field",
1348
- "name": "suffix",
1454
+ "name": "context",
1349
1455
  "type": {
1350
- "text": "string"
1351
- },
1352
- "description": "Optional non-editable suffix (e.g. unit label) shown on the right inside the field."
1456
+ "text": "ElementDefinitionContext"
1457
+ }
1353
1458
  },
1354
1459
  {
1355
- "kind": "field",
1356
- "name": "hideAffixFromScreenReader",
1357
- "type": {
1358
- "text": "boolean"
1359
- },
1360
- "default": "false",
1361
- "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."
1362
- }
1363
- ],
1364
- "parameters": [
1365
- {
1366
- "name": "Base",
1460
+ "name": "definition",
1367
1461
  "type": {
1368
- "text": "TBase"
1462
+ "text": "FoundationElementDefinition"
1369
1463
  }
1370
1464
  }
1371
1465
  ]
@@ -1374,169 +1468,117 @@
1374
1468
  "exports": [
1375
1469
  {
1376
1470
  "kind": "js",
1377
- "name": "AffixMixin",
1471
+ "name": "foundationAccordionItemTemplate",
1378
1472
  "declaration": {
1379
- "name": "AffixMixin",
1380
- "module": "src/_common/affix-mixin.ts"
1473
+ "name": "foundationAccordionItemTemplate",
1474
+ "module": "src/accordion-item/accordion-item.template.ts"
1381
1475
  }
1382
1476
  }
1383
1477
  ]
1384
1478
  },
1385
1479
  {
1386
1480
  "kind": "javascript-module",
1387
- "path": "src/_common/base-file-component.ts",
1481
+ "path": "src/accordion-item/accordion-item.ts",
1388
1482
  "declarations": [
1389
1483
  {
1390
1484
  "kind": "class",
1391
- "description": "Abstract base class for file handling components\nProvides common functionality for file selection, validation, and UI state management",
1392
- "name": "BaseFileComponent",
1393
- "members": [
1485
+ "description": "",
1486
+ "name": "AccordionItem",
1487
+ "superclass": {
1488
+ "name": "FASTAccordionItem",
1489
+ "package": "@microsoft/fast-components"
1490
+ },
1491
+ "tagName": "%%prefix%%-accordion-item",
1492
+ "customElement": true,
1493
+ "attributes": [
1394
1494
  {
1395
- "kind": "field",
1396
- "name": "fileInput",
1495
+ "name": "heading-level",
1397
1496
  "type": {
1398
- "text": "HTMLInputElement"
1497
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1399
1498
  },
1400
- "privacy": "public"
1499
+ "default": "2",
1500
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1501
+ "fieldName": "headinglevel",
1502
+ "inheritedFrom": {
1503
+ "name": "AccordionItem",
1504
+ "module": "src/accordion-item/accordion-item.ts"
1505
+ }
1401
1506
  },
1402
1507
  {
1403
- "kind": "field",
1404
- "name": "selectedFile",
1405
1508
  "type": {
1406
- "text": "File | null"
1509
+ "text": "boolean"
1407
1510
  },
1408
- "privacy": "protected",
1409
- "default": "null"
1410
- },
1411
- {
1412
- "kind": "field",
1413
- "name": "label",
1414
- "type": {
1415
- "text": "string"
1511
+ "default": "false",
1512
+ "description": "Expands or collapses the item.",
1513
+ "fieldName": "expanded",
1514
+ "inheritedFrom": {
1515
+ "name": "AccordionItem",
1516
+ "module": "src/accordion-item/accordion-item.ts"
1416
1517
  }
1417
1518
  },
1418
1519
  {
1419
- "kind": "field",
1420
- "name": "accept",
1520
+ "name": "id",
1421
1521
  "type": {
1422
1522
  "text": "string"
1423
1523
  },
1424
- "default": "''"
1425
- },
1426
- {
1427
- "kind": "field",
1428
- "name": "fileSizeLimitBytes",
1429
- "default": "10_485_760",
1430
- "type": {
1431
- "text": "number"
1524
+ "description": "The item ID",
1525
+ "fieldName": "id",
1526
+ "inheritedFrom": {
1527
+ "name": "AccordionItem",
1528
+ "module": "src/accordion-item/accordion-item.ts"
1432
1529
  }
1433
- },
1530
+ }
1531
+ ],
1532
+ "members": [
1434
1533
  {
1435
1534
  "kind": "field",
1436
- "name": "fileName",
1535
+ "name": "headinglevel",
1437
1536
  "type": {
1438
- "text": "string"
1537
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1439
1538
  },
1440
- "default": "''"
1539
+ "privacy": "public",
1540
+ "default": "2",
1541
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1542
+ "inheritedFrom": {
1543
+ "name": "AccordionItem",
1544
+ "module": "src/accordion-item/accordion-item.ts"
1545
+ }
1441
1546
  },
1442
1547
  {
1443
1548
  "kind": "field",
1444
- "name": "isProcessing",
1549
+ "name": "expanded",
1445
1550
  "type": {
1446
1551
  "text": "boolean"
1447
1552
  },
1448
- "default": "false"
1449
- },
1450
- {
1451
- "kind": "method",
1452
- "name": "handleClick",
1453
- "privacy": "public",
1454
- "description": "Opens the file picker dialog\nClears any previous file selection before opening"
1455
- },
1456
- {
1457
- "kind": "method",
1458
- "name": "onInputChange",
1459
1553
  "privacy": "public",
1460
- "parameters": [
1461
- {
1462
- "name": "e",
1463
- "type": {
1464
- "text": "Event"
1465
- },
1466
- "description": "The change event from the file input"
1467
- }
1468
- ],
1469
- "description": "Handles file selection from the file input\nValidates file size and sets up for processing"
1470
- },
1471
- {
1472
- "kind": "method",
1473
- "name": "clearSelection",
1474
- "privacy": "public",
1475
- "description": "Clears all file selection and processing state\nResets the component to its initial state"
1476
- },
1477
- {
1478
- "kind": "method",
1479
- "name": "getSelectedFile",
1480
- "privacy": "public",
1481
- "description": "Gets the currently selected file object",
1482
- "return": {
1483
- "type": {
1484
- "text": ""
1485
- }
1554
+ "default": "false",
1555
+ "description": "Expands or collapses the item.",
1556
+ "inheritedFrom": {
1557
+ "name": "AccordionItem",
1558
+ "module": "src/accordion-item/accordion-item.ts"
1486
1559
  }
1487
1560
  },
1488
1561
  {
1489
- "kind": "method",
1490
- "name": "showError",
1491
- "privacy": "protected",
1492
- "parameters": [
1493
- {
1494
- "name": "title",
1495
- "type": {
1496
- "text": "string"
1497
- },
1498
- "description": "The error title"
1499
- },
1500
- {
1501
- "name": "message",
1502
- "type": {
1503
- "text": "string"
1504
- },
1505
- "description": "The error message"
1506
- }
1507
- ],
1508
- "description": "Shows an error notification using the unified error handling system"
1509
- },
1510
- {
1511
- "kind": "method",
1512
- "name": "onFileSelected",
1513
- "privacy": "protected",
1514
- "return": {
1515
- "type": {
1516
- "text": "void"
1517
- }
1562
+ "kind": "field",
1563
+ "name": "id",
1564
+ "type": {
1565
+ "text": "string"
1518
1566
  },
1519
- "parameters": [
1520
- {
1521
- "name": "files",
1522
- "type": {
1523
- "text": "File[]"
1524
- },
1525
- "description": "The selected file"
1526
- }
1527
- ],
1528
- "description": "Abstract method called when a file is selected"
1567
+ "privacy": "public",
1568
+ "description": "The item ID",
1569
+ "inheritedFrom": {
1570
+ "name": "AccordionItem",
1571
+ "module": "src/accordion-item/accordion-item.ts"
1572
+ }
1529
1573
  },
1530
1574
  {
1531
- "kind": "method",
1532
- "name": "onFileCleared",
1533
- "privacy": "protected",
1534
- "return": {
1535
- "type": {
1536
- "text": "void"
1537
- }
1538
- },
1539
- "description": "Abstract method called when file selection is cleared"
1575
+ "kind": "field",
1576
+ "name": "change",
1577
+ "privacy": "private",
1578
+ "inheritedFrom": {
1579
+ "name": "AccordionItem",
1580
+ "module": "src/accordion-item/accordion-item.ts"
1581
+ }
1540
1582
  },
1541
1583
  {
1542
1584
  "kind": "field",
@@ -1652,110 +1694,76 @@
1652
1694
  ],
1653
1695
  "events": [
1654
1696
  {
1655
- "description": "Fired when file size validation fails",
1656
- "name": "error"
1657
- },
1658
- {
1659
- "description": "Fired when selection is cleared",
1660
- "name": "clear"
1661
- }
1662
- ],
1663
- "attributes": [
1664
- {
1665
- "name": "label",
1666
- "type": {
1667
- "text": "string"
1668
- },
1669
- "fieldName": "label"
1670
- },
1671
- {
1672
- "name": "accept",
1673
- "type": {
1674
- "text": "string"
1675
- },
1676
- "default": "''",
1677
- "fieldName": "accept"
1678
- },
1679
- {
1680
- "name": "file-size-limit-bytes",
1681
- "default": "DEFAULT_FILE_SIZE_LIMIT",
1682
- "resolveInitializer": {
1683
- "module": "src/_common/base-file-component.ts"
1684
- },
1685
- "fieldName": "fileSizeLimitBytes"
1697
+ "description": "Fires a custom 'change' event when the button is invoked",
1698
+ "name": "change",
1699
+ "inheritedFrom": {
1700
+ "name": "AccordionItem",
1701
+ "module": "src/accordion-item/accordion-item.ts"
1702
+ }
1686
1703
  }
1687
- ],
1688
- "superclass": {
1689
- "name": "FoundationElement",
1690
- "package": "@microsoft/fast-foundation"
1691
- }
1704
+ ]
1705
+ },
1706
+ {
1707
+ "kind": "variable",
1708
+ "name": "foundationAccordionItemShadowOptions",
1709
+ "type": {
1710
+ "text": "ShadowRootInit"
1711
+ },
1712
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1713
+ },
1714
+ {
1715
+ "kind": "variable",
1716
+ "name": "defaultAccordionItemConfig",
1717
+ "type": {
1718
+ "text": "object"
1719
+ },
1720
+ "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}"
1721
+ },
1722
+ {
1723
+ "kind": "variable",
1724
+ "name": "foundationAccordionItem",
1725
+ "description": "The Foundation Accordion Item",
1726
+ "privacy": "public"
1692
1727
  }
1693
1728
  ],
1694
1729
  "exports": [
1695
1730
  {
1696
1731
  "kind": "js",
1697
- "name": "BaseFileComponent",
1732
+ "name": "AccordionItem",
1698
1733
  "declaration": {
1699
- "name": "BaseFileComponent",
1700
- "module": "src/_common/base-file-component.ts"
1734
+ "name": "AccordionItem",
1735
+ "module": "src/accordion-item/accordion-item.ts"
1701
1736
  }
1702
- }
1703
- ]
1704
- },
1705
- {
1706
- "kind": "javascript-module",
1707
- "path": "src/_common/field-styles.ts",
1708
- "declarations": [
1709
- {
1710
- "kind": "variable",
1711
- "name": "sharedFieldStyles",
1712
- "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`"
1713
- }
1714
- ],
1715
- "exports": [
1737
+ },
1716
1738
  {
1717
1739
  "kind": "js",
1718
- "name": "sharedFieldStyles",
1740
+ "name": "foundationAccordionItemShadowOptions",
1719
1741
  "declaration": {
1720
- "name": "sharedFieldStyles",
1721
- "module": "src/_common/field-styles.ts"
1742
+ "name": "foundationAccordionItemShadowOptions",
1743
+ "module": "src/accordion-item/accordion-item.ts"
1722
1744
  }
1723
- }
1724
- ]
1725
- },
1726
- {
1727
- "kind": "javascript-module",
1728
- "path": "src/_common/icons.ts",
1729
- "declarations": [
1745
+ },
1730
1746
  {
1731
- "kind": "function",
1732
- "name": "closeIcon",
1733
- "parameters": [
1734
- {
1735
- "name": "slot",
1736
- "default": "'start'"
1737
- },
1738
- {
1739
- "name": "fill",
1740
- "default": "'#879ba6'"
1741
- }
1742
- ]
1743
- }
1744
- ],
1745
- "exports": [
1747
+ "kind": "js",
1748
+ "name": "defaultAccordionItemConfig",
1749
+ "declaration": {
1750
+ "name": "defaultAccordionItemConfig",
1751
+ "module": "src/accordion-item/accordion-item.ts"
1752
+ }
1753
+ },
1746
1754
  {
1747
1755
  "kind": "js",
1748
- "name": "closeIcon",
1756
+ "name": "foundationAccordionItem",
1749
1757
  "declaration": {
1750
- "name": "closeIcon",
1751
- "module": "src/_common/icons.ts"
1758
+ "name": "foundationAccordionItem",
1759
+ "module": "src/accordion-item/accordion-item.ts"
1752
1760
  }
1753
1761
  }
1754
1762
  ]
1755
1763
  },
1756
1764
  {
1757
1765
  "kind": "javascript-module",
1758
- "path": "src/_common/index.ts",
1766
+ "path": "src/accordion-item/index.ts",
1759
1767
  "declarations": [],
1760
1768
  "exports": [
1761
1769
  {
@@ -1763,7 +1771,7 @@
1763
1771
  "name": "*",
1764
1772
  "declaration": {
1765
1773
  "name": "*",
1766
- "package": "./affix-mixin"
1774
+ "package": "./accordion-item.template"
1767
1775
  }
1768
1776
  },
1769
1777
  {
@@ -1771,7 +1779,7 @@
1771
1779
  "name": "*",
1772
1780
  "declaration": {
1773
1781
  "name": "*",
1774
- "package": "./base-file-component"
1782
+ "package": "./accordion-item.styles"
1775
1783
  }
1776
1784
  },
1777
1785
  {
@@ -1779,7 +1787,22 @@
1779
1787
  "name": "*",
1780
1788
  "declaration": {
1781
1789
  "name": "*",
1782
- "package": "./field-styles"
1790
+ "package": "./accordion-item"
1791
+ }
1792
+ }
1793
+ ]
1794
+ },
1795
+ {
1796
+ "kind": "javascript-module",
1797
+ "path": "src/_config/index.ts",
1798
+ "declarations": [],
1799
+ "exports": [
1800
+ {
1801
+ "kind": "js",
1802
+ "name": "*",
1803
+ "declaration": {
1804
+ "name": "*",
1805
+ "package": "./styles"
1783
1806
  }
1784
1807
  },
1785
1808
  {
@@ -1787,18 +1810,49 @@
1787
1810
  "name": "*",
1788
1811
  "declaration": {
1789
1812
  "name": "*",
1790
- "package": "./icons"
1813
+ "package": "./tokens"
1814
+ }
1815
+ },
1816
+ {
1817
+ "kind": "js",
1818
+ "name": "*",
1819
+ "declaration": {
1820
+ "name": "*",
1821
+ "package": "./values"
1791
1822
  }
1792
1823
  }
1793
1824
  ]
1794
1825
  },
1795
1826
  {
1796
1827
  "kind": "javascript-module",
1797
- "path": "src/accordion/accordion.styles.ts",
1828
+ "path": "src/actions-menu/actions-menu.styles.ts",
1798
1829
  "declarations": [
1799
1830
  {
1800
1831
  "kind": "function",
1801
- "name": "foundationAccordionStyles",
1832
+ "name": "actionsMenuBaseStyles",
1833
+ "return": {
1834
+ "type": {
1835
+ "text": "ElementStyles"
1836
+ }
1837
+ },
1838
+ "parameters": [
1839
+ {
1840
+ "name": "context",
1841
+ "type": {
1842
+ "text": "ElementDefinitionContext"
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "definition",
1847
+ "type": {
1848
+ "text": "FoundationElementDefinition"
1849
+ }
1850
+ }
1851
+ ]
1852
+ },
1853
+ {
1854
+ "kind": "function",
1855
+ "name": "foundationActionsMenuStyles",
1802
1856
  "return": {
1803
1857
  "type": {
1804
1858
  "text": "ElementStyles"
@@ -1823,277 +1877,269 @@
1823
1877
  "exports": [
1824
1878
  {
1825
1879
  "kind": "js",
1826
- "name": "foundationAccordionStyles",
1880
+ "name": "actionsMenuBaseStyles",
1827
1881
  "declaration": {
1828
- "name": "foundationAccordionStyles",
1829
- "module": "src/accordion/accordion.styles.ts"
1882
+ "name": "actionsMenuBaseStyles",
1883
+ "module": "src/actions-menu/actions-menu.styles.ts"
1884
+ }
1885
+ },
1886
+ {
1887
+ "kind": "js",
1888
+ "name": "foundationActionsMenuStyles",
1889
+ "declaration": {
1890
+ "name": "foundationActionsMenuStyles",
1891
+ "module": "src/actions-menu/actions-menu.styles.ts"
1830
1892
  }
1831
1893
  }
1832
1894
  ]
1833
1895
  },
1834
1896
  {
1835
1897
  "kind": "javascript-module",
1836
- "path": "src/accordion/accordion.template.ts",
1898
+ "path": "src/actions-menu/actions-menu.template.ts",
1837
1899
  "declarations": [
1838
1900
  {
1839
1901
  "kind": "function",
1840
- "name": "foundationAccordionTemplate",
1841
- "return": {
1842
- "type": {
1843
- "text": "ViewTemplate<Accordion>"
1844
- }
1845
- },
1902
+ "name": "menuTemplate",
1846
1903
  "parameters": [
1847
1904
  {
1848
- "name": "context",
1905
+ "name": "prefix",
1849
1906
  "type": {
1850
- "text": "ElementDefinitionContext"
1907
+ "text": "string"
1851
1908
  }
1852
- },
1909
+ }
1910
+ ]
1911
+ },
1912
+ {
1913
+ "kind": "function",
1914
+ "name": "singleOptionTemplate",
1915
+ "parameters": [
1853
1916
  {
1854
- "name": "definition",
1917
+ "name": "prefix",
1855
1918
  "type": {
1856
- "text": "FoundationElementDefinition"
1919
+ "text": "string"
1857
1920
  }
1858
1921
  }
1859
1922
  ]
1923
+ },
1924
+ {
1925
+ "kind": "variable",
1926
+ "name": "foundationActionsMenuTemplate",
1927
+ "type": {
1928
+ "text": "ViewTemplate<ActionsMenu>"
1929
+ },
1930
+ "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`"
1860
1931
  }
1861
1932
  ],
1862
1933
  "exports": [
1863
1934
  {
1864
1935
  "kind": "js",
1865
- "name": "foundationAccordionTemplate",
1936
+ "name": "menuTemplate",
1866
1937
  "declaration": {
1867
- "name": "foundationAccordionTemplate",
1868
- "module": "src/accordion/accordion.template.ts"
1938
+ "name": "menuTemplate",
1939
+ "module": "src/actions-menu/actions-menu.template.ts"
1940
+ }
1941
+ },
1942
+ {
1943
+ "kind": "js",
1944
+ "name": "singleOptionTemplate",
1945
+ "declaration": {
1946
+ "name": "singleOptionTemplate",
1947
+ "module": "src/actions-menu/actions-menu.template.ts"
1948
+ }
1949
+ },
1950
+ {
1951
+ "kind": "js",
1952
+ "name": "foundationActionsMenuTemplate",
1953
+ "declaration": {
1954
+ "name": "foundationActionsMenuTemplate",
1955
+ "module": "src/actions-menu/actions-menu.template.ts"
1869
1956
  }
1870
1957
  }
1871
1958
  ]
1872
1959
  },
1873
1960
  {
1874
1961
  "kind": "javascript-module",
1875
- "path": "src/accordion/accordion.ts",
1962
+ "path": "src/actions-menu/actions-menu.ts",
1876
1963
  "declarations": [
1877
1964
  {
1878
1965
  "kind": "class",
1879
1966
  "description": "",
1880
- "name": "Accordion",
1881
- "superclass": {
1882
- "name": "FASTAccordion",
1883
- "package": "@microsoft/fast-foundation"
1884
- },
1885
- "tagName": "%%prefix%%-accordion",
1886
- "customElement": true,
1887
- "attributes": [
1967
+ "name": "ActionsMenu",
1968
+ "members": [
1888
1969
  {
1889
- "name": "expand-mode",
1970
+ "kind": "field",
1971
+ "name": "actions",
1890
1972
  "type": {
1891
- "text": "AccordionExpandMode"
1892
- },
1893
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1894
- "fieldName": "expandmode",
1895
- "inheritedFrom": {
1896
- "name": "Accordion",
1897
- "module": "src/accordion/accordion.ts"
1973
+ "text": "ActionMenuItem[]"
1898
1974
  }
1899
- }
1900
- ],
1901
- "members": [
1975
+ },
1902
1976
  {
1903
1977
  "kind": "field",
1904
- "name": "expandmode",
1978
+ "name": "isVertical",
1905
1979
  "type": {
1906
- "text": "AccordionExpandMode"
1980
+ "text": "boolean"
1907
1981
  },
1908
- "privacy": "public",
1909
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1910
- "inheritedFrom": {
1911
- "name": "Accordion",
1912
- "module": "src/accordion/accordion.ts"
1913
- }
1982
+ "default": "false"
1914
1983
  },
1915
1984
  {
1916
1985
  "kind": "field",
1917
- "name": "activeid",
1986
+ "name": "addDefaultActions",
1918
1987
  "type": {
1919
- "text": "string | null"
1988
+ "text": "boolean"
1920
1989
  },
1921
- "privacy": "private",
1922
- "inheritedFrom": {
1923
- "name": "Accordion",
1924
- "module": "src/accordion/accordion.ts"
1925
- }
1990
+ "default": "true"
1926
1991
  },
1927
1992
  {
1928
1993
  "kind": "field",
1929
- "name": "activeItemIndex",
1994
+ "name": "autoCloseOnAction",
1930
1995
  "type": {
1931
- "text": "number"
1996
+ "text": "boolean"
1932
1997
  },
1933
- "privacy": "private",
1934
- "default": "0",
1935
- "inheritedFrom": {
1936
- "name": "Accordion",
1937
- "module": "src/accordion/accordion.ts"
1938
- }
1998
+ "default": "true"
1939
1999
  },
1940
2000
  {
1941
2001
  "kind": "field",
1942
- "name": "accordionIds",
2002
+ "name": "classNames",
1943
2003
  "type": {
1944
- "text": "Array<string | null>"
1945
- },
1946
- "privacy": "private",
1947
- "inheritedFrom": {
1948
- "name": "Accordion",
1949
- "module": "src/accordion/accordion.ts"
2004
+ "text": "string"
1950
2005
  }
1951
2006
  },
1952
2007
  {
1953
2008
  "kind": "field",
1954
- "name": "change",
1955
- "privacy": "private",
1956
- "inheritedFrom": {
1957
- "name": "Accordion",
1958
- "module": "src/accordion/accordion.ts"
2009
+ "name": "definition",
2010
+ "type": {
2011
+ "text": "any"
1959
2012
  }
1960
2013
  },
1961
2014
  {
1962
- "kind": "method",
1963
- "name": "findExpandedItem",
1964
- "privacy": "private",
1965
- "return": {
1966
- "type": {
1967
- "text": "AccordionItem | null"
1968
- }
2015
+ "kind": "field",
2016
+ "name": "name",
2017
+ "type": {
2018
+ "text": "string"
1969
2019
  },
1970
- "inheritedFrom": {
1971
- "name": "Accordion",
1972
- "module": "src/accordion/accordion.ts"
1973
- }
2020
+ "default": "'Actions'"
1974
2021
  },
1975
2022
  {
1976
2023
  "kind": "field",
1977
- "name": "setItems",
1978
- "privacy": "private",
1979
- "inheritedFrom": {
1980
- "name": "Accordion",
1981
- "module": "src/accordion/accordion.ts"
2024
+ "name": "open",
2025
+ "type": {
2026
+ "text": "boolean"
2027
+ },
2028
+ "default": "false"
2029
+ },
2030
+ {
2031
+ "kind": "field",
2032
+ "name": "buttonAppearance",
2033
+ "type": {
2034
+ "text": "string"
1982
2035
  }
1983
2036
  },
1984
2037
  {
1985
- "kind": "method",
1986
- "name": "resetItems",
1987
- "privacy": "private",
1988
- "return": {
1989
- "type": {
1990
- "text": "void"
1991
- }
2038
+ "kind": "field",
2039
+ "name": "hideDisabled",
2040
+ "type": {
2041
+ "text": "boolean"
1992
2042
  },
1993
- "inheritedFrom": {
1994
- "name": "Accordion",
1995
- "module": "src/accordion/accordion.ts"
1996
- }
2043
+ "default": "false"
1997
2044
  },
1998
2045
  {
1999
2046
  "kind": "field",
2000
- "name": "removeItemListeners",
2001
- "privacy": "private",
2002
- "inheritedFrom": {
2003
- "name": "Accordion",
2004
- "module": "src/accordion/accordion.ts"
2047
+ "name": "hideMenuSingleOption",
2048
+ "type": {
2049
+ "text": "boolean"
2050
+ },
2051
+ "default": "false"
2052
+ },
2053
+ {
2054
+ "kind": "field",
2055
+ "name": "singleOption",
2056
+ "type": {
2057
+ "text": "ActionMenuItem"
2005
2058
  }
2006
2059
  },
2007
2060
  {
2008
2061
  "kind": "field",
2009
- "name": "activeItemChange",
2010
- "privacy": "private",
2011
- "inheritedFrom": {
2012
- "name": "Accordion",
2013
- "module": "src/accordion/accordion.ts"
2062
+ "name": "actionsMenu",
2063
+ "type": {
2064
+ "text": "HTMLElement"
2014
2065
  }
2015
2066
  },
2016
2067
  {
2017
2068
  "kind": "method",
2018
- "name": "getItemIds",
2019
- "privacy": "private",
2020
- "return": {
2021
- "type": {
2022
- "text": "Array<string | null>"
2069
+ "name": "definitionChanged",
2070
+ "privacy": "protected",
2071
+ "parameters": [
2072
+ {
2073
+ "name": "oldValue",
2074
+ "type": {
2075
+ "text": "any"
2076
+ }
2077
+ },
2078
+ {
2079
+ "name": "newValue",
2080
+ "type": {
2081
+ "text": "any"
2082
+ }
2023
2083
  }
2024
- },
2025
- "inheritedFrom": {
2026
- "name": "Accordion",
2027
- "module": "src/accordion/accordion.ts"
2028
- }
2084
+ ]
2029
2085
  },
2030
2086
  {
2031
2087
  "kind": "method",
2032
- "name": "isSingleExpandMode",
2033
- "privacy": "private",
2034
- "return": {
2035
- "type": {
2036
- "text": "boolean"
2088
+ "name": "openChanged",
2089
+ "privacy": "protected"
2090
+ },
2091
+ {
2092
+ "kind": "method",
2093
+ "name": "toggleActionsMenuVisibility"
2094
+ },
2095
+ {
2096
+ "kind": "method",
2097
+ "name": "onActionMenuItemClick",
2098
+ "parameters": [
2099
+ {
2100
+ "name": "callback",
2101
+ "type": {
2102
+ "text": "(rowData) => void | any"
2103
+ }
2037
2104
  }
2038
- },
2039
- "inheritedFrom": {
2040
- "name": "Accordion",
2041
- "module": "src/accordion/accordion.ts"
2042
- }
2105
+ ]
2043
2106
  },
2044
2107
  {
2045
2108
  "kind": "field",
2046
- "name": "handleItemKeyDown",
2047
- "privacy": "private",
2048
- "inheritedFrom": {
2049
- "name": "Accordion",
2050
- "module": "src/accordion/accordion.ts"
2051
- }
2109
+ "name": "allActions",
2110
+ "type": {
2111
+ "text": "ActionMenuItem[]"
2112
+ },
2113
+ "readonly": true
2052
2114
  },
2053
2115
  {
2054
2116
  "kind": "field",
2055
- "name": "handleItemFocus",
2056
- "privacy": "private",
2057
- "inheritedFrom": {
2058
- "name": "Accordion",
2059
- "module": "src/accordion/accordion.ts"
2060
- }
2117
+ "name": "rowData",
2118
+ "readonly": true
2061
2119
  },
2062
2120
  {
2063
2121
  "kind": "method",
2064
- "name": "adjust",
2065
- "privacy": "private",
2066
- "return": {
2067
- "type": {
2068
- "text": "void"
2069
- }
2070
- },
2122
+ "name": "getLabel",
2071
2123
  "parameters": [
2072
2124
  {
2073
- "name": "adjustment",
2125
+ "name": "name",
2074
2126
  "type": {
2075
- "text": "number"
2127
+ "text": "string | ((rowData: any) => string)"
2076
2128
  }
2077
2129
  }
2078
- ],
2079
- "inheritedFrom": {
2080
- "name": "Accordion",
2081
- "module": "src/accordion/accordion.ts"
2082
- }
2130
+ ]
2083
2131
  },
2084
2132
  {
2085
2133
  "kind": "method",
2086
- "name": "focusItem",
2087
- "privacy": "private",
2088
- "return": {
2089
- "type": {
2090
- "text": "void"
2134
+ "name": "getTemplate",
2135
+ "parameters": [
2136
+ {
2137
+ "name": "prefix",
2138
+ "type": {
2139
+ "text": "string"
2140
+ }
2091
2141
  }
2092
- },
2093
- "inheritedFrom": {
2094
- "name": "Accordion",
2095
- "module": "src/accordion/accordion.ts"
2096
- }
2142
+ ]
2097
2143
  },
2098
2144
  {
2099
2145
  "kind": "field",
@@ -2207,109 +2253,107 @@
2207
2253
  }
2208
2254
  }
2209
2255
  ],
2210
- "events": [
2256
+ "attributes": [
2211
2257
  {
2212
- "description": "Fires a custom 'change' event when the active item changes",
2213
- "name": "change",
2214
- "inheritedFrom": {
2215
- "name": "Accordion",
2216
- "module": "src/accordion/accordion.ts"
2217
- }
2258
+ "name": "is-vertical",
2259
+ "type": {
2260
+ "text": "boolean"
2261
+ },
2262
+ "default": "false",
2263
+ "fieldName": "isVertical"
2264
+ },
2265
+ {
2266
+ "name": "add-default-actions",
2267
+ "type": {
2268
+ "text": "boolean"
2269
+ },
2270
+ "default": "true",
2271
+ "fieldName": "addDefaultActions"
2272
+ },
2273
+ {
2274
+ "name": "auto-close-on-action",
2275
+ "type": {
2276
+ "text": "boolean"
2277
+ },
2278
+ "default": "true",
2279
+ "fieldName": "autoCloseOnAction"
2280
+ },
2281
+ {
2282
+ "name": "name",
2283
+ "type": {
2284
+ "text": "string"
2285
+ },
2286
+ "default": "'Actions'",
2287
+ "fieldName": "name"
2288
+ },
2289
+ {
2290
+ "name": "open",
2291
+ "type": {
2292
+ "text": "boolean"
2293
+ },
2294
+ "default": "false",
2295
+ "fieldName": "open"
2296
+ },
2297
+ {
2298
+ "name": "buttonAppearance",
2299
+ "type": {
2300
+ "text": "string"
2301
+ },
2302
+ "fieldName": "buttonAppearance"
2303
+ },
2304
+ {
2305
+ "name": "hide-disabled",
2306
+ "type": {
2307
+ "text": "boolean"
2308
+ },
2309
+ "default": "false",
2310
+ "fieldName": "hideDisabled"
2311
+ },
2312
+ {
2313
+ "name": "hide-menu-single-option",
2314
+ "type": {
2315
+ "text": "boolean"
2316
+ },
2317
+ "default": "false",
2318
+ "fieldName": "hideMenuSingleOption"
2218
2319
  }
2219
- ]
2220
- },
2221
- {
2222
- "kind": "variable",
2223
- "name": "foundationAccordionShadowOptions",
2224
- "type": {
2225
- "text": "ShadowRootInit"
2226
- },
2227
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2228
- },
2229
- {
2230
- "kind": "variable",
2231
- "name": "defaultAccordionConfig",
2232
- "type": {
2233
- "text": "object"
2320
+ ],
2321
+ "superclass": {
2322
+ "name": "FoundationElement",
2323
+ "package": "@microsoft/fast-foundation"
2234
2324
  },
2235
- "default": "{}"
2325
+ "tagName": "%%prefix%%-actions-menu",
2326
+ "customElement": true
2236
2327
  },
2237
2328
  {
2238
2329
  "kind": "variable",
2239
- "name": "foundationAccordion",
2240
- "description": "The Foundation Accordion",
2330
+ "name": "foundationActionsMenu",
2331
+ "description": "The Foundation Actions Menu",
2241
2332
  "privacy": "public"
2242
2333
  }
2243
2334
  ],
2244
2335
  "exports": [
2245
2336
  {
2246
2337
  "kind": "js",
2247
- "name": "Accordion",
2248
- "declaration": {
2249
- "name": "Accordion",
2250
- "module": "src/accordion/accordion.ts"
2251
- }
2252
- },
2253
- {
2254
- "kind": "js",
2255
- "name": "foundationAccordionShadowOptions",
2256
- "declaration": {
2257
- "name": "foundationAccordionShadowOptions",
2258
- "module": "src/accordion/accordion.ts"
2259
- }
2260
- },
2261
- {
2262
- "kind": "js",
2263
- "name": "defaultAccordionConfig",
2264
- "declaration": {
2265
- "name": "defaultAccordionConfig",
2266
- "module": "src/accordion/accordion.ts"
2267
- }
2268
- },
2269
- {
2270
- "kind": "js",
2271
- "name": "foundationAccordion",
2272
- "declaration": {
2273
- "name": "foundationAccordion",
2274
- "module": "src/accordion/accordion.ts"
2275
- }
2276
- }
2277
- ]
2278
- },
2279
- {
2280
- "kind": "javascript-module",
2281
- "path": "src/accordion/index.ts",
2282
- "declarations": [],
2283
- "exports": [
2284
- {
2285
- "kind": "js",
2286
- "name": "*",
2287
- "declaration": {
2288
- "name": "*",
2289
- "package": "./accordion.template"
2290
- }
2291
- },
2292
- {
2293
- "kind": "js",
2294
- "name": "*",
2338
+ "name": "ActionsMenu",
2295
2339
  "declaration": {
2296
- "name": "*",
2297
- "package": "./accordion.styles"
2340
+ "name": "ActionsMenu",
2341
+ "module": "src/actions-menu/actions-menu.ts"
2298
2342
  }
2299
2343
  },
2300
2344
  {
2301
2345
  "kind": "js",
2302
- "name": "*",
2346
+ "name": "foundationActionsMenu",
2303
2347
  "declaration": {
2304
- "name": "*",
2305
- "package": "./accordion"
2348
+ "name": "foundationActionsMenu",
2349
+ "module": "src/actions-menu/actions-menu.ts"
2306
2350
  }
2307
2351
  }
2308
2352
  ]
2309
2353
  },
2310
2354
  {
2311
2355
  "kind": "javascript-module",
2312
- "path": "src/_config/index.ts",
2356
+ "path": "src/actions-menu/index.ts",
2313
2357
  "declarations": [],
2314
2358
  "exports": [
2315
2359
  {
@@ -2317,7 +2361,7 @@
2317
2361
  "name": "*",
2318
2362
  "declaration": {
2319
2363
  "name": "*",
2320
- "package": "./styles"
2364
+ "package": "./actions-menu.styles"
2321
2365
  }
2322
2366
  },
2323
2367
  {
@@ -2325,7 +2369,7 @@
2325
2369
  "name": "*",
2326
2370
  "declaration": {
2327
2371
  "name": "*",
2328
- "package": "./tokens"
2372
+ "package": "./actions-menu.template"
2329
2373
  }
2330
2374
  },
2331
2375
  {
@@ -2333,210 +2377,122 @@
2333
2377
  "name": "*",
2334
2378
  "declaration": {
2335
2379
  "name": "*",
2336
- "package": "./values"
2380
+ "package": "./actions-menu"
2337
2381
  }
2338
2382
  }
2339
2383
  ]
2340
2384
  },
2341
2385
  {
2342
2386
  "kind": "javascript-module",
2343
- "path": "src/actions-menu/actions-menu.styles.ts",
2387
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2344
2388
  "declarations": [
2345
2389
  {
2346
- "kind": "function",
2347
- "name": "actionsMenuBaseStyles",
2348
- "return": {
2349
- "type": {
2350
- "text": "ElementStyles"
2351
- }
2352
- },
2353
- "parameters": [
2354
- {
2355
- "name": "context",
2356
- "type": {
2357
- "text": "ElementDefinitionContext"
2358
- }
2359
- },
2360
- {
2361
- "name": "definition",
2362
- "type": {
2363
- "text": "FoundationElementDefinition"
2364
- }
2365
- }
2366
- ]
2367
- },
2368
- {
2369
- "kind": "function",
2370
- "name": "foundationActionsMenuStyles",
2371
- "return": {
2372
- "type": {
2373
- "text": "ElementStyles"
2374
- }
2375
- },
2376
- "parameters": [
2377
- {
2378
- "name": "context",
2379
- "type": {
2380
- "text": "ElementDefinitionContext"
2381
- }
2382
- },
2383
- {
2384
- "name": "definition",
2385
- "type": {
2386
- "text": "FoundationElementDefinition"
2387
- }
2388
- }
2389
- ]
2390
+ "kind": "variable",
2391
+ "name": "foundationAiCriteriaSearchStyles",
2392
+ "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`"
2390
2393
  }
2391
2394
  ],
2392
2395
  "exports": [
2393
2396
  {
2394
2397
  "kind": "js",
2395
- "name": "actionsMenuBaseStyles",
2396
- "declaration": {
2397
- "name": "actionsMenuBaseStyles",
2398
- "module": "src/actions-menu/actions-menu.styles.ts"
2399
- }
2400
- },
2401
- {
2402
- "kind": "js",
2403
- "name": "foundationActionsMenuStyles",
2398
+ "name": "foundationAiCriteriaSearchStyles",
2404
2399
  "declaration": {
2405
- "name": "foundationActionsMenuStyles",
2406
- "module": "src/actions-menu/actions-menu.styles.ts"
2400
+ "name": "foundationAiCriteriaSearchStyles",
2401
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2407
2402
  }
2408
2403
  }
2409
2404
  ]
2410
2405
  },
2411
2406
  {
2412
2407
  "kind": "javascript-module",
2413
- "path": "src/actions-menu/actions-menu.template.ts",
2408
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2414
2409
  "declarations": [
2415
- {
2416
- "kind": "function",
2417
- "name": "menuTemplate",
2418
- "parameters": [
2419
- {
2420
- "name": "prefix",
2421
- "type": {
2422
- "text": "string"
2423
- }
2424
- }
2425
- ]
2426
- },
2427
- {
2428
- "kind": "function",
2429
- "name": "singleOptionTemplate",
2430
- "parameters": [
2431
- {
2432
- "name": "prefix",
2433
- "type": {
2434
- "text": "string"
2435
- }
2436
- }
2437
- ]
2438
- },
2439
2410
  {
2440
2411
  "kind": "variable",
2441
- "name": "foundationActionsMenuTemplate",
2412
+ "name": "foundationAiCriteriaSearchTemplate",
2442
2413
  "type": {
2443
- "text": "ViewTemplate<ActionsMenu>"
2414
+ "text": "ViewTemplate<AiCriteriaSearch>"
2444
2415
  },
2445
- "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`"
2416
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2446
2417
  }
2447
2418
  ],
2448
2419
  "exports": [
2449
2420
  {
2450
2421
  "kind": "js",
2451
- "name": "menuTemplate",
2452
- "declaration": {
2453
- "name": "menuTemplate",
2454
- "module": "src/actions-menu/actions-menu.template.ts"
2455
- }
2456
- },
2457
- {
2458
- "kind": "js",
2459
- "name": "singleOptionTemplate",
2460
- "declaration": {
2461
- "name": "singleOptionTemplate",
2462
- "module": "src/actions-menu/actions-menu.template.ts"
2463
- }
2464
- },
2465
- {
2466
- "kind": "js",
2467
- "name": "foundationActionsMenuTemplate",
2422
+ "name": "foundationAiCriteriaSearchTemplate",
2468
2423
  "declaration": {
2469
- "name": "foundationActionsMenuTemplate",
2470
- "module": "src/actions-menu/actions-menu.template.ts"
2424
+ "name": "foundationAiCriteriaSearchTemplate",
2425
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2471
2426
  }
2472
2427
  }
2473
2428
  ]
2474
2429
  },
2475
2430
  {
2476
2431
  "kind": "javascript-module",
2477
- "path": "src/actions-menu/actions-menu.ts",
2432
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2478
2433
  "declarations": [
2479
2434
  {
2480
2435
  "kind": "class",
2481
- "description": "",
2482
- "name": "ActionsMenu",
2436
+ "description": "Natural-language criteria search input with AI interpretation.",
2437
+ "name": "AiCriteriaSearch",
2483
2438
  "members": [
2484
2439
  {
2485
2440
  "kind": "field",
2486
- "name": "actions",
2441
+ "name": "providerRegistry",
2487
2442
  "type": {
2488
- "text": "ActionMenuItem[]"
2443
+ "text": "AIProviderRegistry"
2489
2444
  }
2490
2445
  },
2491
2446
  {
2492
2447
  "kind": "field",
2493
- "name": "isVertical",
2448
+ "name": "placeholder",
2494
2449
  "type": {
2495
- "text": "boolean"
2450
+ "text": "string"
2496
2451
  },
2497
- "default": "false"
2452
+ "default": "'Describe your search criteria in natural language...'"
2498
2453
  },
2499
2454
  {
2500
2455
  "kind": "field",
2501
- "name": "addDefaultActions",
2456
+ "name": "disabled",
2502
2457
  "type": {
2503
2458
  "text": "boolean"
2504
- },
2505
- "default": "true"
2459
+ }
2506
2460
  },
2507
2461
  {
2508
2462
  "kind": "field",
2509
- "name": "autoCloseOnAction",
2463
+ "name": "inputValue",
2510
2464
  "type": {
2511
- "text": "boolean"
2465
+ "text": "string"
2512
2466
  },
2513
- "default": "true"
2467
+ "default": "''"
2514
2468
  },
2515
2469
  {
2516
2470
  "kind": "field",
2517
- "name": "classNames",
2471
+ "name": "isInterpreting",
2518
2472
  "type": {
2519
- "text": "string"
2520
- }
2473
+ "text": "boolean"
2474
+ },
2475
+ "default": "false"
2521
2476
  },
2522
2477
  {
2523
2478
  "kind": "field",
2524
- "name": "definition",
2479
+ "name": "lastValidCriteria",
2525
2480
  "type": {
2526
- "text": "any"
2527
- }
2481
+ "text": "string | null"
2482
+ },
2483
+ "default": "null"
2528
2484
  },
2529
2485
  {
2530
2486
  "kind": "field",
2531
- "name": "name",
2487
+ "name": "activeGroups",
2532
2488
  "type": {
2533
- "text": "string"
2489
+ "text": "CriteriaGroup[]"
2534
2490
  },
2535
- "default": "'Actions'"
2491
+ "default": "[]"
2536
2492
  },
2537
2493
  {
2538
2494
  "kind": "field",
2539
- "name": "open",
2495
+ "name": "showingChips",
2540
2496
  "type": {
2541
2497
  "text": "boolean"
2542
2498
  },
@@ -2544,14 +2500,15 @@
2544
2500
  },
2545
2501
  {
2546
2502
  "kind": "field",
2547
- "name": "buttonAppearance",
2503
+ "name": "fieldMetadata",
2548
2504
  "type": {
2549
- "text": "string"
2550
- }
2505
+ "text": "MetadataDetail[] | string[]"
2506
+ },
2507
+ "default": "[]"
2551
2508
  },
2552
2509
  {
2553
2510
  "kind": "field",
2554
- "name": "hideDisabled",
2511
+ "name": "isRecording",
2555
2512
  "type": {
2556
2513
  "text": "boolean"
2557
2514
  },
@@ -2559,102 +2516,125 @@
2559
2516
  },
2560
2517
  {
2561
2518
  "kind": "field",
2562
- "name": "hideMenuSingleOption",
2519
+ "name": "textAreaRef",
2563
2520
  "type": {
2564
- "text": "boolean"
2521
+ "text": "HTMLTextAreaElement"
2565
2522
  },
2566
- "default": "false"
2523
+ "privacy": "public"
2567
2524
  },
2568
2525
  {
2569
2526
  "kind": "field",
2570
- "name": "singleOption",
2527
+ "name": "stopRecording",
2571
2528
  "type": {
2572
- "text": "ActionMenuItem"
2573
- }
2529
+ "text": "(() => void) | null"
2530
+ },
2531
+ "privacy": "private",
2532
+ "default": "null"
2574
2533
  },
2575
2534
  {
2576
2535
  "kind": "field",
2577
- "name": "actionsMenu",
2536
+ "name": "speechApplyDebounceTimer",
2578
2537
  "type": {
2579
- "text": "HTMLElement"
2580
- }
2538
+ "text": "ReturnType<typeof setTimeout> | null"
2539
+ },
2540
+ "privacy": "private",
2541
+ "default": "null"
2542
+ },
2543
+ {
2544
+ "kind": "field",
2545
+ "name": "speechAvailable",
2546
+ "type": {
2547
+ "text": "boolean"
2548
+ },
2549
+ "readonly": true
2550
+ },
2551
+ {
2552
+ "kind": "field",
2553
+ "name": "criteriaChips",
2554
+ "type": {
2555
+ "text": "CriteriaChip[]"
2556
+ },
2557
+ "readonly": true
2581
2558
  },
2582
2559
  {
2583
2560
  "kind": "method",
2584
- "name": "definitionChanged",
2585
- "privacy": "protected",
2561
+ "name": "getFieldLabel",
2562
+ "privacy": "private",
2563
+ "return": {
2564
+ "type": {
2565
+ "text": "string"
2566
+ }
2567
+ },
2586
2568
  "parameters": [
2587
2569
  {
2588
- "name": "oldValue",
2589
- "type": {
2590
- "text": "any"
2591
- }
2592
- },
2593
- {
2594
- "name": "newValue",
2570
+ "name": "fieldName",
2595
2571
  "type": {
2596
- "text": "any"
2572
+ "text": "string"
2597
2573
  }
2598
2574
  }
2599
2575
  ]
2600
2576
  },
2601
2577
  {
2602
2578
  "kind": "method",
2603
- "name": "openChanged",
2604
- "privacy": "protected"
2605
- },
2606
- {
2607
- "kind": "method",
2608
- "name": "toggleActionsMenuVisibility"
2579
+ "name": "toggleCriteriaView",
2580
+ "return": {
2581
+ "type": {
2582
+ "text": "void"
2583
+ }
2584
+ }
2609
2585
  },
2610
2586
  {
2611
2587
  "kind": "method",
2612
- "name": "onActionMenuItemClick",
2588
+ "name": "removeChip",
2589
+ "return": {
2590
+ "type": {
2591
+ "text": "void"
2592
+ }
2593
+ },
2613
2594
  "parameters": [
2614
2595
  {
2615
- "name": "callback",
2596
+ "name": "groupIndex",
2616
2597
  "type": {
2617
- "text": "(rowData) => void | any"
2598
+ "text": "number"
2599
+ }
2600
+ },
2601
+ {
2602
+ "name": "clauseIndex",
2603
+ "type": {
2604
+ "text": "number"
2618
2605
  }
2619
2606
  }
2620
2607
  ]
2621
2608
  },
2622
2609
  {
2623
- "kind": "field",
2624
- "name": "allActions",
2625
- "type": {
2626
- "text": "ActionMenuItem[]"
2627
- },
2628
- "readonly": true
2610
+ "kind": "method",
2611
+ "name": "clearChips",
2612
+ "return": {
2613
+ "type": {
2614
+ "text": "void"
2615
+ }
2616
+ }
2629
2617
  },
2630
2618
  {
2631
- "kind": "field",
2632
- "name": "rowData",
2633
- "readonly": true
2619
+ "kind": "method",
2620
+ "name": "handleSubmit"
2634
2621
  },
2635
2622
  {
2636
2623
  "kind": "method",
2637
- "name": "getLabel",
2638
- "parameters": [
2639
- {
2640
- "name": "name",
2641
- "type": {
2642
- "text": "string | ((rowData: any) => string)"
2643
- }
2644
- }
2645
- ]
2624
+ "name": "handleBlur"
2646
2625
  },
2647
2626
  {
2648
2627
  "kind": "method",
2649
- "name": "getTemplate",
2650
- "parameters": [
2651
- {
2652
- "name": "prefix",
2653
- "type": {
2654
- "text": "string"
2655
- }
2656
- }
2657
- ]
2628
+ "name": "clear"
2629
+ },
2630
+ {
2631
+ "kind": "method",
2632
+ "name": "toggleSpeechInput"
2633
+ },
2634
+ {
2635
+ "kind": "method",
2636
+ "name": "clearSpeechApplyDebounce",
2637
+ "privacy": "private"
2658
2638
  },
2659
2639
  {
2660
2640
  "kind": "field",
@@ -2751,132 +2731,171 @@
2751
2731
  "name": "this",
2752
2732
  "type": {
2753
2733
  "text": "K"
2754
- }
2755
- },
2756
- {
2757
- "name": "elementDefinition",
2758
- "type": {
2759
- "text": "T"
2760
- },
2761
- "description": "The definition of the element to create the registry\nfunction for."
2762
- }
2763
- ],
2764
- "description": "Defines an element registry function with a set of element definition defaults.",
2765
- "inheritedFrom": {
2766
- "name": "FoundationElement",
2767
- "module": "src/foundation-element/foundation-element.ts"
2768
- }
2769
- }
2770
- ],
2771
- "attributes": [
2772
- {
2773
- "name": "is-vertical",
2774
- "type": {
2775
- "text": "boolean"
2776
- },
2777
- "default": "false",
2778
- "fieldName": "isVertical"
2779
- },
2780
- {
2781
- "name": "add-default-actions",
2782
- "type": {
2783
- "text": "boolean"
2784
- },
2785
- "default": "true",
2786
- "fieldName": "addDefaultActions"
2787
- },
2788
- {
2789
- "name": "auto-close-on-action",
2790
- "type": {
2791
- "text": "boolean"
2792
- },
2793
- "default": "true",
2794
- "fieldName": "autoCloseOnAction"
2795
- },
2734
+ }
2735
+ },
2736
+ {
2737
+ "name": "elementDefinition",
2738
+ "type": {
2739
+ "text": "T"
2740
+ },
2741
+ "description": "The definition of the element to create the registry\nfunction for."
2742
+ }
2743
+ ],
2744
+ "description": "Defines an element registry function with a set of element definition defaults.",
2745
+ "inheritedFrom": {
2746
+ "name": "FoundationElement",
2747
+ "module": "src/foundation-element/foundation-element.ts"
2748
+ }
2749
+ }
2750
+ ],
2751
+ "events": [
2796
2752
  {
2797
- "name": "name",
2798
- "type": {
2799
- "text": "string"
2800
- },
2801
- "default": "'Actions'",
2802
- "fieldName": "name"
2753
+ "description": "Fired when interpreted criteria is applied or cleared",
2754
+ "name": "criteria-changed"
2803
2755
  },
2804
2756
  {
2805
- "name": "open",
2806
- "type": {
2807
- "text": "boolean"
2808
- },
2809
- "default": "false",
2810
- "fieldName": "open"
2811
- },
2757
+ "description": "Fired when interpreted criteria contains invalid clauses",
2758
+ "name": "validation-errors"
2759
+ }
2760
+ ],
2761
+ "attributes": [
2812
2762
  {
2813
- "name": "buttonAppearance",
2763
+ "name": "placeholder",
2814
2764
  "type": {
2815
2765
  "text": "string"
2816
2766
  },
2817
- "fieldName": "buttonAppearance"
2818
- },
2819
- {
2820
- "name": "hide-disabled",
2821
- "type": {
2822
- "text": "boolean"
2823
- },
2824
- "default": "false",
2825
- "fieldName": "hideDisabled"
2767
+ "default": "'Describe your search criteria in natural language...'",
2768
+ "fieldName": "placeholder"
2826
2769
  },
2827
2770
  {
2828
- "name": "hide-menu-single-option",
2829
2771
  "type": {
2830
2772
  "text": "boolean"
2831
2773
  },
2832
- "default": "false",
2833
- "fieldName": "hideMenuSingleOption"
2774
+ "fieldName": "disabled"
2834
2775
  }
2835
2776
  ],
2836
2777
  "superclass": {
2837
2778
  "name": "FoundationElement",
2838
2779
  "package": "@microsoft/fast-foundation"
2839
2780
  },
2840
- "tagName": "%%prefix%%-actions-menu",
2781
+ "tagName": "%%prefix%%-ai-criteria-search",
2841
2782
  "customElement": true
2842
2783
  },
2843
2784
  {
2844
2785
  "kind": "variable",
2845
- "name": "foundationActionsMenu",
2846
- "description": "The Foundation Actions Menu",
2847
- "privacy": "public"
2786
+ "name": "foundationAiCriteriaSearchShadowOptions",
2787
+ "type": {
2788
+ "text": "ShadowRootInit"
2789
+ },
2790
+ "default": "undefined"
2791
+ },
2792
+ {
2793
+ "kind": "variable",
2794
+ "name": "defaultAiCriteriaSearchConfig",
2795
+ "type": {
2796
+ "text": "object"
2797
+ },
2798
+ "default": "{}"
2799
+ },
2800
+ {
2801
+ "kind": "variable",
2802
+ "name": "foundationAiCriteriaSearch"
2848
2803
  }
2849
2804
  ],
2850
2805
  "exports": [
2851
2806
  {
2852
2807
  "kind": "js",
2853
- "name": "ActionsMenu",
2808
+ "name": "AiCriteriaSearch",
2854
2809
  "declaration": {
2855
- "name": "ActionsMenu",
2856
- "module": "src/actions-menu/actions-menu.ts"
2810
+ "name": "AiCriteriaSearch",
2811
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2857
2812
  }
2858
2813
  },
2859
2814
  {
2860
2815
  "kind": "js",
2861
- "name": "foundationActionsMenu",
2816
+ "name": "foundationAiCriteriaSearchShadowOptions",
2862
2817
  "declaration": {
2863
- "name": "foundationActionsMenu",
2864
- "module": "src/actions-menu/actions-menu.ts"
2818
+ "name": "foundationAiCriteriaSearchShadowOptions",
2819
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2820
+ }
2821
+ },
2822
+ {
2823
+ "kind": "js",
2824
+ "name": "defaultAiCriteriaSearchConfig",
2825
+ "declaration": {
2826
+ "name": "defaultAiCriteriaSearchConfig",
2827
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2828
+ }
2829
+ },
2830
+ {
2831
+ "kind": "js",
2832
+ "name": "foundationAiCriteriaSearch",
2833
+ "declaration": {
2834
+ "name": "foundationAiCriteriaSearch",
2835
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2865
2836
  }
2866
2837
  }
2867
2838
  ]
2868
2839
  },
2869
2840
  {
2870
2841
  "kind": "javascript-module",
2871
- "path": "src/actions-menu/index.ts",
2842
+ "path": "src/ai-criteria-search/index.ts",
2872
2843
  "declarations": [],
2873
2844
  "exports": [
2845
+ {
2846
+ "kind": "js",
2847
+ "name": "AiCriteriaSearch",
2848
+ "declaration": {
2849
+ "name": "AiCriteriaSearch",
2850
+ "module": "./ai-criteria-search"
2851
+ }
2852
+ },
2853
+ {
2854
+ "kind": "js",
2855
+ "name": "defaultAiCriteriaSearchConfig",
2856
+ "declaration": {
2857
+ "name": "defaultAiCriteriaSearchConfig",
2858
+ "module": "./ai-criteria-search"
2859
+ }
2860
+ },
2861
+ {
2862
+ "kind": "js",
2863
+ "name": "foundationAiCriteriaSearch",
2864
+ "declaration": {
2865
+ "name": "foundationAiCriteriaSearch",
2866
+ "module": "./ai-criteria-search"
2867
+ }
2868
+ },
2869
+ {
2870
+ "kind": "js",
2871
+ "name": "foundationAiCriteriaSearchShadowOptions",
2872
+ "declaration": {
2873
+ "name": "foundationAiCriteriaSearchShadowOptions",
2874
+ "module": "./ai-criteria-search"
2875
+ }
2876
+ },
2877
+ {
2878
+ "kind": "js",
2879
+ "name": "foundationAiCriteriaSearchStyles",
2880
+ "declaration": {
2881
+ "name": "foundationAiCriteriaSearchStyles",
2882
+ "module": "./ai-criteria-search.styles"
2883
+ }
2884
+ },
2885
+ {
2886
+ "kind": "js",
2887
+ "name": "foundationAiCriteriaSearchTemplate",
2888
+ "declaration": {
2889
+ "name": "foundationAiCriteriaSearchTemplate",
2890
+ "module": "./ai-criteria-search.template"
2891
+ }
2892
+ },
2874
2893
  {
2875
2894
  "kind": "js",
2876
2895
  "name": "*",
2877
2896
  "declaration": {
2878
2897
  "name": "*",
2879
- "package": "./actions-menu.styles"
2898
+ "package": "./validation/criteria-ir"
2880
2899
  }
2881
2900
  },
2882
2901
  {
@@ -2884,7 +2903,7 @@
2884
2903
  "name": "*",
2885
2904
  "declaration": {
2886
2905
  "name": "*",
2887
- "package": "./actions-menu.template"
2906
+ "package": "./validation/operator-map"
2888
2907
  }
2889
2908
  },
2890
2909
  {
@@ -2892,64 +2911,157 @@
2892
2911
  "name": "*",
2893
2912
  "declaration": {
2894
2913
  "name": "*",
2895
- "package": "./actions-menu"
2914
+ "package": "./validation/schema-validator"
2896
2915
  }
2897
2916
  }
2898
2917
  ]
2899
2918
  },
2900
2919
  {
2901
2920
  "kind": "javascript-module",
2902
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2921
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2903
2922
  "declarations": [
2904
2923
  {
2905
- "kind": "variable",
2906
- "name": "foundationAiCriteriaSearchStyles",
2907
- "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`"
2924
+ "kind": "function",
2925
+ "name": "formatValidationErrors",
2926
+ "return": {
2927
+ "type": {
2928
+ "text": "string"
2929
+ }
2930
+ },
2931
+ "parameters": [
2932
+ {
2933
+ "name": "errors",
2934
+ "type": {
2935
+ "text": "ValidationError[]"
2936
+ }
2937
+ }
2938
+ ],
2939
+ "description": "Formats validation errors into a user-friendly message."
2940
+ },
2941
+ {
2942
+ "kind": "function",
2943
+ "name": "showCriteriaError",
2944
+ "return": {
2945
+ "type": {
2946
+ "text": "void"
2947
+ }
2948
+ },
2949
+ "parameters": [
2950
+ {
2951
+ "name": "title",
2952
+ "type": {
2953
+ "text": "string"
2954
+ },
2955
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2956
+ },
2957
+ {
2958
+ "name": "body",
2959
+ "type": {
2960
+ "text": "string"
2961
+ },
2962
+ "description": "Error message to display"
2963
+ },
2964
+ {
2965
+ "name": "tagName",
2966
+ "type": {
2967
+ "text": "string"
2968
+ },
2969
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2970
+ }
2971
+ ],
2972
+ "description": "Shows a criteria error as a toast notification."
2973
+ }
2974
+ ],
2975
+ "exports": [
2976
+ {
2977
+ "kind": "js",
2978
+ "name": "formatValidationErrors",
2979
+ "declaration": {
2980
+ "name": "formatValidationErrors",
2981
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2982
+ }
2983
+ },
2984
+ {
2985
+ "kind": "js",
2986
+ "name": "showCriteriaError",
2987
+ "declaration": {
2988
+ "name": "showCriteriaError",
2989
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2990
+ }
2991
+ }
2992
+ ]
2993
+ },
2994
+ {
2995
+ "kind": "javascript-module",
2996
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
2997
+ "declarations": [
2998
+ {
2999
+ "kind": "function",
3000
+ "name": "foundationAiIndicatorStyles",
3001
+ "return": {
3002
+ "type": {
3003
+ "text": "ElementStyles"
3004
+ }
3005
+ },
3006
+ "parameters": [
3007
+ {
3008
+ "name": "context",
3009
+ "type": {
3010
+ "text": "ElementDefinitionContext"
3011
+ }
3012
+ },
3013
+ {
3014
+ "name": "definition",
3015
+ "type": {
3016
+ "text": "FoundationElementDefinition"
3017
+ }
3018
+ }
3019
+ ]
2908
3020
  }
2909
3021
  ],
2910
3022
  "exports": [
2911
3023
  {
2912
3024
  "kind": "js",
2913
- "name": "foundationAiCriteriaSearchStyles",
3025
+ "name": "foundationAiIndicatorStyles",
2914
3026
  "declaration": {
2915
- "name": "foundationAiCriteriaSearchStyles",
2916
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3027
+ "name": "foundationAiIndicatorStyles",
3028
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
2917
3029
  }
2918
3030
  }
2919
3031
  ]
2920
3032
  },
2921
3033
  {
2922
3034
  "kind": "javascript-module",
2923
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3035
+ "path": "src/ai-indicator/ai-indicator.template.ts",
2924
3036
  "declarations": [
2925
3037
  {
2926
3038
  "kind": "variable",
2927
- "name": "foundationAiCriteriaSearchTemplate",
3039
+ "name": "foundationAiIndicatorTemplate",
2928
3040
  "type": {
2929
- "text": "ViewTemplate<AiCriteriaSearch>"
3041
+ "text": "ViewTemplate<AiIndicator>"
2930
3042
  },
2931
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3043
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2932
3044
  }
2933
3045
  ],
2934
3046
  "exports": [
2935
3047
  {
2936
3048
  "kind": "js",
2937
- "name": "foundationAiCriteriaSearchTemplate",
3049
+ "name": "foundationAiIndicatorTemplate",
2938
3050
  "declaration": {
2939
- "name": "foundationAiCriteriaSearchTemplate",
2940
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3051
+ "name": "foundationAiIndicatorTemplate",
3052
+ "module": "src/ai-indicator/ai-indicator.template.ts"
2941
3053
  }
2942
3054
  }
2943
3055
  ]
2944
3056
  },
2945
3057
  {
2946
3058
  "kind": "javascript-module",
2947
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3059
+ "path": "src/ai-indicator/ai-indicator.ts",
2948
3060
  "declarations": [
2949
3061
  {
2950
3062
  "kind": "class",
2951
- "description": "Natural-language criteria search input with AI interpretation.",
2952
- "name": "AiCriteriaSearch",
3063
+ "description": "",
3064
+ "name": "AiIndicator",
2953
3065
  "members": [
2954
3066
  {
2955
3067
  "kind": "field",
@@ -2960,54 +3072,25 @@
2960
3072
  },
2961
3073
  {
2962
3074
  "kind": "field",
2963
- "name": "placeholder",
2964
- "type": {
2965
- "text": "string"
2966
- },
2967
- "default": "'Describe your search criteria in natural language...'"
2968
- },
2969
- {
2970
- "kind": "field",
2971
- "name": "disabled",
2972
- "type": {
2973
- "text": "boolean"
2974
- }
2975
- },
2976
- {
2977
- "kind": "field",
2978
- "name": "inputValue",
2979
- "type": {
2980
- "text": "string"
2981
- },
2982
- "default": "''"
2983
- },
2984
- {
2985
- "kind": "field",
2986
- "name": "isInterpreting",
3075
+ "name": "aiProvider",
2987
3076
  "type": {
2988
- "text": "boolean"
3077
+ "text": "AIProvider | undefined"
2989
3078
  },
2990
- "default": "false"
3079
+ "privacy": "private",
3080
+ "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3081
+ "readonly": true
2991
3082
  },
2992
3083
  {
2993
3084
  "kind": "field",
2994
- "name": "lastValidCriteria",
3085
+ "name": "status",
2995
3086
  "type": {
2996
- "text": "string | null"
3087
+ "text": "AIStatus | null"
2997
3088
  },
2998
3089
  "default": "null"
2999
3090
  },
3000
3091
  {
3001
3092
  "kind": "field",
3002
- "name": "activeGroups",
3003
- "type": {
3004
- "text": "CriteriaGroup[]"
3005
- },
3006
- "default": "[]"
3007
- },
3008
- {
3009
- "kind": "field",
3010
- "name": "showingChips",
3093
+ "name": "open",
3011
3094
  "type": {
3012
3095
  "text": "boolean"
3013
3096
  },
@@ -3015,15 +3098,15 @@
3015
3098
  },
3016
3099
  {
3017
3100
  "kind": "field",
3018
- "name": "fieldMetadata",
3101
+ "name": "state",
3019
3102
  "type": {
3020
- "text": "MetadataDetail[] | string[]"
3103
+ "text": "AIIndicatorState"
3021
3104
  },
3022
- "default": "[]"
3105
+ "default": "'none'"
3023
3106
  },
3024
3107
  {
3025
3108
  "kind": "field",
3026
- "name": "isRecording",
3109
+ "name": "isInstalling",
3027
3110
  "type": {
3028
3111
  "text": "boolean"
3029
3112
  },
@@ -3031,33 +3114,29 @@
3031
3114
  },
3032
3115
  {
3033
3116
  "kind": "field",
3034
- "name": "textAreaRef",
3117
+ "name": "pollTimer",
3035
3118
  "type": {
3036
- "text": "HTMLTextAreaElement"
3119
+ "text": "ReturnType<typeof setInterval> | null"
3037
3120
  },
3038
- "privacy": "public"
3121
+ "privacy": "private",
3122
+ "default": "null"
3039
3123
  },
3040
3124
  {
3041
3125
  "kind": "field",
3042
- "name": "stopRecording",
3043
- "type": {
3044
- "text": "(() => void) | null"
3045
- },
3046
- "privacy": "private",
3047
- "default": "null"
3126
+ "name": "clickOutside",
3127
+ "privacy": "private"
3048
3128
  },
3049
3129
  {
3050
3130
  "kind": "field",
3051
- "name": "speechApplyDebounceTimer",
3131
+ "name": "chromeStatusLabel",
3052
3132
  "type": {
3053
- "text": "ReturnType<typeof setTimeout> | null"
3133
+ "text": "string | null"
3054
3134
  },
3055
- "privacy": "private",
3056
- "default": "null"
3135
+ "readonly": true
3057
3136
  },
3058
3137
  {
3059
3138
  "kind": "field",
3060
- "name": "speechAvailable",
3139
+ "name": "canInstall",
3061
3140
  "type": {
3062
3141
  "text": "boolean"
3063
3142
  },
@@ -3065,65 +3144,69 @@
3065
3144
  },
3066
3145
  {
3067
3146
  "kind": "field",
3068
- "name": "criteriaChips",
3147
+ "name": "isDownloading",
3069
3148
  "type": {
3070
- "text": "CriteriaChip[]"
3149
+ "text": "boolean"
3071
3150
  },
3072
3151
  "readonly": true
3073
3152
  },
3074
3153
  {
3075
3154
  "kind": "method",
3076
- "name": "getFieldLabel",
3077
- "privacy": "private",
3155
+ "name": "openChanged",
3078
3156
  "return": {
3079
3157
  "type": {
3080
- "text": "string"
3158
+ "text": "void"
3081
3159
  }
3082
- },
3160
+ }
3161
+ },
3162
+ {
3163
+ "kind": "method",
3164
+ "name": "handleClickOutside",
3165
+ "privacy": "private",
3083
3166
  "parameters": [
3084
3167
  {
3085
- "name": "fieldName",
3168
+ "name": "event",
3086
3169
  "type": {
3087
- "text": "string"
3170
+ "text": "MouseEvent"
3088
3171
  }
3089
3172
  }
3090
3173
  ]
3091
3174
  },
3092
3175
  {
3093
3176
  "kind": "method",
3094
- "name": "toggleCriteriaView",
3177
+ "name": "toggleDropdown"
3178
+ },
3179
+ {
3180
+ "kind": "method",
3181
+ "name": "refreshStatus",
3095
3182
  "return": {
3096
3183
  "type": {
3097
- "text": "void"
3184
+ "text": "Promise<void>"
3098
3185
  }
3099
3186
  }
3100
3187
  },
3101
3188
  {
3102
3189
  "kind": "method",
3103
- "name": "removeChip",
3190
+ "name": "deriveState",
3191
+ "privacy": "private",
3104
3192
  "return": {
3105
3193
  "type": {
3106
- "text": "void"
3194
+ "text": "AIIndicatorState"
3107
3195
  }
3108
3196
  },
3109
3197
  "parameters": [
3110
3198
  {
3111
- "name": "groupIndex",
3112
- "type": {
3113
- "text": "number"
3114
- }
3115
- },
3116
- {
3117
- "name": "clauseIndex",
3199
+ "name": "s",
3118
3200
  "type": {
3119
- "text": "number"
3201
+ "text": "AIStatus | null"
3120
3202
  }
3121
3203
  }
3122
3204
  ]
3123
3205
  },
3124
3206
  {
3125
3207
  "kind": "method",
3126
- "name": "clearChips",
3208
+ "name": "maybeStartPolling",
3209
+ "privacy": "private",
3127
3210
  "return": {
3128
3211
  "type": {
3129
3212
  "text": "void"
@@ -3132,24 +3215,32 @@
3132
3215
  },
3133
3216
  {
3134
3217
  "kind": "method",
3135
- "name": "handleSubmit"
3136
- },
3137
- {
3138
- "kind": "method",
3139
- "name": "handleBlur"
3140
- },
3141
- {
3142
- "kind": "method",
3143
- "name": "clear"
3218
+ "name": "startPolling",
3219
+ "privacy": "private",
3220
+ "return": {
3221
+ "type": {
3222
+ "text": "void"
3223
+ }
3224
+ }
3144
3225
  },
3145
3226
  {
3146
3227
  "kind": "method",
3147
- "name": "toggleSpeechInput"
3228
+ "name": "stopPolling",
3229
+ "privacy": "private",
3230
+ "return": {
3231
+ "type": {
3232
+ "text": "void"
3233
+ }
3234
+ }
3148
3235
  },
3149
3236
  {
3150
3237
  "kind": "method",
3151
- "name": "clearSpeechApplyDebounce",
3152
- "privacy": "private"
3238
+ "name": "onInstall",
3239
+ "return": {
3240
+ "type": {
3241
+ "text": "Promise<void>"
3242
+ }
3243
+ }
3153
3244
  },
3154
3245
  {
3155
3246
  "kind": "field",
@@ -3263,259 +3354,141 @@
3263
3354
  }
3264
3355
  }
3265
3356
  ],
3266
- "events": [
3267
- {
3268
- "description": "Fired when interpreted criteria is applied or cleared",
3269
- "name": "criteria-changed"
3270
- },
3271
- {
3272
- "description": "Fired when interpreted criteria contains invalid clauses",
3273
- "name": "validation-errors"
3274
- }
3275
- ],
3276
- "attributes": [
3277
- {
3278
- "name": "placeholder",
3279
- "type": {
3280
- "text": "string"
3281
- },
3282
- "default": "'Describe your search criteria in natural language...'",
3283
- "fieldName": "placeholder"
3284
- },
3285
- {
3286
- "type": {
3287
- "text": "boolean"
3288
- },
3289
- "fieldName": "disabled"
3290
- }
3291
- ],
3292
3357
  "superclass": {
3293
- "name": "FoundationElement",
3294
- "package": "@microsoft/fast-foundation"
3295
- },
3296
- "tagName": "%%prefix%%-ai-criteria-search",
3297
- "customElement": true
3298
- },
3299
- {
3300
- "kind": "variable",
3301
- "name": "foundationAiCriteriaSearchShadowOptions",
3302
- "type": {
3303
- "text": "ShadowRootInit"
3304
- },
3305
- "default": "undefined"
3306
- },
3307
- {
3308
- "kind": "variable",
3309
- "name": "defaultAiCriteriaSearchConfig",
3310
- "type": {
3311
- "text": "object"
3312
- },
3313
- "default": "{}"
3314
- },
3315
- {
3316
- "kind": "variable",
3317
- "name": "foundationAiCriteriaSearch"
3318
- }
3319
- ],
3320
- "exports": [
3321
- {
3322
- "kind": "js",
3323
- "name": "AiCriteriaSearch",
3324
- "declaration": {
3325
- "name": "AiCriteriaSearch",
3326
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3327
- }
3328
- },
3329
- {
3330
- "kind": "js",
3331
- "name": "foundationAiCriteriaSearchShadowOptions",
3332
- "declaration": {
3333
- "name": "foundationAiCriteriaSearchShadowOptions",
3334
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3335
- }
3358
+ "name": "FoundationElement",
3359
+ "package": "@microsoft/fast-foundation"
3360
+ },
3361
+ "tagName": "%%prefix%%-ai-indicator",
3362
+ "customElement": true
3336
3363
  },
3364
+ {
3365
+ "kind": "variable",
3366
+ "name": "foundationAiIndicator"
3367
+ }
3368
+ ],
3369
+ "exports": [
3337
3370
  {
3338
3371
  "kind": "js",
3339
- "name": "defaultAiCriteriaSearchConfig",
3372
+ "name": "AiIndicator",
3340
3373
  "declaration": {
3341
- "name": "defaultAiCriteriaSearchConfig",
3342
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3374
+ "name": "AiIndicator",
3375
+ "module": "src/ai-indicator/ai-indicator.ts"
3343
3376
  }
3344
3377
  },
3345
3378
  {
3346
3379
  "kind": "js",
3347
- "name": "foundationAiCriteriaSearch",
3380
+ "name": "foundationAiIndicator",
3348
3381
  "declaration": {
3349
- "name": "foundationAiCriteriaSearch",
3350
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3382
+ "name": "foundationAiIndicator",
3383
+ "module": "src/ai-indicator/ai-indicator.ts"
3351
3384
  }
3352
3385
  }
3353
3386
  ]
3354
3387
  },
3355
3388
  {
3356
3389
  "kind": "javascript-module",
3357
- "path": "src/ai-criteria-search/index.ts",
3390
+ "path": "src/ai-indicator/index.ts",
3358
3391
  "declarations": [],
3359
3392
  "exports": [
3360
3393
  {
3361
3394
  "kind": "js",
3362
- "name": "AiCriteriaSearch",
3363
- "declaration": {
3364
- "name": "AiCriteriaSearch",
3365
- "module": "./ai-criteria-search"
3366
- }
3367
- },
3368
- {
3369
- "kind": "js",
3370
- "name": "defaultAiCriteriaSearchConfig",
3371
- "declaration": {
3372
- "name": "defaultAiCriteriaSearchConfig",
3373
- "module": "./ai-criteria-search"
3374
- }
3375
- },
3376
- {
3377
- "kind": "js",
3378
- "name": "foundationAiCriteriaSearch",
3379
- "declaration": {
3380
- "name": "foundationAiCriteriaSearch",
3381
- "module": "./ai-criteria-search"
3382
- }
3383
- },
3384
- {
3385
- "kind": "js",
3386
- "name": "foundationAiCriteriaSearchShadowOptions",
3395
+ "name": "AiIndicator",
3387
3396
  "declaration": {
3388
- "name": "foundationAiCriteriaSearchShadowOptions",
3389
- "module": "./ai-criteria-search"
3397
+ "name": "AiIndicator",
3398
+ "module": "./ai-indicator"
3390
3399
  }
3391
3400
  },
3392
3401
  {
3393
3402
  "kind": "js",
3394
- "name": "foundationAiCriteriaSearchStyles",
3403
+ "name": "foundationAiIndicator",
3395
3404
  "declaration": {
3396
- "name": "foundationAiCriteriaSearchStyles",
3397
- "module": "./ai-criteria-search.styles"
3405
+ "name": "foundationAiIndicator",
3406
+ "module": "./ai-indicator"
3398
3407
  }
3399
3408
  },
3400
3409
  {
3401
3410
  "kind": "js",
3402
- "name": "foundationAiCriteriaSearchTemplate",
3411
+ "name": "type",
3403
3412
  "declaration": {
3404
- "name": "foundationAiCriteriaSearchTemplate",
3405
- "module": "./ai-criteria-search.template"
3413
+ "name": "type",
3414
+ "module": "./ai-indicator"
3406
3415
  }
3407
3416
  },
3408
3417
  {
3409
3418
  "kind": "js",
3410
- "name": "*",
3419
+ "name": "AIIndicatorState",
3411
3420
  "declaration": {
3412
- "name": "*",
3413
- "package": "./validation/criteria-ir"
3421
+ "name": "AIIndicatorState",
3422
+ "module": "./ai-indicator"
3414
3423
  }
3415
3424
  },
3416
3425
  {
3417
3426
  "kind": "js",
3418
- "name": "*",
3427
+ "name": "foundationAiIndicatorTemplate",
3419
3428
  "declaration": {
3420
- "name": "*",
3421
- "package": "./validation/operator-map"
3429
+ "name": "foundationAiIndicatorTemplate",
3430
+ "module": "./ai-indicator.template"
3422
3431
  }
3423
3432
  },
3424
3433
  {
3425
3434
  "kind": "js",
3426
- "name": "*",
3435
+ "name": "foundationAiIndicatorStyles",
3427
3436
  "declaration": {
3428
- "name": "*",
3429
- "package": "./validation/schema-validator"
3437
+ "name": "foundationAiIndicatorStyles",
3438
+ "module": "./ai-indicator.styles"
3430
3439
  }
3431
3440
  }
3432
3441
  ]
3433
3442
  },
3434
3443
  {
3435
3444
  "kind": "javascript-module",
3436
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3445
+ "path": "src/accordion/accordion.styles.ts",
3437
3446
  "declarations": [
3438
3447
  {
3439
3448
  "kind": "function",
3440
- "name": "formatValidationErrors",
3449
+ "name": "foundationAccordionStyles",
3441
3450
  "return": {
3442
3451
  "type": {
3443
- "text": "string"
3452
+ "text": "ElementStyles"
3444
3453
  }
3445
3454
  },
3446
3455
  "parameters": [
3447
3456
  {
3448
- "name": "errors",
3457
+ "name": "context",
3449
3458
  "type": {
3450
- "text": "ValidationError[]"
3459
+ "text": "ElementDefinitionContext"
3451
3460
  }
3452
- }
3453
- ],
3454
- "description": "Formats validation errors into a user-friendly message."
3455
- },
3456
- {
3457
- "kind": "function",
3458
- "name": "showCriteriaError",
3459
- "return": {
3460
- "type": {
3461
- "text": "void"
3462
- }
3463
- },
3464
- "parameters": [
3465
- {
3466
- "name": "title",
3467
- "type": {
3468
- "text": "string"
3469
- },
3470
- "description": "Notification title (e.g. \"Criteria validation error\")"
3471
- },
3472
- {
3473
- "name": "body",
3474
- "type": {
3475
- "text": "string"
3476
- },
3477
- "description": "Error message to display"
3478
3461
  },
3479
3462
  {
3480
- "name": "tagName",
3463
+ "name": "definition",
3481
3464
  "type": {
3482
- "text": "string"
3483
- },
3484
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3465
+ "text": "FoundationElementDefinition"
3466
+ }
3485
3467
  }
3486
- ],
3487
- "description": "Shows a criteria error as a toast notification."
3468
+ ]
3488
3469
  }
3489
3470
  ],
3490
3471
  "exports": [
3491
3472
  {
3492
3473
  "kind": "js",
3493
- "name": "formatValidationErrors",
3494
- "declaration": {
3495
- "name": "formatValidationErrors",
3496
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3497
- }
3498
- },
3499
- {
3500
- "kind": "js",
3501
- "name": "showCriteriaError",
3474
+ "name": "foundationAccordionStyles",
3502
3475
  "declaration": {
3503
- "name": "showCriteriaError",
3504
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3476
+ "name": "foundationAccordionStyles",
3477
+ "module": "src/accordion/accordion.styles.ts"
3505
3478
  }
3506
3479
  }
3507
3480
  ]
3508
3481
  },
3509
3482
  {
3510
3483
  "kind": "javascript-module",
3511
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3484
+ "path": "src/accordion/accordion.template.ts",
3512
3485
  "declarations": [
3513
3486
  {
3514
3487
  "kind": "function",
3515
- "name": "foundationAiIndicatorStyles",
3488
+ "name": "foundationAccordionTemplate",
3516
3489
  "return": {
3517
3490
  "type": {
3518
- "text": "ElementStyles"
3491
+ "text": "ViewTemplate<Accordion>"
3519
3492
  }
3520
3493
  },
3521
3494
  "parameters": [
@@ -3537,224 +3510,237 @@
3537
3510
  "exports": [
3538
3511
  {
3539
3512
  "kind": "js",
3540
- "name": "foundationAiIndicatorStyles",
3541
- "declaration": {
3542
- "name": "foundationAiIndicatorStyles",
3543
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3544
- }
3545
- }
3546
- ]
3547
- },
3548
- {
3549
- "kind": "javascript-module",
3550
- "path": "src/ai-indicator/ai-indicator.template.ts",
3551
- "declarations": [
3552
- {
3553
- "kind": "variable",
3554
- "name": "foundationAiIndicatorTemplate",
3555
- "type": {
3556
- "text": "ViewTemplate<AiIndicator>"
3557
- },
3558
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3559
- }
3560
- ],
3561
- "exports": [
3562
- {
3563
- "kind": "js",
3564
- "name": "foundationAiIndicatorTemplate",
3513
+ "name": "foundationAccordionTemplate",
3565
3514
  "declaration": {
3566
- "name": "foundationAiIndicatorTemplate",
3567
- "module": "src/ai-indicator/ai-indicator.template.ts"
3515
+ "name": "foundationAccordionTemplate",
3516
+ "module": "src/accordion/accordion.template.ts"
3568
3517
  }
3569
3518
  }
3570
3519
  ]
3571
3520
  },
3572
3521
  {
3573
3522
  "kind": "javascript-module",
3574
- "path": "src/ai-indicator/ai-indicator.ts",
3523
+ "path": "src/accordion/accordion.ts",
3575
3524
  "declarations": [
3576
3525
  {
3577
3526
  "kind": "class",
3578
3527
  "description": "",
3579
- "name": "AiIndicator",
3580
- "members": [
3581
- {
3582
- "kind": "field",
3583
- "name": "providerRegistry",
3584
- "type": {
3585
- "text": "AIProviderRegistry"
3586
- }
3587
- },
3588
- {
3589
- "kind": "field",
3590
- "name": "aiProvider",
3591
- "type": {
3592
- "text": "AIProvider | undefined"
3593
- },
3594
- "privacy": "private",
3595
- "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3596
- "readonly": true
3597
- },
3528
+ "name": "Accordion",
3529
+ "superclass": {
3530
+ "name": "FASTAccordion",
3531
+ "package": "@microsoft/fast-foundation"
3532
+ },
3533
+ "tagName": "%%prefix%%-accordion",
3534
+ "customElement": true,
3535
+ "attributes": [
3598
3536
  {
3599
- "kind": "field",
3600
- "name": "status",
3537
+ "name": "expand-mode",
3601
3538
  "type": {
3602
- "text": "AIStatus | null"
3539
+ "text": "AccordionExpandMode"
3603
3540
  },
3604
- "default": "null"
3605
- },
3541
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3542
+ "fieldName": "expandmode",
3543
+ "inheritedFrom": {
3544
+ "name": "Accordion",
3545
+ "module": "src/accordion/accordion.ts"
3546
+ }
3547
+ }
3548
+ ],
3549
+ "members": [
3606
3550
  {
3607
3551
  "kind": "field",
3608
- "name": "open",
3552
+ "name": "expandmode",
3609
3553
  "type": {
3610
- "text": "boolean"
3554
+ "text": "AccordionExpandMode"
3611
3555
  },
3612
- "default": "false"
3556
+ "privacy": "public",
3557
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3558
+ "inheritedFrom": {
3559
+ "name": "Accordion",
3560
+ "module": "src/accordion/accordion.ts"
3561
+ }
3613
3562
  },
3614
3563
  {
3615
3564
  "kind": "field",
3616
- "name": "state",
3565
+ "name": "activeid",
3617
3566
  "type": {
3618
- "text": "AIIndicatorState"
3567
+ "text": "string | null"
3619
3568
  },
3620
- "default": "'none'"
3569
+ "privacy": "private",
3570
+ "inheritedFrom": {
3571
+ "name": "Accordion",
3572
+ "module": "src/accordion/accordion.ts"
3573
+ }
3621
3574
  },
3622
3575
  {
3623
3576
  "kind": "field",
3624
- "name": "isInstalling",
3577
+ "name": "activeItemIndex",
3625
3578
  "type": {
3626
- "text": "boolean"
3579
+ "text": "number"
3627
3580
  },
3628
- "default": "false"
3581
+ "privacy": "private",
3582
+ "default": "0",
3583
+ "inheritedFrom": {
3584
+ "name": "Accordion",
3585
+ "module": "src/accordion/accordion.ts"
3586
+ }
3629
3587
  },
3630
3588
  {
3631
3589
  "kind": "field",
3632
- "name": "pollTimer",
3590
+ "name": "accordionIds",
3633
3591
  "type": {
3634
- "text": "ReturnType<typeof setInterval> | null"
3592
+ "text": "Array<string | null>"
3635
3593
  },
3636
3594
  "privacy": "private",
3637
- "default": "null"
3638
- },
3639
- {
3640
- "kind": "field",
3641
- "name": "clickOutside",
3642
- "privacy": "private"
3595
+ "inheritedFrom": {
3596
+ "name": "Accordion",
3597
+ "module": "src/accordion/accordion.ts"
3598
+ }
3643
3599
  },
3644
3600
  {
3645
3601
  "kind": "field",
3646
- "name": "chromeStatusLabel",
3647
- "type": {
3648
- "text": "string | null"
3649
- },
3650
- "readonly": true
3602
+ "name": "change",
3603
+ "privacy": "private",
3604
+ "inheritedFrom": {
3605
+ "name": "Accordion",
3606
+ "module": "src/accordion/accordion.ts"
3607
+ }
3651
3608
  },
3652
3609
  {
3653
- "kind": "field",
3654
- "name": "canInstall",
3655
- "type": {
3656
- "text": "boolean"
3610
+ "kind": "method",
3611
+ "name": "findExpandedItem",
3612
+ "privacy": "private",
3613
+ "return": {
3614
+ "type": {
3615
+ "text": "AccordionItem | null"
3616
+ }
3657
3617
  },
3658
- "readonly": true
3618
+ "inheritedFrom": {
3619
+ "name": "Accordion",
3620
+ "module": "src/accordion/accordion.ts"
3621
+ }
3659
3622
  },
3660
3623
  {
3661
3624
  "kind": "field",
3662
- "name": "isDownloading",
3663
- "type": {
3664
- "text": "boolean"
3665
- },
3666
- "readonly": true
3625
+ "name": "setItems",
3626
+ "privacy": "private",
3627
+ "inheritedFrom": {
3628
+ "name": "Accordion",
3629
+ "module": "src/accordion/accordion.ts"
3630
+ }
3667
3631
  },
3668
3632
  {
3669
3633
  "kind": "method",
3670
- "name": "openChanged",
3634
+ "name": "resetItems",
3635
+ "privacy": "private",
3671
3636
  "return": {
3672
3637
  "type": {
3673
3638
  "text": "void"
3674
3639
  }
3640
+ },
3641
+ "inheritedFrom": {
3642
+ "name": "Accordion",
3643
+ "module": "src/accordion/accordion.ts"
3675
3644
  }
3676
3645
  },
3677
3646
  {
3678
- "kind": "method",
3679
- "name": "handleClickOutside",
3647
+ "kind": "field",
3648
+ "name": "removeItemListeners",
3680
3649
  "privacy": "private",
3681
- "parameters": [
3682
- {
3683
- "name": "event",
3684
- "type": {
3685
- "text": "MouseEvent"
3686
- }
3687
- }
3688
- ]
3650
+ "inheritedFrom": {
3651
+ "name": "Accordion",
3652
+ "module": "src/accordion/accordion.ts"
3653
+ }
3689
3654
  },
3690
3655
  {
3691
- "kind": "method",
3692
- "name": "toggleDropdown"
3656
+ "kind": "field",
3657
+ "name": "activeItemChange",
3658
+ "privacy": "private",
3659
+ "inheritedFrom": {
3660
+ "name": "Accordion",
3661
+ "module": "src/accordion/accordion.ts"
3662
+ }
3693
3663
  },
3694
3664
  {
3695
3665
  "kind": "method",
3696
- "name": "refreshStatus",
3666
+ "name": "getItemIds",
3667
+ "privacy": "private",
3697
3668
  "return": {
3698
3669
  "type": {
3699
- "text": "Promise<void>"
3670
+ "text": "Array<string | null>"
3700
3671
  }
3672
+ },
3673
+ "inheritedFrom": {
3674
+ "name": "Accordion",
3675
+ "module": "src/accordion/accordion.ts"
3701
3676
  }
3702
3677
  },
3703
3678
  {
3704
3679
  "kind": "method",
3705
- "name": "deriveState",
3680
+ "name": "isSingleExpandMode",
3706
3681
  "privacy": "private",
3707
3682
  "return": {
3708
3683
  "type": {
3709
- "text": "AIIndicatorState"
3684
+ "text": "boolean"
3710
3685
  }
3711
3686
  },
3712
- "parameters": [
3713
- {
3714
- "name": "s",
3715
- "type": {
3716
- "text": "AIStatus | null"
3717
- }
3718
- }
3719
- ]
3687
+ "inheritedFrom": {
3688
+ "name": "Accordion",
3689
+ "module": "src/accordion/accordion.ts"
3690
+ }
3720
3691
  },
3721
3692
  {
3722
- "kind": "method",
3723
- "name": "maybeStartPolling",
3693
+ "kind": "field",
3694
+ "name": "handleItemKeyDown",
3724
3695
  "privacy": "private",
3725
- "return": {
3726
- "type": {
3727
- "text": "void"
3728
- }
3696
+ "inheritedFrom": {
3697
+ "name": "Accordion",
3698
+ "module": "src/accordion/accordion.ts"
3729
3699
  }
3730
3700
  },
3731
3701
  {
3732
- "kind": "method",
3733
- "name": "startPolling",
3702
+ "kind": "field",
3703
+ "name": "handleItemFocus",
3734
3704
  "privacy": "private",
3735
- "return": {
3736
- "type": {
3737
- "text": "void"
3738
- }
3705
+ "inheritedFrom": {
3706
+ "name": "Accordion",
3707
+ "module": "src/accordion/accordion.ts"
3739
3708
  }
3740
3709
  },
3741
3710
  {
3742
3711
  "kind": "method",
3743
- "name": "stopPolling",
3712
+ "name": "adjust",
3744
3713
  "privacy": "private",
3745
3714
  "return": {
3746
3715
  "type": {
3747
3716
  "text": "void"
3748
3717
  }
3718
+ },
3719
+ "parameters": [
3720
+ {
3721
+ "name": "adjustment",
3722
+ "type": {
3723
+ "text": "number"
3724
+ }
3725
+ }
3726
+ ],
3727
+ "inheritedFrom": {
3728
+ "name": "Accordion",
3729
+ "module": "src/accordion/accordion.ts"
3749
3730
  }
3750
3731
  },
3751
3732
  {
3752
3733
  "kind": "method",
3753
- "name": "onInstall",
3734
+ "name": "focusItem",
3735
+ "privacy": "private",
3754
3736
  "return": {
3755
3737
  "type": {
3756
- "text": "Promise<void>"
3738
+ "text": "void"
3757
3739
  }
3740
+ },
3741
+ "inheritedFrom": {
3742
+ "name": "Accordion",
3743
+ "module": "src/accordion/accordion.ts"
3758
3744
  }
3759
3745
  },
3760
3746
  {
@@ -3869,88 +3855,102 @@
3869
3855
  }
3870
3856
  }
3871
3857
  ],
3872
- "superclass": {
3873
- "name": "FoundationElement",
3874
- "package": "@microsoft/fast-foundation"
3858
+ "events": [
3859
+ {
3860
+ "description": "Fires a custom 'change' event when the active item changes",
3861
+ "name": "change",
3862
+ "inheritedFrom": {
3863
+ "name": "Accordion",
3864
+ "module": "src/accordion/accordion.ts"
3865
+ }
3866
+ }
3867
+ ]
3868
+ },
3869
+ {
3870
+ "kind": "variable",
3871
+ "name": "foundationAccordionShadowOptions",
3872
+ "type": {
3873
+ "text": "ShadowRootInit"
3875
3874
  },
3876
- "tagName": "%%prefix%%-ai-indicator",
3877
- "customElement": true
3875
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3878
3876
  },
3879
3877
  {
3880
3878
  "kind": "variable",
3881
- "name": "foundationAiIndicator"
3879
+ "name": "defaultAccordionConfig",
3880
+ "type": {
3881
+ "text": "object"
3882
+ },
3883
+ "default": "{}"
3884
+ },
3885
+ {
3886
+ "kind": "variable",
3887
+ "name": "foundationAccordion",
3888
+ "description": "The Foundation Accordion",
3889
+ "privacy": "public"
3882
3890
  }
3883
3891
  ],
3884
3892
  "exports": [
3885
3893
  {
3886
3894
  "kind": "js",
3887
- "name": "AiIndicator",
3895
+ "name": "Accordion",
3888
3896
  "declaration": {
3889
- "name": "AiIndicator",
3890
- "module": "src/ai-indicator/ai-indicator.ts"
3897
+ "name": "Accordion",
3898
+ "module": "src/accordion/accordion.ts"
3891
3899
  }
3892
3900
  },
3893
3901
  {
3894
3902
  "kind": "js",
3895
- "name": "foundationAiIndicator",
3896
- "declaration": {
3897
- "name": "foundationAiIndicator",
3898
- "module": "src/ai-indicator/ai-indicator.ts"
3899
- }
3900
- }
3901
- ]
3902
- },
3903
- {
3904
- "kind": "javascript-module",
3905
- "path": "src/ai-indicator/index.ts",
3906
- "declarations": [],
3907
- "exports": [
3908
- {
3909
- "kind": "js",
3910
- "name": "AiIndicator",
3903
+ "name": "foundationAccordionShadowOptions",
3911
3904
  "declaration": {
3912
- "name": "AiIndicator",
3913
- "module": "./ai-indicator"
3905
+ "name": "foundationAccordionShadowOptions",
3906
+ "module": "src/accordion/accordion.ts"
3914
3907
  }
3915
3908
  },
3916
3909
  {
3917
3910
  "kind": "js",
3918
- "name": "foundationAiIndicator",
3911
+ "name": "defaultAccordionConfig",
3919
3912
  "declaration": {
3920
- "name": "foundationAiIndicator",
3921
- "module": "./ai-indicator"
3913
+ "name": "defaultAccordionConfig",
3914
+ "module": "src/accordion/accordion.ts"
3922
3915
  }
3923
3916
  },
3924
3917
  {
3925
3918
  "kind": "js",
3926
- "name": "type",
3919
+ "name": "foundationAccordion",
3927
3920
  "declaration": {
3928
- "name": "type",
3929
- "module": "./ai-indicator"
3921
+ "name": "foundationAccordion",
3922
+ "module": "src/accordion/accordion.ts"
3930
3923
  }
3931
- },
3924
+ }
3925
+ ]
3926
+ },
3927
+ {
3928
+ "kind": "javascript-module",
3929
+ "path": "src/accordion/index.ts",
3930
+ "declarations": [],
3931
+ "exports": [
3932
3932
  {
3933
3933
  "kind": "js",
3934
- "name": "AIIndicatorState",
3934
+ "name": "*",
3935
3935
  "declaration": {
3936
- "name": "AIIndicatorState",
3937
- "module": "./ai-indicator"
3936
+ "name": "*",
3937
+ "package": "./accordion.template"
3938
3938
  }
3939
3939
  },
3940
3940
  {
3941
3941
  "kind": "js",
3942
- "name": "foundationAiIndicatorTemplate",
3942
+ "name": "*",
3943
3943
  "declaration": {
3944
- "name": "foundationAiIndicatorTemplate",
3945
- "module": "./ai-indicator.template"
3944
+ "name": "*",
3945
+ "package": "./accordion.styles"
3946
3946
  }
3947
3947
  },
3948
3948
  {
3949
3949
  "kind": "js",
3950
- "name": "foundationAiIndicatorStyles",
3950
+ "name": "*",
3951
3951
  "declaration": {
3952
- "name": "foundationAiIndicatorStyles",
3953
- "module": "./ai-indicator.styles"
3952
+ "name": "*",
3953
+ "package": "./accordion"
3954
3954
  }
3955
3955
  }
3956
3956
  ]