@fluxhub/fluxhub-lib 19.0.263 → 19.0.266

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.
@@ -201,6 +201,13 @@ const FH_MONITORING_IGNORE_ERRORS = [
201
201
  // 401 = sessione scaduta: entrambi gia' gestiti dall'interceptor della libreria.
202
202
  /Http failure response for .*: 0 /,
203
203
  /Http failure response for .*: 401 /,
204
+ // visualizzatori di immagini (ngx-image-viewer): uscita dallo schermo intero quando il
205
+ // browser ne e' gia' uscito (Esc, cambio scheda); innocuo, WBA-13
206
+ /exitFullscreen.*Document not active/,
207
+ // stesso componente: richiesta di schermo intero rifiutata dal browser (RAYTEC-57) e riposizionamento
208
+ // del contenitore al cambio di schermo intero (FMT-68); innocui
209
+ /^(TypeError: )?not granted$/,
210
+ /appendChild.*new child element contains the parent/,
204
211
  ];
205
212
  /** Scarta un evento gia' segnalato o non azionabile; raggruppa i backend non raggiungibili. */
206
213
  function fhMonitoringBeforeSend(event, hint) {
@@ -18119,8 +18126,20 @@ class FHWinShowEmail {
18119
18126
  fs.p1 = "Email_Reader";
18120
18127
  fs.p2 = data.App + '|' + data.K + '|' + data.Filename;
18121
18128
  this._fileservice.doQuery(fs).subscribe((data) => {
18122
- this.email_obj = JSON.parse(data.msg);
18123
- this.allegati = this.email_obj.allegati.split('||');
18129
+ // utility in errore (output non JSON, es. "Unhandled exception"): niente anteprima
18130
+ let obj = null;
18131
+ try {
18132
+ obj = JSON.parse(data?.msg);
18133
+ }
18134
+ catch {
18135
+ obj = null;
18136
+ }
18137
+ if (!obj) {
18138
+ this.title = 'ANTEPRIMA EMAIL NON DISPONIBILE';
18139
+ return;
18140
+ }
18141
+ this.email_obj = obj;
18142
+ this.allegati = obj.allegati ? obj.allegati.split('||') : [];
18124
18143
  });
18125
18144
  this.updateButtons();
18126
18145
  }
@@ -20352,8 +20371,20 @@ class FHWinShowEmailS3 {
20352
20371
  fs.p1 = 'Email_Reader_S3';
20353
20372
  fs.p2 = data.local_dir + '|' + data.uiid;
20354
20373
  this._fileservice.doQuery(fs).subscribe((data) => {
20355
- this.email_obj = JSON.parse(data.msg);
20356
- this.allegati = this.email_obj.allegati.split('||');
20374
+ // utility in errore (output non JSON, es. "Unhandled exception"): niente anteprima
20375
+ let obj = null;
20376
+ try {
20377
+ obj = JSON.parse(data?.msg);
20378
+ }
20379
+ catch {
20380
+ obj = null;
20381
+ }
20382
+ if (!obj) {
20383
+ this.title = 'ANTEPRIMA EMAIL NON DISPONIBILE';
20384
+ return;
20385
+ }
20386
+ this.email_obj = obj;
20387
+ this.allegati = obj.allegati ? obj.allegati.split('||') : [];
20357
20388
  });
20358
20389
  this.updateButtons();
20359
20390
  }
@@ -20559,11 +20590,12 @@ class FHUploadPanelS3Component {
20559
20590
  this.fileService.doQuery(p).subscribe((data) => {
20560
20591
  if (data != null)
20561
20592
  if (data.result_msg == "OK") {
20562
- let str_mg = data.msg.split('|');
20563
- if (str_mg[0] == 'OK')
20593
+ // KO dell'utility ("KO <motivo>", senza |) o nessun output: niente str_mg[1], si mostra il motivo
20594
+ let str_mg = String(data.msg ?? '').split('|');
20595
+ if (str_mg[0] == 'OK' && str_mg[1])
20564
20596
  window.open(this.uti.urlEncode(str_mg[1]));
20565
20597
  else
20566
- this.toastr.error(str_mg[1].split('|').join(' -> '));
20598
+ this.toastr.error(str_mg.slice(1).join(' -> ') || str_mg[0] || 'Download non riuscito');
20567
20599
  }
20568
20600
  });
20569
20601
  }
@@ -28392,6 +28424,8 @@ class win_assegna_a {
28392
28424
  }
28393
28425
  let o = new Object();
28394
28426
  o.nota = this.nota;
28427
+ // prendi in carico da un utente che non e' tra gli assegnati: nessun utente, non undefined
28428
+ o.arrsel = [];
28395
28429
  if (this.op == 'A' && this.up)
28396
28430
  o.arrsel = this.up.getSelArr();
28397
28431
  else if (this.op == 'L')
@@ -35114,7 +35148,7 @@ class FHWorkflowForm {
35114
35148
  }
35115
35149
  open_info() {
35116
35150
  this.s_uto = '';
35117
- let aut = this.m_obj.autori.split(',');
35151
+ let aut = (this.m_obj.autori ?? '').split(',');
35118
35152
  for (let i = 0; i < aut.length; i++)
35119
35153
  for (let y = 0; y < this.livs.length; y++)
35120
35154
  if (this.livs[y].idp == aut[i]) {