@genesislcap/grid-pro 14.192.3-alpha-1303ae2.0 → 14.193.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.
- package/dist/custom-elements.json +7 -37
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +2 -14
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +17 -24
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +2 -3
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +1 -4
- package/dist/esm/grid-pro.js +10 -24
- package/dist/grid-pro.api.json +1 -32
- package/dist/grid-pro.d.ts +20 -39
- package/docs/api/grid-pro.gridpro.gridprodatasource.md +0 -7
- package/docs/api/grid-pro.gridpro.md +1 -2
- package/docs/api-report.md +4 -5
- package/package.json +13 -13
- package/docs/api/grid-pro.gridpro.gridparams.md +0 -12
|
@@ -804,28 +804,17 @@
|
|
|
804
804
|
},
|
|
805
805
|
"privacy": "public"
|
|
806
806
|
},
|
|
807
|
-
{
|
|
808
|
-
"kind": "field",
|
|
809
|
-
"name": "gridParams",
|
|
810
|
-
"type": {
|
|
811
|
-
"text": "GridParams"
|
|
812
|
-
},
|
|
813
|
-
"privacy": "public",
|
|
814
|
-
"readonly": true
|
|
815
|
-
},
|
|
816
807
|
{
|
|
817
808
|
"kind": "field",
|
|
818
809
|
"name": "gridProDatasource",
|
|
819
810
|
"type": {
|
|
820
811
|
"text": "| GridProGenesisDatasource\n | GridProClientSideDatasource\n | GridProServerSideDatasource"
|
|
821
812
|
},
|
|
822
|
-
"description": "Get the datasource element.",
|
|
823
|
-
"privacy": "public",
|
|
824
813
|
"readonly": true
|
|
825
814
|
},
|
|
826
815
|
{
|
|
827
816
|
"kind": "method",
|
|
828
|
-
"name": "
|
|
817
|
+
"name": "initGridOptions",
|
|
829
818
|
"privacy": "private",
|
|
830
819
|
"parameters": [
|
|
831
820
|
{
|
|
@@ -833,14 +822,15 @@
|
|
|
833
822
|
"type": {
|
|
834
823
|
"text": "GridOptions"
|
|
835
824
|
}
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "globalEventListener",
|
|
828
|
+
"type": {
|
|
829
|
+
"text": "any"
|
|
830
|
+
}
|
|
836
831
|
}
|
|
837
832
|
]
|
|
838
833
|
},
|
|
839
|
-
{
|
|
840
|
-
"kind": "method",
|
|
841
|
-
"name": "initGrid",
|
|
842
|
-
"privacy": "private"
|
|
843
|
-
},
|
|
844
834
|
{
|
|
845
835
|
"kind": "method",
|
|
846
836
|
"name": "applyTemplateDefinitions",
|
|
@@ -7182,18 +7172,6 @@
|
|
|
7182
7172
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7183
7173
|
}
|
|
7184
7174
|
},
|
|
7185
|
-
{
|
|
7186
|
-
"kind": "field",
|
|
7187
|
-
"name": "sourceRef",
|
|
7188
|
-
"type": {
|
|
7189
|
-
"text": "string"
|
|
7190
|
-
},
|
|
7191
|
-
"privacy": "private",
|
|
7192
|
-
"inheritedFrom": {
|
|
7193
|
-
"name": "GridProGenesisDatasource",
|
|
7194
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7195
|
-
}
|
|
7196
|
-
},
|
|
7197
7175
|
{
|
|
7198
7176
|
"kind": "field",
|
|
7199
7177
|
"name": "criteriaFromFilters",
|
|
@@ -10166,14 +10144,6 @@
|
|
|
10166
10144
|
"privacy": "private",
|
|
10167
10145
|
"default": "true"
|
|
10168
10146
|
},
|
|
10169
|
-
{
|
|
10170
|
-
"kind": "field",
|
|
10171
|
-
"name": "sourceRef",
|
|
10172
|
-
"type": {
|
|
10173
|
-
"text": "string"
|
|
10174
|
-
},
|
|
10175
|
-
"privacy": "private"
|
|
10176
|
-
},
|
|
10177
10147
|
{
|
|
10178
10148
|
"kind": "field",
|
|
10179
10149
|
"name": "criteriaFromFilters",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EAEnB,kBAAkB,EAClB,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAIP,wBAAwB,EAIxB,cAAc,EAId,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGhF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,oBAAqB,YAAW,qBAAqB;IACnF,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IAE3B,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,4BAA4B,EAAE,kBAAkB,CAAC;IACjD,0BAA0B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzBL;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,gCAAqC;IACpF,aAAa,SAAgC;IAC7C,kBAAkB,SAAqC;IAEvD,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASxD;;;;OAIG;YACW,kBAAkB;IAYhC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,UAAU,UAAS;IAE9C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,MAAM;IAQN,IAAI;
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EAEnB,kBAAkB,EAClB,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAIP,wBAAwB,EAIxB,cAAc,EAId,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGhF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAA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qB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;CAIxD"}
|
|
@@ -32,13 +32,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
32
32
|
readonly offsetParent: Element;
|
|
33
33
|
readonly offsetTop: number;
|
|
34
34
|
readonly offsetWidth: number;
|
|
35
|
-
outerText: string;
|
|
36
|
-
* Initializes the datasource.
|
|
37
|
-
* @public
|
|
38
|
-
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
39
|
-
* @param columnStates - Optionally set the grid up with column state
|
|
40
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
41
|
-
*/
|
|
35
|
+
outerText: string;
|
|
42
36
|
spellcheck: boolean;
|
|
43
37
|
title: string;
|
|
44
38
|
translate: boolean;
|
|
@@ -91,12 +85,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
91
85
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
92
86
|
hasAttribute(qualifiedName: string): boolean;
|
|
93
87
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
94
|
-
hasAttributes(): boolean;
|
|
95
|
-
* Clears the rowData and columnDefs for the grid.
|
|
96
|
-
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
97
|
-
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
88
|
+
hasAttributes(): boolean;
|
|
100
89
|
hasPointerCapture(pointerId: number): boolean;
|
|
101
90
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
102
91
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
@@ -359,7 +348,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
359
348
|
private updateSub;
|
|
360
349
|
private connectionSub;
|
|
361
350
|
private requiresFullRowDataAndColDefs;
|
|
362
|
-
private sourceRef;
|
|
363
351
|
private criteriaFromFilters;
|
|
364
352
|
private update;
|
|
365
353
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAatE;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC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,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;CAO1B"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ColumnState, Grid } from '@ag-grid-community/core';
|
|
2
|
-
import type { ColDef, ColumnApi, GridApi, GridOptions, GridParams } from '@ag-grid-community/core';
|
|
1
|
+
import { ColDef, ColumnApi, ColumnState, Grid, GridApi, GridOptions } from '@ag-grid-community/core';
|
|
3
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
3
|
import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
|
|
5
4
|
import { GridProGenesisDatasource } from './grid-pro-genesis-datasource';
|
|
@@ -26,14 +25,15 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
26
25
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
27
26
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
28
27
|
disconnectedCallback(): void;
|
|
28
|
+
/**
|
|
29
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
30
|
+
*/
|
|
29
31
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
30
32
|
accessKey: string;
|
|
31
33
|
readonly accessKeyLabel: string;
|
|
32
34
|
autocapitalize: string;
|
|
33
35
|
dir: string;
|
|
34
|
-
draggable: boolean;
|
|
35
|
-
* The key to use for persisting the column state in local broswer or KV storage.
|
|
36
|
-
*/
|
|
36
|
+
draggable: boolean;
|
|
37
37
|
hidden: boolean;
|
|
38
38
|
inert: boolean;
|
|
39
39
|
innerText: string;
|
|
@@ -159,7 +159,11 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
159
159
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
160
160
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
161
161
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
162
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
162
|
+
readonly DOCUMENT_POSITION_PRECEDING: number; /**
|
|
163
|
+
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
164
|
+
* a stack overflow of calls to resize, so we need to debounce it.
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
163
167
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
164
168
|
readonly ELEMENT_NODE: number;
|
|
165
169
|
readonly ENTITY_NODE: number;
|
|
@@ -199,6 +203,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
199
203
|
ariaRowCount: string;
|
|
200
204
|
ariaRowIndex: string;
|
|
201
205
|
ariaRowIndexText: string;
|
|
206
|
+
/**
|
|
207
|
+
* Gets the saved grid ColumnState[] from storage
|
|
208
|
+
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
209
|
+
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
202
212
|
ariaRowSpan: string;
|
|
203
213
|
ariaSelected: string;
|
|
204
214
|
ariaSetSize: string;
|
|
@@ -286,13 +296,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
286
296
|
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
287
297
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
288
298
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
289
|
-
/**
|
|
290
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
291
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
292
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
293
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
294
|
-
* @returns The merged column definitions.
|
|
295
|
-
*/
|
|
296
299
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
297
300
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
298
301
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -499,19 +502,9 @@ export declare class GridPro extends GridPro_base {
|
|
|
499
502
|
* @public
|
|
500
503
|
*/
|
|
501
504
|
get gridOptions(): GridOptions;
|
|
502
|
-
/**
|
|
503
|
-
* @public
|
|
504
|
-
*/
|
|
505
|
-
get gridParams(): GridParams;
|
|
506
|
-
/**
|
|
507
|
-
* Get the datasource element.
|
|
508
|
-
* @remarks This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.
|
|
509
|
-
* @public
|
|
510
|
-
*/
|
|
511
505
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
512
506
|
set gridOptions(options: GridOptions);
|
|
513
|
-
private
|
|
514
|
-
private initGrid;
|
|
507
|
+
private initGridOptions;
|
|
515
508
|
/**
|
|
516
509
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
517
510
|
* @deprecated use `applyTemplateDefinitions` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/gr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yB,UAAQ;IAKhF;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAuFzF,IAAI,kBAAkB,aAarB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -354,7 +354,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
354
354
|
}
|
|
355
355
|
init() {
|
|
356
356
|
if (this.agGrid && this.resourceName && this.connect.isConnected) {
|
|
357
|
-
this.agGrid.gridOptions = Object.assign(
|
|
357
|
+
this.agGrid.gridOptions = Object.assign({ getRowId: (params) => {
|
|
358
358
|
if (!params.data) {
|
|
359
359
|
return null;
|
|
360
360
|
}
|
|
@@ -368,8 +368,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
368
368
|
filter: true,
|
|
369
369
|
resizable: true,
|
|
370
370
|
sortable: false,
|
|
371
|
-
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.
|
|
372
|
-
this.agGrid['initGrid']();
|
|
371
|
+
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.deferredGridOptions);
|
|
373
372
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
374
373
|
/**
|
|
375
374
|
* We should have all the metadata via Datasource, ie.
|
|
@@ -123,9 +123,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
123
123
|
init(columnDefinitions, columnStates) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
125
|
if (this.agGrid && this.datasource.validResourceName(this.resourceName)) {
|
|
126
|
-
const gridOptions = Object.assign(Object.assign(
|
|
126
|
+
const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
|
|
127
127
|
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
128
|
-
this.agGrid['initGrid']();
|
|
129
128
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
130
129
|
if (columnStates) {
|
|
131
130
|
this.agGrid.columnApi.applyColumnState({ state: columnStates });
|
|
@@ -170,7 +169,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
170
169
|
this.connectionSub.unsubscribe();
|
|
171
170
|
this.connectionSub = undefined;
|
|
172
171
|
}
|
|
173
|
-
this.sourceRef = undefined;
|
|
174
172
|
this.clearRowData();
|
|
175
173
|
this.isRequestServer = false;
|
|
176
174
|
this.requiresFullRowDataAndColDefs = true;
|
|
@@ -307,7 +305,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
307
305
|
if (result === null || result === void 0 ? void 0 : result.ERROR) {
|
|
308
306
|
this.handleErrors(result.ERROR.join(', '));
|
|
309
307
|
}
|
|
310
|
-
this.sourceRef = result.SOURCE_REF;
|
|
311
308
|
const messageType = result.MESSAGE_TYPE;
|
|
312
309
|
if (messageType && messageType === MessageType.LOGOFF_ACK) {
|
|
313
310
|
this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`);
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __rest } from "tslib";
|
|
2
2
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
3
|
-
import { ComponentUtil, Grid, ModuleRegistry } from '@ag-grid-community/core';
|
|
3
|
+
import { ComponentUtil, Grid, ModuleRegistry, } from '@ag-grid-community/core';
|
|
4
4
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
|
5
5
|
import { insertDocumentCSSRule, LifecycleMixin, respondToVisibility, } from '@genesislcap/foundation-utils';
|
|
6
6
|
import { attr, DOM, observable } from '@microsoft/fast-element';
|
|
@@ -304,19 +304,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
304
304
|
get gridOptions() {
|
|
305
305
|
return this.agGridOptions;
|
|
306
306
|
}
|
|
307
|
-
/**
|
|
308
|
-
* @public
|
|
309
|
-
*/
|
|
310
|
-
get gridParams() {
|
|
311
|
-
return {
|
|
312
|
-
globalEventListener: this.globalEventListener.bind(this),
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Get the datasource element.
|
|
317
|
-
* @remarks This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
307
|
get gridProDatasource() {
|
|
321
308
|
return (this.querySelector('grid-pro-genesis-datasource') ||
|
|
322
309
|
this.querySelector('grid-pro-client-side-datasource') ||
|
|
@@ -325,6 +312,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
325
312
|
set gridOptions(options) {
|
|
326
313
|
const debounceSaveColumnState = debounce(this.saveColumnState.bind(this), DEBOUNCE_TIME);
|
|
327
314
|
const debouceSaveFiltermodel = debounce(this.cacheFilterConfig.bind(this), DEBOUNCE_TIME);
|
|
315
|
+
const globalEventListener = this.globalEventListener.bind(this);
|
|
328
316
|
const gridOnChangeCallback = () => {
|
|
329
317
|
debounceSaveColumnState();
|
|
330
318
|
this.debouncedColumnAutosize.bind(this)();
|
|
@@ -335,7 +323,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
335
323
|
return;
|
|
336
324
|
this.agAttributes[attrName] = attribute.value;
|
|
337
325
|
});
|
|
338
|
-
const { columnDefs, components, defaultColDef,
|
|
326
|
+
const { columnDefs, components, defaultColDef, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFilterChanged"]);
|
|
339
327
|
const derivedOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.gridOptionsConfig), { defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
340
328
|
var _a, _b;
|
|
341
329
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
@@ -365,22 +353,20 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
365
353
|
}, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
366
354
|
if (this.gridProDatasource) {
|
|
367
355
|
derivedOptions.columnDefs = columnDefs;
|
|
368
|
-
derivedOptions
|
|
369
|
-
this.setLocalGridOptions(derivedOptions);
|
|
356
|
+
this.initGridOptions(derivedOptions, globalEventListener);
|
|
370
357
|
}
|
|
371
358
|
else {
|
|
372
359
|
this.mergeAllColumnDefsAndStates(columnDefs).then((value) => {
|
|
373
360
|
derivedOptions.columnDefs = value;
|
|
374
|
-
derivedOptions
|
|
375
|
-
this.setLocalGridOptions(derivedOptions);
|
|
376
|
-
this.initGrid();
|
|
361
|
+
this.initGridOptions(derivedOptions, globalEventListener);
|
|
377
362
|
});
|
|
378
363
|
}
|
|
379
364
|
}
|
|
380
|
-
|
|
365
|
+
initGridOptions(derivedOptions, globalEventListener) {
|
|
381
366
|
this.agGridOptions = Object.assign(Object.assign({}, this.agGridOptions), ComponentUtil.copyAttributesToGridOptions(derivedOptions, this.agAttributes));
|
|
382
|
-
|
|
383
|
-
|
|
367
|
+
const gridParams = {
|
|
368
|
+
globalEventListener: globalEventListener,
|
|
369
|
+
};
|
|
384
370
|
DOM.queueUpdate(() => {
|
|
385
371
|
if (this.initialised) {
|
|
386
372
|
// Needed due gridSlot children cleanup
|
|
@@ -389,7 +375,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
389
375
|
this.gridSlot.removeChild(this.gridSlot.firstChild);
|
|
390
376
|
}
|
|
391
377
|
}
|
|
392
|
-
this.agGrid = new Grid(this.gridSlot, this.agGridOptions,
|
|
378
|
+
this.agGrid = new Grid(this.gridSlot, this.agGridOptions, gridParams);
|
|
393
379
|
this.initialised = true;
|
|
394
380
|
});
|
|
395
381
|
}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -8828,41 +8828,10 @@
|
|
|
8828
8828
|
"isProtected": false,
|
|
8829
8829
|
"isAbstract": false
|
|
8830
8830
|
},
|
|
8831
|
-
{
|
|
8832
|
-
"kind": "Property",
|
|
8833
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#gridParams:member",
|
|
8834
|
-
"docComment": "/**\n * @public\n */\n",
|
|
8835
|
-
"excerptTokens": [
|
|
8836
|
-
{
|
|
8837
|
-
"kind": "Content",
|
|
8838
|
-
"text": "get gridParams(): "
|
|
8839
|
-
},
|
|
8840
|
-
{
|
|
8841
|
-
"kind": "Reference",
|
|
8842
|
-
"text": "GridParams",
|
|
8843
|
-
"canonicalReference": "@ag-grid-community/core!GridParams:interface"
|
|
8844
|
-
},
|
|
8845
|
-
{
|
|
8846
|
-
"kind": "Content",
|
|
8847
|
-
"text": ";"
|
|
8848
|
-
}
|
|
8849
|
-
],
|
|
8850
|
-
"isReadonly": true,
|
|
8851
|
-
"isOptional": false,
|
|
8852
|
-
"releaseTag": "Public",
|
|
8853
|
-
"name": "gridParams",
|
|
8854
|
-
"propertyTypeTokenRange": {
|
|
8855
|
-
"startIndex": 1,
|
|
8856
|
-
"endIndex": 2
|
|
8857
|
-
},
|
|
8858
|
-
"isStatic": false,
|
|
8859
|
-
"isProtected": false,
|
|
8860
|
-
"isAbstract": false
|
|
8861
|
-
},
|
|
8862
8831
|
{
|
|
8863
8832
|
"kind": "Property",
|
|
8864
8833
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#gridProDatasource:member",
|
|
8865
|
-
"docComment": "
|
|
8834
|
+
"docComment": "",
|
|
8866
8835
|
"excerptTokens": [
|
|
8867
8836
|
{
|
|
8868
8837
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
3
3
|
import { Binding } from '@microsoft/fast-element';
|
|
4
4
|
import { CaptureType } from '@microsoft/fast-element';
|
|
5
5
|
import { ColDef } from '@ag-grid-community/core';
|
|
6
|
-
import
|
|
6
|
+
import { ColumnApi } from '@ag-grid-community/core';
|
|
7
7
|
import { ColumnState } from '@ag-grid-community/core';
|
|
8
8
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
9
9
|
import type { Container } from '@microsoft/fast-foundation';
|
|
@@ -23,9 +23,8 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
23
23
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
24
24
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
25
25
|
import { Grid } from '@ag-grid-community/core';
|
|
26
|
-
import
|
|
26
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
27
27
|
import { GridOptions } from '@ag-grid-community/core';
|
|
28
|
-
import type { GridParams } from '@ag-grid-community/core';
|
|
29
28
|
import { ICellEditorComp } from '@ag-grid-community/core';
|
|
30
29
|
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
31
30
|
import { ICellRendererComp } from '@ag-grid-community/core';
|
|
@@ -1662,19 +1661,9 @@ export declare class GridPro extends GridPro_base {
|
|
|
1662
1661
|
* @public
|
|
1663
1662
|
*/
|
|
1664
1663
|
get gridOptions(): GridOptions;
|
|
1665
|
-
/**
|
|
1666
|
-
* @public
|
|
1667
|
-
*/
|
|
1668
|
-
get gridParams(): GridParams;
|
|
1669
|
-
/**
|
|
1670
|
-
* Get the datasource element.
|
|
1671
|
-
* @remarks This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.
|
|
1672
|
-
* @public
|
|
1673
|
-
*/
|
|
1674
1664
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
1675
1665
|
set gridOptions(options: GridOptions);
|
|
1676
|
-
private
|
|
1677
|
-
private initGrid;
|
|
1666
|
+
private initGridOptions;
|
|
1678
1667
|
/**
|
|
1679
1668
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1680
1669
|
* @deprecated use `applyTemplateDefinitions` instead.
|
|
@@ -1717,14 +1706,15 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1717
1706
|
readonly $fastController: Controller;
|
|
1718
1707
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
1719
1708
|
disconnectedCallback(): void;
|
|
1709
|
+
/**
|
|
1710
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
1711
|
+
*/
|
|
1720
1712
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1721
1713
|
accessKey: string;
|
|
1722
1714
|
readonly accessKeyLabel: string;
|
|
1723
1715
|
autocapitalize: string;
|
|
1724
1716
|
dir: string;
|
|
1725
|
-
draggable: boolean;
|
|
1726
|
-
* The key to use for persisting the column state in local broswer or KV storage.
|
|
1727
|
-
*/
|
|
1717
|
+
draggable: boolean;
|
|
1728
1718
|
hidden: boolean;
|
|
1729
1719
|
inert: boolean;
|
|
1730
1720
|
innerText: string;
|
|
@@ -1850,7 +1840,11 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1850
1840
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
1851
1841
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
1852
1842
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
1853
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
1843
|
+
readonly DOCUMENT_POSITION_PRECEDING: number; /**
|
|
1844
|
+
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1845
|
+
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1846
|
+
* @internal
|
|
1847
|
+
*/
|
|
1854
1848
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
1855
1849
|
readonly ELEMENT_NODE: number;
|
|
1856
1850
|
readonly ENTITY_NODE: number;
|
|
@@ -1890,6 +1884,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1890
1884
|
ariaRowCount: string;
|
|
1891
1885
|
ariaRowIndex: string;
|
|
1892
1886
|
ariaRowIndexText: string;
|
|
1887
|
+
/**
|
|
1888
|
+
* Gets the saved grid ColumnState[] from storage
|
|
1889
|
+
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
1890
|
+
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
1891
|
+
* @public
|
|
1892
|
+
*/
|
|
1893
1893
|
ariaRowSpan: string;
|
|
1894
1894
|
ariaSelected: string;
|
|
1895
1895
|
ariaSetSize: string;
|
|
@@ -1977,13 +1977,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1977
1977
|
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1978
1978
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1979
1979
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1980
|
-
/**
|
|
1981
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1982
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1983
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
1984
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
1985
|
-
* @returns The merged column definitions.
|
|
1986
|
-
*/
|
|
1987
1980
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1988
1981
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1989
1982
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -2518,7 +2511,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
2518
2511
|
private updateSub;
|
|
2519
2512
|
private connectionSub;
|
|
2520
2513
|
private requiresFullRowDataAndColDefs;
|
|
2521
|
-
private sourceRef;
|
|
2522
2514
|
private criteriaFromFilters;
|
|
2523
2515
|
private update;
|
|
2524
2516
|
connectedCallback(): void;
|
|
@@ -2627,13 +2619,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2627
2619
|
readonly offsetParent: Element;
|
|
2628
2620
|
readonly offsetTop: number;
|
|
2629
2621
|
readonly offsetWidth: number;
|
|
2630
|
-
outerText: string;
|
|
2631
|
-
* Initializes the datasource.
|
|
2632
|
-
* @public
|
|
2633
|
-
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
2634
|
-
* @param columnStates - Optionally set the grid up with column state
|
|
2635
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
2636
|
-
*/
|
|
2622
|
+
outerText: string;
|
|
2637
2623
|
spellcheck: boolean;
|
|
2638
2624
|
title: string;
|
|
2639
2625
|
translate: boolean;
|
|
@@ -2686,12 +2672,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2686
2672
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
2687
2673
|
hasAttribute(qualifiedName: string): boolean;
|
|
2688
2674
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
2689
|
-
hasAttributes(): boolean;
|
|
2690
|
-
* Clears the rowData and columnDefs for the grid.
|
|
2691
|
-
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
2692
|
-
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
2693
|
-
* @internal
|
|
2694
|
-
*/
|
|
2675
|
+
hasAttributes(): boolean;
|
|
2695
2676
|
hasPointerCapture(pointerId: number): boolean;
|
|
2696
2677
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
2697
2678
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
@@ -4,15 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## GridPro.gridProDatasource property
|
|
6
6
|
|
|
7
|
-
Get the datasource element.
|
|
8
|
-
|
|
9
7
|
**Signature:**
|
|
10
8
|
|
|
11
9
|
```typescript
|
|
12
10
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
13
11
|
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`<!-- -->, `grid-pro-client-side-datasource`<!-- -->, or `grid-pro-server-side-datasource`<!-- -->.
|
|
18
|
-
|
|
@@ -50,8 +50,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
50
50
|
| [gridFontFace](./grid-pro.gridpro.gridfontface.md) | | string | |
|
|
51
51
|
| [gridOptions](./grid-pro.gridpro.gridoptions.md) | | GridOptions | |
|
|
52
52
|
| [gridOptionsConfig](./grid-pro.gridpro.gridoptionsconfig.md) | | [GridOptionsConfig](./grid-pro.gridoptionsconfig.md) | Injectable config that allows to change grid options on an app level basis To modify options, register instance of the config in DOM container that is above the grid or on the top level of the application, so it applies to all grids. |
|
|
53
|
-
| [
|
|
54
|
-
| [gridProDatasource](./grid-pro.gridpro.gridprodatasource.md) | <code>readonly</code> | [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) \| [GridProClientSideDatasource](./grid-pro.gridproclientsidedatasource.md) \| GridProServerSideDatasource | Get the datasource element. |
|
|
53
|
+
| [gridProDatasource](./grid-pro.gridpro.gridprodatasource.md) | <code>readonly</code> | [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) \| [GridProClientSideDatasource](./grid-pro.gridproclientsidedatasource.md) \| GridProServerSideDatasource | |
|
|
55
54
|
| [gridSlot](./grid-pro.gridpro.gridslot.md) | | HTMLSlotElement | |
|
|
56
55
|
| [headerCaseType](./grid-pro.gridpro.headercasetype.md) | | [GridProCaseType](./grid-pro.gridprocasetype.md) | The case type to use for the header names. If not set, the default CONSTANT\_CASE will be used. |
|
|
57
56
|
| [headerHeight](./grid-pro.gridpro.headerheight.md) | | number | |
|
package/docs/api-report.md
CHANGED
|
@@ -9,7 +9,7 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
9
9
|
import { Binding } from '@microsoft/fast-element';
|
|
10
10
|
import { CaptureType } from '@microsoft/fast-element';
|
|
11
11
|
import { ColDef } from '@ag-grid-community/core';
|
|
12
|
-
import
|
|
12
|
+
import { ColumnApi } from '@ag-grid-community/core';
|
|
13
13
|
import { ColumnState } from '@ag-grid-community/core';
|
|
14
14
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
15
15
|
import type { Container } from '@microsoft/fast-foundation';
|
|
@@ -29,9 +29,8 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
29
29
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
30
30
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
31
31
|
import { Grid } from '@ag-grid-community/core';
|
|
32
|
-
import
|
|
32
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
33
33
|
import { GridOptions } from '@ag-grid-community/core';
|
|
34
|
-
import type { GridParams } from '@ag-grid-community/core';
|
|
35
34
|
import { ICellEditorComp } from '@ag-grid-community/core';
|
|
36
35
|
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
37
36
|
import { ICellRendererComp } from '@ag-grid-community/core';
|
|
@@ -865,9 +864,9 @@ export class GridPro extends GridPro_base {
|
|
|
865
864
|
get gridOptions(): GridOptions;
|
|
866
865
|
set gridOptions(options: GridOptions);
|
|
867
866
|
gridOptionsConfig: GridOptionsConfig;
|
|
868
|
-
// (undocumented)
|
|
869
|
-
get gridParams(): GridParams;
|
|
870
867
|
// Warning: (ae-incompatible-release-tags) The symbol "gridProDatasource" is marked as @public, but its signature references "GridProServerSideDatasource" which is marked as @alpha
|
|
868
|
+
//
|
|
869
|
+
// (undocumented)
|
|
871
870
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
872
871
|
// (undocumented)
|
|
873
872
|
gridSlot: HTMLSlotElement;
|
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": "14.
|
|
4
|
+
"version": "14.193.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "14.
|
|
42
|
-
"@genesislcap/genx": "14.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.
|
|
44
|
-
"@genesislcap/ts-builder": "14.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
46
|
-
"@genesislcap/vite-builder": "14.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.193.1",
|
|
42
|
+
"@genesislcap/genx": "14.193.1",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.193.1",
|
|
44
|
+
"@genesislcap/ts-builder": "14.193.1",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.193.1",
|
|
46
|
+
"@genesislcap/vite-builder": "14.193.1",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.193.1",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.193.1",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.193.1",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.193.1",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.193.1",
|
|
55
55
|
"@microsoft/fast-colors": "^5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "^2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "83048f45bf5634a5c7e93d461eceb393610aee37"
|
|
81
81
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [gridParams](./grid-pro.gridpro.gridparams.md)
|
|
4
|
-
|
|
5
|
-
## GridPro.gridParams property
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
get gridParams(): GridParams;
|
|
12
|
-
```
|