@syncfusion/ej2-schedule 20.4.38 → 20.4.42
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 +10 -0
- package/README.md +1 -1
- 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 +44 -23
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +44 -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 +16 -16
- package/src/schedule/actions/drag.js +30 -21
- package/src/schedule/actions/resize.js +14 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.42
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@20.4.40",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-9rsvmSZiEnAoFmsqayqrhXwZQK3ISXuH9kztAub0i6kH7cph8UafC2VkbpClrP3xLbzm835csRxsj0X0zhekNg==",
|
|
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": "https://nexus.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.4.40.tgz",
|
|
27
|
+
"_shasum": "dce137821e239cbe7a7c49223badbe8bbbf9414f",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.4.
|
|
43
|
-
"@syncfusion/ej2-excel-export": "~20.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
45
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
47
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.4.42",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.4.42",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.4.42",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.4.42",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.4.42",
|
|
43
|
+
"@syncfusion/ej2-excel-export": "~20.4.42",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.4.42",
|
|
45
|
+
"@syncfusion/ej2-lists": "~20.4.42",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~20.4.42",
|
|
47
|
+
"@syncfusion/ej2-popups": "~20.4.42"
|
|
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.",
|
|
51
51
|
"devDependencies": {},
|
|
52
52
|
"es2015": "./dist/es6/ej2-schedule.es5.js",
|
|
53
|
-
"homepage": "https://
|
|
53
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
54
54
|
"keywords": [
|
|
55
55
|
"ej2",
|
|
56
56
|
"syncfusion",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "20.4.
|
|
76
|
+
"version": "20.4.42",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -1014,7 +1014,7 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1014
1014
|
util.getUniversalTime(eventObj[this.parent.eventFields.startTime]);
|
|
1015
1015
|
var offsetLeft = this.parent.enableRtl ? Math.abs(this.actionObj.clone.offsetLeft) - this.actionObj.clone.offsetWidth :
|
|
1016
1016
|
parseInt(this.actionObj.clone.style.left, 10);
|
|
1017
|
-
offsetLeft = Math.floor(offsetLeft / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
1017
|
+
offsetLeft = Math.floor(offsetLeft / Math.trunc(this.actionObj.cellWidth)) * this.actionObj.cellWidth;
|
|
1018
1018
|
var rightOffset;
|
|
1019
1019
|
if (this.parent.enableRtl) {
|
|
1020
1020
|
rightOffset = Math.abs(parseInt(this.actionObj.clone.style.right, 10));
|
|
@@ -1100,25 +1100,27 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1100
1100
|
eventsData = this.updatedData;
|
|
1101
1101
|
}
|
|
1102
1102
|
for (var dataIndex = 0; dataIndex < eventsData.length; dataIndex++) {
|
|
1103
|
-
var events_2 = this.timelineEventModule.splitEvent(eventsData[parseInt(dataIndex.toString(), 10)], this.timelineEventModule.dateRender);
|
|
1104
|
-
var eventData = events_2[0].data;
|
|
1105
|
-
var startTime = this.timelineEventModule.getStartTime(events_2[0], eventData);
|
|
1106
|
-
var endTime = this.timelineEventModule.getEndTime(events_2[0], eventData);
|
|
1107
|
-
// eslint-disable-next-line max-len
|
|
1108
|
-
var width = this.timelineEventModule.getEventWidth(startTime, endTime, eventObj[this.parent.eventFields.isAllDay], eventData.count);
|
|
1109
|
-
// eslint-disable-next-line max-len
|
|
1110
|
-
var day = this.parent.getIndexOfDate(this.timelineEventModule.dateRender, util.resetTime(new Date(startTime.getTime())));
|
|
1111
|
-
day = day < 0 ? 0 : day;
|
|
1112
|
-
var left = this.timelineEventModule.getPosition(startTime, endTime, eventObj[this.parent.eventFields.isAllDay], day);
|
|
1113
1103
|
var cloneElement = this.multiData.length > 0 ? this.actionObj.cloneElement[parseInt(dataIndex.toString(), 10)] : this.actionObj.clone;
|
|
1114
|
-
if (this.parent.
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1104
|
+
if (isNullOrUndefined(this.parent.eventDragArea)) {
|
|
1105
|
+
var events_2 = this.timelineEventModule.splitEvent(eventsData[parseInt(dataIndex.toString(), 10)], this.timelineEventModule.dateRender);
|
|
1106
|
+
var eventData = events_2[0].data;
|
|
1107
|
+
var startTime = this.timelineEventModule.getStartTime(events_2[0], eventData);
|
|
1108
|
+
var endTime = this.timelineEventModule.getEndTime(events_2[0], eventData);
|
|
1109
|
+
// eslint-disable-next-line max-len
|
|
1110
|
+
var width = this.timelineEventModule.getEventWidth(startTime, endTime, eventObj[this.parent.eventFields.isAllDay], eventData.count);
|
|
1111
|
+
// eslint-disable-next-line max-len
|
|
1112
|
+
var day = this.parent.getIndexOfDate(this.timelineEventModule.dateRender, util.resetTime(new Date(startTime.getTime())));
|
|
1113
|
+
day = day < 0 ? 0 : day;
|
|
1114
|
+
var left = this.timelineEventModule.getPosition(startTime, endTime, eventObj[this.parent.eventFields.isAllDay], day);
|
|
1115
|
+
if (this.parent.enableRtl) {
|
|
1116
|
+
cloneElement.style.right = formatUnit(left);
|
|
1117
|
+
}
|
|
1118
|
+
else {
|
|
1119
|
+
cloneElement.style.left = formatUnit(left);
|
|
1120
|
+
}
|
|
1121
|
+
if (!this.isMorePopupOpened) {
|
|
1122
|
+
cloneElement.style.width = formatUnit(width);
|
|
1123
|
+
}
|
|
1122
1124
|
}
|
|
1123
1125
|
if (this.parent.activeViewOptions.group.resources.length > 0) {
|
|
1124
1126
|
this.calculateResourceGroupingPosition(e, cloneElement);
|
|
@@ -1145,7 +1147,9 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1145
1147
|
rightOffset = (viewEle.scrollLeft - viewEle.scrollWidth);
|
|
1146
1148
|
}
|
|
1147
1149
|
}
|
|
1148
|
-
this.
|
|
1150
|
+
if (isNullOrUndefined(this.parent.eventDragArea)) {
|
|
1151
|
+
this.actionObj.clone.style.left = formatUnit(rightOffset);
|
|
1152
|
+
}
|
|
1149
1153
|
}
|
|
1150
1154
|
else {
|
|
1151
1155
|
if (this.scrollEdges.left) {
|
|
@@ -1162,7 +1166,9 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1162
1166
|
this.actionObj.clone.offsetWidth) + (this.actionObj.clone.offsetWidth - this.widthUptoCursorPoint);
|
|
1163
1167
|
}
|
|
1164
1168
|
offsetLeft = offsetLeft < 0 ? 0 : offsetLeft;
|
|
1165
|
-
this.
|
|
1169
|
+
if (isNullOrUndefined(this.parent.eventDragArea)) {
|
|
1170
|
+
this.actionObj.clone.style.left = formatUnit(offsetLeft);
|
|
1171
|
+
}
|
|
1166
1172
|
}
|
|
1167
1173
|
}
|
|
1168
1174
|
return offsetLeft;
|
|
@@ -1240,6 +1246,9 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1240
1246
|
var td = closest(this.actionObj.target, 'td');
|
|
1241
1247
|
this.actionObj.groupIndex = (td && !isNaN(parseInt(td.getAttribute('data-group-index'), 10)))
|
|
1242
1248
|
? parseInt(td.getAttribute('data-group-index'), 10) : this.actionObj.groupIndex;
|
|
1249
|
+
if (!isNullOrUndefined(this.parent.eventDragArea)) {
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1243
1252
|
var top = trCollection[parseInt(rowIndex.toString(), 10)].getBoundingClientRect().height * rowIndex;
|
|
1244
1253
|
if (this.parent.rowAutoHeight) {
|
|
1245
1254
|
var cursorElement = this.getCursorElement(e);
|
|
@@ -127,8 +127,17 @@ var Resize = /** @class */ (function (_super) {
|
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
var pages = this.getPageCoordinates(e);
|
|
130
|
-
this.
|
|
131
|
-
|
|
130
|
+
if (this.parent.currentView === 'Month' || this.parent.currentView === 'TimelineYear') {
|
|
131
|
+
var doc = document.documentElement;
|
|
132
|
+
var left = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
133
|
+
var top_1 = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
134
|
+
this.actionObj.pageX = pages.pageX - left;
|
|
135
|
+
this.actionObj.pageY = pages.pageY - top_1;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.actionObj.pageX = pages.pageX;
|
|
139
|
+
this.actionObj.pageY = pages.pageY;
|
|
140
|
+
}
|
|
132
141
|
this.updateScrollPosition(e);
|
|
133
142
|
this.updateResizingDirection(e);
|
|
134
143
|
var eventObj = extend({}, this.actionObj.event, null, true);
|
|
@@ -473,6 +482,9 @@ var Resize = /** @class */ (function (_super) {
|
|
|
473
482
|
clnTop = isTop ? Math.floor(clnTop / slotInterval) * slotInterval : clnTop;
|
|
474
483
|
clnHeight = clnTop + clnHeight >= viewElement.scrollHeight ? viewElement.scrollHeight - clnTop :
|
|
475
484
|
Math.ceil(clnHeight / slotInterval) * slotInterval;
|
|
485
|
+
if (!isTop && this.actionObj.clone.offsetTop + clnHeight >= this.parent.getContentTable().offsetHeight) {
|
|
486
|
+
clnHeight = this.parent.getContentTable().offsetHeight - this.actionObj.clone.offsetTop;
|
|
487
|
+
}
|
|
476
488
|
var styles = {
|
|
477
489
|
height: formatUnit(clnHeight < this.actionObj.cellHeight ? Math.floor(clnHeight / slotInterval) * slotInterval : clnHeight),
|
|
478
490
|
top: formatUnit((clnHeight < this.actionObj.cellHeight && isTop) ? Math.ceil(clnTop / slotInterval) * slotInterval : clnTop),
|