@syncfusion/ej2-pivotview 20.1.47 → 20.1.48

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.1.47
3
+ * version : 20.1.48
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-pivotview@*",
3
- "_id": "@syncfusion/ej2-pivotview@18.30.4",
3
+ "_id": "@syncfusion/ej2-pivotview@20.1.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-5+nQ2mQg5j6W4UuRLlFInFksjjW7dgkYtiSx4GKOju5Y/Tisn0c/xQKDPNkP1LCt+d85psnU/hCkIp9ZhRVUPg==",
5
+ "_integrity": "sha512-Xet94mOIYCiAaaGEQOU75yHn4Gl4rC/sTYgNLFJSCPqgE58+hI668im3ozaVs+LPmPuzscsr1davG5I0WWsdtw==",
6
6
  "_location": "/@syncfusion/ej2-pivotview",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-pivotview",
24
24
  "/@syncfusion/ej2-vue-pivotview"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-pivotview/-/ej2-pivotview-18.30.4.tgz",
27
- "_shasum": "b65f7ca5fdec8efb6c9289529148c35ca0ad562a",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-20.1.47.tgz",
27
+ "_shasum": "3281e3f108f892b67b74eb4caa15ee0db16983e3",
28
28
  "_spec": "@syncfusion/ej2-pivotview@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,23 +35,23 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.1.47",
38
+ "@syncfusion/ej2-base": "~20.1.48",
39
39
  "@syncfusion/ej2-buttons": "~20.1.47",
40
40
  "@syncfusion/ej2-calendars": "~20.1.47",
41
- "@syncfusion/ej2-charts": "~20.1.47",
41
+ "@syncfusion/ej2-charts": "~20.1.48",
42
42
  "@syncfusion/ej2-compression": "~20.1.47",
43
43
  "@syncfusion/ej2-data": "~20.1.47",
44
44
  "@syncfusion/ej2-dropdowns": "~20.1.47",
45
- "@syncfusion/ej2-excel-export": "~20.1.47",
45
+ "@syncfusion/ej2-excel-export": "~20.1.48",
46
46
  "@syncfusion/ej2-file-utils": "~20.1.47",
47
- "@syncfusion/ej2-grids": "~20.1.47",
48
- "@syncfusion/ej2-inputs": "~20.1.47",
47
+ "@syncfusion/ej2-grids": "~20.1.48",
48
+ "@syncfusion/ej2-inputs": "~20.1.48",
49
49
  "@syncfusion/ej2-lists": "~20.1.47",
50
- "@syncfusion/ej2-navigations": "~20.1.47",
50
+ "@syncfusion/ej2-navigations": "~20.1.48",
51
51
  "@syncfusion/ej2-pdf-export": "~20.1.47",
52
52
  "@syncfusion/ej2-popups": "~20.1.47",
53
53
  "@syncfusion/ej2-splitbuttons": "~20.1.47",
54
- "@syncfusion/ej2-svg-base": "~20.1.47"
54
+ "@syncfusion/ej2-svg-base": "~20.1.48"
55
55
  },
56
56
  "deprecated": false,
57
57
  "description": "The pivot grid, or pivot table, is used to visualize large sets of relational data in a cross-tabular format, similar to an Excel pivot table.",
@@ -78,6 +78,6 @@
78
78
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
79
79
  },
80
80
  "typings": "index.d.ts",
81
- "version": "20.1.47",
81
+ "version": "20.1.48",
82
82
  "sideEffects": false
83
83
  }
