@fluxhub/fluxhub-lib 10.0.601 → 10.0.603

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.
Files changed (28) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +31 -26
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/fhupload.js +2 -2
  6. package/esm2015/lib/controls/fhuploadpanel.js +6 -6
  7. package/esm2015/lib/controls/fhuploadpanel_s3.js +11 -8
  8. package/esm2015/lib/controls/win_show_email.js +2 -2
  9. package/esm2015/lib/controls/win_show_email_s3.js +2 -2
  10. package/esm2015/lib/wkf_engine/win_assegna.js +2 -2
  11. package/esm2015/lib/wkf_engine/win_commento_sel_notif.js +2 -2
  12. package/esm2015/lib/wkf_engine/win_recupera.js +2 -2
  13. package/esm2015/lib/wkf_engine/win_riassegna_select_level.js +2 -2
  14. package/esm2015/lib/wkf_engine/win_select_canale.js +2 -2
  15. package/esm2015/lib/wkf_engine/win_select_level.js +4 -4
  16. package/esm2015/lib/wkf_engine/win_sostituisci_utente.js +2 -2
  17. package/esm2015/lib/wkf_engine/win_uploads.js +2 -2
  18. package/esm2015/lib/wkf_engine/wkfapp.js +3 -3
  19. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
  20. package/esm2015/lib/wkf_engine_v2/win_commenti.js +2 -2
  21. package/esm2015/lib/wkf_engine_v2/win_select_level.js +2 -1
  22. package/esm2015/lib/wkf_engine_v2/wkfapp.js +3 -3
  23. package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +4 -2
  24. package/fesm2015/fluxhub-fluxhub-lib.js +37 -32
  25. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  26. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  27. package/lib/controls/fhuploadpanel_s3.d.ts +3 -1
  28. package/package.json +1 -1
