@fluxhub/fluxhub-lib 21.0.19 → 21.0.21

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.
@@ -196,6 +196,13 @@ const FH_MONITORING_IGNORE_ERRORS = [
196
196
  // 401 = sessione scaduta: entrambi gia' gestiti dall'interceptor della libreria.
197
197
  /Http failure response for .*: 0 /,
198
198
  /Http failure response for .*: 401 /,
199
+ // visualizzatori di immagini (ngx-image-viewer): uscita dallo schermo intero quando il
200
+ // browser ne e' gia' uscito (Esc, cambio scheda); innocuo, WBA-13
201
+ /exitFullscreen.*Document not active/,
202
+ // stesso componente: richiesta di schermo intero rifiutata dal browser (RAYTEC-57) e riposizionamento
203
+ // del contenitore al cambio di schermo intero (FMT-68); innocui
204
+ /^(TypeError: )?not granted$/,
205
+ /appendChild.*new child element contains the parent/,
199
206
  ];
200
207
  /** Scarta un evento gia' segnalato o non azionabile; raggruppa i backend non raggiungibili. */
201
208
  function fhMonitoringBeforeSend(event, hint) {
@@ -17147,8 +17154,20 @@ class FHWinShowEmail {
17147
17154
  fs.p1 = "Email_Reader";
17148
17155
  fs.p2 = data.App + '|' + data.K + '|' + data.Filename;
17149
17156
  this._fileservice.doQuery(fs).subscribe((data) => {
17150
- this.email_obj = JSON.parse(data.msg);
17151
- this.allegati = this.email_obj.allegati.split('||');
17157
+ // utility in errore (output non JSON, es. "Unhandled exception"): niente anteprima
17158
+ let obj = null;
17159
+ try {
17160
+ obj = JSON.parse(data?.msg);
17161
+ }
17162
+ catch {
17163
+ obj = null;
17164
+ }
17165
+ if (!obj) {
17166
+ this.title = 'ANTEPRIMA EMAIL NON DISPONIBILE';
17167
+ return;
17168
+ }
17169
+ this.email_obj = obj;
17170
+ this.allegati = obj.allegati ? obj.allegati.split('||') : [];
17152
17171
  });
17153
17172
  }
17154
17173
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: FHWinShowEmail, deps: [{ token: i1$2.MatDialogRef }, { token: FileService }, { token: AppService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
@@ -19325,8 +19344,20 @@ class FHWinShowEmailS3 {
19325
19344
  fs.p1 = 'Email_Reader_S3';
19326
19345
  fs.p2 = data.local_dir + '|' + data.uiid;
19327
19346
  this._fileservice.doQuery(fs).subscribe((data) => {
19328
- this.email_obj = JSON.parse(data.msg);
19329
- this.allegati = this.email_obj.allegati.split('||');
19347
+ // utility in errore (output non JSON, es. "Unhandled exception"): niente anteprima
19348
+ let obj = null;
19349
+ try {
19350
+ obj = JSON.parse(data?.msg);
19351
+ }
19352
+ catch {
19353
+ obj = null;
19354
+ }
19355
+ if (!obj) {
19356
+ this.title = 'ANTEPRIMA EMAIL NON DISPONIBILE';
19357
+ return;
19358
+ }
19359
+ this.email_obj = obj;
19360
+ this.allegati = obj.allegati ? obj.allegati.split('||') : [];
19330
19361
  });
19331
19362
  }
19332
19363
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: FHWinShowEmailS3, deps: [{ token: i1$2.MatDialogRef }, { token: FileService }, { token: AppService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
@@ -19537,11 +19568,12 @@ class FHUploadPanelS3Component {
19537
19568
  this.fileService.doQuery(p).subscribe((data) => {
19538
19569
  if (data != null)
19539
19570
  if (data.result_msg == "OK") {
19540
- let str_mg = data.msg.split('|');
19541
- if (str_mg[0] == 'OK')
19571
+ // KO dell'utility ("KO <motivo>", senza |) o nessun output: niente str_mg[1], si mostra il motivo
19572
+ let str_mg = String(data.msg ?? '').split('|');
19573
+ if (str_mg[0] == 'OK' && str_mg[1])
19542
19574
  window.open(this.uti.urlEncode(str_mg[1]));
19543
19575
  else
19544
- this.toastr.error(str_mg[1].split('|').join(' -> '));
19576
+ this.toastr.error(str_mg.slice(1).join(' -> ') || str_mg[0] || 'Download non riuscito');
19545
19577
  }
19546
19578
  });
19547
19579
  }
@@ -26743,6 +26775,8 @@ class win_assegna_a {
26743
26775
  }
26744
26776
  let o = new Object();
26745
26777
  o.nota = this.nota;
26778
+ // prendi in carico da un utente che non e' tra gli assegnati: nessun utente, non undefined
26779
+ o.arrsel = [];
26746
26780
  if (this.op == 'A' && this.up)
26747
26781
  o.arrsel = this.up.getSelArr();
26748
26782
  else if (this.op == 'L')