@sapui5/sap.ui.vbm 1.90.1 → 1.90.3
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/ui/vbm/.library +1 -1
- package/src/sap/ui/vbm/Adapter.js +46 -8
- package/src/sap/ui/vbm/Adapter3D.js +2 -2
- package/src/sap/ui/vbm/AnalyticMap.js +1 -1
- package/src/sap/ui/vbm/AnalyticMapRenderer.js +1 -1
- package/src/sap/ui/vbm/Area.js +1 -1
- package/src/sap/ui/vbm/Areas.js +1 -1
- package/src/sap/ui/vbm/Box.js +1 -1
- package/src/sap/ui/vbm/Boxes.js +1 -1
- package/src/sap/ui/vbm/Circle.js +1 -1
- package/src/sap/ui/vbm/Circles.js +1 -1
- package/src/sap/ui/vbm/Cluster.js +1 -1
- package/src/sap/ui/vbm/ClusterBase.js +1 -1
- package/src/sap/ui/vbm/ClusterContainer.js +1 -1
- package/src/sap/ui/vbm/ClusterDistance.js +1 -1
- package/src/sap/ui/vbm/ClusterGrid.js +1 -1
- package/src/sap/ui/vbm/ClusterRenderer.js +1 -1
- package/src/sap/ui/vbm/ClusterTree.js +1 -1
- package/src/sap/ui/vbm/Container.js +1 -1
- package/src/sap/ui/vbm/Containers.js +1 -1
- package/src/sap/ui/vbm/DragSource.js +1 -1
- package/src/sap/ui/vbm/DropTarget.js +1 -1
- package/src/sap/ui/vbm/Feature.js +1 -1
- package/src/sap/ui/vbm/FeatureCollection.js +1 -1
- package/src/sap/ui/vbm/GeoCircle.js +1 -1
- package/src/sap/ui/vbm/GeoCircles.js +1 -1
- package/src/sap/ui/vbm/GeoJsonLayer.js +1 -1
- package/src/sap/ui/vbm/GeoMap.js +16 -6
- package/src/sap/ui/vbm/GeoMapRenderer.js +1 -1
- package/src/sap/ui/vbm/HeatPoint.js +1 -1
- package/src/sap/ui/vbm/Heatmap.js +1 -1
- package/src/sap/ui/vbm/Legend.js +1 -1
- package/src/sap/ui/vbm/LegendItem.js +1 -1
- package/src/sap/ui/vbm/Pie.js +1 -1
- package/src/sap/ui/vbm/PieItem.js +1 -1
- package/src/sap/ui/vbm/Pies.js +1 -1
- package/src/sap/ui/vbm/Region.js +1 -1
- package/src/sap/ui/vbm/Resource.js +1 -1
- package/src/sap/ui/vbm/Route.js +1 -1
- package/src/sap/ui/vbm/Routes.js +1 -1
- package/src/sap/ui/vbm/Spot.js +1 -1
- package/src/sap/ui/vbm/Spots.js +1 -1
- package/src/sap/ui/vbm/VBI.js +1 -1
- package/src/sap/ui/vbm/VBIRenderer.js +1 -1
- package/src/sap/ui/vbm/Viewport.js +2 -2
- package/src/sap/ui/vbm/ViewportRenderer.js +1 -1
- package/src/sap/ui/vbm/VoAbstract.js +1 -1
- package/src/sap/ui/vbm/VoAggregation.js +1 -1
- package/src/sap/ui/vbm/VoBase.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ModelHandler.js +2 -2
- package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +2 -2
- package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +2 -2
- package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +4 -2
- package/src/sap/ui/vbm/adapter3d/Utilities.js +1 -1
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +2 -2
- package/src/sap/ui/vbm/lib/sapscene.js +1 -1
- package/src/sap/ui/vbm/lib/saputilities.js +7 -7
- package/src/sap/ui/vbm/lib/sapvbi.js +1 -1
- package/src/sap/ui/vbm/library.js +3 -3
- package/src/sap/ui/vbm/themes/base/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_belize/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_belize_hcb/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_belize_hcw/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_belize_plus/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_bluecrystal/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_fiori_3/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_fiori_3_dark/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_fiori_3_hcb/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_fiori_3_hcw/library.source.less +1 -1
- package/src/sap/ui/vbm/themes/sap_hcb/library.source.less +1 -1
package/package.json
CHANGED
package/src/sap/ui/vbm/.library
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<name>sap.ui.vbm</name>
|
|
4
4
|
<vendor>SAP SE</vendor>
|
|
5
5
|
<copyright>SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved</copyright>
|
|
6
|
-
<version>1.90.
|
|
6
|
+
<version>1.90.3</version>
|
|
7
7
|
|
|
8
8
|
<documentation>SAP UI library: sap.ui.vbm</documentation>
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides class sap.ui.vbm.Adapter
|
|
@@ -23,13 +23,12 @@ sap.ui.define([
|
|
|
23
23
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
24
24
|
* @param {object} [mSettings] initial settings for the new object
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.90.
|
|
26
|
+
* @version 1.90.3
|
|
27
27
|
* @extends sap.ui.core.Element
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
30
30
|
* @alias sap.ui.vbm.Adapter
|
|
31
31
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
32
|
-
* @experimental Since 1.48.0 This class is experimental and might be modified or removed in future versions.
|
|
33
32
|
*/
|
|
34
33
|
var Adapter = Element.extend("sap.ui.vbm.Adapter", /** @lends sap.ui.vbm.Adapter.prototype */ {
|
|
35
34
|
metadata: {
|
|
@@ -103,6 +102,32 @@ sap.ui.define([
|
|
|
103
102
|
"start",
|
|
104
103
|
"tooltip"];
|
|
105
104
|
|
|
105
|
+
this._areaProperties = [
|
|
106
|
+
"key", //K: VoBase
|
|
107
|
+
"color", //C: Area, OBJECT_BASE_DATA->FILL_COLOR
|
|
108
|
+
"colorBorder", //D/CB: Area, OBJECT_BASE_DATA->BORDER_COLOR
|
|
109
|
+
"posarray", //H, PM (multipart) /P: Area, AREA_EXTENSION->BORDER_POINTS
|
|
110
|
+
"selectColor", //SC: OBJECT_BASE_DATA->SELECT_COLOR
|
|
111
|
+
"dragdata", //DD: VoAggregation, OBJECT_BASE_DATA->DRAG_DATA
|
|
112
|
+
"VB:s", //VB:s: elected, OBJECT_BASE_DATA->SELECTED
|
|
113
|
+
"VB:c", //H/VB:c: VoAggregation (changeable) OBJECT_BASE_DATA->CHANGEABLE
|
|
114
|
+
"hotScale", //HS: VoAggregation
|
|
115
|
+
"hotDeltaColor", //HC/HDC: VoAggregation, OBJECT_BASE_DATA->HOT_COLOR
|
|
116
|
+
"borderDash", //BD: Area
|
|
117
|
+
"selectColor", //SC: VoAggregation
|
|
118
|
+
"fxdir", //FD: VoAggregation
|
|
119
|
+
"fxsize", //FS: VoAggregation
|
|
120
|
+
"entity", //ET: VoAggregation
|
|
121
|
+
"labelBgColor", //LC/LBC: VoAggregation
|
|
122
|
+
"labelBorderColor", //LBBC: VoAggregation
|
|
123
|
+
"labelPos", //LP: VoAggregation
|
|
124
|
+
"labelText", //LT: VoAggregation
|
|
125
|
+
"labelArrow", //??VOBase
|
|
126
|
+
"label", //L
|
|
127
|
+
"labelAlignment", //"LA"
|
|
128
|
+
"tooltip" //B/TT: VoAggregation
|
|
129
|
+
];
|
|
130
|
+
|
|
106
131
|
// Allowed Spot properties
|
|
107
132
|
this._spotProperties = [
|
|
108
133
|
"alignment",
|
|
@@ -475,6 +500,7 @@ sap.ui.define([
|
|
|
475
500
|
* "Set": [
|
|
476
501
|
* { "name": "Spots", "type": "N", ....},
|
|
477
502
|
* { "name": "Links", "type": "N", ....},
|
|
503
|
+
* { "name": "Areas", "type": "N", ....},
|
|
478
504
|
* ]
|
|
479
505
|
* }
|
|
480
506
|
*
|
|
@@ -484,6 +510,7 @@ sap.ui.define([
|
|
|
484
510
|
* "N": [
|
|
485
511
|
* { "name": "Spots", ... },
|
|
486
512
|
* { "name": "Links", ... },
|
|
513
|
+
* { "name": "Areas", ... },
|
|
487
514
|
* ]
|
|
488
515
|
* }
|
|
489
516
|
* }
|
|
@@ -788,13 +815,18 @@ sap.ui.define([
|
|
|
788
815
|
processDragAndDrop();
|
|
789
816
|
break;
|
|
790
817
|
case "{00100000-2012-0004-B001-F311DE491C77}": // Area
|
|
818
|
+
processProperties(this._areaProperties, this._propsAnomalies);
|
|
819
|
+
voTemplate = new sap.ui.vbm.Area(settings);
|
|
820
|
+
voAggregation = new sap.ui.vbm.Areas(this._ui5Id(definition.id));
|
|
821
|
+
processDragAndDrop();
|
|
822
|
+
break;
|
|
823
|
+
case "{00100000-2014-0004-BDA8-87B904609063}": // "ExtArea" GUID??? from sapvobase
|
|
824
|
+
case "{00100000-2014-0004-B001-9F1B43BE944A}": // "ExtLink" GUID??? from sapvobase
|
|
791
825
|
case "{00100000-2013-0004-B001-7EB3CCC039C4}": // Circle
|
|
792
826
|
case "{00100000-2013-0004-B001-686F01B57873}": // Geo Circle
|
|
793
827
|
case "{00100000-2012-0004-B001-BFED458C3076}": // Box
|
|
794
828
|
case "{00100000-2012-0004-B001-383477EA1DEB}": // Pie Chart
|
|
795
829
|
case "{388951f5-a66b-4423-a5ad-e0ee13c2246f}": // Decal
|
|
796
|
-
case "ExtLink": // GUID???
|
|
797
|
-
case "ExtArea": // GUID???
|
|
798
830
|
default:
|
|
799
831
|
Log.debug("unsupported VO type", definition.type, thisModule);
|
|
800
832
|
return;
|
|
@@ -918,6 +950,9 @@ sap.ui.define([
|
|
|
918
950
|
case "Drop":
|
|
919
951
|
this._event = "drop";
|
|
920
952
|
break;
|
|
953
|
+
case "CreateComplete":
|
|
954
|
+
this._event = "createComplete";
|
|
955
|
+
break;
|
|
921
956
|
case "Select":
|
|
922
957
|
this._event = "select";
|
|
923
958
|
break;
|
|
@@ -1470,12 +1505,15 @@ sap.ui.define([
|
|
|
1470
1505
|
}
|
|
1471
1506
|
if (oEventData.Action && oEventData.Action.object) {
|
|
1472
1507
|
// Whatever back-end refers to as Links, they are referred to as Routes by Geomap
|
|
1473
|
-
|
|
1474
|
-
|
|
1508
|
+
var routeName = "Route", linkName = "Link";
|
|
1509
|
+
var actionObjects = [oEventData.Action.object];
|
|
1510
|
+
if (oEventData.Action.object === routeName) {
|
|
1511
|
+
actionObjects.push(linkName);
|
|
1512
|
+
oEventData.Action.object = linkName;
|
|
1475
1513
|
}
|
|
1476
1514
|
|
|
1477
1515
|
var oAction = sap.ui.vbm.findInArray(this._actions, function(action) {
|
|
1478
|
-
return
|
|
1516
|
+
return (actionObjects.indexOf(action.refVO) != -1) && oEventData.Action.name.toLowerCase() === action.refEvent.toLowerCase();
|
|
1479
1517
|
});
|
|
1480
1518
|
|
|
1481
1519
|
if (oAction) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides class sap.ui.vbm.Adapter3D
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
43
43
|
* @param {object} [mSettings] initial settings for the new object
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.90.
|
|
45
|
+
* @version 1.90.3
|
|
46
46
|
* @extends sap.ui.core.Element
|
|
47
47
|
* @constructor
|
|
48
48
|
* @public
|
package/src/sap/ui/vbm/Area.js
CHANGED
package/src/sap/ui/vbm/Areas.js
CHANGED
package/src/sap/ui/vbm/Box.js
CHANGED
package/src/sap/ui/vbm/Boxes.js
CHANGED
package/src/sap/ui/vbm/Circle.js
CHANGED
package/src/sap/ui/vbm/GeoMap.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides control sap.ui.vbm.GeoMap.
|
|
@@ -1058,7 +1058,8 @@ sap.ui.define([
|
|
|
1058
1058
|
case "click":
|
|
1059
1059
|
// fire the click..................................................//
|
|
1060
1060
|
this.fireClick({
|
|
1061
|
-
pos: datEvent.Action.AddActionProperties.AddActionProperty[0]['#']
|
|
1061
|
+
pos: datEvent.Action.AddActionProperties.AddActionProperty[0]['#'],
|
|
1062
|
+
data: datEvent //include VBI data to the UI5 event payload
|
|
1062
1063
|
});
|
|
1063
1064
|
break;
|
|
1064
1065
|
case "contextMenu":
|
|
@@ -1073,7 +1074,8 @@ sap.ui.define([
|
|
|
1073
1074
|
case "drop":
|
|
1074
1075
|
// fire the drop..................................................//
|
|
1075
1076
|
this.fireDrop({
|
|
1076
|
-
pos: datEvent.Action.AddActionProperties.AddActionProperty[0]['#']
|
|
1077
|
+
pos: datEvent.Action.AddActionProperties.AddActionProperty[0]['#'],
|
|
1078
|
+
data: datEvent //include VBI data to the UI5 event payload
|
|
1077
1079
|
});
|
|
1078
1080
|
break;
|
|
1079
1081
|
case "zoomChanged":
|
|
@@ -1084,7 +1086,8 @@ sap.ui.define([
|
|
|
1084
1086
|
viewportBB: {
|
|
1085
1087
|
upperLeft: datEvent.Action.Params.Param[3]['#'],
|
|
1086
1088
|
lowerRight: datEvent.Action.Params.Param[4]['#']
|
|
1087
|
-
}
|
|
1089
|
+
},
|
|
1090
|
+
data: datEvent //include VBI data to the UI5 event payload
|
|
1088
1091
|
});
|
|
1089
1092
|
break;
|
|
1090
1093
|
case "centerChanged":
|
|
@@ -1095,7 +1098,8 @@ sap.ui.define([
|
|
|
1095
1098
|
viewportBB: {
|
|
1096
1099
|
upperLeft: datEvent.Action.Params.Param[3]['#'],
|
|
1097
1100
|
lowerRight: datEvent.Action.Params.Param[4]['#']
|
|
1098
|
-
}
|
|
1101
|
+
},
|
|
1102
|
+
data: datEvent //include VBI data to the UI5 event payload
|
|
1099
1103
|
});
|
|
1100
1104
|
break;
|
|
1101
1105
|
case "select":
|
|
@@ -1121,6 +1125,12 @@ sap.ui.define([
|
|
|
1121
1125
|
this.mIACreateCB = null;
|
|
1122
1126
|
throw exc;
|
|
1123
1127
|
}
|
|
1128
|
+
} else {
|
|
1129
|
+
// If interactive editing was triggered indirectly (e.g. via vbiJSON load) then fire event
|
|
1130
|
+
datEvent.Action.name = "CreateComplete";
|
|
1131
|
+
//include VBI data to the UI5 event payload
|
|
1132
|
+
this.fireEvent("createComplete", {data: datEvent}, true);
|
|
1133
|
+
e.preventDefault();
|
|
1124
1134
|
}
|
|
1125
1135
|
break;
|
|
1126
1136
|
case "keydown":
|
|
@@ -2226,4 +2236,4 @@ sap.ui.define([
|
|
|
2226
2236
|
|
|
2227
2237
|
return GeoMap;
|
|
2228
2238
|
|
|
2229
|
-
}, /* bExport= */true);
|
|
2239
|
+
}, /* bExport= */true);
|
package/src/sap/ui/vbm/Legend.js
CHANGED
package/src/sap/ui/vbm/Pie.js
CHANGED
package/src/sap/ui/vbm/Pies.js
CHANGED
package/src/sap/ui/vbm/Region.js
CHANGED
package/src/sap/ui/vbm/Route.js
CHANGED
package/src/sap/ui/vbm/Routes.js
CHANGED
package/src/sap/ui/vbm/Spot.js
CHANGED
package/src/sap/ui/vbm/Spots.js
CHANGED
package/src/sap/ui/vbm/VBI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define([
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
*
|
|
25
25
|
* @public
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.90.
|
|
27
|
+
* @version 1.90.3
|
|
28
28
|
* @extends sap.ui.core.Control
|
|
29
29
|
* @alias sap.ui.vbm.Viewport
|
|
30
30
|
*/
|
package/src/sap/ui/vbm/VoBase.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides class sap.ui.vbm.adapter3d.ModelHandler
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
*
|
|
31
31
|
* @private
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.90.
|
|
33
|
+
* @version 1.90.3
|
|
34
34
|
* @alias sap.ui.vbm.adapter3d.ModelHandler
|
|
35
35
|
*/
|
|
36
36
|
var ModelHandler = BaseObject.extend("sap.ui.vbm.adapter3d.ModelHandler", /** @lends sap.ui.vbm.adapter3d.ModelHandler.prototype */ {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides the base visual object.
|
|
@@ -378,7 +378,7 @@ sap.ui.define([
|
|
|
378
378
|
*
|
|
379
379
|
* @private
|
|
380
380
|
* @author SAP SE
|
|
381
|
-
* @version 1.90.
|
|
381
|
+
* @version 1.90.3
|
|
382
382
|
* @alias sap.ui.vbm.adapter3d.ObjectFactory
|
|
383
383
|
*/
|
|
384
384
|
var ObjectFactory = BaseObject.extend("sap.ui.vbm.adapter3d.ObjectFactory", /** @lends sap.ui.vbm.adapter3d.ObjectFactory.prototype */ {});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides class sap.ui.vbm.adapter3d.PolygonHandler
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
*
|
|
34
34
|
* @private
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.90.
|
|
36
|
+
* @version 1.90.3
|
|
37
37
|
* @alias sap.ui.vbm.adapter3d.PolygonHandler
|
|
38
38
|
*/
|
|
39
39
|
var PolygonHandler = BaseObject.extend("sap.ui.vbm.adapter3d.PolygonHandler", /** @lends sap.ui.vbm.adapter3d.PolygonHandler.prototype */ {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides the base visual object.
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
*
|
|
50
50
|
* @private
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.90.
|
|
52
|
+
* @version 1.90.3
|
|
53
53
|
* @alias sap.ui.vbm.adapter3d.SceneBuilder
|
|
54
54
|
*/
|
|
55
55
|
var SceneBuilder = BaseObject.extend("sap.ui.vbm.adapter3d.SceneBuilder", /** @lends sap.ui.vbm.adapter3d.SceneBuilder.prototype */ {
|
|
@@ -354,6 +354,8 @@ sap.ui.define([
|
|
|
354
354
|
|
|
355
355
|
var iframe = document.createElement("iframe");
|
|
356
356
|
iframe.style.visibility = "hidden";
|
|
357
|
+
// use sandbox attribute to disable script execution and all other suspicious activities in iframe as we cannot affectively escape input HTML.
|
|
358
|
+
iframe.sandbox = "allow-same-origin";
|
|
357
359
|
iframe.width = width;
|
|
358
360
|
iframe.height = height;
|
|
359
361
|
document.body.appendChild(iframe);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Provides class sap.ui.vbm.adapter3d.VBIJSONParser
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
*
|
|
58
58
|
* @private
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.90.
|
|
60
|
+
* @version 1.90.3
|
|
61
61
|
* @alias sap.ui.vbm.adapter3d.VBIJSONParser
|
|
62
62
|
*/
|
|
63
63
|
var VBIJSONParser = BaseObject.extend("sap.ui.vbm.adapter3d.VBIJSONParser", /** @lends sap.ui.vbm.adapter3d.VBIJSONParser.prototype */ {
|
|
@@ -3352,7 +3352,7 @@ VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
var sCopyright = scene.m_MapLayerStack.GetCopyright();
|
|
3354
3354
|
if (sCopyright) {
|
|
3355
|
-
scene.m_DivCopyright.innerHTML = sCopyright;
|
|
3355
|
+
scene.m_DivCopyright.innerHTML = jQuery.sap.encodeHTML(sCopyright);
|
|
3356
3356
|
} else {
|
|
3357
3357
|
scene.m_DivCopyright.style.paddingRight = 0;
|
|
3358
3358
|
scene.m_DivCopyright.style.paddingLeft = 0;
|
|
@@ -282,7 +282,7 @@ VBI.Utilities.CreateCaption = function(id, text, left, top, right, bottom, toolt
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
newElement.className = "vbi-2d-caption vbi-2d-common";
|
|
285
|
-
newElement.innerHTML = text;
|
|
285
|
+
newElement.innerHTML = jQuery.sap.encodeHTML(text);
|
|
286
286
|
return newElement;
|
|
287
287
|
};
|
|
288
288
|
|
|
@@ -299,7 +299,7 @@ VBI.Utilities.CreateLabel = function(id, text, left, top, right, bottom, tooltip
|
|
|
299
299
|
newElement.style.textAlign = VBI.Utilities.Align[align];
|
|
300
300
|
newElement.style.title = tooltip;
|
|
301
301
|
newElement.className = "vbi-2d-label vbi-2d-common";
|
|
302
|
-
newElement.innerHTML = text;
|
|
302
|
+
newElement.innerHTML = jQuery.sap.encodeHTML(text);
|
|
303
303
|
return newElement;
|
|
304
304
|
};
|
|
305
305
|
|
|
@@ -317,7 +317,7 @@ VBI.Utilities.CreateLink = function(id, text, left, top, right, bottom, href, to
|
|
|
317
317
|
newElement.className = "vbi-2d-link vbi-2d-common";
|
|
318
318
|
newElement.href = href ? href : "javascrip" + "t:void(0)"; // separated to fool ESLint
|
|
319
319
|
newElement.title = tooltip;
|
|
320
|
-
newElement.innerHTML = text;
|
|
320
|
+
newElement.innerHTML = jQuery.sap.encodeHTML(text);
|
|
321
321
|
return newElement;
|
|
322
322
|
};
|
|
323
323
|
|
|
@@ -349,7 +349,7 @@ VBI.Utilities.CreateButton = function(id, text, left, top, right, bottom, toolti
|
|
|
349
349
|
newElement.style.height = (bottom - top).toString() + "px";
|
|
350
350
|
newElement.style.textAlign = VBI.Utilities.Align[align];
|
|
351
351
|
newElement.className = "vbi-2d-button vbi-2d-common";
|
|
352
|
-
newElement.innerHTML = text;
|
|
352
|
+
newElement.innerHTML = jQuery.sap.encodeHTML(text);
|
|
353
353
|
newElement.title = tooltip;
|
|
354
354
|
return newElement;
|
|
355
355
|
};
|
|
@@ -408,7 +408,7 @@ VBI.Utilities.CreateDetailPhone = function(id, left, top, width, height, titlete
|
|
|
408
408
|
title.setAttribute("role", sap.ui.core.AccessibleRole.Heading);
|
|
409
409
|
title.id = id + "-window-title";
|
|
410
410
|
title.className = "vbi-detail-title-phone";
|
|
411
|
-
title.innerHTML = titletext;
|
|
411
|
+
title.innerHTML = jQuery.sap.encodeHTML(titletext);
|
|
412
412
|
header.appendChild(title);
|
|
413
413
|
|
|
414
414
|
// create the close.......................................................//
|
|
@@ -495,7 +495,7 @@ VBI.Utilities.CreateDetail = function(id, left, top, width, height, titletext, p
|
|
|
495
495
|
title.setAttribute("role", sap.ui.core.AccessibleRole.Heading);
|
|
496
496
|
title.id = id + "-window-title";
|
|
497
497
|
title.className = "vbi-detail-title";
|
|
498
|
-
title.innerHTML = titletext;
|
|
498
|
+
title.innerHTML = jQuery.sap.encodeHTML(titletext);
|
|
499
499
|
header.appendChild(title);
|
|
500
500
|
|
|
501
501
|
// create the close.......................................................//
|
|
@@ -623,7 +623,7 @@ VBI.Utilities.CreateLegend = function(id, top, titletext, padding, bClickRow) {
|
|
|
623
623
|
title.setAttribute("role", sap.ui.core.AccessibleRole.Heading);
|
|
624
624
|
title.id = id + "-title";
|
|
625
625
|
title.className = "vbi-legend-title";
|
|
626
|
-
title.innerHTML = titletext;
|
|
626
|
+
title.innerHTML = jQuery.sap.encodeHTML(titletext);
|
|
627
627
|
header.appendChild(title);
|
|
628
628
|
|
|
629
629
|
// create the content.....................................................//
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* @namespace
|
|
19
19
|
* @name sap.ui.vbm
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.90.
|
|
21
|
+
* @version 1.90.3
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
24
|
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
"sap.ui.vbm.ClusterBase", "sap.ui.vbm.ClusterTree", "sap.ui.vbm.ClusterGrid", "sap.ui.vbm.ClusterDistance", "sap.ui.vbm.Heatmap",
|
|
49
49
|
"sap.ui.vbm.HeatPoint", "sap.ui.vbm.ClusterContainer", "sap.ui.vbm.Adapter", "sap.ui.vbm.Adapter3D"
|
|
50
50
|
],
|
|
51
|
-
version: "1.90.
|
|
51
|
+
version: "1.90.3"
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
jQuery.sap.registerModuleShims({
|