@sapui5/sap.ui.vbm 1.95.0 → 1.98.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/ui/vbm/.library +1 -1
- package/src/sap/ui/vbm/Adapter.js +46 -9
- package/src/sap/ui/vbm/Adapter3D.js +2 -3
- package/src/sap/ui/vbm/AnalyticMap.js +1 -2
- package/src/sap/ui/vbm/AnalyticMapRenderer.js +1 -2
- package/src/sap/ui/vbm/Area.js +1 -2
- package/src/sap/ui/vbm/Areas.js +8 -10
- package/src/sap/ui/vbm/Box.js +1 -2
- package/src/sap/ui/vbm/Boxes.js +1 -2
- package/src/sap/ui/vbm/Circle.js +1 -2
- package/src/sap/ui/vbm/Circles.js +1 -2
- package/src/sap/ui/vbm/Cluster.js +5 -5
- package/src/sap/ui/vbm/ClusterBase.js +5 -9
- package/src/sap/ui/vbm/ClusterContainer.js +1 -2
- package/src/sap/ui/vbm/ClusterDistance.js +1 -2
- package/src/sap/ui/vbm/ClusterGrid.js +1 -2
- package/src/sap/ui/vbm/ClusterRenderer.js +1 -3
- package/src/sap/ui/vbm/ClusterTree.js +1 -2
- package/src/sap/ui/vbm/Container.js +1 -2
- package/src/sap/ui/vbm/Containers.js +4 -7
- package/src/sap/ui/vbm/DragSource.js +1 -2
- package/src/sap/ui/vbm/DropTarget.js +1 -2
- package/src/sap/ui/vbm/Feature.js +1 -2
- package/src/sap/ui/vbm/FeatureCollection.js +1 -2
- package/src/sap/ui/vbm/GeoCircle.js +1 -2
- package/src/sap/ui/vbm/GeoCircles.js +1 -2
- package/src/sap/ui/vbm/GeoJsonLayer.js +10 -12
- package/src/sap/ui/vbm/GeoMap.js +19 -9
- package/src/sap/ui/vbm/GeoMapRenderer.js +1 -2
- package/src/sap/ui/vbm/HeatPoint.js +1 -2
- package/src/sap/ui/vbm/Heatmap.js +1 -2
- package/src/sap/ui/vbm/Legend.js +1 -2
- package/src/sap/ui/vbm/LegendItem.js +1 -2
- package/src/sap/ui/vbm/Pie.js +1 -2
- package/src/sap/ui/vbm/PieItem.js +1 -2
- package/src/sap/ui/vbm/Pies.js +1 -2
- package/src/sap/ui/vbm/Region.js +1 -2
- package/src/sap/ui/vbm/Resource.js +1 -2
- package/src/sap/ui/vbm/Route.js +1 -2
- package/src/sap/ui/vbm/Routes.js +1 -2
- package/src/sap/ui/vbm/Spot.js +1 -2
- package/src/sap/ui/vbm/Spots.js +1 -2
- package/src/sap/ui/vbm/VBI.js +41 -10
- package/src/sap/ui/vbm/VBIRenderer.js +1 -2
- package/src/sap/ui/vbm/Viewport.js +2 -3
- package/src/sap/ui/vbm/ViewportRenderer.js +1 -2
- package/src/sap/ui/vbm/VoAbstract.js +1 -2
- package/src/sap/ui/vbm/VoAggregation.js +4 -7
- package/src/sap/ui/vbm/VoBase.js +1 -2
- package/src/sap/ui/vbm/adapter3d/ModelHandler.js +2 -3
- package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +2 -3
- package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +2 -3
- package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +4 -3
- package/src/sap/ui/vbm/adapter3d/Utilities.js +1 -2
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +2 -3
- package/src/sap/ui/vbm/lib/sapactions.js +11 -9
- package/src/sap/ui/vbm/lib/sapautomations.js +11 -13
- package/src/sap/ui/vbm/lib/sapconfig.js +10 -3
- package/src/sap/ui/vbm/lib/sapdataprovider.js +10 -21
- package/src/sap/ui/vbm/lib/sapevents.js +10 -11
- package/src/sap/ui/vbm/lib/sapgeolocation.js +9 -3
- package/src/sap/ui/vbm/lib/sapgeomath.js +10 -4
- package/src/sap/ui/vbm/lib/sapgeotool.js +11 -3
- package/src/sap/ui/vbm/lib/sapheatmap.js +27 -25
- package/src/sap/ui/vbm/lib/saplabels.js +16 -11
- package/src/sap/ui/vbm/lib/saplassotrack.js +10 -5
- package/src/sap/ui/vbm/lib/sapmaplayer.js +12 -10
- package/src/sap/ui/vbm/lib/sapmapmanager.js +14 -5
- package/src/sap/ui/vbm/lib/sapmapprovider.js +10 -5
- package/src/sap/ui/vbm/lib/sapnavigation.js +10 -3
- package/src/sap/ui/vbm/lib/sapparsing.js +10 -1
- package/src/sap/ui/vbm/lib/sappositioning.js +11 -5
- package/src/sap/ui/vbm/lib/sapprojection.js +11 -5
- package/src/sap/ui/vbm/lib/saprecttrack.js +10 -5
- package/src/sap/ui/vbm/lib/sapresources.js +11 -6
- package/src/sap/ui/vbm/lib/sapscale.js +14 -5
- package/src/sap/ui/vbm/lib/sapscene.js +14 -13
- package/src/sap/ui/vbm/lib/saputilities.js +18 -91
- package/src/sap/ui/vbm/lib/sapvbcluster.js +13 -6
- package/src/sap/ui/vbm/lib/sapvbi.js +10 -42
- package/src/sap/ui/vbm/lib/sapvbicontext.js +10 -5
- package/src/sap/ui/vbm/lib/sapvbmenu.js +18 -13
- package/src/sap/ui/vbm/lib/sapvobase.js +16 -16
- package/src/sap/ui/vbm/lib/sapvoutils.js +13 -24
- package/src/sap/ui/vbm/lib/sapwindow.js +11 -12
- package/src/sap/ui/vbm/library.js +29 -33
- package/src/sap/ui/vbm/themes/base/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize_hcb/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize_hcw/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize_plus/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_bluecrystal/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3_dark/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3_hcb/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3_hcw/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_hcb/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_horizon/library.source.less +7 -0
- package/ui5.yaml +7 -4
- package/src/sap/ui/vbm/themes/sap_mvi/empty.less +0 -0
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.98.0</version>
|
|
7
7
|
|
|
8
8
|
<documentation>SAP UI library: sap.ui.vbm</documentation>
|
|
9
9
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides class sap.ui.vbm.Adapter
|
|
@@ -23,13 +22,12 @@ sap.ui.define([
|
|
|
23
22
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
24
23
|
* @param {object} [mSettings] initial settings for the new object
|
|
25
24
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
25
|
+
* @version 1.98.0
|
|
27
26
|
* @extends sap.ui.core.Element
|
|
28
27
|
* @constructor
|
|
29
28
|
* @public
|
|
30
29
|
* @alias sap.ui.vbm.Adapter
|
|
31
30
|
* @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
31
|
*/
|
|
34
32
|
var Adapter = Element.extend("sap.ui.vbm.Adapter", /** @lends sap.ui.vbm.Adapter.prototype */ {
|
|
35
33
|
metadata: {
|
|
@@ -103,6 +101,32 @@ sap.ui.define([
|
|
|
103
101
|
"start",
|
|
104
102
|
"tooltip"];
|
|
105
103
|
|
|
104
|
+
this._areaProperties = [
|
|
105
|
+
"key", //K: VoBase
|
|
106
|
+
"color", //C: Area, OBJECT_BASE_DATA->FILL_COLOR
|
|
107
|
+
"colorBorder", //D/CB: Area, OBJECT_BASE_DATA->BORDER_COLOR
|
|
108
|
+
"posarray", //H, PM (multipart) /P: Area, AREA_EXTENSION->BORDER_POINTS
|
|
109
|
+
"selectColor", //SC: OBJECT_BASE_DATA->SELECT_COLOR
|
|
110
|
+
"dragdata", //DD: VoAggregation, OBJECT_BASE_DATA->DRAG_DATA
|
|
111
|
+
"VB:s", //VB:s: elected, OBJECT_BASE_DATA->SELECTED
|
|
112
|
+
"VB:c", //H/VB:c: VoAggregation (changeable) OBJECT_BASE_DATA->CHANGEABLE
|
|
113
|
+
"hotScale", //HS: VoAggregation
|
|
114
|
+
"hotDeltaColor", //HC/HDC: VoAggregation, OBJECT_BASE_DATA->HOT_COLOR
|
|
115
|
+
"borderDash", //BD: Area
|
|
116
|
+
"selectColor", //SC: VoAggregation
|
|
117
|
+
"fxdir", //FD: VoAggregation
|
|
118
|
+
"fxsize", //FS: VoAggregation
|
|
119
|
+
"entity", //ET: VoAggregation
|
|
120
|
+
"labelBgColor", //LC/LBC: VoAggregation
|
|
121
|
+
"labelBorderColor", //LBBC: VoAggregation
|
|
122
|
+
"labelPos", //LP: VoAggregation
|
|
123
|
+
"labelText", //LT: VoAggregation
|
|
124
|
+
"labelArrow", //??VOBase
|
|
125
|
+
"label", //L
|
|
126
|
+
"labelAlignment", //"LA"
|
|
127
|
+
"tooltip" //B/TT: VoAggregation
|
|
128
|
+
];
|
|
129
|
+
|
|
106
130
|
// Allowed Spot properties
|
|
107
131
|
this._spotProperties = [
|
|
108
132
|
"alignment",
|
|
@@ -475,6 +499,7 @@ sap.ui.define([
|
|
|
475
499
|
* "Set": [
|
|
476
500
|
* { "name": "Spots", "type": "N", ....},
|
|
477
501
|
* { "name": "Links", "type": "N", ....},
|
|
502
|
+
* { "name": "Areas", "type": "N", ....},
|
|
478
503
|
* ]
|
|
479
504
|
* }
|
|
480
505
|
*
|
|
@@ -484,6 +509,7 @@ sap.ui.define([
|
|
|
484
509
|
* "N": [
|
|
485
510
|
* { "name": "Spots", ... },
|
|
486
511
|
* { "name": "Links", ... },
|
|
512
|
+
* { "name": "Areas", ... },
|
|
487
513
|
* ]
|
|
488
514
|
* }
|
|
489
515
|
* }
|
|
@@ -788,13 +814,18 @@ sap.ui.define([
|
|
|
788
814
|
processDragAndDrop();
|
|
789
815
|
break;
|
|
790
816
|
case "{00100000-2012-0004-B001-F311DE491C77}": // Area
|
|
817
|
+
processProperties(this._areaProperties, this._propsAnomalies);
|
|
818
|
+
voTemplate = new sap.ui.vbm.Area(settings);
|
|
819
|
+
voAggregation = new sap.ui.vbm.Areas(this._ui5Id(definition.id));
|
|
820
|
+
processDragAndDrop();
|
|
821
|
+
break;
|
|
822
|
+
case "{00100000-2014-0004-BDA8-87B904609063}": // "ExtArea" GUID??? from sapvobase
|
|
823
|
+
case "{00100000-2014-0004-B001-9F1B43BE944A}": // "ExtLink" GUID??? from sapvobase
|
|
791
824
|
case "{00100000-2013-0004-B001-7EB3CCC039C4}": // Circle
|
|
792
825
|
case "{00100000-2013-0004-B001-686F01B57873}": // Geo Circle
|
|
793
826
|
case "{00100000-2012-0004-B001-BFED458C3076}": // Box
|
|
794
827
|
case "{00100000-2012-0004-B001-383477EA1DEB}": // Pie Chart
|
|
795
828
|
case "{388951f5-a66b-4423-a5ad-e0ee13c2246f}": // Decal
|
|
796
|
-
case "ExtLink": // GUID???
|
|
797
|
-
case "ExtArea": // GUID???
|
|
798
829
|
default:
|
|
799
830
|
Log.debug("unsupported VO type", definition.type, thisModule);
|
|
800
831
|
return;
|
|
@@ -918,6 +949,9 @@ sap.ui.define([
|
|
|
918
949
|
case "Drop":
|
|
919
950
|
this._event = "drop";
|
|
920
951
|
break;
|
|
952
|
+
case "CreateComplete":
|
|
953
|
+
this._event = "createComplete";
|
|
954
|
+
break;
|
|
921
955
|
case "Select":
|
|
922
956
|
this._event = "select";
|
|
923
957
|
break;
|
|
@@ -1474,12 +1508,15 @@ sap.ui.define([
|
|
|
1474
1508
|
}
|
|
1475
1509
|
if (oEventData.Action && oEventData.Action.object) {
|
|
1476
1510
|
// Whatever back-end refers to as Links, they are referred to as Routes by Geomap
|
|
1477
|
-
|
|
1478
|
-
|
|
1511
|
+
var routeName = "Route", linkName = "Link";
|
|
1512
|
+
var actionObjects = [oEventData.Action.object];
|
|
1513
|
+
if (oEventData.Action.object === routeName) {
|
|
1514
|
+
actionObjects.push(linkName);
|
|
1515
|
+
oEventData.Action.object = linkName;
|
|
1479
1516
|
}
|
|
1480
1517
|
|
|
1481
1518
|
var oAction = sap.ui.vbm.findInArray(this._actions, function(action) {
|
|
1482
|
-
return
|
|
1519
|
+
return (actionObjects.indexOf(action.refVO) != -1) && oEventData.Action.name.toLowerCase() === action.refEvent.toLowerCase();
|
|
1483
1520
|
});
|
|
1484
1521
|
|
|
1485
1522
|
if (oAction) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides class sap.ui.vbm.Adapter3D
|
|
@@ -42,7 +41,7 @@ sap.ui.define([
|
|
|
42
41
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
43
42
|
* @param {object} [mSettings] initial settings for the new object
|
|
44
43
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
44
|
+
* @version 1.98.0
|
|
46
45
|
* @extends sap.ui.core.Element
|
|
47
46
|
* @constructor
|
|
48
47
|
* @public
|
package/src/sap/ui/vbm/Area.js
CHANGED
package/src/sap/ui/vbm/Areas.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides control sap.ui.vbm.Areas.
|
|
7
6
|
sap.ui.define([
|
|
8
7
|
"./VoAggregation",
|
|
8
|
+
"sap/ui/unified/Menu",
|
|
9
9
|
"sap/base/Log",
|
|
10
10
|
"./library"
|
|
11
|
-
], function(VoAggregation, Log, library) {
|
|
11
|
+
], function(VoAggregation, Menu, Log, library) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
var thisModule = "sap.ui.vbm.Areas";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Constructor for a new Areas.
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
20
20
|
* @param {object} [mSettings] initial settings for the new control
|
|
21
21
|
* @class Type specific Visual Object aggregation for <i>Area</i> instances.
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
*/
|
|
68
68
|
instance: {
|
|
69
69
|
type: "sap.ui.vbm.Area"
|
|
70
|
-
},
|
|
70
|
+
},
|
|
71
71
|
/**
|
|
72
72
|
* The number of the edge where the click occured. Edges are numbered zero based: e.g. edge from point 1 to point 2 has number
|
|
73
73
|
* 0
|
|
@@ -282,21 +282,19 @@ sap.ui.define([
|
|
|
282
282
|
if ((Area = this.findInstance(event.Action.instance))) {
|
|
283
283
|
var eventContext = {
|
|
284
284
|
data: event,
|
|
285
|
-
edge: parseInt(event.Action.Params.Param['2']['#'], 10)
|
|
285
|
+
edge: parseInt(event.Action.Params.Param['2']['#'], 10)
|
|
286
286
|
};
|
|
287
|
-
|
|
287
|
+
|
|
288
288
|
if (s == "edgeContextMenu") {
|
|
289
289
|
Area.mClickPos = [
|
|
290
290
|
event.Action.Params.Param[0]['#'], event.Action.Params.Param[1]['#']
|
|
291
291
|
];
|
|
292
|
-
// lazy load sap.ui.unified library for using the Menu
|
|
293
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
294
292
|
|
|
295
293
|
if (this.oParent.mVBIContext.m_Menus) {
|
|
296
294
|
this.oParent.mVBIContext.m_Menus.deleteMenu("DynContextMenu");
|
|
297
295
|
}
|
|
298
296
|
// create an empty menu
|
|
299
|
-
var oMenuObject = new
|
|
297
|
+
var oMenuObject = new Menu();
|
|
300
298
|
oMenuObject.vbi_data = {};
|
|
301
299
|
oMenuObject.vbi_data.menuRef = "CTM";
|
|
302
300
|
oMenuObject.vbi_data.VBIName = "DynContextMenu";
|
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,19 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides control sap.ui.vbm.Cluster.
|
|
7
6
|
sap.ui.define([
|
|
8
7
|
"sap/ui/core/Control",
|
|
9
8
|
"jquery.sap.global",
|
|
10
|
-
"./library"
|
|
11
|
-
|
|
9
|
+
"./library",
|
|
10
|
+
"./ClusterRenderer"
|
|
11
|
+
], function(Control, jQuery, library, ClusterRenderer) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Constructor for a new Cluster.
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
18
18
|
* @param {object} [mSettings] initial settings for the new control
|
|
19
19
|
* @class Cluster control to visualize clustered objects on a map. The Cluster control does not cluster anything itself, instead it only shows a
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides control sap.ui.vbm.ClusterBase.
|
|
@@ -8,10 +7,11 @@ sap.ui.define([
|
|
|
8
7
|
"sap/ui/core/Element",
|
|
9
8
|
"sap/ui/core/theming/Parameters",
|
|
10
9
|
"./ClusterContainer",
|
|
10
|
+
"sap/ui/unified/Menu",
|
|
11
11
|
"jquery.sap.global",
|
|
12
12
|
"sap/base/Log",
|
|
13
13
|
"./library"
|
|
14
|
-
], function(Element, Parameters, ClusterContainer, jQuery, Log, library) {
|
|
14
|
+
], function(Element, Parameters, ClusterContainer, Menu, jQuery, Log, library) {
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
17
|
var thisModule = "sap.ui.vbm.ClusterBase";
|
|
@@ -390,14 +390,12 @@ sap.ui.define([
|
|
|
390
390
|
oVo.mClickPos = [
|
|
391
391
|
event.Action.Params.Param[0]['#'], event.Action.Params.Param[1]['#']
|
|
392
392
|
];
|
|
393
|
-
// lazy load sap.ui.unified library for using the Menu
|
|
394
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
395
393
|
|
|
396
394
|
if (this.oParent.mVBIContext.m_Menus) {
|
|
397
395
|
this.oParent.mVBIContext.m_Menus.deleteMenu("DynContextMenu");
|
|
398
396
|
}
|
|
399
397
|
// create an empty menu
|
|
400
|
-
var oMenuObject = new
|
|
398
|
+
var oMenuObject = new Menu();
|
|
401
399
|
oMenuObject.vbi_data = {};
|
|
402
400
|
oMenuObject.vbi_data.menuRef = "CTM";
|
|
403
401
|
oMenuObject.vbi_data.VBIName = "DynContextMenu";
|
|
@@ -543,15 +541,13 @@ sap.ui.define([
|
|
|
543
541
|
oCluster.mClickPos = [
|
|
544
542
|
oEvent.clientX - oMapDiv.offsetLeft, oEvent.clientY - oMapDiv.offsetTop
|
|
545
543
|
];
|
|
546
|
-
// lazy load sap.ui.unified library for using the Menu
|
|
547
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
548
544
|
|
|
549
545
|
try {
|
|
550
546
|
if (this.oParent.mVBIContext.m_Menus) {
|
|
551
547
|
this.oParent.mVBIContext.m_Menus.deleteMenu("DynContextMenu");
|
|
552
548
|
}
|
|
553
549
|
// create an empty menu
|
|
554
|
-
var oMenuObject = new
|
|
550
|
+
var oMenuObject = new Menu();
|
|
555
551
|
oMenuObject.vbi_data = {};
|
|
556
552
|
oMenuObject.vbi_data.menuRef = "CTM";
|
|
557
553
|
oMenuObject.vbi_data.VBIName = "DynContextMenu";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
sap.ui.define([
|
|
@@ -37,7 +36,6 @@ sap.ui.define([
|
|
|
37
36
|
|
|
38
37
|
var col = oControl.getColor();
|
|
39
38
|
var type = oControl.getType();
|
|
40
|
-
IconPool.insertFontFaceStyle();
|
|
41
39
|
var iiconVal = oControl.getIcon();
|
|
42
40
|
var icon, icInfo;
|
|
43
41
|
if (iiconVal) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides control sap.ui.vbm.Containers.
|
|
7
6
|
sap.ui.define([
|
|
8
7
|
"./VoAggregation",
|
|
8
|
+
"sap/ui/unified/Menu",
|
|
9
9
|
"./library"
|
|
10
|
-
], function(VoAggregation, library) {
|
|
10
|
+
], function(VoAggregation, Menu, library) {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -214,15 +214,12 @@ sap.ui.define([
|
|
|
214
214
|
oContainer.mClickPos = [
|
|
215
215
|
oEvent.clientX - oMapDivRect.left, oEvent.clientY - oMapDivRect.top
|
|
216
216
|
];
|
|
217
|
-
// lazy load sap.ui.unified library for using the Menu
|
|
218
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
219
|
-
|
|
220
217
|
try {
|
|
221
218
|
if (this.oParent.mVBIContext.m_Menus) {
|
|
222
219
|
this.oParent.mVBIContext.m_Menus.deleteMenu("DynContextMenu");
|
|
223
220
|
}
|
|
224
221
|
// create an empty menu
|
|
225
|
-
var oMenuObject = new
|
|
222
|
+
var oMenuObject = new Menu();
|
|
226
223
|
oMenuObject.vbi_data = {};
|
|
227
224
|
oMenuObject.vbi_data.menuRef = "CTM";
|
|
228
225
|
oMenuObject.vbi_data.VBIName = "DynContextMenu";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
// Provides control sap.ui.vbm.GeoJsonLayer.
|
|
7
6
|
sap.ui.define([
|
|
8
7
|
"sap/ui/core/Element",
|
|
9
8
|
"sap/ui/core/theming/Parameters",
|
|
9
|
+
"sap/ui/unified/Menu",
|
|
10
10
|
"jquery.sap.global",
|
|
11
11
|
"sap/base/Log",
|
|
12
12
|
"./library"
|
|
13
|
-
], function(Element, Parameters, jQuery, Log, library) {
|
|
13
|
+
], function(Element, Parameters, Menu, jQuery, Log, library) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
var thisModule = "sap.ui.vbm.GeoJsonLayer";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Constructor for a new GeoJsonLayer.
|
|
20
|
-
*
|
|
20
|
+
*
|
|
21
21
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
22
22
|
* @param {object} [mSettings] initial settings for the new control
|
|
23
23
|
* @class GeoJsonLayer aggregation container. A GeoJsonLayer can render the content of an assigned GeoJSON. The naming is associated to the
|
|
@@ -158,7 +158,7 @@ sap.ui.define([
|
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* Add GeoJSON object to the layer
|
|
161
|
-
*
|
|
161
|
+
*
|
|
162
162
|
* @param {object} aData GeoJSON object or an array of those
|
|
163
163
|
* @returns {void}
|
|
164
164
|
* @public
|
|
@@ -726,7 +726,7 @@ sap.ui.define([
|
|
|
726
726
|
}
|
|
727
727
|
// if( this.mEventRegistry[ "drop" ] || this.isEventRegistered( "drop" ) )
|
|
728
728
|
// aActions.push( { "id": id + "3", "name": "drop", "refScene": "MainScene", "refVO": id, "refEvent": "Drop" } );
|
|
729
|
-
//
|
|
729
|
+
//
|
|
730
730
|
// if( this.mEventRegistry[ "edgeClick" ] || this.isEventRegistered( "edgeClick" ) )
|
|
731
731
|
// aActions.push( { "id": id + "7", "name": "edgeClick", "refScene": "MainScene", "refVO": id, "refEvent": "EdgeClick" });
|
|
732
732
|
// if( this.mEventRegistry[ "edgeContextMenu" ] || this.isEventRegistered( "edgeContextMenu" ) )
|
|
@@ -737,7 +737,7 @@ sap.ui.define([
|
|
|
737
737
|
|
|
738
738
|
/**
|
|
739
739
|
* Returns Properties for Features like name, bounding box, and midpoint
|
|
740
|
-
*
|
|
740
|
+
*
|
|
741
741
|
* @param {string[]} aFeatureIds Array of Feature Ids. The Feature Id must match the GeoJSON tag.
|
|
742
742
|
* @returns {array} Array of Feature Information Objects. Each object in the array has the properties BBox: Bounding Box for the Feature in format
|
|
743
743
|
* "lonMin;latMin;lonMax;latMax", Midpoint: Centerpoint for Feature in format "lon;lat", Name: Name of the Feature, and Properties: Array
|
|
@@ -777,14 +777,12 @@ sap.ui.define([
|
|
|
777
777
|
oOverlay.mClickPos = [
|
|
778
778
|
event.Action.Params.Param[0]['#'], event.Action.Params.Param[1]['#']
|
|
779
779
|
];
|
|
780
|
-
// lazy load sap.ui.unified library for using the Menu
|
|
781
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
782
780
|
|
|
783
781
|
if (this.oParent.mVBIContext.m_Menus) {
|
|
784
782
|
this.oParent.mVBIContext.m_Menus.deleteMenu("DynContextMenu");
|
|
785
783
|
}
|
|
786
784
|
// create an empty menu
|
|
787
|
-
var oMenuObject = new
|
|
785
|
+
var oMenuObject = new Menu();
|
|
788
786
|
oMenuObject.vbi_data = {};
|
|
789
787
|
oMenuObject.vbi_data.menuRef = "CTM";
|
|
790
788
|
oMenuObject.vbi_data.VBIName = "DynContextMenu";
|
|
@@ -812,7 +810,7 @@ sap.ui.define([
|
|
|
812
810
|
|
|
813
811
|
/**
|
|
814
812
|
* open a Detail Window
|
|
815
|
-
*
|
|
813
|
+
*
|
|
816
814
|
* @param {sap.ui.vbm.Feature} oFeature VO instance for which the Detail Window should be opened
|
|
817
815
|
* @param {object} oParams Parameter object
|
|
818
816
|
* @param {string} oParams.caption Text for Detail Window caption
|
|
@@ -835,7 +833,7 @@ sap.ui.define([
|
|
|
835
833
|
|
|
836
834
|
/**
|
|
837
835
|
* open the context menu
|
|
838
|
-
*
|
|
836
|
+
*
|
|
839
837
|
* @param {sap.ui.vbm.Feature} oFeature VO instance for which the Detail Window should be opened
|
|
840
838
|
* @param {object} oMenu the context menu to be opened
|
|
841
839
|
* @returns {void}
|