@genesislcap/foundation-ui 15.79.1 → 15.79.2-alpha-e9d30db797.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/accordion/accordion.styles.ts",
@@ -2435,131 +2435,203 @@
2435
2435
  },
2436
2436
  {
2437
2437
  "kind": "javascript-module",
2438
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2438
+ "path": "src/actions-menu/actions-menu.styles.ts",
2439
2439
  "declarations": [
2440
2440
  {
2441
- "kind": "variable",
2442
- "name": "foundationAiCriteriaSearchStyles",
2443
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2441
+ "kind": "function",
2442
+ "name": "actionsMenuBaseStyles",
2443
+ "return": {
2444
+ "type": {
2445
+ "text": "ElementStyles"
2446
+ }
2447
+ },
2448
+ "parameters": [
2449
+ {
2450
+ "name": "context",
2451
+ "type": {
2452
+ "text": "ElementDefinitionContext"
2453
+ }
2454
+ },
2455
+ {
2456
+ "name": "definition",
2457
+ "type": {
2458
+ "text": "FoundationElementDefinition"
2459
+ }
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "kind": "function",
2465
+ "name": "foundationActionsMenuStyles",
2466
+ "return": {
2467
+ "type": {
2468
+ "text": "ElementStyles"
2469
+ }
2470
+ },
2471
+ "parameters": [
2472
+ {
2473
+ "name": "context",
2474
+ "type": {
2475
+ "text": "ElementDefinitionContext"
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "definition",
2480
+ "type": {
2481
+ "text": "FoundationElementDefinition"
2482
+ }
2483
+ }
2484
+ ]
2444
2485
  }
2445
2486
  ],
2446
2487
  "exports": [
2447
2488
  {
2448
2489
  "kind": "js",
2449
- "name": "foundationAiCriteriaSearchStyles",
2490
+ "name": "actionsMenuBaseStyles",
2450
2491
  "declaration": {
2451
- "name": "foundationAiCriteriaSearchStyles",
2452
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2492
+ "name": "actionsMenuBaseStyles",
2493
+ "module": "src/actions-menu/actions-menu.styles.ts"
2494
+ }
2495
+ },
2496
+ {
2497
+ "kind": "js",
2498
+ "name": "foundationActionsMenuStyles",
2499
+ "declaration": {
2500
+ "name": "foundationActionsMenuStyles",
2501
+ "module": "src/actions-menu/actions-menu.styles.ts"
2453
2502
  }
2454
2503
  }
2455
2504
  ]
2456
2505
  },
2457
2506
  {
2458
2507
  "kind": "javascript-module",
2459
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2508
+ "path": "src/actions-menu/actions-menu.template.ts",
2460
2509
  "declarations": [
2461
2510
  {
2462
2511
  "kind": "variable",
2463
- "name": "foundationAiCriteriaSearchTemplate",
2512
+ "name": "menuTemplate"
2513
+ },
2514
+ {
2515
+ "kind": "variable",
2516
+ "name": "singleOptionTemplate"
2517
+ },
2518
+ {
2519
+ "kind": "variable",
2520
+ "name": "foundationActionsMenuTemplate",
2464
2521
  "type": {
2465
- "text": "ViewTemplate<AiCriteriaSearch>"
2522
+ "text": "ViewTemplate<ActionsMenu>"
2466
2523
  },
2467
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2524
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2468
2525
  }
2469
2526
  ],
2470
2527
  "exports": [
2471
2528
  {
2472
2529
  "kind": "js",
2473
- "name": "foundationAiCriteriaSearchTemplate",
2530
+ "name": "menuTemplate",
2474
2531
  "declaration": {
2475
- "name": "foundationAiCriteriaSearchTemplate",
2476
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2532
+ "name": "menuTemplate",
2533
+ "module": "src/actions-menu/actions-menu.template.ts"
2534
+ }
2535
+ },
2536
+ {
2537
+ "kind": "js",
2538
+ "name": "singleOptionTemplate",
2539
+ "declaration": {
2540
+ "name": "singleOptionTemplate",
2541
+ "module": "src/actions-menu/actions-menu.template.ts"
2542
+ }
2543
+ },
2544
+ {
2545
+ "kind": "js",
2546
+ "name": "foundationActionsMenuTemplate",
2547
+ "declaration": {
2548
+ "name": "foundationActionsMenuTemplate",
2549
+ "module": "src/actions-menu/actions-menu.template.ts"
2477
2550
  }
2478
2551
  }
2479
2552
  ]
2480
2553
  },
2481
2554
  {
2482
2555
  "kind": "javascript-module",
2483
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2556
+ "path": "src/actions-menu/actions-menu.ts",
2484
2557
  "declarations": [
2485
2558
  {
2486
2559
  "kind": "class",
2487
- "description": "Natural-language criteria search input with AI interpretation.",
2488
- "name": "AiCriteriaSearch",
2560
+ "description": "",
2561
+ "name": "ActionsMenu",
2489
2562
  "members": [
2490
2563
  {
2491
2564
  "kind": "field",
2492
- "name": "providerRegistry",
2565
+ "name": "actions",
2493
2566
  "type": {
2494
- "text": "AIProviderRegistry"
2567
+ "text": "ActionMenuItem[]"
2495
2568
  }
2496
2569
  },
2497
2570
  {
2498
2571
  "kind": "field",
2499
- "name": "placeholder",
2572
+ "name": "actionsResolver",
2500
2573
  "type": {
2501
- "text": "string"
2574
+ "text": "ActionMenuItemsResolver | undefined"
2502
2575
  },
2503
- "default": "'Describe your search criteria in natural language...'"
2576
+ "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
2504
2577
  },
2505
2578
  {
2506
2579
  "kind": "field",
2507
- "name": "disabled",
2580
+ "name": "isVertical",
2508
2581
  "type": {
2509
2582
  "text": "boolean"
2510
- }
2583
+ },
2584
+ "default": "false"
2511
2585
  },
2512
2586
  {
2513
2587
  "kind": "field",
2514
- "name": "inputValue",
2588
+ "name": "addDefaultActions",
2515
2589
  "type": {
2516
- "text": "string"
2590
+ "text": "boolean"
2517
2591
  },
2518
- "default": "''"
2592
+ "default": "true"
2519
2593
  },
2520
2594
  {
2521
2595
  "kind": "field",
2522
- "name": "isInterpreting",
2596
+ "name": "autoCloseOnAction",
2523
2597
  "type": {
2524
2598
  "text": "boolean"
2525
2599
  },
2526
- "default": "false"
2600
+ "default": "true"
2527
2601
  },
2528
2602
  {
2529
2603
  "kind": "field",
2530
- "name": "lastValidCriteria",
2604
+ "name": "classNames",
2531
2605
  "type": {
2532
- "text": "string | null"
2533
- },
2534
- "default": "null"
2606
+ "text": "string"
2607
+ }
2535
2608
  },
2536
2609
  {
2537
2610
  "kind": "field",
2538
- "name": "activeGroups",
2611
+ "name": "definition",
2539
2612
  "type": {
2540
- "text": "CriteriaGroup[]"
2541
- },
2542
- "default": "[]"
2613
+ "text": "any"
2614
+ }
2543
2615
  },
2544
2616
  {
2545
2617
  "kind": "field",
2546
- "name": "showingChips",
2618
+ "name": "name",
2547
2619
  "type": {
2548
- "text": "boolean"
2620
+ "text": "string"
2549
2621
  },
2550
- "default": "false"
2622
+ "default": "'Actions'"
2551
2623
  },
2552
2624
  {
2553
2625
  "kind": "field",
2554
- "name": "fieldMetadata",
2626
+ "name": "iconName",
2555
2627
  "type": {
2556
- "text": "MetadataDetail[] | string[]"
2628
+ "text": "string"
2557
2629
  },
2558
- "default": "[]"
2630
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
2559
2631
  },
2560
2632
  {
2561
2633
  "kind": "field",
2562
- "name": "isRecording",
2634
+ "name": "open",
2563
2635
  "type": {
2564
2636
  "text": "boolean"
2565
2637
  },
@@ -2567,125 +2639,224 @@
2567
2639
  },
2568
2640
  {
2569
2641
  "kind": "field",
2570
- "name": "textAreaRef",
2642
+ "name": "buttonAppearance",
2571
2643
  "type": {
2572
- "text": "HTMLTextAreaElement"
2573
- },
2574
- "privacy": "public"
2644
+ "text": "string"
2645
+ }
2575
2646
  },
2576
2647
  {
2577
2648
  "kind": "field",
2578
- "name": "stopRecording",
2649
+ "name": "hideDisabled",
2579
2650
  "type": {
2580
- "text": "(() => void) | null"
2651
+ "text": "boolean"
2581
2652
  },
2582
- "privacy": "private",
2583
- "default": "null"
2653
+ "default": "false"
2584
2654
  },
2585
2655
  {
2586
2656
  "kind": "field",
2587
- "name": "speechApplyDebounceTimer",
2657
+ "name": "hideMenuSingleOption",
2588
2658
  "type": {
2589
- "text": "ReturnType<typeof setTimeout> | null"
2659
+ "text": "boolean"
2590
2660
  },
2591
- "privacy": "private",
2592
- "default": "null"
2661
+ "default": "false"
2593
2662
  },
2594
2663
  {
2595
2664
  "kind": "field",
2596
- "name": "speechAvailable",
2665
+ "name": "singleOption",
2597
2666
  "type": {
2598
- "text": "boolean"
2599
- },
2600
- "readonly": true
2667
+ "text": "ActionMenuItem"
2668
+ }
2601
2669
  },
2602
2670
  {
2603
2671
  "kind": "field",
2604
- "name": "criteriaChips",
2672
+ "name": "actionsMenu",
2605
2673
  "type": {
2606
- "text": "CriteriaChip[]"
2607
- },
2608
- "readonly": true
2609
- },
2674
+ "text": "HTMLElement"
2675
+ }
2676
+ },
2610
2677
  {
2611
- "kind": "method",
2612
- "name": "getFieldLabel",
2613
- "privacy": "private",
2614
- "return": {
2615
- "type": {
2616
- "text": "string"
2617
- }
2678
+ "kind": "field",
2679
+ "name": "actionsOpener",
2680
+ "type": {
2681
+ "text": "HTMLElement"
2682
+ }
2683
+ },
2684
+ {
2685
+ "kind": "field",
2686
+ "name": "positionTracker",
2687
+ "type": {
2688
+ "text": "AnchoredPopoverPositionTracker | undefined"
2689
+ },
2690
+ "privacy": "private"
2691
+ },
2692
+ {
2693
+ "kind": "field",
2694
+ "name": "focusMenuOnOpen",
2695
+ "type": {
2696
+ "text": "boolean"
2618
2697
  },
2698
+ "privacy": "private",
2699
+ "default": "false",
2700
+ "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
2701
+ },
2702
+ {
2703
+ "kind": "method",
2704
+ "name": "updateMenuPosition",
2705
+ "privacy": "private"
2706
+ },
2707
+ {
2708
+ "kind": "method",
2709
+ "name": "startTrackingPosition",
2710
+ "privacy": "private"
2711
+ },
2712
+ {
2713
+ "kind": "method",
2714
+ "name": "stopTrackingPosition",
2715
+ "privacy": "private"
2716
+ },
2717
+ {
2718
+ "kind": "method",
2719
+ "name": "definitionChanged",
2720
+ "privacy": "protected",
2619
2721
  "parameters": [
2620
2722
  {
2621
- "name": "fieldName",
2723
+ "name": "oldValue",
2622
2724
  "type": {
2623
- "text": "string"
2725
+ "text": "any"
2726
+ }
2727
+ },
2728
+ {
2729
+ "name": "newValue",
2730
+ "type": {
2731
+ "text": "any"
2624
2732
  }
2625
2733
  }
2626
2734
  ]
2627
2735
  },
2628
2736
  {
2629
2737
  "kind": "method",
2630
- "name": "toggleCriteriaView",
2631
- "return": {
2632
- "type": {
2633
- "text": "void"
2738
+ "name": "openChanged",
2739
+ "privacy": "protected"
2740
+ },
2741
+ {
2742
+ "kind": "method",
2743
+ "name": "toggleActionsMenuVisibility"
2744
+ },
2745
+ {
2746
+ "kind": "method",
2747
+ "name": "onPopoverToggle",
2748
+ "parameters": [
2749
+ {
2750
+ "name": "event",
2751
+ "type": {
2752
+ "text": "Event"
2753
+ }
2634
2754
  }
2635
- }
2755
+ ],
2756
+ "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
2636
2757
  },
2637
2758
  {
2638
2759
  "kind": "method",
2639
- "name": "removeChip",
2760
+ "name": "onIconOpenerKeydown",
2640
2761
  "return": {
2641
2762
  "type": {
2642
- "text": "void"
2763
+ "text": "boolean"
2643
2764
  }
2644
2765
  },
2645
2766
  "parameters": [
2646
2767
  {
2647
- "name": "groupIndex",
2768
+ "name": "event",
2648
2769
  "type": {
2649
- "text": "number"
2770
+ "text": "KeyboardEvent"
2650
2771
  }
2651
- },
2772
+ }
2773
+ ],
2774
+ "description": "Opens the icon-only opener from the keyboard, as a native button would."
2775
+ },
2776
+ {
2777
+ "kind": "method",
2778
+ "name": "onActionMenuItemClick",
2779
+ "parameters": [
2652
2780
  {
2653
- "name": "clauseIndex",
2781
+ "name": "callback",
2654
2782
  "type": {
2655
- "text": "number"
2783
+ "text": "(rowData) => void | any"
2656
2784
  }
2657
2785
  }
2658
2786
  ]
2659
2787
  },
2660
2788
  {
2661
2789
  "kind": "method",
2662
- "name": "clearChips",
2790
+ "name": "isActionDisabled",
2663
2791
  "return": {
2664
2792
  "type": {
2665
- "text": "void"
2793
+ "text": "boolean"
2666
2794
  }
2667
- }
2795
+ },
2796
+ "parameters": [
2797
+ {
2798
+ "name": "action",
2799
+ "type": {
2800
+ "text": "ActionMenuItem"
2801
+ }
2802
+ }
2803
+ ],
2804
+ "description": "Resolves an action's `isDisabled` for the current row."
2668
2805
  },
