@fluxhub/fluxhub-lib 9.0.116 → 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.
@@ -10331,7 +10331,6 @@ let win_assegna = class win_assegna {
10331
10331
  this.nota = data.commento_default;
10332
10332
  if (data.comm_notrequired != null)
10333
10333
  this.comm_notrequired = data.comm_notrequired;
10334
- this.m_appService.temp_var4 = '';
10335
10334
  }
10336
10335
  }
10337
10336
  close() { this.dialogRef.close(null); }
@@ -10403,11 +10402,12 @@ win_assegna = __decorate([
10403
10402
  ], win_assegna);
10404
10403
 
10405
10404
  let win_conferma = class win_conferma {
10406
- constructor(dialogRef, m_appService, toastr, _dataService) {
10405
+ constructor(dialogRef, m_appService, toastr, _dataService, data) {
10407
10406
  this.dialogRef = dialogRef;
10408
10407
  this.m_appService = m_appService;
10409
10408
  this.toastr = toastr;
10410
10409
  this._dataService = _dataService;
10410
+ this.data = data;
10411
10411
  this.utenti = "";
10412
10412
  this.lbl = "";
10413
10413
  this.nota = "";
@@ -10416,13 +10416,18 @@ let win_conferma = class win_conferma {
10416
10416
  this.comm_notrequired = 0;
10417
10417
  this.mobile = false;
10418
10418
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
10419
- console.log(' this.comm_notrequired ', this.comm_notrequired);
10420
10419
  this.title = this.m_appService.getState().wkf_doc_info.title;
10421
10420
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
10422
10421
  this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
10423
10422
  if (this.comm_notrequired == 2)
10424
10423
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
10425
10424
  this.mobile = this.m_appService.getState().pageFullscreen;
10425
+ if (data != null) {
10426
+ if (data.commento_default != null)
10427
+ this.nota = data.commento_default;
10428
+ if (data.comm_notrequired != null)
10429
+ this.comm_notrequired = data.comm_notrequired;
10430
+ }
10426
10431
  }
10427
10432
  ok() {
10428
10433
  if (this.comm_notrequired == 0)
@@ -10445,7 +10450,8 @@ win_conferma.ctorParameters = () => [
10445
10450
  { type: MatDialogRef },
10446
10451
  { type: AppService },
10447
10452
  { type: ToastrService },
10448
- { type: QueryService }
10453
+ { type: QueryService },
10454
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
10449
10455
  ];
10450
10456
  win_conferma = __decorate([
10451
10457
  Component({
@@ -10478,7 +10484,8 @@ win_conferma = __decorate([
10478
10484
 
10479
10485
  `
10480
10486
  }),
10481
- __metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService])
10487
+ __param(4, Inject(MAT_DIALOG_DATA)),
10488
+ __metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService, Object])
10482
10489
  ], win_conferma);
10483
10490
 
10484
10491
  let win_select_canale = class win_select_canale {
@@ -13197,8 +13204,9 @@ class dati_aggiuntivi {
13197
13204
  this.app_s.getState().wkf_doc_info.utenti = sp;
13198
13205
  this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
13199
13206
  let dialogRef = this.m_dialog.open(win_conferma, {
13200
- disableClose: true
13207
+ disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
13201
13208
  });
13209
+ this.app_s.temp_var4 = '';
13202
13210
  dialogRef.afterClosed().subscribe(result => {
13203
13211
  if (result == "abort") {
13204
13212
  this.edit_b(true);
@@ -13229,6 +13237,7 @@ class dati_aggiuntivi {
13229
13237
  let dialogRef = this.m_dialog.open(win_assegna, {
13230
13238
  disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
13231
13239
  });
13240
+ this.app_s.temp_var4 = '';
13232
13241
  dialogRef.afterClosed().subscribe(result => {
13233
13242
  if (result == "" || result == null) {
13234
13243
  this.edit_b(true);