@@ -2722,7 +2722,7 @@ fh_win_show_email_s3.decorators = [
2722
2722
  template: `
2723
2723
  <div style="width:100%" fxLayout="row" fxLayoutAlign="end start"><img src="assets/icons/x.png" style="cursor: pointer;" (click)="dialogRef.close(null)" /> </div><br>
2724
2724
  <div style="width:100%;overflow:auto;" [style.height]="(m_appService.getState().body_h-240)+'px'">
2725
- <mat-toolbar color="primary">{{title}}
2725
+ <mat-toolbar color="primary">{{title | translate}}
2726
2726
  <span class="fill-remaining-space"></span>
2727
2727
 
2728
2728
  </mat-toolbar>
@@ -2789,13 +2789,14 @@ fh_win_show_email_s3.ctorParameters = () => [
2789
2789
  ];
2790
2790
 
2791
2791
  class FHUploadPanelS3Component {
2792
- constructor(_appservice, _dataService, toastr, dialog, fileService, uti) {
2792
+ constructor(_appservice, _dataService, toastr, dialog, fileService, uti, tsr) {
2793
2793
  this._appservice = _appservice;
2794
2794
  this._dataService = _dataService;
2795
2795
  this.toastr = toastr;
2796
2796
  this.dialog = dialog;
2797
2797
  this.fileService = fileService;
2798
2798
  this.uti = uti;
2799
+ this.tsr = tsr;
2799
2800
  this.enabled = true;
2800
2801
  this.force_en = false;
2801
2802
  this.label = "";
@@ -2873,7 +2874,7 @@ class FHUploadPanelS3Component {
2873
2874
  if (data.result_msg == "OK") {
2874
2875
  let dialogRef = this.dialog.open(fh_win_combo);
2875
2876
  setTimeout(() => {
2876
- dialogRef.componentInstance.set_selection("Tipologia Allegato", data.result_data);
2877
+ dialogRef.componentInstance.set_selection(this.tsr.instant("Tipologia Allegato"), data.result_data);
2877
2878
  });
2878
2879
  dialogRef.afterClosed().subscribe((result) => {
2879
2880
  if (result != null) {
@@ -2895,7 +2896,7 @@ class FHUploadPanelS3Component {
2895
2896
  edit_descri(ax) {
2896
2897
  let dialogRef = this.dialog.open(fh_win_ask_big_text);
2897
2898
  setTimeout(() => {
2898
- dialogRef.componentInstance.label = "Descrizione Allegato";
2899
+ dialogRef.componentInstance.label = this.tsr.instant("Descrizione Allegato");
2899
2900
  dialogRef.componentInstance.valore = ax.description;
2900
2901
  dialogRef.componentInstance.min_chars = 0;
2901
2902
  });
@@ -2915,8 +2916,8 @@ class FHUploadPanelS3Component {
2915
2916
  });
2916
2917
  }
2917
2918
  delete(ax) {
2918
- localStorage.setItem(this._appservice.COMPANY_KEY + "title_dialog", "Conferma Operazione");
2919
- localStorage.setItem(this._appservice.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
2919
+ localStorage.setItem(this._appservice.COMPANY_KEY + "title_dialog", this.tsr.instant("Conferma Operazione"));
2920
+ localStorage.setItem(this._appservice.COMPANY_KEY + "msg_dialog", this.tsr.instant("Confermi l'eliminazione dell'elemento?"));
2920
2921
  let dialogRef = this.dialog.open(fh_win_confirm);
2921
2922
  dialogRef.afterClosed().subscribe((result) => {
2922
2923
  if (result) {
@@ -2929,7 +2930,7 @@ class FHUploadPanelS3Component {
2929
2930
  if (data.result_msg == "OK") {
2930
2931
  // this.arr_g = data.result_data;
2931
2932
  this.ref_allegato();
2932
- this.toastr.info("INFO", "ALLEGATO ELIMINATO", {
2933
+ this.toastr.info("INFO", this.tsr.instant("ALLEGATO ELIMINATO"), {
2933
2934
  timeOut: 1000,
2934
2935
  progressBar: true,
2935
2936
  });
@@ -3381,7 +3382,8 @@ FHUploadPanelS3Component.ctorParameters = () => [
3381
3382
  { type: ToastrService },
3382
3383
  { type: MatDialog },
3383
3384
  { type: FileService },
3384
- { type: UtilityService }
3385
+ { type: UtilityService },
3386
+ { type: TranslateService }
3385
3387
  ];
3386
3388
  FHUploadPanelS3Component.propDecorators = {
3387
3389
  enabled: [{ type: Input }],
@@ -4292,7 +4294,7 @@ win_recupera_doc.decorators = [
4292
4294
  template: `
4293
4295
  <div   fxLayout="column" fxLayoutGap="5px">
4294
4296
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
4295
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
4297
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
4296
4298
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
4297
4299
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
4298
4300
  </div>
@@ -4414,7 +4416,7 @@ win_riassegna_select_level.decorators = [
4414
4416
  template: `
4415
4417
  <div   fxLayout="column" fxLayoutGap="5px">
4416
4418
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
4417
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
4419
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
4418
4420
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
4419
4421
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
4420
4422
  </div>
@@ -5205,7 +5207,7 @@ win_sostituisci_utente.decorators = [
5205
5207
  template: `
5206
5208
  <div   fxLayout="column" fxLayoutGap="5px">
5207
5209
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
5208
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
5210
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
5209
5211
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
5210
5212
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
5211
5213
  </div>
@@ -5497,7 +5499,7 @@ class wkfapp {
5497
5499
  setTimeout(() => {
5498
5500
  dialogRef.componentInstance.setStepCombo(s_i);
5499
5501
  dialogRef.componentInstance.title =
5500
- "Riassegnazione documento: " +
5502
+ this.tsr.instant("Riassegnazione documento") + ": " +
5501
5503
  this.get_grid().sRow.codice +
5502
5504
  " - " +
5503
5505
  this.get_grid().sRow.oggetto;
@@ -5535,7 +5537,7 @@ class wkfapp {
5535
5537
  setTimeout(() => {
5536
5538
  dialogRef.componentInstance.arrAutori = arrAutori;
5537
5539
  dialogRef.componentInstance.title =
5538
- "Riassegnazione documento: " +
5540
+ this.tsr.instant("Riassegnazione documento") + ": " +
5539
5541
  this.get_grid().sRow.codice +
5540
5542
  " - " +
5541
5543
  this.get_grid().sRow.oggetto;
@@ -8731,7 +8733,7 @@ FHUploadComponent.decorators = [
8731
8733
  <div [hidden]="!(this.descri_obb && descrizione == '')"><b>{{inserire_descrizione | translate}}</b></div>
8732
8734
  <div [hidden]="!(multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))"><b>{{selezionare_tipologia | translate}}</b></div>
8733
8735
  </div>
8734
- <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">
8736
+ <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 | translate" fxLayoutAlign="center start">
8735
8737
  <label for="uploader-input" ng2FileDrop style="font-weight:bold"
8736
8738
  [ngClass]="{'over-drop-zone': hasBaseDropZoneOver}" for="file-fh{{ id_component }}"
8737
8739
  (onFileDrop)="onFileDrop($event)" (click)="call_up()"
@@ -9238,7 +9240,7 @@ fh_win_show_email.decorators = [
9238
9240
  template: `
9239
9241
  <div style="width:100%" fxLayout="row" fxLayoutAlign="end start"><img src="assets/icons/x.png" style="cursor: pointer;" (click)="dialogRef.close(null)" /> </div><br>
9240
9242
  <div style="width:100%;overflow:auto;" [style.height]="(m_appService.getState().body_h-240)+'px'">
9241
- <mat-toolbar color="primary">{{title}}
9243
+ <mat-toolbar color="primary">{{title | translate}}
9242
9244
  <span class="fill-remaining-space"></span>
9243
9245
 
9244
9246
  </mat-toolbar>
@@ -9716,9 +9718,9 @@ FHUploadPanelComponent.decorators = [
9716
9718
  <div *ngIf="enabled">
9717
9719
  <a
9718
9720
  mat-icon-button
9719
- [matTooltip]="'Modifica Descrizione' "
9721
+ [matTooltip]="'Modifica Descrizione' | translate"
9720
9722
  *ngIf="app.can_edit"
9721
- (click)="edit_descri(app)"
9723
+ (click)="edit_descri(app)"
9722
9724
  >
9723
9725
  <mat-icon>edit</mat-icon>
9724
9726
  </a>
@@ -9745,7 +9747,7 @@ FHUploadPanelComponent.decorators = [
9745
9747
  <div fxLayout="row">
9746
9748
  <a
9747
9749
  mat-icon-button
9748
- matTooltip="Modifica Tipo"
9750
+ [matTooltip]="'Modifica Tipo' | translate"
9749
9751
  *ngIf="app.can_edit"
9750
9752
  (click)="edit_tipo(app)"
9751
9753
  >
@@ -9871,7 +9873,7 @@ FHUploadPanelComponent.decorators = [
9871
9873
  <div *ngIf="enabled">
9872
9874
  <a
9873
9875
  mat-icon-button
9874
- [matTooltip]="'Modifica Descrizione' "
9876
+ [matTooltip]="'Modifica Descrizione' | translate"
9875
9877
  *ngIf="app.can_edit"
9876
9878
  (click)="edit_descri(app)"
9877
9879
  >
@@ -9899,7 +9901,7 @@ FHUploadPanelComponent.decorators = [
9899
9901
  <div fxLayout="row">
9900
9902
  <a
9901
9903
  mat-icon-button
9902
- [matTooltip]="'Modifica Tipo' "
9904
+ [matTooltip]="'Modifica Tipo' | translate"
9903
9905
  *ngIf="app.can_edit"
9904
9906
  (click)="edit_tipo(app)"
9905
9907
  >
@@ -10096,7 +10098,7 @@ fh_win_uploads.decorators = [
10096
10098
  template: `
10097
10099
  <div   fxLayout="column" fxLayoutGap="5px">
10098
10100
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
10099
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
10101
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
10100
10102
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
10101
10103
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
10102
10104
  </div>
@@ -13824,7 +13826,7 @@ win_assegna.decorators = [
13824
13826
  template: `
13825
13827
  <div   fxLayout="column" fxLayoutGap="5px">
13826
13828
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
13827
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
13829
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
13828
13830
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
13829
13831
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
13830
13832
  </div>
@@ -14015,7 +14017,7 @@ win_select_canale.decorators = [
14015
14017
  template: `
14016
14018
  <div   fxLayout="column" fxLayoutGap="5px">
14017
14019
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
14018
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
14020
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
14019
14021
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
14020
14022
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
14021
14023
  </div>
@@ -14150,8 +14152,8 @@ win_select_level.decorators = [
14150
14152
  template: `
14151
14153
  <div   fxLayout="column" fxLayoutGap="5px">
14152
14154
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
14153
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
14154
- <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
14155
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:80%">{{title | translate}}</div>
14156
+ <div style="width:20%" fxLayout="row" fxLayoutAlign="end start">
14155
14157
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
14156
14158
  </div>
14157
14159
  </div>
@@ -14167,7 +14169,7 @@ win_select_level.decorators = [
14167
14169
  style="width:100%"
14168
14170
  ><mat-label>{{'Seleziona Prossimo Step' | translate}}:</mat-label>
14169
14171
  <mat-select #cmb [(ngModel)]="selval" (change)="sc()">
14170
- <mat-option value="-1">Seleziona</mat-option>
14172
+ <mat-option value="-1">{{'Seleziona' | translate}}</mat-option>
14171
14173
  <mat-option value="{{ app.livello }}" *ngFor="let app of myData">{{
14172
14174
  app.descri_livello | translate
14173
14175
  }}</mat-option>
@@ -14246,7 +14248,7 @@ win_commento_sel_notif.decorators = [
14246
14248
  template: `
14247
14249
  <div   fxLayout="column" fxLayoutGap="5px">
14248
14250
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
14249
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
14251
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
14250
14252
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
14251
14253
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
14252
14254
  </div>
@@ -17054,7 +17056,7 @@ class dati_aggiuntivi {
17054
17056
  this.app_s.getState().wkf_doc_info.st = lij;
17055
17057
  this.app_s.getState().wkf_doc_info.cl = this.clevel;
17056
17058
  let dialogRef = this.m_dialog.open(win_select_level, {
17057
- disableClose: true,
17059
+ disableClose: true, width: '800px'
17058
17060
  });
17059
17061
  dialogRef.afterClosed().subscribe((result) => {
17060
17062
  if (result == null) {
@@ -22098,7 +22100,7 @@ win_commenti_v2.decorators = [
22098
22100
  template: `
22099
22101
  <div fxLayout="column">
22100
22102
      <div  fxFlex="100" fxLayout="row"  fxLayoutAlign="start center"  class="dialog_header">
22101
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">&nbsp;&nbsp;&nbsp;<b>{{title}}</b></div>
22103
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">&nbsp;&nbsp;&nbsp;<b>{{title | translate}}</b></div>
22102
22104
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
22103
22105
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
22104
22106
  </div>
@@ -23572,6 +23574,7 @@ class win_select_level_v2 {
23572
23574
  this.OK_BUTTON = "OK";
23573
23575
  this.trans = [];
23574
23576
  this.trans = data;
23577
+ this.title = this._tsr.instant(this.title);
23575
23578
  /*
23576
23579
  this.setStepCombo(
23577
23580
  this.m_appService.getState().wkf_doc_info.livs,
@@ -24287,9 +24290,10 @@ class dati_aggiuntivi_v2 {
24287
24290
  }
24288
24291
  else {
24289
24292
  let dialogRef = this.m_dialog.open(win_select_level_v2, {
24290
- disableClose: true, data: transazioni
24293
+ disableClose: true, data: transazioni, width: '800px'
24291
24294
  });
24292
24295
  dialogRef.afterClosed().subscribe((result) => {
24296
+ console.log('ris select level', result);
24293
24297
  if (result == null) {
24294
24298
  this.update_status(true, null, null);
24295
24299
  return;
@@ -24301,6 +24305,7 @@ class dati_aggiuntivi_v2 {
24301
24305
  });
24302
24306
  }
24303
24307
  calcolanextandjump2(o) {
24308
+ console.log('calcolanextandjump2', o);
24304
24309
  this.transizione_info = o;
24305
24310
  let cliv = 0;
24306
24311
  let liv = 0;
@@ -28491,7 +28496,7 @@ class wkfapp_v2 {
28491
28496
  setTimeout(() => {
28492
28497
  dialogRef.componentInstance.setStepCombo(s_i);
28493
28498
  dialogRef.componentInstance.title =
28494
- this.tsr.instant("Riassegnazione documento" + ': ') +
28499
+ this.tsr.instant("Riassegnazione documento") + ': ' +
28495
28500
  this.get_grid().sRow.codice +
28496
28501
  " - " +
28497
28502
  this.get_grid().sRow.oggetto;
@@ -28567,7 +28572,7 @@ class wkfapp_v2 {
28567
28572
  setTimeout(() => {
28568
28573
  dialogRef.componentInstance.arrAutori = arrAutori;
28569
28574
  dialogRef.componentInstance.title =
28570
- this.tsr.instant("Riassegnazione documento" + ": ") +
28575
+ this.tsr.instant("Riassegnazione documento") + ": " +
28571
28576
  this.get_grid().sRow.codice +
28572
28577
  " - " +
28573
28578
  this.get_grid().sRow.oggetto;