@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.
Files changed (95) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ushell_abap/.library +2 -2
  3. package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +1 -1
  4. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +2 -2
  5. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +2 -2
  6. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +2 -2
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +2 -2
  8. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +37 -4
  9. package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +1 -1
  10. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +2 -2
  11. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +2 -2
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +35 -15
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +2 -2
  14. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +2 -2
  15. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +2 -2
  16. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +2 -2
  17. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +1 -1
  18. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +2 -2
  19. package/src/main/js/sap/ushell_abap/bootstrap/evo/XhrLogonEventHandler.js +1 -1
  20. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def-dev.js +1 -1
  21. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def-loader.js +7 -0
  22. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def.js +1 -1
  23. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils.js +1 -1
  24. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +2 -2
  25. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.constants.js +1 -1
  26. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +1 -1
  27. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.js +1 -1
  28. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +2 -17
  29. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.pageset.js +1 -1
  30. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +1 -1
  31. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.startup.js +1 -1
  32. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.theme.handler.js +1 -1
  33. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.ui5.boot.handler.js +1 -1
  34. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.validate.Url.js +1 -1
  35. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhr.handler.js +1 -1
  36. package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +6 -12
  37. package/src/main/js/sap/ushell_abap/library.js +3 -3
  38. package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +1 -1
  39. package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +1 -6
  40. package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +1 -1
  41. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +127 -15
  42. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +1 -1
  43. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +14 -6
  44. package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +1 -1
  45. package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +1 -1
  46. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +1 -1
  47. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1 -1
  48. package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +1 -8
  49. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +1 -1
  50. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +1 -1
  51. package/src/main/js/sap/ushell_abap/pbServices/ui2/RemoteCatalogService.js +1 -1
  52. package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +1 -8
  53. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/actions.js +1 -1
  54. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/bag.js +1 -1
  55. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +1 -1
  56. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +1 -1
  57. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/fullscreen.js +1 -1
  58. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/preview.js +1 -1
  59. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/refresh.js +1 -1
  60. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +1 -1
  61. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/types.js +1 -1
  62. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/url.js +1 -1
  63. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +1 -1
  64. package/src/main/js/sap/ushell_abap/support/plugins/app-infra/AppInfraOnSapNetWeaverSupportPlugin.js +1 -1
  65. package/src/main/js/sap/ushell_abap/ui5appruntime/AppInfoAdapter.js +1 -1
  66. package/ui5.yaml +376 -30
  67. package/src/main/js/sap/ui2/srvc/ODataService.js +0 -267
  68. package/src/main/js/sap/ui2/srvc/ODataWrapper.js +0 -1283
  69. package/src/main/js/sap/ui2/srvc/PageBuildingService.js +0 -1508
  70. package/src/main/js/sap/ui2/srvc/RemoteCatalogService.js +0 -49
  71. package/src/main/js/sap/ui2/srvc/allcatalogs.js +0 -197
  72. package/src/main/js/sap/ui2/srvc/bag.js +0 -711
  73. package/src/main/js/sap/ui2/srvc/catalog.js +0 -946
  74. package/src/main/js/sap/ui2/srvc/chip.js +0 -1035
  75. package/src/main/js/sap/ui2/srvc/chipdefinition.js +0 -228
  76. package/src/main/js/sap/ui2/srvc/chipinstance.js +0 -944
  77. package/src/main/js/sap/ui2/srvc/contracts/actions.js +0 -239
  78. package/src/main/js/sap/ui2/srvc/contracts/bag.js +0 -145
  79. package/src/main/js/sap/ui2/srvc/contracts/configuration.js +0 -161
  80. package/src/main/js/sap/ui2/srvc/contracts/configurationUi.js +0 -326
  81. package/src/main/js/sap/ui2/srvc/contracts/fullscreen.js +0 -69
  82. package/src/main/js/sap/ui2/srvc/contracts/navigation.js +0 -48
  83. package/src/main/js/sap/ui2/srvc/contracts/preview.js +0 -289
  84. package/src/main/js/sap/ui2/srvc/contracts/refresh.js +0 -42
  85. package/src/main/js/sap/ui2/srvc/contracts/search.js +0 -109
  86. package/src/main/js/sap/ui2/srvc/contracts/searchProvider.js +0 -46
  87. package/src/main/js/sap/ui2/srvc/contracts/types.js +0 -9
  88. package/src/main/js/sap/ui2/srvc/contracts/url.js +0 -104
  89. package/src/main/js/sap/ui2/srvc/contracts/visible.js +0 -122
  90. package/src/main/js/sap/ui2/srvc/error.js +0 -54
  91. package/src/main/js/sap/ui2/srvc/factory.js +0 -656
  92. package/src/main/js/sap/ui2/srvc/page.js +0 -934
  93. package/src/main/js/sap/ui2/srvc/pageset.js +0 -466
  94. package/src/main/js/sap/ui2/srvc/utils.js +0 -923
  95. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/navigation.js +0 -50
