@sapui5/sap.ushell_abap 1.109.2 → 1.110.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/package.json +1 -1
- package/src/main/js/sap/ushell_abap/.library +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +1 -0
- 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/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/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/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 +6 -3
- 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/abap/UserInfoAdapter.js +6 -2
- 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 +0 -13
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.configure.js +84 -0
- package/src/main/js/sap/ushell_abap/bootstrap/evo/{abap.xhr.handler.js → abap.xhrlogon.handler.js} +3 -3
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.load.js +3260 -0
- package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +2 -2
- package/src/main/js/sap/ushell_abap/library.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +6 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +9 -11
- package/ui5.yaml +112 -321
package/package.json
CHANGED
|
@@ -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.
|
|
5
|
+
<version>1.110.0</version>
|
|
6
6
|
<copyright>Copyright (c) 2009-2022 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.
|
|
10
|
+
* @version 1.110.0
|
|
11
11
|
*/
|
|
12
12
|
sap.ui.define([
|
|
13
13
|
"sap/ushell_abap/adapters/abap/AdapterContainer",
|
|
@@ -15,14 +15,16 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
16
16
|
"sap/ushell_abap/pbServices/ui2/ODataService",
|
|
17
17
|
"sap/ushell_abap/pbServices/ui2/Error",
|
|
18
|
-
"sap/base/util/ObjectPath"
|
|
18
|
+
"sap/base/util/ObjectPath",
|
|
19
|
+
"sap/base/Log"
|
|
19
20
|
], function (
|
|
20
21
|
AdapterContainer,
|
|
21
22
|
constants,
|
|
22
23
|
ODataWrapper,
|
|
23
24
|
ODataService,
|
|
24
25
|
SrvcError,
|
|
25
|
-
ObjectPath
|
|
26
|
+
ObjectPath,
|
|
27
|
+
Log
|
|
26
28
|
) {
|
|
27
29
|
"use strict";
|
|
28
30
|
|
|
@@ -43,6 +45,7 @@ sap.ui.define([
|
|
|
43
45
|
* @private
|
|
44
46
|
*/
|
|
45
47
|
var PersonalizationAdapter = function (oSystem, sParameters, oConfig) {
|
|
48
|
+
Log.debug("[000] PersonalizationAdapter: constructor", "PersonalizationAdapter");
|
|
46
49
|
this._oConfig = oConfig && oConfig.config;
|
|
47
50
|
var sPersonalizationServiceURL = (ObjectPath.get("config.services.personalization.baseUrl", oConfig) || "/sap/opu/odata/UI2/INTEROP") + "/";
|
|
48
51
|
var oODataWrapperSettings = {
|
|
@@ -201,6 +201,7 @@ sap.ui.define([
|
|
|
201
201
|
* jQuery.promise object
|
|
202
202
|
*/
|
|
203
203
|
this.updateUserPreferences = function (oUser) {
|
|
204
|
+
Log.debug("[000] updateUserPreferences", "UserInfoAdapter");
|
|
204
205
|
var that = this,
|
|
205
206
|
oDeferred,
|
|
206
207
|
sRelativeUrl,
|
|
@@ -216,15 +217,17 @@ sap.ui.define([
|
|
|
216
217
|
fnFailure = function (sErrorMessage, oParsedErrorInformation) {
|
|
217
218
|
oDeferred.reject(sErrorMessage, oParsedErrorInformation);
|
|
218
219
|
};
|
|
219
|
-
|
|
220
|
+
Log.debug("[000] updateUserPreferences: _createWrapper", "UserInfoAdapter");
|
|
220
221
|
oDataWrapper = this._createWrapper("/sap/opu/odata/UI2/INTEROP/");
|
|
221
222
|
oDeferred = new jQuery.Deferred();
|
|
222
223
|
|
|
223
224
|
// prepare
|
|
225
|
+
Log.debug("[000] updateUserPreferences: oDataWrapper.openBatchQueue", "UserInfoAdapter");
|
|
224
226
|
oDataWrapper.openBatchQueue();
|
|
225
227
|
|
|
226
228
|
// put the preferences to update in the OData batch queue
|
|
227
229
|
aUserChangedProperties = oUser.getChangedProperties() || [];
|
|
230
|
+
Log.debug("[000] updateUserPreferences: getChangedProperties", "UserInfoAdapter");
|
|
228
231
|
iODataRequestsRunning = aUserChangedProperties.length;
|
|
229
232
|
aUserChangedProperties.forEach(function (oUserChangedProperty) {
|
|
230
233
|
var name = oUserChangedProperty.name,
|
|
@@ -246,9 +249,10 @@ sap.ui.define([
|
|
|
246
249
|
};
|
|
247
250
|
//check for the datatype of the value & process oDataObj
|
|
248
251
|
that._updateODataObjectBasedOnDatatype(newValue, oDataObj);
|
|
252
|
+
Log.debug("[000] updateUserPreferences: oDataWrapper: put", "UserInfoAdapter");
|
|
249
253
|
oDataWrapper.put(sRelativeUrl, oDataObj, fnSuccess, fnFailure);
|
|
250
254
|
});
|
|
251
|
-
|
|
255
|
+
Log.debug("[000] updateUserPreferences: submitBatchQueue", "UserInfoAdapter");
|
|
252
256
|
// submit
|
|
253
257
|
oDataWrapper.submitBatchQueue(function () {
|
|
254
258
|
// request accepted but does not mean that the single requests
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
sap.ui.define([
|
|
3
|
-
"sap/base/util/UriParameters",
|
|
4
3
|
"sap/base/Log",
|
|
5
4
|
"./boottask",
|
|
6
5
|
"sap/ui/core/Configuration",
|
|
@@ -16,7 +15,6 @@ sap.ui.define([
|
|
|
16
15
|
"sap/ushell_abap/pbServices/ui2/contracts/actions",
|
|
17
16
|
"sap/ushell_abap/pbServices/ui2/contracts/types"
|
|
18
17
|
], function (
|
|
19
|
-
UriParameters,
|
|
20
18
|
Log,
|
|
21
19
|
Boottask,
|
|
22
20
|
Configuration
|
|
@@ -38,8 +36,6 @@ sap.ui.define([
|
|
|
38
36
|
return function () {
|
|
39
37
|
// check if framing control of ui5 should be active (meta tag set)
|
|
40
38
|
var oFramingControl = window["sap-ushell-framing-control"];
|
|
41
|
-
var oUriParameters = UriParameters.fromQuery(window.location.search);
|
|
42
|
-
var terminationKey = oUriParameters.get("SAPSessionCmd") || oUriParameters.get("sap-sessioncmd");
|
|
43
39
|
|
|
44
40
|
if (oFramingControl && oFramingControl.verifyUi5ProtectionActive) {
|
|
45
41
|
var sUi5FrameOptions = (typeof Configuration.getFrameOptions === "function") && Configuration.getFrameOptions();
|
|
@@ -55,15 +51,6 @@ sap.ui.define([
|
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
// check if this is a DSM terminate session (which comes from EP)
|
|
59
|
-
if (terminationKey === "USR_LOGOFF") {
|
|
60
|
-
// DSM notification for user log off - call the Container logoff API
|
|
61
|
-
sap.ushell.Container.logout();
|
|
62
|
-
return;
|
|
63
|
-
} else if (terminationKey === "USR_ABORT") {
|
|
64
|
-
// DSM notification for user aborted
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
54
|
sap.ui.require(["sap/ushell/iconfonts"], function (IconFonts) {
|
|
68
55
|
window.sap.ushell.Container.createRenderer("fiori2", true).then(
|
|
69
56
|
function (oContent) {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
|
+
sap.ui.define([
|
|
3
|
+
"sap/ushell/bootstrap/common/common.util",
|
|
4
|
+
"sap/base/Log"
|
|
5
|
+
], function (oUtils, Log) {
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
var oModule = {
|
|
9
|
+
start: start,
|
|
10
|
+
initXhrLogonIgnoreList: initXhrLogonIgnoreList,
|
|
11
|
+
createUi5ConnectedXhrLogger: createUi5ConnectedXhrLogger
|
|
12
|
+
};
|
|
13
|
+
return oModule;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Creates a logger for XMLHttpRequest(s) that logs errors, warnings, info
|
|
17
|
+
* and debug messages via Log.
|
|
18
|
+
*
|
|
19
|
+
* @return {object}
|
|
20
|
+
* A logger that can be assigned to XMLHttpRequest.
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
function createUi5ConnectedXhrLogger () {
|
|
25
|
+
return ["error", "warning", "info", "debug"].reduce(function (oXhrLogger, sLevel) {
|
|
26
|
+
oXhrLogger[sLevel] = function (sMsg) {
|
|
27
|
+
return Log[sLevel](sMsg);
|
|
28
|
+
};
|
|
29
|
+
return oXhrLogger;
|
|
30
|
+
}, {});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the ignore list of the XHR logon manager.
|
|
35
|
+
* <p>
|
|
36
|
+
* If the UI5 resources (including the own bootstrap script) are loaded from an absolute URL
|
|
37
|
+
* (in case CDN is activated),
|
|
38
|
+
* this URL is added to the ignore list to prevent CORS preflight requests due to the X headers.
|
|
39
|
+
* We expect that all resources can be loaded without authentication in this case.
|
|
40
|
+
*
|
|
41
|
+
* @param {object} oXHRLogonManager
|
|
42
|
+
* the logon frame manager instance to use
|
|
43
|
+
*
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
function initXhrLogonIgnoreList (oXHRLogonManager) {
|
|
47
|
+
var sOrigin = oUtils.getLocationOrigin(),
|
|
48
|
+
sUi5ResourceRootUrl = sap.ui.require.toUrl("");
|
|
49
|
+
|
|
50
|
+
// add "/" to origin, as otherwise the following use case will match:
|
|
51
|
+
// sUi5ResourceRootUrl: http://sap.com:123
|
|
52
|
+
// sOrigin: http://sap.com
|
|
53
|
+
if (sUi5ResourceRootUrl && sUi5ResourceRootUrl.indexOf(sOrigin + "/") === -1) {
|
|
54
|
+
// In case UI5 is loaded from a different domain (CDN / AKAMAI), that URL
|
|
55
|
+
// needs to be ignored for the XHR logon, as we expect that the resources
|
|
56
|
+
// are not protected.
|
|
57
|
+
oXHRLogonManager.ignore.add(sUi5ResourceRootUrl);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Enables the handling of the XHR Logon in the FLP.
|
|
63
|
+
* Note: using sap.ui.require.toUrl for initXhrLogonIgnoreList as it
|
|
64
|
+
* will be loaded in CDM (compare to ABAP, where this is not the case)
|
|
65
|
+
*
|
|
66
|
+
* @param {object} oSapUshellContainer
|
|
67
|
+
* The active <code>sap.ushell.Container</code> instance to configure
|
|
68
|
+
* the logon manager into.
|
|
69
|
+
*
|
|
70
|
+
* @param {object} oXhrLogonLib XHR logon lib.
|
|
71
|
+
*
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
function start (oSapUshellContainer, oXhrLogonLib) {
|
|
75
|
+
oXhrLogonLib.start();
|
|
76
|
+
|
|
77
|
+
oModule.initXhrLogonIgnoreList(oXhrLogonLib.XHRLogonManager.getInstance());
|
|
78
|
+
|
|
79
|
+
// configure logger
|
|
80
|
+
XMLHttpRequest.logger = createUi5ConnectedXhrLogger();
|
|
81
|
+
|
|
82
|
+
oSapUshellContainer.oFrameLogonManager = oXhrLogonLib.FrameLogonManager.getInstance();
|
|
83
|
+
}
|
|
84
|
+
});
|
package/src/main/js/sap/ushell_abap/bootstrap/evo/{abap.xhr.handler.js → abap.xhrlogon.handler.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
sap.ui.define([
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"./abap.xhrlogon.load",
|
|
4
|
+
"./abap.xhrlogon.configure",
|
|
5
5
|
"./abap.bootstrap.utils",
|
|
6
6
|
"./XhrLogonEventHandler",
|
|
7
7
|
"sap/base/Log"
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
});
|
|
54
54
|
} else if (sLogonMode !== "frame") {
|
|
55
55
|
Log.warning("Unknown setting for xhrLogonMode: '" + sLogonMode + "'. Using default mode 'frame'.",
|
|
56
|
-
null, "sap.ushell_abap.bootstrap.evo.abap.
|
|
56
|
+
null, "sap.ushell_abap.bootstrap.evo.abap.xhrlogon.handler");
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
XMLHttpRequest.logger = oConfigureXhrLogon.createUi5ConnectedXhrLogger();
|