@fluxhub/fluxhub-lib 11.0.36 → 11.0.37
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 +10 -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 +11 -9
- package/fesm2015/fluxhub-fluxhub-lib.js +10 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5696,31 +5696,34 @@
|
|
|
5696
5696
|
}
|
|
5697
5697
|
// console.log('Filter model');
|
|
5698
5698
|
//console.log(params.filterModel);
|
|
5699
|
+
var b_init = false;
|
|
5699
5700
|
var p_fi = p.filter;
|
|
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 (p.filter != "")
|
|
5706
|
+
p.filter = p.filter + " " + _this.type_fixed_filter + " ";
|
|
5707
|
+
}
|
|
5703
5708
|
// console.log(key);
|
|
5704
5709
|
// if (p.hasOwnProperty(key)) {
|
|
5705
5710
|
// console.log( params.filterModel[key]);
|
|
5706
5711
|
var obj_filtro_test = params.filterModel[key];
|
|
5707
5712
|
console.log(params.filterModel[key], key);
|
|
5708
5713
|
if (obj_filtro_test.operator == null) {
|
|
5709
|
-
|
|
5710
|
-
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
5711
|
-
else
|
|
5712
|
-
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, true);
|
|
5714
|
+
p.filter += _this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
5713
5715
|
}
|
|
5714
5716
|
else {
|
|
5715
|
-
if (
|
|
5716
|
-
p.filter
|
|
5717
|
+
if (b_init)
|
|
5718
|
+
if (p.filter != "")
|
|
5719
|
+
p.filter += " and ";
|
|
5717
5720
|
p.filter += " (";
|
|
5718
5721
|
p.filter += _this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
|
|
5719
5722
|
p.filter += " " + obj_filtro_test.operator + " ";
|
|
5720
5723
|
p.filter += _this.calcola_filtro(params.filterModel[key].condition2, "", key, false);
|
|
5721
5724
|
p.filter += ")";
|
|
5722
5725
|
}
|
|
5723
|
-
|
|
5726
|
+
b_init = true;
|
|
5724
5727
|
}
|
|
5725
5728
|
}
|
|
5726
5729
|
p.filter = p.filter.split('{{user}}').join(_this.m_appService.user);
|
|
@@ -6518,7 +6521,6 @@
|
|
|
6518
6521
|
if (model_1 != null)
|
|
6519
6522
|
num_all = model_1.length;
|
|
6520
6523
|
}
|
|
6521
|
-
console.log('KEY!!!! ', key);
|
|
6522
6524
|
if (key != 'pers_int') {
|
|
6523
6525
|
if (sq != "") {
|
|
6524
6526
|
if (obj_filtro.values.length != num_all) {
|