@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
|
@@ -6413,7 +6413,9 @@ class FHGridComponent {
|
|
|
6413
6413
|
this.curr_config = "-1";
|
|
6414
6414
|
this.init_end = new EventEmitter();
|
|
6415
6415
|
this.off_set = 0;
|
|
6416
|
-
this.
|
|
6416
|
+
this.include_always = '';
|
|
6417
|
+
this.first_ref = true;
|
|
6418
|
+
this.b_restored = false;
|
|
6417
6419
|
this.str_curr_q_p = "";
|
|
6418
6420
|
this.dataSource = {
|
|
6419
6421
|
//rowCount: ???, - not setting the row count, infinite paging will be used
|
|
@@ -6469,49 +6471,56 @@ class FHGridComponent {
|
|
|
6469
6471
|
p.filter = this.filters;
|
|
6470
6472
|
if (this.fix_flt != "") {
|
|
6471
6473
|
if (p.filter != "")
|
|
6472
|
-
p.filter = p.filter + "
|
|
6473
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 737 ~ FHGridComponent ~ type_fixed_filter", this.type_fixed_filter);
|
|
6474
|
+
p.filter = p.filter + " and ";
|
|
6474
6475
|
p.filter = p.filter + " (" + this.fix_flt + " )";
|
|
6475
6476
|
}
|
|
6476
6477
|
if (this.ric_libera == '' || !this.over_fulltext)
|
|
6477
6478
|
if (this.fix_flt_temp != "") {
|
|
6478
6479
|
if (p.filter != "")
|
|
6479
|
-
p.filter = p.filter + "
|
|
6480
|
-
console.log("🚀 ~ file: fhgrid.ts ~ line 743 ~ FHGridComponent ~ this.type_fixed_filter", this.type_fixed_filter);
|
|
6480
|
+
p.filter = p.filter + " and ";
|
|
6481
6481
|
p.filter = p.filter + " (" + this.fix_flt_temp + " )";
|
|
6482
6482
|
}
|
|
6483
6483
|
// console.log('Filter model');
|
|
6484
6484
|
//console.log(params.filterModel);
|
|
6485
|
-
let b_init = false;
|
|
6486
6485
|
let p_fi = p.filter;
|
|
6486
|
+
let b_init = false;
|
|
6487
6487
|
if (params.filterModel != null) {
|
|
6488
6488
|
// console.log('Filtri');
|
|
6489
6489
|
for (let key in params.filterModel) {
|
|
6490
|
-
if (!b_init) {
|
|
6491
|
-
if (p.filter != "")
|
|
6492
|
-
p.filter = p.filter + " " + this.type_fixed_filter + " ";
|
|
6493
|
-
}
|
|
6494
|
-
// console.log(key);
|
|
6495
|
-
// if (p.hasOwnProperty(key)) {
|
|
6496
|
-
// console.log( params.filterModel[key]);
|
|
6497
6490
|
let obj_filtro_test = params.filterModel[key];
|
|
6498
6491
|
console.log(params.filterModel[key], key);
|
|
6499
6492
|
if (obj_filtro_test.operator == null) {
|
|
6500
|
-
p.filter
|
|
6493
|
+
if (p.filter == "")
|
|
6494
|
+
p.filter += this.calcola_filtro(params.filterModel[key], "", key, false);
|
|
6495
|
+
else
|
|
6496
|
+
p.filter += this.calcola_filtro(params.filterModel[key], "", key, true);
|
|
6501
6497
|
}
|
|
6502
6498
|
else {
|
|
6503
|
-
if (b_init)
|
|
6504
|
-
if (
|
|
6499
|
+
if (!b_init) {
|
|
6500
|
+
if (this.include_always != '') {
|
|
6501
|
+
p.filter = p.filter + " (" + this.include_always + ' or ';
|
|
6502
|
+
}
|
|
6503
|
+
else if (p.filter != "")
|
|
6505
6504
|
p.filter += " and ";
|
|
6505
|
+
}
|
|
6506
|
+
else if (p.filter != "")
|
|
6507
|
+
p.filter += " and ";
|
|
6508
|
+
b_init = true;
|
|
6506
6509
|
p.filter += " (";
|
|
6507
6510
|
p.filter += this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
|
|
6508
6511
|
p.filter += " " + obj_filtro_test.operator + " ";
|
|
6509
6512
|
p.filter += this.calcola_filtro(params.filterModel[key].condition2, "", key, false);
|
|
6510
6513
|
p.filter += ")";
|
|
6511
6514
|
}
|
|
6512
|
-
|
|
6515
|
+
// }
|
|
6516
|
+
}
|
|
6517
|
+
}
|
|
6518
|
+
if (b_init) {
|
|
6519
|
+
if (this.include_always != '') {
|
|
6520
|
+
p.filter = p.filter + " )";
|
|
6513
6521
|
}
|
|
6514
6522
|
}
|
|
6523
|
+
b_init = true;
|
|
6515
6524
|
p.filter = p.filter.split('{{user}}').join(this.m_appService.user);
|
|
6516
6525
|
if (this.ric_libera != '')
|
|
6517
6526
|
this.last_riclib = true;
|
|
@@ -7302,6 +7311,7 @@ class FHGridComponent {
|
|
|
7302
7311
|
if (model != null)
|
|
7303
7312
|
num_all = model.length;
|
|
7304
7313
|
}
|
|
7314
|
+
console.log('KEY!!!! ', key);
|
|
7305
7315
|
if (key != 'pers_int') {
|
|
7306
7316
|
if (sq != "") {
|
|
7307
7317
|
if (obj_filtro.values.length != num_all) {
|
|
@@ -7674,8 +7684,8 @@ class FHGridComponent {
|
|
|
7674
7684
|
}
|
|
7675
7685
|
}
|
|
7676
7686
|
this.res_columns();
|
|
7677
|
-
|
|
7678
|
-
|
|
7687
|
+
if (localStorage.getItem(this.grid_key + "_POS") != null)
|
|
7688
|
+
this.b_restored = true;
|
|
7679
7689
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != null)
|
|
7680
7690
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != "") {
|
|
7681
7691
|
this.ric_libera = localStorage.getItem(this.grid_key + "_FILTER_UP");
|
|
@@ -8222,7 +8232,7 @@ FHGridComponent.propDecorators = {
|
|
|
8222
8232
|
toggle_mantieni: [{ type: ViewChild, args: ["toggle_mantieni",] }],
|
|
8223
8233
|
init_end: [{ type: Output }],
|
|
8224
8234
|
off_set: [{ type: Input }],
|
|
8225
|
-
|
|
8235
|
+
include_always: [{ type: Input }],
|
|
8226
8236
|
onResize: [{ type: HostListener, args: ["window:resize", ["event"],] }]
|
|
8227
8237
|
};
|
|
8228
8238
|
|