@fluxhub/fluxhub-lib 18.0.31 → 18.0.32
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/esm2022/lib/controls/fh-grid.mjs +14 -2
- package/esm2022/lib/controls/fh-gridn.mjs +14 -2
- package/esm2022/lib/controls/fh-win-grid-selection.mjs +7 -1
- package/esm2022/lib/controls/grid_editors/fh-grid.mjs +14 -2
- package/fesm2022/fluxhub-fluxhub-lib.mjs +45 -3
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8944,9 +8944,15 @@ class FHGridComponent {
|
|
|
8944
8944
|
return;
|
|
8945
8945
|
setTimeout(() => {
|
|
8946
8946
|
//get columns size
|
|
8947
|
+
// se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
|
|
8948
|
+
// getColumnState() torna undefined
|
|
8947
8949
|
let go = this.gridApi;
|
|
8948
|
-
if (go.
|
|
8950
|
+
if (!go || go.isDestroyed?.())
|
|
8951
|
+
return;
|
|
8952
|
+
if (go.getColumnState()?.[0]?.width < 24) {
|
|
8949
8953
|
setTimeout(() => {
|
|
8954
|
+
if (this.gridApi?.isDestroyed?.())
|
|
8955
|
+
return;
|
|
8950
8956
|
this.autoSizeAll();
|
|
8951
8957
|
}, 1000);
|
|
8952
8958
|
}
|
|
@@ -9902,6 +9908,9 @@ class FHGridComponent {
|
|
|
9902
9908
|
}
|
|
9903
9909
|
show_pulisci_filtri = false;
|
|
9904
9910
|
autoSizeAll() {
|
|
9911
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
9912
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
9913
|
+
return;
|
|
9905
9914
|
//console.log("🚀 ~ file: fhgrid.ts ~ line 1380 ~ FHGridComponent ~ autoSizeAll ~ autoSizeAll")
|
|
9906
9915
|
if (this.gridOptions == null)
|
|
9907
9916
|
return;
|
|
@@ -9922,6 +9931,9 @@ class FHGridComponent {
|
|
|
9922
9931
|
this.save_cfg();
|
|
9923
9932
|
}
|
|
9924
9933
|
fitSizeAll() {
|
|
9934
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
9935
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
9936
|
+
return;
|
|
9925
9937
|
console.log("🚀 ~ FHGridInternalComponent ~ fitSizeAll ~ fitSizeAll:", this.gridApi);
|
|
9926
9938
|
if (this.gridApi)
|
|
9927
9939
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -11666,9 +11678,15 @@ class FHGridComponentN {
|
|
|
11666
11678
|
return;
|
|
11667
11679
|
setTimeout(() => {
|
|
11668
11680
|
//get columns size
|
|
11681
|
+
// se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
|
|
11682
|
+
// getColumnState() torna undefined
|
|
11669
11683
|
let go = this.gridApi;
|
|
11670
|
-
if (go.
|
|
11684
|
+
if (!go || go.isDestroyed?.())
|
|
11685
|
+
return;
|
|
11686
|
+
if (go.getColumnState()?.[0]?.width < 24) {
|
|
11671
11687
|
setTimeout(() => {
|
|
11688
|
+
if (this.gridApi?.isDestroyed?.())
|
|
11689
|
+
return;
|
|
11672
11690
|
this.autoSizeAll();
|
|
11673
11691
|
}, 1000);
|
|
11674
11692
|
}
|
|
@@ -12528,6 +12546,9 @@ class FHGridComponentN {
|
|
|
12528
12546
|
}
|
|
12529
12547
|
show_pulisci_filtri = false;
|
|
12530
12548
|
autoSizeAll() {
|
|
12549
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
12550
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
12551
|
+
return;
|
|
12531
12552
|
console.log("🚀 ~ file: fhgridn.ts:1121 ~ FHGridComponentN ~ autoSizeAll ~ autoSizeAll:");
|
|
12532
12553
|
if (this.gridOptions == null)
|
|
12533
12554
|
return;
|
|
@@ -12548,6 +12569,9 @@ class FHGridComponentN {
|
|
|
12548
12569
|
this.save_cfg();
|
|
12549
12570
|
}
|
|
12550
12571
|
fitSizeAll() {
|
|
12572
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
12573
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
12574
|
+
return;
|
|
12551
12575
|
console.log("🚀 ~ FHGridInternalComponent ~ fitSizeAll ~ fitSizeAll:", this.gridApi);
|
|
12552
12576
|
if (this.gridApi)
|
|
12553
12577
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -25103,6 +25127,9 @@ class fh_win_grid_selection {
|
|
|
25103
25127
|
}, 100);
|
|
25104
25128
|
}
|
|
25105
25129
|
autoSizeAll() {
|
|
25130
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
25131
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
25132
|
+
return;
|
|
25106
25133
|
if (this.gridOptions == null)
|
|
25107
25134
|
return;
|
|
25108
25135
|
if (this.gridApi == null)
|
|
@@ -25121,6 +25148,9 @@ class fh_win_grid_selection {
|
|
|
25121
25148
|
}
|
|
25122
25149
|
}
|
|
25123
25150
|
fitSizeAll() {
|
|
25151
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
25152
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
25153
|
+
return;
|
|
25124
25154
|
// console.log("🚀 ~ FHGridInternalComponent ~ fitSizeAll ~ fitSizeAll:",this.gridApi)
|
|
25125
25155
|
if (this.gridApi)
|
|
25126
25156
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -26387,9 +26417,15 @@ class FHGridInternalComponent {
|
|
|
26387
26417
|
return;
|
|
26388
26418
|
setTimeout(() => {
|
|
26389
26419
|
//get columns size
|
|
26420
|
+
// se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
|
|
26421
|
+
// getColumnState() torna undefined
|
|
26390
26422
|
let go = this.gridApi;
|
|
26391
|
-
if (go.
|
|
26423
|
+
if (!go || go.isDestroyed?.())
|
|
26424
|
+
return;
|
|
26425
|
+
if (go.getColumnState()?.[0]?.width < 24) {
|
|
26392
26426
|
setTimeout(() => {
|
|
26427
|
+
if (this.gridApi?.isDestroyed?.())
|
|
26428
|
+
return;
|
|
26393
26429
|
this.autoSizeAll();
|
|
26394
26430
|
}, 1000);
|
|
26395
26431
|
}
|
|
@@ -27341,6 +27377,9 @@ class FHGridInternalComponent {
|
|
|
27341
27377
|
}
|
|
27342
27378
|
show_pulisci_filtri = false;
|
|
27343
27379
|
autoSizeAll() {
|
|
27380
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
27381
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
27382
|
+
return;
|
|
27344
27383
|
//console.log("🚀 ~ file: fhgrid.ts ~ line 1380 ~ FHGridComponent ~ autoSizeAll ~ autoSizeAll")
|
|
27345
27384
|
if (this.gridOptions == null)
|
|
27346
27385
|
return;
|
|
@@ -27361,6 +27400,9 @@ class FHGridInternalComponent {
|
|
|
27361
27400
|
this.save_cfg();
|
|
27362
27401
|
}
|
|
27363
27402
|
fitSizeAll() {
|
|
27403
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
27404
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
27405
|
+
return;
|
|
27364
27406
|
console.log("🚀 ~ FHGridInternalComponent ~ fitSizeAll ~ fitSizeAll:", this.gridApi);
|
|
27365
27407
|
if (this.gridApi)
|
|
27366
27408
|
this.gridApi.sizeColumnsToFit();
|