@fluxhub/fluxhub-lib 1.0.487 → 1.0.488

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.
@@ -6455,6 +6455,7 @@ class FHGridComponent {
6455
6455
  p.filter = p.filter + ' and ';
6456
6456
  p.filter = p.filter + ' (' + this.fix_flt + ' )';
6457
6457
  }
6458
+ console.log(' this.fix_flt_temp 222 ' + this.fix_flt_temp);
6458
6459
  if (this.fix_flt_temp != "") {
6459
6460
  if (p.filter != "")
6460
6461
  p.filter = p.filter + ' and ';
@@ -6740,10 +6741,6 @@ class FHGridComponent {
6740
6741
  this.fix_flt_temp = "";
6741
6742
  if (this.m_appService.getState().grid_obj == null)
6742
6743
  this.m_appService.getState().grid_obj = {};
6743
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
6744
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
6745
- this.fix_flt_temp = localStorage.getItem(this.grid_key + '_FILTER_UP');
6746
- }
6747
6744
  }
6748
6745
  /**
6749
6746
  * @param {?} o
@@ -7498,8 +7495,35 @@ class FHGridComponent {
7498
7495
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7499
7496
  try {
7500
7497
  this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
7501
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7498
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
7502
7499
  this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7500
+ /** @type {?} */
7501
+ let arr = this.ric_libera.split(' ');
7502
+ /** @type {?} */
7503
+ let arr_F = new Array();
7504
+ for (let i = 0; i < arr.length; i++)
7505
+ if (arr[i].length > 2)
7506
+ arr_F.push(arr[i]);
7507
+ else
7508
+ this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
7509
+ if (arr_F.length == 0)
7510
+ return;
7511
+ /** @type {?} */
7512
+ let ss = "";
7513
+ for (let y = 0; y < this.columnDefs.length; y++)
7514
+ if (this.columnDefs[y] != null)
7515
+ if (this.columnDefs[y].no_filter == null)
7516
+ if (this.columnDefs[y].field != null)
7517
+ if (this.columnDefs[y].field != '')
7518
+ if (this.columnDefs[y].filter != 'agDateColumnFilter')
7519
+ for (let i = 0; i < arr_F.length; i++) {
7520
+ if (ss != "")
7521
+ ss = ss + " or ";
7522
+ ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7523
+ }
7524
+ this.fix_flt_temp = ss;
7525
+ console.log(' this.fix_flt_temp 111 ' + this.fix_flt_temp);
7526
+ }
7503
7527
  }
7504
7528
  catch (eer) {
7505
7529
  console.log(eer);