@genesislcap/grid-pro 14.83.8-alpha-c2a75d5.0 → 14.84.1

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
@@ -0,0 +1,172 @@
1
+ import { FieldTypeEnum } from '@genesislcap/foundation-comms';
2
+ import { formatDateTimestamp, formatDateTimeTimestamp } from '@genesislcap/foundation-utils';
3
+ /**
4
+ * Returns a filter type based on the Grid Pro field/column type.
5
+ * @param type - The type of the field/column
6
+ * @returns The ag-grid filter type
7
+ * @remarks Currently only returns agTextColumnFilter
8
+ * @alpha
9
+ */
10
+ export function getFilterByFieldType(type) {
11
+ switch (type === null || type === void 0 ? void 0 : type.toLowerCase()) {
12
+ case 'int':
13
+ case 'long':
14
+ case 'double':
15
+ case 'bigdecimal':
16
+ case 'number':
17
+ return 'agNumberColumnFilter';
18
+ case 'date':
19
+ case 'datetime':
20
+ return 'agDateColumnFilter';
21
+ default:
22
+ return 'agTextColumnFilter';
23
+ }
24
+ }
25
+ /**
26
+ * Return a column type base on each field's metadata from the selected resource.
27
+ * @param metadataType - The type of the field/column
28
+ * @returns the column type
29
+ * @remarks Currently only handles numeric columns
30
+ * @alpha
31
+ */
32
+ export function getColumnType(metadataType) {
33
+ switch (metadataType === null || metadataType === void 0 ? void 0 : metadataType.toLowerCase()) {
34
+ case 'int':
35
+ case 'long':
36
+ case 'double':
37
+ case 'bigdecimal':
38
+ case 'number':
39
+ return 'numericColumn';
40
+ case 'date':
41
+ case 'datetime':
42
+ return 'dateColumn';
43
+ default:
44
+ return 'textColumn';
45
+ }
46
+ }
47
+ /**
48
+ * Returns the filter params based on the Grid Pro field/column type.
49
+ * @param type - The type of the field/column
50
+ * @returns the filter params for the specified field type
51
+ * @remarks Currently only returns a default filter params object, for all field types
52
+ * @alpha
53
+ */
54
+ export function getFilterParamsByFieldType(type) {
55
+ switch (type) {
56
+ case FieldTypeEnum.BOOLEAN: {
57
+ return {
58
+ buttons: ['reset', 'apply'],
59
+ closeOnApply: true,
60
+ closeOnClear: true,
61
+ suppressAndOrCondition: true,
62
+ filterOptions: [
63
+ 'contains',
64
+ {
65
+ displayKey: 'true',
66
+ displayName: 'True',
67
+ predicate: (_, cellValue) => cellValue === 'true' || cellValue === true,
68
+ numberOfInputs: 0,
69
+ },
70
+ {
71
+ displayKey: 'false',
72
+ displayName: 'False',
73
+ predicate: (_, cellValue) => cellValue === 'false' || cellValue === false,
74
+ numberOfInputs: 0,
75
+ },
76
+ {
77
+ displayKey: 'true-false',
78
+ displayName: 'True/False',
79
+ predicate: (_, cellValue) => cellValue === 'true' ||
80
+ cellValue === true ||
81
+ cellValue === 'false' ||
82
+ cellValue === false,
83
+ numberOfInputs: 0,
84
+ },
85
+ ],
86
+ };
87
+ }
88
+ case FieldTypeEnum.DATE:
89
+ case FieldTypeEnum.DATETIME: {
90
+ return {
91
+ comparator: (filterLocalDateAtMidnight, cellValue) => {
92
+ if (!cellValue)
93
+ return -1;
94
+ const cellValueTime = new Date(cellValue).setHours(0, 0, 0, 0);
95
+ const filterValueTime = filterLocalDateAtMidnight.getTime();
96
+ if (cellValueTime === filterValueTime) {
97
+ return 0;
98
+ }
99
+ if (cellValueTime < filterValueTime) {
100
+ return -1;
101
+ }
102
+ if (cellValueTime > filterValueTime) {
103
+ return 1;
104
+ }
105
+ },
106
+ buttons: ['reset', 'apply'],
107
+ closeOnApply: true,
108
+ closeOnClear: true,
109
+ suppressAndOrCondition: true,
110
+ browserDatePicker: true,
111
+ filterOptions: ['equals', 'lessThan', 'greaterThan'],
112
+ };
113
+ }
114
+ case FieldTypeEnum.NUMBER: {
115
+ return {
116
+ buttons: ['reset', 'apply'],
117
+ closeOnApply: true,
118
+ closeOnClear: true,
119
+ suppressAndOrCondition: true,
120
+ filterOptions: ['equals', 'lessThan', 'greaterThan'],
121
+ };
122
+ }
123
+ default: {
124
+ return {
125
+ buttons: ['reset', 'apply'],
126
+ closeOnApply: true,
127
+ closeOnClear: true,
128
+ suppressAndOrCondition: true,
129
+ filterOptions: ['contains', 'equals'],
130
+ };
131
+ }
132
+ }
133
+ }
134
+ /**
135
+ * Returns a formatted date value from the Grid Pro cell value.
136
+ * @param param - A ValueFormatterParams object.
137
+ * @returns A formatted date value.
138
+ * @public
139
+ */
140
+ export function dateValueFormatter({ value }) {
141
+ return formatDateTimestamp(value);
142
+ }
143
+ /**
144
+ * Returns a formatted date time value from the Grid Pro cell value.
145
+ * @param param - A ValueFormatterParams object.
146
+ * @returns A formatted date time value.
147
+ * @public
148
+ */
149
+ export function dateTimeValueFormatter({ value }) {
150
+ return formatDateTimeTimestamp(value);
151
+ }
152
+ // TODO: possible duplicate - need to evaluate the differences
153
+ const isoDateTimeSliceEnd = 19;
154
+ /**
155
+ * Returns a formatted date value from an epoch number.
156
+ * @param epoch - A number representing the number of milliseconds since the Unix epoch (1 January 1970 00:00:00 UTC).
157
+ * @returns A formatted date value.
158
+ * @alpha
159
+ * @deprecated No longer used in the Grid Pro package.
160
+ */
161
+ export function formatDateExtra(epoch) {
162
+ return new Date(epoch)
163
+ .toISOString()
164
+ .slice(0, isoDateTimeSliceEnd)
165
+ .replace(/-/g, '')
166
+ .replace('T', '-');
167
+ }
168
+ /**
169
+ * The time between allowing the grids to automatically resize.
170
+ * @internal
171
+ */
172
+ export const DEBOUNCED_RESIZE_TIME = 5;
@@ -9,18 +9,19 @@ import { FoundationElement } from '@microsoft/fast-foundation';
9
9
  import { classNames } from '@microsoft/fast-web-utilities';
