@sapui5/types 1.118.1 → 1.119.1

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 (64) hide show
  1. package/package.json +1 -1
  2. package/types/sap.apf.d.ts +9 -9
  3. package/types/sap.ca.ui.d.ts +1 -1
  4. package/types/sap.chart.d.ts +16 -1
  5. package/types/sap.collaboration.d.ts +1 -1
  6. package/types/sap.esh.search.ui.d.ts +35 -1
  7. package/types/sap.f.d.ts +121 -3
  8. package/types/sap.fe.core.d.ts +91 -83
  9. package/types/sap.fe.macros.d.ts +130 -25
  10. package/types/sap.fe.navigation.d.ts +92 -87
  11. package/types/sap.fe.placeholder.d.ts +1 -1
  12. package/types/sap.fe.templates.d.ts +32 -22
  13. package/types/sap.fe.test.d.ts +1 -1
  14. package/types/sap.fe.tools.d.ts +1 -1
  15. package/types/sap.feedback.ui.d.ts +1 -1
  16. package/types/sap.gantt.d.ts +64 -50
  17. package/types/sap.insights.d.ts +133 -28
  18. package/types/sap.landvisz.d.ts +1 -1
  19. package/types/sap.m.d.ts +483 -80
  20. package/types/sap.makit.d.ts +1 -1
  21. package/types/sap.me.d.ts +1 -1
  22. package/types/sap.ndc.d.ts +1 -1
  23. package/types/sap.ovp.d.ts +1 -1
  24. package/types/sap.rules.ui.d.ts +1 -1
  25. package/types/sap.sac.df.d.ts +555 -274
  26. package/types/sap.suite.ui.commons.d.ts +48 -6
  27. package/types/sap.suite.ui.generic.template.d.ts +16 -11
  28. package/types/sap.suite.ui.microchart.d.ts +1 -1
  29. package/types/sap.tnt.d.ts +17 -15
  30. package/types/sap.ui.codeeditor.d.ts +1 -1
  31. package/types/sap.ui.commons.d.ts +1 -1
  32. package/types/sap.ui.comp.d.ts +41 -59
  33. package/types/sap.ui.core.d.ts +517 -173
  34. package/types/sap.ui.dt.d.ts +1 -1
  35. package/types/sap.ui.export.d.ts +1 -1
  36. package/types/sap.ui.fl.d.ts +1 -51
  37. package/types/sap.ui.generic.app.d.ts +1 -1
  38. package/types/sap.ui.generic.template.d.ts +1 -1
  39. package/types/sap.ui.integration.d.ts +11 -1
  40. package/types/sap.ui.layout.d.ts +1 -1
  41. package/types/sap.ui.mdc.d.ts +1017 -246
  42. package/types/sap.ui.richtexteditor.d.ts +1 -1
  43. package/types/sap.ui.rta.d.ts +1 -1
  44. package/types/sap.ui.suite.d.ts +1 -1
  45. package/types/sap.ui.support.d.ts +1 -1
  46. package/types/sap.ui.table.d.ts +915 -1
  47. package/types/sap.ui.testrecorder.d.ts +1 -1
  48. package/types/sap.ui.unified.d.ts +1 -1
  49. package/types/sap.ui.ux3.d.ts +1 -1
  50. package/types/sap.ui.vbm.d.ts +1 -1
  51. package/types/sap.ui.vk.d.ts +387 -9
  52. package/types/sap.ui.vtm.d.ts +78 -66
  53. package/types/sap.ui.webc.common.d.ts +1 -1
  54. package/types/sap.ui.webc.fiori.d.ts +85 -85
  55. package/types/sap.ui.webc.main.d.ts +225 -225
  56. package/types/sap.uiext.inbox.d.ts +1 -1
  57. package/types/sap.ushell.d.ts +566 -42
  58. package/types/sap.ushell_abap.d.ts +1 -1
  59. package/types/sap.uxap.d.ts +1 -1
  60. package/types/sap.viz.d.ts +1 -1
  61. package/types/sap.webanalytics.core.d.ts +1 -1
  62. package/types/sap.zen.commons.d.ts +1 -1
  63. package/types/sap.zen.crosstab.d.ts +1 -1
  64. package/types/sap.zen.dsh.d.ts +1 -1
