@genesislcap/foundation-ui 15.43.0 → 15.45.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.
@@ -1493,37 +1493,6 @@
1493
1493
  }
1494
1494
  ]
1495
1495
  },
1496
- {
1497
- "kind": "javascript-module",
1498
- "path": "src/_config/index.ts",
1499
- "declarations": [],
1500
- "exports": [
1501
- {
1502
- "kind": "js",
1503
- "name": "*",
1504
- "declaration": {
1505
- "name": "*",
1506
- "package": "./styles"
1507
- }
1508
- },
1509
- {
1510
- "kind": "js",
1511
- "name": "*",
1512
- "declaration": {
1513
- "name": "*",
1514
- "package": "./tokens"
1515
- }
1516
- },
1517
- {
1518
- "kind": "js",
1519
- "name": "*",
1520
- "declaration": {
1521
- "name": "*",
1522
- "package": "./values"
1523
- }
1524
- }
1525
- ]
1526
- },
1527
1496
  {
1528
1497
  "kind": "javascript-module",
1529
1498
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1918,6 +1887,37 @@
1918
1887
  }
1919
1888
  ]
1920
1889
  },
1890
+ {
1891
+ "kind": "javascript-module",
1892
+ "path": "src/_config/index.ts",
1893
+ "declarations": [],
1894
+ "exports": [
1895
+ {
1896
+ "kind": "js",
1897
+ "name": "*",
1898
+ "declaration": {
1899
+ "name": "*",
1900
+ "package": "./styles"
1901
+ }
1902
+ },
1903
+ {
1904
+ "kind": "js",
1905
+ "name": "*",
1906
+ "declaration": {
1907
+ "name": "*",
1908
+ "package": "./tokens"
1909
+ }
1910
+ },
1911
+ {
1912
+ "kind": "js",
1913
+ "name": "*",
1914
+ "declaration": {
1915
+ "name": "*",
1916
+ "package": "./values"
1917
+ }
1918
+ }
1919
+ ]
1920
+ },
1921
1921
  {
1922
1922
  "kind": "javascript-module",
1923
1923
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2491,275 +2491,208 @@
2491
2491
  },
2492
2492
  {
2493
2493
  "kind": "javascript-module",
2494
- "path": "src/accordion/accordion.styles.ts",
2494
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2495
2495
  "declarations": [
2496
2496
  {
2497
- "kind": "function",
2498
- "name": "foundationAccordionStyles",
2499
- "return": {
2500
- "type": {
2501
- "text": "ElementStyles"
2502
- }
2503
- },
2504
- "parameters": [
2505
- {
2506
- "name": "context",
2507
- "type": {
2508
- "text": "ElementDefinitionContext"
2509
- }
2510
- },
2511
- {
2512
- "name": "definition",
2513
- "type": {
2514
- "text": "FoundationElementDefinition"
2515
- }
2516
- }
2517
- ]
2497
+ "kind": "variable",
2498
+ "name": "foundationAiCriteriaSearchStyles",
2499
+ "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`"
2518
2500
  }
2519
2501
  ],
2520
2502
  "exports": [
2521
2503
  {
2522
2504
  "kind": "js",
2523
- "name": "foundationAccordionStyles",
2505
+ "name": "foundationAiCriteriaSearchStyles",
2524
2506
  "declaration": {
2525
- "name": "foundationAccordionStyles",
2526
- "module": "src/accordion/accordion.styles.ts"
2507
+ "name": "foundationAiCriteriaSearchStyles",
2508
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2527
2509
  }
2528
2510
  }
2529
2511
  ]
2530
2512
  },
