@fluxhub/fluxhub-lib 10.0.586 → 10.0.588

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.
@@ -1,8 +1,8 @@
1
1
  import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
2
2
  import { ToastrService } from 'ngx-toastr';
3
3
  import { ɵɵdefineInjectable, Injectable, ɵɵinject, forwardRef, EventEmitter, Component, Input, ViewChild, Output, Inject, HostListener, ViewContainerRef, Pipe, Directive, ElementRef, PLATFORM_ID, Optional, NgModule } from '@angular/core';
4
- import { FileUploader, FileUploadModule } from 'ng2-file-upload';
5
4
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
5
+ import { FileUploader, FileUploadModule } from 'ng2-file-upload';
6
6
  import { HttpHeaders, HttpClient } from '@angular/common/http';
7
7
  import { SimpleCrypt } from 'ngx-simple-crypt';
8
8
  import { AES, enc } from 'crypto-js';
@@ -1958,12 +1958,13 @@ fh_win_confirm.propDecorators = {
1958
1958
  };
1959
1959
 
1960
1960
  class FHUploadS3Component {
1961
- constructor(_dataService, toastr, dialog, app_s, uti) {
1961
+ constructor(_dataService, toastr, dialog, app_s, uti, _trs) {
1962
1962
  this._dataService = _dataService;
1963
1963
  this.toastr = toastr;
1964
1964
  this.dialog = dialog;
1965
1965
  this.app_s = app_s;
1966
1966
  this.uti = uti;
1967
+ this._trs = _trs;
1967
1968
  this.show_descri = true;
1968
1969
  this.enabled = true;
1969
1970
  this.single = true;
@@ -2049,7 +2050,7 @@ class FHUploadS3Component {
2049
2050
  }
2050
2051
  del_doc() {
2051
2052
  localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", "Conferma Operazione");
2052
- localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
2053
+ localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", this._trs.instant("Confermi l'eliminazione dell'elemento?"));
2053
2054
  let dialogRef = this.dialog.open(fh_win_confirm);
2054
2055
  dialogRef.afterClosed().subscribe((result) => {
2055
2056
  if (result) {
@@ -2128,7 +2129,7 @@ class FHUploadS3Component {
2128
2129
  switch (filter.name) {
2129
2130
  case "fileSize":
2130
2131
  let ar = Math.round(item.size / 1024 / 1024);
2131
- this.toastr.error(this.limit_string.split("<size>").join("" + ar));
2132
+ this.toastr.error(this._trs.instant(this.limit_string.split("<size>").join("" + ar)));
2132
2133
  break;
2133
2134
  default:
2134
2135
  this.toastr.error("Errore: " + filter.name);
@@ -2185,7 +2186,7 @@ class FHUploadS3Component {
2185
2186
  if (this.dialogRef == null) {
2186
2187
  this.dialogRef = this.dialog.open(fh_win_wait, { disableClose: true });
2187
2188
  setTimeout(() => {
2188
- this.dialogRef.componentInstance.label = this.label_attendere;
2189
+ this.dialogRef.componentInstance.label = this._trs.instant(this.label_attendere);
2189
2190
  });
2190
2191
  this.dialogRef.afterClosed().subscribe((result) => {
2191
2192
  if (result != "") {
@@ -2267,7 +2268,7 @@ FHUploadS3Component.decorators = [
2267
2268
  [sql]="tipo"
2268
2269
  #cmb_tipo
2269
2270
  [init_fill]="false"
2270
- label="Tipologia"
2271
+ [label]="'Tipologia' | translate"
2271
2272
  ></FHComboBox
2272
2273
  >&nbsp;&nbsp;
2273
2274
  </div>
@@ -2276,7 +2277,7 @@ FHUploadS3Component.decorators = [
2276
2277
  style="width: 100%"
2277
2278
  appearance="outline"
2278
2279
  floatLabel="always"
2279
- ><mat-label>{{ label }} {{ fixed_label }}</mat-label>
2280
+ ><mat-label>{{ label | translate}} {{ fixed_label | translate }}</mat-label>
2280
2281
  <input
2281
2282
  matInput
2282
2283
  type="text"
@@ -2312,7 +2313,7 @@ FHUploadS3Component.decorators = [
2312
2313
  /></svg><span style="font-size: 12px">&nbsp;&nbsp;&nbsp;Upload</span></label>
2313
2314
  </div>
2314
2315
  -->
2315
- <div class="my-drop-zone" style="width:130px" fxLayout="row" [matTooltip]="hasBaseDropZoneOver ? lascia_il_file : trascina_il_file" fxLayoutAlign="center start">
2316
+ <div class="my-drop-zone" style="width:130px" fxLayout="row" [matTooltip]="hasBaseDropZoneOver ? lascia_il_file : trascina_il_file | translate" fxLayoutAlign="center start">
2316
2317
  <label for="uploader-input" ng2FileDrop style="font-weight:bold"
2317
2318
  [ngClass]="{'over-drop-zone': hasBaseDropZoneOver}" for="file-fh{{ id_component }}"
2318
2319
  (onFileDrop)="onFileDrop($event)"
@@ -2371,7 +2372,8 @@ FHUploadS3Component.ctorParameters = () => [
2371
2372
  { type: ToastrService },
2372
2373
  { type: MatDialog },
2373
2374
  { type: AppService },
2374
- { type: UtilityService }
2375
+ { type: UtilityService },
2376
+ { type: TranslateService }
2375
2377
  ];
2376
2378
  FHUploadS3Component.propDecorators = {
2377
2379
  show_descri: [{ type: Input }],
@@ -3057,15 +3059,15 @@ FHUploadPanelS3Component.decorators = [
3057
3059
  <FHUploadS3
3058
3060
  [single]="b_False"
3059
3061
  [label_attendere]="
3060
- force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO'
3062
+ force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO' | translate
3061
3063
  "
3062
3064
  [fixed_label]="
3063
3065
  force_en
3064
3066
  ? 'Attachments description (insert the description here before uploading the file)'
3065
- : ' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'
3067
+ : ' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)' | translate
3066
3068
  "
3067
3069
  [allegato_inserito]="
3068
- force_en ? 'Attachment Inserted' : 'ALLEGATO INSERITO'
3070
+ force_en ? 'Attachment Inserted' : 'ALLEGATO INSERITO' | translate
3069
3071
  "
3070
3072
  [lista_allegati]="arr_g"
3071
3073
  (change)="ref_allegato()"
@@ -8317,12 +8319,13 @@ fh_win_show_log.propDecorators = {
8317
8319
  };
8318
8320
 
8319
8321
  class FHUploadComponent {
8320
- constructor(_dataService, toastr, dialog, app_s, uti) {
8322
+ constructor(_dataService, toastr, dialog, app_s, uti, _trs) {
8321
8323
  this._dataService = _dataService;
8322
8324
  this.toastr = toastr;
8323
8325
  this.dialog = dialog;
8324
8326
  this.app_s = app_s;
8325
8327
  this.uti = uti;
8328
+ this._trs = _trs;
8326
8329
  this.lascia_il_file = 'Lascia il file per confermarmare upload';
8327
8330
  this.trascina_il_file = 'Trascina un file qui o Clicca per avviare upload';
8328
8331
  this.show_download_button = true;
@@ -8492,7 +8495,7 @@ class FHUploadComponent {
8492
8495
  switch (filter.name) {
8493
8496
  case "fileSize":
8494
8497
  let ar = Math.round(item.size / 1024 / 1024);
8495
- this.toastr.error(this.limit_string.split("<size>").join("" + ar));
8498
+ this.toastr.error(this._trs.instant(this.limit_string).split("<size>").join("" + ar));
8496
8499
  break;
8497
8500
  default:
8498
8501
  this.toastr.error("Errore: " + filter.name);
@@ -8523,11 +8526,11 @@ class FHUploadComponent {
8523
8526
  }
8524
8527
  ch(fileItem) {
8525
8528
  if (this.descri_obb && this.descrizione == "") {
8526
- this.toastr.error(this.inserire_descrizione);
8529
+ this.toastr.error(this._trs.instant(this.inserire_descrizione));
8527
8530
  return;
8528
8531
  }
8529
8532
  if (this.selezionare_tipologia != '' && (this.multi_list && (this.cmb_tipo.getValue() == '' || this.cmb_tipo.getValue() == '-1'))) {
8530
- this.toastr.error(this.selezionare_tipologia);
8533
+ this.toastr.error(this._trs.instant(this.selezionare_tipologia));
8531
8534
  return;
8532
8535
  }
8533
8536
  /*for (let i = 0; i < this.lista_allegati.length; i++) {
@@ -8557,7 +8560,7 @@ class FHUploadComponent {
8557
8560
  if (this.dialogRef == null) {
8558
8561
  this.dialogRef = this.dialog.open(fh_win_wait, { disableClose: true });
8559
8562
  setTimeout(() => {
8560
- this.dialogRef.componentInstance.label = this.label_attendere;
8563
+ this.dialogRef.componentInstance.label = this._trs.instant(this.label_attendere);
8561
8564
  });
8562
8565
  this.dialogRef.afterClosed().subscribe((result) => {
8563
8566
  if (result != "") {
@@ -8653,7 +8656,7 @@ FHUploadComponent.decorators = [
8653
8656
  style="width: 100%"
8654
8657
  appearance="outline"
8655
8658
  floatLabel="always"
8656
- ><mat-label>{{ label }} {{ fixed_label }} {{ descri_obb ? '*':''}}</mat-label>
8659
+ ><mat-label>{{ label | translate}} {{ fixed_label | translate }} {{ descri_obb ? '*':''}}</mat-label>
8657
8660
  <input
8658
8661
  matInput
8659
8662
  type="text"
@@ -8690,8 +8693,8 @@ FHUploadComponent.decorators = [
8690
8693
  </div>
8691
8694
  -->
8692
8695
  <div fxLayout="row" [hidden]="!((descri_obb && descrizione == '') || (multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1')))">
8693
- <div [hidden]="!(this.descri_obb && descrizione == '')"><b>{{inserire_descrizione}}</b></div>
8694
- <div [hidden]="!(multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))"><b>{{selezionare_tipologia}}</b></div>
8696
+ <div [hidden]="!(this.descri_obb && descrizione == '')"><b>{{inserire_descrizione | translate}}</b></div>
8697
+ <div [hidden]="!(multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))"><b>{{selezionare_tipologia | translate}}</b></div>
8695
8698
  </div>
8696
8699
  <div class="my-drop-zone" [hidden]="(descri_obb && descrizione == '') || (multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))" style="width:130px" fxLayout="row" [matTooltip]="hasBaseDropZoneOver ? lascia_il_file : trascina_il_file" fxLayoutAlign="center start">
8697
8700
  <label for="uploader-input" ng2FileDrop style="font-weight:bold"
@@ -8771,7 +8774,8 @@ FHUploadComponent.ctorParameters = () => [
8771
8774
  { type: ToastrService },
8772
8775
  { type: MatDialog },
8773
8776
  { type: AppService },
8774
- { type: UtilityService }
8777
+ { type: UtilityService },
8778
+ { type: TranslateService }
8775
8779
  ];
8776
8780
  FHUploadComponent.propDecorators = {
8777
8781
  lascia_il_file: [{ type: Input }],
@@ -9268,13 +9272,14 @@ fh_win_show_email.ctorParameters = () => [
9268
9272
  ];
9269
9273
 
9270
9274
  class FHUploadPanelComponent {
9271
- constructor(_appservice, _dataService, toastr, dialog, auth_s, uti) {
9275
+ constructor(_appservice, _dataService, toastr, dialog, auth_s, uti, _trs) {
9272
9276
  this._appservice = _appservice;
9273
9277
  this._dataService = _dataService;
9274
9278
  this.toastr = toastr;
9275
9279
  this.dialog = dialog;
9276
9280
  this.auth_s = auth_s;
9277
9281
  this.uti = uti;
9282
+ this._trs = _trs;
9278
9283
  this.show_version = false;
9279
9284
  this.enabled = true;
9280
9285
  this.force_en = false;
@@ -9398,7 +9403,7 @@ class FHUploadPanelComponent {
9398
9403
  edit_descri(ax) {
9399
9404
  let dialogRef = this.dialog.open(fh_win_ask_big_text);
9400
9405
  setTimeout(() => {
9401
- dialogRef.componentInstance.label = "Descrizione Allegato";
9406
+ dialogRef.componentInstance.label = this._trs.instant("Descrizione Allegato");
9402
9407
  dialogRef.componentInstance.valore = ax.descrizione;
9403
9408
  dialogRef.componentInstance.min_chars = 0;
9404
9409
  });
@@ -9418,8 +9423,8 @@ class FHUploadPanelComponent {
9418
9423
  });
9419
9424
  }
9420
9425
  delete(ax) {
9421
- localStorage.setItem(this._appservice.COMPANY_KEY + "title_dialog", "Conferma Operazione");
9422
- localStorage.setItem(this._appservice.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
9426
+ localStorage.setItem(this._appservice.COMPANY_KEY + "title_dialog", this._trs.instant("Conferma Operazione"));
9427
+ localStorage.setItem(this._appservice.COMPANY_KEY + "msg_dialog", this._trs.instant("Confermi l'eliminazione dell'elemento?"));
9423
9428
  let dialogRef = this.dialog.open(fh_win_confirm);
9424
9429
  dialogRef.afterClosed().subscribe((result) => {
9425
9430
  if (result) {
@@ -9432,7 +9437,7 @@ class FHUploadPanelComponent {
9432
9437
  if (data.result_msg == "OK") {
9433
9438
  // this.arr_g = data.result_data;
9434
9439
  this.ref_allegato();
9435
- this.toastr.info("INFO", "ALLEGATO ELIMINATO", {
9440
+ this.toastr.info(this._trs.instant("INFO"), this._trs.instant("ALLEGATO ELIMINATO"), {
9436
9441
  timeOut: 1000,
9437
9442
  progressBar: true,
9438
9443
  });
@@ -9446,9 +9451,9 @@ class FHUploadPanelComponent {
9446
9451
  this.upc.single = false;
9447
9452
  this.b_mobile = this._appservice.getState().pageFullscreen;
9448
9453
  if (this.force_en)
9449
- this.upc.init(this.App, this.K, "Attachment Description", this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
9454
+ this.upc.init(this.App, this.K, this._trs.instant("Attachment Description"), this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
9450
9455
  else
9451
- this.upc.init(this.App, this.K, "Descrizione Allegato", this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
9456
+ this.upc.init(this.App, this.K, this._trs.instant("Descrizione Allegato"), this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
9452
9457
  if (this.m_p_tipo.indexOf("SELECT_") > -1) {
9453
9458
  this.multi_list = true;
9454
9459
  }
@@ -9597,18 +9602,18 @@ FHUploadPanelComponent.decorators = [
9597
9602
  selector: "FHUploadPanel",
9598
9603
  template: `
9599
9604
  <div fxLayout="column">
9600
- <h3 *ngIf="label != ''">{{ label }}</h3>
9605
+ <h3 *ngIf="label != ''">{{ label }}</h3>
9601
9606
  <div fxLayout="column">
9602
9607
 
9603
9608
  <div [hidden]="!enabled || !show_upload">
9604
9609
 
9605
9610
  <FHUpload
9606
- [single]="b_False"
9607
- [selezionare_tipologia]="selezionare_tipologia"
9608
- [lascia_il_file] = "force_en ? 'Drop here to confim':'Lascia il file per confermarmare upload'"
9609
- [trascina_il_file] = "force_en ? 'Drop a file here o click to upload a file':'Trascina un file qui o Clicca per avviare upload'"
9611
+ [single]="false"
9612
+ [selezionare_tipologia]="selezionare_tipologia "
9613
+ [lascia_il_file] = "force_en ? 'Drop here to confim':'Lascia il file per confermarmare upload' "
9614
+ [trascina_il_file] = "force_en ? 'Drop a file here o click to upload a file':'Trascina un file qui o Clicca per avviare upload' "
9610
9615
 
9611
- [descri_obb]="description_required"
9616
+ [descri_obb]="description_required "
9612
9617
  [label_attendere]="
9613
9618
  force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO'
9614
9619
  "
@@ -9631,11 +9636,11 @@ FHUploadPanelComponent.decorators = [
9631
9636
  <thead>
9632
9637
  <tr class="header">
9633
9638
  <th [fxShow.lt-sm]="false" style="width:40px"></th>
9634
- <th style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
9639
+ <th style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
9635
9640
  <th [fxShow.lt-sm]="false" *ngIf="show_version" style="width:30px;text-align:center">Ver.</th>
9636
9641
  <th [fxShow.lt-sm]="false" style="width:30px;text-align:center">Dim.</th>
9637
9642
  <th [fxShow.lt-sm]="false" style="width:40%">
9638
- {{ force_en ? "Description" : "Descrizione" }}
9643
+ {{ force_en ? "Description" : "Descrizione" }}
9639
9644
  </th>
9640
9645
  <th *ngIf="multi_list" style="width:20%">
9641
9646
  {{ force_en ? "Type" : "Tipo" }}
@@ -9676,7 +9681,7 @@ FHUploadPanelComponent.decorators = [
9676
9681
  <div *ngIf="enabled">
9677
9682
  <a
9678
9683
  mat-icon-button
9679
- matTooltip="Modifica Descrizione"
9684
+ [matTooltip]="'Modifica Descrizione' "
9680
9685
  *ngIf="app.can_edit"
9681
9686
  (click)="edit_descri(app)"
9682
9687
  >
@@ -9686,7 +9691,7 @@ FHUploadPanelComponent.decorators = [
9686
9691
  <a
9687
9692
  mat-icon-button
9688
9693
  [matTooltip]="
9689
- 'Modifica Descrizione consentita solo a: ' + app.nc
9694
+ _trs.instant('Modifica Descrizione consentita solo a') +': ' + app.nc
9690
9695
  "
9691
9696
  *ngIf="!app.can_edit"
9692
9697
  [disabled]="true"
@@ -9715,7 +9720,7 @@ FHUploadPanelComponent.decorators = [
9715
9720
  <a
9716
9721
  mat-icon-button
9717
9722
  [matTooltip]="
9718
- 'Modifica Tipologia consentita solo a: ' + app.nc
9723
+ _trs.instant('Modifica Tipologia consentita solo a')+': ' + app.nc
9719
9724
  "
9720
9725
  *ngIf="!app.can_edit"
9721
9726
  [disabled]="true"
@@ -9742,14 +9747,14 @@ FHUploadPanelComponent.decorators = [
9742
9747
 
9743
9748
  <button [hidden]="app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1"
9744
9749
  mat-icon-button
9745
- matTooltip="Preview"
9750
+ [matTooltip]="'Preview' "
9746
9751
  (click)="preview_email(app)"
9747
9752
  >
9748
9753
  <mat-icon>visibility</mat-icon>
9749
9754
  </button>
9750
9755
  <button
9751
9756
  mat-icon-button
9752
- matTooltip="Download File"
9757
+ [matTooltip]="'Download File' "
9753
9758
  (click)="download_all(app)"
9754
9759
  >
9755
9760
  <mat-icon>cloud_download</mat-icon>
@@ -9759,7 +9764,7 @@ FHUploadPanelComponent.decorators = [
9759
9764
  <td *ngIf="enabled" style="text-align:center">
9760
9765
  <a
9761
9766
  mat-icon-button
9762
- matTooltip="Elimina File"
9767
+ [matTooltip]="'Elimina File' "
9763
9768
  *ngIf="app.can_delete"
9764
9769
  (click)="delete(app)"
9765
9770
  >
@@ -9769,7 +9774,7 @@ FHUploadPanelComponent.decorators = [
9769
9774
  <a
9770
9775
  mat-icon-button
9771
9776
  [matTooltip]="
9772
- 'Cancellazione consentita solo a: ' + app.can_delete_m
9777
+ _trs.instant('Eliminazione consentita solo a')+': ' + app.can_delete_m
9773
9778
  "
9774
9779
  *ngIf="!app.can_delete"
9775
9780
  [disabled]="true"
@@ -9784,21 +9789,21 @@ FHUploadPanelComponent.decorators = [
9784
9789
  <thead>
9785
9790
  <tr class="header">
9786
9791
  <th [fxShow.lt-sm]="false" style="width:40px"></th>
9787
- <th [fxShow.lt-sm]="false" style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
9792
+ <th [fxShow.lt-sm]="false" style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
9788
9793
  <th [fxShow.lt-sm]="false" *ngIf="show_version" style="width:30px;text-align:center">Ver.</th>
9789
9794
  <th [fxShow.lt-sm]="false" style="width:30px;text-align:center">Dim.</th>
9790
9795
 
9791
9796
  <th [fxShow.lt-sm]="false" style="width:20%">
9792
- {{ force_en ? "Description" : "Descrizione" }}
9797
+ {{ force_en ? "Description" : "Descrizione" }}
9793
9798
  </th>
9794
9799
  <th *ngIf="multi_list" style="width:10%" [fxShow.lt-sm]="false">
9795
- {{ force_en ? "Type" : "Tipo" }}
9800
+ {{ force_en ? "Type" : "Tipo" }}
9796
9801
  </th>
9797
9802
  <th style="width:40%"></th>
9798
9803
 
9799
- <th [fxShow.lt-sm]="false" style="width:10%">{{ force_en ? "User" : "Utente" }}</th>
9804
+ <th [fxShow.lt-sm]="false" style="width:10%">{{ force_en ? "User" : "Utente" }}</th>
9800
9805
  <th [fxShow.lt-sm]="false" style="width:240px;text-align:center">
9801
- {{ force_en ? "Date" : "Data" }}
9806
+ {{ force_en ? "Date" : "Data" }}
9802
9807
  </th>
9803
9808
  <th style="width:40px" class="actions" *ngIf="show_download"></th>
9804
9809
  <th *ngIf="enabled" style="width:40px" class="actions"></th>
@@ -9831,7 +9836,7 @@ FHUploadPanelComponent.decorators = [
9831
9836
  <div *ngIf="enabled">
9832
9837
  <a
9833
9838
  mat-icon-button
9834
- matTooltip="Modifica Descrizione"
9839
+ [matTooltip]="'Modifica Descrizione' "
9835
9840
  *ngIf="app.can_edit"
9836
9841
  (click)="edit_descri(app)"
9837
9842
  >
@@ -9841,7 +9846,7 @@ FHUploadPanelComponent.decorators = [
9841
9846
  <a
9842
9847
  mat-icon-button
9843
9848
  [matTooltip]="
9844
- 'Modifica Descrizione consentita solo a: ' + app.nc
9849
+ _trs.instant( 'Modifica Descrizione consentita solo a')+': ' + app.nc
9845
9850
  "
9846
9851
  *ngIf="!app.can_edit"
9847
9852
  [disabled]="true"
@@ -9859,7 +9864,7 @@ FHUploadPanelComponent.decorators = [
9859
9864
  <div fxLayout="row">
9860
9865
  <a
9861
9866
  mat-icon-button
9862
- matTooltip="Modifica Tipo"
9867
+ [matTooltip]="'Modifica Tipo' "
9863
9868
  *ngIf="app.can_edit"
9864
9869
  (click)="edit_tipo(app)"
9865
9870
  >
@@ -9869,7 +9874,7 @@ FHUploadPanelComponent.decorators = [
9869
9874
  <a
9870
9875
  mat-icon-button
9871
9876
  [matTooltip]="
9872
- 'Modifica Tipologia consentita solo a: ' + app.nc
9877
+ _trs.instant( 'Modifica Tipologia consentita solo a')+':' + app.nc
9873
9878
  "
9874
9879
  *ngIf="!app.can_edit"
9875
9880
  [disabled]="true"
@@ -9896,7 +9901,7 @@ FHUploadPanelComponent.decorators = [
9896
9901
 
9897
9902
  <button [hidden]="app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1"
9898
9903
  mat-icon-button
9899
- matTooltip="Preview"
9904
+ [matTooltip]="'Preview' "
9900
9905
  (click)="preview_email(app)"
9901
9906
  >
9902
9907
  <mat-icon>visibility</mat-icon>
@@ -9905,7 +9910,7 @@ FHUploadPanelComponent.decorators = [
9905
9910
 
9906
9911
  <button
9907
9912
  mat-icon-button
9908
- matTooltip="Download File"
9913
+ [matTooltip]="'Download File' "
9909
9914
  (click)="download_all(app)"
9910
9915
  >
9911
9916
  <mat-icon>cloud_download</mat-icon>
@@ -9915,7 +9920,7 @@ FHUploadPanelComponent.decorators = [
9915
9920
  <td *ngIf="enabled" style="text-align:center">
9916
9921
  <a
9917
9922
  mat-icon-button
9918
- matTooltip="Elimina File"
9923
+ [matTooltip]="'Elimina File' "
9919
9924
  *ngIf="app.can_delete"
9920
9925
  (click)="delete(app)"
9921
9926
  >
@@ -9925,7 +9930,7 @@ FHUploadPanelComponent.decorators = [
9925
9930
  <a
9926
9931
  mat-icon-button
9927
9932
  [matTooltip]="
9928
- 'Cancellazione consentita solo a: ' + app.can_delete_m
9933
+ _trs.instant( 'Cancellazione consentita solo a')+': ' + app.can_delete_m
9929
9934
  "
9930
9935
  *ngIf="!app.can_delete"
9931
9936
  [disabled]="true"
@@ -9971,7 +9976,7 @@ FHUploadPanelComponent.decorators = [
9971
9976
  </div>
9972
9977
  </div>
9973
9978
  <div *ngIf="!b_ini && b_initt" style="color:#ff0000">
9974
- <b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b>
9979
+ <b>{{'ATTENZIONE COMPONENTE NON INIZIALIZZATO' }}</b>
9975
9980
  </div>
9976
9981
  `,
9977
9982
  styles: [``]
@@ -9983,7 +9988,8 @@ FHUploadPanelComponent.ctorParameters = () => [
9983
9988
  { type: ToastrService },
9984
9989
  { type: MatDialog },
9985
9990
  { type: AuthenticationService },
9986
- { type: UtilityService }
9991
+ { type: UtilityService },
9992
+ { type: TranslateService }
9987
9993
  ];
9988
9994
  FHUploadPanelComponent.propDecorators = {
9989
9995
  enabled: [{ type: Input }],
@@ -21920,7 +21926,7 @@ class win_commenti_v2 {
21920
21926
  let ok_op = false;
21921
21927
  if (data != null)
21922
21928
  if (data.result_msg == "OK") {
21923
- this.toastr.info("INFO", "COMMENTO INSERITO", {
21929
+ this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO INSERITO"), {
21924
21930
  timeOut: 1000,
21925
21931
  progressBar: true,
21926
21932
  });
@@ -21937,7 +21943,7 @@ class win_commenti_v2 {
21937
21943
  if (sdest != "")
21938
21944
  this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
21939
21945
  .split("<OP>")
21940
- .join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" +
21946
+ .join(this._tsr.instant("E' stato inserito un commento")), "<br><br>" + this._tsr.instant("Commento inserito") + ": <br>" +
21941
21947
  this.nota.split("\n").join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, "");
21942
21948
  this.refresh_list();
21943
21949
  }
@@ -21956,7 +21962,7 @@ class win_commenti_v2 {
21956
21962
  let ok_op = false;
21957
21963
  if (data != null)
21958
21964
  if (data.result_msg == "OK") {
21959
- this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
21965
+ this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO AGGIORNATO"), {
21960
21966
  timeOut: 1000,
21961
21967
  progressBar: true,
21962
21968
  });
@@ -23184,7 +23190,7 @@ win_riassegna_select_level_v2.decorators = [
23184
23190
  <mat-option value="-1">Seleziona</mat-option>
23185
23191
  <mat-option value="{{ app.step }}" *ngFor="let app of myData">
23186
23192
  {{app.description | translate }}
23187
- }}</mat-option>
23193
+ </mat-option>
23188
23194
  </mat-select>
23189
23195
  </mat-form-field>
23190
23196
 
@@ -24421,7 +24427,7 @@ class dati_aggiuntivi_v2 {
24421
24427
  if (crea_ver == null)
24422
24428
  crea_ver = false;
24423
24429
  this.dialogRef_ww = this.m_dialog.open(fh_win_wait, {
24424
- disableClose: true, data: { label: 'Attendere' }
24430
+ disableClose: true, data: { label: this.tsr.instant('Attendere') }
24425
24431
  });
24426
24432
  this.ttw = 0;
24427
24433
  let fs = new FSInput();
@@ -28373,7 +28379,7 @@ class wkfapp_v2 {
28373
28379
  setTimeout(() => {
28374
28380
  dialogRef.componentInstance.setStepCombo(s_i);
28375
28381
  dialogRef.componentInstance.title =
28376
- this.tsr.instant("Riassegnazione documento: ") +
28382
+ this.tsr.instant("Riassegnazione documento" + ': ') +
28377
28383
  this.get_grid().sRow.codice +
28378
28384
  " - " +
28379
28385
  this.get_grid().sRow.oggetto;
@@ -28449,7 +28455,7 @@ class wkfapp_v2 {
28449
28455
  setTimeout(() => {
28450
28456
  dialogRef.componentInstance.arrAutori = arrAutori;
28451
28457
  dialogRef.componentInstance.title =
28452
- this.tsr.instant("Riassegnazione documento: ") +
28458
+ this.tsr.instant("Riassegnazione documento" + ": ") +
28453
28459
  this.get_grid().sRow.codice +
28454
28460
  " - " +
28455
28461
  this.get_grid().sRow.oggetto;
@@ -28572,7 +28578,6 @@ class wkfapp_v2 {
28572
28578
  if (this.wax[0].gruppo_parallelo != "")
28573
28579
  ccan = this.wax[0].gruppo_parallelo;
28574
28580
  }
28575
- console.log("riassegnazione canale: ", ccan);
28576
28581
  p = new QParam();
28577
28582
  p.sql = "UPDATE_RIASS_DOCUMENTO";
28578
28583
  p.types = [