@sapui5/ts-types 1.101.1 → 1.103.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/index.d.ts +1 -0
- package/types/sap.apf.d.ts +89 -1
- package/types/sap.ca.ui.d.ts +1757 -134
- package/types/sap.chart.d.ts +376 -30
- package/types/sap.collaboration.d.ts +320 -40
- package/types/sap.esh.search.ui.d.ts +1 -669
- package/types/sap.f.d.ts +1948 -123
- package/types/sap.fe.common.d.ts +1 -1
- package/types/sap.fe.core.d.ts +29 -1091
- package/types/sap.fe.macros.d.ts +58 -589
- package/types/sap.fe.navigation.d.ts +7 -1175
- package/types/sap.fe.templates.d.ts +2 -140
- package/types/sap.fe.test.d.ts +476 -213
- package/types/sap.feedback.ui.d.ts +1 -1
- package/types/sap.gantt.d.ts +7540 -559
- package/types/sap.insights.d.ts +21 -0
- package/types/sap.landvisz.d.ts +1029 -80
- package/types/sap.m.d.ts +17162 -1399
- package/types/sap.makit.d.ts +579 -58
- package/types/sap.me.d.ts +579 -52
- package/types/sap.ndc.d.ts +137 -7
- package/types/sap.ovp.d.ts +5 -1
- package/types/sap.rules.ui.d.ts +171 -15
- package/types/sap.sac.df.d.ts +1629 -252
- package/types/sap.sac.grid.d.ts +91 -8
- package/types/sap.suite.ui.commons.d.ts +5573 -454
- package/types/sap.suite.ui.generic.template.d.ts +228 -54
- package/types/sap.suite.ui.microchart.d.ts +1814 -173
- package/types/sap.tnt.d.ts +282 -22
- package/types/sap.ui.codeeditor.d.ts +89 -8
- package/types/sap.ui.commons.d.ts +3818 -347
- package/types/sap.ui.comp.d.ts +3965 -303
- package/types/sap.ui.core.d.ts +6395 -258
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.export.d.ts +61 -6
- package/types/sap.ui.fl.d.ts +3 -1
- package/types/sap.ui.generic.app.d.ts +245 -64
- package/types/sap.ui.generic.template.d.ts +1 -1
- package/types/sap.ui.integration.d.ts +318 -25
- package/types/sap.ui.layout.d.ts +1883 -239
- package/types/sap.ui.mdc.d.ts +1 -1
- package/types/sap.ui.richtexteditor.d.ts +341 -50
- package/types/sap.ui.rta.d.ts +5 -1
- package/types/sap.ui.suite.d.ts +87 -6
- package/types/sap.ui.support.d.ts +30 -1
- package/types/sap.ui.table.d.ts +1057 -87
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +2738 -236
- package/types/sap.ui.ux3.d.ts +2421 -223
- package/types/sap.ui.vbm.d.ts +2006 -126
- package/types/sap.ui.vk.d.ts +5369 -326
- package/types/sap.ui.vtm.d.ts +1144 -52
- package/types/sap.uiext.inbox.d.ts +425 -24
- package/types/sap.ushell.d.ts +1500 -59
- package/types/sap.ushell_abap.d.ts +4 -1
- package/types/sap.uxap.d.ts +914 -99
- package/types/sap.viz.d.ts +5521 -387
- package/types/sap.webanalytics.core.d.ts +1 -1
- package/types/sap.zen.commons.d.ts +168 -23
- package/types/sap.zen.crosstab.d.ts +217 -21
- package/types/sap.zen.dsh.d.ts +227 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.103.0
|
|
2
2
|
|
|
3
3
|
declare namespace sap {
|
|
4
4
|
namespace ui {
|
|
@@ -41,6 +41,8 @@ declare namespace sap {
|
|
|
41
41
|
* and enriches it with the information contained in `oClassInfo`.
|
|
42
42
|
*
|
|
43
43
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.fe.navigation.NavError.extend}.
|
|
44
|
+
*
|
|
45
|
+
* @returns Created class / constructor function
|
|
44
46
|
*/
|
|
45
47
|
static extend<T extends Record<string, unknown>>(
|
|
46
48
|
/**
|
|
@@ -62,12 +64,16 @@ declare namespace sap {
|
|
|
62
64
|
): Function;
|
|
63
65
|
/**
|
|
64
66
|
* Returns a metadata object for class sap.ui.generic.app.navigation.service.NavError.
|
|
67
|
+
*
|
|
68
|
+
* @returns Metadata object describing this class
|
|
65
69
|
*/
|
|
66
70
|
static getMetadata(): sap.ui.base.Metadata;
|
|
67
71
|
/**
|
|
68
72
|
* @deprecated (since 1.83.0)
|
|
69
73
|
*
|
|
70
74
|
* Returns the error code with which the instance has been created.
|
|
75
|
+
*
|
|
76
|
+
* @returns The error code of the error
|
|
71
77
|
*/
|
|
72
78
|
getErrorCode(): string;
|
|
73
79
|
}
|
|
@@ -90,8 +96,8 @@ declare namespace sap {
|
|
|
90
96
|
* **Note:** This class requires that the UShell {@link sap.ushell.services.CrossApplicationNavigation}
|
|
91
97
|
* is available and initialized.
|
|
92
98
|
*/
|
|
93
|
-
class NavigationHandler
|
|
94
|
-
.NavigationHandler {
|
|
99
|
+
class NavigationHandler
|
|
100
|
+
/* was: sap.fe.navigation.NavigationHandler */ extends Object {
|
|
95
101
|
constructor(
|
|
96
102
|
/**
|
|
97
103
|
* UI5 controller that contains a router and a component; typically the main controller of your application,
|
|
@@ -113,6 +119,8 @@ declare namespace sap {
|
|
|
113
119
|
* The method creates a context url based on provided data. This context url can either be used as {@link
|
|
114
120
|
* sap.ui.generic.app.navigation.service.NavigationHandler#setParameterContextUrl ParameterContextUrl} or
|
|
115
121
|
* {@link sap.ui.generic.app.navigation.service.NavigationHandler#setFilterContextUrl FilterContextUrl}
|
|
122
|
+
*
|
|
123
|
+
* @returns context url for the given entities
|
|
116
124
|
*/
|
|
117
125
|
static constructContextUrl(
|
|
118
126
|
/**
|
|
@@ -129,6 +137,8 @@ declare namespace sap {
|
|
|
129
137
|
* and enriches it with the information contained in `oClassInfo`.
|
|
130
138
|
*
|
|
131
139
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.fe.navigation.NavigationHandler.extend}.
|
|
140
|
+
*
|
|
141
|
+
* @returns Created class / constructor function
|
|
132
142
|
*/
|
|
133
143
|
static extend<T extends Record<string, unknown>>(
|
|
134
144
|
/**
|
|
@@ -150,6 +160,8 @@ declare namespace sap {
|
|
|
150
160
|
): Function;
|
|
151
161
|
/**
|
|
152
162
|
* Returns a metadata object for class sap.ui.generic.app.navigation.service.NavigationHandler.
|
|
163
|
+
*
|
|
164
|
+
* @returns Metadata object describing this class
|
|
153
165
|
*/
|
|
154
166
|
static getMetadata(): sap.ui.base.Metadata;
|
|
155
167
|
/**
|
|
@@ -161,6 +173,8 @@ declare namespace sap {
|
|
|
161
173
|
* - `sap-system`
|
|
162
174
|
* - `sap-ushell-defaultedParameterNames`
|
|
163
175
|
* - `"hcpApplicationId"`
|
|
176
|
+
*
|
|
177
|
+
* @returns Containing the technical parameters.
|
|
164
178
|
*/
|
|
165
179
|
static getTechnicalParameters(): any[];
|
|
166
180
|
/**
|
|
@@ -171,6 +185,8 @@ declare namespace sap {
|
|
|
171
185
|
* variant does not contain any parameters. All parameters are merged into select options. The output of
|
|
172
186
|
* this function, converted to a JSON string, can be used for the {@link #.navigate NavigationHandler.navigate}
|
|
173
187
|
* method.
|
|
188
|
+
*
|
|
189
|
+
* @returns Instance of {@link sap.ui.generic.app.navigation.service.SelectionVariant}
|
|
174
190
|
*/
|
|
175
191
|
static mixAttributesAndSelectionVariant(
|
|
176
192
|
/**
|
|
@@ -752,6 +768,34 @@ declare namespace sap {
|
|
|
752
768
|
* state is returned in the resolved Promise. Otherwise startup parameters will be merged into the app state
|
|
753
769
|
* provided by cross app navigation, and a combined app state will be returned. The conflict resolution
|
|
754
770
|
* can be influenced with sParamHandlingMode defined in the constructor.
|
|
771
|
+
*
|
|
772
|
+
* @returns A Promise object to monitor when all the actions of the function have been executed. If the
|
|
773
|
+
* execution is successful, the extracted app state, the startup parameters, and the type of navigation
|
|
774
|
+
* are returned, see also the example above. The app state is an object that contains the following information:
|
|
775
|
+
*
|
|
776
|
+
* - `oAppData.oSelectionVariant`: An instance of {@link sap.ui.generic.app.navigation.service.SelectionVariant}
|
|
777
|
+
* containing only parameters/select options that are related to navigation
|
|
778
|
+
* - `oAppData.selectionVariant`: The navigation-related selection variant as a JSON-formatted string
|
|
779
|
+
*
|
|
780
|
+
* - `oAppData.oDefaultedSelectionVariant`: An instance of {@link sap.ui.generic.app.navigation.service.SelectionVariant}
|
|
781
|
+
* containing only the parameters/select options that are set by user default data
|
|
782
|
+
* - `oAppData.bNavSelVarHasDefaultsOnly`: A Boolean flag that indicates whether only defaulted parameters
|
|
783
|
+
* and no navigation parameters are present.
|
|
784
|
+
* **Note:** If no navigation parameters are available, `bNavSelVarHasDefaultsOnly` is set to `true`, even
|
|
785
|
+
* though parameters without default might be available as well. If the navigation-related selection
|
|
786
|
+
* variant is empty, it is replaced by a copy of the defaulted selection variant.
|
|
787
|
+
* The navigation type is an enumeration type of type {@link sap.ui.generic.app.navigation.service.NavType}
|
|
788
|
+
* (possible values are initial, URLParams, xAppState, and iAppState).
|
|
789
|
+
* **Note:** If the navigation type is {@link sap.ui.generic.app.navigation.service.NavType.iAppState}
|
|
790
|
+
* oAppData has two additional properties
|
|
791
|
+
* - `oAppData.tableVariantId`
|
|
792
|
+
* - `oAppData.customData` which return the inner app data as stored in {@link #.navigate navigate}
|
|
793
|
+
* or {@link #.storeInnerAppState storeInnerAppState}. `oAppData.oDefaultedSelectionVariant` is an empty
|
|
794
|
+
* selection variant and `oAppData.bNavSelVarHasDefaultsOnly` is `false` in this case.
|
|
795
|
+
* **Note:** If the navigation type is {@link sap.ui.generic.app.navigation.service.NavType.initial} oAppData
|
|
796
|
+
* is an empty object!
|
|
797
|
+
* If an error occurs, an error object of type {@link sap.ui.generic.app.navigation.service.NavError},
|
|
798
|
+
* URL parameters (if available) and the type of navigation are returned.
|
|
755
799
|
*/
|
|
756
800
|
static parseNavigation(): object;
|
|
757
801
|
/**
|
|
@@ -773,6 +817,10 @@ declare namespace sap {
|
|
|
773
817
|
* popover as semantic attributes.
|
|
774
818
|
* - The method `oTableEventParameters.open()` is called. Note that this does not really open the popover,
|
|
775
819
|
* but the SmartLink control proceeds with firing the event `navigationTargetsObtained`.
|
|
820
|
+
*
|
|
821
|
+
* @returns A Promise object to monitor when all actions of the function have been executed; if the execution
|
|
822
|
+
* is successful, the modified oTableEventParameters is returned; if an error occurs, an error object of
|
|
823
|
+
* type {@link sap.ui.generic.app.navigation.service.NavError} is returned
|
|
776
824
|
*/
|
|
777
825
|
static processBeforeSmartLinkPopoverOpens(
|
|
778
826
|
/**
|
|
@@ -879,6 +927,10 @@ declare namespace sap {
|
|
|
879
927
|
* @deprecated (since 1.83.0)
|
|
880
928
|
*
|
|
881
929
|
* Changes the URL according to the current app state and stores the app state for later retrieval.
|
|
930
|
+
*
|
|
931
|
+
* @returns A Promise object to monitor when all the actions of the function have been executed; if the
|
|
932
|
+
* execution is successful, the app state key is returned; if an error occurs, an object of type {@link
|
|
933
|
+
* sap.ui.generic.app.navigation.service.NavError} is returned
|
|
882
934
|
*/
|
|
883
935
|
static storeInnerAppState(
|
|
884
936
|
/**
|
|
@@ -921,6 +973,9 @@ declare namespace sap {
|
|
|
921
973
|
* @deprecated (since 1.83.0)
|
|
922
974
|
*
|
|
923
975
|
* Changes the URL according to the current app state and stores the app state for later retrieval.
|
|
976
|
+
*
|
|
977
|
+
* @returns An object containing the appStateId and a promise object to monitor when all the actions of
|
|
978
|
+
* the function have been executed; Please note that the appStateKey may be undefined or empty.
|
|
924
979
|
*/
|
|
925
980
|
static storeInnerAppStateWithImmediateReturn(
|
|
926
981
|
/**
|
|
@@ -968,8 +1023,8 @@ declare namespace sap {
|
|
|
968
1023
|
* is created whose ID has been set to `""`. Passing a JSON-serialized string complying to the Selection
|
|
969
1024
|
* Variant Specification will parse it, and the newly created instance will contain the same information.
|
|
970
1025
|
*/
|
|
971
|
-
class PresentationVariant
|
|
972
|
-
.PresentationVariant {
|
|
1026
|
+
class PresentationVariant
|
|
1027
|
+
/* was: sap.fe.navigation.PresentationVariant */ extends Object {
|
|
973
1028
|
constructor(
|
|
974
1029
|
/**
|
|
975
1030
|
* If of type `string`, the selection variant is JSON-formatted; if of type `object`, the object represents
|
|
@@ -983,6 +1038,8 @@ declare namespace sap {
|
|
|
983
1038
|
* and enriches it with the information contained in `oClassInfo`.
|
|
984
1039
|
*
|
|
985
1040
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.fe.navigation.PresentationVariant.extend}.
|
|
1041
|
+
*
|
|
1042
|
+
* @returns Created class / constructor function
|
|
986
1043
|
*/
|
|
987
1044
|
static extend<T extends Record<string, unknown>>(
|
|
988
1045
|
/**
|
|
@@ -1006,46 +1063,62 @@ declare namespace sap {
|
|
|
1006
1063
|
* @deprecated (since 1.83.0)
|
|
1007
1064
|
*
|
|
1008
1065
|
* Gets the chart visualization property.
|
|
1066
|
+
*
|
|
1067
|
+
* @returns mProperties to be used for the chart visualization.
|
|
1009
1068
|
*/
|
|
1010
1069
|
static getChartVisualization(): Record<string, any>;
|
|
1011
1070
|
/**
|
|
1012
1071
|
* @deprecated (since 1.83.0)
|
|
1013
1072
|
*
|
|
1014
1073
|
* Gets the current context URL intended for the query.
|
|
1074
|
+
*
|
|
1075
|
+
* @returns The current context URL for the query
|
|
1015
1076
|
*/
|
|
1016
1077
|
static getContextUrl(): string;
|
|
1017
1078
|
/**
|
|
1018
1079
|
* @deprecated (since 1.83.0)
|
|
1019
1080
|
*
|
|
1020
1081
|
* Returns the identification of the selection variant.
|
|
1082
|
+
*
|
|
1083
|
+
* @returns The identification of the selection variant as made available during construction
|
|
1021
1084
|
*/
|
|
1022
1085
|
static getID(): string;
|
|
1023
1086
|
/**
|
|
1024
1087
|
* Returns a metadata object for class sap.ui.generic.app.navigation.service.PresentationVariant.
|
|
1088
|
+
*
|
|
1089
|
+
* @returns Metadata object describing this class
|
|
1025
1090
|
*/
|
|
1026
1091
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1027
1092
|
/**
|
|
1028
1093
|
* @deprecated (since 1.83.0)
|
|
1029
1094
|
*
|
|
1030
1095
|
* Gets the more trivial properties. Basically all properties with the exception of the Visualization.
|
|
1096
|
+
*
|
|
1097
|
+
* @returns The current properties.
|
|
1031
1098
|
*/
|
|
1032
1099
|
static getProperties(): Record<string, any>;
|
|
1033
1100
|
/**
|
|
1034
1101
|
* @deprecated (since 1.83.0)
|
|
1035
1102
|
*
|
|
1036
1103
|
* Gets the table visualization property.
|
|
1104
|
+
*
|
|
1105
|
+
* @returns mProperties to be used for the table visualization.
|
|
1037
1106
|
*/
|
|
1038
1107
|
static getTableVisualization(): Record<string, any>;
|
|
1039
1108
|
/**
|
|
1040
1109
|
* @deprecated (since 1.83.0)
|
|
1041
1110
|
*
|
|
1042
1111
|
* Returns the current text / description of this selection variant.
|
|
1112
|
+
*
|
|
1113
|
+
* @returns the current description of this selection variant.
|
|
1043
1114
|
*/
|
|
1044
1115
|
static getText(): string;
|
|
1045
1116
|
/**
|
|
1046
1117
|
* @deprecated (since 1.83.0)
|
|
1047
1118
|
*
|
|
1048
1119
|
* Returns `true` if the presentation variant does not contain any properties. nor ranges.
|
|
1120
|
+
*
|
|
1121
|
+
* @returns If set to `true` there are no current properties set; `false` otherwise.
|
|
1049
1122
|
*/
|
|
1050
1123
|
static isEmpty(): boolean;
|
|
1051
1124
|
/**
|
|
@@ -1118,12 +1191,16 @@ declare namespace sap {
|
|
|
1118
1191
|
* @deprecated (since 1.83.0)
|
|
1119
1192
|
*
|
|
1120
1193
|
* Returns the external representation of the selection variant as JSON object.
|
|
1194
|
+
*
|
|
1195
|
+
* @returns The external representation of this instance as a JSON object
|
|
1121
1196
|
*/
|
|
1122
1197
|
static toJSONObject(): object;
|
|
1123
1198
|
/**
|
|
1124
1199
|
* @deprecated (since 1.83.0)
|
|
1125
1200
|
*
|
|
1126
1201
|
* Serializes this instance into a JSON-formatted string.
|
|
1202
|
+
*
|
|
1203
|
+
* @returns The JSON-formatted representation of this instance in stringified format
|
|
1127
1204
|
*/
|
|
1128
1205
|
static toJSONString(): string;
|
|
1129
1206
|
}
|
|
@@ -1134,7 +1211,8 @@ declare namespace sap {
|
|
|
1134
1211
|
* is created whose ID has been set to `""`. Passing a JSON-serialized string complying to the Selection
|
|
1135
1212
|
* Variant Specification will parse it, and the newly created instance will contain the same information.
|
|
1136
1213
|
*/
|
|
1137
|
-
class SelectionVariant
|
|
1214
|
+
class SelectionVariant
|
|
1215
|
+
/* was: sap.fe.navigation.SelectionVariant */ extends Object {
|
|
1138
1216
|
constructor(
|
|
1139
1217
|
/**
|
|
1140
1218
|
* If of type `string`, the selection variant is JSON-formatted; if of type `object`, the object represents
|
|
@@ -1148,6 +1226,8 @@ declare namespace sap {
|
|
|
1148
1226
|
*
|
|
1149
1227
|
* Sets the value of a parameter called `sName` to the new value `sValue`. If the parameter has already
|
|
1150
1228
|
* been set before, its value is overwritten.
|
|
1229
|
+
*
|
|
1230
|
+
* @returns This instance to allow method chaining
|
|
1151
1231
|
*/
|
|
1152
1232
|
static addParameter(
|
|
1153
1233
|
/**
|
|
@@ -1163,6 +1243,8 @@ declare namespace sap {
|
|
|
1163
1243
|
* @deprecated (since 1.83.0)
|
|
1164
1244
|
*
|
|
1165
1245
|
* Adds a new range to the list of select options for a given parameter.
|
|
1246
|
+
*
|
|
1247
|
+
* @returns This instance to allow method chaining.
|
|
1166
1248
|
*/
|
|
1167
1249
|
static addSelectOption(
|
|
1168
1250
|
/**
|
|
@@ -1195,6 +1277,8 @@ declare namespace sap {
|
|
|
1195
1277
|
* and enriches it with the information contained in `oClassInfo`.
|
|
1196
1278
|
*
|
|
1197
1279
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.fe.navigation.SelectionVariant.extend}.
|
|
1280
|
+
*
|
|
1281
|
+
* @returns Created class / constructor function
|
|
1198
1282
|
*/
|
|
1199
1283
|
static extend<T extends Record<string, unknown>>(
|
|
1200
1284
|
/**
|
|
@@ -1218,16 +1302,22 @@ declare namespace sap {
|
|
|
1218
1302
|
* @deprecated (since 1.83.0)
|
|
1219
1303
|
*
|
|
1220
1304
|
* Gets the current context URL intended for the filters.
|
|
1305
|
+
*
|
|
1306
|
+
* @returns The current context URL for the filters
|
|
1221
1307
|
*/
|
|
1222
1308
|
static getFilterContextUrl(): string;
|
|
1223
1309
|
/**
|
|
1224
1310
|
* @deprecated (since 1.83.0)
|
|
1225
1311
|
*
|
|
1226
1312
|
* Returns the identification of the selection variant.
|
|
1313
|
+
*
|
|
1314
|
+
* @returns The identification of the selection variant as made available during construction
|
|
1227
1315
|
*/
|
|
1228
1316
|
static getID(): string;
|
|
1229
1317
|
/**
|
|
1230
1318
|
* Returns a metadata object for class sap.ui.generic.app.navigation.service.SelectionVariant.
|
|
1319
|
+
*
|
|
1320
|
+
* @returns Metadata object describing this class
|
|
1231
1321
|
*/
|
|
1232
1322
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1233
1323
|
/**
|
|
@@ -1235,6 +1325,8 @@ declare namespace sap {
|
|
|
1235
1325
|
*
|
|
1236
1326
|
* Returns the value of the parameter called `sName` if it has been set. If the parameter has never been
|
|
1237
1327
|
* set or has been removed, `undefined` is returned.
|
|
1328
|
+
*
|
|
1329
|
+
* @returns The value of parameter `sName`; returning the value `null` not possible
|
|
1238
1330
|
*/
|
|
1239
1331
|
static getParameter(
|
|
1240
1332
|
/**
|
|
@@ -1246,24 +1338,39 @@ declare namespace sap {
|
|
|
1246
1338
|
* @deprecated (since 1.83.0)
|
|
1247
1339
|
*
|
|
1248
1340
|
* Gets the current context URL intended for the parameters.
|
|
1341
|
+
*
|
|
1342
|
+
* @returns The current context URL for the parameters
|
|
1249
1343
|
*/
|
|
1250
1344
|
static getParameterContextUrl(): string;
|
|
1251
1345
|
/**
|
|
1252
1346
|
* @deprecated (since 1.83.0)
|
|
1253
1347
|
*
|
|
1254
1348
|
* Returns the set of parameter names available in this selection variant
|
|
1349
|
+
*
|
|
1350
|
+
* @returns the list of parameter names which are valid
|
|
1255
1351
|
*/
|
|
1256
1352
|
static getParameterNames(): any[];
|
|
1257
1353
|
/**
|
|
1258
1354
|
* @deprecated (since 1.83.0)
|
|
1259
1355
|
*
|
|
1260
1356
|
* Returns the names of the parameter and select option properties available for this instance.
|
|
1357
|
+
*
|
|
1358
|
+
* @returns The list of parameter and select option property names available for this instance
|
|
1261
1359
|
*/
|
|
1262
1360
|
static getPropertyNames(): any[];
|
|
1263
1361
|
/**
|
|
1264
1362
|
* @deprecated (since 1.83.0)
|
|
1265
1363
|
*
|
|
1266
1364
|
* Returns the set of select options/ranges available for a given property name.
|
|
1365
|
+
*
|
|
1366
|
+
* @returns If `sPropertyName` is an invalid name of a property or no range exists, `undefined` is returned;
|
|
1367
|
+
* otherwise, an immutable array of ranges is returned. Each entry of the array is an object with the following
|
|
1368
|
+
* properties:
|
|
1369
|
+
* - `Sign`: The sign of the range
|
|
1370
|
+
* - `Option`: The option of the range
|
|
1371
|
+
* - `Low`: The low value of the range; returning value `null` is not possible
|
|
1372
|
+
* - `High`: The high value of the range; if this value is not necessary, `null` is used For further
|
|
1373
|
+
* information about the meaning of the attributes, refer to method `addSelectOption`.
|
|
1267
1374
|
*/
|
|
1268
1375
|
static getSelectOption(
|
|
1269
1376
|
/**
|
|
@@ -1275,12 +1382,16 @@ declare namespace sap {
|
|
|
1275
1382
|
* @deprecated (since 1.83.0)
|
|
1276
1383
|
*
|
|
1277
1384
|
* Returns the names of the properties available for this instance.
|
|
1385
|
+
*
|
|
1386
|
+
* @returns The list of property names available for this instance
|
|
1278
1387
|
*/
|
|
1279
1388
|
static getSelectOptionsPropertyNames(): any[];
|
|
1280
1389
|
/**
|
|
1281
1390
|
* @deprecated (since 1.83.0)
|
|
1282
1391
|
*
|
|
1283
1392
|
* Returns the current text / description of this selection variant.
|
|
1393
|
+
*
|
|
1394
|
+
* @returns the current description of this selection variant.
|
|
1284
1395
|
*/
|
|
1285
1396
|
static getText(): string;
|
|
1286
1397
|
/**
|
|
@@ -1291,6 +1402,15 @@ declare namespace sap {
|
|
|
1291
1402
|
* `sName`, is made. If the latter succeeds, the single value is converted to fit into an array of selections
|
|
1292
1403
|
* to make it type compatible with ranges. This array is then returned. If neither a select option
|
|
1293
1404
|
* nor a parameter could be found, `undefined` is returned.
|
|
1405
|
+
*
|
|
1406
|
+
* @returns The ranges in the select options for the specified property or a range-converted representation
|
|
1407
|
+
* of a parameter is returned. If both lookups fail, `undefined` is returned. The returned ranges
|
|
1408
|
+
* have the format:
|
|
1409
|
+
* - `Sign`: The sign of the range
|
|
1410
|
+
* - `Option`: The option of the range
|
|
1411
|
+
* - `Low`: The low value of the range; returning the value `null` is not possible
|
|
1412
|
+
* - `High`: The high value of the range; if this value is not necessary, `null` (but does exist)
|
|
1413
|
+
* For further information on the meaning of the attributes, refer to method {@link #.addSelectOption addSelectOption}.
|
|
1294
1414
|
*/
|
|
1295
1415
|
static getValue(
|
|
1296
1416
|
/**
|
|
@@ -1302,12 +1422,17 @@ declare namespace sap {
|
|
|
1302
1422
|
* @deprecated (since 1.83.0)
|
|
1303
1423
|
*
|
|
1304
1424
|
* Returns `true` if the selection variant does neither contain parameters nor ranges.
|
|
1425
|
+
*
|
|
1426
|
+
* @returns If set to `true` there are no parameters and no select options available in the selection variant;
|
|
1427
|
+
* `false` otherwise.
|
|
1305
1428
|
*/
|
|
1306
1429
|
static isEmpty(): boolean;
|
|
1307
1430
|
/**
|
|
1308
1431
|
* @deprecated (since 1.83.0)
|
|
1309
1432
|
*
|
|
1310
1433
|
* Adds a set of select options to the list of select options for a given parameter.
|
|
1434
|
+
*
|
|
1435
|
+
* @returns This instance to allow method chaining
|
|
1311
1436
|
*/
|
|
1312
1437
|
static massAddSelectOption(
|
|
1313
1438
|
/**
|
|
@@ -1323,6 +1448,8 @@ declare namespace sap {
|
|
|
1323
1448
|
* @deprecated (since 1.83.0)
|
|
1324
1449
|
*
|
|
1325
1450
|
* Removes a parameter called `sName` from the selection variant.
|
|
1451
|
+
*
|
|
1452
|
+
* @returns This instance to allow method chaining
|
|
1326
1453
|
*/
|
|
1327
1454
|
static removeParameter(
|
|
1328
1455
|
/**
|
|
@@ -1334,6 +1461,8 @@ declare namespace sap {
|
|
|
1334
1461
|
* @deprecated (since 1.83.0)
|
|
1335
1462
|
*
|
|
1336
1463
|
* Removes a select option called `sName` from the selection variant.
|
|
1464
|
+
*
|
|
1465
|
+
* @returns This instance to allow method chaining.
|
|
1337
1466
|
*/
|
|
1338
1467
|
static removeSelectOption(
|
|
1339
1468
|
/**
|
|
@@ -1347,6 +1476,8 @@ declare namespace sap {
|
|
|
1347
1476
|
* Renames a parameter called `sNameOld` to `sNameNew`. If a parameter or a select option with the name
|
|
1348
1477
|
* `sNameNew` already exist, an error is thrown. If a parameter with the name `sNameOld` does not exist,
|
|
1349
1478
|
* nothing is changed.
|
|
1479
|
+
*
|
|
1480
|
+
* @returns This instance to allow method chaining
|
|
1350
1481
|
*/
|
|
1351
1482
|
static renameParameter(
|
|
1352
1483
|
/**
|
|
@@ -1364,6 +1495,8 @@ declare namespace sap {
|
|
|
1364
1495
|
* Renames a select option called `sNameOld` to `sNameNew`. If a select option or a parameter with the name
|
|
1365
1496
|
* `sNameNew` already exist, an error is thrown. If a select option with the name `sNameOld` does not exist,
|
|
1366
1497
|
* nothing is changed.
|
|
1498
|
+
*
|
|
1499
|
+
* @returns This instance to allow method chaining
|
|
1367
1500
|
*/
|
|
1368
1501
|
static renameSelectOption(
|
|
1369
1502
|
/**
|
|
@@ -1423,12 +1556,16 @@ declare namespace sap {
|
|
|
1423
1556
|
* @deprecated (since 1.83.0)
|
|
1424
1557
|
*
|
|
1425
1558
|
* Returns the external representation of the selection variant as JSON object.
|
|
1559
|
+
*
|
|
1560
|
+
* @returns The external representation of this instance as a JSON object
|
|
1426
1561
|
*/
|
|
1427
1562
|
static toJSONObject(): object;
|
|
1428
1563
|
/**
|
|
1429
1564
|
* @deprecated (since 1.83.0)
|
|
1430
1565
|
*
|
|
1431
1566
|
* Serializes this instance into a JSON-formatted string
|
|
1567
|
+
*
|
|
1568
|
+
* @returns The JSON-formatted representation of this instance in stringified format
|
|
1432
1569
|
*/
|
|
1433
1570
|
static toJSONString(): string;
|
|
1434
1571
|
}
|
|
@@ -1437,48 +1574,14 @@ declare namespace sap {
|
|
|
1437
1574
|
*
|
|
1438
1575
|
* A static enumeration type which indicates the type of inbound navigation
|
|
1439
1576
|
*/
|
|
1440
|
-
enum NavType {
|
|
1441
|
-
/**
|
|
1442
|
-
* Back navigation with sap-iapp-state parameter
|
|
1443
|
-
*/
|
|
1444
|
-
iAppState = "iAppState",
|
|
1445
|
-
/**
|
|
1446
|
-
* Initial startup without any navigation or default parameters
|
|
1447
|
-
*/
|
|
1448
|
-
initial = "initial",
|
|
1449
|
-
/**
|
|
1450
|
-
* Basic cross-app navigation with URL parameters only (without sap-xapp-state) or initial start with default
|
|
1451
|
-
* parameters
|
|
1452
|
-
*/
|
|
1453
|
-
URLParams = "URLParams",
|
|
1454
|
-
/**
|
|
1455
|
-
* Cross-app navigation with sap-xapp-state parameter (and URL parameters), defaulted parameters may be
|
|
1456
|
-
* added
|
|
1457
|
-
*/
|
|
1458
|
-
xAppState = "xAppState",
|
|
1459
|
-
}
|
|
1577
|
+
enum NavType {}
|
|
1460
1578
|
/**
|
|
1461
1579
|
* @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.ParamHandlingMode} instead.
|
|
1462
1580
|
*
|
|
1463
1581
|
* A static enumeration type which indicates the conflict resolution method when merging URL parameters
|
|
1464
1582
|
* into select options
|
|
1465
1583
|
*/
|
|
1466
|
-
enum ParamHandlingMode {
|
|
1467
|
-
/**
|
|
1468
|
-
* The conflict resolution adds URL parameters to the SelectionVariant
|
|
1469
|
-
*/
|
|
1470
|
-
InsertInSelOpt = "undefined",
|
|
1471
|
-
/**
|
|
1472
|
-
* The conflict resolution favors the SelectionVariant over URL parameters
|
|
1473
|
-
*/
|
|
1474
|
-
SelVarWins = "undefined",
|
|
1475
|
-
/**
|
|
1476
|
-
* The conflict resolution favors the URL parameters over the SelectionVariant. Caution: In case of cross-app
|
|
1477
|
-
* navigation a navigation parameter value from the source app is overwritten by a default, if a default
|
|
1478
|
-
* is maintained in the launchpad designer for this parameter in the target app!
|
|
1479
|
-
*/
|
|
1480
|
-
URLParamWins = "undefined",
|
|
1481
|
-
}
|
|
1584
|
+
enum ParamHandlingMode {}
|
|
1482
1585
|
/**
|
|
1483
1586
|
* @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.SuppressionBehavior} instead.
|
|
1484
1587
|
*
|
|
@@ -1488,28 +1591,7 @@ declare namespace sap {
|
|
|
1488
1591
|
* mixAttributesAndSelectionVariant} of the {@link sap.ui.generic.app.navigation.service.NavigationHandler
|
|
1489
1592
|
* NavigationHandler}
|
|
1490
1593
|
*/
|
|
1491
|
-
enum SuppressionBehavior {
|
|
1492
|
-
/**
|
|
1493
|
-
* Semantic attributes with an empty string are ignored, the remaining attributes are mixed in to the selection
|
|
1494
|
-
* variant. Warning! Consider the impact on Boolean variable values!
|
|
1495
|
-
*/
|
|
1496
|
-
ignoreEmptyString = "undefined",
|
|
1497
|
-
/**
|
|
1498
|
-
* Semantic attributes with a `null` value lead to an {@link sap.fin.central.lib.error.Error error} of type
|
|
1499
|
-
* NavigationHandler.INVALID_INPUT
|
|
1500
|
-
*/
|
|
1501
|
-
raiseErrorOnNull = "undefined",
|
|
1502
|
-
/**
|
|
1503
|
-
* Semantic attributes with an `undefined` value lead to an {@link sap.fin.central.lib.error.Error error}
|
|
1504
|
-
* of type NavigationHandler.INVALID_INPUT
|
|
1505
|
-
*/
|
|
1506
|
-
raiseErrorOnUndefined = "undefined",
|
|
1507
|
-
/**
|
|
1508
|
-
* Standard suppression behavior: semantic attributes with a `null` or an `undefined` value are ignored,
|
|
1509
|
-
* the remaining attributes are mixed in to the selection variant
|
|
1510
|
-
*/
|
|
1511
|
-
standard = "undefined",
|
|
1512
|
-
}
|
|
1594
|
+
enum SuppressionBehavior {}
|
|
1513
1595
|
}
|
|
1514
1596
|
}
|
|
1515
1597
|
|
|
@@ -1541,6 +1623,8 @@ declare namespace sap {
|
|
|
1541
1623
|
* and enriches it with the information contained in `oClassInfo`.
|
|
1542
1624
|
*
|
|
1543
1625
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.EventProvider.extend}.
|
|
1626
|
+
*
|
|
1627
|
+
* @returns Created class / constructor function
|
|
1544
1628
|
*/
|
|
1545
1629
|
static extend<T extends Record<string, unknown>>(
|
|
1546
1630
|
/**
|
|
@@ -1562,6 +1646,8 @@ declare namespace sap {
|
|
|
1562
1646
|
): Function;
|
|
1563
1647
|
/**
|
|
1564
1648
|
* Returns a metadata object for class sap.ui.generic.app.transaction.BaseController.
|
|
1649
|
+
*
|
|
1650
|
+
* @returns Metadata object describing this class
|
|
1565
1651
|
*/
|
|
1566
1652
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1567
1653
|
/**
|
|
@@ -1596,10 +1682,14 @@ declare namespace sap {
|
|
|
1596
1682
|
): void;
|
|
1597
1683
|
/**
|
|
1598
1684
|
* Checks for client messages.
|
|
1685
|
+
*
|
|
1686
|
+
* @returns If client-side messages exist a rejected promise is returned, `null` otherwise
|
|
1599
1687
|
*/
|
|
1600
1688
|
hasClientMessages(): Promise<any>;
|
|
1601
1689
|
/**
|
|
1602
1690
|
* Triggers submitting the currently tracked changes to the back-end.
|
|
1691
|
+
*
|
|
1692
|
+
* @returns A `Promise` for asynchronous execution of the submit
|
|
1603
1693
|
*/
|
|
1604
1694
|
triggerSubmitChanges(
|
|
1605
1695
|
/**
|
|
@@ -1651,6 +1741,8 @@ declare namespace sap {
|
|
|
1651
1741
|
* enriches it with the information contained in `oClassInfo`.
|
|
1652
1742
|
*
|
|
1653
1743
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
1744
|
+
*
|
|
1745
|
+
* @returns Created class / constructor function
|
|
1654
1746
|
*/
|
|
1655
1747
|
static extend<T extends Record<string, unknown>>(
|
|
1656
1748
|
/**
|
|
@@ -1672,6 +1764,8 @@ declare namespace sap {
|
|
|
1672
1764
|
): Function;
|
|
1673
1765
|
/**
|
|
1674
1766
|
* Returns a metadata object for class sap.ui.generic.app.transaction.DraftContext.
|
|
1767
|
+
*
|
|
1768
|
+
* @returns Metadata object describing this class
|
|
1675
1769
|
*/
|
|
1676
1770
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1677
1771
|
/**
|
|
@@ -1679,6 +1773,8 @@ declare namespace sap {
|
|
|
1679
1773
|
*
|
|
1680
1774
|
* Checks whether an OData property is annotated with UpdateOnChange. The method is used in context of a
|
|
1681
1775
|
* validation success event.
|
|
1776
|
+
*
|
|
1777
|
+
* @returns `true`, if the property is annotated with UpdateOnChange, `false` otherwise
|
|
1682
1778
|
*/
|
|
1683
1779
|
checkUpdateOnChange(
|
|
1684
1780
|
/**
|
|
@@ -1696,6 +1792,8 @@ declare namespace sap {
|
|
|
1696
1792
|
destroy(): void;
|
|
1697
1793
|
/**
|
|
1698
1794
|
* Returns the name of the function import to be used.
|
|
1795
|
+
*
|
|
1796
|
+
* @returns The name of the function import to be used
|
|
1699
1797
|
*/
|
|
1700
1798
|
getODataDraftFunctionImportName(
|
|
1701
1799
|
/**
|
|
@@ -1709,6 +1807,8 @@ declare namespace sap {
|
|
|
1709
1807
|
): string;
|
|
1710
1808
|
/**
|
|
1711
1809
|
* Returns the semantic keys for a given entity set.
|
|
1810
|
+
*
|
|
1811
|
+
* @returns The semantic keys
|
|
1712
1812
|
*/
|
|
1713
1813
|
getSemanticKey(
|
|
1714
1814
|
/**
|
|
@@ -1719,6 +1819,8 @@ declare namespace sap {
|
|
|
1719
1819
|
/**
|
|
1720
1820
|
* Checks whether an entity set is draft-enabled. The entity set name is derived from the given binding
|
|
1721
1821
|
* context
|
|
1822
|
+
*
|
|
1823
|
+
* @returns `true`, if a given entity set is draft-enabled, `false` otherwise
|
|
1722
1824
|
*/
|
|
1723
1825
|
hasDraft(
|
|
1724
1826
|
/**
|
|
@@ -1728,6 +1830,8 @@ declare namespace sap {
|
|
|
1728
1830
|
): boolean;
|
|
1729
1831
|
/**
|
|
1730
1832
|
* Checks whether administrative data for a given draft is available.
|
|
1833
|
+
*
|
|
1834
|
+
* @returns `true`, if administrative data is available, `false` otherwise
|
|
1731
1835
|
*/
|
|
1732
1836
|
hasDraftAdministrativeData(
|
|
1733
1837
|
/**
|
|
@@ -1738,6 +1842,8 @@ declare namespace sap {
|
|
|
1738
1842
|
/**
|
|
1739
1843
|
* Checks whether an entity set has a draft preparation action. The entity set name is derived from the
|
|
1740
1844
|
* given binding context.
|
|
1845
|
+
*
|
|
1846
|
+
* @returns `true`, if a given entity set has a draft preparation action, `false` otherwise
|
|
1741
1847
|
*/
|
|
1742
1848
|
hasDraftPreparationAction(
|
|
1743
1849
|
/**
|
|
@@ -1747,6 +1853,8 @@ declare namespace sap {
|
|
|
1747
1853
|
): boolean;
|
|
1748
1854
|
/**
|
|
1749
1855
|
* Checks whether an entity set is draft root. The entity set name is derived from the given binding context.
|
|
1856
|
+
*
|
|
1857
|
+
* @returns `true`, if a given entity set is draft root, `false` otherwise
|
|
1750
1858
|
*/
|
|
1751
1859
|
hasDraftRoot(
|
|
1752
1860
|
/**
|
|
@@ -1757,6 +1865,8 @@ declare namespace sap {
|
|
|
1757
1865
|
/**
|
|
1758
1866
|
* Checks whether an entity set has a draft validation function. The entity set name is derived from the
|
|
1759
1867
|
* given binding context.
|
|
1868
|
+
*
|
|
1869
|
+
* @returns `true`, if a given entity set has a draft validation function, `false` otherwise
|
|
1760
1870
|
*/
|
|
1761
1871
|
hasDraftValidationFunction(
|
|
1762
1872
|
/**
|
|
@@ -1770,10 +1880,14 @@ declare namespace sap {
|
|
|
1770
1880
|
* Checks if the parameter "PreserveChanges" is supported by the edit function. If the edit action is triggered
|
|
1771
1881
|
* with the parameter set to `true` the ABAP application infrastructure will respond with HTTP response
|
|
1772
1882
|
* code 409 if unsaved changes (from another user) exist.
|
|
1883
|
+
*
|
|
1884
|
+
* @returns `true`, if "PreserveChanges" is supported
|
|
1773
1885
|
*/
|
|
1774
1886
|
hasPreserveChanges(): boolean;
|
|
1775
1887
|
/**
|
|
1776
1888
|
* Checks whether a sibling entity for a given entity set is available.
|
|
1889
|
+
*
|
|
1890
|
+
* @returns `true`, if sibling entity is available, `false` otherwise
|
|
1777
1891
|
*/
|
|
1778
1892
|
hasSiblingEntity(
|
|
1779
1893
|
/**
|
|
@@ -1783,6 +1897,8 @@ declare namespace sap {
|
|
|
1783
1897
|
): boolean;
|
|
1784
1898
|
/**
|
|
1785
1899
|
* Checks whether a given entity set is draft-enabled.
|
|
1900
|
+
*
|
|
1901
|
+
* @returns `true`, if a given entity set is draft-enabled, `false` otherwise
|
|
1786
1902
|
*/
|
|
1787
1903
|
isDraftEnabled(
|
|
1788
1904
|
/**
|
|
@@ -1792,6 +1908,8 @@ declare namespace sap {
|
|
|
1792
1908
|
): boolean;
|
|
1793
1909
|
/**
|
|
1794
1910
|
* Checks whether a given entity set is a draft root.
|
|
1911
|
+
*
|
|
1912
|
+
* @returns `true`, if a given entity set is draft root, `false` otherwise
|
|
1795
1913
|
*/
|
|
1796
1914
|
isDraftRoot(
|
|
1797
1915
|
/**
|
|
@@ -1801,6 +1919,8 @@ declare namespace sap {
|
|
|
1801
1919
|
): boolean;
|
|
1802
1920
|
/**
|
|
1803
1921
|
* Checks whether a given key is a semantic key.
|
|
1922
|
+
*
|
|
1923
|
+
* @returns `true`, if a given key is a semantic key, `false` otherwise
|
|
1804
1924
|
*/
|
|
1805
1925
|
isSemanticKey(
|
|
1806
1926
|
/**
|
|
@@ -1814,6 +1934,8 @@ declare namespace sap {
|
|
|
1814
1934
|
): boolean;
|
|
1815
1935
|
/**
|
|
1816
1936
|
* Checks whether a given key is a technical key.
|
|
1937
|
+
*
|
|
1938
|
+
* @returns `true`, if a given key is a technical key, `false` otherwise
|
|
1817
1939
|
*/
|
|
1818
1940
|
isTechnicalKey(
|
|
1819
1941
|
/**
|
|
@@ -1862,6 +1984,8 @@ declare namespace sap {
|
|
|
1862
1984
|
* and enriches it with the information contained in `oClassInfo`.
|
|
1863
1985
|
*
|
|
1864
1986
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.generic.app.transaction.BaseController.extend}.
|
|
1987
|
+
*
|
|
1988
|
+
* @returns Created class / constructor function
|
|
1865
1989
|
*/
|
|
1866
1990
|
static extend<T extends Record<string, unknown>>(
|
|
1867
1991
|
/**
|
|
@@ -1883,10 +2007,14 @@ declare namespace sap {
|
|
|
1883
2007
|
): Function;
|
|
1884
2008
|
/**
|
|
1885
2009
|
* Returns a metadata object for class sap.ui.generic.app.transaction.DraftController.
|
|
2010
|
+
*
|
|
2011
|
+
* @returns Metadata object describing this class
|
|
1886
2012
|
*/
|
|
1887
2013
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1888
2014
|
/**
|
|
1889
2015
|
* Submits changes to the back-end and activates a draft entity in the back-end.
|
|
2016
|
+
*
|
|
2017
|
+
* @returns A `Promise` for asynchronous execution
|
|
1890
2018
|
*/
|
|
1891
2019
|
activateDraftEntity(
|
|
1892
2020
|
/**
|
|
@@ -1905,6 +2033,8 @@ declare namespace sap {
|
|
|
1905
2033
|
): Promise<any>;
|
|
1906
2034
|
/**
|
|
1907
2035
|
* Submits changes to the back-end and activates a draft entity in the back-end.
|
|
2036
|
+
*
|
|
2037
|
+
* @returns A `Promise` for asynchronous execution
|
|
1908
2038
|
*/
|
|
1909
2039
|
activateDraftEntity(
|
|
1910
2040
|
/**
|
|
@@ -1920,6 +2050,8 @@ declare namespace sap {
|
|
|
1920
2050
|
/**
|
|
1921
2051
|
* Creates an edit draft in the back-end. Additionally, possible changes that have been collected on the
|
|
1922
2052
|
* client are sent to the back-end.
|
|
2053
|
+
*
|
|
2054
|
+
* @returns A `Promise` for asynchronous execution
|
|
1923
2055
|
*/
|
|
1924
2056
|
createEditDraftEntity(
|
|
1925
2057
|
/**
|
|
@@ -1938,6 +2070,8 @@ declare namespace sap {
|
|
|
1938
2070
|
/**
|
|
1939
2071
|
* Creates a new edit draft on the client and sends it to the back-end. Additionally, possible changes that
|
|
1940
2072
|
* have been collected on the client are sent to the back-end.
|
|
2073
|
+
*
|
|
2074
|
+
* @returns A `Promise` for asynchronous execution of the request
|
|
1941
2075
|
*/
|
|
1942
2076
|
createNewDraftEntity(
|
|
1943
2077
|
/**
|
|
@@ -1988,6 +2122,8 @@ declare namespace sap {
|
|
|
1988
2122
|
destroy(): void;
|
|
1989
2123
|
/**
|
|
1990
2124
|
* Returns the current draft context instance. If no instance exists, it is created lazily.
|
|
2125
|
+
*
|
|
2126
|
+
* @returns The current draft context instance
|
|
1991
2127
|
*/
|
|
1992
2128
|
getDraftContext(): sap.ui.generic.app.transaction.DraftContext;
|
|
1993
2129
|
/**
|
|
@@ -1995,6 +2131,8 @@ declare namespace sap {
|
|
|
1995
2131
|
*
|
|
1996
2132
|
* Retrieves a possibly existing draft entity for the given active entity using the binding context of the
|
|
1997
2133
|
* active entity from the back-end.
|
|
2134
|
+
*
|
|
2135
|
+
* @returns A `Promise` for asynchronous execution
|
|
1998
2136
|
*/
|
|
1999
2137
|
getDraftForActiveEntity(
|
|
2000
2138
|
/**
|
|
@@ -2006,6 +2144,8 @@ declare namespace sap {
|
|
|
2006
2144
|
* @SINCE 1.32.0
|
|
2007
2145
|
*
|
|
2008
2146
|
* Checks whether an entity has an active entity associated.
|
|
2147
|
+
*
|
|
2148
|
+
* @returns `true`, if an active entity exists, `false` otherwise
|
|
2009
2149
|
*/
|
|
2010
2150
|
hasActiveEntity(
|
|
2011
2151
|
/**
|
|
@@ -2015,6 +2155,8 @@ declare namespace sap {
|
|
|
2015
2155
|
): boolean;
|
|
2016
2156
|
/**
|
|
2017
2157
|
* Checks whether an entity set is active. The entity set name is derived from the given binding context
|
|
2158
|
+
*
|
|
2159
|
+
* @returns `true`, if a given entity set is active, `false` otherwise
|
|
2018
2160
|
*/
|
|
2019
2161
|
isActiveEntity(
|
|
2020
2162
|
/**
|
|
@@ -2025,6 +2167,8 @@ declare namespace sap {
|
|
|
2025
2167
|
/**
|
|
2026
2168
|
* Submits changes to the back-end and prepares an existing draft entity in the back-end for later activation
|
|
2027
2169
|
* by invoking the preparation action.
|
|
2170
|
+
*
|
|
2171
|
+
* @returns A `Promise` for asynchronous execution
|
|
2028
2172
|
*/
|
|
2029
2173
|
prepareDraftEntity(
|
|
2030
2174
|
/**
|
|
@@ -2035,6 +2179,8 @@ declare namespace sap {
|
|
|
2035
2179
|
/**
|
|
2036
2180
|
* Submits changes to the back-end and prepares a draft entity in the back-end for later activation by invoking
|
|
2037
2181
|
* the preparation action.
|
|
2182
|
+
*
|
|
2183
|
+
* @returns A `Promise` for asynchronous execution
|
|
2038
2184
|
*/
|
|
2039
2185
|
saveAndPrepareDraftEntity(
|
|
2040
2186
|
/**
|
|
@@ -2049,6 +2195,8 @@ declare namespace sap {
|
|
|
2049
2195
|
/**
|
|
2050
2196
|
* Submits changes to the back-end and prepares an existing draft entity in the back-end for later activation
|
|
2051
2197
|
* by invoking the validation action.
|
|
2198
|
+
*
|
|
2199
|
+
* @returns A `Promise` for asynchronous execution
|
|
2052
2200
|
*/
|
|
2053
2201
|
validateDraftEntity(
|
|
2054
2202
|
/**
|
|
@@ -2099,6 +2247,8 @@ declare namespace sap {
|
|
|
2099
2247
|
* and enriches it with the information contained in `oClassInfo`.
|
|
2100
2248
|
*
|
|
2101
2249
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.generic.app.transaction.BaseController.extend}.
|
|
2250
|
+
*
|
|
2251
|
+
* @returns Created class / constructor function
|
|
2102
2252
|
*/
|
|
2103
2253
|
static extend<T extends Record<string, unknown>>(
|
|
2104
2254
|
/**
|
|
@@ -2120,6 +2270,8 @@ declare namespace sap {
|
|
|
2120
2270
|
): Function;
|
|
2121
2271
|
/**
|
|
2122
2272
|
* Returns a metadata object for class sap.ui.generic.app.transaction.TransactionController.
|
|
2273
|
+
*
|
|
2274
|
+
* @returns Metadata object describing this class
|
|
2123
2275
|
*/
|
|
2124
2276
|
static getMetadata(): sap.ui.base.Metadata;
|
|
2125
2277
|
/**
|
|
@@ -2128,6 +2280,9 @@ declare namespace sap {
|
|
|
2128
2280
|
*
|
|
2129
2281
|
* Submits changes to the backend system and deletes a group of entities in the backend system. These entities
|
|
2130
2282
|
* can be both draft or active entities.
|
|
2283
|
+
*
|
|
2284
|
+
* @returns A `Promise` that receives an array with the responses of the delete requests. The `Promise`
|
|
2285
|
+
* resolves when at least one request was successful and rejects when all delete requests have been rejected/aborted.
|
|
2131
2286
|
*/
|
|
2132
2287
|
deleteEntities(
|
|
2133
2288
|
/**
|
|
@@ -2142,6 +2297,8 @@ declare namespace sap {
|
|
|
2142
2297
|
/**
|
|
2143
2298
|
* Submits changes to the backend system and deletes an entity in the backend system. This entity can be
|
|
2144
2299
|
* either a draft or an active entity.
|
|
2300
|
+
*
|
|
2301
|
+
* @returns A `Promise` for asynchronous execution
|
|
2145
2302
|
*/
|
|
2146
2303
|
deleteEntity(
|
|
2147
2304
|
/**
|
|
@@ -2160,6 +2317,8 @@ declare namespace sap {
|
|
|
2160
2317
|
/**
|
|
2161
2318
|
* Prepares an entity for editing. If the entity is active and draft enabled, a new draft document is created.
|
|
2162
2319
|
* If not, the control is automatically returned to the caller of the method by returning a resolved promise.
|
|
2320
|
+
*
|
|
2321
|
+
* @returns A `Promise` for asynchronous execution
|
|
2163
2322
|
*/
|
|
2164
2323
|
editEntity(
|
|
2165
2324
|
/**
|
|
@@ -2177,6 +2336,8 @@ declare namespace sap {
|
|
|
2177
2336
|
): Promise<any>;
|
|
2178
2337
|
/**
|
|
2179
2338
|
* Returns the current draft controller instance.
|
|
2339
|
+
*
|
|
2340
|
+
* @returns The draft controller instance
|
|
2180
2341
|
*/
|
|
2181
2342
|
getDraftController(): sap.ui.generic.app.transaction.DraftController;
|
|
2182
2343
|
/**
|
|
@@ -2186,6 +2347,9 @@ declare namespace sap {
|
|
|
2186
2347
|
resetChanges(): void;
|
|
2187
2348
|
/**
|
|
2188
2349
|
* Multi edit handling.
|
|
2350
|
+
*
|
|
2351
|
+
* @returns A `Promise` which resolves if the given promises have been executed with at least one successfully.
|
|
2352
|
+
* It rejects if all given promises were rejected.
|
|
2189
2353
|
*/
|
|
2190
2354
|
updateMultipleEntities(
|
|
2191
2355
|
/**
|
|
@@ -2223,6 +2387,8 @@ declare namespace sap {
|
|
|
2223
2387
|
* it with the information contained in `oClassInfo`.
|
|
2224
2388
|
*
|
|
2225
2389
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.generic.app.transaction.BaseController.extend}.
|
|
2390
|
+
*
|
|
2391
|
+
* @returns Created class / constructor function
|
|
2226
2392
|
*/
|
|
2227
2393
|
static extend<T extends Record<string, unknown>>(
|
|
2228
2394
|
/**
|
|
@@ -2244,6 +2410,8 @@ declare namespace sap {
|
|
|
2244
2410
|
): Function;
|
|
2245
2411
|
/**
|
|
2246
2412
|
* Returns a metadata object for class sap.ui.generic.app.ApplicationController.
|
|
2413
|
+
*
|
|
2414
|
+
* @returns Metadata object describing this class
|
|
2247
2415
|
*/
|
|
2248
2416
|
static getMetadata(): sap.ui.base.Metadata;
|
|
2249
2417
|
/**
|
|
@@ -2257,6 +2425,9 @@ declare namespace sap {
|
|
|
2257
2425
|
* or entities are passed the unspecified side effect is executed. This unspecified side effect uses either
|
|
2258
2426
|
* the annotated targets of the unspecified side effect or - in case of no available annotation - triggers
|
|
2259
2427
|
* a complete model refresh on the OData model.
|
|
2428
|
+
*
|
|
2429
|
+
* @returns A `Promise` for asynchronous execution of the action. The promise is either already resolved
|
|
2430
|
+
* (when nothing needs to be processed) or resolves when the `triggerSubmitChanges()` has been executed.
|
|
2260
2431
|
*/
|
|
2261
2432
|
executeSideEffects(
|
|
2262
2433
|
/**
|
|
@@ -2282,6 +2453,10 @@ declare namespace sap {
|
|
|
2282
2453
|
* @EXPERIMENTAL
|
|
2283
2454
|
*
|
|
2284
2455
|
* Creates a context for an action call (OData function import)
|
|
2456
|
+
*
|
|
2457
|
+
* @returns A `map` that contains two Promises: `context` which provides the action-specific model context
|
|
2458
|
+
* to the resolve function `result` which resolves when the success handler is called and rejects when the
|
|
2459
|
+
* error handler is called; The result of the promises is noramlized in both cases, error and success.
|
|
2285
2460
|
*/
|
|
2286
2461
|
getNewActionContext(
|
|
2287
2462
|
/**
|
|
@@ -2299,11 +2474,15 @@ declare namespace sap {
|
|
|
2299
2474
|
): Record<string, any>;
|
|
2300
2475
|
/**
|
|
2301
2476
|
* Returns the current transaction controller instance.
|
|
2477
|
+
*
|
|
2478
|
+
* @returns The transaction controller instance
|
|
2302
2479
|
*/
|
|
2303
2480
|
getTransactionController(): sap.ui.generic.app.transaction.TransactionController;
|
|
2304
2481
|
/**
|
|
2305
2482
|
* Invokes an action for every provided context where the properties are taken as input from. The changes
|
|
2306
2483
|
* are submitted directly to the back-end.
|
|
2484
|
+
*
|
|
2485
|
+
* @returns A `Promise` for asynchronous execution of the action
|
|
2307
2486
|
*/
|
|
2308
2487
|
invokeActions(
|
|
2309
2488
|
/**
|
|
@@ -2331,6 +2510,8 @@ declare namespace sap {
|
|
|
2331
2510
|
*
|
|
2332
2511
|
* Notifies the application controller of a change of a property. Please note that the method is not meant
|
|
2333
2512
|
* for productive use currently. It is experimental.
|
|
2513
|
+
*
|
|
2514
|
+
* @returns A `Promise` for asynchronous execution of the action
|
|
2334
2515
|
*/
|
|
2335
2516
|
propertyChanged(
|
|
2336
2517
|
/**
|