@syncfusion/ej2-calendars 28.1.39 → 28.2.3

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.
@@ -14796,7 +14796,8 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14796
14796
  return;
14797
14797
  }
14798
14798
  this.isDayPart = true;
14799
- this.dayTypeCount = this.dayTypeCount + 1;
14799
+ var maxDaysInMonth = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
14800
+ this.dayTypeCount += (this.dayTypeCount === 0 && (parseInt(date + '0', 10) > maxDaysInMonth)) ? 2 : 1;
14800
14801
  }
14801
14802
  else {
14802
14803
  this.isDayPart = false;
@@ -14919,7 +14920,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14919
14920
  newDateValue.setHours(Math.floor(newDateValue.getHours() / 12) * 12 + (this.hour % 12));
14920
14921
  this.isNavigate = this.hour.toString().length === 2;
14921
14922
  this.isHourPart = true;
14922
- this.hourTypeCount = this.hourTypeCount + 1;
14923
+ this.hourTypeCount = (this.hourTypeCount === 0 && this.hour && (parseInt(this.hour + '0', 10) > 12)) ? 2 : this.hourTypeCount + 1;
14923
14924
  break;
14924
14925
  case 'H':
14925
14926
  this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 &&
@@ -14935,7 +14936,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14935
14936
  newDateValue.setHours(this.hour);
14936
14937
  this.isNavigate = this.hour.toString().length === 2;
14937
14938
  this.isHourPart = true;
14938
- this.hourTypeCount = this.hourTypeCount + 1;
14939
+ this.hourTypeCount = (this.hourTypeCount === 0 && this.hour && (parseInt(this.hour + '0', 10) > 23)) ? 2 : this.hourTypeCount + 1;
14939
14940
  break;
14940
14941
  case 'm':
14941
14942
  {
@@ -14952,7 +14953,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14952
14953
  newDateValue.setMinutes(minutes);
14953
14954
  this.isNavigate = minutes.toString().length === 2;
14954
14955
  this.isMinutePart = true;
14955
- this.minuteTypeCount = this.minuteTypeCount + 1;
14956
+ this.minuteTypeCount = (this.minuteTypeCount === 0 && (parseInt(minutes + '0', 10) > 59)) ? 2 : this.minuteTypeCount + 1;
14956
14957
  break;
14957
14958
  }
14958
14959
  case 's':
@@ -14970,7 +14971,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14970
14971
  newDateValue.setSeconds(seconds);
14971
14972
  this.isNavigate = seconds.toString().length === 2;
14972
14973
  this.isSecondsPart = true;
14973
- this.secondTypeCount = this.secondTypeCount + 1;
14974
+ this.secondTypeCount = (this.secondTypeCount === 0 && (parseInt(seconds + '0', 10) > 59)) ? 2 : this.secondTypeCount + 1;
14974
14975
  break;
14975
14976
  }
14976
14977
  case 'a':