@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.
- package/package.json +1 -1
- package/src/main/js/sap/ushell_abap/.library +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +15 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +64 -14
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1543 -22
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def.js +12 -9
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.backend.config.requestor.js +198 -0
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils.js +5 -3
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +4 -4
- package/src/main/js/sap/ushell_abap/library.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +50 -7
- package/src/main/js/sap/ushell_abap/pbServices/ui2/chipdefinition.xsd +0 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +47 -5
- package/ui5.yaml +5 -4
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +0 -108
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +0 -69
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.validate.Url.js +0 -54
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
* @fileOverview The Unified Shell's container adapter for the ABAP platform.
|
|
4
4
|
*
|
|
5
|
-
* @version 1.
|
|
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
|
};
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|