2669
2806
  {
2670
- "kind": "method",
2671
- "name": "handleSubmit"
2807
+ "kind": "field",
2808
+ "name": "resolvedActions",
2809
+ "type": {
2810
+ "text": "ActionMenuItem[]"
2811
+ },
2812
+ "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
2813
+ "readonly": true
2672
2814
  },
2673
2815
  {
2674
- "kind": "method",
2675
- "name": "handleBlur"
2816
+ "kind": "field",
2817
+ "name": "hasVisibleActions",
2818
+ "type": {
2819
+ "text": "boolean"
2820
+ },
2821
+ "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
2822
+ "readonly": true
2676
2823
  },
2677
2824
  {
2678
- "kind": "method",
2679
- "name": "clear"
2825
+ "kind": "field",
2826
+ "name": "allActions",
2827
+ "type": {
2828
+ "text": "ActionMenuItem[]"
2829
+ },
2830
+ "readonly": true
2831
+ },
2832
+ {
2833
+ "kind": "field",
2834
+ "name": "rowData",
2835
+ "readonly": true
2680
2836
  },
2681
2837
  {
2682
2838
  "kind": "method",
2683
- "name": "toggleSpeechInput"
2839
+ "name": "getLabel",
2840
+ "parameters": [
2841
+ {
2842
+ "name": "name",
2843
+ "type": {
2844
+ "text": "string | ((rowData: any) => string)"
2845
+ }
2846
+ }
2847
+ ]
2684
2848
  },
