@genesislcap/grid-pro 14.12.2-alpha-8f5bf34.0 → 14.12.2
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.
|
@@ -346,7 +346,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
346
346
|
isSnapshot: boolean;
|
|
347
347
|
maxRows: number;
|
|
348
348
|
maxView: number;
|
|
349
|
-
pollingInterval: number;
|
|
350
349
|
movingView: boolean;
|
|
351
350
|
orderBy: string;
|
|
352
351
|
request: any;
|
|
@@ -354,7 +353,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
354
353
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
355
354
|
reverse: boolean;
|
|
356
355
|
rowId: string;
|
|
357
|
-
datasourceKey: string;
|
|
358
356
|
restartOnReconnection: boolean;
|
|
359
357
|
private dataSub;
|
|
360
358
|
private updateSub;
|
|
@@ -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,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO,EACL,OAAO,EAEP,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
|
@@ -17,7 +17,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
17
17
|
this.isSnapshot = false;
|
|
18
18
|
this.maxRows = DatasourceDefaults.MAX_ROWS_250;
|
|
19
19
|
this.maxView = DatasourceDefaults.MAX_VIEW_1000;
|
|
20
|
-
this.pollingInterval = DatasourceDefaults.REQ_REP_POLLING_INTERVAL_MS;
|
|
21
20
|
this.movingView = false;
|
|
22
21
|
this.reverse = false;
|
|
23
22
|
this.rowId = 'ROW_REF';
|
|
@@ -40,7 +39,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
40
39
|
return;
|
|
41
40
|
this.init();
|
|
42
41
|
});
|
|
43
|
-
this.connectionSub = this.connect.
|
|
42
|
+
this.connectionSub = this.connect.isConnectedSubject.subscribe((isConnected) => {
|
|
44
43
|
if (isConnected && this.agGrid.attributes['ds-disconnected']) {
|
|
45
44
|
this.agGrid.removeAttribute('ds-disconnected');
|
|
46
45
|
if (this.restartOnReconnection) {
|
|
@@ -180,9 +179,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
180
179
|
if (Array.isArray(result))
|
|
181
180
|
return result;
|
|
182
181
|
if (result.REPLY) {
|
|
183
|
-
return
|
|
184
|
-
? result.REPLY[0][this.datasourceKey]
|
|
185
|
-
: result.REPLY;
|
|
182
|
+
return result.REPLY;
|
|
186
183
|
}
|
|
187
184
|
if (result.ROW) {
|
|
188
185
|
return dataServerResultFilter(result).inserts;
|
|
@@ -200,7 +197,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
200
197
|
reverse: this.reverse,
|
|
201
198
|
maxRows: this.maxRows,
|
|
202
199
|
maxView: this.maxView,
|
|
203
|
-
pollingInterval: this.pollingInterval,
|
|
204
200
|
movingView: this.movingView,
|
|
205
201
|
};
|
|
206
202
|
}
|
|
@@ -216,28 +212,25 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
216
212
|
}
|
|
217
213
|
}
|
|
218
214
|
applyRequestServerData(requestServerResult) {
|
|
219
|
-
var _a;
|
|
215
|
+
var _a, _b;
|
|
220
216
|
if (!Array.isArray(requestServerResult.REPLY) ||
|
|
221
217
|
!((_a = requestServerResult.MESSAGE_TYPE) === null || _a === void 0 ? void 0 : _a.startsWith('REP_'))) {
|
|
222
218
|
logger.error('received invalid RequestServerResult', requestServerResult);
|
|
223
219
|
return;
|
|
224
220
|
}
|
|
225
|
-
const requestServerData = this.datasourceKey && requestServerResult.REPLY.length > 0
|
|
226
|
-
? requestServerResult.REPLY[0][this.datasourceKey]
|
|
227
|
-
: requestServerResult.REPLY;
|
|
228
221
|
if (this.requiresFullRowDataAndColDefs) {
|
|
229
222
|
if (this.rowId !== 'ROW_REF') {
|
|
230
|
-
|
|
223
|
+
(_b = requestServerResult.REPLY) === null || _b === void 0 ? void 0 : _b.forEach((insertData) => {
|
|
231
224
|
this.rows.set(insertData[this.rowId], insertData);
|
|
232
225
|
});
|
|
233
226
|
}
|
|
234
|
-
const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) :
|
|
227
|
+
const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerResult.REPLY;
|
|
235
228
|
this.updateRowData(rowData);
|
|
236
229
|
return;
|
|
237
230
|
}
|
|
238
231
|
this.agTransaction = { add: [], remove: [], update: [] };
|
|
239
|
-
this.handleStreamInserts(
|
|
240
|
-
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !
|
|
232
|
+
this.handleStreamInserts(requestServerResult.REPLY);
|
|
233
|
+
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
241
234
|
this.handleStreamDeletes(rowsToDelete);
|
|
242
235
|
this.agGrid.gridApi.applyTransactionAsync(this.agTransaction);
|
|
243
236
|
}
|
|
@@ -364,9 +357,6 @@ __decorate([
|
|
|
364
357
|
__decorate([
|
|
365
358
|
attr({ attribute: 'max-view' })
|
|
366
359
|
], GridProGenesisDatasource.prototype, "maxView", void 0);
|
|
367
|
-
__decorate([
|
|
368
|
-
attr({ attribute: 'polling-interval' })
|
|
369
|
-
], GridProGenesisDatasource.prototype, "pollingInterval", void 0);
|
|
370
360
|
__decorate([
|
|
371
361
|
attr({ attribute: 'moving-view' })
|
|
372
362
|
], GridProGenesisDatasource.prototype, "movingView", void 0);
|
|
@@ -385,9 +375,6 @@ __decorate([
|
|
|
385
375
|
__decorate([
|
|
386
376
|
attr({ attribute: 'row-id' })
|
|
387
377
|
], GridProGenesisDatasource.prototype, "rowId", void 0);
|
|
388
|
-
__decorate([
|
|
389
|
-
attr({ attribute: 'datasoruce-key' })
|
|
390
|
-
], GridProGenesisDatasource.prototype, "datasourceKey", void 0);
|
|
391
378
|
__decorate([
|
|
392
379
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
393
380
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
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.12.2
|
|
4
|
+
"version": "14.12.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test": "echo \"Error: no test specified\""
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@genesislcap/foundation-testing": "14.12.2
|
|
26
|
+
"@genesislcap/foundation-testing": "^14.12.2",
|
|
27
27
|
"@playwright/test": "^1.18.1",
|
|
28
28
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
29
29
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"webpack-merge": "^5.7.3"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@genesislcap/foundation-comms": "14.12.2
|
|
78
|
-
"@genesislcap/foundation-ui": "14.12.2
|
|
79
|
-
"@genesislcap/foundation-utils": "14.12.2
|
|
77
|
+
"@genesislcap/foundation-comms": "^14.12.2",
|
|
78
|
+
"@genesislcap/foundation-ui": "^14.12.2",
|
|
79
|
+
"@genesislcap/foundation-utils": "^14.12.2",
|
|
80
80
|
"@microsoft/fast-colors": "^5.1.4",
|
|
81
81
|
"@microsoft/fast-components": "^2.21.3",
|
|
82
82
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "cbd0a8fd35372ecfc6c35c191824374c1919f07a"
|
|
101
101
|
}
|