@fluxhub/fluxhub-lib 10.0.621 → 10.0.623

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.
@@ -2554,7 +2554,7 @@
2554
2554
  fh_win_picklist.decorators = [
2555
2555
  { type: i0.Component, args: [{
2556
2556
  selector: "FHPickList",
2557
- template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" style=\"min-width:1000px\" fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\" fxFlex=\"10\" fxLayoutAlign=\"center center\"\n style=\"height: 450px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div fxLayoutAlign=\"center center\" fxLayout=\"column\"\n\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button> <br *ngIf=\"!single_sel\" /><br *ngIf=\"!single_sel\"/> <br *ngIf=\"!single_sel\"/><br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"add_all()\"\n [disabled]=\"value_list_sel.length==0\"\n >\n Sel. Tutti\n </button> <br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"rem_all()\"\n [disabled]=\"value_sel.length==0\"\n >\n Desel. Tutti\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'}}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\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)=\"dialogRef.close()\"\n >\n {{'Annulla' | translate}}\n </button>\n </div>\n </div>\n ",
2557
+ template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" style=\"min-width:1000px\" fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\" fxFlex=\"10\" fxLayoutAlign=\"center center\"\n style=\"height: 450px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div fxLayoutAlign=\"center center\" fxLayout=\"column\"\n\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button> <br *ngIf=\"!single_sel\" /><br *ngIf=\"!single_sel\"/> <br *ngIf=\"!single_sel\"/><br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"add_all()\" matTooltip=\"Seleziona Tutto\"\n [disabled]=\"value_list_sel.length==0\"\n >\n <<\n </button> <br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\" matTooltip=\"Deseleziona Tutto\"\n (click)=\"rem_all()\"\n [disabled]=\"value_sel.length==0\"\n >\n >>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'}}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\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)=\"dialogRef.close()\"\n >\n {{'Annulla' | translate}}\n </button>\n </div>\n </div>\n ",
2558
2558
  styles: ["\n .mat-dialog-content\u00A0{\u00A0\u00A0max-height:\u00A0unset\u00A0!important;\u00A0}\n .selector {\n cursor: hand;\n }\n "]
2559
2559
  },] }
2560
2560
  ];
@@ -15511,7 +15511,7 @@
15511
15511
  ]; };
15512
15512
 
15513
15513
  var win_log_v2 = /** @class */ (function () {
15514
- function win_log_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, _tsr) {
15514
+ function win_log_v2(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, _tsr, data) {
15515
15515
  this.dialogRef = dialogRef;
15516
15516
  this.m_dialogRef = m_dialogRef;
15517
15517
  this.m_appService = m_appService;
@@ -15520,6 +15520,7 @@
15520
15520
  this.m_wkf = m_wkf;
15521
15521
  this.m_file = m_file;
15522
15522
  this._tsr = _tsr;
15523
+ this.data = data;
15523
15524
  this.ossv = false;
15524
15525
  this.not_comm = false;
15525
15526
  this.not_comm_disabled = false;
@@ -15533,10 +15534,13 @@
15533
15534
  this.b_edit = false;
15534
15535
  this.b_ins = false;
15535
15536
  this.edit_id = 0;
15537
+ this.c_edit = true;
15536
15538
  this.lettori = "";
15537
15539
  this.subject = "";
15538
15540
  this.link = "";
15539
15541
  this.codice_doc = "";
15542
+ if (data.c_edit != null)
15543
+ this.c_edit = data.c_edit;
15540
15544
  }
15541
15545
  win_log_v2.prototype.ric_all = function () {
15542
15546
  this.refresh_list();
@@ -15866,7 +15870,7 @@
15866
15870
  }());
15867
15871
  win_log_v2.decorators = [
15868
15872
  { type: i0.Component, args: [{
15869
- 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 ",
15873
+ 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 && c_edit\"\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 *ngIf=\"c_edit\"></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 *ngIf=\"c_edit\">\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 ",
15870
15874
  styles: [""]
15871
15875
  },] }
15872
15876
  ];
@@ -15878,7 +15882,8 @@
15878
15882
  { type: QueryService },
15879
15883
  { type: WkfService },
15880
15884
  { type: FileService },
15881
- { type: core.TranslateService }
15885
+ { type: core.TranslateService },
15886
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
15882
15887
  ]; };
15883
15888
  win_log_v2.propDecorators = {
15884
15889
  zz: [{ type: i0.ViewChild, args: ["zz",] }]
@@ -23464,14 +23469,17 @@
23464
23469
  }
23465
23470
  this.salva();
23466
23471
  };
23467
- dati_aggiuntivi_v2.prototype.open_wkf = function (inser_c) {
23472
+ dati_aggiuntivi_v2.prototype.open_wkf = function (inser_c, edit_c) {
23468
23473
  var _this = this;
23469
23474
  if (inser_c === void 0) { inser_c = false; }
23475
+ if (edit_c === void 0) { edit_c = true; }
23476
+ console.log('inser_c = false,edit_c=true ', inser_c, edit_c);
23470
23477
  var s_h = this.app_s.getState().body_h - 40 + "px";
23471
23478
  var dialogRef = this.m_dialog.open(win_log_v2, {
23472
23479
  disableClose: true,
23473
23480
  width: "95%",
23474
23481
  height: s_h,
23482
+ data: { edit_c: edit_c }
23475
23483
  });
23476
23484
  setTimeout(function () {
23477
23485
  dialogRef.componentInstance.subject =