@syncfusion/ej2-calendars 22.2.8 → 22.2.10

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.
@@ -5435,7 +5435,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5435
5435
  /**
5436
5436
  * Mobile View
5437
5437
  */
5438
- this.isMobile = (Browser.isDevice && this.fullScreenMode) ? true : window.matchMedia('(max-width:550px)').matches;
5438
+ this.isMobile = (Browser.isDevice) ? true : window.matchMedia('(max-width:550px)').matches;
5439
5439
  this.inputElement = this.element;
5440
5440
  this.angularTag = null;
5441
5441
  if (this.element.tagName === 'EJS-DATERANGEPICKER') {
@@ -5904,9 +5904,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5904
5904
  this.show(null, e);
5905
5905
  if (!this.isMobile) {
5906
5906
  if (!isNullOrUndefined(this.leftCalendar)) {
5907
- this.isRangeIconClicked = false;
5908
5907
  this.calendarFocus();
5909
- this.isRangeIconClicked = true;
5910
5908
  }
5911
5909
  }
5912
5910
  addClass([this.inputWrapper.container], [INPUTFOCUS$1]);
@@ -7077,16 +7075,11 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7077
7075
  if (event) {
7078
7076
  leftCalendar = closest(event.target, '.' + LEFTCALENDER);
7079
7077
  }
7080
- if (!isNullOrUndefined(leftCalendar)) {
7081
- this.leftCalendar.children[1].firstElementChild.focus();
7078
+ if (event && isNullOrUndefined(leftCalendar)) {
7079
+ rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
7082
7080
  }
7083
- else {
7084
- if (event) {
7085
- rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
7086
- }
7087
- if (!isNullOrUndefined(rightCalendar)) {
7088
- this.rightCalendar.children[1].firstElementChild.focus();
7089
- }
7081
+ if (!isNullOrUndefined(leftCalendar) || !isNullOrUndefined(rightCalendar)) {
7082
+ this.inputWrapper.container.focus();
7090
7083
  }
7091
7084
  addClass([ele], SELECTED$3);
7092
7085
  this.calendarIconEvent();
@@ -10822,7 +10815,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10822
10815
  };
10823
10816
  TimePicker.prototype.inputHandler = function (event) {
10824
10817
  if (!this.readonly && this.enabled) {
10825
- if (event.action !== 'right' && event.action !== 'left' && event.action !== 'tab') {
10818
+ if (!((event.action == 'right' || event.action == 'left' || event.action == 'tab') || ((event.action == 'home' || event.action == 'end') && !this.isPopupOpen()))) {
10826
10819
  event.preventDefault();
10827
10820
  }
10828
10821
  switch (event.action) {
@@ -10842,7 +10835,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10842
10835
  e: event
10843
10836
  });
10844
10837
  }
10845
- if (!this.enableMask || this.isPopupOpen()) {
10838
+ if (this.isPopupOpen()) {
10846
10839
  this.keyHandler(event);
10847
10840
  }
10848
10841
  break;