@syncfusion/ej2-schedule 27.1.53 → 27.1.55
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/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 +10 -8
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +10 -8
- 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 +11 -11
- package/src/schedule/event-renderer/timeline-view.d.ts +1 -0
- package/src/schedule/event-renderer/timeline-view.js +10 -8
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.1.
|
|
3
|
+
* version : 27.1.55
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@27.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@27.1.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-eCYWez3dZD5pMKNeAPRVDLdH/X+5htZeVD65OxMdfIMS5/Fqmwjh4rZ0JmgowSEZon522i41/I5gF2TzCTvm0g==",
|
|
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-27.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-27.1.53.tgz",
|
|
27
|
+
"_shasum": "10390d6fc7e1a6861d7b096db0238f3b84f463c5",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~27.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~27.1.55",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~27.1.53",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~27.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~27.1.55",
|
|
41
41
|
"@syncfusion/ej2-data": "~27.1.52",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~27.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~27.1.55",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~27.1.50",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~27.1.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~27.1.55",
|
|
45
45
|
"@syncfusion/ej2-lists": "~27.1.50",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~27.1.
|
|
47
|
-
"@syncfusion/ej2-popups": "~27.1.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~27.1.55",
|
|
47
|
+
"@syncfusion/ej2-popups": "~27.1.55"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
50
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.",
|
|
@@ -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": "27.1.
|
|
76
|
+
"version": "27.1.55",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -40,6 +40,7 @@ export declare class TimelineEvent extends MonthEvent {
|
|
|
40
40
|
private getAppointmentLeft;
|
|
41
41
|
getPosition(startTime: Date, endTime: Date, isAllDay: boolean, day: number): number;
|
|
42
42
|
private getFilterEvents;
|
|
43
|
+
private getIntervalInMinutes;
|
|
43
44
|
private isAlreadyAvail;
|
|
44
45
|
getRowTop(resIndex: number): number;
|
|
45
46
|
getCellTd(): HTMLElement;
|
|
@@ -465,13 +465,8 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
TimelineEvent.prototype.getSameDayEventsWidth = function (startDate, endDate) {
|
|
468
|
-
var intervalMins = this.interval;
|
|
469
|
-
if (this.slotsPerDay === 1) {
|
|
470
|
-
var hoursRange = util.getStartEndHours(util.resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
|
|
471
|
-
intervalMins = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
|
|
472
|
-
}
|
|
473
468
|
return ((util.getUniversalTime(endDate) - util.getUniversalTime(startDate)) /
|
|
474
|
-
util.MS_PER_MINUTE * (this.cellWidth * this.slotCount) /
|
|
469
|
+
util.MS_PER_MINUTE * (this.cellWidth * this.slotCount) / this.getIntervalInMinutes(startDate));
|
|
475
470
|
};
|
|
476
471
|
TimelineEvent.prototype.getSpannedEventsWidth = function (startDate, endDate, diffInDays) {
|
|
477
472
|
var width = (diffInDays * this.slotsPerDay) * this.cellWidth;
|
|
@@ -497,13 +492,13 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
497
492
|
TimelineEvent.prototype.getAppointmentLeft = function (schedule, startTime, day) {
|
|
498
493
|
var slotTd = (this.isSameDay(startTime, schedule.startHour)) ?
|
|
499
494
|
((util.getUniversalTime(startTime) - util.getUniversalTime(schedule.startHour)) /
|
|
500
|
-
(util.MS_PER_MINUTE * this.
|
|
495
|
+
(util.MS_PER_MINUTE * this.getIntervalInMinutes(startTime))) * this.slotCount : 0;
|
|
501
496
|
if (day === 0) {
|
|
502
497
|
return slotTd;
|
|
503
498
|
}
|
|
504
499
|
else {
|
|
505
500
|
var daySlot = Math.round((((util.getUniversalTime(schedule.endHour) - util.getUniversalTime(schedule.startHour)) /
|
|
506
|
-
util.MS_PER_MINUTE) / this.
|
|
501
|
+
util.MS_PER_MINUTE) / this.getIntervalInMinutes(startTime)) * this.slotCount);
|
|
507
502
|
return (daySlot * day) + slotTd;
|
|
508
503
|
}
|
|
509
504
|
};
|
|
@@ -536,6 +531,13 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
536
531
|
return this.getFilteredEvents(startTime, endTime, gIndex, eventsList);
|
|
537
532
|
}
|
|
538
533
|
};
|
|
534
|
+
TimelineEvent.prototype.getIntervalInMinutes = function (startDate) {
|
|
535
|
+
if (this.slotsPerDay !== 1) {
|
|
536
|
+
return this.interval;
|
|
537
|
+
}
|
|
538
|
+
var hoursRange = util.getStartEndHours(util.resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
|
|
539
|
+
return (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
|
|
540
|
+
};
|
|
539
541
|
TimelineEvent.prototype.isAlreadyAvail = function (appPos, cellTd) {
|
|
540
542
|
var moreIndicator = [].slice.call(cellTd.querySelectorAll('.' + cls.MORE_INDICATOR_CLASS));
|
|
541
543
|
for (var i = 0; i < moreIndicator.length; i++) {
|