@genesislcap/grid-pro 14.141.2 → 14.142.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.
@@ -21,19 +21,21 @@ Only supports Client-Side Row Model.
21
21
 
22
22
  | Property | Modifiers | Type | Description |
23
23
  | --- | --- | --- | --- |
24
+ | [applyAsyncFuncName](./grid-pro.gridprogenesisdatasource.applyasyncfuncname.md) | | string | |
25
+ | [applyFuncName](./grid-pro.gridprogenesisdatasource.applyfuncname.md) | | string | |
24
26
  | [auth](./grid-pro.gridprogenesisdatasource.auth.md) | | Auth | |
25
27
  | [datasource](./grid-pro.gridprogenesisdatasource.datasource.md) | | Datasource | |
26
28
  | [disablePolling](./grid-pro.gridprogenesisdatasource.disablepolling.md) | | boolean | |
27
29
  | [pollingInterval](./grid-pro.gridprogenesisdatasource.pollinginterval.md) | | number | |
28
30
  | [request](./grid-pro.gridprogenesisdatasource.request.md) | | any | |
29
31
  | [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
30
- | [rowDataMapper](./grid-pro.gridprogenesisdatasource.rowdatamapper.md) | | Function | Allows grid data updates to be processed via and external function before applying in grid |
31
- | [rowIdAttr](./grid-pro.gridprogenesisdatasource.rowidattr.md) | | any | <p>Attribute to set an unique identifier for the row.</p><p>Defaults to <code>ROW_REF</code> or <code>RECORD_ID</code> depending on the resource type.</p> |
32
32
 
33
33
  ## Methods
34
34
 
35
35
  | Method | Modifiers | Description |
36
36
  | --- | --- | --- |
37
+ | [applyTransaction(agTransaction)](./grid-pro.gridprogenesisdatasource.applytransaction.md) | | |
38
+ | [applyTransactionAsync(agTransaction, callback)](./grid-pro.gridprogenesisdatasource.applytransactionasync.md) | | |
37
39
  | [connectedCallback()](./grid-pro.gridprogenesisdatasource.connectedcallback.md) | | |
38
40
  | [criteriaChanged(oldCriteria, newCriteria)](./grid-pro.gridprogenesisdatasource.criteriachanged.md) | | |
39
41
  | [deepClone()](./grid-pro.gridprogenesisdatasource.deepclone.md) | | |
@@ -36,12 +36,17 @@ import { ICellRendererParams } from '@ag-grid-community/core';
36
36
  import { InterfaceSymbol } from '@microsoft/fast-foundation';
37
37
  import type { IServerSideDatasource } from '@ag-grid-community/core';
38
38
  import type { IServerSideGetRowsParams } from '@ag-grid-community/core';
39
+ import type { IServerSideRowModel } from '@ag-grid-community/core';
39
40
  import { ITooltipComp } from '@ag-grid-community/core';
40
41
  import { ITooltipParams } from '@ag-grid-community/core';
41
42
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
42
43
  import { Logger } from '@genesislcap/foundation-logger';
43
44
  import { MetadataDetail } from '@genesislcap/foundation-comms';
44
45
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
46
+ import type { RowDataTransaction } from '@ag-grid-community/core';
47
+ import type { RowNodeTransaction } from '@ag-grid-community/core';
48
+ import type { ServerSideTransaction } from '@ag-grid-community/core';
49
+ import type { ServerSideTransactionResult } from '@ag-grid-community/core';
45
50
  import { SocketObservable } from '@genesislcap/foundation-comms';
46
51
  import { Swatch } from '@microsoft/fast-components';
47
52
  import { SwatchRGB } from '@microsoft/fast-components';
@@ -894,6 +899,14 @@ export function gridProColumns<TSource = any>(itemsBinding: Binding<TSource, rea
894
899
  //
895
900
  // @public
896
901
  export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
902
+ // (undocumented)
903
+ applyAsyncFuncName: string;
904
+ // (undocumented)
905
+ applyFuncName: string;
906
+ // (undocumented)
907
+ applyTransaction(agTransaction: RowDataTransaction): RowNodeTransaction | null | undefined;
908
+ // (undocumented)
909
+ applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: RowNodeTransaction) => void): void;
897
910
  // (undocumented)
898
911
  auth: Auth;
899
912
  // (undocumented)
@@ -926,8 +939,6 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
926
939
  restart(): void;
927
940
  // (undocumented)
928
941
  restartOnReconnection: boolean;
929
- rowDataMapper: Function;
930
- rowIdAttr: any;
931
942
  // (undocumented)
932
943
  setFilter(fieldName: string, newFilter: string): void;
933
944
  }
@@ -962,6 +973,14 @@ export enum GridProRendererTypes {
962
973
  //
963
974
  // @alpha
964
975
  export class GridProServerSideDatasource extends GridProServerSideDatasource_base {
976
+ // (undocumented)
977
+ applyAsyncFuncName: string;
978
+ // (undocumented)
979
+ applyFuncName: string;
980
+ // (undocumented)
981
+ applyTransaction(agTransaction: RowDataTransaction): ServerSideTransactionResult;
982
+ // (undocumented)
983
+ applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: ServerSideTransactionResult) => void): void;
965
984
  // (undocumented)
