@fluxhub/fluxhub-lib 1.0.486 → 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.
@@ -6723,6 +6723,7 @@
6723
6723
  p.filter = p.filter + ' and ';
6724
6724
  p.filter = p.filter + ' (' + _this.fix_flt + ' )';
6725
6725
  }
6726
+ console.log(' this.fix_flt_temp 222 ' + _this.fix_flt_temp);
6726
6727
  if (_this.fix_flt_temp != "") {
6727
6728
  if (p.filter != "")
6728
6729
  p.filter = p.filter + ' and ';
@@ -7875,8 +7876,35 @@
7875
7876
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7876
7877
  try {
7877
7878
  this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
7878
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7879
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
7879
7880
  this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7881
+ /** @type {?} */
7882
+ var arr = this.ric_libera.split(' ');
7883
+ /** @type {?} */
7884
+ var arr_F = new Array();
7885
+ for (var i = 0; i < arr.length; i++)
7886
+ if (arr[i].length > 2)
7887
+ arr_F.push(arr[i]);
7888
+ else
7889
+ this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
7890
+ if (arr_F.length == 0)
7891
+ return;
7892
+ /** @type {?} */
7893
+ var ss = "";
7894
+ for (var y = 0; y < this.columnDefs.length; y++)
7895
+ if (this.columnDefs[y] != null)
7896
+ if (this.columnDefs[y].no_filter == null)
7897
+ if (this.columnDefs[y].field != null)
7898
+ if (this.columnDefs[y].field != '')
7899
+ if (this.columnDefs[y].filter != 'agDateColumnFilter')
7900
+ for (var i = 0; i < arr_F.length; i++) {
7901
+ if (ss != "")
7902
+ ss = ss + " or ";
7903
+ ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7904
+ }
7905
+ this.fix_flt_temp = ss;
7906
+ console.log(' this.fix_flt_temp 111 ' + this.fix_flt_temp);
7907
+ }
7880
7908
  }
7881
7909
  catch (eer) {
7882
7910
  console.log(eer);