@syncfusion/ej2-schedule 21.2.3 → 21.2.4
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 +7 -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 +32 -3
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +33 -3
- 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 -13
- package/src/schedule/actions/drag.js +5 -2
- package/src/schedule/event-renderer/timeline-view.d.ts +1 -0
- package/src/schedule/event-renderer/timeline-view.js +28 -1
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.4
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@21.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-iBQZrY80nX2tK6NN+/2FzLObcxL0QT+lykvtOE/FXSmTSvAaotT1s0xrP9moLkrA1oLJVTzavM327S43XI2oEA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-schedule",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,10 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
-
"/@syncfusion/ej2"
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-schedule",
|
|
23
|
+
"/@syncfusion/ej2-react-schedule",
|
|
24
|
+
"/@syncfusion/ej2-vue-schedule"
|
|
22
25
|
],
|
|
23
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.
|
|
24
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.2.3.tgz",
|
|
27
|
+
"_shasum": "c6a62a12ee170e5e23a379e118d441e53850832c",
|
|
25
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
26
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
27
30
|
"author": {
|
|
@@ -34,14 +37,14 @@
|
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
36
39
|
"@syncfusion/ej2-buttons": "~21.2.3",
|
|
37
|
-
"@syncfusion/ej2-calendars": "~21.2.
|
|
38
|
-
"@syncfusion/ej2-data": "~21.2.
|
|
39
|
-
"@syncfusion/ej2-dropdowns": "~21.2.
|
|
40
|
-
"@syncfusion/ej2-excel-export": "~21.2.
|
|
41
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.4",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.2.4",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.4",
|
|
43
|
+
"@syncfusion/ej2-excel-export": "~21.2.4",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~21.2.4",
|
|
42
45
|
"@syncfusion/ej2-lists": "~21.2.3",
|
|
43
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
44
|
-
"@syncfusion/ej2-popups": "~21.2.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~21.2.4",
|
|
47
|
+
"@syncfusion/ej2-popups": "~21.2.4"
|
|
45
48
|
},
|
|
46
49
|
"deprecated": false,
|
|
47
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.",
|
|
@@ -70,6 +73,6 @@
|
|
|
70
73
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
71
74
|
},
|
|
72
75
|
"typings": "index.d.ts",
|
|
73
|
-
"version": "21.2.
|
|
76
|
+
"version": "21.2.4",
|
|
74
77
|
"sideEffects": false
|
|
75
78
|
}
|
|
@@ -1070,9 +1070,12 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
else {
|
|
1072
1072
|
if (this.isCursorAhead || cursorDrag) {
|
|
1073
|
-
|
|
1074
|
-
|
|
1073
|
+
var minutes = this.isTimelineDayProcess ? MINUTES_PER_DAY : this.actionObj.slotInterval;
|
|
1074
|
+
eventStart.setMinutes(eventStart.getMinutes() + minutes);
|
|
1075
1075
|
eventStart.setMilliseconds(-(eventDuration));
|
|
1076
|
+
if (eventStart.getTime() === util.resetTime(eventStart).getTime() && eventStart.getMinutes() === 0 && eventDuration === 0) {
|
|
1077
|
+
eventStart.setMinutes(-minutes);
|
|
1078
|
+
}
|
|
1076
1079
|
}
|
|
1077
1080
|
else {
|
|
1078
1081
|
eventStart.setMinutes(eventStart.getMinutes() -
|
|
@@ -25,6 +25,7 @@ export declare class TimelineEvent extends MonthEvent {
|
|
|
25
25
|
renderEvents(event: Record<string, any>, resIndex: number, appointmentsList?: Record<string, any>[]): void;
|
|
26
26
|
private renderTimelineMoreIndicator;
|
|
27
27
|
updateCellHeight(cell: HTMLElement, height: number): void;
|
|
28
|
+
private adjustAppointments;
|
|
28
29
|
private getFirstChild;
|
|
29
30
|
updateBlockElements(): void;
|
|
30
31
|
getStartTime(event: Record<string, any>, eventData: Record<string, any>): Date;
|
|
@@ -197,10 +197,21 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
197
197
|
'width': appWidth + 'px', 'left': appLeft + 'px', 'right': appRight + 'px', 'top': appTop + 'px'
|
|
198
198
|
});
|
|
199
199
|
this.wireAppointmentEvents(appointmentElement, event);
|
|
200
|
-
this.renderEventElement(event, appointmentElement, cellTd);
|
|
201
200
|
if (this.parent.rowAutoHeight) {
|
|
201
|
+
var conWrap = this.parent.element.querySelector('.' + cls.CONTENT_WRAP_CLASS);
|
|
202
|
+
var conWidth = conWrap.getBoundingClientRect().width;
|
|
203
|
+
var isWithoutScroll = conWrap.offsetHeight === conWrap.clientHeight &&
|
|
204
|
+
conWrap.offsetWidth === conWrap.clientWidth;
|
|
205
|
+
this.renderEventElement(event, appointmentElement, cellTd);
|
|
202
206
|
var firstChild = this.getFirstChild(resIndex);
|
|
203
207
|
this.updateCellHeight(firstChild, height);
|
|
208
|
+
if (isWithoutScroll &&
|
|
209
|
+
(conWrap.offsetWidth > conWrap.clientWidth || conWidth !== conWrap.getBoundingClientRect().width)) {
|
|
210
|
+
this.adjustAppointments(conWidth);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this.renderEventElement(event, appointmentElement, cellTd);
|
|
204
215
|
}
|
|
205
216
|
}
|
|
206
217
|
else {
|
|
@@ -292,6 +303,22 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
292
303
|
}
|
|
293
304
|
}
|
|
294
305
|
};
|
|
306
|
+
TimelineEvent.prototype.adjustAppointments = function (conWidth) {
|
|
307
|
+
var _this = this;
|
|
308
|
+
var tr = this.parent.element.querySelector('.' + cls.CONTENT_TABLE_CLASS + ' tbody tr');
|
|
309
|
+
this.cellWidth = this.workCells[0].getBoundingClientRect().width;
|
|
310
|
+
var currentPercentage = (this.cellWidth * tr.children.length) / (conWidth / 100);
|
|
311
|
+
var apps = [].slice.call(this.parent.element.querySelectorAll('.' + cls.APPOINTMENT_CLASS));
|
|
312
|
+
apps.forEach(function (app) {
|
|
313
|
+
if (_this.parent.enableRtl && app.style.right !== '0px') {
|
|
314
|
+
app.style.right = ((parseFloat(app.style.right) / 100) * currentPercentage) + 'px';
|
|
315
|
+
}
|
|
316
|
+
else if (app.style.left !== '0px') {
|
|
317
|
+
app.style.left = ((parseFloat(app.style.left) / 100) * currentPercentage) + 'px';
|
|
318
|
+
}
|
|
319
|
+
app.style.width = ((parseFloat(app.style.width) / 100) * currentPercentage) + 'px';
|
|
320
|
+
});
|
|
321
|
+
};
|
|
295
322
|
TimelineEvent.prototype.getFirstChild = function (index) {
|
|
296
323
|
var query = '.' + cls.CONTENT_TABLE_CLASS + ' tbody td';
|
|
297
324
|
var groupIndex = '';
|