@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.53
3
+ * version : 19.4.54
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-pivotview@*",
3
- "_id": "@syncfusion/ej2-pivotview@19.4.52",
3
+ "_id": "@syncfusion/ej2-pivotview@19.4.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Asskm8xTGJzP1lrqcSUg9lNwpjQVBfpc5WMnbk4zVimov7J9/uM8/esPp1Id5rhfT8zVXjthSv0r5krjRXt0bw==",
5
+ "_integrity": "sha512-FikLaOJ6Iw5qQKUyxTSOiIurmcPb1yk4d07QzermnBmCqUFcYoW5sS9cBuFveej/jiOmXOoq23vd0dMuWw4/9Q==",
6
6
  "_location": "/@syncfusion/ej2-pivotview",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-pivotview",
24
24
  "/@syncfusion/ej2-vue-pivotview"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-19.4.52.tgz",
27
- "_shasum": "8d65b6bfbe42d6e03169be6b9d5627483e9a8d67",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-19.4.53.tgz",
27
+ "_shasum": "cbc4bdc7b9ad2fc52995487ea8b82ddbbd27c943",
28
28
  "_spec": "@syncfusion/ej2-pivotview@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -37,14 +37,14 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~19.4.52",
39
39
  "@syncfusion/ej2-buttons": "~19.4.53",
40
- "@syncfusion/ej2-calendars": "~19.4.52",
41
- "@syncfusion/ej2-charts": "~19.4.53",
40
+ "@syncfusion/ej2-calendars": "~19.4.54",
41
+ "@syncfusion/ej2-charts": "~19.4.54",
42
42
  "@syncfusion/ej2-compression": "~19.4.52",
43
- "@syncfusion/ej2-data": "~19.4.52",
44
- "@syncfusion/ej2-dropdowns": "~19.4.52",
43
+ "@syncfusion/ej2-data": "~19.4.54",
44
+ "@syncfusion/ej2-dropdowns": "~19.4.54",
45
45
  "@syncfusion/ej2-excel-export": "~19.4.52",
46
46
  "@syncfusion/ej2-file-utils": "~19.4.52",
47
- "@syncfusion/ej2-grids": "~19.4.53",
47
+ "@syncfusion/ej2-grids": "~19.4.54",
48
48
  "@syncfusion/ej2-inputs": "~19.4.52",
49
49
  "@syncfusion/ej2-lists": "~19.4.52",
50
50
  "@syncfusion/ej2-navigations": "~19.4.53",
@@ -78,6 +78,6 @@
78
78
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
79
79
  },
80
80
  "typings": "index.d.ts",
81
- "version": "19.4.53",
81
+ "version": "19.4.54",
82
82
  "sideEffects": false
83
83
  }
@@ -141,7 +141,7 @@ var DataSourceUpdate = /** @class */ (function () {
141
141
  break;
142
142
  case 'values':
143
143
  droppedPosition !== -1 ? _this.parent.dataSourceSettings.values.splice(droppedPosition, 0, dataSourceItem) : _this.parent.dataSourceSettings.values.push(dataSourceItem);
144
- if (_this.parent.dataType === 'olap' && !_this.parent.engineModule.isMeasureAvail) {
144
+ if (_this.parent.dataType === 'olap' && !_this.parent.engineModule.isMeasureAvail && !(_this.parent.dataSourceSettings.values.length > 1)) {
145
145
  var measureField = {
146
146
  name: '[Measures]', caption: 'Measures', showRemoveIcon: true, allowDragAndDrop: true
147
147
  };
@@ -70,7 +70,7 @@ export declare class PivotChart {
70
70
  private drillMenuOpen;
71
71
  private getMenuItems;
72
72
  private drillMenuSelect;
73
- private getChartHeight;
73
+ getChartHeight(): string;
74
74
  private getChartAutoHeight;
75
75
  private axisLabelRender;
76
76
  private multiLevelLabelClick;
@@ -1197,13 +1197,6 @@ var PivotChart = /** @class */ (function () {
1197
1197
  }
1198
1198
  this.parent.element.querySelector('.' + cls.PIVOTCHART).style.width = width + 'px';
1199
1199
  }
1200
- this.parent.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) < 0 &&
1201
- this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
1202
- this.parent.dataSourceSettings.values.length > 0 ? Number(this.parent.chart.height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
1203
- isNaN(Number(this.getChartHeight())) ? this.getChartHeight().toString() : (Number(this.getChartHeight()) - 5).toString() :
1204
- (!isNaN(Number(this.getChartHeight())) || this.parent.dataSourceSettings.values.length > 1) ?
1205
- ((this.parent.dataSourceSettings.values.length * 235) + 100).toString() :
1206
- this.getChartHeight().toString() : this.getChartHeight().toString();
1207
1200
  this.updateView();
1208
1201
  this.parent.notify(events.contentReady, {});
1209
1202
  this.parent.trigger(events.chartLoaded, args);
@@ -563,7 +563,7 @@ var TreeViewRenderer = /** @class */ (function () {
563
563
  this.parent.dataSourceSettings.values.splice(dropPosition, 0, newField) :
564
564
  this.parent.dataSourceSettings.values.push(newField);
565
565
  if (this.parent.dataType === 'olap' && this.parent.olapEngineModule &&
566
- !(this.parent.olapEngineModule).isMeasureAvail) {
566
+ !(this.parent.olapEngineModule).isMeasureAvail && !(this.parent.dataSourceSettings.values.length > 1)) {
567
567
  var measureField = {
568
568
  name: '[Measures]', caption: 'Measures', baseField: undefined, baseItem: undefined
569
569
  };
@@ -3115,6 +3115,13 @@ var PivotView = /** @class */ (function (_super) {
3115
3115
  if (this.chart && ((this.showToolbar && this.currentView === 'Chart') || !this.showToolbar)) {
3116
3116
  this.chart.width = (this.showToolbar && this.grid) ? this.getGridWidthAsNumber().toString() :
3117
3117
  (this.displayOption.view === 'Both' && this.grid) ? this.getGridWidthAsNumber().toString() : this.getWidthAsNumber().toString();
3118
+ this.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.chartSettings.chartSeries.type) < 0 &&
3119
+ this.chartSettings.enableScrollOnMultiAxis && this.chartSettings.enableMultipleAxis &&
3120
+ this.dataSourceSettings.values.length > 0 ? Number(this.chart.height) > (this.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
3121
+ isNaN(Number(this.pivotChartModule.getChartHeight())) ? this.pivotChartModule.getChartHeight().toString() : (Number(this.pivotChartModule.getChartHeight()) - 5).toString() :
3122
+ (!isNaN(Number(this.pivotChartModule.getChartHeight())) || this.dataSourceSettings.values.length > 1) ?
3123
+ ((this.dataSourceSettings.values.length * 235) + 100).toString() :
3124
+ this.pivotChartModule.getChartHeight().toString() : this.pivotChartModule.getChartHeight().toString();
3118
3125
  if (this.displayOption.view === 'Chart' && this.showGroupingBar && this.groupingBarModule &&
3119
3126
  this.element.querySelector('.' + cls.CHART_GROUPING_BAR_CLASS)) {
3120
3127
  this.groupingBarModule.refreshUI();