@genesislcap/foundation-ui 14.421.0 → 14.421.1-FUI-2511.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1390,6 +1390,37 @@
1390
1390
  }
1391
1391
  ]
1392
1392
  },
1393
+ {
1394
+ "kind": "javascript-module",
1395
+ "path": "src/_config/index.ts",
1396
+ "declarations": [],
1397
+ "exports": [
1398
+ {
1399
+ "kind": "js",
1400
+ "name": "*",
1401
+ "declaration": {
1402
+ "name": "*",
1403
+ "package": "./styles"
1404
+ }
1405
+ },
1406
+ {
1407
+ "kind": "js",
1408
+ "name": "*",
1409
+ "declaration": {
1410
+ "name": "*",
1411
+ "package": "./tokens"
1412
+ }
1413
+ },
1414
+ {
1415
+ "kind": "js",
1416
+ "name": "*",
1417
+ "declaration": {
1418
+ "name": "*",
1419
+ "package": "./values"
1420
+ }
1421
+ }
1422
+ ]
1423
+ },
1393
1424
  {
1394
1425
  "kind": "javascript-module",
1395
1426
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1784,37 +1815,6 @@
1784
1815
  }
1785
1816
  ]
1786
1817
  },
1787
- {
1788
- "kind": "javascript-module",
1789
- "path": "src/_config/index.ts",
1790
- "declarations": [],
1791
- "exports": [
1792
- {
1793
- "kind": "js",
1794
- "name": "*",
1795
- "declaration": {
1796
- "name": "*",
1797
- "package": "./styles"
1798
- }
1799
- },
1800
- {
1801
- "kind": "js",
1802
- "name": "*",
1803
- "declaration": {
1804
- "name": "*",
1805
- "package": "./tokens"
1806
- }
1807
- },
1808
- {
1809
- "kind": "js",
1810
- "name": "*",
1811
- "declaration": {
1812
- "name": "*",
1813
- "package": "./values"
1814
- }
1815
- }
1816
- ]
1817
- },
1818
1818
  {
1819
1819
  "kind": "javascript-module",
1820
1820
  "path": "src/accordion/accordion.styles.ts",
@@ -2891,75 +2891,57 @@
2891
2891
  },
2892
2892
  {
2893
2893
  "kind": "javascript-module",
2894
- "path": "src/ai-indicator/ai-indicator.styles.ts",
2894
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2895
2895
  "declarations": [
2896
2896
  {
2897
- "kind": "function",
2898
- "name": "foundationAiIndicatorStyles",
2899
- "return": {
2900
- "type": {
2901
- "text": "ElementStyles"
2902
- }
2903
- },
2904
- "parameters": [
2905
- {
2906
- "name": "context",
2907
- "type": {
2908
- "text": "ElementDefinitionContext"
2909
- }
2910
- },
2911
- {
2912
- "name": "definition",
2913
- "type": {
2914
- "text": "FoundationElementDefinition"
2915
- }
2916
- }
2917
- ]
2897
+ "kind": "variable",
2898
+ "name": "foundationAiCriteriaSearchStyles",
2899
+ "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 .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .mode-control {\n flex-shrink: 0;\n }\n`"
2918
2900
  }
2919
2901
  ],
2920
2902
  "exports": [
2921
2903
  {
2922
2904
  "kind": "js",
2923
- "name": "foundationAiIndicatorStyles",
2905
+ "name": "foundationAiCriteriaSearchStyles",
2924
2906
  "declaration": {
2925
- "name": "foundationAiIndicatorStyles",
2926
- "module": "src/ai-indicator/ai-indicator.styles.ts"
2907
+ "name": "foundationAiCriteriaSearchStyles",
2908
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2927
2909
  }
2928
2910
  }
2929
2911
  ]
2930
2912
  },
2931
2913
  {
2932
2914
  "kind": "javascript-module",
2933
- "path": "src/ai-indicator/ai-indicator.template.ts",
2915
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2934
2916
  "declarations": [
2935
2917
  {
2936
2918
  "kind": "variable",
2937
- "name": "foundationAiIndicatorTemplate",
2919
+ "name": "foundationAiCriteriaSearchTemplate",
2938
2920
  "type": {
2939
- "text": "ViewTemplate<AiIndicator>"
2921
+ "text": "ViewTemplate<AiCriteriaSearch>"
2940
2922
  },
2941
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2923
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2942
2924
  }
2943
2925
  ],
2944
2926
  "exports": [
2945
2927
  {
2946
2928
  "kind": "js",
2947
- "name": "foundationAiIndicatorTemplate",
2929
+ "name": "foundationAiCriteriaSearchTemplate",
2948
2930
  "declaration": {
2949
- "name": "foundationAiIndicatorTemplate",
2950
- "module": "src/ai-indicator/ai-indicator.template.ts"
2931
+ "name": "foundationAiCriteriaSearchTemplate",
2932
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2951
2933
  }
2952
2934
  }
2953
2935
  ]
2954
2936
  },
