@fluxhub/fluxhub-lib 10.0.26 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +45 -2
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhautocomplete.js +14 -3
- package/esm2015/lib/controls/fhcombobox.js +33 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +45 -2
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 () {
|
|
@@ -7014,6 +7046,13 @@
|
|
|
7014
7046
|
this.selval = "";
|
|
7015
7047
|
this.table_hidden = false;
|
|
7016
7048
|
this.errorMsg = "";
|
|
7049
|
+
if (!this.only_from_list) {
|
|
7050
|
+
console.log('resetD ', this.valDef);
|
|
7051
|
+
this.last_v = this.valDef;
|
|
7052
|
+
this.selval = this.valDef;
|
|
7053
|
+
this.sItem = this.selval;
|
|
7054
|
+
return;
|
|
7055
|
+
}
|
|
7017
7056
|
this.setByValue(this.valDef);
|
|
7018
7057
|
this.is_loaded = true;
|
|
7019
7058
|
if ((this.getValue() == null || this.getValue() == "") &&
|
|
@@ -7054,7 +7093,6 @@
|
|
|
7054
7093
|
FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
|
|
7055
7094
|
var _this = this;
|
|
7056
7095
|
//console.log('setByValue ',desc_val);
|
|
7057
|
-
this.last_v = desc_val;
|
|
7058
7096
|
this.valDef = desc_val;
|
|
7059
7097
|
this.selval = desc_val;
|
|
7060
7098
|
if (this.myData != null) {
|
|
@@ -7073,7 +7111,11 @@
|
|
|
7073
7111
|
this.resetValue(false);
|
|
7074
7112
|
}
|
|
7075
7113
|
else {
|
|
7076
|
-
|
|
7114
|
+
if (!this.only_from_list) {
|
|
7115
|
+
this.sItem = this.selval;
|
|
7116
|
+
}
|
|
7117
|
+
else
|
|
7118
|
+
setTimeout(function () { _this.last_val_rec(); }, 1000);
|
|
7077
7119
|
return;
|
|
7078
7120
|
}
|
|
7079
7121
|
if (!this.only_from_list) {
|
|
@@ -7149,6 +7191,7 @@
|
|
|
7149
7191
|
});
|
|
7150
7192
|
};
|
|
7151
7193
|
FHAutoCompleteComponent.prototype.writeValue = function (value) {
|
|
7194
|
+
this.last_v = value;
|
|
7152
7195
|
this.setValue(value);
|
|
7153
7196
|
};
|
|
7154
7197
|
FHAutoCompleteComponent.prototype.registerOnChange = function (fn) {
|