@syncfusion/ej2-calendars 23.1.38 → 23.1.41
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 +12 -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 +35 -7
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +35 -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 +8 -8
- package/src/calendar/calendar.js +1 -1
- package/src/datepicker/datepicker.js +9 -3
- package/src/daterangepicker/daterangepicker.js +6 -1
- package/src/datetimepicker/datetimepicker.js +12 -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
|
@@ -2292,7 +2292,7 @@ var Calendar = /** @__PURE__ @class */ (function (_super) {
|
|
|
2292
2292
|
this.islamicModule.islamicRenderTemplate(elements, count, classNm, e, this.value);
|
|
2293
2293
|
}
|
|
2294
2294
|
this.changedArgs = { value: this.value, values: this.values };
|
|
2295
|
-
this.changeHandler();
|
|
2295
|
+
e && e.type === 'click' && e.currentTarget.classList.contains(OTHERMONTH) ? this.changeHandler(e) : this.changeHandler();
|
|
2296
2296
|
};
|
|
2297
2297
|
Calendar.prototype.clickHandler = function (e) {
|
|
2298
2298
|
var eve = e.currentTarget;
|
|
@@ -3340,7 +3340,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3340
3340
|
var ariaAttrs = {
|
|
3341
3341
|
'aria-atomic': 'true', 'aria-expanded': 'false',
|
|
3342
3342
|
'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
|
|
3343
|
-
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
3343
|
+
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false', 'aria-label': this.getModuleName()
|
|
3344
3344
|
};
|
|
3345
3345
|
if (this.getModuleName() === 'datepicker') {
|
|
3346
3346
|
var l10nLocale = { placeholder: this.placeholder };
|
|
@@ -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
|
/**
|
|
@@ -4639,7 +4645,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4639
4645
|
var ariaAttrs = {
|
|
4640
4646
|
'aria-atomic': 'true', 'aria-disabled': 'true',
|
|
4641
4647
|
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
4642
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
4648
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-label': this.getModuleName()
|
|
4643
4649
|
};
|
|
4644
4650
|
if (this.inputElement) {
|
|
4645
4651
|
Input.removeAttributes(ariaAttrs, this.inputElement);
|
|
@@ -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 */
|
|
@@ -12636,6 +12653,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12636
12653
|
this.cloneElement = this.element.cloneNode(true);
|
|
12637
12654
|
this.dateTimeFormat = this.cldrDateTimeFormat();
|
|
12638
12655
|
this.initValue = this.value;
|
|
12656
|
+
if (typeof (this.min) === 'string') {
|
|
12657
|
+
this.min = this.checkDateValue(new Date(this.min));
|
|
12658
|
+
}
|
|
12659
|
+
if (typeof (this.max) === 'string') {
|
|
12660
|
+
this.max = this.checkDateValue(new Date(this.max));
|
|
12661
|
+
}
|
|
12639
12662
|
if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
|
|
12640
12663
|
this.enabled = false;
|
|
12641
12664
|
}
|
|
@@ -12995,6 +13018,11 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12995
13018
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
12996
13019
|
this.dateTimeWrapper.style.left = '0px';
|
|
12997
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
|
+
}
|
|
12998
13026
|
}
|
|
12999
13027
|
}
|
|
13000
13028
|
};
|
|
@@ -13033,7 +13061,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13033
13061
|
event.preventDefault();
|
|
13034
13062
|
}
|
|
13035
13063
|
if (!(closest(target, '[id="' + (this.popupObject && this.popupObject.element.id + '"]'))) && target !== this.inputElement
|
|
13036
|
-
&& 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')) {
|
|
13037
13065
|
if (this.isTimePopupOpen()) {
|
|
13038
13066
|
this.hide(event);
|
|
13039
13067
|
this.focusOut();
|