2955
2937
  {
2956
2938
  "kind": "javascript-module",
2957
- "path": "src/ai-indicator/ai-indicator.ts",
2939
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2958
2940
  "declarations": [
2959
2941
  {
2960
2942
  "kind": "class",
2961
- "description": "",
2962
- "name": "AiIndicator",
2943
+ "description": "Natural-language criteria search input with AI interpretation.",
2944
+ "name": "AiCriteriaSearch",
2963
2945
  "members": [
2964
2946
  {
2965
2947
  "kind": "field",
@@ -2970,31 +2952,38 @@
2970
2952
  },
2971
2953
  {
2972
2954
  "kind": "field",
2973
- "name": "status",
2955
+ "name": "placeholder",
2974
2956
  "type": {
2975
- "text": "AIStatus | null"
2957
+ "text": "string"
2976
2958
  },
2977
- "default": "null"
2959
+ "default": "'Describe your search criteria in natural language...'"
2978
2960
  },
2979
2961
  {
2980
2962
  "kind": "field",
2981
- "name": "open",
2963
+ "name": "disabled",
2982
2964
  "type": {
2983
2965
  "text": "boolean"
2966
+ }
2967
+ },
2968
+ {
2969
+ "kind": "field",
2970
+ "name": "mode",
2971
+ "type": {
2972
+ "text": "'append' | 'replace'"
2984
2973
  },
2985
- "default": "false"
2974
+ "default": "'replace'"
2986
2975
  },
2987
2976
  {
2988
2977
  "kind": "field",
2989
- "name": "state",
2978
+ "name": "inputValue",
2990
2979
  "type": {
2991
- "text": "AIIndicatorState"
2980
+ "text": "string"
2992
2981
  },
2993
- "default": "'none'"
2982
+ "default": "''"
2994
2983
  },
2995
2984
  {
2996
2985
  "kind": "field",
2997
- "name": "isInstalling",
2986
+ "name": "isInterpreting",
2998
2987
  "type": {
2999
2988
  "text": "boolean"
3000
2989
  },
@@ -3002,133 +2991,91 @@
3002
2991
  },
3003
2992
  {
3004
2993
  "kind": "field",
3005
- "name": "pollTimer",
2994
+ "name": "lastValidCriteria",
3006
2995
  "type": {
3007
- "text": "ReturnType<typeof setInterval> | null"
2996
+ "text": "string | null"
3008
2997
  },
3009
- "privacy": "private",
3010
2998
  "default": "null"
3011
2999
  },
3012
3000
  {
3013
3001
  "kind": "field",
3014
- "name": "clickOutside",
3015
- "privacy": "private"
3002
+ "name": "fieldMetadata",
3003
+ "type": {
3004
+ "text": "MetadataDetail[] | string[]"
3005
+ },
3006
+ "default": "[]"
3016
3007
  },
3017
3008
  {
3018
3009
  "kind": "field",
3019
- "name": "chromeStatusLabel",
3010
+ "name": "isRecording",
3020
3011
  "type": {
3021
- "text": "string | null"
3012
+ "text": "boolean"
3022
3013
  },
3023
- "readonly": true
3014
+ "default": "false"
3024
3015
  },
3025
3016
  {
3026
3017
  "kind": "field",
3027
- "name": "canInstall",
3018
+ "name": "textAreaRef",
3028
3019
  "type": {
3029
- "text": "boolean"
3020
+ "text": "HTMLTextAreaElement"
3030
3021
  },
3031
- "readonly": true
3022
+ "privacy": "public"
3032
3023
  },
3033
3024
  {
3034
3025
  "kind": "field",
3035
- "name": "isDownloading",
3026
+ "name": "stopRecording",
3036
3027
  "type": {
3037
- "text": "boolean"
3028
+ "text": "(() => void) | null"
3038
3029
  },
3039
- "readonly": true
3030
+ "privacy": "private",
3031
+ "default": "null"
3040
3032
  },
3041
3033
  {
3042
- "kind": "method",
3043
- "name": "openChanged",
3044
- "return": {
3045
- "type": {
3046
- "text": "void"
3047
- }
3048
- }
3034
+ "kind": "field",
3035
+ "name": "speechApplyDebounceTimer",
3036
+ "type": {
3037
+ "text": "ReturnType<typeof setTimeout> | null"
3038
+ },
3039
+ "privacy": "private",
3040
+ "default": "null"
3049
3041
  },
3050
3042
  {
3051
- "kind": "method",
3052
- "name": "handleClickOutside",
3043
+ "kind": "field",
3044
+ "name": "baseInputForAppend",
3045
+ "type": {
3046
+ "text": "string"
3047
+ },
3053
3048
  "privacy": "private",
3054
- "parameters": [
3055
- {
3056
- "name": "event",
3057
- "type": {
3058
- "text": "MouseEvent"
3059
- }
3060
- }
3061
- ]
3049
+ "default": "''"
3062
3050
  },
3063
3051
  {
3064
- "kind": "method",
3065
- "name": "toggleDropdown"
3052
+ "kind": "field",
3053
+ "name": "speechAvailable",
3054
+ "type": {
3055
+ "text": "boolean"
3056
+ },
3057
+ "readonly": true
3066
3058
  },
3067
3059
  {
3068
3060
  "kind": "method",
3069
- "name": "refreshStatus",
3070
- "return": {
3071
- "type": {
3072
- "text": "Promise<void>"
3073
- }
3074
- }
3061
+ "name": "handleSubmit"
3075
3062
  },
3076
3063
  {
3077
3064
  "kind": "method",
3078
- "name": "deriveState",
3079
- "privacy": "private",
3080
- "return": {
3081
- "type": {
3082
- "text": "AIIndicatorState"
3083
- }
3084
- },
3085
- "parameters": [
3086
- {
3087
- "name": "s",
3088
- "type": {
3089
- "text": "AIStatus | null"
3090
- }
3091
- }
3092
- ]
3065
+ "name": "handleBlur"
3093
3066
  },
3094
3067
  {
3095
3068
  "kind": "method",
3096
- "name": "maybeStartPolling",
3097
- "privacy": "private",
3098
- "return": {
3099
- "type": {
3100
- "text": "void"
3101
- }
3102
- }
3069
+ "name": "clear"
3103
3070
  },
3104
3071
  {
3105
3072
  "kind": "method",
3106
- "name": "startPolling",
3107
- "privacy": "private",
3108
- "return": {
3109
- "type": {
3110
- "text": "void"
3111
- }
3112
- }
3073
+ "name": "toggleSpeechInput"
3113
3074
  },
3114
3075
  {
3115
3076
  "kind": "method",
3116
- "name": "stopPolling",
3117
- "privacy": "private",
3118
- "return": {
3119
- "type": {
3120
- "text": "void"
3121
- }
3122
- }
3123
- },
3124
- {
3125
- "kind": "method",
3126
- "name": "onInstall",
3127
- "return": {
3128
- "type": {
3129
- "text": "Promise<void>"
3130
- }
3131
- }
3077
+ "name": "clearSpeechApplyDebounce",
3078
+ "privacy": "private"
3132
3079
  },
3133
3080
  {
3134
3081
  "kind": "field",
@@ -3242,145 +3189,328 @@
3242
3189
  }
3243
3190
  }
3244
3191
  ],
3192
+ "events": [
3193
+ {
3194
+ "description": "Fired when interpreted criteria is applied or cleared",
3195
+ "name": "criteria-changed"
3196
+ },
3197
+ {
3198
+ "description": "Fired when interpreted criteria contains invalid clauses",
3199
+ "name": "validation-errors"
3200
+ }
3201
+ ],
3202
+ "attributes": [
3203
+ {
3204
+ "name": "placeholder",
3205
+ "type": {
3206
+ "text": "string"
3207
+ },
3208
+ "default": "'Describe your search criteria in natural language...'",
3209
+ "fieldName": "placeholder"
3210
+ },
3211
+ {
3212
+ "type": {
3213
+ "text": "boolean"
3214
+ },
3215
+ "fieldName": "disabled"
3216
+ },
3217
+ {
3218
+ "name": "mode",
3219
+ "type": {
3220
+ "text": "'append' | 'replace'"
3221
+ },
3222
+ "default": "'replace'",
3223
+ "fieldName": "mode"
3224
+ }
3225
+ ],
3245
3226
  "superclass": {
3246
3227
  "name": "FoundationElement",
3247
3228
  "package": "@microsoft/fast-foundation"
3248
3229
  },
3249
- "tagName": "%%prefix%%-ai-indicator",
3230
+ "tagName": "%%prefix%%-ai-criteria-search",
3250
3231
  "customElement": true
3251
3232
  },
3252
3233
  {
3253
3234
  "kind": "variable",
3254
- "name": "foundationAiIndicator"
3235
+ "name": "foundationAiCriteriaSearchShadowOptions",
3236
+ "type": {
3237
+ "text": "ShadowRootInit"
3238
+ },
3239
+ "default": "undefined"
3240
+ },
3241
+ {
3242
+ "kind": "variable",
3243
+ "name": "defaultAiCriteriaSearchConfig",
3244
+ "type": {
3245
+ "text": "object"
3246
+ },
3247
+ "default": "{}"
3248
+ },
3249
+ {
3250
+ "kind": "variable",
3251
+ "name": "foundationAiCriteriaSearch"
3255
3252
  }
3256
3253
  ],
