@syncfusion/ej2-pivotview 19.4.43 → 19.4.52
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 +30 -4
- 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 +80 -37
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +81 -37
- 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 +7 -0
- 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 +4 -5
- package/src/pivotview/base/pivotview.d.ts +2 -0
- package/src/pivotview/base/pivotview.js +37 -13
|
@@ -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.
|
|
@@ -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;
|
|
@@ -23117,13 +23126,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23117
23126
|
this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
|
|
23118
23127
|
this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
|
|
23119
23128
|
this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
|
|
23120
|
-
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
|
|
23121
|
-
|
|
23122
|
-
this.
|
|
23123
|
-
this.
|
|
23124
|
-
this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
|
|
23125
|
-
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
|
|
23126
|
-
this.gridSettings.excelQueryCellInfo.bind(this) : undefined;
|
|
23129
|
+
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ? this.gridSettings.pdfHeaderQueryCellInfo : undefined;
|
|
23130
|
+
this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo : undefined;
|
|
23131
|
+
this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ? this.gridSettings.excelHeaderQueryCellInfo : undefined;
|
|
23132
|
+
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ? this.gridSettings.excelQueryCellInfo : undefined;
|
|
23127
23133
|
this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
|
|
23128
23134
|
this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
|
|
23129
23135
|
this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
|
|
@@ -23493,6 +23499,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23493
23499
|
var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
23494
23500
|
/* eslint-disable */
|
|
23495
23501
|
var columnRender = this.gridSettings['columnRender'];
|
|
23502
|
+
var excelQueryCellInfo$$1 = this.gridSettings['excelQueryCellInfo'];
|
|
23503
|
+
var excelHeaderQueryCellInfo$$1 = this.gridSettings['excelHeaderQueryCellInfo'];
|
|
23504
|
+
var pdfQueryCellInfo$$1 = this.gridSettings['pdfQueryCellInfo'];
|
|
23505
|
+
var pdfHeaderQueryCellInfo$$1 = this.gridSettings['pdfHeaderQueryCellInfo'];
|
|
23496
23506
|
var chartLoadEvent = this.chartSettings['load'];
|
|
23497
23507
|
var chartLoadedEvent = this.chartSettings['loaded'];
|
|
23498
23508
|
var chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -23502,6 +23512,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23502
23512
|
var chartPointClickEvent = this.chartSettings['pointClick'];
|
|
23503
23513
|
var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
23504
23514
|
this.gridSettings['columnRender'] = undefined;
|
|
23515
|
+
this.gridSettings['excelQueryCellInfo'] = undefined;
|
|
23516
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = undefined;
|
|
23517
|
+
this.gridSettings['pdfQueryCellInfo'] = undefined;
|
|
23518
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = undefined;
|
|
23505
23519
|
this.chartSettings['tooltipRender'] = undefined;
|
|
23506
23520
|
this.chartSettings['load'] = undefined;
|
|
23507
23521
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -23512,6 +23526,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23512
23526
|
this.chartSettings['pointClick'] = undefined;
|
|
23513
23527
|
var persistData = this.addOnPersist(keyEntity);
|
|
23514
23528
|
this.gridSettings['columnRender'] = columnRender;
|
|
23529
|
+
this.gridSettings['excelQueryCellInfo'] = excelQueryCellInfo$$1;
|
|
23530
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = excelHeaderQueryCellInfo$$1;
|
|
23531
|
+
this.gridSettings['pdfQueryCellInfo'] = pdfQueryCellInfo$$1;
|
|
23532
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = pdfHeaderQueryCellInfo$$1;
|
|
23515
23533
|
this.chartSettings['load'] = chartLoadEvent;
|
|
23516
23534
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
23517
23535
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
@@ -23692,24 +23710,37 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23692
23710
|
this.displayOption.primary : newProp.displayOption.view);
|
|
23693
23711
|
if (this.showGroupingBar || this.showFieldList) {
|
|
23694
23712
|
if (this.showFieldList && this.pivotFieldListModule) {
|
|
23713
|
+
this.pivotFieldListModule.destroyEngine = true;
|
|
23695
23714
|
this.pivotFieldListModule.destroy();
|
|
23715
|
+
this.pivotFieldListModule.destroyEngine = false;
|
|
23696
23716
|
}
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23717
|
+
/**
|
|
23718
|
+
* Below lines are affected the grouping bar render between table and chart.
|
|
23719
|
+
* In "Init subcomponent" function, grouping bar rendered properly for table and chart view.
|
|
23720
|
+
* So, The below lines are commanded out.
|
|
23721
|
+
*/
|
|
23722
|
+
// if (this.showGroupingBar && this.groupingBarModule) {
|
|
23723
|
+
// this.groupingBarModule.destroy();
|
|
23724
|
+
// }
|
|
23700
23725
|
this.notify(initSubComponent, this);
|
|
23701
23726
|
}
|
|
23702
23727
|
if (!this.grid && newProp.displayOption.view !== 'Chart') {
|
|
23703
23728
|
this.renderEmptyGrid();
|
|
23704
23729
|
if (newProp.displayOption.view === 'Table') {
|
|
23705
23730
|
if (this.pivotChartModule) {
|
|
23731
|
+
this.destroyEngine = true;
|
|
23706
23732
|
this.pivotChartModule.destroy();
|
|
23733
|
+
this.destroyEngine = false;
|
|
23707
23734
|
this.chart = undefined;
|
|
23708
23735
|
this.pivotChartModule = undefined;
|
|
23709
23736
|
}
|
|
23710
23737
|
}
|
|
23711
23738
|
}
|
|
23712
23739
|
else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
|
|
23740
|
+
if (this.grid) {
|
|
23741
|
+
this.grid.destroy();
|
|
23742
|
+
this.grid = undefined;
|
|
23743
|
+
}
|
|
23713
23744
|
this.pivotChartModule = new PivotChart();
|
|
23714
23745
|
}
|
|
23715
23746
|
}
|
|
@@ -24714,12 +24745,12 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24714
24745
|
var hasField = false;
|
|
24715
24746
|
if (cell && this.dataType === 'olap') {
|
|
24716
24747
|
var measureName = cell.actualText;
|
|
24717
|
-
if (!isNullOrUndefined(measureName) && !this.olapEngineModule.fieldList[measureName]) {
|
|
24748
|
+
if (!isNullOrUndefined(measureName) && this.olapEngineModule.fieldList && !this.olapEngineModule.fieldList[measureName]) {
|
|
24718
24749
|
var tupleInfo = this.olapEngineModule.tupRowInfo;
|
|
24719
24750
|
measureName = cell.rowOrdinal > -1 && tupleInfo.length > 0 && tupleInfo[cell.rowOrdinal] &&
|
|
24720
24751
|
!isNullOrUndefined(tupleInfo[cell.rowOrdinal].measureName) ? tupleInfo[cell.rowOrdinal].measureName : measureName;
|
|
24721
24752
|
}
|
|
24722
|
-
if (this.olapEngineModule.fieldList[measureName]) {
|
|
24753
|
+
if (this.olapEngineModule.fieldList && this.olapEngineModule.fieldList[measureName]) {
|
|
24723
24754
|
var field = this.olapEngineModule.fieldList[measureName];
|
|
24724
24755
|
aggregateType = field.isCalculatedField ? field.type : field.aggregateType;
|
|
24725
24756
|
caption = (this.olapEngineModule.dataFields[measureName] &&
|
|
@@ -24729,7 +24760,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24729
24760
|
}
|
|
24730
24761
|
}
|
|
24731
24762
|
else {
|
|
24732
|
-
if (cell && this.engineModule.fieldList[cell.actualText]) {
|
|
24763
|
+
if (cell && this.engineModule.fieldList && this.engineModule.fieldList[cell.actualText]) {
|
|
24733
24764
|
var field = this.engineModule.fieldList[cell.actualText];
|
|
24734
24765
|
aggregateType = field.aggregateType;
|
|
24735
24766
|
if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||
|
|
@@ -27060,7 +27091,6 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27060
27091
|
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
27061
27092
|
pivotCell.actualText;
|
|
27062
27093
|
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
27094
|
var headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
|
|
27065
27095
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
27066
27096
|
var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
@@ -27110,8 +27140,8 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27110
27140
|
}
|
|
27111
27141
|
}
|
|
27112
27142
|
}
|
|
27113
|
-
if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
27114
|
-
lastCell.style.
|
|
27143
|
+
if (pivotCell.style || lastCell.style.backColor || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
27144
|
+
lastCell.style.backColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
|
|
27115
27145
|
lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
|
|
27116
27146
|
lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
|
|
27117
27147
|
lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
|
|
@@ -27122,14 +27152,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27122
27152
|
if (pivotCell.axis === 'column') {
|
|
27123
27153
|
excelHeaderQueryCellInfoArgs = {
|
|
27124
27154
|
style: headerStyle,
|
|
27125
|
-
cell:
|
|
27155
|
+
cell: pivotCell,
|
|
27126
27156
|
};
|
|
27127
27157
|
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
27128
27158
|
}
|
|
27129
27159
|
else {
|
|
27130
27160
|
excelQueryCellInfoArgs = {
|
|
27131
27161
|
style: styles,
|
|
27132
|
-
cell:
|
|
27162
|
+
cell: pivotCell,
|
|
27133
27163
|
column: undefined,
|
|
27134
27164
|
data: pivotValues,
|
|
27135
27165
|
value: cellValue
|
|
@@ -28739,6 +28769,9 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28739
28769
|
};
|
|
28740
28770
|
TreeViewRenderer.prototype.nodeStateChange = function (args) {
|
|
28741
28771
|
var _this = this;
|
|
28772
|
+
if (!args.isInteracted) {
|
|
28773
|
+
return;
|
|
28774
|
+
}
|
|
28742
28775
|
var node = closest(args.node, '.' + TEXT_CONTENT_CLASS);
|
|
28743
28776
|
if (!isNullOrUndefined(node)) {
|
|
28744
28777
|
var li_1 = closest(node, 'li');
|
|
@@ -28770,7 +28803,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28770
28803
|
_this.updateNodeStateChange(id_1, args, selectedNode_1);
|
|
28771
28804
|
}
|
|
28772
28805
|
else {
|
|
28773
|
-
_this.updateCheckState(selectedNode_1);
|
|
28806
|
+
_this.updateCheckState(selectedNode_1, args.action);
|
|
28774
28807
|
}
|
|
28775
28808
|
});
|
|
28776
28809
|
}
|
|
@@ -28797,7 +28830,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28797
28830
|
_this.updateNodeStateChange(id_1, args, selectedNode_1);
|
|
28798
28831
|
}
|
|
28799
28832
|
else {
|
|
28800
|
-
_this.updateCheckState(selectedNode_1);
|
|
28833
|
+
_this.updateCheckState(selectedNode_1, args.action);
|
|
28801
28834
|
}
|
|
28802
28835
|
});
|
|
28803
28836
|
}
|
|
@@ -28854,19 +28887,17 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28854
28887
|
break;
|
|
28855
28888
|
}
|
|
28856
28889
|
};
|
|
28857
|
-
TreeViewRenderer.prototype.updateCheckState = function (selectedNode) {
|
|
28890
|
+
TreeViewRenderer.prototype.updateCheckState = function (selectedNode, action) {
|
|
28858
28891
|
var chkState = this.fieldTable.element.querySelectorAll('.e-checkbox-wrapper');
|
|
28859
28892
|
var innerText = this.fieldTable.element.querySelectorAll('.e-list-text');
|
|
28860
28893
|
var checkClass = this.fieldTable.element.querySelectorAll('.e-frame');
|
|
28861
28894
|
for (var i = 0; i < chkState.length; i++) {
|
|
28862
28895
|
if (selectedNode.caption === innerText[i].textContent) {
|
|
28863
|
-
if (
|
|
28864
|
-
|
|
28865
|
-
checkClass[i].classList.add(NODE_CHECK_CLASS);
|
|
28896
|
+
if (action === 'check') {
|
|
28897
|
+
this.fieldTable.uncheckAll([selectedNode['id']]);
|
|
28866
28898
|
}
|
|
28867
28899
|
else {
|
|
28868
|
-
|
|
28869
|
-
checkClass[i].classList.remove(NODE_CHECK_CLASS);
|
|
28900
|
+
this.fieldTable.checkAll([selectedNode['id']]);
|
|
28870
28901
|
}
|
|
28871
28902
|
}
|
|
28872
28903
|
}
|
|
@@ -28917,6 +28948,9 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28917
28948
|
};
|
|
28918
28949
|
TreeViewRenderer.prototype.addNode = function (args) {
|
|
28919
28950
|
var _this = this;
|
|
28951
|
+
if (!args.isInteracted) {
|
|
28952
|
+
return;
|
|
28953
|
+
}
|
|
28920
28954
|
/* eslint-disable */
|
|
28921
28955
|
var fieldList = this.parent.pivotFieldList;
|
|
28922
28956
|
var selectedNode = fieldList[args.data[0].id.toString()];
|
|
@@ -28924,17 +28958,18 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28924
28958
|
var fieldInfo = PivotUtil.getFieldInfo(selectedNode.id.toString(), this.parent);
|
|
28925
28959
|
var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
|
|
28926
28960
|
if (args.action === 'check') {
|
|
28961
|
+
var axis = ['filters', 'columns', 'rows', 'values'];
|
|
28927
28962
|
var eventdrop = {
|
|
28928
28963
|
fieldName: fieldInfo.fieldName, dropField: fieldInfo.fieldItem,
|
|
28929
28964
|
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings),
|
|
28930
|
-
dropAxis:
|
|
28965
|
+
dropAxis: axis[this.parent.dialogRenderer.adaptiveElement.selectedItem], draggedAxis: 'fieldlist', cancel: false
|
|
28931
28966
|
};
|
|
28932
28967
|
control.trigger(fieldDrop, eventdrop, function (observedArgs) {
|
|
28933
28968
|
if (!observedArgs.cancel) {
|
|
28934
28969
|
_this.selectedNodes.push(selectedNode.id.toString());
|
|
28935
28970
|
}
|
|
28936
28971
|
else {
|
|
28937
|
-
_this.updateCheckState(selectedNode);
|
|
28972
|
+
_this.updateCheckState(selectedNode, args.action);
|
|
28938
28973
|
}
|
|
28939
28974
|
});
|
|
28940
28975
|
}
|
|
@@ -28955,7 +28990,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28955
28990
|
}
|
|
28956
28991
|
}
|
|
28957
28992
|
else {
|
|
28958
|
-
_this.updateCheckState(selectedNode);
|
|
28993
|
+
_this.updateCheckState(selectedNode, args.action);
|
|
28959
28994
|
}
|
|
28960
28995
|
});
|
|
28961
28996
|
}
|
|
@@ -29355,7 +29390,7 @@ var AxisTableRenderer = /** @__PURE__ @class */ (function () {
|
|
|
29355
29390
|
addClass([element[element.length - 1].querySelector('.' + DROP_INDICATOR_CLASS + '-last')], INDICATOR_HOVER_CLASS);
|
|
29356
29391
|
}
|
|
29357
29392
|
}
|
|
29358
|
-
else if (e.type === 'mouseleave') {
|
|
29393
|
+
else if (!this.parent.isDragging || (!e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseleave')) {
|
|
29359
29394
|
removeClass([].slice.call(parentElement.querySelectorAll('.' + DROP_INDICATOR_CLASS)), INDICATOR_HOVER_CLASS);
|
|
29360
29395
|
removeClass([].slice.call(parentElement.querySelectorAll('.' + DROP_INDICATOR_CLASS + '-last')), INDICATOR_HOVER_CLASS);
|
|
29361
29396
|
}
|
|
@@ -31062,6 +31097,8 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31062
31097
|
_this.remoteData = [];
|
|
31063
31098
|
/** @hidden */
|
|
31064
31099
|
_this.actionObj = {};
|
|
31100
|
+
/** @hidden */
|
|
31101
|
+
_this.destroyEngine = false;
|
|
31065
31102
|
return _this;
|
|
31066
31103
|
}
|
|
31067
31104
|
/**
|
|
@@ -32151,7 +32188,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32151
32188
|
*/
|
|
32152
32189
|
PivotFieldList.prototype.destroy = function () {
|
|
32153
32190
|
this.unWireEvent();
|
|
32154
|
-
if (this.engineModule) {
|
|
32191
|
+
if (this.engineModule && !this.destroyEngine) {
|
|
32155
32192
|
this.engineModule.fieldList = {};
|
|
32156
32193
|
this.engineModule.rMembers = null;
|
|
32157
32194
|
this.engineModule.cMembers = null;
|
|
@@ -32159,7 +32196,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32159
32196
|
this.engineModule.indexMatrix = null;
|
|
32160
32197
|
this.engineModule = {};
|
|
32161
32198
|
}
|
|
32162
|
-
if (this.olapEngineModule) {
|
|
32199
|
+
if (this.olapEngineModule && !this.destroyEngine) {
|
|
32163
32200
|
this.olapEngineModule.fieldList = {};
|
|
32164
32201
|
this.olapEngineModule = {};
|
|
32165
32202
|
}
|
|
@@ -35151,7 +35188,7 @@ var GroupingBar = /** @__PURE__ @class */ (function () {
|
|
|
35151
35188
|
};
|
|
35152
35189
|
GroupingBar.prototype.dropIndicatorUpdate = function (e) {
|
|
35153
35190
|
if ((this.parent.isDragging && e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseover') ||
|
|
35154
|
-
e.type === 'mouseleave') {
|
|
35191
|
+
(!this.parent.isDragging || (!e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseleave'))) {
|
|
35155
35192
|
removeClass([].slice.call(this.parent.element.querySelectorAll('.' + DROP_INDICATOR_CLASS)), INDICATOR_HOVER_CLASS);
|
|
35156
35193
|
removeClass([].slice.call(this.parent.element.querySelectorAll('.' + DROP_INDICATOR_CLASS + '-last')), INDICATOR_HOVER_CLASS);
|
|
35157
35194
|
}
|
|
@@ -36875,6 +36912,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36875
36912
|
}
|
|
36876
36913
|
};
|
|
36877
36914
|
Toolbar$$1.prototype.multipleAxesCheckbox = function (args) {
|
|
36915
|
+
var _this_1 = this;
|
|
36878
36916
|
if (this.parent.element.id + '_' + 'multipleAxes' === args.element.id) {
|
|
36879
36917
|
var inputCheckbox = createElement('input', {
|
|
36880
36918
|
id: this.parent.element.id + '_' + 'checkBox'
|
|
@@ -36885,6 +36923,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36885
36923
|
label: this.parent.localeObj.getConstant('multipleAxes'),
|
|
36886
36924
|
cssClass: 'e-multipleAxes',
|
|
36887
36925
|
checked: this.parent.chartSettings.enableMultipleAxis,
|
|
36926
|
+
change: function (args) {
|
|
36927
|
+
document.getElementById(_this_1.parent.element.id + '_' + 'multipleAxes').click();
|
|
36928
|
+
},
|
|
36888
36929
|
enableRtl: this.parent.enableRtl,
|
|
36889
36930
|
locale: this.parent.locale
|
|
36890
36931
|
});
|
|
@@ -36913,6 +36954,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36913
36954
|
label: this.parent.localeObj.getConstant('showLegend'),
|
|
36914
36955
|
checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
|
|
36915
36956
|
cssClass: 'e-showLegend',
|
|
36957
|
+
change: function (args) {
|
|
36958
|
+
document.getElementById(_this_1.parent.element.id + '_' + 'showLegend').click();
|
|
36959
|
+
},
|
|
36916
36960
|
enableRtl: this.parent.enableRtl,
|
|
36917
36961
|
locale: this.parent.locale
|
|
36918
36962
|
});
|