@syncfusion/ej2-schedule 27.2.3 → 27.2.5
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 +12 -3
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +15 -6
- 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/models/event-settings-model.d.ts +2 -1
- package/src/schedule/models/event-settings.d.ts +2 -1
- package/src/schedule/renderer/timeline-view.js +9 -4
- package/src/schedule/renderer/vertical-view.js +6 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.2.
|
|
3
|
+
* version : 27.2.5
|
|
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.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@27.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-L1GVKpCV6FKWrWASGaJMUdDM7Q9Mmp5i29o81C8ceqTRRLgGyclPGGNLJdujF0dQ90JNsp1GZUyai274vhs3Ig==",
|
|
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.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-27.2.3.tgz",
|
|
27
|
+
"_shasum": "f5e5258935387dca65a2a88b630530156745e02a",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~27.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~27.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~27.2.5",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~27.2.4",
|
|
40
40
|
"@syncfusion/ej2-calendars": "~27.2.3",
|
|
41
41
|
"@syncfusion/ej2-data": "~27.2.2",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~27.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~27.2.5",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~27.2.2",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~27.2.
|
|
45
|
-
"@syncfusion/ej2-lists": "~27.2.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~27.2.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~27.2.4",
|
|
45
|
+
"@syncfusion/ej2-lists": "~27.2.5",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~27.2.5",
|
|
47
47
|
"@syncfusion/ej2-popups": "~27.2.2"
|
|
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": "27.2.
|
|
76
|
+
"version": "27.2.5",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -122,7 +122,8 @@ export interface EventSettingsModel {
|
|
|
122
122
|
allowDeleting?: boolean;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* It enables the event to occupy the full height
|
|
125
|
+
* It enables the event to occupy the full height in timeline views and
|
|
126
|
+
* full width in vertical views, excluding the header of the cell.
|
|
126
127
|
*
|
|
127
128
|
* @default false
|
|
128
129
|
*/
|
|
@@ -111,7 +111,8 @@ export declare class EventSettings extends ChildProperty<EventSettings> {
|
|
|
111
111
|
*/
|
|
112
112
|
allowDeleting: boolean;
|
|
113
113
|
/**
|
|
114
|
-
* It enables the event to occupy the full height
|
|
114
|
+
* It enables the event to occupy the full height in timeline views and
|
|
115
|
+
* full width in vertical views, excluding the header of the cell.
|
|
115
116
|
*
|
|
116
117
|
* @default false
|
|
117
118
|
*/
|
|
@@ -151,8 +151,13 @@ var TimelineViews = /** @class */ (function (_super) {
|
|
|
151
151
|
};
|
|
152
152
|
TimelineViews.prototype.getLeftFromDateTime = function (currentDateIndex, date) {
|
|
153
153
|
var startHour = this.getStartHour();
|
|
154
|
+
var endHour = this.getEndHour();
|
|
154
155
|
var diffInDates = 0;
|
|
155
156
|
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
157
|
+
var hoursRange = util.getStartEndHours(util.resetTime(new Date(date.getTime())), startHour, endHour);
|
|
158
|
+
var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
|
|
159
|
+
this.parent.activeViewOptions.timeScale.interval :
|
|
160
|
+
(hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
|
|
156
161
|
if (!isNullOrUndefined(currentDateIndex)) {
|
|
157
162
|
if (currentDateIndex[0] !== 0) {
|
|
158
163
|
var index = this.parent.activeView.colLevels.findIndex(function (level) { return level[0].type === 'dateHeader'; });
|
|
@@ -162,15 +167,15 @@ var TimelineViews = /** @class */ (function (_super) {
|
|
|
162
167
|
this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
163
168
|
}
|
|
164
169
|
else {
|
|
165
|
-
var
|
|
166
|
-
var end = (
|
|
170
|
+
var endHour_1 = this.getEndHour();
|
|
171
|
+
var end = (endHour_1.getHours() === 0) ? 24 : endHour_1.getHours();
|
|
167
172
|
diffInMinutes = diffInMinutes + ((currentDateIndex[0]) * (((end - startHour.getHours()) * 60) +
|
|
168
|
-
(
|
|
173
|
+
(endHour_1.getMinutes() - startHour.getMinutes())));
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
}
|
|
172
177
|
return diffInDates + ((diffInMinutes * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'))
|
|
173
|
-
* this.parent.activeViewOptions.timeScale.slotCount) /
|
|
178
|
+
* this.parent.activeViewOptions.timeScale.slotCount) / interval);
|
|
174
179
|
};
|
|
175
180
|
TimelineViews.prototype.renderHeader = function () {
|
|
176
181
|
var tr = createElement('tr');
|
|
@@ -370,9 +370,13 @@ var VerticalView = /** @class */ (function (_super) {
|
|
|
370
370
|
};
|
|
371
371
|
VerticalView.prototype.getTopFromDateTime = function (date) {
|
|
372
372
|
var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
|
|
373
|
+
var endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
|
|
373
374
|
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
374
|
-
|
|
375
|
-
|
|
375
|
+
var hoursRange = util.getStartEndHours(util.resetTime(new Date(date.getTime())), startHour, endHour);
|
|
376
|
+
var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
|
|
377
|
+
this.parent.activeViewOptions.timeScale.interval :
|
|
378
|
+
(hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
|
|
379
|
+
return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) / interval;
|
|
376
380
|
};
|
|
377
381
|
VerticalView.prototype.getWorkCellHeight = function () {
|
|
378
382
|
return parseFloat(this.parent.getElementHeight(this.element.querySelector('.' + cls.WORK_CELLS_CLASS)).toFixed(2));
|