@fluxhub/fluxhub-lib 9.0.82 → 9.0.84

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.
@@ -6879,15 +6879,14 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6879
6879
  return data['descrizione_valore'];
6880
6880
  };
6881
6881
  FHAutoCompleteComponent.prototype.resetValue = function () {
6882
- var _this = this;
6883
- setTimeout(function () {
6884
- _this.selval = '';
6885
- // this.valDef = '';
6886
- _this.sItem = '';
6887
- _this.selval = null;
6888
- }, 100);
6882
+ console.log('>>>resetValue<<<');
6883
+ this.selval = '';
6884
+ // this.valDef = '';
6885
+ this.sItem = '';
6886
+ this.selval = null;
6889
6887
  };
6890
6888
  FHAutoCompleteComponent.prototype.reset = function () {
6889
+ console.log('>>>reset<<<');
6891
6890
  this.selval = '';
6892
6891
  this.valDef = '';
6893
6892
  this.selval = null;
@@ -6903,24 +6902,17 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6903
6902
  p.sql = this.sql;
6904
6903
  p.types = this.types;
6905
6904
  p.values = this.values;
6906
- var ok_op = false;
6907
6905
  if (this.db_type == "1") {
6908
6906
  this
6909
6907
  ._dataService
6910
6908
  .doQuery(p)
6911
6909
  .subscribe(function (data) {
6912
- var ok_op = false;
6913
6910
  if (data != null) {
6914
6911
  if (data.result_msg == "OK") {
6915
6912
  _this.resetD(data.result_data);
6916
6913
  _this.fillend.emit();
6917
- ok_op = true;
6918
6914
  }
6919
6915
  }
6920
- if (!ok_op) {
6921
- }
6922
- }, function (err) {
6923
- _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
6924
6916
  });
6925
6917
  }
6926
6918
  if (this.db_type == "2") {
@@ -6944,10 +6936,6 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6944
6936
  ok_op = true;
6945
6937
  }
6946
6938
  }
6947
- if (!ok_op) {
6948
- }
6949
- }, function (err) {
6950
- _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
6951
6939
  });
6952
6940
  }
6953
6941
  };
@@ -6955,15 +6943,17 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6955
6943
  this.myData = o;
6956
6944
  this.selval = '';
6957
6945
  this.table_hidden = false;
6958
- this.errorMsg = "";
6946
+ this.errorMsg = '';
6947
+ console.log('resetD prima --> ', this.getValue(), this.valDef);
6959
6948
  this.setByValue(this.valDef);
6960
6949
  this.is_loaded = true;
6961
- console.log('resetD --> ', this.getValue(), this.valDef);
6962
- 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 != '') {
6963
6952
  this.setByDescri(this.valDef);
6964
6953
  }
6965
6954
  };
6966
6955
  FHAutoCompleteComponent.prototype.setByDescri = function (desc_val) {
6956
+ console.log('>>>setByDescri<<<', desc_val);
6967
6957
  this.valDef = desc_val;
6968
6958
  this.selval = '';
6969
6959
  if (desc_val == "") {
@@ -7059,7 +7049,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
7059
7049
  }
7060
7050
  this.table_hidden = false;
7061
7051
  this.setByValue(this.valDef);
7062
- if (this.getValue() == "") {
7052
+ if (this.getValue() == '') {
7063
7053
  this.setByDescri(this.valDef);
7064
7054
  }
7065
7055
  };