@genesislcap/grid-pro 15.64.0 → 15.64.1-FUI-2629.6
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.
- package/dist/custom-elements.json +9496 -9470
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts +33 -3
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts.map +1 -1
- package/dist/dts/datasource/filter.utils.d.ts.map +1 -1
- package/dist/dts/datasource/infinite.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/infinite.resource.d.ts +3 -2
- package/dist/dts/datasource/infinite.resource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +0 -4
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +1 -1
- package/dist/dts/datasource/sort-index.utils.d.ts +17 -0
- package/dist/dts/datasource/sort-index.utils.d.ts.map +1 -0
- package/dist/dts/grid-pro.d.ts +9 -0
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.metadata-enrichment.d.ts +35 -0
- package/dist/dts/grid-pro.metadata-enrichment.d.ts.map +1 -0
- package/dist/dts/react.d.ts +58 -58
- package/dist/esm/cell-renderers/actions-menu.renderer.js +51 -2
- package/dist/esm/datasource/filter.utils.js +4 -5
- package/dist/esm/datasource/infinite.datasource.js +5 -10
- package/dist/esm/datasource/infinite.resource.js +10 -14
- package/dist/esm/datasource/server-side.datasource.js +5 -1
- package/dist/esm/datasource/server-side.resource-base.js +0 -10
- package/dist/esm/datasource/server-side.resource-dataserver.js +10 -9
- package/dist/esm/datasource/sort-index.utils.js +31 -0
- package/dist/esm/grid-pro.js +39 -10
- package/dist/esm/grid-pro.metadata-enrichment.js +75 -0
- package/dist/grid-pro.api.json +123 -19
- package/dist/grid-pro.d.ts +43 -3
- package/dist/react.cjs +39 -39
- package/dist/react.mjs +32 -32
- package/package.json +12 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColDef, ICellRendererComp, ICellRendererParams } from '@ag-grid-community/core';
|
|
2
|
-
import {
|
|
2
|
+
import type { ActionMenuItems } from '@genesislcap/foundation-ui';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
/**
|
|
5
5
|
* The Actions Menu Renderer element.
|
|
@@ -11,6 +11,7 @@ export declare class ActionsMenuRenderer extends FoundationElement implements IC
|
|
|
11
11
|
params: ICellRendererParams;
|
|
12
12
|
init(params: ICellRendererParams): void;
|
|
13
13
|
getGui(): HTMLElement;
|
|
14
|
+
/** Hands the latest row data to the menu, so per-row actions and disabled states stay current. */
|
|
14
15
|
refresh(params: ICellRendererParams): boolean;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
@@ -30,7 +31,8 @@ export declare const foundationGridProActionsMenuRenderer: (overrideDefinition?:
|
|
|
30
31
|
/**
|
|
31
32
|
* Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for Actions Menu Renderer.
|
|
32
33
|
* Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
|
|
33
|
-
* @param actions - Array of `ActionMenuItem` to be displayed in the menu
|
|
34
|
+
* @param actions - Array of `ActionMenuItem` to be displayed in the menu, or a function of the row data
|
|
35
|
+
* returning that array (for row-scoped eligibility/permission filtering).
|
|
34
36
|
* @param overrideDef - Optional override for the ColDef. Will override any of the default values. Default is an empty object.
|
|
35
37
|
* @param customActionsOpenerName - Optional custom name for the button that opens the menu. Default is '⋮'.
|
|
36
38
|
* @param isVertical - Optional flag to display the menu vertically. Default is false (displays the menu horizontally, follow the rowHeight).
|
|
@@ -60,5 +62,33 @@ export declare const foundationGridProActionsMenuRenderer: (overrideDefinition?:
|
|
|
60
62
|
* ```
|
|
61
63
|
* @public
|
|
62
64
|
*/
|
|
63
|
-
export declare const getActionsMenuDef: (actions:
|
|
65
|
+
export declare const getActionsMenuDef: (actions: ActionMenuItems, overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
|
|
66
|
+
/**
|
|
67
|
+
* Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for a
|
|
68
|
+
* vertical Actions Menu behind an icon-only "kebab" opener, for a pinned column of per-row actions.
|
|
69
|
+
* Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
|
|
70
|
+
* @remarks The opener hides itself on rows with no actions, so it never opens an empty menu. The
|
|
71
|
+
* column has a `colId` but no `field`: AG Grid only refreshes a cell with a field when its value
|
|
72
|
+
* changes, and this column has no value, so a row update would leave stale actions.
|
|
73
|
+
* @param actions - Array of `ActionMenuItem` to be displayed in the menu, or a function of the row data
|
|
74
|
+
* returning that array (for row-scoped eligibility/permission filtering).
|
|
75
|
+
* @param overrideDef - Optional override for the ColDef. Will override any of the default values. Default is an empty object.
|
|
76
|
+
* @param iconName - Optional icon name for the opener. Default is `'ellipsis'` (horizontal dots); pass `'ellipsis-vertical'` for vertical ones.
|
|
77
|
+
* @param buttonAppearance - Optional appearance for the button that opens the menu.
|
|
78
|
+
* @param hideDisabled - Optional flag to hide disabled actions instead of greying them out. Default is false.
|
|
79
|
+
* When every action for a row is hidden, the opener hides too.
|
|
80
|
+
* @returns Merged ColDef (base ColDef created from the parameters + overrideDef) for Actions Menu Renderer.
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* public exampleMoreColumnDef: ColDef = getVerticalDropdownMenuDef(
|
|
84
|
+
* (rowData) => [
|
|
85
|
+
* { name: 'Ping Trader', icon: { name: 'paper-plane' }, callback: (rowData) => pingTrader(rowData) },
|
|
86
|
+
* { name: 'Assign', icon: { name: 'user' }, callback: (rowData) => assign(rowData) },
|
|
87
|
+
* ],
|
|
88
|
+
* { headerName: '', pinned: 'right' },
|
|
89
|
+
* );
|
|
90
|
+
* ```
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare const getVerticalDropdownMenuDef: (actions: ActionMenuItems, overrideDef?: ColDef, iconName?: string, buttonAppearance?: string, hideDisabled?: boolean) => ColDef;
|
|
64
94
|
//# sourceMappingURL=actions-menu.renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAI5B,kGAAkG;IAC3F,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAI3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,eAAe,EACxB,cAAa,MAAW,EACxB,0BAAyB,MAAY,EACrC,aAAY,OAAe,EAC3B,mBAAmB,MAAM,KACxB,MAqBF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,eAAe,EACxB,cAAa,MAAW,EACxB,WAAU,MAAmB,EAC7B,mBAAmB,MAAM,EACzB,eAAc,OAAe,KAC5B,MAmBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.utils.d.ts","sourceRoot":"","sources":["../../../src/datasource/filter.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"filter.utils.d.ts","sourceRoot":"","sources":["../../../src/datasource/filter.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAoBpE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAyB9F;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,GAAG,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,MAAM,GAAG,IAAI,CAiEf;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiChG;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmC9F;AA6DD;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,GAAG,MAAM,CAqBjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infinite.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/infinite.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,aAAa,EACb,UAAU,EAOX,MAAM,+BA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asource, IGetRowsParams, SortModelItem } from 'ag-grid-communi
|
|
|
5
5
|
* @remarks The two transports order rows differently, matching what the SSRM datasources send:
|
|
6
6
|
* - REQUEST_SERVER takes the column directly with the direction inline (`NAME DESC`) and no
|
|
7
7
|
* REVERSE flag; the column does not have to belong to an index.
|
|
8
|
-
* - DATASERVER takes the name of an INDEX
|
|
9
|
-
*
|
|
8
|
+
* - DATASERVER takes the name of an INDEX the column leads, plus REVERSE. An index orders by its
|
|
9
|
+
* leading field, so a column that only trails in an index, or leads none (or only unnamed
|
|
10
|
+
* ones), cannot be ordered server-side.
|
|
10
11
|
* @param sortModel - The AG Grid sort model
|
|
11
12
|
* @param resourceIndexes - Available indexes for sorting (DATASERVER)
|
|
12
13
|
* @param isRequestServer - Whether the resource is a REQUEST_SERVER
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infinite.resource.d.ts","sourceRoot":"","sources":["../../../src/datasource/infinite.resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EAExB,cAAc,EAEd,mBAAmB,EAEnB,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"infinite.resource.d.ts","sourceRoot":"","sources":["../../../src/datasource/infinite.resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EAExB,cAAc,EAEd,mBAAmB,EAEnB,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,aAAa,EAAE,EAC1B,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACtC,eAAe,UAAQ,GACtB;IAAE,OAAO,EA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mGAAmG;IACnG,OAAO,KAAK,WAAW,GAEtB;IAED;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAwBxB;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAO/B,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IASxB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IA8BlB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;OAGG;IACH,OAAO,CAAC,WAAW;IAsCnB;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAenB,gBAAgB;IAChB,OAAO,CAAC,oBAAoB;IAO5B;;;;;;;OAOG;IACH,KAAK,IAAI,IAAI;IAIb;;;OAGG;IACH,OAAO,CAAC,8BAA8B;IAgBtC;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,IAAI;IAMhB;;;;;;;OAOG;IACH,MAAM,IAAI,IAAI;CAOf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,iBAAiB,EAWlB,MAAM,+BAA+B,CAAC;AAavC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,iBAAiB,EAWlB,MAAM,+BAA+B,CAAC;AAavC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;kBAqCvD,CAAA;;;;;;;;8BA0B0C,CAAC,cAEpC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAkCqB,CAAA;4IAOa,CAAC;wFAEL,CAAC;+IAMkB,CAAC;2FAGT,CAAC;;;;;;;;;;;;;;;;;;;;;;;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AGG;IACH,OAAO,CAAC,mCAAmC;IAU3C;;;OAGG;IACH,OAAO,CAAC,oCAAoC;IAMtC,IAAI;IAiDV,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,iBAAiB,CAqFvB;IAEa,OAAO;IAsBP,OAAO;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,0BAA0B;IAYlC;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B;YAKpB,mBAAmB;IAKjC;;;;;;;;;;;;OAYG;YACW,kBAAkB;IA+BhC;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB,CAA+B;IAEzD;;;;;;;;;OASG;IACH,OAAO,CAAC,0BAA0B,CAAS;IAE3C;;;;;;OAMG;IACI,uBAAuB;IAM9B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,wBAAwB;IAiGhC,OAAO,CAAC,yBAAyB;YA4DnB,sBAAsB;YAqEtB,eAAe;IAuBpB,QAAQ;CAGlB"}
|
|
@@ -101,10 +101,6 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
101
101
|
invalidatePendingLoads(): void;
|
|
102
102
|
refreshDatasource(params: DatasourceOptions): Promise<void>;
|
|
103
103
|
private updateResourceParams;
|
|
104
|
-
protected getOrderByAndToBeSortedColIds(map: any, searchValue: any): {
|
|
105
|
-
orderBy: any;
|
|
106
|
-
toBeSorted: any[];
|
|
107
|
-
};
|
|
108
104
|
protected buildCriteriaMatchFromFilters(): string;
|
|
109
105
|
protected criteriaFromFilters(): string[];
|
|
110
106
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,E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,oBAAoB;IAa5B,SAAS,CAAC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EACP,cAAc,EACd,iBAAiB,EAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQhE;;;;;GAKG;AACH,8BAAsB,wBAAyB,YAAW,qBAAqB;IACvE,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IAElB,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;IAEtC,sBAAsB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7C,SAAS,CAAC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,SAAS,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACtD,SAAS,CAAC,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE3D,gGAAgG;IAChG,SAAS,CAAC,MAAM,EAAE,oB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4BAA4B,CACpC,MAAM,EAAE,wBAAwB,EAChC,cAAc,EAAE,iBAAiB,GAChC,IAAI;IAWP,SAAS,CAAC,qBAAqB,IAAI,IAAI;IAIvC,SAAS,CAAC,mBAAmB,IAAI,IAAI;CAGtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EAGjB,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EAGjB,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAavE;;;GAGG;AACH,qBAAa,8BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAS;IAEzD;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAAgC;IAErD;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB,CAAK;IAE9B;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB,CAA0B;IAEvD;;;;;;OAMG;IACH,OAAO,KAAK,cAAc,GAEzB;IAED;;;;OAIG;IACH,OAAO,CAAC,qBAAqB,CAAS;IAEtC,iFAAiF;IACjF,OAAO,CAAC,aAAa,CAAS;IAE9B,mEAAmE;IACnE,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa,CAAsC;IAE3D,2EAA2E;IAC3E,OAAO,CAAC,iBAAiB,CAAqB;IAE9C,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,4BAA4B,EAAE,kBAAkB,CAAC;IACjD,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;gBAE7C,OAAO,EAAE,2BAA2B;IAK1C,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB3D,OAAO,CAAC,MAAM,EAAE,wBAAwB;IA8K9C,gBAAgB;IAChB,OAAO,CAAC,sBAAsB;IAQ9B;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAShC;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAoE7B;;;;OAIG;IACH,OAAO,KAAK,YAAY,GAEvB;IAED;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IA8BxB;;;OAGG;cACgB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM,GAAG,SAAS;IAK3F;;;OAGG;cACa,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAqE1E,OAAO;IAeb,OAAO,CAAC,uBAAuB;IAkE/B,kEAAkE;IAClE,OAAO,CAAC,YAAY;CAUrB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finds the index a DATASERVER can ORDER_BY to sort rows by `field`.
|
|
3
|
+
* @remarks ORDER_BY on an index orders rows by its fields in turn, so only an index that `field`
|
|
4
|
+
* leads orders by it; a trailing field is only ordered within groups of the fields before it. An
|
|
5
|
+
* index with no NAME cannot be named in ORDER_BY.
|
|
6
|
+
* @param indexes - The resource's indexes, keyed by name
|
|
7
|
+
* @param field - The field to sort by
|
|
8
|
+
* @returns The name of the first named index `field` leads, or undefined when it leads none
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare function findIndexLedBy(indexes: Map<string, string[]>, field: string): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The fields a DATASERVER can sort by: those that lead a named index (see `findIndexLedBy`).
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function getIndexLeadingFields(indexes: Map<string, string[]>): Set<string>;
|
|
17
|
+
//# sourceMappingURL=sort-index.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-index.utils.d.ts","sourceRoot":"","sources":["../../../src/datasource/sort-index.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOhG;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAQjF"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -624,6 +624,15 @@ export declare class GridPro extends GridPro_base {
|
|
|
624
624
|
* @internal
|
|
625
625
|
*/
|
|
626
626
|
private processSchemaUpdate;
|
|
627
|
+
/**
|
|
628
|
+
* Fills the consumer's column defs with the sortability, filter and set-filter values the
|
|
629
|
+
* schema knows and they left unset.
|
|
630
|
+
* @remarks Reads `getGridOption('columnDefs')` - the defs as given - rather than
|
|
631
|
+
* `getColumnDefs()`, which merges in `defaultColDef`, so an unset `sortable` would already read
|
|
632
|
+
* as the datasource default.
|
|
633
|
+
* @internal
|
|
634
|
+
*/
|
|
635
|
+
private enrichPresetColumnDefs;
|
|
627
636
|
/**
|
|
628
637
|
* Downgrades enterprise filters in metadata-generated colDefs when their modules are not
|
|
629
638
|
* registered — from v35 AG Grid throws on unregistered filters instead of falling back.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAAU,EAEV,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAwD3B,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,gDAAgD,CAAC;AAMxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAAU,EAEV,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAwD3B,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,gDAAgD,CAAC;AAMxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAkCrE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL,iBAAiB,EAEjB,sBAAsB,EACtB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5B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ColDef, ColGroupDef } from 'ag-grid-community';
|
|
2
|
+
/**
|
|
3
|
+
* Whether a column filter lists set values that metadata can supply.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const isSetFilter: (filter: ColDef["filter"]) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The enum values datasource metadata gives a column's set filter.
|
|
9
|
+
* @remarks Flat (`{ values }`) on the server-side and infinite datasources, but nested in a multi
|
|
10
|
+
* filter's set sub-filter on the client-side datasource - an enum filter once
|
|
11
|
+
* `applyCommunityFilterFallbacks` has swapped out an unregistered set filter.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function getMetadataSetFilterValues(metadataColDef: ColDef | undefined): any;
|
|
15
|
+
/**
|
|
16
|
+
* Options for `enrichColumnDefsFromMetadata`.
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export type MetadataEnrichmentOptions = {
|
|
20
|
+
/** Give columns with no filter, or `filter: true`, the metadata filter for their field. */
|
|
21
|
+
fillUnsetFilters: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Fills what consumer-authored column defs leave unset from the datasource's metadata column defs.
|
|
25
|
+
* @remarks Only what the server decides is filled in: whether the column sorts (a DATASERVER can
|
|
26
|
+
* only order by an index), the filter its field type and transport support (when `filter` is
|
|
27
|
+
* unset or `true`, and `fillUnsetFilters` is set), and the enum values a set filter lists.
|
|
28
|
+
* Formatting, rendering and headers stay the consumer's. A column is matched on `field`, and only
|
|
29
|
+
* when its `colId` is unset or the same: the datasources send the column id as the server field
|
|
30
|
+
* in ORDER_BY and CRITERIA_MATCH.
|
|
31
|
+
* @returns The enriched column defs, or `columnDefs` itself when nothing was filled in
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare function enrichColumnDefsFromMetadata(columnDefs: (ColDef | ColGroupDef)[], metadataColDefs: ColDef[], options: MetadataEnrichmentOptions): (ColDef | ColGroupDef)[];
|
|
35
|
+
//# sourceMappingURL=grid-pro.metadata-enrichment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-pro.metadata-enrichment.d.ts","sourceRoot":"","sources":["../../src/grid-pro.metadata-enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG7D;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,CAAC,QAAQ,CAAC,YACwB,CAAC;AAE7E;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,OAM5E;AAED;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,2FAA2F;IAC3F,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAuCF;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,EACpC,eAAe,EAAE,MAAM,EAAE,EACzB,OAAO,EAAE,yBAAyB,GACjC,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAmB1B"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -83,14 +83,59 @@ export declare const GridPro: React.ForwardRefExoticComponent<
|
|
|
83
83
|
>;
|
|
84
84
|
export type GridProRef = GridProWC;
|
|
85
85
|
|
|
86
|
-
export declare const
|
|
86
|
+
export declare const GridProCell: React.ForwardRefExoticComponent<
|
|
87
87
|
React.PropsWithChildren<
|
|
88
|
-
Omit<PublicOf<
|
|
88
|
+
Omit<PublicOf<GridProCellWC>, 'children' | 'style'> &
|
|
89
89
|
HTMLWCProps & {
|
|
90
90
|
}
|
|
91
|
-
> & React.RefAttributes<
|
|
91
|
+
> & React.RefAttributes<GridProCellWC>
|
|
92
92
|
>;
|
|
93
|
-
export type
|
|
93
|
+
export type GridProCellRef = GridProCellWC;
|
|
94
|
+
|
|
95
|
+
export declare const DateEditor: React.ForwardRefExoticComponent<
|
|
96
|
+
React.PropsWithChildren<
|
|
97
|
+
Omit<PublicOf<DateEditorWC>, 'children' | 'style'> &
|
|
98
|
+
HTMLWCProps & {
|
|
99
|
+
}
|
|
100
|
+
> & React.RefAttributes<DateEditorWC>
|
|
101
|
+
>;
|
|
102
|
+
export type DateEditorRef = DateEditorWC;
|
|
103
|
+
|
|
104
|
+
export declare const MultiselectEditor: React.ForwardRefExoticComponent<
|
|
105
|
+
React.PropsWithChildren<
|
|
106
|
+
Omit<PublicOf<MultiselectEditorWC>, 'children' | 'style'> &
|
|
107
|
+
HTMLWCProps & {
|
|
108
|
+
}
|
|
109
|
+
> & React.RefAttributes<MultiselectEditorWC>
|
|
110
|
+
>;
|
|
111
|
+
export type MultiselectEditorRef = MultiselectEditorWC;
|
|
112
|
+
|
|
113
|
+
export declare const NumberEditor: React.ForwardRefExoticComponent<
|
|
114
|
+
React.PropsWithChildren<
|
|
115
|
+
Omit<PublicOf<NumberEditorWC>, 'children' | 'style'> &
|
|
116
|
+
HTMLWCProps & {
|
|
117
|
+
}
|
|
118
|
+
> & React.RefAttributes<NumberEditorWC>
|
|
119
|
+
>;
|
|
120
|
+
export type NumberEditorRef = NumberEditorWC;
|
|
121
|
+
|
|
122
|
+
export declare const SelectEditor: React.ForwardRefExoticComponent<
|
|
123
|
+
React.PropsWithChildren<
|
|
124
|
+
Omit<PublicOf<SelectEditorWC>, 'children' | 'style'> &
|
|
125
|
+
HTMLWCProps & {
|
|
126
|
+
}
|
|
127
|
+
> & React.RefAttributes<SelectEditorWC>
|
|
128
|
+
>;
|
|
129
|
+
export type SelectEditorRef = SelectEditorWC;
|
|
130
|
+
|
|
131
|
+
export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
132
|
+
React.PropsWithChildren<
|
|
133
|
+
Omit<PublicOf<StringEditorWC>, 'children' | 'style'> &
|
|
134
|
+
HTMLWCProps & {
|
|
135
|
+
}
|
|
136
|
+
> & React.RefAttributes<StringEditorWC>
|
|
137
|
+
>;
|
|
138
|
+
export type StringEditorRef = StringEditorWC;
|
|
94
139
|
|
|
95
140
|
export declare const ActionRenderer: React.ForwardRefExoticComponent<
|
|
96
141
|
React.PropsWithChildren<
|
|
@@ -164,6 +209,15 @@ export declare const AgTextRenderer: React.ForwardRefExoticComponent<
|
|
|
164
209
|
>;
|
|
165
210
|
export type AgTextRendererRef = AgTextRendererWC;
|
|
166
211
|
|
|
212
|
+
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
213
|
+
React.PropsWithChildren<
|
|
214
|
+
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
|
215
|
+
HTMLWCProps & {
|
|
216
|
+
}
|
|
217
|
+
> & React.RefAttributes<GridProColumnWC>
|
|
218
|
+
>;
|
|
219
|
+
export type GridProColumnRef = GridProColumnWC;
|
|
220
|
+
|
|
167
221
|
export declare const ColumnSelection: React.ForwardRefExoticComponent<
|
|
168
222
|
React.PropsWithChildren<
|
|
169
223
|
Omit<PublicOf<ColumnSelectionWC>, 'children' | 'style'> &
|
|
@@ -253,60 +307,6 @@ export declare const GridProServerSideDatasource: React.ForwardRefExoticComponen
|
|
|
253
307
|
>;
|
|
254
308
|
export type GridProServerSideDatasourceRef = GridProServerSideDatasourceWC;
|
|
255
309
|
|
|
256
|
-
export declare const DateEditor: React.ForwardRefExoticComponent<
|
|
257
|
-
React.PropsWithChildren<
|
|
258
|
-
Omit<PublicOf<DateEditorWC>, 'children' | 'style'> &
|
|
259
|
-
HTMLWCProps & {
|
|
260
|
-
}
|
|
261
|
-
> & React.RefAttributes<DateEditorWC>
|
|
262
|
-
>;
|
|
263
|
-
export type DateEditorRef = DateEditorWC;
|
|
264
|
-
|
|
265
|
-
export declare const MultiselectEditor: React.ForwardRefExoticComponent<
|
|
266
|
-
React.PropsWithChildren<
|
|
267
|
-
Omit<PublicOf<MultiselectEditorWC>, 'children' | 'style'> &
|
|
268
|
-
HTMLWCProps & {
|
|
269
|
-
}
|
|
270
|
-
> & React.RefAttributes<MultiselectEditorWC>
|
|
271
|
-
>;
|
|
272
|
-
export type MultiselectEditorRef = MultiselectEditorWC;
|
|
273
|
-
|
|
274
|
-
export declare const NumberEditor: React.ForwardRefExoticComponent<
|
|
275
|
-
React.PropsWithChildren<
|
|
276
|
-
Omit<PublicOf<NumberEditorWC>, 'children' | 'style'> &
|
|
277
|
-
HTMLWCProps & {
|
|
278
|
-
}
|
|
279
|
-
> & React.RefAttributes<NumberEditorWC>
|
|
280
|
-
>;
|
|
281
|
-
export type NumberEditorRef = NumberEditorWC;
|
|
282
|
-
|
|
283
|
-
export declare const SelectEditor: React.ForwardRefExoticComponent<
|
|
284
|
-
React.PropsWithChildren<
|
|
285
|
-
Omit<PublicOf<SelectEditorWC>, 'children' | 'style'> &
|
|
286
|
-
HTMLWCProps & {
|
|
287
|
-
}
|
|
288
|
-
> & React.RefAttributes<SelectEditorWC>
|
|
289
|
-
>;
|
|
290
|
-
export type SelectEditorRef = SelectEditorWC;
|
|
291
|
-
|
|
292
|
-
export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
293
|
-
React.PropsWithChildren<
|
|
294
|
-
Omit<PublicOf<StringEditorWC>, 'children' | 'style'> &
|
|
295
|
-
HTMLWCProps & {
|
|
296
|
-
}
|
|
297
|
-
> & React.RefAttributes<StringEditorWC>
|
|
298
|
-
>;
|
|
299
|
-
export type StringEditorRef = StringEditorWC;
|
|
300
|
-
|
|
301
|
-
export declare const GridProCell: React.ForwardRefExoticComponent<
|
|
302
|
-
React.PropsWithChildren<
|
|
303
|
-
Omit<PublicOf<GridProCellWC>, 'children' | 'style'> &
|
|
304
|
-
HTMLWCProps & {
|
|
305
|
-
}
|
|
306
|
-
> & React.RefAttributes<GridProCellWC>
|
|
307
|
-
>;
|
|
308
|
-
export type GridProCellRef = GridProCellWC;
|
|
309
|
-
|
|
310
310
|
export declare const GridProGenesisDatasource: React.ForwardRefExoticComponent<
|
|
311
311
|
React.PropsWithChildren<
|
|
312
312
|
Omit<PublicOf<GridProGenesisDatasourceWC>, 'children' | 'style'> &
|
|
@@ -18,8 +18,10 @@ export class ActionsMenuRenderer extends FoundationElement {
|
|
|
18
18
|
getGui() {
|
|
19
19
|
return this;
|
|
20
20
|
}
|
|
21
|
+
/** Hands the latest row data to the menu, so per-row actions and disabled states stay current. */
|
|
21
22
|
refresh(params) {
|
|
22
|
-
|
|
23
|
+
this.params = params;
|
|
24
|
+
return true;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
__decorate([
|
|
@@ -44,7 +46,8 @@ export const foundationGridProActionsMenuRenderer = ActionsMenuRenderer.compose(
|
|
|
44
46
|
/**
|
|
45
47
|
* Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for Actions Menu Renderer.
|
|
46
48
|
* Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
|
|
47
|
-
* @param actions - Array of `ActionMenuItem` to be displayed in the menu
|
|
49
|
+
* @param actions - Array of `ActionMenuItem` to be displayed in the menu, or a function of the row data
|
|
50
|
+
* returning that array (for row-scoped eligibility/permission filtering).
|
|
48
51
|
* @param overrideDef - Optional override for the ColDef. Will override any of the default values. Default is an empty object.
|
|
49
52
|
* @param customActionsOpenerName - Optional custom name for the button that opens the menu. Default is '⋮'.
|
|
50
53
|
* @param isVertical - Optional flag to display the menu vertically. Default is false (displays the menu horizontally, follow the rowHeight).
|
|
@@ -95,3 +98,49 @@ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpener
|
|
|
95
98
|
};
|
|
96
99
|
return Object.assign(Object.assign({}, actionsMenuDef), overrideDef);
|
|
97
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for a
|
|
103
|
+
* vertical Actions Menu behind an icon-only "kebab" opener, for a pinned column of per-row actions.
|
|
104
|
+
* Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
|
|
105
|
+
* @remarks The opener hides itself on rows with no actions, so it never opens an empty menu. The
|
|
106
|
+
* column has a `colId` but no `field`: AG Grid only refreshes a cell with a field when its value
|
|
107
|
+
* changes, and this column has no value, so a row update would leave stale actions.
|
|
108
|
+
* @param actions - Array of `ActionMenuItem` to be displayed in the menu, or a function of the row data
|
|
109
|
+
* returning that array (for row-scoped eligibility/permission filtering).
|
|
110
|
+
* @param overrideDef - Optional override for the ColDef. Will override any of the default values. Default is an empty object.
|
|
111
|
+
* @param iconName - Optional icon name for the opener. Default is `'ellipsis'` (horizontal dots); pass `'ellipsis-vertical'` for vertical ones.
|
|
112
|
+
* @param buttonAppearance - Optional appearance for the button that opens the menu.
|
|
113
|
+
* @param hideDisabled - Optional flag to hide disabled actions instead of greying them out. Default is false.
|
|
114
|
+
* When every action for a row is hidden, the opener hides too.
|
|
115
|
+
* @returns Merged ColDef (base ColDef created from the parameters + overrideDef) for Actions Menu Renderer.
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* public exampleMoreColumnDef: ColDef = getVerticalDropdownMenuDef(
|
|
119
|
+
* (rowData) => [
|
|
120
|
+
* { name: 'Ping Trader', icon: { name: 'paper-plane' }, callback: (rowData) => pingTrader(rowData) },
|
|
121
|
+
* { name: 'Assign', icon: { name: 'user' }, callback: (rowData) => assign(rowData) },
|
|
122
|
+
* ],
|
|
123
|
+
* { headerName: '', pinned: 'right' },
|
|
124
|
+
* );
|
|
125
|
+
* ```
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
export const getVerticalDropdownMenuDef = (actions, overrideDef = {}, iconName = 'ellipsis', buttonAppearance, hideDisabled = false) => {
|
|
129
|
+
const verticalDropdownMenuDef = {
|
|
130
|
+
cellRenderer: GridProRendererTypes.actionsMenu,
|
|
131
|
+
cellRendererParams: {
|
|
132
|
+
actions,
|
|
133
|
+
addDefaultActions: false,
|
|
134
|
+
buttonAppearance,
|
|
135
|
+
hideDisabled,
|
|
136
|
+
iconName,
|
|
137
|
+
isVertical: true,
|
|
138
|
+
},
|
|
139
|
+
cellStyle: { border: 'none', overflow: 'visible' },
|
|
140
|
+
colId: overrideDef.headerName
|
|
141
|
+
? convertToKebabCase(overrideDef.headerName)
|
|
142
|
+
: 'vertical-dropdown-menu',
|
|
143
|
+
width: 40,
|
|
144
|
+
};
|
|
145
|
+
return Object.assign(Object.assign({}, verticalDropdownMenuDef), overrideDef);
|
|
146
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { escapeCriteriaString } from '@genesislcap/foundation-criteria';
|
|
1
2
|
/**
|
|
2
3
|
* Shared filter utilities for converting AG Grid filter models to Genesis criteria strings.
|
|
3
4
|
* The single implementation of the filter-model grammar: the Infinite Row Model converts whole
|
|
@@ -7,13 +8,11 @@
|
|
|
7
8
|
* @beta
|
|
8
9
|
*/
|
|
9
10
|
/**
|
|
10
|
-
* Escapes a value for interpolation into a criteria string literal
|
|
11
|
-
*
|
|
12
|
-
* an unescaped trailing backslash (or a literal `\'` in the value) would escape the closing
|
|
13
|
-
* quote - either way the server rejects the whole expression.
|
|
11
|
+
* Escapes a value for interpolation into a single-quoted criteria string literal, with
|
|
12
|
+
* foundation-criteria's escaping, so grid filters and the serialisers quote values the same way.
|
|
14
13
|
*/
|
|
15
14
|
function escapeCriteriaValue(value) {
|
|
16
|
-
return String(value)
|
|
15
|
+
return escapeCriteriaString(String(value));
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
18
|
* Converts text filters to Genesis criteria strings.
|
|
@@ -9,6 +9,7 @@ import { logger } from '../utils';
|
|
|
9
9
|
import { GridProBaseDatasource } from './base.datasource';
|
|
10
10
|
import { GenesisInfiniteDatasource } from './infinite.resource';
|
|
11
11
|
import { getFilterByFieldType, getServerSideFilterParamsByFieldType, } from './server-side.grid-definitions';
|
|
12
|
+
import { getIndexLeadingFields } from './sort-index.utils';
|
|
12
13
|
const criteriaDelimiter = ';';
|
|
13
14
|
/** How long a burst of `setFilter()` calls is collapsed for, matching the client-side model. */
|
|
14
15
|
const FILTER_DEBOUNCE_MS = 600;
|
|
@@ -437,17 +438,11 @@ let GridProInfiniteDatasource = class GridProInfiniteDatasource extends Lifecycl
|
|
|
437
438
|
const colDefsFromGenesisData = this.generateColumnDefsFromMetadata(fieldsMetadata, getServerSideFilterParamsByFieldType, getFilterByFieldType);
|
|
438
439
|
// Sortability differs by transport, matching convertSortModelToOrderBy:
|
|
439
440
|
// - REQUEST_SERVER orders any column (direction inline), so every column is sortable.
|
|
440
|
-
// - DATASERVER can only ORDER_BY a NAMED index,
|
|
441
|
-
//
|
|
442
|
-
|
|
443
|
-
const namedIndexFields = new Set();
|
|
444
|
-
this.indexes.forEach((fields, indexName) => {
|
|
445
|
-
if (indexName) {
|
|
446
|
-
fields.forEach((field) => namedIndexFields.add(field));
|
|
447
|
-
}
|
|
448
|
-
});
|
|
441
|
+
// - DATASERVER can only ORDER_BY a NAMED index, which orders by its leading field, so a
|
|
442
|
+
// column is sortable only when it leads one.
|
|
443
|
+
const indexLeadingFields = getIndexLeadingFields(this.indexes);
|
|
449
444
|
colDefsFromGenesisData.forEach((colDef) => {
|
|
450
|
-
colDef.sortable = this.isRequestServer ||
|
|
445
|
+
colDef.sortable = this.isRequestServer || indexLeadingFields.has(colDef.field);
|
|
451
446
|
// A criteria-only req/rep accepts CRITERIA_MATCH on its declared criteria fields only;
|
|
452
447
|
// filtering any other column would send criteria the server rejects, which on this row
|
|
453
448
|
// model fails the block rather than surfacing a filter error.
|
|
@@ -4,13 +4,15 @@ import { logger } from '../utils';
|
|
|
4
4
|
import { cachedRowKeyResolver, filterDataserverResult } from './dataserver-result.filter';
|
|
5
5
|
import { DeliveredBlockLedger } from './delivered-block.ledger';
|
|
6
6
|
import { convertFilterModelToCriteria } from './filter.utils';
|
|
7
|
+
import { findIndexLedBy } from './sort-index.utils';
|
|
7
8
|
/**
|
|
8
9
|
* Converts an AG Grid sort model to the Genesis ORDER_BY form the resource expects.
|
|
9
10
|
* @remarks The two transports order rows differently, matching what the SSRM datasources send:
|
|
10
11
|
* - REQUEST_SERVER takes the column directly with the direction inline (`NAME DESC`) and no
|
|
11
12
|
* REVERSE flag; the column does not have to belong to an index.
|
|
12
|
-
* - DATASERVER takes the name of an INDEX
|
|
13
|
-
*
|
|
13
|
+
* - DATASERVER takes the name of an INDEX the column leads, plus REVERSE. An index orders by its
|
|
14
|
+
* leading field, so a column that only trails in an index, or leads none (or only unnamed
|
|
15
|
+
* ones), cannot be ordered server-side.
|
|
14
16
|
* @param sortModel - The AG Grid sort model
|
|
15
17
|
* @param resourceIndexes - Available indexes for sorting (DATASERVER)
|
|
16
18
|
* @param isRequestServer - Whether the resource is a REQUEST_SERVER
|
|
@@ -26,19 +28,13 @@ export function convertSortModelToOrderBy(sortModel, resourceIndexes, isRequestS
|
|
|
26
28
|
if (isRequestServer) {
|
|
27
29
|
return { orderBy: `${colId} ${descending ? 'DESC' : 'ASC'}`, reverse: false };
|
|
28
30
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (indexName && fields.includes(colId)) {
|
|
33
|
-
return {
|
|
34
|
-
orderBy: indexName,
|
|
35
|
-
reverse: descending,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
31
|
+
const orderBy = findIndexLedBy(resourceIndexes, colId);
|
|
32
|
+
if (orderBy) {
|
|
33
|
+
return { orderBy, reverse: descending };
|
|
38
34
|
}
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
logger.warn(`Column '${colId}'
|
|
35
|
+
// Carry on unsorted rather than send an ORDER_BY the server rejects (which would empty the
|
|
36
|
+
// grid) or one that orders by a different column under this column's sort indicator.
|
|
37
|
+
logger.warn(`Column '${colId}' does not lead any named INDEX. Server-side sorting is not available for this column.`);
|
|
42
38
|
return { orderBy: null, reverse: false };
|
|
43
39
|
}
|
|
44
40
|
/**
|