@syncfusion/ej2-calendars 28.1.39 → 28.1.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.
@@ -14647,7 +14647,8 @@ class MaskedDateTime {
14647
14647
  return;
14648
14648
  }
14649
14649
  this.isDayPart = true;
14650
- this.dayTypeCount = this.dayTypeCount + 1;
14650
+ const maxDaysInMonth = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
14651
+ this.dayTypeCount += (this.dayTypeCount === 0 && (parseInt(date + '0', 10) > maxDaysInMonth)) ? 2 : 1;
14651
14652
  }
14652
14653
  else {
14653
14654
  this.isDayPart = false;
@@ -14769,7 +14770,7 @@ class MaskedDateTime {
14769
14770
  newDateValue.setHours(Math.floor(newDateValue.getHours() / 12) * 12 + (this.hour % 12));
14770
14771
  this.isNavigate = this.hour.toString().length === 2;
14771
14772
  this.isHourPart = true;
14772
- this.hourTypeCount = this.hourTypeCount + 1;
14773
+ this.hourTypeCount = (this.hourTypeCount === 0 && this.hour && (parseInt(this.hour + '0', 10) > 12)) ? 2 : this.hourTypeCount + 1;
14773
14774
  break;
14774
14775
  case 'H':
14775
14776
  this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 &&
@@ -14785,7 +14786,7 @@ class MaskedDateTime {
14785
14786
  newDateValue.setHours(this.hour);
14786
14787
  this.isNavigate = this.hour.toString().length === 2;
14787
14788
  this.isHourPart = true;
14788
- this.hourTypeCount = this.hourTypeCount + 1;
14789
+ this.hourTypeCount = (this.hourTypeCount === 0 && this.hour && (parseInt(this.hour + '0', 10) > 23)) ? 2 : this.hourTypeCount + 1;
14789
14790
  break;
14790
14791
  case 'm':
14791
14792
  {
@@ -14802,7 +14803,7 @@ class MaskedDateTime {
14802
14803
  newDateValue.setMinutes(minutes);
14803
14804
  this.isNavigate = minutes.toString().length === 2;
14804
14805
  this.isMinutePart = true;
14805
- this.minuteTypeCount = this.minuteTypeCount + 1;
14806
+ this.minuteTypeCount = (this.minuteTypeCount === 0 && (parseInt(minutes + '0', 10) > 59)) ? 2 : this.minuteTypeCount + 1;
14806
14807
  break;
14807
14808
  }
14808
14809
  case 's':
@@ -14820,7 +14821,7 @@ class MaskedDateTime {
14820
14821
  newDateValue.setSeconds(seconds);
14821
14822
  this.isNavigate = seconds.toString().length === 2;
14822
14823
  this.isSecondsPart = true;
14823
- this.secondTypeCount = this.secondTypeCount + 1;
14824
+ this.secondTypeCount = (this.secondTypeCount === 0 && (parseInt(seconds + '0', 10) > 59)) ? 2 : this.secondTypeCount + 1;
14824
14825
  break;
14825
14826
  }
14826
14827
  case 'a':