3257
3254
  "exports": [
3258
3255
  {
3259
3256
  "kind": "js",
3260
- "name": "AiIndicator",
3257
+ "name": "AiCriteriaSearch",
3261
3258
  "declaration": {
3262
- "name": "AiIndicator",
3263
- "module": "src/ai-indicator/ai-indicator.ts"
3259
+ "name": "AiCriteriaSearch",
3260
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3264
3261
  }
3265
3262
  },
3266
3263
  {
3267
3264
  "kind": "js",
3268
- "name": "foundationAiIndicator",
3265
+ "name": "foundationAiCriteriaSearchShadowOptions",
3269
3266
  "declaration": {
3270
- "name": "foundationAiIndicator",
3271
- "module": "src/ai-indicator/ai-indicator.ts"
3267
+ "name": "foundationAiCriteriaSearchShadowOptions",
3268
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3269
+ }
3270
+ },
3271
+ {
3272
+ "kind": "js",
3273
+ "name": "defaultAiCriteriaSearchConfig",
3274
+ "declaration": {
3275
+ "name": "defaultAiCriteriaSearchConfig",
3276
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3277
+ }
3278
+ },
3279
+ {
3280
+ "kind": "js",
3281
+ "name": "foundationAiCriteriaSearch",
3282
+ "declaration": {
3283
+ "name": "foundationAiCriteriaSearch",
3284
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3272
3285
  }
3273
3286
  }
3274
3287
  ]
