@fluxhub/fluxhub-lib 11.0.36 → 11.0.38
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 +21 -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 +22 -9
- package/fesm2015/fluxhub-fluxhub-lib.js +21 -8
- 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,23 +6471,28 @@ 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
6485
|
let p_fi = p.filter;
|
|
6486
|
+
let b_init = false;
|
|
6486
6487
|
if (params.filterModel != null) {
|
|
6487
6488
|
// console.log('Filtri');
|
|
6488
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;
|
|
6489
6496
|
// console.log(key);
|
|
6490
6497
|
// if (p.hasOwnProperty(key)) {
|
|
6491
6498
|
// console.log( params.filterModel[key]);
|
|
@@ -6509,6 +6516,12 @@ class FHGridComponent {
|
|
|
6509
6516
|
// }
|
|
6510
6517
|
}
|
|
6511
6518
|
}
|
|
6519
|
+
if (b_init) {
|
|
6520
|
+
if (this.include_always != '') {
|
|
6521
|
+
p.filter = p.filter + " )";
|
|
6522
|
+
}
|
|
6523
|
+
}
|
|
6524
|
+
b_init = true;
|
|
6512
6525
|
p.filter = p.filter.split('{{user}}').join(this.m_appService.user);
|
|
6513
6526
|
if (this.ric_libera != '')
|
|
6514
6527
|
this.last_riclib = true;
|
|
@@ -7672,8 +7685,8 @@ class FHGridComponent {
|
|
|
7672
7685
|
}
|
|
7673
7686
|
}
|
|
7674
7687
|
this.res_columns();
|
|
7675
|
-
|
|
7676
|
-
|
|
7688
|
+
if (localStorage.getItem(this.grid_key + "_POS") != null)
|
|
7689
|
+
this.b_restored = true;
|
|
7677
7690
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != null)
|
|
7678
7691
|
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != "") {
|
|
7679
7692
|
this.ric_libera = localStorage.getItem(this.grid_key + "_FILTER_UP");
|
|
@@ -8220,7 +8233,7 @@ FHGridComponent.propDecorators = {
|
|
|
8220
8233
|
toggle_mantieni: [{ type: ViewChild, args: ["toggle_mantieni",] }],
|
|
8221
8234
|
init_end: [{ type: Output }],
|
|
8222
8235
|
off_set: [{ type: Input }],
|
|
8223
|
-
|
|
8236
|
+
include_always: [{ type: Input }],
|
|
8224
8237
|
onResize: [{ type: HostListener, args: ["window:resize", ["event"],] }]
|
|
8225
8238
|
};
|
|
8226
8239
|
|