@fluxhub/fluxhub-lib 10.0.30 → 10.0.32
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 +14 -4
- 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/fhcombobox.js +15 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +14 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -6648,7 +6648,17 @@
|
|
|
6648
6648
|
});
|
|
6649
6649
|
};
|
|
6650
6650
|
FHComboboxComponent.prototype.add_option = function (o) {
|
|
6651
|
-
|
|
6651
|
+
var b_found = false;
|
|
6652
|
+
this.myData.map(function (v) {
|
|
6653
|
+
if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
|
|
6654
|
+
b_found = true;
|
|
6655
|
+
});
|
|
6656
|
+
if (!b_found) {
|
|
6657
|
+
console.log('Inserisco ', o);
|
|
6658
|
+
this.myData.push(o);
|
|
6659
|
+
}
|
|
6660
|
+
else
|
|
6661
|
+
console.log('Esiste già ', o);
|
|
6652
6662
|
};
|
|
6653
6663
|
FHComboboxComponent.prototype.resetD = function (o) {
|
|
6654
6664
|
this.myData = o;
|
|
@@ -6689,7 +6699,7 @@
|
|
|
6689
6699
|
}
|
|
6690
6700
|
}
|
|
6691
6701
|
if (!b_found)
|
|
6692
|
-
this.
|
|
6702
|
+
this.add_option({ valore: desc_val, descrizione_valore: desc_val });
|
|
6693
6703
|
this.selval = desc_val;
|
|
6694
6704
|
this.descri_val = desc_val;
|
|
6695
6705
|
}
|
|
@@ -6754,7 +6764,7 @@
|
|
|
6754
6764
|
}
|
|
6755
6765
|
}
|
|
6756
6766
|
if (!b_found)
|
|
6757
|
-
this.
|
|
6767
|
+
this.add_option({ valore: desc_val, descrizione_valore: desc_val });
|
|
6758
6768
|
this.selval = desc_val;
|
|
6759
6769
|
this.descri_val = desc_val;
|
|
6760
6770
|
}
|
|
@@ -6810,7 +6820,7 @@
|
|
|
6810
6820
|
var av = a[i].split("|");
|
|
6811
6821
|
o.valore = av[1];
|
|
6812
6822
|
o.descrizione_valore = av[0];
|
|
6813
|
-
this.
|
|
6823
|
+
this.add_option(o);
|
|
6814
6824
|
}
|
|
6815
6825
|
this.setByValue(this.valDef);
|
|
6816
6826
|
if (this.getValue() == "-1")
|