@syncfusion/ej2-schedule 21.2.4 → 21.2.6
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 +22 -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 +17 -18
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +17 -18
- 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 +13 -13
- package/src/schedule/event-renderer/agenda-base.js +3 -0
- package/src/schedule/event-renderer/inline-edit.js +3 -1
- package/src/schedule/event-renderer/vertical-view.d.ts +1 -1
- package/src/schedule/event-renderer/vertical-view.js +11 -10
- package/src/schedule/popups/quick-popups.js +0 -7
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.6
|
|
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.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-l5+CXqLSUctpAdXgtXKDAZdCtduUffHvNXCi1MG06ib5JBxIaj1zH3JGBXbRuacOD1aw9wf2fpPHZMVVDCgfwg==",
|
|
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.5.tgz",
|
|
27
|
+
"_shasum": "0d4b86b906501cc20a7d80641256c00242deaedf",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
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.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.2.6",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.6",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.2.6",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.6",
|
|
43
|
+
"@syncfusion/ej2-excel-export": "~21.2.6",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~21.2.6",
|
|
45
|
+
"@syncfusion/ej2-lists": "~21.2.6",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~21.2.6",
|
|
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.6",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -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') {
|
|
@@ -112,7 +112,9 @@ var InlineEdit = /** @class */ (function () {
|
|
|
112
112
|
allDayElements[0].offsetHeight) - 1;
|
|
113
113
|
}
|
|
114
114
|
verticalEvent.allDayLevel = allDayLevel;
|
|
115
|
-
|
|
115
|
+
var appHeight = util.getElementHeightFromClass(this.parent.element.querySelector('.' + cls.ALLDAY_APPOINTMENT_WRAPPER_CLASS), cls.APPOINTMENT_CLASS);
|
|
116
|
+
var cellTop = verticalEvent.allDayElement.length > 0 ? verticalEvent.allDayElement[0].offsetTop : 0;
|
|
117
|
+
verticalEvent.renderAllDayEvents(saveObj, index, resIndex, daysCount, this.parent.allowInline, cellTop, appHeight);
|
|
116
118
|
}
|
|
117
119
|
else {
|
|
118
120
|
verticalEvent.renderNormalEvents(saveObj, index, resIndex, daysCount, this.parent.allowInline);
|
|
@@ -40,7 +40,7 @@ export declare class VerticalEvent extends EventBase {
|
|
|
40
40
|
private createMoreIndicator;
|
|
41
41
|
isSpannedEvent(record: Record<string, any>, day: number, resource: number): Record<string, any>;
|
|
42
42
|
private isWorkDayAvailable;
|
|
43
|
-
renderAllDayEvents(eventObj: Record<string, any>, dayIndex: number, resource: number, dayCount: number, inline
|
|
43
|
+
renderAllDayEvents(eventObj: Record<string, any>, dayIndex: number, resource: number, dayCount: number, inline: boolean, cellTop: number, eventHeight: number): void;
|
|
44
44
|
renderNormalEvents(eventObj: Record<string, any>, dayIndex: number, resource: number, dayCount: number, inline?: boolean): void;
|
|
45
45
|
private getEventWidth;
|
|
46
46
|
private getEventLeft;
|
|
@@ -96,6 +96,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
96
96
|
removeClass(this.allDayElement, cls.ALLDAY_ROW_ANIMATE_CLASS);
|
|
97
97
|
this.slots.push(this.parent.activeView.renderDates.map(function (date) { return +date; }));
|
|
98
98
|
this.renderEvents('allDayEvents');
|
|
99
|
+
this.animation.animate(this.allDayElement[0]);
|
|
99
100
|
}
|
|
100
101
|
this.parent.notify(events.contentReady, {});
|
|
101
102
|
addClass(this.allDayElement, cls.ALLDAY_ROW_ANIMATE_CLASS);
|
|
@@ -198,6 +199,8 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
198
199
|
var resources = this.getResourceList();
|
|
199
200
|
var dateCount = this.getStartCount();
|
|
200
201
|
var isRender;
|
|
202
|
+
var appHeight = eventType === 'allDayEvents' ? util.getElementHeightFromClass(this.element.querySelector('.' + cls.ALLDAY_APPOINTMENT_WRAPPER_CLASS), cls.APPOINTMENT_CLASS) : 0;
|
|
203
|
+
var allDayRowTop = eventType === 'allDayEvents' && this.allDayElement.length > 0 ? this.allDayElement[0].offsetTop : 0;
|
|
201
204
|
var _loop_1 = function (resource) {
|
|
202
205
|
isRender = true;
|
|
203
206
|
if (this_1.parent.crudModule && this_1.parent.crudModule.crudObj.isCrudAction && eventType !== 'allDayEvents'
|
|
@@ -224,7 +227,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
224
227
|
this_1.setValues(event_2, resource);
|
|
225
228
|
}
|
|
226
229
|
if (eventType === 'allDayEvents') {
|
|
227
|
-
this_1.renderAllDayEvents(event_2, day, resource, dateCount);
|
|
230
|
+
this_1.renderAllDayEvents(event_2, day, resource, dateCount, false, allDayRowTop, appHeight);
|
|
228
231
|
}
|
|
229
232
|
else {
|
|
230
233
|
if (this_1.isAllDayAppointment(event_2)) {
|
|
@@ -460,7 +463,8 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
460
463
|
}
|
|
461
464
|
return true;
|
|
462
465
|
};
|
|
463
|
-
|
|
466
|
+
// eslint-disable-next-line max-len
|
|
467
|
+
VerticalEvent.prototype.renderAllDayEvents = function (eventObj, dayIndex, resource, dayCount, inline, cellTop, eventHeight) {
|
|
464
468
|
var _this = this;
|
|
465
469
|
var currentDates = this.getRenderedDates(this.dateRender[parseInt(resource.toString(), 10)]) ||
|
|
466
470
|
this.dateRender[parseInt(resource.toString(), 10)];
|
|
@@ -469,8 +473,6 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
469
473
|
currentDates = [this.dateRender[parseInt(resource.toString(), 10)][parseInt(dayIndex.toString(), 10)]];
|
|
470
474
|
}
|
|
471
475
|
var record = this.splitEvent(eventObj, currentDates)[0];
|
|
472
|
-
var allDayRowCell = this.element.querySelector('.' + cls.ALLDAY_CELLS_CLASS + ':first-child');
|
|
473
|
-
var cellTop = allDayRowCell.offsetTop;
|
|
474
476
|
var eStart = new Date(record[this.parent.eventFields.startTime].getTime());
|
|
475
477
|
var eEnd = new Date(record[this.parent.eventFields.endTime].getTime());
|
|
476
478
|
var appWidth = 0;
|
|
@@ -523,8 +525,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
523
525
|
this.parent.trigger(events.eventRendered, args, function (eventArgs) {
|
|
524
526
|
if (!eventArgs.cancel) {
|
|
525
527
|
eventWrapper_1.appendChild(appointmentElement_1);
|
|
526
|
-
|
|
527
|
-
topValue += (allDayIndex_1 === 0 ? cellTop : (cellTop + (allDayIndex_1 * appHeight))) + 1;
|
|
528
|
+
topValue += (allDayIndex_1 === 0 ? cellTop : (cellTop + (allDayIndex_1 * eventHeight))) + 1;
|
|
528
529
|
setStyleAttribute(appointmentElement_1, { 'width': appWidth + '%', 'top': formatUnit(topValue) });
|
|
529
530
|
if (allDayIndex_1 > 1) {
|
|
530
531
|
_this.moreEvents.push(appointmentElement_1);
|
|
@@ -532,9 +533,9 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
532
533
|
_this.createMoreIndicator(allDayRow_1, count, wIndex_1);
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
|
-
|
|
536
|
+
_this.allDayElement[0].setAttribute('data-count', _this.allDayLevel.toString());
|
|
536
537
|
var allDayRowHeight = ((!_this.parent.uiStateValues.expand && _this.allDayLevel > 2) ?
|
|
537
|
-
(3 *
|
|
538
|
+
(3 * eventHeight) : ((_this.allDayLevel + 1) * eventHeight)) + 4;
|
|
538
539
|
_this.setAllDayRowHeight(allDayRowHeight);
|
|
539
540
|
_this.addOrRemoveClass();
|
|
540
541
|
_this.wireAppointmentEvents(appointmentElement_1, eventObj);
|
|
@@ -764,14 +765,12 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
764
765
|
this.parent.eventBase.allDayExpandScroll(dateHeader);
|
|
765
766
|
}
|
|
766
767
|
else {
|
|
767
|
-
dateHeader.scrollTop = 0;
|
|
768
768
|
for (var _i = 0, _a = this.allDayElement; _i < _a.length; _i++) {
|
|
769
769
|
var element = _a[_i];
|
|
770
770
|
element.style.height = (height / 12) + 'em';
|
|
771
771
|
}
|
|
772
772
|
removeClass([dateHeader], cls.ALLDAY_APPOINTMENT_SCROLL);
|
|
773
773
|
}
|
|
774
|
-
this.animation.animate(this.allDayElement[0]);
|
|
775
774
|
};
|
|
776
775
|
VerticalEvent.prototype.addOrRemoveClass = function () {
|
|
777
776
|
var _this = this;
|
|
@@ -831,8 +830,10 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
831
830
|
target.setAttribute('title', this.parent.localeObj.getConstant('expandAllDaySection'));
|
|
832
831
|
target.setAttribute('aria-label', 'Expand section');
|
|
833
832
|
rowHeight = (3 * this.getEventHeight()) + 4;
|
|
833
|
+
this.parent.element.querySelector('.' + cls.DATE_HEADER_WRAP_CLASS).scrollTop = 0;
|
|
834
834
|
}
|
|
835
835
|
this.setAllDayRowHeight(rowHeight);
|
|
836
|
+
this.animation.animate(this.allDayElement[0]);
|
|
836
837
|
this.addOrRemoveClass();
|
|
837
838
|
this.animation.animate(target);
|
|
838
839
|
};
|
|
@@ -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) {
|