@genesislcap/grid-pro 15.71.0 → 15.72.0-FUI-2629.7

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.
@@ -1,4 +1,4 @@
1
- import { ActionMenuItem } from '@genesislcap/foundation-ui';
1
+ import type { ActionMenuItems } from '@genesislcap/foundation-ui';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { Binding } from '@microsoft/fast-element';
4
4
  import { CaptureType } from '@microsoft/fast-element';
@@ -8,8 +8,8 @@ import { CellClassRules } from '@ag-grid-community/core';
8
8
  import { CellClassRules as CellClassRules_2 } from 'ag-grid-community';
9
9
  import { CellClickedEvent } from '@ag-grid-community/core';
10
10
  import { CellClickedEvent as CellClickedEvent_2 } from 'ag-grid-community';
11
- import { CellContextMenuEvent } from '@ag-grid-community/core';
12
- import { CellContextMenuEvent as CellContextMenuEvent_2 } from 'ag-grid-community';
11
+ import type { CellContextMenuEvent } from 'ag-grid-community';
12
+ import { CellContextMenuEvent as CellContextMenuEvent_2 } from '@ag-grid-community/core';
13
13
  import { CellDoubleClickedEvent } from '@ag-grid-community/core';
14
14
  import { CellDoubleClickedEvent as CellDoubleClickedEvent_2 } from 'ag-grid-community';
15
15
  import { CellEditorSelectorFunc } from '@ag-grid-community/core';
@@ -251,6 +251,7 @@ export declare class ActionsMenuRenderer extends FoundationElement implements IC
251
251
  params: ICellRendererParams;
252
252
  init(params: ICellRendererParams): void;
253
253
  getGui(): HTMLElement;
254
+ /** Hands the latest row data to the menu, so per-row actions and disabled states stay current. */
254
255
  refresh(params: ICellRendererParams): boolean;
255
256
  }
256
257
 
@@ -1653,6 +1654,15 @@ export declare const DEFAULT_STATUS_BAR_CONFIG: GridProStatusBarConfig;
1653
1654
  */
1654
1655
  export declare const defaultAgGridFontFace = "\n @font-face {\n font-family: \"agGridAlpine\";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAA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hBHu+MlTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n";
1655
1656
 
1657
+ /**
1658
+ * A CSV Export item, using AG Grid's community CSV export. Assign it to `contextMenuItems` as the
1659
+ * whole menu, or spread its result into a menu of your own. Empty when the grid sets
1660
+ * `suppressCsvExport`.
1661
+ *
1662
+ * @public
1663
+ */
1664
+ export declare function defaultGridContextMenuItems(event: CellContextMenuEvent): GridProContextMenuItem[];
1665
+
1656
1666
  /**
1657
1667
  * Default grid options
1658
1668
  * @public
@@ -3378,7 +3388,8 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3378
3388
  /**
3379
3389
  * Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for Actions Menu Renderer.
3380
3390
  * Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
3381
- * @param actions - Array of `ActionMenuItem` to be displayed in the menu.
3391
+ * @param actions - Array of `ActionMenuItem` to be displayed in the menu, or a function of the row data
3392
+ * returning that array (for row-scoped eligibility/permission filtering).
3382
3393
  * @param overrideDef - Optional override for the ColDef. Will override any of the default values. Default is an empty object.
3383
3394
  * @param customActionsOpenerName - Optional custom name for the button that opens the menu. Default is '⋮'.
3384
3395
  * @param isVertical - Optional flag to display the menu vertically. Default is false (displays the menu horizontally, follow the rowHeight).
@@ -3408,7 +3419,7 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3408
3419
  * ```
3409
3420
  * @public
3410
3421
  */
