@genesislcap/grid-pro 15.3.4 → 15.3.5-canary.gs-disc-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 +156 -0
- package/dist/dts/datasource/base.datasource.d.ts +18 -0
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +7 -0
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +6 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +56 -9
- package/dist/esm/datasource/server-side.datasource.js +31 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +24 -0
- package/dist/grid-pro.api.json +2 -2
- package/dist/grid-pro.d.ts +31 -0
- package/package.json +14 -14
|
@@ -8714,6 +8714,34 @@
|
|
|
8714
8714
|
},
|
|
8715
8715
|
"privacy": "protected"
|
|
8716
8716
|
},
|
|
8717
|
+
{
|
|
8718
|
+
"kind": "field",
|
|
8719
|
+
"name": "reloadInFlight",
|
|
8720
|
+
"type": {
|
|
8721
|
+
"text": "Promise<void> | null"
|
|
8722
|
+
},
|
|
8723
|
+
"privacy": "private",
|
|
8724
|
+
"default": "null",
|
|
8725
|
+
"description": "Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth\nreauth) into a single in-flight reload plus at most one trailing rerun."
|
|
8726
|
+
},
|
|
8727
|
+
{
|
|
8728
|
+
"kind": "field",
|
|
8729
|
+
"name": "reloadQueued",
|
|
8730
|
+
"type": {
|
|
8731
|
+
"text": "boolean"
|
|
8732
|
+
},
|
|
8733
|
+
"privacy": "private",
|
|
8734
|
+
"default": "false"
|
|
8735
|
+
},
|
|
8736
|
+
{
|
|
8737
|
+
"kind": "field",
|
|
8738
|
+
"name": "reloadGeneration",
|
|
8739
|
+
"type": {
|
|
8740
|
+
"text": "number"
|
|
8741
|
+
},
|
|
8742
|
+
"privacy": "private",
|
|
8743
|
+
"default": "0"
|
|
8744
|
+
},
|
|
8717
8745
|
{
|
|
8718
8746
|
"kind": "method",
|
|
8719
8747
|
"name": "subscribeToConnection",
|
|
@@ -10743,6 +10771,46 @@
|
|
|
10743
10771
|
"module": "src/datasource/base.datasource.ts"
|
|
10744
10772
|
}
|
|
10745
10773
|
},
|
|
10774
|
+
{
|
|
10775
|
+
"kind": "field",
|
|
10776
|
+
"name": "reloadInFlight",
|
|
10777
|
+
"type": {
|
|
10778
|
+
"text": "Promise<void> | null"
|
|
10779
|
+
},
|
|
10780
|
+
"privacy": "private",
|
|
10781
|
+
"default": "null",
|
|
10782
|
+
"description": "Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth\nreauth) into a single in-flight reload plus at most one trailing rerun.",
|
|
10783
|
+
"inheritedFrom": {
|
|
10784
|
+
"name": "GridProBaseDatasource",
|
|
10785
|
+
"module": "src/datasource/base.datasource.ts"
|
|
10786
|
+
}
|
|
10787
|
+
},
|
|
10788
|
+
{
|
|
10789
|
+
"kind": "field",
|
|
10790
|
+
"name": "reloadQueued",
|
|
10791
|
+
"type": {
|
|
10792
|
+
"text": "boolean"
|
|
10793
|
+
},
|
|
10794
|
+
"privacy": "private",
|
|
10795
|
+
"default": "false",
|
|
10796
|
+
"inheritedFrom": {
|
|
10797
|
+
"name": "GridProBaseDatasource",
|
|
10798
|
+
"module": "src/datasource/base.datasource.ts"
|
|
10799
|
+
}
|
|
10800
|
+
},
|
|
10801
|
+
{
|
|
10802
|
+
"kind": "field",
|
|
10803
|
+
"name": "reloadGeneration",
|
|
10804
|
+
"type": {
|
|
10805
|
+
"text": "number"
|
|
10806
|
+
},
|
|
10807
|
+
"privacy": "private",
|
|
10808
|
+
"default": "0",
|
|
10809
|
+
"inheritedFrom": {
|
|
10810
|
+
"name": "GridProBaseDatasource",
|
|
10811
|
+
"module": "src/datasource/base.datasource.ts"
|
|
10812
|
+
}
|
|
10813
|
+
},
|
|
10746
10814
|
{
|
|
10747
10815
|
"kind": "method",
|
|
10748
10816
|
"name": "subscribeToConnection",
|
|
@@ -12028,6 +12096,14 @@
|
|
|
12028
12096
|
"module": "src/datasource/base.datasource.ts"
|
|
12029
12097
|
}
|
|
12030
12098
|
},
|
|
12099
|
+
{
|
|
12100
|
+
"kind": "field",
|
|
12101
|
+
"name": "pendingReloadParams",
|
|
12102
|
+
"type": {
|
|
12103
|
+
"text": "DatasourceOptions | undefined"
|
|
12104
|
+
},
|
|
12105
|
+
"privacy": "private"
|
|
12106
|
+
},
|
|
12031
12107
|
{
|
|
12032
12108
|
"kind": "method",
|
|
12033
12109
|
"name": "init"
|
|
@@ -12315,6 +12391,46 @@
|
|
|
12315
12391
|
"module": "src/datasource/base.datasource.ts"
|
|
12316
12392
|
}
|
|
12317
12393
|
},
|
|
12394
|
+
{
|
|
12395
|
+
"kind": "field",
|
|
12396
|
+
"name": "reloadInFlight",
|
|
12397
|
+
"type": {
|
|
12398
|
+
"text": "Promise<void> | null"
|
|
12399
|
+
},
|
|
12400
|
+
"privacy": "private",
|
|
12401
|
+
"default": "null",
|
|
12402
|
+
"description": "Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth\nreauth) into a single in-flight reload plus at most one trailing rerun.",
|
|
12403
|
+
"inheritedFrom": {
|
|
12404
|
+
"name": "GridProBaseDatasource",
|
|
12405
|
+
"module": "src/datasource/base.datasource.ts"
|
|
12406
|
+
}
|
|
12407
|
+
},
|
|
12408
|
+
{
|
|
12409
|
+
"kind": "field",
|
|
12410
|
+
"name": "reloadQueued",
|
|
12411
|
+
"type": {
|
|
12412
|
+
"text": "boolean"
|
|
12413
|
+
},
|
|
12414
|
+
"privacy": "private",
|
|
12415
|
+
"default": "false",
|
|
12416
|
+
"inheritedFrom": {
|
|
12417
|
+
"name": "GridProBaseDatasource",
|
|
12418
|
+
"module": "src/datasource/base.datasource.ts"
|
|
12419
|
+
}
|
|
12420
|
+
},
|
|
12421
|
+
{
|
|
12422
|
+
"kind": "field",
|
|
12423
|
+
"name": "reloadGeneration",
|
|
12424
|
+
"type": {
|
|
12425
|
+
"text": "number"
|
|
12426
|
+
},
|
|
12427
|
+
"privacy": "private",
|
|
12428
|
+
"default": "0",
|
|
12429
|
+
"inheritedFrom": {
|
|
12430
|
+
"name": "GridProBaseDatasource",
|
|
12431
|
+
"module": "src/datasource/base.datasource.ts"
|
|
12432
|
+
}
|
|
12433
|
+
},
|
|
12318
12434
|
{
|
|
12319
12435
|
"kind": "method",
|
|
12320
12436
|
"name": "subscribeToConnection",
|
|
@@ -16952,6 +17068,46 @@
|
|
|
16952
17068
|
"module": "src/datasource/base.datasource.ts"
|
|
16953
17069
|
}
|
|
16954
17070
|
},
|
|
17071
|
+
{
|
|
17072
|
+
"kind": "field",
|
|
17073
|
+
"name": "reloadInFlight",
|
|
17074
|
+
"type": {
|
|
17075
|
+
"text": "Promise<void> | null"
|
|
17076
|
+
},
|
|
17077
|
+
"privacy": "private",
|
|
17078
|
+
"default": "null",
|
|
17079
|
+
"description": "Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth\nreauth) into a single in-flight reload plus at most one trailing rerun.",
|
|
17080
|
+
"inheritedFrom": {
|
|
17081
|
+
"name": "GridProBaseDatasource",
|
|
17082
|
+
"module": "src/datasource/base.datasource.ts"
|
|
17083
|
+
}
|
|
17084
|
+
},
|
|
17085
|
+
{
|
|
17086
|
+
"kind": "field",
|
|
17087
|
+
"name": "reloadQueued",
|
|
17088
|
+
"type": {
|
|
17089
|
+
"text": "boolean"
|
|
17090
|
+
},
|
|
17091
|
+
"privacy": "private",
|
|
17092
|
+
"default": "false",
|
|
17093
|
+
"inheritedFrom": {
|
|
17094
|
+
"name": "GridProBaseDatasource",
|
|
17095
|
+
"module": "src/datasource/base.datasource.ts"
|
|
17096
|
+
}
|
|
17097
|
+
},
|
|
17098
|
+
{
|
|
17099
|
+
"kind": "field",
|
|
17100
|
+
"name": "reloadGeneration",
|
|
17101
|
+
"type": {
|
|
17102
|
+
"text": "number"
|
|
17103
|
+
},
|
|
17104
|
+
"privacy": "private",
|
|
17105
|
+
"default": "0",
|
|
17106
|
+
"inheritedFrom": {
|
|
17107
|
+
"name": "GridProBaseDatasource",
|
|
17108
|
+
"module": "src/datasource/base.datasource.ts"
|
|
17109
|
+
}
|
|
17110
|
+
},
|
|
16955
17111
|
{
|
|
16956
17112
|
"kind": "method",
|
|
16957
17113
|
"name": "subscribeToConnection",
|
|
@@ -550,6 +550,24 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
550
550
|
rowData: Map<string, any>;
|
|
551
551
|
protected transactionData: TransactionData;
|
|
552
552
|
protected connectionSub: Subscription | undefined;
|
|
553
|
+
/**
|
|
554
|
+
* Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth
|
|
555
|
+
* reauth) into a single in-flight reload plus at most one trailing rerun.
|
|
556
|
+
*/
|
|
557
|
+
private reloadInFlight;
|
|
558
|
+
private reloadQueued;
|
|
559
|
+
private reloadGeneration;
|
|
560
|
+
/**
|
|
561
|
+
* Runs `perform` under a reload mutex. Concurrent callers mark a trailing reload instead
|
|
562
|
+
* of starting another DATA_LOGON in parallel.
|
|
563
|
+
* @internal
|
|
564
|
+
*/
|
|
565
|
+
protected coalesceReload(perform: (generation: number) => Promise<void>): Promise<void>;
|
|
566
|
+
/**
|
|
567
|
+
* True when a newer reload request superseded this generation, or another reload is queued.
|
|
568
|
+
* @internal
|
|
569
|
+
*/
|
|
570
|
+
protected isReloadSuperseded(generation: number): boolean;
|
|
553
571
|
protected subscribeToConnection(): void;
|
|
554
572
|
protected unsubscribeFromConnection(): void;
|
|
555
573
|
protected generateColumnDefsFromMetadata(fieldsMetadata: FieldMetadata[], getFilterParamsByFieldType: (field: FieldMetadata) => ColDef['filterParams'] | any, getFilterByFieldType: (type: FieldTypeEnum) => string): ColDef[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,OAAO,EACP,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,aAAa,EAId,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAUrD,OAAO,EAA4B,KAAK,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAE7F;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;;;;QAS6D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoChD,CAAC;4IACO,CAAC;wFAKnC,CAAC;+IAMI,CAAC;2FAIZ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuB6G,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAmD/G,CAAC;;;;;;;;;;;;;6BAqBsD,CAAC;8BAG9C,CAAC;kBAGtB,CAAA;;oBACyB,CAAC;;sBAK5B,CAAF;oBACkC,CAAC;;;;;;;;gDAc/B,CAAL;;;;;;;;;;;;;;;;qBAsBG,CAAJ;;;uBACgD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA+G9B,CAAC;yBAGZ,CAAP;UAAoD,GAAG;WACvC,GAAG;;gBACyC,GAAG;;;;;;;WAQxD,GAAH;YAG8B,GAAG;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAA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CAAC,EAAE,WAAW,EAAE,OAAO,GAAG,CAAC,GAAG,SAAS,GAAG;QAC3E,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,CAAC,EAAE,CAAC,CAAC;KACZ;IAaD;;;;OAIG;IACI,4BAA4B,CAAC,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,GAAG,GAAG,EAAE;CAiExF"}
|
|
@@ -433,9 +433,16 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
433
433
|
/**
|
|
434
434
|
* Resets the grid data while keeping columnDefs and reloads data.
|
|
435
435
|
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
436
|
+
* Concurrent calls are coalesced; the latest `params` wins.
|
|
436
437
|
* @beta
|
|
437
438
|
*/
|
|
438
439
|
reloadResourceData(params?: DatasourceOptions): Promise<void>;
|
|
440
|
+
private pendingReloadParams;
|
|
441
|
+
/**
|
|
442
|
+
* Performs a single server-side reload attempt for the given generation token.
|
|
443
|
+
* @internal
|
|
444
|
+
*/
|
|
445
|
+
private performReloadResourceData;
|
|
439
446
|
/**
|
|
440
447
|
* Applies custom sort indicator styling for server-side datasource
|
|
441
448
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,iBAAiB,EAYlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAYvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;kBA6DlB,CAAA;;;;;;;;8BAkBS,CAAA,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiBN,CAAC;4IAIwB,CAAC;wFAKnC,CAAC;+IAInB,CAAC;2FAIpB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O,CAAC,yBAAyB;YAgDnB,sBAAsB;YA2DtB,eAAe;IAmBpB,gBAAgB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIvC,QAAQ;CAGlB"}
|
|
@@ -495,10 +495,16 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
495
495
|
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
496
496
|
* Loads resource data without full initialization (no metadata fetch).
|
|
497
497
|
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
498
|
+
* Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.
|
|
498
499
|
* @see loadResourceData
|
|
499
500
|
* @public
|
|
500
501
|
*/
|
|
501
502
|
reloadResourceData(): Promise<void>;
|
|
503
|
+
/**
|
|
504
|
+
* Performs a single reload attempt for the given generation token.
|
|
505
|
+
* @internal
|
|
506
|
+
*/
|
|
507
|
+
private performReloadResourceData;
|
|
502
508
|
/**
|
|
503
509
|
* Initializes the datasource and loads the data for the grid.
|
|
504
510
|
* Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
|
|
@@ -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":"AACA,OAAO,EACL,iBAAiB,EAUlB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAqB,MAAM,+BAA+B,CAAC;AAwBzF;;GAEG;AACH,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;;;;;;;kBAwBwF,CAAC;;;;;;;;8BAiDjF,CAAC,cACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoCC,CAAN;4IAQI,CAAC;wFAEqC,CAAC;+IAGjC,CAAT;2FAE2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;mBA+EtC,CAAH;;;;;;;;;;;;;6BAmCoC,CAAC;8BACkB,CAAC;kBACnD,CAAA;;oBACM,CAAC;;sBAID,CAAC;oBACU,CAAC;;;;;;;;gDAaa,CAAA;;;;;;;;;;;;;;;;;;uBA2BjC,CAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAUlB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAqB,MAAM,+BAA+B,CAAC;AAwBzF;;GAEG;AACH,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;;;;;;;kBAwBwF,CAAC;;;;;;;;8BAiDjF,CAAC,cACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoCC,CAAN;4IAQI,CAAC;wFAEqC,CAAC;+IAGjC,CAAT;2FAE2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;mBA+EtC,CAAH;;;;;;;;;;;;;6BAmCoC,CAAC;8BACkB,CAAC;kBACnD,CAAA;;oBACM,CAAC;;sBAID,CAAC;oBACU,CAAC;;;;;;;;gDAaa,CAAA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BlB"}
|
|
@@ -365,8 +365,50 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
365
365
|
remove: [],
|
|
366
366
|
update: [],
|
|
367
367
|
};
|
|
368
|
+
/**
|
|
369
|
+
* Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth
|
|
370
|
+
* reauth) into a single in-flight reload plus at most one trailing rerun.
|
|
371
|
+
*/
|
|
372
|
+
this.reloadInFlight = null;
|
|
373
|
+
this.reloadQueued = false;
|
|
374
|
+
this.reloadGeneration = 0;
|
|
368
375
|
this._isDisconnected = false;
|
|
369
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Runs `perform` under a reload mutex. Concurrent callers mark a trailing reload instead
|
|
379
|
+
* of starting another DATA_LOGON in parallel.
|
|
380
|
+
* @internal
|
|
381
|
+
*/
|
|
382
|
+
coalesceReload(perform) {
|
|
383
|
+
this.reloadQueued = true;
|
|
384
|
+
if (this.reloadInFlight) {
|
|
385
|
+
this.reloadGeneration += 1;
|
|
386
|
+
return this.reloadInFlight;
|
|
387
|
+
}
|
|
388
|
+
const run = () => __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
if (!this.reloadQueued) {
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
this.reloadQueued = false;
|
|
393
|
+
this.reloadGeneration += 1;
|
|
394
|
+
const generation = this.reloadGeneration;
|
|
395
|
+
yield perform(generation);
|
|
396
|
+
if (this.reloadQueued) {
|
|
397
|
+
yield run();
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
this.reloadInFlight = run().finally(() => {
|
|
401
|
+
this.reloadInFlight = null;
|
|
402
|
+
});
|
|
403
|
+
return this.reloadInFlight;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* True when a newer reload request superseded this generation, or another reload is queued.
|
|
407
|
+
* @internal
|
|
408
|
+
*/
|
|
409
|
+
isReloadSuperseded(generation) {
|
|
410
|
+
return generation !== this.reloadGeneration || this.reloadQueued;
|
|
411
|
+
}
|
|
370
412
|
subscribeToConnection() {
|
|
371
413
|
var _a;
|
|
372
414
|
if (this.connect && this.connect.isConnected$) {
|
|
@@ -375,7 +417,7 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
375
417
|
if (isConnected && this.isDisconnected()) {
|
|
376
418
|
this.setDisconnected(false);
|
|
377
419
|
if (this.restartOnReconnection) {
|
|
378
|
-
this.reloadResourceData();
|
|
420
|
+
void this.reloadResourceData();
|
|
379
421
|
}
|
|
380
422
|
}
|
|
381
423
|
else if (!isConnected) {
|
|
@@ -447,7 +489,9 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
447
489
|
return;
|
|
448
490
|
}
|
|
449
491
|
const existsInInternalState = this.rowData.has(rowId);
|
|
450
|
-
|
|
492
|
+
// Prefer update only when we already have the row. After a clear/reload, INSERTs must
|
|
493
|
+
// ADD — treating them as updates (via dataSubWasLoggedOff) can miss the AG Grid row.
|
|
494
|
+
if (existsInInternalState) {
|
|
451
495
|
const existingData = this.rowData.get(rowId);
|
|
452
496
|
const updatedRow = Object.assign(Object.assign({}, existingData), insertData);
|
|
453
497
|
this.transactionData.update.push(updatedRow);
|
|
@@ -481,17 +525,20 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
481
525
|
}
|
|
482
526
|
handleStreamUpdates(updatedRows) {
|
|
483
527
|
updatedRows === null || updatedRows === void 0 ? void 0 : updatedRows.forEach((updateData) => {
|
|
484
|
-
let
|
|
528
|
+
let rowToBeUpdated;
|
|
485
529
|
if (this.hasDefaultRowId || this.isRequestServer) {
|
|
486
|
-
|
|
487
|
-
updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
488
|
-
this.transactionData.update.push(updatedRow);
|
|
530
|
+
rowToBeUpdated = this.rowData.get(updateData[this.rowId]);
|
|
489
531
|
}
|
|
490
532
|
else {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
533
|
+
rowToBeUpdated = Object.values(Object.fromEntries(this.rowData)).find((obj) => obj[this.defaultRowIdByResourceType] === updateData[this.defaultRowIdByResourceType]);
|
|
534
|
+
}
|
|
535
|
+
// Skip MODIFYs for rows we don't have. Merging onto undefined yields a sparse row that
|
|
536
|
+
// AG Grid applyTransaction({ update }) will replace into blank cells.
|
|
537
|
+
if (!rowToBeUpdated) {
|
|
538
|
+
return;
|
|
494
539
|
}
|
|
540
|
+
const updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
541
|
+
this.transactionData.update.push(updatedRow);
|
|
495
542
|
this.rowData.set(updateData[this.rowId], updatedRow);
|
|
496
543
|
});
|
|
497
544
|
}
|
|
@@ -166,21 +166,43 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
166
166
|
/**
|
|
167
167
|
* Resets the grid data while keeping columnDefs and reloads data.
|
|
168
168
|
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
169
|
+
* Concurrent calls are coalesced; the latest `params` wins.
|
|
169
170
|
* @beta
|
|
170
171
|
*/
|
|
171
172
|
reloadResourceData(params) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
this.pendingReloadParams = params;
|
|
175
|
+
return this.coalesceReload((generation) => {
|
|
176
|
+
const latestParams = this.pendingReloadParams;
|
|
177
|
+
this.pendingReloadParams = undefined;
|
|
178
|
+
return this.performReloadResourceData(generation, latestParams);
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Performs a single server-side reload attempt for the given generation token.
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
performReloadResourceData(generation, params) {
|
|
172
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
188
|
var _a;
|
|
174
189
|
this.datasource.destroy();
|
|
175
190
|
(_a = this.liveUpdatesStream) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
176
191
|
this.liveUpdatesStream = undefined;
|
|
192
|
+
this.dataSubWasLoggedOff = false;
|
|
177
193
|
// Emit event to cache current filter model before clearing data
|
|
178
194
|
this.$emit(datasourceEventNames.cacheFilterConfig);
|
|
179
195
|
this.clearRowData(withoutColumnDefs);
|
|
180
196
|
this.setDisconnected(false);
|
|
197
|
+
if (this.isReloadSuperseded(generation)) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
181
200
|
if (params) {
|
|
182
201
|
const options = Object.assign(Object.assign({}, this.datasourceOptions()), params);
|
|
183
202
|
const initOK = yield this.initializeDatasource(options, true, false);
|
|
203
|
+
if (this.isReloadSuperseded(generation)) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
184
206
|
if (!initOK) {
|
|
185
207
|
// Emit event to set server side datasource to null
|
|
186
208
|
this.$emit(datasourceEventNames.setServerSideDatasource, { datasource: null });
|
|
@@ -214,6 +236,9 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
214
236
|
// Emit events instead of direct grid access
|
|
215
237
|
this.$emit(datasourceEventNames.setServerSideDatasource, { datasource: null });
|
|
216
238
|
this.$emit(datasourceEventNames.loadingStarted);
|
|
239
|
+
if (this.isReloadSuperseded(generation)) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
217
242
|
yield this.init();
|
|
218
243
|
}
|
|
219
244
|
});
|
|
@@ -550,7 +575,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
550
575
|
}
|
|
551
576
|
}
|
|
552
577
|
applyLiveServerSideUpdate(nextMessage) {
|
|
553
|
-
var _a, _b, _c;
|
|
578
|
+
var _a, _b, _c, _d;
|
|
554
579
|
const inserts = (_a = nextMessage.inserts) !== null && _a !== void 0 ? _a : [];
|
|
555
580
|
const updates = (_b = nextMessage.updates) !== null && _b !== void 0 ? _b : [];
|
|
556
581
|
const deletes = (_c = nextMessage.deletes) !== null && _c !== void 0 ? _c : [];
|
|
@@ -563,6 +588,11 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
563
588
|
this.ssrmDatasource.clientRowsCount += netRowChange;
|
|
564
589
|
}
|
|
565
590
|
this.transactionData = { add: [], remove: [], update: [] };
|
|
591
|
+
// Live-update MODIFYs are looked up in this.rowData. SSRM keeps the authoritative
|
|
592
|
+
// cache on ssrmDatasource.rowData — point at it so partial updates still merge.
|
|
593
|
+
if ((_d = this.ssrmDatasource) === null || _d === void 0 ? void 0 : _d.rowData) {
|
|
594
|
+
this.rowData = this.ssrmDatasource.rowData;
|
|
595
|
+
}
|
|
566
596
|
this.handleStreamInserts(inserts);
|
|
567
597
|
this.handleStreamUpdates(updates);
|
|
568
598
|
this.handleStreamDeletes(deletes);
|
|
@@ -312,10 +312,20 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
312
312
|
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
313
313
|
* Loads resource data without full initialization (no metadata fetch).
|
|
314
314
|
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
315
|
+
* Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.
|
|
315
316
|
* @see loadResourceData
|
|
316
317
|
* @public
|
|
317
318
|
*/
|
|
318
319
|
reloadResourceData() {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
return this.coalesceReload((generation) => this.performReloadResourceData(generation));
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Performs a single reload attempt for the given generation token.
|
|
326
|
+
* @internal
|
|
327
|
+
*/
|
|
328
|
+
performReloadResourceData(generation) {
|
|
319
329
|
return __awaiter(this, void 0, void 0, function* () {
|
|
320
330
|
logger.debug('GridProGenesisDatasource.reloadResourceData()', this.resourceName);
|
|
321
331
|
if (this.dataSub) {
|
|
@@ -327,12 +337,26 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
327
337
|
this._loadMoreCount = 0;
|
|
328
338
|
this.datasource.updateLoadMoreCount(0);
|
|
329
339
|
this.datasource.stream = undefined;
|
|
340
|
+
// Clear logoff sticky state so post-reload INSERTs are added, not merged as sparse updates
|
|
341
|
+
this.dataSubWasLoggedOff = false;
|
|
330
342
|
this.clearRowData(withoutColumnDefs);
|
|
331
343
|
// Force the next data batch through setRowData() so filtersRestored is emitted and filters are reapplied.
|
|
332
344
|
this.requiresFullRowDataAndColDefs = true;
|
|
333
345
|
this.$emit(datasourceEventNames.loadingStarted);
|
|
334
346
|
this.setDisconnected(false);
|
|
347
|
+
// Another reload was requested while we were clearing — let the coalesce loop rerun.
|
|
348
|
+
if (this.isReloadSuperseded(generation)) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
335
351
|
yield this.loadResourceData(withoutFullInit);
|
|
352
|
+
// Tear down a stream that started after we were already superseded.
|
|
353
|
+
if (this.isReloadSuperseded(generation)) {
|
|
354
|
+
if (this.dataSub) {
|
|
355
|
+
this.dataSub.unsubscribe();
|
|
356
|
+
this.dataSub = undefined;
|
|
357
|
+
}
|
|
358
|
+
this.datasource.stream = undefined;
|
|
359
|
+
}
|
|
336
360
|
});
|
|
337
361
|
}
|
|
338
362
|
/**
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -19891,7 +19891,7 @@
|
|
|
19891
19891
|
{
|
|
19892
19892
|
"kind": "Method",
|
|
19893
19893
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#reloadResourceData:member(1)",
|
|
19894
|
-
"docComment": "/**\n * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream. Loads resource data without full initialization (no metadata fetch).\n *\n * @remarks\n *\n * This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.\n *\n * @see\n *\n * loadResourceData\n *\n * @public\n */\n",
|
|
19894
|
+
"docComment": "/**\n * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream. Loads resource data without full initialization (no metadata fetch).\n *\n * @remarks\n *\n * This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change. Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.\n *\n * @see\n *\n * loadResourceData\n *\n * @public\n */\n",
|
|
19895
19895
|
"excerptTokens": [
|
|
19896
19896
|
{
|
|
19897
19897
|
"kind": "Content",
|
|
@@ -21159,7 +21159,7 @@
|
|
|
21159
21159
|
{
|
|
21160
21160
|
"kind": "Method",
|
|
21161
21161
|
"canonicalReference": "@genesislcap/grid-pro!GridProServerSideDatasource#reloadResourceData:member(1)",
|
|
21162
|
-
"docComment": "/**\n * Resets the grid data while keeping columnDefs and reloads data.\n *\n * @remarks\n *\n * This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.\n *\n * @beta\n */\n",
|
|
21162
|
+
"docComment": "/**\n * Resets the grid data while keeping columnDefs and reloads data.\n *\n * @remarks\n *\n * This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change. Concurrent calls are coalesced; the latest `params` wins.\n *\n * @beta\n */\n",
|
|
21163
21163
|
"excerptTokens": [
|
|
21164
21164
|
{
|
|
21165
21165
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -2922,6 +2922,24 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
2922
2922
|
rowData: Map<string, any>;
|
|
2923
2923
|
protected transactionData: TransactionData;
|
|
2924
2924
|
protected connectionSub: Subscription | undefined;
|
|
2925
|
+
/**
|
|
2926
|
+
* Coalesces overlapping reload requests (e.g. rapid isConnected$ flicker during auth
|
|
2927
|
+
* reauth) into a single in-flight reload plus at most one trailing rerun.
|
|
2928
|
+
*/
|
|
2929
|
+
private reloadInFlight;
|
|
2930
|
+
private reloadQueued;
|
|
2931
|
+
private reloadGeneration;
|
|
2932
|
+
/**
|
|
2933
|
+
* Runs `perform` under a reload mutex. Concurrent callers mark a trailing reload instead
|
|
2934
|
+
* of starting another DATA_LOGON in parallel.
|
|
2935
|
+
* @internal
|
|
2936
|
+
*/
|
|
2937
|
+
protected coalesceReload(perform: (generation: number) => Promise<void>): Promise<void>;
|
|
2938
|
+
/**
|
|
2939
|
+
* True when a newer reload request superseded this generation, or another reload is queued.
|
|
2940
|
+
* @internal
|
|
2941
|
+
*/
|
|
2942
|
+
protected isReloadSuperseded(generation: number): boolean;
|
|
2925
2943
|
protected subscribeToConnection(): void;
|
|
2926
2944
|
protected unsubscribeFromConnection(): void;
|
|
2927
2945
|
protected generateColumnDefsFromMetadata(fieldsMetadata: FieldMetadata[], getFilterParamsByFieldType: (field: FieldMetadata) => ColDef['filterParams'] | any, getFilterByFieldType: (type: FieldTypeEnum) => string): ColDef[];
|
|
@@ -4488,10 +4506,16 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
4488
4506
|
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
4489
4507
|
* Loads resource data without full initialization (no metadata fetch).
|
|
4490
4508
|
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
4509
|
+
* Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.
|
|
4491
4510
|
* @see loadResourceData
|
|
4492
4511
|
* @public
|
|
4493
4512
|
*/
|
|
4494
4513
|
reloadResourceData(): Promise<void>;
|
|
4514
|
+
/**
|
|
4515
|
+
* Performs a single reload attempt for the given generation token.
|
|
4516
|
+
* @internal
|
|
4517
|
+
*/
|
|
4518
|
+
private performReloadResourceData;
|
|
4495
4519
|
/**
|
|
4496
4520
|
* Initializes the datasource and loads the data for the grid.
|
|
4497
4521
|
* Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
|
|
@@ -5038,9 +5062,16 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
5038
5062
|
/**
|
|
5039
5063
|
* Resets the grid data while keeping columnDefs and reloads data.
|
|
5040
5064
|
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
5065
|
+
* Concurrent calls are coalesced; the latest `params` wins.
|
|
5041
5066
|
* @beta
|
|
5042
5067
|
*/
|
|
5043
5068
|
reloadResourceData(params?: DatasourceOptions): Promise<void>;
|
|
5069
|
+
private pendingReloadParams;
|
|
5070
|
+
/**
|
|
5071
|
+
* Performs a single server-side reload attempt for the given generation token.
|
|
5072
|
+
* @internal
|
|
5073
|
+
*/
|
|
5074
|
+
private performReloadResourceData;
|
|
5044
5075
|
/**
|
|
5045
5076
|
* Applies custom sort indicator styling for server-side datasource
|
|
5046
5077
|
* @internal
|
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": "15.3.
|
|
4
|
+
"version": "15.3.5-canary.gs-disc-1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "15.3.
|
|
44
|
-
"@genesislcap/genx": "15.3.
|
|
45
|
-
"@genesislcap/rollup-builder": "15.3.
|
|
46
|
-
"@genesislcap/ts-builder": "15.3.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "15.3.
|
|
48
|
-
"@genesislcap/vite-builder": "15.3.
|
|
49
|
-
"@genesislcap/webpack-builder": "15.3.
|
|
43
|
+
"@genesislcap/foundation-testing": "15.3.5-canary.gs-disc-1",
|
|
44
|
+
"@genesislcap/genx": "15.3.5-canary.gs-disc-1",
|
|
45
|
+
"@genesislcap/rollup-builder": "15.3.5-canary.gs-disc-1",
|
|
46
|
+
"@genesislcap/ts-builder": "15.3.5-canary.gs-disc-1",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "15.3.5-canary.gs-disc-1",
|
|
48
|
+
"@genesislcap/vite-builder": "15.3.5-canary.gs-disc-1",
|
|
49
|
+
"@genesislcap/webpack-builder": "15.3.5-canary.gs-disc-1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "15.3.
|
|
53
|
-
"@genesislcap/foundation-criteria": "15.3.
|
|
54
|
-
"@genesislcap/foundation-logger": "15.3.
|
|
55
|
-
"@genesislcap/foundation-ui": "15.3.
|
|
56
|
-
"@genesislcap/foundation-utils": "15.3.
|
|
52
|
+
"@genesislcap/foundation-comms": "15.3.5-canary.gs-disc-1",
|
|
53
|
+
"@genesislcap/foundation-criteria": "15.3.5-canary.gs-disc-1",
|
|
54
|
+
"@genesislcap/foundation-logger": "15.3.5-canary.gs-disc-1",
|
|
55
|
+
"@genesislcap/foundation-ui": "15.3.5-canary.gs-disc-1",
|
|
56
|
+
"@genesislcap/foundation-utils": "15.3.5-canary.gs-disc-1",
|
|
57
57
|
"@microsoft/fast-colors": "5.3.1",
|
|
58
58
|
"@microsoft/fast-components": "2.30.6",
|
|
59
59
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"require": "./dist/react.cjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "463745ec59f9a747c7867385e340f011a4ebe42a"
|
|
95
95
|
}
|