@sapui5/sap.fe.core 1.102.0 → 1.103.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 (311) hide show
  1. package/package.json +5 -5
  2. package/src/sap/fe/core/.library +1 -1
  3. package/src/sap/fe/core/AppComponent.js +62 -26
  4. package/src/sap/fe/core/AppComponent.ts +56 -40
  5. package/src/sap/fe/core/AppStateHandler.js +10 -10
  6. package/src/sap/fe/core/AppStateHandler.ts +9 -9
  7. package/src/sap/fe/core/BaseController.js +11 -9
  8. package/src/sap/fe/core/BaseController.ts +15 -13
  9. package/src/sap/fe/core/CommonUtils.js +236 -109
  10. package/src/sap/fe/core/CommonUtils.ts +252 -136
  11. package/src/sap/fe/core/ExtensionAPI.js +24 -27
  12. package/src/sap/fe/core/ExtensionAPI.ts +36 -38
  13. package/src/sap/fe/core/PageController.js +4 -4
  14. package/src/sap/fe/core/PageController.ts +4 -5
  15. package/src/sap/fe/core/TemplateComponent.js +1 -1
  16. package/src/sap/fe/core/TemplateComponent.ts +6 -6
  17. package/src/sap/fe/core/TemplateModel.js +1 -1
  18. package/src/sap/fe/core/TemplateModel.ts +1 -1
  19. package/src/sap/fe/core/buildingBlocks/AttributeModel.js +1 -1
  20. package/src/sap/fe/core/buildingBlocks/AttributeModel.ts +1 -1
  21. package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js +8 -8
  22. package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +11 -10
  23. package/src/sap/fe/core/buildingBlocks/TraceInfo.js +27 -27
  24. package/src/sap/fe/core/buildingBlocks/TraceInfo.ts +28 -26
  25. package/src/sap/fe/core/controllerextensions/EditFlow.js +129 -118
  26. package/src/sap/fe/core/controllerextensions/EditFlow.ts +154 -141
  27. package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +9 -9
  28. package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +10 -10
  29. package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +31 -26
  30. package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +34 -35
  31. package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +70 -70
  32. package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +77 -77
  33. package/src/sap/fe/core/controllerextensions/InternalRouting.js +84 -78
  34. package/src/sap/fe/core/controllerextensions/InternalRouting.ts +105 -101
  35. package/src/sap/fe/core/controllerextensions/KPIManagement.js +66 -68
  36. package/src/sap/fe/core/controllerextensions/KPIManagement.ts +106 -123
  37. package/src/sap/fe/core/controllerextensions/MassEdit.js +8 -8
  38. package/src/sap/fe/core/controllerextensions/MassEdit.ts +19 -26
  39. package/src/sap/fe/core/controllerextensions/MessageHandler.js +20 -12
  40. package/src/sap/fe/core/controllerextensions/MessageHandler.ts +29 -14
  41. package/src/sap/fe/core/controllerextensions/PageReady.js +97 -25
  42. package/src/sap/fe/core/controllerextensions/PageReady.ts +94 -34
  43. package/src/sap/fe/core/controllerextensions/Paginator.js +21 -22
  44. package/src/sap/fe/core/controllerextensions/Paginator.ts +24 -25
  45. package/src/sap/fe/core/controllerextensions/Placeholder.js +4 -6
  46. package/src/sap/fe/core/controllerextensions/Placeholder.ts +12 -14
  47. package/src/sap/fe/core/controllerextensions/Routing.js +10 -11
  48. package/src/sap/fe/core/controllerextensions/Routing.ts +12 -13
  49. package/src/sap/fe/core/controllerextensions/Share.js +22 -22
  50. package/src/sap/fe/core/controllerextensions/Share.ts +30 -29
  51. package/src/sap/fe/core/controllerextensions/SideEffects.js +46 -50
  52. package/src/sap/fe/core/controllerextensions/SideEffects.ts +56 -60
  53. package/src/sap/fe/core/controllerextensions/ViewState.js +65 -62
  54. package/src/sap/fe/core/controllerextensions/ViewState.ts +68 -63
  55. package/src/sap/fe/core/controllerextensions/collaboration/ActivityBase.js +5 -5
  56. package/src/sap/fe/core/controllerextensions/collaboration/ActivityBase.ts +8 -7
  57. package/src/sap/fe/core/controllerextensions/collaboration/ActivitySync.js +6 -6
  58. package/src/sap/fe/core/controllerextensions/collaboration/ActivitySync.ts +12 -17
  59. package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.js +2 -2
  60. package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.ts +4 -4
  61. package/src/sap/fe/core/controllerextensions/collaboration/Manage.js +7 -9
  62. package/src/sap/fe/core/controllerextensions/collaboration/Manage.ts +18 -19
  63. package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.js +184 -137
  64. package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.ts +253 -206
  65. package/src/sap/fe/core/controllerextensions/editFlow/draft.js +113 -121
  66. package/src/sap/fe/core/controllerextensions/editFlow/draft.ts +148 -158
  67. package/src/sap/fe/core/controllerextensions/editFlow/operations.js +198 -148
  68. package/src/sap/fe/core/controllerextensions/editFlow/operations.ts +223 -159
  69. package/src/sap/fe/core/controllerextensions/editFlow/sticky.js +24 -26
  70. package/src/sap/fe/core/controllerextensions/editFlow/sticky.ts +35 -33
  71. package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.js +78 -44
  72. package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.ts +90 -60
  73. package/src/sap/fe/core/controllerextensions/routing/RouterProxy.js +52 -55
  74. package/src/sap/fe/core/controllerextensions/routing/RouterProxy.ts +55 -58
  75. package/src/sap/fe/core/controls/Any.js +9 -5
  76. package/src/sap/fe/core/controls/Any.ts +10 -4
  77. package/src/sap/fe/core/controls/CommandExecution.js +11 -25
  78. package/src/sap/fe/core/controls/CommandExecution.ts +11 -25
  79. package/src/sap/fe/core/controls/ConditionalWrapper.js +2 -2
  80. package/src/sap/fe/core/controls/ConditionalWrapper.ts +3 -3
  81. package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.js +22 -22
  82. package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.ts +25 -24
  83. package/src/sap/fe/core/controls/CustomQuickViewPage.js +2 -2
  84. package/src/sap/fe/core/controls/CustomQuickViewPage.ts +2 -2
  85. package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +3 -3
  86. package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +5 -5
  87. package/src/sap/fe/core/controls/FieldWrapper.js +2 -2
  88. package/src/sap/fe/core/controls/FieldWrapper.ts +3 -3
  89. package/src/sap/fe/core/controls/FileWrapper.js +2 -2
  90. package/src/sap/fe/core/controls/FileWrapper.ts +11 -11
  91. package/src/sap/fe/core/controls/FilterBar.js +6 -2
  92. package/src/sap/fe/core/controls/FilterBar.ts +13 -9
  93. package/src/sap/fe/core/controls/FormElementWrapper.js +1 -1
  94. package/src/sap/fe/core/controls/FormElementWrapper.ts +2 -2
  95. package/src/sap/fe/core/controls/MassEditSelect.js +1 -1
  96. package/src/sap/fe/core/controls/MassEditSelect.ts +0 -4
  97. package/src/sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml +3 -3
  98. package/src/sap/fe/core/controls/filterbar/VisualFilter.js +16 -12
  99. package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +20 -22
  100. package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +3 -3
  101. package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +8 -8
  102. package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +47 -47
  103. package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +52 -52
  104. package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +8 -2
  105. package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +89 -88
  106. package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +107 -106
  107. package/src/sap/fe/core/converters/ConverterContext.js +26 -33
  108. package/src/sap/fe/core/converters/ConverterContext.ts +51 -60
  109. package/src/sap/fe/core/converters/ManifestSettings.js +1 -1
  110. package/src/sap/fe/core/converters/ManifestSettings.ts +14 -14
  111. package/src/sap/fe/core/converters/ManifestWrapper.js +59 -45
  112. package/src/sap/fe/core/converters/ManifestWrapper.ts +55 -45
  113. package/src/sap/fe/core/converters/MetaModelConverter.js +50 -32
  114. package/src/sap/fe/core/converters/MetaModelConverter.ts +145 -127
  115. package/src/sap/fe/core/converters/TemplateConverter.js +21 -20
  116. package/src/sap/fe/core/converters/TemplateConverter.ts +27 -24
  117. package/src/sap/fe/core/converters/annotations/DataField.js +54 -34
  118. package/src/sap/fe/core/converters/annotations/DataField.ts +97 -75
  119. package/src/sap/fe/core/converters/common/AnnotationConverter.js +1911 -1495
  120. package/src/sap/fe/core/converters/controls/Common/Action.js +50 -41
  121. package/src/sap/fe/core/converters/controls/Common/Action.ts +56 -46
  122. package/src/sap/fe/core/converters/controls/Common/Chart.js +14 -14
  123. package/src/sap/fe/core/converters/controls/Common/Chart.ts +23 -26
  124. package/src/sap/fe/core/converters/controls/Common/Criticality.js +3 -3
  125. package/src/sap/fe/core/converters/controls/Common/Criticality.ts +4 -4
  126. package/src/sap/fe/core/converters/controls/Common/DataVisualization.js +28 -28
  127. package/src/sap/fe/core/converters/controls/Common/DataVisualization.ts +40 -36
  128. package/src/sap/fe/core/converters/controls/Common/Form.js +25 -27
  129. package/src/sap/fe/core/converters/controls/Common/Form.ts +37 -45
  130. package/src/sap/fe/core/converters/controls/Common/KPI.js +11 -11
  131. package/src/sap/fe/core/converters/controls/Common/KPI.ts +35 -39
  132. package/src/sap/fe/core/converters/controls/Common/Table.js +174 -183
  133. package/src/sap/fe/core/converters/controls/Common/Table.ts +237 -250
  134. package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +119 -119
  135. package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +144 -141
  136. package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +45 -41
  137. package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +64 -57
  138. package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.js +28 -26
  139. package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.ts +46 -43
  140. package/src/sap/fe/core/converters/controls/ObjectPage/Avatar.js +9 -9
  141. package/src/sap/fe/core/converters/controls/ObjectPage/Avatar.ts +14 -13
  142. package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.js +67 -64
  143. package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.ts +69 -66
  144. package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +73 -72
  145. package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +98 -96
  146. package/src/sap/fe/core/converters/helpers/Aggregation.js +2 -4
  147. package/src/sap/fe/core/converters/helpers/Aggregation.ts +10 -13
  148. package/src/sap/fe/core/converters/helpers/BindingHelper.js +31 -31
  149. package/src/sap/fe/core/converters/helpers/BindingHelper.ts +30 -29
  150. package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +4 -4
  151. package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +9 -9
  152. package/src/sap/fe/core/converters/helpers/ID.js +46 -46
  153. package/src/sap/fe/core/converters/helpers/ID.ts +25 -25
  154. package/src/sap/fe/core/converters/helpers/Key.js +7 -7
  155. package/src/sap/fe/core/converters/helpers/Key.ts +7 -7
  156. package/src/sap/fe/core/converters/helpers/SelectionVariantHelper.js +1 -1
  157. package/src/sap/fe/core/converters/helpers/SelectionVariantHelper.ts +4 -4
  158. package/src/sap/fe/core/converters/objectPage/FormMenuActions.js +6 -6
  159. package/src/sap/fe/core/converters/objectPage/FormMenuActions.ts +10 -10
  160. package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +46 -62
  161. package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +54 -82
  162. package/src/sap/fe/core/converters/templates/ListReportConverter.js +30 -29
  163. package/src/sap/fe/core/converters/templates/ListReportConverter.ts +40 -40
  164. package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +39 -38
  165. package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +52 -61
  166. package/src/sap/fe/core/designtime/AppComponent.designtime.js +4 -4
  167. package/src/sap/fe/core/designtime/AppComponent.designtime.ts +4 -4
  168. package/src/sap/fe/core/formatters/CollaborationFormatter.js +2 -2
  169. package/src/sap/fe/core/formatters/CollaborationFormatter.ts +3 -3
  170. package/src/sap/fe/core/formatters/FPMFormatter.js +5 -5
  171. package/src/sap/fe/core/formatters/FPMFormatter.ts +10 -10
  172. package/src/sap/fe/core/formatters/KPIFormatter.js +7 -7
  173. package/src/sap/fe/core/formatters/KPIFormatter.ts +10 -10
  174. package/src/sap/fe/core/formatters/StandardFormatter.js +89 -0
  175. package/src/sap/fe/core/formatters/StandardFormatter.ts +64 -0
  176. package/src/sap/fe/core/formatters/TableFormatter.js +11 -11
  177. package/src/sap/fe/core/formatters/TableFormatter.ts +12 -12
  178. package/src/sap/fe/core/formatters/ValueFormatter.js +8 -8
  179. package/src/sap/fe/core/formatters/ValueFormatter.ts +9 -9
  180. package/src/sap/fe/core/helpers/AppStartupHelper.js +15 -15
  181. package/src/sap/fe/core/helpers/AppStartupHelper.ts +37 -40
  182. package/src/sap/fe/core/helpers/BindingToolkit.js +1809 -0
  183. package/src/sap/fe/core/helpers/{BindingExpression.ts → BindingToolkit.ts} +365 -264
  184. package/src/sap/fe/core/helpers/ClassSupport.js +20 -11
  185. package/src/sap/fe/core/helpers/ClassSupport.ts +14 -10
  186. package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +2 -2
  187. package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +1 -1
  188. package/src/sap/fe/core/helpers/EditState.js +1 -6
  189. package/src/sap/fe/core/helpers/EditState.ts +5 -10
  190. package/src/sap/fe/core/helpers/ExcelFormatHelper.js +2 -2
  191. package/src/sap/fe/core/helpers/ExcelFormatHelper.ts +4 -4
  192. package/src/sap/fe/core/helpers/FPMHelper.js +1 -1
  193. package/src/sap/fe/core/helpers/FPMHelper.ts +2 -2
  194. package/src/sap/fe/core/helpers/KeepAliveHelper.js +31 -31
  195. package/src/sap/fe/core/helpers/KeepAliveHelper.ts +52 -56
  196. package/src/sap/fe/core/helpers/MassEditHelper.js +281 -254
  197. package/src/sap/fe/core/helpers/MassEditHelper.ts +337 -289
  198. package/src/sap/fe/core/helpers/ModelHelper.js +25 -25
  199. package/src/sap/fe/core/helpers/ModelHelper.ts +34 -32
  200. package/src/sap/fe/core/helpers/PasteHelper.js +3 -10
  201. package/src/sap/fe/core/helpers/PasteHelper.ts +20 -25
  202. package/src/sap/fe/core/helpers/SemanticDateOperators.js +1 -1
  203. package/src/sap/fe/core/helpers/SemanticDateOperators.ts +11 -11
  204. package/src/sap/fe/core/helpers/SemanticKeyHelper.js +3 -3
  205. package/src/sap/fe/core/helpers/SemanticKeyHelper.ts +8 -8
  206. package/src/sap/fe/core/helpers/StableIdHelper.js +12 -12
  207. package/src/sap/fe/core/helpers/StableIdHelper.ts +12 -12
  208. package/src/sap/fe/core/jsx-runtime/jsx.js +1 -1
  209. package/src/sap/fe/core/jsx-runtime/jsx.ts +8 -8
  210. package/src/sap/fe/core/library.js +42 -3
  211. package/src/sap/fe/core/library.ts +38 -0
  212. package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +3 -3
  213. package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +2 -2
  214. package/src/sap/fe/core/messagebundle.properties +49 -35
  215. package/src/sap/fe/core/messagebundle_ar.properties +13 -5
  216. package/src/sap/fe/core/messagebundle_bg.properties +13 -5
  217. package/src/sap/fe/core/messagebundle_ca.properties +13 -5
  218. package/src/sap/fe/core/messagebundle_cs.properties +13 -5
  219. package/src/sap/fe/core/messagebundle_cy.properties +14 -6
  220. package/src/sap/fe/core/messagebundle_da.properties +13 -5
  221. package/src/sap/fe/core/messagebundle_de.properties +15 -7
  222. package/src/sap/fe/core/messagebundle_el.properties +14 -6
  223. package/src/sap/fe/core/messagebundle_en.properties +9 -1
  224. package/src/sap/fe/core/messagebundle_en_GB.properties +11 -3
  225. package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +7 -1
  226. package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +9 -1
  227. package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +44 -85
  228. package/src/sap/fe/core/messagebundle_es.properties +13 -5
  229. package/src/sap/fe/core/messagebundle_es_MX.properties +13 -5
  230. package/src/sap/fe/core/messagebundle_et.properties +13 -5
  231. package/src/sap/fe/core/messagebundle_fi.properties +14 -6
  232. package/src/sap/fe/core/messagebundle_fr.properties +14 -6
  233. package/src/sap/fe/core/messagebundle_fr_CA.properties +14 -6
  234. package/src/sap/fe/core/messagebundle_hi.properties +14 -6
  235. package/src/sap/fe/core/messagebundle_hr.properties +14 -6
  236. package/src/sap/fe/core/messagebundle_hu.properties +13 -5
  237. package/src/sap/fe/core/messagebundle_id.properties +13 -5
  238. package/src/sap/fe/core/messagebundle_it.properties +33 -25
  239. package/src/sap/fe/core/messagebundle_iw.properties +13 -5
  240. package/src/sap/fe/core/messagebundle_ja.properties +14 -6
  241. package/src/sap/fe/core/messagebundle_kk.properties +13 -5
  242. package/src/sap/fe/core/messagebundle_ko.properties +13 -5
  243. package/src/sap/fe/core/messagebundle_lt.properties +13 -5
  244. package/src/sap/fe/core/messagebundle_lv.properties +14 -6
  245. package/src/sap/fe/core/messagebundle_ms.properties +13 -5
  246. package/src/sap/fe/core/messagebundle_nl.properties +13 -5
  247. package/src/sap/fe/core/messagebundle_no.properties +13 -5
  248. package/src/sap/fe/core/messagebundle_pl.properties +13 -5
  249. package/src/sap/fe/core/messagebundle_pt.properties +13 -5
  250. package/src/sap/fe/core/messagebundle_pt_PT.properties +14 -6
  251. package/src/sap/fe/core/messagebundle_ro.properties +13 -5
  252. package/src/sap/fe/core/messagebundle_ru.properties +13 -5
  253. package/src/sap/fe/core/messagebundle_sh.properties +13 -5
  254. package/src/sap/fe/core/messagebundle_sk.properties +13 -5
  255. package/src/sap/fe/core/messagebundle_sl.properties +17 -9
  256. package/src/sap/fe/core/messagebundle_sv.properties +14 -6
  257. package/src/sap/fe/core/messagebundle_th.properties +13 -5
  258. package/src/sap/fe/core/messagebundle_tr.properties +13 -5
  259. package/src/sap/fe/core/messagebundle_uk.properties +13 -5
  260. package/src/sap/fe/core/messagebundle_vi.properties +13 -5
  261. package/src/sap/fe/core/messagebundle_zh_CN.properties +14 -6
  262. package/src/sap/fe/core/messagebundle_zh_TW.properties +13 -5
  263. package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +2 -2
  264. package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +5 -5
  265. package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +2 -2
  266. package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +14 -14
  267. package/src/sap/fe/core/services/EnvironmentServiceFactory.js +1 -1
  268. package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +3 -2
  269. package/src/sap/fe/core/services/NavigationServiceFactory.js +53 -44
  270. package/src/sap/fe/core/services/NavigationServiceFactory.ts +54 -46
  271. package/src/sap/fe/core/services/ResourceModelServiceFactory.js +2 -2
  272. package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +4 -4
  273. package/src/sap/fe/core/services/RoutingServiceFactory.js +55 -55
  274. package/src/sap/fe/core/services/RoutingServiceFactory.ts +67 -65
  275. package/src/sap/fe/core/services/ShellServicesFactory.js +72 -76
  276. package/src/sap/fe/core/services/ShellServicesFactory.ts +76 -82
  277. package/src/sap/fe/core/services/SideEffectsServiceFactory.js +61 -61
  278. package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +102 -92
  279. package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +20 -15
  280. package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +26 -21
  281. package/src/sap/fe/core/support/CommonHelper.js +3 -2
  282. package/src/sap/fe/core/support/CommonHelper.ts +9 -13
  283. package/src/sap/fe/core/support/Diagnostics.js +1 -1
  284. package/src/sap/fe/core/support/Diagnostics.ts +5 -5
  285. package/src/sap/fe/core/templating/CommonFormatters.js +84 -0
  286. package/src/sap/fe/core/templating/CommonFormatters.ts +86 -0
  287. package/src/sap/fe/core/templating/CriticalityFormatters.js +31 -31
  288. package/src/sap/fe/core/templating/CriticalityFormatters.ts +42 -40
  289. package/src/sap/fe/core/templating/DataFieldFormatters.js +8 -8
  290. package/src/sap/fe/core/templating/DataFieldFormatters.ts +13 -10
  291. package/src/sap/fe/core/templating/DataModelPathHelper.js +16 -15
  292. package/src/sap/fe/core/templating/DataModelPathHelper.ts +42 -32
  293. package/src/sap/fe/core/templating/DisplayModeFormatter.js +1 -1
  294. package/src/sap/fe/core/templating/DisplayModeFormatter.ts +2 -3
  295. package/src/sap/fe/core/templating/EntitySetHelper.js +7 -7
  296. package/src/sap/fe/core/templating/EntitySetHelper.ts +6 -8
  297. package/src/sap/fe/core/templating/FieldControlHelper.js +35 -34
  298. package/src/sap/fe/core/templating/FieldControlHelper.ts +29 -46
  299. package/src/sap/fe/core/templating/FilterHelper.js +10 -9
  300. package/src/sap/fe/core/templating/FilterHelper.ts +13 -13
  301. package/src/sap/fe/core/templating/FilterTemplating.js +1 -1
  302. package/src/sap/fe/core/templating/FilterTemplating.ts +3 -3
  303. package/src/sap/fe/core/templating/PropertyFormatters.js +7 -7
  304. package/src/sap/fe/core/templating/PropertyFormatters.ts +21 -19
  305. package/src/sap/fe/core/templating/PropertyHelper.js +25 -25
  306. package/src/sap/fe/core/templating/PropertyHelper.ts +25 -26
  307. package/src/sap/fe/core/templating/UIFormatters.js +148 -93
  308. package/src/sap/fe/core/templating/UIFormatters.ts +196 -124
  309. package/src/sap/fe/core/type/Email.js +2 -2
  310. package/src/sap/fe/core/type/Email.ts +2 -2
  311. package/src/sap/fe/core/helpers/BindingExpression.js +0 -1732
