@fluxhub/fluxhub-lib 9.0.117 → 9.0.118

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.
@@ -9474,7 +9474,6 @@
9474
9474
  this.nota = data.commento_default;
9475
9475
  if (data.comm_notrequired != null)
9476
9476
  this.comm_notrequired = data.comm_notrequired;
9477
- this.m_appService.temp_var4 = '';
9478
9477
  }
9479
9478
  }
9480
9479
  win_assegna.prototype.close = function () { this.dialogRef.close(null); };
@@ -9523,11 +9522,12 @@
9523
9522
  }());
9524
9523
 
9525
9524
  var win_conferma = /** @class */ (function () {
9526
- function win_conferma(dialogRef, m_appService, toastr, _dataService) {
9525
+ function win_conferma(dialogRef, m_appService, toastr, _dataService, data) {
9527
9526
  this.dialogRef = dialogRef;
9528
9527
  this.m_appService = m_appService;
9529
9528
  this.toastr = toastr;
9530
9529
  this._dataService = _dataService;
9530
+ this.data = data;
9531
9531
  this.utenti = "";
9532
9532
  this.lbl = "";
9533
9533
  this.nota = "";
@@ -9536,13 +9536,18 @@
9536
9536
  this.comm_notrequired = 0;
9537
9537
  this.mobile = false;
9538
9538
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
9539
- console.log(' this.comm_notrequired ', this.comm_notrequired);
9540
9539
  this.title = this.m_appService.getState().wkf_doc_info.title;
9541
9540
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
9542
9541
  this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
9543
9542
  if (this.comm_notrequired == 2)
9544
9543
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
9545
9544
  this.mobile = this.m_appService.getState().pageFullscreen;
9545
+ if (data != null) {
9546
+ if (data.commento_default != null)
9547
+ this.nota = data.commento_default;
9548
+ if (data.comm_notrequired != null)
9549
+ this.comm_notrequired = data.comm_notrequired;
9550
+ }
9546
9551
  }
9547
9552
  win_conferma.prototype.ok = function () {
9548
9553
  if (this.comm_notrequired == 0)
@@ -9564,13 +9569,15 @@
9564
9569
  { type: dialog.MatDialogRef },
9565
9570
  { type: AppService },
9566
9571
  { type: ngxToastr.ToastrService },
9567
- { type: QueryService }
9572
+ { type: QueryService },
9573
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9568
9574
  ]; };
9569
9575
  win_conferma = __decorate([
9570
9576
  core.Component({
9571
9577
  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 <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired==1\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\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;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">ANNULLA</button>\n </div>\n\n "
9572
9578
  }),
9573
- __metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService])
9579
+ __param(4, core.Inject(dialog.MAT_DIALOG_DATA)),
9580
+ __metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService, Object])
9574
9581
  ], win_conferma);
9575
9582
  return win_conferma;
9576
9583
  }());
@@ -11935,8 +11942,9 @@
11935
11942
  this.app_s.getState().wkf_doc_info.utenti = sp;
11936
11943
  this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
11937
11944
  var dialogRef = this.m_dialog.open(win_conferma, {
11938
- disableClose: true
11945
+ disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
11939
11946
  });
11947
+ this.app_s.temp_var4 = '';
11940
11948
  dialogRef.afterClosed().subscribe(function (result) {
11941
11949
  if (result == "abort") {
11942
11950
  _this.edit_b(true);
@@ -11964,10 +11972,10 @@
11964
11972
  ;
11965
11973
  if (this.app_s.temp_var4 == null)
11966
11974
  this.app_s.temp_var4 = '';
11967
- console.log('this.app_s.temp_var4 ', this.app_s.temp_var4);
11968
11975
  var dialogRef = this.m_dialog.open(win_assegna, {
11969
11976
  disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
11970
11977
  });
11978
+ this.app_s.temp_var4 = '';
11971
11979
  dialogRef.afterClosed().subscribe(function (result) {
11972
11980
  if (result == "" || result == null) {
11973
11981
  _this.edit_b(true);