@sapui5/sap.ushell_abap 1.121.1 → 1.122.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 +2 -2
- package/src/main/js/sap/ushell_abap/.library +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +7 -5
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +8 -6
- 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 +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 +18 -0
- 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/SAPCompanionConditionSetter.js +4 -0
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +6 -4
- package/src/main/js/sap/ushell_abap/integration/fileshares/NavTargetResolutionFileShareSupport.js +2 -2
- package/src/main/js/sap/ushell_abap/library.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +3 -3
- package/ui5.yaml +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapui5/sap.ushell_abap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.122.0",
|
|
4
4
|
"description": "SAPUI5 Library sap.ushell_abap",
|
|
5
5
|
"homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
|
|
6
6
|
"keywords": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build-themes": "cross-env-shell ui5 build --exclude-task=* --include-task=buildThemes --framework-version $npm_package_version"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ui5/cli": "^3.
|
|
18
|
+
"@ui5/cli": "^3.9.1",
|
|
19
19
|
"cross-env": "^7.0.3"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -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.122.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
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.122.0
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/util/ObjectPath",
|
|
@@ -11,7 +11,8 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ushell/utils",
|
|
12
12
|
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
13
13
|
"sap/ushell_abap/pbServices/ui2/Error",
|
|
14
|
-
"sap/ushell_abap/pbServices/ui2/ODataService"
|
|
14
|
+
"sap/ushell_abap/pbServices/ui2/ODataService",
|
|
15
|
+
"sap/ushell/Container"
|
|
15
16
|
], function (
|
|
16
17
|
ObjectPath,
|
|
17
18
|
jQuery,
|
|
@@ -19,7 +20,8 @@ sap.ui.define([
|
|
|
19
20
|
utils,
|
|
20
21
|
ODataWrapper,
|
|
21
22
|
SrvcError,
|
|
22
|
-
ODataService
|
|
23
|
+
ODataService,
|
|
24
|
+
Container
|
|
23
25
|
) {
|
|
24
26
|
"use strict";
|
|
25
27
|
|
|
@@ -41,8 +43,8 @@ sap.ui.define([
|
|
|
41
43
|
var sAppStateServiceURL = (ObjectPath.get("services.appState.baseUrl", oConfig) || "/sap/opu/odata/UI2/INTEROP") + "/";
|
|
42
44
|
var oODataWrapperSettings = {
|
|
43
45
|
baseUrl: sAppStateServiceURL,
|
|
44
|
-
"sap-language":
|
|
45
|
-
"sap-client":
|
|
46
|
+
"sap-language": Container.getUser().getLanguage(),
|
|
47
|
+
"sap-client": Container.getLogonSystem().getClient()
|
|
46
48
|
};
|
|
47
49
|
this._oWrapper = ODataWrapper.createODataWrapper(oODataWrapperSettings);
|
|
48
50
|
function fnDefaultFailure (oMessage) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* <li>provide the resolveHashFragmentFallback function, a fallback method called by ClientSideTargetResolution service.</li>
|
|
10
10
|
* </ul>
|
|
11
11
|
*
|
|
12
|
-
* @version 1.
|
|
12
|
+
* @version 1.122.0
|
|
13
13
|
*/
|
|
14
14
|
sap.ui.define([
|
|
15
15
|
"sap/ui/thirdparty/jquery",
|
|
@@ -21,8 +21,9 @@ sap.ui.define([
|
|
|
21
21
|
"sap/base/Log",
|
|
22
22
|
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
23
23
|
"sap/ushell_abap/pbServices/ui2/Utils",
|
|
24
|
-
"sap/ui/thirdparty/URI"
|
|
25
|
-
|
|
24
|
+
"sap/ui/thirdparty/URI",
|
|
25
|
+
"sap/ushell/Container"
|
|
26
|
+
], function(
|
|
26
27
|
jQuery,
|
|
27
28
|
ObjectPath,
|
|
28
29
|
isPlainObject,
|
|
@@ -32,7 +33,8 @@ sap.ui.define([
|
|
|
32
33
|
Log,
|
|
33
34
|
ODataWrapper,
|
|
34
35
|
Utils,
|
|
35
|
-
URI
|
|
36
|
+
URI,
|
|
37
|
+
Container
|
|
36
38
|
) {
|
|
37
39
|
"use strict";
|
|
38
40
|
|
|
@@ -85,7 +87,7 @@ sap.ui.define([
|
|
|
85
87
|
var ClientSideTargetResolutionAdapter = function (oSystem, sParameters, oAdapterConfig) {
|
|
86
88
|
var that = this;
|
|
87
89
|
// as the method getProductVersion returns the product name, the following holds true.
|
|
88
|
-
var oContainer =
|
|
90
|
+
var oContainer = Container,
|
|
89
91
|
sProductName = "";
|
|
90
92
|
|
|
91
93
|
if (oContainer) {
|
|
@@ -1236,7 +1238,7 @@ sap.ui.define([
|
|
|
1236
1238
|
|
|
1237
1239
|
var oParams = urlParsing.parseParameters(aMatches[0]);
|
|
1238
1240
|
|
|
1239
|
-
|
|
1241
|
+
Container.getServiceAsync("ShellNavigationInternal")
|
|
1240
1242
|
.then(function (oShellNavigationInternal) {
|
|
1241
1243
|
oShellNavigationInternal.compactParams(oParams, aNotCompactedWDAParameters, undefined /* no Component */)
|
|
1242
1244
|
.done(function (oCompactedParams) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview The NavTargetResolutionInternal adapter for the ABAP platform.
|
|
5
|
+
*
|
|
6
|
+
* This adapter is not implemented in the ABAP platform, but its stub is here
|
|
7
|
+
* as it is always loaded by the Container currently. NavTargetResolutionInternal
|
|
8
|
+
* service now calls the ClientSideTargetResolution service in the ABAP
|
|
9
|
+
* platform.
|
|
10
|
+
*
|
|
11
|
+
* @version 1.122.0
|
|
12
|
+
* @since 1.121
|
|
13
|
+
*/
|
|
14
|
+
sap.ui.define([], function () {
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
return function () { };
|
|
18
|
+
});
|
|
@@ -13,6 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
Deferred
|
|
14
14
|
) {
|
|
15
15
|
"use strict";
|
|
16
|
+
|
|
16
17
|
var Setter = {};
|
|
17
18
|
Setter._timeoutCounter = 120;
|
|
18
19
|
Setter._ushellConfig = undefined;
|
|
@@ -30,18 +31,21 @@ sap.ui.define([
|
|
|
30
31
|
if (window.Help4 !== undefined) {
|
|
31
32
|
const oSpacesConfig = Setter._ushellConfig.ushell.spaces;
|
|
32
33
|
var oConditions = {};
|
|
34
|
+
|
|
33
35
|
// Classic Homepage is active for the current user
|
|
34
36
|
oConditions.FLPClassicHPActiveCurrentUser = !oSpacesConfig.enabled;
|
|
35
37
|
// Classic Homepage is possibly active for any user (either because it is enforced for every user or because it can be configured by the users themselves)
|
|
36
38
|
oConditions.FLPClassicHPPossActiveAllUsers = (oSpacesConfig.configurable === false && oSpacesConfig.enabled === false) || oSpacesConfig.configurable === true;
|
|
37
39
|
// Role of the used system client. Possible values: p = Production, t = Test, c = Customizing, d = Demonstration, e = Education, s = SAP reference
|
|
38
40
|
oConditions.FLPClientRole = Setter._ushellConfig.startupConfig.clientRole;
|
|
41
|
+
|
|
39
42
|
window.Help4.API.setConditions(oConditions);
|
|
40
43
|
Log.info("Conditions transferred to SAP Compagnion / SAP Help: " + JSON.stringify(oConditions));
|
|
41
44
|
return true;
|
|
42
45
|
}
|
|
43
46
|
return false;
|
|
44
47
|
};
|
|
48
|
+
|
|
45
49
|
var fnKeepTrying = function () {
|
|
46
50
|
if (counter < Setter._timeoutCounter) {
|
|
47
51
|
counter++;
|
|
@@ -549,7 +549,7 @@ function (
|
|
|
549
549
|
// configuration as it uses the LaunchPage adapter inside.
|
|
550
550
|
oUshellConfig.services.VisualizationDataProvider = {
|
|
551
551
|
adapter: {
|
|
552
|
-
module: "sap.ushell_abap.adapters.abap.
|
|
552
|
+
module: "sap.ushell_abap.adapters.abap.FlpLaunchPageAdapter",
|
|
553
553
|
config: {
|
|
554
554
|
services: {
|
|
555
555
|
targetMappings: oStartupResult?.services?.targetMappings,
|
|
@@ -731,7 +731,9 @@ function (
|
|
|
731
731
|
|
|
732
732
|
|
|
733
733
|
function afterBootstrap () {
|
|
734
|
-
SAPCompanionConditionSetter.run()
|
|
734
|
+
SAPCompanionConditionSetter.run().catch(() => {
|
|
735
|
+
Log.info("SAPCompanion conditions could not be set.");
|
|
736
|
+
});
|
|
735
737
|
|
|
736
738
|
var sShellHash = oBoottask._getShellHash();
|
|
737
739
|
|
|
@@ -755,8 +757,8 @@ function (
|
|
|
755
757
|
// resolve the shell hash and try to load a UI5 component for it; if successful,
|
|
756
758
|
// the application context for the component will be attached to the resolution result
|
|
757
759
|
// for non-UI5 targets, it will be empty
|
|
758
|
-
sap.ushell.Container.getServiceAsync("
|
|
759
|
-
|
|
760
|
+
sap.ushell.Container.getServiceAsync("NavTargetResolutionInternal").then(function (oNavTargetResolutionInternal) {
|
|
761
|
+
oNavTargetResolutionInternal.resolveHashFragment("#" + oBoottask._getShellHash())
|
|
760
762
|
.done(function (oResolutionResult) {
|
|
761
763
|
sap.ui.require(["sap/ushell/services/AppConfiguration"], function (AppConfiguration) {
|
|
762
764
|
AppConfiguration.setCurrentApplication(oResolutionResult);
|
package/src/main/js/sap/ushell_abap/integration/fileshares/NavTargetResolutionFileShareSupport.js
CHANGED
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
* Provides the configuration for integration with remote file shares.
|
|
14
14
|
* <p>
|
|
15
15
|
* This is the <em>FileShareSupport</em> strategy implementation for usage in the FLP on the ABAP platform.
|
|
16
|
-
* It uses the <code>
|
|
16
|
+
* It uses the <code>NavTargetResolutionInternal</code> service to determine whether the Fiori App for the file integration
|
|
17
17
|
* is assigned to the currently logged on user (controls the enablement) and then reads the data source
|
|
18
18
|
* properties for the file share integration service from the app manifest.
|
|
19
19
|
* </p>
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
*/
|
|
44
44
|
NavTargetResolutionFileShareSupport.getDataSource = function () {
|
|
45
45
|
if (!NavTargetResolutionFileShareSupport._getDataSourcePromise) {
|
|
46
|
-
NavTargetResolutionFileShareSupport._getDataSourcePromise = sap.ushell.Container.getServiceAsync("
|
|
46
|
+
NavTargetResolutionFileShareSupport._getDataSourcePromise = sap.ushell.Container.getServiceAsync("NavTargetResolutionInternal").then(function (oNavTargetResolutionService) {
|
|
47
47
|
return oNavTargetResolutionService.resolveHashFragment(FILE_SHARE_INTENT); // jQuery promise is implicitly converted to native
|
|
48
48
|
}).then(function (oResolvedHashFragment) {
|
|
49
49
|
var sManifestUrl = oResolvedHashFragment && oResolvedHashFragment.applicationDependencies && oResolvedHashFragment.applicationDependencies.manifest;
|
|
@@ -247,7 +247,7 @@ sap.ui.define([
|
|
|
247
247
|
* @param {string} sUrl
|
|
248
248
|
* e.g. "/sap/bc/ui5_ui5/application/path"
|
|
249
249
|
* URL to be changed
|
|
250
|
-
* @param {
|
|
250
|
+
* @param {RegExp} oPattern
|
|
251
251
|
* e.g /^\/sap\/bc\/ui5_ui5\//
|
|
252
252
|
* RegExp to determine if sUrl matches and needs to be extended by the cache buster token
|
|
253
253
|
* sToken
|
|
@@ -405,7 +405,7 @@ sap.ui.define([
|
|
|
405
405
|
// /e.g. ?cb=~xxxxxx~
|
|
406
406
|
// also consider URLs with query parameters and fragments
|
|
407
407
|
// this case happens during navigation, because this method is both called from
|
|
408
|
-
//
|
|
408
|
+
// NavTargetResolutionInternal service as well as from the stubbed jQuery.sap.registerModulePath method
|
|
409
409
|
//
|
|
410
410
|
// syntax for application cache-buster contains now an additional scope qualifier that can be
|
|
411
411
|
// either empty, "R" for resource, "5" for UI5 app, "W" for web app and "C" for custom
|
|
@@ -522,7 +522,7 @@ sap.ui.define([
|
|
|
522
522
|
var aKeyValuePairs;
|
|
523
523
|
var aKeyValuePairsLength;
|
|
524
524
|
// Note: location.search starts with "?" if not empty
|
|
525
|
-
var
|
|
525
|
+
var sSearch = arguments.length > 0 ? sSearchString : location.search;
|
|
526
526
|
|
|
527
527
|
if (sSearch && sSearch.charAt(0) !== "?") {
|
|
528
528
|
throw new SrvcError("Illegal search string " + sSearch);
|
package/ui5.yaml
CHANGED
|
@@ -355,6 +355,7 @@ builder:
|
|
|
355
355
|
- sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js
|
|
356
356
|
- sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js
|
|
357
357
|
- sap/ushell/adapters/local/NavTargetResolutionAdapter.js
|
|
358
|
+
- sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js
|
|
358
359
|
- sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js
|
|
359
360
|
- sap/ushell/adapters/local/UserInfoAdapter.js
|
|
360
361
|
- sap/ushell/api/RTA.js
|
|
@@ -398,6 +399,7 @@ builder:
|
|
|
398
399
|
- sap/ushell/services/Menu.js
|
|
399
400
|
- sap/ushell/services/Navigation.js
|
|
400
401
|
- sap/ushell/services/NavTargetResolution.js
|
|
402
|
+
- sap/ushell/services/NavTargetResolutionInternal.js
|
|
401
403
|
- sap/ushell/services/NavigationDataProvider.js
|
|
402
404
|
- sap/ushell/services/PageBuilding.js
|
|
403
405
|
- sap/ushell/services/PagePersistence.js
|
|
@@ -433,6 +435,7 @@ builder:
|
|
|
433
435
|
- sap/ushell_abap/adapters/abap/FlpLaunchPageAdapter.js
|
|
434
436
|
- sap/ushell_abap/adapters/abap/MenuAdapter.js
|
|
435
437
|
- sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js
|
|
438
|
+
- sap/ushell_abap/adapters/abap/NavTargetResolutionInternalAdapter.js
|
|
436
439
|
- sap/ushell_abap/adapters/abap/PageBuildingAdapter.js
|
|
437
440
|
- sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js
|
|
438
441
|
- sap/ushell_abap/adapters/abap/PersonalizationAdapter.js
|