966
985
  connectedCallback(): void;
967
986
  // (undocumented)
@@ -983,7 +1002,7 @@ export class GridProServerSideDatasource extends GridProServerSideDatasource_bas
983
1002
  // (undocumented)
984
1003
  restart(): void;
985
1004
  // (undocumented)
986
- rowId: string;
1005
+ get rowModel(): IServerSideRowModel;
987
1006
  }
988
1007
 
989
1008
  // @public
@@ -1077,18 +1096,6 @@ export interface NumberEditorParams extends ICellEditorParams {
1077
1096
  withFormatting: boolean;
1078
1097
  }
1079
1098
 
1080
- // Warning: (ae-internal-missing-underscore) The name "OperationType" should be prefixed with an underscore because the declaration is marked as @internal
1081
- //
1082
- // @internal
1083
- export enum OperationType {
1084
- // (undocumented)
1085
- Add = "add",
1086
- // (undocumented)
1087
- Remove = "remove",
1088
- // (undocumented)
1089
- Update = "update"
1090
- }
1091
-
1092
1099
  // @public
1093
1100
  export class SelectEditor extends FoundationElement implements ICellEditorComp {
1094
1101
  // (undocumented)
@@ -1153,11 +1160,15 @@ export class SelectRenderer extends FoundationElement implements ICellRendererCo
1153
1160
  value: string;
1154
1161
  }
1155
1162
 
1163
+ // Warning: (ae-forgotten-export) The symbol "StreamBaseDatasource" needs to be exported by the entry point index.d.ts
1164
+ //
1156
1165
  // @alpha
1157
- export class StreamDatasource implements IServerSideDatasource {
1166
+ export class StreamDatasource extends StreamBaseDatasource implements IServerSideDatasource {
1158
1167
  constructor(options: StreamDatasourceOptions);
1159
1168
  // (undocumented)
1160
1169
  auth: Auth;
1170
+ // @internal
1171
+ client_ROWS_COUNT: number;
1161
1172
  // (undocumented)
1162
1173
  connect: Connect;
1163
1174
  // (undocumented)
@@ -1166,6 +1177,8 @@ export class StreamDatasource implements IServerSideDatasource {
1166
1177
  getRows(params: IServerSideGetRowsParams): Promise<void>;
1167
1178
  // (undocumented)
1168
1179
  resourceParams: any;
1180
+ // @internal
1181
+ server_ROWS_COUNT: number;
1169
1182
  // (undocumented)
1170
1183
  streamSourceRef: string;
1171
1184
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.141.2",
4
+ "version": "14.142.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -30,15 +30,15 @@
30
30
  "test:debug": "genx test --debug"
31
31
  },
32
32
  "devDependencies": {
33
- "@genesislcap/foundation-testing": "14.141.2",
34
- "@genesislcap/genx": "14.141.2",
33
+ "@genesislcap/foundation-testing": "14.142.0",
34
+ "@genesislcap/genx": "14.142.0",
35
35
  "rimraf": "^3.0.2"
36
36
  },
37
37
  "dependencies": {
38
- "@genesislcap/foundation-comms": "14.141.2",
39
- "@genesislcap/foundation-logger": "14.141.2",
40
- "@genesislcap/foundation-ui": "14.141.2",
41
- "@genesislcap/foundation-utils": "14.141.2",
38
+ "@genesislcap/foundation-comms": "14.142.0",
39
+ "@genesislcap/foundation-logger": "14.142.0",
40
+ "@genesislcap/foundation-ui": "14.142.0",
41
+ "@genesislcap/foundation-utils": "14.142.0",
42
42
  "@microsoft/fast-colors": "^5.3.1",
43
43
  "@microsoft/fast-components": "^2.30.6",
44
44
  "@microsoft/fast-element": "^1.12.0",
@@ -62,5 +62,5 @@
62
62
  "access": "public"
63
63
  },
64
64
  "customElements": "dist/custom-elements.json",
65
- "gitHead": "51b9d2cd8291ce37769cbbb5135f19b8a726f642"
65
+ "gitHead": "8a30f7d48c453f8eaa52ea7c9f6c3a38a96d4a75"
66
66
  }
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [rowDataMapper](./grid-pro.gridprogenesisdatasource.rowdatamapper.md)
4
-
5
- ## GridProGenesisDatasource.rowDataMapper property
6
-
7
- Allows grid data updates to be processed via and external function before applying in grid
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- rowDataMapper: Function;
13
- ```
@@ -1,15 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [rowIdAttr](./grid-pro.gridprogenesisdatasource.rowidattr.md)
4
-
5
- ## GridProGenesisDatasource.rowIdAttr property
6
-
7
- Attribute to set an unique identifier for the row.
8
-
9
- Defaults to `ROW_REF` or `RECORD_ID` depending on the resource type.
10
-
11
- **Signature:**
12
-
13
- ```typescript
14
- rowIdAttr: any;
15
- ```