@syncfusion/ej2-schedule 20.4.40 → 20.4.43

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.43
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.42",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-WSENUt9I4hjsxSboMnN5JhqQoW63+lAlR0HADtOUe5VwmM+C3R991M71ovTMkVV0Vkz0nDfd6AtkHd67rAadaw==",
5
+ "_integrity": "sha512-iU0AJbA+5bi3QKX3EYVX2ePvk7gyS1ZeeHjaqv+R9Hen3SFHEW+n2l7weUdUEQ47mhktq7gdzpmZIzTvH6oJtw==",
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.42.tgz",
27
+ "_shasum": "45e142eebbff3bf1535bcf4ab4a35922d7c9d124",
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.43",
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.43",
47
+ "@syncfusion/ej2-popups": "~20.4.43"
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.43",
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),
@@ -55,7 +55,6 @@ var AgendaBase = /** @class */ (function (_super) {
55
55
  'role': 'button',
56
56
  'tabindex': '0',
57
57
  'aria-disabled': _this.parent.eventBase.getReadonlyAttribute(listData[parseInt(li.toString(), 10)]),
58
- 'aria-pressed': 'false',
59
58
  'aria-label': _this.parent.getAnnouncementString(listData[parseInt(li.toString(), 10)])
60
59
  }
61
60
  });
@@ -520,20 +520,12 @@ var EventBase = /** @class */ (function () {
520
520
  };
521
521
  EventBase.prototype.removeSelectedAppointmentClass = function () {
522
522
  var selectedAppointments = this.getSelectedAppointments();
523
- for (var _i = 0, selectedAppointments_1 = selectedAppointments; _i < selectedAppointments_1.length; _i++) {
524
- var appointment = selectedAppointments_1[_i];
525
- appointment.setAttribute('aria-pressed', 'false');
526
- }
527
523
  removeClass(selectedAppointments, cls.APPOINTMENT_BORDER);
528
524
  if (this.parent.currentView === 'Agenda' || this.parent.currentView === 'MonthAgenda') {
529
525
  removeClass(selectedAppointments, cls.AGENDA_SELECTED_CELL);
530
526
  }
531
527
  };
532
528
  EventBase.prototype.addSelectedAppointments = function (cells) {
533
- for (var _i = 0, cells_1 = cells; _i < cells_1.length; _i++) {
534
- var cell = cells_1[_i];
535
- cell.setAttribute('aria-pressed', 'true');
536
- }
537
529
  if (this.parent.currentView !== 'MonthAgenda') {
538
530
  this.parent.removeSelectedClass();
539
531
  }
@@ -1097,7 +1089,7 @@ var EventBase = /** @class */ (function () {
1097
1089
  className: cls.BLOCK_APPOINTMENT_CLASS,
1098
1090
  attrs: {
1099
1091
  'data-id': 'Appointment_' + record[this.parent.eventFields.id],
1100
- 'aria-disabled': 'true', 'aria-pressed': 'false'
1092
+ 'aria-disabled': 'true'
1101
1093
  }
1102
1094
  });
1103
1095
  var templateElement;
@@ -379,7 +379,7 @@ var MonthEvent = /** @class */ (function (_super) {
379
379
  var attrs = {
380
380
  'data-id': 'Appointment_' + record[this.fields.id],
381
381
  'role': 'button', 'tabindex': '0',
382
- 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record), 'aria-pressed': 'false',
382
+ 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
383
383
  'aria-label': this.parent.getAnnouncementString(newRecord, eventSubject)
384
384
  };
385
385
  if (!isCloneElement) {
@@ -321,7 +321,6 @@ var VerticalEvent = /** @class */ (function (_super) {
321
321
  'role': 'button',
322
322
  'tabindex': '0',
323
323
  'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
324
- 'aria-pressed': 'false',
325
324
  'aria-label': this.parent.getAnnouncementString(record)
326
325
  }
327
326
  });
@@ -377,7 +377,7 @@ var YearEvent = /** @class */ (function (_super) {
377
377
  'data-id': 'Appointment_' + record[this.fields.id],
378
378
  'data-guid': record.Guid,
379
379
  'role': 'button', 'tabindex': '0',
380
- 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record), 'aria-pressed': 'false',
380
+ 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
381
381
  'aria-label': this.parent.getAnnouncementString(record)
382
382
  }
383
383
  });
@@ -99,13 +99,8 @@ var EventTooltip = /** @class */ (function () {
99
99
  startMonthDate = util.capitalizeFirstWord(startMonthDate, 'single');
100
100
  startMonthYearDate = util.capitalizeFirstWord(startMonthYearDate, 'single');
101
101
  endMonthYearDate = util.capitalizeFirstWord(endMonthYearDate, 'single');
102
- var skeleton = 'short';
103
- var startTime = globalize.formatDate(eventStart, {
104
- type: 'time', skeleton: skeleton, calendar: this.parent.getCalendarMode()
105
- });
106
- var endTime = globalize.formatDate(eventEnd, {
107
- type: 'time', skeleton: skeleton, calendar: this.parent.getCalendarMode()
108
- });
102
+ var startTime = this.parent.getTimeString(eventStart);
103
+ var endTime = this.parent.getTimeString(eventEnd);
109
104
  var tooltipDetails = void 0;
110
105
  if (startDate.getTime() === endDate.getTime()) {
111
106
  tooltipDetails =
@@ -319,7 +319,7 @@ var QuickPopups = /** @class */ (function () {
319
319
  'data-id': '' + eventData[fields.id],
320
320
  'data-guid': eventData.Guid, 'role': 'button', 'tabindex': '0',
321
321
  'aria-disabled': this_1.parent.eventBase.getReadonlyAttribute(eventData),
322
- 'aria-pressed': 'false', 'aria-label': this_1.parent.getAnnouncementString(eventData)
322
+ 'aria-label': this_1.parent.getAnnouncementString(eventData)
323
323
  }
324
324
  });
325
325
  var templateElement = void 0;
@@ -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 {