@syncfusion/ej2-calendars 20.1.56 → 20.1.57

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/ej2-calendars.umd.min.js +2 -2
  3. package/dist/ej2-calendars.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-calendars.es2015.js +115 -14
  5. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  6. package/dist/es6/ej2-calendars.es5.js +117 -14
  7. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  8. package/dist/global/ej2-calendars.min.js +2 -2
  9. package/dist/global/ej2-calendars.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +6 -6
  12. package/src/calendar/calendar.js +4 -0
  13. package/src/datepicker/datepicker.d.ts +1 -0
  14. package/src/datepicker/datepicker.js +2 -0
  15. package/src/daterangepicker/daterangepicker.d.ts +2 -0
  16. package/src/daterangepicker/daterangepicker.js +62 -8
  17. package/src/maskbase/interface.d.ts +1 -0
  18. package/src/maskbase/masked-date-time.d.ts +2 -0
  19. package/src/maskbase/masked-date-time.js +49 -6
  20. package/styles/bootstrap-dark.css +96 -491
  21. package/styles/bootstrap.css +96 -491
  22. package/styles/bootstrap4.css +96 -493
  23. package/styles/bootstrap5-dark.css +97 -499
  24. package/styles/bootstrap5.css +97 -499
  25. package/styles/calendar/bootstrap-dark.css +50 -238
  26. package/styles/calendar/bootstrap.css +50 -238
  27. package/styles/calendar/bootstrap4.css +50 -238
  28. package/styles/calendar/bootstrap5-dark.css +51 -246
  29. package/styles/calendar/bootstrap5.css +51 -246
  30. package/styles/calendar/fabric-dark.css +50 -237
  31. package/styles/calendar/fabric.css +50 -238
  32. package/styles/calendar/fluent-dark.css +56 -270
  33. package/styles/calendar/fluent.css +56 -270
  34. package/styles/calendar/highcontrast-light.css +50 -238
  35. package/styles/calendar/highcontrast.css +50 -238
  36. package/styles/calendar/material-dark.css +50 -238
  37. package/styles/calendar/material.css +50 -238
  38. package/styles/calendar/tailwind-dark.css +53 -261
  39. package/styles/calendar/tailwind.css +53 -261
  40. package/styles/datepicker/bootstrap-dark.css +7 -20
  41. package/styles/datepicker/bootstrap.css +7 -20
  42. package/styles/datepicker/bootstrap4.css +7 -21
  43. package/styles/datepicker/bootstrap5-dark.css +7 -20
  44. package/styles/datepicker/bootstrap5.css +7 -20
  45. package/styles/datepicker/fabric-dark.css +7 -20
  46. package/styles/datepicker/fabric.css +7 -20
  47. package/styles/datepicker/fluent-dark.css +7 -21
  48. package/styles/datepicker/fluent.css +7 -21
  49. package/styles/datepicker/highcontrast-light.css +7 -21
  50. package/styles/datepicker/highcontrast.css +7 -21
  51. package/styles/datepicker/material-dark.css +7 -22
  52. package/styles/datepicker/material.css +7 -23
  53. package/styles/datepicker/tailwind-dark.css +7 -21
  54. package/styles/datepicker/tailwind.css +7 -21
  55. package/styles/daterangepicker/bootstrap-dark.css +32 -184
  56. package/styles/daterangepicker/bootstrap.css +32 -184
  57. package/styles/daterangepicker/bootstrap4.css +32 -185
  58. package/styles/daterangepicker/bootstrap5-dark.css +32 -185
  59. package/styles/daterangepicker/bootstrap5.css +32 -185
  60. package/styles/daterangepicker/fabric-dark.css +32 -184
  61. package/styles/daterangepicker/fabric.css +32 -184
  62. package/styles/daterangepicker/fluent-dark.css +35 -188
  63. package/styles/daterangepicker/fluent.css +35 -188
  64. package/styles/daterangepicker/highcontrast-light.css +32 -184
  65. package/styles/daterangepicker/highcontrast.css +32 -184
  66. package/styles/daterangepicker/material-dark.css +32 -185
  67. package/styles/daterangepicker/material.css +32 -186
  68. package/styles/daterangepicker/tailwind-dark.css +31 -178
  69. package/styles/daterangepicker/tailwind.css +31 -178
  70. package/styles/datetimepicker/bootstrap-dark.css +7 -30
  71. package/styles/datetimepicker/bootstrap.css +7 -30
  72. package/styles/datetimepicker/bootstrap4.css +7 -30
  73. package/styles/datetimepicker/bootstrap5-dark.css +7 -30
  74. package/styles/datetimepicker/bootstrap5.css +7 -30
  75. package/styles/datetimepicker/fabric-dark.css +7 -30
  76. package/styles/datetimepicker/fabric.css +7 -30
  77. package/styles/datetimepicker/fluent-dark.css +7 -30
  78. package/styles/datetimepicker/fluent.css +7 -30
  79. package/styles/datetimepicker/highcontrast-light.css +7 -30
  80. package/styles/datetimepicker/highcontrast.css +7 -30
  81. package/styles/datetimepicker/material-dark.css +7 -31
  82. package/styles/datetimepicker/material.css +7 -32
  83. package/styles/datetimepicker/tailwind-dark.css +7 -30
  84. package/styles/datetimepicker/tailwind.css +7 -30
  85. package/styles/fabric-dark.css +96 -490
  86. package/styles/fabric.css +96 -491
  87. package/styles/fluent-dark.css +105 -527
  88. package/styles/fluent.css +105 -527
  89. package/styles/highcontrast-light.css +96 -492
  90. package/styles/highcontrast.css +96 -492
  91. package/styles/material-dark.css +96 -496
  92. package/styles/material.css +96 -500
  93. package/styles/tailwind-dark.css +98 -509
  94. package/styles/tailwind.css +98 -509
  95. package/styles/timepicker/bootstrap-dark.css +4 -22
  96. package/styles/timepicker/bootstrap.css +4 -22
  97. package/styles/timepicker/bootstrap4.css +4 -22
  98. package/styles/timepicker/bootstrap5-dark.css +4 -22
  99. package/styles/timepicker/bootstrap5.css +4 -22
  100. package/styles/timepicker/fabric-dark.css +4 -22
  101. package/styles/timepicker/fabric.css +4 -22
  102. package/styles/timepicker/fluent-dark.css +4 -22
  103. package/styles/timepicker/fluent.css +4 -22
  104. package/styles/timepicker/highcontrast-light.css +4 -22
  105. package/styles/timepicker/highcontrast.css +4 -22
  106. package/styles/timepicker/material-dark.css +4 -23
  107. package/styles/timepicker/material.css +4 -24
  108. package/styles/timepicker/tailwind-dark.css +4 -22
  109. package/styles/timepicker/tailwind.css +4 -22
