ps-toolkit-ui 1.5.2 → 1.5.5
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 +9 -11
- 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/components/form/plaque/form.plaque.component.js +10 -12
- package/fesm2015/ps-toolkit-ui.js +9 -11
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/plaque/form.plaque.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -4849,15 +4849,6 @@
|
|
|
4849
4849
|
if (!_this.inp.required && !_this.inp.value) {
|
|
4850
4850
|
return true;
|
|
4851
4851
|
}
|
|
4852
|
-
if (_this.inp.required && _this.inp.type === exports.InputType.Plaque &&
|
|
4853
|
-
(!_this.part1.isValid() || !_this.part2.isValid() || !_this.part3.isValid() || !_this.part4.isValid())) {
|
|
4854
|
-
_this.inp.error = exports.InputError.Invalid;
|
|
4855
|
-
return false;
|
|
4856
|
-
}
|
|
4857
|
-
if (_this.inp.required && (_this.inp.type === exports.InputType.PlaqueM || _this.inp.type === exports.InputType.PlaqueF) && (!_this.part1.isValid() || !_this.part3.isValid())) {
|
|
4858
|
-
_this.inp.error = exports.InputError.Invalid;
|
|
4859
|
-
return false;
|
|
4860
|
-
}
|
|
4861
4852
|
return true;
|
|
4862
4853
|
};
|
|
4863
4854
|
this.inp.clear = function () {
|
|
@@ -4873,6 +4864,13 @@
|
|
|
4873
4864
|
_this.onFocusIn();
|
|
4874
4865
|
};
|
|
4875
4866
|
};
|
|
4867
|
+
FormPlaqueComponent.prototype.isValid = function () {
|
|
4868
|
+
if (this.inp.type === exports.InputType.Plaque &&
|
|
4869
|
+
(!this.part1.isValid() || !this.part2.isValid() || !this.part3.isValid() || !this.part4.isValid())) {
|
|
4870
|
+
return false;
|
|
4871
|
+
}
|
|
4872
|
+
return !((this.inp.type === exports.InputType.PlaqueM || this.inp.type === exports.InputType.PlaqueF) && (!this.part1.isValid() || !this.part3.isValid()));
|
|
4873
|
+
};
|
|
4876
4874
|
FormPlaqueComponent.prototype.changeFocus = function (p, a) {
|
|
4877
4875
|
if (this.inp.type === exports.InputType.Plaque) {
|
|
4878
4876
|
if (p === 'Part1') {
|
|
@@ -4952,9 +4950,9 @@
|
|
|
4952
4950
|
}
|
|
4953
4951
|
};
|
|
4954
4952
|
FormPlaqueComponent.prototype.getValue = function () {
|
|
4955
|
-
return this.inp.type === exports.InputType.Plaque ?
|
|
4953
|
+
return this.isValid() ? (this.inp.type === exports.InputType.Plaque ?
|
|
4956
4954
|
(this.part1.value ? this.part1.value : '') + "_" + (this.part2.value ? this.part2.value : '') + "_" + (this.part3.value ? this.part3.value : '') + "_" + (this.part4.value ? this.part4.value : '') :
|
|
4957
|
-
(this.part1.value ? this.part1.value : '') + "_" + (this.part3.value ? this.part3.value : '');
|
|
4955
|
+
(this.part1.value ? this.part1.value : '') + "_" + (this.part3.value ? this.part3.value : '')) : null;
|
|
4958
4956
|
};
|
|
4959
4957
|
return FormPlaqueComponent;
|
|
4960
4958
|
}());
|