@syncfusion/ej2-schedule 28.2.3 → 28.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/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 +14 -7
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +17 -9
- 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/crud.js +12 -5
- package/src/schedule/event-renderer/timeline-view.js +2 -2
- package/src/schedule/popups/quick-popups.js +3 -2
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.4
|
|
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.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-vRaCJipyu0WOz8zNsBt0o5l6C5FlaVCFl6yhFGLNn+ipaJ3rYe9ayv5S/I0A2Qb4PLpuNEk8tYkpduppPwX4Mg==",
|
|
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.3.tgz",
|
|
27
|
+
"_shasum": "49008b0b547e8011d023d8ec52ba2706cca9c8a0",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -39,11 +39,11 @@
|
|
|
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.4",
|
|
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.4",
|
|
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.4",
|
|
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
|
};
|
|
@@ -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
|
};
|