@genesislcap/grid-pro 14.320.1 → 14.320.2-alpha-e69dcb3.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 +535 -249
- package/dist/dts/datasource/base.datasource.d.ts +63 -4
- 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 +2 -0
- 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 +56 -14
- package/dist/esm/datasource/server-side.resource-reqrep.js +19 -6
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +33 -2
- package/dist/esm/status-bar-components/pagination.status-bar.js +29 -4
- package/dist/grid-pro.api.json +44 -14
- package/dist/grid-pro.d.ts +65 -4
- package/docs/api/grid-pro.genesisgriddatasourceelement.criteria.md +2 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.disablepolling.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.fields.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.issnapshot.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.maxrows.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.maxview.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.md +47 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.movingview.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.offset.md +18 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.orderby.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.pollinginterval.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.polltriggerevents.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.request.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.resourcename.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.reverse.md +7 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.viewnumber.md +2 -0
- package/docs/api-report.md.api.md +1 -14
- package/package.json +13 -13
|
@@ -387,19 +387,78 @@ 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
|
+
*/
|
|
390
393
|
criteria: string;
|
|
391
|
-
|
|
394
|
+
/**
|
|
395
|
+
* Request a snapshot from the server.
|
|
396
|
+
* @remarks Defaults to false.
|
|
397
|
+
*/
|
|
392
398
|
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
|
+
*/
|
|
393
403
|
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
|
+
*/
|
|
394
422
|
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
|
+
*/
|
|
395
427
|
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
|
+
*/
|
|
396
432
|
orderBy: string;
|
|
397
|
-
|
|
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
|
+
*/
|
|
398
437
|
reverse: boolean;
|
|
399
|
-
|
|
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
|
+
*/
|
|
400
452
|
pollingInterval: number;
|
|
453
|
+
/**
|
|
454
|
+
* Array of event names that will trigger a poll when received as commit responses.
|
|
455
|
+
* @remarks REQUEST_SERVER only.
|
|
456
|
+
*/
|
|
401
457
|
pollTriggerEvents: string[];
|
|
402
|
-
|
|
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
|
+
*/
|
|
403
462
|
request: any;
|
|
404
463
|
/**
|
|
405
464
|
* 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,OAAO,KAAK,EAAE,OAAO,EAA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AAE,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;IA+D9C,OAAO,CAAC,mBAAmB;IAsD3B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IAqCtE,OAAO,CAAC,uBAAuB;CAmBhC"}
|
|
@@ -385,6 +385,8 @@ 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;
|
|
388
390
|
connectedCallback(): void;
|
|
389
391
|
disconnectedCallback(): void;
|
|
390
392
|
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,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAgBjC,OAAO,EAAqB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;kBAqE1E,CAAC;;;;;;;;8BAmDI,CAAC,cAGf,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA0B0B,CAAC;4IASxB,CAAH;wFAGkB,CAAC;+IAQiD,CAAA;2FAStE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8CJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;mBAoEiC,CAAC;;;;;;;;;;;;;6BAqBhC,CAAF;8BAEgE,CAAC;kBAK/D,CADA;;oBACsD,CAAC;;sBAGhC,CAAC;oBAGH,CAAC;;;;;;;;gDAckE,CAAC;;;;;;;;;;;;;;;;;;uBA4B1F,CAAH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAuG0C,CAAC;yBAGN,CAAC;UACA,GAAG;WAIR,GAChC;;gBAGM,GAAG;;;;;;;WAeN,GAAF;YACoC,GAAG;;;;;;;;;;;oBAsCnC,GAAJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0KwkD,CAAC;cAA6F,CAAC;eAA8F,CAAC;gBAA+F,CAAC;;;;;;;;;;;;;;SAAulC,CAAC;;;iBAA+E,CAAC;;AAxrBhhG;;;;GAI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AoE9B,OAAO,CAAC,mBAAmB;YA0Bb,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;IAQhB,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKhC,QAAQ;CAwBlB"}
|
|
@@ -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;IAyDrB,OAAO,CAAC,iBAAiB;IAYzB,OAAO;CASR"}
|
|
@@ -24,14 +24,52 @@ 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
|
+
*/
|
|
27
31
|
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
|
+
*/
|
|
28
36
|
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
|
+
*/
|
|
29
41
|
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
|
+
*/
|
|
30
46
|
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
|
+
*/
|
|
31
51
|
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
|
+
*/
|
|
32
67
|
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
|
+
*/
|
|
33
72
|
this.pollTriggerEvents = [];
|
|
34
|
-
this.disablePolling = false;
|
|
35
73
|
/**
|
|
36
74
|
* Attribute to set whether the REQUEST object should be automatically set up.
|
|
37
75
|
* @remarks Defaults to `true`. Only applies to REQUEST_SERVER (REQ-REP) resources.
|
|
@@ -76,10 +114,10 @@ export class GenesisGridDatasourceElement extends DatasourceEventHandler(Foundat
|
|
|
76
114
|
datasourceOptions() {
|
|
77
115
|
return {
|
|
78
116
|
// Common between DATASERVER and REQUEST_SERVER (REQ-REP)
|
|
79
|
-
resourceName: this.resourceName,
|
|
80
|
-
isSnapshot: this.isSnapshot,
|
|
81
117
|
criteria: this.buildCriteria(),
|
|
118
|
+
isSnapshot: this.isSnapshot,
|
|
82
119
|
maxRows: +this.maxRows,
|
|
120
|
+
resourceName: this.resourceName,
|
|
83
121
|
viewNumber: this.viewNumber,
|
|
84
122
|
// DATASERVER only
|
|
85
123
|
fields: this.fields,
|
|
@@ -89,6 +127,7 @@ export class GenesisGridDatasourceElement extends DatasourceEventHandler(Foundat
|
|
|
89
127
|
reverse: this.reverse,
|
|
90
128
|
// REQUEST_SERVER only
|
|
91
129
|
disablePolling: this.disablePolling,
|
|
130
|
+
offset: this.offset,
|
|
92
131
|
pollingInterval: this.pollingInterval,
|
|
93
132
|
pollTriggerEvents: this.pollTriggerEvents,
|
|
94
133
|
request: this.request,
|
|
@@ -249,15 +288,21 @@ __decorate([
|
|
|
249
288
|
__decorate([
|
|
250
289
|
attr
|
|
251
290
|
], GenesisGridDatasourceElement.prototype, "criteria", void 0);
|
|
252
|
-
__decorate([
|
|
253
|
-
attr
|
|
254
|
-
], GenesisGridDatasourceElement.prototype, "fields", void 0);
|
|
255
291
|
__decorate([
|
|
256
292
|
attr({ mode: 'boolean', attribute: 'is-snapshot' })
|
|
257
293
|
], GenesisGridDatasourceElement.prototype, "isSnapshot", void 0);
|
|
258
294
|
__decorate([
|
|
259
295
|
attr({ attribute: 'max-rows' })
|
|
260
296
|
], 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);
|
|
261
306
|
__decorate([
|
|
262
307
|
attr({ attribute: 'max-view' })
|
|
263
308
|
], GenesisGridDatasourceElement.prototype, "maxView", void 0);
|
|
@@ -267,24 +312,21 @@ __decorate([
|
|
|
267
312
|
__decorate([
|
|
268
313
|
attr({ attribute: 'order-by' })
|
|
269
314
|
], GenesisGridDatasourceElement.prototype, "orderBy", void 0);
|
|
270
|
-
__decorate([
|
|
271
|
-
attr({ attribute: 'resource-name' })
|
|
272
|
-
], GenesisGridDatasourceElement.prototype, "resourceName", void 0);
|
|
273
315
|
__decorate([
|
|
274
316
|
attr({ mode: 'boolean' })
|
|
275
317
|
], GenesisGridDatasourceElement.prototype, "reverse", void 0);
|
|
276
318
|
__decorate([
|
|
277
|
-
attr({ attribute: '
|
|
278
|
-
], GenesisGridDatasourceElement.prototype, "
|
|
319
|
+
attr({ mode: 'boolean', attribute: 'disable-polling' })
|
|
320
|
+
], GenesisGridDatasourceElement.prototype, "disablePolling", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
attr
|
|
323
|
+
], GenesisGridDatasourceElement.prototype, "offset", void 0);
|
|
279
324
|
__decorate([
|
|
280
325
|
attr({ attribute: 'polling-interval' })
|
|
281
326
|
], GenesisGridDatasourceElement.prototype, "pollingInterval", void 0);
|
|
282
327
|
__decorate([
|
|
283
328
|
observable
|
|
284
329
|
], GenesisGridDatasourceElement.prototype, "pollTriggerEvents", void 0);
|
|
285
|
-
__decorate([
|
|
286
|
-
attr({ mode: 'boolean', attribute: 'disable-polling' })
|
|
287
|
-
], GenesisGridDatasourceElement.prototype, "disablePolling", void 0);
|
|
288
330
|
__decorate([
|
|
289
331
|
observable
|
|
290
332
|
], GenesisGridDatasourceElement.prototype, "request", void 0);
|
|
@@ -39,12 +39,21 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
const requestResult = yield this.createReqRepRequestFunc(requestParams);
|
|
42
|
-
//
|
|
42
|
+
// Check if MORE_ROWS is available in the response (GSF 8.14+ only)
|
|
43
|
+
const hasMoreRowsInResult = 'MORE_ROWS' in requestResult;
|
|
43
44
|
let isLastView = false;
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
if (hasMoreRowsInResult) {
|
|
46
|
+
// Use MORE_ROWS directly when available, skipping the expensive precheck
|
|
47
|
+
isLastView = !requestResult.MORE_ROWS;
|
|
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
|
+
}
|
|
48
57
|
}
|
|
49
58
|
let applyResult = true;
|
|
50
59
|
if (applyResult) {
|
|
@@ -69,7 +78,11 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
69
78
|
return;
|
|
70
79
|
}
|
|
71
80
|
this.moreRows =
|
|
72
|
-
|
|
81
|
+
'MORE_ROWS' in result
|
|
82
|
+
? result.MORE_ROWS
|
|
83
|
+
: !isLastView &&
|
|
84
|
+
result.NEXT_VIEW !== -1 &&
|
|
85
|
+
result.NEXT_VIEW > this.resourceParams.VIEW_NUMBER;
|
|
73
86
|
if (result.REPLY) {
|
|
74
87
|
this.handleCurrentStreamLoad(result.REPLY);
|
|
75
88
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Events, } from '@ag-grid-community/core';
|
|
3
|
-
import { MessageType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { MessageType, ResourceType, 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,6 +28,8 @@ 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;
|
|
31
33
|
}
|
|
32
34
|
// DatasourceOptions
|
|
33
35
|
criteriaChanged(oldCriteria, newCriteria) {
|
|
@@ -157,6 +159,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
157
159
|
this.clearRowData();
|
|
158
160
|
this._lastMoreRows = false;
|
|
159
161
|
this._isMoreRowsResult = false;
|
|
162
|
+
this._nextOffset = 0;
|
|
163
|
+
this._loadMoreCount = 0;
|
|
160
164
|
this.agGrid.clearLocalGridOptions();
|
|
161
165
|
this.requiresFullRowDataAndColDefs = true;
|
|
162
166
|
this.dataSubWasLoggedOff = false;
|
|
@@ -286,6 +290,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
286
290
|
this.dataSub.unsubscribe();
|
|
287
291
|
this.dataSub = undefined;
|
|
288
292
|
}
|
|
293
|
+
// Reset load more tracking on reload
|
|
294
|
+
this._nextOffset = 0;
|
|
295
|
+
this._loadMoreCount = 0;
|
|
296
|
+
this.datasource.updateLoadMoreCount(0);
|
|
289
297
|
this.datasource.stream = undefined;
|
|
290
298
|
// Cache the current filter model before clearing data to preserve column filters
|
|
291
299
|
yield ((_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.cacheFilterConfig());
|
|
@@ -336,7 +344,12 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
336
344
|
this._sourceRef = result.SOURCE_REF;
|
|
337
345
|
const hasMoreRowsInResult = 'MORE_ROWS' in result;
|
|
338
346
|
const hasRowsCountInResult = 'ROWS_COUNT' in result;
|
|
347
|
+
const hasNextOffsetInResult = this.datasource.resourceType === ResourceType.REQUEST_SERVER && 'NEXT_OFFSET' in result;
|
|
339
348
|
this._isMoreRowsResult = hasMoreRowsInResult && !hasRowsCountInResult;
|
|
349
|
+
// Store NEXT_OFFSET for RequestServer load more functionality
|
|
350
|
+
if (hasNextOffsetInResult) {
|
|
351
|
+
this._nextOffset = result.NEXT_OFFSET;
|
|
352
|
+
}
|
|
340
353
|
if (result === null || result === void 0 ? void 0 : result.ERROR) {
|
|
341
354
|
this.handleErrors(result.ERROR, 'criteria');
|
|
342
355
|
}
|
|
@@ -540,7 +553,25 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
540
553
|
this.updateCachedRowArray();
|
|
541
554
|
}
|
|
542
555
|
loadMore() {
|
|
543
|
-
this.
|
|
556
|
+
switch (this.datasource.resourceType) {
|
|
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
|
+
}
|
|
544
575
|
}
|
|
545
576
|
};
|
|
546
577
|
__decorate([
|
|
@@ -168,24 +168,49 @@ export class PaginationStatusBarComponent {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
updateDisplay() {
|
|
171
|
+
var _a, _b, _c, _d;
|
|
171
172
|
const currentPage = this.api.paginationGetCurrentPage() + 1; // 1-based for display
|
|
172
173
|
const totalPages = this.api.paginationGetTotalPages() || 1;
|
|
173
174
|
const pageSize = this.api.paginationGetPageSize();
|
|
174
175
|
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();
|
|
175
180
|
// Update the page numbers
|
|
176
181
|
this.pageNumberDisplay.textContent = currentPage.toString();
|
|
177
|
-
this.pageNumberTotalDisplay.textContent = totalPages.toString();
|
|
182
|
+
this.pageNumberTotalDisplay.textContent = hasUncertainTotal ? 'more' : totalPages.toString();
|
|
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
|
+
}
|
|
178
192
|
// Update the row summary panel
|
|
179
193
|
const startRow = (currentPage - 1) * pageSize + 1;
|
|
180
194
|
const endRow = Math.min(currentPage * pageSize, rowCount);
|
|
181
|
-
|
|
195
|
+
const totalDisplay = hasUncertainTotal ? 'more' : rowCount.toString();
|
|
196
|
+
this.paginationSummaryPanel.textContent = `${rowCount > 0 ? startRow : 0} to ${endRow} of ${totalDisplay}`;
|
|
182
197
|
// Update button states
|
|
183
198
|
const isFirstPage = currentPage === 1;
|
|
184
|
-
const isLastPage = currentPage >= totalPages;
|
|
199
|
+
const isLastPage = hasUncertainTotal ? false : currentPage >= totalPages;
|
|
185
200
|
this.updateButtonState(this.firstPageButton, isFirstPage);
|
|
186
201
|
this.updateButtonState(this.prevPageButton, isFirstPage);
|
|
187
202
|
this.updateButtonState(this.nextPageButton, isLastPage);
|
|
188
|
-
|
|
203
|
+
// Disable "last page" button when we don't know the total (showing "more")
|
|
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
|
+
}
|
|
189
214
|
}
|
|
190
215
|
updateButtonState(button, disabled) {
|
|
191
216
|
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": "/**\n * Groovy expression to perform filters on the query server; these remain active for the life of the subscription.\n */\n",
|
|
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": "/**\n * Disables polling if set to true (data updates for the grid will not be fetched automatically).\n *\n * @remarks\n *\n * REQUEST_SERVER only. Defaults to false.\n */\n",
|
|
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": "/**\n * 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.\n *\n * @remarks\n *\n * DATASERVER only.\n */\n",
|
|
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": "/**\n * Request a snapshot from the server.\n *\n * @remarks\n *\n * Defaults to false.\n */\n",
|
|
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": "/**\n * Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE_ROWS messages.\n *\n * @remarks\n *\n * This will not affect the number of rows displayed. Defaults to 250.\n */\n",
|
|
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": "/**\n * Maximum number of rows to track as part of a client \"view\".\n *\n * @remarks\n *\n * DATASERVER only. Defaults to 1000.\n */\n",
|
|
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": "/**\n * 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.\n *\n * @remarks\n *\n * 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.\n */\n",
|
|
8214
8214
|
"excerptTokens": [
|
|
8215
8215
|
{
|
|
8216
8216
|
"kind": "Content",
|
|
@@ -8237,10 +8237,40 @@
|
|
|
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
|
+
},
|
|
8240
8270
|
{
|
|
8241
8271
|
"kind": "Property",
|
|
8242
8272
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#orderBy:member",
|
|
8243
|
-
"docComment": "",
|
|
8273
|
+
"docComment": "/**\n * 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.\n *\n * @remarks\n *\n * DATASERVER only. By default, Data Server rows are returned in order of creation (from oldest database record to newest).\n */\n",
|
|
8244
8274
|
"excerptTokens": [
|
|
8245
8275
|
{
|
|
8246
8276
|
"kind": "Content",
|
|
@@ -8270,7 +8300,7 @@
|
|
|
8270
8300
|
{
|
|
8271
8301
|
"kind": "Property",
|
|
8272
8302
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#pollingInterval:member",
|
|
8273
|
-
"docComment": "",
|
|
8303
|
+
"docComment": "/**\n * Custom polling frequency (in milliseconds) for a Request Server resource.\n *\n * @remarks\n *\n * 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.\n */\n",
|
|
8274
8304
|
"excerptTokens": [
|
|
8275
8305
|
{
|
|
8276
8306
|
"kind": "Content",
|
|
@@ -8300,7 +8330,7 @@
|
|
|
8300
8330
|
{
|
|
8301
8331
|
"kind": "Property",
|
|
8302
8332
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#pollTriggerEvents:member",
|
|
8303
|
-
"docComment": "",
|
|
8333
|
+
"docComment": "/**\n * Array of event names that will trigger a poll when received as commit responses.\n *\n * @remarks\n *\n * REQUEST_SERVER only.\n */\n",
|
|
8304
8334
|
"excerptTokens": [
|
|
8305
8335
|
{
|
|
8306
8336
|
"kind": "Content",
|
|
@@ -8378,7 +8408,7 @@
|
|
|
8378
8408
|
{
|
|
8379
8409
|
"kind": "Property",
|
|
8380
8410
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#request:member",
|
|
8381
|
-
"docComment": "",
|
|
8411
|
+
"docComment": "/**\n * Similar to fields but for Request Server scenarios. This optional parameter enables you to specify request fields, which can include wildcards.\n *\n * @remarks\n *\n * REQUEST_SERVER only.\n */\n",
|
|
8382
8412
|
"excerptTokens": [
|
|
8383
8413
|
{
|
|
8384
8414
|
"kind": "Content",
|
|
@@ -8438,7 +8468,7 @@
|
|
|
8438
8468
|
{
|
|
8439
8469
|
"kind": "Property",
|
|
8440
8470
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#resourceName:member",
|
|
8441
|
-
"docComment": "",
|
|
8471
|
+
"docComment": "/**\n * The name of the target Data Server query or Request Server requestReply.\n *\n * @remarks\n *\n * Required attribute.\n */\n",
|
|
8442
8472
|
"excerptTokens": [
|
|
8443
8473
|
{
|
|
8444
8474
|
"kind": "Content",
|
|
@@ -8498,7 +8528,7 @@
|
|
|
8498
8528
|
{
|
|
8499
8529
|
"kind": "Property",
|
|
8500
8530
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#reverse:member",
|
|
8501
|
-
"docComment": "",
|
|
8531
|
+
"docComment": "/**\n * Option that changes the Data Server index iteration.\n *\n * @remarks\n *\n * 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.\n */\n",
|
|
8502
8532
|
"excerptTokens": [
|
|
8503
8533
|
{
|
|
8504
8534
|
"kind": "Content",
|
|
@@ -8697,7 +8727,7 @@
|
|
|
8697
8727
|
{
|
|
8698
8728
|
"kind": "Property",
|
|
8699
8729
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#viewNumber:member",
|
|
8700
|
-
"docComment": "",
|
|
8730
|
+
"docComment": "/**\n * The desired view/page you want data from.\n */\n",
|
|
8701
8731
|
"excerptTokens": [
|
|
8702
8732
|
{
|
|
8703
8733
|
"kind": "Content",
|