@sapui5/sap.ushell_abap 1.94.1 → 1.96.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/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
package/package.json
CHANGED
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
* stickiness is only supported in scopes different from PERS.
|
|
570
570
|
* </p>
|
|
571
571
|
* <p>
|
|
572
|
-
* Currently, session stickiness is affected by the following
|
|
572
|
+
* Currently, session stickiness is affected by the following restrictions:
|
|
573
573
|
* <ul>
|
|
574
574
|
* <li>If the client caches the response headers for certain requests, these
|
|
575
575
|
* cached headers will be used instead of the headers sent from the server
|
|
@@ -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.96.2</version>
|
|
6
6
|
<copyright>Copyright (c) 2009-2021 SAP SE. All rights reserved.</copyright>
|
|
7
7
|
<documentation>SAP library: sap.ushell_abap</documentation>
|
|
8
8
|
|
|
@@ -41,17 +41,12 @@
|
|
|
41
41
|
<exclude name="sap.ushell_abap.bootstrap.appruntime-*" />
|
|
42
42
|
<exclude name="sap.ushell_abap.bootstrap.evo.core-*" />
|
|
43
43
|
</jsdoc>
|
|
44
|
+
<releasenotes xmlns="http://www.sap.com/ui5/buildext/releasenotes"
|
|
45
|
+
url="../../../../test-resources/js/sap/ushell_abap/relnotes/changes-{major}.{minor}.json"
|
|
46
|
+
resolve="lib" />
|
|
44
47
|
<ownership xmlns="http://www.sap.com/ui5/buildext/ownership">
|
|
45
48
|
<!-- default component for this library -->
|
|
46
49
|
<component>CA-FLP-FE-UI</component>
|
|
47
|
-
|
|
48
|
-
<!-- Fiori Configuration Cockpit (FCC) Transport UI -->
|
|
49
|
-
<component>
|
|
50
|
-
<name>CA-FLP-ABA</name>
|
|
51
|
-
<modules>
|
|
52
|
-
<module>sap/ushell_abap/plugins/fcc-transport-ui/*</module>
|
|
53
|
-
</modules>
|
|
54
|
-
</component>
|
|
55
50
|
</ownership>
|
|
56
51
|
</appData>
|
|
57
52
|
</library>
|
|
@@ -4,8 +4,15 @@ sap.ui.define([
|
|
|
4
4
|
"sap/base/util/ObjectPath",
|
|
5
5
|
"sap/base/Log",
|
|
6
6
|
"sap/ui/thirdparty/jquery",
|
|
7
|
-
"sap/ui/core/format/DateFormat"
|
|
8
|
-
|
|
7
|
+
"sap/ui/core/format/DateFormat",
|
|
8
|
+
"sap/ushell_abap/pbServices/ui2/ODataService"
|
|
9
|
+
], function (
|
|
10
|
+
ObjectPath,
|
|
11
|
+
Log,
|
|
12
|
+
jQuery,
|
|
13
|
+
DateFormat,
|
|
14
|
+
ODataService
|
|
15
|
+
) {
|
|
9
16
|
"use strict";
|
|
10
17
|
|
|
11
18
|
var sCONTAINERCOLLECTIONNAME = "PersContainers",
|
|
@@ -72,7 +79,7 @@ sap.ui.define([
|
|
|
72
79
|
if (this._category && this._category === "P" && this["sap-cache-id"]) {
|
|
73
80
|
sRelativeUrl = sRelativeUrl + "&sap-cache-id=" + this["sap-cache-id"];
|
|
74
81
|
}
|
|
75
|
-
|
|
82
|
+
ODataService.call(this, oDataWrapper, function () {
|
|
76
83
|
return false;
|
|
77
84
|
});
|
|
78
85
|
|
|
@@ -101,7 +108,7 @@ sap.ui.define([
|
|
|
101
108
|
oDataWrapper = this._obtainODataWrapper(),
|
|
102
109
|
sRelativeURL = sCONTAINERCOLLECTIONNAME;
|
|
103
110
|
// serialize the current JSON
|
|
104
|
-
|
|
111
|
+
ODataService.call(this, oDataWrapper, function () {
|
|
105
112
|
return false;
|
|
106
113
|
});
|
|
107
114
|
|
|
@@ -119,7 +126,7 @@ sap.ui.define([
|
|
|
119
126
|
oDataWrapper = this._obtainODataWrapper(),
|
|
120
127
|
sRelativeURL = sCONTAINERCOLLECTIONNAME + "(category='" + this._category + "',id='" + encodeURIComponent(this._sContainerKey) + "')";
|
|
121
128
|
// serialize the current JSON
|
|
122
|
-
|
|
129
|
+
ODataService.call(this, oDataWrapper, function () {
|
|
123
130
|
return false;
|
|
124
131
|
});
|
|
125
132
|
|
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.96.2
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/util/ObjectPath",
|
|
9
9
|
"sap/ui/thirdparty/jquery",
|
|
10
10
|
"sap/base/Log",
|
|
11
11
|
"sap/ushell/utils",
|
|
12
|
-
"sap/ui2/
|
|
12
|
+
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
13
|
+
"sap/ushell_abap/pbServices/ui2/Error",
|
|
14
|
+
"sap/ushell_abap/pbServices/ui2/ODataService"
|
|
13
15
|
], function (
|
|
14
16
|
ObjectPath,
|
|
15
17
|
jQuery,
|
|
16
18
|
Log,
|
|
17
|
-
utils
|
|
18
|
-
|
|
19
|
+
utils,
|
|
20
|
+
ODataWrapper,
|
|
21
|
+
SrvcError,
|
|
22
|
+
ODataService
|
|
19
23
|
) {
|
|
20
24
|
"use strict";
|
|
21
25
|
|
|
@@ -41,11 +45,11 @@ sap.ui.define([
|
|
|
41
45
|
"sap-language": sap.ushell.Container.getUser().getLanguage(),
|
|
42
46
|
"sap-client": sap.ushell.Container.getLogonSystem().getClient()
|
|
43
47
|
};
|
|
44
|
-
this._oWrapper =
|
|
48
|
+
this._oWrapper = ODataWrapper.createODataWrapper(oODataWrapperSettings);
|
|
45
49
|
function fnDefaultFailure (oMessage) {
|
|
46
|
-
|
|
50
|
+
throw new SrvcError(oMessage, "sap.ushell_abap.adapters.abap.AppStateAdapter");
|
|
47
51
|
}
|
|
48
|
-
|
|
52
|
+
ODataService.call(this, this._oWrapper, fnDefaultFailure);
|
|
49
53
|
};
|
|
50
54
|
|
|
51
55
|
/**
|
|
@@ -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.96.2
|
|
13
13
|
*/
|
|
14
14
|
sap.ui.define([
|
|
15
15
|
"sap/ui/thirdparty/jquery",
|
|
@@ -19,7 +19,8 @@ sap.ui.define([
|
|
|
19
19
|
"sap/ushell/utils",
|
|
20
20
|
"sap/ushell/utils/UrlParsing",
|
|
21
21
|
"sap/base/Log",
|
|
22
|
-
"sap/ui2/
|
|
22
|
+
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
23
|
+
"sap/ushell_abap/pbServices/ui2/Utils"
|
|
23
24
|
], function (
|
|
24
25
|
jQuery,
|
|
25
26
|
ObjectPath,
|
|
@@ -27,8 +28,9 @@ sap.ui.define([
|
|
|
27
28
|
fnDeepExtend,
|
|
28
29
|
ushellUtils,
|
|
29
30
|
urlParsing,
|
|
30
|
-
Log
|
|
31
|
-
|
|
31
|
+
Log,
|
|
32
|
+
ODataWrapper,
|
|
33
|
+
Utils
|
|
32
34
|
) {
|
|
33
35
|
"use strict";
|
|
34
36
|
|
|
@@ -133,7 +135,7 @@ sap.ui.define([
|
|
|
133
135
|
this._oODataWrapper = undefined;
|
|
134
136
|
this._getODataWrapper = function () {
|
|
135
137
|
if (!this._oODataWrapper) {
|
|
136
|
-
this._oODataWrapper =
|
|
138
|
+
this._oODataWrapper = ODataWrapper.createODataWrapper("/sap/opu/odata/UI2/INTEROP/");
|
|
137
139
|
}
|
|
138
140
|
return this._oODataWrapper;
|
|
139
141
|
};
|
|
@@ -390,7 +392,7 @@ sap.ui.define([
|
|
|
390
392
|
* @return {jQuery.Deferred.promise} a jQuery promise that is resolved with a
|
|
391
393
|
*/
|
|
392
394
|
ClientSideTargetResolutionAdapter.prototype._requestAllTargetMappings = function () {
|
|
393
|
-
var mParameterMap =
|
|
395
|
+
var mParameterMap = Utils.getParameterMap();
|
|
394
396
|
var oDeferred = new jQuery.Deferred();
|
|
395
397
|
var sRequestUrl = "/sap/bc/ui2/start_up?so=%2A&action=%2A&",
|
|
396
398
|
sCacheId = (ObjectPath.create("services.targetMappings", this._oAdapterConfig).cacheId
|
|
@@ -413,7 +415,7 @@ sap.ui.define([
|
|
|
413
415
|
}
|
|
414
416
|
copyParameter("sap-language");
|
|
415
417
|
copyParameter("sap-client");
|
|
416
|
-
|
|
418
|
+
Utils.get(
|
|
417
419
|
sRequestUrl + "&shellType=" + sap.ushell_abap.getShellType() + "&depth=0" + sCacheId,
|
|
418
420
|
false, /* xml= */
|
|
419
421
|
function (sNavTargetDataResult) {
|
|
@@ -766,7 +768,7 @@ sap.ui.define([
|
|
|
766
768
|
if (Object.prototype.hasOwnProperty.call(oRes.parameters, sEntryName)) {
|
|
767
769
|
Log.error(
|
|
768
770
|
"Duplicate property name " + sEntryName + " in " + JSON.stringify(oODataResponse),
|
|
769
|
-
"
|
|
771
|
+
"ClientSideTargetResolutionAdapter._formatSignature");
|
|
770
772
|
}
|
|
771
773
|
|
|
772
774
|
oRes.parameters[sEntryName] = {
|
|
@@ -992,7 +994,7 @@ sap.ui.define([
|
|
|
992
994
|
* Open the batch queue if it is not already open.
|
|
993
995
|
* The method has no effect if the queue is already open
|
|
994
996
|
*
|
|
995
|
-
* @param {object} oODataWrapper a {@link sap.ui2.
|
|
997
|
+
* @param {object} oODataWrapper a {@link sap.ushell_abap.pbServices.ui2.ODataWrapper} object.
|
|
996
998
|
* @returns {boolean} true iff batch queue was opened by this method
|
|
997
999
|
* @private
|
|
998
1000
|
*/
|
|
@@ -1034,7 +1036,7 @@ sap.ui.define([
|
|
|
1034
1036
|
var oDeferred = new jQuery.Deferred(),
|
|
1035
1037
|
that = this,
|
|
1036
1038
|
bBatchQueueOpened,
|
|
1037
|
-
sFormFactor =
|
|
1039
|
+
sFormFactor = Utils.getFormFactor();
|
|
1038
1040
|
|
|
1039
1041
|
/**
|
|
1040
1042
|
* @param {string} sUnencoded an OData URL query parameter
|
|
@@ -1105,33 +1107,46 @@ sap.ui.define([
|
|
|
1105
1107
|
|
|
1106
1108
|
ClientSideTargetResolutionAdapter.prototype._compactTooLongWdaUrl = function (oResult) {
|
|
1107
1109
|
var oDeferred = new jQuery.Deferred();
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1110
|
+
var sUrl = oResult && oResult.url;
|
|
1111
|
+
|
|
1112
|
+
if (oResult && oResult.applicationType === "NWBC" && sUrl && sUrl.indexOf("/ui2/nwbc/~canvas;window=") === 0 && sUrl.length > this._getWDAUrlShorteningLengthLimit()) {
|
|
1113
|
+
this._compactUrl(sUrl)
|
|
1114
|
+
.done(function (sCompactedUrl) {
|
|
1115
|
+
oResult.url = sCompactedUrl;
|
|
1116
|
+
oDeferred.resolve(oResult);
|
|
1117
|
+
})
|
|
1118
|
+
.fail(oDeferred.reject);
|
|
1119
|
+
} else {
|
|
1120
|
+
// we do not compact
|
|
1121
|
+
oDeferred.resolve(oResult);
|
|
1118
1122
|
}
|
|
1119
|
-
|
|
1120
|
-
return oDeferred.
|
|
1123
|
+
|
|
1124
|
+
return oDeferred.promise();
|
|
1121
1125
|
};
|
|
1122
1126
|
|
|
1123
1127
|
ClientSideTargetResolutionAdapter.prototype._compactUrl = function (sUrl) {
|
|
1124
|
-
var
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}
|
|
1128
|
-
var oParams = urlParsing.parseParameters(m[0]);
|
|
1128
|
+
var aMatches = sUrl.match(/\?.*/);
|
|
1129
|
+
var sMatch = aMatches && aMatches[0];
|
|
1130
|
+
var iLengthLimit = this._getWDAUrlShorteningLengthLimit() - 200;
|
|
1129
1131
|
var oDeferred = new jQuery.Deferred();
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1132
|
+
|
|
1133
|
+
if (sMatch && sMatch.length < iLengthLimit) {
|
|
1134
|
+
return oDeferred.resolve(sUrl).promise();
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
var oParams = urlParsing.parseParameters(aMatches[0]);
|
|
1138
|
+
|
|
1139
|
+
sap.ushell.Container.getServiceAsync("ShellNavigation")
|
|
1140
|
+
.then(function (ShellNavigationService) {
|
|
1141
|
+
ShellNavigationService.compactParams(oParams, aNotCompactedWDAParameters, undefined /* no Component */)
|
|
1142
|
+
.done(function (oCompactedParams) {
|
|
1143
|
+
var sReconstructedUrl = sUrl.match(/^[^?]*/)[0] + "?" + urlParsing.paramsToString(oCompactedParams);
|
|
1144
|
+
oDeferred.resolve(sReconstructedUrl);
|
|
1145
|
+
})
|
|
1146
|
+
.fail(oDeferred.reject);
|
|
1147
|
+
})
|
|
1148
|
+
.catch(oDeferred.reject);
|
|
1149
|
+
|
|
1135
1150
|
return oDeferred.promise();
|
|
1136
1151
|
};
|
|
1137
1152
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview The Unified Shell's container adapter for the ABAP platform.
|
|
4
4
|
*
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.96.2
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/thirdparty/jquery",
|
|
@@ -10,13 +10,22 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ushell/User",
|
|
11
11
|
"sap/ushell/utils",
|
|
12
12
|
"sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils",
|
|
13
|
-
"sap/ui2/
|
|
13
|
+
"sap/ushell_abap/pbServices/ui2/ODataWrapper",
|
|
14
14
|
"sap/ui/thirdparty/URI",
|
|
15
15
|
"sap/ui/thirdparty/datajs",
|
|
16
16
|
"sap/base/util/ObjectPath"
|
|
17
|
-
], function (
|
|
17
|
+
], function (
|
|
18
|
+
jQuery,
|
|
19
|
+
System,
|
|
20
|
+
User,
|
|
21
|
+
utils,
|
|
22
|
+
abapUtils,
|
|
23
|
+
ODataWrapper,
|
|
24
|
+
URI,
|
|
25
|
+
OData,
|
|
26
|
+
ObjectPath
|
|
27
|
+
) {
|
|
18
28
|
"use strict";
|
|
19
|
-
/* jslint nomen:true */
|
|
20
29
|
|
|
21
30
|
/**
|
|
22
31
|
* This method MUST be called by the Unified Shell's container only, others MUST call
|
|
@@ -254,8 +263,8 @@ sap.ui.define([
|
|
|
254
263
|
// set the SAP Language on the ODataWrapper,
|
|
255
264
|
// if supplied, this will propagated to a sap-language header
|
|
256
265
|
// assuring a consistent window language
|
|
257
|
-
|
|
258
|
-
|
|
266
|
+
ODataWrapper["sap-language"] = oStartupResult.language;
|
|
267
|
+
ODataWrapper["sap-client"] = oStartupResult.client;
|
|
259
268
|
|
|
260
269
|
if (oStartupResult.target) {
|
|
261
270
|
// cache information about initial application resolution
|
|
@@ -280,40 +289,39 @@ sap.ui.define([
|
|
|
280
289
|
* @since 1.19.0
|
|
281
290
|
*/
|
|
282
291
|
this.addFurtherRemoteSystems = function () {
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}));
|
|
292
|
+
var oDeferred = new jQuery.Deferred();
|
|
293
|
+
|
|
294
|
+
sap.ushell.Container.getServiceAsync("PageBuilding")
|
|
295
|
+
.then(function (PageBuildingService) {
|
|
296
|
+
PageBuildingService
|
|
297
|
+
.getFactory()
|
|
298
|
+
.getPageBuildingService()
|
|
299
|
+
.readAllCatalogsForUser("type eq 'H' or type eq 'REMOTE'", function (oData) { //success handler
|
|
300
|
+
var sSocialMediaUrl = "/sap/opu/odata/sap/SM_CATALOG_SRV/";
|
|
301
|
+
if (oData.results) {
|
|
302
|
+
oData.results.forEach(function (oCatalog) {
|
|
303
|
+
var bIsHANAUrl = /^\/sap\/hba\//.test(oCatalog.baseUrl);
|
|
304
|
+
if (oCatalog.type === "H" || oCatalog.baseUrl === sSocialMediaUrl || bIsHANAUrl) {
|
|
305
|
+
sap.ushell.Container.addRemoteSystem(new System({
|
|
306
|
+
alias: oCatalog.systemAlias,
|
|
307
|
+
platform: (bIsHANAUrl || oCatalog.type === "H")
|
|
308
|
+
? "hana" : "abap",
|
|
309
|
+
baseUrl: oCatalog.type === "H" ? "" : ";o="
|
|
310
|
+
}));
|
|
311
|
+
}
|
|
312
|
+
});
|
|
305
313
|
}
|
|
314
|
+
oDeferred.resolve();
|
|
315
|
+
}, function (sError) { //error handler
|
|
316
|
+
jQuery.sap.log.error("Reading REMOTE catalogs failed: "
|
|
317
|
+
+ sError, null,
|
|
318
|
+
"sap.ushell_abap.adapters.abap.ContainerAdapter");
|
|
319
|
+
oDeferred.reject();
|
|
306
320
|
});
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
jQuery.sap.log.error("Reading REMOTE catalogs failed: "
|
|
312
|
-
+ sError, null,
|
|
313
|
-
"sap.ushell_abap.adapters.abap.ContainerAdapter");
|
|
314
|
-
oDeferredReadCatalogs.reject();
|
|
315
|
-
});
|
|
316
|
-
return oDeferredReadCatalogs.promise();
|
|
321
|
+
})
|
|
322
|
+
.catch(oDeferred.reject);
|
|
323
|
+
|
|
324
|
+
return oDeferred.promise();
|
|
317
325
|
};
|
|
318
326
|
|
|
319
327
|
/**
|