@@ -1,6 +1,6 @@
1
1
  import Log from "sap/base/Log";
2
2
  import mergeObjects from "sap/base/util/merge";
3
- import AppComponent from "sap/fe/core/AppComponent";
3
+ import type AppComponent from "sap/fe/core/AppComponent";
4
4
  import draft from "sap/fe/core/controllerextensions/editFlow/draft";
5
5
  import {
6
6
  defineUI5Class,
@@ -12,28 +12,27 @@ import {
12
12
  } from "sap/fe/core/helpers/ClassSupport";
13
13
  import KeepAliveHelper from "sap/fe/core/helpers/KeepAliveHelper";
14
14
  import ModelHelper from "sap/fe/core/helpers/ModelHelper";
15
- import PageController from "sap/fe/core/PageController";
16
- import { NavigationService } from "sap/fe/core/services/NavigationServiceFactory";
15
+ import type PageController from "sap/fe/core/PageController";
16
+ import type { NavigationService } from "sap/fe/core/services/NavigationServiceFactory";
17
17
  import SelectionVariant from "sap/fe/navigation/SelectionVariant";
18
- import Dialog from "sap/m/Dialog";
18
+ import type Dialog from "sap/m/Dialog";
19
19
  import Core from "sap/ui/core/Core";
20
20
  import Fragment from "sap/ui/core/Fragment";
21
21
  import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
22
22
  import OverrideExecution from "sap/ui/core/mvc/OverrideExecution";
23
- import View from "sap/ui/core/mvc/View";
23
+ import type View from "sap/ui/core/mvc/View";
24
24
  import XMLPreprocessor from "sap/ui/core/util/XMLPreprocessor";
25
25
  import XMLTemplateProcessor from "sap/ui/core/XMLTemplateProcessor";
26
- import Context from "sap/ui/model/Context";
26
+ import type Context from "sap/ui/model/Context";
27
27
  import JSONModel from "sap/ui/model/json/JSONModel";
28
- import ODataMetaModel from "sap/ui/model/odata/v4/ODataMetaModel";
29
- import { CoreEx } from "types/extension_types";
28
+ import type ODataMetaModel from "sap/ui/model/odata/v4/ODataMetaModel";
29
+ import type { CoreEx } from "types/extension_types";
30
30
 
31
31
  /**
32
32
  * {@link sap.ui.core.mvc.ControllerExtension Controller extension}
33
33
  *
34
34
  * @namespace
35
35
  * @alias sap.fe.core.controllerextensions.InternalInternalBasedNavigation
36
- *
37
36
  * @private
38
37
  * @since 1.84.0
39
38
  */
@@ -57,10 +56,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
57
56
  * If semantic object mapping is provided, this is also applied to the selection variant after the adaptation by a consumer.
58
57
  * This takes care of removing any technical parameters and determines if an explace or inplace navigation should take place.
59
58
  *
60
- * @param {string} sSemanticObject Semantic object for the target app
61
- * @param {string} sAction Action for the target app
62
- * @param {object} [mNavigationParameters] Optional parameters to be passed to the external navigation
63
- * @param {Array|object} [mNavigationParameters.navigationContexts] Uses one of the following to be passed to the intent:
59
+ * @param sSemanticObject Semantic object for the target app
60
+ * @param sAction Action for the target app
61
+ * @param [mNavigationParameters] Optional parameters to be passed to the external navigation
62
+ * @param [mNavigationParameters.navigationContexts] Uses one of the following to be passed to the intent:
64
63
  * a single instance of {@link sap.ui.model.odata.v4.Context}
65
64
  * multiple instances of {@link sap.ui.model.odata.v4.Context}
66
65
  * an object or an array of objects
@@ -73,11 +72,11 @@ class InternalIntentBasedNavigation extends ControllerExtension {
73
72
  * },
74
73
  * metaPath: "/SalesOrderManage"
75
74
  * }
