@syncfusion/ej2-pivotview 19.3.47 → 19.3.48

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.
@@ -4294,7 +4294,7 @@ class PivotEngine {
4294
4294
  for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
4295
4295
  if (!isValueIndexFound) {
4296
4296
  for (vln = 0; vln < vlt; vln++) {
4297
- if (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
4297
+ if (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter).indexOf(this.values[vln].name) > -1) {
4298
4298
  isValueIndexFound = true;
4299
4299
  isValueCellUpdated = true;
4300
4300
  break;
@@ -4329,7 +4329,7 @@ class PivotEngine {
4329
4329
  for (let cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
4330
4330
  for (let vln = 0; vln < vlt; vln++) {
4331
4331
  if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
4332
- if (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
4332
+ if (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().split(this.valueSortSettings.headerDelimiter).indexOf(this.values[vln].name) > -1) {
4333
4333
  this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
4334
4334
  dln = data[tnum].length;
4335
4335
  }
@@ -8015,7 +8015,7 @@ class Render {
8015
8015
  if (tCell && (this.parent.notEmpty) && this.engine.headerContent) {
8016
8016
  let customClass = this.parent.hyperlinkSettings.cssClass;
8017
8017
  let cell = args.data[0];
8018
- let isRowFieldsAvail = cell.valueSort.levelName === (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row' &&
8018
+ let isRowFieldsAvail = cell.valueSort && cell.valueSort.levelName === (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row' &&
8019
8019
  this.parent.localeObj.getConstant('grandTotal') + (this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText));
8020
8020
  tCell.setAttribute('index', cell.rowIndex ? cell.rowIndex.toString() : '0');
8021
8021
  if (tCell.getAttribute('aria-colindex') === '0') {
@@ -8102,8 +8102,9 @@ class Render {
8102
8102
  }));
8103
8103
  let vSort = this.parent.pivotView.dataSourceSettings.valueSortSettings;
8104
8104
  if (this.parent.enableValueSorting) {
8105
- if (vSort && vSort.headerText && this.parent.dataSourceSettings.valueAxis === 'row'
8106
- && this.parent.pivotValues[Number(tCell.getAttribute('index'))][0].valueSort.levelName) {
8105
+ if (vSort && vSort.headerText && this.parent.dataSourceSettings.valueAxis === 'row' &&
8106
+ this.parent.pivotValues[Number(tCell.getAttribute('index'))][0] &&
8107
+ this.parent.pivotValues[Number(tCell.getAttribute('index'))][0].valueSort.levelName) {
8107
8108
  if (this.parent.pivotValues[Number(tCell.getAttribute('index'))][0].valueSort.levelName
8108
8109
  === vSort.headerText) {
8109
8110
  let style = (tCell.querySelector('.e-expand') || tCell.querySelector('.e-collapse')) ?
@@ -8332,7 +8333,7 @@ class Render {
8332
8333
  else {
8333
8334
  tCell = this.onOlapColumnCellBoundEvent(tCell, cell);
8334
8335
  }
8335
- let isColumnFieldsAvail = (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column' &&
8336
+ let isColumnFieldsAvail = (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column' && cell.valueSort &&
8336
8337
  cell.valueSort.levelName === (this.parent.localeObj.getConstant('grandTotal') + (this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText)));
8337
8338
  if (cell.type || isColumnFieldsAvail) {
8338
8339
  tCell.classList.add(cell.type === 'grand sum' ? 'e-gtot' : 'e-stot');