@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.47
3
+ * version : 19.4.53
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.43",
3
+ "_id": "@syncfusion/ej2-pivotview@19.4.52",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-EDMViT3DDtBG78Vu8tUBvOo/DCVNS0gNonzwBPKaAvl1mIxDE04V0W8zQnF4+snkIS7OFj35ffNCoRL5Py/UnQ==",
5
+ "_integrity": "sha512-Asskm8xTGJzP1lrqcSUg9lNwpjQVBfpc5WMnbk4zVimov7J9/uM8/esPp1Id5rhfT8zVXjthSv0r5krjRXt0bw==",
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.43.tgz",
27
- "_shasum": "201d8229eef37ac997d966855eba1d7b84e7f68b",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-19.4.52.tgz",
27
+ "_shasum": "8d65b6bfbe42d6e03169be6b9d5627483e9a8d67",
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.47",
42
- "@syncfusion/ej2-compression": "~19.4.38",
43
- "@syncfusion/ej2-data": "~19.4.47",
44
- "@syncfusion/ej2-dropdowns": "~19.4.47",
45
- "@syncfusion/ej2-excel-export": "~19.4.38",
46
- "@syncfusion/ej2-file-utils": "~19.4.38",
47
- "@syncfusion/ej2-grids": "~19.4.47",
48
- "@syncfusion/ej2-inputs": "~19.4.47",
49
- "@syncfusion/ej2-lists": "~19.4.38",
50
- "@syncfusion/ej2-navigations": "~19.4.47",
51
- "@syncfusion/ej2-pdf-export": "~19.4.43",
52
- "@syncfusion/ej2-popups": "~19.4.47",
53
- "@syncfusion/ej2-splitbuttons": "~19.4.47",
54
- "@syncfusion/ej2-svg-base": "~19.4.42"
38
+ "@syncfusion/ej2-base": "~19.4.52",
39
+ "@syncfusion/ej2-buttons": "~19.4.53",
40
+ "@syncfusion/ej2-calendars": "~19.4.52",
41
+ "@syncfusion/ej2-charts": "~19.4.53",
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.53",
48
+ "@syncfusion/ej2-inputs": "~19.4.52",
49
+ "@syncfusion/ej2-lists": "~19.4.52",
50
+ "@syncfusion/ej2-navigations": "~19.4.53",
51
+ "@syncfusion/ej2-pdf-export": "~19.4.52",
52
+ "@syncfusion/ej2-popups": "~19.4.53",
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.47",
81
+ "version": "19.4.53",
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
  }
@@ -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
  });
@@ -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
@@ -893,13 +893,10 @@ var PivotView = /** @class */ (function (_super) {
893
893
  this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
894
894
  this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
895
895
  this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
896
- this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
897
- this.gridSettings.pdfHeaderQueryCellInfo.bind(this) : undefined;
898
- this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo.bind(this) : undefined;
899
- this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ?
900
- this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
901
- this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
902
- 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;
903
900
  this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
904
901
  this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
905
902
  this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
@@ -1269,6 +1266,10 @@ var PivotView = /** @class */ (function (_super) {
1269
1266
  var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
1270
1267
  /* eslint-disable */
1271
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'];
1272
1273
  var chartLoadEvent = this.chartSettings['load'];
1273
1274
  var chartLoadedEvent = this.chartSettings['loaded'];
1274
1275
  var chartTextRenderEvent = this.chartSettings['textRender'];
@@ -1278,6 +1279,10 @@ var PivotView = /** @class */ (function (_super) {
1278
1279
  var chartPointClickEvent = this.chartSettings['pointClick'];
1279
1280
  var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
1280
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;
1281
1286
  this.chartSettings['tooltipRender'] = undefined;
1282
1287
  this.chartSettings['load'] = undefined;
1283
1288
  this.chartSettings['loaded'] = undefined;
@@ -1288,6 +1293,10 @@ var PivotView = /** @class */ (function (_super) {
1288
1293
  this.chartSettings['pointClick'] = undefined;
1289
1294
  var persistData = this.addOnPersist(keyEntity);
1290
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;
1291
1300
  this.chartSettings['load'] = chartLoadEvent;
1292
1301
  this.chartSettings['loaded'] = chartLoadedEvent;
1293
1302
  this.chartSettings['textRender'] = chartTextRenderEvent;
@@ -1098,6 +1098,7 @@
1098
1098
 
1099
1099
  .e-pivotview .e-grid .e-gridheader {
1100
1100
  border-bottom-width: 1px;
1101
+ border-bottom-color: #444c54;
1101
1102
  }
1102
1103
 
1103
1104
  .e-pivotview .e-gtot {
@@ -1100,6 +1100,7 @@
1100
1100
 
1101
1101
  .e-pivotview .e-grid .e-gridheader {
1102
1102
  border-bottom-width: 1px;
1103
+ border-bottom-color: #dee2e6;
1103
1104
  }
1104
1105
 
1105
1106
  .e-pivotview .e-gtot {
@@ -43,6 +43,9 @@
43
43
 
44
44
  .e-grid .e-gridheader {
45
45
  border-bottom-width: 1px;
46
+ @if($skin-name == 'bootstrap5') {
47
+ border-bottom-color: $border-light;
48
+ }
46
49
  }
47
50
 
48
51
  .e-gtot {
@@ -1098,6 +1098,7 @@
1098
1098
 
1099
1099
  .e-pivotview .e-grid .e-gridheader {
1100
1100
  border-bottom-width: 1px;
1101
+ border-bottom-color: #444c54;
1101
1102
  }
1102
1103
 
1103
1104
  .e-pivotview .e-gtot {
@@ -1100,6 +1100,7 @@
1100
1100
 
1101
1101
  .e-pivotview .e-grid .e-gridheader {
1102
1102
  border-bottom-width: 1px;
1103
+ border-bottom-color: #dee2e6;
1103
1104
  }
1104
1105
 
1105
1106
  .e-pivotview .e-gtot {