@sapui5/ts-types 1.100.2 → 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 +2 -0
- package/types/sap.apf.d.ts +89 -1
- package/types/sap.ca.ui.d.ts +1747 -124
- package/types/sap.chart.d.ts +376 -30
- package/types/sap.collaboration.d.ts +320 -40
- package/types/sap.esh.search.ui.d.ts +6 -2
- package/types/sap.f.d.ts +2015 -119
- package/types/sap.fe.common.d.ts +1 -1
- package/types/sap.fe.core.d.ts +77 -64
- package/types/sap.fe.macros.d.ts +92 -40
- package/types/sap.fe.navigation.d.ts +148 -74
- package/types/sap.fe.templates.d.ts +115 -187
- package/types/sap.fe.test.d.ts +539 -25
- package/types/sap.feedback.ui.d.ts +1 -1
- package/types/sap.gantt.d.ts +7242 -516
- package/types/sap.insights.d.ts +80 -0
- package/types/sap.landvisz.d.ts +1015 -66
- package/types/sap.m.d.ts +16699 -1186
- 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 +209 -18
- package/types/sap.sac.df.d.ts +2196 -0
- package/types/sap.sac.grid.d.ts +115 -8
- package/types/sap.suite.ui.commons.d.ts +5532 -396
- package/types/sap.suite.ui.generic.template.d.ts +226 -31
- 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 +4005 -289
- package/types/sap.ui.core.d.ts +6317 -336
- 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 +247 -73
- 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 +9 -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 +39 -6
- package/types/sap.ui.table.d.ts +1060 -113
- 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 +6027 -327
- package/types/sap.ui.vtm.d.ts +1130 -41
- package/types/sap.uiext.inbox.d.ts +423 -22
- package/types/sap.ushell.d.ts +2036 -161
- package/types/sap.ushell_abap.d.ts +4 -1
- package/types/sap.uxap.d.ts +903 -88
- package/types/sap.viz.d.ts +5514 -380
- package/types/sap.webanalytics.core.d.ts +1 -1
- package/types/sap.zen.commons.d.ts +249 -1688
- package/types/sap.zen.crosstab.d.ts +217 -21
- package/types/sap.zen.dsh.d.ts +1505 -4036
|
@@ -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
|
/**
|
|
@@ -149,6 +162,31 @@ declare namespace sap {
|
|
|
149
162
|
sActionLabel?: string;
|
|
150
163
|
}
|
|
151
164
|
): Promise<any>;
|
|
165
|
+
/**
|
|
166
|
+
* Provide an option for showing an own message in the message bar above the ALP table
|
|
167
|
+
*/
|
|
168
|
+
setCustomMessage(
|
|
169
|
+
/**
|
|
170
|
+
* custom message along with type to set on table
|
|
171
|
+
*/
|
|
172
|
+
oMessage: {
|
|
173
|
+
/**
|
|
174
|
+
* message string to display
|
|
175
|
+
*/
|
|
176
|
+
message?: string;
|
|
177
|
+
/**
|
|
178
|
+
* indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
|
|
179
|
+
* sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
|
|
180
|
+
*/
|
|
181
|
+
type?: string;
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
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.
|
|
187
|
+
*/
|
|
188
|
+
vTabKey?: any[] | string
|
|
189
|
+
): void;
|
|
152
190
|
}
|
|
153
191
|
}
|
|
154
192
|
/**
|
|
@@ -203,6 +241,9 @@ declare namespace sap {
|
|
|
203
241
|
* return an array of all selection fields set on SmartFilterBar using custom code as default and doesn't
|
|
204
242
|
* really want to store as part of the AppState. SAP Fiori elements framework will remove these filter properties
|
|
205
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
|
|
206
247
|
*/
|
|
207
248
|
getVisibleSelectionsWithDefaults(): any[];
|
|
208
249
|
/**
|
|
@@ -375,6 +416,10 @@ declare namespace sap {
|
|
|
375
416
|
* This method is called when the user leaves the app and this page has been displayed within the same app
|
|
376
417
|
* session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
|
|
377
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).
|
|
378
423
|
*/
|
|
379
424
|
onLeaveAppExtension(
|
|
380
425
|
/**
|
|
@@ -388,6 +433,9 @@ declare namespace sap {
|
|
|
388
433
|
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
389
434
|
* rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
|
|
390
435
|
* NavigationController}.
|
|
436
|
+
*
|
|
437
|
+
* @returns Method should return `true` if framework navigation should be suppressed (that means: extension
|
|
438
|
+
* code has taken over navigation)
|
|
391
439
|
*/
|
|
392
440
|
onListNavigationExtension(
|
|
393
441
|
/**
|
|
@@ -451,6 +499,8 @@ declare namespace sap {
|
|
|
451
499
|
* `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
452
500
|
*
|
|
453
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
|
|
454
504
|
*/
|
|
455
505
|
static extend<T extends Record<string, unknown>>(
|
|
456
506
|
/**
|
|
@@ -472,6 +522,8 @@ declare namespace sap {
|
|
|
472
522
|
): Function;
|
|
473
523
|
/**
|
|
474
524
|
* Returns a metadata object for class sap.suite.ui.generic.template.Canvas.extensionAPI.ExtensionAPI.
|
|
525
|
+
*
|
|
526
|
+
* @returns Metadata object describing this class
|
|
475
527
|
*/
|
|
476
528
|
static getMetadata(): sap.ui.base.Metadata;
|
|
477
529
|
/**
|
|
@@ -523,21 +575,30 @@ declare namespace sap {
|
|
|
523
575
|
): void;
|
|
524
576
|
/**
|
|
525
577
|
* Get the Flexible Column Layout Action Buttons(Fullscreen, Exit Fullscreen and Close).
|
|
578
|
+
*
|
|
579
|
+
* @returns Flexible Column Layout Action Buttons
|
|
526
580
|
*/
|
|
527
581
|
getFlexibleColumnLayoutActionButtons(): object;
|
|
528
582
|
/**
|
|
529
583
|
* Get the navigation controller for navigation actions
|
|
584
|
+
*
|
|
585
|
+
* @returns the navigation controller
|
|
530
586
|
*/
|
|
531
587
|
getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
|
|
532
588
|
/**
|
|
533
589
|
* Get the transaction controller for editing actions on the page. Note that the methods provided by this
|
|
534
590
|
* transaction controller depend on whether the object supports drafts or not.
|
|
591
|
+
*
|
|
592
|
+
* @returns the transaction controller
|
|
535
593
|
*/
|
|
536
594
|
getTransactionController():
|
|
537
595
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController
|
|
538
596
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController;
|
|
539
597
|
/**
|
|
540
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}
|
|
541
602
|
*/
|
|
542
603
|
invokeActions(
|
|
543
604
|
/**
|
|
@@ -565,6 +626,9 @@ declare namespace sap {
|
|
|
565
626
|
): Promise<any>;
|
|
566
627
|
/**
|
|
567
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}
|
|
568
632
|
*/
|
|
569
633
|
invokeActions(
|
|
570
634
|
/**
|
|
@@ -617,6 +681,9 @@ declare namespace sap {
|
|
|
617
681
|
* are fulfilled.
|
|
618
682
|
* See:
|
|
619
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.
|
|
620
687
|
*/
|
|
621
688
|
securedExecution(
|
|
622
689
|
/**
|
|
@@ -694,6 +761,8 @@ declare namespace sap {
|
|
|
694
761
|
* });
|
|
695
762
|
* ...
|
|
696
763
|
* });`
|
|
764
|
+
*
|
|
765
|
+
* @returns A `Promise` which resolves to the extension API for the embedding SAP Fiori elements view
|
|
697
766
|
*/
|
|
698
767
|
getExtensionAPIPromise(
|
|
699
768
|
/**
|
|
@@ -795,6 +864,8 @@ declare namespace sap {
|
|
|
795
864
|
* name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
796
865
|
*
|
|
797
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
|
|
798
869
|
*/
|
|
799
870
|
static extend<T extends Record<string, unknown>>(
|
|
800
871
|
/**
|
|
@@ -816,6 +887,8 @@ declare namespace sap {
|
|
|
816
887
|
): Function;
|
|
817
888
|
/**
|
|
818
889
|
* Returns a metadata object for class sap.suite.ui.generic.template.extensionAPI.NavigationController.
|
|
890
|
+
*
|
|
891
|
+
* @returns Metadata object describing this class
|
|
819
892
|
*/
|
|
820
893
|
static getMetadata(): sap.ui.base.Metadata;
|
|
821
894
|
/**
|
|
@@ -864,7 +937,7 @@ declare namespace sap {
|
|
|
864
937
|
* This gives the provision to the application developer to chosse between "display"/"edit" mode for target
|
|
865
938
|
* page
|
|
866
939
|
*/
|
|
867
|
-
displayMode?: sap.suite.ui.generic.template.displayMode;
|
|
940
|
+
displayMode?: /* was: sap.suite.ui.generic.template.displayMode */ any;
|
|
868
941
|
}
|
|
869
942
|
): void;
|
|
870
943
|
}
|
|
@@ -884,6 +957,8 @@ declare namespace sap {
|
|
|
884
957
|
* name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
885
958
|
*
|
|
886
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
|
|
887
962
|
*/
|
|
888
963
|
static extend<T extends Record<string, unknown>>(
|
|
889
964
|
/**
|
|
@@ -905,6 +980,8 @@ declare namespace sap {
|
|
|
905
980
|
): Function;
|
|
906
981
|
/**
|
|
907
982
|
* Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.
|
|
983
|
+
*
|
|
984
|
+
* @returns Metadata object describing this class
|
|
908
985
|
*/
|
|
909
986
|
static getMetadata(): sap.ui.base.Metadata;
|
|
910
987
|
/**
|
|
@@ -920,25 +997,36 @@ declare namespace sap {
|
|
|
920
997
|
): void;
|
|
921
998
|
/**
|
|
922
999
|
* Get the navigation controller for navigation actions
|
|
1000
|
+
*
|
|
1001
|
+
* @returns the navigation controller
|
|
923
1002
|
*/
|
|
924
1003
|
getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
|
|
925
1004
|
/**
|
|
926
1005
|
* @EXPERIMENTAL
|
|
927
1006
|
*
|
|
928
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.
|
|
929
1010
|
*/
|
|
930
1011
|
getQuickVariantSelectionKey(): string;
|
|
931
1012
|
/**
|
|
932
1013
|
* Get the list entries currently selected for smart table
|
|
1014
|
+
*
|
|
1015
|
+
* @returns contains one entry per line selected
|
|
933
1016
|
*/
|
|
934
1017
|
getSelectedContexts(): sap.ui.model.Context[];
|
|
935
1018
|
/**
|
|
936
1019
|
* Get the transaction controller for editing actions on the list. Note: Currently implemented for non draft
|
|
937
1020
|
* case
|
|
1021
|
+
*
|
|
1022
|
+
* @returns the transaction controller
|
|
938
1023
|
*/
|
|
939
1024
|
getTransactionController(): sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController;
|
|
940
1025
|
/**
|
|
941
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}
|
|
942
1030
|
*/
|
|
943
1031
|
invokeActions(
|
|
944
1032
|
/**
|
|
@@ -966,6 +1054,9 @@ declare namespace sap {
|
|
|
966
1054
|
): Promise<any>;
|
|
967
1055
|
/**
|
|
968
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}
|
|
969
1060
|
*/
|
|
970
1061
|
invokeActions(
|
|
971
1062
|
/**
|
|
@@ -1020,6 +1111,9 @@ declare namespace sap {
|
|
|
1020
1111
|
/**
|
|
1021
1112
|
* Secured execution of the given function. Ensures that the function is only executed when certain conditions
|
|
1022
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.
|
|
1023
1117
|
*/
|
|
1024
1118
|
securedExecution(
|
|
1025
1119
|
/**
|
|
@@ -1073,6 +1167,31 @@ declare namespace sap {
|
|
|
1073
1167
|
sActionLabel?: string;
|
|
1074
1168
|
}
|
|
1075
1169
|
): Promise<any>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Provide an option for showing an own message in the message bar above the LR table
|
|
1172
|
+
*/
|
|
1173
|
+
setCustomMessage(
|
|
1174
|
+
/**
|
|
1175
|
+
* custom message along with type to set on table
|
|
1176
|
+
*/
|
|
1177
|
+
oMessage: {
|
|
1178
|
+
/**
|
|
1179
|
+
* message string to display
|
|
1180
|
+
*/
|
|
1181
|
+
message?: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* indicates type of message (sap.ui.core.MessageType) whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning,
|
|
1184
|
+
* sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
|
|
1185
|
+
*/
|
|
1186
|
+
type?: string;
|
|
1187
|
+
},
|
|
1188
|
+
/**
|
|
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.
|
|
1192
|
+
*/
|
|
1193
|
+
vTabKey?: any[] | string
|
|
1194
|
+
): void;
|
|
1076
1195
|
/**
|
|
1077
1196
|
* @EXPERIMENTAL
|
|
1078
1197
|
*
|
|
@@ -1100,6 +1219,8 @@ declare namespace sap {
|
|
|
1100
1219
|
* with name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1101
1220
|
*
|
|
1102
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
|
|
1103
1224
|
*/
|
|
1104
1225
|
static extend<T extends Record<string, unknown>>(
|
|
1105
1226
|
/**
|
|
@@ -1121,6 +1242,8 @@ declare namespace sap {
|
|
|
1121
1242
|
): Function;
|
|
1122
1243
|
/**
|
|
1123
1244
|
* Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.
|
|
1245
|
+
*
|
|
1246
|
+
* @returns Metadata object describing this class
|
|
1124
1247
|
*/
|
|
1125
1248
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1126
1249
|
/**
|
|
@@ -1129,6 +1252,9 @@ declare namespace sap {
|
|
|
1129
1252
|
cancel(): void;
|
|
1130
1253
|
/**
|
|
1131
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.
|
|
1132
1258
|
*/
|
|
1133
1259
|
createEntry(
|
|
1134
1260
|
/**
|
|
@@ -1155,6 +1281,8 @@ declare namespace sap {
|
|
|
1155
1281
|
* Save the changes which have been applied to the OData model. Sets the application busy during execution
|
|
1156
1282
|
* and doesn't execute if application is already busy when called (i.e. don't use `ExtensionAPI.securedExecution`
|
|
1157
1283
|
* to call this method).
|
|
1284
|
+
*
|
|
1285
|
+
* @returns is resolved when entry is successfully saved and rejected when saving fails
|
|
1158
1286
|
*/
|
|
1159
1287
|
save(): Promise<any>;
|
|
1160
1288
|
}
|
|
@@ -1164,6 +1292,28 @@ declare namespace sap {
|
|
|
1164
1292
|
* extension code. Application developers should not override any methods outside this documentation.
|
|
1165
1293
|
*/
|
|
1166
1294
|
interface controllerFrameworkExtensions {
|
|
1295
|
+
/**
|
|
1296
|
+
* Obsolete and not called anymore. Kept here to avoid conflicts (in the very unlikely case, Fiori elements
|
|
1297
|
+
* would come up with the idea to invent a new extension method with the exact same name some day in future,
|
|
1298
|
+
* and any application would still have an implementation for this old extension).
|
|
1299
|
+
*
|
|
1300
|
+
* (Original purpose: When (standard) filters (i.e. filters defined in annotations) are provided with default
|
|
1301
|
+
* values (also from the annotation), and the user actively removed the default without giving a new value,
|
|
1302
|
+
* and later tried to restore from that state, the default values were reappearing. This was caused by the
|
|
1303
|
+
* way the old API of SFB (getDataSuiteFormat and setDataSuiteFormat) worked: the get method returned only
|
|
1304
|
+
* select options for the filters that actually had values (i.e. no select option for the filters the user
|
|
1305
|
+
* removed the values from), and the set method only overrode those values, select options were provided
|
|
1306
|
+
* for (i.e. the missing ones just kept their default value set during initialization). To overcome this
|
|
1307
|
+
* problem, the extension was created to inform Fiori elements about all fields potentially running into
|
|
1308
|
+
* that problem, and we added a select option (I EQ "") for those fields. This workaround of course ahs
|
|
1309
|
+
* two severe problems: A filter with eq "" is not the same as not having a filter for the same field (rather
|
|
1310
|
+
* the opposite), and all applications were required to keep extension and annotations in sync (and missing
|
|
1311
|
+
* to do that would only be found in very exceptional cases). With the newer API of SFB (getUiState and
|
|
1312
|
+
* setUiState), this problem has been overcome (esp. as setUiState overrides all filters, not only the ones
|
|
1313
|
+
* provided).)
|
|
1314
|
+
*/
|
|
1315
|
+
getVisibleSelectionsWithDefaults: undefined;
|
|
1316
|
+
|
|
1167
1317
|
/**
|
|
1168
1318
|
* This method is called by SAP Fiori elements before triggering an external navigation. Application developers
|
|
1169
1319
|
* can override this method and programmatically adapt the parameters which are passed to the target application.
|
|
@@ -1199,6 +1349,8 @@ declare namespace sap {
|
|
|
1199
1349
|
* can override this method in controller extension & perform additional checks before executing the delete
|
|
1200
1350
|
* operation. Method is expected to return a Promise. To veto the delete operation, promise needs to be
|
|
1201
1351
|
* rejected else resolved.
|
|
1352
|
+
*
|
|
1353
|
+
* @returns - Promise object created by the extension, used for Delete operation chaining
|
|
1202
1354
|
*/
|
|
1203
1355
|
beforeDeleteExtension(
|
|
1204
1356
|
/**
|
|
@@ -1217,6 +1369,9 @@ declare namespace sap {
|
|
|
1217
1369
|
* based on whose resolution or rejection the framework would perform cleanup tasks like closing the dialog
|
|
1218
1370
|
* and refreshing the table data.There will be no chaining of multi edit save from the framework, if the
|
|
1219
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.
|
|
1220
1375
|
*/
|
|
1221
1376
|
beforeMultiEditSaveExtension(
|
|
1222
1377
|
/**
|
|
@@ -1268,6 +1423,8 @@ declare namespace sap {
|
|
|
1268
1423
|
* as a parameter to the method. Application developers can access the properties, values and add it to
|
|
1269
1424
|
* the returning object map. Application developers will have complete control on properties passed to the
|
|
1270
1425
|
* new instance creation.
|
|
1426
|
+
*
|
|
1427
|
+
* @returns Key/Value map of the properties
|
|
1271
1428
|
*/
|
|
1272
1429
|
getPredefinedValuesForCreateExtension(
|
|
1273
1430
|
/**
|
|
@@ -1279,13 +1436,6 @@ declare namespace sap {
|
|
|
1279
1436
|
*/
|
|
1280
1437
|
oDefaultValues: object
|
|
1281
1438
|
): Map<any, any>;
|
|
1282
|
-
/**
|
|
1283
|
-
* This method is called in the AppState creation lifecycle. Application developers can override this method,
|
|
1284
|
-
* return an array of all selection fields set on SmartFilterBar using custom code as default and doesn't
|
|
1285
|
-
* really want to store as part of the AppState. SAP Fiori elements framework will remove these filter properties
|
|
1286
|
-
* from the selection variant.
|
|
1287
|
-
*/
|
|
1288
|
-
getVisibleSelectionsWithDefaults(): any[];
|
|
1289
1439
|
/**
|
|
1290
1440
|
* This method is called by SAP Fiori elements in the startup life cycle of a component. Application developers
|
|
1291
1441
|
* can override this method and modify the startup object. For an example, when the application is started,
|
|
@@ -1299,6 +1449,10 @@ declare namespace sap {
|
|
|
1299
1449
|
* Startup Object containing the initial contexts
|
|
1300
1450
|
*/
|
|
1301
1451
|
oStartupObject: {
|
|
1452
|
+
/**
|
|
1453
|
+
* information whether the application was triggered via external navigation
|
|
1454
|
+
*/
|
|
1455
|
+
viaExternalNavigation: boolean;
|
|
1302
1456
|
/**
|
|
1303
1457
|
* Selection Variant containing the values which needs to be applied to the smart filter bar
|
|
1304
1458
|
*/
|
|
@@ -1307,6 +1461,10 @@ declare namespace sap {
|
|
|
1307
1461
|
* Semantic dates configuration in the manifest is read an assigned in this object
|
|
1308
1462
|
*/
|
|
1309
1463
|
semanticDates: object;
|
|
1464
|
+
/**
|
|
1465
|
+
* if switching between different table views is enabled, the key which will be initially selected
|
|
1466
|
+
*/
|
|
1467
|
+
selectedQuickVariantSelectionKey: string;
|
|
1310
1468
|
}
|
|
1311
1469
|
): void;
|
|
1312
1470
|
/**
|
|
@@ -1399,6 +1557,10 @@ declare namespace sap {
|
|
|
1399
1557
|
* This method is called when the user leaves the app and this page has been displayed within the same app
|
|
1400
1558
|
* session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
|
|
1401
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).
|
|
1402
1564
|
*/
|
|
1403
1565
|
onLeaveAppExtension(
|
|
1404
1566
|
/**
|
|
@@ -1412,6 +1574,9 @@ declare namespace sap {
|
|
|
1412
1574
|
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
1413
1575
|
* rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
|
|
1414
1576
|
* NavigationController}.
|
|
1577
|
+
*
|
|
1578
|
+
* @returns Method should return `true` if framework navigation should be suppressed (that means: extension
|
|
1579
|
+
* code has taken over navigation)
|
|
1415
1580
|
*/
|
|
1416
1581
|
onListNavigationExtension(
|
|
1417
1582
|
/**
|
|
@@ -1485,6 +1650,8 @@ declare namespace sap {
|
|
|
1485
1650
|
* with name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1486
1651
|
*
|
|
1487
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
|
|
1488
1655
|
*/
|
|
1489
1656
|
static extend<T extends Record<string, unknown>>(
|
|
1490
1657
|
/**
|
|
@@ -1506,6 +1673,8 @@ declare namespace sap {
|
|
|
1506
1673
|
): Function;
|
|
1507
1674
|
/**
|
|
1508
1675
|
* Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController.
|
|
1676
|
+
*
|
|
1677
|
+
* @returns Metadata object describing this class
|
|
1509
1678
|
*/
|
|
1510
1679
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1511
1680
|
/**
|
|
@@ -1578,6 +1747,8 @@ declare namespace sap {
|
|
|
1578
1747
|
* which follows the cancellation of a draft is executed. Moreover, note that executing this method will
|
|
1579
1748
|
* set the App to be busy. However, it does not ensure, that the method is only called, when the App is
|
|
1580
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.
|
|
1581
1752
|
*/
|
|
1582
1753
|
discardDraft(): Function;
|
|
1583
1754
|
/**
|
|
@@ -1634,6 +1805,8 @@ declare namespace sap {
|
|
|
1634
1805
|
* name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1635
1806
|
*
|
|
1636
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
|
|
1637
1810
|
*/
|
|
1638
1811
|
static extend<T extends Record<string, unknown>>(
|
|
1639
1812
|
/**
|
|
@@ -1655,6 +1828,8 @@ declare namespace sap {
|
|
|
1655
1828
|
): Function;
|
|
1656
1829
|
/**
|
|
1657
1830
|
* Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.ExtensionAPI.
|
|
1831
|
+
*
|
|
1832
|
+
* @returns Metadata object describing this class
|
|
1658
1833
|
*/
|
|
1659
1834
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1660
1835
|
/**
|
|
@@ -1691,12 +1866,16 @@ declare namespace sap {
|
|
|
1691
1866
|
): void;
|
|
1692
1867
|
/**
|
|
1693
1868
|
* Get the navigation controller for navigation actions
|
|
1869
|
+
*
|
|
1870
|
+
* @returns the navigation controller
|
|
1694
1871
|
*/
|
|
1695
1872
|
getNavigationController(): sap.suite.ui.generic.template.extensionAPI.NavigationController;
|
|
1696
1873
|
/**
|
|
1697
1874
|
* @EXPERIMENTAL
|
|
1698
1875
|
*
|
|
1699
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.
|
|
1700
1879
|
*/
|
|
1701
1880
|
getQuickVariantSelectionKey(
|
|
1702
1881
|
/**
|
|
@@ -1706,6 +1885,8 @@ declare namespace sap {
|
|
|
1706
1885
|
): string;
|
|
1707
1886
|
/**
|
|
1708
1887
|
* Get the entries currently selected in one ui element (table, chart, or list)
|
|
1888
|
+
*
|
|
1889
|
+
* @returns contains one entry per entry selected
|
|
1709
1890
|
*/
|
|
1710
1891
|
getSelectedContexts(
|
|
1711
1892
|
/**
|
|
@@ -1716,16 +1897,23 @@ declare namespace sap {
|
|
|
1716
1897
|
/**
|
|
1717
1898
|
* Get the transaction controller for editing actions on the page. Note that the methods provided by this
|
|
1718
1899
|
* transaction controller depend on whether the object supports drafts or not.
|
|
1900
|
+
*
|
|
1901
|
+
* @returns the transaction controller
|
|
1719
1902
|
*/
|
|
1720
1903
|
getTransactionController():
|
|
1721
1904
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.DraftTransactionController
|
|
1722
1905
|
| sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController;
|
|
1723
1906
|
/**
|
|
1724
1907
|
* Get the id of the view this extension api belongs to
|
|
1908
|
+
*
|
|
1909
|
+
* @returns the view id
|
|
1725
1910
|
*/
|
|
1726
1911
|
getViewId(): string;
|
|
1727
1912
|
/**
|
|
1728
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}
|
|
1729
1917
|
*/
|
|
1730
1918
|
invokeActions(
|
|
1731
1919
|
/**
|
|
@@ -1753,6 +1941,9 @@ declare namespace sap {
|
|
|
1753
1941
|
): Promise<any>;
|
|
1754
1942
|
/**
|
|
1755
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}
|
|
1756
1947
|
*/
|
|
1757
1948
|
invokeActions(
|
|
1758
1949
|
/**
|
|
@@ -1779,6 +1970,9 @@ declare namespace sap {
|
|
|
1779
1970
|
* the corresponding state can be stored and restored.
|
|
1780
1971
|
* See:
|
|
1781
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.
|
|
1782
1976
|
*/
|
|
1783
1977
|
onCustomStateChange(): Promise<any>;
|
|
1784
1978
|
/**
|
|
@@ -1826,6 +2020,9 @@ declare namespace sap {
|
|
|
1826
2020
|
* are fulfilled.
|
|
1827
2021
|
* See:
|
|
1828
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.
|
|
1829
2026
|
*/
|
|
1830
2027
|
securedExecution(
|
|
1831
2028
|
/**
|
|
@@ -1908,6 +2105,8 @@ declare namespace sap {
|
|
|
1908
2105
|
* with name `sClassName` and enriches it with the information contained in `oClassInfo`.
|
|
1909
2106
|
*
|
|
1910
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
|
|
1911
2110
|
*/
|
|
1912
2111
|
static extend<T extends Record<string, unknown>>(
|
|
1913
2112
|
/**
|
|
@@ -1929,6 +2128,8 @@ declare namespace sap {
|
|
|
1929
2128
|
): Function;
|
|
1930
2129
|
/**
|
|
1931
2130
|
* Returns a metadata object for class sap.suite.ui.generic.template.ObjectPage.extensionAPI.NonDraftTransactionController.
|
|
2131
|
+
*
|
|
2132
|
+
* @returns Metadata object describing this class
|
|
1932
2133
|
*/
|
|
1933
2134
|
static getMetadata(): sap.ui.base.Metadata;
|
|
1934
2135
|
/**
|
|
@@ -1969,6 +2170,9 @@ declare namespace sap {
|
|
|
1969
2170
|
): void;
|
|
1970
2171
|
/**
|
|
1971
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.
|
|
1972
2176
|
*/
|
|
1973
2177
|
createEntry(
|
|
1974
2178
|
/**
|
|
@@ -2079,6 +2283,8 @@ declare namespace sap {
|
|
|
2079
2283
|
* developers can override this method & perform additional checks before executing the delete operation.
|
|
2080
2284
|
* Method is expected to return a Promise. To veto the delete operation, promise needs to be rejected else
|
|
2081
2285
|
* resolved.
|
|
2286
|
+
*
|
|
2287
|
+
* @returns Promise object created by the extension, used for delete operation chaining
|
|
2082
2288
|
*/
|
|
2083
2289
|
beforeDeleteExtension(): Promise<any>;
|
|
2084
2290
|
/**
|
|
@@ -2088,6 +2294,8 @@ declare namespace sap {
|
|
|
2088
2294
|
* resolved. In case the extension code wants to veto the Delete operation, promise needs to be rejected.
|
|
2089
2295
|
* Application developers can use `sUiElementId` property of the object passed as param to identify the
|
|
2090
2296
|
* smart table where the Delete operation is being triggered.
|
|
2297
|
+
*
|
|
2298
|
+
* @returns Promise object created by the extension, used for Delete operation chaining
|
|
2091
2299
|
*/
|
|
2092
2300
|
beforeLineItemDeleteExtension(
|
|
2093
2301
|
/**
|
|
@@ -2109,6 +2317,8 @@ declare namespace sap {
|
|
|
2109
2317
|
* this method & perform additional checks before executing the Save operation. Method is expected to return
|
|
2110
2318
|
* a Promise. Save operation will be continued only once the promise is resolved. In case the extension
|
|
2111
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
|
|
2112
2322
|
*/
|
|
2113
2323
|
beforeSaveExtension(): Promise<any>;
|
|
2114
2324
|
/**
|
|
@@ -2164,6 +2374,10 @@ declare namespace sap {
|
|
|
2164
2374
|
* This method is called when the user leaves the app and this page has been displayed within the same app
|
|
2165
2375
|
* session (this is the time since last opening the app) at least once. Moreover, it is called for all pages
|
|
2166
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).
|
|
2167
2381
|
*/
|
|
2168
2382
|
onLeaveAppExtension(
|
|
2169
2383
|
/**
|
|
@@ -2177,6 +2391,9 @@ declare namespace sap {
|
|
|
2177
2391
|
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
2178
2392
|
* rows of a table. Such custom navigation should be triggered via corresponding methods of {@link sap.suite.ui.generic.template.extensionAPI.NavigationController
|
|
2179
2393
|
* NavigationController}.
|
|
2394
|
+
*
|
|
2395
|
+
* @returns Method should return `true` if framework navigation should be suppressed (that means: extension
|
|
2396
|
+
* code has taken over navigation)
|
|
2180
2397
|
*/
|
|
2181
2398
|
onListNavigationExtension(
|
|
2182
2399
|
/**
|
|
@@ -2227,28 +2444,6 @@ declare namespace sap {
|
|
|
2227
2444
|
}
|
|
2228
2445
|
const controllerFrameworkExtensions: controllerFrameworkExtensions;
|
|
2229
2446
|
}
|
|
2230
|
-
|
|
2231
|
-
/**
|
|
2232
|
-
* A static enumeration type which indicates the mode of targeted page while using navigateInternal extensionAPI
|
|
2233
|
-
*/
|
|
2234
|
-
enum displayMode {
|
|
2235
|
-
/**
|
|
2236
|
-
* Navigating in create mode
|
|
2237
|
-
*/
|
|
2238
|
-
create = "create",
|
|
2239
|
-
/**
|
|
2240
|
-
* Navigating in read-only mode
|
|
2241
|
-
*/
|
|
2242
|
-
display = "display",
|
|
2243
|
-
/**
|
|
2244
|
-
* Navigating in draft mode
|
|
2245
|
-
*/
|
|
2246
|
-
edit = "edit",
|
|
2247
|
-
/**
|
|
2248
|
-
* Navigating with a mode which is not yet decided (fallback condition)
|
|
2249
|
-
*/
|
|
2250
|
-
undefined = "undefined",
|
|
2251
|
-
}
|
|
2252
2447
|
}
|
|
2253
2448
|
}
|
|
2254
2449
|
}
|