@fluxhub/fluxhub-lib 1.0.487 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +31 -6
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +32 -7
- package/esm5/lib/controls/fhgrid.js +32 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +31 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +31 -6
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6455,6 +6455,7 @@ class FHGridComponent {
|
|
|
6455
6455
|
p.filter = p.filter + ' and ';
|
|
6456
6456
|
p.filter = p.filter + ' (' + this.fix_flt + ' )';
|
|
6457
6457
|
}
|
|
6458
|
+
console.log(' this.fix_flt_temp 222 ' + this.fix_flt_temp);
|
|
6458
6459
|
if (this.fix_flt_temp != "") {
|
|
6459
6460
|
if (p.filter != "")
|
|
6460
6461
|
p.filter = p.filter + ' and ';
|
|
@@ -6740,10 +6741,6 @@ class FHGridComponent {
|
|
|
6740
6741
|
this.fix_flt_temp = "";
|
|
6741
6742
|
if (this.m_appService.getState().grid_obj == null)
|
|
6742
6743
|
this.m_appService.getState().grid_obj = {};
|
|
6743
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
|
|
6744
|
-
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
6745
|
-
this.fix_flt_temp = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
6746
|
-
}
|
|
6747
6744
|
}
|
|
6748
6745
|
/**
|
|
6749
6746
|
* @param {?} o
|
|
@@ -7408,6 +7405,36 @@ class FHGridComponent {
|
|
|
7408
7405
|
this.res_columns();
|
|
7409
7406
|
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
7410
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
|
+
}
|
|
7411
7438
|
if (this.init_fill) {
|
|
7412
7439
|
setTimeout((/**
|
|
7413
7440
|
* @return {?}
|
|
@@ -7498,8 +7525,6 @@ class FHGridComponent {
|
|
|
7498
7525
|
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
7499
7526
|
try {
|
|
7500
7527
|
this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
|
|
7501
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
7502
|
-
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
7503
7528
|
}
|
|
7504
7529
|
catch (eer) {
|
|
7505
7530
|
console.log(eer);
|