@syncfusion/ej2-pivotview 20.1.58 → 20.1.61

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.
@@ -67,7 +67,7 @@ var DrillThrough = /** @class */ (function () {
67
67
  var valueCaption = '';
68
68
  var aggType = '';
69
69
  var rawData = [];
70
- if (pivotValue.rowHeaders !== undefined && pivotValue.columnHeaders !== undefined && !isNullOrUndefined(pivotValue.value)) {
70
+ if (pivotValue.rowHeaders !== undefined && pivotValue.columnHeaders !== undefined) {
71
71
  if (this.parent.dataType === 'olap') {
72
72
  var tupleInfo = void 0;
73
73
  if (this.parent.dataSourceSettings.valueAxis === 'row') {
@@ -141,7 +141,7 @@ var DrillThrough = /** @class */ (function () {
141
141
  }
142
142
  }
143
143
  if (!isNullOrUndefined(rawData[k])) {
144
- var calculatedFeildValue = this.parent.engineModule.getAggregateValue([Number(indexArray[k])], colIndex, indexValue, 'calculatedfield');
144
+ var calculatedFeildValue = this.parent.engineModule.getAggregateValue([Number(indexArray[k])], colIndex, indexValue, 'calculatedfield', false);
145
145
  rawData[k][this.parent.dataSourceSettings.calculatedFieldSettings[i].name] = (isNaN(calculatedFeildValue) && isNullOrUndefined(calculatedFeildValue)) ? '#DIV/0!' : calculatedFeildValue;
146
146
  }
147
147
  }
@@ -786,7 +786,7 @@ export interface EmptyPointSettingsModel {
786
786
 
787
787
  /**
788
788
  * Allows you To customize the mode of empty points.
789
- * @default Gap
789
+ * @default Zero
790
790
  */
791
791
  mode?: EmptyPointMode | AccEmptyPointMode;
792
792
 
@@ -1522,7 +1522,7 @@ export interface PivotChartSeriesEmptyPointSettingsModel {
1522
1522
 
1523
1523
  /**
1524
1524
  * To customize the mode of empty points.
1525
- * @default Gap
1525
+ * @default Zero
1526
1526
  */
1527
1527
  mode?: EmptyPointMode | AccEmptyPointMode;
1528
1528
 
@@ -684,7 +684,7 @@ export declare class EmptyPointSettings extends ChildProperty<EmptyPointSettings
684
684
  border: PivotChartBorderModel;
685
685
  /**
686
686
  * Allows you To customize the mode of empty points.
687
- * @default Gap
687
+ * @default Zero
688
688
  */
689
689
  mode: EmptyPointMode | AccEmptyPointMode;
690
690
  }
@@ -1295,7 +1295,7 @@ export declare class PivotChartSeriesEmptyPointSettings {
1295
1295
  border: PivotChartBorderModel;
1296
1296
  /**
1297
1297
  * To customize the mode of empty points.
1298
- * @default Gap
1298
+ * @default Zero
1299
1299
  */
1300
1300
  mode: EmptyPointMode | AccEmptyPointMode;
1301
1301
  }
@@ -529,7 +529,7 @@ var EmptyPointSettings = /** @class */ (function (_super) {
529
529
  Complex({ color: 'transparent', width: 0 }, Border)
530
530
  ], EmptyPointSettings.prototype, "border", void 0);
531
531
  __decorate([
532
- Property('Gap')
532
+ Property('Zero')
533
533
  ], EmptyPointSettings.prototype, "mode", void 0);
534
534
  return EmptyPointSettings;
535
535
  }(ChildProperty));
@@ -991,7 +991,7 @@ var PivotChartSeriesEmptyPointSettings = /** @class */ (function () {
991
991
  Complex({ color: 'transparent', width: 0 }, Border)
992
992
  ], PivotChartSeriesEmptyPointSettings.prototype, "border", void 0);
993
993
  __decorate([
994
- Property('Gap')
994
+ Property('Zero')
995
995
  ], PivotChartSeriesEmptyPointSettings.prototype, "mode", void 0);
996
996
  return PivotChartSeriesEmptyPointSettings;
997
997
  }());
@@ -1925,8 +1925,8 @@ var Render = /** @class */ (function () {
1925
1925
  args.value = this.parent.exportType === 'Excel' ? null : '';
1926
1926
  }
1927
1927
  else {
1928
- var aggMatrix = this.parent.engineModule.aggregatedValueMatrix;
1929
- if (aggMatrix[pivotValue.rowIndex] && aggMatrix[pivotValue.rowIndex][pivotValue.colIndex]) {
1928
+ var aggMatrix = this.parent.dataType === 'pivot' && this.parent.engineModule ? this.parent.engineModule.aggregatedValueMatrix : undefined;
1929
+ if (aggMatrix && aggMatrix[pivotValue.rowIndex] && aggMatrix[pivotValue.rowIndex][pivotValue.colIndex]) {
1930
1930
  args.value = aggMatrix[pivotValue.rowIndex][pivotValue.colIndex];
1931
1931
  }
1932
1932
  else {