10
10
  import { GridProCell } from './cell';
11
11
  import { ActionRenderer, ActionsMenuRenderer, BooleanRenderer } from './cell-renderers';
12
- import { GridColumn } from './column';
12
+ import { GridProColumn } from './column';
13
13
  import { agThemeFontFaceMap, defaultAgGridFontFace } from './external';
14
- import { GridProGenesisDatasource, GridProGenesisDatasourceNext, } from './grid-pro-genesis-datasource';
14
+ import { GridProClientSideDatasource, GridProGenesisDatasource, GridProServerSideDatasource, } from './grid-pro-genesis-datasource';
15
15
  import { DEBOUNCED_RESIZE_TIME } from './grid-pro.definitions';
16
16
  import { foundationGridProStyles as styles } from './grid-pro.styles';
17
17
  import { gridProTemplate as template } from './grid-pro.template';
18
18
  import { AgGridTheme, GridProRendererTypes, agThemeFontsId, agThemeTokenMapClassname, } from './grid-pro.types';
19
19
  import { logger, mergeAndDedupColDefWithColumnState } from './utils';
20
20
  GridProGenesisDatasource;
21
- GridProGenesisDatasourceNext;
21
+ GridProClientSideDatasource;
22
+ GridProServerSideDatasource;
22
23
  GridProCell;
