@sapui5/sap.viz 1.140.0 → 1.141.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/viz/.library +1 -1
- package/src/sap/viz/library.js +194 -1
- package/src/sap/viz/libs/sap-viz-info-charts.js +827 -170
- package/src/sap/viz/libs/sap-viz-info-framework.js +329 -9
- package/src/sap/viz/resources/chart/templates/standard_fiori/template.js +24 -4
- package/src/sap/viz/themes/base/shared.less +15 -1
- package/src/sap/viz/ui5/controls/chartpopover/ContentPanel.js +1 -1
- package/src/sap/viz/ui5/core/BaseChartMetadata.js +1 -1
- package/src/sap/viz/ui5/theming/Util.js +37 -36
|
@@ -4060,6 +4060,7 @@ define('sap/viz/framework/common/util/Constants',[], function Setup() {
|
|
|
4060
4060
|
DATAPOINTHOVER: "v-datapoint-hover",
|
|
4061
4061
|
ZEROVALUEHOVER: "v-datapoint-zero-hover",
|
|
4062
4062
|
DATAPOINTSELECTED: "v-datapoint-selected",
|
|
4063
|
+
DATAPOINTDESELECTED: "v-datapoint-deselected",
|
|
4063
4064
|
NONINTERACTIVEARIA: "v-m-non-interactive-aria",
|
|
4064
4065
|
STACK: "v-stack",
|
|
4065
4066
|
LINES_GROUP: "v-lines-group",
|
|
@@ -4114,6 +4115,7 @@ define('sap/viz/framework/common/util/Constants',[], function Setup() {
|
|
|
4114
4115
|
LEGEND_BOUND_SELECTION: ".v-m-legend .v-bound",
|
|
4115
4116
|
LEGEND_ITEM_BOUND_SELECTION: ".v-legend-item rect:first-child",
|
|
4116
4117
|
AXIS_ITEM_BOUND_SELECTION: "rect.viz-axis-label-rect",
|
|
4118
|
+
AXIS_ITEM_BOUND_SELECTION_ACC: "polygon.viz-axis-label-rect",
|
|
4117
4119
|
PLOT_BOUND_SELECTION: ".v-plot-bound",
|
|
4118
4120
|
PIE_HOVER_STROKE: "v-pie-hover-stroke"
|
|
4119
4121
|
}
|
|
@@ -4260,7 +4262,8 @@ define('sap/viz/framework/common/util/Constants',[], function Setup() {
|
|
|
4260
4262
|
VERTICAL_ANGLE: 90,
|
|
4261
4263
|
SCROLLBAR_NAME: "axisScrollbar",
|
|
4262
4264
|
HIDDEN_TITLE: {
|
|
4263
|
-
COLOR: "#a6a6a6"
|
|
4265
|
+
COLOR: "#a6a6a6",
|
|
4266
|
+
ACC_COLOR: "sapContent_LabelColor"
|
|
4264
4267
|
},
|
|
4265
4268
|
SPACING_TO_ROUGH: 0.05,
|
|
4266
4269
|
SPACING_TO_ROOT: 0.02,
|
|
@@ -4278,7 +4281,8 @@ define('sap/viz/framework/common/util/Constants',[], function Setup() {
|
|
|
4278
4281
|
KEY:"title",
|
|
4279
4282
|
SPACING_WITH_MAIN_TO_ROUGH: 0.08,
|
|
4280
4283
|
SPACING_MAX_IN_PX: 40,
|
|
4281
|
-
FIX_SPACING_MAX_IN_PX: 16
|
|
4284
|
+
FIX_SPACING_MAX_IN_PX: 16,
|
|
4285
|
+
ARIALEVEL: 2,
|
|
4282
4286
|
},
|
|
4283
4287
|
SCROLLBAR :{
|
|
4284
4288
|
ALIAS: "scrollbar"
|
|
@@ -29669,9 +29673,8 @@ define('sap/viz/framework/core/ChartApp',[
|
|
|
29669
29673
|
var titleText = (isNonInteractionEnabled ? 'A Noninteractive ' : 'An Interactive ') +
|
|
29670
29674
|
(chartName || 'Chart');
|
|
29671
29675
|
rootElement.attr('focusable', true)
|
|
29672
|
-
.attr('
|
|
29673
|
-
.attr('role', 'graphics-object')
|
|
29674
|
-
.attr('aria-roledescription', titleText);
|
|
29676
|
+
.attr('tabindex', 0)
|
|
29677
|
+
.attr('role', 'graphics-object');
|
|
29675
29678
|
var textSet = this._propertyMgr.get('title.text');
|
|
29676
29679
|
var textShow = TitleUtil.getTextShow(textSet);
|
|
29677
29680
|
titleText += this._propertyMgr.get('title.visible') ? ('. Chart title is ' + textShow + ". ") :' ';
|
|
@@ -29679,10 +29682,12 @@ define('sap/viz/framework/core/ChartApp',[
|
|
|
29679
29682
|
var accDescription = this._propertyMgr.get('general.accDescription');
|
|
29680
29683
|
titleText += isNonInteractionEnabled && accDescription ? (accDescription + ". ") : "";
|
|
29681
29684
|
|
|
29682
|
-
var titleElement =rootElement.selectAll('.v-m-desc-title').selectAll('
|
|
29685
|
+
var titleElement =rootElement.selectAll('.v-m-desc-title').selectAll('text').data([titleText]);
|
|
29683
29686
|
var titleId = getChartTitleId(this._chartAppId);
|
|
29684
|
-
titleElement.enter().append('
|
|
29685
|
-
titleElement.text(titleText);
|
|
29687
|
+
titleElement.enter().append('text');
|
|
29688
|
+
titleElement.attr('id',titleId).text(titleText).attr('x',20).attr('y', 20).attr('opacity', 0);
|
|
29689
|
+
// x: 20, y:20 --- To position the title text in the SVG.
|
|
29690
|
+
// opacity: 0 --- To make the title text invisible and keep the origin layout.
|
|
29686
29691
|
};
|
|
29687
29692
|
|
|
29688
29693
|
|
|
@@ -37816,6 +37821,17 @@ define('sap/viz/framework/common/util/NameColorUtils',['sap/viz/framework/common
|
|
|
37816
37821
|
retValue = "#000000";
|
|
37817
37822
|
}
|
|
37818
37823
|
return retValue;
|
|
37824
|
+
},
|
|
37825
|
+
getNameByColor: function(color) {
|
|
37826
|
+
if (!registered) {
|
|
37827
|
+
return color;
|
|
37828
|
+
}
|
|
37829
|
+
for (var key in configs) {
|
|
37830
|
+
if (configs.hasOwnProperty(key) && configs[key] === color) {
|
|
37831
|
+
return key;
|
|
37832
|
+
}
|
|
37833
|
+
}
|
|
37834
|
+
return null;
|
|
37819
37835
|
}
|
|
37820
37836
|
|
|
37821
37837
|
};
|
|
@@ -38094,6 +38110,306 @@ define('sap/viz/framework/common/format/UnitFormat',['sap/viz/framework/common/u
|
|
|
38094
38110
|
return UnitFormat;
|
|
38095
38111
|
});
|
|
38096
38112
|
|
|
38113
|
+
define('sap/viz/framework/common/util/ACCStyleUtils',['sap/viz/framework/common/util/ObjectUtils',
|
|
38114
|
+
'sap/viz/framework/common/util/NameColorUtils'
|
|
38115
|
+
],
|
|
38116
|
+
function Setup(ObjectUtils, NameColorUtils) {
|
|
38117
|
+
|
|
38118
|
+
var DEFAULT_THRESHOLD = 3;
|
|
38119
|
+
// Thresholds for different themes and text/non-text elements
|
|
38120
|
+
// Refer to https://www.w3.org/TR/WCAG22/#contrast-ratiodef for details
|
|
38121
|
+
// The values are from internal design guidelines and may be adjusted in the future
|
|
38122
|
+
// when more test results are available.
|
|
38123
|
+
// Note: The theme names must be kept in sync with those in sap.viz.ui5.themes
|
|
38124
|
+
// https://www.sap.com/design-system/fiori-design-web/foundations/visual/theming?external
|
|
38125
|
+
var THRESHOLD_STANDARDS = {
|
|
38126
|
+
HORIZON: {
|
|
38127
|
+
TEXT: 4.5,
|
|
38128
|
+
NON_TEXT: 3.0
|
|
38129
|
+
},
|
|
38130
|
+
HORIZON_DARK: {
|
|
38131
|
+
TEXT: 4.5,
|
|
38132
|
+
NON_TEXT: 3.0
|
|
38133
|
+
},
|
|
38134
|
+
HORIZON_HCB: {
|
|
38135
|
+
TEXT: 7.0,
|
|
38136
|
+
NON_TEXT: 4.5
|
|
38137
|
+
},
|
|
38138
|
+
HORIZON_HCW: {
|
|
38139
|
+
TEXT: 7.0,
|
|
38140
|
+
NON_TEXT: 4.5
|
|
38141
|
+
},
|
|
38142
|
+
FIORI_3: {
|
|
38143
|
+
TEXT: 4.5,
|
|
38144
|
+
NON_TEXT: 3.0
|
|
38145
|
+
},
|
|
38146
|
+
FIORI_3_DARK: {
|
|
38147
|
+
TEXT: 4.5,
|
|
38148
|
+
NON_TEXT: 3.0
|
|
38149
|
+
}
|
|
38150
|
+
};
|
|
38151
|
+
var DEFAULT_BORDER_WIDTH_NAME = 'sapElement_BorderWidth';
|
|
38152
|
+
|
|
38153
|
+
var colorMapping = {
|
|
38154
|
+
// Semantic colors
|
|
38155
|
+
'sapUiChartPaletteSemanticBadLight3': 'sapChart_Sequence_Bad_Plus3',
|
|
38156
|
+
'sapUiChartPaletteSemanticBadLight2': 'sapChart_Sequence_Bad_Plus2',
|
|
38157
|
+
'sapUiChartPaletteSemanticBadLight1': 'sapChart_Sequence_Bad_Plus1',
|
|
38158
|
+
'sapUiChartPaletteSemanticBad': 'sapChart_Sequence_Bad',
|
|
38159
|
+
'sapUiChartPaletteSemanticBadDark1': 'sapChart_Sequence_Bad_Minus1',
|
|
38160
|
+
'sapUiChartPaletteSemanticBadDark2': 'sapChart_Sequence_Bad_Minus2',
|
|
38161
|
+
|
|
38162
|
+
'sapUiChartPaletteSemanticCriticalLight3': 'sapChart_Sequence_Critical_Plus3',
|
|
38163
|
+
'sapUiChartPaletteSemanticCriticalLight2': 'sapChart_Sequence_Critical_Plus2',
|
|
38164
|
+
'sapUiChartPaletteSemanticCriticalLight1': 'sapChart_Sequence_Critical_Plus1',
|
|
38165
|
+
'sapUiChartPaletteSemanticCritical': 'sapChart_Sequence_Critical',
|
|
38166
|
+
'sapUiChartPaletteSemanticCriticalDark1': 'sapChart_Sequence_Critical_Minus1',
|
|
38167
|
+
'sapUiChartPaletteSemanticCriticalDark2': 'sapChart_Sequence_Critical_Minus2',
|
|
38168
|
+
|
|
38169
|
+
'sapUiChartPaletteSemanticGoodLight3': 'sapChart_Sequence_Good_Plus3',
|
|
38170
|
+
'sapUiChartPaletteSemanticGoodLight2': 'sapChart_Sequence_Good_Plus2',
|
|
38171
|
+
'sapUiChartPaletteSemanticGoodLight1': 'sapChart_Sequence_Good_Plus1',
|
|
38172
|
+
'sapUiChartPaletteSemanticGood': 'sapChart_Sequence_Good',
|
|
38173
|
+
'sapUiChartPaletteSemanticGoodDark1': 'sapChart_Sequence_Good_Minus1',
|
|
38174
|
+
'sapUiChartPaletteSemanticGoodDark2': 'sapChart_Sequence_Good_Minus2',
|
|
38175
|
+
|
|
38176
|
+
'sapUiChartPaletteSemanticNeutralLight3': 'sapChart_Sequence_Neutral_Plus3',
|
|
38177
|
+
'sapUiChartPaletteSemanticNeutralLight2': 'sapChart_Sequence_Neutral_Plus2',
|
|
38178
|
+
'sapUiChartPaletteSemanticNeutralLight1': 'sapChart_Sequence_Neutral_Plus1',
|
|
38179
|
+
'sapUiChartPaletteSemanticNeutral': 'sapChart_Sequence_Neutral',
|
|
38180
|
+
'sapUiChartPaletteSemanticNeutralDark1': 'sapChart_Sequence_Neutral_Minus1',
|
|
38181
|
+
'sapUiChartPaletteSemanticNeutralDark2': 'sapChart_Sequence_Neutral_Minus2',
|
|
38182
|
+
|
|
38183
|
+
// Non-semantic and sequential colors
|
|
38184
|
+
'sapUiChartPaletteNoSemDiv1Dark2': 'sapChart_Sequence_12_Plus3',
|
|
38185
|
+
'sapUiChartPaletteNoSemDiv1Dark1': 'sapChart_Sequence_12_Plus2',
|
|
38186
|
+
'sapUiChartPaletteNoSemDiv1': 'sapChart_Sequence_12_Plus1',
|
|
38187
|
+
'sapUiChartPaletteNoSemDiv1Light1': 'sapChart_Sequence_12',
|
|
38188
|
+
'sapUiChartPaletteNoSemDiv1Light2': 'sapChart_Sequence_12_Minus1',
|
|
38189
|
+
'sapUiChartPaletteNoSemDiv1Light3': 'sapChart_Sequence_12_Minus2',
|
|
38190
|
+
|
|
38191
|
+
'sapUiChartPaletteSequentialHue1Light3': 'sapChart_Sequence_1_Plus3',
|
|
38192
|
+
'sapUiChartPaletteSequentialHue1Light2': 'sapChart_Sequence_1_Plus2',
|
|
38193
|
+
'sapUiChartPaletteSequentialHue1Light1': 'sapChart_Sequence_1_Plus1',
|
|
38194
|
+
'sapUiChartPaletteSequentialHue1': 'sapChart_Sequence_1',
|
|
38195
|
+
'sapUiChartPaletteSequentialHue1Dark1': 'sapChart_Sequence_1_Minus1',
|
|
38196
|
+
'sapUiChartPaletteSequentialHue1Dark2': 'sapChart_Sequence_1_Minus2',
|
|
38197
|
+
|
|
38198
|
+
'sapUiChartPaletteSequentialHue2Light3': 'sapChart_Sequence_2_Plus3',
|
|
38199
|
+
'sapUiChartPaletteSequentialHue2Light2': 'sapChart_Sequence_2_Plus2',
|
|
38200
|
+
'sapUiChartPaletteSequentialHue2Light1': 'sapChart_Sequence_2_Plus1',
|
|
38201
|
+
'sapUiChartPaletteSequentialHue2': 'sapChart_Sequence_2',
|
|
38202
|
+
'sapUiChartPaletteSequentialHue2Dark1': 'sapChart_Sequence_2_Minus1',
|
|
38203
|
+
'sapUiChartPaletteSequentialHue2Dark2': 'sapChart_Sequence_2_Minus2',
|
|
38204
|
+
|
|
38205
|
+
'sapUiChartPaletteSequentialHue3Light3': 'sapChart_Sequence_3_Plus3',
|
|
38206
|
+
'sapUiChartPaletteSequentialHue3Light2': 'sapChart_Sequence_3_Plus2',
|
|
38207
|
+
'sapUiChartPaletteSequentialHue3Light1': 'sapChart_Sequence_3_Plus1',
|
|
38208
|
+
'sapUiChartPaletteSequentialHue3': 'sapChart_Sequence_3',
|
|
38209
|
+
'sapUiChartPaletteSequentialHue3Dark1': 'sapChart_Sequence_3_Minus1',
|
|
38210
|
+
'sapUiChartPaletteSequentialHue3Dark2': 'sapChart_Sequence_3_Minus2',
|
|
38211
|
+
|
|
38212
|
+
'sapUiChartPaletteSequentialHue6Light3': 'sapChart_Sequence_6_Plus3',
|
|
38213
|
+
'sapUiChartPaletteSequentialHue6Light2': 'sapChart_Sequence_6_Plus2',
|
|
38214
|
+
'sapUiChartPaletteSequentialHue6Light1': 'sapChart_Sequence_6_Plus1',
|
|
38215
|
+
'sapUiChartPaletteSequentialHue6': 'sapChart_Sequence_6',
|
|
38216
|
+
'sapUiChartPaletteSequentialHue6Dark1': 'sapChart_Sequence_6_Minus1',
|
|
38217
|
+
'sapUiChartPaletteSequentialHue6Dark2': 'sapChart_Sequence_6_Minus2',
|
|
38218
|
+
|
|
38219
|
+
'sapUiChartPaletteSequentialNeutralLight3': 'sapChart_Sequence_Neutral_Plus3',
|
|
38220
|
+
'sapUiChartPaletteSequentialNeutralLight2': 'sapChart_Sequence_Neutral_Plus2',
|
|
38221
|
+
'sapUiChartPaletteSequentialNeutralLight1': 'sapChart_Sequence_Neutral_Plus1',
|
|
38222
|
+
'sapUiChartPaletteSequentialNeutral': 'sapChart_Sequence_Neutral',
|
|
38223
|
+
'sapUiChartPaletteSequentialNeutralDark1': 'sapChart_Sequence_Neutral_Minus1',
|
|
38224
|
+
'sapUiChartPaletteSequentialNeutralDark2': 'sapChart_Sequence_Neutral_Minus2',
|
|
38225
|
+
|
|
38226
|
+
// qualitative palette
|
|
38227
|
+
'sapUiChartPaletteQualitativeHue1': 'sapChart_Sequence_1',
|
|
38228
|
+
'sapUiChartPaletteQualitativeHue2': 'sapChart_Sequence_2',
|
|
38229
|
+
'sapUiChartPaletteQualitativeHue3': 'sapChart_Sequence_3',
|
|
38230
|
+
'sapUiChartPaletteQualitativeHue4': 'sapChart_Sequence_4',
|
|
38231
|
+
'sapUiChartPaletteQualitativeHue5': 'sapChart_Sequence_5',
|
|
38232
|
+
'sapUiChartPaletteQualitativeHue6': 'sapChart_Sequence_6',
|
|
38233
|
+
'sapUiChartPaletteQualitativeHue7': 'sapChart_Sequence_7',
|
|
38234
|
+
'sapUiChartPaletteQualitativeHue8': 'sapChart_Sequence_8',
|
|
38235
|
+
'sapUiChartPaletteQualitativeHue9': 'sapChart_Sequence_9',
|
|
38236
|
+
'sapUiChartPaletteQualitativeHue10': 'sapChart_Sequence_10',
|
|
38237
|
+
'sapUiChartPaletteQualitativeHue11': 'sapChart_Sequence_11',
|
|
38238
|
+
'sapUiChartPaletteQualitativeHue12': 'sapChart_Sequence_1_Minus2',
|
|
38239
|
+
'sapUiChartPaletteQualitativeHue13': 'sapChart_Sequence_2_Minus2',
|
|
38240
|
+
'sapUiChartPaletteQualitativeHue14': 'sapChart_Sequence_3_Minus2',
|
|
38241
|
+
'sapUiChartPaletteQualitativeHue15': 'sapChart_Sequence_4_Minus2',
|
|
38242
|
+
'sapUiChartPaletteQualitativeHue16': 'sapChart_Sequence_5_Minus2',
|
|
38243
|
+
'sapUiChartPaletteQualitativeHue17': 'sapChart_Sequence_6_Minus2',
|
|
38244
|
+
'sapUiChartPaletteQualitativeHue18': 'sapChart_Sequence_7_Minus2',
|
|
38245
|
+
'sapUiChartPaletteQualitativeHue19': 'sapChart_Sequence_8_Minus2',
|
|
38246
|
+
'sapUiChartPaletteQualitativeHue20': 'sapChart_Sequence_9_Minus2',
|
|
38247
|
+
'sapUiChartPaletteQualitativeHue21': 'sapChart_Sequence_10_Minus2',
|
|
38248
|
+
'sapUiChartPaletteQualitativeHue22': 'sapChart_Sequence_11_Minus2'
|
|
38249
|
+
};
|
|
38250
|
+
var themeMapping = {
|
|
38251
|
+
"sap_horizon_fiori__merged_with_cvom_by_vizframe[]": "HORIZON",
|
|
38252
|
+
"sap_horizon_dark_fiori__merged_with_cvom_by_vizframe[]": "HORIZON_DARK",
|
|
38253
|
+
"sap_horizon_hcb_fiori__merged_with_cvom_by_vizframe[]": "HORIZON_HCB",
|
|
38254
|
+
"sap_horizon_hcw_fiori__merged_with_cvom_by_vizframe[]": "HORIZON_HCW",
|
|
38255
|
+
"sap_fiori_3_fiori__merged_with_cvom_by_vizframe[]": "FIORI_3",
|
|
38256
|
+
"sap_fiori_3_dark_fiori__merged_with_cvom_by_vizframe[]": "FIORI_3_DARK"
|
|
38257
|
+
};
|
|
38258
|
+
|
|
38259
|
+
var configs = {};
|
|
38260
|
+
var registered = false;
|
|
38261
|
+
|
|
38262
|
+
function stringIncludes(str, sub) {
|
|
38263
|
+
return str.indexOf(sub) > -1;
|
|
38264
|
+
}
|
|
38265
|
+
|
|
38266
|
+
// A helper function to find the color category from the specific name.
|
|
38267
|
+
// e.g., 'sapChart_Sequence_Bad_Plus3' -> 'Bad'
|
|
38268
|
+
// 'sapChart_Sequence_1_Plus3' -> '1'
|
|
38269
|
+
function getColorCategoryFromSpecificName(specificName) {
|
|
38270
|
+
if (!specificName || specificName.indexOf("sapChart_Sequence_") !== 0) {
|
|
38271
|
+
return null;
|
|
38272
|
+
}
|
|
38273
|
+
|
|
38274
|
+
// Remove the prefix
|
|
38275
|
+
var part = specificName.substring("sapChart_Sequence_".length);
|
|
38276
|
+
|
|
38277
|
+
// Find the category part.
|
|
38278
|
+
if (part.indexOf("_") !== -1) {
|
|
38279
|
+
// e.g., 'Bad_Plus3' -> 'Bad'
|
|
38280
|
+
// '12_Plus3' -> '12'
|
|
38281
|
+
var category = part.substring(0, part.indexOf("_"));
|
|
38282
|
+
return category;
|
|
38283
|
+
} else {
|
|
38284
|
+
// Handle cases like 'sapChart_Sequence_Bad'
|
|
38285
|
+
return part;
|
|
38286
|
+
}
|
|
38287
|
+
}
|
|
38288
|
+
|
|
38289
|
+
|
|
38290
|
+
var ACCStyleUtils = {
|
|
38291
|
+
constructor: function () {
|
|
38292
|
+
return;
|
|
38293
|
+
},
|
|
38294
|
+
register: function (obj) {
|
|
38295
|
+
registered = true;
|
|
38296
|
+
configs = ObjectUtils.extendByRepalceArray(true, null, configs, obj);
|
|
38297
|
+
return ACCStyleUtils;
|
|
38298
|
+
},
|
|
38299
|
+
getAccStyle: function (cssName) {
|
|
38300
|
+
if (!registered) {
|
|
38301
|
+
return cssName;
|
|
38302
|
+
}
|
|
38303
|
+
return configs.hasOwnProperty(cssName) ? configs[cssName] : cssName;
|
|
38304
|
+
},
|
|
38305
|
+
convertColor: function (color) {
|
|
38306
|
+
return this.getAccStyle(color);
|
|
38307
|
+
},
|
|
38308
|
+
getNameByColor: function (color) {
|
|
38309
|
+
return NameColorUtils.getNameByColor(color);
|
|
38310
|
+
},
|
|
38311
|
+
_resolveColorMapping: function (cssName) {
|
|
38312
|
+
if (!registered || !cssName) {
|
|
38313
|
+
return null;
|
|
38314
|
+
}
|
|
38315
|
+
var lookupKey = cssName;
|
|
38316
|
+
if (!stringIncludes(lookupKey, 'sap')) {
|
|
38317
|
+
var resolvedName = this.getNameByColor(lookupKey);
|
|
38318
|
+
if (resolvedName) {
|
|
38319
|
+
lookupKey = resolvedName;
|
|
38320
|
+
}
|
|
38321
|
+
}
|
|
38322
|
+
return colorMapping[lookupKey];
|
|
38323
|
+
},
|
|
38324
|
+
getBorderColorName: function (cssName) {
|
|
38325
|
+
if (!registered) {
|
|
38326
|
+
return cssName;
|
|
38327
|
+
}
|
|
38328
|
+
var specificColorName = this._resolveColorMapping(cssName);
|
|
38329
|
+
|
|
38330
|
+
if (!specificColorName) {
|
|
38331
|
+
return null;
|
|
38332
|
+
}
|
|
38333
|
+
var colorCategory = getColorCategoryFromSpecificName(specificColorName);
|
|
38334
|
+
if (!colorCategory) {
|
|
38335
|
+
return null;
|
|
38336
|
+
}
|
|
38337
|
+
return 'sapChart_Sequence_' + colorCategory + '_BorderColor';
|
|
38338
|
+
},
|
|
38339
|
+
|
|
38340
|
+
// The getBorderColor function remains the same, as it relies on getBorderColorName
|
|
38341
|
+
getBorderColor: function (cssName) {
|
|
38342
|
+
var borderColorName = this.getBorderColorName(cssName);
|
|
38343
|
+
|
|
38344
|
+
if (!borderColorName || borderColorName === cssName) {
|
|
38345
|
+
return cssName;
|
|
38346
|
+
}
|
|
38347
|
+
|
|
38348
|
+
return this.convertColor(borderColorName);
|
|
38349
|
+
},
|
|
38350
|
+
getBorderWidth: function (cssName) {
|
|
38351
|
+
if (!registered) {
|
|
38352
|
+
return cssName;
|
|
38353
|
+
}
|
|
38354
|
+
if (!cssName) {
|
|
38355
|
+
cssName = DEFAULT_BORDER_WIDTH_NAME;
|
|
38356
|
+
}
|
|
38357
|
+
var width = this.getAccStyle(cssName);
|
|
38358
|
+
if (typeof width === 'string' && stringIncludes(width, 'rem')) {
|
|
38359
|
+
var index = width.indexOf('rem');
|
|
38360
|
+
var remValue = parseFloat(width.substring(0, index));
|
|
38361
|
+
|
|
38362
|
+
if (!isNaN(remValue)) {
|
|
38363
|
+
var rootFontSize = parseFloat(window.getComputedStyle(document.documentElement).fontSize);
|
|
38364
|
+
return remValue * rootFontSize + 'px';
|
|
38365
|
+
}
|
|
38366
|
+
}
|
|
38367
|
+
return width;
|
|
38368
|
+
},
|
|
38369
|
+
getTextColor: function (cssName) {
|
|
38370
|
+
var mappedName = this._resolveColorMapping(cssName);
|
|
38371
|
+
if (mappedName) {
|
|
38372
|
+
return this.convertColor(mappedName + '_TextColor');
|
|
38373
|
+
}
|
|
38374
|
+
return cssName;
|
|
38375
|
+
},
|
|
38376
|
+
getTextShadowStyle: function (cssName) {
|
|
38377
|
+
var mappedName = this._resolveColorMapping(cssName);
|
|
38378
|
+
if (mappedName) {
|
|
38379
|
+
return this.getAccStyle(mappedName + '_TextShadow');
|
|
38380
|
+
}
|
|
38381
|
+
return cssName;
|
|
38382
|
+
},
|
|
38383
|
+
getTheme: function (themeName) {
|
|
38384
|
+
if (!registered) {
|
|
38385
|
+
return themeName;
|
|
38386
|
+
}
|
|
38387
|
+
return themeMapping[themeName];
|
|
38388
|
+
},
|
|
38389
|
+
getThreshold: function (theme, chartType, textVisible) {
|
|
38390
|
+
if (!registered) {
|
|
38391
|
+
return DEFAULT_THRESHOLD;
|
|
38392
|
+
}
|
|
38393
|
+
var chart = ['info/stacked_bar',
|
|
38394
|
+
'info/stacked_column',
|
|
38395
|
+
'info/100_stacked_bar',
|
|
38396
|
+
'info/100_stacked_column',
|
|
38397
|
+
'info/heatmap'];
|
|
38398
|
+
var isHighContrast = false;
|
|
38399
|
+
if (chart.indexOf(chartType) >= 0 && textVisible) {
|
|
38400
|
+
isHighContrast = true;
|
|
38401
|
+
}
|
|
38402
|
+
if (theme && THRESHOLD_STANDARDS[theme]) {
|
|
38403
|
+
return isHighContrast ? THRESHOLD_STANDARDS[theme].TEXT : THRESHOLD_STANDARDS[theme].NON_TEXT;
|
|
38404
|
+
}
|
|
38405
|
+
// fallback to default threshold when theme is missing or unknown
|
|
38406
|
+
return DEFAULT_THRESHOLD;
|
|
38407
|
+
}
|
|
38408
|
+
};
|
|
38409
|
+
|
|
38410
|
+
return ACCStyleUtils;
|
|
38411
|
+
});
|
|
38412
|
+
|
|
38097
38413
|
define('sap/viz/api/env',[
|
|
38098
38414
|
'sap/viz/framework/core/env',
|
|
38099
38415
|
'sap/viz/framework/core/config',
|
|
@@ -38103,8 +38419,9 @@ define('sap/viz/api/env',[
|
|
|
38103
38419
|
'sap/viz/framework/common/lang/LangManager',
|
|
38104
38420
|
'sap/viz/framework/common/util/NameColorUtils',
|
|
38105
38421
|
'sap/viz/framework/common/format/UnitFormat',
|
|
38422
|
+
'sap/viz/framework/common/util/ACCStyleUtils',
|
|
38106
38423
|
'exports'
|
|
38107
|
-
], function Setup(environment, config, TypeUtils, ObjectUtils, Logger, langManager, NameColorUtils, UnitFormat) {
|
|
38424
|
+
], function Setup(environment, config, TypeUtils, ObjectUtils, Logger, langManager, NameColorUtils, UnitFormat, ACCStyleUtils) {
|
|
38108
38425
|
var env =
|
|
38109
38426
|
/**
|
|
38110
38427
|
* sap.viz.api.env
|
|
@@ -38148,6 +38465,9 @@ define('sap/viz/api/env',[
|
|
|
38148
38465
|
if (values.colorMapping && TypeUtils.isPlainObject(values.colorMapping)){
|
|
38149
38466
|
NameColorUtils.register(values.colorMapping);
|
|
38150
38467
|
}
|
|
38468
|
+
if (values.accStyleMapping && TypeUtils.isPlainObject(values.accStyleMapping)) {
|
|
38469
|
+
ACCStyleUtils.register(values.accStyleMapping);
|
|
38470
|
+
}
|
|
38151
38471
|
if (values.useLatestFormatPrefix && values.useLatestFormatPrefix === true) {
|
|
38152
38472
|
UnitFormat.register({"useLatestFormatPrefix" : true});
|
|
38153
38473
|
}
|
|
@@ -190,7 +190,8 @@
|
|
|
190
190
|
enablement: 'enabled',
|
|
191
191
|
direction: 'categoryAxis'
|
|
192
192
|
},
|
|
193
|
-
enableKeyboard: true
|
|
193
|
+
enableKeyboard: true,
|
|
194
|
+
enableAccUpdates: true
|
|
194
195
|
}
|
|
195
196
|
};
|
|
196
197
|
|
|
@@ -435,6 +436,9 @@
|
|
|
435
436
|
}
|
|
436
437
|
}
|
|
437
438
|
}
|
|
439
|
+
},
|
|
440
|
+
interaction : {
|
|
441
|
+
enableAccUpdates: true
|
|
438
442
|
}
|
|
439
443
|
});
|
|
440
444
|
|
|
@@ -504,6 +508,9 @@
|
|
|
504
508
|
color: "#000000"
|
|
505
509
|
}
|
|
506
510
|
}
|
|
511
|
+
},
|
|
512
|
+
interaction: {
|
|
513
|
+
enableAccUpdates: true
|
|
507
514
|
}
|
|
508
515
|
};
|
|
509
516
|
|
|
@@ -515,6 +522,9 @@
|
|
|
515
522
|
color: "#000000"
|
|
516
523
|
}
|
|
517
524
|
}
|
|
525
|
+
},
|
|
526
|
+
interaction: {
|
|
527
|
+
enableAccUpdates: true
|
|
518
528
|
}
|
|
519
529
|
});
|
|
520
530
|
|
|
@@ -618,11 +628,17 @@
|
|
|
618
628
|
'viz/dual_horizontal_combination': dualhorizontalcombinationEffect,
|
|
619
629
|
'viz/boxplot': merge(base, {
|
|
620
630
|
yAxis: merge(axis, hideAxisLine, verticalGridline),
|
|
621
|
-
xAxis: axis
|
|
631
|
+
xAxis: axis,
|
|
632
|
+
interaction: {
|
|
633
|
+
enableAccUpdates: false
|
|
634
|
+
}
|
|
622
635
|
}),
|
|
623
636
|
'viz/horizontal_boxplot': merge(base, {
|
|
624
637
|
xAxis: merge(axis, hideAxisLine, gridline),
|
|
625
|
-
yAxis: axis
|
|
638
|
+
yAxis: axis,
|
|
639
|
+
interaction: {
|
|
640
|
+
enableAccUpdates: false
|
|
641
|
+
}
|
|
626
642
|
}),
|
|
627
643
|
'viz/waterfall': merge(base, {
|
|
628
644
|
yAxis: merge(axis, hideAxisLine, verticalGridline),
|
|
@@ -703,6 +719,9 @@
|
|
|
703
719
|
visible: true
|
|
704
720
|
},
|
|
705
721
|
color: axisColor
|
|
722
|
+
},
|
|
723
|
+
interaction: {
|
|
724
|
+
enableAccUpdates: true
|
|
706
725
|
}
|
|
707
726
|
},
|
|
708
727
|
'viz/treemap': vizTreemapEffect,
|
|
@@ -852,7 +871,8 @@
|
|
|
852
871
|
width: 2,
|
|
853
872
|
color: "#666666"
|
|
854
873
|
}
|
|
855
|
-
}
|
|
874
|
+
},
|
|
875
|
+
enableAccUpdates: true
|
|
856
876
|
}
|
|
857
877
|
})
|
|
858
878
|
},
|
|
@@ -260,6 +260,12 @@ html.sap-desktop .viz-controls-chartPopover .sapMList.viz-controls-chartPopover-
|
|
|
260
260
|
html.sap-desktop .viz-controls-chartPopover .viz-controls-chartPopover-subActionItemsPage .sapMList .sapMLIB.sapMALI .sapMLIBContent{
|
|
261
261
|
padding: 0 1rem;
|
|
262
262
|
}
|
|
263
|
+
html.sap-desktop .viz-controls-chartPopover .sapMList.viz-controls-chartPopover-actionList .sapMLIB.sapMALI{
|
|
264
|
+
padding: 0;
|
|
265
|
+
}
|
|
266
|
+
html.sap-desktop .viz-controls-chartPopover .viz-controls-chartPopover-subActionItemsPage .sapMLIB.sapMALI{
|
|
267
|
+
padding: 0;
|
|
268
|
+
}
|
|
263
269
|
|
|
264
270
|
.viz-controls-chartPopover .viz-controls-chartPopover-actionList li:first-child{
|
|
265
271
|
border-top: 1px rgb(229, 229, 229) solid;
|
|
@@ -459,7 +465,7 @@ html[dir=rtl] .viz-controls-chartPopover .viz-controls-chartPopover-measure-valu
|
|
|
459
465
|
left: 1px;
|
|
460
466
|
right: 1px;
|
|
461
467
|
bottom: 1px;
|
|
462
|
-
border: @sapUiChartFocusWidth
|
|
468
|
+
border: @sapUiChartFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
|
|
463
469
|
pointer-events: none
|
|
464
470
|
}
|
|
465
471
|
|
|
@@ -471,6 +477,14 @@ html[dir=rtl] .viz-controls-chartPopover .viz-controls-chartPopover-measure-valu
|
|
|
471
477
|
outline: none;
|
|
472
478
|
}
|
|
473
479
|
|
|
480
|
+
/* Css for scatter chart data point opacity */
|
|
481
|
+
.v-datapoint{
|
|
482
|
+
path:first-child[class]{
|
|
483
|
+
opacity: 0.8;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
|
|
474
488
|
/* ============================= */
|
|
475
489
|
/* CSS for control sap.m/Slider */
|
|
476
490
|
/* Base theme */
|
|
@@ -188,7 +188,7 @@ function(
|
|
|
188
188
|
}).addStyleClass('viz-controls-chartPopover-measure-labels viz-controls-chartPopover-measure-labels-wrapper-name'));
|
|
189
189
|
}
|
|
190
190
|
valueLabel = new ObjectNumber({
|
|
191
|
-
number: item.value,
|
|
191
|
+
number: item.value == null ? this._getNoValueLabel() : item.value,
|
|
192
192
|
unit: item.unit,
|
|
193
193
|
textAlign: TextAlign.Begin
|
|
194
194
|
}).addStyleClass('viz-controls-chartPopover-measure-labels viz-controls-chartPopover-measure-labels-wrapper-value');
|