@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
|
@@ -8808,13 +8808,8 @@ class TimelineEvent extends MonthEvent {
|
|
|
8808
8808
|
}
|
|
8809
8809
|
}
|
|
8810
8810
|
getSameDayEventsWidth(startDate, endDate) {
|
|
8811
|
-
let intervalMins = this.interval;
|
|
8812
|
-
if (this.slotsPerDay === 1) {
|
|
8813
|
-
const hoursRange = getStartEndHours(resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
|
|
8814
|
-
intervalMins = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
8815
|
-
}
|
|
8816
8811
|
return ((getUniversalTime(endDate) - getUniversalTime(startDate)) /
|
|
8817
|
-
MS_PER_MINUTE * (this.cellWidth * this.slotCount) /
|
|
8812
|
+
MS_PER_MINUTE * (this.cellWidth * this.slotCount) / this.getIntervalInMinutes(startDate));
|
|
8818
8813
|
}
|
|
8819
8814
|
getSpannedEventsWidth(startDate, endDate, diffInDays) {
|
|
8820
8815
|
const width = (diffInDays * this.slotsPerDay) * this.cellWidth;
|
|
@@ -8840,13 +8835,13 @@ class TimelineEvent extends MonthEvent {
|
|
|
8840
8835
|
getAppointmentLeft(schedule, startTime, day) {
|
|
8841
8836
|
const slotTd = (this.isSameDay(startTime, schedule.startHour)) ?
|
|
8842
8837
|
((getUniversalTime(startTime) - getUniversalTime(schedule.startHour)) /
|
|
8843
|
-
(MS_PER_MINUTE * this.
|
|
8838
|
+
(MS_PER_MINUTE * this.getIntervalInMinutes(startTime))) * this.slotCount : 0;
|
|
8844
8839
|
if (day === 0) {
|
|
8845
8840
|
return slotTd;
|
|
8846
8841
|
}
|
|
8847
8842
|
else {
|
|
8848
8843
|
const daySlot = Math.round((((getUniversalTime(schedule.endHour) - getUniversalTime(schedule.startHour)) /
|
|
8849
|
-
MS_PER_MINUTE) / this.
|
|
8844
|
+
MS_PER_MINUTE) / this.getIntervalInMinutes(startTime)) * this.slotCount);
|
|
8850
8845
|
return (daySlot * day) + slotTd;
|
|
8851
8846
|
}
|
|
8852
8847
|
}
|
|
@@ -8879,6 +8874,13 @@ class TimelineEvent extends MonthEvent {
|
|
|
8879
8874
|
return this.getFilteredEvents(startTime, endTime, gIndex, eventsList);
|
|
8880
8875
|
}
|
|
8881
8876
|
}
|
|
8877
|
+
getIntervalInMinutes(startDate) {
|
|
8878
|
+
if (this.slotsPerDay !== 1) {
|
|
8879
|
+
return this.interval;
|
|
8880
|
+
}
|
|
8881
|
+
const hoursRange = getStartEndHours(resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
|
|
8882
|
+
return (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
8883
|
+
}
|
|
8882
8884
|
isAlreadyAvail(appPos, cellTd) {
|
|
8883
8885
|
const moreIndicator = [].slice.call(cellTd.querySelectorAll('.' + MORE_INDICATOR_CLASS));
|
|
8884
8886
|
for (let i = 0; i < moreIndicator.length; i++) {
|