@syncfusion/ej2-schedule 27.2.2 → 27.2.5

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.
@@ -11117,7 +11117,9 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
11117
11117
  removeClass([args.element], POPUP_OPEN);
11118
11118
  addClass([args.element], POPUP_CLOSE);
11119
11119
  }
11120
- this.parent.resetTemplates(['tooltipTemplate', 'headerTooltipTemplate']);
11120
+ if (!(this.parent.isReact && this.parent.eventWindow.dialogObject && this.parent.eventWindow.dialogObject.visible)) {
11121
+ this.parent.resetTemplates(['tooltipTemplate', 'headerTooltipTemplate']);
11122
+ }
11121
11123
  };
11122
11124
  EventTooltip.prototype.setContent = function (content) {
11123
11125
  this.tooltipObj.setProperties({ content: content, windowCollision: true }, true);
@@ -24788,9 +24790,13 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24788
24790
  };
24789
24791
  VerticalView.prototype.getTopFromDateTime = function (date) {
24790
24792
  var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
24793
+ var endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
24791
24794
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
24792
- return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) /
24793
- this.parent.activeViewOptions.timeScale.interval;
24795
+ var hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
24796
+ var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
24797
+ this.parent.activeViewOptions.timeScale.interval :
24798
+ (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
24799
+ return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) / interval;
24794
24800
  };
24795
24801
  VerticalView.prototype.getWorkCellHeight = function () {
24796
24802
  return parseFloat(this.parent.getElementHeight(this.element.querySelector('.' + WORK_CELLS_CLASS)).toFixed(2));
@@ -27963,8 +27969,13 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27963
27969
  };
27964
27970
  TimelineViews.prototype.getLeftFromDateTime = function (currentDateIndex, date) {
27965
27971
  var startHour = this.getStartHour();
27972
+ var endHour = this.getEndHour();
27966
27973
  var diffInDates = 0;
27967
27974
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
27975
+ var hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
27976
+ var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
27977
+ this.parent.activeViewOptions.timeScale.interval :
27978
+ (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
27968
27979
  if (!isNullOrUndefined(currentDateIndex)) {
27969
27980
  if (currentDateIndex[0] !== 0) {
27970
27981
  var index = this.parent.activeView.colLevels.findIndex(function (level) { return level[0].type === 'dateHeader'; });
@@ -27974,15 +27985,15 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27974
27985
  this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
27975
27986
  }
27976
27987
  else {
27977
- var endHour = this.getEndHour();
27978
- var end = (endHour.getHours() === 0) ? 24 : endHour.getHours();
27988
+ var endHour_1 = this.getEndHour();
27989
+ var end = (endHour_1.getHours() === 0) ? 24 : endHour_1.getHours();
27979
27990
  diffInMinutes = diffInMinutes + ((currentDateIndex[0]) * (((end - startHour.getHours()) * 60) +
27980
- (endHour.getMinutes() - startHour.getMinutes())));
27991
+ (endHour_1.getMinutes() - startHour.getMinutes())));
27981
27992
  }
27982
27993
  }
27983
27994
  }
27984
27995
  return diffInDates + ((diffInMinutes * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'))
27985
- * this.parent.activeViewOptions.timeScale.slotCount) / this.parent.activeViewOptions.timeScale.interval);
27996
+ * this.parent.activeViewOptions.timeScale.slotCount) / interval);
27986
27997
  };
27987
27998
  TimelineViews.prototype.renderHeader = function () {
27988
27999
  var tr = createElement('tr');