@syncfusion/ej2-pivotview 19.4.53 → 19.4.54
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 +9 -0
- 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 +9 -9
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +9 -9
- 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 +10 -10
- package/src/common/actions/dataSource-update.js +1 -1
- package/src/pivotchart/base/pivotchart.d.ts +1 -1
- package/src/pivotchart/base/pivotchart.js +0 -7
- package/src/pivotfieldlist/renderer/tree-renderer.js +1 -1
- package/src/pivotview/base/pivotview.js +7 -0
|
@@ -10101,7 +10101,7 @@ class DataSourceUpdate {
|
|
|
10101
10101
|
break;
|
|
10102
10102
|
case 'values':
|
|
10103
10103
|
droppedPosition !== -1 ? this.parent.dataSourceSettings.values.splice(droppedPosition, 0, dataSourceItem) : this.parent.dataSourceSettings.values.push(dataSourceItem);
|
|
10104
|
-
if (this.parent.dataType === 'olap' && !this.parent.engineModule.isMeasureAvail) {
|
|
10104
|
+
if (this.parent.dataType === 'olap' && !this.parent.engineModule.isMeasureAvail && !(this.parent.dataSourceSettings.values.length > 1)) {
|
|
10105
10105
|
let measureField = {
|
|
10106
10106
|
name: '[Measures]', caption: 'Measures', showRemoveIcon: true, allowDragAndDrop: true
|
|
10107
10107
|
};
|
|
@@ -15190,13 +15190,6 @@ class PivotChart {
|
|
|
15190
15190
|
}
|
|
15191
15191
|
this.parent.element.querySelector('.' + PIVOTCHART).style.width = width + 'px';
|
|
15192
15192
|
}
|
|
15193
|
-
this.parent.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) < 0 &&
|
|
15194
|
-
this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
15195
|
-
this.parent.dataSourceSettings.values.length > 0 ? Number(this.parent.chart.height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
|
|
15196
|
-
isNaN(Number(this.getChartHeight())) ? this.getChartHeight().toString() : (Number(this.getChartHeight()) - 5).toString() :
|
|
15197
|
-
(!isNaN(Number(this.getChartHeight())) || this.parent.dataSourceSettings.values.length > 1) ?
|
|
15198
|
-
((this.parent.dataSourceSettings.values.length * 235) + 100).toString() :
|
|
15199
|
-
this.getChartHeight().toString() : this.getChartHeight().toString();
|
|
15200
15193
|
this.updateView();
|
|
15201
15194
|
this.parent.notify(contentReady, {});
|
|
15202
15195
|
this.parent.trigger(chartLoaded, args);
|
|
@@ -24641,6 +24634,13 @@ let PivotView = class PivotView extends Component {
|
|
|
24641
24634
|
if (this.chart && ((this.showToolbar && this.currentView === 'Chart') || !this.showToolbar)) {
|
|
24642
24635
|
this.chart.width = (this.showToolbar && this.grid) ? this.getGridWidthAsNumber().toString() :
|
|
24643
24636
|
(this.displayOption.view === 'Both' && this.grid) ? this.getGridWidthAsNumber().toString() : this.getWidthAsNumber().toString();
|
|
24637
|
+
this.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.chartSettings.chartSeries.type) < 0 &&
|
|
24638
|
+
this.chartSettings.enableScrollOnMultiAxis && this.chartSettings.enableMultipleAxis &&
|
|
24639
|
+
this.dataSourceSettings.values.length > 0 ? Number(this.chart.height) > (this.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
|
|
24640
|
+
isNaN(Number(this.pivotChartModule.getChartHeight())) ? this.pivotChartModule.getChartHeight().toString() : (Number(this.pivotChartModule.getChartHeight()) - 5).toString() :
|
|
24641
|
+
(!isNaN(Number(this.pivotChartModule.getChartHeight())) || this.dataSourceSettings.values.length > 1) ?
|
|
24642
|
+
((this.dataSourceSettings.values.length * 235) + 100).toString() :
|
|
24643
|
+
this.pivotChartModule.getChartHeight().toString() : this.pivotChartModule.getChartHeight().toString();
|
|
24644
24644
|
if (this.displayOption.view === 'Chart' && this.showGroupingBar && this.groupingBarModule &&
|
|
24645
24645
|
this.element.querySelector('.' + CHART_GROUPING_BAR_CLASS)) {
|
|
24646
24646
|
this.groupingBarModule.refreshUI();
|
|
@@ -28142,7 +28142,7 @@ class TreeViewRenderer {
|
|
|
28142
28142
|
this.parent.dataSourceSettings.values.splice(dropPosition, 0, newField) :
|
|
28143
28143
|
this.parent.dataSourceSettings.values.push(newField);
|
|
28144
28144
|
if (this.parent.dataType === 'olap' && this.parent.olapEngineModule &&
|
|
28145
|
-
!(this.parent.olapEngineModule).isMeasureAvail) {
|
|
28145
|
+
!(this.parent.olapEngineModule).isMeasureAvail && !(this.parent.dataSourceSettings.values.length > 1)) {
|
|
28146
28146
|
let measureField = {
|
|
28147
28147
|
name: '[Measures]', caption: 'Measures', baseField: undefined, baseItem: undefined
|
|
28148
28148
|
};
|