@fluxhub/fluxhub-lib 11.0.29 → 11.0.31

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.
@@ -3948,8 +3948,8 @@ class FHPickFieldComponent {
3948
3948
  return;
3949
3949
  let dialogRef = this.dialog.open(fh_win_picklist, {
3950
3950
  disableClose: true,
3951
- width: "700px",
3952
- height: "550px", data: {
3951
+ width: "800px",
3952
+ height: "650px", data: {
3953
3953
  value_list: JSON.parse(JSON.stringify(this.value_list)),
3954
3954
  single_sel: this.single_sel,
3955
3955
  vis_buttons: this.vis_buttons,
@@ -7696,7 +7696,7 @@ class FHGridComponent {
7696
7696
  ss_r +=
7697
7697
  this.columnDefs[y].field +
7698
7698
  " LIKE '%" +
7699
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7699
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7700
7700
  "%' ESCAPE '$'";
7701
7701
  }
7702
7702
  }
@@ -7709,7 +7709,7 @@ class FHGridComponent {
7709
7709
  ss_r +=
7710
7710
  v +
7711
7711
  " LIKE '%" +
7712
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7712
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7713
7713
  "%' ESCAPE '$'";
7714
7714
  }
7715
7715
  });
@@ -7951,7 +7951,7 @@ class FHGridComponent {
7951
7951
  ss_r +=
7952
7952
  this.columnDefs[y].field +
7953
7953
  " LIKE '%" +
7954
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7954
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7955
7955
  "%' ESCAPE '$'";
7956
7956
  }
7957
7957
  }
@@ -7964,7 +7964,7 @@ class FHGridComponent {
7964
7964
  ss_r +=
7965
7965
  v +
7966
7966
  " LIKE '%" +
7967
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7967
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7968
7968
  "%' ESCAPE '$'";
7969
7969
  }
7970
7970
  });
@@ -21637,32 +21637,6 @@ class fh_win_user_info {
21637
21637
  this.dialogRef.close(null);
21638
21638
  }
21639
21639
  ngAfterViewInit() {
21640
- setTimeout(() => {
21641
- if (this.isadmin == "1")
21642
- if (this.appService.dev_mode != null)
21643
- if (this.appService.dev_mode == "1")
21644
- this.dev_mode = true;
21645
- let p = new QParam();
21646
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
21647
- p.types = ["string", "string"];
21648
- p.values = ["FOTO_UTENTI", this.appService.user];
21649
- this._dataService.doQuery(p).subscribe((data) => {
21650
- if (data != null)
21651
- if (data.result_msg == "OK") {
21652
- if (data.result_data.length > 0) {
21653
- this.b_filef = true;
21654
- this.foto_ut =
21655
- this.appService.COMPANY_SITE_ROOT +
21656
- "uploads/" +
21657
- data.result_data[0].App +
21658
- "/" +
21659
- data.result_data[0].K +
21660
- "/" +
21661
- data.result_data[0].Filename;
21662
- }
21663
- }
21664
- });
21665
- });
21666
21640
  }
