@openui5/sap.ui.documentation 1.120.21 → 1.120.22

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": "@openui5/sap.ui.documentation",
3
- "version": "1.120.21",
3
+ "version": "1.120.22",
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.120.21",
18
- "@openui5/sap.ui.core": "1.120.21",
19
- "@openui5/sap.ui.layout": "1.120.21",
20
- "@openui5/themelib_sap_belize": "1.120.21",
21
- "@openui5/themelib_sap_fiori_3": "1.120.21",
22
- "@openui5/themelib_sap_horizon": "1.120.21"
17
+ "@openui5/sap.m": "1.120.22",
18
+ "@openui5/sap.ui.core": "1.120.22",
19
+ "@openui5/sap.ui.layout": "1.120.22",
20
+ "@openui5/themelib_sap_belize": "1.120.22",
21
+ "@openui5/themelib_sap_fiori_3": "1.120.22",
22
+ "@openui5/themelib_sap_horizon": "1.120.22"
23
23
  }
24
24
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.120.21</version>
9
+ <version>1.120.22</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.120.21
28
+ * @version 1.120.22
29
29
  * @since 1.48
30
30
  * @public
31
31
  */
32
32
  var thisLibrary = Core.initLibrary({
33
33
  name : 'sap.ui.documentation',
34
- version: '1.120.21',
34
+ version: '1.120.22',
35
35
  dependencies : ['sap.ui.core','sap.m'],
36
36
  types: [],
37
37
  interfaces: [],
@@ -4,7 +4,8 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval';"/>
7
- <script type="text/javascript" src="index.js"></script>
7
+ <base href="../../../../../">
8
+ <script type="text/javascript" src="resources/sap/ui/documentation/sdk/index.js"></script>
8
9
  <title>SAPUI5 Navigation</title>
9
10
  </head>
10
11
  <body class="sapUiBody sapUiSizeCompact" id="content">
@@ -11,7 +11,6 @@
11
11
  },
12
12
 
13
13
  sSampleId = getUrlParam('sap-ui-xx-sample-id'),
14
- sOrigin = getUrlParam('sap-ui-xx-sample-origin'),
15
14
  sLib = getUrlParam('sap-ui-xx-sample-lib'),
16
15
  sPresetTheme = getUrlParam('sap-ui-theme') || 'sap_fiori_3',
17
16
  sPresetRTL = getUrlParam('sap-ui-rtl') || false,
@@ -212,24 +211,11 @@
212
211
  });
213
212
  };
214
213
 
215
- if (sOrigin === "" || sOrigin === ".") {
216
- var sHref = document.location.href;
217
- sOrigin = sHref.substring(0, sHref.lastIndexOf('resources/sap/ui/documentation/sdk/') - 1);
218
- } else {
219
- sOrigin = new URL(sOrigin, document.baseURI).pathname;
220
- }
221
-
222
- var sOriginEncoded = encodeURI(sOrigin);
223
-
224
- oPath["sap/ui/demo/mock"] = sOriginEncoded + "/test-resources/sap/ui/documentation/sdk";
214
+ oPath["sap/ui/demo/mock"] = "test-resources/sap/ui/documentation/sdk";
225
215
  oPath["test-resources/sap/ui/documentation/sdk"] = ".";
226
216
 
227
- var oBaseTag = document.createElement("base");
228
- oBaseTag.setAttribute("href", sOriginEncoded + "/");
229
- document.head.appendChild(oBaseTag);
230
-
231
217
  var oScriptTag = document.createElement("script");
232
- oScriptTag.setAttribute("src", sOriginEncoded + "/resources/sap-ui-core.js");
218
+ oScriptTag.setAttribute("src", "resources/sap-ui-core.js");
233
219
  oScriptTag.setAttribute("id", "sap-ui-bootstrap");
234
220
  oScriptTag.dataset.sapUiLibs = "sap.m";
235
221
  oScriptTag.dataset.sapUiAsync = true;