@sapui5/sap.ushell_abap 1.120.48 → 1.120.49

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.
Files changed (21) hide show
  1. package/package.json +4 -4
  2. package/src/main/js/sap/ushell_abap/.library +1 -1
  3. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +1 -1
  4. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +1 -1
  5. package/src/main/js/sap/ushell_abap/adapters/abap/CommonDataModelAdapter.js +1 -1
  6. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +1 -1
  8. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
  9. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
  10. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
  11. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1 -1
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
  14. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  15. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
  16. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
  18. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
  19. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +7 -2
  20. package/src/main/js/sap/ushell_abap/integration/WebSsoBridge.js +65 -0
  21. package/src/main/js/sap/ushell_abap/library.js +2 -2
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.120.48",
3
+ "version": "1.120.49",
4
4
  "description": "SAPUI5 Library sap.ushell_abap",
5
+ "author": "SAP SE (https://www.sap.com)",
6
+ "license": "SEE LICENSE IN LICENSE.txt",
5
7
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
8
  "keywords": [
7
9
  "sapui5",
8
10
  "ui5"
9
11
  ],
10
- "author": "SAP SE (https://www.sap.com)",
11
- "license": "SEE LICENSE IN LICENSE.txt",
12
12
  "scripts": {
13
13
  "build": "cross-env-shell ui5 build --exclude-task=generateLibraryPreload --framework-version $npm_package_version",
14
14
  "build-all": "cross-env-shell ui5 build --all --framework-version $npm_package_version",
15
15
  "build-themes": "cross-env-shell ui5 build --exclude-task=* --include-task=buildThemes --framework-version $npm_package_version"
16
16
  },
17
17
  "devDependencies": {
18
- "@ui5/cli": "^3.2.0",
18
+ "@ui5/cli": "^3.11.13",
19
19
  "cross-env": "^7.0.3"
20
20
  }
21
21
  }
@@ -2,7 +2,7 @@
2
2
  <library xmlns="http://www.sap.com/sap.ui.library.xsd">
3
3
  <name>sap.ushell_abap</name>
4
4
  <vendor>SAP SE</vendor>
5
- <version>1.120.48</version>
5
+ <version>1.120.49</version>
6
6
  <copyright>Copyright (c) 2009-2023 SAP SE, All Rights Reserved</copyright>
7
7
  <documentation>SAP library: sap.ushell_abap</documentation>
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -9,7 +9,7 @@
9
9
  * <li>provide the resolveHashFragmentFallback function, a fallback method called by ClientSideTargetResolution service.</li>
10
10
  * </ul>
11
11
  *
12
- * @version 1.120.48
12
+ * @version 1.120.49
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/ui/thirdparty/jquery",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's CommonDataModelAdapter for the ABAP platform, it is used to avoid 404 when no adapter is found
4
4
  *
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ushell_abap/bootstrap/evo/abap.constants",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's container adapter for the ABAP platform.
4
4
  *
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -4,7 +4,7 @@
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
5
  *
6
6
  * @deprecated since 1.100
7
- * @version 1.120.48
7
+ * @version 1.120.49
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/ui/thirdparty/URI",
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the ABAP
9
9
  * platform.
10
10
  *
11
- * @version 1.120.48
11
+ * @version 1.120.49
12
12
  */
