@sapui5/sap.viz 1.100.0 → 1.101.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/viz/.library
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.101.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>Chart controls based on the SAP BI CVOM charting library</documentation>
|
|
11
11
|
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
<raw-module name="sap/viz/ui5/container/libs/locale/language_zh_CN.js" />
|
|
169
169
|
<raw-module name="sap/viz/ui5/container/libs/locale/language_zh_TW.js" />
|
|
170
170
|
<raw-module name="sap/viz/ui5/container/libs/sap-viz-controls-vizcontainer.js"
|
|
171
|
-
depends="
|
|
171
|
+
depends="sap/viz/libs/sap-viz.js,sap/viz/ui5/container/libs/common/libs/rgbcolor/rgbcolor_static.js" />
|
|
172
172
|
<raw-module name="sap/viz/ui5/controls/libs/resources/locale/language_de.js" />
|
|
173
173
|
<raw-module name="sap/viz/ui5/controls/libs/resources/locale/language_en.js" />
|
|
174
174
|
<raw-module name="sap/viz/ui5/controls/libs/resources/locale/language_es.js" />
|
package/src/sap/viz/library.js
CHANGED
|
@@ -39,12 +39,10 @@ sap.ui.define([
|
|
|
39
39
|
* Chart controls based on the SAP BI CVOM charting library
|
|
40
40
|
*
|
|
41
41
|
* @namespace
|
|
42
|
-
* @
|
|
42
|
+
* @alias sap.viz
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
|
-
|
|
46
|
-
// delegate further initialization of this library to the Core
|
|
47
|
-
sap.ui.getCore().initLibrary({
|
|
45
|
+
var thisLib = sap.ui.getCore().initLibrary({
|
|
48
46
|
name : "sap.viz",
|
|
49
47
|
dependencies : ["sap.ui.core"],
|
|
50
48
|
types: [
|
|
@@ -250,7 +248,7 @@ sap.ui.define([
|
|
|
250
248
|
|
|
251
249
|
//@@end generated-elements-list
|
|
252
250
|
],
|
|
253
|
-
version: "1.
|
|
251
|
+
version: "1.101.0"
|
|
254
252
|
});
|
|
255
253
|
|
|
256
254
|
//@@begin generated-enums
|
|
@@ -273,7 +271,7 @@ sap.ui.define([
|
|
|
273
271
|
* Charting API is not finished yet and might change completely.
|
|
274
272
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
275
273
|
*/
|
|
276
|
-
|
|
274
|
+
thisLib.ui5.types.Area_drawingEffect = {
|
|
277
275
|
|
|
278
276
|
/**
|
|
279
277
|
* Value normal
|
|
@@ -306,7 +304,7 @@ sap.ui.define([
|
|
|
306
304
|
* Charting API is not finished yet and might change completely.
|
|
307
305
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
308
306
|
*/
|
|
309
|
-
|
|
307
|
+
thisLib.ui5.types.Area_marker_shape = {
|
|
310
308
|
|
|
311
309
|
/**
|
|
312
310
|
* Value circle
|
|
@@ -375,7 +373,7 @@ sap.ui.define([
|
|
|
375
373
|
* Charting API is not finished yet and might change completely.
|
|
376
374
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
377
375
|
*/
|
|
378
|
-
|
|
376
|
+
thisLib.ui5.types.Area_mode = {
|
|
379
377
|
|
|
380
378
|
/**
|
|
381
379
|
* Value comparison
|
|
@@ -408,7 +406,7 @@ sap.ui.define([
|
|
|
408
406
|
* Charting API is not finished yet and might change completely.
|
|
409
407
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
410
408
|
*/
|
|
411
|
-
|
|
409
|
+
thisLib.ui5.types.Area_orientation = {
|
|
412
410
|
|
|
413
411
|
/**
|
|
414
412
|
* Value vertical
|
|
@@ -441,7 +439,7 @@ sap.ui.define([
|
|
|
441
439
|
* Charting API is not finished yet and might change completely.
|
|
442
440
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
443
441
|
*/
|
|
444
|
-
|
|
442
|
+
thisLib.ui5.types.Axis_gridline_type = {
|
|
445
443
|
|
|
446
444
|
/**
|
|
447
445
|
* Value line
|
|
@@ -480,7 +478,7 @@ sap.ui.define([
|
|
|
480
478
|
* Charting API is not finished yet and might change completely.
|
|
481
479
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
482
480
|
*/
|
|
483
|
-
|
|
481
|
+
thisLib.ui5.types.Axis_label_unitFormatType = {
|
|
484
482
|
|
|
485
483
|
/**
|
|
486
484
|
* Value MetricUnits
|
|
@@ -513,7 +511,7 @@ sap.ui.define([
|
|
|
513
511
|
* Charting API is not finished yet and might change completely.
|
|
514
512
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
515
513
|
*/
|
|
516
|
-
|
|
514
|
+
thisLib.ui5.types.Axis_position = {
|
|
517
515
|
|
|
518
516
|
/**
|
|
519
517
|
* Value left
|
|
@@ -558,7 +556,7 @@ sap.ui.define([
|
|
|
558
556
|
* Charting API is not finished yet and might change completely.
|
|
559
557
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
560
558
|
*/
|
|
561
|
-
|
|
559
|
+
thisLib.ui5.types.Axis_type = {
|
|
562
560
|
|
|
563
561
|
/**
|
|
564
562
|
* Value value
|
|
@@ -597,7 +595,7 @@ sap.ui.define([
|
|
|
597
595
|
* Charting API is not finished yet and might change completely.
|
|
598
596
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
599
597
|
*/
|
|
600
|
-
|
|
598
|
+
thisLib.ui5.types.Background_direction = {
|
|
601
599
|
|
|
602
600
|
/**
|
|
603
601
|
* Value horizontal
|
|
@@ -630,7 +628,7 @@ sap.ui.define([
|
|
|
630
628
|
* Charting API is not finished yet and might change completely.
|
|
631
629
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
632
630
|
*/
|
|
633
|
-
|
|
631
|
+
thisLib.ui5.types.Background_drawingEffect = {
|
|
634
632
|
|
|
635
633
|
/**
|
|
636
634
|
* Value normal
|
|
@@ -663,7 +661,7 @@ sap.ui.define([
|
|
|
663
661
|
* Charting API is not finished yet and might change completely.
|
|
664
662
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
665
663
|
*/
|
|
666
|
-
|
|
664
|
+
thisLib.ui5.types.Bar_drawingEffect = {
|
|
667
665
|
|
|
668
666
|
/**
|
|
669
667
|
* Value normal
|
|
@@ -696,7 +694,7 @@ sap.ui.define([
|
|
|
696
694
|
* Charting API is not finished yet and might change completely.
|
|
697
695
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
698
696
|
*/
|
|
699
|
-
|
|
697
|
+
thisLib.ui5.types.Bar_orientation = {
|
|
700
698
|
|
|
701
699
|
/**
|
|
702
700
|
* Value horizontal
|
|
@@ -729,7 +727,7 @@ sap.ui.define([
|
|
|
729
727
|
* Charting API is not finished yet and might change completely.
|
|
730
728
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
731
729
|
*/
|
|
732
|
-
|
|
730
|
+
thisLib.ui5.types.Bubble_drawingEffect = {
|
|
733
731
|
|
|
734
732
|
/**
|
|
735
733
|
* Value normal
|
|
@@ -762,7 +760,7 @@ sap.ui.define([
|
|
|
762
760
|
* Charting API is not finished yet and might change completely.
|
|
763
761
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
764
762
|
*/
|
|
765
|
-
|
|
763
|
+
thisLib.ui5.types.Bullet_drawingEffect = {
|
|
766
764
|
|
|
767
765
|
/**
|
|
768
766
|
* Value normal
|
|
@@ -795,7 +793,7 @@ sap.ui.define([
|
|
|
795
793
|
* Charting API is not finished yet and might change completely.
|
|
796
794
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
797
795
|
*/
|
|
798
|
-
|
|
796
|
+
thisLib.ui5.types.Bullet_orientation = {
|
|
799
797
|
|
|
800
798
|
/**
|
|
801
799
|
* Value horizontal
|
|
@@ -828,7 +826,7 @@ sap.ui.define([
|
|
|
828
826
|
* Charting API is not finished yet and might change completely.
|
|
829
827
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
830
828
|
*/
|
|
831
|
-
|
|
829
|
+
thisLib.ui5.types.Combination_drawingEffect = {
|
|
832
830
|
|
|
833
831
|
/**
|
|
834
832
|
* Value normal
|
|
@@ -861,7 +859,7 @@ sap.ui.define([
|
|
|
861
859
|
* Charting API is not finished yet and might change completely.
|
|
862
860
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
863
861
|
*/
|
|
864
|
-
|
|
862
|
+
thisLib.ui5.types.Combination_orientation = {
|
|
865
863
|
|
|
866
864
|
/**
|
|
867
865
|
* Value horizontal
|
|
@@ -894,7 +892,7 @@ sap.ui.define([
|
|
|
894
892
|
* Charting API is not finished yet and might change completely.
|
|
895
893
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
896
894
|
*/
|
|
897
|
-
|
|
895
|
+
thisLib.ui5.types.Datalabel_orientation = {
|
|
898
896
|
|
|
899
897
|
/**
|
|
900
898
|
* Value horizontal
|
|
@@ -927,7 +925,7 @@ sap.ui.define([
|
|
|
927
925
|
* Charting API is not finished yet and might change completely.
|
|
928
926
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
929
927
|
*/
|
|
930
|
-
|
|
928
|
+
thisLib.ui5.types.Datalabel_outsidePosition = {
|
|
931
929
|
|
|
932
930
|
/**
|
|
933
931
|
* Value up
|
|
@@ -972,7 +970,7 @@ sap.ui.define([
|
|
|
972
970
|
* Charting API is not finished yet and might change completely.
|
|
973
971
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
974
972
|
*/
|
|
975
|
-
|
|
973
|
+
thisLib.ui5.types.Datalabel_paintingMode = {
|
|
976
974
|
|
|
977
975
|
/**
|
|
978
976
|
* Value rectCoordinate
|
|
@@ -1005,7 +1003,7 @@ sap.ui.define([
|
|
|
1005
1003
|
* Charting API is not finished yet and might change completely.
|
|
1006
1004
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1007
1005
|
*/
|
|
1008
|
-
|
|
1006
|
+
thisLib.ui5.types.Datalabel_position = {
|
|
1009
1007
|
|
|
1010
1008
|
/**
|
|
1011
1009
|
* Value inside
|
|
@@ -1038,7 +1036,7 @@ sap.ui.define([
|
|
|
1038
1036
|
* Charting API is not finished yet and might change completely.
|
|
1039
1037
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1040
1038
|
*/
|
|
1041
|
-
|
|
1039
|
+
thisLib.ui5.types.Legend_layout_position = {
|
|
1042
1040
|
|
|
1043
1041
|
/**
|
|
1044
1042
|
* Value top
|
|
@@ -1083,7 +1081,7 @@ sap.ui.define([
|
|
|
1083
1081
|
* Charting API is not finished yet and might change completely.
|
|
1084
1082
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1085
1083
|
*/
|
|
1086
|
-
|
|
1084
|
+
thisLib.ui5.types.Line_drawingEffect = {
|
|
1087
1085
|
|
|
1088
1086
|
/**
|
|
1089
1087
|
* Value normal
|
|
@@ -1116,7 +1114,7 @@ sap.ui.define([
|
|
|
1116
1114
|
* Charting API is not finished yet and might change completely.
|
|
1117
1115
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1118
1116
|
*/
|
|
1119
|
-
|
|
1117
|
+
thisLib.ui5.types.Line_marker_shape = {
|
|
1120
1118
|
|
|
1121
1119
|
/**
|
|
1122
1120
|
* Value circle
|
|
@@ -1185,7 +1183,7 @@ sap.ui.define([
|
|
|
1185
1183
|
* Charting API is not finished yet and might change completely.
|
|
1186
1184
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1187
1185
|
*/
|
|
1188
|
-
|
|
1186
|
+
thisLib.ui5.types.Line_orientation = {
|
|
1189
1187
|
|
|
1190
1188
|
/**
|
|
1191
1189
|
* Value horizontal
|
|
@@ -1218,7 +1216,7 @@ sap.ui.define([
|
|
|
1218
1216
|
* Charting API is not finished yet and might change completely.
|
|
1219
1217
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1220
1218
|
*/
|
|
1221
|
-
|
|
1219
|
+
thisLib.ui5.types.Pie_drawingEffect = {
|
|
1222
1220
|
|
|
1223
1221
|
/**
|
|
1224
1222
|
* Value normal
|
|
@@ -1251,7 +1249,7 @@ sap.ui.define([
|
|
|
1251
1249
|
* Charting API is not finished yet and might change completely.
|
|
1252
1250
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1253
1251
|
*/
|
|
1254
|
-
|
|
1252
|
+
thisLib.ui5.types.Pie_valign = {
|
|
1255
1253
|
|
|
1256
1254
|
/**
|
|
1257
1255
|
* Value top
|
|
@@ -1284,7 +1282,7 @@ sap.ui.define([
|
|
|
1284
1282
|
* Charting API is not finished yet and might change completely.
|
|
1285
1283
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1286
1284
|
*/
|
|
1287
|
-
|
|
1285
|
+
thisLib.ui5.types.Scatter_drawingEffect = {
|
|
1288
1286
|
|
|
1289
1287
|
/**
|
|
1290
1288
|
* Value normal
|
|
@@ -1317,7 +1315,7 @@ sap.ui.define([
|
|
|
1317
1315
|
* Charting API is not finished yet and might change completely.
|
|
1318
1316
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1319
1317
|
*/
|
|
1320
|
-
|
|
1318
|
+
thisLib.ui5.types.StackedVerticalBar_drawingEffect = {
|
|
1321
1319
|
|
|
1322
1320
|
/**
|
|
1323
1321
|
* Value normal
|
|
@@ -1350,7 +1348,7 @@ sap.ui.define([
|
|
|
1350
1348
|
* Charting API is not finished yet and might change completely.
|
|
1351
1349
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1352
1350
|
*/
|
|
1353
|
-
|
|
1351
|
+
thisLib.ui5.types.StackedVerticalBar_mode = {
|
|
1354
1352
|
|
|
1355
1353
|
/**
|
|
1356
1354
|
* Value comparison
|
|
@@ -1383,7 +1381,7 @@ sap.ui.define([
|
|
|
1383
1381
|
* Charting API is not finished yet and might change completely.
|
|
1384
1382
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1385
1383
|
*/
|
|
1386
|
-
|
|
1384
|
+
thisLib.ui5.types.StackedVerticalBar_orientation = {
|
|
1387
1385
|
|
|
1388
1386
|
/**
|
|
1389
1387
|
* Value horizontal
|
|
@@ -1416,7 +1414,7 @@ sap.ui.define([
|
|
|
1416
1414
|
* Charting API is not finished yet and might change completely.
|
|
1417
1415
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1418
1416
|
*/
|
|
1419
|
-
|
|
1417
|
+
thisLib.ui5.types.Title_alignment = {
|
|
1420
1418
|
|
|
1421
1419
|
/**
|
|
1422
1420
|
* Value left
|
|
@@ -1455,7 +1453,7 @@ sap.ui.define([
|
|
|
1455
1453
|
* Charting API is not finished yet and might change completely.
|
|
1456
1454
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1457
1455
|
*/
|
|
1458
|
-
|
|
1456
|
+
thisLib.ui5.types.Tooltip_drawingEffect = {
|
|
1459
1457
|
|
|
1460
1458
|
/**
|
|
1461
1459
|
* Value normal
|
|
@@ -1488,7 +1486,7 @@ sap.ui.define([
|
|
|
1488
1486
|
* Charting API is not finished yet and might change completely.
|
|
1489
1487
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1490
1488
|
*/
|
|
1491
|
-
|
|
1489
|
+
thisLib.ui5.types.VerticalBar_drawingEffect = {
|
|
1492
1490
|
|
|
1493
1491
|
/**
|
|
1494
1492
|
* Value normal
|
|
@@ -1521,7 +1519,7 @@ sap.ui.define([
|
|
|
1521
1519
|
* Charting API is not finished yet and might change completely.
|
|
1522
1520
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1523
1521
|
*/
|
|
1524
|
-
|
|
1522
|
+
thisLib.ui5.types.VerticalBar_orientation = {
|
|
1525
1523
|
|
|
1526
1524
|
/**
|
|
1527
1525
|
* Value horizontal
|
|
@@ -1554,7 +1552,7 @@ sap.ui.define([
|
|
|
1554
1552
|
* Charting API is not finished yet and might change completely.
|
|
1555
1553
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1556
1554
|
*/
|
|
1557
|
-
|
|
1555
|
+
thisLib.ui5.types.controller.Interaction_pan_orientation = {
|
|
1558
1556
|
|
|
1559
1557
|
/**
|
|
1560
1558
|
* Value horizontal
|
|
@@ -1593,7 +1591,7 @@ sap.ui.define([
|
|
|
1593
1591
|
* Charting API is not finished yet and might change completely.
|
|
1594
1592
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1595
1593
|
*/
|
|
1596
|
-
|
|
1594
|
+
thisLib.ui5.types.controller.Interaction_selectability_mode = {
|
|
1597
1595
|
|
|
1598
1596
|
/**
|
|
1599
1597
|
* Value exclusive
|
|
@@ -1644,7 +1642,7 @@ sap.ui.define([
|
|
|
1644
1642
|
* Charting API is not finished yet and might change completely.
|
|
1645
1643
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1646
1644
|
*/
|
|
1647
|
-
|
|
1645
|
+
thisLib.ui5.types.legend.Common_alignment = {
|
|
1648
1646
|
|
|
1649
1647
|
/**
|
|
1650
1648
|
* Value start
|
|
@@ -1683,7 +1681,7 @@ sap.ui.define([
|
|
|
1683
1681
|
* Charting API is not finished yet and might change completely.
|
|
1684
1682
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1685
1683
|
*/
|
|
1686
|
-
|
|
1684
|
+
thisLib.ui5.types.legend.Common_drawingEffect = {
|
|
1687
1685
|
|
|
1688
1686
|
/**
|
|
1689
1687
|
* Value normal
|
|
@@ -1716,7 +1714,7 @@ sap.ui.define([
|
|
|
1716
1714
|
* Charting API is not finished yet and might change completely.
|
|
1717
1715
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1718
1716
|
*/
|
|
1719
|
-
|
|
1717
|
+
thisLib.ui5.types.legend.Common_position = {
|
|
1720
1718
|
|
|
1721
1719
|
/**
|
|
1722
1720
|
* Value top
|
|
@@ -1761,7 +1759,7 @@ sap.ui.define([
|
|
|
1761
1759
|
* Charting API is not finished yet and might change completely.
|
|
1762
1760
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
1763
1761
|
*/
|
|
1764
|
-
|
|
1762
|
+
thisLib.ui5.types.legend.Common_type = {
|
|
1765
1763
|
|
|
1766
1764
|
/**
|
|
1767
1765
|
* Value ColorLegend
|
|
@@ -1791,7 +1789,7 @@ sap.ui.define([
|
|
|
1791
1789
|
//@@end generated-enums
|
|
1792
1790
|
|
|
1793
1791
|
// check whether browser supports svg
|
|
1794
|
-
|
|
1792
|
+
thisLib.__svg_support = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect;
|
|
1795
1793
|
|
|
1796
1794
|
// We used to load "css" plugin for requirejs In sap-viz-info-framework.js. Now requirejs is loaded after sap-viz-info-framework.js,
|
|
1797
1795
|
// and we have to define "css" plugin here.
|
|
@@ -1842,7 +1840,7 @@ sap.ui.define([
|
|
|
1842
1840
|
});
|
|
1843
1841
|
|
|
1844
1842
|
// create stubs for the enum types (static classes)
|
|
1845
|
-
var oLibrary =
|
|
1843
|
+
var oLibrary = Core.getLoadedLibraries()["sap.viz"];
|
|
1846
1844
|
if (oLibrary && oLibrary.types) {
|
|
1847
1845
|
jQuery.each(oLibrary.types, function(idx, sName) {
|
|
1848
1846
|
if (sName.indexOf("sap.viz.ui5.types.") === 0) {
|
|
@@ -1863,30 +1861,30 @@ sap.ui.define([
|
|
|
1863
1861
|
/*
|
|
1864
1862
|
* For Viz Chart, it only needs to load chart resources.
|
|
1865
1863
|
*/
|
|
1866
|
-
|
|
1867
|
-
if (!
|
|
1864
|
+
thisLib._initializeVIZ = function() {
|
|
1865
|
+
if (!thisLib.__svg_support) {
|
|
1868
1866
|
return;
|
|
1869
1867
|
}
|
|
1870
1868
|
if (bChartResourceRequested) {
|
|
1871
1869
|
return;
|
|
1872
1870
|
}
|
|
1873
1871
|
// Load chart resources only
|
|
1874
|
-
|
|
1872
|
+
thisLib._initializeENV(true);
|
|
1875
1873
|
bChartResourceRequested = true;
|
|
1876
1874
|
};
|
|
1877
1875
|
|
|
1878
1876
|
/*
|
|
1879
1877
|
* For VizContainer, both chart and vizContainer resource should be loaded.
|
|
1880
1878
|
*/
|
|
1881
|
-
|
|
1882
|
-
if (!
|
|
1879
|
+
thisLib._initializeVIZControls = function(isVizContainer, callback) {
|
|
1880
|
+
if (!thisLib.__svg_support) {
|
|
1883
1881
|
callback(false);
|
|
1884
1882
|
}
|
|
1885
1883
|
if (vizContainerInfo.status === 'unloaded') {
|
|
1886
1884
|
vizContainerInfo.callbacks = [callback];
|
|
1887
1885
|
vizContainerInfo.status = 'loading';
|
|
1888
1886
|
// Load
|
|
1889
|
-
|
|
1887
|
+
thisLib._initializeENV(!bChartResourceRequested, isVizContainer ? 'container' : 'controls', function() {
|
|
1890
1888
|
vizContainerInfo.status = 'loaded';
|
|
1891
1889
|
if (vizContainerInfo && vizContainerInfo.callbacks) {
|
|
1892
1890
|
for (var i = 0; i < vizContainerInfo.callbacks.length; i++) {
|
|
@@ -1907,7 +1905,7 @@ sap.ui.define([
|
|
|
1907
1905
|
/*
|
|
1908
1906
|
* Initialize the environment settings.
|
|
1909
1907
|
*/
|
|
1910
|
-
|
|
1908
|
+
thisLib._initializeENV = function(bLoadChartResouce, pathVizControls, callback) {
|
|
1911
1909
|
// Initialize the path
|
|
1912
1910
|
var sPaths = sap.viz.api.env.Resource.path("sap.viz.api.env.Language.loadPaths") || [];
|
|
1913
1911
|
if (bLoadChartResouce) {
|
|
@@ -1948,18 +1946,18 @@ sap.ui.define([
|
|
|
1948
1946
|
// Theme
|
|
1949
1947
|
if (pathVizControls) {
|
|
1950
1948
|
sap.viz.api.env.Resource.path("sap.viz.api.env.Template.loadPaths", [sap.ui.require.toUrl("sap/viz/resources/chart/templates") + "/"]);
|
|
1951
|
-
|
|
1952
|
-
|
|
1949
|
+
Core.attachThemeChanged(function(evt) {
|
|
1950
|
+
thisLib._applyTheme();
|
|
1953
1951
|
});
|
|
1954
|
-
|
|
1952
|
+
thisLib._applyTheme();
|
|
1955
1953
|
}
|
|
1956
|
-
|
|
1954
|
+
thisLib._applyLocale(callback);
|
|
1957
1955
|
}
|
|
1958
1956
|
};
|
|
1959
1957
|
|
|
1960
|
-
|
|
1958
|
+
thisLib._applyTheme = function() {
|
|
1961
1959
|
// Set template to viz
|
|
1962
|
-
|
|
1960
|
+
thisLib._changeTemplate('standard_fiori');
|
|
1963
1961
|
var colorArray = [
|
|
1964
1962
|
// Qualitative color
|
|
1965
1963
|
'sapUiChartPaletteQualitativeHue1',
|
|
@@ -2061,15 +2059,15 @@ sap.ui.define([
|
|
|
2061
2059
|
});
|
|
2062
2060
|
};
|
|
2063
2061
|
|
|
2064
|
-
|
|
2062
|
+
thisLib._changeTemplate = function(template) {
|
|
2065
2063
|
if (sap.viz.api.env.Template.get() !== template) {
|
|
2066
2064
|
sap.viz.api.env.Template.set(template);
|
|
2067
2065
|
}
|
|
2068
2066
|
};
|
|
2069
2067
|
|
|
2070
|
-
|
|
2068
|
+
thisLib._applyLocale = function(callback) {
|
|
2071
2069
|
// Get locale from ui5
|
|
2072
|
-
var oConfig =
|
|
2070
|
+
var oConfig = Core.getConfiguration();
|
|
2073
2071
|
var oLocale = oConfig.getLocale();
|
|
2074
2072
|
var sVIZLanguageId = oLocale.getLanguage();
|
|
2075
2073
|
if (sVIZLanguageId === 'zh') {
|
|
@@ -2081,9 +2079,9 @@ sap.ui.define([
|
|
|
2081
2079
|
callback();
|
|
2082
2080
|
}
|
|
2083
2081
|
});
|
|
2084
|
-
Log.info("VIZ: env initialized (locale=" +
|
|
2082
|
+
Log.info("VIZ: env initialized (locale=" + Core.getConfiguration().getLanguage() + ")");
|
|
2085
2083
|
};
|
|
2086
2084
|
|
|
2087
|
-
return
|
|
2085
|
+
return thisLib;
|
|
2088
2086
|
|
|
2089
2087
|
});
|
|
@@ -8,8 +8,9 @@ sap.ui.define([],
|
|
|
8
8
|
/**
|
|
9
9
|
* Constructor for ResponsiveLegend - must not be used: To get a ResponsiveLegend instance, please use VizFrame.getResponsiveLegend.
|
|
10
10
|
*
|
|
11
|
-
* @deprecated Since 1.27. Use VizFrame.getResponsiveLegend instead.
|
|
12
11
|
* @name sap.viz.ui5.controls.ResponsiveLegend
|
|
12
|
+
* @private
|
|
13
|
+
* @hideconstructor
|
|
13
14
|
*/
|
|
14
15
|
var ResponsiveLegend = function () {
|
|
15
16
|
//Do not use the constructor
|