@genesislcap/grid-pro 14.228.1 → 14.228.2-alpha-6b809f3.0
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 +22 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +8 -4
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +23 -11
- package/dist/grid-pro.d.ts +8 -4
- package/package.json +13 -13
|
@@ -7486,6 +7486,19 @@
|
|
|
7486
7486
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7487
7487
|
}
|
|
7488
7488
|
},
|
|
7489
|
+
{
|
|
7490
|
+
"kind": "field",
|
|
7491
|
+
"name": "loadingData",
|
|
7492
|
+
"type": {
|
|
7493
|
+
"text": "boolean"
|
|
7494
|
+
},
|
|
7495
|
+
"privacy": "private",
|
|
7496
|
+
"default": "false",
|
|
7497
|
+
"inheritedFrom": {
|
|
7498
|
+
"name": "GridProGenesisDatasource",
|
|
7499
|
+
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7500
|
+
}
|
|
7501
|
+
},
|
|
7489
7502
|
{
|
|
7490
7503
|
"kind": "method",
|
|
7491
7504
|
"name": "colDefsDeepClone",
|
|
@@ -11938,6 +11951,15 @@
|
|
|
11938
11951
|
"privacy": "private",
|
|
11939
11952
|
"default": "true"
|
|
11940
11953
|
},
|
|
11954
|
+
{
|
|
11955
|
+
"kind": "field",
|
|
11956
|
+
"name": "loadingData",
|
|
11957
|
+
"type": {
|
|
11958
|
+
"text": "boolean"
|
|
11959
|
+
},
|
|
11960
|
+
"privacy": "private",
|
|
11961
|
+
"default": "false"
|
|
11962
|
+
},
|
|
11941
11963
|
{
|
|
11942
11964
|
"kind": "method",
|
|
11943
11965
|
"name": "deepClone",
|
|
@@ -15,6 +15,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
15
15
|
connectedCallback(): void;
|
|
16
16
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
17
17
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes the datasource.
|
|
20
|
+
* @public
|
|
21
|
+
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
22
|
+
* @param columnStates - Optionally set the grid up with column state
|
|
23
|
+
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
24
|
+
*/
|
|
18
25
|
disconnectedCallback(): void;
|
|
19
26
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
20
27
|
accessKey: string;
|
|
@@ -45,10 +52,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
45
52
|
readonly classList: DOMTokenList;
|
|
46
53
|
className: string;
|
|
47
54
|
readonly clientHeight: number;
|
|
48
|
-
/**
|
|
49
|
-
* Destroys the datasource, resetting it to its initial state.
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
55
|
readonly clientLeft: number;
|
|
53
56
|
readonly clientTop: number;
|
|
54
57
|
readonly clientWidth: number;
|
|
@@ -346,6 +349,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
346
349
|
private updateSub;
|
|
347
350
|
private connectionSub;
|
|
348
351
|
private requiresFullRowDataAndColDefs;
|
|
352
|
+
private loadingData;
|
|
349
353
|
connectedCallback(): void;
|
|
350
354
|
disconnectedCallback(): void;
|
|
351
355
|
deepClone(): Node;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,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AE5B,iBAAiB;IAuBjB,oBAAoB;IAWX,SAAS,IAAI,IAAI;IAqB1B,OAAO,CAAC,gBAAgB;IAgBxB;;;;;;OAMG;IACG,IAAI,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE;IA0CrE;;;OAGG;IACH,OAAO;IAIP;;;;OAIG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IAiCL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAmCxB;;;;;OAKG;YACW,kBAAkB;IAyBhC;;;;;;OAMG;YACW,gBAAgB;IAiE9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE;IAyBnC,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,sBAAsB;IAgE9B,OAAO,CAAC,mBAAmB;YAyBb,eAAe;IActB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;CAO1B"}
|
|
@@ -24,6 +24,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
24
24
|
this.restartOnReconnection = false;
|
|
25
25
|
this.keepColDefsOnClearRowData = false;
|
|
26
26
|
this.requiresFullRowDataAndColDefs = true;
|
|
27
|
+
this.loadingData = false;
|
|
27
28
|
}
|
|
28
29
|
// DatasourceOptions
|
|
29
30
|
criteriaChanged(oldCriteria, newCriteria) {
|
|
@@ -130,9 +131,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
130
131
|
const filterDebounceTime = 600;
|
|
131
132
|
this.updateSub = this.update
|
|
132
133
|
.pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
|
|
133
|
-
.subscribe((_) => {
|
|
134
|
-
this.reloadResourceData();
|
|
135
|
-
});
|
|
134
|
+
.subscribe((_) => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
yield this.reloadResourceData();
|
|
136
|
+
}));
|
|
136
137
|
return;
|
|
137
138
|
}
|
|
138
139
|
this.handleErrors('Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.');
|
|
@@ -261,14 +262,24 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
261
262
|
var _a, _b;
|
|
262
263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
263
264
|
logger.debug('GridProGenesisDatasource.reloadResourceData()', this.resourceName);
|
|
264
|
-
if (this.
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
if (this.loadingData) {
|
|
266
|
+
logger.debug('Data loading in progress, skipping reload');
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
this.loadingData = true;
|
|
270
|
+
try {
|
|
271
|
+
if (this.dataSub) {
|
|
272
|
+
this.dataSub.unsubscribe();
|
|
273
|
+
this.dataSub = undefined;
|
|
274
|
+
}
|
|
275
|
+
this.clearRowData(withoutColumnDefs);
|
|
276
|
+
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.showLoadingOverlay();
|
|
277
|
+
this.agGrid.removeAttribute('ds-disconnected');
|
|
278
|
+
yield this.loadResourceData(withoutFullInit);
|
|
279
|
+
}
|
|
280
|
+
finally {
|
|
281
|
+
this.loadingData = false;
|
|
267
282
|
}
|
|
268
|
-
this.clearRowData(withoutColumnDefs);
|
|
269
|
-
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.showLoadingOverlay();
|
|
270
|
-
this.agGrid.removeAttribute('ds-disconnected');
|
|
271
|
-
this.loadResourceData(withoutFullInit);
|
|
272
283
|
});
|
|
273
284
|
}
|
|
274
285
|
/**
|
|
@@ -370,8 +381,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
370
381
|
}
|
|
371
382
|
}
|
|
372
383
|
handleStreamResult(result) {
|
|
373
|
-
if (!result)
|
|
384
|
+
if (!result || this.loadingData) {
|
|
374
385
|
return;
|
|
386
|
+
}
|
|
375
387
|
if (this.isRequestServer) {
|
|
376
388
|
this.applyRequestServerData(result);
|
|
377
389
|
}
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -2550,6 +2550,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
2550
2550
|
private updateSub;
|
|
2551
2551
|
private connectionSub;
|
|
2552
2552
|
private requiresFullRowDataAndColDefs;
|
|
2553
|
+
private loadingData;
|
|
2553
2554
|
connectedCallback(): void;
|
|
2554
2555
|
disconnectedCallback(): void;
|
|
2555
2556
|
deepClone(): Node;
|
|
@@ -2644,6 +2645,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2644
2645
|
connectedCallback(): void;
|
|
2645
2646
|
readonly $fastController: Controller;
|
|
2646
2647
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
2648
|
+
/**
|
|
2649
|
+
* Initializes the datasource.
|
|
2650
|
+
* @public
|
|
2651
|
+
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
2652
|
+
* @param columnStates - Optionally set the grid up with column state
|
|
2653
|
+
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
2654
|
+
*/
|
|
2647
2655
|
disconnectedCallback(): void;
|
|
2648
2656
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2649
2657
|
accessKey: string;
|
|
@@ -2674,10 +2682,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2674
2682
|
readonly classList: DOMTokenList;
|
|
2675
2683
|
className: string;
|
|
2676
2684
|
readonly clientHeight: number;
|
|
2677
|
-
/**
|
|
2678
|
-
* Destroys the datasource, resetting it to its initial state.
|
|
2679
|
-
* @public
|
|
2680
|
-
*/
|
|
2681
2685
|
readonly clientLeft: number;
|
|
2682
2686
|
readonly clientTop: number;
|
|
2683
2687
|
readonly clientWidth: number;
|
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.228.
|
|
4
|
+
"version": "14.228.2-alpha-6b809f3.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "14.228.
|
|
42
|
-
"@genesislcap/genx": "14.228.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.228.
|
|
44
|
-
"@genesislcap/ts-builder": "14.228.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.228.
|
|
46
|
-
"@genesislcap/vite-builder": "14.228.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.228.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.228.2-alpha-6b809f3.0",
|
|
42
|
+
"@genesislcap/genx": "14.228.2-alpha-6b809f3.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.228.2-alpha-6b809f3.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.228.2-alpha-6b809f3.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.228.2-alpha-6b809f3.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.228.2-alpha-6b809f3.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.228.2-alpha-6b809f3.0",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.228.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.228.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.228.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.228.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.228.2-alpha-6b809f3.0",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.228.2-alpha-6b809f3.0",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.228.2-alpha-6b809f3.0",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.228.2-alpha-6b809f3.0",
|
|
55
55
|
"@microsoft/fast-colors": "5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "a48ab8ae199c8f7e0ba6b74d84bc12b044f8cc4c"
|
|
81
81
|
}
|