@fluxhub/fluxhub-lib 9.0.69 → 9.0.71
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 +13 -6
- 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/fhautocomplete.js +5 -1
- package/esm2015/lib/controls/fhgrid.js +10 -7
- package/esm5/lib/controls/fhautocomplete.js +5 -1
- package/esm5/lib/controls/fhgrid.js +10 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +13 -6
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6452,18 +6452,21 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6452
6452
|
filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) + "";
|
|
6453
6453
|
}
|
|
6454
6454
|
else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
|
|
6455
|
+
let q = '';
|
|
6455
6456
|
if (obj_filtro.type == "greaterThan")
|
|
6456
|
-
|
|
6457
|
+
q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6457
6458
|
if (obj_filtro.type == "equals")
|
|
6458
|
-
|
|
6459
|
+
q = ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') + ')';
|
|
6459
6460
|
if (obj_filtro.type == "notEqual")
|
|
6460
|
-
|
|
6461
|
+
q = ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6461
6462
|
if (obj_filtro.type == "lessThan")
|
|
6462
|
-
|
|
6463
|
+
q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6463
6464
|
if (obj_filtro.type == "lessThanOrEqual")
|
|
6464
|
-
|
|
6465
|
+
q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6465
6466
|
if (obj_filtro.type == "greaterThanOrEqual")
|
|
6466
|
-
|
|
6467
|
+
q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6468
|
+
console.log(obj_filtro, ' -> ', q);
|
|
6469
|
+
filter_v = filter_v + q;
|
|
6467
6470
|
}
|
|
6468
6471
|
filter_v = filter_v + ' )';
|
|
6469
6472
|
}
|
|
@@ -7550,13 +7553,17 @@ let FHAutoCompleteComponent = class FHAutoCompleteComponent {
|
|
|
7550
7553
|
this.selval = desc_val;
|
|
7551
7554
|
if (this.myData != null) {
|
|
7552
7555
|
for (var x in this.myData) {
|
|
7556
|
+
let b_found = false;
|
|
7553
7557
|
if (this.myData[x]['valore'] == this.selval) {
|
|
7554
7558
|
this.sItem = this.myData[x]['descrizione_valore'];
|
|
7555
7559
|
if (this.sItem != null) {
|
|
7560
|
+
b_found = true;
|
|
7556
7561
|
this.descri_val = this.sItem;
|
|
7557
7562
|
}
|
|
7558
7563
|
return;
|
|
7559
7564
|
}
|
|
7565
|
+
if (!b_found && this.only_from_list)
|
|
7566
|
+
this.resetValue();
|
|
7560
7567
|
}
|
|
7561
7568
|
}
|
|
7562
7569
|
if (!this.only_from_list) {
|