@syncfusion/ej2-base 21.1.35 → 21.1.38

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 : 21.1.35
3
+ * version : 21.1.38
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@18.79.0",
3
+ "_id": "@syncfusion/ej2-base@21.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-tscdV4MB0wyzG130ayGHo3oa8Cv+baRLar8Ib/gHML/R4miBJmuI5w1obRWNRYWG9/tUtdnKeBAKf6XVNQfpXA==",
5
+ "_integrity": "sha512-rFVuRIMXme1Teep7oBQcfxkfBSfVmXLkm8LdMpIVNNc76sz08TnN2egtWnYvhwFRiw0aUIkkhKDy4rFfCGx7yg==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,41 +19,21 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-barcode-generator",
23
22
  "/@syncfusion/ej2-angular-base",
24
- "/@syncfusion/ej2-angular-buttons",
25
23
  "/@syncfusion/ej2-angular-calendars",
26
24
  "/@syncfusion/ej2-angular-charts",
27
25
  "/@syncfusion/ej2-angular-circulargauge",
28
- "/@syncfusion/ej2-angular-diagrams",
29
26
  "/@syncfusion/ej2-angular-documenteditor",
30
27
  "/@syncfusion/ej2-angular-dropdowns",
31
- "/@syncfusion/ej2-angular-filemanager",
32
28
  "/@syncfusion/ej2-angular-gantt",
33
29
  "/@syncfusion/ej2-angular-grids",
34
- "/@syncfusion/ej2-angular-heatmap",
35
- "/@syncfusion/ej2-angular-image-editor",
36
- "/@syncfusion/ej2-angular-inplace-editor",
37
30
  "/@syncfusion/ej2-angular-inputs",
38
- "/@syncfusion/ej2-angular-kanban",
39
- "/@syncfusion/ej2-angular-layouts",
40
- "/@syncfusion/ej2-angular-lineargauge",
41
- "/@syncfusion/ej2-angular-lists",
42
31
  "/@syncfusion/ej2-angular-maps",
43
32
  "/@syncfusion/ej2-angular-navigations",
44
- "/@syncfusion/ej2-angular-notifications",
45
33
  "/@syncfusion/ej2-angular-pdfviewer",
46
- "/@syncfusion/ej2-angular-pivotview",
47
- "/@syncfusion/ej2-angular-popups",
48
- "/@syncfusion/ej2-angular-progressbar",
49
- "/@syncfusion/ej2-angular-querybuilder",
50
- "/@syncfusion/ej2-angular-ribbon",
51
- "/@syncfusion/ej2-angular-richtexteditor",
52
34
  "/@syncfusion/ej2-angular-schedule",
53
- "/@syncfusion/ej2-angular-splitbuttons",
54
35
  "/@syncfusion/ej2-angular-spreadsheet",
55
36
  "/@syncfusion/ej2-angular-treegrid",
56
- "/@syncfusion/ej2-angular-treemap",
57
37
  "/@syncfusion/ej2-barcode-generator",
58
38
  "/@syncfusion/ej2-buttons",
59
39
  "/@syncfusion/ej2-calendars",
@@ -84,41 +64,21 @@
84
64
  "/@syncfusion/ej2-popups",
85
65
  "/@syncfusion/ej2-progressbar",
86
66
  "/@syncfusion/ej2-querybuilder",
87
- "/@syncfusion/ej2-react-barcode-generator",
88
67
  "/@syncfusion/ej2-react-base",
89
- "/@syncfusion/ej2-react-buttons",
90
68
  "/@syncfusion/ej2-react-calendars",
91
69
  "/@syncfusion/ej2-react-charts",
92
70
  "/@syncfusion/ej2-react-circulargauge",
93
- "/@syncfusion/ej2-react-diagrams",
94
71
  "/@syncfusion/ej2-react-documenteditor",
95
72
  "/@syncfusion/ej2-react-dropdowns",
96
- "/@syncfusion/ej2-react-filemanager",
97
73
  "/@syncfusion/ej2-react-gantt",
98
74
  "/@syncfusion/ej2-react-grids",
99
- "/@syncfusion/ej2-react-heatmap",
100
- "/@syncfusion/ej2-react-image-editor",
101
- "/@syncfusion/ej2-react-inplace-editor",
102
75
  "/@syncfusion/ej2-react-inputs",
103
- "/@syncfusion/ej2-react-kanban",
104
- "/@syncfusion/ej2-react-layouts",
105
- "/@syncfusion/ej2-react-lineargauge",
106
- "/@syncfusion/ej2-react-lists",
107
76
  "/@syncfusion/ej2-react-maps",
108
77
  "/@syncfusion/ej2-react-navigations",
109
- "/@syncfusion/ej2-react-notifications",
110
78
  "/@syncfusion/ej2-react-pdfviewer",
