ps-toolkit-ui 1.12.41 → 1.12.43
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 -4
- 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 +5 -5
- package/fesm2015/ps-toolkit-ui.js +4 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -3970,8 +3970,8 @@
|
|
|
3970
3970
|
if (!_this.inp.required && !_this.inp.value) {
|
|
3971
3971
|
return true;
|
|
3972
3972
|
}
|
|
3973
|
-
console.log(_this.inp.value
|
|
3974
|
-
if (
|
|
3973
|
+
console.log(_this.inp.value);
|
|
3974
|
+
if (!moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD').isValid()) {
|
|
3975
3975
|
_this.inp.error = exports.InputError.Invalid;
|
|
3976
3976
|
return false;
|
|
3977
3977
|
}
|
|
@@ -4025,7 +4025,7 @@
|
|
|
4025
4025
|
else {
|
|
4026
4026
|
this.active = v;
|
|
4027
4027
|
}
|
|
4028
|
-
this.inp.value = this.active.format(
|
|
4028
|
+
this.inp.value = this.active.format('jYYYY/jMM/jDD');
|
|
4029
4029
|
this.inp.search = this.active.format(this.inp.type === exports.InputType.Month ? 'jMMMM jYYYY' : 'jYYYY/jMM/jDD');
|
|
4030
4030
|
this.setDate();
|
|
4031
4031
|
};
|
|
@@ -4179,7 +4179,7 @@
|
|
|
4179
4179
|
}
|
|
4180
4180
|
};
|
|
4181
4181
|
FormDateComponent.prototype.setValue = function (y, m, d) {
|
|
4182
|
-
this.inp.value =
|
|
4182
|
+
this.inp.value = y + '/' + (m > 9 ? m : '0' + m) + '/' + (d > 9 ? d : '0' + d);
|
|
4183
4183
|
this.inp.search = this.inp.type === exports.InputType.Month ? this.months[m - 1] + ' ' + y : y + '/' + (m > 9 ? m : '0' + m) + '/' + (d > 9 ? d : '0' + d);
|
|
4184
4184
|
};
|
|
4185
4185
|
FormDateComponent.prototype.changeState = function (s) {
|