@@ -237,6 +237,10 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
237
237
  duration: 400,
238
238
  isCenterRipple: true
239
239
  });
240
+ if (this.getModuleName() === 'daterangepicker') {
241
+ attributes(this.previousIcon, { tabIndex: '-1' });
242
+ attributes(this.nextIcon, { tabIndex: '-1' });
243
+ }
240
244
  attributes(this.nextIcon, ariaNextAttrs);
241
245
  this.headerTitleElement = this.createElement('div', { className: '' + LINK + ' ' + TITLE });
242
246
  attributes(this.headerTitleElement, ariaTitleAttrs);
@@ -3086,6 +3090,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3086
3090
  _this.isIconClicked = false;
3087
3091
  _this.isDynamicValueChanged = false;
3088
3092
  _this.moduleName = _this.getModuleName();
3093
+ _this.isFocused = false;
3089
3094
  _this.datepickerOptions = options;
3090
3095
  return _this;
3091
3096
  }
@@ -3651,6 +3656,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3651
3656
  }
3652
3657
  };
3653
3658
  DatePicker.prototype.inputFocusHandler = function () {
3659
+ this.isFocused = true;
3654
3660
  if (!this.enabled) {
3655
3661
  return;
3656
3662
  }
@@ -5283,7 +5289,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5283
5289
  this.validationAttribute(this.element, this.inputElement);
5284
5290
  }
5285
5291
  this.checkHtmlAttributes(false);
5286
- merge(this.defaultKeyConfigs, { shiftTab: 'shift+tab' });
5292
+ merge(this.defaultKeyConfigs, { shiftTab: 'shift+tab', tab: 'tab' });
5287
5293
  var start = this.checkDateValue(new Date(this.checkValue(this.startValue)));
5288
5294
  this.setProperties({ startDate: start }, true); // persist the value propeerty.
5289
5295
  this.setProperties({ endValue: this.checkDateValue(new Date(this.checkValue(this.endValue))) }, true);
@@ -5994,8 +6000,11 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5994
6000
  }
5995
6001
  }
5996
6002
  };