2685
2849
  {
2686
2850
  "kind": "method",
2687
- "name": "clearSpeechApplyDebounce",
2688
- "privacy": "private"
2851
+ "name": "getTemplate",
2852
+ "parameters": [
2853
+ {
2854
+ "name": "prefix",
2855
+ "type": {
2856
+ "text": "string"
2857
+ }
2858
+ }
2859
+ ]
2689
2860
  },
2690
2861
  {
2691
2862
  "kind": "field",
@@ -2799,146 +2970,166 @@
2799
2970
  }
2800
2971
  }
2801
2972
  ],
2802
- "events": [
2973
+ "attributes": [
2803
2974
  {
2804
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2805
- "name": "criteria-changed"
2975
+ "name": "is-vertical",
2976
+ "type": {
2977
+ "text": "boolean"
2978
+ },
2979
+ "default": "false",
2980
+ "fieldName": "isVertical"
2806
2981
  },
2807
2982
  {
2808
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2809
- "name": "validation-errors"
2810
- }
2811
- ],
2812
- "attributes": [
2983
+ "name": "add-default-actions",
2984
+ "type": {
2985
+ "text": "boolean"
2986
+ },
2987
+ "default": "true",
2988
+ "fieldName": "addDefaultActions"
2989
+ },
2813
2990
  {
2814
- "name": "placeholder",
2991
+ "name": "auto-close-on-action",
2992
+ "type": {
2993
+ "text": "boolean"
2994
+ },
2995
+ "default": "true",
2996
+ "fieldName": "autoCloseOnAction"
2997
+ },
2998
+ {
2999
+ "name": "name",
2815
3000
  "type": {
2816
3001
  "text": "string"
2817
3002
  },
2818
- "default": "'Describe your search criteria in natural language...'",
2819
- "fieldName": "placeholder"
3003
+ "default": "'Actions'",
3004
+ "fieldName": "name"
3005
+ },
3006
+ {
3007
+ "name": "icon-name",
3008
+ "type": {
3009
+ "text": "string"
3010
+ },
3011
+ "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3012
+ "fieldName": "iconName"
2820
3013
  },
2821
3014
  {
3015
+ "name": "open",
2822
3016
  "type": {
2823
3017
  "text": "boolean"
2824
3018
  },
2825
- "fieldName": "disabled"
3019
+ "default": "false",
3020
+ "fieldName": "open"
3021
+ },
3022
+ {
3023
+ "name": "buttonAppearance",
3024
+ "type": {
3025
+ "text": "string"
3026
+ },
3027
+ "fieldName": "buttonAppearance"
3028
+ },
3029
+ {
3030
+ "name": "hide-disabled",
3031
+ "type": {
3032
+ "text": "boolean"
3033
+ },
3034
+ "default": "false",
3035
+ "fieldName": "hideDisabled"
3036
+ },
3037
+ {
3038
+ "name": "hide-menu-single-option",
3039
+ "type": {
3040
+ "text": "boolean"
3041
+ },
3042
+ "default": "false",
3043
+ "fieldName": "hideMenuSingleOption"
2826
3044
  }
2827
3045
  ],
2828
3046
  "superclass": {
2829
3047
  "name": "FoundationElement",
2830
3048
  "package": "@microsoft/fast-foundation"
2831
3049
  },
2832
- "tagName": "%%prefix%%-ai-criteria-search",
3050
+ "tagName": "%%prefix%%-actions-menu",
2833
3051
  "customElement": true
2834
3052
  },
2835
3053
  {
2836
3054
  "kind": "variable",
2837
- "name": "foundationAiCriteriaSearchShadowOptions",
2838
- "type": {
2839
- "text": "ShadowRootInit"
2840
- },
2841
- "default": "undefined"
2842
- },
2843
- {
2844
- "kind": "variable",
2845
- "name": "defaultAiCriteriaSearchConfig",
2846
- "type": {
2847
- "text": "object"
2848
- },
2849
- "default": "{}"
2850
- },
2851
- {
2852
- "kind": "variable",
2853
- "name": "foundationAiCriteriaSearch"
3055
+ "name": "foundationActionsMenu",
3056
+ "description": "The Foundation Actions Menu",
3057
+ "privacy": "public"
2854
3058
  }
2855
3059
  ],
