@genesislcap/grid-pro 14.146.1-alpha-0d80785.0 → 14.146.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 +375 -439
- 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 +0 -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 +2 -11
- package/docs/api/grid-pro.gridpro.md +0 -2
- package/docs/api-report.md +2 -8
- package/package.json +8 -8
- package/docs/api/grid-pro.gridpro.selectedcolid.md +0 -11
- package/docs/api/grid-pro.gridpro.selectedrowid.md +0 -11
|
@@ -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":"AA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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
|
@@ -400,12 +400,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
400
400
|
rowHeight: number;
|
|
401
401
|
theme: string;
|
|
402
402
|
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
403
|
classNames: string;
|
|
410
404
|
agGrid: Grid;
|
|
411
405
|
gridSlot: HTMLSlotElement;
|
|
@@ -419,8 +413,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
419
413
|
private rehydrationAttempted;
|
|
420
414
|
private gridEventsQueue;
|
|
421
415
|
private filterConfig;
|
|
422
|
-
selectedRowId: string;
|
|
423
|
-
selectedColId: string;
|
|
424
416
|
/**
|
|
425
417
|
* Injectable config that allows to change grid options on an app level basis
|
|
426
418
|
* 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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM9D;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,YAAiC;IAChD,SAAS,EAAG,SAAS,CAAC;IACtB,OAAO,EAAG,OAAO,CAAC;IACrB,OAAO,CAAC,OAAO,CAAU;IAElC;;;OAGG;IACH,OAAO,CAA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,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 } 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
|
@@ -96,12 +96,6 @@ 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;
|
|
106
100
|
this.gridEventsQueue = [];
|
|
107
101
|
this.filterConfig = undefined;
|
|
@@ -278,7 +272,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
278
272
|
return;
|
|
279
273
|
this.agAttributes[attrName] = attribute.value;
|
|
280
274
|
});
|
|
281
|
-
const { columnDefs, components, defaultColDef,
|
|
275
|
+
const { columnDefs, components, defaultColDef, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFirstDataRendered"]);
|
|
282
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) => {
|
|
283
277
|
var _a, _b;
|
|
284
278
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
@@ -302,20 +296,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
302
296
|
if (onFirstDataRendered) {
|
|
303
297
|
onFirstDataRendered(event);
|
|
304
298
|
}
|
|
305
|
-
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback,
|
|
306
|
-
if (this.blockScrollingOnContextMenu) {
|
|
307
|
-
debugger;
|
|
308
|
-
this.selectedRowId = event.node.id;
|
|
309
|
-
this.selectedColId = event.colDef.colId;
|
|
310
|
-
this.addEventListener('click', (e) => {
|
|
311
|
-
this.selectedRowId = undefined;
|
|
312
|
-
this.selectedColId = undefined;
|
|
313
|
-
}, { once: true });
|
|
314
|
-
}
|
|
315
|
-
if (onCellContextMenu) {
|
|
316
|
-
onCellContextMenu(event);
|
|
317
|
-
}
|
|
318
|
-
} }), rest);
|
|
299
|
+
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
319
300
|
if (this.gridProDatasource) {
|
|
320
301
|
derivedOptions.columnDefs = columnDefs;
|
|
321
302
|
}
|
|
@@ -527,9 +508,6 @@ __decorate([
|
|
|
527
508
|
__decorate([
|
|
528
509
|
attr
|
|
529
510
|
], GridPro.prototype, "theme", void 0);
|
|
530
|
-
__decorate([
|
|
531
|
-
attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
|
|
532
|
-
], GridPro.prototype, "blockScrollingOnContextMenu", void 0);
|
|
533
511
|
__decorate([
|
|
534
512
|
observable
|
|
535
513
|
], GridPro.prototype, "classNames", void 0);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -8774,66 +8774,6 @@
|
|
|
8774
8774
|
"isProtected": false,
|
|
8775
8775
|
"isAbstract": false
|
|
8776
8776
|
},
|
|
8777
|
-
{
|
|
8778
|
-
"kind": "Property",
|
|
8779
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedColId:member",
|
|
8780
|
-
"docComment": "",
|
|
8781
|
-
"excerptTokens": [
|
|
8782
|
-
{
|
|
8783
|
-
"kind": "Content",
|
|
8784
|
-
"text": "selectedColId: "
|
|
8785
|
-
},
|
|
8786
|
-
{
|
|
8787
|
-
"kind": "Content",
|
|
8788
|
-
"text": "string"
|
|
8789
|
-
},
|
|
8790
|
-
{
|
|
8791
|
-
"kind": "Content",
|
|
8792
|
-
"text": ";"
|
|
8793
|
-
}
|
|
8794
|
-
],
|
|
8795
|
-
"isReadonly": false,
|
|
8796
|
-
"isOptional": false,
|
|
8797
|
-
"releaseTag": "Public",
|
|
8798
|
-
"name": "selectedColId",
|
|
8799
|
-
"propertyTypeTokenRange": {
|
|
8800
|
-
"startIndex": 1,
|
|
8801
|
-
"endIndex": 2
|
|
8802
|
-
},
|
|
8803
|
-
"isStatic": false,
|
|
8804
|
-
"isProtected": false,
|
|
8805
|
-
"isAbstract": false
|
|
8806
|
-
},
|
|
8807
|
-
{
|
|
8808
|
-
"kind": "Property",
|
|
8809
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#selectedRowId:member",
|
|
8810
|
-
"docComment": "",
|
|
8811
|
-
"excerptTokens": [
|
|
8812
|
-
{
|
|
8813
|
-
"kind": "Content",
|
|
8814
|
-
"text": "selectedRowId: "
|
|
8815
|
-
},
|
|
8816
|
-
{
|
|
8817
|
-
"kind": "Content",
|
|
8818
|
-
"text": "string"
|
|
8819
|
-
},
|
|
8820
|
-
{
|
|
8821
|
-
"kind": "Content",
|
|
8822
|
-
"text": ";"
|
|
8823
|
-
}
|
|
8824
|
-
],
|
|
8825
|
-
"isReadonly": false,
|
|
8826
|
-
"isOptional": false,
|
|
8827
|
-
"releaseTag": "Public",
|
|
8828
|
-
"name": "selectedRowId",
|
|
8829
|
-
"propertyTypeTokenRange": {
|
|
8830
|
-
"startIndex": 1,
|
|
8831
|
-
"endIndex": 2
|
|
8832
|
-
},
|
|
8833
|
-
"isStatic": false,
|
|
8834
|
-
"isProtected": false,
|
|
8835
|
-
"isAbstract": false
|
|
8836
|
-
},
|
|
8837
8777
|
{
|
|
8838
8778
|
"kind": "Method",
|
|
8839
8779
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#statePersistanceEnabled:member(1)",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -37,9 +37,9 @@ 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
44
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
45
45
|
import { Swatch } from '@microsoft/fast-components';
|
|
@@ -1205,12 +1205,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1205
1205
|
rowHeight: number;
|
|
1206
1206
|
theme: string;
|
|
1207
1207
|
themeChanged(oldValue: string, newValue: string): void;
|
|
1208
|
-
/**
|
|
1209
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
1210
|
-
* @remarks Defaults to false
|
|
1211
|
-
* @alpha
|
|
1212
|
-
*/
|
|
1213
|
-
blockScrollingOnContextMenu: boolean;
|
|
1214
1208
|
classNames: string;
|
|
1215
1209
|
agGrid: Grid;
|
|
1216
1210
|
gridSlot: HTMLSlotElement;
|
|
@@ -1224,8 +1218,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1224
1218
|
private rehydrationAttempted;
|
|
1225
1219
|
private gridEventsQueue;
|
|
1226
1220
|
private filterConfig;
|
|
1227
|
-
selectedRowId: string;
|
|
1228
|
-
selectedColId: string;
|
|
1229
1221
|
/**
|
|
1230
1222
|
* Injectable config that allows to change grid options on an app level basis
|
|
1231
1223
|
* To modify options, register instance of the config in DOM container that is
|
|
@@ -1640,7 +1632,6 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
1640
1632
|
protected applyAllAgTransactions(): void;
|
|
1641
1633
|
private flashAddedCells;
|
|
1642
1634
|
private applyMappedAgTransaction;
|
|
1643
|
-
private setPreviouslySelectedCell;
|
|
1644
1635
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
1645
1636
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
1646
1637
|
/**
|
|
@@ -57,8 +57,6 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
57
57
|
| [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
|
|
58
58
|
| [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local storage. |
|
|
59
59
|
| [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
|
|
60
|
-
| [selectedColId](./grid-pro.gridpro.selectedcolid.md) | | string | |
|
|
61
|
-
| [selectedRowId](./grid-pro.gridpro.selectedrowid.md) | | string | |
|
|
62
60
|
| [theme](./grid-pro.gridpro.theme.md) | | string | |
|
|
63
61
|
|
|
64
62
|
## Methods
|
package/docs/api-report.md
CHANGED
|
@@ -43,9 +43,9 @@ 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
50
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
51
51
|
import { Swatch } from '@microsoft/fast-components';
|
|
@@ -798,8 +798,6 @@ export class GridPro extends GridPro_base {
|
|
|
798
798
|
asyncUpdate: boolean;
|
|
799
799
|
// (undocumented)
|
|
800
800
|
autoCellRendererByType: boolean;
|
|
801
|
-
// @alpha
|
|
802
|
-
blockScrollingOnContextMenu: boolean;
|
|
803
801
|
// (undocumented)
|
|
804
802
|
classNames: string;
|
|
805
803
|
// (undocumented)
|
|
@@ -853,10 +851,6 @@ export class GridPro extends GridPro_base {
|
|
|
853
851
|
// (undocumented)
|
|
854
852
|
rowHeight: number;
|
|
855
853
|
// (undocumented)
|
|
856
|
-
selectedColId: string;
|
|
857
|
-
// (undocumented)
|
|
858
|
-
selectedRowId: string;
|
|
859
|
-
// (undocumented)
|
|
860
854
|
statePersistanceEnabled(): boolean;
|
|
861
855
|
// (undocumented)
|
|
862
856
|
theme: string;
|
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.146.1
|
|
4
|
+
"version": "14.146.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.146.1
|
|
34
|
-
"@genesislcap/genx": "14.146.1
|
|
33
|
+
"@genesislcap/foundation-testing": "14.146.1",
|
|
34
|
+
"@genesislcap/genx": "14.146.1",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.146.1
|
|
39
|
-
"@genesislcap/foundation-logger": "14.146.1
|
|
40
|
-
"@genesislcap/foundation-ui": "14.146.1
|
|
41
|
-
"@genesislcap/foundation-utils": "14.146.1
|
|
38
|
+
"@genesislcap/foundation-comms": "14.146.1",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.146.1",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.146.1",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.146.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": "9b5c011341bdf33e644021b7ad5839079400b510"
|
|
66
66
|
}
|
|
@@ -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
|
-
```
|