@fluxhub/fluxhub-lib 10.0.572 → 10.0.574

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.
@@ -16404,7 +16404,7 @@
16404
16404
  wkf_header_bar_v2.decorators = [
16405
16405
  { type: i0.Component, args: [{
16406
16406
  selector: "wkf_header_bar_v2",
16407
- template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n {{back_lbl}}</button\n ></div>\n <div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"(edit_button || force_save) && in_carico\"\n color=\"primary\"\n >\n {{save_lbl}}</button\n ></div><div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"(edit_button) && !in_carico\"\n style=\"background-color:#709D66\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div><div>\n\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && in_carico\"\n color=\"accent\"\n >\n {{procedi_lbl | translate}}</button\n ></div><div *ngIf=\"(respingi_button) && in_carico\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n {{respingi_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"(b_revisione) && in_carico\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n {{revisione_lbl | translate}}\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon>&nbsp;&nbsp; {{info_doc_lbl | translate}}</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon> {{commenti_lbl | translate}}</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon> {{allegati_lbl | translate}}</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon> {{workflow_lbl | translate}}\n </button>\n </div>\n\n\n\n </div>\n </div>\n <div\n *ngIf=\"custom_commands.length > 0\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n >\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\"\n fxLayoutGap=\"5px\">\n <div><button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >{{ app.label | translate}}\n </button> </div>\n </div>\n </div>\n </div>\n "
16407
+ template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n {{back_lbl}}</button\n ></div>\n <div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"(edit_button || force_save) && !in_carico\"\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div><div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"(edit_button) && in_carico\"\n style=\"background-color:#709D66;color:#FFFFFF;font-weight:bold\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div><div>\n\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && in_carico\"\n color=\"accent\" style=\"font-weight:bold\"\n >\n {{procedi_lbl | translate}}</button\n ></div><div *ngIf=\"(respingi_button) && in_carico\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n style=\"font-weight:bold\"\n color=\"warn\"\n >\n {{respingi_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"(b_revisione) && in_carico\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n {{revisione_lbl | translate}}\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon>&nbsp;&nbsp; {{info_doc_lbl | translate}}</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon> {{commenti_lbl | translate}}</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon> {{allegati_lbl | translate}}</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon> {{workflow_lbl | translate}}\n </button>\n </div>\n\n\n\n </div>\n </div>\n <div\n *ngIf=\"custom_commands.length > 0\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n >\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\"\n fxLayoutGap=\"5px\">\n <div><button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >{{ app.label | translate}}\n </button> </div>\n </div>\n </div>\n </div>\n "
16408
16408
  },] }
16409
16409
  ];
16410
16410
  wkf_header_bar_v2.ctorParameters = function () { return [
@@ -22553,6 +22553,7 @@
22553
22553
  };
22554
22554
  dati_aggiuntivi_v2.prototype.prendi_in_carico = function () {
22555
22555
  this.in_carico = false;
22556
+ this.update_status(null, null, this.in_carico);
22556
22557
  var p = new QParam();
22557
22558
  p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
22558
22559
  p.values = ['string', 'string', 'string'];
@@ -22763,7 +22764,7 @@
22763
22764
  });
22764
22765
  dialogRef.afterClosed().subscribe(function (result) {
22765
22766
  if (result == null) {
22766
- _this.edit_b(true);
22767
+ _this.update_status(true, null, null);
22767
22768
  return;
22768
22769
  }
22769
22770
  _this.calcolanextandjump2(result);
@@ -22818,7 +22819,7 @@
22818
22819
  this.calcola_destinari(o);
22819
22820
  }
22820
22821
  else {
22821
- this.edit_b(this.b_edit_before);
22822
+ this.update_status(this.b_edit_before, null, null);
22822
22823
  }
22823
22824
  };
22824
22825
  dati_aggiuntivi_v2.prototype.calcola_destinari = function (o) {
@@ -22881,9 +22882,9 @@
22881
22882
  });
22882
22883
  dialogRef.afterClosed().subscribe(function (result) {
22883
22884
  if (result == '' || result == null) {
22884
- _this.edit_b(true);
22885
+ _this.update_status(true, false, null);
22885
22886
  if (_this.respingi_enabled)
22886
- _this.resp_b(true);
22887
+ _this.update_status(true, true, null);
22887
22888
  return;
22888
22889
  }
22889
22890
  _this.exec_wkf(o, _this.nlevel, result.arrsel, result.nota, _this.transizione_info.create_ver);
@@ -22919,9 +22920,9 @@
22919
22920
  });
