@genesislcap/grid-pro 14.24.4 → 14.25.0-bny.2
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 +20 -4
- 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 +21 -4
- 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 +11 -37
|
@@ -4446,6 +4446,13 @@
|
|
|
4446
4446
|
},
|
|
4447
4447
|
"default": "false"
|
|
4448
4448
|
},
|
|
4449
|
+
{
|
|
4450
|
+
"kind": "field",
|
|
4451
|
+
"name": "rowDataMapper",
|
|
4452
|
+
"type": {
|
|
4453
|
+
"text": "Function"
|
|
4454
|
+
}
|
|
4455
|
+
},
|
|
4449
4456
|
{
|
|
4450
4457
|
"kind": "field",
|
|
4451
4458
|
"name": "dataSub",
|
|
@@ -4578,6 +4585,10 @@
|
|
|
4578
4585
|
"description": "Restarts the datasource, uses `deinit` and `init` in sequence.",
|
|
4579
4586
|
"privacy": "public"
|
|
4580
4587
|
},
|
|
4588
|
+
{
|
|
4589
|
+
"kind": "method",
|
|
4590
|
+
"name": "refreshRows"
|
|
4591
|
+
},
|
|
4581
4592
|
{
|
|
4582
4593
|
"kind": "method",
|
|
4583
4594
|
"name": "clearRowData",
|
|
@@ -4668,6 +4679,19 @@
|
|
|
4668
4679
|
}
|
|
4669
4680
|
]
|
|
4670
4681
|
},
|
|
4682
|
+
{
|
|
4683
|
+
"kind": "method",
|
|
4684
|
+
"name": "mapTransaction",
|
|
4685
|
+
"privacy": "private",
|
|
4686
|
+
"parameters": [
|
|
4687
|
+
{
|
|
4688
|
+
"name": "transaction",
|
|
4689
|
+
"type": {
|
|
4690
|
+
"text": "RowDataTransaction"
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
]
|
|
4694
|
+
},
|
|
4671
4695
|
{
|
|
4672
4696
|
"kind": "method",
|
|
4673
4697
|
"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"}
|
|
@@ -23,12 +23,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
23
23
|
innerText: string;
|
|
24
24
|
lang: string;
|
|
25
25
|
readonly offsetHeight: number;
|
|
26
|
+
readonly offsetLeft: number;
|
|
26
27
|
/**
|
|
27
28
|
* Initializes the datasource.
|
|
28
29
|
* @public
|
|
29
30
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
30
31
|
*/
|
|
31
|
-
readonly offsetLeft: number;
|
|
32
32
|
readonly offsetParent: Element;
|
|
33
33
|
readonly offsetTop: number;
|
|
34
34
|
readonly offsetWidth: number;
|
|
@@ -45,6 +45,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
45
45
|
readonly attributes: NamedNodeMap;
|
|
46
46
|
readonly classList: DOMTokenList;
|
|
47
47
|
className: string;
|
|
48
|
+
/**
|
|
49
|
+
* Deinitialises the datasource, resetting it to its initial state.
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
48
52
|
readonly clientHeight: number;
|
|
49
53
|
readonly clientLeft: number;
|
|
50
54
|
readonly clientTop: number;
|
|
@@ -66,9 +70,18 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
66
70
|
slot: string;
|
|
67
71
|
readonly tagName: string;
|
|
68
72
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
69
|
-
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2]; /**
|
|
74
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3]; /**
|
|
78
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
closest<E extends Element = Element>(selectors: string): E; /**
|
|
82
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
72
85
|
getAttribute(qualifiedName: string): string;
|
|
73
86
|
getAttributeNS(namespace: string, localName: string): string;
|
|
74
87
|
getAttributeNames(): string[];
|
|
@@ -348,6 +361,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
348
361
|
reverse: boolean;
|
|
349
362
|
rowId: string;
|
|
350
363
|
restartOnReconnection: boolean;
|
|
364
|
+
rowDataMapper: Function;
|
|
351
365
|
private dataSub;
|
|
352
366
|
private updateSub;
|
|
353
367
|
private connectionSub;
|
|
@@ -384,6 +398,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
384
398
|
* @public
|
|
385
399
|
*/
|
|
386
400
|
restart(): void;
|
|
401
|
+
refreshRows(): void;
|
|
387
402
|
private clearRowData;
|
|
388
403
|
private updateRowData;
|
|
389
404
|
private loadResourceData;
|
|
@@ -392,6 +407,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
392
407
|
private handleStreamResult;
|
|
393
408
|
private applyRequestServerData;
|
|
394
409
|
private applyDataserverData;
|
|
410
|
+
private mapTransaction;
|
|
395
411
|
private handleStreamInserts;
|
|
396
412
|
private handleStreamDeletes;
|
|
397
413
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;IA2G7D;;;;OAIG;;;;;;;;;;;;;;;;;IAmCH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;iGAwCH;;;OAGG;+FAHH;;;OAGG;gEAHH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,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"}
|
|
@@ -139,6 +139,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
139
139
|
this.deinit();
|
|
140
140
|
this.init();
|
|
141
141
|
}
|
|
142
|
+
refreshRows() {
|
|
143
|
+
this.updateRowData(Array.from(this.rows.values()));
|
|
144
|
+
}
|
|
142
145
|
clearRowData() {
|
|
143
146
|
var _a, _b;
|
|
144
147
|
this.rows = new Map();
|
|
@@ -150,7 +153,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
150
153
|
if (agColumnDefs) {
|
|
151
154
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
152
155
|
}
|
|
153
|
-
|
|
156
|
+
// If there's a provided transformer for updated rowData, process the rows
|
|
157
|
+
const data = this.rowDataMapper && typeof this.rowDataMapper === 'function'
|
|
158
|
+
? this.rowDataMapper(rowData)
|
|
159
|
+
: rowData;
|
|
160
|
+
this.agGrid.gridApi.setRowData(data);
|
|
154
161
|
this.requiresFullRowDataAndColDefs = false;
|
|
155
162
|
}
|
|
156
163
|
loadResourceData(withFullInit = true) {
|
|
@@ -250,7 +257,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
250
257
|
this.handleStreamInserts(requestServerResult.REPLY);
|
|
251
258
|
const rowsToDelete = Array.from(this.rows.values()).filter((row) => !requestServerResult.REPLY.includes(row));
|
|
252
259
|
this.handleStreamDeletes(rowsToDelete);
|
|
253
|
-
this.
|
|
260
|
+
const transaction = this.rowDataMapper
|
|
261
|
+
? this.mapTransaction(this.agTransaction)
|
|
262
|
+
: this.agTransaction;
|
|
263
|
+
this.agGrid.gridApi.applyTransactionAsync(transaction);
|
|
254
264
|
}
|
|
255
265
|
applyDataserverData(dataServerResult) {
|
|
256
266
|
var _a;
|
|
@@ -266,7 +276,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
266
276
|
this.handleStreamInserts(dataServerResult.inserts);
|
|
267
277
|
this.handleStreamDeletes(dataServerResult.deletes);
|
|
268
278
|
this.handleStreamUpdates(dataServerResult.updates);
|
|
269
|
-
this.agGrid.gridApi.applyTransactionAsync(this.agTransaction);
|
|
279
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction));
|
|
280
|
+
}
|
|
281
|
+
mapTransaction(transaction) {
|
|
282
|
+
if (!this.rowDataMapper) {
|
|
283
|
+
return transaction;
|
|
284
|
+
}
|
|
285
|
+
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) });
|
|
270
286
|
}
|
|
271
287
|
handleStreamInserts(insertedRows) {
|
|
272
288
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
@@ -396,6 +412,9 @@ __decorate([
|
|
|
396
412
|
__decorate([
|
|
397
413
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
398
414
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
415
|
+
__decorate([
|
|
416
|
+
observable
|
|
417
|
+
], GridProGenesisDatasource.prototype, "rowDataMapper", void 0);
|
|
399
418
|
GridProGenesisDatasource = __decorate([
|
|
400
419
|
customElement({
|
|
401
420
|
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
|
private clearRowData;
|
|
1266
1269
|
private updateRowData;
|
|
1267
1270
|
private loadResourceData;
|
|
@@ -1270,6 +1273,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1270
1273
|
private handleStreamResult;
|
|
1271
1274
|
private applyRequestServerData;
|
|
1272
1275
|
private applyDataserverData;
|
|
1276
|
+
private mapTransaction;
|
|
1273
1277
|
private handleStreamInserts;
|
|
1274
1278
|
private handleStreamDeletes;
|
|
1275
1279
|
private handleStreamUpdates;
|
|
@@ -1302,12 +1306,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1302
1306
|
innerText: string;
|
|
1303
1307
|
lang: string;
|
|
1304
1308
|
readonly offsetHeight: number;
|
|
1309
|
+
readonly offsetLeft: number;
|
|
1305
1310
|
/**
|
|
1306
1311
|
* Initializes the datasource.
|
|
1307
1312
|
* @public
|
|
1308
1313
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1309
1314
|
*/
|
|
1310
|
-
readonly offsetLeft: number;
|
|
1311
1315
|
readonly offsetParent: Element;
|
|
1312
1316
|
readonly offsetTop: number;
|
|
1313
1317
|
readonly offsetWidth: number;
|
|
@@ -1324,6 +1328,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1324
1328
|
readonly attributes: NamedNodeMap;
|
|
1325
1329
|
readonly classList: DOMTokenList;
|
|
1326
1330
|
className: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* Deinitialises the datasource, resetting it to its initial state.
|
|
1333
|
+
* @public
|
|
1334
|
+
*/
|
|
1327
1335
|
readonly clientHeight: number;
|
|
1328
1336
|
readonly clientLeft: number;
|
|
1329
1337
|
readonly clientTop: number;
|
|
@@ -1345,9 +1353,18 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1345
1353
|
slot: string;
|
|
1346
1354
|
readonly tagName: string;
|
|
1347
1355
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
1348
|
-
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
1349
|
-
|
|
1350
|
-
|
|
1356
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2]; /**
|
|
1357
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1358
|
+
* @public
|
|
1359
|
+
*/
|
|
1360
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3]; /**
|
|
1361
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1362
|
+
* @public
|
|
1363
|
+
*/
|
|
1364
|
+
closest<E extends Element = Element>(selectors: string): E; /**
|
|
1365
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1366
|
+
* @public
|
|
1367
|
+
*/
|
|
1351
1368
|
getAttribute(qualifiedName: string): string;
|
|
1352
1369
|
getAttributeNS(namespace: string, localName: string): string;
|
|
1353
1370
|
getAttributeNames(): string[];
|
|
@@ -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.25.0-bny.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -12,61 +12,35 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "genx build",
|
|
14
14
|
"build:rollup": "genx build -b rollup",
|
|
15
|
-
"build:webpack": "
|
|
16
|
-
"build:webpack:make-federated-types": "make-federated-types",
|
|
15
|
+
"build:webpack": "genx build -b webpack",
|
|
17
16
|
"clean": "genx clean",
|
|
18
17
|
"dev": "npm run dev:tsc",
|
|
19
18
|
"dev:rollup": "genx dev -b rollup",
|
|
20
19
|
"dev:tsc": "genx dev",
|
|
21
|
-
"dev:webpack": "
|
|
22
|
-
"serve": "genx serve"
|
|
23
|
-
"test": "echo \"Error: no test specified\""
|
|
20
|
+
"dev:webpack": "genx dev -b webpack",
|
|
21
|
+
"serve": "genx serve"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
|
-
"@genesislcap/foundation-testing": "
|
|
27
|
-
"@genesislcap/genx": "
|
|
24
|
+
"@genesislcap/foundation-testing": "14.25.0-bny.2",
|
|
25
|
+
"@genesislcap/genx": "14.25.0-bny.2",
|
|
28
26
|
"@playwright/test": "^1.18.1",
|
|
29
27
|
"bulma": "^0.9.3",
|
|
30
28
|
"c8": "^7.11.0",
|
|
31
|
-
"camel-case": "^4.1.2",
|
|
32
|
-
"circular-dependency-plugin": "^5.2.2",
|
|
33
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
34
|
-
"copyfiles": "^2.4.1",
|
|
35
29
|
"cross-env": "^7.0.3",
|
|
36
|
-
"csp-html-webpack-plugin": "^5.1.0",
|
|
37
|
-
"css-loader": "^6.6.0",
|
|
38
|
-
"cssnano": "^5.0.17",
|
|
39
30
|
"esm": "^3.2.25",
|
|
40
|
-
"file-loader": "^6.2.0",
|
|
41
|
-
"html-loader": "^3.1.0",
|
|
42
|
-
"html-webpack-plugin": "^5.3.1",
|
|
43
31
|
"jsdom": "^19.0.0",
|
|
44
|
-
"mini-css-extract-plugin": "^2.5.3",
|
|
45
32
|
"playwright-test": "^7.2.1",
|
|
46
|
-
"postcss": "^8.2.8",
|
|
47
|
-
"postcss-import": "^14.0.0",
|
|
48
|
-
"postcss-loader": "^6.2.1",
|
|
49
|
-
"postcss-preset-env": "^7.0.1",
|
|
50
33
|
"rxjs": "^7.5.4",
|
|
51
|
-
"sass": "^1.49.7",
|
|
52
34
|
"sinon": "15.0.1",
|
|
53
|
-
"terser-webpack-plugin": "^5.3.1",
|
|
54
|
-
"to-string-loader": "^1.2.0",
|
|
55
|
-
"ts-loader": "9.3.1",
|
|
56
|
-
"tsconfig-paths-webpack-plugin": "^3.5.1",
|
|
57
35
|
"tsm": "^2.2.1",
|
|
58
36
|
"typescript": "^4.5.5",
|
|
59
37
|
"uvu": "0.5.4",
|
|
60
|
-
"watchlist": "^0.3.1"
|
|
61
|
-
"webpack": "^5.45.1",
|
|
62
|
-
"webpack-cli": "^4.5.0",
|
|
63
|
-
"webpack-dev-server": "^4.0.0-beta.3",
|
|
64
|
-
"webpack-merge": "^5.7.3"
|
|
38
|
+
"watchlist": "^0.3.1"
|
|
65
39
|
},
|
|
66
40
|
"dependencies": {
|
|
67
|
-
"@genesislcap/foundation-comms": "
|
|
68
|
-
"@genesislcap/foundation-ui": "
|
|
69
|
-
"@genesislcap/foundation-utils": "
|
|
41
|
+
"@genesislcap/foundation-comms": "14.25.0-bny.2",
|
|
42
|
+
"@genesislcap/foundation-ui": "14.25.0-bny.2",
|
|
43
|
+
"@genesislcap/foundation-utils": "14.25.0-bny.2",
|
|
70
44
|
"@microsoft/fast-colors": "^5.1.4",
|
|
71
45
|
"@microsoft/fast-components": "^2.21.3",
|
|
72
46
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -92,5 +66,5 @@
|
|
|
92
66
|
"access": "public"
|
|
93
67
|
},
|
|
94
68
|
"customElements": "dist/custom-elements.json",
|
|
95
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "7b641c5cd4607901def78b3bf4b0448edf20e591"
|
|
96
70
|
}
|