@syncfusion/ej2-calendars 20.4.52 → 21.1.35

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 (184) hide show
  1. package/CHANGELOG.md +0 -12
  2. package/README.md +94 -83
  3. package/dist/ej2-calendars.min.js +2 -2
  4. package/dist/ej2-calendars.umd.min.js +2 -2
  5. package/dist/ej2-calendars.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-calendars.es2015.js +436 -376
  7. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  8. package/dist/es6/ej2-calendars.es5.js +392 -331
  9. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  10. package/dist/global/ej2-calendars.min.js +2 -2
  11. package/dist/global/ej2-calendars.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +11 -11
  14. package/src/calendar/calendar-model.d.ts +1 -1
  15. package/src/calendar/calendar.js +13 -6
  16. package/src/calendar/islamic.js +39 -29
  17. package/src/datepicker/datepicker-model.d.ts +3 -3
  18. package/src/datepicker/datepicker.js +61 -56
  19. package/src/daterangepicker/daterangepicker.js +11 -5
  20. package/src/datetimepicker/datetimepicker-model.d.ts +3 -3
  21. package/src/datetimepicker/datetimepicker.d.ts +4 -4
  22. package/src/datetimepicker/datetimepicker.js +15 -17
  23. package/src/maskbase/masked-date-time.js +212 -181
  24. package/src/timepicker/timepicker-model.d.ts +7 -7
  25. package/src/timepicker/timepicker.d.ts +9 -9
  26. package/src/timepicker/timepicker.js +41 -38
  27. package/styles/bootstrap-dark.css +13 -12
  28. package/styles/bootstrap.css +13 -7
  29. package/styles/bootstrap4.css +7 -5
  30. package/styles/bootstrap5-dark.css +21 -19
  31. package/styles/bootstrap5.css +19 -17
  32. package/styles/calendar/_bootstrap-dark-definition.scss +1 -1
  33. package/styles/calendar/_bootstrap5-definition.scss +21 -21
  34. package/styles/calendar/_fabric-dark-definition.scss +5 -3
  35. package/styles/calendar/_fabric-definition.scss +2 -0
  36. package/styles/calendar/_fluent-definition.scss +36 -36
  37. package/styles/calendar/_highcontrast-definition.scss +3 -1
  38. package/styles/calendar/_highcontrast-light-definition.scss +2 -0
  39. package/styles/calendar/_layout.scss +53 -6
  40. package/styles/calendar/_material-dark-definition.scss +4 -2
  41. package/styles/calendar/_material-definition.scss +2 -0
  42. package/styles/calendar/_tailwind-definition.scss +13 -13
  43. package/styles/calendar/_theme.scss +74 -13
  44. package/styles/calendar/bootstrap-dark.css +4 -3
  45. package/styles/calendar/bootstrap.css +3 -2
  46. package/styles/calendar/bootstrap4.css +3 -2
  47. package/styles/calendar/bootstrap5-dark.css +14 -13
  48. package/styles/calendar/bootstrap5.css +13 -12
  49. package/styles/calendar/fabric-dark.css +15 -5
  50. package/styles/calendar/fabric.css +12 -2
  51. package/styles/calendar/fluent-dark.css +51 -28
  52. package/styles/calendar/fluent.css +51 -28
  53. package/styles/calendar/highcontrast-light.css +3 -2
  54. package/styles/calendar/highcontrast.css +14 -4
  55. package/styles/calendar/icons/_material3.scss +3 -3
  56. package/styles/calendar/material-dark.css +14 -4
  57. package/styles/calendar/material.css +12 -2
  58. package/styles/calendar/tailwind-dark.css +11 -10
  59. package/styles/calendar/tailwind.css +11 -10
  60. package/styles/datepicker/_bootstrap-dark-definition.scss +1 -1
  61. package/styles/datepicker/_bootstrap-definition.scss +1 -1
  62. package/styles/datepicker/_bootstrap5-definition.scss +8 -8
  63. package/styles/datepicker/_fabric-dark-definition.scss +1 -1
  64. package/styles/datepicker/_fabric-definition.scss +1 -1
  65. package/styles/datepicker/_fluent-definition.scss +8 -8
  66. package/styles/datepicker/_fusionnew-definition.scss +2 -2
  67. package/styles/datepicker/_highcontrast-definition.scss +1 -1
  68. package/styles/datepicker/_highcontrast-light-definition.scss +1 -1
  69. package/styles/datepicker/_layout.scss +16 -6
  70. package/styles/datepicker/_material-dark-definition.scss +1 -1
  71. package/styles/datepicker/_material-definition.scss +1 -1
  72. package/styles/datepicker/_tailwind-definition.scss +8 -8
  73. package/styles/datepicker/_theme.scss +11 -1
  74. package/styles/datepicker/bootstrap-dark.css +1 -1
  75. package/styles/datepicker/bootstrap.css +1 -1
  76. package/styles/datepicker/bootstrap5-dark.css +2 -2
  77. package/styles/datepicker/bootstrap5.css +2 -2
  78. package/styles/datepicker/fabric-dark.css +1 -1
  79. package/styles/datepicker/fabric.css +1 -1
  80. package/styles/datepicker/fluent-dark.css +2 -2
  81. package/styles/datepicker/fluent.css +2 -2
  82. package/styles/datepicker/highcontrast-light.css +1 -1
  83. package/styles/datepicker/highcontrast.css +1 -1
  84. package/styles/datepicker/icons/_material3.scss +3 -3
  85. package/styles/datepicker/material-dark.css +1 -1
  86. package/styles/datepicker/material.css +1 -1
  87. package/styles/datepicker/tailwind-dark.css +2 -2
  88. package/styles/datepicker/tailwind.css +2 -2
  89. package/styles/daterangepicker/_bootstrap-dark-definition.scss +6 -6
  90. package/styles/daterangepicker/_bootstrap-definition.scss +2 -2
  91. package/styles/daterangepicker/_bootstrap4-definition.scss +2 -2
  92. package/styles/daterangepicker/_bootstrap5-definition.scss +21 -21
  93. package/styles/daterangepicker/_fabric-dark-definition.scss +2 -2
  94. package/styles/daterangepicker/_fabric-definition.scss +2 -2
  95. package/styles/daterangepicker/_fluent-definition.scss +27 -27
  96. package/styles/daterangepicker/_highcontrast-definition.scss +2 -2
  97. package/styles/daterangepicker/_highcontrast-light-definition.scss +2 -2
  98. package/styles/daterangepicker/_layout.scss +50 -3
  99. package/styles/daterangepicker/_material-dark-definition.scss +2 -2
  100. package/styles/daterangepicker/_material-definition.scss +2 -2
  101. package/styles/daterangepicker/_tailwind-definition.scss +19 -19
  102. package/styles/daterangepicker/_theme.scss +93 -15
  103. package/styles/daterangepicker/bootstrap-dark.css +6 -6
  104. package/styles/daterangepicker/bootstrap.css +7 -2
  105. package/styles/daterangepicker/bootstrap4.css +3 -2
  106. package/styles/daterangepicker/bootstrap5-dark.css +5 -4
  107. package/styles/daterangepicker/bootstrap5.css +4 -3
  108. package/styles/daterangepicker/fabric-dark.css +2 -2
  109. package/styles/daterangepicker/fabric.css +2 -2
  110. package/styles/daterangepicker/fluent-dark.css +33 -9
  111. package/styles/daterangepicker/fluent.css +33 -9
  112. package/styles/daterangepicker/highcontrast-light.css +2 -2
  113. package/styles/daterangepicker/highcontrast.css +2 -2
  114. package/styles/daterangepicker/icons/_material3.scss +33 -6
  115. package/styles/daterangepicker/material-dark.css +2 -2
  116. package/styles/daterangepicker/material.css +9 -3
  117. package/styles/daterangepicker/tailwind-dark.css +2 -2
  118. package/styles/daterangepicker/tailwind.css +2 -2
  119. package/styles/datetimepicker/_bootstrap-dark-definition.scss +1 -1
  120. package/styles/datetimepicker/_bootstrap-definition.scss +1 -1
  121. package/styles/datetimepicker/_bootstrap4-definition.scss +1 -1
  122. package/styles/datetimepicker/_bootstrap5-definition.scss +1 -1
  123. package/styles/datetimepicker/_fabric-dark-definition.scss +1 -1
  124. package/styles/datetimepicker/_fabric-definition.scss +1 -1
  125. package/styles/datetimepicker/_fluent-definition.scss +1 -1
  126. package/styles/datetimepicker/_highcontrast-definition.scss +1 -1
  127. package/styles/datetimepicker/_highcontrast-light-definition.scss +1 -1
  128. package/styles/datetimepicker/_layout.scss +8 -3
  129. package/styles/datetimepicker/_material-dark-definition.scss +1 -1
  130. package/styles/datetimepicker/_material-definition.scss +1 -1
  131. package/styles/datetimepicker/_tailwind-definition.scss +1 -1
  132. package/styles/datetimepicker/_theme.scss +24 -4
  133. package/styles/datetimepicker/bootstrap-dark.css +1 -1
  134. package/styles/datetimepicker/bootstrap.css +1 -1
  135. package/styles/datetimepicker/bootstrap4.css +1 -1
  136. package/styles/datetimepicker/fabric-dark.css +1 -1
  137. package/styles/datetimepicker/fabric.css +1 -1
  138. package/styles/datetimepicker/highcontrast-light.css +1 -1
  139. package/styles/datetimepicker/highcontrast.css +1 -1
  140. package/styles/datetimepicker/icons/_material3.scss +1 -1
  141. package/styles/datetimepicker/material-dark.css +1 -1
  142. package/styles/datetimepicker/material.css +1 -1
  143. package/styles/fabric-dark.css +20 -10
  144. package/styles/fabric.css +20 -8
  145. package/styles/fluent-dark.css +86 -39
  146. package/styles/fluent.css +86 -39
  147. package/styles/highcontrast-light.css +8 -7
  148. package/styles/highcontrast.css +19 -9
  149. package/styles/material-dark.css +19 -9
  150. package/styles/material.css +24 -8
  151. package/styles/tailwind-dark.css +15 -14
  152. package/styles/tailwind.css +15 -14
  153. package/styles/timepicker/_bootstrap-dark-definition.scss +2 -1
  154. package/styles/timepicker/_bootstrap-definition.scss +2 -1
  155. package/styles/timepicker/_bootstrap4-definition.scss +1 -0
  156. package/styles/timepicker/_bootstrap5-definition.scss +6 -5
  157. package/styles/timepicker/_fabric-dark-definition.scss +2 -1
  158. package/styles/timepicker/_fabric-definition.scss +2 -1
  159. package/styles/timepicker/_fluent-definition.scss +6 -5
  160. package/styles/timepicker/_fusionnew-definition.scss +1 -0
  161. package/styles/timepicker/_highcontrast-definition.scss +2 -1
  162. package/styles/timepicker/_highcontrast-light-definition.scss +2 -1
  163. package/styles/timepicker/_layout.scss +11 -3
  164. package/styles/timepicker/_material-dark-definition.scss +2 -1
  165. package/styles/timepicker/_material-definition.scss +2 -1
  166. package/styles/timepicker/_tailwind-definition.scss +6 -5
  167. package/styles/timepicker/_theme.scss +36 -6
  168. package/styles/timepicker/bootstrap-dark.css +1 -1
  169. package/styles/timepicker/bootstrap.css +1 -1
  170. package/styles/timepicker/fabric-dark.css +1 -1
  171. package/styles/timepicker/fabric.css +1 -1
  172. package/styles/timepicker/highcontrast-light.css +1 -1
  173. package/styles/timepicker/highcontrast.css +1 -1
  174. package/styles/timepicker/icons/_material3.scss +1 -1
  175. package/styles/timepicker/material-dark.css +1 -1
  176. package/styles/timepicker/material.css +1 -1
  177. package/GitLeaksReport.json +0 -1
  178. package/gitleaks-ci/gitleaks +0 -0
  179. package/gitleaks-ci.tar.gz +0 -0
  180. package/styles/calendar/_material3-definition.scss +0 -250
  181. package/styles/datepicker/_material3-definition.scss +0 -46
  182. package/styles/daterangepicker/_material3-definition.scss +0 -230
  183. package/styles/datetimepicker/_material3-definition.scss +0 -60
  184. package/styles/timepicker/_material3-definition.scss +0 -57
