@sapui5/types 1.113.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 (66) hide show
  1. package/LICENSE.txt +35 -0
  2. package/README.md +35 -0
  3. package/package.json +23 -0
  4. package/types/index.d.ts +67 -0
  5. package/types/sap.apf.d.ts +1026 -0
  6. package/types/sap.ca.ui.d.ts +14005 -0
  7. package/types/sap.chart.d.ts +4815 -0
  8. package/types/sap.collaboration.d.ts +2704 -0
  9. package/types/sap.esh.search.ui.d.ts +1595 -0
  10. package/types/sap.f.d.ts +20085 -0
  11. package/types/sap.fe.core.d.ts +1508 -0
  12. package/types/sap.fe.macros.d.ts +975 -0
  13. package/types/sap.fe.navigation.d.ts +917 -0
  14. package/types/sap.fe.templates.d.ts +522 -0
  15. package/types/sap.fe.test.d.ts +3533 -0
  16. package/types/sap.feedback.ui.d.ts +3 -0
  17. package/types/sap.gantt.d.ts +51684 -0
  18. package/types/sap.insights.d.ts +23 -0
  19. package/types/sap.landvisz.d.ts +7952 -0
  20. package/types/sap.m.d.ts +147796 -0
  21. package/types/sap.makit.d.ts +4533 -0
  22. package/types/sap.me.d.ts +3665 -0
  23. package/types/sap.ndc.d.ts +774 -0
  24. package/types/sap.ovp.d.ts +176 -0
  25. package/types/sap.rules.ui.d.ts +1471 -0
  26. package/types/sap.sac.df.d.ts +2292 -0
  27. package/types/sap.sac.grid.d.ts +774 -0
  28. package/types/sap.suite.ui.commons.d.ts +46971 -0
  29. package/types/sap.suite.ui.generic.template.d.ts +3431 -0
  30. package/types/sap.suite.ui.microchart.d.ts +12652 -0
  31. package/types/sap.tnt.d.ts +2227 -0
  32. package/types/sap.ui.codeeditor.d.ts +693 -0
  33. package/types/sap.ui.commons.d.ts +30235 -0
  34. package/types/sap.ui.comp.d.ts +37411 -0
  35. package/types/sap.ui.core.d.ts +78872 -0
  36. package/types/sap.ui.dt.d.ts +3 -0
  37. package/types/sap.ui.export.d.ts +843 -0
  38. package/types/sap.ui.fl.d.ts +1663 -0
  39. package/types/sap.ui.generic.app.d.ts +2683 -0
  40. package/types/sap.ui.generic.template.d.ts +3 -0
  41. package/types/sap.ui.integration.d.ts +4032 -0
  42. package/types/sap.ui.layout.d.ts +14472 -0
  43. package/types/sap.ui.mdc.d.ts +476 -0
  44. package/types/sap.ui.richtexteditor.d.ts +1666 -0
  45. package/types/sap.ui.rta.d.ts +124 -0
  46. package/types/sap.ui.suite.d.ts +685 -0
  47. package/types/sap.ui.support.d.ts +453 -0
  48. package/types/sap.ui.table.d.ts +9325 -0
  49. package/types/sap.ui.testrecorder.d.ts +9 -0
  50. package/types/sap.ui.unified.d.ts +20640 -0
  51. package/types/sap.ui.ux3.d.ts +18288 -0
  52. package/types/sap.ui.vbm.d.ts +17251 -0
  53. package/types/sap.ui.vk.d.ts +42381 -0
  54. package/types/sap.ui.vtm.d.ts +10547 -0
  55. package/types/sap.ui.webc.common.d.ts +113 -0
  56. package/types/sap.ui.webc.fiori.d.ts +13850 -0
  57. package/types/sap.ui.webc.main.d.ts +40833 -0
  58. package/types/sap.uiext.inbox.d.ts +4079 -0
  59. package/types/sap.ushell.d.ts +10255 -0
  60. package/types/sap.ushell_abap.d.ts +9 -0
  61. package/types/sap.uxap.d.ts +7636 -0
  62. package/types/sap.viz.d.ts +51209 -0
  63. package/types/sap.webanalytics.core.d.ts +3 -0
  64. package/types/sap.zen.commons.d.ts +1542 -0
  65. package/types/sap.zen.crosstab.d.ts +1159 -0
  66. package/types/sap.zen.dsh.d.ts +2132 -0
