@syncfusion/ej2-schedule 21.1.41 → 21.2.3

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.
@@ -13756,7 +13756,7 @@ class Render {
13756
13756
  this.parent.virtualScrollModule.destroy();
13757
13757
  this.parent.virtualScrollModule = null;
13758
13758
  }
13759
- if ((['Agenda', 'Year'].indexOf(this.parent.currentView) === -1 ||
13759
+ if ((['Agenda', 'MonthAgenda', 'Year', 'TimelineYear'].indexOf(this.parent.currentView) === -1 ||
13760
13760
  (this.parent.currentView === 'TimelineYear' && this.parent.activeViewOptions.orientation === 'Vertical'))
13761
13761
  && this.parent.activeViewOptions.allowVirtualScrolling
13762
13762
  && this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
@@ -19173,6 +19173,9 @@ class ActionBase {
19173
19173
  return event;
19174
19174
  }
19175
19175
  dynamicYearlyEventsRendering(event, isResize = false) {
19176
+ if (!isNullOrUndefined(this.parent.eventDragArea)) {
19177
+ return;
19178
+ }
19176
19179
  let appWidth = this.actionObj.cellWidth - 7;
19177
19180
  if (isResize && (this.resizeEdges.left || this.resizeEdges.right)) {
19178
19181
  appWidth = this.actionObj.cellWidth * event.count;
@@ -19242,6 +19245,9 @@ class ActionBase {
19242
19245
  return appointmentWrapper;
19243
19246
  }
19244
19247
  dynamicEventsRendering(event) {
19248
+ if (!isNullOrUndefined(this.parent.eventDragArea)) {
19249
+ return;
19250
+ }
19245
19251
  let dateRender = this.parent.activeView.renderDates;
19246
19252
  let workCells = [].slice.call(this.parent.element.querySelectorAll('.' + WORK_CELLS_CLASS));
19247
19253
  let workDays = this.parent.activeViewOptions.workDays;
@@ -19276,7 +19282,7 @@ class ActionBase {
19276
19282
  this.monthEvent.applyResourceColor(appointmentElement, event, 'backgroundColor', groupOrder);
19277
19283
  setStyleAttribute(appointmentElement, { 'width': appWidth + 'px', 'border': '0px', 'pointer-events': 'none' });
19278
19284
  const cellTd = workCells[parseInt(day.toString(), 10)];
19279
- if (cellTd && isNullOrUndefined(this.parent.eventDragArea)) {
19285
+ if (cellTd) {
19280
19286
  this.monthEvent.renderElement(cellTd, appointmentElement, true);
19281
19287
  this.actionObj.cloneElement.push(appointmentElement);
19282
19288
  }
@@ -21350,9 +21356,11 @@ class DragAndDrop extends ActionBase {
21350
21356
  }
21351
21357
  }
21352
21358
  const event = this.getUpdatedEvent(this.actionObj.start, this.actionObj.end, this.actionObj.event);
21353
- const eventWrappers = [].slice.call(this.parent.element.querySelectorAll('.' + CLONE_ELEMENT_CLASS));
21354
- for (const wrapper of eventWrappers) {
21355
- remove(wrapper);
21359
+ if (isNullOrUndefined(this.parent.eventDragArea)) {
21360
+ const eventWrappers = [].slice.call(this.parent.element.querySelectorAll('.' + CLONE_ELEMENT_CLASS));
21361
+ for (const wrapper of eventWrappers) {
21362
+ remove(wrapper);
21363
+ }
21356
21364
  }
21357
21365
  if (this.multiData && this.multiData.length > 0) {
21358
21366
  const startTime = resetTime(new Date(event[this.parent.eventFields.startTime]));