@syncfusion/ej2-schedule 28.2.5 → 28.2.6

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.
@@ -27041,6 +27041,7 @@ class MonthAgenda extends Month {
27041
27041
  this.onEventRender(filterData, event.startTime);
27042
27042
  this.parent.notify(eventsLoaded, {});
27043
27043
  this.monthAgendaDate = new Date('' + event.startTime);
27044
+ this.parent.setProperties({ selectedDate: this.monthAgendaDate }, true);
27044
27045
  }
27045
27046
  onEventRender(events, date) {
27046
27047
  this.agendaBase = this.getAgendaBase();
@@ -27360,9 +27361,16 @@ class TimelineViews extends VerticalView {
27360
27361
  let diffInDates = 0;
27361
27362
  let diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
27362
27363
  const hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
27363
- const interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
27364
- this.parent.activeViewOptions.timeScale.interval :
27365
- (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
27364
+ const totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
27365
+ const timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
27366
+ let interval = 0;
27367
+ if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
27368
+ interval = timescaleInterval;
27369
+ }
27370
+ else {
27371
+ interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
27372
+ (timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
27373
+ }
27366
27374
  if (!isNullOrUndefined(currentDateIndex)) {
27367
27375
  if (currentDateIndex[0] !== 0) {
27368
27376
  const index = this.parent.activeView.colLevels.findIndex((level) => level[0].type === 'dateHeader');