@fluxhub/fluxhub-lib 10.0.27 → 10.0.28

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.
@@ -6656,6 +6656,22 @@
6656
6656
  this.update_dis();
6657
6657
  return;
6658
6658
  }
6659
+ if (desc_val != null)
6660
+ if (desc_val != '')
6661
+ if (desc_val != '-1') {
6662
+ var b_found = false;
6663
+ for (var index = 0; index < this.myData.length; index++) {
6664
+ if (this.myData[index].valore != null)
6665
+ if (this.myData[index].valore == desc_val) {
6666
+ b_found = true;
6667
+ break;
6668
+ }
6669
+ }
6670
+ if (!b_found)
6671
+ this.myData.push({ valore: desc_val, descrizione_valore: desc_val });
6672
+ this.selval = desc_val;
6673
+ this.descri_val = desc_val;
6674
+ }
6659
6675
  this.update_dis();
6660
6676
  };
6661
6677
  FHComboboxComponent.prototype.setByIndex = function (ind) {
@@ -6705,6 +6721,22 @@
6705
6721
  return;
6706
6722
  }
6707
6723
  }
6724
+ if (desc_val != null)
6725
+ if (desc_val != '')
6726
+ if (desc_val != '-1') {
6727
+ var b_found = false;
6728
+ for (var index = 0; index < this.myData.length; index++) {
6729
+ if (this.myData[index].valore != null)
6730
+ if (this.myData[index].valore == desc_val) {
6731
+ b_found = true;
6732
+ break;
6733
+ }
6734
+ }
6735
+ if (!b_found)
6736
+ this.myData.push({ valore: desc_val, descrizione_valore: desc_val });
6737
+ this.selval = desc_val;
6738
+ this.descri_val = desc_val;
6739
+ }
6708
6740
  this.update_dis();
6709
6741
  };
6710
6742
  FHComboboxComponent.prototype.getDescri = function () {
@@ -7061,7 +7093,6 @@
7061
7093
  FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
7062
7094
  var _this = this;
7063
7095
  //console.log('setByValue ',desc_val);
7064
- this.last_v = desc_val;
7065
7096
  this.valDef = desc_val;
7066
7097
  this.selval = desc_val;
7067
7098
  if (this.myData != null) {
@@ -7080,7 +7111,11 @@
7080
7111
  this.resetValue(false);
7081
7112
  }
7082
7113
  else {
7083
- setTimeout(function () { _this.last_val_rec(); }, 1000);
7114
+ if (!this.only_from_list) {
7115
+ this.sItem = this.selval;
7116
+ }
7117
+ else
7118
+ setTimeout(function () { _this.last_val_rec(); }, 1000);
7084
7119
  return;
7085
7120
  }
7086
7121
  if (!this.only_from_list) {
@@ -7156,6 +7191,7 @@
7156
7191
  });
7157
7192
  };
7158
7193
  FHAutoCompleteComponent.prototype.writeValue = function (value) {
7194
+ this.last_v = value;
7159
7195
  this.setValue(value);
7160
7196
  };
7161
7197
  FHAutoCompleteComponent.prototype.registerOnChange = function (fn) {