@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.
Files changed (28) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ushell_abap/.library +1 -1
  3. package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +1 -0
  4. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +1 -1
  5. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.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 +6 -3
  13. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  14. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
  15. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
  16. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +6 -2
  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 +0 -13
  20. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.configure.js +84 -0
  21. package/src/main/js/sap/ushell_abap/bootstrap/evo/{abap.xhr.handler.js → abap.xhrlogon.handler.js} +3 -3
  22. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.load.js +3260 -0
  23. package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +2 -2
  24. package/src/main/js/sap/ushell_abap/library.js +2 -2
  25. package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +1 -1
  26. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +6 -0
  27. package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +9 -11
  28. package/ui5.yaml +112 -321
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.109.2",
3
+ "version": "1.110.0",
4
4
  "description": "SAPUI5 Library sap.ushell_abap",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "keywords": [
@@ -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.109.2</version>
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
 
@@ -103,6 +103,7 @@ sap.ui.define([
103
103
  };
104
104
 
105
105
  AdapterContainer.prototype.save = function () {
106
+ Log.debug("[000] save", "AdapterContainer");
106
107
  var oDeferred = new jQuery.Deferred(),
107
108
  that = this,
108
109
  oDataWrapper = this._obtainODataWrapper(),
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.109.2
5
+ * @version 1.110.0
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.109.2
12
+ * @version 1.110.0
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/ui/thirdparty/jquery",
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.109.2
5
+ * @version 1.110.0
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.109.2
5
+ * @version 1.110.0
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.109.2
7
+ * @version 1.110.0
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.109.2
11
+ * @version 1.110.0
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.109.2
5
+ * @version 1.110.0
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.109.2
5
+ * @version 1.110.0
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.109.2
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 = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Search adapter for the ABAP platform.
5
- * @version 1.109.2
5
+ * @version 1.110.0
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.109.2
5
+ * @version 1.110.0
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.109.2
5
+ * @version 1.110.0
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.109.2
6
+ * @version 1.110.0
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.109.2
17
+ * @version 1.110.0
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -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
+ });
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
  sap.ui.define([
3
- "sap/ushell/bootstrap/common/common.load.xhrlogon",
4
- "sap/ushell/bootstrap/common/common.configure.xhrlogon",
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.xhr.handler");
56
+ null, "sap.ushell_abap.bootstrap.evo.abap.xhrlogon.handler");
57
57
  }
58
58
 
59
59
  XMLHttpRequest.logger = oConfigureXhrLogon.createUi5ConnectedXhrLogger();