@fluxhub/fluxhub-lib 10.0.752 → 10.0.754

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.
@@ -5489,7 +5489,7 @@
5489
5489
  ]; };
5490
5490
 
5491
5491
  var FHGridComponent = /** @class */ (function () {
5492
- function FHGridComponent(_gridservice, _toast, _dataService, m_appService, slimLoadingBarService, m_dialog, uti_s, officeService, _fileService, clipboard) {
5492
+ function FHGridComponent(_gridservice, _toast, _dataService, m_appService, slimLoadingBarService, m_dialog, uti_s, officeService, _fileService, clipboard, _trs) {
5493
5493
  var _this = this;
5494
5494
  this._gridservice = _gridservice;
5495
5495
  this._toast = _toast;
@@ -5501,6 +5501,7 @@
5501
5501
  this.officeService = officeService;
5502
5502
  this._fileService = _fileService;
5503
5503
  this.clipboard = clipboard;
5504
+ this._trs = _trs;
5504
5505
  this.flt_aggiuntivo = [];
5505
5506
  this.flt_aggiuntivo_value = '';
5506
5507
  this.flt_aggiuntivo_label = '';
@@ -6015,6 +6016,23 @@
6015
6016
  FHGridComponent.prototype.docmd = function (o) {
6016
6017
  this.command.emit(o);
6017
6018
  };
6019
+ FHGridComponent.prototype.translate_back = function (val) {
6020
+ console.log('translate_back ', val);
6021
+ if (this._trs == null)
6022
+ return val;
6023
+ if (this._trs.store == null)
6024
+ return val;
6025
+ if (this._trs.store.translations == null)
6026
+ return val;
6027
+ if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_lng') == null)
6028
+ localStorage.setItem(this.m_appService.COMPANY_KEY + '_lng', 'it');
6029
+ var lng = localStorage.getItem(this.m_appService.COMPANY_KEY + '_lng');
6030
+ for (var property in this._trs.store.translations[lng]) {
6031
+ if (this._trs.store.translations[lng][property] == val)
6032
+ return property;
6033
+ }
6034
+ return val;
6035
+ };
6018
6036
  FHGridComponent.prototype.ensure_visible = function () {
6019
6037
  if (this.b_ensure)
6020
6038
  return;
@@ -6414,7 +6432,7 @@
6414
6432
  if (obj_filtro.values[i] != null) {
6415
6433
  if (sq != "")
6416
6434
  sq = sq + ",";
6417
- sq = sq + "'" + obj_filtro.values[i].replace("'", "''") + "'";
6435
+ sq = sq + "'" + this.translate_back(obj_filtro.values[i].replace("'", "''")) + "'";
6418
6436
  if (like_f != "")
6419
6437
  like_f = like_f + " or ";
6420
6438
  like_f = like_f + " upper(" +
@@ -7316,7 +7334,8 @@
7316
7334
  { type: UtilityService },
7317
7335
  { type: OfficeAutomatorService },
7318
7336
  { type: FileService },
7319
- { type: clipboard.Clipboard }
7337
+ { type: clipboard.Clipboard },
7338
+ { type: core.TranslateService }
7320
7339
  ]; };
7321
7340
  FHGridComponent.propDecorators = {
7322
7341
  flt_aggiuntivo: [{ type: i0.Input }],
@@ -19722,8 +19741,8 @@
19722
19741
  this.livs = this.app_s.getState().wkf_obj.livs;
19723
19742
  this.user_idp = this.app_s.getState().wkf_obj.user_idp;
19724
19743
  this.app_root = this.app_s.getState().wkf_obj.app_root;
19725
- this.title = this.app_s.getState().wkf_obj.title;
19726
- this.m_uti.set_home_title(this.att_panelcat);
19744
+ this.title = this.tsr.instant(this.app_s.getState().wkf_obj.title);
19745
+ this.m_uti.set_home_title(this.tsr.instant(this.att_panelcat));
19727
19746
  };
19728
19747
  wkfapp.prototype.init_Panel = function (cod_documento, id_Doc) {
19729
19748
  this.m_id_Doc = id_Doc;
@@ -21693,8 +21712,8 @@
21693
21712
  this.btnApprova_label = "APPROVA";
21694
21713
  this.btnAssegna_label = "Assegna";
21695
21714
  this.btnRespingi_label = "RESPINGI";
21696
- this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
21697
- this.reset_form(this.app_info.descrizione_breve + " - Nuova Richiesta");
21715
+ this.uti_s.set_home_title(this.app_info.descrizione_breve) + ' - ' + this.uti_s.set_home_title("Nuova Richiesta");
21716
+ this.reset_form(this.app_info.descrizione_breve + ' - ' + this.uti_s.set_home_title("Nuova Richiesta"));
21698
21717
  this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
21699
21718
  this.reset_counters_int(0, 0);
21700
21719
  /*
@@ -21788,16 +21807,20 @@
21788
21807
  break;
21789
21808
  }
21790
21809
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
21791
- this.uti_s.set_home_title(this.app_info.descrizione_breve +
21792
- " " +
21793
- this.m_obj.codice +
21794
- " - " +
21795
- this.m_obj.stat_stato);
21796
- this.reset_form(this.app_info.descrizione_breve +
21797
- " " +
21798
- this.m_obj.codice +
21799
- " - " +
21800
- this.m_obj.stat_stato); //+' ('+s_uto+')');
21810
+ if (this.m_obj.v == null)
21811
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
21812
+ " " +
21813
+ this.m_obj.codice +
21814
+ " - " +
21815
+ this.tsr.instant(this.m_obj.stat_stato));
21816
+ else
21817
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
21818
+ " " +
21819
+ this.m_obj.codice +
21820
+ "/" +
21821
+ this.m_obj.v +
21822
+ " - " +
21823
+ this.tsr.instant(this.m_obj.stat_stato));
21801
21824
  this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
21802
21825
  };
21803
21826
  dati_aggiuntivi.prototype.onResize = function (event) { };
@@ -22767,7 +22790,7 @@
22767
22790
  this.livs = this.app_s.getState().wkf_obj.livs;
22768
22791
  this.user_idp = this.app_s.getState().wkf_obj.user_idp;
22769
22792
  this.app_root = this.app_s.getState().wkf_obj.app_root;
22770
- this.title = this.app_s.getState().wkf_obj.title;
22793
+ this.title = this.tsr.instant(this.app_s.getState().wkf_obj.title);
22771
22794
  this.m_uti.set_home_title(this.tsr.instant(this.att_panelcat));
22772
22795
  };
22773
22796
  wkfapp_v2.prototype.init_Panel = function (cod_documento, id_Doc) {
@@ -25150,6 +25173,7 @@
25150
25173
  exports.FHGridComponentN = FHGridComponentN;
25151
25174
  exports.FHGridJSONComponent = FHGridJSONComponent;
25152
25175
  exports.FHGuard = FHGuard;
25176
+ exports.FHHelpButton = FHHelpButton;
25153
25177
  exports.FHListComponent = FHListComponent;
25154
25178
  exports.FHLogPanelComponent = FHLogPanelComponent;
25155
25179
  exports.FHMdReader = FHMdReader;
@@ -25220,34 +25244,33 @@
25220
25244
  exports.wkfapp_v2 = wkfapp_v2;
25221
25245
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
25222
25246
  exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
25223
- exports.ɵba = win_commenti;
25224
- exports.ɵbb = win_info_doc;
25225
- exports.ɵbc = win_log;
25226
- exports.ɵbd = win_recupera_doc;
25227
- exports.ɵbe = win_riassegna_select_level;
25228
- exports.ɵbf = win_riassegna_select_user;
25229
- exports.ɵbg = win_sostituisci_utente;
25230
- exports.ɵbh = win_commento_sel_notif;
25231
- exports.ɵbi = win_manage_values;
25232
- exports.ɵbj = win_manage_roles;
25233
- exports.ɵbk = FHComboboxComponentFilter;
25234
- exports.ɵbl = win_salva_annulla_v2;
25235
- exports.ɵbm = win_assegna_v2;
25236
- exports.ɵbn = win_conferma_v2;
25237
- exports.ɵbo = win_select_canale_v2;
25238
- exports.ɵbp = win_select_level_v2;
25239
- exports.ɵbq = win_uploads_v2;
25240
- exports.ɵbr = win_commenti_v2;
25241
- exports.ɵbs = win_info_doc_v2;
25242
- exports.ɵbt = win_log_v2;
25243
- exports.ɵbu = win_recupera_doc_v2;
25244
- exports.ɵbv = win_riassegna_select_level_v2;
25245
- exports.ɵbw = win_riassegna_select_user_v2;
25246
- exports.ɵbx = win_sostituisci_utente_v2;
25247
- exports.ɵby = win_commento_sel_notif_v2;
25248
- exports.ɵbz = win_insert_commento_v2;
25247
+ exports.ɵba = win_info_doc;
25248
+ exports.ɵbb = win_log;
25249
+ exports.ɵbc = win_recupera_doc;
25250
+ exports.ɵbd = win_riassegna_select_level;
25251
+ exports.ɵbe = win_riassegna_select_user;
25252
+ exports.ɵbf = win_sostituisci_utente;
25253
+ exports.ɵbg = win_commento_sel_notif;
25254
+ exports.ɵbh = win_manage_values;
25255
+ exports.ɵbi = win_manage_roles;
25256
+ exports.ɵbj = FHComboboxComponentFilter;
25257
+ exports.ɵbk = win_salva_annulla_v2;
25258
+ exports.ɵbl = win_assegna_v2;
25259
+ exports.ɵbm = win_conferma_v2;
25260
+ exports.ɵbn = win_select_canale_v2;
25261
+ exports.ɵbo = win_select_level_v2;
25262
+ exports.ɵbp = win_uploads_v2;
25263
+ exports.ɵbq = win_commenti_v2;
25264
+ exports.ɵbr = win_info_doc_v2;
25265
+ exports.ɵbs = win_log_v2;
25266
+ exports.ɵbt = win_recupera_doc_v2;
25267
+ exports.ɵbu = win_riassegna_select_level_v2;
25268
+ exports.ɵbv = win_riassegna_select_user_v2;
25269
+ exports.ɵbw = win_sostituisci_utente_v2;
25270
+ exports.ɵbx = win_commento_sel_notif_v2;
25271
+ exports.ɵby = win_insert_commento_v2;
25272
+ exports.ɵbz = win_assegna_a;
25249
25273
  exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
25250
- exports.ɵca = win_assegna_a;
25251
25274
  exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
25252
25275
  exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
25253
25276
  exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
@@ -25261,15 +25284,15 @@
25261
25284
  exports.ɵn = MomentDateAdapter;
25262
25285
  exports.ɵo = HighlightService;
25263
25286
  exports.ɵp = win_show_log_info_dett;
25264
- exports.ɵq = FHHelpButton;
25265
- exports.ɵr = SafePipe;
25266
- exports.ɵs = FHViewerComponent;
25267
- exports.ɵu = FHGridToolBarComponent;
25268
- exports.ɵv = win_grid_help;
25269
- exports.ɵw = win_assegna;
25270
- exports.ɵx = win_conferma;
25271
- exports.ɵy = win_select_canale;
25272
- exports.ɵz = win_select_level;
25287
+ exports.ɵq = SafePipe;
25288
+ exports.ɵr = FHViewerComponent;
25289
+ exports.ɵt = FHGridToolBarComponent;
25290
+ exports.ɵu = win_grid_help;
25291
+ exports.ɵv = win_assegna;
25292
+ exports.ɵw = win_conferma;
25293
+ exports.ɵx = win_select_canale;
25294
+ exports.ɵy = win_select_level;
25295
+ exports.ɵz = win_commenti;
25273
25296
 
25274
25297
  Object.defineProperty(exports, '__esModule', { value: true });
25275
25298