22920
22921
  dialogRef.afterClosed().subscribe(function (result) {
22921
22922
  if (result == null || result == "abort") {
22922
- _this.edit_b(true);
22923
+ _this.update_status(true, false, null);
22923
22924
  if (_this.respingi_enabled)
22924
- _this.resp_b(true);
22925
+ _this.update_status(true, true, null);
22925
22926
  return;
22926
22927
  }
22927
22928
  _this.exec_wkf(o, _this.nlevel, arrAutori, result, _this.transizione_info.create_ver);
@@ -23189,19 +23190,17 @@
23189
23190
  dati_aggiuntivi_v2.prototype.respingi = function () {
23190
23191
  this.oper = "respingi";
23191
23192
  this.btnprocedi = true;
23192
- this.edit_b(false);
23193
- this.resp_b(false);
23193
+ this.update_status(false, false, null);
23194
23194
  this.salva();
23195
23195
  };
23196
23196
  dati_aggiuntivi_v2.prototype.procedi = function () {
23197
23197
  this.oper = "procedi";
23198
23198
  this.btnprocedi = true;
23199
- this.edit_b(false);
23200
- this.resp_b(false);
23199
+ this.update_status(false, false, null);
23201
23200
  if (!this.ck_field()) {
23202
- this.edit_b(true);
23201
+ this.update_status(true, null, null);
23203
23202
  if (this.respingi_enabled)
23204
- this.resp_b(true);
23203
+ this.update_status(true, true, null);
23205
23204
  return;
23206
23205
  }
23207
23206
  this.salva();
@@ -23319,7 +23318,7 @@
23319
23318
  var _this = this;
23320
23319
  this.before_save();
23321
23320
  this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
23322
- this.edit_b(false);
23321
+ this.update_status(false, null, null);
23323
23322
  var arr = this.getfieldvalues();
23324
23323
  // console.log('arr',arr);
23325
23324
  var p = new QParam();
@@ -23390,7 +23389,7 @@
23390
23389
  if (!this.btnprocedi) {
23391
23390
  this.alert("DOCUMENTO SALVATO", 0);
23392
23391
  this.after_save();
23393
- this.edit_b(this.b_edit_before);
23392
+ this.update_status(this.b_edit_before, null, null);
23394
23393
  if (!this.b_edit && !this.btnprocedi)
23395
23394
  this.m_router.navigate([
23396
23395
  this.app_info.modulo_swf,
@@ -23442,7 +23441,7 @@
23442
23441
  dati_aggiuntivi_v2.prototype.ok_load_document = function (o) {
23443
23442
  var _this = this;
23444
23443
  this.m_obj = (JSON.parse(JSON.stringify(o)));
23445
- this.edit_b(false);
23444
+ this.update_status(false, null, null);
23446
23445
  this.save_to_app_state();
23447
23446
  var p = new QParam();
23448
23447
  p.sql = "SELECT_WLIVELLIV2_2";
@@ -23946,7 +23945,7 @@
23946
23945
  this.livs[i].context == "*ALLUSERS") {
23947
23946
  // if (this.livs[i].abilita_indietro == 1) this.respingi_enabled = true;
23948
23947
  // else this.respingi_enabled = false;
23949
- this.edit_b(true);
23948
+ this.update_status(true, null, null);
23950
23949
  break;
23951
23950
  }
23952
23951
  }
@@ -23970,11 +23969,11 @@
23970
23969
  if (("," + this.m_obj.autori.toLowerCase() + ",").indexOf("," + this.user_idp.toLowerCase() + ",") != -1) {
23971
23970
  console.log('this.m_obj.autori ', this.m_obj.autori);
23972
23971
  if (this.m_obj.autori != null)
23973
- if (this.m_obj.autori.split(',') > 1)
23972
+ if (this.m_obj.autori.split(',').length > 1)
23974
23973
  this.in_carico = true;
23975
- this.edit_b(true);
23974
+ this.update_status(true, false, this.in_carico);
23976
23975
  if (this.respingi_enabled)
23977
- this.resp_b(true);
23976
+ this.update_status(null, true, this.in_carico);
23978
23977
  }
23979
23978
  this.r_count();
23980
23979
  this.s_uto = '';