@genesislcap/grid-pro 14.34.0 → 14.35.1-alpha-986c992bd.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.
@@ -3289,11 +3289,14 @@
3289
3289
  },
3290
3290
  {
3291
3291
  "kind": "field",
3292
- "name": "rowId",
3292
+ "name": "rowId"
3293
+ },
3294
+ {
3295
+ "kind": "field",
3296
+ "name": "datasourceKey",
3293
3297
  "type": {
3294
3298
  "text": "string"
3295
- },
3296
- "default": "'ROW_REF'"
3299
+ }
3297
3300
  },
3298
3301
  {
3299
3302
  "kind": "field",
@@ -3327,6 +3330,15 @@
3327
3330
  },
3328
3331
  "privacy": "private"
3329
3332
  },
3333
+ {
3334
+ "kind": "field",
3335
+ "name": "isRequestServer",
3336
+ "type": {
3337
+ "text": "boolean"
3338
+ },
3339
+ "privacy": "private",
3340
+ "default": "false"
3341
+ },
3330
3342
  {
3331
3343
  "kind": "field",
3332
3344
  "name": "requiresFullRowDataAndColDefs",
@@ -3406,6 +3418,15 @@
3406
3418
  "privacy": "private",
3407
3419
  "readonly": true
3408
3420
  },
3421
+ {
3422
+ "kind": "field",
3423
+ "name": "rowIdByResourceType",
3424
+ "type": {
3425
+ "text": "string"
3426
+ },
3427
+ "privacy": "private",
3428
+ "readonly": true
3429
+ },
3409
3430
  {
3410
3431
  "kind": "method",
3411
3432
  "name": "init",
@@ -3687,11 +3708,14 @@
3687
3708
  },
3688
3709
  {
3689
3710
  "name": "row-id",
3711
+ "fieldName": "rowId"
3712
+ },
3713
+ {
3714
+ "name": "datasoruce-key",
3690
3715
  "type": {
3691
3716
  "text": "string"
3692
3717
  },
3693
- "default": "'ROW_REF'",
3694
- "fieldName": "rowId"
3718
+ "fieldName": "datasourceKey"
3695
3719
  },
3696
3720
  {
3697
3721
  "name": "restart-on-reconnection",
@@ -342,11 +342,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
342
342
  resourceName: string;
343
343
  resourceNameChanged(oldValue: string, newValue: string): void;
344
344
  reverse: boolean;
345
- rowId: string;
345
+ rowId: any;
346
+ datasourceKey: string;
346
347
  restartOnReconnection: boolean;
347
348
  private dataSub;
348
349
  private updateSub;
349
350
  private connectionSub;
351
+ private isRequestServer;
350
352
  private requiresFullRowDataAndColDefs;
351
353
  private dataSubWasLoggedOff;
352
354
  private rows;
@@ -358,12 +360,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
358
360
  disconnectedCallback(): void;
359
361
  deepClone(): Node;
360
362
  private get agGrid();
363
+ private get rowIdByResourceType();
361
364
  /**
362
365
  * Initializes the datasource.
363
366
  * @public
364
367
  * @remarks This method is called automatically when the element is connected to the DOM.
365
368
  */
366
- init(): void;
369
+ init(): Promise<void>;
367
370
  /**
368
371
  * Deinitialises the datasource, resetting it to its initial state.
369
372
  * @public
@@ -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,OAAO,EAEP,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB/D;;;;GAIG;AACH,qBA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C,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA0CvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { Connect, dataServerResultFilter, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, normaliseCriteria, } from '@genesislcap/foundation-comms';
2
+ import { Connect, dataServerResultFilter, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, normaliseCriteria, ResourceType, } from '@genesislcap/foundation-comms';
3
3
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
4
4
  import { attr, customElement, DOM, observable } from '@microsoft/fast-element';
5
5
  import { FoundationElement } from '@microsoft/fast-foundation';
@@ -24,8 +24,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
24
24
  this.maxView = DatasourceDefaults.MAX_VIEW_1000;
25
25
  this.movingView = false;
26
26
  this.reverse = false;
27
- this.rowId = 'ROW_REF';
28
27
  this.restartOnReconnection = false;
28
+ this.isRequestServer = false;
29
29
  this.requiresFullRowDataAndColDefs = true;
30
30
  this.dataSubWasLoggedOff = false;
31
31
  this.rows = new Map();
@@ -86,27 +86,41 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
86
86
  return this.parentElement;
87
87
  }
88
88
  // Genesis Specific
89
+ get rowIdByResourceType() {
90
+ if (this.rowId)
91
+ return this.rowId; // Allow user to override
92
+ if (this.isRequestServer)
93
+ return 'RECORD_ID'; // REQUEST_SERVER default record id
94
+ return 'ROW_REF'; // DATASERVER default record id
95
+ }
89
96
  /**
90
97
  * Initializes the datasource.
91
98
  * @public
92
99
  * @remarks This method is called automatically when the element is connected to the DOM.
93
100
  */
94
101
  init() {
95
- if (this.agGrid && this.resourceName && this.connect.isConnected) {
96
- const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId] }, this.deferredGridOptions);
97
- this.agGrid.gridOptions = Object.assign({}, gridOptions);
98
- this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
99
- yield this.loadResourceData();
100
- }), { once: true });
101
- const filterDebounceTime = 600;
102
- this.updateSub = this.update
103
- .pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
104
- .subscribe((value) => {
105
- this.loadResourceData(withoutFullInit);
106
- });
107
- return;
108
- }
109
- logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ if (this.agGrid &&
104
+ this.datasource.validResourceName(this.resourceName) &&
105
+ this.connect.isConnected) {
106
+ const meta = yield this.connect.getMetadata(this.resourceName);
107
+ this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
108
+ this.rowId = this.rowIdByResourceType;
109
+ const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId] }, this.deferredGridOptions);
110
+ this.agGrid.gridOptions = Object.assign({}, gridOptions);
111
+ this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
112
+ yield this.loadResourceData();
113
+ }), { once: true });
114
+ const filterDebounceTime = 600;
115
+ this.updateSub = this.update
116
+ .pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
117
+ .subscribe((value) => {
118
+ this.loadResourceData(withoutFullInit);
119
+ });
120
+ return;
121
+ }
122
+ logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
123
+ });
110
124
  }