@@ -0,0 +1,917 @@
1
+ // For Library Version: 1.111.0
2
+
3
+ declare module "sap/fe/navigation/NavError" {
4
+ import BaseObject from "sap/ui/base/Object";
5
+
6
+ /**
7
+ * @SINCE 1.83.0
8
+ *
9
+ * This is the successor of {@link sap.ui.generic.app.navigation.service.NavError}.
10
+ * An object that provides error handling information during runtime.
11
+ */
12
+ export default class NavError extends BaseObject {
13
+ /**
14
+ * Constructor requiring the error code as input.
15
+ */
16
+ constructor(
17
+ /**
18
+ * String based error code.
19
+ */
20
+ errorCode: string
21
+ );
22
+
23
+ /**
24
+ * Returns the error code with which the instance has been created.
25
+ *
26
+ * @returns The error code of the error
27
+ */
28
+ getErrorCode(): string;
29
+ }
30
+ }
31
+
32
+ declare module "sap/fe/navigation/NavigationHandler" {
33
+ import BaseObject from "sap/ui/base/Object";
34
+
35
+ import ODataModel from "sap/ui/model/odata/v2/ODataModel";
36
+
37
+ import ODataModel1 from "sap/ui/model/odata/v4/ODataModel";
38
+
39
+ import SelectionVariant from "sap/fe/navigation/SelectionVariant";
40
+
41
+ /**
42
+ * @SINCE 1.83.0
43
+ *
44
+ * This is the successor of {@link sap.ui.generic.app.navigation.service.NavigationHandler}.
45
+ * Creates a new NavigationHandler class by providing the required environment.
46
+ *
47
+ * The `NavigationHandler` supports the verification of sensitive information. All properties that are part
48
+ * of
49
+ * `selectionVariant` and `valueTexts` will be verified if they are annotated as
50
+ * `com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive` or
51
+ * `com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext` and will be removed before the data is persisted
52
+ * as the app
53
+ * state.
54
+ *
55
+ * Also, all properties annotated as `com.sap.vocabularies.Analytics.v1.Measure` will be removed from the
56
+ * data stored as the
57
+ * xapp state.
58
+ *
59
+ * To verify the information to be removed, the `NavigationHandler` requires an unnamed model of type
60
+ * {@link sap.ui.model.odata.v2.ODataModel} on component level. It is possible to set such a model using
61
+ * the `setModel`
62
+ * method.
63
+ *
64
+ * **Note:** The check for excluded data requires that the OData metadata has already been loaded completely.
65
+ *
66
+ * If the OData metadata model has not been loaded completely, all properties are removed from the application
67
+ * context.
68
+ *
69
+ * **Note:** This class requires that the UShell {@link sap.ushell.services.CrossApplicationNavigation}
70
+ * is available and initialized.
71
+ */
72
+ export default class NavigationHandler extends BaseObject {
73
+ constructor();
74
+
75
+ /**
76
+ * @PROTECTED - DO NOT USE IN APPLICATIONS (only for related classes in the framework)
77
+ *
78
+ * The method creates a context url based on provided data. This context url can either be used as
79
+ * {@link sap.fe.navigation.NavigationHandler#setParameterContextUrl ParameterContextUrl} or
80
+ * {@link sap.fe.navigation.NavigationHandler#setFilterContextUrl FilterContextUrl}.
81
+ *
82
+ * @returns The context url for the given entities
83
+ */
84
+ constructContextUrl(
85
+ /**
86
+ * Used for url determination
87
+ */
88
+ sEntitySetName: string,
89
+ /**
90
+ * undefined
91
+ */
92
+ oModel?: ODataModel | ODataModel1
93
+ ): string;
94
+ /**
95
+ * Gets the application specific technical parameters. Technical parameters will not be added to the selection
96
+ * variant passed to the
97
+ * application. As a default the following values are considered as technical parameters:
98
+ *
99
+ *
100
+ * - `sap-system`
101
+ *
102
+ * - `sap-ushell-defaultedParameterNames`
103
+ *
104
+ * - `"hcpApplicationId"`
105
+ * .
106
+ *
107
+ * @returns Containing the technical parameters.
108
+ */
109
+ getTechnicalParameters(): string[];
110
+ /**
111
+ * Combines the given parameters and selection variant into a new selection variant containing properties
112
+ * from both, with the parameters
113
+ * overriding existing properties in the selection variant. The new selection variant does not contain any
114
+ * parameters. All parameters are
115
+ * merged into select options. The output of this function, converted to a JSON string, can be used for
116
+ * the
117
+ * {@link #.navigate NavigationHandler.navigate} method.
118
+ *
119
+ * @returns Instance of {@link sap.fe.navigation.SelectionVariant}
120
+ */
121
+ mixAttributesAndSelectionVariant(
122
+ /**
123
+ * Object/(Array of Objects) containing key/value pairs
124
+ */
125
+ vSemanticAttributes: any[] | object,
126
+ /**
127
+ * The selection variant in string format as provided by the SmartFilterBar control
128
+ */
129
+ sSelectionVariant: /* was: sap.fe.navigation.SerializedSelectionVariant */
130
+ | any
131
+ | string,
132
+ /**
133
+ * undefined
134
+ */
135
+ iSuppressionBehavior?: number
136
+ ): SelectionVariant;
137
+ /**
138
+ * Triggers a cross-app navigation after saving the inner and the cross-app states. The navigation mode
139
+ * based on
140
+ * `sap-ushell-next-navmode` is taken into account. If set to `explace` the inner app state will not be
141
+ * changed.
142
+ * **Note:** The `sNavMode` argument can be used to overwrite the SAP Fiori launchpad default navigation
143
+ * for opening a URL
144
+ * in-place or ex-place.
145
+ *
146
+ *
147
+ * **Node:** If the `oExternalAppData` parameter is not supplied, the external app data will be calculated
148
+ * based on
149
+ * the `oInnerAppData` data.
150
+ *
151
+ * SmartFilterBar control **Parameters:**
152
+ *
153
+ * {object}
154
+ * **oError**
155
+ * NavError object (instance of {@link sap.fe.navigation.NavError}) that describes which kind of error
156
+ * occurred
157
+ *
158
+ * {string}
159
+ * **oError.errorCode**
160
+ * Code to identify the error
161
+ *
162
+ * {string}
163
+ * **oError.type**
164
+ * Severity of the error (info/warning/error)
165
+ *
166
+ * {array}
167
+ * **oError.params**
168
+ * An array of objects (typically strings) that describe additional value parameters required for generating
169
+ * the message
170
+ * .
171
+ */
172
+ navigate(
173
+ /**
174
+ * Name of the semantic object of the target app
175
+ */
176
+ sSemanticObject: string,
177
+ /**
178
+ * Name of the action of the target app
179
+ */
180
+ sActionName: string,
181
+ /**
182
+ * Navigation parameters as an object with key/value pairs or as a string representation of such an object.
183
+ * If passed as an object, the properties are not checked against the `IsPotentialSensitive` or `Measure`
184
+ * type.
185
+ */
186
+ vNavigationParameters: object | string,
187
+ /**
188
+ * Object for storing current state of the app
189
+ */
190
+ oInnerAppData?: /* was: sap.fe.navigation.InnerAppData */ any,
191
+ /**
192
+ * Callback that is called if an error occurs during navigation
193
+ */
194
+ fnOnError?: Function,
195
+ /**
196
+ * Object for storing the state which will be forwarded to the target component.
197
+ */
198
+ oExternalAppData?: {
199
+ /**
200
+ * Object containing the current ui state of the app which will be forwarded to the
201
+ * target component.
202
+ */
203
+ presentationVariant?: object;
204
+ /**
205
+ * Stringified JSON object, which will be forwarded to the target component. If not
206
+ * provided the selectionVariant will be constructed based on the vNavigationParameters.
207
+ */
208
+ selectionVariant?: object;
209
+ /**
210
+ * Object containing value descriptions which will be forwarded to the target component.
211
+ */
212
+ valueTexts?: object;
213
+ },
214
+ /**
215
+ * Argument is used to overwrite the FLP-configured target for opening a URL. If used, only the
216
+ * `explace` or `inplace` values are allowed. Any other value will lead to an exception
217
+ * `NavigationHandler.INVALID_NAV_MODE`.
218
+ */
219
+ sNavMode?: string
220
+ ): void;
221
+ /**
222
+ * Parses the incoming URL and returns a Promise. If this method detects a back navigation, the inner app
223
+ * state is returned in the resolved
224
+ * Promise. Otherwise startup parameters will be merged into the app state provided by cross app navigation,
225
+ * and a combined app state will be
226
+ * returned. The conflict resolution can be influenced with sParamHandlingMode defined in the constructor.
227
+ *
228
+ * @returns A Promise object to monitor when all the actions of the function have been executed. If the
229
+ * execution is successful, the
230
+ * extracted app state, the startup parameters, and the type of navigation are returned, see also
231
+ * the example above. The app state is
232
+ * an object that contains the following information:
233
+ *
234
+ * `oAppData.oSelectionVariant`: An instance of {@link sap.fe.navigation.SelectionVariant}
235
+ * containing only parameters/select options that are related to navigation
236
+ *
237
+ * - `oAppData.selectionVariant`: The navigation-related selection variant as a JSON-formatted string
238
+ * `oAppData.oDefaultedSelectionVariant`: An instance of
239
+ * {@link sap.fe.navigation.SelectionVariant} containing only the parameters/select options that
240
+ * are set by user
241
+ * default data
242
+ * `oAppData.bNavSelVarHasDefaultsOnly`: A Boolean flag that indicates whether only defaulted
243
+ * parameters and no
244
+ * navigation parameters are present.
245
+ *
246
+ * **Note:** If no navigation parameters are available, `bNavSelVarHasDefaultsOnly` is set to `true`,
247
+ * even though parameters without default might be available as well.
248
+ *
249
+ * If the navigation-related selection variant is empty, it is replaced by a copy of the defaulted
250
+ * selection variant.
251
+ *
252
+ * The navigation type is an enumeration type of type {@link sap.fe.navigation.NavType} (possible
253
+ * values are
254
+ * initial, URLParams, xAppState, and iAppState).
255
+ *
256
+ * **Note:** If the navigation type is {@link sap.fe.navigation.NavType.iAppState} oAppData has
257
+ * two
258
+ * additional properties
259
+ *
260
+ *
261
+ * - `oAppData.tableVariantId`
262
+ *
263
+ * - `oAppData.customData`
264
+ *
265
+ * which return the inner app data as stored in {@link #.navigate navigate} or {@link #.storeInnerAppStateAsync
266
+ * storeInnerAppStateAsync}.
267
+ * `oAppData.oDefaultedSelectionVariant` is an empty selection variant and
268
+ * `oAppData.bNavSelVarHasDefaultsOnly` is `false` in this case.
269
+ *
270
+ * **Note:** If the navigation type is {@link sap.fe.navigation.NavType.initial} oAppData is an
271
+ * empty object!
272
+ *
273
+ * If an error occurs, an error object of type {@link sap.fe.navigation.NavError}, URL parameters
274
+ * (if available)
275
+ * and the type of navigation are returned.
276
+ */
277
+ parseNavigation(): JQuery.Promise<any, any, any>;
278
+ /**
279
+ * Processes navigation-related tasks related to beforePopoverOpens event handling for the SmartLink control
280
+ * and returns a Promise object. In
281
+ * particular, the following tasks are performed before the SmartLink popover can be opened:
282
+ *
283
+ *
284
+ * - If `mInnerAppData` is provided, this inner app state is saved for back navigation at a later time.
285
+ * The table event parameters (semantic attributes) and the selection variant data are combined by calling
286
+ * the method
287
+ * {@link #.mixAttributesAndSelectionVariant mixAttributesAndSelectionVariant}.
288
+ * The combined data is saved as the cross app state to be handed over to the target app, and the corresponding
289
+ * sap-xapp-state key is set
290
+ * in the URL.
291
+ *
292
+ * - All single selections ("including equal") of the combined selection data are passed to the SmartLink
293
+ * popover as semantic attributes.
294
+ * The method `oTableEventParameters.open()` is called. Note that this does not really open the popover,
295
+ * but the SmartLink
296
+ * control proceeds with firing the event `navigationTargetsObtained`.
297
+ * .
298
+ *
299
+ *
300
+ * **Node:** If the `oExternalAppData` parameter is not supplied, the external app data will be calculated
301
+ * based on
302
+ * the `mInnerAppData` data.
303
+ * .
304
+ *
305
+ * @returns A Promise object to monitor when all actions of the function have been executed; if the execution
306
+ * is successful, the
307
+ * modified oTableEventParameters is returned; if an error occurs, an error object of type
308
+ * {@link sap.fe.navigation.NavError} is returned
309
+ */
310
+ processBeforeSmartLinkPopoverOpens(
311
+ /**
312
+ * The parameters made available by the SmartTable control when the SmartLink control has been clicked,
313
+ * an instance of a PopOver object
314
+ */
315
+ oTableEventParameters: any,
316
+ /**
317
+ * Stringified JSON object as returned, for example, from getDataSuiteFormat() of the SmartFilterBar control
318
+ */
319
+ sSelectionVariant: string,
320
+ /**
321
+ * Object containing the current state of the app. If provided, opening the Popover is deferred until the
322
+ * inner app data is saved in a consistent way.
323
+ */
324
+ mInnerAppData?: /* was: sap.fe.navigation.InnerAppData */ any,
325
+ /**
326
+ * Object containing the state which will be passed to the target screen.
327
+ */
328
+ oExternalAppData?: {
329
+ /**
330
+ * Object containing the current ui presentationVariant of the app, which will be
331
+ * passed to the target screen
332
+ */
333
+ presentationVariant?: object;
334
+ /**
335
+ * Object containing selectionVariant, which will be passed to the target screen. If not
336
+ * set the sSelectionVariant will be used.
337
+ */
338
+ selectionVariant?: object;
339
+ /**
340
+ * Object containing value descriptions, which will be passed to the target screen
341
+ */
342
+ valueTexts?: object;
343
+ }
344
+ ): JQuery.Promise<any, any, any>;
345
+ /**
346
+ * Changes the URL according to the current sAppStateKey. As an reaction route change event will be triggered.
347
+ */
348
+ replaceHash(
349
+ /**
350
+ * The new app state key.
351
+ */
352
+ sAppStateKey: string
353
+ ): void;
354
+ /**
355
+ * Sets the model that is used for verification of sensitive information. If the model is not set, the unnamed
356
+ * component model is used for the
357
+ * verification of sensitive information.
358
+ */
359
+ setModel(
360
+ /**
361
+ * For checking sensitive information
362
+ */
363
+ oModel: ODataModel | ODataModel1
364
+ ): void;
365
+ /**
366
+ * Sets the application specific technical parameters. Technical parameters will not be added to the selection
367
+ * variant passed to the
368
+ * application. As a default the following values are considered as technical parameters:
369
+ *
370
+ *
371
+ * - `sap-system`
372
+ *
373
+ * - `sap-ushell-defaultedParameterNames`
374
+ *
375
+ * - `"hcpApplicationId"`
376
+ * .
377
+ */
378
+ setTechnicalParameters(
379
+ /**
380
+ * List of parameter names to be considered as technical parameters. `null` or
381
+ * `undefined` may be used to reset the complete list.
382
+ */
383
+ aTechnicalParameters?: any[]
384
+ ): void;
385
+ /**
386
+ * Changes the URL according to the current app state and stores the app state for later retrieval.
387
+ *
388
+ * @returns A Promise object to monitor when all the actions of the function have been executed; if the
389
+ * execution is successful, the
390
+ * app state key is returned; if an error occurs, an object of type {@link sap.fe.navigation.NavError}
391
+ * is
392
+ * returned
393
+ */
394
+ storeInnerAppState(
395
+ /**
396
+ * Object containing the current state of the app
397
+ */
398
+ mInnerAppData: /* was: sap.fe.navigation.InnerAppData */ any,
399
+ /**
400
+ * If set to false, the inner app hash will not be replaced until storing is successful; do not
401
+ * set to false if you cannot react to the resolution of the Promise, for example, when calling the
402
+ * beforeLinkPressed event
403
+ */
404
+ bImmediateHashReplace?: boolean
405
+ ): jQuery.Promise<string>;
406
+ /**
407
+ * Changes the URL according to the current app state and stores the app state for later retrieval.
408
+ *
409
+ * @returns A Promise object to monitor when all the actions of the function have been executed; if the
410
+ * execution is successful, the
411
+ * app state key is returned; if an error occurs, an object of type {@link sap.fe.navigation.NavError}
412
+ * is
413
+ * returned
414
+ */
415
+ storeInnerAppStateAsync(
416
+ /**
417
+ * Object containing the current state of the app
418
+ */
419
+ mInnerAppData: /* was: sap.fe.navigation.InnerAppData */ any,
420
+ /**
421
+ * If set to false, the inner app hash will not be replaced until storing is successful; do not
422
+ * set to false if you cannot react to the resolution of the Promise, for example, when calling the
423
+ * beforeLinkPressed event
424
+ */
425
+ bImmediateHashReplace?: boolean,
426
+ /**
427
+ * If set to true, the inner app hash will not be replaced in the storeInnerAppStateAsync. Also the bImmediateHashReplace
428
+ * will be ignored.
429
+ */
430
+ bSkipHashReplace?: boolean
431
+ ): jQuery.Promise<string>;
432
+ /**
433
+ * Changes the URL according to the current app state and stores the app state for later retrieval.
434
+ *
435
+ * @returns An object containing the appStateId and a promise object to monitor when all the actions of
436
+ * the function have been
437
+ * executed; Please note that the appStateKey may be undefined or empty.
438
+ */
439
+ storeInnerAppStateWithImmediateReturn(
440
+ /**
441
+ * Object containing the current state of the app
442
+ */
443
+ mInnerAppData: /* was: sap.fe.navigation.InnerAppData */ any,
444
+ /**
445
+ * If set to false, the inner app hash will not be replaced until storing is successful; do not
446
+ * set to false if you cannot react to the resolution of the Promise, for example, when calling the
447
+ * beforeLinkPressed event. **Note:**If
448
+ * not provided it will be treated as set to false. **Note:**If set to true, the calling instance
449
+ * has to ensure that a follow-on
450
+ * call to `replaceHash` will take place!
451
+ */
452
+ bImmediateHashReplace?: boolean
453
+ ): object;
454
+ }
455
+ }
456
+
457
+ declare module "sap/fe/navigation/PresentationVariant" {
458
+ import BaseObject from "sap/ui/base/Object";
459
+
460
+ /**
461
+ * @SINCE 1.83.0
462
+ *
463
+ * This is the successor of {@link sap.ui.generic.app.navigation.service.PresentationVariant}.
464
+ * Creates a new instance of a PresentationVariant class. If no parameter is passed, an new empty instance
465
+ * is created whose ID has been set to `""`. Passing a JSON-serialized string complying to the Selection
466
+ * Variant Specification will parse it, and the newly created instance will contain the same information.
467
+ */
468
+ export default class PresentationVariant extends BaseObject {
469
+ /**
470
+ * If no parameter is passed, a new empty instance is created whose ID has been set to `""`.
471
+ * Passing a JSON-serialized string complying to the Selection Variant Specification will parse it,
472
+ * and the newly created instance will contain the same information.
473
+ */
474
+ constructor(
475
+ /**
476
+ * If of type `string`, the selection variant is JSON-formatted;
477
+ * if of type `object`, the object represents a selection variant
478
+ */
479
+ presentationVariant?: object | string
480
+ );
481
+
482
+ /**
483
+ * Gets the chart visualization property.
484
+ *
485
+ * @returns An object containing the properties to be used for the chart visualization.
486
+ */
487
+ getChartVisualization(): /* was: sap.fe.navigation.Visualization */
488
+ | any
489
+ | undefined;
490
+ /**
491
+ * Gets the current context URL intended for the query.
492
+ *
493
+ * @returns The current context URL for the query
494
+ */
495
+ getContextUrl(): string | undefined;
496
+ /**
497
+ * Returns the identification of the selection variant.
498
+ *
499
+ * @returns The identification of the selection variant as made available during construction
500
+ */
501
+ getID(): string;
502
+ /**
503
+ * Gets the more trivial properties. Basically all properties with the exception of the Visualization.
504
+ *
505
+ * @returns The current properties.
506
+ */
507
+ getProperties(): object | undefined;
508
+ /**
509
+ * Gets the table visualization property.
510
+ *
511
+ * @returns An object containing the properties to be used for the table visualization.
512
+ */
513
+ getTableVisualization(): /* was: sap.fe.navigation.Visualization */
514
+ | any
515
+ | undefined;
516
+ /**
517
+ * Returns the current text / description of this selection variant.
518
+ *
519
+ * @returns The current description of this selection variant.
520
+ */
521
+ getText(): string | undefined;
522
+ /**
523
+ * Returns `true` if the presentation variant does not contain any properties.
524
+ * nor ranges.
525
+ *
526
+ * @returns If set to `true` there are no current properties set; `false` otherwise.
527
+ */
528
+ isEmpty(): boolean;
529
+ /**
530
+ * Sets the chart visualization property.
531
+ */
532
+ setChartVisualization(
533
+ /**
534
+ * An object containing the properties to be used for the chart visualization.
535
+ */
536
+ properties: /* was: sap.fe.navigation.Visualization */ any
537
+ ): void;
538
+ /**
539
+ * Sets the context URL.
540
+ */
541
+ setContextUrl(
542
+ /**
543
+ * The URL of the context
544
+ */
545
+ url: string
546
+ ): void;
547
+ /**
548
+ * Sets the identification of the selection variant.
549
+ */
550
+ setID(
551
+ /**
552
+ * The new identification of the selection variant
553
+ */
554
+ id: string
555
+ ): void;
556
+ /**
557
+ * Sets the more trivial properties. Basically all properties with the exception of the Visualization.
558
+ */
559
+ setProperties(
560
+ /**
561
+ * The properties to be used.
562
+ */
563
+ properties: object
564
+ ): void;
565
+ /**
566
+ * Sets the table visualization property.
567
+ */
568
+ setTableVisualization(
569
+ /**
570
+ * An object containing the properties to be used for the table visualization.
571
+ */
572
+ properties: /* was: sap.fe.navigation.Visualization */ any
573
+ ): void;
574
+ /**
575
+ * Sets the text / description of the selection variant.
576
+ */
577
+ setText(
578
+ /**
579
+ * The new description to be used
580
+ */
581
+ newText?: string
582
+ ): void;
583
+ /**
584
+ * Returns the external representation of the selection variant as JSON object.
585
+ *
586
+ * @returns The external representation of this instance as a JSON object
587
+ */
588
+ toJSONObject(): /* was: sap.fe.navigation.ExternalPresentationVariant */ any;
589
+ /**
590
+ * Serializes this instance into a JSON-formatted string.
591
+ *
592
+ * @returns The JSON-formatted representation of this instance in stringified format
593
+ */
594
+ toJSONString(): string;
595
+ }
596
+ }
597
+
598
+ declare module "sap/fe/navigation/SelectionVariant" {
599
+ import BaseObject from "sap/ui/base/Object";
600
+
601
+ /**
602
+ * @SINCE 1.83.0
603
+ */
604
+ export default class SelectionVariant extends BaseObject {
605
+ constructor();
606
+
607
+ /**
608
+ * Sets the value of a parameter called `sName` to the new value `sValue`.
609
+ * If the parameter has already been set before, its value is overwritten.
610
+ *
611
+ * @returns This instance to allow method chaining
612
+ */
613
+ addParameter(
614
+ /**
615
+ * The name of the parameter to be set; the `null` value is not allowed
616
+ */
617
+ sName: string,
618
+ /**
619
+ * The value of the parameter to be set
620
+ */
621
+ sValue: string
622
+ ): SelectionVariant;
623
+ /**
624
+ * Adds a new range to the list of select options for a given parameter.
625
+ *
626
+ * @returns This instance to allow method chaining.
627
+ */
628
+ addSelectOption(
629
+ /**
630
+ * The name of the property for which the selection range is added
631
+ */
632
+ sPropertyName: string,
633
+ /**
634
+ * The sign of the range (**I**nclude or **E**xclude)
635
+ */
636
+ sSign: string,
637
+ /**
638
+ * The option of the range (**EQ** for "equals", **NE** for "not equals",
639
+ * **LE** for "less or equals", **GE** for "greater or equals", **LT** for "less than" (and not equals),
640
+ * **GT** for "greater than" (and not equals), **BT** for "between", or **CP** for "contains pattern"
641
+ * (ABAP-styled pattern matching with the asterisk as wildcard)
642
+ */
643
+ sOption: string,
644
+ /**
645
+ * The single value or the lower boundary of the interval; the `null` value is not allowed
646
+ */
647
+ sLow: string,
648
+ /**
649
+ * Set only if sOption is **BT**: the upper boundary of the interval;
650
+ */
651
+ sHigh?: string,
652
+ /**
653
+ * Text representing the SelectOption. This is an optional parameter. For an example in most Fiori applications
654
+ * if the text is not provided, it is fetched based on the ID.
655
+ * must be `undefined` or `null` in all other cases
656
+ */
657
+ sText?: string,
658
+ /**
659
+ * Object containing semanticDates filter information
660
+ */
661
+ semanticDates?: /* was: sap.fe.navigation.SemanticDateConfiguration */ any
662
+ ): SelectionVariant;
663
+ /**
664
+ * Gets the current context URL intended for the filters.
665
+ *
666
+ * @returns The current context URL for the filters
667
+ */
668
+ getFilterContextUrl(): string | undefined;
669
+ /**
670
+ * Returns the identification of the selection variant.
671
+ *
672
+ * @returns The identification of the selection variant as made available during construction
673
+ */
674
+ getID(): string;
675
+ /**
676
+ * Returns the value of the parameter called `sName` if it has been set.
677
+ * If the parameter has never been set or has been removed, `undefined` is returned.
678
+ *
679
+ * @returns The value of parameter `sName`; returning the value `null` not possible
680
+ */
681
+ getParameter(
682
+ /**
683
+ * The name of the parameter to be returned
684
+ */
685
+ sName: string
686
+ ): string;
687
+ /**
688
+ * Gets the current context URL intended for the parameters.
689
+ *
690
+ * @returns The current context URL for the parameters
691
+ */
692
+ getParameterContextUrl(): string | undefined;
693
+ /**
694
+ * Returns the set of parameter names available in this selection variant.
695
+ *
696
+ * @returns The list of parameter names which are valid
697
+ */
698
+ getParameterNames(): string[];
699
+ /**
700
+ * Returns the names of the parameter and select option properties available for this instance.
701
+ *
702
+ * @returns The list of parameter and select option property names available for this instance
703
+ */
704
+ getPropertyNames(): string[];
705
+ /**
706
+ * Returns the set of select options/ranges available for a given property name.
707
+ *
708
+ * @returns If `sPropertyName` is an invalid name of a property or no range exists, `undefined`
709
+ * is returned; otherwise, an immutable array of ranges is returned. Each entry of the array is an object
710
+ * with the
711
+ * following properties:
712
+ *
713
+ *
714
+ * - `Sign`: The sign of the range
715
+ *
716
+ * - `Option`: The option of the range
717
+ *
718
+ * - `Low`: The low value of the range; returning value `null` is not possible
719
+ *
720
+ * - `High`: The high value of the range; if this value is not necessary, `null` is used
721
+ *
722
+ * For further information about the meaning of the attributes, refer to method `addSelectOption`.
723
+ */
724
+ getSelectOption(
725
+ /**
726
+ * The name of the property for which the set of select options/ranges is returned
727
+ */
728
+ sPropertyName: string
729
+ ): undefined | undefined[];
730
+ /**
731
+ * Returns the names of the properties available for this instance.
732
+ *
733
+ * @returns The list of property names available for this instance
734
+ */
735
+ getSelectOptionsPropertyNames(): string[];
736
+ /**
737
+ * Returns the current text / description of this selection variant.
738
+ *
739
+ * @returns The current description of this selection variant.
740
+ */
741
+ getText(): string | undefined;
742
+ /**
743
+ * First tries to retrieve the set of select options or ranges available for `sName` as the property name.
744
+ * If successful,
745
+ * this array of selections is returned. If it fails, an attempt to find a parameter with the name `sName`
746
+ * is used. If the latter succeeds, the single value is converted to fit into an array of selections to
747
+ * make it
748
+ * type compatible with ranges. This array is then returned.
749
+ * If neither a select option nor a parameter could be found, `undefined` is returned.
750
+ *
751
+ * @returns The ranges in the select options for the specified property or a range-converted representation
752
+ * of a parameter is returned.
753
+ * If both lookups fail, `undefined` is returned.
754
+ * The returned ranges have the format:
755
+ *
756
+ *
757
+ * - `Sign`: The sign of the range
758
+ *
759
+ * - `Option`: The option of the range
760
+ *
761
+ * - `Low`: The low value of the range; returning the value `null` is not possible
762
+ *
763
+ * - `High`: The high value of the range; if this value is not necessary, `null` (but does exist)
764
+ *
765
+ * For further information on the meaning of the attributes, refer to method {@link #.addSelectOption addSelectOption}.
766
+ */
767
+ getValue(
768
+ /**
769
+ * The name of the attribute for which the value is retrieved
770
+ */
771
+ sName: string
772
+ ): undefined | undefined[];
773
+ /**
774
+ * Returns `true` if the selection variant does neither contain parameters
775
+ * nor ranges.
776
+ *
777
+ * @returns If set to `true` there are no parameters and no select options available in
778
+ * the selection variant; `false` otherwise.
779
+ */
780
+ isEmpty(): boolean;
781
+ /**
782
+ * Adds a set of select options to the list of select options for a given parameter.
783
+ *
784
+ * @returns This instance to allow method chaining
785
+ */
786
+ massAddSelectOption(
787
+ /**
788
+ * The name of the property for which the set of select options is added
789
+ */
790
+ sPropertyName: string,
791
+ /**
792
+ * Set of select options to be added
793
+ */
794
+ aSelectOptions: undefined[]
795
+ ): SelectionVariant;
796
+ /**
797
+ * Removes a parameter called `sName` from the selection variant.
798
+ *
799
+ * @returns This instance to allow method chaining
800
+ */
801
+ removeParameter(
802
+ /**
803
+ * The name of the parameter to be removed
804
+ */
805
+ sName: string
806
+ ): SelectionVariant;
807
+ /**
808
+ * Removes a select option called `sName` from the selection variant.
809
+ *
810
+ * @returns This instance to allow method chaining.
811
+ */
812
+ removeSelectOption(
813
+ /**
814
+ * The name of the select option to be removed
815
+ */
816
+ sName: string
817
+ ): SelectionVariant;
818
+ /**
819
+ * Renames a parameter called `sNameOld` to `sNameNew`. If a parameter or a select option with
820
+ * the name `sNameNew` already exist, an error is thrown. If a parameter with the name `sNameOld`
821
+ * does not exist, nothing is changed.
822
+ *
823
+ * @returns This instance to allow method chaining
824
+ */
825
+ renameParameter(
826
+ /**
827
+ * The current name of the parameter to be renamed
828
+ */
829
+ sNameOld: string,
830
+ /**
831
+ * The new name of the parameter
832
+ */
833
+ sNameNew: string
834
+ ): SelectionVariant;
835
+ /**
836
+ * Renames a select option called `sNameOld` to `sNameNew`. If a select option or a parameter
837
+ * with the name `sNameNew` already exist, an error is thrown. If a select option with the name `sNameOld`
838
+ * does not exist, nothing is changed.
839
+ *
840
+ * @returns This instance to allow method chaining
841
+ */
842
+ renameSelectOption(
843
+ /**
844
+ * The current name of the select option property to be renamed
845
+ */
846
+ sNameOld: string,
847
+ /**
848
+ * The new name of the select option property
849
+ */
850
+ sNameNew: string
851
+ ): SelectionVariant;
852
+ /**
853
+ * Sets the context URL intended for the filters.
854
+ */
855
+ setFilterContextUrl(
856
+ /**
857
+ * The URL of the filters
858
+ */
859
+ sURL: string
860
+ ): void;
861
+ /**
862
+ * Sets the identification of the selection variant.
863
+ */
864
+ setID(
865
+ /**
866
+ * The new identification of the selection variant
867
+ */
868
+ id: string
869
+ ): void;
870
+ /**
871
+ * Sets the context URL intended for the parameters.
872
+ */
873
+ setParameterContextUrl(
874
+ /**
875
+ * The URL of the parameter context
876
+ */
877
+ sURL: string
878
+ ): void;
879
+ /**
880
+ * Sets the text / description of the selection variant.
881
+ */
882
+ setText(
883
+ /**
884
+ * The new description to be used
885
+ */
886
+ newText?: string
887
+ ): void;
888
+ /**
889
+ * Returns the external representation of the selection variant as JSON object.
890
+ *
891
+ * @returns The external representation of this instance as a JSON object
892
+ */
893
+ toJSONObject(): /* was: sap.fe.navigation.SerializedSelectionVariant */ any;
894
+ /**
895
+ * Serializes this instance into a JSON-formatted string.
896
+ *
897
+ * @returns The JSON-formatted representation of this instance in stringified format
898
+ */
899
+ toJSONString(): string;
900
+ }
901
+ }
902
+
903
+ declare module "sap/fe/navigation/library" {}
904
+
905
+ declare namespace sap {
906
+ interface IUI5DefineDependencyNames {
907
+ "sap/fe/navigation/library": undefined;
908
+
909
+ "sap/fe/navigation/NavError": undefined;
910
+
911
+ "sap/fe/navigation/NavigationHandler": undefined;
912
+
913
+ "sap/fe/navigation/PresentationVariant": undefined;
914
+
915
+ "sap/fe/navigation/SelectionVariant": undefined;
916
+ }
917
+ }