76
- * @param {string | object} [mNavigationParameters.semanticObjectMapping] String representation of the SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
77
- * @param {object} [mNavigationParameters.defaultRefreshStrategy] Default refresh strategy to be used in case no refresh strategy is specified for the intent in the view.
78
- * @param {object} [mNavigationParameters.refreshStrategies]
79
- * @param {object} [mNavigationParameters.additionalNavigationParameters] Additional navigation parameters configured in the crossAppNavigation outbound parameters.
80
- **/
75
+ * @param [mNavigationParameters.semanticObjectMapping] String representation of the SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
76
+ * @param [mNavigationParameters.defaultRefreshStrategy] Default refresh strategy to be used in case no refresh strategy is specified for the intent in the view.
77
+ * @param [mNavigationParameters.refreshStrategies]
78
+ * @param [mNavigationParameters.additionalNavigationParameters] Additional navigation parameters configured in the crossAppNavigation outbound parameters.
79
+ */
81
80
  @publicExtension()
82
81
  @finalExtension()
83
82
  navigate(
@@ -233,9 +232,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
233
232
 
234
233
  /**
235
234
  * Prepare attributes to be passed to external navigation.
236
- * @param {object} oSemanticAttributes Context data after removing all sensitive information.
237
- * @param {object} oContext Actual context from which the semanticAttributes were derived.
238
- * @returns {object} Object of prepared attributes for external navigation and no conflict properties.
235
+ *
236
+ * @param oSemanticAttributes Context data after removing all sensitive information.
237
+ * @param oContext Actual context from which the semanticAttributes were derived.
238
+ * @returns Object of prepared attributes for external navigation and no conflict properties.
239
239
  */
240
240
  @publicExtension()
241
241
  @finalExtension()
@@ -261,7 +261,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
261
261
  } else {
262
262
  // if a nested object is found
263
263
  const oNewLookUpObject = LookUpObject[sKey];
264
- _findDistinctKeysInObject(oNewLookUpObject, sLookUpObjectMetaPath + "/" + sKey);
264
+ _findDistinctKeysInObject(oNewLookUpObject, `${sLookUpObjectMetaPath}/${sKey}`);
265
265
  }
