@genesislcap/grid-pro 14.162.5-beta.f5d1e74.0 → 14.162.5
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 +5 -25
- 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 +2 -5
- package/dist/grid-pro.api.json +1 -1
- package/dist/grid-pro.d.ts +5 -25
- 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 `gridOptions` 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 `gridOptions` up with column state"
|
|
9725
9725
|
}
|
|
9726
9726
|
],
|
|
9727
9727
|
"description": "Initializes the datasource.",
|
|
@@ -77,24 +77,9 @@ 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
|
-
|
|
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
|
-
*/
|
|
80
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
81
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
82
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
98
83
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
99
84
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
100
85
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -121,12 +106,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
121
106
|
scrollTo(x: number, y: number): void;
|
|
122
107
|
setAttribute(qualifiedName: string, value: string): void;
|
|
123
108
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
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
|
-
*/
|
|
109
|
+
setAttributeNode(attr: Attr): Attr;
|
|
130
110
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
131
111
|
setPointerCapture(pointerId: number): void;
|
|
132
112
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
@@ -377,7 +357,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
377
357
|
* Initializes the datasource.
|
|
378
358
|
* @public
|
|
379
359
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
380
|
-
* @param columnStates - Optionally set the
|
|
360
|
+
* @param columnStates - Optionally set the `gridOptions` up with column state
|
|
381
361
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
382
362
|
*/
|
|
383
363
|
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,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE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rE;;;OAGG;IACH,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 `gridOptions` 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,12 +100,9 @@ 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({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
|
|
103
|
+
const gridOptions = Object.assign(Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), (columnStates && { columnState: columnStates })), 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
|
-
}
|
|
109
106
|
yield this.loadResourceData();
|
|
110
107
|
}), { once: true });
|
|
111
108
|
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 `gridOptions` 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 `gridOptions` 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,24 +1928,9 @@ 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
|
-
|
|
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
|
-
*/
|
|
1931
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
1932
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
1933
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
1949
1934
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1950
1935
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
1951
1936
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -1972,12 +1957,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1972
1957
|
scrollTo(x: number, y: number): void;
|
|
1973
1958
|
setAttribute(qualifiedName: string, value: string): void;
|
|
1974
1959
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
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
|
-
*/
|
|
1960
|
+
setAttributeNode(attr: Attr): Attr;
|
|
1981
1961
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
1982
1962
|
setPointerCapture(pointerId: number): void;
|
|
1983
1963
|
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 <code>gridOptions</code> 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.5
|
|
4
|
+
"version": "14.162.5",
|
|
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.5
|
|
34
|
-
"@genesislcap/genx": "14.162.5
|
|
35
|
-
"@genesislcap/rollup-builder": "14.162.5
|
|
36
|
-
"@genesislcap/ts-builder": "14.162.5
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.162.5
|
|
38
|
-
"@genesislcap/vite-builder": "14.162.5
|
|
39
|
-
"@genesislcap/webpack-builder": "14.162.5
|
|
33
|
+
"@genesislcap/foundation-testing": "14.162.5",
|
|
34
|
+
"@genesislcap/genx": "14.162.5",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.162.5",
|
|
36
|
+
"@genesislcap/ts-builder": "14.162.5",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.162.5",
|
|
38
|
+
"@genesislcap/vite-builder": "14.162.5",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.162.5",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@genesislcap/foundation-comms": "14.162.5
|
|
44
|
-
"@genesislcap/foundation-logger": "14.162.5
|
|
45
|
-
"@genesislcap/foundation-ui": "14.162.5
|
|
46
|
-
"@genesislcap/foundation-utils": "14.162.5
|
|
43
|
+
"@genesislcap/foundation-comms": "14.162.5",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.162.5",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.162.5",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.162.5",
|
|
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": "47733285b6e2d7988941967021ea4a48e9613aba"
|
|
73
73
|
}
|