ps-toolkit-ui 1.6.99 → 1.7.2
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/components/form/date/form.date.component.js +5 -3
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +1 -2
- package/fesm2015/ps-toolkit-ui.js +4 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/textbox/form.textbox.component.d.ts +0 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -3841,12 +3841,14 @@
|
|
|
3841
3841
|
this.setDate();
|
|
3842
3842
|
};
|
|
3843
3843
|
FormDateComponent.prototype.changeMonth = function (c) {
|
|
3844
|
-
|
|
3844
|
+
var v = moment__namespace(this.active.format('jYYYY') + '/' + ('0' + c).slice(-2) + '/' + this.active.format('jDD'), 'jYYYY/jMM/jDD');
|
|
3845
|
+
this.active = v.isValid() ? v : moment__namespace(this.active.format('jYYYY') + '/' + ('0' + c).slice(-2) + '/29', 'jYYYY/jMM/jDD');
|
|
3845
3846
|
this.setDate();
|
|
3846
3847
|
this.changeState('day');
|
|
3847
3848
|
};
|
|
3848
3849
|
FormDateComponent.prototype.changeYear = function (c) {
|
|
3849
|
-
|
|
3850
|
+
var v = moment__namespace(('000' + c).slice(-4) + '/' + this.active.format('jMM') + '/' + this.active.format('jDD'), 'jYYYY/jMM/jDD');
|
|
3851
|
+
this.active = v.isValid() ? v : moment__namespace(('000' + c).slice(-4) + '/' + this.active.format('jMM') + '/29', 'jYYYY/jMM/jDD');
|
|
3850
3852
|
this.setDate();
|
|
3851
3853
|
this.changeState('month');
|
|
3852
3854
|
};
|
|
@@ -5921,7 +5923,6 @@
|
|
|
5921
5923
|
function FormTextboxComponent() {
|
|
5922
5924
|
this.cValue = '';
|
|
5923
5925
|
this.changeIndex = new core.EventEmitter();
|
|
5924
|
-
this.navigationKeys = ['Backspace', 'Delete', 'Tab', 'Escape', 'Enter', 'Home', 'End', 'ArrowLeft', 'ArrowRight', 'Clear', 'Copy', 'Paste'];
|
|
5925
5926
|
}
|
|
5926
5927
|
Object.defineProperty(FormTextboxComponent.prototype, "type", {
|
|
5927
5928
|
get: function () {
|