@syncfusion/ej2-pivotview 19.4.50 → 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 +19 -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 +13 -16
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +13 -16
- 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/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 +11 -7
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/pivotview/_theme.scss +3 -0
- package/styles/pivotview/bootstrap5-dark.css +1 -0
- package/styles/pivotview/bootstrap5.css +1 -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);
|
|
@@ -22436,13 +22429,10 @@ let PivotView = class PivotView extends Component {
|
|
|
22436
22429
|
this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
|
|
22437
22430
|
this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
|
|
22438
22431
|
this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
|
|
22439
|
-
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
|
|
22440
|
-
|
|
22441
|
-
this.
|
|
22442
|
-
this.
|
|
22443
|
-
this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
|
|
22444
|
-
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
|
|
22445
|
-
this.gridSettings.excelQueryCellInfo.bind(this) : undefined;
|
|
22432
|
+
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ? this.gridSettings.pdfHeaderQueryCellInfo : undefined;
|
|
22433
|
+
this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo : undefined;
|
|
22434
|
+
this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ? this.gridSettings.excelHeaderQueryCellInfo : undefined;
|
|
22435
|
+
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ? this.gridSettings.excelQueryCellInfo : undefined;
|
|
22446
22436
|
this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
|
|
22447
22437
|
this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
|
|
22448
22438
|
this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
|
|
@@ -24644,6 +24634,13 @@ let PivotView = class PivotView extends Component {
|
|
|
24644
24634
|
if (this.chart && ((this.showToolbar && this.currentView === 'Chart') || !this.showToolbar)) {
|
|
24645
24635
|
this.chart.width = (this.showToolbar && this.grid) ? this.getGridWidthAsNumber().toString() :
|
|
24646
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();
|
|
24647
24644
|
if (this.displayOption.view === 'Chart' && this.showGroupingBar && this.groupingBarModule &&
|
|
24648
24645
|
this.element.querySelector('.' + CHART_GROUPING_BAR_CLASS)) {
|
|
24649
24646
|
this.groupingBarModule.refreshUI();
|
|
@@ -28145,7 +28142,7 @@ class TreeViewRenderer {
|
|
|
28145
28142
|
this.parent.dataSourceSettings.values.splice(dropPosition, 0, newField) :
|
|
28146
28143
|
this.parent.dataSourceSettings.values.push(newField);
|
|
28147
28144
|
if (this.parent.dataType === 'olap' && this.parent.olapEngineModule &&
|
|
28148
|
-
!(this.parent.olapEngineModule).isMeasureAvail) {
|
|
28145
|
+
!(this.parent.olapEngineModule).isMeasureAvail && !(this.parent.dataSourceSettings.values.length > 1)) {
|
|
28149
28146
|
let measureField = {
|
|
28150
28147
|
name: '[Measures]', caption: 'Measures', baseField: undefined, baseItem: undefined
|
|
28151
28148
|
};
|