@fluxhub/fluxhub-lib 10.0.310 → 10.0.312

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.
@@ -32,6 +32,7 @@ import 'prismjs/components/prism-typescript';
32
32
  import 'prismjs/components/prism-sass';
33
33
  import 'prismjs/components/prism-scss';
34
34
  import 'prismjs/components/prism-sql';
35
+ import { TranslateService, TranslateModule } from '@ngx-translate/core';
35
36
  import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
36
37
  import { MatTabsModule } from '@angular/material/tabs';
37
38
  import { FlexLayoutModule } from '@angular/flex-layout';
@@ -40,7 +41,6 @@ import { AgGridModule } from 'ag-grid-angular';
40
41
  import { AgmCoreModule } from '@agm/core';
41
42
  import { CdkTableModule } from '@angular/cdk/table';
42
43
  import { NgForage } from 'ngforage';
43
- import { TranslateModule } from '@ngx-translate/core';
44
44
  import { DragulaService, DragulaModule } from 'ng2-dragula';
45
45
  import { MatCardModule } from '@angular/material/card';
46
46
  import { MatButtonModule } from '@angular/material/button';
@@ -4951,6 +4951,8 @@ class FHUploadPanelComponent {
4951
4951
  });
4952
4952
  if (this.ruolo_supervisore != "[ZZZ_DIS_CC]")
4953
4953
  this.access_control = true;
4954
+ if (this._appservice.user_lang.toLocaleLowerCase() == 'en')
4955
+ this.force_en = true;
4954
4956
  }
