@sapui5/sap.chart 1.117.2 → 1.119.0
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
package/src/sap/chart/.library
CHANGED
package/src/sap/chart/Chart.js
CHANGED
|
@@ -2062,9 +2062,10 @@ sap.ui.define([
|
|
|
2062
2062
|
oOData4SAPAnalyticsModel = this._createOData4SAPAnalyticsModel(oModel);
|
|
2063
2063
|
this._setIsAnalyticalProperty(oOData4SAPAnalyticsModel, oBindingInfo);
|
|
2064
2064
|
if (this.getIsAnalytical()) {
|
|
2065
|
+
var V2ODataModel = sap.ui.require("sap/ui/model/odata/v2/ODataModel");
|
|
2065
2066
|
if (oBindingInfo) {
|
|
2066
2067
|
var bNoPaging = true;
|
|
2067
|
-
if (oBindingInfo.length != undefined || this._isEnablePaging()) {
|
|
2068
|
+
if (oBindingInfo.length != undefined || this._isEnablePaging() || V2ODataModel && (oModel instanceof V2ODataModel)) {
|
|
2068
2069
|
bNoPaging = false;
|
|
2069
2070
|
}
|
|
2070
2071
|
oBindingInfo.parameters = jQuery.extend(true, {
|
|
@@ -2113,9 +2114,10 @@ sap.ui.define([
|
|
|
2113
2114
|
oOData4SAPAnalyticsModel = this._createOData4SAPAnalyticsModel(oModel);
|
|
2114
2115
|
this._setIsAnalyticalProperty(oOData4SAPAnalyticsModel, oBindingInfo);
|
|
2115
2116
|
if (this.getIsAnalytical()) {
|
|
2117
|
+
var V2ODataModel = sap.ui.require("sap/ui/model/odata/v2/ODataModel");
|
|
2116
2118
|
if (oBindingInfo) {
|
|
2117
2119
|
var bNoPaging = true;
|
|
2118
|
-
if (oBindingInfo.length != undefined || this._isEnablePaging()) {
|
|
2120
|
+
if (oBindingInfo.length != undefined || this._isEnablePaging() || V2ODataModel && (oModel instanceof V2ODataModel)) {
|
|
2119
2121
|
bNoPaging = false;
|
|
2120
2122
|
}
|
|
2121
2123
|
oBindingInfo.parameters = jQuery.extend(true, {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
31
31
|
* @since 1.38.0
|
|
32
|
-
* @
|
|
32
|
+
* @alias sap.chart.data.TimeDimension
|
|
33
33
|
*/
|
|
34
34
|
var TimeDimension = Dimension.extend("sap.chart.data.TimeDimension", {
|
|
35
35
|
metadata : {
|
|
@@ -64,23 +64,41 @@ sap.ui.define([
|
|
|
64
64
|
TimeDimension.prototype.setFiscalYearPeriodCount = ChartUtils.makeNotifyParentProperty("fiscalYearPeriodCount");
|
|
65
65
|
TimeDimension.prototype.setProjectedValueStartTime = ChartUtils.makeNotifyParentProperty("projectedValueStartTime");
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Sets whether to use UTC for the time dimension
|
|
68
68
|
*
|
|
69
69
|
* @private
|
|
70
|
-
* @param {boolean} bUTC set the time dimension data
|
|
70
|
+
* @param {boolean} bUTC set the time dimension data is parsed in UTC or not
|
|
71
71
|
*/
|
|
72
72
|
TimeDimension.prototype._setIsUTC = function(bUTC) {
|
|
73
73
|
this._bUTC = bUTC;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Returns if UTC is used for the time dimension
|
|
77
77
|
*
|
|
78
78
|
* @private
|
|
79
|
-
* @return {boolean} true if the time dimension data
|
|
79
|
+
* @return {boolean} true if the time dimension data is parsed in UTC, otherwise return false
|
|
80
80
|
*/
|
|
81
81
|
TimeDimension.prototype._getIsUTC = function() {
|
|
82
82
|
return this._bUTC;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Sets whether to use UTC for the time dimension
|
|
88
|
+
* @param {boolean} bUTC set the time dimension data is parsed in UTC or not
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
TimeDimension.prototype.setIsUTC = function(bUTC) {
|
|
92
|
+
this._setIsUTC(bUTC);
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Returns if UTC is used for the time dimension
|
|
96
|
+
* @return {boolean} true if the time dimension data is parsed in UTC, otherwise return false
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
TimeDimension.prototype.getIsUTC = function() {
|
|
100
|
+
return this._getIsUTC();
|
|
101
|
+
};
|
|
102
|
+
|
|
85
103
|
return TimeDimension;
|
|
86
104
|
});
|