@sapui5/sap.ushell_abap 1.99.0 → 1.100.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 (29) 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/ConfigurationDefaultsAdapter.js +1 -1
  6. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +15 -1
  7. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
  8. package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +64 -14
  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 +1543 -22
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
  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/hana/ContainerAdapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def.js +12 -9
  18. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.backend.config.requestor.js +198 -0
  19. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils.js +5 -3
  20. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
  21. package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +4 -4
  22. package/src/main/js/sap/ushell_abap/library.js +2 -2
  23. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +50 -7
  24. package/src/main/js/sap/ushell_abap/pbServices/ui2/chipdefinition.xsd +0 -1
  25. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +47 -5
  26. package/ui5.yaml +5 -4
  27. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +0 -108
  28. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +0 -69
  29. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.validate.Url.js +0 -54
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.99.0",
3
+ "version": "1.100.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.99.0</version>
5
+ <version>1.100.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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.99.0
5
+ * @version 1.100.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.99.0
12
+ * @version 1.100.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.99.0
5
+ * @version 1.100.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.99.0
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -222,6 +222,20 @@ sap.ui.define([
222
222
  break;
223
223
  }
224
224
  }
225
+ // Dark Mode Auto Detection - whether the user has disabled it
226
+ if (oUserProfileParameter.id === "THEME_DARKMODE_AUTO_DETECTION") {
227
+ switch (oUserProfileParameter.value) {
228
+ case "false":
229
+ oStartupResult.detectDarkMode = false;
230
+ break;
231
+ case "true":
232
+ oStartupResult.detectDarkMode = true;
233
+ break;
234
+ default:
235
+ oStartupResult.detectDarkMode = undefined;
236
+ break;
237
+ }
238
+ }
225
239
  });
226
240
  }
227
241
  };
