@genesislcap/grid-pro 14.176.1-alpha-6ef4895.0 → 14.177.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 +0 -64
- package/dist/dts/datasource/base.datasource.d.ts +1 -2
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +1 -13
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +1 -25
- package/dist/esm/grid-pro.js +2 -24
- package/dist/grid-pro.api.json +0 -60
- package/dist/grid-pro.d.ts +3 -16
- package/docs/api/grid-pro.gridpro.md +0 -2
- package/docs/api-report.md +2 -8
- package/package.json +13 -13
- package/docs/api/grid-pro.gridpro.selectedcolid.md +0 -11
- package/docs/api/grid-pro.gridpro.selectedrowid.md +0 -11
|
@@ -502,15 +502,6 @@
|
|
|
502
502
|
}
|
|
503
503
|
]
|
|
504
504
|
},
|
|
505
|
-
{
|
|
506
|
-
"kind": "field",
|
|
507
|
-
"name": "blockScrollingOnContextMenu",
|
|
508
|
-
"type": {
|
|
509
|
-
"text": "boolean"
|
|
510
|
-
},
|
|
511
|
-
"default": "false",
|
|
512
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
|
|
513
|
-
},
|
|
514
505
|
{
|
|
515
506
|
"kind": "field",
|
|
516
507
|
"name": "classNames",
|
|
@@ -642,20 +633,6 @@
|
|
|
642
633
|
}
|
|
643
634
|
]
|
|
644
635
|
},
|
|
645
|
-
{
|
|
646
|
-
"kind": "field",
|
|
647
|
-
"name": "selectedRowId",
|
|
648
|
-
"type": {
|
|
649
|
-
"text": "string"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"kind": "field",
|
|
654
|
-
"name": "selectedColId",
|
|
655
|
-
"type": {
|
|
656
|
-
"text": "string"
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
636
|
{
|
|
660
637
|
"kind": "field",
|
|
661
638
|
"name": "gridOptionsConfig",
|
|
@@ -1273,15 +1250,6 @@
|
|
|
1273
1250
|
"text": "string"
|
|
1274
1251
|
},
|
|
1275
1252
|
"fieldName": "theme"
|
|
1276
|
-
},
|
|
1277
|
-
{
|
|
1278
|
-
"name": "block-scrolling-on-context-menu",
|
|
1279
|
-
"type": {
|
|
1280
|
-
"text": "boolean"
|
|
1281
|
-
},
|
|
1282
|
-
"default": "false",
|
|
1283
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
|
|
1284
|
-
"fieldName": "blockScrollingOnContextMenu"
|
|
1285
1253
|
}
|
|
1286
1254
|
],
|
|
1287
1255
|
"mixins": [
|
|
@@ -6199,11 +6167,6 @@
|
|
|
6199
6167
|
}
|
|
6200
6168
|
]
|
|
6201
6169
|
},
|
|
6202
|
-
{
|
|
6203
|
-
"kind": "method",
|
|
6204
|
-
"name": "setPreviouslySelectedCell",
|
|
6205
|
-
"privacy": "private"
|
|
6206
|
-
},
|
|
6207
6170
|
{
|
|
6208
6171
|
"kind": "method",
|
|
6209
6172
|
"name": "applyTransaction",
|
|
@@ -7599,15 +7562,6 @@
|
|
|
7599
7562
|
"module": "src/datasource/base.datasource.ts"
|
|
7600
7563
|
}
|
|
7601
7564
|
},
|
|
7602
|
-
{
|
|
7603
|
-
"kind": "method",
|
|
7604
|
-
"name": "setPreviouslySelectedCell",
|
|
7605
|
-
"privacy": "private",
|
|
7606
|
-
"inheritedFrom": {
|
|
7607
|
-
"name": "GridProBaseDatasource",
|
|
7608
|
-
"module": "src/datasource/base.datasource.ts"
|
|
7609
|
-
}
|
|
7610
|
-
},
|
|
7611
7565
|
{
|
|
7612
7566
|
"kind": "method",
|
|
7613
7567
|
"name": "mapTransaction",
|
|
@@ -8986,15 +8940,6 @@
|
|
|
8986
8940
|
"module": "src/datasource/base.datasource.ts"
|
|
8987
8941
|
}
|
|
8988
8942
|
},
|
|
8989
|
-
{
|
|
8990
|
-
"kind": "method",
|
|
8991
|
-
"name": "setPreviouslySelectedCell",
|
|
8992
|
-
"privacy": "private",
|
|
8993
|
-
"inheritedFrom": {
|
|
8994
|
-
"name": "GridProBaseDatasource",
|
|
8995
|
-
"module": "src/datasource/base.datasource.ts"
|
|
8996
|
-
}
|
|
8997
|
-
},
|
|
8998
8943
|
{
|
|
8999
8944
|
"kind": "method",
|
|
9000
8945
|
"name": "mapTransaction",
|
|
@@ -10510,15 +10455,6 @@
|
|
|
10510
10455
|
"module": "src/datasource/base.datasource.ts"
|
|
10511
10456
|
}
|
|
10512
10457
|
},
|
|
10513
|
-
{
|
|
10514
|
-
"kind": "method",
|
|
10515
|
-
"name": "setPreviouslySelectedCell",
|
|
10516
|
-
"privacy": "private",
|
|
10517
|
-
"inheritedFrom": {
|
|
10518
|
-
"name": "GridProBaseDatasource",
|
|
10519
|
-
"module": "src/datasource/base.datasource.ts"
|
|
10520
|
-
}
|
|
10521
|
-
},
|
|
10522
10458
|
{
|
|
10523
10459
|
"kind": "method",
|
|
10524
10460
|
"name": "mapTransaction",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
1
|
+
import type { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { FieldMetadata } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
@@ -59,7 +59,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
59
59
|
protected applyAllAgTransactions(): void;
|
|
60
60
|
private flashAddedCells;
|
|
61
61
|
private applyMappedAgTransaction;
|
|
62
|
-
private setPreviouslySelectedCell;
|
|
63
62
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
64
63
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
65
64
|
/**
|
|
@@ -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,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,aAAa,EAGd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAStC,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,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;IAC/B,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IAChC,OAAO,UAAS;IAE3C;;;;;OAKG;IAC4B,SAAS,MAAC;IAMzC,SAAS,KAAK,KAAK,IAAI,MAAM,CAI5B;IAED;;;OAGG;IACH,SAAS,KAAK,eAAe,IAAI,OAAO,CAMvC;IAED,SAAS,KAAK,0BAA0B,IAAI,MAAM,CAIjD;IAED,SAAS,CAAC,eAAe,UAAS;IAElC,SAAS,KAAK,MAAM,IAAI,OAAO,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INED_BY: number;
|
|
153
153
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
154
154
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
155
|
-
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
156
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
157
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
155
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
160
156
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
161
157
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
162
158
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
@@ -413,12 +409,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
413
409
|
rowHeight: number;
|
|
414
410
|
theme: string;
|
|
415
411
|
themeChanged(oldValue: string, newValue: string): void;
|
|
416
|
-
/**
|
|
417
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
418
|
-
* @remarks Defaults to false
|
|
419
|
-
* @alpha
|
|
420
|
-
*/
|
|
421
|
-
blockScrollingOnContextMenu: boolean;
|
|
422
412
|
classNames: string;
|
|
423
413
|
agGrid: Grid;
|
|
424
414
|
gridSlot: HTMLSlotElement;
|
|
@@ -440,8 +430,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
440
430
|
setFilterModel(value: {
|
|
441
431
|
[key: string]: any;
|
|
442
432
|
}): Promise<void>;
|
|
443
|
-
selectedRowId: string;
|
|
444
|
-
selectedColId: string;
|
|
445
433
|
/**
|
|
446
434
|
* Injectable config that allows to change grid options on an app level basis
|
|
447
435
|
* 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":"AACA,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EAGX,I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,IAAI,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,iBAAiB,IACjB,wBAAwB,GACxB,2BAA2B,GAC3B,2BAA2B,CAM9B;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA+EnC;IAED,OAAO,CAAC,eAAe;IAwBvB;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAuFzF,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 { Events, } from '@ag-grid-community/core';
|
|
3
2
|
import { DatasourceDefaults, FieldTypeEnum, logger, } 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
|
import { dateValueFormatter, dateTimeValueFormatter, getColumnType, getFilterByFieldType, } from '../grid-pro.definitions';
|
|
8
7
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
@@ -233,35 +232,12 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
233
232
|
this.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
|
|
234
233
|
this.flashAddedCells(changedNodes.add);
|
|
235
234
|
});
|
|
236
|
-
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
237
|
-
const listenerEvent = (e) => {
|
|
238
|
-
e.results.forEach((result) => {
|
|
239
|
-
if (result.add.length || result.remove.length) {
|
|
240
|
-
this.setPreviouslySelectedCell();
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
this.agGrid.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, listenerEvent);
|
|
245
|
-
}
|
|
246
235
|
}
|
|
247
236
|
else {
|
|
248
237
|
const changedNodes = this.applyTransaction(this.mapTransaction(agTransaction, [operation]));
|
|
249
238
|
this.flashAddedCells(changedNodes.add);
|
|
250
|
-
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
251
|
-
this.setPreviouslySelectedCell();
|
|
252
|
-
}
|
|
253
239
|
}
|
|
254
240
|
}
|
|
255
|
-
setPreviouslySelectedCell() {
|
|
256
|
-
const previouslySelectedRowNode = this.agGrid.gridApi.getRowNode(this.agGrid.selectedRowId);
|
|
257
|
-
const previouslySelectedColId = this.agGrid.selectedColId;
|
|
258
|
-
if (!previouslySelectedRowNode || !previouslySelectedColId)
|
|
259
|
-
return;
|
|
260
|
-
DOM.queueUpdate(() => {
|
|
261
|
-
this.agGrid.gridApi.setFocusedCell(previouslySelectedRowNode.rowIndex, previouslySelectedColId);
|
|
262
|
-
this.agGrid.gridApi.ensureIndexVisible(previouslySelectedRowNode.rowIndex, 'middle');
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
241
|
applyTransaction(agTransaction) {
|
|
266
242
|
throw new Error('Method not implemented.');
|
|
267
243
|
}
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -111,12 +111,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
111
111
|
this.gridFontFace = defaultAgGridFontFace;
|
|
112
112
|
this.columnComponentName = 'grid-pro-column';
|
|
113
113
|
this.theme = AgGridTheme.alpine;
|
|
114
|
-
/**
|
|
115
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
116
|
-
* @remarks Defaults to false
|
|
117
|
-
* @alpha
|
|
118
|
-
*/
|
|
119
|
-
this.blockScrollingOnContextMenu = false;
|
|
120
114
|
this.rehydrationAttempted = false;
|
|
121
115
|
this.rootEventsListeners = [];
|
|
122
116
|
this.gridEventsQueue = [];
|
|
@@ -319,7 +313,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
319
313
|
return;
|
|
320
314
|
this.agAttributes[attrName] = attribute.value;
|
|
321
315
|
});
|
|
322
|
-
const { columnDefs, components, defaultColDef,
|
|
316
|
+
const { columnDefs, components, defaultColDef, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFilterChanged"]);
|
|
323
317
|
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) => {
|
|
324
318
|
var _a, _b;
|
|
325
319
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
@@ -343,20 +337,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
343
337
|
if (onFilterChanged) {
|
|
344
338
|
onFilterChanged(filterChangedEvent);
|
|
345
339
|
}
|
|
346
|
-
}, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback,
|
|
347
|
-
if (this.blockScrollingOnContextMenu) {
|
|
348
|
-
debugger;
|
|
349
|
-
this.selectedRowId = event.node.id;
|
|
350
|
-
this.selectedColId = event.colDef.colId;
|
|
351
|
-
this.addEventListener('click', (e) => {
|
|
352
|
-
this.selectedRowId = undefined;
|
|
353
|
-
this.selectedColId = undefined;
|
|
354
|
-
}, { once: true });
|
|
355
|
-
}
|
|
356
|
-
if (onCellContextMenu) {
|
|
357
|
-
onCellContextMenu(event);
|
|
358
|
-
}
|
|
359
|
-
} }), rest);
|
|
340
|
+
}, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
360
341
|
if (this.gridProDatasource) {
|
|
361
342
|
derivedOptions.columnDefs = columnDefs;
|
|
362
343
|
this.initGridOptions(derivedOptions, globalEventListener);
|
|
@@ -596,9 +577,6 @@ __decorate([
|
|
|
596
577
|
__decorate([
|
|
597
578
|
attr
|
|
598
579
|
], GridPro.prototype, "theme", void 0);
|
|
599
|
-
__decorate([
|
|
600
|
-
attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
|
|
601
|
-
], GridPro.prototype, "blockScrollingOnContextMenu", void 0);
|
|
602
580
|
__decorate([
|
|
603
581
|
observable
|
|
604
582
|
], GridPro.prototype, "classNames", void 0);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -9168,66 +9168,6 @@
|
|
|
9168
9168
|
"isProtected": false,
|
|
9169
9169
|
"isAbstract": false
|
|
9170
9170
|
},
|
|
9171
|
-
{
|
|
9172
|
-
"kind": "Property",
|
|
9173
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedColId:member",
|
|
9174
|
-
"docComment": "",
|
|
9175
|
-
"excerptTokens": [
|
|
9176
|
-
{
|
|
9177
|
-
"kind": "Content",
|
|
9178
|
-
"text": "selectedColId: "
|
|
9179
|
-
},
|
|
9180
|
-
{
|
|
9181
|
-
"kind": "Content",
|
|
9182
|
-
"text": "string"
|
|
9183
|
-
},
|
|
9184
|
-
{
|
|
9185
|
-
"kind": "Content",
|
|
9186
|
-
"text": ";"
|
|
9187
|
-
}
|
|
9188
|
-
],
|
|
9189
|
-
"isReadonly": false,
|
|
9190
|
-
"isOptional": false,
|
|
9191
|
-
"releaseTag": "Public",
|
|
9192
|
-
"name": "selectedColId",
|
|
9193
|
-
"propertyTypeTokenRange": {
|
|
9194
|
-
"startIndex": 1,
|
|
9195
|
-
"endIndex": 2
|
|
9196
|
-
},
|
|
9197
|
-
"isStatic": false,
|
|
9198
|
-
"isProtected": false,
|
|
9199
|
-
"isAbstract": false
|
|
9200
|
-
},
|
|
9201
|
-
{
|
|
9202
|
-
"kind": "Property",
|
|
9203
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedRowId:member",
|
|
9204
|
-
"docComment": "",
|
|
9205
|
-
"excerptTokens": [
|
|
9206
|
-
{
|
|
9207
|
-
"kind": "Content",
|
|
9208
|
-
"text": "selectedRowId: "
|
|
9209
|
-
},
|
|
9210
|
-
{
|
|
9211
|
-
"kind": "Content",
|
|
9212
|
-
"text": "string"
|
|
9213
|
-
},
|
|
9214
|
-
{
|
|
9215
|
-
"kind": "Content",
|
|
9216
|
-
"text": ";"
|
|
9217
|
-
}
|
|
9218
|
-
],
|
|
9219
|
-
"isReadonly": false,
|
|
9220
|
-
"isOptional": false,
|
|
9221
|
-
"releaseTag": "Public",
|
|
9222
|
-
"name": "selectedRowId",
|
|
9223
|
-
"propertyTypeTokenRange": {
|
|
9224
|
-
"startIndex": 1,
|
|
9225
|
-
"endIndex": 2
|
|
9226
|
-
},
|
|
9227
|
-
"isStatic": false,
|
|
9228
|
-
"isProtected": false,
|
|
9229
|
-
"isAbstract": false
|
|
9230
|
-
},
|
|
9231
9171
|
{
|
|
9232
9172
|
"kind": "Method",
|
|
9233
9173
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#setFilterModel:member(1)",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
39
39
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
40
40
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
41
41
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
42
|
-
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
42
|
+
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
43
43
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
44
|
-
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
44
|
+
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
45
45
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
46
46
|
import { Session } from '@genesislcap/foundation-comms';
|
|
47
47
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
@@ -1236,12 +1236,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1236
1236
|
rowHeight: number;
|
|
1237
1237
|
theme: string;
|
|
1238
1238
|
themeChanged(oldValue: string, newValue: string): void;
|
|
1239
|
-
/**
|
|
1240
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
1241
|
-
* @remarks Defaults to false
|
|
1242
|
-
* @alpha
|
|
1243
|
-
*/
|
|
1244
|
-
blockScrollingOnContextMenu: boolean;
|
|
1245
1239
|
classNames: string;
|
|
1246
1240
|
agGrid: Grid;
|
|
1247
1241
|
gridSlot: HTMLSlotElement;
|
|
@@ -1263,8 +1257,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1263
1257
|
setFilterModel(value: {
|
|
1264
1258
|
[key: string]: any;
|
|
1265
1259
|
}): Promise<void>;
|
|
1266
|
-
selectedRowId: string;
|
|
1267
|
-
selectedColId: string;
|
|
1268
1260
|
/**
|
|
1269
1261
|
* Injectable config that allows to change grid options on an app level basis
|
|
1270
1262
|
* To modify options, register instance of the config in DOM container that is
|
|
@@ -1492,11 +1484,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1492
1484
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
1493
1485
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
1494
1486
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
1495
|
-
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
1496
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1497
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1498
|
-
* @internal
|
|
1499
|
-
*/
|
|
1487
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
1500
1488
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
1501
1489
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
1502
1490
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
@@ -1690,7 +1678,6 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
1690
1678
|
protected applyAllAgTransactions(): void;
|
|
1691
1679
|
private flashAddedCells;
|
|
1692
1680
|
private applyMappedAgTransaction;
|
|
1693
|
-
private setPreviouslySelectedCell;
|
|
1694
1681
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
1695
1682
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
1696
1683
|
/**
|
|
@@ -60,8 +60,6 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
60
60
|
| [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local broswer or KV storage. |
|
|
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
|
| [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
|
|
63
|
-
| [selectedColId](./grid-pro.gridpro.selectedcolid.md) | | string | |
|
|
64
|
-
| [selectedRowId](./grid-pro.gridpro.selectedrowid.md) | | string | |
|
|
65
63
|
| [statePersistence](./grid-pro.gridpro.statepersistence.md) | | [StatePersistence](./grid-pro.statepersistence.md) | |
|
|
66
64
|
| [theme](./grid-pro.gridpro.theme.md) | | string | |
|
|
67
65
|
|
package/docs/api-report.md
CHANGED
|
@@ -45,9 +45,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
45
45
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
46
46
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
47
47
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
48
|
-
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
48
|
+
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
49
49
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
50
|
-
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
50
|
+
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
51
51
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
52
52
|
import { Session } from '@genesislcap/foundation-comms';
|
|
53
53
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
@@ -807,8 +807,6 @@ export class GridPro extends GridPro_base {
|
|
|
807
807
|
asyncUpdate: boolean;
|
|
808
808
|
// (undocumented)
|
|
809
809
|
autoCellRendererByType: boolean;
|
|
810
|
-
// @alpha
|
|
811
|
-
blockScrollingOnContextMenu: boolean;
|
|
812
810
|
// (undocumented)
|
|
813
811
|
classNames: string;
|
|
814
812
|
// (undocumented)
|
|
@@ -874,10 +872,6 @@ export class GridPro extends GridPro_base {
|
|
|
874
872
|
// (undocumented)
|
|
875
873
|
rowHeight: number;
|
|
876
874
|
// (undocumented)
|
|
877
|
-
selectedColId: string;
|
|
878
|
-
// (undocumented)
|
|
879
|
-
selectedRowId: string;
|
|
880
|
-
// (undocumented)
|
|
881
875
|
setFilterModel(value: {
|
|
882
876
|
[key: string]: any;
|
|
883
877
|
}): 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.
|
|
4
|
+
"version": "14.177.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.
|
|
34
|
-
"@genesislcap/genx": "14.
|
|
35
|
-
"@genesislcap/rollup-builder": "14.
|
|
36
|
-
"@genesislcap/ts-builder": "14.
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
38
|
-
"@genesislcap/vite-builder": "14.
|
|
39
|
-
"@genesislcap/webpack-builder": "14.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.177.0",
|
|
34
|
+
"@genesislcap/genx": "14.177.0",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.177.0",
|
|
36
|
+
"@genesislcap/ts-builder": "14.177.0",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.177.0",
|
|
38
|
+
"@genesislcap/vite-builder": "14.177.0",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.177.0",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@genesislcap/foundation-comms": "14.
|
|
44
|
-
"@genesislcap/foundation-logger": "14.
|
|
45
|
-
"@genesislcap/foundation-ui": "14.
|
|
46
|
-
"@genesislcap/foundation-utils": "14.
|
|
43
|
+
"@genesislcap/foundation-comms": "14.177.0",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.177.0",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.177.0",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.177.0",
|
|
47
47
|
"@microsoft/fast-colors": "^5.3.1",
|
|
48
48
|
"@microsoft/fast-components": "^2.30.6",
|
|
49
49
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"customElements": "dist/custom-elements.json",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "b3c0ce3e0fa58bae562c2c9bec96beee6a4a2ed4"
|
|
73
73
|
}
|
|
@@ -1,11 +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) > [selectedColId](./grid-pro.gridpro.selectedcolid.md)
|
|
4
|
-
|
|
5
|
-
## GridPro.selectedColId property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
selectedColId: string;
|
|
11
|
-
```
|
|
@@ -1,11 +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) > [selectedRowId](./grid-pro.gridpro.selectedrowid.md)
|
|
4
|
-
|
|
5
|
-
## GridPro.selectedRowId property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
selectedRowId: string;
|
|
11
|
-
```
|