@fluxhub/fluxhub-lib 11.0.40 → 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 +12 -28
- 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 +13 -29
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -28
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6485,48 +6485,32 @@ class FHGridComponent {
|
|
|
6485
6485
|
let p_fi = p.filter;
|
|
6486
6486
|
let b_init = false;
|
|
6487
6487
|
if (params.filterModel != null) {
|
|
6488
|
-
console.log('Filtri
|
|
6488
|
+
// console.log('Filtri');
|
|
6489
6489
|
for (let key in params.filterModel) {
|
|
6490
|
+
if (!b_init) {
|
|
6491
|
+
console.log("🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always", this.include_always);
|
|
6492
|
+
if (this.include_always != '') {
|
|
6493
|
+
p.filter = p.filter + " (" + this.include_always + ' or ';
|
|
6494
|
+
}
|
|
6495
|
+
}
|
|
6490
6496
|
let obj_filtro_test = params.filterModel[key];
|
|
6497
|
+
console.log(params.filterModel[key], key);
|
|
6491
6498
|
if (obj_filtro_test.operator == null) {
|
|
6492
|
-
if (p.filter
|
|
6499
|
+
if (!(p.filter != "" && (b_init || this.include_always == '')))
|
|
6493
6500
|
p.filter += this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
6494
|
-
else
|
|
6495
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 767 ~ FHGridComponent ~ b_init", b_init);
|
|
6496
|
-
if (!b_init) {
|
|
6497
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always", this.include_always);
|
|
6498
|
-
if (this.include_always != '') {
|
|
6499
|
-
p.filter = p.filter + " (" + this.include_always + ' or ';
|
|
6500
|
-
}
|
|
6501
|
-
else if (p.filter != "")
|
|
6502
|
-
p.filter += " and ";
|
|
6503
|
-
}
|
|
6504
|
-
else if (p.filter != "")
|
|
6505
|
-
p.filter += " and ";
|
|
6506
|
-
b_init = true;
|
|
6501
|
+
else
|
|
6507
6502
|
p.filter += this.calcola_filtro(params.filterModel[key], "", key, true);
|
|
6508
|
-
}
|
|
6509
6503
|
}
|
|
6510
6504
|
else {
|
|
6511
|
-
|
|
6512
|
-
if (!b_init) {
|
|
6513
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always", this.include_always);
|
|
6514
|
-
if (this.include_always != '') {
|
|
6515
|
-
p.filter = p.filter + " (" + this.include_always + ' or ';
|
|
6516
|
-
}
|
|
6517
|
-
else if (p.filter != "")
|
|
6518
|
-
p.filter += " and ";
|
|
6519
|
-
}
|
|
6520
|
-
else if (p.filter != "")
|
|
6505
|
+
if (p.filter != "" && (b_init || this.include_always == ''))
|
|
6521
6506
|
p.filter += " and ";
|
|
6522
|
-
b_init = true;
|
|
6523
6507
|
p.filter += " (";
|
|
6524
6508
|
p.filter += this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
|
|
6525
6509
|
p.filter += " " + obj_filtro_test.operator + " ";
|
|
6526
6510
|
p.filter += this.calcola_filtro(params.filterModel[key].condition2, "", key, false);
|
|
6527
6511
|
p.filter += ")";
|
|
6528
6512
|
}
|
|
6529
|
-
|
|
6513
|
+
b_init = true;
|
|
6530
6514
|
}
|
|
6531
6515
|
}
|
|
6532
6516
|
if (b_init) {
|