ps-toolkit-ui 1.12.38 → 1.12.41
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 +2 -1
- 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/date/form.date.component.js +3 -2
- package/fesm2015/ps-toolkit-ui.js +2 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -3970,7 +3970,8 @@
|
|
|
3970
3970
|
if (!_this.inp.required && !_this.inp.value) {
|
|
3971
3971
|
return true;
|
|
3972
3972
|
}
|
|
3973
|
-
|
|
3973
|
+
console.log(_this.inp.value, !moment__namespace(_this.inp.value, 'jYYYY/jMM').isValid());
|
|
3974
|
+
if ((_this.inp.type === exports.InputType.Month && !moment__namespace(_this.inp.value, 'jYYYY/jMM').isValid()) || (_this.inp.type !== exports.InputType.Month && !moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD').isValid())) {
|
|
3974
3975
|
_this.inp.error = exports.InputError.Invalid;
|
|
3975
3976
|
return false;
|
|
3976
3977
|
}
|