@syncfusion/ej2-schedule 20.3.56 → 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.
Files changed (47) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/ej2-schedule.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js +2 -2
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +18 -12
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +18 -12
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/dist/global/ej2-schedule.min.js +2 -2
  10. package/dist/global/ej2-schedule.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/schedule/actions/crud.js +0 -3
  14. package/src/schedule/actions/resize.js +4 -3
  15. package/src/schedule/actions/touch.js +13 -5
  16. package/src/schedule/base/interface.d.ts +2 -0
  17. package/src/schedule/base/resource.js +1 -1
  18. package/styles/bootstrap-dark.css +5 -5
  19. package/styles/bootstrap.css +5 -5
  20. package/styles/bootstrap4.css +5 -5
  21. package/styles/bootstrap5-dark.css +5 -5
  22. package/styles/bootstrap5.css +5 -5
  23. package/styles/fabric-dark.css +5 -5
  24. package/styles/fabric.css +5 -5
  25. package/styles/fluent-dark.css +5 -5
  26. package/styles/fluent.css +5 -5
  27. package/styles/highcontrast-light.css +5 -5
  28. package/styles/highcontrast.css +5 -5
  29. package/styles/material-dark.css +5 -5
  30. package/styles/material.css +5 -5
  31. package/styles/recurrence-editor/bootstrap-dark.css +5 -5
  32. package/styles/recurrence-editor/bootstrap.css +5 -5
  33. package/styles/recurrence-editor/bootstrap4.css +5 -5
  34. package/styles/recurrence-editor/bootstrap5-dark.css +5 -5
  35. package/styles/recurrence-editor/bootstrap5.css +5 -5
  36. package/styles/recurrence-editor/fabric-dark.css +5 -5
  37. package/styles/recurrence-editor/fabric.css +5 -5
  38. package/styles/recurrence-editor/fluent-dark.css +5 -5
  39. package/styles/recurrence-editor/fluent.css +5 -5
  40. package/styles/recurrence-editor/highcontrast-light.css +5 -5
  41. package/styles/recurrence-editor/highcontrast.css +5 -5
  42. package/styles/recurrence-editor/material-dark.css +5 -5
  43. package/styles/recurrence-editor/material.css +5 -5
  44. package/styles/recurrence-editor/tailwind-dark.css +5 -5
  45. package/styles/recurrence-editor/tailwind.css +5 -5
  46. package/styles/tailwind-dark.css +5 -5
  47. package/styles/tailwind.css +5 -5
@@ -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)';
@@ -14565,9 +14573,6 @@ var Crud = /** @__PURE__ @class */ (function () {
14565
14573
  var deletedEvents = eventCollections.follow.concat(eventCollections.occurrence);
14566
14574
  switch (action) {
14567
14575
  case 'EditSeries':
14568
- if ((childEvent[fields_2.startTime] > parentEvent[fields_2.startTime]) && childEvent[fields_2.recurrenceRule]) {
14569
- _this.processRecurrenceRule(parentEvent, childEvent);
14570
- }
14571
14576
  childEvent[fields_2.id] = parentEvent[fields_2.id];
14572
14577
  childEvent[fields_2.recurrenceID] = null;
14573
14578
  childEvent[fields_2.followingID] = null;
@@ -15597,7 +15602,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
15597
15602
  this.parent.on(documentClick, this.documentClick, this);
15598
15603
  };
15599
15604
  ResourceBase.prototype.resourceTreeCreated = function () {
15600
- if (this.parent.portals) {
15605
+ if (this.parent.activeViewOptions.resourceHeaderTemplate && this.parent.portals && this.treeViewObj.portals) {
15601
15606
  this.parent.portals = this.parent.portals.concat(this.treeViewObj.portals);
15602
15607
  this.parent.renderTemplates();
15603
15608
  }
@@ -19973,11 +19978,13 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
19973
19978
  resizeTime.setHours(eventEnd.getHours(), eventEnd.getMinutes(), eventEnd.getSeconds());
19974
19979
  }
19975
19980
  }
19981
+ var isNotHourSlot = ['TimelineMonth', 'Year', 'Month', 'Week', 'Date'].indexOf(headerName) !== -1 ||
19982
+ !this.parent.activeViewOptions.timeScale.enable;
19976
19983
  if (isLeft) {
19977
19984
  if ((eventEnd.getTime() - resizeTime.getTime()) <= 0) {
19978
19985
  resizeTime = isWithoutScale ? resetTime(eventEnd) : eventStart;
19979
19986
  }
19980
- this.actionObj.start = this.parent.activeViewOptions.timeScale.enable ? this.calculateIntervalTime(resizeTime) : resizeTime;
19987
+ this.actionObj.start = !isNotHourSlot ? this.calculateIntervalTime(resizeTime) : resizeTime;
19981
19988
  }
19982
19989
  else {
19983
19990
  var isTimeScaleViews = isTimeViews && this.parent.activeViewOptions.timeScale.enable;
@@ -19986,8 +19993,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
19986
19993
  if (isWithoutScale && (resizeEnd.getTime() - eventStart.getTime()) <= 0) {
19987
19994
  resizeEnd = addDays(resetTime(eventStart), 1);
19988
19995
  }
19989
- this.actionObj.end = this.parent.activeViewOptions.timeScale.enable && this.parent.currentView !== 'Month' ?
19990
- this.calculateIntervalTime(resizeEnd) : resizeEnd;
19996
+ this.actionObj.end = !isNotHourSlot ? this.calculateIntervalTime(resizeEnd) : resizeEnd;
19991
19997
  }
19992
19998
  };
19993
19999
  Resize.prototype.getTopBottomStyles = function (e, isTop) {