@syncfusion/ej2-base 20.3.48 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.48
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-xre902f3O/phpSNiA8URYl4Cxgu8eyF2LZvMpe3GeDdUnH8Iyun5AdcUzjPcsez1YGoCR0fJzchW5XCasn4JOQ==",
5
+ "_integrity": "sha512-WMTTtB07Yjxz1n2rt3gmdkiK/KNcaflW2TnEkIycIiAH4Obts9Yjmw6wqPQlQ7T7uIZWSUmwE4sATiqopMld7Q==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,13 +27,19 @@
27
27
  "/@syncfusion/ej2-angular-diagrams",
28
28
  "/@syncfusion/ej2-angular-documenteditor",
29
29
  "/@syncfusion/ej2-angular-dropdowns",
30
+ "/@syncfusion/ej2-angular-filemanager",
30
31
  "/@syncfusion/ej2-angular-gantt",
31
32
  "/@syncfusion/ej2-angular-grids",
32
- "/@syncfusion/ej2-angular-image-editor",
33
- "/@syncfusion/ej2-angular-layouts",
33
+ "/@syncfusion/ej2-angular-heatmap",
34
+ "/@syncfusion/ej2-angular-inputs",
35
+ "/@syncfusion/ej2-angular-kanban",
36
+ "/@syncfusion/ej2-angular-maps",
34
37
  "/@syncfusion/ej2-angular-navigations",
35
38
  "/@syncfusion/ej2-angular-pdfviewer",
39
+ "/@syncfusion/ej2-angular-pivotview",
36
40
  "/@syncfusion/ej2-angular-popups",
41
+ "/@syncfusion/ej2-angular-querybuilder",
42
+ "/@syncfusion/ej2-angular-schedule",
37
43
  "/@syncfusion/ej2-angular-spreadsheet",
38
44
  "/@syncfusion/ej2-angular-treegrid",
39
45
  "/@syncfusion/ej2-barcode-generator",
@@ -74,13 +80,19 @@
74
80
  "/@syncfusion/ej2-react-diagrams",
75
81
  "/@syncfusion/ej2-react-documenteditor",
76
82
  "/@syncfusion/ej2-react-dropdowns",
83
+ "/@syncfusion/ej2-react-filemanager",
77
84
  "/@syncfusion/ej2-react-gantt",
78
85
  "/@syncfusion/ej2-react-grids",
79
- "/@syncfusion/ej2-react-image-editor",
80
- "/@syncfusion/ej2-react-layouts",
86
+ "/@syncfusion/ej2-react-heatmap",
87
+ "/@syncfusion/ej2-react-inputs",
88
+ "/@syncfusion/ej2-react-kanban",
89
+ "/@syncfusion/ej2-react-maps",
81
90
  "/@syncfusion/ej2-react-navigations",
82
91
  "/@syncfusion/ej2-react-pdfviewer",
92
+ "/@syncfusion/ej2-react-pivotview",
83
93
  "/@syncfusion/ej2-react-popups",
94
+ "/@syncfusion/ej2-react-querybuilder",
95
+ "/@syncfusion/ej2-react-schedule",
84
96
  "/@syncfusion/ej2-react-spreadsheet",
85
97
  "/@syncfusion/ej2-react-treegrid",
86
98
  "/@syncfusion/ej2-richtexteditor",
@@ -98,18 +110,24 @@
98
110
  "/@syncfusion/ej2-vue-diagrams",
99
111
  "/@syncfusion/ej2-vue-documenteditor",
100
112
  "/@syncfusion/ej2-vue-dropdowns",
113
+ "/@syncfusion/ej2-vue-filemanager",
101
114
  "/@syncfusion/ej2-vue-gantt",
102
115
  "/@syncfusion/ej2-vue-grids",
103
- "/@syncfusion/ej2-vue-image-editor",
104
- "/@syncfusion/ej2-vue-layouts",
116
+ "/@syncfusion/ej2-vue-heatmap",
117
+ "/@syncfusion/ej2-vue-inputs",
118
+ "/@syncfusion/ej2-vue-kanban",
119
+ "/@syncfusion/ej2-vue-maps",
105
120
  "/@syncfusion/ej2-vue-navigations",
106
121
  "/@syncfusion/ej2-vue-pdfviewer",
122
+ "/@syncfusion/ej2-vue-pivotview",
107
123
  "/@syncfusion/ej2-vue-popups",
124
+ "/@syncfusion/ej2-vue-querybuilder",
125
+ "/@syncfusion/ej2-vue-schedule",
108
126
  "/@syncfusion/ej2-vue-spreadsheet",
109
127
  "/@syncfusion/ej2-vue-treegrid"
110
128
  ],
111
129
  "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-18.61.0.tgz",
112
- "_shasum": "d234208f117d2a802c37ce46286e335c1b0d7081",
130
+ "_shasum": "99e7aee23d5cec67e8c4e0b10cea775e11290851",
113
131
  "_spec": "@syncfusion/ej2-base@*",
114
132
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
115
133
  "author": {
@@ -164,6 +182,6 @@
164
182
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
165
183
  },
166
184
  "typings": "index.d.ts",
167
- "version": "20.3.48",
185
+ "version": "20.3.49",
168
186
  "sideEffects": true
169
187
  }
@@ -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 - iTop);
468
- draEleLeft = (left - iLeft) < 0 ? this.dragElePosition.left : (left - iLeft);
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 - iTop;
472
- draEleLeft = left - iLeft;
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 - nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight) < draEleTop
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.scrollHeight - nodeEle.clientHeight > draEleTop) {
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) < draEleTop) {
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;