5997
- DateRangePicker.prototype.keyCalendarUpdate = function (isLeftCalendar, ele) {
5998
- this.removeFocusedDate();
6003
+ DateRangePicker.prototype.keyCalendarUpdate = function (isLeftCalendar, ele, isRemoveFocus) {
6004
+ if (isRemoveFocus === void 0) { isRemoveFocus = true; }
6005
+ if (isRemoveFocus) {
6006
+ this.removeFocusedDate();
6007
+ }
5999
6008
  if (isLeftCalendar) {
6000
6009
  this.leftCalCurrentDate = new Date(+this.currentDate);
6001
6010
  ele = this.leftCalendar;
@@ -6096,8 +6105,37 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6096
6105
  }
6097
6106
  this.keyNavigation(ele, e);
6098
6107
  break;
6108
+ case 'tab':
6109
+ if (this.tabKeyValidation(ele, LEFTCALENDER)) {
6110
+ ele = this.keyCalendarUpdate(false, ele, false);
6111
+ var focusedCell = ele.querySelector('.e-focused-date');
6112
+ if (isNullOrUndefined(focusedCell)) {
6113
+ this.currentDate = this.firstCellToFocus(this.rightCalendar);
6114
+ }
6115
+ this.keyboardNavigate(0, view, e, max, min);
6116
+ this.keyNavigation(ele, e);
6117
+ }
6118
+ break;
6119
+ case 'shiftTab':
6120
+ if (this.tabKeyValidation(ele, RIGHTCALENDER)) {
6121
+ ele = this.keyCalendarUpdate(true, ele, false);
6122
+ var focusedCell = ele.querySelector('.e-focused-date');
6123
+ if (isNullOrUndefined(focusedCell)) {
6124
+ this.currentDate = this.firstCellToFocus(this.leftCalendar);
6125
+ }
6126
+ this.keyboardNavigate(0, view, e, max, min);
6127
+ this.keyNavigation(ele, e);
6128
+ }
6129
+ break;
6099
6130
  }
6100
6131
  };
6132
+ DateRangePicker.prototype.firstCellToFocus = function (calendar) {
6133
+ var focusAbleEle = calendar.children[1].firstElementChild.querySelector('td.e-cell:not(.e-week-number):not(.e-disabled):not(.e-other-month)');
6134
+ var focusEleID = focusAbleEle && focusAbleEle.id ? focusAbleEle.id.split('_')[0] : null;
6135
+ var currentFirstDay = new Date(this.currentDate.getFullYear(), this.currentDate.getMonth(), 1);
6136
+ var focusDate = focusEleID ? new Date(+focusEleID) : currentFirstDay;
6137
+ return focusDate;
6138
+ };
6101
6139
  DateRangePicker.prototype.keyInputHandler = function (e, value) {
6102
6140
  var date;
6103
6141
  var view = this.getViewNumber(this.currentView());
@@ -6288,19 +6326,39 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6288
6326
  this.presetElement.focus();
6289
6327
  this.removeFocusedDate();
6290
6328
  }
6291
- e.preventDefault();
6329
+ if (isLeftCalendar) {
6330
+ e.preventDefault();
6331
+ }
6332
+ if (this.tabKeyValidation(ele, RIGHTCALENDER)) {
6333
+ this.currentDate = new Date(+this.leftCalCurrentDate);
6334
+ this.navInCalendar(e, isLeftCalendar, leftDateLimit, rightDateLimit, ele);
6335
+ }
6292
6336
  break;
6293
6337
  case 'spacebar':
6294
6338
  if (this.applyButton && !this.applyButton.disabled) {
6295
6339
  this.applyFunction(e);
6296
6340
  }
6297
6341
  break;
6342
+ case 'tab':
6343
+ if (this.tabKeyValidation(ele, LEFTCALENDER)) {
6344
+ this.currentDate = new Date(+this.rightCalCurrentDate);
6345
+ this.navInCalendar(e, isLeftCalendar, leftDateLimit, rightDateLimit, ele);
6346
+ }
6347
+ break;
6298
6348
  default:
6299
6349
  this.navInCalendar(e, isLeftCalendar, leftDateLimit, rightDateLimit, ele);
6300
6350
  this.checkMinMaxDays();
6301
6351
  }
6302
6352
  this.presetHeight();
6303
6353
  };