23
- GridColumn;
24
+ GridProColumn;
24
25
  ModuleRegistry.registerModules([CsvExportModule, ClientSideRowModelModule]);
25
26
  /**
26
27
  * Convert string values from 'camelCase' to 'kebab-case'
@@ -3024,8 +3024,8 @@
3024
3024
  },
3025
3025
  {
3026
3026
  "kind": "Reference",
3027
- "text": "GridColumn",
3028
- "canonicalReference": "@genesislcap/grid-pro!GridColumn:class"
3027
+ "text": "GridProColumn",
3028
+ "canonicalReference": "@genesislcap/grid-pro!GridProColumn:class"
3029
3029
  },
3030
3030
  {
3031
3031
  "kind": "Content",
@@ -4593,135 +4593,6 @@
4593
4593
  "endIndex": 6
4594
4594
  }
4595
4595
  },
4596
- {
4597
- "kind": "Class",
4598
- "canonicalReference": "@genesislcap/grid-pro!GridColumn:class",
4599
- "docComment": "/**\n * The Grid Pro Column element.\n *\n * @remarks\n *\n * Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.\n *\n * @public\n */\n",
4600
- "excerptTokens": [
4601
- {
4602
- "kind": "Content",
4603
- "text": "export declare class GridColumn extends "
4604
- },
4605
- {
4606
- "kind": "Reference",
4607
- "text": "FoundationElement",
4608
- "canonicalReference": "@microsoft/fast-foundation!FoundationElement:class"
4609
- },
4610
- {
4611
- "kind": "Content",
4612
- "text": " "
4613
- }
4614
- ],
4615
- "fileUrlPath": "src/column/column.ts",
4616
- "releaseTag": "Public",
4617
- "isAbstract": false,
4618
- "name": "GridColumn",
4619
- "preserveMemberOrder": false,
4620
- "members": [
4621
- {
4622
- "kind": "Property",
4623
- "canonicalReference": "@genesislcap/grid-pro!GridColumn#definition:member",
4624
- "docComment": "",
4625
- "excerptTokens": [
4626
- {
4627
- "kind": "Content",
4628
- "text": "definition: "
4629
- },
4630
- {
4631
- "kind": "Reference",
4632
- "text": "ColDef",
4633
- "canonicalReference": "@ag-grid-community/core!ColDef:interface"
4634
- },
4635
- {
4636
- "kind": "Content",
4637
- "text": ";"
4638
- }
4639
- ],
4640
- "isReadonly": false,
4641
- "isOptional": false,
4642
- "releaseTag": "Public",
4643
- "name": "definition",
4644
- "propertyTypeTokenRange": {
4645
- "startIndex": 1,
4646
- "endIndex": 2
4647
- },
4648
- "isStatic": false,
4649
- "isProtected": false,
4650
- "isAbstract": false
4651
- },
4652
- {
4653
- "kind": "Property",
4654
- "canonicalReference": "@genesislcap/grid-pro!GridColumn#slottedAgCell:member",
4655
- "docComment": "",
4656
- "excerptTokens": [
4657
- {
4658
- "kind": "Content",
4659
- "text": "slottedAgCell: "
4660
- },
4661
- {
4662
- "kind": "Reference",
4663
- "text": "HTMLElement",
4664
- "canonicalReference": "!HTMLElement:interface"
4665
- },
4666
- {
4667
- "kind": "Content",
4668
- "text": "[]"
4669
- },
4670
- {
4671
- "kind": "Content",
4672
- "text": ";"
4673
- }
4674
- ],
4675
- "isReadonly": false,
4676
- "isOptional": false,
4677
- "releaseTag": "Public",
4678
- "name": "slottedAgCell",
4679
- "propertyTypeTokenRange": {
4680
- "startIndex": 1,
4681
- "endIndex": 3
4682
- },
4683
- "isStatic": false,
4684
- "isProtected": false,
4685
- "isAbstract": false
4686
- },
4687
- {
4688
- "kind": "Method",
4689
- "canonicalReference": "@genesislcap/grid-pro!GridColumn#slottedAgCellChanged:member(1)",
4690
- "docComment": "",
4691
- "excerptTokens": [
4692
- {
4693
- "kind": "Content",
4694
- "text": "slottedAgCellChanged(): "
4695
- },
4696
- {
4697
- "kind": "Content",
4698
- "text": "void"
4699
- },
4700
- {
4701
- "kind": "Content",
4702
- "text": ";"
4703
- }
4704
- ],
4705
- "isStatic": false,
4706
- "returnTypeTokenRange": {
4707
- "startIndex": 1,
4708
- "endIndex": 2
4709
- },
4710
- "releaseTag": "Public",
4711
- "isProtected": false,
4712
- "overloadIndex": 1,
4713
- "parameters": [],
4714
- "isOptional": false,
4715
- "isAbstract": false,
4716
- "name": "slottedAgCellChanged"
4717
- }
4718
- ],
4719
- "extendsTokenRange": {
4720
- "startIndex": 1,
4721
- "endIndex": 2
4722
- },
4723
- "implementsTokenRanges": []
4724
- },
4725
4596
  {
4726
4597
  "kind": "TypeAlias",
4727
4598
  "canonicalReference": "@genesislcap/grid-pro!GridComponents:type",
@@ -6548,6 +6419,166 @@
6548
6419
  }
