@genesislcap/grid-pro 14.8.0-bny.12 → 14.8.0-bny.14
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.
|
@@ -370,13 +370,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
370
370
|
reset(): void;
|
|
371
371
|
private clearRowData;
|
|
372
372
|
private updateRowData;
|
|
373
|
-
private mapRowData;
|
|
374
373
|
private loadResourceData;
|
|
375
374
|
private handleSnapshot;
|
|
376
375
|
private datasourceOptions;
|
|
377
376
|
private handleStreamResult;
|
|
378
377
|
private applyRequestServerData;
|
|
379
378
|
private applyDataserverData;
|
|
379
|
+
private mapTransaction;
|
|
380
380
|
private handleStreamInserts;
|
|
381
381
|
private handleStreamDeletes;
|
|
382
382
|
private handleStreamUpdates;
|
|
@@ -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;IACnD,OAAO,EAAE,MAAM,CAAC;IACrC,OAAO,EAAE,GAAG,CAAC;IACa,YAAY,EAAE,MAAM,CAAC;IAChC,OAAO,EAAE,OAAO,CAAS;IACrB,KAAK,EAAE,MAAM,CAAa;IAC7C,aAAa,EAAE,QAAQ,CAAC;IAEpC,OAAO,CAAC,6BAA6B,CAAQ;IAC7C,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IACtF,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,iBAAiB;IAgBjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAGD,IAAI;IAkCJ,KAAK;IAOL,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,aAAa;
|
|
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,4BA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AoB;IASX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAGD,IAAI;IAkCJ,KAAK;IAOL,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,aAAa;YAgBP,gBAAgB;IAgD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,sBAAsB;IAuC9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA0CvB,OAAO,CAAC,aAAa;IAMrB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASjD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
|
@@ -94,13 +94,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
94
94
|
if (agColumnDefs.length > 0) {
|
|
95
95
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
96
96
|
}
|
|
97
|
-
this.
|
|
98
|
-
this.requiresFullRowDataAndColDefs = false;
|
|
99
|
-
}
|
|
100
|
-
mapRowData(rowData) {
|
|
101
|
-
return this.rowDataMapper && typeof this.rowDataMapper === 'function'
|
|
97
|
+
const data = this.rowDataMapper && typeof this.rowDataMapper === 'function'
|
|
102
98
|
? this.rowDataMapper(rowData)
|
|
103
99
|
: rowData;
|
|
100
|
+
this.agGrid.gridApi.setRowData(data);
|
|
101
|
+
this.requiresFullRowDataAndColDefs = false;
|
|
104
102
|
}
|
|
105
103
|
loadResourceData(withFullInit = true) {
|
|
106
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -196,8 +194,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
196
194
|
this.agTransaction = { add: [], remove: [], update: [] };
|
|
197
195
|
this.handleStreamInserts(requestServerResult.REPLY);
|
|
198
196
|
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
199
|
-
this.handleStreamDeletes(
|
|
200
|
-
this.
|
|
197
|
+
this.handleStreamDeletes(rowsToDelete);
|
|
198
|
+
const transaction = this.rowDataMapper
|
|
199
|
+
? this.mapTransaction(this.agTransaction)
|
|
200
|
+
: this.agTransaction;
|
|
201
|
+
this.agGrid.gridApi.applyTransactionAsync(transaction);
|
|
201
202
|
}
|
|
202
203
|
applyDataserverData(dataServerResult) {
|
|
203
204
|
var _a;
|
|
@@ -210,10 +211,16 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
210
211
|
return;
|
|
211
212
|
}
|
|
212
213
|
this.agTransaction = { add: [], remove: [], update: [] };
|
|
213
|
-
this.handleStreamInserts(
|
|
214
|
-
this.handleStreamDeletes(
|
|
215
|
-
this.handleStreamUpdates(
|
|
216
|
-
this.agGrid.gridApi.applyTransactionAsync(this.agTransaction);
|
|
214
|
+
this.handleStreamInserts(dataServerResult.inserts);
|
|
215
|
+
this.handleStreamDeletes(dataServerResult.deletes);
|
|
216
|
+
this.handleStreamUpdates(dataServerResult.updates);
|
|
217
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction));
|
|
218
|
+
}
|
|
219
|
+
mapTransaction(transaction) {
|
|
220
|
+
if (!this.rowDataMapper) {
|
|
221
|
+
return transaction;
|
|
222
|
+
}
|
|
223
|
+
return Object.assign(Object.assign({}, transaction), { add: this.rowDataMapper(transaction.add, this.rows), update: this.rowDataMapper(transaction.update, this.rows), remove: this.rowDataMapper(transaction.remove, this.rows) });
|
|
217
224
|
}
|
|
218
225
|
handleStreamInserts(insertedRows) {
|
|
219
226
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
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.8.0-bny.
|
|
4
|
+
"version": "14.8.0-bny.14",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "echo \"Error: no test specified\""
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@genesislcap/foundation-testing": "14.8.0-bny.
|
|
29
|
+
"@genesislcap/foundation-testing": "14.8.0-bny.14",
|
|
30
30
|
"@playwright/test": "^1.18.1",
|
|
31
31
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
32
32
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"webpack-merge": "^5.7.3"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@genesislcap/foundation-comms": "14.8.0-bny.
|
|
82
|
-
"@genesislcap/foundation-ui": "14.8.0-bny.
|
|
83
|
-
"@genesislcap/foundation-utils": "14.8.0-bny.
|
|
81
|
+
"@genesislcap/foundation-comms": "14.8.0-bny.14",
|
|
82
|
+
"@genesislcap/foundation-ui": "14.8.0-bny.14",
|
|
83
|
+
"@genesislcap/foundation-utils": "14.8.0-bny.14",
|
|
84
84
|
"@microsoft/fast-colors": "^5.1.4",
|
|
85
85
|
"@microsoft/fast-components": "^2.21.3",
|
|
86
86
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "0ec04a8a89c44547aeeef7f27635e232de83d271"
|
|
105
105
|
}
|