@genesislcap/grid-pro 14.19.0 → 14.20.0-bny.20
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 +24 -0
- package/dist/dts/cell-renderers/action.renderer.d.ts +1 -0
- package/dist/dts/cell-renderers/action.renderer.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +3 -0
- 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 +22 -3
- package/dist/grid-pro.api.json +63 -1
- package/dist/grid-pro.d.ts +4 -0
- package/docs/api/grid-pro.actionrendererparams.md +1 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.md +2 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.refreshrows.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.rowdatamapper.md +11 -0
- package/docs/api-report.md +5 -0
- package/package.json +7 -7
|
@@ -4438,6 +4438,13 @@
|
|
|
4438
4438
|
},
|
|
4439
4439
|
"default": "false"
|
|
4440
4440
|
},
|
|
4441
|
+
{
|
|
4442
|
+
"kind": "field",
|
|
4443
|
+
"name": "rowDataMapper",
|
|
4444
|
+
"type": {
|
|
4445
|
+
"text": "Function"
|
|
4446
|
+
}
|
|
4447
|
+
},
|
|
4441
4448
|
{
|
|
4442
4449
|
"kind": "field",
|
|
4443
4450
|
"name": "dataSub",
|
|
@@ -4564,6 +4571,10 @@
|
|
|
4564
4571
|
"kind": "method",
|
|
4565
4572
|
"name": "restart"
|
|
4566
4573
|
},
|
|
4574
|
+
{
|
|
4575
|
+
"kind": "method",
|
|
4576
|
+
"name": "refreshRows"
|
|
4577
|
+
},
|
|
4567
4578
|
{
|
|
4568
4579
|
"kind": "method",
|
|
4569
4580
|
"name": "clearRowData",
|
|
@@ -4654,6 +4665,19 @@
|
|
|
4654
4665
|
}
|
|
4655
4666
|
]
|
|
4656
4667
|
},
|
|
4668
|
+
{
|
|
4669
|
+
"kind": "method",
|
|
4670
|
+
"name": "mapTransaction",
|
|
4671
|
+
"privacy": "private",
|
|
4672
|
+
"parameters": [
|
|
4673
|
+
{
|
|
4674
|
+
"name": "transaction",
|
|
4675
|
+
"type": {
|
|
4676
|
+
"text": "RowDataTransaction"
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4679
|
+
]
|
|
4680
|
+
},
|
|
4657
4681
|
{
|
|
4658
4682
|
"kind": "method",
|
|
4659
4683
|
"name": "handleStreamInserts",
|
|
@@ -34,6 +34,7 @@ export type ActionRendererParams = {
|
|
|
34
34
|
* A unique field name used to identify the action button used for E2E testing, so that the data-testid attribute value can be unique.
|
|
35
35
|
*/
|
|
36
36
|
uniqueFieldName?: string;
|
|
37
|
+
contentTemplate?: string;
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
40
|
* The AG Action Renderer element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/action.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAe,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG5E;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CA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BAAa,cAAe,SAAQ,iBAAkB,YAAW,iBAAiB;IAEzE,MAAM,EAAE,mBAAmB,GAAG,oBAAoB,CAAC;IAGnD,aAAa,EAAE,OAAO,CAAC;IAEvB,IAAI,CAAC,MAAM,EAAE,mBAAmB,GAAG,oBAAoB;IAMvD,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,mBAAmB;IAMnC,UAAU,CAAC,IAAI,KAAA,GAAG,OAAO;IAWnB,YAAY;IAMzB,IAAI,UAAU,WAMb;CACF;AAID;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,6DAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,iDAelC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;yBAe1C,CAAC"}
|
|
@@ -354,6 +354,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
354
354
|
reverse: boolean;
|
|
355
355
|
rowId: string;
|
|
356
356
|
restartOnReconnection: boolean;
|
|
357
|
+
rowDataMapper: Function;
|
|
357
358
|
private dataSub;
|
|
358
359
|
private updateSub;
|
|
359
360
|
private connectionSub;
|
|
@@ -379,6 +380,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
379
380
|
*/
|
|
380
381
|
reset(): void;
|
|
381
382
|
restart(): void;
|
|
383
|
+
refreshRows(): void;
|
|
382
384
|
private clearRowData;
|
|
383
385
|
private updateRowData;
|
|
384
386
|
private loadResourceData;
|
|
@@ -387,6 +389,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
387
389
|
private handleStreamResult;
|
|
388
390
|
private applyRequestServerData;
|
|
389
391
|
private applyDataserverData;
|
|
392
|
+
private mapTransaction;
|
|
390
393
|
private handleStreamInserts;
|
|
391
394
|
private handleStreamDeletes;
|
|
392
395
|
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,EAWX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB/D,qBAGa,wBAAyB,SAAQ,6BAAiC;IACpE,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,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;
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/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O,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;IAsBjB,oBAAoB;IAQX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAGD,IAAI;IAkCJ;;OAEG;IACH,MAAM;IAIN;;;OAGG;IACH,KAAK;IA8BL,OAAO;IAKP,WAAW;IAIX,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,aAAa;YAgBP,gBAAgB;IAiD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,sBAAsB;IAuC9B,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;IAMrB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASjD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
|
@@ -123,6 +123,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
123
123
|
this.deinit();
|
|
124
124
|
this.init();
|
|
125
125
|
}
|
|
126
|
+
refreshRows() {
|
|
127
|
+
this.updateRowData(Array.from(this.rows.values()));
|
|
128
|
+
}
|
|
126
129
|
clearRowData() {
|
|
127
130
|
var _a, _b;
|
|
128
131
|
this.rows = new Map();
|
|
@@ -134,7 +137,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
134
137
|
if (agColumnDefs) {
|
|
135
138
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
136
139
|
}
|
|
137
|
-
|
|
140
|
+
// If there's a provided transformer for updated rowData, process the rows
|
|
141
|
+
const data = this.rowDataMapper && typeof this.rowDataMapper === 'function'
|
|
142
|
+
? this.rowDataMapper(rowData)
|
|
143
|
+
: rowData;
|
|
144
|
+
this.agGrid.gridApi.setRowData(data);
|
|
138
145
|
this.requiresFullRowDataAndColDefs = false;
|
|
139
146
|
}
|
|
140
147
|
loadResourceData(withFullInit = true) {
|
|
@@ -234,7 +241,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
234
241
|
this.handleStreamInserts(requestServerResult.REPLY);
|
|
235
242
|
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
236
243
|
this.handleStreamDeletes(rowsToDelete);
|
|
237
|
-
this.
|
|
244
|
+
const transaction = this.rowDataMapper
|
|
245
|
+
? this.mapTransaction(this.agTransaction)
|
|
246
|
+
: this.agTransaction;
|
|
247
|
+
this.agGrid.gridApi.applyTransactionAsync(transaction);
|
|
238
248
|
}
|
|
239
249
|
applyDataserverData(dataServerResult) {
|
|
240
250
|
var _a;
|
|
@@ -250,7 +260,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
250
260
|
this.handleStreamInserts(dataServerResult.inserts);
|
|
251
261
|
this.handleStreamDeletes(dataServerResult.deletes);
|
|
252
262
|
this.handleStreamUpdates(dataServerResult.updates);
|
|
253
|
-
this.agGrid.gridApi.applyTransactionAsync(this.agTransaction);
|
|
263
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction));
|
|
264
|
+
}
|
|
265
|
+
mapTransaction(transaction) {
|
|
266
|
+
if (!this.rowDataMapper) {
|
|
267
|
+
return transaction;
|
|
268
|
+
}
|
|
269
|
+
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) });
|
|
254
270
|
}
|
|
255
271
|
handleStreamInserts(insertedRows) {
|
|
256
272
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
@@ -380,6 +396,9 @@ __decorate([
|
|
|
380
396
|
__decorate([
|
|
381
397
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
382
398
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
399
|
+
__decorate([
|
|
400
|
+
observable
|
|
401
|
+
], GridProGenesisDatasource.prototype, "rowDataMapper", void 0);
|
|
383
402
|
GridProGenesisDatasource = __decorate([
|
|
384
403
|
customElement({
|
|
385
404
|
name: 'grid-pro-genesis-datasource',
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
"kind": "Content",
|
|
593
|
-
"text": "{\n actionClick?: (rowData: any) => void;\n actionName?: string;\n appearance?: string;\n dataTestId?: string;\n isDisabled?: (rowData: any) => boolean;\n uniqueFieldName?: string;\n}"
|
|
593
|
+
"text": "{\n actionClick?: (rowData: any) => void;\n actionName?: string;\n appearance?: string;\n dataTestId?: string;\n isDisabled?: (rowData: any) => boolean;\n uniqueFieldName?: string;\n contentTemplate?: string;\n}"
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
"kind": "Content",
|
|
@@ -6925,6 +6925,37 @@
|
|
|
6925
6925
|
"isProtected": false,
|
|
6926
6926
|
"isAbstract": false
|
|
6927
6927
|
},
|
|
6928
|
+
{
|
|
6929
|
+
"kind": "Method",
|
|
6930
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#refreshRows:member(1)",
|
|
6931
|
+
"docComment": "",
|
|
6932
|
+
"excerptTokens": [
|
|
6933
|
+
{
|
|
6934
|
+
"kind": "Content",
|
|
6935
|
+
"text": "refreshRows(): "
|
|
6936
|
+
},
|
|
6937
|
+
{
|
|
6938
|
+
"kind": "Content",
|
|
6939
|
+
"text": "void"
|
|
6940
|
+
},
|
|
6941
|
+
{
|
|
6942
|
+
"kind": "Content",
|
|
6943
|
+
"text": ";"
|
|
6944
|
+
}
|
|
6945
|
+
],
|
|
6946
|
+
"isStatic": false,
|
|
6947
|
+
"returnTypeTokenRange": {
|
|
6948
|
+
"startIndex": 1,
|
|
6949
|
+
"endIndex": 2
|
|
6950
|
+
},
|
|
6951
|
+
"releaseTag": "Public",
|
|
6952
|
+
"isProtected": false,
|
|
6953
|
+
"overloadIndex": 1,
|
|
6954
|
+
"parameters": [],
|
|
6955
|
+
"isOptional": false,
|
|
6956
|
+
"isAbstract": false,
|
|
6957
|
+
"name": "refreshRows"
|
|
6958
|
+
},
|
|
6928
6959
|
{
|
|
6929
6960
|
"kind": "Method",
|
|
6930
6961
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#removeFilter:member(1)",
|
|
@@ -7219,6 +7250,37 @@
|
|
|
7219
7250
|
"isProtected": false,
|
|
7220
7251
|
"isAbstract": false
|
|
7221
7252
|
},
|
|
7253
|
+
{
|
|
7254
|
+
"kind": "Property",
|
|
7255
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowDataMapper:member",
|
|
7256
|
+
"docComment": "",
|
|
7257
|
+
"excerptTokens": [
|
|
7258
|
+
{
|
|
7259
|
+
"kind": "Content",
|
|
7260
|
+
"text": "rowDataMapper: "
|
|
7261
|
+
},
|
|
7262
|
+
{
|
|
7263
|
+
"kind": "Reference",
|
|
7264
|
+
"text": "Function",
|
|
7265
|
+
"canonicalReference": "!Function:interface"
|
|
7266
|
+
},
|
|
7267
|
+
{
|
|
7268
|
+
"kind": "Content",
|
|
7269
|
+
"text": ";"
|
|
7270
|
+
}
|
|
7271
|
+
],
|
|
7272
|
+
"isReadonly": false,
|
|
7273
|
+
"isOptional": false,
|
|
7274
|
+
"releaseTag": "Public",
|
|
7275
|
+
"name": "rowDataMapper",
|
|
7276
|
+
"propertyTypeTokenRange": {
|
|
7277
|
+
"startIndex": 1,
|
|
7278
|
+
"endIndex": 2
|
|
7279
|
+
},
|
|
7280
|
+
"isStatic": false,
|
|
7281
|
+
"isProtected": false,
|
|
7282
|
+
"isAbstract": false
|
|
7283
|
+
},
|
|
7222
7284
|
{
|
|
7223
7285
|
"kind": "Property",
|
|
7224
7286
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowId:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export declare type ActionRendererParams = {
|
|
|
94
94
|
* A unique field name used to identify the action button used for E2E testing, so that the data-testid attribute value can be unique.
|
|
95
95
|
*/
|
|
96
96
|
uniqueFieldName?: string;
|
|
97
|
+
contentTemplate?: string;
|
|
97
98
|
};
|
|
98
99
|
|
|
99
100
|
/**
|
|
@@ -1217,6 +1218,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1217
1218
|
reverse: boolean;
|
|
1218
1219
|
rowId: string;
|
|
1219
1220
|
restartOnReconnection: boolean;
|
|
1221
|
+
rowDataMapper: Function;
|
|
1220
1222
|
private dataSub;
|
|
1221
1223
|
private updateSub;
|
|
1222
1224
|
private connectionSub;
|
|
@@ -1242,6 +1244,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1242
1244
|
*/
|
|
1243
1245
|
reset(): void;
|
|
1244
1246
|
restart(): void;
|
|
1247
|
+
refreshRows(): void;
|
|
1245
1248
|
private clearRowData;
|
|
1246
1249
|
private updateRowData;
|
|
1247
1250
|
private loadResourceData;
|
|
@@ -1250,6 +1253,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1250
1253
|
private handleStreamResult;
|
|
1251
1254
|
private applyRequestServerData;
|
|
1252
1255
|
private applyDataserverData;
|
|
1256
|
+
private mapTransaction;
|
|
1253
1257
|
private handleStreamInserts;
|
|
1254
1258
|
private handleStreamDeletes;
|
|
1255
1259
|
private handleStreamUpdates;
|
|
@@ -29,6 +29,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
29
29
|
| [resourceName](./grid-pro.gridprogenesisdatasource.resourcename.md) | | string | |
|
|
30
30
|
| [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
|
|
31
31
|
| [reverse](./grid-pro.gridprogenesisdatasource.reverse.md) | | boolean | |
|
|
32
|
+
| [rowDataMapper](./grid-pro.gridprogenesisdatasource.rowdatamapper.md) | | Function | |
|
|
32
33
|
| [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | | string | |
|
|
33
34
|
|
|
34
35
|
## Methods
|
|
@@ -41,6 +42,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
41
42
|
| [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | |
|
|
42
43
|
| [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
|
|
43
44
|
| [init()](./grid-pro.gridprogenesisdatasource.init.md) | | |
|
|
45
|
+
| [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | |
|
|
44
46
|
| [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
|
|
45
47
|
| [reset()](./grid-pro.gridprogenesisdatasource.reset.md) | | Use instead |
|
|
46
48
|
| [resourceNameChanged(oldValue, newValue)](./grid-pro.gridprogenesisdatasource.resourcenamechanged.md) | | |
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
refreshRows(): void;
|
|
11
|
+
```
|
|
12
|
+
**Returns:**
|
|
13
|
+
|
|
14
|
+
void
|
|
15
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
rowDataMapper: Function;
|
|
11
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -74,6 +74,7 @@ export type ActionRendererParams = {
|
|
|
74
74
|
dataTestId?: string;
|
|
75
75
|
isDisabled?: (rowData: any) => boolean;
|
|
76
76
|
uniqueFieldName?: string;
|
|
77
|
+
contentTemplate?: string;
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
// @public
|
|
@@ -667,6 +668,8 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
667
668
|
// (undocumented)
|
|
668
669
|
orderBy: string;
|
|
669
670
|
// (undocumented)
|
|
671
|
+
refreshRows(): void;
|
|
672
|
+
// (undocumented)
|
|
670
673
|
removeFilter(fieldName: string): void;
|
|
671
674
|
// (undocumented)
|
|
672
675
|
request: any;
|
|
@@ -683,6 +686,8 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
683
686
|
// (undocumented)
|
|
684
687
|
reverse: boolean;
|
|
685
688
|
// (undocumented)
|
|
689
|
+
rowDataMapper: Function;
|
|
690
|
+
// (undocumented)
|
|
686
691
|
rowId: string;
|
|
687
692
|
// (undocumented)
|
|
688
693
|
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.20.0-bny.20",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@custom-elements-manifest/analyzer": "^0.8.2",
|
|
33
|
-
"@genesislcap/foundation-testing": "
|
|
34
|
-
"@genesislcap/genx": "
|
|
33
|
+
"@genesislcap/foundation-testing": "14.20.0-bny.20",
|
|
34
|
+
"@genesislcap/genx": "14.20.0-bny.20",
|
|
35
35
|
"@playwright/test": "^1.18.1",
|
|
36
36
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"webpack-merge": "^5.7.3"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "
|
|
85
|
-
"@genesislcap/foundation-ui": "
|
|
86
|
-
"@genesislcap/foundation-utils": "
|
|
84
|
+
"@genesislcap/foundation-comms": "14.20.0-bny.20",
|
|
85
|
+
"@genesislcap/foundation-ui": "14.20.0-bny.20",
|
|
86
|
+
"@genesislcap/foundation-utils": "14.20.0-bny.20",
|
|
87
87
|
"@microsoft/fast-colors": "^5.1.4",
|
|
88
88
|
"@microsoft/fast-components": "^2.21.3",
|
|
89
89
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
107
|
"customElements": "dist/custom-elements.json",
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "d7378c3e95a37c9198143ec6f920b288f58ba83e"
|
|
109
109
|
}
|