@genesislcap/foundation-ui 15.79.0 → 15.79.1

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