@syncfusion/ej2-schedule 27.1.53 → 27.1.55
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/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 +10 -8
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +10 -8
- 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.d.ts +1 -0
- package/src/schedule/event-renderer/timeline-view.js +10 -8
|
@@ -9033,13 +9033,8 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
9033
9033
|
}
|
|
9034
9034
|
};
|
|
9035
9035
|
TimelineEvent.prototype.getSameDayEventsWidth = function (startDate, endDate) {
|
|
9036
|
-
var intervalMins = this.interval;
|
|
9037
|
-
if (this.slotsPerDay === 1) {
|
|
9038
|
-
var hoursRange = getStartEndHours(resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
|
|
9039
|
-
intervalMins = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
9040
|
-
}
|
|
9041
9036
|
return ((getUniversalTime(endDate) - getUniversalTime(startDate)) /
|
|
9042
|
-
MS_PER_MINUTE * (this.cellWidth * this.slotCount) /
|
|
9037
|
+
MS_PER_MINUTE * (this.cellWidth * this.slotCount) / this.getIntervalInMinutes(startDate));
|
|
9043
9038
|
};
|
|
9044
9039
|
TimelineEvent.prototype.getSpannedEventsWidth = function (startDate, endDate, diffInDays) {
|
|
9045
9040
|
var width = (diffInDays * this.slotsPerDay) * this.cellWidth;
|
|
@@ -9065,13 +9060,13 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
9065
9060
|
TimelineEvent.prototype.getAppointmentLeft = function (schedule, startTime, day) {
|
|
9066
9061
|
var slotTd = (this.isSameDay(startTime, schedule.startHour)) ?
|
|
9067
9062
|
((getUniversalTime(startTime) - getUniversalTime(schedule.startHour)) /
|
|
9068
|
-
(MS_PER_MINUTE * this.
|
|
9063
|
+
(MS_PER_MINUTE * this.getIntervalInMinutes(startTime))) * this.slotCount : 0;
|
|
9069
9064
|
if (day === 0) {
|
|
9070
9065
|
return slotTd;
|
|
9071
9066
|
}
|
|
9072
9067
|
else {
|
|
9073
9068
|
var daySlot = Math.round((((getUniversalTime(schedule.endHour) - getUniversalTime(schedule.startHour)) /
|
|
9074
|
-
MS_PER_MINUTE) / this.
|
|
9069
|
+
MS_PER_MINUTE) / this.getIntervalInMinutes(startTime)) * this.slotCount);
|
|
9075
9070
|
return (daySlot * day) + slotTd;
|
|
9076
9071
|
}
|
|
9077
9072
|
};
|
|
@@ -9104,6 +9099,13 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
9104
9099
|
return this.getFilteredEvents(startTime, endTime, gIndex, eventsList);
|
|
9105
9100
|
}
|
|
9106
9101
|
};
|
|
9102
|
+
TimelineEvent.prototype.getIntervalInMinutes = function (startDate) {
|
|
9103
|
+
if (this.slotsPerDay !== 1) {
|
|
9104
|
+
return this.interval;
|
|
9105
|
+
}
|
|
9106
|
+
var hoursRange = getStartEndHours(resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
|
|
9107
|
+
return (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
9108
|
+
};
|
|
9107
9109
|
TimelineEvent.prototype.isAlreadyAvail = function (appPos, cellTd) {
|
|
9108
9110
|
var moreIndicator = [].slice.call(cellTd.querySelectorAll('.' + MORE_INDICATOR_CLASS));
|
|
9109
9111
|
for (var i = 0; i < moreIndicator.length; i++) {
|