@syncfusion/ej2-pivotview 19.3.53 → 19.3.55
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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-pivotview.umd.min.js +2 -2
- package/dist/ej2-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-pivotview.es2015.js +13 -5
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +13 -5
- package/dist/es6/ej2-pivotview.es5.js.map +1 -1
- package/dist/global/ej2-pivotview.min.js +2 -2
- package/dist/global/ej2-pivotview.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/pivotview/renderer/render.js +13 -5
|
@@ -8797,7 +8797,7 @@ class Render {
|
|
|
8797
8797
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cellInfo.value.toString()].aggregateType)
|
|
8798
8798
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + cellInfo.value.toString();
|
|
8799
8799
|
}
|
|
8800
|
-
else if (values.length === 1) {
|
|
8800
|
+
else if (values.length === 1 && this.parent.dataSourceSettings.rows.length === 0) {
|
|
8801
8801
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values[values.length - 1].type)
|
|
8802
8802
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption : values[values.length - 1].name);
|
|
8803
8803
|
}
|
|
@@ -8819,7 +8819,9 @@ class Render {
|
|
|
8819
8819
|
}
|
|
8820
8820
|
/* eslint-disable */
|
|
8821
8821
|
excelColumnEvent(args) {
|
|
8822
|
-
(
|
|
8822
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
8823
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
8824
|
+
}
|
|
8823
8825
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8824
8826
|
this.parent.lastColumn = args.gridCell.column;
|
|
8825
8827
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -8828,7 +8830,9 @@ class Render {
|
|
|
8828
8830
|
this.parent.trigger(excelHeaderQueryCellInfo, args);
|
|
8829
8831
|
}
|
|
8830
8832
|
pdfColumnEvent(args) {
|
|
8831
|
-
(
|
|
8833
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
8834
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
8835
|
+
}
|
|
8832
8836
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8833
8837
|
this.parent.lastColumn = args.gridCell.column;
|
|
8834
8838
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -8869,7 +8873,9 @@ class Render {
|
|
|
8869
8873
|
}
|
|
8870
8874
|
}
|
|
8871
8875
|
args = this.exportContentEvent(args);
|
|
8872
|
-
|
|
8876
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
8877
|
+
args.value = args.column.field === '0.formattedText' ? this.getValidHeader(args, 'row') : args.value;
|
|
8878
|
+
}
|
|
8873
8879
|
this.parent.trigger(excelQueryCellInfo, args);
|
|
8874
8880
|
}
|
|
8875
8881
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -8893,7 +8899,9 @@ class Render {
|
|
|
8893
8899
|
}
|
|
8894
8900
|
args.style = { paragraphIndent: level * 10 };
|
|
8895
8901
|
this.lastSpan = isValueCell ? this.lastSpan : level;
|
|
8896
|
-
|
|
8902
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
8903
|
+
args.value = this.getValidHeader(args, 'row');
|
|
8904
|
+
}
|
|
8897
8905
|
}
|
|
8898
8906
|
this.parent.trigger(pdfQueryCellInfo, args);
|
|
8899
8907
|
}
|