@syncfusion/ej2-schedule 27.2.2 → 27.2.5
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 +15 -4
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +18 -7
- 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 +12 -12
- package/src/schedule/models/event-settings-model.d.ts +2 -1
- package/src/schedule/models/event-settings.d.ts +2 -1
- package/src/schedule/popups/event-tooltip.js +3 -1
- package/src/schedule/renderer/timeline-view.js +9 -4
- package/src/schedule/renderer/vertical-view.js +6 -2
- package/styles/bootstrap5-dark-lite.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5-lite.css +4 -0
- package/styles/bootstrap5.3-lite.css +4 -0
- package/styles/bootstrap5.3.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/schedule/bootstrap5-dark.css +4 -0
- package/styles/schedule/bootstrap5.3.css +4 -0
- package/styles/schedule/bootstrap5.css +4 -0
|
@@ -10864,7 +10864,9 @@ class EventTooltip {
|
|
|
10864
10864
|
removeClass([args.element], POPUP_OPEN);
|
|
10865
10865
|
addClass([args.element], POPUP_CLOSE);
|
|
10866
10866
|
}
|
|
10867
|
-
this.parent.
|
|
10867
|
+
if (!(this.parent.isReact && this.parent.eventWindow.dialogObject && this.parent.eventWindow.dialogObject.visible)) {
|
|
10868
|
+
this.parent.resetTemplates(['tooltipTemplate', 'headerTooltipTemplate']);
|
|
10869
|
+
}
|
|
10868
10870
|
}
|
|
10869
10871
|
setContent(content) {
|
|
10870
10872
|
this.tooltipObj.setProperties({ content: content, windowCollision: true }, true);
|
|
@@ -23954,9 +23956,13 @@ class VerticalView extends ViewBase {
|
|
|
23954
23956
|
}
|
|
23955
23957
|
getTopFromDateTime(date) {
|
|
23956
23958
|
const startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
|
|
23959
|
+
const endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
|
|
23957
23960
|
const diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
23958
|
-
|
|
23959
|
-
|
|
23961
|
+
const hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
|
|
23962
|
+
const interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
|
|
23963
|
+
this.parent.activeViewOptions.timeScale.interval :
|
|
23964
|
+
(hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
23965
|
+
return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) / interval;
|
|
23960
23966
|
}
|
|
23961
23967
|
getWorkCellHeight() {
|
|
23962
23968
|
return parseFloat(this.parent.getElementHeight(this.element.querySelector('.' + WORK_CELLS_CLASS)).toFixed(2));
|
|
@@ -26944,8 +26950,13 @@ class TimelineViews extends VerticalView {
|
|
|
26944
26950
|
}
|
|
26945
26951
|
getLeftFromDateTime(currentDateIndex, date) {
|
|
26946
26952
|
const startHour = this.getStartHour();
|
|
26953
|
+
const endHour = this.getEndHour();
|
|
26947
26954
|
let diffInDates = 0;
|
|
26948
26955
|
let diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
26956
|
+
const hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
|
|
26957
|
+
const interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
|
|
26958
|
+
this.parent.activeViewOptions.timeScale.interval :
|
|
26959
|
+
(hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
26949
26960
|
if (!isNullOrUndefined(currentDateIndex)) {
|
|
26950
26961
|
if (currentDateIndex[0] !== 0) {
|
|
26951
26962
|
const index = this.parent.activeView.colLevels.findIndex((level) => level[0].type === 'dateHeader');
|
|
@@ -26963,7 +26974,7 @@ class TimelineViews extends VerticalView {
|
|
|
26963
26974
|
}
|
|
26964
26975
|
}
|
|
26965
26976
|
return diffInDates + ((diffInMinutes * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'))
|
|
26966
|
-
* this.parent.activeViewOptions.timeScale.slotCount) /
|
|
26977
|
+
* this.parent.activeViewOptions.timeScale.slotCount) / interval);
|
|
26967
26978
|
}
|
|
26968
26979
|
renderHeader() {
|
|
26969
26980
|
const tr = createElement('tr');
|