@fluxhub/fluxhub-lib 10.0.533 → 10.0.535

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.
@@ -2,6 +2,7 @@ import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angu
2
2
  import { ToastrService } from 'ngx-toastr';
3
3
  import { ɵɵdefineInjectable, Injectable, ɵɵinject, forwardRef, EventEmitter, Component, Input, ViewChild, Output, Inject, HostListener, ViewContainerRef, Pipe, Directive, ElementRef, PLATFORM_ID, Optional, NgModule } from '@angular/core';
4
4
  import { FileUploader, FileUploadModule } from 'ng2-file-upload';
5
+ import { TranslateService, TranslateModule } from '@ngx-translate/core';
5
6
  import { HttpHeaders, HttpClient } from '@angular/common/http';
6
7
  import { SimpleCrypt } from 'ngx-simple-crypt';
7
8
  import { AES, enc } from 'crypto-js';
@@ -15,7 +16,6 @@ import 'ag-grid-enterprise';
15
16
  import { MatSelectModule } from '@angular/material/select';
16
17
  import { forkJoin, Observable } from 'rxjs';
17
18
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
18
- import { TranslateService, TranslateModule } from '@ngx-translate/core';
19
19
  import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
20
20
  import * as momentNs from 'moment';
21
21
  import { isMoment } from 'moment';
@@ -1083,9 +1083,10 @@ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
1083
1083
  multi: true,
1084
1084
  };
