@openui5/sap.ui.documentation 1.99.0 → 1.99.1

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
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.7
200
+ Component: URI.js, version: 1.19.10
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.99.0",
3
+ "version": "1.99.1",
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,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.99.0",
18
- "@openui5/sap.ui.core": "1.99.0",
19
- "@openui5/sap.ui.layout": "1.99.0",
20
- "@openui5/themelib_sap_belize": "1.99.0",
21
- "@openui5/themelib_sap_fiori_3": "1.99.0"
17
+ "@openui5/sap.m": "1.99.1",
18
+ "@openui5/sap.ui.core": "1.99.1",
19
+ "@openui5/sap.ui.layout": "1.99.1",
20
+ "@openui5/themelib_sap_belize": "1.99.1",
21
+ "@openui5/themelib_sap_fiori_3": "1.99.1"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.99.0</version>
9
+ <version>1.99.1</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  // delegate further initialization of this library to the Core
24
24
  sap.ui.getCore().initLibrary({
25
25
  name : 'sap.ui.documentation',
26
- version: '1.99.0',
26
+ version: '1.99.1',
27
27
  dependencies : ['sap.ui.core','sap.m'],
28
28
  types: [],
29
29
  interfaces: [],
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @namespace
50
50
  * @name sap.ui.documentation
51
51
  * @author SAP SE
52
- * @version 1.99.0
52
+ * @version 1.99.1
53
53
  * @since 1.48
54
54
  * @public
55
55
  */
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval';"/>
6
7
  <title>SAPUI5 Navigation</title>
7
8
  <script>
8
9
 
@@ -10,24 +11,37 @@
10
11
  sSamplePath = new window.URLSearchParams(window.location.search).get('sap-ui-xx-sample-path'),
11
12
  sOrigin = new window.URLSearchParams(window.location.search).get('sap-ui-xx-sample-origin'),
12
13
  sVersion = new window.URLSearchParams(window.location.search).get('sap-ui-xx-sample-version'),
13
-
14
+ sOriginEncoded,
15
+ oBaseTag,
16
+ oScriptTag,
14
17
  oPath = {};
18
+
15
19
  if (!sOrigin || sOrigin == ".") {
16
20
  sOrigin = window.location.origin + (window.location.pathname.includes("testsuite") ? "/testsuite" : "");
17
21
  } else {
18
- sOrigin = sOrigin + sVersion;
22
+ sOrigin = new URL(sOrigin, document.baseURI).pathname + sVersion;
19
23
  }
20
24
 
21
- oPath[sSampleId.replace(/\./g, "/")] = sSamplePath;
22
- oPath["sap/ui/demo/mock"] = sOrigin + "/test-resources/sap/ui/documentation/sdk";
25
+ sOriginEncoded = encodeURI(sOrigin);
26
+
27
+ oPath[sSampleId.replace(/\./g, "/")] = encodeURI(sSamplePath);
28
+ oPath["sap/ui/demo/mock"] = sOriginEncoded + "/test-resources/sap/ui/documentation/sdk";
23
29
  oPath["test-resources/sap/ui/documentation/sdk"] = ".";
24
- oPath["sap/uxap/sample"] = sOrigin + "/test-resources/sap/uxap/demokit/sample";
30
+ oPath["sap/uxap/sample"] = sOriginEncoded + "/test-resources/sap/uxap/demokit/sample";
25
31
 
32
+ oBaseTag = document.createElement("base");
33
+ oBaseTag.setAttribute("href", sOriginEncoded + "/");
34
+ document.head.appendChild(oBaseTag);
26
35
 
36
+ oScriptTag = document.createElement("script");
37
+ oScriptTag.setAttribute("src", sOriginEncoded + "/resources/sap-ui-core.js");
38
+ oScriptTag.setAttribute("id", "sap-ui-bootstrap");
39
+ oScriptTag.setAttribute("data-sap-ui-compatVersion", "edge");
40
+ oScriptTag.dataset.sapUiAsync = true;
41
+ oScriptTag.dataset.sapUiLibs = "sap.m";
42
+ oScriptTag.dataset.sapUiResourceroots = JSON.stringify(oPath);
27
43
 
28
- document.write("<script src=" + sOrigin + '/resources/sap-ui-core.js' + " id='sap-ui-bootstrap' " +
29
- "data-sap-ui-libs='sap.m' data-sap-ui-bindingSyntax='complex' data-sap-ui-compatVersion='edge'></scr" + "ipt>");
30
- document.write("<base href=" + sOrigin + "/>");
44
+ document.write(oScriptTag.outerHTML);
31
45
 
32
46
  </script>
33
47
  </head>