@sapui5/sap.chart 1.120.7 → 1.121.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 +1 -1
- package/src/sap/chart/.library +2 -2
- package/src/sap/chart/AutoScaleMode.js +1 -1
- package/src/sap/chart/Chart.js +19 -13
- package/src/sap/chart/ChartLog.js +1 -1
- package/src/sap/chart/ChartType.js +1 -1
- package/src/sap/chart/ColoringType.js +1 -1
- package/src/sap/chart/ScaleBehavior.js +1 -1
- package/src/sap/chart/SeriesColorTracker.js +1 -1
- package/src/sap/chart/TimeUnitType.js +1 -1
- package/src/sap/chart/coloring/ColorPalette.js +1 -1
- package/src/sap/chart/coloring/ColoringUtils.js +1 -1
- package/src/sap/chart/coloring/Colorings.js +1 -1
- package/src/sap/chart/coloring/CriticalityType.js +1 -1
- package/src/sap/chart/coloring/criticality/Criticality.js +1 -1
- package/src/sap/chart/coloring/criticality/DimensionValues.js +1 -1
- package/src/sap/chart/coloring/criticality/measureValues/MeasureUtils.js +1 -1
- package/src/sap/chart/coloring/criticality/measureValues/MeasureValues.js +1 -1
- package/src/sap/chart/coloring/criticality/measureValues/ThresholdsUtils.js +1 -1
- package/src/sap/chart/coloring/emphasis/DimensionValues.js +1 -1
- package/src/sap/chart/coloring/emphasis/Emphasis.js +1 -1
- package/src/sap/chart/coloring/gradation/DelineatedDimensionValues.js +1 -1
- package/src/sap/chart/coloring/gradation/DelineatedMeasures.js +1 -1
- package/src/sap/chart/coloring/gradation/Gradation.js +1 -1
- package/src/sap/chart/coloring/gradation/rankedMeasureValues/RankedMeasureUtils.js +1 -1
- package/src/sap/chart/coloring/gradation/rankedMeasureValues/RankedMeasureValues.js +1 -1
- package/src/sap/chart/data/Dimension.js +1 -1
- package/src/sap/chart/data/DimensionRoleType.js +1 -1
- package/src/sap/chart/data/HierarchyDimension.js +1 -1
- package/src/sap/chart/data/Measure.js +1 -1
- package/src/sap/chart/data/MeasureRoleType.js +1 -1
- package/src/sap/chart/data/MeasureSemantics.js +1 -1
- package/src/sap/chart/data/TimeDimension.js +1 -1
- package/src/sap/chart/designtime/Chart.designtime.js +1 -1
- package/src/sap/chart/library.js +2 -2
- package/src/sap/chart/pagination/PagingController.js +1 -1
- package/src/sap/chart/utils/ChartTypeAdapterUtils.js +1 -1
- package/src/sap/chart/utils/ChartUtils.js +1 -1
- package/src/sap/chart/utils/DataSourceUtils.js +1 -1
- package/src/sap/chart/utils/DateFormatUtil.js +8 -3
- package/src/sap/chart/utils/MeasureSemanticsUtils.js +1 -1
- package/src/sap/chart/utils/RoleFitter.js +1 -1
- package/src/sap/chart/utils/RoleMapper.js +1 -1
- package/src/sap/chart/utils/SelectionAPIUtils.js +1 -1
- package/src/sap/chart/utils/ValueAxisScaleUtils.js +1 -1
package/package.json
CHANGED
package/src/sap/chart/.library
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<name>sap.chart</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
8
|
-
<version>1.
|
|
7
|
+
* (c) Copyright 2009-2024 SAP SE. All rights reserved.</copyright>
|
|
8
|
+
<version>1.121.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>Smart viz control based on Vizframe</documentation>
|
|
11
11
|
|
package/src/sap/chart/Chart.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define([
|
|
6
6
|
'sap/base/i18n/Formatting',
|
|
@@ -765,7 +765,7 @@ sap.ui.define([
|
|
|
765
765
|
return this;
|
|
766
766
|
};
|
|
767
767
|
|
|
768
|
-
Chart.prototype.setVisibleMeasures = function(aMeasureNames, bSuppressInvalidate) {
|
|
768
|
+
Chart.prototype.setVisibleMeasures = function(aMeasureNames, bSuppressInvalidate, bIsValidated) {
|
|
769
769
|
this.setProperty("visibleMeasures", aMeasureNames, bSuppressInvalidate);
|
|
770
770
|
var oDrillStateStack = this._drillStateStack || [];
|
|
771
771
|
if (!this._bIsInitialized) {
|
|
@@ -776,16 +776,17 @@ sap.ui.define([
|
|
|
776
776
|
oDrillState.measures = this.getProperty("visibleMeasures");
|
|
777
777
|
}.bind(this));
|
|
778
778
|
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
779
|
+
//If the bIsValidated is false, should invalidate the chart.
|
|
780
|
+
if (!bIsValidated) {
|
|
781
|
+
this._invalidateBy({
|
|
782
|
+
source: this,
|
|
783
|
+
keys: {
|
|
784
|
+
binding: true,
|
|
785
|
+
dataSet: true,
|
|
786
|
+
vizFrame: true
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
}
|
|
789
790
|
return this;
|
|
790
791
|
};
|
|
791
792
|
|
|
@@ -2253,7 +2254,7 @@ sap.ui.define([
|
|
|
2253
2254
|
this._rendered = true;
|
|
2254
2255
|
};
|
|
2255
2256
|
|
|
2256
|
-
Chart.prototype.
|
|
2257
|
+
Chart.prototype.onLocalizationChanged = function() {
|
|
2257
2258
|
this._invalidateBy({
|
|
2258
2259
|
source: this,
|
|
2259
2260
|
keys: {
|
|
@@ -2262,6 +2263,11 @@ sap.ui.define([
|
|
|
2262
2263
|
});
|
|
2263
2264
|
};
|
|
2264
2265
|
|
|
2266
|
+
/**
|
|
2267
|
+
* @deprecated As of version 1.120
|
|
2268
|
+
*/
|
|
2269
|
+
Chart.prototype.onlocalizationChanged = Chart.prototype.onLocalizationChanged;
|
|
2270
|
+
|
|
2265
2271
|
/*
|
|
2266
2272
|
* @override
|
|
2267
2273
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define(["sap/ui/core/Element", "sap/chart/utils/ChartUtils", "sap/ui/thirdparty/jquery"], function(Element, ChartUtils, jQuery) {
|
package/src/sap/chart/library.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
"sap.chart.data.Measure"
|
|
68
68
|
],
|
|
69
69
|
noLibraryCSS: true,
|
|
70
|
-
version: "1.
|
|
70
|
+
version: "1.121.0"
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
/*
|
|
6
6
|
* Parse and Format Date String depending on sap.ui.core.format.DateFormat
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'sap/chart/TimeUnitType',
|
|
10
|
-
'sap/ui/core/format/DateFormat'
|
|
10
|
+
'sap/ui/core/format/DateFormat',
|
|
11
|
+
'sap/base/i18n/date/CalendarType'
|
|
11
12
|
], function(
|
|
12
13
|
TimeUnitType,
|
|
13
|
-
DateFormat
|
|
14
|
+
DateFormat,
|
|
15
|
+
CalendarType
|
|
14
16
|
) {
|
|
15
17
|
"use strict";
|
|
16
18
|
|
|
@@ -24,6 +26,9 @@ sap.ui.define([
|
|
|
24
26
|
function getInstance(sTimeUnitType) {
|
|
25
27
|
var sPattern = PATTERN_TABLE[sTimeUnitType];
|
|
26
28
|
if (sPattern) {
|
|
29
|
+
if (sPattern === PATTERN_TABLE[TimeUnitType.yearweek]) {
|
|
30
|
+
return DateFormat.getDateInstance({pattern: sPattern, calendarType: CalendarType.Gregorian});
|
|
31
|
+
}
|
|
27
32
|
return DateFormat.getDateInstance({pattern: sPattern});
|
|
28
33
|
} else {
|
|
29
34
|
return null;
|