111
125
  /**
112
126
  * Deinitialises the datasource, resetting it to its initial state.
@@ -133,6 +147,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
133
147
  this.connectionSub.unsubscribe();
134
148
  this.connectionSub = undefined;
135
149
  }
150
+ this.isRequestServer = false;
136
151
  this.requiresFullRowDataAndColDefs = true;
137
152
  this.dataSubWasLoggedOff = false;
138
153
  this.dataLogoff();
@@ -165,6 +180,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
165
180
  this.rows = new Map();
166
181
  this.agTransaction = undefined;
167
182
  (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setRowData([]);
183
+ this.rowId = undefined;
168
184
  }
169
185
  updateRowData(rowData) {
170
186
  const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
@@ -218,7 +234,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
218
234
  if (Array.isArray(result))
219
235
  return result;
220
236
  if (result.REPLY) {
221
- return result.REPLY;
237
+ return this.datasourceKey && result.REPLY.length > 0
238
+ ? result.REPLY[0][this.datasourceKey]
239
+ : result.REPLY;
222
240
  }
223
241
  if (result.ROW) {
224
242
  return dataServerResultFilter(result).inserts;
@@ -242,8 +260,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
242
260
  handleStreamResult(result) {
243
261
  if (!result)
244
262
  return;
245
- const isRequestServer = result.hasOwnProperty('REPLY');
246
- if (isRequestServer) {
263
+ if (this.isRequestServer) {
247
264
  this.applyRequestServerData(result);
248
265
  }
249
266
  else {
@@ -251,26 +268,37 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
251
268
  }
252
269
  }
253
270
  applyRequestServerData(requestServerResult) {
254
- var _a, _b;
271
+ var _a;
255
272
  if (!Array.isArray(requestServerResult.REPLY) ||
256
273
  !((_a = requestServerResult.MESSAGE_TYPE) === null || _a === void 0 ? void 0 : _a.startsWith('REP_'))) {
257
274
  logger.error('received invalid RequestServerResult', requestServerResult);
258
275
  return;
259
276
  }
277
+ const requestServerData = this.datasourceKey && requestServerResult.REPLY.length > 0
278
+ ? requestServerResult.REPLY[0][this.datasourceKey]
279
+ : requestServerResult.REPLY;
260
280
  if (this.requiresFullRowDataAndColDefs) {
261
- if (this.rowId !== 'ROW_REF') {
262
- (_b = requestServerResult.REPLY) === null || _b === void 0 ? void 0 : _b.forEach((insertData) => {
263
- this.rows.set(insertData[this.rowId], insertData);
264
- });
265
- }
266
- const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerResult.REPLY;
281
+ requestServerData === null || requestServerData === void 0 ? void 0 : requestServerData.forEach((insertData) => {
282
+ this.rows.set(insertData[this.rowId], insertData);
283
+ });
284
+ const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerData;
267
285
  this.updateRowData(rowData);
268
286
  return;
269
287
  }
270
288
  this.agTransaction = { add: [], remove: [], update: [] };
271
- this.handleStreamInserts(requestServerResult.REPLY);
272
- const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
289
+ const rowsToUpdate = [];
290
+ const rowsToDelete = Array.from(this.rows.values()).filter((row) => {
291
+ const match = requestServerData.find((data) => data[this.rowId] === row[this.rowId]);
292
+ if (match) {
293
+ rowsToUpdate.push(match);
294
+ return false; // don't delete rows that need to be updated
295
+ }
296
+ return true; // delete rows that don't exist in requestServerData
297
+ });
298
+ const rowsToInsert = requestServerData.filter((data) => !this.rows.has(data[this.rowId]));
299
+ this.handleStreamInserts(rowsToInsert);
273
300
  this.handleStreamDeletes(rowsToDelete);
301
+ this.handleStreamUpdates(rowsToUpdate);
274
302
  this.agGrid.gridApi.applyTransaction(this.agTransaction);
275
303
  }
276
304
  applyDataserverData(dataServerResult) {
@@ -407,6 +435,9 @@ __decorate([
407
435
  __decorate([
408
436
  attr({ attribute: 'row-id' })
409
437
  ], GridProGenesisDatasource.prototype, "rowId", void 0);
438
+ __decorate([
439
+ attr({ attribute: 'datasoruce-key' })
440
+ ], GridProGenesisDatasource.prototype, "datasourceKey", void 0);
410
441
  __decorate([
411
442
  attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
412
443
  ], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
@@ -6598,6 +6598,36 @@
6598
6598
  "isProtected": false,
6599
6599
  "isAbstract": false
6600
6600
  },
6601
+ {
6602
+ "kind": "Property",
6603
+ "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#datasourceKey:member",
6604
+ "docComment": "",
6605
+ "excerptTokens": [
6606
+ {
6607
+ "kind": "Content",
6608
+ "text": "datasourceKey: "
6609
+ },
6610
+ {
6611
+ "kind": "Content",
6612
+ "text": "string"
6613
+ },
6614
+ {
6615
+ "kind": "Content",
6616
+ "text": ";"
6617
+ }
6618
+ ],
6619
+ "isReadonly": false,
6620
+ "isOptional": false,
6621
+ "releaseTag": "Public",
6622
+ "name": "datasourceKey",
6623
+ "propertyTypeTokenRange": {
6624
+ "startIndex": 1,
6625
+ "endIndex": 2
6626
+ },
6627
+ "isStatic": false,
6628
+ "isProtected": false,
6629
+ "isAbstract": false
6630
+ },
6601
6631
  {
6602
6632
  "kind": "Method",
6603
6633
  "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#deepClone:member(1)",
@@ -6762,9 +6792,14 @@
6762
6792
  "kind": "Content",
6763
6793
  "text": "init(): "
6764
6794
  },
6795
+ {
6796
+ "kind": "Reference",
6797
+ "text": "Promise",
6798
+ "canonicalReference": "!Promise:interface"
6799
+ },
6765
6800
  {
6766
6801
  "kind": "Content",
6767
- "text": "void"
6802
+ "text": "<void>"
6768
6803
  },
6769
6804
  {
6770
6805
  "kind": "Content",
@@ -6774,7 +6809,7 @@
6774
6809
  "isStatic": false,
6775
6810
  "returnTypeTokenRange": {
6776
6811
  "startIndex": 1,
6777
- "endIndex": 2
6812
+ "endIndex": 3
6778
6813
  },
6779
6814
  "releaseTag": "Public",
6780
6815
  "isProtected": false,
@@ -7239,7 +7274,7 @@
7239
7274
  },
7240
7275
  {
7241
7276
  "kind": "Content",
7242
- "text": "string"
7277
+ "text": "any"
7243
7278
  },
7244
7279
  {
7245
7280
  "kind": "Content",
@@ -1225,11 +1225,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1225
1225
  resourceName: string;
1226
1226
  resourceNameChanged(oldValue: string, newValue: string): void;
1227
1227
  reverse: boolean;
1228
- rowId: string;
1228
+ rowId: any;
1229
+ datasourceKey: string;
1229
1230
  restartOnReconnection: boolean;
1230
1231
  private dataSub;
1231
1232
  private updateSub;
1232
1233
  private connectionSub;
1234
+ private isRequestServer;
1233
1235
  private requiresFullRowDataAndColDefs;
1234
1236
  private dataSubWasLoggedOff;
1235
1237
  private rows;
@@ -1241,12 +1243,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1241
1243
  disconnectedCallback(): void;
1242
1244
  deepClone(): Node;
1243
1245
  private get agGrid();
1246
+ private get rowIdByResourceType();
1244
1247
  /**
1245
1248
  * Initializes the datasource.
1246
1249
  * @public
1247
1250
  * @remarks This method is called automatically when the element is connected to the DOM.
1248
1251
  */
