@sapui5/sap.ui.vbm 1.121.0 → 1.123.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 +1 -1
- package/src/sap/ui/vbm/Adapter3D.js +1 -1
- package/src/sap/ui/vbm/VBI.js +1 -1
- package/src/sap/ui/vbm/Viewport.js +1 -1
- package/src/sap/ui/vbm/VoAbstract.js +1 -1
- package/src/sap/ui/vbm/adapter3d/DragDropHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ModelHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +1 -1
- package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +1 -1
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +1 -1
- package/src/sap/ui/vbm/getResourceBundle.js +4 -6
- package/src/sap/ui/vbm/lib/sapdataprovider.js +1 -1
- package/src/sap/ui/vbm/lib/sapevents.js +1 -1
- package/src/sap/ui/vbm/lib/sapgeolocation.js +1 -1
- package/src/sap/ui/vbm/lib/saplabels.js +2 -1
- package/src/sap/ui/vbm/lib/saplassotrack.js +1 -1
- package/src/sap/ui/vbm/lib/sapmaplayer.js +1 -1
- package/src/sap/ui/vbm/lib/sapmapprovider.js +1 -1
- package/src/sap/ui/vbm/lib/sapnavigation.js +3 -7
- package/src/sap/ui/vbm/lib/sappositioning.js +1 -1
- package/src/sap/ui/vbm/lib/saprecttrack.js +1 -1
- package/src/sap/ui/vbm/lib/sapresources.js +1 -1
- package/src/sap/ui/vbm/lib/sapscene.js +3 -1
- package/src/sap/ui/vbm/lib/sapvbi.js +4 -48
- package/src/sap/ui/vbm/lib/sapvbicontext.js +1 -1
- package/src/sap/ui/vbm/lib/sapvobase.js +3 -2
- package/src/sap/ui/vbm/lib/sapvoutils.js +1 -1
- package/src/sap/ui/vbm/lib/sapwindow.js +1 -1
- package/src/sap/ui/vbm/library.js +2 -2
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.123.0</version>
|
|
7
7
|
|
|
8
8
|
<documentation>SAP UI library: sap.ui.vbm</documentation>
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
23
23
|
* @param {object} [mSettings] initial settings for the new object
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.123.0
|
|
26
26
|
* @extends sap.ui.core.Element
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
46
46
|
* @param {object} [mSettings] initial settings for the new object
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.123.0
|
|
49
49
|
* @extends sap.ui.core.Element
|
|
50
50
|
* @constructor
|
|
51
51
|
* @public
|
package/src/sap/ui/vbm/VBI.js
CHANGED
|
@@ -391,7 +391,7 @@ sap.ui.define([
|
|
|
391
391
|
// This file defines behavior for the control,...............................//
|
|
392
392
|
// ...........................................................................//
|
|
393
393
|
// Map used for storing RichTooltips
|
|
394
|
-
VBI1.RttMap =
|
|
394
|
+
VBI1.RttMap = VBI.RttMap;
|
|
395
395
|
|
|
396
396
|
VBI1.prototype.exit = function() {
|
|
397
397
|
// create the vbi control context.........................................//
|
|
@@ -200,7 +200,7 @@ sap.ui.define([
|
|
|
200
200
|
|
|
201
201
|
//Special handling for TM Transportation Cockpit
|
|
202
202
|
if (this.mEventRegistry.click !== undefined) {
|
|
203
|
-
if (this.mEventRegistry.click[0].oListener !== undefined && this.mEventRegistry.click[0].oListener._data !== undefined) {
|
|
203
|
+
if (this.mEventRegistry.click[0].oListener !== undefined && this.mEventRegistry.click[0].oListener._data !== undefined ) {
|
|
204
204
|
var spots = this.mEventRegistry.click[0].oListener._data.Spots || null;
|
|
205
205
|
if (spots !== null) {
|
|
206
206
|
spots.forEach(function (item) {
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
*
|
|
84
84
|
* @private
|
|
85
85
|
* @author SAP SE
|
|
86
|
-
* @version 1.
|
|
86
|
+
* @version 1.123.0
|
|
87
87
|
* @alias sap.ui.vbm.adapter3d.DragDropHandler
|
|
88
88
|
*/
|
|
89
89
|
var DragDropHandler = BaseObject.extend("sap.ui.vbm.adapter3d.DragDropHandler", /** @lends sap.ui.vbm.adapter3d.DragDropHandler.prototype */ {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.123.0
|
|
33
33
|
* @alias sap.ui.vbm.adapter3d.ModelHandler
|
|
34
34
|
*/
|
|
35
35
|
var ModelHandler = BaseObject.extend("sap.ui.vbm.adapter3d.ModelHandler", /** @lends sap.ui.vbm.adapter3d.ModelHandler.prototype */ {
|
|
@@ -377,7 +377,7 @@ sap.ui.define([
|
|
|
377
377
|
*
|
|
378
378
|
* @private
|
|
379
379
|
* @author SAP SE
|
|
380
|
-
* @version 1.
|
|
380
|
+
* @version 1.123.0
|
|
381
381
|
* @alias sap.ui.vbm.adapter3d.ObjectFactory
|
|
382
382
|
*/
|
|
383
383
|
var ObjectFactory = BaseObject.extend("sap.ui.vbm.adapter3d.ObjectFactory", /** @lends sap.ui.vbm.adapter3d.ObjectFactory.prototype */ {});
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
*
|
|
33
33
|
* @private
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.123.0
|
|
36
36
|
* @alias sap.ui.vbm.adapter3d.PolygonHandler
|
|
37
37
|
*/
|
|
38
38
|
var PolygonHandler = BaseObject.extend("sap.ui.vbm.adapter3d.PolygonHandler", /** @lends sap.ui.vbm.adapter3d.PolygonHandler.prototype */ {
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
*
|
|
48
48
|
* @private
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.123.0
|
|
51
51
|
* @alias sap.ui.vbm.adapter3d.SceneBuilder
|
|
52
52
|
*/
|
|
53
53
|
var SceneBuilder = BaseObject.extend("sap.ui.vbm.adapter3d.SceneBuilder", /** @lends sap.ui.vbm.adapter3d.SceneBuilder.prototype */ {
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
*
|
|
57
57
|
* @private
|
|
58
58
|
* @author SAP SE
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.123.0
|
|
60
60
|
* @alias sap.ui.vbm.adapter3d.VBIJSONParser
|
|
61
61
|
*/
|
|
62
62
|
var VBIJSONParser = BaseObject.extend("sap.ui.vbm.adapter3d.VBIJSONParser", /** @lends sap.ui.vbm.adapter3d.VBIJSONParser.prototype */ {
|
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
// Provides function sap.ui.vbm.getResourceBundle.
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/
|
|
8
|
-
], function(
|
|
9
|
-
core
|
|
10
|
-
) {
|
|
7
|
+
"sap/base/i18n/ResourceBundle"
|
|
8
|
+
], function( ResourceBundle ) {
|
|
11
9
|
"use strict";
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
// Retrieve ResourceBundle for a name that is not a library
|
|
11
|
+
return ResourceBundle.create.bind(ResourceBundle, { bundleName: "sap.ui.vbm.i18n.messagebundle"});
|
|
14
12
|
}, /* bExport= */ true);
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
sap.ui.define(["./sapvbi",
|
|
6
|
-
|
|
7
|
-
, function(vbi, Lib) {
|
|
5
|
+
sap.ui.define(["./sapvbi","sap/base/i18n/ResourceBundle","./saputilities"]
|
|
6
|
+
, function(vbi, ResourceBundle) {
|
|
8
7
|
"use strict";
|
|
9
8
|
|
|
10
9
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
@@ -379,10 +378,7 @@ VBI.NavigationControl = function(SuppressedNavControlVisibility) {
|
|
|
379
378
|
};
|
|
380
379
|
|
|
381
380
|
nc.AppendDiv = function() {
|
|
382
|
-
|
|
383
|
-
Lib.load({ name: "sap.ui.vbm.i18n" });
|
|
384
|
-
// ResourceBundle can be retrieved
|
|
385
|
-
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm.i18n")
|
|
381
|
+
var oResourceBundle = ResourceBundle.create({ bundleName: "sap.ui.vbm.i18n.messagebundle"});
|
|
386
382
|
var sTooltipZoom = oResourceBundle.getText("NAVCTL_TITLE_ZOOM", [0]);
|
|
387
383
|
sTooltipZoom = sTooltipZoom.substr(0, sTooltipZoom.search(/[0-9]/));
|
|
388
384
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// VBI namespace
|
|
6
6
|
// Author: Ulrich Roegelein
|
|
7
7
|
|
|
8
|
-
sap.ui.define(function() {
|
|
8
|
+
sap.ui.define( function() {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
@@ -39,6 +39,9 @@ sap.ui.define(function() {
|
|
|
39
39
|
m_shiftKey: false,
|
|
40
40
|
m_dwRefKeyboardHook: 0,
|
|
41
41
|
|
|
42
|
+
// Map used for storing RichTooltips
|
|
43
|
+
RttMap : {},
|
|
44
|
+
|
|
42
45
|
// .....................................................................//
|
|
43
46
|
// get the location service............................................//
|
|
44
47
|
|
|
@@ -159,51 +162,4 @@ sap.ui.define(function() {
|
|
|
159
162
|
};
|
|
160
163
|
})();
|
|
161
164
|
|
|
162
|
-
// based on sources from: https://github.com/MihaiValentin/setDragImage-IE polyfill
|
|
163
|
-
(function() {
|
|
164
|
-
if (!window.DataTransfer) { // return if drag not supported
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
if (typeof window.DataTransfer.prototype.setDragImage !== 'function') { // if the setDragImage is not available, implement it in VBI.Utilities to avoid touching global namespace
|
|
168
|
-
VBI.Utilities.SetDragImage = function(image, offsetX, offsetY) {
|
|
169
|
-
var randomDraggingClassName, dragStylesCSS, dragStylesEl, headEl, eventTarget;
|
|
170
|
-
|
|
171
|
-
// generate a random class name that will be added to the element
|
|
172
|
-
randomDraggingClassName = 'setdragimage-ie-dragging-' + Math.round(Math.random() * Math.pow(10, 5)) + '-' + Date.now();
|
|
173
|
-
|
|
174
|
-
// prepare the rules for the random class
|
|
175
|
-
dragStylesCSS = [
|
|
176
|
-
'.' + randomDraggingClassName, '{', 'background: url("' + image.src + '") no-repeat #fff 0 0 !important;', 'width: ' + image.width + 'px !important;', 'height: ' + image.height + 'px !important;', 'text-indent: -9999px !important;', 'border: 0 !important;', 'outline: 0 !important;', '}', '.' + randomDraggingClassName + ' * {', 'display: none !important;', '}'
|
|
177
|
-
];
|
|
178
|
-
// create the element and add it to the head of the page
|
|
179
|
-
dragStylesEl = document.createElement('style');
|
|
180
|
-
dragStylesEl.innerText = dragStylesCSS.join('');
|
|
181
|
-
headEl = document.getElementsByTagName('head')[0];
|
|
182
|
-
headEl.appendChild(dragStylesEl);
|
|
183
|
-
|
|
184
|
-
/*
|
|
185
|
-
* since we can't get the target element over which the drag start event occurred (because the `this` represents the window.DataTransfer
|
|
186
|
-
* object and not the element), we will walk through the parents of the current functions until we find one whose first argument is a drag
|
|
187
|
-
* event; since this doesn't work in strict mode we introduced a VBI.m_DnDTarget variable that is set in the dragstart event processing
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
eventTarget = VBI.m_DndTarget;
|
|
191
|
-
|
|
192
|
-
// and add the class we prepared to it
|
|
193
|
-
eventTarget.classList.add(randomDraggingClassName);
|
|
194
|
-
|
|
195
|
-
/*
|
|
196
|
-
* immediately after adding the class, we remove it. in this way the browser will have time to make a snapshot and use it just so it looks
|
|
197
|
-
* like the drag element
|
|
198
|
-
*/
|
|
199
|
-
setTimeout(function() {
|
|
200
|
-
// remove the styles
|
|
201
|
-
headEl.removeChild(dragStylesEl);
|
|
202
|
-
// remove the class
|
|
203
|
-
eventTarget.classList.remove(randomDraggingClassName);
|
|
204
|
-
}, 0);
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
})();
|
|
208
|
-
|
|
209
165
|
});
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
sap.ui.define([
|
|
13
13
|
"sap/ui/core/IconPool",
|
|
14
|
-
"./sapvbi"
|
|
14
|
+
"./sapvbi",
|
|
15
|
+
"./saputilities"
|
|
15
16
|
], function(IconPool) {
|
|
16
17
|
"use strict";
|
|
17
18
|
|
|
@@ -279,7 +280,7 @@ VBI.VisualObjects = function() {
|
|
|
279
280
|
if (tmp[0] == "rtt") {
|
|
280
281
|
// In case of RichTooltip, save the object to use later
|
|
281
282
|
var id = tmp[1];
|
|
282
|
-
this.m_tt =
|
|
283
|
+
this.m_tt = VBI.RttMap[id];
|
|
283
284
|
} else {
|
|
284
285
|
// string tooltips will be handled at this point
|
|
285
286
|
scene.SetToolTip(this.m_tt);
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @namespace
|
|
21
21
|
* @alias sap.ui.vbm
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.123.0
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
"sap.ui.vbm.ClusterBase", "sap.ui.vbm.ClusterTree", "sap.ui.vbm.ClusterGrid", "sap.ui.vbm.ClusterDistance", "sap.ui.vbm.Heatmap",
|
|
46
46
|
"sap.ui.vbm.HeatPoint", "sap.ui.vbm.ClusterContainer", "sap.ui.vbm.Adapter", "sap.ui.vbm.Adapter3D"
|
|
47
47
|
],
|
|
48
|
-
version: "1.
|
|
48
|
+
version: "1.123.0"
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
sap.ui.loader.config({
|