@syncfusion/ej2-schedule 33.1.44 → 33.1.47
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 +17 -27
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +17 -27
- 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 +7 -7
- package/src/schedule/actions/action-base.js +1 -1
- package/src/schedule/actions/resize.js +14 -25
- package/src/schedule/event-renderer/timeline-view.js +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.1.
|
|
3
|
+
* version : 33.1.47
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-schedule",
|
|
3
|
-
"version": "33.1.
|
|
3
|
+
"version": "33.1.47",
|
|
4
4
|
"author": "Syncfusion Inc.",
|
|
5
5
|
"license": "SEE LICENSE IN license",
|
|
6
6
|
"main": "./dist/ej2-schedule.umd.min.js",
|
|
7
7
|
"module": "./index.js",
|
|
8
8
|
"es2015": "./dist/es6/ej2-schedule.es5.js",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@syncfusion/ej2-base": "~33.1.
|
|
10
|
+
"@syncfusion/ej2-base": "~33.1.45",
|
|
11
11
|
"@syncfusion/ej2-buttons": "~33.1.44",
|
|
12
12
|
"@syncfusion/ej2-calendars": "~33.1.44",
|
|
13
|
-
"@syncfusion/ej2-data": "~33.1.
|
|
14
|
-
"@syncfusion/ej2-dropdowns": "~33.1.
|
|
13
|
+
"@syncfusion/ej2-data": "~33.1.45",
|
|
14
|
+
"@syncfusion/ej2-dropdowns": "~33.1.47",
|
|
15
15
|
"@syncfusion/ej2-excel-export": "~33.1.44",
|
|
16
|
-
"@syncfusion/ej2-inputs": "~33.1.
|
|
17
|
-
"@syncfusion/ej2-lists": "~33.1.
|
|
18
|
-
"@syncfusion/ej2-navigations": "~33.1.
|
|
16
|
+
"@syncfusion/ej2-inputs": "~33.1.47",
|
|
17
|
+
"@syncfusion/ej2-lists": "~33.1.47",
|
|
18
|
+
"@syncfusion/ej2-navigations": "~33.1.47",
|
|
19
19
|
"@syncfusion/ej2-popups": "~33.1.44"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {},
|
|
@@ -91,7 +91,7 @@ var ActionBase = /** @class */ (function () {
|
|
|
91
91
|
var startHour = this.parent.activeView.getStartHour();
|
|
92
92
|
var intervalInMS = util.MS_PER_MINUTE * this.actionObj.interval;
|
|
93
93
|
dateInMS += (startHour.getHours() * 60 + startHour.getMinutes()) * util.MS_PER_MINUTE + startHour.getSeconds() * 1000;
|
|
94
|
-
dateInMS = dateInMS + ((date.getTime() - dateInMS) / intervalInMS) * intervalInMS;
|
|
94
|
+
dateInMS = dateInMS + Math.floor((date.getTime() - dateInMS) / intervalInMS) * intervalInMS;
|
|
95
95
|
return new Date(dateInMS);
|
|
96
96
|
};
|
|
97
97
|
ActionBase.prototype.getContentAreaDimension = function () {
|
|
@@ -402,20 +402,24 @@ var Resize = /** @class */ (function (_super) {
|
|
|
402
402
|
offsetValue += (this.parent.getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
|
|
403
403
|
}
|
|
404
404
|
cellIndex = !isTimelineMonth ? Math.round(offsetValue / (this.parent.getElementWidth(tr) / noOfDays)) :
|
|
405
|
-
Math.floor(offsetValue /
|
|
405
|
+
Math.floor(offsetValue / (this.parent.getElementWidth(tr) / noOfDays));
|
|
406
406
|
cellIndex = isLeft ? cellIndex : isTimelineMonth ? cellIndex + 1 : cellIndex;
|
|
407
407
|
isLastCell = cellIndex === tdCollections.length;
|
|
408
408
|
cellIndex = (cellIndex < 0) ? 0 : (cellIndex >= noOfDays) ? noOfDays - 1 : cellIndex;
|
|
409
409
|
}
|
|
410
410
|
else {
|
|
411
411
|
var cellWidth = this.actionObj.cellWidth;
|
|
412
|
-
cellIndex = isLeft ? Math.
|
|
412
|
+
cellIndex = isLeft ? Math.floor(offset / this.actionObj.cellWidth) :
|
|
413
413
|
Math.ceil((offset + (this.parent.getElementWidth(this.actionObj.clone) - cellWidth)) / this.actionObj.cellWidth);
|
|
414
414
|
if (this.parent.enableRtl) {
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
415
|
+
var cellOffsetWidth = 0;
|
|
416
|
+
if (headerName === 'TimelineMonth' || (!this.parent.activeViewOptions.timeScale.enable &&
|
|
417
|
+
!isTimelineMonth)) {
|
|
418
|
+
cellOffsetWidth = this.actionObj.cellWidth;
|
|
419
|
+
}
|
|
420
|
+
var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
|
|
421
|
+
this.actionObj.cellWidth) + (isLeft ? 0 : this.parent.getElementWidth(this.actionObj.clone) - cellOffsetWidth);
|
|
422
|
+
cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
|
|
419
423
|
}
|
|
420
424
|
isLastCell = cellIndex === tdCollections.length;
|
|
421
425
|
cellIndex = this.getIndex(cellIndex);
|
|
@@ -433,29 +437,14 @@ var Resize = /** @class */ (function (_super) {
|
|
|
433
437
|
}
|
|
434
438
|
else {
|
|
435
439
|
if (!isLeft) {
|
|
436
|
-
|
|
437
|
-
var pixelsPerInterval = this.actionObj.cellWidth /
|
|
438
|
-
(this.actionObj.slotInterval / this.actionObj.interval);
|
|
439
|
-
var numIntervals = Math.round(cloneWidth / pixelsPerInterval);
|
|
440
|
-
cloneWidth = numIntervals * pixelsPerInterval;
|
|
441
|
-
offset = offset + cloneWidth;
|
|
440
|
+
offset += this.parent.getElementWidth(this.actionObj.clone);
|
|
442
441
|
}
|
|
443
442
|
var spanMinutes = Math.ceil((this.actionObj.slotInterval / this.actionObj.cellWidth) *
|
|
444
443
|
(offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
|
|
445
|
-
spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0
|
|
444
|
+
spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0 && !this.parent.enableRtl)) ?
|
|
445
|
+
this.actionObj.slotInterval : spanMinutes;
|
|
446
446
|
resizeTime = new Date(resizeDate.getTime());
|
|
447
|
-
resizeTime
|
|
448
|
-
var isCustomResizeInterval = this.actionObj.interval !== this.actionObj.slotInterval;
|
|
449
|
-
var initialCellTime = new Date(resizeTime.getTime());
|
|
450
|
-
var intervalInMS = this.actionObj.interval * 60000;
|
|
451
|
-
if (intervalInMS > 0 && isCustomResizeInterval) {
|
|
452
|
-
if (this.resizeEdges.right || this.resizeEdges.left) {
|
|
453
|
-
var eventTime = this.resizeEdges.right ? eventEnd : eventStart;
|
|
454
|
-
var timeDifferenceMs = initialCellTime.getTime() - eventTime.getTime();
|
|
455
|
-
var intervalCount = Math.round(timeDifferenceMs / intervalInMS);
|
|
456
|
-
resizeTime = new Date(eventTime.getTime() + intervalCount * intervalInMS);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
447
|
+
resizeTime.setMinutes(resizeTime.getMinutes() + spanMinutes);
|
|
459
448
|
this.updateTimePosition(resizeTime);
|
|
460
449
|
}
|
|
461
450
|
}
|
|
@@ -472,7 +472,8 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
472
472
|
return (width > spannedWidth) ? width - spannedWidth : width - startWidth;
|
|
473
473
|
};
|
|
474
474
|
TimelineEvent.prototype.getEndTimeOfLastSlot = function (startHour, endHour, interval) {
|
|
475
|
-
var
|
|
475
|
+
var dstOffset = ((endHour.getTimezoneOffset() - startHour.getTimezoneOffset()) * util.MS_PER_MINUTE);
|
|
476
|
+
var minutesInDay = (endHour.getTime() - startHour.getTime() - dstOffset) / util.MS_PER_MINUTE;
|
|
476
477
|
var lastSlotEndMinutes = Math.floor(minutesInDay / interval) * interval;
|
|
477
478
|
var lastSlotEndTime = new Date(startHour);
|
|
478
479
|
lastSlotEndTime.setMinutes(lastSlotEndMinutes);
|