@genesislcap/grid-pro 14.162.2-alpha-a2fd6f2.0 → 14.162.3
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 +16 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +3 -2
- 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 +6 -3
- package/dist/grid-pro.api.json +24 -3
- package/dist/grid-pro.d.ts +2 -1
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +2 -1
- package/docs/api/grid-pro.gridprogenesisdatasource.md +1 -1
- package/docs/api-report.md +1 -1
- package/package.json +13 -13
|
@@ -6878,6 +6878,14 @@
|
|
|
6878
6878
|
"text": "ColDef[]"
|
|
6879
6879
|
},
|
|
6880
6880
|
"description": "Optionally set the `gridOptions` up with column definitions"
|
|
6881
|
+
},
|
|
6882
|
+
{
|
|
6883
|
+
"name": "columnStates",
|
|
6884
|
+
"optional": true,
|
|
6885
|
+
"type": {
|
|
6886
|
+
"text": "ColumnState[]"
|
|
6887
|
+
},
|
|
6888
|
+
"description": "Optionally set the `gridOptions` up with column state"
|
|
6881
6889
|
}
|
|
6882
6890
|
],
|
|
6883
6891
|
"description": "Initializes the datasource.",
|
|
@@ -9706,6 +9714,14 @@
|
|
|
9706
9714
|
"text": "ColDef[]"
|
|
9707
9715
|
},
|
|
9708
9716
|
"description": "Optionally set the `gridOptions` up with column definitions"
|
|
9717
|
+
},
|
|
9718
|
+
{
|
|
9719
|
+
"name": "columnStates",
|
|
9720
|
+
"optional": true,
|
|
9721
|
+
"type": {
|
|
9722
|
+
"text": "ColumnState[]"
|
|
9723
|
+
},
|
|
9724
|
+
"description": "Optionally set the `gridOptions` up with column state"
|
|
9709
9725
|
}
|
|
9710
9726
|
],
|
|
9711
9727
|
"description": "Initializes the datasource.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColDef, RowDataTransaction, RowNodeTransaction } from '@ag-grid-community/core';
|
|
1
|
+
import type { ColDef, ColumnState, RowDataTransaction, RowNodeTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { Auth, Datasource } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
4
4
|
declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
@@ -357,9 +357,10 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
357
357
|
* Initializes the datasource.
|
|
358
358
|
* @public
|
|
359
359
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
360
|
+
* @param columnStates - Optionally set the `gridOptions` up with column state
|
|
360
361
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
361
362
|
*/
|
|
362
|
-
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
363
|
+
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
363
364
|
/**
|
|
364
365
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
365
366
|
* @public
|
|
@@ -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,
|
|
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,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;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;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,9 +83,10 @@ 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 `gridOptions` up with column state
|
|
86
87
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
87
88
|
*/
|
|
88
|
-
init(columnDefinitions) {
|
|
89
|
+
init(columnDefinitions, columnStates) {
|
|
89
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
91
|
if (this.agGrid &&
|
|
91
92
|
this.datasource.validResourceName(this.resourceName) &&
|
|
@@ -99,7 +100,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
99
100
|
return;
|
|
100
101
|
}
|
|
101
102
|
this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
|
|
102
|
-
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);
|
|
103
104
|
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
104
105
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
105
106
|
yield this.loadResourceData();
|
|
@@ -156,11 +157,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
156
157
|
*/
|
|
157
158
|
restart() {
|
|
158
159
|
let columnDefinitions;
|
|
160
|
+
let columnStates;
|
|
159
161
|
if (this.keepColDefsOnClearRowData) {
|
|
160
162
|
columnDefinitions = this.agGrid.gridApi.getColumnDefs();
|
|
163
|
+
columnStates = this.agGrid.columnApi.getColumnState();
|
|
161
164
|
}
|
|
162
165
|
this.deinit();
|
|
163
|
-
this.init(columnDefinitions);
|
|
166
|
+
this.init(columnDefinitions, columnStates);
|
|
164
167
|
}
|
|
165
168
|
/**
|
|
166
169
|
* Force the grid to redispatch the current rows
|
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 * @public\n */\n",
|
|
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",
|
|
@@ -10673,6 +10673,19 @@
|
|
|
10673
10673
|
"kind": "Content",
|
|
10674
10674
|
"text": "[]"
|
|
10675
10675
|
},
|
|
10676
|
+
{
|
|
10677
|
+
"kind": "Content",
|
|
10678
|
+
"text": ", columnStates?: "
|
|
10679
|
+
},
|
|
10680
|
+
{
|
|
10681
|
+
"kind": "Reference",
|
|
10682
|
+
"text": "ColumnState",
|
|
10683
|
+
"canonicalReference": "@ag-grid-community/core!ColumnState:interface"
|
|
10684
|
+
},
|
|
10685
|
+
{
|
|
10686
|
+
"kind": "Content",
|
|
10687
|
+
"text": "[]"
|
|
10688
|
+
},
|
|
10676
10689
|
{
|
|
10677
10690
|
"kind": "Content",
|
|
10678
10691
|
"text": "): "
|
|
@@ -10693,8 +10706,8 @@
|
|
|
10693
10706
|
],
|
|
10694
10707
|
"isStatic": false,
|
|
10695
10708
|
"returnTypeTokenRange": {
|
|
10696
|
-
"startIndex":
|
|
10697
|
-
"endIndex":
|
|
10709
|
+
"startIndex": 7,
|
|
10710
|
+
"endIndex": 9
|
|
10698
10711
|
},
|
|
10699
10712
|
"releaseTag": "Public",
|
|
10700
10713
|
"isProtected": false,
|
|
@@ -10707,6 +10720,14 @@
|
|
|
10707
10720
|
"endIndex": 3
|
|
10708
10721
|
},
|
|
10709
10722
|
"isOptional": true
|
|
10723
|
+
},
|
|
10724
|
+
{
|
|
10725
|
+
"parameterName": "columnStates",
|
|
10726
|
+
"parameterTypeTokenRange": {
|
|
10727
|
+
"startIndex": 4,
|
|
10728
|
+
"endIndex": 6
|
|
10729
|
+
},
|
|
10730
|
+
"isOptional": true
|
|
10710
10731
|
}
|
|
10711
10732
|
],
|
|
10712
10733
|
"isOptional": false,
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1780,9 +1780,10 @@ 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 `gridOptions` up with column state
|
|
1783
1784
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1784
1785
|
*/
|
|
1785
|
-
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
1786
|
+
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
1786
1787
|
/**
|
|
1787
1788
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
1788
1789
|
* @public
|
|
@@ -9,7 +9,7 @@ Initializes the datasource.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
12
|
+
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -17,6 +17,7 @@ init(columnDefinitions?: ColDef[]): 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 <code>gridOptions</code> up with column state |
|
|
20
21
|
|
|
21
22
|
**Returns:**
|
|
22
23
|
|
|
@@ -43,7 +43,7 @@ Only supports Client-Side Row Model.
|
|
|
43
43
|
| [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
|
|
44
44
|
| [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
|
|
45
45
|
| [handleErrors(result)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
|
|
46
|
-
| [init(columnDefinitions)](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
|
|
46
|
+
| [init(columnDefinitions, columnStates)](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
|
|
47
47
|
| [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | Force the grid to redispatch the current rows |
|
|
48
48
|
| [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
|
|
49
49
|
| [reset()](./grid-pro.gridprogenesisdatasource.reset.md) | | Resets the datasource to its initial state. |
|
package/docs/api-report.md
CHANGED
|
@@ -970,7 +970,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
970
970
|
disconnectedCallback(): void;
|
|
971
971
|
// (undocumented)
|
|
972
972
|
handleErrors(result: any): void;
|
|
973
|
-
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
973
|
+
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
974
974
|
// (undocumented)
|
|
975
975
|
keepColDefsOnClearRowData: boolean;
|
|
976
976
|
// (undocumented)
|
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.3",
|
|
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.3",
|
|
34
|
+
"@genesislcap/genx": "14.162.3",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.162.3",
|
|
36
|
+
"@genesislcap/ts-builder": "14.162.3",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.162.3",
|
|
38
|
+
"@genesislcap/vite-builder": "14.162.3",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.162.3",
|
|
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.3",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.162.3",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.162.3",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.162.3",
|
|
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": "ec9c4e02d46ba766a3760bbe85a77ffb40c6c55c"
|
|
73
73
|
}
|