@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
|
@@ -8939,7 +8939,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8939
8939
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cellInfo.value.toString()].aggregateType)
|
|
8940
8940
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + cellInfo.value.toString();
|
|
8941
8941
|
}
|
|
8942
|
-
else if (values.length === 1) {
|
|
8942
|
+
else if (values.length === 1 && this.parent.dataSourceSettings.rows.length === 0) {
|
|
8943
8943
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values[values.length - 1].type)
|
|
8944
8944
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption : values[values.length - 1].name);
|
|
8945
8945
|
}
|
|
@@ -8961,7 +8961,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8961
8961
|
};
|
|
8962
8962
|
/* eslint-disable */
|
|
8963
8963
|
Render.prototype.excelColumnEvent = function (args) {
|
|
8964
|
-
(
|
|
8964
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
8965
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
8966
|
+
}
|
|
8965
8967
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8966
8968
|
this.parent.lastColumn = args.gridCell.column;
|
|
8967
8969
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -8970,7 +8972,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8970
8972
|
this.parent.trigger(excelHeaderQueryCellInfo, args);
|
|
8971
8973
|
};
|
|
8972
8974
|
Render.prototype.pdfColumnEvent = function (args) {
|
|
8973
|
-
(
|
|
8975
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
8976
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
8977
|
+
}
|
|
8974
8978
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8975
8979
|
this.parent.lastColumn = args.gridCell.column;
|
|
8976
8980
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -9011,7 +9015,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
9011
9015
|
}
|
|
9012
9016
|
}
|
|
9013
9017
|
args = this.exportContentEvent(args);
|
|
9014
|
-
|
|
9018
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
9019
|
+
args.value = args.column.field === '0.formattedText' ? this.getValidHeader(args, 'row') : args.value;
|
|
9020
|
+
}
|
|
9015
9021
|
this.parent.trigger(excelQueryCellInfo, args);
|
|
9016
9022
|
};
|
|
9017
9023
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -9035,7 +9041,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
9035
9041
|
}
|
|
9036
9042
|
args.style = { paragraphIndent: level * 10 };
|
|
9037
9043
|
this.lastSpan = isValueCell ? this.lastSpan : level;
|
|
9038
|
-
|
|
9044
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
9045
|
+
args.value = this.getValidHeader(args, 'row');
|
|
9046
|
+
}
|
|
9039
9047
|
}
|
|
9040
9048
|
this.parent.trigger(pdfQueryCellInfo, args);
|
|
9041
9049
|
};
|