@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.
Files changed (31) hide show
  1. package/dist/custom-elements.json +535 -249
  2. package/dist/dts/datasource/base.datasource.d.ts +63 -4
  3. package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
  4. package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
  5. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +2 -0
  6. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
  7. package/dist/dts/status-bar-components/pagination.status-bar.d.ts.map +1 -1
  8. package/dist/esm/datasource/base.datasource.js +56 -14
  9. package/dist/esm/datasource/server-side.resource-reqrep.js +19 -6
  10. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +33 -2
  11. package/dist/esm/status-bar-components/pagination.status-bar.js +29 -4
  12. package/dist/grid-pro.api.json +44 -14
  13. package/dist/grid-pro.d.ts +65 -4
  14. package/docs/api/grid-pro.genesisgriddatasourceelement.criteria.md +2 -0
  15. package/docs/api/grid-pro.genesisgriddatasourceelement.disablepolling.md +7 -0
  16. package/docs/api/grid-pro.genesisgriddatasourceelement.fields.md +7 -0
  17. package/docs/api/grid-pro.genesisgriddatasourceelement.issnapshot.md +7 -0
  18. package/docs/api/grid-pro.genesisgriddatasourceelement.maxrows.md +7 -0
  19. package/docs/api/grid-pro.genesisgriddatasourceelement.maxview.md +7 -0
  20. package/docs/api/grid-pro.genesisgriddatasourceelement.md +47 -0
  21. package/docs/api/grid-pro.genesisgriddatasourceelement.movingview.md +7 -0
  22. package/docs/api/grid-pro.genesisgriddatasourceelement.offset.md +18 -0
  23. package/docs/api/grid-pro.genesisgriddatasourceelement.orderby.md +7 -0
  24. package/docs/api/grid-pro.genesisgriddatasourceelement.pollinginterval.md +7 -0
  25. package/docs/api/grid-pro.genesisgriddatasourceelement.polltriggerevents.md +7 -0
  26. package/docs/api/grid-pro.genesisgriddatasourceelement.request.md +7 -0
  27. package/docs/api/grid-pro.genesisgriddatasourceelement.resourcename.md +7 -0
  28. package/docs/api/grid-pro.genesisgriddatasourceelement.reverse.md +7 -0
  29. package/docs/api/grid-pro.genesisgriddatasourceelement.viewnumber.md +2 -0
  30. package/docs/api-report.md.api.md +1 -14
  31. package/package.json +13 -13
@@ -1065,19 +1065,78 @@ export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceE
1065
1065
  * Allows grid data updates to be processed via and external function before applying in grid
1066
1066
  */
1067
1067
  rowDataMapper: Function;
1068
+ /**
1069
+ * Groovy expression to perform filters on the query server; these remain active for the life of the subscription.
1070
+ */
1068
1071
  criteria: string;
1069
- fields: string;
1072
+ /**
1073
+ * Request a snapshot from the server.
1074
+ * @remarks Defaults to false.
1075
+ */
1070
1076
  isSnapshot: boolean;
1077
+ /**
1078
+ * Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE_ROWS messages.
1079
+ * @remarks This will not affect the number of rows displayed. Defaults to 250.
1080
+ */
1071
1081
  maxRows: number;
1082
+ /**
1083
+ * The name of the target Data Server query or Request Server requestReply.
1084
+ * @remarks Required attribute.
1085
+ */
1086
+ resourceName: string;
1087
+ /**
1088
+ * The desired view/page you want data from.
1089
+ */
1090
+ viewNumber: number;
1091
+ /**
1092
+ * 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.
1093
+ * @remarks DATASERVER only.
1094
+ */
1095
+ fields: string;
1096
+ /**
1097
+ * Maximum number of rows to track as part of a client "view".
1098
+ * @remarks DATASERVER only. Defaults to 1000.
1099
+ */
1072
1100
  maxView: number;
1101
+ /**
1102
+ * 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.
1103
+ * @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.
1104
+ */
1073
1105
  movingView: boolean;
1106
+ /**
1107
+ * 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.
1108
+ * @remarks DATASERVER only. By default, Data Server rows are returned in order of creation (from oldest database record to newest).
1109
+ */
1074
1110
  orderBy: string;
1075
- resourceName: string;
1111
+ /**
1112
+ * Option that changes the Data Server index iteration.
1113
+ * @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.
1114
+ */
1076
1115
  reverse: boolean;
