@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.
@@ -28060,6 +28060,7 @@ var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
28060
28060
  this.onEventRender(filterData, event.startTime);
28061
28061
  this.parent.notify(eventsLoaded, {});
28062
28062
  this.monthAgendaDate = new Date('' + event.startTime);
28063
+ this.parent.setProperties({ selectedDate: this.monthAgendaDate }, true);
28063
28064
  };
28064
28065
  MonthAgenda.prototype.onEventRender = function (events, date) {
28065
28066
  this.agendaBase = this.getAgendaBase();
@@ -28407,9 +28408,16 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
28407
28408
  var diffInDates = 0;
28408
28409
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
28409
28410
  var hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
28410
- var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
28411
- this.parent.activeViewOptions.timeScale.interval :
28412
- (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
28411
+ var totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
28412
+ var timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
28413
+ var interval = 0;
28414
+ if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
28415
+ interval = timescaleInterval;
28416
+ }
28417
+ else {
28418
+ interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
28419
+ (timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
28420
+ }
28413
28421
  if (!isNullOrUndefined(currentDateIndex)) {
28414
28422
  if (currentDateIndex[0] !== 0) {
28415
28423
  var index = this.parent.activeView.colLevels.findIndex(function (level) { return level[0].type === 'dateHeader'; });