@syncfusion/ej2-pivotview 19.4.48 → 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.
@@ -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
  }
@@ -23500,6 +23502,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23500
23502
  var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
23501
23503
  /* eslint-disable */
23502
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'];
23503
23509
  var chartLoadEvent = this.chartSettings['load'];
23504
23510
  var chartLoadedEvent = this.chartSettings['loaded'];
23505
23511
  var chartTextRenderEvent = this.chartSettings['textRender'];
@@ -23509,6 +23515,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23509
23515
  var chartPointClickEvent = this.chartSettings['pointClick'];
23510
23516
  var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
23511
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;
23512
23522
  this.chartSettings['tooltipRender'] = undefined;
23513
23523
  this.chartSettings['load'] = undefined;
23514
23524
  this.chartSettings['loaded'] = undefined;
@@ -23519,6 +23529,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23519
23529
  this.chartSettings['pointClick'] = undefined;
23520
23530
  var persistData = this.addOnPersist(keyEntity);
23521
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;
23522
23536
  this.chartSettings['load'] = chartLoadEvent;
23523
23537
  this.chartSettings['loaded'] = chartLoadedEvent;
23524
23538
  this.chartSettings['textRender'] = chartTextRenderEvent;
@@ -27080,7 +27094,6 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27080
27094
  this.engine.tupRowInfo[pivotCell.rowOrdinal].measureName :
27081
27095
  pivotCell.actualText;
27082
27096
  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
27097
  var headerStyle = { bold: true, vAlign: 'Center', wrapText: true, indent: cCnt === 0 ? pivotCell.level * 10 : 0 };
27085
27098
  if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
27086
27099
  var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
@@ -27130,8 +27143,8 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27130
27143
  }
27131
27144
  }
27132
27145
  }
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;
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;
27135
27148
  lastCell.style.fontColor = lastCell.style.fontColor ? lastCell.style.fontColor : pivotCell.style.color;
27136
27149
  lastCell.style.fontName = lastCell.style.fontName ? lastCell.style.fontName : pivotCell.style.fontFamily;
27137
27150
  lastCell.style.fontSize = lastCell.style.fontSize ? Number(lastCell.style.fontSize) : Number(pivotCell.style.fontSize.split('px')[0]);
@@ -27142,14 +27155,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
27142
27155
  if (pivotCell.axis === 'column') {
27143
27156
  excelHeaderQueryCellInfoArgs = {
27144
27157
  style: headerStyle,
27145
- cell: pivotCells,
27158
+ cell: pivotCell,
27146
27159
  };
27147
27160
  this.parent.trigger(excelHeaderQueryCellInfo, excelHeaderQueryCellInfoArgs);
27148
27161
  }
27149
27162
  else {
27150
27163
  excelQueryCellInfoArgs = {
27151
27164
  style: styles,
27152
- cell: pivotCells,
27165
+ cell: pivotCell,
27153
27166
  column: undefined,
27154
27167
  data: pivotValues,
27155
27168
  value: cellValue
@@ -36902,6 +36915,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
36902
36915
  }
36903
36916
  };
36904
36917
  Toolbar$$1.prototype.multipleAxesCheckbox = function (args) {
36918
+ var _this_1 = this;
36905
36919
  if (this.parent.element.id + '_' + 'multipleAxes' === args.element.id) {
36906
36920
  var inputCheckbox = createElement('input', {
36907
36921
  id: this.parent.element.id + '_' + 'checkBox'
@@ -36912,6 +36926,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
36912
36926
  label: this.parent.localeObj.getConstant('multipleAxes'),
36913
36927
  cssClass: 'e-multipleAxes',
36914
36928
  checked: this.parent.chartSettings.enableMultipleAxis,
36929
+ change: function (args) {
36930
+ document.getElementById(_this_1.parent.element.id + '_' + 'multipleAxes').click();
36931
+ },
36915
36932
  enableRtl: this.parent.enableRtl,
36916
36933
  locale: this.parent.locale
36917
36934
  });
@@ -36940,6 +36957,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
36940
36957
  label: this.parent.localeObj.getConstant('showLegend'),
36941
36958
  checked: this.getLableState(this.parent.chartSettings.chartSeries.type),
36942
36959
  cssClass: 'e-showLegend',
36960
+ change: function (args) {
36961
+ document.getElementById(_this_1.parent.element.id + '_' + 'showLegend').click();
36962
+ },
36943
36963
  enableRtl: this.parent.enableRtl,
36944
36964
  locale: this.parent.locale
36945
36965
  });