@syncfusion/ej2-calendars 23.1.40 → 23.2.4
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 +14 -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 +29 -7
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +29 -7
- 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 +10 -11
- package/src/datepicker/datepicker.js +10 -4
- package/src/daterangepicker/daterangepicker.js +6 -1
- package/src/datetimepicker/datetimepicker.js +6 -1
- package/src/timepicker/timepicker.js +7 -1
- package/styles/daterangepicker/_fluent-definition.scss +17 -0
- package/styles/daterangepicker/_layout.scss +9 -6
- package/styles/daterangepicker/fluent-dark.css +17 -14
- package/styles/daterangepicker/fluent.css +17 -14
- package/styles/fluent-dark.css +17 -14
- package/styles/fluent.css +17 -14
|
@@ -3386,7 +3386,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3386
3386
|
this.inputElement.setAttribute('aria-disabled', 'false');
|
|
3387
3387
|
this.inputElement.setAttribute('tabindex', this.tabIndex);
|
|
3388
3388
|
}
|
|
3389
|
-
Input.addAttributes({ 'aria-label': 'select' }, this.inputWrapper.buttons[0]);
|
|
3389
|
+
Input.addAttributes({ 'aria-label': 'select', 'role': 'button' }, this.inputWrapper.buttons[0]);
|
|
3390
3390
|
addClass([this.inputWrapper.container], DATEWRAPPER);
|
|
3391
3391
|
};
|
|
3392
3392
|
DatePicker.prototype.updateInput = function (isDynamic, isBlur) {
|
|
@@ -3577,7 +3577,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3577
3577
|
}
|
|
3578
3578
|
};
|
|
3579
3579
|
DatePicker.prototype.bindEvents = function () {
|
|
3580
|
-
EventHandler.add(this.inputWrapper.buttons[0], 'mousedown
|
|
3580
|
+
EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', this.dateIconHandler, this);
|
|
3581
3581
|
EventHandler.add(this.inputElement, 'mouseup', this.mouseUpHandler, this);
|
|
3582
3582
|
EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
|
|
3583
3583
|
EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
|
|
@@ -3626,7 +3626,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3626
3626
|
};
|
|
3627
3627
|
DatePicker.prototype.unBindEvents = function () {
|
|
3628
3628
|
if (!isNullOrUndefined(this.inputWrapper)) {
|
|
3629
|
-
EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown
|
|
3629
|
+
EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown', this.dateIconHandler);
|
|
3630
3630
|
}
|
|
3631
3631
|
EventHandler.remove(this.inputElement, 'mouseup', this.mouseUpHandler);
|
|
3632
3632
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
@@ -3917,7 +3917,8 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3917
3917
|
var target = e.target;
|
|
3918
3918
|
if (!(closest(target, '.e-datepicker.e-popup-wrapper')) && !isNullOrUndefined(this.inputWrapper)
|
|
3919
3919
|
&& !(closest(target, '.' + INPUTCONTAINER) === this.inputWrapper.container)
|
|
3920
|
-
&& (!target.classList.contains('e-day'))
|
|
3920
|
+
&& (!target.classList.contains('e-day'))
|
|
3921
|
+
&& (!target.classList.contains('e-dlg-overlay'))) {
|
|
3921
3922
|
this.hide(e);
|
|
3922
3923
|
this.focusOut();
|
|
3923
3924
|
}
|
|
@@ -4501,6 +4502,11 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4501
4502
|
}
|
|
4502
4503
|
EventHandler.add(document, 'mousedown touchstart', _this.documentHandler, _this);
|
|
4503
4504
|
});
|
|
4505
|
+
if (Browser.isDevice) {
|
|
4506
|
+
var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
|
|
4507
|
+
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
4508
|
+
this.mobilePopupWrapper.appendChild(dlgOverlay);
|
|
4509
|
+
}
|
|
4504
4510
|
}
|
|
4505
4511
|
};
|
|
4506
4512
|
/**
|
|
@@ -8646,7 +8652,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8646
8652
|
(!isNullOrUndefined(this.targetElement) && !(target === this.targetElement))) &&
|
|
8647
8653
|
!(closest(target, '[id="' + this.popupWrapper.id + '"]'))
|
|
8648
8654
|
&& !(closest(target, '.' + INPUTCONTAINER$1) === this.inputWrapper.container)
|
|
8649
|
-
&& !(closest(target, '.e-daterangepicker.e-popup') && (!target.classList.contains('e-day')))) {
|
|
8655
|
+
&& !(closest(target, '.e-daterangepicker.e-popup') && (!target.classList.contains('e-day'))) && (!target.classList.contains('e-dlg-overlay'))) {
|
|
8650
8656
|
this.preventBlur = false;
|
|
8651
8657
|
if (this.isPopupOpen() && document.body.contains(this.popupObj.element)) {
|
|
8652
8658
|
this.applyFunction(e);
|
|
@@ -9299,6 +9305,11 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9299
9305
|
_this.isMobile || Browser.isDevice);
|
|
9300
9306
|
}
|
|
9301
9307
|
});
|
|
9308
|
+
if (Browser.isDevice) {
|
|
9309
|
+
var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
|
|
9310
|
+
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
9311
|
+
this.mobileRangePopupWrap.appendChild(dlgOverlay);
|
|
9312
|
+
}
|
|
9302
9313
|
}
|
|
9303
9314
|
}
|
|
9304
9315
|
};
|
|
@@ -11859,7 +11870,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11859
11870
|
if (!(closest(target, '[id="' + this.popupObj.element.id + '"]')) && target !== this.inputElement
|
|
11860
11871
|
&& target !== (this.inputWrapper && this.inputWrapper.buttons[0]) &&
|
|
11861
11872
|
target !== (this.inputWrapper && this.inputWrapper.clearButton) &&
|
|
11862
|
-
target !== (this.inputWrapper && this.inputWrapper.container)
|
|
11873
|
+
target !== (this.inputWrapper && this.inputWrapper.container)
|
|
11874
|
+
&& (!target.classList.contains('e-dlg-overlay'))) {
|
|
11863
11875
|
if (this.isPopupOpen()) {
|
|
11864
11876
|
this.hide();
|
|
11865
11877
|
this.focusOut();
|
|
@@ -12072,6 +12084,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12072
12084
|
_this.popupObj = null;
|
|
12073
12085
|
}
|
|
12074
12086
|
});
|
|
12087
|
+
if (Browser.isDevice) {
|
|
12088
|
+
var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
|
|
12089
|
+
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
12090
|
+
this.mobileTimePopupWrap.appendChild(dlgOverlay);
|
|
12091
|
+
}
|
|
12075
12092
|
}
|
|
12076
12093
|
};
|
|
12077
12094
|
/* eslint-enable valid-jsdoc, jsdoc/require-param */
|
|
@@ -13001,6 +13018,11 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13001
13018
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
13002
13019
|
this.dateTimeWrapper.style.left = '0px';
|
|
13003
13020
|
}
|
|
13021
|
+
if (Browser.isDevice) {
|
|
13022
|
+
var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
|
|
13023
|
+
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
13024
|
+
this.timeModal.appendChild(dlgOverlay);
|
|
13025
|
+
}
|
|
13004
13026
|
}
|
|
13005
13027
|
}
|
|
13006
13028
|
};
|
|
@@ -13039,7 +13061,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13039
13061
|
event.preventDefault();
|
|
13040
13062
|
}
|
|
13041
13063
|
if (!(closest(target, '[id="' + (this.popupObject && this.popupObject.element.id + '"]'))) && target !== this.inputElement
|
|
13042
|
-
&& target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container) {
|
|
13064
|
+
&& target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container && !target.classList.contains('e-dlg-overlay')) {
|
|
13043
13065
|
if (this.isTimePopupOpen()) {
|
|
13044
13066
|
this.hide(event);
|
|
13045
13067
|
this.focusOut();
|