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.
@@ -3970,7 +3970,8 @@
3970
3970
  if (!_this.inp.required && !_this.inp.value) {
3971
3971
  return true;
3972
3972
  }
3973
- if (!moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD').isValid()) {
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
  }