@genesislcap/grid-pro 14.162.5 → 14.162.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 +2 -2
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +25 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +5 -2
- package/dist/grid-pro.api.json +1 -1
- package/dist/grid-pro.d.ts +25 -5
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +1 -1
- package/package.json +13 -13
|
@@ -6885,7 +6885,7 @@
|
|
|
6885
6885
|
"type": {
|
|
6886
6886
|
"text": "ColumnState[]"
|
|
6887
6887
|
},
|
|
6888
|
-
"description": "Optionally set the
|
|
6888
|
+
"description": "Optionally set the grid up with column state"
|
|
6889
6889
|
}
|
|
6890
6890
|
],
|
|
6891
6891
|
"description": "Initializes the datasource.",
|
|
@@ -9721,7 +9721,7 @@
|
|
|
9721
9721
|
"type": {
|
|
9722
9722
|
"text": "ColumnState[]"
|
|
9723
9723
|
},
|
|
9724
|
-
"description": "Optionally set the
|
|
9724
|
+
"description": "Optionally set the grid up with column state"
|
|
9725
9725
|
}
|
|
9726
9726
|
],
|
|
9727
9727
|
"description": "Initializes the datasource.",
|
|
@@ -77,9 +77,24 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
77
77
|
getBoundingClientRect(): DOMRect;
|
|
78
78
|
getClientRects(): DOMRectList;
|
|
79
79
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
80
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
|
|
81
|
+
* Clears the rowData and columnDefs for the grid.
|
|
82
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
83
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
|
|
87
|
+
* Clears the rowData and columnDefs for the grid.
|
|
88
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
89
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
|
|
93
|
+
* Clears the rowData and columnDefs for the grid.
|
|
94
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
95
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
83
98
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
84
99
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
85
100
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -106,7 +121,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
106
121
|
scrollTo(x: number, y: number): void;
|
|
107
122
|
setAttribute(qualifiedName: string, value: string): void;
|
|
108
123
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
109
|
-
setAttributeNode(attr: Attr): Attr;
|
|
124
|
+
setAttributeNode(attr: Attr): Attr; /**
|
|
125
|
+
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
126
|
+
* Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
|
|
127
|
+
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
110
130
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
111
131
|
setPointerCapture(pointerId: number): void;
|
|
112
132
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
@@ -357,7 +377,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
357
377
|
* Initializes the datasource.
|
|
358
378
|
* @public
|
|
359
379
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
360
|
-
* @param columnStates - Optionally set the
|
|
380
|
+
* @param columnStates - Optionally set the grid up with column state
|
|
361
381
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
362
382
|
*/
|
|
363
383
|
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<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,
|
|
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,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM;IAIN;;;;OAIG;IACH,KAAK;IA8BL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAmCxB;;;;;OAKG;YACW,kBAAkB;IAYhC;;;;;;OAMG;YACW,gBAAgB;IA0D9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,MAAM,KAAA;IAOnB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;YAsBb,eAAe;IAc7B,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;CAGR"}
|
|
@@ -83,7 +83,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
83
83
|
* Initializes the datasource.
|
|
84
84
|
* @public
|
|
85
85
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
86
|
-
* @param columnStates - Optionally set the
|
|
86
|
+
* @param columnStates - Optionally set the grid up with column state
|
|
87
87
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
88
88
|
*/
|
|
89
89
|
init(columnDefinitions, columnStates) {
|
|
@@ -100,9 +100,12 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
|
|
103
|
-
const gridOptions = Object.assign(Object.assign(
|
|
103
|
+
const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
|
|
104
104
|
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
105
105
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
if (columnStates) {
|
|
107
|
+
this.agGrid.columnApi.applyColumnState({ state: columnStates });
|
|
108
|
+
}
|
|
106
109
|
yield this.loadResourceData();
|
|
107
110
|
}), { once: true });
|
|
108
111
|
const filterDebounceTime = 600;
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -10658,7 +10658,7 @@
|
|
|
10658
10658
|
{
|
|
10659
10659
|
"kind": "Method",
|
|
10660
10660
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#init:member(1)",
|
|
10661
|
-
"docComment": "/**\n * Initializes the datasource.\n *\n * @remarks\n *\n * This method is called automatically when the element is connected to the DOM.\n *\n * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions\n *\n * @param columnStates - Optionally set the
|
|
10661
|
+
"docComment": "/**\n * Initializes the datasource.\n *\n * @remarks\n *\n * This method is called automatically when the element is connected to the DOM.\n *\n * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions\n *\n * @param columnStates - Optionally set the grid up with column state\n *\n * @public\n */\n",
|
|
10662
10662
|
"excerptTokens": [
|
|
10663
10663
|
{
|
|
10664
10664
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1780,7 +1780,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1780
1780
|
* Initializes the datasource.
|
|
1781
1781
|
* @public
|
|
1782
1782
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
1783
|
-
* @param columnStates - Optionally set the
|
|
1783
|
+
* @param columnStates - Optionally set the grid up with column state
|
|
1784
1784
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1785
1785
|
*/
|
|
1786
1786
|
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
@@ -1928,9 +1928,24 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1928
1928
|
getBoundingClientRect(): DOMRect;
|
|
1929
1929
|
getClientRects(): DOMRectList;
|
|
1930
1930
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
1931
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
1932
|
-
|
|
1933
|
-
|
|
1931
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
|
|
1932
|
+
* Clears the rowData and columnDefs for the grid.
|
|
1933
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
1934
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
1935
|
+
* @internal
|
|
1936
|
+
*/
|
|
1937
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
|
|
1938
|
+
* Clears the rowData and columnDefs for the grid.
|
|
1939
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
1940
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
1941
|
+
* @internal
|
|
1942
|
+
*/
|
|
1943
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
|
|
1944
|
+
* Clears the rowData and columnDefs for the grid.
|
|
1945
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
1946
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
1947
|
+
* @internal
|
|
1948
|
+
*/
|
|
1934
1949
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1935
1950
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
1936
1951
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -1957,7 +1972,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1957
1972
|
scrollTo(x: number, y: number): void;
|
|
1958
1973
|
setAttribute(qualifiedName: string, value: string): void;
|
|
1959
1974
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
1960
|
-
setAttributeNode(attr: Attr): Attr;
|
|
1975
|
+
setAttributeNode(attr: Attr): Attr; /**
|
|
1976
|
+
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
1977
|
+
* Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
|
|
1978
|
+
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
1979
|
+
* @internal
|
|
1980
|
+
*/
|
|
1961
1981
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
1962
1982
|
setPointerCapture(pointerId: number): void;
|
|
1963
1983
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
@@ -17,7 +17,7 @@ init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| columnDefinitions | ColDef\[\] | _(Optional)_ Optionally set the <code>gridOptions</code> up with column definitions |
|
|
20
|
-
| columnStates | ColumnState\[\] | _(Optional)_ Optionally set the
|
|
20
|
+
| columnStates | ColumnState\[\] | _(Optional)_ Optionally set the grid up with column state |
|
|
21
21
|
|
|
22
22
|
**Returns:**
|
|
23
23
|
|
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.162.
|
|
4
|
+
"version": "14.162.6",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.162.
|
|
34
|
-
"@genesislcap/genx": "14.162.
|
|
35
|
-
"@genesislcap/rollup-builder": "14.162.
|
|
36
|
-
"@genesislcap/ts-builder": "14.162.
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.162.
|
|
38
|
-
"@genesislcap/vite-builder": "14.162.
|
|
39
|
-
"@genesislcap/webpack-builder": "14.162.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.162.6",
|
|
34
|
+
"@genesislcap/genx": "14.162.6",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.162.6",
|
|
36
|
+
"@genesislcap/ts-builder": "14.162.6",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.162.6",
|
|
38
|
+
"@genesislcap/vite-builder": "14.162.6",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.162.6",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@genesislcap/foundation-comms": "14.162.
|
|
44
|
-
"@genesislcap/foundation-logger": "14.162.
|
|
45
|
-
"@genesislcap/foundation-ui": "14.162.
|
|
46
|
-
"@genesislcap/foundation-utils": "14.162.
|
|
43
|
+
"@genesislcap/foundation-comms": "14.162.6",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.162.6",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.162.6",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.162.6",
|
|
47
47
|
"@microsoft/fast-colors": "^5.3.1",
|
|
48
48
|
"@microsoft/fast-components": "^2.30.6",
|
|
49
49
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"customElements": "dist/custom-elements.json",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "4b6bab2edccfa0ed885e91d5f4139ce859f926d1"
|
|
73
73
|
}
|