@syncfusion/ej2-base 20.3.48 → 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 +24 -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 +37 -14
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +37 -14
- 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 +26 -11
- package/src/component.d.ts +1 -1
- package/src/component.js +1 -1
- package/src/draggable.js +36 -13
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,17 +23,22 @@
|
|
|
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
29
|
"/@syncfusion/ej2-angular-gantt",
|
|
31
30
|
"/@syncfusion/ej2-angular-grids",
|
|
31
|
+
"/@syncfusion/ej2-angular-heatmap",
|
|
32
32
|
"/@syncfusion/ej2-angular-image-editor",
|
|
33
|
-
"/@syncfusion/ej2-angular-
|
|
33
|
+
"/@syncfusion/ej2-angular-inputs",
|
|
34
|
+
"/@syncfusion/ej2-angular-lists",
|
|
34
35
|
"/@syncfusion/ej2-angular-navigations",
|
|
35
36
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
37
|
+
"/@syncfusion/ej2-angular-pivotview",
|
|
36
38
|
"/@syncfusion/ej2-angular-popups",
|
|
39
|
+
"/@syncfusion/ej2-angular-querybuilder",
|
|
40
|
+
"/@syncfusion/ej2-angular-richtexteditor",
|
|
41
|
+
"/@syncfusion/ej2-angular-schedule",
|
|
37
42
|
"/@syncfusion/ej2-angular-spreadsheet",
|
|
38
43
|
"/@syncfusion/ej2-angular-treegrid",
|
|
39
44
|
"/@syncfusion/ej2-barcode-generator",
|
|
@@ -70,17 +75,22 @@
|
|
|
70
75
|
"/@syncfusion/ej2-react-buttons",
|
|
71
76
|
"/@syncfusion/ej2-react-calendars",
|
|
72
77
|
"/@syncfusion/ej2-react-charts",
|
|
73
|
-
"/@syncfusion/ej2-react-circulargauge",
|
|
74
78
|
"/@syncfusion/ej2-react-diagrams",
|
|
75
79
|
"/@syncfusion/ej2-react-documenteditor",
|
|
76
80
|
"/@syncfusion/ej2-react-dropdowns",
|
|
77
81
|
"/@syncfusion/ej2-react-gantt",
|
|
78
82
|
"/@syncfusion/ej2-react-grids",
|
|
83
|
+
"/@syncfusion/ej2-react-heatmap",
|
|
79
84
|
"/@syncfusion/ej2-react-image-editor",
|
|
80
|
-
"/@syncfusion/ej2-react-
|
|
85
|
+
"/@syncfusion/ej2-react-inputs",
|
|
86
|
+
"/@syncfusion/ej2-react-lists",
|
|
81
87
|
"/@syncfusion/ej2-react-navigations",
|
|
82
88
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
89
|
+
"/@syncfusion/ej2-react-pivotview",
|
|
83
90
|
"/@syncfusion/ej2-react-popups",
|
|
91
|
+
"/@syncfusion/ej2-react-querybuilder",
|
|
92
|
+
"/@syncfusion/ej2-react-richtexteditor",
|
|
93
|
+
"/@syncfusion/ej2-react-schedule",
|
|
84
94
|
"/@syncfusion/ej2-react-spreadsheet",
|
|
85
95
|
"/@syncfusion/ej2-react-treegrid",
|
|
86
96
|
"/@syncfusion/ej2-richtexteditor",
|
|
@@ -94,22 +104,27 @@
|
|
|
94
104
|
"/@syncfusion/ej2-vue-buttons",
|
|
95
105
|
"/@syncfusion/ej2-vue-calendars",
|
|
96
106
|
"/@syncfusion/ej2-vue-charts",
|
|
97
|
-
"/@syncfusion/ej2-vue-circulargauge",
|
|
98
107
|
"/@syncfusion/ej2-vue-diagrams",
|
|
99
108
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
100
109
|
"/@syncfusion/ej2-vue-dropdowns",
|
|
101
110
|
"/@syncfusion/ej2-vue-gantt",
|
|
102
111
|
"/@syncfusion/ej2-vue-grids",
|
|
112
|
+
"/@syncfusion/ej2-vue-heatmap",
|
|
103
113
|
"/@syncfusion/ej2-vue-image-editor",
|
|
104
|
-
"/@syncfusion/ej2-vue-
|
|
114
|
+
"/@syncfusion/ej2-vue-inputs",
|
|
115
|
+
"/@syncfusion/ej2-vue-lists",
|
|
105
116
|
"/@syncfusion/ej2-vue-navigations",
|
|
106
117
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
118
|
+
"/@syncfusion/ej2-vue-pivotview",
|
|
107
119
|
"/@syncfusion/ej2-vue-popups",
|
|
120
|
+
"/@syncfusion/ej2-vue-querybuilder",
|
|
121
|
+
"/@syncfusion/ej2-vue-richtexteditor",
|
|
122
|
+
"/@syncfusion/ej2-vue-schedule",
|
|
108
123
|
"/@syncfusion/ej2-vue-spreadsheet",
|
|
109
124
|
"/@syncfusion/ej2-vue-treegrid"
|
|
110
125
|
],
|
|
111
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-
|
|
112
|
-
"_shasum": "
|
|
126
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.3.49.tgz",
|
|
127
|
+
"_shasum": "3261261027f2c0dea7a4f77e1700eb96b57acb4d",
|
|
113
128
|
"_spec": "@syncfusion/ej2-base@*",
|
|
114
129
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
115
130
|
"author": {
|
|
@@ -164,6 +179,6 @@
|
|
|
164
179
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
165
180
|
},
|
|
166
181
|
"typings": "index.d.ts",
|
|
167
|
-
"version": "20.3.
|
|
182
|
+
"version": "20.3.50",
|
|
168
183
|
"sideEffects": true
|
|
169
184
|
}
|
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
|
@@ -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,6 +515,11 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
502
515
|
}
|
|
503
516
|
}
|
|
504
517
|
}
|
|
518
|
+
if (this.dragArea && this.helperElement.classList.contains('e-treeview')) {
|
|
519
|
+
var helperHeight = helperElement.offsetHeight + (parseFloat(styles.marginTop)
|
|
520
|
+
+ parseFloat(styles.marginBottom));
|
|
521
|
+
draEleTop = (draEleTop + helperHeight) > this.dragLimit.bottom ? (this.dragLimit.bottom - helperHeight) : draEleTop;
|
|
522
|
+
}
|
|
505
523
|
/* istanbul ignore next */
|
|
506
524
|
// if(this.eleTop > 0) {
|
|
507
525
|
// draEleTop += this.eleTop;
|
|
@@ -562,19 +580,19 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
562
580
|
};
|
|
563
581
|
Draggable.prototype.getScrollPosition = function (nodeEle, draEleTop) {
|
|
564
582
|
if (nodeEle && nodeEle === document.scrollingElement) {
|
|
565
|
-
if ((nodeEle.clientHeight
|
|
566
|
-
&& nodeEle.getBoundingClientRect().height > draEleTop) {
|
|
583
|
+
if ((nodeEle.clientHeight + document.scrollingElement.scrollTop - this.helperElement.clientHeight) < draEleTop
|
|
584
|
+
&& nodeEle.getBoundingClientRect().height + this.parentClientRect.top > draEleTop) {
|
|
567
585
|
nodeEle.scrollTop += this.helperElement.clientHeight;
|
|
568
586
|
}
|
|
569
|
-
else if (nodeEle.
|
|
587
|
+
else if (nodeEle.scrollTop > draEleTop - this.helperElement.clientHeight) {
|
|
570
588
|
nodeEle.scrollTop -= this.helperElement.clientHeight;
|
|
571
589
|
}
|
|
572
590
|
}
|
|
573
591
|
else if (nodeEle && nodeEle !== document.scrollingElement) {
|
|
574
|
-
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight) < draEleTop) {
|
|
592
|
+
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop) < draEleTop) {
|
|
575
593
|
nodeEle.scrollTop += this.helperElement.clientHeight;
|
|
576
594
|
}
|
|
577
|
-
else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight)) {
|
|
595
|
+
else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight - document.scrollingElement.scrollTop)) {
|
|
578
596
|
nodeEle.scrollTop -= this.helperElement.clientHeight;
|
|
579
597
|
}
|
|
580
598
|
}
|
|
@@ -677,7 +695,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
677
695
|
if (ele) {
|
|
678
696
|
var elementArea = ele.getBoundingClientRect();
|
|
679
697
|
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
|
|
680
|
-
eleHeightBound = ele.scrollHeight ? 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;
|
|
681
699
|
var keys = ['Top', 'Left', 'Bottom', 'Right'];
|
|
682
700
|
var styles = getComputedStyle(ele);
|
|
683
701
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -688,7 +706,12 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
688
706
|
this.borderWidth[lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
|
|
689
707
|
this.padding[lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
|
|
690
708
|
}
|
|
691
|
-
|
|
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
|
+
}
|
|
692
715
|
left = elementArea.left;
|
|
693
716
|
this.dragLimit.left = left + this.borderWidth.left + this.padding.left;
|
|
694
717
|
this.dragLimit.top = ele.offsetTop + this.borderWidth.top + this.padding.top;
|