@fluxhub/fluxhub-lib 11.0.39 → 11.0.41
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 +9 -11
- 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 +10 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +9 -11
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -5701,32 +5701,30 @@
|
|
|
5701
5701
|
if (params.filterModel != null) {
|
|
5702
5702
|
// console.log('Filtri');
|
|
5703
5703
|
for (var key in params.filterModel) {
|
|
5704
|
+
if (!b_init) {
|
|
5705
|
+
console.log("🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always", _this.include_always);
|
|
5706
|
+
if (_this.include_always != '') {
|
|
5707
|
+
p.filter = p.filter + " (" + _this.include_always + ' or ';
|
|
5708
|
+
}
|
|
5709
|
+
}
|
|
5704
5710
|
var obj_filtro_test = params.filterModel[key];
|
|
5705
5711
|
console.log(params.filterModel[key], key);
|
|
5706
5712
|
if (obj_filtro_test.operator == null) {
|
|
5707
|
-
if (p.filter
|
|
5713
|
+
if (!(p.filter != "" && (b_init || _this.include_always == '')))
|
|
5708
5714
|
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
5709
5715
|
else
|
|
5710
5716
|
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, true);
|
|
5711
5717
|
}
|
|
5712
5718
|
else {
|
|
5713
|
-
if (
|
|
5714
|
-
if (_this.include_always != '') {
|
|
5715
|
-
p.filter = p.filter + " (" + _this.include_always + ' or ';
|
|
5716
|
-
}
|
|
5717
|
-
else if (p.filter != "")
|
|
5718
|
-
p.filter += " and ";
|
|
5719
|
-
}
|
|
5720
|
-
else if (p.filter != "")
|
|
5719
|
+
if (p.filter != "" && (b_init || _this.include_always == ''))
|
|
5721
5720
|
p.filter += " and ";
|
|
5722
|
-
b_init = true;
|
|
5723
5721
|
p.filter += " (";
|
|
5724
5722
|
p.filter += _this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
|
|
5725
5723
|
p.filter += " " + obj_filtro_test.operator + " ";
|
|
5726
5724
|
p.filter += _this.calcola_filtro(params.filterModel[key].condition2, "", key, false);
|
|
5727
5725
|
p.filter += ")";
|
|
5728
5726
|
}
|
|
5729
|
-
|
|
5727
|
+
b_init = true;
|
|
5730
5728
|
}
|
|
5731
5729
|
}
|
|
5732
5730
|
if (b_init) {
|