@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.
Files changed (46) 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/AdapterContainer.js +30 -31
  4. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +53 -63
  5. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +13 -18
  6. package/src/main/js/sap/ushell_abap/adapters/abap/CommonDataModelAdapter.js +1 -1
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
  8. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +31 -41
  9. package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +439 -555
  10. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
  11. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
  12. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.js +1 -1
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
  14. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +4 -4
  15. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
  16. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  18. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
  19. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
  20. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +127 -133
  21. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +27 -33
  22. package/src/main/js/sap/ushell_abap/bootstrap/DirectAppStart.js +3 -2
  23. package/src/main/js/sap/ushell_abap/bootstrap/LoadLaunchpad/CreateRenderer.js +4 -2
  24. package/src/main/js/sap/ushell_abap/bootstrap/LoadLaunchpad/RequestPages.js +2 -6
  25. package/src/main/js/sap/ushell_abap/bootstrap/PageSetsRequestHandler.js +25 -50
  26. package/src/main/js/sap/ushell_abap/bootstrap/SAPCompanionConditionSetter.js +1 -3
  27. package/src/main/js/sap/ushell_abap/bootstrap/XhrLogonEventHandler.js +6 -7
  28. package/src/main/js/sap/ushell_abap/bootstrap/abapConstants.js +19 -0
  29. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/Component.js +90 -0
  30. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/TransactionCode.controller.js +109 -0
  31. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/TransactionCode.view.xml +16 -0
  32. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n.properties +17 -0
  33. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/manifest.json +96 -0
  34. package/src/main/js/sap/ushell_abap/integration/fileshares/NavTargetResolutionFileShareSupport.js +3 -1
  35. package/src/main/js/sap/ushell_abap/library.js +1 -1
  36. package/src/main/js/sap/ushell_abap/messagebundle.properties +2 -0
  37. package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +69 -43
  38. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +53 -64
  39. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +65 -82
  40. package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +12 -15
  41. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +48 -2
  42. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +10 -2
  43. package/src/main/js/sap/ushell_abap/services/NavigationDataProvider.js +7 -7
  44. package/src/main/js/sap/ushell_abap/ui5appruntime/AppInfoAdapter.js +19 -18
  45. package/src/main/js/sap/ushell_abap/utils/UserPersonalization.js +80 -0
  46. 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/Renderer.js
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