@fluxhub/fluxhub-lib 11.0.37 → 11.0.39
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 +30 -20
- 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 +31 -21
- package/fesm2015/fluxhub-fluxhub-lib.js +30 -20
- 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,49 +5685,56 @@
|
|
|
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
|
-
var b_init = false;
|
|
5700
5699
|
var p_fi = p.filter;
|
|
5700
|
+
var b_init = false;
|
|
5701
5701
|
if (params.filterModel != null) {
|
|
5702
5702
|
// console.log('Filtri');
|
|
5703
5703
|
for (var key in params.filterModel) {
|
|
5704
|
-
if (!b_init) {
|
|
5705
|
-
if (p.filter != "")
|
|
5706
|
-
p.filter = p.filter + " " + _this.type_fixed_filter + " ";
|
|
5707
|
-
}
|
|
5708
|
-
// console.log(key);
|
|
5709
|
-
// if (p.hasOwnProperty(key)) {
|
|
5710
|
-
// console.log( params.filterModel[key]);
|
|
5711
5704
|
var obj_filtro_test = params.filterModel[key];
|
|
5712
5705
|
console.log(params.filterModel[key], key);
|
|
5713
5706
|
if (obj_filtro_test.operator == null) {
|
|
5714
|
-
p.filter
|
|
5707
|
+
if (p.filter == "")
|
|
5708
|
+
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
5709
|
+
else
|
|
5710
|
+
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, true);
|
|
5715
5711
|
}
|
|
5716
5712
|
else {
|
|
5717
|
-
if (b_init)
|
|
5718
|
-
if (
|
|
5713
|
+
if (!b_init) {
|
|
5714
|
+
if (_this.include_always != '') {
|
|
5715
|
+
p.filter = p.filter + " (" + _this.include_always + ' or ';
|
|
5716
|
+
}
|
|
5717
|
+
else if (p.filter != "")
|
|
5719
5718
|
p.filter += " and ";
|
|
5719
|
+
}
|
|
5720
|
+
else if (p.filter != "")
|
|
5721
|
+
p.filter += " and ";
|
|
5722
|
+
b_init = true;
|
|
5720
5723
|
p.filter += " (";
|
|
5721
5724
|
p.filter += _this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
|
|
5722
5725
|
p.filter += " " + obj_filtro_test.operator + " ";
|
|
5723
5726
|
p.filter += _this.calcola_filtro(params.filterModel[key].condition2, "", key, false);
|
|
5724
5727
|
p.filter += ")";
|
|
5725
5728
|
}
|
|
5726
|
-
|
|
5729
|
+
// }
|
|
5730
|
+
}
|
|
5731
|
+
}
|
|
5732
|
+
if (b_init) {
|
|
5733
|
+
if (_this.include_always != '') {
|
|
5734
|
+
p.filter = p.filter + " )";
|
|
5727
5735
|
}
|
|
5728
5736
|
}
|
|
5737
|
+
b_init = true;
|
|
5729
5738
|
p.filter = p.filter.split('{{user}}').join(_this.m_appService.user);
|
|
5730
5739
|
if (_this.ric_libera != '')
|
|
5731
5740
|
_this.last_riclib = true;
|
|
@@ -6521,6 +6530,7 @@
|
|
|
6521
6530
|
if (model_1 != null)
|
|
6522
6531
|
num_all = model_1.length;
|
|
6523
6532
|
}
|
|
6533
|
+
console.log('KEY!!!! ', key);
|
|
6524
6534
|
if (key != 'pers_int') {
|
|
6525
6535
|
if (sq != "") {
|
|
6526
6536
|
if (obj_filtro.values.length != num_all) {
|
|
@@ -6901,8 +6911,8 @@
|
|
|
6901
6911
|
}
|
|
6902
6912
|
}
|
|
6903
6913
|
this.res_columns();
|
|
6904
|
-
|
|
6905
|
-
|
|
6914
|
+
if (localStorage.getItem(this.grid_key + "_POS") != null)
|
|
6915
|
+
this.b_restored = true;
|
|
6906
6916
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != null)
|
|
6907
6917
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != "") {
|
|
6908
6918
|
this.ric_libera = localStorage.getItem(this.grid_key + "_FILTER_UP");
|
|
@@ -7470,7 +7480,7 @@
|
|
|
7470
7480
|
toggle_mantieni: [{ type: i0.ViewChild, args: ["toggle_mantieni",] }],
|
|
7471
7481
|
init_end: [{ type: i0.Output }],
|
|
7472
7482
|
off_set: [{ type: i0.Input }],
|
|
7473
|
-
|
|
7483
|
+
include_always: [{ type: i0.Input }],
|
|
7474
7484
|
onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]
|
|
7475
7485
|
};
|
|
7476
7486
|
|