2856
3060
  "exports": [
2857
3061
  {
2858
3062
  "kind": "js",
2859
- "name": "AiCriteriaSearch",
3063
+ "name": "ActionsMenu",
2860
3064
  "declaration": {
2861
- "name": "AiCriteriaSearch",
2862
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3065
+ "name": "ActionsMenu",
3066
+ "module": "src/actions-menu/actions-menu.ts"
2863
3067
  }
2864
3068
  },
2865
3069
  {
2866
3070
  "kind": "js",
2867
- "name": "foundationAiCriteriaSearchShadowOptions",
3071
+ "name": "foundationActionsMenu",
2868
3072
  "declaration": {
2869
- "name": "foundationAiCriteriaSearchShadowOptions",
2870
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3073
+ "name": "foundationActionsMenu",
3074
+ "module": "src/actions-menu/actions-menu.ts"
2871
3075
  }
2872
- },
3076
+ }
3077
+ ]
3078
+ },
3079
+ {
3080
+ "kind": "javascript-module",
3081
+ "path": "src/actions-menu/ag-menu.styles.ts",
3082
+ "declarations": [
2873
3083
  {
2874
- "kind": "js",
2875
- "name": "defaultAiCriteriaSearchConfig",
2876
- "declaration": {
2877
- "name": "defaultAiCriteriaSearchConfig",
2878
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2879
- }
2880
- },
3084
+ "kind": "function",
3085
+ "name": "agMenuStyles",
3086
+ "return": {
3087
+ "type": {
3088
+ "text": ""
3089
+ }
3090
+ },
3091
+ "parameters": [
3092
+ {
3093
+ "name": "menuSelector",
3094
+ "type": {
3095
+ "text": "string"
3096
+ },
3097
+ "description": "Selects the menu surface. May be a selector list."
3098
+ },
3099
+ {
3100
+ "name": "itemSelector",
3101
+ "type": {
3102
+ "text": "string"
3103
+ },
3104
+ "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3105
+ }
3106
+ ],
3107
+ "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
3108
+ "privacy": "public"
3109
+ }
3110
+ ],
3111
+ "exports": [
2881
3112
  {
2882
3113
  "kind": "js",
2883
- "name": "foundationAiCriteriaSearch",
3114
+ "name": "agMenuStyles",
2884
3115
  "declaration": {
2885
- "name": "foundationAiCriteriaSearch",
2886
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3116
+ "name": "agMenuStyles",
3117
+ "module": "src/actions-menu/ag-menu.styles.ts"
2887
3118
  }
2888
3119
  }
2889
3120
  ]
2890
3121
  },
2891
3122
  {
2892
3123
  "kind": "javascript-module",
2893
- "path": "src/ai-criteria-search/index.ts",
3124
+ "path": "src/actions-menu/index.ts",
2894
3125
  "declarations": [],
2895
3126
  "exports": [
2896
3127
  {
2897
3128
  "kind": "js",
2898
- "name": "AiCriteriaSearch",
2899
- "declaration": {
2900
- "name": "AiCriteriaSearch",
2901
- "module": "./ai-criteria-search"
2902
- }
2903
- },
2904
- {
2905
- "kind": "js",
2906
- "name": "defaultAiCriteriaSearchConfig",
2907
- "declaration": {
2908
- "name": "defaultAiCriteriaSearchConfig",
2909
- "module": "./ai-criteria-search"
2910
- }
2911
- },
2912
- {
2913
- "kind": "js",
2914
- "name": "foundationAiCriteriaSearch",
2915
- "declaration": {
2916
- "name": "foundationAiCriteriaSearch",
2917
- "module": "./ai-criteria-search"
2918
- }
2919
- },
2920
- {
2921
- "kind": "js",
2922
- "name": "foundationAiCriteriaSearchShadowOptions",
2923
- "declaration": {
2924
- "name": "foundationAiCriteriaSearchShadowOptions",
2925
- "module": "./ai-criteria-search"
2926
- }
2927
- },
2928
- {
2929
- "kind": "js",
2930
- "name": "foundationAiCriteriaSearchStyles",
2931
- "declaration": {
2932
- "name": "foundationAiCriteriaSearchStyles",
2933
- "module": "./ai-criteria-search.styles"
2934
- }
2935
- },
2936
- {
2937
- "kind": "js",
2938
- "name": "foundationAiCriteriaSearchTemplate",
3129
+ "name": "*",
2939
3130
  "declaration": {
2940
- "name": "foundationAiCriteriaSearchTemplate",
2941
- "module": "./ai-criteria-search.template"
3131
+ "name": "*",
3132
+ "package": "./actions-menu.styles"
2942
3133
  }
2943
3134
  },
2944
3135
  {
@@ -2946,7 +3137,7 @@
2946
3137
  "name": "*",
2947
3138
  "declaration": {
2948
3139
  "name": "*",
2949
- "package": "./validation/criteria-ir"
3140
+ "package": "./actions-menu.template"
2950
3141
  }
2951
3142
  },
2952
3143
  {
@@ -2954,7 +3145,7 @@
2954
3145
  "name": "*",
2955
3146
  "declaration": {
2956
3147
  "name": "*",
2957
- "package": "./validation/operator-map"
3148
+ "package": "./actions-menu"
2958
3149
  }
2959
3150
  },
2960
3151
  {
@@ -2962,231 +3153,98 @@
2962
3153
  "name": "*",
2963
3154
  "declaration": {
2964
3155
  "name": "*",
2965
- "package": "./validation/schema-validator"
3156
+ "package": "./ag-menu.styles"
2966
3157
  }
2967
3158
  }
2968
3159
  ]
2969
3160
  },
2970
3161
  {
2971
3162
  "kind": "javascript-module",
2972
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3163
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2973
3164
  "declarations": [
2974
3165
  {
2975
- "kind": "function",
2976
- "name": "formatValidationErrors",
2977
- "return": {
2978
- "type": {
2979
- "text": "string"
2980
- }
2981
- },
2982
- "parameters": [
2983
- {
2984
- "name": "errors",
2985
- "type": {
2986
- "text": "ValidationError[]"
2987
- }
2988
- }
2989
- ],
2990
- "description": "Formats validation errors into a user-friendly message."
2991
- },
2992
- {
2993
- "kind": "function",
2994
- "name": "showCriteriaError",
2995
- "return": {
2996
- "type": {
2997
- "text": "void"
2998
- }
2999
- },
3000
- "parameters": [
3001
- {
3002
- "name": "title",
3003
- "type": {
3004
- "text": "string"
3005
- },
3006
- "description": "Notification title (e.g. \"Criteria validation error\")"
3007
- },
3008
- {
3009
- "name": "body",
3010
- "type": {
3011
- "text": "string"
3012
- },
3013
- "description": "Error message to display"
3014
- },
3015
- {
3016
- "name": "tagName",
3017
- "type": {
3018
- "text": "string"
3019
- },
3020
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3021
- }
3022
- ],
3023
- "description": "Shows a criteria error as a toast notification."
3166
+ "kind": "variable",
3167
+ "name": "foundationAiCriteriaSearchStyles",
3168
+ "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`"
3024
3169
  }
3025
3170
  ],
3026
3171
  "exports": [
3027
3172
  {
3028
3173
  "kind": "js",
3029
- "name": "formatValidationErrors",
3174
+ "name": "foundationAiCriteriaSearchStyles",
3030
3175
  "declaration": {
3031
- "name": "formatValidationErrors",
3032
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3176
+ "name": "foundationAiCriteriaSearchStyles",
3177
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3033
3178
  }
3034
- },
3179
+ }
3180
+ ]
3181
+ },
3182
+ {
3183
+ "kind": "javascript-module",
3184
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3185
+ "declarations": [
3186
+ {
3187
+ "kind": "variable",
3188
+ "name": "foundationAiCriteriaSearchTemplate",
3189
+ "type": {
3190
+ "text": "ViewTemplate<AiCriteriaSearch>"
3191
+ },
3192
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3193
+ }
3194
+ ],
3195
+ "exports": [
3035
3196
  {
3036
3197
  "kind": "js",
3037
- "name": "showCriteriaError",
3198
+ "name": "foundationAiCriteriaSearchTemplate",
3038
3199
  "declaration": {
3039
- "name": "showCriteriaError",
3040
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3200
+ "name": "foundationAiCriteriaSearchTemplate",
3201
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3041
3202
  }
3042
3203
  }
3043
3204
  ]
3044
3205
  },
