@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.
@@ -6701,6 +6701,7 @@ var FHGridComponent = /** @class */ (function () {
6701
6701
  p.filter = p.filter + ' and ';
6702
6702
  p.filter = p.filter + ' (' + _this.fix_flt + ' )';
6703
6703
  }
6704
+ console.log(' this.fix_flt_temp 222 ' + _this.fix_flt_temp);
6704
6705
  if (_this.fix_flt_temp != "") {
6705
6706
  if (p.filter != "")
6706
6707
  p.filter = p.filter + ' and ';
@@ -6986,10 +6987,6 @@ var FHGridComponent = /** @class */ (function () {
6986
6987
  this.fix_flt_temp = "";
6987
6988
  if (this.m_appService.getState().grid_obj == null)
6988
6989
  this.m_appService.getState().grid_obj = {};
6989
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
6990
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
6991
- this.fix_flt_temp = localStorage.getItem(this.grid_key + '_FILTER_UP');
6992
- }
6993
6990
  }
6994
6991
  /**
6995
6992
  * @param {?} o
@@ -7857,8 +7854,35 @@ var FHGridComponent = /** @class */ (function () {
7857
7854
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7858
7855
  try {
7859
7856
  this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
7860
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7857
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
7861
7858
  this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7859
+ /** @type {?} */
7860
+ var arr = this.ric_libera.split(' ');
7861
+ /** @type {?} */
7862
+ var arr_F = new Array();
7863
+ for (var i = 0; i < arr.length; i++)
7864
+ if (arr[i].length > 2)
7865
+ arr_F.push(arr[i]);
7866
+ else
7867
+ this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
7868
+ if (arr_F.length == 0)
7869
+ return;
7870
+ /** @type {?} */
7871
+ var ss = "";
7872
+ for (var y = 0; y < this.columnDefs.length; y++)
7873
+ if (this.columnDefs[y] != null)
7874
+ if (this.columnDefs[y].no_filter == null)
7875
+ if (this.columnDefs[y].field != null)
7876
+ if (this.columnDefs[y].field != '')
7877
+ if (this.columnDefs[y].filter != 'agDateColumnFilter')
7878
+ for (var i = 0; i < arr_F.length; i++) {
7879
+ if (ss != "")
7880
+ ss = ss + " or ";
7881
+ ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7882
+ }
7883
+ this.fix_flt_temp = ss;
7884
+ console.log(' this.fix_flt_temp 111 ' + this.fix_flt_temp);
7885
+ }
7862
7886
  }
7863
7887
  catch (eer) {
7864
7888
  console.log(eer);