6354
+ DateRangePicker.prototype.tabKeyValidation = function (ele, calendarPos) {
6355
+ var isLeftCalendar = ele.classList.contains(calendarPos);
6356
+ var rightHeader = this.rightCalendar.querySelector('.e-header');
6357
+ var leftHeader = this.leftCalendar.querySelector('.e-header');
6358
+ var isRightMonth = rightHeader ? rightHeader.classList.contains('e-month') : false;
6359
+ var isLeftMonth = leftHeader ? leftHeader.classList.contains('e-month') : false;
6360
+ return isLeftCalendar && isLeftMonth && isRightMonth && !this.isMobile;
6361
+ };
6304
6362
  DateRangePicker.prototype.keyNavigation = function (calendar, e) {
6305
6363
  this.bindCalendarCellEvents(calendar);
6306
6364
  if (calendar.classList.contains(LEFTCALENDER)) {
@@ -7042,9 +7100,10 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7042
7100
  }
7043
7101
  this.removeFocusedDate();
7044
7102
  };
7045
- DateRangePicker.prototype.updateControl = function (calendar) {
7103
+ DateRangePicker.prototype.updateControl = function (calendar, customDate) {
7104
+ if (customDate === void 0) { customDate = null; }
7046
7105
  if (calendar.classList.contains(RIGHTCALENDER)) {
7047
- this.rightCalCurrentDate = new Date(+this.currentDate);
7106
+ this.rightCalCurrentDate = new Date(+(customDate ? customDate : this.currentDate));
7048
7107
  }
7049
7108
  else {
7050
7109
  this.leftCalCurrentDate = new Date(+this.currentDate);
@@ -7372,7 +7431,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7372
7431
  this.rightCalNextIcon = this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + NEXTICON$1);
7373
7432
  this.rightTitle = this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + TITLE$1);
7374
7433
  remove(this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + ICONCONTAINER$1));
7375
- this.calendarElement.querySelector('table').setAttribute('tabindex', '-1');
7434
+ this.calendarElement.querySelector('table').setAttribute('tabindex', '0');
7376
7435
  this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + HEADER$1).appendChild(this.rightCalNextIcon);
7377
7436
  this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + HEADER$1).appendChild(this.rightCalPrevIcon);
7378
7437
  prepend([this.rightCalPrevIcon], this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + HEADER$1));
@@ -7486,7 +7545,8 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7486
7545
  this.updateControl(this.leftCalendar);
7487
7546
  this.updateCalendarElement(this.rightCalendar);
7488
7547
  _super.prototype.navigateTo.call(this, view, this.rightCalCurrentDate);
7489
- this.updateControl(this.rightCalendar);
7548
+ var customDate = this.rightCalCurrentDate ? this.rightCalCurrentDate : this.currentDate;
7549
+ this.updateControl(this.rightCalendar, customDate);
7490
7550
  this.updateNavIcons();
7491
7551
  this.calendarIconEvent();
7492
7552
  this.calendarIconRipple();
@@ -13434,6 +13494,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13434
13494
  this.isHiddenMask = false;
13435
13495
  this.isComplete = false;
13436
13496
  this.isNavigate = false;
13497
+ this.navigated = false;
13437
13498
  this.formatRegex = /EEEEE|EEEE|EEE|EE|E|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|HH|H|hh|h|mm|m|fff|ff|f|aa|a|ss|s|zzzz|zzz|zz|z|'[^']*'|'[^']*'/g;
13438
13499
  this.isDeletion = false;
13439
13500
  this.isShortYear = false;
@@ -13553,6 +13614,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13553
13614
  this.parent.inputElement.setSelectionRange(start, end);
13554
13615
  };
13555
13616
  MaskedDateTime.prototype.maskKeydownHandler = function (args) {
13617
+ this.dayTypeCount = this.monthTypeCount = this.hourTypeCount = this.minuteTypeCount = this.secondTypeCount = 0;
13556
13618
  if (args.e.key === 'Delete') {
13557
13619
  this.isDeleteKey = true;
13558
13620
  return;
@@ -13586,6 +13648,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13586
13648
  this.validCharacterCheck();
13587
13649
  }
13588
13650
  };
13651
+ MaskedDateTime.prototype.isPersist = function () {
13652
+ var isPersist = this.parent.isFocused || this.navigated;
13653
+ return isPersist;
13654
+ };
13589
13655
  MaskedDateTime.prototype.differenceCheck = function () {
13590
13656
  var start = this.parent.inputElement.selectionStart;
13591
13657
  var inputValue = this.parent.inputElement.value;
@@ -13605,7 +13671,9 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13605
13671
  }