2531
2513
  {
2532
2514
  "kind": "javascript-module",
2533
- "path": "src/accordion/accordion.template.ts",
2515
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2534
2516
  "declarations": [
2535
2517
  {
2536
- "kind": "function",
2537
- "name": "foundationAccordionTemplate",
2538
- "return": {
2539
- "type": {
2540
- "text": "ViewTemplate<Accordion>"
2541
- }
2518
+ "kind": "variable",
2519
+ "name": "foundationAiCriteriaSearchTemplate",
2520
+ "type": {
2521
+ "text": "ViewTemplate<AiCriteriaSearch>"
2542
2522
  },
2543
- "parameters": [
2544
- {
2545
- "name": "context",
2546
- "type": {
2547
- "text": "ElementDefinitionContext"
2548
- }
2549
- },
2550
- {
2551
- "name": "definition",
2552
- "type": {
2553
- "text": "FoundationElementDefinition"
2554
- }
2555
- }
2556
- ]
2523
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2557
2524
  }
2558
2525
  ],
2559
2526
  "exports": [
2560
2527
  {
2561
2528
  "kind": "js",
2562
- "name": "foundationAccordionTemplate",
2529
+ "name": "foundationAiCriteriaSearchTemplate",
2563
2530
  "declaration": {
2564
- "name": "foundationAccordionTemplate",
2565
- "module": "src/accordion/accordion.template.ts"
2531
+ "name": "foundationAiCriteriaSearchTemplate",
2532
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2566
2533
  }
2567
2534
  }
2568
2535
  ]
2569
2536
  },
2570
2537
  {
2571
2538
  "kind": "javascript-module",
2572
- "path": "src/accordion/accordion.ts",
2539
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2573
2540
  "declarations": [
2574
2541
  {
2575
2542
  "kind": "class",
2576
- "description": "",
2577
- "name": "Accordion",
2578
- "superclass": {
2579
- "name": "FASTAccordion",
2580
- "package": "@microsoft/fast-foundation"
2581
- },
2582
- "tagName": "%%prefix%%-accordion",
2583
- "customElement": true,
2584
- "attributes": [
2543
+ "description": "Natural-language criteria search input with AI interpretation.",
2544
+ "name": "AiCriteriaSearch",
2545
+ "members": [
2585
2546
  {
2586
- "name": "expand-mode",
2547
+ "kind": "field",
2548
+ "name": "providerRegistry",
2587
2549
  "type": {
2588
- "text": "AccordionExpandMode"
2589
- },
2590
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2591
- "fieldName": "expandmode",
2592
- "inheritedFrom": {
2593
- "name": "Accordion",
2594
- "module": "src/accordion/accordion.ts"
2550
+ "text": "AIProviderRegistry"
2595
2551
  }
2596
- }
2597
- ],
2598
- "members": [
2552
+ },
2599
2553
  {
2600
2554
  "kind": "field",
2601
- "name": "expandmode",
2555
+ "name": "placeholder",
2602
2556
  "type": {
2603
- "text": "AccordionExpandMode"
2557
+ "text": "string"
2604
2558
  },
2605
- "privacy": "public",
2606
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2607
- "inheritedFrom": {
2608
- "name": "Accordion",
2609
- "module": "src/accordion/accordion.ts"
2610
- }
2559
+ "default": "'Describe your search criteria in natural language...'"
2611
2560
  },
2612
2561
  {
2613
2562
  "kind": "field",
2614
- "name": "activeid",
2563
+ "name": "disabled",
2615
2564
  "type": {
2616
- "text": "string | null"
2617
- },
2618
- "privacy": "private",
2619
- "inheritedFrom": {
2620
- "name": "Accordion",
2621
- "module": "src/accordion/accordion.ts"
2565
+ "text": "boolean"
2622
2566
  }
2623
2567
  },
2624
2568
  {
2625
2569
  "kind": "field",
2626
- "name": "activeItemIndex",
2570
+ "name": "inputValue",
2627
2571
  "type": {
2628
- "text": "number"
2572
+ "text": "string"
2629
2573
  },
2630
- "privacy": "private",
2631
- "default": "0",
2632
- "inheritedFrom": {
2633
- "name": "Accordion",
2634
- "module": "src/accordion/accordion.ts"
2635
- }
2574
+ "default": "''"
2636
2575
  },
2637
2576
  {
2638
2577
  "kind": "field",
2639
- "name": "accordionIds",
2578
+ "name": "isInterpreting",
2640
2579
  "type": {
2641
- "text": "Array<string | null>"
2580
+ "text": "boolean"
2642
2581
  },
2643
- "privacy": "private",
2644
- "inheritedFrom": {
2645
- "name": "Accordion",
2646
- "module": "src/accordion/accordion.ts"
2647
- }
2582
+ "default": "false"
2648
2583
  },
2649
2584
  {
2650
2585
  "kind": "field",
2651
- "name": "change",
2652
- "privacy": "private",
2653
- "inheritedFrom": {
2654
- "name": "Accordion",
2655
- "module": "src/accordion/accordion.ts"
2656
- }
2586
+ "name": "lastValidCriteria",
2587
+ "type": {
2588
+ "text": "string | null"
2589
+ },
2590
+ "default": "null"
2657
2591
  },
2658
2592
  {
2659
- "kind": "method",
2660
- "name": "findExpandedItem",
2661
- "privacy": "private",
2662
- "return": {
2663
- "type": {
2664
- "text": "AccordionItem | null"
2665
- }
2593
+ "kind": "field",
2594
+ "name": "activeGroups",
2595
+ "type": {
2596
+ "text": "CriteriaGroup[]"
2666
2597
  },
2667
- "inheritedFrom": {
2668
- "name": "Accordion",
2669
- "module": "src/accordion/accordion.ts"
2670
- }
2598
+ "default": "[]"
2671
2599
  },
2672
2600
  {
2673
2601
  "kind": "field",
2674
- "name": "setItems",
2675
- "privacy": "private",
2676
- "inheritedFrom": {
2677
- "name": "Accordion",
2678
- "module": "src/accordion/accordion.ts"
2679
- }
2602
+ "name": "showingChips",
2603
+ "type": {
2604
+ "text": "boolean"
2605
+ },
2606
+ "default": "false"
2680
2607
  },
2681
2608
  {
2682
- "kind": "method",
2683
- "name": "resetItems",
2684
- "privacy": "private",
2685
- "return": {
2686
- "type": {
2687
- "text": "void"
2688
- }
2609
+ "kind": "field",
2610
+ "name": "fieldMetadata",
2611
+ "type": {
2612
+ "text": "MetadataDetail[] | string[]"
2689
2613
  },
2690
- "inheritedFrom": {
2691
- "name": "Accordion",
2692
- "module": "src/accordion/accordion.ts"
2693
- }
2614
+ "default": "[]"
2694
2615
  },
2695
2616
  {
2696
2617
  "kind": "field",
2697
- "name": "removeItemListeners",
2698
- "privacy": "private",
2699
- "inheritedFrom": {
2700
- "name": "Accordion",
2701
- "module": "src/accordion/accordion.ts"
2702
- }
2618
+ "name": "isRecording",
2619
+ "type": {
2620
+ "text": "boolean"
2621
+ },
2622
+ "default": "false"
2703
2623
  },
2704
2624
  {
2705
2625
  "kind": "field",
2706
- "name": "activeItemChange",
2626
+ "name": "textAreaRef",
2627
+ "type": {
2628
+ "text": "HTMLTextAreaElement"
2629
+ },
2630
+ "privacy": "public"
2631
+ },
2632
+ {
2633
+ "kind": "field",
2634
+ "name": "stopRecording",
2635
+ "type": {
2636
+ "text": "(() => void) | null"
2637
+ },
2707
2638
  "privacy": "private",
2708
- "inheritedFrom": {
2709
- "name": "Accordion",
2710
- "module": "src/accordion/accordion.ts"
2711
- }
2639
+ "default": "null"
2712
2640
  },
2713
2641
  {
2714
- "kind": "method",
2715
- "name": "getItemIds",
2642
+ "kind": "field",
2643
+ "name": "speechApplyDebounceTimer",
2644
+ "type": {
2645
+ "text": "ReturnType<typeof setTimeout> | null"
2646
+ },
2716
2647
  "privacy": "private",
2717
- "return": {
2718
- "type": {
2719
- "text": "Array<string | null>"
2720
- }
2648
+ "default": "null"
2649
+ },
2650
+ {
2651
+ "kind": "field",
2652
+ "name": "speechAvailable",
2653
+ "type": {
2654
+ "text": "boolean"
2721
2655
  },
2722
- "inheritedFrom": {
2723
- "name": "Accordion",
2724
- "module": "src/accordion/accordion.ts"
2725
- }
2656
+ "readonly": true
2657
+ },
2658
+ {
2659
+ "kind": "field",
2660
+ "name": "criteriaChips",
2661
+ "type": {
2662
+ "text": "CriteriaChip[]"
2663
+ },
2664
+ "readonly": true
2726
2665
  },
2727
2666
  {
2728
2667
  "kind": "method",
2729
- "name": "isSingleExpandMode",
2668
+ "name": "getFieldLabel",
2730
2669
  "privacy": "private",
2731
2670
  "return": {
2732
2671
  "type": {
2733
- "text": "boolean"
2672
+ "text": "string"
2734
2673
  }
2735
2674
  },
2736
- "inheritedFrom": {
2737
- "name": "Accordion",
2738
- "module": "src/accordion/accordion.ts"
2739
- }
2740
- },
2741
- {
2742
- "kind": "field",
2743
- "name": "handleItemKeyDown",
2744
- "privacy": "private",
2745
- "inheritedFrom": {
2746
- "name": "Accordion",
2747
- "module": "src/accordion/accordion.ts"
2748
- }
2675
+ "parameters": [
2676
+ {
2677
+ "name": "fieldName",
2678
+ "type": {
2679
+ "text": "string"
2680
+ }
2681
+ }
2682
+ ]
2749
2683
  },
2750
2684
  {
2751
- "kind": "field",
2752
- "name": "handleItemFocus",
2753
- "privacy": "private",
2754
- "inheritedFrom": {
2755
- "name": "Accordion",
2756
- "module": "src/accordion/accordion.ts"
2685
+ "kind": "method",
2686
+ "name": "toggleCriteriaView",
2687
+ "return": {
2688
+ "type": {
2689
+ "text": "void"
2690
+ }
2757
2691
  }
2758
2692
  },
2759
2693
  {
2760
2694
  "kind": "method",
2761
- "name": "adjust",
2762
- "privacy": "private",
2695
+ "name": "removeChip",
2763
2696
  "return": {
2764
2697
  "type": {
2765
2698
  "text": "void"
@@ -2767,31 +2700,49 @@
2767
2700
  },
2768
2701
  "parameters": [
2769
2702
  {
2770
- "name": "adjustment",
2703
+ "name": "groupIndex",
2704
+ "type": {
2705
+ "text": "number"
2706
+ }
2707
+ },
2708
+ {
2709
+ "name": "clauseIndex",
2771
2710
  "type": {
2772
2711
  "text": "number"
2773
2712
  }
2774
2713
  }
2775
- ],
2776
- "inheritedFrom": {
2777
- "name": "Accordion",
2778
- "module": "src/accordion/accordion.ts"
2779
- }
2714
+ ]
2780
2715
  },
2781
2716
  {
2782
2717
  "kind": "method",
2783
- "name": "focusItem",
2784
- "privacy": "private",
2718
+ "name": "clearChips",
2785
2719
  "return": {
2786
2720
  "type": {
2787
2721
  "text": "void"
2788
2722
  }
2789
- },
2790
- "inheritedFrom": {
2791
- "name": "Accordion",
2792
- "module": "src/accordion/accordion.ts"
2793
2723
  }
2794
2724
  },
2725
+ {
2726
+ "kind": "method",
2727
+ "name": "handleSubmit"
2728
+ },
2729
+ {
2730
+ "kind": "method",
2731
+ "name": "handleBlur"
2732
+ },
2733
+ {
2734
+ "kind": "method",
2735
+ "name": "clear"
2736
+ },
2737
+ {
2738
+ "kind": "method",
2739
+ "name": "toggleSpeechInput"
2740
+ },
2741
+ {
2742
+ "kind": "method",
2743
+ "name": "clearSpeechApplyDebounce",
2744
+ "privacy": "private"
2745
+ },
2795
2746
  {
2796
2747
  "kind": "field",
2797
2748
  "name": "_presentation",
@@ -2906,26 +2857,48 @@
2906
2857
  ],
2907
2858
  "events": [
2908
2859
  {
2909
- "description": "Fires a custom 'change' event when the active item changes",
2910
- "name": "change",
2911
- "inheritedFrom": {
2912
- "name": "Accordion",
2913
- "module": "src/accordion/accordion.ts"
2914
- }
2860
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2861
+ "name": "criteria-changed"
2862
+ },
2863
+ {
2864
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2865
+ "name": "validation-errors"
2915
2866
  }
2916
- ]
2867
+ ],
2868
+ "attributes": [
2869
+ {
2870
+ "name": "placeholder",
2871
+ "type": {
2872
+ "text": "string"
2873
+ },
2874
+ "default": "'Describe your search criteria in natural language...'",
2875
+ "fieldName": "placeholder"
2876
+ },
2877
+ {
2878
+ "type": {
2879
+ "text": "boolean"
2880
+ },
2881
+ "fieldName": "disabled"
2882
+ }
2883
+ ],
2884
+ "superclass": {
2885
+ "name": "FoundationElement",
2886
+ "package": "@microsoft/fast-foundation"
2887
+ },
2888
+ "tagName": "%%prefix%%-ai-criteria-search",
2889
+ "customElement": true
2917
2890
  },
2918
2891
  {
2919
2892
  "kind": "variable",
2920
- "name": "foundationAccordionShadowOptions",
2893
+ "name": "foundationAiCriteriaSearchShadowOptions",
2921
2894
  "type": {
2922
2895
  "text": "ShadowRootInit"
2923
2896
  },
2924
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2897
+ "default": "undefined"
2925
2898
  },
2926
2899
  {
2927
2900
  "kind": "variable",
2928
- "name": "defaultAccordionConfig",
2901
+ "name": "defaultAiCriteriaSearchConfig",
2929
2902
  "type": {
2930
2903
  "text": "object"
2931
2904
  },
@@ -2933,188 +2906,298 @@
2933
2906
  },
2934
2907
  {
2935
2908
  "kind": "variable",
2936
- "name": "foundationAccordion",
2937
- "description": "The Foundation Accordion",
2938
- "privacy": "public"
2909
+ "name": "foundationAiCriteriaSearch"
2939
2910
  }
2940
2911
  ],
2941
2912
  "exports": [
2942
2913
  {
2943
2914
  "kind": "js",
2944
- "name": "Accordion",
2915
+ "name": "AiCriteriaSearch",
2945
2916
  "declaration": {
2946
- "name": "Accordion",
2947
- "module": "src/accordion/accordion.ts"
2917
+ "name": "AiCriteriaSearch",
2918
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2948
2919
  }
2949
2920
  },
2950
2921
  {
2951
2922
  "kind": "js",
2952
- "name": "foundationAccordionShadowOptions",
2923
+ "name": "foundationAiCriteriaSearchShadowOptions",
2953
2924
  "declaration": {
2954
- "name": "foundationAccordionShadowOptions",
2955
- "module": "src/accordion/accordion.ts"
2925
+ "name": "foundationAiCriteriaSearchShadowOptions",
2926
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2956
2927
  }
2957
2928
  },
2958
2929
  {
2959
2930
  "kind": "js",
2960
- "name": "defaultAccordionConfig",
2931
+ "name": "defaultAiCriteriaSearchConfig",
2961
2932
  "declaration": {
2962
- "name": "defaultAccordionConfig",
2963
- "module": "src/accordion/accordion.ts"
2933
+ "name": "defaultAiCriteriaSearchConfig",
2934
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2964
2935
  }
2965
2936
  },
2966
2937
  {
2967
2938
  "kind": "js",
2968
- "name": "foundationAccordion",
2939
+ "name": "foundationAiCriteriaSearch",
2969
2940
  "declaration": {
2970
- "name": "foundationAccordion",
2971
- "module": "src/accordion/accordion.ts"
2941
+ "name": "foundationAiCriteriaSearch",
2942
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2972
2943
  }
2973
2944
  }
2974
2945
  ]
2975
2946
  },
2976
2947
  {
2977
2948
  "kind": "javascript-module",
2978
- "path": "src/accordion/index.ts",
2949
+ "path": "src/ai-criteria-search/index.ts",
2979
2950
  "declarations": [],
2980
2951
  "exports": [
2981
2952
  {
2982
2953
  "kind": "js",
2983
- "name": "*",
2954
+ "name": "AiCriteriaSearch",
2984
2955
  "declaration": {
2985
- "name": "*",
2986
- "package": "./accordion.template"
2956
+ "name": "AiCriteriaSearch",
2957
+ "module": "./ai-criteria-search"
2987
2958
  }
2988
2959
  },
2989
2960
  {
2990
2961
  "kind": "js",
2991
- "name": "*",
2962
+ "name": "defaultAiCriteriaSearchConfig",
2992
2963
  "declaration": {
2993
- "name": "*",
2994
- "package": "./accordion.styles"
2964
+ "name": "defaultAiCriteriaSearchConfig",
2965
+ "module": "./ai-criteria-search"
2995
2966
  }
2996
2967
  },
2997
2968
  {
2998
2969
  "kind": "js",
2999
- "name": "*",
2970
+ "name": "foundationAiCriteriaSearch",
3000
2971
  "declaration": {
3001
- "name": "*",
3002
- "package": "./accordion"
2972
+ "name": "foundationAiCriteriaSearch",
2973
+ "module": "./ai-criteria-search"
3003
2974
  }
3004
- }
3005
- ]
3006
- },
3007
- {
3008
- "kind": "javascript-module",
3009
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
3010
- "declarations": [
2975
+ },
3011
2976
  {
3012
- "kind": "variable",
3013
- "name": "foundationAiCriteriaSearchStyles",
3014
- "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`"
3015
- }
3016
- ],
3017
- "exports": [
2977
+ "kind": "js",
2978
+ "name": "foundationAiCriteriaSearchShadowOptions",
2979
+ "declaration": {
2980
+ "name": "foundationAiCriteriaSearchShadowOptions",
2981
+ "module": "./ai-criteria-search"
2982
+ }
2983
+ },
3018
2984
  {
3019
2985
  "kind": "js",
3020
2986
  "name": "foundationAiCriteriaSearchStyles",
3021
2987
  "declaration": {
3022
2988
  "name": "foundationAiCriteriaSearchStyles",
3023
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2989
+ "module": "./ai-criteria-search.styles"
3024
2990
  }
3025
- }
3026
- ]
3027
- },
3028
- {
3029
- "kind": "javascript-module",
3030
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3031
- "declarations": [
3032
- {
3033
- "kind": "variable",
3034
- "name": "foundationAiCriteriaSearchTemplate",
3035
- "type": {
3036
- "text": "ViewTemplate<AiCriteriaSearch>"
3037
- },
3038
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3039
- }
3040
- ],
3041
- "exports": [
2991
+ },
3042
2992
  {
3043
2993
  "kind": "js",
3044
2994
  "name": "foundationAiCriteriaSearchTemplate",
3045
2995
  "declaration": {
3046
2996
  "name": "foundationAiCriteriaSearchTemplate",
3047
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2997
+ "module": "./ai-criteria-search.template"
2998
+ }
2999
+ },
3000
+ {
3001
+ "kind": "js",
3002
+ "name": "*",
3003
+ "declaration": {
3004
+ "name": "*",
3005
+ "package": "./validation/criteria-ir"
3006
+ }
3007
+ },
3008
+ {
3009
+ "kind": "js",
3010
+ "name": "*",
3011
+ "declaration": {
3012
+ "name": "*",
3013
+ "package": "./validation/operator-map"
3014
+ }
3015
+ },
3016
+ {
3017
+ "kind": "js",
3018
+ "name": "*",
3019
+ "declaration": {
3020
+ "name": "*",
3021
+ "package": "./validation/schema-validator"
3048
3022
  }
3049
3023
  }
3050
3024
  ]
3051
3025
  },
3052
3026
  {
3053
3027
  "kind": "javascript-module",
3054
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
3028
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3055
3029
  "declarations": [
3056
3030
  {
3057
- "kind": "class",
3058
- "description": "Natural-language criteria search input with AI interpretation.",
3059
- "name": "AiCriteriaSearch",
3060
- "members": [
3031
+ "kind": "function",
3032
+ "name": "formatValidationErrors",
3033
+ "return": {
3034
+ "type": {
3035
+ "text": "string"
3036
+ }
3037
+ },
3038
+ "parameters": [
3061
3039
  {
3062
- "kind": "field",
3063
- "name": "providerRegistry",
3040
+ "name": "errors",
3064
3041
  "type": {
3065
- "text": "AIProviderRegistry"
3042
+ "text": "ValidationError[]"
3066
3043
  }
3067
- },
3044
+ }
3045
+ ],
3046
+ "description": "Formats validation errors into a user-friendly message."
3047
+ },
3048
+ {
3049
+ "kind": "function",
3050
+ "name": "showCriteriaError",
3051
+ "return": {
3052
+ "type": {
3053
+ "text": "void"
3054
+ }
3055
+ },
3056
+ "parameters": [
3068
3057
  {
3069
- "kind": "field",
3070
- "name": "placeholder",
3058
+ "name": "title",
3071
3059
  "type": {
3072
3060
  "text": "string"
3073
3061
  },
3074
- "default": "'Describe your search criteria in natural language...'"
3062
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3075
3063
  },
3076
3064
  {
3077
- "kind": "field",
3078
- "name": "disabled",
3065
+ "name": "body",
3079
3066
  "type": {
3080
- "text": "boolean"
3081
- }
3067
+ "text": "string"
3068
+ },
3069
+ "description": "Error message to display"
3082
3070
  },
3083
3071
  {
3084
- "kind": "field",
3085
- "name": "inputValue",
3072
+ "name": "tagName",
3086
3073
  "type": {
3087
3074
  "text": "string"
3088
3075
  },
3089
- "default": "''"
3076
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3077
+ }
3078
+ ],
3079
+ "description": "Shows a criteria error as a toast notification."
3080
+ }
3081
+ ],
3082
+ "exports": [
3083
+ {
3084
+ "kind": "js",
3085
+ "name": "formatValidationErrors",
3086
+ "declaration": {
3087
+ "name": "formatValidationErrors",
3088
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3089
+ }
3090
+ },
3091
+ {
3092
+ "kind": "js",
3093
+ "name": "showCriteriaError",
3094
+ "declaration": {
3095
+ "name": "showCriteriaError",
3096
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3097
+ }
3098
+ }
3099
+ ]
3100
+ },
3101
+ {
3102
+ "kind": "javascript-module",
3103
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3104
+ "declarations": [
3105
+ {
3106
+ "kind": "function",
3107
+ "name": "foundationAiIndicatorStyles",
3108
+ "return": {
3109
+ "type": {
3110
+ "text": "ElementStyles"
3111
+ }
3112
+ },
3113
+ "parameters": [
3114
+ {
3115
+ "name": "context",
3116
+ "type": {
3117
+ "text": "ElementDefinitionContext"
3118
+ }
3090
3119
  },
3120
+ {
3121
+ "name": "definition",
3122
+ "type": {
3123
+ "text": "FoundationElementDefinition"
3124
+ }
3125
+ }
3126
+ ]
3127
+ }
3128
+ ],
3129
+ "exports": [
3130
+ {
3131
+ "kind": "js",
3132
+ "name": "foundationAiIndicatorStyles",
3133
+ "declaration": {
3134
+ "name": "foundationAiIndicatorStyles",
3135
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3136
+ }
3137
+ }
3138
+ ]
3139
+ },
3140
+ {
3141
+ "kind": "javascript-module",
3142
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3143
+ "declarations": [
3144
+ {
3145
+ "kind": "variable",
3146
+ "name": "foundationAiIndicatorTemplate",
3147
+ "type": {
3148
+ "text": "ViewTemplate<AiIndicator>"
3149
+ },
3150
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3151
+ }
3152
+ ],
3153
+ "exports": [
3154
+ {
3155
+ "kind": "js",
3156
+ "name": "foundationAiIndicatorTemplate",
3157
+ "declaration": {
3158
+ "name": "foundationAiIndicatorTemplate",
3159
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3160
+ }
3161
+ }
3162
+ ]
3163
+ },
3164
+ {
3165
+ "kind": "javascript-module",
3166
+ "path": "src/ai-indicator/ai-indicator.ts",
3167
+ "declarations": [
3168
+ {
3169
+ "kind": "class",
3170
+ "description": "",
3171
+ "name": "AiIndicator",
3172
+ "members": [
3091
3173
  {
3092
3174
  "kind": "field",
3093
- "name": "isInterpreting",
3175
+ "name": "providerRegistry",
3094
3176
  "type": {
3095
- "text": "boolean"
3096
- },
3097
- "default": "false"
3177
+ "text": "AIProviderRegistry"
3178
+ }
3098
3179
  },
3099
3180
  {
3100
3181
  "kind": "field",
3101
- "name": "lastValidCriteria",
3182
+ "name": "aiProvider",
3102
3183
  "type": {
3103
- "text": "string | null"
3184
+ "text": "AIProvider | undefined"
3104
3185
  },
3105
- "default": "null"
3186
+ "privacy": "private",
3187
+ "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.",
3188
+ "readonly": true
3106
3189
  },
3107
3190
  {
3108
3191
  "kind": "field",
3109
- "name": "activeGroups",
3192
+ "name": "status",
3110
3193
  "type": {
3111
- "text": "CriteriaGroup[]"
3194
+ "text": "AIStatus | null"
3112
3195
  },
3113
- "default": "[]"
3196
+ "default": "null"
3114
3197
  },
3115
3198
  {
3116
3199
  "kind": "field",
3117
- "name": "showingChips",
3200
+ "name": "open",
3118
3201
  "type": {
3119
3202
  "text": "boolean"
3120
3203
  },
@@ -3122,15 +3205,15 @@
3122
3205
  },
3123
3206
  {
3124
3207
  "kind": "field",
3125
- "name": "fieldMetadata",
3208
+ "name": "state",
3126
3209
  "type": {
3127
- "text": "MetadataDetail[] | string[]"
3210
+ "text": "AIIndicatorState"
3128
3211
  },
3129
- "default": "[]"
3212
+ "default": "'none'"
3130
3213
  },
3131
3214
  {
3132
3215
  "kind": "field",
3133
- "name": "isRecording",
3216
+ "name": "isInstalling",
3134
3217
  "type": {
3135
3218
  "text": "boolean"
3136
3219
  },
@@ -3138,33 +3221,29 @@
3138
3221
  },
3139
3222
  {
3140
3223
  "kind": "field",
3141
- "name": "textAreaRef",
3224
+ "name": "pollTimer",
3142
3225
  "type": {
3143
- "text": "HTMLTextAreaElement"
3226
+ "text": "ReturnType<typeof setInterval> | null"
3144
3227
  },
3145
- "privacy": "public"
3228
+ "privacy": "private",
3229
+ "default": "null"
3146
3230
  },
3147
3231
  {
3148
3232
  "kind": "field",
3149
- "name": "stopRecording",
3150
- "type": {
3151
- "text": "(() => void) | null"
3152
- },
3153
- "privacy": "private",
3154
- "default": "null"
3233
+ "name": "clickOutside",
3234
+ "privacy": "private"
3155
3235
  },
3156
3236
  {
3157
3237
  "kind": "field",
3158
- "name": "speechApplyDebounceTimer",
3238
+ "name": "chromeStatusLabel",
3159
3239
  "type": {
3160
- "text": "ReturnType<typeof setTimeout> | null"
3240
+ "text": "string | null"
3161
3241
  },
3162
- "privacy": "private",
3163
- "default": "null"
3242
+ "readonly": true
3164
3243
  },
3165
3244
  {
3166
3245
  "kind": "field",
3167
- "name": "speechAvailable",
3246
+ "name": "canInstall",
3168
3247
  "type": {
3169
3248
  "text": "boolean"
3170
3249
  },
@@ -3172,65 +3251,69 @@
3172
3251
  },
3173
3252
  {
3174
3253
  "kind": "field",
3175
- "name": "criteriaChips",
3254
+ "name": "isDownloading",
3176
3255
  "type": {
3177
- "text": "CriteriaChip[]"
3256
+ "text": "boolean"
3178
3257
  },
3179
3258
  "readonly": true
3180
3259
  },
3181
3260
  {
3182
3261
  "kind": "method",
3183
- "name": "getFieldLabel",
3184
- "privacy": "private",
3262
+ "name": "openChanged",
3185
3263
  "return": {
3186
3264
  "type": {
3187
- "text": "string"
3265
+ "text": "void"
3188
3266
  }
3189
- },
3267
+ }
3268
+ },
3269
+ {
3270
+ "kind": "method",
3271
+ "name": "handleClickOutside",
3272
+ "privacy": "private",
3190
3273
  "parameters": [
3191
3274
  {
3192
- "name": "fieldName",
3275
+ "name": "event",
3193
3276
  "type": {
3194
- "text": "string"
3277
+ "text": "MouseEvent"
3195
3278
  }
3196
3279
  }
3197
3280
  ]
3198
3281
  },
3199
3282
  {
3200
3283
  "kind": "method",
3201
- "name": "toggleCriteriaView",
3284
+ "name": "toggleDropdown"
3285
+ },
3286
+ {
3287
+ "kind": "method",
3288
+ "name": "refreshStatus",
3202
3289
  "return": {
3203
3290
  "type": {
3204
- "text": "void"
3291
+ "text": "Promise<void>"
3205
3292
  }
3206
3293
  }
3207
3294
  },
3208
3295
  {
3209
3296
  "kind": "method",
3210
- "name": "removeChip",
3297
+ "name": "deriveState",
3298
+ "privacy": "private",
3211
3299
  "return": {
3212
3300
  "type": {
3213
- "text": "void"
3301
+ "text": "AIIndicatorState"
3214
3302
  }
3215
3303
  },
3216
3304
  "parameters": [
3217
3305
  {
3218
- "name": "groupIndex",
3219
- "type": {
3220
- "text": "number"
3221
- }
3222
- },
3223
- {
3224
- "name": "clauseIndex",
3306
+ "name": "s",
3225
3307
  "type": {
3226
- "text": "number"
3308
+ "text": "AIStatus | null"
3227
3309
  }
3228
3310
  }
3229
3311
  ]
3230
3312
  },
3231
3313
  {
3232
3314
  "kind": "method",
3233
- "name": "clearChips",
3315
+ "name": "maybeStartPolling",
3316
+ "privacy": "private",
3234
3317
  "return": {
3235
3318
  "type": {
3236
3319
  "text": "void"
@@ -3239,24 +3322,32 @@
3239
3322
  },
3240
3323
  {
3241
3324
  "kind": "method",
3242
- "name": "handleSubmit"
3243
- },
3244
- {
3245
- "kind": "method",
3246
- "name": "handleBlur"
3247
- },
3248
- {
3249
- "kind": "method",
3250
- "name": "clear"
3325
+ "name": "startPolling",
3326
+ "privacy": "private",
3327
+ "return": {
3328
+ "type": {
3329
+ "text": "void"
3330
+ }
3331
+ }
3251
3332
  },
3252
3333
  {
3253
3334
  "kind": "method",
3254
- "name": "toggleSpeechInput"
3335
+ "name": "stopPolling",
3336
+ "privacy": "private",
3337
+ "return": {
3338
+ "type": {
3339
+ "text": "void"
3340
+ }
3341
+ }
3255
3342
  },
3256
3343
  {
3257
3344
  "kind": "method",
3258
- "name": "clearSpeechApplyDebounce",
3259
- "privacy": "private"
3345
+ "name": "onInstall",
3346
+ "return": {
3347
+ "type": {
3348
+ "text": "Promise<void>"
3349
+ }
3350
+ }
3260
3351
  },
3261
3352
  {
3262
3353
  "kind": "field",
@@ -3370,259 +3461,141 @@
3370
3461
  }
3371
3462
  }
3372
3463
  ],
3373
- "events": [
3374
- {
3375
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3376
- "name": "criteria-changed"
3377
- },
3378
- {
3379
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3380
- "name": "validation-errors"
3381
- }
3382
- ],
3383
- "attributes": [
3384
- {
3385
- "name": "placeholder",
3386
- "type": {
3387
- "text": "string"
3388
- },
3389
- "default": "'Describe your search criteria in natural language...'",
3390
- "fieldName": "placeholder"
3391
- },
3392
- {
3393
- "type": {
3394
- "text": "boolean"
3395
- },
3396
- "fieldName": "disabled"
3397
- }
3398
- ],
3399
3464
  "superclass": {
3400
- "name": "FoundationElement",
3401
- "package": "@microsoft/fast-foundation"
3402
- },
3403
- "tagName": "%%prefix%%-ai-criteria-search",
3404
- "customElement": true
3405
- },
3406
- {
3407
- "kind": "variable",
3408
- "name": "foundationAiCriteriaSearchShadowOptions",
3409
- "type": {
3410
- "text": "ShadowRootInit"
3411
- },
3412
- "default": "undefined"
3413
- },
3414
- {
3415
- "kind": "variable",
3416
- "name": "defaultAiCriteriaSearchConfig",
3417
- "type": {
3418
- "text": "object"
3419
- },
3420
- "default": "{}"
3421
- },
3422
- {
3423
- "kind": "variable",
3424
- "name": "foundationAiCriteriaSearch"
3425
- }
3426
- ],
3427
- "exports": [
3428
- {
3429
- "kind": "js",
3430
- "name": "AiCriteriaSearch",
3431
- "declaration": {
3432
- "name": "AiCriteriaSearch",
3433
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3434
- }
3435
- },
3436
- {
3437
- "kind": "js",
3438
- "name": "foundationAiCriteriaSearchShadowOptions",
3439
- "declaration": {
3440
- "name": "foundationAiCriteriaSearchShadowOptions",
3441
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3442
- }
3465
+ "name": "FoundationElement",
3466
+ "package": "@microsoft/fast-foundation"
3467
+ },
3468
+ "tagName": "%%prefix%%-ai-indicator",
3469
+ "customElement": true
3443
3470
  },
3471
+ {
3472
+ "kind": "variable",
3473
+ "name": "foundationAiIndicator"
3474
+ }
3475
+ ],
3476
+ "exports": [
3444
3477
  {
3445
3478
  "kind": "js",
3446
- "name": "defaultAiCriteriaSearchConfig",
3479
+ "name": "AiIndicator",
3447
3480
  "declaration": {
3448
- "name": "defaultAiCriteriaSearchConfig",
3449
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3481
+ "name": "AiIndicator",
3482
+ "module": "src/ai-indicator/ai-indicator.ts"
3450
3483
  }
3451
3484
  },
3452
3485
  {
3453
3486
  "kind": "js",
3454
- "name": "foundationAiCriteriaSearch",
3487
+ "name": "foundationAiIndicator",
3455
3488
  "declaration": {
3456
- "name": "foundationAiCriteriaSearch",
3457
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3489
+ "name": "foundationAiIndicator",
3490
+ "module": "src/ai-indicator/ai-indicator.ts"
3458
3491
  }
3459
3492
  }
3460
3493
  ]
