@syncfusion/ej2-schedule 20.1.56 → 20.1.57
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 -1
- 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 +34 -25
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +32 -23
- 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/actions/drag.js +9 -9
- package/src/schedule/base/schedule.js +5 -1
- package/src/schedule/event-renderer/agenda-base.js +3 -0
- package/src/schedule/event-renderer/event-base.js +13 -11
- package/src/schedule/popups/quick-popups.js +2 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.1.
|
|
3
|
+
* version : 20.1.57
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-schedule@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-schedule@20.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@20.1.56",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-itq16KmohzdmQIkD1yBVA4IRLG3wM64+gfpPCtFLaY4YxBFZCpNZJuFBHbyya+JIuqF2N4bAeGVGpurpSEplYA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-schedule",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-schedule",
|
|
24
24
|
"/@syncfusion/ej2-vue-schedule"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.1.56.tgz",
|
|
27
|
+
"_shasum": "4d87acbdba4f46c0f6fec5f5605dc648ba192176",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~20.1.56",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~20.1.55",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.1.57",
|
|
41
41
|
"@syncfusion/ej2-data": "~20.1.55",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.1.57",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~20.1.55",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~20.1.55",
|
|
45
45
|
"@syncfusion/ej2-lists": "~20.1.55",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~20.1.
|
|
47
|
-
"@syncfusion/ej2-popups": "~20.1.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~20.1.57",
|
|
47
|
+
"@syncfusion/ej2-popups": "~20.1.57"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
50
50
|
"description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
82
82
|
},
|
|
83
83
|
"typings": "index.d.ts",
|
|
84
|
-
"version": "20.1.
|
|
84
|
+
"version": "20.1.57",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -570,7 +570,7 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
570
570
|
var eventObj = extend({}, this.actionObj.event, null, true);
|
|
571
571
|
var eventStart = eventObj[this.parent.eventFields.startTime];
|
|
572
572
|
var eventEnd = eventObj[this.parent.eventFields.endTime];
|
|
573
|
-
var eventDuration =
|
|
573
|
+
var eventDuration = util.getUniversalTime(eventEnd) - util.getUniversalTime(eventStart);
|
|
574
574
|
var offsetTop = Math.floor(parseInt(this.actionObj.clone.style.top, 10) / this.actionObj.cellHeight)
|
|
575
575
|
* this.actionObj.cellHeight;
|
|
576
576
|
offsetTop = offsetTop < 0 ? 0 : offsetTop;
|
|
@@ -929,8 +929,8 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
929
929
|
if (isNullOrUndefined(this.parent.eventDragArea)) {
|
|
930
930
|
this.removeCloneElement();
|
|
931
931
|
}
|
|
932
|
-
var eventDuration = eventObj[this.parent.eventFields.endTime]
|
|
933
|
-
eventObj[this.parent.eventFields.startTime]
|
|
932
|
+
var eventDuration = util.getUniversalTime(eventObj[this.parent.eventFields.endTime]) -
|
|
933
|
+
util.getUniversalTime(eventObj[this.parent.eventFields.startTime]);
|
|
934
934
|
var td = closest(this.actionObj.target, 'td');
|
|
935
935
|
if (!isNullOrUndefined(td)) {
|
|
936
936
|
var tr = td.parentElement;
|
|
@@ -944,11 +944,11 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
944
944
|
}
|
|
945
945
|
var timeString = new Date(currentDate.setDate(currentDate.getDate() - this.daysVariation));
|
|
946
946
|
var dragStart = new Date(timeString.getTime());
|
|
947
|
+
var startTimeDiff = util.getUniversalTime(eventObj[this.parent.eventFields.startTime]) -
|
|
948
|
+
util.getUniversalTime(util.resetTime(new Date(+eventObj[this.parent.eventFields.startTime])));
|
|
949
|
+
dragStart.setMilliseconds(startTimeDiff);
|
|
947
950
|
var dragEnd = new Date(dragStart.getTime());
|
|
948
|
-
|
|
949
|
-
(util.resetTime(new Date(+eventObj[this.parent.eventFields.startTime]))).getTime();
|
|
950
|
-
dragStart = new Date(dragStart.getTime() + startTimeDiff);
|
|
951
|
-
dragEnd = new Date(dragStart.getTime() + eventDuration);
|
|
951
|
+
dragEnd.setMilliseconds(eventDuration);
|
|
952
952
|
this.actionObj.start = new Date(dragStart.getTime());
|
|
953
953
|
this.actionObj.end = new Date(dragEnd.getTime());
|
|
954
954
|
}
|
|
@@ -1004,8 +1004,8 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
DragAndDrop.prototype.calculateTimelineTime = function (e) {
|
|
1006
1006
|
var eventObj = extend({}, this.actionObj.event, null, true);
|
|
1007
|
-
var eventDuration = eventObj[this.parent.eventFields.endTime]
|
|
1008
|
-
eventObj[this.parent.eventFields.startTime]
|
|
1007
|
+
var eventDuration = util.getUniversalTime(eventObj[this.parent.eventFields.endTime]) -
|
|
1008
|
+
util.getUniversalTime(eventObj[this.parent.eventFields.startTime]);
|
|
1009
1009
|
var offsetLeft = this.parent.enableRtl ? Math.abs(this.actionObj.clone.offsetLeft) - this.actionObj.clone.offsetWidth :
|
|
1010
1010
|
parseInt(this.actionObj.clone.style.left, 10);
|
|
1011
1011
|
offsetLeft = Math.floor(offsetLeft / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
@@ -1324,8 +1324,12 @@ var Schedule = /** @class */ (function (_super) {
|
|
|
1324
1324
|
this.refreshEvents(false);
|
|
1325
1325
|
}
|
|
1326
1326
|
break;
|
|
1327
|
-
case 'showWeekend':
|
|
1328
1327
|
case 'workDays':
|
|
1328
|
+
if (JSON.stringify(oldProp.workDays) !== JSON.stringify(newProp.workDays)) {
|
|
1329
|
+
state.isLayout = true;
|
|
1330
|
+
}
|
|
1331
|
+
break;
|
|
1332
|
+
case 'showWeekend':
|
|
1329
1333
|
case 'startHour':
|
|
1330
1334
|
case 'endHour':
|
|
1331
1335
|
case 'workHours':
|
|
@@ -36,6 +36,9 @@ var AgendaBase = /** @class */ (function (_super) {
|
|
|
36
36
|
itemClass: this.parent.activeView.viewClass,
|
|
37
37
|
template: "<div class=\"" + cls.AGENDA_NO_EVENT_CLASS + "\">" + this.parent.localeObj.getConstant('noEvents') + "</div>"
|
|
38
38
|
});
|
|
39
|
+
if (listElement.querySelector('.e-agenda-item').children.length === 0) {
|
|
40
|
+
listElement.firstElementChild.appendChild(createElement('div', { className: cls.AGENDA_NO_EVENT_CLASS, innerHTML: this.parent.localeObj.getConstant('noEvents') }));
|
|
41
|
+
}
|
|
39
42
|
}
|
|
40
43
|
else {
|
|
41
44
|
listElement = ListBase.createList(this.parent.createElement, listData, {
|
|
@@ -641,7 +641,7 @@ var EventBase = /** @class */ (function () {
|
|
|
641
641
|
EventBase.prototype.isAllDayAppointment = function (event) {
|
|
642
642
|
var fieldMapping = this.parent.eventFields;
|
|
643
643
|
var isAllDay = event[fieldMapping.isAllDay];
|
|
644
|
-
var isFullDay = ((event[fieldMapping.endTime]
|
|
644
|
+
var isFullDay = ((util.getUniversalTime(event[fieldMapping.endTime]) - util.getUniversalTime(event[fieldMapping.startTime]))
|
|
645
645
|
/ util.MS_PER_DAY) >= 1;
|
|
646
646
|
return (isAllDay || (this.parent.eventSettings.spannedEventPlacement !== 'TimeSlot' && isFullDay)) ? true : false;
|
|
647
647
|
};
|
|
@@ -1224,16 +1224,18 @@ var EventBase = /** @class */ (function () {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
1226
|
EventBase.prototype.updateEventMinimumDuration = function (startEndHours, startTime, endTime) {
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1227
|
+
if (startTime.getTime() < endTime.getTime()) {
|
|
1228
|
+
var eventDuration = (util.getUniversalTime(endTime) - util.getUniversalTime(startTime)) / util.MS_PER_MINUTE;
|
|
1229
|
+
if (eventDuration < this.parent.eventSettings.minimumEventDuration) {
|
|
1230
|
+
var tempEnd = new Date(startTime);
|
|
1231
|
+
tempEnd.setMinutes(tempEnd.getMinutes() + this.parent.eventSettings.minimumEventDuration);
|
|
1232
|
+
endTime = tempEnd;
|
|
1233
|
+
if (endTime.getTime() > startEndHours.endHour.getTime()) {
|
|
1234
|
+
var tempStart = new Date(startEndHours.endHour.getTime());
|
|
1235
|
+
tempStart.setMinutes(tempStart.getMinutes() - this.parent.eventSettings.minimumEventDuration);
|
|
1236
|
+
startTime = tempStart;
|
|
1237
|
+
endTime = startEndHours.endHour;
|
|
1238
|
+
}
|
|
1237
1239
|
}
|
|
1238
1240
|
}
|
|
1239
1241
|
return { startDate: startTime, endDate: endTime };
|
|
@@ -764,11 +764,11 @@ var QuickPopups = /** @class */ (function () {
|
|
|
764
764
|
(endDate.getTime() - startDate.getTime()) / (60 * 60 * 1000) < 24 ? 1 : 0;
|
|
765
765
|
if (eventData[fields.isAllDay]) {
|
|
766
766
|
details = startDateDetails + ' (' + this.l10n.getConstant('allDay') + ')';
|
|
767
|
-
if (((
|
|
767
|
+
if (((util.getUniversalTime(endDate) - util.getUniversalTime(startDate)) / util.MS_PER_DAY) > 1) {
|
|
768
768
|
details += ' - ' + endDateDetails + ' (' + this.l10n.getConstant('allDay') + ')';
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
else if ((((
|
|
771
|
+
else if ((((util.getUniversalTime(endDate) - util.getUniversalTime(startDate)) / util.MS_PER_DAY) >= 1) || spanLength > 0) {
|
|
772
772
|
details = startDateDetails + ' (' + startTimeDetail + ')' + ' - ' + endDateDetails + ' (' + endTimeDetail + ')';
|
|
773
773
|
}
|
|
774
774
|
else {
|