3411
- export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
3422
+ export declare const getActionsMenuDef: (actions: ActionMenuItems, overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
3412
3423
 
3413
3424
  /**
3414
3425
  * Get a Design System prefixed Checkbox template.
@@ -3572,6 +3583,41 @@ export declare const getTextFieldRendererTemplate: (designSystem?: string) => Vi
3572
3583
  */
3573
3584
  export declare const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
3574
3585
 
3586
+ /**
3587
+ * Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for a
3588
+ * vertical Actions Menu behind an icon-only "kebab" opener, for a pinned column of per-row actions.
3589
+ * Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
3590
+ * @remarks The opener hides itself on rows with no actions, so it never opens an empty menu. The
3591
+ * column has a `colId` but no `field`: AG Grid only refreshes a cell with a field when its value
3592
+ * changes, and this column has no value, so a row update would leave stale actions. Having no value,
3593
+ * the column is also not sortable, filterable, resizable or flashed, and shows no header menu
3594
+ * button — pass any of these in `overrideDef` to turn them back on.
3595
+ * @param actions - Array of `ActionMenuItem` to be displayed in the menu, or a function of the row data
3596
+ * returning that array (for row-scoped eligibility/permission filtering).
3597
+ * @param overrideDef - Optional override for the ColDef. Will override any of the default values. Default is an empty object.
3598
+ * @param iconName - Optional icon name for the opener. Default is `'ellipsis'` (horizontal dots); pass `'ellipsis-vertical'` for vertical ones.
3599
+ * @param buttonAppearance - Optional appearance for the button that opens the menu.
3600
+ * @param hideDisabled - Optional flag to hide disabled actions instead of greying them out. Default is false.
3601
+ * When every action for a row is hidden, the opener hides too.
3602
+ * @returns Merged ColDef (base ColDef created from the parameters + overrideDef) for Actions Menu Renderer.
3603
+ * @example
3604
+ * ```ts
3605
+ * public exampleMoreColumnDef: ColDef = getVerticalDropdownMenuDef(
3606
+ * (rowData) => [
3607
+ * { name: 'Ping Trader', icon: { name: 'paper-plane' }, callback: (rowData) => pingTrader(rowData) },
3608
+ * { name: 'Assign', icon: { name: 'user' }, callback: (rowData) => assign(rowData) },
3609
+ * ],
3610
+ * { headerName: '', pinned: 'right' },
3611
+ * );
3612
+ * ```
3613
+ * @public
3614
+ */
3615
+ export declare const getVerticalDropdownMenuDef: (actions: ActionMenuItems, overrideDef?: ColDef & {
3616
+ suppressHeaderMenuButton?: boolean;
3617
+ }, iconName?: string, buttonAppearance?: string, hideDisabled?: boolean) => ColDef & {
3618
+ suppressHeaderMenuButton?: boolean;
3619
+ };
3620
+
3575
3621
  /** Context key on `gridOptions.context` for AG column drag integration.
3576
3622
  * @public
3577
3623
  */
@@ -3742,6 +3788,23 @@ export declare class GridPro extends GridPro_base {
3742
3788
  * @internal
3743
3789
  */
3744
3790
  get statusBar(): GridProStatusBar | undefined;
3791
+ /**
3792
+ * Opts the grid into its own right-click menu, built from these items for each cell. It needs no
3793
+ * AG Grid Enterprise module, and replaces AG Grid's context menu while set. Assign
3794
+ * {@link defaultGridContextMenuItems} for a CSV Export menu, or return an empty list to show the
3795
+ * browser's menu for that cell.
3796
+ *
3797
+ * Unset, right-click is left alone: AG Grid's menu when its `ContextMenu` module is registered,
3798
+ * otherwise the browser's.
3799
+ *
3800
+ * @public
3801
+ */
3802
+ contextMenuItems?: GridProContextMenuItems;
3803
+ contextMenuItemsChanged(): void;
3804
+ /** Removes the open right-click menu, if there is one. */
3805
+ private closeContextMenu?;
3806
+ /** Whether the AG grid instance was created with its own context menu suppressed. */
3807
+ private gridCreatedWithMenuSuppressed;
3745
3808
  /**
3746
3809
  * Shows a Columns side panel on the trailing edge of the grid.
3747
3810
  * @public
@@ -3775,6 +3838,11 @@ export declare class GridPro extends GridPro_base {
3775
3838
  private luminanceSubscription?;
3776
3839
  private visibilityObserverCleanup?;
3777
3840
  private readonly boundGlobalEventListener;
3841
+ /**
3842
+ * `globalListener` runs on a timeout, which is too late to cancel the browser menu.
3843
+ * This one runs inside the right-click event.
3844
+ */
3845
+ private readonly boundContextMenuListener;
3778
3846
  private _filterConfig;
3779
3847
  getfilterModel(): Promise<{
3780
3848
  [key: string]: any;
@@ -4117,7 +4185,7 @@ export declare class GridPro extends GridPro_base {
4117
4185
  onCellValueChanged?: ((event: NewValueParams<any>) => void) | ((event: NewValueParams_2<any, any, any>) => void);
4118
4186
  onCellClicked?: ((event: CellClickedEvent<any, any>) => void) | ((event: CellClickedEvent_2<any, any, any>) => void);
4119
4187
  onCellDoubleClicked?: ((event: CellDoubleClickedEvent<any, any>) => void) | ((event: CellDoubleClickedEvent_2<any, any, any>) => void);
4120
- onCellContextMenu?: ((event: CellContextMenuEvent<any, any>) => void) | ((event: CellContextMenuEvent_2<any, any, any>) => void);
4188
+ onCellContextMenu?: ((event: CellContextMenuEvent_2<any, any>) => void) | ((event: CellContextMenuEvent<any, any, any>) => void);
4121
4189
  getQuickFilterText?: ((params: GetQuickFilterTextParams<any, any>) => string) | GetQuickFilterText<any, any, any>;
4122
4190
  filterValueGetter?: string | ValueGetterFunc<any> | ValueGetterFunc_2<any, any, any>;
4123
4191
  floatingFilter?: boolean;
@@ -4258,6 +4326,20 @@ export declare class GridPro extends GridPro_base {
4258
4326
  protected setupStatusBar(gridOptions: GridOptions_2): void;
4259
4327
  get observedAttributes(): string[];
4260
4328
  agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
4329
+ /**
4330
+ * AG Grid draws its own menu when `ContextMenu` is registered, so it is suppressed while
4331
+ * `contextMenuItems` is set and the app's own `suppressContextMenu` restored when it is cleared.
4332
+ * The suppression goes to AG Grid only, never into `agGridOptions`: that object is what the
4333
+ * `gridOptions` getter returns, and an app re-applying it would otherwise adopt the setting.
4334
+ * @internal
4335
+ */
4336
+ private syncContextMenuSuppression;
4337
+ /**
4338
+ * Opens the grid's right-click menu for a cell. Called from the synchronous grid listener so
4339
+ * `preventDefault` still cancels the browser menu.
4340
+ * @internal
4341
+ */
4342
+ private showContextMenu;
4261
4343
  globalEventListener(eventType: any, event: any): void;
4262
4344
  }
4263
4345
 
@@ -5245,6 +5327,38 @@ export declare type GridProColumnSelectionHost = ColumnSelectionHost;
5245
5327
  */
5246
5328
  export declare const gridProColumnSelectionHostStyles: ElementStyles;
5247
5329
 
5330
+ /**
5331
+ * An item, or `'separator'` for a dividing line between groups of items.
5332
+ *
5333
+ * @public
5334
+ */
5335
+ export declare type GridProContextMenuEntry = GridProContextMenuItem | 'separator';
5336
+
5337
+ /**
5338
+ * One entry in grid-pro's right-click menu.
5339
+ *
5340
+ * @public
5341
+ */
5342
+ export declare interface GridProContextMenuItem {
5343
+ name: string;
5344
+ /** Drawn to the right of the name, for example a key combination. */
5345
+ shortcut?: string;
5346
+ /** Shown on hover, including while the item is disabled — say why it cannot be chosen. */
5347
+ tooltip?: string;
5348
+ disabled?: boolean;
5349
+ /** Set to `true` or `false` to make the item a checkbox; leave unset for a plain item. */
5350
+ checked?: boolean;
5351
+ action?: () => void;
5352
+ subMenu?: GridProContextMenuEntry[];
5353
+ }
5354
+
5355
+ /**
5356
+ * Builds the right-click menu for one cell. Return an empty list to show the browser's menu.
5357
+ *
5358
+ * @public
5359
+ */
5360
+ export declare type GridProContextMenuItems = (event: CellContextMenuEvent) => GridProContextMenuEntry[];
5361
+
5248
5362
  /**
5249
5363
  * Grid Pro possible error events
5250
5364
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "15.71.0",
4
+ "version": "15.72.0-FUI-2629.7",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,19 +38,19 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "15.71.0",
42
- "@genesislcap/genx": "15.71.0",
43
- "@genesislcap/ts-builder": "15.71.0",
44
- "@genesislcap/uvu-playwright-builder": "15.71.0",
45
- "@genesislcap/vite-builder": "15.71.0",
46
- "@genesislcap/webpack-builder": "15.71.0"
41
+ "@genesislcap/foundation-testing": "15.72.0-FUI-2629.7",
42
+ "@genesislcap/genx": "15.72.0-FUI-2629.7",
43
+ "@genesislcap/ts-builder": "15.72.0-FUI-2629.7",
44
+ "@genesislcap/uvu-playwright-builder": "15.72.0-FUI-2629.7",
45
+ "@genesislcap/vite-builder": "15.72.0-FUI-2629.7",
46
+ "@genesislcap/webpack-builder": "15.72.0-FUI-2629.7"
47
47
  },
48
48
  "dependencies": {
49
- "@genesislcap/foundation-comms": "15.71.0",
50
- "@genesislcap/foundation-criteria": "15.71.0",
51
- "@genesislcap/foundation-logger": "15.71.0",
52
- "@genesislcap/foundation-ui": "15.71.0",
53
- "@genesislcap/foundation-utils": "15.71.0",
49
+ "@genesislcap/foundation-comms": "15.72.0-FUI-2629.7",
50
+ "@genesislcap/foundation-criteria": "15.72.0-FUI-2629.7",
51
+ "@genesislcap/foundation-logger": "15.72.0-FUI-2629.7",
52
+ "@genesislcap/foundation-ui": "15.72.0-FUI-2629.7",
53
+ "@genesislcap/foundation-utils": "15.72.0-FUI-2629.7",
54
54
  "@microsoft/fast-colors": "5.3.1",
55
55
  "@microsoft/fast-components": "2.30.6",
56
56
  "@microsoft/fast-element": "1.14.0",