@syncfusion/ej2-schedule 28.1.35 → 28.1.37
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 +21 -23
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +21 -24
- 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 -12
- package/src/schedule/actions/drag.js +16 -10
- package/src/schedule/base/schedule.js +0 -9
- package/src/schedule/renderer/month.js +1 -1
- package/src/schedule/renderer/timeline-view.js +1 -1
- package/src/schedule/renderer/timeline-year.js +1 -1
- package/src/schedule/renderer/vertical-view.js +2 -2
|
@@ -18711,9 +18711,6 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
18711
18711
|
var selectedCells = this.getSelectedCells();
|
|
18712
18712
|
for (var _i = 0, selectedCells_1 = selectedCells; _i < selectedCells_1.length; _i++) {
|
|
18713
18713
|
var cell = selectedCells_1[_i];
|
|
18714
|
-
if (this.currentView !== 'Year') {
|
|
18715
|
-
cell.setAttribute('aria-selected', 'false');
|
|
18716
|
-
}
|
|
18717
18714
|
cell.removeAttribute('tabindex');
|
|
18718
18715
|
}
|
|
18719
18716
|
removeClass(selectedCells, SELECTED_CELL_CLASS);
|
|
@@ -18731,12 +18728,6 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
18731
18728
|
* @private
|
|
18732
18729
|
*/
|
|
18733
18730
|
Schedule.prototype.addSelectedClass = function (cells, focusCell, isPreventScroll) {
|
|
18734
|
-
if (this.currentView !== 'Year') {
|
|
18735
|
-
for (var _i = 0, cells_1 = cells; _i < cells_1.length; _i++) {
|
|
18736
|
-
var cell = cells_1[_i];
|
|
18737
|
-
cell.setAttribute('aria-selected', 'true');
|
|
18738
|
-
}
|
|
18739
|
-
}
|
|
18740
18731
|
addClass(cells, SELECTED_CELL_CLASS);
|
|
18741
18732
|
if (focusCell) {
|
|
18742
18733
|
focusCell.setAttribute('tabindex', '0');
|
|
@@ -23042,7 +23033,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23042
23033
|
rows[rows.length - 1].option !== 'Date';
|
|
23043
23034
|
_this.isTimelineDayProcess = !_this.parent.activeViewOptions.timeScale.enable || _this.isHeaderRows ||
|
|
23044
23035
|
_this.parent.currentView === 'TimelineMonth' || (rows.length > 0 && rows[rows.length - 1].option === 'Date');
|
|
23045
|
-
_this.
|
|
23036
|
+
_this.isAllDayDrag = !_this.isTimelineDayProcess && eventObj[_this.parent.eventFields.isAllDay];
|
|
23037
|
+
_this.isStepDragging = !_this.isTimelineDayProcess && !_this.isAllDayDrag &&
|
|
23038
|
+
(_this.actionObj.slotInterval !== _this.actionObj.interval);
|
|
23046
23039
|
if (_this.isTimelineDayProcess) {
|
|
23047
23040
|
_this.timelineEventModule = new TimelineEvent(_this.parent, 'day');
|
|
23048
23041
|
}
|
|
@@ -23112,9 +23105,11 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23112
23105
|
this.heightUptoCursorPoint = (this.heightUptoCursorPoint === 0) ?
|
|
23113
23106
|
Math.ceil((Math.abs(this.actionObj.clone.getBoundingClientRect().top - this.actionObj.Y) / this.heightPerMinute)) *
|
|
23114
23107
|
this.heightPerMinute : this.heightUptoCursorPoint;
|
|
23115
|
-
|
|
23116
|
-
this.
|
|
23117
|
-
|
|
23108
|
+
if (['Day', 'Week', 'WorkWeek'].indexOf(this.parent.currentView) > -1) {
|
|
23109
|
+
this.isAllDayDrag = (this.parent.activeViewOptions.timeScale.enable) ?
|
|
23110
|
+
this.actionObj.clone.classList.contains(ALLDAY_APPOINTMENT_CLASS) :
|
|
23111
|
+
this.actionObj.event[this.parent.eventFields.isAllDay];
|
|
23112
|
+
}
|
|
23118
23113
|
if (this.isStepDragging && this.minDiff === 0) {
|
|
23119
23114
|
this.calculateMinutesDiff(eventObj);
|
|
23120
23115
|
}
|
|
@@ -23885,6 +23880,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23885
23880
|
index = index < 0 ? 0 : index;
|
|
23886
23881
|
var eventStart = this.isHeaderRows ? new Date(this.timelineEventModule.dateRender[parseInt(index.toString(), 10)].getTime()) :
|
|
23887
23882
|
this.parent.getDateFromElement(tr.children[parseInt(index.toString(), 10)]);
|
|
23883
|
+
eventStart = this.isAllDayDrag ? resetTime(eventStart) : eventStart;
|
|
23888
23884
|
if (this.isStepDragging) {
|
|
23889
23885
|
var widthDiff = this.getWidthDiff(tr, index);
|
|
23890
23886
|
if (widthDiff !== 0) {
|
|
@@ -23909,8 +23905,8 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23909
23905
|
}
|
|
23910
23906
|
}
|
|
23911
23907
|
else {
|
|
23912
|
-
if (this.isCursorAhead || cursorDrag) {
|
|
23913
|
-
var minutes = this.isTimelineDayProcess ? MINUTES_PER_DAY : this.actionObj.slotInterval;
|
|
23908
|
+
if ((this.isCursorAhead || cursorDrag) && !this.isAllDayDrag) {
|
|
23909
|
+
var minutes = this.isTimelineDayProcess || this.isAllDayDrag ? MINUTES_PER_DAY : this.actionObj.slotInterval;
|
|
23914
23910
|
eventStart.setMinutes(eventStart.getMinutes() + minutes);
|
|
23915
23911
|
eventStart.setMilliseconds(-(eventDuration));
|
|
23916
23912
|
if (eventStart.getTime() === resetTime(eventStart).getTime() && eventStart.getMinutes() === 0 && eventDuration === 0) {
|
|
@@ -23918,14 +23914,14 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23918
23914
|
}
|
|
23919
23915
|
}
|
|
23920
23916
|
else {
|
|
23921
|
-
eventStart.setMinutes(eventStart.getMinutes() -
|
|
23922
|
-
(this.
|
|
23917
|
+
eventStart.setMinutes(eventStart.getMinutes() - (this.cursorPointIndex *
|
|
23918
|
+
(this.isTimelineDayProcess || this.isAllDayDrag ? MINUTES_PER_DAY : this.actionObj.slotInterval)));
|
|
23923
23919
|
}
|
|
23924
23920
|
}
|
|
23925
23921
|
if (!this.isStepDragging) {
|
|
23926
23922
|
eventStart = this.calculateIntervalTime(eventStart);
|
|
23927
23923
|
}
|
|
23928
|
-
if (this.isTimelineDayProcess) {
|
|
23924
|
+
if (this.isTimelineDayProcess || this.isAllDayDrag) {
|
|
23929
23925
|
var eventSrt = eventObj[this.parent.eventFields.startTime];
|
|
23930
23926
|
eventStart.setHours(eventSrt.getHours(), eventSrt.getMinutes(), eventSrt.getSeconds());
|
|
23931
23927
|
}
|
|
@@ -24059,12 +24055,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
24059
24055
|
var td = closest(e.target, '.e-work-cells');
|
|
24060
24056
|
if (!isNullOrUndefined(td) && !this.isMorePopupOpened) {
|
|
24061
24057
|
var targetDate = this.parent.getDateFromElement(td);
|
|
24058
|
+
targetDate = this.isAllDayDrag ? resetTime(targetDate) : targetDate;
|
|
24062
24059
|
if (this.isHeaderRows) {
|
|
24063
24060
|
var currentIndex = Math.floor(left / this.actionObj.cellWidth);
|
|
24064
24061
|
targetDate = new Date(this.timelineEventModule.dateRender[currentIndex + index].getTime());
|
|
24065
24062
|
}
|
|
24066
24063
|
var timeDiff = targetDate.getTime() - event[this.parent.eventFields.startTime].getTime();
|
|
24067
|
-
if (this.isTimelineDayProcess) {
|
|
24064
|
+
if (this.isTimelineDayProcess || this.isAllDayDrag) {
|
|
24068
24065
|
this.cursorPointIndex = Math.abs(Math.ceil(timeDiff / (MS_PER_DAY)));
|
|
24069
24066
|
}
|
|
24070
24067
|
else {
|
|
@@ -25366,7 +25363,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25366
25363
|
var ntr = trEle.cloneNode();
|
|
25367
25364
|
var appointmentExpandCollapse = createElement('div', {
|
|
25368
25365
|
attrs: {
|
|
25369
|
-
'tabindex': '0', 'role': '
|
|
25366
|
+
'tabindex': '0', 'role': 'button',
|
|
25370
25367
|
title: this.parent.localeObj.getConstant('expandAllDaySection'), 'aria-disabled': 'false',
|
|
25371
25368
|
'aria-label': this.parent.localeObj.getConstant('expandAllDaySection')
|
|
25372
25369
|
},
|
|
@@ -25501,7 +25498,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25501
25498
|
var _this = this;
|
|
25502
25499
|
var rows = [];
|
|
25503
25500
|
var tr = createElement('tr');
|
|
25504
|
-
var td = createElement('td'
|
|
25501
|
+
var td = createElement('td');
|
|
25505
25502
|
var existingGroupIndices = this.getGroupIndices();
|
|
25506
25503
|
var handler = function (r) {
|
|
25507
25504
|
var ntr = tr.cloneNode();
|
|
@@ -26309,7 +26306,7 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
26309
26306
|
Month.prototype.getContentRows = function () {
|
|
26310
26307
|
var trows = [];
|
|
26311
26308
|
var tr = createElement('tr');
|
|
26312
|
-
var td = createElement('td'
|
|
26309
|
+
var td = createElement('td');
|
|
26313
26310
|
var slotDatas = this.getContentSlots();
|
|
26314
26311
|
var isTimeline = this.parent.currentView === 'TimelineMonth';
|
|
26315
26312
|
var existingGroupIndices = isTimeline ? this.getGroupIndices() : [];
|
|
@@ -28468,7 +28465,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
28468
28465
|
TimelineViews.prototype.getContentRows = function () {
|
|
28469
28466
|
var rows = [];
|
|
28470
28467
|
var tr = createElement('tr');
|
|
28471
|
-
var td = createElement('td'
|
|
28468
|
+
var td = createElement('td');
|
|
28472
28469
|
var trCount = this.getRowCount();
|
|
28473
28470
|
var existingGroupIndices = this.getGroupIndices();
|
|
28474
28471
|
for (var i = 0; i < trCount; i++) {
|
|
@@ -28934,7 +28931,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28934
28931
|
skeleton: 'full', calendar: this.parent.getCalendarMode()
|
|
28935
28932
|
});
|
|
28936
28933
|
var td = createElement('td', {
|
|
28937
|
-
className: WORK_CELLS_CLASS, attrs: { 'aria-
|
|
28934
|
+
className: WORK_CELLS_CLASS, attrs: { 'aria-label': announcementText }
|
|
28938
28935
|
});
|
|
28939
28936
|
contentTr.appendChild(td);
|
|
28940
28937
|
var dateHeader = createElement('div', {
|