@sapui5/sap.ushell_abap 1.121.0 → 1.121.2
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 +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/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 +62 -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 -2
- package/src/main/js/sap/ushell_abap/library.js +1 -1
package/package.json
CHANGED
|
@@ -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.121.
|
|
5
|
+
<version>1.121.2</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
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Copyright (c) 2009-2023 SAP SE, All Rights Reserved
|
|
2
|
+
/**
|
|
3
|
+
* @fileOverview
|
|
4
|
+
* This module tries to transfer several parameters to the Help Plugin aka. SAP Companion.
|
|
5
|
+
* These parameters can be used as conditions for hotspots and dialogs, e.g. to control their
|
|
6
|
+
* visibility based on the "environment" (e.g. "Spaces Mode active?" or "Productive System?").
|
|
7
|
+
*/
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/base/Log",
|
|
10
|
+
"sap/base/util/Deferred"
|
|
11
|
+
], function (
|
|
12
|
+
Log,
|
|
13
|
+
Deferred
|
|
14
|
+
) {
|
|
15
|
+
"use strict";
|
|
16
|
+
var Setter = {};
|
|
17
|
+
Setter._timeoutCounter = 120;
|
|
18
|
+
Setter._ushellConfig = undefined;
|
|
19
|
+
|
|
20
|
+
Setter.run = function () {
|
|
21
|
+
var counter = 0;
|
|
22
|
+
var oDeferred = new Deferred();
|
|
23
|
+
|
|
24
|
+
// The ushell config is not yet prepared when the module is loaded, therefore set only on "run", not earlier
|
|
25
|
+
if (Setter._ushellConfig === undefined) {
|
|
26
|
+
Setter._ushellConfig = window["sap-ushell-config"];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var fnTryToSetConditions = function () {
|
|
30
|
+
if (window.Help4 !== undefined) {
|
|
31
|
+
const oSpacesConfig = Setter._ushellConfig.ushell.spaces;
|
|
32
|
+
var oConditions = {};
|
|
33
|
+
// Classic Homepage is active for the current user
|
|
34
|
+
oConditions.FLPClassicHPActiveCurrentUser = !oSpacesConfig.enabled;
|
|
35
|
+
// 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
|
+
oConditions.FLPClassicHPPossActiveAllUsers = (oSpacesConfig.configurable === false && oSpacesConfig.enabled === false) || oSpacesConfig.configurable === true;
|
|
37
|
+
// Role of the used system client. Possible values: p = Production, t = Test, c = Customizing, d = Demonstration, e = Education, s = SAP reference
|
|
38
|
+
oConditions.FLPClientRole = Setter._ushellConfig.startupConfig.clientRole;
|
|
39
|
+
window.Help4.API.setConditions(oConditions);
|
|
40
|
+
Log.info("Conditions transferred to SAP Compagnion / SAP Help: " + JSON.stringify(oConditions));
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
};
|
|
45
|
+
var fnKeepTrying = function () {
|
|
46
|
+
if (counter < Setter._timeoutCounter) {
|
|
47
|
+
counter++;
|
|
48
|
+
if (!fnTryToSetConditions()) {
|
|
49
|
+
setTimeout(fnKeepTrying, 1000);
|
|
50
|
+
} else {
|
|
51
|
+
oDeferred.resolve();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
oDeferred.reject();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
fnKeepTrying();
|
|
59
|
+
return oDeferred.promise;
|
|
60
|
+
};
|
|
61
|
+
return Setter;
|
|
62
|
+
});
|
|
@@ -12,7 +12,8 @@ sap.ui.define([
|
|
|
12
12
|
"sap/base/util/ObjectPath",
|
|
13
13
|
"sap/base/Log",
|
|
14
14
|
"sap/ushell_abap/pbServices/ui2/Utils",
|
|
15
|
-
"sap/ushell/bootstrap/common/common.util"
|
|
15
|
+
"sap/ushell/bootstrap/common/common.util",
|
|
16
|
+
"./SAPCompanionConditionSetter"
|
|
16
17
|
],
|
|
17
18
|
function (
|
|
18
19
|
oXhrLibLoader,
|
|
@@ -26,7 +27,8 @@ function (
|
|
|
26
27
|
ObjectPath,
|
|
27
28
|
Log,
|
|
28
29
|
ui2Utils,
|
|
29
|
-
commonUtils
|
|
30
|
+
commonUtils,
|
|
31
|
+
SAPCompanionConditionSetter
|
|
30
32
|
) {
|
|
31
33
|
"use strict";
|
|
32
34
|
|
|
@@ -729,6 +731,8 @@ function (
|
|
|
729
731
|
|
|
730
732
|
|
|
731
733
|
function afterBootstrap () {
|
|
734
|
+
SAPCompanionConditionSetter.run();
|
|
735
|
+
|
|
732
736
|
var sShellHash = oBoottask._getShellHash();
|
|
733
737
|
|
|
734
738
|
if (isHomepageHash(sShellHash) && window["sap-ushell-config"].ushell &&
|