@syncfusion/ej2-schedule 25.1.39 → 25.1.41

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.
@@ -7319,9 +7319,12 @@ class VerticalEvent extends EventBase {
7319
7319
  return (tempLeft > 99 ? 99 : tempLeft) + '%';
7320
7320
  }
7321
7321
  getTopValue(date, day, resource) {
7322
- const startEndHours = getStartEndHours(resetTime(this.dateRender[parseInt(resource.toString(), 10)][parseInt(day.toString(), 10)]), this.startHour, this.endHour);
7322
+ const viewDate = resetTime(this.dateRender[parseInt(resource.toString(), 10)][parseInt(day.toString(), 10)]);
7323
+ const startEndHours = getStartEndHours(viewDate, this.startHour, this.endHour);
7323
7324
  const startHour = startEndHours.startHour;
7324
- const diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
7325
+ const adjustedStartHour = isDaylightSavingTime(viewDate) && (startHour.getHours() !== this.startHour.getHours()) ?
7326
+ this.startHour.getHours() : startHour.getHours();
7327
+ const diffInMinutes = ((date.getHours() - adjustedStartHour) * 60) + (date.getMinutes() - startHour.getMinutes());
7325
7328
  return (this.parent.activeViewOptions.timeScale.enable) ? ((diffInMinutes * this.cellHeight * this.slotCount) / this.interval) : 0;
7326
7329
  }
7327
7330
  getOverlapIndex(record, day, isAllDay, resource) {
@@ -12292,7 +12295,7 @@ class EventWindow {
12292
12295
  const resourceInput = this.createInputElement(value + ' ' + EVENT_FIELD$1, fieldName);
12293
12296
  resourceDiv.appendChild(resourceInput);
12294
12297
  const resourceTemplate = function (data) {
12295
- return `<div class="e-resource-template"><div class="e-resource-color" style="background-color:${data[resourceData.colorField]}"></div><div class="e-resource-text">${data[resourceData.textField]}</div></div>`;
12298
+ return SanitizeHtmlHelper.sanitize(`<div class="e-resource-template"><div class="e-resource-color" style="background-color:${data[resourceData.colorField]}"></div><div class="e-resource-text">${data[resourceData.textField]}</div></div>`);
12296
12299
  };
12297
12300
  initializeCSPTemplate(resourceTemplate, resourceData);
12298
12301
  if (resourceData.allowMultiple) {