@fluxhub/fluxhub-lib 11.0.36 → 11.0.38
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 +21 -8
- 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 +22 -9
- package/fesm2015/fluxhub-fluxhub-lib.js +21 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +3 -1
- package/package.json +1 -1
|
@@ -5627,7 +5627,9 @@
|
|
|
5627
5627
|
this.curr_config = "-1";
|
|
5628
5628
|
this.init_end = new i0.EventEmitter();
|
|
5629
5629
|
this.off_set = 0;
|
|
5630
|
-
this.
|
|
5630
|
+
this.include_always = '';
|
|
5631
|
+
this.first_ref = true;
|
|
5632
|
+
this.b_restored = false;
|
|
5631
5633
|
this.str_curr_q_p = "";
|
|
5632
5634
|
this.dataSource = {
|
|
5633
5635
|
//rowCount: ???, - not setting the row count, infinite paging will be used
|
|
@@ -5683,23 +5685,28 @@
|
|
|
5683
5685
|
p.filter = _this.filters;
|
|
5684
5686
|
if (_this.fix_flt != "") {
|
|
5685
5687
|
if (p.filter != "")
|
|
5686
|
-
p.filter = p.filter + "
|
|
5687
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 737 ~ FHGridComponent ~ type_fixed_filter", _this.type_fixed_filter);
|
|
5688
|
+
p.filter = p.filter + " and ";
|
|
5688
5689
|
p.filter = p.filter + " (" + _this.fix_flt + " )";
|
|
5689
5690
|
}
|
|
5690
5691
|
if (_this.ric_libera == '' || !_this.over_fulltext)
|
|
5691
5692
|
if (_this.fix_flt_temp != "") {
|
|
5692
5693
|
if (p.filter != "")
|
|
5693
|
-
p.filter = p.filter + "
|
|
5694
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 743 ~ FHGridComponent ~ this.type_fixed_filter", _this.type_fixed_filter);
|
|
5694
|
+
p.filter = p.filter + " and ";
|
|
5695
5695
|
p.filter = p.filter + " (" + _this.fix_flt_temp + " )";
|
|
5696
5696
|
}
|
|
5697
5697
|
// console.log('Filter model');
|
|
5698
5698
|
//console.log(params.filterModel);
|
|
5699
5699
|
var p_fi = p.filter;
|
|
5700
|
+
var b_init = false;
|
|
5700
5701
|
if (params.filterModel != null) {
|
|
5701
5702
|
// console.log('Filtri');
|
|
5702
5703
|
for (var key in params.filterModel) {
|
|
5704
|
+
if (!b_init) {
|
|
5705
|
+
if (_this.include_always != '') {
|
|
5706
|
+
p.filter = p.filter + " (" + _this.include_always + ' or ';
|
|
5707
|
+
}
|
|
5708
|
+
}
|
|
5709
|
+
b_init = true;
|
|
5703
5710
|
// console.log(key);
|
|
5704
5711
|
// if (p.hasOwnProperty(key)) {
|
|
5705
5712
|
// console.log( params.filterModel[key]);
|
|
@@ -5723,6 +5730,12 @@
|
|
|
5723
5730
|
// }
|
|
5724
5731
|
}
|
|
5725
5732
|
}
|
|
5733
|
+
if (b_init) {
|
|
5734
|
+
if (_this.include_always != '') {
|
|
5735
|
+
p.filter = p.filter + " )";
|
|
5736
|
+
}
|
|
5737
|
+
}
|
|
5738
|
+
b_init = true;
|
|
5726
5739
|
p.filter = p.filter.split('{{user}}').join(_this.m_appService.user);
|
|
5727
5740
|
if (_this.ric_libera != '')
|
|
5728
5741
|
_this.last_riclib = true;
|
|
@@ -6899,8 +6912,8 @@
|
|
|
6899
6912
|
}
|
|
6900
6913
|
}
|
|
6901
6914
|
this.res_columns();
|
|
6902
|
-
|
|
6903
|
-
|
|
6915
|
+
if (localStorage.getItem(this.grid_key + "_POS") != null)
|
|
6916
|
+
this.b_restored = true;
|
|
6904
6917
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != null)
|
|
6905
6918
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != "") {
|
|
6906
6919
|
this.ric_libera = localStorage.getItem(this.grid_key + "_FILTER_UP");
|
|
@@ -7468,7 +7481,7 @@
|
|
|
7468
7481
|
toggle_mantieni: [{ type: i0.ViewChild, args: ["toggle_mantieni",] }],
|
|
7469
7482
|
init_end: [{ type: i0.Output }],
|
|
7470
7483
|
off_set: [{ type: i0.Input }],
|
|
7471
|
-
|
|
7484
|
+
include_always: [{ type: i0.Input }],
|
|
7472
7485
|
onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]
|
|
7473
7486
|
};
|
|
7474
7487
|
|