@syncfusion/ej2-schedule 21.2.5 → 21.2.9
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 +24 -0
- 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 +23 -17
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +23 -17
- 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 +14 -14
- package/src/schedule/actions/drag.js +3 -1
- package/src/schedule/event-renderer/agenda-base.js +3 -0
- package/src/schedule/event-renderer/timeline-view.js +5 -4
- package/src/schedule/popups/event-window.js +8 -1
- package/src/schedule/popups/quick-popups.js +0 -7
- package/src/schedule/renderer/header-renderer.js +4 -4
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.9
|
|
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@21.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@21.2.6",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-MqaDIG2fuy/uRZpZ+y7dtNosr9vwu7+A0jfnjuuP3GkmW+z9ZVHIc7cO/iZZmpY2+se0H/YXnzOqnWCwld7x8g==",
|
|
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-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.2.6.tgz",
|
|
27
|
+
"_shasum": "eb1a8ebf6a6ed953e6315db8c51f9f738a883e55",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~21.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~21.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~21.2.
|
|
41
|
-
"@syncfusion/ej2-data": "~21.2.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~21.2.
|
|
43
|
-
"@syncfusion/ej2-excel-export": "~21.2.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
45
|
-
"@syncfusion/ej2-lists": "~21.2.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~21.2.9",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.2.6",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.9",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.2.9",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.8",
|
|
43
|
+
"@syncfusion/ej2-excel-export": "~21.2.8",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~21.2.9",
|
|
45
|
+
"@syncfusion/ej2-lists": "~21.2.9",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~21.2.9",
|
|
47
47
|
"@syncfusion/ej2-popups": "~21.2.4"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
@@ -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": "21.2.
|
|
76
|
+
"version": "21.2.9",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -581,7 +581,9 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
581
581
|
(dragArea.scrollTop + dragArea.offsetHeight - this.actionObj.clone.offsetHeight + window.pageYOffset) +
|
|
582
582
|
(this.actionObj.clone.offsetHeight - this.heightUptoCursorPoint);
|
|
583
583
|
offsetTop = Math.round(offsetTop / this.actionObj.cellHeight) * this.actionObj.cellHeight;
|
|
584
|
-
|
|
584
|
+
if (dragArea.scrollTop > 0) {
|
|
585
|
+
this.actionObj.clone.style.top = formatUnit(offsetTop);
|
|
586
|
+
}
|
|
585
587
|
}
|
|
586
588
|
var rowIndex = (this.parent.activeViewOptions.timeScale.enable) ? (offsetTop / this.actionObj.cellHeight) : 0;
|
|
587
589
|
var heightPerMinute = this.actionObj.cellHeight / this.actionObj.slotInterval;
|
|
@@ -305,6 +305,9 @@ var AgendaBase = /** @class */ (function (_super) {
|
|
|
305
305
|
className.push(data.cssClass);
|
|
306
306
|
}
|
|
307
307
|
addClass([ntd], className);
|
|
308
|
+
if (this.isCurrentDate(new Date(data.date.getTime()))) {
|
|
309
|
+
addClass(ntd.childNodes, cls.AGENDA_CURRENT_DAY_CLASS);
|
|
310
|
+
}
|
|
308
311
|
ntr.appendChild(ntd);
|
|
309
312
|
}
|
|
310
313
|
else if (data.type === 'eventColumn') {
|
|
@@ -47,7 +47,8 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
47
47
|
if (this.parent.activeViewOptions.headerRows.length > 0 &&
|
|
48
48
|
this.parent.activeViewOptions.headerRows.slice(-1)[0].option !== 'Hour') {
|
|
49
49
|
this.renderType = 'day';
|
|
50
|
-
|
|
50
|
+
var workCell = this.content.querySelector('.' + cls.WORK_CELLS_CLASS);
|
|
51
|
+
this.cellWidth = workCell.getBoundingClientRect().width / +(workCell.getAttribute('colspan') || 1);
|
|
51
52
|
this.slotsPerDay = 1;
|
|
52
53
|
}
|
|
53
54
|
else {
|
|
@@ -252,7 +253,7 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
252
253
|
TimelineEvent.prototype.renderTimelineMoreIndicator = function (startTime, startDate, endDate, appHeight, interval, resIndex, appointmentsList, top, appLeft, appRight, cellTd, moreIndicator, appPos, position) {
|
|
253
254
|
appLeft = (this.parent.enableRtl) ? appRight = position : position;
|
|
254
255
|
appPos = (this.parent.enableRtl) ? appRight : appLeft;
|
|
255
|
-
appPos = (Math.
|
|
256
|
+
appPos = (Math.floor(appPos / this.cellWidth) * this.cellWidth);
|
|
256
257
|
if ((cellTd && isNullOrUndefined(moreIndicator)) ||
|
|
257
258
|
(!this.isAlreadyAvail(appPos, cellTd))) {
|
|
258
259
|
var startDateTime = (this.parent.activeViewOptions.option === 'TimelineMonth' || this.renderType === 'day') ? new Date(+startTime) : startDate;
|
|
@@ -279,8 +280,8 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
279
280
|
}
|
|
280
281
|
moreIndicatorElement.style.top = top + appArea + 'px';
|
|
281
282
|
moreIndicatorElement.style.width = this.cellWidth + 'px';
|
|
282
|
-
moreIndicatorElement.style.left = ((appLeft / this.cellWidth) * this.cellWidth) + 'px';
|
|
283
|
-
moreIndicatorElement.style.right = ((appRight / this.cellWidth) * this.cellWidth) + 'px';
|
|
283
|
+
moreIndicatorElement.style.left = (Math.floor(appLeft / this.cellWidth) * this.cellWidth) + 'px';
|
|
284
|
+
moreIndicatorElement.style.right = (Math.floor(appRight / this.cellWidth) * this.cellWidth) + 'px';
|
|
284
285
|
this.renderElement(cellTd, moreIndicatorElement);
|
|
285
286
|
EventHandler.add(moreIndicatorElement, 'click', this.moreIndicatorClick, this);
|
|
286
287
|
}
|
|
@@ -164,6 +164,7 @@ var EventWindow = /** @class */ (function () {
|
|
|
164
164
|
};
|
|
165
165
|
EventWindow.prototype.onBeforeOpen = function (args) {
|
|
166
166
|
var _this = this;
|
|
167
|
+
var endTime = this.eventData[this.fields.endTime].getTime();
|
|
167
168
|
var eventProp = {
|
|
168
169
|
type: 'Editor',
|
|
169
170
|
data: this.eventData,
|
|
@@ -188,6 +189,12 @@ var EventWindow = /** @class */ (function () {
|
|
|
188
189
|
this.parent.trigger(event.popupOpen, eventProp, function (popupArgs) {
|
|
189
190
|
args.cancel = popupArgs.cancel;
|
|
190
191
|
_this.duration = _this.cellClickAction ? popupArgs.duration : null;
|
|
192
|
+
if (_this.eventData[_this.fields.endTime].getTime() === endTime && !_this.cellClickAction &&
|
|
193
|
+
_this.eventData[_this.fields.endTime].getHours() === 0 &&
|
|
194
|
+
_this.eventData[_this.fields.endTime].getMinutes() === 0) {
|
|
195
|
+
_this.eventData = extend({}, _this.eventData, null, true);
|
|
196
|
+
_this.trimAllDay(_this.eventData);
|
|
197
|
+
}
|
|
191
198
|
_this.refreshDateTimePicker(_this.duration);
|
|
192
199
|
if (_this.cellClickAction && popupArgs.duration !== _this.getSlotDuration() && isNullOrUndefined(_this.parent.editorTemplate)) {
|
|
193
200
|
var startObj = _this.getInstance(cls.EVENT_WINDOW_START_CLASS);
|
|
@@ -869,12 +876,12 @@ var EventWindow = /** @class */ (function () {
|
|
|
869
876
|
this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
|
|
870
877
|
};
|
|
871
878
|
EventWindow.prototype.showDetails = function (eventData) {
|
|
879
|
+
this.eventData = eventData;
|
|
872
880
|
var eventObj = extend({}, eventData, null, true);
|
|
873
881
|
if ((!this.cellClickAction || this.cellClickAction && !isNullOrUndefined(this.parent.editorTemplate)) &&
|
|
874
882
|
eventObj[this.fields.endTime].getHours() === 0 && eventObj[this.fields.endTime].getMinutes() === 0) {
|
|
875
883
|
this.trimAllDay(eventObj);
|
|
876
884
|
}
|
|
877
|
-
this.eventData = eventObj;
|
|
878
885
|
var formElements = this.getFormElements(cls.EVENT_WINDOW_DIALOG_CLASS);
|
|
879
886
|
var keyNames = Object.keys(eventObj);
|
|
880
887
|
for (var _i = 0, formElements_2 = formElements; _i < formElements_2.length; _i++) {
|
|
@@ -201,13 +201,6 @@ var QuickPopups = /** @class */ (function () {
|
|
|
201
201
|
this.quickDialog.content = this.l10n.getConstant('editContent');
|
|
202
202
|
this.quickDialog.header = this.l10n.getConstant(this.parent.currentAction === 'Delete' ? 'deleteTitle' : 'editTitle');
|
|
203
203
|
this.quickDialogClass('Recurrence');
|
|
204
|
-
var activeEvent = this.parent.activeEventData.event;
|
|
205
|
-
if (this.parent.eventSettings.editFollowingEvents && this.parent.currentAction === 'EditOccurrence'
|
|
206
|
-
&& !isNullOrUndefined(activeEvent[this.parent.eventFields.recurrenceID]) && activeEvent[this.parent.eventFields.recurrenceID]
|
|
207
|
-
!== activeEvent[this.parent.eventFields.id]) {
|
|
208
|
-
var followingEventButton = this.quickDialog.element.querySelector('.' + cls.QUICK_DIALOG_ALERT_FOLLOWING);
|
|
209
|
-
addClass([followingEventButton], cls.DISABLE_CLASS);
|
|
210
|
-
}
|
|
211
204
|
this.showQuickDialog('RecurrenceAlert');
|
|
212
205
|
};
|
|
213
206
|
QuickPopups.prototype.openRecurrenceValidationAlert = function (type) {
|
|
@@ -168,7 +168,7 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
170
|
var text = this.parent.activeView.getDateRangeText(date);
|
|
171
|
-
selEle.setAttribute('aria-label', text);
|
|
171
|
+
selEle.firstElementChild.setAttribute('aria-label', text);
|
|
172
172
|
textEle.textContent = text;
|
|
173
173
|
}
|
|
174
174
|
this.refresh();
|
|
@@ -199,16 +199,16 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
199
199
|
var items = [];
|
|
200
200
|
items.push({
|
|
201
201
|
align: 'Left', prefixIcon: 'e-icon-prev', tooltipText: 'Previous', overflow: 'Show',
|
|
202
|
-
cssClass: 'e-prev', htmlAttributes: { '
|
|
202
|
+
cssClass: 'e-prev', htmlAttributes: { 'role': 'navigation' }
|
|
203
203
|
});
|
|
204
204
|
items.push({
|
|
205
205
|
align: 'Left', prefixIcon: 'e-icon-next', tooltipText: 'Next', overflow: 'Show',
|
|
206
|
-
cssClass: 'e-next', htmlAttributes: { '
|
|
206
|
+
cssClass: 'e-next', htmlAttributes: { 'role': 'navigation' }
|
|
207
207
|
});
|
|
208
208
|
items.push({
|
|
209
209
|
align: 'Left', text: this.getDateRangeText(), suffixIcon: 'e-icon-down-arrow', cssClass: 'e-date-range',
|
|
210
210
|
overflow: 'Show',
|
|
211
|
-
htmlAttributes: { 'aria-atomic': 'true', 'aria-live': 'assertive', '
|
|
211
|
+
htmlAttributes: { 'aria-atomic': 'true', 'aria-live': 'assertive', 'role': 'navigation' }
|
|
212
212
|
});
|
|
213
213
|
if (this.parent.isAdaptive || this.parent.enableAdaptiveUI) {
|
|
214
214
|
items.push({
|