@genesislcap/grid-pro 14.83.7 → 14.84.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 (29) hide show
  1. package/dist/custom-elements.json +1292 -34
  2. package/dist/dts/column/column.d.ts +1 -1
  3. package/dist/dts/column/column.d.ts.map +1 -1
  4. package/dist/dts/column/column.template.d.ts +2 -2
  5. package/dist/dts/column/column.template.d.ts.map +1 -1
  6. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.d.ts +18 -7
  7. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.d.ts.map +1 -1
  8. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +7 -0
  9. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
  10. package/dist/dts/grid-pro.d.ts +1 -4
  11. package/dist/dts/grid-pro.d.ts.map +1 -1
  12. package/dist/dts/grid-pro.definitions.next.d.ts +53 -0
  13. package/dist/dts/grid-pro.definitions.next.d.ts.map +1 -0
  14. package/dist/esm/column/column.js +6 -6
  15. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.js +131 -52
  16. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +13 -0
  17. package/dist/esm/grid-pro.definitions.next.js +172 -0
  18. package/dist/esm/grid-pro.js +5 -4
  19. package/dist/grid-pro.api.json +162 -131
  20. package/dist/grid-pro.d.ts +51 -35
  21. package/docs/api/grid-pro.columntemplate.md +1 -1
  22. package/docs/api/grid-pro.gridproclientsidedatasource.md +19 -0
  23. package/docs/api/{grid-pro.gridcolumn.definition.md → grid-pro.gridprocolumn.definition.md} +2 -2
  24. package/docs/api/{grid-pro.gridcolumn.md → grid-pro.gridprocolumn.md} +6 -6
  25. package/docs/api/{grid-pro.gridcolumn.slottedagcell.md → grid-pro.gridprocolumn.slottedagcell.md} +2 -2
  26. package/docs/api/{grid-pro.gridcolumn.slottedagcellchanged.md → grid-pro.gridprocolumn.slottedagcellchanged.md} +2 -2
  27. package/docs/api/grid-pro.md +2 -1
  28. package/docs/api-report.md +35 -29
  29. package/package.json +8 -8
@@ -5,7 +5,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
5
5
  * @remarks Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.
6
6
  * @public
7
7
  */
