@syncfusion/ej2-base 20.3.49 → 20.3.50
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/CHANGELOG.md +8 -0
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +28 -10
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +28 -10
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +14 -17
- package/src/draggable.js +28 -10
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.
|
|
3
|
+
* version : 20.3.50
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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-base@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-base@
|
|
3
|
+
"_id": "@syncfusion/ej2-base@20.3.49",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-EE7DhtDxAg5vWQE/I4N6Oh2B36zxzlWIPtDcJHIkZRfJ2En3/wfFVLyvS2xMDVF4KMYEqF8ZmhAKQpXl7p0lUA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,22 +23,21 @@
|
|
|
23
23
|
"/@syncfusion/ej2-angular-buttons",
|
|
24
24
|
"/@syncfusion/ej2-angular-calendars",
|
|
25
25
|
"/@syncfusion/ej2-angular-charts",
|
|
26
|
-
"/@syncfusion/ej2-angular-circulargauge",
|
|
27
26
|
"/@syncfusion/ej2-angular-diagrams",
|
|
28
27
|
"/@syncfusion/ej2-angular-documenteditor",
|
|
29
28
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
30
|
-
"/@syncfusion/ej2-angular-filemanager",
|
|
31
29
|
"/@syncfusion/ej2-angular-gantt",
|
|
32
30
|
"/@syncfusion/ej2-angular-grids",
|
|
33
31
|
"/@syncfusion/ej2-angular-heatmap",
|
|
32
|
+
"/@syncfusion/ej2-angular-image-editor",
|
|
34
33
|
"/@syncfusion/ej2-angular-inputs",
|
|
35
|
-
"/@syncfusion/ej2-angular-
|
|
36
|
-
"/@syncfusion/ej2-angular-maps",
|
|
34
|
+
"/@syncfusion/ej2-angular-lists",
|
|
37
35
|
"/@syncfusion/ej2-angular-navigations",
|
|
38
36
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
39
37
|
"/@syncfusion/ej2-angular-pivotview",
|
|
40
38
|
"/@syncfusion/ej2-angular-popups",
|
|
41
39
|
"/@syncfusion/ej2-angular-querybuilder",
|
|
40
|
+
"/@syncfusion/ej2-angular-richtexteditor",
|
|
42
41
|
"/@syncfusion/ej2-angular-schedule",
|
|
43
42
|
"/@syncfusion/ej2-angular-spreadsheet",
|
|
44
43
|
"/@syncfusion/ej2-angular-treegrid",
|
|
@@ -76,22 +75,21 @@
|
|
|
76
75
|
"/@syncfusion/ej2-react-buttons",
|
|
77
76
|
"/@syncfusion/ej2-react-calendars",
|
|
78
77
|
"/@syncfusion/ej2-react-charts",
|
|
79
|
-
"/@syncfusion/ej2-react-circulargauge",
|
|
80
78
|
"/@syncfusion/ej2-react-diagrams",
|
|
81
79
|
"/@syncfusion/ej2-react-documenteditor",
|
|
82
80
|
"/@syncfusion/ej2-react-dropdowns",
|
|
83
|
-
"/@syncfusion/ej2-react-filemanager",
|
|
84
81
|
"/@syncfusion/ej2-react-gantt",
|
|
85
82
|
"/@syncfusion/ej2-react-grids",
|
|
86
83
|
"/@syncfusion/ej2-react-heatmap",
|
|
84
|
+
"/@syncfusion/ej2-react-image-editor",
|
|
87
85
|
"/@syncfusion/ej2-react-inputs",
|
|
88
|
-
"/@syncfusion/ej2-react-
|
|
89
|
-
"/@syncfusion/ej2-react-maps",
|
|
86
|
+
"/@syncfusion/ej2-react-lists",
|
|
90
87
|
"/@syncfusion/ej2-react-navigations",
|
|
91
88
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
92
89
|
"/@syncfusion/ej2-react-pivotview",
|
|
93
90
|
"/@syncfusion/ej2-react-popups",
|
|
94
91
|
"/@syncfusion/ej2-react-querybuilder",
|
|
92
|
+
"/@syncfusion/ej2-react-richtexteditor",
|
|
95
93
|
"/@syncfusion/ej2-react-schedule",
|
|
96
94
|
"/@syncfusion/ej2-react-spreadsheet",
|
|
97
95
|
"/@syncfusion/ej2-react-treegrid",
|
|
@@ -106,28 +104,27 @@
|
|
|
106
104
|
"/@syncfusion/ej2-vue-buttons",
|
|
107
105
|
"/@syncfusion/ej2-vue-calendars",
|
|
108
106
|
"/@syncfusion/ej2-vue-charts",
|
|
109
|
-
"/@syncfusion/ej2-vue-circulargauge",
|
|
110
107
|
"/@syncfusion/ej2-vue-diagrams",
|
|
111
108
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
112
109
|
"/@syncfusion/ej2-vue-dropdowns",
|
|
113
|
-
"/@syncfusion/ej2-vue-filemanager",
|
|
114
110
|
"/@syncfusion/ej2-vue-gantt",
|
|
115
111
|
"/@syncfusion/ej2-vue-grids",
|
|
116
112
|
"/@syncfusion/ej2-vue-heatmap",
|
|
113
|
+
"/@syncfusion/ej2-vue-image-editor",
|
|
117
114
|
"/@syncfusion/ej2-vue-inputs",
|
|
118
|
-
"/@syncfusion/ej2-vue-
|
|
119
|
-
"/@syncfusion/ej2-vue-maps",
|
|
115
|
+
"/@syncfusion/ej2-vue-lists",
|
|
120
116
|
"/@syncfusion/ej2-vue-navigations",
|
|
121
117
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
122
118
|
"/@syncfusion/ej2-vue-pivotview",
|
|
123
119
|
"/@syncfusion/ej2-vue-popups",
|
|
124
120
|
"/@syncfusion/ej2-vue-querybuilder",
|
|
121
|
+
"/@syncfusion/ej2-vue-richtexteditor",
|
|
125
122
|
"/@syncfusion/ej2-vue-schedule",
|
|
126
123
|
"/@syncfusion/ej2-vue-spreadsheet",
|
|
127
124
|
"/@syncfusion/ej2-vue-treegrid"
|
|
128
125
|
],
|
|
129
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-
|
|
130
|
-
"_shasum": "
|
|
126
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.3.49.tgz",
|
|
127
|
+
"_shasum": "3261261027f2c0dea7a4f77e1700eb96b57acb4d",
|
|
131
128
|
"_spec": "@syncfusion/ej2-base@*",
|
|
132
129
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
133
130
|
"author": {
|
|
@@ -182,6 +179,6 @@
|
|
|
182
179
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
183
180
|
},
|
|
184
181
|
"typings": "index.d.ts",
|
|
185
|
-
"version": "20.3.
|
|
182
|
+
"version": "20.3.50",
|
|
186
183
|
"sideEffects": true
|
|
187
184
|
}
|
package/src/draggable.js
CHANGED
|
@@ -462,14 +462,27 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
462
462
|
}
|
|
463
463
|
var draEleTop;
|
|
464
464
|
var draEleLeft;
|
|
465
|
-
if (this.
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
465
|
+
if (this.helperElement.classList.contains('e-treeview')) {
|
|
466
|
+
if (this.dragArea) {
|
|
467
|
+
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
|
|
468
|
+
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - this.borderWidth.top);
|
|
469
|
+
draEleLeft = (left - iLeft) < 0 ? this.dragLimit.left : (left - this.borderWidth.left);
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
draEleTop = top - this.borderWidth.top;
|
|
473
|
+
draEleLeft = left - this.borderWidth.left;
|
|
474
|
+
}
|
|
469
475
|
}
|
|
470
476
|
else {
|
|
471
|
-
|
|
472
|
-
|
|
477
|
+
if (this.dragArea) {
|
|
478
|
+
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
|
|
479
|
+
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - iTop);
|
|
480
|
+
draEleLeft = (left - iLeft) < 0 ? this.dragElePosition.left : (left - iLeft);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
draEleTop = top - iTop;
|
|
484
|
+
draEleLeft = left - iLeft;
|
|
485
|
+
}
|
|
473
486
|
}
|
|
474
487
|
var marginTop = parseFloat(getComputedStyle(this.element).marginTop);
|
|
475
488
|
// when drag-element has margin-top
|
|
@@ -502,7 +515,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
502
515
|
}
|
|
503
516
|
}
|
|
504
517
|
}
|
|
505
|
-
if (this.dragArea) {
|
|
518
|
+
if (this.dragArea && this.helperElement.classList.contains('e-treeview')) {
|
|
506
519
|
var helperHeight = helperElement.offsetHeight + (parseFloat(styles.marginTop)
|
|
507
520
|
+ parseFloat(styles.marginBottom));
|
|
508
521
|
draEleTop = (draEleTop + helperHeight) > this.dragLimit.bottom ? (this.dragLimit.bottom - helperHeight) : draEleTop;
|
|
@@ -576,7 +589,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
576
589
|
}
|
|
577
590
|
}
|
|
578
591
|
else if (nodeEle && nodeEle !== document.scrollingElement) {
|
|
579
|
-
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop
|
|
592
|
+
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop) < draEleTop) {
|
|
580
593
|
nodeEle.scrollTop += this.helperElement.clientHeight;
|
|
581
594
|
}
|
|
582
595
|
else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight - document.scrollingElement.scrollTop)) {
|
|
@@ -682,7 +695,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
682
695
|
if (ele) {
|
|
683
696
|
var elementArea = ele.getBoundingClientRect();
|
|
684
697
|
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
|
|
685
|
-
eleHeightBound = ele.scrollHeight ? (this.dragArea && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
698
|
+
eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
686
699
|
var keys = ['Top', 'Left', 'Bottom', 'Right'];
|
|
687
700
|
var styles = getComputedStyle(ele);
|
|
688
701
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -693,7 +706,12 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
693
706
|
this.borderWidth[lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
|
|
694
707
|
this.padding[lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
|
|
695
708
|
}
|
|
696
|
-
|
|
709
|
+
if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
|
|
710
|
+
top = elementArea.top + document.scrollingElement.scrollTop;
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
top = elementArea.top;
|
|
714
|
+
}
|
|
697
715
|
left = elementArea.left;
|
|
698
716
|
this.dragLimit.left = left + this.borderWidth.left + this.padding.left;
|
|
699
717
|
this.dragLimit.top = ele.offsetTop + this.borderWidth.top + this.padding.top;
|