@fluxhub/fluxhub-lib 11.0.38 → 11.0.40
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 +26 -13
- 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 +27 -14
- package/fesm2015/fluxhub-fluxhub-lib.js +26 -13
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6485,28 +6485,41 @@ class FHGridComponent {
|
|
|
6485
6485
|
let p_fi = p.filter;
|
|
6486
6486
|
let b_init = false;
|
|
6487
6487
|
if (params.filterModel != null) {
|
|
6488
|
-
|
|
6488
|
+
console.log('Filtri ', params.filterModel);
|
|
6489
6489
|
for (let key in params.filterModel) {
|
|
6490
|
-
if (!b_init) {
|
|
6491
|
-
if (this.include_always != '') {
|
|
6492
|
-
p.filter = p.filter + " (" + this.include_always + ' or ';
|
|
6493
|
-
}
|
|
6494
|
-
}
|
|
6495
|
-
b_init = true;
|
|
6496
|
-
// console.log(key);
|
|
6497
|
-
// if (p.hasOwnProperty(key)) {
|
|
6498
|
-
// console.log( params.filterModel[key]);
|
|
6499
6490
|
let obj_filtro_test = params.filterModel[key];
|
|
6500
|
-
console.log(params.filterModel[key], key);
|
|
6501
6491
|
if (obj_filtro_test.operator == null) {
|
|
6502
6492
|
if (p.filter == "")
|
|
6503
6493
|
p.filter += this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
6504
|
-
else
|
|
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;
|
|
6505
6507
|
p.filter += this.calcola_filtro(params.filterModel[key], "", key, true);
|
|
6508
|
+
}
|
|
6506
6509
|
}
|
|
6507
6510
|
else {
|
|
6508
|
-
|
|
6511
|
+
console.log("🚀 ~ file: fhgrid.ts ~ line 767 ~ FHGridComponent ~ b_init", b_init);
|
|
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 != "")
|
|
6509
6521
|
p.filter += " and ";
|
|
6522
|
+
b_init = true;
|
|
6510
6523
|
p.filter += " (";
|
|
6511
6524
|
p.filter += this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
|
|
6512
6525
|
p.filter += " " + obj_filtro_test.operator + " ";
|