3275
3288
  },
3276
3289
  {
3277
3290
  "kind": "javascript-module",
3278
- "path": "src/ai-indicator/index.ts",
3291
+ "path": "src/ai-criteria-search/index.ts",
3279
3292
  "declarations": [],
3280
3293
  "exports": [
3281
3294
  {
3282
3295
  "kind": "js",
3283
- "name": "AiIndicator",
3296
+ "name": "AiCriteriaSearch",
3284
3297
  "declaration": {
3285
- "name": "AiIndicator",
3286
- "module": "./ai-indicator"
3298
+ "name": "AiCriteriaSearch",
3299
+ "module": "./ai-criteria-search"
3287
3300
  }
3288
3301
  },
3289
3302
  {
3290
3303
  "kind": "js",
3291
- "name": "foundationAiIndicator",
3304
+ "name": "defaultAiCriteriaSearchConfig",
3292
3305
  "declaration": {
3293
- "name": "foundationAiIndicator",
3294
- "module": "./ai-indicator"
3306
+ "name": "defaultAiCriteriaSearchConfig",
3307
+ "module": "./ai-criteria-search"
3295
3308
  }
3296
3309
  },
3297
3310
  {
3298
3311
  "kind": "js",
3299
- "name": "type",
3312
+ "name": "foundationAiCriteriaSearch",
3300
3313
  "declaration": {
3301
- "name": "type",
3302
- "module": "./ai-indicator"
3314
+ "name": "foundationAiCriteriaSearch",
3315
+ "module": "./ai-criteria-search"
3303
3316
  }
3304
3317
  },
3305
3318
  {
3306
3319
  "kind": "js",
3307
- "name": "AIIndicatorState",
3320
+ "name": "foundationAiCriteriaSearchShadowOptions",
3308
3321
  "declaration": {
3309
- "name": "AIIndicatorState",
3310
- "module": "./ai-indicator"
3322
+ "name": "foundationAiCriteriaSearchShadowOptions",
3323
+ "module": "./ai-criteria-search"
3311
3324
  }
3312
3325
  },
3313
3326
  {
3314
3327
  "kind": "js",
3315
- "name": "foundationAiIndicatorTemplate",
3328
+ "name": "foundationAiCriteriaSearchStyles",
3316
3329
  "declaration": {
3317
- "name": "foundationAiIndicatorTemplate",
3318
- "module": "./ai-indicator.template"
3330
+ "name": "foundationAiCriteriaSearchStyles",
3331
+ "module": "./ai-criteria-search.styles"
3319
3332
  }
3320
3333
  },
3321
3334
  {
3322
3335
  "kind": "js",
3323
- "name": "foundationAiIndicatorStyles",
3336
+ "name": "foundationAiCriteriaSearchTemplate",
3324
3337
  "declaration": {
3325
- "name": "foundationAiIndicatorStyles",
3326
- "module": "./ai-indicator.styles"
3338
+ "name": "foundationAiCriteriaSearchTemplate",
3339
+ "module": "./ai-criteria-search.template"
3340
+ }
3341
+ },
3342
+ {
3343
+ "kind": "js",
3344
+ "name": "*",
3345
+ "declaration": {
3346
+ "name": "*",
3347
+ "package": "./validation/criteria-ir"
3348
+ }
3349
+ },
3350
+ {
3351
+ "kind": "js",
3352
+ "name": "*",
3353
+ "declaration": {
3354
+ "name": "*",
3355
+ "package": "./validation/operator-map"
3356
+ }
3357
+ },
3358
+ {
3359
+ "kind": "js",
3360
+ "name": "*",
3361
+ "declaration": {
3362
+ "name": "*",
3363
+ "package": "./validation/schema-validator"
3327
3364
  }
3328
3365
  }
3329
3366
  ]
3330
3367
  },