6549
6420
  ]
6550
6421
  },
6422
+ {
6423
+ "kind": "Class",
6424
+ "canonicalReference": "@genesislcap/grid-pro!GridProClientSideDatasource:class",
6425
+ "docComment": "/**\n * The Genesis Datasource element, for client-side | CSRM-compatible data fetching and used exclusively by the GridPro element.\n *\n * @remarks\n *\n * Only supports Client-Side Row Model.\n *\n * @public\n */\n",
6426
+ "excerptTokens": [
6427
+ {
6428
+ "kind": "Content",
6429
+ "text": "export declare class GridProClientSideDatasource extends "
6430
+ },
6431
+ {
6432
+ "kind": "Reference",
6433
+ "text": "GridProGenesisDatasource",
6434
+ "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource:class"
6435
+ },
6436
+ {
6437
+ "kind": "Content",
6438
+ "text": " "
6439
+ }
6440
+ ],
6441
+ "fileUrlPath": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts",
6442
+ "releaseTag": "Public",
6443
+ "isAbstract": false,
6444
+ "name": "GridProClientSideDatasource",
6445
+ "preserveMemberOrder": false,
6446
+ "members": [],
6447
+ "extendsTokenRange": {
6448
+ "startIndex": 1,
6449
+ "endIndex": 2
6450
+ },
6451
+ "implementsTokenRanges": []
6452
+ },
6453
+ {
6454
+ "kind": "Class",
6455
+ "canonicalReference": "@genesislcap/grid-pro!GridProColumn:class",
6456
+ "docComment": "/**\n * The Grid Pro Column element.\n *\n * @remarks\n *\n * Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.\n *\n * @public\n */\n",
6457
+ "excerptTokens": [
6458
+ {
6459
+ "kind": "Content",
6460
+ "text": "export declare class GridProColumn extends "
6461
+ },
6462
+ {
6463
+ "kind": "Reference",
6464
+ "text": "FoundationElement",
6465
+ "canonicalReference": "@microsoft/fast-foundation!FoundationElement:class"
6466
+ },
6467
+ {
6468
+ "kind": "Content",
6469
+ "text": " "
6470
+ }
6471
+ ],
6472
+ "fileUrlPath": "src/column/column.ts",
6473
+ "releaseTag": "Public",
6474
+ "isAbstract": false,
6475
+ "name": "GridProColumn",
6476
+ "preserveMemberOrder": false,
6477
+ "members": [
6478
+ {
6479
+ "kind": "Property",
6480
+ "canonicalReference": "@genesislcap/grid-pro!GridProColumn#definition:member",
6481
+ "docComment": "",
6482
+ "excerptTokens": [
6483
+ {
6484
+ "kind": "Content",
6485
+ "text": "definition: "
6486
+ },
6487
+ {
6488
+ "kind": "Reference",
6489
+ "text": "ColDef",
6490
+ "canonicalReference": "@ag-grid-community/core!ColDef:interface"
6491
+ },
6492
+ {
6493
+ "kind": "Content",
6494
+ "text": ";"
6495
+ }
6496
+ ],
6497
+ "isReadonly": false,
6498
+ "isOptional": false,
6499
+ "releaseTag": "Public",
6500
+ "name": "definition",
6501
+ "propertyTypeTokenRange": {
6502
+ "startIndex": 1,
6503
+ "endIndex": 2
6504
+ },
6505
+ "isStatic": false,
6506
+ "isProtected": false,
6507
+ "isAbstract": false
6508
+ },
6509
+ {
6510
+ "kind": "Property",
6511
+ "canonicalReference": "@genesislcap/grid-pro!GridProColumn#slottedAgCell:member",
6512
+ "docComment": "",
6513
+ "excerptTokens": [
6514
+ {
6515
+ "kind": "Content",
6516
+ "text": "slottedAgCell: "
6517
+ },
6518
+ {
6519
+ "kind": "Reference",
6520
+ "text": "HTMLElement",
6521
+ "canonicalReference": "!HTMLElement:interface"
6522
+ },
6523
+ {
6524
+ "kind": "Content",
6525
+ "text": "[]"
6526
+ },
6527
+ {
6528
+ "kind": "Content",
6529
+ "text": ";"
6530
+ }
6531
+ ],
6532
+ "isReadonly": false,
6533
+ "isOptional": false,
6534
+ "releaseTag": "Public",
6535
+ "name": "slottedAgCell",
6536
+ "propertyTypeTokenRange": {
6537
+ "startIndex": 1,
6538
+ "endIndex": 3
6539
+ },
6540
+ "isStatic": false,
6541
+ "isProtected": false,
6542
+ "isAbstract": false
6543
+ },
6544
+ {
6545
+ "kind": "Method",
6546
+ "canonicalReference": "@genesislcap/grid-pro!GridProColumn#slottedAgCellChanged:member(1)",
6547
+ "docComment": "",
6548
+ "excerptTokens": [
6549
+ {
6550
+ "kind": "Content",
6551
+ "text": "slottedAgCellChanged(): "
6552
+ },
6553
+ {
6554
+ "kind": "Content",
6555
+ "text": "void"
6556
+ },
6557
+ {
6558
+ "kind": "Content",
6559
+ "text": ";"
6560
+ }
6561
+ ],
6562
+ "isStatic": false,
6563
+ "returnTypeTokenRange": {
6564
+ "startIndex": 1,
6565
+ "endIndex": 2
6566
+ },
6567
+ "releaseTag": "Public",
6568
+ "isProtected": false,
6569
+ "overloadIndex": 1,
6570
+ "parameters": [],
6571
+ "isOptional": false,
6572
+ "isAbstract": false,
6573
+ "name": "slottedAgCellChanged"
6574
+ }
6575
+ ],
6576
+ "extendsTokenRange": {
6577
+ "startIndex": 1,
6578
+ "endIndex": 2
6579
+ },
6580
+ "implementsTokenRanges": []
6581
+ },
6551
6582
  {
6552
6583
  "kind": "Function",
6553
6584
  "canonicalReference": "@genesislcap/grid-pro!gridProColumns:function(1)",
@@ -23,8 +23,8 @@ import { GridOptions } from '@ag-grid-community/core';
23
23
  import { ICellRendererComp } from '@ag-grid-community/core';
24
24
  import { ICellRendererFunc } from '@ag-grid-community/core';
25
25
  import { ICellRendererParams } from '@ag-grid-community/core';
26
- import { IServerSideDatasource } from '@ag-grid-community/core';
27
- import { IServerSideGetRowsParams } from '@ag-grid-community/core';
26
+ import type { IServerSideDatasource } from '@ag-grid-community/core';
27
+ import type { IServerSideGetRowsParams } from '@ag-grid-community/core';
28
28
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
29
29
  import { Logger } from '@genesislcap/foundation-logger';
30
30
  import { MetadataDetail } from '@genesislcap/foundation-comms';
@@ -383,7 +383,7 @@ export declare const CellTemplate: ViewTemplate<GridProCell, any>;
383
383
  * The Grid Pro Column Template.
384
384
  * @public
385
385
  */
386
- export declare const ColumnTemplate: ViewTemplate<GridColumn, any>;
386
+ export declare const ColumnTemplate: ViewTemplate<GridProColumn, any>;
387
387
 
388
388
  /**
389
389
  * Convert string values from 'camelCase' to 'kebab-case'
@@ -754,17 +754,6 @@ export declare const getTextFieldRendererTemplate: (designSystem?: string) => Vi
754
754
  */
755
755
  export declare const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
756
756
 
757
- /**
758
- * The Grid Pro Column element.
759
- * @remarks Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.
760
- * @public
761
- */
762
- export declare class GridColumn extends FoundationElement {
763
- slottedAgCell: HTMLElement[];
764
- definition: ColDef;
765
- slottedAgCellChanged(): void;
766
- }
767
-
768
757
  /**
769
758
  * Grid Pro Components type, used to define the custom components that will be registered in the grid
770
759
  * @public
@@ -902,10 +891,7 @@ declare const GridPro_base: (new (...args: any[]) => {
902
891
  "__#1@#_cleanupTimeout": NodeJS.Timeout;
903
892
  "__#1@#_shouldForceLifecycle": boolean;
904
893
  cloneNode(deep?: boolean): Node;
905
- deepClone(): Node; /**
906
- * Whether to use the `applyTransactionAsync` function for *remove* transactions
907
- * @remarks Defaults to false
908
- */
894
+ deepClone(): Node;
909
895
  readonly shouldRunDisconnect: boolean;
910
896
  readonly shouldRunConnect: boolean;
911
897
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
@@ -1241,6 +1227,25 @@ export declare class GridProCell extends FoundationElement implements ICellRende
1241
1227
  slottedAgRendererChanged(): void;
1242
1228
  }