21667
21641
  upd_dev(dv) {
21668
21642
  if (dv) {
@@ -21678,17 +21652,18 @@ class fh_win_user_info {
21678
21652
  fh_win_user_info.decorators = [
21679
21653
  { type: Component, args: [{
21680
21654
  template: `
21681
- <div   fxLayout="column" fxLayoutGap="5px">
21682
-         <div  fxFlex="100" fxLayout="row"   class="dialog_header">
21683
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{'INFO UTENTE' | translate}}</div>
21684
- <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
21685
- <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
21686
- </div>
21687
- </div>
21655
+ <div fxLayout="column" fxLayoutGap="5px">
21656
+ <table class="dialog_header" style="width:100%"><tr><td>
21657
+ {{'INFO UTENTE'}}
21658
+ </td>
21659
+ <td style="text-align:right">
21660
+ <img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" /></td>
21661
+ </table>
21662
+
21688
21663
  <hr width="100%" size="0.5" color="#DDDDDD">
21689
21664
 
21690
21665
  <mat-dialog-content style="font-size:12px">
21691
- <table class="fh_table">
21666
+ <table class="fh_table" style="width:100%">
21692
21667
  <tbody>
21693
21668
  <tr class="odd">
21694
21669
  <td>{{'Nome' | translate}}</td>
@@ -21745,12 +21720,6 @@ fh_win_user_info.decorators = [
21745
21720
  aria-hidden
21746
21721
  src="{{ foto_ut }}"
21747
21722
  />
21748
-
21749
- <div fxLayoutAlign="center center" fxLayout="row">
21750
- <button mat-flat-button color="primary" (click)="dialogRef.close()">
21751
- {{'CHIUDI' | translate}}
21752
- </button>
21753
- </div>
21754
21723
  </mat-dialog-content>
21755
21724
  </div>
21756
21725
  `
@@ -26482,6 +26451,9 @@ class wkf_header_bar_v2 {
26482
26451
  this.respingi_button = false;
26483
26452
  this.procedi_button = true;
26484
26453
  this.utility_button = true;
26454
+ this.show_logs = true;
26455
+ this.show_commenti = true;
26456
+ this.show_allegati = true;
26485
26457
  this.force_save = false;
26486
26458
  this.check_on_save = false;
26487
26459
  this.download_button = true;
@@ -26652,7 +26624,7 @@ wkf_header_bar_v2.decorators = [
26652
26624
  ></div>
26653
26625
  <div>
26654
26626
  <button
26655
- mat-flat-button *ngIf="utility_button"
26627
+ mat-flat-button *ngIf="utility_button && show_commenti"
26656
26628
  [color]="(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''"
26657
26629
  [matBadge]="dt_agg?.comm_c ? dt_agg?.comm_c : 0"
26658
26630
  matBadgePosition="before"
@@ -26666,7 +26638,7 @@ wkf_header_bar_v2.decorators = [
26666
26638
  <div fxLayout="row" fxLayoutGap="16px">
26667
26639
  <div [hidden]="!download_button">
26668
26640
  <button
26669
- mat-flat-button *ngIf="utility_button"
26641
+ mat-flat-button *ngIf="utility_button && show_allegati"
26670
26642
  [color]="(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''"
26671
26643
  [matBadge]="dt_agg?.all_c ? dt_agg?.all_c : 0"
26672
26644
  matBadgePosition="before"
@@ -26680,7 +26652,7 @@ wkf_header_bar_v2.decorators = [
26680
26652
  <button
26681
26653
  mat-flat-button
26682
26654
  (click)="open_wkf()"
26683
- *ngIf="!m_appService.getState().pageFullscreen && utility_button"
26655
+ *ngIf="!m_appService.getState().pageFullscreen && utility_button && show_logs"
26684
26656
  >
26685
26657
  <mat-icon>transfer_within_a_station</mat-icon> {{workflow_lbl | translate}}
26686
26658
  </button>
@@ -26724,6 +26696,9 @@ wkf_header_bar_v2.propDecorators = {
26724
26696
  respingi_button: [{ type: Input }],
26725
26697
  procedi_button: [{ type: Input }],
26726
26698
  utility_button: [{ type: Input }],
26699
+ show_logs: [{ type: Input }],
26700
+ show_commenti: [{ type: Input }],
26701
+ show_allegati: [{ type: Input }],
26727
26702
  force_save: [{ type: Input }],
26728
26703
  check_on_save: [{ type: Input }],
26729
26704
  download_button: [{ type: Input }],
@@ -28225,7 +28200,7 @@ class FHGridComponentN {
28225
28200
  ss_r +=
28226
28201
  this.columnDefs[y].field +
28227
28202
  " LIKE '%" +
28228
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28203
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28229
28204
  "%' ESCAPE '$'";
28230
28205
  }
28231
28206
  }
@@ -28238,7 +28213,7 @@ class FHGridComponentN {
28238
28213
  ss_r +=
28239
28214
  v +
28240
28215
  " LIKE '%" +
28241
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28216
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28242
28217
  "%' ESCAPE '$'";
28243
28218
  }
28244
28219
  });
@@ -28466,7 +28441,7 @@ class FHGridComponentN {
28466
28441
  ss_r +=
28467
28442
  this.columnDefs[y].field +
28468
28443
  " LIKE '%" +
28469
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28444
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28470
28445
  "%' ESCAPE '$'";
28471
28446
  }
28472
28447
  }
@@ -28479,7 +28454,7 @@ class FHGridComponentN {
28479
28454
  ss_r +=
28480
28455
  v +
28481
28456
  " LIKE '%" +
28482
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28457
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28483
28458
  "%' ESCAPE '$'";
28484
28459
  }
28485
28460
  });