@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,326 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2020 SAP SE, All Rights Reserved
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @fileOverview The <code>configurationUi</code> contract.
|
|
5
|
-
*/
|
|
6
|
-
(function () {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
// Note: jQuery might not yet be available!
|
|
10
|
-
if (typeof jQuery === "function" && jQuery.sap) {
|
|
11
|
-
jQuery.sap.declare("sap.ui2.srvc.contracts.configurationUi");
|
|
12
|
-
jQuery.sap.require("sap.ui2.srvc.chip");
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @namespace The namespace for the CHIP API's <code>configurationUi</code> contract, which
|
|
17
|
-
* allows you to provide a CHIP-specific configuration UI with all related functionality.
|
|
18
|
-
* @name chip.configurationUi
|
|
19
|
-
* @since 1.11.0
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
sap.ui2.srvc.Chip.addContract("configurationUi", function (oChipInstance) {
|
|
23
|
-
var fnCancelHandler,
|
|
24
|
-
fnDisplayHandler,
|
|
25
|
-
fnDirtyProvider,
|
|
26
|
-
bEnabled = false,
|
|
27
|
-
fnSaveHandler,
|
|
28
|
-
fnUiProvider;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Attaches the given event handler to the "cancel" event which is fired whenever the user
|
|
32
|
-
* chooses to cancel configuration. You can inform the user about unsaved changes by
|
|
33
|
-
* setting a "dirty" provider.
|
|
34
|
-
*
|
|
35
|
-
* Use <code>Function.prototype.bind()</code> to determine the event handler's
|
|
36
|
-
* <code>this</code> or some of its arguments.
|
|
37
|
-
*
|
|
38
|
-
* Note: Without such an event handler, it will not be possible to cancel the configuration UI
|
|
39
|
-
* for this CHIP.
|
|
40
|
-
*
|
|
41
|
-
* @name chip.configurationUi.attachCancel
|
|
42
|
-
* @function
|
|
43
|
-
* @since 1.11.0
|
|
44
|
-
* @param {function} fnEventHandler
|
|
45
|
-
* event handler for canceling configuration
|
|
46
|
-
*
|
|
47
|
-
* @see chip.configurationUi.attachSave
|
|
48
|
-
* @see chip.configurationUi.setDirtyProvider
|
|
49
|
-
*/
|
|
50
|
-
this.attachCancel = function (fnEventHandler) {
|
|
51
|
-
if (typeof fnEventHandler !== "function") {
|
|
52
|
-
throw new sap.ui2.srvc.Error("Cancel event handler is not a function",
|
|
53
|
-
"chip.configurationUi");
|
|
54
|
-
}
|
|
55
|
-
fnCancelHandler = fnEventHandler;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Attaches the given event handler to the "save" event which is fired whenever the user
|
|
60
|
-
* chooses to save the current configuration. The event handler should return a
|
|
61
|
-
* <code>jQuery.Deferred</code> object's promise to inform the caller whether the save
|
|
62
|
-
* operation has been successful or not. In the latter case an error message is provided.
|
|
63
|
-
*
|
|
64
|
-
* Use <code>Function.prototype.bind()</code> to determine the event handler's
|
|
65
|
-
* <code>this</code> or some of its arguments.
|
|
66
|
-
*
|
|
67
|
-
* Note: Without such an event handler, it will not be possible to save configurations for this
|
|
68
|
-
* CHIP.
|
|
69
|
-
*
|
|
70
|
-
* @name chip.configurationUi.attachSave
|
|
71
|
-
* @function
|
|
72
|
-
* @since 1.11.0
|
|
73
|
-
* @param {function} fnEventHandler
|
|
74
|
-
* event handler for saving the current configuration; returns a <code>jQuery.Deferred</code>
|
|
75
|
-
* object's promise
|
|
76
|
-
*
|
|
77
|
-
* @see chip.configurationUi.attachCancel
|
|
78
|
-
*/
|
|
79
|
-
this.attachSave = function (fnEventHandler) {
|
|
80
|
-
if (typeof fnEventHandler !== "function") {
|
|
81
|
-
throw new sap.ui2.srvc.Error("Save event handler is not a function",
|
|
82
|
-
"chip.configurationUi");
|
|
83
|
-
}
|
|
84
|
-
fnSaveHandler = fnEventHandler;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Inform the embedding application that the user has triggered configuration of this CHIP.
|
|
89
|
-
* The embedding application will get this CHIP's configuration UI from the callback determined
|
|
90
|
-
* via <code>chip.configurationUi.setUiProvider()</code> and display it with
|
|
91
|
-
* additional "save" and "cancel" buttons. If these are pressed, the CHIP instance is informed
|
|
92
|
-
* via the corresponding "save" and "cancel" events.
|
|
93
|
-
*
|
|
94
|
-
* @name chip.configurationUi.display
|
|
95
|
-
* @function
|
|
96
|
-
* @since 1.11.0
|
|
97
|
-
*
|
|
98
|
-
* @see chip.configurationUi.attachCancel
|
|
99
|
-
* @see chip.configurationUi.attachSave
|
|
100
|
-
* @see chip.configurationUi.setUiProvider
|
|
101
|
-
*/
|
|
102
|
-
this.display = function () {
|
|
103
|
-
if (fnDisplayHandler) {
|
|
104
|
-
fnDisplayHandler();
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Tells whether configuration of CHIPs is enabled. Note that this value is constant throughout
|
|
110
|
-
* a CHIP's lifetime. If configuration is enabled, CHIPs should provide a way for the user to
|
|
111
|
-
* trigger configuration and should not display live data (as administrators will not have the
|
|
112
|
-
* corresponding permissions). This trigger should then inform the embedding application to
|
|
113
|
-
* display the configuration UI.
|
|
114
|
-
*
|
|
115
|
-
* @name chip.configurationUi.isEnabled
|
|
116
|
-
* @function
|
|
117
|
-
* @since 1.11.0
|
|
118
|
-
* @returns {boolean}
|
|
119
|
-
* whether configuration is enabled
|
|
120
|
-
*
|
|
121
|
-
* @see chip.configurationUi.display
|
|
122
|
-
*/
|
|
123
|
-
this.isEnabled = function () {
|
|
124
|
-
return bEnabled;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Tells whether this CHIP is readOnly.
|
|
129
|
-
* Before calling this method please ensure that it is available.
|
|
130
|
-
* (Extension of an already existing contract)
|
|
131
|
-
*
|
|
132
|
-
* @name chip.configurationUi.isReadOnly
|
|
133
|
-
* @function
|
|
134
|
-
* @returns {boolean}
|
|
135
|
-
* whether this CHIP instance is readOnly
|
|
136
|
-
* @since 1.32.0
|
|
137
|
-
*/
|
|
138
|
-
this.isReadOnly = function () {
|
|
139
|
-
return oChipInstance.isReadOnly();
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Determines the callback function which provides the configuration UI's "dirty" state for
|
|
144
|
-
* this CHIP. The callback has to return a <code>boolean</code> value telling whether this
|
|
145
|
-
* CHIP's configuration UI is currently in a "dirty" state, i.e. contains unsaved changes.
|
|
146
|
-
*
|
|
147
|
-
* An embedding application calls this function each time the user wants to cancel the CHIP's
|
|
148
|
-
* configuration UI. A confirmation dialog will be presented to the user in case the UI is
|
|
149
|
-
* "dirty".
|
|
150
|
-
*
|
|
151
|
-
* Use <code>Function.prototype.bind()</code> to determine the callback's <code>this</code> or
|
|
152
|
-
* some of its arguments.
|
|
153
|
-
*
|
|
154
|
-
* Note: Without such a callback, it will not be possible to inform the user about unsaved
|
|
155
|
-
* changes.
|
|
156
|
-
*
|
|
157
|
-
* @name chip.configurationUi.setDirtyProvider
|
|
158
|
-
* @function
|
|
159
|
-
* @since 1.11.0
|
|
160
|
-
* @param {function} fnProvider
|
|
161
|
-
* a callback which returns a <code>boolean</code> value telling whether this CHIP's
|
|
162
|
-
* configuration UI is currently in a "dirty" state
|
|
163
|
-
*
|
|
164
|
-
* @see chip.configurationUi.attachCancel
|
|
165
|
-
*/
|
|
166
|
-
this.setDirtyProvider = function (fnProvider) {
|
|
167
|
-
fnDirtyProvider = fnProvider;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
/* eslint-disable valid-jsdoc*/ // < > are confusing eslint
|
|
171
|
-
/**
|
|
172
|
-
* Determines the callback function which provides the configuration UI for this CHIP. The
|
|
173
|
-
* callback has to return an SAPUI5 control (<code>sap.ui.core.Control</code>), which, for
|
|
174
|
-
* example, can be a view or a component wrapped into a
|
|
175
|
-
* <code>sap.ui.core.ComponentContainer</code>.
|
|
176
|
-
*
|
|
177
|
-
* An embedding application calls this function each time it wants to display the CHIP's
|
|
178
|
-
* configuration UI. Once the user chooses to save or cancel the configuration, the UI will be
|
|
179
|
-
* removed from the embedding application's UI, but not destroyed! Use the event handlers for
|
|
180
|
-
* the corresponding "save" and "cancel" events to clean up the UI as necessary (e.g. destroy
|
|
181
|
-
* it).
|
|
182
|
-
*
|
|
183
|
-
* Use <code>Function.prototype.bind()</code> to determine the callback's <code>this</code> or
|
|
184
|
-
* some of its arguments.
|
|
185
|
-
*
|
|
186
|
-
* Note: Without such a callback, it will not be possible to configure this CHIP.
|
|
187
|
-
*
|
|
188
|
-
* @name chip.configurationUi.setUiProvider
|
|
189
|
-
* @function
|
|
190
|
-
* @since 1.11.0
|
|
191
|
-
* @param {function (Object<string,string>)} fnProvider
|
|
192
|
-
* a callback which returns an SAPUI5 control (<code>sap.ui.core.Control</code>)
|
|
193
|
-
* representing this CHIP's configuration UI.
|
|
194
|
-
* Since 1.21.0 an optional parameter map can be passed to the UI provider. This map can be
|
|
195
|
-
* used for example to pass default configuration values to the UI.
|
|
196
|
-
*
|
|
197
|
-
* @see chip.configurationUi.attachCancel
|
|
198
|
-
* @see chip.configurationUi.attachSave
|
|
199
|
-
*/
|
|
200
|
-
this.setUiProvider = function (fnProvider) {
|
|
201
|
-
fnUiProvider = fnProvider;
|
|
202
|
-
};
|
|
203
|
-
/* eslint-enable valid-jsdoc*/
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @namespace The namespace for the contract interface (to be used by a page builder) for
|
|
207
|
-
* the <code>configurationUi</code> contract, which allows you to use a CHIP-specific
|
|
208
|
-
* configuration UI with all related functionality.
|
|
209
|
-
* @name contract.configurationUi
|
|
210
|
-
* @since 1.11.0
|
|
211
|
-
*/
|
|
212
|
-
return {
|
|
213
|
-
/**
|
|
214
|
-
* Attaches the given event handler to the "display" event which is fired by the
|
|
215
|
-
* CHIP instance whenever the user has triggered configuration of this CHIP.
|
|
216
|
-
*
|
|
217
|
-
* @param {function} fnEventHandler
|
|
218
|
-
* the event handler for the "display" event
|
|
219
|
-
*
|
|
220
|
-
* @name contract.configurationUi.attachDisplay
|
|
221
|
-
* @function
|
|
222
|
-
* @since 1.11.0
|
|
223
|
-
*
|
|
224
|
-
* @see chip.configurationUi.display
|
|
225
|
-
*/
|
|
226
|
-
attachDisplay: function (fnEventHandler) {
|
|
227
|
-
if (typeof fnEventHandler !== "function") {
|
|
228
|
-
throw new sap.ui2.srvc.Error("Display event handler is not a function",
|
|
229
|
-
"sap.ui2.srvc.ChipInstance");
|
|
230
|
-
}
|
|
231
|
-
fnDisplayHandler = fnEventHandler;
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Fires the "cancel" event on this CHIP instance's configuration UI.
|
|
236
|
-
*
|
|
237
|
-
* @name contract.configurationUi.fireCancel
|
|
238
|
-
* @function
|
|
239
|
-
* @since 1.11.0
|
|
240
|
-
*
|
|
241
|
-
* @see chip.configurationUi.attachCancel
|
|
242
|
-
*/
|
|
243
|
-
fireCancel: function () {
|
|
244
|
-
if (fnCancelHandler) {
|
|
245
|
-
fnCancelHandler();
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Fires the "save" event on this CHIP instance's configuration UI.
|
|
251
|
-
*
|
|
252
|
-
* @returns {object}
|
|
253
|
-
* a <code>jQuery.Deferred</code> object's promise as returned by the "save" event handler
|
|
254
|
-
*
|
|
255
|
-
* @name contract.configurationUi.fireSave
|
|
256
|
-
* @function
|
|
257
|
-
* @since 1.11.0
|
|
258
|
-
*
|
|
259
|
-
* @see chip.configurationUi.attachSave
|
|
260
|
-
*/
|
|
261
|
-
fireSave: function () {
|
|
262
|
-
return fnSaveHandler ? fnSaveHandler() : undefined;
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
/* eslint-disable valid-jsdoc*/ // < > are confusing eslint
|
|
266
|
-
/**
|
|
267
|
-
* Returns this CHIP's configuration UI, if available.
|
|
268
|
-
*
|
|
269
|
-
* @param {Object<string,string>} [mParameters]
|
|
270
|
-
* Since 1.21.0 an optional parameter map can be passed to the UI provider. This map can be
|
|
271
|
-
* used for example to pass default configuration values to the UI.
|
|
272
|
-
*
|
|
273
|
-
* @returns {sap.ui.core.Control}
|
|
274
|
-
* this CHIP's configuration UI or <code>undefined</code>
|
|
275
|
-
*
|
|
276
|
-
* @name contract.configurationUi.getUi
|
|
277
|
-
* @function
|
|
278
|
-
* @since 1.11.0
|
|
279
|
-
*
|
|
280
|
-
* @see chip.configurationUi.setUiProvider
|
|
281
|
-
*/
|
|
282
|
-
getUi: function (mParameters) {
|
|
283
|
-
return fnUiProvider ? fnUiProvider(mParameters) : undefined;
|
|
284
|
-
},
|
|
285
|
-
/* eslint-enable valid-jsdoc*/
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Tells whether this CHIP's configuration UI is currently in a "dirty" state (contains
|
|
289
|
-
* unsaved changes).
|
|
290
|
-
*
|
|
291
|
-
* @returns {boolean}
|
|
292
|
-
* whether this CHIP's configuration UI is currently in a "dirty" state; returns
|
|
293
|
-
* <code>undefined</code> in case the CHIP instance has not set a corresponding provider
|
|
294
|
-
* function
|
|
295
|
-
*
|
|
296
|
-
* @name contract.configurationUi.isDirty
|
|
297
|
-
* @function
|
|
298
|
-
* @since 1.11.0
|
|
299
|
-
*
|
|
300
|
-
* @see chip.configurationUi.setDirtyProvider
|
|
301
|
-
*/
|
|
302
|
-
isDirty: function () {
|
|
303
|
-
return fnDirtyProvider ? fnDirtyProvider() : undefined;
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Determines whether this CHIP instance's configuration UI is enabled by the page builder.
|
|
308
|
-
* <b>Note:</b> Changing this setting after <code>getImplementationAsSapui5()</code> has been
|
|
309
|
-
* called violates the contract of <code>chip.configurationUi.isEnabled()</code>!
|
|
310
|
-
*
|
|
311
|
-
* @param {boolean} bNewEnabled
|
|
312
|
-
* whether this CHIP instance's configuration UI is enabled by the page builder
|
|
313
|
-
*
|
|
314
|
-
* @name contract.configurationUi.setEnabled
|
|
315
|
-
* @function
|
|
316
|
-
* @since 1.11.0
|
|
317
|
-
*
|
|
318
|
-
* @see sap.ui2.srvc.ChipInstance#getImplementationAsSapui5()
|
|
319
|
-
* @see chip.configurationUi.isEnabled
|
|
320
|
-
*/
|
|
321
|
-
setEnabled: function (bNewEnabled) {
|
|
322
|
-
bEnabled = bNewEnabled;
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
});
|
|
326
|
-
}());
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2020 SAP SE, All Rights Reserved
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @fileOverview The <code>fullscreen</code> contract.
|
|
5
|
-
*/
|
|
6
|
-
(function () {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
// Note: jQuery might not yet be available!
|
|
10
|
-
if (typeof jQuery === "function" && jQuery.sap) {
|
|
11
|
-
jQuery.sap.declare("sap.ui2.srvc.contracts.fullscreen");
|
|
12
|
-
jQuery.sap.require("sap.ui2.srvc.chip");
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @namespace The namespace for the CHIP API's <code>fullscreen</code> contract, which allows you
|
|
17
|
-
* to deal with toggling of fullscreen mode.
|
|
18
|
-
* @name chip.fullscreen
|
|
19
|
-
* @since 1.2.0
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
sap.ui2.srvc.Chip.addContract("fullscreen", function (oChipInstance) {
|
|
23
|
-
/**
|
|
24
|
-
* Tells whether fullscreen mode is currently turned on.
|
|
25
|
-
*
|
|
26
|
-
* @name chip.fullscreen.getFullscreen
|
|
27
|
-
* @function
|
|
28
|
-
* @since 1.2.0
|
|
29
|
-
* @returns {boolean}
|
|
30
|
-
* whether fullscreen mode is turned on
|
|
31
|
-
*/
|
|
32
|
-
this.getFullscreen = function () {
|
|
33
|
-
return oChipInstance.getFullscreen();
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Turns fullscreen mode on as specified.
|
|
38
|
-
*
|
|
39
|
-
* @name chip.fullscreen.setFullscreen
|
|
40
|
-
* @function
|
|
41
|
-
* @since 1.2.0
|
|
42
|
-
* @param {boolean} bOn
|
|
43
|
-
* whether fullscreen mode is turned on
|
|
44
|
-
*/
|
|
45
|
-
this.setFullscreen = function (bOn) {
|
|
46
|
-
oChipInstance.setFullscreen(bOn);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Attaches the given event handler to the "fullscreen" event which is fired
|
|
51
|
-
* whenever fullscreen mode is toggled.
|
|
52
|
-
*
|
|
53
|
-
* Use <code>Function.prototype.bind()</code> to determine the event handler's
|
|
54
|
-
* <code>this</code> or some of its arguments.
|
|
55
|
-
*
|
|
56
|
-
* Note: Without such an event handler, the CHIP will simply continue to display the
|
|
57
|
-
* same content, no matter whether fullscreen mode is on or off.
|
|
58
|
-
*
|
|
59
|
-
* @name chip.fullscreen.attachFullscreen
|
|
60
|
-
* @function
|
|
61
|
-
* @since 1.2.0
|
|
62
|
-
* @param {function} fnEventHandler
|
|
63
|
-
* the event handler for the "fullscreen" event
|
|
64
|
-
*/
|
|
65
|
-
this.attachFullscreen = function (fnEventHandler) {
|
|
66
|
-
oChipInstance.attachFullscreen(fnEventHandler);
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
}());
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2009-2020 SAP SE, All Rights Reserved
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @fileOverview The <code>navigation</code> contract.
|
|
5
|
-
*/
|
|
6
|
-
(function () {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
// Note: jQuery might not yet be available!
|
|
10
|
-
if (typeof jQuery === "function" && jQuery.sap) {
|
|
11
|
-
jQuery.sap.declare("sap.ui2.srvc.contracts.navigation");
|
|
12
|
-
jQuery.sap.require("sap.ui2.srvc.chip");
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
var oNavigationHandle;
|
|
16
|
-
if (typeof sap.ui2.shell === "object"
|
|
17
|
-
&& typeof sap.ui2.shell.getNavigationHandle === "function") {
|
|
18
|
-
oNavigationHandle = sap.ui2.shell.getNavigationHandle();
|
|
19
|
-
if (typeof oNavigationHandle === "object"
|
|
20
|
-
&& typeof oNavigationHandle.navigateToUrl === "function") {
|
|
21
|
-
/**
|
|
22
|
-
* @namespace The namespace for the CHIP API's <code>navigation</code> contract, which allows
|
|
23
|
-
* you to navigate to a launchpad URL in a surrounding shell.
|
|
24
|
-
* @name chip.navigation
|
|
25
|
-
* @since 1.2.0
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
sap.ui2.srvc.Chip.addContract("navigation", function (oChipInstance) {
|
|
29
|
-
/**
|
|
30
|
-
* Navigates to the given URL using the optional settings.
|
|
31
|
-
*
|
|
32
|
-
* @name chip.navigation.navigateToUrl
|
|
33
|
-
* @function
|
|
34
|
-
* @since 1.2.0
|
|
35
|
-
* @param {string} sUrl
|
|
36
|
-
* the URL to navigate to
|
|
37
|
-
* @param {object} [oSettings]
|
|
38
|
-
* the settings
|
|
39
|
-
*
|
|
40
|
-
* @see <code>sap.ui2.shell.getNavigationHandle().navigateToUrl()<code>
|
|
41
|
-
*/
|
|
42
|
-
this.navigateToUrl = function (sUrl, oSettings) {
|
|
43
|
-
oNavigationHandle.navigateToUrl.apply(oNavigationHandle, arguments);
|
|
44
|
-
};
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}());
|