@fluxhub/fluxhub-lib 10.0.94 → 10.0.96

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.
@@ -11921,7 +11921,9 @@
11921
11921
  this.edit_button = false;
11922
11922
  this.respingi_button = false;
11923
11923
  this.procedi_button = true;
11924
+ this.utility_button = true;
11924
11925
  this.force_save = false;
11926
+ this.check_on_save = false;
11925
11927
  this.admin_role = '[ZZZ_DIS_CC]';
11926
11928
  this.sovra_path = '';
11927
11929
  this.button_clicked = new i0.EventEmitter();
@@ -11934,7 +11936,7 @@
11934
11936
  wkf_header_bar.prototype.evt_salv = function () {
11935
11937
  this.button_clicked.emit('evt_salv');
11936
11938
  if (this.dt_agg != null)
11937
- this.dt_agg.evt_salv(this.edit_button);
11939
+ this.dt_agg.evt_salv(this.edit_button, this.check_on_save);
11938
11940
  };
11939
11941
  wkf_header_bar.prototype.respingi = function () {
11940
11942
  this.button_clicked.emit('respingi');
@@ -11972,7 +11974,7 @@
11972
11974
  wkf_header_bar.decorators = [
11973
11975
  { type: i0.Component, args: [{
11974
11976
  selector: "wkf_header_bar",
11975
- template: "\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"3px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </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\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"3px\"\n >\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button\n >&nbsp;&nbsp;\n <button\n mat-flat-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</button\n >&nbsp;&nbsp;\n </div>\n <div fxLayout=\"row\">\n <button\n mat-flat-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</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n </div>\n </div>\n "
11977
+ template: "\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"3px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n >&nbsp;&nbsp;\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </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\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"3px\"\n >\n <div fxLayout=\"row\">\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</button\n >&nbsp;&nbsp;\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</button\n >&nbsp;&nbsp;\n </div>\n <div fxLayout=\"row\">\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</button\n >&nbsp;&nbsp;\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\n </button>\n </div>\n </div>\n </div>\n "
11976
11978
  },] }
11977
11979
  ];
11978
11980
  wkf_header_bar.ctorParameters = function () { return [
@@ -11983,7 +11985,9 @@
11983
11985
  edit_button: [{ type: i0.Input }],
11984
11986
  respingi_button: [{ type: i0.Input }],
11985
11987
  procedi_button: [{ type: i0.Input }],
11988
+ utility_button: [{ type: i0.Input }],
11986
11989
  force_save: [{ type: i0.Input }],
11990
+ check_on_save: [{ type: i0.Input }],
11987
11991
  admin_role: [{ type: i0.Input }],
11988
11992
  sovra_path: [{ type: i0.Input }],
11989
11993
  button_clicked: [{ type: i0.Output }]
@@ -15074,10 +15078,14 @@
15074
15078
  this.app_s.getState().wkf_doc_info.uiid_doc = this.m_obj.id_documento;
15075
15079
  this.app_s.getState().wkf_doc_info.canale = this.m_obj.canale;
15076
15080
  };
15077
- dati_aggiuntivi.prototype.evt_salv = function (rip_pulsanti) {
15081
+ dati_aggiuntivi.prototype.evt_salv = function (rip_pulsanti, check_on_save) {
15078
15082
  if (rip_pulsanti === void 0) { rip_pulsanti = true; }
15083
+ if (check_on_save === void 0) { check_on_save = false; }
15079
15084
  this.b_rip_pulsanti = rip_pulsanti;
15080
15085
  this.btnprocedi = false;
15086
+ if (check_on_save)
15087
+ if (!this.ck_field())
15088
+ return;
15081
15089
  this.salva();
15082
15090
  };
15083
15091
  dati_aggiuntivi.prototype.salva = function () {