@@ -1914,7 +1914,7 @@ var OlapEngine = /** @class */ (function () {
1914
1914
  var value = '0';
1915
1915
  var measureName = this.getUniqueName(measure);
1916
1916
  var showTotals = true;
1917
- var attrDrill = (this.fieldList[columns[0].hierarchy] && this.fieldList[columns[0].hierarchy].isHierarchy && columns[0].isDrilled); /* eslint-disable-line */
1917
+ var attrDrill = (this.fieldList[columns[0].hierarchy] && this.fieldList[columns[0].hierarchy].isHierarchy) ? columns[0].isDrilled : true; /* eslint-disable-line */
1918
1918
  if (this.tupRowInfo[rowOrdinal]) {
1919
1919
  showTotals = this.tupRowInfo[rowOrdinal].showTotals;
1920
1920
  }
@@ -874,7 +874,7 @@ var PivotButton = /** @class */ (function () {
874
874
  !(args.target.classList.contains(cls.REMOVE_CLASS)) &&
875
875
  !(args.target.classList.contains(cls.DRAG_CLASS)) &&
876
876
  (buttonElement && fieldInfo.fieldItem && (fieldInfo.fieldItem.showSortIcon ||
877
- isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)))) {
877
+ isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)) && !fieldInfo.fieldItem.isCalculatedField)) {
878
878
  this.parent.actionObj.actionName = events.sortField;
879
879
  this.parent.actionObj.fieldInfo = fieldInfo;
880
880
  if (this.parent.actionBeginMethod()) {
@@ -699,7 +699,7 @@ var CalculatedField = /** @class */ (function () {
699
699
  var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
700
700
  var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
701
701
  var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
702
- field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : formatDrop.value);
702
+ field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : (formatDrop.value === 'None' ? null : formatDrop.value));
703
703
  if (memberTypeDrop.value === 'Dimension') {
704
704
  field.hierarchyUniqueName = hierarchyDrop.value;
705
705
  }
@@ -1329,7 +1329,7 @@ var CalculatedField = /** @class */ (function () {
1329
1329
  hierarchyDrop.dataBind();
1330
1330
  }
1331
1331
  if (dialogElement.querySelector('.' + cls.CALC_FORMAT_TYPE_DIV)) {
1332
- var formatStringData = ['Standard', 'Currency', 'Percent'];
1332
+ var formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
1333
1333
  var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
1334
1334
  this.formatType = formatDrop.value = (formatStringData.indexOf(calcInfo.formatString) > -1 ? calcInfo.formatString : 'Custom');
1335
1335
  }
@@ -1358,7 +1358,7 @@ var CalculatedField = /** @class */ (function () {
1358
1358
  var fData = [];
1359
1359
  var fieldData = [];
1360
1360
  var memberTypeData = ['Measure', 'Dimension'];
1361
- var formatStringData = ['Standard', 'Currency', 'Percent', 'Custom'];
1361
+ var formatStringData = ['Standard', 'Currency', 'Percent', 'Custom', 'None'];
1362
1362
  for (var _i = 0, memberTypeData_1 = memberTypeData; _i < memberTypeData_1.length; _i++) {
1363
1363
  var type = memberTypeData_1[_i];
1364
1364
  mData.push({ value: type, text: this.parent.localeObj.getConstant(type) });
@@ -1587,10 +1587,10 @@ var CalculatedField = /** @class */ (function () {
1587
1587
  args.node.setAttribute('data-membertype', field.fieldType);
1588
1588
  args.node.setAttribute('data-hierarchy', field.parentHierarchy ? field.parentHierarchy : '');
1589
1589
  args.node.setAttribute('data-formula', field.formula);
1590
- var formatStringData = ['Standard', 'Currency', 'Percent'];
1590
+ var formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
1591
1591
  var formatString = void 0;
1592
1592
  formatString = (field.formatString ? formatStringData.indexOf(field.formatString) > -1 ?
1593
- field.formatString : 'Custom' : '');
1593
+ field.formatString : 'Custom' : 'None');
1594
1594
  args.node.setAttribute('data-formatString', formatString);
1595
1595
  args.node.setAttribute('data-customString', (formatString === 'Custom' ? field.formatString : ''));
1596
1596
  var removeElement = createElement('span', {
@@ -263,7 +263,8 @@ var PivotFieldList = /** @class */ (function (_super) {
263
263
  group: 'Group',
264
264
  removeCalculatedField: 'Are you sure you want to delete this calculated field?',
265
265
  yes: 'Yes',
266
- no: 'No'
266
+ no: 'No',
267
+ None: 'None'
267
268
  };
268
269
  /* eslint-enable */
269
270
  this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
@@ -150,6 +150,7 @@ var ExcelExport = /** @class */ (function () {
150
150
  pivotCell.formattedText === undefined || isNullOrUndefined(pivotCell.value)) {
151
151
  lastCell.value = type === 'Excel' ? null : '';
152
152
  }
153
+ styles.numberFormat = typeof cellValue === 'string' ? undefined : styles.numberFormat;
153
154
  lastCell.style = !isNullOrUndefined(lastCell.value) ? styles : { bold: false, wrapText: true };
154
155
  }
155
156
  else {
@@ -670,7 +670,8 @@ var PivotView = /** @class */ (function (_super) {
670
670
  multipleAxisMode: 'Multiple Axis Mode',
671
671
  grandTotalPosition: 'Grand totals position',
672
672
  top: 'Top',
673
- bottom: 'Bottom'
673
+ bottom: 'Bottom',
674
+ None: 'None'
674
675
  };
675
676
  /* eslint-enable */
676
677
  this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
@@ -1790,7 +1790,7 @@ var Render = /** @class */ (function () {
1790
1790
  var field = this.parent.dataSourceSettings.values[vCnt];
1791
1791
  var format = 'N';
1792
1792
  if (this.parent.dataType === 'olap') {
1793
- if (this.parent.olapEngineModule.fieldList[field.name]) {
1793
+ if (this.parent.olapEngineModule.fieldList[field.name] && !isNullOrUndefined(this.parent.olapEngineModule.fieldList[field.name].formatString)) {
1794
1794
  var fString = this.parent.olapEngineModule.fieldList[field.name].formatString;
1795
1795
  format = fString.indexOf('#') > -1 ? fString : (fString[0] + '2');
1796
1796
  }