@sapui5/sap.ui.vbm 1.121.0 → 1.122.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.vbm",
3
- "version": "1.121.0",
3
+ "version": "1.122.0",
4
4
  "description": "SAPUI5 Library sap.ui.vbm",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -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.121.0</version>
6
+ <version>1.122.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.121.0
25
+ * @version 1.122.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.121.0
48
+ * @version 1.122.0
49
49
  * @extends sap.ui.core.Element
50
50
  * @constructor
51
51
  * @public
@@ -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.........................................//
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  *
24
24
  * @public
25
25
  * @author SAP SE
26
- * @version 1.121.0
26
+ * @version 1.122.0
27
27
  * @extends sap.ui.core.Control
28
28
  * @alias sap.ui.vbm.Viewport
29
29
  */
@@ -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.121.0
86
+ * @version 1.122.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.121.0
32
+ * @version 1.122.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.121.0
380
+ * @version 1.122.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.121.0
35
+ * @version 1.122.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.121.0
50
+ * @version 1.122.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.121.0
59
+ * @version 1.122.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 */ {
@@ -5,7 +5,7 @@
5
5
  // DataProvider and DataType namespace
6
6
  // Author: Ulrich Roegelein
7
7
 
8
- sap.ui.define(["./sapvbi"]
8
+ sap.ui.define(["./sapvbi","./saputilities"]
9
9
  , function() {
10
10
  "use strict";
11
11
 
@@ -15,7 +15,7 @@
15
15
  // // sapzoom
16
16
  // // saprotate
17
17
 
18
- sap.ui.define(["./sapvbi"]
18
+ sap.ui.define(["./sapvbi","./saputilities"]
19
19
  , function() {
20
20
  "use strict";
21
21
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  // Author: Ulrich Roegelein
6
6
 
7
- sap.ui.define(["./sapvbi"]
7
+ sap.ui.define(["./sapvbi","./saputilities"]
8
8
  , function() {
9
9
  "use strict";
10
10
 
@@ -9,7 +9,8 @@
9
9
 
10
10
  sap.ui.define([
11
11
  "sap/ui/core/IconPool",
12
- "./sapvbi"
12
+ "./sapvbi",
13
+ "./saputilities"
13
14
  ], function(IconPool) {
14
15
  "use strict"
15
16
 
@@ -5,7 +5,7 @@
5
5
  // this module does the label handling
6
6
  // Author: Martina Gozlinski, extraction by Jürgen
7
7
 
8
- sap.ui.define(["./sapvbi"]
8
+ sap.ui.define(["./sapvbi","./saputilities"]
9
9
  , function() {
10
10
  "use strict";
11
11
 
@@ -10,7 +10,7 @@
10
10
  // MapLayerStack namespace
11
11
  // enables: new VBI.MapLayerStackManager(...)
12
12
 
13
- sap.ui.define(["./sapvbi"]
13
+ sap.ui.define(["./sapvbi","./saputilities"]
14
14
  , function() {
15
15
  "use strict";
16
16
 
@@ -5,7 +5,7 @@
5
5
  // mapprovider object
6
6
  // Author: Ulrich Roegelein
7
7
 
8
- sap.ui.define(["./sapvbi"]
8
+ sap.ui.define(["./sapvbi","./saputilities"]
9
9
  , function() {
10
10
  "use strict";
11
11
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  sap.ui.define(["./sapvbi",
6
- "sap/ui/core/Lib"]
6
+ "sap/ui/core/Lib","./saputilities"]
7
7
  , function(vbi, Lib) {
8
8
  "use strict";
9
9
 
@@ -7,7 +7,7 @@
7
7
  // First part enriches scene with label specific functions //
8
8
  // Second part consists of the VBI.Label object, formerly part of vobase //
9
9
 
10
- sap.ui.define(["./sapvbi"]
10
+ sap.ui.define(["./sapvbi","./saputilities"]
11
11
  , function() {
12
12
  "use strict";
13
13
 
@@ -5,7 +5,7 @@
5
5
  // this module does the label handling
6
6
  // Author: Martina Gozlinski, extraction by Jürgen
7
7
 
8
- sap.ui.define(["./sapvbi"]
8
+ sap.ui.define(["./sapvbi","./saputilities"]
9
9
  , function() {
10
10
  "use strict";
11
11
 
@@ -6,7 +6,7 @@
6
6
  // Author: Ulrich Roegelein
7
7
  // uses: <saputilities.js>
8
8
 
9
- sap.ui.define(["./sapvbi"]
9
+ sap.ui.define(["./sapvbi","./saputilities"]
10
10
  , function() {
11
11
  "use strict";
12
12
 
@@ -7,7 +7,9 @@
7
7
 
8
8
  sap.ui.define([
9
9
  "./sapvbi",
10
- "sap/ui/core/Popup"
10
+ "sap/ui/core/Popup",
11
+ "./saputilities",
12
+ "./sapvobase"
11
13
  ], function() {
12
14
  "use strict";
13
15
 
@@ -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
  });
@@ -6,7 +6,7 @@
6
6
  // Author: Ulrich Roegelein
7
7
  // the scene manager manages the scene instances in a component context
8
8
 
9
- sap.ui.define(["./sapvbi"]
9
+ sap.ui.define(["./sapvbi", "./sapvobase"]
10
10
  , function() {
11
11
  "use strict";
12
12
 
@@ -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 = sap.ui.vbm.VBI.RttMap[id];
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);
@@ -8,7 +8,7 @@
8
8
  // they support full databinding to the visual business datacontext
9
9
  // bindable functions for VOS
10
10
 
11
- sap.ui.define(["./sapvbi"]
11
+ sap.ui.define(["./sapvbi","./saputilities"]
12
12
  , function() {
13
13
  "use strict";
14
14
 
@@ -6,7 +6,7 @@
6
6
  // Author: Ulrich Roegelein
7
7
  // the scene manager manages the scene instances in a component context
8
8
 
9
- sap.ui.define(["./sapvbi"]
9
+ sap.ui.define(["./sapvbi","./saputilities"]
10
10
  , function() {
11
11
  "use strict";
12
12
 
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @namespace
21
21
  * @alias sap.ui.vbm
22
22
  * @author SAP SE
23
- * @version 1.121.0
23
+ * @version 1.122.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.121.0"
48
+ version: "1.122.0"
49
49
  });
50
50
 
51
51
  sap.ui.loader.config({