@syncfusion/ej2-pivotview 19.3.44 → 19.3.53
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 +43 -5
- 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 +211 -97
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +235 -121
- 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 +22 -22
- package/src/base/engine.d.ts +2 -0
- package/src/base/engine.js +126 -91
- package/src/global.js +1 -0
- package/src/pivotview/actions/drill-through.js +3 -1
- package/src/pivotview/actions/excel-export.js +3 -2
- package/src/pivotview/actions/pdf-export.js +4 -3
- package/src/pivotview/base/pivotview-model.d.ts +1 -1
- package/src/pivotview/base/pivotview.d.ts +3 -1
- package/src/pivotview/base/pivotview.js +34 -10
- package/src/pivotview/renderer/render.d.ts +1 -0
- package/src/pivotview/renderer/render.js +65 -14
|
@@ -3866,10 +3866,14 @@ class PivotEngine {
|
|
|
3866
3866
|
if (keyInd !== 0) {
|
|
3867
3867
|
member.valueSort.levelName = parentMember + this.valueSortSettings.headerDelimiter + member.formattedText;
|
|
3868
3868
|
member.valueSort[parentMember + this.valueSortSettings.headerDelimiter + member.formattedText] = 1;
|
|
3869
|
+
member.valueSort.uniqueName = parentMember + this.valueSortSettings.headerDelimiter + (member.actualText ? member.actualText : member.formattedText);
|
|
3870
|
+
member.valueSort[parentMember + this.valueSortSettings.headerDelimiter + (member.actualText ? member.actualText : member.formattedText)] = 1;
|
|
3869
3871
|
}
|
|
3870
3872
|
else {
|
|
3871
3873
|
member.valueSort[member.formattedText] = 1;
|
|
3872
3874
|
member.valueSort.levelName = member.formattedText;
|
|
3875
|
+
member.valueSort[member.actualText ? member.actualText : member.formattedText] = 1;
|
|
3876
|
+
member.valueSort.uniqueName = (member.actualText ? member.actualText : member.formattedText);
|
|
3873
3877
|
}
|
|
3874
3878
|
let memberString = member.valueSort.axis + this.valueSortSettings.headerDelimiter + member.valueSort.levelName;
|
|
3875
3879
|
member.isDrilled = (valueFil && this.isValueFiltersAvail) ?
|
|
@@ -4037,10 +4041,16 @@ class PivotEngine {
|
|
|
4037
4041
|
slicedHeader.formattedText;
|
|
4038
4042
|
slicedHeader.valueSort[parentMember + this.valueSortSettings.headerDelimiter +
|
|
4039
4043
|
slicedHeader.formattedText] = 1;
|
|
4044
|
+
slicedHeader.valueSort.uniqueName = parentMember + this.valueSortSettings.headerDelimiter +
|
|
4045
|
+
(slicedHeader.actualText ? slicedHeader.actualText : slicedHeader.formattedText);
|
|
4046
|
+
slicedHeader.valueSort[parentMember + this.valueSortSettings.headerDelimiter +
|
|
4047
|
+
(slicedHeader.actualText ? slicedHeader.actualText : slicedHeader.formattedText)] = 1;
|
|
4040
4048
|
}
|
|
4041
4049
|
else {
|
|
4042
4050
|
slicedHeader.valueSort[slicedHeader.formattedText] = 1;
|
|
4043
4051
|
slicedHeader.valueSort.levelName = slicedHeader.formattedText;
|
|
4052
|
+
slicedHeader.valueSort[(slicedHeader.actualText ? slicedHeader.actualText : slicedHeader.formattedText)] = 1;
|
|
4053
|
+
slicedHeader.valueSort.uniqueName = (slicedHeader.actualText ? slicedHeader.actualText : slicedHeader.formattedText);
|
|
4044
4054
|
}
|
|
4045
4055
|
member.members = [];
|
|
4046
4056
|
hierarchy.push(member);
|
|
@@ -4225,6 +4235,7 @@ class PivotEngine {
|
|
|
4225
4235
|
isDrilled: false,
|
|
4226
4236
|
indexObject: {},
|
|
4227
4237
|
members: [],
|
|
4238
|
+
actualText: 'Grand' + customText,
|
|
4228
4239
|
formattedText: 'Grand' + customText,
|
|
4229
4240
|
ordinal: len,
|
|
4230
4241
|
type: 'grand sum',
|
|
@@ -4232,6 +4243,8 @@ class PivotEngine {
|
|
|
4232
4243
|
};
|
|
4233
4244
|
set[len].valueSort[set[len].formattedText] = 1;
|
|
4234
4245
|
set[len].valueSort.levelName = set[len].formattedText;
|
|
4246
|
+
set[len].valueSort[set[len].actualText] = 1;
|
|
4247
|
+
set[len].valueSort.uniqueName = set[len].actualText;
|
|
4235
4248
|
for (let ln = 0, lt = filter.length; ln < lt; ln++) {
|
|
4236
4249
|
set[len].indexObject[filter[ln]] = filter[ln];
|
|
4237
4250
|
}
|
|
@@ -4252,74 +4265,85 @@ class PivotEngine {
|
|
|
4252
4265
|
let isLeastNode = !reformAxis[tnum].members.length;
|
|
4253
4266
|
row.colIndex = 0;
|
|
4254
4267
|
row.rowIndex = tnum;
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
this.
|
|
4258
|
-
|
|
4268
|
+
let isRowFieldsAvail = false;
|
|
4269
|
+
if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && this.dataSourceSettings.values.length > 1) {
|
|
4270
|
+
this.rowIndex = (isNullOrUndefined(this.rowIndex) && !isLeastNode && this.dataSourceSettings.rows.length === 0) ? row.index : this.rowIndex;
|
|
4271
|
+
isRowFieldsAvail = (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total.') !== 0);
|
|
4272
|
+
if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total.') === 0) {
|
|
4273
|
+
row.index = this.rowIndex;
|
|
4274
|
+
}
|
|
4259
4275
|
}
|
|
4260
|
-
|
|
4261
|
-
data[tnum]
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
let
|
|
4271
|
-
let
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4276
|
+
if (!isRowFieldsAvail) {
|
|
4277
|
+
if (!data[tnum]) {
|
|
4278
|
+
data[tnum] = [];
|
|
4279
|
+
this.valueContent[actCnt] = {};
|
|
4280
|
+
data[tnum][0] = this.valueContent[actCnt][0] = this.frameHeaderWithKeys(row);
|
|
4281
|
+
}
|
|
4282
|
+
else {
|
|
4283
|
+
data[tnum][0] = this.valueContent[actCnt][0] = this.frameHeaderWithKeys(row);
|
|
4284
|
+
}
|
|
4285
|
+
if (this.valueAxis && (this.isMultiMeasures || this.alwaysShowValueHeader)) {
|
|
4286
|
+
let hpos = tnum;
|
|
4287
|
+
let actpos = actCnt;
|
|
4288
|
+
let rowIndex = tnum;
|
|
4289
|
+
let isValueCellUpdated = false;
|
|
4290
|
+
if ((((!(level === 0 && this.measureIndex === 0) && !isLeastNode) || isLeastNode) && row.type === 'value' && !row.valueSort.axis) ||
|
|
4291
|
+
(level > this.measureIndex && row.axis === 'row' && row.valueSort.axis)) {
|
|
4292
|
+
let vln = 0;
|
|
4293
|
+
let isValueIndexFound = false;
|
|
4294
|
+
for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4295
|
+
if (!isValueIndexFound) {
|
|
4296
|
+
for (vln = 0; vln < vlt; vln++) {
|
|
4297
|
+
if (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter).indexOf(this.values[vln].name) > -1) {
|
|
4298
|
+
isValueIndexFound = true;
|
|
4299
|
+
isValueCellUpdated = true;
|
|
4300
|
+
break;
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
if (level > this.measureIndex && row.axis == 'row' && row.valueSort.axis) {
|
|
4305
|
+
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4306
|
+
}
|
|
4307
|
+
else {
|
|
4308
|
+
if (!reformAxis[pIndex]) {
|
|
4309
|
+
isValueCellUpdated = false;
|
|
4279
4310
|
break;
|
|
4280
4311
|
}
|
|
4312
|
+
this.updateRowData(reformAxis, columns, tnum, data, vln, pIndex, cln, dln, actCnt, rTotal, cTotal);
|
|
4281
4313
|
}
|
|
4314
|
+
dln = data[tnum].length;
|
|
4282
4315
|
}
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
}
|
|
4291
|
-
this.updateRowData(reformAxis, columns, tnum, data, vln, pIndex, cln, dln, actCnt, rTotal, cTotal);
|
|
4316
|
+
}
|
|
4317
|
+
if (!isValueCellUpdated) {
|
|
4318
|
+
for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4319
|
+
dln = data[tnum].length;
|
|
4320
|
+
data[hpos][dln] = this.valueContent[actpos][dln] = {
|
|
4321
|
+
axis: 'value', actualText: '', colSpan: 1,
|
|
4322
|
+
colIndex: dln, formattedText: '', hasChild: false
|
|
4323
|
+
};
|
|
4292
4324
|
}
|
|
4293
|
-
dln = data[tnum].length;
|
|
4294
4325
|
}
|
|
4326
|
+
this.recursiveRowData(rows, reformAxis, columns, rowIndex, data, vlt, isLeastNode, rln, vlt, level, rTotal, cTotal);
|
|
4295
4327
|
}
|
|
4296
|
-
|
|
4328
|
+
else {
|
|
4297
4329
|
for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
}
|
|
4307
|
-
else {
|
|
4308
|
-
for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4309
|
-
for (let vln = 0; vln < vlt; vln++) {
|
|
4310
|
-
if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
|
|
4311
|
-
let name = this.values[vln].caption ? this.values[vln].caption : this.values[vln].name;
|
|
4312
|
-
if (columns[cln].valueSort.levelName && columns[cln].valueSort.levelName.toString().indexOf(name) > -1) {
|
|
4330
|
+
for (let vln = 0; vln < vlt; vln++) {
|
|
4331
|
+
if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
|
|
4332
|
+
if (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter).indexOf(this.values[vln].name) > -1) {
|
|
4333
|
+
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4334
|
+
dln = data[tnum].length;
|
|
4335
|
+
}
|
|
4336
|
+
}
|
|
4337
|
+
else {
|
|
4313
4338
|
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4314
4339
|
dln = data[tnum].length;
|
|
4315
4340
|
}
|
|
4316
4341
|
}
|
|
4317
|
-
else {
|
|
4318
|
-
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4319
|
-
dln = data[tnum].length;
|
|
4320
|
-
}
|
|
4321
4342
|
}
|
|
4343
|
+
this.recursiveRowData(rows, reformAxis, columns, tnum, data, vlt, isLeastNode, rln, 0, level, rTotal, cTotal);
|
|
4322
4344
|
}
|
|
4345
|
+
}
|
|
4346
|
+
else if (!isLeastNode) {
|
|
4323
4347
|
this.recursiveRowData(rows, reformAxis, columns, tnum, data, vlt, isLeastNode, rln, 0, level, rTotal, cTotal);
|
|
4324
4348
|
}
|
|
4325
4349
|
}
|
|
@@ -5115,14 +5139,17 @@ class PivotEngine {
|
|
|
5115
5139
|
return currentCellSets;
|
|
5116
5140
|
}
|
|
5117
5141
|
/* eslint-disable , @typescript-eslint/no-explicit-any */
|
|
5118
|
-
updateValueMembers(hasMeasureIndex, headerInfo,
|
|
5142
|
+
updateValueMembers(hasMeasureIndex, headerInfo, levelInfo, columnHeaders, axis, vcnt, levelIndex) {
|
|
5143
|
+
let levelName = levelInfo && !isNullOrUndefined(levelInfo.levelName) ? levelInfo.levelName.toString() : undefined;
|
|
5144
|
+
let uniqueName = levelInfo && !isNullOrUndefined(levelInfo.uniqueName) ? levelInfo.uniqueName.toString() : undefined;
|
|
5119
5145
|
if (hasMeasureIndex) {
|
|
5120
5146
|
for (let vln = 0; vln < vcnt; vln++) {
|
|
5121
|
-
let
|
|
5147
|
+
let field = this.values[vln];
|
|
5148
|
+
let name = field.caption ? field.caption : field.name;
|
|
5122
5149
|
let calObj = {
|
|
5123
5150
|
axis: this.valueAxis ? 'row' : 'column',
|
|
5124
5151
|
rowIndex: !this.valueAxis ? (headerInfo && levelIndex <= headerInfo.rowIndex ? (headerInfo.rowIndex + 1) : levelIndex) : 0,
|
|
5125
|
-
actualText:
|
|
5152
|
+
actualText: field.name,
|
|
5126
5153
|
formattedText: name,
|
|
5127
5154
|
level: 0,
|
|
5128
5155
|
valueSort: {},
|
|
@@ -5134,14 +5161,16 @@ class PivotEngine {
|
|
|
5134
5161
|
indexObject: !this.valueAxis && headerInfo ? headerInfo.indexObject : null
|
|
5135
5162
|
};
|
|
5136
5163
|
if (axis.length > 0) {
|
|
5137
|
-
calObj.showSubTotals =
|
|
5164
|
+
calObj.showSubTotals = field.showSubTotals;
|
|
5138
5165
|
}
|
|
5139
5166
|
let vData = calObj.valueSort;
|
|
5140
|
-
vData.axis = !this.valueAxis ?
|
|
5167
|
+
vData.axis = !this.valueAxis ? field.name : undefined;
|
|
5141
5168
|
vData[(levelName ? (levelName + this.valueSortSettings.headerDelimiter) : '') + name] = 1;
|
|
5169
|
+
vData[(uniqueName ? (uniqueName + this.valueSortSettings.headerDelimiter) : '') + field.name] = 1;
|
|
5142
5170
|
vData.levelName = (levelName ? (levelName + this.valueSortSettings.headerDelimiter) : '') + name;
|
|
5171
|
+
vData.uniqueName = (uniqueName ? (uniqueName + this.valueSortSettings.headerDelimiter) : '') + field.name;
|
|
5143
5172
|
columnHeaders.push(calObj);
|
|
5144
|
-
this.updateValueMembers(false, headerInfo,
|
|
5173
|
+
this.updateValueMembers(false, headerInfo, vData, calObj.members, axis, vcnt, levelIndex + 1);
|
|
5145
5174
|
}
|
|
5146
5175
|
}
|
|
5147
5176
|
else {
|
|
@@ -5152,7 +5181,9 @@ class PivotEngine {
|
|
|
5152
5181
|
let hData = {};
|
|
5153
5182
|
hData.axis = header.valueSort.axis;
|
|
5154
5183
|
hData[(levelName ? (levelName + this.valueSortSettings.headerDelimiter) : '') + header.formattedText] = 1;
|
|
5184
|
+
hData[(uniqueName ? (uniqueName + this.valueSortSettings.headerDelimiter) : '') + header.actualText] = 1;
|
|
5155
5185
|
hData.levelName = (levelName ? (levelName + this.valueSortSettings.headerDelimiter) : '') + header.formattedText;
|
|
5186
|
+
hData.uniqueName = (uniqueName ? (uniqueName + this.valueSortSettings.headerDelimiter) : '') + header.actualText;
|
|
5156
5187
|
header.valueSort = hData;
|
|
5157
5188
|
let drillInfo = hData.axis + this.valueSortSettings.headerDelimiter + hData.levelName;
|
|
5158
5189
|
if (header.isDrilled && ((this.isExpandAll && this.fieldDrillCollection[drillInfo]) ||
|
|
@@ -5163,16 +5194,16 @@ class PivotEngine {
|
|
|
5163
5194
|
if (header.isDrilled && axis[rln].members.length > 0) {
|
|
5164
5195
|
if (this.valueAxis && levelIndex < this.measureIndex && this.measureIndex !== (levelIndex + 1) && (!(axis[rln].hasChild &&
|
|
5165
5196
|
((!isNullOrUndefined(axis[rln].showSubTotals) && !axis[rln].showSubTotals) || !this.showSubTotals || !this.showRowSubTotals)))) {
|
|
5166
|
-
this.updateValueMembers(true, header, hData
|
|
5197
|
+
this.updateValueMembers(true, header, hData, columnHeaders[columnHeaders.length - 1].members, [], vcnt, levelIndex);
|
|
5167
5198
|
}
|
|
5168
|
-
this.updateValueMembers(this.measureIndex === (levelIndex + 1), header, hData
|
|
5199
|
+
this.updateValueMembers(this.measureIndex === (levelIndex + 1), header, hData, columnHeaders[columnHeaders.length - 1].members, axis[rln].members, vcnt, levelIndex + 1);
|
|
5169
5200
|
if (!this.valueAxis && levelIndex < this.measureIndex && this.measureIndex !== (levelIndex + 1) && (!(axis[rln].hasChild &&
|
|
5170
5201
|
((!isNullOrUndefined(axis[rln].showSubTotals) && !axis[rln].showSubTotals) || !this.showSubTotals || !this.showColumnSubTotals)))) {
|
|
5171
|
-
this.updateValueMembers(true, header, hData
|
|
5202
|
+
this.updateValueMembers(true, header, hData, columnHeaders[columnHeaders.length - 1].members, [], vcnt, levelIndex);
|
|
5172
5203
|
}
|
|
5173
5204
|
}
|
|
5174
5205
|
else if (levelIndex < this.measureIndex) {
|
|
5175
|
-
this.updateValueMembers(true, header, hData
|
|
5206
|
+
this.updateValueMembers(true, header, hData, columnHeaders[columnHeaders.length - 1].members, [], vcnt, levelIndex);
|
|
5176
5207
|
}
|
|
5177
5208
|
}
|
|
5178
5209
|
}
|
|
@@ -5215,11 +5246,12 @@ class PivotEngine {
|
|
|
5215
5246
|
if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
|
|
5216
5247
|
let columnHeaders = [];
|
|
5217
5248
|
if (this.showGrandTotals && this.showColumnGrandTotals && axis[axis.length - 1].type == 'grand sum') {
|
|
5218
|
-
this.updateValueMembers(this.measureIndex === 0, null, null, columnHeaders, axis.slice(0, axis.length - 1), vcnt, 0);
|
|
5249
|
+
this.updateValueMembers(this.measureIndex === 0 && axis.length > 1, null, null, columnHeaders, axis.slice(0, axis.length - 1), vcnt, 0);
|
|
5219
5250
|
this.updateValueMembers(false, null, null, columnHeaders, axis.slice(axis.length - 1, axis.length), vcnt, -1);
|
|
5220
5251
|
}
|
|
5221
5252
|
else {
|
|
5222
|
-
|
|
5253
|
+
let hasColumnTotal = columns.length === 0 && axis.length === 1 && axis[0].type == 'grand sum';
|
|
5254
|
+
this.updateValueMembers(!hasColumnTotal && this.measureIndex === 0, null, null, columnHeaders, axis, vcnt, hasColumnTotal ? -1 : 0);
|
|
5223
5255
|
}
|
|
5224
5256
|
this.getAggregatedHeaders(rows, columns, this.rMembers, columnHeaders, values);
|
|
5225
5257
|
if (this.selectedHeaders.values.length > 0) {
|
|
@@ -5253,11 +5285,12 @@ class PivotEngine {
|
|
|
5253
5285
|
}
|
|
5254
5286
|
else if (rowAxis.length == 0 && (this.valueAxis && (this.isMultiMeasures || this.alwaysShowValueHeader)) && this.values.length > 0) {
|
|
5255
5287
|
if (this.showGrandTotals && this.showRowGrandTotals && this.rMembers[this.rMembers.length - 1].type == 'grand sum') {
|
|
5256
|
-
this.updateValueMembers(this.measureIndex == 0, null, null, rowAxis, this.rMembers.slice(0, this.rMembers.length - 1), this.values.length, 0);
|
|
5288
|
+
this.updateValueMembers(this.measureIndex == 0 && this.rMembers.length > 1, null, null, rowAxis, this.rMembers.slice(0, this.rMembers.length - 1), this.values.length, 0);
|
|
5257
5289
|
this.updateValueMembers(false, null, null, rowAxis, this.rMembers.slice(this.rMembers.length - 1, this.rMembers.length), this.values.length, -1);
|
|
5258
5290
|
}
|
|
5259
5291
|
else {
|
|
5260
|
-
|
|
5292
|
+
let hasRowTotal = rows.length === 0 && this.rMembers.length === 1 && this.rMembers[0].type == 'grand sum';
|
|
5293
|
+
this.updateValueMembers(!hasRowTotal && this.measureIndex == 0, null, null, rowAxis, this.rMembers, this.values.length, hasRowTotal ? -1 : 0);
|
|
5261
5294
|
}
|
|
5262
5295
|
this.getAggregatedHeaders(rows, columns, rowAxis, axis, values);
|
|
5263
5296
|
if (this.selectedHeaders.values.length > 0) {
|
|
@@ -5365,6 +5398,8 @@ class PivotEngine {
|
|
|
5365
5398
|
let vData = data[colItmLn][(tnum * vcnt) + 1 + vln].valueSort;
|
|
5366
5399
|
vData[axis[rln].valueSort.levelName + this.valueSortSettings.headerDelimiter + name] = 1;
|
|
5367
5400
|
vData.levelName = axis[rln].valueSort.levelName + this.valueSortSettings.headerDelimiter + name;
|
|
5401
|
+
vData[axis[rln].valueSort.uniqueName + this.valueSortSettings.headerDelimiter + this.values[vln].name] = 1;
|
|
5402
|
+
vData.uniqueName = axis[rln].valueSort.uniqueName + this.valueSortSettings.headerDelimiter + this.values[vln].name;
|
|
5368
5403
|
if (vData && vData[sortText]) {
|
|
5369
5404
|
this.valueSortSettings.columnIndex = (tnum * vcnt) + 1 + vln;
|
|
5370
5405
|
}
|
|
@@ -7028,27 +7063,30 @@ class Render {
|
|
|
7028
7063
|
/* eslint-disable-next-line */
|
|
7029
7064
|
/** @hidden */
|
|
7030
7065
|
render() {
|
|
7031
|
-
|
|
7032
|
-
|
|
7066
|
+
this.resColWidth = (this.parent.showGroupingBar && this.parent.groupingBarModule) ? (this.parent.isAdaptive ? 180 : 250) :
|
|
7067
|
+
(this.parent.isAdaptive ? 140 : 200);
|
|
7068
|
+
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
7069
|
+
this.gridSettings = this.parent.gridSettings;
|
|
7070
|
+
this.formatList = this.getFormatList();
|
|
7033
7071
|
this.parent.gridHeaderCellInfo = [];
|
|
7034
7072
|
this.parent.gridCellCollection = {};
|
|
7035
|
-
this.injectGridModules(parent);
|
|
7073
|
+
this.injectGridModules(this.parent);
|
|
7036
7074
|
this.rowStartPos = this.getRowStartPos();
|
|
7037
7075
|
if (this.parent.grid && this.parent.grid.element && this.parent.element.querySelector('.e-grid')) {
|
|
7038
7076
|
this.parent.notEmpty = true;
|
|
7039
|
-
if (!engine.isEngineUpdated) {
|
|
7040
|
-
engine.headerContent = this.frameDataSource('header');
|
|
7041
|
-
engine.valueContent = this.frameDataSource('value');
|
|
7077
|
+
if (!this.engine.isEngineUpdated) {
|
|
7078
|
+
this.engine.headerContent = this.frameDataSource('header');
|
|
7079
|
+
this.engine.valueContent = this.frameDataSource('value');
|
|
7042
7080
|
}
|
|
7043
7081
|
else {
|
|
7044
7082
|
if (this.parent.enableValueSorting) {
|
|
7045
|
-
engine.valueContent = this.frameDataSource('value');
|
|
7083
|
+
this.engine.valueContent = this.frameDataSource('value');
|
|
7046
7084
|
}
|
|
7047
|
-
engine.isEngineUpdated = false;
|
|
7085
|
+
this.engine.isEngineUpdated = false;
|
|
7048
7086
|
}
|
|
7049
7087
|
this.parent.grid.setProperties({
|
|
7050
7088
|
columns: this.frameStackedHeaders(), dataSource: (this.parent.dataType === 'olap' ? true :
|
|
7051
|
-
parent.dataSourceSettings.values.length > 0) && !this.engine.isEmptyData ? engine.valueContent :
|
|
7089
|
+
this.parent.dataSourceSettings.values.length > 0) && !this.engine.isEmptyData ? this.engine.valueContent :
|
|
7052
7090
|
this.frameDataSource('value')
|
|
7053
7091
|
}, true);
|
|
7054
7092
|
if (this.parent.grid.height === 'auto') {
|
|
@@ -7980,6 +8018,8 @@ class Render {
|
|
|
7980
8018
|
if (tCell && (this.parent.notEmpty) && this.engine.headerContent) {
|
|
7981
8019
|
let customClass = this.parent.hyperlinkSettings.cssClass;
|
|
7982
8020
|
let cell = args.data[0];
|
|
8021
|
+
let isRowFieldsAvail = cell.valueSort && cell.valueSort.levelName === (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
8022
|
+
this.parent.localeObj.getConstant('grandTotal') + (this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText));
|
|
7983
8023
|
tCell.setAttribute('index', cell.rowIndex ? cell.rowIndex.toString() : '0');
|
|
7984
8024
|
if (tCell.getAttribute('aria-colindex') === '0') {
|
|
7985
8025
|
if (this.parent.dataType === 'pivot') {
|
|
@@ -8033,11 +8073,17 @@ class Render {
|
|
|
8033
8073
|
if (cell.type === 'grand sum') {
|
|
8034
8074
|
this.rowGrandPos = cell.rowIndex;
|
|
8035
8075
|
tCell.classList.add('e-gtot');
|
|
8036
|
-
|
|
8076
|
+
let values = this.parent.dataSourceSettings.values;
|
|
8077
|
+
localizedText = isNullOrUndefined(cell.valueSort.axis) ? (this.parent.dataSourceSettings.rows.length === 0 && values.length === 1 && this.parent.dataSourceSettings.valueAxis === 'row') ?
|
|
8078
|
+
this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values[values.length - 1].type) + ' ' +
|
|
8079
|
+
this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption : values[values.length - 1].name) :
|
|
8080
|
+
this.parent.localeObj.getConstant('grandTotal') : cell.formattedText;
|
|
8037
8081
|
}
|
|
8038
8082
|
else if (cell.valueSort.levelName === (this.parent.localeObj.getConstant('grandTotal') +
|
|
8039
8083
|
(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText))) {
|
|
8040
8084
|
tCell.classList.add('e-gtot');
|
|
8085
|
+
localizedText = isRowFieldsAvail ? this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cell.actualText].aggregateType) + ' '
|
|
8086
|
+
+ this.parent.localeObj.getConstant('of') + ' ' + cell.formattedText : localizedText;
|
|
8041
8087
|
}
|
|
8042
8088
|
else {
|
|
8043
8089
|
tCell.classList.add('e-stot');
|
|
@@ -8059,8 +8105,9 @@ class Render {
|
|
|
8059
8105
|
}));
|
|
8060
8106
|
let vSort = this.parent.pivotView.dataSourceSettings.valueSortSettings;
|
|
8061
8107
|
if (this.parent.enableValueSorting) {
|
|
8062
|
-
if (vSort && vSort.headerText && this.parent.dataSourceSettings.valueAxis === 'row'
|
|
8063
|
-
|
|
8108
|
+
if (vSort && vSort.headerText && this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
8109
|
+
this.parent.pivotValues[Number(tCell.getAttribute('index'))][0] &&
|
|
8110
|
+
this.parent.pivotValues[Number(tCell.getAttribute('index'))][0].valueSort.levelName) {
|
|
8064
8111
|
if (this.parent.pivotValues[Number(tCell.getAttribute('index'))][0].valueSort.levelName
|
|
8065
8112
|
=== vSort.headerText) {
|
|
8066
8113
|
let style = (tCell.querySelector('.e-expand') || tCell.querySelector('.e-collapse')) ?
|
|
@@ -8081,6 +8128,7 @@ class Render {
|
|
|
8081
8128
|
tCell.classList.add(VALUESCONTENT);
|
|
8082
8129
|
cell = args.data[Number(tCell.getAttribute('aria-colindex'))];
|
|
8083
8130
|
cell = isNullOrUndefined(cell) ? args.column.customAttributes.cell : cell;
|
|
8131
|
+
cell.isGrandSum = isRowFieldsAvail ? true : cell.isGrandSum;
|
|
8084
8132
|
if (cell.isSum) {
|
|
8085
8133
|
tCell.classList.add(SUMMARY);
|
|
8086
8134
|
}
|
|
@@ -8288,16 +8336,20 @@ class Render {
|
|
|
8288
8336
|
else {
|
|
8289
8337
|
tCell = this.onOlapColumnCellBoundEvent(tCell, cell);
|
|
8290
8338
|
}
|
|
8291
|
-
|
|
8339
|
+
let isColumnFieldsAvail = (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column' && cell.valueSort &&
|
|
8340
|
+
cell.valueSort.levelName === (this.parent.localeObj.getConstant('grandTotal') + (this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText)));
|
|
8341
|
+
if (cell.type || isColumnFieldsAvail) {
|
|
8292
8342
|
tCell.classList.add(cell.type === 'grand sum' ? 'e-gtot' : 'e-stot');
|
|
8293
8343
|
if (cell.type === 'grand sum') {
|
|
8294
8344
|
this.colGrandPos = cell.colIndex;
|
|
8295
8345
|
}
|
|
8296
|
-
else {
|
|
8346
|
+
else if (cell.type) {
|
|
8297
8347
|
tCell.classList.add('e-colstot');
|
|
8298
8348
|
}
|
|
8299
8349
|
let localizedText = cell.type === 'grand sum' ? (isNullOrUndefined(cell.valueSort.axis) ? this.parent.localeObj.getConstant('grandTotal') : cell.formattedText) :
|
|
8300
8350
|
cell.formattedText.split('Total')[0] + this.parent.localeObj.getConstant('total');
|
|
8351
|
+
localizedText = isColumnFieldsAvail ? this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cell.actualText].aggregateType)
|
|
8352
|
+
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + cell.formattedText : localizedText;
|
|
8301
8353
|
if (tCell.querySelector('.e-headertext') !== null) {
|
|
8302
8354
|
tCell.querySelector('.e-headertext').innerText = localizedText;
|
|
8303
8355
|
}
|
|
@@ -8735,8 +8787,39 @@ class Render {
|
|
|
8735
8787
|
}
|
|
8736
8788
|
return formatArray;
|
|
8737
8789
|
}
|
|
8790
|
+
getValidHeader(args, axis) {
|
|
8791
|
+
let values = this.parent.dataSourceSettings.values;
|
|
8792
|
+
if (axis === 'row') {
|
|
8793
|
+
let cellInfo = args;
|
|
8794
|
+
if (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) {
|
|
8795
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row' && (this.parent.localeObj.getConstant('grandTotal') +
|
|
8796
|
+
this.parent.dataSourceSettings.valueSortSettings.headerDelimiter + cellInfo.value) === cellInfo.data[0].valueSort.levelName) {
|
|
8797
|
+
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cellInfo.value.toString()].aggregateType)
|
|
8798
|
+
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + cellInfo.value.toString();
|
|
8799
|
+
}
|
|
8800
|
+
else if (values.length === 1) {
|
|
8801
|
+
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values[values.length - 1].type)
|
|
8802
|
+
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption : values[values.length - 1].name);
|
|
8803
|
+
}
|
|
8804
|
+
}
|
|
8805
|
+
return cellInfo.value;
|
|
8806
|
+
}
|
|
8807
|
+
else if (axis === 'column') {
|
|
8808
|
+
let cellInfo = args;
|
|
8809
|
+
if (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) {
|
|
8810
|
+
if (!isNullOrUndefined(args.gridCell.column.customAttributes) && this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column' &&
|
|
8811
|
+
(this.parent.localeObj.getConstant('grandTotal') + this.parent.dataSourceSettings.valueSortSettings.headerDelimiter + cellInfo.gridCell.column.customAttributes.cell.formattedText)
|
|
8812
|
+
=== cellInfo.gridCell.column.customAttributes.cell.valueSort.levelName) {
|
|
8813
|
+
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cellInfo
|
|
8814
|
+
.gridCell.column.customAttributes.cell.actualText].aggregateType) + ' ' + this.parent.localeObj.getConstant('of') + ' ' + cellInfo.gridCell.column.customAttributes.cell.formattedText;
|
|
8815
|
+
}
|
|
8816
|
+
}
|
|
8817
|
+
return (cellInfo.cell).value;
|
|
8818
|
+
}
|
|
8819
|
+
}
|
|
8738
8820
|
/* eslint-disable */
|
|
8739
8821
|
excelColumnEvent(args) {
|
|
8822
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
8740
8823
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8741
8824
|
this.parent.lastColumn = args.gridCell.column;
|
|
8742
8825
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -8745,6 +8828,7 @@ class Render {
|
|
|
8745
8828
|
this.parent.trigger(excelHeaderQueryCellInfo, args);
|
|
8746
8829
|
}
|
|
8747
8830
|
pdfColumnEvent(args) {
|
|
8831
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
8748
8832
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8749
8833
|
this.parent.lastColumn = args.gridCell.column;
|
|
8750
8834
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -8785,6 +8869,7 @@ class Render {
|
|
|
8785
8869
|
}
|
|
8786
8870
|
}
|
|
8787
8871
|
args = this.exportContentEvent(args);
|
|
8872
|
+
args.value = args.column.field === '0.formattedText' ? this.getValidHeader(args, 'row') : args.value;
|
|
8788
8873
|
this.parent.trigger(excelQueryCellInfo, args);
|
|
8789
8874
|
}
|
|
8790
8875
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -8808,6 +8893,7 @@ class Render {
|
|
|
8808
8893
|
}
|
|
8809
8894
|
args.style = { paragraphIndent: level * 10 };
|
|
8810
8895
|
this.lastSpan = isValueCell ? this.lastSpan : level;
|
|
8896
|
+
args.value = this.getValidHeader(args, 'row');
|
|
8811
8897
|
}
|
|
8812
8898
|
this.parent.trigger(pdfQueryCellInfo, args);
|
|
8813
8899
|
}
|
|
@@ -13724,11 +13810,13 @@ class DrillThrough {
|
|
|
13724
13810
|
let valuetText = aggType === 'CalculatedField' ? valueCaption.toString() : aggType !== '' ?
|
|
13725
13811
|
(this.parent.localeObj.getConstant(aggType) + ' ' + this.parent.localeObj.getConstant('of') + ' ' + valueCaption) :
|
|
13726
13812
|
valueCaption;
|
|
13813
|
+
let rowHeaders = this.parent.dataSourceSettings.valueAxis === 'row' ? this.parent.getRowText(Number(element.getAttribute('index')), 0) :
|
|
13814
|
+
pivotValue.rowHeaders === '' ? '' : pivotValue.rowHeaders.toString().split(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter).join(' - ');
|
|
13727
13815
|
let eventArgs = {
|
|
13728
13816
|
currentTarget: element,
|
|
13729
13817
|
currentCell: pivotValue,
|
|
13730
13818
|
rawData: rawData,
|
|
13731
|
-
rowHeaders:
|
|
13819
|
+
rowHeaders: rowHeaders,
|
|
13732
13820
|
columnHeaders: pivotValue.columnHeaders === '' ? '' : pivotValue.columnHeaders.toString().split(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter).join(' - '),
|
|
13733
13821
|
value: valuetText + '(' + pivotValue.formattedText + ')',
|
|
13734
13822
|
gridColumns: this.drillThroughDialog.frameGridColumns(rawData),
|
|
@@ -22802,7 +22890,7 @@ let PivotView = class PivotView extends Component {
|
|
|
22802
22890
|
true : this.hyperlinkSettings.showHyperlink ? true : false);
|
|
22803
22891
|
this.applyHyperlinkSettings();
|
|
22804
22892
|
}
|
|
22805
|
-
this.renderModule = new Render(this);
|
|
22893
|
+
this.renderModule = this.renderModule ? this.renderModule : new Render(this);
|
|
22806
22894
|
this.renderModule.render();
|
|
22807
22895
|
}
|
|
22808
22896
|
else if (this.grid) {
|
|
@@ -23656,13 +23744,21 @@ let PivotView = class PivotView extends Component {
|
|
|
23656
23744
|
let cell = this.pivotValues[rowIndex][colIndex];
|
|
23657
23745
|
let level = this.getLevel(cell);
|
|
23658
23746
|
let rowText = cell.type === 'grand sum' ? this.localeObj.getConstant('grandTotal') : cell.formattedText;
|
|
23659
|
-
|
|
23660
|
-
rowIndex
|
|
23661
|
-
|
|
23662
|
-
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23747
|
+
if (this.dataSourceSettings.valueAxis === 'row') {
|
|
23748
|
+
rowText = (this.dataSourceSettings.rows.length === 0 && this.dataSourceSettings.values.length > 1) ? this.pivotValues[rowIndex][0].valueSort.levelName.toString().slice((this.localeObj.getConstant('grandTotal')
|
|
23749
|
+
+ this.dataSourceSettings.valueSortSettings.headerDelimiter).length).toString() : this.dataSourceSettings.values.length === 1 ? !isNullOrUndefined(this.dataSourceSettings.values[0].caption) ?
|
|
23750
|
+
this.dataSourceSettings.values[0].caption : this.dataSourceSettings.values[0].name : this.pivotValues[rowIndex][0].valueSort.levelName.toString();
|
|
23751
|
+
return rowText.split(this.dataSourceSettings.valueSortSettings.headerDelimiter).join(' - ');
|
|
23752
|
+
}
|
|
23753
|
+
else {
|
|
23754
|
+
while (level > 0 || cell.index === undefined) {
|
|
23755
|
+
rowIndex--;
|
|
23756
|
+
cell = this.pivotValues[rowIndex][colIndex];
|
|
23757
|
+
if (cell.index !== undefined) {
|
|
23758
|
+
if (level > cell.level) {
|
|
23759
|
+
rowText = rowText + ' - ' + cell.formattedText;
|
|
23760
|
+
level = level - 1;
|
|
23761
|
+
}
|
|
23666
23762
|
}
|
|
23667
23763
|
}
|
|
23668
23764
|
}
|
|
@@ -24113,7 +24209,7 @@ let PivotView = class PivotView extends Component {
|
|
|
24113
24209
|
ele = target;
|
|
24114
24210
|
}
|
|
24115
24211
|
else if (target.classList.contains('e-stackedheadercelldiv') || target.classList.contains('e-cellvalue') ||
|
|
24116
|
-
target.classList.contains('e-headercelldiv')) {
|
|
24212
|
+
target.classList.contains('e-headercelldiv') || target.classList.contains('e-sortfilterdiv')) {
|
|
24117
24213
|
ele = target.parentElement;
|
|
24118
24214
|
}
|
|
24119
24215
|
else if (target.classList.contains('e-headertext')) {
|
|
@@ -24377,7 +24473,7 @@ let PivotView = class PivotView extends Component {
|
|
|
24377
24473
|
this.isEmptyGrid = true;
|
|
24378
24474
|
this.notEmpty = false;
|
|
24379
24475
|
this.isInitial = true;
|
|
24380
|
-
this.renderModule = new Render(this);
|
|
24476
|
+
this.renderModule = this.renderModule ? this.renderModule : new Render(this);
|
|
24381
24477
|
if (this.grid && this.grid.element && this.element.querySelector('.e-grid')) {
|
|
24382
24478
|
this.notEmpty = true;
|
|
24383
24479
|
this.grid.setProperties({
|
|
@@ -25047,6 +25143,22 @@ let PivotView = class PivotView extends Component {
|
|
|
25047
25143
|
this.numberFormattingModule.showNumberFormattingDialog();
|
|
25048
25144
|
}
|
|
25049
25145
|
}
|
|
25146
|
+
/** @hidden */
|
|
25147
|
+
getValuesHeader(pivotCell, type) {
|
|
25148
|
+
let values = this.dataSourceSettings.values;
|
|
25149
|
+
if (type === 'value' && !isNullOrUndefined(pivotCell.valueSort) && (this.localeObj.getConstant('grandTotal') + this.dataSourceSettings.valueSortSettings.headerDelimiter + pivotCell.formattedText)
|
|
25150
|
+
=== pivotCell.valueSort.levelName && ((pivotCell.axis === 'column' && this.dataSourceSettings.columns.length === 0 && this.dataSourceSettings.valueAxis === 'column') || (pivotCell.axis === 'row' &&
|
|
25151
|
+
this.dataSourceSettings.rows.length === 0 && this.dataSourceSettings.valueAxis === 'row'))) {
|
|
25152
|
+
return this.localeObj.getConstant('total') + ' ' + this.localeObj.getConstant(this.engineModule.fieldList[pivotCell.actualText].aggregateType) + ' ' +
|
|
25153
|
+
this.localeObj.getConstant('of') + ' ' + pivotCell.formattedText;
|
|
25154
|
+
}
|
|
25155
|
+
else if (type === 'grandTotal' && values.length === 1 && this.dataSourceSettings.valueAxis === 'row' && pivotCell.formattedText === this.localeObj.getConstant('grandTotal')) {
|
|
25156
|
+
return this.localeObj.getConstant('total') + ' ' + this.localeObj.getConstant(values[values.length - 1].type) + ' ' +
|
|
25157
|
+
this.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption
|
|
25158
|
+
: values[values.length - 1].name);
|
|
25159
|
+
}
|
|
25160
|
+
return pivotCell.formattedText;
|
|
25161
|
+
}
|
|
25050
25162
|
};
|
|
25051
25163
|
__decorate([
|
|
25052
25164
|
Property('USD')
|
|
@@ -25494,13 +25606,14 @@ class ExcelExport$1 {
|
|
|
25494
25606
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
25495
25607
|
let cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
25496
25608
|
if (pivotCell.type === 'grand sum') {
|
|
25497
|
-
cellValue = this.parent.
|
|
25609
|
+
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'grandTotal') :
|
|
25610
|
+
this.parent.localeObj.getConstant('grandTotal');
|
|
25498
25611
|
}
|
|
25499
25612
|
else if (pivotCell.type === 'sum') {
|
|
25500
25613
|
cellValue = cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total'));
|
|
25501
25614
|
}
|
|
25502
25615
|
else {
|
|
25503
|
-
cellValue = cellValue;
|
|
25616
|
+
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
25504
25617
|
}
|
|
25505
25618
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
25506
25619
|
cells.push({
|
|
@@ -25817,9 +25930,10 @@ class PDFExport {
|
|
|
25817
25930
|
let pivotCell = pivotValues[rCnt][cCnt];
|
|
25818
25931
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
25819
25932
|
let cellValue = pivotCell.formattedText;
|
|
25820
|
-
cellValue =
|
|
25821
|
-
|
|
25822
|
-
|
|
25933
|
+
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
25934
|
+
cellValue = pivotCell.type === 'grand sum' ? (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'grandTotal') :
|
|
25935
|
+
this.parent.localeObj.getConstant('grandTotal') : (pivotCell.type === 'sum' ?
|
|
25936
|
+
cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total')) : cellValue);
|
|
25823
25937
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
25824
25938
|
pdfGridRow.cells.getCell(localCnt).columnSpan = pivotCell.colSpan ?
|
|
25825
25939
|
(pageSize - localCnt < pivotCell.colSpan ? pageSize - localCnt : pivotCell.colSpan) : 1;
|