@genesislcap/grid-pro 15.24.2 → 15.25.0-FUI-2611.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.
- package/dist/custom-elements.json +549 -44
- package/dist/dts/datasource/base.datasource.d.ts +70 -7
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/base.types.d.ts +27 -0
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/delivered-block.ledger.d.ts +32 -0
- package/dist/dts/datasource/delivered-block.ledger.d.ts.map +1 -0
- package/dist/dts/datasource/infinite.datasource.d.ts +33 -1
- package/dist/dts/datasource/infinite.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/infinite.resource.d.ts +75 -6
- package/dist/dts/datasource/infinite.resource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +14 -4
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +24 -0
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts +26 -0
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
- package/dist/dts/grid-pro-beta.d.ts +6 -0
- package/dist/dts/grid-pro-beta.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/datasource-events.types.d.ts +4 -0
- package/dist/dts/grid-pro-genesis-datasource/datasource-events.types.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/react.d.ts +1 -1
- package/dist/esm/datasource/base.datasource.js +177 -23
- package/dist/esm/datasource/delivered-block.ledger.js +59 -0
- package/dist/esm/datasource/infinite.datasource.js +61 -17
- package/dist/esm/datasource/infinite.resource.js +81 -10
- package/dist/esm/datasource/server-side.datasource.js +73 -25
- package/dist/esm/datasource/server-side.resource-base.js +43 -0
- package/dist/esm/datasource/server-side.resource-dataserver.js +77 -17
- package/dist/esm/datasource/server-side.resource-reqrep.js +12 -0
- package/dist/esm/grid-pro-beta.js +20 -2
- package/dist/esm/grid-pro.js +4 -1
- package/dist/grid-pro.api.json +35 -35
- package/dist/grid-pro.d.ts +228 -17
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +6 -6
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAYvE;;;GAGG;AACH,qBAAa,8BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAS;IAEzD;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAAgC;IAErD;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB,CAAK;IAE9B,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,4BAA4B,EAAE,kBAAkB,CAAC;IACjD,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;gBAE7C,OAAO,EAAE,2BAA2B;
|
|
1
|
+
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAq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EAAkE;IAClE,OAAO,CAAC,YAAY;CAUrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-reqrep.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-reqrep.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAInB,iBAAiB,EAGlB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAOvE;;;;;;;;;;;;GAYG;AACH,qBAAa,0BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,uBAAuB,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhF;;;OAGG;IACH,OAAO,CAAC,sBAAsB,CAAC,CAG5B;IAEH;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAC,CAAwC;IAEpE;;OAEG;IACH,OAAO,CAAC,yBAAyB,CAAC,CAAqB;IAEvD;;;OAGG;IACH,OAAO,CAAC,uBAAuB,CAAC,CAAM;IAEtC;;OAEG;IACH,OAAO,CAAC,UAAU,CAAU;IAE5B;;OAEG;IACH,OAAO,CAAC,eAAe,CAAC,CAAwC;IAEhE;;OAEG;IACH,OAAO,CAAC,uBAAuB,CAAC,CAAa;IAE7C;;;OAGG;IACH,OAAO,CAAC,mBAAmB,CAAC,CAAgB;IAE5C;;;OAGG;IACH,OAAO,CAAC,qBAAqB,CAA8B;IAG3D,OAAO,CAAC,uBAAuB,CAAuB;gBAE1C,OAAO,EAAE,2BAA2B;IAmB1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;
|
|
1
|
+
{"version":3,"file":"server-side.resource-reqrep.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-reqrep.ts"],"names":[],"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BAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAc3D,OAAO;IAUb;;;;;;;;;;OAUG;YACW,mBAAmB;IAkCjC;;;;;;;;OAQG;IACH,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,mBAAmB;CAQ5B"}
|
|
@@ -561,6 +561,12 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
561
561
|
* @internal
|
|
562
562
|
*/
|
|
563
563
|
private handleDataChanged;
|
|
564
|
+
/**
|
|
565
|
+
* Whether the live grid runs AG Grid's client-side row model (the default when the datasource
|
|
566
|
+
* set no `rowModelType`).
|
|
567
|
+
* @internal
|
|
568
|
+
*/
|
|
569
|
+
private get isClientSideRowModel();
|
|
564
570
|
private flashAddedCells;
|
|
565
571
|
/**
|
|
566
572
|
* Handles schema updates from datasource
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,mBAAmB,CAAC;AAyD3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAwBrE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL,iBAAiB,EAEjB,sBAAsB,EACtB,2BAA2B,EAE5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;kBAWtB,CAAC;;;;;;;;8BA8D3B,CAAA,cAAc,CAAC;;;;;;;;;;;;;;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,CAAC,mBAAmB;IAiB3B,SAAS,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW;IA4BjD,IAAI,kBAAkB,aAWrB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAkBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;CAgBrC"}
|
|
@@ -53,8 +53,12 @@ export interface DataLoadedEventDetail {
|
|
|
53
53
|
export interface DataChangedEventDetail {
|
|
54
54
|
changes: {
|
|
55
55
|
add?: any[];
|
|
56
|
+
/** Row-id-only objects (`{ [rowId]: id }`) for the rows that left the grid. */
|
|
56
57
|
remove?: any[];
|
|
57
58
|
update?: any[];
|
|
59
|
+
/** Where `add` rows were inserted, as AG Grid's `RowDataTransaction.addIndex`. */
|
|
60
|
+
addIndex?: number;
|
|
61
|
+
/** @deprecated Never populated; the emitted field is `addIndex`. */
|
|
58
62
|
insertIndex?: number;
|
|
59
63
|
};
|
|
60
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource-events.types.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/datasource-events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CA0CvB,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yBAAyB,EAAE,OAAO,CAAC;IACnC,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,MAAM,CAAC;QACnC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GA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AAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,wBAAwB,GACxB,4BAA4B,GAC5B,sBAAsB,GACtB,sBAAsB,GACtB,0BAA0B,GAC1B,4BAA4B,GAC5B,uBAAuB,GACvB,gCAAgC,GAChC,+BAA+B,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,qBAAqB,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IAChF,IAAI,EAAE,MAAM,OAAO,oBAAoB,CAAC;CACzC"}
|
|
1
|
+
{"version":3,"file":"datasource-events.types.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/datasource-events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CA0CvB,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yBAAyB,EAAE,OAAO,CAAC;IACnC,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,MAAM,CAAC;QACnC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE;QACP,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;QACZ,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C,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAe3B,SAAS,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW;IA4BjD;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAU1B;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAa7B;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IAUnC;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAsBjC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IAKlC;;;OAGG;IACH,OAAO,CAAC,YAAY;IAepB,IAAI,kBAAkB,aAWrB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAuBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -253,6 +253,7 @@ export declare const GridProInfiniteDatasource: React.ForwardRefExoticComponent<
|
|
|
253
253
|
onDatasourceInitialize?: (event: CustomEvent<InitializeEventDetail>) => void;
|
|
254
254
|
onDatasourceInit?: (event: CustomEvent<unknown>) => void;
|
|
255
255
|
onDatasourceSchemaUpdated?: (event: CustomEvent<SchemaUpdatedEventDetail>) => void;
|
|
256
|
+
onDatasourceDataChanged?: (event: CustomEvent<DataChangedEventDetail>) => void;
|
|
256
257
|
onSetInfiniteDatasource?: (event: CustomEvent<SetInfiniteDatasourceEventDetail>) => void;
|
|
257
258
|
onRefreshInfiniteCache?: (event: CustomEvent<RefreshInfiniteCacheEventDetail>) => void;
|
|
258
259
|
onAddGridCssClass?: (event: CustomEvent<GridCssClassEventDetail>) => void;
|
|
@@ -262,7 +263,6 @@ export declare const GridProInfiniteDatasource: React.ForwardRefExoticComponent<
|
|
|
262
263
|
onDatasourceFiltersRestored?: (event: CustomEvent<unknown>) => void;
|
|
263
264
|
onDatasourceLoadingFinished?: (event: CustomEvent<unknown>) => void;
|
|
264
265
|
onDatasourceNoDataAvailable?: (event: CustomEvent<unknown>) => void;
|
|
265
|
-
onDatasourceDataChanged?: (event: CustomEvent<DataChangedEventDetail>) => void;
|
|
266
266
|
}
|
|
267
267
|
> & React.RefAttributes<GridProInfiniteDatasourceWC>
|
|
268
268
|
>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect, Datasource, DatasourceDefaults, DatasourceEventHandler, FieldTypeEnum, logger, normaliseCriteria, ResourceType, } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { JSONSerializer } from '@genesislcap/foundation-utils';
|
|
3
4
|
import { attr, nullableNumberConverter, observable, volatile } from '@microsoft/fast-element';
|
|
4
5
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
5
6
|
import { BehaviorSubject } from 'rxjs';
|
|
@@ -360,11 +361,9 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
360
361
|
this.dataSubWasLoggedOff = false;
|
|
361
362
|
this.keepColDefsOnClearRowData = false;
|
|
362
363
|
this.rowData = new Map();
|
|
363
|
-
this.transactionData = {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
update: [],
|
|
367
|
-
};
|
|
364
|
+
this.transactionData = { add: [], remove: [], update: [] };
|
|
365
|
+
/** So rows without a row id are warned about once per element, not once per block. @internal */
|
|
366
|
+
this.missingRowIdWarned = false;
|
|
368
367
|
this._isDisconnected = false;
|
|
369
368
|
}
|
|
370
369
|
subscribeToConnection() {
|
|
@@ -467,32 +466,60 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
467
466
|
}
|
|
468
467
|
});
|
|
469
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* Resolves the id of the held row a stream row refers to.
|
|
471
|
+
* @remarks Under a custom `row-id` a DATASERVER push may carry only the default id
|
|
472
|
+
* (`ROW_REF`), so the held row with that default id supplies the custom one. Returns
|
|
473
|
+
* `undefined` when neither id is present - callers skip the row rather than matching
|
|
474
|
+
* `undefined === undefined` against the first held row.
|
|
475
|
+
* @internal
|
|
476
|
+
*/
|
|
477
|
+
resolveRowId(row) {
|
|
478
|
+
const rowId = row === null || row === void 0 ? void 0 : row[this.rowId];
|
|
479
|
+
if (rowId !== undefined && rowId !== null) {
|
|
480
|
+
return rowId;
|
|
481
|
+
}
|
|
482
|
+
if (this.hasDefaultRowId || this.isRequestServer) {
|
|
483
|
+
return undefined;
|
|
484
|
+
}
|
|
485
|
+
const defaultRowId = this.defaultRowIdByResourceType;
|
|
486
|
+
const defaultKey = row === null || row === void 0 ? void 0 : row[defaultRowId];
|
|
487
|
+
if (defaultKey === undefined || defaultKey === null) {
|
|
488
|
+
return undefined;
|
|
489
|
+
}
|
|
490
|
+
for (const held of this.rowData.values()) {
|
|
491
|
+
if ((held === null || held === void 0 ? void 0 : held[defaultRowId]) === defaultKey) {
|
|
492
|
+
return held[this.rowId];
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return undefined;
|
|
496
|
+
}
|
|
470
497
|
handleStreamDeletes(deletedRows) {
|
|
471
498
|
deletedRows === null || deletedRows === void 0 ? void 0 : deletedRows.forEach((deleteData) => {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
const rowToBeDeleted = Object.values(Object.fromEntries(this.rowData)).find((obj) => obj[this.defaultRowIdByResourceType] === deleteData[this.defaultRowIdByResourceType]);
|
|
477
|
-
this.transactionData.remove.push({ [this.rowId]: rowToBeDeleted[this.rowId] });
|
|
499
|
+
const rowId = this.resolveRowId(deleteData);
|
|
500
|
+
if (rowId === undefined) {
|
|
501
|
+
logger.warn('Attempted to delete row without a resolvable rowId', deleteData);
|
|
502
|
+
return;
|
|
478
503
|
}
|
|
479
|
-
this.
|
|
504
|
+
this.transactionData.remove.push({ [this.rowId]: rowId });
|
|
505
|
+
this.rowData.delete(rowId);
|
|
480
506
|
});
|
|
481
507
|
}
|
|
482
508
|
handleStreamUpdates(updatedRows) {
|
|
483
509
|
updatedRows === null || updatedRows === void 0 ? void 0 : updatedRows.forEach((updateData) => {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const rowToBeUpdated = Object.values(Object.fromEntries(this.rowData)).find((obj) => obj[this.defaultRowIdByResourceType] === updateData[this.defaultRowIdByResourceType]);
|
|
492
|
-
updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
493
|
-
this.transactionData.update.push(updatedRow);
|
|
510
|
+
const rowId = this.resolveRowId(updateData);
|
|
511
|
+
const rowToBeUpdated = rowId === undefined ? undefined : this.rowData.get(rowId);
|
|
512
|
+
if (!rowToBeUpdated) {
|
|
513
|
+
// Neither the grid nor consumers hold the row, so there is nothing to update; the row is
|
|
514
|
+
// reported as `add` if and when a block delivers it.
|
|
515
|
+
logger.debug('Ignoring update for a row that is not held', updateData);
|
|
516
|
+
return;
|
|
494
517
|
}
|
|
495
|
-
|
|
518
|
+
// A partial MODIFY resolved through the default id carries the custom id as undefined;
|
|
519
|
+
// keep the resolved one.
|
|
520
|
+
const updatedRow = Object.assign(Object.assign(Object.assign({}, rowToBeUpdated), updateData), { [this.rowId]: rowId });
|
|
521
|
+
this.transactionData.update.push(updatedRow);
|
|
522
|
+
this.rowData.set(rowId, updatedRow);
|
|
496
523
|
});
|
|
497
524
|
}
|
|
498
525
|
applyAllTransactions() {
|
|
@@ -525,6 +552,130 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
525
552
|
changes: mappedTransaction,
|
|
526
553
|
});
|
|
527
554
|
}
|
|
555
|
+
/**
|
|
556
|
+
* Reports rows a block-based row model (server-side, infinite) has just handed to the grid.
|
|
557
|
+
* Rows not held before are reported as `add`; rows already held (a block re-read after a
|
|
558
|
+
* refresh, or a req/rep re-read after a commit or poll) are reported as `update` only when
|
|
559
|
+
* their content changed, so a plain re-read is silent.
|
|
560
|
+
* @remarks `rowData` mirrors the rows the grid holds: the resource reports rows a re-read no
|
|
561
|
+
* longer returned (`reportWithdrawnRows`) and blocks the grid evicted from its cache
|
|
562
|
+
* (`forgetRows`), and `clearRowData` empties it when the grid drops its cache.
|
|
563
|
+
* @internal
|
|
564
|
+
*/
|
|
565
|
+
reportDeliveredRows(rows) {
|
|
566
|
+
const transaction = this.resetTransaction();
|
|
567
|
+
rows.forEach((row) => {
|
|
568
|
+
const rowId = row === null || row === void 0 ? void 0 : row[this.rowId];
|
|
569
|
+
if (rowId === undefined || rowId === null) {
|
|
570
|
+
this.warnMissingRowIdOnce(row);
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
const known = this.rowData.get(rowId);
|
|
574
|
+
if (!known) {
|
|
575
|
+
transaction.add.push(row);
|
|
576
|
+
}
|
|
577
|
+
else if (this.hasRowContentChanged(known, row)) {
|
|
578
|
+
transaction.update.push(row);
|
|
579
|
+
}
|
|
580
|
+
this.rowData.set(rowId, row);
|
|
581
|
+
});
|
|
582
|
+
this.emitTransaction(transaction);
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Reports rows a block re-read no longer returned: they left the grid (deleted on the server,
|
|
586
|
+
* or moved into a block that reports them again). Rows already reported removed - a DATASERVER
|
|
587
|
+
* push, say - are skipped.
|
|
588
|
+
* @internal
|
|
589
|
+
*/
|
|
590
|
+
reportWithdrawnRows(rowIds) {
|
|
591
|
+
const transaction = this.resetTransaction();
|
|
592
|
+
rowIds.forEach((rowId) => {
|
|
593
|
+
if (!this.rowData.has(rowId)) {
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
this.rowData.delete(rowId);
|
|
597
|
+
transaction.remove.push({ [this.rowId]: rowId });
|
|
598
|
+
});
|
|
599
|
+
this.emitTransaction(transaction);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Forgets rows the grid evicted from its block cache. They still exist on the server, so
|
|
603
|
+
* nothing is emitted; a later re-read reports them as `add`, as the grid did not hold them.
|
|
604
|
+
* @internal
|
|
605
|
+
*/
|
|
606
|
+
forgetRows(rowIds) {
|
|
607
|
+
rowIds.forEach((rowId) => this.rowData.delete(rowId));
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Starts a fresh transaction and returns it, so a caller can keep working on the object it
|
|
611
|
+
* built even if a consumer's `datasource-data-changed` handler resets the element meanwhile.
|
|
612
|
+
* @internal
|
|
613
|
+
*/
|
|
614
|
+
resetTransaction() {
|
|
615
|
+
const transaction = { add: [], remove: [], update: [] };
|
|
616
|
+
this.transactionData = transaction;
|
|
617
|
+
return transaction;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Whether two versions of a row differ in content. Identity and a key-order-insensitive
|
|
621
|
+
* field comparison come first, so a re-read of unchanged rows costs no serialization; nested
|
|
622
|
+
* values fall back to the serializer.
|
|
623
|
+
* @internal
|
|
624
|
+
*/
|
|
625
|
+
hasRowContentChanged(known, row) {
|
|
626
|
+
if (known === row) {
|
|
627
|
+
return false;
|
|
628
|
+
}
|
|
629
|
+
if (!known || !row || typeof known !== 'object' || typeof row !== 'object') {
|
|
630
|
+
return true;
|
|
631
|
+
}
|
|
632
|
+
const knownKeys = Object.keys(known);
|
|
633
|
+
const rowKeys = Object.keys(row);
|
|
634
|
+
if (knownKeys.length !== rowKeys.length) {
|
|
635
|
+
return true;
|
|
636
|
+
}
|
|
637
|
+
for (const key of rowKeys) {
|
|
638
|
+
const before = known[key];
|
|
639
|
+
const after = row[key];
|
|
640
|
+
if (before === after) {
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
if (before !== null &&
|
|
644
|
+
after !== null &&
|
|
645
|
+
typeof before === 'object' &&
|
|
646
|
+
typeof after === 'object' &&
|
|
647
|
+
this.serializer.serialize(before) === this.serializer.serialize(after)) {
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
return true;
|
|
651
|
+
}
|
|
652
|
+
return false;
|
|
653
|
+
}
|
|
654
|
+
/** Emits `datasource-data-changed` for `transaction` when it is non-empty. @internal */
|
|
655
|
+
emitTransaction(transaction) {
|
|
656
|
+
if (!transaction) {
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
const { add, update, remove } = transaction;
|
|
660
|
+
if (!(add === null || add === void 0 ? void 0 : add.length) && !(update === null || update === void 0 ? void 0 : update.length) && !(remove === null || remove === void 0 ? void 0 : remove.length)) {
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
this.$emit(datasourceEventNames.dataChanged, {
|
|
664
|
+
changes: transaction,
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
/** Emits `datasource-data-changed` for the current transaction when it is non-empty. @internal */
|
|
668
|
+
emitPendingTransaction() {
|
|
669
|
+
this.emitTransaction(this.transactionData);
|
|
670
|
+
}
|
|
671
|
+
/** @internal */
|
|
672
|
+
warnMissingRowIdOnce(row) {
|
|
673
|
+
if (this.missingRowIdWarned) {
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
this.missingRowIdWarned = true;
|
|
677
|
+
logger.warn(`Rows delivered by ${this.resourceName} carry no '${this.rowId}' value and are not reported in datasource-data-changed; set row-id to the field that identifies them.`, row);
|
|
678
|
+
}
|
|
528
679
|
/**
|
|
529
680
|
* Builds the index map used for server-side sorting from the resource's metadata.
|
|
530
681
|
* @remarks Real DATASERVER indexes keep their names; when the resource also (or only) reports
|
|
@@ -707,3 +858,6 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
707
858
|
return additionalPanels;
|
|
708
859
|
}
|
|
709
860
|
}
|
|
861
|
+
__decorate([
|
|
862
|
+
JSONSerializer
|
|
863
|
+
], GridProBaseDatasource.prototype, "serializer", void 0);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks which row ids each block has handed to AG Grid, so the host can learn when a re-read of
|
|
3
|
+
* a block no longer returns a row (it left the grid) and when the grid's block cache evicts a
|
|
4
|
+
* block (its rows are no longer held).
|
|
5
|
+
* @remarks Plain class shared by the infinite and SSRM resources - AG Grid does not report either
|
|
6
|
+
* event. Eviction mirrors AG Grid's `maxBlocksInCache`: blocks are kept in delivery order and the
|
|
7
|
+
* least recently delivered one goes first, an approximation of the grid's own LRU.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export class DeliveredBlockLedger {
|
|
11
|
+
constructor(rowId, maxBlocks) {
|
|
12
|
+
this.rowId = rowId;
|
|
13
|
+
this.maxBlocks = maxBlocks;
|
|
14
|
+
/** Row ids per block start row, least recently delivered first. */
|
|
15
|
+
this.blocks = new Map();
|
|
16
|
+
}
|
|
17
|
+
/** Records the rows handed to the grid for the block at `startRow`. */
|
|
18
|
+
record(startRow, rows) {
|
|
19
|
+
const ids = new Set();
|
|
20
|
+
rows.forEach((row) => {
|
|
21
|
+
const id = row === null || row === void 0 ? void 0 : row[this.rowId];
|
|
22
|
+
if (id !== undefined && id !== null) {
|
|
23
|
+
ids.add(id);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const previous = this.blocks.get(startRow);
|
|
27
|
+
// Re-insert so the map order stays "least recently delivered first".
|
|
28
|
+
this.blocks.delete(startRow);
|
|
29
|
+
this.blocks.set(startRow, ids);
|
|
30
|
+
const withdrawnRowIds = previous
|
|
31
|
+
? [...previous].filter((id) => !ids.has(id) && !this.isHeld(id))
|
|
32
|
+
: [];
|
|
33
|
+
const evictedRowIds = [];
|
|
34
|
+
if (this.maxBlocks !== undefined && this.maxBlocks > 0) {
|
|
35
|
+
while (this.blocks.size > this.maxBlocks) {
|
|
36
|
+
const [oldestStartRow, oldestIds] = this.blocks.entries().next().value;
|
|
37
|
+
this.blocks.delete(oldestStartRow);
|
|
38
|
+
oldestIds.forEach((id) => {
|
|
39
|
+
if (!this.isHeld(id)) {
|
|
40
|
+
evictedRowIds.push(id);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return { withdrawnRowIds, evictedRowIds };
|
|
46
|
+
}
|
|
47
|
+
/** Forgets every block, for when the grid drops its whole cache (filter/sort change, destroy). */
|
|
48
|
+
clear() {
|
|
49
|
+
this.blocks.clear();
|
|
50
|
+
}
|
|
51
|
+
isHeld(id) {
|
|
52
|
+
for (const ids of this.blocks.values()) {
|
|
53
|
+
if (ids.has(id)) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -40,12 +40,13 @@ const criteriaDelimiter = ';';
|
|
|
40
40
|
* @fires datasource-initialize - Fired to hand off infinite row model grid options. detail: `InitializeEventDetail`
|
|
41
41
|
* @fires datasource-init - Fired when the infinite grid model should initialize data
|
|
42
42
|
* @fires datasource-schema-updated - Fired when column metadata or defs are updated. detail: `SchemaUpdatedEventDetail`
|
|
43
|
+
* @fires datasource-data-changed - Fired when rows are delivered to the grid, a DATASERVER push changes them, or a re-read no longer returns them; `add` are rows the grid did not hold before, `update` are held rows whose content changed, `remove` carries the row id. detail: `DataChangedEventDetail`
|
|
43
44
|
* @fires set-infinite-datasource - Fired to attach or clear the infinite row model datasource. detail: `SetInfiniteDatasourceEventDetail`
|
|
44
45
|
* @fires refresh-infinite-cache - Fired to request an infinite row model refresh; `purge` drops the block cache and re-reads. detail: `RefreshInfiniteCacheEventDetail`
|
|
45
46
|
* @fires add-grid-css-class - Fired to add a CSS class on the grid host (hover sort indicators). detail: `GridCssClassEventDetail`
|
|
46
47
|
* @fires remove-grid-css-class - Fired to remove that CSS class from the grid host. detail: `GridCssClassEventDetail`
|
|
47
48
|
* @fires cache-filter-config - Fired to persist filter configuration for the grid
|
|
48
|
-
* @fires datasource-data-cleared - Fired when
|
|
49
|
+
* @fires datasource-data-cleared - Fired when the grid drops every row it held (reload, filter or sort change, destroy); `includeSchema` says whether the columns went too. detail: `DataClearedEventDetail`
|
|
49
50
|
* @fires datasource-filters-restored - Fired when persisted filters are reapplied
|
|
50
51
|
*/
|
|
51
52
|
let GridProInfiniteDatasource = class GridProInfiniteDatasource extends LifecycleMixin(GridProBaseDatasource) {
|
|
@@ -78,15 +79,13 @@ let GridProInfiniteDatasource = class GridProInfiniteDatasource extends Lifecycl
|
|
|
78
79
|
// VIEW_NUMBER 0 means "pagination disabled": the server continues from the cursor it
|
|
79
80
|
// holds on the last row it delivered, rather than re-seeking by offset.
|
|
80
81
|
getMoreRowsFunc: (sourceRef) => this.connect.getMoreRows(sourceRef, 0),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
onRowsUpdatedFunc: ()
|
|
88
|
-
purge: false,
|
|
89
|
-
}),
|
|
82
|
+
onRowsDeliveredFunc: this.reportDeliveredRows.bind(this),
|
|
83
|
+
onRowsWithdrawnFunc: this.reportWithdrawnRows.bind(this),
|
|
84
|
+
onRowsEvictedFunc: this.forgetRows.bind(this),
|
|
85
|
+
// A filter or sort change drops every block: forget the rows and tell consumers.
|
|
86
|
+
onRowCacheResetFunc: () => this.clearRowData(false),
|
|
87
|
+
onRowsInvalidatedFunc: this.handleLiveRowsInvalidated.bind(this),
|
|
88
|
+
onRowsUpdatedFunc: this.handleLiveRowsUpdated.bind(this),
|
|
90
89
|
errorHandlerFunc: this.handleErrors.bind(this),
|
|
91
90
|
resourceName: this.resourceName,
|
|
92
91
|
resourceParams: this.isRequestServer
|
|
@@ -95,6 +94,7 @@ let GridProInfiniteDatasource = class GridProInfiniteDatasource extends Lifecycl
|
|
|
95
94
|
resourceIndexes: this.indexes,
|
|
96
95
|
resourceColDefs: this.datasource.originalFieldDef,
|
|
97
96
|
maxRows: +this.maxRows,
|
|
97
|
+
maxBlocksInCache: this.maxBlocksInCache,
|
|
98
98
|
rowId: this.rowId,
|
|
99
99
|
baseCriteria: this.criteria,
|
|
100
100
|
isRequestServer: this.isRequestServer,
|
|
@@ -205,6 +205,8 @@ let GridProInfiniteDatasource = class GridProInfiniteDatasource extends Lifecycl
|
|
|
205
205
|
suppressMultiSort: true,
|
|
206
206
|
// Infinite Row Model specific options
|
|
207
207
|
cacheOverflowSize: 2, maxConcurrentDatasourceRequests: 1, infiniteInitialRowCount: 1, maxBlocksInCache: 10 }, this.deferredGridOptions);
|
|
208
|
+
const maxBlocksInCache = Number(gridOptions.maxBlocksInCache);
|
|
209
|
+
this.maxBlocksInCache = Number.isFinite(maxBlocksInCache) ? maxBlocksInCache : undefined;
|
|
208
210
|
this.$emit(datasourceEventNames.initialize, {
|
|
209
211
|
options: gridOptions,
|
|
210
212
|
keepColDefsOnClearRowData: this.keepColDefsOnClearRowData,
|
|
@@ -225,6 +227,45 @@ let GridProInfiniteDatasource = class GridProInfiniteDatasource extends Lifecycl
|
|
|
225
227
|
clearReadyListener() {
|
|
226
228
|
this.removeEventListener(datasourceEventNames.ready, this.onDatasourceReady);
|
|
227
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* A pushed INSERT/DELETE changes which rows exist or their order, so the change is reported
|
|
232
|
+
* and then the rows are re-read (purge).
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
handleLiveRowsInvalidated(change) {
|
|
236
|
+
this.reportLiveChange(change);
|
|
237
|
+
this.$emit(datasourceEventNames.refreshInfiniteCache, {
|
|
238
|
+
purge: true,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* A pushed MODIFY is already patched into the paging cache, so the change is reported and the
|
|
243
|
+
* grid only needs to re-render its blocks.
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
|
+
handleLiveRowsUpdated(change) {
|
|
247
|
+
this.reportLiveChange(change);
|
|
248
|
+
this.$emit(datasourceEventNames.refreshInfiniteCache, {
|
|
249
|
+
purge: false,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Turns a DATASERVER push into the same transaction the client-side datasource reports:
|
|
254
|
+
* inserts of held rows become updates, partial MODIFY rows are merged into the held row, and
|
|
255
|
+
* a remove carries just the row id.
|
|
256
|
+
* @remarks Unlike the client-side model, a pushed row need not be held here - it may sit
|
|
257
|
+
* beyond the loaded blocks. A MODIFY for such a row is not reported (the block that delivers
|
|
258
|
+
* it reports it as `add`); a DELETE is reported by the id it carries, and one that cannot be
|
|
259
|
+
* resolved to an id is skipped with a warning rather than matched against the wrong row.
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
reportLiveChange(change) {
|
|
263
|
+
const transaction = this.resetTransaction();
|
|
264
|
+
this.handleStreamInserts(change.inserts);
|
|
265
|
+
this.handleStreamUpdates(change.updates);
|
|
266
|
+
this.handleStreamDeletes(change.deletes);
|
|
267
|
+
this.emitTransaction(transaction);
|
|
268
|
+
}
|
|
228
269
|
destroy() {
|
|
229
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
271
|
var _a, _b;
|
|
@@ -252,15 +293,18 @@ let GridProInfiniteDatasource = class GridProInfiniteDatasource extends Lifecycl
|
|
|
252
293
|
yield this.init();
|
|
253
294
|
});
|
|
254
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* Forgets every held row and tells consumers, as the client-side datasource does: the grid is
|
|
298
|
+
* dropping its rows (a reload, a filter or sort change, or teardown). `withColumnDefs` also
|
|
299
|
+
* clears the column definitions.
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
255
302
|
clearRowData(withColumnDefs = true) {
|
|
256
303
|
this.rowData = new Map();
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
this.transactionData = { remove: [] };
|
|
304
|
+
this.resetTransaction();
|
|
305
|
+
this.$emit(datasourceEventNames.dataCleared, {
|
|
306
|
+
includeSchema: withColumnDefs,
|
|
307
|
+
});
|
|
264
308
|
}
|
|
265
309
|
/**
|
|
266
310
|
* Honours `pollTriggerEvents` without polling: a commit ACK for one of the listed events
|