@fluxhub/fluxhub-lib 19.0.234 → 19.0.236

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.
@@ -27829,6 +27829,15 @@ class WkfService {
27829
27829
  task: task,
27830
27830
  msg: "Attivita' bloccata da una dipendenza aperta",
27831
27831
  });
27832
+ // Stessa regola del pannello: senza un ruolo abilitato sull'attivita'
27833
+ // non si chiude. Il servizio non si fida del chiamante — chi deve agire
27834
+ // per conto del sistema lo dichiara con `force`.
27835
+ if (!opts.force && Number(task.can_close || 0) <= 0)
27836
+ return of({
27837
+ ok: false,
27838
+ task: task,
27839
+ msg: "Nessun ruolo abilitato su questa attivita'",
27840
+ });
27832
27841
  return this.claim_task(id_applicativo, id_documento, task, step, opts.username).pipe(switchMap((claim) => {
27833
27842
  if (!claim.ok)
27834
27843
  return of({
@@ -30731,6 +30740,13 @@ class win_conferma_v2 {
30731
30740
  comm_notrequired = 0;
30732
30741
  mobile = false;
30733
30742
  buttons = [];
30743
+ /**
30744
+ * Riga "Assegnata a: <nomi>" sopra il commento. Acceso di default (comportamento
30745
+ * storico); si spegne passando `show_utenti: false` nei data del dialog, cioe' dal
30746
+ * form della pratica con `FHWorkflowForm.show_assegnatari = false`, quando il cliente
30747
+ * non vuole che chi avanza veda a chi finisce la pratica.
30748
+ */
30749
+ show_utenti = true;
30734
30750
  constructor(dialogRef, m_appService, toastr, _tsr, data) {
30735
30751
  this.dialogRef = dialogRef;
30736
30752
  this.m_appService = m_appService;
@@ -30748,6 +30764,8 @@ class win_conferma_v2 {
30748
30764
  this.lbl = data.lbl;
30749
30765
  if (data.utenti != null)
30750
30766
  this.utenti = data.utenti.split(';').join(', ');
30767
+ if (data.show_utenti != null)
30768
+ this.show_utenti = data.show_utenti;
30751
30769
  if (data.icon != null)
30752
30770
  this.icon = data.icon;
30753
30771
  if (data.color_font != null)
@@ -30832,14 +30850,14 @@ class win_conferma_v2 {
30832
30850
  <br />
30833
30851
  <div>
30834
30852
  <div
30835
- *ngIf="mobile && utenti.toLocaleLowerCase().indexOf('system') == -1"
30853
+ *ngIf="show_utenti && mobile && utenti.toLocaleLowerCase().indexOf('system') == -1"
30836
30854
  style="font-size:10px"
30837
30855
  >
30838
30856
  {{ 'Assegnata a' | translate }}: {{ utenti }}
30839
30857
  </div>
30840
30858
  <h3
30841
30859
  *ngIf="
30842
- !mobile && utenti.toLocaleLowerCase().indexOf('system') == -1
30860
+ show_utenti && !mobile && utenti.toLocaleLowerCase().indexOf('system') == -1
30843
30861
  "
30844
30862
  >
30845
30863
  {{ 'Assegnata a' | translate }}: {{ utenti }}
@@ -30894,14 +30912,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
30894
30912
  <br />
30895
30913
  <div>
30896
30914
  <div
30897
- *ngIf="mobile && utenti.toLocaleLowerCase().indexOf('system') == -1"
30915
+ *ngIf="show_utenti && mobile && utenti.toLocaleLowerCase().indexOf('system') == -1"
30898
30916
  style="font-size:10px"
30899
30917
  >
30900
30918
  {{ 'Assegnata a' | translate }}: {{ utenti }}
30901
30919
  </div>
30902
30920
  <h3
30903
30921
  *ngIf="
30904
- !mobile && utenti.toLocaleLowerCase().indexOf('system') == -1
30922
+ show_utenti && !mobile && utenti.toLocaleLowerCase().indexOf('system') == -1
30905
30923
  "
30906
30924
  >
30907
30925
  {{ 'Assegnata a' | translate }}: {{ utenti }}
@@ -32787,6 +32805,19 @@ class FHWorkflowForm {
32787
32805
  reject_back_ground_color = '#f44336';
32788
32806
  b_init_next = false;
32789
32807
  sort_field = '';
32808
+ /**
32809
+ * Riga "Assegnata a: <nomi>" nel dialog "Conferma Avanzamento".
32810
+ *
32811
+ * Default acceso: chi avanza vede a chi sta passando la pratica (comportamento
32812
+ * storico, i portali gia' in produzione non cambiano da soli). Va spento nel form
32813
+ * della pratica (`this.show_assegnatari = false;`) quando i destinatari dello step
32814
+ * successivo non devono essere visibili a chi avanza.
32815
+ *
32816
+ * Non tocca il dialog di "Conferma Assegnazione" (assegnazione manuale), dove i
32817
+ * nomi sono l'oggetto stesso della scelta, ne' il testo di stato scritto sul
32818
+ * documento e nei log.
32819
+ */
32820
+ show_assegnatari = true;
32790
32821
  // --- Step in modalita' task (step_mode='T') --------------------------------
32791
32822
  // 'A' = avanzamento manuale (comportamento storico), 'T' = task paralleli:
32792
32823
  // il pulsante Procedi sparisce e l'avanzamento scatta alla chiusura
@@ -33465,6 +33496,7 @@ class FHWorkflowForm {
33465
33496
  commento_default: '',
33466
33497
  comm_notrequired: o.comments_opt,
33467
33498
  utenti: sp,
33499
+ show_utenti: this.show_assegnatari,
33468
33500
  },
33469
33501
  });
33470
33502
  dialogRef.afterClosed().subscribe((result) => {