@genesislcap/grid-pro 14.142.1-alpha-2787e5d.0 → 14.143.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 +0 -44
- package/dist/dts/grid-pro.d.ts +29 -13
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro.js +2 -25
- package/dist/grid-pro.api.json +0 -85
- package/dist/grid-pro.d.ts +29 -14
- package/docs/api/grid-pro.gridpro.md +0 -1
- package/docs/api-report.md +2 -4
- package/package.json +8 -8
- package/docs/api/grid-pro.gridpro.addeventlistener.md +0 -24
|
@@ -535,15 +535,6 @@
|
|
|
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
|
-
},
|
|
547
538
|
{
|
|
548
539
|
"kind": "field",
|
|
549
540
|
"name": "filterConfig",
|
|
@@ -561,41 +552,6 @@
|
|
|
561
552
|
},
|
|
562
553
|
"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."
|
|
563
554
|
},
|
|
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
|
-
},
|
|
599
555
|
{
|
|
600
556
|
"kind": "method",
|
|
601
557
|
"name": "combineAllGridComponents",
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ColDef, ColumnApi, ColumnState,
|
|
1
|
+
import type { ColDef, ColumnApi, ColumnState, GridApi, GridOptions } from '@ag-grid-community/core';
|
|
2
|
+
import { Grid } from '@ag-grid-community/core';
|
|
2
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
4
|
import { GridProBaseDatasource } from './datasource/base.datasource';
|
|
4
5
|
import { GridComponents, GridOptionsConfig } from './grid-pro.types';
|
|
@@ -14,6 +15,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
14
15
|
"__#1@#_latestTokenCode": string;
|
|
15
16
|
"__#1@#_hasFirstLoaded": boolean;
|
|
16
17
|
"__#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
|
+
*/
|
|
17
24
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
18
25
|
cloneNode(deep?: boolean): Node;
|
|
19
26
|
deepClone(): Node;
|
|
@@ -223,9 +230,27 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
223
230
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
224
231
|
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
225
232
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
226
|
-
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
227
|
-
|
|
228
|
-
|
|
233
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>; /**
|
|
234
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
235
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
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
|
+
*/
|
|
229
254
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
230
255
|
readonly assignedSlot: HTMLSlotElement;
|
|
231
256
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
@@ -326,12 +351,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
326
351
|
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
327
352
|
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
328
353
|
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
329
|
-
/**
|
|
330
|
-
* GridPro shadow root options.
|
|
331
|
-
* @public
|
|
332
|
-
* @remarks
|
|
333
|
-
* For extensibility, this can be used to set the shadow root mode and delegatesFocus
|
|
334
|
-
*/
|
|
335
354
|
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
336
355
|
autofocus: boolean;
|
|
337
356
|
readonly dataset: DOMStringMap;
|
|
@@ -417,7 +436,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
417
436
|
protected agGridOptions: GridOptions;
|
|
418
437
|
protected initialised: boolean;
|
|
419
438
|
private rehydrationAttempted;
|
|
420
|
-
private gridEventsQueue;
|
|
421
439
|
private filterConfig;
|
|
422
440
|
/**
|
|
423
441
|
* Injectable config that allows to change grid options on an app level basis
|
|
@@ -435,8 +453,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
435
453
|
*/
|
|
436
454
|
gridOptionsConfig: GridOptionsConfig;
|
|
437
455
|
constructor();
|
|
438
|
-
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
439
|
-
private addGridEventListener;
|
|
440
456
|
connectedCallback(): void;
|
|
441
457
|
disconnectedCallback(): void;
|
|
442
458
|
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":"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"}
|
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
|
|
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,31 +97,13 @@ 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 = [];
|
|
101
100
|
this.filterConfig = undefined;
|
|
102
101
|
this.agAttributes = {};
|
|
103
|
-
this.agPropertiesMap =
|
|
102
|
+
this.agPropertiesMap = ComponentUtil.ALL_PROPERTIES.reduce((map, property) => {
|
|
104
103
|
map[property.toLowerCase()] = property;
|
|
105
104
|
map[convertToKebabCase(property)] = property;
|
|
106
105
|
return map;
|
|
107
106
|
}, {});
|
|
108
|
-
// debugger;
|
|
109
|
-
}
|
|
110
|
-
addEventListener(type, listener, options) {
|
|
111
|
-
super.addEventListener(type, listener, options);
|
|
112
|
-
if (ComponentUtil.PUBLIC_EVENTS.includes(type)) {
|
|
113
|
-
if (this.gridApi) {
|
|
114
|
-
this.addGridEventListener(type);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
this.gridEventsQueue.push(type);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
addGridEventListener(type) {
|
|
122
|
-
this.gridApi.addEventListener(type, (e) => {
|
|
123
|
-
this.$emit(type, e);
|
|
124
|
-
});
|
|
125
107
|
}
|
|
126
108
|
connectedCallback() {
|
|
127
109
|
super.connectedCallback();
|
|
@@ -278,11 +260,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
278
260
|
var _a, _b;
|
|
279
261
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
280
262
|
this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
|
|
281
|
-
if (this.gridEventsQueue.length) {
|
|
282
|
-
this.gridEventsQueue.forEach((type) => {
|
|
283
|
-
this.addGridEventListener(type);
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
263
|
if (onGridReady) {
|
|
287
264
|
onGridReady(event);
|
|
288
265
|
}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -7322,91 +7322,6 @@
|
|
|
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
|
-
},
|
|
7410
7325
|
{
|
|
7411
7326
|
"kind": "Property",
|
|
7412
7327
|
"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 { ColumnApi } from '@ag-grid-community/core';
|
|
6
|
+
import type { 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 { GridApi } from '@ag-grid-community/core';
|
|
23
|
+
import type { 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,7 +1216,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1216
1216
|
protected agGridOptions: GridOptions;
|
|
1217
1217
|
protected initialised: boolean;
|
|
1218
1218
|
private rehydrationAttempted;
|
|
1219
|
-
private gridEventsQueue;
|
|
1220
1219
|
private filterConfig;
|
|
1221
1220
|
/**
|
|
1222
1221
|
* Injectable config that allows to change grid options on an app level basis
|
|
@@ -1234,8 +1233,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1234
1233
|
*/
|
|
1235
1234
|
gridOptionsConfig: GridOptionsConfig;
|
|
1236
1235
|
constructor();
|
|
1237
|
-
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
1238
|
-
private addGridEventListener;
|
|
1239
1236
|
connectedCallback(): void;
|
|
1240
1237
|
disconnectedCallback(): void;
|
|
1241
1238
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -1299,6 +1296,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1299
1296
|
"__#1@#_latestTokenCode": string;
|
|
1300
1297
|
"__#1@#_hasFirstLoaded": boolean;
|
|
1301
1298
|
"__#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
|
+
*/
|
|
1302
1305
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
1303
1306
|
cloneNode(deep?: boolean): Node;
|
|
1304
1307
|
deepClone(): Node;
|
|
@@ -1508,9 +1511,27 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1508
1511
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
1509
1512
|
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
1510
1513
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
1511
|
-
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>; /**
|
|
1515
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1516
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
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
|
+
*/
|
|
1514
1535
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
1515
1536
|
readonly assignedSlot: HTMLSlotElement;
|
|
1516
1537
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
@@ -1611,12 +1632,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1611
1632
|
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1612
1633
|
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1613
1634
|
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1614
|
-
/**
|
|
1615
|
-
* GridPro shadow root options.
|
|
1616
|
-
* @public
|
|
1617
|
-
* @remarks
|
|
1618
|
-
* For extensibility, this can be used to set the shadow root mode and delegatesFocus
|
|
1619
|
-
*/
|
|
1620
1635
|
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
1621
1636
|
autofocus: boolean;
|
|
1622
1637
|
readonly dataset: DOMStringMap;
|
|
@@ -63,7 +63,6 @@ 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) | | |
|
|
67
66
|
| [agAttributeChangedCallback(attName, oldValue, newValue)](./grid-pro.gridpro.agattributechangedcallback.md) | | |
|
|
68
67
|
| [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>. |
|
|
69
68
|
| [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 { ColumnApi } from '@ag-grid-community/core';
|
|
12
|
+
import type { 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 { GridApi } from '@ag-grid-community/core';
|
|
29
|
+
import type { 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,8 +778,6 @@ 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;
|
|
783
781
|
addIndex: number;
|
|
784
782
|
// (undocumented)
|
|
785
783
|
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.143.1",
|
|
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.143.1",
|
|
34
|
+
"@genesislcap/genx": "14.143.1",
|
|
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.143.1",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.143.1",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.143.1",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.143.1",
|
|
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": "5301ef68fff841cfb91d8b80ff57fee8e553b71b"
|
|
66
66
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
|