@genesislcap/grid-pro 14.26.1 → 14.26.2-alpha-686a733.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.
|
@@ -323,6 +323,15 @@
|
|
|
323
323
|
"default": "false",
|
|
324
324
|
"description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef"
|
|
325
325
|
},
|
|
326
|
+
{
|
|
327
|
+
"kind": "field",
|
|
328
|
+
"name": "gridHasRendered",
|
|
329
|
+
"type": {
|
|
330
|
+
"text": "boolean"
|
|
331
|
+
},
|
|
332
|
+
"privacy": "private",
|
|
333
|
+
"default": "false"
|
|
334
|
+
},
|
|
326
335
|
{
|
|
327
336
|
"kind": "field",
|
|
328
337
|
"name": "persistColumnStateKey",
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -338,6 +338,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
338
338
|
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
339
339
|
*/
|
|
340
340
|
enableCellFlashing: boolean;
|
|
341
|
+
private gridHasRendered;
|
|
341
342
|
persistColumnStateKey: string;
|
|
342
343
|
/**
|
|
343
344
|
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,SAAS,EACT,OAAO,EAEP,WAAW,EACX,MAAM,EAKP,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAc/D,OAAO,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAO,CAAC,oBAAoB;IAa5B;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA4EnC;IAED,OAAO,CAAC,kBAAkB;IAiB1B,wBAAwB,CAAC,UAAU,GAAE,MAAM,EAAO;IAgClD,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"}
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -48,6 +48,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
48
48
|
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
49
49
|
*/
|
|
50
50
|
this.enableCellFlashing = false;
|
|
51
|
+
this.gridHasRendered = false;
|
|
51
52
|
/**
|
|
52
53
|
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
53
54
|
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
@@ -135,7 +136,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
135
136
|
return colState.map((col) => (Object.assign(Object.assign({}, col), { width: null })));
|
|
136
137
|
}
|
|
137
138
|
serialiseStoreTableConfig() {
|
|
138
|
-
if (this.rehydrationAttempted
|
|
139
|
+
if (!this.rehydrationAttempted)
|
|
140
|
+
return;
|
|
141
|
+
if (this.gridHasRendered && this.statePersistanceEnabled()) {
|
|
139
142
|
const existingOptions = JSON.parse(this.session.getLocalStorageItem('gridOptions') || '{}');
|
|
140
143
|
let colState = this.agGridOptions.columnApi.getColumnState();
|
|
141
144
|
colState = this.gridAutosizingEnabled
|
|
@@ -192,10 +195,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
192
195
|
params,
|
|
193
196
|
gridId: this.id,
|
|
194
197
|
});
|
|
195
|
-
rehydrateTableConfig();
|
|
196
198
|
this.debouncedColumnAutosize.bind(this)();
|
|
197
199
|
}, onFirstDataRendered: () => {
|
|
198
200
|
this.enableFlashingRows.bind(this);
|
|
201
|
+
rehydrateTableConfig();
|
|
202
|
+
this.gridHasRendered = true;
|
|
199
203
|
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
200
204
|
this.agGridOptions = Object.assign(Object.assign({}, this.agGridOptions), ComponentUtil.copyAttributesToGridOptions(derivedOptions, this.agAttributes));
|
|
201
205
|
const gridParams = {
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -794,6 +794,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
794
794
|
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
795
795
|
*/
|
|
796
796
|
enableCellFlashing: boolean;
|
|
797
|
+
private gridHasRendered;
|
|
797
798
|
persistColumnStateKey: string;
|
|
798
799
|
/**
|
|
799
800
|
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
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.26.
|
|
4
|
+
"version": "14.26.2-alpha-686a733.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"serve": "genx serve"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@genesislcap/foundation-testing": "
|
|
25
|
-
"@genesislcap/genx": "
|
|
24
|
+
"@genesislcap/foundation-testing": "14.26.2-alpha-686a733.0",
|
|
25
|
+
"@genesislcap/genx": "14.26.2-alpha-686a733.0",
|
|
26
26
|
"@playwright/test": "^1.18.1",
|
|
27
27
|
"bulma": "^0.9.3",
|
|
28
28
|
"c8": "^7.11.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"watchlist": "^0.3.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@genesislcap/foundation-comms": "
|
|
42
|
-
"@genesislcap/foundation-ui": "
|
|
43
|
-
"@genesislcap/foundation-utils": "
|
|
41
|
+
"@genesislcap/foundation-comms": "14.26.2-alpha-686a733.0",
|
|
42
|
+
"@genesislcap/foundation-ui": "14.26.2-alpha-686a733.0",
|
|
43
|
+
"@genesislcap/foundation-utils": "14.26.2-alpha-686a733.0",
|
|
44
44
|
"@microsoft/fast-colors": "^5.1.4",
|
|
45
45
|
"@microsoft/fast-components": "^2.21.3",
|
|
46
46
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
68
|
"customElements": "dist/custom-elements.json",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "e54b94876fe454ababd1b3ee96f5389e5bce0ba3"
|
|
70
70
|
}
|