@syncfusion/ej2-pivotview 19.4.42 → 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 +32 -2
- 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 +172 -65
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +173 -65
- 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 +22 -22
- package/src/base/engine.js +4 -2
- package/src/common/actions/dataSource-update.d.ts +1 -1
- package/src/common/actions/dataSource-update.js +5 -0
- package/src/common/actions/node-state-modified.js +1 -1
- package/src/common/grouping-bar/grouping-bar.js +1 -1
- package/src/common/popups/toolbar.js +19 -12
- package/src/pivotchart/base/pivotchart.js +1 -1
- package/src/pivotfieldlist/base/field-list.d.ts +2 -0
- package/src/pivotfieldlist/base/field-list.js +4 -2
- package/src/pivotfieldlist/renderer/axis-table-renderer.js +1 -1
- package/src/pivotfieldlist/renderer/tree-renderer.js +16 -11
- package/src/pivotview/actions/excel-export.js +52 -21
- package/src/pivotview/actions/pdf-export.js +35 -6
- package/src/pivotview/actions/virtualscroll.js +1 -1
- package/src/pivotview/base/pivotview.d.ts +2 -0
- package/src/pivotview/base/pivotview.js +33 -6
|
@@ -315,6 +315,8 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
315
315
|
_this_1.isServerWaitingPopup = false;
|
|
316
316
|
/** @hidden */
|
|
317
317
|
_this_1.actionObj = {};
|
|
318
|
+
/** @hidden */
|
|
319
|
+
_this_1.destroyEngine = false;
|
|
318
320
|
_this_1.pivotView = _this_1;
|
|
319
321
|
setValue('mergePersistData', _this_1.mergePersistPivotData, _this_1);
|
|
320
322
|
return _this_1;
|
|
@@ -1267,6 +1269,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1267
1269
|
var keyEntity = ['dataSourceSettings', 'pivotValues', 'gridSettings', 'chartSettings', 'displayOption'];
|
|
1268
1270
|
/* eslint-disable */
|
|
1269
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'];
|
|
1270
1276
|
var chartLoadEvent = this.chartSettings['load'];
|
|
1271
1277
|
var chartLoadedEvent = this.chartSettings['loaded'];
|
|
1272
1278
|
var chartTextRenderEvent = this.chartSettings['textRender'];
|
|
@@ -1276,6 +1282,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1276
1282
|
var chartPointClickEvent = this.chartSettings['pointClick'];
|
|
1277
1283
|
var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
1278
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;
|
|
1279
1289
|
this.chartSettings['tooltipRender'] = undefined;
|
|
1280
1290
|
this.chartSettings['load'] = undefined;
|
|
1281
1291
|
this.chartSettings['loaded'] = undefined;
|
|
@@ -1286,6 +1296,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1286
1296
|
this.chartSettings['pointClick'] = undefined;
|
|
1287
1297
|
var persistData = this.addOnPersist(keyEntity);
|
|
1288
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;
|
|
1289
1303
|
this.chartSettings['load'] = chartLoadEvent;
|
|
1290
1304
|
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
1291
1305
|
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
@@ -1466,24 +1480,37 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1466
1480
|
this.displayOption.primary : newProp.displayOption.view);
|
|
1467
1481
|
if (this.showGroupingBar || this.showFieldList) {
|
|
1468
1482
|
if (this.showFieldList && this.pivotFieldListModule) {
|
|
1483
|
+
this.pivotFieldListModule.destroyEngine = true;
|
|
1469
1484
|
this.pivotFieldListModule.destroy();
|
|
1485
|
+
this.pivotFieldListModule.destroyEngine = false;
|
|
1470
1486
|
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1487
|
+
/**
|
|
1488
|
+
* Below lines are affected the grouping bar render between table and chart.
|
|
1489
|
+
* In "Init subcomponent" function, grouping bar rendered properly for table and chart view.
|
|
1490
|
+
* So, The below lines are commanded out.
|
|
1491
|
+
*/
|
|
1492
|
+
// if (this.showGroupingBar && this.groupingBarModule) {
|
|
1493
|
+
// this.groupingBarModule.destroy();
|
|
1494
|
+
// }
|
|
1474
1495
|
this.notify(events.initSubComponent, this);
|
|
1475
1496
|
}
|
|
1476
1497
|
if (!this.grid && newProp.displayOption.view !== 'Chart') {
|
|
1477
1498
|
this.renderEmptyGrid();
|
|
1478
1499
|
if (newProp.displayOption.view === 'Table') {
|
|
1479
1500
|
if (this.pivotChartModule) {
|
|
1501
|
+
this.destroyEngine = true;
|
|
1480
1502
|
this.pivotChartModule.destroy();
|
|
1503
|
+
this.destroyEngine = false;
|
|
1481
1504
|
this.chart = undefined;
|
|
1482
1505
|
this.pivotChartModule = undefined;
|
|
1483
1506
|
}
|
|
1484
1507
|
}
|
|
1485
1508
|
}
|
|
1486
1509
|
else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
|
|
1510
|
+
if (this.grid) {
|
|
1511
|
+
this.grid.destroy();
|
|
1512
|
+
this.grid = undefined;
|
|
1513
|
+
}
|
|
1487
1514
|
this.pivotChartModule = new PivotChart();
|
|
1488
1515
|
}
|
|
1489
1516
|
}
|
|
@@ -2489,12 +2516,12 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2489
2516
|
var hasField = false;
|
|
2490
2517
|
if (cell && this.dataType === 'olap') {
|
|
2491
2518
|
var measureName = cell.actualText;
|
|
2492
|
-
if (!isNullOrUndefined(measureName) && !this.olapEngineModule.fieldList[measureName]) {
|
|
2519
|
+
if (!isNullOrUndefined(measureName) && this.olapEngineModule.fieldList && !this.olapEngineModule.fieldList[measureName]) {
|
|
2493
2520
|
var tupleInfo = this.olapEngineModule.tupRowInfo;
|
|
2494
2521
|
measureName = cell.rowOrdinal > -1 && tupleInfo.length > 0 && tupleInfo[cell.rowOrdinal] &&
|
|
2495
2522
|
!isNullOrUndefined(tupleInfo[cell.rowOrdinal].measureName) ? tupleInfo[cell.rowOrdinal].measureName : measureName;
|
|
2496
2523
|
}
|
|
2497
|
-
if (this.olapEngineModule.fieldList[measureName]) {
|
|
2524
|
+
if (this.olapEngineModule.fieldList && this.olapEngineModule.fieldList[measureName]) {
|
|
2498
2525
|
var field = this.olapEngineModule.fieldList[measureName];
|
|
2499
2526
|
aggregateType = field.isCalculatedField ? field.type : field.aggregateType;
|
|
2500
2527
|
caption = (this.olapEngineModule.dataFields[measureName] &&
|
|
@@ -2504,7 +2531,7 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2504
2531
|
}
|
|
2505
2532
|
}
|
|
2506
2533
|
else {
|
|
2507
|
-
if (cell && this.engineModule.fieldList[cell.actualText]) {
|
|
2534
|
+
if (cell && this.engineModule.fieldList && this.engineModule.fieldList[cell.actualText]) {
|
|
2508
2535
|
var field = this.engineModule.fieldList[cell.actualText];
|
|
2509
2536
|
aggregateType = field.aggregateType;
|
|
2510
2537
|
if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||
|