13
13
  sap.ui.define([], function () {
14
14
  "use strict";
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview PagePersistenceAdapter for the ABAP platform.
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -7,7 +7,7 @@
7
7
  * Container header properties transported via pseudo-items are mapped to the
8
8
  * respective header properties in setItem/getItem/delItem
9
9
  *
10
- * @version 1.120.48
10
+ * @version 1.120.49
11
11
  */
12
12
  sap.ui.define([
13
13
  "sap/ushell_abap/adapters/abap/AdapterContainer",
@@ -7,7 +7,7 @@
7
7
  * Container header properties transported via pseudo-items are mapped to the
8
8
  * respective header properties in setItem/getItem/delItem
9
9
  *
10
- * @version 1.120.48
10
+ * @version 1.120.49
11
11
  */
12
12
  sap.ui.define([
13
13
  "./PersonalizationAdapter"
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Search adapter for the ABAP platform.
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([], function () {
8
8
  "use strict";
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The SupportTicket adapter for the ABAP platform.
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/isEmptyObject",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's Ui5ComponentLoaderAdapter for the ABAP platform
4
4
  *
5
- * @version 1.120.48
5
+ * @version 1.120.49
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.120.48
6
+ * @version 1.120.49
7
7
  */
8
8
  /**
9
9
  * @namespace Default namespace for Unified Shell adapters for the HANA platform. They can usually
@@ -14,7 +14,7 @@
14
14
  * It furthermore calculates if FLP pages get activated and if needed sets up
15
15
  * the configuration environment to run these.
16
16
  *
17
- * @version 1.120.48
17
+ * @version 1.120.49
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -32,8 +32,9 @@ sap.ui.define([
32
32
  return function () {
33
33
  sap.ui.require([
34
34
  "sap/ushell/iconfonts",
35
- "sap/ushell/Config"
36
- ], function (IconFonts, Config) {
35
+ "sap/ushell/Config",
36
+ "sap/ushell_abap/integration/WebSsoBridge"
37
+ ], function (IconFonts, Config, WebSsoBridge) {
37
38
  window.sap.ushell.Container.createRendererInternal("fiori2").then(function (oContent) {
38
39
  oContent.placeAt("canvas", "only");
39
40
  var oSystem = sap.ushell.Container.getLogonSystem();
@@ -58,9 +59,13 @@ sap.ui.define([
58
59
  color: oSystem.getSysInfoBarColor()
59
60
  }).placeAt("systemInfo-shellArea");
60
61
  });
62
+
63
+ WebSsoBridge.init();
61
64
  });
65
+
62
66
  IconFonts.registerFiori2IconFont();
63
67
  });
68
+
64
69
  Boottask.afterBootstrap();
65
70
  };
66
71
  });
@@ -0,0 +1,65 @@
1
+ // Copyright (c) 2009-2023 SAP SE, All Rights Reserved
2
+
3
+ sap.ui.define([
4
+ "sap/ushell/Container",
5
+ "sap/base/Log"
6
+ ], (
7
+ Container,
8
+ Log
9
+ ) => {
10
+ "use strict";
11
+
12
+ /**
13
+ * @alias sap.ushell_abap.integration.WebSsoBridge
14
+ * @namespace
15
+ * @description ushell API for WebSSO Process, used by Joule Plug-In in S/4 HANA Private Cloud scenarios.
16
+ *
17
+ * @since 1.136.18
18
+ * @private
19
+ */
20
+ class WebSsoBridge {
21
+ async init () {
22
+ try {
23
+ const oMessageBrokerService = await Container.getServiceAsync("MessageBroker");
24
+
25
+ // Ensure that client ID is free and can be used - by disconnecting first (mainly relevant for tests)
26
+ try {
27
+ await oMessageBrokerService.disconnect("WebSsoBridge");
28
+ } catch { /* when "disconnect" fails, it hasn't been connected before... Which is a valid scenario. Therefore, nothing is done here. */ }
29
+
30
+ await oMessageBrokerService.connect("WebSsoBridge");
31
+
32
+ await oMessageBrokerService.subscribe(
33
+ "WebSsoBridge",
34
+ [{ channelId: "com.sap.joule.flp.websso" }],
35
+ async (sSenderId, sChannelId, sMessageName, oReqData) => {
36
+ let oData;
37
+ try {
38
+ const response = await fetch(`${location.origin + location.pathname}/websso/url`);
39
+ if (response.status >= 200 && response.status < 300) {
40
+ oData = await response.json();
41
+ oData.status = "success";
42
+ }
43
+ } catch (oError) {
44
+ Log.error(`Retrieving WebSSO URL from ABAP backend failed. Error: ${oError}`, "sap.ushell_abap.integration.WebSsoBridge");
45
+ }
46
+
47
+ if (oData === undefined) {
48
+ oData = {
49
+ status: "error"
50
+ };
51
+ }
52
+
53
+ oData.correlationId = oReqData.correlationId;
54
+
55
+ await oMessageBrokerService.publish("com.sap.joule.flp.websso", "WebSsoBridge", (new Date()).getTime(), "UrlResponse", [sSenderId], oData);
56
+ },
57
+ () => { /* No generic handling needed. */ }
58
+ );
59
+ } catch (oGlobalError) {
60
+ Log.error(`Init of WebSSO Bridge failed. Error: ${oGlobalError}`, "sap.ushell_abap.integration.WebSsoBridge");
61
+ }
62
+ }
63
+ }
64
+ return new WebSsoBridge();
65
+ });
@@ -16,13 +16,13 @@ sap.ui.define([
16
16
  * @namespace
17
17
  * @name sap.ushell_abap
18
18
  * @author SAP SE
19
- * @version 1.120.48
19
+ * @version 1.120.49
20
20
  * @private
21
21
  * @ui5-restricted
22
22
  */
23
23
  var ushellAbapLib = sap.ui.getCore().initLibrary({
24
24
  name: "sap.ushell_abap",
25
- version: "1.120.48",
25
+ version: "1.120.49",
26
26
  dependencies: ["sap.ui.core", "sap.m"],
27
27
  noLibraryCSS: true
28
28
  });