@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.
@@ -5865,18 +5865,21 @@ var FHGridComponent = /** @class */ (function () {
5865
5865
  filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) + "";
5866
5866
  }
5867
5867
  else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
5868
+ var q = '';
5868
5869
  if (obj_filtro.type == "greaterThan")
5869
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5870
+ q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5870
5871
  if (obj_filtro.type == "equals")
5871
- 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') + ')';
5872
+ 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') + ')';
5872
5873
  if (obj_filtro.type == "notEqual")
5873
- filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5874
+ q = ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5874
5875
  if (obj_filtro.type == "lessThan")
5875
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5876
+ q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5876
5877
  if (obj_filtro.type == "lessThanOrEqual")
5877
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5878
+ q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5878
5879
  if (obj_filtro.type == "greaterThanOrEqual")
5879
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5880
+ q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5881
+ console.log(obj_filtro, ' -> ', q);
5882
+ filter_v = filter_v + q;
5880
5883
  }
5881
5884
  filter_v = filter_v + ' )';
5882
5885
  }
@@ -6983,13 +6986,17 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6983
6986
  this.selval = desc_val;
6984
6987
  if (this.myData != null) {
6985
6988
  for (var x in this.myData) {
6989
+ var b_found = false;
6986
6990
  if (this.myData[x]['valore'] == this.selval) {
6987
6991
  this.sItem = this.myData[x]['descrizione_valore'];
6988
6992
  if (this.sItem != null) {
6993
+ b_found = true;
6989
6994
  this.descri_val = this.sItem;
6990
6995
  }
6991
6996
  return;
6992
6997
  }
6998
+ if (!b_found && this.only_from_list)
6999
+ this.resetValue();
6993
7000
  }
6994
7001
  }
6995
7002
  if (!this.only_from_list) {