@sapui5/sap.ushell_abap 1.151.1 → 1.153.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/AdapterContainer.js +30 -31
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +53 -63
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +13 -18
- 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 +31 -41
- package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +439 -555
- 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 +4 -4
- 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/abap/UserInfoAdapter.js +127 -133
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +27 -33
- package/src/main/js/sap/ushell_abap/bootstrap/DirectAppStart.js +3 -2
- package/src/main/js/sap/ushell_abap/bootstrap/LoadLaunchpad/CreateRenderer.js +4 -2
- package/src/main/js/sap/ushell_abap/bootstrap/LoadLaunchpad/RequestPages.js +2 -6
- package/src/main/js/sap/ushell_abap/bootstrap/PageSetsRequestHandler.js +25 -50
- package/src/main/js/sap/ushell_abap/bootstrap/SAPCompanionConditionSetter.js +1 -3
- package/src/main/js/sap/ushell_abap/bootstrap/XhrLogonEventHandler.js +6 -7
- package/src/main/js/sap/ushell_abap/bootstrap/abapConstants.js +19 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/Component.js +90 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/TransactionCode.controller.js +109 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/TransactionCode.view.xml +16 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n.properties +17 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/manifest.json +96 -0
- package/src/main/js/sap/ushell_abap/integration/fileshares/NavTargetResolutionFileShareSupport.js +3 -1
- package/src/main/js/sap/ushell_abap/library.js +1 -1
- package/src/main/js/sap/ushell_abap/messagebundle.properties +2 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +69 -43
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +53 -64
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +65 -82
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +12 -15
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +48 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +10 -2
- package/src/main/js/sap/ushell_abap/services/NavigationDataProvider.js +7 -7
- package/src/main/js/sap/ushell_abap/ui5appruntime/AppInfoAdapter.js +19 -18
- package/src/main/js/sap/ushell_abap/utils/UserPersonalization.js +80 -0
- package/ui5.yaml +2 -4
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// Copyright (c) 2009-2026 SAP SE, All Rights Reserved
|
|
2
|
+
/**
|
|
3
|
+
* @fileOverview The ABAP platform's helper module to handle personalized settings values
|
|
4
|
+
*
|
|
5
|
+
* @version 1.153.0
|
|
6
|
+
*/
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Lib",
|
|
9
|
+
"sap/ushell/Config",
|
|
10
|
+
"sap/ushell/User/UserPersonalization"
|
|
11
|
+
], (
|
|
12
|
+
Lib,
|
|
13
|
+
Config,
|
|
14
|
+
UshellUserPersonalization
|
|
15
|
+
) => {
|
|
16
|
+
"use strict";
|
|
17
|
+
class UserPersonalization {
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the formatted transaction code to display on a tile.
|
|
20
|
+
*
|
|
21
|
+
* Returns the raw tcode when admin and user settings both permit display, a placeholder
|
|
22
|
+
* text when the feature is active but no tcode is configured, or an empty string when
|
|
23
|
+
* the feature is disabled (admin flag or user toggle).
|
|
24
|
+
*
|
|
25
|
+
* @param {string} sTransactionCode The raw transaction code from the tile configuration.
|
|
26
|
+
* @returns {Promise<string>} Resolves to the formatted display value.
|
|
27
|
+
*
|
|
28
|
+
* @since 1.153.0
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
async formatTransactionCode (sTransactionCode) {
|
|
32
|
+
const bShowTCode = await this.getDisplayTransactionCode();
|
|
33
|
+
if (!bShowTCode) {
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
if (sTransactionCode) {
|
|
37
|
+
return sTransactionCode;
|
|
38
|
+
}
|
|
39
|
+
return Lib.getResourceBundleFor("sap.ushell_abap").getText("tileTransactionCodeNotMaintained");
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Handles the different setting options
|
|
44
|
+
*
|
|
45
|
+
* 1) Admin enablement ("/abap/ui/displayTransaction")
|
|
46
|
+
* 2) User enablement (personalization setting "showTransactionCode")
|
|
47
|
+
*
|
|
48
|
+
* @returns {Promise<boolean>} Resolves to whether the transaction code should be shown.
|
|
49
|
+
*
|
|
50
|
+
* @since 1.153.0
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
async getDisplayTransactionCode () {
|
|
54
|
+
if (!Config.last("/abap/ui/displayTransaction")) {
|
|
55
|
+
// feature off -> hidden; the user toggle is irrelevant
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
const bValue = await UshellUserPersonalization.getItemValue("showTransactionCode");
|
|
60
|
+
return typeof bValue === "undefined" ? true : !!bValue;
|
|
61
|
+
} catch (oError) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Persists display transaction code user setting in the personalization
|
|
68
|
+
*
|
|
69
|
+
* @param {boolean} bValue Whether the transaction code should be shown.
|
|
70
|
+
* @returns {Promise<undefined>} Resolves once the value was persisted.
|
|
71
|
+
*
|
|
72
|
+
* @since 1.153.0
|
|
73
|
+
* @private
|
|
74
|
+
*/
|
|
75
|
+
async setDisplayTransactionCode (bValue) {
|
|
76
|
+
await UshellUserPersonalization.setItemValue("showTransactionCode", bValue);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return new UserPersonalization();
|
|
80
|
+
});
|
package/ui5.yaml
CHANGED
|
@@ -265,7 +265,6 @@ builder:
|
|
|
265
265
|
- sap/ushell/Container.js
|
|
266
266
|
- sap/ushell/ApplicationType/
|
|
267
267
|
- sap/ushell/Fiori20AdapterTest.js
|
|
268
|
-
- sap/ushell/SessionHandler.js
|
|
269
268
|
- sap/ushell/System.js
|
|
270
269
|
- sap/ushell/User.js
|
|
271
270
|
- sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js
|
|
@@ -298,7 +297,7 @@ builder:
|
|
|
298
297
|
- sap/ushell/library.js
|
|
299
298
|
- sap/ushell/modules
|
|
300
299
|
- sap/ushell/override.js
|
|
301
|
-
- sap/ushell/renderer/
|
|
300
|
+
- sap/ushell/renderer/Component.js
|
|
302
301
|
- sap/ushell/renderer/RendererRootView.fragment.xml
|
|
303
302
|
- sap/ushell/renderer/Shell.controller.js
|
|
304
303
|
- sap/ushell/renderer/Shell.view.js
|
|
@@ -330,12 +329,12 @@ builder:
|
|
|
330
329
|
- sap/ushell/services/PersonalizationV2.js
|
|
331
330
|
- sap/ushell/services/PluginManager.js
|
|
332
331
|
- sap/ushell/services/ReferenceResolver.js
|
|
332
|
+
- sap/ushell/services/SessionHandler.js
|
|
333
333
|
- sap/ushell/services/ShellNavigation.js
|
|
334
334
|
- sap/ushell/services/ShellNavigationInternal.js
|
|
335
335
|
- sap/ushell/services/SpaceContent.js
|
|
336
336
|
- sap/ushell/services/SupportTicket.js
|
|
337
337
|
- sap/ushell/services/URLParsing.js
|
|
338
|
-
- sap/ushell/services/URLShortening.js
|
|
339
338
|
- sap/ushell/services/Ui5ComponentLoader.js
|
|
340
339
|
- sap/ushell/services/UserDefaultParameterPersistence.js
|
|
341
340
|
- sap/ushell/services/UserDefaultParameters.js
|
|
@@ -460,7 +459,6 @@ builder:
|
|
|
460
459
|
- sap/ushell/utils/AppType.js
|
|
461
460
|
# Default ushell modules
|
|
462
461
|
- sap/ushell/components/shell/Notifications/NotificationsModule.js
|
|
463
|
-
- sap/ushell/components/shell/ProductSwitch/ProductSwitchModule.js
|
|
464
462
|
resolve: false
|
|
465
463
|
bundleOptions:
|
|
466
464
|
optimize: true
|