@genesislcap/grid-pro 14.41.0 → 14.41.2-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 +50 -9
- 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/cell-renderers/actions-menu.renderer.d.ts +1 -1
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +11 -2
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/cell-renderers/actions-menu.renderer.js +2 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +74 -32
- package/dist/grid-pro.api.json +72 -5
- package/dist/grid-pro.d.ts +13 -3
- package/docs/api/grid-pro.actionrendererparams.md +1 -0
- package/docs/api/grid-pro.getactionsmenudef.md +1 -1
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +2 -2
- package/docs/api/grid-pro.gridprogenesisdatasource.md +3 -1
- package/docs/api/grid-pro.gridprogenesisdatasource.refreshrows.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.rowdatamapper.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.rowid.md +1 -1
- package/docs/api-report.md +8 -3
- package/package.json +7 -7
|
@@ -1377,6 +1377,13 @@
|
|
|
1377
1377
|
"text": "string"
|
|
1378
1378
|
},
|
|
1379
1379
|
"description": "Optional appearance for the button that opens the menu. Default is 'outline'."
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"name": "hideMenuSingleOption",
|
|
1383
|
+
"optional": true,
|
|
1384
|
+
"type": {
|
|
1385
|
+
"text": "boolean"
|
|
1386
|
+
}
|
|
1380
1387
|
}
|
|
1381
1388
|
],
|
|
1382
1389
|
"description": "Helper function to get ColDef https://www.ag-grid.com/javascript-data-grid/column-properties/ for Actions Menu Renderer.\nWill take the parameter values for a base ColDef and merge them with the overrideDef (if specified).",
|
|
@@ -3241,11 +3248,7 @@
|
|
|
3241
3248
|
},
|
|
3242
3249
|
{
|
|
3243
3250
|
"kind": "field",
|
|
3244
|
-
"name": "rowId"
|
|
3245
|
-
"type": {
|
|
3246
|
-
"text": "string"
|
|
3247
|
-
},
|
|
3248
|
-
"default": "'ROW_REF'"
|
|
3251
|
+
"name": "rowId"
|
|
3249
3252
|
},
|
|
3250
3253
|
{
|
|
3251
3254
|
"kind": "field",
|
|
@@ -3255,6 +3258,13 @@
|
|
|
3255
3258
|
},
|
|
3256
3259
|
"default": "false"
|
|
3257
3260
|
},
|
|
3261
|
+
{
|
|
3262
|
+
"kind": "field",
|
|
3263
|
+
"name": "rowDataMapper",
|
|
3264
|
+
"type": {
|
|
3265
|
+
"text": "Function"
|
|
3266
|
+
}
|
|
3267
|
+
},
|
|
3258
3268
|
{
|
|
3259
3269
|
"kind": "field",
|
|
3260
3270
|
"name": "dataSub",
|
|
@@ -3279,6 +3289,15 @@
|
|
|
3279
3289
|
},
|
|
3280
3290
|
"privacy": "private"
|
|
3281
3291
|
},
|
|
3292
|
+
{
|
|
3293
|
+
"kind": "field",
|
|
3294
|
+
"name": "isRequestServer",
|
|
3295
|
+
"type": {
|
|
3296
|
+
"text": "boolean"
|
|
3297
|
+
},
|
|
3298
|
+
"privacy": "private",
|
|
3299
|
+
"default": "false"
|
|
3300
|
+
},
|
|
3282
3301
|
{
|
|
3283
3302
|
"kind": "field",
|
|
3284
3303
|
"name": "requiresFullRowDataAndColDefs",
|
|
@@ -3358,6 +3377,15 @@
|
|
|
3358
3377
|
"privacy": "private",
|
|
3359
3378
|
"readonly": true
|
|
3360
3379
|
},
|
|
3380
|
+
{
|
|
3381
|
+
"kind": "field",
|
|
3382
|
+
"name": "rowIdByResourceType",
|
|
3383
|
+
"type": {
|
|
3384
|
+
"text": "string"
|
|
3385
|
+
},
|
|
3386
|
+
"privacy": "private",
|
|
3387
|
+
"readonly": true
|
|
3388
|
+
},
|
|
3361
3389
|
{
|
|
3362
3390
|
"kind": "method",
|
|
3363
3391
|
"name": "init",
|
|
@@ -3383,6 +3411,10 @@
|
|
|
3383
3411
|
"description": "Restarts the datasource, uses `deinit` and `init` in sequence.",
|
|
3384
3412
|
"privacy": "public"
|
|
3385
3413
|
},
|
|
3414
|
+
{
|
|
3415
|
+
"kind": "method",
|
|
3416
|
+
"name": "refreshRows"
|
|
3417
|
+
},
|
|
3386
3418
|
{
|
|
3387
3419
|
"kind": "method",
|
|
3388
3420
|
"name": "clearRowData",
|
|
@@ -3476,6 +3508,19 @@
|
|
|
3476
3508
|
}
|
|
3477
3509
|
]
|
|
3478
3510
|
},
|
|
3511
|
+
{
|
|
3512
|
+
"kind": "method",
|
|
3513
|
+
"name": "mapTransaction",
|
|
3514
|
+
"privacy": "private",
|
|
3515
|
+
"parameters": [
|
|
3516
|
+
{
|
|
3517
|
+
"name": "transaction",
|
|
3518
|
+
"type": {
|
|
3519
|
+
"text": "RowDataTransaction"
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
]
|
|
3523
|
+
},
|
|
3479
3524
|
{
|
|
3480
3525
|
"kind": "method",
|
|
3481
3526
|
"name": "handleStreamInserts",
|
|
@@ -3639,10 +3684,6 @@
|
|
|
3639
3684
|
},
|
|
3640
3685
|
{
|
|
3641
3686
|
"name": "row-id",
|
|
3642
|
-
"type": {
|
|
3643
|
-
"text": "string"
|
|
3644
|
-
},
|
|
3645
|
-
"default": "'ROW_REF'",
|
|
3646
3687
|
"fieldName": "rowId"
|
|
3647
3688
|
},
|
|
3648
3689
|
{
|
|
@@ -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,CAAC;CAC1B,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"}
|
|
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,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,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"}
|
|
@@ -60,5 +60,5 @@ export declare const foundationGridProActionsMenuRenderer: (overrideDefinition?:
|
|
|
60
60
|
* ```
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
63
|
-
export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
|
|
63
|
+
export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef;
|
|
64
64
|
//# sourceMappingURL=actions-menu.renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,YACnB,cAAc,EAAE,gBACZ,MAAM,4BACM,MAAM,eACnB,OAAO,qBACA,MAAM,
|
|
1
|
+
{"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,YACnB,cAAc,EAAE,gBACZ,MAAM,4BACM,MAAM,eACnB,OAAO,qBACA,MAAM,yBACF,OAAO,KAC7B,MAsBF,CAAC"}
|
|
@@ -64,6 +64,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
64
64
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
65
65
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
66
66
|
closest<E extends Element = Element>(selectors: string): E;
|
|
67
|
+
/**
|
|
68
|
+
* Deinitialises the datasource, resetting it to its initial state.
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
67
71
|
getAttribute(qualifiedName: string): string;
|
|
68
72
|
getAttributeNS(namespace: string, localName: string): string;
|
|
69
73
|
getAttributeNames(): string[];
|
|
@@ -342,11 +346,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
342
346
|
resourceName: string;
|
|
343
347
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
344
348
|
reverse: boolean;
|
|
345
|
-
rowId:
|
|
349
|
+
rowId: any;
|
|
346
350
|
restartOnReconnection: boolean;
|
|
351
|
+
rowDataMapper: Function;
|
|
347
352
|
private dataSub;
|
|
348
353
|
private updateSub;
|
|
349
354
|
private connectionSub;
|
|
355
|
+
private isRequestServer;
|
|
350
356
|
private requiresFullRowDataAndColDefs;
|
|
351
357
|
private dataSubWasLoggedOff;
|
|
352
358
|
private rows;
|
|
@@ -358,12 +364,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
358
364
|
disconnectedCallback(): void;
|
|
359
365
|
deepClone(): Node;
|
|
360
366
|
private get agGrid();
|
|
367
|
+
private get rowIdByResourceType();
|
|
361
368
|
/**
|
|
362
369
|
* Initializes the datasource.
|
|
363
370
|
* @public
|
|
364
371
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
365
372
|
*/
|
|
366
|
-
init(): void
|
|
373
|
+
init(): Promise<void>;
|
|
367
374
|
/**
|
|
368
375
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
369
376
|
* @public
|
|
@@ -380,6 +387,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
380
387
|
* @public
|
|
381
388
|
*/
|
|
382
389
|
restart(): void;
|
|
390
|
+
refreshRows(): void;
|
|
383
391
|
/**
|
|
384
392
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
385
393
|
* @remarks Will only happen for DATASERER resources.
|
|
@@ -394,6 +402,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
394
402
|
private handleStreamResult;
|
|
395
403
|
private applyRequestServerData;
|
|
396
404
|
private applyDataserverData;
|
|
405
|
+
private mapTransaction;
|
|
397
406
|
private handleStreamInserts;
|
|
398
407
|
private handleStreamDeletes;
|
|
399
408
|
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,
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+K7D;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjKL;;;;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,MAAC;IAC4B,qBAAqB,UAAS;IACnF,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,mBAAmB,GAI9B;IAED;;;;OAIG;IACG,IAAI;IA0CV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA6BL;;;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;IAU1B,OAAO,CAAC,sBAAsB;IA+C9B,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"}
|
|
@@ -73,7 +73,7 @@ export const foundationGridProActionsMenuRenderer = ActionsMenuRenderer.compose(
|
|
|
73
73
|
* ```
|
|
74
74
|
* @public
|
|
75
75
|
*/
|
|
76
|
-
export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpenerName = '⋮', isVertical = false, buttonAppearance) => {
|
|
76
|
+
export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpenerName = '⋮', isVertical = false, buttonAppearance, hideMenuSingleOption) => {
|
|
77
77
|
const actionsMenuDef = {
|
|
78
78
|
cellRenderer: GridProRendererTypes.actionsMenu,
|
|
79
79
|
cellRendererParams: {
|
|
@@ -81,6 +81,7 @@ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpener
|
|
|
81
81
|
buttonAppearance,
|
|
82
82
|
isVertical,
|
|
83
83
|
buttonText: customActionsOpenerName,
|
|
84
|
+
hideMenuSingleOption: true,
|
|
84
85
|
},
|
|
85
86
|
cellStyle: { border: 'none', overflow: 'visible' },
|
|
86
87
|
field: 'actions',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Connect, dataServerResultFilter, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, normaliseCriteria, } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Connect, dataServerResultFilter, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, normaliseCriteria, ResourceType, } 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';
|
|
28
27
|
this.restartOnReconnection = false;
|
|
28
|
+
this.isRequestServer = false;
|
|
29
29
|
this.requiresFullRowDataAndColDefs = true;
|
|
30
30
|
this.dataSubWasLoggedOff = false;
|
|
31
31
|
this.rows = new Map();
|
|
@@ -86,27 +86,41 @@ 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
|
+
}
|
|
89
96
|
/**
|
|
90
97
|
* Initializes the datasource.
|
|
91
98
|
* @public
|
|
92
99
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
93
100
|
*/
|
|
94
101
|
init() {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
yield this.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
if (this.agGrid &&
|
|
104
|
+
this.datasource.validResourceName(this.resourceName) &&
|
|
105
|
+
this.connect.isConnected) {
|
|
106
|
+
const meta = yield this.connect.getMetadata(this.resourceName);
|
|
107
|
+
this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
|
|
108
|
+
this.rowId = this.rowIdByResourceType;
|
|
109
|
+
const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId] }, this.deferredGridOptions);
|
|
110
|
+
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
111
|
+
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
yield this.loadResourceData();
|
|
113
|
+
}), { once: true });
|
|
114
|
+
const filterDebounceTime = 600;
|
|
115
|
+
this.updateSub = this.update
|
|
116
|
+
.pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
|
|
117
|
+
.subscribe((value) => {
|
|
118
|
+
this.loadResourceData(withoutFullInit);
|
|
119
|
+
});
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
123
|
+
});
|
|
110
124
|
}
|
|
111
125
|
/**
|
|
112
126
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
@@ -133,6 +147,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
133
147
|
this.connectionSub.unsubscribe();
|
|
134
148
|
this.connectionSub = undefined;
|
|
135
149
|
}
|
|
150
|
+
this.isRequestServer = false;
|
|
136
151
|
this.requiresFullRowDataAndColDefs = true;
|
|
137
152
|
this.dataSubWasLoggedOff = false;
|
|
138
153
|
this.dataLogoff();
|
|
@@ -149,6 +164,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
149
164
|
this.deinit();
|
|
150
165
|
this.init();
|
|
151
166
|
}
|
|
167
|
+
refreshRows() {
|
|
168
|
+
this.updateRowData(Array.from(this.rows.values()));
|
|
169
|
+
}
|
|
152
170
|
/**
|
|
153
171
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
154
172
|
* @remarks Will only happen for DATASERER resources.
|
|
@@ -171,7 +189,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
171
189
|
if (agColumnDefs) {
|
|
172
190
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
173
191
|
}
|
|
174
|
-
|
|
192
|
+
// If there's a provided transformer for updated rowData, process the rows
|
|
193
|
+
const data = this.rowDataMapper && typeof this.rowDataMapper === 'function'
|
|
194
|
+
? this.rowDataMapper(rowData)
|
|
195
|
+
: rowData;
|
|
196
|
+
this.agGrid.gridApi.setRowData(data);
|
|
175
197
|
this.requiresFullRowDataAndColDefs = false;
|
|
176
198
|
}
|
|
177
199
|
loadResourceData(withFullInit = true) {
|
|
@@ -242,8 +264,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
242
264
|
handleStreamResult(result) {
|
|
243
265
|
if (!result)
|
|
244
266
|
return;
|
|
245
|
-
|
|
246
|
-
if (isRequestServer) {
|
|
267
|
+
if (this.isRequestServer) {
|
|
247
268
|
this.applyRequestServerData(result);
|
|
248
269
|
}
|
|
249
270
|
else {
|
|
@@ -251,27 +272,39 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
251
272
|
}
|
|
252
273
|
}
|
|
253
274
|
applyRequestServerData(requestServerResult) {
|
|
254
|
-
var _a
|
|
255
|
-
|
|
275
|
+
var _a;
|
|
276
|
+
const requestServerData = requestServerResult.REPLY;
|
|
277
|
+
if (!Array.isArray(requestServerData) ||
|
|
256
278
|
!((_a = requestServerResult.MESSAGE_TYPE) === null || _a === void 0 ? void 0 : _a.startsWith('REP_'))) {
|
|
257
279
|
logger.error('received invalid RequestServerResult', requestServerResult);
|
|
258
280
|
return;
|
|
259
281
|
}
|
|
260
282
|
if (this.requiresFullRowDataAndColDefs) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerResult.REPLY;
|
|
283
|
+
requestServerData === null || requestServerData === void 0 ? void 0 : requestServerData.forEach((insertData) => {
|
|
284
|
+
this.rows.set(insertData[this.rowId], insertData);
|
|
285
|
+
});
|
|
286
|
+
const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerData;
|
|
267
287
|
this.updateRowData(rowData);
|
|
268
288
|
return;
|
|
269
289
|
}
|
|
270
290
|
this.agTransaction = { add: [], remove: [], update: [] };
|
|
271
|
-
|
|
272
|
-
const rowsToDelete = Array.from(this.rows.values()).filter((row) =>
|
|
291
|
+
const rowsToUpdate = [];
|
|
292
|
+
const rowsToDelete = Array.from(this.rows.values()).filter((row) => {
|
|
293
|
+
const match = requestServerData.find((data) => data[this.rowId] === row[this.rowId]);
|
|
294
|
+
if (match) {
|
|
295
|
+
rowsToUpdate.push(match);
|
|
296
|
+
return false; // don't delete rows that need to be updated
|
|
297
|
+
}
|
|
298
|
+
return true; // delete rows that don't exist in requestServerData
|
|
299
|
+
});
|
|
300
|
+
const rowsToInsert = requestServerData.filter((data) => !this.rows.has(data[this.rowId]));
|
|
301
|
+
this.handleStreamInserts(rowsToInsert);
|
|
273
302
|
this.handleStreamDeletes(rowsToDelete);
|
|
274
|
-
this.
|
|
303
|
+
this.handleStreamUpdates(rowsToUpdate);
|
|
304
|
+
const transaction = this.rowDataMapper
|
|
305
|
+
? this.mapTransaction(this.agTransaction)
|
|
306
|
+
: this.agTransaction;
|
|
307
|
+
this.agGrid.gridApi.applyTransaction(transaction);
|
|
275
308
|
}
|
|
276
309
|
applyDataserverData(dataServerResult) {
|
|
277
310
|
var _a;
|
|
@@ -287,7 +320,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
287
320
|
this.handleStreamInserts(dataServerResult.inserts);
|
|
288
321
|
this.handleStreamDeletes(dataServerResult.deletes);
|
|
289
322
|
this.handleStreamUpdates(dataServerResult.updates);
|
|
290
|
-
this.agGrid.gridApi.applyTransaction(this.agTransaction);
|
|
323
|
+
this.agGrid.gridApi.applyTransaction(this.mapTransaction(this.agTransaction));
|
|
324
|
+
}
|
|
325
|
+
mapTransaction(transaction) {
|
|
326
|
+
if (!this.rowDataMapper) {
|
|
327
|
+
return transaction;
|
|
328
|
+
}
|
|
329
|
+
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) });
|
|
291
330
|
}
|
|
292
331
|
handleStreamInserts(insertedRows) {
|
|
293
332
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
@@ -410,6 +449,9 @@ __decorate([
|
|
|
410
449
|
__decorate([
|
|
411
450
|
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
412
451
|
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
452
|
+
__decorate([
|
|
453
|
+
observable
|
|
454
|
+
], GridProGenesisDatasource.prototype, "rowDataMapper", void 0);
|
|
413
455
|
GridProGenesisDatasource = __decorate([
|
|
414
456
|
customElement({
|
|
415
457
|
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",
|
|
@@ -4401,7 +4401,7 @@
|
|
|
4401
4401
|
},
|
|
4402
4402
|
{
|
|
4403
4403
|
"kind": "Content",
|
|
4404
|
-
"text": ", customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => "
|
|
4404
|
+
"text": ", customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => "
|
|
4405
4405
|
},
|
|
4406
4406
|
{
|
|
4407
4407
|
"kind": "Reference",
|
|
@@ -6762,9 +6762,14 @@
|
|
|
6762
6762
|
"kind": "Content",
|
|
6763
6763
|
"text": "init(): "
|
|
6764
6764
|
},
|
|
6765
|
+
{
|
|
6766
|
+
"kind": "Reference",
|
|
6767
|
+
"text": "Promise",
|
|
6768
|
+
"canonicalReference": "!Promise:interface"
|
|
6769
|
+
},
|
|
6765
6770
|
{
|
|
6766
6771
|
"kind": "Content",
|
|
6767
|
-
"text": "void"
|
|
6772
|
+
"text": "<void>"
|
|
6768
6773
|
},
|
|
6769
6774
|
{
|
|
6770
6775
|
"kind": "Content",
|
|
@@ -6774,7 +6779,7 @@
|
|
|
6774
6779
|
"isStatic": false,
|
|
6775
6780
|
"returnTypeTokenRange": {
|
|
6776
6781
|
"startIndex": 1,
|
|
6777
|
-
"endIndex":
|
|
6782
|
+
"endIndex": 3
|
|
6778
6783
|
},
|
|
6779
6784
|
"releaseTag": "Public",
|
|
6780
6785
|
"isProtected": false,
|
|
@@ -6934,6 +6939,37 @@
|
|
|
6934
6939
|
"isProtected": false,
|
|
6935
6940
|
"isAbstract": false
|
|
6936
6941
|
},
|
|
6942
|
+
{
|
|
6943
|
+
"kind": "Method",
|
|
6944
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#refreshRows:member(1)",
|
|
6945
|
+
"docComment": "",
|
|
6946
|
+
"excerptTokens": [
|
|
6947
|
+
{
|
|
6948
|
+
"kind": "Content",
|
|
6949
|
+
"text": "refreshRows(): "
|
|
6950
|
+
},
|
|
6951
|
+
{
|
|
6952
|
+
"kind": "Content",
|
|
6953
|
+
"text": "void"
|
|
6954
|
+
},
|
|
6955
|
+
{
|
|
6956
|
+
"kind": "Content",
|
|
6957
|
+
"text": ";"
|
|
6958
|
+
}
|
|
6959
|
+
],
|
|
6960
|
+
"isStatic": false,
|
|
6961
|
+
"returnTypeTokenRange": {
|
|
6962
|
+
"startIndex": 1,
|
|
6963
|
+
"endIndex": 2
|
|
6964
|
+
},
|
|
6965
|
+
"releaseTag": "Public",
|
|
6966
|
+
"isProtected": false,
|
|
6967
|
+
"overloadIndex": 1,
|
|
6968
|
+
"parameters": [],
|
|
6969
|
+
"isOptional": false,
|
|
6970
|
+
"isAbstract": false,
|
|
6971
|
+
"name": "refreshRows"
|
|
6972
|
+
},
|
|
6937
6973
|
{
|
|
6938
6974
|
"kind": "Method",
|
|
6939
6975
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#removeFilter:member(1)",
|
|
@@ -7228,6 +7264,37 @@
|
|
|
7228
7264
|
"isProtected": false,
|
|
7229
7265
|
"isAbstract": false
|
|
7230
7266
|
},
|
|
7267
|
+
{
|
|
7268
|
+
"kind": "Property",
|
|
7269
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowDataMapper:member",
|
|
7270
|
+
"docComment": "",
|
|
7271
|
+
"excerptTokens": [
|
|
7272
|
+
{
|
|
7273
|
+
"kind": "Content",
|
|
7274
|
+
"text": "rowDataMapper: "
|
|
7275
|
+
},
|
|
7276
|
+
{
|
|
7277
|
+
"kind": "Reference",
|
|
7278
|
+
"text": "Function",
|
|
7279
|
+
"canonicalReference": "!Function:interface"
|
|
7280
|
+
},
|
|
7281
|
+
{
|
|
7282
|
+
"kind": "Content",
|
|
7283
|
+
"text": ";"
|
|
7284
|
+
}
|
|
7285
|
+
],
|
|
7286
|
+
"isReadonly": false,
|
|
7287
|
+
"isOptional": false,
|
|
7288
|
+
"releaseTag": "Public",
|
|
7289
|
+
"name": "rowDataMapper",
|
|
7290
|
+
"propertyTypeTokenRange": {
|
|
7291
|
+
"startIndex": 1,
|
|
7292
|
+
"endIndex": 2
|
|
7293
|
+
},
|
|
7294
|
+
"isStatic": false,
|
|
7295
|
+
"isProtected": false,
|
|
7296
|
+
"isAbstract": false
|
|
7297
|
+
},
|
|
7231
7298
|
{
|
|
7232
7299
|
"kind": "Property",
|
|
7233
7300
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#rowId:member",
|
|
@@ -7239,7 +7306,7 @@
|
|
|
7239
7306
|
},
|
|
7240
7307
|
{
|
|
7241
7308
|
"kind": "Content",
|
|
7242
|
-
"text": "
|
|
7309
|
+
"text": "any"
|
|
7243
7310
|
},
|
|
7244
7311
|
{
|
|
7245
7312
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export declare type ActionRendererParams = {
|
|
|
91
91
|
* A unique field name used to identify the action button used for E2E testing, so that the data-testid attribute value can be unique.
|
|
92
92
|
*/
|
|
93
93
|
uniqueFieldName?: string;
|
|
94
|
+
contentTemplate?: string;
|
|
94
95
|
};
|
|
95
96
|
|
|
96
97
|
/**
|
|
@@ -681,7 +682,7 @@ declare interface FuiCellRendererParams_2 extends ICellRendererParams {
|
|
|
681
682
|
* ```
|
|
682
683
|
* @public
|
|
683
684
|
*/
|
|
684
|
-
export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
|
|
685
|
+
export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef;
|
|
685
686
|
|
|
686
687
|
/**
|
|
687
688
|
* Get a Design System prefixed Checkbox template.
|
|
@@ -1207,11 +1208,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1207
1208
|
resourceName: string;
|
|
1208
1209
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
1209
1210
|
reverse: boolean;
|
|
1210
|
-
rowId:
|
|
1211
|
+
rowId: any;
|
|
1211
1212
|
restartOnReconnection: boolean;
|
|
1213
|
+
rowDataMapper: Function;
|
|
1212
1214
|
private dataSub;
|
|
1213
1215
|
private updateSub;
|
|
1214
1216
|
private connectionSub;
|
|
1217
|
+
private isRequestServer;
|
|
1215
1218
|
private requiresFullRowDataAndColDefs;
|
|
1216
1219
|
private dataSubWasLoggedOff;
|
|
1217
1220
|
private rows;
|
|
@@ -1223,12 +1226,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1223
1226
|
disconnectedCallback(): void;
|
|
1224
1227
|
deepClone(): Node;
|
|
1225
1228
|
private get agGrid();
|
|
1229
|
+
private get rowIdByResourceType();
|
|
1226
1230
|
/**
|
|
1227
1231
|
* Initializes the datasource.
|
|
1228
1232
|
* @public
|
|
1229
1233
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1230
1234
|
*/
|
|
1231
|
-
init(): void
|
|
1235
|
+
init(): Promise<void>;
|
|
1232
1236
|
/**
|
|
1233
1237
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
1234
1238
|
* @public
|
|
@@ -1245,6 +1249,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1245
1249
|
* @public
|
|
1246
1250
|
*/
|
|
1247
1251
|
restart(): void;
|
|
1252
|
+
refreshRows(): void;
|
|
1248
1253
|
/**
|
|
1249
1254
|
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1250
1255
|
* @remarks Will only happen for DATASERER resources.
|
|
@@ -1259,6 +1264,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1259
1264
|
private handleStreamResult;
|
|
1260
1265
|
private applyRequestServerData;
|
|
1261
1266
|
private applyDataserverData;
|
|
1267
|
+
private mapTransaction;
|
|
1262
1268
|
private handleStreamInserts;
|
|
1263
1269
|
private handleStreamDeletes;
|
|
1264
1270
|
private handleStreamUpdates;
|
|
@@ -1331,6 +1337,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1331
1337
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
1332
1338
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
1333
1339
|
closest<E extends Element = Element>(selectors: string): E;
|
|
1340
|
+
/**
|
|
1341
|
+
* Deinitialises the datasource, resetting it to its initial state.
|
|
1342
|
+
* @public
|
|
1343
|
+
*/
|
|
1334
1344
|
getAttribute(qualifiedName: string): string;
|
|
1335
1345
|
getAttributeNS(namespace: string, localName: string): string;
|
|
1336
1346
|
getAttributeNames(): string[];
|
|
@@ -9,7 +9,7 @@ Helper function to get ColDef [https://www.ag-grid.com/javascript-data-grid/colu
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef
|
|
12
|
+
getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Example
|
|
@@ -35,7 +35,8 @@ 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
|
-
| [
|
|
38
|
+
| [rowDataMapper](./grid-pro.gridprogenesisdatasource.rowdatamapper.md) | | Function | |
|
|
39
|
+
| [rowId](./grid-pro.gridprogenesisdatasource.rowid.md) | | any | |
|
|
39
40
|
|
|
40
41
|
## Methods
|
|
41
42
|
|
|
@@ -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
|
@@ -71,6 +71,7 @@ export type ActionRendererParams = {
|
|
|
71
71
|
dataTestId?: string;
|
|
72
72
|
isDisabled?: (rowData: any) => boolean;
|
|
73
73
|
uniqueFieldName?: string;
|
|
74
|
+
contentTemplate?: string;
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
// @public
|
|
@@ -481,7 +482,7 @@ export const foundationGridProShadowOptions: ShadowRootInit;
|
|
|
481
482
|
export const foundationGridProStyles: ElementStyles;
|
|
482
483
|
|
|
483
484
|
// @public
|
|
484
|
-
export const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
|
|
485
|
+
export const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef;
|
|
485
486
|
|
|
486
487
|
// @public
|
|
487
488
|
export const getAgBooleanRendererTemplate: (designSystem?: string) => ViewTemplate<any, any>;
|
|
@@ -639,7 +640,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
639
640
|
disconnectedCallback(): void;
|
|
640
641
|
// (undocumented)
|
|
641
642
|
fields: string;
|
|
642
|
-
init(): void
|
|
643
|
+
init(): Promise<void>;
|
|
643
644
|
// (undocumented)
|
|
644
645
|
isSnapshot: boolean;
|
|
645
646
|
// (undocumented)
|
|
@@ -651,6 +652,8 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
651
652
|
// (undocumented)
|
|
652
653
|
orderBy: string;
|
|
653
654
|
// (undocumented)
|
|
655
|
+
refreshRows(): void;
|
|
656
|
+
// (undocumented)
|
|
654
657
|
removeFilter(fieldName: string): void;
|
|
655
658
|
// (undocumented)
|
|
656
659
|
request: any;
|
|
@@ -666,7 +669,9 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
666
669
|
// (undocumented)
|
|
667
670
|
reverse: boolean;
|
|
668
671
|
// (undocumented)
|
|
669
|
-
|
|
672
|
+
rowDataMapper: Function;
|
|
673
|
+
// (undocumented)
|
|
674
|
+
rowId: any;
|
|
670
675
|
// (undocumented)
|
|
671
676
|
setFilter(fieldName: string, newFilter: string): void;
|
|
672
677
|
}
|
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.41.
|
|
4
|
+
"version": "14.41.2-bny.1",
|
|
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": "
|
|
25
|
-
"@genesislcap/genx": "
|
|
24
|
+
"@genesislcap/foundation-testing": "14.41.2-bny.1",
|
|
25
|
+
"@genesislcap/genx": "14.41.2-bny.1",
|
|
26
26
|
"bulma": "^0.9.3"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@genesislcap/foundation-comms": "
|
|
30
|
-
"@genesislcap/foundation-ui": "
|
|
31
|
-
"@genesislcap/foundation-utils": "
|
|
29
|
+
"@genesislcap/foundation-comms": "14.41.2-bny.1",
|
|
30
|
+
"@genesislcap/foundation-ui": "14.41.2-bny.1",
|
|
31
|
+
"@genesislcap/foundation-utils": "14.41.2-bny.1",
|
|
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": "4892bb140cea556c54d4a816abe774da574e9eb1"
|
|
55
55
|
}
|