3331
3368
  {
3332
3369
  "kind": "javascript-module",
3333
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3370
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3334
3371
  "declarations": [
3335
3372
  {
3336
- "kind": "variable",
3337
- "name": "foundationAiCriteriaSearchStyles",
3338
- "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 .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .mode-control {\n flex-shrink: 0;\n }\n`"
3373
+ "kind": "function",
3374
+ "name": "formatValidationErrors",
3375
+ "return": {
3376
+ "type": {
3377
+ "text": "string"
3378
+ }
3379
+ },
3380
+ "parameters": [
3381
+ {
3382
+ "name": "errors",
3383
+ "type": {
3384
+ "text": "ValidationError[]"
3385
+ }
3386
+ }
3387
+ ],
3388
+ "description": "Formats validation errors into a user-friendly message."
3389
+ },
3390
+ {
3391
+ "kind": "function",
3392
+ "name": "showCriteriaError",
3393
+ "return": {
3394
+ "type": {
3395
+ "text": "void"
3396
+ }
3397
+ },
3398
+ "parameters": [
3399
+ {
3400
+ "name": "title",
3401
+ "type": {
3402
+ "text": "string"
3403
+ },
3404
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3405
+ },
3406
+ {
3407
+ "name": "body",
3408
+ "type": {
3409
+ "text": "string"
3410
+ },
3411
+ "description": "Error message to display"
3412
+ },
3413
+ {
3414
+ "name": "tagName",
3415
+ "type": {
3416
+ "text": "string"
3417
+ },
3418
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3419
+ }
3420
+ ],
3421
+ "description": "Shows a criteria error as a toast notification."
3339
3422
  }
3340
3423
  ],
3341
3424
  "exports": [
3342
3425
  {
3343
3426
  "kind": "js",
3344
- "name": "foundationAiCriteriaSearchStyles",
3427
+ "name": "formatValidationErrors",
3345
3428
  "declaration": {
3346
- "name": "foundationAiCriteriaSearchStyles",
3347
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3429
+ "name": "formatValidationErrors",
3430
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3431
+ }
3432
+ },
3433
+ {
3434
+ "kind": "js",
3435
+ "name": "showCriteriaError",
3436
+ "declaration": {
3437
+ "name": "showCriteriaError",
3438
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3348
3439
  }
3349
3440
  }
3350
3441
  ]
3351
3442
  },
