@genesislcap/grid-pro 14.158.1-beta.9f2f9a2.0 → 14.158.1-beta.c41ab3f.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 +40 -18
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +9 -16
- 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 +9 -5
- package/dist/grid-pro.api.json +33 -25
- package/dist/grid-pro.d.ts +8 -15
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +1 -8
- package/docs/api/grid-pro.gridprogenesisdatasource.keepcoldefsonclearrowdata.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.md +2 -1
- package/docs/api-report.md +3 -1
- package/package.json +13 -13
|
@@ -6768,6 +6768,18 @@
|
|
|
6768
6768
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
6769
6769
|
}
|
|
6770
6770
|
},
|
|
6771
|
+
{
|
|
6772
|
+
"kind": "field",
|
|
6773
|
+
"name": "keepColDefsOnClearRowData",
|
|
6774
|
+
"type": {
|
|
6775
|
+
"text": "boolean"
|
|
6776
|
+
},
|
|
6777
|
+
"default": "false",
|
|
6778
|
+
"inheritedFrom": {
|
|
6779
|
+
"name": "GridProGenesisDatasource",
|
|
6780
|
+
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
6781
|
+
}
|
|
6782
|
+
},
|
|
6771
6783
|
{
|
|
6772
6784
|
"kind": "field",
|
|
6773
6785
|
"name": "dataSub",
|
|
@@ -6858,15 +6870,6 @@
|
|
|
6858
6870
|
{
|
|
6859
6871
|
"kind": "method",
|
|
6860
6872
|
"name": "init",
|
|
6861
|
-
"parameters": [
|
|
6862
|
-
{
|
|
6863
|
-
"name": "columnDefinitions",
|
|
6864
|
-
"optional": true,
|
|
6865
|
-
"type": {
|
|
6866
|
-
"text": "ColDef[]"
|
|
6867
|
-
}
|
|
6868
|
-
}
|
|
6869
|
-
],
|
|
6870
6873
|
"description": "Initializes the datasource.",
|
|
6871
6874
|
"privacy": "public",
|
|
6872
6875
|
"inheritedFrom": {
|
|
@@ -7685,6 +7688,18 @@
|
|
|
7685
7688
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7686
7689
|
}
|
|
7687
7690
|
},
|
|
7691
|
+
{
|
|
7692
|
+
"name": "keep-col-defs-on-clear-row-data",
|
|
7693
|
+
"type": {
|
|
7694
|
+
"text": "boolean"
|
|
7695
|
+
},
|
|
7696
|
+
"default": "false",
|
|
7697
|
+
"fieldName": "keepColDefsOnClearRowData",
|
|
7698
|
+
"inheritedFrom": {
|
|
7699
|
+
"name": "GridProGenesisDatasource",
|
|
7700
|
+
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7701
|
+
}
|
|
7702
|
+
},
|
|
7688
7703
|
{
|
|
7689
7704
|
"name": "criteria",
|
|
7690
7705
|
"type": {
|
|
@@ -9590,6 +9605,14 @@
|
|
|
9590
9605
|
},
|
|
9591
9606
|
"default": "false"
|
|
9592
9607
|
},
|
|
9608
|
+
{
|
|
9609
|
+
"kind": "field",
|
|
9610
|
+
"name": "keepColDefsOnClearRowData",
|
|
9611
|
+
"type": {
|
|
9612
|
+
"text": "boolean"
|
|
9613
|
+
},
|
|
9614
|
+
"default": "false"
|
|
9615
|
+
},
|
|
9593
9616
|
{
|
|
9594
9617
|
"kind": "field",
|
|
9595
9618
|
"name": "dataSub",
|
|
@@ -9665,15 +9688,6 @@
|
|
|
9665
9688
|
{
|
|
9666
9689
|
"kind": "method",
|
|
9667
9690
|
"name": "init",
|
|
9668
|
-
"parameters": [
|
|
9669
|
-
{
|
|
9670
|
-
"name": "columnDefinitions",
|
|
9671
|
-
"optional": true,
|
|
9672
|
-
"type": {
|
|
9673
|
-
"text": "ColDef[]"
|
|
9674
|
-
}
|
|
9675
|
-
}
|
|
9676
|
-
],
|
|
9677
9691
|
"description": "Initializes the datasource.",
|
|
9678
9692
|
"privacy": "public"
|
|
9679
9693
|
},
|
|
@@ -10491,6 +10505,14 @@
|
|
|
10491
10505
|
"default": "false",
|
|
10492
10506
|
"fieldName": "restartOnReconnection"
|
|
10493
10507
|
},
|
|
10508
|
+
{
|
|
10509
|
+
"name": "keep-col-defs-on-clear-row-data",
|
|
10510
|
+
"type": {
|
|
10511
|
+
"text": "boolean"
|
|
10512
|
+
},
|
|
10513
|
+
"default": "false",
|
|
10514
|
+
"fieldName": "keepColDefsOnClearRowData"
|
|
10515
|
+
},
|
|
10494
10516
|
{
|
|
10495
10517
|
"name": "criteria",
|
|
10496
10518
|
"type": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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[]) => {
|
|
@@ -50,23 +50,21 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
50
50
|
readonly clientTop: number;
|
|
51
51
|
readonly clientWidth: number;
|
|
52
52
|
id: string;
|
|
53
|
+
readonly localName: string;
|
|
54
|
+
readonly namespaceURI: string;
|
|
53
55
|
/**
|
|
54
56
|
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
55
57
|
* @public
|
|
56
58
|
*/
|
|
57
|
-
readonly localName: string;
|
|
58
|
-
readonly namespaceURI: string;
|
|
59
59
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
60
60
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
61
|
-
outerHTML: string;
|
|
61
|
+
outerHTML: string; /**
|
|
62
|
+
* Force the grid to redispatch the current rows
|
|
63
|
+
*/
|
|
62
64
|
readonly ownerDocument: Document;
|
|
63
65
|
readonly part: DOMTokenList;
|
|
64
66
|
readonly prefix: string;
|
|
65
|
-
readonly scrollHeight: number;
|
|
66
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
67
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
67
|
+
readonly scrollHeight: number;
|
|
70
68
|
scrollLeft: number;
|
|
71
69
|
scrollTop: number;
|
|
72
70
|
readonly scrollWidth: number;
|
|
@@ -102,12 +100,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
102
100
|
releasePointerCapture(pointerId: number): void;
|
|
103
101
|
removeAttribute(qualifiedName: string): void;
|
|
104
102
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
105
|
-
/**
|
|
106
|
-
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
107
|
-
* Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
|
|
108
|
-
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
103
|
removeAttributeNode(attr: Attr): Attr;
|
|
112
104
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
113
105
|
requestPointerLock(): void;
|
|
@@ -356,6 +348,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
356
348
|
request: any;
|
|
357
349
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
358
350
|
restartOnReconnection: boolean;
|
|
351
|
+
keepColDefsOnClearRowData: boolean;
|
|
359
352
|
private dataSub;
|
|
360
353
|
private updateSub;
|
|
361
354
|
private connectionSub;
|
|
@@ -371,7 +364,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
371
364
|
* @public
|
|
372
365
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
373
366
|
*/
|
|
374
|
-
init(
|
|
367
|
+
init(): Promise<void>;
|
|
375
368
|
/**
|
|
376
369
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
377
370
|
* @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,EAAU,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgNpE;;;OAGG;;;uBAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhNL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAEpC,aAAa,SAAsB;IACnC,kBAAkB,SAA2B;IAG7C,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASf,eAAe,EAAE,MAAM,CACf;IACQ,cAAc,EAAE,OAAO,CAAS;IAC7E,OAAO,EAAE,GAAG,CAAC;IAEzB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKW,qBAAqB,UAAS;IAG/F,yBAAyB,UAAS;IAElC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,6BAA6B,CAAQ;IAE7C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;IAWX,SAAS,IAAI,IAAI;IAU1B;;;;OAIG;IACG,IAAI;IAsDV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA8BL;;;OAGG;IACH,OAAO;IAKP;;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"}
|
|
@@ -24,6 +24,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
24
24
|
this.pollingInterval = DatasourceDefaults.REQ_REP_POLLING_INTERVAL_MS;
|
|
25
25
|
this.disablePolling = false;
|
|
26
26
|
this.restartOnReconnection = false;
|
|
27
|
+
this.keepColDefsOnClearRowData = false;
|
|
27
28
|
this.requiresFullRowDataAndColDefs = true;
|
|
28
29
|
this.criteriaFromFilters = new Map();
|
|
29
30
|
this.update = new BehaviorSubject(new Map());
|
|
@@ -83,7 +84,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
83
84
|
* @public
|
|
84
85
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
85
86
|
*/
|
|
86
|
-
init(
|
|
87
|
+
init() {
|
|
88
|
+
var _a, _b;
|
|
87
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
90
|
if (this.agGrid &&
|
|
89
91
|
this.datasource.validResourceName(this.resourceName) &&
|
|
@@ -97,7 +99,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
97
99
|
return;
|
|
98
100
|
}
|
|
99
101
|
this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
|
|
100
|
-
const gridOptions = Object.assign(
|
|
102
|
+
const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId], columnDefs: (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.getColumnDefs() }, this.deferredGridOptions);
|
|
101
103
|
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
102
104
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
103
105
|
yield this.loadResourceData();
|
|
@@ -153,9 +155,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
153
155
|
* @public
|
|
154
156
|
*/
|
|
155
157
|
restart() {
|
|
156
|
-
const columnDefinitions = this.agGrid.gridApi.getColumnDefs();
|
|
157
158
|
this.deinit();
|
|
158
|
-
this.init(
|
|
159
|
+
this.init();
|
|
159
160
|
}
|
|
160
161
|
/**
|
|
161
162
|
* Force the grid to redispatch the current rows
|
|
@@ -185,7 +186,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
185
186
|
var _a, _b, _c, _d;
|
|
186
187
|
this.rowData = new Map();
|
|
187
188
|
this.agTransaction = undefined;
|
|
188
|
-
if (withColumnDefs) {
|
|
189
|
+
if (withColumnDefs && !this.keepColDefsOnClearRowData) {
|
|
189
190
|
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
|
|
190
191
|
}
|
|
191
192
|
(_d = (_c = this.agGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.setRowData([]);
|
|
@@ -437,6 +438,9 @@ __decorate([
|
|
|
437
438
|
__decorate([
|
|
438
439
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
439
440
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
441
|
+
__decorate([
|
|
442
|
+
attr({ mode: 'boolean', attribute: 'keep-col-defs-on-clear-row-data' })
|
|
443
|
+
], GridProGenesisDatasource.prototype, "keepColDefsOnClearRowData", void 0);
|
|
440
444
|
GridProGenesisDatasource = __decorate([
|
|
441
445
|
customElement({
|
|
442
446
|
name: 'grid-pro-genesis-datasource',
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -10662,20 +10662,7 @@
|
|
|
10662
10662
|
"excerptTokens": [
|
|
10663
10663
|
{
|
|
10664
10664
|
"kind": "Content",
|
|
10665
|
-
"text": "init(
|
|
10666
|
-
},
|
|
10667
|
-
{
|
|
10668
|
-
"kind": "Reference",
|
|
10669
|
-
"text": "ColDef",
|
|
10670
|
-
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
10671
|
-
},
|
|
10672
|
-
{
|
|
10673
|
-
"kind": "Content",
|
|
10674
|
-
"text": "[]"
|
|
10675
|
-
},
|
|
10676
|
-
{
|
|
10677
|
-
"kind": "Content",
|
|
10678
|
-
"text": "): "
|
|
10665
|
+
"text": "init(): "
|
|
10679
10666
|
},
|
|
10680
10667
|
{
|
|
10681
10668
|
"kind": "Reference",
|
|
@@ -10693,25 +10680,46 @@
|
|
|
10693
10680
|
],
|
|
10694
10681
|
"isStatic": false,
|
|
10695
10682
|
"returnTypeTokenRange": {
|
|
10696
|
-
"startIndex":
|
|
10697
|
-
"endIndex":
|
|
10683
|
+
"startIndex": 1,
|
|
10684
|
+
"endIndex": 3
|
|
10698
10685
|
},
|
|
10699
10686
|
"releaseTag": "Public",
|
|
10700
10687
|
"isProtected": false,
|
|
10701
10688
|
"overloadIndex": 1,
|
|
10702
|
-
"parameters": [
|
|
10689
|
+
"parameters": [],
|
|
10690
|
+
"isOptional": false,
|
|
10691
|
+
"isAbstract": false,
|
|
10692
|
+
"name": "init"
|
|
10693
|
+
},
|
|
10694
|
+
{
|
|
10695
|
+
"kind": "Property",
|
|
10696
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#keepColDefsOnClearRowData:member",
|
|
10697
|
+
"docComment": "",
|
|
10698
|
+
"excerptTokens": [
|
|
10703
10699
|
{
|
|
10704
|
-
"
|
|
10705
|
-
"
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
"
|
|
10700
|
+
"kind": "Content",
|
|
10701
|
+
"text": "keepColDefsOnClearRowData: "
|
|
10702
|
+
},
|
|
10703
|
+
{
|
|
10704
|
+
"kind": "Content",
|
|
10705
|
+
"text": "boolean"
|
|
10706
|
+
},
|
|
10707
|
+
{
|
|
10708
|
+
"kind": "Content",
|
|
10709
|
+
"text": ";"
|
|
10710
10710
|
}
|
|
10711
10711
|
],
|
|
10712
|
+
"isReadonly": false,
|
|
10712
10713
|
"isOptional": false,
|
|
10713
|
-
"
|
|
10714
|
-
"name": "
|
|
10714
|
+
"releaseTag": "Public",
|
|
10715
|
+
"name": "keepColDefsOnClearRowData",
|
|
10716
|
+
"propertyTypeTokenRange": {
|
|
10717
|
+
"startIndex": 1,
|
|
10718
|
+
"endIndex": 2
|
|
10719
|
+
},
|
|
10720
|
+
"isStatic": false,
|
|
10721
|
+
"isProtected": false,
|
|
10722
|
+
"isAbstract": false
|
|
10715
10723
|
},
|
|
10716
10724
|
{
|
|
10717
10725
|
"kind": "Property",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1765,6 +1765,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1765
1765
|
request: any;
|
|
1766
1766
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
1767
1767
|
restartOnReconnection: boolean;
|
|
1768
|
+
keepColDefsOnClearRowData: boolean;
|
|
1768
1769
|
private dataSub;
|
|
1769
1770
|
private updateSub;
|
|
1770
1771
|
private connectionSub;
|
|
@@ -1780,7 +1781,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1780
1781
|
* @public
|
|
1781
1782
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1782
1783
|
*/
|
|
1783
|
-
init(
|
|
1784
|
+
init(): Promise<void>;
|
|
1784
1785
|
/**
|
|
1785
1786
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
1786
1787
|
* @public
|
|
@@ -1898,23 +1899,21 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1898
1899
|
readonly clientTop: number;
|
|
1899
1900
|
readonly clientWidth: number;
|
|
1900
1901
|
id: string;
|
|
1902
|
+
readonly localName: string;
|
|
1903
|
+
readonly namespaceURI: string;
|
|
1901
1904
|
/**
|
|
1902
1905
|
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1903
1906
|
* @public
|
|
1904
1907
|
*/
|
|
1905
|
-
readonly localName: string;
|
|
1906
|
-
readonly namespaceURI: string;
|
|
1907
1908
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
1908
1909
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
1909
|
-
outerHTML: string;
|
|
1910
|
+
outerHTML: string; /**
|
|
1911
|
+
* Force the grid to redispatch the current rows
|
|
1912
|
+
*/
|
|
1910
1913
|
readonly ownerDocument: Document;
|
|
1911
1914
|
readonly part: DOMTokenList;
|
|
1912
1915
|
readonly prefix: string;
|
|
1913
|
-
readonly scrollHeight: number;
|
|
1914
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1915
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
1916
|
-
* @internal
|
|
1917
|
-
*/
|
|
1916
|
+
readonly scrollHeight: number;
|
|
1918
1917
|
scrollLeft: number;
|
|
1919
1918
|
scrollTop: number;
|
|
1920
1919
|
readonly scrollWidth: number;
|
|
@@ -1950,12 +1949,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1950
1949
|
releasePointerCapture(pointerId: number): void;
|
|
1951
1950
|
removeAttribute(qualifiedName: string): void;
|
|
1952
1951
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
1953
|
-
/**
|
|
1954
|
-
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
1955
|
-
* Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
|
|
1956
|
-
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
1957
|
-
* @internal
|
|
1958
|
-
*/
|
|
1959
1952
|
removeAttributeNode(attr: Attr): Attr;
|
|
1960
1953
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
1961
1954
|
requestPointerLock(): void;
|
|
@@ -9,15 +9,8 @@ Initializes the datasource.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
init(
|
|
12
|
+
init(): Promise<void>;
|
|
13
13
|
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| columnDefinitions | ColDef\[\] | _(Optional)_ |
|
|
20
|
-
|
|
21
14
|
**Returns:**
|
|
22
15
|
|
|
23
16
|
Promise<void>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) > [keepColDefsOnClearRowData](./grid-pro.gridprogenesisdatasource.keepcoldefsonclearrowdata.md)
|
|
4
|
+
|
|
5
|
+
## GridProGenesisDatasource.keepColDefsOnClearRowData property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
keepColDefsOnClearRowData: boolean;
|
|
11
|
+
```
|
|
@@ -26,6 +26,7 @@ Only supports Client-Side Row Model.
|
|
|
26
26
|
| [auth](./grid-pro.gridprogenesisdatasource.auth.md) | | Auth | |
|
|
27
27
|
| [datasource](./grid-pro.gridprogenesisdatasource.datasource.md) | | Datasource | |
|
|
28
28
|
| [disablePolling](./grid-pro.gridprogenesisdatasource.disablepolling.md) | | boolean | |
|
|
29
|
+
| [keepColDefsOnClearRowData](./grid-pro.gridprogenesisdatasource.keepcoldefsonclearrowdata.md) | | boolean | |
|
|
29
30
|
| [pollingInterval](./grid-pro.gridprogenesisdatasource.pollinginterval.md) | | number | |
|
|
30
31
|
| [request](./grid-pro.gridprogenesisdatasource.request.md) | | any | |
|
|
31
32
|
| [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
|
|
@@ -42,7 +43,7 @@ Only supports Client-Side Row Model.
|
|
|
42
43
|
| [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
|
|
43
44
|
| [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
|
|
44
45
|
| [handleErrors(result)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
|
|
45
|
-
| [init(
|
|
46
|
+
| [init()](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
|
|
46
47
|
| [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | Force the grid to redispatch the current rows |
|
|
47
48
|
| [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
|
|
48
49
|
| [reset()](./grid-pro.gridprogenesisdatasource.reset.md) | | Resets the datasource to its initial state. |
|
package/docs/api-report.md
CHANGED
|
@@ -970,7 +970,9 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
970
970
|
disconnectedCallback(): void;
|
|
971
971
|
// (undocumented)
|
|
972
972
|
handleErrors(result: any): void;
|
|
973
|
-
init(
|
|
973
|
+
init(): Promise<void>;
|
|
974
|
+
// (undocumented)
|
|
975
|
+
keepColDefsOnClearRowData: boolean;
|
|
974
976
|
// (undocumented)
|
|
975
977
|
pollingInterval: number;
|
|
976
978
|
refreshRows(): void;
|
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.158.1-beta.
|
|
4
|
+
"version": "14.158.1-beta.c41ab3f.1",
|
|
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.158.1-beta.
|
|
34
|
-
"@genesislcap/genx": "14.158.1-beta.
|
|
35
|
-
"@genesislcap/rollup-builder": "14.158.1-beta.
|
|
36
|
-
"@genesislcap/ts-builder": "14.158.1-beta.
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.158.1-beta.
|
|
38
|
-
"@genesislcap/vite-builder": "14.158.1-beta.
|
|
39
|
-
"@genesislcap/webpack-builder": "14.158.1-beta.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.158.1-beta.c41ab3f.1",
|
|
34
|
+
"@genesislcap/genx": "14.158.1-beta.c41ab3f.1",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.158.1-beta.c41ab3f.1",
|
|
36
|
+
"@genesislcap/ts-builder": "14.158.1-beta.c41ab3f.1",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.158.1-beta.c41ab3f.1",
|
|
38
|
+
"@genesislcap/vite-builder": "14.158.1-beta.c41ab3f.1",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.158.1-beta.c41ab3f.1",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@genesislcap/foundation-comms": "14.158.1-beta.
|
|
44
|
-
"@genesislcap/foundation-logger": "14.158.1-beta.
|
|
45
|
-
"@genesislcap/foundation-ui": "14.158.1-beta.
|
|
46
|
-
"@genesislcap/foundation-utils": "14.158.1-beta.
|
|
43
|
+
"@genesislcap/foundation-comms": "14.158.1-beta.c41ab3f.1",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.158.1-beta.c41ab3f.1",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.158.1-beta.c41ab3f.1",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.158.1-beta.c41ab3f.1",
|
|
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": "3763e646a3d58d4b9659db1445bfd1714f98e005"
|
|
73
73
|
}
|