@syncfusion/ej2-calendars 27.2.2 → 27.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.
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +21 -0
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +21 -0
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/datepicker/datepicker.js +6 -0
- package/src/maskbase/interface.d.ts +2 -0
- package/src/maskbase/masked-date-time.js +3 -0
- package/src/timepicker/timepicker.d.ts +1 -0
- package/src/timepicker/timepicker.js +12 -0
|
@@ -3940,6 +3940,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3940
3940
|
this.inputElement.selectionEnd = this.inputElement.value.length;
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
|
+
if (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
3944
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
3945
|
+
}
|
|
3943
3946
|
var focusArguments = {
|
|
3944
3947
|
model: this
|
|
3945
3948
|
};
|
|
@@ -4446,6 +4449,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4446
4449
|
};
|
|
4447
4450
|
DatePicker.prototype.keyupHandler = function (e) {
|
|
4448
4451
|
this.isKeyAction = (this.inputElement.value !== this.previousElementValue) ? true : false;
|
|
4452
|
+
if (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
4453
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
4454
|
+
}
|
|
4449
4455
|
};
|
|
4450
4456
|
DatePicker.prototype.changeEvent = function (event) {
|
|
4451
4457
|
if (!this.isIconClicked && !(this.isBlur || this.isKeyAction)) {
|
|
@@ -11368,6 +11374,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11368
11374
|
EventHandler.add(this.inputElement, 'input', this.inputEventHandler, this);
|
|
11369
11375
|
if (this.enableMask) {
|
|
11370
11376
|
EventHandler.add(this.inputElement, 'keydown', this.keydownHandler, this);
|
|
11377
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
11371
11378
|
}
|
|
11372
11379
|
if (this.showClearButton && this.inputWrapper.clearButton) {
|
|
11373
11380
|
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.clearHandler, this);
|
|
@@ -11399,6 +11406,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11399
11406
|
break;
|
|
11400
11407
|
}
|
|
11401
11408
|
};
|
|
11409
|
+
TimePicker.prototype.keyupHandler = function (e) {
|
|
11410
|
+
if ((e.code === 'Backspace' || e.code === 'Delete') && (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
|
|
11411
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
11412
|
+
}
|
|
11413
|
+
};
|
|
11402
11414
|
TimePicker.prototype.formResetHandler = function () {
|
|
11403
11415
|
if (!this.enabled) {
|
|
11404
11416
|
return;
|
|
@@ -11449,6 +11461,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11449
11461
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
11450
11462
|
EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
|
|
11451
11463
|
EventHandler.remove(this.inputElement, 'input', this.inputEventHandler);
|
|
11464
|
+
if (this.enableMask) {
|
|
11465
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
11466
|
+
}
|
|
11452
11467
|
if (this.inputEvent) {
|
|
11453
11468
|
this.inputEvent.destroy();
|
|
11454
11469
|
}
|
|
@@ -12197,6 +12212,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12197
12212
|
this.inputElement.selectionEnd = this.inputElement.value.length;
|
|
12198
12213
|
}
|
|
12199
12214
|
}
|
|
12215
|
+
if (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
12216
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
12217
|
+
}
|
|
12200
12218
|
this.trigger('focus', focusArguments);
|
|
12201
12219
|
this.clearIconState();
|
|
12202
12220
|
if (this.openOnFocus) {
|
|
@@ -15367,6 +15385,9 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
|
|
|
15367
15385
|
MaskedDateTime.prototype.clearHandler = function () {
|
|
15368
15386
|
this.isDayPart = this.isMonthPart = this.isYearPart = this.isHourPart = this.isMinutePart = this.isSecondsPart = false;
|
|
15369
15387
|
this.updateValue();
|
|
15388
|
+
if (this.parent.inputElement && this.parent.inputElement.value === this.parent.maskedDateValue && this.parent.inputWrapper && this.parent.inputWrapper.clearButton && !this.parent.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
15389
|
+
this.parent.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
15390
|
+
}
|
|
15370
15391
|
};
|
|
15371
15392
|
MaskedDateTime.prototype.updateValue = function () {
|
|
15372
15393
|
this.monthCharacter = this.periodCharacter = '';
|