266
266
  }
267
267
  }
@@ -270,7 +270,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
270
270
 
271
271
  // 2. Determine distinct key value and add conflicted paths to semantic attributes
272
272
  const sMainEntitySetName = aMetaPathParts[0],
273
- sMainEntityTypeName = oMetaModel.getObject("/" + sMainEntitySetName + "/@sapui.name"),
273
+ sMainEntityTypeName = oMetaModel.getObject(`/${sMainEntitySetName}/@sapui.name`),
274
274
  oPropertiesWithoutConflict: any = {};
275
275
  let sMainEntityValuePath, sCurrentValuePath, sLastValuePath;
276
276
  for (const sDistinctKey in oDistinctKeys) {
@@ -285,9 +285,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
285
285
  // conflict
286
286
  for (let i = 0; i <= aConflictingPaths.length - 1; i++) {
287
287
  const sPath = aConflictingPaths[i];
288
- let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : sMetaPath + "/", "");
289
- sPathInContext = (sPathInContext === "" ? sPathInContext : sPathInContext + "/") + sDistinctKey;
290
- const sEntityTypeName = oMetaModel.getObject(sPath + "/@sapui.name");
288
+ let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : `${sMetaPath}/`, "");
289
+ sPathInContext = (sPathInContext === "" ? sPathInContext : `${sPathInContext}/`) + sDistinctKey;
290
+ const sEntityTypeName = oMetaModel.getObject(`${sPath}/@sapui.name`);
291
291
  // rule A
