@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.
@@ -9055,7 +9055,7 @@ var Render = /** @__PURE__ @class */ (function () {
9055
9055
  var field = this.parent.dataSourceSettings.values[vCnt];
9056
9056
  var format = 'N';
9057
9057
  if (this.parent.dataType === 'olap') {
9058
- if (this.parent.olapEngineModule.fieldList[field.name]) {
9058
+ if (this.parent.olapEngineModule.fieldList[field.name] && !isNullOrUndefined(this.parent.olapEngineModule.fieldList[field.name].formatString)) {
9059
9059
  var fString = this.parent.olapEngineModule.fieldList[field.name].formatString;
9060
9060
  format = fString.indexOf('#') > -1 ? fString : (fString[0] + '2');
9061
9061
  }
@@ -20692,7 +20692,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
20692
20692
  var value = '0';
20693
20693
  var measureName = this.getUniqueName(measure);
20694
20694
  var showTotals = true;
20695
- var attrDrill = (this.fieldList[columns[0].hierarchy] && this.fieldList[columns[0].hierarchy].isHierarchy && columns[0].isDrilled); /* eslint-disable-line */
20695
+ var attrDrill = (this.fieldList[columns[0].hierarchy] && this.fieldList[columns[0].hierarchy].isHierarchy) ? columns[0].isDrilled : true; /* eslint-disable-line */
20696
20696
  if (this.tupRowInfo[rowOrdinal]) {
20697
20697
  showTotals = this.tupRowInfo[rowOrdinal].showTotals;
20698
20698
  }
@@ -22973,7 +22973,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
22973
22973
  multipleAxisMode: 'Multiple Axis Mode',
22974
22974
  grandTotalPosition: 'Grand totals position',
22975
22975
  top: 'Top',
22976
- bottom: 'Bottom'
22976
+ bottom: 'Bottom',
22977
+ None: 'None'
22977
22978
  };
22978
22979
  /* eslint-enable */
22979
22980
  this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
@@ -27201,6 +27202,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27201
27202
  pivotCell.formattedText === undefined || isNullOrUndefined(pivotCell.value)) {
27202
27203
  lastCell.value = type === 'Excel' ? null : '';
27203
27204
  }
27205
+ styles.numberFormat = typeof cellValue === 'string' ? undefined : styles.numberFormat;
27204
27206
  lastCell.style = !isNullOrUndefined(lastCell.value) ? styles : { bold: false, wrapText: true };
27205
27207
  }
27206
27208
  else {
@@ -30360,7 +30362,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
30360
30362
  !(args.target.classList.contains(REMOVE_CLASS)) &&
30361
30363
  !(args.target.classList.contains(DRAG_CLASS)) &&
30362
30364
  (buttonElement && fieldInfo.fieldItem && (fieldInfo.fieldItem.showSortIcon ||
30363
- isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)))) {
30365
+ isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)) && !fieldInfo.fieldItem.isCalculatedField)) {
30364
30366
  this.parent.actionObj.actionName = sortField;
30365
30367
  this.parent.actionObj.fieldInfo = fieldInfo;
30366
30368
  if (this.parent.actionBeginMethod()) {
@@ -31390,7 +31392,8 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
31390
31392
  group: 'Group',
31391
31393
  removeCalculatedField: 'Are you sure you want to delete this calculated field?',
31392
31394
  yes: 'Yes',
31393
- no: 'No'
31395
+ no: 'No',
31396
+ None: 'None'
31394
31397
  };
31395
31398
  /* eslint-enable */
31396
31399
  this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
@@ -33189,7 +33192,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
33189
33192
  var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
33190
33193
  var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
33191
33194
  var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
33192
- field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : formatDrop.value);
33195
+ field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : (formatDrop.value === 'None' ? null : formatDrop.value));
33193
33196
  if (memberTypeDrop.value === 'Dimension') {
33194
33197
  field.hierarchyUniqueName = hierarchyDrop.value;
33195
33198
  }
@@ -33819,7 +33822,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
33819
33822
  hierarchyDrop.dataBind();
33820
33823
  }
33821
33824
  if (dialogElement.querySelector('.' + CALC_FORMAT_TYPE_DIV)) {
33822
- var formatStringData = ['Standard', 'Currency', 'Percent'];
33825
+ var formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
33823
33826
  var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
33824
33827
  this.formatType = formatDrop.value = (formatStringData.indexOf(calcInfo.formatString) > -1 ? calcInfo.formatString : 'Custom');
33825
33828
  }
@@ -33848,7 +33851,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
33848
33851
  var fData = [];
33849
33852
  var fieldData = [];
33850
33853
  var memberTypeData = ['Measure', 'Dimension'];
33851
- var formatStringData = ['Standard', 'Currency', 'Percent', 'Custom'];
33854
+ var formatStringData = ['Standard', 'Currency', 'Percent', 'Custom', 'None'];
33852
33855
  for (var _i = 0, memberTypeData_1 = memberTypeData; _i < memberTypeData_1.length; _i++) {
33853
33856
  var type = memberTypeData_1[_i];
33854
33857
  mData.push({ value: type, text: this.parent.localeObj.getConstant(type) });
@@ -34077,10 +34080,10 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
34077
34080
  args.node.setAttribute('data-membertype', field.fieldType);
34078
34081
  args.node.setAttribute('data-hierarchy', field.parentHierarchy ? field.parentHierarchy : '');
34079
34082
  args.node.setAttribute('data-formula', field.formula);
34080
- var formatStringData = ['Standard', 'Currency', 'Percent'];
34083
+ var formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
34081
34084
  var formatString = void 0;
34082
34085
  formatString = (field.formatString ? formatStringData.indexOf(field.formatString) > -1 ?
34083
- field.formatString : 'Custom' : '');
34086
+ field.formatString : 'Custom' : 'None');
34084
34087
  args.node.setAttribute('data-formatString', formatString);
34085
34088
  args.node.setAttribute('data-customString', (formatString === 'Custom' ? field.formatString : ''));
34086
34089
  var removeElement = createElement('span', {