@syncfusion/ej2-calendars 23.1.36 → 23.1.38

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.
@@ -840,6 +840,7 @@ let CalendarBase = class CalendarBase extends Component {
840
840
  const dayLink = this.createElement('span');
841
841
  const localMonth = (value && (value).getMonth() === localDate.getMonth());
842
842
  const select$$1 = (value && (value).getFullYear() === yr && localMonth);
843
+ const title = this.globalize.formatDate(localDate, { type: 'date', format: 'MMM y' });
843
844
  dayLink.textContent = this.toCapitalize(this.globalize.formatDate(localDate, {
844
845
  format: null, type: 'dateTime', skeleton: 'MMM'
845
846
  }));
@@ -858,6 +859,7 @@ let CalendarBase = class CalendarBase extends Component {
858
859
  localDate.setMonth(localDate.getMonth() + 1);
859
860
  if (!tdEle.classList.contains(DISABLED)) {
860
861
  EventHandler.add(tdEle, 'click', this.clickHandler, this);
862
+ dayLink.setAttribute('title', '' + title);
861
863
  }
862
864
  tdEle.appendChild(dayLink);
863
865
  tdEles.push(tdEle);
@@ -916,6 +918,7 @@ let CalendarBase = class CalendarBase extends Component {
916
918
  }
917
919
  if (!tdEle.classList.contains(DISABLED)) {
918
920
  EventHandler.add(tdEle, 'click', this.clickHandler, this);
921
+ dayLink.setAttribute('title', '' + dayLink.textContent);
919
922
  }
920
923
  tdEle.appendChild(dayLink);
921
924
  tdEles.push(tdEle);
@@ -4043,10 +4046,10 @@ let DatePicker = class DatePicker extends Calendar {
4043
4046
  }
4044
4047
  else {
4045
4048
  if (this.calendarMode === 'Gregorian') {
4046
- formatOptions = { type: 'dateTime', skeleton: 'yMd' };
4049
+ formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd' };
4047
4050
  }
4048
4051
  else {
4049
- formatOptions = { type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
4052
+ formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
4050
4053
  }
4051
4054
  date = this.globalize.parseDate(this.inputElement.value, formatOptions);
4052
4055
  }
@@ -4109,7 +4112,7 @@ let DatePicker = class DatePicker extends Calendar {
4109
4112
  targetType: 'container',
4110
4113
  enableRtl: this.enableRtl,
4111
4114
  zIndex: this.zIndex,
4112
- collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : { X: 'flip', Y: 'flip' },
4115
+ collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : (this.enableRtl ? { X: 'fit', Y: 'flip' } : { X: 'flip', Y: 'flip' }),
4113
4116
  open: () => {
4114
4117
  if (Browser.isDevice && this.fullScreenMode) {
4115
4118
  this.iconRight = parseInt(window.getComputedStyle(this.calendarElement.querySelector('.e-header.e-month .e-prev')).marginRight, 10) > 16 ? true : false;