@sapui5/sap.ushell_abap 1.150.1 → 1.151.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 (48) 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 +5 -5
  4. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +7 -7
  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 +1 -1
  8. package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +5 -5
  9. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
  10. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
  11. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.js +1 -1
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1 -1
  14. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +2 -2
  15. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
  16. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +4 -4
  18. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.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/base/Ui2Error.js +46 -0
  21. package/src/main/js/sap/ushell_abap/base/Ui2Utils.js +710 -0
  22. package/src/main/js/sap/ushell_abap/bootstrap/LoadLaunchpad.js +6 -0
  23. package/src/main/js/sap/ushell_abap/bootstrap/PageSetsRequestHandler.js +1 -1
  24. package/src/main/js/sap/ushell_abap/bootstrap/StartupRequestHandler.js +6 -6
  25. package/src/main/js/sap/ushell_abap/bootstrap/abapConstants.js +1 -0
  26. package/src/main/js/sap/ushell_abap/library.js +1 -1
  27. package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +1 -1
  28. package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +2 -2
  29. package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +2 -2
  30. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +2 -2
  31. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +1 -1
  32. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +4 -4
  33. package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +5 -37
  34. package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +3 -3
  35. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +2 -2
  36. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +3 -3
  37. package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +2 -2
  38. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +2 -2
  39. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +2 -2
  40. package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +5 -703
  41. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/actions.js +1 -1
  42. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/bag.js +3 -3
  43. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +3 -3
  44. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +1 -1
  45. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +3 -3
  46. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +1 -1
  47. package/src/main/js/sap/ushell_abap/services/NavigationDataProvider.js +126 -0
  48. package/ui5.yaml +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.150.1",
3
+ "version": "1.151.0",
4
4
  "description": "SAPUI5 Library sap.ushell_abap",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -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.150.1</version>
5
+ <version>1.151.0</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
 
@@ -2,22 +2,22 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
9
9
  "sap/ui/thirdparty/jquery",
10
10
  "sap/base/Log",
11
- "sap/ushell/utils",
11
+ "sap/ushell/utils/LogError",
12
12
  "sap/ushell_abap/pbServices/ui2/ODataWrapper",
13
- "sap/ushell_abap/pbServices/ui2/Error",
13
+ "sap/ushell_abap/base/Ui2Error",
14
14
  "sap/ushell_abap/pbServices/ui2/ODataService",
15
15
  "sap/ushell/Container"
