@fluxhub/fluxhub-lib 10.0.580 → 10.0.582

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 (39) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +152 -126
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/fhcombobox.js +4 -2
  6. package/esm2015/lib/controls/fhgrid_toolbar.js +3 -3
  7. package/esm2015/lib/wkf_engine_v2/win_assegna.js +14 -13
  8. package/esm2015/lib/wkf_engine_v2/win_commenti.js +24 -21
  9. package/esm2015/lib/wkf_engine_v2/win_commento_sel_notif.js +11 -7
  10. package/esm2015/lib/wkf_engine_v2/win_conferma.js +13 -10
  11. package/esm2015/lib/wkf_engine_v2/win_insert_commento.js +11 -8
  12. package/esm2015/lib/wkf_engine_v2/win_log.js +24 -21
  13. package/esm2015/lib/wkf_engine_v2/win_recupera.js +13 -10
  14. package/esm2015/lib/wkf_engine_v2/win_riassegna_select_level.js +15 -12
  15. package/esm2015/lib/wkf_engine_v2/win_riassegna_select_user.js +12 -9
  16. package/esm2015/lib/wkf_engine_v2/win_salva_annulla.js +4 -4
  17. package/esm2015/lib/wkf_engine_v2/win_select_canale.js +14 -11
  18. package/esm2015/lib/wkf_engine_v2/win_select_level.js +10 -7
  19. package/esm2015/lib/wkf_engine_v2/win_sostituisci_utente.js +17 -14
  20. package/esm2015/lib/wkf_engine_v2/win_uploads.js +2 -2
  21. package/esm2015/lib/wkf_engine_v2/wkfapp.js +21 -21
  22. package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +22 -22
  23. package/fesm2015/fluxhub-fluxhub-lib.js +204 -178
  24. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  25. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  26. package/lib/wkf_engine_v2/win_assegna.d.ts +3 -3
  27. package/lib/wkf_engine_v2/win_commenti.d.ts +3 -1
  28. package/lib/wkf_engine_v2/win_commento_sel_notif.d.ts +3 -1
  29. package/lib/wkf_engine_v2/win_conferma.d.ts +3 -1
  30. package/lib/wkf_engine_v2/win_insert_commento.d.ts +3 -1
  31. package/lib/wkf_engine_v2/win_log.d.ts +3 -1
  32. package/lib/wkf_engine_v2/win_recupera.d.ts +3 -1
  33. package/lib/wkf_engine_v2/win_riassegna_select_level.d.ts +3 -1
  34. package/lib/wkf_engine_v2/win_riassegna_select_user.d.ts +3 -1
  35. package/lib/wkf_engine_v2/win_select_canale.d.ts +3 -1
  36. package/lib/wkf_engine_v2/win_select_level.d.ts +3 -1
  37. package/lib/wkf_engine_v2/win_sostituisci_utente.d.ts +3 -1
  38. package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +5 -5
  39. package/package.json +1 -1
@@ -7454,7 +7454,9 @@
7454
7454
  // console.log(this.smtr); console.log(this.smtr.nativeElement);
7455
7455
  this.setByValue(this.valDef);
7456
7456
  if (this.getValue() == "-1" && this.valDef != "-1")
7457
- this.setByDescri(this._tsr.instant(this.valDef));
7457
+ if (this.valDef != null)
7458
+ if (this.valDef != '')
7459
+ this.setByDescri(this._tsr.instant(this.valDef));
7458
7460
  this.is_loaded = true;
7459
7461
  this.fillend.emit();
7460
7462
  };
