@genesislcap/grid-pro 14.323.0 → 14.324.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/README.md +1 -1
- package/dist/custom-elements.json +941 -349
- package/dist/dts/datasource/base.datasource.d.ts +64 -5
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/base.types.d.ts +5 -2
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.types.d.ts +8 -0
- package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +9 -1
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +26 -2
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts +5 -0
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts +9 -0
- 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 +61 -19
- package/dist/esm/datasource/server-side.datasource.js +32 -44
- package/dist/esm/datasource/server-side.resource-base.js +36 -38
- package/dist/esm/datasource/server-side.resource-dataserver.js +47 -1
- package/dist/esm/datasource/server-side.resource-reqrep.js +174 -39
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +40 -2
- package/dist/esm/status-bar-components/pagination.status-bar.js +29 -4
- package/dist/grid-pro.api.json +82 -21
- package/dist/grid-pro.d.ts +83 -6
- 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/grid-pro.gridproserversidedatasource.md +3 -5
- package/docs/api/grid-pro.gridproserversidedatasource.pagingmode.md +21 -0
- package/docs/api/grid-pro.md +11 -0
- package/docs/api/grid-pro.pagingmode.md +18 -0
- package/docs/api-report.md.api.md +5 -16
- package/package.json +13 -13
- package/docs/api/grid-pro.gridproserversidedatasource.params.md +0 -14
|
@@ -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;
|
|
394
|
-
|
|
395
|
-
|
|
404
|
+
/**
|
|
405
|
+
* 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.
|
|
406
|
+
* @remarks By default, rows are returned in order of creation (from oldest database record to newest).
|
|
407
|
+
*/
|
|
396
408
|
orderBy: string;
|
|
409
|
+
/**
|
|
410
|
+
* The name of the target Data Server query or Request Server requestReply.
|
|
411
|
+
* @remarks Required attribute.
|
|
412
|
+
*/
|
|
397
413
|
resourceName: string;
|
|
398
|
-
|
|
414
|
+
/**
|
|
415
|
+
* The desired view/page you want data from.
|
|
416
|
+
*/
|
|
399
417
|
viewNumber: number;
|
|
418
|
+
/**
|
|
419
|
+
* 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.
|
|
420
|
+
* @remarks DATASERVER only.
|
|
421
|
+
*/
|
|
422
|
+
fields: string;
|
|
423
|
+
/**
|
|
424
|
+
* Maximum number of rows to track as part of a client "view".
|
|
425
|
+
* @remarks DATASERVER only. Defaults to 1000.
|
|
426
|
+
*/
|
|
427
|
+
maxView: number;
|
|
428
|
+
/**
|
|
429
|
+
* 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.
|
|
430
|
+
* @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.
|
|
431
|
+
*/
|
|
432
|
+
movingView: boolean;
|
|
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
|
+
*/
|
|
437
|
+
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
|
+
*/
|
|
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,YAA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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,4 +1,5 @@
|
|
|
1
|
-
import { SocketObservable, FilteredDataServerResult, MetadataDetail, RequestServerResult } from '@genesislcap/foundation-comms';
|
|
1
|
+
import { SocketObservable, FilteredDataServerResult, MetadataDetail, RequestServerResult, DataserverParams, RequestParams } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { PagingMode } from './datasource.types';
|
|
2
3
|
/**
|
|
3
4
|
* Type definition for configuration options used for streams.
|
|
4
5
|
* @remarks
|
|
@@ -11,7 +12,7 @@ export type ServerSideDatasourceOptions = {
|
|
|
11
12
|
reloadResourceDataFunc?: (params: any) => Promise<void>;
|
|
12
13
|
errorHandlerFunc?: (message: string, type: string) => void;
|
|
13
14
|
resourceName: string;
|
|
14
|
-
resourceParams?:
|
|
15
|
+
resourceParams?: DataserverParams | RequestParams;
|
|
15
16
|
resourceIndexes?: Map<string, [string]>;
|
|
16
17
|
resourceColDefs?: MetadataDetail[];
|
|
17
18
|
maxRows?: number;
|
|
@@ -19,6 +20,8 @@ export type ServerSideDatasourceOptions = {
|
|
|
19
20
|
rowId?: string;
|
|
20
21
|
pagination?: boolean;
|
|
21
22
|
zeroBasedViewNumber?: boolean;
|
|
23
|
+
pagingMode?: PagingMode | undefined;
|
|
24
|
+
criteriaOnlyRequest?: boolean;
|
|
22
25
|
};
|
|
23
26
|
/**
|
|
24
27
|
* Base datasource error event names.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mapp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C;CAC/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EACA,YAAY,GACZ,qBAAqB,GACrB,eAAe,GACf,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -5,4 +5,12 @@
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export type DatasourceType = 'client' | 'server';
|
|
8
|
+
/**
|
|
9
|
+
* Available paging modes for server-side datasources
|
|
10
|
+
* @remarks - This type defines the paging approach used for server-side data fetching
|
|
11
|
+
* - 'viewBased': Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
12
|
+
* - 'offsetBased': Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type PagingMode = 'viewBased' | 'offsetBased';
|
|
8
16
|
//# sourceMappingURL=datasource.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC"}
|
|
@@ -2,6 +2,7 @@ import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
|
2
2
|
import { IServerSideRowModel, PaginationChangedEvent, ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
3
3
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
4
4
|
import { GridProBaseDatasource } from './base.datasource';
|
|
5
|
+
import { PagingMode } from './datasource.types';
|
|
5
6
|
declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
6
7
|
#_container: import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
7
8
|
#_latestTokenCode: string;
|
|
@@ -391,6 +392,14 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
391
392
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
392
393
|
*/
|
|
393
394
|
liveUpdates: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* The paging mode to use for data fetching.
|
|
397
|
+
* @remarks
|
|
398
|
+
* - "viewBased": Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
399
|
+
* - "offsetBased": Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
400
|
+
* - undefined: Auto-determines based on criteriaOnlyRequest availability
|
|
401
|
+
*/
|
|
402
|
+
pagingMode: PagingMode | undefined;
|
|
394
403
|
request: any;
|
|
395
404
|
private indexes;
|
|
396
405
|
private ssrmDatasource;
|
|
@@ -423,7 +432,6 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
423
432
|
restart(): Promise<void>;
|
|
424
433
|
private clearRowData;
|
|
425
434
|
private getResourceIndexes;
|
|
426
|
-
get params(): any;
|
|
427
435
|
get rowModel(): IServerSideRowModel;
|
|
428
436
|
private createReqRepRequest;
|
|
429
437
|
private createDataserverStream;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAA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,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;IAK9C,QAAQ;CAGlB"}
|
|
@@ -2,13 +2,14 @@ import { IServerSideDatasource, LoadSuccessParams, SetFilterModel, SortModelItem
|
|
|
2
2
|
import { Auth, Connect, MetadataDetail, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { UUID } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { ServerSideDatasourceOptions } from './base.types';
|
|
5
|
+
import { PagingMode } from './datasource.types';
|
|
5
6
|
/**
|
|
6
7
|
* Base class for server-side resource datasources used in Grid Pro SSRM implementations.
|
|
7
8
|
* Provides common logic for filtering, sorting, and pagination.
|
|
8
9
|
*
|
|
9
10
|
* @beta
|
|
10
11
|
*/
|
|
11
|
-
export declare class BaseServerSideDatasource implements IServerSideDatasource {
|
|
12
|
+
export declare abstract class BaseServerSideDatasource implements IServerSideDatasource {
|
|
12
13
|
auth: Auth;
|
|
13
14
|
connect: Connect;
|
|
14
15
|
uuid: UUID;
|
|
@@ -24,6 +25,8 @@ export declare class BaseServerSideDatasource implements IServerSideDatasource {
|
|
|
24
25
|
protected maxView: number;
|
|
25
26
|
protected pagination: boolean;
|
|
26
27
|
protected zeroBasedViewNumber: boolean;
|
|
28
|
+
protected pagingMode?: PagingMode | undefined;
|
|
29
|
+
protected criteriaOnlyRequest?: boolean;
|
|
27
30
|
sourceRef: string;
|
|
28
31
|
isNewPageSize: boolean;
|
|
29
32
|
lastSuccessRowData: LoadSuccessParams;
|
|
@@ -45,6 +48,23 @@ export declare class BaseServerSideDatasource implements IServerSideDatasource {
|
|
|
45
48
|
protected currentSortModel: SortModelItem[];
|
|
46
49
|
constructor(options: ServerSideDatasourceOptions);
|
|
47
50
|
getRows(params: IServerSideGetRowsParams<any, any>): void;
|
|
51
|
+
/**
|
|
52
|
+
* Handles filtering setup for server-side datasources.
|
|
53
|
+
* Common logic used by both dataserver and req-rep implementations.
|
|
54
|
+
*/
|
|
55
|
+
protected setupFiltering(params: IServerSideGetRowsParams): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Handles sorting setup. Must be implemented by each datasource type.
|
|
58
|
+
* Different datasource types have different sorting requirements:
|
|
59
|
+
* - Dataserver: Requires indexed columns
|
|
60
|
+
* - Req-rep: Can sort by any column
|
|
61
|
+
*/
|
|
62
|
+
protected abstract setupSorting(params: IServerSideGetRowsParams): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Legacy method that combines filtering and sorting.
|
|
65
|
+
* Kept for backward compatibility. New implementations should use setupFiltering and setupSorting directly.
|
|
66
|
+
* @deprecated Use setupFiltering() and setupSorting() separately instead
|
|
67
|
+
*/
|
|
48
68
|
protected setupFilteringAndSorting(params: IServerSideGetRowsParams): Promise<void>;
|
|
49
69
|
destroy?(): void;
|
|
50
70
|
protected refreshDatasource(params: IServerSideGetRowsParams): Promise<void>;
|
|
@@ -55,8 +75,12 @@ export declare class BaseServerSideDatasource implements IServerSideDatasource {
|
|
|
55
75
|
protected buildCriteriaMatchFromFilters(): string;
|
|
56
76
|
protected criteriaFromFilters(): string[];
|
|
57
77
|
protected getFiltersByType(filterType: string): string[];
|
|
58
|
-
protected getPageNumber(start: number, recordsPerPage: number, totalRecords
|
|
78
|
+
protected getPageNumber(start: number, recordsPerPage: number, totalRecords?: number, zeroBasedViewNumber?: boolean): number;
|
|
59
79
|
protected getCorrectRowCount(params: IServerSideGetRowsParams<any, any>): any;
|
|
60
80
|
protected get isNotFirstViewNumber(): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Determines the effective paging mode based on criteriaOnlyRequest availability and user settings
|
|
83
|
+
*/
|
|
84
|
+
protected getEffectivePagingMode(): PagingMode;
|
|
61
85
|
}
|
|
62
86
|
//# sourceMappingURL=server-side.resource-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EACP,cAAc,EAEd,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EACP,cAAc,EAEd,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;GAKG;AACH,8BAAsB,wBAAyB,YAAW,qBAAqB;IACvE,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IAElB,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;IAEhD,sBAAsB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1D,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAC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AAG,OAAO,CAAC,IAAI,CAAC;IAKzF,OAAO,CAAC,IAAI,IAAI;cAWA,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IASlF,SAAS,CAAC,6BAA6B,CAAC,GAAG,KAAA,EAAE,WAAW,KAAA;;;;IAWxD,SAAS,CAAC,6BAA6B,IAAI,MAAM;IAkBjD,SAAS,CAAC,mBAAmB,IAAI,MAAM,EAAE;IAoHzC,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM;IAM7C,SAAS,CAAC,aAAa,CACrB,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,YAAY,CAAC,EAAE,MAAM,EACrB,mBAAmB,UAAO;IAS5B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC;IAiCvE,SAAS,KAAK,oBAAoB,IAAI,OAAO,CAE5C;IAED;;OAEG;IACH,SAAS,CAAC,sBAAsB,IAAI,UAAU;CAgB/C"}
|
|
@@ -14,6 +14,11 @@ export declare class DataserverServerSideDatasource extends BaseServerSideDataso
|
|
|
14
14
|
protected refreshDatasource(params: IServerSideGetRowsParams): Promise<void>;
|
|
15
15
|
getRows(params: IServerSideGetRowsParams): Promise<void>;
|
|
16
16
|
private applyServerSideData;
|
|
17
|
+
/**
|
|
18
|
+
* Dataserver-specific sorting setup that validates columns are part of an index.
|
|
19
|
+
* This is required because dataserver needs indexed columns for efficient sorting.
|
|
20
|
+
*/
|
|
21
|
+
protected setupSorting(params: IServerSideGetRowsParams): Promise<void>;
|
|
17
22
|
destroy(): Promise<void>;
|
|
18
23
|
private handleCurrentStreamLoad;
|
|
19
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;GAGG;AACH,qBAAa,8BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,4BAA4B,EAAE,kBAAkB,CAAC;IACjD,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;gBAE7C,OAAO,EAAE,2BAA2B;cAKhC,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO5E,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAqE9C,OAAO,CAAC,mBAAmB;IAkD3B;;;OAGG;cACa,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqDvE,OAAO;IAOb,OAAO,CAAC,uBAAuB;CAYhC"}
|
|
@@ -8,10 +8,19 @@ import { BaseServerSideDatasource } from './server-side.resource-base';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class ReqRepServerSideDatasource extends BaseServerSideDatasource implements IServerSideDatasource {
|
|
10
10
|
createReqRepRequestFunc: (existingParams?: any) => Promise<RequestServerResult>;
|
|
11
|
+
private discoveredTotalRowCount;
|
|
12
|
+
private currentNextOffset;
|
|
11
13
|
constructor(options: ServerSideDatasourceOptions);
|
|
12
14
|
getRows(params: IServerSideGetRowsParams): Promise<void>;
|
|
13
15
|
private applyServerSideData;
|
|
14
16
|
protected getCorrectRowCount(params: IServerSideGetRowsParams): number;
|
|
15
17
|
private handleCurrentStreamLoad;
|
|
18
|
+
/**
|
|
19
|
+
* Req-rep specific sorting setup that allows any column to be sorted
|
|
20
|
+
* (unlike dataserver which requires indexed columns only)
|
|
21
|
+
*/
|
|
22
|
+
protected setupSorting(params: IServerSideGetRowsParams): Promise<void>;
|
|
23
|
+
protected refreshDatasource(params: IServerSideGetRowsParams): Promise<void>;
|
|
24
|
+
private buildRequestDetails;
|
|
16
25
|
}
|
|
17
26
|
//# sourceMappingURL=server-side.resource-reqrep.d.ts.map
|
|
@@ -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;
|
|
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;AAE3D,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;IAGhF,OAAO,CAAC,uBAAuB,CAAuB;IACtD,OAAO,CAAC,iBAAiB,CAAa;gBAE1B,OAAO,EAAE,2BAA2B;IAmB1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAiF9C,OAAO,CAAC,mBAAmB;IAsF3B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IA0BtE,OAAO,CAAC,uBAAuB;IAoB/B;;;OAGG;cACa,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;cA+B7D,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlF,OAAO,CAAC,mBAAmB;CAoB5B"}
|
|
@@ -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,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,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;CA+BlB"}
|
|
@@ -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,19 +114,20 @@ 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,
|
|
83
|
-
|
|
120
|
+
orderBy: this.orderBy,
|
|
121
|
+
resourceName: this.resourceName,
|
|
122
|
+
viewNumber: +this.viewNumber,
|
|
84
123
|
// DATASERVER only
|
|
85
124
|
fields: this.fields,
|
|
86
125
|
maxView: +this.maxView,
|
|
87
126
|
movingView: this.movingView,
|
|
88
|
-
orderBy: this.orderBy,
|
|
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,42 +288,45 @@ __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);
|
|
261
|
-
__decorate([
|
|
262
|
-
attr({ attribute: 'max-view' })
|
|
263
|
-
], GenesisGridDatasourceElement.prototype, "maxView", void 0);
|
|
264
|
-
__decorate([
|
|
265
|
-
attr({ mode: 'boolean', attribute: 'moving-view' })
|
|
266
|
-
], GenesisGridDatasourceElement.prototype, "movingView", void 0);
|
|
267
297
|
__decorate([
|
|
268
298
|
attr({ attribute: 'order-by' })
|
|
269
299
|
], GenesisGridDatasourceElement.prototype, "orderBy", void 0);
|
|
270
300
|
__decorate([
|
|
271
301
|
attr({ attribute: 'resource-name' })
|
|
272
302
|
], GenesisGridDatasourceElement.prototype, "resourceName", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
attr({ attribute: 'view-number' })
|
|
305
|
+
], GenesisGridDatasourceElement.prototype, "viewNumber", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
attr
|
|
308
|
+
], GenesisGridDatasourceElement.prototype, "fields", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
attr({ attribute: 'max-view' })
|
|
311
|
+
], GenesisGridDatasourceElement.prototype, "maxView", void 0);
|
|
312
|
+
__decorate([
|
|
313
|
+
attr({ mode: 'boolean', attribute: 'moving-view' })
|
|
314
|
+
], GenesisGridDatasourceElement.prototype, "movingView", 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);
|