1077
- viewNumber: number;
1116
+ /**
1117
+ * Disables polling if set to true (data updates for the grid will not be fetched automatically).
1118
+ * @remarks REQUEST_SERVER only. Defaults to false.
1119
+ */
1120
+ disablePolling: boolean;
1121
+ /**
1122
+ * The offset for pagination in REQUEST_SERVER scenarios.
1123
+ * @remarks REQUEST_SERVER only.
1124
+ */
1125
+ offset: number;
1126
+ /**
1127
+ * Custom polling frequency (in milliseconds) for a Request Server resource.
1128
+ * @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.
1129
+ */
1078
1130
  pollingInterval: number;
1131
+ /**
1132
+ * Array of event names that will trigger a poll when received as commit responses.
1133
+ * @remarks REQUEST_SERVER only.
1134
+ */
1079
1135
  pollTriggerEvents: string[];
1080
- disablePolling: boolean;
1136
+ /**
1137
+ * Similar to fields but for Request Server scenarios. This optional parameter enables you to specify request fields, which can include wildcards.
1138
+ * @remarks REQUEST_SERVER only.
1139
+ */
1081
1140
  request: any;
1082
1141
  /**
1083
1142
  * Attribute to set whether the REQUEST object should be automatically set up.
@@ -2905,6 +2964,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
2905
2964
  private _lastMoreRows;
2906
2965
  private _isMoreRowsResult;
2907
2966
  private _sourceRef;
2967
+ private _nextOffset;
2968
+ private _loadMoreCount;
2908
2969
  connectedCallback(): void;
2909
2970
  disconnectedCallback(): void;
2910
2971
  deepClone(): Node;
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.criteria property
6
6
 
7
+ Groovy expression to perform filters on the query server; these remain active for the life of the subscription.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.disablePolling property
6
6
 
7
+ Disables polling if set to true (data updates for the grid will not be fetched automatically).
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  disablePolling: boolean;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ REQUEST\_SERVER only. Defaults to false.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.fields property
6
6
 
7
+ 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.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  fields: string;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ DATASERVER only.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.isSnapshot property
6
6
 
7
+ Request a snapshot from the server.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  isSnapshot: boolean;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ Defaults to false.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.maxRows property
6
6
 
7
+ Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE\_ROWS messages.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  maxRows: number;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ This will not affect the number of rows displayed. Defaults to 250.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.maxView property
6
6
 
7
+ Maximum number of rows to track as part of a client "view".
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  maxView: number;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ DATASERVER only. Defaults to 1000.
18
+
@@ -89,6 +89,8 @@ string
89
89
 
90
90
  </td><td>
91
91
 
92
+ Groovy expression to perform filters on the query server; these remain active for the life of the subscription.
93
+
92
94
 
93
95
  </td></tr>
94
96
  <tr><td>
@@ -197,6 +199,8 @@ boolean
197
199
 
198
200
  </td><td>
199
201
 
202
+ Disables polling if set to true (data updates for the grid will not be fetched automatically).
203
+
200
204
 
201
205
  </td></tr>
202
206
  <tr><td>
@@ -214,6 +218,8 @@ string
214
218
 
215
219
  </td><td>
216
220
 
221
+ 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.
222
+
217
223
 
218
224
  </td></tr>
219
225
  <tr><td>
@@ -250,6 +256,8 @@ boolean
250
256
 
251
257
  </td><td>
252
258
 
259
+ Request a snapshot from the server.
260
+
253
261
 
254
262
  </td></tr>
255
263
  <tr><td>
@@ -267,6 +275,8 @@ number
267
275
 
268
276
  </td><td>
269
277
 
278
+ Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE\_ROWS messages.
279
+
270
280
 
271
281
  </td></tr>
272
282
  <tr><td>
@@ -284,6 +294,8 @@ number
284
294
 
285
295
  </td><td>
286
296
 
297
+ Maximum number of rows to track as part of a client "view".
298
+
287
299
 
288
300
  </td></tr>
289
301
  <tr><td>
@@ -301,6 +313,27 @@ boolean
301
313
 
302
314
  </td><td>
303
315
 
316
+ 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.
317
+
318
+
319
+ </td></tr>
320
+ <tr><td>
321
+
322
+ [offset](./grid-pro.genesisgriddatasourceelement.offset.md)
323
+
324
+
325
+ </td><td>
326
+
327
+
328
+ </td><td>
329
+
330
+ number
331
+
332
+
333
+ </td><td>
334
+
335
+ The offset for pagination in REQUEST\_SERVER scenarios.
336
+
304
337
 
305
338
  </td></tr>
306
339
  <tr><td>
@@ -318,6 +351,8 @@ string
318
351
 
319
352
  </td><td>
320
353
 
354
+ 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.
355
+
321
356
 
322
357
  </td></tr>
323
358
  <tr><td>
@@ -335,6 +370,8 @@ number
335
370
 
336
371
  </td><td>
337
372
 
373
+ Custom polling frequency (in milliseconds) for a Request Server resource.
374
+
338
375
 
339
376
  </td></tr>
340
377
  <tr><td>
@@ -352,6 +389,8 @@ string\[\]
352
389
 
353
390
  </td><td>
354
391
 
392
+ Array of event names that will trigger a poll when received as commit responses.
393
+
355
394
 
356
395
  </td></tr>
357
396
  <tr><td>
@@ -369,6 +408,8 @@ any
369
408
 
370
409
  </td><td>
371
410
 
411
+ Similar to fields but for Request Server scenarios. This optional parameter enables you to specify request fields, which can include wildcards.
412
+
372
413
 
373
414
  </td></tr>
374
415
  <tr><td>
@@ -405,6 +446,8 @@ string
405
446
 
406
447
  </td><td>
407
448
 
449
+ The name of the target Data Server query or Request Server requestReply.
450
+
408
451
 
409
452
  </td></tr>
410
453
  <tr><td>
@@ -441,6 +484,8 @@ boolean
441
484
 
442
485
  </td><td>
443
486
 
487
+ Option that changes the Data Server index iteration.
488
+
444
489
 
445
490
  </td></tr>
446
491
  <tr><td>
@@ -517,6 +562,8 @@ number
517
562
 
518
563
  </td><td>
519
564
 
565
+ The desired view/page you want data from.
566
+
520
567
 
521
568
  </td></tr>
522
569
  </tbody></table>
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.movingView property
6
6
 
7
+ 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.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  movingView: boolean;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ 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.
18
+
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GenesisGridDatasourceElement](./grid-pro.genesisgriddatasourceelement.md) &gt; [offset](./grid-pro.genesisgriddatasourceelement.offset.md)
4
+
5
+ ## GenesisGridDatasourceElement.offset property
6
+
7
+ The offset for pagination in REQUEST\_SERVER scenarios.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ offset: number;
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ REQUEST\_SERVER only.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.orderBy property
6
6
 
7
+ 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.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  orderBy: string;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ DATASERVER only. By default, Data Server rows are returned in order of creation (from oldest database record to newest).
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.pollingInterval property
6
6
 
7
+ Custom polling frequency (in milliseconds) for a Request Server resource.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  pollingInterval: number;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ 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.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.pollTriggerEvents property
6
6
 
7
+ Array of event names that will trigger a poll when received as commit responses.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  pollTriggerEvents: string[];
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ REQUEST\_SERVER only.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.request property
6
6
 
7
+ Similar to fields but for Request Server scenarios. This optional parameter enables you to specify request fields, which can include wildcards.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  request: any;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ REQUEST\_SERVER only.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.resourceName property
6
6
 
7
+ The name of the target Data Server query or Request Server requestReply.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  resourceName: string;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ Required attribute.
18
+
@@ -4,8 +4,15 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.reverse property
6
6
 
7
+ Option that changes the Data Server index iteration.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  reverse: boolean;
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ 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.
18
+
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## GenesisGridDatasourceElement.viewNumber property
6
6
 
7
+ The desired view/page you want data from.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -787,7 +787,6 @@ export class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_b
787
787
  clearErrors(): void;
788
788
  // (undocumented)
789
789
  connect: Connect;
790
- // (undocumented)
791
790
  criteria: string;
792
791
  // (undocumented)
793
792
  protected criteriaFromFilters: Map<string, string>;
@@ -803,9 +802,7 @@ export class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_b
803
802
  deferredColumnStates: ColumnState[];
804
803
  // (undocumented)
805
804
  deferredGridOptions: GridOptions;
806
- // (undocumented)
807
805
  disablePolling: boolean;
808
- // (undocumented)
809
806
  fields: string;
810
807
  // Warning: (ae-forgotten-export) The symbol "BaseDatasourceErrorEventDetail" needs to be exported by the entry point index.d.ts
811
808
  handleErrors(errors: string | any[], type?: BaseDatasourceErrorEventDetail['type']): void;
@@ -815,29 +812,20 @@ export class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_b
815
812
  protected initializeDatasource(options: DatasourceOptions, fetchMeta?: boolean, startStream?: boolean): Promise<boolean>;
816
813
  // (undocumented)
817
814
  get isRequestServer(): boolean;
818
- // (undocumented)
819
815
  isSnapshot: boolean;
820
- // (undocumented)
821
816
  maxRows: number;
822
- // (undocumented)
823
817
  maxView: number;
824
- // (undocumented)
825
818
  movingView: boolean;
826
- // (undocumented)
819
+ offset: number;
827
820
  orderBy: string;
828
- // (undocumented)
829
821
  pollingInterval: number;
830
- // (undocumented)
831
822
  pollTriggerEvents: string[];
832
823
  // (undocumented)
833
824
  removeFilter(fieldName: string): void;
834
- // (undocumented)
835
825
  request: any;
836
826
  requestAutoSetup: boolean;
837
- // (undocumented)
838
827
  resourceName: string;
839
828
  restartOnReconnection: boolean;
840
- // (undocumented)
841
829
  reverse: boolean;
842
830
  rowDataMapper: Function;
843
831
  // @internal
@@ -847,7 +835,6 @@ export class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_b
847
835
  setFilter(fieldName: string, newFilter: string): void;
848
836
  // (undocumented)
849
837
  protected update: BehaviorSubject<Map<string, string>>;
850
- // (undocumented)
851
838
  viewNumber: number;
852
839
  }
853
840
 
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.320.1",
4
+ "version": "14.320.2-alpha-e69dcb3.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,19 +38,19 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "14.320.1",
42
- "@genesislcap/genx": "14.320.1",
43
- "@genesislcap/rollup-builder": "14.320.1",
44
- "@genesislcap/ts-builder": "14.320.1",
45
- "@genesislcap/uvu-playwright-builder": "14.320.1",
46
- "@genesislcap/vite-builder": "14.320.1",
47
- "@genesislcap/webpack-builder": "14.320.1"
41
+ "@genesislcap/foundation-testing": "14.320.2-alpha-e69dcb3.0",
42
+ "@genesislcap/genx": "14.320.2-alpha-e69dcb3.0",
43
+ "@genesislcap/rollup-builder": "14.320.2-alpha-e69dcb3.0",
44
+ "@genesislcap/ts-builder": "14.320.2-alpha-e69dcb3.0",
45
+ "@genesislcap/uvu-playwright-builder": "14.320.2-alpha-e69dcb3.0",
46
+ "@genesislcap/vite-builder": "14.320.2-alpha-e69dcb3.0",
47
+ "@genesislcap/webpack-builder": "14.320.2-alpha-e69dcb3.0"
48
48
  },
49
49
  "dependencies": {
50
- "@genesislcap/foundation-comms": "14.320.1",
51
- "@genesislcap/foundation-logger": "14.320.1",
52
- "@genesislcap/foundation-ui": "14.320.1",
53
- "@genesislcap/foundation-utils": "14.320.1",
50
+ "@genesislcap/foundation-comms": "14.320.2-alpha-e69dcb3.0",
51
+ "@genesislcap/foundation-logger": "14.320.2-alpha-e69dcb3.0",
52
+ "@genesislcap/foundation-ui": "14.320.2-alpha-e69dcb3.0",
53
+ "@genesislcap/foundation-utils": "14.320.2-alpha-e69dcb3.0",
54
54
  "@microsoft/fast-colors": "5.3.1",
55
55
  "@microsoft/fast-components": "2.30.6",
56
56
  "@microsoft/fast-element": "1.14.0",
@@ -75,5 +75,5 @@
75
75
  "access": "public"
76
76
  },
77
77
  "customElements": "dist/custom-elements.json",
78
- "gitHead": "d54b8f34acbb69dff6b9662ee2813becdb7db1c8"
78
+ "gitHead": "6591156f074df6da6bf79baf7cf78539db372e1d"
79
79
  }