3352
3443
  {
3353
3444
  "kind": "javascript-module",
3354
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3445
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3355
3446
  "declarations": [
3356
3447
  {
3357
- "kind": "variable",
3358
- "name": "foundationAiCriteriaSearchTemplate",
3359
- "type": {
3360
- "text": "ViewTemplate<AiCriteriaSearch>"
3448
+ "kind": "function",
3449
+ "name": "foundationAiIndicatorStyles",
3450
+ "return": {
3451
+ "type": {
3452
+ "text": "ElementStyles"
3453
+ }
3361
3454
  },
3362
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3455
+ "parameters": [
3456
+ {
3457
+ "name": "context",
3458
+ "type": {
3459
+ "text": "ElementDefinitionContext"
3460
+ }
3461
+ },
3462
+ {
3463
+ "name": "definition",
3464
+ "type": {
3465
+ "text": "FoundationElementDefinition"
3466
+ }
3467
+ }
3468
+ ]
3363
3469
  }
3364
3470
  ],
3365
3471
  "exports": [
3366
3472
  {
3367
3473
  "kind": "js",
3368
- "name": "foundationAiCriteriaSearchTemplate",
3474
+ "name": "foundationAiIndicatorStyles",
3369
3475
  "declaration": {
3370
- "name": "foundationAiCriteriaSearchTemplate",
3371
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3476
+ "name": "foundationAiIndicatorStyles",
3477
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3372
3478
  }
3373
3479
  }
3374
3480
  ]
3375
3481
  },
3376
3482
  {
3377
3483
  "kind": "javascript-module",
3378
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3484
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3485
+ "declarations": [
3486
+ {
3487
+ "kind": "variable",
3488
+ "name": "foundationAiIndicatorTemplate",
3489
+ "type": {
3490
+ "text": "ViewTemplate<AiIndicator>"
3491
+ },
3492
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3493
+ }
3494
+ ],
3495
+ "exports": [
3496
+ {
3497
+ "kind": "js",
3498
+ "name": "foundationAiIndicatorTemplate",
3499
+ "declaration": {
3500
+ "name": "foundationAiIndicatorTemplate",
3501
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3502
+ }
3503
+ }
3504
+ ]
3505
+ },
3506
+ {
3507
+ "kind": "javascript-module",
3508
+ "path": "src/ai-indicator/ai-indicator.ts",
3379
3509
  "declarations": [
3380
3510
  {
3381
3511
  "kind": "class",
3382
- "description": "Natural-language criteria search input with AI interpretation.",
3383
- "name": "AiCriteriaSearch",
3512
+ "description": "",
3513
+ "name": "AiIndicator",
3384
3514
  "members": [
3385
3515
  {
3386
3516
  "kind": "field",
@@ -3391,38 +3521,31 @@
3391
3521
  },
3392
3522
  {
3393
3523
  "kind": "field",
3394
- "name": "placeholder",
3524
+ "name": "status",
3395
3525
  "type": {
3396
- "text": "string"
3526
+ "text": "AIStatus | null"
3397
3527
  },
3398
- "default": "'Describe your search criteria in natural language...'"
3528
+ "default": "null"
3399
3529
  },
3400
3530
  {
3401
3531
  "kind": "field",
3402
- "name": "disabled",
3532
+ "name": "open",
3403
3533
  "type": {
3404
3534
  "text": "boolean"
3405
- }
3406
- },
3407
- {
3408
- "kind": "field",
3409
- "name": "mode",
3410
- "type": {
3411
- "text": "'append' | 'replace'"
3412
3535
  },
3413
- "default": "'replace'"
3536
+ "default": "false"
3414
3537
  },
3415
3538
  {
3416
3539
  "kind": "field",
3417
- "name": "inputValue",
3540
+ "name": "state",
3418
3541
  "type": {
3419
- "text": "string"
3542
+ "text": "AIIndicatorState"
3420
3543
  },
3421
- "default": "''"
3544
+ "default": "'none'"
3422
3545
  },
3423
3546
  {
3424
3547
  "kind": "field",
3425
- "name": "isInterpreting",
3548
+ "name": "isInstalling",
3426
3549
  "type": {
3427
3550
  "text": "boolean"
3428
3551
  },
@@ -3430,91 +3553,133 @@
3430
3553
  },
3431
3554
  {
3432
3555
  "kind": "field",
3433
- "name": "lastValidCriteria",
3556
+ "name": "pollTimer",
3434
3557
  "type": {
3435
- "text": "string | null"
3558
+ "text": "ReturnType<typeof setInterval> | null"
3436
3559
  },
3560
+ "privacy": "private",
3437
3561
  "default": "null"
3438
3562
  },
3439
3563
  {
3440
3564
  "kind": "field",
3441
- "name": "fieldMetadata",
3442
- "type": {
3443
- "text": "MetadataDetail[] | string[]"
3444
- },
3445
- "default": "[]"
3565
+ "name": "clickOutside",
3566
+ "privacy": "private"
3446
3567
  },
3447
3568
  {
3448
3569
  "kind": "field",
3449
- "name": "isRecording",
3570
+ "name": "chromeStatusLabel",
3450
3571
  "type": {
3451
- "text": "boolean"
3572
+ "text": "string | null"
3452
3573
  },
3453
- "default": "false"
3574
+ "readonly": true
3454
3575
  },
3455
3576
  {
3456
3577
  "kind": "field",
3457
- "name": "textAreaRef",
3578
+ "name": "canInstall",
3458
3579
  "type": {
3459
- "text": "HTMLTextAreaElement"
3580
+ "text": "boolean"
3460
3581
  },
3461
- "privacy": "public"
3582
+ "readonly": true
3462
3583
  },
3463
3584
  {
3464
3585
  "kind": "field",
3465
- "name": "stopRecording",
3586
+ "name": "isDownloading",
3466
3587
  "type": {
3467
- "text": "(() => void) | null"
3588
+ "text": "boolean"
3468
3589
  },
3469
- "privacy": "private",
3470
- "default": "null"
3590
+ "readonly": true
3471
3591
  },
3472
3592
  {
3473
- "kind": "field",
3474
- "name": "speechApplyDebounceTimer",
3475
- "type": {
3476
- "text": "ReturnType<typeof setTimeout> | null"
3477
- },
3478
- "privacy": "private",
3479
- "default": "null"
3593
+ "kind": "method",
3594
+ "name": "openChanged",
3595
+ "return": {
3596
+ "type": {
3597
+ "text": "void"
3598
+ }
3599
+ }
3480
3600
  },
3481
3601
  {
3482
- "kind": "field",
3483
- "name": "baseInputForAppend",
3484
- "type": {
3485
- "text": "string"
3486
- },
3602
+ "kind": "method",
3603
+ "name": "handleClickOutside",
3487
3604
  "privacy": "private",
3488
- "default": "''"
3605
+ "parameters": [
3606
+ {
3607
+ "name": "event",
3608
+ "type": {
3609
+ "text": "MouseEvent"
3610
+ }
3611
+ }
3612
+ ]
3489
3613
  },
3490
3614
  {
3491
- "kind": "field",
3492
- "name": "speechAvailable",
3493
- "type": {
3494
- "text": "boolean"
3495
- },
3496
- "readonly": true
3615
+ "kind": "method",
3616
+ "name": "toggleDropdown"
3497
3617
  },
3498
3618
  {
3499
3619
  "kind": "method",
3500
- "name": "handleSubmit"
3620
+ "name": "refreshStatus",
3621
+ "return": {
3622
+ "type": {
3623
+ "text": "Promise<void>"
3624
+ }
3625
+ }
3501
3626
  },
3502
3627
  {
3503
3628
  "kind": "method",
3504
- "name": "handleBlur"
3629
+ "name": "deriveState",
3630
+ "privacy": "private",
3631
+ "return": {
3632
+ "type": {
3633
+ "text": "AIIndicatorState"
3634
+ }
3635
+ },
3636
+ "parameters": [
3637
+ {
3638
+ "name": "s",
3639
+ "type": {
3640
+ "text": "AIStatus | null"
3641
+ }
3642
+ }
3643
+ ]
3505
3644
  },
3506
3645
  {
3507
3646
  "kind": "method",
3508
- "name": "clear"
3647
+ "name": "maybeStartPolling",
3648
+ "privacy": "private",
3649
+ "return": {
3650
+ "type": {
3651
+ "text": "void"
3652
+ }
3653
+ }
3509
3654
  },
3510
3655
  {
3511
3656
  "kind": "method",
3512
- "name": "toggleSpeechInput"
3657
+ "name": "startPolling",
3658
+ "privacy": "private",
3659
+ "return": {
3660
+ "type": {
3661
+ "text": "void"
3662
+ }
3663
+ }
3513
3664
  },
3514
3665
  {
3515
3666
  "kind": "method",
3516
- "name": "clearSpeechApplyDebounce",
3517
- "privacy": "private"
3667
+ "name": "stopPolling",
3668
+ "privacy": "private",
3669
+ "return": {
3670
+ "type": {
3671
+ "text": "void"
3672
+ }
3673
+ }
3674
+ },
3675
+ {
3676
+ "kind": "method",
3677
+ "name": "onInstall",
3678
+ "return": {
3679
+ "type": {
3680
+ "text": "Promise<void>"
3681
+ }
3682
+ }
3518
3683
  },
3519
3684
  {
3520
3685
  "kind": "field",
@@ -3628,253 +3793,88 @@
3628
3793
  }
3629
3794
  }
3630
3795
  ],
3631
- "events": [
3632
- {
3633
- "description": "Fired when interpreted criteria is applied or cleared",
3634
- "name": "criteria-changed"
3635
- },
3636
- {
3637
- "description": "Fired when interpreted criteria contains invalid clauses",
3638
- "name": "validation-errors"
3639
- }
3640
- ],
3641
- "attributes": [
3642
- {
3643
- "name": "placeholder",
3644
- "type": {
3645
- "text": "string"
3646
- },
3647
- "default": "'Describe your search criteria in natural language...'",
3648
- "fieldName": "placeholder"
3649
- },
3650
- {
3651
- "type": {
3652
- "text": "boolean"
3653
- },
3654
- "fieldName": "disabled"
3655
- },
3656
- {
3657
- "name": "mode",
3658
- "type": {
3659
- "text": "'append' | 'replace'"
3660
- },
3661
- "default": "'replace'",
3662
- "fieldName": "mode"
3663
- }
3664
- ],
3665
3796
  "superclass": {
3666
3797
  "name": "FoundationElement",
3667
3798
  "package": "@microsoft/fast-foundation"
3668
3799
  },
3669
- "tagName": "%%prefix%%-ai-criteria-search",
3800
+ "tagName": "%%prefix%%-ai-indicator",
3670
3801
  "customElement": true
3671
3802
  },
3672
3803
  {
3673
3804
  "kind": "variable",
3674
- "name": "foundationAiCriteriaSearchShadowOptions",
3675
- "type": {
3676
- "text": "ShadowRootInit"
3677
- },
3678
- "default": "undefined"
3679
- },
3680
- {
3681
- "kind": "variable",
3682
- "name": "defaultAiCriteriaSearchConfig",
3683
- "type": {
3684
- "text": "object"
3685
- },
3686
- "default": "{}"
3687
- },
3688
- {
3689
- "kind": "variable",
3690
- "name": "foundationAiCriteriaSearch"
3805
+ "name": "foundationAiIndicator"
3691
3806
  }
3692
3807
  ],
3693
3808
  "exports": [
3694
3809
  {
3695
3810
  "kind": "js",
3696
- "name": "AiCriteriaSearch",
3697
- "declaration": {
3698
- "name": "AiCriteriaSearch",
3699
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3700
- }
3701
- },
3702
- {
3703
- "kind": "js",
3704
- "name": "foundationAiCriteriaSearchShadowOptions",
3705
- "declaration": {
3706
- "name": "foundationAiCriteriaSearchShadowOptions",
3707
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3708
- }
3709
- },
3710
- {
3711
- "kind": "js",
3712
- "name": "defaultAiCriteriaSearchConfig",
3811
+ "name": "AiIndicator",
3713
3812
  "declaration": {
3714
- "name": "defaultAiCriteriaSearchConfig",
3715
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3813
+ "name": "AiIndicator",
3814
+ "module": "src/ai-indicator/ai-indicator.ts"
3716
3815
  }
3717
3816
  },
3718
3817
  {
3719
3818
  "kind": "js",
3720
- "name": "foundationAiCriteriaSearch",
3819
+ "name": "foundationAiIndicator",
3721
3820
  "declaration": {
3722
- "name": "foundationAiCriteriaSearch",
3723
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3821
+ "name": "foundationAiIndicator",
3822
+ "module": "src/ai-indicator/ai-indicator.ts"
3724
3823
  }
3725
3824
  }
3726
3825
  ]
3727
3826
  },