@@ -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.99.0
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/URI",
@@ -37,17 +37,77 @@ sap.ui.define([
37
37
 
38
38
  /**
39
39
  * Gets the menu entries for the spaces assigned to the user.
40
- *
40
+ * Handles the MyHomeSpace visibility.
41
41
  * @returns {Promise<MenuEntry[]>} The menu entries, @see sap.ushell.services.menu#MenuEntry
42
42
  *
43
43
  * @since 1.72.0
44
44
  * @private
45
45
  */
46
- MenuAdapter.prototype.getMenuEntries = function () {
46
+ MenuAdapter.prototype.getMenuEntries = function () {
47
+ var bHomeAppEnabled = Config.last("/core/homeApp/enabled");
48
+ var bMyHomeSpaceEnabled = Config.last("/core/spaces/myHome/enabled");
49
+ var bMyHomeUserEnabled = Config.last("/core/spaces/myHome/userEnabled");
50
+ var sMyHomeSpaceId = Config.last("/core/spaces/myHome/myHomeSpaceId");
51
+
52
+ var aMetatagMenu = this._getAssignedSpaces();
47
53
 
54
+ // only remove myHomeSpace when myHome is enabled and user has disabled it
55
+ // remove myHomeSpace when homeApp is enabled
56
+ if ((bHomeAppEnabled && bMyHomeSpaceEnabled) || (bMyHomeSpaceEnabled && !bMyHomeUserEnabled)) {
57
+ for (var i = 0; i < aMetatagMenu.length; i++) {
58
+ if (aMetatagMenu[i].id === sMyHomeSpaceId) {
59
+ aMetatagMenu = aMetatagMenu.slice(1);
60
+ break;
61
+ }
62
+ }
63
+ }
64
+ var aMenuEntries = this._buildMenuEntries(aMetatagMenu);
65
+ return Promise.resolve(aMenuEntries);
66
+ };
67
+
68
+ /**
69
+ * Gets the menu entries for the spaces assigned to the user.
70
+ * Handles the MyHomeSpace visibility.
71
+ * Those menu items and their structure is used for the selection in bookmarking.
72
+ * @returns {Promise<MenuEntry[]>} The menu entries, @see sap.ushell.services.menu#MenuEntry
73
+ *
74
+ * @since 1.100.0
75
+ * @private
76
+ */
77
+ MenuAdapter.prototype.getContentNodes = function () {
78
+ var bHomeAppEnabled = Config.last("/core/homeApp/enabled");
79
+ var bMyHomeSpaceEnabled = Config.last("/core/spaces/myHome/enabled");
80
+ var bMyHomeUserEnabled = Config.last("/core/spaces/myHome/userEnabled");
81
+ var sMyHomeSpaceId = Config.last("/core/spaces/myHome/myHomeSpaceId");
82
+
83
+ var aMetatagMenu = this._getAssignedSpaces();
84
+ // only remove myHomeSpace when myHome is enabled and user has disabled it
85
+ // but always keep myHomeSpace when homeApp is enabled
86
+ if (!bHomeAppEnabled && bMyHomeSpaceEnabled && !bMyHomeUserEnabled) {
87
+ for (var i = 0; i < aMetatagMenu.length; i++) {
88
+ if (aMetatagMenu[i].id === sMyHomeSpaceId) {
89
+ aMetatagMenu = aMetatagMenu.slice(1);
90
+ break;
91
+ }
92
+ }
93
+ }
94
+ var aMenuEntries = this._buildMenuEntries(aMetatagMenu);
95
+ return Promise.resolve(aMenuEntries);
96
+ };
97
+
98
+ /**
99
+ * Builds based on the metatags a menu which is accepted by the menu service
100
+ * @param {object[]} aMetatagMenu The menu content from the metatags
101
+ * @returns {MenuEntry[]} The menu structure required by the menu service, @see sap.ushell.services.menu#MenuEntry
102
+ *
103
+ * @private
104
+ * @since 1.100.0
105
+ */
106
+ MenuAdapter.prototype._buildMenuEntries = function (aMetatagMenu) {
48
107
  // Create a 1st level menu entry for each user-assigned space
49
108
  // having 2nd level sub menu entries for its pages inside if needed
50
- var aMenuEntries = this._getAssignedSpaces()
109
+
110
+ var aMenuEntries = aMetatagMenu
51
111
  .filter(function (oSpace) {
52
112
 
53
113
  // No menu entry for a space, if no page assigned
@@ -115,13 +175,12 @@ sap.ui.define([
115
175
  return oTopMenuEntry;
116
176
  });
117
177
 
118
- return Promise.resolve(aMenuEntries);
178
+ return aMenuEntries;
119
179
  };
120
180
 
121
181
  /**
122
182
  * Gets the menu entries for the pages assigned to the user by querying the
123
183
  * content of the meta tag with the name' sap.ushell.assignedSpaces'.
124
- * Spaces without pages are not included in the result.
125
184
  *
126
185
  * @returns {object[]} The assigned spaces from the 'sap.ushell.assignedSpaces' meta tag
127
186
  *
@@ -134,15 +193,6 @@ sap.ui.define([
134
193
  return [];
135
194
  }
136
195
  var aMetatagMenu = JSON.parse(oMetatag.getAttribute("content"));
137
- var sMyHomeSpaceId = Config.last("/core/spaces/myHome/myHomeSpaceId");
138
- if (Config.last("/core/spaces/myHome/enabled") && !Config.last("/core/spaces/myHome/userEnabled")) {
139
- for (var i = 0; i < aMetatagMenu.length; i++) {
140
- if (aMetatagMenu[i].id === sMyHomeSpaceId) {
141
- aMetatagMenu = aMetatagMenu.slice(1);
142
- break;
143
- }
144
- }
145
- }
146
196
  return aMetatagMenu;
147
197
  };
148
198
 
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the abap
9
9
  * platform.
10
10
  *
11
- * @version 1.99.0
11
+ * @version 1.100.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.99.0
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",