@fluxhub/fluxhub-lib 1.0.488 → 1.0.490

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.
@@ -7727,6 +7727,7 @@ var FHGridComponent = /** @class */ (function () {
7727
7727
  */
7728
7728
  function () {
7729
7729
  var _this = this;
7730
+ console.log('CKKK');
7730
7731
  if (this.columnDefs == null) {
7731
7732
  setTimeout((/**
7732
7733
  * @return {?}
@@ -7758,6 +7759,36 @@ var FHGridComponent = /** @class */ (function () {
7758
7759
  this.res_columns();
7759
7760
  if (localStorage.getItem(this.grid_key + '_POS') != null)
7760
7761
  this.b_restored = true;
7762
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7763
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
7764
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7765
+ /** @type {?} */
7766
+ var arr = this.ric_libera.split(' ');
7767
+ /** @type {?} */
7768
+ var arr_F = new Array();
7769
+ for (var i = 0; i < arr.length; i++)
7770
+ if (arr[i].length > 2)
7771
+ arr_F.push(arr[i]);
7772
+ else
7773
+ this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
7774
+ if (arr_F.length == 0)
7775
+ return;
7776
+ /** @type {?} */
7777
+ var ss = "";
7778
+ for (var y = 0; y < this.columnDefs.length; y++)
7779
+ if (this.columnDefs[y] != null)
7780
+ if (this.columnDefs[y].no_filter == null)
7781
+ if (this.columnDefs[y].field != null)
7782
+ if (this.columnDefs[y].field != '')
7783
+ if (this.columnDefs[y].filter != 'agDateColumnFilter')
7784
+ for (var i = 0; i < arr_F.length; i++) {
7785
+ if (ss != "")
7786
+ ss = ss + " or ";
7787
+ ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7788
+ }
7789
+ this.fix_flt_temp = ss;
7790
+ this.show_pulisci_filtri = true;
7791
+ }
7761
7792
  if (this.init_fill) {
7762
7793
  setTimeout((/**
7763
7794
  * @return {?}
@@ -7854,35 +7885,6 @@ var FHGridComponent = /** @class */ (function () {
7854
7885
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7855
7886
  try {
7856
7887
  this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
7857
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
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
- }
7886
7888
  }
7887
7889
  catch (eer) {
7888
7890
  console.log(eer);