@genesislcap/grid-pro 14.144.2-alpha-d5a1f36.0 → 14.145.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 +44 -101
- package/dist/dts/datasource/base.datasource.d.ts +1 -4
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +4 -14
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +2 -29
- package/dist/esm/grid-pro.js +25 -24
- package/dist/grid-pro.api.json +85 -0
- package/dist/grid-pro.d.ts +7 -19
- package/docs/api/grid-pro.gridpro.addeventlistener.md +24 -0
- package/docs/api/grid-pro.gridpro.md +1 -0
- package/docs/api-report.md +6 -7
- package/package.json +8 -8
|
@@ -465,15 +465,6 @@
|
|
|
465
465
|
}
|
|
466
466
|
]
|
|
467
467
|
},
|
|
468
|
-
{
|
|
469
|
-
"kind": "field",
|
|
470
|
-
"name": "blockScrollingOnContextMenu",
|
|
471
|
-
"type": {
|
|
472
|
-
"text": "boolean"
|
|
473
|
-
},
|
|
474
|
-
"default": "false",
|
|
475
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
|
|
476
|
-
},
|
|
477
468
|
{
|
|
478
469
|
"kind": "field",
|
|
479
470
|
"name": "classNames",
|
|
@@ -544,6 +535,15 @@
|
|
|
544
535
|
"privacy": "private",
|
|
545
536
|
"default": "false"
|
|
546
537
|
},
|
|
538
|
+
{
|
|
539
|
+
"kind": "field",
|
|
540
|
+
"name": "gridEventsQueue",
|
|
541
|
+
"type": {
|
|
542
|
+
"text": "string[]"
|
|
543
|
+
},
|
|
544
|
+
"privacy": "private",
|
|
545
|
+
"default": "[]"
|
|
546
|
+
},
|
|
547
547
|
{
|
|
548
548
|
"kind": "field",
|
|
549
549
|
"name": "filterConfig",
|
|
@@ -561,6 +561,41 @@
|
|
|
561
561
|
},
|
|
562
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."
|
|
563
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
|
+
},
|
|
564
599
|
{
|
|
565
600
|
"kind": "method",
|
|
566
601
|
"name": "combineAllGridComponents",
|
|
@@ -1078,15 +1113,6 @@
|
|
|
1078
1113
|
"text": "string"
|
|
1079
1114
|
},
|
|
1080
1115
|
"fieldName": "theme"
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"name": "block-scrolling-on-context-menu",
|
|
1084
|
-
"type": {
|
|
1085
|
-
"text": "boolean"
|
|
1086
|
-
},
|
|
1087
|
-
"default": "false",
|
|
1088
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
|
|
1089
|
-
"fieldName": "blockScrollingOnContextMenu"
|
|
1090
1116
|
}
|
|
1091
1117
|
],
|
|
1092
1118
|
"mixins": [
|
|
@@ -5446,13 +5472,6 @@
|
|
|
5446
5472
|
"text": "Connect"
|
|
5447
5473
|
}
|
|
5448
5474
|
},
|
|
5449
|
-
{
|
|
5450
|
-
"kind": "field",
|
|
5451
|
-
"name": "session",
|
|
5452
|
-
"type": {
|
|
5453
|
-
"text": "Session"
|
|
5454
|
-
}
|
|
5455
|
-
},
|
|
5456
5475
|
{
|
|
5457
5476
|
"kind": "field",
|
|
5458
5477
|
"name": "deferredGridOptions",
|
|
@@ -5897,11 +5916,6 @@
|
|
|
5897
5916
|
}
|
|
5898
5917
|
]
|
|
5899
5918
|
},
|
|
5900
|
-
{
|
|
5901
|
-
"kind": "method",
|
|
5902
|
-
"name": "setPreviouslySelectedCell",
|
|
5903
|
-
"privacy": "private"
|
|
5904
|
-
},
|
|
5905
5919
|
{
|
|
5906
5920
|
"kind": "method",
|
|
5907
5921
|
"name": "applyTransaction",
|
|
@@ -5979,17 +5993,6 @@
|
|
|
5979
5993
|
"module": "src/datasource/base.datasource.ts"
|
|
5980
5994
|
}
|
|
5981
5995
|
},
|
|
5982
|
-
{
|
|
5983
|
-
"kind": "field",
|
|
5984
|
-
"name": "session",
|
|
5985
|
-
"type": {
|
|
5986
|
-
"text": "Session"
|
|
5987
|
-
},
|
|
5988
|
-
"inheritedFrom": {
|
|
5989
|
-
"name": "GenesisGridDatasourceElement",
|
|
5990
|
-
"module": "src/datasource/base.datasource.ts"
|
|
5991
|
-
}
|
|
5992
|
-
},
|
|
5993
5996
|
{
|
|
5994
5997
|
"kind": "field",
|
|
5995
5998
|
"name": "deferredGridOptions",
|
|
@@ -7196,15 +7199,6 @@
|
|
|
7196
7199
|
"module": "src/datasource/base.datasource.ts"
|
|
7197
7200
|
}
|
|
7198
7201
|
},
|
|
7199
|
-
{
|
|
7200
|
-
"kind": "method",
|
|
7201
|
-
"name": "setPreviouslySelectedCell",
|
|
7202
|
-
"privacy": "private",
|
|
7203
|
-
"inheritedFrom": {
|
|
7204
|
-
"name": "GridProBaseDatasource",
|
|
7205
|
-
"module": "src/datasource/base.datasource.ts"
|
|
7206
|
-
}
|
|
7207
|
-
},
|
|
7208
7202
|
{
|
|
7209
7203
|
"kind": "method",
|
|
7210
7204
|
"name": "mapTransaction",
|
|
@@ -7248,17 +7242,6 @@
|
|
|
7248
7242
|
"module": "src/datasource/base.datasource.ts"
|
|
7249
7243
|
}
|
|
7250
7244
|
},
|
|
7251
|
-
{
|
|
7252
|
-
"kind": "field",
|
|
7253
|
-
"name": "session",
|
|
7254
|
-
"type": {
|
|
7255
|
-
"text": "Session"
|
|
7256
|
-
},
|
|
7257
|
-
"inheritedFrom": {
|
|
7258
|
-
"name": "GenesisGridDatasourceElement",
|
|
7259
|
-
"module": "src/datasource/base.datasource.ts"
|
|
7260
|
-
}
|
|
7261
|
-
},
|
|
7262
7245
|
{
|
|
7263
7246
|
"kind": "field",
|
|
7264
7247
|
"name": "deferredGridOptions",
|
|
@@ -8501,15 +8484,6 @@
|
|
|
8501
8484
|
"module": "src/datasource/base.datasource.ts"
|
|
8502
8485
|
}
|
|
8503
8486
|
},
|
|
8504
|
-
{
|
|
8505
|
-
"kind": "method",
|
|
8506
|
-
"name": "setPreviouslySelectedCell",
|
|
8507
|
-
"privacy": "private",
|
|
8508
|
-
"inheritedFrom": {
|
|
8509
|
-
"name": "GridProBaseDatasource",
|
|
8510
|
-
"module": "src/datasource/base.datasource.ts"
|
|
8511
|
-
}
|
|
8512
|
-
},
|
|
8513
8487
|
{
|
|
8514
8488
|
"kind": "method",
|
|
8515
8489
|
"name": "mapTransaction",
|
|
@@ -8553,17 +8527,6 @@
|
|
|
8553
8527
|
"module": "src/datasource/base.datasource.ts"
|
|
8554
8528
|
}
|
|
8555
8529
|
},
|
|
8556
|
-
{
|
|
8557
|
-
"kind": "field",
|
|
8558
|
-
"name": "session",
|
|
8559
|
-
"type": {
|
|
8560
|
-
"text": "Session"
|
|
8561
|
-
},
|
|
8562
|
-
"inheritedFrom": {
|
|
8563
|
-
"name": "GenesisGridDatasourceElement",
|
|
8564
|
-
"module": "src/datasource/base.datasource.ts"
|
|
8565
|
-
}
|
|
8566
|
-
},
|
|
8567
8530
|
{
|
|
8568
8531
|
"kind": "field",
|
|
8569
8532
|
"name": "deferredGridOptions",
|
|
@@ -9990,15 +9953,6 @@
|
|
|
9990
9953
|
"module": "src/datasource/base.datasource.ts"
|
|
9991
9954
|
}
|
|
9992
9955
|
},
|
|
9993
|
-
{
|
|
9994
|
-
"kind": "method",
|
|
9995
|
-
"name": "setPreviouslySelectedCell",
|
|
9996
|
-
"privacy": "private",
|
|
9997
|
-
"inheritedFrom": {
|
|
9998
|
-
"name": "GridProBaseDatasource",
|
|
9999
|
-
"module": "src/datasource/base.datasource.ts"
|
|
10000
|
-
}
|
|
10001
|
-
},
|
|
10002
9956
|
{
|
|
10003
9957
|
"kind": "method",
|
|
10004
9958
|
"name": "mapTransaction",
|
|
@@ -10042,17 +9996,6 @@
|
|
|
10042
9996
|
"module": "src/datasource/base.datasource.ts"
|
|
10043
9997
|
}
|
|
10044
9998
|
},
|
|
10045
|
-
{
|
|
10046
|
-
"kind": "field",
|
|
10047
|
-
"name": "session",
|
|
10048
|
-
"type": {
|
|
10049
|
-
"text": "Session"
|
|
10050
|
-
},
|
|
10051
|
-
"inheritedFrom": {
|
|
10052
|
-
"name": "GenesisGridDatasourceElement",
|
|
10053
|
-
"module": "src/datasource/base.datasource.ts"
|
|
10054
|
-
}
|
|
10055
|
-
},
|
|
10056
9999
|
{
|
|
10057
10000
|
"kind": "field",
|
|
10058
10001
|
"name": "deferredGridOptions",
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
2
|
-
import { Session } from '@genesislcap/foundation-comms';
|
|
1
|
+
import type { ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
3
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
5
4
|
import { GridPro } from '../grid-pro';
|
|
6
5
|
export declare class GenesisGridDatasourceElement extends FoundationElement {
|
|
7
6
|
connect: Connect;
|
|
8
|
-
session: Session;
|
|
9
7
|
deferredGridOptions: GridOptions;
|
|
10
8
|
deferredColumnStates: ColumnState[];
|
|
11
9
|
/**
|
|
@@ -59,7 +57,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
59
57
|
protected applyAllAgTransactions(): void;
|
|
60
58
|
private flashAddedCells;
|
|
61
59
|
private applyMappedAgTransaction;
|
|
62
|
-
private setPreviouslySelectedCell;
|
|
63
60
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
64
61
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
65
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,qBAAa,4BAA6B,SAAQ,iBAAiB;IACxD,OAAO,EAAG,OAAO,CAAC;IAEf,mBAAmB,EAAE,WAAW,CAAC;IACjC,oBAAoB,EAAE,WAAW,EAAE,CAAC;IAEhD;;OAEG;IACS,aAAa,EAAE,QAAQ,CAAC;IAE9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,UAAS;IACvC,OAAO,EAAE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IACH,OAAO,CAAC,cAAc;CAwBvB;AAED,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;CACvC"}
|
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;
|
|
@@ -407,12 +400,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
407
400
|
rowHeight: number;
|
|
408
401
|
theme: string;
|
|
409
402
|
themeChanged(oldValue: string, newValue: string): void;
|
|
410
|
-
/**
|
|
411
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
412
|
-
* @remarks Defaults to false
|
|
413
|
-
* @alpha
|
|
414
|
-
*/
|
|
415
|
-
blockScrollingOnContextMenu: boolean;
|
|
416
403
|
classNames: string;
|
|
417
404
|
agGrid: Grid;
|
|
418
405
|
gridSlot: HTMLSlotElement;
|
|
@@ -424,6 +411,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
424
411
|
protected agGridOptions: GridOptions;
|
|
425
412
|
protected initialised: boolean;
|
|
426
413
|
private rehydrationAttempted;
|
|
414
|
+
private gridEventsQueue;
|
|
427
415
|
private filterConfig;
|
|
428
416
|
/**
|
|
429
417
|
* Injectable config that allows to change grid options on an app level basis
|
|
@@ -441,6 +429,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
441
429
|
*/
|
|
442
430
|
gridOptionsConfig: GridOptionsConfig;
|
|
443
431
|
constructor();
|
|
432
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
433
|
+
private addGridEventListener;
|
|
444
434
|
connectedCallback(): void;
|
|
445
435
|
disconnectedCallback(): void;
|
|
446
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,MAAM,kBAAkB,CAAC;AAY1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
3
|
-
import { DatasourceDefaults, Session } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { DatasourceDefaults } from '@genesislcap/foundation-comms';
|
|
4
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
5
|
-
import { attr,
|
|
4
|
+
import { attr, observable } from '@microsoft/fast-element';
|
|
6
5
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
7
6
|
export class GenesisGridDatasourceElement extends FoundationElement {
|
|
8
7
|
constructor() {
|
|
@@ -46,9 +45,6 @@ export class GenesisGridDatasourceElement extends FoundationElement {
|
|
|
46
45
|
__decorate([
|
|
47
46
|
Connect
|
|
48
47
|
], GenesisGridDatasourceElement.prototype, "connect", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Session
|
|
51
|
-
], GenesisGridDatasourceElement.prototype, "session", void 0);
|
|
52
48
|
__decorate([
|
|
53
49
|
observable
|
|
54
50
|
], GenesisGridDatasourceElement.prototype, "deferredGridOptions", void 0);
|
|
@@ -181,35 +177,12 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
181
177
|
this.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
|
|
182
178
|
this.flashAddedCells(changedNodes.add);
|
|
183
179
|
});
|
|
184
|
-
this.agGrid.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, (e) => {
|
|
185
|
-
e.results.forEach((result) => {
|
|
186
|
-
if (result.add.length || result.remove.length) {
|
|
187
|
-
this.setPreviouslySelectedCell();
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
180
|
}
|
|
192
181
|
else {
|
|
193
182
|
const changedNodes = this.applyTransaction(this.mapTransaction(agTransaction, [operation]));
|
|
194
183
|
this.flashAddedCells(changedNodes.add);
|
|
195
|
-
this.setPreviouslySelectedCell();
|
|
196
184
|
}
|
|
197
185
|
}
|
|
198
|
-
setPreviouslySelectedCell() {
|
|
199
|
-
debugger;
|
|
200
|
-
if (!this.agGrid.blockScrollingOnContextMenu) {
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
const previouslySelectedRowId = this.session.getSessionStorageItem('selectedRowId');
|
|
204
|
-
const previouslySelectedRowNode = this.agGrid.gridApi.getRowNode(previouslySelectedRowId);
|
|
205
|
-
const previouslySelectedColId = this.session.getSessionStorageItem('selectedColId');
|
|
206
|
-
if (!previouslySelectedRowNode || !previouslySelectedColId)
|
|
207
|
-
return;
|
|
208
|
-
DOM.queueUpdate(() => {
|
|
209
|
-
this.agGrid.gridApi.setFocusedCell(previouslySelectedRowNode.rowIndex, previouslySelectedColId);
|
|
210
|
-
this.agGrid.gridApi.ensureIndexVisible(previouslySelectedRowNode.rowIndex, 'middle');
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
186
|
applyTransaction(agTransaction) {
|
|
214
187
|
throw new Error('Method not implemented.');
|
|
215
188
|
}
|
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';
|
|
@@ -96,13 +96,8 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
96
96
|
this.gridFontFace = defaultAgGridFontFace;
|
|
97
97
|
this.columnComponentName = 'grid-pro-column';
|
|
98
98
|
this.theme = AgGridTheme.alpine;
|
|
99
|
-
/**
|
|
100
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
101
|
-
* @remarks Defaults to false
|
|
102
|
-
* @alpha
|
|
103
|
-
*/
|
|
104
|
-
this.blockScrollingOnContextMenu = false;
|
|
105
99
|
this.rehydrationAttempted = false;
|
|
100
|
+
this.gridEventsQueue = [];
|
|
106
101
|
this.filterConfig = undefined;
|
|
107
102
|
this.agAttributes = {};
|
|
108
103
|
this.agPropertiesMap = ComponentUtil.ALL_PROPERTIES.reduce((map, property) => {
|
|
@@ -111,6 +106,22 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
111
106
|
return map;
|
|
112
107
|
}, {});
|
|
113
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
|
+
}
|
|
114
125
|
connectedCallback() {
|
|
115
126
|
super.connectedCallback();
|
|
116
127
|
this.rehydrationAttempted = false;
|
|
@@ -261,11 +272,16 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
261
272
|
return;
|
|
262
273
|
this.agAttributes[attrName] = attribute.value;
|
|
263
274
|
});
|
|
264
|
-
const { columnDefs, components, defaultColDef,
|
|
275
|
+
const { columnDefs, components, defaultColDef, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFirstDataRendered"]);
|
|
265
276
|
const derivedOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.gridOptionsConfig), { defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
266
277
|
var _a, _b;
|
|
267
278
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
268
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
|
+
}
|
|
269
285
|
if (onGridReady) {
|
|
270
286
|
onGridReady(event);
|
|
271
287
|
}
|
|
@@ -280,19 +296,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
280
296
|
if (onFirstDataRendered) {
|
|
281
297
|
onFirstDataRendered(event);
|
|
282
298
|
}
|
|
283
|
-
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback,
|
|
284
|
-
if (this.blockScrollingOnContextMenu) {
|
|
285
|
-
this.session.setSessionStorageItem('selectedRowId', event.node.id);
|
|
286
|
-
this.session.setSessionStorageItem('selectedColId', event.colDef.colId);
|
|
287
|
-
this.addEventListener('click', (e) => {
|
|
288
|
-
this.session.removeSessionStorageItem('selectedRowId');
|
|
289
|
-
this.session.removeSessionStorageItem('selectedColId');
|
|
290
|
-
}, { once: true });
|
|
291
|
-
}
|
|
292
|
-
if (onCellContextMenu) {
|
|
293
|
-
onCellContextMenu(event);
|
|
294
|
-
}
|
|
295
|
-
} }), rest);
|
|
299
|
+
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
296
300
|
if (this.gridProDatasource) {
|
|
297
301
|
derivedOptions.columnDefs = columnDefs;
|
|
298
302
|
}
|
|
@@ -504,9 +508,6 @@ __decorate([
|
|
|
504
508
|
__decorate([
|
|
505
509
|
attr
|
|
506
510
|
], GridPro.prototype, "theme", void 0);
|
|
507
|
-
__decorate([
|
|
508
|
-
attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
|
|
509
|
-
], GridPro.prototype, "blockScrollingOnContextMenu", void 0);
|
|
510
511
|
__decorate([
|
|
511
512
|
observable
|
|
512
513
|
], GridPro.prototype, "classNames", void 0);
|
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';
|
|
@@ -37,11 +37,10 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
37
37
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
38
38
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
39
39
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
40
|
-
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
40
|
+
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
41
41
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
42
|
-
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
42
|
+
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
43
43
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
44
|
-
import { Session } from '@genesislcap/foundation-comms';
|
|
45
44
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
46
45
|
import { Swatch } from '@microsoft/fast-components';
|
|
47
46
|
import { SwatchRGB } from '@microsoft/fast-components';
|
|
@@ -940,7 +939,6 @@ declare interface FuiCellRendererParams extends ICellRendererParams {
|
|
|
940
939
|
|
|
941
940
|
declare class GenesisGridDatasourceElement extends FoundationElement {
|
|
942
941
|
connect: Connect;
|
|
943
|
-
session: Session;
|
|
944
942
|
deferredGridOptions: GridOptions;
|
|
945
943
|
deferredColumnStates: ColumnState[];
|
|
946
944
|
/**
|
|
@@ -1207,12 +1205,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1207
1205
|
rowHeight: number;
|
|
1208
1206
|
theme: string;
|
|
1209
1207
|
themeChanged(oldValue: string, newValue: string): void;
|
|
1210
|
-
/**
|
|
1211
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
1212
|
-
* @remarks Defaults to false
|
|
1213
|
-
* @alpha
|
|
1214
|
-
*/
|
|
1215
|
-
blockScrollingOnContextMenu: boolean;
|
|
1216
1208
|
classNames: string;
|
|
1217
1209
|
agGrid: Grid;
|
|
1218
1210
|
gridSlot: HTMLSlotElement;
|
|
@@ -1224,6 +1216,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1224
1216
|
protected agGridOptions: GridOptions;
|
|
1225
1217
|
protected initialised: boolean;
|
|
1226
1218
|
private rehydrationAttempted;
|
|
1219
|
+
private gridEventsQueue;
|
|
1227
1220
|
private filterConfig;
|
|
1228
1221
|
/**
|
|
1229
1222
|
* Injectable config that allows to change grid options on an app level basis
|
|
@@ -1241,6 +1234,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
1241
1234
|
*/
|
|
1242
1235
|
gridOptionsConfig: GridOptionsConfig;
|
|
1243
1236
|
constructor();
|
|
1237
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
1238
|
+
private addGridEventListener;
|
|
1244
1239
|
connectedCallback(): void;
|
|
1245
1240
|
disconnectedCallback(): void;
|
|
1246
1241
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -1304,12 +1299,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1304
1299
|
"__#1@#_latestTokenCode": string;
|
|
1305
1300
|
"__#1@#_hasFirstLoaded": boolean;
|
|
1306
1301
|
"__#1@#_cleanupTimeout": NodeJS.Timeout;
|
|
1307
|
-
/**
|
|
1308
|
-
* The Grid Pro element.
|
|
1309
|
-
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
1310
|
-
* @public
|
|
1311
|
-
* @tagname %%prefix%%-grid-pro
|
|
1312
|
-
*/
|
|
1313
1302
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
1314
1303
|
cloneNode(deep?: boolean): Node;
|
|
1315
1304
|
deepClone(): Node;
|
|
@@ -1643,7 +1632,6 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
1643
1632
|
protected applyAllAgTransactions(): void;
|
|
1644
1633
|
private flashAddedCells;
|
|
1645
1634
|
private applyMappedAgTransaction;
|
|
1646
|
-
private setPreviouslySelectedCell;
|
|
1647
1635
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
1648
1636
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
1649
1637
|
/**
|
|
@@ -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';
|
|
@@ -43,11 +43,10 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
43
43
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
44
44
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
45
45
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
46
|
-
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
46
|
+
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
47
47
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
48
|
-
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
48
|
+
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
49
49
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
50
|
-
import { Session } from '@genesislcap/foundation-comms';
|
|
51
50
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
52
51
|
import { Swatch } from '@microsoft/fast-components';
|
|
53
52
|
import { SwatchRGB } from '@microsoft/fast-components';
|
|
@@ -779,6 +778,8 @@ export const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
|
|
|
779
778
|
// @public
|
|
780
779
|
export class GridPro extends GridPro_base {
|
|
781
780
|
constructor();
|
|
781
|
+
// (undocumented)
|
|
782
|
+
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
782
783
|
addIndex: number;
|
|
783
784
|
// (undocumented)
|
|
784
785
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
@@ -797,8 +798,6 @@ export class GridPro extends GridPro_base {
|
|
|
797
798
|
asyncUpdate: boolean;
|
|
798
799
|
// (undocumented)
|
|
799
800
|
autoCellRendererByType: boolean;
|
|
800
|
-
// @alpha
|
|
801
|
-
blockScrollingOnContextMenu: boolean;
|
|
802
801
|
// (undocumented)
|
|
803
802
|
classNames: string;
|
|
804
803
|
// (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.
|
|
4
|
+
"version": "14.145.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.145.1",
|
|
34
|
+
"@genesislcap/genx": "14.145.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.145.1",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.145.1",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.145.1",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.145.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": "5ec311e6d296eb8c048be764d107f7f4dd14de22"
|
|
66
66
|
}
|