@fluxhub/fluxhub-lib 10.0.620 → 10.0.621

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.
@@ -11105,7 +11105,7 @@
11105
11105
  ]; };
11106
11106
 
11107
11107
  var win_log = /** @class */ (function () {
11108
- function win_log(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
11108
+ function win_log(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, data) {
11109
11109
  this.dialogRef = dialogRef;
11110
11110
  this.m_dialogRef = m_dialogRef;
11111
11111
  this.m_appService = m_appService;
@@ -11113,6 +11113,7 @@
11113
11113
  this._dataService = _dataService;
11114
11114
  this.m_wkf = m_wkf;
11115
11115
  this.m_file = m_file;
11116
+ this.data = data;
11116
11117
  this.ossv = false;
11117
11118
  this.not_comm = false;
11118
11119
  this.not_comm_disabled = false;
@@ -11126,10 +11127,13 @@
11126
11127
  this.b_edit = false;
11127
11128
  this.b_ins = false;
11128
11129
  this.edit_id = 0;
11130
+ this.c_edit = true;
11129
11131
  this.lettori = "";
11130
11132
  this.subject = "";
11131
11133
  this.link = "";
11132
11134
  this.codice_doc = "";
11135
+ if (data.c_edit != null)
11136
+ this.c_edit = data.c_edit;
11133
11137
  }
11134
11138
  win_log.prototype.ric_all = function () {
11135
11139
  this.refresh_list();
@@ -11440,7 +11444,7 @@
11440
11444
  }());
11441
11445
  win_log.decorators = [
11442
11446
  { type: i0.Component, args: [{
11443
- 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\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 ",
11447
+ 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\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 ",
11444
11448
  styles: [""]
11445
11449
  },] }
11446
11450
  ];
@@ -11451,7 +11455,8 @@
11451
11455
  { type: i3.ToastrService },
11452
11456
  { type: QueryService },
11453
11457
  { type: WkfService },
11454
- { type: FileService }
11458
+ { type: FileService },
11459
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
11455
11460
  ]; };
11456
11461
  win_log.propDecorators = {
11457
11462
  zz: [{ type: i0.ViewChild, args: ["zz",] }]
@@ -12846,6 +12851,7 @@
12846
12851
  this.command = new i0.EventEmitter();
12847
12852
  this.admin_role = '[ZZZ_DIS_CC]';
12848
12853
  this.sovra_path = '';
12854
+ this.edit_comments_in_logs = true;
12849
12855
  this.back_lbl = 'Indietro';
12850
12856
  this.save_lbl = 'Salva';
12851
12857
  this.procedi_lbl = 'Procedi';
@@ -12898,7 +12904,7 @@
12898
12904
  wkf_header_bar.prototype.open_wkf = function () {
12899
12905
  this.button_clicked.emit('open_wkf');
12900
12906
  if (this.dt_agg != null)
12901
- this.dt_agg.open_wkf();
12907
+ this.dt_agg.open_wkf(false, this.edit_comments_in_logs);
12902
12908
  };
12903
12909
  wkf_header_bar.prototype.ngAfterViewInit = function () {
12904
12910
  var _this = this;
@@ -12939,6 +12945,7 @@
12939
12945
  command: [{ type: i0.Output }],
12940
12946
  admin_role: [{ type: i0.Input }],
12941
12947
  sovra_path: [{ type: i0.Input }],
12948
+ edit_comments_in_logs: [{ type: i0.Input }],
12942
12949
  button_clicked: [{ type: i0.Output }]
12943
12950
  };
12944
12951
 
@@ -20781,14 +20788,16 @@
20781
20788
  }
20782
20789
  this.salva();
20783
20790
  };
20784
- dati_aggiuntivi.prototype.open_wkf = function (inser_c) {
20791
+ dati_aggiuntivi.prototype.open_wkf = function (inser_c, edit_c) {
20785
20792
  var _this = this;
20786
20793
  if (inser_c === void 0) { inser_c = false; }
20794
+ if (edit_c === void 0) { edit_c = true; }
20787
20795
  var s_h = this.app_s.getState().body_h - 40 + "px";
20788
20796
  var dialogRef = this.m_dialog.open(win_log, {
20789
20797
  disableClose: true,
20790
20798
  width: "95%",
20791
20799
  height: s_h,
20800
+ data: { edit_c: edit_c }
20792
20801
  });
20793
20802
  setTimeout(function () {
20794
20803
  dialogRef.componentInstance.subject =