13606
13672
  switch (this.previousHiddenMask[start - 1]) {
13607
13673
  case 'd':
13608
- var date = (this.isDayPart && newDateValue.getDate().toString().length < 2 ? newDateValue.getDate() * 10 : 0) + parseInt(newVal[start - 1], 10);
13674
+ var date = (this.isDayPart && newDateValue.getDate().toString().length < 2 && !this.isPersist() ? newDateValue.getDate() * 10 : 0) + parseInt(newVal[start - 1], 10);
13675
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
13676
+ this.navigated = this.navigated ? false : this.navigated;
13609
13677
  this.isDateZero = (newVal[start - 1] == '0');
13610
13678
  if (isNaN(date)) {
13611
13679
  return;
@@ -13630,12 +13698,14 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13630
13698
  break;
13631
13699
  case 'M':
13632
13700
  var month = void 0;
13633
- if (newDateValue.getMonth().toString().length < 2) {
13701
+ if (newDateValue.getMonth().toString().length < 2 && !this.isPersist()) {
13634
13702
  month = (this.isMonthPart ? (newDateValue.getMonth() + 1) * 10 : 0) + parseInt(newVal[start - 1], 10);
13635
13703
  }
13636
13704
  else {
13637
13705
  month = parseInt(newVal[start - 1], 10);
13638
13706
  }
13707
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
13708
+ this.navigated = this.navigated ? false : this.navigated;
13639
13709
  this.isMonthZero = (newVal[start - 1] == '0');
13640
13710
  if (!isNaN(month)) {
13641
13711
  while (month > 12) {
@@ -13708,7 +13778,9 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13708
13778
  }
13709
13779
  break;
13710
13780
  case 'h':
13711
- this.hour = (this.isHourPart && (newDateValue.getHours() % 12 || 12).toString().length < 2 ? (newDateValue.getHours() % 12 || 12) * 10 : 0) + parseInt(newVal[start - 1], 10);
13781
+ this.hour = (this.isHourPart && (newDateValue.getHours() % 12 || 12).toString().length < 2 && !this.isPersist() ? (newDateValue.getHours() % 12 || 12) * 10 : 0) + parseInt(newVal[start - 1], 10);
13782
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
13783
+ this.navigated = this.navigated ? false : this.navigated;
13712
13784
  if (isNaN(this.hour)) {
13713
13785
  return;
13714
13786
  }
@@ -13721,7 +13793,9 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13721
13793
  this.hourTypeCount = this.hourTypeCount + 1;
13722
13794
  break;
13723
13795
  case 'H':
13724
- this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 ? newDateValue.getHours() * 10 : 0) + parseInt(newVal[start - 1], 10);
13796
+ this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 && !this.isPersist() ? newDateValue.getHours() * 10 : 0) + parseInt(newVal[start - 1], 10);
13797
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
13798
+ this.navigated = this.navigated ? false : this.navigated;
13725
13799
  if (isNaN(this.hour)) {
13726
13800
  return;
13727
13801
  }
@@ -13734,7 +13808,9 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13734
13808
  this.hourTypeCount = this.hourTypeCount + 1;
13735
13809
  break;
13736
13810
  case 'm':
13737
- var minutes = (this.isMinutePart && newDateValue.getMinutes().toString().length < 2 ? newDateValue.getMinutes() * 10 : 0) + parseInt(newVal[start - 1], 10);
13811
+ var minutes = (this.isMinutePart && newDateValue.getMinutes().toString().length < 2 && !this.isPersist() ? newDateValue.getMinutes() * 10 : 0) + parseInt(newVal[start - 1], 10);
13812
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
13813
+ this.navigated = this.navigated ? false : this.navigated;
13738
13814
  if (isNaN(minutes)) {
13739
13815
  return;
13740
13816
  }
@@ -13747,7 +13823,9 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13747
13823
  this.minuteTypeCount = this.minuteTypeCount + 1;
13748
13824
  break;
13749
13825
  case 's':
13750
- var seconds = (this.isSecondsPart && newDateValue.getSeconds().toString().length < 2 ? newDateValue.getSeconds() * 10 : 0) + parseInt(newVal[start - 1], 10);
13826
+ var seconds = (this.isSecondsPart && newDateValue.getSeconds().toString().length < 2 && !this.isPersist() ? newDateValue.getSeconds() * 10 : 0) + parseInt(newVal[start - 1], 10);
13827
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
13828
+ this.navigated = this.navigated ? false : this.navigated;
13751
13829
  if (isNaN(seconds)) {
13752
13830
  return;
13753
13831
  }
@@ -13801,6 +13879,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13801
13879
  case 'd':
13802
13880
  result = proxy.isDayPart ? proxy.maskDateValue.getDate().toString() : proxy.defaultConstant['day'].toString();
13803
13881
  result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
13882
+ if (proxy.dayTypeCount == 2) {
13883
+ proxy.isNavigate = true;
13884
+ proxy.dayTypeCount = 0;
13885
+ }
13804
13886
  break;
13805
13887
  case 'dd':
13806
13888
  result = proxy.isDayPart ? proxy.roundOff(proxy.maskDateValue.getDate(), 2) : proxy.defaultConstant['day'].toString();
@@ -13824,6 +13906,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13824
13906
  case 'M':
13825
13907
  result = proxy.isMonthPart ? (proxy.maskDateValue.getMonth() + 1).toString() : proxy.defaultConstant['month'].toString();
13826
13908
  result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
13909
+ if (proxy.monthTypeCount == 2) {
13910
+ proxy.isNavigate = true;
13911
+ proxy.monthTypeCount = 0;
13912
+ }
13827
13913
  break;
13828
13914
  case 'MM':
13829
13915
  result = proxy.isMonthPart ? proxy.roundOff(proxy.maskDateValue.getMonth() + 1, 2) : proxy.defaultConstant['month'].toString();
@@ -13853,6 +13939,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13853
13939
  break;
13854
13940
  case 'h':
13855
13941
  result = proxy.isHourPart ? (proxy.maskDateValue.getHours() % 12 || 12).toString() : proxy.defaultConstant['hour'].toString();
13942
+ if (proxy.hourTypeCount == 2) {
13943
+ proxy.isNavigate = true;
13944
+ proxy.hourTypeCount = 0;
13945
+ }
13856
13946
  break;
13857
13947
  case 'hh':
13858
13948
  result = proxy.isHourPart ? proxy.roundOff(proxy.maskDateValue.getHours() % 12 || 12, 2) : proxy.defaultConstant['hour'].toString();
@@ -13863,6 +13953,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13863
13953
  break;
13864
13954
  case 'H':
13865
13955
  result = proxy.isHourPart ? proxy.maskDateValue.getHours().toString() : proxy.defaultConstant['hour'].toString();
13956
+ if (proxy.hourTypeCount == 2) {
13957
+ proxy.isNavigate = true;
13958
+ proxy.hourTypeCount = 0;
13959
+ }
13866
13960
  break;
13867
13961
  case 'HH':
13868
13962
  result = proxy.isHourPart ? proxy.roundOff(proxy.maskDateValue.getHours(), 2) : proxy.defaultConstant['hour'].toString();
@@ -13873,6 +13967,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13873
13967
  break;
13874
13968
  case 'm':
13875
13969
  result = proxy.isMinutePart ? proxy.maskDateValue.getMinutes().toString() : proxy.defaultConstant['minute'].toString();
13970
+ if (proxy.minuteTypeCount == 2) {
13971
+ proxy.isNavigate = true;
13972
+ proxy.minuteTypeCount = 0;
13973
+ }
13876
13974
  break;
13877
13975
  case 'mm':
13878
13976
  result = proxy.isMinutePart ? proxy.roundOff(proxy.maskDateValue.getMinutes(), 2) : proxy.defaultConstant['minute'].toString();
@@ -13883,6 +13981,10 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13883
13981
  break;
13884
13982
  case 's':
13885
13983
  result = proxy.isSecondsPart ? proxy.maskDateValue.getSeconds().toString() : proxy.defaultConstant['second'].toString();
13984
+ if (proxy.secondTypeCount == 2) {
13985
+ proxy.isNavigate = true;
13986
+ proxy.secondTypeCount = 0;
13987
+ }
13886
13988
  break;
13887
13989
  case 'ss':
13888
13990
  result = proxy.isSecondsPart ? proxy.roundOff(proxy.maskDateValue.getSeconds(), 2) : proxy.defaultConstant['second'].toString();
@@ -13961,6 +14063,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13961
14063
  var start = this.parent.inputElement.selectionStart;
13962
14064
  var end = this.parent.inputElement.selectionEnd;
13963
14065
  var formatIndex = isbackward ? start - 1 : end + 1;
14066
+ this.navigated = true;
13964
14067
  while (formatIndex < this.hiddenMask.length && formatIndex >= 0) {
13965
14068
  if (this.validCharacters.indexOf(this.hiddenMask[formatIndex]) >= 0) {
13966
14069
  this.setSelection(this.hiddenMask[formatIndex]);