@@ -1,267 +0,0 @@
1
- // Copyright (c) 2009-2020 SAP SE, All Rights Reserved
2
-
3
- /**
4
- * @fileOverview A facade to any OData service, providing CSRF token handling and a default
5
- * error handler.
6
- */
7
- (function () {
8
- "use strict";
9
-
10
- jQuery.sap.declare("sap.ui2.srvc.ODataService");
11
-
12
- var fnRequire;
13
-
14
- // Note: Only the section between @begin and @end is included in pbs-template.js.
15
- // In pbs-template fnRequire is differently initialized (in case UI5 is not available)!
16
- // Thus this variable is used in the coding below and not directly jQuery.sap.require.
17
- // avoid fnRequire = jQuery.sap.require as require cannot be spied on afterwards
18
- fnRequire = function () {
19
- jQuery.sap.require.apply(this, arguments);
20
- };
21
-
22
- function nop () { /* null object pattern */ }
23
-
24
- /// @begin
25
- var mCsrfTokens;
26
-
27
- if (!sap.ui2.srvc.Map) {
28
- fnRequire("sap.ui2.srvc.utils");
29
- }
30
- mCsrfTokens = new sap.ui2.srvc.Map();
31
- // "public class" ************************************************************
32
-
33
- /**
34
- * Constructs a facade to any OData service, providing token handling for SAP NetWeaver Gateway's
35
- * token-based CSRF protection mechanism.
36
- *
37
- * @param {sap.ui2.srvc.ODataWrapper} oODataWrapper
38
- * OData wrapper instance this service facade delegates to
39
- * @param {function (string, object=)} [fnDefaultFailure]
40
- * error handler taking an error message and, since version 1.28.6, an
41
- * optional object containing the complete error information as delivered
42
- * by the ODataService. See fnFailure parameter of {@link sap.ui2.srvc.ODataWrapper#onError}
43
- * for more details.
44
- *
45
- * @class
46
- * @borrows sap.ui2.srvc.ODataWrapper#submitBatchQueue as #submitBatchQueue
47
- * @public
48
- * @since 1.19.0
49
- */
50
- sap.ui2.srvc.ODataService = function (oODataWrapper, fnDefaultFailure) {
51
- var sBaseUrl;
52
-
53
- // BEWARE: constructor code below!
54
-
55
- // "private" methods -------------------------------------------------------
56
-
57
- // "public" methods --------------------------------------------------------
58
-
59
- /**
60
- * Returns the current value of the CSRF token. It is initially empty and determined
61
- * automatically by <code>sap.ui2.srvc.ODataWrapper</code> on successful read requests.
62
- *
63
- * @returns {string}
64
- * the current value of the CSRF token
65
- * @public
66
- * @since 1.7.0
67
- * @see #refreshCsrfToken
68
- * @see #setCsrfToken
69
- */
70
- this.getCsrfToken = function () {
71
- if (mCsrfTokens.get(sBaseUrl) && mCsrfTokens.get(sBaseUrl).token) {
72
- return mCsrfTokens.get(sBaseUrl).token;
73
- }
74
- return "";
75
- };
76
-
77
- /**
78
- * Returns the default error handler for this facade.
79
- *
80
- * @returns {function (string, object=)}
81
- * error handler taking an error message and, since version 1.28.6, an
82
- * optional object containing the complete error information as delivered
83
- * by the ODataService. See fnFailure parameter of {@link sap.ui2.srvc.ODataWrapper#onError}
84
- * for more details.
85
- * @since 1.2.0
86
- */
87
- this.getDefaultErrorHandler = function () {
88
- return fnDefaultFailure;
89
- };
90
-
91
- /**
92
- * Opens a new queue where all requests are parked until a call to {@link #submitBatchQueue}.
93
- *
94
- * @public
95
- * @since 1.19.0
96
- */
97
- this.openBatchQueue = function () {
98
- oODataWrapper.openBatchQueue();
99
- };
100
-
101
- /**
102
- * Refreshes the CSRF token of this OData service by reading the service document again, which
103
- * is never cached. Called automatically by <code>sap.ui2.srvc.ODataWrapper</code> on a write
104
- * operation if the CSRF token is missing or expired.
105
- *
106
- * @param {function ()} fnSuccess
107
- * a callback function that is executed if the request succeeds
108
- * @param {function (string, object=)} [fnFailure]
109
- * error handler taking an error message and, since version 1.28.6, an
110
- * optional object containing the complete error information as delivered
111
- * by the ODataService. See fnFailure parameter of {@link sap.ui2.srvc.ODataWrapper#onError}
112
- * for more details.
113
- * @public
114
- * @since 1.17.0
115
- * @see #getCsrfToken
116
- * @see #setCsrfToken
117
- * @see sap.ui2.srvc.ODataWrapper#read
118
- */
119
- this.refreshCsrfToken = function (fnSuccess, fnFailure) {
120
- var oTokenData;
121
-
122
- if (typeof fnSuccess !== "function") {
123
- throw new sap.ui2.srvc.Error("Success callback is not a function",
124
- "sap.ui2.srvc.ODataService");
125
- }
126
- fnFailure = fnFailure || fnDefaultFailure;
127
-
128
- oTokenData = mCsrfTokens.get(sBaseUrl);
129
-
130
- if (!oTokenData.fetchingInProgress) {
131
- // fetch token
132
- oTokenData.token = undefined;
133
- oTokenData.fetchingInProgress = true;
134
-
135
- // GET service document which is never cached
136
- oODataWrapper.read("", function () {
137
- // wrapper.read does a setCsrfToken call
138
- if (!mCsrfTokens.get(sBaseUrl) || !mCsrfTokens.get(sBaseUrl).token) {
139
- fnFailure("No CSRF token delivered");
140
-
141
- oTokenData.errorHandlers.forEach(function (fnHandler) {
142
- fnHandler("No CSRF token delivered");
143
- });
144
- } else {
145
- // drop excess parameters; Note: try/catch already done by read()!
146
- fnSuccess();
147
- oTokenData.successHandlers.forEach(function (fnHandler) {
148
- fnHandler();
149
- });
150
- }
151
- oTokenData.successHandlers = [];
152
- oTokenData.errorHandlers = [];
153
- // TODO clarify if should be done in setCsrfToken (called by wrapper.read) (interference
154
- // with GET?)
155
- oTokenData.fetchingInProgress = false;
156
- }, function () {
157
- oTokenData.fetchingInProgress = false;
158
- fnFailure.apply(null, arguments);
159
- });
160
- } else {
161
- // token fetching already in progress by other instance, only register handlers
162
- oTokenData.successHandlers.push(fnSuccess);
163
- oTokenData.errorHandlers.push(fnFailure);
164
- }
165
- };
166
-
167
- /**
168
- * Determines the new value of the CSRF token. Use this function to synchronize the CSRF token
169
- * across multiple instances of this facade in case their first read requests run in parallel.
170
- * Retrieve the token from a service in the success handler of its read request and distribute
171
- * it to all other services; do so for each service. Note that the last success handler of all
172
- * first read requests run in parallel determines the token to be used for modifications.
173
- * <p>
174
- * If debugging HTTP traffic, watch out for <code>x-csrf-token</code> headers and
175
- * <code>sap-XSRF_*</code> cookies.
176
- *
177
- * @param {string} [sNewCsrfToken=""]
178
- * the new value of the CSRF token, which may be <code>null</code> or <code>undefined</code>
179
- * @public
180
- * @since 1.7.0
181
- * @see #getCsrfToken
182
- * @see #refreshCsrfToken
183
- */
184
- this.setCsrfToken = function (sNewCsrfToken) {
185
- var oTokenData;
186
- // sNewCsrfToken must be a string OR undefined
187
- if (sNewCsrfToken && typeof sNewCsrfToken !== "string") {
188
- throw new sap.ui2.srvc.Error("Invalid CSRF token: " + sNewCsrfToken,
189
- "sap.ui2.srvc.ODataService");
190
- }
191
- oTokenData = mCsrfTokens.get(sBaseUrl);
192
- oTokenData.token = sNewCsrfToken;
193
- };
194
-
195
- /**
196
- * Sets the default error handler for this facade.
197
- *
198
- * @param {function (string, object=)} fnNewDefaultFailure
199
- * error handler taking an error message and, since version 1.28.6, an
200
- * optional object containing the complete error information as delivered
201
- * by the ODataService. See fnFailure parameter of {@link sap.ui2.srvc.ODataWrapper#onError}
202
- * for more details.
203
- * @public
204
- * @since 1.2.0
205
- */
206
- this.setDefaultErrorHandler = function (fnNewDefaultFailure) {
207
- if (fnNewDefaultFailure && typeof fnNewDefaultFailure !== "function") {
208
- throw new sap.ui2.srvc.Error("Error callback is not a function",
209
- "sap.ui2.srvc.ODataService");
210
- }
211
- fnDefaultFailure = fnNewDefaultFailure || nop;
212
- };
213
-
214
- // cf. "@borrows sap.ui2.srvc.ODataWrapper#submitBatchQueue as #submitBatchQueue"
215
- this.submitBatchQueue = function () {
216
- oODataWrapper.submitBatchQueue.apply(oODataWrapper, arguments);
217
- };
218
-
219
- /**
220
- * Returns this facade's string representation.
221
- *
222
- * @param {boolean} [bVerbose=false]
223
- * flag whether to show all properties
224
- * @returns {string}
225
- * this facade's string representation
226
- * @since 1.2.0
227
- */
228
- this.toString = function (bVerbose) {
229
- var aResult = ["sap.ui2.srvc.ODataService({"];
230
- if (bVerbose) {
231
- aResult.push('csrfToken:"', this.getCsrfToken(), '"');
232
- aResult.push(",oODataWrapper:", oODataWrapper.toString(true));
233
- }
234
- aResult.push("})");
235
- return aResult.join("");
236
- };
237
-
238
- // constructor code -------------------------------------------------------
239
- if (!sap.ui2.srvc.Error) { // not needed anymore as error is part of utils
240
- fnRequire("sap.ui2.srvc.error");
241
- }
242
- if (!oODataWrapper) {
243
- throw new sap.ui2.srvc.Error("Missing OData wrapper", "sap.ui2.srvc.ODataService");
244
- }
245
-
246
- sBaseUrl = oODataWrapper.getBaseUrl();
247
- if (!mCsrfTokens.get(sBaseUrl)) {
248
- mCsrfTokens.put(sBaseUrl, {
249
- //token: undefined,
250
- fetchingInProgress: false,
251
- successHandlers: [],
252
- errorHandlers: []
253
- });
254
- }
255
-
256
- this.setDefaultErrorHandler(fnDefaultFailure);
257
- };
258
-
259
- /// @end
260
-
261
- /**
262
- * for test purposes only
263
- */
264
- sap.ui2.srvc.ODataService.resetSharedCsrfTokens = function () {
265
- mCsrfTokens = new sap.ui2.srvc.Map();
266
- };
267
- }());