@sapui5/sap.ushell_abap 1.94.0 → 1.96.1
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/ui2/srvc/ODataWrapper.js +1 -1
- package/src/main/js/sap/ushell_abap/.library +4 -9
- package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +12 -5
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +11 -7
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +47 -32
- package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +46 -38
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +438 -398
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +25 -15
- package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +3 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +16 -7
- package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +8 -8
- package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +11 -4
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +9 -3
- package/src/main/js/sap/ushell_abap/bootstrap/evo/XhrLogonEventHandler.js +13 -11
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def-dev.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils.js +8 -4
- 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 +9 -0
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +12 -5
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +21 -22
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.pageset.js +8 -2
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +6 -3
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.startup.js +10 -5
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.ui5.boot.handler.js +7 -4
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhr.handler.js +10 -3
- package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +21 -16
- package/src/main/js/sap/ushell_abap/library.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +186 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +704 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +930 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +1027 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +216 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +933 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +45 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +647 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +251 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1262 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +920 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +1498 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +466 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/RemoteCatalogService.js +52 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +767 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/chipdefinition.xsd +139 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/actions.js +244 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/bag.js +150 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +165 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +330 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/fullscreen.js +70 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/navigation.js +50 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/preview.js +289 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/refresh.js +43 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +115 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/types.js +9 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/url.js +105 -0
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +128 -0
- package/ui5.yaml +30 -0
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/Component.js +0 -426
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/css/style.css +0 -1
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n.properties +0 -56
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ar.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_bg.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ca.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_cs.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_cy.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_da.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_de.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_el.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_GB.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_US_sappsd.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_US_saprigi.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_US_saptrc.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_es.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_es_MX.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_et.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_fi.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_fr.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_fr_CA.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_hi.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_hr.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_hu.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_id.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_it.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_iw.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ja.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_kk.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ko.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_lt.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_lv.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ms.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_nl.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_no.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_pl.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_pt.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_pt_PT.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ro.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ru.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sh.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sk.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sl.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sv.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_th.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_tr.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_uk.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_vi.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_zh_CN.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_zh_TW.properties +0 -36
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/manifest.json +0 -153
- package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/model/models.js +0 -14
|
@@ -3,8 +3,13 @@ sap.ui.define([
|
|
|
3
3
|
"./abap.bootstrap.utils",
|
|
4
4
|
"sap/base/util/ObjectPath",
|
|
5
5
|
"sap/base/Log",
|
|
6
|
-
"sap/ui2/
|
|
7
|
-
], function (
|
|
6
|
+
"sap/ushell_abap/pbServices/ui2/Utils"
|
|
7
|
+
], function (
|
|
8
|
+
oAbapUtils,
|
|
9
|
+
ObjectPath,
|
|
10
|
+
Log,
|
|
11
|
+
Utils
|
|
12
|
+
) {
|
|
8
13
|
"use strict";
|
|
9
14
|
|
|
10
15
|
var oStartupHandler = {};
|
|
@@ -23,7 +28,7 @@ sap.ui.define([
|
|
|
23
28
|
*/
|
|
24
29
|
function requestStartup (sQuery, aParametertsFromUrl, oStartupConfig) {
|
|
25
30
|
var sRequestUrl = "/sap/bc/ui2/start_up?",
|
|
26
|
-
mParameterMap =
|
|
31
|
+
mParameterMap = Utils.getParameterMap(),
|
|
27
32
|
oXHR;
|
|
28
33
|
|
|
29
34
|
if (sQuery) {
|
|
@@ -53,7 +58,7 @@ sap.ui.define([
|
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
return new Promise(function (resolve, reject) {
|
|
56
|
-
|
|
61
|
+
Utils.get(
|
|
57
62
|
sRequestUrl,
|
|
58
63
|
false, /*xml=*/
|
|
59
64
|
function (sStartupCallResult) {
|
|
@@ -123,7 +128,7 @@ sap.ui.define([
|
|
|
123
128
|
*/
|
|
124
129
|
oStartupHandler.requestDirectStart = function (oStartupConfig, oParsedShellHash, oInitialKeys) {
|
|
125
130
|
|
|
126
|
-
var sFormFactor =
|
|
131
|
+
var sFormFactor = Utils.getFormFactor(),
|
|
127
132
|
sQueryPath = "";
|
|
128
133
|
|
|
129
134
|
sQueryPath = "so=" + oParsedShellHash.semanticObject + "&action=" + oParsedShellHash.action;
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
sap.ui.define([
|
|
4
4
|
"sap/base/Log",
|
|
5
|
-
"sap/ui2/
|
|
6
|
-
], function (
|
|
5
|
+
"sap/ushell_abap/pbServices/ui2/Utils"
|
|
6
|
+
], function (
|
|
7
|
+
Log,
|
|
8
|
+
Utils
|
|
9
|
+
) {
|
|
7
10
|
"use strict";
|
|
8
11
|
|
|
9
12
|
var oBootHandler = {},
|
|
@@ -25,8 +28,8 @@ sap.ui.define([
|
|
|
25
28
|
|
|
26
29
|
function normalizeUrlAndAddCacheBusterToken (sUrlPrefix) {
|
|
27
30
|
// Removing cache buster token (if available) of url and normalize the url afterwards
|
|
28
|
-
var sNormalizedUrl =
|
|
29
|
-
sUrlPrefixModified =
|
|
31
|
+
var sNormalizedUrl = Utils.removeCBAndNormalizeUrl(sUrlPrefix),
|
|
32
|
+
sUrlPrefixModified = Utils.addCacheBusterTokenUsingUshellConfig(sNormalizedUrl);
|
|
30
33
|
return sUrlPrefixModified;
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -3,8 +3,15 @@ sap.ui.define([
|
|
|
3
3
|
"sap/ushell/bootstrap/common/common.load.xhrlogon",
|
|
4
4
|
"sap/ushell/bootstrap/common/common.configure.xhrlogon",
|
|
5
5
|
"./abap.bootstrap.utils",
|
|
6
|
-
"./XhrLogonEventHandler"
|
|
7
|
-
|
|
6
|
+
"./XhrLogonEventHandler",
|
|
7
|
+
"sap/base/Log"
|
|
8
|
+
], function (
|
|
9
|
+
oXhrLogonLib,
|
|
10
|
+
oConfigureXhrLogon,
|
|
11
|
+
oAbapUtils,
|
|
12
|
+
XhrLogonEventHandler,
|
|
13
|
+
Log
|
|
14
|
+
) {
|
|
8
15
|
"use strict";
|
|
9
16
|
|
|
10
17
|
var oHandler = {};
|
|
@@ -45,7 +52,7 @@ sap.ui.define([
|
|
|
45
52
|
oXhrLogonEventHandler.handleEvent(oEvent);
|
|
46
53
|
});
|
|
47
54
|
} else if (sLogonMode !== "frame") {
|
|
48
|
-
|
|
55
|
+
Log.warning("Unknown setting for xhrLogonMode: '" + sLogonMode + "'. Using default mode 'frame'.",
|
|
49
56
|
null, "sap.ushell_abap.bootstrap.evo.abap.xhr.handler");
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -15,7 +15,8 @@ sap.ui.define([
|
|
|
15
15
|
"sap/base/Log",
|
|
16
16
|
"sap/ushell/services/Container",
|
|
17
17
|
"sap/ui/Device",
|
|
18
|
-
"sap/ui2/
|
|
18
|
+
"sap/ushell_abap/pbServices/ui2/Utils",
|
|
19
|
+
"sap/ushell_abap/pbServices/ui2/Chip" // TODO remove when FLPD is adapted (needs to be loaded early in FLPD scenario)
|
|
19
20
|
],
|
|
20
21
|
function (
|
|
21
22
|
oXhrLogonLib,
|
|
@@ -29,7 +30,11 @@ function (
|
|
|
29
30
|
EventHub,
|
|
30
31
|
initTraces,
|
|
31
32
|
ObjectPath,
|
|
32
|
-
Log
|
|
33
|
+
Log,
|
|
34
|
+
Container,
|
|
35
|
+
Device,
|
|
36
|
+
Utils,
|
|
37
|
+
Chip
|
|
33
38
|
) {
|
|
34
39
|
"use strict";
|
|
35
40
|
|
|
@@ -126,7 +131,7 @@ function (
|
|
|
126
131
|
if (oUri) {
|
|
127
132
|
if (oSelf.url.toUpperCase().indexOf(oUri.path().toUpperCase()) !== 0) {
|
|
128
133
|
//no applicationDependencies in this case as they belong to the wrong app
|
|
129
|
-
|
|
134
|
+
Log.debug("Component URL defined in target mapping "
|
|
130
135
|
+ "does not match the URL retrieved from application index. "
|
|
131
136
|
+ "The URL of the application index is used for further processing.",
|
|
132
137
|
"Target mapping URL: " + oResult.url + "\nApplication index URL: " + oSelf.url,
|
|
@@ -134,7 +139,7 @@ function (
|
|
|
134
139
|
}
|
|
135
140
|
oUri.path(oSelf.url);
|
|
136
141
|
sUrl = oUri.toString();
|
|
137
|
-
|
|
142
|
+
Log.debug("ResolveLink result's component url has been replaced with the url specified " +
|
|
138
143
|
"in Application Dependencies, which includes cache buster token");
|
|
139
144
|
} else {
|
|
140
145
|
sUrl = oSelf.url;
|
|
@@ -143,7 +148,7 @@ function (
|
|
|
143
148
|
|
|
144
149
|
oAdjustedResult.applicationDependencies = oAppDependencies;
|
|
145
150
|
} catch (oError) {
|
|
146
|
-
|
|
151
|
+
Log.error(
|
|
147
152
|
"Parsing of applicationDependencies attribute in resolveLink result failed for SAPUI5 component '"
|
|
148
153
|
+ sComponentName + "'",
|
|
149
154
|
oError,
|
|
@@ -161,7 +166,7 @@ function (
|
|
|
161
166
|
// we only do this for SAPUI5 applications - if a plain URL or NWBC app is launched,
|
|
162
167
|
// we keep it as it is
|
|
163
168
|
// see internal BCP inicdent 1580137234 2015
|
|
164
|
-
sUrl =
|
|
169
|
+
sUrl = Utils.addCacheBusterTokenUsingUshellConfig(sUrl);
|
|
165
170
|
}
|
|
166
171
|
}
|
|
167
172
|
|
|
@@ -319,7 +324,7 @@ function (
|
|
|
319
324
|
try {
|
|
320
325
|
return JSON.parse(JSON.stringify(oObject));
|
|
321
326
|
} catch (e) {
|
|
322
|
-
|
|
327
|
+
Log.error(
|
|
323
328
|
"Could not clone object",
|
|
324
329
|
null,
|
|
325
330
|
"sap.ushell_abap.bootstrap"
|
|
@@ -405,7 +410,7 @@ function (
|
|
|
405
410
|
*/
|
|
406
411
|
function extractSystemThemeRoot (oStartupServiceResult) {
|
|
407
412
|
if (!oStartupServiceResult) {
|
|
408
|
-
|
|
413
|
+
Log.error("extractSystemThemeRoot: mandatory parameter oStartupServiceResult not supplied");
|
|
409
414
|
}
|
|
410
415
|
if (oStartupServiceResult.themeRoot) {
|
|
411
416
|
// we expect that theme root is supplied by the startup service
|
|
@@ -413,14 +418,14 @@ function (
|
|
|
413
418
|
}
|
|
414
419
|
if (oStartupServiceResult.client) {
|
|
415
420
|
// fallback
|
|
416
|
-
|
|
421
|
+
Log.warning(
|
|
417
422
|
"Theme root was not contained in startup service result. A fallback to /sap/public/bc/themes/~client-<client number> is used",
|
|
418
423
|
null,
|
|
419
424
|
"sap.ushell_abap.bootstrap"
|
|
420
425
|
);
|
|
421
426
|
return "/sap/public/bc/themes/~client-" + oStartupServiceResult.client;
|
|
422
427
|
}
|
|
423
|
-
|
|
428
|
+
Log.error("extractSystemThemeRoot: Could not determine system theme root");
|
|
424
429
|
}
|
|
425
430
|
|
|
426
431
|
/**
|
|
@@ -525,7 +530,7 @@ function (
|
|
|
525
530
|
* @private
|
|
526
531
|
*/
|
|
527
532
|
function getSapThemeUrlParameter () {
|
|
528
|
-
var sUrlTheme =
|
|
533
|
+
var sUrlTheme = Utils.getParameterMap()["sap-theme"] && Utils.getParameterMap()["sap-theme"][0];
|
|
529
534
|
if (sUrlTheme) {
|
|
530
535
|
return sUrlTheme;
|
|
531
536
|
}
|
|
@@ -581,7 +586,7 @@ function (
|
|
|
581
586
|
// URL = prio 1
|
|
582
587
|
oUrlTheme = determineUrlTheme(sSystemThemeRoot);
|
|
583
588
|
oBootTheme = oUrlTheme;
|
|
584
|
-
|
|
589
|
+
Log.debug("theme: URL theme = '" + oBootTheme.theme + "' theme root = '" + oBootTheme.root + "'",
|
|
585
590
|
null, "sap.ushell_abap.bootstrap");
|
|
586
591
|
// theme is loaded by UI5
|
|
587
592
|
//The theme root should be set fot the custom theme. For the sap theme the root is calculated by core.
|
|
@@ -591,7 +596,7 @@ function (
|
|
|
591
596
|
} else if (oStartupTheme) {
|
|
592
597
|
// startup theme = prio 2
|
|
593
598
|
oBootTheme = oStartupTheme;
|
|
594
|
-
|
|
599
|
+
Log.debug("theme: startup service theme = '" + oBootTheme.theme + "' theme root = '" + oBootTheme.root + "'",
|
|
595
600
|
null, "sap.ushell_abap.bootstrap");
|
|
596
601
|
|
|
597
602
|
if (oBootTheme.root) {
|
|
@@ -615,14 +620,14 @@ function (
|
|
|
615
620
|
theme: oHtmlTheme.theme,
|
|
616
621
|
root: oHtmlTheme.root
|
|
617
622
|
};
|
|
618
|
-
|
|
623
|
+
Log.debug("theme: html file theme = '" + oBootTheme.theme + "' theme root = '" + oBootTheme.root + "'",
|
|
619
624
|
null, "sap.ushell_abap.bootstrap");
|
|
620
625
|
} else {
|
|
621
626
|
oBootTheme = {
|
|
622
627
|
theme: "",
|
|
623
628
|
root: ""
|
|
624
629
|
};
|
|
625
|
-
|
|
630
|
+
Log.error("Could not determine theme",
|
|
626
631
|
null, "sap.ushell_abap.bootstrap");
|
|
627
632
|
}
|
|
628
633
|
}
|
|
@@ -642,7 +647,7 @@ function (
|
|
|
642
647
|
// TODO: split in merging with config => do first,
|
|
643
648
|
// THEN merge with Configuration file ( if relevant)
|
|
644
649
|
// THEN process => apply to ui5 services etc.
|
|
645
|
-
var mParameterMap =
|
|
650
|
+
var mParameterMap = Utils.getParameterMap(),
|
|
646
651
|
sRequestLocale = oAbapUtils.getUrlParameterValue("sap-locale", mParameterMap),
|
|
647
652
|
oUi5UserInfo = {},
|
|
648
653
|
oConfig;
|
|
@@ -13,13 +13,13 @@ sap.ui.define([
|
|
|
13
13
|
* @namespace
|
|
14
14
|
* @name sap.ushell_abap
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.96.1
|
|
17
17
|
* @private
|
|
18
18
|
* @ui5-restricted
|
|
19
19
|
*/
|
|
20
20
|
sap.ui.getCore().initLibrary({
|
|
21
21
|
name: "sap.ushell_abap",
|
|
22
|
-
version: "1.
|
|
22
|
+
version: "1.96.1",
|
|
23
23
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
24
24
|
noLibraryCSS: true,
|
|
25
25
|
extensions: {
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// Copyright (c) 2009-2021 SAP SE. All rights reserved.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileOverview A wrapper for a page's <code>allCatalogs</code> collection loaded from the page
|
|
5
|
+
* building service.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ushell_abap/pbServices/ui2/Catalog",
|
|
10
|
+
"sap/ushell_abap/pbServices/ui2/Error",
|
|
11
|
+
"sap/base/Log"
|
|
12
|
+
], function (
|
|
13
|
+
Catalog,
|
|
14
|
+
SrvcError,
|
|
15
|
+
Log
|
|
16
|
+
) {
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
// "public class" ************************************************************
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Constructs a new representation (wrapper) for the given page's <code>allCatalogs</code>
|
|
24
|
+
* collection to be loaded from the given factory's page building service. Note that this
|
|
25
|
+
* collection does not contain the page's classic catalog as returned by
|
|
26
|
+
* {@link sap.ushell_abap.pbServices.ui2.Page#getCatalog}).
|
|
27
|
+
*
|
|
28
|
+
* @param {sap.ushell_abap.pbServices.ui2.Factory} oFactory
|
|
29
|
+
* the factory
|
|
30
|
+
* @param {string} sPageId
|
|
31
|
+
* ID of the page
|
|
32
|
+
*
|
|
33
|
+
* <p>
|
|
34
|
+
* Initially a stub is created, which can later load its properties and related objects
|
|
35
|
+
* asynchronously.
|
|
36
|
+
* <p>
|
|
37
|
+
* This collection and the contained catalogs are currently read-only and cannot be updated
|
|
38
|
+
* through the page building service.
|
|
39
|
+
* (see {@link sap.ushell_abap.pbServices.ui2.PageBuildingService}, {@link sap.ushell_abap.pbServices.ui2.Catalog})
|
|
40
|
+
*
|
|
41
|
+
* @class
|
|
42
|
+
* @since 1.7.0
|
|
43
|
+
*/
|
|
44
|
+
var AllCatalogs = function (oFactory, sPageId) {
|
|
45
|
+
var aCatalogs = [],
|
|
46
|
+
bIsStub = true,
|
|
47
|
+
that = this;
|
|
48
|
+
|
|
49
|
+
// BEWARE: constructor code below!
|
|
50
|
+
|
|
51
|
+
// "private" methods ---------------------------------------------------------
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Makes sure we are not just a stub.
|
|
55
|
+
*
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
function checkStub () {
|
|
59
|
+
if (bIsStub) {
|
|
60
|
+
throw new SrvcError(that + ": collection is just a stub",
|
|
61
|
+
"AllCatalogs");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// "public" methods ----------------------------------------------------------
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Returns this collection's catalog instances. Can only be called if the collection itself is
|
|
69
|
+
* not a stub anymore.
|
|
70
|
+
*
|
|
71
|
+
* @returns {sap.ushell_abap.pbServices.ui2.Catalog[]}
|
|
72
|
+
* this collection's catalog instances
|
|
73
|
+
* @since 1.7.0
|
|
74
|
+
*
|
|
75
|
+
* @see #isStub()
|
|
76
|
+
*/
|
|
77
|
+
this.getCatalogs = function () {
|
|
78
|
+
checkStub();
|
|
79
|
+
return aCatalogs.slice();
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Tells whether this <code>allCatalogs</code> collection is still only a stub and does not yet
|
|
84
|
+
* know its individual catalogs.
|
|
85
|
+
*
|
|
86
|
+
* @returns {boolean}
|
|
87
|
+
* whether this <code>allCatalogs</code> collection is still only a stub
|
|
88
|
+
* @since 1.7.0
|
|
89
|
+
*
|
|
90
|
+
* @see #load()
|
|
91
|
+
*/
|
|
92
|
+
this.isStub = function () {
|
|
93
|
+
return bIsStub;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Loads this <code>allCatalogs</code> collection including all of its catalogs and their CHIPs.
|
|
98
|
+
* Notifies one of the given handlers.
|
|
99
|
+
*
|
|
100
|
+
* @param {function ()} fnSuccess
|
|
101
|
+
* no-args success handler
|
|
102
|
+
* @param {function (string, object=)} [fnFailure]
|
|
103
|
+
* error handler taking an error message and, since version 1.28.6, an
|
|
104
|
+
* optional object containing the complete error information as delivered
|
|
105
|
+
* by the ODataService. See fnFailure parameter of {@link sap.ushell_abap.pbServices.ui2.ODataWrapper#onError}
|
|
106
|
+
* for more details.
|
|
107
|
+
* If not given, the default <code>{@link sap.ushell_abap.pbServices.ui2.ODataService#getDefaultErrorHandler}</code> is used
|
|
108
|
+
* @param {string} [sFilter]
|
|
109
|
+
* filter value as defined by OData specification e.g. "type eq 'H'" for HANA catalogs.
|
|
110
|
+
* Filter has been introduced with version 1.16.2.
|
|
111
|
+
* @param {boolean} [bPartially=false]
|
|
112
|
+
* Whether to load the <code>allCatalogs</code> collection only partially instead of making
|
|
113
|
+
* sure that also remote catalogs are fully loaded (since 1.17.1). Note: Non-remote catalogs
|
|
114
|
+
* are not affected!
|
|
115
|
+
* @param {string} sSorting
|
|
116
|
+
* name of the field to be sorted on via $orderby as defined by OData specification.
|
|
117
|
+
* If not defined the dafault sorting would be on the field id (since 1.44)
|
|
118
|
+
* @param {boolean} bCache use cache when true
|
|
119
|
+
* @since 1.7.0
|
|
120
|
+
*/
|
|
121
|
+
this.load = function (fnSuccess, fnFailure, sFilter, bPartially, sSorting, bCache) {
|
|
122
|
+
if (!bIsStub) {
|
|
123
|
+
throw new SrvcError(that + ": collection is not a stub anymore",
|
|
124
|
+
"AllCatalogs");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function loadCatalogs () {
|
|
128
|
+
var i, n, oCatalog;
|
|
129
|
+
|
|
130
|
+
if (!bPartially) {
|
|
131
|
+
// Note: If a catalog is still a stub here, it refers to a different system. We don't
|
|
132
|
+
// expect to have many such catalogs, so we don't mind loading them serialized.
|
|
133
|
+
for (i = 0, n = aCatalogs.length; i < n; i += 1) {
|
|
134
|
+
oCatalog = aCatalogs[i];
|
|
135
|
+
if (oCatalog.isStub()) {
|
|
136
|
+
oCatalog.load(loadCatalogs, fnFailure);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
fnSuccess();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function onSuccess (oAlterEgo) {
|
|
145
|
+
var i, n;
|
|
146
|
+
|
|
147
|
+
Log.debug("Loaded: " + that, null, "AllCatalogs");
|
|
148
|
+
bIsStub = false;
|
|
149
|
+
aCatalogs = [];
|
|
150
|
+
for (i = 0, n = oAlterEgo.results.length; i < n; i += 1) {
|
|
151
|
+
aCatalogs.push(oFactory.createCatalog(oAlterEgo.results[i]));
|
|
152
|
+
}
|
|
153
|
+
Log.debug("Initialized: " + that, null, "AllCatalogs");
|
|
154
|
+
loadCatalogs();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
oFactory.getPageBuildingService().readAllCatalogs(sPageId, onSuccess, fnFailure, sFilter, sSorting, !!bCache /* false is the default */);
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Returns this <code>allCatalogs</code> collection's string representation.
|
|
162
|
+
*
|
|
163
|
+
* @param {boolean} [bVerbose=false]
|
|
164
|
+
* flag whether to show all properties
|
|
165
|
+
* @returns {string}
|
|
166
|
+
* this <code>allCatalogs</code> collection's string representation
|
|
167
|
+
* @since 1.7.0
|
|
168
|
+
*/
|
|
169
|
+
this.toString = function (bVerbose) {
|
|
170
|
+
var aResult = ['AllCatalogs({sPageId:"', sPageId, '",bIsStub:', bIsStub];
|
|
171
|
+
if (bVerbose) {
|
|
172
|
+
aResult.push(",aCatalogs:", JSON.stringify(aCatalogs));
|
|
173
|
+
}
|
|
174
|
+
aResult.push("})");
|
|
175
|
+
return aResult.join("");
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
// constructor code -------------------------------------------------------
|
|
179
|
+
if (!sPageId) {
|
|
180
|
+
throw new SrvcError("Missing page ID", "AllCatalogs");
|
|
181
|
+
}
|
|
182
|
+
Log.debug("Created: " + this, null, "AllCatalogs");
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
return AllCatalogs;
|
|
186
|
+
}, true);
|