@syncfusion/ej2-base 20.1.56 → 20.1.61

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.1.56
3
+ * version : 20.1.61
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@20.1.55",
3
+ "_id": "@syncfusion/ej2-base@20.1.60",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-8aq1464TXvI7tOSODaEYO8vGel2j1YF6XmtkV7qo1o+PwR1sDIqgnHykgZU7VLgWHdxUjdNw1BuZb2gl9micOg==",
5
+ "_integrity": "sha512-zC2wM5B6njaoNto8nbgEuBFsye4ltVtE42S/8lZ2E7igzcbhbBofBXShDx/EEFHbV2d9aQFM398Ua5rajKjeVw==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -20,20 +20,21 @@
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
22
  "/@syncfusion/ej2-angular-base",
23
- "/@syncfusion/ej2-angular-calendars",
23
+ "/@syncfusion/ej2-angular-buttons",
24
24
  "/@syncfusion/ej2-angular-charts",
25
+ "/@syncfusion/ej2-angular-diagrams",
25
26
  "/@syncfusion/ej2-angular-documenteditor",
26
27
  "/@syncfusion/ej2-angular-dropdowns",
27
- "/@syncfusion/ej2-angular-filemanager",
28
- "/@syncfusion/ej2-angular-gantt",
29
28
  "/@syncfusion/ej2-angular-grids",
29
+ "/@syncfusion/ej2-angular-inputs",
30
+ "/@syncfusion/ej2-angular-layouts",
30
31
  "/@syncfusion/ej2-angular-navigations",
32
+ "/@syncfusion/ej2-angular-notifications",
31
33
  "/@syncfusion/ej2-angular-pdfviewer",
32
34
  "/@syncfusion/ej2-angular-pivotview",
33
35
  "/@syncfusion/ej2-angular-richtexteditor",
34
36
  "/@syncfusion/ej2-angular-schedule",
35
37
  "/@syncfusion/ej2-angular-spreadsheet",
36
- "/@syncfusion/ej2-angular-treegrid",
37
38
  "/@syncfusion/ej2-barcode-generator",
38
39
  "/@syncfusion/ej2-buttons",
39
40
  "/@syncfusion/ej2-calendars",
@@ -64,20 +65,21 @@
64
65
  "/@syncfusion/ej2-progressbar",
65
66
  "/@syncfusion/ej2-querybuilder",
66
67
  "/@syncfusion/ej2-react-base",
67
- "/@syncfusion/ej2-react-calendars",
68
+ "/@syncfusion/ej2-react-buttons",
68
69
  "/@syncfusion/ej2-react-charts",
70
+ "/@syncfusion/ej2-react-diagrams",
69
71
  "/@syncfusion/ej2-react-documenteditor",
70
72
  "/@syncfusion/ej2-react-dropdowns",
71
- "/@syncfusion/ej2-react-filemanager",
72
- "/@syncfusion/ej2-react-gantt",
73
73
  "/@syncfusion/ej2-react-grids",
74
+ "/@syncfusion/ej2-react-inputs",
75
+ "/@syncfusion/ej2-react-layouts",
74
76
  "/@syncfusion/ej2-react-navigations",
77
+ "/@syncfusion/ej2-react-notifications",
75
78
  "/@syncfusion/ej2-react-pdfviewer",
76
79
  "/@syncfusion/ej2-react-pivotview",
77
80
  "/@syncfusion/ej2-react-richtexteditor",
78
81
  "/@syncfusion/ej2-react-schedule",
79
82
  "/@syncfusion/ej2-react-spreadsheet",
80
- "/@syncfusion/ej2-react-treegrid",
81
83
  "/@syncfusion/ej2-richtexteditor",
82
84
  "/@syncfusion/ej2-schedule",
83
85
  "/@syncfusion/ej2-splitbuttons",
@@ -86,23 +88,24 @@
86
88
  "/@syncfusion/ej2-treegrid",
87
89
  "/@syncfusion/ej2-treemap",
88
90
  "/@syncfusion/ej2-vue-base",
89
- "/@syncfusion/ej2-vue-calendars",
91
+ "/@syncfusion/ej2-vue-buttons",
90
92
  "/@syncfusion/ej2-vue-charts",
93
+ "/@syncfusion/ej2-vue-diagrams",
91
94
  "/@syncfusion/ej2-vue-documenteditor",
92
95
  "/@syncfusion/ej2-vue-dropdowns",
93
- "/@syncfusion/ej2-vue-filemanager",
94
- "/@syncfusion/ej2-vue-gantt",
95
96
  "/@syncfusion/ej2-vue-grids",
97
+ "/@syncfusion/ej2-vue-inputs",
98
+ "/@syncfusion/ej2-vue-layouts",
96
99
  "/@syncfusion/ej2-vue-navigations",
100
+ "/@syncfusion/ej2-vue-notifications",
97
101
  "/@syncfusion/ej2-vue-pdfviewer",
98
102
  "/@syncfusion/ej2-vue-pivotview",
99
103
  "/@syncfusion/ej2-vue-richtexteditor",