3045
3206
  {
3046
3207
  "kind": "javascript-module",
3047
- "path": "src/actions-menu/actions-menu.styles.ts",
3208
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3048
3209
  "declarations": [
3049
3210
  {
3050
- "kind": "function",
3051
- "name": "actionsMenuBaseStyles",
3052
- "return": {
3053
- "type": {
3054
- "text": "ElementStyles"
3055
- }
3056
- },
3057
- "parameters": [
3211
+ "kind": "class",
3212
+ "description": "Natural-language criteria search input with AI interpretation.",
3213
+ "name": "AiCriteriaSearch",
3214
+ "members": [
3058
3215
  {
3059
- "name": "context",
3216
+ "kind": "field",
3217
+ "name": "providerRegistry",
3060
3218
  "type": {
3061
- "text": "ElementDefinitionContext"
3219
+ "text": "AIProviderRegistry"
3062
3220
  }
3063
3221
  },
3064
3222
  {
3065
- "name": "definition",
3223
+ "kind": "field",
3224
+ "name": "placeholder",
3066
3225
  "type": {
3067
- "text": "FoundationElementDefinition"
3068
- }
3069
- }
3070
- ]
3071
- },
3072
- {
3073
- "kind": "function",
3074
- "name": "foundationActionsMenuStyles",
3075
- "return": {
3076
- "type": {
3077
- "text": "ElementStyles"
3078
- }
3079
- },
3080
- "parameters": [
3226
+ "text": "string"
3227
+ },
3228
+ "default": "'Describe your search criteria in natural language...'"
3229
+ },
3081
3230
  {
3082
- "name": "context",
3231
+ "kind": "field",
3232
+ "name": "disabled",
3083
3233
  "type": {
3084
- "text": "ElementDefinitionContext"
3085
- }
3086
- },
3087
- {
3088
- "name": "definition",
3089
- "type": {
3090
- "text": "FoundationElementDefinition"
3091
- }
3092
- }
3093
- ]
3094
- }
3095
- ],
3096
- "exports": [
3097
- {
3098
- "kind": "js",
3099
- "name": "actionsMenuBaseStyles",
3100
- "declaration": {
3101
- "name": "actionsMenuBaseStyles",
3102
- "module": "src/actions-menu/actions-menu.styles.ts"
3103
- }
3104
- },
3105
- {
3106
- "kind": "js",
3107
- "name": "foundationActionsMenuStyles",
3108
- "declaration": {
3109
- "name": "foundationActionsMenuStyles",
3110
- "module": "src/actions-menu/actions-menu.styles.ts"
3111
- }
3112
- }
3113
- ]
3114
- },
3115
- {
3116
- "kind": "javascript-module",
3117
- "path": "src/actions-menu/actions-menu.template.ts",
3118
- "declarations": [
3119
- {
3120
- "kind": "variable",
3121
- "name": "menuTemplate"
3122
- },
3123
- {
3124
- "kind": "variable",
3125
- "name": "singleOptionTemplate"
3126
- },
3127
- {
3128
- "kind": "variable",
3129
- "name": "foundationActionsMenuTemplate",
3130
- "type": {
3131
- "text": "ViewTemplate<ActionsMenu>"
3132
- },
3133
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
3134
- }
3135
- ],
3136
- "exports": [
3137
- {
3138
- "kind": "js",
3139
- "name": "menuTemplate",
3140
- "declaration": {
3141
- "name": "menuTemplate",
3142
- "module": "src/actions-menu/actions-menu.template.ts"
3143
- }
3144
- },
3145
- {
3146
- "kind": "js",
3147
- "name": "singleOptionTemplate",
3148
- "declaration": {
3149
- "name": "singleOptionTemplate",
3150
- "module": "src/actions-menu/actions-menu.template.ts"
3151
- }
3152
- },
3153
- {
3154
- "kind": "js",
3155
- "name": "foundationActionsMenuTemplate",
3156
- "declaration": {
3157
- "name": "foundationActionsMenuTemplate",
3158
- "module": "src/actions-menu/actions-menu.template.ts"
3159
- }
3160
- }
3161
- ]
3162
- },
3163
- {
3164
- "kind": "javascript-module",
3165
- "path": "src/actions-menu/actions-menu.ts",
3166
- "declarations": [
3167
- {
3168
- "kind": "class",
3169
- "description": "",
3170
- "name": "ActionsMenu",
3171
- "members": [
3172
- {
3173
- "kind": "field",
3174
- "name": "actions",
3175
- "type": {
3176
- "text": "ActionMenuItem[]"
3234
+ "text": "boolean"
3177
3235
  }
3178
3236
  },
3179
3237
  {
3180
3238
  "kind": "field",
3181
- "name": "actionsResolver",
3239
+ "name": "inputValue",
3182
3240
  "type": {
3183
- "text": "ActionMenuItemsResolver | undefined"
3241
+ "text": "string"
3184
3242
  },
3185
- "description": "Resolves the actions per row instead of `actions`, from the row data in `definition`."
3243
+ "default": "''"
3186
3244
  },
3187
3245
  {
3188
3246
  "kind": "field",
3189
- "name": "isVertical",
3247
+ "name": "isInterpreting",
3190
3248
  "type": {
3191
3249
  "text": "boolean"
3192
3250
  },
@@ -3194,53 +3252,23 @@
3194
3252
  },
3195
3253
  {
3196
3254
  "kind": "field",
3197
- "name": "addDefaultActions",
3198
- "type": {
3199
- "text": "boolean"
3200
- },
3201
- "default": "true"
3202
- },
3203
- {
3204
- "kind": "field",
3205
- "name": "autoCloseOnAction",
3206
- "type": {
3207
- "text": "boolean"
3208
- },
3209
- "default": "true"
3210
- },
3211
- {
3212
- "kind": "field",
3213
- "name": "classNames",
3214
- "type": {
3215
- "text": "string"
3216
- }
3217
- },
3218
- {
3219
- "kind": "field",
3220
- "name": "definition",
3221
- "type": {
3222
- "text": "any"
3223
- }
3224
- },
3225
- {
3226
- "kind": "field",
3227
- "name": "name",
3255
+ "name": "lastValidCriteria",
3228
3256
  "type": {
3229
- "text": "string"
3257
+ "text": "string | null"
3230
3258
  },
3231
- "default": "'Actions'"
3259
+ "default": "null"
3232
3260
  },
3233
3261
  {
3234
3262
  "kind": "field",
3235
- "name": "iconName",
3263
+ "name": "activeGroups",
3236
3264
  "type": {
3237
- "text": "string"
3265
+ "text": "CriteriaGroup[]"
3238
3266
  },
3239
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener)."
3267
+ "default": "[]"
3240
3268
  },
3241
3269
  {
3242
3270
  "kind": "field",
3243
- "name": "open",
3271
+ "name": "showingChips",
3244
3272
  "type": {
3245
3273
  "text": "boolean"
3246
3274
  },
@@ -3248,22 +3276,15 @@
3248
3276
  },
3249
3277
  {
3250
3278
  "kind": "field",
3251
- "name": "buttonAppearance",
3252
- "type": {
3253
- "text": "string"
3254
- }
3255
- },
3256
- {
3257
- "kind": "field",
3258
- "name": "hideDisabled",
3279
+ "name": "fieldMetadata",
3259
3280
  "type": {
3260
- "text": "boolean"
3281
+ "text": "MetadataDetail[] | string[]"
3261
3282
  },
3262
- "default": "false"
3283
+ "default": "[]"
3263
3284
  },
3264
3285
  {
3265
3286
  "kind": "field",
3266
- "name": "hideMenuSingleOption",
3287
+ "name": "isRecording",
3267
3288
  "type": {
3268
3289
  "text": "boolean"
3269
3290
  },
@@ -3271,201 +3292,125 @@
3271
3292
  },
3272
3293
  {
3273
3294
  "kind": "field",
3274
- "name": "singleOption",
3295
+ "name": "textAreaRef",
3275
3296
  "type": {
3276
- "text": "ActionMenuItem"
3277
- }
3297
+ "text": "HTMLTextAreaElement"
3298
+ },
3299
+ "privacy": "public"
3278
3300
  },
3279
3301
  {
3280
3302
  "kind": "field",
3281
- "name": "actionsMenu",
3303
+ "name": "stopRecording",
3282
3304
  "type": {
3283
- "text": "HTMLElement"
3284
- }
3305
+ "text": "(() => void) | null"
3306
+ },
3307
+ "privacy": "private",
3308
+ "default": "null"
3285
3309
  },
3286
3310
  {
3287
3311
  "kind": "field",
3288
- "name": "actionsOpener",
3312
+ "name": "speechApplyDebounceTimer",
3289
3313
  "type": {
3290
- "text": "HTMLElement"
3291
- }
3314
+ "text": "ReturnType<typeof setTimeout> | null"
3315
+ },
3316
+ "privacy": "private",
3317
+ "default": "null"
3292
3318
  },
