@fluxhub/fluxhub-lib 9.0.68 → 9.0.70

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.
@@ -6801,8 +6801,14 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6801
6801
  FHAutoCompleteComponent.prototype.fo_search = function (o) {
6802
6802
  var _this = this;
6803
6803
  setTimeout(function () {
6804
- _this.onChange(_this.sItem);
6805
- _this.change.emit(_this.sItem);
6804
+ if (!_this.only_from_list) {
6805
+ _this.onChange(_this.sItem);
6806
+ _this.change.emit(_this.sItem);
6807
+ }
6808
+ else {
6809
+ _this.onChange(_this.getValue());
6810
+ _this.change.emit(_this.getValue());
6811
+ }
6806
6812
  });
6807
6813
  this
6808
6814
  .focusout
@@ -6849,10 +6855,14 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6849
6855
  this
6850
6856
  .selchange
6851
6857
  .emit({ event: $event, valore: this.getValue(), descrizione_valore: this.sItem });
6852
- this
6853
- .change
6854
- .emit(value);
6855
- this.onChange(value);
6858
+ if (!this.only_from_list) {
6859
+ this.onChange(this.sItem);
6860
+ this.change.emit(this.sItem);
6861
+ }
6862
+ else {
6863
+ this.onChange(this.getValue());
6864
+ this.change.emit(this.getValue());
6865
+ }
6856
6866
  };
6857
6867
  FHAutoCompleteComponent.prototype.myListFormatter = function (data) {
6858
6868
  return data['descrizione_valore'];
@@ -6973,13 +6983,17 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6973
6983
  this.selval = desc_val;
6974
6984
  if (this.myData != null) {
6975
6985
  for (var x in this.myData) {
6986
+ var b_found = false;
6976
6987
  if (this.myData[x]['valore'] == this.selval) {
6977
6988
  this.sItem = this.myData[x]['descrizione_valore'];
6978
6989
  if (this.sItem != null) {
6990
+ b_found = true;
6979
6991
  this.descri_val = this.sItem;
6980
6992
  }
6981
6993
  return;
6982
6994
  }
6995
+ if (!b_found && this.only_from_list)
6996
+ this.resetValue();
6983
6997
  }
6984
6998
  }
6985
6999
  if (!this.only_from_list) {