@syncfusion/ej2-base 21.1.38 → 21.1.40

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,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 21.1.38
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _base from '@syncfusion/ej2-base';
11
2
 
12
3
  export declare namespace ej {
package/package.json CHANGED
@@ -1,164 +1,170 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@21.1.37",
4
- "_inBundle": false,
5
- "_integrity": "sha512-rFVuRIMXme1Teep7oBQcfxkfBSfVmXLkm8LdMpIVNNc76sz08TnN2egtWnYvhwFRiw0aUIkkhKDy4rFfCGx7yg==",
6
- "_location": "/@syncfusion/ej2-base",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-base@*",
12
- "name": "@syncfusion/ej2-base",
13
- "escapedName": "@syncfusion%2fej2-base",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-base",
23
- "/@syncfusion/ej2-angular-calendars",
24
- "/@syncfusion/ej2-angular-charts",
25
- "/@syncfusion/ej2-angular-circulargauge",
26
- "/@syncfusion/ej2-angular-documenteditor",
27
- "/@syncfusion/ej2-angular-dropdowns",
28
- "/@syncfusion/ej2-angular-gantt",
29
- "/@syncfusion/ej2-angular-grids",
30
- "/@syncfusion/ej2-angular-inputs",
31
- "/@syncfusion/ej2-angular-maps",
32
- "/@syncfusion/ej2-angular-navigations",
33
- "/@syncfusion/ej2-angular-pdfviewer",
34
- "/@syncfusion/ej2-angular-schedule",
35
- "/@syncfusion/ej2-angular-spreadsheet",
36
- "/@syncfusion/ej2-angular-treegrid",
37
- "/@syncfusion/ej2-barcode-generator",
38
- "/@syncfusion/ej2-buttons",
39
- "/@syncfusion/ej2-calendars",
40
- "/@syncfusion/ej2-charts",
41
- "/@syncfusion/ej2-circulargauge",
42
- "/@syncfusion/ej2-data",
43
- "/@syncfusion/ej2-diagrams",
44
- "/@syncfusion/ej2-documenteditor",
45
- "/@syncfusion/ej2-drawings",
46
- "/@syncfusion/ej2-dropdowns",
47
- "/@syncfusion/ej2-excel-export",
48
- "/@syncfusion/ej2-filemanager",
49
- "/@syncfusion/ej2-gantt",
50
- "/@syncfusion/ej2-grids",
51
- "/@syncfusion/ej2-heatmap",
52
- "/@syncfusion/ej2-image-editor",
53
- "/@syncfusion/ej2-inplace-editor",
54
- "/@syncfusion/ej2-inputs",
55
- "/@syncfusion/ej2-kanban",
56
- "/@syncfusion/ej2-layouts",
57
- "/@syncfusion/ej2-lineargauge",
58
- "/@syncfusion/ej2-lists",
59
- "/@syncfusion/ej2-maps",
60
- "/@syncfusion/ej2-navigations",
61
- "/@syncfusion/ej2-notifications",
62
- "/@syncfusion/ej2-pdfviewer",
63
- "/@syncfusion/ej2-pivotview",
64
- "/@syncfusion/ej2-popups",
65
- "/@syncfusion/ej2-progressbar",
66
- "/@syncfusion/ej2-querybuilder",
67
- "/@syncfusion/ej2-react-base",
68
- "/@syncfusion/ej2-react-calendars",
69
- "/@syncfusion/ej2-react-charts",
70
- "/@syncfusion/ej2-react-circulargauge",
71
- "/@syncfusion/ej2-react-documenteditor",
72
- "/@syncfusion/ej2-react-dropdowns",
73
- "/@syncfusion/ej2-react-gantt",
74
- "/@syncfusion/ej2-react-grids",
75
- "/@syncfusion/ej2-react-inputs",
76
- "/@syncfusion/ej2-react-maps",
77
- "/@syncfusion/ej2-react-navigations",
78
- "/@syncfusion/ej2-react-pdfviewer",
79
- "/@syncfusion/ej2-react-schedule",
80
- "/@syncfusion/ej2-react-spreadsheet",
81
- "/@syncfusion/ej2-react-treegrid",
82
- "/@syncfusion/ej2-ribbon",
83
- "/@syncfusion/ej2-richtexteditor",
84
- "/@syncfusion/ej2-schedule",
85
- "/@syncfusion/ej2-splitbuttons",
86
- "/@syncfusion/ej2-spreadsheet",
87
- "/@syncfusion/ej2-svg-base",
88
- "/@syncfusion/ej2-treegrid",
89
- "/@syncfusion/ej2-treemap",
90
- "/@syncfusion/ej2-vue-base",
91
- "/@syncfusion/ej2-vue-calendars",
92
- "/@syncfusion/ej2-vue-charts",
93
- "/@syncfusion/ej2-vue-circulargauge",
94
- "/@syncfusion/ej2-vue-documenteditor",
95
- "/@syncfusion/ej2-vue-dropdowns",
96
- "/@syncfusion/ej2-vue-gantt",
97
- "/@syncfusion/ej2-vue-grids",
98
- "/@syncfusion/ej2-vue-inputs",
99
- "/@syncfusion/ej2-vue-maps",
100
- "/@syncfusion/ej2-vue-navigations",
101
- "/@syncfusion/ej2-vue-pdfviewer",
102
- "/@syncfusion/ej2-vue-schedule",
103
- "/@syncfusion/ej2-vue-spreadsheet",
104
- "/@syncfusion/ej2-vue-treegrid"
105
- ],
106
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.37.tgz",
107
- "_shasum": "483b6b03314ab7def46b0165b2361a19a716f834",
108
- "_spec": "@syncfusion/ej2-base@*",
109
- "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
110
- "author": {
111
- "name": "Syncfusion Inc."
112
- },
113
- "bin": {
114
- "syncfusion-license": "bin/syncfusion-license.js"
115
- },
116
- "bugs": {
117
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
118
- },
119
- "bundleDependencies": false,
120
- "dependencies": {
121
- "@syncfusion/ej2-icons": "~21.1.37"
122
- },
123
- "deprecated": false,
124
- "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
125
- "devDependencies": {},
126
- "es2015": "./dist/es6/ej2-base.es5.js",
127
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
128
- "keywords": [
129
- "ej2",
130
- "syncfusion",
131
- "ej2-base",
132
- "web-components",
133
- "typescript",
134
- "base",
135
- "common",
136
- "core",
137
- "library",
138
- "ajax",
139
- "animation",
140
- "internationalization",
141
- "drag",
142
- "drop",
143
- "drag-drop",
144
- "template",
145
- "template-engine",
146
- "rtl",
147
- "right-to-left",
148
- "persistence",
149
- "state-persistence",
150
- "theme",
151
- "styles"
152
- ],
153
- "license": "SEE LICENSE IN license",
154
- "main": "./dist/ej2-base.umd.min.js",
155
- "module": "./index.js",
156
- "name": "@syncfusion/ej2-base",
157
- "repository": {
158
- "type": "git",
159
- "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
160
- },
161
- "typings": "index.d.ts",
162
- "version": "21.1.38",
163
- "sideEffects": true
164
- }
2
+ "_from": "@syncfusion/ej2-base@*",
3
+ "_id": "@syncfusion/ej2-base@21.1.38",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-LV5PhZtpHY8dpC5BFF3IXNU6n3Ynp2K5FVUO+ViV590o+J8i0U+vCG4yqnR3WPqEt2+XeMcYprZ06+prJfn3BA==",
6
+ "_location": "/@syncfusion/ej2-base",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "@syncfusion/ej2-base@*",
12
+ "name": "@syncfusion/ej2-base",
13
+ "escapedName": "@syncfusion%2fej2-base",
14
+ "scope": "@syncfusion",
15
+ "rawSpec": "*",
16
+ "saveSpec": null,
17
+ "fetchSpec": "*"
18
+ },
19
+ "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-base",
23
+ "/@syncfusion/ej2-angular-charts",
24
+ "/@syncfusion/ej2-angular-diagrams",
25
+ "/@syncfusion/ej2-angular-documenteditor",
26
+ "/@syncfusion/ej2-angular-dropdowns",
27
+ "/@syncfusion/ej2-angular-filemanager",
28
+ "/@syncfusion/ej2-angular-grids",
29
+ "/@syncfusion/ej2-angular-image-editor",
30
+ "/@syncfusion/ej2-angular-inputs",
31
+ "/@syncfusion/ej2-angular-kanban",
32
+ "/@syncfusion/ej2-angular-lists",
33
+ "/@syncfusion/ej2-angular-navigations",
34
+ "/@syncfusion/ej2-angular-pdfviewer",
35
+ "/@syncfusion/ej2-angular-pivotview",
36
+ "/@syncfusion/ej2-angular-richtexteditor",
37
+ "/@syncfusion/ej2-angular-schedule",
38
+ "/@syncfusion/ej2-angular-spreadsheet",
39
+ "/@syncfusion/ej2-barcode-generator",
40
+ "/@syncfusion/ej2-buttons",
41
+ "/@syncfusion/ej2-calendars",
42
+ "/@syncfusion/ej2-charts",
43
+ "/@syncfusion/ej2-circulargauge",
44
+ "/@syncfusion/ej2-data",
45
+ "/@syncfusion/ej2-diagrams",
46
+ "/@syncfusion/ej2-documenteditor",
47
+ "/@syncfusion/ej2-drawings",
48
+ "/@syncfusion/ej2-dropdowns",
49
+ "/@syncfusion/ej2-excel-export",
50
+ "/@syncfusion/ej2-filemanager",
51
+ "/@syncfusion/ej2-gantt",
52
+ "/@syncfusion/ej2-grids",
53
+ "/@syncfusion/ej2-heatmap",
54
+ "/@syncfusion/ej2-image-editor",
55
+ "/@syncfusion/ej2-inplace-editor",
56
+ "/@syncfusion/ej2-inputs",
57
+ "/@syncfusion/ej2-kanban",
58
+ "/@syncfusion/ej2-layouts",
59
+ "/@syncfusion/ej2-lineargauge",
60
+ "/@syncfusion/ej2-lists",
61
+ "/@syncfusion/ej2-maps",
62
+ "/@syncfusion/ej2-navigations",
63
+ "/@syncfusion/ej2-notifications",
64
+ "/@syncfusion/ej2-pdfviewer",
65
+ "/@syncfusion/ej2-pivotview",
66
+ "/@syncfusion/ej2-popups",
67
+ "/@syncfusion/ej2-progressbar",
68
+ "/@syncfusion/ej2-querybuilder",
69
+ "/@syncfusion/ej2-react-base",
70
+ "/@syncfusion/ej2-react-charts",
71
+ "/@syncfusion/ej2-react-diagrams",
72
+ "/@syncfusion/ej2-react-documenteditor",
73
+ "/@syncfusion/ej2-react-dropdowns",
74
+ "/@syncfusion/ej2-react-filemanager",
75
+ "/@syncfusion/ej2-react-grids",
76
+ "/@syncfusion/ej2-react-image-editor",
77
+ "/@syncfusion/ej2-react-inputs",
78
+ "/@syncfusion/ej2-react-kanban",
79
+ "/@syncfusion/ej2-react-lists",
80
+ "/@syncfusion/ej2-react-navigations",
81
+ "/@syncfusion/ej2-react-pdfviewer",
82
+ "/@syncfusion/ej2-react-pivotview",
83
+ "/@syncfusion/ej2-react-richtexteditor",
84
+ "/@syncfusion/ej2-react-schedule",
85
+ "/@syncfusion/ej2-react-spreadsheet",
86
+ "/@syncfusion/ej2-ribbon",
87
+ "/@syncfusion/ej2-richtexteditor",
88
+ "/@syncfusion/ej2-schedule",
89
+ "/@syncfusion/ej2-splitbuttons",
90
+ "/@syncfusion/ej2-spreadsheet",
91
+ "/@syncfusion/ej2-svg-base",
92
+ "/@syncfusion/ej2-treegrid",
93
+ "/@syncfusion/ej2-treemap",
94
+ "/@syncfusion/ej2-vue-base",
95
+ "/@syncfusion/ej2-vue-charts",
96
+ "/@syncfusion/ej2-vue-diagrams",
97
+ "/@syncfusion/ej2-vue-documenteditor",
98
+ "/@syncfusion/ej2-vue-dropdowns",
99
+ "/@syncfusion/ej2-vue-filemanager",
100
+ "/@syncfusion/ej2-vue-grids",
101
+ "/@syncfusion/ej2-vue-image-editor",
102
+ "/@syncfusion/ej2-vue-inputs",
103
+ "/@syncfusion/ej2-vue-kanban",
104
+ "/@syncfusion/ej2-vue-lists",
105
+ "/@syncfusion/ej2-vue-navigations",
106
+ "/@syncfusion/ej2-vue-pdfviewer",
107
+ "/@syncfusion/ej2-vue-pivotview",
108
+ "/@syncfusion/ej2-vue-richtexteditor",
109
+ "/@syncfusion/ej2-vue-schedule",
110
+ "/@syncfusion/ej2-vue-spreadsheet"
111
+ ],
112
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.1.38.tgz",
113
+ "_shasum": "a7a318b4b0038af081086f7b2234b14d0f0912d8",
114
+ "_spec": "@syncfusion/ej2-base@*",
115
+ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
116
+ "author": {
117
+ "name": "Syncfusion Inc."
118
+ },
119
+ "bin": {
120
+ "syncfusion-license": "bin/syncfusion-license.js"
121
+ },
122
+ "bugs": {
123
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
124
+ },
125
+ "bundleDependencies": false,
126
+ "dependencies": {
127
+ "@syncfusion/ej2-icons": "~21.1.37"
128
+ },
129
+ "deprecated": false,
130
+ "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
131
+ "devDependencies": {},
132
+ "es2015": "./dist/es6/ej2-base.es5.js",
133
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
134
+ "keywords": [
135
+ "ej2",
136
+ "syncfusion",
137
+ "ej2-base",
138
+ "web-components",
139
+ "typescript",
140
+ "base",
141
+ "common",
142
+ "core",
143
+ "library",
144
+ "ajax",
145
+ "animation",
146
+ "internationalization",
147
+ "drag",
148
+ "drop",
149
+ "drag-drop",
150
+ "template",
151
+ "template-engine",
152
+ "rtl",
153
+ "right-to-left",
154
+ "persistence",
155
+ "state-persistence",
156
+ "theme",
157
+ "styles"
158
+ ],
159
+ "license": "SEE LICENSE IN license",
160
+ "main": "./dist/ej2-base.umd.min.js",
161
+ "module": "./index.js",
162
+ "name": "@syncfusion/ej2-base",
163
+ "repository": {
164
+ "type": "git",
165
+ "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
166
+ },
167
+ "typings": "index.d.ts",
168
+ "version": "21.1.40",
169
+ "sideEffects": true
170
+ }
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);