@syncfusion/ej2-base 20.3.47 → 20.3.49
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 +16 -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 +17 -12
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +17 -12
- 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 +5 -38
- package/src/component.d.ts +1 -1
- package/src/component.js +1 -1
- package/src/draggable.js +16 -11
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.49
|
|
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"_from": "@syncfusion/ej2-base@*",
|
|
3
3
|
"_id": "@syncfusion/ej2-base@18.61.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-WMTTtB07Yjxz1n2rt3gmdkiK/KNcaflW2TnEkIycIiAH4Obts9Yjmw6wqPQlQ7T7uIZWSUmwE4sATiqopMld7Q==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
|
-
"/@syncfusion/ej2-angular-barcode-generator",
|
|
23
22
|
"/@syncfusion/ej2-angular-base",
|
|
24
23
|
"/@syncfusion/ej2-angular-buttons",
|
|
25
24
|
"/@syncfusion/ej2-angular-calendars",
|
|
@@ -32,27 +31,17 @@
|
|
|
32
31
|
"/@syncfusion/ej2-angular-gantt",
|
|
33
32
|
"/@syncfusion/ej2-angular-grids",
|
|
34
33
|
"/@syncfusion/ej2-angular-heatmap",
|
|
35
|
-
"/@syncfusion/ej2-angular-image-editor",
|
|
36
|
-
"/@syncfusion/ej2-angular-inplace-editor",
|
|
37
34
|
"/@syncfusion/ej2-angular-inputs",
|
|
38
35
|
"/@syncfusion/ej2-angular-kanban",
|
|
39
|
-
"/@syncfusion/ej2-angular-layouts",
|
|
40
|
-
"/@syncfusion/ej2-angular-lineargauge",
|
|
41
|
-
"/@syncfusion/ej2-angular-lists",
|
|
42
36
|
"/@syncfusion/ej2-angular-maps",
|
|
43
37
|
"/@syncfusion/ej2-angular-navigations",
|
|
44
|
-
"/@syncfusion/ej2-angular-notifications",
|
|
45
38
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
46
39
|
"/@syncfusion/ej2-angular-pivotview",
|
|
47
40
|
"/@syncfusion/ej2-angular-popups",
|
|
48
|
-
"/@syncfusion/ej2-angular-progressbar",
|
|
49
41
|
"/@syncfusion/ej2-angular-querybuilder",
|
|
50
|
-
"/@syncfusion/ej2-angular-richtexteditor",
|
|
51
42
|
"/@syncfusion/ej2-angular-schedule",
|
|
52
|
-
"/@syncfusion/ej2-angular-splitbuttons",
|
|
53
43
|
"/@syncfusion/ej2-angular-spreadsheet",
|
|
54
44
|
"/@syncfusion/ej2-angular-treegrid",
|
|
55
|
-
"/@syncfusion/ej2-angular-treemap",
|
|
56
45
|
"/@syncfusion/ej2-barcode-generator",
|
|
57
46
|
"/@syncfusion/ej2-buttons",
|
|
58
47
|
"/@syncfusion/ej2-calendars",
|
|
@@ -83,7 +72,6 @@
|
|
|
83
72
|
"/@syncfusion/ej2-popups",
|
|
84
73
|
"/@syncfusion/ej2-progressbar",
|
|
85
74
|
"/@syncfusion/ej2-querybuilder",
|
|
86
|
-
"/@syncfusion/ej2-react-barcode-generator",
|
|
87
75
|
"/@syncfusion/ej2-react-base",
|
|
88
76
|
"/@syncfusion/ej2-react-buttons",
|
|
89
77
|
"/@syncfusion/ej2-react-calendars",
|
|
@@ -96,27 +84,17 @@
|
|
|
96
84
|
"/@syncfusion/ej2-react-gantt",
|
|
97
85
|
"/@syncfusion/ej2-react-grids",
|
|
98
86
|
"/@syncfusion/ej2-react-heatmap",
|
|
99
|
-
"/@syncfusion/ej2-react-image-editor",
|
|
100
|
-
"/@syncfusion/ej2-react-inplace-editor",
|
|
101
87
|
"/@syncfusion/ej2-react-inputs",
|
|
102
88
|
"/@syncfusion/ej2-react-kanban",
|
|
103
|
-
"/@syncfusion/ej2-react-layouts",
|
|
104
|
-
"/@syncfusion/ej2-react-lineargauge",
|
|
105
|
-
"/@syncfusion/ej2-react-lists",
|
|
106
89
|
"/@syncfusion/ej2-react-maps",
|
|
107
90
|
"/@syncfusion/ej2-react-navigations",
|
|
108
|
-
"/@syncfusion/ej2-react-notifications",
|
|
109
91
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
110
92
|
"/@syncfusion/ej2-react-pivotview",
|
|
111
93
|
"/@syncfusion/ej2-react-popups",
|
|
112
|
-
"/@syncfusion/ej2-react-progressbar",
|
|
113
94
|
"/@syncfusion/ej2-react-querybuilder",
|
|
114
|
-
"/@syncfusion/ej2-react-richtexteditor",
|
|
115
95
|
"/@syncfusion/ej2-react-schedule",
|
|
116
|
-
"/@syncfusion/ej2-react-splitbuttons",
|
|
117
96
|
"/@syncfusion/ej2-react-spreadsheet",
|
|
118
97
|
"/@syncfusion/ej2-react-treegrid",
|
|
119
|
-
"/@syncfusion/ej2-react-treemap",
|
|
120
98
|
"/@syncfusion/ej2-richtexteditor",
|
|
121
99
|
"/@syncfusion/ej2-schedule",
|
|
122
100
|
"/@syncfusion/ej2-splitbuttons",
|
|
@@ -124,7 +102,6 @@
|
|
|
124
102
|
"/@syncfusion/ej2-svg-base",
|
|
125
103
|
"/@syncfusion/ej2-treegrid",
|
|
126
104
|
"/@syncfusion/ej2-treemap",
|
|
127
|
-
"/@syncfusion/ej2-vue-barcode-generator",
|
|
128
105
|
"/@syncfusion/ej2-vue-base",
|
|
129
106
|
"/@syncfusion/ej2-vue-buttons",
|
|
130
107
|
"/@syncfusion/ej2-vue-calendars",
|
|
@@ -137,30 +114,20 @@
|
|
|
137
114
|
"/@syncfusion/ej2-vue-gantt",
|
|
138
115
|
"/@syncfusion/ej2-vue-grids",
|
|
139
116
|
"/@syncfusion/ej2-vue-heatmap",
|
|
140
|
-
"/@syncfusion/ej2-vue-image-editor",
|
|
141
|
-
"/@syncfusion/ej2-vue-inplace-editor",
|
|
142
117
|
"/@syncfusion/ej2-vue-inputs",
|
|
143
118
|
"/@syncfusion/ej2-vue-kanban",
|
|
144
|
-
"/@syncfusion/ej2-vue-layouts",
|
|
145
|
-
"/@syncfusion/ej2-vue-lineargauge",
|
|
146
|
-
"/@syncfusion/ej2-vue-lists",
|
|
147
119
|
"/@syncfusion/ej2-vue-maps",
|
|
148
120
|
"/@syncfusion/ej2-vue-navigations",
|
|
149
|
-
"/@syncfusion/ej2-vue-notifications",
|
|
150
121
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
151
122
|
"/@syncfusion/ej2-vue-pivotview",
|
|
152
123
|
"/@syncfusion/ej2-vue-popups",
|
|
153
|
-
"/@syncfusion/ej2-vue-progressbar",
|
|
154
124
|
"/@syncfusion/ej2-vue-querybuilder",
|
|
155
|
-
"/@syncfusion/ej2-vue-richtexteditor",
|
|
156
125
|
"/@syncfusion/ej2-vue-schedule",
|
|
157
|
-
"/@syncfusion/ej2-vue-splitbuttons",
|
|
158
126
|
"/@syncfusion/ej2-vue-spreadsheet",
|
|
159
|
-
"/@syncfusion/ej2-vue-treegrid"
|
|
160
|
-
"/@syncfusion/ej2-vue-treemap"
|
|
127
|
+
"/@syncfusion/ej2-vue-treegrid"
|
|
161
128
|
],
|
|
162
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
163
|
-
"_shasum": "
|
|
129
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-18.61.0.tgz",
|
|
130
|
+
"_shasum": "99e7aee23d5cec67e8c4e0b10cea775e11290851",
|
|
164
131
|
"_spec": "@syncfusion/ej2-base@*",
|
|
165
132
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
166
133
|
"author": {
|
|
@@ -215,6 +182,6 @@
|
|
|
215
182
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
216
183
|
},
|
|
217
184
|
"typings": "index.d.ts",
|
|
218
|
-
"version": "20.3.
|
|
185
|
+
"version": "20.3.49",
|
|
219
186
|
"sideEffects": true
|
|
220
187
|
}
|
package/src/component.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ export declare abstract class Component<ElementType extends HTMLElement> extends
|
|
|
173
173
|
private detectFunction;
|
|
174
174
|
private mergePersistData;
|
|
175
175
|
private setPersistData;
|
|
176
|
-
protected renderReactTemplates(): void;
|
|
176
|
+
protected renderReactTemplates(callback?: any): void;
|
|
177
177
|
protected clearTemplate(templateName?: string[], index?: any): void;
|
|
178
178
|
private getUniqueID;
|
|
179
179
|
private pageID;
|
package/src/component.js
CHANGED
|
@@ -360,7 +360,7 @@ var Component = /** @class */ (function (_super) {
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
//tslint:disable-next-line
|
|
363
|
-
Component.prototype.renderReactTemplates = function () {
|
|
363
|
+
Component.prototype.renderReactTemplates = function (callback) {
|
|
364
364
|
//No Code
|
|
365
365
|
};
|
|
366
366
|
// eslint-disable-next-line
|
package/src/draggable.js
CHANGED
|
@@ -464,12 +464,12 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
464
464
|
var draEleLeft;
|
|
465
465
|
if (this.dragArea) {
|
|
466
466
|
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
|
|
467
|
-
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top -
|
|
468
|
-
draEleLeft = (left - iLeft) < 0 ? this.
|
|
467
|
+
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - this.borderWidth.top);
|
|
468
|
+
draEleLeft = (left - iLeft) < 0 ? this.dragLimit.left : (left - this.borderWidth.left);
|
|
469
469
|
}
|
|
470
470
|
else {
|
|
471
|
-
draEleTop = top -
|
|
472
|
-
draEleLeft = left -
|
|
471
|
+
draEleTop = top - this.borderWidth.top;
|
|
472
|
+
draEleLeft = left - this.borderWidth.left;
|
|
473
473
|
}
|
|
474
474
|
var marginTop = parseFloat(getComputedStyle(this.element).marginTop);
|
|
475
475
|
// when drag-element has margin-top
|
|
@@ -502,6 +502,11 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
+
if (this.dragArea) {
|
|
506
|
+
var helperHeight = helperElement.offsetHeight + (parseFloat(styles.marginTop)
|
|
507
|
+
+ parseFloat(styles.marginBottom));
|
|
508
|
+
draEleTop = (draEleTop + helperHeight) > this.dragLimit.bottom ? (this.dragLimit.bottom - helperHeight) : draEleTop;
|
|
509
|
+
}
|
|
505
510
|
/* istanbul ignore next */
|
|
506
511
|
// if(this.eleTop > 0) {
|
|
507
512
|
// draEleTop += this.eleTop;
|
|
@@ -562,19 +567,19 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
562
567
|
};
|
|
563
568
|
Draggable.prototype.getScrollPosition = function (nodeEle, draEleTop) {
|
|
564
569
|
if (nodeEle && nodeEle === document.scrollingElement) {
|
|
565
|
-
if ((nodeEle.clientHeight
|
|
566
|
-
&& nodeEle.getBoundingClientRect().height > draEleTop) {
|
|
570
|
+
if ((nodeEle.clientHeight + document.scrollingElement.scrollTop - this.helperElement.clientHeight) < draEleTop
|
|
571
|
+
&& nodeEle.getBoundingClientRect().height + this.parentClientRect.top > draEleTop) {
|
|
567
572
|
nodeEle.scrollTop += this.helperElement.clientHeight;
|
|
568
573
|
}
|
|
569
|
-
else if (nodeEle.
|
|
574
|
+
else if (nodeEle.scrollTop > draEleTop - this.helperElement.clientHeight) {
|
|
570
575
|
nodeEle.scrollTop -= this.helperElement.clientHeight;
|
|
571
576
|
}
|
|
572
577
|
}
|
|
573
578
|
else if (nodeEle && nodeEle !== document.scrollingElement) {
|
|
574
|
-
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight)
|
|
579
|
+
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop - this.borderWidth.top - this.borderWidth.bottom) <= draEleTop) {
|
|
575
580
|
nodeEle.scrollTop += this.helperElement.clientHeight;
|
|
576
581
|
}
|
|
577
|
-
else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight)) {
|
|
582
|
+
else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight - document.scrollingElement.scrollTop)) {
|
|
578
583
|
nodeEle.scrollTop -= this.helperElement.clientHeight;
|
|
579
584
|
}
|
|
580
585
|
}
|
|
@@ -677,7 +682,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
677
682
|
if (ele) {
|
|
678
683
|
var elementArea = ele.getBoundingClientRect();
|
|
679
684
|
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
|
|
680
|
-
eleHeightBound = ele.scrollHeight ? ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
685
|
+
eleHeightBound = ele.scrollHeight ? (this.dragArea && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
681
686
|
var keys = ['Top', 'Left', 'Bottom', 'Right'];
|
|
682
687
|
var styles = getComputedStyle(ele);
|
|
683
688
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -688,7 +693,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
688
693
|
this.borderWidth[lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
|
|
689
694
|
this.padding[lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
|
|
690
695
|
}
|
|
691
|
-
top = elementArea.top;
|
|
696
|
+
top = elementArea.top + document.scrollingElement.scrollTop;
|
|
692
697
|
left = elementArea.left;
|
|
693
698
|
this.dragLimit.left = left + this.borderWidth.left + this.padding.left;
|
|
694
699
|
this.dragLimit.top = ele.offsetTop + this.borderWidth.top + this.padding.top;
|