3293
3319
  {
3294
3320
  "kind": "field",
3295
- "name": "positionTracker",
3321
+ "name": "speechAvailable",
3296
3322
  "type": {
3297
- "text": "AnchoredPopoverPositionTracker | undefined"
3323
+ "text": "boolean"
3298
3324
  },
3299
- "privacy": "private"
3325
+ "readonly": true
3300
3326
  },
3301
3327
  {
3302
3328
  "kind": "field",
3303
- "name": "focusMenuOnOpen",
3329
+ "name": "criteriaChips",
3304
3330
  "type": {
3305
- "text": "boolean"
3331
+ "text": "CriteriaChip[]"
3306
3332
  },
3307
- "privacy": "private",
3308
- "default": "false",
3309
- "description": "Set when the keyboard opens the menu, so focus moves into it as screen readers announce."
3310
- },
3311
- {
3312
- "kind": "method",
3313
- "name": "updateMenuPosition",
3314
- "privacy": "private"
3333
+ "readonly": true
3315
3334
  },
3316
3335
  {
3317
3336
  "kind": "method",
3318
- "name": "startTrackingPosition",
3319
- "privacy": "private"
3337
+ "name": "getFieldLabel",
3338
+ "privacy": "private",
3339
+ "return": {
3340
+ "type": {
3341
+ "text": "string"
3342
+ }
3343
+ },
3344
+ "parameters": [
3345
+ {
3346
+ "name": "fieldName",
3347
+ "type": {
3348
+ "text": "string"
3349
+ }
3350
+ }
3351
+ ]
3320
3352
  },
3321
3353
  {
3322
3354
  "kind": "method",
3323
- "name": "stopTrackingPosition",
3324
- "privacy": "private"
3355
+ "name": "toggleCriteriaView",
3356
+ "return": {
3357
+ "type": {
3358
+ "text": "void"
3359
+ }
3360
+ }
3325
3361
  },
3326
3362
  {
3327
3363
  "kind": "method",
3328
- "name": "definitionChanged",
3329
- "privacy": "protected",
3364
+ "name": "removeChip",
3365
+ "return": {
3366
+ "type": {
3367
+ "text": "void"
3368
+ }
3369
+ },
3330
3370
  "parameters": [
3331
3371
  {
3332
- "name": "oldValue",
3372
+ "name": "groupIndex",
3333
3373
  "type": {
3334
- "text": "any"
3374
+ "text": "number"
3335
3375
  }
3336
3376
  },
3337
3377
  {
3338
- "name": "newValue",
3378
+ "name": "clauseIndex",
3339
3379
  "type": {
3340
- "text": "any"
3380
+ "text": "number"
3341
3381
  }
3342
3382
  }
3343
3383
  ]
3344
3384
  },
3345
3385
  {
3346
3386
  "kind": "method",
3347
- "name": "openChanged",
3348
- "privacy": "protected"
3387
+ "name": "clearChips",
3388
+ "return": {
3389
+ "type": {
3390
+ "text": "void"
3391
+ }
3392
+ }
3349
3393
  },
3350
3394
  {
3351
3395
  "kind": "method",
3352
- "name": "toggleActionsMenuVisibility"
3396
+ "name": "handleSubmit"
3353
3397
  },
3354
3398
  {
3355
3399
  "kind": "method",
3356
- "name": "onPopoverToggle",
3357
- "parameters": [
3358
- {
3359
- "name": "event",
3360
- "type": {
3361
- "text": "Event"
3362
- }
3363
- }
3364
- ],
3365
- "description": "Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes\nthe vertical menu without going through `toggleActionsMenuVisibility()`."
3366
- },
3367
- {
3368
- "kind": "method",
3369
- "name": "onIconOpenerKeydown",
3370
- "return": {
3371
- "type": {
3372
- "text": "boolean"
3373
- }
3374
- },
3375
- "parameters": [
3376
- {
3377
- "name": "event",
3378
- "type": {
3379
- "text": "KeyboardEvent"
3380
- }
3381
- }
3382
- ],
3383
- "description": "Opens the icon-only opener from the keyboard, as a native button would."
3384
- },
3385
- {
3386
- "kind": "method",
3387
- "name": "onActionMenuItemClick",
3388
- "parameters": [
3389
- {
3390
- "name": "callback",
3391
- "type": {
3392
- "text": "(rowData) => void | any"
3393
- }
3394
- }
3395
- ]
3400
+ "name": "handleBlur"
3396
3401
  },