1085
1085
  class FHComboboxComponent {
1086
- constructor(_dataService, _dataService_odbc) {
1086
+ constructor(_dataService, _dataService_odbc, _tsr) {
1087
1087
  this._dataService = _dataService;
1088
1088
  this._dataService_odbc = _dataService_odbc;
1089
+ this._tsr = _tsr;
1089
1090
  this.init_fill = true;
1090
1091
  this.sql = "";
1091
1092
  this.types = [];
@@ -1121,13 +1122,13 @@ class FHComboboxComponent {
1121
1122
  try {
1122
1123
  if (this.descri_val != null)
1123
1124
  if (this.descri_val != "") {
1124
- this.dis_value = this.descri_val;
1125
+ this.dis_value = this._tsr.instant(this.descri_val);
1125
1126
  return;
1126
1127
  }
1127
1128
  if (this.valDef == null)
1128
1129
  this.dis_value = "";
1129
1130
  else
1130
- this.dis_value = this.valDef.split("-1").join("");
1131
+ this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
1131
1132
  }
1132
1133
  catch (e) {
1133
1134
  //console.log("errore split -> this.valDef ", this.valDef);
@@ -1171,6 +1172,8 @@ class FHComboboxComponent {
1171
1172
  this._dataService.doQuery(p).subscribe((data) => {
1172
1173
  if (data != null)
1173
1174
  if (data.result_msg == "OK") {
1175
+ for (let i = 0; i < data.result_data.length; i++)
1176
+ data.result_data[i].descrizione_valore = this._tsr.instant(data.result_data[i].descrizione_valore);
1174
1177
  this.resetD(data.result_data);
1175
1178
  }
1176
1179
  });
@@ -1184,6 +1187,7 @@ class FHComboboxComponent {
1184
1187
  if (data.result_data[i].DESCRIZIONE_VALORE != null)
1185
1188
  data.result_data[i].descrizione_valore =
1186
1189
  data.result_data[i].DESCRIZIONE_VALORE;
1190
+ data.result_data[i].descrizione_valore = this._tsr.instant(data.result_data[i].descrizione_valore);
1187
1191
  }
1188
1192
  this.resetD(data.result_data);
1189
1193
  }
@@ -1206,7 +1210,7 @@ class FHComboboxComponent {
1206
1210
  // console.log(this.smtr); console.log(this.smtr.nativeElement);
1207
1211
  this.setByValue(this.valDef);
1208
1212
  if (this.getValue() == "-1" && this.valDef != "-1")
1209
- this.setByDescri(this.valDef);
1213
+ this.setByDescri(this._tsr.instant(this.valDef));
1210
1214
  this.is_loaded = true;
1211
1215
  this.fillend.emit();
1212
1216
  }
@@ -1254,7 +1258,7 @@ class FHComboboxComponent {
1254
1258
  if (this.myData.length == 0 || this.myData[0] == null)
1255
1259
  return;
1256
1260
  if (this.myData.length > ind) {
1257
- this.setByDescri(this.myData[ind].descrizione_valore);
1261
+ this.setByDescri(this._tsr.instant(this.myData[ind].descrizione_valore));
1258
1262
  }
1259
1263
  }
1260
1264
  getObj() {
@@ -1375,13 +1379,13 @@ class FHComboboxComponent {
1375
1379
  var o = new Object();
1376
1380
  var av = a[i].split("|");
1377
1381
  o.valore = av[1];
1378
- o.descrizione_valore = av[0];
1382
+ o.descrizione_valore = this._tsr.instant(av[0]);
1379
1383
  this.add_option(o);
1380
1384
  }
1381
1385
  this.setByValue(this.valDef);
1382
1386
  this.is_loaded = true;
1383
1387
  if (this.getValue() == "-1")
1384
- this.setByDescri(this.valDef);
1388
+ this.setByDescri(this._tsr.instant(this.valDef));
1385
1389
  }
1386
1390
  doFill() {
1387
1391
  setTimeout(() => {
@@ -1481,7 +1485,8 @@ FHComboboxComponent.decorators = [
1481
1485
  ];
1482
1486
  FHComboboxComponent.ctorParameters = () => [
1483
1487
  { type: QueryService },
1484
- { type: OdbcService }
1488
+ { type: OdbcService },
1489
+ { type: TranslateService }
1485
1490
  ];
1486
1491
  FHComboboxComponent.propDecorators = {
1487
1492
  init_fill: [{ type: Input }],
@@ -18703,8 +18708,9 @@ dati_aggiuntivi.propDecorators = {
18703
18708
  };
18704
18709
 
18705
18710
  class wkf_header_bar {
18706
- constructor(m_appService) {
18711
+ constructor(m_appService, _trs) {
18707
18712
  this.m_appService = m_appService;
18713
+ this._trs = _trs;
18708
18714
  this.custom_commands = [];
18709
18715
  this.dt_agg = null;
18710
18716
  this.edit_button = false;
@@ -18727,6 +18733,17 @@ class wkf_header_bar {
18727
18733
  this.allegati_lbl = 'Allegati';
18728
18734
  this.workflow_lbl = 'Workflow';
18729
18735
  this.button_clicked = new EventEmitter();
18736
+ setTimeout(() => {
18737
+ this.back_lbl = this._trs.instant('Indietro');
18738
+ this.save_lbl = this._trs.instant('Salva');
18739
+ this.procedi_lbl = this._trs.instant('Procedi');
18740
+ this.respingi_lbl = this._trs.instant('Respingi');
18741
+ this.revisione_lbl = this._trs.instant('Revisione');
18742
+ this.info_doc_lbl = this._trs.instant('Info Doc');
18743
+ this.commenti_lbl = this._trs.instant('Commenti');
18744
+ this.allegati_lbl = this._trs.instant('Allegati');
18745
+ this.workflow_lbl = this._trs.instant('Workflow');
18746
+ });
18730
18747
  }
18731
18748
  exec_command(command) {
18732
18749
  this.command.emit({ cmd: command });
@@ -18870,7 +18887,8 @@ wkf_header_bar.decorators = [
18870
18887
  },] }
18871
18888
  ];
18872
18889
  wkf_header_bar.ctorParameters = () => [
18873
- { type: AppService }
18890
+ { type: AppService },
18891
+ { type: TranslateService }
18874
18892
  ];
18875
18893
  wkf_header_bar.propDecorators = {
18876
18894
  custom_commands: [{ type: Input }],
@@ -18885,15 +18903,6 @@ wkf_header_bar.propDecorators = {
18885
18903
  command: [{ type: Output }],
18886
18904
  admin_role: [{ type: Input }],
18887
18905
  sovra_path: [{ type: Input }],
18888
- back_lbl: [{ type: Input }],
18889
- save_lbl: [{ type: Input }],
18890
- procedi_lbl: [{ type: Input }],
18891
- respingi_lbl: [{ type: Input }],
18892
- revisione_lbl: [{ type: Input }],
18893
- info_doc_lbl: [{ type: Input }],
18894
- commenti_lbl: [{ type: Input }],
18895
- allegati_lbl: [{ type: Input }],
18896
- workflow_lbl: [{ type: Input }],
18897
18906
  button_clicked: [{ type: Output }]
18898
18907
  };
18899
18908
 
@@ -25505,8 +25514,9 @@ dati_aggiuntivi_v2.propDecorators = {
25505
25514
  };
25506
25515
 
25507
25516
  class wkf_header_bar_v2 {
25508
- constructor(m_appService) {
25517
+ constructor(m_appService, _trs) {
25509
25518
  this.m_appService = m_appService;
25519
+ this._trs = _trs;
25510
25520
  this.custom_commands = [];
25511
25521
  this.dt_agg = null;
25512
25522
  this.edit_button = false;
@@ -25530,6 +25540,17 @@ class wkf_header_bar_v2 {
25530
25540
  this.sovra_path = '';
25531
25541
  this.command = new EventEmitter();
25532
25542
  this.button_clicked = new EventEmitter();
25543
+ setTimeout(() => {
25544
+ this.back_lbl = this._trs.instant('Indietro');
25545
+ this.save_lbl = this._trs.instant('Salva');
25546
+ this.procedi_lbl = this._trs.instant('Procedi');
25547
+ this.respingi_lbl = this._trs.instant('Respingi');
25548
+ this.revisione_lbl = this._trs.instant('Revisione');
25549
+ this.info_doc_lbl = this._trs.instant('Info Doc');
25550
+ this.commenti_lbl = this._trs.instant('Commenti');
25551
+ this.allegati_lbl = this._trs.instant('Allegati');
25552
+ this.workflow_lbl = this._trs.instant('Workflow');
25553
+ });
25533
25554
  }
25534
25555
  exec_command(command) {
25535
25556
  this.command.emit({ cmd: command });
@@ -25695,7 +25716,8 @@ wkf_header_bar_v2.decorators = [
25695
25716
  },] }
25696
25717
  ];
25697
25718
  wkf_header_bar_v2.ctorParameters = () => [
25698
- { type: AppService }
25719
+ { type: AppService },
25720
+ { type: TranslateService }
25699
25721
  ];
25700
25722
  wkf_header_bar_v2.propDecorators = {
25701
25723
  custom_commands: [{ type: Input }],
@@ -25707,15 +25729,6 @@ wkf_header_bar_v2.propDecorators = {
25707
25729
  force_save: [{ type: Input }],
25708
25730
  check_on_save: [{ type: Input }],
25709
25731
  download_button: [{ type: Input }],
25710
- back_lbl: [{ type: Input }],
25711
- save_lbl: [{ type: Input }],
25712
- procedi_lbl: [{ type: Input }],
25713
- respingi_lbl: [{ type: Input }],
25714
- revisione_lbl: [{ type: Input }],
25715
- info_doc_lbl: [{ type: Input }],
25716
- commenti_lbl: [{ type: Input }],
25717
- allegati_lbl: [{ type: Input }],
25718
- workflow_lbl: [{ type: Input }],
25719
25732
  b_revisione: [{ type: Input }],
25720
25733
  admin_role: [{ type: Input }],
25721
25734
  sovra_path: [{ type: Input }],