3461
3494
  },
3462
3495
  {
3463
3496
  "kind": "javascript-module",
3464
- "path": "src/ai-criteria-search/index.ts",
3497
+ "path": "src/ai-indicator/index.ts",
3465
3498
  "declarations": [],
3466
3499
  "exports": [
3467
3500
  {
3468
3501
  "kind": "js",
3469
- "name": "AiCriteriaSearch",
3470
- "declaration": {
3471
- "name": "AiCriteriaSearch",
3472
- "module": "./ai-criteria-search"
3473
- }
3474
- },
3475
- {
3476
- "kind": "js",
3477
- "name": "defaultAiCriteriaSearchConfig",
3478
- "declaration": {
3479
- "name": "defaultAiCriteriaSearchConfig",
3480
- "module": "./ai-criteria-search"
3481
- }
3482
- },
3483
- {
3484
- "kind": "js",
3485
- "name": "foundationAiCriteriaSearch",
3486
- "declaration": {
3487
- "name": "foundationAiCriteriaSearch",
3488
- "module": "./ai-criteria-search"
3489
- }
3490
- },
3491
- {
3492
- "kind": "js",
3493
- "name": "foundationAiCriteriaSearchShadowOptions",
3502
+ "name": "AiIndicator",
3494
3503
  "declaration": {
3495
- "name": "foundationAiCriteriaSearchShadowOptions",
3496
- "module": "./ai-criteria-search"
3504
+ "name": "AiIndicator",
3505
+ "module": "./ai-indicator"
3497
3506
  }
3498
3507
  },
3499
3508
  {
3500
3509
  "kind": "js",
3501
- "name": "foundationAiCriteriaSearchStyles",
3510
+ "name": "foundationAiIndicator",
3502
3511
  "declaration": {
3503
- "name": "foundationAiCriteriaSearchStyles",
3504
- "module": "./ai-criteria-search.styles"
3512
+ "name": "foundationAiIndicator",
3513
+ "module": "./ai-indicator"
3505
3514
  }
3506
3515
  },
3507
3516
  {
3508
3517
  "kind": "js",
3509
- "name": "foundationAiCriteriaSearchTemplate",
3518
+ "name": "type",
3510
3519
  "declaration": {
3511
- "name": "foundationAiCriteriaSearchTemplate",
3512
- "module": "./ai-criteria-search.template"
3520
+ "name": "type",
3521
+ "module": "./ai-indicator"
3513
3522
  }
3514
3523
  },
3515
3524
  {
3516
3525
  "kind": "js",
3517
- "name": "*",
3526
+ "name": "AIIndicatorState",
3518
3527
  "declaration": {
3519
- "name": "*",
3520
- "package": "./validation/criteria-ir"
3528
+ "name": "AIIndicatorState",
3529
+ "module": "./ai-indicator"
3521
3530
  }
3522
3531
  },
3523
3532
  {
3524
3533
  "kind": "js",
3525
- "name": "*",
3534
+ "name": "foundationAiIndicatorTemplate",
3526
3535
  "declaration": {
3527
- "name": "*",
3528
- "package": "./validation/operator-map"
3536
+ "name": "foundationAiIndicatorTemplate",
3537
+ "module": "./ai-indicator.template"
3529
3538
  }
3530
3539
  },
3531
3540
  {
3532
3541
  "kind": "js",
3533
- "name": "*",
3542
+ "name": "foundationAiIndicatorStyles",
3534
3543
  "declaration": {
3535
- "name": "*",
3536
- "package": "./validation/schema-validator"
3544
+ "name": "foundationAiIndicatorStyles",
3545
+ "module": "./ai-indicator.styles"
3537
3546
  }
3538
3547
  }
3539
3548
  ]
3540
3549
  },
