@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.
@@ -1641,7 +1641,9 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
1641
1641
  this.renderPanel(NEXT_PANEL_CLASS, 'next');
1642
1642
  this.nextPanel = {
1643
1643
  element: this.parent.activeView.getPanel(),
1644
- selectedDate: new Date(this.parent.selectedDate.getTime())
1644
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
1645
+ renderDates: this.parent.activeView.renderDates,
1646
+ colLevels: this.parent.activeView.colLevels
1645
1647
  };
1646
1648
  this.setDimensions(this.nextPanel.element);
1647
1649
  }
@@ -1654,7 +1656,9 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
1654
1656
  this.renderPanel(PREVIOUS_PANEL_CLASS, 'previous');
1655
1657
  this.previousPanel = {
1656
1658
  element: this.parent.activeView.getPanel(),
1657
- selectedDate: new Date(this.parent.selectedDate.getTime())
1659
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
1660
+ renderDates: this.parent.activeView.renderDates,
1661
+ colLevels: this.parent.activeView.colLevels
1658
1662
  };
1659
1663
  this.setDimensions(this.previousPanel.element);
1660
1664
  prevWidth = this.previousPanel.element.offsetWidth;
@@ -1703,7 +1707,9 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
1703
1707
  if (!this.currentPanel) {
1704
1708
  this.currentPanel = {
1705
1709
  element: this.parent.activeView.getPanel(),
1706
- selectedDate: new Date(this.parent.selectedDate.getTime())
1710
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
1711
+ renderDates: this.parent.activeView.renderDates,
1712
+ colLevels: this.parent.activeView.colLevels
1707
1713
  };
1708
1714
  this.setDimensions(this.currentPanel.element);
1709
1715
  }
@@ -1752,6 +1758,8 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
1752
1758
  else {
1753
1759
  translateX = swipeDirection === _this.touchLeftDirection ? -_this.currentPanel.element.offsetLeft : 0;
1754
1760
  }
1761
+ _this.parent.activeView.renderDates = _this.currentPanel.renderDates;
1762
+ _this.parent.activeView.colLevels = _this.currentPanel.colLevels;
1755
1763
  addClass([_this.element], TRANSLATE_CLASS);
1756
1764
  _this.element.style.transform = 'translatex(' + translateX + 'px)';
1757
1765
  if (_this.parent.headerModule) {
@@ -1765,8 +1773,8 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
1765
1773
  ScheduleTouch.prototype.cancelSwipe = function () {
1766
1774
  this.parent.activeView.setPanel(this.currentPanel.element);
1767
1775
  this.parent.setProperties({ selectedDate: this.currentPanel.selectedDate }, true);
1768
- this.parent.activeView.getRenderDates();
1769
- this.parent.activeView.generateColumnLevels();
1776
+ this.parent.activeView.renderDates = this.currentPanel.renderDates;
1777
+ this.parent.activeView.colLevels = this.currentPanel.colLevels;
1770
1778
  addClass([this.element], TRANSLATE_CLASS);
1771
1779
  var prevWidth = this.previousPanel ? this.previousPanel.element.offsetWidth : 0;
1772
1780
  this.element.style.transform = 'translatex(' + (this.parent.enableRtl ? prevWidth : -this.currentPanel.element.offsetLeft) + 'px)';
@@ -15594,7 +15602,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
15594
15602
  this.parent.on(documentClick, this.documentClick, this);
15595
15603
  };
15596
15604
  ResourceBase.prototype.resourceTreeCreated = function () {
15597
- if (this.parent.portals) {
15605
+ if (this.parent.activeViewOptions.resourceHeaderTemplate && this.parent.portals && this.treeViewObj.portals) {
15598
15606
  this.parent.portals = this.parent.portals.concat(this.treeViewObj.portals);
15599
15607
  this.parent.renderTemplates();
15600
15608
  }