@sapui5/sap.chart 1.96.23 → 1.96.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.chart",
3
- "version": "1.96.23",
3
+ "version": "1.96.25",
4
4
  "description": "SAPUI5 Library sap.chart",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2021 SAP SE. All rights reserved.</copyright>
8
- <version>1.96.23</version>
8
+ <version>1.96.25</version>
9
9
 
10
10
  <documentation>Smart viz control based on Vizframe</documentation>
11
11
 
@@ -756,11 +756,14 @@ sap.ui.define([
756
756
 
757
757
  Chart.prototype.setVisibleMeasures = function(aMeasureNames, bSuppressInvalidate) {
758
758
  this.setProperty("visibleMeasures", aMeasureNames, bSuppressInvalidate);
759
- var oStackTop = this._getDrillStateTop();
759
+ var oDrillStateStack = this._drillStateStack || [];
760
760
  if (!this._bIsInitialized) {
761
761
  this._createDrillStack();
762
762
  } else {
763
- oStackTop.measures = this.getProperty("visibleMeasures");
763
+ //Update all drill-stack levels with new visible measures.
764
+ oDrillStateStack.forEach(function(oDrillState){
765
+ oDrillState.measures = this.getProperty("visibleMeasures");
766
+ }.bind(this));
764
767
  }
765
768
 
766
769
  this._invalidateBy({
@@ -2055,9 +2058,10 @@ sap.ui.define([
2055
2058
  oOData4SAPAnalyticsModel = this._createOData4SAPAnalyticsModel(oModel);
2056
2059
  this._setIsAnalyticalProperty(oOData4SAPAnalyticsModel, oBindingInfo);
2057
2060
  if (this.getIsAnalytical()) {
2061
+ var V2ODataModel = sap.ui.require("sap/ui/model/odata/v2/ODataModel");
2058
2062
  if (oBindingInfo) {
2059
2063
  var bNoPaging = true;
2060
- if (oBindingInfo.length != undefined || this._isEnablePaging()) {
2064
+ if (oBindingInfo.length != undefined || this._isEnablePaging() || V2ODataModel && (oModel instanceof V2ODataModel)) {
2061
2065
  bNoPaging = false;
2062
2066
  }
2063
2067
  oBindingInfo.parameters = jQuery.extend(true, {
@@ -2106,9 +2110,10 @@ sap.ui.define([
2106
2110
  oOData4SAPAnalyticsModel = this._createOData4SAPAnalyticsModel(oModel);
2107
2111
  this._setIsAnalyticalProperty(oOData4SAPAnalyticsModel, oBindingInfo);
2108
2112
  if (this.getIsAnalytical()) {
2113
+ var V2ODataModel = sap.ui.require("sap/ui/model/odata/v2/ODataModel");
2109
2114
  if (oBindingInfo) {
2110
2115
  var bNoPaging = true;
2111
- if (oBindingInfo.length != undefined || this._isEnablePaging()) {
2116
+ if (oBindingInfo.length != undefined || this._isEnablePaging() || V2ODataModel && (oModel instanceof V2ODataModel)) {
2112
2117
  bNoPaging = false;
2113
2118
  }
2114
2119
  oBindingInfo.parameters = jQuery.extend(true, {
@@ -48,7 +48,7 @@ sap.ui.define(['sap/viz/ui5/format/ChartFormatter', // library dependency
48
48
  "sap.chart.data.Measure"
49
49
  ],
50
50
  noLibraryCSS: true,
51
- version: "1.96.23"
51
+ version: "1.96.25"
52
52
  });
53
53
 
54
54