@fluxhub/fluxhub-lib 10.0.360 → 10.0.362

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.
@@ -2995,7 +2995,7 @@
2995
2995
  FHFormToolBarComponent.decorators = [
2996
2996
  { type: i0.Component, args: [{
2997
2997
  selector: "FHFormToolBar",
2998
- template: "\n <div fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n [hidden]=\"is_editing\"\n fxLayoutAlign=\"start center\"\n >\n <button mat-flat-button [hidden]=\"!show_back\" (click)=\"back()\">{{ mgs_back }}</button>\n <button\n mat-flat-button\n color=\"primary\"\n [hidden]=\"!editable\"\n (click)=\"edit()\"\n >\n <mat-icon>edit</mat-icon>&nbsp;&nbsp;{{ mgs_edit }}\n </button>\n <button\n [hidden]=\"!editable || !log_enabled\"\n mat-flat-button\n *ngIf=\"App != ''\"\n color=\"accent\"\n (click)=\"logs()\"\n >\n <mat-icon>assignment</mat-icon>&nbsp;&nbsp;Logs</button>\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n [hidden]=\"!is_editing\"\n fxLayoutAlign=\"start center\">\n <button mat-flat-button [hidden]=\"!show_back\" (click)=\"back_ask_save()\">{{ mgs_back }}</button>\n <button\n mat-flat-button\n color=\"primary\"\n [hidden]=\"!show_save\"\n (click)=\"save()\">\n <mat-icon>save</mat-icon>&nbsp;&nbsp;{{ mgs_save }}\n </button>\n\n <button [hidden]=\"!log_enabled\"\n mat-flat-button\n *ngIf=\"App != ''\"\n color=\"accent\"\n (click)=\"logs()\"\n >\n <mat-icon>assignment</mat-icon>&nbsp;&nbsp;Logs\n </button>\n </div>\n <div\n *ngIf=\"custom_commands.length > 0\"\n fxLayoutGap=\"5px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n >\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\"\n fxLayoutGap=\"5px\">\n <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 }}\n </button>\n </div>\n </div>\n </div>\n ",
2998
+ template: "\n <div fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"10px\"\n [hidden]=\"is_editing\"\n fxLayoutAlign=\"start center\"\n >\n <div><button mat-flat-button [hidden]=\"!show_back\" (click)=\"back()\">{{ mgs_back }}</button> </div>\n <div><button\n mat-flat-button\n color=\"primary\"\n [hidden]=\"!editable\"\n (click)=\"edit()\"\n >\n <mat-icon>edit</mat-icon>&nbsp;&nbsp;{{ mgs_edit }}\n </button> </div>\n <div><button\n [hidden]=\"!editable || !log_enabled\"\n mat-flat-button\n *ngIf=\"App != ''\"\n color=\"accent\"\n (click)=\"logs()\"\n >\n <mat-icon>assignment</mat-icon>&nbsp;&nbsp;Logs</button> </div>\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"10px\"\n [hidden]=\"!is_editing\"\n fxLayoutAlign=\"start center\">\n <div><button mat-flat-button [hidden]=\"!show_back\" (click)=\"back_ask_save()\">{{ mgs_back }}</button> </div>\n <div><button\n mat-flat-button\n color=\"primary\"\n [hidden]=\"!show_save\"\n (click)=\"save()\">\n <mat-icon>save</mat-icon>&nbsp;&nbsp;{{ mgs_save }}\n </button> </div>\n\n <div><button [hidden]=\"!log_enabled\"\n mat-flat-button\n *ngIf=\"App != ''\"\n color=\"accent\"\n (click)=\"logs()\"\n >\n <mat-icon>assignment</mat-icon>&nbsp;&nbsp;Logs\n </button> </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 }}\n </button> </div>\n </div>\n </div>\n </div>\n ",
2999
2999
  styles: [""]
3000
3000
  },] }
3001
3001
  ];
