@sapui5/sap.ui.vbm 1.133.0 → 1.134.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.133.0",
3
+ "version": "1.134.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.133.0</version>
6
+ <version>1.134.0</version>
7
7
 
8
8
  <documentation>SAP UI library: sap.ui.vbm</documentation>
9
9
 
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @param {string} [sId] id for the new control, generated automatically if no id is given
25
25
  * @param {object} [mSettings] initial settings for the new object
26
26
  * @author SAP SE
27
- * @version 1.133.0
27
+ * @version 1.134.0
28
28
  * @extends sap.ui.core.Element
29
29
  * @constructor
30
30
  * @public
@@ -305,7 +305,7 @@ sap.ui.define([
305
305
  * @returns {Promise} A Promise object that is resolved when the VBI JSON is processed.
306
306
  * @public
307
307
  */
308
- Adapter.prototype.load = function(data) {
308
+ Adapter.prototype.load = function(data, initialLoad = false) {
309
309
  var obj = null;
310
310
 
311
311
  if (typeof data === 'string') {
@@ -327,6 +327,10 @@ sap.ui.define([
327
327
  Log.debug("invalid object supplied for load", "", thisModule);
328
328
  return this;
329
329
  }
330
+ //check for initial load data
331
+ if (typeof initialLoad === 'boolean' && initialLoad) {
332
+ VBI.VBITransformer.clearTransformedJSON();
333
+ }
330
334
  // Verifying the map type vector or raster
331
335
  if (this._verifyMapType(obj)) {
332
336
  VBI.VBITransformer.parseVBI(obj); // exit for vector processing
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @param {string} [sId] id for the new control, generated automatically if no id is given
48
48
  * @param {object} [mSettings] initial settings for the new object
49
49
  * @author SAP SE
50
- * @version 1.133.0
50
+ * @version 1.134.0
51
51
  * @extends sap.ui.core.Element
52
52
  * @constructor
53
53
  * @public
@@ -22,7 +22,6 @@ sap.ui.define([
22
22
  * @alias sap.ui.vbm.Legend
23
23
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
24
24
  */
25
- Lib.load({ name: "sap.ui.vbm.i18n" });
26
25
  var Legend = Element.extend("sap.ui.vbm.Legend", /** @lends sap.ui.vbm.Legend.prototype */
27
26
  {
28
27
  metadata: {
@@ -36,7 +35,7 @@ sap.ui.define([
36
35
  caption: {
37
36
  type: "string",
38
37
  group: "Misc",
39
- defaultValue: Lib.getResourceBundleFor("sap.ui.vbm.i18n").getText("CAPTION_LEGEND")
38
+ defaultValue: Lib.getResourceBundleFor("sap.ui.vbm").getText("CAPTION_LEGEND")
40
39
  }
41
40
  },
42
41
  defaultAggregation: "items",
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  *
24
24
  * @public
25
25
  * @author SAP SE
26
- * @version 1.133.0
26
+ * @version 1.134.0
27
27
  * @extends sap.ui.core.Control
28
28
  * @alias sap.ui.vbm.Viewport
29
29
  */
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @private
24
24
  * @author SAP SE
25
- * @version 1.133.0
25
+ * @version 1.134.0
26
26
  * @alias sap.ui.vbm.adapter3d.ColladaBounds
27
27
  */
28
28
  var ColladaBounds = BaseObject.extend("sap.ui.vbm.adapter3d.ColladaBounds", /** @lends sap.ui.vbm.adapter3d.ColladaBounds.prototype */ {
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  *
84
84
  * @private
85
85
  * @author SAP SE
86
- * @version 1.133.0
86
+ * @version 1.134.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.133.0
32
+ * @version 1.134.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.133.0
380
+ * @version 1.134.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.133.0
35
+ * @version 1.134.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 */ {
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  *
40
40
  * @private
41
41
  * @author SAP SE
42
- * @version 1.133.0
42
+ * @version 1.134.0
43
43
  * @alias sap.ui.vbm.adapter3d.RectangleTracker
44
44
  */
45
45
  var RectangleTracker = BaseObject.extend("sap.ui.vbm.adapter3d.RectangleTracker", /** @lends sap.ui.vbm.adapter3d.RectangleTracker.prototype */ {
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  *
48
48
  * @private
49
49
  * @author SAP SE
50
- * @version 1.133.0
50
+ * @version 1.134.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.133.0
59
+ * @version 1.134.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,9 +4,8 @@
4
4
 
5
5
  // Provides function sap.ui.vbm.getResourceBundle.
6
6
  sap.ui.define([
7
- "sap/base/i18n/ResourceBundle"
8
- ], function( ResourceBundle ) {
7
+ "sap/ui/core/Lib"
8
+ ], function( Library ) {
9
9
  "use strict";
10
- // Retrieve ResourceBundle for a name that is not a library
11
- return ResourceBundle.create.bind(ResourceBundle, { bundleName: "sap.ui.vbm.i18n.messagebundle"});
10
+ return Library.getResourceBundleFor.bind(Library, "sap.ui.vbm");
12
11
  }, /* bExport= */ true);
@@ -2,8 +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","sap/base/i18n/ResourceBundle","./saputilities"]
6
- , function(vbi, ResourceBundle) {
5
+ sap.ui.define(["./sapvbi","sap/ui/core/Lib","./saputilities"]
6
+ , function(vbi, Library) {
7
7
  "use strict";
8
8
 
9
9
  /* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
@@ -378,7 +378,7 @@ VBI.NavigationControl = function(SuppressedNavControlVisibility) {
378
378
  };
379
379
 
380
380
  nc.AppendDiv = function() {
381
- var oResourceBundle = ResourceBundle.create({ bundleName: "sap.ui.vbm.i18n.messagebundle"});
381
+ var oResourceBundle = Library.getResourceBundleFor("sap.ui.vbm");
382
382
  var sTooltipZoom = oResourceBundle.getText("NAVCTL_TITLE_ZOOM", [0]);
383
383
  sTooltipZoom = sTooltipZoom.substr(0, sTooltipZoom.search(/[0-9]/));
384
384
 
@@ -484,10 +484,8 @@ VBI.Utilities.CreateDetail = function(id, left, top, width, height, titletext, p
484
484
  var close = document.createElement('div');
485
485
  close.setAttribute("role", sap.ui.core.AccessibleRole.Button);
486
486
  close.id = id + "-window-close";
487
- // ensures the library is loaded
488
- Lib.load({ name: "sap.ui.vbm.i18n" });
489
487
  // ResourceBundle can be retrieved
490
- var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm.i18n")
488
+ var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm")
491
489
  close.title = oResourceBundle.getText("WINDOW_CLOSE");
492
490
  close.setAttribute("aria-label", oResourceBundle.getText("WINDOW_CLOSE"));
493
491
 
@@ -571,10 +569,8 @@ VBI.Utilities.CreateLegend = function(id, top, titletext, padding, bClickRow) {
571
569
  // headerFontSize = VBI.Utilities.RemToPixel( 1 );
572
570
 
573
571
  legend.className = "vbi-legend";
574
- // ensures the library is loaded
575
- Lib.load({ name: "sap.ui.vbm.i18n" });
576
572
  // ResourceBundle can be retrieved
577
- var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm.i18n")
573
+ var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm")
578
574
  // create the buttons to collapse/expand the legend .......................//
579
575
  var bt1 = document.createElement('div');
580
576
  bt1.id = id + "-button-collapse";
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @namespace
21
21
  * @alias sap.ui.vbm
22
22
  * @author SAP SE
23
- * @version 1.133.0
23
+ * @version 1.134.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.133.0"
48
+ version: "1.134.0"
49
49
  });
50
50
 
51
51
  sap.ui.loader.config({
@@ -206,7 +206,7 @@ sap.ui.define([
206
206
  };
207
207
 
208
208
  vbmLibrary.getResourceBundle = function() {
209
- var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm.i18n")
209
+ var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm")
210
210
  return oResourceBundle;
211
211
  };
212
212