@genesislcap/grid-pro 14.429.2 → 14.430.0-PA-1863.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.
|
@@ -474,6 +474,17 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
474
474
|
* @internal
|
|
475
475
|
*/
|
|
476
476
|
private previousPollResult;
|
|
477
|
+
/**
|
|
478
|
+
* Tracks whether the baseline poll has been captured for the current polling stream.
|
|
479
|
+
* @remarks
|
|
480
|
+
* Used to distinguish "no baseline yet" from "baseline is empty". Without this flag,
|
|
481
|
+
* an empty initial poll (e.g. resource starts with zero rows) leaves
|
|
482
|
+
* `previousPollResult.size === 0`, so the next poll — which contains newly-inserted
|
|
483
|
+
* rows — is treated as another "first poll" and stored as baseline instead of being
|
|
484
|
+
* applied. The first inserted row would then never appear in the grid.
|
|
485
|
+
* @internal
|
|
486
|
+
*/
|
|
487
|
+
private hasCapturedFirstPollResult;
|
|
477
488
|
/**
|
|
478
489
|
* Resets the previous poll result comparison state.
|
|
479
490
|
* @remarks
|
|
@@ -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,EAWlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAUvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;;;;;;;kBAyDxC,CAAC;;;;;;;;8BAoBI,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiBP,CAAC;4IAEiE,CAAC;wFAKtF,CAAC;+IAMwC,CAAC;2FAEb,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmCP,CAAC;;;;;;;;;;;;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IACH,OAAO,CAAC,oCAAoC;IAWtC,IAAI;IAmIV,mBAAmB,CAAC,KAAK,EAAE,GAAG;IAMf,OAAO;IAmBP,OAAO;IAKtB,OAAO,CAAC,YAAY;IAmBpB,OAAO,CAAC,kBAAkB;YAgDZ,mBAAmB;IAKjC;;;;;;;;;;;;OAYG;YACW,kBAAkB;IA+BhC;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB,CAA+B;IAEzD;;;;;;;;;OASG;IACH,OAAO,CAAC,0BAA0B,CAAS;IAE3C;;;;;;OAMG;IACI,uBAAuB;IAM9B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,wBAAwB;YAsElB,sBAAsB;YAoDtB,eAAe;IAmBpB,gBAAgB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIvC,QAAQ;CAGlB"}
|
|
@@ -108,6 +108,17 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
108
108
|
* @internal
|
|
109
109
|
*/
|
|
110
110
|
this.previousPollResult = new Map();
|
|
111
|
+
/**
|
|
112
|
+
* Tracks whether the baseline poll has been captured for the current polling stream.
|
|
113
|
+
* @remarks
|
|
114
|
+
* Used to distinguish "no baseline yet" from "baseline is empty". Without this flag,
|
|
115
|
+
* an empty initial poll (e.g. resource starts with zero rows) leaves
|
|
116
|
+
* `previousPollResult.size === 0`, so the next poll — which contains newly-inserted
|
|
117
|
+
* rows — is treated as another "first poll" and stored as baseline instead of being
|
|
118
|
+
* applied. The first inserted row would then never appear in the grid.
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
this.hasCapturedFirstPollResult = false;
|
|
111
122
|
}
|
|
112
123
|
resourceNameChanged(oldValue, newValue) {
|
|
113
124
|
if (!oldValue || oldValue === newValue)
|
|
@@ -445,6 +456,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
445
456
|
*/
|
|
446
457
|
resetPreviousPollResult() {
|
|
447
458
|
this.previousPollResult.clear();
|
|
459
|
+
this.hasCapturedFirstPollResult = false;
|
|
448
460
|
logger.debug('Previous poll result cleared');
|
|
449
461
|
}
|
|
450
462
|
/**
|
|
@@ -469,10 +481,11 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
469
481
|
logger.error('received invalid RequestServerResult for polling update', result);
|
|
470
482
|
return;
|
|
471
483
|
}
|
|
472
|
-
if (this.
|
|
484
|
+
if (!this.hasCapturedFirstPollResult) {
|
|
473
485
|
polledData.forEach((row) => {
|
|
474
486
|
this.previousPollResult.set(row[this.rowId], row);
|
|
475
487
|
});
|
|
488
|
+
this.hasCapturedFirstPollResult = true;
|
|
476
489
|
logger.debug('First poll result stored for future comparison', {
|
|
477
490
|
rowCount: this.previousPollResult.size,
|
|
478
491
|
});
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -5015,6 +5015,17 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
5015
5015
|
* @internal
|
|
5016
5016
|
*/
|
|
5017
5017
|
private previousPollResult;
|
|
5018
|
+
/**
|
|
5019
|
+
* Tracks whether the baseline poll has been captured for the current polling stream.
|
|
5020
|
+
* @remarks
|
|
5021
|
+
* Used to distinguish "no baseline yet" from "baseline is empty". Without this flag,
|
|
5022
|
+
* an empty initial poll (e.g. resource starts with zero rows) leaves
|
|
5023
|
+
* `previousPollResult.size === 0`, so the next poll — which contains newly-inserted
|
|
5024
|
+
* rows — is treated as another "first poll" and stored as baseline instead of being
|
|
5025
|
+
* applied. The first inserted row would then never appear in the grid.
|
|
5026
|
+
* @internal
|
|
5027
|
+
*/
|
|
5028
|
+
private hasCapturedFirstPollResult;
|
|
5018
5029
|
/**
|
|
5019
5030
|
* Resets the previous poll result comparison state.
|
|
5020
5031
|
* @remarks
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-pro",
|
|
3
3
|
"description": "Genesis Foundation AG Grid",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.430.0-PA-1863.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": "14.
|
|
44
|
-
"@genesislcap/genx": "14.
|
|
45
|
-
"@genesislcap/rollup-builder": "14.
|
|
46
|
-
"@genesislcap/ts-builder": "14.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
48
|
-
"@genesislcap/vite-builder": "14.
|
|
49
|
-
"@genesislcap/webpack-builder": "14.
|
|
43
|
+
"@genesislcap/foundation-testing": "14.430.0-PA-1863.1",
|
|
44
|
+
"@genesislcap/genx": "14.430.0-PA-1863.1",
|
|
45
|
+
"@genesislcap/rollup-builder": "14.430.0-PA-1863.1",
|
|
46
|
+
"@genesislcap/ts-builder": "14.430.0-PA-1863.1",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "14.430.0-PA-1863.1",
|
|
48
|
+
"@genesislcap/vite-builder": "14.430.0-PA-1863.1",
|
|
49
|
+
"@genesislcap/webpack-builder": "14.430.0-PA-1863.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "14.
|
|
53
|
-
"@genesislcap/foundation-criteria": "14.
|
|
54
|
-
"@genesislcap/foundation-logger": "14.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.
|
|
56
|
-
"@genesislcap/foundation-utils": "14.
|
|
52
|
+
"@genesislcap/foundation-comms": "14.430.0-PA-1863.1",
|
|
53
|
+
"@genesislcap/foundation-criteria": "14.430.0-PA-1863.1",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.430.0-PA-1863.1",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.430.0-PA-1863.1",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.430.0-PA-1863.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": "3c5cde1258e3930815b9e7688c095547dad3e6b9"
|
|
95
95
|
}
|