@syncfusion/ej2-pivotview 19.4.48 → 19.4.50
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 +26 -7
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +27 -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 +16 -16
- package/src/base/engine.js +4 -2
- package/src/common/popups/toolbar.js +7 -0
- package/src/pivotview/actions/excel-export.js +4 -5
- package/src/pivotview/base/pivotview.js +12 -0
|
@@ -4123,10 +4123,11 @@ class PivotEngine {
|
|
|
4123
4123
|
(level > this.measureIndex && row.axis === 'row' && row.valueSort.axis)) {
|
|
4124
4124
|
let vln = 0;
|
|
4125
4125
|
let isValueIndexFound = false;
|
|
4126
|
+
let rowUniqueName = row.valueSort.uniqueName ? row.valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter) : [];
|
|
4126
4127
|
for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4127
4128
|
if (!isValueIndexFound) {
|
|
4128
4129
|
for (vln = 0; vln < vlt; vln++) {
|
|
4129
|
-
if (
|
|
4130
|
+
if (rowUniqueName.indexOf(this.values[vln].name) > -1) {
|
|
4130
4131
|
isValueIndexFound = true;
|
|
4131
4132
|
isValueCellUpdated = true;
|
|
4132
4133
|
break;
|
|
@@ -4159,9 +4160,10 @@ class PivotEngine {
|
|
|
4159
4160
|
}
|
|
4160
4161
|
else {
|
|
4161
4162
|
for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4163
|
+
let columnUniqueName = columns[cln].valueSort.uniqueName ? columns[cln].valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter) : [];
|
|
4162
4164
|
for (let vln = 0; vln < vlt; vln++) {
|
|
4163
4165
|
if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
|
|
4164
|
-
if (
|
|
4166
|
+
if (columnUniqueName.indexOf(this.values[vln].name) > -1) {
|
|
4165
4167
|
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4166
4168
|
dln = data[tnum].length;
|
|
4167
4169
|
}
|
|
@@ -22808,6 +22810,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22808
22810
|
let keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
22809
22811
|
/* eslint-disable */
|
|
22810
22812
|
let columnRender = this.gridSettings['columnRender'];
|
|
22813
|
+
let excelQueryCellInfo$$1 = this.gridSettings['excelQueryCellInfo'];
|
|
22814
|
+
let excelHeaderQueryCellInfo$$1 = this.gridSettings['excelHeaderQueryCellInfo'];
|
|
22815
|
+
let pdfQueryCellInfo$$1 = this.gridSettings['pdfQueryCellInfo'];
|
|
22816
|
+
let pdfHeaderQueryCellInfo$$1 = this.gridSettings['pdfHeaderQueryCellInfo'];
|
|
22811
22817
|
let chartLoadEvent = this.chartSettings['load'];
|
|
22812
22818
|
let chartLoadedEvent = this.chartSettings['loaded'];
|
|
22813
22819
|
let chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -22817,6 +22823,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22817
22823
|
let chartPointClickEvent = this.chartSettings['pointClick'];
|
|
22818
22824
|
let chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
22819
22825
|
this.gridSettings['columnRender'] = undefined;
|
|
22826
|
+
this.gridSettings['excelQueryCellInfo'] = undefined;
|
|
22827
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = undefined;
|
|
22828
|
+
this.gridSettings['pdfQueryCellInfo'] = undefined;
|
|
22829
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = undefined;
|
|
22820
22830
|
this.chartSettings['tooltipRender'] = undefined;
|
|
22821
22831
|
this.chartSettings['load'] = undefined;
|
|
22822
22832
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -22827,6 +22837,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22827
22837
|
this.chartSettings['pointClick'] = undefined;
|
|
22828
22838
|
let persistData = this.addOnPersist(keyEntity);
|
|
22829
22839
|
this.gridSettings['columnRender'] = columnRender;
|
|
22840
|
+
this.gridSettings['excelQueryCellInfo'] = excelQueryCellInfo$$1;
|
|
22841
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = excelHeaderQueryCellInfo$$1;
|
|
22842
|
+
this.gridSettings['pdfQueryCellInfo'] = pdfQueryCellInfo$$1;
|
|
22843
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = pdfHeaderQueryCellInfo$$1;
|
|
22830
22844
|
this.chartSettings['load'] = chartLoadEvent;
|
|
22831
22845
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
22832
22846
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
@@ -26357,7 +26371,6 @@ class ExcelExport$1 {
|
|
|
26357
26371
|
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
26358
26372
|
pivotCell.actualText;
|
|
26359
26373
|
let styles = (pivotCell.axis == 'row') ? { hAlign: 'Left', bold: true, wrapText: true } : { numberFormat: formatList[field], bold: false, wrapText: true };
|
|
26360
|
-
let pivotCells = currentPivotValues[rCnt][cCnt];
|
|
26361
26374
|
let headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
|
|
26362
26375
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
26363
26376
|
let cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
@@ -26407,8 +26420,8 @@ class ExcelExport$1 {
|
|
|
26407
26420
|
}
|
|
26408
26421
|
}
|
|
26409
26422
|
}
|
|
26410
|
-
if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
26411
|
-
lastCell.style.
|
|
26423
|
+
if (pivotCell.style || lastCell.style.backColor || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
26424
|
+
lastCell.style.backColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
|
|
26412
26425
|
lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
|
|
26413
26426
|
lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
|
|
26414
26427
|
lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
|
|
@@ -26419,14 +26432,14 @@ class ExcelExport$1 {
|
|
|
26419
26432
|
if (pivotCell.axis === 'column') {
|
|
26420
26433
|
excelHeaderQueryCellInfoArgs = {
|
|
26421
26434
|
style: headerStyle,
|
|
26422
|
-
cell:
|
|
26435
|
+
cell: pivotCell,
|
|
26423
26436
|
};
|
|
26424
26437
|
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
26425
26438
|
}
|
|
26426
26439
|
else {
|
|
26427
26440
|
excelQueryCellInfoArgs = {
|
|
26428
26441
|
style: styles,
|
|
26429
|
-
cell:
|
|
26442
|
+
cell: pivotCell,
|
|
26430
26443
|
column: undefined,
|
|
26431
26444
|
data: pivotValues,
|
|
26432
26445
|
value: cellValue
|
|
@@ -36067,6 +36080,9 @@ class Toolbar$2 {
|
|
|
36067
36080
|
label: this.parent.localeObj.getConstant('multipleAxes'),
|
|
36068
36081
|
cssClass: 'e-multipleAxes',
|
|
36069
36082
|
checked: this.parent.chartSettings.enableMultipleAxis,
|
|
36083
|
+
change: (args) => {
|
|
36084
|
+
document.getElementById(this.parent.element.id + '_' + 'multipleAxes').click();
|
|
36085
|
+
},
|
|
36070
36086
|
enableRtl: this.parent.enableRtl,
|
|
36071
36087
|
locale: this.parent.locale
|
|
36072
36088
|
});
|
|
@@ -36095,6 +36111,9 @@ class Toolbar$2 {
|
|
|
36095
36111
|
label: this.parent.localeObj.getConstant('showLegend'),
|
|
36096
36112
|
checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
|
|
36097
36113
|
cssClass: 'e-showLegend',
|
|
36114
|
+
change: (args) => {
|
|
36115
|
+
document.getElementById(this.parent.element.id + '_' + 'showLegend').click();
|
|
36116
|
+
},
|
|
36098
36117
|
enableRtl: this.parent.enableRtl,
|
|
36099
36118
|
locale: this.parent.locale
|
|
36100
36119
|
});
|