@sapui5/sap.ushell_abap 1.114.0 → 1.115.1

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 (22) 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 -1
  4. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +2 -2
  5. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +2 -2
  6. package/src/main/js/sap/ushell_abap/adapters/abap/CommonDataModelAdapter.js +12 -0
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +2 -2
  8. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +2 -2
  9. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +2 -2
  10. package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +1 -1
  11. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +4 -9
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +2 -2
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +2 -2
  14. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +2 -3
  15. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +3 -10
  16. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +23 -27
  17. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +3 -6
  18. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +1 -1
  19. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
  20. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
  21. package/src/main/js/sap/ushell_abap/integration/fileshares/AppRuntimeFileShareSupport.js +20 -7
  22. package/src/main/js/sap/ushell_abap/library.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.114.0",
3
+ "version": "1.115.1",
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.114.0</version>
5
+ <version>1.115.1</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
 
@@ -372,4 +372,4 @@ sap.ui.define([
372
372
  };
373
373
 
374
374
  return AdapterContainer;
375
- }, true /* bExport */);
375
+ });
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -122,4 +122,4 @@ sap.ui.define([
122
122
  };
123
123
 
124
124
  return AppStateAdapter;
125
- }, true /* bExport */);
125
+ });
@@ -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.114.0
12
+ * @version 1.115.1
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/ui/thirdparty/jquery",
@@ -1557,4 +1557,4 @@ sap.ui.define([
1557
1557
  };
1558
1558
 
1559
1559
  return ClientSideTargetResolutionAdapter;
1560
- }, true /* bExport */);
1560
+ });
@@ -0,0 +1,12 @@
1
+ // Copyright (c) 2009-2023 SAP SE, All Rights Reserved
2
+ /**
3
+ * @fileOverview The Unified Shell's CommonDataModelAdapter for the ABAP platform, it is used to avoid 404 when no adapter is found
4
+ *
5
+ * @version 1.115.1
6
+ */
7
+ sap.ui.define([
8
+ ], function () {
9
+ "use strict";
10
+
11
+ return function () {};
12
+ });
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ushell_abap/bootstrap/evo/abap.constants",
@@ -22,4 +22,4 @@ sap.ui.define([
22
22
  return Promise.resolve(fnDeepClone(oAbapConstants.defaultUshellConfig));
23
23
  };
24
24
  };
25
- }, true /* bExport */);
25
+ });
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's container adapter for the ABAP platform.
4
4
  *
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -474,4 +474,4 @@ sap.ui.define([
474
474
  };
475
475
 
476
476
  return ContainerAdapter;
477
- }, true /* bExport */);
477
+ });
@@ -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.114.0
7
+ * @version 1.115.1
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/ui/thirdparty/URI",
@@ -3715,4 +3715,4 @@ sap.ui.define([
3715
3715
  };
3716
3716
 
3717
3717
  return LaunchPageAdapter;
3718
- }, true /* bExport */);
3718
+ });
@@ -291,4 +291,4 @@ sap.ui.define([
291
291
  };
292
292
 
293
293
  return MenuAdapter;
294
- }, true);
294
+ });
@@ -5,18 +5,13 @@
5
5
  *
6
6
  * This adapter is not implemented in the ABAP platform, but its stub is here
7
7
  * as it is always loaded by the Container currently. NavTargetResolution
8
- * service now calls the ClientSideTargetResolution service in the abap
8
+ * service now calls the ClientSideTargetResolution service in the ABAP
9
9
  * platform.
10
10
  *
11
- * @version 1.114.0
11
+ * @version 1.115.1
12
12
  */
13
13
  sap.ui.define([], function () {
14
14
  "use strict";
15
15
 
16
- /**
17
- * @param {object} oUnused Unused constructor argument
18
- * @constructor
19
- * @private
20
- */
21
- return function (oUnused) { };
22
- }, true /* bExport */);
16
+ return function () { };
17
+ });
@@ -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.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -129,4 +129,4 @@ sap.ui.define([
129
129
  oFactory.addRemoteCatalogService(sBaseUrl, new ServiceModule());
130
130
  });
131
131
  };
