@sapui5/sap.ushell_abap 1.153.0 → 1.154.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 (116) 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/CommonDataModelAdapter.js +1 -1
  6. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +1 -1
  8. package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +53 -4
  9. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
  10. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
  11. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.js +1 -1
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +5 -5
  14. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
  15. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
  16. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
  18. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
  19. package/src/main/js/sap/ushell_abap/adapters/abap/VisualizationInstantiationAdapter.js +76 -0
  20. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
  21. package/src/main/js/sap/ushell_abap/adapters/local/ClientSideTargetResolutionAdapter.js +123 -0
  22. package/src/main/js/sap/ushell_abap/adapters/local/FlpLaunchPageAdapter.js +115 -0
  23. package/src/main/js/sap/ushell_abap/adapters/local/MenuAdapter.js +92 -0
  24. package/src/main/js/sap/ushell_abap/adapters/local/PageBuildingAdapter.js +242 -0
  25. package/src/main/js/sap/ushell_abap/adapters/local/PagePersistenceAdapter.js +308 -0
  26. package/src/main/js/sap/ushell_abap/api/S4MyHome.js +58 -0
  27. package/src/main/js/sap/ushell_abap/bootstrap/DirectAppStart.js +25 -13
  28. package/src/main/js/sap/ushell_abap/bootstrap/PlatformConfig.js +5 -5
  29. package/src/main/js/sap/ushell_abap/bootstrap/abapConstants.js +11 -0
  30. package/src/main/js/sap/ushell_abap/components/SideNavigation/modules/Favorites.js +549 -0
  31. package/src/main/js/sap/ushell_abap/components/SideNavigation/modules/GenericNavigationListProvider.js +241 -0
  32. package/src/main/js/sap/ushell_abap/components/cards/Card.controller.js +117 -0
  33. package/src/main/js/sap/ushell_abap/components/cards/Card.view.xml +11 -0
  34. package/src/main/js/sap/ushell_abap/components/cards/Configuration.controller.js +280 -0
  35. package/src/main/js/sap/ushell_abap/components/cards/Configuration.view.xml +27 -0
  36. package/src/main/js/sap/ushell_abap/components/cards/ManifestPropertyHelper.js +298 -0
  37. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/Component.js +6 -6
  38. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/TransactionCode.controller.js +9 -8
  39. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n.properties +10 -10
  40. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ar.properties +10 -0
  41. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_bg.properties +10 -0
  42. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ca.properties +10 -0
  43. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_cnr.properties +10 -0
  44. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_cs.properties +10 -0
  45. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_cy.properties +10 -0
  46. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_da.properties +10 -0
  47. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_de.properties +10 -0
  48. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_el.properties +10 -0
  49. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en.properties +10 -0
  50. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_GB.properties +10 -0
  51. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_US_sappsd.properties +10 -0
  52. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_US_saprigi.properties +10 -0
  53. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_US_saptrc.properties +10 -0
  54. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_es.properties +10 -0
  55. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_es_MX.properties +10 -0
  56. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_et.properties +10 -0
  57. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_fi.properties +10 -0
  58. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_fr.properties +10 -0
  59. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_fr_CA.properties +10 -0
  60. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_hi.properties +10 -0
  61. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_hr.properties +10 -0
  62. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_hu.properties +10 -0
  63. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_id.properties +10 -0
  64. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_it.properties +10 -0
  65. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_iw.properties +10 -0
  66. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ja.properties +10 -0
  67. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_kk.properties +10 -0
  68. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ko.properties +10 -0
  69. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_lt.properties +10 -0
  70. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_lv.properties +10 -0
  71. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_mk.properties +10 -0
  72. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ms.properties +10 -0
  73. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_nl.properties +10 -0
  74. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_no.properties +10 -0
  75. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_pl.properties +10 -0
  76. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_pt.properties +10 -0
  77. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_pt_PT.properties +10 -0
  78. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ro.properties +10 -0
  79. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ru.properties +10 -0
  80. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sh.properties +10 -0
  81. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sk.properties +10 -0
  82. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sl.properties +10 -0
  83. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sr.properties +10 -0
  84. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sv.properties +10 -0
  85. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_th.properties +10 -0
  86. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_tr.properties +10 -0
  87. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_uk.properties +10 -0
  88. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_vi.properties +10 -0
  89. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_zh_CN.properties +10 -0
  90. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_zh_TW.properties +10 -0
  91. package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/manifest.json +1 -1
  92. package/src/main/js/sap/ushell_abap/components/tiles/action/ActionTile.controller.js +189 -0
  93. package/src/main/js/sap/ushell_abap/components/tiles/action/ActionTile.view.xml +13 -0
  94. package/src/main/js/sap/ushell_abap/components/tiles/action/Configuration.controller.js +193 -0
  95. package/src/main/js/sap/ushell_abap/components/tiles/action/Configuration.view.xml +333 -0
  96. package/src/main/js/sap/ushell_abap/components/tiles/applauncher/Component.js +41 -0
  97. package/src/main/js/sap/ushell_abap/components/tiles/applauncher/Configuration.controller.js +114 -0
  98. package/src/main/js/sap/ushell_abap/components/tiles/applauncher/Configuration.view.xml +208 -0
  99. package/src/main/js/sap/ushell_abap/components/tiles/applauncher/StaticTile.controller.js +497 -0
  100. package/src/main/js/sap/ushell_abap/components/tiles/applauncher/StaticTile.view.js +61 -0
  101. package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/Component.js +45 -0
  102. package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/Configuration.controller.js +113 -0
  103. package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/Configuration.view.xml +231 -0
  104. package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/DynamicTile.controller.js +729 -0
  105. package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/DynamicTile.view.js +106 -0
  106. package/src/main/js/sap/ushell_abap/library.js +12 -1
  107. package/src/main/js/sap/ushell_abap/messagebundle.properties +5 -3
  108. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +7 -3
  109. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1 -1
  110. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +6 -2
  111. package/src/main/js/sap/ushell_abap/services/NavigationDataProvider.js +1 -1
  112. package/src/main/js/sap/ushell_abap/ui/VisualizationInstantiation/ChipInstanceWrapper.js +248 -0
  113. package/src/main/js/sap/ushell_abap/ui/VisualizationInstantiation/VizInstanceAbap.js +134 -0
  114. package/src/main/js/sap/ushell_abap/ui/VisualizationInstantiation/VizInstanceAbapLink.js +145 -0
  115. package/src/main/js/sap/ushell_abap/utils/UserPersonalization.js +51 -4
  116. package/ui5.yaml +20 -2
