@syncfusion/ej2-base 21.1.37 → 21.1.39

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.37
3
+ * version : 21.1.39
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@21.1.35",
3
+ "_id": "@syncfusion/ej2-base@21.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-6zhTKEvWhr7udwSoWw17UNbLUAZxDMTKuHKhipDiPdZ4nM4YD3GMNrkvUv4sLqDHkpVT0OgOpVrpzvDumROYgA==",
5
+ "_integrity": "sha512-LV5PhZtpHY8dpC5BFF3IXNU6n3Ynp2K5FVUO+ViV590o+J8i0U+vCG4yqnR3WPqEt2+XeMcYprZ06+prJfn3BA==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,41 +19,23 @@
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
- "/@syncfusion/ej2-angular-calendars",
26
23
  "/@syncfusion/ej2-angular-charts",
27
- "/@syncfusion/ej2-angular-circulargauge",
28
24
  "/@syncfusion/ej2-angular-diagrams",
29
25
  "/@syncfusion/ej2-angular-documenteditor",
30
26
  "/@syncfusion/ej2-angular-dropdowns",
31
27
  "/@syncfusion/ej2-angular-filemanager",
32
- "/@syncfusion/ej2-angular-gantt",
33
28
  "/@syncfusion/ej2-angular-grids",
34
- "/@syncfusion/ej2-angular-heatmap",
35
29
  "/@syncfusion/ej2-angular-image-editor",
36
- "/@syncfusion/ej2-angular-inplace-editor",
37
30
  "/@syncfusion/ej2-angular-inputs",
38
31
  "/@syncfusion/ej2-angular-kanban",
39
- "/@syncfusion/ej2-angular-layouts",
40
- "/@syncfusion/ej2-angular-lineargauge",
41
32
  "/@syncfusion/ej2-angular-lists",
42
- "/@syncfusion/ej2-angular-maps",
43
33
  "/@syncfusion/ej2-angular-navigations",
44
- "/@syncfusion/ej2-angular-notifications",
45
34
  "/@syncfusion/ej2-angular-pdfviewer",
46
35
  "/@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
36
  "/@syncfusion/ej2-angular-richtexteditor",
52
37
  "/@syncfusion/ej2-angular-schedule",
53
- "/@syncfusion/ej2-angular-splitbuttons",
54
38
  "/@syncfusion/ej2-angular-spreadsheet",
55
- "/@syncfusion/ej2-angular-treegrid",
56
- "/@syncfusion/ej2-angular-treemap",
57
39
  "/@syncfusion/ej2-barcode-generator",
58
40
  "/@syncfusion/ej2-buttons",
59
41
  "/@syncfusion/ej2-calendars",
@@ -84,41 +66,23 @@
84
66
  "/@syncfusion/ej2-popups",
85
67
  "/@syncfusion/ej2-progressbar",
86
68
  "/@syncfusion/ej2-querybuilder",
87
- "/@syncfusion/ej2-react-barcode-generator",
88
69
  "/@syncfusion/ej2-react-base",
89
- "/@syncfusion/ej2-react-buttons",
90
- "/@syncfusion/ej2-react-calendars",
91
70
  "/@syncfusion/ej2-react-charts",
92
- "/@syncfusion/ej2-react-circulargauge",
93
71
  "/@syncfusion/ej2-react-diagrams",
94
72
  "/@syncfusion/ej2-react-documenteditor",
95
73
  "/@syncfusion/ej2-react-dropdowns",
96
74
  "/@syncfusion/ej2-react-filemanager",
97
- "/@syncfusion/ej2-react-gantt",
98
75
  "/@syncfusion/ej2-react-grids",
99
- "/@syncfusion/ej2-react-heatmap",
100
76
  "/@syncfusion/ej2-react-image-editor",
101
- "/@syncfusion/ej2-react-inplace-editor",
102
77
  "/@syncfusion/ej2-react-inputs",
103
78
  "/@syncfusion/ej2-react-kanban",
104
- "/@syncfusion/ej2-react-layouts",
105
- "/@syncfusion/ej2-react-lineargauge",
106
79
  "/@syncfusion/ej2-react-lists",
107
- "/@syncfusion/ej2-react-maps",
108
80
  "/@syncfusion/ej2-react-navigations",
109
- "/@syncfusion/ej2-react-notifications",
110
81
  "/@syncfusion/ej2-react-pdfviewer",
111
82
  "/@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
83
  "/@syncfusion/ej2-react-richtexteditor",
117
84
  "/@syncfusion/ej2-react-schedule",
118
- "/@syncfusion/ej2-react-splitbuttons",
119
85
  "/@syncfusion/ej2-react-spreadsheet",
120
- "/@syncfusion/ej2-react-treegrid",
121
- "/@syncfusion/ej2-react-treemap",
122
86
  "/@syncfusion/ej2-ribbon",
123
87
  "/@syncfusion/ej2-richtexteditor",
124
88
  "/@syncfusion/ej2-schedule",
@@ -127,44 +91,26 @@
127
91
  "/@syncfusion/ej2-svg-base",
128
92
  "/@syncfusion/ej2-treegrid",
129
93
  "/@syncfusion/ej2-treemap",
130
- "/@syncfusion/ej2-vue-barcode-generator",
131
94
  "/@syncfusion/ej2-vue-base",
132
- "/@syncfusion/ej2-vue-buttons",
133
- "/@syncfusion/ej2-vue-calendars",
134
95
  "/@syncfusion/ej2-vue-charts",
135
- "/@syncfusion/ej2-vue-circulargauge",
136
96
  "/@syncfusion/ej2-vue-diagrams",
137
97
  "/@syncfusion/ej2-vue-documenteditor",
