@fluxhub/fluxhub-lib 9.0.56 → 9.0.57
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 +24 -21
- 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 +25 -22
- package/esm5/lib/controls/fhautocomplete.js +25 -22
- package/fesm2015/fluxhub-fluxhub-lib.js +24 -21
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +24 -21
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -6719,25 +6719,27 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
6719
6719
|
if (this.sItem != '') {
|
|
6720
6720
|
this.searchItemsFiltered = [];
|
|
6721
6721
|
var ps = this.sItem.toLowerCase();
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
if (this.myData[i].descrizione_valore
|
|
6725
|
-
|
|
6722
|
+
if (this.myData != null)
|
|
6723
|
+
for (var i = 0; i < this.myData.length; i++) {
|
|
6724
|
+
if (this.myData[i].descrizione_valore != null) {
|
|
6725
|
+
if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
|
|
6726
|
+
this.searchItemsFiltered.push(this.myData[i]);
|
|
6727
|
+
}
|
|
6728
|
+
}
|
|
6729
|
+
if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
|
|
6730
|
+
break;
|
|
6726
6731
|
}
|
|
6727
6732
|
}
|
|
6728
|
-
if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
|
|
6729
|
-
break;
|
|
6730
|
-
}
|
|
6731
|
-
}
|
|
6732
6733
|
}
|
|
6733
6734
|
else {
|
|
6734
6735
|
// console.log('onChange()1');
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6736
|
+
if (this.myData != null)
|
|
6737
|
+
for (var i = 0; i < this.myData.length; i++) {
|
|
6738
|
+
this.searchItemsFiltered.push(this.myData[i]);
|
|
6739
|
+
if (i == 20) {
|
|
6740
|
+
break;
|
|
6741
|
+
}
|
|
6739
6742
|
}
|
|
6740
|
-
}
|
|
6741
6743
|
}
|
|
6742
6744
|
}
|
|
6743
6745
|
};
|
|
@@ -6856,15 +6858,16 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
6856
6858
|
if (this.myData.length == 0 || this.myData[0] == null) {
|
|
6857
6859
|
return;
|
|
6858
6860
|
}
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
this.
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
this.
|
|
6861
|
+
if (this.myData != null)
|
|
6862
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
6863
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
6864
|
+
this.sItem = desc_val;
|
|
6865
|
+
this.selval = this.myData[j].valore;
|
|
6866
|
+
if (this.sItem != null) {
|
|
6867
|
+
this.descri_val = this.sItem;
|
|
6868
|
+
}
|
|
6869
|
+
return;
|
|
6865
6870
|
}
|
|
6866
|
-
return;
|
|
6867
|
-
}
|
|
6868
6871
|
if (!this.only_from_list) {
|
|
6869
6872
|
this.sItem = desc_val;
|
|
6870
6873
|
}
|