@sapui5/sap.ushell_abap 1.131.0 → 1.132.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 +10 -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/CommonDataModelAdapter.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 +58 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.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 +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.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.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/library.js +1 -1
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.132.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
|
|
|
@@ -53,6 +53,15 @@
|
|
|
53
53
|
<exclude name="sap.ushell_abap.bootstrap.evo.abap" />
|
|
54
54
|
<exclude name="sap.ushell_abap.bootstrap.evo.abap-dbg" />
|
|
55
55
|
</jsdoc>
|
|
56
|
+
<jscoverage xmlns="http://www.sap.com/ui5/buildext/jscoverage" >
|
|
57
|
+
<!-- excludes for JScoverage -->
|
|
58
|
+
<!-- Bundles -->
|
|
59
|
+
<exclude name="sap.ushell_abap.bootstrap.appruntime-min*" />
|
|
60
|
+
<exclude name="sap.ushell_abap.bootstrap.evo.abap*" />
|
|
61
|
+
<exclude name="sap.ushell_abap.bootstrap.evo.core-min*" />
|
|
62
|
+
<exclude name="sap.ushell_abap.bootstrap.evo.core-ext-light*" />
|
|
63
|
+
<exclude name="sap.ushell_abap.thirdparty.sap-xhrlib-esm*" />
|
|
64
|
+
</jscoverage>
|
|
56
65
|
<releasenotes xmlns="http://www.sap.com/ui5/buildext/releasenotes"
|
|
57
66
|
url="../../../test-resources/sap/ushell_abap/relnotes/changes-{major}.{minor}.json"
|
|
58
67
|
resolve="lib" />
|
|
@@ -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.132.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/thirdparty/jquery",
|
|
@@ -13,6 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
14
14
|
"sap/ui/thirdparty/URI",
|
|
15
15
|
"sap/ui/thirdparty/datajs",
|
|
16
|
+
"sap/base/util/deepClone",
|
|
16
17
|
"sap/base/util/ObjectPath",
|
|
17
18
|
"sap/base/Log",
|
|
18
19
|
"sap/ushell/Container"
|
|
@@ -25,6 +26,7 @@ sap.ui.define([
|
|
|
25
26
|
ODataWrapper,
|
|
26
27
|
URI,
|
|
27
28
|
OData,
|
|
29
|
+
deepClone,
|
|
28
30
|
ObjectPath,
|
|
29
31
|
Log,
|
|
30
32
|
Container
|
|
@@ -248,6 +250,57 @@ sap.ui.define([
|
|
|
248
250
|
}
|
|
249
251
|
};
|
|
250
252
|
|
|
253
|
+
/**
|
|
254
|
+
* Removes all unsupported user properties from the given user settings. This allows to safely
|
|
255
|
+
* create a new User object with the given settings.
|
|
256
|
+
* @param {object} oProperties The user settings
|
|
257
|
+
* @returns {object} The user settings without unsupported properties
|
|
258
|
+
*
|
|
259
|
+
* @since 1.132.0
|
|
260
|
+
* @private
|
|
261
|
+
*/
|
|
262
|
+
this._removeUnsupportedUserProperties = function (oProperties) {
|
|
263
|
+
const oPropertiesClone = deepClone(oProperties);
|
|
264
|
+
|
|
265
|
+
const aSupportedProperties = [
|
|
266
|
+
"id",
|
|
267
|
+
"email",
|
|
268
|
+
"firstName",
|
|
269
|
+
"lastName",
|
|
270
|
+
"fullName",
|
|
271
|
+
"isJamActive",
|
|
272
|
+
"isAdminUser",
|
|
273
|
+
"timeZone",
|
|
274
|
+
"language",
|
|
275
|
+
"languageBcp47",
|
|
276
|
+
"image",
|
|
277
|
+
"isImageConsent",
|
|
278
|
+
"isLanguagePersonalized",
|
|
279
|
+
"calendarWeekNumbering",
|
|
280
|
+
"trackUsageAnalytics",
|
|
281
|
+
"contentDensity",
|
|
282
|
+
"setContentDensityPermitted",
|
|
283
|
+
"accessibility",
|
|
284
|
+
"setAccessibilityPermitted",
|
|
285
|
+
"bootTheme",
|
|
286
|
+
"themeRoot",
|
|
287
|
+
"ranges",
|
|
288
|
+
"setThemePermitted",
|
|
289
|
+
"importBookmarks",
|
|
290
|
+
"showMyHome",
|
|
291
|
+
"detectDarkMode",
|
|
292
|
+
"userProfile"
|
|
293
|
+
];
|
|
294
|
+
|
|
295
|
+
Object.keys(oPropertiesClone).forEach((sKey) => {
|
|
296
|
+
if (!aSupportedProperties.includes(sKey)) {
|
|
297
|
+
delete oPropertiesClone[sKey];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
return oPropertiesClone;
|
|
302
|
+
};
|
|
303
|
+
|
|
251
304
|
/**
|
|
252
305
|
* Does the bootstrap for the ABAP platform (and loads the container's configuration).
|
|
253
306
|
*
|
|
@@ -285,7 +338,10 @@ sap.ui.define([
|
|
|
285
338
|
// Remove once oStartupResult is retrieved with 'setAccessibilityPermitted' & 'setThemePermitted' flags.
|
|
286
339
|
this._setThemeAccessibilityFlags(oStartupResult);
|
|
287
340
|
this._setUserProfileFlags(oStartupResult);
|
|
288
|
-
|
|
341
|
+
|
|
342
|
+
// safe guard user settings
|
|
343
|
+
const oEffectiveUserSettings = this._removeUnsupportedUserProperties(oStartupResult);
|
|
344
|
+
oUser = new User(oEffectiveUserSettings);
|
|
289
345
|
// set the SAP Language on the ODataWrapper,
|
|
290
346
|
// if supplied, this will propagated to a sap-language header
|
|
291
347
|
// assuring a consistent window language
|