@syncfusion/ej2-schedule 21.2.9 → 21.2.10
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 +8 -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 +10 -6
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +10 -6
- 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 +9 -9
- package/src/schedule/renderer/timeline-view.js +10 -6
- package/styles/bootstrap-dark.css +6 -0
- package/styles/bootstrap.css +6 -0
- package/styles/bootstrap4.css +6 -0
- package/styles/bootstrap5-dark.css +6 -0
- package/styles/bootstrap5.css +6 -0
- package/styles/fabric-dark.css +6 -0
- package/styles/fabric.css +6 -0
- package/styles/fluent-dark.css +6 -0
- package/styles/fluent.css +6 -0
- package/styles/highcontrast-light.css +6 -0
- package/styles/highcontrast.css +6 -0
- package/styles/material-dark.css +6 -0
- package/styles/material.css +6 -0
- package/styles/schedule/_layout.scss +5 -0
- package/styles/schedule/bootstrap-dark.css +6 -0
- package/styles/schedule/bootstrap.css +6 -0
- package/styles/schedule/bootstrap4.css +6 -0
- package/styles/schedule/bootstrap5-dark.css +6 -0
- package/styles/schedule/bootstrap5.css +6 -0
- package/styles/schedule/fabric-dark.css +6 -0
- package/styles/schedule/fabric.css +6 -0
- package/styles/schedule/fluent-dark.css +6 -0
- package/styles/schedule/fluent.css +6 -0
- package/styles/schedule/highcontrast-light.css +6 -0
- package/styles/schedule/highcontrast.css +6 -0
- package/styles/schedule/material-dark.css +6 -0
- package/styles/schedule/material.css +6 -0
- package/styles/schedule/tailwind-dark.css +6 -0
- package/styles/schedule/tailwind.css +6 -0
- package/styles/tailwind-dark.css +6 -0
- package/styles/tailwind.css +6 -0
|
@@ -26516,18 +26516,22 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
26516
26516
|
};
|
|
26517
26517
|
TimelineViews.prototype.getLeftFromDateTime = function (currentDateIndex, date) {
|
|
26518
26518
|
var startHour = this.getStartHour();
|
|
26519
|
-
var endHour = this.getEndHour();
|
|
26520
26519
|
var diffInDates = 0;
|
|
26521
26520
|
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
26522
26521
|
if (!isNullOrUndefined(currentDateIndex)) {
|
|
26523
|
-
var end = (endHour.getHours() === 0) ? 24 : endHour.getHours();
|
|
26524
26522
|
if (currentDateIndex[0] !== 0) {
|
|
26525
|
-
|
|
26523
|
+
if (this.parent.activeView.colLevels[0] && this.parent.activeView.colLevels[0][0].colSpan) {
|
|
26524
|
+
diffInDates = currentDateIndex[0] * this.parent.activeView.colLevels[0][0].colSpan * this.getWorkCellWidth();
|
|
26525
|
+
}
|
|
26526
|
+
else {
|
|
26527
|
+
var endHour = this.getEndHour();
|
|
26528
|
+
var end = (endHour.getHours() === 0) ? 24 : endHour.getHours();
|
|
26529
|
+
diffInMinutes = diffInMinutes + ((currentDateIndex[0]) * (((end - startHour.getHours()) * 60) + (endHour.getMinutes() - startHour.getMinutes())));
|
|
26530
|
+
}
|
|
26526
26531
|
}
|
|
26527
|
-
diffInMinutes = diffInDates + diffInMinutes;
|
|
26528
26532
|
}
|
|
26529
|
-
return (diffInMinutes * this.getWorkCellWidth() * this.parent.activeViewOptions.timeScale.slotCount) /
|
|
26530
|
-
this.parent.activeViewOptions.timeScale.interval;
|
|
26533
|
+
return diffInDates + ((diffInMinutes * this.getWorkCellWidth() * this.parent.activeViewOptions.timeScale.slotCount) /
|
|
26534
|
+
this.parent.activeViewOptions.timeScale.interval);
|
|
26531
26535
|
};
|
|
26532
26536
|
TimelineViews.prototype.getWorkCellWidth = function () {
|
|
26533
26537
|
return this.element.querySelector('.e-work-cells').getBoundingClientRect().width;
|