@fluxhub/fluxhub-lib 10.0.532 → 10.0.534

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.
@@ -7294,9 +7294,10 @@
7294
7294
  multi: true,
7295
7295
  };
7296
7296
  var FHComboboxComponent = /** @class */ (function () {
7297
- function FHComboboxComponent(_dataService, _dataService_odbc) {
7297
+ function FHComboboxComponent(_dataService, _dataService_odbc, _tsr) {
7298
7298
  this._dataService = _dataService;
7299
7299
  this._dataService_odbc = _dataService_odbc;
7300
+ this._tsr = _tsr;
7300
7301
  this.init_fill = true;
7301
7302
  this.sql = "";
7302
7303
  this.types = [];
@@ -7332,13 +7333,13 @@
7332
7333
  try {
7333
7334
  if (this.descri_val != null)
7334
7335
  if (this.descri_val != "") {
7335
- this.dis_value = this.descri_val;
7336
+ this.dis_value = this._tsr.instant(this.descri_val);
7336
7337
  return;
7337
7338
  }
7338
7339
  if (this.valDef == null)
7339
7340
  this.dis_value = "";
7340
7341
  else
7341
- this.dis_value = this.valDef.split("-1").join("");
7342
+ this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
7342
7343
  }
7343
7344
  catch (e) {
7344
7345
  //console.log("errore split -> this.valDef ", this.valDef);
@@ -7383,6 +7384,8 @@
7383
7384
  this._dataService.doQuery(p).subscribe(function (data) {
7384
7385
  if (data != null)
7385
7386
  if (data.result_msg == "OK") {
7387
+ for (var i = 0; i < data.result_data.length; i++)
7388
+ data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
7386
7389
  _this.resetD(data.result_data);
7387
7390
  }
7388
7391
  });
@@ -7396,6 +7399,7 @@
7396
7399
  if (data.result_data[i].DESCRIZIONE_VALORE != null)
7397
7400
  data.result_data[i].descrizione_valore =
7398
7401
  data.result_data[i].DESCRIZIONE_VALORE;
7402
+ data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
7399
7403
  }
7400
7404
  _this.resetD(data.result_data);
7401
7405
  }
@@ -7418,7 +7422,7 @@
7418
7422
  // console.log(this.smtr); console.log(this.smtr.nativeElement);
7419
7423
  this.setByValue(this.valDef);
7420
7424
  if (this.getValue() == "-1" && this.valDef != "-1")
7421
- this.setByDescri(this.valDef);
7425
+ this.setByDescri(this._tsr.instant(this.valDef));
7422
7426
  this.is_loaded = true;
7423
7427
  this.fillend.emit();
7424
7428
  };
@@ -7466,7 +7470,7 @@
7466
7470
  if (this.myData.length == 0 || this.myData[0] == null)
7467
7471
  return;
7468
7472
  if (this.myData.length > ind) {
7469
- this.setByDescri(this.myData[ind].descrizione_valore);
7473
+ this.setByDescri(this._tsr.instant(this.myData[ind].descrizione_valore));
7470
7474
  }
7471
7475
  };
7472
7476
  FHComboboxComponent.prototype.getObj = function () {
@@ -7587,13 +7591,13 @@
7587
7591
  var o = new Object();
7588
7592
  var av = a[i].split("|");
7589
7593
  o.valore = av[1];
7590
- o.descrizione_valore = av[0];
7594
+ o.descrizione_valore = this._tsr.instant(av[0]);
7591
7595
  this.add_option(o);
7592
7596
  }
7593
7597
  this.setByValue(this.valDef);
7594
7598
  this.is_loaded = true;
7595
7599
  if (this.getValue() == "-1")
7596
- this.setByDescri(this.valDef);
7600
+ this.setByDescri(this._tsr.instant(this.valDef));
7597
7601
  };
7598
7602
  FHComboboxComponent.prototype.doFill = function () {
7599
7603
  var _this = this;
@@ -7662,7 +7666,8 @@
7662
7666
  ];
7663
7667
  FHComboboxComponent.ctorParameters = function () { return [
7664
7668
  { type: QueryService },
7665
- { type: OdbcService }
7669
+ { type: OdbcService },
7670
+ { type: core.TranslateService }
7666
7671
  ]; };
7667
7672
  FHComboboxComponent.propDecorators = {
7668
7673
  init_fill: [{ type: i0.Input }],
@@ -12796,7 +12801,7 @@
12796
12801
  wkf_header_bar.decorators = [
12797
12802
  { type: i0.Component, args: [{
12798
12803
  selector: "wkf_header_bar",
12799
- 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 {{back_lbl}}</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 {{save_lbl}}</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_lbl}}</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n {{respingi_lbl}}\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_lbl}}</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_lbl}}</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_lbl}}</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_lbl}\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 "
12804
+ 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 {{back_lbl}}</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 {{save_lbl}}</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_lbl}}</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n {{respingi_lbl}}\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_lbl}}</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_lbl}}</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_lbl}}</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_lbl}}\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 "
12800
12805
  },] }
12801
12806
  ];
12802
12807
  wkf_header_bar.ctorParameters = function () { return [