@genesislcap/grid-pro 14.185.0 → 14.186.1-alpha-1d915d4.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 +0 -4
- package/dist/dts/datasource/server-side.datasource.d.ts +5 -2
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +9 -17
- package/dist/grid-pro.d.ts +5 -2
- package/docs/api-report.md +0 -2
- package/package.json +13 -13
|
@@ -56,7 +56,6 @@ export declare class StreamDatasource extends StreamBaseDatasource implements IS
|
|
|
56
56
|
getRows(params: IServerSideGetRowsParams): Promise<void>;
|
|
57
57
|
private applyServerSideData;
|
|
58
58
|
private sortMapByNumericKey;
|
|
59
|
-
dataLogoff(): Promise<void>;
|
|
60
59
|
deinit(): Promise<void>;
|
|
61
60
|
private refreshDatasource;
|
|
62
61
|
private getOrderByAndToBeSortedColIds;
|
|
@@ -274,7 +273,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
274
273
|
readonly children: HTMLCollection;
|
|
275
274
|
readonly firstElementChild: Element;
|
|
276
275
|
readonly lastElementChild: Element;
|
|
277
|
-
append(...nodes: (string | Node)[]): void;
|
|
276
|
+
append(...nodes: (string | Node)[]): void; /**
|
|
277
|
+
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
278
|
+
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
278
281
|
prepend(...nodes: (string | Node)[]): void;
|
|
279
282
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
280
283
|
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EAEnB,kBAAkB,EAClB,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAIP,wBAAwB,EAIxB,cAAc,EAId,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EAEnB,kBAAkB,EAClB,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAIP,wBAAwB,EAIxB,cAAc,EAId,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGhF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,oBAAqB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CA0BC;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzBL;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,gCAAqC;IACpF,aAAa,SAAgC;IAC7C,kBAAkB,SAAqC;IAEvD,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASxD;;;;OAIG;YACW,kBAAkB;IAYhC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,UAAU,UAAS;IAE9C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,MAAM;IAQN,IAAI;IAoEJ,OAAO;IAKP,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA2BT;IAED,IAAI,QAAQ,IAAI,mBAAmB,CAElC;YAEa,sBAAsB;IA2CpC,OAAO,CAAC,uBAAuB;YAUjB,eAAe;IAoBpB,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,2BAA2B;IAIhF,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;CAIxD"}
|
|
@@ -2,7 +2,6 @@ import { __awaiter, __decorate } from "tslib";
|
|
|
2
2
|
import { Auth, Connect, dataServerResultFilter, extractFieldDefinitions, MessageType, normaliseCriteria, toFieldMetadata, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { attr, customElement, DOM } from '@microsoft/fast-element';
|
|
5
|
-
import { take } from 'rxjs/operators';
|
|
6
5
|
import { getAvailableIndexes, getAvailableIndexFields, logger } from '../utils';
|
|
7
6
|
import { GridProBaseDatasource, StreamBaseDatasource } from './base.datasource';
|
|
8
7
|
import { getServerSideFilterParamsByFieldType } from './server-side.grid-definitions';
|
|
@@ -98,10 +97,12 @@ export class StreamDatasource extends StreamBaseDatasource {
|
|
|
98
97
|
if (!this.dataserverStream) {
|
|
99
98
|
this.dataserverStream = yield this.createDataserverStreamFunc(this.resourceParams);
|
|
100
99
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
let applyResult = true;
|
|
101
|
+
this.dataserverStreamSubscription = this.dataserverStream.subscribe((dataserverResult) => {
|
|
102
|
+
if (applyResult) {
|
|
103
|
+
this.applyServerSideData(params, dataserverResult);
|
|
104
|
+
applyResult = false;
|
|
105
|
+
}
|
|
105
106
|
});
|
|
106
107
|
});
|
|
107
108
|
}
|
|
@@ -158,15 +159,6 @@ export class StreamDatasource extends StreamBaseDatasource {
|
|
|
158
159
|
const sortedMap = new Map(sortedArray);
|
|
159
160
|
return sortedMap;
|
|
160
161
|
}
|
|
161
|
-
dataLogoff() {
|
|
162
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
-
const shouldPerformDataLogoff = this.streamSourceRef;
|
|
164
|
-
if (shouldPerformDataLogoff && this.auth.isLoggedIn) {
|
|
165
|
-
yield this.connect.dataLogoff(this.streamSourceRef);
|
|
166
|
-
}
|
|
167
|
-
this.streamSourceRef = undefined;
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
162
|
deinit() {
|
|
171
163
|
var _a;
|
|
172
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -177,7 +169,7 @@ export class StreamDatasource extends StreamBaseDatasource {
|
|
|
177
169
|
this.dataserverStream = undefined;
|
|
178
170
|
(_a = this.dataserverStreamSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
179
171
|
this.dataserverStreamSubscription = undefined;
|
|
180
|
-
|
|
172
|
+
this.streamSourceRef = undefined;
|
|
181
173
|
});
|
|
182
174
|
}
|
|
183
175
|
refreshDatasource(params) {
|
|
@@ -315,8 +307,8 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
315
307
|
reloadResourceData() {
|
|
316
308
|
var _a, _b, _c;
|
|
317
309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
-
this.ssrmDatasource.dataLogoff();
|
|
319
310
|
this.clearRowData(withoutColumnDefs);
|
|
311
|
+
this.ssrmDatasource.streamSourceRef = undefined;
|
|
320
312
|
this.ssrmDatasource = undefined;
|
|
321
313
|
(_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.refreshServerSide({ purge: true });
|
|
322
314
|
(_c = (_b = this.agGrid) === null || _b === void 0 ? void 0 : _b.gridApi) === null || _c === void 0 ? void 0 : _c.showLoadingOverlay();
|
|
@@ -483,7 +475,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
483
475
|
}
|
|
484
476
|
});
|
|
485
477
|
const onError = (error) => logger.error(error);
|
|
486
|
-
return this.connect.
|
|
478
|
+
return this.connect.stream(this.resourceName, (message) => {
|
|
487
479
|
streamOnMessage(message);
|
|
488
480
|
}, onError, existingParams !== null && existingParams !== void 0 ? existingParams : this.params);
|
|
489
481
|
});
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -2872,7 +2872,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
2872
2872
|
readonly children: HTMLCollection;
|
|
2873
2873
|
readonly firstElementChild: Element;
|
|
2874
2874
|
readonly lastElementChild: Element;
|
|
2875
|
-
append(...nodes: (string | Node)[]): void;
|
|
2875
|
+
append(...nodes: (string | Node)[]): void; /**
|
|
2876
|
+
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
2877
|
+
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
2878
|
+
* @internal
|
|
2879
|
+
*/
|
|
2876
2880
|
prepend(...nodes: (string | Node)[]): void;
|
|
2877
2881
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
2878
2882
|
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
@@ -3266,7 +3270,6 @@ export declare class StreamDatasource extends StreamBaseDatasource implements IS
|
|
|
3266
3270
|
getRows(params: IServerSideGetRowsParams): Promise<void>;
|
|
3267
3271
|
private applyServerSideData;
|
|
3268
3272
|
private sortMapByNumericKey;
|
|
3269
|
-
dataLogoff(): Promise<void>;
|
|
3270
3273
|
deinit(): Promise<void>;
|
|
3271
3274
|
private refreshDatasource;
|
|
3272
3275
|
private getOrderByAndToBeSortedColIds;
|
package/docs/api-report.md
CHANGED
|
@@ -1359,8 +1359,6 @@ export class StreamDatasource extends StreamBaseDatasource implements IServerSid
|
|
|
1359
1359
|
// (undocumented)
|
|
1360
1360
|
createDataserverStreamFunc: (existingParams?: any) => Promise<SocketObservable<FilteredDataServerResult>>;
|
|
1361
1361
|
// (undocumented)
|
|
1362
|
-
dataLogoff(): Promise<void>;
|
|
1363
|
-
// (undocumented)
|
|
1364
1362
|
dataserverStream: SocketObservable<FilteredDataServerResult>;
|
|
1365
1363
|
// (undocumented)
|
|
1366
1364
|
dataserverStreamSubscription: SocketSubscription;
|
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.186.1-alpha-1d915d4.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.
|
|
42
|
-
"@genesislcap/genx": "14.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.
|
|
44
|
-
"@genesislcap/ts-builder": "14.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
46
|
-
"@genesislcap/vite-builder": "14.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.186.1-alpha-1d915d4.0",
|
|
42
|
+
"@genesislcap/genx": "14.186.1-alpha-1d915d4.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.186.1-alpha-1d915d4.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.186.1-alpha-1d915d4.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.186.1-alpha-1d915d4.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.186.1-alpha-1d915d4.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.186.1-alpha-1d915d4.0",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.186.1-alpha-1d915d4.0",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.186.1-alpha-1d915d4.0",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.186.1-alpha-1d915d4.0",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.186.1-alpha-1d915d4.0",
|
|
55
55
|
"@microsoft/fast-colors": "^5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "^2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "e4b12d06812bdfbb2b66c61c89ae7bccebbfcdeb"
|
|
81
81
|
}
|