@genesislcap/foundation-ui 14.456.1-alpha-617205e.0 → 14.456.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.
@@ -1398,37 +1398,6 @@
1398
1398
  }
1399
1399
  ]
1400
1400
  },
1401
- {
1402
- "kind": "javascript-module",
1403
- "path": "src/_config/index.ts",
1404
- "declarations": [],
1405
- "exports": [
1406
- {
1407
- "kind": "js",
1408
- "name": "*",
1409
- "declaration": {
1410
- "name": "*",
1411
- "package": "./styles"
1412
- }
1413
- },
1414
- {
1415
- "kind": "js",
1416
- "name": "*",
1417
- "declaration": {
1418
- "name": "*",
1419
- "package": "./tokens"
1420
- }
1421
- },
1422
- {
1423
- "kind": "js",
1424
- "name": "*",
1425
- "declaration": {
1426
- "name": "*",
1427
- "package": "./values"
1428
- }
1429
- }
1430
- ]
1431
- },
1432
1401
  {
1433
1402
  "kind": "javascript-module",
1434
1403
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -2384,275 +2353,239 @@
2384
2353
  },
2385
2354
  {
2386
2355
  "kind": "javascript-module",
2387
- "path": "src/accordion/accordion.styles.ts",
2356
+ "path": "src/_config/index.ts",
2357
+ "declarations": [],
2358
+ "exports": [
2359
+ {
2360
+ "kind": "js",
2361
+ "name": "*",
2362
+ "declaration": {
2363
+ "name": "*",
2364
+ "package": "./styles"
2365
+ }
2366
+ },
2367
+ {
2368
+ "kind": "js",
2369
+ "name": "*",
2370
+ "declaration": {
2371
+ "name": "*",
2372
+ "package": "./tokens"
2373
+ }
2374
+ },
2375
+ {
2376
+ "kind": "js",
2377
+ "name": "*",
2378
+ "declaration": {
2379
+ "name": "*",
2380
+ "package": "./values"
2381
+ }
2382
+ }
2383
+ ]
2384
+ },
2385
+ {
2386
+ "kind": "javascript-module",
2387
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2388
2388
  "declarations": [
2389
2389
  {
2390
- "kind": "function",
2391
- "name": "foundationAccordionStyles",
2392
- "return": {
2393
- "type": {
2394
- "text": "ElementStyles"
2395
- }
2396
- },
2397
- "parameters": [
2398
- {
2399
- "name": "context",
2400
- "type": {
2401
- "text": "ElementDefinitionContext"
2402
- }
2403
- },
2404
- {
2405
- "name": "definition",
2406
- "type": {
2407
- "text": "FoundationElementDefinition"
2408
- }
2409
- }
2410
- ]
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`"
2411
2393
  }
2412
2394
  ],
2413
2395
  "exports": [
2414
2396
  {
2415
2397
  "kind": "js",
2416
- "name": "foundationAccordionStyles",
2398
+ "name": "foundationAiCriteriaSearchStyles",
2417
2399
  "declaration": {
2418
- "name": "foundationAccordionStyles",
2419
- "module": "src/accordion/accordion.styles.ts"
2400
+ "name": "foundationAiCriteriaSearchStyles",
2401
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2420
2402
  }
2421
2403
  }
2422
2404
  ]
2423
2405
  },
2424
2406
  {
2425
2407
  "kind": "javascript-module",
2426
- "path": "src/accordion/accordion.template.ts",
2408
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2427
2409
  "declarations": [
2428
2410
  {
2429
- "kind": "function",
2430
- "name": "foundationAccordionTemplate",
2431
- "return": {
2432
- "type": {
2433
- "text": "ViewTemplate<Accordion>"
2434
- }
2411
+ "kind": "variable",
2412
+ "name": "foundationAiCriteriaSearchTemplate",
2413
+ "type": {
2414
+ "text": "ViewTemplate<AiCriteriaSearch>"
2435
2415
  },
2436
- "parameters": [
2437
- {
2438
- "name": "context",
2439
- "type": {
2440
- "text": "ElementDefinitionContext"
2441
- }
2442
- },
2443
- {
2444
- "name": "definition",
2445
- "type": {
2446
- "text": "FoundationElementDefinition"
2447
- }
2448
- }
2449
- ]
2416
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2450
2417
  }
2451
2418
  ],
2452
2419
  "exports": [
2453
2420
  {
2454
2421
  "kind": "js",
2455
- "name": "foundationAccordionTemplate",
2422
+ "name": "foundationAiCriteriaSearchTemplate",
2456
2423
  "declaration": {
2457
- "name": "foundationAccordionTemplate",
2458
- "module": "src/accordion/accordion.template.ts"
2424
+ "name": "foundationAiCriteriaSearchTemplate",
2425
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2459
2426
  }
2460
2427
  }
2461
2428
  ]
2462
2429
  },
2463
2430
  {
2464
2431
  "kind": "javascript-module",
2465
- "path": "src/accordion/accordion.ts",
2432
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2466
2433
  "declarations": [
2467
2434
  {
2468
2435
  "kind": "class",
2469
- "description": "",
2470
- "name": "Accordion",
2471
- "superclass": {
2472
- "name": "FASTAccordion",
2473
- "package": "@microsoft/fast-foundation"
2474
- },
2475
- "tagName": "%%prefix%%-accordion",
2476
- "customElement": true,
2477
- "attributes": [
2436
+ "description": "Natural-language criteria search input with AI interpretation.",
2437
+ "name": "AiCriteriaSearch",
2438
+ "members": [
2478
2439
  {
2479
- "name": "expand-mode",
2440
+ "kind": "field",
2441
+ "name": "providerRegistry",
2480
2442
  "type": {
2481
- "text": "AccordionExpandMode"
2482
- },
2483
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2484
- "fieldName": "expandmode",
2485
- "inheritedFrom": {
2486
- "name": "Accordion",
2487
- "module": "src/accordion/accordion.ts"
2443
+ "text": "AIProviderRegistry"
2488
2444
  }
2489
- }
2490
- ],
2491
- "members": [
2445
+ },
2492
2446
  {
2493
2447
  "kind": "field",
2494
- "name": "expandmode",
2448
+ "name": "placeholder",
2495
2449
  "type": {
2496
- "text": "AccordionExpandMode"
2450
+ "text": "string"
2497
2451
  },
2498
- "privacy": "public",
2499
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2500
- "inheritedFrom": {
2501
- "name": "Accordion",
2502
- "module": "src/accordion/accordion.ts"
2503
- }
2452
+ "default": "'Describe your search criteria in natural language...'"
2504
2453
  },
2505
2454
  {
2506
2455
  "kind": "field",
2507
- "name": "activeid",
2456
+ "name": "disabled",
2508
2457
  "type": {
2509
- "text": "string | null"
2510
- },
2511
- "privacy": "private",
2512
- "inheritedFrom": {
2513
- "name": "Accordion",
2514
- "module": "src/accordion/accordion.ts"
2458
+ "text": "boolean"
2515
2459
  }
2516
2460
  },
2517
2461
  {
2518
2462
  "kind": "field",
2519
- "name": "activeItemIndex",
2463
+ "name": "inputValue",
2520
2464
  "type": {
2521
- "text": "number"
2465
+ "text": "string"
2522
2466
  },
2523
- "privacy": "private",
2524
- "default": "0",
2525
- "inheritedFrom": {
2526
- "name": "Accordion",
2527
- "module": "src/accordion/accordion.ts"
2528
- }
2467
+ "default": "''"
2529
2468
  },
2530
2469
  {
2531
2470
  "kind": "field",
2532
- "name": "accordionIds",
2471
+ "name": "isInterpreting",
2533
2472
  "type": {
2534
- "text": "Array<string | null>"
2473
+ "text": "boolean"
2535
2474
  },
2536
- "privacy": "private",
2537
- "inheritedFrom": {
2538
- "name": "Accordion",
2539
- "module": "src/accordion/accordion.ts"
2540
- }
2475
+ "default": "false"
2541
2476
  },
2542
2477
  {
2543
2478
  "kind": "field",
2544
- "name": "change",
2545
- "privacy": "private",
2546
- "inheritedFrom": {
2547
- "name": "Accordion",
2548
- "module": "src/accordion/accordion.ts"
2549
- }
2479
+ "name": "lastValidCriteria",
2480
+ "type": {
2481
+ "text": "string | null"
2482
+ },
2483
+ "default": "null"
2550
2484
  },
2551
2485
  {
2552
- "kind": "method",
2553
- "name": "findExpandedItem",
2554
- "privacy": "private",
2555
- "return": {
2556
- "type": {
2557
- "text": "AccordionItem | null"
2558
- }
2486
+ "kind": "field",
2487
+ "name": "activeGroups",
2488
+ "type": {
2489
+ "text": "CriteriaGroup[]"
2559
2490
  },
2560
- "inheritedFrom": {
2561
- "name": "Accordion",
2562
- "module": "src/accordion/accordion.ts"
2563
- }
2491
+ "default": "[]"
2564
2492
  },
2565
2493
  {
2566
2494
  "kind": "field",
2567
- "name": "setItems",
2568
- "privacy": "private",
2569
- "inheritedFrom": {
2570
- "name": "Accordion",
2571
- "module": "src/accordion/accordion.ts"
2572
- }
2495
+ "name": "showingChips",
2496
+ "type": {
2497
+ "text": "boolean"
2498
+ },
2499
+ "default": "false"
2573
2500
  },
2574
2501
  {
2575
- "kind": "method",
2576
- "name": "resetItems",
2577
- "privacy": "private",
2578
- "return": {
2579
- "type": {
2580
- "text": "void"
2581
- }
2502
+ "kind": "field",
2503
+ "name": "fieldMetadata",
2504
+ "type": {
2505
+ "text": "MetadataDetail[] | string[]"
2582
2506
  },
2583
- "inheritedFrom": {
2584
- "name": "Accordion",
2585
- "module": "src/accordion/accordion.ts"
2586
- }
2507
+ "default": "[]"
2587
2508
  },
2588
2509
  {
2589
2510
  "kind": "field",
2590
- "name": "removeItemListeners",
2591
- "privacy": "private",
2592
- "inheritedFrom": {
2593
- "name": "Accordion",
2594
- "module": "src/accordion/accordion.ts"
2595
- }
2511
+ "name": "isRecording",
2512
+ "type": {
2513
+ "text": "boolean"
2514
+ },
2515
+ "default": "false"
2596
2516
  },
2597
2517
  {
2598
2518
  "kind": "field",
2599
- "name": "activeItemChange",
2519
+ "name": "textAreaRef",
2520
+ "type": {
2521
+ "text": "HTMLTextAreaElement"
2522
+ },
2523
+ "privacy": "public"
2524
+ },
2525
+ {
2526
+ "kind": "field",
2527
+ "name": "stopRecording",
2528
+ "type": {
2529
+ "text": "(() => void) | null"
2530
+ },
2600
2531
  "privacy": "private",
2601
- "inheritedFrom": {
2602
- "name": "Accordion",
2603
- "module": "src/accordion/accordion.ts"
2604
- }
2532
+ "default": "null"
2605
2533
  },
2606
2534
  {
2607
- "kind": "method",
2608
- "name": "getItemIds",
2535
+ "kind": "field",
2536
+ "name": "speechApplyDebounceTimer",
2537
+ "type": {
2538
+ "text": "ReturnType<typeof setTimeout> | null"
2539
+ },
2609
2540
  "privacy": "private",
2610
- "return": {
2611
- "type": {
2612
- "text": "Array<string | null>"
2613
- }
2541
+ "default": "null"
2542
+ },
2543
+ {
2544
+ "kind": "field",
2545
+ "name": "speechAvailable",
2546
+ "type": {
2547
+ "text": "boolean"
2614
2548
  },
2615
- "inheritedFrom": {
2616
- "name": "Accordion",
2617
- "module": "src/accordion/accordion.ts"
2618
- }
2549
+ "readonly": true
2550
+ },
2551
+ {
2552
+ "kind": "field",
2553
+ "name": "criteriaChips",
2554
+ "type": {
2555
+ "text": "CriteriaChip[]"
2556
+ },
2557
+ "readonly": true
2619
2558
  },
2620
2559
  {
2621
2560
  "kind": "method",
2622
- "name": "isSingleExpandMode",
2561
+ "name": "getFieldLabel",
2623
2562
  "privacy": "private",
2624
2563
  "return": {
2625
2564
  "type": {
2626
- "text": "boolean"
2565
+ "text": "string"
2627
2566
  }
2628
2567
  },
2629
- "inheritedFrom": {
2630
- "name": "Accordion",
2631
- "module": "src/accordion/accordion.ts"
2632
- }
2633
- },
2634
- {
2635
- "kind": "field",
2636
- "name": "handleItemKeyDown",
2637
- "privacy": "private",
2638
- "inheritedFrom": {
2639
- "name": "Accordion",
2640
- "module": "src/accordion/accordion.ts"
2641
- }
2568
+ "parameters": [
2569
+ {
2570
+ "name": "fieldName",
2571
+ "type": {
2572
+ "text": "string"
2573
+ }
2574
+ }
2575
+ ]
2642
2576
  },
2643
2577
  {
2644
- "kind": "field",
2645
- "name": "handleItemFocus",
2646
- "privacy": "private",
2647
- "inheritedFrom": {
2648
- "name": "Accordion",
2649
- "module": "src/accordion/accordion.ts"
2578
+ "kind": "method",
2579
+ "name": "toggleCriteriaView",
2580
+ "return": {
2581
+ "type": {
2582
+ "text": "void"
2583
+ }
2650
2584
  }
2651
2585
  },
2652
2586
  {
2653
2587
  "kind": "method",
2654
- "name": "adjust",
2655
- "privacy": "private",
2588
+ "name": "removeChip",
2656
2589
  "return": {
2657
2590
  "type": {
2658
2591
  "text": "void"
@@ -2660,31 +2593,49 @@
2660
2593
  },
2661
2594
  "parameters": [
2662
2595
  {
2663
- "name": "adjustment",
2596
+ "name": "groupIndex",
2597
+ "type": {
2598
+ "text": "number"
2599
+ }
2600
+ },
2601
+ {
2602
+ "name": "clauseIndex",
2664
2603
  "type": {
2665
2604
  "text": "number"
2666
2605
  }
2667
2606
  }
2668
- ],
2669
- "inheritedFrom": {
2670
- "name": "Accordion",
2671
- "module": "src/accordion/accordion.ts"
2672
- }
2607
+ ]
2673
2608
  },
2674
2609
  {
2675
2610
  "kind": "method",
2676
- "name": "focusItem",
2677
- "privacy": "private",
2611
+ "name": "clearChips",
2678
2612
  "return": {
2679
2613
  "type": {
2680
2614
  "text": "void"
2681
2615
  }
2682
- },
2683
- "inheritedFrom": {
2684
- "name": "Accordion",
2685
- "module": "src/accordion/accordion.ts"
2686
2616
  }
2687
2617
  },
2618
+ {
2619
+ "kind": "method",
2620
+ "name": "handleSubmit"
2621
+ },
2622
+ {
2623
+ "kind": "method",
2624
+ "name": "handleBlur"
2625
+ },
2626
+ {
2627
+ "kind": "method",
2628
+ "name": "clear"
2629
+ },
2630
+ {
2631
+ "kind": "method",
2632
+ "name": "toggleSpeechInput"
2633
+ },
2634
+ {
2635
+ "kind": "method",
2636
+ "name": "clearSpeechApplyDebounce",
2637
+ "privacy": "private"
2638
+ },
2688
2639
  {
2689
2640
  "kind": "field",
2690
2641
  "name": "_presentation",
@@ -2799,26 +2750,48 @@
2799
2750
  ],
2800
2751
  "events": [
2801
2752
  {
2802
- "description": "Fires a custom 'change' event when the active item changes",
2803
- "name": "change",
2804
- "inheritedFrom": {
2805
- "name": "Accordion",
2806
- "module": "src/accordion/accordion.ts"
2807
- }
2753
+ "description": "Fired when interpreted criteria is applied or cleared",
2754
+ "name": "criteria-changed"
2755
+ },
2756
+ {
2757
+ "description": "Fired when interpreted criteria contains invalid clauses",
2758
+ "name": "validation-errors"
2808
2759
  }
2809
- ]
2760
+ ],
2761
+ "attributes": [
2762
+ {
2763
+ "name": "placeholder",
2764
+ "type": {
2765
+ "text": "string"
2766
+ },
2767
+ "default": "'Describe your search criteria in natural language...'",
2768
+ "fieldName": "placeholder"
2769
+ },
2770
+ {
2771
+ "type": {
2772
+ "text": "boolean"
2773
+ },
2774
+ "fieldName": "disabled"
2775
+ }
2776
+ ],
2777
+ "superclass": {
2778
+ "name": "FoundationElement",
2779
+ "package": "@microsoft/fast-foundation"
2780
+ },
2781
+ "tagName": "%%prefix%%-ai-criteria-search",
2782
+ "customElement": true
2810
2783
  },
2811
2784
  {
2812
2785
  "kind": "variable",
2813
- "name": "foundationAccordionShadowOptions",
2786
+ "name": "foundationAiCriteriaSearchShadowOptions",
2814
2787
  "type": {
2815
2788
  "text": "ShadowRootInit"
2816
2789
  },
2817
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2790
+ "default": "undefined"
2818
2791
  },
2819
2792
  {
2820
2793
  "kind": "variable",
2821
- "name": "defaultAccordionConfig",
2794
+ "name": "defaultAiCriteriaSearchConfig",
2822
2795
  "type": {
2823
2796
  "text": "object"
2824
2797
  },
@@ -2826,188 +2799,298 @@
2826
2799
  },
2827
2800
  {
2828
2801
  "kind": "variable",
2829
- "name": "foundationAccordion",
2830
- "description": "The Foundation Accordion",
2831
- "privacy": "public"
2802
+ "name": "foundationAiCriteriaSearch"
2832
2803
  }
2833
2804
  ],
2834
2805
  "exports": [
2835
2806
  {
2836
2807
  "kind": "js",
2837
- "name": "Accordion",
2808
+ "name": "AiCriteriaSearch",
2838
2809
  "declaration": {
2839
- "name": "Accordion",
2840
- "module": "src/accordion/accordion.ts"
2810
+ "name": "AiCriteriaSearch",
2811
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2841
2812
  }
2842
2813
  },
2843
2814
  {
2844
2815
  "kind": "js",
2845
- "name": "foundationAccordionShadowOptions",
2816
+ "name": "foundationAiCriteriaSearchShadowOptions",
2846
2817
  "declaration": {
2847
- "name": "foundationAccordionShadowOptions",
2848
- "module": "src/accordion/accordion.ts"
2818
+ "name": "foundationAiCriteriaSearchShadowOptions",
2819
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2849
2820
  }
2850
2821
  },
2851
2822
  {
2852
2823
  "kind": "js",
2853
- "name": "defaultAccordionConfig",
2824
+ "name": "defaultAiCriteriaSearchConfig",
2854
2825
  "declaration": {
2855
- "name": "defaultAccordionConfig",
2856
- "module": "src/accordion/accordion.ts"
2826
+ "name": "defaultAiCriteriaSearchConfig",
2827
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2857
2828
  }
2858
2829
  },
2859
2830
  {
2860
2831
  "kind": "js",
2861
- "name": "foundationAccordion",
2832
+ "name": "foundationAiCriteriaSearch",
2862
2833
  "declaration": {
2863
- "name": "foundationAccordion",
2864
- "module": "src/accordion/accordion.ts"
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/accordion/index.ts",
2842
+ "path": "src/ai-criteria-search/index.ts",
2872
2843
  "declarations": [],
2873
2844
  "exports": [
2874
2845
  {
2875
2846
  "kind": "js",
2876
- "name": "*",
2847
+ "name": "AiCriteriaSearch",
2877
2848
  "declaration": {
2878
- "name": "*",
2879
- "package": "./accordion.template"
2849
+ "name": "AiCriteriaSearch",
2850
+ "module": "./ai-criteria-search"
2880
2851
  }
2881
2852
  },
2882
2853
  {
2883
2854
  "kind": "js",
2884
- "name": "*",
2855
+ "name": "defaultAiCriteriaSearchConfig",
2885
2856
  "declaration": {
2886
- "name": "*",
2887
- "package": "./accordion.styles"
2857
+ "name": "defaultAiCriteriaSearchConfig",
2858
+ "module": "./ai-criteria-search"
2888
2859
  }
2889
2860
  },
2890
2861
  {
2891
2862
  "kind": "js",
2892
- "name": "*",
2863
+ "name": "foundationAiCriteriaSearch",
2893
2864
  "declaration": {
2894
- "name": "*",
2895
- "package": "./accordion"
2865
+ "name": "foundationAiCriteriaSearch",
2866
+ "module": "./ai-criteria-search"
2896
2867
  }
2897
- }
2898
- ]
2899
- },
2900
- {
2901
- "kind": "javascript-module",
2902
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2903
- "declarations": [
2868
+ },
2904
2869
  {
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`"
2908
- }
2909
- ],
2910
- "exports": [
2870
+ "kind": "js",
2871
+ "name": "foundationAiCriteriaSearchShadowOptions",
2872
+ "declaration": {
2873
+ "name": "foundationAiCriteriaSearchShadowOptions",
2874
+ "module": "./ai-criteria-search"
2875
+ }
2876
+ },
2911
2877
  {
2912
2878
  "kind": "js",
2913
2879
  "name": "foundationAiCriteriaSearchStyles",
2914
2880
  "declaration": {
2915
2881
  "name": "foundationAiCriteriaSearchStyles",
2916
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2882
+ "module": "./ai-criteria-search.styles"
2917
2883
  }
2918
- }
2919
- ]
2920
- },
2921
- {
2922
- "kind": "javascript-module",
2923
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2924
- "declarations": [
2925
- {
2926
- "kind": "variable",
2927
- "name": "foundationAiCriteriaSearchTemplate",
2928
- "type": {
2929
- "text": "ViewTemplate<AiCriteriaSearch>"
2930
- },
2931
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2932
- }
2933
- ],
2934
- "exports": [
2884
+ },
2935
2885
  {
2936
2886
  "kind": "js",
2937
2887
  "name": "foundationAiCriteriaSearchTemplate",
2938
2888
  "declaration": {
2939
2889
  "name": "foundationAiCriteriaSearchTemplate",
2940
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2890
+ "module": "./ai-criteria-search.template"
2891
+ }
2892
+ },
2893
+ {
2894
+ "kind": "js",
2895
+ "name": "*",
2896
+ "declaration": {
2897
+ "name": "*",
2898
+ "package": "./validation/criteria-ir"
2899
+ }
2900
+ },
2901
+ {
2902
+ "kind": "js",
2903
+ "name": "*",
2904
+ "declaration": {
2905
+ "name": "*",
2906
+ "package": "./validation/operator-map"
2907
+ }
2908
+ },
2909
+ {
2910
+ "kind": "js",
2911
+ "name": "*",
2912
+ "declaration": {
2913
+ "name": "*",
2914
+ "package": "./validation/schema-validator"
2941
2915
  }
2942
2916
  }
2943
2917
  ]
