@genesislcap/grid-pro 14.144.1 → 14.145.0
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 +44 -0
- package/dist/dts/grid-pro.d.ts +7 -29
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro.js +23 -1
- package/dist/grid-pro.api.json +85 -0
- package/dist/grid-pro.d.ts +8 -29
- package/docs/api/grid-pro.gridpro.addeventlistener.md +24 -0
- package/docs/api/grid-pro.gridpro.md +1 -0
- package/docs/api-report.md +4 -2
- package/package.json +8 -8
|
@@ -535,6 +535,15 @@
|
|
|
535
535
|
"privacy": "private",
|
|
536
536
|
"default": "false"
|
|
537
537
|
},
|
|
538
|
+
{
|
|
539
|
+
"kind": "field",
|
|
540
|
+
"name": "gridEventsQueue",
|
|
541
|
+
"type": {
|
|
542
|
+
"text": "string[]"
|
|
543
|
+
},
|
|
544
|
+
"privacy": "private",
|
|
545
|
+
"default": "[]"
|
|
546
|
+
},
|
|
538
547
|
{
|
|
539
548
|
"kind": "field",
|
|
540
549
|
"name": "filterConfig",
|
|
@@ -552,6 +561,41 @@
|
|
|
552
561
|
},
|
|
553
562
|
"description": "Injectable config that allows to change grid options on an app level basis\nTo modify options, register instance of the config in DOM container that is\nabove the grid or on the top level of the application, so it applies to all grids."
|
|
554
563
|
},
|
|
564
|
+
{
|
|
565
|
+
"kind": "method",
|
|
566
|
+
"name": "addEventListener",
|
|
567
|
+
"parameters": [
|
|
568
|
+
{
|
|
569
|
+
"name": "type",
|
|
570
|
+
"type": {
|
|
571
|
+
"text": "any"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "listener"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "options",
|
|
579
|
+
"optional": true,
|
|
580
|
+
"type": {
|
|
581
|
+
"text": "boolean | AddEventListenerOptions"
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"kind": "method",
|
|
588
|
+
"name": "addGridEventListener",
|
|
589
|
+
"privacy": "private",
|
|
590
|
+
"parameters": [
|
|
591
|
+
{
|
|
592
|
+
"name": "type",
|
|
593
|
+
"type": {
|
|
594
|
+
"text": "string"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
},
|
|
555
599
|
{
|
|
556
600
|
"kind": "method",
|
|
557
601
|
"name": "combineAllGridComponents",
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Grid } from '@ag-grid-community/core';
|
|
1
|
+
import { ColDef, ColumnApi, ColumnState, Grid, GridApi, GridOptions } from '@ag-grid-community/core';
|
|
3
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
3
|
import { GridProBaseDatasource } from './datasource/base.datasource';
|
|
5
4
|
import { GridComponents, GridOptionsConfig } from './grid-pro.types';
|
|
@@ -15,12 +14,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
15
14
|
"__#1@#_latestTokenCode": string;
|
|
16
15
|
"__#1@#_hasFirstLoaded": boolean;
|
|
17
16
|
"__#1@#_cleanupTimeout": NodeJS.Timeout;
|
|
18
|
-
/**
|
|
19
|
-
* The Grid Pro element.
|
|
20
|
-
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
21
|
-
* @public
|
|
22
|
-
* @tagname %%prefix%%-grid-pro
|
|
23
|
-
*/
|
|
24
17
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
25
18
|
cloneNode(deep?: boolean): Node;
|
|
26
19
|
deepClone(): Node;
|
|
@@ -230,27 +223,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
230
223
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
231
224
|
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
232
225
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
233
|
-
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
237
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
238
|
-
* @returns The merged column definitions.
|
|
239
|
-
*/
|
|
240
|
-
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>; /**
|
|
241
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
242
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
243
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
244
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
245
|
-
* @returns The merged column definitions.
|
|
246
|
-
*/
|
|
247
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>; /**
|
|
248
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
249
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
250
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
251
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
252
|
-
* @returns The merged column definitions.
|
|
253
|
-
*/
|
|
226
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
227
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
228
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
254
229
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
255
230
|
readonly assignedSlot: HTMLSlotElement;
|
|
256
231
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
@@ -436,6 +411,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
436
411
|
protected agGridOptions: GridOptions;
|
|
437
412
|
protected initialised: boolean;
|
|
438
413
|
private rehydrationAttempted;
|
|
414
|
+
private gridEventsQueue;
|
|
439
415
|
private filterConfig;
|
|
440
416
|
/**
|
|
441
417
|
* Injectable config that allows to change grid options on an app level basis
|
|
@@ -453,6 +429,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
453
429
|
*/
|
|
454
430
|
gridOptionsConfig: GridOptionsConfig;
|
|
455
431
|
constructor();
|
|
432
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
433
|
+
private addGridEventListener;
|
|
456
434
|
connectedCallback(): void;
|
|
457
435
|
disconnectedCallback(): void;
|
|
458
436
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
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;AAmB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAMrE,OAAO,EAKL,cAAc,EAId,iBAAiB,EAClB,MA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AE,WAAW,EA6FnC;IAED;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACH,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IA0EnF,IAAI,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"}
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __rest } from "tslib";
|
|
2
2
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
3
|
-
import { ComponentUtil, Grid, ModuleRegistry } from '@ag-grid-community/core';
|
|
3
|
+
import { ComponentUtil, Grid, ModuleRegistry, } from '@ag-grid-community/core';
|
|
4
4
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
|
5
5
|
import { Session } from '@genesislcap/foundation-comms';
|
|
6
6
|
import { insertDocumentCSSRule, LifecycleMixin, respondToVisibility, } from '@genesislcap/foundation-utils';
|
|
@@ -97,6 +97,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
97
97
|
this.columnComponentName = 'grid-pro-column';
|
|
98
98
|
this.theme = AgGridTheme.alpine;
|
|
99
99
|
this.rehydrationAttempted = false;
|
|
100
|
+
this.gridEventsQueue = [];
|
|
100
101
|
this.filterConfig = undefined;
|
|
101
102
|
this.agAttributes = {};
|
|
102
103
|
this.agPropertiesMap = ComponentUtil.ALL_PROPERTIES.reduce((map, property) => {
|
|
@@ -105,6 +106,22 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
105
106
|
return map;
|
|
106
107
|
}, {});
|
|
107
108
|
}
|
|
109
|
+
addEventListener(type, listener, options) {
|
|
110
|
+
super.addEventListener(type, listener, options);
|
|
111
|
+
if (ComponentUtil.PUBLIC_EVENTS.includes(type)) {
|
|
112
|
+
if (this.gridApi) {
|
|
113
|
+
this.addGridEventListener(type);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.gridEventsQueue.push(type);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
addGridEventListener(type) {
|
|
121
|
+
this.gridApi.addEventListener(type, (e) => {
|
|
122
|
+
this.$emit(type, e);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
108
125
|
connectedCallback() {
|
|
109
126
|
super.connectedCallback();
|
|
110
127
|
this.rehydrationAttempted = false;
|
|
@@ -260,6 +277,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
260
277
|
var _a, _b;
|
|
261
278
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
262
279
|
this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
|
|
280
|
+
if (this.gridEventsQueue.length) {
|
|
281
|
+
this.gridEventsQueue.forEach((type) => {
|
|
282
|
+
this.addGridEventListener(type);
|
|
283
|
+
});
|
|
284
|
+
}
|
|
263
285
|
if (onGridReady) {
|
|
264
286
|
onGridReady(event);
|
|
265
287
|
}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -7322,6 +7322,91 @@
|
|
|
7322
7322
|
"overloadIndex": 1,
|
|
7323
7323
|
"parameters": []
|
|
7324
7324
|
},
|
|
7325
|
+
{
|
|
7326
|
+
"kind": "Method",
|
|
7327
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#addEventListener:member(1)",
|
|
7328
|
+
"docComment": "",
|
|
7329
|
+
"excerptTokens": [
|
|
7330
|
+
{
|
|
7331
|
+
"kind": "Content",
|
|
7332
|
+
"text": "addEventListener(type: "
|
|
7333
|
+
},
|
|
7334
|
+
{
|
|
7335
|
+
"kind": "Content",
|
|
7336
|
+
"text": "any"
|
|
7337
|
+
},
|
|
7338
|
+
{
|
|
7339
|
+
"kind": "Content",
|
|
7340
|
+
"text": ", listener: "
|
|
7341
|
+
},
|
|
7342
|
+
{
|
|
7343
|
+
"kind": "Content",
|
|
7344
|
+
"text": "any"
|
|
7345
|
+
},
|
|
7346
|
+
{
|
|
7347
|
+
"kind": "Content",
|
|
7348
|
+
"text": ", options?: "
|
|
7349
|
+
},
|
|
7350
|
+
{
|
|
7351
|
+
"kind": "Content",
|
|
7352
|
+
"text": "boolean | "
|
|
7353
|
+
},
|
|
7354
|
+
{
|
|
7355
|
+
"kind": "Reference",
|
|
7356
|
+
"text": "AddEventListenerOptions",
|
|
7357
|
+
"canonicalReference": "!AddEventListenerOptions:interface"
|
|
7358
|
+
},
|
|
7359
|
+
{
|
|
7360
|
+
"kind": "Content",
|
|
7361
|
+
"text": "): "
|
|
7362
|
+
},
|
|
7363
|
+
{
|
|
7364
|
+
"kind": "Content",
|
|
7365
|
+
"text": "void"
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"kind": "Content",
|
|
7369
|
+
"text": ";"
|
|
7370
|
+
}
|
|
7371
|
+
],
|
|
7372
|
+
"isStatic": false,
|
|
7373
|
+
"returnTypeTokenRange": {
|
|
7374
|
+
"startIndex": 8,
|
|
7375
|
+
"endIndex": 9
|
|
7376
|
+
},
|
|
7377
|
+
"releaseTag": "Public",
|
|
7378
|
+
"isProtected": false,
|
|
7379
|
+
"overloadIndex": 1,
|
|
7380
|
+
"parameters": [
|
|
7381
|
+
{
|
|
7382
|
+
"parameterName": "type",
|
|
7383
|
+
"parameterTypeTokenRange": {
|
|
7384
|
+
"startIndex": 1,
|
|
7385
|
+
"endIndex": 2
|
|
7386
|
+
},
|
|
7387
|
+
"isOptional": false
|
|
7388
|
+
},
|
|
7389
|
+
{
|
|
7390
|
+
"parameterName": "listener",
|
|
7391
|
+
"parameterTypeTokenRange": {
|
|
7392
|
+
"startIndex": 3,
|
|
7393
|
+
"endIndex": 4
|
|
7394
|
+
},
|
|
7395
|
+
"isOptional": false
|
|
7396
|
+
},
|
|
7397
|
+
{
|
|
7398
|
+
"parameterName": "options",
|
|
7399
|
+
"parameterTypeTokenRange": {
|
|
7400
|
+
"startIndex": 5,
|
|
7401
|
+
"endIndex": 7
|
|
7402
|
+
},
|
|
7403
|
+
"isOptional": true
|
|
7404
|
+
}
|
|
7405
|
+
],
|
|
7406
|
+
"isOptional": false,
|
|
7407
|
+
"isAbstract": false,
|
|
7408
|
+
"name": "addEventListener"
|
|
7409
|
+
},
|
|
7325
7410
|
{
|
|
7326
7411
|
"kind": "Property",
|
|
7327
7412
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#addIndex:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
3
3
|
import { Binding } from '@microsoft/fast-element';
|
|
4
4
|
import { CaptureType } from '@microsoft/fast-element';
|
|
5
5
|
import { ColDef } from '@ag-grid-community/core';
|
|
6
|
-
import
|
|
6
|
+
import { ColumnApi } from '@ag-grid-community/core';
|
|
7
7
|
import { ColumnState } from '@ag-grid-community/core';
|
|
8
8
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
9
9
|
import type { Container } from '@microsoft/fast-foundation';
|
|
@@ -20,7 +20,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
20
20
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
21
21
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
22
22
|
import { Grid } from '@ag-grid-community/core';
|
|
23
|
-
import
|
|
23
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
24
24
|
import { GridOptions } from '@ag-grid-community/core';
|
|
25
25
|
import { ICellEditorComp } from '@ag-grid-community/core';
|
|
26
26
|
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
@@ -1216,6 +1216,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1216
1216
|
protected agGridOptions: GridOptions;
|
|
1217
1217
|
protected initialised: boolean;
|
|
1218
1218
|
private rehydrationAttempted;
|
|
1219
|
+
private gridEventsQueue;
|
|
1219
1220
|
private filterConfig;
|
|
1220
1221
|
/**
|
|
1221
1222
|
* Injectable config that allows to change grid options on an app level basis
|
|
@@ -1233,6 +1234,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
1233
1234
|
*/
|
|
1234
1235
|
gridOptionsConfig: GridOptionsConfig;
|
|
1235
1236
|
constructor();
|
|
1237
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
1238
|
+
private addGridEventListener;
|
|
1236
1239
|
connectedCallback(): void;
|
|
1237
1240
|
disconnectedCallback(): void;
|
|
1238
1241
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -1296,12 +1299,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1296
1299
|
"__#1@#_latestTokenCode": string;
|
|
1297
1300
|
"__#1@#_hasFirstLoaded": boolean;
|
|
1298
1301
|
"__#1@#_cleanupTimeout": NodeJS.Timeout;
|
|
1299
|
-
/**
|
|
1300
|
-
* The Grid Pro element.
|
|
1301
|
-
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
1302
|
-
* @public
|
|
1303
|
-
* @tagname %%prefix%%-grid-pro
|
|
1304
|
-
*/
|
|
1305
1302
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
1306
1303
|
cloneNode(deep?: boolean): Node;
|
|
1307
1304
|
deepClone(): Node;
|
|
@@ -1511,27 +1508,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1511
1508
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
1512
1509
|
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
1513
1510
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
1514
|
-
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
1518
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
1519
|
-
* @returns The merged column definitions.
|
|
1520
|
-
*/
|
|
1521
|
-
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>; /**
|
|
1522
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1523
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1524
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
1525
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
1526
|
-
* @returns The merged column definitions.
|
|
1527
|
-
*/
|
|
1528
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>; /**
|
|
1529
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1530
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1531
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
1532
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
1533
|
-
* @returns The merged column definitions.
|
|
1534
|
-
*/
|
|
1511
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
1512
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
1513
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1535
1514
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
1536
1515
|
readonly assignedSlot: HTMLSlotElement;
|
|
1537
1516
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
@@ -0,0 +1,24 @@
|
|
|
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) > [addEventListener](./grid-pro.gridpro.addeventlistener.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.addEventListener() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type | Description |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| type | any | |
|
|
18
|
+
| listener | any | |
|
|
19
|
+
| options | boolean \| AddEventListenerOptions | _(Optional)_ |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -63,6 +63,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
63
63
|
|
|
64
64
|
| Method | Modifiers | Description |
|
|
65
65
|
| --- | --- | --- |
|
|
66
|
+
| [addEventListener(type, listener, options)](./grid-pro.gridpro.addeventlistener.md) | | |
|
|
66
67
|
| [agAttributeChangedCallback(attName, oldValue, newValue)](./grid-pro.gridpro.agattributechangedcallback.md) | | |
|
|
67
68
|
| [applyTemplateDefinitions(columnDefs, deferredColumnDefsOrState)](./grid-pro.gridpro.applytemplatedefinitions.md) | | Will merge templated column definitions with <code>columnDefs</code> plus localStorage's column state or <code>deferredColumnStates</code>. |
|
|
68
69
|
| [combineAllGridComponents(gridOptionsComponents)](./grid-pro.gridpro.combineallgridcomponents.md) | | |
|
package/docs/api-report.md
CHANGED
|
@@ -9,7 +9,7 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
9
9
|
import { Binding } from '@microsoft/fast-element';
|
|
10
10
|
import { CaptureType } from '@microsoft/fast-element';
|
|
11
11
|
import { ColDef } from '@ag-grid-community/core';
|
|
12
|
-
import
|
|
12
|
+
import { ColumnApi } from '@ag-grid-community/core';
|
|
13
13
|
import { ColumnState } from '@ag-grid-community/core';
|
|
14
14
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
15
15
|
import type { Container } from '@microsoft/fast-foundation';
|
|
@@ -26,7 +26,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
26
26
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
27
27
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
28
28
|
import { Grid } from '@ag-grid-community/core';
|
|
29
|
-
import
|
|
29
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
30
30
|
import { GridOptions } from '@ag-grid-community/core';
|
|
31
31
|
import { ICellEditorComp } from '@ag-grid-community/core';
|
|
32
32
|
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
@@ -778,6 +778,8 @@ export const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
|
|
|
778
778
|
// @public
|
|
779
779
|
export class GridPro extends GridPro_base {
|
|
780
780
|
constructor();
|
|
781
|
+
// (undocumented)
|
|
782
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
781
783
|
addIndex: number;
|
|
782
784
|
// (undocumented)
|
|
783
785
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): 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.145.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.
|
|
34
|
-
"@genesislcap/genx": "14.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.145.0",
|
|
34
|
+
"@genesislcap/genx": "14.145.0",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.
|
|
39
|
-
"@genesislcap/foundation-logger": "14.
|
|
40
|
-
"@genesislcap/foundation-ui": "14.
|
|
41
|
-
"@genesislcap/foundation-utils": "14.
|
|
38
|
+
"@genesislcap/foundation-comms": "14.145.0",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.145.0",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.145.0",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.145.0",
|
|
42
42
|
"@microsoft/fast-colors": "^5.3.1",
|
|
43
43
|
"@microsoft/fast-components": "^2.30.6",
|
|
44
44
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"customElements": "dist/custom-elements.json",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "6af8e057bf423c3045239449edad01d15153bf0b"
|
|
66
66
|
}
|