3541
3550
  {
3542
3551
  "kind": "javascript-module",
3543
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3552
+ "path": "src/accordion/accordion.styles.ts",
3544
3553
  "declarations": [
3545
3554
  {
3546
3555
  "kind": "function",
3547
- "name": "formatValidationErrors",
3556
+ "name": "foundationAccordionStyles",
3548
3557
  "return": {
3549
3558
  "type": {
3550
- "text": "string"
3559
+ "text": "ElementStyles"
3551
3560
  }
3552
3561
  },
3553
3562
  "parameters": [
3554
3563
  {
3555
- "name": "errors",
3564
+ "name": "context",
3556
3565
  "type": {
3557
- "text": "ValidationError[]"
3566
+ "text": "ElementDefinitionContext"
3558
3567
  }
3559
- }
3560
- ],
3561
- "description": "Formats validation errors into a user-friendly message."
3562
- },
3563
- {
3564
- "kind": "function",
3565
- "name": "showCriteriaError",
3566
- "return": {
3567
- "type": {
3568
- "text": "void"
3569
- }
3570
- },
3571
- "parameters": [
3572
- {
3573
- "name": "title",
3574
- "type": {
3575
- "text": "string"
3576
- },
3577
- "description": "Notification title (e.g. \"Criteria validation error\")"
3578
- },
3579
- {
3580
- "name": "body",
3581
- "type": {
3582
- "text": "string"
3583
- },
3584
- "description": "Error message to display"
3585
3568
  },
3586
3569
  {
3587
- "name": "tagName",
3570
+ "name": "definition",
3588
3571
  "type": {
3589
- "text": "string"
3590
- },
3591
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3572
+ "text": "FoundationElementDefinition"
3573
+ }
3592
3574
  }
3593
- ],
3594
- "description": "Shows a criteria error as a toast notification."
3575
+ ]
3595
3576
  }
