@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.
- 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/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 +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js +53 -4
- 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 +5 -5
- 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/VisualizationInstantiationAdapter.js +76 -0
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/local/ClientSideTargetResolutionAdapter.js +123 -0
- package/src/main/js/sap/ushell_abap/adapters/local/FlpLaunchPageAdapter.js +115 -0
- package/src/main/js/sap/ushell_abap/adapters/local/MenuAdapter.js +92 -0
- package/src/main/js/sap/ushell_abap/adapters/local/PageBuildingAdapter.js +242 -0
- package/src/main/js/sap/ushell_abap/adapters/local/PagePersistenceAdapter.js +308 -0
- package/src/main/js/sap/ushell_abap/api/S4MyHome.js +58 -0
- package/src/main/js/sap/ushell_abap/bootstrap/DirectAppStart.js +25 -13
- package/src/main/js/sap/ushell_abap/bootstrap/PlatformConfig.js +5 -5
- package/src/main/js/sap/ushell_abap/bootstrap/abapConstants.js +11 -0
- package/src/main/js/sap/ushell_abap/components/SideNavigation/modules/Favorites.js +549 -0
- package/src/main/js/sap/ushell_abap/components/SideNavigation/modules/GenericNavigationListProvider.js +241 -0
- package/src/main/js/sap/ushell_abap/components/cards/Card.controller.js +117 -0
- package/src/main/js/sap/ushell_abap/components/cards/Card.view.xml +11 -0
- package/src/main/js/sap/ushell_abap/components/cards/Configuration.controller.js +280 -0
- package/src/main/js/sap/ushell_abap/components/cards/Configuration.view.xml +27 -0
- package/src/main/js/sap/ushell_abap/components/cards/ManifestPropertyHelper.js +298 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/Component.js +6 -6
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/TransactionCode.controller.js +9 -8
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n.properties +10 -10
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ar.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_bg.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ca.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_cnr.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_cs.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_cy.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_da.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_de.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_el.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_GB.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_US_sappsd.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_US_saprigi.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_en_US_saptrc.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_es.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_es_MX.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_et.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_fi.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_fr.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_fr_CA.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_hi.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_hr.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_hu.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_id.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_it.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_iw.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ja.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_kk.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ko.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_lt.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_lv.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_mk.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ms.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_nl.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_no.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_pl.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_pt.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_pt_PT.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ro.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_ru.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sh.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sk.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sl.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sr.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_sv.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_th.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_tr.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_uk.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_vi.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_zh_CN.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/i18n/i18n_zh_TW.properties +10 -0
- package/src/main/js/sap/ushell_abap/components/settings/TransactionCode/manifest.json +1 -1
- package/src/main/js/sap/ushell_abap/components/tiles/action/ActionTile.controller.js +189 -0
- package/src/main/js/sap/ushell_abap/components/tiles/action/ActionTile.view.xml +13 -0
- package/src/main/js/sap/ushell_abap/components/tiles/action/Configuration.controller.js +193 -0
- package/src/main/js/sap/ushell_abap/components/tiles/action/Configuration.view.xml +333 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncher/Component.js +41 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncher/Configuration.controller.js +114 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncher/Configuration.view.xml +208 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncher/StaticTile.controller.js +497 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncher/StaticTile.view.js +61 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/Component.js +45 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/Configuration.controller.js +113 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/Configuration.view.xml +231 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/DynamicTile.controller.js +729 -0
- package/src/main/js/sap/ushell_abap/components/tiles/applauncherdynamic/DynamicTile.view.js +106 -0
- package/src/main/js/sap/ushell_abap/library.js +12 -1
- package/src/main/js/sap/ushell_abap/messagebundle.properties +5 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +7 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +6 -2
- package/src/main/js/sap/ushell_abap/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell_abap/ui/VisualizationInstantiation/ChipInstanceWrapper.js +248 -0
- package/src/main/js/sap/ushell_abap/ui/VisualizationInstantiation/VizInstanceAbap.js +134 -0
- package/src/main/js/sap/ushell_abap/ui/VisualizationInstantiation/VizInstanceAbapLink.js +145 -0
- package/src/main/js/sap/ushell_abap/utils/UserPersonalization.js +51 -4
- 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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
|
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
|
|
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 (
|
|
360
|
-
Localization.setLanguage(sLanguage,
|
|
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
|
};
|