132
- }, true /* bExport */);
132
+ });
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview PagePersistenceAdapter for the ABAP platform.
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -409,4 +409,4 @@ sap.ui.define([
409
409
 
410
410
  return PagePersistenceAdapter;
411
411
 
412
- }, true /* bExport */);
412
+ });
@@ -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.114.0
10
+ * @version 1.115.1
11
11
  */
12
12
  sap.ui.define([
13
13
  "sap/ushell_abap/adapters/abap/AdapterContainer",
@@ -73,5 +73,4 @@ sap.ui.define([
73
73
  };
74
74
 
75
75
  return PersonalizationAdapter;
76
-
77
- }, true /* bExport */);
76
+ });
@@ -2,17 +2,10 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Search adapter for the ABAP platform.
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([], function () {
8
8
  "use strict";
9
9
 
10
- /**
11
- * @param oSystem
12
- * @returns {sap.ushell_abap.adapters.abap.SearchAdapter}
13
- * @private
14
- */
15
- return function (oSystem) {
16
-
17
- };
18
- }, true /* bExport */);
10
+ return function () {};
11
+ });
@@ -2,22 +2,18 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The SupportTicket adapter for the ABAP platform.
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/isEmptyObject",
9
9
  "sap/base/util/ObjectPath",
10
- "sap/ui/thirdparty/jquery",
11
10
  "sap/ushell/utils",
12
- "sap/ushell/resources",
13
11
  "sap/ushell_abap/pbServices/ui2/ODataWrapper",
14
12
  "sap/ushell_abap/pbServices/ui2/ODataService"
15
13
  ], function (
16
14
  isEmptyObject,
17
15
  ObjectPath,
18
- jQuery,
19
16
  utils,
20
- resources,
21
17
  ODataWrapper,
22
18
  ODataService
23
19
  ) {
@@ -54,14 +50,13 @@ sap.ui.define([
54
50
  * @private
55
51
  */
56
52
  this.createTicket = function (oSupportTicketData) {
57
- var oDeferred,
58
- sBaseUrl = "/sap/opu/odata/UI2/INTEROP/",
59
- sRelativeUrl = "Messages",
60
- sUrl,
53
+ var sBaseUrl = "/sap/opu/odata/UI2/INTEROP/";
54
+ var sRelativeUrl = "Messages";
55
+ var oContainer = sap.ushell.Container;
56
+ var sUrl,
61
57
  sHash,
62
58
  sCatalogId,
63
- oDataWrapper,
64
- oContainer = sap.ushell.Container;
59
+ oDataWrapper;
65
60
 
66
61
  // text is mandatory for ABAP backend OData service
67
62
  if (!oSupportTicketData.text) {
@@ -89,24 +84,25 @@ sap.ui.define([
89
84
  oSupportTicketData.hash = sHash;
90
85
  oSupportTicketData.clientContext = convertToReadable(oSupportTicketData.clientContext);
91
86
 
92
- oDeferred = new jQuery.Deferred();
93
- var oODataWrapperSettings = {
94
- baseUrl: sBaseUrl,
95
- "sap-language": oContainer.getUser().getLanguage(),
96
- "sap-client": oContainer.getLogonSystem().getClient()
97
- };
98
- oDataWrapper = new ODataWrapper.createODataWrapper(oODataWrapperSettings);
99
- ODataService.call(this, oDataWrapper, function () {
100
- return false;
101
- });
87
+ var oPromise = new Promise(function (fnResolve, fnReject) {
88
+ var oODataWrapperSettings = {
89
+ baseUrl: sBaseUrl,
90
+ "sap-language": oContainer.getUser().getLanguage(),
91
+ "sap-client": oContainer.getLogonSystem().getClient()
92
+ };
93
+ oDataWrapper = ODataWrapper.createODataWrapper(oODataWrapperSettings);
94
+ ODataService.call(this, oDataWrapper, function () {
95
+ return false;
96
+ });
102
97
 
103
- oDataWrapper.create(sRelativeUrl, oSupportTicketData, function (response) {
104
- oDeferred.resolve(response.messageNumber);
105
- }, function (sErrorMessage) {
106
- oDeferred.reject(sErrorMessage);
98
+ oDataWrapper.create(sRelativeUrl, oSupportTicketData, function (response) {
99
+ fnResolve(response.messageNumber);
100
+ }, function (sErrorMessage) {
101
+ fnReject(sErrorMessage);
102
+ });
107
103
  });
108
104
 
109
- return oDeferred.promise();
105
+ return oPromise;
110
106
  };
111
107
  };
112
- }, true /* bExport */);
108
+ });
@@ -2,14 +2,11 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's Ui5ComponentLoaderAdapter for the ABAP platform
4
4
  *
5
- * @version 1.114.0
5
+ * @version 1.115.1
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
9
9
  "use strict";
10
10
 
11
- function Ui5ComponentLoaderAdapter () {
12
- }
13
- return Ui5ComponentLoaderAdapter;
14
-
15
- }, /* bExport */ true);
11
+ return function () {};
12
+ });
@@ -265,4 +265,4 @@ sap.ui.define([
265
265
  return oDeferred.promise();
266
266
  };
267
267
  };