3397
3402
  {
3398
3403
  "kind": "method",
3399
- "name": "isActionDisabled",
3400
- "return": {
3401
- "type": {
3402
- "text": "boolean"
3403
- }
3404
- },
3405
- "parameters": [
3406
- {
3407
- "name": "action",
3408
- "type": {
3409
- "text": "ActionMenuItem"
3410
- }
3411
- }
3412
- ],
3413
- "description": "Resolves an action's `isDisabled` for the current row."
3414
- },
3415
- {
3416
- "kind": "field",
3417
- "name": "resolvedActions",
3418
- "type": {
3419
- "text": "ActionMenuItem[]"
3420
- },
3421
- "description": "The actions for the current row: from `actionsResolver` when set, else `actions`.",
3422
- "readonly": true
3423
- },
3424
- {
3425
- "kind": "field",
3426
- "name": "hasVisibleActions",
3427
- "type": {
3428
- "text": "boolean"
3429
- },
3430
- "description": "Whether the row has an action to show: an enabled one, or any when disabled ones show.",
3431
- "readonly": true
3432
- },
3433
- {
3434
- "kind": "field",
3435
- "name": "allActions",
3436
- "type": {
3437
- "text": "ActionMenuItem[]"
3438
- },
3439
- "readonly": true
3440
- },
3441
- {
3442
- "kind": "field",
3443
- "name": "rowData",
3444
- "readonly": true
3404
+ "name": "clear"
3445
3405
  },
3446
3406
  {
3447
3407
  "kind": "method",
3448
- "name": "getLabel",
3449
- "parameters": [
3450
- {
3451
- "name": "name",
3452
- "type": {
3453
- "text": "string | ((rowData: any) => string)"
3454
- }
3455
- }
3456
- ]
3408
+ "name": "toggleSpeechInput"
3457
3409
  },
3458
3410
  {
3459
3411
  "kind": "method",
3460
- "name": "getTemplate",
3461
- "parameters": [
3462
- {
3463
- "name": "prefix",
3464
- "type": {
3465
- "text": "string"
3466
- }
3467
- }
3468
- ]
3412
+ "name": "clearSpeechApplyDebounce",
3413
+ "privacy": "private"
3469
3414
  },
3470
3415
  {
3471
3416
  "kind": "field",
@@ -3579,166 +3524,146 @@
3579
3524
  }
3580
3525
  }
3581
3526
  ],
3582
- "attributes": [
3583
- {
3584
- "name": "is-vertical",
3585
- "type": {
3586
- "text": "boolean"
3587
- },
3588
- "default": "false",
3589
- "fieldName": "isVertical"
3590
- },
3591
- {
3592
- "name": "add-default-actions",
3593
- "type": {
3594
- "text": "boolean"
3595
- },
3596
- "default": "true",
3597
- "fieldName": "addDefaultActions"
3598
- },
3599
- {
3600
- "name": "auto-close-on-action",
3601
- "type": {
3602
- "text": "boolean"
3603
- },
3604
- "default": "true",
3605
- "fieldName": "autoCloseOnAction"
3606
- },
3607
- {
3608
- "name": "name",
3609
- "type": {
3610
- "text": "string"
3611
- },
3612
- "default": "'Actions'",
3613
- "fieldName": "name"
3614
- },
3527
+ "events": [
3615
3528
  {
3616
- "name": "icon-name",
3617
- "type": {
3618
- "text": "string"
3619
- },
3620
- "description": "When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`\nfor an icon-only \"kebab\" opener).",
3621
- "fieldName": "iconName"
3529
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3530
+ "name": "criteria-changed"
3622
3531
  },
3623
3532
  {
3624
- "name": "open",
3625
- "type": {
3626
- "text": "boolean"
3627
- },
3628
- "default": "false",
3629
- "fieldName": "open"
3630
- },
3533
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3534
+ "name": "validation-errors"
3535
+ }
3536
+ ],
3537
+ "attributes": [
3631
3538
  {
3632
- "name": "buttonAppearance",
3539
+ "name": "placeholder",
3633
3540
  "type": {
3634
3541
  "text": "string"
3635
3542
  },
3636
- "fieldName": "buttonAppearance"
3637
- },
3638
- {
3639
- "name": "hide-disabled",
3640
- "type": {
3641
- "text": "boolean"
3642
- },
3643
- "default": "false",
3644
- "fieldName": "hideDisabled"
3543
+ "default": "'Describe your search criteria in natural language...'",
3544
+ "fieldName": "placeholder"
3645
3545
  },
3646
3546
  {
3647
- "name": "hide-menu-single-option",
3648
3547
  "type": {
3649
3548
  "text": "boolean"
3650
3549
  },
3651
- "default": "false",
3652
- "fieldName": "hideMenuSingleOption"
3550
+ "fieldName": "disabled"
3653
3551
  }
3654
3552
  ],
3655
3553
  "superclass": {
3656
3554
  "name": "FoundationElement",
3657
3555
  "package": "@microsoft/fast-foundation"
3658
3556
  },
3659
- "tagName": "%%prefix%%-actions-menu",
3557
+ "tagName": "%%prefix%%-ai-criteria-search",
3660
3558
  "customElement": true
3661
3559
  },
3662
3560
  {
3663
3561
  "kind": "variable",
3664
- "name": "foundationActionsMenu",
3665
- "description": "The Foundation Actions Menu",
3666
- "privacy": "public"
3562
+ "name": "foundationAiCriteriaSearchShadowOptions",
3563
+ "type": {
3564
+ "text": "ShadowRootInit"
3565
+ },
3566
+ "default": "undefined"
3567
+ },
3568
+ {
3569
+ "kind": "variable",
3570
+ "name": "defaultAiCriteriaSearchConfig",
3571
+ "type": {
3572
+ "text": "object"
3573
+ },
3574
+ "default": "{}"
3575
+ },
3576
+ {
3577
+ "kind": "variable",
3578
+ "name": "foundationAiCriteriaSearch"
3667
3579
  }
3668
3580
  ],
