@genesislcap/grid-pro 14.192.2 → 14.192.3-alpha-c1861f7.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 +64 -20
- package/dist/dts/datasource/base.datasource.d.ts +6 -1
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +1 -8
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +16 -12
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +25 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +0 -2
- package/dist/esm/grid-pro.js +24 -2
- package/dist/grid-pro.api.json +60 -0
- package/dist/grid-pro.d.ts +24 -22
- package/docs/api/grid-pro.gridpro.md +2 -0
- package/docs/api/grid-pro.gridpro.selectedcolid.md +11 -0
- package/docs/api/grid-pro.gridpro.selectedrowid.md +11 -0
- package/docs/api-report.md +8 -2
- package/package.json +13 -13
|
@@ -523,6 +523,15 @@
|
|
|
523
523
|
}
|
|
524
524
|
]
|
|
525
525
|
},
|
|
526
|
+
{
|
|
527
|
+
"kind": "field",
|
|
528
|
+
"name": "blockScrollingOnContextMenu",
|
|
529
|
+
"type": {
|
|
530
|
+
"text": "boolean"
|
|
531
|
+
},
|
|
532
|
+
"default": "false",
|
|
533
|
+
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
|
|
534
|
+
},
|
|
526
535
|
{
|
|
527
536
|
"kind": "field",
|
|
528
537
|
"name": "classNames",
|
|
@@ -654,6 +663,20 @@
|
|
|
654
663
|
}
|
|
655
664
|
]
|
|
656
665
|
},
|
|
666
|
+
{
|
|
667
|
+
"kind": "field",
|
|
668
|
+
"name": "selectedRowId",
|
|
669
|
+
"type": {
|
|
670
|
+
"text": "string"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"kind": "field",
|
|
675
|
+
"name": "selectedColId",
|
|
676
|
+
"type": {
|
|
677
|
+
"text": "string"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
657
680
|
{
|
|
658
681
|
"kind": "field",
|
|
659
682
|
"name": "gridOptionsConfig",
|
|
@@ -1271,6 +1294,15 @@
|
|
|
1271
1294
|
"text": "string"
|
|
1272
1295
|
},
|
|
1273
1296
|
"fieldName": "theme"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "block-scrolling-on-context-menu",
|
|
1300
|
+
"type": {
|
|
1301
|
+
"text": "boolean"
|
|
1302
|
+
},
|
|
1303
|
+
"default": "false",
|
|
1304
|
+
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
|
|
1305
|
+
"fieldName": "blockScrollingOnContextMenu"
|
|
1274
1306
|
}
|
|
1275
1307
|
],
|
|
1276
1308
|
"mixins": [
|
|
@@ -6276,6 +6308,11 @@
|
|
|
6276
6308
|
}
|
|
6277
6309
|
]
|
|
6278
6310
|
},
|
|
6311
|
+
{
|
|
6312
|
+
"kind": "method",
|
|
6313
|
+
"name": "setPreviouslySelectedCell",
|
|
6314
|
+
"privacy": "private"
|
|
6315
|
+
},
|
|
6279
6316
|
{
|
|
6280
6317
|
"kind": "method",
|
|
6281
6318
|
"name": "applyTransaction",
|
|
@@ -7172,18 +7209,6 @@
|
|
|
7172
7209
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7173
7210
|
}
|
|
7174
7211
|
},
|
|
7175
|
-
{
|
|
7176
|
-
"kind": "field",
|
|
7177
|
-
"name": "sourceRef",
|
|
7178
|
-
"type": {
|
|
7179
|
-
"text": "string"
|
|
7180
|
-
},
|
|
7181
|
-
"privacy": "private",
|
|
7182
|
-
"inheritedFrom": {
|
|
7183
|
-
"name": "GridProGenesisDatasource",
|
|
7184
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7185
|
-
}
|
|
7186
|
-
},
|
|
7187
7212
|
{
|
|
7188
7213
|
"kind": "field",
|
|
7189
7214
|
"name": "criteriaFromFilters",
|
|
@@ -7715,6 +7740,15 @@
|
|
|
7715
7740
|
"module": "src/datasource/base.datasource.ts"
|
|
7716
7741
|
}
|
|
7717
7742
|
},
|
|
7743
|
+
{
|
|
7744
|
+
"kind": "method",
|
|
7745
|
+
"name": "setPreviouslySelectedCell",
|
|
7746
|
+
"privacy": "private",
|
|
7747
|
+
"inheritedFrom": {
|
|
7748
|
+
"name": "GridProBaseDatasource",
|
|
7749
|
+
"module": "src/datasource/base.datasource.ts"
|
|
7750
|
+
}
|
|
7751
|
+
},
|
|
7718
7752
|
{
|
|
7719
7753
|
"kind": "method",
|
|
7720
7754
|
"name": "mapTransaction",
|
|
@@ -9148,6 +9182,15 @@
|
|
|
9148
9182
|
"module": "src/datasource/base.datasource.ts"
|
|
9149
9183
|
}
|
|
9150
9184
|
},
|
|
9185
|
+
{
|
|
9186
|
+
"kind": "method",
|
|
9187
|
+
"name": "setPreviouslySelectedCell",
|
|
9188
|
+
"privacy": "private",
|
|
9189
|
+
"inheritedFrom": {
|
|
9190
|
+
"name": "GridProBaseDatasource",
|
|
9191
|
+
"module": "src/datasource/base.datasource.ts"
|
|
9192
|
+
}
|
|
9193
|
+
},
|
|
9151
9194
|
{
|
|
9152
9195
|
"kind": "method",
|
|
9153
9196
|
"name": "mapTransaction",
|
|
@@ -10156,14 +10199,6 @@
|
|
|
10156
10199
|
"privacy": "private",
|
|
10157
10200
|
"default": "true"
|
|
10158
10201
|
},
|
|
10159
|
-
{
|
|
10160
|
-
"kind": "field",
|
|
10161
|
-
"name": "sourceRef",
|
|
10162
|
-
"type": {
|
|
10163
|
-
"text": "string"
|
|
10164
|
-
},
|
|
10165
|
-
"privacy": "private"
|
|
10166
|
-
},
|
|
10167
10202
|
{
|
|
10168
10203
|
"kind": "field",
|
|
10169
10204
|
"name": "criteriaFromFilters",
|
|
@@ -10703,6 +10738,15 @@
|
|
|
10703
10738
|
"module": "src/datasource/base.datasource.ts"
|
|
10704
10739
|
}
|
|
10705
10740
|
},
|
|
10741
|
+
{
|
|
10742
|
+
"kind": "method",
|
|
10743
|
+
"name": "setPreviouslySelectedCell",
|
|
10744
|
+
"privacy": "private",
|
|
10745
|
+
"inheritedFrom": {
|
|
10746
|
+
"name": "GridProBaseDatasource",
|
|
10747
|
+
"module": "src/datasource/base.datasource.ts"
|
|
10748
|
+
}
|
|
10749
|
+
},
|
|
10706
10750
|
{
|
|
10707
10751
|
"kind": "method",
|
|
10708
10752
|
"name": "mapTransaction",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { DatasourceStatus, FieldMetadata } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
import type { GridPro } from '../grid-pro';
|
|
@@ -10,6 +10,10 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
10
10
|
connectedCallback(): void;
|
|
11
11
|
disconnectedCallback(): void;
|
|
12
12
|
accessKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns whether the `row-id` attribute is the default one, depending on the resource type.
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
13
17
|
readonly accessKeyLabel: string;
|
|
14
18
|
autocapitalize: string;
|
|
15
19
|
dir: string;
|
|
@@ -378,6 +382,7 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
378
382
|
protected applyAllAgTransactions(): void;
|
|
379
383
|
private flashAddedCells;
|
|
380
384
|
private applyMappedAgTransaction;
|
|
385
|
+
private setPreviouslySelectedCell;
|
|
381
386
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
382
387
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
383
388
|
/**
|
|
@@ -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,EAEL,MAAM,EACN,WAAW,EAEX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,gBAAgB,EAChB,aAAa,EAId,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;;;;;;;;IAgDzC;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1CL,qBAAa,4BAA6B,SAAQ,iCAAyC;IAChF,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,MAAM,CAAmC;IAClD,OAAO,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AgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,GAAG;IAIlE,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAI3F;;;;;OAKG;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"}
|
|
@@ -32,13 +32,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
32
32
|
readonly offsetParent: Element;
|
|
33
33
|
readonly offsetTop: number;
|
|
34
34
|
readonly offsetWidth: number;
|
|
35
|
-
outerText: string;
|
|
36
|
-
* Initializes the datasource.
|
|
37
|
-
* @public
|
|
38
|
-
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
39
|
-
* @param columnStates - Optionally set the grid up with column state
|
|
40
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
41
|
-
*/
|
|
35
|
+
outerText: string;
|
|
42
36
|
spellcheck: boolean;
|
|
43
37
|
title: string;
|
|
44
38
|
translate: boolean;
|
|
@@ -354,7 +348,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
354
348
|
private updateSub;
|
|
355
349
|
private connectionSub;
|
|
356
350
|
private requiresFullRowDataAndColDefs;
|
|
357
|
-
private sourceRef;
|
|
358
351
|
private criteriaFromFilters;
|
|
359
352
|
private update;
|
|
360
353
|
connectedCallback(): void;
|
|
@@ -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,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC
|
|
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,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAatE;;;;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;IACzB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAQrD,mBAAmB,CAAC,QA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C,iBAAiB;CAO1B"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -159,11 +159,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
159
159
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
160
160
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
161
161
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
162
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
163
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
164
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
162
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
167
163
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
168
164
|
readonly ELEMENT_NODE: number;
|
|
169
165
|
readonly ENTITY_NODE: number;
|
|
@@ -203,12 +199,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
203
199
|
ariaRowCount: string;
|
|
204
200
|
ariaRowIndex: string;
|
|
205
201
|
ariaRowIndexText: string;
|
|
206
|
-
/**
|
|
207
|
-
* Gets the saved grid ColumnState[] from storage
|
|
208
|
-
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
209
|
-
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
210
|
-
* @public
|
|
211
|
-
*/
|
|
212
202
|
ariaRowSpan: string;
|
|
213
203
|
ariaSelected: string;
|
|
214
204
|
ariaSetSize: string;
|
|
@@ -302,7 +292,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
302
292
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
303
293
|
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
304
294
|
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
305
|
-
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
295
|
+
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; /**
|
|
296
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
297
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
298
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
299
|
+
* @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.
|
|
300
|
+
* @returns The merged column definitions.
|
|
301
|
+
*/
|
|
306
302
|
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
307
303
|
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
308
304
|
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
@@ -431,6 +427,12 @@ export declare class GridPro extends GridPro_base {
|
|
|
431
427
|
rowHeight: number;
|
|
432
428
|
theme: string;
|
|
433
429
|
themeChanged(oldValue: string, newValue: string): void;
|
|
430
|
+
/**
|
|
431
|
+
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
432
|
+
* @remarks Defaults to false
|
|
433
|
+
* @alpha
|
|
434
|
+
*/
|
|
435
|
+
blockScrollingOnContextMenu: boolean;
|
|
434
436
|
classNames: string;
|
|
435
437
|
agGrid: Grid;
|
|
436
438
|
gridSlot: HTMLSlotElement;
|
|
@@ -452,6 +454,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
452
454
|
setFilterModel(value: {
|
|
453
455
|
[key: string]: any;
|
|
454
456
|
}): Promise<void>;
|
|
457
|
+
selectedRowId: string;
|
|
458
|
+
selectedColId: string;
|
|
455
459
|
/**
|
|
456
460
|
* Injectable config that allows to change grid options on an app level basis
|
|
457
461
|
* To modify options, register instance of the config in DOM container that is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"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|
import { __decorate } from "tslib";
|
|
2
|
+
import { Events, } from '@ag-grid-community/core';
|
|
2
3
|
import { DatasourceDefaults, DatasourceEventHandler, FieldTypeEnum, logger, ResourceType, } from '@genesislcap/foundation-comms';
|
|
3
4
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
|
-
import { attr, observable } from '@microsoft/fast-element';
|
|
5
|
+
import { attr, DOM, observable } from '@microsoft/fast-element';
|
|
5
6
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
7
|
import { dateValueFormatter, dateTimeValueFormatter, getColumnType, getFilterByFieldType, } from '../grid-pro.definitions';
|
|
7
8
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
@@ -235,12 +236,35 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
235
236
|
this.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
|
|
236
237
|
this.flashAddedCells(changedNodes.add);
|
|
237
238
|
});
|
|
239
|
+
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
240
|
+
const listenerEvent = (e) => {
|
|
241
|
+
e.results.forEach((result) => {
|
|
242
|
+
if (result.add.length || result.remove.length) {
|
|
243
|
+
this.setPreviouslySelectedCell();
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
this.agGrid.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, listenerEvent);
|
|
248
|
+
}
|
|
238
249
|
}
|
|
239
250
|
else {
|
|
240
251
|
const changedNodes = this.applyTransaction(this.mapTransaction(agTransaction, [operation]));
|
|
241
252
|
this.flashAddedCells(changedNodes.add);
|
|
253
|
+
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
254
|
+
this.setPreviouslySelectedCell();
|
|
255
|
+
}
|
|
242
256
|
}
|
|
243
257
|
}
|
|
258
|
+
setPreviouslySelectedCell() {
|
|
259
|
+
const previouslySelectedRowNode = this.agGrid.gridApi.getRowNode(this.agGrid.selectedRowId);
|
|
260
|
+
const previouslySelectedColId = this.agGrid.selectedColId;
|
|
261
|
+
if (!previouslySelectedRowNode || !previouslySelectedColId)
|
|
262
|
+
return;
|
|
263
|
+
DOM.queueUpdate(() => {
|
|
264
|
+
this.agGrid.gridApi.setFocusedCell(previouslySelectedRowNode.rowIndex, previouslySelectedColId);
|
|
265
|
+
this.agGrid.gridApi.ensureIndexVisible(previouslySelectedRowNode.rowIndex, 'middle');
|
|
266
|
+
});
|
|
267
|
+
}
|
|
244
268
|
applyTransaction(agTransaction) {
|
|
245
269
|
throw new Error('Method not implemented.');
|
|
246
270
|
}
|
|
@@ -169,7 +169,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
169
169
|
this.connectionSub.unsubscribe();
|
|
170
170
|
this.connectionSub = undefined;
|
|
171
171
|
}
|
|
172
|
-
this.sourceRef = undefined;
|
|
173
172
|
this.clearRowData();
|
|
174
173
|
this.isRequestServer = false;
|
|
175
174
|
this.requiresFullRowDataAndColDefs = true;
|
|
@@ -306,7 +305,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
306
305
|
if (result === null || result === void 0 ? void 0 : result.ERROR) {
|
|
307
306
|
this.handleErrors(result.ERROR.join(', '));
|
|
308
307
|
}
|
|
309
|
-
this.sourceRef = result.SOURCE_REF;
|
|
310
308
|
const messageType = result.MESSAGE_TYPE;
|
|
311
309
|
if (messageType && messageType === MessageType.LOGOFF_ACK) {
|
|
312
310
|
this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`);
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -121,6 +121,12 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
121
121
|
this.gridFontFace = defaultAgGridFontFace;
|
|
122
122
|
this.columnComponentName = 'grid-pro-column';
|
|
123
123
|
this.theme = AgGridTheme.alpine;
|
|
124
|
+
/**
|
|
125
|
+
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
126
|
+
* @remarks Defaults to false
|
|
127
|
+
* @alpha
|
|
128
|
+
*/
|
|
129
|
+
this.blockScrollingOnContextMenu = false;
|
|
124
130
|
this.rehydrationAttempted = false;
|
|
125
131
|
this.rootEventsListeners = [];
|
|
126
132
|
this.gridEventsQueue = [];
|
|
@@ -323,7 +329,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
323
329
|
return;
|
|
324
330
|
this.agAttributes[attrName] = attribute.value;
|
|
325
331
|
});
|
|
326
|
-
const { columnDefs, components, defaultColDef, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFilterChanged"]);
|
|
332
|
+
const { columnDefs, components, defaultColDef, onCellContextMenu, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onCellContextMenu", "onGridReady", "onFilterChanged"]);
|
|
327
333
|
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) => {
|
|
328
334
|
var _a, _b;
|
|
329
335
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
@@ -350,7 +356,20 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
350
356
|
if (onFilterChanged) {
|
|
351
357
|
onFilterChanged(filterChangedEvent);
|
|
352
358
|
}
|
|
353
|
-
}, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback
|
|
359
|
+
}, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback, onCellContextMenu: (event) => {
|
|
360
|
+
if (this.blockScrollingOnContextMenu) {
|
|
361
|
+
debugger;
|
|
362
|
+
this.selectedRowId = event.node.id;
|
|
363
|
+
this.selectedColId = event.colDef.colId;
|
|
364
|
+
this.addEventListener('click', (e) => {
|
|
365
|
+
this.selectedRowId = undefined;
|
|
366
|
+
this.selectedColId = undefined;
|
|
367
|
+
}, { once: true });
|
|
368
|
+
}
|
|
369
|
+
if (onCellContextMenu) {
|
|
370
|
+
onCellContextMenu(event);
|
|
371
|
+
}
|
|
372
|
+
} }), rest);
|
|
354
373
|
if (this.gridProDatasource) {
|
|
355
374
|
derivedOptions.columnDefs = columnDefs;
|
|
356
375
|
this.initGridOptions(derivedOptions, globalEventListener);
|
|
@@ -593,6 +612,9 @@ __decorate([
|
|
|
593
612
|
__decorate([
|
|
594
613
|
attr
|
|
595
614
|
], GridPro.prototype, "theme", void 0);
|
|
615
|
+
__decorate([
|
|
616
|
+
attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
|
|
617
|
+
], GridPro.prototype, "blockScrollingOnContextMenu", void 0);
|
|
596
618
|
__decorate([
|
|
597
619
|
observable
|
|
598
620
|
], GridPro.prototype, "classNames", void 0);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -9393,6 +9393,66 @@
|
|
|
9393
9393
|
"isProtected": false,
|
|
9394
9394
|
"isAbstract": false
|
|
9395
9395
|
},
|
|
9396
|
+
{
|
|
9397
|
+
"kind": "Property",
|
|
9398
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedColId:member",
|
|
9399
|
+
"docComment": "",
|
|
9400
|
+
"excerptTokens": [
|
|
9401
|
+
{
|
|
9402
|
+
"kind": "Content",
|
|
9403
|
+
"text": "selectedColId: "
|
|
9404
|
+
},
|
|
9405
|
+
{
|
|
9406
|
+
"kind": "Content",
|
|
9407
|
+
"text": "string"
|
|
9408
|
+
},
|
|
9409
|
+
{
|
|
9410
|
+
"kind": "Content",
|
|
9411
|
+
"text": ";"
|
|
9412
|
+
}
|
|
9413
|
+
],
|
|
9414
|
+
"isReadonly": false,
|
|
9415
|
+
"isOptional": false,
|
|
9416
|
+
"releaseTag": "Public",
|
|
9417
|
+
"name": "selectedColId",
|
|
9418
|
+
"propertyTypeTokenRange": {
|
|
9419
|
+
"startIndex": 1,
|
|
9420
|
+
"endIndex": 2
|
|
9421
|
+
},
|
|
9422
|
+
"isStatic": false,
|
|
9423
|
+
"isProtected": false,
|
|
9424
|
+
"isAbstract": false
|
|
9425
|
+
},
|
|
9426
|
+
{
|
|
9427
|
+
"kind": "Property",
|
|
9428
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedRowId:member",
|
|
9429
|
+
"docComment": "",
|
|
9430
|
+
"excerptTokens": [
|
|
9431
|
+
{
|
|
9432
|
+
"kind": "Content",
|
|
9433
|
+
"text": "selectedRowId: "
|
|
9434
|
+
},
|
|
9435
|
+
{
|
|
9436
|
+
"kind": "Content",
|
|
9437
|
+
"text": "string"
|
|
9438
|
+
},
|
|
9439
|
+
{
|
|
9440
|
+
"kind": "Content",
|
|
9441
|
+
"text": ";"
|
|
9442
|
+
}
|
|
9443
|
+
],
|
|
9444
|
+
"isReadonly": false,
|
|
9445
|
+
"isOptional": false,
|
|
9446
|
+
"releaseTag": "Public",
|
|
9447
|
+
"name": "selectedRowId",
|
|
9448
|
+
"propertyTypeTokenRange": {
|
|
9449
|
+
"startIndex": 1,
|
|
9450
|
+
"endIndex": 2
|
|
9451
|
+
},
|
|
9452
|
+
"isStatic": false,
|
|
9453
|
+
"isProtected": false,
|
|
9454
|
+
"isAbstract": false
|
|
9455
|
+
},
|
|
9396
9456
|
{
|
|
9397
9457
|
"kind": "Method",
|
|
9398
9458
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#setFilterModel:member(1)",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -41,9 +41,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
41
41
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
42
42
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
43
43
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
44
|
-
import
|
|
44
|
+
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
45
45
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
46
|
-
import
|
|
46
|
+
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
47
47
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
48
48
|
import { Session } from '@genesislcap/foundation-comms';
|
|
49
49
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
@@ -1010,6 +1010,10 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
1010
1010
|
connectedCallback(): void;
|
|
1011
1011
|
disconnectedCallback(): void;
|
|
1012
1012
|
accessKey: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* Returns whether the `row-id` attribute is the default one, depending on the resource type.
|
|
1015
|
+
* @internal
|
|
1016
|
+
*/
|
|
1013
1017
|
readonly accessKeyLabel: string;
|
|
1014
1018
|
autocapitalize: string;
|
|
1015
1019
|
dir: string;
|
|
@@ -1590,6 +1594,12 @@ export declare class GridPro extends GridPro_base {
|
|
|
1590
1594
|
rowHeight: number;
|
|
1591
1595
|
theme: string;
|
|
1592
1596
|
themeChanged(oldValue: string, newValue: string): void;
|
|
1597
|
+
/**
|
|
1598
|
+
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
1599
|
+
* @remarks Defaults to false
|
|
1600
|
+
* @alpha
|
|
1601
|
+
*/
|
|
1602
|
+
blockScrollingOnContextMenu: boolean;
|
|
1593
1603
|
classNames: string;
|
|
1594
1604
|
agGrid: Grid;
|
|
1595
1605
|
gridSlot: HTMLSlotElement;
|
|
@@ -1611,6 +1621,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
1611
1621
|
setFilterModel(value: {
|
|
1612
1622
|
[key: string]: any;
|
|
1613
1623
|
}): Promise<void>;
|
|
1624
|
+
selectedRowId: string;
|
|
1625
|
+
selectedColId: string;
|
|
1614
1626
|
/**
|
|
1615
1627
|
* Injectable config that allows to change grid options on an app level basis
|
|
1616
1628
|
* To modify options, register instance of the config in DOM container that is
|
|
@@ -1840,11 +1852,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1840
1852
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
1841
1853
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
1842
1854
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
1843
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
1844
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1845
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1846
|
-
* @internal
|
|
1847
|
-
*/
|
|
1855
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
1848
1856
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
1849
1857
|
readonly ELEMENT_NODE: number;
|
|
1850
1858
|
readonly ENTITY_NODE: number;
|
|
@@ -1884,12 +1892,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1884
1892
|
ariaRowCount: string;
|
|
1885
1893
|
ariaRowIndex: string;
|
|
1886
1894
|
ariaRowIndexText: string;
|
|
1887
|
-
/**
|
|
1888
|
-
* Gets the saved grid ColumnState[] from storage
|
|
1889
|
-
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
1890
|
-
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
1891
|
-
* @public
|
|
1892
|
-
*/
|
|
1893
1895
|
ariaRowSpan: string;
|
|
1894
1896
|
ariaSelected: string;
|
|
1895
1897
|
ariaSetSize: string;
|
|
@@ -1983,7 +1985,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1983
1985
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1984
1986
|
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
1985
1987
|
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
1986
|
-
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
1988
|
+
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; /**
|
|
1989
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1990
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1991
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
1992
|
+
* @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.
|
|
1993
|
+
* @returns The merged column definitions.
|
|
1994
|
+
*/
|
|
1987
1995
|
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
1988
1996
|
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
1989
1997
|
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
@@ -2042,6 +2050,7 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
2042
2050
|
protected applyAllAgTransactions(): void;
|
|
2043
2051
|
private flashAddedCells;
|
|
2044
2052
|
private applyMappedAgTransaction;
|
|
2053
|
+
private setPreviouslySelectedCell;
|
|
2045
2054
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
2046
2055
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
2047
2056
|
/**
|
|
@@ -2511,7 +2520,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
2511
2520
|
private updateSub;
|
|
2512
2521
|
private connectionSub;
|
|
2513
2522
|
private requiresFullRowDataAndColDefs;
|
|
2514
|
-
private sourceRef;
|
|
2515
2523
|
private criteriaFromFilters;
|
|
2516
2524
|
private update;
|
|
2517
2525
|
connectedCallback(): void;
|
|
@@ -2620,13 +2628,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2620
2628
|
readonly offsetParent: Element;
|
|
2621
2629
|
readonly offsetTop: number;
|
|
2622
2630
|
readonly offsetWidth: number;
|
|
2623
|
-
outerText: string;
|
|
2624
|
-
* Initializes the datasource.
|
|
2625
|
-
* @public
|
|
2626
|
-
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
2627
|
-
* @param columnStates - Optionally set the grid up with column state
|
|
2628
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
2629
|
-
*/
|
|
2631
|
+
outerText: string;
|
|
2630
2632
|
spellcheck: boolean;
|
|
2631
2633
|
title: string;
|
|
2632
2634
|
translate: boolean;
|
|
@@ -61,6 +61,8 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
61
61
|
| [persistFilterModelKey](./grid-pro.gridpro.persistfiltermodelkey.md) | | string | The key to use for persisting the filter model in local browser or KV storage. |
|
|
62
62
|
| [rowData](./grid-pro.gridpro.rowdata.md) | | any\[\] | The row data to display in the grid. |
|
|
63
63
|
| [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
|
|
64
|
+
| [selectedColId](./grid-pro.gridpro.selectedcolid.md) | | string | |
|
|
65
|
+
| [selectedRowId](./grid-pro.gridpro.selectedrowid.md) | | string | |
|
|
64
66
|
| [statePersistence](./grid-pro.gridpro.statepersistence.md) | | [StatePersistence](./grid-pro.statepersistence.md) | |
|
|
65
67
|
| [theme](./grid-pro.gridpro.theme.md) | | string | |
|
|
66
68
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [selectedColId](./grid-pro.gridpro.selectedcolid.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.selectedColId property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
selectedColId: string;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [selectedRowId](./grid-pro.gridpro.selectedrowid.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.selectedRowId property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
selectedRowId: string;
|
|
11
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -47,9 +47,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
47
47
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
48
48
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
49
49
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
50
|
-
import
|
|
50
|
+
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
51
51
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
52
|
-
import
|
|
52
|
+
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
53
53
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
54
54
|
import { Session } from '@genesislcap/foundation-comms';
|
|
55
55
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
@@ -824,6 +824,8 @@ export class GridPro extends GridPro_base {
|
|
|
824
824
|
asyncUpdate: boolean;
|
|
825
825
|
// (undocumented)
|
|
826
826
|
autoCellRendererByType: boolean;
|
|
827
|
+
// @alpha
|
|
828
|
+
blockScrollingOnContextMenu: boolean;
|
|
827
829
|
// (undocumented)
|
|
828
830
|
classNames: string;
|
|
829
831
|
// (undocumented)
|
|
@@ -892,6 +894,10 @@ export class GridPro extends GridPro_base {
|
|
|
892
894
|
// (undocumented)
|
|
893
895
|
rowHeight: number;
|
|
894
896
|
// (undocumented)
|
|
897
|
+
selectedColId: string;
|
|
898
|
+
// (undocumented)
|
|
899
|
+
selectedRowId: string;
|
|
900
|
+
// (undocumented)
|
|
895
901
|
setFilterModel(value: {
|
|
896
902
|
[key: string]: any;
|
|
897
903
|
}): Promise<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.192.
|
|
4
|
+
"version": "14.192.3-alpha-c1861f7.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "14.192.
|
|
42
|
-
"@genesislcap/genx": "14.192.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.192.
|
|
44
|
-
"@genesislcap/ts-builder": "14.192.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.192.
|
|
46
|
-
"@genesislcap/vite-builder": "14.192.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.192.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.192.3-alpha-c1861f7.0",
|
|
42
|
+
"@genesislcap/genx": "14.192.3-alpha-c1861f7.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.192.3-alpha-c1861f7.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.192.3-alpha-c1861f7.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.192.3-alpha-c1861f7.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.192.3-alpha-c1861f7.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.192.3-alpha-c1861f7.0",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.192.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.192.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.192.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.192.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.192.3-alpha-c1861f7.0",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.192.3-alpha-c1861f7.0",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.192.3-alpha-c1861f7.0",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.192.3-alpha-c1861f7.0",
|
|
55
55
|
"@microsoft/fast-colors": "^5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "^2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "1dc42088264db69343d5d46ea39f58310e41c59d"
|
|
81
81
|
}
|