16
16
  ], (
17
17
  ObjectPath,
18
18
  jQuery,
19
19
  Log,
20
- utils,
20
+ LogError,
21
21
  ODataWrapper,
22
22
  SrvcError,
23
23
  ODataService,
@@ -102,7 +102,7 @@ sap.ui.define([
102
102
  const sRelativeUrl = `GlobalContainers(id='${encodeURIComponent(sKey)}')`;
103
103
 
104
104
  if (!sKey) {
105
- throw new utils.Error("The sKey is mandatory to read the data from the persistence layer");
105
+ throw new LogError("The sKey is mandatory to read the data from the persistence layer");
106
106
  }
107
107
 
108
108
  // wrap the read operation into a batch request
@@ -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.150.1
12
+ * @version 1.151.0
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/base/util/ObjectPath",
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  "sap/ushell/utils",
21
21
  "sap/base/Log",
22
22
  "sap/ushell_abap/pbServices/ui2/ODataWrapper",
23
- "sap/ushell_abap/pbServices/ui2/Utils",
23
+ "sap/ushell_abap/base/Ui2Utils",
24
24
  "sap/ui/thirdparty/URI",
25
25
  "sap/ushell/Config",
26
26
  "sap/ushell/Container"
@@ -186,7 +186,7 @@ sap.ui.define([
186
186
  // this variable *may* reflect an initial segment as received by the oInitialSegmentPromise
187
187
  this._aInitialSegment = undefined;
188
188
 
189
- this._oSystemAliasBuffer = new ushellUtils.Map();
189
+ this._oSystemAliasBuffer = new Map();
190
190
  // Cache URL Template object from start_up response
191
191
  this._oURLTemplates = {};
192
192
 
@@ -495,7 +495,7 @@ sap.ui.define([
495
495
  *
496
496
  * @param {sap.ushell.services.ClientSideTargetResolution.Inbound[]} aBasicInbounds Array of basic inbound objects
497
497
  * @param {object} oABAPInboundParams Object containing ABAP-specific properties indexed by inbound ID
498
- * @returns {sap.ushell.services.NavigationDataProvider.ABAPInbound[]} Array of enriched inbound objects
498
+ * @returns {sap.ushell_abap.services.NavigationDataProvider.ABAPInbound[]} Array of enriched inbound objects
499
499
  * @since 1.146.0
500
500
  * @private
501
501
  */
@@ -520,7 +520,7 @@ sap.ui.define([
520
520
  * This function should be called after `getInbounds` has resolved, as `getInbounds`
521
521
  * is responsible for initially populating both `_aInbounds` and `_oInboundsABAP`.
522
522
  *
523
- * @returns {Promise<sap.ushell.services.NavigationDataProvider.ABAPInbound[]> | Promise<sap.ushell.services.ClientSideTargetResolution.Inbound[]>}
523
+ * @returns {Promise<sap.ushell_abap.services.NavigationDataProvider.ABAPInbound[]> | Promise<sap.ushell.services.ClientSideTargetResolution.Inbound[]>}
524
524
  * A Promise that resolves with the newly created array of enriched inbounds.
525
525
  * @private
526
526
  * @since 1.146.0
@@ -1499,7 +1499,7 @@ sap.ui.define([
1499
1499
  */
1500
1500
  ClientSideTargetResolutionAdapter.prototype._writeSystemAliasToBuffer = function (oSystemAliasData) {
1501
1501
  if (oSystemAliasData && oSystemAliasData.id) {
1502
- this._oSystemAliasBuffer.put(oSystemAliasData.id, oSystemAliasData);
1502
+ this._oSystemAliasBuffer.set(oSystemAliasData.id, oSystemAliasData);
1503
1503
  }
1504
1504
  return oSystemAliasData;
1505
1505
  };
@@ -1585,7 +1585,7 @@ sap.ui.define([
1585
1585
  * @private
1586
1586
  */
1587
1587
  ClientSideTargetResolutionAdapter.prototype.getSystemAliases = function () {
1588
- return (this._oSystemAliasBuffer && this._oSystemAliasBuffer.entries) || {};
1588
+ return (this._oSystemAliasBuffer && Object.fromEntries(this._oSystemAliasBuffer)) || {};
1589
1589
  };
1590
1590
 
1591
1591
  /**
@@ -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.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  ], () => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ushell_abap/bootstrap/abapConstants",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's container adapter for the ABAP platform.
4
4
  *
5
- * @version 1.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -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.150.1
6
+ * @version 1.151.0
7
7
  */
8
8
  sap.ui.define([
9
9
  "sap/ui/thirdparty/URI",
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  "sap/ushell/Config",
17
17
  "sap/base/util/deepExtend",
18
18
  "sap/ushell/utils/chipsUtils",
19
- "sap/ushell_abap/pbServices/ui2/Utils",
19
+ "sap/ushell_abap/base/Ui2Utils",
20
20
  "sap/ushell_abap/pbServices/ui2/Page",
21
21
  "sap/base/Log",
22
22
  "sap/m/library",
@@ -197,7 +197,7 @@ sap.ui.define([
197
197
  * @deprecated since 1.120
198
198
  */
199
199
  LaunchPageAdapter.prototype._orderBasedOnConfiguration = function (oConfiguration, aElements) {
200
- let aOrder = (oConfiguration && Utils.isArray(oConfiguration.order) ? oConfiguration.order : []);
200
+ let aOrder = (oConfiguration && Array.isArray(oConfiguration.order) ? oConfiguration.order : []);
201
201
  const mElementsById = {};
202
202
  const aOrderedElements = [];
203
203
  let oElement;
@@ -205,7 +205,7 @@ sap.ui.define([
205
205
  let n;
206
206
 
207
207
  // append link tiles as they are exposed together with tiles via getGroupTiles
208
- aOrder = aOrder.concat(oConfiguration && Utils.isArray(oConfiguration.linkOrder) ? oConfiguration.linkOrder : []);
208
+ aOrder = aOrder.concat(oConfiguration && Array.isArray(oConfiguration.linkOrder) ? oConfiguration.linkOrder : []);
209
209
 
210
210
  // create a map of instances by ID
211
211
  for (i = 0, n = aElements.length; i < n; i += 1) {
@@ -2957,7 +2957,7 @@ sap.ui.define([
2957
2957
  const sCatalogDescription = oCatalogTile.getChip().getDescription();
2958
2958
 
2959
2959
  function addKeywords (oKeywordsSet, aKeywordsList) {
2960
- if (Utils.isArray(aKeywordsList)) {
2960
+ if (Array.isArray(aKeywordsList)) {
2961
2961
  aKeywordsList.forEach((sKeyword) => {
2962
2962
  if (oKeywordsSet.hasOwnProperty(sKeyword)) {
2963
2963
  return;
@@ -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.150.1
7
+ * @version 1.151.0
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter"
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the ABAP
9
9
  * platform.
10
10
  *
11
- * @version 1.150.1
11
+ * @version 1.151.0
12
12
  */
13
13
  sap.ui.define([], () => {
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.150.1
11
+ * @version 1.151.0
12
12
  * @since 1.121
13
13
  */
14
14
  sap.ui.define([], () => {
@@ -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.150.1
5
+ * @version 1.151.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.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/i18n/Localization",
@@ -7,13 +7,13 @@
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.150.1
10
+ * @version 1.151.0
11
11
  */
12
12
  sap.ui.define([
13
13
  "sap/ushell_abap/adapters/abap/AdapterContainer",
14
14
  "sap/ushell_abap/pbServices/ui2/ODataWrapper",
15
15
  "sap/ushell_abap/pbServices/ui2/ODataService",
16
- "sap/ushell_abap/pbServices/ui2/Error",
16
+ "sap/ushell_abap/base/Ui2Error",
17
17
  "sap/base/util/ObjectPath",
18
18
  "sap/base/Log",
19
19
  "sap/ushell/Container"
@@ -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.150.1
10
+ * @version 1.151.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.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([], () => {
8
8
  "use strict";
@@ -2,19 +2,19 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The SupportTicket adapter for the ABAP platform.
5
- * @version 1.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/isEmptyObject",
9
9
  "sap/base/util/ObjectPath",
10
- "sap/ushell/utils",
10
+ "sap/ushell/utils/LogError",
11
11
  "sap/ushell_abap/pbServices/ui2/ODataWrapper",
12
12
  "sap/ushell_abap/pbServices/ui2/ODataService",
13
13
  "sap/ushell/Container"
14
14
  ], (
15
15
  isEmptyObject,
16
16
  ObjectPath,
17
- utils,
17
+ LogError,
18
18
  ODataWrapper,
19
19
  ODataService,
20
20
  Container
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
 
63
63
  // text is mandatory for ABAP backend OData service
64
64
  if (!oSupportTicketData.text) {
65
- throw new utils.Error("Support Ticket data does not contain text member");
65
+ throw new LogError("Support Ticket data does not contain text member");
66
66
  }
67
67
 
68
68
  sUrl = ObjectPath.get("clientContext.navigationData.applicationInformation.url", oSupportTicketData);
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's Ui5ComponentLoaderAdapter for the ABAP platform
4
4
  *
5
- * @version 1.150.1
5
+ * @version 1.151.0
6
6
  */
7
7
  sap.ui.define([
8
8
  ], () => {
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.150.1
6
+ * @version 1.151.0
7
7
  */
8
8
  sap.ui.define([
9
9
  "sap/ui/thirdparty/jquery",
@@ -0,0 +1,46 @@
1
+ // Copyright (c) 2009-2026 SAP SE, All Rights Reserved
2
+
3
+ /**
4
+ * @fileOverview An error object which logs the error message immediately.
5
+ */
6
+
7
+ sap.ui.define([
8
+ // sap.ushell_abap.base is a bootstrap dependency!
9
+ // Be careful when adding new dependencies
10
+ "sap/base/Log"
11
+ ], (
12
+ Log
13
+ ) => {
14
+ "use strict";
15
+
16
+ /**
17
+ * Creates an <code>Error</code> object and logs the error message immediately.
18
+ *
19
+ * @param {string} sMessage
20
+ * the error message
21
+ * @param {string} [sComponent]
22
+ * the error component to log
23
+ * @param {boolean} [bLogError=true]
24
+ * defines if the error is logged directly in the constructor; In case the error is going to be catched,
25
+ * the logging may be misleading
26
+ *
27
+ * @class
28
+ * @since 1.2.0
29
+ */
30
+ function SrvcError (sMessage, sComponent, bLogError) {
31
+ // see also redundant declaration in utils.js which has to be in sync
32
+ const oError = new Error(sMessage); // reuse Error constructor to benefit from it (e.g. stack)
33
+
34
+ // by default the error should be logged (as always in this project)
35
+ bLogError = bLogError === undefined ? true : bLogError;
36
+
37
+ oError.name = "Error";
38
+ if (bLogError === true) {
39
+ Log.error(sMessage, null, sComponent);
40
+ }
41
+
42
+ return oError;
43
+ }
44
+
45
+ return SrvcError;
46
+ });