@fluxhub/fluxhub-lib 21.0.1 → 21.0.3
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.
|
@@ -9163,9 +9163,15 @@ class FHGridComponent {
|
|
|
9163
9163
|
return;
|
|
9164
9164
|
setTimeout(() => {
|
|
9165
9165
|
//get columns size
|
|
9166
|
+
// se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
|
|
9167
|
+
// getColumnState() torna undefined
|
|
9166
9168
|
let go = this.gridApi;
|
|
9167
|
-
if (go.
|
|
9169
|
+
if (!go || go.isDestroyed?.())
|
|
9170
|
+
return;
|
|
9171
|
+
if (go.getColumnState()?.[0]?.width < 24) {
|
|
9168
9172
|
setTimeout(() => {
|
|
9173
|
+
if (this.gridApi?.isDestroyed?.())
|
|
9174
|
+
return;
|
|
9169
9175
|
this.autoSizeAll();
|
|
9170
9176
|
}, 1000);
|
|
9171
9177
|
}
|
|
@@ -9780,6 +9786,9 @@ class FHGridComponent {
|
|
|
9780
9786
|
}
|
|
9781
9787
|
show_pulisci_filtri = false;
|
|
9782
9788
|
autoSizeAll() {
|
|
9789
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
9790
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
9791
|
+
return;
|
|
9783
9792
|
if (this.gridOptions == null)
|
|
9784
9793
|
return;
|
|
9785
9794
|
if (this.gridApi == null)
|
|
@@ -9801,6 +9810,9 @@ class FHGridComponent {
|
|
|
9801
9810
|
this.save_cfg();
|
|
9802
9811
|
}
|
|
9803
9812
|
fitSizeAll() {
|
|
9813
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
9814
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
9815
|
+
return;
|
|
9804
9816
|
if (this.gridApi)
|
|
9805
9817
|
this.gridApi.sizeColumnsToFit();
|
|
9806
9818
|
this.save_cfg();
|
|
@@ -17215,7 +17227,17 @@ class FHUploadPanelComponent {
|
|
|
17215
17227
|
return;
|
|
17216
17228
|
if (o.response == null)
|
|
17217
17229
|
return;
|
|
17218
|
-
|
|
17230
|
+
// FHUpload passa il body di HttpClient, gia' deserializzato: il JSON.parse resta solo
|
|
17231
|
+
// per chi emette ancora la risposta come stringa.
|
|
17232
|
+
let obj_r = o.response;
|
|
17233
|
+
if (typeof obj_r === 'string') {
|
|
17234
|
+
try {
|
|
17235
|
+
obj_r = JSON.parse(obj_r);
|
|
17236
|
+
}
|
|
17237
|
+
catch {
|
|
17238
|
+
return;
|
|
17239
|
+
}
|
|
17240
|
+
}
|
|
17219
17241
|
if (obj_r != null)
|
|
17220
17242
|
if (obj_r.msg != null)
|
|
17221
17243
|
if (obj_r.msg != '') {
|
|
@@ -23279,6 +23301,9 @@ class FHWinGridSelection {
|
|
|
23279
23301
|
}, 100);
|
|
23280
23302
|
}
|
|
23281
23303
|
autoSizeAll() {
|
|
23304
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
23305
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
23306
|
+
return;
|
|
23282
23307
|
if (this.gridOptions == null)
|
|
23283
23308
|
return;
|
|
23284
23309
|
if (this.gridApi == null)
|
|
@@ -23297,6 +23322,9 @@ class FHWinGridSelection {
|
|
|
23297
23322
|
}
|
|
23298
23323
|
}
|
|
23299
23324
|
fitSizeAll() {
|
|
23325
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
23326
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
23327
|
+
return;
|
|
23300
23328
|
if (this.gridApi)
|
|
23301
23329
|
this.gridApi.sizeColumnsToFit();
|
|
23302
23330
|
}
|
|
@@ -26897,9 +26925,15 @@ class FHGridInternalComponent {
|
|
|
26897
26925
|
return;
|
|
26898
26926
|
setTimeout(() => {
|
|
26899
26927
|
//get columns size
|
|
26928
|
+
// se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
|
|
26929
|
+
// getColumnState() torna undefined
|
|
26900
26930
|
let go = this.gridApi;
|
|
26901
|
-
if (go.
|
|
26931
|
+
if (!go || go.isDestroyed?.())
|
|
26932
|
+
return;
|
|
26933
|
+
if (go.getColumnState()?.[0]?.width < 24) {
|
|
26902
26934
|
setTimeout(() => {
|
|
26935
|
+
if (this.gridApi?.isDestroyed?.())
|
|
26936
|
+
return;
|
|
26903
26937
|
this.autoSizeAll();
|
|
26904
26938
|
}, 1000);
|
|
26905
26939
|
}
|
|
@@ -27811,6 +27845,9 @@ class FHGridInternalComponent {
|
|
|
27811
27845
|
}
|
|
27812
27846
|
show_pulisci_filtri = false;
|
|
27813
27847
|
autoSizeAll() {
|
|
27848
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
27849
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
27850
|
+
return;
|
|
27814
27851
|
if (this.gridOptions == null)
|
|
27815
27852
|
return;
|
|
27816
27853
|
if (this.gridApi == null)
|
|
@@ -27830,6 +27867,9 @@ class FHGridInternalComponent {
|
|
|
27830
27867
|
this.save_cfg();
|
|
27831
27868
|
}
|
|
27832
27869
|
fitSizeAll() {
|
|
27870
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
27871
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
27872
|
+
return;
|
|
27833
27873
|
if (this.gridApi)
|
|
27834
27874
|
this.gridApi.sizeColumnsToFit();
|
|
27835
27875
|
this.save_cfg();
|