@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.
Files changed (62) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +1 -0
  3. package/types/sap.apf.d.ts +89 -1
  4. package/types/sap.ca.ui.d.ts +1757 -134
  5. package/types/sap.chart.d.ts +376 -30
  6. package/types/sap.collaboration.d.ts +320 -40
  7. package/types/sap.esh.search.ui.d.ts +1 -669
  8. package/types/sap.f.d.ts +1948 -123
  9. package/types/sap.fe.common.d.ts +1 -1
  10. package/types/sap.fe.core.d.ts +29 -1091
  11. package/types/sap.fe.macros.d.ts +58 -589
  12. package/types/sap.fe.navigation.d.ts +7 -1175
  13. package/types/sap.fe.templates.d.ts +2 -140
  14. package/types/sap.fe.test.d.ts +476 -213
  15. package/types/sap.feedback.ui.d.ts +1 -1
  16. package/types/sap.gantt.d.ts +7540 -559
  17. package/types/sap.insights.d.ts +21 -0
  18. package/types/sap.landvisz.d.ts +1029 -80
  19. package/types/sap.m.d.ts +17162 -1399
  20. package/types/sap.makit.d.ts +579 -58
  21. package/types/sap.me.d.ts +579 -52
  22. package/types/sap.ndc.d.ts +137 -7
  23. package/types/sap.ovp.d.ts +5 -1
  24. package/types/sap.rules.ui.d.ts +171 -15
  25. package/types/sap.sac.df.d.ts +1629 -252
  26. package/types/sap.sac.grid.d.ts +91 -8
  27. package/types/sap.suite.ui.commons.d.ts +5573 -454
  28. package/types/sap.suite.ui.generic.template.d.ts +228 -54
  29. package/types/sap.suite.ui.microchart.d.ts +1814 -173
  30. package/types/sap.tnt.d.ts +282 -22
  31. package/types/sap.ui.codeeditor.d.ts +89 -8
  32. package/types/sap.ui.commons.d.ts +3818 -347
  33. package/types/sap.ui.comp.d.ts +3965 -303
  34. package/types/sap.ui.core.d.ts +6395 -258
  35. package/types/sap.ui.dt.d.ts +1 -1
  36. package/types/sap.ui.export.d.ts +61 -6
  37. package/types/sap.ui.fl.d.ts +3 -1
  38. package/types/sap.ui.generic.app.d.ts +245 -64
  39. package/types/sap.ui.generic.template.d.ts +1 -1
  40. package/types/sap.ui.integration.d.ts +318 -25
  41. package/types/sap.ui.layout.d.ts +1883 -239
  42. package/types/sap.ui.mdc.d.ts +1 -1
  43. package/types/sap.ui.richtexteditor.d.ts +341 -50
  44. package/types/sap.ui.rta.d.ts +5 -1
  45. package/types/sap.ui.suite.d.ts +87 -6
  46. package/types/sap.ui.support.d.ts +30 -1
  47. package/types/sap.ui.table.d.ts +1057 -87
  48. package/types/sap.ui.testrecorder.d.ts +1 -1
  49. package/types/sap.ui.unified.d.ts +2738 -236
  50. package/types/sap.ui.ux3.d.ts +2421 -223
  51. package/types/sap.ui.vbm.d.ts +2006 -126
  52. package/types/sap.ui.vk.d.ts +5369 -326
  53. package/types/sap.ui.vtm.d.ts +1144 -52
  54. package/types/sap.uiext.inbox.d.ts +425 -24
  55. package/types/sap.ushell.d.ts +1500 -59
  56. package/types/sap.ushell_abap.d.ts +4 -1
  57. package/types/sap.uxap.d.ts +914 -99
  58. package/types/sap.viz.d.ts +5521 -387
  59. package/types/sap.webanalytics.core.d.ts +1 -1
  60. package/types/sap.zen.commons.d.ts +168 -23
  61. package/types/sap.zen.crosstab.d.ts +217 -21
  62. package/types/sap.zen.dsh.d.ts +227 -14
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.101.1
1
+ // For Library Version: 1.103.0
2
2
 
