@genesislcap/grid-pro 15.3.4 → 15.3.5-canary.gs-disc-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.
@@ -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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E,GAAG,EAAE,EAAE,QAAQ,GAAE,MAAU;IAkCvE,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAgBhD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAuBhD,SAAS,CAAC,oBAAoB;IAgC9B,OAAO,CAAC,sBAAsB;IAQ9B,SAAS,CAAC,gBAAgB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIjD;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IA6BtB,QAAQ;IAIR;;;;;;OAMG;IACH,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI;IAEhD,OAAO;IAIP,kBAAkB;IAIlB,OAAO;IAIP,OAAO,CAAC,eAAe,CAAS;IAEhC;;;OAGG;IACI,eAAe,CAAC,YAAY,EAAE,OAAO;IAa5C;;OAEG;IACI,cAAc,IAAI,OAAO;IAIhC;;;OAGG;IACH,SAAS,CAAC,wBAAwB,CAAC,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,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAsCkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAmD+D,CAAC;;;;;;;;;;;;;6BAmB9C,CAAC;8BACf,CAAC;kBAIxB,CAAF;;oBAIa,CAAC;;sBAIV,CAAJ;oBAEgB,CAAC;;;;;;;;gDAiBS,CAAC;;;;;;;;;;;;;;;;;;uBA6Bf,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA+E2C,CAAC;yBAE7C,CAAV;UAAoD,GAAG;WAClB,GAAG;;gBAE7B,GAAG;;;;;;;WAaR,GADH;YACG,GAAL;;;;;;;;;;;oBA0CQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8LV,CADJ;cAGoB,CAAC;eAId,CAAC;gBAC+C,CAAC;;;;;;;;;;;;;;SAqC7C,CAAC;;;iBACgC,CAAC;;AAxlB7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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AG;IAIvC,QAAQ;CAGlB"}
@@ -473,6 +473,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
473
473
  /**
474
474
  * Sets the columnDefs and rowData for the grid.
475
475
  * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use transactions.
476
+ * Replaces grid rowData wholesale (via `dataLoaded`) rather than add-transactions, so a clear+reload
477
+ * cannot leave blank/duplicate rows from mixed setGridOption/applyTransaction races.
476
478
  * @internal
477
479
  */
478
480
  private setRowData;
@@ -495,10 +497,16 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
495
497
  * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
496
498
  * Loads resource data without full initialization (no metadata fetch).
497
499
  * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
500
+ * Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.
498
501
  * @see loadResourceData
499
502
  * @public
500
503
  */
501
504
  reloadResourceData(): Promise<void>;
505
+ /**
506
+ * Performs a single reload attempt for the given generation token.
507
+ * @internal
508
+ */
509
+ private performReloadResourceData;
502
510
  /**
503
511
  * Initializes the datasource and loads the data for the grid.
504
512
  * 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;;;;;;;;kBAwBw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,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;;;OAKG;cACgB,iBAAiB,IAAI,iBAAiB;IAazD;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAQnC;;;;;;OAMG;IACM,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE;IAqBlD;;;OAGG;IACH,OAAO,CAAC,cAAc;IAQb,QAAQ;CA+BlB"}
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;;;;;;;;gDAWiC,CAAC;;;;;;;;;;;;;;;;;;uBAoB3C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;IACH,MAAM;IAKN;;;;OAIG;IACH,KAAK;IAKL;;;OAGG;IACY,OAAO;IAKtB;;OAEG;IACH,WAAW;IAKX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;;;OAMG;YACW,UAAU;IA0BxB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;;OAGG;IACH,OAAO,CAAC,cAAc;IAOtB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiBvB;;;;;;;OAOG;IACU,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIhD;;;OAGG;YACW,yBAAyB;IAqCvC;;;;;;;OAOG;YACW,gBAAgB;IAwG9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,kBAAkB;IAU1B;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,sBAAsB;IAoE9B,OAAO,CAAC,mBAAmB;YA0Bb,eAAe;IAWtB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CAAC,WAAW,EAAE,GAAG;IAI1C,OAAO,CAAC,iBAAiB;IAQhB,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;;;OAKG;cACgB,iBAAiB,IAAI,iBAAiB;IAazD;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAQnC;;;;;;OAMG;IACM,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE;IAqBlD;;;OAGG;IACH,OAAO,CAAC,cAAc;IAQb,QAAQ;CA+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) {
@@ -166,9 +166,24 @@ 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();
@@ -178,9 +193,15 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
178
193
  this.$emit(datasourceEventNames.cacheFilterConfig);
179
194
  this.clearRowData(withoutColumnDefs);
180
195
  this.setDisconnected(false);
196
+ if (this.isReloadSuperseded(generation)) {
197
+ return;
198
+ }
181
199
  if (params) {
182
200
  const options = Object.assign(Object.assign({}, this.datasourceOptions()), params);
183
201
  const initOK = yield this.initializeDatasource(options, true, false);
202
+ if (this.isReloadSuperseded(generation)) {
203
+ return;
204
+ }
184
205
  if (!initOK) {
185
206
  // Emit event to set server side datasource to null
186
207
  this.$emit(datasourceEventNames.setServerSideDatasource, { datasource: null });
@@ -214,6 +235,9 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
214
235
  // Emit events instead of direct grid access
215
236
  this.$emit(datasourceEventNames.setServerSideDatasource, { datasource: null });
216
237
  this.$emit(datasourceEventNames.loadingStarted);
238
+ if (this.isReloadSuperseded(generation)) {
239
+ return;
240
+ }
217
241
  yield this.init();
218
242
  }
219
243
  });
@@ -252,10 +252,25 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
252
252
  /**
253
253
  * Sets the columnDefs and rowData for the grid.
254
254
  * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use transactions.
255
+ * Replaces grid rowData wholesale (via `dataLoaded`) rather than add-transactions, so a clear+reload
256
+ * cannot leave blank/duplicate rows from mixed setGridOption/applyTransaction races.
255
257
  * @internal
256
258
  */
