@genesislcap/grid-pro 14.107.1-alpha-2ab4599.0 → 14.107.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 +24 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +1 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +7 -6
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +19 -10
- package/dist/esm/grid-pro.js +1 -25
- package/dist/grid-pro.api.json +1 -1
- package/dist/grid-pro.d.ts +8 -6
- package/docs/api/grid-pro.gridpro.enablerowflashing.md +0 -5
- package/package.json +8 -8
|
@@ -637,11 +637,6 @@
|
|
|
637
637
|
},
|
|
638
638
|
"readonly": true
|
|
639
639
|
},
|
|
640
|
-
{
|
|
641
|
-
"kind": "method",
|
|
642
|
-
"name": "enableFlashingRows",
|
|
643
|
-
"privacy": "private"
|
|
644
|
-
},
|
|
645
640
|
{
|
|
646
641
|
"kind": "method",
|
|
647
642
|
"name": "applyTemplateDefinitions",
|
|
@@ -5557,6 +5552,20 @@
|
|
|
5557
5552
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
5558
5553
|
}
|
|
5559
5554
|
},
|
|
5555
|
+
{
|
|
5556
|
+
"kind": "method",
|
|
5557
|
+
"name": "flashAddedCells",
|
|
5558
|
+
"privacy": "private",
|
|
5559
|
+
"parameters": [
|
|
5560
|
+
{
|
|
5561
|
+
"name": "rowNodes"
|
|
5562
|
+
}
|
|
5563
|
+
],
|
|
5564
|
+
"inheritedFrom": {
|
|
5565
|
+
"name": "GridProGenesisDatasource",
|
|
5566
|
+
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
5567
|
+
}
|
|
5568
|
+
},
|
|
5560
5569
|
{
|
|
5561
5570
|
"kind": "method",
|
|
5562
5571
|
"name": "applyMappedAgTransaction",
|
|
@@ -7754,6 +7763,16 @@
|
|
|
7754
7763
|
"name": "applyAllAgTransactions",
|
|
7755
7764
|
"privacy": "private"
|
|
7756
7765
|
},
|
|
7766
|
+
{
|
|
7767
|
+
"kind": "method",
|
|
7768
|
+
"name": "flashAddedCells",
|
|
7769
|
+
"privacy": "private",
|
|
7770
|
+
"parameters": [
|
|
7771
|
+
{
|
|
7772
|
+
"name": "rowNodes"
|
|
7773
|
+
}
|
|
7774
|
+
]
|
|
7775
|
+
},
|
|
7757
7776
|
{
|
|
7758
7777
|
"kind": "method",
|
|
7759
7778
|
"name": "applyMappedAgTransaction",
|
|
@@ -446,6 +446,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
446
446
|
private applyRequestServerData;
|
|
447
447
|
private applyDataserverData;
|
|
448
448
|
private applyAllAgTransactions;
|
|
449
|
+
private flashAddedCells;
|
|
449
450
|
private applyMappedAgTransaction;
|
|
450
451
|
/**
|
|
451
452
|
* Maps the transaction data to the row data mapper function, if it exists.
|
|
@@ -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":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAgBtE;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IAKP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAgBlB;;;;;OAKG;YACW,kBAAkB;IAWhC;;;;;;OAMG;YACW,gBAAgB;IA4C9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,wBAAwB;
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAgBtE;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CA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;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAqBhC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA4DvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -19,10 +19,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
19
19
|
cloneNode(deep?: boolean): Node;
|
|
20
20
|
deepClone(): Node;
|
|
21
21
|
readonly shouldRunDisconnect: boolean;
|
|
22
|
-
readonly shouldRunConnect: boolean;
|
|
23
|
-
* Whether to use the `applyTransactionAsync` function for *update* transactions
|
|
24
|
-
* @remarks Defaults to true
|
|
25
|
-
*/
|
|
22
|
+
readonly shouldRunConnect: boolean;
|
|
26
23
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
27
24
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
28
25
|
connectedCallback(): void;
|
|
@@ -108,6 +105,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
108
105
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
109
106
|
removeAttributeNode(attr: Attr): Attr;
|
|
110
107
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Gets the saved grid ColumnState[] from local storage
|
|
110
|
+
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
111
|
+
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
111
114
|
requestPointerLock(): void;
|
|
112
115
|
scroll(options?: ScrollToOptions): void;
|
|
113
116
|
scroll(x: number, y: number): void;
|
|
@@ -391,7 +394,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
391
394
|
enabledRowFlashing: boolean;
|
|
392
395
|
/**
|
|
393
396
|
* If true, will enable row flashing for all rows for `add` async transactions
|
|
394
|
-
* @remarks Requires `asyncAdd` to be `true`
|
|
395
397
|
*/
|
|
396
398
|
enableRowFlashing: boolean;
|
|
397
399
|
/**
|
|
@@ -450,7 +452,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
450
452
|
get gridOptions(): GridOptions;
|
|
451
453
|
get gridProDatasource(): GridProBaseDatasource;
|
|
452
454
|
set gridOptions(options: GridOptions);
|
|
453
|
-
private enableFlashingRows;
|
|
454
455
|
/**
|
|
455
456
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
456
457
|
* @deprecated use `applyTemplateDefinitions` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAiB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AAS9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B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;;;;OAQG;IACH,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IA+CnF,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"}
|
|
@@ -214,16 +214,16 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
214
214
|
* @internal
|
|
215
215
|
*/
|
|
216
216
|
setRowData(rowData) {
|
|
217
|
-
var _a
|
|
217
|
+
var _a;
|
|
218
218
|
const preSetColumnDefs = (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.getColumnDefs();
|
|
219
219
|
if (!preSetColumnDefs || preSetColumnDefs.length === 0) {
|
|
220
220
|
const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
|
|
221
221
|
if (agColumnDefs) {
|
|
222
|
-
|
|
222
|
+
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
const data = this.rowDataMapper ? this.rowDataMapper(rowData) : rowData;
|
|
226
|
-
|
|
226
|
+
this.agGrid.gridApi.setRowData(data);
|
|
227
227
|
this.requiresFullRowDataAndColDefs = false;
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
@@ -233,7 +233,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
233
233
|
* @internal
|
|
234
234
|
*/
|
|
235
235
|
reloadResourceData() {
|
|
236
|
-
var _a;
|
|
236
|
+
var _a, _b;
|
|
237
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
238
|
if (this.dataSub) {
|
|
239
239
|
this.dataSub.unsubscribe();
|
|
@@ -241,7 +241,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
241
241
|
}
|
|
242
242
|
this.dataLogoff();
|
|
243
243
|
this.clearRowData(withoutColumnDefs);
|
|
244
|
-
(_a = this.agGrid
|
|
244
|
+
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.showLoadingOverlay();
|
|
245
245
|
this.loadResourceData(withoutFullInit);
|
|
246
246
|
});
|
|
247
247
|
}
|
|
@@ -374,11 +374,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
374
374
|
this.applyAllAgTransactions();
|
|
375
375
|
}
|
|
376
376
|
applyAllAgTransactions() {
|
|
377
|
-
var _a;
|
|
378
377
|
if (!this.agTransaction.add.length &&
|
|
379
378
|
!this.agTransaction.update.length &&
|
|
380
379
|
!this.agTransaction.remove.length) {
|
|
381
|
-
|
|
380
|
+
this.agGrid.gridApi.showNoRowsOverlay();
|
|
382
381
|
return;
|
|
383
382
|
}
|
|
384
383
|
if (this.agTransaction.add.length > 0) {
|
|
@@ -391,10 +390,20 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
391
390
|
this.applyMappedAgTransaction({ update: this.agTransaction.update }, OperationType.Update, this.agGrid.asyncUpdate);
|
|
392
391
|
}
|
|
393
392
|
}
|
|
393
|
+
flashAddedCells(rowNodes) {
|
|
394
|
+
if (this.agGrid.enableRowFlashing && rowNodes.length) {
|
|
395
|
+
this.agGrid.gridApi.flashCells({ rowNodes });
|
|
396
|
+
}
|
|
397
|
+
}
|
|
394
398
|
applyMappedAgTransaction(agTransaction, operation, isAsync) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
399
|
+
if (isAsync) {
|
|
400
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
|
|
401
|
+
this.flashAddedCells(changedNodes.add);
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
const changedNodes = this.agGrid.gridApi.applyTransaction(this.mapTransaction(agTransaction, [operation]));
|
|
406
|
+
this.flashAddedCells(changedNodes.add);
|
|
398
407
|
}
|
|
399
408
|
}
|
|
400
409
|
/**
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __rest } from "tslib";
|
|
2
2
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
3
|
-
import { ComponentUtil,
|
|
3
|
+
import { ComponentUtil, Grid, ModuleRegistry } from '@ag-grid-community/core';
|
|
4
4
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
|
5
5
|
import { Session } from '@genesislcap/foundation-comms';
|
|
6
6
|
import { insertDocumentCSSRule, LifecycleMixin, respondToVisibility, } from '@genesislcap/foundation-utils';
|
|
@@ -90,7 +90,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
90
90
|
this.enabledRowFlashing = false;
|
|
91
91
|
/**
|
|
92
92
|
* If true, will enable row flashing for all rows for `add` async transactions
|
|
93
|
-
* @remarks Requires `asyncAdd` to be `true`
|
|
94
93
|
*/
|
|
95
94
|
this.enableRowFlashing = false;
|
|
96
95
|
this.gridFontFace = defaultAgGridFontFace;
|
|
@@ -108,7 +107,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
108
107
|
connectedCallback() {
|
|
109
108
|
super.connectedCallback();
|
|
110
109
|
this.rehydrationAttempted = false;
|
|
111
|
-
this.initialised = false;
|
|
112
110
|
if (this.gridAutosizingEnabled) {
|
|
113
111
|
respondToVisibility(this, (gridVisible) => {
|
|
114
112
|
if (gridVisible) {
|
|
@@ -136,8 +134,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
136
134
|
if (!this.shouldRunDisconnect)
|
|
137
135
|
return;
|
|
138
136
|
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
139
|
-
this.gridApi = null;
|
|
140
|
-
this.columnApi = null;
|
|
141
137
|
}
|
|
142
138
|
combineAllGridComponents(gridOptionsComponents) {
|
|
143
139
|
const defaultFoundationAgComponents = {
|
|
@@ -270,7 +266,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
270
266
|
this.restoreColumnState.bind(this)();
|
|
271
267
|
this.debouncedColumnAutosize.bind(this)();
|
|
272
268
|
}, onFirstDataRendered: (event) => {
|
|
273
|
-
this.enableFlashingRows.bind(this)();
|
|
274
269
|
this.restoreCachedFilterConfig.bind(this)();
|
|
275
270
|
if (onFirstDataRendered) {
|
|
276
271
|
onFirstDataRendered(event);
|
|
@@ -298,25 +293,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
298
293
|
this.initialised = true;
|
|
299
294
|
});
|
|
300
295
|
}
|
|
301
|
-
enableFlashingRows() {
|
|
302
|
-
var _a;
|
|
303
|
-
if (this.enableRowFlashing || this.enabledRowFlashing) {
|
|
304
|
-
if (!this.asyncAdd) {
|
|
305
|
-
logger.warn('Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled');
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, (e) => {
|
|
309
|
-
e.results.forEach((result) => {
|
|
310
|
-
var _a;
|
|
311
|
-
if (result.add.length) {
|
|
312
|
-
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.flashCells({
|
|
313
|
-
rowNodes: result.add,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
296
|
/**
|
|
321
297
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
322
298
|
* @deprecated use `applyTemplateDefinitions` instead.
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -6993,7 +6993,7 @@
|
|
|
6993
6993
|
{
|
|
6994
6994
|
"kind": "Property",
|
|
6995
6995
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#enableRowFlashing:member",
|
|
6996
|
-
"docComment": "/**\n * If true, will enable row flashing for all rows for `add` async transactions\n
|
|
6996
|
+
"docComment": "/**\n * If true, will enable row flashing for all rows for `add` async transactions\n */\n",
|
|
6997
6997
|
"excerptTokens": [
|
|
6998
6998
|
{
|
|
6999
6999
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1004,7 +1004,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1004
1004
|
enabledRowFlashing: boolean;
|
|
1005
1005
|
/**
|
|
1006
1006
|
* If true, will enable row flashing for all rows for `add` async transactions
|
|
1007
|
-
* @remarks Requires `asyncAdd` to be `true`
|
|
1008
1007
|
*/
|
|
1009
1008
|
enableRowFlashing: boolean;
|
|
1010
1009
|
/**
|
|
@@ -1063,7 +1062,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
1063
1062
|
get gridOptions(): GridOptions;
|
|
1064
1063
|
get gridProDatasource(): GridProBaseDatasource;
|
|
1065
1064
|
set gridOptions(options: GridOptions);
|
|
1066
|
-
private enableFlashingRows;
|
|
1067
1065
|
/**
|
|
1068
1066
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1069
1067
|
* @deprecated use `applyTemplateDefinitions` instead.
|
|
@@ -1099,10 +1097,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1099
1097
|
cloneNode(deep?: boolean): Node;
|
|
1100
1098
|
deepClone(): Node;
|
|
1101
1099
|
readonly shouldRunDisconnect: boolean;
|
|
1102
|
-
readonly shouldRunConnect: boolean;
|
|
1103
|
-
* Whether to use the `applyTransactionAsync` function for *update* transactions
|
|
1104
|
-
* @remarks Defaults to true
|
|
1105
|
-
*/
|
|
1100
|
+
readonly shouldRunConnect: boolean;
|
|
1106
1101
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
1107
1102
|
"__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
1108
1103
|
connectedCallback(): void;
|
|
@@ -1188,6 +1183,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1188
1183
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
1189
1184
|
removeAttributeNode(attr: Attr): Attr;
|
|
1190
1185
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Gets the saved grid ColumnState[] from local storage
|
|
1188
|
+
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
1189
|
+
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
1190
|
+
* @public
|
|
1191
|
+
*/
|
|
1191
1192
|
requestPointerLock(): void;
|
|
1192
1193
|
scroll(options?: ScrollToOptions): void;
|
|
1193
1194
|
scroll(x: number, y: number): void;
|
|
@@ -1591,6 +1592,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1591
1592
|
private applyRequestServerData;
|
|
1592
1593
|
private applyDataserverData;
|
|
1593
1594
|
private applyAllAgTransactions;
|
|
1595
|
+
private flashAddedCells;
|
|
1594
1596
|
private applyMappedAgTransaction;
|
|
1595
1597
|
/**
|
|
1596
1598
|
* Maps the transaction data to the row data mapper function, if it exists.
|
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.107.1
|
|
4
|
+
"version": "14.107.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.107.1
|
|
34
|
-
"@genesislcap/genx": "14.107.1
|
|
33
|
+
"@genesislcap/foundation-testing": "14.107.1",
|
|
34
|
+
"@genesislcap/genx": "14.107.1",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.107.1
|
|
39
|
-
"@genesislcap/foundation-logger": "14.107.1
|
|
40
|
-
"@genesislcap/foundation-ui": "14.107.1
|
|
41
|
-
"@genesislcap/foundation-utils": "14.107.1
|
|
38
|
+
"@genesislcap/foundation-comms": "14.107.1",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.107.1",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.107.1",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.107.1",
|
|
42
42
|
"@microsoft/fast-colors": "^5.1.4",
|
|
43
43
|
"@microsoft/fast-components": "^2.21.3",
|
|
44
44
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"customElements": "dist/custom-elements.json",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "afc294d9a52a1eac3286416444bfd29c18910490"
|
|
66
66
|
}
|