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.
@@ -3841,12 +3841,14 @@
3841
3841
  this.setDate();
3842
3842
  };
3843
3843
  FormDateComponent.prototype.changeMonth = function (c) {
3844
- this.active = moment__namespace(this.active.format('jYYYY') + '/' + ('0' + c).slice(-2) + '/' + this.active.format('jDD'), 'jYYYY/jMM/jDD');
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
- this.active = moment__namespace(('000' + c).slice(-4) + '/' + this.active.format('jMM') + '/' + this.active.format('jDD'), 'jYYYY/jMM/jDD');
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 () {