@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.
@@ -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,6 +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;
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
+ }
7408
7439
  if (this.init_fill) {
7409
7440
  setTimeout((/**
7410
7441
  * @return {?}
@@ -7495,35 +7526,6 @@ class FHGridComponent {
7495
7526
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7496
7527
  try {
7497
7528
  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
7529
  }
7528
7530
  catch (eer) {
7529
7531
  console.log(eer);