257
259
  setRowData(rowData) {
258
260
  return __awaiter(this, void 0, void 0, function* () {
261
+ // Flip before any await so overlapping stream messages use the incremental path against
262
+ // the map we already populated, instead of re-entering this full-load path.
263
+ this.requiresFullRowDataAndColDefs = false;
264
+ const data = this.rowDataMapper ? this.rowDataMapper(rowData) : rowData;
265
+ this.updateCachedRowArray();
266
+ this.$emit(datasourceEventNames.filtersRestored);
267
+ this.emitDataLoaded(data ? [...data] : [], true);
268
+ if (!(data === null || data === void 0 ? void 0 : data.length)) {
269
+ this.$emit(datasourceEventNames.noDataAvailable);
270
+ }
271
+ else {
272
+ this.$emit(datasourceEventNames.loadingFinished);
273
+ }
259
274
  const agColumnDefs = yield this.getAgColumnDefs(this.datasource.fieldMetadata);
260
275
  if (agColumnDefs) {
261
276
  this.$emit(datasourceEventNames.schemaUpdated, {
@@ -263,14 +278,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
263
278
  metadata: this.datasource.fieldMetadata,
264
279
  });
265
280
  }
266
- const data = this.rowDataMapper ? this.rowDataMapper(rowData) : rowData;
267
- this.$emit(datasourceEventNames.filtersRestored);
268
- // Use transactions for adding data
269
- this.transactionData = { add: data ? [...data] : [], remove: [], update: [], addIndex: 0 };
270
- this.emitDataChanged(this.transactionData);
271
- // Update the cached row array
272
- this.updateCachedRowArray();
273
- this.requiresFullRowDataAndColDefs = false;
274
281
  });
275
282
  }
276
283
  /**
@@ -312,10 +319,20 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
312
319
  * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
313
320
  * Loads resource data without full initialization (no metadata fetch).
314
321
  * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
322
+ * Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.
315
323
  * @see loadResourceData
316
324
  * @public
317
325
  */
