@syncfusion/ej2-calendars 19.4.48 → 19.4.54

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.
@@ -48,29 +48,6 @@ const PRIMARY = 'e-primary';
48
48
  const DAYHEADERLONG = 'e-calendar-day-header-lg';
49
49
  const dayMilliSeconds = 86400000;
50
50
  const minutesMilliSeconds = 60000;
51
- class MaskPlaceholder extends ChildProperty {
52
- }
53
- __decorate([
54
- Property('day')
55
- ], MaskPlaceholder.prototype, "day", void 0);
56
- __decorate([
57
- Property('month')
58
- ], MaskPlaceholder.prototype, "month", void 0);
59
- __decorate([
60
- Property('year')
61
- ], MaskPlaceholder.prototype, "year", void 0);
62
- __decorate([
63
- Property('hour')
64
- ], MaskPlaceholder.prototype, "hour", void 0);
65
- __decorate([
66
- Property('minute')
67
- ], MaskPlaceholder.prototype, "minute", void 0);
68
- __decorate([
69
- Property('second')
70
- ], MaskPlaceholder.prototype, "second", void 0);
71
- __decorate([
72
- Property('day of the week')
73
- ], MaskPlaceholder.prototype, "dayOfTheWeek", void 0);
74
51
  /**
75
52
  *
76
53
  * @private
@@ -3124,12 +3101,12 @@ let DatePicker = class DatePicker extends Calendar {
3124
3101
  }
3125
3102
  }
3126
3103
  initialize() {
3104
+ this.checkInvalidValue(this.value);
3127
3105
  if (this.enableMask) {
3128
3106
  this.notify("createMask", {
3129
3107
  module: "MaskedDateTime",
3130
3108
  });
3131
3109
  }
3132
- this.checkInvalidValue(this.value);
3133
3110
  this.createInput();
3134
3111
  this.updateHtmlAttributeToWrapper();
3135
3112
  this.setAllowEdit();
@@ -12421,7 +12398,7 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
12421
12398
  };
12422
12399
  this.addTimeSelection();
12423
12400
  this.trigger('change', this.changedArgs);
12424
- this.previousDateTime = this.value;
12401
+ this.previousDateTime = this.previousDate = this.value;
12425
12402
  }
12426
12403
  }
12427
12404
  setTimeScrollPosition() {
@@ -13471,7 +13448,7 @@ class MaskedDateTime {
13471
13448
  let inputValue = this.parent.inputElement.value;
13472
13449
  let previousVal = this.previousValue.substring(0, start + this.previousValue.length - inputValue.length);
13473
13450
  let newVal = inputValue.substring(0, start);
13474
- let newDateValue = this.maskDateValue;
13451
+ let newDateValue = new Date(+this.maskDateValue);
13475
13452
  let maxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
13476
13453
  if (previousVal.indexOf(newVal) === 0 && (newVal.length === 0 || this.previousHiddenMask[newVal.length - 1] !== this.previousHiddenMask[newVal.length])) {
13477
13454
  for (let i = newVal.length; i < previousVal.length; i++) {
@@ -14014,5 +13991,5 @@ class MaskedDateTime {
14014
13991
  * Calendar all modules
14015
13992
  */
14016
13993
 
14017
- export { MaskPlaceholder, CalendarBase, Calendar, Islamic, DatePicker, Presets, DateRangePicker, TimePickerBase, TimeMaskPlaceholder, TimePicker, DateTimePicker, MaskedDateTime };
13994
+ export { CalendarBase, Calendar, Islamic, DatePicker, Presets, DateRangePicker, TimePickerBase, TimeMaskPlaceholder, TimePicker, DateTimePicker, MaskedDateTime };
14018
13995
  //# sourceMappingURL=ej2-calendars.es2015.js.map