@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
|
@@ -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
|
}
|
|
@@ -9939,7 +9941,7 @@ class NodeStateModified {
|
|
|
9939
9941
|
this.parent.engineModule.updateFieldlistData(fieldName);
|
|
9940
9942
|
}
|
|
9941
9943
|
}
|
|
9942
|
-
this.parent.dataSourceUpdate.updateDataSource(fieldName, droppedClass, droppedPosition);
|
|
9944
|
+
nodeDropped = this.parent.dataSourceUpdate.updateDataSource(fieldName, droppedClass, droppedPosition);
|
|
9943
9945
|
return nodeDropped;
|
|
9944
9946
|
}
|
|
9945
9947
|
getButtonPosition(target, droppedClass) {
|
|
@@ -9986,6 +9988,7 @@ class DataSourceUpdate {
|
|
|
9986
9988
|
let dataSourceItem;
|
|
9987
9989
|
let draggedClass;
|
|
9988
9990
|
let draggedPosition = -1;
|
|
9991
|
+
let nodeDropped = true;
|
|
9989
9992
|
let row = this.parent.dataSourceSettings.rows;
|
|
9990
9993
|
let column = this.parent.dataSourceSettings.columns;
|
|
9991
9994
|
let value = this.parent.dataSourceSettings.values;
|
|
@@ -10112,7 +10115,11 @@ class DataSourceUpdate {
|
|
|
10112
10115
|
});
|
|
10113
10116
|
}
|
|
10114
10117
|
}
|
|
10118
|
+
else {
|
|
10119
|
+
nodeDropped = false;
|
|
10120
|
+
}
|
|
10115
10121
|
});
|
|
10122
|
+
return nodeDropped;
|
|
10116
10123
|
}
|
|
10117
10124
|
/**
|
|
10118
10125
|
* Updates the dataSource by removing the given field from the dataSource.
|
|
@@ -15609,7 +15616,7 @@ class PivotChart {
|
|
|
15609
15616
|
if (this.parent && this.parent.isDestroyed) {
|
|
15610
15617
|
return;
|
|
15611
15618
|
}
|
|
15612
|
-
if (this.engineModule) {
|
|
15619
|
+
if (this.engineModule && !this.parent.destroyEngine) {
|
|
15613
15620
|
this.engineModule.fieldList = {};
|
|
15614
15621
|
this.engineModule = {};
|
|
15615
15622
|
}
|
|
@@ -21853,6 +21860,8 @@ let PivotView = class PivotView extends Component {
|
|
|
21853
21860
|
this.isServerWaitingPopup = false;
|
|
21854
21861
|
/** @hidden */
|
|
21855
21862
|
this.actionObj = {};
|
|
21863
|
+
/** @hidden */
|
|
21864
|
+
this.destroyEngine = false;
|
|
21856
21865
|
this.pivotView = this;
|
|
21857
21866
|
setValue('mergePersistData', this.mergePersistPivotData, this);
|
|
21858
21867
|
}
|
|
@@ -22427,13 +22436,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22427
22436
|
this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
|
|
22428
22437
|
this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
|
|
22429
22438
|
this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
|
|
22430
|
-
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
|
|
22431
|
-
|
|
22432
|
-
this.
|
|
22433
|
-
this.
|
|
22434
|
-
this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
|
|
22435
|
-
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
|
|
22436
|
-
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;
|
|
22437
22443
|
this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
|
|
22438
22444
|
this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
|
|
22439
22445
|
this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
|
|
@@ -22801,6 +22807,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22801
22807
|
let keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
22802
22808
|
/* eslint-disable */
|
|
22803
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'];
|
|
22804
22814
|
let chartLoadEvent = this.chartSettings['load'];
|
|
22805
22815
|
let chartLoadedEvent = this.chartSettings['loaded'];
|
|
22806
22816
|
let chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -22810,6 +22820,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22810
22820
|
let chartPointClickEvent = this.chartSettings['pointClick'];
|
|
22811
22821
|
let chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
22812
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;
|
|
22813
22827
|
this.chartSettings['tooltipRender'] = undefined;
|
|
22814
22828
|
this.chartSettings['load'] = undefined;
|
|
22815
22829
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -22820,6 +22834,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22820
22834
|
this.chartSettings['pointClick'] = undefined;
|
|
22821
22835
|
let persistData = this.addOnPersist(keyEntity);
|
|
22822
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;
|
|
22823
22841
|
this.chartSettings['load'] = chartLoadEvent;
|
|
22824
22842
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
22825
22843
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
@@ -22999,24 +23017,37 @@ let PivotView = class PivotView extends Component {
|
|
|
22999
23017
|
this.displayOption.primary : newProp.displayOption.view);
|
|
23000
23018
|
if (this.showGroupingBar || this.showFieldList) {
|
|
23001
23019
|
if (this.showFieldList && this.pivotFieldListModule) {
|
|
23020
|
+
this.pivotFieldListModule.destroyEngine = true;
|
|
23002
23021
|
this.pivotFieldListModule.destroy();
|
|
23022
|
+
this.pivotFieldListModule.destroyEngine = false;
|
|
23003
23023
|
}
|
|
23004
|
-
|
|
23005
|
-
|
|
23006
|
-
|
|
23024
|
+
/**
|
|
23025
|
+
* Below lines are affected the grouping bar render between table and chart.
|
|
23026
|
+
* In "Init subcomponent" function, grouping bar rendered properly for table and chart view.
|
|
23027
|
+
* So, The below lines are commanded out.
|
|
23028
|
+
*/
|
|
23029
|
+
// if (this.showGroupingBar && this.groupingBarModule) {
|
|
23030
|
+
// this.groupingBarModule.destroy();
|
|
23031
|
+
// }
|
|
23007
23032
|
this.notify(initSubComponent, this);
|
|
23008
23033
|
}
|
|
23009
23034
|
if (!this.grid && newProp.displayOption.view !== 'Chart') {
|
|
23010
23035
|
this.renderEmptyGrid();
|
|
23011
23036
|
if (newProp.displayOption.view === 'Table') {
|
|
23012
23037
|
if (this.pivotChartModule) {
|
|
23038
|
+
this.destroyEngine = true;
|
|
23013
23039
|
this.pivotChartModule.destroy();
|
|
23040
|
+
this.destroyEngine = false;
|
|
23014
23041
|
this.chart = undefined;
|
|
23015
23042
|
this.pivotChartModule = undefined;
|
|
23016
23043
|
}
|
|
23017
23044
|
}
|
|
23018
23045
|
}
|
|
23019
23046
|
else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
|
|
23047
|
+
if (this.grid) {
|
|
23048
|
+
this.grid.destroy();
|
|
23049
|
+
this.grid = undefined;
|
|
23050
|
+
}
|
|
23020
23051
|
this.pivotChartModule = new PivotChart();
|
|
23021
23052
|
}
|
|
23022
23053
|
}
|
|
@@ -24014,12 +24045,12 @@ let PivotView = class PivotView extends Component {
|
|
|
24014
24045
|
let hasField = false;
|
|
24015
24046
|
if (cell && this.dataType === 'olap') {
|
|
24016
24047
|
let measureName = cell.actualText;
|
|
24017
|
-
if (!isNullOrUndefined(measureName) && !this.olapEngineModule.fieldList[measureName]) {
|
|
24048
|
+
if (!isNullOrUndefined(measureName) && this.olapEngineModule.fieldList && !this.olapEngineModule.fieldList[measureName]) {
|
|
24018
24049
|
let tupleInfo = this.olapEngineModule.tupRowInfo;
|
|
24019
24050
|
measureName = cell.rowOrdinal > -1 && tupleInfo.length > 0 && tupleInfo[cell.rowOrdinal] &&
|
|
24020
24051
|
!isNullOrUndefined(tupleInfo[cell.rowOrdinal].measureName) ? tupleInfo[cell.rowOrdinal].measureName : measureName;
|
|
24021
24052
|
}
|
|
24022
|
-
if (this.olapEngineModule.fieldList[measureName]) {
|
|
24053
|
+
if (this.olapEngineModule.fieldList && this.olapEngineModule.fieldList[measureName]) {
|
|
24023
24054
|
let field = this.olapEngineModule.fieldList[measureName];
|
|
24024
24055
|
aggregateType = field.isCalculatedField ? field.type : field.aggregateType;
|
|
24025
24056
|
caption = (this.olapEngineModule.dataFields[measureName] &&
|
|
@@ -24029,7 +24060,7 @@ let PivotView = class PivotView extends Component {
|
|
|
24029
24060
|
}
|
|
24030
24061
|
}
|
|
24031
24062
|
else {
|
|
24032
|
-
if (cell && this.engineModule.fieldList[cell.actualText]) {
|
|
24063
|
+
if (cell && this.engineModule.fieldList && this.engineModule.fieldList[cell.actualText]) {
|
|
24033
24064
|
let field = this.engineModule.fieldList[cell.actualText];
|
|
24034
24065
|
aggregateType = field.aggregateType;
|
|
24035
24066
|
if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||
|
|
@@ -26337,7 +26368,6 @@ class ExcelExport$1 {
|
|
|
26337
26368
|
this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
|
|
26338
26369
|
pivotCell.actualText;
|
|
26339
26370
|
let styles = (pivotCell.axis == 'row') ? { hAlign: 'Left', bold: true, wrapText: true } : { numberFormat: formatList[field], bold: false, wrapText: true };
|
|
26340
|
-
let pivotCells = currentPivotValues[rCnt][cCnt];
|
|
26341
26371
|
let headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
|
|
26342
26372
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
26343
26373
|
let cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
@@ -26387,8 +26417,8 @@ class ExcelExport$1 {
|
|
|
26387
26417
|
}
|
|
26388
26418
|
}
|
|
26389
26419
|
}
|
|
26390
|
-
if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
|
|
26391
|
-
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;
|
|
26392
26422
|
lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
|
|
26393
26423
|
lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
|
|
26394
26424
|
lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
|
|
@@ -26399,14 +26429,14 @@ class ExcelExport$1 {
|
|
|
26399
26429
|
if (pivotCell.axis === 'column') {
|
|
26400
26430
|
excelHeaderQueryCellInfoArgs = {
|
|
26401
26431
|
style: headerStyle,
|
|
26402
|
-
cell:
|
|
26432
|
+
cell: pivotCell,
|
|
26403
26433
|
};
|
|
26404
26434
|
this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
|
|
26405
26435
|
}
|
|
26406
26436
|
else {
|
|
26407
26437
|
excelQueryCellInfoArgs = {
|
|
26408
26438
|
style: styles,
|
|
26409
|
-
cell:
|
|
26439
|
+
cell: pivotCell,
|
|
26410
26440
|
column: undefined,
|
|
26411
26441
|
data: pivotValues,
|
|
26412
26442
|
value: cellValue
|
|
@@ -28005,6 +28035,9 @@ class TreeViewRenderer {
|
|
|
28005
28035
|
return buttonElement;
|
|
28006
28036
|
}
|
|
28007
28037
|
nodeStateChange(args) {
|
|
28038
|
+
if (!args.isInteracted) {
|
|
28039
|
+
return;
|
|
28040
|
+
}
|
|
28008
28041
|
let node = closest(args.node, '.' + TEXT_CONTENT_CLASS);
|
|
28009
28042
|
if (!isNullOrUndefined(node)) {
|
|
28010
28043
|
let li = closest(node, 'li');
|
|
@@ -28036,7 +28069,7 @@ class TreeViewRenderer {
|
|
|
28036
28069
|
this.updateNodeStateChange(id, args, selectedNode);
|
|
28037
28070
|
}
|
|
28038
28071
|
else {
|
|
28039
|
-
this.updateCheckState(selectedNode);
|
|
28072
|
+
this.updateCheckState(selectedNode, args.action);
|
|
28040
28073
|
}
|
|
28041
28074
|
});
|
|
28042
28075
|
}
|
|
@@ -28063,7 +28096,7 @@ class TreeViewRenderer {
|
|
|
28063
28096
|
this.updateNodeStateChange(id, args, selectedNode);
|
|
28064
28097
|
}
|
|
28065
28098
|
else {
|
|
28066
|
-
this.updateCheckState(selectedNode);
|
|
28099
|
+
this.updateCheckState(selectedNode, args.action);
|
|
28067
28100
|
}
|
|
28068
28101
|
});
|
|
28069
28102
|
}
|
|
@@ -28120,19 +28153,17 @@ class TreeViewRenderer {
|
|
|
28120
28153
|
break;
|
|
28121
28154
|
}
|
|
28122
28155
|
}
|
|
28123
|
-
updateCheckState(selectedNode) {
|
|
28156
|
+
updateCheckState(selectedNode, action) {
|
|
28124
28157
|
let chkState = this.fieldTable.element.querySelectorAll('.e-checkbox-wrapper');
|
|
28125
28158
|
let innerText = this.fieldTable.element.querySelectorAll('.e-list-text');
|
|
28126
28159
|
let checkClass = this.fieldTable.element.querySelectorAll('.e-frame');
|
|
28127
28160
|
for (let i = 0; i < chkState.length; i++) {
|
|
28128
28161
|
if (selectedNode.caption === innerText[i].textContent) {
|
|
28129
|
-
if (
|
|
28130
|
-
|
|
28131
|
-
checkClass[i].classList.add(NODE_CHECK_CLASS);
|
|
28162
|
+
if (action === 'check') {
|
|
28163
|
+
this.fieldTable.uncheckAll([selectedNode['id']]);
|
|
28132
28164
|
}
|
|
28133
28165
|
else {
|
|
28134
|
-
|
|
28135
|
-
checkClass[i].classList.remove(NODE_CHECK_CLASS);
|
|
28166
|
+
this.fieldTable.checkAll([selectedNode['id']]);
|
|
28136
28167
|
}
|
|
28137
28168
|
}
|
|
28138
28169
|
}
|
|
@@ -28181,6 +28212,9 @@ class TreeViewRenderer {
|
|
|
28181
28212
|
}
|
|
28182
28213
|
}
|
|
28183
28214
|
addNode(args) {
|
|
28215
|
+
if (!args.isInteracted) {
|
|
28216
|
+
return;
|
|
28217
|
+
}
|
|
28184
28218
|
/* eslint-disable */
|
|
28185
28219
|
let fieldList = this.parent.pivotFieldList;
|
|
28186
28220
|
let selectedNode = fieldList[args.data[0].id.toString()];
|
|
@@ -28188,17 +28222,18 @@ class TreeViewRenderer {
|
|
|
28188
28222
|
let fieldInfo = PivotUtil.getFieldInfo(selectedNode.id.toString(), this.parent);
|
|
28189
28223
|
let control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
|
|
28190
28224
|
if (args.action === 'check') {
|
|
28225
|
+
let axis = ['filters', 'columns', 'rows', 'values'];
|
|
28191
28226
|
let eventdrop = {
|
|
28192
28227
|
fieldName: fieldInfo.fieldName, dropField: fieldInfo.fieldItem,
|
|
28193
28228
|
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings),
|
|
28194
|
-
dropAxis:
|
|
28229
|
+
dropAxis: axis[this.parent.dialogRenderer.adaptiveElement.selectedItem], draggedAxis: 'fieldlist', cancel: false
|
|
28195
28230
|
};
|
|
28196
28231
|
control.trigger(fieldDrop, eventdrop, (observedArgs) => {
|
|
28197
28232
|
if (!observedArgs.cancel) {
|
|
28198
28233
|
this.selectedNodes.push(selectedNode.id.toString());
|
|
28199
28234
|
}
|
|
28200
28235
|
else {
|
|
28201
|
-
this.updateCheckState(selectedNode);
|
|
28236
|
+
this.updateCheckState(selectedNode, args.action);
|
|
28202
28237
|
}
|
|
28203
28238
|
});
|
|
28204
28239
|
}
|
|
@@ -28219,7 +28254,7 @@ class TreeViewRenderer {
|
|
|
28219
28254
|
}
|
|
28220
28255
|
}
|
|
28221
28256
|
else {
|
|
28222
|
-
this.updateCheckState(selectedNode);
|
|
28257
|
+
this.updateCheckState(selectedNode, args.action);
|
|
28223
28258
|
}
|
|
28224
28259
|
});
|
|
28225
28260
|
}
|
|
@@ -28612,7 +28647,7 @@ class AxisTableRenderer {
|
|
|
28612
28647
|
addClass([element[element.length - 1].querySelector('.' + DROP_INDICATOR_CLASS + '-last')], INDICATOR_HOVER_CLASS);
|
|
28613
28648
|
}
|
|
28614
28649
|
}
|
|
28615
|
-
else if (e.type === 'mouseleave') {
|
|
28650
|
+
else if (!this.parent.isDragging || (!e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseleave')) {
|
|
28616
28651
|
removeClass([].slice.call(parentElement.querySelectorAll('.' + DROP_INDICATOR_CLASS)), INDICATOR_HOVER_CLASS);
|
|
28617
28652
|
removeClass([].slice.call(parentElement.querySelectorAll('.' + DROP_INDICATOR_CLASS + '-last')), INDICATOR_HOVER_CLASS);
|
|
28618
28653
|
}
|
|
@@ -30270,6 +30305,8 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
30270
30305
|
this.remoteData = [];
|
|
30271
30306
|
/** @hidden */
|
|
30272
30307
|
this.actionObj = {};
|
|
30308
|
+
/** @hidden */
|
|
30309
|
+
this.destroyEngine = false;
|
|
30273
30310
|
}
|
|
30274
30311
|
/**
|
|
30275
30312
|
* To provide the array of modules needed for control rendering
|
|
@@ -31351,7 +31388,7 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
31351
31388
|
*/
|
|
31352
31389
|
destroy() {
|
|
31353
31390
|
this.unWireEvent();
|
|
31354
|
-
if (this.engineModule) {
|
|
31391
|
+
if (this.engineModule && !this.destroyEngine) {
|
|
31355
31392
|
this.engineModule.fieldList = {};
|
|
31356
31393
|
this.engineModule.rMembers = null;
|
|
31357
31394
|
this.engineModule.cMembers = null;
|
|
@@ -31359,7 +31396,7 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
31359
31396
|
this.engineModule.indexMatrix = null;
|
|
31360
31397
|
this.engineModule = {};
|
|
31361
31398
|
}
|
|
31362
|
-
if (this.olapEngineModule) {
|
|
31399
|
+
if (this.olapEngineModule && !this.destroyEngine) {
|
|
31363
31400
|
this.olapEngineModule.fieldList = {};
|
|
31364
31401
|
this.olapEngineModule = {};
|
|
31365
31402
|
}
|
|
@@ -34317,7 +34354,7 @@ class GroupingBar {
|
|
|
34317
34354
|
}
|
|
34318
34355
|
dropIndicatorUpdate(e) {
|
|
34319
34356
|
if ((this.parent.isDragging && e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseover') ||
|
|
34320
|
-
e.type === 'mouseleave') {
|
|
34357
|
+
(!this.parent.isDragging || (!e.target.classList.contains(DROPPABLE_CLASS) && e.type === 'mouseleave'))) {
|
|
34321
34358
|
removeClass([].slice.call(this.parent.element.querySelectorAll('.' + DROP_INDICATOR_CLASS)), INDICATOR_HOVER_CLASS);
|
|
34322
34359
|
removeClass([].slice.call(this.parent.element.querySelectorAll('.' + DROP_INDICATOR_CLASS + '-last')), INDICATOR_HOVER_CLASS);
|
|
34323
34360
|
}
|
|
@@ -36040,6 +36077,9 @@ class Toolbar$2 {
|
|
|
36040
36077
|
label: this.parent.localeObj.getConstant('multipleAxes'),
|
|
36041
36078
|
cssClass: 'e-multipleAxes',
|
|
36042
36079
|
checked: this.parent.chartSettings.enableMultipleAxis,
|
|
36080
|
+
change: (args) => {
|
|
36081
|
+
document.getElementById(this.parent.element.id + '_' + 'multipleAxes').click();
|
|
36082
|
+
},
|
|
36043
36083
|
enableRtl: this.parent.enableRtl,
|
|
36044
36084
|
locale: this.parent.locale
|
|
36045
36085
|
});
|
|
@@ -36068,6 +36108,9 @@ class Toolbar$2 {
|
|
|
36068
36108
|
label: this.parent.localeObj.getConstant('showLegend'),
|
|
36069
36109
|
checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
|
|
36070
36110
|
cssClass: 'e-showLegend',
|
|
36111
|
+
change: (args) => {
|
|
36112
|
+
document.getElementById(this.parent.element.id + '_' + 'showLegend').click();
|
|
36113
|
+
},
|
|
36071
36114
|
enableRtl: this.parent.enableRtl,
|
|
36072
36115
|
locale: this.parent.locale
|
|
36073
36116
|
});
|