@syncfusion/ej2-pivotview 19.3.57 → 19.4.42
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +76 -0
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +56 -0
- package/CHANGELOG.md +40 -27
- package/README.md +1 -1
- 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 +2052 -1101
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +2068 -1111
- 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.d.ts +17 -1
- package/src/base/engine.js +78 -27
- package/src/base/export-util.d.ts +17 -0
- package/src/base/export-util.js +245 -0
- package/src/base/olap/engine.d.ts +7 -0
- package/src/base/olap/engine.js +138 -35
- package/src/base/util.d.ts +0 -9
- package/src/base/util.js +2 -215
- package/src/common/actions/field-list.js +1 -1
- package/src/common/actions/pivot-button.d.ts +5 -8
- package/src/common/actions/pivot-button.js +188 -171
- package/src/common/base/constant.d.ts +186 -0
- package/src/common/base/constant.js +186 -0
- package/src/common/base/css-constant.d.ts +2 -0
- package/src/common/base/css-constant.js +2 -0
- package/src/common/base/enum.d.ts +11 -0
- package/src/common/base/interface.d.ts +272 -2
- package/src/common/calculatedfield/calculated-field.js +108 -93
- package/src/common/conditionalformatting/conditional-formatting.js +8 -2
- package/src/common/grouping-bar/grouping-bar.js +1 -1
- package/src/common/popups/aggregate-menu.js +57 -35
- package/src/common/popups/drillthrough-dialog.js +187 -139
- package/src/common/popups/filter-dialog.d.ts +1 -0
- package/src/common/popups/filter-dialog.js +22 -1
- package/src/common/popups/formatting-dialog.js +4 -0
- package/src/common/popups/grouping.js +2 -1
- package/src/common/popups/toolbar.js +305 -203
- package/src/pivotchart/base/pivotchart.js +36 -15
- package/src/pivotfieldlist/base/field-list-model.d.ts +49 -1
- package/src/pivotfieldlist/base/field-list.d.ts +55 -1
- package/src/pivotfieldlist/base/field-list.js +68 -1
- package/src/pivotfieldlist/renderer/dialog-renderer.js +38 -15
- package/src/pivotfieldlist/renderer/tree-renderer.js +35 -22
- package/src/pivotview/actions/drill-through.js +1 -1
- package/src/pivotview/actions/excel-export.js +10 -11
- package/src/pivotview/actions/pdf-export.js +13 -6
- package/src/pivotview/actions/virtualscroll.d.ts +1 -0
- package/src/pivotview/actions/virtualscroll.js +6 -2
- package/src/pivotview/base/pivotview-model.d.ts +46 -1
- package/src/pivotview/base/pivotview.d.ts +56 -2
- package/src/pivotview/base/pivotview.js +288 -107
- package/src/pivotview/model/chartsettings-model.d.ts +2 -2
- package/src/pivotview/model/chartsettings.d.ts +2 -2
- package/src/pivotview/model/chartsettings.js +2 -2
- package/src/pivotview/model/datasourcesettings-model.d.ts +8 -1
- package/src/pivotview/model/datasourcesettings.d.ts +7 -0
- package/src/pivotview/model/datasourcesettings.js +3 -0
- package/src/pivotview/renderer/render.d.ts +2 -1
- package/src/pivotview/renderer/render.js +39 -6
- package/styles/bootstrap-dark.css +145 -118
- package/styles/bootstrap.css +145 -118
- package/styles/bootstrap4.css +144 -95
- package/styles/bootstrap5-dark.css +250 -182
- package/styles/bootstrap5.css +245 -175
- package/styles/fabric-dark.css +147 -117
- package/styles/fabric.css +145 -116
- package/styles/highcontrast-light.css +146 -116
- package/styles/highcontrast.css +148 -118
- package/styles/material-dark.css +138 -111
- package/styles/material.css +138 -111
- package/styles/pivotfieldlist/_bootstrap-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap4-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap5-definition.scss +8 -11
- package/styles/pivotfieldlist/_fabric-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_fabric-definition.scss +1 -4
- package/styles/pivotfieldlist/_fluent-definition.scss +177 -0
- package/styles/pivotfieldlist/_highcontrast-definition.scss +1 -4
- package/styles/pivotfieldlist/_highcontrast-light-definition.scss +1 -4
- package/styles/pivotfieldlist/_layout.scss +199 -109
- package/styles/pivotfieldlist/_material-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_material-definition.scss +1 -4
- package/styles/pivotfieldlist/_tailwind-definition.scss +6 -9
- package/styles/pivotfieldlist/_theme.scss +213 -47
- package/styles/pivotfieldlist/bootstrap-dark.css +79 -72
- package/styles/pivotfieldlist/bootstrap.css +79 -72
- package/styles/pivotfieldlist/bootstrap4.css +74 -53
- package/styles/pivotfieldlist/bootstrap5-dark.css +145 -103
- package/styles/pivotfieldlist/bootstrap5.css +145 -103
- package/styles/pivotfieldlist/fabric-dark.css +79 -72
- package/styles/pivotfieldlist/fabric.css +79 -72
- package/styles/pivotfieldlist/highcontrast-light.css +79 -72
- package/styles/pivotfieldlist/highcontrast.css +79 -72
- package/styles/pivotfieldlist/icons/_bootstrap5.scss +2 -2
- package/styles/pivotfieldlist/icons/_fluent.scss +352 -0
- package/styles/pivotfieldlist/icons/_tailwind.scss +2 -2
- package/styles/pivotfieldlist/material-dark.css +74 -67
- package/styles/pivotfieldlist/material.css +74 -67
- package/styles/pivotfieldlist/tailwind-dark.css +168 -95
- package/styles/pivotfieldlist/tailwind.css +170 -97
- package/styles/pivotview/_bootstrap-dark-definition.scss +9 -6
- package/styles/pivotview/_bootstrap-definition.scss +9 -6
- package/styles/pivotview/_bootstrap4-definition.scss +10 -7
- package/styles/pivotview/_bootstrap5-definition.scss +12 -9
- package/styles/pivotview/_fabric-dark-definition.scss +8 -5
- package/styles/pivotview/_fabric-definition.scss +7 -4
- package/styles/pivotview/_fluent-definition.scss +126 -0
- package/styles/pivotview/_highcontrast-definition.scss +8 -5
- package/styles/pivotview/_highcontrast-light-definition.scss +7 -4
- package/styles/pivotview/_layout.scss +119 -64
- package/styles/pivotview/_material-dark-definition.scss +7 -4
- package/styles/pivotview/_material-definition.scss +8 -4
- package/styles/pivotview/_tailwind-definition.scss +8 -5
- package/styles/pivotview/_theme.scss +124 -70
- package/styles/pivotview/bootstrap-dark.css +66 -46
- package/styles/pivotview/bootstrap.css +66 -46
- package/styles/pivotview/bootstrap4.css +70 -42
- package/styles/pivotview/bootstrap5-dark.css +99 -73
- package/styles/pivotview/bootstrap5-dark.scss +0 -1
- package/styles/pivotview/bootstrap5.css +100 -72
- package/styles/pivotview/fabric-dark.css +68 -45
- package/styles/pivotview/fabric.css +66 -44
- package/styles/pivotview/highcontrast-light.css +67 -44
- package/styles/pivotview/highcontrast.css +69 -46
- package/styles/pivotview/icons/_bootstrap4.scss +1 -1
- package/styles/pivotview/icons/_bootstrap5.scss +1 -1
- package/styles/pivotview/icons/_fluent.scss +183 -0
- package/styles/pivotview/icons/_tailwind.scss +1 -1
- package/styles/pivotview/material-dark.css +64 -44
- package/styles/pivotview/material.css +64 -44
- package/styles/pivotview/tailwind-dark.css +106 -58
- package/styles/pivotview/tailwind-dark.scss +0 -1
- package/styles/pivotview/tailwind.css +107 -57
- package/styles/tailwind-dark.css +280 -159
- package/styles/tailwind.css +277 -154
|
@@ -313,6 +313,8 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
313
313
|
_this_1.request = new XMLHttpRequest();
|
|
314
314
|
/** @hidden */
|
|
315
315
|
_this_1.isServerWaitingPopup = false;
|
|
316
|
+
/** @hidden */
|
|
317
|
+
_this_1.actionObj = {};
|
|
316
318
|
_this_1.pivotView = _this_1;
|
|
317
319
|
setValue('mergePersistData', _this_1.mergePersistPivotData, _this_1);
|
|
318
320
|
return _this_1;
|
|
@@ -355,10 +357,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
355
357
|
modules.push({ args: [this], member: 'grouping' });
|
|
356
358
|
}
|
|
357
359
|
if (this.allowDrillThrough || (this.editSettings && this.editSettings.allowEditing)) {
|
|
358
|
-
modules.push({ args: [this], member: '
|
|
360
|
+
modules.push({ args: [this], member: 'drillThrough' });
|
|
359
361
|
}
|
|
360
362
|
if (this.displayOption.view !== 'Table') {
|
|
361
|
-
modules.push({ args: [this], member: '
|
|
363
|
+
modules.push({ args: [this], member: 'pivotChart' });
|
|
362
364
|
}
|
|
363
365
|
return modules;
|
|
364
366
|
};
|
|
@@ -938,7 +940,7 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
938
940
|
this.setProperties({ gridSettings: { allowSelection: true, selectionSettings: { cellSelectionMode: 'Box', mode: 'Cell', type: 'Multiple' } } }, true);
|
|
939
941
|
}
|
|
940
942
|
if (this.displayOption.view !== 'Table') {
|
|
941
|
-
this.
|
|
943
|
+
this.pivotChartModule = new PivotChart();
|
|
942
944
|
}
|
|
943
945
|
this.currentView = this.currentView ? this.currentView : (this.displayOption.view === 'Both' ?
|
|
944
946
|
this.displayOption.primary : this.displayOption.view);
|
|
@@ -1205,32 +1207,37 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1205
1207
|
};
|
|
1206
1208
|
PivotView.prototype.initialLoad = function () {
|
|
1207
1209
|
var _this_1 = this;
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
try {
|
|
1211
|
+
this.cellTemplateFn = this.templateParser(this.cellTemplate);
|
|
1212
|
+
this.tooltipTemplateFn = this.templateParser(this.tooltipTemplate);
|
|
1213
|
+
if (this.spinnerTemplate) {
|
|
1214
|
+
createSpinner({ target: this.element, template: this.spinnerTemplate }, this.createElement);
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
createSpinner({ target: this.element }, this.createElement);
|
|
1218
|
+
}
|
|
1219
|
+
var loadArgs = {
|
|
1220
|
+
dataSourceSettings: this.dataSourceSettings,
|
|
1221
|
+
pivotview: this,
|
|
1222
|
+
fieldsType: {}
|
|
1223
|
+
};
|
|
1224
|
+
this.trigger(events.load, loadArgs, function (observedArgs) {
|
|
1225
|
+
_this_1.dataSourceSettings = observedArgs.dataSourceSettings;
|
|
1226
|
+
_this_1.fieldsType = observedArgs.fieldsType;
|
|
1227
|
+
_this_1.updateClass();
|
|
1228
|
+
_this_1.notify(events.initSubComponent, {});
|
|
1229
|
+
if (_this_1.dataSourceSettings.mode !== 'Server') {
|
|
1230
|
+
_this_1.notify(events.initialLoad, {});
|
|
1231
|
+
}
|
|
1232
|
+
if (_this_1.isAdaptive) {
|
|
1233
|
+
_this_1.contextMenuModule.render();
|
|
1234
|
+
}
|
|
1235
|
+
_this_1.notify(events.initToolbar, {});
|
|
1236
|
+
});
|
|
1212
1237
|
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1238
|
+
catch (execption) {
|
|
1239
|
+
this.actionFailureMethod(execption);
|
|
1215
1240
|
}
|
|
1216
|
-
var loadArgs = {
|
|
1217
|
-
dataSourceSettings: this.dataSourceSettings,
|
|
1218
|
-
pivotview: this,
|
|
1219
|
-
fieldsType: {}
|
|
1220
|
-
};
|
|
1221
|
-
this.trigger(events.load, loadArgs, function (observedArgs) {
|
|
1222
|
-
_this_1.dataSourceSettings = observedArgs.dataSourceSettings;
|
|
1223
|
-
_this_1.fieldsType = observedArgs.fieldsType;
|
|
1224
|
-
_this_1.updateClass();
|
|
1225
|
-
_this_1.notify(events.initSubComponent, {});
|
|
1226
|
-
if (_this_1.dataSourceSettings.mode !== 'Server') {
|
|
1227
|
-
_this_1.notify(events.initialLoad, {});
|
|
1228
|
-
}
|
|
1229
|
-
if (_this_1.isAdaptive) {
|
|
1230
|
-
_this_1.contextMenuModule.render();
|
|
1231
|
-
}
|
|
1232
|
-
_this_1.notify(events.initToolbar, {});
|
|
1233
|
-
});
|
|
1234
1241
|
};
|
|
1235
1242
|
/**
|
|
1236
1243
|
* Register the internal events.
|
|
@@ -1469,15 +1476,15 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1469
1476
|
if (!this.grid && newProp.displayOption.view !== 'Chart') {
|
|
1470
1477
|
this.renderEmptyGrid();
|
|
1471
1478
|
if (newProp.displayOption.view === 'Table') {
|
|
1472
|
-
if (this.
|
|
1473
|
-
this.
|
|
1479
|
+
if (this.pivotChartModule) {
|
|
1480
|
+
this.pivotChartModule.destroy();
|
|
1474
1481
|
this.chart = undefined;
|
|
1475
|
-
this.
|
|
1482
|
+
this.pivotChartModule = undefined;
|
|
1476
1483
|
}
|
|
1477
1484
|
}
|
|
1478
1485
|
}
|
|
1479
|
-
else if (!this.
|
|
1480
|
-
this.
|
|
1486
|
+
else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
|
|
1487
|
+
this.pivotChartModule = new PivotChart();
|
|
1481
1488
|
}
|
|
1482
1489
|
}
|
|
1483
1490
|
else if (this.showToolbar && !isNullOrUndefined(newProp.displayOption) && newProp.displayOption.view) {
|
|
@@ -1507,12 +1514,12 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1507
1514
|
(newProp.chartSettings.chartSeries && Object.keys(newProp.chartSettings.chartSeries).indexOf('type') !== -1))) {
|
|
1508
1515
|
this.groupingBarModule.renderLayout();
|
|
1509
1516
|
}
|
|
1510
|
-
if (isNullOrUndefined(this.
|
|
1511
|
-
this.
|
|
1517
|
+
if (isNullOrUndefined(this.pivotChartModule) && this.displayOption.view !== 'Table') {
|
|
1518
|
+
this.pivotChartModule = new PivotChart();
|
|
1512
1519
|
}
|
|
1513
1520
|
var engineModule = this.dataType === 'pivot' ? this.engineModule : this.olapEngineModule;
|
|
1514
|
-
if (!isNullOrUndefined(this.
|
|
1515
|
-
this.
|
|
1521
|
+
if (!isNullOrUndefined(this.pivotChartModule) && !isNullOrUndefined(engineModule.pivotValues)) {
|
|
1522
|
+
this.pivotChartModule.loadChart(this, this.chartSettings);
|
|
1516
1523
|
}
|
|
1517
1524
|
if (!isNullOrUndefined(engineModule.pivotValues) && !isNullOrUndefined(engineModule.fieldList)) {
|
|
1518
1525
|
this.notify(events.uiUpdate, this);
|
|
@@ -1635,9 +1642,9 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1635
1642
|
*/
|
|
1636
1643
|
PivotView.prototype.renderPivotGrid = function () {
|
|
1637
1644
|
this.clearTemplate();
|
|
1638
|
-
if (this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1645
|
+
if (this.pivotChartModule) {
|
|
1646
|
+
this.pivotChartModule.engineModule = this.engineModule;
|
|
1647
|
+
this.pivotChartModule.loadChart(this, this.chartSettings);
|
|
1641
1648
|
if (this.enableRtl && this.chart && document.body.getAttribute('dir') !== 'rtl') {
|
|
1642
1649
|
addClass([this.chart.element], cls.PIVOTCHART_LTR);
|
|
1643
1650
|
}
|
|
@@ -1668,7 +1675,7 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1668
1675
|
this.applyHyperlinkSettings();
|
|
1669
1676
|
}
|
|
1670
1677
|
this.renderModule = this.renderModule ? this.renderModule : new Render(this);
|
|
1671
|
-
this.renderModule.render();
|
|
1678
|
+
this.renderModule.render(true);
|
|
1672
1679
|
}
|
|
1673
1680
|
else if (this.grid) {
|
|
1674
1681
|
remove(this.grid.element);
|
|
@@ -1684,7 +1691,9 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1684
1691
|
if (this.toolbarModule && this.toolbarModule.toolbar) {
|
|
1685
1692
|
this.toolbarModule.toolbar.width = this.getGridWidthAsNumber() - 2;
|
|
1686
1693
|
}
|
|
1687
|
-
this.
|
|
1694
|
+
if (this.chartSettings.enableScrollOnMultiAxis && this.chartSettings.enableMultipleAxis) {
|
|
1695
|
+
this.element.querySelector('.' + cls.PIVOTCHART).style.width = formatUnit(this.getGridWidthAsNumber());
|
|
1696
|
+
}
|
|
1688
1697
|
this.chart.width = formatUnit(this.getGridWidthAsNumber());
|
|
1689
1698
|
if (this.currentView === 'Table') {
|
|
1690
1699
|
this.grid.element.style.display = '';
|
|
@@ -1704,7 +1713,13 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1704
1713
|
}
|
|
1705
1714
|
if (this.toolbarModule) {
|
|
1706
1715
|
if (this.showFieldList && select('#' + this.element.id + '_PivotFieldList', this.element)) {
|
|
1707
|
-
|
|
1716
|
+
if (this.toolbar && this.toolbar.indexOf('FieldList') !== -1) {
|
|
1717
|
+
select('#' + this.element.id + '_PivotFieldList', this.element).style.display = 'none';
|
|
1718
|
+
}
|
|
1719
|
+
else {
|
|
1720
|
+
select('#' + this.element.id + '_PivotFieldList', this.element).style.top = this.element.querySelector('.' + cls.GRID_TOOLBAR).offsetHeight.toString() + 'px';
|
|
1721
|
+
select('#' + this.element.id + '_PivotFieldList', this.element).style.position = 'relative';
|
|
1722
|
+
}
|
|
1708
1723
|
}
|
|
1709
1724
|
if (this.toolbar && this.toolbar.indexOf('FieldList') !== -1 &&
|
|
1710
1725
|
this.showToolbar && this.element.querySelector('.e-toggle-field-list')) {
|
|
@@ -1857,7 +1872,9 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1857
1872
|
isDrillThrough: (pivot.allowDrillThrough || pivot.editSettings.allowEditing),
|
|
1858
1873
|
localeObj: pivot.localeObj,
|
|
1859
1874
|
fieldsType: pivot.fieldsType,
|
|
1860
|
-
clonedReport: pivot.clonedReport
|
|
1875
|
+
clonedReport: pivot.clonedReport,
|
|
1876
|
+
globalize: pivot.globalize,
|
|
1877
|
+
currenyCode: pivot.currencyCode
|
|
1861
1878
|
};
|
|
1862
1879
|
/* eslint-enable @typescript-eslint/indent */
|
|
1863
1880
|
if (pivot.dataSourceSettings.mode === 'Server') {
|
|
@@ -1907,6 +1924,14 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1907
1924
|
this.exportType = 'Excel';
|
|
1908
1925
|
this.grid.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
1909
1926
|
}
|
|
1927
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
1928
|
+
var actionInfo = {
|
|
1929
|
+
exportInfo: { type: this.exportType, info: excelExportProperties }
|
|
1930
|
+
};
|
|
1931
|
+
this.actionObj.actionInfo = actionInfo;
|
|
1932
|
+
if (this.actionObj.actionName) {
|
|
1933
|
+
this.actionCompleteMethod();
|
|
1934
|
+
}
|
|
1910
1935
|
};
|
|
1911
1936
|
/**
|
|
1912
1937
|
* Export PivotGrid data to CSV file.
|
|
@@ -1924,6 +1949,14 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1924
1949
|
this.exportType = 'CSV';
|
|
1925
1950
|
this.grid.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
1926
1951
|
}
|
|
1952
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
1953
|
+
var actionInfo = {
|
|
1954
|
+
exportInfo: { type: this.exportType, info: excelExportProperties }
|
|
1955
|
+
};
|
|
1956
|
+
this.actionObj.actionInfo = actionInfo;
|
|
1957
|
+
if (this.actionObj.actionName) {
|
|
1958
|
+
this.actionCompleteMethod();
|
|
1959
|
+
}
|
|
1927
1960
|
};
|
|
1928
1961
|
/**
|
|
1929
1962
|
* Export Pivot widget data to PDF document.
|
|
@@ -1940,6 +1973,14 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1940
1973
|
else {
|
|
1941
1974
|
this.grid.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
1942
1975
|
}
|
|
1976
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
1977
|
+
var actionInfo = {
|
|
1978
|
+
exportInfo: { type: 'PDF', info: pdfExportProperties }
|
|
1979
|
+
};
|
|
1980
|
+
this.actionObj.actionInfo = actionInfo;
|
|
1981
|
+
if (this.actionObj.actionName) {
|
|
1982
|
+
this.actionCompleteMethod();
|
|
1983
|
+
}
|
|
1943
1984
|
};
|
|
1944
1985
|
/**
|
|
1945
1986
|
* Export method for the chart.
|
|
@@ -1954,6 +1995,14 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
1954
1995
|
if (this.chart && this.chart.enableExport) {
|
|
1955
1996
|
this.chart.exportModule.export(type, fileName, orientation, null, width, height);
|
|
1956
1997
|
}
|
|
1998
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
1999
|
+
var actionInfo = {
|
|
2000
|
+
exportInfo: { type: type, info: fileName }
|
|
2001
|
+
};
|
|
2002
|
+
this.actionObj.actionInfo = actionInfo;
|
|
2003
|
+
if (this.actionObj.actionName) {
|
|
2004
|
+
this.actionCompleteMethod();
|
|
2005
|
+
}
|
|
1957
2006
|
};
|
|
1958
2007
|
/**
|
|
1959
2008
|
* Print method for the chart.
|
|
@@ -2065,6 +2114,10 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2065
2114
|
};
|
|
2066
2115
|
_this_1.trigger(events.enginePopulated, eventArgs);
|
|
2067
2116
|
pivot_1.engineModule.pivotValues = eventArgs.pivotValues;
|
|
2117
|
+
var actionInfo = {
|
|
2118
|
+
drillInfo: drilledItem_1
|
|
2119
|
+
};
|
|
2120
|
+
_this_1.actionObj.actionInfo = actionInfo;
|
|
2068
2121
|
pivot_1.renderPivotGrid();
|
|
2069
2122
|
}
|
|
2070
2123
|
else {
|
|
@@ -2417,6 +2470,12 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2417
2470
|
this.unwireEvents();
|
|
2418
2471
|
this.wireEvents();
|
|
2419
2472
|
this.isChartLoaded = false;
|
|
2473
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
2474
|
+
if (this.actionObj.actionName) {
|
|
2475
|
+
if (this.actionObj.actionName !== events.windowResize) {
|
|
2476
|
+
this.actionCompleteMethod();
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2420
2479
|
};
|
|
2421
2480
|
PivotView.prototype.setToolTip = function (args) {
|
|
2422
2481
|
var colIndex = Number(args.target.getAttribute('aria-colindex'));
|
|
@@ -2448,6 +2507,13 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2448
2507
|
if (cell && this.engineModule.fieldList[cell.actualText]) {
|
|
2449
2508
|
var field = this.engineModule.fieldList[cell.actualText];
|
|
2450
2509
|
aggregateType = field.aggregateType;
|
|
2510
|
+
if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||
|
|
2511
|
+
field.type === 'exclude')) {
|
|
2512
|
+
aggregateType = 'Count';
|
|
2513
|
+
}
|
|
2514
|
+
else {
|
|
2515
|
+
aggregateType = (aggregateType === undefined) ? 'Sum' : field.aggregateType;
|
|
2516
|
+
}
|
|
2451
2517
|
caption = field.caption;
|
|
2452
2518
|
hasField = true;
|
|
2453
2519
|
}
|
|
@@ -2667,76 +2733,105 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2667
2733
|
ele = target.parentElement.parentElement;
|
|
2668
2734
|
}
|
|
2669
2735
|
this.CellClicked(target, e);
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
else {
|
|
2682
|
-
var level = this.getLevel(header);
|
|
2683
|
-
rowIndex = (level <= this.engineModule.measureIndex &&
|
|
2684
|
-
header.members && header.members.length > 0) ? header.members[0].rowIndex : rowIndex;
|
|
2736
|
+
try {
|
|
2737
|
+
if ((ele.parentElement.parentElement.parentElement.parentElement.classList.contains('e-movableheader')
|
|
2738
|
+
&& this.dataSourceSettings.valueAxis === 'column') || (ele.parentElement.classList.contains('e-row') &&
|
|
2739
|
+
this.dataSourceSettings.valueAxis === 'row') && (ele.classList.contains('e-rowsheader') ||
|
|
2740
|
+
ele.classList.contains('e-stot'))) {
|
|
2741
|
+
var FieldName = target.parentElement.getAttribute('fieldname');
|
|
2742
|
+
var fieldInfo = PivotUtil.getFieldInfo(FieldName, this);
|
|
2743
|
+
this.actionObj.actionName = events.sortValue;
|
|
2744
|
+
this.actionObj.fieldInfo = fieldInfo.fieldItem;
|
|
2745
|
+
if (this.actionBeginMethod()) {
|
|
2746
|
+
return;
|
|
2685
2747
|
}
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
headerText: this.pivotValues[rowIndex][colIndex].valueSort.levelName,
|
|
2698
|
-
headerDelimiter: this.dataSourceSettings.valueSortSettings.headerDelimiter ?
|
|
2699
|
-
this.dataSourceSettings.valueSortSettings.headerDelimiter : '.'
|
|
2748
|
+
var colIndex = Number(ele.getAttribute('aria-colindex'));
|
|
2749
|
+
var rowIndex = Number(ele.getAttribute('index'));
|
|
2750
|
+
if (this.dataSourceSettings.valueAxis === 'row' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
2751
|
+
var header = this.pivotValues[rowIndex][colIndex];
|
|
2752
|
+
if (this.dataSourceSettings.valueIndex === -1) {
|
|
2753
|
+
rowIndex = header.type === 'value' ? rowIndex : (rowIndex + 1);
|
|
2754
|
+
}
|
|
2755
|
+
else {
|
|
2756
|
+
var level = this.getLevel(header);
|
|
2757
|
+
rowIndex = (level <= this.engineModule.measureIndex &&
|
|
2758
|
+
header.members && header.members.length > 0) ? header.members[0].rowIndex : rowIndex;
|
|
2700
2759
|
}
|
|
2701
2760
|
}
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2761
|
+
else if (this.dataSourceSettings.valueAxis === 'column' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
2762
|
+
colIndex = (Number(ele.getAttribute('aria-colindex')) + Number(ele.getAttribute('aria-colspan')) - 1);
|
|
2763
|
+
rowIndex = this.engineModule.headerContent.length - 1;
|
|
2764
|
+
}
|
|
2765
|
+
this.setProperties({
|
|
2766
|
+
dataSourceSettings: {
|
|
2767
|
+
valueSortSettings: {
|
|
2768
|
+
columnIndex: (Number(ele.getAttribute('aria-colindex')) +
|
|
2769
|
+
Number(ele.getAttribute('aria-colspan')) - 1),
|
|
2770
|
+
sortOrder: this.dataSourceSettings.valueSortSettings.sortOrder === 'Descending' ? 'Ascending' : 'Descending',
|
|
2771
|
+
headerText: this.pivotValues[rowIndex][colIndex].valueSort.levelName,
|
|
2772
|
+
headerDelimiter: this.dataSourceSettings.valueSortSettings.headerDelimiter ?
|
|
2773
|
+
this.dataSourceSettings.valueSortSettings.headerDelimiter : '.'
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
}, true);
|
|
2777
|
+
this.showWaitingPopup();
|
|
2778
|
+
var pivot = this; /* eslint-disable-line */
|
|
2779
|
+
pivot.engineModule.enableValueSorting = true;
|
|
2780
|
+
if (pivot.enableVirtualization) {
|
|
2781
|
+
if (pivot.dataSourceSettings.enableSorting) {
|
|
2782
|
+
for (var _i = 0, _a = Object.keys(pivot.engineModule.fieldList); _i < _a.length; _i++) {
|
|
2783
|
+
var key = _a[_i];
|
|
2784
|
+
pivot.engineModule.fieldList[key].sort = 'Ascending';
|
|
2785
|
+
}
|
|
2786
|
+
pivot.setProperties({ dataSourceSettings: { sortSettings: [] } }, true);
|
|
2787
|
+
}
|
|
2788
|
+
if (pivot.dataSourceSettings.mode === 'Server') {
|
|
2789
|
+
pivot.getEngine('onValueSort', null, null, null, null, null, null);
|
|
2790
|
+
}
|
|
2791
|
+
else {
|
|
2792
|
+
pivot.engineModule.rMembers = pivot.engineModule.headerCollection.rowHeaders;
|
|
2793
|
+
pivot.engineModule.cMembers = pivot.engineModule.headerCollection.columnHeaders;
|
|
2794
|
+
pivot.engineModule.applyValueSorting();
|
|
2795
|
+
pivot.engineModule.updateEngine();
|
|
2711
2796
|
}
|
|
2712
|
-
pivot.setProperties({ dataSourceSettings: { sortSettings: [] } }, true);
|
|
2713
2797
|
}
|
|
2714
|
-
if (pivot.dataSourceSettings.mode === 'Server') {
|
|
2798
|
+
else if (pivot.dataSourceSettings.mode === 'Server') {
|
|
2715
2799
|
pivot.getEngine('onValueSort', null, null, null, null, null, null);
|
|
2716
2800
|
}
|
|
2717
2801
|
else {
|
|
2718
|
-
pivot.engineModule.
|
|
2719
|
-
pivot.engineModule.cMembers = pivot.engineModule.headerCollection.columnHeaders;
|
|
2720
|
-
pivot.engineModule.applyValueSorting();
|
|
2721
|
-
pivot.engineModule.updateEngine();
|
|
2802
|
+
pivot.engineModule.generateGridData(pivot.dataSourceSettings, true);
|
|
2722
2803
|
}
|
|
2804
|
+
pivot.allowServerDataBinding = false;
|
|
2805
|
+
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
2806
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
2807
|
+
delete pivot.bulkChanges.pivotValues;
|
|
2808
|
+
pivot.allowServerDataBinding = true;
|
|
2809
|
+
var actionInfo = {
|
|
2810
|
+
valueSortInfo: this.engineModule.valueSortSettings
|
|
2811
|
+
};
|
|
2812
|
+
this.actionObj.actionInfo = actionInfo;
|
|
2813
|
+
pivot.renderPivotGrid();
|
|
2723
2814
|
}
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
else {
|
|
2728
|
-
pivot.engineModule.generateGridData(pivot.dataSourceSettings, true);
|
|
2729
|
-
}
|
|
2730
|
-
pivot.allowServerDataBinding = false;
|
|
2731
|
-
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
2732
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
2733
|
-
delete pivot.bulkChanges.pivotValues;
|
|
2734
|
-
pivot.allowServerDataBinding = true;
|
|
2735
|
-
pivot.renderPivotGrid();
|
|
2815
|
+
}
|
|
2816
|
+
catch (execption) {
|
|
2817
|
+
this.actionFailureMethod(execption);
|
|
2736
2818
|
}
|
|
2737
2819
|
}
|
|
2738
2820
|
else if (target.classList.contains(cls.COLLAPSE) || target.classList.contains(cls.EXPAND)) {
|
|
2739
|
-
|
|
2821
|
+
var drillFieldName = target.parentElement.getAttribute('fieldname');
|
|
2822
|
+
var fieldInfo = PivotUtil.getFieldInfo(drillFieldName, this);
|
|
2823
|
+
var actionName = target.classList.contains(cls.COLLAPSE) ? this.actionObj.actionName = events.drillUp : target.classList.contains(cls.EXPAND) ? this.actionObj.actionName = events.drillDown : '';
|
|
2824
|
+
this.actionObj.actionName = actionName;
|
|
2825
|
+
this.actionObj.fieldInfo = fieldInfo.fieldItem;
|
|
2826
|
+
if (this.actionBeginMethod()) {
|
|
2827
|
+
return;
|
|
2828
|
+
}
|
|
2829
|
+
try {
|
|
2830
|
+
this.onDrill(target);
|
|
2831
|
+
}
|
|
2832
|
+
catch (execption) {
|
|
2833
|
+
this.actionFailureMethod(execption);
|
|
2834
|
+
}
|
|
2740
2835
|
}
|
|
2741
2836
|
else {
|
|
2742
2837
|
this.CellClicked(target, e);
|
|
@@ -2838,7 +2933,8 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2838
2933
|
var firstColWidth = this.pivotColumns[0].width;
|
|
2839
2934
|
var eventArgs = {
|
|
2840
2935
|
columns: this.pivotColumns,
|
|
2841
|
-
dataSourceSettings: this.dataSourceSettings
|
|
2936
|
+
dataSourceSettings: this.dataSourceSettings,
|
|
2937
|
+
stackedColumns: this.getStackedColumns(gridcolumns, [])
|
|
2842
2938
|
};
|
|
2843
2939
|
this.trigger(events.beforeColumnsRender, eventArgs);
|
|
2844
2940
|
if (this.enableVirtualization && eventArgs.columns.length > 0 && eventArgs.columns[0].width !== gridcolumns[0].width) {
|
|
@@ -2943,8 +3039,16 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2943
3039
|
/* eslint-disable-next-line */
|
|
2944
3040
|
/** @hidden */
|
|
2945
3041
|
PivotView.prototype.onWindowResize = function () {
|
|
3042
|
+
this.actionObj.actionName = events.windowResize;
|
|
3043
|
+
if (this.actionBeginMethod()) {
|
|
3044
|
+
return;
|
|
3045
|
+
}
|
|
2946
3046
|
clearTimeout(this.timeOutObj);
|
|
2947
3047
|
this.timeOutObj = setTimeout(this.layoutRefresh.bind(this), 500);
|
|
3048
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
3049
|
+
if (this.actionObj.actionName) {
|
|
3050
|
+
this.actionCompleteMethod();
|
|
3051
|
+
}
|
|
2948
3052
|
};
|
|
2949
3053
|
/**
|
|
2950
3054
|
* Refreshes the Pivot Table for blazor layoutRefresh is called for other base refresh is called.
|
|
@@ -3339,7 +3443,9 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
3339
3443
|
isDrillThrough: (_this_1.allowDrillThrough || _this_1.editSettings.allowEditing),
|
|
3340
3444
|
localeObj: _this_1.localeObj,
|
|
3341
3445
|
fieldsType: _this_1.fieldsType,
|
|
3342
|
-
clonedReport: _this_1.clonedReport
|
|
3446
|
+
clonedReport: _this_1.clonedReport,
|
|
3447
|
+
globalize: _this_1.globalize,
|
|
3448
|
+
currenyCode: _this_1.currencyCode
|
|
3343
3449
|
};
|
|
3344
3450
|
if (_this_1.dataType === 'pivot') {
|
|
3345
3451
|
if (_this_1.dataSourceSettings.groupSettings && _this_1.dataSourceSettings.groupSettings.length > 0) {
|
|
@@ -3565,7 +3671,8 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
3565
3671
|
var str = 'color: ' + format[k].style.color + '!important;background-color: ' + format[k].style.backgroundColor +
|
|
3566
3672
|
'!important;font-size: ' + format[k].style.fontSize + '!important;font-family: ' + format[k].style.fontFamily +
|
|
3567
3673
|
' !important;';
|
|
3568
|
-
|
|
3674
|
+
var formatClass = '.format' + this.element.id + k;
|
|
3675
|
+
sheet.insertRule(formatClass + ', ' + formatClass + ' .e-cellvalue' + '{' + str + '}', 0);
|
|
3569
3676
|
}
|
|
3570
3677
|
}
|
|
3571
3678
|
};
|
|
@@ -3792,6 +3899,65 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
3792
3899
|
EventHandler.remove(document, this.isAdaptive ? 'touchend' : 'click', this.removeButtonFocus);
|
|
3793
3900
|
window.removeEventListener('resize', this.onWindowResize.bind(this), true);
|
|
3794
3901
|
};
|
|
3902
|
+
/** @hidden */
|
|
3903
|
+
PivotView.prototype.actionBeginMethod = function () {
|
|
3904
|
+
var eventArgs = {
|
|
3905
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.dataSourceSettings),
|
|
3906
|
+
actionName: this.actionObj.actionName,
|
|
3907
|
+
fieldInfo: this.actionObj.fieldInfo,
|
|
3908
|
+
cancel: false
|
|
3909
|
+
};
|
|
3910
|
+
this.trigger(events.actionBegin, eventArgs);
|
|
3911
|
+
return eventArgs.cancel;
|
|
3912
|
+
};
|
|
3913
|
+
/** @hidden */
|
|
3914
|
+
PivotView.prototype.actionCompleteMethod = function () {
|
|
3915
|
+
var eventArgs = {
|
|
3916
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.dataSourceSettings),
|
|
3917
|
+
actionName: this.actionObj.actionName,
|
|
3918
|
+
fieldInfo: this.actionObj.fieldInfo,
|
|
3919
|
+
actionInfo: this.actionObj.actionInfo
|
|
3920
|
+
};
|
|
3921
|
+
this.trigger(events.actionComplete, eventArgs);
|
|
3922
|
+
this.actionObj.actionName = '';
|
|
3923
|
+
this.actionObj.actionInfo = undefined;
|
|
3924
|
+
this.actionObj.fieldInfo = undefined;
|
|
3925
|
+
};
|
|
3926
|
+
/** @hidden */
|
|
3927
|
+
PivotView.prototype.actionFailureMethod = function (error) {
|
|
3928
|
+
var eventArgs = {
|
|
3929
|
+
actionName: this.actionObj.actionName,
|
|
3930
|
+
errorInfo: error
|
|
3931
|
+
};
|
|
3932
|
+
this.trigger(events.actionFailure, eventArgs);
|
|
3933
|
+
};
|
|
3934
|
+
/** @hidden */
|
|
3935
|
+
PivotView.prototype.getActionCompleteName = function () {
|
|
3936
|
+
var actionName = (this.actionObj.actionName == events.openConditionalFormatting) ? events.conditionallyFormatted : (this.actionObj.actionName == events.openNumberFormatting) ? events.numberFormatted
|
|
3937
|
+
: (this.actionObj.actionName == events.tableView) ? events.tableViewed : (this.actionObj.actionName == events.chartView) ? events.chartViewed : (this.actionObj.actionName == events.hideSubTotals) ? events.subTotalsHidden : (this.actionObj.actionName == events.subTotalsRow) ? events.subTotalsRowShown
|
|
3938
|
+
: (this.actionObj.actionName == events.subTotalsColumn) ? events.subTotalsColumnShown : (this.actionObj.actionName == events.showSubTotals) ? events.subTotalsShown : (this.actionObj.actionName == events.hideGrandTotals) ? events.grandTotalsHidden
|
|
3939
|
+
: (this.actionObj.actionName == events.grandTotalsRow) ? events.grandTotalsRowShown : (this.actionObj.actionName == events.grandTotalsColumn) ? events.grandTotalsColumnShown : (this.actionObj.actionName == events.showGrandTotals) ? events.grandTotalsShown
|
|
3940
|
+
: (this.actionObj.actionName == events.sortValue) ? events.valueSorted : (this.actionObj.actionName == events.openCalculatedField) ? events.calculatedFieldApplied : (this.actionObj.actionName == events.editCalculatedField) ? events.calculatedFieldEdited : (this.actionObj.actionName == events.sortField) ? events.fieldSorted
|
|
3941
|
+
: (this.actionObj.actionName == events.filterField) ? events.fieldFiltered : (this.actionObj.actionName == events.removeField) ? events.fieldRemoved : (this.actionObj.actionName == events.aggregateField) ? events.fieldAggregated : this.actionObj.actionName == events.editRecord ? events.recordEdited : this.actionObj.actionName == events.reportChange ? events.reportChanged
|
|
3942
|
+
: this.actionObj.actionName == events.saveEditedRecords ? events.editedRecordsSaved : this.actionObj.actionName == events.addNewRecord ? events.newRecordAdded
|
|
3943
|
+
: this.actionObj.actionName == events.removeRecord ? events.recordRemoved : (this.actionObj.actionName == events.pngExport) ? events.pngExported : (this.actionObj.actionName == events.jpegExport) ? events.jpegExported
|
|
3944
|
+
: (this.actionObj.actionName == events.svgExport) ? events.svgExported : (this.actionObj.actionName == events.pdfExport) ? events.pdfExported : (this.actionObj.actionName == events.csvExport) ? events.csvExported : (this.actionObj.actionName == events.excelExport) ? events.excelExported : this.actionObj.actionName == events.windowResize ? events.windowResized
|
|
3945
|
+
: this.actionObj.actionName == events.saveCurrentReport ? events.reportSaved : (this.actionObj.actionName == events.addNewReport) ? events.newReportAdded : (this.actionObj.actionName == events.saveAsCurrentReport) ? events.reportReSaved
|
|
3946
|
+
: (this.actionObj.actionName == events.renameCurrentReport) ? events.reportRenamed : this.actionObj.actionName;
|
|
3947
|
+
return actionName;
|
|
3948
|
+
};
|
|
3949
|
+
/* eslint-disable-next-line */
|
|
3950
|
+
/** @hidden */
|
|
3951
|
+
PivotView.prototype.getStackedColumns = function (gridcolumns, stackedColumns) {
|
|
3952
|
+
for (var _i = 0, gridcolumns_4 = gridcolumns; _i < gridcolumns_4.length; _i++) {
|
|
3953
|
+
var column = gridcolumns_4[_i];
|
|
3954
|
+
stackedColumns.push(column);
|
|
3955
|
+
if (column.columns && column.columns.length > 0) {
|
|
3956
|
+
this.getStackedColumns(column.columns, stackedColumns);
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
return stackedColumns;
|
|
3960
|
+
};
|
|
3795
3961
|
/**
|
|
3796
3962
|
* To destroy the PivotView elements.
|
|
3797
3963
|
* @returns {void}
|
|
@@ -3855,8 +4021,8 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
3855
4021
|
if (this.commonModule) {
|
|
3856
4022
|
this.commonModule.destroy();
|
|
3857
4023
|
}
|
|
3858
|
-
if (this.
|
|
3859
|
-
this.
|
|
4024
|
+
if (this.pivotChartModule) {
|
|
4025
|
+
this.pivotChartModule.destroy();
|
|
3860
4026
|
}
|
|
3861
4027
|
if (this.pivotButtonModule && !this.pivotButtonModule.isDestroyed) {
|
|
3862
4028
|
this.pivotButtonModule.destroy();
|
|
@@ -3911,8 +4077,8 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
3911
4077
|
if (this.commonModule) {
|
|
3912
4078
|
this.commonModule = null;
|
|
3913
4079
|
}
|
|
3914
|
-
if (this.
|
|
3915
|
-
this.
|
|
4080
|
+
if (this.pivotChartModule) {
|
|
4081
|
+
this.pivotChartModule = null;
|
|
3916
4082
|
}
|
|
3917
4083
|
if (this.pivotButtonModule) {
|
|
3918
4084
|
this.pivotButtonModule = null;
|
|
@@ -3932,6 +4098,12 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
3932
4098
|
if (this.drillThroughModule) {
|
|
3933
4099
|
this.drillThroughModule = null;
|
|
3934
4100
|
}
|
|
4101
|
+
if (this.clonedDataSet) {
|
|
4102
|
+
this.clonedDataSet = null;
|
|
4103
|
+
}
|
|
4104
|
+
if (this.clonedReport) {
|
|
4105
|
+
this.clonedReport = null;
|
|
4106
|
+
}
|
|
3935
4107
|
this.element.innerHTML = '';
|
|
3936
4108
|
removeClass([this.element], cls.ROOT);
|
|
3937
4109
|
removeClass([this.element], cls.RTL);
|
|
@@ -4274,6 +4446,15 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
4274
4446
|
__decorate([
|
|
4275
4447
|
Event()
|
|
4276
4448
|
], PivotView.prototype, "beforeServiceInvoke", void 0);
|
|
4449
|
+
__decorate([
|
|
4450
|
+
Event()
|
|
4451
|
+
], PivotView.prototype, "actionBegin", void 0);
|
|
4452
|
+
__decorate([
|
|
4453
|
+
Event()
|
|
4454
|
+
], PivotView.prototype, "actionComplete", void 0);
|
|
4455
|
+
__decorate([
|
|
4456
|
+
Event()
|
|
4457
|
+
], PivotView.prototype, "actionFailure", void 0);
|
|
4277
4458
|
PivotView = __decorate([
|
|
4278
4459
|
NotifyPropertyChanges
|
|
4279
4460
|
], PivotView);
|
|
@@ -2529,7 +2529,7 @@ export interface PivotAxisModel {
|
|
|
2529
2529
|
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Allows to scale the axis by this value. When zoomFactor is 0.5, the chart is scaled by 200% along this axis. Value ranges from 0 to 1.
|
|
2532
|
-
* @default
|
|
2532
|
+
* @default 1
|
|
2533
2533
|
*/
|
|
2534
2534
|
zoomFactor?: number;
|
|
2535
2535
|
|
|
@@ -2567,7 +2567,7 @@ export interface PivotAxisModel {
|
|
|
2567
2567
|
* * Shift: Shifts the edge labels.
|
|
2568
2568
|
* * None: No action will be performed.
|
|
2569
2569
|
* * Hide: Edge label will be hidden.
|
|
2570
|
-
* @default '
|
|
2570
|
+
* @default 'Shift'
|
|
2571
2571
|
*/
|
|
2572
2572
|
edgeLabelPlacement?: EdgeLabelPlacement;
|
|
2573
2573
|
|
|
@@ -2142,7 +2142,7 @@ export declare class PivotAxis extends ChildProperty<PivotAxis> {
|
|
|
2142
2142
|
title: string;
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Allows to scale the axis by this value. When zoomFactor is 0.5, the chart is scaled by 200% along this axis. Value ranges from 0 to 1.
|
|
2145
|
-
* @default
|
|
2145
|
+
* @default 1
|
|
2146
2146
|
*/
|
|
2147
2147
|
zoomFactor: number;
|
|
2148
2148
|
/**
|
|
@@ -2174,7 +2174,7 @@ export declare class PivotAxis extends ChildProperty<PivotAxis> {
|
|
|
2174
2174
|
* * Shift: Shifts the edge labels.
|
|
2175
2175
|
* * None: No action will be performed.
|
|
2176
2176
|
* * Hide: Edge label will be hidden.
|
|
2177
|
-
* @default '
|
|
2177
|
+
* @default 'Shift'
|
|
2178
2178
|
*/
|
|
2179
2179
|
edgeLabelPlacement: EdgeLabelPlacement;
|
|
2180
2180
|
/**
|