1243
1229
 
1230
+ /**
1231
+ * The Genesis Datasource element, for client-side | CSRM-compatible data fetching and used exclusively by the GridPro element.
1232
+ * @remarks Only supports Client-Side Row Model.
1233
+ * @public
1234
+ */
1235
+ export declare class GridProClientSideDatasource extends GridProGenesisDatasource {
1236
+ }
1237
+
1238
+ /**
1239
+ * The Grid Pro Column element.
1240
+ * @remarks Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.
1241
+ * @public
1242
+ */
1243
+ export declare class GridProColumn extends FoundationElement {
1244
+ slottedAgCell: HTMLElement[];
1245
+ definition: ColDef;
1246
+ slottedAgCellChanged(): void;
1247
+ }
1248
+
1244
1249
  /**
1245
1250
  * A directive that renders a set of grid-pro-column elements from a given input binding
1246
1251
  *
@@ -1719,11 +1724,23 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1719
1724
  }) & typeof FoundationElement;
1720
1725
 
1721
1726
  /**
1722
- * The Genesis Datasource (Next) element, for SSRM-compatible data fetching and used exclusively by the GridPro element.
1723
- * @remarks Intended to be the "next version" of the `grid-pro-genesis-datasource` element, supporting SSRM.
1727
+ * The available Grid Pro Renderer Types
1728
+ * @public
1729
+ */
1730
+ export declare enum GridProRendererTypes {
1731
+ action = "action",
1732
+ actionsMenu = "actionsMenu",
1733
+ boolean = "boolean",
1734
+ text = "text",
1735
+ select = "select"
1736
+ }
1737
+
1738
+ /**
1739
+ * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
1740
+ * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
1724
1741
  * @alpha
1725
1742
  */