4955
4957
  ngAfterViewInit() {
4956
4958
  setTimeout(() => {
@@ -5532,10 +5534,10 @@ fh_win_uploads.decorators = [
5532
5534
  selector: "wkf_win_upload",
5533
5535
  template: `
5534
5536
  <div   fxLayout="column" fxLayoutGap="5px">
5535
-     <div  fxFlex="100" fxLayout="row"   class="dialog_header"> 
5536
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div> 
5537
+     <div  fxFlex="100" fxLayout="row"   class="dialog_header">
5538
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
5537
5539
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
5538
- <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />    
5540
+ <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
5539
5541
  </div>
5540
5542
  </div>
5541
5543
  <hr width="100%" size="0.5" color="#DDDDDD">
@@ -5557,7 +5559,7 @@ fh_win_uploads.decorators = [
5557
5559
  style="background-color: #F5F5F5"
5558
5560
  (click)="close()"
5559
5561
  >
5560
- CHIUDI
5562
+ {{'CHIUDI' | translate}}
5561
5563
  </button>
5562
5564
  </div>
5563
5565
  </div>
@@ -13454,7 +13456,7 @@ WkfService.ctorParameters = () => [
13454
13456
  ];
13455
13457
 
13456
13458
  class win_commenti {
13457
- constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
13459
+ constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, tsr) {
13458
13460
  this.dialogRef = dialogRef;
13459
13461
  this.m_dialogRef = m_dialogRef;
13460
13462
  this.m_appService = m_appService;
@@ -13462,6 +13464,7 @@ class win_commenti {
13462
13464
  this._dataService = _dataService;
13463
13465
  this.m_wkf = m_wkf;
13464
13466
  this.m_file = m_file;
13467
+ this.tsr = tsr;
13465
13468
  this.notifica_commenti = 1;
13466
13469
  this.notifica_commenti_obbl = 0;
13467
13470
  this.not_comm = false;
@@ -13491,7 +13494,7 @@ class win_commenti {
13491
13494
  this.b_ins = false;
13492
13495
  this.nota = event.commento;
13493
13496
  this.edit_id = event.id_comment;
13494
- this.title = "MODIFICA COMMENTO";
13497
+ this.title = this.tsr.instant("MODIFICA COMMENTO");
13495
13498
  }
13496
13499
  refresh_list() {
13497
13500
  let p = new QParam();
@@ -13511,7 +13514,7 @@ class win_commenti {
13511
13514
  this.commenti_list[i].commento.replace(/\n/g, "<br/>") +
13512
13515
  "</b>";
13513
13516
  }
13514
- this.title = "COMMENTI";
13517
+ this.title = this.tsr.instant("COMMENTI");
13515
13518
  }
13516
13519
  }, (err) => { });
13517
13520
  }
@@ -13521,7 +13524,7 @@ class win_commenti {
13521
13524
  }
13522
13525
  else {
13523
13526
  if (this.nota == "") {
13524
- this.toastr.error("INSERIRE UN COMMENTO");
13527
+ this.toastr.error(this.tsr.instant("INSERIRE UN COMMENTO"));
13525
13528
  return;
13526
13529
  }
13527
13530
  if (this.notifica_commenti != 2)
@@ -13533,8 +13536,7 @@ class win_commenti {
13533
13536
  select_destinatari_grp() {
13534
13537
  let dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
13535
13538
  setTimeout(() => {
13536
- dialo.componentInstance.title =
13537
- "Selezione almeno un gruppo da notificare";
13539
+ dialo.componentInstance.title = this.tsr.instant("Selezione almeno un gruppo da notificare");
13538
13540
  dialo.componentInstance.types = ["string"];
13539
13541
  dialo.componentInstance.values = [
13540
13542
  this.m_appService.getState().wkf_doc_info.uiid_app,
@@ -13633,7 +13635,7 @@ class win_commenti {
13633
13635
  let ok_op = false;
13634
13636
  if (data != null)
13635
13637
  if (data.result_msg == "OK") {
13636
- this.toastr.info("INFO", "COMMENTO INSERITO", {
13638
+ this.toastr.info("INFO", this.tsr.instant("COMMENTO INSERITO"), {
13637
13639
  timeOut: 1000,
13638
13640
  progressBar: true,
13639
13641
  });
@@ -13669,7 +13671,7 @@ class win_commenti {
13669
13671
  let ok_op = false;
13670
13672
  if (data != null)
13671
13673
  if (data.result_msg == "OK") {
13672
- this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
13674
+ this.toastr.info("INFO", this.tsr.instant("COMMENTO AGGIORNATO"), {
13673
13675
  timeOut: 1000,
13674
13676
  progressBar: true,
13675
13677
  });
@@ -13699,14 +13701,14 @@ class win_commenti {
13699
13701
  }
13700
13702
  }
13701
13703
  annulla() {
13702
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
13703
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
13704
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", this.tsr.instant("Conferma Operazione"));
13705
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", this.tsr.instant("Confermi di voler annullare l'inserimento del commento?"));
13704
13706
  let dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
13705
13707
  dialogRef1.afterClosed().subscribe((result) => {
13706
13708
  if (result) {
13707
13709
  this.nota = "";
13708
13710
  this.b_edit = false;
13709
- this.title = "COMMENTI";
13711
+ this.title = this.tsr.instant("COMMENTI");
13710
13712
  }
13711
13713
  });
13712
13714
  }
@@ -13715,7 +13717,7 @@ class win_commenti {
13715
13717
  this.nota = "";
13716
13718
  this.b_edit = true;
13717
13719
  this.b_ins = true;
13718
- this.title = "INSERISCI COMMENTO";
13720
+ this.title = this.tsr.instant("INSERISCI COMMENTO");
13719
13721
  }
13720
13722
  }
13721
13723
  win_commenti.decorators = [
@@ -13723,7 +13725,7 @@ win_commenti.decorators = [
13723
13725
  template: `
13724
13726
  <div   fxLayout="column" fxLayoutGap="5px">
13725
13727
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
13726
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
13728
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
13727
13729
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
13728
13730
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
13729
13731
  </div>
@@ -13736,21 +13738,21 @@ win_commenti.decorators = [
13736
13738
  <div>
13737
13739
  <button mat-flat-button color="accent" (click)="ins()" *ngIf="!b_edit">
13738
13740
  <mat-icon>note_add</mat-icon>
13739
- INSERISCI
13741
+ {{'INSERISCI' | translate}}
13740
13742
  </button>
13741
13743
  </div>
13742
13744
  </mat-toolbar>
13743
13745
  <br />
13744
13746
  <div mat-dialog-content style="min-width:800px;font-size: 15px;">
13745
13747
  <mat-form-field *ngIf="b_edit" appearance="outline" floatLabel="always"
13746
- ><mat-label>Commento</mat-label>
13748
+ ><mat-label> {{'Commento' | translate}}</mat-label>
13747
13749
  <textarea matInput [(ngModel)]="nota" rows="12"></textarea>
13748
13750
  </mat-form-field>
13749
13751
 
13750
13752
  <div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
13751
- <button mat-flat-button color="primary" (click)="ok()">OK</button
13753
+ <button mat-flat-button color="primary" (click)="ok()">{{'OK' | translate}}</button
13752
13754
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
13753
- <button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button
13755
+ <button mat-flat-button color="warn" (click)="annulla()">{{'ANNULLA' | translate}}</button
13754
13756
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
13755
13757
  <mat-checkbox
13756
13758
  [disabled]="not_comm_disabled"
@@ -13759,16 +13761,16 @@ win_commenti.decorators = [
13759
13761
  notifica_commenti == 0 || (notifica_commenti == 1 && lettori == '')
13760
13762
  "
13761
13763
  >
13762
- Notifica Interessati
13764
+ {{'Notifica Interessati' | translate}}
13763
13765
  </mat-checkbox>
13764
13766
  </div>
13765
13767
  <section class="bs" *ngIf="!b_edit">
13766
13768
  <table style="min-width: 100%" class="fh_table">
13767
13769
  <thead>
13768
13770
  <tr>
13769
- <th>Commento</th>
13770
- <th width="15%">Autore</th>
13771
- <th width="15%">Data</th>
13771
+ <th>{{'Commento' | translate}}</th>
13772
+ <th width="15%"> {{'Autore' | translate}}</th>
13773
+ <th width="15%"> {{'Data' | translate}}</th>
13772
13774
  <th></th>
13773
13775
  <th></th>
13774
13776
  </tr>
@@ -13817,7 +13819,8 @@ win_commenti.decorators = [
13817
13819
  style="background-color: #F5F5F5"
13818
13820
  (click)="close()"
13819
13821
  >
13820
- CHIUDI
13822
+
13823
+ {{'CHIUDI' | translate}}
13821
13824
  </button>
13822
13825
  </div>
13823
13826
  </div>
@@ -13832,7 +13835,8 @@ win_commenti.ctorParameters = () => [
13832
13835
  { type: ToastrService },
13833
13836
  { type: QueryService },
13834
13837
  { type: WkfService },
13835
- { type: FileService }
13838
+ { type: FileService },
13839
+ { type: TranslateService }
13836
13840
  ];
13837
13841
 
13838
13842
  class win_info_doc {
@@ -13876,7 +13880,7 @@ win_info_doc.decorators = [
13876
13880
  template: `
13877
13881
  <div   fxLayout="column" fxLayoutGap="5px">
13878
13882
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
13879
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
13883
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate}}</div>
13880
13884
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
13881
13885
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
13882
13886
  </div>
@@ -13886,31 +13890,31 @@ win_info_doc.decorators = [
13886
13890
  <table class="fh_table">
13887
13891
  <tbody>
13888
13892
  <tr class="odd">
13889
- <td>Codice:</td>
13893
+ <td>{{'Codice'|translate}}:</td>
13890
13894
  <td>
13891
13895
  <b>{{ codice }}</b>
13892
13896
  </td>
13893
13897
  </tr>
13894
13898
  <tr class="even">
13895
- <td>Data:</td>
13899
+ <td>{{'Data'|translate}}:</td>
13896
13900
  <td>
13897
13901
  <b>{{ data_richiesta | date: "dd/MM/yyyy hh:mm:ss" }}</b>
13898
13902
  </td>
13899
13903
  </tr>
13900
13904
  <tr *ngIf="!hide_richiedente" class="odd">
13901
- <td>Richiedente:</td>
13905
+ <td>{{'Richiedente'|translate}}:</td>
13902
13906
  <td>
13903
13907
  <b>{{ richiedente }}</b>
13904
13908
  </td>
13905
13909
  </tr>
13906
13910
  <tr class="even">
13907
- <td>Stato:</td>
13911
+ <td>{{'Stato'|translate}}:</td>
13908
13912
  <td>
13909
13913
  <b>{{ stato }}</b>
13910
13914
  </td>
13911
13915
  </tr>
13912
13916
  <tr class="odd">
13913
- <td>In Carico a:</td>
13917
+ <td>{{'In Carico a'|translate}}:</td>
13914
13918
  <td>
13915
13919
  <b>{{ in_carico_a }}</b>
13916
13920
  </td>
@@ -21180,43 +21184,43 @@ class win_info_doc_v2 {
21180
21184
  win_info_doc_v2.decorators = [
21181
21185
  { type: Component, args: [{
21182
21186
  template: `
21183
- <div fxLayout="column">
21187
+ <div   fxLayout="column" fxLayoutGap="5px">
21184
21188
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
21185
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
21189
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate}}</div>
21186
21190
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
21187
21191
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
21188
21192
  </div>
21189
21193
  </div>
21190
-
21194
+ <hr width="100%" size="0.5" color="#DDDDDD">
21191
21195
  <div mat-dialog-content style="font-size: 15px;">
21192
21196
  <table class="fh_table">
21193
21197
  <tbody>
21194
21198
  <tr class="odd">
21195
- <td>Codice:</td>
21199
+ <td>{{'Codice'|translate}}:</td>
21196
21200
  <td>
21197
21201
  <b>{{ codice }}</b>
21198
21202
  </td>
21199
21203
  </tr>
21200
21204
  <tr class="even">
21201
- <td>Data:</td>
21205
+ <td>{{'Data'|translate}}:</td>
21202
21206
  <td>
21203
21207
  <b>{{ data_richiesta | date: "dd/MM/yyyy hh:mm:ss" }}</b>
21204
21208
  </td>
21205
21209
  </tr>
21206
21210
  <tr *ngIf="!hide_richiedente" class="odd">
21207
- <td>Richiedente:</td>
21211
+ <td>{{'Richiedente'|translate}}:</td>
21208
21212
  <td>
21209
- <b>{{ nc }}</b>
21213
+ <b>{{ richiedente }}</b>
21210
21214
  </td>
21211
21215
  </tr>
21212
21216
  <tr class="even">
21213
- <td>Stato:</td>
21217
+ <td>{{'Stato'|translate}}:</td>
21214
21218
  <td>
21215
- <b>{{ stat_stato }}</b>
21219
+ <b>{{ stato }}</b>
21216
21220
  </td>
21217
21221
  </tr>
21218
21222
  <tr class="odd">
21219
- <td>In Carico a:</td>
21223
+ <td>{{'In Carico a'|translate}}:</td>
21220
21224
  <td>
21221
21225
  <b>{{ in_carico_a }}</b>
21222
21226
  </td>
@@ -21254,7 +21258,7 @@ win_info_doc_v2.decorators = [
21254
21258
  CHIUDI
21255
21259
  </button>
21256
21260
  </div>
21257
- </div>
21261
+ </div>
21258
21262
  `
21259
21263
  },] }
21260
21264
  ];
@@ -25475,7 +25479,7 @@ class wkfapp_v2 {
25475
25479
  this.user_idp +
25476
25480
  "',autori)>0 then 1 else 0 end desc,codice desc";
25477
25481
  let p = new QParam();
25478
- p.sql = "SELECT_WKF_APP_INFO";
25482
+ p.sql = "SELECT_WKF_APP_INFO_V2";
25479
25483
  p.types = ["string"];
25480
25484
  p.values = [this.m_cod_documento];
25481
25485
  this.m_dataService.doQuery(p).subscribe((data) => {