@sapui5/sap.ushell_abap 1.150.0 → 1.151.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 +5 -5
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +7 -7
- 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 +5 -5
- 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 +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +2 -2
- 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 +4 -4
- 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/appRuntime/ui5/libsPreload.js +4 -0
- package/src/main/js/sap/ushell_abap/base/Ui2Error.js +46 -0
- package/src/main/js/sap/ushell_abap/base/Ui2Utils.js +710 -0
- package/src/main/js/sap/ushell_abap/bootstrap/LoadLaunchpad.js +6 -0
- package/src/main/js/sap/ushell_abap/bootstrap/PageSetsRequestHandler.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/StartupRequestHandler.js +6 -6
- package/src/main/js/sap/ushell_abap/bootstrap/abapConstants.js +1 -0
- package/src/main/js/sap/ushell_abap/library.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +4 -4
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +5 -37
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +3 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +3 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +5 -703
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/actions.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/bag.js +3 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +3 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +3 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +1 -1
- package/src/main/js/sap/ushell_abap/services/NavigationDataProvider.js +126 -0
- package/ui5.yaml +32 -183
|
@@ -14,6 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
"sap/ushell_abap/pbServices/ui2/Contracts",
|
|
15
15
|
"sap/ushell/Container",
|
|
16
16
|
"sap/ushell/iconfonts",
|
|
17
|
+
"sap/ushell/utils/LogScope",
|
|
17
18
|
"sap/ushell_abap/integration/WebSsoBridge"
|
|
18
19
|
], (
|
|
19
20
|
Log,
|
|
@@ -27,6 +28,7 @@ sap.ui.define([
|
|
|
27
28
|
Contracts,
|
|
28
29
|
Container,
|
|
29
30
|
IconFonts,
|
|
31
|
+
LogScope,
|
|
30
32
|
WebSsoBridge
|
|
31
33
|
) => {
|
|
32
34
|
"use strict";
|
|
@@ -48,6 +50,10 @@ sap.ui.define([
|
|
|
48
50
|
* @private
|
|
49
51
|
*/
|
|
50
52
|
async run () {
|
|
53
|
+
// Apply targeted log-level scopes before the Container starts up any service.
|
|
54
|
+
// Lets ?sap-ushell-xx-log-scope=navigation,fesr lift just those components to DEBUG without flooding DevTools.
|
|
55
|
+
LogScope.applyFromUrl();
|
|
56
|
+
|
|
51
57
|
const aParallelPromises = [];
|
|
52
58
|
|
|
53
59
|
// Call UI5 Core APIs only after the core is initialized
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define([
|
|
6
6
|
"sap/base/util/ObjectPath",
|
|
7
|
-
"sap/ushell_abap/bootstrap/XhrFactory",
|
|
8
|
-
"sap/ushell_abap/pbServices/ui2/Utils",
|
|
9
7
|
"sap/ushell/base/SAPBusinessClientEnablement",
|
|
10
|
-
"sap/ushell/bootstrap/Config"
|
|
8
|
+
"sap/ushell/bootstrap/Config",
|
|
9
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
10
|
+
"sap/ushell_abap/bootstrap/XhrFactory"
|
|
11
11
|
], (
|
|
12
12
|
ObjectPath,
|
|
13
|
-
XhrFactory,
|
|
14
|
-
ui2Utils,
|
|
15
13
|
SAPBusinessClientEnablement,
|
|
16
|
-
BootstrapConfig
|
|
14
|
+
BootstrapConfig,
|
|
15
|
+
ui2Utils,
|
|
16
|
+
XhrFactory
|
|
17
17
|
) => {
|
|
18
18
|
"use strict";
|
|
19
19
|
|
|
@@ -7,8 +7,8 @@ sap.ui.define([
|
|
|
7
7
|
"sap/base/Log",
|
|
8
8
|
"sap/ushell_abap/pbServices/ui2/Bag",
|
|
9
9
|
"sap/ushell_abap/pbServices/ui2/ChipDefinition",
|
|
10
|
-
"sap/ushell_abap/
|
|
11
|
-
"sap/ushell_abap/
|
|
10
|
+
"sap/ushell_abap/base/Ui2Error",
|
|
11
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
12
12
|
"sap/ushell/utils/DeprecationLog"
|
|
13
13
|
], (
|
|
14
14
|
Log,
|
|
@@ -9,8 +9,8 @@ this.sap = this.sap || {};
|
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/base/Log",
|
|
11
11
|
"sap/ushell_abap/pbServices/ui2/Bag",
|
|
12
|
-
"sap/ushell_abap/
|
|
13
|
-
"sap/ushell_abap/
|
|
12
|
+
"sap/ushell_abap/base/Ui2Error",
|
|
13
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
14
14
|
"sap/ushell/utils/DeprecationLog"
|
|
15
15
|
], (
|
|
16
16
|
Log,
|
|
@@ -966,7 +966,7 @@ sap.ui.define([
|
|
|
966
966
|
|
|
967
967
|
/**
|
|
968
968
|
* Returns the map of bags for this CHIP instance
|
|
969
|
-
* @returns {sap.ushell_abap.
|
|
969
|
+
* @returns {sap.ushell_abap.base.Ui2Utils.Map} The map of bags
|
|
970
970
|
*
|
|
971
971
|
* @since 1.113.0
|
|
972
972
|
* @private
|
|
@@ -977,7 +977,7 @@ sap.ui.define([
|
|
|
977
977
|
|
|
978
978
|
/**
|
|
979
979
|
* Overwrites the map of bags for this CHIP instance
|
|
980
|
-
* @param {sap.ushell_abap.
|
|
980
|
+
* @param {sap.ushell_abap.base.Ui2Utils.Map} oNewBags The new map of bags
|
|
981
981
|
*
|
|
982
982
|
* @since 1.113.0
|
|
983
983
|
* @private
|
|
@@ -1,44 +1,12 @@
|
|
|
1
1
|
// Copyright (c) 2009-2026 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @fileOverview
|
|
4
|
+
* @fileOverview Deprecated re-export shim. Use "sap/ushell_abap/base/Ui2Error" instead.
|
|
5
|
+
* @deprecated since 1.147.0 - use sap/ushell_abap/base/Ui2Error
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/base/
|
|
9
|
-
], (
|
|
10
|
-
Log
|
|
11
|
-
) => {
|
|
8
|
+
"sap/ushell_abap/base/Ui2Error"
|
|
9
|
+
], (Ui2Error) => {
|
|
12
10
|
"use strict";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Creates an <code>Error</code> object and logs the error message immediately.
|
|
16
|
-
*
|
|
17
|
-
* @param {string} sMessage
|
|
18
|
-
* the error message
|
|
19
|
-
* @param {string} [sComponent]
|
|
20
|
-
* the error component to log
|
|
21
|
-
* @param {boolean} [bLogError=true]
|
|
22
|
-
* defines if the error is logged directly in the constructor; In case the error is going to be catched,
|
|
23
|
-
* the logging may be misleading
|
|
24
|
-
*
|
|
25
|
-
* @class
|
|
26
|
-
* @since 1.2.0
|
|
27
|
-
*/
|
|
28
|
-
function SrvcError (sMessage, sComponent, bLogError) {
|
|
29
|
-
// see also redundant declaration in utils.js which has to be in sync
|
|
30
|
-
const oError = new Error(sMessage); // reuse Error constructor to benefit from it (e.g. stack)
|
|
31
|
-
|
|
32
|
-
// by default the error should be logged (as always in this project)
|
|
33
|
-
bLogError = bLogError === undefined ? true : bLogError;
|
|
34
|
-
|
|
35
|
-
oError.name = "Error";
|
|
36
|
-
if (bLogError === true) {
|
|
37
|
-
Log.error(sMessage, null, sComponent);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return oError;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return SrvcError;
|
|
11
|
+
return Ui2Error;
|
|
44
12
|
});
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/ushell_abap/pbServices/ui2/Chip",
|
|
11
|
-
"sap/ushell_abap/
|
|
11
|
+
"sap/ushell_abap/base/Ui2Error",
|
|
12
12
|
"sap/ushell_abap/pbServices/ui2/Catalog",
|
|
13
13
|
"sap/ushell_abap/pbServices/ui2/ChipDefinition",
|
|
14
14
|
"sap/ushell_abap/pbServices/ui2/PageBuildingService",
|
|
15
15
|
"sap/ushell_abap/pbServices/ui2/ChipInstance",
|
|
16
16
|
"sap/ushell_abap/pbServices/ui2/Page",
|
|
17
17
|
"sap/ushell_abap/pbServices/ui2/PageSet",
|
|
18
|
-
"sap/ushell_abap/
|
|
18
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
19
19
|
"sap/base/Log",
|
|
20
20
|
"sap/base/util/LoaderExtensions"
|
|
21
21
|
], (
|
|
@@ -322,7 +322,7 @@ sap.ui.define([
|
|
|
322
322
|
// cache hit: either array of load handlers, or CHIP definition, or error message
|
|
323
323
|
oChipDefinition = aLoadHandlers = mChipDefinitions[sUrl];
|
|
324
324
|
|
|
325
|
-
if (
|
|
325
|
+
if (Array.isArray(aLoadHandlers)) {
|
|
326
326
|
// wait until loading has finished (one way or the other)
|
|
327
327
|
aLoadHandlers.push(fnSuccess, fnFailure);
|
|
328
328
|
} else if (oChipDefinition instanceof ChipDefinition) {
|
|
@@ -8,9 +8,9 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/thirdparty/datajs",
|
|
9
9
|
"sap/base/i18n/Localization",
|
|
10
10
|
"sap/ui/core/Supportability",
|
|
11
|
-
"sap/ushell_abap/
|
|
11
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
12
12
|
"sap/ushell_abap/pbServices/ui2/ODataService",
|
|
13
|
-
"sap/ushell_abap/
|
|
13
|
+
"sap/ushell_abap/base/Ui2Error",
|
|
14
14
|
"sap/base/Log",
|
|
15
15
|
"sap/ui/thirdparty/jquery"
|
|
16
16
|
], (
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* parameter of (each) reject call
|
|
39
39
|
*/
|
|
40
40
|
function reject (vDeferred, oResponse) {
|
|
41
|
-
if (
|
|
41
|
+
if (Array.isArray(vDeferred)) {
|
|
42
42
|
// a failed change set: reject each single jQuery.Deferred in the same way
|
|
43
43
|
vDeferred.forEach((oDeferred) => {
|
|
44
44
|
oDeferred.reject(oResponse);
|
|
@@ -9,8 +9,8 @@ this.sap = this.sap || {};
|
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/ushell_abap/pbServices/ui2/Bag",
|
|
11
11
|
"sap/ushell_abap/pbServices/ui2/AllCatalogs",
|
|
12
|
-
"sap/ushell_abap/
|
|
13
|
-
"sap/ushell_abap/
|
|
12
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
13
|
+
"sap/ushell_abap/base/Ui2Error",
|
|
14
14
|
"sap/base/Log",
|
|
15
15
|
"sap/ui/thirdparty/jquery"
|
|
16
16
|
], (
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* and CHIP instance.
|
|
7
7
|
*/
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
"sap/ushell_abap/
|
|
9
|
+
"sap/ushell_abap/base/Ui2Utils",
|
|
10
10
|
"sap/ushell_abap/pbServices/ui2/ODataService",
|
|
11
11
|
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
12
|
-
"sap/ushell_abap/
|
|
12
|
+
"sap/ushell_abap/base/Ui2Error"
|
|
13
13
|
], (
|
|
14
14
|
Utils,
|
|
15
15
|
ODataService,
|