@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.
@@ -9316,18 +9316,18 @@ var win_salva_annulla = /** @class */ (function () {
9316
9316
  }());
9317
9317
 
9318
9318
  var win_assegna = /** @class */ (function () {
9319
- function win_assegna(dialogRef, m_appService, toastr, _dataService) {
9319
+ function win_assegna(dialogRef, m_appService, toastr, _dataService, data) {
9320
9320
  this.dialogRef = dialogRef;
9321
9321
  this.m_appService = m_appService;
9322
9322
  this.toastr = toastr;
9323
9323
  this._dataService = _dataService;
9324
+ this.data = data;
9324
9325
  this.lbl = "";
9325
9326
  this.nota = "";
9326
9327
  this.nota_commento = "";
9327
9328
  this.title = "ASSEGNA DOCUMENTO";
9328
9329
  this.comm_notrequired = 0;
9329
9330
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
9330
- console.log(' this.comm_notrequired ', this.comm_notrequired);
9331
9331
  this.title = this.m_appService.getState().wkf_doc_info.title;
9332
9332
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
9333
9333
  this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
@@ -9337,6 +9337,13 @@ var win_assegna = /** @class */ (function () {
9337
9337
  }
9338
9338
  if (this.comm_notrequired == 2)
9339
9339
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
9340
+ if (data != null) {
9341
+ if (data.commento_default != null)
9342
+ this.nota = data.commento_default;
9343
+ if (data.comm_notrequired != null)
9344
+ this.comm_notrequired = data.comm_notrequired;
9345
+ this.m_appService.temp_var4 = '';
9346
+ }
9340
9347
  }
9341
9348
  win_assegna.prototype.close = function () { this.dialogRef.close(null); };
9342
9349
  win_assegna.prototype.ok = function () {
@@ -9366,7 +9373,8 @@ var win_assegna = /** @class */ (function () {
9366
9373
  { type: MatDialogRef },
9367
9374
  { type: AppService },
9368
9375
  { type: ToastrService },
9369
- { type: QueryService }
9376
+ { type: QueryService },
9377
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
9370
9378
  ]; };
9371
9379
  __decorate([
9372
9380
  ViewChild('up'),
@@ -9376,7 +9384,8 @@ var win_assegna = /** @class */ (function () {
9376
9384
  Component({
9377
9385
  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 "
9378
9386
  }),
9379
- __metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService])
9387
+ __param(4, Inject(MAT_DIALOG_DATA)),
9388
+ __metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService, Object])
9380
9389
  ], win_assegna);
9381
9390
  return win_assegna;
9382
9391
  }());
@@ -11821,13 +11830,12 @@ var dati_aggiuntivi = /** @class */ (function () {
11821
11830
  return 0;
11822
11831
  });
11823
11832
  ;
11824
- var dialogRef_1 = this.m_dialog.open(win_assegna, {
11825
- disableClose: true
11833
+ if (this.app_s.temp_var4 == null)
11834
+ this.app_s.temp_var4 = '';
11835
+ var dialogRef = this.m_dialog.open(win_assegna, {
11836
+ disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
11826
11837
  });
11827
- setTimeout(function () {
11828
- dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
11829
- });
11830
- dialogRef_1.afterClosed().subscribe(function (result) {
11838
+ dialogRef.afterClosed().subscribe(function (result) {
11831
11839
  if (result == "" || result == null) {
11832
11840
  _this.edit_b(true);
11833
11841
  if (_this.respingi_enabled)
@@ -12896,7 +12904,7 @@ var wkf_header_bar = /** @class */ (function () {
12896
12904
  wkf_header_bar = __decorate([
12897
12905
  Component({
12898
12906
  selector: 'wkf_header_bar',
12899
- 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 "
12907
+ 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 "
12900
12908
  }),
12901
12909
  __metadata("design:paramtypes", [AppService])
12902
12910
  ], wkf_header_bar);