@fluxhub/fluxhub-lib 18.0.52 → 18.0.54

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.
@@ -208,6 +208,13 @@ const FH_MONITORING_IGNORE_ERRORS = [
208
208
  // 401 = sessione scaduta: entrambi gia' gestiti dall'interceptor della libreria.
209
209
  /Http failure response for .*: 0 /,
210
210
  /Http failure response for .*: 401 /,
211
+ // visualizzatori di immagini (ngx-image-viewer): uscita dallo schermo intero quando il
212
+ // browser ne e' gia' uscito (Esc, cambio scheda); innocuo, WBA-13
213
+ /exitFullscreen.*Document not active/,
214
+ // stesso componente: richiesta di schermo intero rifiutata dal browser (RAYTEC-57) e riposizionamento
215
+ // del contenitore al cambio di schermo intero (FMT-68); innocui
216
+ /^(TypeError: )?not granted$/,
217
+ /appendChild.*new child element contains the parent/,
211
218
  ];
212
219
  /** Scarta un evento gia' segnalato o non azionabile; raggruppa i backend non raggiungibili. */
213
220
  function fhMonitoringBeforeSend(event, hint) {
@@ -19072,8 +19079,20 @@ class fh_win_show_email {
19072
19079
  fs.p1 = "Email_Reader";
19073
19080
  fs.p2 = data.App + '|' + data.K + '|' + data.Filename;
19074
19081
  this._fileservice.doQuery(fs).subscribe((data) => {
19075
- this.email_obj = JSON.parse(data.msg);
19076
- this.allegati = this.email_obj.allegati.split('||');
19082
+ // utility in errore (output non JSON, es. "Unhandled exception"): niente anteprima
19083
+ let obj = null;
19084
+ try {
19085
+ obj = JSON.parse(data?.msg);
19086
+ }
19087
+ catch {
19088
+ obj = null;
19089
+ }
19090
+ if (!obj) {
19091
+ this.title = 'ANTEPRIMA EMAIL NON DISPONIBILE';
19092
+ return;
19093
+ }
19094
+ this.email_obj = obj;
19095
+ this.allegati = obj.allegati ? obj.allegati.split('||') : [];
19077
19096
  });
19078
19097
  }
19079
19098
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: fh_win_show_email, deps: [{ token: i1$2.MatDialogRef }, { token: FileService }, { token: AppService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
@@ -20667,8 +20686,20 @@ class fh_win_show_email_s3 {
20667
20686
  fs.p1 = "Email_Reader_S3";
20668
20687
  fs.p2 = data.local_dir + '|' + data.uiid;
20669
20688
  this._fileservice.doQuery(fs).subscribe((data) => {
20670
- this.email_obj = JSON.parse(data.msg);
20671
- this.allegati = this.email_obj.allegati.split('||');
20689
+ // utility in errore (output non JSON, es. "Unhandled exception"): niente anteprima
20690
+ let obj = null;
20691
+ try {
20692
+ obj = JSON.parse(data?.msg);
20693
+ }
20694
+ catch {
20695
+ obj = null;
20696
+ }
20697
+ if (!obj) {
20698
+ this.title = 'ANTEPRIMA EMAIL NON DISPONIBILE';
20699
+ return;
20700
+ }
20701
+ this.email_obj = obj;
20702
+ this.allegati = obj.allegati ? obj.allegati.split('||') : [];
20672
20703
  });
20673
20704
  }
20674
20705
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: fh_win_show_email_s3, deps: [{ token: i1$2.MatDialogRef }, { token: FileService }, { token: AppService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
@@ -21424,11 +21455,12 @@ class FHUploadPanelS3Component {
21424
21455
  this.fileService.doQuery(p).subscribe((data) => {
21425
21456
  if (data != null)
21426
21457
  if (data.result_msg == "OK") {
21427
- let str_mg = data.msg.split('|');
21428
- if (str_mg[0] == 'OK')
21458
+ // KO dell'utility ("KO <motivo>", senza |) o nessun output: niente str_mg[1], si mostra il motivo
21459
+ let str_mg = String(data.msg ?? '').split('|');
21460
+ if (str_mg[0] == 'OK' && str_mg[1])
21429
21461
  window.open(this.uti.urlEncode(str_mg[1]));
21430
21462
  else
21431
- this.toastr.error(str_mg[1].split('|').join(' -> '));
21463
+ this.toastr.error(str_mg.slice(1).join(' -> ') || str_mg[0] || 'Download non riuscito');
21432
21464
  }
21433
21465
  });
21434
21466
  }
@@ -34628,6 +34660,8 @@ class win_assegna_a {
34628
34660
  }
34629
34661
  let o = new Object();
34630
34662
  o.nota = this.nota;
34663
+ // prendi in carico da un utente che non e' tra gli assegnati: nessun utente, non undefined
34664
+ o.arrsel = [];
34631
34665
  if (this.op == 'A' && this.up)
34632
34666
  o.arrsel = this.up.getSelArr();
34633
34667
  else if (this.op == 'L')