@syncfusion/ej2-schedule 20.3.57 → 20.3.58

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.
@@ -1635,7 +1635,9 @@ class ScheduleTouch {
1635
1635
  this.renderPanel(NEXT_PANEL_CLASS, 'next');
1636
1636
  this.nextPanel = {
1637
1637
  element: this.parent.activeView.getPanel(),
1638
- selectedDate: new Date(this.parent.selectedDate.getTime())
1638
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
1639
+ renderDates: this.parent.activeView.renderDates,
1640
+ colLevels: this.parent.activeView.colLevels
1639
1641
  };
1640
1642
  this.setDimensions(this.nextPanel.element);
1641
1643
  }
@@ -1648,7 +1650,9 @@ class ScheduleTouch {
1648
1650
  this.renderPanel(PREVIOUS_PANEL_CLASS, 'previous');
1649
1651
  this.previousPanel = {
1650
1652
  element: this.parent.activeView.getPanel(),
1651
- selectedDate: new Date(this.parent.selectedDate.getTime())
1653
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
1654
+ renderDates: this.parent.activeView.renderDates,
1655
+ colLevels: this.parent.activeView.colLevels
1652
1656
  };
1653
1657
  this.setDimensions(this.previousPanel.element);
1654
1658
  prevWidth = this.previousPanel.element.offsetWidth;
@@ -1697,7 +1701,9 @@ class ScheduleTouch {
1697
1701
  if (!this.currentPanel) {
1698
1702
  this.currentPanel = {
1699
1703
  element: this.parent.activeView.getPanel(),
1700
- selectedDate: new Date(this.parent.selectedDate.getTime())
1704
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
1705
+ renderDates: this.parent.activeView.renderDates,
1706
+ colLevels: this.parent.activeView.colLevels
1701
1707
  };
1702
1708
  this.setDimensions(this.currentPanel.element);
1703
1709
  }
@@ -1745,6 +1751,8 @@ class ScheduleTouch {
1745
1751
  else {
1746
1752
  translateX = swipeDirection === this.touchLeftDirection ? -this.currentPanel.element.offsetLeft : 0;
1747
1753
  }
1754
+ this.parent.activeView.renderDates = this.currentPanel.renderDates;
1755
+ this.parent.activeView.colLevels = this.currentPanel.colLevels;
1748
1756
  addClass([this.element], TRANSLATE_CLASS);
1749
1757
  this.element.style.transform = 'translatex(' + translateX + 'px)';
1750
1758
  if (this.parent.headerModule) {
@@ -1758,8 +1766,8 @@ class ScheduleTouch {
1758
1766
  cancelSwipe() {
1759
1767
  this.parent.activeView.setPanel(this.currentPanel.element);
1760
1768
  this.parent.setProperties({ selectedDate: this.currentPanel.selectedDate }, true);
1761
- this.parent.activeView.getRenderDates();
1762
- this.parent.activeView.generateColumnLevels();
1769
+ this.parent.activeView.renderDates = this.currentPanel.renderDates;
1770
+ this.parent.activeView.colLevels = this.currentPanel.colLevels;
1763
1771
  addClass([this.element], TRANSLATE_CLASS);
1764
1772
  const prevWidth = this.previousPanel ? this.previousPanel.element.offsetWidth : 0;
1765
1773
  this.element.style.transform = 'translatex(' + (this.parent.enableRtl ? prevWidth : -this.currentPanel.element.offsetLeft) + 'px)';
@@ -15063,7 +15071,7 @@ class ResourceBase {
15063
15071
  this.parent.on(documentClick, this.documentClick, this);
15064
15072
  }
15065
15073
  resourceTreeCreated() {
15066
- if (this.parent.portals) {
15074
+ if (this.parent.activeViewOptions.resourceHeaderTemplate && this.parent.portals && this.treeViewObj.portals) {
15067
15075
  this.parent.portals = this.parent.portals.concat(this.treeViewObj.portals);
15068
15076
  this.parent.renderTemplates();
15069
15077
  }