@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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-pivotview.umd.min.js +2 -2
- package/dist/ej2-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-pivotview.es2015.js +26 -7
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +27 -7
- package/dist/es6/ej2-pivotview.es5.js.map +1 -1
- package/dist/global/ej2-pivotview.min.js +2 -2
- package/dist/global/ej2-pivotview.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +16 -16
- package/src/base/engine.js +4 -2
- package/src/common/popups/toolbar.js +7 -0
- package/src/pivotview/actions/excel-export.js +4 -5
- package/src/pivotview/base/pivotview.js +12 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.50
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-pivotview@19.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-+FvpR4z9zfuGPOEtf+JWydQI5oztIN3ntgS2NFz5+x8KnmYRSAPHu1UAN1Ye2x5Rnz1fTEcCWjQQ6PaCAqW7yw==",
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-19.4.48.tgz",
|
|
27
|
+
"_shasum": "fbc8d464e24536440a7dd416cca4b624dafd112b",
|
|
28
28
|
"_spec": "@syncfusion/ej2-pivotview@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~19.4.48",
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.4.
|
|
41
|
-
"@syncfusion/ej2-charts": "~19.4.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.50",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.4.50",
|
|
41
|
+
"@syncfusion/ej2-charts": "~19.4.50",
|
|
42
42
|
"@syncfusion/ej2-compression": "~19.4.48",
|
|
43
|
-
"@syncfusion/ej2-data": "~19.4.
|
|
44
|
-
"@syncfusion/ej2-dropdowns": "~19.4.
|
|
45
|
-
"@syncfusion/ej2-excel-export": "~19.4.
|
|
43
|
+
"@syncfusion/ej2-data": "~19.4.50",
|
|
44
|
+
"@syncfusion/ej2-dropdowns": "~19.4.50",
|
|
45
|
+
"@syncfusion/ej2-excel-export": "~19.4.50",
|
|
46
46
|
"@syncfusion/ej2-file-utils": "~19.4.48",
|
|
47
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
47
|
+
"@syncfusion/ej2-grids": "~19.4.50",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~19.4.48",
|
|
49
49
|
"@syncfusion/ej2-lists": "~19.4.48",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
51
|
-
"@syncfusion/ej2-pdf-export": "~19.4.
|
|
52
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~19.4.50",
|
|
51
|
+
"@syncfusion/ej2-pdf-export": "~19.4.50",
|
|
52
|
+
"@syncfusion/ej2-popups": "~19.4.50",
|
|
53
53
|
"@syncfusion/ej2-splitbuttons": "~19.4.48",
|
|
54
|
-
"@syncfusion/ej2-svg-base": "~19.4.
|
|
54
|
+
"@syncfusion/ej2-svg-base": "~19.4.50"
|
|
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.
|
|
81
|
+
"version": "19.4.50",
|
|
82
82
|
"sideEffects": false
|
|
83
83
|
}
|
package/src/base/engine.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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.
|
|
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:
|
|
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:
|
|
195
|
+
cell: pivotCell,
|
|
197
196
|
column: undefined,
|
|
198
197
|
data: pivotValues,
|
|
199
198
|
value: cellValue
|
|
@@ -1269,6 +1269,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1269
1269
|
var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
1270
1270
|
/* eslint-disable */
|
|
1271
1271
|
var columnRender = this.gridSettings['columnRender'];
|
|
1272
|
+
var excelQueryCellInfo = this.gridSettings['excelQueryCellInfo'];
|
|
1273
|
+
var excelHeaderQueryCellInfo = this.gridSettings['excelHeaderQueryCellInfo'];
|
|
1274
|
+
var pdfQueryCellInfo = this.gridSettings['pdfQueryCellInfo'];
|
|
1275
|
+
var pdfHeaderQueryCellInfo = this.gridSettings['pdfHeaderQueryCellInfo'];
|
|
1272
1276
|
var chartLoadEvent = this.chartSettings['load'];
|
|
1273
1277
|
var chartLoadedEvent = this.chartSettings['loaded'];
|
|
1274
1278
|
var chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -1278,6 +1282,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1278
1282
|
var chartPointClickEvent = this.chartSettings['pointClick'];
|
|
1279
1283
|
var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
1280
1284
|
this.gridSettings['columnRender'] = undefined;
|
|
1285
|
+
this.gridSettings['excelQueryCellInfo'] = undefined;
|
|
1286
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = undefined;
|
|
1287
|
+
this.gridSettings['pdfQueryCellInfo'] = undefined;
|
|
1288
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = undefined;
|
|
1281
1289
|
this.chartSettings['tooltipRender'] = undefined;
|
|
1282
1290
|
this.chartSettings['load'] = undefined;
|
|
1283
1291
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -1288,6 +1296,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1288
1296
|
this.chartSettings['pointClick'] = undefined;
|
|
1289
1297
|
var persistData = this.addOnPersist(keyEntity);
|
|
1290
1298
|
this.gridSettings['columnRender'] = columnRender;
|
|
1299
|
+
this.gridSettings['excelQueryCellInfo'] = excelQueryCellInfo;
|
|
1300
|
+
this.gridSettings['excelHeaderQueryCellInfo'] = excelHeaderQueryCellInfo;
|
|
1301
|
+
this.gridSettings['pdfQueryCellInfo'] = pdfQueryCellInfo;
|
|
1302
|
+
this.gridSettings['pdfHeaderQueryCellInfo'] = pdfHeaderQueryCellInfo;
|
|
1291
1303
|
this.chartSettings['load'] = chartLoadEvent;
|
|
1292
1304
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
1293
1305
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|