@openui5/ts-types 1.96.2 → 1.97.0
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/types/sap.f.d.ts +1 -1
- package/types/sap.m.d.ts +490 -45
- package/types/sap.tnt.d.ts +1 -1
- package/types/sap.ui.codeeditor.d.ts +7 -1
- package/types/sap.ui.commons.d.ts +1 -1
- package/types/sap.ui.core.d.ts +389 -165
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +1 -3
- package/types/sap.ui.integration.d.ts +42 -1
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +20 -10
- package/types/sap.ui.rta.d.ts +5 -11
- package/types/sap.ui.suite.d.ts +1 -1
- package/types/sap.ui.support.d.ts +6 -6
- package/types/sap.ui.table.d.ts +3 -3
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +43 -1
- package/types/sap.ui.ux3.d.ts +1 -1
- package/types/sap.ui.webc.common.d.ts +1 -1
- package/types/sap.ui.webc.fiori.d.ts +679 -59
- package/types/sap.ui.webc.main.d.ts +1026 -506
- package/types/sap.uxap.d.ts +1 -1
package/types/sap.ui.core.d.ts
CHANGED
|
@@ -264,7 +264,7 @@ interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
|
264
264
|
): jQuery;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
// For Library Version: 1.
|
|
267
|
+
// For Library Version: 1.97.0
|
|
268
268
|
|
|
269
269
|
declare module "sap/base/assert" {
|
|
270
270
|
/**
|
|
@@ -5348,8 +5348,8 @@ declare namespace sap {
|
|
|
5348
5348
|
* to represent an individual folder. In other words: when a resource name is converted to a URL, any dots
|
|
5349
5349
|
* ('.') are converted to slashes ('/').
|
|
5350
5350
|
*
|
|
5351
|
-
* **
|
|
5352
|
-
*
|
|
5351
|
+
* **Note:** The **application root folder** is assumed to be the same as the folder where the current page
|
|
5352
|
+
* resides in.
|
|
5353
5353
|
*
|
|
5354
5354
|
* Usage sample:
|
|
5355
5355
|
* ```javascript
|
|
@@ -5367,12 +5367,7 @@ declare namespace sap {
|
|
|
5367
5367
|
*
|
|
5368
5368
|
*
|
|
5369
5369
|
* When applications need a more flexible mapping between resource names and their location, they can use
|
|
5370
|
-
* {@link
|
|
5371
|
-
*
|
|
5372
|
-
* It is intended to make this configuration obsolete in future releases, but for the time being, applications
|
|
5373
|
-
* must call this method when they want to store resources relative to the assumed application root folder.
|
|
5374
|
-
* See:
|
|
5375
|
-
* jQuery.sap.registerModulePath
|
|
5370
|
+
* {@link sap.ui.loader.config} with option `paths`.
|
|
5376
5371
|
*/
|
|
5377
5372
|
function localResources(
|
|
5378
5373
|
/**
|
|
@@ -5458,13 +5453,13 @@ declare namespace sap {
|
|
|
5458
5453
|
* Returns the URL of a resource that belongs to the given library and has the given relative location within
|
|
5459
5454
|
* the library. This is mainly meant for static resources like images that are inside the library. It is
|
|
5460
5455
|
* NOT meant for access to JavaScript modules or anything for which a different URL has been registered
|
|
5461
|
-
* with
|
|
5456
|
+
* with sap.ui.loader.config({paths:...}). For these cases use sap.ui.require.toUrl(). It DOES work, however,
|
|
5462
5457
|
* when the given sResourcePath starts with "themes/" (= when it is a theme-dependent resource). Even when
|
|
5463
5458
|
* for this theme a different location outside the normal library location is configured.
|
|
5464
5459
|
*/
|
|
5465
5460
|
function resource(
|
|
5466
5461
|
/**
|
|
5467
|
-
* the name of a library, like "sap.ui.
|
|
5462
|
+
* the name of a library, like "sap.ui.layout"
|
|
5468
5463
|
*/
|
|
5469
5464
|
sLibraryName: string,
|
|
5470
5465
|
/**
|
|
@@ -5483,7 +5478,7 @@ declare namespace sap {
|
|
|
5483
5478
|
*
|
|
5484
5479
|
* <div id="SAPUI5UiArea"></div>
|
|
5485
5480
|
* <script>
|
|
5486
|
-
* var oRoot = new sap.
|
|
5481
|
+
* var oRoot = new sap.m.Label();
|
|
5487
5482
|
* oRoot.setText("Hello world!");
|
|
5488
5483
|
* sap.ui.setRoot("SAPUI5UiArea", oRoot);
|
|
5489
5484
|
* </script>
|
|
@@ -7426,8 +7421,8 @@ declare namespace sap {
|
|
|
7426
7421
|
* **'library'** : string
|
|
7427
7422
|
* Name of the library that the new subclass should belong to. If the subclass is a control or element,
|
|
7428
7423
|
* it will automatically register with that library so that authoring tools can discover it. By convention,
|
|
7429
|
-
* the name of the subclass should have the library name as a prefix, e.g.
|
|
7430
|
-
* to library
|
|
7424
|
+
* the name of the subclass should have the library name as a prefix, but subfolders are allowed, e.g. `sap.ui.layout.form.Form`
|
|
7425
|
+
* belongs to library `sap.ui.layout`.
|
|
7431
7426
|
*
|
|
7432
7427
|
* **'properties'** : object
|
|
7433
7428
|
* An object literal whose properties each define a new managed property in the ManagedObject subclass.
|
|
@@ -10201,8 +10196,8 @@ declare namespace sap {
|
|
|
10201
10196
|
*
|
|
10202
10197
|
* The SAPUI5 Core Runtime.
|
|
10203
10198
|
*
|
|
10204
|
-
* Contains the UI5
|
|
10205
|
-
*
|
|
10199
|
+
* Contains the UI5 Core and all its components, base classes for Controls, Components and the Model View
|
|
10200
|
+
* Controller classes.
|
|
10206
10201
|
*/
|
|
10207
10202
|
namespace core {
|
|
10208
10203
|
/**
|
|
@@ -13351,9 +13346,9 @@ declare namespace sap {
|
|
|
13351
13346
|
*/
|
|
13352
13347
|
setMessages(
|
|
13353
13348
|
/**
|
|
13354
|
-
* map of messages: {'target': [
|
|
13349
|
+
* map of messages: {'target': [sap.ui.core.message.Message],...}
|
|
13355
13350
|
*/
|
|
13356
|
-
|
|
13351
|
+
mMessages: Record<string, sap.ui.core.message.Message[]>
|
|
13357
13352
|
): void;
|
|
13358
13353
|
}
|
|
13359
13354
|
|
|
@@ -13930,7 +13925,16 @@ declare namespace sap {
|
|
|
13930
13925
|
/**
|
|
13931
13926
|
* Parameters to pass along with the event
|
|
13932
13927
|
*/
|
|
13933
|
-
|
|
13928
|
+
mParameters: {
|
|
13929
|
+
/**
|
|
13930
|
+
* Messages already existing before the `messageChange` event was fired.
|
|
13931
|
+
*/
|
|
13932
|
+
oldMessages: sap.ui.core.message.Message;
|
|
13933
|
+
/**
|
|
13934
|
+
* New messages added by the trigger of the `messageChange` event.
|
|
13935
|
+
*/
|
|
13936
|
+
newMessages: sap.ui.core.message.Message;
|
|
13937
|
+
}
|
|
13934
13938
|
): this;
|
|
13935
13939
|
/**
|
|
13936
13940
|
* Returns the ID of the MessageProcessor instance
|
|
@@ -13941,9 +13945,9 @@ declare namespace sap {
|
|
|
13941
13945
|
*/
|
|
13942
13946
|
setMessages(
|
|
13943
13947
|
/**
|
|
13944
|
-
* map of messages: {'target': [
|
|
13948
|
+
* map of messages: {'target': [sap.ui.core.message.Message],...}
|
|
13945
13949
|
*/
|
|
13946
|
-
|
|
13950
|
+
mMessages: Record<string, sap.ui.core.message.Message[]>
|
|
13947
13951
|
): void;
|
|
13948
13952
|
}
|
|
13949
13953
|
}
|
|
@@ -14213,7 +14217,7 @@ declare namespace sap {
|
|
|
14213
14217
|
* **Example for a callback module definition (sync):**
|
|
14214
14218
|
* ```javascript
|
|
14215
14219
|
*
|
|
14216
|
-
* sap.ui.define("my/custom/sync/ExtensionProvider", [
|
|
14220
|
+
* sap.ui.define("my/custom/sync/ExtensionProvider", [], function() {
|
|
14217
14221
|
* var ExtensionProvider = function() {};
|
|
14218
14222
|
* ExtensionProvider.prototype.getControllerExtensions = function(sControllerName, sComponentId, bAsync) {
|
|
14219
14223
|
* if (!bAsync && sControllerName == "my.own.Controller") {
|
|
@@ -14232,14 +14236,14 @@ declare namespace sap {
|
|
|
14232
14236
|
* }];
|
|
14233
14237
|
* };
|
|
14234
14238
|
* return ExtensionProvider;
|
|
14235
|
-
* }
|
|
14239
|
+
* });
|
|
14236
14240
|
* ```
|
|
14237
14241
|
*
|
|
14238
14242
|
*
|
|
14239
14243
|
* **Example for a callback module definition (async):**
|
|
14240
14244
|
* ```javascript
|
|
14241
14245
|
*
|
|
14242
|
-
* sap.ui.define("my/custom/async/ExtensionProvider", [
|
|
14246
|
+
* sap.ui.define("my/custom/async/ExtensionProvider", [], function() {
|
|
14243
14247
|
* var ExtensionProvider = function() {};
|
|
14244
14248
|
* ExtensionProvider.prototype.getControllerExtensions = function(sControllerName, sComponentId, bAsync) {
|
|
14245
14249
|
* if (bAsync && sControllerName == "my.own.Controller") {
|
|
@@ -14263,7 +14267,7 @@ declare namespace sap {
|
|
|
14263
14267
|
* };
|
|
14264
14268
|
* };
|
|
14265
14269
|
* return ExtensionProvider;
|
|
14266
|
-
* }
|
|
14270
|
+
* });
|
|
14267
14271
|
* ```
|
|
14268
14272
|
*
|
|
14269
14273
|
*
|
|
@@ -16155,6 +16159,8 @@ declare namespace sap {
|
|
|
16155
16159
|
|
|
16156
16160
|
namespace Component {
|
|
16157
16161
|
/**
|
|
16162
|
+
* @SINCE 1.67
|
|
16163
|
+
*
|
|
16158
16164
|
* Registry of all `Component`s that currently exist.
|
|
16159
16165
|
*/
|
|
16160
16166
|
interface registry {
|
|
@@ -16585,6 +16591,8 @@ declare namespace sap {
|
|
|
16585
16591
|
|
|
16586
16592
|
namespace Element {
|
|
16587
16593
|
/**
|
|
16594
|
+
* @SINCE 1.67
|
|
16595
|
+
*
|
|
16588
16596
|
* Registry of all `sap.ui.core.Element`s that currently exist.
|
|
16589
16597
|
*/
|
|
16590
16598
|
interface registry {
|
|
@@ -28320,9 +28328,9 @@ declare namespace sap {
|
|
|
28320
28328
|
* **IMPORTANT:**
|
|
28321
28329
|
* This should be only used as FALLBACK when the Control events do not cover a specific use-case! Always
|
|
28322
28330
|
* try using SAPUI5 control events, as e.g. accessibility-related functionality is then provided automatically.
|
|
28323
|
-
* E.g. when working with a `sap.
|
|
28324
|
-
*
|
|
28325
|
-
*
|
|
28331
|
+
* E.g. when working with a `sap.m.Button`, always use the Button's "press" event, not the native "click"
|
|
28332
|
+
* event, because "press" is also guaranteed to be fired when certain keyboard activity is supposed to trigger
|
|
28333
|
+
* the Button.
|
|
28326
28334
|
*
|
|
28327
28335
|
* In the event handler, `this` refers to the Control - not to the root DOM element like in jQuery. While
|
|
28328
28336
|
* the DOM element can be used and modified, the general caveats for working with SAPUI5 control DOM elements
|
|
@@ -34810,7 +34818,7 @@ declare namespace sap {
|
|
|
34810
34818
|
*
|
|
34811
34819
|
* Writes the attribute and its value into the HTML.
|
|
34812
34820
|
*
|
|
34813
|
-
* For details about the escaping refer to {@link
|
|
34821
|
+
* For details about the escaping refer to {@link sap/base/security/encodeXML}.
|
|
34814
34822
|
*/
|
|
34815
34823
|
writeAttribute(
|
|
34816
34824
|
/**
|
|
@@ -34888,7 +34896,7 @@ declare namespace sap {
|
|
|
34888
34896
|
*
|
|
34889
34897
|
* Escape text for HTML and write it to the buffer.
|
|
34890
34898
|
*
|
|
34891
|
-
* For details about the escaping refer to {@link
|
|
34899
|
+
* For details about the escaping refer to {@link sap/base/security/encodeXML}.
|
|
34892
34900
|
*/
|
|
34893
34901
|
writeEscaped(
|
|
34894
34902
|
/**
|
|
@@ -35902,7 +35910,7 @@ declare namespace sap {
|
|
|
35902
35910
|
/**
|
|
35903
35911
|
* Returns this `UIArea`'s id (as determined from provided RootNode).
|
|
35904
35912
|
*/
|
|
35905
|
-
getId(): string
|
|
35913
|
+
getId(): string;
|
|
35906
35914
|
/**
|
|
35907
35915
|
* @deprecated (since 1.1) - use function {@link #getContent} instead
|
|
35908
35916
|
*
|
|
@@ -42963,6 +42971,7 @@ declare namespace sap {
|
|
|
42963
42971
|
* A context for the OData V2 model cannot be created at will, it has to be retrieved via:
|
|
42964
42972
|
* - an OData binding
|
|
42965
42973
|
* - a view element
|
|
42974
|
+
* - {@link sap.ui.model.odata.v2.ODataListBinding#create}
|
|
42966
42975
|
* - {@link sap.ui.model.odata.v2.ODataModel#callFunction}
|
|
42967
42976
|
* - {@link sap.ui.model.odata.v2.ODataModel#createBindingContext}
|
|
42968
42977
|
* - {@link sap.ui.model.odata.v2.ODataModel#createEntry}
|
|
@@ -42998,21 +43007,27 @@ declare namespace sap {
|
|
|
42998
43007
|
/**
|
|
42999
43008
|
* @SINCE 1.96.0
|
|
43000
43009
|
*
|
|
43001
|
-
* Returns a promise on the creation state of this context if it has been created via {@link sap.ui.model.odata.v2.ODataModel#createEntry}
|
|
43002
|
-
* otherwise returns `undefined`.
|
|
43010
|
+
* Returns a promise on the creation state of this context if it has been created via {@link sap.ui.model.odata.v2.ODataModel#createEntry}
|
|
43011
|
+
* or {@link sap.ui.model.odata.v2.ODataListBinding#create}; otherwise returns `undefined`.
|
|
43003
43012
|
*
|
|
43004
43013
|
* As long as the promise is not yet resolved or rejected, the entity represented by this context is transient.
|
|
43005
43014
|
*
|
|
43006
43015
|
* Once the promise is resolved, the entity for this context is stored in the back end and {@link #getPath}
|
|
43007
43016
|
* returns a path including the key predicate of the new entity.
|
|
43017
|
+
*
|
|
43018
|
+
* If the context has been created via {@link sap.ui.model.odata.v2.ODataListBinding#create} and the entity
|
|
43019
|
+
* for this context has been stored in the back end, {@link #created} returns `undefined` after the data
|
|
43020
|
+
* has been re-read from the back end and inserted at the right position based on the list binding's filters
|
|
43021
|
+
* and sorters. If the context has been created via {@link sap.ui.model.odata.v2.ODataModel#createEntry}
|
|
43022
|
+
* and the entity for this context has been stored in the back end, {@link #created} returns `undefined`.
|
|
43008
43023
|
*/
|
|
43009
43024
|
created(): Promise<any>;
|
|
43010
43025
|
/**
|
|
43011
43026
|
* @SINCE 1.94.0
|
|
43012
43027
|
*
|
|
43013
|
-
* For a context created using {@link sap.ui.model.odata.v2.ODataModel#createEntry}
|
|
43014
|
-
* `true` if the context is transient or `false` if the context is not transient. A transient
|
|
43015
|
-
* an entity created on the client which has not been persisted in the back end.
|
|
43028
|
+
* For a context created using {@link sap.ui.model.odata.v2.ODataModel#createEntry} or {@link sap.ui.model.odata.v2.ODataListBinding#create},
|
|
43029
|
+
* the method returns `true` if the context is transient or `false` if the context is not transient. A transient
|
|
43030
|
+
* context represents an entity created on the client which has not been persisted in the back end.
|
|
43016
43031
|
*/
|
|
43017
43032
|
isTransient(): boolean;
|
|
43018
43033
|
}
|
|
@@ -43712,6 +43727,9 @@ declare namespace sap {
|
|
|
43712
43727
|
* with AND. Usually this means, all filters applied to a single table column are combined with OR, while
|
|
43713
43728
|
* filters on different table columns are combined with AND. Please note that a custom filter function is
|
|
43714
43729
|
* only supported with operation mode `sap.ui.model.odata.OperationMode.Client`.
|
|
43730
|
+
*
|
|
43731
|
+
* Entities that have been created via {@link #create} and saved in the back end are removed from the creation
|
|
43732
|
+
* rows area and inserted at the right position based on the current filters and sorters.
|
|
43715
43733
|
*/
|
|
43716
43734
|
filter(
|
|
43717
43735
|
/**
|
|
@@ -43773,6 +43791,9 @@ declare namespace sap {
|
|
|
43773
43791
|
* Refreshes the binding, check whether the model data has been changed and fire change event if this is
|
|
43774
43792
|
* the case. For server side models this should refetch the data from the server. To update a control, even
|
|
43775
43793
|
* if no data has been changed, e.g. to reset a control after failed validation, use the parameter `bForceUpdate`.
|
|
43794
|
+
*
|
|
43795
|
+
* Entities that have been created via {@link #create} and saved in the back end are removed from the creation
|
|
43796
|
+
* rows area and inserted at the right position based on the current filters and sorters.
|
|
43776
43797
|
*/
|
|
43777
43798
|
refresh(
|
|
43778
43799
|
/**
|
|
@@ -43804,6 +43825,9 @@ declare namespace sap {
|
|
|
43804
43825
|
): Promise<sap.ui.model.Filter>;
|
|
43805
43826
|
/**
|
|
43806
43827
|
* Sorts the list.
|
|
43828
|
+
*
|
|
43829
|
+
* Entities that have been created via {@link #create} and saved in the back end are removed from the creation
|
|
43830
|
+
* rows area and inserted at the right position based on the current filters and sorters.
|
|
43807
43831
|
*/
|
|
43808
43832
|
sort(
|
|
43809
43833
|
/**
|
|
@@ -44790,7 +44814,7 @@ declare namespace sap {
|
|
|
44790
44814
|
* Whether to reload data
|
|
44791
44815
|
*/
|
|
44792
44816
|
bReload?: boolean
|
|
44793
|
-
): sap.ui.model.odata.v2.Context;
|
|
44817
|
+
): sap.ui.model.odata.v2.Context | undefined;
|
|
44794
44818
|
/**
|
|
44795
44819
|
* Creates a new entry object which is described by the metadata of the entity type of the specified `sPath`
|
|
44796
44820
|
* Name. A context object is returned which can be used to bind against the newly created object.
|
|
@@ -45480,11 +45504,11 @@ declare namespace sap {
|
|
|
45480
45504
|
/**
|
|
45481
45505
|
* Return the parsed XML metadata as a Javascript object.
|
|
45482
45506
|
*
|
|
45483
|
-
* Please note that the metadata is loaded asynchronously and this function might return undefined because
|
|
45507
|
+
* Please note that the metadata is loaded asynchronously and this function might return `undefined` because
|
|
45484
45508
|
* the metadata has not been loaded yet. In this case attach to the `metadataLoaded` event to get notified
|
|
45485
45509
|
* when the metadata is available and then call this function.
|
|
45486
45510
|
*/
|
|
45487
|
-
getServiceMetadata(): Object;
|
|
45511
|
+
getServiceMetadata(): Object | undefined;
|
|
45488
45512
|
/**
|
|
45489
45513
|
* Checks if there exist pending changes in the model.
|
|
45490
45514
|
*
|
|
@@ -45696,7 +45720,7 @@ declare namespace sap {
|
|
|
45696
45720
|
*
|
|
45697
45721
|
* Returns a new promise which can be resolved or rejected depending on the metadata loading state.
|
|
45698
45722
|
*/
|
|
45699
|
-
refreshMetadata(): Promise<any
|
|
45723
|
+
refreshMetadata(): Promise<any> | undefined;
|
|
45700
45724
|
/**
|
|
45701
45725
|
* Refresh XSRF token by performing a GET request against the service root URL.
|
|
45702
45726
|
*/
|
|
@@ -46201,7 +46225,11 @@ declare namespace sap {
|
|
|
46201
46225
|
/**
|
|
46202
46226
|
* Type of the filter which should be adjusted. If it is not given, the type `FilterType.Control` is assumed
|
|
46203
46227
|
*/
|
|
46204
|
-
sFilterType: sap.ui.model.FilterType
|
|
46228
|
+
sFilterType: sap.ui.model.FilterType,
|
|
46229
|
+
/**
|
|
46230
|
+
* Whether to return `true` or `false`, instead of `this`, depending on whether the filtering has been done
|
|
46231
|
+
*/
|
|
46232
|
+
bReturnSuccess?: boolean
|
|
46205
46233
|
): this;
|
|
46206
46234
|
/**
|
|
46207
46235
|
* Returns the number of child nodes. This function is not available when the annotation "hierarchy-node-descendant-count-for"
|
|
@@ -46312,16 +46340,25 @@ declare namespace sap {
|
|
|
46312
46340
|
* annotation specification, or when providing the annotation information locally as a binding parameter.
|
|
46313
46341
|
* For more information, see {@link sap.ui.model.odata.v2.ODataModel#bindTree}.
|
|
46314
46342
|
*/
|
|
46315
|
-
setRootLevel(
|
|
46343
|
+
setRootLevel(
|
|
46344
|
+
/**
|
|
46345
|
+
* The new `rootLevel`
|
|
46346
|
+
*/
|
|
46347
|
+
iRootLevel: int
|
|
46348
|
+
): void;
|
|
46316
46349
|
/**
|
|
46317
|
-
* Sorts the Tree according to the given Sorter(s). In OperationMode.Client or OperationMode.Auto (if
|
|
46318
|
-
* given threshold is satisfied), the sorters are applied locally on the client.
|
|
46350
|
+
* Sorts the Tree according to the given Sorter(s). In `OperationMode.Client` or `OperationMode.Auto` (if
|
|
46351
|
+
* the given threshold is satisfied), the sorters are applied locally on the client.
|
|
46319
46352
|
*/
|
|
46320
46353
|
sort(
|
|
46321
46354
|
/**
|
|
46322
|
-
*
|
|
46355
|
+
* The Sorter or an Array of sap.ui.model.Sorter instances
|
|
46356
|
+
*/
|
|
46357
|
+
aSorters: sap.ui.model.Sorter[] | sap.ui.model.Sorter,
|
|
46358
|
+
/**
|
|
46359
|
+
* Whether to return `true` or `false`, instead of `this`, depending on whether the sorting has been done
|
|
46323
46360
|
*/
|
|
46324
|
-
|
|
46361
|
+
bReturnSuccess?: boolean
|
|
46325
46362
|
): this;
|
|
46326
46363
|
}
|
|
46327
46364
|
/**
|
|
@@ -47044,7 +47081,12 @@ declare namespace sap {
|
|
|
47044
47081
|
* binding is used, see {@link #getUpdateGroupId}; the resulting group ID must not have {@link sap.ui.model.odata.v4.SubmitMode.API}.
|
|
47045
47082
|
* Since 1.81, if this context is transient (see {@link #isTransient}), no group ID needs to be specified.
|
|
47046
47083
|
*/
|
|
47047
|
-
sGroupId?: string
|
|
47084
|
+
sGroupId?: string,
|
|
47085
|
+
/**
|
|
47086
|
+
* Whether not to request the new count from the server; useful in case of {@link #replaceWith} where it
|
|
47087
|
+
* is known that the count remains unchanged (since 1.97.0)
|
|
47088
|
+
*/
|
|
47089
|
+
bDoNotRequestCount?: boolean
|
|
47048
47090
|
): Promise<any>;
|
|
47049
47091
|
/**
|
|
47050
47092
|
* @SINCE 1.41.0
|
|
@@ -47205,6 +47247,18 @@ declare namespace sap {
|
|
|
47205
47247
|
*/
|
|
47206
47248
|
bAllowRemoval?: boolean
|
|
47207
47249
|
): void;
|
|
47250
|
+
/**
|
|
47251
|
+
* @SINCE 1.97.0
|
|
47252
|
+
*
|
|
47253
|
+
* Replaces this context with the given other context. You probably want to delete this context afterwards
|
|
47254
|
+
* without requesting the new count from the server, see the `bDoNotRequestCount` parameter of {@link #delete}.
|
|
47255
|
+
*/
|
|
47256
|
+
replaceWith(
|
|
47257
|
+
/**
|
|
47258
|
+
* The other context
|
|
47259
|
+
*/
|
|
47260
|
+
oOtherContext: sap.ui.model.odata.v4.Context
|
|
47261
|
+
): void;
|
|
47208
47262
|
/**
|
|
47209
47263
|
* @SINCE 1.39.0
|
|
47210
47264
|
*
|
|
@@ -47530,10 +47584,10 @@ declare namespace sap {
|
|
|
47530
47584
|
*
|
|
47531
47585
|
* Changes this binding's parameters and refreshes the binding.
|
|
47532
47586
|
*
|
|
47533
|
-
* If there are pending changes an error is thrown. Use {@link #hasPendingChanges}
|
|
47534
|
-
* pending changes. If there are
|
|
47535
|
-
* the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
47536
|
-
* {@link #changeParameters}.
|
|
47587
|
+
* If there are pending changes that cannot be ignored, an error is thrown. Use {@link #hasPendingChanges}
|
|
47588
|
+
* to check if there are such pending changes. If there are, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch}
|
|
47589
|
+
* to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
47590
|
+
* calling {@link #changeParameters}.
|
|
47537
47591
|
*
|
|
47538
47592
|
* The parameters are changed according to the given map of parameters: Parameters with an `undefined` value
|
|
47539
47593
|
* are removed, the other parameters are set, and missing parameters remain unchanged.
|
|
@@ -47614,7 +47668,19 @@ declare namespace sap {
|
|
|
47614
47668
|
* the bound action should either be repeated **without** applying the preference or rejected with an `Error`
|
|
47615
47669
|
* instance `oError` where `oError.canceled === true`. Since 1.92.0.
|
|
47616
47670
|
*/
|
|
47617
|
-
fnOnStrictHandlingFailed?: Function
|
|
47671
|
+
fnOnStrictHandlingFailed?: Function,
|
|
47672
|
+
/**
|
|
47673
|
+
* Whether this operation binding's parent context, which must belong to a list binding, is replaced with
|
|
47674
|
+
* the operation's return value context (see below) and that list context is returned instead. The list
|
|
47675
|
+
* context may be a newly created context or an existing context. A newly created context has the same `keepAlive`
|
|
47676
|
+
* attribute and `fnOnBeforeDestroy` function as the parent context, see {@link sap.ui.model.odata.v4.Context#setKeepAlive};
|
|
47677
|
+
* `fnOnBeforeDestroy` will be called with the new context instance as the only argument in this case. An
|
|
47678
|
+
* existing context does not change its `keepAlive` attribute. In any case, the resulting context takes
|
|
47679
|
+
* the place (index, position) of the parent context {@link sap.ui.model.odata.v4.Context#getIndex}. If
|
|
47680
|
+
* the parent context has requested messages when it was kept alive, they will be inherited if the $$inheritExpandSelect
|
|
47681
|
+
* binding parameter is set to `true`. Since 1.97.0.
|
|
47682
|
+
*/
|
|
47683
|
+
bReplaceWithRVC?: boolean
|
|
47618
47684
|
): Promise<any>;
|
|
47619
47685
|
/**
|
|
47620
47686
|
* @SINCE 1.39.0
|
|
@@ -47670,7 +47736,15 @@ declare namespace sap {
|
|
|
47670
47736
|
* returns `true` if there are pending changes for the current parent context path of this binding. If this
|
|
47671
47737
|
* binding is unresolved (see {@link sap.ui.model.Binding#isResolved}), it returns `false`.
|
|
47672
47738
|
*/
|
|
47673
|
-
hasPendingChanges(
|
|
47739
|
+
hasPendingChanges(
|
|
47740
|
+
/**
|
|
47741
|
+
* Whether to ignore changes which will not be lost by APIs like {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters
|
|
47742
|
+
* changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#sort
|
|
47743
|
+
* sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend suspend} because they relate to a {@link
|
|
47744
|
+
* sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context of this binding.
|
|
47745
|
+
*/
|
|
47746
|
+
bIgnoreKeptAlive?: boolean
|
|
47747
|
+
): boolean;
|
|
47674
47748
|
/**
|
|
47675
47749
|
* @SINCE 1.37.0
|
|
47676
47750
|
*
|
|
@@ -47804,7 +47878,8 @@ declare namespace sap {
|
|
|
47804
47878
|
*
|
|
47805
47879
|
* Suspends this binding. A suspended binding does not fire change events nor does it trigger data service
|
|
47806
47880
|
* requests. Call {@link #resume} to resume the binding. Before 1.53.0, this method was not supported and
|
|
47807
|
-
* threw an error.
|
|
47881
|
+
* threw an error. Since 1.97.0, pending changes are ignored if they relate to a {@link sap.ui.model.odata.v4.Context#setKeepAlive
|
|
47882
|
+
* kept-alive} context of this binding.
|
|
47808
47883
|
* See:
|
|
47809
47884
|
* {@link topic:b0f5c531e5034a27952cc748954cbe39 Suspend and Resume}
|
|
47810
47885
|
* sap.ui.model.Binding#suspend
|
|
@@ -47943,10 +48018,10 @@ declare namespace sap {
|
|
|
47943
48018
|
*
|
|
47944
48019
|
* Changes this binding's parameters and refreshes the binding.
|
|
47945
48020
|
*
|
|
47946
|
-
* If there are pending changes an error is thrown. Use {@link #hasPendingChanges}
|
|
47947
|
-
* pending changes. If there are
|
|
47948
|
-
* the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
47949
|
-
* {@link #changeParameters}.
|
|
48021
|
+
* If there are pending changes that cannot be ignored, an error is thrown. Use {@link #hasPendingChanges}
|
|
48022
|
+
* to check if there are such pending changes. If there are, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch}
|
|
48023
|
+
* to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
48024
|
+
* calling {@link #changeParameters}.
|
|
47950
48025
|
*
|
|
47951
48026
|
* The parameters are changed according to the given map of parameters: Parameters with an `undefined` value
|
|
47952
48027
|
* are removed, the other parameters are set, and missing parameters remain unchanged.
|
|
@@ -48016,7 +48091,13 @@ declare namespace sap {
|
|
|
48016
48091
|
* Whether the entity is inserted at the end of the list. When creating multiple entities, this parameter
|
|
48017
48092
|
* must have the same value for each entity. Supported since 1.66.0
|
|
48018
48093
|
*/
|
|
48019
|
-
bAtEnd?: boolean
|
|
48094
|
+
bAtEnd?: boolean,
|
|
48095
|
+
/**
|
|
48096
|
+
* Create an inactive context. Such a context will only be sent to the server after the first property update.
|
|
48097
|
+
* From then on it behaves like any other created context. This parameter is experimental and its implementation
|
|
48098
|
+
* may still change. Do not use it in productive code yet. Supported since 1.97.0
|
|
48099
|
+
*/
|
|
48100
|
+
bInactive?: boolean
|
|
48020
48101
|
): sap.ui.model.odata.v4.Context;
|
|
48021
48102
|
/**
|
|
48022
48103
|
* @SINCE 1.40.1
|
|
@@ -48089,12 +48170,13 @@ declare namespace sap {
|
|
|
48089
48170
|
/**
|
|
48090
48171
|
* @SINCE 1.39.0
|
|
48091
48172
|
*
|
|
48092
|
-
* Filters the list with the given filters.
|
|
48173
|
+
* Filters the list with the given filters. Since 1.97.0, if filters are unchanged, no request is sent,
|
|
48174
|
+
* regardless of pending changes.
|
|
48093
48175
|
*
|
|
48094
|
-
* If there are pending changes an error is thrown. Use {@link #hasPendingChanges}
|
|
48095
|
-
* pending changes. If there are
|
|
48096
|
-
* the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
48097
|
-
* {@link #filter}.
|
|
48176
|
+
* If there are pending changes that cannot be ignored, an error is thrown. Use {@link #hasPendingChanges}
|
|
48177
|
+
* to check if there are such pending changes. If there are, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch}
|
|
48178
|
+
* to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
48179
|
+
* calling {@link #filter}.
|
|
48098
48180
|
*
|
|
48099
48181
|
* Filters are case sensitive unless the property `caseSensitive` is set to `false`. This property has to
|
|
48100
48182
|
* be set on each filter, it is not inherited from a multi-filter.
|
|
@@ -48287,7 +48369,15 @@ declare namespace sap {
|
|
|
48287
48369
|
* returns `true` if there are pending changes for the current parent context path of this binding. If this
|
|
48288
48370
|
* binding is unresolved (see {@link sap.ui.model.Binding#isResolved}), it returns `false`.
|
|
48289
48371
|
*/
|
|
48290
|
-
hasPendingChanges(
|
|
48372
|
+
hasPendingChanges(
|
|
48373
|
+
/**
|
|
48374
|
+
* Whether to ignore changes which will not be lost by APIs like {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters
|
|
48375
|
+
* changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#sort
|
|
48376
|
+
* sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend suspend} because they relate to a {@link
|
|
48377
|
+
* sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context of this binding.
|
|
48378
|
+
*/
|
|
48379
|
+
bIgnoreKeptAlive?: boolean
|
|
48380
|
+
): boolean;
|
|
48291
48381
|
/**
|
|
48292
48382
|
* @SINCE 1.37.0
|
|
48293
48383
|
*
|
|
@@ -48509,12 +48599,13 @@ declare namespace sap {
|
|
|
48509
48599
|
* @SINCE 1.39.0
|
|
48510
48600
|
*
|
|
48511
48601
|
* Sort the entries represented by this list binding according to the given sorters. The sorters are stored
|
|
48512
|
-
* at this list binding and they are used for each following data request.
|
|
48602
|
+
* at this list binding and they are used for each following data request. Since 1.97.0, if sorters are
|
|
48603
|
+
* unchanged, no request is sent, regardless of pending changes.
|
|
48513
48604
|
*
|
|
48514
|
-
* If there are pending changes an error is thrown. Use {@link #hasPendingChanges}
|
|
48515
|
-
* pending changes. If there are
|
|
48516
|
-
* the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
48517
|
-
* {@link #sort}.
|
|
48605
|
+
* If there are pending changes that cannot be ignored, an error is thrown. Use {@link #hasPendingChanges}
|
|
48606
|
+
* to check if there are such pending changes. If there are, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch}
|
|
48607
|
+
* to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before
|
|
48608
|
+
* calling {@link #sort}.
|
|
48518
48609
|
* See:
|
|
48519
48610
|
* sap.ui.model.ListBinding#sort
|
|
48520
48611
|
*/
|
|
@@ -48531,7 +48622,8 @@ declare namespace sap {
|
|
|
48531
48622
|
*
|
|
48532
48623
|
* Suspends this binding. A suspended binding does not fire change events nor does it trigger data service
|
|
48533
48624
|
* requests. Call {@link #resume} to resume the binding. Before 1.53.0, this method was not supported and
|
|
48534
|
-
* threw an error.
|
|
48625
|
+
* threw an error. Since 1.97.0, pending changes are ignored if they relate to a {@link sap.ui.model.odata.v4.Context#setKeepAlive
|
|
48626
|
+
* kept-alive} context of this binding.
|
|
48535
48627
|
* See:
|
|
48536
48628
|
* {@link topic:b0f5c531e5034a27952cc748954cbe39 Suspend and Resume}
|
|
48537
48629
|
* sap.ui.model.Binding#suspend
|
|
@@ -50071,7 +50163,15 @@ declare namespace sap {
|
|
|
50071
50163
|
* returns `true` if there are pending changes for the current parent context path of this binding. If this
|
|
50072
50164
|
* binding is unresolved (see {@link sap.ui.model.Binding#isResolved}), it returns `false`.
|
|
50073
50165
|
*/
|
|
50074
|
-
hasPendingChanges(
|
|
50166
|
+
hasPendingChanges(
|
|
50167
|
+
/**
|
|
50168
|
+
* Whether to ignore changes which will not be lost by APIs like {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters
|
|
50169
|
+
* changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#sort
|
|
50170
|
+
* sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend suspend} because they relate to a {@link
|
|
50171
|
+
* sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context of this binding.
|
|
50172
|
+
*/
|
|
50173
|
+
bIgnoreKeptAlive?: boolean
|
|
50174
|
+
): boolean;
|
|
50075
50175
|
/**
|
|
50076
50176
|
* @SINCE 1.37.0
|
|
50077
50177
|
*
|
|
@@ -50289,7 +50389,7 @@ declare namespace sap {
|
|
|
50289
50389
|
* views, e.g. `<template:with path="meta>Value" helper="sap.ui.model.odata.AnnotationHelper.resolvePath"
|
|
50290
50390
|
* var="target">`.
|
|
50291
50391
|
*
|
|
50292
|
-
* Since 1.31.0, you DO NOT need to {@link
|
|
50392
|
+
* Since 1.31.0, you DO NOT need to {@link sap.ui.require} this module before use.
|
|
50293
50393
|
*/
|
|
50294
50394
|
interface AnnotationHelper {
|
|
50295
50395
|
/**
|
|
@@ -50323,7 +50423,7 @@ declare namespace sap {
|
|
|
50323
50423
|
* ```javascript
|
|
50324
50424
|
*
|
|
50325
50425
|
* function myRootFormatter(oValue1, oValue2, sFullName, sGreeting, iAnswer) {
|
|
50326
|
-
* return ...;
|
|
50426
|
+
* return ...;
|
|
50327
50427
|
* }
|
|
50328
50428
|
*
|
|
50329
50429
|
* oSupplierContext = oMetaModel.getMetaContext("/ProductSet('HT-1021')/ToSupplier");
|
|
@@ -51124,7 +51224,7 @@ declare namespace sap {
|
|
|
51124
51224
|
/**
|
|
51125
51225
|
* Filters the list.
|
|
51126
51226
|
*
|
|
51127
|
-
* When using sap.ui.model.Filter the filters are first grouped according to their binding path. All filters
|
|
51227
|
+
* When using `sap.ui.model.Filter` the filters are first grouped according to their binding path. All filters
|
|
51128
51228
|
* belonging to a group are combined with OR and after that the results of all groups are combined with
|
|
51129
51229
|
* AND. Usually this means, all filters applied to a single table column are combined with OR, while filters
|
|
51130
51230
|
* on different table columns are combined with AND. Please note that a custom filter function is not supported.
|
|
@@ -51137,21 +51237,28 @@ declare namespace sap {
|
|
|
51137
51237
|
/**
|
|
51138
51238
|
* Type of the filter which should be adjusted, if it is not given, the standard behaviour applies
|
|
51139
51239
|
*/
|
|
51140
|
-
sFilterType: sap.ui.model.FilterType
|
|
51240
|
+
sFilterType: sap.ui.model.FilterType,
|
|
51241
|
+
/**
|
|
51242
|
+
* Whether to return `true` or `false`, instead of `this`, depending on whether the filtering has been done
|
|
51243
|
+
*/
|
|
51244
|
+
bReturnSuccess?: boolean
|
|
51141
51245
|
): this;
|
|
51142
51246
|
/**
|
|
51143
51247
|
* Return contexts for the list
|
|
51144
51248
|
*/
|
|
51145
51249
|
getContexts(
|
|
51146
51250
|
/**
|
|
51147
|
-
*
|
|
51251
|
+
* The start index of the requested contexts
|
|
51148
51252
|
*/
|
|
51149
51253
|
iStartIndex?: int,
|
|
51150
51254
|
/**
|
|
51151
|
-
*
|
|
51255
|
+
* The requested amount of contexts
|
|
51152
51256
|
*/
|
|
51153
51257
|
iLength?: int,
|
|
51154
|
-
|
|
51258
|
+
/**
|
|
51259
|
+
* The maximum number of contexts to read before and after the given range; with this, controls can prefetch
|
|
51260
|
+
* data that is likely to be needed soon, e.g. when scrolling down in a table
|
|
51261
|
+
*/
|
|
51155
51262
|
iThreshold?: int
|
|
51156
51263
|
): sap.ui.model.Context[];
|
|
51157
51264
|
/**
|
|
@@ -51180,16 +51287,28 @@ declare namespace sap {
|
|
|
51180
51287
|
/**
|
|
51181
51288
|
* Update the bound control even if no data has been changed
|
|
51182
51289
|
*/
|
|
51183
|
-
bForceUpdate?: boolean
|
|
51290
|
+
bForceUpdate?: boolean,
|
|
51291
|
+
/**
|
|
51292
|
+
* A map of changed entities
|
|
51293
|
+
*/
|
|
51294
|
+
mChangedEntities?: object,
|
|
51295
|
+
/**
|
|
51296
|
+
* A map of entity types
|
|
51297
|
+
*/
|
|
51298
|
+
mEntityTypes?: object
|
|
51184
51299
|
): void;
|
|
51185
51300
|
/**
|
|
51186
51301
|
* Sorts the list.
|
|
51187
51302
|
*/
|
|
51188
51303
|
sort(
|
|
51189
51304
|
/**
|
|
51190
|
-
*
|
|
51305
|
+
* The Sorter or an array of sorter objects which define the sort order
|
|
51306
|
+
*/
|
|
51307
|
+
aSorters: sap.ui.model.Sorter | sap.ui.model.Sorter[],
|
|
51308
|
+
/**
|
|
51309
|
+
* Whether to return `true` or `false`, instead of `this`, depending on whether the sorting has been done
|
|
51191
51310
|
*/
|
|
51192
|
-
|
|
51311
|
+
bReturnSuccess?: boolean
|
|
51193
51312
|
): this;
|
|
51194
51313
|
}
|
|
51195
51314
|
/**
|
|
@@ -52035,19 +52154,18 @@ declare namespace sap {
|
|
|
52035
52154
|
bSuppressEvents?: boolean
|
|
52036
52155
|
): Promise<any>;
|
|
52037
52156
|
/**
|
|
52038
|
-
* Appends the change batch operations to the end of the batch stack. Only
|
|
52039
|
-
* should be included in the specified array. The operations in the array will be included
|
|
52040
|
-
* To embed change operations in different change sets call this method with the
|
|
52041
|
-
* again. If an illegal batch operation is added to the change set nothing
|
|
52042
|
-
* be returned.
|
|
52157
|
+
* Appends the change batch operations to the end of the batch stack. Only `PUTPOST` or `DELETE`
|
|
52158
|
+
* batch operations should be included in the specified array. The operations in the array will be included
|
|
52159
|
+
* in a single changeset. To embed change operations in different change sets call this method with the
|
|
52160
|
+
* corresponding change operations again. If an illegal batch operation is added to the change set nothing
|
|
52161
|
+
* will be performed and false will be returned.
|
|
52043
52162
|
*/
|
|
52044
52163
|
addBatchChangeOperations(
|
|
52045
52164
|
/**
|
|
52046
|
-
*
|
|
52047
|
-
* or DELETE
|
|
52165
|
+
* An array of change batch operations created via `createBatchOperation` with parameter `sMethod = "POST"/"PUT"/"MERGE"/"DELETE"`
|
|
52048
52166
|
*/
|
|
52049
52167
|
aChangeOperations: any[]
|
|
52050
|
-
):
|
|
52168
|
+
): false | undefined;
|
|
52051
52169
|
/**
|
|
52052
52170
|
* Appends the read batch operations to the end of the batch stack. Only GET batch operations should be
|
|
52053
52171
|
* included in the specified array. If an illegal batch operation is added to the batch nothing will be
|
|
@@ -52055,10 +52173,10 @@ declare namespace sap {
|
|
|
52055
52173
|
*/
|
|
52056
52174
|
addBatchReadOperations(
|
|
52057
52175
|
/**
|
|
52058
|
-
*
|
|
52176
|
+
* An array of read batch operations created via `createBatchOperation` with `sMethod = "GET"`
|
|
52059
52177
|
*/
|
|
52060
52178
|
aReadOperations: any[]
|
|
52061
|
-
):
|
|
52179
|
+
): false | undefined;
|
|
52062
52180
|
/**
|
|
52063
52181
|
* Attaches event handler `fnFunction` to the {@link #event:annotationsFailed annotationsFailed} event of
|
|
52064
52182
|
* this `sap.ui.model.odata.ODataModel`.
|
|
@@ -52334,29 +52452,29 @@ declare namespace sap {
|
|
|
52334
52452
|
*/
|
|
52335
52453
|
createBatchOperation(
|
|
52336
52454
|
/**
|
|
52337
|
-
* A string containing the path to the collection or entry where the batch operation should be performed
|
|
52338
|
-
*
|
|
52455
|
+
* A string containing the path to the collection or entry where the batch operation should be performed;
|
|
52456
|
+
* the path is concatenated to the `sServiceUrl` which was specified in the model constructor
|
|
52339
52457
|
*/
|
|
52340
52458
|
sPath: string,
|
|
52341
52459
|
/**
|
|
52342
|
-
*
|
|
52460
|
+
* For the batch operation; possible values are `GET`, `PUT`, `MERGE`, `POST` or `DELETE`
|
|
52343
52461
|
*/
|
|
52344
52462
|
sMethod: string,
|
|
52345
52463
|
/**
|
|
52346
|
-
*
|
|
52464
|
+
* Optional data payload which should be created, updated, deleted in a change batch operation
|
|
52347
52465
|
*/
|
|
52348
52466
|
oData?: object,
|
|
52349
52467
|
/**
|
|
52350
|
-
*
|
|
52468
|
+
* Optional parameter for additional information introduced in SAPUI5 1.9.1
|
|
52351
52469
|
*/
|
|
52352
52470
|
oParameters?: {
|
|
52353
52471
|
/**
|
|
52354
|
-
*
|
|
52472
|
+
* An ETag which can be used for concurrency control. If it is specified, it will be used in an If-Match-Header
|
|
52355
52473
|
* in the request to the server for this entry.
|
|
52356
52474
|
*/
|
|
52357
52475
|
sETag?: string;
|
|
52358
52476
|
}
|
|
52359
|
-
):
|
|
52477
|
+
): object;
|
|
52360
52478
|
/**
|
|
52361
52479
|
* Creates a new entry object which is described by the metadata of the entity type of the specified sPath
|
|
52362
52480
|
* Name. A context object is returned which can be used to bind against the newly created object.
|
|
@@ -52387,7 +52505,7 @@ declare namespace sap {
|
|
|
52387
52505
|
vProperties: any[] | object
|
|
52388
52506
|
): sap.ui.model.Context;
|
|
52389
52507
|
/**
|
|
52390
|
-
* Creates the key from the given collection name and property map
|
|
52508
|
+
* Creates the key from the given collection name and property map.
|
|
52391
52509
|
*/
|
|
52392
52510
|
createKey(
|
|
52393
52511
|
/**
|
|
@@ -52397,12 +52515,12 @@ declare namespace sap {
|
|
|
52397
52515
|
/**
|
|
52398
52516
|
* The object containing at least all the key properties of the entity type
|
|
52399
52517
|
*/
|
|
52400
|
-
|
|
52518
|
+
oKeyProperties: object,
|
|
52401
52519
|
/**
|
|
52402
52520
|
* Whether the URI decoding should be applied on the key
|
|
52403
52521
|
*/
|
|
52404
52522
|
bDecode: boolean
|
|
52405
|
-
):
|
|
52523
|
+
): string;
|
|
52406
52524
|
/**
|
|
52407
52525
|
* Deletes a created entry from the request queue and the model.
|
|
52408
52526
|
*/
|
|
@@ -52578,19 +52696,19 @@ declare namespace sap {
|
|
|
52578
52696
|
*/
|
|
52579
52697
|
getData(
|
|
52580
52698
|
/**
|
|
52581
|
-
* A string containing the path to the data object that should be returned
|
|
52699
|
+
* A string containing the path to the data object that should be returned
|
|
52582
52700
|
*/
|
|
52583
52701
|
sPath: string,
|
|
52584
52702
|
/**
|
|
52585
|
-
*
|
|
52703
|
+
* The optional context which is used with the sPath to retrieve the requested data
|
|
52586
52704
|
*/
|
|
52587
52705
|
oContext?: object,
|
|
52588
52706
|
/**
|
|
52589
|
-
* This parameter should be set when a URI or custom parameter with a
|
|
52590
|
-
* to retrieve associated entries embedded/inline
|
|
52591
|
-
* property value/entry and includes the associated expand entries (if any)
|
|
52592
|
-
* entry properties are removed and not included in the desired entry as properties at all
|
|
52593
|
-
* for performing updates on the base entry only
|
|
52707
|
+
* This parameter should be set when a URI or custom parameter with a `$expand` System Query Option was
|
|
52708
|
+
* used to retrieve associated entries embedded/inline; if true then the `getProperty` function returns
|
|
52709
|
+
* a desired property value/entry and includes the associated expand entries (if any); if false the associated/expanded
|
|
52710
|
+
* entry properties are removed and not included in the desired entry as properties at all; this is useful
|
|
52711
|
+
* for performing updates on the base entry only; note: A copy and not a reference of the entry will be
|
|
52594
52712
|
* returned.
|
|
52595
52713
|
*/
|
|
52596
52714
|
bIncludeExpandEntries?: boolean
|
|
@@ -52598,7 +52716,7 @@ declare namespace sap {
|
|
|
52598
52716
|
/**
|
|
52599
52717
|
* @SINCE 1.20
|
|
52600
52718
|
*
|
|
52601
|
-
* Returns the default count mode for retrieving the count of collections
|
|
52719
|
+
* Returns the default count mode for retrieving the count of collections.
|
|
52602
52720
|
*/
|
|
52603
52721
|
getDefaultCountMode(): sap.ui.model.odata.CountMode;
|
|
52604
52722
|
/**
|
|
@@ -52606,7 +52724,7 @@ declare namespace sap {
|
|
|
52606
52724
|
*/
|
|
52607
52725
|
getHeaders(): object;
|
|
52608
52726
|
/**
|
|
52609
|
-
* Returns the key part from the entry URI or the given context or object
|
|
52727
|
+
* Returns the key part from the entry URI or the given context or object.
|
|
52610
52728
|
*/
|
|
52611
52729
|
getKey(
|
|
52612
52730
|
/**
|
|
@@ -52617,7 +52735,7 @@ declare namespace sap {
|
|
|
52617
52735
|
* Whether the URI decoding should be applied on the key
|
|
52618
52736
|
*/
|
|
52619
52737
|
bDecode: boolean
|
|
52620
|
-
):
|
|
52738
|
+
): string;
|
|
52621
52739
|
/**
|
|
52622
52740
|
* Returns an instance of an OData meta model which offers a unified access to both OData V2 metadata and
|
|
52623
52741
|
* V4 annotations. It uses the existing {@link sap.ui.model.odata.ODataMetadata} as a foundation and merges
|
|
@@ -52630,47 +52748,47 @@ declare namespace sap {
|
|
|
52630
52748
|
getMetaModel(): sap.ui.model.odata.ODataMetaModel;
|
|
52631
52749
|
/**
|
|
52632
52750
|
* Returns the value for the property with the given `sPath`. If the path points to a navigation property
|
|
52633
|
-
* which has been loaded via
|
|
52751
|
+
* which has been loaded via `$expand` then the `bIncludeExpandEntries` parameter determines if the navigation
|
|
52634
52752
|
* property should be included in the returned value or not. Please note that this currently works for 1..1
|
|
52635
52753
|
* navigation properties only.
|
|
52636
52754
|
*/
|
|
52637
52755
|
getProperty(
|
|
52638
52756
|
/**
|
|
52639
|
-
*
|
|
52757
|
+
* The path/name of the property
|
|
52640
52758
|
*/
|
|
52641
52759
|
sPath: string,
|
|
52642
52760
|
/**
|
|
52643
|
-
*
|
|
52761
|
+
* The context if available to access the property value
|
|
52644
52762
|
*/
|
|
52645
52763
|
oContext?: object,
|
|
52646
52764
|
/**
|
|
52647
|
-
* This parameter should be set when a URI or custom parameter with a
|
|
52648
|
-
* to retrieve associated entries embedded/inline. If true then the getProperty function returns a
|
|
52649
|
-
* property value/entry and includes the associated expand entries (if any). If false the associated/expanded
|
|
52765
|
+
* This parameter should be set when a URI or custom parameter with a `$expand` System Query Option was
|
|
52766
|
+
* used to retrieve associated entries embedded/inline. If true then the getProperty function returns a
|
|
52767
|
+
* desired property value/entry and includes the associated expand entries (if any). If false the associated/expanded
|
|
52650
52768
|
* entry properties are removed and not included in the desired entry as properties at all. This is useful
|
|
52651
52769
|
* for performing updates on the base entry only. Note: A copy and not a reference of the entry will be
|
|
52652
52770
|
* returned.
|
|
52653
52771
|
*/
|
|
52654
52772
|
bIncludeExpandEntries?: boolean
|
|
52655
|
-
):
|
|
52773
|
+
): object;
|
|
52656
52774
|
/**
|
|
52657
52775
|
* Returns the current security token. If the token has not been requested from the server it will be requested
|
|
52658
52776
|
* first.
|
|
52659
52777
|
*/
|
|
52660
52778
|
getSecurityToken(): string;
|
|
52661
52779
|
/**
|
|
52662
|
-
* Return the annotation object. Please note that when using the model with bLoadMetadataAsync = true
|
|
52663
|
-
* this function might return undefined because the metadata has not been loaded yet. In this case
|
|
52664
|
-
* to the `annotationsLoaded` event to get notified when the annotations are available and then call
|
|
52665
|
-
* function.
|
|
52780
|
+
* Return the annotation object. Please note that when using the model with `bLoadMetadataAsync = true`
|
|
52781
|
+
* then this function might return undefined because the metadata has not been loaded yet. In this case
|
|
52782
|
+
* attach to the `annotationsLoaded` event to get notified when the annotations are available and then call
|
|
52783
|
+
* this function.
|
|
52666
52784
|
*/
|
|
52667
|
-
getServiceAnnotations(): Object;
|
|
52785
|
+
getServiceAnnotations(): Object | undefined;
|
|
52668
52786
|
/**
|
|
52669
|
-
* Return the metadata object. Please note that when using the model with bLoadMetadataAsync = true then
|
|
52670
|
-
* this function might return
|
|
52671
|
-
*
|
|
52787
|
+
* Return the metadata object. Please note that when using the model with `bLoadMetadataAsync = true` then
|
|
52788
|
+
* this function might return `undefinedmetadataLoaded` event to get notified when the metadata is available and then call
|
|
52789
|
+
* this function.
|
|
52672
52790
|
*/
|
|
52673
|
-
getServiceMetadata(): Object;
|
|
52791
|
+
getServiceMetadata(): Object | undefined;
|
|
52674
52792
|
/**
|
|
52675
52793
|
* Checks if there exist pending changes in the model created by the setProperty method.
|
|
52676
52794
|
*/
|
|
@@ -52678,7 +52796,7 @@ declare namespace sap {
|
|
|
52678
52796
|
/**
|
|
52679
52797
|
* @deprecated (since 1.20) - please use {@link #getDefaultCountMode} instead.
|
|
52680
52798
|
*
|
|
52681
|
-
* Returns whether this model supports
|
|
52799
|
+
* Returns whether this model supports `$count` on its collections.
|
|
52682
52800
|
*/
|
|
52683
52801
|
isCountSupported(): boolean;
|
|
52684
52802
|
/**
|
|
@@ -52831,9 +52949,14 @@ declare namespace sap {
|
|
|
52831
52949
|
/**
|
|
52832
52950
|
* @deprecated (since 1.20) - please use {@link #setDefaultCountMode} instead.
|
|
52833
52951
|
*
|
|
52834
|
-
* Sets whether this OData service supports
|
|
52952
|
+
* Sets whether this OData service supports `$count` on its collections.
|
|
52835
52953
|
*/
|
|
52836
|
-
setCountSupported(
|
|
52954
|
+
setCountSupported(
|
|
52955
|
+
/**
|
|
52956
|
+
* Whether this OData service supports `$count` on its collections
|
|
52957
|
+
*/
|
|
52958
|
+
bCountSupported: boolean
|
|
52959
|
+
): void;
|
|
52837
52960
|
/**
|
|
52838
52961
|
* @SINCE 1.20
|
|
52839
52962
|
*
|
|
@@ -52875,33 +52998,33 @@ declare namespace sap {
|
|
|
52875
52998
|
): void;
|
|
52876
52999
|
/**
|
|
52877
53000
|
* Sets a new value for the given property `sPropertyName` in the model without triggering a server request.
|
|
52878
|
-
* This can be done by the submitChanges method.
|
|
53001
|
+
* This can be done by the `submitChanges` method.
|
|
52879
53002
|
*
|
|
52880
|
-
* Note: Only one entry of one collection can be updated at once. Otherwise a fireRejectChange event is
|
|
53003
|
+
* Note: Only one entry of one collection can be updated at once. Otherwise a `fireRejectChange` event is
|
|
52881
53004
|
* fired.
|
|
52882
53005
|
*
|
|
52883
|
-
* Before updating a different entry the existing changes of the current entry have to be submitted or
|
|
52884
|
-
* by the corresponding methods: submitChanges
|
|
53006
|
+
* Before updating a different entry the existing changes of the current entry have to be submitted or reset
|
|
53007
|
+
* by the corresponding methods: `submitChanges`, `resetChanges`.
|
|
52885
53008
|
*
|
|
52886
|
-
* IMPORTANT: All pending changes are
|
|
53009
|
+
* IMPORTANT: All pending changes are reset in the model if the application triggers any kind of refresh
|
|
52887
53010
|
* on that entry. Make sure to submit the pending changes first. To determine if there are any pending changes
|
|
52888
|
-
* call the hasPendingChanges method.
|
|
53011
|
+
* call the `hasPendingChanges` method.
|
|
52889
53012
|
*/
|
|
52890
53013
|
setProperty(
|
|
52891
53014
|
/**
|
|
52892
|
-
*
|
|
53015
|
+
* Path of the property to set
|
|
52893
53016
|
*/
|
|
52894
53017
|
sPath: string,
|
|
52895
53018
|
/**
|
|
52896
|
-
*
|
|
53019
|
+
* Value to set the property to
|
|
52897
53020
|
*/
|
|
52898
53021
|
oValue: any,
|
|
52899
53022
|
/**
|
|
52900
|
-
*
|
|
53023
|
+
* The context which will be used to set the property
|
|
52901
53024
|
*/
|
|
52902
53025
|
oContext?: object,
|
|
52903
53026
|
/**
|
|
52904
|
-
*
|
|
53027
|
+
* Whether to update other bindings dependent on this property asynchronously
|
|
52905
53028
|
*/
|
|
52906
53029
|
bAsyncUpdate?: boolean
|
|
52907
53030
|
): boolean;
|
|
@@ -52910,7 +53033,12 @@ declare namespace sap {
|
|
|
52910
53033
|
*
|
|
52911
53034
|
* Enable/Disable automatic updates of all Bindings after change operations
|
|
52912
53035
|
*/
|
|
52913
|
-
setRefreshAfterChange(
|
|
53036
|
+
setRefreshAfterChange(
|
|
53037
|
+
/**
|
|
53038
|
+
* Whether automatic updates should be enabled
|
|
53039
|
+
*/
|
|
53040
|
+
bRefreshAfterChange: boolean
|
|
53041
|
+
): void;
|
|
52914
53042
|
/**
|
|
52915
53043
|
* Enable/Disable XCSRF-Token handling
|
|
52916
53044
|
*/
|
|
@@ -56896,6 +57024,15 @@ declare namespace sap {
|
|
|
56896
57024
|
*/
|
|
56897
57025
|
sFilterType?: sap.ui.model.FilterType
|
|
56898
57026
|
): this;
|
|
57027
|
+
/**
|
|
57028
|
+
* @SINCE 1.97.0
|
|
57029
|
+
*
|
|
57030
|
+
* Returns all current contexts of this list binding in no special order. Just like {@link #getCurrentContexts},
|
|
57031
|
+
* this method does not request any data from a back end and does not change the binding's state. In contrast
|
|
57032
|
+
* to {@link #getCurrentContexts}, it does not only return the contexts as last requested by a control,
|
|
57033
|
+
* but all that are currently available in the binding.
|
|
57034
|
+
*/
|
|
57035
|
+
getAllCurrentContexts(): sap.ui.model.Context[];
|
|
56899
57036
|
/**
|
|
56900
57037
|
* Returns an array of binding contexts for the bound target list.
|
|
56901
57038
|
*
|
|
@@ -56948,11 +57085,10 @@ declare namespace sap {
|
|
|
56948
57085
|
/**
|
|
56949
57086
|
* @SINCE 1.28
|
|
56950
57087
|
*
|
|
56951
|
-
* Returns
|
|
57088
|
+
* Returns the contexts of this list binding as last requested by the control and in the same order the
|
|
57089
|
+
* control has received them.
|
|
56952
57090
|
*
|
|
56953
|
-
* This method does not
|
|
56954
|
-
* the context array as last requested by the control. This can be used by the application to get access
|
|
56955
|
-
* to the data currently displayed by a list control.
|
|
57091
|
+
* This method does not request any data from a back end and does not change the binding's state.
|
|
56956
57092
|
*/
|
|
56957
57093
|
getCurrentContexts(): sap.ui.model.Context[];
|
|
56958
57094
|
/**
|
|
@@ -57515,23 +57651,10 @@ declare namespace sap {
|
|
|
57515
57651
|
*/
|
|
57516
57652
|
fireParseError(
|
|
57517
57653
|
/**
|
|
57518
|
-
* Parameters to pass along with the event
|
|
57654
|
+
* Parameters to pass along with the event; May contain the following parameters: `errorCode`, `url`, `reason`,
|
|
57655
|
+
* `srcText`, `line`, `linePos`, `filePos`
|
|
57519
57656
|
*/
|
|
57520
|
-
oParameters?:
|
|
57521
|
-
errorCode?: int;
|
|
57522
|
-
|
|
57523
|
-
url?: string;
|
|
57524
|
-
|
|
57525
|
-
reason?: string;
|
|
57526
|
-
|
|
57527
|
-
srcText?: string;
|
|
57528
|
-
|
|
57529
|
-
line?: int;
|
|
57530
|
-
|
|
57531
|
-
linepos?: int;
|
|
57532
|
-
|
|
57533
|
-
filepos?: int;
|
|
57534
|
-
}
|
|
57657
|
+
oParameters?: object
|
|
57535
57658
|
): this;
|
|
57536
57659
|
/**
|
|
57537
57660
|
* Fires event {@link #event:propertyChange propertyChange} to attached listeners.
|
|
@@ -58959,7 +59082,9 @@ declare namespace sap {
|
|
|
58959
59082
|
* The list was refreshed
|
|
58960
59083
|
*/
|
|
58961
59084
|
Refresh = "refresh",
|
|
58962
|
-
|
|
59085
|
+
/**
|
|
59086
|
+
* A context was removed from a binding.
|
|
59087
|
+
*/
|
|
58963
59088
|
Remove = "remove",
|
|
58964
59089
|
/**
|
|
58965
59090
|
* The list was sorted
|
|
@@ -60018,7 +60143,28 @@ declare namespace sap {
|
|
|
60018
60143
|
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
60019
60144
|
}
|
|
60020
60145
|
|
|
60021
|
-
interface $PressSettings extends sap.ui.test.actions.$ActionSettings {
|
|
60146
|
+
interface $PressSettings extends sap.ui.test.actions.$ActionSettings {
|
|
60147
|
+
/**
|
|
60148
|
+
* @SINCE 1.97
|
|
60149
|
+
*
|
|
60150
|
+
* If it is set to `true`, the Alt Key modifier will be used
|
|
60151
|
+
*/
|
|
60152
|
+
altKey?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
60153
|
+
|
|
60154
|
+
/**
|
|
60155
|
+
* @SINCE 1.97
|
|
60156
|
+
*
|
|
60157
|
+
* If it is set to `true`, the Shift Key modifier will be used
|
|
60158
|
+
*/
|
|
60159
|
+
shiftKey?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
60160
|
+
|
|
60161
|
+
/**
|
|
60162
|
+
* @SINCE 1.97
|
|
60163
|
+
*
|
|
60164
|
+
* If it is set to `true`, the Control Key modifier will be used
|
|
60165
|
+
*/
|
|
60166
|
+
ctrlKey?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
60167
|
+
}
|
|
60022
60168
|
|
|
60023
60169
|
interface $ScrollSettings extends sap.ui.test.actions.$ActionSettings {
|
|
60024
60170
|
x?: int | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
@@ -60481,13 +60627,22 @@ declare namespace sap {
|
|
|
60481
60627
|
* see {@link sap.ui.test.actions.Press.controlAdapters}.
|
|
60482
60628
|
*/
|
|
60483
60629
|
class Press extends sap.ui.test.actions.Action {
|
|
60630
|
+
/**
|
|
60631
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
60632
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
60633
|
+
* of the syntax of the settings object.
|
|
60634
|
+
*/
|
|
60484
60635
|
constructor(
|
|
60485
60636
|
/**
|
|
60486
60637
|
* Optional object with initial settings for the new instance
|
|
60487
60638
|
*/
|
|
60488
60639
|
mSettings?: sap.ui.test.actions.$PressSettings
|
|
60489
60640
|
);
|
|
60490
|
-
|
|
60641
|
+
/**
|
|
60642
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
60643
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
60644
|
+
* of the syntax of the settings object.
|
|
60645
|
+
*/
|
|
60491
60646
|
constructor(
|
|
60492
60647
|
/**
|
|
60493
60648
|
* Optional ID for the new instance; generated automatically if no non-empty ID is given. Note: this can
|
|
@@ -60535,6 +60690,75 @@ declare namespace sap {
|
|
|
60535
60690
|
*/
|
|
60536
60691
|
oControl: sap.ui.core.Control
|
|
60537
60692
|
): void;
|
|
60693
|
+
/**
|
|
60694
|
+
* @SINCE 1.97
|
|
60695
|
+
*
|
|
60696
|
+
* Gets current value of property {@link #getAltKey altKey}.
|
|
60697
|
+
*
|
|
60698
|
+
* If it is set to `true`, the Alt Key modifier will be used
|
|
60699
|
+
*/
|
|
60700
|
+
getAltKey(): boolean;
|
|
60701
|
+
/**
|
|
60702
|
+
* @SINCE 1.97
|
|
60703
|
+
*
|
|
60704
|
+
* Gets current value of property {@link #getCtrlKey ctrlKey}.
|
|
60705
|
+
*
|
|
60706
|
+
* If it is set to `true`, the Control Key modifier will be used
|
|
60707
|
+
*/
|
|
60708
|
+
getCtrlKey(): boolean;
|
|
60709
|
+
/**
|
|
60710
|
+
* @SINCE 1.97
|
|
60711
|
+
*
|
|
60712
|
+
* Gets current value of property {@link #getShiftKey shiftKey}.
|
|
60713
|
+
*
|
|
60714
|
+
* If it is set to `true`, the Shift Key modifier will be used
|
|
60715
|
+
*/
|
|
60716
|
+
getShiftKey(): boolean;
|
|
60717
|
+
/**
|
|
60718
|
+
* @SINCE 1.97
|
|
60719
|
+
*
|
|
60720
|
+
* Sets a new value for property {@link #getAltKey altKey}.
|
|
60721
|
+
*
|
|
60722
|
+
* If it is set to `true`, the Alt Key modifier will be used
|
|
60723
|
+
*
|
|
60724
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
60725
|
+
*/
|
|
60726
|
+
setAltKey(
|
|
60727
|
+
/**
|
|
60728
|
+
* New value for property `altKey`
|
|
60729
|
+
*/
|
|
60730
|
+
bAltKey: boolean
|
|
60731
|
+
): this;
|
|
60732
|
+
/**
|
|
60733
|
+
* @SINCE 1.97
|
|
60734
|
+
*
|
|
60735
|
+
* Sets a new value for property {@link #getCtrlKey ctrlKey}.
|
|
60736
|
+
*
|
|
60737
|
+
* If it is set to `true`, the Control Key modifier will be used
|
|
60738
|
+
*
|
|
60739
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
60740
|
+
*/
|
|
60741
|
+
setCtrlKey(
|
|
60742
|
+
/**
|
|
60743
|
+
* New value for property `ctrlKey`
|
|
60744
|
+
*/
|
|
60745
|
+
bCtrlKey: boolean
|
|
60746
|
+
): this;
|
|
60747
|
+
/**
|
|
60748
|
+
* @SINCE 1.97
|
|
60749
|
+
*
|
|
60750
|
+
* Sets a new value for property {@link #getShiftKey shiftKey}.
|
|
60751
|
+
*
|
|
60752
|
+
* If it is set to `true`, the Shift Key modifier will be used
|
|
60753
|
+
*
|
|
60754
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
60755
|
+
*/
|
|
60756
|
+
setShiftKey(
|
|
60757
|
+
/**
|
|
60758
|
+
* New value for property `shiftKey`
|
|
60759
|
+
*/
|
|
60760
|
+
bShiftKey: boolean
|
|
60761
|
+
): this;
|
|
60538
60762
|
}
|
|
60539
60763
|
/**
|
|
60540
60764
|
* @SINCE 1.90
|