@syncfusion/ej2-pivotview 19.4.38 → 19.4.43
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 +37 -0
- package/README.md +1 -1
- 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 +127 -49
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +127 -49
- 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 +18 -18
- package/src/base/engine.js +8 -0
- package/src/common/actions/pivot-button.js +1 -0
- package/src/common/popups/toolbar.js +12 -12
- package/src/pivotview/actions/excel-export.js +54 -25
- package/src/pivotview/actions/pdf-export.js +45 -9
- package/src/pivotview/actions/virtualscroll.d.ts +1 -0
- package/src/pivotview/actions/virtualscroll.js +7 -3
- package/src/pivotview/model/chartsettings-model.d.ts +1 -1
- package/src/pivotview/model/chartsettings.d.ts +1 -1
- package/src/pivotview/model/chartsettings.js +1 -1
- package/styles/bootstrap-dark.css +30 -14
- package/styles/bootstrap.css +30 -14
- package/styles/bootstrap4.css +30 -14
- package/styles/bootstrap5-dark.css +30 -14
- package/styles/bootstrap5.css +30 -14
- package/styles/fabric-dark.css +30 -14
- package/styles/fabric.css +30 -14
- package/styles/highcontrast-light.css +30 -14
- package/styles/highcontrast.css +30 -14
- package/styles/material-dark.css +30 -14
- package/styles/material.css +30 -14
- package/styles/pivotfieldlist/_theme.scss +28 -12
- package/styles/pivotfieldlist/bootstrap-dark.css +30 -14
- package/styles/pivotfieldlist/bootstrap.css +30 -14
- package/styles/pivotfieldlist/bootstrap4.css +30 -14
- package/styles/pivotfieldlist/bootstrap5-dark.css +30 -14
- package/styles/pivotfieldlist/bootstrap5.css +30 -14
- package/styles/pivotfieldlist/fabric-dark.css +30 -14
- package/styles/pivotfieldlist/fabric.css +30 -14
- package/styles/pivotfieldlist/highcontrast-light.css +30 -14
- package/styles/pivotfieldlist/highcontrast.css +30 -14
- package/styles/pivotfieldlist/material-dark.css +30 -14
- package/styles/pivotfieldlist/material.css +30 -14
- package/styles/pivotfieldlist/tailwind-dark.css +30 -14
- package/styles/pivotfieldlist/tailwind.css +30 -14
- package/styles/tailwind-dark.css +30 -14
- package/styles/tailwind.css +30 -14
|
@@ -3160,6 +3160,14 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
/* eslint-enable */
|
|
3162
3162
|
rawHeaders = this.getSortedHeaders(rawHeaders.concat(excessHeaders), this.fieldList[headersInfo.fields[0].name].sort).concat(grandHeader);
|
|
3163
|
+
if (headersInfo.axis === 'row') {
|
|
3164
|
+
this.cMembers = this.getIndexedHeaders(this.columns, this.data, 0, this.filterMembers, 'column', '');
|
|
3165
|
+
this.insertAllMember(this.cMembers, this.filterMembers, '', 'column');
|
|
3166
|
+
}
|
|
3167
|
+
else {
|
|
3168
|
+
this.rMembers = this.getIndexedHeaders(this.rows, this.data, 0, this.filterMembers, 'row', '');
|
|
3169
|
+
this.insertAllMember(this.rMembers, this.filterMembers, '', 'row');
|
|
3170
|
+
}
|
|
3163
3171
|
}
|
|
3164
3172
|
if (headersInfo.axis === 'row') {
|
|
3165
3173
|
this.rowCount = 0;
|
|
@@ -13122,6 +13130,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13122
13130
|
this.previousValues = { top: 0, left: 0 };
|
|
13123
13131
|
this.frozenPreviousValues = { top: 0, left: 0 };
|
|
13124
13132
|
this.eventType = '';
|
|
13133
|
+
this.isFireFox = Browser.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
13125
13134
|
this.parent = parent;
|
|
13126
13135
|
this.engineModule = this.parent.dataType === 'pivot' ? this.parent.engineModule : this.parent.olapEngineModule;
|
|
13127
13136
|
this.addInternalEvents();
|
|
@@ -13145,11 +13154,14 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13145
13154
|
var mScrollBar = mCont.parentElement.parentElement.querySelector('.' + MOVABLESCROLL_DIV);
|
|
13146
13155
|
EventHandler.clearEvents(mCont);
|
|
13147
13156
|
EventHandler.clearEvents(fCont);
|
|
13157
|
+
if (this.isFireFox) {
|
|
13158
|
+
EventHandler.clearEvents(mHdr);
|
|
13159
|
+
}
|
|
13148
13160
|
if (this.engineModule) {
|
|
13149
13161
|
var ele = this.parent.isAdaptive ? mCont : mCont.parentElement.parentElement.querySelector('.' + MOVABLESCROLL_DIV);
|
|
13150
13162
|
EventHandler.add(ele, 'scroll touchmove pointermove', this.onHorizondalScroll(mHdr, mCont, fCont), this);
|
|
13151
13163
|
EventHandler.add(mCont.parentElement, 'scroll wheel touchmove pointermove keyup keydown', this.onVerticalScroll(fCont, mCont), this);
|
|
13152
|
-
EventHandler.add(mCont
|
|
13164
|
+
EventHandler.add(mCont, 'mouseup touchend scroll', this.common(mHdr, mCont, fCont), this);
|
|
13153
13165
|
EventHandler.add(mScrollBar, 'scroll', this.onCustomScrollbarScroll(mCont, mHdr), this);
|
|
13154
13166
|
EventHandler.add(mCont, 'scroll', this.onCustomScrollbarScroll(mScrollBar, mHdr), this);
|
|
13155
13167
|
EventHandler.add(mHdr, 'scroll', this.onCustomScrollbarScroll(mScrollBar, mCont), this);
|
|
@@ -13206,7 +13218,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13206
13218
|
}
|
|
13207
13219
|
var target = e.target;
|
|
13208
13220
|
var left = target.scrollLeft;
|
|
13209
|
-
if (_this.previousValues.left === left) {
|
|
13221
|
+
if (_this.previousValues.left === left || (_this.isFireFox && target.classList.contains(MOVABLEHEADER_DIV))) {
|
|
13210
13222
|
return;
|
|
13211
13223
|
}
|
|
13212
13224
|
content.scrollLeft = left;
|
|
@@ -17557,7 +17569,7 @@ var PivotAxis = /** @__PURE__ @class */ (function (_super) {
|
|
|
17557
17569
|
Property('')
|
|
17558
17570
|
], PivotAxis.prototype, "title", void 0);
|
|
17559
17571
|
__decorate$3([
|
|
17560
|
-
Property(
|
|
17572
|
+
Property(1)
|
|
17561
17573
|
], PivotAxis.prototype, "zoomFactor", void 0);
|
|
17562
17574
|
__decorate$3([
|
|
17563
17575
|
Complex({}, CrosshairTooltip)
|
|
@@ -26995,9 +27007,6 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
26995
27007
|
var clonedValues;
|
|
26996
27008
|
var currentPivotValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
26997
27009
|
var customFileName = isFileNameSet ? exportProperties.fileName : 'default.xlsx';
|
|
26998
|
-
if (isHeaderSet) {
|
|
26999
|
-
this.addHeaderAndFooter(exportProperties.header, '', 'header', exportProperties.header.headerRows);
|
|
27000
|
-
}
|
|
27001
27010
|
if (this.parent.exportAllPages && this.parent.enableVirtualization && this.parent.dataType !== 'olap') {
|
|
27002
27011
|
var pageSettings = this.engine.pageSettings;
|
|
27003
27012
|
this.engine.pageSettings = null;
|
|
@@ -27011,7 +27020,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27011
27020
|
clonedValues = currentPivotValues;
|
|
27012
27021
|
}
|
|
27013
27022
|
var args = {
|
|
27014
|
-
fileName: customFileName, header: '', footer: '', dataCollections: [clonedValues]
|
|
27023
|
+
fileName: customFileName, header: '', footer: '', dataCollections: [clonedValues], excelExportProperties: exportProperties
|
|
27015
27024
|
};
|
|
27016
27025
|
var fileName;
|
|
27017
27026
|
var header;
|
|
@@ -27045,6 +27054,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27045
27054
|
for (var cCnt = 0; cCnt < colLen; cCnt++) {
|
|
27046
27055
|
if (pivotValues[rCnt][cCnt]) {
|
|
27047
27056
|
var pivotCell = pivotValues[rCnt][cCnt];
|
|
27057
|
+
var field = (this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
27058
|
+
this.parent.dataType === 'olap' && pivotCell.rowOrdinal &&
|
|
27059
|
+
this.engine.tupRowInfo[pivotCell.rowOrdinal]) ?
|
|
27060
|
+
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
27061
|
+
pivotCell.actualText;
|
|
27062
|
+
var styles = (pivotCell.axis == 'row') ? { hAlign: 'Left', bold: true, wrapText: true } : { numberFormat: formatList[field], bold: false, wrapText: true };
|
|
27063
|
+
var pivotCells = currentPivotValues[rCnt][cCnt];
|
|
27064
|
+
var headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
|
|
27048
27065
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27049
27066
|
var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
27050
27067
|
var isgetValuesHeader = ((this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row')
|
|
@@ -27064,33 +27081,21 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27064
27081
|
index: cCnt + 1, value: cellValue,
|
|
27065
27082
|
colSpan: pivotCell.colSpan, rowSpan: (pivotCell.rowSpan === -1 ? 1 : pivotCell.rowSpan),
|
|
27066
27083
|
});
|
|
27084
|
+
var lastCell = cells[cells.length - 1];
|
|
27067
27085
|
if (pivotCell.axis === 'value') {
|
|
27068
27086
|
if (isNaN(pivotCell.value) || pivotCell.formattedText === '' ||
|
|
27069
27087
|
pivotCell.formattedText === undefined || isNullOrUndefined(pivotCell.value)) {
|
|
27070
|
-
|
|
27071
|
-
}
|
|
27072
|
-
var field = (this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
27073
|
-
this.parent.dataType === 'olap' && pivotCell.rowOrdinal &&
|
|
27074
|
-
this.engine.tupRowInfo[pivotCell.rowOrdinal]) ?
|
|
27075
|
-
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
27076
|
-
pivotCell.actualText;
|
|
27077
|
-
cells[cells.length - 1].style = !isNullOrUndefined(cells[cells.length - 1].value) ? { numberFormat: formatList[field], bold: false, wrapText: true } : { bold: false, wrapText: true };
|
|
27078
|
-
if (pivotCell.style) {
|
|
27079
|
-
cells[cells.length - 1].style.backColor = pivotCell.style.backgroundColor;
|
|
27080
|
-
cells[cells.length - 1].style.fontColor = pivotCell.style.color;
|
|
27081
|
-
cells[cells.length - 1].style.fontName = pivotCell.style.fontFamily;
|
|
27082
|
-
cells[cells.length - 1].style.fontSize = Number(pivotCell.style.fontSize.split('px')[0]);
|
|
27088
|
+
lastCell.value = type === 'Excel' ? null : '';
|
|
27083
27089
|
}
|
|
27090
|
+
lastCell.style = !isNullOrUndefined(lastCell.value) ? styles : { bold: false, wrapText: true };
|
|
27084
27091
|
}
|
|
27085
27092
|
else {
|
|
27086
|
-
|
|
27087
|
-
bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0
|
|
27088
|
-
};
|
|
27093
|
+
lastCell.style = headerStyle;
|
|
27089
27094
|
if (pivotCell.axis === 'row' && cCnt === 0) {
|
|
27090
|
-
|
|
27095
|
+
lastCell.style = styles;
|
|
27091
27096
|
if (this.parent.dataType === 'olap') {
|
|
27092
27097
|
var indent = this.parent.renderModule.indentCollection[rCnt];
|
|
27093
|
-
|
|
27098
|
+
lastCell.style.indent = indent * 2;
|
|
27094
27099
|
maxLevel = maxLevel > indent ? maxLevel : indent;
|
|
27095
27100
|
}
|
|
27096
27101
|
else {
|
|
@@ -27100,19 +27105,55 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27100
27105
|
var levelPosition = levelName.split(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter).length -
|
|
27101
27106
|
(memberPos ? memberPos - 1 : memberPos);
|
|
27102
27107
|
var level = levelPosition ? (levelPosition - 1) : 0;
|
|
27103
|
-
|
|
27108
|
+
lastCell.style.indent = level * 2;
|
|
27104
27109
|
maxLevel = level > maxLevel ? level : maxLevel;
|
|
27105
27110
|
}
|
|
27106
27111
|
}
|
|
27107
27112
|
}
|
|
27108
|
-
|
|
27113
|
+
if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
27114
|
+
lastCell.style.backgroundColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
|
|
27115
|
+
lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
|
|
27116
|
+
lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
|
|
27117
|
+
lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
|
|
27118
|
+
}
|
|
27119
|
+
lastCell.style.borders = { color: '#000000', lineStyle: 'Thin' };
|
|
27120
|
+
var excelHeaderQueryCellInfoArgs = void 0;
|
|
27121
|
+
var excelQueryCellInfoArgs = void 0;
|
|
27122
|
+
if (pivotCell.axis === 'column') {
|
|
27123
|
+
excelHeaderQueryCellInfoArgs = {
|
|
27124
|
+
style: headerStyle,
|
|
27125
|
+
cell: pivotCells,
|
|
27126
|
+
};
|
|
27127
|
+
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
27128
|
+
}
|
|
27129
|
+
else {
|
|
27130
|
+
excelQueryCellInfoArgs = {
|
|
27131
|
+
style: styles,
|
|
27132
|
+
cell: pivotCells,
|
|
27133
|
+
column: undefined,
|
|
27134
|
+
data: pivotValues,
|
|
27135
|
+
value: cellValue
|
|
27136
|
+
};
|
|
27137
|
+
this.parent.trigger(excelQueryCellInfo, excelQueryCellInfoArgs);
|
|
27138
|
+
}
|
|
27139
|
+
lastCell.value = (pivotCell.axis == 'column') ? excelHeaderQueryCellInfoArgs.cell.formattedText : excelQueryCellInfoArgs.value;
|
|
27140
|
+
lastCell.style = (pivotCell.axis == 'column') ? excelHeaderQueryCellInfoArgs.style : excelQueryCellInfoArgs.style;
|
|
27109
27141
|
}
|
|
27110
27142
|
}
|
|
27111
27143
|
cCnt = cCnt + (pivotCell.colSpan ? (pivotCell.colSpan - 1) : 0);
|
|
27112
27144
|
}
|
|
27113
27145
|
else {
|
|
27146
|
+
var pivotCell = { formattedText: "" };
|
|
27147
|
+
var excelHeaderQueryCellInfoArgs = void 0;
|
|
27148
|
+
if (pivotCell) {
|
|
27149
|
+
excelHeaderQueryCellInfoArgs = {
|
|
27150
|
+
style: undefined,
|
|
27151
|
+
cell: pivotCell,
|
|
27152
|
+
};
|
|
27153
|
+
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
27154
|
+
}
|
|
27114
27155
|
cells.push({
|
|
27115
|
-
index: cCnt + 1,
|
|
27156
|
+
index: cCnt + 1, colSpan: 1, rowSpan: 1, value: pivotCell.formattedText, style: excelHeaderQueryCellInfoArgs.style
|
|
27116
27157
|
});
|
|
27117
27158
|
}
|
|
27118
27159
|
}
|
|
@@ -27184,14 +27225,21 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27184
27225
|
var footer = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.footer) && !isNullOrUndefined(pdfExportProperties.footer.contents) && !isNullOrUndefined(pdfExportProperties.footer.contents[0].value)) ?
|
|
27185
27226
|
pdfExportProperties.footer.contents[0].value : eventParams.args.footer;
|
|
27186
27227
|
var font = new PdfStandardFont(PdfFontFamily.TimesRoman, 15, PdfFontStyle.Regular);
|
|
27187
|
-
var
|
|
27228
|
+
var headerCondition = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.header)
|
|
27229
|
+
&& !isNullOrUndefined(pdfExportProperties.header.contents) && !isNullOrUndefined(pdfExportProperties.header.contents[0].style));
|
|
27230
|
+
var footerCondition = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.footer)
|
|
27231
|
+
&& !isNullOrUndefined(pdfExportProperties.footer.contents) && !isNullOrUndefined(pdfExportProperties.footer.contents[0].style));
|
|
27232
|
+
var headerColor = (headerCondition) ? this.hexDecToRgb(pdfExportProperties.header.contents[0].style.textBrushColor) : (new PdfColor(0, 0, 0));
|
|
27233
|
+
var brushHeader = (headerCondition) ? new PdfSolidBrush(new PdfColor(headerColor.r, headerColor.g, headerColor.b)) : new PdfSolidBrush(new PdfColor(0, 0, 0));
|
|
27234
|
+
var footerColor = (footerCondition) ? this.hexDecToRgb(pdfExportProperties.footer.contents[0].style.textBrushColor) : (new PdfColor(0, 0, 0));
|
|
27235
|
+
var brushFooter = (footerCondition) ? new PdfSolidBrush(new PdfColor(footerColor.r, footerColor.g, footerColor.b)) : new PdfSolidBrush(new PdfColor(0, 0, 0));
|
|
27188
27236
|
var pen = new PdfPen(new PdfColor(0, 0, 0), .5);
|
|
27189
27237
|
/** Header and Footer to be set */
|
|
27190
27238
|
var headerTemplate = new PdfPageTemplateElement(new RectangleF(0, 0, page.graphics.clientSize.width, 20));
|
|
27191
|
-
headerTemplate.graphics.drawString(header, font, pen,
|
|
27239
|
+
headerTemplate.graphics.drawString(header, font, pen, brushHeader, 0, 0, new PdfStringFormat(PdfTextAlignment.Center));
|
|
27192
27240
|
eventParams.document.template.top = headerTemplate;
|
|
27193
27241
|
var footerTemplate = new PdfPageTemplateElement(new RectangleF(0, 0, page.graphics.clientSize.width, 20));
|
|
27194
|
-
footerTemplate.graphics.drawString(footer, font, pen,
|
|
27242
|
+
footerTemplate.graphics.drawString(footer, font, pen, brushFooter, 0, 0, new PdfStringFormat(PdfTextAlignment.Center));
|
|
27195
27243
|
eventParams.document.template.bottom = footerTemplate;
|
|
27196
27244
|
return page;
|
|
27197
27245
|
};
|
|
@@ -27373,12 +27421,12 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27373
27421
|
var isValueCell = false;
|
|
27374
27422
|
if (pivotValues[rCnt][cCnt]) {
|
|
27375
27423
|
var pivotCell = pivotValues[rCnt][cCnt];
|
|
27424
|
+
var cellValue = pivotCell.formattedText;
|
|
27425
|
+
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
27426
|
+
cellValue = pivotCell.type === 'grand sum' ? (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'grandTotal') :
|
|
27427
|
+
this.parent.localeObj.getConstant('grandTotal') : (pivotCell.type === 'sum' ?
|
|
27428
|
+
cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total')) : cellValue);
|
|
27376
27429
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27377
|
-
var cellValue = pivotCell.formattedText;
|
|
27378
|
-
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
27379
|
-
cellValue = pivotCell.type === 'grand sum' ? (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'grandTotal') :
|
|
27380
|
-
this.parent.localeObj.getConstant('grandTotal') : (pivotCell.type === 'sum' ?
|
|
27381
|
-
cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total')) : cellValue);
|
|
27382
27430
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27383
27431
|
pdfGridRow.cells.getCell(localCnt).columnSpan = pivotCell.colSpan ?
|
|
27384
27432
|
(pageSize - localCnt < pivotCell.colSpan ? pageSize - localCnt : pivotCell.colSpan) : 1;
|
|
@@ -27401,11 +27449,31 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27401
27449
|
pdfGridRow = this.applyStyle(pdfGridRow, pivotCell, localCnt);
|
|
27402
27450
|
}
|
|
27403
27451
|
var args = {
|
|
27404
|
-
style: (pivotCell && pivotCell.isSum) ? { bold: true } : undefined,
|
|
27452
|
+
style: (pivotCell.axis == "column") ? { bold: false } : ((pivotCell && pivotCell.isSum) || (pivotCell.axis == "row")) ? { bold: true } : undefined,
|
|
27405
27453
|
pivotCell: pivotCell,
|
|
27406
27454
|
cell: pdfGridRow.cells.getCell(localCnt)
|
|
27407
27455
|
};
|
|
27408
27456
|
this.parent.trigger(onPdfCellRender, args);
|
|
27457
|
+
if (pivotCell.axis == "column") {
|
|
27458
|
+
args = {
|
|
27459
|
+
style: args.style,
|
|
27460
|
+
cell: args.cell,
|
|
27461
|
+
gridCell: args.pivotCell
|
|
27462
|
+
};
|
|
27463
|
+
this.parent.trigger(pdfHeaderQueryCellInfo, args);
|
|
27464
|
+
pdfGridRow.cells.getCell(localCnt).value = args.gridCell.formattedText ? args.gridCell.formattedText : cellValue;
|
|
27465
|
+
}
|
|
27466
|
+
else {
|
|
27467
|
+
args = {
|
|
27468
|
+
style: args.style,
|
|
27469
|
+
cell: args.cell,
|
|
27470
|
+
column: undefined,
|
|
27471
|
+
data: args.pivotCell,
|
|
27472
|
+
value: cellValue,
|
|
27473
|
+
};
|
|
27474
|
+
this.parent.trigger(pdfQueryCellInfo, args);
|
|
27475
|
+
pdfGridRow.cells.getCell(localCnt).value = args.value ? args.value : cellValue;
|
|
27476
|
+
}
|
|
27409
27477
|
if (args.style) {
|
|
27410
27478
|
this.processCellStyle(pdfGridRow.cells.getCell(localCnt), args);
|
|
27411
27479
|
}
|
|
@@ -27417,6 +27485,15 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27417
27485
|
cell: pdfGridRow.cells.getCell(localCnt)
|
|
27418
27486
|
};
|
|
27419
27487
|
this.parent.trigger(onPdfCellRender, args);
|
|
27488
|
+
var pivotCell = { formattedText: "" };
|
|
27489
|
+
if (pivotCell.axis == "column") {
|
|
27490
|
+
args = {
|
|
27491
|
+
style: args.style,
|
|
27492
|
+
cell: args.cell,
|
|
27493
|
+
gridCell: args.pivotCell
|
|
27494
|
+
};
|
|
27495
|
+
this.parent.trigger(pdfHeaderQueryCellInfo, args);
|
|
27496
|
+
}
|
|
27420
27497
|
if (args.style) {
|
|
27421
27498
|
this.processCellStyle(pdfGridRow.cells.getCell(localCnt), args);
|
|
27422
27499
|
}
|
|
@@ -30665,6 +30742,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
30665
30742
|
_this.refreshPivotButtonState(fieldName, isNodeUnChecked);
|
|
30666
30743
|
if (!isNodeUnChecked) {
|
|
30667
30744
|
_this.removeDataSourceSettings(fieldName);
|
|
30745
|
+
filterItem = {};
|
|
30668
30746
|
}
|
|
30669
30747
|
_this.parent.lastFilterInfo = filterItem;
|
|
30670
30748
|
var actionInfo = {
|
|
@@ -36099,10 +36177,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36099
36177
|
}
|
|
36100
36178
|
};
|
|
36101
36179
|
Toolbar$$1.prototype.actionClick = function (args) {
|
|
36102
|
-
var actionName = (args.item.id ==
|
|
36103
|
-
: (args.item.id ==
|
|
36104
|
-
: (args.item.id ==
|
|
36105
|
-
: (args.item.id ==
|
|
36180
|
+
var actionName = (args.item.id == this.parent.element.id + 'new') ? addNewReport : (args.item.id == this.parent.element.id + 'save') ? saveCurrentReport : (args.item.id == this.parent.element.id + 'saveas') ? saveAsCurrentReport
|
|
36181
|
+
: (args.item.id == this.parent.element.id + 'rename') ? renameCurrentReport : (args.item.id == this.parent.element.id + 'remove') ? removeCurrentReport : (args.item.id == this.parent.element.id + 'load') ? loadReports
|
|
36182
|
+
: (args.item.id == this.parent.element.id + 'formatting') ? openConditionalFormatting : (args.item.id == this.parent.element.id + 'numberFormatting') ? openNumberFormatting
|
|
36183
|
+
: (args.item.id == this.parent.element.id + 'mdxQuery') ? MdxQuery : (args.item.id == this.parent.element.id + 'fieldlist') ? showFieldList : '';
|
|
36106
36184
|
this.parent.actionObj.actionName = actionName;
|
|
36107
36185
|
if (this.parent.actionBeginMethod()) {
|
|
36108
36186
|
return;
|
|
@@ -36944,14 +37022,14 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36944
37022
|
var _this_1 = this;
|
|
36945
37023
|
var exportArgs = {};
|
|
36946
37024
|
var type;
|
|
36947
|
-
var actionName = (args.item.id ==
|
|
36948
|
-
: (args.item.id == "
|
|
36949
|
-
: (args.item.id == "
|
|
36950
|
-
: (args.item.id == "
|
|
36951
|
-
: (args.item.id == "
|
|
36952
|
-
: (args.item.id == "
|
|
36953
|
-
: (args.item.id == "
|
|
36954
|
-
: (args.item.id == "
|
|
37025
|
+
var actionName = (args.item.id == this.parent.element.id + 'grid') ? tableView : (args.item.id == this.parent.element.id + '_' + "Column") ? chartView : (args.item.id == this.parent.element.id + '_' + "Bar") ? chartView : (args.item.id == this.parent.element.id + '_' + "Line") ? chartView
|
|
37026
|
+
: (args.item.id == this.parent.element.id + '_' + "Area") ? chartView : (args.item.id == this.parent.element.id + '_' + "Scatter") ? chartView : (args.item.id == this.parent.element.id + '_' + "Polar") ? chartView : (args.item.id == this.parent.element.id + '_' + "ChartMoreOption") ? chartView
|
|
37027
|
+
: (args.item.id == this.parent.element.id + '_' + "multipleAxes") ? multipleAxis : (args.item.id == this.parent.element.id + '_' + "showLegend") ? showLegend : (args.item.id == this.parent.element.id + "pdf") ? pdfExport : (args.item.id == this.parent.element.id + "png") ? pngExport
|
|
37028
|
+
: (args.item.id == this.parent.element.id + "excel") ? excelExport : (args.item.id == this.parent.element.id + "csv") ? csvExport : (args.item.id == this.parent.element.id + "jpeg") ? jpegExport : (args.item.id == this.parent.element.id + "svg") ? svgExport
|
|
37029
|
+
: (args.item.id == this.parent.element.id + "notsubtotal") ? hideSubTotals : (args.item.id == this.parent.element.id + "subtotalrow") ? subTotalsRow : (args.item.id == this.parent.element.id + "subtotalcolumn") ? subTotalsColumn
|
|
37030
|
+
: (args.item.id == this.parent.element.id + "subtotal") ? showSubTotals : (args.item.id == this.parent.element.id + "notgrandtotal") ? hideGrandTotals : (args.item.id == this.parent.element.id + "grandtotalrow") ? grandTotalsRow
|
|
37031
|
+
: (args.item.id == this.parent.element.id + "grandtotalcolumn") ? grandTotalsColumn : (args.item.id == this.parent.element.id + "grandtotal") ? showGrandTotals
|
|
37032
|
+
: (args.item.id == this.parent.element.id + "numberFormattingMenu") ? numberFormattingMenu : (args.item.id == this.parent.element.id + "conditionalFormattingMenu") ? conditionalFormattingMenu : '';
|
|
36955
37033
|
this.parent.actionObj.actionName = actionName;
|
|
36956
37034
|
if (this.parent.actionBeginMethod()) {
|
|
36957
37035
|
return;
|