@syncfusion/ej2-schedule 28.2.5 → 28.2.7
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 +19 -7
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +19 -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 +10 -10
- package/src/schedule/actions/touch.d.ts +1 -0
- package/src/schedule/actions/touch.js +8 -4
- package/src/schedule/renderer/month-agenda.js +1 -0
- package/src/schedule/renderer/timeline-view.js +10 -3
- package/styles/fluent2-lite.css +3 -3
- package/styles/fluent2.css +3 -3
- package/styles/recurrence-editor/_fluent2-definition.scss +2 -2
- package/styles/recurrence-editor/fluent2.css +3 -3
|
@@ -1959,17 +1959,21 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
|
|
|
1959
1959
|
EventHandler.add(this.element, 'touchend', this.preventEventClick, this);
|
|
1960
1960
|
}
|
|
1961
1961
|
this.parent.quickPopup.tapHoldEventPopup(e.originalEvent);
|
|
1962
|
+
this.triggerResizeStart(e.originalEvent);
|
|
1962
1963
|
}
|
|
1963
1964
|
else if (['Agenda', 'MonthAgenda', 'Year'].indexOf(this.parent.currentView) < 0) {
|
|
1964
1965
|
this.parent.selectedElements = [];
|
|
1965
1966
|
this.parent.eventBase.getSelectedEventElements(target);
|
|
1966
|
-
|
|
1967
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1968
|
-
this.parent.resizeModule.resizeStart(e.originalEvent);
|
|
1969
|
-
}
|
|
1967
|
+
this.triggerResizeStart(e.originalEvent);
|
|
1970
1968
|
}
|
|
1971
1969
|
}
|
|
1972
1970
|
};
|
|
1971
|
+
ScheduleTouch.prototype.triggerResizeStart = function (e) {
|
|
1972
|
+
if (this.parent.resizeModule && closest(e.target, '.' + EVENT_RESIZE_CLASS)) {
|
|
1973
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1974
|
+
this.parent.resizeModule.resizeStart(e);
|
|
1975
|
+
}
|
|
1976
|
+
};
|
|
1973
1977
|
ScheduleTouch.prototype.preventEventClick = function (e) {
|
|
1974
1978
|
e.preventDefault();
|
|
1975
1979
|
EventHandler.remove(this.element, 'touchend', this.preventEventClick);
|
|
@@ -28060,6 +28064,7 @@ var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
|
|
|
28060
28064
|
this.onEventRender(filterData, event.startTime);
|
|
28061
28065
|
this.parent.notify(eventsLoaded, {});
|
|
28062
28066
|
this.monthAgendaDate = new Date('' + event.startTime);
|
|
28067
|
+
this.parent.setProperties({ selectedDate: this.monthAgendaDate }, true);
|
|
28063
28068
|
};
|
|
28064
28069
|
MonthAgenda.prototype.onEventRender = function (events, date) {
|
|
28065
28070
|
this.agendaBase = this.getAgendaBase();
|
|
@@ -28407,9 +28412,16 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
28407
28412
|
var diffInDates = 0;
|
|
28408
28413
|
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
28409
28414
|
var hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
|
|
28410
|
-
var
|
|
28411
|
-
|
|
28412
|
-
|
|
28415
|
+
var totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
|
|
28416
|
+
var timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
|
|
28417
|
+
var interval = 0;
|
|
28418
|
+
if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
|
|
28419
|
+
interval = timescaleInterval;
|
|
28420
|
+
}
|
|
28421
|
+
else {
|
|
28422
|
+
interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
|
|
28423
|
+
(timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
|
|
28424
|
+
}
|
|
28413
28425
|
if (!isNullOrUndefined(currentDateIndex)) {
|
|
28414
28426
|
if (currentDateIndex[0] !== 0) {
|
|
28415
28427
|
var index = this.parent.activeView.colLevels.findIndex(function (level) { return level[0].type === 'dateHeader'; });
|