3
3
  declare namespace sap {
4
4
  namespace suite {
@@ -22,6 +22,8 @@ declare namespace sap {
22
22
  * with name `sClassName` and enriches it with the information contained in `oClassInfo`.
23
23
  *
24
24
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
25
+ *
26
+ * @returns Created class / constructor function
25
27
  */
26
28
  static extend<T extends Record<string, unknown>>(
27
29
  /**
@@ -43,6 +45,8 @@ declare namespace sap {
43
45
  ): Function;
44
46
  /**
45
47
  * Returns a metadata object for class sap.suite.ui.generic.template.AnalyticalListPage.extensionAPI.ExtensionAPI.
48
+ *
49
+ * @returns Metadata object describing this class
46
50
  */
47
51
  static getMetadata(): sap.ui.base.Metadata;
48
52
  /**
@@ -58,14 +62,20 @@ declare namespace sap {
58
62
  ): void;
59
63
  /**
60
64
  * provides incoming navigation context of the app
65
+ *
66
+ * @returns Navigation context object
61
67
  */
62
68
  getNavigationContext(): Object;
63
69
  /**
64
70
  * Get the navigation controller for navigation actions
71
+ *
72
+ * @returns the navigation controller
65
73
  */
66
74
  getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
67
75
  /**
68
76
  * Get the list entries currently selected
77
+ *
78
+ * @returns contains the entries selected
69
79
  */
70
80
  getSelectedContexts(
71
81
  /**
@@ -96,6 +106,9 @@ declare namespace sap {
96
106
  * are fulfilled.
97
107
  * See:
98
108
  * {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}
109
+ *
110
+ * @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
111
+ * returned by fnFunction.
99
112
  */
100
113
  securedExecution(
101
114
  /**
@@ -150,46 +163,36 @@ declare namespace sap {
150
163
  }
151
164
  ): Promise<any>;
152
165
  /**
153
- * Provide an option for showing an own message in the message bar above the LR table
166
+ * Provide an option for showing an own message in the message bar above the ALP table
154
167
  */
155
168
  setCustomMessage(
156
169
  /**
157
- * the entitySet identifying the table to set custom message
158
- */
159
- vTabKey: any[] | string,
160
- /**
161
- * custom message along with type to set on table
170
+ * custom message along with type to set on table. If this parameter is faulty an existing message will
171
+ * be removed.
162
172
  */
163
- oMessage: {
173
+ oMessage?: {
164
174
  /**
165
175
  * message string to display
166
176
  */
167
- message?: string;
177
+ message: string;
168
178
  /**
169
179
  * indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
170
180
  * sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
171
181
  */
172
- type?: string;
173
- }
174
- ): void;
175
- /**
176
- * Provide an option for showing an own message in the message bar above the LR table
177
- */
178
- setCustomMessage(
182
+ type: string;
183
+ },
179
184
  /**
180
- * custom message along with type to set on table
185
+ * If switching between different table views is enabled, this parameter can be used to identify the views
186
+ * which are affected by this call. Faulty values indicate that all views should be affected. Otherwise
187
+ * the value should either be one string or an array of strings identifying the affected variant items.
181
188
  */
182
- oMessage: {
183
- /**
184
- * message string to display
185
- */
186
- message?: string;
187
- /**
188
- * indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
189
- * sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
190
- */
191
- type?: string;
192
- }
189
+ vTabKey?: any[] | string,
190
+ /**
191
+ * A function that is called when the user closes the message bar. Note that the messages for all tabs specified
192
+ * via `vTabKey` will be considered to be obsolete when the user closes the message bar while one of them
193
+ * is active.
194
+ */
195
+ onClose?: Function
193
196
  ): void;
194
197
  }
195
198
  }
@@ -245,6 +248,9 @@ declare namespace sap {
245
248
  * return an array of all selection fields set on SmartFilterBar using custom code as default and doesn't
246
249
  * really want to store as part of the AppState. SAP Fiori elements framework will remove these filter properties
247
250
  * from the selection variant.
251
+ *
252
+ * @returns - Properties which are visible and should not be stored as part of the selection variant in
253
+ * the AppState
248
254
  */
249
255
  getVisibleSelectionsWithDefaults(): any[];
250
256
  /**
@@ -417,6 +423,10 @@ declare namespace sap {
417
423
  * This method is called when the user leaves the app and this page has been displayed within the same app
418
424
  * session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
419
425
  * that have been displayed within some app session when the app is finally destroyed.
426
+ *
427
+ * @returns - Only relevant in case that `isDestroyed` is false. In this case Application developers can
428
+ * provide a function to be called when the same page is opened again (after the user has navigated back
429
+ * to the app).
420
430
  */
421
431
  onLeaveAppExtension(
422
432
  /**
@@ -430,6 +440,9 @@ declare namespace sap {
430
440
  * developers can override this method and perform conditional (internal or external) navigation from different
431
441
  * rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
432
442
  * NavigationController}.
443
+ *
444
+ * @returns Method should return `true` if framework navigation should be suppressed (that means: extension
445
+ * code has taken over navigation)
433
446
  */
434
447
  onListNavigationExtension(
435
448
  /**
@@ -493,6 +506,8 @@ declare namespace sap {
493
506
  * `sClassName` and enriches it with the information contained in `oClassInfo`.
494
507
  *
495
508
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
509
+ *
510
+ * @returns Created class / constructor function
496
511
  */
497
512
  static extend<T extends Record<string, unknown>>(
498
513
  /**
@@ -514,6 +529,8 @@ declare namespace sap {
514
529
  ): Function;
515
530
  /**
516
531
  * Returns a metadata object for class sap.suite.ui.generic.template.Canvas.extensionAPI.ExtensionAPI.
532
+ *
533
+ * @returns Metadata object describing this class
517
534
  */
518
535
  static getMetadata(): sap.ui.base.Metadata;
519
536
  /**
@@ -565,21 +582,30 @@ declare namespace sap {
565
582
  ): void;
566
583
  /**
567
584
  * Get the Flexible Column Layout Action Buttons(Fullscreen, Exit Fullscreen and Close).
585
+ *
586
+ * @returns Flexible Column Layout Action Buttons
568
587
  */
569
588
  getFlexibleColumnLayoutActionButtons(): object;
570
589
  /**
571
590
  * Get the navigation controller for navigation actions
591
+ *
592
+ * @returns the navigation controller
572
593
  */
573
594
  getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
574
595
  /**
575
596
  * Get the transaction controller for editing actions on the page. Note that the methods provided by this
576
597
  * transaction controller depend on whether the object supports drafts or not.
598
+ *
599
+ * @returns the transaction controller
577
600
  */
578
601
  getTransactionController():
579
602
  | sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController
580
603
  | sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController;
581
604
  /**
582
605
  * Invokes multiple time the action with the given name and submits changes to the back-end.
606
+ *
607
+ * @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
608
+ * returned from {@link sap.ui.generic.app.ApplicationController}
583
609
  */
584
610
  invokeActions(
585
611
  /**
@@ -607,6 +633,9 @@ declare namespace sap {
607
633
  ): Promise<any>;
608
634
  /**
609
635
  * Invokes multiple time the action with the given name and submits changes to the back-end.
636
+ *
637
+ * @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
638
+ * returned from {@link sap.ui.generic.app.ApplicationController}
610
639
  */
611
640
  invokeActions(
612
641
  /**
@@ -659,6 +688,9 @@ declare namespace sap {
659
688
  * are fulfilled.
660
689
  * See:
661
690
  * {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}
691
+ *
692
+ * @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
693
+ * returned by fnFunction.
662
694
  */
663
695
  securedExecution(
664
696
  /**
@@ -736,6 +768,8 @@ declare namespace sap {
736
768
  * });
737
769
  * ...
738
770
  * });`
771
+ *
772
+ * @returns A `Promise` which resolves to the extension API for the embedding SAP Fiori elements view
739
773
  */
740
774
  getExtensionAPIPromise(
741
775
  /**
@@ -837,6 +871,8 @@ declare namespace sap {
837
871
  * name `sClassName` and enriches it with the information contained in `oClassInfo`.
838
872
  *
839
873
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
874
+ *
875
+ * @returns Created class / constructor function
840
876
  */
841
877
  static extend<T extends Record<string, unknown>>(
842
878
  /**
@@ -858,6 +894,8 @@ declare namespace sap {
858
894
  ): Function;
859
895
  /**
860
896
  * Returns a metadata object for class sap.suite.ui.generic.template.extensionAPI.NavigationController.
897
+ *
898
+ * @returns Metadata object describing this class
861
899
  */
862
900
  static getMetadata(): sap.ui.base.Metadata;
863
901
  /**
@@ -926,6 +964,8 @@ declare namespace sap {
926
964
  * name `sClassName` and enriches it with the information contained in `oClassInfo`.
927
965
  *
928
966
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
967
+ *
968
+ * @returns Created class / constructor function
929
969
  */
930
970
  static extend<T extends Record<string, unknown>>(
931
971
  /**
@@ -947,6 +987,8 @@ declare namespace sap {
947
987
  ): Function;
948
988
  /**
949
989
  * Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.
990
+ *
991
+ * @returns Metadata object describing this class
950
992
  */
951
993
  static getMetadata(): sap.ui.base.Metadata;
952
994
  /**
@@ -962,25 +1004,36 @@ declare namespace sap {
962
1004
  ): void;
963
1005
  /**
964
1006
  * Get the navigation controller for navigation actions
1007
+ *
1008
+ * @returns the navigation controller
965
1009
  */
966
1010
  getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
967
1011
  /**
968
1012
  * @EXPERIMENTAL
969
1013
  *
970
1014
  * If switching between different table views is enabled, this function returns the selected key.
1015
+ *
1016
+ * @returns The key of the variant item that is currently selected.
971
1017
  */
972
1018
  getQuickVariantSelectionKey(): string;
973
1019
  /**
974
1020
  * Get the list entries currently selected for smart table
1021
+ *
1022
+ * @returns contains one entry per line selected
975
1023
  */
976
1024
  getSelectedContexts(): sap.ui.model.Context[];
977
1025
  /**
978
1026
  * Get the transaction controller for editing actions on the list. Note: Currently implemented for non draft
979
1027
  * case
1028
+ *
1029
+ * @returns the transaction controller
980
1030
  */
981
1031
  getTransactionController(): sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController;
982
1032
  /**
983
1033
  * Invokes multiple time the action with the given name and submits changes to the back-end.
1034
+ *
1035
+ * @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
1036
+ * returned from {@link sap.ui.generic.app.ApplicationController}
984
1037
  */
985
1038
  invokeActions(
986
1039
  /**
@@ -1008,6 +1061,9 @@ declare namespace sap {
1008
1061
  ): Promise<any>;
1009
1062
  /**
1010
1063
  * Invokes multiple time the action with the given name and submits changes to the back-end.
1064
+ *
1065
+ * @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
1066
+ * returned from {@link sap.ui.generic.app.ApplicationController}
1011
1067
  */
1012
1068
  invokeActions(
1013
1069
  /**
@@ -1062,6 +1118,9 @@ declare namespace sap {
1062
1118
  /**
1063
1119
  * Secured execution of the given function. Ensures that the function is only executed when certain conditions
1064
1120
  * are fulfilled. For more information, see {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}.
1121
+ *
1122
+ * @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
1123
+ * returned by fnFunction.
1065
1124
  */
1066
1125
  securedExecution(
1067
1126
  /**
@@ -1120,42 +1179,32 @@ declare namespace sap {
1120
1179
  */
1121
1180
  setCustomMessage(
1122
1181
  /**
1123
- * the entitySet identifying the table to set custom message
1124
- */
1125
- vTabKey: any[] | string,
1126
- /**
1127
- * custom message along with type to set on table
1182
+ * custom message along with type to set on table. If this parameter is faulty an existing message will
1183
+ * be removed.
1128
1184
  */
1129
- oMessage: {
1185
+ oMessage?: {
1130
1186
  /**
1131
1187
  * message string to display
1132
1188
  */
1133
- message?: string;
1189
+ message: string;
1134
1190
  /**
1135
1191
  * indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
1136
1192
  * sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
1137
1193
  */
1138
- type?: string;
1139
- }
1140
- ): void;
1141
- /**
1142
- * Provide an option for showing an own message in the message bar above the LR table
1143
- */
1144
- setCustomMessage(
1194
+ type: string;
1195
+ },
1145
1196
  /**
1146
- * custom message along with type to set on table
1197
+ * If switching between different table views is enabled, this parameter can be used to identify the views
1198
+ * which are affected by this call. Faulty values indicate that all views should be affected. Otherwise
1199
+ * the value should either be one string or an array of strings identifying the affected variant items.
1147
1200
  */
1148
- oMessage: {
1149
- /**
1150
- * message string to display
1151
- */
1152
- message?: string;
1153
- /**
1154
- * indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
1155
- * sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
1156
- */
1157
- type?: string;
1158
- }
1201
+ vTabKey?: any[] | string,
1202
+ /**
1203
+ * A function that is called when the user closes the message bar. Note that the messages for all tabs specified
1204
+ * via `vTabKey` will be considered to be obsolete when the user closes the message bar while one of them
1205
+ * is active.
1206
+ */
1207
+ onClose?: Function
1159
1208
  ): void;
1160
1209
  /**
1161
1210
  * @EXPERIMENTAL
@@ -1184,6 +1233,8 @@ declare namespace sap {
1184
1233
  * with name `sClassName` and enriches it with the information contained in `oClassInfo`.
1185
1234
  *
1186
1235
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
1236
+ *
1237
+ * @returns Created class / constructor function
1187
1238
  */
1188
1239
  static extend<T extends Record<string, unknown>>(
1189
1240
  /**
@@ -1205,6 +1256,8 @@ declare namespace sap {
1205
1256
  ): Function;
1206
1257
  /**
1207
1258
  * Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.
1259
+ *
1260
+ * @returns Metadata object describing this class
1208
1261
  */
1209
1262
  static getMetadata(): sap.ui.base.Metadata;
1210
1263
  /**
@@ -1213,6 +1266,9 @@ declare namespace sap {
1213
1266
  cancel(): void;
1214
1267
  /**
1215
1268
  * This method can be called when a new entry with predefined values should be created (e.g. in a copy scenario).
1269
+ *
1270
+ * @returns a context representing the object to be created. It can be passed to {@link sap.suite.ui.generic.template.extensionAPI.NavigationController#navigateInternal}
1271
+ * in order to visit the corresponding object page.
1216
1272
  */
1217
1273
  createEntry(
1218
1274
  /**
@@ -1239,6 +1295,8 @@ declare namespace sap {
1239
1295
  * Save the changes which have been applied to the OData model. Sets the application busy during execution
1240
1296
  * and doesn't execute if application is already busy when called (i.e. don't use `ExtensionAPI.securedExecution`
1241
1297
  * to call this method).
1298
+ *
1299
+ * @returns is resolved when entry is successfully saved and rejected when saving fails
1242
1300
  */
1243
1301
  save(): Promise<any>;
1244
1302
  }
@@ -1305,6 +1363,8 @@ declare namespace sap {
1305
1363
  * can override this method in controller extension & perform additional checks before executing the delete
1306
1364
  * operation. Method is expected to return a Promise. To veto the delete operation, promise needs to be
1307
1365
  * rejected else resolved.
1366
+ *
1367
+ * @returns - Promise object created by the extension, used for Delete operation chaining
1308
1368
  */
1309
1369
  beforeDeleteExtension(
1310
1370
  /**
@@ -1323,6 +1383,9 @@ declare namespace sap {
1323
1383
  * based on whose resolution or rejection the framework would perform cleanup tasks like closing the dialog
1324
1384
  * and refreshing the table data.There will be no chaining of multi edit save from the framework, if the
1325
1385
  * extension is implemented then the framework will only execute extension code for save.
1386
+ *
1387
+ * @returns - Promise object created by the extension, used for cleanup after the promise is resolved or
1388
+ * rejected.
1326
1389
  */
1327
1390
  beforeMultiEditSaveExtension(
1328
1391
  /**
@@ -1374,6 +1437,8 @@ declare namespace sap {
1374
1437
  * as a parameter to the method. Application developers can access the properties, values and add it to
1375
1438
  * the returning object map. Application developers will have complete control on properties passed to the
1376
1439
  * new instance creation.
1440
+ *
1441
+ * @returns Key/Value map of the properties
1377
1442
  */
1378
1443
  getPredefinedValuesForCreateExtension(
1379
1444
  /**
@@ -1506,6 +1571,10 @@ declare namespace sap {
1506
1571
  * This method is called when the user leaves the app and this page has been displayed within the same app
1507
1572
  * session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
1508
1573
  * that have been displayed within some app session when the app is finally destroyed.
1574
+ *
1575
+ * @returns - Only relevant in case that `isDestroyed` is false. In this case Application developers can
1576
+ * provide a function to be called when the same page is opened again (after the user has navigated back
1577
+ * to the app).
1509
1578
  */
1510
1579
  onLeaveAppExtension(
1511
1580
  /**
@@ -1519,6 +1588,9 @@ declare namespace sap {
1519
1588
  * developers can override this method and perform conditional (internal or external) navigation from different
1520
1589
  * rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
1521
1590
  * NavigationController}.
1591
+ *
1592
+ * @returns Method should return `true` if framework navigation should be suppressed (that means: extension
1593
+ * code has taken over navigation)
1522
1594
  */
1523
1595
  onListNavigationExtension(
1524
1596
  /**
@@ -1592,6 +1664,8 @@ declare namespace sap {
1592
1664
  * with name `sClassName` and enriches it with the information contained in `oClassInfo`.
1593
1665
  *
1594
1666
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
1667
+ *
1668
+ * @returns Created class / constructor function
1595
1669
  */
1596
1670
  static extend<T extends Record<string, unknown>>(
1597
1671
  /**
@@ -1613,6 +1687,8 @@ declare namespace sap {
1613
1687
  ): Function;
1614
1688
  /**
1615
1689
  * Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController.
1690
+ *
1691
+ * @returns Metadata object describing this class
1616
1692
  */
1617
1693
  static getMetadata(): sap.ui.base.Metadata;
1618
1694
  /**
@@ -1685,6 +1761,8 @@ declare namespace sap {
1685
1761
  * which follows the cancellation of a draft is executed. Moreover, note that executing this method will
1686
1762
  * set the App to be busy. However, it does not ensure, that the method is only called, when the App is
1687
1763
  * currently unbusy. If you want to ensure that, you have to use {@link sap.suite.ui.generic.template.ObjectPage.extensionAPI.ExtensionAPI#securedExecution}.
1764
+ *
1765
+ * @returns a promise that is resolved when the draft is cancelled, rejected when this is not possible.
1688
1766
  */
1689
1767
  discardDraft(): Function;
1690
1768
  /**
@@ -1741,6 +1819,8 @@ declare namespace sap {
1741
1819
  * name `sClassName` and enriches it with the information contained in `oClassInfo`.
1742
1820
  *
1743
1821
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
1822
+ *
1823
+ * @returns Created class / constructor function
1744
1824
  */
1745
1825
  static extend<T extends Record<string, unknown>>(
1746
1826
  /**
@@ -1762,6 +1842,8 @@ declare namespace sap {
1762
1842
  ): Function;
1763
1843
  /**
1764
1844
  * Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.ExtensionAPI.
1845
+ *
1846
+ * @returns Metadata object describing this class
1765
1847
  */
1766
1848
  static getMetadata(): sap.ui.base.Metadata;
1767
1849
  /**
@@ -1798,12 +1880,16 @@ declare namespace sap {
1798
1880
  ): void;
1799
1881
  /**
1800
1882
  * Get the navigation controller for navigation actions
1883
+ *
1884
+ * @returns the navigation controller
1801
1885
  */
1802
1886
  getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
1803
1887
  /**
1804
1888
  * @EXPERIMENTAL
1805
1889
  *
1806
1890
  * This function returns the selected key of selected table of Object Page.
1891
+ *
1892
+ * @returns The key of variant item that is currently selected section.
1807
1893
  */
1808
1894
  getQuickVariantSelectionKey(
1809
1895
  /**
@@ -1813,6 +1899,8 @@ declare namespace sap {
1813
1899
  ): string;
1814
1900
  /**
1815
1901
  * Get the entries currently selected in one ui element (table, chart, or list)
1902
+ *
1903
+ * @returns contains one entry per entry selected
1816
1904
  */
1817
1905
  getSelectedContexts(
1818
1906
  /**
@@ -1823,16 +1911,23 @@ declare namespace sap {
1823
1911
  /**
1824
1912
  * Get the transaction controller for editing actions on the page. Note that the methods provided by this
1825
1913
  * transaction controller depend on whether the object supports drafts or not.
1914
+ *
1915
+ * @returns the transaction controller
1826
1916
  */
1827
1917
  getTransactionController():
1828
1918
  | sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController
1829
1919
  | sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController;
1830
1920
  /**
1831
1921
  * Get the id of the view this extension api belongs to
1922
+ *
1923
+ * @returns the view id
1832
1924
  */
1833
1925
  getViewId(): string;
1834
1926
  /**
1835
1927
  * Invokes multiple time the action with the given name and submits changes to the back-end.
1928
+ *
1929
+ * @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
1930
+ * returned from {@link sap.ui.generic.app.ApplicationController}
1836
1931
  */
1837
1932
  invokeActions(
1838
1933
  /**
@@ -1860,6 +1955,9 @@ declare namespace sap {
1860
1955
  ): Promise<any>;
1861
1956
  /**
1862
1957
  * Invokes multiple time the action with the given name and submits changes to the back-end.
1958
+ *
1959
+ * @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
1960
+ * returned from {@link sap.ui.generic.app.ApplicationController}
1863
1961
  */
1864
1962
  invokeActions(
1865
1963
  /**
@@ -1886,6 +1984,9 @@ declare namespace sap {
1886
1984
  * the corresponding state can be stored and restored.
1887
1985
  * See:
1888
1986
  * {@link topic:89fa878945294931b15a581a99043005 Custom State Handling for Extended Apps}
1987
+ *
1988
+ * @returns A `Promise` that is resolved when the changed state is transferred to the URL and the corresponding
1989
+ * busy session is ended.
1889
1990
  */
1890
1991
  onCustomStateChange(): Promise<any>;
1891
1992
  /**
@@ -1933,6 +2034,9 @@ declare namespace sap {
1933
2034
  * are fulfilled.
1934
2035
  * See:
1935
2036
  * {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}
2037
+ *
2038
+ * @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
2039
+ * returned by fnFunction.
1936
2040
  */
1937
2041
  securedExecution(
1938
2042
  /**
@@ -1986,6 +2090,56 @@ declare namespace sap {
1986
2090
  sActionLabel?: string;
1987
2091
  }
1988
2092
  ): Promise<any>;
2093
+ /**
2094
+ * Provide an option for showing an own message in the message bar above the OP table
2095
+ */
2096
+ setCustomMessage(
2097
+ /**
2098
+ * the entitySet identifying the table to set custom message
2099
+ */
2100
+ vTabKey: any[] | string,
2101
+ /**
2102
+ * custom message along with type to set on table
2103
+ */
2104
+ oMessage: {
2105
+ /**
2106
+ * message string to display
2107
+ */
2108
+ message?: string;
2109
+ /**
2110
+ * indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
2111
+ * sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
2112
+ */
2113
+ type?: string;
2114
+ },
2115
+ /**
2116
+ * Id of the table for which message should be set
2117
+ */
2118
+ sSmartTableId: string
2119
+ ): void;
2120
+ /**
2121
+ * Provide an option for showing an own message in the message bar above the OP table
2122
+ */
2123
+ setCustomMessage(
2124
+ /**
2125
+ * custom message along with type to set on table
2126
+ */
2127
+ oMessage: {
2128
+ /**
2129
+ * message string to display
2130
+ */
2131
+ message?: string;
2132
+ /**
2133
+ * indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
2134
+ * sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
2135
+ */
2136
+ type?: string;
2137
+ },
2138
+ /**
2139
+ * Id of the table for which message should be set
2140
+ */
2141
+ sSmartTableId: string
2142
+ ): void;
1989
2143
  /**
1990
2144
  * @EXPERIMENTAL
1991
2145
  *
@@ -2015,6 +2169,8 @@ declare namespace sap {
2015
2169
  * with name `sClassName` and enriches it with the information contained in `oClassInfo`.
2016
2170
  *
2017
2171
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
2172
+ *
2173
+ * @returns Created class / constructor function
2018
2174
  */
2019
2175
  static extend<T extends Record<string, unknown>>(
2020
2176
  /**
@@ -2036,6 +2192,8 @@ declare namespace sap {
2036
2192
  ): Function;
2037
2193
  /**
2038
2194
  * Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController.
2195
+ *
2196
+ * @returns Metadata object describing this class
2039
2197
  */
2040
2198
  static getMetadata(): sap.ui.base.Metadata;
2041
2199
  /**
@@ -2076,6 +2234,9 @@ declare namespace sap {
2076
2234
  ): void;
2077
2235
  /**
2078
2236
  * This method can be called when a new entry with predefined values should be created (e.g. in a copy scenario).
2237
+ *
2238
+ * @returns a context representing the object to be created. It can be passed to {@link sap.suite.ui.generic.template.extensionAPI.NavigationController#navigateInternal}
2239
+ * in order to visit the corresponding object page.
2079
2240
  */
2080
2241
  createEntry(
2081
2242
  /**
@@ -2186,6 +2347,8 @@ declare namespace sap {
2186
2347
  * developers can override this method & perform additional checks before executing the delete operation.
2187
2348
  * Method is expected to return a Promise. To veto the delete operation, promise needs to be rejected else
2188
2349
  * resolved.
2350
+ *
2351
+ * @returns Promise object created by the extension, used for delete operation chaining
2189
2352
  */
2190
2353
  beforeDeleteExtension(): Promise<any>;
2191
2354
  /**
@@ -2195,6 +2358,8 @@ declare namespace sap {
2195
2358
  * resolved. In case the extension code wants to veto the Delete operation, promise needs to be rejected.
2196
2359
  * Application developers can use `sUiElementId` property of the object passed as param to identify the
2197
2360
  * smart table where the Delete operation is being triggered.
2361
+ *
2362
+ * @returns Promise object created by the extension, used for Delete operation chaining
2198
2363
  */
2199
2364
  beforeLineItemDeleteExtension(
2200
2365
  /**
@@ -2216,6 +2381,8 @@ declare namespace sap {
2216
2381
  * this method & perform additional checks before executing the Save operation. Method is expected to return
2217
2382
  * a Promise. Save operation will be continued only once the promise is resolved. In case the extension
2218
2383
  * code would like to veto the Save operation, promise needs to be rejected.
2384
+ *
2385
+ * @returns Promise object created by the extension, used for Save operation chaining
2219
2386
  */
2220
2387
  beforeSaveExtension(): Promise<any>;
2221
2388
  /**
@@ -2271,6 +2438,10 @@ declare namespace sap {
2271
2438
  * This method is called when the user leaves the app and this page has been displayed within the same app
2272
2439
  * session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
2273
2440
  * that have been displayed within some app session when the app is finally destroyed.
2441
+ *
2442
+ * @returns - Only relevant in case that `isDestroyed` is false. In this case Application developers can
2443
+ * provide a function to be called when the same page is opened again (after the user has navigated back
2444
+ * to the app).
2274
2445
  */
2275
2446
  onLeaveAppExtension(
2276
2447
  /**
@@ -2284,6 +2455,9 @@ declare namespace sap {
2284
2455
  * developers can override this method and perform conditional (internal or external) navigation from different
2285
2456
  * rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
2286
2457
  * NavigationController}.
2458
+ *
2459
+ * @returns Method should return `true` if framework navigation should be suppressed (that means: extension
2460
+ * code has taken over navigation)
2287
2461
  */
2288
2462
  onListNavigationExtension(
2289
2463
  /**