@syncfusion/ej2-schedule 20.4.40 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.4.40
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.4.38",
3
+ "_id": "@syncfusion/ej2-schedule@20.4.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-WSENUt9I4hjsxSboMnN5JhqQoW63+lAlR0HADtOUe5VwmM+C3R991M71ovTMkVV0Vkz0nDfd6AtkHd67rAadaw==",
5
+ "_integrity": "sha512-9rsvmSZiEnAoFmsqayqrhXwZQK3ISXuH9kztAub0i6kH7cph8UafC2VkbpClrP3xLbzm835csRxsj0X0zhekNg==",
6
6
  "_location": "/@syncfusion/ej2-schedule",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,10 +19,12 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-schedule",
23
+ "/@syncfusion/ej2-react-schedule",
22
24
  "/@syncfusion/ej2-vue-schedule"
23
25
  ],
24
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.4.38.tgz",
25
- "_shasum": "ce2bd73b771a0343e78f91f29ccd74d91a1f43ab",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.4.40.tgz",
27
+ "_shasum": "dce137821e239cbe7a7c49223badbe8bbbf9414f",
26
28
  "_spec": "@syncfusion/ej2-schedule@*",
27
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
28
30
  "author": {
@@ -33,16 +35,16 @@
33
35
  },
34
36
  "bundleDependencies": false,
35
37
  "dependencies": {
36
- "@syncfusion/ej2-base": "~20.4.40",
37
- "@syncfusion/ej2-buttons": "~20.4.40",
38
- "@syncfusion/ej2-calendars": "~20.4.40",
39
- "@syncfusion/ej2-data": "~20.4.40",
40
- "@syncfusion/ej2-dropdowns": "~20.4.40",
41
- "@syncfusion/ej2-excel-export": "~20.4.40",
42
- "@syncfusion/ej2-inputs": "~20.4.40",
43
- "@syncfusion/ej2-lists": "~20.4.40",
44
- "@syncfusion/ej2-navigations": "~20.4.40",
45
- "@syncfusion/ej2-popups": "~20.4.40"
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"
46
48
  },
47
49
  "deprecated": false,
48
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.",
@@ -71,6 +73,6 @@
71
73
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
72
74
  },
73
75
  "typings": "index.d.ts",
74
- "version": "20.4.40",
76
+ "version": "20.4.42",
75
77
  "sideEffects": false
76
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.enableRtl) {
1115
- cloneElement.style.right = formatUnit(left);
1116
- }
1117
- else {
1118
- cloneElement.style.left = formatUnit(left);
1119
- }
1120
- if (!this.isMorePopupOpened) {
1121
- cloneElement.style.width = formatUnit(width);
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.actionObj.clone.style.left = formatUnit(rightOffset);
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.actionObj.clone.style.left = formatUnit(offsetLeft);
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.actionObj.pageX = pages.pageX;
131
- this.actionObj.pageY = pages.pageY;
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),
@@ -162,7 +162,7 @@
162
162
 
163
163
  .e-bigger .e-multi-select-wrapper .e-chips-close {
164
164
  height: 30px;
165
- width: 30px;
165
+ width: auto;
166
166
  }
167
167
 
168
168
  .e-popup.e-multi-select-list-wrapper .e-list-item.e-active.e-item-focus.e-hover {
@@ -162,7 +162,7 @@
162
162
 
163
163
  .e-bigger .e-multi-select-wrapper .e-chips-close {
164
164
  height: 30px;
165
- width: 30px;
165
+ width: auto;
166
166
  }
167
167
 
168
168
  .e-popup.e-multi-select-list-wrapper .e-list-item.e-active.e-item-focus.e-hover {