@sapui5/sap.ushell_abap 1.129.0 → 1.130.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 (23) 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/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 +20 -3
  8. package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +1 -1
  9. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
  10. package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +30 -4
  11. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
  12. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.js +1 -1
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
  14. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1 -1
  15. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
  16. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  18. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
  19. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
  20. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +1 -1
  21. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
  22. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
  23. package/src/main/js/sap/ushell_abap/library.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.129.0",
3
+ "version": "1.130.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.129.0</version>
5
+ <version>1.130.0</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.129.0
5
+ * @version 1.130.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.129.0
12
+ * @version 1.130.0
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.129.0
5
+ * @version 1.130.0
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.129.0
5
+ * @version 1.130.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.129.0
5
+ * @version 1.130.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -398,7 +398,7 @@ sap.ui.define([
398
398
  "sap.ushell_abap.adapters.abap.ContainerAdapter");
399
399
  } else {
400
400
  // construct fully qualified logoff URL (potentially adds scheme, authority, origin, sap-client)
401
- var sUrl = oSystem.adjustUrl(S_LOGOFF_URL);
401
+ var sUrl = this._setUrlLanguage(oSystem.adjustUrl(S_LOGOFF_URL));
402
402
 
403
403
  // always logout via hidden iframe; this avoids implicit XHR re-logon in case the
404
404
  // logoff URL triggers a redirect (see BCP 0020079747 0000863255 2015)
@@ -414,7 +414,7 @@ sap.ui.define([
414
414
  * @since 1.19.0
415
415
  */
416
416
  this.logoutRedirect = function () {
417
- var sUrl = oSystem.adjustUrl(S_LOGOFF_URL);
417
+ var sUrl = this._setUrlLanguage(oSystem.adjustUrl(S_LOGOFF_URL));
418
418
  this._setDocumentLocation(sUrl);
419
419
  };
420
420
 
@@ -469,6 +469,23 @@ sap.ui.define([
469
469
  });
470
470
  }
471
471
  };
472
+
473
+ /**
474
+ * Appends the sap-language parameter if defined
475
+ *
476
+ * This ensures that the logout screen is always in the desired language
477
+ *
478
+ * @param {string} sUrl document location
479
+ * @returns {string} the modified Url
480
+ * @private
481
+ */
482
+ this._setUrlLanguage = function (sUrl) {
483
+ const sLanguage = this.getUser().getLanguage();
484
+ if (sLanguage) {
485
+ sUrl += (sUrl.indexOf("?") >= 0 ? "&" : "?") + "sap-language=" + sLanguage;
486
+ }
487
+ return sUrl;
488
+ };
472
489
  };
473
490
 
474
491
  return ContainerAdapter;
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileoverview The Unified Shell's page building adapter for the ABAP platform. Private copy. Classical home page functions are deprecated.
5
5
  * @since 1.121
6
- * @version 1.129.0
6
+ * @version 1.130.0
7
7
  */
8
8
  sap.ui.define([
9
9
  "sap/ui/thirdparty/URI",
@@ -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.129.0
7
+ * @version 1.130.0
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter"
@@ -5,11 +5,20 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ushell/Config",
9
8
  "sap/base/Log",
9
+ "sap/base/util/isPlainObject",
10
+ "sap/ushell/components/pages/controller/PagesAndSpaceId",
11
+ "sap/ushell/Config",
10
12
  "sap/ushell/library",
11
- "sap/ushell/components/pages/controller/PagesAndSpaceId"
12
- ], function (Config, Log, ushellLibrary, PagesAndSpaceId) {
13
+ "sap/ushell/utils"
14
+ ], function (
15
+ Log,
16
+ isPlainObject,
17
+ PagesAndSpaceId,
18
+ Config,
19
+ ushellLibrary,
20
+ ushellUtils
21
+ ) {
13
22
  "use strict";
14
23
 
15
24
  // shortcut for sap.ushell.ContentNodeType
@@ -286,8 +295,25 @@ sap.ui.define([
286
295
  if (!oMetatag) {
287
296
  return [];
288
297
  }
298
+ var sCurrentFormFactor = ushellUtils.getFormFactor();
289
299
  var aMetatagMenu = JSON.parse(oMetatag.getAttribute("content"));
290
- return aMetatagMenu;
300
+
301
+ return aMetatagMenu
302
+ .filter((oSpace) => {
303
+ if (!isPlainObject(oSpace.visibility)) {
304
+ return true;
305
+ }
306
+ return oSpace.visibility[sCurrentFormFactor];
307
+ })
308
+ .map((oSpace) => {
309
+ oSpace.pages = oSpace.pages.filter((oPage) => {
310
+ if (!isPlainObject(oPage.visibility)) {
311
+ return true;
312
+ }
313
+ return oPage.visibility[sCurrentFormFactor];
314
+ });
315
+ return oSpace;
316
+ });
291
317
  };
292
318
 
293
319
  return MenuAdapter;
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the ABAP
9
9
  * platform.
10
10
  *
11
- * @version 1.129.0
11
+ * @version 1.130.0
12
12
  */
13
13
  sap.ui.define([], function () {
14
14
  "use strict";
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the ABAP
9
9
  * platform.
10
10
  *
11
- * @version 1.129.0
11
+ * @version 1.130.0
12
12
  * @since 1.121
13
13
  */
14
14
  sap.ui.define([], function () {
@@ -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.129.0
5
+ * @version 1.130.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.129.0
5
+ * @version 1.130.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/i18n/Localization",
@@ -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.129.0
10
+ * @version 1.130.0
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.129.0
10
+ * @version 1.130.0
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.129.0
5
+ * @version 1.130.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.129.0
5
+ * @version 1.130.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.129.0
5
+ * @version 1.130.0
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -100,7 +100,7 @@ sap.ui.define([
100
100
  OData.read({requestUri: "/sap/opu/odata/UI2/INTEROP/Themes"},
101
101
  (oData) => { // success
102
102
  oDeferred.resolve({
103
- options: oData.results || []
103
+ options: oData?.results || []
104
104
  });
105
105
  },
106
106
  (oError) => { // fail
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.129.0
6
+ * @version 1.130.0
7
7
  */
8
8
  sap.ui.define([
9
9
  "sap/ui/thirdparty/jquery",
@@ -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.129.0
17
+ * @version 1.130.0
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  */
23
23
  var ushellAbapLib = Library.init({
24
24
  name: "sap.ushell_abap",
25
- version: "1.129.0",
25
+ version: "1.130.0",
26
26
  dependencies: ["sap.ui.core", "sap.m"],
27
27
  noLibraryCSS: true,
28
28
  extensions: {