@sapui5/sap.ushell_abap 1.111.1 → 1.112.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 +6 -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/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/LaunchPageAdapter.js +6 -6
- 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/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/abap.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.constants.js +10 -4
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.LibLoader.js +21 -0
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.configure.js +9 -31
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.handler.js +23 -21
- package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +27 -31
- package/src/main/js/sap/ushell_abap/library.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +41 -51
- package/src/main/js/sap/ushell_abap/thirdparty/sap-xhrlib-esm-dbg.js +3490 -0
- package/src/main/js/sap/ushell_abap/thirdparty/sap-xhrlib-esm.js +5 -0
- package/ui5.yaml +11 -9
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhrlogon.load.js +0 -3260
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.
|
|
5
|
+
<version>1.112.0</version>
|
|
6
6
|
<copyright>Copyright (c) 2009-2022 SAP SE, All Rights Reserved</copyright>
|
|
7
7
|
<documentation>SAP library: sap.ushell_abap</documentation>
|
|
8
8
|
|
|
@@ -32,8 +32,13 @@
|
|
|
32
32
|
|
|
33
33
|
<appData>
|
|
34
34
|
<packaging xmlns="http://www.sap.com/ui5/buildext/packaging" version="2.0">
|
|
35
|
+
<module-infos>
|
|
36
|
+
<raw-module name="sap/ushell_abap/thirdparty/sap-xhrlib-esm-dbg.js" />
|
|
37
|
+
<raw-module name="sap/ushell_abap/thirdparty/sap-xhrlib-esm.js" />
|
|
38
|
+
</module-infos>
|
|
35
39
|
<all-in-one>
|
|
36
40
|
<exclude name="sap/ushell_abap/bootstrap/evo/abap.js" />
|
|
41
|
+
<exclude name="sap/ushell_abap/thirdparty/" />
|
|
37
42
|
<!-- excludes plugins from preload file -->
|
|
38
43
|
<exclude name="sap/ushell_abap/plugins/" />
|
|
39
44
|
<exclude name="sap/ushell_abap/support/plugins/" />
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileOverview The Unified Shell's page building adapter for the ABAP platform.
|
|
5
5
|
*
|
|
6
6
|
* @deprecated since 1.100
|
|
7
|
-
* @version 1.
|
|
7
|
+
* @version 1.112.0
|
|
8
8
|
*/
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/ui/thirdparty/URI",
|
|
@@ -1370,12 +1370,12 @@ sap.ui.define([
|
|
|
1370
1370
|
.done(resolve)
|
|
1371
1371
|
.fail(reject);
|
|
1372
1372
|
})
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
});
|
|
1373
|
+
.then(function (aGroups) {
|
|
1374
|
+
return Promise.allSettled(that._aOtherChipsPromises)
|
|
1375
|
+
.then(function () {
|
|
1376
|
+
return aGroups;
|
|
1378
1377
|
});
|
|
1378
|
+
});
|
|
1379
1379
|
};
|
|
1380
1380
|
|
|
1381
1381
|
/**
|
|
@@ -154,13 +154,19 @@ sap.ui.define([
|
|
|
154
154
|
"sap.ushell": true
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
-
// default for
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
// this setting is only evaluated by Fiori Elements framework and shall be removed in a future release
|
|
157
|
+
// default values for parameters used by SAPUI5 apps
|
|
158
|
+
// the default values are evaluated from "Manage Launchpad Settings"
|
|
159
|
+
// app via ConfigurationDefaults service and must therefore be defined in client constants
|
|
161
160
|
apps: {
|
|
161
|
+
// UI5_PLACEHOLDER_SCREEN parameter
|
|
162
|
+
// (was false in 2111)
|
|
163
|
+
// this setting is only evaluated by Fiori Elements framework and shall be removed in a future release
|
|
162
164
|
placeholder: {
|
|
163
165
|
enabled: true
|
|
166
|
+
},
|
|
167
|
+
// INPUTFIELD_SUGGESTIONS parameter
|
|
168
|
+
inputFieldSuggestions: {
|
|
169
|
+
enabled: true
|
|
164
170
|
}
|
|
165
171
|
}
|
|
166
172
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
|
+
|
|
3
|
+
sap.ui.define([
|
|
4
|
+
"sap/ushell/bootstrap/common/common.debug.mode",
|
|
5
|
+
], function (
|
|
6
|
+
DebugMode
|
|
7
|
+
) {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var pLoadXhrLib = new Promise(function (resolve) {
|
|
11
|
+
var sFileName = "sap/ushell_abap/thirdparty/sap-xhrlib-esm" + (DebugMode.isDebug() ? "-dbg" : "") + ".js";
|
|
12
|
+
var sPath = sap.ui.require.toUrl(sFileName);
|
|
13
|
+
import(sPath).then(function (oModule) {
|
|
14
|
+
resolve(oModule.xhrlib);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
getLib: function () {return pLoadXhrLib;}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -2,16 +2,12 @@
|
|
|
2
2
|
sap.ui.define([
|
|
3
3
|
"sap/ushell/bootstrap/common/common.util",
|
|
4
4
|
"sap/base/Log"
|
|
5
|
-
], function (
|
|
5
|
+
], function (
|
|
6
|
+
oUtils,
|
|
7
|
+
Log
|
|
8
|
+
) {
|
|
6
9
|
"use strict";
|
|
7
10
|
|
|
8
|
-
var oModule = {
|
|
9
|
-
start: start,
|
|
10
|
-
initXhrLogonIgnoreList: initXhrLogonIgnoreList,
|
|
11
|
-
createUi5ConnectedXhrLogger: createUi5ConnectedXhrLogger
|
|
12
|
-
};
|
|
13
|
-
return oModule;
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* Creates a logger for XMLHttpRequest(s) that logs errors, warnings, info
|
|
17
13
|
* and debug messages via Log.
|
|
@@ -58,27 +54,9 @@ sap.ui.define([
|
|
|
58
54
|
}
|
|
59
55
|
}
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* @param {object} oSapUshellContainer
|
|
67
|
-
* The active <code>sap.ushell.Container</code> instance to configure
|
|
68
|
-
* the logon manager into.
|
|
69
|
-
*
|
|
70
|
-
* @param {object} oXhrLogonLib XHR logon lib.
|
|
71
|
-
*
|
|
72
|
-
* @private
|
|
73
|
-
*/
|
|
74
|
-
function start (oSapUshellContainer, oXhrLogonLib) {
|
|
75
|
-
oXhrLogonLib.start();
|
|
76
|
-
|
|
77
|
-
oModule.initXhrLogonIgnoreList(oXhrLogonLib.XHRLogonManager.getInstance());
|
|
78
|
-
|
|
79
|
-
// configure logger
|
|
80
|
-
XMLHttpRequest.logger = createUi5ConnectedXhrLogger();
|
|
81
|
-
|
|
82
|
-
oSapUshellContainer.oFrameLogonManager = oXhrLogonLib.FrameLogonManager.getInstance();
|
|
83
|
-
}
|
|
57
|
+
var oModule = {
|
|
58
|
+
initXhrLogonIgnoreList: initXhrLogonIgnoreList,
|
|
59
|
+
createUi5ConnectedXhrLogger: createUi5ConnectedXhrLogger
|
|
60
|
+
};
|
|
61
|
+
return oModule;
|
|
84
62
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
sap.ui.define([
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"sap/ushell_abap/bootstrap/evo/abap.xhrlogon.LibLoader",
|
|
4
|
+
"sap/ushell_abap/bootstrap/evo/abap.xhrlogon.configure",
|
|
5
|
+
"sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils",
|
|
6
|
+
"sap/ushell_abap/bootstrap/evo/XhrLogonEventHandler",
|
|
7
7
|
"sap/base/Log"
|
|
8
8
|
], function (
|
|
9
|
-
|
|
9
|
+
oXhrLibLoader,
|
|
10
10
|
oConfigureXhrLogon,
|
|
11
11
|
oAbapUtils,
|
|
12
12
|
XhrLogonEventHandler,
|
|
@@ -39,25 +39,27 @@ sap.ui.define([
|
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
41
41
|
oHandler.initXhrLogon = function (oConfig) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
oXhrLibLoader.getLib().then(function (oXhrLogonLib) {
|
|
43
|
+
var sLogonMode = oHandler.getLogonMode(oConfig);
|
|
44
|
+
var oXhrLogonEventHandler = oHandler.createXhrLogonEventHandler(window, sLogonMode);
|
|
45
|
+
var oLogonManager = oXhrLogonLib.LogonManager.getInstance();
|
|
46
|
+
var oXHRLogonManager = oXhrLogonLib.XHRLogonManager.getInstance();
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
oXhrLogonLib.start();
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
if (sLogonMode === "reload" || sLogonMode === "logoffAndRedirect") {
|
|
51
|
+
oLogonManager.unregisterAllHandlers();
|
|
52
|
+
oLogonManager.registerAuthHandler("*", function (oEvent) {
|
|
53
|
+
oXhrLogonEventHandler.handleEvent(oEvent);
|
|
54
|
+
});
|
|
55
|
+
} else if (sLogonMode !== "frame") {
|
|
56
|
+
Log.warning("Unknown setting for xhrLogonMode: '" + sLogonMode + "'. Using default mode 'frame'.",
|
|
57
|
+
null, "sap.ushell_abap.bootstrap.evo.abap.xhrlogon.handler");
|
|
58
|
+
}
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
oXhrLogonLib.Log.set(oConfigureXhrLogon.createUi5ConnectedXhrLogger());
|
|
61
|
+
oConfigureXhrLogon.initXhrLogonIgnoreList(oXHRLogonManager);
|
|
62
|
+
});
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2009-2022 SAP SE, All Rights Reserved
|
|
2
2
|
|
|
3
3
|
sap.ui.define([
|
|
4
|
-
"
|
|
5
|
-
"sap/ushell/utils",
|
|
4
|
+
"sap/ushell_abap/bootstrap/evo/abap.xhrlogon.LibLoader",
|
|
6
5
|
"./abap.bootstrap.utils",
|
|
7
6
|
"./abap.request.startup",
|
|
8
7
|
"./abap.request.pageset",
|
|
@@ -15,8 +14,7 @@ sap.ui.define([
|
|
|
15
14
|
"sap/ushell_abap/pbServices/ui2/Utils"
|
|
16
15
|
],
|
|
17
16
|
function (
|
|
18
|
-
|
|
19
|
-
oUshellUtils,
|
|
17
|
+
oXhrLibLoader,
|
|
20
18
|
oAbapUtils,
|
|
21
19
|
oStartupHandler,
|
|
22
20
|
oPageSetHandler,
|
|
@@ -199,27 +197,24 @@ function (
|
|
|
199
197
|
/**
|
|
200
198
|
* Sets the given language and format settings in SAPUI5.
|
|
201
199
|
*
|
|
202
|
-
* @param {object} [oSettings]
|
|
203
|
-
*
|
|
204
|
-
* @param {string} [oSettings.
|
|
205
|
-
*
|
|
206
|
-
* @param {string} [oSettings.
|
|
207
|
-
*
|
|
208
|
-
* @param {string} [
|
|
209
|
-
* the number format
|
|
210
|
-
* @param {string} [oSettings.legacyTimeFormat]
|
|
211
|
-
* the time format
|
|
200
|
+
* @param {object} [oSettings] the options (may be undefined when nothing to apply)
|
|
201
|
+
* @param {string} [oSettings.language] the language
|
|
202
|
+
* @param {string} [oSettings.legacyDateFormat] the date format
|
|
203
|
+
* @param {string} [oSettings.legacyNumberFormat] the number format
|
|
204
|
+
* @param {string} [oSettings.legacyTimeFormat] the time format
|
|
205
|
+
* @param {object} [oCurrencyFormats] Currecnty Format Information
|
|
206
|
+
* @param {string} [sTimeZoneIana] IANA timezone
|
|
212
207
|
*
|
|
213
208
|
* @private
|
|
214
209
|
*/
|
|
215
210
|
function setSapui5Settings (oSettings, oCurrencyFormats, sTimeZoneIana) {
|
|
216
|
-
var
|
|
217
|
-
var oFormatSettings =
|
|
211
|
+
var Configuration = sap.ui.require("sap/ui/core/Configuration");
|
|
212
|
+
var oFormatSettings = Configuration.getFormatSettings();
|
|
218
213
|
|
|
219
214
|
Log.debug("setSapui5Settings()", JSON.stringify(oSettings),
|
|
220
215
|
"sap.ushell_abap.bootstrap.abap");
|
|
221
216
|
if (oSettings.language) {
|
|
222
|
-
|
|
217
|
+
Configuration.setLanguage(oSettings.language, oSettings.ABAPLanguage);
|
|
223
218
|
}
|
|
224
219
|
if (oSettings.legacyDateFormat) {
|
|
225
220
|
oFormatSettings.setLegacyDateFormat(oSettings.legacyDateFormat);
|
|
@@ -238,7 +233,7 @@ function (
|
|
|
238
233
|
oFormatSettings.addCustomCurrencies(oCurrencyFormats);
|
|
239
234
|
}
|
|
240
235
|
if (sTimeZoneIana !== "" && typeof sTimeZoneIana === "string") {
|
|
241
|
-
|
|
236
|
+
Configuration.setTimezone(sTimeZoneIana);
|
|
242
237
|
}
|
|
243
238
|
}
|
|
244
239
|
|
|
@@ -246,8 +241,8 @@ function (
|
|
|
246
241
|
* determine a theme from the startup result, propagating it into the configuration
|
|
247
242
|
* at window["sap-ushell-config"].services.Container.adapter.config.bootTheme
|
|
248
243
|
*
|
|
249
|
-
* @param {object}
|
|
250
|
-
*
|
|
244
|
+
* @param {object} oBootTheme the parsed response of the start-up service call
|
|
245
|
+
*
|
|
251
246
|
* @private
|
|
252
247
|
*/
|
|
253
248
|
function copyThemeToContainerAdapterConfig (oBootTheme) {
|
|
@@ -581,7 +576,7 @@ function (
|
|
|
581
576
|
* the result as a JSON object
|
|
582
577
|
*/
|
|
583
578
|
function processDirectStart (oStartupResult) {
|
|
584
|
-
var sHash =
|
|
579
|
+
var sHash = oBoottask._getShellHash(),
|
|
585
580
|
sFullHash = getFullShellHash(),
|
|
586
581
|
oRequestSegment = getParsedShellHash(sHash),
|
|
587
582
|
aSegment = [oRequestSegment],
|
|
@@ -677,15 +672,16 @@ function (
|
|
|
677
672
|
|
|
678
673
|
|
|
679
674
|
function afterBootstrap () {
|
|
680
|
-
var sShellHash =
|
|
675
|
+
var sShellHash = oBoottask._getShellHash();
|
|
681
676
|
|
|
682
677
|
if (isHomepageHash(sShellHash) && window["sap-ushell-config"].ushell &&
|
|
683
678
|
window["sap-ushell-config"].ushell.spaces && window["sap-ushell-config"].ushell.spaces.enabled) {
|
|
684
|
-
_loadPage(sShellHash); // earliest point available to load page object
|
|
679
|
+
oBoottask._loadPage(sShellHash); // earliest point available to load page object
|
|
685
680
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
681
|
+
oXhrLibLoader.getLib().then(function (oXhrLogonLib) {
|
|
682
|
+
var oFrameLogonManager = oXhrLogonLib.FrameLogonManager.getInstance();
|
|
683
|
+
sap.ushell.Container.oFrameLogonManager = oFrameLogonManager;
|
|
684
|
+
});
|
|
689
685
|
if (isDirectStart(sShellHash)) { // only set on direct app start (not #Shell-home)
|
|
690
686
|
var fnResolve, fnReject;
|
|
691
687
|
window["sap-ushell-async-libs-promise-directstart"] = new Promise(function (resolve, reject) {
|
|
@@ -699,7 +695,7 @@ function (
|
|
|
699
695
|
// the application context for the component will be attached to the resolution result
|
|
700
696
|
// for non-UI5 targets, it will be empty
|
|
701
697
|
sap.ushell.Container.getServiceAsync("NavTargetResolution").then(function (oNavTargetResolution) {
|
|
702
|
-
oNavTargetResolution.resolveHashFragment("#" +
|
|
698
|
+
oNavTargetResolution.resolveHashFragment("#" + oBoottask._getShellHash())
|
|
703
699
|
.done(function (oResolutionResult) {
|
|
704
700
|
sap.ui.require(["sap/ushell/services/AppConfiguration"], function (AppConfiguration) {
|
|
705
701
|
AppConfiguration.setCurrentApplication(oResolutionResult);
|
|
@@ -763,9 +759,9 @@ function (
|
|
|
763
759
|
});
|
|
764
760
|
|
|
765
761
|
sap.ui.require([ "sap/ushell/components/pages/controller/PagesAndSpaceId" ], function (oPagesAndSpaceId) {
|
|
766
|
-
var
|
|
767
|
-
var
|
|
768
|
-
Promise.all([
|
|
762
|
+
var pId = oPagesAndSpaceId._getPageAndSpaceId(sShellHash);
|
|
763
|
+
var pPagePersistenceService = sap.ushell.Container.getServiceAsync("PagePersistence");
|
|
764
|
+
Promise.all([pId, pPagePersistenceService])
|
|
769
765
|
.then(function (aResults) {
|
|
770
766
|
var oIds = aResults[0];
|
|
771
767
|
var oPagePersistenceService = aResults[1];
|
|
@@ -790,7 +786,7 @@ function (
|
|
|
790
786
|
//fire start-up request if direct start also indicates suppression of pageset request
|
|
791
787
|
//must be kept before success handler of requestStartUp
|
|
792
788
|
oStartupHandler.requestStartupConfig().then(function (oStartupResult) {
|
|
793
|
-
var sHash =
|
|
789
|
+
var sHash = oBoottask._getShellHash();
|
|
794
790
|
(ObjectPath.get("sap-ushell-config.services.Container.adapter") || ObjectPath.create("sap-ushell-config.services.Container.adapter")).config = oStartupResult;
|
|
795
791
|
var oLaunchPageAdapterConfig = ObjectPath.get("sap-ushell-config.services.LaunchPage.adapter.config") || ObjectPath.create("sap-ushell-config.services.LaunchPage.adapter.config");
|
|
796
792
|
var oClientSideTargetResolutionAdapterConfig = ObjectPath.get("sap-ushell-config.services.ClientSideTargetResolution.adapter.config") ||
|
|
@@ -16,13 +16,13 @@ sap.ui.define([
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @name sap.ushell_abap
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.112.0
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted
|
|
22
22
|
*/
|
|
23
23
|
var ushellAbapLib = sap.ui.getCore().initLibrary({
|
|
24
24
|
name: "sap.ushell_abap",
|
|
25
|
-
version: "1.
|
|
25
|
+
version: "1.112.0",
|
|
26
26
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
27
27
|
noLibraryCSS: true,
|
|
28
28
|
extensions: {
|