@fluxhub/fluxhub-lib 1.0.488 → 1.0.489

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.
@@ -7405,6 +7405,36 @@ class FHGridComponent {
7405
7405
  this.res_columns();
7406
7406
  if (localStorage.getItem(this.grid_key + '_POS') != null)
7407
7407
  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
+ }
7408
7438
  if (this.init_fill) {
7409
7439
  setTimeout((/**
7410
7440
  * @return {?}
@@ -7495,35 +7525,6 @@ class FHGridComponent {
7495
7525
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7496
7526
  try {
7497
7527
  this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
7498
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
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
- }
7527
7528
  }
7528
7529
  catch (eer) {
7529
7530
  console.log(eer);