@fluxhub/fluxhub-lib 1.0.489 → 1.0.491

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.
@@ -7374,6 +7374,7 @@ class FHGridComponent {
7374
7374
  * @return {?}
7375
7375
  */
7376
7376
  ckk() {
7377
+ console.log('CKKK');
7377
7378
  if (this.columnDefs == null) {
7378
7379
  setTimeout((/**
7379
7380
  * @return {?}
@@ -7405,36 +7406,36 @@ class FHGridComponent {
7405
7406
  this.res_columns();
7406
7407
  if (localStorage.getItem(this.grid_key + '_POS') != null)
7407
7408
  this.b_restored = true;
7408
- console.log('localStorage.getItem(this.grid_key + \'_FILTER_UP\') ', localStorage.getItem(this.grid_key + '_FILTER_UP'));
7409
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
7410
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7411
- /** @type {?} */
7412
- let arr = this.ric_libera.split(' ');
7413
- /** @type {?} */
7414
- let arr_F = new Array();
7415
- for (let i = 0; i < arr.length; i++)
7416
- if (arr[i].length > 2)
7417
- arr_F.push(arr[i]);
7418
- else
7419
- this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
7420
- if (arr_F.length == 0)
7421
- return;
7422
- /** @type {?} */
7423
- let ss = "";
7424
- for (let y = 0; y < this.columnDefs.length; y++)
7425
- if (this.columnDefs[y] != null)
7426
- if (this.columnDefs[y].no_filter == null)
7427
- if (this.columnDefs[y].field != null)
7428
- if (this.columnDefs[y].field != '')
7429
- if (this.columnDefs[y].filter != 'agDateColumnFilter')
7430
- for (let i = 0; i < arr_F.length; i++) {
7431
- if (ss != "")
7432
- ss = ss + " or ";
7433
- ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7434
- }
7435
- this.fix_flt_temp = ss;
7436
- console.log(' this.fix_flt_temp 111 ' + this.fix_flt_temp);
7437
- }
7409
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7410
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
7411
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7412
+ /** @type {?} */
7413
+ let arr = this.ric_libera.split(' ');
7414
+ /** @type {?} */
7415
+ let arr_F = new Array();
7416
+ for (let i = 0; i < arr.length; i++)
7417
+ if (arr[i].length > 2)
7418
+ arr_F.push(arr[i]);
7419
+ else
7420
+ this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
7421
+ if (arr_F.length == 0)
7422
+ return;
7423
+ /** @type {?} */
7424
+ let ss = "";
7425
+ for (let y = 0; y < this.columnDefs.length; y++)
7426
+ if (this.columnDefs[y] != null)
7427
+ if (this.columnDefs[y].no_filter == null)
7428
+ if (this.columnDefs[y].field != null)
7429
+ if (this.columnDefs[y].field != '')
7430
+ if (this.columnDefs[y].filter != 'agDateColumnFilter')
7431
+ for (let i = 0; i < arr_F.length; i++) {
7432
+ if (ss != "")
7433
+ ss = ss + " or ";
7434
+ ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7435
+ }
7436
+ this.fix_flt_temp = ss;
7437
+ this.show_pulisci_filtri = true;
7438
+ }
7438
7439
  if (this.init_fill) {
7439
7440
  setTimeout((/**
7440
7441
  * @return {?}
@@ -7672,10 +7673,7 @@ class FHGridComponent {
7672
7673
  localStorage.removeItem(this.grid_key + '_FILTER_UP');
7673
7674
  return;
7674
7675
  }
7675
- setTimeout((/**
7676
- * @return {?}
7677
- */
7678
- () => { localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera); }), 200);
7676
+ localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera);
7679
7677
  /** @type {?} */
7680
7678
  let arr = this.ric_libera.split(' ');
7681
7679
  /** @type {?} */