@syncfusion/ej2-base 20.4.48 → 20.4.51

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.4.48
3
+ * version : 20.4.51
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
Binary file
Binary file
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@20.4.44",
3
+ "_id": "@syncfusion/ej2-base@20.4.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-p3KB7svK0rZEHDJNWXiXezuOTNkSffabcYtB3S/JeCGjQfC7kVfzFsspsdpSeM8msb5DqKHDTIhkzj51n8ve4Q==",
5
+ "_integrity": "sha512-zTc5HvPKdhOCAyMeytQwsW8vUe2IbADrXb8aMEXDi6g2Xgqq5zwh5mZh0i4dGlU4ZI8yRQQlkfHLM+aBl/DyrA==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,40 +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
23
  "/@syncfusion/ej2-angular-calendars",
26
24
  "/@syncfusion/ej2-angular-charts",
27
- "/@syncfusion/ej2-angular-circulargauge",
28
- "/@syncfusion/ej2-angular-diagrams",
29
25
  "/@syncfusion/ej2-angular-documenteditor",
30
26
  "/@syncfusion/ej2-angular-dropdowns",
31
27
  "/@syncfusion/ej2-angular-filemanager",
32
28
  "/@syncfusion/ej2-angular-gantt",
33
29
  "/@syncfusion/ej2-angular-grids",
34
- "/@syncfusion/ej2-angular-heatmap",
35
30
  "/@syncfusion/ej2-angular-image-editor",
36
- "/@syncfusion/ej2-angular-inplace-editor",
37
31
  "/@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
- "/@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
34
  "/@syncfusion/ej2-angular-popups",
48
- "/@syncfusion/ej2-angular-progressbar",
49
35
  "/@syncfusion/ej2-angular-querybuilder",
50
36
  "/@syncfusion/ej2-angular-richtexteditor",
51
37
  "/@syncfusion/ej2-angular-schedule",
52
- "/@syncfusion/ej2-angular-splitbuttons",
53
38
  "/@syncfusion/ej2-angular-spreadsheet",
54
- "/@syncfusion/ej2-angular-treegrid",
55
- "/@syncfusion/ej2-angular-treemap",
56
39
  "/@syncfusion/ej2-barcode-generator",
57
40
  "/@syncfusion/ej2-buttons",
58
41
  "/@syncfusion/ej2-calendars",
@@ -83,40 +66,23 @@
83
66
  "/@syncfusion/ej2-popups",
84
67
  "/@syncfusion/ej2-progressbar",
85
68
  "/@syncfusion/ej2-querybuilder",
86
- "/@syncfusion/ej2-react-barcode-generator",
87
69
  "/@syncfusion/ej2-react-base",
88
- "/@syncfusion/ej2-react-buttons",
89
70
  "/@syncfusion/ej2-react-calendars",
90
71
  "/@syncfusion/ej2-react-charts",
91
- "/@syncfusion/ej2-react-circulargauge",
92
- "/@syncfusion/ej2-react-diagrams",
93
72
  "/@syncfusion/ej2-react-documenteditor",
94
73
  "/@syncfusion/ej2-react-dropdowns",
95
74
  "/@syncfusion/ej2-react-filemanager",
96
75
  "/@syncfusion/ej2-react-gantt",
97
76
  "/@syncfusion/ej2-react-grids",
98
- "/@syncfusion/ej2-react-heatmap",
99
77
  "/@syncfusion/ej2-react-image-editor",
100
- "/@syncfusion/ej2-react-inplace-editor",
101
78
  "/@syncfusion/ej2-react-inputs",
102
- "/@syncfusion/ej2-react-kanban",
103
- "/@syncfusion/ej2-react-layouts",
104
- "/@syncfusion/ej2-react-lineargauge",
105
- "/@syncfusion/ej2-react-lists",
106
- "/@syncfusion/ej2-react-maps",
107
79
  "/@syncfusion/ej2-react-navigations",
108
- "/@syncfusion/ej2-react-notifications",
109
80
  "/@syncfusion/ej2-react-pdfviewer",
110
- "/@syncfusion/ej2-react-pivotview",
111
81
  "/@syncfusion/ej2-react-popups",
112
- "/@syncfusion/ej2-react-progressbar",
113
82
  "/@syncfusion/ej2-react-querybuilder",
114
83
  "/@syncfusion/ej2-react-richtexteditor",
115
84
  "/@syncfusion/ej2-react-schedule",
116
- "/@syncfusion/ej2-react-splitbuttons",
117
85
  "/@syncfusion/ej2-react-spreadsheet",
118
- "/@syncfusion/ej2-react-treegrid",
119
- "/@syncfusion/ej2-react-treemap",
120
86
  "/@syncfusion/ej2-richtexteditor",
121
87
  "/@syncfusion/ej2-schedule",
122
88
  "/@syncfusion/ej2-splitbuttons",
@@ -124,43 +90,26 @@
124
90
  "/@syncfusion/ej2-svg-base",