3596
3577
  ],
3597
3578
  "exports": [
3598
3579
  {
3599
3580
  "kind": "js",
3600
- "name": "formatValidationErrors",
3601
- "declaration": {
3602
- "name": "formatValidationErrors",
3603
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3604
- }
3605
- },
3606
- {
3607
- "kind": "js",
3608
- "name": "showCriteriaError",
3581
+ "name": "foundationAccordionStyles",
3609
3582
  "declaration": {
3610
- "name": "showCriteriaError",
3611
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3583
+ "name": "foundationAccordionStyles",
3584
+ "module": "src/accordion/accordion.styles.ts"
3612
3585
  }
3613
3586
  }
3614
3587
  ]
3615
3588
  },
3616
3589
  {
3617
3590
  "kind": "javascript-module",
3618
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3591
+ "path": "src/accordion/accordion.template.ts",
3619
3592
  "declarations": [
3620
3593
  {
3621
3594
  "kind": "function",
3622
- "name": "foundationAiIndicatorStyles",
3595
+ "name": "foundationAccordionTemplate",
3623
3596
  "return": {
3624
3597
  "type": {
3625
- "text": "ElementStyles"
3598
+ "text": "ViewTemplate<Accordion>"
3626
3599
  }
3627
3600
  },
3628
3601
  "parameters": [
@@ -3644,224 +3617,237 @@
3644
3617
  "exports": [
3645
3618
  {
3646
3619
  "kind": "js",
3647
- "name": "foundationAiIndicatorStyles",
3648
- "declaration": {
3649
- "name": "foundationAiIndicatorStyles",
3650
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3651
- }
3652
- }
3653
- ]
3654
- },
3655
- {
3656
- "kind": "javascript-module",
3657
- "path": "src/ai-indicator/ai-indicator.template.ts",
3658
- "declarations": [
3659
- {
3660
- "kind": "variable",
3661
- "name": "foundationAiIndicatorTemplate",
3662
- "type": {
3663
- "text": "ViewTemplate<AiIndicator>"
3664
- },
3665
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3666
- }
3667
- ],
3668
- "exports": [
3669
- {
3670
- "kind": "js",
3671
- "name": "foundationAiIndicatorTemplate",
3620
+ "name": "foundationAccordionTemplate",
3672
3621
  "declaration": {
3673
- "name": "foundationAiIndicatorTemplate",
3674
- "module": "src/ai-indicator/ai-indicator.template.ts"
3622
+ "name": "foundationAccordionTemplate",
3623
+ "module": "src/accordion/accordion.template.ts"
3675
3624
  }
3676
3625
  }
3677
3626
  ]
3678
3627
  },
3679
3628
  {
3680
3629
  "kind": "javascript-module",
3681
- "path": "src/ai-indicator/ai-indicator.ts",
3630
+ "path": "src/accordion/accordion.ts",
3682
3631
  "declarations": [
3683
3632
  {
3684
3633
  "kind": "class",
3685
3634
  "description": "",
3686
- "name": "AiIndicator",
3687
- "members": [
3688
- {
3689
- "kind": "field",
3690
- "name": "providerRegistry",
3691
- "type": {
3692
- "text": "AIProviderRegistry"
3693
- }
3694
- },
3695
- {
3696
- "kind": "field",
3697
- "name": "aiProvider",
3698
- "type": {
3699
- "text": "AIProvider | undefined"
3700
- },
3701
- "privacy": "private",
3702
- "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.",
3703
- "readonly": true
3704
- },
3635
+ "name": "Accordion",
3636
+ "superclass": {
3637
+ "name": "FASTAccordion",
3638
+ "package": "@microsoft/fast-foundation"
3639
+ },
3640
+ "tagName": "%%prefix%%-accordion",
3641
+ "customElement": true,
3642
+ "attributes": [
3705
3643
  {
3706
- "kind": "field",
3707
- "name": "status",
3644
+ "name": "expand-mode",
3708
3645
  "type": {
3709
- "text": "AIStatus | null"
3646
+ "text": "AccordionExpandMode"
3710
3647
  },
3711
- "default": "null"
3712
- },
3648
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3649
+ "fieldName": "expandmode",
3650
+ "inheritedFrom": {
3651
+ "name": "Accordion",
3652
+ "module": "src/accordion/accordion.ts"
3653
+ }
3654
+ }
3655
+ ],
3656
+ "members": [
3713
3657
  {
3714
3658
  "kind": "field",
3715
- "name": "open",
3659
+ "name": "expandmode",
3716
3660
  "type": {
3717
- "text": "boolean"
3661
+ "text": "AccordionExpandMode"
3718
3662
  },
3719
- "default": "false"
3663
+ "privacy": "public",
3664
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3665
+ "inheritedFrom": {
3666
+ "name": "Accordion",
3667
+ "module": "src/accordion/accordion.ts"
3668
+ }
3720
3669
  },
3721
3670
  {
3722
3671
  "kind": "field",
3723
- "name": "state",
3672
+ "name": "activeid",
3724
3673
  "type": {
3725
- "text": "AIIndicatorState"
3674
+ "text": "string | null"
3726
3675
  },
3727
- "default": "'none'"
3676
+ "privacy": "private",
3677
+ "inheritedFrom": {
3678
+ "name": "Accordion",
3679
+ "module": "src/accordion/accordion.ts"
3680
+ }
3728
3681
  },
3729
3682
  {
3730
3683
  "kind": "field",
3731
- "name": "isInstalling",
3684
+ "name": "activeItemIndex",
3732
3685
  "type": {
3733
- "text": "boolean"
3686
+ "text": "number"
3734
3687
  },
3735
- "default": "false"
3688
+ "privacy": "private",
3689
+ "default": "0",
3690
+ "inheritedFrom": {
3691
+ "name": "Accordion",
3692
+ "module": "src/accordion/accordion.ts"
3693
+ }
3736
3694
  },
3737
3695
  {
3738
3696
  "kind": "field",
3739
- "name": "pollTimer",
3697
+ "name": "accordionIds",
3740
3698
  "type": {
3741
- "text": "ReturnType<typeof setInterval> | null"
3699
+ "text": "Array<string | null>"
3742
3700
  },
3743
3701
  "privacy": "private",
3744
- "default": "null"
3745
- },
3746
- {
3747
- "kind": "field",
3748
- "name": "clickOutside",
3749
- "privacy": "private"
3702
+ "inheritedFrom": {
3703
+ "name": "Accordion",
3704
+ "module": "src/accordion/accordion.ts"
3705
+ }
3750
3706
  },
3751
3707
  {
3752
3708
  "kind": "field",
3753
- "name": "chromeStatusLabel",
3754
- "type": {
3755
- "text": "string | null"
3756
- },
3757
- "readonly": true
3709
+ "name": "change",
3710
+ "privacy": "private",
3711
+ "inheritedFrom": {
3712
+ "name": "Accordion",
3713
+ "module": "src/accordion/accordion.ts"
3714
+ }
3758
3715
  },
3759
3716
  {
3760
- "kind": "field",
3761
- "name": "canInstall",
3762
- "type": {
3763
- "text": "boolean"
3717
+ "kind": "method",
3718
+ "name": "findExpandedItem",
3719
+ "privacy": "private",
3720
+ "return": {
3721
+ "type": {
3722
+ "text": "AccordionItem | null"
3723
+ }
3764
3724
  },
3765
- "readonly": true
3725
+ "inheritedFrom": {
3726
+ "name": "Accordion",
3727
+ "module": "src/accordion/accordion.ts"
3728
+ }
3766
3729
  },
3767
3730
  {
3768
3731
  "kind": "field",
3769
- "name": "isDownloading",
3770
- "type": {
3771
- "text": "boolean"
3772
- },
3773
- "readonly": true
3732
+ "name": "setItems",
3733
+ "privacy": "private",
3734
+ "inheritedFrom": {
3735
+ "name": "Accordion",
3736
+ "module": "src/accordion/accordion.ts"
3737
+ }
3774
3738
  },
3775
3739
  {
3776
3740
  "kind": "method",
3777
- "name": "openChanged",
3741
+ "name": "resetItems",
3742
+ "privacy": "private",
3778
3743
  "return": {
3779
3744
  "type": {
3780
3745
  "text": "void"
3781
3746
  }
3747
+ },
3748
+ "inheritedFrom": {
3749
+ "name": "Accordion",
3750
+ "module": "src/accordion/accordion.ts"
3782
3751
  }
3783
3752
  },
3784
3753
  {
3785
- "kind": "method",
3786
- "name": "handleClickOutside",
3754
+ "kind": "field",
3755
+ "name": "removeItemListeners",
3787
3756
  "privacy": "private",
3788
- "parameters": [
3789
- {
3790
- "name": "event",
3791
- "type": {
3792
- "text": "MouseEvent"
3793
- }
3794
- }
3795
- ]
3757
+ "inheritedFrom": {
3758
+ "name": "Accordion",
3759
+ "module": "src/accordion/accordion.ts"
3760
+ }
3796
3761
  },
3797
3762
  {
3798
- "kind": "method",
3799
- "name": "toggleDropdown"
3763
+ "kind": "field",
3764
+ "name": "activeItemChange",
3765
+ "privacy": "private",
3766
+ "inheritedFrom": {
3767
+ "name": "Accordion",
3768
+ "module": "src/accordion/accordion.ts"
3769
+ }
3800
3770
  },
3801
3771
  {
3802
3772
  "kind": "method",
3803
- "name": "refreshStatus",
3773
+ "name": "getItemIds",
3774
+ "privacy": "private",
3804
3775
  "return": {
3805
3776
  "type": {
3806
- "text": "Promise<void>"
3777
+ "text": "Array<string | null>"
3807
3778
  }
3779
+ },
3780
+ "inheritedFrom": {
3781
+ "name": "Accordion",
3782
+ "module": "src/accordion/accordion.ts"
3808
3783
  }
3809
3784
  },
3810
3785
  {
3811
3786
  "kind": "method",
3812
- "name": "deriveState",
3787
+ "name": "isSingleExpandMode",
3813
3788
  "privacy": "private",
3814
3789
  "return": {
3815
3790
  "type": {
3816
- "text": "AIIndicatorState"
3791
+ "text": "boolean"
3817
3792
  }
3818
3793
  },
3819
- "parameters": [
3820
- {
3821
- "name": "s",
3822
- "type": {
3823
- "text": "AIStatus | null"
3824
- }
3825
- }
3826
- ]
3794
+ "inheritedFrom": {
3795
+ "name": "Accordion",
3796
+ "module": "src/accordion/accordion.ts"
3797
+ }
3827
3798
  },
3828
3799
  {
3829
- "kind": "method",
3830
- "name": "maybeStartPolling",
3800
+ "kind": "field",
3801
+ "name": "handleItemKeyDown",
3831
3802
  "privacy": "private",
3832
- "return": {
3833
- "type": {
3834
- "text": "void"
3835
- }
3803
+ "inheritedFrom": {
3804
+ "name": "Accordion",
3805
+ "module": "src/accordion/accordion.ts"
3836
3806
  }
3837
3807
  },
3838
3808
  {
3839
- "kind": "method",
3840
- "name": "startPolling",
3809
+ "kind": "field",
3810
+ "name": "handleItemFocus",
3841
3811
  "privacy": "private",
3842
- "return": {
3843
- "type": {
3844
- "text": "void"
3845
- }
3812
+ "inheritedFrom": {
3813
+ "name": "Accordion",
3814
+ "module": "src/accordion/accordion.ts"
3846
3815
  }
3847
3816
  },
3848
3817
  {
3849
3818
  "kind": "method",
3850
- "name": "stopPolling",
3819
+ "name": "adjust",
3851
3820
  "privacy": "private",
3852
3821
  "return": {
3853
3822
  "type": {
3854
3823
  "text": "void"
3855
3824
  }
3825
+ },
3826
+ "parameters": [
3827
+ {
3828
+ "name": "adjustment",
3829
+ "type": {
3830
+ "text": "number"
3831
+ }
3832
+ }
3833
+ ],
3834
+ "inheritedFrom": {
3835
+ "name": "Accordion",
3836
+ "module": "src/accordion/accordion.ts"
3856
3837
  }
3857
3838
  },
3858
3839
  {
3859
3840
  "kind": "method",
3860
- "name": "onInstall",
3841
+ "name": "focusItem",
3842
+ "privacy": "private",
3861
3843
  "return": {
3862
3844
  "type": {
3863
- "text": "Promise<void>"
3845
+ "text": "void"
3864
3846
  }
3847
+ },
3848
+ "inheritedFrom": {
3849
+ "name": "Accordion",
3850
+ "module": "src/accordion/accordion.ts"
3865
3851
  }
3866
3852
  },
3867
3853
  {
@@ -3976,88 +3962,102 @@
3976
3962
  }
3977
3963
  }
3978
3964
  ],
3979
- "superclass": {
3980
- "name": "FoundationElement",
3981
- "package": "@microsoft/fast-foundation"
3965
+ "events": [
3966
+ {
3967
+ "description": "Fires a custom 'change' event when the active item changes",
3968
+ "name": "change",
3969
+ "inheritedFrom": {
3970
+ "name": "Accordion",
3971
+ "module": "src/accordion/accordion.ts"
3972
+ }
3973
+ }
3974
+ ]
3975
+ },
3976
+ {
3977
+ "kind": "variable",
3978
+ "name": "foundationAccordionShadowOptions",
3979
+ "type": {
3980
+ "text": "ShadowRootInit"
3982
3981
  },
3983
- "tagName": "%%prefix%%-ai-indicator",
3984
- "customElement": true
3982
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3985
3983
  },
3986
3984
  {
3987
3985
  "kind": "variable",
3988
- "name": "foundationAiIndicator"
3986
+ "name": "defaultAccordionConfig",
3987
+ "type": {
3988
+ "text": "object"
3989
+ },
3990
+ "default": "{}"
3991
+ },
3992
+ {
3993
+ "kind": "variable",
3994
+ "name": "foundationAccordion",
3995
+ "description": "The Foundation Accordion",
3996
+ "privacy": "public"
3989
3997
  }
3990
3998
  ],
3991
3999
  "exports": [
3992
4000
  {
3993
4001
  "kind": "js",
3994
- "name": "AiIndicator",
4002
+ "name": "Accordion",
3995
4003
  "declaration": {
3996
- "name": "AiIndicator",
3997
- "module": "src/ai-indicator/ai-indicator.ts"
4004
+ "name": "Accordion",
4005
+ "module": "src/accordion/accordion.ts"
3998
4006
  }
3999
4007
  },
4000
4008
  {
4001
4009
  "kind": "js",
4002
- "name": "foundationAiIndicator",
4003
- "declaration": {
4004
- "name": "foundationAiIndicator",
4005
- "module": "src/ai-indicator/ai-indicator.ts"
4006
- }
4007
- }
4008
- ]
4009
- },
4010
- {
4011
- "kind": "javascript-module",
4012
- "path": "src/ai-indicator/index.ts",
4013
- "declarations": [],
4014
- "exports": [
4015
- {
4016
- "kind": "js",
4017
- "name": "AiIndicator",
4010
+ "name": "foundationAccordionShadowOptions",
4018
4011
  "declaration": {
4019
- "name": "AiIndicator",
4020
- "module": "./ai-indicator"
4012
+ "name": "foundationAccordionShadowOptions",
4013
+ "module": "src/accordion/accordion.ts"
4021
4014
  }
4022
4015
  },
4023
4016
  {
4024
4017
  "kind": "js",
4025
- "name": "foundationAiIndicator",
4018
+ "name": "defaultAccordionConfig",
4026
4019
  "declaration": {
4027
- "name": "foundationAiIndicator",
4028
- "module": "./ai-indicator"
4020
+ "name": "defaultAccordionConfig",
4021
+ "module": "src/accordion/accordion.ts"
4029
4022
  }
4030
4023
  },
4031
4024
  {
4032
4025
  "kind": "js",
4033
- "name": "type",
4026
+ "name": "foundationAccordion",
4034
4027
  "declaration": {
4035
- "name": "type",
4036
- "module": "./ai-indicator"
4028
+ "name": "foundationAccordion",
4029
+ "module": "src/accordion/accordion.ts"
4037
4030
  }
4038
- },
4031
+ }
4032
+ ]
4033
+ },
4034
+ {
4035
+ "kind": "javascript-module",
4036
+ "path": "src/accordion/index.ts",
4037
+ "declarations": [],
4038
+ "exports": [
4039
4039
  {
4040
4040
  "kind": "js",
4041
- "name": "AIIndicatorState",
4041
+ "name": "*",
4042
4042
  "declaration": {
4043
- "name": "AIIndicatorState",
4044
- "module": "./ai-indicator"
4043
+ "name": "*",
4044
+ "package": "./accordion.template"
4045
4045
  }
4046
4046
  },
4047
4047
  {
4048
4048
  "kind": "js",
4049
- "name": "foundationAiIndicatorTemplate",
4049
+ "name": "*",
4050
4050
  "declaration": {
4051
- "name": "foundationAiIndicatorTemplate",
4052
- "module": "./ai-indicator.template"
4051
+ "name": "*",
4052
+ "package": "./accordion.styles"
4053
4053
  }
4054
4054
  },
4055
4055
  {
4056
4056
  "kind": "js",
4057
- "name": "foundationAiIndicatorStyles",
4057
+ "name": "*",
4058
4058
  "declaration": {
4059
- "name": "foundationAiIndicatorStyles",
4060
- "module": "./ai-indicator.styles"
4059
+ "name": "*",
4060
+ "package": "./accordion"
4061
4061
  }
4062
4062
  }
4063
4063
  ]