@syncfusion/ej2-pivotview 19.4.41 → 19.4.42
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 +9 -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 +11 -7
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +11 -7
- 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 +15 -15
- package/src/pivotview/actions/excel-export.js +1 -4
- package/src/pivotview/actions/pdf-export.js +10 -3
- 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
|
@@ -26284,9 +26284,6 @@ class ExcelExport$1 {
|
|
|
26284
26284
|
let clonedValues;
|
|
26285
26285
|
let currentPivotValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
26286
26286
|
let customFileName = isFileNameSet ? exportProperties.fileName : 'default.xlsx';
|
|
26287
|
-
if (isHeaderSet) {
|
|
26288
|
-
this.addHeaderAndFooter(exportProperties.header, '', 'header', exportProperties.header.headerRows);
|
|
26289
|
-
}
|
|
26290
26287
|
if (this.parent.exportAllPages && this.parent.enableVirtualization && this.parent.dataType !== 'olap') {
|
|
26291
26288
|
let pageSettings = this.engine.pageSettings;
|
|
26292
26289
|
this.engine.pageSettings = null;
|
|
@@ -26300,7 +26297,7 @@ class ExcelExport$1 {
|
|
|
26300
26297
|
clonedValues = currentPivotValues;
|
|
26301
26298
|
}
|
|
26302
26299
|
let args = {
|
|
26303
|
-
fileName: customFileName, header: '', footer: '', dataCollections: [clonedValues]
|
|
26300
|
+
fileName: customFileName, header: '', footer: '', dataCollections: [clonedValues], excelExportProperties: exportProperties
|
|
26304
26301
|
};
|
|
26305
26302
|
let fileName;
|
|
26306
26303
|
let header;
|
|
@@ -26472,14 +26469,21 @@ class PDFExport {
|
|
|
26472
26469
|
let footer = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.footer) && !isNullOrUndefined(pdfExportProperties.footer.contents) && !isNullOrUndefined(pdfExportProperties.footer.contents[0].value)) ?
|
|
26473
26470
|
pdfExportProperties.footer.contents[0].value : eventParams.args.footer;
|
|
26474
26471
|
let font = new PdfStandardFont(PdfFontFamily.TimesRoman, 15, PdfFontStyle.Regular);
|
|
26475
|
-
let
|
|
26472
|
+
let headerCondition = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.header)
|
|
26473
|
+
&& !isNullOrUndefined(pdfExportProperties.header.contents) && !isNullOrUndefined(pdfExportProperties.header.contents[0].style));
|
|
26474
|
+
let footerCondition = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.footer)
|
|
26475
|
+
&& !isNullOrUndefined(pdfExportProperties.footer.contents) && !isNullOrUndefined(pdfExportProperties.footer.contents[0].style));
|
|
26476
|
+
let headerColor = (headerCondition) ? this.hexDecToRgb(pdfExportProperties.header.contents[0].style.textBrushColor) : (new PdfColor(0, 0, 0));
|
|
26477
|
+
let brushHeader = (headerCondition) ? new PdfSolidBrush(new PdfColor(headerColor.r, headerColor.g, headerColor.b)) : new PdfSolidBrush(new PdfColor(0, 0, 0));
|
|
26478
|
+
let footerColor = (footerCondition) ? this.hexDecToRgb(pdfExportProperties.footer.contents[0].style.textBrushColor) : (new PdfColor(0, 0, 0));
|
|
26479
|
+
let brushFooter = (footerCondition) ? new PdfSolidBrush(new PdfColor(footerColor.r, footerColor.g, footerColor.b)) : new PdfSolidBrush(new PdfColor(0, 0, 0));
|
|
26476
26480
|
let pen = new PdfPen(new PdfColor(0, 0, 0), .5);
|
|
26477
26481
|
/** Header and Footer to be set */
|
|
26478
26482
|
let headerTemplate = new PdfPageTemplateElement(new RectangleF(0, 0, page.graphics.clientSize.width, 20));
|
|
26479
|
-
headerTemplate.graphics.drawString(header, font, pen,
|
|
26483
|
+
headerTemplate.graphics.drawString(header, font, pen, brushHeader, 0, 0, new PdfStringFormat(PdfTextAlignment.Center));
|
|
26480
26484
|
eventParams.document.template.top = headerTemplate;
|
|
26481
26485
|
let footerTemplate = new PdfPageTemplateElement(new RectangleF(0, 0, page.graphics.clientSize.width, 20));
|
|
26482
|
-
footerTemplate.graphics.drawString(footer, font, pen,
|
|
26486
|
+
footerTemplate.graphics.drawString(footer, font, pen, brushFooter, 0, 0, new PdfStringFormat(PdfTextAlignment.Center));
|
|
26483
26487
|
eventParams.document.template.bottom = footerTemplate;
|
|
26484
26488
|
return page;
|
|
26485
26489
|
}
|