@sapui5/ts-types 1.101.1 → 1.102.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 +1747 -124
- package/types/sap.chart.d.ts +375 -29
- package/types/sap.collaboration.d.ts +320 -40
- package/types/sap.esh.search.ui.d.ts +1 -669
- package/types/sap.f.d.ts +1785 -100
- package/types/sap.fe.common.d.ts +1 -1
- package/types/sap.fe.core.d.ts +70 -2
- package/types/sap.fe.macros.d.ts +78 -34
- package/types/sap.fe.navigation.d.ts +144 -4
- package/types/sap.fe.templates.d.ts +26 -5
- package/types/sap.fe.test.d.ts +497 -2
- package/types/sap.feedback.ui.d.ts +1 -1
- package/types/sap.gantt.d.ts +7203 -502
- package/types/sap.insights.d.ts +80 -0
- package/types/sap.landvisz.d.ts +1015 -66
- package/types/sap.m.d.ts +16491 -1149
- package/types/sap.makit.d.ts +575 -54
- package/types/sap.me.d.ts +578 -51
- package/types/sap.ndc.d.ts +63 -5
- package/types/sap.ovp.d.ts +5 -6
- package/types/sap.rules.ui.d.ts +171 -15
- package/types/sap.sac.df.d.ts +1430 -215
- package/types/sap.sac.grid.d.ts +91 -8
- package/types/sap.suite.ui.commons.d.ts +5515 -396
- package/types/sap.suite.ui.generic.template.d.ts +157 -69
- package/types/sap.suite.ui.microchart.d.ts +1801 -160
- package/types/sap.tnt.d.ts +279 -19
- package/types/sap.ui.codeeditor.d.ts +89 -8
- package/types/sap.ui.commons.d.ts +3784 -313
- package/types/sap.ui.comp.d.ts +3853 -276
- package/types/sap.ui.core.d.ts +6248 -313
- 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 +1 -1
- package/types/sap.ui.generic.app.d.ts +238 -64
- package/types/sap.ui.generic.template.d.ts +1 -1
- package/types/sap.ui.integration.d.ts +316 -23
- package/types/sap.ui.layout.d.ts +1851 -199
- package/types/sap.ui.mdc.d.ts +1 -1
- package/types/sap.ui.richtexteditor.d.ts +340 -49
- 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 +1050 -80
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +2704 -202
- package/types/sap.ui.ux3.d.ts +2379 -181
- package/types/sap.ui.vbm.d.ts +2002 -197
- package/types/sap.ui.vk.d.ts +5353 -310
- package/types/sap.ui.vtm.d.ts +1130 -41
- package/types/sap.uiext.inbox.d.ts +423 -22
- package/types/sap.ushell.d.ts +1488 -49
- package/types/sap.ushell_abap.d.ts +4 -1
- package/types/sap.uxap.d.ts +902 -87
- package/types/sap.viz.d.ts +5514 -380
- package/types/sap.webanalytics.core.d.ts +1 -1
- package/types/sap.zen.commons.d.ts +165 -20
- 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.102.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,13 +163,9 @@ 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
|
|
166
|
+
* Provide an option for showing an own message in the message bar above the ALP table
|
|
154
167
|
*/
|
|
155
168
|
setCustomMessage(
|
|
156
|
-
/**
|
|
157
|
-
* the entitySet identifying the table to set custom message
|
|
158
|
-
*/
|
|
159
|
-
vTabKey: any[] | string,
|
|
160
169
|
/**
|
|
161
170
|
* custom message along with type to set on table
|
|
162
171
|
*/
|
|
@@ -170,26 +179,13 @@ declare namespace sap {
|
|
|
170
179
|
* sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
|
|
171
180
|
*/
|
|
172
181
|
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
|
+
},
|
|
179
183
|
/**
|
|
180
|
-
*
|
|
184
|
+
* If switching between different table views is enabled, this parameter can be used to identify the views
|
|
185
|
+
* which are affected by this call. Faulty values indicate that all views should be affected. Otherwise
|
|
186
|
+
* the value should either be one string or an array of strings identifying the affected variant items.
|
|
181
187
|
*/
|
|
182
|
-
|
|
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
|
-
}
|
|
188
|
+
vTabKey?: any[] | string
|
|
193
189
|
): void;
|
|
194
190
|
}
|
|
195
191
|
}
|
|
@@ -245,6 +241,9 @@ declare namespace sap {
|
|
|
245
241
|
* return an array of all selection fields set on SmartFilterBar using custom code as default and doesn't
|
|
246
242
|
* really want to store as part of the AppState. SAP Fiori elements framework will remove these filter properties
|
|
247
243
|
* from the selection variant.
|
|
244
|
+
*
|
|
245
|
+
* @returns - Properties which are visible and should not be stored as part of the selection variant in
|
|
246
|
+
* the AppState
|
|
248
247
|
*/
|
|
249
248
|
getVisibleSelectionsWithDefaults(): any[];
|
|
250
249
|
/**
|
|
@@ -417,6 +416,10 @@ declare namespace sap {
|
|
|
417
416
|
* This method is called when the user leaves the app and this page has been displayed within the same app
|
|
418
417
|
* session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
|
|
419
418
|
* that have been displayed within some app session when the app is finally destroyed.
|
|
419
|
+
*
|
|
420
|
+
* @returns - Only relevant in case that `isDestroyed` is false. In this case Application developers can
|
|
421
|
+
* provide a function to be called when the same page is opened again (after the user has navigated back
|
|
422
|
+
* to the app).
|
|
420
423
|
*/
|
|
421
424
|
onLeaveAppExtension(
|
|
422
425
|
/**
|
|
@@ -430,6 +433,9 @@ declare namespace sap {
|
|
|
430
433
|
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
431
434
|
* rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
|
|
432
435
|
* NavigationController}.
|
|
436
|
+
*
|
|
437
|
+
* @returns Method should return `true` if framework navigation should be suppressed (that means: extension
|
|
438
|
+
* code has taken over navigation)
|
|
433
439
|
*/
|
|
434
440
|
onListNavigationExtension(
|
|
435
441
|
/**
|
|
@@ -493,6 +499,8 @@ declare namespace sap {
|
|
|
493
499
|
* `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
494
500
|
*
|
|
495
501
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
502
|
+
*
|
|
503
|
+
* @returns Created class / constructor function
|
|
496
504
|
*/
|
|
497
505
|
static extend<T extends Record<string, unknown>>(
|
|
498
506
|
/**
|
|
@@ -514,6 +522,8 @@ declare namespace sap {
|
|
|
514
522
|
): Function;
|
|
515
523
|
/**
|
|
516
524
|
* Returns a metadata object for class sap.suite.ui.generic.template.Canvas.extensionAPI.ExtensionAPI.
|
|
525
|
+
*
|
|
526
|
+
* @returns Metadata object describing this class
|
|
517
527
|
*/
|
|
518
528
|
static getMetadata(): sap.ui.base.Metadata;
|
|
519
529
|
/**
|
|
@@ -565,21 +575,30 @@ declare namespace sap {
|
|
|
565
575
|
): void;
|
|
566
576
|
/**
|
|
567
577
|
* Get the Flexible Column Layout Action Buttons(Fullscreen, Exit Fullscreen and Close).
|
|
578
|
+
*
|
|
579
|
+
* @returns Flexible Column Layout Action Buttons
|
|
568
580
|
*/
|
|
569
581
|
getFlexibleColumnLayoutActionButtons(): object;
|
|
570
582
|
/**
|
|
571
583
|
* Get the navigation controller for navigation actions
|
|
584
|
+
*
|
|
585
|
+
* @returns the navigation controller
|
|
572
586
|
*/
|
|
573
587
|
getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
|
|
574
588
|
/**
|
|
575
589
|
* Get the transaction controller for editing actions on the page. Note that the methods provided by this
|
|
576
590
|
* transaction controller depend on whether the object supports drafts or not.
|
|
591
|
+
*
|
|
592
|
+
* @returns the transaction controller
|
|
577
593
|
*/
|
|
578
594
|
getTransactionController():
|
|
579
595
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController
|
|
580
596
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController;
|
|
581
597
|
/**
|
|
582
598
|
* Invokes multiple time the action with the given name and submits changes to the back-end.
|
|
599
|
+
*
|
|
600
|
+
* @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
|
|
601
|
+
* returned from {@link sap.ui.generic.app.ApplicationController}
|
|
583
602
|
*/
|
|
584
603
|
invokeActions(
|
|
585
604
|
/**
|
|
@@ -607,6 +626,9 @@ declare namespace sap {
|
|
|
607
626
|
): Promise<any>;
|
|
608
627
|
/**
|
|
609
628
|
* Invokes multiple time the action with the given name and submits changes to the back-end.
|
|
629
|
+
*
|
|
630
|
+
* @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
|
|
631
|
+
* returned from {@link sap.ui.generic.app.ApplicationController}
|
|
610
632
|
*/
|
|
611
633
|
invokeActions(
|
|
612
634
|
/**
|
|
@@ -659,6 +681,9 @@ declare namespace sap {
|
|
|
659
681
|
* are fulfilled.
|
|
660
682
|
* See:
|
|
661
683
|
* {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}
|
|
684
|
+
*
|
|
685
|
+
* @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
|
|
686
|
+
* returned by fnFunction.
|
|
662
687
|
*/
|
|
663
688
|
securedExecution(
|
|
664
689
|
/**
|
|
@@ -736,6 +761,8 @@ declare namespace sap {
|
|
|
736
761
|
* });
|
|
737
762
|
* ...
|
|
738
763
|
* });`
|
|
764
|
+
*
|
|
765
|
+
* @returns A `Promise` which resolves to the extension API for the embedding SAP Fiori elements view
|
|
739
766
|
*/
|
|
740
767
|
getExtensionAPIPromise(
|
|
741
768
|
/**
|
|
@@ -837,6 +864,8 @@ declare namespace sap {
|
|
|
837
864
|
* name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
838
865
|
*
|
|
839
866
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
867
|
+
*
|
|
868
|
+
* @returns Created class / constructor function
|
|
840
869
|
*/
|
|
841
870
|
static extend<T extends Record<string, unknown>>(
|
|
842
871
|
/**
|
|
@@ -858,6 +887,8 @@ declare namespace sap {
|
|
|
858
887
|
): Function;
|
|
859
888
|
/**
|
|
860
889
|
* Returns a metadata object for class sap.suite.ui.generic.template.extensionAPI.NavigationController.
|
|
890
|
+
*
|
|
891
|
+
* @returns Metadata object describing this class
|
|
861
892
|
*/
|
|
862
893
|
static getMetadata(): sap.ui.base.Metadata;
|
|
863
894
|
/**
|
|
@@ -906,7 +937,7 @@ declare namespace sap {
|
|
|
906
937
|
* This gives the provision to the application developer to chosse between "display"/"edit" mode for target
|
|
907
938
|
* page
|
|
908
939
|
*/
|
|
909
|
-
displayMode?: sap.suite.ui.generic.template.displayMode;
|
|
940
|
+
displayMode?: /* was: sap.suite.ui.generic.template.displayMode */ any;
|
|
910
941
|
}
|
|
911
942
|
): void;
|
|
912
943
|
}
|
|
@@ -926,6 +957,8 @@ declare namespace sap {
|
|
|
926
957
|
* name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
927
958
|
*
|
|
928
959
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
960
|
+
*
|
|
961
|
+
* @returns Created class / constructor function
|
|
929
962
|
*/
|
|
930
963
|
static extend<T extends Record<string, unknown>>(
|
|
931
964
|
/**
|
|
@@ -947,6 +980,8 @@ declare namespace sap {
|
|
|
947
980
|
): Function;
|
|
948
981
|
/**
|
|
949
982
|
* Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.
|
|
983
|
+
*
|
|
984
|
+
* @returns Metadata object describing this class
|
|
950
985
|
*/
|
|
951
986
|
static getMetadata(): sap.ui.base.Metadata;
|
|
952
987
|
/**
|
|
@@ -962,25 +997,36 @@ declare namespace sap {
|
|
|
962
997
|
): void;
|
|
963
998
|
/**
|
|
964
999
|
* Get the navigation controller for navigation actions
|
|
1000
|
+
*
|
|
1001
|
+
* @returns the navigation controller
|
|
965
1002
|
*/
|
|
966
1003
|
getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
|
|
967
1004
|
/**
|
|
968
1005
|
* @EXPERIMENTAL
|
|
969
1006
|
*
|
|
970
1007
|
* If switching between different table views is enabled, this function returns the selected key.
|
|
1008
|
+
*
|
|
1009
|
+
* @returns The key of the variant item that is currently selected.
|
|
971
1010
|
*/
|
|
972
1011
|
getQuickVariantSelectionKey(): string;
|
|
973
1012
|
/**
|
|
974
1013
|
* Get the list entries currently selected for smart table
|
|
1014
|
+
*
|
|
1015
|
+
* @returns contains one entry per line selected
|
|
975
1016
|
*/
|
|
976
1017
|
getSelectedContexts(): sap.ui.model.Context[];
|
|
977
1018
|
/**
|
|
978
1019
|
* Get the transaction controller for editing actions on the list. Note: Currently implemented for non draft
|
|
979
1020
|
* case
|
|
1021
|
+
*
|
|
1022
|
+
* @returns the transaction controller
|
|
980
1023
|
*/
|
|
981
1024
|
getTransactionController(): sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController;
|
|
982
1025
|
/**
|
|
983
1026
|
* Invokes multiple time the action with the given name and submits changes to the back-end.
|
|
1027
|
+
*
|
|
1028
|
+
* @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
|
|
1029
|
+
* returned from {@link sap.ui.generic.app.ApplicationController}
|
|
984
1030
|
*/
|
|
985
1031
|
invokeActions(
|
|
986
1032
|
/**
|
|
@@ -1008,6 +1054,9 @@ declare namespace sap {
|
|
|
1008
1054
|
): Promise<any>;
|
|
1009
1055
|
/**
|
|
1010
1056
|
* Invokes multiple time the action with the given name and submits changes to the back-end.
|
|
1057
|
+
*
|
|
1058
|
+
* @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
|
|
1059
|
+
* returned from {@link sap.ui.generic.app.ApplicationController}
|
|
1011
1060
|
*/
|
|
1012
1061
|
invokeActions(
|
|
1013
1062
|
/**
|
|
@@ -1062,6 +1111,9 @@ declare namespace sap {
|
|
|
1062
1111
|
/**
|
|
1063
1112
|
* Secured execution of the given function. Ensures that the function is only executed when certain conditions
|
|
1064
1113
|
* are fulfilled. For more information, see {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}.
|
|
1114
|
+
*
|
|
1115
|
+
* @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
|
|
1116
|
+
* returned by fnFunction.
|
|
1065
1117
|
*/
|
|
1066
1118
|
securedExecution(
|
|
1067
1119
|
/**
|
|
@@ -1119,10 +1171,6 @@ declare namespace sap {
|
|
|
1119
1171
|
* Provide an option for showing an own message in the message bar above the LR table
|
|
1120
1172
|
*/
|
|
1121
1173
|
setCustomMessage(
|
|
1122
|
-
/**
|
|
1123
|
-
* the entitySet identifying the table to set custom message
|
|
1124
|
-
*/
|
|
1125
|
-
vTabKey: any[] | string,
|
|
1126
1174
|
/**
|
|
1127
1175
|
* custom message along with type to set on table
|
|
1128
1176
|
*/
|
|
@@ -1136,26 +1184,13 @@ declare namespace sap {
|
|
|
1136
1184
|
* sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
|
|
1137
1185
|
*/
|
|
1138
1186
|
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(
|
|
1187
|
+
},
|
|
1145
1188
|
/**
|
|
1146
|
-
*
|
|
1189
|
+
* If switching between different table views is enabled, this parameter can be used to identify the views
|
|
1190
|
+
* which are affected by this call. Faulty values indicate that all views should be affected. Otherwise
|
|
1191
|
+
* the value should either be one string or an array of strings identifying the affected variant items.
|
|
1147
1192
|
*/
|
|
1148
|
-
|
|
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
|
-
}
|
|
1193
|
+
vTabKey?: any[] | string
|
|
1159
1194
|
): void;
|
|
1160
1195
|
/**
|
|
1161
1196
|
* @EXPERIMENTAL
|
|
@@ -1184,6 +1219,8 @@ declare namespace sap {
|
|
|
1184
1219
|
* with name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1185
1220
|
*
|
|
1186
1221
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
1222
|
+
*
|
|
1223
|
+
* @returns Created class / constructor function
|
|
1187
1224
|
*/
|
|
1188
1225
|
static extend<T extends Record<string, unknown>>(
|
|
1189
1226
|
/**
|
|
@@ -1205,6 +1242,8 @@ declare namespace sap {
|
|
|
1205
1242
|
): Function;
|
|
1206
1243
|
/**
|
|
1207
1244
|
* Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.
|
|
1245
|
+
*
|
|
1246
|
+
* @returns Metadata object describing this class
|
|
1208
1247
|
*/
|
|
1209
1248
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1210
1249
|
/**
|
|
@@ -1213,6 +1252,9 @@ declare namespace sap {
|
|
|
1213
1252
|
cancel(): void;
|
|
1214
1253
|
/**
|
|
1215
1254
|
* This method can be called when a new entry with predefined values should be created (e.g. in a copy scenario).
|
|
1255
|
+
*
|
|
1256
|
+
* @returns a context representing the object to be created. It can be passed to {@link sap.suite.ui.generic.template.extensionAPI.NavigationController#navigateInternal}
|
|
1257
|
+
* in order to visit the corresponding object page.
|
|
1216
1258
|
*/
|
|
1217
1259
|
createEntry(
|
|
1218
1260
|
/**
|
|
@@ -1239,6 +1281,8 @@ declare namespace sap {
|
|
|
1239
1281
|
* Save the changes which have been applied to the OData model. Sets the application busy during execution
|
|
1240
1282
|
* and doesn't execute if application is already busy when called (i.e. don't use `ExtensionAPI.securedExecution`
|
|
1241
1283
|
* to call this method).
|
|
1284
|
+
*
|
|
1285
|
+
* @returns is resolved when entry is successfully saved and rejected when saving fails
|
|
1242
1286
|
*/
|
|
1243
1287
|
save(): Promise<any>;
|
|
1244
1288
|
}
|
|
@@ -1305,6 +1349,8 @@ declare namespace sap {
|
|
|
1305
1349
|
* can override this method in controller extension & perform additional checks before executing the delete
|
|
1306
1350
|
* operation. Method is expected to return a Promise. To veto the delete operation, promise needs to be
|
|
1307
1351
|
* rejected else resolved.
|
|
1352
|
+
*
|
|
1353
|
+
* @returns - Promise object created by the extension, used for Delete operation chaining
|
|
1308
1354
|
*/
|
|
1309
1355
|
beforeDeleteExtension(
|
|
1310
1356
|
/**
|
|
@@ -1323,6 +1369,9 @@ declare namespace sap {
|
|
|
1323
1369
|
* based on whose resolution or rejection the framework would perform cleanup tasks like closing the dialog
|
|
1324
1370
|
* and refreshing the table data.There will be no chaining of multi edit save from the framework, if the
|
|
1325
1371
|
* extension is implemented then the framework will only execute extension code for save.
|
|
1372
|
+
*
|
|
1373
|
+
* @returns - Promise object created by the extension, used for cleanup after the promise is resolved or
|
|
1374
|
+
* rejected.
|
|
1326
1375
|
*/
|
|
1327
1376
|
beforeMultiEditSaveExtension(
|
|
1328
1377
|
/**
|
|
@@ -1374,6 +1423,8 @@ declare namespace sap {
|
|
|
1374
1423
|
* as a parameter to the method. Application developers can access the properties, values and add it to
|
|
1375
1424
|
* the returning object map. Application developers will have complete control on properties passed to the
|
|
1376
1425
|
* new instance creation.
|
|
1426
|
+
*
|
|
1427
|
+
* @returns Key/Value map of the properties
|
|
1377
1428
|
*/
|
|
1378
1429
|
getPredefinedValuesForCreateExtension(
|
|
1379
1430
|
/**
|
|
@@ -1506,6 +1557,10 @@ declare namespace sap {
|
|
|
1506
1557
|
* This method is called when the user leaves the app and this page has been displayed within the same app
|
|
1507
1558
|
* session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
|
|
1508
1559
|
* that have been displayed within some app session when the app is finally destroyed.
|
|
1560
|
+
*
|
|
1561
|
+
* @returns - Only relevant in case that `isDestroyed` is false. In this case Application developers can
|
|
1562
|
+
* provide a function to be called when the same page is opened again (after the user has navigated back
|
|
1563
|
+
* to the app).
|
|
1509
1564
|
*/
|
|
1510
1565
|
onLeaveAppExtension(
|
|
1511
1566
|
/**
|
|
@@ -1519,6 +1574,9 @@ declare namespace sap {
|
|
|
1519
1574
|
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
1520
1575
|
* rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
|
|
1521
1576
|
* NavigationController}.
|
|
1577
|
+
*
|
|
1578
|
+
* @returns Method should return `true` if framework navigation should be suppressed (that means: extension
|
|
1579
|
+
* code has taken over navigation)
|
|
1522
1580
|
*/
|
|
1523
1581
|
onListNavigationExtension(
|
|
1524
1582
|
/**
|
|
@@ -1592,6 +1650,8 @@ declare namespace sap {
|
|
|
1592
1650
|
* with name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1593
1651
|
*
|
|
1594
1652
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
1653
|
+
*
|
|
1654
|
+
* @returns Created class / constructor function
|
|
1595
1655
|
*/
|
|
1596
1656
|
static extend<T extends Record<string, unknown>>(
|
|
1597
1657
|
/**
|
|
@@ -1613,6 +1673,8 @@ declare namespace sap {
|
|
|
1613
1673
|
): Function;
|
|
1614
1674
|
/**
|
|
1615
1675
|
* Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController.
|
|
1676
|
+
*
|
|
1677
|
+
* @returns Metadata object describing this class
|
|
1616
1678
|
*/
|
|
1617
1679
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1618
1680
|
/**
|
|
@@ -1685,6 +1747,8 @@ declare namespace sap {
|
|
|
1685
1747
|
* which follows the cancellation of a draft is executed. Moreover, note that executing this method will
|
|
1686
1748
|
* set the App to be busy. However, it does not ensure, that the method is only called, when the App is
|
|
1687
1749
|
* currently unbusy. If you want to ensure that, you have to use {@link sap.suite.ui.generic.template.ObjectPage.extensionAPI.ExtensionAPI#securedExecution}.
|
|
1750
|
+
*
|
|
1751
|
+
* @returns a promise that is resolved when the draft is cancelled, rejected when this is not possible.
|
|
1688
1752
|
*/
|
|
1689
1753
|
discardDraft(): Function;
|
|
1690
1754
|
/**
|
|
@@ -1741,6 +1805,8 @@ declare namespace sap {
|
|
|
1741
1805
|
* name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1742
1806
|
*
|
|
1743
1807
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
1808
|
+
*
|
|
1809
|
+
* @returns Created class / constructor function
|
|
1744
1810
|
*/
|
|
1745
1811
|
static extend<T extends Record<string, unknown>>(
|
|
1746
1812
|
/**
|
|
@@ -1762,6 +1828,8 @@ declare namespace sap {
|
|
|
1762
1828
|
): Function;
|
|
1763
1829
|
/**
|
|
1764
1830
|
* Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.ExtensionAPI.
|
|
1831
|
+
*
|
|
1832
|
+
* @returns Metadata object describing this class
|
|
1765
1833
|
*/
|
|
1766
1834
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1767
1835
|
/**
|
|
@@ -1798,12 +1866,16 @@ declare namespace sap {
|
|
|
1798
1866
|
): void;
|
|
1799
1867
|
/**
|
|
1800
1868
|
* Get the navigation controller for navigation actions
|
|
1869
|
+
*
|
|
1870
|
+
* @returns the navigation controller
|
|
1801
1871
|
*/
|
|
1802
1872
|
getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
|
|
1803
1873
|
/**
|
|
1804
1874
|
* @EXPERIMENTAL
|
|
1805
1875
|
*
|
|
1806
1876
|
* This function returns the selected key of selected table of Object Page.
|
|
1877
|
+
*
|
|
1878
|
+
* @returns The key of variant item that is currently selected section.
|
|
1807
1879
|
*/
|
|
1808
1880
|
getQuickVariantSelectionKey(
|
|
1809
1881
|
/**
|
|
@@ -1813,6 +1885,8 @@ declare namespace sap {
|
|
|
1813
1885
|
): string;
|
|
1814
1886
|
/**
|
|
1815
1887
|
* Get the entries currently selected in one ui element (table, chart, or list)
|
|
1888
|
+
*
|
|
1889
|
+
* @returns contains one entry per entry selected
|
|
1816
1890
|
*/
|
|
1817
1891
|
getSelectedContexts(
|
|
1818
1892
|
/**
|
|
@@ -1823,16 +1897,23 @@ declare namespace sap {
|
|
|
1823
1897
|
/**
|
|
1824
1898
|
* Get the transaction controller for editing actions on the page. Note that the methods provided by this
|
|
1825
1899
|
* transaction controller depend on whether the object supports drafts or not.
|
|
1900
|
+
*
|
|
1901
|
+
* @returns the transaction controller
|
|
1826
1902
|
*/
|
|
1827
1903
|
getTransactionController():
|
|
1828
1904
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController
|
|
1829
1905
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController;
|
|
1830
1906
|
/**
|
|
1831
1907
|
* Get the id of the view this extension api belongs to
|
|
1908
|
+
*
|
|
1909
|
+
* @returns the view id
|
|
1832
1910
|
*/
|
|
1833
1911
|
getViewId(): string;
|
|
1834
1912
|
/**
|
|
1835
1913
|
* Invokes multiple time the action with the given name and submits changes to the back-end.
|
|
1914
|
+
*
|
|
1915
|
+
* @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
|
|
1916
|
+
* returned from {@link sap.ui.generic.app.ApplicationController}
|
|
1836
1917
|
*/
|
|
1837
1918
|
invokeActions(
|
|
1838
1919
|
/**
|
|
@@ -1860,6 +1941,9 @@ declare namespace sap {
|
|
|
1860
1941
|
): Promise<any>;
|
|
1861
1942
|
/**
|
|
1862
1943
|
* Invokes multiple time the action with the given name and submits changes to the back-end.
|
|
1944
|
+
*
|
|
1945
|
+
* @returns A `Promise` for asynchronous execution of the action, resolving to the same result as the `Promise`
|
|
1946
|
+
* returned from {@link sap.ui.generic.app.ApplicationController}
|
|
1863
1947
|
*/
|
|
1864
1948
|
invokeActions(
|
|
1865
1949
|
/**
|
|
@@ -1886,6 +1970,9 @@ declare namespace sap {
|
|
|
1886
1970
|
* the corresponding state can be stored and restored.
|
|
1887
1971
|
* See:
|
|
1888
1972
|
* {@link topic:89fa878945294931b15a581a99043005 Custom State Handling for Extended Apps}
|
|
1973
|
+
*
|
|
1974
|
+
* @returns A `Promise` that is resolved when the changed state is transferred to the URL and the corresponding
|
|
1975
|
+
* busy session is ended.
|
|
1889
1976
|
*/
|
|
1890
1977
|
onCustomStateChange(): Promise<any>;
|
|
1891
1978
|
/**
|
|
@@ -1933,6 +2020,9 @@ declare namespace sap {
|
|
|
1933
2020
|
* are fulfilled.
|
|
1934
2021
|
* See:
|
|
1935
2022
|
* {@link topic:6a39150ad3e548a8b5304d32d560790a Using the SecuredExecutionMethod}
|
|
2023
|
+
*
|
|
2024
|
+
* @returns A `Promise` that is rejected, if execution is prohibited, and settled equivalent to the one
|
|
2025
|
+
* returned by fnFunction.
|
|
1936
2026
|
*/
|
|
1937
2027
|
securedExecution(
|
|
1938
2028
|
/**
|
|
@@ -2015,6 +2105,8 @@ declare namespace sap {
|
|
|
2015
2105
|
* with name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
2016
2106
|
*
|
|
2017
2107
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.base.Object.extend}.
|
|
2108
|
+
*
|
|
2109
|
+
* @returns Created class / constructor function
|
|
2018
2110
|
*/
|
|
2019
2111
|
static extend<T extends Record<string, unknown>>(
|
|
2020
2112
|
/**
|
|
@@ -2036,6 +2128,8 @@ declare namespace sap {
|
|
|
2036
2128
|
): Function;
|
|
2037
2129
|
/**
|
|
2038
2130
|
* Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController.
|
|
2131
|
+
*
|
|
2132
|
+
* @returns Metadata object describing this class
|
|
2039
2133
|
*/
|
|
2040
2134
|
static getMetadata(): sap.ui.base.Metadata;
|
|
2041
2135
|
/**
|
|
@@ -2076,6 +2170,9 @@ declare namespace sap {
|
|
|
2076
2170
|
): void;
|
|
2077
2171
|
/**
|
|
2078
2172
|
* This method can be called when a new entry with predefined values should be created (e.g. in a copy scenario).
|
|
2173
|
+
*
|
|
2174
|
+
* @returns a context representing the object to be created. It can be passed to {@link sap.suite.ui.generic.template.extensionAPI.NavigationController#navigateInternal}
|
|
2175
|
+
* in order to visit the corresponding object page.
|
|
2079
2176
|
*/
|
|
2080
2177
|
createEntry(
|
|
2081
2178
|
/**
|
|
@@ -2186,6 +2283,8 @@ declare namespace sap {
|
|
|
2186
2283
|
* developers can override this method & perform additional checks before executing the delete operation.
|
|
2187
2284
|
* Method is expected to return a Promise. To veto the delete operation, promise needs to be rejected else
|
|
2188
2285
|
* resolved.
|
|
2286
|
+
*
|
|
2287
|
+
* @returns Promise object created by the extension, used for delete operation chaining
|
|
2189
2288
|
*/
|
|
2190
2289
|
beforeDeleteExtension(): Promise<any>;
|
|
2191
2290
|
/**
|
|
@@ -2195,6 +2294,8 @@ declare namespace sap {
|
|
|
2195
2294
|
* resolved. In case the extension code wants to veto the Delete operation, promise needs to be rejected.
|
|
2196
2295
|
* Application developers can use `sUiElementId` property of the object passed as param to identify the
|
|
2197
2296
|
* smart table where the Delete operation is being triggered.
|
|
2297
|
+
*
|
|
2298
|
+
* @returns Promise object created by the extension, used for Delete operation chaining
|
|
2198
2299
|
*/
|
|
2199
2300
|
beforeLineItemDeleteExtension(
|
|
2200
2301
|
/**
|
|
@@ -2216,6 +2317,8 @@ declare namespace sap {
|
|
|
2216
2317
|
* this method & perform additional checks before executing the Save operation. Method is expected to return
|
|
2217
2318
|
* a Promise. Save operation will be continued only once the promise is resolved. In case the extension
|
|
2218
2319
|
* code would like to veto the Save operation, promise needs to be rejected.
|
|
2320
|
+
*
|
|
2321
|
+
* @returns Promise object created by the extension, used for Save operation chaining
|
|
2219
2322
|
*/
|
|
2220
2323
|
beforeSaveExtension(): Promise<any>;
|
|
2221
2324
|
/**
|
|
@@ -2271,6 +2374,10 @@ declare namespace sap {
|
|
|
2271
2374
|
* This method is called when the user leaves the app and this page has been displayed within the same app
|
|
2272
2375
|
* session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
|
|
2273
2376
|
* that have been displayed within some app session when the app is finally destroyed.
|
|
2377
|
+
*
|
|
2378
|
+
* @returns - Only relevant in case that `isDestroyed` is false. In this case Application developers can
|
|
2379
|
+
* provide a function to be called when the same page is opened again (after the user has navigated back
|
|
2380
|
+
* to the app).
|
|
2274
2381
|
*/
|
|
2275
2382
|
onLeaveAppExtension(
|
|
2276
2383
|
/**
|
|
@@ -2284,6 +2391,9 @@ declare namespace sap {
|
|
|
2284
2391
|
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
2285
2392
|
* rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
|
|
2286
2393
|
* NavigationController}.
|
|
2394
|
+
*
|
|
2395
|
+
* @returns Method should return `true` if framework navigation should be suppressed (that means: extension
|
|
2396
|
+
* code has taken over navigation)
|
|
2287
2397
|
*/
|
|
2288
2398
|
onListNavigationExtension(
|
|
2289
2399
|
/**
|
|
@@ -2334,28 +2444,6 @@ declare namespace sap {
|
|
|
2334
2444
|
}
|
|
2335
2445
|
const controllerFrameworkExtensions: controllerFrameworkExtensions;
|
|
2336
2446
|
}
|
|
2337
|
-
|
|
2338
|
-
/**
|
|
2339
|
-
* A static enumeration type which indicates the mode of targeted page while using navigateInternal extensionAPI
|
|
2340
|
-
*/
|
|
2341
|
-
enum displayMode {
|
|
2342
|
-
/**
|
|
2343
|
-
* Navigating in create mode
|
|
2344
|
-
*/
|
|
2345
|
-
create = "create",
|
|
2346
|
-
/**
|
|
2347
|
-
* Navigating in read-only mode
|
|
2348
|
-
*/
|
|
2349
|
-
display = "display",
|
|
2350
|
-
/**
|
|
2351
|
-
* Navigating in draft mode
|
|
2352
|
-
*/
|
|
2353
|
-
edit = "edit",
|
|
2354
|
-
/**
|
|
2355
|
-
* Navigating with a mode which is not yet decided (fallback condition)
|
|
2356
|
-
*/
|
|
2357
|
-
undefined = "undefined",
|
|
2358
|
-
}
|
|
2359
2447
|
}
|
|
2360
2448
|
}
|
|
2361
2449
|
}
|