138
98
  "/@syncfusion/ej2-vue-dropdowns",
139
99
  "/@syncfusion/ej2-vue-filemanager",
140
- "/@syncfusion/ej2-vue-gantt",
141
100
  "/@syncfusion/ej2-vue-grids",
142
- "/@syncfusion/ej2-vue-heatmap",
143
101
  "/@syncfusion/ej2-vue-image-editor",
144
- "/@syncfusion/ej2-vue-inplace-editor",
145
102
  "/@syncfusion/ej2-vue-inputs",
146
103
  "/@syncfusion/ej2-vue-kanban",
147
- "/@syncfusion/ej2-vue-layouts",
148
- "/@syncfusion/ej2-vue-lineargauge",
149
104
  "/@syncfusion/ej2-vue-lists",
150
- "/@syncfusion/ej2-vue-maps",
151
105
  "/@syncfusion/ej2-vue-navigations",
152
- "/@syncfusion/ej2-vue-notifications",
153
106
  "/@syncfusion/ej2-vue-pdfviewer",
154
107
  "/@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
108
  "/@syncfusion/ej2-vue-richtexteditor",
160
109
  "/@syncfusion/ej2-vue-schedule",
161
- "/@syncfusion/ej2-vue-splitbuttons",
162
- "/@syncfusion/ej2-vue-spreadsheet",
163
- "/@syncfusion/ej2-vue-treegrid",
164
- "/@syncfusion/ej2-vue-treemap"
110
+ "/@syncfusion/ej2-vue-spreadsheet"
165
111
  ],
166
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.35.tgz",
167
- "_shasum": "4dd9482b4072773cab9e5e59f2bd6944e703b563",
112
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.38.tgz",
113
+ "_shasum": "a7a318b4b0038af081086f7b2234b14d0f0912d8",
168
114
  "_spec": "@syncfusion/ej2-base@*",
169
115
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
170
116
  "author": {
@@ -219,6 +165,6 @@
219
165
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
220
166
  },
221
167
  "typings": "index.d.ts",
222
- "version": "21.1.37",
168
+ "version": "21.1.39",
223
169
  "sideEffects": true
224
170
  }
package/src/browser.js CHANGED
@@ -132,8 +132,9 @@ var Browser = /** @class */ (function () {
132
132
  */
133
133
  Browser.getValue = function (key, regX) {
134
134
  var browserDetails = typeof window !== 'undefined' ? window.browserDetails : {};
135
- if (typeof navigator !== 'undefined' && navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 && Browser.isTouch === true) {
136
- browserDetails['isIos'] = true;
135
+ var isSurfaceDevice = typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Windows') > -1 && screen && screen.width < 1360;
136
+ if (typeof navigator !== 'undefined' && (navigator.platform === 'MacIntel' || isSurfaceDevice) && navigator.maxTouchPoints > 1 && Browser.isTouch === true) {
137
+ browserDetails['isIos'] = navigator.platform === 'MacIntel';
137
138
  browserDetails['isDevice'] = true;
138
139
  browserDetails['isTouch'] = true;
139
140
  browserDetails['isPointer'] = true;
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
@@ -478,9 +478,11 @@ var Draggable = /** @class */ (function (_super) {
478
478
  }
479
479
  else {
480
480
  if (this.dragArea) {
481
+ var isDialogEle = this.helperElement.classList.contains('e-dialog');
481
482
  this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
482
483
  draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - iTop);
483
- draEleLeft = (left - iLeft) < 0 ? this.dragElePosition.left : (left - iLeft);
484
+ draEleLeft = (left - iLeft) < 0 ? isDialogEle ? (left - (iLeft - this.borderWidth.left)) :
485
+ this.dragElePosition.left : (left - iLeft);
484
486
  }
485
487
  else {
486
488
  draEleTop = top - iTop;
@@ -908,6 +908,7 @@ export var IntlBase;
908
908
  }
909
909
  }
910
910
  if (!isNullOrUndefined(dOptions)) {
911
+ dOptions.isCustomFormat = true;
911
912
  extend(cOptions, isCurrencyPercent([cOptions.nlead, cOptions.nend], '$', dOptions.currencySymbol));
912
913
  if (!cOptions.isCurrency) {
913
914
  extend(cOptions, isCurrencyPercent([cOptions.nlead, cOptions.nend], '%', dOptions.percentSymbol));
@@ -22,6 +22,7 @@ export interface CommonOptions {
22
22
  currencySymbol?: string;
23
23
  percentSymbol?: string;
24
24
  minusSymbol?: string;
25
+ isCustomFormat?: boolean;
25
26
  }
26
27
  /**
27
28
  * Interface for grouping process
@@ -222,6 +222,21 @@ var NumberFormat = /** @class */ (function () {
222
222
  if (curData.minimumIntegerDigits) {
223
223
  fValue = this.processMinimumIntegers(fValue, curData.minimumIntegerDigits);
224
224
  }
225
+ if (dOptions.isCustomFormat && curData.minimumFractionDigits < curData.maximumFractionDigits
226
+ && /\d+\.\d+/.test(fValue)) {
227
+ var temp = fValue.split('.');
228
+ var decimalPart = temp[1];
229
+ var len = decimalPart.length;
230
+ for (var i = len - 1; i >= 0; i--) {
231
+ if (decimalPart["" + i] === '0' && i >= curData.minimumFractionDigits) {
232
+ decimalPart = decimalPart.slice(0, i);
233
+ }
234
+ else {
235
+ break;
236
+ }
237
+ }
238
+ fValue = temp[0] + '.' + decimalPart;
239
+ }
225
240
  }
226
241
  if (curData.type === 'scientific') {
227
242
  fValue = value.toExponential(curData.maximumFractionDigits);