111
- "/@syncfusion/ej2-react-pivotview",
112
- "/@syncfusion/ej2-react-popups",
113
- "/@syncfusion/ej2-react-progressbar",
114
- "/@syncfusion/ej2-react-querybuilder",
115
- "/@syncfusion/ej2-react-ribbon",
116
- "/@syncfusion/ej2-react-richtexteditor",
117
79
  "/@syncfusion/ej2-react-schedule",
118
- "/@syncfusion/ej2-react-splitbuttons",
119
80
  "/@syncfusion/ej2-react-spreadsheet",
120
81
  "/@syncfusion/ej2-react-treegrid",
121
- "/@syncfusion/ej2-react-treemap",
122
82
  "/@syncfusion/ej2-ribbon",
123
83
  "/@syncfusion/ej2-richtexteditor",
124
84
  "/@syncfusion/ej2-schedule",
@@ -127,44 +87,24 @@
127
87
  "/@syncfusion/ej2-svg-base",
128
88
  "/@syncfusion/ej2-treegrid",
129
89
  "/@syncfusion/ej2-treemap",
130
- "/@syncfusion/ej2-vue-barcode-generator",
131
90
  "/@syncfusion/ej2-vue-base",
132
- "/@syncfusion/ej2-vue-buttons",
133
91
  "/@syncfusion/ej2-vue-calendars",
134
92
  "/@syncfusion/ej2-vue-charts",
135
93
  "/@syncfusion/ej2-vue-circulargauge",
136
- "/@syncfusion/ej2-vue-diagrams",
137
94
  "/@syncfusion/ej2-vue-documenteditor",
138
95
  "/@syncfusion/ej2-vue-dropdowns",
139
- "/@syncfusion/ej2-vue-filemanager",
140
96
  "/@syncfusion/ej2-vue-gantt",
141
97
  "/@syncfusion/ej2-vue-grids",
142
- "/@syncfusion/ej2-vue-heatmap",
143
- "/@syncfusion/ej2-vue-image-editor",
144
- "/@syncfusion/ej2-vue-inplace-editor",
145
98
  "/@syncfusion/ej2-vue-inputs",
146
- "/@syncfusion/ej2-vue-kanban",
147
- "/@syncfusion/ej2-vue-layouts",
148
- "/@syncfusion/ej2-vue-lineargauge",
149
- "/@syncfusion/ej2-vue-lists",
150
99
  "/@syncfusion/ej2-vue-maps",
151
100
  "/@syncfusion/ej2-vue-navigations",
152
- "/@syncfusion/ej2-vue-notifications",
153
101
  "/@syncfusion/ej2-vue-pdfviewer",
154
- "/@syncfusion/ej2-vue-pivotview",
155
- "/@syncfusion/ej2-vue-popups",
156
- "/@syncfusion/ej2-vue-progressbar",
157
- "/@syncfusion/ej2-vue-querybuilder",
158
- "/@syncfusion/ej2-vue-ribbon",
159
- "/@syncfusion/ej2-vue-richtexteditor",
160
102
  "/@syncfusion/ej2-vue-schedule",
161
- "/@syncfusion/ej2-vue-splitbuttons",
162
103
  "/@syncfusion/ej2-vue-spreadsheet",
163
- "/@syncfusion/ej2-vue-treegrid",
164
- "/@syncfusion/ej2-vue-treemap"
104
+ "/@syncfusion/ej2-vue-treegrid"
165
105
  ],
166
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-base/-/ej2-base-18.79.0.tgz",
167
- "_shasum": "af6c8be7fb95e27bfc58a84a7c44cb7a8960fa9b",
106
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.37.tgz",
107
+ "_shasum": "483b6b03314ab7def46b0165b2361a19a716f834",
168
108
  "_spec": "@syncfusion/ej2-base@*",
169
109
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
170
110
  "author": {
@@ -178,7 +118,7 @@
178
118
  },
179
119
  "bundleDependencies": false,
180
120
  "dependencies": {
181
- "@syncfusion/ej2-icons": "~21.1.35"
121
+ "@syncfusion/ej2-icons": "~21.1.37"
182
122
  },
183
123
  "deprecated": false,
184
124
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
@@ -219,6 +159,6 @@
219
159
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
220
160
  },
221
161
  "typings": "index.d.ts",
222
- "version": "21.1.35",
162
+ "version": "21.1.38",
223
163
  "sideEffects": true
224
164
  }
