@fluxhub/fluxhub-lib 9.0.83 → 9.0.85

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.
@@ -6936,10 +6936,6 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6936
6936
  ok_op = true;
6937
6937
  }
6938
6938
  }
6939
- if (!ok_op) {
6940
- }
6941
- }, function (err) {
6942
- _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
6943
6939
  });
6944
6940
  }
6945
6941
  };
@@ -6947,15 +6943,17 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6947
6943
  this.myData = o;
6948
6944
  this.selval = '';
6949
6945
  this.table_hidden = false;
6950
- this.errorMsg = "";
6946
+ this.errorMsg = '';
6947
+ console.log('resetD prima --> ', this.getValue(), this.valDef);
6951
6948
  this.setByValue(this.valDef);
6952
6949
  this.is_loaded = true;
6953
- console.log('resetD --> ', this.getValue(), this.valDef);
6954
- if ((this.getValue() == null || this.getValue() == '') && this.valDef != "") {
6950
+ console.log('resetD dopo --> ', this.getValue(), this.valDef);
6951
+ if ((this.getValue() == null || this.getValue() == '') && this.valDef != '') {
6955
6952
  this.setByDescri(this.valDef);
6956
6953
  }
6957
6954
  };
6958
6955
  FHAutoCompleteComponent.prototype.setByDescri = function (desc_val) {
6956
+ console.log('>>>setByDescri<<<', desc_val);
6959
6957
  this.valDef = desc_val;
6960
6958
  this.selval = '';
6961
6959
  if (desc_val == "") {
@@ -6985,8 +6983,8 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6985
6983
  this.valDef = desc_val;
6986
6984
  this.selval = desc_val;
6987
6985
  if (this.myData != null) {
6986
+ var b_found = false;
6988
6987
  for (var x in this.myData) {
6989
- var b_found = false;
6990
6988
  if (this.myData[x]['valore'] == this.selval) {
6991
6989
  this.sItem = this.myData[x]['descrizione_valore'];
6992
6990
  if (this.sItem != null) {
@@ -6995,9 +6993,9 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6995
6993
  }
6996
6994
  return;
6997
6995
  }
6998
- if (!b_found && this.only_from_list)
6999
- this.resetValue();
7000
6996
  }
6997
+ if (!b_found && this.only_from_list)
6998
+ this.resetValue();
7001
6999
  }
7002
7000
  if (!this.only_from_list) {
7003
7001
  this.sItem = this.selval;
@@ -7051,7 +7049,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
7051
7049
  }
7052
7050
  this.table_hidden = false;
7053
7051
  this.setByValue(this.valDef);
7054
- if (this.getValue() == "") {
7052
+ if (this.getValue() == '') {
7055
7053
  this.setByDescri(this.valDef);
7056
7054
  }
7057
7055
  };