@@ -12182,6 +12182,7 @@
12182
12182
  var wkf_header_bar = /** @class */ (function () {
12183
12183
  function wkf_header_bar(m_appService) {
12184
12184
  this.m_appService = m_appService;
12185
+ this.custom_commands = [];
12185
12186
  this.dt_agg = null;
12186
12187
  this.edit_button = false;
12187
12188
  this.respingi_button = false;
@@ -12190,10 +12191,14 @@
12190
12191
  this.download_button = true;
12191
12192
  this.force_save = false;
12192
12193
  this.check_on_save = false;
12194
+ this.command = new i0.EventEmitter();
12193
12195
  this.admin_role = '[ZZZ_DIS_CC]';
12194
12196
  this.sovra_path = '';
12195
12197
  this.button_clicked = new i0.EventEmitter();
12196
12198
  }
12199
+ wkf_header_bar.prototype.exec_command = function (command) {
12200
+ this.command.emit({ cmd: command });
12201
+ };
12197
12202
  wkf_header_bar.prototype.back = function () {
12198
12203
  this.button_clicked.emit('back');
12199
12204
  if (this.dt_agg != null)
@@ -12240,13 +12245,14 @@
12240
12245
  wkf_header_bar.decorators = [
12241
12246
  { type: i0.Component, args: [{
12242
12247
  selector: "wkf_header_bar",
12243
- template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\" 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 Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\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=\"3px\"\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</button\n ></div><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</button\n ></div>\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</button\n ></div><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\n </button>\n </div> </div>\n </div>\n </div>\n "
12248
+ template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\" 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 Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\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=\"3px\"\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</button\n ></div><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</button\n ></div>\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</button\n ></div><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\n </button>\n </div> </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 }}\n </button> </div>\n </div>\n </div>\n </div>\n "
12244
12249
  },] }
12245
12250
  ];
12246
12251
  wkf_header_bar.ctorParameters = function () { return [
12247
12252
  { type: AppService }
12248
12253
  ]; };
12249
12254
  wkf_header_bar.propDecorators = {
12255
+ custom_commands: [{ type: i0.Input }],
12250
12256
  dt_agg: [{ type: i0.Input }],
12251
12257
  edit_button: [{ type: i0.Input }],
12252
12258
  respingi_button: [{ type: i0.Input }],
@@ -12255,6 +12261,7 @@
12255
12261
  download_button: [{ type: i0.Input }],
12256
12262
  force_save: [{ type: i0.Input }],
12257
12263
  check_on_save: [{ type: i0.Input }],
12264
+ command: [{ type: i0.Output }],
12258
12265
  admin_role: [{ type: i0.Input }],
12259
12266
  sovra_path: [{ type: i0.Input }],
12260
12267
  button_clicked: [{ type: i0.Output }]
@@ -15648,6 +15655,7 @@
15648
15655
  var wkf_header_bar_v2 = /** @class */ (function () {
15649
15656
  function wkf_header_bar_v2(m_appService) {
15650
15657
  this.m_appService = m_appService;
15658
+ this.custom_commands = [];
15651
15659
  this.dt_agg = null;
15652
15660
  this.edit_button = false;
15653
15661
  this.respingi_button = false;
@@ -15659,8 +15667,12 @@
15659
15667
  this.b_revisione = false;
15660
15668
  this.admin_role = '[ZZZ_DIS_CC]';
15661
15669
  this.sovra_path = '';
15670
+ this.command = new i0.EventEmitter();
15662
15671
  this.button_clicked = new i0.EventEmitter();
15663
15672
  }
15673
+ wkf_header_bar_v2.prototype.exec_command = function (command) {
15674
+ this.command.emit({ cmd: command });
15675
+ };
15664
15676
  wkf_header_bar_v2.prototype.revisione = function () {
15665
15677
  this.button_clicked.emit('revisione');
15666
15678
  if (this.dt_agg != null)
@@ -15712,13 +15724,14 @@
15712
15724
  wkf_header_bar_v2.decorators = [
15713
15725
  { type: i0.Component, args: [{
15714
15726
  selector: "wkf_header_bar_v2",
15715
- 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 Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div *ngIf=\"respingi_button\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div *ngIf=\"b_revisione\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n Revisione\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</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</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</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\n </button>\n </div>\n\n\n\n </div>\n </div>\n </div>\n "
15727
+ 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 Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div *ngIf=\"respingi_button\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div *ngIf=\"b_revisione\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n Revisione\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</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</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</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\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 }}\n </button> </div>\n </div>\n </div>\n </div>\n "
15716
15728
  },] }
15717
15729
  ];
15718
15730
  wkf_header_bar_v2.ctorParameters = function () { return [
15719
15731
  { type: AppService }
15720
15732
  ]; };
15721
15733
  wkf_header_bar_v2.propDecorators = {
15734
+ custom_commands: [{ type: i0.Input }],
15722
15735
  dt_agg: [{ type: i0.Input }],
15723
15736
  edit_button: [{ type: i0.Input }],
15724
15737
  respingi_button: [{ type: i0.Input }],
@@ -15730,6 +15743,7 @@
15730
15743
  b_revisione: [{ type: i0.Input }],
15731
15744
  admin_role: [{ type: i0.Input }],
15732
15745
  sovra_path: [{ type: i0.Input }],
15746
+ command: [{ type: i0.Output }],
15733
15747
  button_clicked: [{ type: i0.Output }]
15734
15748
  };
15735
15749