package/src/browser.d.ts CHANGED
@@ -37,6 +37,12 @@ export declare class Browser {
37
37
  * @returns {string}
38
38
  */
39
39
  private static getTouchCancelEvent;
40
+ /**
41
+ * Check whether the browser on the iPad device is Safari or not
42
+ *
43
+ * @returns {boolean}
44
+ */
45
+ static isSafari(): boolean;
40
46
  /**
41
47
  * To get the value based on provided key and regX
42
48
  *
package/src/browser.js CHANGED
@@ -113,6 +113,16 @@ var Browser = /** @class */ (function () {
113
113
  Browser.getTouchCancelEvent = function () {
114
114
  return Browser.getEvent('cancel');
115
115
  };
116
+ /**
117
+ * Check whether the browser on the iPad device is Safari or not
118
+ *
119
+ * @returns {boolean}
120
+ */
121
+ Browser.isSafari = function () {
122
+ return (Browser.isDevice && Browser.isIos && Browser.isTouch && typeof window !== 'undefined'
123
+ && window.navigator.userAgent.toLowerCase().indexOf('iphone') === -1
124
+ && window.navigator.userAgent.toLowerCase().indexOf('safari') > -1);
125
+ };
116
126
  /**
117
127
  * To get the value based on provided key and regX
118
128
  *
package/src/dom.js CHANGED
@@ -164,9 +164,16 @@ export function prepend(fromElements, toElement, isEval) {
164
164
  */
165
165
  export function append(fromElements, toElement, isEval) {
166
166
  var docFrag = document.createDocumentFragment();
167
- for (var _i = 0, _a = fromElements; _i < _a.length; _i++) {
168
- var ele = _a[_i];
169
- docFrag.appendChild(ele);
167
+ if (fromElements instanceof NodeList) {
168
+ while (fromElements.length > 0) {
169
+ docFrag.appendChild(fromElements[0]);
170
+ }
171
+ }
172
+ else {
173
+ for (var _i = 0, _a = fromElements; _i < _a.length; _i++) {
174
+ var ele = _a[_i];
175
+ docFrag.appendChild(ele);
176
+ }
170
177
  }
171
178
  toElement.appendChild(docFrag);
172
179
  if (isEval) {
package/src/draggable.js CHANGED
@@ -103,10 +103,10 @@ var Draggable = /** @class */ (function (_super) {
103
103
  }
104
104
  var handler = (this.enableTapHold && Browser.isDevice && Browser.isTouch) ? this.mobileInitialize : this.initialize;
105
105
  if (isUnWire) {
106
- EventHandler.remove(ele || this.element, Browser.touchStartEvent, handler);
106
+ EventHandler.remove(ele || this.element, Browser.isSafari() ? 'touchstart' : Browser.touchStartEvent, handler);
107
107
  }
108
108
  else {
109
- EventHandler.add(ele || this.element, Browser.touchStartEvent, handler, this);
109
+ EventHandler.add(ele || this.element, Browser.isSafari() ? 'touchstart' : Browser.touchStartEvent, handler, this);
110
110
  }
111
111
  };
112
112
  /* istanbul ignore next */
@@ -118,14 +118,14 @@ var Draggable = /** @class */ (function (_super) {
118
118
  _this.removeTapholdTimer();
119
119
  _this.initialize(evt, target);
120
120
  }, this.tapHoldThreshold);
121
- EventHandler.add(document, Browser.touchMoveEvent, this.removeTapholdTimer, this);
122
- EventHandler.add(document, Browser.touchEndEvent, this.removeTapholdTimer, this);
121
+ EventHandler.add(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.removeTapholdTimer, this);
122
+ EventHandler.add(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.removeTapholdTimer, this);
123
123
  };
124
124
  /* istanbul ignore next */
125
125
  Draggable.prototype.removeTapholdTimer = function () {
126
126
  clearTimeout(this.tapHoldTimer);
127
- EventHandler.remove(document, Browser.touchMoveEvent, this.removeTapholdTimer);
128
- EventHandler.remove(document, Browser.touchEndEvent, this.removeTapholdTimer);
127
+ EventHandler.remove(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.removeTapholdTimer);
128
+ EventHandler.remove(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.removeTapholdTimer);
129
129
  };
130
130
  /* istanbul ignore next */
131
131
  Draggable.prototype.getScrollableParent = function (element, axis) {
@@ -217,15 +217,15 @@ var Draggable = /** @class */ (function (_super) {
217
217
  this.intDragStart(evt);
218
218
  }
219
219
  else {
220
- EventHandler.add(document, Browser.touchMoveEvent, this.intDragStart, this);
221
- EventHandler.add(document, Browser.touchEndEvent, this.intDestroy, this);
220
+ EventHandler.add(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.intDragStart, this);
221
+ EventHandler.add(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDestroy, this);
222
222
  }
223
223
  this.toggleEvents(true);
224
224
  if (evt.type !== 'touchstart' && this.isPreventSelect) {
225
225
  document.body.classList.add('e-prevent-select');
226
226
  }
227
227
  this.externalInitialize = false;
228
- EventHandler.trigger(document.documentElement, Browser.touchStartEvent, evt);
228
+ EventHandler.trigger(document.documentElement, Browser.isSafari() ? 'touchstart' : Browser.touchStartEvent, evt);
229
229
  };
230
230
  Draggable.prototype.intDragStart = function (evt) {
231
231
  this.removeTapholdTimer();
@@ -317,8 +317,8 @@ var Draggable = /** @class */ (function (_super) {
317
317
  }
318
318
  this.dragElePosition = { top: pos.top, left: pos.left };
319
319
  setStyleAttribute(dragTargetElement, this.getDragPosition({ position: 'absolute', left: posValue.left, top: posValue.top }));
320
- EventHandler.remove(document, Browser.touchMoveEvent, this.intDragStart);
321
- EventHandler.remove(document, Browser.touchEndEvent, this.intDestroy);
320
+ EventHandler.remove(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.intDragStart);
321
+ EventHandler.remove(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDestroy);
322
322
  if (!isBlazor()) {
323
323
  this.bindDragEvents(dragTargetElement);
324
324
  }
@@ -326,8 +326,8 @@ var Draggable = /** @class */ (function (_super) {
326
326
  };
327
327
  Draggable.prototype.bindDragEvents = function (dragTargetElement) {
328
328
  if (isVisible(dragTargetElement)) {
329
- EventHandler.add(document, Browser.touchMoveEvent, this.intDrag, this);
330
- EventHandler.add(document, Browser.touchEndEvent, this.intDragStop, this);
329
+ EventHandler.add(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.intDrag, this);
330
+ EventHandler.add(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDragStop, this);
331
331
  this.setGlobalDroppables(false, this.element, dragTargetElement);
332
332
  }
333
333
  else {
@@ -664,10 +664,10 @@ var Draggable = /** @class */ (function (_super) {
664
664
  this.toggleEvents();
665
665
  document.body.classList.remove('e-prevent-select');
666
666
  this.element.setAttribute('aria-grabbed', 'false');
667
- EventHandler.remove(document, Browser.touchMoveEvent, this.intDragStart);
668
- EventHandler.remove(document, Browser.touchEndEvent, this.intDragStop);
669
- EventHandler.remove(document, Browser.touchEndEvent, this.intDestroy);
670
- EventHandler.remove(document, Browser.touchMoveEvent, this.intDrag);
667
+ EventHandler.remove(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.intDragStart);
668
+ EventHandler.remove(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDragStop);
669
+ EventHandler.remove(document, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDestroy);
670
+ EventHandler.remove(document, Browser.isSafari() ? 'touchmove' : Browser.touchMoveEvent, this.intDrag);
671
671
  if (this.isDragStarted()) {
672
672
  this.isDragStarted(true);
673
673
  }
@@ -769,7 +769,7 @@ var Draggable = /** @class */ (function (_super) {
769
769
  pageX = this.clone ? intCoord.pageX : (intCoord.pageX + window.pageXOffset) - this.relativeXPosition;
770
770
  pageY = this.clone ? intCoord.pageY : (intCoord.pageY + window.pageYOffset) - this.relativeYPosition;
771
771
  }
772
- if (this.element && this.element.classList.length > 0 && this.element.classList.value.indexOf("e-dialog") === -1 && document.scrollingElement) {
772
+ if (!this.element.classList.contains("e-dialog") && !this.element.classList.contains("e-card") && document.scrollingElement) {
773
773
  var isVerticalScroll = document.scrollingElement.scrollHeight > 0 && document.scrollingElement.scrollHeight > document.scrollingElement.clientHeight && document.scrollingElement.scrollTop > 0;
774
774
  var isHorrizontalScroll = document.scrollingElement.scrollWidth > 0 && document.scrollingElement.scrollWidth > document.scrollingElement.clientWidth && document.scrollingElement.scrollLeft > 0;
775
775
  pageX = isHorrizontalScroll ? pageX - document.scrollingElement.scrollLeft : pageX;
package/src/droppable.js CHANGED
@@ -52,7 +52,7 @@ var Droppable = /** @class */ (function (_super) {
52
52
  this.wireEvents();
53
53
  };
54
54
  Droppable.prototype.wireEvents = function () {
55
- EventHandler.add(this.element, Browser.touchEndEvent, this.intDrop, this);
55
+ EventHandler.add(this.element, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDrop, this);
56
56
  };
57
57
  // triggers when property changed
58
58
  // eslint-disable-next-line
@@ -114,7 +114,7 @@ var Droppable = /** @class */ (function (_super) {
114
114
  return area;
115
115
  };
116
116
  Droppable.prototype.destroy = function () {
117
- EventHandler.remove(this.element, Browser.touchEndEvent, this.intDrop);
117
+ EventHandler.remove(this.element, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDrop);
118
118
  _super.prototype.destroy.call(this);
119
119
  };
120
120
  __decorate([