292
292
 
293
293
  // rule A
@@ -306,7 +306,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
306
306
  // add conflicted path to semantic attributes
307
307
  // check if the current path points to main entity and prefix attribute names accordingly
308
308
  oSemanticAttributes[
309
- (sMetaPath + "/" + sPathInContext)
309
+ `${sMetaPath}/${sPathInContext}`
310
310
  .split("/")
311
311
  .filter(function (sValue: string) {
312
312
  return sValue != "";
@@ -323,10 +323,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
323
323
  } else {
324
324
  // no conflict, add distinct key without adding paths
325
325
  const sPath = aConflictingPaths[0]; // because there is only one and hence no conflict
326
- let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : sMetaPath + "/", "");
327
- sPathInContext = (sPathInContext === "" ? sPathInContext : sPathInContext + "/") + sDistinctKey;
326
+ let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : `${sMetaPath}/`, "");
327
+ sPathInContext = (sPathInContext === "" ? sPathInContext : `${sPathInContext}/`) + sDistinctKey;
328
328
  oSemanticAttributes[sDistinctKey] = oContext.getProperty(sPathInContext);
329
- oPropertiesWithoutConflict[sDistinctKey] = (sMetaPath + "/" + sPathInContext)
329
+ oPropertiesWithoutConflict[sDistinctKey] = `${sMetaPath}/${sPathInContext}`
330
330
  .split("/")
331
331
  .filter(function (sValue: string) {
332
332
  return sValue != "";
@@ -347,10 +347,11 @@ class InternalIntentBasedNavigation extends ControllerExtension {
347
347
  }
348
348
  /**
349
349
  * Prepare filter conditions to be passed to external navigation.
350
- * @param {object} oFilterBarConditions Filter conditions.
351
- * @param {string} sRootPath Root path of the application.
352
- * @param {Array} aParameters Names of parameters to be considered.
353
- * @returns {object} Object of prepared filter conditions for external navigation and no conflict filters.
350
+ *
351
+ * @param oFilterBarConditions Filter conditions.
352
+ * @param sRootPath Root path of the application.
353
+ * @param aParameters Names of parameters to be considered.
354
+ * @returns Object of prepared filter conditions for external navigation and no conflict filters.
354
355
  */
355
356
  @publicExtension()
356
357
  @finalExtension()
@@ -391,15 +392,15 @@ class InternalIntentBasedNavigation extends ControllerExtension {
391
392
  for (let i = 0; i <= aConflictingPaths.length - 1; i++) {
392
393
  sPath = aConflictingPaths[i];
393
394
  if (sPath === sRootPath) {
394
- sFullContextPath = sRootPath + "/" + sDistinctKey;
395
+ sFullContextPath = `${sRootPath}/${sDistinctKey}`;
395
396
  sPathInContext = sDistinctKey;
396
397
  sMainEntityValuePath = sDistinctKey;
397
398
  if (aParameters && aParameters.includes(sDistinctKey)) {
398
- oFilterBarConditions["$Parameter." + sDistinctKey] = oFilterBarConditions[sDistinctKey];
399
+ oFilterBarConditions[`$Parameter.${sDistinctKey}`] = oFilterBarConditions[sDistinctKey];
399
400
  }
400
401
  } else {
401
402
  sPathInContext = sPath;
402
- sFullContextPath = ((sRootPath + "/" + sPath) as any).replaceAll(/\*/g, "");
403
+ sFullContextPath = (`${sRootPath}/${sPath}` as any).replaceAll(/\*/g, "");
403
404
  sCurrentValuePath = sPath;
404
405
  }
405
406
  oFilterBarConditions[
@@ -419,7 +420,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
419
420
  // no conflict, add distinct key without adding paths
420
421
  sPath = aConflictingPaths[0];
421
422
  sFullContextPath =
422
- sPath === sRootPath ? sRootPath + "/" + sDistinctKey : ((sRootPath + "/" + sPath) as any).replaceAll("*", "");
423
+ sPath === sRootPath ? `${sRootPath}/${sDistinctKey}` : (`${sRootPath}/${sPath}` as any).replaceAll("*", "");
423
424
  oFilterConditionsWithoutConflict[sDistinctKey] = sFullContextPath
424
425
  .split("/")
425
426
  .filter(function (sValue: any) {
@@ -427,7 +428,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
427
428
  })
428
429
  .join(".");
429
430
  if (aParameters && aParameters.includes(sDistinctKey)) {
430
- oFilterBarConditions["$Parameter." + sDistinctKey] = oFilterBarConditions[sDistinctKey];
431
+ oFilterBarConditions[`$Parameter.${sDistinctKey}`] = oFilterBarConditions[sDistinctKey];
431
432
  }
432
433
  }
433
434
  }
@@ -441,7 +442,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
441
442
  /**
442
443
  * Get Navigation mode.
443
444
  *
444
- * @returns {string}
445
+ * @returns The navigation mode
445
446
  */
446
447
  @publicExtension()
447
448
  @extensible(OverrideExecution.Instead)
@@ -453,13 +454,13 @@ class InternalIntentBasedNavigation extends ControllerExtension {
453
454
  * If semantic object mapping is provided, this setting is also applied to the selection variant after adaptation by a consumer.
454
455
  * This setting also removes any technical parameters and determines if an inplace or explace navigation should take place.
455
456
  *
456
- * @param {string} sSemanticObject Semantic object for the target app
457
- * @param {string} sAction Action for the target app
458
- * @param {object} [mNavigationParameters] Optional parameters to be passed to the external navigation
459
- * @param {string} [mNavigationParameters.label]
460
- * @param {Array|object} [mNavigationParameters.navigationContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, to be passed to the intent.
461
- * @param {Array|object} [mNavigationParameters.applicableContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, to be passed to the intent and for which the IBN button is enabled
462
- * @param {Array|object} [mNavigationParameters.notApplicableContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, which cannot be passed to the intent.
457
+ * @param sSemanticObject Semantic object for the target app
458
+ * @param sAction Action for the target app
459
+ * @param [mNavigationParameters] Optional parameters to be passed to the external navigation
460
+ * @param [mNavigationParameters.label]
461
+ * @param [mNavigationParameters.navigationContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, to be passed to the intent.
462
+ * @param [mNavigationParameters.applicableContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, to be passed to the intent and for which the IBN button is enabled
463
+ * @param [mNavigationParameters.notApplicableContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, which cannot be passed to the intent.
463
464
  * if an array of contexts is passed the context is used to determine the meta path and accordingly remove the sensitive data
464
465
  * If an array of objects is passed, the following format is expected:
465
466
  * {
@@ -470,8 +471,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
470
471
  * metaPath: "/SalesOrderManage"
471
472
  * }
472
473
  * The metaPath is used to remove any sensitive data.
473
- * @param {string | object} [mNavigationParameters.semanticObjectMapping] String representation of SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
474
- **/
474
+ * @param [mNavigationParameters.semanticObjectMapping] String representation of SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
475
+ */
475
476
  @publicExtension()
476
477
  @finalExtension()
477
478
  navigateWithConfirmationDialog(
@@ -519,7 +520,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
519
520
  const oModel = this._oView.getModel();
520
521
  const oMetaModel = oModel.getMetaModel();
521
522
  const sCanonicalPath = mNavigationParameters.notApplicableContexts[0].getCanonicalPath();
522
- const sEntitySet = sCanonicalPath.substr(0, sCanonicalPath.indexOf("(")) + "/";
523
+ const sEntitySet = `${sCanonicalPath.substr(0, sCanonicalPath.indexOf("("))}/`;
523
524
  Promise.resolve(
524
525
  XMLPreprocessor.process(
525
526
  oDialogFragment,
@@ -558,9 +559,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
558
559
  /**
559
560
  * Get targeted Entity set.
560
561
  *
561
- * @returns {string} Entity set name
562
- *
563
- *
562
+ * @returns Entity set name
564
563
  */
565
564
  @privateExtension()
566
565
  getEntitySet() {
@@ -569,11 +568,11 @@ class InternalIntentBasedNavigation extends ControllerExtension {
569
568
  /**
570
569
  * Removes sensitive data from the semantic attribute with respect to entitySet.
571
570
  *
572
- * @param {object} oAttributes Context data
573
- * @param {string} sMetaPath Meta path to reach the entityset in the MetaModel
574
- * @returns {Array} Array of semantic Attributes
571
+ * @param oAttributes Context data
572
+ * @param sMetaPath Meta path to reach the entityset in the MetaModel
573
+ * @returns Array of semantic Attributes
575
574
  * @private
576
- **/
575
+ */
577
576
  // TO-DO add unit tests for this function in the controller extension qunit.
578
577
  @publicExtension()
579
578
  @finalExtension()
@@ -585,10 +584,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
585
584
  delete oAttributes["SAP__Messages"];
586
585
  for (let j = 0; j < aProperties.length; j++) {
587
586
  if (oAttributes[aProperties[j]] && typeof oAttributes[aProperties[j]] === "object") {
588
- this.removeSensitiveData(oAttributes[aProperties[j]], sMetaPath + "/" + aProperties[j]);
587
+ this.removeSensitiveData(oAttributes[aProperties[j]], `${sMetaPath}/${aProperties[j]}`);
589
588
  }
590
589
  const sProp = aProperties[j],
591
- aPropertyAnnotations = this._oMetaModel.getObject(sMetaPath + "/" + sProp + "@");
590
+ aPropertyAnnotations = this._oMetaModel.getObject(`${sMetaPath}/${sProp}@`);
592
591
  if (aPropertyAnnotations) {
593
592
  if (
594
593
  aPropertyAnnotations["@com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive"] ||
@@ -613,10 +612,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
613
612
  /**
614
613
  * Check if Path based FieldControl Evaluates to inapplicable.
615
614
  *
616
- * @param {string} sFieldControlPath Field control path
617
- * @param {object} oAttribute SemanticAttributes
618
- * @returns {boolean} `true` if inapplicable
619
- *
615
+ * @param sFieldControlPath Field control path
616
+ * @param oAttribute SemanticAttributes
617
+ * @returns `true` if inapplicable
620
618
  */
621
619
  _isFieldControlPathInapplicable(sFieldControlPath: string, oAttribute: any) {
622
620
  let bInapplicable = false;
@@ -633,9 +631,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
633
631
  /**
634
632
  * Method to replace Local Properties with Semantic Object mappings.
635
633
  *
636
- * @param {object} oSelectionVariant SelectionVariant consisting of filterbar, Table and Page Context
637
- * @param {object | string} vMappings A string representation of semantic object mapping
638
- * @returns {object} - Modified SelectionVariant with LocalProperty replaced with SemanticObjectProperties.
634
+ * @param oSelectionVariant SelectionVariant consisting of filterbar, Table and Page Context
635
+ * @param vMappings A string representation of semantic object mapping
636
+ * @returns - Modified SelectionVariant with LocalProperty replaced with SemanticObjectProperties.
639
637
  */
640
638
  _applySemanticObjectMappings(oSelectionVariant: SelectionVariant, vMappings: object | string) {
641
639
  const oMappings = typeof vMappings === "string" ? JSON.parse(vMappings) : vMappings;
@@ -658,12 +656,13 @@ class InternalIntentBasedNavigation extends ControllerExtension {
658
656
  }
659
657
  /**
660
658
  * Navigates to an Outbound provided in the manifest.
659
+ *
661
660
  * @function
662
- * @param {string} sOutbound Identifier to location the outbound in the manifest
663
- * @param {object} mNavigationParameters Optional map containing key/value pairs to be passed to the intent
661
+ * @param sOutbound Identifier to location the outbound in the manifest
662
+ * @param mNavigationParameters Optional map containing key/value pairs to be passed to the intent
664
663
  * @alias sap.fe.core.controllerextensions.IntentBasedNavigation#navigateOutbound
665
664
  * @since 1.86.0
666
- **/
665
+ */
667
666
  @publicExtension()
668
667
  @finalExtension()
669
668
  navigateOutbound(sOutbound: string, mNavigationParameters: any) {
@@ -708,9 +707,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
708
707
 
709
708
  /**
710
709
  * Method to apply outbound parameters defined in the manifest.
711
- * @param {object} oSelectionVariant SelectionVariant consisting of a filter bar, a table, and a page context
712
- * @param {object} vOutboundParams Outbound Properties defined in the manifest
713
- * @returns {object} - The modified SelectionVariant with outbound parameters.
710
+ *
711
+ * @param oSelectionVariant SelectionVariant consisting of a filter bar, a table, and a page context
712
+ * @param vOutboundParams Outbound Properties defined in the manifest
713
+ * @returns - The modified SelectionVariant with outbound parameters.
714
714
  */
715
715
  _applyOutboundParams(oSelectionVariant: SelectionVariant, vOutboundParams: any) {
716
716
  const aParameters = Object.keys(vOutboundParams);
@@ -726,9 +726,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
726
726
  * Method to get the outbound parameters defined in the manifest.
727
727
  *
728
728
  * @function
729
- * @param {object} oOutboundParams Parameters defined in the outbounds. Only "plain" is supported
730
- * @returns {Array} Parameters with the key-Value pair
731
- **/
729
+ * @param oOutboundParams Parameters defined in the outbounds. Only "plain" is supported
730
+ * @returns Parameters with the key-Value pair
731
+ */
732
732
  @publicExtension()
733
733
  @finalExtension()
734
734
  getOutboundParams(oOutboundParams: any) {
@@ -784,7 +784,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
784
784
  }
785
785
 
786
786
  if (sCreatePath) {
787
- const sKey = oDisplayOutbound.semanticObject + "-" + oDisplayOutbound.action;
787
+ const sKey = `${oDisplayOutbound.semanticObject}-${oDisplayOutbound.action}`;
788
788
  oRefreshStrategies.intents[sKey] = {};
789
789
  oRefreshStrategies.intents[sKey][sCreatePath] = "self";
790
790
  }
@@ -804,7 +804,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
804
804
  //TODO: check why returning a promise is required
805
805
  return Promise.resolve();
806
806
  } else {
807
- throw new Error("outbound target " + sOutboundTarget + " not found in cross navigation definition of manifest");
807
+ throw new Error(`outbound target ${sOutboundTarget} not found in cross navigation definition of manifest`);
808
808
  }
809
809
  }
810
810
  }