@genesislcap/grid-pro 14.35.1-alpha-986c992bd.0 → 14.36.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 +5 -29
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +2 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +29 -60
- package/dist/grid-pro.api.json +3 -38
- package/dist/grid-pro.d.ts +2 -5
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +2 -2
- package/docs/api/grid-pro.gridprogenesisdatasource.md +1 -2
- package/docs/api/grid-pro.gridprogenesisdatasource.rowid.md +1 -1
- package/docs/api-report.md +2 -4
- package/package.json +7 -7
- package/docs/api/grid-pro.gridprogenesisdatasource.datasourcekey.md +0 -11
|
@@ -3289,14 +3289,11 @@
|
|
|
3289
3289
|
},
|
|
3290
3290
|
{
|
|
3291
3291
|
"kind": "field",
|
|
3292
|
-
"name": "rowId"
|
|
3293
|
-
},
|
|
3294
|
-
{
|
|
3295
|
-
"kind": "field",
|
|
3296
|
-
"name": "datasourceKey",
|
|
3292
|
+
"name": "rowId",
|
|
3297
3293
|
"type": {
|
|
3298
3294
|
"text": "string"
|
|
3299
|
-
}
|
|
3295
|
+
},
|
|
3296
|
+
"default": "'ROW_REF'"
|
|
3300
3297
|
},
|
|
3301
3298
|
{
|
|
3302
3299
|
"kind": "field",
|
|
@@ -3330,15 +3327,6 @@
|
|
|
3330
3327
|
},
|
|
3331
3328
|
"privacy": "private"
|
|
3332
3329
|
},
|
|
3333
|
-
{
|
|
3334
|
-
"kind": "field",
|
|
3335
|
-
"name": "isRequestServer",
|
|
3336
|
-
"type": {
|
|
3337
|
-
"text": "boolean"
|
|
3338
|
-
},
|
|
3339
|
-
"privacy": "private",
|
|
3340
|
-
"default": "false"
|
|
3341
|
-
},
|
|
3342
3330
|
{
|
|
3343
3331
|
"kind": "field",
|
|
3344
3332
|
"name": "requiresFullRowDataAndColDefs",
|
|
@@ -3418,15 +3406,6 @@
|
|
|
3418
3406
|
"privacy": "private",
|
|
3419
3407
|
"readonly": true
|
|
3420
3408
|
},
|
|
3421
|
-
{
|
|
3422
|
-
"kind": "field",
|
|
3423
|
-
"name": "rowIdByResourceType",
|
|
3424
|
-
"type": {
|
|
3425
|
-
"text": "string"
|
|
3426
|
-
},
|
|
3427
|
-
"privacy": "private",
|
|
3428
|
-
"readonly": true
|
|
3429
|
-
},
|
|
3430
3409
|
{
|
|
3431
3410
|
"kind": "method",
|
|
3432
3411
|
"name": "init",
|
|
@@ -3708,14 +3687,11 @@
|
|
|
3708
3687
|
},
|
|
3709
3688
|
{
|
|
3710
3689
|
"name": "row-id",
|
|
3711
|
-
"fieldName": "rowId"
|
|
3712
|
-
},
|
|
3713
|
-
{
|
|
3714
|
-
"name": "datasoruce-key",
|
|
3715
3690
|
"type": {
|
|
3716
3691
|
"text": "string"
|
|
3717
3692
|
},
|
|
3718
|
-
"
|
|
3693
|
+
"default": "'ROW_REF'",
|
|
3694
|
+
"fieldName": "rowId"
|
|
3719
3695
|
},
|
|
3720
3696
|
{
|
|
3721
3697
|
"name": "restart-on-reconnection",
|
|
@@ -342,13 +342,11 @@ 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:
|
|
346
|
-
datasourceKey: string;
|
|
345
|
+
rowId: string;
|
|
347
346
|
restartOnReconnection: boolean;
|
|
348
347
|
private dataSub;
|
|
349
348
|
private updateSub;
|
|
350
349
|
private connectionSub;
|
|
351
|
-
private isRequestServer;
|
|
352
350
|
private requiresFullRowDataAndColDefs;
|
|
353
351
|
private dataSubWasLoggedOff;
|
|
354
352
|
private rows;
|
|
@@ -360,13 +358,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
360
358
|
disconnectedCallback(): void;
|
|
361
359
|
deepClone(): Node;
|
|
362
360
|
private get agGrid();
|
|
363
|
-
private get rowIdByResourceType();
|
|
364
361
|
/**
|
|
365
362
|
* Initializes the datasource.
|
|
366
363
|
* @public
|
|
367
364
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
368
365
|
*/
|
|
369
|
-
init():
|
|
366
|
+
init(): void;
|
|
370
367
|
/**
|
|
371
368
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
372
369
|
* @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,
|
|
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,qBAGa,wBAAyB,SAAQ,6BAAiC;IACpE,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAalD,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;IACrC,OAAO,EAAE,GAAG,CAAC;IACa,YAAY,EAAE,MAAM,CAAC;IAC3D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,OAAO,UAAS;IACZ,KAAK,SAAa;IACgB,qBAAqB,UAAS;IAE/F,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,6BAA6B,CAAQ;IAC7C,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAID;;;;OAIG;IACH,IAAI;IAkCJ;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA4BL;;;OAGG;IACH,OAAO;IAKP;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,aAAa;YAUP,gBAAgB;IAiD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,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,
|
|
2
|
+
import { Connect, dataServerResultFilter, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, normaliseCriteria, } 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';
|
|
27
28
|
this.restartOnReconnection = false;
|
|
28
|
-
this.isRequestServer = false;
|
|
29
29
|
this.requiresFullRowDataAndColDefs = true;
|
|
30
30
|
this.dataSubWasLoggedOff = false;
|
|
31
31
|
this.rows = new Map();
|
|
@@ -86,41 +86,27 @@ 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
|
-
}
|
|
96
89
|
/**
|
|
97
90
|
* Initializes the datasource.
|
|
98
91
|
* @public
|
|
99
92
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
100
93
|
*/
|
|
101
94
|
init() {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
.subscribe((value) => {
|
|
118
|
-
this.loadResourceData(withoutFullInit);
|
|
119
|
-
});
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
123
|
-
});
|
|
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`);
|
|
124
110
|
}
|
|
125
111
|
/**
|
|
126
112
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
@@ -147,7 +133,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
147
133
|
this.connectionSub.unsubscribe();
|
|
148
134
|
this.connectionSub = undefined;
|
|
149
135
|
}
|
|
150
|
-
this.isRequestServer = false;
|
|
151
136
|
this.requiresFullRowDataAndColDefs = true;
|
|
152
137
|
this.dataSubWasLoggedOff = false;
|
|
153
138
|
this.dataLogoff();
|
|
@@ -180,7 +165,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
180
165
|
this.rows = new Map();
|
|
181
166
|
this.agTransaction = undefined;
|
|
182
167
|
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setRowData([]);
|
|
183
|
-
this.rowId = undefined;
|
|
184
168
|
}
|
|
185
169
|
updateRowData(rowData) {
|
|
186
170
|
const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
|
|
@@ -234,9 +218,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
234
218
|
if (Array.isArray(result))
|
|
235
219
|
return result;
|
|
236
220
|
if (result.REPLY) {
|
|
237
|
-
return
|
|
238
|
-
? result.REPLY[0][this.datasourceKey]
|
|
239
|
-
: result.REPLY;
|
|
221
|
+
return result.REPLY;
|
|
240
222
|
}
|
|
241
223
|
if (result.ROW) {
|
|
242
224
|
return dataServerResultFilter(result).inserts;
|
|
@@ -260,7 +242,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
260
242
|
handleStreamResult(result) {
|
|
261
243
|
if (!result)
|
|
262
244
|
return;
|
|
263
|
-
|
|
245
|
+
const isRequestServer = result.hasOwnProperty('REPLY');
|
|
246
|
+
if (isRequestServer) {
|
|
264
247
|
this.applyRequestServerData(result);
|
|
265
248
|
}
|
|
266
249
|
else {
|
|
@@ -268,37 +251,26 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
268
251
|
}
|
|
269
252
|
}
|
|
270
253
|
applyRequestServerData(requestServerResult) {
|
|
271
|
-
var _a;
|
|
254
|
+
var _a, _b;
|
|
272
255
|
if (!Array.isArray(requestServerResult.REPLY) ||
|
|
273
256
|
!((_a = requestServerResult.MESSAGE_TYPE) === null || _a === void 0 ? void 0 : _a.startsWith('REP_'))) {
|
|
274
257
|
logger.error('received invalid RequestServerResult', requestServerResult);
|
|
275
258
|
return;
|
|
276
259
|
}
|
|
277
|
-
const requestServerData = this.datasourceKey && requestServerResult.REPLY.length > 0
|
|
278
|
-
? requestServerResult.REPLY[0][this.datasourceKey]
|
|
279
|
-
: requestServerResult.REPLY;
|
|
280
260
|
if (this.requiresFullRowDataAndColDefs) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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;
|
|
285
267
|
this.updateRowData(rowData);
|
|
286
268
|
return;
|
|
287
269
|
}
|
|
288
270
|
this.agTransaction = { add: [], remove: [], update: [] };
|
|
289
|
-
|
|
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);
|
|
271
|
+
this.handleStreamInserts(requestServerResult.REPLY);
|
|
272
|
+
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
300
273
|
this.handleStreamDeletes(rowsToDelete);
|
|
301
|
-
this.handleStreamUpdates(rowsToUpdate);
|
|
302
274
|
this.agGrid.gridApi.applyTransaction(this.agTransaction);
|
|
303
275
|
}
|
|
304
276
|
applyDataserverData(dataServerResult) {
|
|
@@ -435,9 +407,6 @@ __decorate([
|
|
|
435
407
|
__decorate([
|
|
436
408
|
attr({ attribute: 'row-id' })
|
|
437
409
|
], GridProGenesisDatasource.prototype, "rowId", void 0);
|
|
438
|
-
__decorate([
|
|
439
|
-
attr({ attribute: 'datasoruce-key' })
|
|
440
|
-
], GridProGenesisDatasource.prototype, "datasourceKey", void 0);
|
|
441
410
|
__decorate([
|
|
442
411
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
443
412
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -6598,36 +6598,6 @@
|
|
|
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
|
-
},
|
|
6631
6601
|
{
|
|
6632
6602
|
"kind": "Method",
|
|
6633
6603
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#deepClone:member(1)",
|
|
@@ -6792,14 +6762,9 @@
|
|
|
6792
6762
|
"kind": "Content",
|
|
6793
6763
|
"text": "init(): "
|
|
6794
6764
|
},
|
|
6795
|
-
{
|
|
6796
|
-
"kind": "Reference",
|
|
6797
|
-
"text": "Promise",
|
|
6798
|
-
"canonicalReference": "!Promise:interface"
|
|
6799
|
-
},
|
|
6800
6765
|
{
|
|
6801
6766
|
"kind": "Content",
|
|
6802
|
-
"text": "
|
|
6767
|
+
"text": "void"
|
|
6803
6768
|
},
|
|
6804
6769
|
{
|
|
6805
6770
|
"kind": "Content",
|
|
@@ -6809,7 +6774,7 @@
|
|
|
6809
6774
|
"isStatic": false,
|
|
6810
6775
|
"returnTypeTokenRange": {
|
|
6811
6776
|
"startIndex": 1,
|
|
6812
|
-
"endIndex":
|
|
6777
|
+
"endIndex": 2
|
|
6813
6778
|
},
|
|
6814
6779
|
"releaseTag": "Public",
|
|
6815
6780
|
"isProtected": false,
|
|
@@ -7274,7 +7239,7 @@
|
|
|
7274
7239
|
},
|
|
7275
7240
|
{
|
|
7276
7241
|
"kind": "Content",
|
|
7277
|
-
"text": "
|
|
7242
|
+
"text": "string"
|
|
7278
7243
|
},
|
|
7279
7244
|
{
|
|
7280
7245
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1225,13 +1225,11 @@ 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:
|
|
1229
|
-
datasourceKey: string;
|
|
1228
|
+
rowId: string;
|
|
1230
1229
|
restartOnReconnection: boolean;
|
|
1231
1230
|
private dataSub;
|
|
1232
1231
|
private updateSub;
|
|
1233
1232
|
private connectionSub;
|
|
1234
|
-
private isRequestServer;
|
|
1235
1233
|
private requiresFullRowDataAndColDefs;
|
|
1236
1234
|
private dataSubWasLoggedOff;
|
|
1237
1235
|
private rows;
|
|
@@ -1243,13 +1241,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1243
1241
|
disconnectedCallback(): void;
|
|
1244
1242
|
deepClone(): Node;
|
|
1245
1243
|
private get agGrid();
|
|
1246
|
-
private get rowIdByResourceType();
|
|
1247
1244
|
/**
|
|
1248
1245
|
* Initializes the datasource.
|
|
1249
1246
|
* @public
|
|
1250
1247
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1251
1248
|
*/
|
|
1252
|
-
init():
|
|
1249
|
+
init(): void;
|
|
1253
1250
|
/**
|
|
1254
1251
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
1255
1252
|
* @public
|
|
@@ -24,7 +24,6 @@ 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 | |
|
|
28
27
|
| [deferredGridOptions](./grid-pro.gridprogenesisdatasource.deferredgridoptions.md) | | GridOptions | |
|
|
29
28
|
| [fields](./grid-pro.gridprogenesisdatasource.fields.md) | | string | |
|
|
30
29
|
| [isSnapshot](./grid-pro.gridprogenesisdatasource.issnapshot.md) | | boolean | |
|
|
@@ -36,7 +35,7 @@ Only supports Client-Side Row Model.
|
|
|
36
35
|
| [resourceName](./grid-pro.gridprogenesisdatasource.resourcename.md) | | string | |
|
|
37
36
|
| [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
|
|
38
37
|
| [reverse](./grid-pro.gridprogenesisdatasource.reverse.md) | | boolean | |
|
|
39
|
-
| [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | |
|
|
38
|
+
| [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | | string | |
|
|
40
39
|
|
|
41
40
|
## Methods
|
|
42
41
|
|
package/docs/api-report.md
CHANGED
|
@@ -649,8 +649,6 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
649
649
|
// (undocumented)
|
|
650
650
|
datasource: Datasource;
|
|
651
651
|
// (undocumented)
|
|
652
|
-
datasourceKey: string;
|
|
653
|
-
// (undocumented)
|
|
654
652
|
deepClone(): Node;
|
|
655
653
|
// (undocumented)
|
|
656
654
|
deferredGridOptions: GridOptions;
|
|
@@ -659,7 +657,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
659
657
|
disconnectedCallback(): void;
|
|
660
658
|
// (undocumented)
|
|
661
659
|
fields: string;
|
|
662
|
-
init():
|
|
660
|
+
init(): void;
|
|
663
661
|
// (undocumented)
|
|
664
662
|
isSnapshot: boolean;
|
|
665
663
|
// (undocumented)
|
|
@@ -686,7 +684,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
686
684
|
// (undocumented)
|
|
687
685
|
reverse: boolean;
|
|
688
686
|
// (undocumented)
|
|
689
|
-
rowId:
|
|
687
|
+
rowId: string;
|
|
690
688
|
// (undocumented)
|
|
691
689
|
setFilter(fieldName: string, newFilter: string): void;
|
|
692
690
|
}
|
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.
|
|
4
|
+
"version": "14.36.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.
|
|
25
|
-
"@genesislcap/genx": "14.
|
|
24
|
+
"@genesislcap/foundation-testing": "^14.36.0",
|
|
25
|
+
"@genesislcap/genx": "^14.36.0",
|
|
26
26
|
"bulma": "^0.9.3"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@genesislcap/foundation-comms": "14.
|
|
30
|
-
"@genesislcap/foundation-ui": "14.
|
|
31
|
-
"@genesislcap/foundation-utils": "14.
|
|
29
|
+
"@genesislcap/foundation-comms": "^14.36.0",
|
|
30
|
+
"@genesislcap/foundation-ui": "^14.36.0",
|
|
31
|
+
"@genesislcap/foundation-utils": "^14.36.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": "
|
|
58
|
+
"gitHead": "b85fb7a99e6f4d155b17520d1b3acf51bc942d4d"
|
|
59
59
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) > [datasourceKey](./grid-pro.gridprogenesisdatasource.datasourcekey.md)
|
|
4
|
-
|
|
5
|
-
## GridProGenesisDatasource.datasourceKey property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
datasourceKey: string;
|
|
11
|
-
```
|