3728
3827
  {
3729
3828
  "kind": "javascript-module",
3730
- "path": "src/ai-criteria-search/index.ts",
3829
+ "path": "src/ai-indicator/index.ts",
3731
3830
  "declarations": [],
3732
3831
  "exports": [
3733
3832
  {
3734
3833
  "kind": "js",
3735
- "name": "AiCriteriaSearch",
3736
- "declaration": {
3737
- "name": "AiCriteriaSearch",
3738
- "module": "./ai-criteria-search"
3739
- }
3740
- },
3741
- {
3742
- "kind": "js",
3743
- "name": "defaultAiCriteriaSearchConfig",
3744
- "declaration": {
3745
- "name": "defaultAiCriteriaSearchConfig",
3746
- "module": "./ai-criteria-search"
3747
- }
3748
- },
3749
- {
3750
- "kind": "js",
3751
- "name": "foundationAiCriteriaSearch",
3752
- "declaration": {
3753
- "name": "foundationAiCriteriaSearch",
3754
- "module": "./ai-criteria-search"
3755
- }
3756
- },
3757
- {
3758
- "kind": "js",
3759
- "name": "foundationAiCriteriaSearchShadowOptions",
3760
- "declaration": {
3761
- "name": "foundationAiCriteriaSearchShadowOptions",
3762
- "module": "./ai-criteria-search"
3763
- }
3764
- },
3765
- {
3766
- "kind": "js",
3767
- "name": "foundationAiCriteriaSearchStyles",
3768
- "declaration": {
3769
- "name": "foundationAiCriteriaSearchStyles",
3770
- "module": "./ai-criteria-search.styles"
3771
- }
3772
- },
3773
- {
3774
- "kind": "js",
3775
- "name": "foundationAiCriteriaSearchTemplate",
3834
+ "name": "AiIndicator",
3776
3835
  "declaration": {
3777
- "name": "foundationAiCriteriaSearchTemplate",
3778
- "module": "./ai-criteria-search.template"
3836
+ "name": "AiIndicator",
3837
+ "module": "./ai-indicator"
3779
3838
  }
3780
3839
  },
3781
3840
  {
3782
3841
  "kind": "js",
3783
- "name": "*",
3842
+ "name": "foundationAiIndicator",
3784
3843
  "declaration": {
3785
- "name": "*",
3786
- "package": "./validation/criteria-ir"
3844
+ "name": "foundationAiIndicator",
3845
+ "module": "./ai-indicator"
3787
3846
  }
3788
3847
  },
3789
3848
  {
3790
3849
  "kind": "js",
3791
- "name": "*",
3850
+ "name": "type",
3792
3851
  "declaration": {
3793
- "name": "*",
3794
- "package": "./validation/operator-map"
3852
+ "name": "type",
3853
+ "module": "./ai-indicator"
3795
3854
  }
3796
3855
  },
3797
3856
  {
3798
3857
  "kind": "js",
3799
- "name": "*",
3858
+ "name": "AIIndicatorState",
3800
3859
  "declaration": {
3801
- "name": "*",
3802
- "package": "./validation/schema-validator"
3860
+ "name": "AIIndicatorState",
3861
+ "module": "./ai-indicator"
3803
3862
  }
3804
- }
3805
- ]
3806
- },
3807
- {
3808
- "kind": "javascript-module",
3809
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3810
- "declarations": [
3811
- {
3812
- "kind": "function",
3813
- "name": "formatValidationErrors",
3814
- "return": {
3815
- "type": {
3816
- "text": "string"
3817
- }
3818
- },
3819
- "parameters": [
3820
- {
3821
- "name": "errors",
3822
- "type": {
3823
- "text": "ValidationError[]"
3824
- }
3825
- }
3826
- ],
3827
- "description": "Formats validation errors into a user-friendly message."
3828
3863
  },
3829
- {
3830
- "kind": "function",
3831
- "name": "showCriteriaError",
3832
- "return": {
3833
- "type": {
3834
- "text": "void"
3835
- }
3836
- },
3837
- "parameters": [
3838
- {
3839
- "name": "title",
3840
- "type": {
3841
- "text": "string"
3842
- },
3843
- "description": "Notification title (e.g. \"Criteria validation error\")"
3844
- },
3845
- {
3846
- "name": "body",
3847
- "type": {
3848
- "text": "string"
3849
- },
3850
- "description": "Error message to display"
3851
- },
3852
- {
3853
- "name": "tagName",
3854
- "type": {
3855
- "text": "string"
3856
- },
3857
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3858
- }
3859
- ],
3860
- "description": "Shows a criteria error as a toast notification."
3861
- }
3862
- ],
3863
- "exports": [
3864
3864
  {
3865
3865
  "kind": "js",
3866
- "name": "formatValidationErrors",
3866
+ "name": "foundationAiIndicatorTemplate",
3867
3867
  "declaration": {
3868
- "name": "formatValidationErrors",
3869
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3868
+ "name": "foundationAiIndicatorTemplate",
3869
+ "module": "./ai-indicator.template"
3870
3870
  }
3871
3871
  },
3872
3872
  {
3873
3873
  "kind": "js",
3874
- "name": "showCriteriaError",
3874
+ "name": "foundationAiIndicatorStyles",
3875
3875
  "declaration": {
3876
- "name": "showCriteriaError",
3877
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3876
+ "name": "foundationAiIndicatorStyles",
3877
+ "module": "./ai-indicator.styles"
3878
3878
  }
3879
3879
  }
3880
3880
  ]