100
104
  "/@syncfusion/ej2-vue-schedule",
101
- "/@syncfusion/ej2-vue-spreadsheet",
102
- "/@syncfusion/ej2-vue-treegrid"
105
+ "/@syncfusion/ej2-vue-spreadsheet"
103
106
  ],
104
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.1.55.tgz",
105
- "_shasum": "276806d41168b79bd36ffc0fb17ef47336363c2f",
107
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.1.60.tgz",
108
+ "_shasum": "888eacdd993cbaae6cc551288a0af355374e38c1",
106
109
  "_spec": "@syncfusion/ej2-base@*",
107
110
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
108
111
  "author": {
@@ -154,6 +157,6 @@
154
157
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
155
158
  },
156
159
  "typings": "index.d.ts",
157
- "version": "20.1.56",
160
+ "version": "20.1.61",
158
161
  "sideEffects": true
159
162
  }
@@ -1,4 +1,4 @@
1
- import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor } from './util'; import { ModuleLoader, ModuleDeclaration } from './module-loader'; import { Base } from './base'; import { Observer, BoundOptions } from './observer'; import { ChildProperty } from './child-property'; import { Property, NotifyPropertyChanges } from './notify-property-change'; import { onIntlChange, rightToLeft, defaultCulture } from './internationalization'; import { createElement, addClass, removeClass, ElementProperties, select } from './dom';
1
+ import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor } from './util';import { ModuleLoader, ModuleDeclaration } from './module-loader';import { Base } from './base';import { Observer, BoundOptions } from './observer';import { ChildProperty } from './child-property';import { Property, NotifyPropertyChanges } from './notify-property-change';import { onIntlChange, rightToLeft, defaultCulture } from './internationalization';import { createElement, addClass, removeClass, ElementProperties, select } from './dom';import {validateLicense} from './validate-lic';
2
2
 
3
3
  /**
4
4
  * Interface for a class Component
package/src/component.js CHANGED
@@ -25,7 +25,7 @@ import { ChildProperty } from './child-property';
25
25
  import { Property, NotifyPropertyChanges } from './notify-property-change';
26
26
  import { onIntlChange, rightToLeft, defaultCulture } from './internationalization';
27
27
  import { createElement, addClass, removeClass, select } from './dom';
28
- // import { validateLicense } from './validate-lic';
28
+ import { validateLicense } from './validate-lic';
29
29
  var componentCount = 0;
30
30
  var lastPageID;
31
31
  var lastHistoryLen = 0;
@@ -71,9 +71,9 @@ var Component = /** @class */ (function (_super) {
71
71
  _this.localObserver = new Observer(_this);
72
72
  // tslint:disable-next-line:no-function-constructor-with-string-args
73
73
  onIntlChange.on('notifyExternalChange', _this.detectFunction, _this, _this.randomId);
74
- // if (typeof window !== "undefined" && typeof document !== "undefined") {
75
- // validateLicense();
76
- // }
74
+ if (typeof window !== "undefined" && typeof document !== "undefined") {
75
+ validateLicense();
76
+ }
77
77
  if (!isUndefined(selector)) {
78
78
  _this.appendTo();
79
79
  }
package/src/draggable.js CHANGED
@@ -510,6 +510,18 @@ var Draggable = /** @class */ (function (_super) {
510
510
  draEleTop -= this.parentScrollY;
511
511
  draEleLeft -= this.parentScrollX;
512
512
  }
513
+ if (this.helperElement.classList.contains('e-treeview')) {
514
+ var body = document.body;
515
+ var html = document.documentElement;
516
+ var tempHeight = Math.max(body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
517
+ var tempWidth = Math.max(body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
518
+ if (draEleTop > tempHeight) {
519
+ draEleTop = tempHeight;
520
+ }
521
+ if (draEleLeft > tempWidth) {
522
+ draEleLeft = tempWidth;
523
+ }
524
+ }
513
525
  var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
514
526
  setStyleAttribute(helperElement, this.getDragPosition(dragValue));
515
527
  if (!this.elementInViewport(helperElement) && this.enableAutoScroll) {
@@ -136,7 +136,7 @@ var SanitizeHtmlHelper = /** @class */ (function () {
136
136
  this.removeXssAttrs();
137
137
  var tempEleValue = this.wrapElement.innerHTML;
138
138
  this.removeElement();
139
- return tempEleValue;
139
+ return tempEleValue.replace('&', '&');
140
140
  };
141
141
  SanitizeHtmlHelper.removeElement = function () {
142
142
  // Removes an element's attibute to avoid html tag validation
package/src/util.js CHANGED
@@ -212,7 +212,7 @@ export function extend(copied, first, second, deep) {
212
212
  else {
213
213
  /* istanbul ignore next */
214
214
  clone = isBlazor() ? src && Object.keys(copy).length : src ? src : [];
215
- result[key] = extend([], clone, copy, deep);
215
+ result[key] = extend([], clone, copy, (clone && clone.length) || (copy && copy.length));
216
216
  }
217
217
  }
218
218
  else {