@syncfusion/ej2-schedule 28.2.5 → 28.2.7

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.
@@ -1941,17 +1941,21 @@ class ScheduleTouch {
1941
1941
  EventHandler.add(this.element, 'touchend', this.preventEventClick, this);
1942
1942
  }
1943
1943
  this.parent.quickPopup.tapHoldEventPopup(e.originalEvent);
1944
+ this.triggerResizeStart(e.originalEvent);
1944
1945
  }
1945
1946
  else if (['Agenda', 'MonthAgenda', 'Year'].indexOf(this.parent.currentView) < 0) {
1946
1947
  this.parent.selectedElements = [];
1947
1948
  this.parent.eventBase.getSelectedEventElements(target);
1948
- if (this.parent.resizeModule && closest(e.originalEvent.target, '.' + EVENT_RESIZE_CLASS)) {
1949
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1950
- this.parent.resizeModule.resizeStart(e.originalEvent);
1951
- }
1949
+ this.triggerResizeStart(e.originalEvent);
1952
1950
  }
1953
1951
  }
1954
1952
  }
1953
+ triggerResizeStart(e) {
1954
+ if (this.parent.resizeModule && closest(e.target, '.' + EVENT_RESIZE_CLASS)) {
1955
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1956
+ this.parent.resizeModule.resizeStart(e);
1957
+ }
1958
+ }
1955
1959
  preventEventClick(e) {
1956
1960
  e.preventDefault();
1957
1961
  EventHandler.remove(this.element, 'touchend', this.preventEventClick);
@@ -27041,6 +27045,7 @@ class MonthAgenda extends Month {
27041
27045
  this.onEventRender(filterData, event.startTime);
27042
27046
  this.parent.notify(eventsLoaded, {});
27043
27047
  this.monthAgendaDate = new Date('' + event.startTime);
27048
+ this.parent.setProperties({ selectedDate: this.monthAgendaDate }, true);
27044
27049
  }
27045
27050
  onEventRender(events, date) {
27046
27051
  this.agendaBase = this.getAgendaBase();
@@ -27360,9 +27365,16 @@ class TimelineViews extends VerticalView {
27360
27365
  let diffInDates = 0;
27361
27366
  let diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
27362
27367
  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;
27368
+ const totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
27369
+ const timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
27370
+ let interval = 0;
27371
+ if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
27372
+ interval = timescaleInterval;
27373
+ }
27374
+ else {
27375
+ interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
27376
+ (timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
27377
+ }
27366
27378
  if (!isNullOrUndefined(currentDateIndex)) {
27367
27379
  if (currentDateIndex[0] !== 0) {
27368
27380
  const index = this.parent.activeView.colLevels.findIndex((level) => level[0].type === 'dateHeader');