@genesislcap/grid-pro 14.29.2 → 14.30.1-bny.1
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
|
@@ -4521,6 +4521,13 @@
|
|
|
4521
4521
|
},
|
|
4522
4522
|
"default": "false"
|
|
4523
4523
|
},
|
|
4524
|
+
{
|
|
4525
|
+
"kind": "field",
|
|
4526
|
+
"name": "rowDataMapper",
|
|
4527
|
+
"type": {
|
|
4528
|
+
"text": "Function"
|
|
4529
|
+
}
|
|
4530
|
+
},
|
|
4524
4531
|
{
|
|
4525
4532
|
"kind": "field",
|
|
4526
4533
|
"name": "dataSub",
|
|
@@ -4653,6 +4660,10 @@
|
|
|
4653
4660
|
"description": "Restarts the datasource, uses `deinit` and `init` in sequence.",
|
|
4654
4661
|
"privacy": "public"
|
|
4655
4662
|
},
|
|
4663
|
+
{
|
|
4664
|
+
"kind": "method",
|
|
4665
|
+
"name": "refreshRows"
|
|
4666
|
+
},
|
|
4656
4667
|
{
|
|
4657
4668
|
"kind": "method",
|
|
4658
4669
|
"name": "clearRowData",
|
|
@@ -4746,6 +4757,19 @@
|
|
|
4746
4757
|
}
|
|
4747
4758
|
]
|
|
4748
4759
|
},
|
|
4760
|
+
{
|
|
4761
|
+
"kind": "method",
|
|
4762
|
+
"name": "mapTransaction",
|
|
4763
|
+
"privacy": "private",
|
|
4764
|
+
"parameters": [
|
|
4765
|
+
{
|
|
4766
|
+
"name": "transaction",
|
|
4767
|
+
"type": {
|
|
4768
|
+
"text": "RowDataTransaction"
|
|
4769
|
+
}
|
|
4770
|
+
}
|
|
4771
|
+
]
|
|
4772
|
+
},
|
|
4749
4773
|
{
|
|
4750
4774
|
"kind": "method",
|
|
4751
4775
|
"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;IAC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,CAAC;AAEF;;;;GAIG;AACH,qBAAa,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"}
|
|
@@ -343,6 +343,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
343
343
|
reverse: boolean;
|
|
344
344
|
rowId: string;
|
|
345
345
|
restartOnReconnection: boolean;
|
|
346
|
+
rowDataMapper: Function;
|
|
346
347
|
private dataSub;
|
|
347
348
|
private updateSub;
|
|
348
349
|
private connectionSub;
|
|
@@ -379,6 +380,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
379
380
|
* @public
|
|
380
381
|
*/
|
|
381
382
|
restart(): void;
|
|
383
|
+
refreshRows(): void;
|
|
382
384
|
/**
|
|
383
385
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
384
386
|
* @remarks Will only happen for DATASERER resources.
|
|
@@ -393,6 +395,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
393
395
|
private handleStreamResult;
|
|
394
396
|
private applyRequestServerData;
|
|
395
397
|
private applyDataserverData;
|
|
398
|
+
private mapTransaction;
|
|
396
399
|
private handleStreamInserts;
|
|
397
400
|
private handleStreamDeletes;
|
|
398
401
|
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;;;;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;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,"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e;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;IA0BL;;;OAGG;IACH,OAAO;IAKP,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAOlB,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;IAajD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
|
@@ -138,6 +138,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
138
138
|
this.deinit();
|
|
139
139
|
this.init();
|
|
140
140
|
}
|
|
141
|
+
refreshRows() {
|
|
142
|
+
this.updateRowData(Array.from(this.rows.values()));
|
|
143
|
+
}
|
|
141
144
|
/**
|
|
142
145
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
143
146
|
* @remarks Will only happen for DATASERER resources.
|
|
@@ -160,7 +163,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
160
163
|
if (agColumnDefs) {
|
|
161
164
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
162
165
|
}
|
|
163
|
-
|
|
166
|
+
// If there's a provided transformer for updated rowData, process the rows
|
|
167
|
+
const data = this.rowDataMapper && typeof this.rowDataMapper === 'function'
|
|
168
|
+
? this.rowDataMapper(rowData)
|
|
169
|
+
: rowData;
|
|
170
|
+
this.agGrid.gridApi.setRowData(data);
|
|
164
171
|
this.requiresFullRowDataAndColDefs = false;
|
|
165
172
|
}
|
|
166
173
|
loadResourceData(withFullInit = true) {
|
|
@@ -260,7 +267,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
260
267
|
this.handleStreamInserts(requestServerResult.REPLY);
|
|
261
268
|
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
262
269
|
this.handleStreamDeletes(rowsToDelete);
|
|
263
|
-
this.
|
|
270
|
+
const transaction = this.rowDataMapper
|
|
271
|
+
? this.mapTransaction(this.agTransaction)
|
|
272
|
+
: this.agTransaction;
|
|
273
|
+
this.agGrid.gridApi.applyTransactionAsync(transaction);
|
|
264
274
|
}
|
|
265
275
|
applyDataserverData(dataServerResult) {
|
|
266
276
|
var _a;
|
|
@@ -276,7 +286,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
276
286
|
this.handleStreamInserts(dataServerResult.inserts);
|
|
277
287
|
this.handleStreamDeletes(dataServerResult.deletes);
|
|
278
288
|
this.handleStreamUpdates(dataServerResult.updates);
|
|
279
|
-
this.agGrid.gridApi.
|
|
289
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction));
|
|
290
|
+
}
|
|
291
|
+
mapTransaction(transaction) {
|
|
292
|
+
if (!this.rowDataMapper) {
|
|
293
|
+
return transaction;
|
|
294
|
+
}
|
|
295
|
+
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) });
|
|
280
296
|
}
|
|
281
297
|
handleStreamInserts(insertedRows) {
|
|
282
298
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
@@ -410,6 +426,9 @@ __decorate([
|
|
|
410
426
|
__decorate([
|
|
411
427
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
412
428
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
429
|
+
__decorate([
|
|
430
|
+
observable
|
|
431
|
+
], GridProGenesisDatasource.prototype, "rowDataMapper", void 0);
|
|
413
432
|
GridProGenesisDatasource = __decorate([
|
|
414
433
|
customElement({
|
|
415
434
|
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",
|
|
@@ -6934,6 +6934,37 @@
|
|
|
6934
6934
|
"isProtected": false,
|
|
6935
6935
|
"isAbstract": false
|
|
6936
6936
|
},
|
|
6937
|
+
{
|
|
6938
|
+
"kind": "Method",
|
|
6939
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#refreshRows:member(1)",
|
|
6940
|
+
"docComment": "",
|
|
6941
|
+
"excerptTokens": [
|
|
6942
|
+
{
|
|
6943
|
+
"kind": "Content",
|
|
6944
|
+
"text": "refreshRows(): "
|
|
6945
|
+
},
|
|
6946
|
+
{
|
|
6947
|
+
"kind": "Content",
|
|
6948
|
+
"text": "void"
|
|
6949
|
+
},
|
|
6950
|
+
{
|
|
6951
|
+
"kind": "Content",
|
|
6952
|
+
"text": ";"
|
|
6953
|
+
}
|
|
6954
|
+
],
|
|
6955
|
+
"isStatic": false,
|
|
6956
|
+
"returnTypeTokenRange": {
|
|
6957
|
+
"startIndex": 1,
|
|
6958
|
+
"endIndex": 2
|
|
6959
|
+
},
|
|
6960
|
+
"releaseTag": "Public",
|
|
6961
|
+
"isProtected": false,
|
|
6962
|
+
"overloadIndex": 1,
|
|
6963
|
+
"parameters": [],
|
|
6964
|
+
"isOptional": false,
|
|
6965
|
+
"isAbstract": false,
|
|
6966
|
+
"name": "refreshRows"
|
|
6967
|
+
},
|
|
6937
6968
|
{
|
|
6938
6969
|
"kind": "Method",
|
|
6939
6970
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#removeFilter:member(1)",
|
|
@@ -7228,6 +7259,37 @@
|
|
|
7228
7259
|
"isProtected": false,
|
|
7229
7260
|
"isAbstract": false
|
|
7230
7261
|
},
|
|
7262
|
+
{
|
|
7263
|
+
"kind": "Property",
|
|
7264
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowDataMapper:member",
|
|
7265
|
+
"docComment": "",
|
|
7266
|
+
"excerptTokens": [
|
|
7267
|
+
{
|
|
7268
|
+
"kind": "Content",
|
|
7269
|
+
"text": "rowDataMapper: "
|
|
7270
|
+
},
|
|
7271
|
+
{
|
|
7272
|
+
"kind": "Reference",
|
|
7273
|
+
"text": "Function",
|
|
7274
|
+
"canonicalReference": "!Function:interface"
|
|
7275
|
+
},
|
|
7276
|
+
{
|
|
7277
|
+
"kind": "Content",
|
|
7278
|
+
"text": ";"
|
|
7279
|
+
}
|
|
7280
|
+
],
|
|
7281
|
+
"isReadonly": false,
|
|
7282
|
+
"isOptional": false,
|
|
7283
|
+
"releaseTag": "Public",
|
|
7284
|
+
"name": "rowDataMapper",
|
|
7285
|
+
"propertyTypeTokenRange": {
|
|
7286
|
+
"startIndex": 1,
|
|
7287
|
+
"endIndex": 2
|
|
7288
|
+
},
|
|
7289
|
+
"isStatic": false,
|
|
7290
|
+
"isProtected": false,
|
|
7291
|
+
"isAbstract": false
|
|
7292
|
+
},
|
|
7231
7293
|
{
|
|
7232
7294
|
"kind": "Property",
|
|
7233
7295
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowId:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare type ActionRendererParams = {
|
|
|
97
97
|
* A unique field name used to identify the action button used for E2E testing, so that the data-testid attribute value can be unique.
|
|
98
98
|
*/
|
|
99
99
|
uniqueFieldName?: string;
|
|
100
|
+
contentTemplate?: string;
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
/**
|
|
@@ -1226,6 +1227,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1226
1227
|
reverse: boolean;
|
|
1227
1228
|
rowId: string;
|
|
1228
1229
|
restartOnReconnection: boolean;
|
|
1230
|
+
rowDataMapper: Function;
|
|
1229
1231
|
private dataSub;
|
|
1230
1232
|
private updateSub;
|
|
1231
1233
|
private connectionSub;
|
|
@@ -1262,6 +1264,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1262
1264
|
* @public
|
|
1263
1265
|
*/
|
|
1264
1266
|
restart(): void;
|
|
1267
|
+
refreshRows(): void;
|
|
1265
1268
|
/**
|
|
1266
1269
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1267
1270
|
* @remarks Will only happen for DATASERER resources.
|
|
@@ -1276,6 +1279,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1276
1279
|
private handleStreamResult;
|
|
1277
1280
|
private applyRequestServerData;
|
|
1278
1281
|
private applyDataserverData;
|
|
1282
|
+
private mapTransaction;
|
|
1279
1283
|
private handleStreamInserts;
|
|
1280
1284
|
private handleStreamDeletes;
|
|
1281
1285
|
private handleStreamUpdates;
|
|
@@ -35,6 +35,7 @@ Only supports Client-Side Row Model.
|
|
|
35
35
|
| [resourceName](./grid-pro.gridprogenesisdatasource.resourcename.md) | | string | |
|
|
36
36
|
| [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
|
|
37
37
|
| [reverse](./grid-pro.gridprogenesisdatasource.reverse.md) | | boolean | |
|
|
38
|
+
| [rowDataMapper](./grid-pro.gridprogenesisdatasource.rowdatamapper.md) | | Function | |
|
|
38
39
|
| [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | | string | |
|
|
39
40
|
|
|
40
41
|
## Methods
|
|
@@ -47,6 +48,7 @@ Only supports Client-Side Row Model.
|
|
|
47
48
|
| [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
|
|
48
49
|
| [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
|
|
49
50
|
| [init()](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
|
|
51
|
+
| [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | |
|
|
50
52
|
| [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
|
|
51
53
|
| [reset()](./grid-pro.gridprogenesisdatasource.reset.md) | | Resets the datasource to its initial state. |
|
|
52
54
|
| [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
|
@@ -77,6 +77,7 @@ export type ActionRendererParams = {
|
|
|
77
77
|
dataTestId?: string;
|
|
78
78
|
isDisabled?: (rowData: any) => boolean;
|
|
79
79
|
uniqueFieldName?: string;
|
|
80
|
+
contentTemplate?: string;
|
|
80
81
|
};
|
|
81
82
|
|
|
82
83
|
// @public
|
|
@@ -669,6 +670,8 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
669
670
|
// (undocumented)
|
|
670
671
|
orderBy: string;
|
|
671
672
|
// (undocumented)
|
|
673
|
+
refreshRows(): void;
|
|
674
|
+
// (undocumented)
|
|
672
675
|
removeFilter(fieldName: string): void;
|
|
673
676
|
// (undocumented)
|
|
674
677
|
request: any;
|
|
@@ -684,6 +687,8 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
684
687
|
// (undocumented)
|
|
685
688
|
reverse: boolean;
|
|
686
689
|
// (undocumented)
|
|
690
|
+
rowDataMapper: Function;
|
|
691
|
+
// (undocumented)
|
|
687
692
|
rowId: string;
|
|
688
693
|
// (undocumented)
|
|
689
694
|
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.30.1-bny.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"serve": "genx serve"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@genesislcap/foundation-testing": "
|
|
25
|
-
"@genesislcap/genx": "
|
|
24
|
+
"@genesislcap/foundation-testing": "14.30.1-bny.1",
|
|
25
|
+
"@genesislcap/genx": "14.30.1-bny.1",
|
|
26
26
|
"@playwright/test": "^1.18.1",
|
|
27
27
|
"bulma": "^0.9.3",
|
|
28
28
|
"c8": "^7.11.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"watchlist": "^0.3.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@genesislcap/foundation-comms": "
|
|
42
|
-
"@genesislcap/foundation-ui": "
|
|
43
|
-
"@genesislcap/foundation-utils": "
|
|
41
|
+
"@genesislcap/foundation-comms": "14.30.1-bny.1",
|
|
42
|
+
"@genesislcap/foundation-ui": "14.30.1-bny.1",
|
|
43
|
+
"@genesislcap/foundation-utils": "14.30.1-bny.1",
|
|
44
44
|
"@microsoft/fast-colors": "^5.1.4",
|
|
45
45
|
"@microsoft/fast-components": "^2.21.3",
|
|
46
46
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
68
|
"customElements": "dist/custom-elements.json",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "3ac7cef77f72974bd644296ca9b2be4136e54e18"
|
|
70
70
|
}
|