@@ -1,4 +1,32 @@
1
- // For Library Version: 1.118.0
1
+ // For Library Version: 1.119.2
2
+
3
+ declare module "sap/ushell/library" {
4
+ /**
5
+ * Denotes the types of the content nodes.
6
+ */
7
+ export enum ContentNodeType {
8
+ /**
9
+ * A group of the classic homepage
10
+ */
11
+ HomepageGroup = "HomepageGroup",
12
+ /**
13
+ * A page which is assigned to a space in spaces mode
14
+ */
15
+ Page = "Page",
16
+ /**
17
+ * A space in spaces mode
18
+ */
19
+ Space = "Space",
20
+ }
21
+ /**
22
+ * The state of a navigation operation
23
+ */
24
+ export enum NavigationState {
25
+ Finished = "Finished",
26
+
27
+ InProgress = "InProgress",
28
+ }
29
+ }
2
30
 
3
31
  declare module "sap/ushell/components/factsheet/controls/PictureTile" {
4
32
  import { default as CustomTile, $CustomTileSettings } from "sap/m/CustomTile";
@@ -1116,34 +1144,6 @@ declare module "sap/ushell/Container" {
1116
1144
  };
1117
1145
  }
1118
1146
 
1119
- declare module "sap/ushell/library" {
1120
- /**
1121
- * Denotes the types of the content nodes.
1122
- */
1123
- export enum ContentNodeType {
1124
- /**
1125
- * A group of the classic homepage
1126
- */
1127
- HomepageGroup = "HomepageGroup",
1128
- /**
1129
- * A page which is assigned to a space in spaces mode
1130
- */
1131
- Page = "Page",
1132
- /**
1133
- * A space in spaces mode
1134
- */
1135
- Space = "Space",
1136
- }
1137
- /**
1138
- * The state of a navigation operation
1139
- */
1140
- export enum NavigationState {
1141
- Finished = "Finished",
1142
-
1143
- InProgress = "InProgress",
1144
- }
1145
- }
1146
-
1147
1147
  declare module "sap/ushell/renderers/fiori2/Renderer" {
1148
1148
  import {
1149
1149
  default as UIComponent,
@@ -3155,7 +3155,7 @@ declare module "sap/ushell/services/CrossApplicationNavigation" {
3155
3155
  *
3156
3156
  * @returns A promise which resolves once the back navigation was triggered
3157
3157
  */
3158
- backToPreviousApp(): Promise<void>;
3158
+ backToPreviousApp(): Promise<undefined>;
3159
3159
  /**
3160
3160
  * if sHashFragment is a compacted hash (sap-intent-param is present), in a hash, this function replaces
3161
3161
  * it into a long url with all parameters expanded
@@ -3522,7 +3522,7 @@ declare module "sap/ushell/services/CrossApplicationNavigation" {
3522
3522
  /**
3523
3523
  * positive integer representing the steps to go back in the history
3524
3524
  */
3525
- iSteps: number
3525
+ iSteps: int
3526
3526
  ): void;
3527
3527
  /**
3528
3528
  * @since 1.15.0
@@ -4136,7 +4136,7 @@ declare module "sap/ushell/services/CrossApplicationNavigation" {
4136
4136
  * an optional UI5 component, used to logically attach a possibly generated app state.
4137
4137
  */
4138
4138
  oComponent?: object
4139
- ): Promise<void>;
4139
+ ): Promise<undefined>;
4140
4140
  }
4141
4141
  }
4142
4142
 
@@ -4173,7 +4173,7 @@ declare module "sap/ushell/services/EndUserFeedback" {
4173
4173
  *
4174
4174
  * @returns Rejected promise
4175
4175
  */
4176
- isEnabled(): Object;
4176
+ isEnabled(): object;
4177
4177
  /**
4178
4178
  * @since 1.25.1
4179
4179
  * @deprecated (since 1.93)
@@ -4493,7 +4493,11 @@ declare module "sap/ushell/services/LaunchPage" {
4493
4493
  /**
4494
4494
  * The catalog tile
4495
4495
  */
4496
- oCatalogTile: object
4496
+ oCatalogTile: object,
4497
+ /**
4498
+ * SAP-internal: Whether the tile should be displayed in preview mode
4499
+ */
4500
+ bPreview?: boolean
4497
4501
  ): object;