@@ -0,0 +1,58 @@
1
+ // Copyright (c) 2009-2026 SAP SE, All Rights Reserved
2
+
3
+ /**
4
+ * @file Utility functions for S/4 My Home.
5
+ */
6
+ sap.ui.define([
7
+ "sap/ushell_abap/utils/UserPersonalization"
8
+ ], (
9
+ UserPersonalization
10
+ ) => {
11
+ "use strict";
12
+
13
+ /**
14
+ * @alias sap.ushell_abap.api.S4MyHome
15
+ * @namespace
16
+ * @description The utility functions for the S/4 My Home app.
17
+ *
18
+ * @since 1.154.0
19
+ * @private
20
+ * @ui5-restricted ux.eng.producthome, ux.eng.s4producthomes1
21
+ */
22
+ class S4MyHome {
23
+ /**
24
+ * Attaches an event handler to the display transaction code change event.
25
+ *
26
+ * @param {object} [oData] An object that will be passed to the handler along with the event object when the event is fired
27
+ * @param {function} fnFunction The handler function to call when the event occurs.
28
+ * This function will be called in the context of the <code>oListener</code> instance (if present) or on the event provider instance.
29
+ * The event object ({@link sap.ui.base.Event}) is provided as first argument of the handler. Handlers must not change the content of
30
+ * the event. The second argument is the specified <code>oData</code> instance (if present).
31
+ * @param {object} [oListener] The object that wants to be notified when the event occurs (<code>this</code> context within the
32
+ * handler function). If it is not specified, the handler function is called in the context of the event provider.
33
+ *
34
+ * @since 1.154.0
35
+ * @private
36
+ * @ui5-restricted ux.eng.producthome, ux.eng.s4producthomes1
37
+ */
38
+ async attachDisplayTransactionCodeChanged (...args) {
39
+ UserPersonalization.attachDisplayTransactionCodeChanged(...args);
40
+ }
41
+
42
+ /**
43
+ * Detaches an event handler from the display transaction code change event.
44
+ *
45
+ * @param {function} fnFunction The handler function to detach from the event
46
+ * @param {object} [oListener] The object that wanted to be notified when the event occurred
47
+ *
48
+ * @since 1.154.0
49
+ * @private
50
+ * @ui5-restricted ux.eng.producthome, ux.eng.s4producthomes1
51
+ */
52
+ async detachDisplayTransactionCodeChanged (...args) {
53
+ UserPersonalization.detachDisplayTransactionCodeChanged(...args);
54
+ }
55
+ }
56
+
57
+ return new S4MyHome();
58
+ });
@@ -5,19 +5,23 @@
5
5
  sap.ui.define([
6
6
  "sap/base/Log",
7
7
  "sap/base/util/ObjectPath",
8
+ "sap/ui/core/Lib",
8
9
  "sap/ushell_abap/bootstrap/StartupRequestHandler",
9
10
  "sap/ushell/base/promisify",
10
11
  "sap/ushell/base/requireAsync",
11
12
  "sap/ushell/base/UrlParsing",
12
- "sap/ushell/bootstrap/Config"
13
+ "sap/ushell/bootstrap/Config",
14
+ "sap/ushell/utils/LaunchpadError"
13
15
  ], (
14
16
  Log,
15
17
  ObjectPath,
18
+ Lib,
16
19
  StartupRequestHandler,
17
20
  promisify,
18
21
  requireAsync,
19
22
  UrlParsing,
20
- BootstrapConfig
23
+ BootstrapConfig,
24
+ LaunchpadError
21
25
  ) => {
22
26
  "use strict";
23
27
 
@@ -183,18 +187,26 @@ sap.ui.define([
183
187
  AppConfiguration.setCurrentApplication(oResolvedHashFragment);
184
188
 
185
189
  if (oResolvedHashFragment?.ui5ComponentName) {
186
- // create UI5 component early
187
190
  const Ui5ComponentLoader = await Container.getServiceAsync("Ui5ComponentLoader");
188
-
189
- const oResolvedHashFragmentWithComponentHandle = await Ui5ComponentLoader.createComponent(
190
- oResolvedHashFragment,
191
- [this.#createWaitForRendererCreatedPromise(Container)],
192
- "Application"
193
- );
194
-
195
- return {
196
- resolvedHashFragment: oResolvedHashFragmentWithComponentHandle
197
- };
191
+ let oResolvedHashFragmentWithComponentHandle;
192
+ try {
193
+ oResolvedHashFragmentWithComponentHandle = await Ui5ComponentLoader.createComponent(
194
+ oResolvedHashFragment,
195
+ [this.#createWaitForRendererCreatedPromise(Container)],
196
+ "Application"
197
+ );
198
+ } catch (oError) {
199
+ const sShellHash = UrlParsing.constructShellHash(UrlParsing.parseShellHash(sHash, true), true);
200
+ throw new LaunchpadError(
201
+ oError.message,
202
+ {
203
+ translatedMessage: Lib.getResourceBundleFor("sap.ushell").getText("failed_to_open_ui5_component"),
204
+ messageDetails: Lib.getResourceBundleFor("sap.ushell").getText("cannot_load_ui5_component_details", [sShellHash])
205
+ },
206
+ oError
207
+ );
208
+ }
209
+ return { resolvedHashFragment: oResolvedHashFragmentWithComponentHandle };
198
210
  }
199
211
 
200
212
  // non-ui5 app
@@ -302,8 +302,8 @@ sap.ui.define([
302
302
  sLegacyTimeFormat = undefined;
303
303
  }
304
304
 
305
+ let sTimeZoneIana;
305
306
  const bUseTimeZoneIana = oContainerAdapterConfig.timeZoneFromServerInUI5;
306
- let sTimeZoneIana = oContainerAdapterConfig.timeZone;
307
307
  if (bUseTimeZoneIana && oContainerAdapterConfig.timeZone !== "") {
308
308
  sTimeZoneIana = oContainerAdapterConfig.timeZone;
309
309
  }
@@ -327,7 +327,7 @@ sap.ui.define([
327
327
 
328
328
  /**
329
329
  * Applies additional UI5 settings that require async API calls.
330
- * Sets Islamic calendar customizing data, language with ABAP language code,
330
+ * Sets Islamic calendar customizing data, language with SAP logon language code,
331
331
  * and custom currencies.
332
332
  *
333
333
  * @returns {Promise} Resolves when all settings have been applied
@@ -349,15 +349,15 @@ sap.ui.define([
349
349
 
350
350
  const sLegacyDateCalendarCustomizing = oContainerAdapterConfig.tislcal;
351
351
  const sLanguage = oContainerAdapterConfig.languageBcp47 || oContainerAdapterConfig.language;
352
- const sABAPLanguage = oContainerAdapterConfig.language;
352
+ const sSAPLogonLanguage = oContainerAdapterConfig.language;
353
353
  const oCurrencyFormats = oContainerAdapterConfig.currencyFormats;
354
354
 
355
355
  if (sLegacyDateCalendarCustomizing) {
356
356
  Formatting.setCustomIslamicCalendarData(sLegacyDateCalendarCustomizing);
357
357
  }
358
358
 
359
- if (sABAPLanguage) { // only set abap language if it is provided, the regular language was already configured
360
- Localization.setLanguage(sLanguage, sABAPLanguage);
359
+ if (sSAPLogonLanguage) { // only set SAP logon language if it is provided, the regular language was already configured
360
+ Localization.setLanguage(sLanguage, sSAPLogonLanguage);
361
361
  }
362
362
 
363
363
  // Copy currency formats, if provided, to the UI5 custom currencies format settings
@@ -56,6 +56,11 @@ sap.ui.define([
56
56
  enabled: true
57
57
  }
58
58
  },
59
+ sideNavigation: {
60
+ navigationListProvider: {
61
+ modulePath: "sap/ushell_abap/components/SideNavigation/modules/GenericNavigationListProvider"
62
+ }
63
+ },
59
64
  settings: {
60
65
  customEntries: [{
61
66
  name: "sap.ushell_abap.components.settings.TransactionCode",
@@ -240,6 +245,12 @@ sap.ui.define([
240
245
  inputFieldSuggestions: {
241
246
  enabled: true
242
247
  }
248
+ },
249
+ modulePaths: {
250
+ "sap.ushell.components.cards": sap.ui.require.toUrl("sap/ushell_abap/components/cards"),
251
+ "sap.ushell.components.tiles.action": sap.ui.require.toUrl("sap/ushell_abap/components/tiles/action"),
252
+ "sap.ushell.components.tiles.applauncher": sap.ui.require.toUrl("sap/ushell_abap/components/tiles/applauncher"),
253
+ "sap.ushell.components.tiles.applauncherdynamic": sap.ui.require.toUrl("sap/ushell_abap/components/tiles/applauncherdynamic")
243
254
  }
244
255
  }
245
256
  };