@syncfusion/ej2-pivotview 19.3.55 → 19.3.57

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.
@@ -4169,6 +4169,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
4169
4169
  var summCell = headers[headers.length - 1];
4170
4170
  if (summCell && summCell.type === 'grand sum') {
4171
4171
  summCell.index = this.filterMembers;
4172
+ summCell.indexObject = {};
4172
4173
  /* eslint-disable */
4173
4174
  for (var ln = 0, lt_1 = this.filterMembers.length; ln < lt_1; ln++) {
4174
4175
  summCell.indexObject[this.filterMembers[ln]] = this.filterMembers[ln];
@@ -4349,10 +4350,11 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
4349
4350
  row.colIndex = 0;
4350
4351
  row.rowIndex = tnum;
4351
4352
  var isRowFieldsAvail = false;
4353
+ var delimiter = this.dataSourceSettings.valueSortSettings.headerDelimiter;
4352
4354
  if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && this.dataSourceSettings.values.length > 1) {
4353
4355
  this.rowIndex = (isNullOrUndefined(this.rowIndex) && !isLeastNode && this.dataSourceSettings.rows.length === 0) ? row.index : this.rowIndex;
4354
- isRowFieldsAvail = (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total.') !== 0);
4355
- if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total.') === 0) {
4356
+ isRowFieldsAvail = (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName && row.valueSort.levelName.toString().indexOf('Grand Total' + delimiter) !== 0);
4357
+ if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total' + delimiter) === 0) {
4356
4358
  row.index = this.rowIndex;
4357
4359
  }
4358
4360
  }
@@ -23206,12 +23208,32 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23206
23208
  /* eslint-disable */
23207
23209
  var columnRender = this.gridSettings['columnRender'];
23208
23210
  var chartLoadEvent = this.chartSettings['load'];
23211
+ var chartLoadedEvent = this.chartSettings['loaded'];
23212
+ var chartTextRenderEvent = this.chartSettings['textRender'];
23213
+ var chartPointRenderEvent = this.chartSettings['pointRender'];
23214
+ var chartSeriesRenderEvent = this.chartSettings['seriesRender'];
23215
+ var chartLegendRenderEvent = this.chartSettings['legendRender'];
23216
+ var chartPointClickEvent = this.chartSettings['pointClick'];
23217
+ var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
23209
23218
  this.gridSettings['columnRender'] = undefined;
23210
23219
  this.chartSettings['tooltipRender'] = undefined;
23211
23220
  this.chartSettings['load'] = undefined;
23221
+ this.chartSettings['loaded'] = undefined;
23222
+ this.chartSettings['textRender'] = undefined;
23223
+ this.chartSettings['pointRender'] = undefined;
23224
+ this.chartSettings['seriesRender'] = undefined;
23225
+ this.chartSettings['legendRender'] = undefined;
23226
+ this.chartSettings['pointClick'] = undefined;
23212
23227
  var persistData = this.addOnPersist(keyEntity);
23213
23228
  this.gridSettings['columnRender'] = columnRender;
23214
23229
  this.chartSettings['load'] = chartLoadEvent;
23230
+ this.chartSettings['loaded'] = chartLoadedEvent;
23231
+ this.chartSettings['textRender'] = chartTextRenderEvent;
23232
+ this.chartSettings['pointRender'] = chartPointRenderEvent;
23233
+ this.chartSettings['seriesRender'] = chartSeriesRenderEvent;
23234
+ this.chartSettings['legendRender'] = chartLegendRenderEvent;
23235
+ this.chartSettings['pointClick'] = chartPointClickEvent;
23236
+ this.chartSettings['tooltipRender'] = chartTooltipRenderEvent;
23215
23237
  /* eslint-enable */
23216
23238
  return persistData;
23217
23239
  };
@@ -23464,6 +23486,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
23464
23486
  if (this.element.querySelector('.e-grouping-bar')) {
23465
23487
  this.element.querySelector('.e-grouping-bar').remove();
23466
23488
  }
23489
+ else if (this.groupingBarModule) {
23490
+ this.groupingBarModule.renderLayout();
23491
+ }
23467
23492
  if (isNullOrUndefined(newProp.showFieldList))
23468
23493
  this.renderPivotGrid();
23469
23494
  break;