@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.
@@ -7328,7 +7328,10 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7328
7328
  var field = this.parent.eventFields;
7329
7329
  var schedule = getStartEndHours(currentDate, this.startHour, this.endHour);
7330
7330
  var event = extend({}, record, null, true);
7331
- event.isSpanned = { isBottom: false, isTop: false };
7331
+ event.isSpanned = {
7332
+ isBottom: false, isTop: false,
7333
+ isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
7334
+ };
7332
7335
  if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
7333
7336
  event[field.startTime] = schedule.startHour;
7334
7337
  event.isSpanned.isTop = true;
@@ -7446,7 +7449,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7446
7449
  return;
7447
7450
  }
7448
7451
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
7449
- var appHeight = this.getHeight(eStart, eEnd);
7452
+ var appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
7450
7453
  if (eStart.getTime() >= schedule.startHour.getTime()) {
7451
7454
  topValue = this.getTopValue(eStart, dayIndex, resource);
7452
7455
  }
@@ -14124,6 +14127,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14124
14127
  this.averageRowHeight = 0;
14125
14128
  this.startIndex = 0;
14126
14129
  this.existingDataCollection = [];
14130
+ this.enableTransition = true;
14127
14131
  this.parent = parent;
14128
14132
  this.addEventListener();
14129
14133
  }
@@ -14213,6 +14217,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14213
14217
  var resWrap = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
14214
14218
  var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
14215
14219
  var eventWrap = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
14220
+ if (!this.parent.rowAutoHeight) {
14221
+ this.enableTransition = false;
14222
+ removeClass([conWrap, resWrap], 'e-transition');
14223
+ }
14216
14224
  var firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);
14217
14225
  var endIndex = (firstTDIndex + this.renderedLength);
14218
14226
  firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
@@ -18597,6 +18605,12 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18597
18605
  this.virtualScrollModule.isRemoteRefresh = false;
18598
18606
  }
18599
18607
  this.refreshEvents(isRemoteRefresh);
18608
+ if (this.virtualScrollModule && !this.virtualScrollModule.enableTransition) {
18609
+ var resWrap = this.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
18610
+ var conWrap = this.element.querySelector('.' + CONTENT_WRAP_CLASS);
18611
+ this.virtualScrollModule.enableTransition = true;
18612
+ addClass([conWrap, resWrap], 'e-transition');
18613
+ }
18600
18614
  }
18601
18615
  else {
18602
18616
  this.notify(contentReady, {});
@@ -29010,6 +29024,7 @@ var Print = /** @__PURE__ @class */ (function () {
29010
29024
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
29011
29025
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
29012
29026
  this.printInstance.isPrinting = true;
29027
+ this.printInstance.registeredTemplate = this.parent.registeredTemplate;
29013
29028
  this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
29014
29029
  this.printInstance.appendTo(element);
29015
29030
  this.printInstance.on(print, this.contentReady, this);