@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.
- package/CHANGELOG.md +9 -0
- package/dist/ej2-schedule.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +6 -3
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +6 -3
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/schedule/event-renderer/vertical-view.js +5 -2
- package/src/schedule/popups/event-window.js +1 -1
|
@@ -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
|
|
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
|
|
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) {
|