@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.43
3
+ * version : 19.4.52
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-pivotview@*",
3
- "_id": "@syncfusion/ej2-pivotview@19.4.42",
3
+ "_id": "@syncfusion/ej2-pivotview@19.4.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-zqgJ6FIg3l3S9avCSMts3EKnvSyYBwgjC8eKbpwx6j0Fuw/t7c311UbT6tOgxT2Nenq5Zj2lhWmFtKWdA8Vg8Q==",
5
+ "_integrity": "sha512-sHeeY2dWobsRAKiI73ORWmoeheiPWIXh271bOot55Dw0GKl5OChJZSCZsU/X++L7lcn91Nlk7wTRnDwzwAA/QA==",
6
6
  "_location": "/@syncfusion/ej2-pivotview",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-pivotview",
24
24
  "/@syncfusion/ej2-vue-pivotview"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-19.4.42.tgz",
27
- "_shasum": "8cca2eb9992a61c1e519c06e22d977a24d37038c",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-19.4.50.tgz",
27
+ "_shasum": "c33c3fca7fe2a0a550e24fb4f8bbb7a402d5d705",
28
28
  "_spec": "@syncfusion/ej2-pivotview@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,23 +35,23 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~19.4.42",
39
- "@syncfusion/ej2-buttons": "~19.4.42",
40
- "@syncfusion/ej2-calendars": "~19.4.42",
41
- "@syncfusion/ej2-charts": "~19.4.43",
42
- "@syncfusion/ej2-compression": "~19.4.38",
43
- "@syncfusion/ej2-data": "~19.4.42",
44
- "@syncfusion/ej2-dropdowns": "~19.4.42",
45
- "@syncfusion/ej2-excel-export": "~19.4.38",
46
- "@syncfusion/ej2-file-utils": "~19.4.38",
47
- "@syncfusion/ej2-grids": "~19.4.43",
48
- "@syncfusion/ej2-inputs": "~19.4.43",
49
- "@syncfusion/ej2-lists": "~19.4.38",
50
- "@syncfusion/ej2-navigations": "~19.4.41",
51
- "@syncfusion/ej2-pdf-export": "~19.4.43",
52
- "@syncfusion/ej2-popups": "~19.4.41",
53
- "@syncfusion/ej2-splitbuttons": "~19.4.40",
54
- "@syncfusion/ej2-svg-base": "~19.4.42"
38
+ "@syncfusion/ej2-base": "~19.4.52",
39
+ "@syncfusion/ej2-buttons": "~19.4.52",
40
+ "@syncfusion/ej2-calendars": "~19.4.52",
41
+ "@syncfusion/ej2-charts": "~19.4.52",
42
+ "@syncfusion/ej2-compression": "~19.4.52",
43
+ "@syncfusion/ej2-data": "~19.4.52",
44
+ "@syncfusion/ej2-dropdowns": "~19.4.52",
45
+ "@syncfusion/ej2-excel-export": "~19.4.52",
46
+ "@syncfusion/ej2-file-utils": "~19.4.52",
47
+ "@syncfusion/ej2-grids": "~19.4.52",
48
+ "@syncfusion/ej2-inputs": "~19.4.52",
49
+ "@syncfusion/ej2-lists": "~19.4.52",
50
+ "@syncfusion/ej2-navigations": "~19.4.52",
51
+ "@syncfusion/ej2-pdf-export": "~19.4.52",
52
+ "@syncfusion/ej2-popups": "~19.4.52",
53
+ "@syncfusion/ej2-splitbuttons": "~19.4.52",
54
+ "@syncfusion/ej2-svg-base": "~19.4.52"
55
55
  },
56
56
  "deprecated": false,
57
57
  "description": "The pivot grid, or pivot table, is used to visualize large sets of relational data in a cross-tabular format, similar to an Excel pivot table.",
@@ -78,6 +78,6 @@
78
78
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
79
79
  },
80
80
  "typings": "index.d.ts",