268
- }, true /* bExport */);
268
+ });
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.114.0
6
+ * @version 1.115.1
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.114.0
17
+ * @version 1.115.1
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -3,13 +3,11 @@
3
3
  sap.ui.define([
4
4
  "sap/ui/core/Core",
5
5
  "sap/ui/core/Manifest",
6
- "sap/base/Log",
7
- "sap/ushell/Container"
6
+ "sap/base/Log"
8
7
  ], function (
9
8
  Core,
10
9
  Manifest,
11
10
  Log
12
- /* Container */
13
11
  ) {
14
12
  "use strict";
15
13
 
@@ -40,11 +38,16 @@ sap.ui.define([
40
38
  var URL = "/sap/bc/ui2/start_up?so=" + SEMANTIC_OBJECT + "&action=" + ACTION + "&systemAliasesFormat=object&formFactor=desktop&shellType=FLP&depth=0";
41
39
 
42
40
  AppRuntimeFileShareSupport.getDataSource = function () {
43
- if (!AppRuntimeFileShareSupport._getDataSourcePromise) {
44
- var sSapClient = sap.ushell.Container.getLogonSystem().getClient();
45
- var sLogonLanguage = sap.ushell.Container.getUser().getLanguage();
46
- var sUrl = URL + "&sap-language=" + sLogonLanguage + "&sap-client=" + sSapClient;
41
+ var sSapClient = AppRuntimeFileShareSupport._getClient();
42
+ var sUrl = URL + "&sap-client=" + sSapClient;
43
+
44
+ // reject if sap-client not found to avoid 401 responses
45
+ if (!sSapClient) {
46
+ Log.error("Could not determine sap-client parameter.", null, MODULE_NAME);
47
+ return Promise.reject(new Error("Could not determine sap-client parameter."));
48
+ }
47
49
 
50
+ if (!AppRuntimeFileShareSupport._getDataSourcePromise) {
48
51
  AppRuntimeFileShareSupport._getDataSourcePromise = fetch(
49
52
  sUrl,
50
53
  {
@@ -95,5 +98,15 @@ sap.ui.define([
95
98
  return AppRuntimeFileShareSupport._getDataSourcePromise;
96
99
  };
97
100
 
101
+ /**
102
+ * Determines the sap-client from the corresponding meta tag
103
+ * @returns {string | undefined} the sap-client or <code>undefined<code> if the meta tag
104
+ * is not set
105
+ */
106
+ AppRuntimeFileShareSupport._getClient = function () {
107
+ var oSapClientMetaTag = document.getElementsByTagName("meta")["sap-client"];
108
+ return oSapClientMetaTag && oSapClientMetaTag.content;
109
+ };
110
+
98
111
  return AppRuntimeFileShareSupport;
99
112
  });
@@ -16,13 +16,13 @@ sap.ui.define([
16
16
  * @namespace
17
17
  * @name sap.ushell_abap
18
18
  * @author SAP SE
19
- * @version 1.114.0
19
+ * @version 1.115.1
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.114.0",
25
+ version: "1.115.1",
26
26
  dependencies: ["sap.ui.core", "sap.m"],
27
27
  noLibraryCSS: true,
28
28
  extensions: {