@genesislcap/grid-pro 14.105.0 → 14.106.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 +1003 -536
- package/dist/dts/datasource/base.datasource.d.ts +18 -0
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -0
- package/dist/dts/datasource/server-side.datasource.d.ts +3 -12
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +8 -17
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +6 -5
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +51 -0
- package/dist/esm/datasource/server-side.datasource.js +12 -53
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +5 -44
- package/dist/esm/grid-pro.js +8 -7
- package/dist/grid-pro.api.json +5 -372
- package/dist/grid-pro.d.ts +28 -29
- package/docs/api/grid-pro.gridpro.gridprodatasource.md +11 -0
- package/docs/api/grid-pro.gridpro.md +1 -1
- package/docs/api/grid-pro.gridprogenesisdatasource.md +0 -12
- package/docs/api-report.md +5 -45
- package/package.json +8 -8
- package/docs/api/grid-pro.gridpro.gridprogenesisdatasource.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.connect.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.criteria.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.deferredcolumnstates.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.deferredgridoptions.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.fields.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.issnapshot.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.maxrows.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.maxview.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.movingview.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.orderby.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.resourcename.md +0 -11
- package/docs/api/grid-pro.gridprogenesisdatasource.reverse.md +0 -11
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ColumnState, GridOptions } from '@ag-grid-community/core';
|
|
2
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
export declare class GridProBaseDatasource extends FoundationElement {
|
|
5
|
+
connect: Connect;
|
|
6
|
+
deferredGridOptions: GridOptions;
|
|
7
|
+
deferredColumnStates: ColumnState[];
|
|
8
|
+
criteria: string;
|
|
9
|
+
fields: string;
|
|
10
|
+
isSnapshot: boolean;
|
|
11
|
+
maxRows: number;
|
|
12
|
+
maxView: number;
|
|
13
|
+
movingView: boolean;
|
|
14
|
+
orderBy: string;
|
|
15
|
+
resourceName: string;
|
|
16
|
+
reverse: boolean;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=base.datasource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,qBAAa,qBAAsB,SAAQ,iBAAiB;IACjD,OAAO,EAAG,OAAO,CAAC;IAEf,mBAAmB,EAAE,WAAW,CAAC;IACjC,oBAAoB,EAAE,WAAW,EAAE,CAAC;IAE1C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;IAC/B,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IAChC,OAAO,UAAS;CAC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IServerSideDatasource, IServerSideGetRowsParams } from '@ag-grid-community/core';
|
|
2
2
|
import { Auth, Connect, FilteredDataServerResult, MetadataDetail, SocketObservable } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
3
|
+
import { GridProBaseDatasource } from './base.datasource';
|
|
4
4
|
/**
|
|
5
5
|
* Type definition for configuration options used for streams.
|
|
6
6
|
* @remarks
|
|
@@ -387,32 +387,23 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
387
387
|
tabIndex: number;
|
|
388
388
|
blur(): void;
|
|
389
389
|
focus(options?: FocusOptions): void;
|
|
390
|
-
}) & typeof
|
|
390
|
+
}) & typeof GridProBaseDatasource;
|
|
391
391
|
/**
|
|
392
392
|
* A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
393
393
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
394
394
|
* @alpha
|
|
395
395
|
*/
|
|
396
396
|
export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
|
|
397
|
-
connect: Connect;
|
|
398
|
-
criteria: string;
|
|
399
397
|
criteriaChanged(oldCriteria: string, newCriteria: string): void;
|
|
400
|
-
fields: string;
|
|
401
|
-
isSnapshot: boolean;
|
|
402
|
-
maxRows: number;
|
|
403
|
-
maxView: number;
|
|
404
|
-
movingView: boolean;
|
|
405
|
-
orderBy: string;
|
|
406
|
-
resourceName: string;
|
|
407
398
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
408
399
|
pagination: boolean;
|
|
409
400
|
rowId: string;
|
|
410
|
-
reverse: boolean;
|
|
411
401
|
private indexes;
|
|
412
402
|
private dataserverStream;
|
|
413
403
|
private originalFieldDef;
|
|
414
404
|
connectedCallback(): void;
|
|
415
405
|
disconnectedCallback(): void;
|
|
406
|
+
deepClone(): Node;
|
|
416
407
|
init(): void;
|
|
417
408
|
reset(): void;
|
|
418
409
|
restart(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EAKzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EAKzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAKP,wBAAwB,EAIxB,cAAc,EAEd,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AASvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAO1D;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAID;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,gCAAqC;IACpF,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAWxD,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,UAAU,UAAS;IACf,KAAK,SAAa;IAEjD,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,IAAI;IAiEJ,KAAK;IAOL,OAAO;IAKP,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA2BT;YAEa,sBAAsB;IAapC,OAAO,CAAC,eAAe;CA4DxB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
1
|
+
import { Auth, Datasource } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
4
3
|
/**
|
|
5
4
|
* The operation type for the {@link @genesislcap/grid-pro#GridProGenesisDatasource.mapTransaction} method.
|
|
6
5
|
* @internal
|
|
@@ -34,7 +33,11 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
34
33
|
draggable: boolean;
|
|
35
34
|
hidden: boolean;
|
|
36
35
|
inert: boolean;
|
|
37
|
-
innerText: string;
|
|
36
|
+
innerText: string; /**
|
|
37
|
+
* Initializes the datasource.
|
|
38
|
+
* @public
|
|
39
|
+
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
40
|
+
*/
|
|
38
41
|
lang: string;
|
|
39
42
|
readonly offsetHeight: number;
|
|
40
43
|
readonly offsetLeft: number;
|
|
@@ -334,7 +337,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
334
337
|
tabIndex: number;
|
|
335
338
|
blur(): void;
|
|
336
339
|
focus(options?: FocusOptions): void;
|
|
337
|
-
}) & typeof
|
|
340
|
+
}) & typeof GridProBaseDatasource;
|
|
338
341
|
/**
|
|
339
342
|
* The Genesis Datasource element, for CSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
340
343
|
* @remarks Only supports Client-Side Row Model.
|
|
@@ -342,24 +345,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
342
345
|
*/
|
|
343
346
|
export declare class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
344
347
|
auth: Auth;
|
|
345
|
-
connect: Connect;
|
|
346
348
|
datasource: Datasource;
|
|
347
|
-
deferredGridOptions: GridOptions;
|
|
348
|
-
deferredColumnStates: ColumnState[];
|
|
349
|
-
criteria: string;
|
|
350
349
|
criteriaChanged(oldCriteria: string, newCriteria: string): void;
|
|
351
|
-
fields: string;
|
|
352
|
-
isSnapshot: boolean;
|
|
353
|
-
maxRows: number;
|
|
354
|
-
maxView: number;
|
|
355
|
-
movingView: boolean;
|
|
356
|
-
orderBy: string;
|
|
357
350
|
pollingInterval: number;
|
|
358
351
|
disablePolling: boolean;
|
|
359
352
|
request: any;
|
|
360
|
-
resourceName: string;
|
|
361
353
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
362
|
-
reverse: boolean;
|
|
363
354
|
/**
|
|
364
355
|
* Attribute to set an unique identifier for the row.
|
|
365
356
|
*
|
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAgBtE;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;uBA0HC;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5HL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAGpC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASf,eAAe,EAAE,MAAM,CACf;IACQ,cAAc,EAAE,OAAO,CAAS;IAC7E,OAAO,EAAE,GAAG,CAAC;IAEzB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKtD;;;;;OAKG;IAC4B,SAAS,MAAC;IAEwB,qBAAqB,UAAS;IAE/F;;OAEG;IACS,aAAa,EAAE,QAAQ,CAAC;IAEpC,OAAO,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Y,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ColDef, ColumnApi, ColumnState, GridApi, GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { Grid } from '@ag-grid-community/core';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
-
import {
|
|
4
|
+
import { GridProBaseDatasource } from './datasource/base.datasource';
|
|
5
5
|
import { GridComponents } from './grid-pro.types';
|
|
6
6
|
/**
|
|
7
7
|
* Convert string values from 'camelCase' to 'kebab-case'
|
|
@@ -25,6 +25,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
25
25
|
connectedCallback(): void;
|
|
26
26
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
27
27
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
28
|
+
/**
|
|
29
|
+
* The key to use for persisting the column state in local storage.
|
|
30
|
+
*/
|
|
28
31
|
disconnectedCallback(): void;
|
|
29
32
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
30
33
|
accessKey: string;
|
|
@@ -131,9 +134,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
131
134
|
nodeValue: string;
|
|
132
135
|
readonly parentElement: HTMLElement;
|
|
133
136
|
readonly parentNode: ParentNode;
|
|
134
|
-
readonly previousSibling: ChildNode;
|
|
135
|
-
* @public
|
|
136
|
-
*/
|
|
137
|
+
readonly previousSibling: ChildNode;
|
|
137
138
|
textContent: string;
|
|
138
139
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
139
140
|
compareDocumentPosition(other: Node): number;
|
|
@@ -447,7 +448,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
447
448
|
* @public
|
|
448
449
|
*/
|
|
449
450
|
get gridOptions(): GridOptions;
|
|
450
|
-
get
|
|
451
|
+
get gridProDatasource(): GridProBaseDatasource;
|
|
451
452
|
set gridOptions(options: GridOptions);
|
|
452
453
|
private enableFlashingRows;
|
|
453
454
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQ/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAMrE,OAAO,EAKL,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAW1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;IA6E5D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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orate } from "tslib";
|
|
2
|
+
import { DatasourceDefaults } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
|
+
import { attr, observable } from '@microsoft/fast-element';
|
|
5
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
|
+
export class GridProBaseDatasource extends FoundationElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.isSnapshot = false;
|
|
10
|
+
this.maxRows = DatasourceDefaults.MAX_ROWS_250;
|
|
11
|
+
this.maxView = DatasourceDefaults.MAX_VIEW_1000;
|
|
12
|
+
this.movingView = false;
|
|
13
|
+
this.reverse = false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
Connect
|
|
18
|
+
], GridProBaseDatasource.prototype, "connect", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
observable
|
|
21
|
+
], GridProBaseDatasource.prototype, "deferredGridOptions", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
observable
|
|
24
|
+
], GridProBaseDatasource.prototype, "deferredColumnStates", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
attr
|
|
27
|
+
], GridProBaseDatasource.prototype, "criteria", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
attr
|
|
30
|
+
], GridProBaseDatasource.prototype, "fields", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
attr({ mode: 'boolean', attribute: 'is-snapshot' })
|
|
33
|
+
], GridProBaseDatasource.prototype, "isSnapshot", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
attr({ attribute: 'max-rows' })
|
|
36
|
+
], GridProBaseDatasource.prototype, "maxRows", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
attr({ attribute: 'max-view' })
|
|
39
|
+
], GridProBaseDatasource.prototype, "maxView", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
attr({ mode: 'boolean', attribute: 'moving-view' })
|
|
42
|
+
], GridProBaseDatasource.prototype, "movingView", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
attr({ attribute: 'order-by' })
|
|
45
|
+
], GridProBaseDatasource.prototype, "orderBy", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
attr({ attribute: 'resource-name' })
|
|
48
|
+
], GridProBaseDatasource.prototype, "resourceName", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
attr({ mode: 'boolean' })
|
|
51
|
+
], GridProBaseDatasource.prototype, "reverse", void 0);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth, Connect, dataServerResultFilter,
|
|
2
|
+
import { Auth, Connect, dataServerResultFilter, extractFieldDefinitions, FieldTypeEnum, MessageType, normaliseCriteria, toFieldMetadata, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { attr, customElement, DOM } from '@microsoft/fast-element';
|
|
5
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
5
|
import { take } from 'rxjs/operators';
|
|
7
6
|
import { dateTimeValueFormatter, dateValueFormatter } from '../grid-pro.definitions';
|
|
8
7
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
9
8
|
import { logger } from '../utils';
|
|
9
|
+
import { GridProBaseDatasource } from './base.datasource';
|
|
10
10
|
import { getColumnType, getFilterByFieldType, getFilterParamsByFieldType, } from './server-side.grid-definitions';
|
|
11
11
|
/**
|
|
12
12
|
* The IServerSideDatasource implementation, used for SSRM (Server-Side Row Model) in the grid.
|
|
@@ -292,16 +292,11 @@ const criteriaDelimiter = ';';
|
|
|
292
292
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
293
293
|
* @alpha
|
|
294
294
|
*/
|
|
295
|
-
let GridProServerSideDatasource = class GridProServerSideDatasource extends LifecycleMixin(
|
|
295
|
+
let GridProServerSideDatasource = class GridProServerSideDatasource extends LifecycleMixin(GridProBaseDatasource) {
|
|
296
296
|
constructor() {
|
|
297
297
|
super(...arguments);
|
|
298
|
-
this.isSnapshot = false;
|
|
299
|
-
this.maxRows = DatasourceDefaults.MAX_ROWS_250;
|
|
300
|
-
this.maxView = DatasourceDefaults.MAX_VIEW_1000;
|
|
301
|
-
this.movingView = true;
|
|
302
298
|
this.pagination = false;
|
|
303
299
|
this.rowId = 'ROW_REF';
|
|
304
|
-
this.reverse = false;
|
|
305
300
|
}
|
|
306
301
|
criteriaChanged(oldCriteria, newCriteria) {
|
|
307
302
|
const startingCriteria = !oldCriteria && newCriteria;
|
|
@@ -335,30 +330,24 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
335
330
|
this.reset();
|
|
336
331
|
});
|
|
337
332
|
}
|
|
333
|
+
deepClone() {
|
|
334
|
+
const copy = super.deepClone();
|
|
335
|
+
copy.deferredGridOptions = structuredClone(this.deferredGridOptions);
|
|
336
|
+
copy.deferredColumnStates = structuredClone(this.deferredColumnStates);
|
|
337
|
+
return copy;
|
|
338
|
+
}
|
|
338
339
|
init() {
|
|
339
340
|
if (this.agGrid && this.resourceName && this.connect.isConnected) {
|
|
340
|
-
this.agGrid.gridOptions = {
|
|
341
|
-
getRowId: (params) => {
|
|
341
|
+
this.agGrid.gridOptions = Object.assign({ getRowId: (params) => {
|
|
342
342
|
if (!params.data) {
|
|
343
343
|
return null;
|
|
344
344
|
}
|
|
345
345
|
return params.data[this.rowId];
|
|
346
|
-
},
|
|
347
|
-
cacheBlockSize: this.maxRows,
|
|
348
|
-
defaultColDef: {
|
|
346
|
+
}, cacheBlockSize: this.maxRows, defaultColDef: {
|
|
349
347
|
filter: true,
|
|
350
348
|
resizable: true,
|
|
351
349
|
sortable: true,
|
|
352
|
-
},
|
|
353
|
-
pagination: this.pagination,
|
|
354
|
-
paginationPageSize: this.maxRows,
|
|
355
|
-
rowBuffer: 0,
|
|
356
|
-
rowModelType: 'serverSide',
|
|
357
|
-
suppressServerSideInfiniteScroll: false,
|
|
358
|
-
suppressMultiSort: true,
|
|
359
|
-
onFilterChanged: (params) => { },
|
|
360
|
-
onSortChanged: (params) => { }, // TODO: confirm FUI-512
|
|
361
|
-
};
|
|
350
|
+
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.deferredGridOptions);
|
|
362
351
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
363
352
|
const meta = yield this.connect
|
|
364
353
|
.getMetadata(this.resourceName)
|
|
@@ -489,42 +478,12 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
489
478
|
return colDefsMergedWithTemplateDefs;
|
|
490
479
|
}
|
|
491
480
|
};
|
|
492
|
-
__decorate([
|
|
493
|
-
Connect
|
|
494
|
-
], GridProServerSideDatasource.prototype, "connect", void 0);
|
|
495
|
-
__decorate([
|
|
496
|
-
attr
|
|
497
|
-
], GridProServerSideDatasource.prototype, "criteria", void 0);
|
|
498
|
-
__decorate([
|
|
499
|
-
attr
|
|
500
|
-
], GridProServerSideDatasource.prototype, "fields", void 0);
|
|
501
|
-
__decorate([
|
|
502
|
-
attr({ mode: 'boolean', attribute: 'is-snapshot' })
|
|
503
|
-
], GridProServerSideDatasource.prototype, "isSnapshot", void 0);
|
|
504
|
-
__decorate([
|
|
505
|
-
attr({ attribute: 'max-rows' })
|
|
506
|
-
], GridProServerSideDatasource.prototype, "maxRows", void 0);
|
|
507
|
-
__decorate([
|
|
508
|
-
attr({ attribute: 'max-view' })
|
|
509
|
-
], GridProServerSideDatasource.prototype, "maxView", void 0);
|
|
510
|
-
__decorate([
|
|
511
|
-
attr({ attribute: 'moving-view' })
|
|
512
|
-
], GridProServerSideDatasource.prototype, "movingView", void 0);
|
|
513
|
-
__decorate([
|
|
514
|
-
attr({ attribute: 'order-by' })
|
|
515
|
-
], GridProServerSideDatasource.prototype, "orderBy", void 0);
|
|
516
|
-
__decorate([
|
|
517
|
-
attr({ attribute: 'resource-name' })
|
|
518
|
-
], GridProServerSideDatasource.prototype, "resourceName", void 0);
|
|
519
481
|
__decorate([
|
|
520
482
|
attr({ mode: 'boolean' })
|
|
521
483
|
], GridProServerSideDatasource.prototype, "pagination", void 0);
|
|
522
484
|
__decorate([
|
|
523
485
|
attr({ attribute: 'row-id' })
|
|
524
486
|
], GridProServerSideDatasource.prototype, "rowId", void 0);
|
|
525
|
-
__decorate([
|
|
526
|
-
attr({ mode: 'boolean' })
|
|
527
|
-
], GridProServerSideDatasource.prototype, "reverse", void 0);
|
|
528
487
|
GridProServerSideDatasource = __decorate([
|
|
529
488
|
customElement({
|
|
530
489
|
name: 'grid-pro-server-side-datasource',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth,
|
|
2
|
+
import { Auth, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, ResourceType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { DOM, attr, customElement, observable } from '@microsoft/fast-element';
|
|
5
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
5
|
import { BehaviorSubject } from 'rxjs';
|
|
7
6
|
import { debounceTime, skip, tap } from 'rxjs/operators';
|
|
7
|
+
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
8
8
|
import { dateTimeValueFormatter, dateValueFormatter, getFilterParamsByFieldType, } from '../grid-pro.definitions';
|
|
9
9
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
10
10
|
import { logger } from '../utils/logger';
|
|
@@ -27,16 +27,11 @@ export var OperationType;
|
|
|
27
27
|
* @remarks Only supports Client-Side Row Model.
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleMixin(
|
|
30
|
+
let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleMixin(GridProBaseDatasource) {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
33
|
-
this.isSnapshot = false;
|
|
34
|
-
this.maxRows = DatasourceDefaults.MAX_ROWS_250;
|
|
35
|
-
this.maxView = DatasourceDefaults.MAX_VIEW_1000;
|
|
36
|
-
this.movingView = false;
|
|
37
33
|
this.pollingInterval = DatasourceDefaults.REQ_REP_POLLING_INTERVAL_MS;
|
|
38
34
|
this.disablePolling = false;
|
|
39
|
-
this.reverse = false;
|
|
40
35
|
this.restartOnReconnection = false;
|
|
41
36
|
this.isRequestServer = false;
|
|
42
37
|
this.requiresFullRowDataAndColDefs = true;
|
|
@@ -45,6 +40,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
45
40
|
this.criteriaFromFilters = new Map();
|
|
46
41
|
this.update = new BehaviorSubject(new Map());
|
|
47
42
|
}
|
|
43
|
+
// DatasourceOptions
|
|
48
44
|
criteriaChanged(oldCriteria, newCriteria) {
|
|
49
45
|
const criteriaIsNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
|
|
50
46
|
if (this.datasource.initialized && criteriaIsNotDuplicate) {
|
|
@@ -89,6 +85,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
89
85
|
deepClone() {
|
|
90
86
|
const copy = super.deepClone();
|
|
91
87
|
copy.deferredGridOptions = structuredClone(this.deferredGridOptions);
|
|
88
|
+
copy.deferredColumnStates = structuredClone(this.deferredColumnStates);
|
|
92
89
|
copy.request = structuredClone(this.request);
|
|
93
90
|
return copy;
|
|
94
91
|
}
|
|
@@ -507,39 +504,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
507
504
|
__decorate([
|
|
508
505
|
Auth
|
|
509
506
|
], GridProGenesisDatasource.prototype, "auth", void 0);
|
|
510
|
-
__decorate([
|
|
511
|
-
Connect
|
|
512
|
-
], GridProGenesisDatasource.prototype, "connect", void 0);
|
|
513
507
|
__decorate([
|
|
514
508
|
Datasource
|
|
515
509
|
], GridProGenesisDatasource.prototype, "datasource", void 0);
|
|
516
|
-
__decorate([
|
|
517
|
-
observable
|
|
518
|
-
], GridProGenesisDatasource.prototype, "deferredGridOptions", void 0);
|
|
519
|
-
__decorate([
|
|
520
|
-
observable
|
|
521
|
-
], GridProGenesisDatasource.prototype, "deferredColumnStates", void 0);
|
|
522
|
-
__decorate([
|
|
523
|
-
attr
|
|
524
|
-
], GridProGenesisDatasource.prototype, "criteria", void 0);
|
|
525
|
-
__decorate([
|
|
526
|
-
attr
|
|
527
|
-
], GridProGenesisDatasource.prototype, "fields", void 0);
|
|
528
|
-
__decorate([
|
|
529
|
-
attr({ mode: 'boolean', attribute: 'is-snapshot' })
|
|
530
|
-
], GridProGenesisDatasource.prototype, "isSnapshot", void 0);
|
|
531
|
-
__decorate([
|
|
532
|
-
attr({ attribute: 'max-rows' })
|
|
533
|
-
], GridProGenesisDatasource.prototype, "maxRows", void 0);
|
|
534
|
-
__decorate([
|
|
535
|
-
attr({ attribute: 'max-view' })
|
|
536
|
-
], GridProGenesisDatasource.prototype, "maxView", void 0);
|
|
537
|
-
__decorate([
|
|
538
|
-
attr({ mode: 'boolean', attribute: 'moving-view' })
|
|
539
|
-
], GridProGenesisDatasource.prototype, "movingView", void 0);
|
|
540
|
-
__decorate([
|
|
541
|
-
attr({ attribute: 'order-by' })
|
|
542
|
-
], GridProGenesisDatasource.prototype, "orderBy", void 0);
|
|
543
510
|
__decorate([
|
|
544
511
|
attr({ attribute: 'polling-interval' })
|
|
545
512
|
], GridProGenesisDatasource.prototype, "pollingInterval", void 0);
|
|
@@ -549,12 +516,6 @@ __decorate([
|
|
|
549
516
|
__decorate([
|
|
550
517
|
observable
|
|
551
518
|
], GridProGenesisDatasource.prototype, "request", void 0);
|
|
552
|
-
__decorate([
|
|
553
|
-
attr({ attribute: 'resource-name' })
|
|
554
|
-
], GridProGenesisDatasource.prototype, "resourceName", void 0);
|
|
555
|
-
__decorate([
|
|
556
|
-
attr({ mode: 'boolean' })
|
|
557
|
-
], GridProGenesisDatasource.prototype, "reverse", void 0);
|
|
558
519
|
__decorate([
|
|
559
520
|
attr({ attribute: 'row-id' })
|
|
560
521
|
], GridProGenesisDatasource.prototype, "rowIdAttr", void 0);
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -234,10 +234,10 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
234
234
|
get gridOptions() {
|
|
235
235
|
return this.agGridOptions;
|
|
236
236
|
}
|
|
237
|
-
get
|
|
238
|
-
// TODO: add support for server-side datasource - needed for column state restore flow
|
|
237
|
+
get gridProDatasource() {
|
|
239
238
|
return (this.querySelector('grid-pro-genesis-datasource') ||
|
|
240
|
-
this.querySelector('grid-pro-client-side-datasource')
|
|
239
|
+
this.querySelector('grid-pro-client-side-datasource') ||
|
|
240
|
+
this.querySelector('grid-pro-server-side-datasource'));
|
|
241
241
|
}
|
|
242
242
|
set gridOptions(options) {
|
|
243
243
|
const globalEventListener = this.globalEventListener.bind(this);
|
|
@@ -272,7 +272,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
272
272
|
onFirstDataRendered(event);
|
|
273
273
|
}
|
|
274
274
|
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
275
|
-
if (this.
|
|
275
|
+
if (this.gridProDatasource) {
|
|
276
276
|
derivedOptions.columnDefs = columnDefs;
|
|
277
277
|
}
|
|
278
278
|
else {
|
|
@@ -351,13 +351,14 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
351
351
|
? []
|
|
352
352
|
: columnDefinitionsFromMetadata.filter((g) => !templateColumnKeys.includes(g.field))),
|
|
353
353
|
];
|
|
354
|
-
if (this.
|
|
354
|
+
if (this.gridProDatasource && deferredColumnDefsOrState) {
|
|
355
|
+
debugger;
|
|
355
356
|
const savedColumnState = this.getSavedColumnState();
|
|
356
357
|
if ((savedColumnState === null || savedColumnState === void 0 ? void 0 : savedColumnState.length) > 0) {
|
|
357
358
|
return mergeAndDedupColDefWithColumnState(colDefsToReturn, savedColumnState);
|
|
358
359
|
}
|
|
359
|
-
else if (((_a = this.
|
|
360
|
-
return mergeAndDedupColDefWithColumnState(colDefsToReturn, this.
|
|
360
|
+
else if (((_a = this.gridProDatasource.deferredColumnStates) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
361
|
+
return mergeAndDedupColDefWithColumnState(colDefsToReturn, this.gridProDatasource.deferredColumnStates);
|
|
361
362
|
}
|
|
362
363
|
}
|
|
363
364
|
return colDefsToReturn;
|