@syncfusion/ej2-schedule 25.1.39 → 25.1.42
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 +17 -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 +8 -4
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +8 -4
- 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/timeline-view.js +1 -1
- package/src/schedule/event-renderer/vertical-view.js +5 -2
- package/src/schedule/popups/event-window.js +1 -1
- package/src/schedule/popups/quick-popups.js +1 -0
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/schedule/_layout.scss +1 -1
- package/styles/schedule/bootstrap-dark.css +1 -1
- package/styles/schedule/bootstrap.css +1 -1
- package/styles/schedule/bootstrap4.css +1 -1
- package/styles/schedule/bootstrap5-dark.css +1 -1
- package/styles/schedule/bootstrap5.css +1 -1
- package/styles/schedule/fabric-dark.css +1 -1
- package/styles/schedule/fabric.css +1 -1
- package/styles/schedule/fluent-dark.css +1 -1
- package/styles/schedule/fluent.css +1 -1
- package/styles/schedule/highcontrast-light.css +1 -1
- package/styles/schedule/highcontrast.css +1 -1
- package/styles/schedule/material-dark.css +1 -1
- package/styles/schedule/material.css +1 -1
- package/styles/schedule/material3-dark.css +1 -1
- package/styles/schedule/material3.css +1 -1
- package/styles/schedule/tailwind-dark.css +1 -1
- package/styles/schedule/tailwind.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
|
@@ -7473,9 +7473,12 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
7473
7473
|
return (tempLeft > 99 ? 99 : tempLeft) + '%';
|
|
7474
7474
|
};
|
|
7475
7475
|
VerticalEvent.prototype.getTopValue = function (date, day, resource) {
|
|
7476
|
-
var
|
|
7476
|
+
var viewDate = resetTime(this.dateRender[parseInt(resource.toString(), 10)][parseInt(day.toString(), 10)]);
|
|
7477
|
+
var startEndHours = getStartEndHours(viewDate, this.startHour, this.endHour);
|
|
7477
7478
|
var startHour = startEndHours.startHour;
|
|
7478
|
-
var
|
|
7479
|
+
var adjustedStartHour = isDaylightSavingTime(viewDate) && (startHour.getHours() !== this.startHour.getHours()) ?
|
|
7480
|
+
this.startHour.getHours() : startHour.getHours();
|
|
7481
|
+
var diffInMinutes = ((date.getHours() - adjustedStartHour) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
7479
7482
|
return (this.parent.activeViewOptions.timeScale.enable) ? ((diffInMinutes * this.cellHeight * this.slotCount) / this.interval) : 0;
|
|
7480
7483
|
};
|
|
7481
7484
|
VerticalEvent.prototype.getOverlapIndex = function (record, day, isAllDay, resource) {
|
|
@@ -8789,7 +8792,7 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
8789
8792
|
var resIndex = parseInt(element.getAttribute('data-group-index'), 10);
|
|
8790
8793
|
var firstChild = this.getFirstChild(resIndex);
|
|
8791
8794
|
element.style.height = firstChild.offsetHeight + 'px';
|
|
8792
|
-
var width =
|
|
8795
|
+
var width = element.offsetWidth / firstChild.offsetWidth;
|
|
8793
8796
|
element.style.width = (firstChild.offsetWidth * width) + 'px';
|
|
8794
8797
|
}
|
|
8795
8798
|
var blockIndicator = [].slice.call(this.element.querySelectorAll('.' + BLOCK_INDICATOR_CLASS));
|
|
@@ -10724,6 +10727,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
|
|
|
10724
10727
|
removeChildren(form);
|
|
10725
10728
|
form.remove();
|
|
10726
10729
|
}
|
|
10730
|
+
this.parent.resetTemplates(['content', 'header', 'footer']);
|
|
10727
10731
|
}
|
|
10728
10732
|
};
|
|
10729
10733
|
QuickPopups.prototype.refreshQuickDialog = function () {
|
|
@@ -12584,7 +12588,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12584
12588
|
var resourceInput = this.createInputElement(value + ' ' + EVENT_FIELD$1, fieldName);
|
|
12585
12589
|
resourceDiv.appendChild(resourceInput);
|
|
12586
12590
|
var resourceTemplate = function (data) {
|
|
12587
|
-
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>";
|
|
12591
|
+
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>");
|
|
12588
12592
|
};
|
|
12589
12593
|
initializeCSPTemplate(resourceTemplate, resourceData);
|
|
12590
12594
|
if (resourceData.allowMultiple) {
|