@genesislcap/grid-pro 14.11.3-alpha-58010ce.0 → 14.11.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.
|
@@ -346,14 +346,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
346
346
|
isSnapshot: boolean;
|
|
347
347
|
maxRows: number;
|
|
348
348
|
maxView: number;
|
|
349
|
-
pollingInterval: number;
|
|
350
349
|
orderBy: string;
|
|
351
350
|
request: any;
|
|
352
351
|
resourceName: string;
|
|
353
352
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
354
353
|
reverse: boolean;
|
|
355
354
|
rowId: string;
|
|
356
|
-
datasourceKey: string;
|
|
357
355
|
restartOnReconnection: boolean;
|
|
358
356
|
private dataSub;
|
|
359
357
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB/D,qBAGa,wBAAyB,SAAQ,6BAAiC;IACpE,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,EAAE,OAAO,CAAS;IAChD,OAAO,EAAE,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB/D,qBAGa,wBAAyB,SAAQ,6BAAiC;IACpE,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,EAAE,OAAO,CAAS;IAChD,OAAO,EAAE,MAAM,CA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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.reverse = false;
|
|
22
21
|
this.rowId = 'ROW_REF';
|
|
23
22
|
this.restartOnReconnection = false;
|
|
@@ -39,7 +38,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
39
38
|
return;
|
|
40
39
|
this.init();
|
|
41
40
|
});
|
|
42
|
-
this.connectionSub = this.connect.
|
|
41
|
+
this.connectionSub = this.connect.isConnectedSubject.subscribe((isConnected) => {
|
|
43
42
|
if (isConnected && this.agGrid.attributes['ds-disconnected']) {
|
|
44
43
|
this.agGrid.removeAttribute('ds-disconnected');
|
|
45
44
|
if (this.restartOnReconnection) {
|
|
@@ -179,9 +178,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
179
178
|
if (Array.isArray(result))
|
|
180
179
|
return result;
|
|
181
180
|
if (result.REPLY) {
|
|
182
|
-
return
|
|
183
|
-
? result.REPLY[0][this.datasourceKey]
|
|
184
|
-
: result.REPLY;
|
|
181
|
+
return result.REPLY;
|
|
185
182
|
}
|
|
186
183
|
if (result.ROW) {
|
|
187
184
|
return dataServerResultFilter(result).inserts;
|
|
@@ -199,7 +196,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
199
196
|
reverse: this.reverse,
|
|
200
197
|
maxRows: this.maxRows,
|
|
201
198
|
maxView: this.maxView,
|
|
202
|
-
pollingInterval: this.pollingInterval,
|
|
203
199
|
};
|
|
204
200
|
}
|
|
205
201
|
handleStreamResult(result) {
|
|
@@ -214,28 +210,25 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
214
210
|
}
|
|
215
211
|
}
|
|
216
212
|
applyRequestServerData(requestServerResult) {
|
|
217
|
-
var _a;
|
|
213
|
+
var _a, _b;
|
|
218
214
|
if (!Array.isArray(requestServerResult.REPLY) ||
|
|
219
215
|
!((_a = requestServerResult.MESSAGE_TYPE) === null || _a === void 0 ? void 0 : _a.startsWith('REP_'))) {
|
|
220
216
|
logger.error('received invalid RequestServerResult', requestServerResult);
|
|
221
217
|
return;
|
|
222
218
|
}
|
|
223
|
-
const requestServerData = this.datasourceKey && requestServerResult.REPLY.length > 0
|
|
224
|
-
? requestServerResult.REPLY[0][this.datasourceKey]
|
|
225
|
-
: requestServerResult.REPLY;
|
|
226
219
|
if (this.requiresFullRowDataAndColDefs) {
|
|
227
220
|
if (this.rowId !== 'ROW_REF') {
|
|
228
|
-
|
|
221
|
+
(_b = requestServerResult.REPLY) === null || _b === void 0 ? void 0 : _b.forEach((insertData) => {
|
|
229
222
|
this.rows.set(insertData[this.rowId], insertData);
|
|
230
223
|
});
|
|
231
224
|
}
|
|
232
|
-
const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) :
|
|
225
|
+
const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerResult.REPLY;
|
|
233
226
|
this.updateRowData(rowData);
|
|
234
227
|
return;
|
|
235
228
|
}
|
|
236
229
|
this.agTransaction = { add: [], remove: [], update: [] };
|
|
237
|
-
this.handleStreamInserts(
|
|
238
|
-
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !
|
|
230
|
+
this.handleStreamInserts(requestServerResult.REPLY);
|
|
231
|
+
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
239
232
|
this.handleStreamDeletes(rowsToDelete);
|
|
240
233
|
this.agGrid.gridApi.applyTransactionAsync(this.agTransaction);
|
|
241
234
|
}
|
|
@@ -362,9 +355,6 @@ __decorate([
|
|
|
362
355
|
__decorate([
|
|
363
356
|
attr({ attribute: 'max-view' })
|
|
364
357
|
], GridProGenesisDatasource.prototype, "maxView", void 0);
|
|
365
|
-
__decorate([
|
|
366
|
-
attr({ attribute: 'polling-interval' })
|
|
367
|
-
], GridProGenesisDatasource.prototype, "pollingInterval", void 0);
|
|
368
358
|
__decorate([
|
|
369
359
|
attr({ attribute: 'order-by' })
|
|
370
360
|
], GridProGenesisDatasource.prototype, "orderBy", void 0);
|
|
@@ -380,9 +370,6 @@ __decorate([
|
|
|
380
370
|
__decorate([
|
|
381
371
|
attr({ attribute: 'row-id' })
|
|
382
372
|
], GridProGenesisDatasource.prototype, "rowId", void 0);
|
|
383
|
-
__decorate([
|
|
384
|
-
attr({ attribute: 'datasoruce-key' })
|
|
385
|
-
], GridProGenesisDatasource.prototype, "datasourceKey", void 0);
|
|
386
373
|
__decorate([
|
|
387
374
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
388
375
|
], 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.11.3
|
|
4
|
+
"version": "14.11.3",
|
|
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.11.3
|
|
26
|
+
"@genesislcap/foundation-testing": "^14.11.3",
|
|
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.11.3
|
|
78
|
-
"@genesislcap/foundation-ui": "14.11.3
|
|
79
|
-
"@genesislcap/foundation-utils": "14.11.3
|
|
77
|
+
"@genesislcap/foundation-comms": "^14.11.3",
|
|
78
|
+
"@genesislcap/foundation-ui": "^14.11.3",
|
|
79
|
+
"@genesislcap/foundation-utils": "^14.11.3",
|
|
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": "385e6307708bf4cb085b71084a83270c7e1596cd"
|
|
101
101
|
}
|