@syncfusion/ej2-schedule 28.2.3 → 28.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 +35 -23
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +37 -24
- 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 +8 -8
- package/src/schedule/actions/crud.js +12 -5
- package/src/schedule/actions/resize.js +9 -11
- package/src/schedule/event-renderer/timeline-view.js +2 -2
- package/src/schedule/popups/quick-popups.js +3 -2
- package/src/schedule/renderer/month-agenda.js +1 -1
- package/src/schedule/renderer/vertical-view.js +10 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.2.
|
|
3
|
+
* version : 28.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@28.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@28.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ky2q+06Je15WPS2CED/mvPjSaQSlpslhiT5nBjPv557gqxuOIToe/SdJgKv12LCWuHiDoE9Cgouf+5yHf4P3+A==",
|
|
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-28.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.2.4.tgz",
|
|
27
|
+
"_shasum": "b2c505b3dad05390e4b2406feaa1919dd92eb3d5",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~28.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~28.2.5",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~28.2.3",
|
|
40
40
|
"@syncfusion/ej2-calendars": "~28.2.3",
|
|
41
41
|
"@syncfusion/ej2-data": "~28.2.3",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~28.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~28.2.5",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~28.2.3",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~28.2.3",
|
|
45
45
|
"@syncfusion/ej2-lists": "~28.2.3",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~28.2.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~28.2.5",
|
|
47
47
|
"@syncfusion/ej2-popups": "~28.2.3"
|
|
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": "28.2.
|
|
76
|
+
"version": "28.2.5",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -390,7 +390,7 @@ var Crud = /** @class */ (function () {
|
|
|
390
390
|
editParams.changedRecords.push(_this.parent.eventBase.processTimezone(parentEvent, true));
|
|
391
391
|
}
|
|
392
392
|
if (childEvent[fields.id] !== parentEvent[fields.id]) {
|
|
393
|
-
editParams.deletedRecords.push(childEvent);
|
|
393
|
+
editParams.deletedRecords.push(_this.parent.eventBase.processTimezone(childEvent, true));
|
|
394
394
|
isDeletedRecords = true;
|
|
395
395
|
}
|
|
396
396
|
break;
|
|
@@ -554,7 +554,7 @@ var Crud = /** @class */ (function () {
|
|
|
554
554
|
_this.parent.uiStateValues.isIgnoreOccurrence = false;
|
|
555
555
|
break;
|
|
556
556
|
case 'DeleteSeries':
|
|
557
|
-
editParams.deletedRecords = editParams.deletedRecords.concat(deletedEvents.concat(parentEvent));
|
|
557
|
+
editParams.deletedRecords = editParams.deletedRecords.concat(deletedEvents.concat(_this.parent.eventBase.processTimezone(parentEvent, true)));
|
|
558
558
|
isDeletedRecords = true;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
@@ -618,6 +618,12 @@ var Crud = /** @class */ (function () {
|
|
|
618
618
|
isDelete = deleteArgs.deletedRecords[parseInt(a.toString(), 10)][fields_3.id] !== parentEvent_1[fields_3.id];
|
|
619
619
|
}
|
|
620
620
|
if (isDelete) {
|
|
621
|
+
if (deleteArgs.deletedRecords instanceof Array) {
|
|
622
|
+
for (var _i = 0, _a = deleteArgs.deletedRecords; _i < _a.length; _i++) {
|
|
623
|
+
var event_8 = _a[_i];
|
|
624
|
+
_this.parent.eventBase.processTimezone(event_8, true);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
621
627
|
editParams.deletedRecords.push(deleteArgs.deletedRecords[parseInt(a.toString(), 10)]);
|
|
622
628
|
}
|
|
623
629
|
};
|
|
@@ -625,7 +631,8 @@ var Crud = /** @class */ (function () {
|
|
|
625
631
|
_loop_5(a, count);
|
|
626
632
|
}
|
|
627
633
|
var promise = _this.parent.dataModule.dataManager.saveChanges(editParams, fields_3.id, _this.getTable(), _this.getQuery());
|
|
628
|
-
|
|
634
|
+
var cloneEvent = extend({}, deleteArgs.deletedRecords[deleteArgs.deletedRecords.length - 1], null, true);
|
|
635
|
+
_this.parent.eventBase.selectWorkCellByTime([_this.parent.eventBase.processTimezone(cloneEvent)]);
|
|
629
636
|
var crudArgs = {
|
|
630
637
|
requestType: 'eventRemoved', cancel: false, data: deleteArgs.deletedRecords, promise: promise, editParams: editParams
|
|
631
638
|
};
|
|
@@ -746,8 +753,8 @@ var Crud = /** @class */ (function () {
|
|
|
746
753
|
var eventCollection = (eventData instanceof Array) ? eventData : [eventData];
|
|
747
754
|
var value = false;
|
|
748
755
|
for (var _i = 0, eventCollection_1 = eventCollection; _i < eventCollection_1.length; _i++) {
|
|
749
|
-
var
|
|
750
|
-
value =
|
|
756
|
+
var event_9 = eventCollection_1[_i];
|
|
757
|
+
value = event_9[this.parent.eventFields.isBlock] || false;
|
|
751
758
|
}
|
|
752
759
|
return value;
|
|
753
760
|
};
|
|
@@ -405,16 +405,12 @@ var Resize = /** @class */ (function (_super) {
|
|
|
405
405
|
}
|
|
406
406
|
else {
|
|
407
407
|
var cellWidth = this.actionObj.cellWidth;
|
|
408
|
-
cellIndex = isLeft ? Math.
|
|
408
|
+
cellIndex = isLeft ? Math.round(offset / this.actionObj.cellWidth) :
|
|
409
409
|
Math.ceil((offset + (this.parent.getElementWidth(this.actionObj.clone) - cellWidth)) / this.actionObj.cellWidth);
|
|
410
410
|
if (this.parent.enableRtl) {
|
|
411
|
-
var
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
cellOffsetWidth = this.actionObj.cellWidth;
|
|
415
|
-
}
|
|
416
|
-
var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
|
|
417
|
-
this.actionObj.cellWidth) + (isLeft ? 0 : this.parent.getElementWidth(this.actionObj.clone) - cellOffsetWidth);
|
|
411
|
+
var offsetWidth = (Math.round(offset / this.actionObj.cellWidth) *
|
|
412
|
+
this.actionObj.cellWidth) + (isLeft ? 0 : (this.parent.getElementWidth(this.actionObj.clone) -
|
|
413
|
+
this.actionObj.cellWidth));
|
|
418
414
|
cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
|
|
419
415
|
}
|
|
420
416
|
isLastCell = cellIndex === tdCollections.length;
|
|
@@ -435,11 +431,11 @@ var Resize = /** @class */ (function (_super) {
|
|
|
435
431
|
if (!isLeft) {
|
|
436
432
|
offset += this.parent.getElementWidth(this.actionObj.clone);
|
|
437
433
|
}
|
|
438
|
-
var spanMinutes = Math.
|
|
434
|
+
var spanMinutes = Math.floor((this.actionObj.slotInterval / this.actionObj.cellWidth) *
|
|
439
435
|
(offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
|
|
440
436
|
spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0)) ? this.actionObj.slotInterval : spanMinutes;
|
|
441
437
|
resizeTime = new Date(resizeDate.getTime());
|
|
442
|
-
resizeTime
|
|
438
|
+
resizeTime = new Date(resizeDate.getTime() + (spanMinutes * util.MS_PER_MINUTE));
|
|
443
439
|
this.updateTimePosition(resizeTime);
|
|
444
440
|
}
|
|
445
441
|
}
|
|
@@ -509,11 +505,12 @@ var Resize = /** @class */ (function (_super) {
|
|
|
509
505
|
var slotInterval = (this.actionObj.cellWidth / this.actionObj.slotInterval) * this.actionObj.interval;
|
|
510
506
|
var pageWidth = isLeft ? (this.actionObj.X - this.actionObj.pageX) : (this.actionObj.pageX - this.actionObj.X);
|
|
511
507
|
var targetWidth = isTimelineView ?
|
|
512
|
-
(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
|
|
508
|
+
Math.round(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
|
|
513
509
|
this.parent.currentView === 'Month' ? this.parent.getElementWidth(this.actionObj.element) :
|
|
514
510
|
Math.ceil(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
515
511
|
var offsetWidth = targetWidth + (Math.ceil(pageWidth / this.actionObj.cellWidth) * this.actionObj.cellWidth);
|
|
516
512
|
var left = (this.parent.enableRtl) ? parseInt(this.actionObj.element.style.right, 10) : this.actionObj.clone.offsetLeft;
|
|
513
|
+
left = Math.round(left / slotInterval) * slotInterval;
|
|
517
514
|
if (isTimeViews) {
|
|
518
515
|
offsetWidth = targetWidth + (Math.ceil(pageWidth / slotInterval) * slotInterval);
|
|
519
516
|
if (!isLeft) {
|
|
@@ -532,6 +529,7 @@ var Resize = /** @class */ (function (_super) {
|
|
|
532
529
|
-(offsetWidth - this.actionObj.cellWidth);
|
|
533
530
|
rightValue = isTimelineView ? rightValue : isLeft ? 0 : rightValue > 0 ? 0 : rightValue;
|
|
534
531
|
if (isTimelineView && !isLeft) {
|
|
532
|
+
rightValue = Math.round(rightValue / slotInterval) * slotInterval;
|
|
535
533
|
rightValue = rightValue - (Math.ceil((this.actionObj.pageX - this.actionObj.X) / slotInterval) * slotInterval);
|
|
536
534
|
if (rightValue < 0) {
|
|
537
535
|
rightValue = parseInt(this.actionObj.clone.style.right, 10);
|
|
@@ -497,8 +497,8 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
497
497
|
return slotTd;
|
|
498
498
|
}
|
|
499
499
|
else {
|
|
500
|
-
var daySlot = Math.round(((
|
|
501
|
-
|
|
500
|
+
var daySlot = Math.round(((util.getUniversalTime(schedule.endHour) - util.getUniversalTime(schedule.startHour)) /
|
|
501
|
+
this.interval / util.MS_PER_MINUTE) * this.slotCount);
|
|
502
502
|
return (daySlot * day) + slotTd;
|
|
503
503
|
}
|
|
504
504
|
};
|
|
@@ -1307,7 +1307,7 @@ var QuickPopups = /** @class */ (function () {
|
|
|
1307
1307
|
QuickPopups.prototype.documentClick = function (e) {
|
|
1308
1308
|
var target = e.event.target;
|
|
1309
1309
|
var classNames = '.' + cls.POPUP_WRAPPER_CLASS + ',.' + cls.HEADER_CELLS_CLASS + ',.' + cls.ALLDAY_CELLS_CLASS +
|
|
1310
|
-
',.' + cls.WORK_CELLS_CLASS + ',.' + cls.APPOINTMENT_CLASS
|
|
1310
|
+
',.' + cls.WORK_CELLS_CLASS + ',.' + cls.APPOINTMENT_CLASS;
|
|
1311
1311
|
var popupWrap = this.parent.element.querySelector('.' + cls.POPUP_WRAPPER_CLASS);
|
|
1312
1312
|
if ((popupWrap && popupWrap.childElementCount > 0 && !closest(target, classNames)) || !closest(target, classNames)) {
|
|
1313
1313
|
this.quickPopupHide();
|
|
@@ -1322,7 +1322,8 @@ var QuickPopups = /** @class */ (function () {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
if (!closest(target, '.' + cls.MORE_POPUP_WRAPPER_CLASS) && (target.classList &&
|
|
1324
1324
|
!target.classList.contains(cls.MORE_INDICATOR_CLASS))
|
|
1325
|
-
&& (!closest(target, '.' + cls.
|
|
1325
|
+
&& (!closest(target, '.' + cls.MORE_POPUP_WRAPPER_CLASS + '.' + cls.POPUP_OPEN))
|
|
1326
|
+
&& !closest(target, '.' + cls.WORK_CELLS_CLASS)) {
|
|
1326
1327
|
this.morePopup.hide();
|
|
1327
1328
|
}
|
|
1328
1329
|
};
|
|
@@ -49,7 +49,7 @@ var MonthAgenda = /** @class */ (function (_super) {
|
|
|
49
49
|
return 'abbreviated';
|
|
50
50
|
};
|
|
51
51
|
MonthAgenda.prototype.updateSelectedCellClass = function (data) {
|
|
52
|
-
if (util.resetTime(data.date).getTime() === util.resetTime(this.
|
|
52
|
+
if (util.resetTime(data.date).getTime() === util.resetTime(new Date('' + this.parent.selectedDate)).getTime()) {
|
|
53
53
|
data.className.push(cls.SELECTED_CELL_CLASS);
|
|
54
54
|
}
|
|
55
55
|
};
|
|
@@ -373,9 +373,16 @@ var VerticalView = /** @class */ (function (_super) {
|
|
|
373
373
|
var endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
|
|
374
374
|
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
375
375
|
var hoursRange = util.getStartEndHours(util.resetTime(new Date(date.getTime())), startHour, endHour);
|
|
376
|
-
var
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
var totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
|
|
377
|
+
var timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
|
|
378
|
+
var interval = 0;
|
|
379
|
+
if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
|
|
380
|
+
interval = timescaleInterval;
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
|
|
384
|
+
(timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
|
|
385
|
+
}
|
|
379
386
|
return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) / interval;
|
|
380
387
|
};
|
|
381
388
|
VerticalView.prototype.getWorkCellHeight = function () {
|