@fluxhub/fluxhub-lib 22.0.6 → 22.0.8
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.
|
@@ -2882,6 +2882,8 @@ class FHComboboxComponent {
|
|
|
2882
2882
|
translateValue(val) {
|
|
2883
2883
|
if (!val)
|
|
2884
2884
|
return '';
|
|
2885
|
+
// descrizione_valore puo' arrivare numerica dalla query: instant() vuole una stringa
|
|
2886
|
+
val = '' + val;
|
|
2885
2887
|
if (val == '')
|
|
2886
2888
|
return '';
|
|
2887
2889
|
if (!this.disableTranslation)
|
|
@@ -3348,6 +3350,8 @@ class FHAutoCompleteComponent {
|
|
|
3348
3350
|
translateValue(val) {
|
|
3349
3351
|
if ((val || '') == '')
|
|
3350
3352
|
return '';
|
|
3353
|
+
// descrizione_valore puo' arrivare numerica dalla query: instant() vuole una stringa
|
|
3354
|
+
val = '' + val;
|
|
3351
3355
|
if (!this.disableTranslation && this.only_from_list)
|
|
3352
3356
|
return this._tsr.instant(val);
|
|
3353
3357
|
else
|
|
@@ -10476,9 +10480,15 @@ class FHGridComponent {
|
|
|
10476
10480
|
return;
|
|
10477
10481
|
setTimeout(() => {
|
|
10478
10482
|
//get columns size
|
|
10483
|
+
// se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
|
|
10484
|
+
// getColumnState() torna undefined
|
|
10479
10485
|
let go = this.gridApi;
|
|
10480
|
-
if (go.
|
|
10486
|
+
if (!go || go.isDestroyed?.())
|
|
10487
|
+
return;
|
|
10488
|
+
if (go.getColumnState()?.[0]?.width < 24) {
|
|
10481
10489
|
setTimeout(() => {
|
|
10490
|
+
if (this.gridApi?.isDestroyed?.())
|
|
10491
|
+
return;
|
|
10482
10492
|
this.autoSizeAll();
|
|
10483
10493
|
}, 1000);
|
|
10484
10494
|
}
|
|
@@ -19693,7 +19703,17 @@ class FHUploadPanelComponent {
|
|
|
19693
19703
|
return;
|
|
19694
19704
|
if (o.response == null)
|
|
19695
19705
|
return;
|
|
19696
|
-
|
|
19706
|
+
// FHUpload passa il body di HttpClient, gia' deserializzato: il JSON.parse resta solo
|
|
19707
|
+
// per chi emette ancora la risposta come stringa.
|
|
19708
|
+
let obj_r = o.response;
|
|
19709
|
+
if (typeof obj_r === 'string') {
|
|
19710
|
+
try {
|
|
19711
|
+
obj_r = JSON.parse(obj_r);
|
|
19712
|
+
}
|
|
19713
|
+
catch {
|
|
19714
|
+
return;
|
|
19715
|
+
}
|
|
19716
|
+
}
|
|
19697
19717
|
if (obj_r != null)
|
|
19698
19718
|
if (obj_r.msg != null)
|
|
19699
19719
|
if (obj_r.msg != '') {
|