@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
|
@@ -6701,6 +6701,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6701
6701
|
p.filter = p.filter + ' and ';
|
|
6702
6702
|
p.filter = p.filter + ' (' + _this.fix_flt + ' )';
|
|
6703
6703
|
}
|
|
6704
|
+
console.log(' this.fix_flt_temp 222 ' + _this.fix_flt_temp);
|
|
6704
6705
|
if (_this.fix_flt_temp != "") {
|
|
6705
6706
|
if (p.filter != "")
|
|
6706
6707
|
p.filter = p.filter + ' and ';
|
|
@@ -6986,10 +6987,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6986
6987
|
this.fix_flt_temp = "";
|
|
6987
6988
|
if (this.m_appService.getState().grid_obj == null)
|
|
6988
6989
|
this.m_appService.getState().grid_obj = {};
|
|
6989
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
|
|
6990
|
-
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
6991
|
-
this.fix_flt_temp = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
6992
|
-
}
|
|
6993
6990
|
}
|
|
6994
6991
|
/**
|
|
6995
6992
|
* @param {?} o
|
|
@@ -7761,6 +7758,36 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7761
7758
|
this.res_columns();
|
|
7762
7759
|
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
7763
7760
|
this.b_restored = true;
|
|
7761
|
+
console.log('localStorage.getItem(this.grid_key + \'_FILTER_UP\') ', localStorage.getItem(this.grid_key + '_FILTER_UP'));
|
|
7762
|
+
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null) {
|
|
7763
|
+
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
7764
|
+
/** @type {?} */
|
|
7765
|
+
var arr = this.ric_libera.split(' ');
|
|
7766
|
+
/** @type {?} */
|
|
7767
|
+
var arr_F = new Array();
|
|
7768
|
+
for (var i = 0; i < arr.length; i++)
|
|
7769
|
+
if (arr[i].length > 2)
|
|
7770
|
+
arr_F.push(arr[i]);
|
|
7771
|
+
else
|
|
7772
|
+
this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
|
|
7773
|
+
if (arr_F.length == 0)
|
|
7774
|
+
return;
|
|
7775
|
+
/** @type {?} */
|
|
7776
|
+
var ss = "";
|
|
7777
|
+
for (var y = 0; y < this.columnDefs.length; y++)
|
|
7778
|
+
if (this.columnDefs[y] != null)
|
|
7779
|
+
if (this.columnDefs[y].no_filter == null)
|
|
7780
|
+
if (this.columnDefs[y].field != null)
|
|
7781
|
+
if (this.columnDefs[y].field != '')
|
|
7782
|
+
if (this.columnDefs[y].filter != 'agDateColumnFilter')
|
|
7783
|
+
for (var i = 0; i < arr_F.length; i++) {
|
|
7784
|
+
if (ss != "")
|
|
7785
|
+
ss = ss + " or ";
|
|
7786
|
+
ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
|
|
7787
|
+
}
|
|
7788
|
+
this.fix_flt_temp = ss;
|
|
7789
|
+
console.log(' this.fix_flt_temp 111 ' + this.fix_flt_temp);
|
|
7790
|
+
}
|
|
7764
7791
|
if (this.init_fill) {
|
|
7765
7792
|
setTimeout((/**
|
|
7766
7793
|
* @return {?}
|
|
@@ -7857,8 +7884,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7857
7884
|
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
7858
7885
|
try {
|
|
7859
7886
|
this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
|
|
7860
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
7861
|
-
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
7862
7887
|
}
|
|
7863
7888
|
catch (eer) {
|
|
7864
7889
|
console.log(eer);
|