1249
- init(): void;
1252
+ init(): Promise<void>;
1250
1253
  /**
1251
1254
  * Deinitialises the datasource, resetting it to its initial state.
1252
1255
  * @public
@@ -0,0 +1,11 @@
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; [datasourceKey](./grid-pro.gridprogenesisdatasource.datasourcekey.md)
4
+
5
+ ## GridProGenesisDatasource.datasourceKey property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ datasourceKey: string;
11
+ ```
@@ -9,11 +9,11 @@ Initializes the datasource.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- init(): void;
12
+ init(): Promise<void>;
13
13
  ```
14
14
  **Returns:**
15
15
 
16
- void
16
+ Promise&lt;void&gt;
17
17
 
18
18
  ## Remarks
19
19
 
@@ -24,6 +24,7 @@ Only supports Client-Side Row Model.
24
24
  | [connect](./grid-pro.gridprogenesisdatasource.connect.md) | | Connect | |
25
25
  | [criteria](./grid-pro.gridprogenesisdatasource.criteria.md) | | string | |
26
26
  | [datasource](./grid-pro.gridprogenesisdatasource.datasource.md) | | Datasource | |
27
+ | [datasourceKey](./grid-pro.gridprogenesisdatasource.datasourcekey.md) | | string | |
27
28
  | [deferredGridOptions](./grid-pro.gridprogenesisdatasource.deferredgridoptions.md) | | GridOptions | |
28
29
  | [fields](./grid-pro.gridprogenesisdatasource.fields.md) | | string | |
29
30
  | [isSnapshot](./grid-pro.gridprogenesisdatasource.issnapshot.md) | | boolean | |
@@ -35,7 +36,7 @@ Only supports Client-Side Row Model.
35
36
  | [resourceName](./grid-pro.gridprogenesisdatasource.resourcename.md) | | string | |
36
37
  | [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
37
38
  | [reverse](./grid-pro.gridprogenesisdatasource.reverse.md) | | boolean | |
38
- | [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | | string | |
39
+ | [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | | any | |
39
40
 
40
41
  ## Methods
41
42
 
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- rowId: string;
10
+ rowId: any;
11
11
  ```
@@ -649,6 +649,8 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
649
649
  // (undocumented)
650
650
  datasource: Datasource;
651
651
  // (undocumented)
652
+ datasourceKey: string;
653
+ // (undocumented)
652
654
  deepClone(): Node;
653
655
  // (undocumented)
654
656
  deferredGridOptions: GridOptions;
@@ -657,7 +659,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
657
659
  disconnectedCallback(): void;
658
660
  // (undocumented)
659
661
  fields: string;
660
- init(): void;
662
+ init(): Promise<void>;
661
663
  // (undocumented)
662
664
  isSnapshot: boolean;
663
665
  // (undocumented)
@@ -684,7 +686,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
684
686
  // (undocumented)
685
687
  reverse: boolean;
686
688
  // (undocumented)
687
- rowId: string;
689
+ rowId: any;
688
690
  // (undocumented)
689
691
  setFilter(fieldName: string, newFilter: string): void;
690
692
  }
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.34.0",
4
+ "version": "14.35.1-alpha-986c992bd.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -21,14 +21,14 @@
21
21
  "serve": "genx serve"
22
22
  },
23
23
  "devDependencies": {
24
- "@genesislcap/foundation-testing": "^14.34.0",
25
- "@genesislcap/genx": "^14.34.0",
24
+ "@genesislcap/foundation-testing": "14.35.1-alpha-986c992bd.0",
25
+ "@genesislcap/genx": "14.35.1-alpha-986c992bd.0",
26
26
  "bulma": "^0.9.3"
27
27
  },
28
28
  "dependencies": {
29
- "@genesislcap/foundation-comms": "^14.34.0",
30
- "@genesislcap/foundation-ui": "^14.34.0",
31
- "@genesislcap/foundation-utils": "^14.34.0",
29
+ "@genesislcap/foundation-comms": "14.35.1-alpha-986c992bd.0",
30
+ "@genesislcap/foundation-ui": "14.35.1-alpha-986c992bd.0",
31
+ "@genesislcap/foundation-utils": "14.35.1-alpha-986c992bd.0",
32
32
  "@microsoft/fast-colors": "^5.1.4",
33
33
  "@microsoft/fast-components": "^2.21.3",
34
34
  "@microsoft/fast-element": "^1.7.0",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "3ae9d672ca6395343ce0c8c1363b0c47c3276237"
58
+ "gitHead": "541db12be749c48e6a6006053330e7384aa3a610"
59
59
  }