@syncfusion/ej2-pivotview 19.4.42 → 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 +32 -2
- 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 +172 -65
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +173 -65
- 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/actions/dataSource-update.d.ts +1 -1
- package/src/common/actions/dataSource-update.js +5 -0
- package/src/common/actions/node-state-modified.js +1 -1
- package/src/common/grouping-bar/grouping-bar.js +1 -1
- package/src/common/popups/toolbar.js +19 -12
- package/src/pivotchart/base/pivotchart.js +1 -1
- package/src/pivotfieldlist/base/field-list.d.ts +2 -0
- package/src/pivotfieldlist/base/field-list.js +4 -2
- package/src/pivotfieldlist/renderer/axis-table-renderer.js +1 -1
- package/src/pivotfieldlist/renderer/tree-renderer.js +16 -11
- package/src/pivotview/actions/excel-export.js +52 -21
- package/src/pivotview/actions/pdf-export.js +35 -6
- package/src/pivotview/actions/virtualscroll.js +1 -1
- package/src/pivotview/base/pivotview.d.ts +2 -0
- package/src/pivotview/base/pivotview.js +33 -6
|
@@ -4206,10 +4206,11 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4206
4206
|
(level > this.measureIndex && row.axis === 'row' && row.valueSort.axis)) {
|
|
4207
4207
|
var vln = 0;
|
|
4208
4208
|
var isValueIndexFound = false;
|
|
4209
|
+
var rowUniqueName = row.valueSort.uniqueName ? row.valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter) : [];
|
|
4209
4210
|
for (var cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4210
4211
|
if (!isValueIndexFound) {
|
|
4211
4212
|
for (vln = 0; vln < vlt; vln++) {
|
|
4212
|
-
if (
|
|
4213
|
+
if (rowUniqueName.indexOf(this.values[vln].name) > -1) {
|
|
4213
4214
|
isValueIndexFound = true;
|
|
4214
4215
|
isValueCellUpdated = true;
|
|
4215
4216
|
break;
|
|
@@ -4242,9 +4243,10 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4242
4243
|
}
|
|
4243
4244
|
else {
|
|
4244
4245
|
for (var cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4246
|
+
var columnUniqueName = columns[cln].valueSort.uniqueName ? columns[cln].valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter) : [];
|
|
4245
4247
|
for (var vln = 0; vln < vlt; vln++) {
|
|
4246
4248
|
if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
|
|
4247
|
-
if (
|
|
4249
|
+
if (columnUniqueName.indexOf(this.values[vln].name) > -1) {
|
|
4248
4250
|
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4249
4251
|
dln = data[tnum].length;
|
|
4250
4252
|
}
|
|
@@ -10103,7 +10105,7 @@ var NodeStateModified = /** @__PURE__ @class */ (function () {
|
|
|
10103
10105
|
this.parent.engineModule.updateFieldlistData(fieldName);
|
|
10104
10106
|
}
|
|
10105
10107
|
}
|
|
10106
|
-
this.parent.dataSourceUpdate.updateDataSource(fieldName, droppedClass, droppedPosition);
|
|
10108
|
+
nodeDropped = this.parent.dataSourceUpdate.updateDataSource(fieldName, droppedClass, droppedPosition);
|
|
10107
10109
|
return nodeDropped;
|
|
10108
10110
|
};
|
|
10109
10111
|
NodeStateModified.prototype.getButtonPosition = function (target, droppedClass) {
|
|
@@ -10152,6 +10154,7 @@ var DataSourceUpdate = /** @__PURE__ @class */ (function () {
|
|
|
10152
10154
|
var dataSourceItem;
|
|
10153
10155
|
var draggedClass;
|
|
10154
10156
|
var draggedPosition = -1;
|
|
10157
|
+
var nodeDropped = true;
|
|
10155
10158
|
var row = this.parent.dataSourceSettings.rows;
|
|
10156
10159
|
var column = this.parent.dataSourceSettings.columns;
|
|
10157
10160
|
var value = this.parent.dataSourceSettings.values;
|
|
@@ -10278,7 +10281,11 @@ var DataSourceUpdate = /** @__PURE__ @class */ (function () {
|
|
|
10278
10281
|
});
|
|
10279
10282
|
}
|
|
10280
10283
|
}
|
|
10284
|
+
else {
|
|
10285
|
+
nodeDropped = false;
|
|
10286
|
+
}
|
|
10281
10287
|
});
|
|
10288
|
+
return nodeDropped;
|
|
10282
10289
|
};
|
|
10283
10290
|
/**
|
|
10284
10291
|
* Updates the dataSource by removing the given field from the dataSource.
|
|
@@ -13161,7 +13168,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13161
13168
|
var ele = this.parent.isAdaptive ? mCont : mCont.parentElement.parentElement.querySelector('.' + MOVABLESCROLL_DIV);
|
|
13162
13169
|
EventHandler.add(ele, 'scroll touchmove pointermove', this.onHorizondalScroll(mHdr, mCont, fCont), this);
|
|
13163
13170
|
EventHandler.add(mCont.parentElement, 'scroll wheel touchmove pointermove keyup keydown', this.onVerticalScroll(fCont, mCont), this);
|
|
13164
|
-
EventHandler.add(mCont
|
|
13171
|
+
EventHandler.add(mCont, 'mouseup touchend scroll', this.common(mHdr, mCont, fCont), this);
|
|
13165
13172
|
EventHandler.add(mScrollBar, 'scroll', this.onCustomScrollbarScroll(mCont, mHdr), this);
|
|
13166
13173
|
EventHandler.add(mCont, 'scroll', this.onCustomScrollbarScroll(mScrollBar, mHdr), this);
|
|
13167
13174
|
EventHandler.add(mHdr, 'scroll', this.onCustomScrollbarScroll(mScrollBar, mCont), this);
|
|
@@ -15946,7 +15953,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15946
15953
|
if (this.parent && this.parent.isDestroyed) {
|
|
15947
15954
|
return;
|
|
15948
15955
|
}
|
|
15949
|
-
if (this.engineModule) {
|
|
15956
|
+
if (this.engineModule && !this.parent.destroyEngine) {
|
|
15950
15957
|
this.engineModule.fieldList = {};
|
|
15951
15958
|
this.engineModule = {};
|
|
15952
15959
|
}
|
|
@@ -22541,6 +22548,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
22541
22548
|
_this_1.isServerWaitingPopup = false;
|
|
22542
22549
|
/** @hidden */
|
|
22543
22550
|
_this_1.actionObj = {};
|
|
22551
|
+
/** @hidden */
|
|
22552
|
+
_this_1.destroyEngine = false;
|
|
22544
22553
|
_this_1.pivotView = _this_1;
|
|
22545
22554
|
setValue('mergePersistData', _this_1.mergePersistPivotData, _this_1);
|
|
22546
22555
|
return _this_1;
|
|
@@ -23493,6 +23502,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23493
23502
|
var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
23494
23503
|
/* eslint-disable */
|
|
23495
23504
|
var columnRender = this.gridSettings['columnRender'];
|
|
23505
|
+
var excelQueryCellInfo$$1 = this.gridSettings['excelQueryCellInfo'];
|
|
23506
|
+
var excelHeaderQueryCellInfo$$1 = this.gridSettings['excelHeaderQueryCellInfo'];
|
|
23507
|
+
var pdfQueryCellInfo$$1 = this.gridSettings['pdfQueryCellInfo'];
|
|
23508
|
+
var pdfHeaderQueryCellInfo$$1 = this.gridSettings['pdfHeaderQueryCellInfo'];
|
|
23496
23509
|
var chartLoadEvent = this.chartSettings['load'];
|
|
23497
23510
|
var chartLoadedEvent = this.chartSettings['loaded'];
|
|
23498
23511
|
var chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -23502,6 +23515,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23502
23515
|
var chartPointClickEvent = this.chartSettings['pointClick'];
|
|
23503
23516
|
var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
23504
23517
|
this.gridSettings['columnRender'] = undefined;
|
|
23518
|
+
this.gridSettings['excelQueryCellInfo'] = undefined;
|
|
23519
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = undefined;
|
|
23520
|
+
this.gridSettings['pdfQueryCellInfo'] = undefined;
|
|
23521
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = undefined;
|
|
23505
23522
|
this.chartSettings['tooltipRender'] = undefined;
|
|
23506
23523
|
this.chartSettings['load'] = undefined;
|
|
23507
23524
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -23512,6 +23529,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23512
23529
|
this.chartSettings['pointClick'] = undefined;
|
|
23513
23530
|
var persistData = this.addOnPersist(keyEntity);
|
|
23514
23531
|
this.gridSettings['columnRender'] = columnRender;
|
|
23532
|
+
this.gridSettings['excelQueryCellInfo'] = excelQueryCellInfo$$1;
|
|
23533
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = excelHeaderQueryCellInfo$$1;
|
|
23534
|
+
this.gridSettings['pdfQueryCellInfo'] = pdfQueryCellInfo$$1;
|
|
23535
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = pdfHeaderQueryCellInfo$$1;
|
|
23515
23536
|
this.chartSettings['load'] = chartLoadEvent;
|
|
23516
23537
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
23517
23538
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
@@ -23692,24 +23713,37 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23692
23713
|
this.displayOption.primary : newProp.displayOption.view);
|
|
23693
23714
|
if (this.showGroupingBar || this.showFieldList) {
|
|
23694
23715
|
if (this.showFieldList && this.pivotFieldListModule) {
|
|
23716
|
+
this.pivotFieldListModule.destroyEngine = true;
|
|
23695
23717
|
this.pivotFieldListModule.destroy();
|
|
23718
|
+
this.pivotFieldListModule.destroyEngine = false;
|
|
23696
23719
|
}
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23720
|
+
/**
|
|
23721
|
+
* Below lines are affected the grouping bar render between table and chart.
|
|
23722
|
+
* In "Init subcomponent" function, grouping bar rendered properly for table and chart view.
|
|
23723
|
+
* So, The below lines are commanded out.
|
|
23724
|
+
*/
|
|
23725
|
+
// if (this.showGroupingBar && this.groupingBarModule) {
|
|
23726
|
+
// this.groupingBarModule.destroy();
|
|
23727
|
+
// }
|
|
23700
23728
|
this.notify(initSubComponent, this);
|
|
23701
23729
|
}
|
|
23702
23730
|
if (!this.grid && newProp.displayOption.view !== 'Chart') {
|
|
23703
23731
|
this.renderEmptyGrid();
|
|
23704
23732
|
if (newProp.displayOption.view === 'Table') {
|
|
23705
23733
|
if (this.pivotChartModule) {
|
|
23734
|
+
this.destroyEngine = true;
|
|
23706
23735
|
this.pivotChartModule.destroy();
|
|
23736
|
+
this.destroyEngine = false;
|
|
23707
23737
|
this.chart = undefined;
|
|
23708
23738
|
this.pivotChartModule = undefined;
|
|
23709
23739
|
}
|
|
23710
23740
|
}
|
|
23711
23741
|
}
|
|
23712
23742
|
else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
|
|
23743
|
+
if (this.grid) {
|
|
23744
|
+
this.grid.destroy();
|
|
23745
|
+
this.grid = undefined;
|
|
23746
|
+
}
|
|
23713
23747
|
this.pivotChartModule = new PivotChart();
|
|
23714
23748
|
}
|
|
23715
23749
|
}
|
|
@@ -24714,12 +24748,12 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24714
24748
|
var hasField = false;
|
|
24715
24749
|
if (cell && this.dataType === 'olap') {
|
|
24716
24750
|
var measureName = cell.actualText;
|
|
24717
|
-
if (!isNullOrUndefined(measureName) && !this.olapEngineModule.fieldList[measureName]) {
|
|
24751
|
+
if (!isNullOrUndefined(measureName) && this.olapEngineModule.fieldList && !this.olapEngineModule.fieldList[measureName]) {
|
|
24718
24752
|
var tupleInfo = this.olapEngineModule.tupRowInfo;
|
|
24719
24753
|
measureName = cell.rowOrdinal > -1 && tupleInfo.length > 0 && tupleInfo[cell.rowOrdinal] &&
|
|
24720
24754
|
!isNullOrUndefined(tupleInfo[cell.rowOrdinal].measureName) ? tupleInfo[cell.rowOrdinal].measureName : measureName;
|
|
24721
24755
|
}
|
|
24722
|
-
if (this.olapEngineModule.fieldList[measureName]) {
|
|
24756
|
+
if (this.olapEngineModule.fieldList && this.olapEngineModule.fieldList[measureName]) {
|
|
24723
24757
|
var field = this.olapEngineModule.fieldList[measureName];
|
|
24724
24758
|
aggregateType = field.isCalculatedField ? field.type : field.aggregateType;
|
|
24725
24759
|
caption = (this.olapEngineModule.dataFields[measureName] &&
|
|
@@ -24729,7 +24763,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24729
24763
|
}
|
|
24730
24764
|
}
|
|
24731
24765
|
else {
|
|
24732
|
-
if (cell && this.engineModule.fieldList[cell.actualText]) {
|
|
24766
|
+
if (cell && this.engineModule.fieldList && this.engineModule.fieldList[cell.actualText]) {
|
|
24733
24767
|
var field = this.engineModule.fieldList[cell.actualText];
|
|
24734
24768
|
aggregateType = field.aggregateType;
|
|
24735
24769
|
if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||
|
|
@@ -27054,6 +27088,13 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27054
27088
|
for (var cCnt = 0; cCnt < colLen; cCnt++) {
|
|
27055
27089
|
if (pivotValues[rCnt][cCnt]) {
|
|
27056
27090
|
var pivotCell = pivotValues[rCnt][cCnt];
|
|
27091
|
+
var field = (this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
27092
|
+
this.parent.dataType === 'olap' && pivotCell.rowOrdinal &&
|
|
27093
|
+
this.engine.tupRowInfo[pivotCell.rowOrdinal]) ?
|
|
27094
|
+
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
27095
|
+
pivotCell.actualText;
|
|
27096
|
+
var styles = (pivotCell.axis == 'row') ? { hAlign: 'Left', bold: true, wrapText: true } : { numberFormat: formatList[field], bold: false, wrapText: true };
|
|
27097
|
+
var headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
|
|
27057
27098
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27058
27099
|
var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
27059
27100
|
var isgetValuesHeader = ((this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row')
|
|
@@ -27073,33 +27114,21 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27073
27114
|
index: cCnt + 1, value: cellValue,
|
|
27074
27115
|
colSpan: pivotCell.colSpan, rowSpan: (pivotCell.rowSpan === -1 ? 1 : pivotCell.rowSpan),
|
|
27075
27116
|
});
|
|
27117
|
+
var lastCell = cells[cells.length - 1];
|
|
27076
27118
|
if (pivotCell.axis === 'value') {
|
|
27077
27119
|
if (isNaN(pivotCell.value) || pivotCell.formattedText === '' ||
|
|
27078
27120
|
pivotCell.formattedText === undefined || isNullOrUndefined(pivotCell.value)) {
|
|
27079
|
-
|
|
27080
|
-
}
|
|
27081
|
-
var field = (this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
27082
|
-
this.parent.dataType === 'olap' && pivotCell.rowOrdinal &&
|
|
27083
|
-
this.engine.tupRowInfo[pivotCell.rowOrdinal]) ?
|
|
27084
|
-
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
27085
|
-
pivotCell.actualText;
|
|
27086
|
-
cells[cells.length - 1].style = !isNullOrUndefined(cells[cells.length - 1].value) ? { numberFormat: formatList[field], bold: false, wrapText: true } : { bold: false, wrapText: true };
|
|
27087
|
-
if (pivotCell.style) {
|
|
27088
|
-
cells[cells.length - 1].style.backColor = pivotCell.style.backgroundColor;
|
|
27089
|
-
cells[cells.length - 1].style.fontColor = pivotCell.style.color;
|
|
27090
|
-
cells[cells.length - 1].style.fontName = pivotCell.style.fontFamily;
|
|
27091
|
-
cells[cells.length - 1].style.fontSize = Number(pivotCell.style.fontSize.split('px')[0]);
|
|
27121
|
+
lastCell.value = type === 'Excel' ? null : '';
|
|
27092
27122
|
}
|
|
27123
|
+
lastCell.style = !isNullOrUndefined(lastCell.value) ? styles : { bold: false, wrapText: true };
|
|
27093
27124
|
}
|
|
27094
27125
|
else {
|
|
27095
|
-
|
|
27096
|
-
bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0
|
|
27097
|
-
};
|
|
27126
|
+
lastCell.style = headerStyle;
|
|
27098
27127
|
if (pivotCell.axis === 'row' && cCnt === 0) {
|
|
27099
|
-
|
|
27128
|
+
lastCell.style = styles;
|
|
27100
27129
|
if (this.parent.dataType === 'olap') {
|
|
27101
27130
|
var indent = this.parent.renderModule.indentCollection[rCnt];
|
|
27102
|
-
|
|
27131
|
+
lastCell.style.indent = indent * 2;
|
|
27103
27132
|
maxLevel = maxLevel > indent ? maxLevel : indent;
|
|
27104
27133
|
}
|
|
27105
27134
|
else {
|
|
@@ -27109,19 +27138,55 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27109
27138
|
var levelPosition = levelName.split(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter).length -
|
|
27110
27139
|
(memberPos ? memberPos - 1 : memberPos);
|
|
27111
27140
|
var level = levelPosition ? (levelPosition - 1) : 0;
|
|
27112
|
-
|
|
27141
|
+
lastCell.style.indent = level * 2;
|
|
27113
27142
|
maxLevel = level > maxLevel ? level : maxLevel;
|
|
27114
27143
|
}
|
|
27115
27144
|
}
|
|
27116
27145
|
}
|
|
27117
|
-
|
|
27146
|
+
if (pivotCell.style || lastCell.style.backColor || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
27147
|
+
lastCell.style.backColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
|
|
27148
|
+
lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
|
|
27149
|
+
lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
|
|
27150
|
+
lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
|
|
27151
|
+
}
|
|
27152
|
+
lastCell.style.borders = { color: '#000000', lineStyle: 'Thin' };
|
|
27153
|
+
var excelHeaderQueryCellInfoArgs = void 0;
|
|
27154
|
+
var excelQueryCellInfoArgs = void 0;
|
|
27155
|
+
if (pivotCell.axis === 'column') {
|
|
27156
|
+
excelHeaderQueryCellInfoArgs = {
|
|
27157
|
+
style: headerStyle,
|
|
27158
|
+
cell: pivotCell,
|
|
27159
|
+
};
|
|
27160
|
+
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
27161
|
+
}
|
|
27162
|
+
else {
|
|
27163
|
+
excelQueryCellInfoArgs = {
|
|
27164
|
+
style: styles,
|
|
27165
|
+
cell: pivotCell,
|
|
27166
|
+
column: undefined,
|
|
27167
|
+
data: pivotValues,
|
|
27168
|
+
value: cellValue
|
|
27169
|
+
};
|
|
27170
|
+
this.parent.trigger(excelQueryCellInfo, excelQueryCellInfoArgs);
|
|
27171
|
+
}
|
|
27172
|
+
lastCell.value = (pivotCell.axis == 'column') ? excelHeaderQueryCellInfoArgs.cell.formattedText : excelQueryCellInfoArgs.value;
|
|
27173
|
+
lastCell.style = (pivotCell.axis == 'column') ? excelHeaderQueryCellInfoArgs.style : excelQueryCellInfoArgs.style;
|
|
27118
27174
|
}
|
|
27119
27175
|
}
|
|
27120
27176
|
cCnt = cCnt + (pivotCell.colSpan ? (pivotCell.colSpan - 1) : 0);
|
|
27121
27177
|
}
|
|
27122
27178
|
else {
|
|
27179
|
+
var pivotCell = { formattedText: "" };
|
|
27180
|
+
var excelHeaderQueryCellInfoArgs = void 0;
|
|
27181
|
+
if (pivotCell) {
|
|
27182
|
+
excelHeaderQueryCellInfoArgs = {
|
|
27183
|
+
style: undefined,
|
|
27184
|
+
cell: pivotCell,
|
|
27185
|
+
};
|
|
27186
|
+
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
27187
|
+
}
|
|
27123
27188
|
cells.push({
|
|
27124
|
-
index: cCnt + 1,
|
|
27189
|
+
index: cCnt + 1, colSpan: 1, rowSpan: 1, value: pivotCell.formattedText, style: excelHeaderQueryCellInfoArgs.style
|
|
27125
27190
|
});
|
|
27126
27191
|
}
|
|
27127
27192
|
}
|
|
@@ -27389,12 +27454,12 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27389
27454
|
var isValueCell = false;
|
|
27390
27455
|
if (pivotValues[rCnt][cCnt]) {
|
|
27391
27456
|
var pivotCell = pivotValues[rCnt][cCnt];
|
|
27457
|
+
var cellValue = pivotCell.formattedText;
|
|
27458
|
+
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
27459
|
+
cellValue = pivotCell.type === 'grand sum' ? (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'grandTotal') :
|
|
27460
|
+
this.parent.localeObj.getConstant('grandTotal') : (pivotCell.type === 'sum' ?
|
|
27461
|
+
cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total')) : cellValue);
|
|
27392
27462
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27393
|
-
var cellValue = pivotCell.formattedText;
|
|
27394
|
-
cellValue = (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
27395
|
-
cellValue = pivotCell.type === 'grand sum' ? (this.parent.dataSourceSettings.rows.length === 0 || this.parent.dataSourceSettings.columns.length === 0) ? this.parent.getValuesHeader(pivotCell, 'grandTotal') :
|
|
27396
|
-
this.parent.localeObj.getConstant('grandTotal') : (pivotCell.type === 'sum' ?
|
|
27397
|
-
cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total')) : cellValue);
|
|
27398
27463
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27399
27464
|
pdfGridRow.cells.getCell(localCnt).columnSpan = pivotCell.colSpan ?
|
|
27400
27465
|
(pageSize - localCnt < pivotCell.colSpan ? pageSize - localCnt : pivotCell.colSpan) : 1;
|
|
@@ -27417,11 +27482,31 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27417
27482
|
pdfGridRow = this.applyStyle(pdfGridRow, pivotCell, localCnt);
|
|
27418
27483
|
}
|
|
27419
27484
|
var args = {
|
|
27420
|
-
style: (pivotCell && pivotCell.isSum) ? { bold: true } : undefined,
|
|
27485
|
+
style: (pivotCell.axis == "column") ? { bold: false } : ((pivotCell && pivotCell.isSum) || (pivotCell.axis == "row")) ? { bold: true } : undefined,
|
|
27421
27486
|
pivotCell: pivotCell,
|
|
27422
27487
|
cell: pdfGridRow.cells.getCell(localCnt)
|
|
27423
27488
|
};
|
|
27424
27489
|
this.parent.trigger(onPdfCellRender, args);
|
|
27490
|
+
if (pivotCell.axis == "column") {
|
|
27491
|
+
args = {
|
|
27492
|
+
style: args.style,
|
|
27493
|
+
cell: args.cell,
|
|
27494
|
+
gridCell: args.pivotCell
|
|
27495
|
+
};
|
|
27496
|
+
this.parent.trigger(pdfHeaderQueryCellInfo, args);
|
|
27497
|
+
pdfGridRow.cells.getCell(localCnt).value = args.gridCell.formattedText ? args.gridCell.formattedText : cellValue;
|
|
27498
|
+
}
|
|
27499
|
+
else {
|
|
27500
|
+
args = {
|
|
27501
|
+
style: args.style,
|
|
27502
|
+
cell: args.cell,
|
|
27503
|
+
column: undefined,
|
|
27504
|
+
data: args.pivotCell,
|
|
27505
|
+
value: cellValue,
|
|
27506
|
+
};
|
|
27507
|
+
this.parent.trigger(pdfQueryCellInfo, args);
|
|
27508
|
+
pdfGridRow.cells.getCell(localCnt).value = args.value ? args.value : cellValue;
|
|
27509
|
+
}
|
|
27425
27510
|
if (args.style) {
|
|
27426
27511
|
this.processCellStyle(pdfGridRow.cells.getCell(localCnt), args);
|
|
27427
27512
|
}
|
|
@@ -27433,6 +27518,15 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
27433
27518
|
cell: pdfGridRow.cells.getCell(localCnt)
|
|
27434
27519
|
};
|
|
27435
27520
|
this.parent.trigger(onPdfCellRender, args);
|
|
27521
|
+
var pivotCell = { formattedText: "" };
|
|
27522
|
+
if (pivotCell.axis == "column") {
|
|
27523
|
+
args = {
|
|
27524
|
+
style: args.style,
|
|
27525
|
+
cell: args.cell,
|
|
27526
|
+
gridCell: args.pivotCell
|
|
27527
|
+
};
|
|
27528
|
+
this.parent.trigger(pdfHeaderQueryCellInfo, args);
|
|
27529
|
+
}
|
|
27436
27530
|
if (args.style) {
|
|
27437
27531
|
this.processCellStyle(pdfGridRow.cells.getCell(localCnt), args);
|
|
27438
27532
|
}
|
|
@@ -28678,6 +28772,9 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28678
28772
|
};
|
|
28679
28773
|
TreeViewRenderer.prototype.nodeStateChange = function (args) {
|
|
28680
28774
|
var _this = this;
|
|
28775
|
+
if (!args.isInteracted) {
|
|
28776
|
+
return;
|
|
28777
|
+
}
|
|
28681
28778
|
var node = closest(args.node, '.' + TEXT_CONTENT_CLASS);
|
|
28682
28779
|
if (!isNullOrUndefined(node)) {
|
|
28683
28780
|
var li_1 = closest(node, 'li');
|
|
@@ -28709,7 +28806,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28709
28806
|
_this.updateNodeStateChange(id_1, args, selectedNode_1);
|
|
28710
28807
|
}
|
|
28711
28808
|
else {
|
|
28712
|
-
_this.updateCheckState(selectedNode_1);
|
|
28809
|
+
_this.updateCheckState(selectedNode_1, args.action);
|
|
28713
28810
|
}
|
|
28714
28811
|
});
|
|
28715
28812
|
}
|
|
@@ -28736,7 +28833,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28736
28833
|
_this.updateNodeStateChange(id_1, args, selectedNode_1);
|
|
28737
28834
|
}
|
|
28738
28835
|
else {
|
|
28739
|
-
_this.updateCheckState(selectedNode_1);
|
|
28836
|
+
_this.updateCheckState(selectedNode_1, args.action);
|
|
28740
28837
|
}
|
|
28741
28838
|
});
|
|
28742
28839
|
}
|
|
@@ -28793,19 +28890,17 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28793
28890
|
break;
|
|
28794
28891
|
}
|
|
28795
28892
|
};
|
|
28796
|
-
TreeViewRenderer.prototype.updateCheckState = function (selectedNode) {
|
|
28893
|
+
TreeViewRenderer.prototype.updateCheckState = function (selectedNode, action) {
|
|
28797
28894
|
var chkState = this.fieldTable.element.querySelectorAll('.e-checkbox-wrapper');
|
|
28798
28895
|
var innerText = this.fieldTable.element.querySelectorAll('.e-list-text');
|
|
28799
28896
|
var checkClass = this.fieldTable.element.querySelectorAll('.e-frame');
|
|
28800
28897
|
for (var i = 0; i < chkState.length; i++) {
|
|
28801
28898
|
if (selectedNode.caption === innerText[i].textContent) {
|
|
28802
|
-
if (
|
|
28803
|
-
|
|
28804
|
-
checkClass[i].classList.add(NODE_CHECK_CLASS);
|
|
28899
|
+
if (action === 'check') {
|
|
28900
|
+
this.fieldTable.uncheckAll([selectedNode['id']]);
|
|
28805
28901
|
}
|
|
28806
28902
|
else {
|
|
28807
|
-
|
|
28808
|
-
checkClass[i].classList.remove(NODE_CHECK_CLASS);
|
|
28903
|
+
this.fieldTable.checkAll([selectedNode['id']]);
|
|
28809
28904
|
}
|
|
28810
28905
|
}
|
|
28811
28906
|
}
|
|
@@ -28856,6 +28951,9 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28856
28951
|
};
|
|
28857
28952
|
TreeViewRenderer.prototype.addNode = function (args) {
|
|
28858
28953
|
var _this = this;
|
|
28954
|
+
if (!args.isInteracted) {
|
|
28955
|
+
return;
|
|
28956
|
+
}
|
|
28859
28957
|
/* eslint-disable */
|
|
28860
28958
|
var fieldList = this.parent.pivotFieldList;
|
|
28861
28959
|
var selectedNode = fieldList[args.data[0].id.toString()];
|
|
@@ -28863,17 +28961,18 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28863
28961
|
var fieldInfo = PivotUtil.getFieldInfo(selectedNode.id.toString(), this.parent);
|
|
28864
28962
|
var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
|
|
28865
28963
|
if (args.action === 'check') {
|
|
28964
|
+
var axis = ['filters', 'columns', 'rows', 'values'];
|
|
28866
28965
|
var eventdrop = {
|
|
28867
28966
|
fieldName: fieldInfo.fieldName, dropField: fieldInfo.fieldItem,
|
|
28868
28967
|
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings),
|
|
28869
|
-
dropAxis:
|
|
28968
|
+
dropAxis: axis[this.parent.dialogRenderer.adaptiveElement.selectedItem], draggedAxis: 'fieldlist', cancel: false
|
|
28870
28969
|
};
|
|
28871
28970
|
control.trigger(fieldDrop, eventdrop, function (observedArgs) {
|
|
28872
28971
|
if (!observedArgs.cancel) {
|
|
28873
28972
|
_this.selectedNodes.push(selectedNode.id.toString());
|
|
28874
28973
|
}
|
|
28875
28974
|
else {
|
|
28876
|
-
_this.updateCheckState(selectedNode);
|
|
28975
|
+
_this.updateCheckState(selectedNode, args.action);
|
|
28877
28976
|
}
|
|
28878
28977
|
});
|
|
28879
28978
|
}
|
|
@@ -28894,7 +28993,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28894
28993
|
}
|
|
28895
28994
|
}
|
|
28896
28995
|
else {
|
|
28897
|
-
_this.updateCheckState(selectedNode);
|
|
28996
|
+
_this.updateCheckState(selectedNode, args.action);
|
|
28898
28997
|
}
|
|
28899
28998
|
});
|
|
28900
28999
|
}
|
|
@@ -29294,7 +29393,7 @@ var AxisTableRenderer = /** @__PURE__ @class */ (function () {
|
|
|
29294
29393
|
addClass([element[element.length - 1].querySelector('.' + DROP_INDICATOR_CLASS + '-last')], INDICATOR_HOVER_CLASS);
|
|
29295
29394
|
}
|
|
29296
29395
|
}
|
|
29297
|
-
else if (e.type === 'mouseleave') {
|
|
29396
|
+
else if (!this.parent.isDragging || (!e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseleave')) {
|
|
29298
29397
|
removeClass([].slice.call(parentElement.querySelectorAll('.' + DROP_INDICATOR_CLASS)), INDICATOR_HOVER_CLASS);
|
|
29299
29398
|
removeClass([].slice.call(parentElement.querySelectorAll('.' + DROP_INDICATOR_CLASS + '-last')), INDICATOR_HOVER_CLASS);
|
|
29300
29399
|
}
|
|
@@ -31001,6 +31100,8 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31001
31100
|
_this.remoteData = [];
|
|
31002
31101
|
/** @hidden */
|
|
31003
31102
|
_this.actionObj = {};
|
|
31103
|
+
/** @hidden */
|
|
31104
|
+
_this.destroyEngine = false;
|
|
31004
31105
|
return _this;
|
|
31005
31106
|
}
|
|
31006
31107
|
/**
|
|
@@ -32090,7 +32191,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32090
32191
|
*/
|
|
32091
32192
|
PivotFieldList.prototype.destroy = function () {
|
|
32092
32193
|
this.unWireEvent();
|
|
32093
|
-
if (this.engineModule) {
|
|
32194
|
+
if (this.engineModule && !this.destroyEngine) {
|
|
32094
32195
|
this.engineModule.fieldList = {};
|
|
32095
32196
|
this.engineModule.rMembers = null;
|
|
32096
32197
|
this.engineModule.cMembers = null;
|
|
@@ -32098,7 +32199,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32098
32199
|
this.engineModule.indexMatrix = null;
|
|
32099
32200
|
this.engineModule = {};
|
|
32100
32201
|
}
|
|
32101
|
-
if (this.olapEngineModule) {
|
|
32202
|
+
if (this.olapEngineModule && !this.destroyEngine) {
|
|
32102
32203
|
this.olapEngineModule.fieldList = {};
|
|
32103
32204
|
this.olapEngineModule = {};
|
|
32104
32205
|
}
|
|
@@ -35090,7 +35191,7 @@ var GroupingBar = /** @__PURE__ @class */ (function () {
|
|
|
35090
35191
|
};
|
|
35091
35192
|
GroupingBar.prototype.dropIndicatorUpdate = function (e) {
|
|
35092
35193
|
if ((this.parent.isDragging && e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseover') ||
|
|
35093
|
-
e.type === 'mouseleave') {
|
|
35194
|
+
(!this.parent.isDragging || (!e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseleave'))) {
|
|
35094
35195
|
removeClass([].slice.call(this.parent.element.querySelectorAll('.' + DROP_INDICATOR_CLASS)), INDICATOR_HOVER_CLASS);
|
|
35095
35196
|
removeClass([].slice.call(this.parent.element.querySelectorAll('.' + DROP_INDICATOR_CLASS + '-last')), INDICATOR_HOVER_CLASS);
|
|
35096
35197
|
}
|
|
@@ -36116,10 +36217,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36116
36217
|
}
|
|
36117
36218
|
};
|
|
36118
36219
|
Toolbar$$1.prototype.actionClick = function (args) {
|
|
36119
|
-
var actionName = (args.item.id ==
|
|
36120
|
-
: (args.item.id ==
|
|
36121
|
-
: (args.item.id ==
|
|
36122
|
-
: (args.item.id ==
|
|
36220
|
+
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
|
|
36221
|
+
: (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
|
|
36222
|
+
: (args.item.id == this.parent.element.id + 'formatting') ? openConditionalFormatting : (args.item.id == this.parent.element.id + 'numberFormatting') ? openNumberFormatting
|
|
36223
|
+
: (args.item.id == this.parent.element.id + 'mdxQuery') ? MdxQuery : (args.item.id == this.parent.element.id + 'fieldlist') ? showFieldList : '';
|
|
36123
36224
|
this.parent.actionObj.actionName = actionName;
|
|
36124
36225
|
if (this.parent.actionBeginMethod()) {
|
|
36125
36226
|
return;
|
|
@@ -36814,6 +36915,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36814
36915
|
}
|
|
36815
36916
|
};
|
|
36816
36917
|
Toolbar$$1.prototype.multipleAxesCheckbox = function (args) {
|
|
36918
|
+
var _this_1 = this;
|
|
36817
36919
|
if (this.parent.element.id + '_' + 'multipleAxes' === args.element.id) {
|
|
36818
36920
|
var inputCheckbox = createElement('input', {
|
|
36819
36921
|
id: this.parent.element.id + '_' + 'checkBox'
|
|
@@ -36824,6 +36926,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36824
36926
|
label: this.parent.localeObj.getConstant('multipleAxes'),
|
|
36825
36927
|
cssClass: 'e-multipleAxes',
|
|
36826
36928
|
checked: this.parent.chartSettings.enableMultipleAxis,
|
|
36929
|
+
change: function (args) {
|
|
36930
|
+
document.getElementById(_this_1.parent.element.id + '_' + 'multipleAxes').click();
|
|
36931
|
+
},
|
|
36827
36932
|
enableRtl: this.parent.enableRtl,
|
|
36828
36933
|
locale: this.parent.locale
|
|
36829
36934
|
});
|
|
@@ -36852,6 +36957,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36852
36957
|
label: this.parent.localeObj.getConstant('showLegend'),
|
|
36853
36958
|
checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
|
|
36854
36959
|
cssClass: 'e-showLegend',
|
|
36960
|
+
change: function (args) {
|
|
36961
|
+
document.getElementById(_this_1.parent.element.id + '_' + 'showLegend').click();
|
|
36962
|
+
},
|
|
36855
36963
|
enableRtl: this.parent.enableRtl,
|
|
36856
36964
|
locale: this.parent.locale
|
|
36857
36965
|
});
|
|
@@ -36961,14 +37069,14 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36961
37069
|
var _this_1 = this;
|
|
36962
37070
|
var exportArgs = {};
|
|
36963
37071
|
var type;
|
|
36964
|
-
var actionName = (args.item.id ==
|
|
36965
|
-
: (args.item.id == "
|
|
36966
|
-
: (args.item.id == "
|
|
36967
|
-
: (args.item.id == "
|
|
36968
|
-
: (args.item.id == "
|
|
36969
|
-
: (args.item.id == "
|
|
36970
|
-
: (args.item.id == "
|
|
36971
|
-
: (args.item.id == "
|
|
37072
|
+
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
|
|
37073
|
+
: (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
|
|
37074
|
+
: (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
|
|
37075
|
+
: (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
|
|
37076
|
+
: (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
|
|
37077
|
+
: (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
|
|
37078
|
+
: (args.item.id == this.parent.element.id + "grandtotalcolumn") ? grandTotalsColumn : (args.item.id == this.parent.element.id + "grandtotal") ? showGrandTotals
|
|
37079
|
+
: (args.item.id == this.parent.element.id + "numberFormattingMenu") ? numberFormattingMenu : (args.item.id == this.parent.element.id + "conditionalFormattingMenu") ? conditionalFormattingMenu : '';
|
|
36972
37080
|
this.parent.actionObj.actionName = actionName;
|
|
36973
37081
|
if (this.parent.actionBeginMethod()) {
|
|
36974
37082
|
return;
|