@openui5/sap.ui.documentation 1.112.2 → 1.113.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/THIRDPARTY.txt CHANGED
@@ -478,7 +478,7 @@ License: Apache-2.0
478
478
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
479
479
  Contained in: lib/jsdoc/ui5/plugin.js
480
480
 
481
- Component: SAP Theming Base Content, version: 11.1.48
481
+ Component: SAP Theming Base Content, version: 11.2.1
482
482
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
483
483
  License: Apache-2.0
484
484
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.112.2",
3
+ "version": "1.113.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.documentation",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,11 +14,11 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.112.2",
18
- "@openui5/sap.ui.core": "1.112.2",
19
- "@openui5/sap.ui.layout": "1.112.2",
20
- "@openui5/themelib_sap_belize": "1.112.2",
21
- "@openui5/themelib_sap_fiori_3": "1.112.2",
22
- "@openui5/themelib_sap_horizon": "1.112.2"
17
+ "@openui5/sap.m": "1.113.0",
18
+ "@openui5/sap.ui.core": "1.113.0",
19
+ "@openui5/sap.ui.layout": "1.113.0",
20
+ "@openui5/themelib_sap_belize": "1.113.0",
21
+ "@openui5/themelib_sap_fiori_3": "1.113.0",
22
+ "@openui5/themelib_sap_horizon": "1.113.0"
23
23
  }
24
24
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.112.2</version>
9
+ <version>1.113.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -25,13 +25,13 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.ui.documentation
27
27
  * @author SAP SE
28
- * @version 1.112.2
28
+ * @version 1.113.0
29
29
  * @since 1.48
30
30
  * @public
31
31
  */