125
91
  "/@syncfusion/ej2-treegrid",
126
92
  "/@syncfusion/ej2-treemap",
127
- "/@syncfusion/ej2-vue-barcode-generator",
128
93
  "/@syncfusion/ej2-vue-base",
129
- "/@syncfusion/ej2-vue-buttons",
130
94
  "/@syncfusion/ej2-vue-calendars",
131
95
  "/@syncfusion/ej2-vue-charts",
132
- "/@syncfusion/ej2-vue-circulargauge",
133
- "/@syncfusion/ej2-vue-diagrams",
134
96
  "/@syncfusion/ej2-vue-documenteditor",
135
97
  "/@syncfusion/ej2-vue-dropdowns",
136
98
  "/@syncfusion/ej2-vue-filemanager",
137
99
  "/@syncfusion/ej2-vue-gantt",
138
100
  "/@syncfusion/ej2-vue-grids",
139
- "/@syncfusion/ej2-vue-heatmap",
140
101
  "/@syncfusion/ej2-vue-image-editor",
141
- "/@syncfusion/ej2-vue-inplace-editor",
142
102
  "/@syncfusion/ej2-vue-inputs",
143
- "/@syncfusion/ej2-vue-kanban",
144
- "/@syncfusion/ej2-vue-layouts",
145
- "/@syncfusion/ej2-vue-lineargauge",
146
- "/@syncfusion/ej2-vue-lists",
147
- "/@syncfusion/ej2-vue-maps",
148
103
  "/@syncfusion/ej2-vue-navigations",
149
- "/@syncfusion/ej2-vue-notifications",
150
104
  "/@syncfusion/ej2-vue-pdfviewer",
151
- "/@syncfusion/ej2-vue-pivotview",
152
105
  "/@syncfusion/ej2-vue-popups",
153
- "/@syncfusion/ej2-vue-progressbar",
154
106
  "/@syncfusion/ej2-vue-querybuilder",
155
107
  "/@syncfusion/ej2-vue-richtexteditor",
156
108
  "/@syncfusion/ej2-vue-schedule",
157
- "/@syncfusion/ej2-vue-splitbuttons",
158
- "/@syncfusion/ej2-vue-spreadsheet",
159
- "/@syncfusion/ej2-vue-treegrid",
160
- "/@syncfusion/ej2-vue-treemap"
109
+ "/@syncfusion/ej2-vue-spreadsheet"
161
110
  ],
162
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.4.44.tgz",
163
- "_shasum": "02e6096b6bd0d5a126a38b2f223ac1bce1deb7e1",
111
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.4.48.tgz",
112
+ "_shasum": "eff489cb4bcbd7d820060e928e72e492fc164f19",
164
113
  "_spec": "@syncfusion/ej2-base@*",
165
114
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
166
115
  "author": {
@@ -215,6 +164,6 @@
215
164
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
216
165
  },
217
166
  "typings": "index.d.ts",
218
- "version": "20.4.48",
167
+ "version": "20.4.51",
219
168
  "sideEffects": true
220
169
  }
@@ -117,4 +117,10 @@ export declare class NumberFormat {
117
117
  * @returns {string} ?
118
118
  */
119
119
  private static processMinimumIntegers;
120
+ /**
121
+ * Returns custom format for pivot table
122
+ *
123
+ * @param {number} value ?
124
+ */
125
+ private static customPivotFormat;
120
126
  }
@@ -228,6 +228,7 @@ var NumberFormat = /** @class */ (function () {
228
228
  fValue = fValue.replace('e', dOptions.numberMapper.numberSymbols[mapper[4]]);
229
229
  }
230
230
  fValue = fValue.replace('.', dOptions.numberMapper.numberSymbols[mapper[3]]);
231
+ fValue = curData.format === "#,###,,;(#,###,,)" ? this.customPivotFormat(parseInt(fValue)) : fValue;
231
232
  if (curData.useGrouping) {
232
233
  /* eslint-disable @typescript-eslint/no-explicit-any */
233
234
  fValue = this.groupNumbers(fValue, curData.groupData.primary, curData.groupSeparator || ',', dOptions.numberMapper.numberSymbols[mapper[3]] || '.', curData.groupData.secondary);
@@ -339,6 +340,21 @@ var NumberFormat = /** @class */ (function () {
339
340
  }
340
341
  return temp.join('.');
341
342
  };
343
+ /**
344
+ * Returns custom format for pivot table
345
+ *
346
+ * @param {number} value ?
347
+ */
348
+ NumberFormat.customPivotFormat = function (value) {
349
+ if (value >= 500000) {
350
+ value /= 1000000;
351
+ var _a = value.toString().split("."), integer = _a[0], decimal = _a[1];
352
+ return decimal && +decimal.substring(0, 1) >= 5
353
+ ? Math.ceil(value).toString()
354
+ : Math.floor(value).toString();
355
+ }
356
+ return "";
357
+ };
342
358
  return NumberFormat;
343
359
  }());
344
360
  export { NumberFormat };