@@ -12755,7 +12757,7 @@
12755
12757
  FHGridToolBarComponent.decorators = [
12756
12758
  { type: i0.Component, args: [{
12757
12759
  selector: "FHGridToolBar",
12758
- template: "\n <div\n *ngIf=\"type == 'WKF' || type == 'WKF_NO_EDIT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <table><tr><td style=\"width:130px\">\n <button\n mat-flat-button\n (click)=\"insert_doc()\"\n *ngIf=\"toolbar_wkfapp?.is_Ins && type != 'WKF_NO_EDIT'\"\n color=\"accent\"\n style=\"width:130px\"\n >\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}</button\n >\n </td><td style=\"width:130px\">\n <button\n mat-flat-button\n color=\"warn\"\n mat-button style=\"width:130px\"\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor\"\n >\n {{ \"Gestione\" | translate }}\n </button>\n </td></tr></table>\n <mat-menu #gest_menu=\"matMenu\">\n <button mat-menu-item [hidden]=\"sRow==null\" (click)=\"annulla_richiesta()\">\n {{ \"ANNULLA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\">\n {{ \"RECUPERA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item [hidden]=\"sRow==null\" (click)=\"riassegna_richiesta()\">\n {{ \"RIASSEGNA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null\"\n (click)=\"sostituisci_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"SOSTITUISCI UTENTE\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null\"\n style=\"background-color: #F5F5F5\"\n (click)=\"reclama_bozza()\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"\n >\n {{ \"RECLAMA BOZZA\" | translate }}\n </button>\n <button\n mat-menu-item\n (click)=\"test_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"TEST UTENTE\" | translate }}\n </button>\n </mat-menu>\n <button\n mat-flat-button\n (click)=\"annulla_imp()\"\n *ngIf=\"toolbar_wkfapp?.imp != null && toolbar_wkfapp?.imp != ''\"\n >\n {{ toolbar_wkfapp?.imp }}\n </button>\n<div>\n <button\n mat-flat-button\n color=\"accent\"\n mat-button\n [matMenuTriggerFor]=\"gest_menu_custom\"\n *ngIf=\"custom_commands!=null && custom_commands.length>0\"\n >\n\t\t\t<mat-icon>menu</mat-icon>\n </button>\n </div>\n <mat-menu #gest_menu_custom=\"matMenu\">\n <div fxLayout=\"row\" style=\"width:300px\" fxLayoutAlign=\"center center\">\n <div fxLayout=\"column\" fxLayoutGap=\"2px\" fxFlex=\"100\" fxLayoutAlign=\"center center\">\n\t\t\t<ng-container *ngFor=\"let app of custom_commands\">\n\n <div style=\"width:280px\"><button *ngIf=\"app.type == 'button'\" [hidden]=\"app.hidden\"\n mat-flat-button style=\"width:96%\"\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon>&nbsp;{{ app.label | translate }}\n </button></div>\n <div style=\"width:280px\">\n\t\t\t\t <FHCheckBox\n\t\t\t\t\t *ngIf=\"app.type == 'checkbox'\"\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div style=\"width:280px\">\n\t\t\t <FHTableManager *ngIf=\"app.type == 'table_manager'\" style=\"width:180px\" [application]=\"app.default_value\"></FHTableManager>\n </div>\n\t\t\t</ng-container>\n </div>&nbsp;&nbsp;\n </div>\n </mat-menu>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'INSERT_DELETE' || type == 'INSERT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}\n </button>\n\n <button\n *ngIf=\"type == 'INSERT_DELETE'\"\n mat-flat-button\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;\n {{elimina_label | translate}}\n\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'CUSTOM'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n > <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayoutAlign=\"end center\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"type == 'CUSTOM_MENU'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <button\n mat-flat-button\n color=\"warn\"\n mat-button\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n\n >\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #gest_menu=\"matMenu\">\n <div fxLayout=\"column\" fxLayoutGap=\"6px\" style=\"width:100%\">\n <div style=\"width:100%\"><button style=\"width:100%\" mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button></div>\n <div *ngFor=\"let app of custom_commands\" fxLayoutAlign=\"end center\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div style=\"width:100%\" *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n style=\"width:100%\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div></div>\n </mat-menu>\n </div>\n <div\n *ngIf=\"type == 'NONE' && show_link\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n </div>\n ",
12760
+ template: "\n <div\n *ngIf=\"type == 'WKF' || type == 'WKF_NO_EDIT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <table><tr><td style=\"width:130px\">\n <button\n mat-flat-button\n (click)=\"insert_doc()\"\n *ngIf=\"toolbar_wkfapp?.is_Ins && type != 'WKF_NO_EDIT'\"\n color=\"accent\"\n style=\"width:130px\"\n >\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}</button\n >\n </td><td style=\"width:130px\">\n <button\n mat-flat-button\n color=\"warn\"\n mat-button style=\"width:130px\"\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor\"\n >\n {{ \"Gestione\" | translate }}\n </button>\n </td></tr></table>\n <mat-menu #gest_menu=\"matMenu\">\n <button mat-menu-item [hidden]=\"sRow==null\" (click)=\"annulla_richiesta()\">\n {{ \"ANNULLA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\">\n {{ \"RECUPERA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item [hidden]=\"sRow==null\" (click)=\"riassegna_richiesta()\">\n {{ \"RIASSEGNA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null\"\n (click)=\"sostituisci_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"SOSTITUISCI UTENTE\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null\"\n style=\"background-color: #F5F5F5\"\n (click)=\"reclama_bozza()\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"\n >\n {{ \"RECLAMA BOZZA\" | translate }}\n </button>\n <button\n mat-menu-item\n (click)=\"test_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"TEST UTENTE\" | translate }}\n </button>\n </mat-menu>\n <button\n mat-flat-button\n (click)=\"annulla_imp()\"\n *ngIf=\"toolbar_wkfapp?.imp != null && toolbar_wkfapp?.imp != ''\"\n >\n {{ toolbar_wkfapp?.imp }}\n </button>\n<div>\n <button\n mat-flat-button\n color=\"accent\"\n mat-button\n [matMenuTriggerFor]=\"gest_menu_custom\"\n *ngIf=\"custom_commands!=null && custom_commands.length>0\"\n >\n\t\t\t<mat-icon>menu</mat-icon>\n </button>\n </div>\n <mat-menu #gest_menu_custom=\"matMenu\">\n <div fxLayout=\"row\" style=\"width:300px\" fxLayoutAlign=\"center center\">&nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutGap=\"8px\" fxFlex=\"100\" fxLayoutAlign=\"center start\">\n\t\t\t<ng-container *ngFor=\"let app of custom_commands\">\n\n <div style=\"width:280px\"><button *ngIf=\"app.type == 'button'\" [hidden]=\"app.hidden\"\n mat-flat-button style=\"width:96%\"\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon>&nbsp;{{ app.label | translate }}\n </button></div>\n <div style=\"width:280px\">\n\t\t\t\t <FHCheckBox\n\t\t\t\t\t *ngIf=\"app.type == 'checkbox'\"\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div style=\"width:280px\">\n\t\t\t <FHTableManager *ngIf=\"app.type == 'table_manager'\" style=\"width:180px\" [application]=\"app.default_value\"></FHTableManager>\n </div>\n\t\t\t</ng-container>\n </div>&nbsp;&nbsp;\n </div>\n </mat-menu>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'INSERT_DELETE' || type == 'INSERT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}\n </button>\n\n <button\n *ngIf=\"type == 'INSERT_DELETE'\"\n mat-flat-button\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;\n {{elimina_label | translate}}\n\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'CUSTOM'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n > <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayoutAlign=\"end center\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"type == 'CUSTOM_MENU'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <button\n mat-flat-button\n color=\"warn\"\n mat-button\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n\n >\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #gest_menu=\"matMenu\">\n <div fxLayout=\"column\" fxLayoutGap=\"6px\" style=\"width:100%\">\n <div style=\"width:100%\"><button style=\"width:100%\" mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button></div>\n <div *ngFor=\"let app of custom_commands\" fxLayoutAlign=\"end center\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div style=\"width:100%\" *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n style=\"width:100%\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div></div>\n </mat-menu>\n </div>\n <div\n *ngIf=\"type == 'NONE' && show_link\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n </div>\n ",
12759
12761
  styles: ["\n\n "]
12760
12762
  },] }
12761
12763
  ];
@@ -14760,16 +14762,16 @@
14760
14762
  };
14761
14763
 
14762
14764
  var win_assegna_v2 = /** @class */ (function () {
14763
- function win_assegna_v2(dialogRef, m_appService, toastr, _dataService, data) {
14765
+ function win_assegna_v2(dialogRef, m_appService, toastr, _trs, data) {
14764
14766
  this.dialogRef = dialogRef;
14765
14767
  this.m_appService = m_appService;
14766
14768
  this.toastr = toastr;
14767
- this._dataService = _dataService;
14769
+ this._trs = _trs;
14768
14770
  this.data = data;
14769
14771
  this.lbl = "";
14770
14772
  this.nota = "";
14771
14773
  this.nota_commento = "";
14772
- this.title = "ASSEGNA DOCUMENTO";
14774
+ this.title = "";
14773
14775
  this.comm_notrequired = 0;
14774
14776
  if (data != null) {
14775
14777
  if (data.commento_default != null)
@@ -14783,12 +14785,13 @@
14783
14785
  if (data.utenti != null)
14784
14786
  this.arrAutori = data.utenti;
14785
14787
  }
14788
+ this.title = this._trs.instant("ASSEGNA DOCUMENTO");
14786
14789
  for (var i = 0; i < this.arrAutori.length; i++) {
14787
14790
  if (this.arrAutori[i].username == null)
14788
14791
  this.arrAutori[i].username = this.arrAutori[i].idp;
14789
14792
  }
14790
14793
  if (this.comm_notrequired == 2)
14791
- this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
14794
+ this.nota_commento = this._trs.instant(" (COMMENTO NON OBBLIGATORIO)");
14792
14795
  if (data != null) {
14793
14796
  if (data.commento_default != null)
14794
14797
  this.nota = data.commento_default;
@@ -14801,7 +14804,7 @@
14801
14804
  };
14802
14805
  win_assegna_v2.prototype.ok = function () {
14803
14806
  if (this.up.getSelArr().length == 0) {
14804
- this.toastr.error("ERRORE", "SELEZIONARE ALMENO UN UTENTE", {
14807
+ this.toastr.error("ERRORE", this._trs.instant("SELEZIONARE ALMENO UN UTENTE"), {
14805
14808
  timeOut: 1000,
14806
14809
  progressBar: true,
14807
14810
  });
@@ -14809,7 +14812,7 @@
14809
14812
  }
14810
14813
  if (this.comm_notrequired == 0)
14811
14814
  if (this.nota == "") {
14812
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
14815
+ this.toastr.error("ERRORE", this._trs.instant("INSERIRE IL COMMENTO"), {
14813
14816
  timeOut: 1000,
14814
14817
  progressBar: true,
14815
14818
  });
@@ -14825,14 +14828,14 @@
14825
14828
  }());
14826
14829
  win_assegna_v2.decorators = [
14827
14830
  { type: i0.Component, args: [{
14828
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div\n mat-dialog-content\n fxLayout=\"column\"\n style=\"font-size: 15px;min-width: 750px\"\n >\n <div style=\"width:100%;height:450px\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired != 1\">\n <br />\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Commento {{ nota_commento }}</mat-label>\n <textarea required matInput [(ngModel)]=\"nota\" rows=\"4\"></textarea>\n </mat-form-field>\n </div>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n ANNULLA\n </button>\n </div>\n </div>\n "
14831
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title | translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div\n mat-dialog-content\n fxLayout=\"column\"\n style=\"font-size: 15px;min-width: 750px\"\n >\n <div style=\"width:100%;height:450px\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired != 1\">\n <br />\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate}} {{ nota_commento }}</mat-label>\n <textarea required matInput [(ngModel)]=\"nota\" rows=\"4\"></textarea>\n </mat-form-field>\n </div>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate }}</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate }}\n </button>\n </div>\n </div>\n "
14829
14832
  },] }
14830
14833
  ];
14831
14834
  win_assegna_v2.ctorParameters = function () { return [
14832
14835
  { type: dialog.MatDialogRef },
14833
14836
  { type: AppService },
14834
14837
  { type: i3.ToastrService },
14835
- { type: QueryService },
14838
+ { type: core.TranslateService },
14836
14839
  { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
14837
14840
  ]; };
14838
14841
  win_assegna_v2.propDecorators = {
@@ -14840,9 +14843,10 @@
14840
14843
  };
14841
14844
 
14842
14845
  var win_commento_sel_notif_v2 = /** @class */ (function () {
14843
- function win_commento_sel_notif_v2(dialogRef, toastr) {
14846
+ function win_commento_sel_notif_v2(dialogRef, toastr, _tsr) {
14844
14847
  this.dialogRef = dialogRef;
14845
14848
  this.toastr = toastr;
14849
+ this._tsr = _tsr;
14846
14850
  this.title = "SELEZIONA CHI NOTIFICARE";
14847
14851
  }
14848
14852
  win_commento_sel_notif_v2.prototype.close = function () {
@@ -14873,24 +14877,26 @@
14873
14877
  o.arrsel = this.up.getSelArr();
14874
14878
  this.dialogRef.close(o);
14875
14879
  };
14876
- win_commento_sel_notif_v2.prototype.ngAfterViewInit = function () { };
14880
+ win_commento_sel_notif_v2.prototype.ngAfterViewInit = function () {
14881
+ };
14877
14882
  return win_commento_sel_notif_v2;
14878
14883
  }());
14879
14884
  win_commento_sel_notif_v2.decorators = [
14880
14885
  { type: i0.Component, args: [{
14881
- template: "\n <div fxLayout=\"column\">\n \u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"min-width:700px;font-size: 15px;\">\n <div style=\"height:370px;\">\n <FHPickUsers #up [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br />\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </div>\n </div>\n "
14886
+ template: "\n <div fxLayout=\"column\">\n \u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title | translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"min-width:700px;font-size: 15px;\">\n <div style=\"height:370px;\">\n <FHPickUsers #up [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br />\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate }}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"close()\">{{'ANNULLA' | translate }}</button>\n </div>\n </div>\n "
14882
14887
  },] }
14883
14888
  ];
14884
14889
  win_commento_sel_notif_v2.ctorParameters = function () { return [
14885
14890
  { type: dialog.MatDialogRef },
14886
- { type: i3.ToastrService }
14891
+ { type: i3.ToastrService },
14892
+ { type: core.TranslateService }
14887
14893
  ]; };
14888
14894
  win_commento_sel_notif_v2.propDecorators = {
14889
14895
  up: [{ type: i0.ViewChild, args: ["up",] }]
14890
14896
  };
14891
14897
 
14892
14898
  var win_commenti_v2 = /** @class */ (function () {
14893
- function win_commenti_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
14899
+ function win_commenti_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, _tsr) {
14894
14900
  this.dialogRef = dialogRef;
14895
14901
  this.m_dialogRef = m_dialogRef;
14896
14902
  this.m_appService = m_appService;
@@ -14898,6 +14904,7 @@
14898
14904
  this._dataService = _dataService;
14899
14905
  this.m_wkf = m_wkf;
14900
14906
  this.m_file = m_file;
14907
+ this._tsr = _tsr;
14901
14908
  this.notifica_commenti = 1;
14902
14909
  this.notifica_commenti_obbl = 0;
14903
14910
  this.not_comm = false;
@@ -14927,7 +14934,7 @@
14927
14934
  this.b_ins = false;
14928
14935
  this.nota = event.commento;
14929
14936
  this.edit_id = event.id_comment;
14930
- this.title = "MODIFICA COMMENTO";
14937
+ this.title = this._tsr.instant("MODIFICA COMMENTO");
14931
14938
  };
14932
14939
  win_commenti_v2.prototype.refresh_list = function () {
14933
14940
  var _this = this;
@@ -14948,7 +14955,7 @@
14948
14955
  _this.commenti_list[i].commento.replace(/\n/g, "<br/>") +
14949
14956
  "</b>";
14950
14957
  }
14951
- _this.title = "COMMENTI";
14958
+ _this.title = _this._tsr.instant("COMMENTI");
14952
14959
  }
14953
14960
  }, function (err) { });
14954
14961
  };
@@ -14958,7 +14965,7 @@
14958
14965
  }
14959
14966
  else {
14960
14967
  if (this.nota == "") {
14961
- this.toastr.error("INSERIRE UN COMMENTO");
14968
+ this.toastr.error(this._tsr.instant("INSERIRE UN COMMENTO"));
14962
14969
  return;
14963
14970
  }
14964
14971
  if (this.notifica_commenti != 2)
@@ -14972,7 +14979,7 @@
14972
14979
  var dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
14973
14980
  setTimeout(function () {
14974
14981
  dialo.componentInstance.title =
14975
- "Selezione almeno un gruppo da notificare";
14982
+ _this._tsr.instant("Selezione almeno un gruppo da notificare");
14976
14983
  dialo.componentInstance.types = ["string"];
14977
14984
  dialo.componentInstance.values = [
14978
14985
  _this.m_appService.getState().wkf_doc_info.uiid_app,
@@ -15131,7 +15138,7 @@
15131
15138
  if (sdest != "")
15132
15139
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject
15133
15140
  .split("<OP>")
15134
- .join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" +
15141
+ .join(_this._tsr.instant("E' stato modificato un commento")), "<br><br>" + _this._tsr.instant('Commento modificato') + ": <br>" +
15135
15142
  _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, "");
15136
15143
  _this.refresh_list();
15137
15144
  }
@@ -15143,8 +15150,8 @@
15143
15150
  };
15144
15151
  win_commenti_v2.prototype.annulla = function () {
15145
15152
  var _this = this;
15146
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
15147
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
15153
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", this._tsr.instant("Conferma Operazione"));
15154
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", this._tsr.instant("Confermi di voler annullare l'inserimento del commento?"));
15148
15155
  var dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
15149
15156
  dialogRef1.afterClosed().subscribe(function (result) {
15150
15157
  if (result) {
@@ -15159,13 +15166,13 @@
15159
15166
  this.nota = "";
15160
15167
  this.b_edit = true;
15161
15168
  this.b_ins = true;
15162
- this.title = "INSERISCI COMMENTO";
15169
+ this.title = this._tsr.instant("INSERISCI COMMENTO");
15163
15170
  };
15164
15171
  return win_commenti_v2;
15165
15172
  }());
15166
15173
  win_commenti_v2.decorators = [
15167
15174
  { type: i0.Component, args: [{
15168
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <mat-toolbar color=\"primary\"\n >\n <span class=\"fill-remaining-space\"></span>\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n </mat-toolbar>\n <br />\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox\n [disabled]=\"not_comm_disabled\"\n [(ngModel)]=\"not_comm\"\n [hidden]=\"\n notifica_commenti == 0 || (notifica_commenti == 1 && lettori == '')\n \"\n >\n Notifica Interessati\n </mat-checkbox>\n </div>\n <section class=\"bs\" *ngIf=\"!b_edit\">\n <table style=\"min-width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>Commento</th>\n <th width=\"15%\">Autore</th>\n <th width=\"15%\">Data</th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"\n let app of commenti_list;\n let odd = odd;\n let even = even;\n index as i\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>{{ app.COGNOME + \" \" + app.NOME }}</td>\n <td>{{ app.data_creazione | date: \"dd/MM/yyyy HH:mm:ss\" }}</td>\n <td>\n <mat-icon\n [matTooltip]=\"app.dest_notif\"\n *ngIf=\"app.dest_notif != null && app.dest_notif != ''\"\n >mail</mat-icon\n >\n </td>\n <td>\n <mat-icon\n *ngIf=\"\n i == 0 &&\n app.creatore ==\n m_appService.getState().wkf_doc_info.curr_user\n \"\n (click)=\"edit_comm(app)\"\n >edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </div>\n <br />\n\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n CHIUDI\n </button>\n </div>\n </div>\n ",
15175
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <mat-toolbar color=\"primary\"\n >\n <span class=\"fill-remaining-space\"></span>\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n {{'INSERISCI' | translate}}\n </button>\n </mat-toolbar>\n <br />\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate}}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\"> {{'ANNULLA' | translate}}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox\n [disabled]=\"not_comm_disabled\"\n [(ngModel)]=\"not_comm\"\n [hidden]=\"\n notifica_commenti == 0 || (notifica_commenti == 1 && lettori == '')\n \"\n >{{'Notifica Interessati' | translate}}\n\n </mat-checkbox>\n </div>\n <section class=\"bs\" *ngIf=\"!b_edit\">\n <table style=\"min-width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>{{'Commento' | translate}}</th>\n <th width=\"15%\">{{'Autore' | translate}}</th>\n <th width=\"15%\">{{'Data' | translate}}</th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"\n let app of commenti_list;\n let odd = odd;\n let even = even;\n index as i\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>{{ app.COGNOME + \" \" + app.NOME }}</td>\n <td>{{ app.data_creazione | date: \"dd/MM/yyyy HH:mm:ss\" }}</td>\n <td>\n <mat-icon\n [matTooltip]=\"app.dest_notif\"\n *ngIf=\"app.dest_notif != null && app.dest_notif != ''\"\n >mail</mat-icon\n >\n </td>\n <td>\n <mat-icon\n *ngIf=\"\n i == 0 &&\n app.creatore ==\n m_appService.getState().wkf_doc_info.curr_user\n \"\n (click)=\"edit_comm(app)\"\n >edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </div>\n <br />\n\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'CHIUDI' | translate}}\n </button>\n </div>\n </div>\n ",
15169
15176
  styles: [""]
15170
15177
  },] }
15171
15178
  ];
@@ -15176,14 +15183,16 @@
15176
15183
  { type: i3.ToastrService },
15177
15184
  { type: QueryService },
15178
15185
  { type: WkfService },
15179
- { type: FileService }
15186
+ { type: FileService },
15187
+ { type: core.TranslateService }
15180
15188
  ]; };
15181
15189
 
15182
15190
  var win_conferma_v2 = /** @class */ (function () {
15183
- function win_conferma_v2(dialogRef, m_appService, toastr, data) {
15191
+ function win_conferma_v2(dialogRef, m_appService, toastr, _tsr, data) {
15184
15192
  this.dialogRef = dialogRef;
15185
15193
  this.m_appService = m_appService;
15186
15194
  this.toastr = toastr;
15195
+ this._tsr = _tsr;
15187
15196
  this.data = data;
15188
15197
  this.utenti = "";
15189
15198
  this.lbl = "";
@@ -15221,7 +15230,7 @@
15221
15230
  win_conferma_v2.prototype.ok = function () {
15222
15231
  if (this.comm_notrequired == 0)
15223
15232
  if (this.nota == "") {
15224
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
15233
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("INSERIRE IL COMMENTO"), {
15225
15234
  timeOut: 1000,
15226
15235
  progressBar: true,
15227
15236
  });
@@ -15237,13 +15246,14 @@
15237
15246
  }());
15238
15247
  win_conferma_v2.decorators = [
15239
15248
  { type: i0.Component, args: [{
15240
- template: "\n<div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{\u00A0title\u00A0}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <mat-toolbar [style.background-color]=\"color\"\n [style.color]=\"color_font\">\n <i *ngIf=\"icon!=null && icon!=''\" class=\"fa {{icon}}\" aria-hidden=\"true\"></i>&nbsp;&nbsp;&nbsp;\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{ lbl }}</div>\n <div *ngIf=\"!mobile\">{{ lbl }}</div>\n </mat-toolbar>\n <br />\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div\n *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n style=\"font-size:10px\"\n >\n Assegnata a: {{ utenti }}\n </div>\n <h3\n *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n >\n Assegnata a: {{ utenti }}\n </h3>\n <br />\n <mat-form-field\n [hidden]=\"comm_notrequired == 1\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>Commento {{ nota_commento }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button>\n\n </div>\n "
15249
+ template: "\n<div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{\u00A0title| translate\u00A0}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <mat-toolbar [style.background-color]=\"color\"\n [style.color]=\"color_font\">\n <i *ngIf=\"icon!=null && icon!=''\" class=\"fa {{icon}}\" aria-hidden=\"true\"></i>&nbsp;&nbsp;&nbsp;\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{ lbl | translate}}</div>\n <div *ngIf=\"!mobile\">{{ lbl| translate }}</div>\n </mat-toolbar>\n <br />\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div\n *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n style=\"font-size:10px\"\n >\n {{'Assegnata a'| translate}}: {{ utenti }}\n </div>\n <h3\n *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n >\n {{'Assegnata a'| translate}}: {{ utenti }}\n </h3>\n <br />\n <mat-form-field\n [hidden]=\"comm_notrequired == 1\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Commento'| translate}} {{ nota_commento | translate}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">{{'OK'| translate}}</button>\n\n </div>\n "
15241
15250
  },] }
15242
15251
  ];
15243
15252
  win_conferma_v2.ctorParameters = function () { return [
15244
15253
  { type: dialog.MatDialogRef },
15245
15254
  { type: AppService },
15246
15255
  { type: i3.ToastrService },
15256
+ { type: core.TranslateService },
15247
15257
  { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
15248
15258
  ]; };
15249
15259
 
@@ -15294,13 +15304,14 @@
15294
15304
  ]; };
15295
15305
 
15296
15306
  var win_insert_commento_v2 = /** @class */ (function () {
15297
- function win_insert_commento_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
15307
+ function win_insert_commento_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, _tsr) {
15298
15308
  this.dialogRef = dialogRef;
15299
15309
  this.m_dialogRef = m_dialogRef;
15300
15310
  this.m_appService = m_appService;
15301
15311
  this.toastr = toastr;
15302
15312
  this._dataService = _dataService;
15303
15313
  this.m_wkf = m_wkf;
15314
+ this._tsr = _tsr;
15304
15315
  this.not_int = true;
15305
15316
  this.nota = "";
15306
15317
  this.title = "COMMENTI";
@@ -15394,13 +15405,13 @@
15394
15405
  var ok_op = false;
15395
15406
  if (data != null)
15396
15407
  if (data.result_msg == "OK") {
15397
- _this.toastr.info("INFO", "COMMENTO INSERITO", {
15408
+ _this.toastr.info(_this._tsr.instant("INFO"), _this._tsr.instant("COMMENTO INSERITO"), {
15398
15409
  timeOut: 1000,
15399
15410
  progressBar: true,
15400
15411
  });
15401
15412
  _this.b_edit = false;
15402
15413
  if (sdest != "")
15403
- _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" +
15414
+ _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join(_this._tsr.instant("E' stato inserito un commento")), "<br><br>" + _this._tsr.instant("Commento inserito") + ": <br>" +
15404
15415
  _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, "");
15405
15416
  }
15406
15417
  });
@@ -15421,7 +15432,7 @@
15421
15432
  }());
15422
15433
  win_insert_commento_v2.decorators = [
15423
15434
  { type: i0.Component, args: [{
15424
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori === ''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n </div>\n ",
15435
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">{{'OK' | translate}}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">{{'ANNULLA' | translate}}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori === ''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n </div>\n ",
15425
15436
  styles: [""]
15426
15437
  },] }
15427
15438
  ];
@@ -15431,11 +15442,12 @@
15431
15442
  { type: AppService },
15432
15443
  { type: i3.ToastrService },
15433
15444
  { type: QueryService },
15434
- { type: WkfService }
15445
+ { type: WkfService },
15446
+ { type: core.TranslateService }
15435
15447
  ]; };
15436
15448
 
15437
15449
  var win_log_v2 = /** @class */ (function () {
15438
- function win_log_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
15450
+ function win_log_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, _tsr) {
15439
15451
  this.dialogRef = dialogRef;
15440
15452
  this.m_dialogRef = m_dialogRef;
15441
15453
  this.m_appService = m_appService;
@@ -15443,6 +15455,7 @@
15443
15455
  this._dataService = _dataService;
15444
15456
  this.m_wkf = m_wkf;
15445
15457
  this.m_file = m_file;
15458
+ this._tsr = _tsr;
15446
15459
  this.ossv = false;
15447
15460
  this.not_comm = false;
15448
15461
  this.not_comm_disabled = false;
@@ -15523,14 +15536,14 @@
15523
15536
  };
15524
15537
  win_log_v2.prototype.annulla = function () {
15525
15538
  var _this = this;
15526
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
15527
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
15539
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", this._tsr.instant("Conferma Operazione"));
15540
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", this._tsr.instant("Confermi di voler annullare l'inserimento del commento?"));
15528
15541
  var dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
15529
15542
  dialogRef1.afterClosed().subscribe(function (result) {
15530
15543
  if (result) {
15531
15544
  _this.nota = "";
15532
15545
  _this.b_edit = false;
15533
- _this.title = "LOG WORKFLOW E COMMENTI";
15546
+ _this.title = _this._tsr.instant("LOG WORKFLOW E COMMENTI");
15534
15547
  }
15535
15548
  });
15536
15549
  };
@@ -15538,7 +15551,7 @@
15538
15551
  this.nota = "";
15539
15552
  this.b_edit = true;
15540
15553
  this.b_ins = true;
15541
- this.title = "INSERISCI COMMENTO";
15554
+ this.title = this._tsr.instant("INSERISCI COMMENTO");
15542
15555
  };
15543
15556
  win_log_v2.prototype.ngAfterViewInit = function () {
15544
15557
  var _this = this;
@@ -15551,7 +15564,7 @@
15551
15564
  this.b_ins = false;
15552
15565
  this.nota = event.stato_attuale;
15553
15566
  this.edit_id = event.id_comment;
15554
- this.title = "MODIFICA COMMENTO";
15567
+ this.title = this._tsr.instant("MODIFICA COMMENTO");
15555
15568
  };
15556
15569
  win_log_v2.prototype.refresh_list = function () {
15557
15570
  var _this = this;
@@ -15594,7 +15607,7 @@
15594
15607
  }
15595
15608
  else {
15596
15609
  if (this.nota == "") {
15597
- this.toastr.error("INSERIRE UN COMMENTO");
15610
+ this.toastr.error(this._tsr.instant("INSERIRE UN COMMENTO"));
15598
15611
  return;
15599
15612
  }
15600
15613
  if (this.notifica_commenti == 1)
@@ -15635,7 +15648,7 @@
15635
15648
  var dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
15636
15649
  setTimeout(function () {
15637
15650
  dialo.componentInstance.title =
15638
- "Selezione almeno un gruppo da notificare";
15651
+ _this._tsr.instant("Selezione almeno un gruppo da notificare");
15639
15652
  dialo.componentInstance.types = ["string"];
15640
15653
  dialo.componentInstance.values = [
15641
15654
  _this.m_appService.getState().wkf_doc_info.uiid_app,
@@ -15710,7 +15723,7 @@
15710
15723
  var ok_op = false;
15711
15724
  if (data != null)
15712
15725
  if (data.result_msg == "OK") {
15713
- _this.toastr.info("INFO", "COMMENTO INSERITO", {
15726
+ _this.toastr.info(_this._tsr.instant("INFO"), _this._tsr.instant("COMMENTO INSERITO"), {
15714
15727
  timeOut: 1000,
15715
15728
  progressBar: true,
15716
15729
  });
@@ -15727,7 +15740,7 @@
15727
15740
  if (sdest != "")
15728
15741
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject
15729
15742
  .split("<OP>")
15730
- .join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" +
15743
+ .join(_this._tsr.instant("E' stato inserito un commento")), "<br><br>" + _this._tsr.instant("Commento inserito") + ": <br>" +
15731
15744
  _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, "");
15732
15745
  _this.refresh_list();
15733
15746
  }
@@ -15742,7 +15755,7 @@
15742
15755
  var ok_op = false;
15743
15756
  if (data != null)
15744
15757
  if (data.result_msg == "OK") {
15745
- _this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
15758
+ _this.toastr.info(_this._tsr.instant("INFO"), _this._tsr.instant("COMMENTO AGGIORNATO"), {
15746
15759
  timeOut: 1000,
15747
15760
  progressBar: true,
15748
15761
  });
@@ -15759,7 +15772,7 @@
15759
15772
  if (sdest != "")
15760
15773
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject
15761
15774
  .split("<OP>")
15762
- .join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" +
15775
+ .join(_this._tsr.instant("E' stato modificato un commento")), "<br><br>" + _this._tsr.instant("Commento modificato") + ": <br>" +
15763
15776
  _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, "");
15764
15777
  _this.refresh_list();
15765
15778
  }
@@ -15770,7 +15783,7 @@
15770
15783
  }());
15771
15784
  win_log_v2.decorators = [
15772
15785
  { type: i0.Component, args: [{
15773
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div\n style=\"font-size: 12px\"\n [style.height]=\"m_appService.getState().body_h - 130 + 'px'\"\n >\n <mat-tab-group\n #zz\n style=\"width:100%\"\n [style.height]=\"m_appService.getState().body_h - 140 + 'px'\"\n >\n <mat-tab label=\"WORKFLOW\" *ngIf=\"b_flussook\">\n <div [style.height]=\"m_appService.getState().body_h - 160 + 'px'\">\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center end\"\n fxFlex=\"90\"\n *ngIf=\"!b_edit && commenti_insert\"\n >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\">\n <mat-icon>note_add</mat-icon>\n INSERISCI</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n </div>\n\n <div fxLayout=\"column\" *ngIf=\"b_edit\">\n <br />\n <mat-form-field\n *ngIf=\"b_edit\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"annulla()\"\n >\n ANNULLA</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox\n [disabled]=\"not_comm_disabled\"\n [(ngModel)]=\"not_comm\"\n [hidden]=\"\n notifica_commenti == 0 ||\n (notifica_commenti == 1 && lettori == '')\n \"\n >\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br /><br />\n </div>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"\n let app of logs;\n let odd = odd;\n let even = even;\n index as i\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td>{{ app.data_creazione | date: \"dd/MM/yyyy HH:mm:ss\" }}</td>\n <td>{{ app.nc }}</td>\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>\n <mat-icon\n [matTooltip]=\"app.dest_notif\"\n *ngIf=\"app.dest_notif != null && app.dest_notif != ''\"\n >mail</mat-icon\n >\n </td>\n <td>\n <mat-icon\n *ngIf=\"\n i == 0 &&\n app.creatore ==\n m_appService.getState().wkf_doc_info.curr_user\n \"\n (click)=\"edit_comm(app)\"\n >edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </mat-tab>\n </mat-tab-group>\n </div>\n ",
15786
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div\n style=\"font-size: 12px\"\n [style.height]=\"m_appService.getState().body_h - 130 + 'px'\"\n >\n <mat-tab-group\n #zz\n style=\"width:100%\"\n [style.height]=\"m_appService.getState().body_h - 140 + 'px'\"\n >\n <mat-tab label=\"WORKFLOW\" *ngIf=\"b_flussook\">\n <div [style.height]=\"m_appService.getState().body_h - 160 + 'px'\">\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center end\"\n fxFlex=\"90\"\n *ngIf=\"!b_edit && commenti_insert\"\n >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\">\n <mat-icon>note_add</mat-icon>\n {{'INSERISCI' | translate}}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n </div>\n\n <div fxLayout=\"column\" *ngIf=\"b_edit\">\n <br />\n <mat-form-field\n *ngIf=\"b_edit\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"annulla()\"\n >\n {{'ANNULLA' | translate}}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox\n [disabled]=\"not_comm_disabled\"\n [(ngModel)]=\"not_comm\"\n [hidden]=\"\n notifica_commenti == 0 ||\n (notifica_commenti == 1 && lettori == '')\n \"\n >\n {{'Notifica Interessati' | translate}}\n </mat-checkbox>\n </div>\n <br /><br />\n </div>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\"> {{'Data' | translate}}</th>\n <th width=\"15%\"> {{'Utente' | translate}}</th>\n <th> {{'Operazione' | translate}}</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"\n let app of logs;\n let odd = odd;\n let even = even;\n index as i\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td>{{ app.data_creazione | date: \"dd/MM/yyyy HH:mm:ss\" }}</td>\n <td>{{ app.nc }}</td>\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>\n <mat-icon\n [matTooltip]=\"app.dest_notif\"\n *ngIf=\"app.dest_notif != null && app.dest_notif != ''\"\n >mail</mat-icon\n >\n </td>\n <td>\n <mat-icon\n *ngIf=\"\n i == 0 &&\n app.creatore ==\n m_appService.getState().wkf_doc_info.curr_user\n \"\n (click)=\"edit_comm(app)\"\n >edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </mat-tab>\n </mat-tab-group>\n </div>\n ",
15774
15787
  styles: [""]
15775
15788
  },] }
15776
15789
  ];
@@ -15781,18 +15794,20 @@
15781
15794
  { type: i3.ToastrService },
15782
15795
  { type: QueryService },
15783
15796
  { type: WkfService },
15784
- { type: FileService }
15797
+ { type: FileService },
15798
+ { type: core.TranslateService }
15785
15799
  ]; };
15786
15800
  win_log_v2.propDecorators = {
15787
15801
  zz: [{ type: i0.ViewChild, args: ["zz",] }]
15788
15802
  };
15789
15803
 
15790
15804
  var win_recupera_doc_v2 = /** @class */ (function () {
15791
- function win_recupera_doc_v2(dialogRef, m_appService, toastr, _dataService) {
15805
+ function win_recupera_doc_v2(dialogRef, m_appService, toastr, _dataService, _tsr) {
15792
15806
  this.dialogRef = dialogRef;
15793
15807
  this.m_appService = m_appService;
15794
15808
  this.toastr = toastr;
15795
15809
  this._dataService = _dataService;
15810
+ this._tsr = _tsr;
15796
15811
  this.flt_grid = "1=1";
15797
15812
  this.title = "RECUPERA DOCUMENTO";
15798
15813
  }
@@ -15808,7 +15823,7 @@
15808
15823
  this._dataService.doQuery(p).subscribe(function (data) {
15809
15824
  if (data != null)
15810
15825
  if (data.result_msg == "OK") {
15811
- _this.toastr.info("Documento " + _this.datagrid.sRow.codice + " Recuperato");
15826
+ _this.toastr.info(_this._tsr.instant("Documento") + " " + _this.datagrid.sRow.codice + " " + _this._tsr.instant("Recuperato"));
15812
15827
  _this.dialogRef.close("ok");
15813
15828
  }
15814
15829
  }, function (err) {
@@ -15818,25 +15833,25 @@
15818
15833
  win_recupera_doc_v2.prototype.init_w = function (id_app) {
15819
15834
  this.datagrid.columnDefs = [
15820
15835
  {
15821
- headerName: "Codice",
15836
+ headerName: this._tsr.instant("Codice"),
15822
15837
  field: "codice",
15823
15838
  filter: "agTextColumnFilter",
15824
15839
  filterParams: { newRowsAction: "keep" },
15825
15840
  },
15826
15841
  {
15827
- headerName: "Oggetto",
15842
+ headerName: this._tsr.instant("Oggetto"),
15828
15843
  field: "oggetto",
15829
15844
  filter: "agTextColumnFilter",
15830
15845
  filterParams: { newRowsAction: "keep" },
15831
15846
  },
15832
15847
  {
15833
- headerName: "Stato",
15848
+ headerName: this._tsr.instant("Stato"),
15834
15849
  field: "stat_stato",
15835
15850
  filter: "agTextColumnFilter",
15836
15851
  filterParams: { newRowsAction: "keep" },
15837
15852
  },
15838
15853
  {
15839
- headerName: "Richiedente",
15854
+ headerName: this._tsr.instant("Richiedente"),
15840
15855
  field: "nc",
15841
15856
  filter: "agTextColumnFilter",
15842
15857
  filterParams: { newRowsAction: "keep" },
@@ -15849,23 +15864,25 @@
15849
15864
  }());
15850
15865
  win_recupera_doc_v2.decorators = [
15851
15866
  { type: i0.Component, args: [{
15852
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"font-size: 15px;\">\n\n <br />\n <div style=\"width:100%;height:400px\">\n <div style=\"width:100%;height:100%\">\n <FHGrid\n [filters]=\"flt_grid\"\n init_fill=\"false\"\n show_buttons=\"false\"\n vis\n #dtm\n (dclicked)=\"edit($event)\"\n g_width=\"100%\"\n g_height=\"100%\"\n tbl_name=\"wkf_documents\"\n grid_key=\"r_wkf_documents\"\n sort_field=\"codice desc\"\n off_set=\"50\"\n fields=\"*\"\n ></FHGrid>\n </div>\n </div>\n <br />\n\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close('')\"\n >\n CHIUDI\n </button>\n </div>\n </div>\n </div>\n "
15867
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title | translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"font-size: 15px;\">\n\n <br />\n <div style=\"width:100%;height:400px\">\n <div style=\"width:100%;height:100%\">\n <FHGrid\n [filters]=\"flt_grid\"\n init_fill=\"false\"\n show_buttons=\"false\"\n vis\n #dtm\n (dclicked)=\"edit($event)\"\n g_width=\"100%\"\n g_height=\"100%\"\n tbl_name=\"wkf_documents\"\n grid_key=\"r_wkf_documents\"\n sort_field=\"codice desc\"\n off_set=\"50\"\n fields=\"*\"\n ></FHGrid>\n </div>\n </div>\n <br />\n\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close('')\"\n >\n {{'CHIUDI' | translate}}\n </button>\n </div>\n </div>\n </div>\n "
15853
15868
  },] }
15854
15869
  ];
15855
15870
  win_recupera_doc_v2.ctorParameters = function () { return [
15856
15871
  { type: dialog.MatDialogRef },
15857
15872
  { type: AppService },
15858
15873
  { type: i3.ToastrService },
15859
- { type: QueryService }
15874
+ { type: QueryService },
15875
+ { type: core.TranslateService }
15860
15876
  ]; };
15861
15877
  win_recupera_doc_v2.propDecorators = {
15862
15878
  datagrid: [{ type: i0.ViewChild, args: ["dtm",] }]
15863
15879
  };
15864
15880
 
15865
15881
  var win_riassegna_select_level_v2 = /** @class */ (function () {
15866
- function win_riassegna_select_level_v2(dialogRef, toastr) {
15882
+ function win_riassegna_select_level_v2(dialogRef, toastr, _tsr) {
15867
15883
  this.dialogRef = dialogRef;
15868
15884
  this.toastr = toastr;
15885
+ this._tsr = _tsr;
15869
15886
  this.selval = "-1";
15870
15887
  this.title = "";
15871
15888
  this.errorMsg = "";
@@ -15891,14 +15908,14 @@
15891
15908
  };
15892
15909
  win_riassegna_select_level_v2.prototype.ok = function () {
15893
15910
  if (this.selval == null) {
15894
- this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
15911
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
15895
15912
  timeOut: 1000,
15896
15913
  progressBar: true,
15897
15914
  });
15898
15915
  return;
15899
15916
  }
15900
15917
  if (this.selval == "-1") {
15901
- this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
15918
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
15902
15919
  timeOut: 1000,
15903
15920
  progressBar: true,
15904
15921
  });
@@ -15914,7 +15931,7 @@
15914
15931
  }
15915
15932
  }
15916
15933
  if (lvl == null) {
15917
- this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
15934
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
15918
15935
  timeOut: 1000,
15919
15936
  progressBar: true,
15920
15937
  });
@@ -15927,21 +15944,23 @@
15927
15944
  }());
15928
15945
  win_riassegna_select_level_v2.decorators = [
15929
15946
  { type: i0.Component, args: [{
15930
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"font-size: 15px;\">\n\n <mat-dialog-content\n ><br /><br />\n <mat-form-field\n style=\"width:100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>Seleziona Step:</mat-label>\n <mat-select #cmb [(ngModel)]=\"selval\" (change)=\"sc()\">\n <mat-option value=\"-1\">Seleziona</mat-option>\n <mat-option value=\"{{ app.step }}\" *ngFor=\"let app of myData\">{{\n app.description\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <br /><br /><br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">\n {{ OK_BUTTON }}</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n ANNULLA\n </button>\n </div>\n <br /><br />\n </mat-dialog-content>\n <p style=\"color:#CC0000;font-size:9px;\" *ngIf=\"errorMsg != ''\">\n {{ errorMsg }}\n </p>\n </div>\n </div>\n "
15947
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title | translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"font-size: 15px;\">\n\n <mat-dialog-content\n ><br /><br />\n <mat-form-field\n style=\"width:100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Seleziona Step' | translate}}:</mat-label>\n <mat-select #cmb [(ngModel)]=\"selval\" (change)=\"sc()\">\n <mat-option value=\"-1\">Seleziona</mat-option>\n <mat-option value=\"{{ app.step }}\" *ngFor=\"let app of myData\">\n {{app.description | translate }}\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <br /><br /><br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">\n {{ OK_BUTTON | translate }}</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate }}\n </button>\n </div>\n <br /><br />\n </mat-dialog-content>\n <p style=\"color:#CC0000;font-size:9px;\" *ngIf=\"errorMsg != ''\">\n {{ errorMsg }}\n </p>\n </div>\n </div>\n "
15931
15948
  },] }
15932
15949
  ];
15933
15950
  win_riassegna_select_level_v2.ctorParameters = function () { return [
15934
15951
  { type: dialog.MatDialogRef },
15935
- { type: i3.ToastrService }
15952
+ { type: i3.ToastrService },
15953
+ { type: core.TranslateService }
15936
15954
  ]; };
15937
15955
  win_riassegna_select_level_v2.propDecorators = {
15938
15956
  smtr: [{ type: i0.ViewChild, args: ["cmb",] }]
15939
15957
  };
15940
15958
 
15941
15959
  var win_riassegna_select_user_v2 = /** @class */ (function () {
15942
- function win_riassegna_select_user_v2(dialogRef, toastr) {
15960
+ function win_riassegna_select_user_v2(dialogRef, toastr, _tsr) {
15943
15961
  this.dialogRef = dialogRef;
15944
15962
  this.toastr = toastr;
15963
+ this._tsr = _tsr;
15945
15964
  this.commento_hidden = false;
15946
15965
  this.nota = "";
15947
15966
  this.nota_commento = "";
@@ -15955,14 +15974,14 @@
15955
15974
  win_riassegna_select_user_v2.prototype.ok = function () {
15956
15975
  if (!this.commento_hidden)
15957
15976
  if (this.nota == "") {
15958
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
15977
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("INSERIRE IL COMMENTO"), {
15959
15978
  timeOut: 1000,
15960
15979
  progressBar: true,
15961
15980
  });
15962
15981
  return;
15963
15982
  }
15964
15983
  if (this.up.getSelArr().length == 0) {
15965
- this.toastr.error("ERRORE", "SELEZIONARE ALMENO UN UTENTE", {
15984
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE ALMENO UN UTENTE"), {
15966
15985
  timeOut: 1000,
15967
15986
  progressBar: true,
15968
15987
  });
@@ -15979,13 +15998,14 @@
15979
15998
  }());
15980
15999
  win_riassegna_select_user_v2.decorators = [
15981
16000
  { type: i0.Component, args: [{
15982
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content fxLayout=\"column\" style=\"font-size:12px\">\n <div style=\"width:100%;height:500px\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n\n <mat-form-field\n [hidden]=\"commento_hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>Commento {{ nota_commento }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"2\"></textarea>\n </mat-form-field>\n </div>\n <div mat-dialog-actions fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n ANNULLA\n </button>\n </div>\n </div>\n </div>\n ",
16001
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title | translate }}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content fxLayout=\"column\" style=\"font-size:12px\">\n <div style=\"width:100%;height:500px\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n\n <mat-form-field\n [hidden]=\"commento_hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate }} {{ nota_commento | translate }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"2\"></textarea>\n </mat-form-field>\n </div>\n <div mat-dialog-actions fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate }}</button>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate }}\n </button>\n </div>\n </div>\n </div>\n ",
15983
16002
  styles: ["\u00A0.mat-dialog-content\u00A0{\u00A0\u00A0max-height:\u00A0unset\u00A0!important;\u00A0}\n\n"]
15984
16003
  },] }
15985
16004
  ];
15986
16005
  win_riassegna_select_user_v2.ctorParameters = function () { return [
15987
16006
  { type: dialog.MatDialogRef },
15988
- { type: i3.ToastrService }
16007
+ { type: i3.ToastrService },
16008
+ { type: core.TranslateService }
15989
16009
  ]; };
15990
16010
  win_riassegna_select_user_v2.propDecorators = {
15991
16011
  up: [{ type: i0.ViewChild, args: ["up",] }]
@@ -16033,7 +16053,7 @@
16033
16053
  }());
16034
16054
  win_salva_annulla_v2.decorators = [
16035
16055
  { type: i0.Component, args: [{
16036
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div mat-dialog-content>\n <div style=\"width:400px\" [hidden]=\"!b_commento\"><br /></div>\n <div style=\"width:400px\" [hidden]=\"!b_commento\">\n <FHTextArea\n label=\"{{ commento_mgs }}\"\n required\n [(ngModel)]=\"commento\"\n ></FHTextArea>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"salva_esci()\">\n {{ salva_ed_esci }}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"esci_senza_salv()\">\n {{ esci_senza_salvataggi }}\n </button>\n </div>\n </div>\n "
16056
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div mat-dialog-content>\n <div style=\"width:400px\" [hidden]=\"!b_commento\"><br /></div>\n <div style=\"width:400px\" [hidden]=\"!b_commento\">\n <FHTextArea\n label=\"{{ commento_mgs |translate }}\"\n required\n [(ngModel)]=\"commento\"\n ></FHTextArea>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"salva_esci()\">\n {{ salva_ed_esci|translate }}</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"esci_senza_salv()\">\n {{ esci_senza_salvataggi |translate }}\n </button>\n </div>\n </div>\n "
16037
16057
  },] }
16038
16058
  ];
16039
16059
  win_salva_annulla_v2.ctorParameters = function () { return [
@@ -16043,10 +16063,11 @@
16043
16063
  ]; };
16044
16064
 
16045
16065
  var win_select_canale_v2 = /** @class */ (function () {
16046
- function win_select_canale_v2(dialogRef, m_appService, toastr) {
16066
+ function win_select_canale_v2(dialogRef, m_appService, toastr, _tsr) {
16047
16067
  this.dialogRef = dialogRef;
16048
16068
  this.m_appService = m_appService;
16049
16069
  this.toastr = toastr;
16070
+ this._tsr = _tsr;
16050
16071
  this.selval = "-1";
16051
16072
  this.errorMsg = "";
16052
16073
  this.title = 'SELEZIONA AMBITO';
@@ -16058,7 +16079,7 @@
16058
16079
  };
16059
16080
  win_select_canale_v2.prototype.ok = function () {
16060
16081
  if (this.selval == "-1") {
16061
- this.toastr.error("ERRORE", "SELEZIONARE AMBITO", {
16082
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE AMBITO"), {
16062
16083
  timeOut: 1000,
16063
16084
  progressBar: true,
16064
16085
  });
@@ -16071,22 +16092,24 @@
16071
16092
  }());
16072
16093
  win_select_canale_v2.decorators = [
16073
16094
  { type: i0.Component, args: [{
16074
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"font-size: 15px;\">\n\n <div mat-dialog-content>\n <br /><br />\n <mat-form-field\n style=\"width:100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>Seleziona Ambito:</mat-label>\n <mat-select #cmb [(ngModel)]=\"selval\">\n <mat-option value=\"-1\">Seleziona</mat-option>\n <mat-option value=\"{{ app }}\" *ngFor=\"let app of myData\">{{\n app\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button>\n </div>\n <p style=\"color:#CC0000;font-size:9px;\" *ngIf=\"errorMsg != ''\">\n {{ errorMsg }}\n </p>\n </div>\n </div>\n "
16095
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title|translate }}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div mat-dialog-content style=\"font-size: 15px;\">\n\n <div mat-dialog-content>\n <br /><br />\n <mat-form-field\n style=\"width:100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Seleziona Ambito'|translate }}:</mat-label>\n <mat-select #cmb [(ngModel)]=\"selval\">\n <mat-option value=\"-1\">{{'Seleziona' |translate }}</mat-option>\n <mat-option value=\"{{ app }}\" *ngFor=\"let app of myData\">\n {{app |translate }}\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate }}</button>\n </div>\n <p style=\"color:#CC0000;font-size:9px;\" *ngIf=\"errorMsg != ''\">\n {{ errorMsg |translate }}\n </p>\n </div>\n </div>\n "
16075
16096
  },] }
16076
16097
  ];
16077
16098
  win_select_canale_v2.ctorParameters = function () { return [
16078
16099
  { type: dialog.MatDialogRef },
16079
16100
  { type: AppService },
16080
- { type: i3.ToastrService }
16101
+ { type: i3.ToastrService },
16102
+ { type: core.TranslateService }
16081
16103
  ]; };
16082
16104
  win_select_canale_v2.propDecorators = {
16083
16105
  smtr: [{ type: i0.ViewChild, args: ["cmb",] }]
16084
16106
  };
16085
16107
 
16086
16108
  var win_select_level_v2 = /** @class */ (function () {
16087
- function win_select_level_v2(dialogRef, toastr, data) {
16109
+ function win_select_level_v2(dialogRef, toastr, _tsr, data) {
16088
16110
  this.dialogRef = dialogRef;
16089
16111
  this.toastr = toastr;
16112
+ this._tsr = _tsr;
16090
16113
  this.data = data;
16091
16114
  this.selval = "-1";
16092
16115
  this.errorMsg = "";
@@ -16116,7 +16139,7 @@
16116
16139
  }
16117
16140
  for (var i = 0; i < this.trans.length; i++) {
16118
16141
  if (this.selval == this.trans[i].uiid) {
16119
- this.OK_BUTTON = "OK (" + this.trans[i].description + ")";
16142
+ this.OK_BUTTON = this._tsr.instant('OK') + " (" + this.trans[i].description + ")";
16120
16143
  break;
16121
16144
  }
16122
16145
  }
@@ -16157,7 +16180,7 @@
16157
16180
  }*/
16158
16181
  win_select_level_v2.prototype.ok = function () {
16159
16182
  if (this.selval == null || this.selval == '' || this.selval == '-1') {
16160
- this.toastr.error('Selezionare lo step di destinazione');
16183
+ this.toastr.error(this._tsr.instant('Selezionare lo step di destinazione'));
16161
16184
  return;
16162
16185
  }
16163
16186
  for (var i = 0; i < this.trans.length; i++) {
@@ -16171,12 +16194,13 @@
16171
16194
  }());
16172
16195
  win_select_level_v2.decorators = [
16173
16196
  { type: i0.Component, args: [{
16174
- template: "\n<div\u00A0fxLayout=\"column\">\n<div\u00A0\u00A0fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0\u00A0\u00A0class=\"dialog_header\">\u00A0\n\n<div\u00A0fxLayout=\"row\"\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0fxFlex=\"90\"><div>{{title}}</div></div>\u00A0\n\n<div\u00A0\u00A0\u00A0fxFlex=\"10\"\u00A0fxLayout=\"row\"\u00A0fxLayoutAlign=\"end\u00A0center\">\n <div><img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"dialogRef.close(null)\"\u00A0/>\u00A0\u00A0</div>\n</div>\n\n</div>\n\n\n<mat-dialog-content>\n<hr\u00A0width=\"100%\"\u00A0size=\"0.5\"\u00A0color=\"#DDDDDD\">\n\n <br />\n <div\u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div *ngFor=\"let app of trans\">\n <button mat-raised-button [style.background-color]=\"app.color\" (click)=\"sel(app)\"\n [style.color]=\"app.color_font\" style=\"font-weight:bold;font-size:18px;min-width:300px\">\n <i *ngIf=\"app.icon!=null && app.icon!=''\" class=\"fa {{app.icon}}\" aria-hidden=\"true\"></i>\n\n{{ app.description}}</button>\n<br><br>\n\n\n</div>\n </div>\n </mat-dialog-content>\n\n\n "
16197
+ template: "\n<div\u00A0fxLayout=\"column\">\n<div\u00A0\u00A0fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0\u00A0\u00A0class=\"dialog_header\">\u00A0\n\n<div\u00A0fxLayout=\"row\"\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0fxFlex=\"90\"><div>{{title|translate}}</div></div>\u00A0\n\n<div\u00A0\u00A0\u00A0fxFlex=\"10\"\u00A0fxLayout=\"row\"\u00A0fxLayoutAlign=\"end\u00A0center\">\n <div><img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"dialogRef.close(null)\"\u00A0/>\u00A0\u00A0</div>\n</div>\n\n</div>\n\n\n<mat-dialog-content>\n<hr\u00A0width=\"100%\"\u00A0size=\"0.5\"\u00A0color=\"#DDDDDD\">\n\n <br />\n <div\u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div *ngFor=\"let app of trans\">\n <button mat-raised-button [style.background-color]=\"app.color\" (click)=\"sel(app)\"\n [style.color]=\"app.color_font\" style=\"font-weight:bold;font-size:18px;min-width:300px\">\n <i *ngIf=\"app.icon!=null && app.icon!=''\" class=\"fa {{app.icon}}\" aria-hidden=\"true\"></i>\n\n{{ app.description|translate}}</button>\n<br><br>\n\n\n</div>\n </div>\n</mat-dialog-content>\n\n\n "
16175
16198
  },] }
16176
16199
  ];
16177
16200
  win_select_level_v2.ctorParameters = function () { return [
16178
16201
  { type: dialog.MatDialogRef },
16179
16202
  { type: i3.ToastrService },
16203
+ { type: core.TranslateService },
16180
16204
  { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
16181
16205
  ]; };
16182
16206
  win_select_level_v2.propDecorators = {
@@ -16184,9 +16208,10 @@
16184
16208
  };
16185
16209
 
16186
16210
  var win_sostituisci_utente_v2 = /** @class */ (function () {
16187
- function win_sostituisci_utente_v2(dialogRef, toastr) {
16211
+ function win_sostituisci_utente_v2(dialogRef, toastr, _tsr) {
16188
16212
  this.dialogRef = dialogRef;
16189
16213
  this.toastr = toastr;
16214
+ this._tsr = _tsr;
16190
16215
  this.nota = "";
16191
16216
  this.title = "";
16192
16217
  this.comm_notrequired = true;
@@ -16198,27 +16223,27 @@
16198
16223
  win_sostituisci_utente_v2.prototype.ok = function () {
16199
16224
  console.log(this.up.getUsersUsername(), this.up1.getUsersUsername());
16200
16225
  if (this.up.getUsersUsername() == null) {
16201
- this.toastr.error("selezionare utente origine");
16226
+ this.toastr.error(this._tsr.instant("selezionare utente origine"));
16202
16227
  return;
16203
16228
  }
16204
16229
  if (this.up.getUsersUsername() == "-1") {
16205
- this.toastr.error("selezionare utente origine");
16230
+ this.toastr.error(this._tsr.instant("selezionare utente origine"));
16206
16231
  return;
16207
16232
  }
16208
16233
  if (this.up.getUsersUsername() == "") {
16209
- this.toastr.error("selezionare utente origine");
16234
+ this.toastr.error(this._tsr.instant("selezionare utente origine"));
16210
16235
  return;
16211
16236
  }
16212
16237
  if (this.up1.getUsersUsername() == null) {
16213
- this.toastr.error("selezionare utente destinazione");
16238
+ this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
16214
16239
  return;
16215
16240
  }
16216
16241
  if (this.up1.getUsersUsername() == "-1") {
16217
- this.toastr.error("selezionare utente destinazione");
16242
+ this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
16218
16243
  return;
16219
16244
  }
16220
16245
  if (this.up1.getUsersUsername() == "") {
16221
- this.toastr.error("selezionare utente destinazione");
16246
+ this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
16222
16247
  return;
16223
16248
  }
16224
16249
  var o = new Object();
@@ -16232,12 +16257,13 @@
16232
16257
  }());
16233
16258
  win_sostituisci_utente_v2.decorators = [
16234
16259
  { type: i0.Component, args: [{
16235
- template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div\n mat-dialog-content\n fxLayoutGap=\"5px\"\n fxLayout=\"column\"\n style=\"font-size:12px\"\n >\n <div style=\"width:100%\">\n <FHUserField label=\"Utente da sostituire\" #up></FHUserField>\n </div>\n <div style=\"width:100%\">\n <FHUserField label=\"Utente sostituto\" #up1></FHUserField>\n </div>\n </div>\n <div mat-dialog-actions fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n ANNULLA\n </button>\n </div>\n </div>\n </div>\n "
16260
+ template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title|translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div\n mat-dialog-content\n fxLayoutGap=\"5px\"\n fxLayout=\"column\"\n style=\"font-size:12px\"\n >\n <div style=\"width:100%\">\n <FHUserField [label]=\"'Utente da sostituire' |translate\" #up></FHUserField>\n </div>\n <div style=\"width:100%\">\n <FHUserField [label]=\"'Utente sostituto' |translate\" #up1></FHUserField>\n </div>\n </div>\n <div mat-dialog-actions fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate }}</button>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate }}\n </button>\n </div>\n </div>\n </div>\n "
16236
16261
  },] }
16237
16262
  ];
16238
16263
  win_sostituisci_utente_v2.ctorParameters = function () { return [
16239
16264
  { type: dialog.MatDialogRef },
16240
- { type: i3.ToastrService }
16265
+ { type: i3.ToastrService },
16266
+ { type: core.TranslateService }
16241
16267
  ]; };
16242
16268
  win_sostituisci_utente_v2.propDecorators = {
16243
16269
  up: [{ type: i0.ViewChild, args: ["up",] }],
@@ -16289,7 +16315,7 @@
16289
16315
  win_uploads_v2.decorators = [
16290
16316
  { type: i0.Component, args: [{
16291
16317
  selector: "wkf_win_upload",
16292
- template: "\n <div\u00A0 \u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n \u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-dialog-content style=\"font-size:12px\">\n<br><br>\n <FHUploadPanel\n [enabled]=\"enabled\"\n #upc\n [access_control]=\"access_control\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n [ruolo_supervisore]=\"admin_role\"\n ></FHUploadPanel>\n </mat-dialog-content>\n <br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'CHIUDI' | translate}}\n </button>\n </div>\n </div>\n ",
16318
+ template: "\n <div\u00A0 \u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n \u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title |translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-dialog-content style=\"font-size:12px\">\n<br><br>\n <FHUploadPanel\n [enabled]=\"enabled\"\n #upc\n [access_control]=\"access_control\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n [ruolo_supervisore]=\"admin_role\"\n ></FHUploadPanel>\n </mat-dialog-content>\n <br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'CHIUDI' | translate}}\n </button>\n </div>\n </div>\n ",
16293
16319
  styles: [""]
16294
16320
  },] }
16295
16321
  ];
@@ -21607,11 +21633,11 @@
21607
21633
  wkfapp_v2.prototype.annulla_richiesta = function () {
21608
21634
  var _this = this;
21609
21635
  if (this.get_grid().sRow == null) {
21610
- this._toastr.error("Selezionare il documento da annullare");
21636
+ this._toastr.error(this.tsr.instant("Selezionare il documento da annullare"));
21611
21637
  return;
21612
21638
  }
21613
- localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", "Conferma Operazione");
21614
- localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare il documento numero: " +
21639
+ localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", this.tsr.instant("Conferma Operazione"));
21640
+ localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", this.tsr.instant("Confermi di voler annullare il documento numero: ") +
21615
21641
  this.get_grid().sRow.codice +
21616
21642
  "?");
21617
21643
  var dialogRef = this.dialog.open(fh_win_confirm, {
@@ -21650,7 +21676,7 @@
21650
21676
  return;
21651
21677
  }
21652
21678
  var dialogRef = this.dialog.open(fh_win_confirm, {
21653
- disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
21679
+ disableClose: true, data: { title_dialog: this.tsr.instant("Conferma Operazione"), msg_dialog: this.tsr.instant("Confermi di voler assegnarti il documento?") }
21654
21680
  });
21655
21681
  dialogRef.afterClosed().subscribe(function (result) {
21656
21682
  if (result) {
@@ -21679,7 +21705,7 @@
21679
21705
  if (b_found) {
21680
21706
  console.log(livello, stato_doc);
21681
21707
  if (livello != stato_doc) {
21682
- _this._toastr.error('Il documento non è in stato Bozza');
21708
+ _this._toastr.error(_this.tsr.instant('Il documento non è in stato Bozza'));
21683
21709
  return;
21684
21710
  }
21685
21711
  var p_2 = new QParam();
@@ -21689,13 +21715,13 @@
21689
21715
  _this.m_dataService.doQuery(p_2).subscribe(function (data) {
21690
21716
  if (data != null)
21691
21717
  if (data.result_msg == "OK") {
21692
- _this._toastr.info('Documento aggiornato');
21718
+ _this._toastr.info(_this.tsr.instant('Documento aggiornato'));
21693
21719
  _this.get_grid().doFill("");
21694
21720
  }
21695
21721
  });
21696
21722
  }
21697
21723
  else {
21698
- _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
21724
+ _this._toastr.error(_this.tsr.instant('L\'utente non è configurato per lo step BOZZA'));
21699
21725
  }
21700
21726
  });
21701
21727
  });
@@ -21705,7 +21731,7 @@
21705
21731
  wkfapp_v2.prototype.sostituisci_utente = function () {
21706
21732
  var _this = this;
21707
21733
  if (this.get_grid().sRow == null) {
21708
- this._toastr.error("Selezionare il documento");
21734
+ this._toastr.error(this.tsr.instant("Selezionare il documento"));
21709
21735
  return;
21710
21736
  }
21711
21737
  var p = new QParam();
@@ -21723,7 +21749,7 @@
21723
21749
  setTimeout(function () {
21724
21750
  dialogRef_1.componentInstance.up.all_user = data.result_data;
21725
21751
  dialogRef_1.componentInstance.title =
21726
- "Sostituzione utente: " +
21752
+ _this.tsr.instant("Sostituzione utente: ") +
21727
21753
  _this.get_grid().sRow.codice +
21728
21754
  " - " +
21729
21755
  _this.get_grid().sRow.oggetto;
@@ -21744,7 +21770,7 @@
21744
21770
  _this.m_dataService.doQuery(p_3).subscribe(function (data) {
21745
21771
  if (data != null)
21746
21772
  if (data.result_msg == "OK") {
21747
- _this._toastr.info("Workflow Aggiornato");
21773
+ _this._toastr.info(_this.tsr.instant("Workflow Aggiornato"));
21748
21774
  }
21749
21775
  });
21750
21776
  }
@@ -21784,7 +21810,7 @@
21784
21810
  setTimeout(function () {
21785
21811
  dialogRef_2.componentInstance.setStepCombo(s_i_1);
21786
21812
  dialogRef_2.componentInstance.title =
21787
- "Riassegnazione documento: " +
21813
+ _this.tsr.instant("Riassegnazione documento: ") +
21788
21814
  _this.get_grid().sRow.codice +
21789
21815
  " - " +
21790
21816
  _this.get_grid().sRow.oggetto;
@@ -21861,7 +21887,7 @@
21861
21887
  setTimeout(function () {
21862
21888
  dialogRef_3.componentInstance.arrAutori = arrAutori;
21863
21889
  dialogRef_3.componentInstance.title =
21864
- "Riassegnazione documento: " +
21890
+ _this.tsr.instant("Riassegnazione documento: ") +
21865
21891
  _this.get_grid().sRow.codice +
21866
21892
  " - " +
21867
21893
  _this.get_grid().sRow.oggetto;
@@ -21917,7 +21943,7 @@
21917
21943
  old_grp = this.wax[i].gruppo_parallelo;
21918
21944
  }
21919
21945
  else {
21920
- this._toastr.error("impossibile assegnare a utenti di gruppi distiniti");
21946
+ this._toastr.error(this.tsr.instant("impossibile assegnare a utenti di gruppi distiniti"));
21921
21947
  return;
21922
21948
  }
21923
21949
  if (a_datanot != "")
@@ -21948,11 +21974,11 @@
21948
21974
  }
21949
21975
  rxjs.forkJoin(op).subscribe(function (result) { });
21950
21976
  this.sendEMail_ex(this.user_idp, a_datanot, this.titolo_email +
21951
- "L'utente " +
21977
+ this.tsr.instant("L'utente ") +
21952
21978
  this.user_cognome +
21953
21979
  " " +
21954
21980
  this.user_nome +
21955
- " ti ha riassegnato il documento: " +
21981
+ this.tsr.instant(" ti ha riassegnato il documento: ") +
21956
21982
  this.get_grid().sRow.codice, "Commento:\n\n" + this.nota_wax, this.id_applicativo, this.get_grid().sRow.uiid, this.app_s.COMPANY_SITE_ROOT +
21957
21983
  "#/" +
21958
21984
  this.app_root +
@@ -21967,7 +21993,7 @@
21967
21993
  p.values = [
21968
21994
  this.id_applicativo,
21969
21995
  this.get_grid().sRow.uiid,
21970
- "Documento riassegnato a " + a_utif,
21996
+ this.tsr.instant("Documento riassegnato a ") + a_utif,
21971
21997
  this.user_idp,
21972
21998
  this.os_r.description,
21973
21999
  this.get_grid().sRow.stato,
@@ -22025,7 +22051,7 @@
22025
22051
  p.values = [
22026
22052
  this.id_applicativo,
22027
22053
  this.get_grid().sRow.uiid,
22028
- "Documento riassegnato, commento:\n" + this.nota_wax,
22054
+ this.tsr.instant("Documento riassegnato, commento:") + "\n" + this.nota_wax,
22029
22055
  this.user_idp,
22030
22056
  "",
22031
22057
  ];
@@ -22104,7 +22130,7 @@
22104
22130
  });
22105
22131
  setTimeout(function () {
22106
22132
  dialogRef_4.componentInstance.arrAutori = data.result_data;
22107
- dialogRef_4.componentInstance.title = "Impersona Utente";
22133
+ dialogRef_4.componentInstance.title = _this.tsr.instant("Impersona Utente");
22108
22134
  dialogRef_4.componentInstance.commento_hidden = true;
22109
22135
  });
22110
22136
  dialogRef_4.afterClosed().subscribe(function (result) {
@@ -22183,7 +22209,7 @@
22183
22209
  this.user_idp = this.app_s.getState().wkf_obj.user_idp;
22184
22210
  this.app_root = this.app_s.getState().wkf_obj.app_root;
22185
22211
  this.title = this.app_s.getState().wkf_obj.title;
22186
- this.m_uti.set_home_title(this.att_panelcat);
22212
+ this.m_uti.set_home_title(this.tsr.instant(this.att_panelcat));
22187
22213
  };
22188
22214
  wkfapp_v2.prototype.init_Panel = function (cod_documento, id_Doc) {
22189
22215
  this.m_id_Doc = id_Doc;
@@ -22263,7 +22289,7 @@
22263
22289
  _this.user_nome = _this.app_s.user_name;
22264
22290
  _this.user_cognome = _this.app_s.user_surname;
22265
22291
  _this.user_email = _this.app_s.user_email;
22266
- _this.m_uti.set_home_title(_this.att_panelcat);
22292
+ _this.m_uti.set_home_title(_this.tsr.instant(_this.att_panelcat));
22267
22293
  var p_5 = new QParam();
22268
22294
  p_5.sql = "SELECT_UTENTE_WKF_ADMIN";
22269
22295
  p_5.types = ["string", "string"];
@@ -22431,11 +22457,11 @@
22431
22457
  this.bNuovaRev_Agg = false;
22432
22458
  this.hide_richiedente = false;
22433
22459
  this.bEdit_Agg = false;
22434
- this.btnSalva_label = "SALVA";
22435
- this.btnTerminaOp_label = "Termina Attività";
22436
- this.btnApprova_label = "APPROVA";
22437
- this.btnAssegna_label = "Assegna";
22438
- this.btnRespingi_label = "RESPINGI";
22460
+ this.btnSalva_label = this.tsr.instant("SALVA");
22461
+ this.btnTerminaOp_label = this.tsr.instant("Termina Attività");
22462
+ this.btnApprova_label = this.tsr.instant("APPROVA");
22463
+ this.btnAssegna_label = this.tsr.instant("Assegna");
22464
+ this.btnRespingi_label = this.tsr.instant("RESPINGI");
22439
22465
  this.id_documento = "";
22440
22466
  this.m_autori = "";
22441
22467
  this.m_lettori = "";
@@ -23913,13 +23939,13 @@
23913
23939
  this.bEdit_bozza = false;
23914
23940
  this.bNuovaRev_Agg = false;
23915
23941
  this.bEdit_Agg = this.bEdit_wkf;
23916
- this.btnSalva_label = "SALVA";
23917
- this.btnTerminaOp_label = "Termina Attività";
23918
- this.btnApprova_label = "APPROVA";
23919
- this.btnAssegna_label = "Assegna";
23920
- this.btnRespingi_label = "RESPINGI";
23921
- this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
23922
- this.reset_form_v(this.app_info.descrizione_breve + " - Nuova Richiesta");
23942
+ this.btnSalva_label = this.tsr.instant("SALVA");
23943
+ this.btnTerminaOp_label = this.tsr.instant("Termina Attività");
23944
+ this.btnApprova_label = this.tsr.instant("APPROVA");
23945
+ this.btnAssegna_label = this.tsr.instant("Assegna");
23946
+ this.btnRespingi_label = this.tsr.instant("RESPINGI");
23947
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) + " - " + this.tsr.instant("Nuova Richiesta"));
23948
+ this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) + " - " + this.tsr.instant("Nuova Richiesta"));
23923
23949
  this.reset_counters_int(0, 0);
23924
23950
  /*
23925
23951
  dati_aggiuntivi.id_doc=id_documento;
@@ -24005,22 +24031,22 @@
24005
24031
  }
24006
24032
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
24007
24033
  if (this.m_obj.v == null)
24008
- this.uti_s.set_home_title(this.app_info.descrizione_breve +
24034
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
24009
24035
  " " +
24010
24036
  this.m_obj.codice +
24011
24037
  " - " +
24012
- this.m_obj.stat_stato);
24038
+ this.tsr.instant(this.m_obj.stat_stato));
24013
24039
  else
24014
- this.uti_s.set_home_title(this.app_info.descrizione_breve +
24040
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
24015
24041
  " " +
24016
24042
  this.m_obj.codice + "/" + this.m_obj.v +
24017
24043
  " - " +
24018
- this.m_obj.stat_stato);
24019
- this.reset_form_v(this.app_info.descrizione_breve +
24044
+ this.tsr.instant(this.m_obj.stat_stato));
24045
+ this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
24020
24046
  " " +
24021
24047
  this.m_obj.codice +
24022
24048
  " - " +
24023
- this.m_obj.stat_stato);
24049
+ this.tsr.instant(this.m_obj.stat_stato));
24024
24050
  this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
24025
24051
  //+' ('+s_uto+')');
24026
24052
  };
@@ -24038,8 +24064,8 @@
24038
24064
  var _this = this;
24039
24065
  var dialogRef = this.m_dialog.open(fh_win_confirm, {
24040
24066
  disableClose: true, data: {
24041
- title_dialog: "Conferma Operazione",
24042
- msg_dialog: "Confermi di voler revisionare il documento?"
24067
+ title_dialog: this.tsr.instant("Conferma Operazione"),
24068
+ msg_dialog: this.tsr.instant("Confermi di voler revisionare il documento?")
24043
24069
  }
24044
24070
  });
24045
24071
  dialogRef.afterClosed().subscribe(function (result) {
@@ -24051,7 +24077,7 @@
24051
24077
  _this.m_dataService.doQuery(p).subscribe(function (data) {
24052
24078
  if (data != null)
24053
24079
  if (data.result_msg == "OK") {
24054
- _this.alert('Revisione generata', 0);
24080
+ _this.alert(_this.tsr.instant('Revisione generata'), 0);
24055
24081
  window.location.reload();
24056
24082
  }
24057
24083
  });