@syncfusion/ej2-pivotview 19.4.47 → 19.4.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 +20 -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 +30 -14
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +31 -14
- 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.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 +16 -7
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/pivotview/_theme.scss +3 -0
- package/styles/pivotview/bootstrap5-dark.css +1 -0
- package/styles/pivotview/bootstrap5.css +1 -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
|
}
|
|
@@ -22434,13 +22436,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22434
22436
|
this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
|
|
22435
22437
|
this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
|
|
22436
22438
|
this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
|
|
22437
|
-
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
|
|
22438
|
-
|
|
22439
|
-
this.
|
|
22440
|
-
this.
|
|
22441
|
-
this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
|
|
22442
|
-
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
|
|
22443
|
-
this.gridSettings.excelQueryCellInfo.bind(this) : undefined;
|
|
22439
|
+
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ? this.gridSettings.pdfHeaderQueryCellInfo : undefined;
|
|
22440
|
+
this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo : undefined;
|
|
22441
|
+
this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ? this.gridSettings.excelHeaderQueryCellInfo : undefined;
|
|
22442
|
+
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ? this.gridSettings.excelQueryCellInfo : undefined;
|
|
22444
22443
|
this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
|
|
22445
22444
|
this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
|
|
22446
22445
|
this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
|
|
@@ -22808,6 +22807,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22808
22807
|
let keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
22809
22808
|
/* eslint-disable */
|
|
22810
22809
|
let columnRender = this.gridSettings['columnRender'];
|
|
22810
|
+
let excelQueryCellInfo$$1 = this.gridSettings['excelQueryCellInfo'];
|
|
22811
|
+
let excelHeaderQueryCellInfo$$1 = this.gridSettings['excelHeaderQueryCellInfo'];
|
|
22812
|
+
let pdfQueryCellInfo$$1 = this.gridSettings['pdfQueryCellInfo'];
|
|
22813
|
+
let pdfHeaderQueryCellInfo$$1 = this.gridSettings['pdfHeaderQueryCellInfo'];
|
|
22811
22814
|
let chartLoadEvent = this.chartSettings['load'];
|
|
22812
22815
|
let chartLoadedEvent = this.chartSettings['loaded'];
|
|
22813
22816
|
let chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -22817,6 +22820,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22817
22820
|
let chartPointClickEvent = this.chartSettings['pointClick'];
|
|
22818
22821
|
let chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
22819
22822
|
this.gridSettings['columnRender'] = undefined;
|
|
22823
|
+
this.gridSettings['excelQueryCellInfo'] = undefined;
|
|
22824
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = undefined;
|
|
22825
|
+
this.gridSettings['pdfQueryCellInfo'] = undefined;
|
|
22826
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = undefined;
|
|
22820
22827
|
this.chartSettings['tooltipRender'] = undefined;
|
|
22821
22828
|
this.chartSettings['load'] = undefined;
|
|
22822
22829
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -22827,6 +22834,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22827
22834
|
this.chartSettings['pointClick'] = undefined;
|
|
22828
22835
|
let persistData = this.addOnPersist(keyEntity);
|
|
22829
22836
|
this.gridSettings['columnRender'] = columnRender;
|
|
22837
|
+
this.gridSettings['excelQueryCellInfo'] = excelQueryCellInfo$$1;
|
|
22838
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = excelHeaderQueryCellInfo$$1;
|
|
22839
|
+
this.gridSettings['pdfQueryCellInfo'] = pdfQueryCellInfo$$1;
|
|
22840
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = pdfHeaderQueryCellInfo$$1;
|
|
22830
22841
|
this.chartSettings['load'] = chartLoadEvent;
|
|
22831
22842
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
22832
22843
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
@@ -26357,7 +26368,6 @@ class ExcelExport$1 {
|
|
|
26357
26368
|
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
26358
26369
|
pivotCell.actualText;
|
|
26359
26370
|
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
26371
|
let headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
|
|
26362
26372
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
26363
26373
|
let cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
@@ -26407,8 +26417,8 @@ class ExcelExport$1 {
|
|
|
26407
26417
|
}
|
|
26408
26418
|
}
|
|
26409
26419
|
}
|
|
26410
|
-
if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
26411
|
-
lastCell.style.
|
|
26420
|
+
if (pivotCell.style || lastCell.style.backColor || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
26421
|
+
lastCell.style.backColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
|
|
26412
26422
|
lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
|
|
26413
26423
|
lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
|
|
26414
26424
|
lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
|
|
@@ -26419,14 +26429,14 @@ class ExcelExport$1 {
|
|
|
26419
26429
|
if (pivotCell.axis === 'column') {
|
|
26420
26430
|
excelHeaderQueryCellInfoArgs = {
|
|
26421
26431
|
style: headerStyle,
|
|
26422
|
-
cell:
|
|
26432
|
+
cell: pivotCell,
|
|
26423
26433
|
};
|
|
26424
26434
|
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
26425
26435
|
}
|
|
26426
26436
|
else {
|
|
26427
26437
|
excelQueryCellInfoArgs = {
|
|
26428
26438
|
style: styles,
|
|
26429
|
-
cell:
|
|
26439
|
+
cell: pivotCell,
|
|
26430
26440
|
column: undefined,
|
|
26431
26441
|
data: pivotValues,
|
|
26432
26442
|
value: cellValue
|
|
@@ -36067,6 +36077,9 @@ class Toolbar$2 {
|
|
|
36067
36077
|
label: this.parent.localeObj.getConstant('multipleAxes'),
|
|
36068
36078
|
cssClass: 'e-multipleAxes',
|
|
36069
36079
|
checked: this.parent.chartSettings.enableMultipleAxis,
|
|
36080
|
+
change: (args) => {
|
|
36081
|
+
document.getElementById(this.parent.element.id + '_' + 'multipleAxes').click();
|
|
36082
|
+
},
|
|
36070
36083
|
enableRtl: this.parent.enableRtl,
|
|
36071
36084
|
locale: this.parent.locale
|
|
36072
36085
|
});
|
|
@@ -36095,6 +36108,9 @@ class Toolbar$2 {
|
|
|
36095
36108
|
label: this.parent.localeObj.getConstant('showLegend'),
|
|
36096
36109
|
checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
|
|
36097
36110
|
cssClass: 'e-showLegend',
|
|
36111
|
+
change: (args) => {
|
|
36112
|
+
document.getElementById(this.parent.element.id + '_' + 'showLegend').click();
|
|
36113
|
+
},
|
|
36098
36114
|
enableRtl: this.parent.enableRtl,
|
|
36099
36115
|
locale: this.parent.locale
|
|
36100
36116
|
});
|