@syncfusion/ej2-schedule 26.2.5 → 26.2.10

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.
@@ -7181,7 +7181,10 @@ class VerticalEvent extends EventBase {
7181
7181
  const field = this.parent.eventFields;
7182
7182
  const schedule = getStartEndHours(currentDate, this.startHour, this.endHour);
7183
7183
  const event = extend({}, record, null, true);
7184
- event.isSpanned = { isBottom: false, isTop: false };
7184
+ event.isSpanned = {
7185
+ isBottom: false, isTop: false,
7186
+ isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
7187
+ };
7185
7188
  if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
7186
7189
  event[field.startTime] = schedule.startHour;
7187
7190
  event.isSpanned.isTop = true;
@@ -7294,7 +7297,7 @@ class VerticalEvent extends EventBase {
7294
7297
  return;
7295
7298
  }
7296
7299
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
7297
- const appHeight = this.getHeight(eStart, eEnd);
7300
+ const appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
7298
7301
  if (eStart.getTime() >= schedule.startHour.getTime()) {
7299
7302
  topValue = this.getTopValue(eStart, dayIndex, resource);
7300
7303
  }
@@ -13802,6 +13805,7 @@ class VirtualScroll {
13802
13805
  this.averageRowHeight = 0;
13803
13806
  this.startIndex = 0;
13804
13807
  this.existingDataCollection = [];
13808
+ this.enableTransition = true;
13805
13809
  this.parent = parent;
13806
13810
  this.addEventListener();
13807
13811
  }
@@ -13891,6 +13895,10 @@ class VirtualScroll {
13891
13895
  const resWrap = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
13892
13896
  const conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
13893
13897
  const eventWrap = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
13898
+ if (!this.parent.rowAutoHeight) {
13899
+ this.enableTransition = false;
13900
+ removeClass([conWrap, resWrap], 'e-transition');
13901
+ }
13894
13902
  let firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);
13895
13903
  const endIndex = (firstTDIndex + this.renderedLength);
13896
13904
  firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
@@ -17934,6 +17942,12 @@ let Schedule = class Schedule extends Component {
17934
17942
  this.virtualScrollModule.isRemoteRefresh = false;
17935
17943
  }
17936
17944
  this.refreshEvents(isRemoteRefresh);
17945
+ if (this.virtualScrollModule && !this.virtualScrollModule.enableTransition) {
17946
+ const resWrap = this.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
17947
+ const conWrap = this.element.querySelector('.' + CONTENT_WRAP_CLASS);
17948
+ this.virtualScrollModule.enableTransition = true;
17949
+ addClass([conWrap, resWrap], 'e-transition');
17950
+ }
17937
17951
  }
17938
17952
  else {
17939
17953
  this.notify(contentReady, {});
@@ -27946,6 +27960,7 @@ class Print {
27946
27960
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
27947
27961
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
27948
27962
  this.printInstance.isPrinting = true;
27963
+ this.printInstance.registeredTemplate = this.parent.registeredTemplate;
27949
27964
  this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
27950
27965
  this.printInstance.appendTo(element);
27951
27966
  this.printInstance.on(print, this.contentReady, this);