318
326
  reloadResourceData() {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ return this.coalesceReload((generation) => this.performReloadResourceData(generation));
329
+ });
330
+ }
331
+ /**
332
+ * Performs a single reload attempt for the given generation token.
333
+ * @internal
334
+ */
335
+ performReloadResourceData(generation) {
319
336
  return __awaiter(this, void 0, void 0, function* () {
320
337
  logger.debug('GridProGenesisDatasource.reloadResourceData()', this.resourceName);
321
338
  if (this.dataSub) {
@@ -332,7 +349,19 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
332
349
  this.requiresFullRowDataAndColDefs = true;
333
350
  this.$emit(datasourceEventNames.loadingStarted);
334
351
  this.setDisconnected(false);
352
+ // Another reload was requested while we were clearing — let the coalesce loop rerun.
353
+ if (this.isReloadSuperseded(generation)) {
354
+ return;
355
+ }
335
356
  yield this.loadResourceData(withoutFullInit);
357
+ // Tear down a stream that started after we were already superseded.
358
+ if (this.isReloadSuperseded(generation)) {
359
+ if (this.dataSub) {
360
+ this.dataSub.unsubscribe();
361
+ this.dataSub = undefined;
362
+ }
363
+ this.datasource.stream = undefined;
364
+ }
336
365
  });
337
366
  }
338
367
  /**
@@ -520,7 +549,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
520
549
  });
521
550
  // Update and use the cached array
522
551
  this.updateCachedRowArray();
523
- this.setRowData(this.cachedRowArray);
552
+ void this.setRowData(this.cachedRowArray);
524
553
  this.handleSizeChanged(previousSize, this.rowData.size);
525
554
  return;
526
555
  }
@@ -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",
@@ -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[];
@@ -4466,6 +4484,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
4466
4484
  /**
4467
4485
  * Sets the columnDefs and rowData for the grid.
4468
4486
  * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use transactions.
4487
+ * Replaces grid rowData wholesale (via `dataLoaded`) rather than add-transactions, so a clear+reload
4488
+ * cannot leave blank/duplicate rows from mixed setGridOption/applyTransaction races.
4469
4489
  * @internal
4470
4490
  */
4471
4491
  private setRowData;
@@ -4488,10 +4508,16 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
4488
4508
  * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
4489
4509
  * Loads resource data without full initialization (no metadata fetch).
4490
4510
  * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
4511
+ * Concurrent calls (common during auth reconnect flicker) are coalesced so only one DATA_LOGON is active.
4491
4512
  * @see loadResourceData
4492
4513
  * @public
4493
4514
  */
4494
4515
  reloadResourceData(): Promise<void>;
4516
+ /**
4517
+ * Performs a single reload attempt for the given generation token.
4518
+ * @internal
4519
+ */
4520
+ private performReloadResourceData;
4495
4521
  /**
4496
4522
  * Initializes the datasource and loads the data for the grid.
4497
4523
  * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
@@ -5038,9 +5064,16 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
5038
5064
  /**
5039
5065
  * Resets the grid data while keeping columnDefs and reloads data.
5040
5066
  * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
5067
+ * Concurrent calls are coalesced; the latest `params` wins.
5041
5068
  * @beta
5042
5069
  */
5043
5070
  reloadResourceData(params?: DatasourceOptions): Promise<void>;
5071
+ private pendingReloadParams;
5072
+ /**
5073
+ * Performs a single server-side reload attempt for the given generation token.
5074
+ * @internal
5075
+ */
5076
+ private performReloadResourceData;
5044
5077
  /**
5045
5078
  * Applies custom sort indicator styling for server-side datasource
5046
5079
  * @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",
4
+ "version": "15.3.5-canary.gs-disc-2",
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.4",
44
- "@genesislcap/genx": "15.3.4",
45
- "@genesislcap/rollup-builder": "15.3.4",
46
- "@genesislcap/ts-builder": "15.3.4",
47
- "@genesislcap/uvu-playwright-builder": "15.3.4",
48
- "@genesislcap/vite-builder": "15.3.4",
49
- "@genesislcap/webpack-builder": "15.3.4"
43
+ "@genesislcap/foundation-testing": "15.3.5-canary.gs-disc-2",
44
+ "@genesislcap/genx": "15.3.5-canary.gs-disc-2",
45
+ "@genesislcap/rollup-builder": "15.3.5-canary.gs-disc-2",
46
+ "@genesislcap/ts-builder": "15.3.5-canary.gs-disc-2",
47
+ "@genesislcap/uvu-playwright-builder": "15.3.5-canary.gs-disc-2",
48
+ "@genesislcap/vite-builder": "15.3.5-canary.gs-disc-2",
49
+ "@genesislcap/webpack-builder": "15.3.5-canary.gs-disc-2"
50
50
  },
51
51
  "dependencies": {
52
- "@genesislcap/foundation-comms": "15.3.4",
53
- "@genesislcap/foundation-criteria": "15.3.4",
54
- "@genesislcap/foundation-logger": "15.3.4",
55
- "@genesislcap/foundation-ui": "15.3.4",
56
- "@genesislcap/foundation-utils": "15.3.4",
52
+ "@genesislcap/foundation-comms": "15.3.5-canary.gs-disc-2",
53
+ "@genesislcap/foundation-criteria": "15.3.5-canary.gs-disc-2",
54
+ "@genesislcap/foundation-logger": "15.3.5-canary.gs-disc-2",
55
+ "@genesislcap/foundation-ui": "15.3.5-canary.gs-disc-2",
56
+ "@genesislcap/foundation-utils": "15.3.5-canary.gs-disc-2",
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": "191a57bd28a112b5cd2b282a9c0dbb8c8b689617"
94
+ "gitHead": "a3a8d3090512472a1cd8cae494919b6565785b3e"
95
95
  }