@genesislcap/grid-pro 14.320.2-alpha-e69dcb3.0 → 14.321.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 +249 -535
- package/dist/dts/datasource/base.datasource.d.ts +4 -63
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +0 -2
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/status-bar-components/pagination.status-bar.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +14 -56
- package/dist/esm/datasource/server-side.resource-reqrep.js +6 -19
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +2 -33
- package/dist/esm/status-bar-components/pagination.status-bar.js +4 -29
- package/dist/grid-pro.api.json +14 -44
- package/dist/grid-pro.d.ts +4 -65
- package/docs/api/grid-pro.genesisgriddatasourceelement.criteria.md +0 -2
- package/docs/api/grid-pro.genesisgriddatasourceelement.disablepolling.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.fields.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.issnapshot.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.maxrows.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.maxview.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.md +0 -47
- package/docs/api/grid-pro.genesisgriddatasourceelement.movingview.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.orderby.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.pollinginterval.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.polltriggerevents.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.request.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.resourcename.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.reverse.md +0 -7
- package/docs/api/grid-pro.genesisgriddatasourceelement.viewnumber.md +0 -2
- package/docs/api-report.md.api.md +14 -1
- package/package.json +13 -13
- package/docs/api/grid-pro.genesisgriddatasourceelement.offset.md +0 -18
|
@@ -387,78 +387,19 @@ export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceE
|
|
|
387
387
|
* Allows grid data updates to be processed via and external function before applying in grid
|
|
388
388
|
*/
|
|
389
389
|
rowDataMapper: Function;
|
|
390
|
-
/**
|
|
391
|
-
* Groovy expression to perform filters on the query server; these remain active for the life of the subscription.
|
|
392
|
-
*/
|
|
393
390
|
criteria: string;
|
|
394
|
-
|
|
395
|
-
* Request a snapshot from the server.
|
|
396
|
-
* @remarks Defaults to false.
|
|
397
|
-
*/
|
|
391
|
+
fields: string;
|
|
398
392
|
isSnapshot: boolean;
|
|
399
|
-
/**
|
|
400
|
-
* Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE_ROWS messages.
|
|
401
|
-
* @remarks This will not affect the number of rows displayed. Defaults to 250.
|
|
402
|
-
*/
|
|
403
393
|
maxRows: number;
|
|
404
|
-
/**
|
|
405
|
-
* The name of the target Data Server query or Request Server requestReply.
|
|
406
|
-
* @remarks Required attribute.
|
|
407
|
-
*/
|
|
408
|
-
resourceName: string;
|
|
409
|
-
/**
|
|
410
|
-
* The desired view/page you want data from.
|
|
411
|
-
*/
|
|
412
|
-
viewNumber: number;
|
|
413
|
-
/**
|
|
414
|
-
* Optional parameter that allows you to select a subset of fields from the query if the client is not interested in receiving all of them.
|
|
415
|
-
* @remarks DATASERVER only.
|
|
416
|
-
*/
|
|
417
|
-
fields: string;
|
|
418
|
-
/**
|
|
419
|
-
* Maximum number of rows to track as part of a client "view".
|
|
420
|
-
* @remarks DATASERVER only. Defaults to 1000.
|
|
421
|
-
*/
|
|
422
394
|
maxView: number;
|
|
423
|
-
/**
|
|
424
|
-
* If true, when the maximum number of rows defined in max-view is reached, the Data Server will start discarding the oldest rows (in terms of timestamp) and sending newer rows.
|
|
425
|
-
* @remarks DATASERVER only. If false, the updates in the server will be sent to the front end regardless of order. Note that this will only update the UI; no changes will be performed in the database. Defaults to false.
|
|
426
|
-
*/
|
|
427
395
|
movingView: boolean;
|
|
428
|
-
/**
|
|
429
|
-
* Option to select a Data Server index (defined in the Data Server query), which is especially useful if you want the data to be sorted in a specific way.
|
|
430
|
-
* @remarks DATASERVER only. By default, Data Server rows are returned in order of creation (from oldest database record to newest).
|
|
431
|
-
*/
|
|
432
396
|
orderBy: string;
|
|
433
|
-
|
|
434
|
-
* Option that changes the Data Server index iteration.
|
|
435
|
-
* @remarks DATASERVER only. For example, if you are using the default index, the query will return rows in order from the newest database records to the oldest. Defaults to false.
|
|
436
|
-
*/
|
|
397
|
+
resourceName: string;
|
|
437
398
|
reverse: boolean;
|
|
438
|
-
|
|
439
|
-
* Disables polling if set to true (data updates for the grid will not be fetched automatically).
|
|
440
|
-
* @remarks REQUEST_SERVER only. Defaults to false.
|
|
441
|
-
*/
|
|
442
|
-
disablePolling: boolean;
|
|
443
|
-
/**
|
|
444
|
-
* The offset for pagination in REQUEST_SERVER scenarios.
|
|
445
|
-
* @remarks REQUEST_SERVER only.
|
|
446
|
-
*/
|
|
447
|
-
offset: number;
|
|
448
|
-
/**
|
|
449
|
-
* Custom polling frequency (in milliseconds) for a Request Server resource.
|
|
450
|
-
* @remarks REQUEST_SERVER only. Note that this option only works with Request Server resources; if your resource is a Data Server query, your grid is updated in real time. Defaults to 5000ms.
|
|
451
|
-
*/
|
|
399
|
+
viewNumber: number;
|
|
452
400
|
pollingInterval: number;
|
|
453
|
-
/**
|
|
454
|
-
* Array of event names that will trigger a poll when received as commit responses.
|
|
455
|
-
* @remarks REQUEST_SERVER only.
|
|
456
|
-
*/
|
|
457
401
|
pollTriggerEvents: string[];
|
|
458
|
-
|
|
459
|
-
* Similar to fields but for Request Server scenarios. This optional parameter enables you to specify request fields, which can include wildcards.
|
|
460
|
-
* @remarks REQUEST_SERVER only.
|
|
461
|
-
*/
|
|
402
|
+
disablePolling: boolean;
|
|
462
403
|
request: any;
|
|
463
404
|
/**
|
|
464
405
|
* Attribute to set whether the REQUEST object should be automatically set up.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAKd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAS3C,OAAO,EAAE,KAAK,8BAA8B,EAA4B,MAAM,cAAc,CAAC;AAE7F;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAKd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAErD,O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,aAAa,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAI3F;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,SAAS,KAAK,UAAU,IAAI,OAAO,CAGlC;IAED,QAAQ;IAIR,OAAO;IAIP,kBAAkB;IAIlB,OAAO;IAIP;;;OAGG;IACI,eAAe,CAAC,YAAY,EAAE,OAAO;IAS5C;;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,GAAG,GAAG,EAAE;CAiElE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-reqrep.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-reqrep.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAIpB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;GAGG;AACH,qBAAa,0BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,uBAAuB,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;gBAEpE,OAAO,EAAE,2BAA2B;IAQ1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;
|
|
1
|
+
{"version":3,"file":"server-side.resource-reqrep.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-reqrep.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAIpB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;GAGG;AACH,qBAAa,0BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,uBAAuB,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;gBAEpE,OAAO,EAAE,2BAA2B;IAQ1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAsD9C,OAAO,CAAC,mBAAmB;IAkD3B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IAqCtE,OAAO,CAAC,uBAAuB;CAmBhC"}
|
|
@@ -385,8 +385,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
385
385
|
private _lastMoreRows;
|
|
386
386
|
private _isMoreRowsResult;
|
|
387
387
|
private _sourceRef;
|
|
388
|
-
private _nextOffset;
|
|
389
|
-
private _loadMoreCount;
|
|
390
388
|
connectedCallback(): void;
|
|
391
389
|
disconnectedCallback(): void;
|
|
392
390
|
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,MAAM,yBAAyB,CAAC;
|
|
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,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AAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;IAQhB,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKhC,QAAQ;CAGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.status-bar.d.ts","sourceRoot":"","sources":["../../../src/status-bar-components/pagination.status-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAW,MAAM,yBAAyB,CAAC;AAExF;;;;GAIG;AACH,qBAAa,4BAA6B,YAAW,gBAAgB;IACnE,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,GAAG,CAAU;IAGrB,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,sBAAsB,CAAc;IAC5C,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,iBAAiB,CAAc;IACvC,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,sBAAsB,CAAc;IAC5C,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,cAAc,CAAc;IAEpC,OAAO,CAAC,wBAAwB,CAAa;IAE7C,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAwB/B,MAAM;IAIN,OAAO,CAAC,qBAAqB;IA8G7B,OAAO,CAAC,2BAA2B;IAqCnC,OAAO,CAAC,sBAAsB;IA0B9B,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"pagination.status-bar.d.ts","sourceRoot":"","sources":["../../../src/status-bar-components/pagination.status-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAW,MAAM,yBAAyB,CAAC;AAExF;;;;GAIG;AACH,qBAAa,4BAA6B,YAAW,gBAAgB;IACnE,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,GAAG,CAAU;IAGrB,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,sBAAsB,CAAc;IAC5C,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,iBAAiB,CAAc;IACvC,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,sBAAsB,CAAc;IAC5C,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,cAAc,CAAc;IAEpC,OAAO,CAAC,wBAAwB,CAAa;IAE7C,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAwB/B,MAAM;IAIN,OAAO,CAAC,qBAAqB;IA8G7B,OAAO,CAAC,2BAA2B;IAqCnC,OAAO,CAAC,sBAAsB;IA0B9B,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,aAAa;IAyBrB,OAAO,CAAC,iBAAiB;IAYzB,OAAO;CASR"}
|
|
@@ -24,52 +24,14 @@ export const criteriaJoin = ' && ';
|
|
|
24
24
|
export class GenesisGridDatasourceElement extends DatasourceEventHandler(FoundationElement) {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
|
-
/**
|
|
28
|
-
* Request a snapshot from the server.
|
|
29
|
-
* @remarks Defaults to false.
|
|
30
|
-
*/
|
|
31
27
|
this.isSnapshot = false;
|
|
32
|
-
/**
|
|
33
|
-
* Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE_ROWS messages.
|
|
34
|
-
* @remarks This will not affect the number of rows displayed. Defaults to 250.
|
|
35
|
-
*/
|
|
36
28
|
this.maxRows = DatasourceDefaults.MAX_ROWS_250;
|
|
37
|
-
/**
|
|
38
|
-
* Maximum number of rows to track as part of a client "view".
|
|
39
|
-
* @remarks DATASERVER only. Defaults to 1000.
|
|
40
|
-
*/
|
|
41
29
|
this.maxView = DatasourceDefaults.MAX_VIEW_1000;
|
|
42
|
-
/**
|
|
43
|
-
* If true, when the maximum number of rows defined in max-view is reached, the Data Server will start discarding the oldest rows (in terms of timestamp) and sending newer rows.
|
|
44
|
-
* @remarks DATASERVER only. If false, the updates in the server will be sent to the front end regardless of order. Note that this will only update the UI; no changes will be performed in the database. Defaults to false.
|
|
45
|
-
*/
|
|
46
30
|
this.movingView = false;
|
|
47
|
-
/**
|
|
48
|
-
* Option that changes the Data Server index iteration.
|
|
49
|
-
* @remarks DATASERVER only. For example, if you are using the default index, the query will return rows in order from the newest database records to the oldest. Defaults to false.
|
|
50
|
-
*/
|
|
51
31
|
this.reverse = false;
|
|
52
|
-
// REQUEST_SERVER only
|
|
53
|
-
/**
|
|
54
|
-
* Disables polling if set to true (data updates for the grid will not be fetched automatically).
|
|
55
|
-
* @remarks REQUEST_SERVER only. Defaults to false.
|
|
56
|
-
*/
|
|
57
|
-
this.disablePolling = false;
|
|
58
|
-
/**
|
|
59
|
-
* The offset for pagination in REQUEST_SERVER scenarios.
|
|
60
|
-
* @remarks REQUEST_SERVER only.
|
|
61
|
-
*/
|
|
62
|
-
this.offset = DatasourceDefaults.DEFAULT_REQ_REP_OFFSET;
|
|
63
|
-
/**
|
|
64
|
-
* Custom polling frequency (in milliseconds) for a Request Server resource.
|
|
65
|
-
* @remarks REQUEST_SERVER only. Note that this option only works with Request Server resources; if your resource is a Data Server query, your grid is updated in real time. Defaults to 5000ms.
|
|
66
|
-
*/
|
|
67
32
|
this.pollingInterval = DatasourceDefaults.REQ_REP_POLLING_INTERVAL_MS;
|
|
68
|
-
/**
|
|
69
|
-
* Array of event names that will trigger a poll when received as commit responses.
|
|
70
|
-
* @remarks REQUEST_SERVER only.
|
|
71
|
-
*/
|
|
72
33
|
this.pollTriggerEvents = [];
|
|
34
|
+
this.disablePolling = false;
|
|
73
35
|
/**
|
|
74
36
|
* Attribute to set whether the REQUEST object should be automatically set up.
|
|
75
37
|
* @remarks Defaults to `true`. Only applies to REQUEST_SERVER (REQ-REP) resources.
|
|
@@ -114,10 +76,10 @@ export class GenesisGridDatasourceElement extends DatasourceEventHandler(Foundat
|
|
|
114
76
|
datasourceOptions() {
|
|
115
77
|
return {
|
|
116
78
|
// Common between DATASERVER and REQUEST_SERVER (REQ-REP)
|
|
117
|
-
|
|
79
|
+
resourceName: this.resourceName,
|
|
118
80
|
isSnapshot: this.isSnapshot,
|
|
81
|
+
criteria: this.buildCriteria(),
|
|
119
82
|
maxRows: +this.maxRows,
|
|
120
|
-
resourceName: this.resourceName,
|
|
121
83
|
viewNumber: this.viewNumber,
|
|
122
84
|
// DATASERVER only
|
|
123
85
|
fields: this.fields,
|
|
@@ -127,7 +89,6 @@ export class GenesisGridDatasourceElement extends DatasourceEventHandler(Foundat
|
|
|
127
89
|
reverse: this.reverse,
|
|
128
90
|
// REQUEST_SERVER only
|
|
129
91
|
disablePolling: this.disablePolling,
|
|
130
|
-
offset: this.offset,
|
|
131
92
|
pollingInterval: this.pollingInterval,
|
|
132
93
|
pollTriggerEvents: this.pollTriggerEvents,
|
|
133
94
|
request: this.request,
|
|
@@ -288,21 +249,15 @@ __decorate([
|
|
|
288
249
|
__decorate([
|
|
289
250
|
attr
|
|
290
251
|
], GenesisGridDatasourceElement.prototype, "criteria", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
attr
|
|
254
|
+
], GenesisGridDatasourceElement.prototype, "fields", void 0);
|
|
291
255
|
__decorate([
|
|
292
256
|
attr({ mode: 'boolean', attribute: 'is-snapshot' })
|
|
293
257
|
], GenesisGridDatasourceElement.prototype, "isSnapshot", void 0);
|
|
294
258
|
__decorate([
|
|
295
259
|
attr({ attribute: 'max-rows' })
|
|
296
260
|
], GenesisGridDatasourceElement.prototype, "maxRows", void 0);
|
|
297
|
-
__decorate([
|
|
298
|
-
attr({ attribute: 'resource-name' })
|
|
299
|
-
], GenesisGridDatasourceElement.prototype, "resourceName", void 0);
|
|
300
|
-
__decorate([
|
|
301
|
-
attr({ attribute: 'view-number' })
|
|
302
|
-
], GenesisGridDatasourceElement.prototype, "viewNumber", void 0);
|
|
303
|
-
__decorate([
|
|
304
|
-
attr
|
|
305
|
-
], GenesisGridDatasourceElement.prototype, "fields", void 0);
|
|
306
261
|
__decorate([
|
|
307
262
|
attr({ attribute: 'max-view' })
|
|
308
263
|
], GenesisGridDatasourceElement.prototype, "maxView", void 0);
|
|
@@ -312,21 +267,24 @@ __decorate([
|
|
|
312
267
|
__decorate([
|
|
313
268
|
attr({ attribute: 'order-by' })
|
|
314
269
|
], GenesisGridDatasourceElement.prototype, "orderBy", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
attr({ attribute: 'resource-name' })
|
|
272
|
+
], GenesisGridDatasourceElement.prototype, "resourceName", void 0);
|
|
315
273
|
__decorate([
|
|
316
274
|
attr({ mode: 'boolean' })
|
|
317
275
|
], GenesisGridDatasourceElement.prototype, "reverse", void 0);
|
|
318
276
|
__decorate([
|
|
319
|
-
attr({
|
|
320
|
-
], GenesisGridDatasourceElement.prototype, "
|
|
321
|
-
__decorate([
|
|
322
|
-
attr
|
|
323
|
-
], GenesisGridDatasourceElement.prototype, "offset", void 0);
|
|
277
|
+
attr({ attribute: 'view-number' })
|
|
278
|
+
], GenesisGridDatasourceElement.prototype, "viewNumber", void 0);
|
|
324
279
|
__decorate([
|
|
325
280
|
attr({ attribute: 'polling-interval' })
|
|
326
281
|
], GenesisGridDatasourceElement.prototype, "pollingInterval", void 0);
|
|
327
282
|
__decorate([
|
|
328
283
|
observable
|
|
329
284
|
], GenesisGridDatasourceElement.prototype, "pollTriggerEvents", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
attr({ mode: 'boolean', attribute: 'disable-polling' })
|
|
287
|
+
], GenesisGridDatasourceElement.prototype, "disablePolling", void 0);
|
|
330
288
|
__decorate([
|
|
331
289
|
observable
|
|
332
290
|
], GenesisGridDatasourceElement.prototype, "request", void 0);
|
|
@@ -39,21 +39,12 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
const requestResult = yield this.createReqRepRequestFunc(requestParams);
|
|
42
|
-
//
|
|
43
|
-
const hasMoreRowsInResult = 'MORE_ROWS' in requestResult;
|
|
42
|
+
// TODO: massive limitation on the GSF. It should return -1 if it's already the last view/record (but it doesn't, next will have 0 rows then the NEXT_VIEW=-1).
|
|
44
43
|
let isLastView = false;
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
else {
|
|
50
|
-
// Fall back to the existing logic for backwards compatibility
|
|
51
|
-
// TODO: massive limitation on the GSF. It should return -1 if it's already the last view/record (but it doesn't, next will have 0 rows then the NEXT_VIEW=-1).
|
|
52
|
-
if (requestResult.NEXT_VIEW !== -1) {
|
|
53
|
-
const preCheckRequestParams = Object.assign(Object.assign({}, requestParams), { DETAILS: Object.assign(Object.assign({}, requestParams.DETAILS), { VIEW_NUMBER: requestResult.NEXT_VIEW }) });
|
|
54
|
-
const moreRowsPreCheck = yield this.createReqRepRequestFunc(preCheckRequestParams);
|
|
55
|
-
isLastView = moreRowsPreCheck.NEXT_VIEW === -1 && ((_a = moreRowsPreCheck.REPLY) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
56
|
-
}
|
|
44
|
+
if (requestResult.NEXT_VIEW !== -1) {
|
|
45
|
+
const preCheckRequestParams = Object.assign(Object.assign({}, requestParams), { DETAILS: Object.assign(Object.assign({}, requestParams.DETAILS), { VIEW_NUMBER: requestResult.NEXT_VIEW }) });
|
|
46
|
+
const moreRowsPreCheck = yield this.createReqRepRequestFunc(preCheckRequestParams);
|
|
47
|
+
isLastView = moreRowsPreCheck.NEXT_VIEW === -1 && ((_a = moreRowsPreCheck.REPLY) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
57
48
|
}
|
|
58
49
|
let applyResult = true;
|
|
59
50
|
if (applyResult) {
|
|
@@ -78,11 +69,7 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
78
69
|
return;
|
|
79
70
|
}
|
|
80
71
|
this.moreRows =
|
|
81
|
-
|
|
82
|
-
? result.MORE_ROWS
|
|
83
|
-
: !isLastView &&
|
|
84
|
-
result.NEXT_VIEW !== -1 &&
|
|
85
|
-
result.NEXT_VIEW > this.resourceParams.VIEW_NUMBER;
|
|
72
|
+
!isLastView && result.NEXT_VIEW !== -1 && result.NEXT_VIEW > this.resourceParams.VIEW_NUMBER;
|
|
86
73
|
if (result.REPLY) {
|
|
87
74
|
this.handleCurrentStreamLoad(result.REPLY);
|
|
88
75
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Events, } from '@ag-grid-community/core';
|
|
3
|
-
import { MessageType,
|
|
3
|
+
import { MessageType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
5
|
import { DOM, attr, customElement } from '@microsoft/fast-element';
|
|
6
6
|
import { BehaviorSubject, EMPTY } from 'rxjs';
|
|
@@ -28,8 +28,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
28
28
|
this.requiresFullRowDataAndColDefs = true;
|
|
29
29
|
this._lastMoreRows = false;
|
|
30
30
|
this._isMoreRowsResult = false;
|
|
31
|
-
this._nextOffset = 0;
|
|
32
|
-
this._loadMoreCount = 0;
|
|
33
31
|
}
|
|
34
32
|
// DatasourceOptions
|
|
35
33
|
criteriaChanged(oldCriteria, newCriteria) {
|
|
@@ -159,8 +157,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
159
157
|
this.clearRowData();
|
|
160
158
|
this._lastMoreRows = false;
|
|
161
159
|
this._isMoreRowsResult = false;
|
|
162
|
-
this._nextOffset = 0;
|
|
163
|
-
this._loadMoreCount = 0;
|
|
164
160
|
this.agGrid.clearLocalGridOptions();
|
|
165
161
|
this.requiresFullRowDataAndColDefs = true;
|
|
166
162
|
this.dataSubWasLoggedOff = false;
|
|
@@ -290,10 +286,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
290
286
|
this.dataSub.unsubscribe();
|
|
291
287
|
this.dataSub = undefined;
|
|
292
288
|
}
|
|
293
|
-
// Reset load more tracking on reload
|
|
294
|
-
this._nextOffset = 0;
|
|
295
|
-
this._loadMoreCount = 0;
|
|
296
|
-
this.datasource.updateLoadMoreCount(0);
|
|
297
289
|
this.datasource.stream = undefined;
|
|
298
290
|
// Cache the current filter model before clearing data to preserve column filters
|
|
299
291
|
yield ((_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.cacheFilterConfig());
|
|
@@ -344,12 +336,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
344
336
|
this._sourceRef = result.SOURCE_REF;
|
|
345
337
|
const hasMoreRowsInResult = 'MORE_ROWS' in result;
|
|
346
338
|
const hasRowsCountInResult = 'ROWS_COUNT' in result;
|
|
347
|
-
const hasNextOffsetInResult = this.datasource.resourceType === ResourceType.REQUEST_SERVER && 'NEXT_OFFSET' in result;
|
|
348
339
|
this._isMoreRowsResult = hasMoreRowsInResult && !hasRowsCountInResult;
|
|
349
|
-
// Store NEXT_OFFSET for RequestServer load more functionality
|
|
350
|
-
if (hasNextOffsetInResult) {
|
|
351
|
-
this._nextOffset = result.NEXT_OFFSET;
|
|
352
|
-
}
|
|
353
340
|
if (result === null || result === void 0 ? void 0 : result.ERROR) {
|
|
354
341
|
this.handleErrors(result.ERROR, 'criteria');
|
|
355
342
|
}
|
|
@@ -553,25 +540,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
553
540
|
this.updateCachedRowArray();
|
|
554
541
|
}
|
|
555
542
|
loadMore() {
|
|
556
|
-
|
|
557
|
-
case ResourceType.DATASERVER:
|
|
558
|
-
this.connect.getMoreRows(this._sourceRef);
|
|
559
|
-
break;
|
|
560
|
-
case ResourceType.REQUEST_SERVER:
|
|
561
|
-
this._loadMoreCount += 1;
|
|
562
|
-
// Update the datasource load more count for polling scenarios
|
|
563
|
-
this.datasource.updateLoadMoreCount(this._loadMoreCount);
|
|
564
|
-
// TODO: Will get back to this soon, want to improve loadMore for isSnapshot + extras
|
|
565
|
-
// const requestParams = this.datasource.requestOnlyParams;
|
|
566
|
-
// // Set OFFSET for the next request
|
|
567
|
-
// if (requestParams.DETAILS) {
|
|
568
|
-
// requestParams.DETAILS.OFFSET = this._nextOffset;
|
|
569
|
-
// }
|
|
570
|
-
// this.datasource.snapshot(requestParams).then((result) => {
|
|
571
|
-
// this.applyRequestServerData(result as RequestServerResult);
|
|
572
|
-
// });
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
543
|
+
this.connect.getMoreRows(this._sourceRef);
|
|
575
544
|
}
|
|
576
545
|
};
|
|
577
546
|
__decorate([
|
|
@@ -168,49 +168,24 @@ export class PaginationStatusBarComponent {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
updateDisplay() {
|
|
171
|
-
var _a, _b, _c, _d;
|
|
172
171
|
const currentPage = this.api.paginationGetCurrentPage() + 1; // 1-based for display
|
|
173
172
|
const totalPages = this.api.paginationGetTotalPages() || 1;
|
|
174
173
|
const pageSize = this.api.paginationGetPageSize();
|
|
175
174
|
const rowCount = this.api.paginationGetRowCount();
|
|
176
|
-
// Check if we're in server-side mode and if the total count is uncertain
|
|
177
|
-
// Add null checks for test environment compatibility
|
|
178
|
-
const isServerSide = ((_d = (_c = (_b = (_a = this.api).getModel) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.getType) === null || _d === void 0 ? void 0 : _d.call(_c)) === 'serverSide';
|
|
179
|
-
const hasUncertainTotal = isServerSide && this.api.paginationIsLastPageFound && !this.api.paginationIsLastPageFound();
|
|
180
175
|
// Update the page numbers
|
|
181
176
|
this.pageNumberDisplay.textContent = currentPage.toString();
|
|
182
|
-
this.pageNumberTotalDisplay.textContent =
|
|
183
|
-
// Update accessibility attributes when showing "more"
|
|
184
|
-
if (hasUncertainTotal) {
|
|
185
|
-
this.pageNumberTotalDisplay.setAttribute('aria-label', 'More pages available');
|
|
186
|
-
this.paginationSummaryPanel.setAttribute('aria-label', 'Row count summary with more data available');
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
this.pageNumberTotalDisplay.setAttribute('aria-label', 'Total number of pages');
|
|
190
|
-
this.paginationSummaryPanel.setAttribute('aria-label', 'Row count summary');
|
|
191
|
-
}
|
|
177
|
+
this.pageNumberTotalDisplay.textContent = totalPages.toString();
|
|
192
178
|
// Update the row summary panel
|
|
193
179
|
const startRow = (currentPage - 1) * pageSize + 1;
|
|
194
180
|
const endRow = Math.min(currentPage * pageSize, rowCount);
|
|
195
|
-
|
|
196
|
-
this.paginationSummaryPanel.textContent = `${rowCount > 0 ? startRow : 0} to ${endRow} of ${totalDisplay}`;
|
|
181
|
+
this.paginationSummaryPanel.textContent = `${rowCount > 0 ? startRow : 0} to ${endRow} of ${rowCount}`;
|
|
197
182
|
// Update button states
|
|
198
183
|
const isFirstPage = currentPage === 1;
|
|
199
|
-
const isLastPage =
|
|
184
|
+
const isLastPage = currentPage >= totalPages;
|
|
200
185
|
this.updateButtonState(this.firstPageButton, isFirstPage);
|
|
201
186
|
this.updateButtonState(this.prevPageButton, isFirstPage);
|
|
202
187
|
this.updateButtonState(this.nextPageButton, isLastPage);
|
|
203
|
-
|
|
204
|
-
this.updateButtonState(this.lastPageButton, hasUncertainTotal || isLastPage);
|
|
205
|
-
// Update last page button accessibility when uncertain total
|
|
206
|
-
if (hasUncertainTotal) {
|
|
207
|
-
this.lastPageButton.setAttribute('aria-label', 'Last page unavailable - total number of pages unknown');
|
|
208
|
-
this.lastPageButton.setAttribute('title', 'Cannot jump to last page when total is unknown');
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
this.lastPageButton.setAttribute('aria-label', 'Last Page');
|
|
212
|
-
this.lastPageButton.removeAttribute('title');
|
|
213
|
-
}
|
|
188
|
+
this.updateButtonState(this.lastPageButton, isLastPage);
|
|
214
189
|
}
|
|
215
190
|
updateButtonState(button, disabled) {
|
|
216
191
|
if (disabled) {
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -7671,7 +7671,7 @@
|
|
|
7671
7671
|
{
|
|
7672
7672
|
"kind": "Property",
|
|
7673
7673
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#criteria:member",
|
|
7674
|
-
"docComment": "
|
|
7674
|
+
"docComment": "",
|
|
7675
7675
|
"excerptTokens": [
|
|
7676
7676
|
{
|
|
7677
7677
|
"kind": "Content",
|
|
@@ -7961,7 +7961,7 @@
|
|
|
7961
7961
|
{
|
|
7962
7962
|
"kind": "Property",
|
|
7963
7963
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#disablePolling:member",
|
|
7964
|
-
"docComment": "
|
|
7964
|
+
"docComment": "",
|
|
7965
7965
|
"excerptTokens": [
|
|
7966
7966
|
{
|
|
7967
7967
|
"kind": "Content",
|
|
@@ -7991,7 +7991,7 @@
|
|
|
7991
7991
|
{
|
|
7992
7992
|
"kind": "Property",
|
|
7993
7993
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#fields:member",
|
|
7994
|
-
"docComment": "
|
|
7994
|
+
"docComment": "",
|
|
7995
7995
|
"excerptTokens": [
|
|
7996
7996
|
{
|
|
7997
7997
|
"kind": "Content",
|
|
@@ -8120,7 +8120,7 @@
|
|
|
8120
8120
|
{
|
|
8121
8121
|
"kind": "Property",
|
|
8122
8122
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#isSnapshot:member",
|
|
8123
|
-
"docComment": "
|
|
8123
|
+
"docComment": "",
|
|
8124
8124
|
"excerptTokens": [
|
|
8125
8125
|
{
|
|
8126
8126
|
"kind": "Content",
|
|
@@ -8150,7 +8150,7 @@
|
|
|
8150
8150
|
{
|
|
8151
8151
|
"kind": "Property",
|
|
8152
8152
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#maxRows:member",
|
|
8153
|
-
"docComment": "
|
|
8153
|
+
"docComment": "",
|
|
8154
8154
|
"excerptTokens": [
|
|
8155
8155
|
{
|
|
8156
8156
|
"kind": "Content",
|
|
@@ -8180,7 +8180,7 @@
|
|
|
8180
8180
|
{
|
|
8181
8181
|
"kind": "Property",
|
|
8182
8182
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#maxView:member",
|
|
8183
|
-
"docComment": "
|
|
8183
|
+
"docComment": "",
|
|
8184
8184
|
"excerptTokens": [
|
|
8185
8185
|
{
|
|
8186
8186
|
"kind": "Content",
|
|
@@ -8210,7 +8210,7 @@
|
|
|
8210
8210
|
{
|
|
8211
8211
|
"kind": "Property",
|
|
8212
8212
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#movingView:member",
|
|
8213
|
-
"docComment": "
|
|
8213
|
+
"docComment": "",
|
|
8214
8214
|
"excerptTokens": [
|
|
8215
8215
|
{
|
|
8216
8216
|
"kind": "Content",
|
|
@@ -8237,40 +8237,10 @@
|
|
|
8237
8237
|
"isProtected": false,
|
|
8238
8238
|
"isAbstract": false
|
|
8239
8239
|
},
|
|
8240
|
-
{
|
|
8241
|
-
"kind": "Property",
|
|
8242
|
-
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#offset:member",
|
|
8243
|
-
"docComment": "/**\n * The offset for pagination in REQUEST_SERVER scenarios.\n *\n * @remarks\n *\n * REQUEST_SERVER only.\n */\n",
|
|
8244
|
-
"excerptTokens": [
|
|
8245
|
-
{
|
|
8246
|
-
"kind": "Content",
|
|
8247
|
-
"text": "offset: "
|
|
8248
|
-
},
|
|
8249
|
-
{
|
|
8250
|
-
"kind": "Content",
|
|
8251
|
-
"text": "number"
|
|
8252
|
-
},
|
|
8253
|
-
{
|
|
8254
|
-
"kind": "Content",
|
|
8255
|
-
"text": ";"
|
|
8256
|
-
}
|
|
8257
|
-
],
|
|
8258
|
-
"isReadonly": false,
|
|
8259
|
-
"isOptional": false,
|
|
8260
|
-
"releaseTag": "Public",
|
|
8261
|
-
"name": "offset",
|
|
8262
|
-
"propertyTypeTokenRange": {
|
|
8263
|
-
"startIndex": 1,
|
|
8264
|
-
"endIndex": 2
|
|
8265
|
-
},
|
|
8266
|
-
"isStatic": false,
|
|
8267
|
-
"isProtected": false,
|
|
8268
|
-
"isAbstract": false
|
|
8269
|
-
},
|
|
8270
8240
|
{
|
|
8271
8241
|
"kind": "Property",
|
|
8272
8242
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#orderBy:member",
|
|
8273
|
-
"docComment": "
|
|
8243
|
+
"docComment": "",
|
|
8274
8244
|
"excerptTokens": [
|
|
8275
8245
|
{
|
|
8276
8246
|
"kind": "Content",
|
|
@@ -8300,7 +8270,7 @@
|
|
|
8300
8270
|
{
|
|
8301
8271
|
"kind": "Property",
|
|
8302
8272
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#pollingInterval:member",
|
|
8303
|
-
"docComment": "
|
|
8273
|
+
"docComment": "",
|
|
8304
8274
|
"excerptTokens": [
|
|
8305
8275
|
{
|
|
8306
8276
|
"kind": "Content",
|
|
@@ -8330,7 +8300,7 @@
|
|
|
8330
8300
|
{
|
|
8331
8301
|
"kind": "Property",
|
|
8332
8302
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#pollTriggerEvents:member",
|
|
8333
|
-
"docComment": "
|
|
8303
|
+
"docComment": "",
|
|
8334
8304
|
"excerptTokens": [
|
|
8335
8305
|
{
|
|
8336
8306
|
"kind": "Content",
|
|
@@ -8408,7 +8378,7 @@
|
|
|
8408
8378
|
{
|
|
8409
8379
|
"kind": "Property",
|
|
8410
8380
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#request:member",
|
|
8411
|
-
"docComment": "
|
|
8381
|
+
"docComment": "",
|
|
8412
8382
|
"excerptTokens": [
|
|
8413
8383
|
{
|
|
8414
8384
|
"kind": "Content",
|
|
@@ -8468,7 +8438,7 @@
|
|
|
8468
8438
|
{
|
|
8469
8439
|
"kind": "Property",
|
|
8470
8440
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#resourceName:member",
|
|
8471
|
-
"docComment": "
|
|
8441
|
+
"docComment": "",
|
|
8472
8442
|
"excerptTokens": [
|
|
8473
8443
|
{
|
|
8474
8444
|
"kind": "Content",
|
|
@@ -8528,7 +8498,7 @@
|
|
|
8528
8498
|
{
|
|
8529
8499
|
"kind": "Property",
|
|
8530
8500
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#reverse:member",
|
|
8531
|
-
"docComment": "
|
|
8501
|
+
"docComment": "",
|
|
8532
8502
|
"excerptTokens": [
|
|
8533
8503
|
{
|
|
8534
8504
|
"kind": "Content",
|
|
@@ -8727,7 +8697,7 @@
|
|
|
8727
8697
|
{
|
|
8728
8698
|
"kind": "Property",
|
|
8729
8699
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#viewNumber:member",
|
|
8730
|
-
"docComment": "
|
|
8700
|
+
"docComment": "",
|
|
8731
8701
|
"excerptTokens": [
|
|
8732
8702
|
{
|
|
8733
8703
|
"kind": "Content",
|