@sapui5/sap.ui.vbm 1.91.0 → 1.93.2
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 +2 -2
- 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 +3 -3
- package/src/sap/ui/vbm/ClusterGrid.js +6 -6
- package/src/sap/ui/vbm/ClusterRenderer.js +1 -1
- package/src/sap/ui/vbm/ClusterTree.js +3 -3
- 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 +1 -1
- 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/sapevents.js +6 -14
- 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/src/sap/ui/vbm/themes/sap_horizon/library.source.less +8 -0
- package/ui5.yaml +3 -1
- package/src/main/java/utils/ImageManipulation.java +0 -52
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.
|
|
6
|
+
<version>1.93.2</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,7 +23,7 @@ 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.
|
|
26
|
+
* @version 1.93.2
|
|
27
27
|
* @extends sap.ui.core.Element
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -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.
|
|
45
|
+
* @version 1.93.2
|
|
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
|
@@ -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.ClusterDistance.
|
|
@@ -12,7 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Constructor for a new ClusterDistance.
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
17
17
|
* @param {object} [mSettings] initial settings for the new control
|
|
18
18
|
* @class Cluster definition element for distance based clusters. Visual objects are clustered based on the visible distance between them. Objects
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
*/
|
|
40
40
|
distance: {
|
|
41
41
|
type: "int",
|
|
42
|
-
group: "
|
|
42
|
+
group: "Behavior",
|
|
43
43
|
defaultValue: "128"
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -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.ClusterGrid.
|
|
@@ -12,7 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Constructor for a new ClusterGrid.
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
17
17
|
* @param {object} [mSettings] initial settings for the new control
|
|
18
18
|
* @class Cluster definition element for grid based clusters. Visual objects are clustered based on a grid. It is possible to have multiple grid
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
*/
|
|
36
36
|
gridSize: {
|
|
37
37
|
type: "string",
|
|
38
|
-
group: "
|
|
38
|
+
group: "Behavior",
|
|
39
39
|
defaultValue: "256;256"
|
|
40
40
|
},
|
|
41
41
|
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
*/
|
|
45
45
|
limit: {
|
|
46
46
|
type: "int",
|
|
47
|
-
group: "
|
|
47
|
+
group: "Behavior",
|
|
48
48
|
defaultValue: 2
|
|
49
49
|
},
|
|
50
50
|
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
*/
|
|
54
54
|
limitTotal: {
|
|
55
55
|
type: "int",
|
|
56
|
-
group: "
|
|
56
|
+
group: "Behavior",
|
|
57
57
|
defaultValue: 2
|
|
58
58
|
},
|
|
59
59
|
|
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
*/
|
|
63
63
|
orderIndex: {
|
|
64
64
|
type: "int",
|
|
65
|
-
group: "
|
|
65
|
+
group: "Behavior",
|
|
66
66
|
defaultValue: null
|
|
67
67
|
},
|
|
68
68
|
|
|
@@ -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.ClusterTree.
|
|
@@ -12,7 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Constructor for a new ClusterTree.
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
17
17
|
* @param {object} [mSettings] initial settings for the new control
|
|
18
18
|
* @class Cluster definition element for tree clusters. Complex clustering based on Voronoi diagrams. The actual clustering is based on the areas
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
*/
|
|
35
35
|
animateClusterSplit: {
|
|
36
36
|
type: "boolean",
|
|
37
|
-
group: "
|
|
37
|
+
group: "Behavior",
|
|
38
38
|
defaultValue: true
|
|
39
39
|
}
|
|
40
40
|
},
|
package/src/sap/ui/vbm/GeoMap.js
CHANGED
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.
|
|
27
|
+
* @version 1.93.2
|
|
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.
|
|
33
|
+
* @version 1.93.2
|
|
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.
|
|
381
|
+
* @version 1.93.2
|
|
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.
|
|
36
|
+
* @version 1.93.2
|
|
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.
|
|
52
|
+
* @version 1.93.2
|
|
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.
|
|
60
|
+
* @version 1.93.2
|
|
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 */ {
|
|
@@ -246,7 +246,7 @@ VBI.SceneTouchEvents = function(scene, ele) {
|
|
|
246
246
|
this.clear = function() {
|
|
247
247
|
// unsubscribe events..................................................//
|
|
248
248
|
for (var nJ = 0, nLen = this.m_Events.length; nJ < nLen; ++nJ) {
|
|
249
|
-
ele["
|
|
249
|
+
ele.removeEventListener(this.m_Events[nJ], scene["process" + this.m_Events[nJ]]);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
|
|
@@ -254,21 +254,13 @@ VBI.SceneTouchEvents = function(scene, ele) {
|
|
|
254
254
|
// unsubscribe events..................................................//
|
|
255
255
|
var ae = this.m_Events;
|
|
256
256
|
for (var nJ = 0, nLen = ae.length; nJ < nLen; ++nJ) {
|
|
257
|
-
var handlername;
|
|
258
|
-
// check for platform tags to skip them.............................//
|
|
259
|
-
if (ae[nJ].slice(0, 2) == "ms") {
|
|
260
|
-
handlername = "process" + ae[nJ].slice(2);
|
|
261
|
-
} else {
|
|
262
|
-
handlername = "process" + ae[nJ];
|
|
263
|
-
}
|
|
257
|
+
var handlername = "process" + ae[nJ];
|
|
264
258
|
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
259
|
+
if (scene[handlername]) {
|
|
260
|
+
ele.addEventListener(ae[nJ], scene[handlername]);
|
|
261
|
+
} else if (VBI.m_bTrace) {
|
|
262
|
+
VBI.Trace("Error: Handler " + handlername + " not defined");
|
|
269
263
|
}
|
|
270
|
-
|
|
271
|
-
ele["on" + ae[nJ]] = scene[handlername];
|
|
272
264
|
}
|
|
273
265
|
};
|
|
274
266
|
|
|
@@ -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.
|
|
21
|
+
* @version 1.93.2
|
|
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.
|
|
51
|
+
version: "1.93.2"
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
jQuery.sap.registerModuleShims({
|
package/ui5.yaml
CHANGED
|
@@ -11,9 +11,11 @@ framework:
|
|
|
11
11
|
- name: sap.ui.core
|
|
12
12
|
- name: sap.ui.commons
|
|
13
13
|
- name: sap.ui.unified
|
|
14
|
+
- name: themelib_sap_horizon
|
|
15
|
+
optional: true
|
|
14
16
|
- name: themelib_sap_fiori_3
|
|
15
17
|
optional: true
|
|
16
18
|
- name: themelib_sap_belize
|
|
17
19
|
optional: true
|
|
18
20
|
- name: themelib_sap_bluecrystal
|
|
19
|
-
optional: true
|
|
21
|
+
optional: true
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
package utils;
|
|
2
|
-
|
|
3
|
-
import java.io.File;
|
|
4
|
-
import java.io.FileInputStream;
|
|
5
|
-
import java.io.FileOutputStream;
|
|
6
|
-
import java.io.IOException;
|
|
7
|
-
import java.io.OutputStreamWriter;
|
|
8
|
-
import java.io.PrintWriter;
|
|
9
|
-
import java.io.Writer;
|
|
10
|
-
|
|
11
|
-
import org.apache.commons.codec.binary.Base64;
|
|
12
|
-
import org.json.simple.JSONObject;
|
|
13
|
-
|
|
14
|
-
public class ImageManipulation {
|
|
15
|
-
|
|
16
|
-
@SuppressWarnings("unchecked")
|
|
17
|
-
static public void main(String[] arg) {
|
|
18
|
-
try {
|
|
19
|
-
// File dir = new File("src/sap/ui/vbm/themes/base/img");
|
|
20
|
-
String imgLocation = arg[0];
|
|
21
|
-
File dir = new File(imgLocation);
|
|
22
|
-
File[] directoryListing = dir.listFiles();
|
|
23
|
-
JSONObject obj = new JSONObject();
|
|
24
|
-
FileInputStream imageInFile = null;
|
|
25
|
-
if (directoryListing != null) {
|
|
26
|
-
for (int i = 0; i < directoryListing.length; i++) {
|
|
27
|
-
File child = directoryListing[i];
|
|
28
|
-
String filename = child.getName();
|
|
29
|
-
if (child.getName().startsWith("Pin_") && !child.getName().startsWith("Pin_images")) {
|
|
30
|
-
imageInFile = new FileInputStream(child);
|
|
31
|
-
byte imageData[] = new byte[(int) child.length()];
|
|
32
|
-
imageInFile.read(imageData);
|
|
33
|
-
String imageDataString = encodeImage(imageData);
|
|
34
|
-
obj.put(filename, imageDataString);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
Writer w = new OutputStreamWriter(new FileOutputStream(imgLocation + "/Pin_images.json"), "UTF-8");
|
|
38
|
-
PrintWriter pw = new PrintWriter(w);
|
|
39
|
-
pw.write(obj.toJSONString());
|
|
40
|
-
pw.flush();
|
|
41
|
-
pw.close();
|
|
42
|
-
imageInFile.close();
|
|
43
|
-
}
|
|
44
|
-
} catch (IOException e) {
|
|
45
|
-
e.printStackTrace();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
public static String encodeImage(byte[] imageByteArray) {
|
|
50
|
-
return Base64.encodeBase64String(imageByteArray);
|
|
51
|
-
}
|
|
52
|
-
}
|