1726
- export declare class GridProGenesisDatasourceNext extends GridProGenesisDatasourceNext_base {
1743
+ export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
1727
1744
  connect: Connect;
1728
1745
  criteria: string;
1729
1746
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
@@ -1754,7 +1771,7 @@ export declare class GridProGenesisDatasourceNext extends GridProGenesisDatasour
1754
1771
  private getAgColumnDefs;
1755
1772
  }
1756
1773
 
1757
- declare const GridProGenesisDatasourceNext_base: (new (...args: any[]) => {
1774
+ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
1758
1775
  "__#1@#_container": FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
1759
1776
  "__#1@#_latestTokenCode": string;
1760
1777
  "__#1@#_hasFirstLoaded": boolean;
@@ -2080,18 +2097,6 @@ declare const GridProGenesisDatasourceNext_base: (new (...args: any[]) => {
2080
2097
  focus(options?: FocusOptions): void;
2081
2098
  }) & typeof FoundationElement;
2082
2099
 
2083
- /**
2084
- * The available Grid Pro Renderer Types
2085
- * @public
2086
- */
2087
- export declare enum GridProRendererTypes {
2088
- action = "action",
2089
- actionsMenu = "actionsMenu",
2090
- boolean = "boolean",
2091
- text = "text",
2092
- select = "select"
2093
- }
2094
-
2095
2100
  /**
2096
2101
  * The Grid Pro Template.
2097
2102
  * @public
@@ -2154,6 +2159,7 @@ export declare class SelectRenderer extends FoundationElement implements ICellRe
2154
2159
  * @alpha
2155
2160
  */
2156
2161
  export declare class StreamDatasource implements IServerSideDatasource {
2162
+ auth: Auth;
2157
2163
  connect: Connect;
2158
2164
  dataserverStream: SocketObservable<FilteredDataServerResult>;
2159
2165
  private resourceName;
@@ -2164,7 +2170,16 @@ export declare class StreamDatasource implements IServerSideDatasource {
2164
2170
  private maxView;
2165
2171
  private pagination;
2166
2172
  streamSourceRef: string;
2167
- private rowCount;
2173
+ /**
2174
+ * The number of rows in the grid. THIS DO NOT CONSIDER CRITERIA_MATCH scenarios.
2175
+ * @internal
2176
+ */
2177
+ private server_ROWS_COUNT;
2178
+ /**
2179
+ * The number of rows in the grid. THIS IS A LOCAL COUNT CONSIDERING CONSIDER CRITERIA_MATCH scenarios.
2180
+ * @internal
2181
+ */
2182
+ private client_ROWS_COUNT;
2168
2183
  private moreRows;
2169
2184
  private calculatedRowsCount;
2170
2185
  private lastSequenceId;
@@ -2176,6 +2191,7 @@ export declare class StreamDatasource implements IServerSideDatasource {
2176
2191
  private rowId;
2177
2192
  constructor(options: StreamDatasourceOptions);
2178
2193
  getRows(params: IServerSideGetRowsParams): Promise<void>;
2194
+ private dataLogoff;
2179
2195
  private restartSubscription;
2180
2196
  private getOrderByAndToBeSortedColIds;
2181
2197
  private handleInitialStreamLoad;
@@ -9,5 +9,5 @@ The Grid Pro Column Template.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- ColumnTemplate: import("@microsoft/fast-element").ViewTemplate<GridColumn, any>
12
+ ColumnTemplate: import("@microsoft/fast-element").ViewTemplate<GridProColumn, any>
13
13
  ```