81
- "version": "19.4.43",
81
+ "version": "19.4.52",
82
82
  "sideEffects": false
83
83
  }
@@ -3448,10 +3448,11 @@ var PivotEngine = /** @class */ (function () {
3448
3448
  (level > this.measureIndex && row.axis === 'row' && row.valueSort.axis)) {
3449
3449
  var vln = 0;
3450
3450
  var isValueIndexFound = false;
3451
+ var rowUniqueName = row.valueSort.uniqueName ? row.valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter) : [];
3451
3452
  for (var cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
3452
3453
  if (!isValueIndexFound) {
3453
3454
  for (vln = 0; vln < vlt; vln++) {
3454
- if (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
3455
+ if (rowUniqueName.indexOf(this.values[vln].name) > -1) {
3455
3456
  isValueIndexFound = true;
3456
3457
  isValueCellUpdated = true;
3457
3458
  break;
@@ -3484,9 +3485,10 @@ var PivotEngine = /** @class */ (function () {
3484
3485
  }
3485
3486
  else {
3486
3487
  for (var cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
3488
+ var columnUniqueName = columns[cln].valueSort.uniqueName ? columns[cln].valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter) : [];
3487
3489
  for (var vln = 0; vln < vlt; vln++) {
3488
3490
  if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
3489
- if (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
3491
+ if (columnUniqueName.indexOf(this.values[vln].name) > -1) {
3490
3492
  this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
3491
3493
  dln = data[tnum].length;
3492
3494
  }
@@ -28,7 +28,7 @@ export declare class DataSourceUpdate {
28
28
  * @returns {void}
29
29
  * @hidden
30
30
  */
31
- updateDataSource(fieldName: string, droppedClass: string, droppedPosition: number): void;
31
+ updateDataSource(fieldName: string, droppedClass: string, droppedPosition: number): boolean;
32
32
  /**
33
33
  * Updates the dataSource by removing the given field from the dataSource.
34
34
  * @param {string} fieldName - Defines dropped field name to remove dataSource.
@@ -28,6 +28,7 @@ var DataSourceUpdate = /** @class */ (function () {
28
28
  var dataSourceItem;
29
29
  var draggedClass;
30
30
  var draggedPosition = -1;
31
+ var nodeDropped = true;
31
32
  var row = this.parent.dataSourceSettings.rows;
32
33
  var column = this.parent.dataSourceSettings.columns;
33
34
  var value = this.parent.dataSourceSettings.values;
@@ -154,7 +155,11 @@ var DataSourceUpdate = /** @class */ (function () {
154
155
  });
155
156
  }
156
157
  }
158
+ else {
159
+ nodeDropped = false;
160
+ }
157
161
  });
162
+ return nodeDropped;
158
163
  };
159
164
  /**
160
165
  * Updates the dataSource by removing the given field from the dataSource.
@@ -108,7 +108,7 @@ var NodeStateModified = /** @class */ (function () {
108
108
  this.parent.engineModule.updateFieldlistData(fieldName);
109
109
  }
110
110
  }
111
- this.parent.dataSourceUpdate.updateDataSource(fieldName, droppedClass, droppedPosition);
111
+ nodeDropped = this.parent.dataSourceUpdate.updateDataSource(fieldName, droppedClass, droppedPosition);
112
112
  return nodeDropped;
113
113
  };
114
114
  NodeStateModified.prototype.getButtonPosition = function (target, droppedClass) {
@@ -464,7 +464,7 @@ var GroupingBar = /** @class */ (function () {
464
464
  };
465
465
  GroupingBar.prototype.dropIndicatorUpdate = function (e) {
466
466
  if ((this.parent.isDragging && e.target.classList.contains(cls.DROPPABLE_CLASS) && e.type === 'mouseover') ||
467
- e.type === 'mouseleave') {
467
+ (!this.parent.isDragging || (!e.target.classList.contains(cls.DROPPABLE_CLASS) && e.type === 'mouseleave'))) {
468
468
  removeClass([].slice.call(this.parent.element.querySelectorAll('.' + cls.DROP_INDICATOR_CLASS)), cls.INDICATOR_HOVER_CLASS);
469
469
  removeClass([].slice.call(this.parent.element.querySelectorAll('.' + cls.DROP_INDICATOR_CLASS + '-last')), cls.INDICATOR_HOVER_CLASS);
470
470
  }
@@ -1036,6 +1036,7 @@ var Toolbar = /** @class */ (function () {
1036
1036
  }
1037
1037
  };
1038
1038
  Toolbar.prototype.multipleAxesCheckbox = function (args) {
1039
+ var _this_1 = this;
1039
1040
  if (this.parent.element.id + '_' + 'multipleAxes' === args.element.id) {
1040
1041
  var inputCheckbox = createElement('input', {
1041
1042
  id: this.parent.element.id + '_' + 'checkBox'
@@ -1046,6 +1047,9 @@ var Toolbar = /** @class */ (function () {
1046
1047
  label: this.parent.localeObj.getConstant('multipleAxes'),
1047
1048
  cssClass: 'e-multipleAxes',
1048
1049
  checked: this.parent.chartSettings.enableMultipleAxis,
1050
+ change: function (args) {
1051
+ document.getElementById(_this_1.parent.element.id + '_' + 'multipleAxes').click();
1052
+ },
1049
1053
  enableRtl: this.parent.enableRtl,
1050
1054
  locale: this.parent.locale
1051
1055
  });
@@ -1074,6 +1078,9 @@ var Toolbar = /** @class */ (function () {
1074
1078
  label: this.parent.localeObj.getConstant('showLegend'),
1075
1079
  checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
1076
1080
  cssClass: 'e-showLegend',
1081
+ change: function (args) {
1082
+ document.getElementById(_this_1.parent.element.id + '_' + 'showLegend').click();
1083
+ },
1077
1084
  enableRtl: this.parent.enableRtl,
1078
1085
  locale: this.parent.locale
1079
1086
  });
@@ -1623,7 +1623,7 @@ var PivotChart = /** @class */ (function () {
1623
1623
  if (this.parent && this.parent.isDestroyed) {
1624
1624
  return;
1625
1625
  }
1626
- if (this.engineModule) {
1626
+ if (this.engineModule && !this.parent.destroyEngine) {
1627
1627
  this.engineModule.fieldList = {};
1628
1628
  this.engineModule = {};
1629
1629
  }
@@ -111,6 +111,8 @@ export declare class PivotFieldList extends Component<HTMLElement> implements IN
111
111
  private remoteData;
112
112
  /** @hidden */
113
113
  actionObj: PivotActionCompleteEventArgs;
114
+ /** @hidden */
115
+ destroyEngine: boolean;
114
116
  /**
115
117
  * Allows the following pivot report information such as rows, columns, values, filters, etc., that are used to render the pivot table and field list.
116
118
  * * `catalog`: Allows to set the database name of SSAS cube as string type that used to retrieve the data from the specified connection string. **Note: It is applicable only for OLAP data source.**
@@ -68,6 +68,8 @@ var PivotFieldList = /** @class */ (function (_super) {
68
68
  _this.remoteData = [];
69
69
  /** @hidden */
70
70
  _this.actionObj = {};
71
+ /** @hidden */
72
+ _this.destroyEngine = false;
71
73
  return _this;
72
74
  }
73
75
  /**
@@ -1158,7 +1160,7 @@ var PivotFieldList = /** @class */ (function (_super) {
1158
1160
  */
1159
1161
  PivotFieldList.prototype.destroy = function () {
1160
1162
  this.unWireEvent();
1161
- if (this.engineModule) {
1163
+ if (this.engineModule && !this.destroyEngine) {
1162
1164
  this.engineModule.fieldList = {};
1163
1165
  this.engineModule.rMembers = null;
1164
1166
  this.engineModule.cMembers = null;
@@ -1166,7 +1168,7 @@ var PivotFieldList = /** @class */ (function (_super) {
1166
1168
  this.engineModule.indexMatrix = null;
1167
1169
  this.engineModule = {};
1168
1170
  }
1169
- if (this.olapEngineModule) {
1171
+ if (this.olapEngineModule && !this.destroyEngine) {
1170
1172
  this.olapEngineModule.fieldList = {};
1171
1173
  this.olapEngineModule = {};
1172
1174
  }
@@ -110,7 +110,7 @@ var AxisTableRenderer = /** @class */ (function () {
110
110
  addClass([element[element.length - 1].querySelector('.' + cls.DROP_INDICATOR_CLASS + '-last')], cls.INDICATOR_HOVER_CLASS);
111
111
  }
112
112
  }
113
- else if (e.type === 'mouseleave') {
113
+ else if (!this.parent.isDragging || (!e.target.classList.contains(cls.DROPPABLE_CLASS) && e.type === 'mouseleave')) {
114
114
  removeClass([].slice.call(parentElement.querySelectorAll('.' + cls.DROP_INDICATOR_CLASS)), cls.INDICATOR_HOVER_CLASS);
115
115
  removeClass([].slice.call(parentElement.querySelectorAll('.' + cls.DROP_INDICATOR_CLASS + '-last')), cls.INDICATOR_HOVER_CLASS);
116
116
  }
@@ -456,6 +456,9 @@ var TreeViewRenderer = /** @class */ (function () {
456
456
  };
457
457
  TreeViewRenderer.prototype.nodeStateChange = function (args) {
458
458
  var _this = this;
459
+ if (!args.isInteracted) {
460
+ return;
461
+ }
459
462
  var node = closest(args.node, '.' + cls.TEXT_CONTENT_CLASS);
460
463
  if (!isNullOrUndefined(node)) {
461
464
  var li_1 = closest(node, 'li');
@@ -487,7 +490,7 @@ var TreeViewRenderer = /** @class */ (function () {
487
490
  _this.updateNodeStateChange(id_1, args, selectedNode_1);
488
491
  }
489
492
  else {
490
- _this.updateCheckState(selectedNode_1);
493
+ _this.updateCheckState(selectedNode_1, args.action);
491
494
  }
492
495
  });
493
496
  }
@@ -514,7 +517,7 @@ var TreeViewRenderer = /** @class */ (function () {
514
517
  _this.updateNodeStateChange(id_1, args, selectedNode_1);
515
518
  }
516
519
  else {
517
- _this.updateCheckState(selectedNode_1);
520
+ _this.updateCheckState(selectedNode_1, args.action);
518
521
  }
519
522
  });
520
523
  }
@@ -571,19 +574,17 @@ var TreeViewRenderer = /** @class */ (function () {
571
574
  break;
572
575
  }
573
576
  };
574
- TreeViewRenderer.prototype.updateCheckState = function (selectedNode) {
577
+ TreeViewRenderer.prototype.updateCheckState = function (selectedNode, action) {
575
578
  var chkState = this.fieldTable.element.querySelectorAll('.e-checkbox-wrapper');
576
579
  var innerText = this.fieldTable.element.querySelectorAll('.e-list-text');
577
580
  var checkClass = this.fieldTable.element.querySelectorAll('.e-frame');
578
581
  for (var i = 0; i < chkState.length; i++) {
579
582
  if (selectedNode.caption === innerText[i].textContent) {
580
- if (chkState[i].getAttribute('aria-checked') === 'false') {
581
- chkState[i].setAttribute('aria-checked', 'false');
582
- checkClass[i].classList.add(cls.NODE_CHECK_CLASS);
583
+ if (action === 'check') {
584
+ this.fieldTable.uncheckAll([selectedNode['id']]);
583
585
  }
584
586
  else {
585
- chkState[i].setAttribute('aria-checked', 'true');
586
- checkClass[i].classList.remove(cls.NODE_CHECK_CLASS);
587
+ this.fieldTable.checkAll([selectedNode['id']]);
587
588
  }
588
589
  }
589
590
  }
@@ -634,6 +635,9 @@ var TreeViewRenderer = /** @class */ (function () {
634
635
  };
635
636
  TreeViewRenderer.prototype.addNode = function (args) {
636
637
  var _this = this;
638
+ if (!args.isInteracted) {
639
+ return;
640
+ }
637
641
  /* eslint-disable */
638
642
  var fieldList = this.parent.pivotFieldList;
639
643
  var selectedNode = fieldList[args.data[0].id.toString()];
@@ -641,17 +645,18 @@ var TreeViewRenderer = /** @class */ (function () {
641
645
  var fieldInfo = PivotUtil.getFieldInfo(selectedNode.id.toString(), this.parent);
642
646
  var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
643
647
  if (args.action === 'check') {
648
+ var axis = ['filters', 'columns', 'rows', 'values'];
644
649
  var eventdrop = {
645
650
  fieldName: fieldInfo.fieldName, dropField: fieldInfo.fieldItem,
646
651
  dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings),
647
- dropAxis: 'rows', draggedAxis: 'fieldlist', cancel: false
652
+ dropAxis: axis[this.parent.dialogRenderer.adaptiveElement.selectedItem], draggedAxis: 'fieldlist', cancel: false
648
653
  };
649
654
  control.trigger(events.fieldDrop, eventdrop, function (observedArgs) {
650
655
  if (!observedArgs.cancel) {
651
656
  _this.selectedNodes.push(selectedNode.id.toString());
652
657
  }
653
658
  else {
654
- _this.updateCheckState(selectedNode);
659
+ _this.updateCheckState(selectedNode, args.action);
655
660
  }
656
661
  });
657
662
  }
@@ -672,7 +677,7 @@ var TreeViewRenderer = /** @class */ (function () {
672
677
  }
673
678
  }
674
679
  else {
675
- _this.updateCheckState(selectedNode);
680
+ _this.updateCheckState(selectedNode, args.action);
676
681
  }
677
682
  });
678
683
  }
@@ -124,7 +124,6 @@ var ExcelExport = /** @class */ (function () {
124
124
  this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
125
125
  pivotCell.actualText;
126
126
  var styles = (pivotCell.axis == 'row') ? { hAlign: 'Left', bold: true, wrapText: true } : { numberFormat: formatList[field], bold: false, wrapText: true };
127
- var pivotCells = currentPivotValues[rCnt][cCnt];
128
127
  var headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
129
128
  if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
130
129
  var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
@@ -174,8 +173,8 @@ var ExcelExport = /** @class */ (function () {
174
173
  }
175
174
  }
176
175
  }
177
- if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
178
- lastCell.style.backgroundColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
176
+ if (pivotCell.style || lastCell.style.backColor || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
177
+ lastCell.style.backColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
179
178
  lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
180
179
  lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
181
180
  lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
@@ -186,14 +185,14 @@ var ExcelExport = /** @class */ (function () {
186
185
  if (pivotCell.axis === 'column') {
187
186
  excelHeaderQueryCellInfoArgs = {
188
187
  style: headerStyle,
189
- cell: pivotCells,
188
+ cell: pivotCell,
190
189
  };
191
190
  this.parent.trigger(events.excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
192
191
  }
193
192
  else {
194
193
  excelQueryCellInfoArgs = {
195
194
  style: styles,
196
- cell: pivotCells,
195
+ cell: pivotCell,
197
196
  column: undefined,
198
197
  data: pivotValues,
199
198
  value: cellValue
@@ -1359,6 +1359,8 @@ export declare class PivotView extends Component<HTMLElement> implements INotify
1359
1359
  * @event
1360
1360
  */
1361
1361
  actionFailure: EmitType<PivotActionFailureEventArgs>;
1362
+ /** @hidden */
1363
+ destroyEngine: boolean;
1362
1364
  /**
1363
1365
  * Constructor for creating the widget
1364
1366
  * @param {PivotViewModel} options - options.
@@ -315,6 +315,8 @@ var PivotView = /** @class */ (function (_super) {
315
315
  _this_1.isServerWaitingPopup = false;
316
316
  /** @hidden */
317
317
  _this_1.actionObj = {};
318
+ /** @hidden */
319
+ _this_1.destroyEngine = false;
318
320
  _this_1.pivotView = _this_1;
319
321
  setValue('mergePersistData', _this_1.mergePersistPivotData, _this_1);
320
322
  return _this_1;
@@ -891,13 +893,10 @@ var PivotView = /** @class */ (function (_super) {
891
893
  this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
892
894
  this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
893
895
  this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
894
- this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
895
- this.gridSettings.pdfHeaderQueryCellInfo.bind(this) : undefined;
896
- this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo.bind(this) : undefined;
897
- this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ?
898
- this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
899
- this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
900
- this.gridSettings.excelQueryCellInfo.bind(this) : undefined;
896
+ this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ? this.gridSettings.pdfHeaderQueryCellInfo : undefined;
897
+ this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo : undefined;
898
+ this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ? this.gridSettings.excelHeaderQueryCellInfo : undefined;
899
+ this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ? this.gridSettings.excelQueryCellInfo : undefined;
901
900
  this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
902
901
  this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
903
902
  this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
@@ -1267,6 +1266,10 @@ var PivotView = /** @class */ (function (_super) {
1267
1266
  var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
1268
1267
  /* eslint-disable */
1269
1268
  var columnRender = this.gridSettings['columnRender'];
1269
+ var excelQueryCellInfo = this.gridSettings['excelQueryCellInfo'];
1270
+ var excelHeaderQueryCellInfo = this.gridSettings['excelHeaderQueryCellInfo'];
1271
+ var pdfQueryCellInfo = this.gridSettings['pdfQueryCellInfo'];
1272
+ var pdfHeaderQueryCellInfo = this.gridSettings['pdfHeaderQueryCellInfo'];
1270
1273
  var chartLoadEvent = this.chartSettings['load'];
1271
1274
  var chartLoadedEvent = this.chartSettings['loaded'];
1272
1275
  var chartTextRenderEvent = this.chartSettings['textRender'];
@@ -1276,6 +1279,10 @@ var PivotView = /** @class */ (function (_super) {
1276
1279
  var chartPointClickEvent = this.chartSettings['pointClick'];
1277
1280
  var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
1278
1281
  this.gridSettings['columnRender'] = undefined;
1282
+ this.gridSettings['excelQueryCellInfo'] = undefined;
1283
+ this.gridSettings['excelHeaderQueryCellInfo'] = undefined;
1284
+ this.gridSettings['pdfQueryCellInfo'] = undefined;
1285
+ this.gridSettings['pdfHeaderQueryCellInfo'] = undefined;
1279
1286
  this.chartSettings['tooltipRender'] = undefined;
1280
1287
  this.chartSettings['load'] = undefined;
1281
1288
  this.chartSettings['loaded'] = undefined;
@@ -1286,6 +1293,10 @@ var PivotView = /** @class */ (function (_super) {
1286
1293
  this.chartSettings['pointClick'] = undefined;
1287
1294
  var persistData = this.addOnPersist(keyEntity);
1288
1295
  this.gridSettings['columnRender'] = columnRender;
1296
+ this.gridSettings['excelQueryCellInfo'] = excelQueryCellInfo;
1297
+ this.gridSettings['excelHeaderQueryCellInfo'] = excelHeaderQueryCellInfo;
1298
+ this.gridSettings['pdfQueryCellInfo'] = pdfQueryCellInfo;
1299
+ this.gridSettings['pdfHeaderQueryCellInfo'] = pdfHeaderQueryCellInfo;
1289
1300
  this.chartSettings['load'] = chartLoadEvent;
1290
1301
  this.chartSettings['loaded'] = chartLoadedEvent;
1291
1302
  this.chartSettings['textRender'] = chartTextRenderEvent;
@@ -1466,24 +1477,37 @@ var PivotView = /** @class */ (function (_super) {
1466
1477
  this.displayOption.primary : newProp.displayOption.view);
1467
1478
  if (this.showGroupingBar || this.showFieldList) {
1468
1479
  if (this.showFieldList && this.pivotFieldListModule) {
1480
+ this.pivotFieldListModule.destroyEngine = true;
1469
1481
  this.pivotFieldListModule.destroy();
1482
+ this.pivotFieldListModule.destroyEngine = false;
1470
1483
  }
1471
- if (this.showGroupingBar && this.groupingBarModule) {
1472
- this.groupingBarModule.destroy();
1473
- }
1484
+ /**
1485
+ * Below lines are affected the grouping bar render between table and chart.
1486
+ * In "Init subcomponent" function, grouping bar rendered properly for table and chart view.
1487
+ * So, The below lines are commanded out.
1488
+ */
1489
+ // if (this.showGroupingBar && this.groupingBarModule) {
1490
+ // this.groupingBarModule.destroy();
1491
+ // }
1474
1492
  this.notify(events.initSubComponent, this);
1475
1493
  }
1476
1494
  if (!this.grid && newProp.displayOption.view !== 'Chart') {
1477
1495
  this.renderEmptyGrid();
1478
1496
  if (newProp.displayOption.view === 'Table') {
1479
1497
  if (this.pivotChartModule) {
1498
+ this.destroyEngine = true;
1480
1499
  this.pivotChartModule.destroy();
1500
+ this.destroyEngine = false;
1481
1501
  this.chart = undefined;
1482
1502
  this.pivotChartModule = undefined;
1483
1503
  }
1484
1504
  }
1485
1505
  }
1486
1506
  else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
1507
+ if (this.grid) {
1508
+ this.grid.destroy();
1509
+ this.grid = undefined;
1510
+ }
1487
1511
  this.pivotChartModule = new PivotChart();
1488
1512
  }
1489
1513
  }
@@ -2489,12 +2513,12 @@ var PivotView = /** @class */ (function (_super) {
2489
2513
  var hasField = false;
2490
2514
  if (cell && this.dataType === 'olap') {
2491
2515
  var measureName = cell.actualText;
2492
- if (!isNullOrUndefined(measureName) && !this.olapEngineModule.fieldList[measureName]) {
2516
+ if (!isNullOrUndefined(measureName) && this.olapEngineModule.fieldList && !this.olapEngineModule.fieldList[measureName]) {
2493
2517
  var tupleInfo = this.olapEngineModule.tupRowInfo;
2494
2518
  measureName = cell.rowOrdinal > -1 && tupleInfo.length > 0 && tupleInfo[cell.rowOrdinal] &&
2495
2519
  !isNullOrUndefined(tupleInfo[cell.rowOrdinal].measureName) ? tupleInfo[cell.rowOrdinal].measureName : measureName;
2496
2520
  }
2497
- if (this.olapEngineModule.fieldList[measureName]) {
2521
+ if (this.olapEngineModule.fieldList && this.olapEngineModule.fieldList[measureName]) {
2498
2522
  var field = this.olapEngineModule.fieldList[measureName];
2499
2523
  aggregateType = field.isCalculatedField ? field.type : field.aggregateType;
2500
2524
  caption = (this.olapEngineModule.dataFields[measureName] &&
@@ -2504,7 +2528,7 @@ var PivotView = /** @class */ (function (_super) {
2504
2528
  }
2505
2529
  }
2506
2530
  else {
2507
- if (cell && this.engineModule.fieldList[cell.actualText]) {
2531
+ if (cell && this.engineModule.fieldList && this.engineModule.fieldList[cell.actualText]) {
2508
2532
  var field = this.engineModule.fieldList[cell.actualText];
2509
2533
  aggregateType = field.aggregateType;
2510
2534
  if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||