2944
2918
  },
2945
2919
  {
2946
2920
  "kind": "javascript-module",
2947
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2921
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2948
2922
  "declarations": [
2949
2923
  {
2950
- "kind": "class",
2951
- "description": "Natural-language criteria search input with AI interpretation.",
2952
- "name": "AiCriteriaSearch",
2953
- "members": [
2924
+ "kind": "function",
2925
+ "name": "formatValidationErrors",
2926
+ "return": {
2927
+ "type": {
2928
+ "text": "string"
2929
+ }
2930
+ },
2931
+ "parameters": [
2954
2932
  {
2955
- "kind": "field",
2956
- "name": "providerRegistry",
2933
+ "name": "errors",
2957
2934
  "type": {
2958
- "text": "AIProviderRegistry"
2935
+ "text": "ValidationError[]"
2959
2936
  }
2960
- },
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": [
2961
2950
  {
2962
- "kind": "field",
2963
- "name": "placeholder",
2951
+ "name": "title",
2964
2952
  "type": {
2965
2953
  "text": "string"
2966
2954
  },
2967
- "default": "'Describe your search criteria in natural language...'"
2955
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2968
2956
  },
2969
2957
  {
2970
- "kind": "field",
2971
- "name": "disabled",
2958
+ "name": "body",
2972
2959
  "type": {
2973
- "text": "boolean"
2974
- }
2960
+ "text": "string"
2961
+ },
2962
+ "description": "Error message to display"
2975
2963
  },
2976
2964
  {
2977
- "kind": "field",
2978
- "name": "inputValue",
2965
+ "name": "tagName",
2979
2966
  "type": {
2980
2967
  "text": "string"
2981
2968
  },
2982
- "default": "''"
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
+ }
2983
3012
  },
3013
+ {
3014
+ "name": "definition",
3015
+ "type": {
3016
+ "text": "FoundationElementDefinition"
3017
+ }
3018
+ }
3019
+ ]
3020
+ }
3021
+ ],
3022
+ "exports": [
3023
+ {
3024
+ "kind": "js",
3025
+ "name": "foundationAiIndicatorStyles",
3026
+ "declaration": {
3027
+ "name": "foundationAiIndicatorStyles",
3028
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3029
+ }
3030
+ }
3031
+ ]
3032
+ },
3033
+ {
3034
+ "kind": "javascript-module",
3035
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3036
+ "declarations": [
3037
+ {
3038
+ "kind": "variable",
3039
+ "name": "foundationAiIndicatorTemplate",
3040
+ "type": {
3041
+ "text": "ViewTemplate<AiIndicator>"
3042
+ },
3043
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3044
+ }
3045
+ ],
3046
+ "exports": [
3047
+ {
3048
+ "kind": "js",
3049
+ "name": "foundationAiIndicatorTemplate",
3050
+ "declaration": {
3051
+ "name": "foundationAiIndicatorTemplate",
3052
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3053
+ }
3054
+ }
3055
+ ]
3056
+ },
3057
+ {
3058
+ "kind": "javascript-module",
3059
+ "path": "src/ai-indicator/ai-indicator.ts",
3060
+ "declarations": [
3061
+ {
3062
+ "kind": "class",
3063
+ "description": "",
3064
+ "name": "AiIndicator",
3065
+ "members": [
2984
3066
  {
2985
3067
  "kind": "field",
2986
- "name": "isInterpreting",
3068
+ "name": "providerRegistry",
2987
3069
  "type": {
2988
- "text": "boolean"
2989
- },
2990
- "default": "false"
3070
+ "text": "AIProviderRegistry"
3071
+ }
2991
3072
  },
2992
3073
  {
2993
3074
  "kind": "field",
2994
- "name": "lastValidCriteria",
3075
+ "name": "aiProvider",
2995
3076
  "type": {
2996
- "text": "string | null"
3077
+ "text": "AIProvider | undefined"
2997
3078
  },
2998
- "default": "null"
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
2999
3082
  },
3000
3083
  {
3001
3084
  "kind": "field",
3002
- "name": "activeGroups",
3085
+ "name": "status",
3003
3086
  "type": {
3004
- "text": "CriteriaGroup[]"
3087
+ "text": "AIStatus | null"
3005
3088
  },
3006
- "default": "[]"
3089
+ "default": "null"
3007
3090
  },
3008
3091
  {
3009
3092
  "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
  ]