8
- export declare class GridColumn extends FoundationElement {
8
+ export declare class GridProColumn extends FoundationElement {
9
9
  slottedAgCell: HTMLElement[];
10
10
  definition: ColDef;
11
11
  slottedAgCellChanged(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../../src/column/column.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;;GAIG;AACH,qBAIa,UAAW,SAAQ,iBAAiB;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;IACpC,UAAU,EAAE,MAAM,CAAM;IAE7B,oBAAoB;CAC5B"}
1
+ {"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../../src/column/column.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;;GAIG;AACH,qBAIa,aAAc,SAAQ,iBAAiB;IAC/B,aAAa,EAAE,WAAW,EAAE,CAAC;IACpC,UAAU,EAAE,MAAM,CAAM;IAE7B,oBAAoB;CAC5B"}
@@ -1,7 +1,7 @@
1
- import type { GridColumn } from './column';
1
+ import type { GridProColumn } from './column';
2
2
  /**
3
3
  * The Grid Pro Column Template.
4
4
  * @public
5
5
  */
6
- export declare const ColumnTemplate: import("@microsoft/fast-element").ViewTemplate<GridColumn, any>;
6
+ export declare const ColumnTemplate: import("@microsoft/fast-element").ViewTemplate<GridProColumn, any>;
7
7
  //# sourceMappingURL=column.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column.template.d.ts","sourceRoot":"","sources":["../../../src/column/column.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,cAAc,iEAI1B,CAAC"}
1
+ {"version":3,"file":"column.template.d.ts","sourceRoot":"","sources":["../../../src/column/column.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,cAAc,oEAI1B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { IServerSideDatasource, IServerSideGetRowsParams } from '@ag-grid-community/core';
2
- import { Connect, FilteredDataServerResult, MetadataDetail, SocketObservable } from '@genesislcap/foundation-comms';
1
+ import type { IServerSideDatasource, IServerSideGetRowsParams } from '@ag-grid-community/core';
2
+ import { Auth, Connect, FilteredDataServerResult, MetadataDetail, SocketObservable } from '@genesislcap/foundation-comms';
3
3
  import { FoundationElement } from '@microsoft/fast-foundation';
4
4
  /**
5
5
  * Type definition for configuration options used for streams.
@@ -23,6 +23,7 @@ export type StreamDatasourceOptions = {
23
23
  * @alpha
24
24
  */
25
25
  export declare class StreamDatasource implements IServerSideDatasource {
26
+ auth: Auth;
26
27
  connect: Connect;
27
28
  dataserverStream: SocketObservable<FilteredDataServerResult>;
28
29
  private resourceName;
@@ -33,7 +34,16 @@ export declare class StreamDatasource implements IServerSideDatasource {
33
34
  private maxView;
34
35
  private pagination;
35
36
  streamSourceRef: string;
36
- private rowCount;
37
+ /**
38
+ * The number of rows in the grid. THIS DO NOT CONSIDER CRITERIA_MATCH scenarios.
39
+ * @internal
40
+ */
41
+ private server_ROWS_COUNT;
42
+ /**
43
+ * The number of rows in the grid. THIS IS A LOCAL COUNT CONSIDERING CONSIDER CRITERIA_MATCH scenarios.
44
+ * @internal
45
+ */
46
+ private client_ROWS_COUNT;
37
47
  private moreRows;
38
48
  private calculatedRowsCount;
39
49
  private lastSequenceId;
@@ -45,6 +55,7 @@ export declare class StreamDatasource implements IServerSideDatasource {
45
55
  private rowId;
46
56
  constructor(options: StreamDatasourceOptions);
47
57
  getRows(params: IServerSideGetRowsParams): Promise<void>;
58
+ private dataLogoff;
48
59
  private restartSubscription;
49
60
  private getOrderByAndToBeSortedColIds;
50
61
  private handleInitialStreamLoad;
@@ -52,7 +63,7 @@ export declare class StreamDatasource implements IServerSideDatasource {
52
63
  private criteriaFromFilters;
53
64
  private getFiltersByType;
54
65
  }
55
- declare const GridProGenesisDatasourceNext_base: (new (...args: any[]) => {
66
+ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
56
67
  "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
57
68
  "__#1@#_latestTokenCode": string;
58
69
  "__#1@#_hasFirstLoaded": boolean;
@@ -378,11 +389,11 @@ declare const GridProGenesisDatasourceNext_base: (new (...args: any[]) => {
378
389
  focus(options?: FocusOptions): void;
379
390
  }) & typeof FoundationElement;
380
391
  /**
381
- * The Genesis Datasource (Next) element, for SSRM-compatible data fetching and used exclusively by the GridPro element.
382
- * @remarks Intended to be the "next version" of the `grid-pro-genesis-datasource` element, supporting SSRM.
392
+ * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
393
+ * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
383
394
  * @alpha
384
395
  */
385
- export declare class GridProGenesisDatasourceNext extends GridProGenesisDatasourceNext_base {
396
+ export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
386
397
  connect: Connect;
387
398
  criteria: string;
388
399
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"grid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AAE,MAAM,CAAC;IAC3D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,UAAU,UAAS;IACf,KAAK,SAAa;IACtB,OAAO,UAAS;IAE3C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASpB,IAAI;IA2DJ,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;CAgDxB"}
1
+ {"version":3,"file":"grid-pro-genesis-datasource-next.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EAKzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAMP,wBAAwB,EAIxB,cAAc,EAEd,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAa/D;;;;;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,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAID;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,gCAAiC;IACvE,OAAO,EAAG,OAAO,CAAC;IAErB,QAAQ,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAWlD,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,EAAE,OAAO,CAAS;IAChD,OAAO,EAAE,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;IAChD,UAAU,UAAQ;IACrB,OAAO,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IAC3D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,UAAU,UAAS;IACf,KAAK,SAAa;IACtB,OAAO,UAAS;IAE3C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASpB,IAAI;IAgEJ,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;CAmDxB"}
@@ -476,5 +476,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
476
476
  setFilter(fieldName: string, newFilter: string): void;
477
477
  removeFilter(fieldName: string): void;
478
478
  }
479
+ /**
480
+ * The Genesis Datasource element, for client-side | CSRM-compatible data fetching and used exclusively by the GridPro element.
481
+ * @remarks Only supports Client-Side Row Model.
482
+ * @public
483
+ */
484
+ export declare class GridProClientSideDatasource extends GridProGenesisDatasource {
485
+ }
479
486
  export {};
480
487
  //# sourceMappingURL=grid-pro-genesis-datasource.d.ts.map
@@ -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,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAkB/D;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEA0NC;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3NL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAiC;IACvE,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IAGvC,QAAQ,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,WAAW,EAAE,MA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IACH,OAAO,KAAK,KAAK,GAIhB;IAED;;;;OAIG;IACG,IAAI;IAyCV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA6BL;;;OAGG;IACH,OAAO;IAKP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAYlB;;;;;OAKG;YACW,kBAAkB;IAWhC;;;;;;OAMG;YACW,gBAAgB;IA4C9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,wBAAwB;IAYhC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA6CvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC;AAED;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,wBAAwB;CAAG"}
@@ -17,10 +17,7 @@ declare const GridPro_base: (new (...args: any[]) => {
17
17
  "__#1@#_cleanupTimeout": NodeJS.Timeout;
18
18
  "__#1@#_shouldForceLifecycle": boolean;
19
19
  cloneNode(deep?: boolean): Node;
20
- deepClone(): Node; /**
21
- * Whether to use the `applyTransactionAsync` function for *remove* transactions
22
- * @remarks Defaults to false
23
- */
20
+ deepClone(): Node;
24
21
  readonly shouldRunDisconnect: boolean;
25
22
  readonly shouldRunConnect: boolean;
26
23
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect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;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { ValueFormatterParams } from '@ag-grid-community/core';
2
+ /**
3
+ * Returns a filter type based on the Grid Pro field/column type.
4
+ * @param type - The type of the field/column
5
+ * @returns The ag-grid filter type
6
+ * @remarks Currently only returns agTextColumnFilter
7
+ * @alpha
8
+ */
9
+ export declare function getFilterByFieldType(type: string): any;
10
+ /**
11
+ * Return a column type base on each field's metadata from the selected resource.
12
+ * @param metadataType - The type of the field/column
13
+ * @returns the column type
14
+ * @remarks Currently only handles numeric columns
15
+ * @alpha
16
+ */
17
+ export declare function getColumnType(metadataType: string): any;
18
+ /**
19
+ * Returns the filter params based on the Grid Pro field/column type.
20
+ * @param type - The type of the field/column
21
+ * @returns the filter params for the specified field type
22
+ * @remarks Currently only returns a default filter params object, for all field types
23
+ * @alpha
24
+ */
25
+ export declare function getFilterParamsByFieldType(type: string): any;
26
+ /**
27
+ * Returns a formatted date value from the Grid Pro cell value.
28
+ * @param param - A ValueFormatterParams object.
29
+ * @returns A formatted date value.
30
+ * @public
31
+ */
32
+ export declare function dateValueFormatter({ value }: ValueFormatterParams): any;
33
+ /**
34
+ * Returns a formatted date time value from the Grid Pro cell value.
35
+ * @param param - A ValueFormatterParams object.
36
+ * @returns A formatted date time value.
37
+ * @public
38
+ */
39
+ export declare function dateTimeValueFormatter({ value }: ValueFormatterParams): any;
40
+ /**
41
+ * Returns a formatted date value from an epoch number.
42
+ * @param epoch - A number representing the number of milliseconds since the Unix epoch (1 January 1970 00:00:00 UTC).
43
+ * @returns A formatted date value.
44
+ * @alpha
45
+ * @deprecated No longer used in the Grid Pro package.
46
+ */
47
+ export declare function formatDateExtra(epoch: number): string;
48
+ /**
49
+ * The time between allowing the grids to automatically resize.
50
+ * @internal
51
+ */
52
+ export declare const DEBOUNCED_RESIZE_TIME = 5;
53
+ //# sourceMappingURL=grid-pro.definitions.next.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-pro.definitions.next.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CActD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,CAcvD;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAsF5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAKD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC"}
@@ -7,7 +7,7 @@ import { ColumnTemplate as template } from './column.template';
7
7
  * @remarks Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.
8
8
  * @public
9
9
  */
10
- let GridColumn = class GridColumn extends FoundationElement {
10
+ let GridProColumn = class GridProColumn extends FoundationElement {
11
11
  constructor() {
12
12
  super(...arguments);
13
13
  this.definition = {};
@@ -16,14 +16,14 @@ let GridColumn = class GridColumn extends FoundationElement {
16
16
  };
17
17
  __decorate([
18
18
  observable
19
- ], GridColumn.prototype, "slottedAgCell", void 0);
19
+ ], GridProColumn.prototype, "slottedAgCell", void 0);
20
20
  __decorate([
21
21
  observable
22
- ], GridColumn.prototype, "definition", void 0);
23
- GridColumn = __decorate([
22
+ ], GridProColumn.prototype, "definition", void 0);
23
+ GridProColumn = __decorate([
24
24
  customElement({
25
25
  name: 'grid-pro-column',
26
26
  template,
27
27
  })
28
- ], GridColumn);
29
- export { GridColumn };
28
+ ], GridProColumn);
29
+ export { GridProColumn };
@@ -1,10 +1,10 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { Connect, dataServerResultFilter, DatasourceDefaults, extractFieldDefinitions, FieldTypeEnum, MessageType, normaliseCriteria, toFieldMetadata, } from '@genesislcap/foundation-comms';
2
+ import { Auth, Connect, dataServerResultFilter, DatasourceDefaults, 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
5
  import { FoundationElement } from '@microsoft/fast-foundation';
6
6
  import { take } from 'rxjs/operators';
7
- import { dateTimeValueFormatter, dateValueFormatter, getColumnType, getFilterByFieldType, getFilterParamsByFieldType, } from '../grid-pro.definitions';
7
+ import { dateTimeValueFormatter, dateValueFormatter, getColumnType, getFilterByFieldType, getFilterParamsByFieldType, } from '../grid-pro.definitions.next';
8
8
  import { GridProRendererTypes } from '../grid-pro.types';
9
9
  import { logger } from '../utils';
10
10
  /**
@@ -13,7 +13,16 @@ import { logger } from '../utils';
13
13
  */
14
14
  export class StreamDatasource {
15
15
  constructor(options) {
16
- this.rowCount = 0;
16
+ /**
17
+ * The number of rows in the grid. THIS DO NOT CONSIDER CRITERIA_MATCH scenarios.
18
+ * @internal
19
+ */
20
+ this.server_ROWS_COUNT = 0;
21
+ /**
22
+ * The number of rows in the grid. THIS IS A LOCAL COUNT CONSIDERING CONSIDER CRITERIA_MATCH scenarios.
23
+ * @internal
24
+ */
25
+ this.client_ROWS_COUNT = 0;
17
26
  this.moreRows = false;
18
27
  this.calculatedRowsCount = 0;
19
28
  this.lastSequenceId = 0;
@@ -32,16 +41,18 @@ export class StreamDatasource {
32
41
  getRows(params) {
33
42
  var _a;
34
43
  return __awaiter(this, void 0, void 0, function* () {
35
- const toBeAppliedFilterModel = params.request.filterModel;
36
- if (JSON.stringify(toBeAppliedFilterModel) !== JSON.stringify(this.currentFilterModel) ||
37
- Object.keys(toBeAppliedFilterModel).length > 0) {
38
- if (Object.keys(toBeAppliedFilterModel).length === 0 && this.currentFilterModel) {
44
+ const filterModelBeingApplied = params.request.filterModel;
45
+ const filtersAreBeingApplied = Object.keys(filterModelBeingApplied).length > 0;
46
+ const filtersAreGettingCleaned = Object.keys(filterModelBeingApplied).length === 0;
47
+ const filterModelBeingAppliedDiffersFromCurrent = JSON.stringify(filterModelBeingApplied) !== JSON.stringify(this.currentFilterModel);
48
+ if (filterModelBeingAppliedDiffersFromCurrent || filtersAreBeingApplied) {
49
+ if (filtersAreGettingCleaned && this.currentFilterModel) {
39
50
  this.currentFilterModel = null;
40
51
  this.resourceParams.CRITERIA_MATCH = this.originalCriteriaMatch;
41
52
  this.restartSubscription();
42
53
  }
43
- else if (Object.keys(toBeAppliedFilterModel).length > 0) {
44
- this.currentFilterModel = toBeAppliedFilterModel;
54
+ else if (filterModelBeingAppliedDiffersFromCurrent && filtersAreBeingApplied) {
55
+ this.currentFilterModel = filterModelBeingApplied;
45
56
  this.resourceParams.CRITERIA_MATCH = this.buildCriteriaMatchFromFilters();
46
57
  this.restartSubscription();
47
58
  }
@@ -68,7 +79,7 @@ export class StreamDatasource {
68
79
  this.restartSubscription();
69
80
  }
70
81
  }
71
- if (this.moreRows && params.request.startRow >= this.maxRows) {
82
+ if (this.moreRows && params.request.startRow >= Number(this.maxRows)) {
72
83
  this.connect.getMoreRows(this.streamSourceRef);
73
84
  }
74
85
  // TODO: take(1) is temporary, won't have to do this once SSRM Transactions are implemented
@@ -85,6 +96,13 @@ export class StreamDatasource {
85
96
  const nextMessage = dataServerResultFilter(result);
86
97
  this.handleInitialStreamLoad(nextMessage);
87
98
  }
99
+ else {
100
+ this.rowData = new Map();
101
+ const successRowData = { rowData: Array.from(this.rowData.values()) };
102
+ successRowData.rowCount = 0;
103
+ params.success(successRowData);
104
+ return;
105
+ }
88
106
  // TODO: SSRM Transactions - https://www.ag-grid.com/javascript-data-grid/server-side-model-updating-transactions/
89
107
  // if (messageType === MessageType.QUERY_UPDATE) {
90
108
  // if (result.ROW) {
@@ -99,19 +117,25 @@ export class StreamDatasource {
99
117
  this.lastSequenceId = result.SEQUENCE_ID;
100
118
  if (this.lastSequenceId === 1) {
101
119
  this.streamSourceRef = result.SOURCE_REF;
102
- this.rowCount = (_a = result.ROWS_COUNT) !== null && _a !== void 0 ? _a : this.rowData.size;
120
+ this.server_ROWS_COUNT = (_a = result.ROWS_COUNT) !== null && _a !== void 0 ? _a : this.rowData.size;
121
+ }
122
+ // TODO: TEMPORARY - Due ROWS_COUNT not respecting CRITERIA_MATCH scenarios.
123
+ if (!this.moreRows && this.server_ROWS_COUNT >= this.client_ROWS_COUNT) {
124
+ this.calculatedRowsCount = this.client_ROWS_COUNT;
125
+ }
126
+ else {
127
+ this.calculatedRowsCount += (_b = this.rowData.size) !== null && _b !== void 0 ? _b : 0;
103
128
  }
104
- this.calculatedRowsCount += (_b = this.rowData.size) !== null && _b !== void 0 ? _b : 0;
105
129
  const successRowData = { rowData: Array.from(this.rowData.values()) };
106
130
  if (this.pagination) {
107
- successRowData.rowCount = Math.min(this.rowCount, this.maxView);
131
+ successRowData.rowCount = Math.min(this.server_ROWS_COUNT, this.maxView);
108
132
  }
109
133
  if (params.request.endRow > this.maxView ||
110
134
  params.request.endRow > this.calculatedRowsCount) {
111
135
  successRowData.rowCount = this.calculatedRowsCount;
112
136
  }
113
- else if (params.request.endRow === this.rowCount) {
114
- successRowData.rowCount = this.rowCount;
137
+ else if (params.request.endRow === this.server_ROWS_COUNT) {
138
+ successRowData.rowCount = this.server_ROWS_COUNT;
115
139
  }
116
140
  params.success(successRowData);
117
141
  });
@@ -145,8 +169,17 @@ export class StreamDatasource {
145
169
  // this.rowData.set(updateData[this.rowId], updatedRow);
146
170
  // });
147
171
  // }
172
+ dataLogoff() {
173
+ const shouldPerformDataLogoff = this.streamSourceRef;
174
+ if (shouldPerformDataLogoff && this.auth.isLoggedIn) {
175
+ this.connect.dataLogoff(this.streamSourceRef);
176
+ }
177
+ this.streamSourceRef = undefined;
178
+ }
148
179
  restartSubscription() {
149
- this.connect.dataLogoff(this.streamSourceRef);
180
+ this.dataLogoff();
181
+ this.rowData = new Map();
182
+ this.client_ROWS_COUNT = 0;
150
183
  const streamOnMessage = (message) => message;
151
184
  const onError = (error) => logger.error(error);
152
185
  this.dataserverStream = this.connect.stream(this.resourceName, streamOnMessage, onError, this.resourceParams);
@@ -169,6 +202,8 @@ export class StreamDatasource {
169
202
  (_a = result.inserts) === null || _a === void 0 ? void 0 : _a.forEach((insertData) => {
170
203
  rows.set(insertData.ROW_REF, insertData);
171
204
  });
205
+ // TODO: TEMPORARY - Due ROWS_COUNT not being in sync with CRITERIA_MATCH scenarios.
206
+ this.client_ROWS_COUNT += rows.size;
172
207
  this.rowData = rows;
173
208
  }
174
209
  buildCriteriaMatchFromFilters() {
@@ -183,23 +218,59 @@ export class StreamDatasource {
183
218
  const criteria = this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters());
184
219
  return criteria.join(' && ');
185
220
  }
186
- // we need to combine all filters into a valid groovy expression, for now limited to search in strings
221
+ // TODO: update this following https://learn.genesis.global/docs/server/data-server/advanced/#common-expressions
187
222
  criteriaFromFilters() {
188
223
  const filters = [];
189
- this.getFiltersByType('text').forEach((k) => filters.push(`Expr.containsIgnoreCase(${k}, '${this.currentFilterModel[k].filter.toLowerCase()}')`));
190
- // TODO: Add all other filters
191
- // this.getFiltersByType('number').forEach((k) => {
192
- // const v = this.currentFilterModel[k].value;
193
- // !isNaN(v.min) && filters.push(`${k} >= ${v.min}`);
194
- // !isNaN(v.max) && filters.push(`${k} <= ${v.max}`);
195
- // });
196
- // this.getFiltersByType('boolean').forEach(k => filters.push(`${k} == ${this.currentFilterModel[k].value}`));
197
- // this.getFiltersByType('date').forEach((k) => {
198
- // const v = this.currentFilterModel[k].value;
199
- // !isNaN(v.min) && filters.push(`Expr.dateTimeIsAfter(${k}, '${formatDateExtra(v.min)}')`);
200
- // !isNaN(v.max) && filters.push(`Expr.dateTimeIsBefore(${k}, '${formatDateExtra(v.max)}')`);
201
- // });
202
- // this.getFiltersByType('enum').forEach(k => filters.push(`${k} == '${this.currentFilterModel[k].value}'`));
224
+ this.getFiltersByType('text').forEach((k) => {
225
+ // TODO: no official "boolean" filter type, it's a "text"
226
+ if (!this.currentFilterModel[k].filter &&
227
+ (this.currentFilterModel[k].type === 'false' || this.currentFilterModel[k].type === 'true')) {
228
+ filters.push(`${k} == ${this.currentFilterModel[k].type}`);
229
+ }
230
+ else {
231
+ switch (this.currentFilterModel[k].type) {
232
+ case 'equals':
233
+ filters.push(`${k} == '${this.currentFilterModel[k].filter}'`);
234
+ break;
235
+ case 'contains':
236
+ filters.push(`Expr.containsIgnoreCase(${k}, '${this.currentFilterModel[k].filter}')`);
237
+ break;
238
+ }
239
+ }
240
+ });
241
+ this.getFiltersByType('number').forEach((k) => {
242
+ const value = this.currentFilterModel[k].filter;
243
+ switch (this.currentFilterModel[k].type) {
244
+ case 'equals':
245
+ !isNaN(value) && filters.push(`${k} == ${value}`);
246
+ break;
247
+ case 'lessThan':
248
+ !isNaN(value) && filters.push(`${k} < ${value}`);
249
+ break;
250
+ case 'greaterThan':
251
+ !isNaN(value) && filters.push(`${k} > ${value}`);
252
+ break;
253
+ }
254
+ });
255
+ this.getFiltersByType('date').forEach((k) => {
256
+ const dateFrom = this.currentFilterModel[k].dateFrom
257
+ .replace(/-/g, '')
258
+ .replace('T', '-')
259
+ .split(' ')[0];
260
+ switch (this.currentFilterModel[k].type) {
261
+ case 'equals':
262
+ filters.push(`Expr.dateIsEqual(${k}, '${dateFrom}')`);
263
+ break;
264
+ case 'lessThan':
265
+ filters.push(`Expr.dateIsBefore(${k}, '${dateFrom}')`);
266
+ break;
267
+ case 'greaterThan':
268
+ filters.push(`Expr.dateIsAfter(${k}, '${dateFrom}')`);
269
+ break;
270
+ default:
271
+ break;
272
+ }
273
+ });
203
274
  return filters;
204
275
  }
205
276
  getFiltersByType(filterType) {
@@ -208,16 +279,19 @@ export class StreamDatasource {
208
279
  .filter((k) => this.currentFilterModel[k].filterType === filterType);
209
280
  }
210
281
  }
282
+ __decorate([
283
+ Auth
284
+ ], StreamDatasource.prototype, "auth", void 0);
211
285
  __decorate([
212
286
  Connect
213
287
  ], StreamDatasource.prototype, "connect", void 0);
214
288
  const criteriaDelimiter = ';';
215
289
  /**
216
- * The Genesis Datasource (Next) element, for SSRM-compatible data fetching and used exclusively by the GridPro element.
217
- * @remarks Intended to be the "next version" of the `grid-pro-genesis-datasource` element, supporting SSRM.
290
+ * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
291
+ * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
218
292
  * @alpha
219
293
  */
220
- let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends LifecycleMixin(FoundationElement) {
294
+ let GridProServerSideDatasource = class GridProServerSideDatasource extends LifecycleMixin(FoundationElement) {
221
295
  constructor() {
222
296
  super(...arguments);
223
297
  this.isSnapshot = false;
@@ -263,7 +337,12 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
263
337
  init() {
264
338
  if (this.agGrid && this.resourceName && this.connect.isConnected) {
265
339
  this.agGrid.gridOptions = {
266
- getRowId: (params) => params.data[this.rowId],
340
+ getRowId: (params) => {
341
+ if (!params.data) {
342
+ return null;
343
+ }
344
+ return params.data[this.rowId];
345
+ },
267
346
  cacheBlockSize: this.maxRows,
268
347
  defaultColDef: {
269
348
  filter: true,
@@ -395,49 +474,49 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
395
474
  }
396
475
  return Object.assign(Object.assign({ field: field.name, type: getColumnType(field.type), filter: getFilterByFieldType(field.type), sortable: [].concat(...this.indexes.values()).includes(field.name) }, cellConfigs), templateColDef);
397
476
  });
398
- const colDefsMergedWithTemplateDefs = this.agGrid.applyTemplateDefinitions(colDefsFromGenesisData);
477
+ const colDefsMergedWithTemplateDefs = this.agGrid.applyTemplateDefinitions(colDefsFromGenesisData, true);
399
478
  return colDefsMergedWithTemplateDefs;
400
479
  }
401
480
  };
402
481
  __decorate([
403
482
  Connect
404
- ], GridProGenesisDatasourceNext.prototype, "connect", void 0);
483
+ ], GridProServerSideDatasource.prototype, "connect", void 0);
405
484
  __decorate([
406
485
  attr
407
- ], GridProGenesisDatasourceNext.prototype, "criteria", void 0);
486
+ ], GridProServerSideDatasource.prototype, "criteria", void 0);
408
487
  __decorate([
409
488
  attr
410
- ], GridProGenesisDatasourceNext.prototype, "fields", void 0);
489
+ ], GridProServerSideDatasource.prototype, "fields", void 0);
411
490
  __decorate([
412
491
  attr({ mode: 'boolean', attribute: 'is-snapshot' })
413
- ], GridProGenesisDatasourceNext.prototype, "isSnapshot", void 0);
492
+ ], GridProServerSideDatasource.prototype, "isSnapshot", void 0);
414
493
  __decorate([
415
494
  attr({ attribute: 'max-rows' })
416
- ], GridProGenesisDatasourceNext.prototype, "maxRows", void 0);
495
+ ], GridProServerSideDatasource.prototype, "maxRows", void 0);
417
496
  __decorate([
418
497
  attr({ attribute: 'max-view' })
419
- ], GridProGenesisDatasourceNext.prototype, "maxView", void 0);
498
+ ], GridProServerSideDatasource.prototype, "maxView", void 0);
420
499
  __decorate([
421
500
  attr({ attribute: 'moving-view' })
422
- ], GridProGenesisDatasourceNext.prototype, "movingView", void 0);
501
+ ], GridProServerSideDatasource.prototype, "movingView", void 0);
423
502
  __decorate([
424
503
  attr({ attribute: 'order-by' })
425
- ], GridProGenesisDatasourceNext.prototype, "orderBy", void 0);
504
+ ], GridProServerSideDatasource.prototype, "orderBy", void 0);
426
505
  __decorate([
427
506
  attr({ attribute: 'resource-name' })
428
- ], GridProGenesisDatasourceNext.prototype, "resourceName", void 0);
507
+ ], GridProServerSideDatasource.prototype, "resourceName", void 0);
429
508
  __decorate([
430
509
  attr({ mode: 'boolean' })
431
- ], GridProGenesisDatasourceNext.prototype, "pagination", void 0);
510
+ ], GridProServerSideDatasource.prototype, "pagination", void 0);
432
511
  __decorate([
433
512
  attr({ attribute: 'row-id' })
434
- ], GridProGenesisDatasourceNext.prototype, "rowId", void 0);
513
+ ], GridProServerSideDatasource.prototype, "rowId", void 0);
435
514
  __decorate([
436
515
  attr({ mode: 'boolean' })
437
- ], GridProGenesisDatasourceNext.prototype, "reverse", void 0);
438
- GridProGenesisDatasourceNext = __decorate([
516
+ ], GridProServerSideDatasource.prototype, "reverse", void 0);
517
+ GridProServerSideDatasource = __decorate([
439
518
  customElement({
440
- name: 'grid-pro-genesis-datasource-next',
519
+ name: 'grid-pro-server-side-datasource',
441
520
  })
442
- ], GridProGenesisDatasourceNext);
443
- export { GridProGenesisDatasourceNext };
521
+ ], GridProServerSideDatasource);
522
+ export { GridProServerSideDatasource };
@@ -553,3 +553,16 @@ GridProGenesisDatasource = __decorate([
553
553
  })
554
554
  ], GridProGenesisDatasource);
555
555
  export { GridProGenesisDatasource };
556
+ /**
557
+ * The Genesis Datasource element, for client-side | CSRM-compatible data fetching and used exclusively by the GridPro element.
558
+ * @remarks Only supports Client-Side Row Model.
559
+ * @public
560
+ */
561
+ let GridProClientSideDatasource = class GridProClientSideDatasource extends GridProGenesisDatasource {
562
+ };
563
+ GridProClientSideDatasource = __decorate([
564
+ customElement({
565
+ name: 'grid-pro-genesis-datasource',
566
+ })
567
+ ], GridProClientSideDatasource);
568
+ export { GridProClientSideDatasource };