@sapui5/sap.ushell 1.138.1 → 1.139.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 (756) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ushell/.library +1 -1
  3. package/src/main/js/sap/ushell/ApplicationType/UrlPostProcessing.js +14 -10
  4. package/src/main/js/sap/ushell/ApplicationType/wcfResolution.js +32 -26
  5. package/src/main/js/sap/ushell/Container.js +0 -1
  6. package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
  7. package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
  8. package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
  9. package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
  10. package/src/main/js/sap/ushell/URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
  11. package/src/main/js/sap/ushell/URLTemplateProcessor/DependencyGraph.js +1 -1
  12. package/src/main/js/sap/ushell/URLTemplateProcessor/Functions.js +1 -1
  13. package/src/main/js/sap/ushell/URLTemplateProcessor/Resolvers.js +1 -1
  14. package/src/main/js/sap/ushell/URLTemplateProcessor/TemplateParameterParser.js +1 -1
  15. package/src/main/js/sap/ushell/URLTemplateProcessor/utils.js +1 -1
  16. package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
  17. package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +12 -12
  18. package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
  19. package/src/main/js/sap/ushell/User.js +32 -12
  20. package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
  21. package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
  22. package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
  23. package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
  24. package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
  25. package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
  26. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
  27. package/src/main/js/sap/ushell/adapters/cdm/PersonalizationV2Adapter.js +1 -1
  28. package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
  29. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
  30. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
  31. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
  32. package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
  33. package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
  34. package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
  35. package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
  36. package/src/main/js/sap/ushell/adapters/cdm/v3/FlpLaunchPageAdapter.js +1 -1
  37. package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
  38. package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
  39. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
  40. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
  41. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
  42. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
  43. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
  44. package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
  45. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
  46. package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionInternalAdapter.js +1 -1
  47. package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
  48. package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
  49. package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
  50. package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +1 -1
  51. package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
  52. package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
  53. package/src/main/js/sap/ushell/adapters/local/FlpLaunchPageAdapter.js +1 -1
  54. package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +1 -1
  55. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
  56. package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionInternalAdapter.js +1 -1
  57. package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
  58. package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
  59. package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
  60. package/src/main/js/sap/ushell/adapters/local/PersonalizationV2Adapter.js +1 -1
  61. package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
  62. package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
  63. package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
  64. package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
  65. package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
  66. package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
  67. package/src/main/js/sap/ushell/appIntegration/AppLifeCycle.js +3 -5
  68. package/src/main/js/sap/ushell/appIntegration/ApplicationContainer.js +14 -1
  69. package/src/main/js/sap/ushell/appIntegration/ApplicationHandle.js +8 -3
  70. package/src/main/js/sap/ushell/appIntegration/IframeApplicationContainer.js +8 -8
  71. package/src/main/js/sap/ushell/appIntegration/PostMessageManager/AppruntimeHandler.js +17 -12
  72. package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ExtensionItems.js +6 -23
  73. package/src/main/js/sap/ushell/appIntegration/PostMessageManager/LifecycleHandler.js +112 -92
  74. package/src/main/js/sap/ushell/appIntegration/PostMessageManager/NWBCHandler.js +15 -7
  75. package/src/main/js/sap/ushell/appIntegration/PostMessageManager/ServiceHandler.js +257 -214
  76. package/src/main/js/sap/ushell/appIntegration/PostMessageManager.js +347 -117
  77. package/src/main/js/sap/ushell/appIntegration/UI5ApplicationContainer.js +1 -0
  78. package/src/main/js/sap/ushell/appIntegration/contracts/EmbeddedUI5Handler.js +15 -19
  79. package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV1Handler.js +15 -14
  80. package/src/main/js/sap/ushell/appIntegration/contracts/StatefulContainerV2Handler.js +38 -40
  81. package/src/main/js/sap/ushell/appRuntime/ui5/renderers/fiori2/RendererExtensions.js +1 -1
  82. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppConfiguration.js +1 -1
  83. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppLifeCycle.js +1 -1
  84. package/src/main/js/sap/ushell/appRuntime/ui5/services/AppState.js +1 -8
  85. package/src/main/js/sap/ushell/appRuntime/ui5/services/Bookmark.js +1 -1
  86. package/src/main/js/sap/ushell/appRuntime/ui5/services/BookmarkV2.js +1 -1
  87. package/src/main/js/sap/ushell/appRuntime/ui5/services/CommonDataModel.js +1 -1
  88. package/src/main/js/sap/ushell/appRuntime/ui5/services/Container.js +1 -1
  89. package/src/main/js/sap/ushell/appRuntime/ui5/services/CrossApplicationNavigation.js +1 -1
  90. package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension/Item.js +1 -1
  91. package/src/main/js/sap/ushell/appRuntime/ui5/services/Extension.js +25 -1
  92. package/src/main/js/sap/ushell/appRuntime/ui5/services/FlpLaunchPage.js +1 -1
  93. package/src/main/js/sap/ushell/appRuntime/ui5/services/FrameBoundExtension.js +1 -1
  94. package/src/main/js/sap/ushell/appRuntime/ui5/services/LaunchPage.js +1 -1
  95. package/src/main/js/sap/ushell/appRuntime/ui5/services/MessageBroker.js +1 -1
  96. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolution.js +1 -1
  97. package/src/main/js/sap/ushell/appRuntime/ui5/services/NavTargetResolutionInternal.js +1 -1
  98. package/src/main/js/sap/ushell/appRuntime/ui5/services/Navigation.js +1 -1
  99. package/src/main/js/sap/ushell/appRuntime/ui5/services/ReferenceResolver.js +1 -1
  100. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigation.js +1 -1
  101. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellNavigationInternal.js +1 -1
  102. package/src/main/js/sap/ushell/appRuntime/ui5/services/ShellUIService.js +1 -1
  103. package/src/main/js/sap/ushell/appRuntime/ui5/services/UserInfo.js +1 -1
  104. package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
  105. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/StepConfiguration.json +0 -2
  106. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/logger.js +1 -1
  107. package/src/main/js/sap/ushell/bootstrap/SchedulingAgent/state.js +1 -1
  108. package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
  109. package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +4 -0
  110. package/src/main/js/sap/ushell/bootstrap/sandbox2.js +1 -1
  111. package/src/main/js/sap/ushell/components/CatalogsManager.js +157 -157
  112. package/src/main/js/sap/ushell/components/ComponentKeysHandler.js +180 -187
  113. package/src/main/js/sap/ushell/components/DestroyHelper.js +4 -4
  114. package/src/main/js/sap/ushell/components/GroupsHelper.js +21 -21
  115. package/src/main/js/sap/ushell/components/HomepageManager.js +465 -424
  116. package/src/main/js/sap/ushell/components/MessagingHelper.js +24 -24
  117. package/src/main/js/sap/ushell/components/SharedComponentUtils.js +16 -16
  118. package/src/main/js/sap/ushell/components/_HomepageManager/DashboardLoadingManager.js +43 -43
  119. package/src/main/js/sap/ushell/components/_HomepageManager/PagingManager.js +43 -39
  120. package/src/main/js/sap/ushell/components/_HomepageManager/PersistentPageOperationAdapter.js +166 -175
  121. package/src/main/js/sap/ushell/components/_HomepageManager/TransientPageOperationAdapter.js +57 -57
  122. package/src/main/js/sap/ushell/components/appfinder/AppFinder.controller.js +96 -99
  123. package/src/main/js/sap/ushell/components/appfinder/AppFinderView.js +27 -21
  124. package/src/main/js/sap/ushell/components/appfinder/Catalog.controller.js +180 -178
  125. package/src/main/js/sap/ushell/components/appfinder/CatalogView.js +56 -56
  126. package/src/main/js/sap/ushell/components/appfinder/Component.js +12 -16
  127. package/src/main/js/sap/ushell/components/appfinder/EasyAccess.controller.js +129 -133
  128. package/src/main/js/sap/ushell/components/appfinder/EasyAccessView.js +10 -10
  129. package/src/main/js/sap/ushell/components/appfinder/GroupListPopover.controller.js +22 -22
  130. package/src/main/js/sap/ushell/components/appfinder/GroupListPopoverView.js +14 -14
  131. package/src/main/js/sap/ushell/components/appfinder/HierarchyApps.controller.js +75 -78
  132. package/src/main/js/sap/ushell/components/appfinder/HierarchyAppsView.js +24 -27
  133. package/src/main/js/sap/ushell/components/appfinder/HierarchyFolders.controller.js +44 -46
  134. package/src/main/js/sap/ushell/components/appfinder/HierarchyFoldersView.js +22 -22
  135. package/src/main/js/sap/ushell/components/appfinder/VisualizationOrganizerHelper.js +28 -28
  136. package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
  137. package/src/main/js/sap/ushell/components/cards/Card.controller.js +16 -20
  138. package/src/main/js/sap/ushell/components/cards/Configuration.controller.js +35 -37
  139. package/src/main/js/sap/ushell/components/cards/ManifestPropertyHelper.js +32 -34
  140. package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.controller.js +7 -12
  141. package/src/main/js/sap/ushell/components/cepsearchresult/app/Main.view.xml +2 -9
  142. package/src/main/js/sap/ushell/components/cepsearchresult/app/cards/searchresultwidget/Extension.js +0 -1
  143. package/src/main/js/sap/ushell/components/cepsearchresult/app/css/style.css +58 -0
  144. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/AdvancedFormatters.js +0 -1
  145. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/Edition.js +0 -1
  146. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/EditionAdvanced.js +0 -1
  147. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/appendStyleVars.js +0 -1
  148. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Category.js +13 -13
  149. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Highlighter.js +2 -5
  150. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/Paginator.js +0 -2
  151. package/src/main/js/sap/ushell/components/cepsearchresult/app/util/controls/categories/Event.js +4 -3
  152. package/src/main/js/sap/ushell/components/contentFinder/CatalogService.js +8 -9
  153. package/src/main/js/sap/ushell/components/contentFinder/Component.js +2 -2
  154. package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -3
  155. package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
  156. package/src/main/js/sap/ushell/components/contentFinder/dialog/Component.js +2 -2
  157. package/src/main/js/sap/ushell/components/contentFinder/dialog/manifest.json +1 -1
  158. package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
  159. package/src/main/js/sap/ushell/components/contentFinder/model/GraphQLListBinding.js +3 -5
  160. package/src/main/js/sap/ushell/components/contentFinder/model/GraphQLModel.js +2 -2
  161. package/src/main/js/sap/ushell/components/contentFinder/model/formatter.js +13 -6
  162. package/src/main/js/sap/ushell/components/contentFinder/resources/resources.properties +3 -3
  163. package/src/main/js/sap/ushell/components/contentFinder/resources/resources_en_US_saprigi.properties +1 -1
  164. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearch.view.xml +2 -14
  165. package/src/main/js/sap/ushell/components/contentFinder/view/AppSearchCategoryTreeTable.fragment.xml +14 -7
  166. package/src/main/js/sap/ushell/components/contentFinder/view/VisualizationsNoDataIllustratedMessage.fragment.xml +1 -1
  167. package/src/main/js/sap/ushell/components/contentFinderStandalone/Component.js +2 -2
  168. package/src/main/js/sap/ushell/components/contentFinderStandalone/controller/ContentFinderStandalone.controller.js +2 -4
  169. package/src/main/js/sap/ushell/components/contentFinderStandalone/manifest.json +1 -1
  170. package/src/main/js/sap/ushell/components/factsheet/Component.js +13 -8
  171. package/src/main/js/sap/ushell/components/factsheet/annotation/Mapping.js +166 -118
  172. package/src/main/js/sap/ushell/components/factsheet/controls/PictureTile.js +20 -16
  173. package/src/main/js/sap/ushell/components/factsheet/controls/PictureTileRenderer.js +3 -3
  174. package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewer.js +84 -77
  175. package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerItem.js +4 -4
  176. package/src/main/js/sap/ushell/components/factsheet/controls/PictureViewerRenderer.js +2 -2
  177. package/src/main/js/sap/ushell/components/factsheet/factory/ThingInspector.js +1356 -1139
  178. package/src/main/js/sap/ushell/components/factsheet/tools/ODataUrlTemplating.js +9 -5
  179. package/src/main/js/sap/ushell/components/factsheet/views/ThingViewer.controller.js +1 -1
  180. package/src/main/js/sap/ushell/components/factsheet/views/ThingViewer.view.js +9 -6
  181. package/src/main/js/sap/ushell/components/homeApp/error/Component.js +1 -1
  182. package/src/main/js/sap/ushell/components/homeApp/error/HomeAppError.controller.js +4 -4
  183. package/src/main/js/sap/ushell/components/homepage/ActionMode.js +51 -48
  184. package/src/main/js/sap/ushell/components/homepage/Component.js +11 -11
  185. package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +185 -192
  186. package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +60 -50
  187. package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +199 -202
  188. package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +152 -160
  189. package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
  190. package/src/main/js/sap/ushell/components/pages/ActionMode.js +72 -74
  191. package/src/main/js/sap/ushell/components/pages/Component.js +7 -32
  192. package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +46 -46
  193. package/src/main/js/sap/ushell/components/pages/StateManager.js +9 -10
  194. package/src/main/js/sap/ushell/components/pages/controller/MyHome.controller.js +4 -4
  195. package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +243 -215
  196. package/src/main/js/sap/ushell/components/pages/controller/PagesAndSpaceId.js +23 -24
  197. package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
  198. package/src/main/js/sap/ushell/components/runtimeSwitcher/Component.js +1 -1
  199. package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +60 -70
  200. package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
  201. package/src/main/js/sap/ushell/components/shell/FloatingContainer/Component.js +0 -5
  202. package/src/main/js/sap/ushell/components/shell/FloatingContainer/controls/FloatingContainer.js +3 -3
  203. package/src/main/js/sap/ushell/components/shell/FloatingContainer/manifest.json +1 -1
  204. package/src/main/js/sap/ushell/components/shell/MenuBar/Component.js +18 -50
  205. package/src/main/js/sap/ushell/components/shell/MenuBar/controller/MenuBar.controller.js +73 -83
  206. package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
  207. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/Component.js +1 -1
  208. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +49 -50
  209. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenuButton.controller.js +5 -5
  210. package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
  211. package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +35 -33
  212. package/src/main/js/sap/ushell/components/shell/Notifications/Notifications.controller.js +8 -9
  213. package/src/main/js/sap/ushell/components/shell/Notifications/NotificationsList.controller.js +5 -11
  214. package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +63 -42
  215. package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +20 -22
  216. package/src/main/js/sap/ushell/components/shell/Search/Component.js +20 -12
  217. package/src/main/js/sap/ushell/components/shell/Search/ESearch.js +18 -21
  218. package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
  219. package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +21 -14
  220. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchCEP.controller.js +204 -250
  221. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +25 -24
  222. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +9 -9
  223. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +4 -4
  224. package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchServiceProvider.js +63 -65
  225. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/Component.js +420 -0
  226. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/FrequentActivityProvider.js +84 -0
  227. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/RecentSearchProvider.js +63 -0
  228. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchProvider.js +141 -0
  229. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/SearchProviders/SearchServiceProvider.js +177 -0
  230. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/manifest.json +43 -0
  231. package/src/main/js/sap/ushell/components/shell/SearchCEPNew/resources/resources.properties +17 -0
  232. package/src/main/js/sap/ushell/components/shell/Settings/Component.js +50 -35
  233. package/src/main/js/sap/ushell/components/shell/Settings/ErrorMessageHelper.js +10 -10
  234. package/src/main/js/sap/ushell/components/shell/Settings/UserSettings.controller.js +150 -150
  235. package/src/main/js/sap/ushell/components/shell/Settings/appearance/Appearance.controller.js +66 -63
  236. package/src/main/js/sap/ushell/components/shell/Settings/appearance/AppearanceEntry.js +12 -15
  237. package/src/main/js/sap/ushell/components/shell/Settings/homepage/HomepageEntry.js +34 -37
  238. package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsEntry.js +6 -7
  239. package/src/main/js/sap/ushell/components/shell/Settings/notifications/NotificationsSetting.controller.js +46 -48
  240. package/src/main/js/sap/ushell/components/shell/Settings/search/Search.controller.js +4 -4
  241. package/src/main/js/sap/ushell/components/shell/Settings/search/SearchEntry.js +13 -13
  242. package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesEntry.js +11 -13
  243. package/src/main/js/sap/ushell/components/shell/Settings/spaces/SpacesSetting.controller.js +41 -42
  244. package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountEntry.js +11 -15
  245. package/src/main/js/sap/ushell/components/shell/Settings/userAccount/UserAccountSelector.controller.js +35 -37
  246. package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesEntry.js +6 -7
  247. package/src/main/js/sap/ushell/components/shell/Settings/userActivities/UserActivitiesSetting.controller.js +7 -8
  248. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/Component.js +2 -2
  249. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsEntry.js +16 -16
  250. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/UserDefaultsForm.js +17 -17
  251. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/ExtendedValueDialog.controller.js +21 -24
  252. package/src/main/js/sap/ushell/components/shell/Settings/userDefaults/controller/UserDefaultsSetting.controller.js +136 -137
  253. package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/LanguageRegionSelector.controller.js +73 -78
  254. package/src/main/js/sap/ushell/components/shell/Settings/userLanguageRegion/UserLanguageRegionEntry.js +8 -8
  255. package/src/main/js/sap/ushell/components/shell/ShellBar/Component.js +30 -23
  256. package/src/main/js/sap/ushell/components/shell/ShellBar/controller/ShellBar.controller.js +34 -22
  257. package/src/main/js/sap/ushell/components/shell/ShellBar/manifest.json +1 -1
  258. package/src/main/js/sap/ushell/components/shell/ShellBar/view/ShellBar.view.xml +21 -9
  259. package/src/main/js/sap/ushell/components/shell/SideNavigation/Component.js +7 -11
  260. package/src/main/js/sap/ushell/components/shell/SideNavigation/controller/SideNavigation.controller.js +3 -3
  261. package/src/main/js/sap/ushell/components/shell/SideNavigation/manifest.json +1 -1
  262. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AllSpaces.js +3 -4
  263. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/AppFinder.js +2 -2
  264. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Favorites.js +8 -3
  265. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericFixedNavigationListProvider.js +2 -2
  266. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/GenericNavigationListProvider.js +2 -2
  267. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/MyHome.js +2 -2
  268. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/NavigationHelper.js +4 -4
  269. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/RecentActivity.js +4 -4
  270. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/Spaces.js +5 -6
  271. package/src/main/js/sap/ushell/components/shell/SideNavigation/modules/SpacesNavigationListProvider.js +2 -3
  272. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +3 -4
  273. package/src/main/js/sap/ushell/components/shell/UserActionsMenu/UserActionsMenu.controller.js +47 -48
  274. package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +27 -30
  275. package/src/main/js/sap/ushell/components/tiles/action/ActionTile.controller.js +55 -55
  276. package/src/main/js/sap/ushell/components/tiles/action/Configuration.controller.js +39 -41
  277. package/src/main/js/sap/ushell/components/tiles/applauncher/Component.js +3 -3
  278. package/src/main/js/sap/ushell/components/tiles/applauncher/Configuration.controller.js +26 -27
  279. package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.controller.js +66 -66
  280. package/src/main/js/sap/ushell/components/tiles/applauncher/StaticTile.view.js +5 -5
  281. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Component.js +2 -2
  282. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/Configuration.controller.js +27 -27
  283. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.controller.js +107 -107
  284. package/src/main/js/sap/ushell/components/tiles/applauncherdynamic/DynamicTile.view.js +7 -7
  285. package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/Component.js +7 -7
  286. package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.controller.js +31 -31
  287. package/src/main/js/sap/ushell/components/tiles/cdm/applauncher/StaticTile.view.js +2 -2
  288. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/Component.js +15 -15
  289. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.controller.js +85 -86
  290. package/src/main/js/sap/ushell/components/tiles/cdm/applauncherdynamic/DynamicTile.view.js +4 -4
  291. package/src/main/js/sap/ushell/components/tiles/generic.js +133 -131
  292. package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.controller.js +71 -71
  293. package/src/main/js/sap/ushell/components/tiles/indicatorArea/AreaChartTile.view.js +17 -17
  294. package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.controller.js +49 -49
  295. package/src/main/js/sap/ushell/components/tiles/indicatorDual/DualTile.view.js +9 -9
  296. package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.controller.js +80 -80
  297. package/src/main/js/sap/ushell/components/tiles/indicatorDualComparison/DualComparison.view.js +3 -3
  298. package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.controller.js +74 -75
  299. package/src/main/js/sap/ushell/components/tiles/indicatorDualContribution/DualContribution.view.js +3 -3
  300. package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.controller.js +55 -55
  301. package/src/main/js/sap/ushell/components/tiles/indicatorDualDeviation/DualDeviation.view.js +12 -12
  302. package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.controller.js +83 -84
  303. package/src/main/js/sap/ushell/components/tiles/indicatorDualTrend/DualTrend.view.js +15 -15
  304. package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.controller.js +71 -71
  305. package/src/main/js/sap/ushell/components/tiles/indicatorHarveyBall/HarveyBallTile.view.js +7 -7
  306. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/cache.js +4 -4
  307. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/indicatorTileHelper.js +4 -4
  308. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/oData4Analytics.js +230 -232
  309. package/src/main/js/sap/ushell/components/tiles/indicatorTileUtils/smartBusinessUtil.js +271 -272
  310. package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.controller.js +55 -55
  311. package/src/main/js/sap/ushell/components/tiles/indicatorcomparison/ComparisonTile.view.js +4 -4
  312. package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.controller.js +53 -53
  313. package/src/main/js/sap/ushell/components/tiles/indicatorcontribution/ContributionTile.view.js +5 -5
  314. package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.controller.js +20 -20
  315. package/src/main/js/sap/ushell/components/tiles/indicatordeviation/DeviationTile.view.js +11 -11
  316. package/src/main/js/sap/ushell/components/tiles/indicatornumeric/NumericTile.controller.js +14 -15
  317. package/src/main/js/sap/ushell/components/tiles/indicatornumeric/NumericTile.view.js +10 -10
  318. package/src/main/js/sap/ushell/components/tiles/sbtilecontent.js +6 -6
  319. package/src/main/js/sap/ushell/components/tiles/utils.js +699 -664
  320. package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +217 -217
  321. package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +4 -8
  322. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +40 -42
  323. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +257 -262
  324. package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.layout.js +19 -20
  325. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +6 -6
  326. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +37 -38
  327. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +97 -100
  328. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +81 -82
  329. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnRenderer.js +9 -9
  330. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +38 -39
  331. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRenderer.js +5 -5
  332. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +8 -9
  333. package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRowRenderer.js +9 -9
  334. package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
  335. package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +4 -4
  336. package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +15 -15
  337. package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
  338. package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
  339. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/Avatar.js +7 -1
  340. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/ListItemGroup.js +90 -0
  341. package/src/main/js/sap/ushell/gen/ui5/webcomponents/dist/MenuItem.js +10 -0
  342. package/src/main/js/sap/ushell/gen/ui5/webcomponents-base.js +19 -11
  343. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/Search.js +144 -0
  344. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItem.js +68 -0
  345. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchItemGroup.js +34 -0
  346. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchMessageArea.js +51 -0
  347. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/SearchScope.js +55 -0
  348. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBar.js +5 -0
  349. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarBranding.js +76 -0
  350. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori/dist/ShellBarSearch.js +133 -0
  351. package/src/main/js/sap/ushell/gen/ui5/webcomponents-fiori.js +83 -1
  352. package/src/main/js/sap/ushell/gen/ui5/webcomponents.js +80 -2
  353. package/src/main/js/sap/ushell/library.js +1 -1
  354. package/src/main/js/sap/ushell/navigation/NavigationState.js +126 -0
  355. package/src/main/js/sap/ushell/navigationMode.js +1 -1
  356. package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
  357. package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
  358. package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
  359. package/src/main/js/sap/ushell/renderer/AccessKeysHandler.js +8 -4
  360. package/src/main/js/sap/ushell/renderer/Renderer.js +19 -7
  361. package/src/main/js/sap/ushell/renderer/Shell.controller.js +11 -5
  362. package/src/main/js/sap/ushell/renderer/Shell.view.js +4 -1
  363. package/src/main/js/sap/ushell/renderer/resources/resources_ar.properties +2 -0
  364. package/src/main/js/sap/ushell/renderer/resources/resources_bg.properties +2 -0
  365. package/src/main/js/sap/ushell/renderer/resources/resources_ca.properties +2 -0
  366. package/src/main/js/sap/ushell/renderer/resources/resources_cnr.properties +2 -0
  367. package/src/main/js/sap/ushell/renderer/resources/resources_cs.properties +2 -0
  368. package/src/main/js/sap/ushell/renderer/resources/resources_cy.properties +2 -0
  369. package/src/main/js/sap/ushell/renderer/resources/resources_da.properties +2 -0
  370. package/src/main/js/sap/ushell/renderer/resources/resources_de.properties +2 -0
  371. package/src/main/js/sap/ushell/renderer/resources/resources_el.properties +2 -0
  372. package/src/main/js/sap/ushell/renderer/resources/resources_en.properties +2 -0
  373. package/src/main/js/sap/ushell/renderer/resources/resources_en_GB.properties +2 -0
  374. package/src/main/js/sap/ushell/renderer/resources/resources_en_US_saprigi.properties +2 -0
  375. package/src/main/js/sap/ushell/renderer/resources/resources_es.properties +2 -0
  376. package/src/main/js/sap/ushell/renderer/resources/resources_es_MX.properties +2 -0
  377. package/src/main/js/sap/ushell/renderer/resources/resources_et.properties +2 -0
  378. package/src/main/js/sap/ushell/renderer/resources/resources_fi.properties +2 -0
  379. package/src/main/js/sap/ushell/renderer/resources/resources_fr.properties +2 -0
  380. package/src/main/js/sap/ushell/renderer/resources/resources_fr_CA.properties +2 -0
  381. package/src/main/js/sap/ushell/renderer/resources/resources_hi.properties +2 -0
  382. package/src/main/js/sap/ushell/renderer/resources/resources_hr.properties +2 -0
  383. package/src/main/js/sap/ushell/renderer/resources/resources_hu.properties +3 -1
  384. package/src/main/js/sap/ushell/renderer/resources/resources_id.properties +2 -0
  385. package/src/main/js/sap/ushell/renderer/resources/resources_it.properties +2 -0
  386. package/src/main/js/sap/ushell/renderer/resources/resources_iw.properties +2 -0
  387. package/src/main/js/sap/ushell/renderer/resources/resources_ja.properties +2 -0
  388. package/src/main/js/sap/ushell/renderer/resources/resources_kk.properties +2 -0
  389. package/src/main/js/sap/ushell/renderer/resources/resources_ko.properties +2 -0
  390. package/src/main/js/sap/ushell/renderer/resources/resources_lt.properties +2 -0
  391. package/src/main/js/sap/ushell/renderer/resources/resources_lv.properties +2 -0
  392. package/src/main/js/sap/ushell/renderer/resources/resources_mk.properties +2 -0
  393. package/src/main/js/sap/ushell/renderer/resources/resources_ms.properties +2 -0
  394. package/src/main/js/sap/ushell/renderer/resources/resources_nl.properties +2 -0
  395. package/src/main/js/sap/ushell/renderer/resources/resources_no.properties +2 -0
  396. package/src/main/js/sap/ushell/renderer/resources/resources_pl.properties +2 -0
  397. package/src/main/js/sap/ushell/renderer/resources/resources_pt.properties +2 -0
  398. package/src/main/js/sap/ushell/renderer/resources/resources_pt_PT.properties +2 -0
  399. package/src/main/js/sap/ushell/renderer/resources/resources_ro.properties +2 -0
  400. package/src/main/js/sap/ushell/renderer/resources/resources_ru.properties +2 -0
  401. package/src/main/js/sap/ushell/renderer/resources/resources_sh.properties +2 -0
  402. package/src/main/js/sap/ushell/renderer/resources/resources_sk.properties +2 -0
  403. package/src/main/js/sap/ushell/renderer/resources/resources_sl.properties +3 -1
  404. package/src/main/js/sap/ushell/renderer/resources/resources_sr.properties +2 -0
  405. package/src/main/js/sap/ushell/renderer/resources/resources_sv.properties +2 -0
  406. package/src/main/js/sap/ushell/renderer/resources/resources_th.properties +2 -0
  407. package/src/main/js/sap/ushell/renderer/resources/resources_tr.properties +2 -0
  408. package/src/main/js/sap/ushell/renderer/resources/resources_uk.properties +2 -0
  409. package/src/main/js/sap/ushell/renderer/resources/resources_vi.properties +3 -1
  410. package/src/main/js/sap/ushell/renderer/resources/resources_zh_CN.properties +2 -0
  411. package/src/main/js/sap/ushell/renderer/resources/resources_zh_TW.properties +2 -0
  412. package/src/main/js/sap/ushell/renderer/search/searchComponent/manifest.json +1 -1
  413. package/src/main/js/sap/ushell/services/AllMyApps.js +5 -5
  414. package/src/main/js/sap/ushell/services/AppConfiguration.js +3 -5
  415. package/src/main/js/sap/ushell/services/AppLifeCycle.js +2 -2
  416. package/src/main/js/sap/ushell/services/AppState.js +86 -102
  417. package/src/main/js/sap/ushell/services/AppType.js +2 -2
  418. package/src/main/js/sap/ushell/services/Bookmark.js +156 -164
  419. package/src/main/js/sap/ushell/services/BookmarkV2.js +10 -13
  420. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Formatter.js +1 -1
  421. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundIndex.js +1 -1
  422. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/InboundProvider.js +1 -1
  423. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/PrelaunchOperations.js +1 -1
  424. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Search.js +1 -1
  425. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/StagedLogger.js +1 -1
  426. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/SystemContext.js +1 -1
  427. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/Utils.js +1 -1
  428. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/VirtualInbounds.js +1 -1
  429. package/src/main/js/sap/ushell/services/ClientSideTargetResolution/XAppStateProcessing.js +1 -1
  430. package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +27 -31
  431. package/src/main/js/sap/ushell/services/CommonDataModel/SiteConverter.js +1 -1
  432. package/src/main/js/sap/ushell/services/CommonDataModel/vizTypeDefaults/VizTypeDefaults.js +1 -1
  433. package/src/main/js/sap/ushell/services/CommonDataModel.js +295 -353
  434. package/src/main/js/sap/ushell/services/Configuration.js +14 -12
  435. package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +34 -35
  436. package/src/main/js/sap/ushell/services/Container.js +2 -2
  437. package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +29 -62
  438. package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +227 -266
  439. package/src/main/js/sap/ushell/services/DarkModeSupport.js +17 -16
  440. package/src/main/js/sap/ushell/services/EndUserFeedback.js +5 -4
  441. package/src/main/js/sap/ushell/services/Extension/Item.js +7 -12
  442. package/src/main/js/sap/ushell/services/Extension.js +54 -19
  443. package/src/main/js/sap/ushell/services/FlpLaunchPage.js +209 -213
  444. package/src/main/js/sap/ushell/services/FrameBoundExtension/FloatingContainer.js +3 -3
  445. package/src/main/js/sap/ushell/services/FrameBoundExtension/Footer.js +3 -3
  446. package/src/main/js/sap/ushell/services/FrameBoundExtension/Item.js +6 -6
  447. package/src/main/js/sap/ushell/services/FrameBoundExtension/SidePane.js +1 -1
  448. package/src/main/js/sap/ushell/services/FrameBoundExtension/ToolArea.js +1 -1
  449. package/src/main/js/sap/ushell/services/FrameBoundExtension/UserSettingsEntry.js +4 -4
  450. package/src/main/js/sap/ushell/services/FrameBoundExtension.js +3 -3
  451. package/src/main/js/sap/ushell/services/LaunchPage.js +1 -2
  452. package/src/main/js/sap/ushell/services/Menu.js +264 -289
  453. package/src/main/js/sap/ushell/services/Message.js +3 -3
  454. package/src/main/js/sap/ushell/services/MessageBroker/MessageBrokerEngine.js +6 -29
  455. package/src/main/js/sap/ushell/services/MessageBroker.js +14 -10
  456. package/src/main/js/sap/ushell/services/MessageInternal.js +37 -38
  457. package/src/main/js/sap/ushell/services/NavTargetResolution.js +2 -5
  458. package/src/main/js/sap/ushell/services/NavTargetResolutionInternal.js +153 -157
  459. package/src/main/js/sap/ushell/services/Navigation/compatibility.js +4 -6
  460. package/src/main/js/sap/ushell/services/Navigation/utils.js +62 -64
  461. package/src/main/js/sap/ushell/services/Navigation.js +10 -14
  462. package/src/main/js/sap/ushell/services/NavigationDataProvider.js +2 -2
  463. package/src/main/js/sap/ushell/services/Notifications.js +29 -15
  464. package/src/main/js/sap/ushell/services/NotificationsV2.js +86 -98
  465. package/src/main/js/sap/ushell/services/PageBuilding.js +9 -6
  466. package/src/main/js/sap/ushell/services/PagePersistence.js +3 -3
  467. package/src/main/js/sap/ushell/services/PageReferencing.js +4 -2
  468. package/src/main/js/sap/ushell/services/Pages.js +635 -683
  469. package/src/main/js/sap/ushell/services/Personalization.js +103 -134
  470. package/src/main/js/sap/ushell/services/PersonalizationV2/ContextContainer.js +29 -32
  471. package/src/main/js/sap/ushell/services/PersonalizationV2/Personalizer.js +21 -6
  472. package/src/main/js/sap/ushell/services/PersonalizationV2/TransientPersonalizer.js +1 -2
  473. package/src/main/js/sap/ushell/services/PersonalizationV2/Variant.js +5 -1
  474. package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSet.js +5 -8
  475. package/src/main/js/sap/ushell/services/PersonalizationV2/VariantSetAdapter.js +2 -2
  476. package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapter.js +10 -11
  477. package/src/main/js/sap/ushell/services/PersonalizationV2/WindowAdapterContainer.js +27 -27
  478. package/src/main/js/sap/ushell/services/PersonalizationV2/constants.js +1 -2
  479. package/src/main/js/sap/ushell/services/PersonalizationV2/constants.private.js +1 -1
  480. package/src/main/js/sap/ushell/services/PersonalizationV2/utils.js +5 -5
  481. package/src/main/js/sap/ushell/services/PersonalizationV2.js +92 -105
  482. package/src/main/js/sap/ushell/services/PluginManager/Extensions.js +9 -9
  483. package/src/main/js/sap/ushell/services/PluginManager/HeaderExtensions.js +2 -2
  484. package/src/main/js/sap/ushell/services/PluginManager/MenuExtensions.js +4 -4
  485. package/src/main/js/sap/ushell/services/PluginManager/SimpleExpression.js +5 -8
  486. package/src/main/js/sap/ushell/services/PluginManager.js +12 -8
  487. package/src/main/js/sap/ushell/services/ReferenceResolver.js +21 -28
  488. package/src/main/js/sap/ushell/services/Search.js +25 -21
  489. package/src/main/js/sap/ushell/services/SearchCEP.js +38 -32
  490. package/src/main/js/sap/ushell/services/SearchableContent.js +203 -223
  491. package/src/main/js/sap/ushell/services/ShellNavigation.js +5 -3
  492. package/src/main/js/sap/ushell/services/ShellNavigationHashChanger.js +160 -164
  493. package/src/main/js/sap/ushell/services/ShellNavigationInternal.js +23 -19
  494. package/src/main/js/sap/ushell/services/SmartNavigation.js +86 -82
  495. package/src/main/js/sap/ushell/services/SpaceContent.js +73 -106
  496. package/src/main/js/sap/ushell/services/SupportTicket.js +1 -1
  497. package/src/main/js/sap/ushell/services/UITracer.js +48 -62
  498. package/src/main/js/sap/ushell/services/URLShortening.js +2 -2
  499. package/src/main/js/sap/ushell/services/URLTemplate.js +7 -8
  500. package/src/main/js/sap/ushell/services/Ui5ComponentHandle.js +5 -5
  501. package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
  502. package/src/main/js/sap/ushell/services/UsageAnalytics.js +2 -3
  503. package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +10 -10
  504. package/src/main/js/sap/ushell/services/UserDefaultParameters.js +12 -13
  505. package/src/main/js/sap/ushell/services/UserInfo.js +27 -15
  506. package/src/main/js/sap/ushell/services/UserRecents/RecentActivity.js +6 -7
  507. package/src/main/js/sap/ushell/services/UserRecents/RecentAppsUsage.js +5 -5
  508. package/src/main/js/sap/ushell/services/UserRecents/RecentsList.js +2 -2
  509. package/src/main/js/sap/ushell/services/UserRecents/UserRecentsBase.js +2 -2
  510. package/src/main/js/sap/ushell/services/UserRecents.js +3 -3
  511. package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +63 -66
  512. package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +11 -11
  513. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
  514. package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
  515. package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
  516. package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
  517. package/src/main/js/sap/ushell/services/personalization/VariantSetAdapter.js +10 -10
  518. package/src/main/js/sap/ushell/state/BaseState.js +2 -3
  519. package/src/main/js/sap/ushell/state/BindingHelper.js +2 -4
  520. package/src/main/js/sap/ushell/state/ControlManager.js +2 -3
  521. package/src/main/js/sap/ushell/state/CurrentState.js +2 -2
  522. package/src/main/js/sap/ushell/state/KeepAlive.js +2 -2
  523. package/src/main/js/sap/ushell/state/ShellModel.js +2 -3
  524. package/src/main/js/sap/ushell/state/StateManager/LaunchpadState.js +2 -2
  525. package/src/main/js/sap/ushell/state/StateManager/Operation.js +2 -2
  526. package/src/main/js/sap/ushell/state/StateManager/ShellMode.js +2 -2
  527. package/src/main/js/sap/ushell/state/StateManager.js +3 -3
  528. package/src/main/js/sap/ushell/state/StateRules.js +2 -3
  529. package/src/main/js/sap/ushell/state/StrategyFactory/DefaultStrategy.js +2 -3
  530. package/src/main/js/sap/ushell/state/StrategyFactory/FloatingActionsStrategy.js +2 -3
  531. package/src/main/js/sap/ushell/state/StrategyFactory/FloatingContainerStrategy.js +2 -3
  532. package/src/main/js/sap/ushell/state/StrategyFactory/HeadEndItemsStrategy.js +3 -4
  533. package/src/main/js/sap/ushell/state/StrategyFactory/HeadItemsStrategy.js +3 -4
  534. package/src/main/js/sap/ushell/state/StrategyFactory/SidePaneStrategy.js +2 -3
  535. package/src/main/js/sap/ushell/state/StrategyFactory/SubHeaderStrategy.js +2 -3
  536. package/src/main/js/sap/ushell/state/StrategyFactory/UserActionsStrategy.js +3 -4
  537. package/src/main/js/sap/ushell/state/StrategyFactory.js +2 -3
  538. package/src/main/js/sap/ushell/state/modules/BackNavigation.js +2 -5
  539. package/src/main/js/sap/ushell/state/modules/ContentDensity.js +3 -3
  540. package/src/main/js/sap/ushell/state/modules/Favicon.js +3 -3
  541. package/src/main/js/sap/ushell/state/modules/HeaderLogo.js +3 -3
  542. package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +123 -123
  543. package/src/main/js/sap/ushell/themes/base/ShellBar.less +2 -1
  544. package/src/main/js/sap/ushell/themes/base/ShellHeader.less +1 -1
  545. package/src/main/js/sap/ushell/themes/base/ToolAreaItem.less +1 -0
  546. package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellBar.less +9 -0
  547. package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +6 -0
  548. package/src/main/js/sap/ushell/themes/sap_fiori_3/library.source.less +1 -0
  549. package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellBar.less +9 -0
  550. package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/library.source.less +1 -0
  551. package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/ShellBar.less +9 -0
  552. package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/library.source.less +1 -0
  553. package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/ShellBar.less +9 -0
  554. package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/library.source.less +1 -0
  555. package/src/main/js/sap/ushell/themes/sap_hcb/base_ShellHeader.less +1 -1
  556. package/src/main/js/sap/ushell/thirdparty/AccessibilityTextsHelper.js +13 -0
  557. package/src/main/js/sap/ushell/thirdparty/Avatar.js +83 -16
  558. package/src/main/js/sap/ushell/thirdparty/BusyIndicator.js +16 -241
  559. package/src/main/js/sap/ushell/thirdparty/Button.js +1 -1
  560. package/src/main/js/sap/ushell/thirdparty/Button2.js +34 -14
  561. package/src/main/js/sap/ushell/thirdparty/Icon.js +11 -11
  562. package/src/main/js/sap/ushell/thirdparty/Icons.js +81 -79
  563. package/src/main/js/sap/ushell/thirdparty/Label.js +4 -4
  564. package/src/main/js/sap/ushell/thirdparty/Link.js +11 -10
  565. package/src/main/js/sap/ushell/thirdparty/List.js +34 -487
  566. package/src/main/js/sap/ushell/thirdparty/ListBoxItemGroupTemplate.js +14 -0
  567. package/src/main/js/sap/ushell/thirdparty/ListItemBase.js +239 -0
  568. package/src/main/js/sap/ushell/thirdparty/ListItemCustom.js +1669 -91
  569. package/src/main/js/sap/ushell/thirdparty/ListItemGroup.js +472 -0
  570. package/src/main/js/sap/ushell/thirdparty/Menu.js +70 -81
  571. package/src/main/js/sap/ushell/thirdparty/MenuItem.js +1 -1
  572. package/src/main/js/sap/ushell/thirdparty/MenuItem2.js +348 -40
  573. package/src/main/js/sap/ushell/thirdparty/NotificationList.js +5 -5
  574. package/src/main/js/sap/ushell/thirdparty/NotificationListGroupItem.js +15 -15
  575. package/src/main/js/sap/ushell/thirdparty/NotificationListItem.js +511 -517
  576. package/src/main/js/sap/ushell/thirdparty/NotificationListItemBase.js +3 -3
  577. package/src/main/js/sap/ushell/thirdparty/ResponsivePopover.js +2264 -0
  578. package/src/main/js/sap/ushell/thirdparty/SearchItem.js +111 -0
  579. package/src/main/js/sap/ushell/thirdparty/SearchItemGroup.js +47 -0
  580. package/src/main/js/sap/ushell/thirdparty/SearchMessageArea.js +49 -0
  581. package/src/main/js/sap/ushell/thirdparty/SearchScope.js +39 -0
  582. package/src/main/js/sap/ushell/thirdparty/ShellBar.js +177 -170
  583. package/src/main/js/sap/ushell/thirdparty/ShellBarBranding.js +119 -0
  584. package/src/main/js/sap/ushell/thirdparty/ShellBarSearch.js +7 -0
  585. package/src/main/js/sap/ushell/thirdparty/ShellBarSearch2.js +3248 -0
  586. package/src/main/js/sap/ushell/thirdparty/Tag.js +15 -14
  587. package/src/main/js/sap/ushell/thirdparty/Text.js +9 -9
  588. package/src/main/js/sap/ushell/thirdparty/Title.js +167 -0
  589. package/src/main/js/sap/ushell/thirdparty/UserMenu.js +55 -54
  590. package/src/main/js/sap/ushell/thirdparty/UserMenuItem.js +5 -5
  591. package/src/main/js/sap/ushell/thirdparty/ValueState.js +7 -0
  592. package/src/main/js/sap/ushell/thirdparty/_dynamics/InputSuggestions.js +444 -0
  593. package/src/main/js/sap/ushell/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +7 -7
  594. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar2.js +39 -0
  595. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ar3.js +26 -8
  596. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg2.js +40 -1
  597. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_bg3.js +26 -8
  598. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca2.js +41 -2
  599. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ca3.js +27 -9
  600. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr2.js +39 -0
  601. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cnr3.js +25 -7
  602. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs2.js +39 -0
  603. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cs3.js +25 -7
  604. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy2.js +39 -0
  605. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_cy3.js +26 -8
  606. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da2.js +39 -0
  607. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_da3.js +25 -7
  608. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de2.js +39 -0
  609. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_de3.js +26 -8
  610. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el2.js +39 -0
  611. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_el3.js +25 -7
  612. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en2.js +45 -0
  613. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en3.js +26 -8
  614. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB2.js +39 -0
  615. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_GB3.js +26 -8
  616. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +39 -0
  617. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_sappsd3.js +26 -8
  618. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +45 -0
  619. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saprigi3.js +23 -8
  620. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +39 -0
  621. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_en_US_saptrc3.js +26 -8
  622. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es2.js +42 -3
  623. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es3.js +27 -9
  624. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX2.js +42 -3
  625. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_es_MX3.js +28 -10
  626. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et2.js +39 -0
  627. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_et3.js +25 -7
  628. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi2.js +39 -0
  629. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fi3.js +25 -7
  630. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr2.js +39 -0
  631. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr3.js +26 -8
  632. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA2.js +39 -0
  633. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_fr_CA3.js +25 -7
  634. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi2.js +39 -0
  635. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hi3.js +25 -7
  636. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr2.js +39 -0
  637. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hr3.js +25 -7
  638. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu2.js +39 -0
  639. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_hu3.js +25 -7
  640. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id2.js +39 -0
  641. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_id3.js +26 -8
  642. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it2.js +43 -4
  643. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_it3.js +29 -11
  644. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw2.js +39 -0
  645. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_iw3.js +27 -9
  646. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja2.js +39 -0
  647. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ja3.js +26 -8
  648. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk2.js +39 -0
  649. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_kk3.js +26 -8
  650. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko2.js +39 -0
  651. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ko3.js +25 -7
  652. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt2.js +39 -0
  653. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lt3.js +25 -7
  654. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv2.js +39 -0
  655. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_lv3.js +27 -9
  656. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk2.js +40 -1
  657. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_mk3.js +25 -7
  658. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms2.js +40 -1
  659. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ms3.js +27 -9
  660. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl2.js +39 -0
  661. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_nl3.js +25 -7
  662. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no2.js +39 -0
  663. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_no3.js +26 -8
  664. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl2.js +39 -0
  665. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pl3.js +26 -8
  666. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt2.js +39 -0
  667. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt3.js +25 -7
  668. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT2.js +39 -0
  669. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_pt_PT3.js +26 -8
  670. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro2.js +39 -0
  671. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ro3.js +25 -7
  672. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru2.js +39 -0
  673. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_ru3.js +25 -7
  674. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh2.js +39 -0
  675. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sh3.js +25 -7
  676. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk2.js +39 -0
  677. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sk3.js +25 -7
  678. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl2.js +41 -2
  679. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sl3.js +26 -8
  680. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr2.js +39 -0
  681. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sr3.js +25 -7
  682. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv2.js +39 -0
  683. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_sv3.js +26 -8
  684. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th2.js +39 -0
  685. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_th3.js +25 -7
  686. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr2.js +39 -0
  687. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_tr3.js +25 -7
  688. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk2.js +40 -1
  689. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_uk3.js +25 -7
  690. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi2.js +39 -0
  691. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_vi3.js +26 -8
  692. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN2.js +39 -0
  693. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_CN3.js +26 -8
  694. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW2.js +41 -2
  695. package/src/main/js/sap/ushell/thirdparty/_dynamics/messagebundle_zh_TW3.js +25 -7
  696. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css10.js +1 -1
  697. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css11.js +1 -1
  698. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css12.js +1 -1
  699. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css13.js +1 -1
  700. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css14.js +1 -1
  701. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css15.js +1 -1
  702. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css16.js +1 -1
  703. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css17.js +1 -1
  704. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css18.js +1 -1
  705. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css19.js +1 -1
  706. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css20.js +1 -1
  707. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css21.js +1 -1
  708. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css22.js +1 -1
  709. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css23.js +1 -1
  710. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css24.js +1 -1
  711. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css25.js +1 -1
  712. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css26.js +7 -0
  713. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css3.js +1 -1
  714. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css4.js +1 -1
  715. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css5.js +1 -1
  716. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css6.js +1 -1
  717. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css7.js +1 -1
  718. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css8.js +1 -1
  719. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css9.js +1 -1
  720. package/src/main/js/sap/ushell/thirdparty/encodeXML.js +87 -0
  721. package/src/main/js/sap/ushell/thirdparty/generateHighlightedMarkup.js +9 -0
  722. package/src/main/js/sap/ushell/thirdparty/i18n-defaults.js +143 -149
  723. package/src/main/js/sap/ushell/thirdparty/i18n-defaults2.js +16 -0
  724. package/src/main/js/sap/ushell/thirdparty/information.js +10 -13
  725. package/src/main/js/sap/ushell/thirdparty/information2.js +13 -0
  726. package/src/main/js/sap/ushell/thirdparty/overflow.js +2 -2
  727. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css.js +1 -1
  728. package/src/main/js/sap/ushell/thirdparty/parameters-bundle.css2.js +44 -0
  729. package/src/main/js/sap/ushell/thirdparty/query.js +1 -4
  730. package/src/main/js/sap/ushell/thirdparty/slim-arrow-down.js +44 -0
  731. package/src/main/js/sap/ushell/thirdparty/sys-enter-2.js +7 -0
  732. package/src/main/js/sap/ushell/thirdparty/toLowercaseEnumValue.js +0 -8
  733. package/src/main/js/sap/ushell/thirdparty/webcomponents-base.js +35 -31
  734. package/src/main/js/sap/ushell/thirdparty/webcomponents-fiori.js +8 -8
  735. package/src/main/js/sap/ushell/thirdparty/webcomponents.js +16 -16
  736. package/src/main/js/sap/ushell/thirdparty/willShowContent.js +7 -0
  737. package/src/main/js/sap/ushell/ui/ShellHeader.js +0 -1
  738. package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
  739. package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
  740. package/src/main/js/sap/ushell/ui/launchpad/Section.js +1 -1
  741. package/src/main/js/sap/ushell/ui/launchpad/VizInstance.js +6 -1
  742. package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
  743. package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +5 -2
  744. package/src/main/js/sap/ushell/ui/utils.js +1 -1
  745. package/src/main/js/sap/ushell/ui5service/ShellUIServiceFactory.js +1 -1
  746. package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
  747. package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
  748. package/src/main/js/sap/ushell/utils/workpage/WorkPageHost.js +1 -1
  749. package/src/main/js/sap/ushell/utils/workpage/WorkPageService.js +1 -1
  750. package/src/main/js/sap/ushell/utils/workpage/WorkPageVizInstantiation.js +1 -1
  751. package/src/main/js/sap/ushell/utils.js +32 -1
  752. package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
  753. package/ui5.yaml +2 -0
  754. package/src/main/js/sap/ushell/thirdparty/ListItemTemplate.js +0 -3920
  755. package/src/main/js/sap/ushell/thirdparty/_dynamics/parameters-bundle.css2.js +0 -7
  756. /package/src/main/js/sap/ushell/components/shell/SearchCEP/{SearchFieldFragment.fragment.xml → SearchField.fragment.xml} +0 -0
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  "sap/ui/thirdparty/jquery",
34
34
  "sap/base/Log",
