@fluxhub/fluxhub-lib 9.0.114 → 9.0.116

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.
@@ -9448,18 +9448,18 @@
9448
9448
  }());
9449
9449
 
9450
9450
  var win_assegna = /** @class */ (function () {
9451
- function win_assegna(dialogRef, m_appService, toastr, _dataService) {
9451
+ function win_assegna(dialogRef, m_appService, toastr, _dataService, data) {
9452
9452
  this.dialogRef = dialogRef;
9453
9453
  this.m_appService = m_appService;
9454
9454
  this.toastr = toastr;
9455
9455
  this._dataService = _dataService;
9456
+ this.data = data;
9456
9457
  this.lbl = "";
9457
9458
  this.nota = "";
9458
9459
  this.nota_commento = "";
9459
9460
  this.title = "ASSEGNA DOCUMENTO";
9460
9461
  this.comm_notrequired = 0;
9461
9462
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
9462
- console.log(' this.comm_notrequired ', this.comm_notrequired);
9463
9463
  this.title = this.m_appService.getState().wkf_doc_info.title;
9464
9464
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
9465
9465
  this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
@@ -9469,6 +9469,13 @@
9469
9469
  }
9470
9470
  if (this.comm_notrequired == 2)
9471
9471
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
9472
+ if (data != null) {
9473
+ if (data.commento_default != null)
9474
+ this.nota = data.commento_default;
9475
+ if (data.comm_notrequired != null)
9476
+ this.comm_notrequired = data.comm_notrequired;
9477
+ this.m_appService.temp_var4 = '';
9478
+ }
9472
9479
  }
9473
9480
  win_assegna.prototype.close = function () { this.dialogRef.close(null); };
9474
9481
  win_assegna.prototype.ok = function () {
@@ -9498,7 +9505,8 @@
9498
9505
  { type: dialog.MatDialogRef },
9499
9506
  { type: AppService },
9500
9507
  { type: ngxToastr.ToastrService },
9501
- { type: QueryService }
9508
+ { type: QueryService },
9509
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9502
9510
  ]; };
9503
9511
  __decorate([
9504
9512
  core.ViewChild('up'),
@@ -9508,7 +9516,8 @@
9508
9516
  core.Component({
9509
9517
  template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h4 mat-dialog-title>{{title}}\n </h4>\n <div mat-dialog-content fxLayout=\"column\" style=\"font-size: 15px;min-width: 750px\">\n <div style=\"width:100%;height:450px\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired!=1\">\n <br>\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">ANNULLA</button>\n </div>\n\n "
9510
9518
  }),
9511
- __metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService])
9519
+ __param(4, core.Inject(dialog.MAT_DIALOG_DATA)),
9520
+ __metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService, Object])
9512
9521
  ], win_assegna);
9513
9522
  return win_assegna;
9514
9523
  }());
@@ -11953,13 +11962,12 @@
11953
11962
  return 0;
11954
11963
  });
11955
11964
  ;
11956
- var dialogRef_1 = this.m_dialog.open(win_assegna, {
11957
- disableClose: true
11965
+ if (this.app_s.temp_var4 == null)
11966
+ this.app_s.temp_var4 = '';
11967
+ var dialogRef = this.m_dialog.open(win_assegna, {
11968
+ disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
11958
11969
  });
11959
- setTimeout(function () {
11960
- dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
11961
- });
11962
- dialogRef_1.afterClosed().subscribe(function (result) {
11970
+ dialogRef.afterClosed().subscribe(function (result) {
11963
11971
  if (result == "" || result == null) {
11964
11972
  _this.edit_b(true);
11965
11973
  if (_this.respingi_enabled)
@@ -13028,7 +13036,7 @@
13028
13036
  wkf_header_bar = __decorate([
13029
13037
  core.Component({
13030
13038
  selector: 'wkf_header_bar',
13031
- template: "\n\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"16px\" fxLayoutGap.xs=\"3px\">\n <div fxLayout=\"row\" >\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;\n<button mat-flat-button [color]=\"(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.comm_c?dt_agg?.comm_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>Commenti</button>&nbsp;&nbsp;</div> <div fxLayout=\"row\">\n<button mat-flat-button [color]=\"(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.all_c?dt_agg?.all_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>Allegati</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>\n</div>\n </div>\n "
13039
+ template: "\n\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"16px\" fxLayoutGap.xs=\"3px\">\n <div fxLayout=\"row\" >\n <button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;\n <button mat-flat-button [color]=\"(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.comm_c?dt_agg?.comm_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>Commenti</button>&nbsp;&nbsp;</div> <div fxLayout=\"row\">\n <button mat-flat-button [color]=\"(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.all_c?dt_agg?.all_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>Allegati</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>\n </div>\n</div>\n "
13032
13040
  }),
13033
13041
  __metadata("design:paramtypes", [AppService])
13034
13042
  ], wkf_header_bar);