@sapui5/sap.ushell_abap 1.136.17 → 1.136.19
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 +4 -4
- package/src/main/js/sap/ushell_abap/.library +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/CommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +6 -2
- package/src/main/js/sap/ushell_abap/integration/WebSsoBridge.js +57 -0
- package/src/main/js/sap/ushell_abap/library.js +2 -9
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapui5/sap.ushell_abap",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.19",
|
|
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.
|
|
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.136.
|
|
5
|
+
<version>1.136.19</version>
|
|
6
6
|
<copyright>Copyright (c) 2009-2026 SAP SE, All Rights Reserved</copyright>
|
|
7
7
|
<documentation>SAP library: sap.ushell_abap</documentation>
|
|
8
8
|
|
|
@@ -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.136.
|
|
10
|
+
* @version 1.136.19
|
|
11
11
|
*/
|
|
12
12
|
sap.ui.define([
|
|
13
13
|
"sap/ushell_abap/adapters/abap/AdapterContainer",
|
|
@@ -31,11 +31,13 @@ sap.ui.define([
|
|
|
31
31
|
sap.ui.require([
|
|
32
32
|
"sap/ushell/Container",
|
|
33
33
|
"sap/ushell/iconfonts",
|
|
34
|
-
"sap/ushell/state/StateManager"
|
|
34
|
+
"sap/ushell/state/StateManager",
|
|
35
|
+
"sap/ushell_abap/integration/WebSsoBridge"
|
|
35
36
|
], function (
|
|
36
37
|
Container,
|
|
37
38
|
IconFonts,
|
|
38
|
-
StateManager
|
|
39
|
+
StateManager,
|
|
40
|
+
WebSsoBridge
|
|
39
41
|
) {
|
|
40
42
|
|
|
41
43
|
// shortcut for sap.ushell.state.StateManager.ShellMode
|
|
@@ -65,6 +67,8 @@ sap.ui.define([
|
|
|
65
67
|
color: oSystem.getSysInfoBarColor()
|
|
66
68
|
}).placeAt("systemInfo-shellArea");
|
|
67
69
|
});
|
|
70
|
+
|
|
71
|
+
WebSsoBridge.init();
|
|
68
72
|
});
|
|
69
73
|
IconFonts.registerFiori2IconFont();
|
|
70
74
|
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Copyright (c) 2009-2026 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", () => { /* No generic handling needed. */ });
|
|
31
|
+
|
|
32
|
+
await oMessageBrokerService.subscribe("WebSsoBridge", [{ channelId: "com.sap.joule.flp.websso" }], async (sSenderId, sChannelId, sMessageName) => {
|
|
33
|
+
let oData;
|
|
34
|
+
try {
|
|
35
|
+
const response = await fetch(`${location.origin + location.pathname}/websso/url`);
|
|
36
|
+
if (response.status >= 200 && response.status < 300) {
|
|
37
|
+
oData = await response.json();
|
|
38
|
+
oData.status = "success";
|
|
39
|
+
}
|
|
40
|
+
} catch (oError) {
|
|
41
|
+
Log.error(`Retrieving WebSSO URL from ABAP backend failed. Error: ${oError}`, "sap.ushell_abap.integration.WebSsoBridge");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (oData === undefined) {
|
|
45
|
+
oData = {
|
|
46
|
+
status: "error"
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
await oMessageBrokerService.publish("com.sap.joule.flp.websso", "WebSsoBridge", "UrlResponse", "*", oData);
|
|
50
|
+
});
|
|
51
|
+
} catch (oGlobalError) {
|
|
52
|
+
Log.error(`Init of WebSSO Bridge failed. Error: ${oGlobalError}`, "sap.ushell_abap.integration.WebSsoBridge");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return new WebSsoBridge();
|
|
57
|
+
});
|
|
@@ -23,16 +23,9 @@ sap.ui.define([
|
|
|
23
23
|
var ushellAbapLib = Library.init({
|
|
24
24
|
name: "sap.ushell_abap",
|
|
25
25
|
apiVersion: 2,
|
|
26
|
-
version: "1.136.
|
|
26
|
+
version: "1.136.19",
|
|
27
27
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
28
|
-
noLibraryCSS: true
|
|
29
|
-
extensions: {
|
|
30
|
-
"sap.ui.support": {
|
|
31
|
-
diagnosticPlugins: [
|
|
32
|
-
"sap/ushell_abap/support/plugins/app-infra/AppInfraOnSapNetWeaverSupportPlugin"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
28
|
+
noLibraryCSS: true
|
|
36
29
|
});
|
|
37
30
|
|
|
38
31
|
return ushellAbapLib;
|