ps-toolkit-ui 1.4.75 → 1.4.78
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/ps-toolkit-ui.umd.js +4 -3
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +3 -2
- package/esm2015/lib/components/form/radio/form.radio.component.js +2 -2
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +4 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1827,7 +1827,8 @@
|
|
|
1827
1827
|
if (!u.includes('{}')) {
|
|
1828
1828
|
new RequestClass(this.environment, this.l).send(u ? u : this.url, exports.Method.Post, null, this, function (result) {
|
|
1829
1829
|
if (_this.type === exports.InputType.SelectSearch || _this.type === exports.InputType.Select || _this.type === exports.InputType.SelectAutoComplete ||
|
|
1830
|
-
_this.type === exports.InputType.SelectAutoCompletePlaque || _this.type === exports.InputType.SelectAutoCompletePlaqueM ||
|
|
1830
|
+
_this.type === exports.InputType.SelectAutoCompletePlaque || _this.type === exports.InputType.SelectAutoCompletePlaqueM ||
|
|
1831
|
+
_this.type === exports.InputType.SelectAutoCompletePlaqueF || _this.type === exports.InputType.Radio) {
|
|
1831
1832
|
var r = _this.getOptions(result, null);
|
|
1832
1833
|
var s = result.find(function (x) { return x.Selected; });
|
|
1833
1834
|
if (s) {
|
|
@@ -4934,7 +4935,7 @@
|
|
|
4934
4935
|
this.inp.load();
|
|
4935
4936
|
this.inp.setValue = function (v) {
|
|
4936
4937
|
_this.inp.value = v;
|
|
4937
|
-
if (_this.inp.value == null) {
|
|
4938
|
+
if (_this.inp.value == null && _this.inp.options.length > 0) {
|
|
4938
4939
|
_this.inp.value = _this.inp.options.find(function (x) { return true; }).value;
|
|
4939
4940
|
}
|
|
4940
4941
|
_this.onChange();
|
|
@@ -5787,7 +5788,7 @@
|
|
|
5787
5788
|
};
|
|
5788
5789
|
this.inp.data = function () {
|
|
5789
5790
|
var v = _this.inp.value;
|
|
5790
|
-
if (v === null) {
|
|
5791
|
+
if (v === null || v === '') {
|
|
5791
5792
|
return null;
|
|
5792
5793
|
}
|
|
5793
5794
|
if (v && _this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
|