@@ -17,7 +17,7 @@ var MaskedDateTime = /** @class */ (function () {
17
17
  hour: 'hour',
18
18
  minute: 'minute',
19
19
  second: 'second',
20
- dayOfTheWeek: 'day of the week',
20
+ dayOfTheWeek: 'day of the week'
21
21
  };
22
22
  this.hiddenMask = '';
23
23
  this.validCharacters = 'dMyhmHfasz';
@@ -80,23 +80,31 @@ var MaskedDateTime = /** @class */ (function () {
80
80
  this.parent.off('keyDownHandler', this.maskKeydownHandler);
81
81
  this.parent.off('clearHandler', this.clearHandler);
82
82
  };
83
- MaskedDateTime.prototype.createMask = function (dateformat) {
83
+ MaskedDateTime.prototype.createMask = function (navigated) {
84
+ if (navigated === void 0) { navigated = false; }
84
85
  this.isDayPart = this.isMonthPart = this.isYearPart = this.isHourPart = this.isMinutePart = this.isSecondsPart = false;
85
86
  this.dateformat = this.getCulturedFormat();
86
- if (this.parent.maskPlaceholder.day)
87
+ if (this.parent.maskPlaceholder.day) {
87
88
  this.defaultConstant['day'] = this.parent.maskPlaceholder.day;
88
- if (this.parent.maskPlaceholder.month)
89
+ }
90
+ if (this.parent.maskPlaceholder.month) {
89
91
  this.defaultConstant['month'] = this.parent.maskPlaceholder.month;
90
- if (this.parent.maskPlaceholder.year)
92
+ }
93
+ if (this.parent.maskPlaceholder.year) {
91
94
  this.defaultConstant['year'] = this.parent.maskPlaceholder.year;
92
- if (this.parent.maskPlaceholder.hour)
95
+ }
96
+ if (this.parent.maskPlaceholder.hour) {
93
97
  this.defaultConstant['hour'] = this.parent.maskPlaceholder.hour;
94
- if (this.parent.maskPlaceholder.minute)
98
+ }
99
+ if (this.parent.maskPlaceholder.minute) {
95
100
  this.defaultConstant['minute'] = this.parent.maskPlaceholder.minute;
96
- if (this.parent.maskPlaceholder.second)
101
+ }
102
+ if (this.parent.maskPlaceholder.second) {
97
103
  this.defaultConstant['second'] = this.parent.maskPlaceholder.second;
98
- if (this.parent.maskPlaceholder.dayOfTheWeek)
104
+ }
105
+ if (this.parent.maskPlaceholder.dayOfTheWeek) {
99
106
  this.defaultConstant['dayOfTheWeek'] = this.parent.maskPlaceholder.dayOfTheWeek.toString();
107
+ }
100
108
  this.getCUltureMaskFormat();
101
109
  var inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
102
110
  this.isHiddenMask = true;
@@ -106,6 +114,7 @@ var MaskedDateTime = /** @class */ (function () {
106
114
  this.mask = this.previousValue = inputValue;
107
115
  this.parent.maskedDateValue = this.mask;
108
116
  if (this.parent.value) {
117
+ this.navigated = navigated;
109
118
  this.setDynamicValue();
110
119
  }
111
120
  };
@@ -113,7 +122,8 @@ var MaskedDateTime = /** @class */ (function () {
113
122
  this.l10n = new L10n(this.parent.moduleName, this.defaultConstant, this.parent.locale);
114
123
  this.objectString = Object.keys(this.defaultConstant);
115
124
  for (var i = 0; i < this.objectString.length; i++) {
116
- this.defaultConstant[this.objectString[i].toString()] = this.l10n.getConstant(this.objectString[i].toString());
125
+ this.defaultConstant[this.objectString[i].toString()] =
126
+ this.l10n.getConstant(this.objectString[i].toString());
117
127
  }
118
128
  };
119
129
  MaskedDateTime.prototype.validCharacterCheck = function () {
@@ -133,8 +143,7 @@ var MaskedDateTime = /** @class */ (function () {
133
143
  this.maskDateValue = new Date(+this.parent.value);
134
144
  this.isDayPart = this.isMonthPart = this.isYearPart = this.isHourPart = this.isMinutePart = this.isSecondsPart = true;
135
145
  this.updateValue();
136
- // this.parent.inputElement.selectionStart = start;
137
- // this.validCharacterCheck();
146
+ this.validCharacterCheck();
138
147
  };
139
148
  MaskedDateTime.prototype.setSelection = function (validChar) {
140
149
  var start = -1;
@@ -158,12 +167,13 @@ var MaskedDateTime = /** @class */ (function () {
158
167
  this.isDeleteKey = true;
159
168
  return;
160
169
  }
161
- if ((!args.e.altKey && !args.e.ctrlKey) && (args.e.key === ARROWLEFT || args.e.key === ARROWRIGHT || args.e.key === SHIFTTAB || args.e.key === TAB || args.e.action === SHIFTTAB ||
170
+ if ((!args.e.altKey && !args.e.ctrlKey) && (args.e.key === ARROWLEFT || args.e.key === ARROWRIGHT
171
+ || args.e.key === SHIFTTAB || args.e.key === TAB || args.e.action === SHIFTTAB ||
162
172
  args.e.key === END || args.e.key === HOME)) {
163
173
  var start = this.parent.inputElement.selectionStart;
164
174
  var end = this.parent.inputElement.selectionEnd;
165
175
  var length_1 = this.parent.inputElement.value.length;
166
- if ((start == 0 && end == length_1) && (args.e.key === TAB || args.e.action === SHIFTTAB)) {
176
+ if ((start === 0 && end === length_1) && (args.e.key === TAB || args.e.action === SHIFTTAB)) {
167
177
  var index = args.e.action === SHIFTTAB ? end : 0;
168
178
  this.parent.inputElement.selectionStart = this.parent.inputElement.selectionEnd = index;
169
179
  }
@@ -208,7 +218,8 @@ var MaskedDateTime = /** @class */ (function () {
208
218
  var newVal = inputValue.substring(0, start);
209
219
  var newDateValue = new Date(+this.maskDateValue);
210
220
  var maxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
211
- if (previousVal.indexOf(newVal) === 0 && (newVal.length === 0 || this.previousHiddenMask[newVal.length - 1] !== this.previousHiddenMask[newVal.length])) {
221
+ if (previousVal.indexOf(newVal) === 0 && (newVal.length === 0 ||
222
+ this.previousHiddenMask[newVal.length - 1] !== this.previousHiddenMask[newVal.length])) {
212
223
  for (var i = newVal.length; i < previousVal.length; i++) {
213
224
  if (this.previousHiddenMask[i] !== '' && this.validCharacters.indexOf(this.previousHiddenMask[i]) >= 0) {
214
225
  this.isDeletion = this.handleDeletion(this.previousHiddenMask[i], false);
@@ -220,114 +231,123 @@ var MaskedDateTime = /** @class */ (function () {
220
231
  }
221
232
  switch (this.previousHiddenMask[start - 1]) {
222
233
  case 'd':
223
- var date = (this.isDayPart && newDateValue.getDate().toString().length < 2 && !this.isPersist() ? newDateValue.getDate() * 10 : 0) + parseInt(newVal[start - 1], 10);
224
- this.isDateZero = (newVal[start - 1] == '0');
225
- this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
226
- this.navigated = this.navigated ? false : this.navigated;
227
- if (isNaN(date)) {
228
- return;
229
- }
230
- for (var i = 0; date > maxDate; i++) {
231
- date = parseInt(date.toString().slice(1), 10);
232
- }
233
- if (date >= 1) {
234
- newDateValue.setDate(date);
235
- this.isNavigate = date.toString().length === 2;
236
- this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
237
- if (newDateValue.getMonth() !== this.maskDateValue.getMonth()) {
234
+ {
235
+ var date = (this.isDayPart && newDateValue.getDate().toString().length < 2 &&
236
+ !this.isPersist() ? newDateValue.getDate() * 10 : 0) + parseInt(newVal[start - 1], 10);
237
+ this.isDateZero = (newVal[start - 1] === '0');
238
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
239
+ this.navigated = this.navigated ? false : this.navigated;
240
+ if (isNaN(date)) {
238
241
  return;
239
242
  }
240
- this.isDayPart = true;
241
- this.dayTypeCount = this.dayTypeCount + 1;
242
- }
243
- else {
244
- this.isDayPart = false;
245
- this.dayTypeCount = this.isDateZero ? this.dayTypeCount + 1 : this.dayTypeCount;
243
+ for (var i = 0; date > maxDate; i++) {
244
+ date = parseInt(date.toString().slice(1), 10);
245
+ }
246
+ if (date >= 1) {
247
+ newDateValue.setDate(date);
248
+ this.isNavigate = date.toString().length === 2;
249
+ this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
250
+ if (newDateValue.getMonth() !== this.maskDateValue.getMonth()) {
251
+ return;
252
+ }
253
+ this.isDayPart = true;
254
+ this.dayTypeCount = this.dayTypeCount + 1;
255
+ }
256
+ else {
257
+ this.isDayPart = false;
258
+ this.dayTypeCount = this.isDateZero ? this.dayTypeCount + 1 : this.dayTypeCount;
259
+ }
260
+ break;
246
261
  }
247
- break;
248
262
  case 'M':
249
- var month = void 0;
250
- if (newDateValue.getMonth().toString().length < 2 && !this.isPersist()) {
251
- month = (this.isMonthPart ? (newDateValue.getMonth() + 1) * 10 : 0) + parseInt(newVal[start - 1], 10);
252
- }
253
- else {
254
- month = parseInt(newVal[start - 1], 10);
255
- }
256
- this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
257
- this.navigated = this.navigated ? false : this.navigated;
258
- this.isMonthZero = (newVal[start - 1] == '0');
259
- if (!isNaN(month)) {
260
- while (month > 12) {
261
- month = parseInt(month.toString().slice(1), 10);
262
- }
263
- if (month >= 1) {
264
- newDateValue.setMonth(month - 1);
265
- this.isNavigate = month.toString().length === 2;
266
- if (newDateValue.getMonth() !== month - 1) {
267
- newDateValue.setDate(1);
268
- newDateValue.setMonth(month - 1);
263
+ {
264
+ var month = void 0;
265
+ if (newDateValue.getMonth().toString().length < 2 && !this.isPersist()) {
266
+ month = (this.isMonthPart ? (newDateValue.getMonth() + 1) * 10 : 0) + parseInt(newVal[start - 1], 10);
267
+ }
268
+ else {
269
+ month = parseInt(newVal[start - 1], 10);
270
+ }
271
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
272
+ this.navigated = this.navigated ? false : this.navigated;
273
+ this.isMonthZero = (newVal[start - 1] === '0');
274
+ if (!isNaN(month)) {
275
+ while (month > 12) {
276
+ month = parseInt(month.toString().slice(1), 10);
269
277
  }
270
- if (this.isDayPart) {
271
- var previousMaxDate = new Date(this.previousDate.getFullYear(), this.previousDate.getMonth() + 1, 0).getDate();
272
- var currentMaxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
273
- if (this.previousDate.getDate() == previousMaxDate && currentMaxDate <= previousMaxDate) {
274
- newDateValue.setDate(currentMaxDate);
278
+ if (month >= 1) {
279
+ newDateValue.setMonth(month - 1);
280
+ this.isNavigate = month.toString().length === 2;
281
+ if (newDateValue.getMonth() !== month - 1) {
282
+ newDateValue.setDate(1);
283
+ newDateValue.setMonth(month - 1);
284
+ }
285
+ if (this.isDayPart) {
286
+ var previousMaxDate = new Date(this.previousDate.getFullYear(), this.previousDate.getMonth() + 1, 0).getDate();
287
+ var currentMaxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
288
+ if (this.previousDate.getDate() === previousMaxDate && currentMaxDate <= previousMaxDate) {
289
+ newDateValue.setDate(currentMaxDate);
290
+ }
275
291
  }
292
+ this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
293
+ this.isMonthPart = true;
294
+ this.monthTypeCount = this.monthTypeCount + 1;
295
+ }
296
+ else {
297
+ newDateValue.setMonth(0);
298
+ this.isMonthPart = false;
299
+ this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
276
300
  }
277
- this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
278
- this.isMonthPart = true;
279
- this.monthTypeCount = this.monthTypeCount + 1;
280
301
  }
281
302
  else {
282
- newDateValue.setMonth(0);
283
- this.isMonthPart = false;
284
- this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
285
- }
286
- }
287
- else { // let monthString: string[] = <string[]>(getValue('months[stand-alone].wide', getDefaultDateObject()));
288
- var monthString = (this.getCulturedValue('months[stand-alone].wide'));
289
- var monthValue = Object.keys(monthString);
290
- this.monthCharacter += newVal[start - 1].toLowerCase();
291
- while (this.monthCharacter.length > 0) {
292
- var i = 1;
293
- for (var _i = 0, monthValue_1 = monthValue; _i < monthValue_1.length; _i++) {
294
- var months = monthValue_1[_i];
295
- if (monthString[i].toLowerCase().indexOf(this.monthCharacter) === 0) {
296
- newDateValue.setMonth(i - 1);
297
- this.isMonthPart = true;
298
- this.maskDateValue = newDateValue;
299
- return;
303
+ var monthString = (this.getCulturedValue('months[stand-alone].wide'));
304
+ var monthValue = Object.keys(monthString);
305
+ this.monthCharacter += newVal[start - 1].toLowerCase();
306
+ while (this.monthCharacter.length > 0) {
307
+ var i = 1;
308
+ for (var _i = 0, monthValue_1 = monthValue; _i < monthValue_1.length; _i++) {
309
+ var months = monthValue_1[_i];
310
+ if (monthString[i].toLowerCase().indexOf(this.monthCharacter) === 0) {
311
+ newDateValue.setMonth(i - 1);
312
+ this.isMonthPart = true;
313
+ this.maskDateValue = newDateValue;
314
+ return;
315
+ }
316
+ i++;
300
317
  }
301
- i++;
318
+ this.monthCharacter = this.monthCharacter.substring(1, this.monthCharacter.length);
302
319
  }
303
- this.monthCharacter = this.monthCharacter.substring(1, this.monthCharacter.length);
304
320
  }
321
+ break;
305
322
  }
306
- break;
307
323
  case 'y':
308
- var year = (this.isYearPart && (newDateValue.getFullYear().toString().length < 4 && !this.isShortYear) ? newDateValue.getFullYear() * 10 : 0) + parseInt(newVal[start - 1], 10);
309
- this.isShortYear = false;
310
- this.isYearZero = (newVal[start - 1] == '0');
311
- if (isNaN(year)) {
312
- return;
313
- }
314
- while (year > 9999) {
315
- year = parseInt(year.toString().slice(1), 10);
316
- }
317
- if (year < 1) {
318
- this.isYearPart = false;
319
- }
320
- else {
321
- newDateValue.setFullYear(year);
322
- if (year.toString().length === 4) {
323
- this.isNavigate = true;
324
+ {
325
+ var year = (this.isYearPart && (newDateValue.getFullYear().toString().length < 4
326
+ && !this.isShortYear) ? newDateValue.getFullYear() * 10 : 0) + parseInt(newVal[start - 1], 10);
327
+ this.isShortYear = false;
328
+ this.isYearZero = (newVal[start - 1] === '0');
329
+ if (isNaN(year)) {
330
+ return;
324
331
  }
325
- this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
326
- this.isYearPart = true;
332
+ while (year > 9999) {
333
+ year = parseInt(year.toString().slice(1), 10);
334
+ }
335
+ if (year < 1) {
336
+ this.isYearPart = false;
337
+ }
338
+ else {
339
+ newDateValue.setFullYear(year);
340
+ if (year.toString().length === 4) {
341
+ this.isNavigate = true;
342
+ }
343
+ this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
344
+ this.isYearPart = true;
345
+ }
346
+ break;
327
347
  }
328
- break;
329
348
  case 'h':
330
- this.hour = (this.isHourPart && (newDateValue.getHours() % 12 || 12).toString().length < 2 && !this.isPersist() ? (newDateValue.getHours() % 12 || 12) * 10 : 0) + parseInt(newVal[start - 1], 10);
349
+ this.hour = (this.isHourPart && (newDateValue.getHours() % 12 || 12).toString().length < 2
350
+ && !this.isPersist() ? (newDateValue.getHours() % 12 || 12) * 10 : 0) + parseInt(newVal[start - 1], 10);
331
351
  this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
332
352
  this.navigated = this.navigated ? false : this.navigated;
333
353
  if (isNaN(this.hour)) {
@@ -342,7 +362,8 @@ var MaskedDateTime = /** @class */ (function () {
342
362
  this.hourTypeCount = this.hourTypeCount + 1;
343
363
  break;
344
364
  case 'H':
345
- this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 && !this.isPersist() ? newDateValue.getHours() * 10 : 0) + parseInt(newVal[start - 1], 10);
365
+ this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 &&
366
+ !this.isPersist() ? newDateValue.getHours() * 10 : 0) + parseInt(newVal[start - 1], 10);
346
367
  this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
347
368
  this.navigated = this.navigated ? false : this.navigated;
348
369
  if (isNaN(this.hour)) {
@@ -357,68 +378,81 @@ var MaskedDateTime = /** @class */ (function () {
357
378
  this.hourTypeCount = this.hourTypeCount + 1;
358
379
  break;
359
380
  case 'm':
360
- var minutes = (this.isMinutePart && newDateValue.getMinutes().toString().length < 2 && !this.isPersist() ? newDateValue.getMinutes() * 10 : 0) + parseInt(newVal[start - 1], 10);
361
- this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
362
- this.navigated = this.navigated ? false : this.navigated;
363
- if (isNaN(minutes)) {
364
- return;
365
- }
366
- for (var i = 0; minutes > 59; i++) {
367
- minutes = parseInt(minutes.toString().slice(1), 10);
381
+ {
382
+ var minutes = (this.isMinutePart && newDateValue.getMinutes().toString().length < 2
383
+ && !this.isPersist() ? newDateValue.getMinutes() * 10 : 0) + parseInt(newVal[start - 1], 10);
384
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
385
+ this.navigated = this.navigated ? false : this.navigated;
386
+ if (isNaN(minutes)) {
387
+ return;
388
+ }
389
+ for (var i = 0; minutes > 59; i++) {
390
+ minutes = parseInt(minutes.toString().slice(1), 10);
391
+ }
392
+ newDateValue.setMinutes(minutes);
393
+ this.isNavigate = minutes.toString().length === 2;
394
+ this.isMinutePart = true;
395
+ this.minuteTypeCount = this.minuteTypeCount + 1;
396
+ break;
368
397
  }
369
- newDateValue.setMinutes(minutes);
370
- this.isNavigate = minutes.toString().length === 2;
371
- this.isMinutePart = true;
372
- this.minuteTypeCount = this.minuteTypeCount + 1;
373
- break;
374
398
  case 's':
375
- var seconds = (this.isSecondsPart && newDateValue.getSeconds().toString().length < 2 && !this.isPersist() ? newDateValue.getSeconds() * 10 : 0) + parseInt(newVal[start - 1], 10);
376
- this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
377
- this.navigated = this.navigated ? false : this.navigated;
378
- if (isNaN(seconds)) {
379
- return;
380
- }
381
- for (var i = 0; seconds > 59; i++) {
382
- seconds = parseInt(seconds.toString().slice(1), 10);
399
+ {
400
+ var seconds = (this.isSecondsPart && newDateValue.getSeconds().toString().length < 2 &&
401
+ !this.isPersist() ? newDateValue.getSeconds() * 10 : 0) + parseInt(newVal[start - 1], 10);
402
+ this.parent.isFocused = this.parent.isFocused ? false : this.parent.isFocused;
403
+ this.navigated = this.navigated ? false : this.navigated;
404
+ if (isNaN(seconds)) {
405
+ return;
406
+ }
407
+ for (var i = 0; seconds > 59; i++) {
408
+ seconds = parseInt(seconds.toString().slice(1), 10);
409
+ }
410
+ newDateValue.setSeconds(seconds);
411
+ this.isNavigate = seconds.toString().length === 2;
412
+ this.isSecondsPart = true;
413
+ this.secondTypeCount = this.secondTypeCount + 1;
414
+ break;
383
415
  }
384
- newDateValue.setSeconds(seconds);
385
- this.isNavigate = seconds.toString().length === 2;
386
- this.isSecondsPart = true;
387
- this.secondTypeCount = this.secondTypeCount + 1;
388
- break;
389
416
  case 'a':
390
- this.periodCharacter += newVal[start - 1].toLowerCase();
391
- // let periodString: string[] = <string[]>(getValue('dayPeriods.format.wide', getDefaultDateObject()));;
392
- var periodString = (this.getCulturedValue('dayPeriods.format.wide'));
393
- var periodkeys = Object.keys(periodString);
394
- //periodString[periodkeys[0]] : periodString[periodkeys[1]] : periodString[periodkeys[0]];
395
- for (var i = 0; this.periodCharacter.length > 0; i++) {
396
- if ((periodString[periodkeys[0]].toLowerCase().indexOf(this.periodCharacter) === 0 && newDateValue.getHours() >= 12) || (periodString[periodkeys[1]].toLowerCase().indexOf(this.periodCharacter) === 0 && newDateValue.getHours() < 12)) {
397
- newDateValue.setHours((newDateValue.getHours() + 12) % 24);
398
- this.maskDateValue = newDateValue;
399
- }
400
- this.periodCharacter = this.periodCharacter.substring(1, this.periodCharacter.length);
401
- // Object.values()
417
+ {
418
+ this.periodCharacter += newVal[start - 1].toLowerCase();
419
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
420
+ var periodString = (this.getCulturedValue('dayPeriods.format.wide'));
421
+ var periodkeys = Object.keys(periodString);
422
+ for (var i = 0; this.periodCharacter.length > 0; i++) {
423
+ if ((periodString[periodkeys[0]].toLowerCase().indexOf(this.periodCharacter) === 0
424
+ && newDateValue.getHours() >= 12) || (periodString[periodkeys[1]].toLowerCase().
425
+ indexOf(this.periodCharacter) === 0 && newDateValue.getHours() < 12)) {
426
+ newDateValue.setHours((newDateValue.getHours() + 12) % 24);
427
+ this.maskDateValue = newDateValue;
428
+ }
429
+ this.periodCharacter = this.periodCharacter.substring(1, this.periodCharacter.length);
430
+ }
431
+ break;
402
432
  }
403
- break;
404
433
  default:
405
434
  break;
406
435
  }
407
436
  this.maskDateValue = newDateValue;
408
437
  };
438
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
409
439
  MaskedDateTime.prototype.formatCheck = function () {
440
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
410
441
  var proxy = this;
411
442
  function formatValueSpecifier(formattext) {
412
- var isSymbol;
413
443
  var result;
444
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
414
445
  var daysAbbreviated = proxy.getCulturedValue('days[stand-alone].abbreviated');
415
446
  var dayKeyAbbreviated = Object.keys(daysAbbreviated);
447
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
416
448
  var daysWide = (proxy.getCulturedValue('days[stand-alone].wide'));
417
449
  var dayKeyWide = Object.keys(daysWide);
450
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
418
451
  var daysNarrow = (proxy.getCulturedValue('days[stand-alone].narrow'));
419
452
  var dayKeyNarrow = Object.keys(daysNarrow);
420
453
  var monthAbbreviated = (proxy.getCulturedValue('months[stand-alone].abbreviated'));
421
454
  var monthWide = (proxy.getCulturedValue('months[stand-alone].wide'));
455
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
422
456
  var periodString = (proxy.getCulturedValue('dayPeriods.format.wide'));
423
457
  var periodkeys = Object.keys(periodString);
424
458
  var milliseconds;
@@ -429,7 +463,7 @@ var MaskedDateTime = /** @class */ (function () {
429
463
  case 'd':
430
464
  result = proxy.isDayPart ? proxy.maskDateValue.getDate().toString() : proxy.defaultConstant['day'].toString();
431
465
  result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
432
- if (proxy.dayTypeCount == 2) {
466
+ if (proxy.dayTypeCount === 2) {
433
467
  proxy.isNavigate = true;
434
468
  proxy.dayTypeCount = 0;
435
469
  }
@@ -437,7 +471,7 @@ var MaskedDateTime = /** @class */ (function () {
437
471
  case 'dd':
438
472
  result = proxy.isDayPart ? proxy.roundOff(proxy.maskDateValue.getDate(), 2) : proxy.defaultConstant['day'].toString();
439
473
  result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
440
- if (proxy.dayTypeCount == 2) {
474
+ if (proxy.dayTypeCount === 2) {
441
475
  proxy.isNavigate = true;
442
476
  proxy.dayTypeCount = 0;
443
477
  }
@@ -456,7 +490,7 @@ var MaskedDateTime = /** @class */ (function () {
456
490
  case 'M':
457
491
  result = proxy.isMonthPart ? (proxy.maskDateValue.getMonth() + 1).toString() : proxy.defaultConstant['month'].toString();
458
492
  result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
459
- if (proxy.monthTypeCount == 2) {
493
+ if (proxy.monthTypeCount === 2) {
460
494
  proxy.isNavigate = true;
461
495
  proxy.monthTypeCount = 0;
462
496
  }
@@ -464,7 +498,7 @@ var MaskedDateTime = /** @class */ (function () {
464
498
  case 'MM':
465
499
  result = proxy.isMonthPart ? proxy.roundOff(proxy.maskDateValue.getMonth() + 1, 2) : proxy.defaultConstant['month'].toString();
466
500
  result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
467
- if (proxy.monthTypeCount == 2) {
501
+ if (proxy.monthTypeCount === 2) {
468
502
  proxy.isNavigate = true;
469
503
  proxy.monthTypeCount = 0;
470
504
  }
@@ -489,56 +523,56 @@ var MaskedDateTime = /** @class */ (function () {
489
523
  break;
490
524
  case 'h':
491
525
  result = proxy.isHourPart ? (proxy.maskDateValue.getHours() % 12 || 12).toString() : proxy.defaultConstant['hour'].toString();
492
- if (proxy.hourTypeCount == 2) {
526
+ if (proxy.hourTypeCount === 2) {
493
527
  proxy.isNavigate = true;
494
528
  proxy.hourTypeCount = 0;
495
529
  }
496
530
  break;
497
531
  case 'hh':
498
532
  result = proxy.isHourPart ? proxy.roundOff(proxy.maskDateValue.getHours() % 12 || 12, 2) : proxy.defaultConstant['hour'].toString();
499
- if (proxy.hourTypeCount == 2) {
533
+ if (proxy.hourTypeCount === 2) {
500
534
  proxy.isNavigate = true;
501
535
  proxy.hourTypeCount = 0;
502
536
  }
503
537
  break;
504
538
  case 'H':
505
539
  result = proxy.isHourPart ? proxy.maskDateValue.getHours().toString() : proxy.defaultConstant['hour'].toString();
506
- if (proxy.hourTypeCount == 2) {
540
+ if (proxy.hourTypeCount === 2) {
507
541
  proxy.isNavigate = true;
508
542
  proxy.hourTypeCount = 0;
509
543
  }
510
544
  break;
511
545
  case 'HH':
512
546
  result = proxy.isHourPart ? proxy.roundOff(proxy.maskDateValue.getHours(), 2) : proxy.defaultConstant['hour'].toString();
513
- if (proxy.hourTypeCount == 2) {
547
+ if (proxy.hourTypeCount === 2) {
514
548
  proxy.isNavigate = true;
515
549
  proxy.hourTypeCount = 0;
516
550
  }
517
551
  break;
518
552
  case 'm':
519
553
  result = proxy.isMinutePart ? proxy.maskDateValue.getMinutes().toString() : proxy.defaultConstant['minute'].toString();
520
- if (proxy.minuteTypeCount == 2) {
554
+ if (proxy.minuteTypeCount === 2) {
521
555
  proxy.isNavigate = true;
522
556
  proxy.minuteTypeCount = 0;
523
557
  }
524
558
  break;
525
559
  case 'mm':
526
560
  result = proxy.isMinutePart ? proxy.roundOff(proxy.maskDateValue.getMinutes(), 2) : proxy.defaultConstant['minute'].toString();
527
- if (proxy.minuteTypeCount == 2) {
561
+ if (proxy.minuteTypeCount === 2) {
528
562
  proxy.isNavigate = true;
529
563
  proxy.minuteTypeCount = 0;
530
564
  }
531
565
  break;
532
566
  case 's':
533
567
  result = proxy.isSecondsPart ? proxy.maskDateValue.getSeconds().toString() : proxy.defaultConstant['second'].toString();
534
- if (proxy.secondTypeCount == 2) {
568
+ if (proxy.secondTypeCount === 2) {
535
569
  proxy.isNavigate = true;
536
570
  proxy.secondTypeCount = 0;
537
571
  }
538
572
  break;
539
573
  case 'ss':
540
574
  result = proxy.isSecondsPart ? proxy.roundOff(proxy.maskDateValue.getSeconds(), 2) : proxy.defaultConstant['second'].toString();
541
- if (proxy.secondTypeCount == 2) {
575
+ if (proxy.secondTypeCount === 2) {
542
576
  proxy.isNavigate = true;
543
577
  proxy.secondTypeCount = 0;
544
578
  }
@@ -587,14 +621,12 @@ var MaskedDateTime = /** @class */ (function () {
587
621
  };
588
622
  MaskedDateTime.prototype.maskInputHandler = function () {
589
623
  var start = this.parent.inputElement.selectionStart;
590
- var selectionChar = this.previousHiddenMask[start - 1];
591
624
  var formatText = '';
592
625
  if (this.validCharacters.indexOf(this.hiddenMask[start]) !== -1) {
593
626
  formatText = this.hiddenMask[start];
594
627
  }
595
- var inputValue;
596
628
  this.differenceCheck();
597
- inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
629
+ var inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
598
630
  this.isHiddenMask = true;
599
631
  this.hiddenMask = this.dateformat.replace(this.formatRegex, this.formatCheck());
600
632
  this.isDateZero = this.isMonthZero = this.isYearZero = false;
@@ -620,8 +652,6 @@ var MaskedDateTime = /** @class */ (function () {
620
652
  this.isDeletion = false;
621
653
  }
622
654
  this.isDeleteKey = false;
623
- // this.setSelection(selectionChar);
624
- // this.navigateSelection(inputValue);
625
655
  };
626
656
  MaskedDateTime.prototype.navigateSelection = function (isbackward) {
627
657
  var start = this.parent.inputElement.selectionStart;
@@ -702,24 +732,26 @@ var MaskedDateTime = /** @class */ (function () {
702
732
  newDateValue.setDate(newDateValue.getDate() + incrementValue);
703
733
  break;
704
734
  case 'M':
705
- var newMonth = newDateValue.getMonth() + incrementValue;
706
- newDateValue.setDate(1);
707
- newDateValue.setMonth(newMonth);
708
- if (this.isDayPart) {
709
- var previousMaxDate = new Date(this.previousDate.getFullYear(), this.previousDate.getMonth() + 1, 0).getDate();
710
- var currentMaxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
711
- if (this.previousDate.getDate() == previousMaxDate && currentMaxDate <= previousMaxDate) {
712
- newDateValue.setDate(currentMaxDate);
735
+ {
736
+ var newMonth = newDateValue.getMonth() + incrementValue;
737
+ newDateValue.setDate(1);
738
+ newDateValue.setMonth(newMonth);
739
+ if (this.isDayPart) {
740
+ var previousMaxDate = new Date(this.previousDate.getFullYear(), this.previousDate.getMonth() + 1, 0).getDate();
741
+ var currentMaxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
742
+ if (this.previousDate.getDate() === previousMaxDate && currentMaxDate <= previousMaxDate) {
743
+ newDateValue.setDate(currentMaxDate);
744
+ }
745
+ else {
746
+ newDateValue.setDate(this.previousDate.getDate());
747
+ }
713
748
  }
714
749
  else {
715
750
  newDateValue.setDate(this.previousDate.getDate());
716
751
  }
752
+ this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
753
+ break;
717
754
  }
718
- else {
719
- newDateValue.setDate(this.previousDate.getDate());
720
- }
721
- this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
722
- break;
723
755
  case 'y':
724
756
  newDateValue.setFullYear(newDateValue.getFullYear() + incrementValue);
725
757
  break;
@@ -757,19 +789,19 @@ var MaskedDateTime = /** @class */ (function () {
757
789
  };
758
790
  MaskedDateTime.prototype.getCulturedFormat = function () {
759
791
  var formatString = (this.getCulturedValue('dateTimeFormats[availableFormats].yMd')).toString();
760
- if (this.parent.moduleName == 'datepicker') {
792
+ if (this.parent.moduleName === 'datepicker') {
761
793
  formatString = (this.getCulturedValue('dateTimeFormats[availableFormats].yMd')).toString();
762
794
  if (this.parent.format && this.parent.formatString) {
763
795
  formatString = this.parent.formatString;
764
796
  }
765
797
  }
766
- if (this.parent.moduleName == 'datetimepicker') {
798
+ if (this.parent.moduleName === 'datetimepicker') {
767
799
  formatString = (this.getCulturedValue('dateTimeFormats[availableFormats].yMd')).toString();
768
800
  if (this.parent.dateTimeFormat) {
769
801
  formatString = this.parent.dateTimeFormat;
770
802
  }
771
803
  }
772
- if (this.parent.moduleName == 'timepicker') {
804
+ if (this.parent.moduleName === 'timepicker') {
773
805
  formatString = this.parent.cldrTimeFormat();
774
806
  }
775
807
  return formatString;
@@ -787,7 +819,6 @@ var MaskedDateTime = /** @class */ (function () {
787
819
  this.previousHiddenMask = this.hiddenMask;
788
820
  this.previousValue = inputValue;
789
821
  this.parent.updateInputValue(inputValue);
790
- //this.parent.inputElement.value = inputValue;
791
822
  };
792
823
  MaskedDateTime.prototype.destroy = function () {
793
824
  this.removeEventListener();