@syncfusion/ej2-calendars 20.3.49 → 20.3.56
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/CHANGELOG.md +24 -0
- 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 +20 -1
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +20 -1
- 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 +11 -11
- package/src/calendar/calendar.js +2 -1
- package/src/datepicker/datepicker.js +6 -0
- package/src/daterangepicker/daterangepicker.js +6 -0
- package/src/timepicker/timepicker.js +6 -0
|
@@ -770,7 +770,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
770
770
|
|| (this.getDateVal(localDate, value))) {
|
|
771
771
|
addClass([tdEle], SELECTED);
|
|
772
772
|
}
|
|
773
|
-
if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && currentTarget.classList.contains(SELECTED)) {
|
|
773
|
+
if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && tdEle.classList.contains(SELECTED) && currentTarget.classList.contains(SELECTED)) {
|
|
774
774
|
removeClass([tdEle], SELECTED);
|
|
775
775
|
this.previousDates = false;
|
|
776
776
|
var copyValues = this.copyValues(values);
|
|
@@ -782,6 +782,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
782
782
|
if (localDateString_1 === tempDateString_1) {
|
|
783
783
|
var index = copyValues.indexOf(copyValues[i]);
|
|
784
784
|
copyValues.splice(index, 1);
|
|
785
|
+
values.splice(index, 1);
|
|
785
786
|
}
|
|
786
787
|
}
|
|
787
788
|
this.setProperties({ values: copyValues }, true);
|
|
@@ -3617,6 +3618,12 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3617
3618
|
module: "MaskedDateTime"
|
|
3618
3619
|
});
|
|
3619
3620
|
}
|
|
3621
|
+
if (closest(this.element, 'form')) {
|
|
3622
|
+
var element = this.element;
|
|
3623
|
+
var keyupEvent = document.createEvent('KeyboardEvent');
|
|
3624
|
+
keyupEvent.initEvent('keyup', false, true);
|
|
3625
|
+
element.dispatchEvent(keyupEvent);
|
|
3626
|
+
}
|
|
3620
3627
|
};
|
|
3621
3628
|
DatePicker.prototype.preventEventBubbling = function (e) {
|
|
3622
3629
|
e.preventDefault();
|
|
@@ -5618,6 +5625,12 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5618
5625
|
this.changeTrigger(e);
|
|
5619
5626
|
this.clearRange();
|
|
5620
5627
|
this.hide(e);
|
|
5628
|
+
if (closest(this.element, 'form')) {
|
|
5629
|
+
var element = this.firstHiddenChild;
|
|
5630
|
+
var keyupEvent = document.createEvent('KeyboardEvent');
|
|
5631
|
+
keyupEvent.initEvent('keyup', false, true);
|
|
5632
|
+
element.dispatchEvent(keyupEvent);
|
|
5633
|
+
}
|
|
5621
5634
|
};
|
|
5622
5635
|
DateRangePicker.prototype.restoreValue = function () {
|
|
5623
5636
|
this.previousEleValue = this.inputElement.value;
|
|
@@ -10864,6 +10877,12 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
10864
10877
|
module: "MaskedDateTime"
|
|
10865
10878
|
});
|
|
10866
10879
|
}
|
|
10880
|
+
if (closest(this.element, 'form')) {
|
|
10881
|
+
var element = this.element;
|
|
10882
|
+
var keyupEvent = document.createEvent('KeyboardEvent');
|
|
10883
|
+
keyupEvent.initEvent('keyup', false, true);
|
|
10884
|
+
element.dispatchEvent(keyupEvent);
|
|
10885
|
+
}
|
|
10867
10886
|
};
|
|
10868
10887
|
TimePicker.prototype.clear = function (event) {
|
|
10869
10888
|
this.setProperties({ value: null }, true);
|