@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
|
@@ -10267,7 +10267,7 @@ var DataSourceUpdate = /** @__PURE__ @class */ (function () {
|
|
|
10267
10267
|
break;
|
|
10268
10268
|
case 'values':
|
|
10269
10269
|
droppedPosition !== -1 ? _this.parent.dataSourceSettings.values.splice(droppedPosition, 0, dataSourceItem) : _this.parent.dataSourceSettings.values.push(dataSourceItem);
|
|
10270
|
-
if (_this.parent.dataType === 'olap' && !_this.parent.engineModule.isMeasureAvail) {
|
|
10270
|
+
if (_this.parent.dataType === 'olap' && !_this.parent.engineModule.isMeasureAvail && !(_this.parent.dataSourceSettings.values.length > 1)) {
|
|
10271
10271
|
var measureField = {
|
|
10272
10272
|
name: '[Measures]', caption: 'Measures', showRemoveIcon: true, allowDragAndDrop: true
|
|
10273
10273
|
};
|
|
@@ -15527,13 +15527,6 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15527
15527
|
}
|
|
15528
15528
|
this.parent.element.querySelector('.' + PIVOTCHART).style.width = width + 'px';
|
|
15529
15529
|
}
|
|
15530
|
-
this.parent.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) < 0 &&
|
|
15531
|
-
this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
15532
|
-
this.parent.dataSourceSettings.values.length > 0 ? Number(this.parent.chart.height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
|
|
15533
|
-
isNaN(Number(this.getChartHeight())) ? this.getChartHeight().toString() : (Number(this.getChartHeight()) - 5).toString() :
|
|
15534
|
-
(!isNaN(Number(this.getChartHeight())) || this.parent.dataSourceSettings.values.length > 1) ?
|
|
15535
|
-
((this.parent.dataSourceSettings.values.length * 235) + 100).toString() :
|
|
15536
|
-
this.getChartHeight().toString() : this.getChartHeight().toString();
|
|
15537
15530
|
this.updateView();
|
|
15538
15531
|
this.parent.notify(contentReady, {});
|
|
15539
15532
|
this.parent.trigger(chartLoaded, args);
|
|
@@ -23126,13 +23119,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23126
23119
|
this.headerCellInfo = this.gridSettings.headerCellInfo ? this.gridSettings.headerCellInfo.bind(this) : undefined;
|
|
23127
23120
|
this.resizing = this.gridSettings.resizing ? this.gridSettings.resizing.bind(this) : undefined;
|
|
23128
23121
|
this.resizeStop = this.gridSettings.resizeStop ? this.gridSettings.resizeStop.bind(this) : undefined;
|
|
23129
|
-
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ?
|
|
23130
|
-
|
|
23131
|
-
this.
|
|
23132
|
-
this.
|
|
23133
|
-
this.gridSettings.excelHeaderQueryCellInfo.bind(this) : undefined;
|
|
23134
|
-
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ?
|
|
23135
|
-
this.gridSettings.excelQueryCellInfo.bind(this) : undefined;
|
|
23122
|
+
this.pdfHeaderQueryCellInfo = this.gridSettings.pdfHeaderQueryCellInfo ? this.gridSettings.pdfHeaderQueryCellInfo : undefined;
|
|
23123
|
+
this.pdfQueryCellInfo = this.gridSettings.pdfQueryCellInfo ? this.gridSettings.pdfQueryCellInfo : undefined;
|
|
23124
|
+
this.excelHeaderQueryCellInfo = this.gridSettings.excelHeaderQueryCellInfo ? this.gridSettings.excelHeaderQueryCellInfo : undefined;
|
|
23125
|
+
this.excelQueryCellInfo = this.gridSettings.excelQueryCellInfo ? this.gridSettings.excelQueryCellInfo : undefined;
|
|
23136
23126
|
this.columnDragStart = this.gridSettings.columnDragStart ? this.gridSettings.columnDragStart.bind(this) : undefined;
|
|
23137
23127
|
this.columnDrag = this.gridSettings.columnDrag ? this.gridSettings.columnDrag.bind(this) : undefined;
|
|
23138
23128
|
this.columnDrop = this.gridSettings.columnDrop ? this.gridSettings.columnDrop.bind(this) : undefined;
|
|
@@ -25350,6 +25340,13 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25350
25340
|
if (this.chart && ((this.showToolbar && this.currentView === 'Chart') || !this.showToolbar)) {
|
|
25351
25341
|
this.chart.width = (this.showToolbar && this.grid) ? this.getGridWidthAsNumber().toString() :
|
|
25352
25342
|
(this.displayOption.view === 'Both' && this.grid) ? this.getGridWidthAsNumber().toString() : this.getWidthAsNumber().toString();
|
|
25343
|
+
this.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.chartSettings.chartSeries.type) < 0 &&
|
|
25344
|
+
this.chartSettings.enableScrollOnMultiAxis && this.chartSettings.enableMultipleAxis &&
|
|
25345
|
+
this.dataSourceSettings.values.length > 0 ? Number(this.chart.height) > (this.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
|
|
25346
|
+
isNaN(Number(this.pivotChartModule.getChartHeight())) ? this.pivotChartModule.getChartHeight().toString() : (Number(this.pivotChartModule.getChartHeight()) - 5).toString() :
|
|
25347
|
+
(!isNaN(Number(this.pivotChartModule.getChartHeight())) || this.dataSourceSettings.values.length > 1) ?
|
|
25348
|
+
((this.dataSourceSettings.values.length * 235) + 100).toString() :
|
|
25349
|
+
this.pivotChartModule.getChartHeight().toString() : this.pivotChartModule.getChartHeight().toString();
|
|
25353
25350
|
if (this.displayOption.view === 'Chart' && this.showGroupingBar && this.groupingBarModule &&
|
|
25354
25351
|
this.element.querySelector('.' + CHART_GROUPING_BAR_CLASS)) {
|
|
25355
25352
|
this.groupingBarModule.refreshUI();
|
|
@@ -28879,7 +28876,7 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28879
28876
|
this.parent.dataSourceSettings.values.splice(dropPosition, 0, newField) :
|
|
28880
28877
|
this.parent.dataSourceSettings.values.push(newField);
|
|
28881
28878
|
if (this.parent.dataType === 'olap' && this.parent.olapEngineModule &&
|
|
28882
|
-
!(this.parent.olapEngineModule).isMeasureAvail) {
|
|
28879
|
+
!(this.parent.olapEngineModule).isMeasureAvail && !(this.parent.dataSourceSettings.values.length > 1)) {
|
|
28883
28880
|
var measureField = {
|
|
28884
28881
|
name: '[Measures]', caption: 'Measures', baseField: undefined, baseItem: undefined
|
|
28885
28882
|
};
|