@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.
@@ -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
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
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
- filter_v = filter_v + ' (' + 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
+ 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
- filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
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
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
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
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
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
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
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) {