@fluxhub/fluxhub-lib 10.0.752 → 10.0.753

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 }],
@@ -25150,6 +25169,7 @@
25150
25169
  exports.FHGridComponentN = FHGridComponentN;
25151
25170
  exports.FHGridJSONComponent = FHGridJSONComponent;
25152
25171
  exports.FHGuard = FHGuard;
25172
+ exports.FHHelpButton = FHHelpButton;
25153
25173
  exports.FHListComponent = FHListComponent;
25154
25174
  exports.FHLogPanelComponent = FHLogPanelComponent;
25155
25175
  exports.FHMdReader = FHMdReader;
@@ -25220,34 +25240,33 @@
25220
25240
  exports.wkfapp_v2 = wkfapp_v2;
25221
25241
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
25222
25242
  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;
25243
+ exports.ɵba = win_info_doc;
25244
+ exports.ɵbb = win_log;
25245
+ exports.ɵbc = win_recupera_doc;
25246
+ exports.ɵbd = win_riassegna_select_level;
25247
+ exports.ɵbe = win_riassegna_select_user;
25248
+ exports.ɵbf = win_sostituisci_utente;
25249
+ exports.ɵbg = win_commento_sel_notif;
25250
+ exports.ɵbh = win_manage_values;
25251
+ exports.ɵbi = win_manage_roles;
25252
+ exports.ɵbj = FHComboboxComponentFilter;
25253
+ exports.ɵbk = win_salva_annulla_v2;
25254
+ exports.ɵbl = win_assegna_v2;
25255
+ exports.ɵbm = win_conferma_v2;
25256
+ exports.ɵbn = win_select_canale_v2;
25257
+ exports.ɵbo = win_select_level_v2;
25258
+ exports.ɵbp = win_uploads_v2;
25259
+ exports.ɵbq = win_commenti_v2;
25260
+ exports.ɵbr = win_info_doc_v2;
25261
+ exports.ɵbs = win_log_v2;
25262
+ exports.ɵbt = win_recupera_doc_v2;
25263
+ exports.ɵbu = win_riassegna_select_level_v2;
25264
+ exports.ɵbv = win_riassegna_select_user_v2;
25265
+ exports.ɵbw = win_sostituisci_utente_v2;
25266
+ exports.ɵbx = win_commento_sel_notif_v2;
25267
+ exports.ɵby = win_insert_commento_v2;
25268
+ exports.ɵbz = win_assegna_a;
25249
25269
  exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
25250
- exports.ɵca = win_assegna_a;
25251
25270
  exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
25252
25271
  exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
25253
25272
  exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
@@ -25261,15 +25280,15 @@
25261
25280
  exports.ɵn = MomentDateAdapter;
25262
25281
  exports.ɵo = HighlightService;
25263
25282
  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;
25283
+ exports.ɵq = SafePipe;
25284
+ exports.ɵr = FHViewerComponent;
25285
+ exports.ɵt = FHGridToolBarComponent;
25286
+ exports.ɵu = win_grid_help;
25287
+ exports.ɵv = win_assegna;
25288
+ exports.ɵw = win_conferma;
25289
+ exports.ɵx = win_select_canale;
25290
+ exports.ɵy = win_select_level;
25291
+ exports.ɵz = win_commenti;
25273
25292
 
25274
25293
  Object.defineProperty(exports, '__esModule', { value: true });
25275
25294