3669
3581
  "exports": [
3670
3582
  {
3671
3583
  "kind": "js",
3672
- "name": "ActionsMenu",
3584
+ "name": "AiCriteriaSearch",
3673
3585
  "declaration": {
3674
- "name": "ActionsMenu",
3675
- "module": "src/actions-menu/actions-menu.ts"
3586
+ "name": "AiCriteriaSearch",
3587
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3676
3588
  }
3677
3589
  },
3678
3590
  {
3679
3591
  "kind": "js",
3680
- "name": "foundationActionsMenu",
3592
+ "name": "foundationAiCriteriaSearchShadowOptions",
3681
3593
  "declaration": {
3682
- "name": "foundationActionsMenu",
3683
- "module": "src/actions-menu/actions-menu.ts"
3594
+ "name": "foundationAiCriteriaSearchShadowOptions",
3595
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3684
3596
  }
3685
- }
3686
- ]
3687
- },
3688
- {
3689
- "kind": "javascript-module",
3690
- "path": "src/actions-menu/ag-menu.styles.ts",
3691
- "declarations": [
3597
+ },
3692
3598
  {
3693
- "kind": "function",
3694
- "name": "agMenuStyles",
3695
- "return": {
3696
- "type": {
3697
- "text": ""
3698
- }
3699
- },
3700
- "parameters": [
3701
- {
3702
- "name": "menuSelector",
3703
- "type": {
3704
- "text": "string"
3705
- },
3706
- "description": "Selects the menu surface. May be a selector list."
3707
- },
3708
- {
3709
- "name": "itemSelector",
3710
- "type": {
3711
- "text": "string"
3712
- },
3713
- "description": "Selects a menu item. Must be a single selector, as states are appended to it."
3714
- }
3715
- ],
3716
- "description": "Styles a menu to match AG Grid's own menu (ag-menu / ag-menu-list / ag-menu-option), so a menu\ndrawn over a grid looks like the grid's. AG Grid's `--ag-*` variables apply where they are set;\nelsewhere the design system's tokens do, with fallbacks for when neither is in scope.",
3717
- "privacy": "public"
3718
- }
3719
- ],
3720
- "exports": [
3599
+ "kind": "js",
3600
+ "name": "defaultAiCriteriaSearchConfig",
3601
+ "declaration": {
3602
+ "name": "defaultAiCriteriaSearchConfig",
3603
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3604
+ }
3605
+ },
3721
3606
  {
3722
3607
  "kind": "js",
3723
- "name": "agMenuStyles",
3608
+ "name": "foundationAiCriteriaSearch",
3724
3609
  "declaration": {
3725
- "name": "agMenuStyles",
3726
- "module": "src/actions-menu/ag-menu.styles.ts"
3610
+ "name": "foundationAiCriteriaSearch",
3611
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3727
3612
  }
3728
3613
  }
3729
3614
  ]
3730
3615
  },
3731
3616
  {
3732
3617
  "kind": "javascript-module",
3733
- "path": "src/actions-menu/index.ts",
3618
+ "path": "src/ai-criteria-search/index.ts",
3734
3619
  "declarations": [],
3735
3620
  "exports": [
3736
3621
  {
3737
3622
  "kind": "js",
3738
- "name": "*",
3623
+ "name": "AiCriteriaSearch",
3739
3624
  "declaration": {
3740
- "name": "*",
3741
- "package": "./actions-menu.styles"
3625
+ "name": "AiCriteriaSearch",
3626
+ "module": "./ai-criteria-search"
3627
+ }
3628
+ },
3629
+ {
3630
+ "kind": "js",
3631
+ "name": "defaultAiCriteriaSearchConfig",
3632
+ "declaration": {
3633
+ "name": "defaultAiCriteriaSearchConfig",
3634
+ "module": "./ai-criteria-search"
3635
+ }
3636
+ },
3637
+ {
3638
+ "kind": "js",
3639
+ "name": "foundationAiCriteriaSearch",
3640
+ "declaration": {
3641
+ "name": "foundationAiCriteriaSearch",
3642
+ "module": "./ai-criteria-search"
3643
+ }
3644
+ },
3645
+ {
3646
+ "kind": "js",
3647
+ "name": "foundationAiCriteriaSearchShadowOptions",
3648
+ "declaration": {
3649
+ "name": "foundationAiCriteriaSearchShadowOptions",
3650
+ "module": "./ai-criteria-search"
3651
+ }
3652
+ },
3653
+ {
3654
+ "kind": "js",
3655
+ "name": "foundationAiCriteriaSearchStyles",
3656
+ "declaration": {
3657
+ "name": "foundationAiCriteriaSearchStyles",
3658
+ "module": "./ai-criteria-search.styles"
3659
+ }
3660
+ },
3661
+ {
3662
+ "kind": "js",
3663
+ "name": "foundationAiCriteriaSearchTemplate",
3664
+ "declaration": {
3665
+ "name": "foundationAiCriteriaSearchTemplate",
3666
+ "module": "./ai-criteria-search.template"
3742
3667
  }
3743
3668
  },
3744
3669
  {
@@ -3746,7 +3671,7 @@
3746
3671
  "name": "*",
3747
3672
  "declaration": {
3748
3673
  "name": "*",
3749
- "package": "./actions-menu.template"
3674
+ "package": "./validation/criteria-ir"
3750
3675
  }
3751
3676
  },
3752
3677
  {
@@ -3754,7 +3679,7 @@
3754
3679
  "name": "*",
3755
3680
  "declaration": {
3756
3681
  "name": "*",
3757
- "package": "./actions-menu"
3682
+ "package": "./validation/operator-map"
3758
3683
  }
3759
3684
  },
3760
3685
  {
@@ -3762,7 +3687,82 @@
3762
3687
  "name": "*",
3763
3688
  "declaration": {
3764
3689
  "name": "*",
3765
- "package": "./ag-menu.styles"
3690
+ "package": "./validation/schema-validator"
3691
+ }
3692
+ }
3693
+ ]
3694
+ },
3695
+ {
3696
+ "kind": "javascript-module",
3697
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3698
+ "declarations": [
3699
+ {
3700
+ "kind": "function",
3701
+ "name": "formatValidationErrors",
3702
+ "return": {
3703
+ "type": {
3704
+ "text": "string"
3705
+ }
3706
+ },
3707
+ "parameters": [
3708
+ {
3709
+ "name": "errors",
3710
+ "type": {
3711
+ "text": "ValidationError[]"
3712
+ }
3713
+ }
3714
+ ],
3715
+ "description": "Formats validation errors into a user-friendly message."
3716
+ },
3717
+ {
3718
+ "kind": "function",
3719
+ "name": "showCriteriaError",
3720
+ "return": {
3721
+ "type": {
3722
+ "text": "void"
3723
+ }
3724
+ },
3725
+ "parameters": [
3726
+ {
3727
+ "name": "title",
3728
+ "type": {
3729
+ "text": "string"
3730
+ },
3731
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3732
+ },
3733
+ {
3734
+ "name": "body",
3735
+ "type": {
3736
+ "text": "string"
3737
+ },
3738
+ "description": "Error message to display"
3739
+ },
3740
+ {
3741
+ "name": "tagName",
3742
+ "type": {
3743
+ "text": "string"
3744
+ },
3745
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3746
+ }
3747
+ ],
3748
+ "description": "Shows a criteria error as a toast notification."
3749
+ }
3750
+ ],
3751
+ "exports": [
3752
+ {
3753
+ "kind": "js",
3754
+ "name": "formatValidationErrors",
3755
+ "declaration": {
3756
+ "name": "formatValidationErrors",
3757
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3758
+ }
3759
+ },
3760
+ {
3761
+ "kind": "js",
3762
+ "name": "showCriteriaError",
3763
+ "declaration": {
3764
+ "name": "showCriteriaError",
3765
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3766
3766
  }
3767
3767
  }
3768
3768
  ]