@genesislcap/grid-pro 14.162.1-beta.5eead96.0 → 14.162.1-fdc3rowclick.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 +7 -16
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +2 -3
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +10 -15
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +3 -6
- package/dist/esm/grid-pro.js +13 -0
- package/dist/grid-pro.api.json +33 -24
- package/dist/grid-pro.d.ts +11 -17
- package/docs/api/grid-pro.gridpro.fdc3rowclick.md +14 -0
- package/docs/api/grid-pro.gridpro.md +1 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +1 -2
- package/docs/api/grid-pro.gridprogenesisdatasource.md +1 -1
- package/docs/api-report.md +6 -1
- package/package.json +14 -13
|
@@ -262,6 +262,13 @@
|
|
|
262
262
|
"text": "StatePersistence"
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
|
+
{
|
|
266
|
+
"kind": "field",
|
|
267
|
+
"name": "fdc3RowClick",
|
|
268
|
+
"type": {
|
|
269
|
+
"text": "{ channel: string; type: string }"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
265
272
|
{
|
|
266
273
|
"kind": "field",
|
|
267
274
|
"name": "autoCellRendererByType",
|
|
@@ -6878,14 +6885,6 @@
|
|
|
6878
6885
|
"text": "ColDef[]"
|
|
6879
6886
|
},
|
|
6880
6887
|
"description": "Optionally set the `gridOptions` up with column definitions"
|
|
6881
|
-
},
|
|
6882
|
-
{
|
|
6883
|
-
"name": "columnStates",
|
|
6884
|
-
"optional": true,
|
|
6885
|
-
"type": {
|
|
6886
|
-
"text": "ColumnState[]"
|
|
6887
|
-
},
|
|
6888
|
-
"description": "Optionally set the `gridOptions` up with column state"
|
|
6889
6888
|
}
|
|
6890
6889
|
],
|
|
6891
6890
|
"description": "Initializes the datasource.",
|
|
@@ -9714,14 +9713,6 @@
|
|
|
9714
9713
|
"text": "ColDef[]"
|
|
9715
9714
|
},
|
|
9716
9715
|
"description": "Optionally set the `gridOptions` up with column definitions"
|
|
9717
|
-
},
|
|
9718
|
-
{
|
|
9719
|
-
"name": "columnStates",
|
|
9720
|
-
"optional": true,
|
|
9721
|
-
"type": {
|
|
9722
|
-
"text": "ColumnState[]"
|
|
9723
|
-
},
|
|
9724
|
-
"description": "Optionally set the `gridOptions` up with column state"
|
|
9725
9716
|
}
|
|
9726
9717
|
],
|
|
9727
9718
|
"description": "Initializes the datasource.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColDef,
|
|
1
|
+
import type { ColDef, RowDataTransaction, RowNodeTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { Auth, Datasource } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
4
4
|
declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
@@ -357,10 +357,9 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
357
357
|
* Initializes the datasource.
|
|
358
358
|
* @public
|
|
359
359
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
360
|
-
* @param columnStates - Optionally set the `gridOptions` up with column state
|
|
361
360
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
362
361
|
*/
|
|
363
|
-
init(columnDefinitions?: ColDef[]
|
|
362
|
+
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
364
363
|
/**
|
|
365
364
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
366
365
|
* @public
|
|
@@ -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,KAAK,
|
|
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,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWtE;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAEpC,aAAa,SAAsB;IACnC,kBAAkB,SAA2B;IAG7C,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASf,eAAe,EAAE,MAAM,CACf;IACQ,cAAc,EAAE,OAAO,CAAS;IAC7E,OAAO,EAAE,GAAG,CAAC;IAEzB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKW,qBAAqB,UAAS;IAG/F,yBAAyB,UAAS;IAElC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IA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eJS.Timeout;
|
|
11
11
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
12
|
-
cloneNode(deep?: boolean): Node;
|
|
12
|
+
cloneNode(deep?: boolean): Node; /**
|
|
13
|
+
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
14
|
+
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
15
|
+
* in local storage if you are using `persist-column-state-key`.
|
|
16
|
+
*/
|
|
13
17
|
deepClone(): Node;
|
|
14
18
|
readonly shouldRunDisconnect: boolean;
|
|
15
19
|
readonly shouldRunConnect: boolean;
|
|
@@ -63,20 +67,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
63
67
|
readonly scrollHeight: number;
|
|
64
68
|
scrollLeft: number;
|
|
65
69
|
scrollTop: number;
|
|
66
|
-
readonly scrollWidth: number;
|
|
67
|
-
* Injectable config that allows to change grid options on an app level basis
|
|
68
|
-
* To modify options, register instance of the config in DOM container that is
|
|
69
|
-
* above the grid or on the top level of the application, so it applies to all grids.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```
|
|
73
|
-
* DI.getOrCreateDOMContainer().register([
|
|
74
|
-
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
75
|
-
* headerHeight: 50,
|
|
76
|
-
* }),
|
|
77
|
-
* ]);
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
70
|
+
readonly scrollWidth: number;
|
|
80
71
|
readonly shadowRoot: ShadowRoot;
|
|
81
72
|
slot: string;
|
|
82
73
|
readonly tagName: string;
|
|
@@ -351,6 +342,10 @@ export declare class GridPro extends GridPro_base {
|
|
|
351
342
|
columnApi: ColumnApi;
|
|
352
343
|
gridApi: GridApi;
|
|
353
344
|
statePersistence: StatePersistence;
|
|
345
|
+
fdc3RowClick: {
|
|
346
|
+
channel: string;
|
|
347
|
+
type: string;
|
|
348
|
+
};
|
|
354
349
|
/**
|
|
355
350
|
* Timeout function used to debounce resize calls
|
|
356
351
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EAGX,IAAI,EACJ,OAAO,EACP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EAGX,IAAI,EACJ,OAAO,EACP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAMrE,OAAO,EAKL,cAAc,EAId,iBAAiB,EACjB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;;;;;;qCAwCrD;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9BL;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,YAAiC;IAChD,SAAS,EAAG,SAAS,CAAC;IACtB,OAAO,EAAG,OAAO,CAAC;IACZ,gBAAgB,EAAE,gBAAgB,CAAC;IAErD,YAAY,EAAE;QAAE,OAAO,EAAE,MA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AI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -83,10 +83,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
83
83
|
* Initializes the datasource.
|
|
84
84
|
* @public
|
|
85
85
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
86
|
-
* @param columnStates - Optionally set the `gridOptions` up with column state
|
|
87
86
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
88
87
|
*/
|
|
89
|
-
init(columnDefinitions
|
|
88
|
+
init(columnDefinitions) {
|
|
90
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
90
|
if (this.agGrid &&
|
|
92
91
|
this.datasource.validResourceName(this.resourceName) &&
|
|
@@ -100,7 +99,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
100
99
|
return;
|
|
101
100
|
}
|
|
102
101
|
this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
|
|
103
|
-
const gridOptions = Object.assign(Object.assign(
|
|
102
|
+
const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
|
|
104
103
|
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
105
104
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
106
105
|
yield this.loadResourceData();
|
|
@@ -157,13 +156,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
157
156
|
*/
|
|
158
157
|
restart() {
|
|
159
158
|
let columnDefinitions;
|
|
160
|
-
let columnStates;
|
|
161
159
|
if (this.keepColDefsOnClearRowData) {
|
|
162
160
|
columnDefinitions = this.agGrid.gridApi.getColumnDefs();
|
|
163
|
-
columnStates = this.agGrid.columnApi.getColumnState();
|
|
164
161
|
}
|
|
165
162
|
this.deinit();
|
|
166
|
-
this.init(columnDefinitions
|
|
163
|
+
this.init(columnDefinitions);
|
|
167
164
|
}
|
|
168
165
|
/**
|
|
169
166
|
* Force the grid to redispatch the current rows
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __awaiter, __decorate, __rest } from "tslib";
|
|
|
2
2
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
3
3
|
import { ComponentUtil, Grid, ModuleRegistry, } from '@ag-grid-community/core';
|
|
4
4
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
|
5
|
+
import { getOrCreateChannel } from '@finos/fdc3';
|
|
5
6
|
import { insertDocumentCSSRule, LifecycleMixin, respondToVisibility, } from '@genesislcap/foundation-utils';
|
|
6
7
|
import { attr, DOM, observable } from '@microsoft/fast-element';
|
|
7
8
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
@@ -299,6 +300,18 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
299
300
|
var _a, _b;
|
|
300
301
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
301
302
|
this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
|
|
303
|
+
if (this.fdc3RowClick && window.fdc3) {
|
|
304
|
+
this.gridApi.addEventListener('rowClicked', (e) => __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
var _c;
|
|
306
|
+
const channel = yield getOrCreateChannel(this.fdc3RowClick.channel);
|
|
307
|
+
const payload = (_c = e === null || e === void 0 ? void 0 : e.node) === null || _c === void 0 ? void 0 : _c.data;
|
|
308
|
+
const m = {
|
|
309
|
+
type: this.fdc3RowClick.type,
|
|
310
|
+
id: payload,
|
|
311
|
+
};
|
|
312
|
+
yield channel.broadcast(m);
|
|
313
|
+
}));
|
|
314
|
+
}
|
|
302
315
|
if (this.gridEventsQueue.length) {
|
|
303
316
|
this.gridEventsQueue.forEach((type) => {
|
|
304
317
|
this.addGridEventListener(type);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -8275,6 +8275,36 @@
|
|
|
8275
8275
|
"isProtected": false,
|
|
8276
8276
|
"isAbstract": false
|
|
8277
8277
|
},
|
|
8278
|
+
{
|
|
8279
|
+
"kind": "Property",
|
|
8280
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#fdc3RowClick:member",
|
|
8281
|
+
"docComment": "",
|
|
8282
|
+
"excerptTokens": [
|
|
8283
|
+
{
|
|
8284
|
+
"kind": "Content",
|
|
8285
|
+
"text": "fdc3RowClick: "
|
|
8286
|
+
},
|
|
8287
|
+
{
|
|
8288
|
+
"kind": "Content",
|
|
8289
|
+
"text": "{\n channel: string;\n type: string;\n }"
|
|
8290
|
+
},
|
|
8291
|
+
{
|
|
8292
|
+
"kind": "Content",
|
|
8293
|
+
"text": ";"
|
|
8294
|
+
}
|
|
8295
|
+
],
|
|
8296
|
+
"isReadonly": false,
|
|
8297
|
+
"isOptional": false,
|
|
8298
|
+
"releaseTag": "Public",
|
|
8299
|
+
"name": "fdc3RowClick",
|
|
8300
|
+
"propertyTypeTokenRange": {
|
|
8301
|
+
"startIndex": 1,
|
|
8302
|
+
"endIndex": 2
|
|
8303
|
+
},
|
|
8304
|
+
"isStatic": false,
|
|
8305
|
+
"isProtected": false,
|
|
8306
|
+
"isAbstract": false
|
|
8307
|
+
},
|
|
8278
8308
|
{
|
|
8279
8309
|
"kind": "Method",
|
|
8280
8310
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#getfilterModel:member(1)",
|
|
@@ -10658,7 +10688,7 @@
|
|
|
10658
10688
|
{
|
|
10659
10689
|
"kind": "Method",
|
|
10660
10690
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#init:member(1)",
|
|
10661
|
-
"docComment": "/**\n * Initializes the datasource.\n *\n * @remarks\n *\n * This method is called automatically when the element is connected to the DOM.\n *\n * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions\n *\n * @
|
|
10691
|
+
"docComment": "/**\n * Initializes the datasource.\n *\n * @remarks\n *\n * This method is called automatically when the element is connected to the DOM.\n *\n * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions\n *\n * @public\n */\n",
|
|
10662
10692
|
"excerptTokens": [
|
|
10663
10693
|
{
|
|
10664
10694
|
"kind": "Content",
|
|
@@ -10673,19 +10703,6 @@
|
|
|
10673
10703
|
"kind": "Content",
|
|
10674
10704
|
"text": "[]"
|
|
10675
10705
|
},
|
|
10676
|
-
{
|
|
10677
|
-
"kind": "Content",
|
|
10678
|
-
"text": ", columnStates?: "
|
|
10679
|
-
},
|
|
10680
|
-
{
|
|
10681
|
-
"kind": "Reference",
|
|
10682
|
-
"text": "ColumnState",
|
|
10683
|
-
"canonicalReference": "@ag-grid-community/core!ColumnState:interface"
|
|
10684
|
-
},
|
|
10685
|
-
{
|
|
10686
|
-
"kind": "Content",
|
|
10687
|
-
"text": "[]"
|
|
10688
|
-
},
|
|
10689
10706
|
{
|
|
10690
10707
|
"kind": "Content",
|
|
10691
10708
|
"text": "): "
|
|
@@ -10706,8 +10723,8 @@
|
|
|
10706
10723
|
],
|
|
10707
10724
|
"isStatic": false,
|
|
10708
10725
|
"returnTypeTokenRange": {
|
|
10709
|
-
"startIndex":
|
|
10710
|
-
"endIndex":
|
|
10726
|
+
"startIndex": 4,
|
|
10727
|
+
"endIndex": 6
|
|
10711
10728
|
},
|
|
10712
10729
|
"releaseTag": "Public",
|
|
10713
10730
|
"isProtected": false,
|
|
@@ -10720,14 +10737,6 @@
|
|
|
10720
10737
|
"endIndex": 3
|
|
10721
10738
|
},
|
|
10722
10739
|
"isOptional": true
|
|
10723
|
-
},
|
|
10724
|
-
{
|
|
10725
|
-
"parameterName": "columnStates",
|
|
10726
|
-
"parameterTypeTokenRange": {
|
|
10727
|
-
"startIndex": 4,
|
|
10728
|
-
"endIndex": 6
|
|
10729
|
-
},
|
|
10730
|
-
"isOptional": true
|
|
10731
10740
|
}
|
|
10732
10741
|
],
|
|
10733
10742
|
"isOptional": false,
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1161,6 +1161,10 @@ export declare class GridPro extends GridPro_base {
|
|
|
1161
1161
|
columnApi: ColumnApi;
|
|
1162
1162
|
gridApi: GridApi;
|
|
1163
1163
|
statePersistence: StatePersistence;
|
|
1164
|
+
fdc3RowClick: {
|
|
1165
|
+
channel: string;
|
|
1166
|
+
type: string;
|
|
1167
|
+
};
|
|
1164
1168
|
/**
|
|
1165
1169
|
* Timeout function used to debounce resize calls
|
|
1166
1170
|
* @internal
|
|
@@ -1330,7 +1334,11 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1330
1334
|
"__#1@#_hasFirstLoaded": boolean;
|
|
1331
1335
|
"__#1@#_cleanupTimeout": NodeJS.Timeout;
|
|
1332
1336
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
1333
|
-
cloneNode(deep?: boolean): Node;
|
|
1337
|
+
cloneNode(deep?: boolean): Node; /**
|
|
1338
|
+
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
1339
|
+
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
1340
|
+
* in local storage if you are using `persist-column-state-key`.
|
|
1341
|
+
*/
|
|
1334
1342
|
deepClone(): Node;
|
|
1335
1343
|
readonly shouldRunDisconnect: boolean;
|
|
1336
1344
|
readonly shouldRunConnect: boolean;
|
|
@@ -1384,20 +1392,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1384
1392
|
readonly scrollHeight: number;
|
|
1385
1393
|
scrollLeft: number;
|
|
1386
1394
|
scrollTop: number;
|
|
1387
|
-
readonly scrollWidth: number;
|
|
1388
|
-
* Injectable config that allows to change grid options on an app level basis
|
|
1389
|
-
* To modify options, register instance of the config in DOM container that is
|
|
1390
|
-
* above the grid or on the top level of the application, so it applies to all grids.
|
|
1391
|
-
*
|
|
1392
|
-
* @example
|
|
1393
|
-
* ```
|
|
1394
|
-
* DI.getOrCreateDOMContainer().register([
|
|
1395
|
-
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
1396
|
-
* headerHeight: 50,
|
|
1397
|
-
* }),
|
|
1398
|
-
* ]);
|
|
1399
|
-
* ```
|
|
1400
|
-
*/
|
|
1395
|
+
readonly scrollWidth: number;
|
|
1401
1396
|
readonly shadowRoot: ShadowRoot;
|
|
1402
1397
|
slot: string;
|
|
1403
1398
|
readonly tagName: string;
|
|
@@ -1780,10 +1775,9 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1780
1775
|
* Initializes the datasource.
|
|
1781
1776
|
* @public
|
|
1782
1777
|
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
1783
|
-
* @param columnStates - Optionally set the `gridOptions` up with column state
|
|
1784
1778
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1785
1779
|
*/
|
|
1786
|
-
init(columnDefinitions?: ColDef[]
|
|
1780
|
+
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
1787
1781
|
/**
|
|
1788
1782
|
* Deinitialises the datasource, resetting it to its initial state.
|
|
1789
1783
|
* @public
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [fdc3RowClick](./grid-pro.gridpro.fdc3rowclick.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.fdc3RowClick property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
fdc3RowClick: {
|
|
11
|
+
channel: string;
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
```
|
|
@@ -43,6 +43,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
43
43
|
| [enabledRowFlashing](./grid-pro.gridpro.enabledrowflashing.md) | | boolean | |
|
|
44
44
|
| [enableRowFlashing](./grid-pro.gridpro.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> async transactions |
|
|
45
45
|
| [eventsAndCallbacks](./grid-pro.gridpro.eventsandcallbacks.md) | | any | |
|
|
46
|
+
| [fdc3RowClick](./grid-pro.gridpro.fdc3rowclick.md) | | { channel: string; type: string; } | |
|
|
46
47
|
| [gridApi](./grid-pro.gridpro.gridapi.md) | | GridApi | |
|
|
47
48
|
| [gridAutosizingEnabled](./grid-pro.gridpro.gridautosizingenabled.md) | | boolean | Boolean attribute to control whether the grid autosizes the columns upon interaction. This will disable the column widths from being manually set, and doesn't save the widths in local storage if you are using <code>persist-column-state-key</code>. |
|
|
48
49
|
| [gridComponents](./grid-pro.gridpro.gridcomponents.md) | | { \[componentName: string\]: any; } | |
|
|
@@ -9,7 +9,7 @@ Initializes the datasource.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
init(columnDefinitions?: ColDef[]
|
|
12
|
+
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -17,7 +17,6 @@ init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| columnDefinitions | ColDef\[\] | _(Optional)_ Optionally set the <code>gridOptions</code> up with column definitions |
|
|
20
|
-
| columnStates | ColumnState\[\] | _(Optional)_ Optionally set the <code>gridOptions</code> up with column state |
|
|
21
20
|
|
|
22
21
|
**Returns:**
|
|
23
22
|
|
|
@@ -43,7 +43,7 @@ Only supports Client-Side Row Model.
|
|
|
43
43
|
| [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
|
|
44
44
|
| [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
|
|
45
45
|
| [handleErrors(result)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
|
|
46
|
-
| [init(columnDefinitions
|
|
46
|
+
| [init(columnDefinitions)](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
|
|
47
47
|
| [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | Force the grid to redispatch the current rows |
|
|
48
48
|
| [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
|
|
49
49
|
| [reset()](./grid-pro.gridprogenesisdatasource.reset.md) | | Resets the datasource to its initial state. |
|
package/docs/api-report.md
CHANGED
|
@@ -823,6 +823,11 @@ export class GridPro extends GridPro_base {
|
|
|
823
823
|
// (undocumented)
|
|
824
824
|
eventsAndCallbacks: any;
|
|
825
825
|
// (undocumented)
|
|
826
|
+
fdc3RowClick: {
|
|
827
|
+
channel: string;
|
|
828
|
+
type: string;
|
|
829
|
+
};
|
|
830
|
+
// (undocumented)
|
|
826
831
|
getfilterModel(): Promise<{
|
|
827
832
|
[key: string]: any;
|
|
828
833
|
}>;
|
|
@@ -970,7 +975,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
970
975
|
disconnectedCallback(): void;
|
|
971
976
|
// (undocumented)
|
|
972
977
|
handleErrors(result: any): void;
|
|
973
|
-
init(columnDefinitions?: ColDef[]
|
|
978
|
+
init(columnDefinitions?: ColDef[]): Promise<void>;
|
|
974
979
|
// (undocumented)
|
|
975
980
|
keepColDefsOnClearRowData: boolean;
|
|
976
981
|
// (undocumented)
|
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.162.1-
|
|
4
|
+
"version": "14.162.1-fdc3rowclick.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,20 +30,21 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.162.1-
|
|
34
|
-
"@genesislcap/genx": "14.162.1-
|
|
35
|
-
"@genesislcap/rollup-builder": "14.162.1-
|
|
36
|
-
"@genesislcap/ts-builder": "14.162.1-
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.162.1-
|
|
38
|
-
"@genesislcap/vite-builder": "14.162.1-
|
|
39
|
-
"@genesislcap/webpack-builder": "14.162.1-
|
|
33
|
+
"@genesislcap/foundation-testing": "14.162.1-fdc3rowclick.2",
|
|
34
|
+
"@genesislcap/genx": "14.162.1-fdc3rowclick.2",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.162.1-fdc3rowclick.2",
|
|
36
|
+
"@genesislcap/ts-builder": "14.162.1-fdc3rowclick.2",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.162.1-fdc3rowclick.2",
|
|
38
|
+
"@genesislcap/vite-builder": "14.162.1-fdc3rowclick.2",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.162.1-fdc3rowclick.2",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@genesislcap/foundation-
|
|
45
|
-
"@genesislcap/foundation-
|
|
46
|
-
"@genesislcap/foundation-
|
|
43
|
+
"@finos/fdc3": "^2.1.0-beta.6",
|
|
44
|
+
"@genesislcap/foundation-comms": "14.162.1-fdc3rowclick.2",
|
|
45
|
+
"@genesislcap/foundation-logger": "14.162.1-fdc3rowclick.2",
|
|
46
|
+
"@genesislcap/foundation-ui": "14.162.1-fdc3rowclick.2",
|
|
47
|
+
"@genesislcap/foundation-utils": "14.162.1-fdc3rowclick.2",
|
|
47
48
|
"@microsoft/fast-colors": "^5.3.1",
|
|
48
49
|
"@microsoft/fast-components": "^2.30.6",
|
|
49
50
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"access": "public"
|
|
70
71
|
},
|
|
71
72
|
"customElements": "dist/custom-elements.json",
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "389571a0bea046cd7a21bc232deb168c99a834d8"
|
|
73
74
|
}
|