4498
4502
  /**
4499
4503
  * Returns the UI5 view or control of a catalog tile
@@ -4504,7 +4508,11 @@ declare module "sap/ushell/services/LaunchPage" {
4504
4508
  /**
4505
4509
  * The catalog tile
4506
4510
  */
4507
- oCatalogTile: object
4511
+ oCatalogTile: object,
4512
+ /**
4513
+ * SAP-internal: Whether the tile should be displayed in preview mode
4514
+ */
4515
+ bPreview?: boolean
4508
4516
  ): object;
4509
4517
  /**
4510
4518
  * Returns the catalog's title
@@ -4798,7 +4806,7 @@ declare module "sap/ushell/services/LaunchPage" {
4798
4806
  /**
4799
4807
  * A callback which returns an array of action objects.
4800
4808
  */
4801
- fnProvider: Object
4809
+ fnProvider: object
4802
4810
  ): void;
4803
4811
  /**
4804
4812
  * Removes a group.
@@ -5030,6 +5038,458 @@ declare module "sap/ushell/services/Message" {
5030
5038
  }
5031
5039
  }
5032
5040
 
5041
+ declare module "sap/ushell/services/Navigation" {
5042
+ import Component from "sap/ui/core/Component";
5043
+
5044
+ import { URI } from "sap/ui/core/library";
5045
+
5046
+ /**
5047
+ * @since 1.119.0
5048
+ *
5049
+ * The Unified Shell's Navigation service allows to navigate to "external" targets outside of the currently
5050
+ * running app (but still in scope of the current Fiori launchpad) or create links to such external targets.
5051
+ *
5052
+ * To use the Navigation service you can retrieve an instance via ushell's Container:
5053
+ * ```javascript
5054
+ *
5055
+ * sap.ui.require(["sap/ushell/Container"], async () => {
5056
+ * const oNavigationService = await Container.getServiceAsync("Navigation");
5057
+ * // Use the Navigation service
5058
+ * ```
5059
+ *
5060
+ *
5061
+ * The Navigation service currently provides platform independent functionality.
5062
+ *
5063
+ * The service is meant to be used by applications, plugins and shell components.
5064
+ *
5065
+ * Usage:
5066
+ * ```javascript
5067
+ *
5068
+ * sap.ui.require(["sap/ushell/Container"], async () => {
5069
+ * const oNavigationService = await Container.getServiceAsync("Navigation");
5070
+ * const sHref = await oNavigationService.getHref({
5071
+ * target : {
5072
+ * semanticObject: "Product",
5073
+ * action: "display"
5074
+ * },
5075
+ * params: {
5076
+ * "ProductID": "102343333"
5077
+ * }
5078
+ * }, oComponent);
5079
+ * // do something with the resolved sHref.
5080
+ * });
5081
+ * ```
5082
+ *
5083
+ *
5084
+ * Parameter names and values are case sensitive.
5085
+ *
5086
+ * Note that the usage of multi-valued parameters (specifying an array with more than one member as parameter
5087
+ * value, e.g. `params : { A : ["a1", "a2"] }`) is possible with this API but **strongly discouraged**.
5088
+ * Depending on the used platform / back-end implementation the target matching might not support multi-value
5089
+ * parameters. Furthermore, it is not guaranteed that additional parameter values specified in the back-end
5090
+ * configuration are merged with parameter values passed via the Navigation service.
5091
+ *
5092
+ * Note that the application parameter length (including SemanticObject/Action) shall not exceed 512 bytes
5093
+ * when serialized as UTF-8.
5094
+ *
5095
+ * Note that when receiving the values as startup parameters (as part of the component data object) single
5096
+ * values are represented as an array of size 1. Above example is returned as ` deepEqual(getComponentData().startupParameters
5097
+ * , { "ProductID" : [ "102343333" ] } ) `
5098
+ *
5099
+ * Make sure not to store sensitive data within an URL. URLs may appear in a server log, be persisted inside
5100
+ * and outside the system.
5101
+ *
5102
+ * Note: When constructing large URLs, the URLs may be shortened and persisted on a database server for
5103
+ * prolonged time, the actual data is persisted under a key accessible to any User (guessing the key).
5104
+ *
5105
+ * The same restrictions apply for the Application state.
5106
+ */
5107
+ export default class Navigation {
5108
+ constructor();
5109
+
5110
+ /**
5111
+ * @since 1.119.0
5112
+ *
5113
+ * Attempts to use the browser history to navigate to the previous app.
5114
+ *
5115
+ * A navigation to the Fiori launchpad Home is performed when this method is called on a first navigation.
5116
+ * In all other cases, this function simply performs a browser back navigation.
5117
+ *
5118
+ * Please note that the behavior of this method is subject to change and therefore it may not yield to the
5119
+ * expected results especially on mobile devices where "back" is the previous inner-app state if these are
5120
+ * put into the history!
5121
+ *
5122
+ * @returns A promise which resolves once the back navigation was triggered
5123
+ */
5124
+ backToPreviousApp(): Promise<any>;
5125
+ /**
5126
+ * @since 1.119.0
5127
+ *
5128
+ * Returns a promise resolving to a URL that launches an app with certain parameters. This API can be used
5129
+ * to convert the internal shell hash format into the URL format for use in link tags. The resulting href
5130
+ * is fully encoded and cannot be used in other APIs expecting the internal decoded hash.
5131
+ *
5132
+ *
5133
+ * ```javascript
5134
+ *
5135
+ * sap.ui.require(["sap/ushell/Container"], async () => {
5136
+ * const oNavigationService = await Container.getServiceAsync("Navigation");
5137
+ * const sHref = await oNavigationService.getHref({
5138
+ * target: { shellHash: oLink.intent }
5139
+ * }, oComponent);
5140
+ * // do something with the resolved sHref.
5141
+ * });
5142
+ * ```
5143
+ *
5144
+ *
5145
+ * This API accepts a sap-xapp-state-data parameter that can be used generate a url that can be used to
5146
+ * launch an app with certain data, for example:
5147
+ * ```javascript
5148
+ *
5149
+ * {
5150
+ * target : { semanticObject : "AnObject", action: "action" },
5151
+ * params : { "sap-xapp-state-data" : JSON.stringify({ a: "b", c: "d" }) }
5152
+ * }
5153
+ * ```
5154
+ * Using the arguments as in the example above, a link with a sap-xapp-state parameter that encodes the
5155
+ * provided data is returned. The sap-xapp-state-data parameter does not appear in the generated link.
5156
+ *
5157
+ * Do **not** use "#Shell-home" to navigate to a specific homepage! A proper way for an application to generate
5158
+ * a link to return to the home page of the Fiori launchpad is: `getHref( { target : { shellHash : "#" }})`
5159
+ *
5160
+ * @returns A Promise resolving the encoded href.
5161
+ */
5162
+ getHref(
5163
+ /**
5164
+ * The navigation target to transform.
5165
+ */
5166
+ oTarget: Target,
5167
+ /**
5168
+ * A UI5 component, used to logically attach any related app state.
5169
+ */
5170
+ oComponent?: Component
5171
+ ): Promise<string>;
5172
+ /**
5173
+ * @since 1.119.0
5174
+ *
5175
+ * Resolves the given filters to a list of links available to the user.
5176
+ *
5177
+ * @returns A promise that resolves an array with a list for each filter containing the matched links.
5178
+ * **Note:** The intent is in a **internal** format and cannot be directly put into a link tag. If you want
5179
+ * to use it directly you have to transform it first into a href.
5180
+ * ```javascript
5181
+ *
5182
+ * const sHref = await NavigationService.getHref({ target: { shellHash: oLink.intent} }, oComponent);
5183
+ * ```
5184
+ */
5185
+ getLinks(
5186
+ /**
5187
+ * A list of target filters.
5188
+ */
5189
+ aLinkFilter?: LinkFilter[]
5190
+ ): Promise<Link[][]>;
5191
+ /**
5192
+ * @since 1.119.0
5193
+ *
5194
+ * For a given semantic object, this method considers all actions associated with the semantic object and
5195
+ * returns the one tagged as a "primaryAction". If no inbound tagged as "primaryAction" exists, then the
5196
+ * intent of the first inbound (after sorting has been applied) matching the action "displayFactSheet".
5197
+ *
5198
+ * The primary intent is determined by querying {@link sap.ushell.services.Navigation#getLinks} with the
5199
+ * given semantic object and optional parameter. Then the resulting list is filtered to the outcome that
5200
+ * a single item remains.
5201
+ *
5202
+ * @returns A promise resolving a link matching the 'primaryAction' tag.
5203
+ */
5204
+ getPrimaryIntent(
5205
+ /**
5206
+ * The semantic object.
5207
+ */
5208
+ sSemanticObject: string,
5209
+ /**
5210
+ * A target filter.
5211
+ */
5212
+ oLinkFilter?: LinkFilter
5213
+ ): Promise<Link>;
5214
+ /**
5215
+ * @since 1.119.0
5216
+ *
5217
+ * Returns a list of semantic objects of the intents the current user can navigate to.
5218
+ *
5219
+ * @returns A promise that resolves with an array of strings representing the semantic objects of the intents
5220
+ * the current user can navigate to, or rejects with an error message. The returned array will not contain
5221
+ * duplicates. **Note:** the caller should not rely on the specific order the semantic objects appear
5222
+ * in the returned array.
5223
+ */
5224
+ getSemanticObjects(): Promise<string[]>;
5225
+ /**
5226
+ * @since 1.119.0
5227
+ *
5228
+ * Navigates back in history the number of given steps if this is supported by the underlying platform.
5229
+ * If no argument is provided it will navigate back 1 step.
5230
+ */
5231
+ historyBack(
5232
+ /**
5233
+ * positive integer representing the steps to go back in the history
5234
+ */
5235
+ iSteps: int
5236
+ ): void;
5237
+ /**
5238
+ * @since 1.119.0
5239
+ *
5240
+ * Checks whether the FLP has performed the first navigation. This method can be used to detect whether
5241
+ * the current app was started directly, that is, without a previous navigation to another app, to the FLP
5242
+ * home, or another target that adds an entry in the browser history.
5243
+ *
5244
+ * @returns This promise resolves with a boolean indicating if the current navigation is considered initial
5245
+ */
5246
+ isInitialNavigation(): Promise<boolean>;
5247
+ /**
5248
+ * @since 1.119.0
5249
+ *
5250
+ * Calculates whether the given navigation targets are supported for the given parameters, form factor etc.
5251
+ * . "Supported" means that a valid navigation target is configured for the user and for the given device.
5252
+ *
5253
+ * `isNavigationSupported` is a test function for {@link sap.ushell.services.Navigation#navigate} and {@link sap.ushell.services.Navigation#getHref}.
5254
+ *
5255
+ * Example usage:
5256
+ * ```javascript
5257
+ *
5258
+ * const aResult = await oNavigationService.isNavigationSupported([{
5259
+ * target: { shellHash: "SalesOrder-approve?SOId=1234" }
5260
+ * }])
5261
+ * if (aResult[0].supported===true){
5262
+ * // enable link
5263
+ * }
5264
+ * else {
5265
+ * // disable link
5266
+ * }
5267
+ * ```
5268
+ */
5269
+ isNavigationSupported(
5270
+ /**
5271
+ * A list of navigation targets to be checked.
5272
+ */
5273
+ aTargets: Target[],
5274
+ /**
5275
+ * The root component of the application.
5276
+ */
5277
+ oComponent?: Component
5278
+ ): void;
5279
+ /**
5280
+ * @since 1.119.0
5281
+ *
5282
+ * Triggers a navigation to a specified target outside of the currently running application (e.g. different
5283
+ * launchpad application). Invocation will trigger a hash change and subsequent invocation of the target.
5284
+ *
5285
+ * If the navigation target opens in a new window the running application may be retained.
5286
+ *
5287
+ * This API accepts a sap-xapp-state-data parameter that can be used generate a url that can be used to
5288
+ * launch an app with certain data, for example:
5289
+ * ```javascript
5290
+ *
5291
+ * {
5292
+ * target : { semanticObject : "AnObject", action: "action" },
5293
+ * params : { "sap-xapp-state-data" : JSON.stringify({ a: "b", c: "d" }) }
5294
+ * }
5295
+ * ```
5296
+ * Using the arguments as in the example above, a link with a sap-xapp-state parameter that encodes the
5297
+ * provided data is returned. The sap-xapp-state-data parameter does not appear in the generated link.
5298
+ *
5299
+ * Do **not** use "#Shell-home" to navigate to a specific homepage! A proper way for an application to generate
5300
+ * a link to return to the home page of the Fiori launchpad is: `navigate( { target : { shellHash : "#"
5301
+ * }})`
5302
+ *
5303
+ * @returns A Promise resolving once the navigation was triggered. The Promise might never reject or resolve
5304
+ * when an error occurs during the navigation.
5305
+ */
5306
+ navigate(
5307
+ /**
5308
+ * The navigation target.
5309
+ */
5310
+ oTarget: Target,
5311
+ /**
5312
+ * A UI5 component, used to logically attach any related app state.
5313
+ */
5314
+ oComponent?: Component
5315
+ ): Promise<any>;
5316
+ /**
5317
+ * @since 1.119.0
5318
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
5319
+ *
5320
+ * Resolves the URL hash fragment. This function gets the hash part of the URL and returns the URL of the
5321
+ * target application.
5322
+ *
5323
+ * @returns A Promise resolving the intent.
5324
+ */
5325
+ resolveIntent(
5326
+ /**
5327
+ * The formatted URL hash fragment in internal format (as obtained by the SAPUI5 hasher service) not as
5328
+ * given in `location.hash`)! Example: `#SemanticObject-action?P1=V1&P2=A%20B%20C`
5329
+ */
5330
+ sHashFragment: string
5331
+ ): Promise<{
5332
+ url: string;
5333
+ }>;
5334
+ }
5335
+ /**
5336
+ * Optional properties may not be present in the link.
5337
+ */
5338
+ export type Link = {
5339
+ /**
5340
+ * The intent: for example "#AnObject-Action?A=B&C=e&C=j" **Note:** The intent is in a **internal** format
5341
+ * and cannot be directly put into a link tag.
5342
+ */
5343
+ intent: string;
5344
+ /**
5345
+ * The title of the link.
5346
+ */
5347
+ text: string;
5348
+ /**
5349
+ * A URI to the icon: for example "sap-icon://Fiori2/F0018".
5350
+ */
5351
+ icon?: URI;
5352
+ /**
5353
+ * The short title of the link.
5354
+ */
5355
+ subTitle?: string;
5356
+ /**
5357
+ * The short title of the link.
5358
+ */
5359
+ shortTitle?: string;
5360
+ /**
5361
+ * The list of tags.
5362
+ */
5363
+ tags?: string[];
5364
+ };
5365
+
5366
+ export type LinkFilter = {
5367
+ /**
5368
+ * Matches the semantic object of a link.
5369
+ */
5370
+ semanticObject?: string;
5371
+ /**
5372
+ * Matches the action object of a link.
5373
+ */
5374
+ action?: string;
5375
+ /**
5376
+ * Matches the parameters of a link. **simple format:**
5377
+ * ```javascript
5378
+ *
5379
+ * {
5380
+ * P1: "B",
5381
+ * P2: ["e", "j"],
5382
+ * }
5383
+ * ```
5384
+ * **extended format:**
5385
+ * ```javascript
5386
+ *
5387
+ * {
5388
+ * P1: { value: "v1" },
5389
+ * P2: { value: ["v2", "v3"] }
5390
+ * P3: { value: "v4", required: true }
5391
+ * }
5392
+ * ```
5393
+ * `required`: Whether the parameter is be required (`true`) or not (`false`) in the signature of the matching
5394
+ * target. Please note that this option is only effective on platforms using the `sap.ushell.services.ClientSideTargetResolution`
5395
+ */
5396
+ params?: object;
5397
+ /**
5398
+ * If `true`, matches only links that use at least one (non sap-) parameter from 'params'.
5399
+ */
5400
+ withAtLeastOneUsedParam?: boolean;
5401
+ /**
5402
+ * How the matching links should be sorted. Possible Values:
5403
+ * - `"intent"` lexicographical sort on returned 'intent' field
5404
+ * - `"text"` lexicographical sort on returned 'text' field
5405
+ * - `"priority"` experimental - top intents are returned first
5406
+ */
5407
+ sortResultsBy?: string;
5408
+ /**
5409
+ * If true, only apps that match exactly the supplied technology (for example sap-ui-tech-hint=WDA) will
5410
+ * be considered.
5411
+ */
5412
+ treatTechHintAsFilter?: boolean;
5413
+ /**
5414
+ * The UI5 component invoking the service, shall be a root component.
5415
+ */
5416
+ ui5Component: Component;
5417
+ /**
5418
+ * **SAP internal usage only** Application state key to add to the generated links.
5419
+ */
5420
+ appStateKey?: string;
5421
+ /**
5422
+ * Whether intents should be returned in compact format.
5423
+ */
5424
+ compactIntents?: boolean;
5425
+ /**
5426
+ * Matches only links which match an inbound with certain tags.
5427
+ */
5428
+ tags?: string[];
5429
+ };
5430
+
5431
+ /**
5432
+ * A target describing the intent: #-~?&/
5433
+ * **Note:** The intent shall not exceed 512 bytes when serialized as UTF-8.
5434
+ */
5435
+ export type Target = {
5436
+ /**
5437
+ * Defaults to current hash. Please note that the only the `appSpecificRoute` will be considered when target
5438
+ * is omitted.
5439
+ */
5440
+ target?: {
5441
+ /**
5442
+ * The semanticObject part of the intent.
5443
+ */
5444
+ semanticObject?: string;
5445
+ /**
5446
+ * The action part of the intent.
5447
+ */
5448
+ action?: string;
5449
+ /**
5450
+ * The contextRaw part of the intent without the '~' prefix.
5451
+ */
5452
+ contextRaw?: string;
5453
+ /**
5454
+ * The entire intent including parameters and appSpecificRoute. **Note:** If set all other parameters are
5455
+ * ignored. **Note:** While parameters need to be url-encoded once when used in the `shellHash` the app
5456
+ * specific route must not be encoded.
5457
+ */
5458
+ shellHash?: string;
5459
+ };
5460
+ /**
5461
+ * The parameters of the target **simple format:**
5462
+ * ```javascript
5463
+ *
5464
+ * {
5465
+ * P1: "B",
5466
+ * P2: ["e", "j"],
5467
+ * }
5468
+ * ```
5469
+ * **extended format:**
5470
+ * ```javascript
5471
+ *
5472
+ * {
5473
+ * P1: { value: "v1" },
5474
+ * P2: { value: ["v2", "v3"] }
5475
+ * }
5476
+ * ```
5477
+ * **Note:** Parameter values can contain special characters and must be provided unencoded.
5478
+ * The APIs takes care of the necessary encodings.
5479
+ */
5480
+ params?: object;
5481
+ /**
5482
+ * The appSpecificRoute without the '&/' prefix.
5483
+ */
5484
+ appSpecificRoute?: string;
5485
+ /**
5486
+ * Wether the parameter provided in `params` should be applied or ignored. Parameters already set by the
5487
+ * shellHash are ignored.
5488
+ */
5489
+ processParams?: boolean;
5490
+ };
5491
+ }
5492
+
5033
5493
  declare module "sap/ushell/services/NavTargetResolution" {
5034
5494
  /**
5035
5495
  * @since 1.15.0
@@ -5070,8 +5530,8 @@ declare module "sap/ushell/services/NavTargetResolution" {
5070
5530
  * Tells whether the given navigation intent(s) are supported for the given parameters Supported" means
5071
5531
  * that a valid navigation target is configured for the user for the given device form factor.
5072
5532
  *
5073
- * This is effectively a test function for {@link toExternal}/ {@link hrefForExternal}. It is functionally
5074
- * equivalent to {@link isIntentSupported} but accepts the same input as {@link toExternal}/ {@link hrefForExternal}.
5533
+ * This is effectively a test function for {@link toExternal}/ {@link hrefForExternal}. It function accepts
5534
+ * the same input as {@link toExternal}/ {@link hrefForExternal}.
5075
5535
  *
5076
5536
  * @returns A `jQuery.Deferred` object's promise which is resolved with an array (!) of objects representing
5077
5537
  * whether the intent is supported or not objects with a property `supported` of type `boolean`.
@@ -5323,7 +5783,7 @@ declare module "sap/ushell/services/Notifications" {
5323
5783
  *
5324
5784
  * @returns Returns the number of notifications of the user
5325
5785
  */
5326
- getNotificationsCount(): number;
5786
+ getNotificationsCount(): int;
5327
5787
  /**
5328
5788
  * @since 1.44
5329
5789
  *
@@ -5635,9 +6095,9 @@ declare module "sap/ushell/services/Personalization" {
5635
6095
  *
5636
6096
  * Note: the underlying storage model for Objects stored with getContainer / getPersonalizationContainer
5637
6097
  * is identical.
5638
- * Thus you can safely migrate your client implementation from the deprecated getContainer to getPersonalizationContainer
5639
- * without loss of data. One may even run mixed set of applications on the same container keys. The sole
5640
- * differences are w.r.t. client side handling of the Context data within one session.
6098
+ * Thus you can safely migrate your client implementation from the deprecated `getPersonalizationContainer`
6099
+ * to `getContainer` without loss of data. One may even run mixed set of applications on the same container
6100
+ * keys. The sole differences are w.r.t. client side handling of the Context data within one session.
5641
6101
  *
5642
6102
  * If you want to use the variant interface, use the following pattern
5643
6103
  * ```javascript
@@ -9443,7 +9903,69 @@ declare module "sap/ushell/ui5service/UserStatus" {
9443
9903
  }
9444
9904
 
9445
9905
  declare namespace sap {
9906
+ /**
9907
+ * @since 1.15.0
9908
+ *
9909
+ * SAP library: sap.ushell
9910
+ */
9446
9911
  namespace ushell {
9912
+ /**
9913
+ * @since 1.15.0
9914
+ *
9915
+ * Initializes the Unified Shell Container.
9916
+ *
9917
+ * This platform-specific method must be called exactly once in the very beginning to resolve all necessary
9918
+ * dependencies and prepare Unified Shell's global infrastructure. As soon as the returned promise has been
9919
+ * resolved, the container will be available as a singleton object in namespace `sap.ushell.Container`.
9920
+ *
9921
+ * **Note:** `sap.ushell.bootstrap` is used internally by the SAP Fiori launchpad. Developers who build
9922
+ * apps or plugins for the SAP Fiori launchpad should use `sap.ushell.bootstrap` in their code. However,
9923
+ * there are special use cases where a customized bootstrap of Unified Shell is helpful, e.g. when Unified
9924
+ * Shell UI services need to be accessed without having loaded the Unified Shell's UI. In such cases, additional
9925
+ * dependencies need to be required to allow proper usage of the Unified Shell's functionality.
9926
+ *
9927
+ * **Example:**
9928
+ * ```javascript
9929
+ *
9930
+ * <script id="sap-ui-bootstrap"
9931
+ * src=".../sap-ui-core.js"
9932
+ * data-sap-ui-libs="sap.ushell, sap.m">
9933
+ * </script>
9934
+ *
9935
+ * <!--...-->
9936
+ *
9937
+ * <script>
9938
+ * sap.ui.getCore().attachInit(function () {
9939
+ * // Container needs to be required to make sap.ushell.bootstrap available
9940
+ * sap.ui.require(["sap/ushell/Container", ... ], function (Container) {
9941
+ * window["sap-ushell-config"] = {...};
9942
+ *
9943
+ * sap.ushell.bootstrap("abap", {
9944
+ * abap: "sap.ushell_abap.adapters.abap"
9945
+ * }).then(function () {
9946
+ * sap.ushell.Container.getServiceAsync(\/* Service *\/).then(function (serviceInstance) {
9947
+ * ...
9948
+ * });
9949
+ * });
9950
+ * });
9951
+ * });
9952
+ * </script>
9953
+ * ```
9954
+ *
9955
+ *
9956
+ * @returns a promise that is resolved once the container is available
9957
+ */
9958
+ function bootstrap(
9959
+ /**
9960
+ * the target platform, such as "abap" or "cdm".
9961
+ */
9962
+ sPlatform: string,
9963
+ /**
9964
+ * the map with platform specific package names for the service adapters. You only need to specify these
9965
+ * package names if they differ from the standard name `"sap.ushell.adapters." + sPlatform`.
9966
+ */
9967
+ mAdapterPackagesByPlatform?: Record<string, string>
9968
+ ): jQuery.Promise;
9447
9969
  /**
9448
9970
  * @since 1.15.0
9449
9971
  *
@@ -10483,6 +11005,8 @@ declare namespace sap {
10483
11005
 
10484
11006
  "sap/ushell/services/Message": undefined;
10485
11007
 
11008
+ "sap/ushell/services/Navigation": undefined;
11009
+
10486
11010
  "sap/ushell/services/NavTargetResolution": undefined;
10487
11011
 
10488
11012
  "sap/ushell/services/Notifications": undefined;