@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.
@@ -3873,7 +3873,8 @@ let DatePicker = class DatePicker extends Calendar {
3873
3873
  const target = e.target;
3874
3874
  if (!(closest(target, '.e-datepicker.e-popup-wrapper')) && !isNullOrUndefined(this.inputWrapper)
3875
3875
  && !(closest(target, '.' + INPUTCONTAINER) === this.inputWrapper.container)
3876
- && (!target.classList.contains('e-day'))) {
3876
+ && (!target.classList.contains('e-day'))
3877
+ && (!target.classList.contains('e-dlg-overlay'))) {
3877
3878
  this.hide(e);
3878
3879
  this.focusOut();
3879
3880
  }
@@ -4455,6 +4456,11 @@ let DatePicker = class DatePicker extends Calendar {
4455
4456
  }
4456
4457
  EventHandler.add(document, 'mousedown touchstart', this.documentHandler, this);
4457
4458
  });
4459
+ if (Browser.isDevice) {
4460
+ var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
4461
+ dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
4462
+ this.mobilePopupWrapper.appendChild(dlgOverlay);
4463
+ }
4458
4464
  }
4459
4465
  }
4460
4466
  /**
@@ -8552,7 +8558,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
8552
8558
  (!isNullOrUndefined(this.targetElement) && !(target === this.targetElement))) &&
8553
8559
  !(closest(target, '[id="' + this.popupWrapper.id + '"]'))
8554
8560
  && !(closest(target, '.' + INPUTCONTAINER$1) === this.inputWrapper.container)
8555
- && !(closest(target, '.e-daterangepicker.e-popup') && (!target.classList.contains('e-day')))) {
8561
+ && !(closest(target, '.e-daterangepicker.e-popup') && (!target.classList.contains('e-day'))) && (!target.classList.contains('e-dlg-overlay'))) {
8556
8562
  this.preventBlur = false;
8557
8563
  if (this.isPopupOpen() && document.body.contains(this.popupObj.element)) {
8558
8564
  this.applyFunction(e);
@@ -9204,6 +9210,11 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
9204
9210
  this.isMobile || Browser.isDevice);
9205
9211
  }
9206
9212
  });
9213
+ if (Browser.isDevice) {
9214
+ var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
9215
+ dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
9216
+ this.mobileRangePopupWrap.appendChild(dlgOverlay);
9217
+ }
9207
9218
  }
9208
9219
  }
9209
9220
  }
@@ -11735,7 +11746,8 @@ let TimePicker = class TimePicker extends Component {
11735
11746
  if (!(closest(target, '[id="' + this.popupObj.element.id + '"]')) && target !== this.inputElement
11736
11747
  && target !== (this.inputWrapper && this.inputWrapper.buttons[0]) &&
11737
11748
  target !== (this.inputWrapper && this.inputWrapper.clearButton) &&
11738
- target !== (this.inputWrapper && this.inputWrapper.container)) {
11749
+ target !== (this.inputWrapper && this.inputWrapper.container)
11750
+ && (!target.classList.contains('e-dlg-overlay'))) {
11739
11751
  if (this.isPopupOpen()) {
11740
11752
  this.hide();
11741
11753
  this.focusOut();
@@ -11947,6 +11959,11 @@ let TimePicker = class TimePicker extends Component {
11947
11959
  this.popupObj = null;
11948
11960
  }
11949
11961
  });
11962
+ if (Browser.isDevice) {
11963
+ var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
11964
+ dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
11965
+ this.mobileTimePopupWrap.appendChild(dlgOverlay);
11966
+ }
11950
11967
  }
11951
11968
  }
11952
11969
  /* eslint-enable valid-jsdoc, jsdoc/require-param */
@@ -12858,6 +12875,11 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
12858
12875
  if (Browser.isDevice && this.fullScreenMode) {
12859
12876
  this.dateTimeWrapper.style.left = '0px';
12860
12877
  }
12878
+ if (Browser.isDevice) {
12879
+ var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
12880
+ dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
12881
+ this.timeModal.appendChild(dlgOverlay);
12882
+ }
12861
12883
  }
12862
12884
  }
12863
12885
  }
@@ -12895,7 +12917,7 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
12895
12917
  event.preventDefault();
12896
12918
  }
12897
12919
  if (!(closest(target, '[id="' + (this.popupObject && this.popupObject.element.id + '"]'))) && target !== this.inputElement
12898
- && target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container) {
12920
+ && target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container && !target.classList.contains('e-dlg-overlay')) {
12899
12921
  if (this.isTimePopupOpen()) {
12900
12922
  this.hide(event);
12901
12923
  this.focusOut();