32
32
  var thisLibrary = sap.ui.getCore().initLibrary({
33
33
  name : 'sap.ui.documentation',
34
- version: '1.112.2',
34
+ version: '1.113.0',
35
35
  dependencies : ['sap.ui.core','sap.m'],
36
36
  types: [],
37
37
  interfaces: [],
@@ -209,6 +209,8 @@ sap.ui.define([
209
209
 
210
210
  this.oRouter = this.getRouter();
211
211
 
212
+ this._aNeoAppVersions = [];
213
+
212
214
  this._selectHeader = this._oView.byId("selectHeader");
213
215
  this._tabHeader = this._oView.byId("tabHeader");
214
216
 
@@ -78,39 +78,39 @@
78
78
  });
79
79
  };
80
80
 
81
- loadInfo().then(function(){
81
+ // the fl lib has to be loaded before the Component gets created
82
+ Promise.all([
83
+ loadInfo(),
84
+ sap.ui.getCore().loadLibrary("sap.ui.fl", {async: true}),
85
+ sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true})
86
+ ]).then(function(){
82
87
 
83
88
  Log.info("Samples paths added successfully");
84
89
  var sCompId = 'sampleComp-' + sSampleId;
85
90
  var sCompName = sSampleId;
86
91
 
87
- Promise.all([
88
- sap.ui.getCore().loadLibrary("sap.ui.fl", {async: true}),
89
- sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true})
90
- ]).then(function () {
91
- sap.ui.require([
92
- "sap/ui/fl/Utils",
93
- "sap/ui/fl/FakeLrepConnectorLocalStorage",
94
- "sap/ui/core/util/reflection/JsControlTreeModifier"
95
- ], function(Utils,
96
- FakeLrepConnectorLocalStorage,
97
- JsControlTreeModifier) {
98
- // fake stable IDs
99
- JsControlTreeModifier.checkControlId = function () {
100
- return true;
101
- };
102
- Utils.checkControlId = function() {
103
- return true;
104
- };
105
- FakeLrepConnectorLocalStorage.enableFakeConnector({
106
- "isProductiveSystem": true
107
- });
108
- postMessageToOrigin({
109
- type: "RTA",
110
- data: {
111
- "msg": "RTA is loaded"
112
- }
113
- });
92
+ sap.ui.require([
93
+ "sap/ui/fl/Utils",
94
+ "sap/ui/core/util/reflection/JsControlTreeModifier"
95
+ ], function(
96
+ Utils,
97
+ JsControlTreeModifier
98
+ ) {
99
+ // fake stable IDs and app component
100
+ JsControlTreeModifier.checkControlId = function () {
101
+ return true;
102
+ };
103
+ Utils.checkControlId = function() {
104
+ return true;
105
+ };
106
+ Utils.isApplication = function() {
107
+ return true;
108
+ };
109
+ postMessageToOrigin({
110
+ type: "RTA",
111
+ data: {
112
+ "msg": "RTA is loaded"
113
+ }
114
114
  });
115
115
  });
116
116
 
@@ -118,11 +118,11 @@
118
118
  id: sCompId,
119
119
  name: sCompName
120
120
  }).then(function (oComponent) {
121
+ var oConfig = oComponent.getManifestEntry("/sap.ui5/config");
121
122
 
122
123
  var oContainer = new ComponentContainer({component : oComponent, height: "100%"})
123
124
  .placeAt("content");
124
125
 
125
- var oConfig = oComponent.getMetadata().getConfig();
126
126
  var bOpenStandalone = new URLSearchParams(window.location.search).has("dk-sample-standalone");
127
127
  // if dk-sample-standalone is used,
128
128
  // display message for samples with own index.html
@@ -146,7 +146,7 @@
146
146
  "msg": "fired after component container is placed in DOM"
147
147
  };
148
148
 
149
- oMessage.config = oComponent.getMetadata().getConfig();
149
+ oMessage.config = oConfig;
150
150
  postMessageToOrigin(oMessage);
151
151
  window.addEventListener("message", function(eMessage){
152
152
  if (eMessage.data.type === "EXIT") {
@@ -239,6 +239,7 @@
239
239
  oScriptTag.dataset.sapUiCompatversion = "edge";
240
240
  oScriptTag.dataset.sapUiOninit = "onInit";
241
241
  oScriptTag.dataset.sapUiBindingsyntax = "complex";
242
+ oScriptTag.dataset.sapUiFlexibilityservices = '[{"connector": "LocalStorageConnector"}]';
242
243
 
243
244
  document.write(oScriptTag.outerHTML);
244
245
 
@@ -47,6 +47,17 @@ sap.ui.define([
47
47
  }, this);
48
48
  },
49
49
 
50
+ /**
51
+ * Helper function which removes non-standard characters from a URL (see BCP: 2380008679)
52
+ *
53
+ * @param {string} sURL string to be reworked
54
+ * @returns {string} The reworked URL as string or the sURL itself if it's invalid
55
+ * @private
56
+ */
57
+ _removeNonStandardEncoding: function (sURL) {
58
+ return typeof sURL === 'string' ? sURL.replace(/[\[\]']+/g,'') : sURL;
59
+ },
60
+
50
61
  _onOldEntityRouteMatched: function(oEvent) {
51
62
  this.navTo("entity", {
52
63
  id: oEvent.getParameter("arguments").id
@@ -251,6 +262,11 @@ sap.ui.define([
251
262
 
252
263
  sTarget = getHref(oAnchorElement);
253
264
 
265
+ /*eslint-disable no-script-url */
266
+ if (sTarget === "javascript:void(0)") {
267
+ return;
268
+ }
269
+
254
270
  bParsed = /^blob:/.test(sTarget)
255
271
  || /^https?:\/\//.test(sTarget)
256
272
  || /^test-resources\//.test(sTarget)
@@ -280,8 +296,7 @@ sap.ui.define([
280
296
  sPath = sPath.replace("#", "%23");
281
297
  }
282
298
 
283
- // remove non-standard URL encoding
284
- sPath = sPath.replace(/[\[\]']+/g,''); // removing unwanted brackets from URL BCP: 2380008679
299
+ sPath = this._removeNonStandardEncoding(sPath);
285
300
 
286
301
  this.parse(sPath);
287
302
 
@@ -303,7 +318,7 @@ sap.ui.define([
303
318
  oUri;
304
319
 
305
320
  if (oAnchorElement) {
306
- sTargetHref = getHref(oAnchorElement);
321
+ sTargetHref = this._removeNonStandardEncoding(getHref(oAnchorElement));
307
322
  bNewWindow = bCtrlHold || !getSameWindow(oAnchorElement);
308
323
  }
309
324