@fluxhub/fluxhub-lib 10.0.751 → 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 }],
@@ -23435,6 +23454,12 @@
23435
23454
  return;
23436
23455
  }
23437
23456
  //let arrayNexl: Array<any> = new Array();
23457
+ console.log("canale before: " + this.clevel.context);
23458
+ if (this.c_canale != null)
23459
+ if (this.c_canale != '')
23460
+ if (this.clevel.context == null || this.clevel.context == '')
23461
+ this.clevel.context = this.c_canale;
23462
+ console.log("canale after: " + this.clevel.context);
23438
23463
  var arrAutori = new Array();
23439
23464
  if (this.clevel.context == "") {
23440
23465
  for (var i = 0; i < this.livs.length; i++)
@@ -25144,6 +25169,7 @@
25144
25169
  exports.FHGridComponentN = FHGridComponentN;
25145
25170
  exports.FHGridJSONComponent = FHGridJSONComponent;
25146
25171
  exports.FHGuard = FHGuard;
25172
+ exports.FHHelpButton = FHHelpButton;
25147
25173
  exports.FHListComponent = FHListComponent;
25148
25174
  exports.FHLogPanelComponent = FHLogPanelComponent;
25149
25175
  exports.FHMdReader = FHMdReader;
@@ -25214,34 +25240,33 @@
25214
25240
  exports.wkfapp_v2 = wkfapp_v2;
25215
25241
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
25216
25242
  exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
25217
- exports.ɵba = win_commenti;
25218
- exports.ɵbb = win_info_doc;
25219
- exports.ɵbc = win_log;
25220
- exports.ɵbd = win_recupera_doc;
25221
- exports.ɵbe = win_riassegna_select_level;
25222
- exports.ɵbf = win_riassegna_select_user;
25223
- exports.ɵbg = win_sostituisci_utente;
25224
- exports.ɵbh = win_commento_sel_notif;
25225
- exports.ɵbi = win_manage_values;
25226
- exports.ɵbj = win_manage_roles;
25227
- exports.ɵbk = FHComboboxComponentFilter;
25228
- exports.ɵbl = win_salva_annulla_v2;
25229
- exports.ɵbm = win_assegna_v2;
25230
- exports.ɵbn = win_conferma_v2;
25231
- exports.ɵbo = win_select_canale_v2;
25232
- exports.ɵbp = win_select_level_v2;
25233
- exports.ɵbq = win_uploads_v2;
25234
- exports.ɵbr = win_commenti_v2;
25235
- exports.ɵbs = win_info_doc_v2;
25236
- exports.ɵbt = win_log_v2;
25237
- exports.ɵbu = win_recupera_doc_v2;
25238
- exports.ɵbv = win_riassegna_select_level_v2;
25239
- exports.ɵbw = win_riassegna_select_user_v2;
25240
- exports.ɵbx = win_sostituisci_utente_v2;
25241
- exports.ɵby = win_commento_sel_notif_v2;
25242
- 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;
25243
25269
  exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
25244
- exports.ɵca = win_assegna_a;
25245
25270
  exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
25246
25271
  exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
25247
25272
  exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
@@ -25255,15 +25280,15 @@
25255
25280
  exports.ɵn = MomentDateAdapter;
25256
25281
  exports.ɵo = HighlightService;
25257
25282
  exports.ɵp = win_show_log_info_dett;
25258
- exports.ɵq = FHHelpButton;
25259
- exports.ɵr = SafePipe;
25260
- exports.ɵs = FHViewerComponent;
25261
- exports.ɵu = FHGridToolBarComponent;
25262
- exports.ɵv = win_grid_help;
25263
- exports.ɵw = win_assegna;
25264
- exports.ɵx = win_conferma;
25265
- exports.ɵy = win_select_canale;
25266
- 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;
25267
25292
 
25268
25293
  Object.defineProperty(exports, '__esModule', { value: true });
25269
25294