@syncfusion/ej2-schedule 28.1.39 → 28.2.3

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.
@@ -1508,6 +1508,7 @@ class HeaderRenderer {
1508
1508
  min: this.parent.minDate,
1509
1509
  max: this.parent.maxDate,
1510
1510
  firstDayOfWeek: this.parent.activeViewOptions.firstDayOfWeek,
1511
+ weekNumber: this.parent.activeViewOptions.showWeekNumber,
1511
1512
  enableRtl: this.parent.enableRtl,
1512
1513
  locale: this.parent.locale,
1513
1514
  depth: calendarView,
@@ -25468,9 +25469,11 @@ class Month extends ViewBase {
25468
25469
  }
25469
25470
  }
25470
25471
  getMonthStart(currentDate) {
25471
- const useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && (this.parent.uiStateValues.isCustomMonth || this.isCustomRange());
25472
+ const useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && !(this.parent.uiStateValues.isSwipeScroll) &&
25473
+ (this.parent.uiStateValues.isCustomMonth || this.isCustomRange());
25472
25474
  const date = useDisplayDate ? this.parent.activeViewOptions.displayDate : !(this.parent.uiStateValues.isCustomMonth ||
25473
- this.isCustomRange()) && this.isCustomMonth() ? currentDate : this.parent.calendarUtil.firstDateOfMonth(currentDate);
25475
+ (!this.parent.uiStateValues.isSwipeScroll && this.isCustomRange())) && this.isCustomMonth() ? currentDate :
25476
+ this.parent.calendarUtil.firstDateOfMonth(currentDate);
25474
25477
  const monthStart = getWeekFirstDate(date, this.parent.activeViewOptions.firstDayOfWeek);
25475
25478
  return new Date(monthStart.getFullYear(), monthStart.getMonth(), monthStart.getDate());
25476
25479
  }