@syncfusion/ej2-calendars 23.1.40 → 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.
@@ -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();