@sapui5/sap.ushell_abap 1.97.1 → 1.99.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/ushell_abap/.library +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +37 -4
- package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +35 -15
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +2 -2
- package/src/main/js/sap/ushell_abap/bootstrap/evo/XhrLogonEventHandler.js +1 -1
- 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-loader.js +7 -0
- 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 +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +2 -2
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.constants.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +2 -17
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.pageset.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.startup.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.theme.handler.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.ui5.boot.handler.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.validate.Url.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhr.handler.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +6 -12
- package/src/main/js/sap/ushell_abap/library.js +3 -3
- package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +1 -6
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +127 -15
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +14 -6
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +1 -8
- package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/RemoteCatalogService.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +1 -8
- 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 +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/fullscreen.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/preview.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/refresh.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/types.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/url.js +1 -1
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +1 -1
- package/src/main/js/sap/ushell_abap/support/plugins/app-infra/AppInfraOnSapNetWeaverSupportPlugin.js +1 -1
- package/src/main/js/sap/ushell_abap/ui5appruntime/AppInfoAdapter.js +1 -1
- package/ui5.yaml +376 -30
- package/src/main/js/sap/ui2/srvc/ODataService.js +0 -267
- package/src/main/js/sap/ui2/srvc/ODataWrapper.js +0 -1283
- package/src/main/js/sap/ui2/srvc/PageBuildingService.js +0 -1508
- package/src/main/js/sap/ui2/srvc/RemoteCatalogService.js +0 -49
- package/src/main/js/sap/ui2/srvc/allcatalogs.js +0 -197
- package/src/main/js/sap/ui2/srvc/bag.js +0 -711
- package/src/main/js/sap/ui2/srvc/catalog.js +0 -946
- package/src/main/js/sap/ui2/srvc/chip.js +0 -1035
- package/src/main/js/sap/ui2/srvc/chipdefinition.js +0 -228
- package/src/main/js/sap/ui2/srvc/chipinstance.js +0 -944
- package/src/main/js/sap/ui2/srvc/contracts/actions.js +0 -239
- package/src/main/js/sap/ui2/srvc/contracts/bag.js +0 -145
- package/src/main/js/sap/ui2/srvc/contracts/configuration.js +0 -161
- package/src/main/js/sap/ui2/srvc/contracts/configurationUi.js +0 -326
- package/src/main/js/sap/ui2/srvc/contracts/fullscreen.js +0 -69
- package/src/main/js/sap/ui2/srvc/contracts/navigation.js +0 -48
- package/src/main/js/sap/ui2/srvc/contracts/preview.js +0 -289
- package/src/main/js/sap/ui2/srvc/contracts/refresh.js +0 -42
- package/src/main/js/sap/ui2/srvc/contracts/search.js +0 -109
- package/src/main/js/sap/ui2/srvc/contracts/searchProvider.js +0 -46
- package/src/main/js/sap/ui2/srvc/contracts/types.js +0 -9
- package/src/main/js/sap/ui2/srvc/contracts/url.js +0 -104
- package/src/main/js/sap/ui2/srvc/contracts/visible.js +0 -122
- package/src/main/js/sap/ui2/srvc/error.js +0 -54
- package/src/main/js/sap/ui2/srvc/factory.js +0 -656
- package/src/main/js/sap/ui2/srvc/page.js +0 -934
- package/src/main/js/sap/ui2/srvc/pageset.js +0 -466
- package/src/main/js/sap/ui2/srvc/utils.js +0 -923
- package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/navigation.js +0 -50
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2020 SAP SE, All Rights Reserved
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @fileOverview A catalog service which is able to read CHIPs from a remote server.
|
|
5
|
-
*/
|
|
6
|
-
(function () {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
jQuery.sap.declare("sap.ui2.srvc.RemoteCatalogService");
|
|
10
|
-
|
|
11
|
-
jQuery.sap.require("sap.ui2.srvc.PageBuildingService");
|
|
12
|
-
|
|
13
|
-
// "public class" ************************************************************
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Constructs a remote catalog service which is able to read CHIPs from a remote server.
|
|
17
|
-
*
|
|
18
|
-
* @class
|
|
19
|
-
* @constructor
|
|
20
|
-
* @since 1.19.1
|
|
21
|
-
*/
|
|
22
|
-
sap.ui2.srvc.RemoteCatalogService = function () {
|
|
23
|
-
// "public" methods --------------------------------------------------------
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Reads the CHIPs with given IDs from the catalog with the given ID, using the given base URL.
|
|
27
|
-
*
|
|
28
|
-
* @param {string} sBaseUrl
|
|
29
|
-
* the base URL of the remote catalog
|
|
30
|
-
* @param {string} sCatalogId
|
|
31
|
-
* the ID of the remote catalog
|
|
32
|
-
* @param {string[]} [aChipIds]
|
|
33
|
-
* the IDs of the CHIPs to be loaded; if <code>undefined</code>, all CHIPs are loaded
|
|
34
|
-
* @param {function (object)} fnSuccess
|
|
35
|
-
* a callback function that is executed if the request succeeds, taking the processed data
|
|
36
|
-
* @param {function (string, object=)} [fnFailure]
|
|
37
|
-
* error handler taking an error message and, since version 1.28.6, an
|
|
38
|
-
* optional object containing the complete error information as delivered
|
|
39
|
-
* by the ODataService. See fnFailure parameter of {@link sap.ui2.srvc.ODataWrapper#onError}
|
|
40
|
-
* for more details.
|
|
41
|
-
* @throws Error if <code>aChipIds === []</code>
|
|
42
|
-
* @since 1.19.1
|
|
43
|
-
*/
|
|
44
|
-
this.readChips = function (sBaseUrl, sCatalogId, aChipIds, fnSuccess, fnFailure) {
|
|
45
|
-
sap.ui2.srvc.createPageBuildingService(sBaseUrl)
|
|
46
|
-
.readCatalogChips(sCatalogId, aChipIds, fnSuccess, fnFailure);
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}());
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2020 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
|
-
this.sap = this.sap || {};
|
|
9
|
-
|
|
10
|
-
(function () {
|
|
11
|
-
"use strict";
|
|
12
|
-
|
|
13
|
-
// namespace "sap.ui2.srvc" **************************************************
|
|
14
|
-
sap.ui2 = sap.ui2 || {};
|
|
15
|
-
sap.ui2.srvc = sap.ui2.srvc || {};
|
|
16
|
-
|
|
17
|
-
// Only declare the module if jQuery.sap exists. Otherwise we do not even try to require assuming
|
|
18
|
-
// that the script has been loaded manually (before SAPUI5).
|
|
19
|
-
// Load time branching pattern
|
|
20
|
-
var fnRequire = String; // NOP (String exists and is free of side-effects)
|
|
21
|
-
if (typeof jQuery === "function" && jQuery.sap) {
|
|
22
|
-
jQuery.sap.declare("sap.ui2.srvc.allcatalogs");
|
|
23
|
-
// avoid fnRequire = jQuery.sap.require as require cannot be spied on afterwards
|
|
24
|
-
fnRequire = function () {
|
|
25
|
-
jQuery.sap.require.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// "public class" ************************************************************
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Constructs a new representation (wrapper) for the given page's <code>allCatalogs</code>
|
|
33
|
-
* collection to be loaded from the given factory's page building service. Note that this
|
|
34
|
-
* collection does not contain the page's classic catalog as returned by
|
|
35
|
-
* {@link sap.ui2.srvc.Page#getCatalog}).
|
|
36
|
-
*
|
|
37
|
-
* @param {sap.ui2.srvc.Factory} oFactory
|
|
38
|
-
* the factory
|
|
39
|
-
* @param {string} sPageId
|
|
40
|
-
* ID of the page
|
|
41
|
-
*
|
|
42
|
-
* <p>
|
|
43
|
-
* Initially a stub is created, which can later load its properties and related objects
|
|
44
|
-
* asynchronously.
|
|
45
|
-
* <p>
|
|
46
|
-
* This collection and the contained catalogs are currently read-only and cannot be updated
|
|
47
|
-
* through the page building service.
|
|
48
|
-
* (see {@link sap.ui2.srvc.PageBuildingService}, {@link sap.ui2.srvc.Catalog})
|
|
49
|
-
*
|
|
50
|
-
* @class
|
|
51
|
-
* @since 1.7.0
|
|
52
|
-
*/
|
|
53
|
-
sap.ui2.srvc.AllCatalogs = function (oFactory, sPageId) {
|
|
54
|
-
var aCatalogs = [],
|
|
55
|
-
bIsStub = true,
|
|
56
|
-
that = this;
|
|
57
|
-
|
|
58
|
-
// BEWARE: constructor code below!
|
|
59
|
-
|
|
60
|
-
// "private" methods ---------------------------------------------------------
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Makes sure we are not just a stub.
|
|
64
|
-
*
|
|
65
|
-
* @private
|
|
66
|
-
*/
|
|
67
|
-
function checkStub () {
|
|
68
|
-
if (bIsStub) {
|
|
69
|
-
throw new sap.ui2.srvc.Error(that + ": collection is just a stub",
|
|
70
|
-
"sap.ui2.srvc.AllCatalogs");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// "public" methods ----------------------------------------------------------
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Returns this collection's catalog instances. Can only be called if the collection itself is
|
|
78
|
-
* not a stub anymore.
|
|
79
|
-
*
|
|
80
|
-
* @returns {sap.ui2.srvc.Catalog[]}
|
|
81
|
-
* this collection's catalog instances
|
|
82
|
-
* @since 1.7.0
|
|
83
|
-
*
|
|
84
|
-
* @see #isStub()
|
|
85
|
-
*/
|
|
86
|
-
this.getCatalogs = function () {
|
|
87
|
-
checkStub();
|
|
88
|
-
return aCatalogs.slice();
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Tells whether this <code>allCatalogs</code> collection is still only a stub and does not yet
|
|
93
|
-
* know its individual catalogs.
|
|
94
|
-
*
|
|
95
|
-
* @returns {boolean}
|
|
96
|
-
* whether this <code>allCatalogs</code> collection is still only a stub
|
|
97
|
-
* @since 1.7.0
|
|
98
|
-
*
|
|
99
|
-
* @see #load()
|
|
100
|
-
*/
|
|
101
|
-
this.isStub = function () {
|
|
102
|
-
return bIsStub;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Loads this <code>allCatalogs</code> collection including all of its catalogs and their CHIPs.
|
|
107
|
-
* Notifies one of the given handlers.
|
|
108
|
-
*
|
|
109
|
-
* @param {function ()} fnSuccess
|
|
110
|
-
* no-args success handler
|
|
111
|
-
* @param {function (string, object=)} [fnFailure]
|
|
112
|
-
* error handler taking an error message and, since version 1.28.6, an
|
|
113
|
-
* optional object containing the complete error information as delivered
|
|
114
|
-
* by the ODataService. See fnFailure parameter of {@link sap.ui2.srvc.ODataWrapper#onError}
|
|
115
|
-
* for more details.
|
|
116
|
-
* If not given, the default <code>{@link sap.ui2.srvc.ODataService#getDefaultErrorHandler}</code> is used
|
|
117
|
-
* @param {string} [sFilter]
|
|
118
|
-
* filter value as defined by OData specification e.g. "type eq 'H'" for HANA catalogs.
|
|
119
|
-
* Filter has been introduced with version 1.16.2.
|
|
120
|
-
* @param {boolean} [bPartially=false]
|
|
121
|
-
* Whether to load the <code>allCatalogs</code> collection only partially instead of making
|
|
122
|
-
* sure that also remote catalogs are fully loaded (since 1.17.1). Note: Non-remote catalogs
|
|
123
|
-
* are not affected!
|
|
124
|
-
* @param {string} sSorting
|
|
125
|
-
* name of the field to be sorted on via $orderby as defined by OData specification.
|
|
126
|
-
* If not defined the dafault sorting would be on the field id (since 1.44)
|
|
127
|
-
* @param {boolean} bCache use cache when true
|
|
128
|
-
* @since 1.7.0
|
|
129
|
-
*/
|
|
130
|
-
this.load = function (fnSuccess, fnFailure, sFilter, bPartially, sSorting, bCache) {
|
|
131
|
-
if (!bIsStub) {
|
|
132
|
-
throw new sap.ui2.srvc.Error(that + ": collection is not a stub anymore",
|
|
133
|
-
"sap.ui2.srvc.AllCatalogs");
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function loadCatalogs () {
|
|
137
|
-
var i, n, oCatalog;
|
|
138
|
-
|
|
139
|
-
if (!bPartially) {
|
|
140
|
-
// Note: If a catalog is still a stub here, it refers to a different system. We don't
|
|
141
|
-
// expect to have many such catalogs, so we don't mind loading them serialized.
|
|
142
|
-
for (i = 0, n = aCatalogs.length; i < n; i += 1) {
|
|
143
|
-
oCatalog = aCatalogs[i];
|
|
144
|
-
if (oCatalog.isStub()) {
|
|
145
|
-
oCatalog.load(loadCatalogs, fnFailure);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
fnSuccess();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function onSuccess (oAlterEgo) {
|
|
154
|
-
var i, n;
|
|
155
|
-
|
|
156
|
-
jQuery.sap.log.debug("Loaded: " + that, null, "sap.ui2.srvc.AllCatalogs");
|
|
157
|
-
bIsStub = false;
|
|
158
|
-
aCatalogs = [];
|
|
159
|
-
for (i = 0, n = oAlterEgo.results.length; i < n; i += 1) {
|
|
160
|
-
fnRequire("sap.ui2.srvc.catalog");
|
|
161
|
-
aCatalogs.push(oFactory.createCatalog(oAlterEgo.results[i]));
|
|
162
|
-
}
|
|
163
|
-
jQuery.sap.log.debug("Initialized: " + that, null, "sap.ui2.srvc.AllCatalogs");
|
|
164
|
-
loadCatalogs();
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
oFactory.getPageBuildingService().readAllCatalogs(sPageId, onSuccess, fnFailure, sFilter, sSorting, !!bCache /* false is the default */);
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Returns this <code>allCatalogs</code> collection's string representation.
|
|
172
|
-
*
|
|
173
|
-
* @param {boolean} [bVerbose=false]
|
|
174
|
-
* flag whether to show all properties
|
|
175
|
-
* @returns {string}
|
|
176
|
-
* this <code>allCatalogs</code> collection's string representation
|
|
177
|
-
* @since 1.7.0
|
|
178
|
-
*/
|
|
179
|
-
this.toString = function (bVerbose) {
|
|
180
|
-
var aResult = ['sap.ui2.srvc.AllCatalogs({sPageId:"', sPageId, '",bIsStub:', bIsStub];
|
|
181
|
-
if (bVerbose) {
|
|
182
|
-
aResult.push(",aCatalogs:", JSON.stringify(aCatalogs));
|
|
183
|
-
}
|
|
184
|
-
aResult.push("})");
|
|
185
|
-
return aResult.join("");
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
// constructor code -------------------------------------------------------
|
|
189
|
-
if (!sap.ui2.srvc.Error) {
|
|
190
|
-
fnRequire("sap.ui2.srvc.error");
|
|
191
|
-
}
|
|
192
|
-
if (!sPageId) {
|
|
193
|
-
throw new sap.ui2.srvc.Error("Missing page ID", "sap.ui2.srvc.AllCatalogs");
|
|
194
|
-
}
|
|
195
|
-
jQuery.sap.log.debug("Created: " + this, null, "sap.ui2.srvc.AllCatalogs");
|
|
196
|
-
};
|
|
197
|
-
}());
|