@syncfusion/ej2-schedule 28.1.33 → 28.1.35
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 -6
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +10 -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 +8 -8
- package/src/schedule/actions/drag.d.ts +1 -0
- package/src/schedule/actions/drag.js +10 -6
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.1.
|
|
3
|
+
* version : 28.1.35
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@28.1.33",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-pOs72MRPuGjaTpiTLu7fAjd8/MBAA7u4IGja5+ZBT1sn4nr9MyxzJaqzIt5mWw/g0yBi5hHh4GNfi4KBf5sO5g==",
|
|
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-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.1.33.tgz",
|
|
27
|
+
"_shasum": "9e696199eff2cb01e696de60fbc29a121a720e51",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~28.1.33",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~28.1.33",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~28.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~28.1.35",
|
|
41
41
|
"@syncfusion/ej2-data": "~28.1.33",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~28.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~28.1.35",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~28.1.33",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~28.1.33",
|
|
45
45
|
"@syncfusion/ej2-lists": "~28.1.33",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~28.1.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~28.1.35",
|
|
47
47
|
"@syncfusion/ej2-popups": "~28.1.33"
|
|
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.1.
|
|
76
|
+
"version": "28.1.35",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -53,15 +53,15 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
53
53
|
_this.isPreventMultiDrag = false;
|
|
54
54
|
_this.slotsUptoCursor = -1;
|
|
55
55
|
_this.eleTop = 0;
|
|
56
|
+
_this.distanceUptoCursor = 0;
|
|
56
57
|
return _this;
|
|
57
58
|
}
|
|
58
59
|
DragAndDrop.prototype.wireDragEvent = function (element) {
|
|
59
|
-
var isVerticalView = ['Day', 'Week', 'WorkWeek'].indexOf(this.parent.currentView) > -1;
|
|
60
60
|
new Draggable(element, {
|
|
61
61
|
abort: '.' + cls.EVENT_RESIZE_CLASS,
|
|
62
62
|
clone: true,
|
|
63
63
|
isDragScroll: true,
|
|
64
|
-
enableTailMode:
|
|
64
|
+
enableTailMode: this.parent.eventDragArea ? true : false,
|
|
65
65
|
cursorAt: (this.parent.eventDragArea) ? { left: -20, top: -20 } : { left: 0, top: 0 },
|
|
66
66
|
dragArea: this.dragArea,
|
|
67
67
|
dragStart: this.dragStart.bind(this),
|
|
@@ -85,8 +85,12 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
85
85
|
}
|
|
86
86
|
this.setDragActionDefaultValues();
|
|
87
87
|
this.actionObj.element = e.element;
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
if (e.sender && ['Day', 'Week', 'WorkWeek'].indexOf(this.parent.currentView) > -1) {
|
|
89
|
+
var eventArgs = this.parent.eventBase.getPageCoordinates(e.sender);
|
|
90
|
+
this.distanceUptoCursor = eventArgs.clientY - this.actionObj.element.getBoundingClientRect().top;
|
|
91
|
+
this.eleTop = parseFloat(this.actionObj.element.style.top);
|
|
92
|
+
this.slotsUptoCursor = -1;
|
|
93
|
+
}
|
|
90
94
|
this.actionObj.action = 'drag';
|
|
91
95
|
var elements = [];
|
|
92
96
|
if (!this.parent.allowMultiDrag || isNullOrUndefined(this.parent.selectedElements) || this.parent.selectedElements.length === 0 ||
|
|
@@ -166,11 +170,11 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
166
170
|
var top_1 = parseInt(e.top, 10);
|
|
167
171
|
top_1 = top_1 < 0 ? 0 : top_1;
|
|
168
172
|
if (this.slotsUptoCursor < 0) {
|
|
169
|
-
var cellsCountUptoCursor = Math.floor(
|
|
173
|
+
var cellsCountUptoCursor = Math.floor((this.eleTop + this.distanceUptoCursor) / cellHeight);
|
|
170
174
|
var cellsCountUptoEleTop = Math.floor(this.eleTop / cellHeight);
|
|
171
175
|
this.slotsUptoCursor = cellsCountUptoCursor - cellsCountUptoEleTop;
|
|
172
176
|
}
|
|
173
|
-
top_1 = (Math.floor((top_1 + 1) / cellHeight) - this.slotsUptoCursor) * cellHeight;
|
|
177
|
+
top_1 = (Math.floor((top_1 + this.distanceUptoCursor + 1) / cellHeight) - this.slotsUptoCursor) * cellHeight;
|
|
174
178
|
topValue = formatUnit(top_1 < 0 ? 0 : top_1);
|
|
175
179
|
var scrollHeight = this.parent.element.querySelector('.e-content-wrap').scrollHeight;
|
|
176
180
|
var cloneBottom = parseInt(topValue, 10) + this.actionObj.clone.offsetHeight;
|