@syncfusion/ej2-pivotview 19.4.47 → 19.4.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
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 (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
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
  }
@@ -23124,13 +23126,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23124
23126
  this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
23125
23127
  this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
23126
23128
  this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
23127
- this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
23128
- this.gridSettings.pdfHeaderQueryCellInfo.bind(this) : undefined;
23129
- this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo.bind(this) : undefined;
23130
- this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ?
23131
- this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
23132
- this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
23133
- 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;
23134
23133
  this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
23135
23134
  this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
23136
23135
  this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
@@ -23500,6 +23499,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23500
23499
  var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
23501
23500
  /* eslint-disable */
23502
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'];
23503
23506
  var chartLoadEvent = this.chartSettings['load'];
23504
23507
  var chartLoadedEvent = this.chartSettings['loaded'];
23505
23508
  var chartTextRenderEvent = this.chartSettings['textRender'];
@@ -23509,6 +23512,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23509
23512
  var chartPointClickEvent = this.chartSettings['pointClick'];
23510
23513
  var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
23511
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;
23512
23519
  this.chartSettings['tooltipRender'] = undefined;
23513
23520
  this.chartSettings['load'] = undefined;
23514
23521
  this.chartSettings['loaded'] = undefined;
@@ -23519,6 +23526,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23519
23526
  this.chartSettings['pointClick'] = undefined;
23520
23527
  var persistData = this.addOnPersist(keyEntity);
23521
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;
23522
23533
  this.chartSettings['load'] = chartLoadEvent;
23523
23534
  this.chartSettings['loaded'] = chartLoadedEvent;
23524
23535
  this.chartSettings['textRender'] = chartTextRenderEvent;
@@ -27080,7 +27091,6 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27080
27091
  this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
27081
27092
  pivotCell.actualText;
27082
27093
  var styles = (pivotCell.axis == 'row') ? { hAlign: 'Left', bold: true, wrapText: true } : { numberFormat: formatList[field], bold: false, wrapText: true };
27083
- var pivotCells = currentPivotValues[rCnt][cCnt];
27084
27094
  var headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
27085
27095
  if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
27086
27096
  var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
@@ -27130,8 +27140,8 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27130
27140
  }
27131
27141
  }
27132
27142
  }
27133
- if (pivotCell.style || lastCell.style.backgroundColor || lastCell.style.fontColor || lastCell.style.fontName || lastCell.style.fontSize) {
27134
- lastCell.style.backgroundColor = lastCell.style.backgroundColor ? lastCell.style.backgroundColor : pivotCell.style.backgroundColor;
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;
27135
27145
  lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
27136
27146
  lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
27137
27147
  lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
@@ -27142,14 +27152,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27142
27152
  if (pivotCell.axis === 'column') {
27143
27153
  excelHeaderQueryCellInfoArgs = {
27144
27154
  style: headerStyle,
27145
- cell: pivotCells,
27155
+ cell: pivotCell,
27146
27156
  };
27147
27157
  this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
27148
27158
  }
27149
27159
  else {
27150
27160
  excelQueryCellInfoArgs = {
27151
27161
  style: styles,
27152
- cell: pivotCells,
27162
+ cell: pivotCell,
27153
27163
  column: undefined,
27154
27164
  data: pivotValues,
27155
27165
  value: cellValue
@@ -36902,6 +36912,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
36902
36912
  }
36903
36913
  };
36904
36914
  Toolbar$$1.prototype.multipleAxesCheckbox = function (args) {
36915
+ var _this_1 = this;
36905
36916
  if (this.parent.element.id + '_' + 'multipleAxes' === args.element.id) {
36906
36917
  var inputCheckbox = createElement('input', {
36907
36918
  id: this.parent.element.id + '_' + 'checkBox'
@@ -36912,6 +36923,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
36912
36923
  label: this.parent.localeObj.getConstant('multipleAxes'),
36913
36924
  cssClass: 'e-multipleAxes',
36914
36925
  checked: this.parent.chartSettings.enableMultipleAxis,
36926
+ change: function (args) {
36927
+ document.getElementById(_this_1.parent.element.id + '_' + 'multipleAxes').click();
36928
+ },
36915
36929
  enableRtl: this.parent.enableRtl,
36916
36930
  locale: this.parent.locale
36917
36931
  });
@@ -36940,6 +36954,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
36940
36954
  label: this.parent.localeObj.getConstant('showLegend'),
36941
36955
  checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
36942
36956
  cssClass: 'e-showLegend',
36957
+ change: function (args) {
36958
+ document.getElementById(_this_1.parent.element.id + '_' + 'showLegend').click();
36959
+ },
36943
36960
  enableRtl: this.parent.enableRtl,
36944
36961
  locale: this.parent.locale
36945
36962
  });