@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
|
@@ -6852,25 +6852,27 @@
|
|
|
6852
6852
|
if (this.sItem != '') {
|
|
6853
6853
|
this.searchItemsFiltered = [];
|
|
6854
6854
|
var ps = this.sItem.toLowerCase();
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
if (this.myData[i].descrizione_valore
|
|
6858
|
-
|
|
6855
|
+
if (this.myData != null)
|
|
6856
|
+
for (var i = 0; i < this.myData.length; i++) {
|
|
6857
|
+
if (this.myData[i].descrizione_valore != null) {
|
|
6858
|
+
if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
|
|
6859
|
+
this.searchItemsFiltered.push(this.myData[i]);
|
|
6860
|
+
}
|
|
6861
|
+
}
|
|
6862
|
+
if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
|
|
6863
|
+
break;
|
|
6859
6864
|
}
|
|
6860
6865
|
}
|
|
6861
|
-
if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
|
|
6862
|
-
break;
|
|
6863
|
-
}
|
|
6864
|
-
}
|
|
6865
6866
|
}
|
|
6866
6867
|
else {
|
|
6867
6868
|
// console.log('onChange()1');
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6869
|
+
if (this.myData != null)
|
|
6870
|
+
for (var i = 0; i < this.myData.length; i++) {
|
|
6871
|
+
this.searchItemsFiltered.push(this.myData[i]);
|
|
6872
|
+
if (i == 20) {
|
|
6873
|
+
break;
|
|
6874
|
+
}
|
|
6872
6875
|
}
|
|
6873
|
-
}
|
|
6874
6876
|
}
|
|
6875
6877
|
}
|
|
6876
6878
|
};
|
|
@@ -6989,15 +6991,16 @@
|
|
|
6989
6991
|
if (this.myData.length == 0 || this.myData[0] == null) {
|
|
6990
6992
|
return;
|
|
6991
6993
|
}
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
this.
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
this.
|
|
6994
|
+
if (this.myData != null)
|
|
6995
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
6996
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
6997
|
+
this.sItem = desc_val;
|
|
6998
|
+
this.selval = this.myData[j].valore;
|
|
6999
|
+
if (this.sItem != null) {
|
|
7000
|
+
this.descri_val = this.sItem;
|
|
7001
|
+
}
|
|
7002
|
+
return;
|
|
6998
7003
|
}
|
|
6999
|
-
return;
|
|
7000
|
-
}
|
|
7001
7004
|
if (!this.only_from_list) {
|
|
7002
7005
|
this.sItem = desc_val;
|
|
7003
7006
|
}
|