@genesislcap/grid-pro 14.47.0 → 14.49.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 +26 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +10 -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 +19 -3
- package/dist/grid-pro.api.json +62 -0
- package/dist/grid-pro.d.ts +10 -5
- package/docs/api/grid-pro.gridprogenesisdatasource.md +2 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.refreshrows.md +17 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.rowdatamapper.md +13 -0
- package/docs/api-report.md +2 -0
- package/package.json +7 -7
|
@@ -3259,6 +3259,14 @@
|
|
|
3259
3259
|
},
|
|
3260
3260
|
"default": "false"
|
|
3261
3261
|
},
|
|
3262
|
+
{
|
|
3263
|
+
"kind": "field",
|
|
3264
|
+
"name": "rowDataMapper",
|
|
3265
|
+
"type": {
|
|
3266
|
+
"text": "Function"
|
|
3267
|
+
},
|
|
3268
|
+
"description": "Allows grid data updates to be processed via and external function before applying in grid"
|
|
3269
|
+
},
|
|
3262
3270
|
{
|
|
3263
3271
|
"kind": "field",
|
|
3264
3272
|
"name": "dataSub",
|
|
@@ -3405,6 +3413,11 @@
|
|
|
3405
3413
|
"description": "Restarts the datasource, uses `deinit` and `init` in sequence.",
|
|
3406
3414
|
"privacy": "public"
|
|
3407
3415
|
},
|
|
3416
|
+
{
|
|
3417
|
+
"kind": "method",
|
|
3418
|
+
"name": "refreshRows",
|
|
3419
|
+
"description": "Force the grid to redispatch the current rows"
|
|
3420
|
+
},
|
|
3408
3421
|
{
|
|
3409
3422
|
"kind": "method",
|
|
3410
3423
|
"name": "clearRowData",
|
|
@@ -3498,6 +3511,19 @@
|
|
|
3498
3511
|
}
|
|
3499
3512
|
]
|
|
3500
3513
|
},
|
|
3514
|
+
{
|
|
3515
|
+
"kind": "method",
|
|
3516
|
+
"name": "mapTransaction",
|
|
3517
|
+
"privacy": "private",
|
|
3518
|
+
"parameters": [
|
|
3519
|
+
{
|
|
3520
|
+
"name": "transaction",
|
|
3521
|
+
"type": {
|
|
3522
|
+
"text": "RowDataTransaction"
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
]
|
|
3526
|
+
},
|
|
3501
3527
|
{
|
|
3502
3528
|
"kind": "method",
|
|
3503
3529
|
"name": "handleStreamInserts",
|
|
@@ -46,11 +46,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
46
46
|
readonly classList: DOMTokenList;
|
|
47
47
|
className: string;
|
|
48
48
|
readonly clientHeight: number;
|
|
49
|
-
readonly clientLeft: number;
|
|
50
|
-
* Initializes the datasource.
|
|
51
|
-
* @public
|
|
52
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
53
|
-
*/
|
|
49
|
+
readonly clientLeft: number;
|
|
54
50
|
readonly clientTop: number;
|
|
55
51
|
readonly clientWidth: number;
|
|
56
52
|
id: string;
|
|
@@ -360,6 +356,10 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
360
356
|
*/
|
|
361
357
|
rowIdAttr: any;
|
|
362
358
|
restartOnReconnection: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* Allows grid data updates to be processed via and external function before applying in grid
|
|
361
|
+
*/
|
|
362
|
+
rowDataMapper: Function;
|
|
363
363
|
private dataSub;
|
|
364
364
|
private updateSub;
|
|
365
365
|
private connectionSub;
|
|
@@ -398,6 +398,10 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
398
398
|
* @public
|
|
399
399
|
*/
|
|
400
400
|
restart(): void;
|
|
401
|
+
/**
|
|
402
|
+
* Force the grid to redispatch the current rows
|
|
403
|
+
*/
|
|
404
|
+
refreshRows(): void;
|
|
401
405
|
/**
|
|
402
406
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
403
407
|
* @remarks Will only happen for streaming DATASERER resources.
|
|
@@ -412,6 +416,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
412
416
|
private handleStreamResult;
|
|
413
417
|
private applyRequestServerData;
|
|
414
418
|
private applyDataserverData;
|
|
419
|
+
private mapTransaction;
|
|
415
420
|
private handleStreamInserts;
|
|
416
421
|
private handleStreamDeletes;
|
|
417
422
|
private handleStreamUpdates;
|
|
@@ -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,EAYX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;wCA6D7D;;;;;OAKG
|
|
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,EAYX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;wCA6D7D;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjDL;;;;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;IAC3C,eAAe,EAAE,MAAM,CACf;IACI,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;IAE3C;;;;;OAKG;IAC4B,SAAS,MAAC;IAEwB,qBAAqB,UAAS;IAE/F;;OAEG;IACS,aAAa,EAAE,QAAQ,CAAC;IAEpC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,eAAe,CAAS;IAChC,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;IAGD,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;IAQlB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,aAAa;YAYP,gBAAgB;IAiD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,cAAc;IAatB,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"}
|
|
@@ -164,6 +164,12 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
164
164
|
this.deinit();
|
|
165
165
|
this.init();
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Force the grid to redispatch the current rows
|
|
169
|
+
*/
|
|
170
|
+
refreshRows() {
|
|
171
|
+
this.updateRowData(Array.from(this.rows.values()));
|
|
172
|
+
}
|
|
167
173
|
/**
|
|
168
174
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
169
175
|
* @remarks Will only happen for streaming DATASERER resources.
|
|
@@ -186,7 +192,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
186
192
|
if (agColumnDefs) {
|
|
187
193
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
188
194
|
}
|
|
189
|
-
this.
|
|
195
|
+
const data = this.rowDataMapper ? this.rowDataMapper(rowData) : rowData;
|
|
196
|
+
this.agGrid.gridApi.setRowData(data);
|
|
190
197
|
this.requiresFullRowDataAndColDefs = false;
|
|
191
198
|
}
|
|
192
199
|
loadResourceData(withFullInit = true) {
|
|
@@ -295,7 +302,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
295
302
|
this.handleStreamInserts(rowsToInsert);
|
|
296
303
|
this.handleStreamDeletes(rowsToDelete);
|
|
297
304
|
this.handleStreamUpdates(rowsToUpdate);
|
|
298
|
-
this.agGrid.gridApi.applyTransaction(this.agTransaction);
|
|
305
|
+
this.agGrid.gridApi.applyTransaction(this.mapTransaction(this.agTransaction));
|
|
299
306
|
}
|
|
300
307
|
applyDataserverData(dataServerResult) {
|
|
301
308
|
var _a;
|
|
@@ -311,7 +318,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
311
318
|
this.handleStreamInserts(dataServerResult.inserts);
|
|
312
319
|
this.handleStreamDeletes(dataServerResult.deletes);
|
|
313
320
|
this.handleStreamUpdates(dataServerResult.updates);
|
|
314
|
-
this.agGrid.gridApi.applyTransaction(this.agTransaction);
|
|
321
|
+
this.agGrid.gridApi.applyTransaction(this.mapTransaction(this.agTransaction));
|
|
322
|
+
}
|
|
323
|
+
mapTransaction(transaction) {
|
|
324
|
+
if (!this.rowDataMapper) {
|
|
325
|
+
return transaction;
|
|
326
|
+
}
|
|
327
|
+
return Object.assign(Object.assign({}, transaction), { add: this.rowDataMapper(transaction.add, this.rows), update: this.rowDataMapper(transaction.update, this.rows), remove: this.rowDataMapper(transaction.remove, this.rows) });
|
|
315
328
|
}
|
|
316
329
|
handleStreamInserts(insertedRows) {
|
|
317
330
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
@@ -437,6 +450,9 @@ __decorate([
|
|
|
437
450
|
__decorate([
|
|
438
451
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
439
452
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
453
|
+
__decorate([
|
|
454
|
+
observable
|
|
455
|
+
], GridProGenesisDatasource.prototype, "rowDataMapper", void 0);
|
|
440
456
|
GridProGenesisDatasource = __decorate([
|
|
441
457
|
customElement({
|
|
442
458
|
name: 'grid-pro-genesis-datasource',
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -6969,6 +6969,37 @@
|
|
|
6969
6969
|
"isProtected": false,
|
|
6970
6970
|
"isAbstract": false
|
|
6971
6971
|
},
|
|
6972
|
+
{
|
|
6973
|
+
"kind": "Method",
|
|
6974
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#refreshRows:member(1)",
|
|
6975
|
+
"docComment": "/**\n * Force the grid to redispatch the current rows\n */\n",
|
|
6976
|
+
"excerptTokens": [
|
|
6977
|
+
{
|
|
6978
|
+
"kind": "Content",
|
|
6979
|
+
"text": "refreshRows(): "
|
|
6980
|
+
},
|
|
6981
|
+
{
|
|
6982
|
+
"kind": "Content",
|
|
6983
|
+
"text": "void"
|
|
6984
|
+
},
|
|
6985
|
+
{
|
|
6986
|
+
"kind": "Content",
|
|
6987
|
+
"text": ";"
|
|
6988
|
+
}
|
|
6989
|
+
],
|
|
6990
|
+
"isStatic": false,
|
|
6991
|
+
"returnTypeTokenRange": {
|
|
6992
|
+
"startIndex": 1,
|
|
6993
|
+
"endIndex": 2
|
|
6994
|
+
},
|
|
6995
|
+
"releaseTag": "Public",
|
|
6996
|
+
"isProtected": false,
|
|
6997
|
+
"overloadIndex": 1,
|
|
6998
|
+
"parameters": [],
|
|
6999
|
+
"isOptional": false,
|
|
7000
|
+
"isAbstract": false,
|
|
7001
|
+
"name": "refreshRows"
|
|
7002
|
+
},
|
|
6972
7003
|
{
|
|
6973
7004
|
"kind": "Method",
|
|
6974
7005
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#removeFilter:member(1)",
|
|
@@ -7263,6 +7294,37 @@
|
|
|
7263
7294
|
"isProtected": false,
|
|
7264
7295
|
"isAbstract": false
|
|
7265
7296
|
},
|
|
7297
|
+
{
|
|
7298
|
+
"kind": "Property",
|
|
7299
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowDataMapper:member",
|
|
7300
|
+
"docComment": "/**\n * Allows grid data updates to be processed via and external function before applying in grid\n */\n",
|
|
7301
|
+
"excerptTokens": [
|
|
7302
|
+
{
|
|
7303
|
+
"kind": "Content",
|
|
7304
|
+
"text": "rowDataMapper: "
|
|
7305
|
+
},
|
|
7306
|
+
{
|
|
7307
|
+
"kind": "Reference",
|
|
7308
|
+
"text": "Function",
|
|
7309
|
+
"canonicalReference": "!Function:interface"
|
|
7310
|
+
},
|
|
7311
|
+
{
|
|
7312
|
+
"kind": "Content",
|
|
7313
|
+
"text": ";"
|
|
7314
|
+
}
|
|
7315
|
+
],
|
|
7316
|
+
"isReadonly": false,
|
|
7317
|
+
"isOptional": false,
|
|
7318
|
+
"releaseTag": "Public",
|
|
7319
|
+
"name": "rowDataMapper",
|
|
7320
|
+
"propertyTypeTokenRange": {
|
|
7321
|
+
"startIndex": 1,
|
|
7322
|
+
"endIndex": 2
|
|
7323
|
+
},
|
|
7324
|
+
"isStatic": false,
|
|
7325
|
+
"isProtected": false,
|
|
7326
|
+
"isAbstract": false
|
|
7327
|
+
},
|
|
7266
7328
|
{
|
|
7267
7329
|
"kind": "Property",
|
|
7268
7330
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowIdAttr:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1220,6 +1220,10 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1220
1220
|
*/
|
|
1221
1221
|
rowIdAttr: any;
|
|
1222
1222
|
restartOnReconnection: boolean;
|
|
1223
|
+
/**
|
|
1224
|
+
* Allows grid data updates to be processed via and external function before applying in grid
|
|
1225
|
+
*/
|
|
1226
|
+
rowDataMapper: Function;
|
|
1223
1227
|
private dataSub;
|
|
1224
1228
|
private updateSub;
|
|
1225
1229
|
private connectionSub;
|
|
@@ -1258,6 +1262,10 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1258
1262
|
* @public
|
|
1259
1263
|
*/
|
|
1260
1264
|
restart(): void;
|
|
1265
|
+
/**
|
|
1266
|
+
* Force the grid to redispatch the current rows
|
|
1267
|
+
*/
|
|
1268
|
+
refreshRows(): void;
|
|
1261
1269
|
/**
|
|
1262
1270
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1263
1271
|
* @remarks Will only happen for streaming DATASERER resources.
|
|
@@ -1272,6 +1280,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1272
1280
|
private handleStreamResult;
|
|
1273
1281
|
private applyRequestServerData;
|
|
1274
1282
|
private applyDataserverData;
|
|
1283
|
+
private mapTransaction;
|
|
1275
1284
|
private handleStreamInserts;
|
|
1276
1285
|
private handleStreamDeletes;
|
|
1277
1286
|
private handleStreamUpdates;
|
|
@@ -1326,11 +1335,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1326
1335
|
readonly classList: DOMTokenList;
|
|
1327
1336
|
className: string;
|
|
1328
1337
|
readonly clientHeight: number;
|
|
1329
|
-
readonly clientLeft: number;
|
|
1330
|
-
* Initializes the datasource.
|
|
1331
|
-
* @public
|
|
1332
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1333
|
-
*/
|
|
1338
|
+
readonly clientLeft: number;
|
|
1334
1339
|
readonly clientTop: number;
|
|
1335
1340
|
readonly clientWidth: number;
|
|
1336
1341
|
id: string;
|
|
@@ -36,6 +36,7 @@ Only supports Client-Side Row Model.
|
|
|
36
36
|
| [resourceName](./grid-pro.gridprogenesisdatasource.resourcename.md) | | string | |
|
|
37
37
|
| [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
|
|
38
38
|
| [reverse](./grid-pro.gridprogenesisdatasource.reverse.md) | | boolean | |
|
|
39
|
+
| [rowDataMapper](./grid-pro.gridprogenesisdatasource.rowdatamapper.md) | | Function | Allows grid data updates to be processed via and external function before applying in grid |
|
|
39
40
|
| [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> |
|
|
40
41
|
|
|
41
42
|
## Methods
|
|
@@ -48,6 +49,7 @@ Only supports Client-Side Row Model.
|
|
|
48
49
|
| [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
|
|
49
50
|
| [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
|
|
50
51
|
| [init()](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
|
|
52
|
+
| [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | Force the grid to redispatch the current rows |
|
|
51
53
|
| [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
|
|
52
54
|
| [reset()](./grid-pro.gridprogenesisdatasource.reset.md) | | Resets the datasource to its initial state. |
|
|
53
55
|
| [resourceNameChanged(oldValue, newValue)](./grid-pro.gridprogenesisdatasource.resourcenamechanged.md) | | |
|
|
@@ -0,0 +1,17 @@
|
|
|
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) > [refreshRows](./grid-pro.gridprogenesisdatasource.refreshrows.md)
|
|
4
|
+
|
|
5
|
+
## GridProGenesisDatasource.refreshRows() method
|
|
6
|
+
|
|
7
|
+
Force the grid to redispatch the current rows
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
refreshRows(): void;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
void
|
|
17
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
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) > [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
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -653,6 +653,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
653
653
|
orderBy: string;
|
|
654
654
|
// (undocumented)
|
|
655
655
|
pollingInterval: number;
|
|
656
|
+
refreshRows(): void;
|
|
656
657
|
// (undocumented)
|
|
657
658
|
removeFilter(fieldName: string): void;
|
|
658
659
|
// (undocumented)
|
|
@@ -668,6 +669,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
668
669
|
restartOnReconnection: boolean;
|
|
669
670
|
// (undocumented)
|
|
670
671
|
reverse: boolean;
|
|
672
|
+
rowDataMapper: Function;
|
|
671
673
|
rowIdAttr: any;
|
|
672
674
|
// (undocumented)
|
|
673
675
|
setFilter(fieldName: string, newFilter: string): void;
|
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.49.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.49.0",
|
|
25
|
+
"@genesislcap/genx": "^14.49.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.49.0",
|
|
30
|
+
"@genesislcap/foundation-ui": "^14.49.0",
|
|
31
|
+
"@genesislcap/foundation-utils": "^14.49.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",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "dist/custom-elements.json",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "4cf55f57fe21d98d254b674fa8876d218e861296"
|
|
55
55
|
}
|