35
35
  "sap/ui/core/format/NumberFormat"
36
- ], function (
36
+ ], (
37
37
  Localization,
38
38
  Element,
39
39
  Locale,
@@ -62,20 +62,19 @@ sap.ui.define([
62
62
  jQuery,
63
63
  Log,
64
64
  NumberFormat
65
- ) {
65
+ ) => {
66
66
  "use strict";
67
67
 
68
68
  // shortcut for sap.ui.core.ValueState
69
- var ValueState = coreLibrary.ValueState;
69
+ const ValueState = coreLibrary.ValueState;
70
70
 
71
71
  // shortcut for sap.ui.core.mvc.ViewType
72
- var ViewType = coreLibrary.mvc.ViewType;
72
+ const ViewType = coreLibrary.mvc.ViewType;
73
73
 
74
74
  // shortcut for sap.m.ButtonType
75
- var ButtonType = mLibrary.ButtonType;
75
+ const ButtonType = mLibrary.ButtonType;
76
76
 
77
-
78
- var oUtils = {};
77
+ const oUtils = {};
79
78
 
80
79
  /**
81
80
  * Checks whether the translated chip title is in initial state.
@@ -136,7 +135,7 @@ sap.ui.define([
136
135
 
137
136
  // Create a row template for adding new empty row to the Tile Actions table
138
137
  oUtils.getEmptyTileActionsRowObj = function (bEdit) {
139
- var oResourceBundle = oUtils.getResourceBundle();
138
+ const oResourceBundle = oUtils.getResourceBundle();
140
139
  return {
141
140
  menu_title: "",
142
141
  target_type: oResourceBundle.getText("configuration.tile_actions.table.target_type.url"),
@@ -148,6 +147,39 @@ sap.ui.define([
148
147
  };
149
148
  };
150
149
 
150
+ /**
151
+ * Returns tile actions table row object
152
+ *
153
+ * @param {object} oTileActionsRow Tile Navigation Actions row object
154
+ * @param {object} bEdit Whether the tileActionsRow should be editable.
155
+ * @returns {object} tileActionsRowObject Returns tile navigation actions row object Example: {action: "" icon: "sap-icon://Fiori2/F0101"
156
+ * isTargetTypeIntent: false menu_title: "action1" navigation_target: "http://google.co.in" target_type: "URL"}
157
+ */
158
+ function tileAction2TileActionsRow (oTileActionsRow, bEdit) {
159
+ const tileActionsRowObject = {}; const oResourceBundle = oUtils.getResourceBundle();
160
+
161
+ tileActionsRowObject.menu_title = oTileActionsRow.text;
162
+ tileActionsRowObject.icon = oTileActionsRow.icon;
163
+ if ((oTileActionsRow.targetURL).charAt(0) === "#") {
164
+ // Target Type is Intent
165
+ tileActionsRowObject.target_type = oResourceBundle.getText("configuration.tile_actions.table.target_type.intent");
166
+ const aNavigationTarget = oTileActionsRow.targetURL.split("-");
167
+ tileActionsRowObject.navigation_target = aNavigationTarget[0].substring(1, aNavigationTarget[0].length); // removes # for the semantic
168
+ // object
169
+ tileActionsRowObject.action = aNavigationTarget[1];
170
+ tileActionsRowObject.isTargetTypeIntent = true;
171
+ } else {
172
+ // Target Type is URL
173
+ tileActionsRowObject.target_type = oResourceBundle.getText("configuration.tile_actions.table.target_type.url");
174
+ tileActionsRowObject.navigation_target = oTileActionsRow.targetURL;
175
+ tileActionsRowObject.action = "";
176
+ tileActionsRowObject.isTargetTypeIntent = false;
177
+ }
178
+ tileActionsRowObject.editable = bEdit;
179
+
180
+ return tileActionsRowObject;
181
+ }
182
+
151
183
  /**
152
184
  * This function will be called during init operation Returns tile navigation actions array for design time. Returns empty row if there are not
153
185
  * navigation actions maintained.
@@ -161,11 +193,11 @@ sap.ui.define([
161
193
  * false}]
162
194
  */
163
195
  oUtils.getTileNavigationActionsRows = function (oTileApi, bEdit) {
164
- var atileActionsRows = [], aTileNavigationActions = [];
196
+ let atileActionsRows = []; let aTileNavigationActions = [];
165
197
 
166
198
  aTileNavigationActions = this.getTileNavigationActions(oTileApi);
167
199
  if (aTileNavigationActions.length) {
168
- for (var i = 0; i < aTileNavigationActions.length; i++) {
200
+ for (let i = 0; i < aTileNavigationActions.length; i++) {
169
201
  atileActionsRows.push(tileAction2TileActionsRow(aTileNavigationActions[i], bEdit));
170
202
  }
171
203
  } else {
@@ -186,15 +218,15 @@ sap.ui.define([
186
218
  * "#AccessControlRole-action", text: "action2"}]
187
219
  */
188
220
  oUtils.getTileNavigationActions = function (oTileApi) {
189
- var aTileNavigationActions = [], sTileActionTitle = "";
190
- var bag = oTileApi.bag.getBag("tileNavigationActions");
221
+ let aTileNavigationActions = []; let sTileActionTitle = "";
222
+ const bag = oTileApi.bag.getBag("tileNavigationActions");
191
223
  if (bag.getPropertyNames().indexOf("tile_navigation_actions") >= 0) {
192
224
  aTileNavigationActions = JSON.parse(bag.getProperty("tile_navigation_actions")); // Bag will return tile navigation actions as a
193
225
  // string.JSON.parse will parse the string to an array
194
- for (var i = 0; i < aTileNavigationActions.length; i++) {
226
+ for (let i = 0; i < aTileNavigationActions.length; i++) {
195
227
  if (aTileNavigationActions[i].text) {
196
- if (bag.getTextNames().indexOf("action_tile_" + (i + 1)) >= 0) {
197
- sTileActionTitle = bag.getText("action_tile_" + (i + 1)); // Get translated action title text from bag
228
+ if (bag.getTextNames().indexOf(`action_tile_${i + 1}`) >= 0) {
229
+ sTileActionTitle = bag.getText(`action_tile_${i + 1}`); // Get translated action title text from bag
198
230
  }
199
231
  aTileNavigationActions[i].text = sTileActionTitle; // Update the action title text with the translated text fetched from bag
200
232
  }
@@ -205,36 +237,25 @@ sap.ui.define([
205
237
  };
206
238
 
207
239
  /**
208
- * Retruns tile actions table row object
240
+ * Build tile actions row object. If Target Type is Intent, then taregtURL will be prefixed with '#'.
209
241
  *
210
- * @param {object} oTileActionsRow Tile Navigation Actions row object
211
- * @returns {object} tileActionsRowObject Returns tile navigation actions row object Example: {action: "" icon: "sap-icon://Fiori2/F0101"
212
- * isTargetTypeIntent: false menu_title: "action1" navigation_target: "http://google.co.in" target_type: "URL"}
242
+ * @param {object} oTileActionRow Tile Navigation Actions row object
243
+ * @returns {object} oTileAction Returns tile navigation actions row object with semantic object and action combined Example for Target Type URL:
244
+ * {icon: "sap-icon://Fiori2/F0211", targetURL: "https://www.google.co.in", text: "action1"} Example for target type Intent: {icon:
245
+ * "sap-icon://Fiori2/F0210", targetURL: "#AccessControlRole-action", text: "action2"}
213
246
  */
214
- var tileAction2TileActionsRow = function (oTileActionsRow, bEdit) {
215
- var tileActionsRowObject = {}, oResourceBundle = oUtils.getResourceBundle();
216
-
217
- tileActionsRowObject.menu_title = oTileActionsRow.text;
218
- tileActionsRowObject.icon = oTileActionsRow.icon;
219
- if ((oTileActionsRow.targetURL).charAt(0) === "#") {
220
- // Target Type is Intent
221
- tileActionsRowObject.target_type = oResourceBundle.getText("configuration.tile_actions.table.target_type.intent");
222
- var aNavigationTarget = oTileActionsRow.targetURL.split("-");
223
- tileActionsRowObject.navigation_target = aNavigationTarget[0].substring(1, aNavigationTarget[0].length); // removes # for the semantic
224
- // object
225
- tileActionsRowObject.action = aNavigationTarget[1];
226
- tileActionsRowObject.isTargetTypeIntent = true;
247
+ function tileActionRow2TileActionObject (oTileActionRow) {
248
+ const oTileAction = {};
249
+ oTileAction.text = oTileActionRow.menu_title;
250
+ oTileAction.icon = oTileActionRow.icon;
251
+ if (oTileActionRow.action) {
252
+ oTileAction.targetURL = `#${oTileActionRow.navigation_target}-${oTileActionRow.action}`;
227
253
  } else {
228
- // Target Type is URL
229
- tileActionsRowObject.target_type = oResourceBundle.getText("configuration.tile_actions.table.target_type.url");
230
- tileActionsRowObject.navigation_target = oTileActionsRow.targetURL;
231
- tileActionsRowObject.action = "";
232
- tileActionsRowObject.isTargetTypeIntent = false;
254
+ oTileAction.targetURL = oTileActionRow.navigation_target;
233
255
  }
234
- tileActionsRowObject.editable = bEdit;
235
256
 
236
- return tileActionsRowObject;
237
- };
257
+ return oTileAction;
258
+ }
238
259
 
239
260
  /**
240
261
  * This function will be called during save operation. Build the tile actions array according to the entries of the table.
@@ -245,8 +266,8 @@ sap.ui.define([
245
266
  * "sap-icon://Fiori2/F0210", targetURL: "#AccessControlRole-action", text: "action2"}]
246
267
  */
247
268
  oUtils.tileActionsRows2TileActionsArray = function (aTableContent) {
248
- var aTileNavigationActions = [];
249
- for (var i = 0; i < aTableContent.length; i++) {
269
+ const aTileNavigationActions = [];
270
+ for (let i = 0; i < aTableContent.length; i++) {
250
271
  if (aTableContent[i].menu_title) {
251
272
  aTileNavigationActions.push(tileActionRow2TileActionObject(aTableContent[i]));
252
273
  }
@@ -254,27 +275,6 @@ sap.ui.define([
254
275
  return aTileNavigationActions; // might be empty
255
276
  };
256
277
 
257
- /**
258
- * Build tile actions row object. If Target Type is Intent, then taregtURL will be prefixed with '#'.
259
- *
260
- * @param {object} oTileActionRow Tile Navigation Actions row object
261
- * @returns {object} oTileAction Returns tile navigation actions row object with semantic object and action combined Example for Target Type URL:
262
- * {icon: "sap-icon://Fiori2/F0211", targetURL: "https://www.google.co.in", text: "action1"} Example for target type Intent: {icon:
263
- * "sap-icon://Fiori2/F0210", targetURL: "#AccessControlRole-action", text: "action2"}
264
- */
265
- var tileActionRow2TileActionObject = function (oTileActionRow) {
266
- var oTileAction = {};
267
- oTileAction.text = oTileActionRow.menu_title;
268
- oTileAction.icon = oTileActionRow.icon;
269
- if (oTileActionRow.action) {
270
- oTileAction.targetURL = "#" + oTileActionRow.navigation_target + "-" + oTileActionRow.action;
271
- } else {
272
- oTileAction.targetURL = oTileActionRow.navigation_target;
273
- }
274
-
275
- return oTileAction;
276
- };
277
-
278
278
  /**
279
279
  * Saves the tile navigation actions in to the bag.
280
280
  *
@@ -284,9 +284,9 @@ sap.ui.define([
284
284
  oUtils.populateTileNavigationActionsBag = function (tileNavigationActionsBag, aNavigationProperties) {
285
285
  // Stringify the array and populate it to the bag as a property, tile_navigation_actions
286
286
  tileNavigationActionsBag.setProperty("tile_navigation_actions", JSON.stringify(aNavigationProperties));
287
- for (var i = 0; i < aNavigationProperties.length; i++) {
288
- var sActionTitle = aNavigationProperties[i].text;
289
- tileNavigationActionsBag.setText("action_tile_" + (i + 1), sActionTitle);
287
+ for (let i = 0; i < aNavigationProperties.length; i++) {
288
+ const sActionTitle = aNavigationProperties[i].text;
289
+ tileNavigationActionsBag.setText(`action_tile_${i + 1}`, sActionTitle);
290
290
  }
291
291
  };
292
292
 
@@ -321,15 +321,14 @@ sap.ui.define([
321
321
 
322
322
  // Check if the parameters table has duplicate parameter names, return true if it does, false otherwise
323
323
  oUtils.tableHasDuplicateParameterNames = function (aTableContent) {
324
- var parametersMap = {};
325
- for (var i = 0; i < aTableContent.length; i++) {
326
- var paramName = aTableContent[i].name;
324
+ const parametersMap = {};
325
+ for (let i = 0; i < aTableContent.length; i++) {
326
+ const paramName = aTableContent[i].name;
327
327
  if (paramName !== "") {
328
328
  if (parametersMap[paramName]) {
329
329
  return true;
330
330
  }
331
331
  parametersMap[paramName] = true;
332
-
333
332
  }
334
333
  }
335
334
  return false;
@@ -344,7 +343,7 @@ sap.ui.define([
344
343
  * @private
345
344
  */
346
345
  oUtils.tableHasInvalidSapPrelaunchOperationValue = function (aTableContent) {
347
- for (var i = 0; i < aTableContent.length; i++) {
346
+ for (let i = 0; i < aTableContent.length; i++) {
348
347
  if (aTableContent[i].name === "sap-prelaunch-operations") {
349
348
  if (PrelaunchOperations.parseAndValidateOperations(aTableContent[i].defaultValue) === null) {
350
349
  return false;
@@ -355,55 +354,36 @@ sap.ui.define([
355
354
  return true;
356
355
  };
357
356
 
358
- // Build the mapping signature string according to the entries of the table and the value of the allowed undefined checkbox.
359
- // This function will be called during save operation
360
- oUtils.getMappingSignatureString = function (tableContent, allowUnknownParameters) {
361
- var mappingSignature = "";
362
- for (var i = 0; i < tableContent.length; i++) {
363
- if (tableContent[i].name) {
364
- mappingSignature += (getOneParamSignature(tableContent[i]) + "&");
365
- }
366
- }
367
- return allowUnknownParameters ? mappingSignature + "*=*" : mappingSignature.substring(0, mappingSignature.length - 1); // might be empty
368
- };
369
-
370
357
  // build a string representation of the provided row object
371
- var getOneParamSignature = function (tableRow) {
372
- var paramSignature = "";
358
+ function getOneParamSignature (tableRow) {
359
+ let paramSignature = "";
373
360
 
374
361
  if (tableRow.mandatory) {
375
362
  if (tableRow.isRegularExpression) {
376
- paramSignature = "{" + tableRow.name + "=" + encodeURIComponent(tableRow.value) + "}";
363
+ paramSignature = `{${tableRow.name}=${encodeURIComponent(tableRow.value)}}`;
377
364
  } else {
378
- paramSignature = tableRow.name + "=" + encodeURIComponent(tableRow.value);
365
+ paramSignature = `${tableRow.name}=${encodeURIComponent(tableRow.value)}`;
379
366
  }
380
367
  } else {
381
- paramSignature = "[" + tableRow.name + "=" + encodeURIComponent(tableRow.defaultValue) + "]";
368
+ paramSignature = `[${tableRow.name}=${encodeURIComponent(tableRow.defaultValue)}]`;
382
369
  }
383
370
  return paramSignature;
384
- };
371
+ }
385
372
 
386
- // var mappingSignatureStringExample = "par1=B%3C%3E&{par2=D*}&[par3=F%40%40]";
387
-
388
- // Build the table data according to the mapping signature string
389
- // This function will be called during init operation
390
- oUtils.getMappingSignatureTableData = function (mappingSignatureString, bEdit) {
391
- var paramsArray = [];
392
- var paramStringsArray = mappingSignatureString.split("&");
393
-
394
- for (var i = 0; i < paramStringsArray.length; i++) {
395
- var currentParam = paramStringsArray[i];
396
- if (currentParam !== "*=*") {
397
- // For each parameter string (except from the "allow unknown parameters" sign),
398
- // get the parameter object and add to the array
399
- paramsArray.push(getOneParamObject(paramStringsArray[i], bEdit));
373
+ // Build the mapping signature string according to the entries of the table and the value of the allowed undefined checkbox.
374
+ // This function will be called during save operation
375
+ oUtils.getMappingSignatureString = function (tableContent, allowUnknownParameters) {
376
+ let mappingSignature = "";
377
+ for (let i = 0; i < tableContent.length; i++) {
378
+ if (tableContent[i].name) {
379
+ mappingSignature += (`${getOneParamSignature(tableContent[i])}&`);
400
380
  }
401
381
  }
402
- return paramsArray;
382
+ return allowUnknownParameters ? `${mappingSignature}*=*` : mappingSignature.substring(0, mappingSignature.length - 1); // might be empty
403
383
  };
404
384
 
405
- var getOneParamObject = function (paramString, bEdit) {
406
- var paramObject = {};
385
+ function getOneParamObject (paramString, bEdit) {
386
+ const paramObject = {};
407
387
 
408
388
  if (paramString.charAt(0) === "[") {
409
389
  // If there are [] brackets, this parameter is optional
@@ -439,6 +419,25 @@ sap.ui.define([
439
419
  }
440
420
 
441
421
  return paramObject;
422
+ }
423
+
424
+ // var mappingSignatureStringExample = "par1=B%3C%3E&{par2=D*}&[par3=F%40%40]";
425
+
426
+ // Build the table data according to the mapping signature string
427
+ // This function will be called during init operation
428
+ oUtils.getMappingSignatureTableData = function (mappingSignatureString, bEdit) {
429
+ const paramsArray = [];
430
+ const paramStringsArray = mappingSignatureString.split("&");
431
+
432
+ for (let i = 0; i < paramStringsArray.length; i++) {
433
+ const currentParam = paramStringsArray[i];
434
+ if (currentParam !== "*=*") {
435
+ // For each parameter string (except from the "allow unknown parameters" sign),
436
+ // get the parameter object and add to the array
437
+ paramsArray.push(getOneParamObject(paramStringsArray[i], bEdit));
438
+ }
439
+ }
440
+ return paramsArray;
442
441
  };
443
442
 
444
443
  // Get the allowUnknownParameters check-box value from the mapping signature string (Will be called during init operation)
@@ -451,14 +450,14 @@ sap.ui.define([
451
450
  };
452
451
 
453
452
  oUtils.getMappingSignature = function (aRows, bAdditionalParameters) {
454
- var sAdditionalParameters = bAdditionalParameters ? "allowed" : "ignored";
455
- var oUserDefParser = new RegExp("%%UserDefault[.].+%%");
456
- var aMatch = [];
457
- var oMappingSignature = {
453
+ const sAdditionalParameters = bAdditionalParameters ? "allowed" : "ignored";
454
+ const oUserDefParser = new RegExp("%%UserDefault[.].+%%");
455
+ let aMatch = [];
456
+ const oMappingSignature = {
458
457
  parameters: {},
459
458
  additional_parameters: sAdditionalParameters
460
459
  };
461
- aRows.forEach(function (oRow) {
460
+ aRows.forEach((oRow) => {
462
461
  oMappingSignature.parameters[oRow.name] = {
463
462
  required: oRow.mandatory,
464
463
  rename_to: oRow.rename_to
@@ -490,12 +489,12 @@ sap.ui.define([
490
489
  };
491
490
 
492
491
  oUtils.getSignatureTableData = function (oSignature, bEdit) {
493
- var paramsArray = [];
494
- var oRow = {};
495
- var oParameter = {};
496
- var oParameters = oSignature.parameters;
492
+ const paramsArray = [];
493
+ let oRow = {};
494
+ let oParameter = {};
495
+ const oParameters = oSignature.parameters;
497
496
 
498
- for (var key in oParameters) {
497
+ for (const key in oParameters) {
499
498
  oParameter = oParameters[key];
500
499
 
501
500
  oRow = {};
@@ -545,7 +544,7 @@ sap.ui.define([
545
544
 
546
545
  // first try to get title from bag
547
546
  if (oTileApi.bag) {
548
- var bag = oTileApi.bag.getBag("tileProperties");
547
+ const bag = oTileApi.bag.getBag("tileProperties");
549
548
  if (bag.getTextNames().indexOf("display_title_text") >= 0) {
550
549
  return bag.getText("display_title_text");
551
550
  }
@@ -572,7 +571,7 @@ sap.ui.define([
572
571
  oUtils.getTranslatedSubtitle = function (oTileApi, oConfig) {
573
572
  // first try to get subtitle from bag
574
573
  if (oTileApi.bag) {
575
- var bag = oTileApi.bag.getBag("tileProperties");
574
+ const bag = oTileApi.bag.getBag("tileProperties");
576
575
  if (bag.getTextNames().indexOf("display_subtitle_text") >= 0) {
577
576
  return bag.getText("display_subtitle_text");
578
577
  }
@@ -598,13 +597,14 @@ sap.ui.define([
598
597
  * Returns the translated property string from .
599
598
  *
600
599
  * @param {object} oTileApi The instance-specific chip API.
601
- * @param {string} sPropertyKey The property key
600
+ * @param {object} oTileConfig The config bag.
601
+ * @param {string} sPropertyKey The property key.
602
602
  * @returns {string} The translated chip property.
603
603
  */
604
604
  oUtils.getTranslatedProperty = function (oTileApi, oTileConfig, sPropertyKey) {
605
605
  // Try to read data from the property bag. If there are properties for description etc. > use them
606
606
  if (oTileApi.bag) {
607
- var bag = oTileApi.bag.getBag("tileProperties");
607
+ const bag = oTileApi.bag.getBag("tileProperties");
608
608
  if (bag.getTextNames().indexOf(sPropertyKey) >= 0) {
609
609
  return bag.getText(sPropertyKey);
610
610
  }
@@ -615,15 +615,15 @@ sap.ui.define([
615
615
  };
616
616
 
617
617
  /**
618
- * Read and initialize configuration object from given JSON string. Used by the action chip (aka target mapping).
618
+ * Read and initialize given tile configuration object. Used by the action chip (aka target mapping).
619
619
  *
620
- * @param {string} sConfig Configuration string in JSON format
620
+ * @param {object} oTileApi Tile configuration object.
621
621
  * @param {string} bAdmin A flag that indicates, whether the configuration shall be shown in the Admin UI
622
622
  * @returns {object} Returns parsed and initialized configuration object
623
623
  */
624
624
  oUtils.getActionConfiguration = function (oTileApi, bAdmin) {
625
- var sConfig = oTileApi.configuration.getParameterValueAsString("tileConfiguration");
626
- var oConfig = JSON.parse(sConfig || "{}"), oResourceBundle;
625
+ const sConfig = oTileApi.configuration.getParameterValueAsString("tileConfiguration");
626
+ const oConfig = JSON.parse(sConfig || "{}"); let oResourceBundle;
627
627
  if (typeof bAdmin === "undefined") {
628
628
  bAdmin = oTileApi.configurationUi.isEnabled();
629
629
  }
@@ -631,8 +631,8 @@ sap.ui.define([
631
631
  if (bAdmin) {
632
632
  oResourceBundle = oUtils.getResourceBundle();
633
633
  }
634
- oConfig.semantic_object = oConfig.semantic_object || (bAdmin ? "[" + oResourceBundle.getText("configuration.semantic_object") + "]" : "");
635
- oConfig.semantic_action = oConfig.semantic_action || (bAdmin ? "[" + oResourceBundle.getText("configuration.semantic_action") + "]" : "");
634
+ oConfig.semantic_object = oConfig.semantic_object || (bAdmin ? `[${oResourceBundle.getText("configuration.semantic_object")}]` : "");
635
+ oConfig.semantic_action = oConfig.semantic_action || (bAdmin ? `[${oResourceBundle.getText("configuration.semantic_action")}]` : "");
636
636
  oConfig.navigation_provider = oConfig.navigation_provider || "";
637
637
  oConfig.navigation_provider_role = oConfig.navigation_provider_role || "";
638
638
  oConfig.navigation_provider_instance = oConfig.navigation_provider_instance || "";
@@ -656,9 +656,9 @@ sap.ui.define([
656
656
  * @returns {object} The configuration.
657
657
  */
658
658
  oUtils.getViewConfiguration = function (oView) {
659
- var oViewData = oView.getViewData();
660
- var oTileApi = oViewData.chip;
661
- var oCurrentConfig = oUtils.getAppLauncherConfig(oTileApi, true, true);
659
+ const oViewData = oView.getViewData();
660
+ const oTileApi = oViewData.chip;
661
+ const oCurrentConfig = oUtils.getAppLauncherConfig(oTileApi, true, true);
662
662
 
663
663
  return oCurrentConfig;
664
664
  };
@@ -673,18 +673,18 @@ sap.ui.define([
673
673
  * {@link components.tiles.applauncher.Configuration}, or {@link components.tiles.applauncherdynamic.Configuration}
674
674
  */
675
675
  oUtils.getConfigurationUi = function (oView, sViewName) {
676
- var oSemanticObjectSelector,
677
- oRoleSelector,
678
- oInstanceSelector,
679
- oAliasSelector,
680
- oApplicationType;
676
+ let oSemanticObjectSelector;
677
+ let oRoleSelector;
678
+ let oInstanceSelector;
679
+ let oAliasSelector;
680
+ let oApplicationType;
681
681
 
682
- var oViewData = oView.getViewData();
683
- var oCurrentConfig = oUtils.getViewConfiguration(oView);
682
+ const oViewData = oView.getViewData();
683
+ const oCurrentConfig = oUtils.getViewConfiguration(oView);
684
684
 
685
685
  // verify user allow to edit (user locale = original Locate
686
686
 
687
- var oConfigurationModel = new JSONModel({
687
+ const oConfigurationModel = new JSONModel({
688
688
  config: oCurrentConfig,
689
689
  // keep reference to the model in this model
690
690
  // (to be able to update it directly on configuration changes)
@@ -695,7 +695,7 @@ sap.ui.define([
695
695
  type: ViewType.XML,
696
696
  viewData: oViewData,
697
697
  viewName: sViewName
698
- }).then(function (oConfigurationView) {
698
+ }).then((oConfigurationView) => {
699
699
  oConfigurationView.setModel(oConfigurationModel);
700
700
 
701
701
  // initialize state of input fields depending on navigation_use_semantic_object
@@ -723,7 +723,6 @@ sap.ui.define([
723
723
  // Application type is used in action tile configuration
724
724
  oApplicationType = oConfigurationView.byId("targetTypeInput");
725
725
  if (oApplicationType) {
726
-
727
726
  if (!oConfigurationView.getModel().getProperty("/config/transaction")) {
728
727
  oConfigurationView.getModel().setProperty("/config/transaction", {});
729
728
  }
@@ -756,26 +755,26 @@ sap.ui.define([
756
755
  };
757
756
 
758
757
  oUtils._updateTilePropertiesTexts = function (oView, oTilePropertiesBag) {
759
- var aTilePropertiesTextNames = oTilePropertiesBag.getTextNames(),
760
- oModel = oView.getModel();
758
+ const aTilePropertiesTextNames = oTilePropertiesBag.getTextNames();
759
+ const oModel = oView.getModel();
761
760
 
762
- aTilePropertiesTextNames.forEach(function (sPropertyText) {
763
- oModel.setProperty("/data/" + sPropertyText, oTilePropertiesBag.getText(sPropertyText));
764
- oModel.setProperty("/config/" + sPropertyText, oTilePropertiesBag.getText(sPropertyText));
761
+ aTilePropertiesTextNames.forEach((sPropertyText) => {
762
+ oModel.setProperty(`/data/${sPropertyText}`, oTilePropertiesBag.getText(sPropertyText));
763
+ oModel.setProperty(`/config/${sPropertyText}`, oTilePropertiesBag.getText(sPropertyText));
765
764
  });
766
765
  };
767
766
 
768
767
  oUtils._updateTileConfiguration = function (oView, sTileConfigurationBag) {
769
- var oModel = oView.getModel(),
770
- oTileConfig = JSON.parse(sTileConfigurationBag),
771
- sPropertyValue;
768
+ const oModel = oView.getModel();
769
+ const oTileConfig = JSON.parse(sTileConfigurationBag);
770
+ let sPropertyValue;
772
771
 
773
- Object.keys(oTileConfig).forEach(function (sPropertyName) {
772
+ Object.keys(oTileConfig).forEach((sPropertyName) => {
774
773
  sPropertyValue = oTileConfig[sPropertyName];
775
- oModel.setProperty("/data/" + sPropertyName, sPropertyValue);
776
- oModel.setProperty("/config/" + sPropertyName, sPropertyValue);
774
+ oModel.setProperty(`/data/${sPropertyName}`, sPropertyValue);
775
+ oModel.setProperty(`/config/${sPropertyName}`, sPropertyValue);
777
776
  if (sPropertyName === "navigation_target_url") {
778
- oModel.setProperty("/nav/" + sPropertyName, sPropertyValue);
777
+ oModel.setProperty(`/nav/${sPropertyName}`, sPropertyValue);
779
778
  }
780
779
  });
781
780
  };
@@ -790,218 +789,229 @@ sap.ui.define([
790
789
 
791
790
  /**
792
791
  * Search function for the object selector dialog.
792
+ *
793
+ * @param {sap.ui.base.Event} oEvent The sap.m.SelectDialog search or liveChange event.
793
794
  */
794
795
  oUtils.objectSelectDoSearch = function (oEvent) {
795
- var filter = [], sVal = oEvent.getParameter("value"), itemsBinding, selectNameFilter, selectObjFilter;
796
+ const sVal = oEvent.getParameter("value");
796
797
  if (sVal !== undefined) {
797
- itemsBinding = oEvent.getParameter("itemsBinding");
798
- selectNameFilter = new Filter("name", FilterOperator.Contains, sVal);
799
- selectObjFilter = new Filter("obj", FilterOperator.Contains, sVal);
800
- filter.push(selectObjFilter);
801
- filter.push(selectNameFilter);
802
- itemsBinding.filter(new Filter(filter, false));
798
+ oEvent.getParameter("itemsBinding").filter(new Filter([
799
+ new Filter("name", FilterOperator.Contains, sVal),
800
+ new Filter("obj", FilterOperator.Contains, sVal)
801
+ ], false));
803
802
  }
804
803
  };
805
804
 
806
805
  /**
807
806
  * Search function for the action selector dialog.
807
+ *
808
+ * @param {sap.ui.base.Event} oEvent The sap.m.SelectDialog search or liveChange event.
808
809
  */
809
810
  oUtils.actionSelectDoSearch = function (oEvent) {
810
- var filter = [], sVal = oEvent.getParameter("value"), itemsBinding, selectActionFilter;
811
+ const sVal = oEvent.getParameter("value");
811
812
  if (sVal !== undefined) {
812
- itemsBinding = oEvent.getParameter("itemsBinding");
813
- selectActionFilter = new Filter("text", FilterOperator.Contains, sVal);
814
- filter.push(selectActionFilter);
815
- itemsBinding.filter(new Filter(filter, false));
813
+ oEvent.getParameter("itemsBinding").filter(new Filter([
814
+ new Filter("text", FilterOperator.Contains, sVal)
815
+ ], false));
816
816
  }
817
817
  };
818
818
 
819
819
  /**
820
820
  * Search function for the role selector dialog.
821
+ *
822
+ * @param {sap.ui.base.Event} oEvent The sap.m.TableSelectDialog search or liveChange event.
821
823
  */
822
824
  oUtils.roleSelectDoSearch = function (oEvent) {
823
- var filter = [], sVal = oEvent.getParameter("value"), itemsBinding, selectRoleFilter, selectInstanceFilter;
825
+ const sVal = oEvent.getParameter("value");
824
826
  if (sVal !== undefined) {
825
- itemsBinding = oEvent.getParameter("itemsBinding");
826
- selectRoleFilter = new Filter("role", FilterOperator.Contains, sVal);
827
- selectInstanceFilter = new Filter("instance", FilterOperator.Contains, sVal);
828
- filter.push(selectRoleFilter);
829
- filter.push(selectInstanceFilter);
830
- itemsBinding.filter(new Filter(filter, false));
827
+ oEvent.getParameter("itemsBinding").filter(new Filter([
828
+ new Filter("role", FilterOperator.Contains, sVal),
829
+ new Filter("instance", FilterOperator.Contains, sVal)
830
+ ], false));
831
831
  }
832
832
  };
833
833
 
834
834
  /**
835
835
  * Search function for the instance selector dialog.
836
+ *
837
+ * @param {sap.ui.base.Event} oEvent The sap.m.SelectDialog search or liveChange event.
836
838
  */
837
839
  oUtils.instanceSelectDoSearch = function (oEvent) {
838
- var filter = [], sVal = oEvent.getParameter("value"), customData, sRole, itemsBinding, selectRoleFilter, selectObjFilter;
839
-
840
- customData = oEvent.getSource().getCustomData();
841
- sRole = customData[0].getValue();
840
+ const sVal = oEvent.getParameter("value");
842
841
 
843
842
  if (sVal !== undefined) {
844
- itemsBinding = oEvent.getParameter("itemsBinding");
843
+ const aFilters = [];
845
844
  if (sVal !== "") {
846
- selectObjFilter = new Filter("instance", FilterOperator.Contains, sVal);
847
- filter.push(selectObjFilter);
845
+ aFilters.push(new Filter("instance", FilterOperator.Contains, sVal));
848
846
  }
847
+
848
+ const aCustomData = oEvent.getSource().getCustomData();
849
+ const sRole = aCustomData[0].getValue();
849
850
  if (sRole !== "") {
850
- selectRoleFilter = new Filter("role", FilterOperator.EQ, sRole);
851
- filter.push(selectRoleFilter);
851
+ aFilters.push(new Filter("role", FilterOperator.EQ, sRole));
852
852
  }
853
- if (filter.length > 0) {
854
- itemsBinding.filter(new Filter(filter, true));
853
+
854
+ if (aFilters.length > 0) {
855
+ oEvent.getParameter("itemsBinding").filter(new Filter(aFilters, true));
855
856
  }
856
857
  }
857
858
  };
858
859
 
859
860
  /**
860
861
  * Suggest function for the instance.
862
+ *
863
+ * @param {sap.ushell.components.tiles.action.Configuration.controller} oController .
864
+ * @param {sap.ui.base.Event} oEvent The sap.m.Input suggest event.
861
865
  */
862
866
  oUtils.instanceSuggest = function (oController, oEvent) {
863
- var oView = oController.getView(), filter = [], sVal = oEvent.getParameter("value"), oRoleSelector, sRole, suggestionsItemBinding, selectRoleFilter, selectObjFilter;
864
-
865
- oRoleSelector = oView.byId("navigation_provider_roleInput");
866
- sRole = oRoleSelector.getValue();
867
- sVal = oEvent.getParameter("suggestValue");
867
+ const aFilters = [];
868
868
 
869
+ const sVal = oEvent.getParameter("suggestValue");
869
870
  if (sVal !== "") {
870
- selectObjFilter = new Filter("instance", FilterOperator.Contains, sVal);
871
- filter.push(selectObjFilter);
871
+ aFilters.push(new Filter("instance", FilterOperator.Contains, sVal));
872
872
  }
873
+
874
+ const oView = oController.getView();
875
+ const oRoleSelector = oView.byId("navigation_provider_roleInput");
876
+ const sRole = oRoleSelector.getValue();
873
877
  if (sRole !== "") {
874
- selectRoleFilter = new Filter("role", FilterOperator.EQ, sRole);
875
- filter.push(selectRoleFilter);
878
+ aFilters.push(new Filter("role", FilterOperator.EQ, sRole));
876
879
  }
877
- if (filter.length > 0) {
878
- suggestionsItemBinding = oEvent.oSource.getBinding("suggestionItems");
879
- suggestionsItemBinding.filter(new Filter(filter, true));
880
+
881
+ if (aFilters.length > 0) {
882
+ oEvent.oSource.getBinding("suggestionItems").filter(new Filter(aFilters, true));
880
883
  }
881
884
  };
882
885
 
883
886
  /**
884
887
  * Suggest function for the alias.
888
+ *
889
+ * @param {sap.ushell.components.tiles.action.Configuration.controller} oController .
890
+ * @param {sap.ui.base.Event} oEvent The sap.m.Input suggest event.
885
891
  */
886
892
  oUtils.aliasSuggest = function (oController, oEvent) {
887
- var oView = oController.getView(), filter = [], sVal = oEvent.getParameter("value"), oInstanceSelector, sInstance, suggestionsItemBinding, selectInstanceFilter, selectAliasFilter;
888
-
889
- oInstanceSelector = oView.byId("navigation_provider_instanceInput");
890
- sInstance = oInstanceSelector.getValue();
891
- sVal = oEvent.getParameter("suggestValue");
893
+ const aFilters = [];
892
894
 
895
+ const sVal = oEvent.getParameter("suggestValue");
893
896
  if (sVal !== "") {
894
- selectAliasFilter = new Filter("alias", FilterOperator.Contains, sVal);
895
- filter.push(selectAliasFilter);
897
+ aFilters.push(new Filter("alias", FilterOperator.Contains, sVal));
896
898
  }
899
+
900
+ const oView = oController.getView();
901
+ const oInstanceSelector = oView.byId("navigation_provider_instanceInput");
902
+ const sInstance = oInstanceSelector.getValue();
897
903
  if (sInstance !== "") {
898
- selectInstanceFilter = new Filter("instance", FilterOperator.EQ, sInstance);
899
- filter.push(selectInstanceFilter);
904
+ aFilters.push(new Filter("instance", FilterOperator.EQ, sInstance));
900
905
  }
901
- if (filter.length > 0) {
902
- suggestionsItemBinding = oEvent.oSource.getBinding("suggestionItems");
903
- suggestionsItemBinding.filter(new Filter(filter, true));
906
+
907
+ if (aFilters.length > 0) {
908
+ oEvent.oSource.getBinding("suggestionItems").filter(new Filter(aFilters, true));
904
909
  }
905
910
  };
906
911
 
907
912
  /**
908
913
  * Search function for the alias selector dialog.
914
+ *
915
+ * @param {sap.ui.base.Event} oEvent The sap.m.SelectDialog search or liveChange event.
909
916
  */
910
917
  oUtils.aliasSelectDoSearch = function (oEvent) {
911
- var filter = [], sVal = oEvent.getParameter("value"), customData, sInstance, itemsBinding, selectNameFilter, selectObjFilter;
912
-
913
- customData = oEvent.getSource().getCustomData();
914
- sInstance = customData[0].getValue();
918
+ const aFilters = [];
919
+ const sVal = oEvent.getParameter("value");
915
920
 
916
921
  if (sVal !== undefined) {
917
- itemsBinding = oEvent.getParameter("itemsBinding");
918
- selectNameFilter = new Filter("instance", FilterOperator.EQ, sInstance);
919
922
  if (sVal !== "") {
920
- selectObjFilter = new Filter("alias", FilterOperator.Contains, sVal);
921
- filter.push(selectObjFilter);
923
+ aFilters.push(new Filter("alias", FilterOperator.Contains, sVal));
922
924
  }
923
- filter.push(selectNameFilter);
924
- itemsBinding.filter(new Filter(filter, true));
925
+
926
+ const aCustomData = oEvent.getSource().getCustomData();
927
+ const sInstance = aCustomData[0].getValue();
928
+ aFilters.push(new Filter("instance", FilterOperator.EQ, sInstance));
929
+
930
+ oEvent.getParameter("itemsBinding").filter(new Filter(aFilters, true));
925
931
  }
926
932
  };
927
933
 
928
934
  /**
929
935
  * Update function of the object selector dialog.
936
+ *
937
+ * @param {sap.m.SelectDialog} oSelectDialog The semantic object select dialog.
938
+ * @param {string} sVal The semantic object selector value.
930
939
  */
931
940
  oUtils.objectSelectUpdateDialog = function (oSelectDialog, sVal) {
932
- var filter = [], itemsBinding = oSelectDialog.getBinding("items"), selectFilter;
933
941
  if (sVal !== undefined) {
934
- selectFilter = new Filter("name", FilterOperator.Contains, sVal);
935
- filter.push(selectFilter);
936
- itemsBinding.filter(filter);
942
+ oSelectDialog.getBinding("items").filter([ new Filter("name", FilterOperator.Contains, sVal) ]);
937
943
  }
938
944
  };
939
945
 
940
946
  /**
941
947
  * Update function of the action selector dialog.
948
+ *
949
+ * @param {sap.m.SelectDialog} oSelectDialog The semantic action select dialog.
950
+ * @param {string} sVal The action selector value.
942
951
  */
943
952
  oUtils.actionSelectUpdateDialog = function (oSelectDialog, sVal) {
944
- var filter = [], itemsBinding = oSelectDialog.getBinding("items"), selectFilter;
945
953
  if (sVal !== undefined) {
946
- selectFilter = new Filter("text", FilterOperator.Contains, sVal);
947
- filter.push(selectFilter);
948
- itemsBinding.filter(filter);
954
+ oSelectDialog.getBinding("items").filter([ new Filter("text", FilterOperator.Contains, sVal) ]);
949
955
  }
950
956
  };
951
957
 
952
958
  /**
953
959
  * Update function of the role selector dialog.
960
+ *
961
+ * @param {sap.m.SelectDialog} oSelectDialog The role select dialog.
962
+ * @param {string} sVal The role selector value.
954
963
  */
955
964
  oUtils.roleSelectUpdateDialog = function (oSelectDialog, sVal) {
956
- var filter = [], itemsBinding = oSelectDialog.getBinding("items"), selectFilter;
957
965
  if (sVal !== undefined) {
958
- selectFilter = new Filter("role", FilterOperator.Contains, sVal);
959
- filter.push(selectFilter);
960
- itemsBinding.filter(filter);
966
+ oSelectDialog.getBinding("items").filter([ new Filter("role", FilterOperator.Contains, sVal) ]);
961
967
  }
962
968
  };
963
969
 
964
970
  /**
965
971
  * Update function of the instance selector dialog.
972
+ *
973
+ * @param {sap.m.SelectDialog} oSelectDialog The instance select dialog.
974
+ * @param {string} sVal The instance selector value.
966
975
  */
967
976
  oUtils.instanceSelectUpdateDialog = function (oSelectDialog, sVal) {
968
- var filter = [], customData, itemsBinding = oSelectDialog.getBinding("items"), selectFilter, sRole, selectNameFilter;
969
-
970
- customData = oSelectDialog.getCustomData();
971
- sRole = customData[0].getValue();
977
+ const aFilters = [];
972
978
 
973
979
  if (sVal !== undefined) {
974
- selectFilter = new Filter("instance", FilterOperator.Contains, sVal);
975
- filter.push(selectFilter);
980
+ aFilters.push(new Filter("instance", FilterOperator.Contains, sVal));
976
981
  }
982
+
983
+ const aCustomData = oSelectDialog.getCustomData();
984
+ const sRole = aCustomData[0].getValue();
977
985
  if (sRole !== "") {
978
- selectNameFilter = new Filter("role", FilterOperator.EQ, sRole);
979
- filter.push(selectNameFilter);
986
+ aFilters.push(new Filter("role", FilterOperator.EQ, sRole));
980
987
  }
981
- if (filter.length > 0) {
982
- itemsBinding.filter(filter, true);
988
+
989
+ if (aFilters.length > 0) {
990
+ oSelectDialog.getBinding("items").filter(aFilters, true);
983
991
  }
984
992
  };
985
993
 
986
994
  /**
987
995
  * Update function of the alias selector dialog.
996
+ *
997
+ * @param {sap.m.SelectDialog} oSelectDialog The alias select dialog.
998
+ * @param {string} sVal The alias selector value.
988
999
  */
989
1000
  oUtils.aliasSelectUpdateDialog = function (oSelectDialog, sVal) {
990
- var filter = [], customData, sInstance, itemsBinding = oSelectDialog.getBinding("items"), selectNameFilter, selectFilter;
991
-
992
- customData = oSelectDialog.getCustomData();
993
- sInstance = customData[0].getValue();
1001
+ const aFilters = [];
994
1002
 
995
1003
  if (sVal !== undefined) {
996
- selectFilter = new Filter("alias", FilterOperator.Contains, sVal);
997
- filter.push(selectFilter);
1004
+ aFilters.push(new Filter("alias", FilterOperator.Contains, sVal));
998
1005
  }
1006
+
1007
+ const aCustomData = oSelectDialog.getCustomData();
1008
+ const sInstance = aCustomData[0].getValue();
999
1009
  if (sInstance !== "") {
1000
- selectNameFilter = new Filter("instance", FilterOperator.EQ, sInstance);
1001
- filter.push(selectNameFilter);
1010
+ aFilters.push(new Filter("instance", FilterOperator.EQ, sInstance));
1002
1011
  }
1003
- if (filter.length > 0) {
1004
- itemsBinding.filter(filter, true);
1012
+
1013
+ if (aFilters.length > 0) {
1014
+ oSelectDialog.getBinding("items").filter(aFilters, true);
1005
1015
  }
1006
1016
  };
1007
1017
 
@@ -1012,6 +1022,8 @@ sap.ui.define([
1012
1022
  /**
1013
1023
  * Visually select the given icon as indicated.
1014
1024
  *
1025
+ * @param {sap.m.Icon} oIcon The icon UI5 control.
1026
+ * @param {boolean} bSelected Whether the icon should be marked as selected.
1015
1027
  * @see sapMStdTileIconDiv
1016
1028
  */
1017
1029
  oUtils.iconSelect = function (oIcon, bSelected) {
@@ -1020,10 +1032,16 @@ sap.ui.define([
1020
1032
  };
1021
1033
 
1022
1034
  /**
1023
- * Event handler for icon's "press" event in selection dialog.
1035
+ * Event handler for icon's "press" event in selection dialog. (This function does not seem to be used! It also seems to be broken!)
1036
+ *
1037
+ * @param {object} oController The tile configuration controller.
1038
+ * @param {boolean} isTileActions If the flag isTileActions is true, the model property /config/tile_actions_selected_icon is used.
1039
+ * @param {object} oTileActionsIcon the icon control?
1040
+ * @param {object} oControlEvent the icon control?
1024
1041
  */
1025
1042
  oUtils.onSelectIcon = function (oController, isTileActions, oTileActionsIcon, oControlEvent) {
1026
- var oModel = oController.getView().getModel(), oSelectedIcon;
1043
+ const oView = oController.getView();
1044
+ const oModel = oView.getModel(); let oSelectedIcon;
1027
1045
  if (isTileActions) {
1028
1046
  oSelectedIcon = oModel.getProperty("/config/tile_actions_selected_icon");
1029
1047
  } else {
@@ -1042,11 +1060,13 @@ sap.ui.define([
1042
1060
  } else {
1043
1061
  oModel.setProperty("/config/selected_icon", oSelectedIcon);
1044
1062
  }
1045
- oController.byId("selectIconDialog").setTitle(oSelectedIcon.getSrc());
1063
+ oView.byId("selectIconDialog").setTitle(oSelectedIcon.getSrc());
1046
1064
  };
1047
1065
 
1048
1066
  /**
1049
1067
  * Close handler for icon select dialog.
1068
+ *
1069
+ * @param {object} oView the configuration view.
1050
1070
  */
1051
1071
  oUtils.onSelectIconClose = function (oView) {
1052
1072
  oView.byId("selectIconDialog").close();
@@ -1054,9 +1074,12 @@ sap.ui.define([
1054
1074
 
1055
1075
  /**
1056
1076
  * Confirm handler for icon select dialog.
1077
+ *
1078
+ * @param {object} oView the configuration view.
1079
+ * @param {object} oTileActionsIcon the tile action icon. (seems not to be used!)
1057
1080
  */
1058
1081
  oUtils.onSelectIconOk = function (oView, oTileActionsIcon) {
1059
- var oSelectedIcon = oView.getModel().getProperty("/config/selected_icon");
1082
+ let oSelectedIcon = oView.getModel().getProperty("/config/selected_icon");
1060
1083
  if (!oTileActionsIcon) {
1061
1084
  oView.getModel().setProperty("/config/display_icon_url", oSelectedIcon.getSrc());
1062
1085
  oView.byId("iconInput").setValueState(ValueState.None);
@@ -1073,20 +1096,28 @@ sap.ui.define([
1073
1096
 
1074
1097
  /**
1075
1098
  * Value help request for icon selection. Opens the icon selection dialog.
1099
+ *
1100
+ * @param {object} oController The tile configuration controller.
1101
+ * @param {sap.ui.base.Event} oEvent The value help event.
1102
+ * @param {boolean} isTileActions If the flag isTileActions is true, then it's tile actions icon field. read the value from event.
1076
1103
  */
1077
1104
  oUtils.iconSelectOnValueHelpRequest = function (oController, oEvent, isTileActions) {
1078
- var oModel = oController.getView().getModel();
1079
- var oResponsiveFlowLayout = oController.getView().byId("icons");
1080
- var aCollectionNames = IconPool.getIconCollectionNames();
1081
- var oDialog = oController.getView().byId("selectIconDialog");
1082
- var oOK = oController.getView().byId("ok");
1083
-
1084
- var aContent, sIcon, oTileActionsIcon, aIconNames, i, j, sUri, bBusinessSuiteInAppSymbolsContained = false;
1085
- // Clear the content of icon layout, so that the content will be reloded everytime, with different press events for tile actions icon and
1105
+ const oView = oController.getView();
1106
+ const oModel = oView.getModel();
1107
+ const oResponsiveFlowLayout = oView.byId("icons");
1108
+ let aCollectionNames = IconPool.getIconCollectionNames();
1109
+ const oDialog = oView.byId("selectIconDialog");
1110
+ const oOK = oView.byId("ok");
1111
+
1112
+ let sIcon;
1113
+ let oTileActionsIcon;
1114
+ let aIconNames;
1115
+ let sUri;
1116
+ let bBusinessSuiteInAppSymbolsContained = false;
1117
+ // Clear the content of icon layout, so that the content will be reloaded every time, with different press events for tile actions icon and
1086
1118
  // general icon.
1087
1119
  oResponsiveFlowLayout.destroyContent();
1088
1120
 
1089
- // If the flag isTileActions is true, then it's tile actions icon field. read the value from event.
1090
1121
  if (isTileActions) {
1091
1122
  oTileActionsIcon = Element.getElementById(oEvent.getParameter("id"));
1092
1123
  sIcon = oTileActionsIcon.getValue();
@@ -1094,15 +1125,15 @@ sap.ui.define([
1094
1125
  sIcon = oModel.getProperty("/config/display_icon_url");
1095
1126
  }
1096
1127
 
1097
- oOK.attachEventOnce("press", function () {
1098
- oUtils.onSelectIconOk(oController.getView(), oTileActionsIcon);
1128
+ oOK.attachEventOnce("press", () => {
1129
+ oUtils.onSelectIconOk(oView, oTileActionsIcon);
1099
1130
  });
1100
1131
 
1101
- // commenting this beacuse press event has to be binded different for general icon and tile actions icon.
1132
+ // commenting this because press event has to be bound different for general icon and tile actions icon.
1102
1133
  // if (aContent.length === 0) {
1103
1134
  aCollectionNames.sort();
1104
1135
  // remove in-app symbols
1105
- aCollectionNames = aCollectionNames.filter(function (value) {
1136
+ aCollectionNames = aCollectionNames.filter((value) => {
1106
1137
  if (value === "BusinessSuiteInAppSymbols") {
1107
1138
  bBusinessSuiteInAppSymbolsContained = true;
1108
1139
  return false;
@@ -1114,10 +1145,10 @@ sap.ui.define([
1114
1145
  if (bBusinessSuiteInAppSymbolsContained) {
1115
1146
  aCollectionNames.push("BusinessSuiteInAppSymbols");
1116
1147
  }
1117
- for (i = 0; i < aCollectionNames.length; i += 1) {
1148
+ for (let i = 0; i < aCollectionNames.length; ++i) {
1118
1149
  aIconNames = IconPool.getIconNames(aCollectionNames[i]);
1119
1150
  aIconNames.sort();
1120
- for (j = 0; j < aIconNames.length; j += 1) {
1151
+ for (let j = 0; j < aIconNames.length; ++j) {
1121
1152
  sUri = IconPool.getIconURI(aIconNames[j], aCollectionNames[i]);
1122
1153
  oResponsiveFlowLayout.addContent(new Icon({
1123
1154
  height: "38px",
@@ -1129,7 +1160,7 @@ sap.ui.define([
1129
1160
  }));
1130
1161
  }
1131
1162
  }
1132
- aContent = oResponsiveFlowLayout.getContent();
1163
+ const aContent = oResponsiveFlowLayout.getContent();
1133
1164
 
1134
1165
  // initial state
1135
1166
  oModel.setProperty("/config/ok.enabled", false);
@@ -1139,7 +1170,7 @@ sap.ui.define([
1139
1170
  });
1140
1171
 
1141
1172
  // initial selection
1142
- for (i = 0; i < aContent.length; i += 1) {
1173
+ for (let i = 0; i < aContent.length; ++i) {
1143
1174
  if (aContent[i].getSrc() === sIcon) {
1144
1175
  if (isTileActions) {
1145
1176
  oModel.setProperty("/config/tile_actions_selected_icon", aContent[i]);
@@ -1159,19 +1190,22 @@ sap.ui.define([
1159
1190
 
1160
1191
  /**
1161
1192
  * Value help request for semantic object input. Opens the semantic object input dialog.
1193
+ *
1194
+ * @param {object} oController The configuration controller.
1195
+ * @param {sap.ui.base.Event} oEvent The value help event.
1196
+ * @param {boolean} isTileActions If the flag isTileActions is true, then it's tile actions icon field. read the value from event.
1162
1197
  */
1163
1198
  oUtils.objectSelectOnValueHelpRequest = function (oController, oEvent, isTileActions) {
1164
- var oView = oController.getView();
1165
- var sTitle = oUtils.getResourceBundle().getText("configuration.semantic_object");
1166
- var oSemanticObjectSelector;
1167
- var sValue;
1168
- var oSelectorModel = new JSONModel();
1169
- var oSelectDialog = new SelectDialog("semantic_object_select_dialog", {
1199
+ const oView = oController.getView();
1200
+ const sTitle = oUtils.getResourceBundle().getText("configuration.semantic_object");
1201
+ let oSemanticObjectSelector;
1202
+ const oSelectorModel = new JSONModel();
1203
+ let oSelectDialog = new SelectDialog("semantic_object_select_dialog", {
1170
1204
 
1171
1205
  title: sTitle,
1172
1206
  search: oUtils.objectSelectDoSearch,
1173
1207
  liveChange: oUtils.objectSelectDoSearch
1174
- }), itemTemplate = new StandardListItem({
1208
+ }); const itemTemplate = new StandardListItem({
1175
1209
  title: "{obj}"
1176
1210
  });
1177
1211
 
@@ -1181,7 +1215,7 @@ sap.ui.define([
1181
1215
  // action tile uses 'semantic_objectInput', dynamic/static tile use 'navigation_semantic_objectInput'
1182
1216
  oSemanticObjectSelector = oView.byId("semantic_objectInput") || oView.byId("navigation_semantic_objectInput");
1183
1217
  }
1184
- sValue = oSemanticObjectSelector.getValue();
1218
+ const sValue = oSemanticObjectSelector.getValue();
1185
1219
 
1186
1220
  oSelectDialog.open(sValue);
1187
1221
  // controllers can have different default objects
@@ -1193,7 +1227,7 @@ sap.ui.define([
1193
1227
  oUtils.objectSelectUpdateDialog(oSelectDialog, sValue);
1194
1228
 
1195
1229
  // cancel handler
1196
- oSelectDialog.attachCancel(function (evt) {
1230
+ oSelectDialog.attachCancel((evt) => {
1197
1231
  oSemanticObjectSelector.setValue(sValue);
1198
1232
  if (!isTileActions) {
1199
1233
  oSemanticObjectSelector.fireChange();
@@ -1203,8 +1237,8 @@ sap.ui.define([
1203
1237
  });
1204
1238
 
1205
1239
  // confirm handler
1206
- oSelectDialog.attachConfirm(function (evt) {
1207
- var selectedItem = evt.getParameter("selectedItem");
1240
+ oSelectDialog.attachConfirm((evt) => {
1241
+ const selectedItem = evt.getParameter("selectedItem");
1208
1242
  if (selectedItem) {
1209
1243
  oSemanticObjectSelector.setValue(selectedItem.getTitle());
1210
1244
  if (!isTileActions) {
@@ -1218,18 +1252,21 @@ sap.ui.define([
1218
1252
 
1219
1253
  /**
1220
1254
  * Value help request for role input. Opens the role input dialog.
1255
+ *
1256
+ * @param {object} oController The configuration controller.
1257
+ * @param {sap.ui.base.Event} oEvent The value help event.
1258
+ * @param {boolean} isTileActions If the flag isTileActions is true, then it's tile actions icon field. read the value from event.
1221
1259
  */
1222
1260
  oUtils.actionSelectOnValueHelpRequest = function (oController, oEvent, isTileActions) {
1223
- var oView = oController.getView();
1224
- var sTitle = oUtils.getResourceBundle().getText("configuration.semantic_action");
1225
- var oActionSelector;
1226
- var sValue;
1227
- var oSelectorModel = new JSONModel();
1228
- var oSelectDialog = new SelectDialog("semantic_action_select_dialog", {
1261
+ const oView = oController.getView();
1262
+ const sTitle = oUtils.getResourceBundle().getText("configuration.semantic_action");
1263
+ let oActionSelector;
1264
+ const oSelectorModel = new JSONModel();
1265
+ let oSelectDialog = new SelectDialog("semantic_action_select_dialog", {
1229
1266
  title: sTitle,
1230
1267
  search: oUtils.actionSelectDoSearch,
1231
1268
  liveChange: oUtils.actionSelectDoSearch
1232
- }), itemTemplate = new StandardListItem({
1269
+ }); const itemTemplate = new StandardListItem({
1233
1270
  title: "{text}"
1234
1271
  });
1235
1272
 
@@ -1239,7 +1276,7 @@ sap.ui.define([
1239
1276
  // action tile uses 'semantic_objectInput', dynamic/static tile use 'navigation_semantic_objectInput'
1240
1277
  oActionSelector = oView.byId("semantic_actionInput") || oView.byId("navigation_semantic_actionInput");
1241
1278
  }
1242
- sValue = oActionSelector.getValue();
1279
+ const sValue = oActionSelector.getValue();
1243
1280
 
1244
1281
  oSelectDialog.open(sValue);
1245
1282
  // controllers can have different default objects
@@ -1251,7 +1288,7 @@ sap.ui.define([
1251
1288
  oUtils.actionSelectUpdateDialog(oSelectDialog, sValue);
1252
1289
 
1253
1290
  // cancel handler
1254
- oSelectDialog.attachCancel(function (evt) {
1291
+ oSelectDialog.attachCancel((evt) => {
1255
1292
  oActionSelector.setValue(sValue);
1256
1293
  if (!isTileActions) {
1257
1294
  oActionSelector.fireChange();
@@ -1261,8 +1298,8 @@ sap.ui.define([
1261
1298
  });
1262
1299
 
1263
1300
  // confirm handler
1264
- oSelectDialog.attachConfirm(function (evt) {
1265
- var selectedItem = evt.getParameter("selectedItem");
1301
+ oSelectDialog.attachConfirm((evt) => {
1302
+ const selectedItem = evt.getParameter("selectedItem");
1266
1303
  if (selectedItem) {
1267
1304
  oActionSelector.setValue(selectedItem.getTitle());
1268
1305
  if (!isTileActions) {
@@ -1279,49 +1316,48 @@ sap.ui.define([
1279
1316
 
1280
1317
  /**
1281
1318
  * Value help request for role input. Opens the role input dialog.
1319
+ *
1320
+ * @param {sap.ushell.components.tiles.action.Configuration.controller} oController The configuration controller.
1282
1321
  */
1283
- oUtils.roleSelectOnValueHelpRequest = function (oController/*, oEvent*/) {
1284
- var oView = oController.getView(),
1285
- sTitle = oUtils.getResourceBundle().getText("configuration.navigation_provider_role"),
1286
- oRoleSelector,
1287
- oInstanceSelector,
1288
- sValue,
1289
- oSelectorModel = new JSONModel(),
1290
- //TableSelectDialog is loaded in core-ext-light.
1291
- //Should be load async with sap.ui.require, but not clear where it is used and how to test it.
1292
- oSelectDialog = new TableSelectDialog("role_select_dialog", {
1293
- title: sTitle,
1294
- search: oUtils.roleSelectDoSearch,
1295
- liveChange: oUtils.roleSelectDoSearch,
1296
- columns: [
1297
- new Column({
1298
- header: [
1299
- new Text({
1300
- text: oUtils.getResourceBundle().getText("configuration.navigation_provider_role")
1301
- })
1302
- ]
1303
- }), new Column({
1304
- header: [
1305
- new Text({
1306
- text: oUtils.getResourceBundle().getText("configuration.navigation_provider_instance")
1307
- })
1308
- ]
1309
- })
1310
- ]
1311
- }), itemTemplate = new ColumnListItem({
1312
- cells: [
1313
- new Text({
1314
- text: "{role}"
1315
- }), new Text({
1316
- text: "{instance}"
1317
- })
1318
- ]
1319
- });
1322
+ oUtils.roleSelectOnValueHelpRequest = function (oController/* , oEvent */) {
1323
+ const oView = oController.getView();
1324
+ const sTitle = oUtils.getResourceBundle().getText("configuration.navigation_provider_role");
1325
+ const oSelectorModel = new JSONModel();
1326
+ // TableSelectDialog is loaded in core-ext-light.
1327
+ // Should be load async with sap.ui.require, but not clear where it is used and how to test it.
1328
+ let oSelectDialog = new TableSelectDialog("role_select_dialog", {
1329
+ title: sTitle,
1330
+ search: oUtils.roleSelectDoSearch,
1331
+ liveChange: oUtils.roleSelectDoSearch,
1332
+ columns: [
1333
+ new Column({
1334
+ header: [
1335
+ new Text({
1336
+ text: oUtils.getResourceBundle().getText("configuration.navigation_provider_role")
1337
+ })
1338
+ ]
1339
+ }), new Column({
1340
+ header: [
1341
+ new Text({
1342
+ text: oUtils.getResourceBundle().getText("configuration.navigation_provider_instance")
1343
+ })
1344
+ ]
1345
+ })
1346
+ ]
1347
+ }); const itemTemplate = new ColumnListItem({
1348
+ cells: [
1349
+ new Text({
1350
+ text: "{role}"
1351
+ }), new Text({
1352
+ text: "{instance}"
1353
+ })
1354
+ ]
1355
+ });
1320
1356
 
1321
- oRoleSelector = oView.byId("navigation_provider_roleInput");
1322
- oInstanceSelector = oView.byId("navigation_provider_instanceInput");
1357
+ const oRoleSelector = oView.byId("navigation_provider_roleInput");
1358
+ const oInstanceSelector = oView.byId("navigation_provider_instanceInput");
1323
1359
 
1324
- sValue = oRoleSelector.getValue();
1360
+ const sValue = oRoleSelector.getValue();
1325
1361
 
1326
1362
  oSelectDialog.open(sValue);
1327
1363
  // controllers can have different default objects
@@ -1333,7 +1369,7 @@ sap.ui.define([
1333
1369
  oUtils.roleSelectUpdateDialog(oSelectDialog, sValue);
1334
1370
 
1335
1371
  // cancel handler
1336
- oSelectDialog.attachCancel(function (evt) {
1372
+ oSelectDialog.attachCancel((evt) => {
1337
1373
  oRoleSelector.setValue(sValue);
1338
1374
  oRoleSelector.fireChange();
1339
1375
  oSelectDialog.destroy();
@@ -1341,8 +1377,8 @@ sap.ui.define([
1341
1377
  });
1342
1378
 
1343
1379
  // confirm handler
1344
- oSelectDialog.attachConfirm(function (evt) {
1345
- var selectedItem = evt.getParameter("selectedItem");
1380
+ oSelectDialog.attachConfirm((evt) => {
1381
+ const selectedItem = evt.getParameter("selectedItem");
1346
1382
  if (selectedItem) {
1347
1383
  oRoleSelector.setValue(selectedItem.getCells()[0].getText());
1348
1384
  oInstanceSelector.setValue(selectedItem.getCells()[1].getText());
@@ -1356,27 +1392,26 @@ sap.ui.define([
1356
1392
 
1357
1393
  /**
1358
1394
  * Value help request for instance input. Opens the instance input dialog.
1395
+ *
1396
+ * @param {sap.ushell.components.tiles.action.Configuration.controller} oController The configuration controller.
1359
1397
  */
1360
- oUtils.instanceSelectOnValueHelpRequest = function (oController/*, oEvent*/) {
1361
- var oView = oController.getView();
1362
- var sRole;
1363
- var sTitle = oUtils.getResourceBundle().getText("configuration.navigation_provider_instance");
1364
- var oInstanceSelector;
1365
- var sValue;
1366
- var oSelectorModel = new JSONModel();
1367
- var oSelectDialog = new SelectDialog("instance_select_dialog", {
1398
+ oUtils.instanceSelectOnValueHelpRequest = function (oController/* , oEvent */) {
1399
+ const oView = oController.getView();
1400
+ const sTitle = oUtils.getResourceBundle().getText("configuration.navigation_provider_instance");
1401
+ const oSelectorModel = new JSONModel();
1402
+ let oSelectDialog = new SelectDialog("instance_select_dialog", {
1368
1403
  title: sTitle,
1369
1404
  search: oUtils.instanceSelectDoSearch,
1370
1405
  liveChange: oUtils.instanceSelectDoSearch
1371
- }), itemTemplate = new StandardListItem({
1406
+ }); const itemTemplate = new StandardListItem({
1372
1407
  title: "{instance}"
1373
1408
  });
1374
1409
 
1375
- oInstanceSelector = oView.byId("navigation_provider_instanceInput");
1410
+ const oInstanceSelector = oView.byId("navigation_provider_instanceInput");
1376
1411
 
1377
- sValue = oInstanceSelector.getValue();
1412
+ const sValue = oInstanceSelector.getValue();
1378
1413
 
1379
- sRole = oView.byId("navigation_provider_roleInput").getValue();
1414
+ const sRole = oView.byId("navigation_provider_roleInput").getValue();
1380
1415
  oSelectDialog.addCustomData(new CustomData({
1381
1416
  key: "role",
1382
1417
  value: sRole
@@ -1392,7 +1427,7 @@ sap.ui.define([
1392
1427
  oUtils.instanceSelectUpdateDialog(oSelectDialog, sValue);
1393
1428
 
1394
1429
  // cancel handler
1395
- oSelectDialog.attachCancel(function (evt) {
1430
+ oSelectDialog.attachCancel((evt) => {
1396
1431
  oInstanceSelector.setValue(sValue);
1397
1432
  oInstanceSelector.fireChange();
1398
1433
  oSelectDialog.destroy();
@@ -1400,8 +1435,8 @@ sap.ui.define([
1400
1435
  });
1401
1436
 
1402
1437
  // confirm handler
1403
- oSelectDialog.attachConfirm(function (evt) {
1404
- var selectedItem = evt.getParameter("selectedItem");
1438
+ oSelectDialog.attachConfirm((evt) => {
1439
+ const selectedItem = evt.getParameter("selectedItem");
1405
1440
  if (selectedItem) {
1406
1441
  oInstanceSelector.setValue(selectedItem.getTitle());
1407
1442
  oInstanceSelector.fireChange();
@@ -1411,26 +1446,23 @@ sap.ui.define([
1411
1446
  });
1412
1447
  };
1413
1448
 
1414
- oUtils.applicationAliasSelectOnValueHelpRequest = function (oController/*, oEvent*/) {
1415
- var oView = oController.getView();
1416
- var sTitle = oUtils.getResourceBundle().getText("configuration.target_application_alias");
1417
- var oAliasSelector;
1418
- var sValue;
1419
- var sInstance;
1420
- var oSelectorModel = new JSONModel();
1421
- var oSelectDialog = new SelectDialog("alias_select_dialog", {
1449
+ oUtils.applicationAliasSelectOnValueHelpRequest = function (oController/* , oEvent */) {
1450
+ const oView = oController.getView();
1451
+ const sTitle = oUtils.getResourceBundle().getText("configuration.target_application_alias");
1452
+ const oSelectorModel = new JSONModel();
1453
+ let oSelectDialog = new SelectDialog("alias_select_dialog", {
1422
1454
  title: sTitle,
1423
1455
  search: oUtils.aliasSelectDoSearch,
1424
1456
  liveChange: oUtils.aliasSelectDoSearch
1425
- }), itemTemplate = new StandardListItem({
1457
+ }); const itemTemplate = new StandardListItem({
1426
1458
  title: "{alias}"
1427
1459
  });
1428
1460
 
1429
- oAliasSelector = oView.byId("target_application_aliasInput");
1461
+ const oAliasSelector = oView.byId("target_application_aliasInput");
1430
1462
 
1431
- sValue = oAliasSelector.getValue();
1463
+ const sValue = oAliasSelector.getValue();
1432
1464
 
1433
- sInstance = oView.byId("navigation_provider_instanceInput").getValue();
1465
+ const sInstance = oView.byId("navigation_provider_instanceInput").getValue();
1434
1466
  oSelectDialog.addCustomData(new CustomData({
1435
1467
  key: "instance",
1436
1468
  value: sInstance
@@ -1446,7 +1478,7 @@ sap.ui.define([
1446
1478
  oUtils.aliasSelectUpdateDialog(oSelectDialog, sValue);
1447
1479
 
1448
1480
  // cancel handler
1449
- oSelectDialog.attachCancel(function (evt) {
1481
+ oSelectDialog.attachCancel((evt) => {
1450
1482
  oAliasSelector.setValue(sValue);
1451
1483
  oAliasSelector.fireChange();
1452
1484
  oSelectDialog.destroy();
@@ -1454,8 +1486,8 @@ sap.ui.define([
1454
1486
  });
1455
1487
 
1456
1488
  // confirm handler
1457
- oSelectDialog.attachConfirm(function (evt) {
1458
- var selectedItem = evt.getParameter("selectedItem");
1489
+ oSelectDialog.attachConfirm((evt) => {
1490
+ const selectedItem = evt.getParameter("selectedItem");
1459
1491
  if (selectedItem) {
1460
1492
  oAliasSelector.setValue(selectedItem.getTitle());
1461
1493
  oAliasSelector.fireChange();
@@ -1472,10 +1504,10 @@ sap.ui.define([
1472
1504
  * @param {object} oTargetTypeComboBox The target type field
1473
1505
  */
1474
1506
  oUtils.onTargetTypeChange = function (oTargetTypeComboBox) {
1475
- var sId = oTargetTypeComboBox.getParameter("id");
1476
- var aParentCells = Element.getElementById(sId).getParent().getCells();
1507
+ const sId = oTargetTypeComboBox.getParameter("id");
1508
+ const aParentCells = Element.getElementById(sId).getParent().getCells();
1477
1509
 
1478
- var sTargetType = oTargetTypeComboBox.getSource().getSelectedKey(); // ('newValue');
1510
+ const sTargetType = oTargetTypeComboBox.getSource().getSelectedKey(); // ('newValue');
1479
1511
  if (sTargetType === "INT") {
1480
1512
  aParentCells[3].setEnabled(true); // Action field
1481
1513
  aParentCells[2].setShowValueHelp(true); // shows value Help for the Navigation Target field.
@@ -1494,11 +1526,11 @@ sap.ui.define([
1494
1526
  * @param {object} oConfigurationView The configuration view to add new row in the tile actions table.
1495
1527
  */
1496
1528
  oUtils.addTileActionsRow = function (oConfigurationView) {
1497
- var oModel = oConfigurationView.getModel();
1498
- var rows = oModel.getProperty("/config/tile_actions_rows");
1529
+ const oModel = oConfigurationView.getModel();
1530
+ const rows = oModel.getProperty("/config/tile_actions_rows");
1499
1531
 
1500
1532
  // Init a row template for adding new empty row to the tile actions table
1501
- var newParamRow = this.getEmptyTileActionsRowObj();
1533
+ const newParamRow = this.getEmptyTileActionsRowObj();
1502
1534
  rows.push(newParamRow);
1503
1535
  oModel.setProperty("/config/tile_actions_rows", rows);
1504
1536
  };
@@ -1509,16 +1541,16 @@ sap.ui.define([
1509
1541
  * @param {object} oConfigurationView The configuration view to delete rows from the tile actions table.
1510
1542
  */
1511
1543
  oUtils.deleteTileActionsRow = function (oConfigurationView) {
1512
- var oModel = oConfigurationView.getModel();
1513
- var rows = oModel.getProperty("/config/tile_actions_rows");
1544
+ const oModel = oConfigurationView.getModel();
1545
+ const rows = oModel.getProperty("/config/tile_actions_rows");
1514
1546
 
1515
- var table = oConfigurationView.byId("tileActions");
1516
- var aSelectedItemsIndexes = table.getSelectedIndices();
1517
- var aSortedDescending = aSelectedItemsIndexes.sort(function (a, b) {
1547
+ const table = oConfigurationView.byId("tileActions");
1548
+ const aSelectedItemsIndexes = table.getSelectedIndices();
1549
+ const aSortedDescending = aSelectedItemsIndexes.sort((a, b) => {
1518
1550
  return b - a;
1519
1551
  }).slice();
1520
1552
 
1521
- for (var i = 0; i < aSortedDescending.length; i++) {
1553
+ for (let i = 0; i < aSortedDescending.length; i++) {
1522
1554
  table.removeSelectionInterval(aSortedDescending[i], aSortedDescending[i]);// Make sure to turn off the selection or it will pass to the
1523
1555
  // next row.
1524
1556
  rows.splice(aSortedDescending[i], 1); // There is a major assumption here that the index in the model is identical to the index in the
@@ -1531,17 +1563,17 @@ sap.ui.define([
1531
1563
  * Checks the input of given configuration View.
1532
1564
  *
1533
1565
  * @param {object} oConfigurationView The configuration view to check the input for.
1534
- * @param {oControlEvent} The event that triggered the call to this function.
1566
+ * @param {object} oControlEvent The event that triggered the call to this function.
1535
1567
  */
1536
1568
  oUtils.checkInput = function (oConfigurationView, oControlEvent) {
1537
- var oTranslationBundle = oUtils.getResourceBundle(),
1538
- oIconURLInput = oConfigurationView.byId("iconInput"),
1539
- oUseSemObjNav = oConfigurationView.byId("useLpdCheckbox"),
1540
- oSemObjectInput = oConfigurationView.byId("navigation_semantic_objectInput") || oConfigurationView.byId("semantic_objectInput"),
1541
- oSemActionInput = oConfigurationView.byId("navigation_semantic_actionInput") || oConfigurationView.byId("semantic_actionInput"),
1542
- oValueState = ValueState.None,
1543
- oValueStateText = null,
1544
- sNewValue = String(oControlEvent.getParameter("newValue") || "").trim();
1569
+ const oTranslationBundle = oUtils.getResourceBundle();
1570
+ const oIconURLInput = oConfigurationView.byId("iconInput");
1571
+ const oUseSemObjNav = oConfigurationView.byId("useLpdCheckbox");
1572
+ const oSemObjectInput = oConfigurationView.byId("navigation_semantic_objectInput") || oConfigurationView.byId("semantic_objectInput");
1573
+ const oSemActionInput = oConfigurationView.byId("navigation_semantic_actionInput") || oConfigurationView.byId("semantic_actionInput");
1574
+ let oValueState = ValueState.None;
1575
+ let oValueStateText = null;
1576
+ const sNewValue = String(oControlEvent.getParameter("newValue") || "").trim();
1545
1577
 
1546
1578
  switch (oControlEvent.getSource()) {
1547
1579
  case oIconURLInput:
@@ -1588,14 +1620,15 @@ sap.ui.define([
1588
1620
  * Checks the input of given configuration View.
1589
1621
  *
1590
1622
  * @param {object} oConfigurationView The configuration view to check the input for.
1623
+ * @returns {boolean} whether the semantic object and action are valid.
1591
1624
  */
1592
1625
  oUtils.checkInputOnSaveConfig = function (oConfigurationView) {
1593
- var oIconURLInput = oConfigurationView.byId("iconInput");
1594
- var oSemObjectInput = oConfigurationView.byId("navigation_semantic_objectInput");
1595
- var oSemActionInput = oConfigurationView.byId("navigation_semantic_actionInput");
1596
- var oUseSemObjNav = oConfigurationView.byId("useLpdCheckbox");
1597
- var oTranslationBundle = oUtils.getResourceBundle();
1598
- var bReject = false;
1626
+ const oIconURLInput = oConfigurationView.byId("iconInput");
1627
+ const oSemObjectInput = oConfigurationView.byId("navigation_semantic_objectInput");
1628
+ const oSemActionInput = oConfigurationView.byId("navigation_semantic_actionInput");
1629
+ const oUseSemObjNav = oConfigurationView.byId("useLpdCheckbox");
1630
+ const oTranslationBundle = oUtils.getResourceBundle();
1631
+ let bReject = false;
1599
1632
  // Icon input check
1600
1633
  if (oIconURLInput.getValue() !== "" && !oUtils.isIconURIValid(oIconURLInput.getValue())) {
1601
1634
  oIconURLInput.setValueState(ValueState.Error);
@@ -1624,10 +1657,10 @@ sap.ui.define([
1624
1657
  };
1625
1658
 
1626
1659
  oUtils.checkTileActions = function (oConfigurationView) {
1627
- var aTableContent = oConfigurationView.getModel().getProperty("/config/tile_actions_rows");
1628
- var oTranslationBundle = oUtils.getResourceBundle();
1629
- var bReject = false;
1630
- for (var i = 0; i < aTableContent.length; i++) {
1660
+ const aTableContent = oConfigurationView.getModel().getProperty("/config/tile_actions_rows");
1661
+ const oTranslationBundle = oUtils.getResourceBundle();
1662
+ let bReject = false;
1663
+ for (let i = 0; i < aTableContent.length; i++) {
1631
1664
  if (!aTableContent[i].menu_title && (aTableContent[i].navigation_target || aTableContent.length > 1)) {
1632
1665
  aTableContent[i].valueState = ValueState.Error;
1633
1666
  bReject = true;
@@ -1652,12 +1685,13 @@ sap.ui.define([
1652
1685
  * Checks if the given icon URI is valid and idenifies an icon from the IconPool.
1653
1686
  *
1654
1687
  * @param {string} sIconURI The icon URI to check
1688
+ * @returns {boolean} whether the icon URI is valid.
1655
1689
  */
1656
1690
  oUtils.isIconURIValid = function (sIconURI) {
1657
- var aResult = [];
1658
- var sCollection = "";
1659
- var sIcon = "";
1660
- var sValidIconURI = "";
1691
+ let aResult = [];
1692
+ let sCollection = "";
1693
+ let sIcon = "";
1694
+ let sValidIconURI = "";
1661
1695
 
1662
1696
  aResult = /sap-icon:\/\/(.+)\//.exec(sIconURI);
1663
1697
  if (aResult) {
@@ -1693,22 +1727,22 @@ sap.ui.define([
1693
1727
  * Checks the input of given Target mapping configuration View.
1694
1728
  *
1695
1729
  * @param {object} oConfigurationView The configuration view to check the input for.
1696
- * @param {oControlEvent} The event that triggered the call to this function.
1730
+ * @param {object} oControlEvent The event that triggered the call to this function.
1697
1731
  */
1698
1732
  oUtils.checkTMInput = function (oConfigurationView, oControlEvent) {
1699
- var oTranslationBundle = oUtils.getResourceBundle(),
1700
- oSemObjectInput = oConfigurationView.byId("semantic_objectInput"),
1701
- oSemActionInput = oConfigurationView.byId("semantic_actionInput"),
1702
- oTargetAppTitleInput = oConfigurationView.byId("target_application_descriptionInput"),
1703
- oTargetAppURLInput = oConfigurationView.byId("target_application_urlInput"),
1704
- oTargetAppCompInput = oConfigurationView.byId("target_application_componentInput"),
1705
- oNavProviderRoleInput = oConfigurationView.byId("navigation_provider_roleInput"),
1706
- oNavProviderInstanceInput = oConfigurationView.byId("navigation_provider_instanceInput"),
1707
- oTargetAppAliasInput = oConfigurationView.byId("target_application_aliasInput"),
1708
- oTargetAppIdInput = oConfigurationView.byId("target_application_idInput"),
1709
- sNewValue = String(oControlEvent.getParameter("newValue") || "").trim(),
1710
- oValueState = ValueState.None,
1711
- oValueStateText = null;
1733
+ const oTranslationBundle = oUtils.getResourceBundle();
1734
+ const oSemObjectInput = oConfigurationView.byId("semantic_objectInput");
1735
+ const oSemActionInput = oConfigurationView.byId("semantic_actionInput");
1736
+ const oTargetAppTitleInput = oConfigurationView.byId("target_application_descriptionInput");
1737
+ const oTargetAppURLInput = oConfigurationView.byId("target_application_urlInput");
1738
+ const oTargetAppCompInput = oConfigurationView.byId("target_application_componentInput");
1739
+ const oNavProviderRoleInput = oConfigurationView.byId("navigation_provider_roleInput");
1740
+ const oNavProviderInstanceInput = oConfigurationView.byId("navigation_provider_instanceInput");
1741
+ const oTargetAppAliasInput = oConfigurationView.byId("target_application_aliasInput");
1742
+ const oTargetAppIdInput = oConfigurationView.byId("target_application_idInput");
1743
+ const sNewValue = String(oControlEvent.getParameter("newValue") || "").trim();
1744
+ let oValueState = ValueState.None;
1745
+ let oValueStateText = null;
1712
1746
 
1713
1747
  switch (oControlEvent.getSource()) {
1714
1748
  case oSemObjectInput:
@@ -1808,26 +1842,27 @@ sap.ui.define([
1808
1842
  * Checks the input of given configuration View.
1809
1843
  *
1810
1844
  * @param {object} oConfigurationView The configuration view to check the input for.
1845
+ * @returns {boolean} whether the target mapping is valid.
1811
1846
  */
1812
1847
  oUtils.checkTMInputOnSaveConfig = function (oConfigurationView) {
1813
- var oTranslationBundle = oUtils.getResourceBundle();
1814
- var oSemObjectInput = oConfigurationView.byId("semantic_objectInput");
1815
- var oSemActionInput = oConfigurationView.byId("semantic_actionInput");
1816
- var oTargetAppTitleInput = oConfigurationView.byId("target_application_descriptionInput");
1817
- var oTargetAppURLInput = oConfigurationView.byId("target_application_urlInput");
1818
- var oTargetAppCompInput = oConfigurationView.byId("target_application_componentInput");
1819
- var oNavProviderRoleInput = oConfigurationView.byId("navigation_provider_roleInput");
1820
- var oNavProviderInstanceInput = oConfigurationView.byId("navigation_provider_instanceInput");
1821
- var oTargetAppAliasInput = oConfigurationView.byId("target_application_aliasInput");
1822
- var oTargetAppIdInput = oConfigurationView.byId("target_application_idInput");
1823
- var oNavigationProvider = oConfigurationView.byId("targetTypeInput");
1824
- var oTransaction = oConfigurationView.byId("target_transactionInput");
1825
- var oWDApplication = oConfigurationView.byId("target_web_dynpro_applicationInput");
1826
- var oWCFApplication = oConfigurationView.byId("target_wcf_application_idInput");
1827
- var oFormFactorDesktopInput = oConfigurationView.byId("desktopCB");
1828
- var oFormFactorTabletInput = oConfigurationView.byId("tabletCB");
1829
- var oFormFactorPhoneInput = oConfigurationView.byId("phoneCB");
1830
- var bReject = false;
1848
+ const oTranslationBundle = oUtils.getResourceBundle();
1849
+ const oSemObjectInput = oConfigurationView.byId("semantic_objectInput");
1850
+ const oSemActionInput = oConfigurationView.byId("semantic_actionInput");
1851
+ const oTargetAppTitleInput = oConfigurationView.byId("target_application_descriptionInput");
1852
+ const oTargetAppURLInput = oConfigurationView.byId("target_application_urlInput");
1853
+ const oTargetAppCompInput = oConfigurationView.byId("target_application_componentInput");
1854
+ const oNavProviderRoleInput = oConfigurationView.byId("navigation_provider_roleInput");
1855
+ const oNavProviderInstanceInput = oConfigurationView.byId("navigation_provider_instanceInput");
1856
+ const oTargetAppAliasInput = oConfigurationView.byId("target_application_aliasInput");
1857
+ const oTargetAppIdInput = oConfigurationView.byId("target_application_idInput");
1858
+ const oNavigationProvider = oConfigurationView.byId("targetTypeInput");
1859
+ const oTransaction = oConfigurationView.byId("target_transactionInput");
1860
+ const oWDApplication = oConfigurationView.byId("target_web_dynpro_applicationInput");
1861
+ const oWCFApplication = oConfigurationView.byId("target_wcf_application_idInput");
1862
+ const oFormFactorDesktopInput = oConfigurationView.byId("desktopCB");
1863
+ const oFormFactorTabletInput = oConfigurationView.byId("tabletCB");
1864
+ const oFormFactorPhoneInput = oConfigurationView.byId("phoneCB");
1865
+ let bReject = false;
1831
1866
 
1832
1867
  // Semantic object input check
1833
1868
  oSemObjectInput.setValue(oSemObjectInput.getValue().trim());
@@ -1847,8 +1882,8 @@ sap.ui.define([
1847
1882
  bReject = true;
1848
1883
  }
1849
1884
 
1850
- var sNavProvider = oConfigurationView.getModel().getProperty("/config/navigation_provider"),
1851
- oValStateText;
1885
+ const sNavProvider = oConfigurationView.getModel().getProperty("/config/navigation_provider");
1886
+ let oValStateText;
1852
1887
  // SAPUI5 Fiori App radio is selected
1853
1888
  if (sNavProvider === "SAPUI5") {
1854
1889
  // Application title
@@ -1962,11 +1997,11 @@ sap.ui.define([
1962
1997
 
1963
1998
  oUtils.updateTooltipForDisabledProperties = function (oConfigurationView) {
1964
1999
  // change tooltip for all translatable properties in case userlocale !== original Locale
1965
- var oModel = oConfigurationView.getModel();
1966
- var isLocaleSuitable = oModel.getProperty("/config/isLocaleSuitable");
2000
+ const oModel = oConfigurationView.getModel();
2001
+ const isLocaleSuitable = oModel.getProperty("/config/isLocaleSuitable");
1967
2002
  if (!isLocaleSuitable) {
1968
- var rb = oUtils.getResourceBundle();
1969
- var message = rb.getText("edit_configuration.original_locale_not_fit_tooltip", [
2003
+ const rb = oUtils.getResourceBundle();
2004
+ const message = rb.getText("edit_configuration.original_locale_not_fit_tooltip", [
1970
2005
  oModel.getProperty("/config/userLocale"), oModel.getProperty("/config/orgLocale")
1971
2006
  ]);
1972
2007
  oConfigurationView.byId("titleInput").setTooltip(message);
@@ -1977,12 +2012,12 @@ sap.ui.define([
1977
2012
  };
1978
2013
 
1979
2014
  oUtils.updateMessageStripForOriginalLanguage = function (oConfigurationView) {
1980
- var oModel = oConfigurationView.getModel();
2015
+ const oModel = oConfigurationView.getModel();
1981
2016
  if (oModel.getProperty("/config/isLocaleSuitable") === false) {
1982
- var sMessageText = oUtils.getResourceBundle().getText("edit_configuration.original_locale_not_fit_message", [
2017
+ const sMessageText = oUtils.getResourceBundle().getText("edit_configuration.original_locale_not_fit_message", [
1983
2018
  oModel.getProperty("/config/orgLocale").toUpperCase(), oModel.getProperty("/config/userLocale").toUpperCase()
1984
2019
  ]);
1985
- var oMessageStrip = oConfigurationView.byId("messageStrip");
2020
+ const oMessageStrip = oConfigurationView.byId("messageStrip");
1986
2021
  oMessageStrip.setVisible(true);
1987
2022
  oMessageStrip.setText(sMessageText);
1988
2023
  oMessageStrip.setType(MessageType.Warning);
@@ -2000,19 +2035,19 @@ sap.ui.define([
2000
2035
  * @private
2001
2036
  */
2002
2037
  oUtils.createSemanticObjectModel = function (oConfigController, oSemanticObjectSelector, aDefaultValuesOverride) {
2003
- var oView = oConfigController.getView(),
2004
- // the URI of the semantic objects OData Servicw
2005
- sUri = "/sap/opu/odata/UI2/INTEROP/SemanticObjects",
2006
- // default selections that are prepended to the results of the OData call.
2007
- // Options: "" (no sem obj) or "*" (all sem objects)
2008
- aDefaultValues = [
2009
- { obj: "", name: "" },
2010
- { obj: "*", name: "*" }
2011
- ],
2038
+ const oView = oConfigController.getView();
2039
+ // the URI of the semantic objects OData Service
2040
+ const sUri = "/sap/opu/odata/UI2/INTEROP/SemanticObjects";
2041
+ // default selections that are prepended to the results of the OData call.
2042
+ // Options: "" (no sem obj) or "*" (all sem objects)
2043
+ const aDefaultValues = [
2044
+ { obj: "", name: "" },
2045
+ { obj: "*", name: "*" }
2046
+ ];
2012
2047
  // Note: copy the arrays!
2013
- aDefaultObjects = (aDefaultValuesOverride || aDefaultValues).slice(0),
2014
- // set model first only to default values
2015
- oSelectorModel = new JSONModel();
2048
+ const aDefaultObjects = (aDefaultValuesOverride || aDefaultValues).slice(0);
2049
+ // set model first only to default values
2050
+ const oSelectorModel = new JSONModel();
2016
2051
  // required to make the suggestion list show all entries
2017
2052
  // the default value for the size limit is 100!
2018
2053
  oSelectorModel.setSizeLimit(999999);
@@ -2025,8 +2060,8 @@ sap.ui.define([
2025
2060
  }));
2026
2061
  oSemanticObjectSelector.setModel(oSelectorModel, "suggest");
2027
2062
  if (oUtils.aData.length > 0) {
2028
- //update async, otherwise block the creation of view
2029
- setTimeout(function () {
2063
+ // update async, otherwise block the creation of view
2064
+ setTimeout(() => {
2030
2065
  oSelectorModel.setData({
2031
2066
  items: aDefaultObjects.concat(oUtils.aData)
2032
2067
  }, true); // merge
@@ -2041,39 +2076,39 @@ sap.ui.define([
2041
2076
  Accept: "application/json"
2042
2077
  }
2043
2078
  },
2044
- // sucess
2045
- function (oData/*, oResponse*/) {
2046
- var sId, sText, i;
2047
- for (i = 0; i < oData.results.length; i = i + 1) {
2048
- sId = oData.results[i].id;
2049
- sText = oData.results[i].text;
2050
- oUtils.aData.push({
2051
- obj: sId,
2052
- name: sText || sId
2053
- });
2054
- }
2055
- oSelectorModel.setData({
2056
- items: aDefaultObjects.concat(oUtils.aData)
2057
- }, true); // merge
2058
- },
2059
- // fail
2060
- function (oError) {
2061
- var sMessage = oError && oError.message ? oError.message : oError;
2062
- if (oError.response) {
2063
- sMessage += " - " + oError.response.statusCode + " " + oError.response.statusText;
2064
- }
2065
- Log.error("Could not fetch data: " + sUri + ": " + sMessage, null,
2066
- // the source component of the error - needs to be set within the parent controller control
2067
- (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2068
- });
2079
+ // sucess
2080
+ (oData/* , oResponse */) => {
2081
+ let sId; let sText; let i;
2082
+ for (i = 0; i < oData.results.length; i = i + 1) {
2083
+ sId = oData.results[i].id;
2084
+ sText = oData.results[i].text;
2085
+ oUtils.aData.push({
2086
+ obj: sId,
2087
+ name: sText || sId
2088
+ });
2089
+ }
2090
+ oSelectorModel.setData({
2091
+ items: aDefaultObjects.concat(oUtils.aData)
2092
+ }, true); // merge
2093
+ },
2094
+ // fail
2095
+ (oError) => {
2096
+ let sMessage = oError && oError.message ? oError.message : oError;
2097
+ if (oError.response) {
2098
+ sMessage += ` - ${oError.response.statusCode} ${oError.response.statusText}`;
2099
+ }
2100
+ Log.error(`Could not fetch data: ${sUri}: ${sMessage}`, null,
2101
+ // the source component of the error - needs to be set within the parent controller control
2102
+ (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2103
+ });
2069
2104
  };
2070
2105
 
2071
2106
  oUtils.createRoleModel = function (oConfigController, oRoleSelector, oInstanceSelector) {
2072
- var oView = oConfigController.getView(),
2073
- // the URI of the semantic objects OData Servicw
2074
- sUri = "/sap/opu/odata/UI2/INTEROP/GetLPDInstances",
2075
- // set model first only to default values
2076
- oSelectorModel = new JSONModel(), oInstanceSelectorModel = new JSONModel();
2107
+ const oView = oConfigController.getView();
2108
+ // the URI of the semantic objects OData Service
2109
+ const sUri = "/sap/opu/odata/UI2/INTEROP/GetLPDInstances";
2110
+ // set model first only to default values
2111
+ const oSelectorModel = new JSONModel(); const oInstanceSelectorModel = new JSONModel();
2077
2112
  // required to make the suggestion list show all entries
2078
2113
  // the default value for the size limit is 100!
2079
2114
  oSelectorModel.setSizeLimit(999999);
@@ -2084,7 +2119,7 @@ sap.ui.define([
2084
2119
  oInstanceSelectorModel.setProperty("/value", "");
2085
2120
  oInstanceSelectorModel.setProperty("/enabled", true);
2086
2121
 
2087
- var itemTemplate = new ColumnListItem({
2122
+ const itemTemplate = new ColumnListItem({
2088
2123
  cells: [
2089
2124
  new Label({ text: "{role}" }),
2090
2125
  new Label({ text: "{instance}" })
@@ -2098,7 +2133,7 @@ sap.ui.define([
2098
2133
  oInstanceSelector.setModel(oInstanceSelectorModel);
2099
2134
 
2100
2135
  oRoleSelector.setModel(oSelectorModel);
2101
- oRoleSelector.attachSuggestionItemSelected(function (evt) {
2136
+ oRoleSelector.attachSuggestionItemSelected((evt) => {
2102
2137
  oInstanceSelector.setValue(evt.getParameter("selectedRow").getCells()[1].getText());
2103
2138
  oInstanceSelector.fireChange();
2104
2139
  });
@@ -2120,42 +2155,42 @@ sap.ui.define([
2120
2155
  Accept: "application/json"
2121
2156
  }
2122
2157
  },
2123
- // sucess
2124
- function (oData/*, oResponse*/) {
2125
- var sRole, sInstance, i;
2126
- for (i = 0; i < oData.results.length; i = i + 1) {
2127
- sRole = oData.results[i].lpdRole;
2128
- sInstance = oData.results[i].instance;
2129
- oUtils.aRoleData.push({
2130
- role: sRole,
2131
- instance: sInstance
2132
- });
2133
- }
2134
- oSelectorModel.setData({
2135
- items: oUtils.aRoleData
2136
- }, true); // merge
2137
- oInstanceSelectorModel.setData({
2138
- items: oUtils.aRoleData
2139
- }, true); // merge
2140
- },
2141
- // fail
2142
- function (oError) {
2143
- var sMessage = oError && oError.message ? oError.message : oError;
2144
- if (oError.response) {
2145
- sMessage += " - " + oError.response.statusCode + " " + oError.response.statusText;
2146
- }
2147
- Log.error("Could not fetch data: " + sUri + ": " + sMessage, null,
2148
- // the source component of the error - needs to be set within the parent controller control
2149
- (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2150
- });
2158
+ // sucess
2159
+ (oData/* , oResponse */) => {
2160
+ let sRole; let sInstance; let i;
2161
+ for (i = 0; i < oData.results.length; i = i + 1) {
2162
+ sRole = oData.results[i].lpdRole;
2163
+ sInstance = oData.results[i].instance;
2164
+ oUtils.aRoleData.push({
2165
+ role: sRole,
2166
+ instance: sInstance
2167
+ });
2168
+ }
2169
+ oSelectorModel.setData({
2170
+ items: oUtils.aRoleData
2171
+ }, true); // merge
2172
+ oInstanceSelectorModel.setData({
2173
+ items: oUtils.aRoleData
2174
+ }, true); // merge
2175
+ },
2176
+ // fail
2177
+ (oError) => {
2178
+ let sMessage = oError && oError.message ? oError.message : oError;
2179
+ if (oError.response) {
2180
+ sMessage += ` - ${oError.response.statusCode} ${oError.response.statusText}`;
2181
+ }
2182
+ Log.error(`Could not fetch data: ${sUri}: ${sMessage}`, null,
2183
+ // the source component of the error - needs to be set within the parent controller control
2184
+ (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2185
+ });
2151
2186
  };
2152
2187
 
2153
2188
  oUtils.createAliasModel = function (oConfigController, oAliasSelector) {
2154
- var oView = oConfigController.getView(), oConfiguration,
2155
- // the URI of the semantic objects OData Servicw
2156
- sUri = "/sap/opu/odata/UI2/INTEROP/GetLPDAppAlias",
2157
- // set model first only to default values
2158
- oSelectorModel = new JSONModel();
2189
+ const oView = oConfigController.getView();
2190
+ // the URI of the semantic objects OData Service
2191
+ let sUri = "/sap/opu/odata/UI2/INTEROP/GetLPDAppAlias";
2192
+ // set model first only to default values
2193
+ const oSelectorModel = new JSONModel();
2159
2194
 
2160
2195
  // required to make the suggestion list show all entries
2161
2196
  // the default value for the size limit is 100!
@@ -2169,10 +2204,10 @@ sap.ui.define([
2169
2204
  }));
2170
2205
  oAliasSelector.setModel(oSelectorModel);
2171
2206
 
2172
- oConfiguration = oUtils.getAppLauncherConfig(oView.oViewData.chip, true, true);
2207
+ const oConfiguration = oUtils.getAppLauncherConfig(oView.oViewData.chip, true, true);
2173
2208
  if (oConfiguration && oConfiguration.navigation_provider_role && oConfiguration.navigation_provider_instance) {
2174
2209
  if (oConfiguration.navigation_provider_role !== "" && oConfiguration.navigation_provider_instance !== "") {
2175
- sUri = sUri + "?role='" + oConfiguration.navigation_provider_role + "'&instance='" + oConfiguration.navigation_provider_instance + "'";
2210
+ sUri = `${sUri}?role='${oConfiguration.navigation_provider_role}'&instance='${oConfiguration.navigation_provider_instance}'`;
2176
2211
  }
2177
2212
  }
2178
2213
 
@@ -2183,49 +2218,49 @@ sap.ui.define([
2183
2218
  Accept: "application/json"
2184
2219
  }
2185
2220
  },
2186
- // sucess
2187
- function (oData/*, oResponse*/) {
2188
- var sAlias, sRole, sInstance, i, oModelData;
2189
- oUtils.aAliasData = [];
2190
- for (i = 0; i < oData.results.length; i = i + 1) {
2191
- sAlias = oData.results[i].lpdApplicationAlias;
2192
- sRole = oData.results[i].lpdRole;
2193
- sInstance = oData.results[i].lpdInstance;
2194
- oUtils.aAliasData.push({
2195
- role: sRole,
2196
- instance: sInstance,
2197
- alias: sAlias
2198
- });
2199
- }
2200
- oModelData = oSelectorModel.getData();
2201
- if (oModelData) {
2202
- oModelData.items = oUtils.aAliasData;
2203
- } else {
2204
- oModelData = {
2205
- items: oUtils.aAliasData
2206
- };
2207
- }
2208
- oSelectorModel.setData(oModelData, false);
2209
- },
2210
- // fail
2211
- function (oError) {
2212
- var sMessage = oError && oError.message ? oError.message : oError;
2213
- if (oError.response) {
2214
- sMessage += " - " + oError.response.statusCode + " " + oError.response.statusText;
2215
- }
2216
- Log.error("Could not fetch data: " + sUri + ": " + sMessage, null,
2217
- // the source component of the error - needs to be set within the parent controller control
2218
- (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2219
- });
2221
+ // sucess
2222
+ (oData/* , oResponse */) => {
2223
+ let sAlias; let sRole; let sInstance; let i; let oModelData;
2224
+ oUtils.aAliasData = [];
2225
+ for (i = 0; i < oData.results.length; i = i + 1) {
2226
+ sAlias = oData.results[i].lpdApplicationAlias;
2227
+ sRole = oData.results[i].lpdRole;
2228
+ sInstance = oData.results[i].lpdInstance;
2229
+ oUtils.aAliasData.push({
2230
+ role: sRole,
2231
+ instance: sInstance,
2232
+ alias: sAlias
2233
+ });
2234
+ }
2235
+ oModelData = oSelectorModel.getData();
2236
+ if (oModelData) {
2237
+ oModelData.items = oUtils.aAliasData;
2238
+ } else {
2239
+ oModelData = {
2240
+ items: oUtils.aAliasData
2241
+ };
2242
+ }
2243
+ oSelectorModel.setData(oModelData, false);
2244
+ },
2245
+ // fail
2246
+ (oError) => {
2247
+ let sMessage = oError && oError.message ? oError.message : oError;
2248
+ if (oError.response) {
2249
+ sMessage += ` - ${oError.response.statusCode} ${oError.response.statusText}`;
2250
+ }
2251
+ Log.error(`Could not fetch data: ${sUri}: ${sMessage}`, null,
2252
+ // the source component of the error - needs to be set within the parent controller control
2253
+ (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2254
+ });
2220
2255
  };
2221
2256
 
2222
2257
  oUtils.updateAliasModel = function (oView, oAliasSelector) {
2223
- var sUri, sInstance, sRole, oSelectorModel = oAliasSelector.getModel();
2258
+ const oSelectorModel = oAliasSelector.getModel();
2224
2259
 
2225
- sInstance = oView.byId("navigation_provider_instanceInput").getValue();
2226
- sRole = oView.byId("navigation_provider_roleInput").getValue();
2260
+ const sInstance = oView.byId("navigation_provider_instanceInput").getValue();
2261
+ const sRole = oView.byId("navigation_provider_roleInput").getValue();
2227
2262
 
2228
- sUri = "/sap/opu/odata/UI2/INTEROP/GetLPDAppAlias?role='" + sRole + "'&instance='" + sInstance + "'";
2263
+ const sUri = `/sap/opu/odata/UI2/INTEROP/GetLPDAppAlias?role='${sRole}'&instance='${sInstance}'`;
2229
2264
 
2230
2265
  // read semantic objects from interop service
2231
2266
  OData.read({
@@ -2234,45 +2269,48 @@ sap.ui.define([
2234
2269
  Accept: "application/json"
2235
2270
  }
2236
2271
  },
2237
- // sucess
2238
- function (oData/*, oResponse*/) {
2239
- var sAlias, sRole, sInstance, i, oModelData;
2240
- oUtils.aAliasData = [];
2241
- for (i = 0; i < oData.results.length; i = i + 1) {
2242
- sAlias = oData.results[i].lpdApplicationAlias;
2243
- sRole = oData.results[i].lpdRole;
2244
- sInstance = oData.results[i].lpdInstance;
2245
- oUtils.aAliasData.push({
2246
- role: sRole,
2247
- instance: sInstance,
2248
- alias: sAlias
2249
- });
2250
- }
2251
- oModelData = oSelectorModel.getData();
2252
- if (oModelData) {
2253
- oModelData.items = oUtils.aAliasData;
2254
- } else {
2255
- oModelData = {
2256
- items: oUtils.aAliasData
2257
- };
2258
- }
2259
- oSelectorModel.setData(oModelData, false);
2260
- },
2261
- // fail
2262
- function (oError) {
2263
- var sMessage = oError && oError.message ? oError.message : oError;
2264
- if (oError.response) {
2265
- sMessage += " - " + oError.response.statusCode + " " + oError.response.statusText;
2266
- }
2267
- Log.error("Could not fetch data: " + sUri + ": " + sMessage, null,
2268
- // the source component of the error - needs to be set within the parent controller control
2269
- (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2270
- });
2272
+ // success
2273
+ (oData/* , oResponse */) => {
2274
+ let sAlias;
2275
+ let oModelData;
2276
+ let sRole;
2277
+ let sInstance;
2278
+ oUtils.aAliasData = [];
2279
+ for (let i = 0; i < oData.results.length; i = i + 1) {
2280
+ sAlias = oData.results[i].lpdApplicationAlias;
2281
+ sRole = oData.results[i].lpdRole;
2282
+ sInstance = oData.results[i].lpdInstance;
2283
+ oUtils.aAliasData.push({
2284
+ role: sRole,
2285
+ instance: sInstance,
2286
+ alias: sAlias
2287
+ });
2288
+ }
2289
+ oModelData = oSelectorModel.getData();
2290
+ if (oModelData) {
2291
+ oModelData.items = oUtils.aAliasData;
2292
+ } else {
2293
+ oModelData = {
2294
+ items: oUtils.aAliasData
2295
+ };
2296
+ }
2297
+ oSelectorModel.setData(oModelData, false);
2298
+ },
2299
+ // fail
2300
+ (oError) => {
2301
+ let sMessage = oError && oError.message ? oError.message : oError;
2302
+ if (oError.response) {
2303
+ sMessage += ` - ${oError.response.statusCode} ${oError.response.statusText}`;
2304
+ }
2305
+ Log.error(`Could not fetch data: ${sUri}: ${sMessage}`, null,
2306
+ // the source component of the error - needs to be set within the parent controller control
2307
+ (oView.getViewName() || "sap.ushell.components.tiles.utils"));
2308
+ });
2271
2309
  };
2272
2310
 
2273
2311
  oUtils.createActionModel = function (oConfigController, oActionSelector) {
2274
- var oItemModel = new JSONModel();
2275
- var oView = oConfigController.getView(), oConfiguration, sAction;
2312
+ const oItemModel = new JSONModel();
2313
+ const oView = oConfigController.getView();
2276
2314
 
2277
2315
  oItemModel.setData({
2278
2316
  items: [
@@ -2294,10 +2332,10 @@ sap.ui.define([
2294
2332
 
2295
2333
  oUtils.aActionData = oItemModel.getData();
2296
2334
 
2297
- oConfiguration = oUtils.getAppLauncherConfig(oView.oViewData.chip, true, true);
2298
- sAction = oConfiguration.navigation_semantic_action || oConfiguration.semantic_action;
2335
+ const oConfiguration = oUtils.getAppLauncherConfig(oView.oViewData.chip, true, true);
2336
+ const sAction = oConfiguration.navigation_semantic_action || oConfiguration.semantic_action;
2299
2337
  if (sAction) {
2300
- if (!oItemModel.getData().items.some(function (oItem) {
2338
+ if (!oItemModel.getData().items.some((oItem) => {
2301
2339
  return oItem.text === sAction;
2302
2340
  })) {
2303
2341
  oItemModel.getData().items.push({
@@ -2315,10 +2353,10 @@ sap.ui.define([
2315
2353
  };
2316
2354
 
2317
2355
  oUtils.createNavigationProviderModel = function (oConfigController, oTargetTypeSelector) {
2318
- var oItemModel = new JSONModel();
2319
- var oResourcesBundle = oUtils.getResourceBundle();
2356
+ const oItemModel = new JSONModel();
2357
+ const oResourcesBundle = oUtils.getResourceBundle();
2320
2358
 
2321
- var aItems = [
2359
+ const aItems = [
2322
2360
  {
2323
2361
  key: "SAPUI5",
2324
2362
  text: oResourcesBundle.getText("configuration.target_application.sapui5")
@@ -2338,7 +2376,7 @@ sap.ui.define([
2338
2376
  ];
2339
2377
 
2340
2378
  // For some application type we must show in the dropdown only if it's currently selected
2341
- var oNavigationProvider = oUtils.getViewConfiguration(oConfigController.getView()).navigation_provider;
2379
+ const oNavigationProvider = oUtils.getViewConfiguration(oConfigController.getView()).navigation_provider;
2342
2380
 
2343
2381
  if (oNavigationProvider === "WCF") {
2344
2382
  aItems.push({
@@ -2367,6 +2405,7 @@ sap.ui.define([
2367
2405
  /**
2368
2406
  * Displays the input fields relavent based on application type SAPUI5/LPD_CUST.
2369
2407
  *
2408
+ * @param {string} sApplicationType The application type.
2370
2409
  * @param {object} oConfigurationView The configuration view to check the input for.
2371
2410
  */
2372
2411
  oUtils.displayApplicationTypeFields = function (sApplicationType, oConfigurationView) {
@@ -2740,11 +2779,8 @@ sap.ui.define([
2740
2779
  oConfigurationView.byId("target_urlt_system_aliasInput").setVisible(true);
2741
2780
 
2742
2781
  oConfigurationView.byId("application_type_deprecated").setVisible(false);
2743
-
2744
-
2745
2782
  };
2746
2783
 
2747
-
2748
2784
  /**
2749
2785
  * Read and initialize configuration object from given JSON string. Used by static and dynamic applaunchers.
2750
2786
  *
@@ -2756,9 +2792,9 @@ sap.ui.define([
2756
2792
  */
2757
2793
  // eslint-disable-next-line complexity
2758
2794
  oUtils.getAppLauncherConfig = function (oTileApi, bAdmin, bEdit) {
2759
- var oResourceBundle;
2760
- var sConfig = oTileApi.configuration.getParameterValueAsString("tileConfiguration");
2761
- var oConfig;
2795
+ let oResourceBundle;
2796
+ const sConfig = oTileApi.configuration.getParameterValueAsString("tileConfiguration");
2797
+ let oConfig;
2762
2798
  try {
2763
2799
  oConfig = JSON.parse(sConfig || "{}");
2764
2800
  } catch (e) {
@@ -2779,24 +2815,23 @@ sap.ui.define([
2779
2815
 
2780
2816
  // first try to get properties from bag
2781
2817
 
2782
- var sTitle = oUtils.getTranslatedTitle(oTileApi);
2783
- var sSubtitle = oUtils.getTranslatedSubtitle(oTileApi, oConfig);
2784
- var sInfo = oUtils.getTranslatedProperty(oTileApi, oConfig, "display_info_text");
2785
- var sKeywords = oUtils.getTranslatedProperty(oTileApi, oConfig, "display_search_keywords");
2818
+ const sTitle = oUtils.getTranslatedTitle(oTileApi);
2819
+ const sSubtitle = oUtils.getTranslatedSubtitle(oTileApi, oConfig);
2820
+ const sInfo = oUtils.getTranslatedProperty(oTileApi, oConfig, "display_info_text");
2821
+ const sKeywords = oUtils.getTranslatedProperty(oTileApi, oConfig, "display_search_keywords");
2786
2822
 
2787
2823
  if (bAdmin) {
2788
2824
  // resource bundle is only used in admin mode
2789
2825
  oResourceBundle = oUtils.getResourceBundle();
2790
2826
 
2791
2827
  if (bEdit && oTileApi.bag) {
2792
- var orgLocale = oTileApi.bag.getOriginalLanguage();
2793
- var localeLogonLanguage = new Locale(Localization.getLanguageTag()).getSAPLogonLanguage();
2794
- var language = Localization.getLanguage();
2828
+ const orgLocale = oTileApi.bag.getOriginalLanguage();
2829
+ const localeLogonLanguage = new Locale(Localization.getLanguageTag()).getSAPLogonLanguage();
2830
+ const language = Localization.getLanguage();
2795
2831
  oConfig.isLocaleSuitable =
2796
2832
  orgLocale === "" || orgLocale.toLowerCase() === localeLogonLanguage.toLowerCase() || orgLocale.toLowerCase() === language.toLowerCase();
2797
2833
  oConfig.orgLocale = orgLocale;
2798
2834
  oConfig.userLocale = localeLogonLanguage;
2799
-
2800
2835
  }
2801
2836
  }
2802
2837
  // in Admin UI, we display sample values for info/title/subtitle if not defined in the configuration
@@ -2806,7 +2841,7 @@ sap.ui.define([
2806
2841
  oConfig.display_info_text = sInfo;
2807
2842
  } else if (oConfig.display_info_text === undefined) {
2808
2843
  if (bAdmin && !bEdit) {
2809
- oConfig.display_info_text = "[" + oResourceBundle.getText("configuration.display_info_text") + "]";
2844
+ oConfig.display_info_text = `[${oResourceBundle.getText("configuration.display_info_text")}]`;
2810
2845
  } else {
2811
2846
  oConfig.display_info_text = "";
2812
2847
  }
@@ -2821,8 +2856,8 @@ sap.ui.define([
2821
2856
  oConfig.service_url = oConfig.service_url || "";
2822
2857
  oConfig.navigation_target_url = oConfig.navigation_target_url || "";
2823
2858
  if (bAdmin && oUtils.isInitial(sTitle)) {
2824
- oConfig.display_title_text = bEdit ? "" : "[" + oResourceBundle.getText("configuration.display_title_text") + "]";
2825
- oConfig.display_subtitle_text = bEdit ? "" : "[" + oResourceBundle.getText("configuration.display_subtitle_text") + "]";
2859
+ oConfig.display_title_text = bEdit ? "" : `[${oResourceBundle.getText("configuration.display_title_text")}]`;
2860
+ oConfig.display_subtitle_text = bEdit ? "" : `[${oResourceBundle.getText("configuration.display_subtitle_text")}]`;
2826
2861
  } else {
2827
2862
  oConfig.display_title_text = sTitle || oConfig.display_title_text || "";
2828
2863
  if (sSubtitle !== undefined) {
@@ -2876,11 +2911,11 @@ sap.ui.define([
2876
2911
  oConfig.actions = oUtils.getTileNavigationActions(oTileApi);
2877
2912
  }
2878
2913
 
2879
- //Deprecation message for tile/tm
2914
+ // Deprecation message for tile/tm
2880
2915
  if (bAdmin) {
2881
- var oDeprecationBag = oTileApi.bag.getBag("deprecationProperties"),
2882
- sDeprecationType = oDeprecationBag.getProperty("deprecation"),
2883
- sDeprecationText = null;
2916
+ const oDeprecationBag = oTileApi.bag.getBag("deprecationProperties");
2917
+ const sDeprecationType = oDeprecationBag.getProperty("deprecation");
2918
+ let sDeprecationText = null;
2884
2919
  if (sDeprecationType) {
2885
2920
  sDeprecationText = oResourceBundle.getText(
2886
2921
  sDeprecationType === "D" ? "configuration.app_deprecated" : "configuration.app_archived",
@@ -2922,7 +2957,7 @@ sap.ui.define([
2922
2957
  * @returns {object} An object containing the fields from the tile configuration mixed with the fields from dynamic data
2923
2958
  */
2924
2959
  oUtils.getDataToDisplay = function (oConfig, oDynamicData) {
2925
- var nSum = 0, i, n, oCurrentNumber, sCurrentTargetParams, oData = {
2960
+ let nSum = 0; let i; let n; let oCurrentNumber; let sCurrentTargetParams; const oData = {
2926
2961
  display_icon_url: oDynamicData.icon || oConfig.display_icon_url || "",
2927
2962
  display_title_text: oDynamicData.title || oConfig.display_title_text || "",
2928
2963
  display_number_value: !isNaN(oDynamicData.number) ? oDynamicData.number : "...",
@@ -2960,31 +2995,30 @@ sap.ui.define([
2960
2995
  oData.display_number_value = nSum;
2961
2996
  }
2962
2997
  if (!isNaN(oDynamicData.number)) {
2963
-
2964
2998
  // in case number is string isNaN returns true, but we need either to trim() it as the redundant " "
2965
2999
  // such as in case of "579 " as a value (Bug), parsing it to float causes redundant '.' even where it should not
2966
3000
  if (typeof oDynamicData.number === "string") {
2967
3001
  oDynamicData.number = oDynamicData.number.trim();
2968
3002
  }
2969
- //in case the number is "" we set value to "..." (due to internal #: 1780198502)
3003
+ // in case the number is "" we set value to "..." (due to internal #: 1780198502)
2970
3004
  if (oDynamicData.number === "") {
2971
3005
  oData.display_number_value = "...";
2972
3006
  } else {
2973
- var bShouldProcessDigits = this._shouldProcessDigits(oDynamicData.number, oDynamicData.numberDigits),
2974
- maxCharactersInDisplayNumber = oData.display_icon_url ? 4 : 5;
3007
+ const bShouldProcessDigits = this._shouldProcessDigits(oDynamicData.number, oDynamicData.numberDigits);
3008
+ const maxCharactersInDisplayNumber = oData.display_icon_url ? 4 : 5;
2975
3009
 
2976
3010
  if (oDynamicData.number && oDynamicData.number.toString().length >= maxCharactersInDisplayNumber || bShouldProcessDigits) {
2977
- var oNormalizedNumberData = this._normalizeNumber(oDynamicData.number, maxCharactersInDisplayNumber, oDynamicData.numberFactor, oDynamicData.numberDigits);
3011
+ const oNormalizedNumberData = this._normalizeNumber(oDynamicData.number, maxCharactersInDisplayNumber, oDynamicData.numberFactor, oDynamicData.numberDigits);
2978
3012
  oData.display_number_factor = oNormalizedNumberData.numberFactor;
2979
3013
  oData.display_number_value = oNormalizedNumberData.displayNumber;
2980
3014
  } else {
2981
- var oNForm = NumberFormat.getFloatInstance({ maxFractionDigits: maxCharactersInDisplayNumber });
3015
+ const oNForm = NumberFormat.getFloatInstance({ maxFractionDigits: maxCharactersInDisplayNumber });
2982
3016
  oData.display_number_value = oNForm.format(oDynamicData.number);
2983
3017
  }
2984
3018
  }
2985
3019
  }
2986
3020
 
2987
- //Added as part of bug fix. Incident ID: 1670054463
3021
+ // Added as part of bug fix. Incident ID: 1670054463
2988
3022
  if (oData && oData.display_number_state) {
2989
3023
  switch (oData.display_number_state) {
2990
3024
  case "Positive":
@@ -3000,15 +3034,15 @@ sap.ui.define([
3000
3034
  };
3001
3035
 
3002
3036
  oUtils._normalizeNumber = function (numValue, maxCharactersInDisplayNumber, numberFactor, iNumberDigits) {
3003
- var number;
3037
+ let number;
3004
3038
 
3005
3039
  if (isNaN(numValue)) {
3006
3040
  number = numValue;
3007
3041
  } else {
3008
- var oNForm = NumberFormat.getFloatInstance({ maxFractionDigits: iNumberDigits });
3042
+ const oNForm = NumberFormat.getFloatInstance({ maxFractionDigits: iNumberDigits });
3009
3043
 
3010
3044
  if (!numberFactor) {
3011
- var absNumValue = Math.abs(numValue);
3045
+ const absNumValue = Math.abs(numValue);
3012
3046
  if (absNumValue >= 1000000000) {
3013
3047
  numberFactor = "B";
3014
3048
  numValue /= 1000000000;
@@ -3023,10 +3057,10 @@ sap.ui.define([
3023
3057
  number = oNForm.format(numValue);
3024
3058
  }
3025
3059
 
3026
- var displayNumber = number;
3027
- //we have to crop numbers to prevent overflow
3028
- var cLastAllowedChar = displayNumber[maxCharactersInDisplayNumber - 1];
3029
- //if last character is '.' or ',', we need to crop it also
3060
+ let displayNumber = number;
3061
+ // we have to crop numbers to prevent overflow
3062
+ const cLastAllowedChar = displayNumber[maxCharactersInDisplayNumber - 1];
3063
+ // if last character is '.' or ',', we need to crop it also
3030
3064
  maxCharactersInDisplayNumber -= (cLastAllowedChar === "." || cLastAllowedChar === ",") ? 1 : 0;
3031
3065
  displayNumber = displayNumber.substring(0, maxCharactersInDisplayNumber);
3032
3066
 
@@ -3037,7 +3071,7 @@ sap.ui.define([
3037
3071
  };
3038
3072
 
3039
3073
  oUtils._shouldProcessDigits = function (sDisplayNumber, iDigitsToDisplay) {
3040
- var nNumberOfDigits;
3074
+ let nNumberOfDigits;
3041
3075
 
3042
3076
  sDisplayNumber = typeof (sDisplayNumber) !== "string" ? sDisplayNumber.toString() : sDisplayNumber;
3043
3077
  if (sDisplayNumber.indexOf(".") !== -1) {
@@ -3051,27 +3085,27 @@ sap.ui.define([
3051
3085
  };
3052
3086
 
3053
3087
  oUtils.getTileSettingsAction = function (oModel, saveSettingsCallback, sType) {
3054
- var oResourcesBundle = oUtils.getResourceBundle();
3055
- var sKey = ((!sType || (sType === "tile")) ? "tileSettingsBtn" : "linkSettingsBtn");
3088
+ const oResourcesBundle = oUtils.getResourceBundle();
3089
+ const sKey = ((!sType || (sType === "tile")) ? "tileSettingsBtn" : "linkSettingsBtn");
3056
3090
  return {
3057
3091
  id: sKey,
3058
3092
  text: oResourcesBundle.getText(sKey),
3059
3093
  press: function () {
3060
- return new Promise(function (resolve) {
3094
+ return new Promise((resolve) => {
3061
3095
  sap.ui.require([
3062
3096
  "sap/m/Button",
3063
3097
  "sap/m/Dialog",
3064
3098
  "sap/ui/core/mvc/View",
3065
3099
  "sap/ui/layout/form/SimpleForm",
3066
3100
  "sap/ui/layout/library"
3067
- ], function (Button, Dialog, View, SimpleForm, layoutLibrary) {
3068
- var SimpleFormLayout = layoutLibrary.form.SimpleFormLayout;
3069
- var oAppData = {
3101
+ ], (Button, Dialog, View, SimpleForm, layoutLibrary) => {
3102
+ const SimpleFormLayout = layoutLibrary.form.SimpleFormLayout;
3103
+ const oAppData = {
3070
3104
  showGroupSelection: false,
3071
3105
  title: oModel.getProperty("/config/display_title_text"),
3072
3106
  subtitle: oModel.getProperty("/config/display_subtitle_text")
3073
3107
  };
3074
- //links and tiles settings view has different properties
3108
+ // links and tiles settings view has different properties
3075
3109
  if (!sType || sType === "tile") {
3076
3110
  oAppData.info = oModel.getProperty("/config/display_info_text");
3077
3111
  oAppData.icon = oModel.getProperty("/config/display_icon_url");
@@ -3084,41 +3118,36 @@ sap.ui.define([
3084
3118
 
3085
3119
  View.create({
3086
3120
  viewName: "module:sap/ushell/ui/footerbar/SaveAsTile.view"
3087
- }).then(function (oSettingsView) {
3088
- var oSettingsModel = new JSONModel(oAppData);
3121
+ }).then((oSettingsView) => {
3122
+ const oSettingsModel = new JSONModel(oAppData);
3089
3123
  oSettingsView.setModel(oSettingsModel);
3090
3124
 
3091
- var oSimpleForm = new SimpleForm({
3125
+ const oSimpleForm = new SimpleForm({
3092
3126
  id: "tileSettings",
3093
3127
  layout: SimpleFormLayout.GridLayout,
3094
3128
  content: [oSettingsView]
3095
3129
  }).addStyleClass("sapUshellAddBookmarkForm");
3096
3130
 
3097
- var okButton = new Button("bookmarkOkBtn", {
3131
+ const okButton = new Button("bookmarkOkBtn", {
3098
3132
  text: oResourcesBundle.getText("okBtn"),
3099
3133
  type: ButtonType.Emphasized,
3100
3134
  press: function () {
3101
3135
  saveSettingsCallback(oSettingsView);
3136
+ // eslint-disable-next-line no-use-before-define
3102
3137
  oDialog.close();
3103
3138
  },
3104
3139
  enabled: true
3105
3140
  });
3106
3141
 
3107
- var cancelButton = new Button("bookmarkCancelBtn", {
3142
+ const cancelButton = new Button("bookmarkCancelBtn", {
3108
3143
  text: oResourcesBundle.getText("cancelBtn"),
3109
3144
  press: function () {
3145
+ // eslint-disable-next-line no-use-before-define
3110
3146
  oDialog.close();
3111
3147
  }
3112
3148
  });
3113
3149
 
3114
- // enforce the title input as a mandatory field
3115
- var enableOKButton = function (title) {
3116
- okButton.setEnabled(!!title.trim());
3117
- };
3118
- oSettingsView.getTitleInput().attachLiveChange(function () {
3119
- enableOKButton(this.getValue());
3120
- });
3121
-
3150
+ // eslint-disable-next-line no-var
3122
3151
  var oDialog = new Dialog({
3123
3152
  id: "settingsDialog",
3124
3153
  title: (!sType || sType === "tile")
@@ -3134,6 +3163,14 @@ sap.ui.define([
3134
3163
  }
3135
3164
  }).addStyleClass("sapContrastPlus");
3136
3165
 
3166
+ // enforce the title input as a mandatory field
3167
+ function enableOKButton (title) {
3168
+ okButton.setEnabled(!!title.trim());
3169
+ }
3170
+ oSettingsView.getTitleInput().attachLiveChange(function () {
3171
+ enableOKButton(this.getValue());
3172
+ });
3173
+
3137
3174
  oDialog.open();
3138
3175
  resolve(oDialog);
3139
3176
  });
@@ -3143,18 +3180,17 @@ sap.ui.define([
3143
3180
  };
3144
3181
  };
3145
3182
 
3146
-
3147
3183
  /**
3148
3184
  * @param {object} oConfig The configuration object (as returned by <code>getConfiguration</code>)
3149
3185
  * @returns {string} The relative navigation URL: '#', semantic object, '-', action, '?' parameters
3150
3186
  */
3151
3187
  oUtils.getSemanticNavigationUrl = function (oConfig) {
3152
3188
  // note: empty semantic objects and actions (?) are perfectly possible
3153
- var sUrl = "#" + String(oConfig.navigation_semantic_object || "").trim();
3154
- sUrl += "-" + String(oConfig.navigation_semantic_action || "").trim();
3189
+ let sUrl = `#${String(oConfig.navigation_semantic_object || "").trim()}`;
3190
+ sUrl += `-${String(oConfig.navigation_semantic_action || "").trim()}`;
3155
3191
  // parameters are optional
3156
3192
  if (oConfig.navigation_semantic_parameters && String(oConfig.navigation_semantic_parameters || "").trim().length > 0) {
3157
- sUrl += "?" + String(oConfig.navigation_semantic_parameters || "").trim();
3193
+ sUrl += `?${String(oConfig.navigation_semantic_parameters || "").trim()}`;
3158
3194
  }
3159
3195
  return sUrl;
3160
3196
  };
@@ -3167,7 +3203,7 @@ sap.ui.define([
3167
3203
  * @returns {string} The rewritten URL containing teh target parameters
3168
3204
  */
3169
3205
  oUtils.addParamsToUrl = function (sUrl, oData) {
3170
- var sParams = "", bUrlHasParams = sUrl.indexOf("?") !== -1, aTargetParams = oData.targetParams, i;
3206
+ let sParams = ""; const bUrlHasParams = sUrl.indexOf("?") !== -1; const aTargetParams = oData.targetParams; let i;
3171
3207
 
3172
3208
  if (aTargetParams && aTargetParams.length > 0) {
3173
3209
  for (i = 0; i < aTargetParams.length; i = i + 1) {
@@ -3188,6 +3224,5 @@ sap.ui.define([
3188
3224
  return sUrl;
3189
3225
  };
3190
3226
 
3191
-
3192
3227
  return oUtils;
3193
3228
  }, true /* bExport */);