@syncfusion/ej2-base 21.1.38 → 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.
- package/CHANGELOG.md +9 -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 +22 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +22 -3
- 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 +27 -21
- package/src/browser.js +3 -2
- package/src/draggable.js +3 -1
- package/src/intl/intl-base.js +1 -0
- package/src/intl/number-formatter.d.ts +1 -0
- package/src/intl/number-formatter.js +15 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-base@21.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-LV5PhZtpHY8dpC5BFF3IXNU6n3Ynp2K5FVUO+ViV590o+J8i0U+vCG4yqnR3WPqEt2+XeMcYprZ06+prJfn3BA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -20,20 +20,22 @@
|
|
|
20
20
|
"/",
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
22
|
"/@syncfusion/ej2-angular-base",
|
|
23
|
-
"/@syncfusion/ej2-angular-calendars",
|
|
24
23
|
"/@syncfusion/ej2-angular-charts",
|
|
25
|
-
"/@syncfusion/ej2-angular-
|
|
24
|
+
"/@syncfusion/ej2-angular-diagrams",
|
|
26
25
|
"/@syncfusion/ej2-angular-documenteditor",
|
|
27
26
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
28
|
-
"/@syncfusion/ej2-angular-
|
|
27
|
+
"/@syncfusion/ej2-angular-filemanager",
|
|
29
28
|
"/@syncfusion/ej2-angular-grids",
|
|
29
|
+
"/@syncfusion/ej2-angular-image-editor",
|
|
30
30
|
"/@syncfusion/ej2-angular-inputs",
|
|
31
|
-
"/@syncfusion/ej2-angular-
|
|
31
|
+
"/@syncfusion/ej2-angular-kanban",
|
|
32
|
+
"/@syncfusion/ej2-angular-lists",
|
|
32
33
|
"/@syncfusion/ej2-angular-navigations",
|
|
33
34
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
35
|
+
"/@syncfusion/ej2-angular-pivotview",
|
|
36
|
+
"/@syncfusion/ej2-angular-richtexteditor",
|
|
34
37
|
"/@syncfusion/ej2-angular-schedule",
|
|
35
38
|
"/@syncfusion/ej2-angular-spreadsheet",
|
|
36
|
-
"/@syncfusion/ej2-angular-treegrid",
|
|
37
39
|
"/@syncfusion/ej2-barcode-generator",
|
|
38
40
|
"/@syncfusion/ej2-buttons",
|
|
39
41
|
"/@syncfusion/ej2-calendars",
|
|
@@ -65,20 +67,22 @@
|
|
|
65
67
|
"/@syncfusion/ej2-progressbar",
|
|
66
68
|
"/@syncfusion/ej2-querybuilder",
|
|
67
69
|
"/@syncfusion/ej2-react-base",
|
|
68
|
-
"/@syncfusion/ej2-react-calendars",
|
|
69
70
|
"/@syncfusion/ej2-react-charts",
|
|
70
|
-
"/@syncfusion/ej2-react-
|
|
71
|
+
"/@syncfusion/ej2-react-diagrams",
|
|
71
72
|
"/@syncfusion/ej2-react-documenteditor",
|
|
72
73
|
"/@syncfusion/ej2-react-dropdowns",
|
|
73
|
-
"/@syncfusion/ej2-react-
|
|
74
|
+
"/@syncfusion/ej2-react-filemanager",
|
|
74
75
|
"/@syncfusion/ej2-react-grids",
|
|
76
|
+
"/@syncfusion/ej2-react-image-editor",
|
|
75
77
|
"/@syncfusion/ej2-react-inputs",
|
|
76
|
-
"/@syncfusion/ej2-react-
|
|
78
|
+
"/@syncfusion/ej2-react-kanban",
|
|
79
|
+
"/@syncfusion/ej2-react-lists",
|
|
77
80
|
"/@syncfusion/ej2-react-navigations",
|
|
78
81
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
82
|
+
"/@syncfusion/ej2-react-pivotview",
|
|
83
|
+
"/@syncfusion/ej2-react-richtexteditor",
|
|
79
84
|
"/@syncfusion/ej2-react-schedule",
|
|
80
85
|
"/@syncfusion/ej2-react-spreadsheet",
|
|
81
|
-
"/@syncfusion/ej2-react-treegrid",
|
|
82
86
|
"/@syncfusion/ej2-ribbon",
|
|
83
87
|
"/@syncfusion/ej2-richtexteditor",
|
|
84
88
|
"/@syncfusion/ej2-schedule",
|
|
@@ -88,23 +92,25 @@
|
|
|
88
92
|
"/@syncfusion/ej2-treegrid",
|
|
89
93
|
"/@syncfusion/ej2-treemap",
|
|
90
94
|
"/@syncfusion/ej2-vue-base",
|
|
91
|
-
"/@syncfusion/ej2-vue-calendars",
|
|
92
95
|
"/@syncfusion/ej2-vue-charts",
|
|
93
|
-
"/@syncfusion/ej2-vue-
|
|
96
|
+
"/@syncfusion/ej2-vue-diagrams",
|
|
94
97
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
95
98
|
"/@syncfusion/ej2-vue-dropdowns",
|
|
96
|
-
"/@syncfusion/ej2-vue-
|
|
99
|
+
"/@syncfusion/ej2-vue-filemanager",
|
|
97
100
|
"/@syncfusion/ej2-vue-grids",
|
|
101
|
+
"/@syncfusion/ej2-vue-image-editor",
|
|
98
102
|
"/@syncfusion/ej2-vue-inputs",
|
|
99
|
-
"/@syncfusion/ej2-vue-
|
|
103
|
+
"/@syncfusion/ej2-vue-kanban",
|
|
104
|
+
"/@syncfusion/ej2-vue-lists",
|
|
100
105
|
"/@syncfusion/ej2-vue-navigations",
|
|
101
106
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
107
|
+
"/@syncfusion/ej2-vue-pivotview",
|
|
108
|
+
"/@syncfusion/ej2-vue-richtexteditor",
|
|
102
109
|
"/@syncfusion/ej2-vue-schedule",
|
|
103
|
-
"/@syncfusion/ej2-vue-spreadsheet"
|
|
104
|
-
"/@syncfusion/ej2-vue-treegrid"
|
|
110
|
+
"/@syncfusion/ej2-vue-spreadsheet"
|
|
105
111
|
],
|
|
106
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.
|
|
107
|
-
"_shasum": "
|
|
112
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.38.tgz",
|
|
113
|
+
"_shasum": "a7a318b4b0038af081086f7b2234b14d0f0912d8",
|
|
108
114
|
"_spec": "@syncfusion/ej2-base@*",
|
|
109
115
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
110
116
|
"author": {
|
|
@@ -159,6 +165,6 @@
|
|
|
159
165
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
160
166
|
},
|
|
161
167
|
"typings": "index.d.ts",
|
|
162
|
-
"version": "21.1.
|
|
168
|
+
"version": "21.1.39",
|
|
163
169
|
"sideEffects": true
|
|
164
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
|
-
|
|
136
|
-
|
|
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/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 ?
|
|
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;
|
package/src/intl/intl-base.js
CHANGED
|
@@ -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));
|
|
@@ -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);
|