@genesislcap/grid-pro 14.154.3-alpha-359bdfd.0 → 14.154.3-alpha-7f7d442.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 +14 -8
- 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 +16 -11
- 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
|
@@ -453,15 +453,6 @@
|
|
|
453
453
|
}
|
|
454
454
|
]
|
|
455
455
|
},
|
|
456
|
-
{
|
|
457
|
-
"kind": "field",
|
|
458
|
-
"name": "blockScrollingOnContextMenu",
|
|
459
|
-
"type": {
|
|
460
|
-
"text": "boolean"
|
|
461
|
-
},
|
|
462
|
-
"default": "false",
|
|
463
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
|
|
464
|
-
},
|
|
465
456
|
{
|
|
466
457
|
"kind": "field",
|
|
467
458
|
"name": "classNames",
|
|
@@ -558,20 +549,6 @@
|
|
|
558
549
|
"privacy": "private",
|
|
559
550
|
"default": "undefined"
|
|
560
551
|
},
|
|
561
|
-
{
|
|
562
|
-
"kind": "field",
|
|
563
|
-
"name": "selectedRowId",
|
|
564
|
-
"type": {
|
|
565
|
-
"text": "string"
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"kind": "field",
|
|
570
|
-
"name": "selectedColId",
|
|
571
|
-
"type": {
|
|
572
|
-
"text": "string"
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
552
|
{
|
|
576
553
|
"kind": "field",
|
|
577
554
|
"name": "gridOptionsConfig",
|
|
@@ -1159,15 +1136,6 @@
|
|
|
1159
1136
|
"text": "string"
|
|
1160
1137
|
},
|
|
1161
1138
|
"fieldName": "theme"
|
|
1162
|
-
},
|
|
1163
|
-
{
|
|
1164
|
-
"name": "block-scrolling-on-context-menu",
|
|
1165
|
-
"type": {
|
|
1166
|
-
"text": "boolean"
|
|
1167
|
-
},
|
|
1168
|
-
"default": "false",
|
|
1169
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
|
|
1170
|
-
"fieldName": "blockScrollingOnContextMenu"
|
|
1171
1139
|
}
|
|
1172
1140
|
],
|
|
1173
1141
|
"mixins": [
|
|
@@ -5971,11 +5939,6 @@
|
|
|
5971
5939
|
}
|
|
5972
5940
|
]
|
|
5973
5941
|
},
|
|
5974
|
-
{
|
|
5975
|
-
"kind": "method",
|
|
5976
|
-
"name": "setPreviouslySelectedCell",
|
|
5977
|
-
"privacy": "private"
|
|
5978
|
-
},
|
|
5979
5942
|
{
|
|
5980
5943
|
"kind": "method",
|
|
5981
5944
|
"name": "applyTransaction",
|
|
@@ -7259,15 +7222,6 @@
|
|
|
7259
7222
|
"module": "src/datasource/base.datasource.ts"
|
|
7260
7223
|
}
|
|
7261
7224
|
},
|
|
7262
|
-
{
|
|
7263
|
-
"kind": "method",
|
|
7264
|
-
"name": "setPreviouslySelectedCell",
|
|
7265
|
-
"privacy": "private",
|
|
7266
|
-
"inheritedFrom": {
|
|
7267
|
-
"name": "GridProBaseDatasource",
|
|
7268
|
-
"module": "src/datasource/base.datasource.ts"
|
|
7269
|
-
}
|
|
7270
|
-
},
|
|
7271
7225
|
{
|
|
7272
7226
|
"kind": "method",
|
|
7273
7227
|
"name": "mapTransaction",
|
|
@@ -8571,15 +8525,6 @@
|
|
|
8571
8525
|
"module": "src/datasource/base.datasource.ts"
|
|
8572
8526
|
}
|
|
8573
8527
|
},
|
|
8574
|
-
{
|
|
8575
|
-
"kind": "method",
|
|
8576
|
-
"name": "setPreviouslySelectedCell",
|
|
8577
|
-
"privacy": "private",
|
|
8578
|
-
"inheritedFrom": {
|
|
8579
|
-
"name": "GridProBaseDatasource",
|
|
8580
|
-
"module": "src/datasource/base.datasource.ts"
|
|
8581
|
-
}
|
|
8582
|
-
},
|
|
8583
8528
|
{
|
|
8584
8529
|
"kind": "method",
|
|
8585
8530
|
"name": "mapTransaction",
|
|
@@ -10049,15 +9994,6 @@
|
|
|
10049
9994
|
"module": "src/datasource/base.datasource.ts"
|
|
10050
9995
|
}
|
|
10051
9996
|
},
|
|
10052
|
-
{
|
|
10053
|
-
"kind": "method",
|
|
10054
|
-
"name": "setPreviouslySelectedCell",
|
|
10055
|
-
"privacy": "private",
|
|
10056
|
-
"inheritedFrom": {
|
|
10057
|
-
"name": "GridProBaseDatasource",
|
|
10058
|
-
"module": "src/datasource/base.datasource.ts"
|
|
10059
|
-
}
|
|
10060
|
-
},
|
|
10061
9997
|
{
|
|
10062
9998
|
"kind": "method",
|
|
10063
9999
|
"name": "mapTransaction",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
1
|
+
import type { ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
import { GridPro } from '../grid-pro';
|
|
@@ -57,7 +57,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
57
57
|
protected applyAllAgTransactions(): void;
|
|
58
58
|
private flashAddedCells;
|
|
59
59
|
private applyMappedAgTransaction;
|
|
60
|
-
private setPreviouslySelectedCell;
|
|
61
60
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
62
61
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
63
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,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,GAAG,IAAI,CAErC;CACF;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,qBAAa,qBAAsB,SAAQ,4BAA4B;IACrE,SAAS,CAAC,mBAAmB,UAAS;IAEtC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;IAEtC,SAAS,CAAC,aAAa,EAAE,kBAAkB,GAAG,qBAAqB,CAIjE;IAEF,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAErC,SAAS,CAAC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE;IAgBjD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAgBhD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAuBhD,SAAS,CAAC,sBAAsB;IAsChC,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAkBhC,SAAS,CAAC,gBAAgB,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"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -45,6 +45,20 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
45
45
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
46
46
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
47
47
|
readonly attributes: NamedNodeMap;
|
|
48
|
+
/**
|
|
49
|
+
* Injectable config that allows to change grid options on an app level basis
|
|
50
|
+
* To modify options, register instance of the config in DOM container that is
|
|
51
|
+
* above the grid or on the top level of the application, so it applies to all grids.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```
|
|
55
|
+
* DI.getOrCreateDOMContainer().register([
|
|
56
|
+
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
57
|
+
* headerHeight: 50,
|
|
58
|
+
* }),
|
|
59
|
+
* ]);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
48
62
|
readonly classList: DOMTokenList;
|
|
49
63
|
className: string;
|
|
50
64
|
readonly clientHeight: number;
|
|
@@ -400,12 +414,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
400
414
|
rowHeight: number;
|
|
401
415
|
theme: string;
|
|
402
416
|
themeChanged(oldValue: string, newValue: string): void;
|
|
403
|
-
/**
|
|
404
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
405
|
-
* @remarks Defaults to false
|
|
406
|
-
* @alpha
|
|
407
|
-
*/
|
|
408
|
-
blockScrollingOnContextMenu: boolean;
|
|
409
417
|
classNames: string;
|
|
410
418
|
agGrid: Grid;
|
|
411
419
|
gridSlot: HTMLSlotElement;
|
|
@@ -420,8 +428,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
420
428
|
private rehydrationAttempted;
|
|
421
429
|
private gridEventsQueue;
|
|
422
430
|
private filterConfig;
|
|
423
|
-
selectedRowId: string;
|
|
424
|
-
selectedColId: string;
|
|
425
431
|
/**
|
|
426
432
|
* Injectable config that allows to change grid options on an app level basis
|
|
427
433
|
* 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,WA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AAO,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 } 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() {
|
|
@@ -178,35 +177,12 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
178
177
|
this.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
|
|
179
178
|
this.flashAddedCells(changedNodes.add);
|
|
180
179
|
});
|
|
181
|
-
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
182
|
-
const listenerEvent = (e) => {
|
|
183
|
-
e.results.forEach((result) => {
|
|
184
|
-
if (result.add.length || result.remove.length) {
|
|
185
|
-
this.setPreviouslySelectedCell();
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
this.agGrid.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, listenerEvent);
|
|
190
|
-
}
|
|
191
180
|
}
|
|
192
181
|
else {
|
|
193
182
|
const changedNodes = this.applyTransaction(this.mapTransaction(agTransaction, [operation]));
|
|
194
183
|
this.flashAddedCells(changedNodes.add);
|
|
195
|
-
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
196
|
-
this.setPreviouslySelectedCell();
|
|
197
|
-
}
|
|
198
184
|
}
|
|
199
185
|
}
|
|
200
|
-
setPreviouslySelectedCell() {
|
|
201
|
-
const previouslySelectedRowNode = this.agGrid.gridApi.getRowNode(this.agGrid.selectedRowId);
|
|
202
|
-
const previouslySelectedColId = this.agGrid.selectedColId;
|
|
203
|
-
if (!previouslySelectedRowNode || !previouslySelectedColId)
|
|
204
|
-
return;
|
|
205
|
-
DOM.queueUpdate(() => {
|
|
206
|
-
this.agGrid.gridApi.setFocusedCell(previouslySelectedRowNode.rowIndex, previouslySelectedColId);
|
|
207
|
-
this.agGrid.gridApi.ensureIndexVisible(previouslySelectedRowNode.rowIndex, 'middle');
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
186
|
applyTransaction(agTransaction) {
|
|
211
187
|
throw new Error('Method not implemented.');
|
|
212
188
|
}
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -92,12 +92,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
92
92
|
this.gridFontFace = defaultAgGridFontFace;
|
|
93
93
|
this.columnComponentName = 'grid-pro-column';
|
|
94
94
|
this.theme = AgGridTheme.alpine;
|
|
95
|
-
/**
|
|
96
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
97
|
-
* @remarks Defaults to false
|
|
98
|
-
* @alpha
|
|
99
|
-
*/
|
|
100
|
-
this.blockScrollingOnContextMenu = false;
|
|
101
95
|
this.rehydrationAttempted = false;
|
|
102
96
|
this.gridEventsQueue = [];
|
|
103
97
|
this.filterConfig = undefined;
|
|
@@ -276,7 +270,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
276
270
|
return;
|
|
277
271
|
this.agAttributes[attrName] = attribute.value;
|
|
278
272
|
});
|
|
279
|
-
const { columnDefs, components, defaultColDef,
|
|
273
|
+
const { columnDefs, components, defaultColDef, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFirstDataRendered"]);
|
|
280
274
|
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) => {
|
|
281
275
|
var _a, _b;
|
|
282
276
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
@@ -300,20 +294,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
300
294
|
if (onFirstDataRendered) {
|
|
301
295
|
onFirstDataRendered(event);
|
|
302
296
|
}
|
|
303
|
-
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback,
|
|
304
|
-
if (this.blockScrollingOnContextMenu) {
|
|
305
|
-
debugger;
|
|
306
|
-
this.selectedRowId = event.node.id;
|
|
307
|
-
this.selectedColId = event.colDef.colId;
|
|
308
|
-
this.addEventListener('click', (e) => {
|
|
309
|
-
this.selectedRowId = undefined;
|
|
310
|
-
this.selectedColId = undefined;
|
|
311
|
-
}, { once: true });
|
|
312
|
-
}
|
|
313
|
-
if (onCellContextMenu) {
|
|
314
|
-
onCellContextMenu(event);
|
|
315
|
-
}
|
|
316
|
-
} }), rest);
|
|
297
|
+
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
317
298
|
if (this.gridProDatasource) {
|
|
318
299
|
derivedOptions.columnDefs = columnDefs;
|
|
319
300
|
this.initGridOptions(derivedOptions, globalEventListener);
|
|
@@ -547,9 +528,6 @@ __decorate([
|
|
|
547
528
|
__decorate([
|
|
548
529
|
attr
|
|
549
530
|
], GridPro.prototype, "theme", void 0);
|
|
550
|
-
__decorate([
|
|
551
|
-
attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
|
|
552
|
-
], GridPro.prototype, "blockScrollingOnContextMenu", void 0);
|
|
553
531
|
__decorate([
|
|
554
532
|
observable
|
|
555
533
|
], GridPro.prototype, "classNames", void 0);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -8932,66 +8932,6 @@
|
|
|
8932
8932
|
"isProtected": false,
|
|
8933
8933
|
"isAbstract": false
|
|
8934
8934
|
},
|
|
8935
|
-
{
|
|
8936
|
-
"kind": "Property",
|
|
8937
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedColId:member",
|
|
8938
|
-
"docComment": "",
|
|
8939
|
-
"excerptTokens": [
|
|
8940
|
-
{
|
|
8941
|
-
"kind": "Content",
|
|
8942
|
-
"text": "selectedColId: "
|
|
8943
|
-
},
|
|
8944
|
-
{
|
|
8945
|
-
"kind": "Content",
|
|
8946
|
-
"text": "string"
|
|
8947
|
-
},
|
|
8948
|
-
{
|
|
8949
|
-
"kind": "Content",
|
|
8950
|
-
"text": ";"
|
|
8951
|
-
}
|
|
8952
|
-
],
|
|
8953
|
-
"isReadonly": false,
|
|
8954
|
-
"isOptional": false,
|
|
8955
|
-
"releaseTag": "Public",
|
|
8956
|
-
"name": "selectedColId",
|
|
8957
|
-
"propertyTypeTokenRange": {
|
|
8958
|
-
"startIndex": 1,
|
|
8959
|
-
"endIndex": 2
|
|
8960
|
-
},
|
|
8961
|
-
"isStatic": false,
|
|
8962
|
-
"isProtected": false,
|
|
8963
|
-
"isAbstract": false
|
|
8964
|
-
},
|
|
8965
|
-
{
|
|
8966
|
-
"kind": "Property",
|
|
8967
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedRowId:member",
|
|
8968
|
-
"docComment": "",
|
|
8969
|
-
"excerptTokens": [
|
|
8970
|
-
{
|
|
8971
|
-
"kind": "Content",
|
|
8972
|
-
"text": "selectedRowId: "
|
|
8973
|
-
},
|
|
8974
|
-
{
|
|
8975
|
-
"kind": "Content",
|
|
8976
|
-
"text": "string"
|
|
8977
|
-
},
|
|
8978
|
-
{
|
|
8979
|
-
"kind": "Content",
|
|
8980
|
-
"text": ";"
|
|
8981
|
-
}
|
|
8982
|
-
],
|
|
8983
|
-
"isReadonly": false,
|
|
8984
|
-
"isOptional": false,
|
|
8985
|
-
"releaseTag": "Public",
|
|
8986
|
-
"name": "selectedRowId",
|
|
8987
|
-
"propertyTypeTokenRange": {
|
|
8988
|
-
"startIndex": 1,
|
|
8989
|
-
"endIndex": 2
|
|
8990
|
-
},
|
|
8991
|
-
"isStatic": false,
|
|
8992
|
-
"isProtected": false,
|
|
8993
|
-
"isAbstract": false
|
|
8994
|
-
},
|
|
8995
8935
|
{
|
|
8996
8936
|
"kind": "Method",
|
|
8997
8937
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#statePersistanceEnabled:member(1)",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -38,9 +38,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
38
38
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
39
39
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
40
40
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
41
|
-
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
41
|
+
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
42
42
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
43
|
-
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
43
|
+
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
44
44
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
45
45
|
import { Session } from '@genesislcap/foundation-comms';
|
|
46
46
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
@@ -1231,12 +1231,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1231
1231
|
rowHeight: number;
|
|
1232
1232
|
theme: string;
|
|
1233
1233
|
themeChanged(oldValue: string, newValue: string): void;
|
|
1234
|
-
/**
|
|
1235
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
1236
|
-
* @remarks Defaults to false
|
|
1237
|
-
* @alpha
|
|
1238
|
-
*/
|
|
1239
|
-
blockScrollingOnContextMenu: boolean;
|
|
1240
1234
|
classNames: string;
|
|
1241
1235
|
agGrid: Grid;
|
|
1242
1236
|
gridSlot: HTMLSlotElement;
|
|
@@ -1251,8 +1245,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1251
1245
|
private rehydrationAttempted;
|
|
1252
1246
|
private gridEventsQueue;
|
|
1253
1247
|
private filterConfig;
|
|
1254
|
-
selectedRowId: string;
|
|
1255
|
-
selectedColId: string;
|
|
1256
1248
|
/**
|
|
1257
1249
|
* Injectable config that allows to change grid options on an app level basis
|
|
1258
1250
|
* To modify options, register instance of the config in DOM container that is
|
|
@@ -1372,6 +1364,20 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1372
1364
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
1373
1365
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1374
1366
|
readonly attributes: NamedNodeMap;
|
|
1367
|
+
/**
|
|
1368
|
+
* Injectable config that allows to change grid options on an app level basis
|
|
1369
|
+
* To modify options, register instance of the config in DOM container that is
|
|
1370
|
+
* above the grid or on the top level of the application, so it applies to all grids.
|
|
1371
|
+
*
|
|
1372
|
+
* @example
|
|
1373
|
+
* ```
|
|
1374
|
+
* DI.getOrCreateDOMContainer().register([
|
|
1375
|
+
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
1376
|
+
* headerHeight: 50,
|
|
1377
|
+
* }),
|
|
1378
|
+
* ]);
|
|
1379
|
+
* ```
|
|
1380
|
+
*/
|
|
1375
1381
|
readonly classList: DOMTokenList;
|
|
1376
1382
|
className: string;
|
|
1377
1383
|
readonly clientHeight: number;
|
|
@@ -1668,7 +1674,6 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
1668
1674
|
protected applyAllAgTransactions(): void;
|
|
1669
1675
|
private flashAddedCells;
|
|
1670
1676
|
private applyMappedAgTransaction;
|
|
1671
|
-
private setPreviouslySelectedCell;
|
|
1672
1677
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
1673
1678
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
1674
1679
|
/**
|
|
@@ -58,8 +58,6 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
58
58
|
| [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
|
|
59
59
|
| [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local storage. |
|
|
60
60
|
| [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
|
|
61
|
-
| [selectedColId](./grid-pro.gridpro.selectedcolid.md) | | string | |
|
|
62
|
-
| [selectedRowId](./grid-pro.gridpro.selectedrowid.md) | | string | |
|
|
63
61
|
| [statePersistence](./grid-pro.gridpro.statepersistence.md) | | [StatePersistence](./grid-pro.statepersistence.md) | |
|
|
64
62
|
| [theme](./grid-pro.gridpro.theme.md) | | string | |
|
|
65
63
|
|
package/docs/api-report.md
CHANGED
|
@@ -44,9 +44,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
44
44
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
45
45
|
import { MetadataDetail } from '@genesislcap/foundation-comms';
|
|
46
46
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
47
|
-
import { RowDataTransaction } from '@ag-grid-community/core';
|
|
47
|
+
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
48
48
|
import type { RowNodeTransaction } from '@ag-grid-community/core';
|
|
49
|
-
import { ServerSideTransaction } from '@ag-grid-community/core';
|
|
49
|
+
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
50
50
|
import type { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
51
51
|
import { Session } from '@genesislcap/foundation-comms';
|
|
52
52
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
@@ -806,8 +806,6 @@ export class GridPro extends GridPro_base {
|
|
|
806
806
|
asyncUpdate: boolean;
|
|
807
807
|
// (undocumented)
|
|
808
808
|
autoCellRendererByType: boolean;
|
|
809
|
-
// @alpha
|
|
810
|
-
blockScrollingOnContextMenu: boolean;
|
|
811
809
|
// (undocumented)
|
|
812
810
|
classNames: string;
|
|
813
811
|
// (undocumented)
|
|
@@ -862,10 +860,6 @@ export class GridPro extends GridPro_base {
|
|
|
862
860
|
// (undocumented)
|
|
863
861
|
rowHeight: number;
|
|
864
862
|
// (undocumented)
|
|
865
|
-
selectedColId: string;
|
|
866
|
-
// (undocumented)
|
|
867
|
-
selectedRowId: string;
|
|
868
|
-
// (undocumented)
|
|
869
863
|
statePersistanceEnabled(): boolean;
|
|
870
864
|
// (undocumented)
|
|
871
865
|
statePersistence: StatePersistence;
|
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.154.3-alpha-
|
|
4
|
+
"version": "14.154.3-alpha-7f7d442.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.154.3-alpha-
|
|
34
|
-
"@genesislcap/genx": "14.154.3-alpha-
|
|
35
|
-
"@genesislcap/rollup-builder": "14.154.3-alpha-
|
|
36
|
-
"@genesislcap/ts-builder": "14.154.3-alpha-
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.154.3-alpha-
|
|
38
|
-
"@genesislcap/vite-builder": "14.154.3-alpha-
|
|
39
|
-
"@genesislcap/webpack-builder": "14.154.3-alpha-
|
|
33
|
+
"@genesislcap/foundation-testing": "14.154.3-alpha-7f7d442.0",
|
|
34
|
+
"@genesislcap/genx": "14.154.3-alpha-7f7d442.0",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.154.3-alpha-7f7d442.0",
|
|
36
|
+
"@genesislcap/ts-builder": "14.154.3-alpha-7f7d442.0",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.154.3-alpha-7f7d442.0",
|
|
38
|
+
"@genesislcap/vite-builder": "14.154.3-alpha-7f7d442.0",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.154.3-alpha-7f7d442.0",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@genesislcap/foundation-comms": "14.154.3-alpha-
|
|
44
|
-
"@genesislcap/foundation-logger": "14.154.3-alpha-
|
|
45
|
-
"@genesislcap/foundation-ui": "14.154.3-alpha-
|
|
46
|
-
"@genesislcap/foundation-utils": "14.154.3-alpha-
|
|
43
|
+
"@genesislcap/foundation-comms": "14.154.3-alpha-7f7d442.0",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.154.3-alpha-7f7d442.0",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.154.3-alpha-7f7d442.0",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.154.3-alpha-7f7d442.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": "59fbb6e751367a05a5c025a82991366529d7b0f9"
|
|
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
|
-
```
|