@fluxhub/fluxhub-lib 11.0.1 → 11.0.3

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.
@@ -16534,6 +16534,8 @@
16534
16534
  this.download_button = true;
16535
16535
  this.edit_comments_in_logs = true;
16536
16536
  this.assegna_a = false;
16537
+ this.next_label = false;
16538
+ this.next_label_color = false;
16537
16539
  this.back_lbl = 'Indietro';
16538
16540
  this.save_lbl = 'Salva';
16539
16541
  this.procedi_lbl = 'Procedi';
@@ -16629,7 +16631,7 @@
16629
16631
  wkf_header_bar_v2.decorators = [
16630
16632
  { type: i0.Component, args: [{
16631
16633
  selector: "wkf_header_bar_v2",
16632
- 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 *ngIf=\"(edit_button || force_save) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"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 <div *ngIf=\"assegna_a\">\n <button\n mat-flat-button\n (click)=\"evt_assegna_a()\"\n\n style=\"background-color:#709D66;color:#FFF;font-weight:bold\"\n >\n {{'Riassegna a'|translate}}</button\n ></div>\n\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 "
16634
+ 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 *ngIf=\"(edit_button || force_save) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"in_carico\"\n style=\"background-color:#709D66;color:#FFFFFF;font-weight:bold\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div>\n <div *ngIf=\"dt_agg?.b_init_next\">\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>\n <div *ngIf=\"dt_agg!=null && dt_agg?.b_init_next\">\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n color=\"accent\" style=\"font-weight:bold\" [style.background-color]=\"dt_agg?.next_back_ground_color\" [style.color]=\"dt_agg?.next_label_color\"\n >\n {{dt_agg?.next_label | translate}}</button>\n </div>\n\n <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 <div *ngIf=\"assegna_a\">\n <button\n mat-flat-button\n (click)=\"evt_assegna_a()\"\n\n style=\"background-color:#709D66;color:#FFF;font-weight:bold\"\n >\n {{'Riassegna a'|translate}}</button\n ></div>\n\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 "
16633
16635
  },] }
16634
16636
  ];
16635
16637
  wkf_header_bar_v2.ctorParameters = function () { return [
@@ -16649,6 +16651,8 @@
16649
16651
  download_button: [{ type: i0.Input }],
16650
16652
  edit_comments_in_logs: [{ type: i0.Input }],
16651
16653
  assegna_a: [{ type: i0.Input }],
16654
+ next_label: [{ type: i0.Input }],
16655
+ next_label_color: [{ type: i0.Input }],
16652
16656
  b_revisione: [{ type: i0.Input }],
16653
16657
  admin_role: [{ type: i0.Input }],
16654
16658
  sovra_path: [{ type: i0.Input }],
@@ -23043,6 +23047,10 @@
23043
23047
  this.m_fileservice = m_fileservice;
23044
23048
  this.tsr = tsr;
23045
23049
  this.m_obj = {};
23050
+ this.next_label = "Procedi";
23051
+ this.next_label_color = "#ffd740";
23052
+ this.next_back_ground_color = "#000000";
23053
+ this.b_init_next = false;
23046
23054
  this.sort_field = "";
23047
23055
  this.in_carico = false;
23048
23056
  this.wkf_users_roles = "";
@@ -24961,6 +24969,7 @@
24961
24969
  this.load_document();
24962
24970
  };
24963
24971
  dati_aggiuntivi_v2.prototype.return_edit = function () {
24972
+ var _this = this;
24964
24973
  for (var i = 0; i < this.livs.length; i++)
24965
24974
  if (this.livs[i].step == this.m_obj.stato) {
24966
24975
  if (this.livs[i].abilita_indietro == 1)
@@ -24986,6 +24995,21 @@
24986
24995
  if (this.respingi_enabled)
24987
24996
  this.update_status(null, true, this.in_carico, this.b_assengna_a, 17);
24988
24997
  }
24998
+ var p = new QParam();
24999
+ p.sql = "SELECT_WKF_PROC_CONFIG";
25000
+ p.values = [this.id_applicativo, this.id_documento];
25001
+ p.types = ["string", "string"];
25002
+ this.m_dataService.doQuery(p).subscribe(function (data) {
25003
+ if (data != null)
25004
+ if (data.result_msg == "OK") {
25005
+ if (data.result_data.length > 0) {
25006
+ _this.next_label = data.result_data[0].next_label;
25007
+ _this.next_label_color = data.result_data[0].next_label_color;
25008
+ _this.next_back_ground_color = data.result_data[0].next_back_ground_color;
25009
+ }
25010
+ _this.b_init_next = true;
25011
+ }
25012
+ });
24989
25013
  this.r_count();
24990
25014
  this.s_uto = "";
24991
25015
  var aut = this.m_obj.autori.split(",");