@sapui5/sap.fe.core 1.98.0 → 1.101.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 (318) hide show
  1. package/package.json +8 -5
  2. package/src/sap/fe/core/.library +2 -3
  3. package/src/sap/fe/core/AnnotationHelper.js +328 -405
  4. package/src/sap/fe/core/AnnotationHelper.ts +321 -0
  5. package/src/sap/fe/core/AppComponent.js +382 -399
  6. package/src/sap/fe/core/AppComponent.ts +397 -0
  7. package/src/sap/fe/core/AppStateHandler.js +198 -181
  8. package/src/sap/fe/core/AppStateHandler.ts +171 -0
  9. package/src/sap/fe/core/BaseController.js +83 -58
  10. package/src/sap/fe/core/BaseController.ts +67 -0
  11. package/src/sap/fe/core/BusyLocker.js +105 -121
  12. package/src/sap/fe/core/BusyLocker.ts +98 -0
  13. package/src/sap/fe/core/CommonUtils.js +2221 -2399
  14. package/src/sap/fe/core/CommonUtils.ts +2248 -0
  15. package/src/sap/fe/core/ExtensionAPI.js +280 -274
  16. package/src/sap/fe/core/ExtensionAPI.ts +242 -0
  17. package/src/sap/fe/core/PageController.js +219 -131
  18. package/src/sap/fe/core/PageController.ts +129 -0
  19. package/src/sap/fe/core/RouterProxy.js +936 -823
  20. package/src/sap/fe/core/RouterProxy.ts +854 -0
  21. package/src/sap/fe/core/Synchronization.js +41 -35
  22. package/src/sap/fe/core/Synchronization.ts +29 -0
  23. package/src/sap/fe/core/TemplateComponent.js +248 -164
  24. package/src/sap/fe/core/TemplateComponent.ts +161 -0
  25. package/src/sap/fe/core/TemplateModel.js +77 -54
  26. package/src/sap/fe/core/TemplateModel.ts +63 -0
  27. package/src/sap/fe/core/TransactionHelper.js +1575 -1664
  28. package/src/sap/fe/core/TransactionHelper.ts +1736 -0
  29. package/src/sap/fe/core/actions/collaboration/ActivitySync.js +406 -0
  30. package/src/sap/fe/core/actions/collaboration/ActivitySync.ts +362 -0
  31. package/src/sap/fe/core/actions/collaboration/CollaborationCommon.js +146 -0
  32. package/src/sap/fe/core/actions/collaboration/CollaborationCommon.ts +129 -0
  33. package/src/sap/fe/core/actions/collaboration/Manage.js +264 -0
  34. package/src/sap/fe/core/actions/collaboration/Manage.ts +246 -0
  35. package/src/sap/fe/core/actions/collaboration/ManageDialog.fragment.xml +100 -0
  36. package/src/sap/fe/core/actions/collaboration/UserDetails.fragment.xml +13 -0
  37. package/src/sap/fe/core/actions/draft.js +663 -608
  38. package/src/sap/fe/core/actions/draft.ts +669 -0
  39. package/src/sap/fe/core/actions/messageHandling.js +576 -514
  40. package/src/sap/fe/core/actions/messageHandling.ts +562 -0
  41. package/src/sap/fe/core/actions/nonDraft.js +17 -19
  42. package/src/sap/fe/core/actions/nonDraft.ts +12 -0
  43. package/src/sap/fe/core/actions/operations.js +1093 -1215
  44. package/src/sap/fe/core/actions/operations.ts +1193 -0
  45. package/src/sap/fe/core/actions/sticky.js +114 -104
  46. package/src/sap/fe/core/actions/sticky.ts +119 -0
  47. package/src/sap/fe/core/buildingBlocks/AttributeModel.js +60 -0
  48. package/src/sap/fe/core/buildingBlocks/AttributeModel.ts +37 -0
  49. package/src/sap/fe/core/buildingBlocks/BuildingBlock.js +165 -0
  50. package/src/sap/fe/core/buildingBlocks/BuildingBlock.ts +178 -0
  51. package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js +707 -0
  52. package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +628 -0
  53. package/src/sap/fe/core/buildingBlocks/TraceInfo.js +436 -0
  54. package/src/sap/fe/core/buildingBlocks/TraceInfo.ts +431 -0
  55. package/src/sap/fe/core/controllerextensions/EditFlow.js +1855 -1827
  56. package/src/sap/fe/core/controllerextensions/EditFlow.ts +1792 -0
  57. package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +80 -54
  58. package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +60 -0
  59. package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +717 -512
  60. package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +785 -0
  61. package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +797 -815
  62. package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +810 -0
  63. package/src/sap/fe/core/controllerextensions/InternalRouting.js +1057 -1004
  64. package/src/sap/fe/core/controllerextensions/InternalRouting.ts +1001 -0
  65. package/src/sap/fe/core/controllerextensions/KPIManagement.js +498 -533
  66. package/src/sap/fe/core/controllerextensions/KPIManagement.ts +36 -32
  67. package/src/sap/fe/core/controllerextensions/MassEdit.js +142 -77
  68. package/src/sap/fe/core/controllerextensions/MassEdit.ts +155 -0
  69. package/src/sap/fe/core/controllerextensions/MessageHandler.js +222 -236
  70. package/src/sap/fe/core/controllerextensions/MessageHandler.ts +215 -0
  71. package/src/sap/fe/core/controllerextensions/PageReady.js +312 -345
  72. package/src/sap/fe/core/controllerextensions/PageReady.ts +63 -55
  73. package/src/sap/fe/core/controllerextensions/Paginator.js +189 -175
  74. package/src/sap/fe/core/controllerextensions/Paginator.ts +169 -0
  75. package/src/sap/fe/core/controllerextensions/Placeholder.js +158 -149
  76. package/src/sap/fe/core/controllerextensions/Placeholder.ts +149 -0
  77. package/src/sap/fe/core/controllerextensions/Routing.js +145 -121
  78. package/src/sap/fe/core/controllerextensions/Routing.ts +131 -0
  79. package/src/sap/fe/core/controllerextensions/RoutingListener.js +8 -6
  80. package/src/sap/fe/core/controllerextensions/RoutingListener.ts +3 -0
  81. package/src/sap/fe/core/controllerextensions/Share.js +231 -268
  82. package/src/sap/fe/core/controllerextensions/Share.ts +231 -0
  83. package/src/sap/fe/core/controllerextensions/SideEffects.js +603 -644
  84. package/src/sap/fe/core/controllerextensions/SideEffects.ts +79 -79
  85. package/src/sap/fe/core/controllerextensions/ViewState.js +775 -806
  86. package/src/sap/fe/core/controllerextensions/ViewState.ts +796 -0
  87. package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +2 -2
  88. package/src/sap/fe/core/controls/ActionPartial.fragment.xml +2 -2
  89. package/src/sap/fe/core/controls/Any.js +28 -0
  90. package/src/sap/fe/core/controls/Any.ts +30 -0
  91. package/src/sap/fe/core/controls/CommandExecution.js +93 -68
  92. package/src/sap/fe/core/controls/CommandExecution.ts +72 -0
  93. package/src/sap/fe/core/controls/ConditionalWrapper.js +166 -79
  94. package/src/sap/fe/core/controls/ConditionalWrapper.ts +74 -0
  95. package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.js +366 -0
  96. package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.ts +278 -0
  97. package/src/sap/fe/core/controls/CustomQuickViewPage.js +168 -125
  98. package/src/sap/fe/core/controls/CustomQuickViewPage.ts +116 -0
  99. package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossDraft.fragment.xml +44 -5
  100. package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +164 -122
  101. package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +155 -0
  102. package/src/sap/fe/core/controls/FieldWrapper.js +213 -153
  103. package/src/sap/fe/core/controls/FieldWrapper.ts +104 -0
  104. package/src/sap/fe/core/controls/FileWrapper.js +313 -0
  105. package/src/sap/fe/core/controls/FileWrapper.ts +169 -0
  106. package/src/sap/fe/core/controls/FilterBar.js +198 -159
  107. package/src/sap/fe/core/controls/FilterBar.ts +148 -0
  108. package/src/sap/fe/core/controls/FormElementWrapper.js +101 -39
  109. package/src/sap/fe/core/controls/FormElementWrapper.ts +37 -0
  110. package/src/sap/fe/core/controls/MultiValueParameterDelegate.js +38 -42
  111. package/src/sap/fe/core/controls/MultiValueParameterDelegate.ts +31 -0
  112. package/src/sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml +1 -0
  113. package/src/sap/fe/core/controls/filterbar/FilterContainer.js +148 -115
  114. package/src/sap/fe/core/controls/filterbar/FilterContainer.ts +102 -0
  115. package/src/sap/fe/core/controls/filterbar/VisualFilter.js +301 -265
  116. package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +252 -0
  117. package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +186 -140
  118. package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +125 -0
  119. package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +336 -322
  120. package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +337 -0
  121. package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +37 -42
  122. package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +76 -74
  123. package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +71 -0
  124. package/src/sap/fe/core/converters/ConverterContext.js +348 -379
  125. package/src/sap/fe/core/converters/ConverterContext.ts +23 -19
  126. package/src/sap/fe/core/converters/ManifestSettings.js +13 -1
  127. package/src/sap/fe/core/converters/ManifestSettings.ts +18 -2
  128. package/src/sap/fe/core/converters/ManifestWrapper.js +354 -365
  129. package/src/sap/fe/core/converters/ManifestWrapper.ts +19 -0
  130. package/src/sap/fe/core/converters/MetaModelConverter.js +16 -11
  131. package/src/sap/fe/core/converters/MetaModelConverter.ts +21 -18
  132. package/src/sap/fe/core/converters/TemplateConverter.js +1 -1
  133. package/src/sap/fe/core/converters/TemplateConverter.ts +4 -3
  134. package/src/sap/fe/core/converters/annotations/DataField.js +26 -13
  135. package/src/sap/fe/core/converters/annotations/DataField.ts +40 -17
  136. package/src/sap/fe/core/converters/common/AnnotationConverter.js +17 -13
  137. package/src/sap/fe/core/converters/controls/Common/Action.js +11 -11
  138. package/src/sap/fe/core/converters/controls/Common/Action.ts +22 -21
  139. package/src/sap/fe/core/converters/controls/Common/Chart.js +12 -10
  140. package/src/sap/fe/core/converters/controls/Common/Chart.ts +23 -14
  141. package/src/sap/fe/core/converters/controls/Common/DataVisualization.js +3 -3
  142. package/src/sap/fe/core/converters/controls/Common/DataVisualization.ts +2 -2
  143. package/src/sap/fe/core/converters/controls/Common/Form.js +9 -7
  144. package/src/sap/fe/core/converters/controls/Common/Form.ts +23 -5
  145. package/src/sap/fe/core/converters/controls/Common/KPI.js +1 -1
  146. package/src/sap/fe/core/converters/controls/Common/KPI.ts +2 -2
  147. package/src/sap/fe/core/converters/controls/Common/Table.js +562 -218
  148. package/src/sap/fe/core/converters/controls/Common/Table.ts +670 -320
  149. package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +218 -94
  150. package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +265 -159
  151. package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +495 -77
  152. package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +535 -130
  153. package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.js +6 -6
  154. package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.ts +20 -18
  155. package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +10 -7
  156. package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +13 -16
  157. package/src/sap/fe/core/converters/helpers/Aggregation.js +117 -127
  158. package/src/sap/fe/core/converters/helpers/Aggregation.ts +20 -5
  159. package/src/sap/fe/core/converters/helpers/BindingHelper.js +20 -6
  160. package/src/sap/fe/core/converters/helpers/BindingHelper.ts +16 -4
  161. package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +12 -1
  162. package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +11 -0
  163. package/src/sap/fe/core/converters/helpers/IssueManager.js +4 -1
  164. package/src/sap/fe/core/converters/helpers/IssueManager.ts +3 -0
  165. package/src/sap/fe/core/converters/helpers/Key.js +42 -57
  166. package/src/sap/fe/core/converters/helpers/Key.ts +1 -1
  167. package/src/sap/fe/core/converters/objectPage/FormMenuActions.js +1 -1
  168. package/src/sap/fe/core/converters/objectPage/FormMenuActions.ts +0 -4
  169. package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +54 -30
  170. package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +69 -43
  171. package/src/sap/fe/core/converters/templates/ListReportConverter.js +52 -28
  172. package/src/sap/fe/core/converters/templates/ListReportConverter.ts +111 -74
  173. package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +11 -9
  174. package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +8 -8
  175. package/src/sap/fe/core/designtime/AppComponent.designtime.js +93 -98
  176. package/src/sap/fe/core/designtime/AppComponent.designtime.ts +91 -0
  177. package/src/sap/fe/core/formatters/CollaborationFormatter.js +104 -0
  178. package/src/sap/fe/core/formatters/CollaborationFormatter.ts +60 -0
  179. package/src/sap/fe/core/formatters/CriticalityFormatter.js +1 -1
  180. package/src/sap/fe/core/formatters/CriticalityFormatter.ts +1 -1
  181. package/src/sap/fe/core/formatters/FPMFormatter.js +1 -1
  182. package/src/sap/fe/core/formatters/FPMFormatter.ts +4 -10
  183. package/src/sap/fe/core/formatters/KPIFormatter.js +3 -12
  184. package/src/sap/fe/core/formatters/KPIFormatter.ts +4 -1
  185. package/src/sap/fe/core/formatters/TableFormatter.js +91 -29
  186. package/src/sap/fe/core/formatters/TableFormatter.ts +94 -28
  187. package/src/sap/fe/core/formatters/ValueFormatter.js +4 -4
  188. package/src/sap/fe/core/formatters/ValueFormatter.ts +5 -7
  189. package/src/sap/fe/core/fpm/Component.js +81 -55
  190. package/src/sap/fe/core/fpm/Component.ts +43 -0
  191. package/src/sap/fe/core/helpers/AppStartupHelper.js +324 -310
  192. package/src/sap/fe/core/helpers/AppStartupHelper.ts +370 -341
  193. package/src/sap/fe/core/helpers/BindingExpression.js +319 -360
  194. package/src/sap/fe/core/helpers/BindingExpression.ts +323 -397
  195. package/src/sap/fe/core/helpers/ClassSupport.js +321 -168
  196. package/src/sap/fe/core/helpers/ClassSupport.ts +362 -158
  197. package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +64 -59
  198. package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +52 -0
  199. package/src/sap/fe/core/helpers/EditState.js +81 -84
  200. package/src/sap/fe/core/helpers/EditState.ts +81 -0
  201. package/src/sap/fe/core/helpers/ExcelFormatHelper.js +62 -48
  202. package/src/sap/fe/core/helpers/ExcelFormatHelper.ts +49 -0
  203. package/src/sap/fe/core/helpers/FPMHelper.js +52 -56
  204. package/src/sap/fe/core/helpers/FPMHelper.ts +62 -0
  205. package/src/sap/fe/core/helpers/KeepAliveHelper.js +3 -4
  206. package/src/sap/fe/core/helpers/KeepAliveHelper.ts +9 -9
  207. package/src/sap/fe/core/helpers/MassEditHelper.js +736 -676
  208. package/src/sap/fe/core/helpers/MassEditHelper.ts +803 -0
  209. package/src/sap/fe/core/helpers/ModelHelper.js +281 -225
  210. package/src/sap/fe/core/helpers/ModelHelper.ts +273 -0
  211. package/src/sap/fe/core/helpers/PasteHelper.js +210 -132
  212. package/src/sap/fe/core/helpers/PasteHelper.ts +197 -0
  213. package/src/sap/fe/core/helpers/SemanticDateOperators.js +336 -313
  214. package/src/sap/fe/core/helpers/SemanticDateOperators.ts +336 -0
  215. package/src/sap/fe/core/helpers/SemanticKeyHelper.js +66 -67
  216. package/src/sap/fe/core/helpers/SemanticKeyHelper.ts +73 -0
  217. package/src/sap/fe/core/helpers/StableIdHelper.js +1 -10
  218. package/src/sap/fe/core/helpers/StableIdHelper.ts +2 -10
  219. package/src/sap/fe/core/jsx-runtime/jsx.js +35 -5
  220. package/src/sap/fe/core/jsx-runtime/jsx.ts +23 -9
  221. package/src/sap/fe/core/library.js +426 -451
  222. package/src/sap/fe/core/library.support.js +23 -33
  223. package/src/sap/fe/core/library.support.ts +23 -0
  224. package/src/sap/fe/core/library.ts +420 -0
  225. package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +5 -3
  226. package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +5 -5
  227. package/src/sap/fe/core/messagebundle.properties +63 -18
  228. package/src/sap/fe/core/messagebundle_ar.properties +37 -6
  229. package/src/sap/fe/core/messagebundle_bg.properties +37 -6
  230. package/src/sap/fe/core/messagebundle_ca.properties +37 -6
  231. package/src/sap/fe/core/messagebundle_cs.properties +38 -7
  232. package/src/sap/fe/core/messagebundle_cy.properties +37 -6
  233. package/src/sap/fe/core/messagebundle_da.properties +37 -6
  234. package/src/sap/fe/core/messagebundle_de.properties +37 -6
  235. package/src/sap/fe/core/messagebundle_el.properties +37 -6
  236. package/src/sap/fe/core/messagebundle_en.properties +37 -6
  237. package/src/sap/fe/core/messagebundle_en_GB.properties +37 -6
  238. package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +37 -6
  239. package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +37 -6
  240. package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +37 -6
  241. package/src/sap/fe/core/messagebundle_es.properties +37 -6
  242. package/src/sap/fe/core/messagebundle_es_MX.properties +37 -6
  243. package/src/sap/fe/core/messagebundle_et.properties +37 -6
  244. package/src/sap/fe/core/messagebundle_fi.properties +38 -7
  245. package/src/sap/fe/core/messagebundle_fr.properties +43 -12
  246. package/src/sap/fe/core/messagebundle_fr_CA.properties +45 -14
  247. package/src/sap/fe/core/messagebundle_hi.properties +43 -12
  248. package/src/sap/fe/core/messagebundle_hr.properties +43 -12
  249. package/src/sap/fe/core/messagebundle_hu.properties +37 -6
  250. package/src/sap/fe/core/messagebundle_id.properties +38 -7
  251. package/src/sap/fe/core/messagebundle_it.properties +37 -6
  252. package/src/sap/fe/core/messagebundle_iw.properties +37 -6
  253. package/src/sap/fe/core/messagebundle_ja.properties +36 -5
  254. package/src/sap/fe/core/messagebundle_kk.properties +43 -12
  255. package/src/sap/fe/core/messagebundle_ko.properties +37 -6
  256. package/src/sap/fe/core/messagebundle_lt.properties +37 -6
  257. package/src/sap/fe/core/messagebundle_lv.properties +44 -13
  258. package/src/sap/fe/core/messagebundle_ms.properties +42 -11
  259. package/src/sap/fe/core/messagebundle_nl.properties +37 -6
  260. package/src/sap/fe/core/messagebundle_no.properties +37 -6
  261. package/src/sap/fe/core/messagebundle_pl.properties +37 -6
  262. package/src/sap/fe/core/messagebundle_pt.properties +38 -7
  263. package/src/sap/fe/core/messagebundle_pt_PT.properties +37 -6
  264. package/src/sap/fe/core/messagebundle_ro.properties +37 -6
  265. package/src/sap/fe/core/messagebundle_ru.properties +37 -6
  266. package/src/sap/fe/core/messagebundle_sh.properties +39 -8
  267. package/src/sap/fe/core/messagebundle_sk.properties +37 -6
  268. package/src/sap/fe/core/messagebundle_sl.properties +43 -12
  269. package/src/sap/fe/core/messagebundle_sv.properties +38 -7
  270. package/src/sap/fe/core/messagebundle_th.properties +36 -5
  271. package/src/sap/fe/core/messagebundle_tr.properties +39 -8
  272. package/src/sap/fe/core/messagebundle_uk.properties +37 -6
  273. package/src/sap/fe/core/messagebundle_vi.properties +37 -6
  274. package/src/sap/fe/core/messagebundle_zh_CN.properties +37 -6
  275. package/src/sap/fe/core/messagebundle_zh_TW.properties +43 -12
  276. package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +47 -73
  277. package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +3 -1
  278. package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +231 -202
  279. package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +211 -0
  280. package/src/sap/fe/core/services/EnvironmentServiceFactory.js +70 -96
  281. package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +10 -8
  282. package/src/sap/fe/core/services/NavigationServiceFactory.js +351 -300
  283. package/src/sap/fe/core/services/NavigationServiceFactory.ts +313 -0
  284. package/src/sap/fe/core/services/ResourceModelServiceFactory.js +114 -81
  285. package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +83 -0
  286. package/src/sap/fe/core/services/RoutingServiceFactory.js +963 -899
  287. package/src/sap/fe/core/services/RoutingServiceFactory.ts +907 -0
  288. package/src/sap/fe/core/services/ShellServicesFactory.js +694 -741
  289. package/src/sap/fe/core/services/ShellServicesFactory.ts +45 -40
  290. package/src/sap/fe/core/services/SideEffectsServiceFactory.js +572 -643
  291. package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +67 -96
  292. package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +429 -487
  293. package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +449 -0
  294. package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +48 -8
  295. package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.ts +11 -0
  296. package/src/sap/fe/core/support/AnnotationIssue.support.js +15 -3
  297. package/src/sap/fe/core/support/AnnotationIssue.support.ts +16 -2
  298. package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.js +2 -2
  299. package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.ts +1 -1
  300. package/src/sap/fe/core/support/CommonHelper.js +1 -1
  301. package/src/sap/fe/core/support/CommonHelper.ts +1 -4
  302. package/src/sap/fe/core/support/Diagnostics.js +36 -48
  303. package/src/sap/fe/core/templating/DataModelPathHelper.js +91 -90
  304. package/src/sap/fe/core/templating/DataModelPathHelper.ts +126 -123
  305. package/src/sap/fe/core/templating/DisplayModeFormatter.js +23 -3
  306. package/src/sap/fe/core/templating/DisplayModeFormatter.ts +26 -5
  307. package/src/sap/fe/core/templating/FieldControlHelper.js +8 -8
  308. package/src/sap/fe/core/templating/FieldControlHelper.ts +25 -7
  309. package/src/sap/fe/core/templating/FilterHelper.js +138 -79
  310. package/src/sap/fe/core/templating/FilterHelper.ts +148 -79
  311. package/src/sap/fe/core/templating/PropertyHelper.js +16 -2
  312. package/src/sap/fe/core/templating/PropertyHelper.ts +31 -24
  313. package/src/sap/fe/core/templating/UIFormatters.js +179 -43
  314. package/src/sap/fe/core/templating/UIFormatters.ts +190 -61
  315. package/src/sap/fe/core/type/Email.js +26 -8
  316. package/src/sap/fe/core/type/Email.ts +10 -11
  317. package/ui5.yaml +0 -3
  318. package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.js +0 -74
@@ -0,0 +1,278 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ import { aggregation, defineUI5Class, event, implementInterface, property } from "sap/fe/core/helpers/ClassSupport";
5
+ import SemanticDateOperators from "sap/fe/core/helpers/SemanticDateOperators";
6
+ import ManagedObjectObserver from "sap/ui/base/ManagedObjectObserver";
7
+ import Control from "sap/ui/core/Control";
8
+ import { IFormContent } from "sap/ui/core/library";
9
+ import RenderManager from "sap/ui/core/RenderManager";
10
+ import Condition, { ConditionObject } from "sap/ui/mdc/condition/Condition";
11
+ import ConditionValidated from "sap/ui/mdc/enum/ConditionValidated";
12
+ import ConditionsType from "sap/ui/mdc/field/ConditionsType";
13
+ import JSONModel from "sap/ui/model/json/JSONModel";
14
+
15
+ /**
16
+ * Type used for format options
17
+ *
18
+ * @typedef FormatOptionsType
19
+ */
20
+ type FormatOptionsType = {
21
+ operators: string[];
22
+ };
23
+
24
+ /**
25
+ * @class
26
+ * Creates an <code>sap.fe.core.controls.CustomFilterFieldContentWrapper</code> object.
27
+ * This is used in the {@link sap.ui.mdc.FilterField FilterField} as a filter content.
28
+ * @extends sap.ui.core.Control
29
+ * @private
30
+ * @alias sap.fe.core.controls.CustomFilterFieldContentWrapper
31
+ */
32
+ @defineUI5Class("sap.fe.core.controls.CustomFilterFieldContentWrapper")
33
+ export default class CustomFilterFieldContentWrapper extends Control implements IFormContent {
34
+ @implementInterface("sap.ui.core.IFormContent")
35
+ // eslint-disable-next-line camelcase
36
+ __implements__sap_ui_core_IFormContent = true;
37
+
38
+ @property({ type: "sap.ui.core.CSSSize", defaultValue: null })
39
+ width!: string;
40
+
41
+ @property({ type: "boolean", defaultValue: false })
42
+ formDoNotAdjustWidth!: boolean;
43
+
44
+ @property({ type: "object[]", defaultValue: [] })
45
+ conditions!: ConditionObject[];
46
+
47
+ @aggregation({ type: "sap.ui.core.Control", multiple: false, isDefault: true })
48
+ content!: Control;
49
+
50
+ @event()
51
+ conditionsChange!: Function;
52
+
53
+ // TODO: Consider using FieldBase as base control (instead of Control)
54
+ // TODO: If FieldBase is used, add 'change' event & corresponding handler to bubble it
55
+
56
+ private _filterModel: any;
57
+ private _conditionsObserver: any;
58
+ private static readonly FILTER_MODEL_ALIAS = "filterValues";
59
+
60
+ static render(renderManager: RenderManager, control: CustomFilterFieldContentWrapper): void {
61
+ renderManager.openStart("div", control);
62
+ renderManager.style("min-height", "1rem");
63
+ renderManager.style("width", control.width);
64
+ renderManager.openEnd();
65
+ renderManager.renderControl(control.getContent()); // render the child Control
66
+ renderManager.close("div"); // end of the complete Control
67
+ }
68
+
69
+ /**
70
+ * Maps an array of filter values to an array of conditions.
71
+ *
72
+ * @param {Array | string} filterValues Array of filter value bindings or a filter value string
73
+ * @param {string} [operator] The operator to be used (optional) - if not set, the default operator (EQ) will be used
74
+ * @private
75
+ * @returns {Array} Array of filter conditions
76
+ */
77
+ static _filterValuesToConditions(filterValues: any | any[], operator?: string): ConditionObject[] {
78
+ let formatOptions: FormatOptionsType = { operators: [] },
79
+ conditions = [];
80
+
81
+ if (operator) {
82
+ formatOptions = { operators: [operator] };
83
+ }
84
+ if (filterValues === "") {
85
+ filterValues = [];
86
+ } else if (typeof filterValues === "object" && filterValues.hasOwnProperty("operator") && filterValues.hasOwnProperty("values")) {
87
+ formatOptions = { operators: [filterValues.operator] };
88
+ filterValues = filterValues.values;
89
+ } else if (filterValues !== undefined && typeof filterValues !== "object" && typeof filterValues !== "string") {
90
+ throw new Error("FilterUtils.js#_filterValuesToConditions: Unexpected type of input parameter vValues: " + typeof filterValues);
91
+ }
92
+
93
+ const conditionsType: any = new ConditionsType(formatOptions);
94
+ const conditionValues = Array.isArray(filterValues) ? filterValues : [filterValues];
95
+
96
+ // Shortcut for operator without values and semantic date operations
97
+ if (
98
+ typeof operator === "string" &&
99
+ (conditionValues.length === 0 || SemanticDateOperators.getSemanticDateOperations().includes(operator))
100
+ ) {
101
+ conditions = [Condition.createCondition(operator, conditionValues, null, null, ConditionValidated.NotValidated)];
102
+ } else {
103
+ conditions = conditionValues
104
+ .map((conditionValue) => {
105
+ const stringValue = conditionValue?.toString(),
106
+ parsedConditions = conditionsType.parseValue(stringValue, "any");
107
+ return parsedConditions?.[0];
108
+ })
109
+ .filter((conditionValue) => conditionValue !== undefined);
110
+ }
111
+
112
+ return conditions;
113
+ }
114
+
115
+ /**
116
+ * Maps an array of conditions to a comma separated list of filter values.
117
+ *
118
+ * @param {object[]} conditions Array of filter conditions
119
+ * @param {object} formatOptions Format options that specifies a condition type
120
+ * @private
121
+ * @returns {string} Concatenated string of filter values
122
+ */
123
+ static _conditionsToFilterModelString(conditions: object[], formatOptions: FormatOptionsType): string {
124
+ const conditionsType = new ConditionsType(formatOptions);
125
+
126
+ return conditions
127
+ .map((condition) => {
128
+ return conditionsType.formatValue([condition], "any") || "";
129
+ })
130
+ .filter((stringValue) => {
131
+ return stringValue !== "";
132
+ })
133
+ .join(",");
134
+ }
135
+
136
+ /**
137
+ * Listens to filter model changes and updates wrapper property "conditions".
138
+ *
139
+ * @param {object} changeEvent Event triggered by a filter model change
140
+ * @private
141
+ */
142
+ _handleFilterModelChange(changeEvent: any): void {
143
+ const propertyPath = this.getObjectBinding("filterValues").getPath(),
144
+ values = changeEvent.getSource().getProperty(propertyPath);
145
+ this.updateConditionsByFilterValues(values, "");
146
+ }
147
+
148
+ /**
149
+ * Listens to "conditions" changes and updates the filter model.
150
+ *
151
+ * @param {object} conditions Event triggered by a "conditions" change
152
+ * @private
153
+ */
154
+ _handleConditionsChange(conditions: any): void {
155
+ this.updateFilterModelByConditions(conditions);
156
+ }
157
+
158
+ /**
159
+ * Initialize CustomFilterFieldContentWrapper control and register observer.
160
+ */
161
+ init(): void {
162
+ super.init();
163
+ this._conditionsObserver = new ManagedObjectObserver(this._observeChanges.bind(this));
164
+ this._conditionsObserver.observe(this, {
165
+ properties: ["conditions"]
166
+ });
167
+ }
168
+
169
+ /**
170
+ * Listens to property changes.
171
+ *
172
+ * @param {any} changes Property changes
173
+ * @private
174
+ */
175
+ _observeChanges(changes: any): void {
176
+ if (changes.name === "conditions") {
177
+ this._handleConditionsChange(changes.current);
178
+ }
179
+ }
180
+
181
+ /**
182
+ * Registers the internal filter model (alias 'filterValues').
183
+ *
184
+ * @private
185
+ */
186
+ _registerFilterModel(): void {
187
+ if (!this._filterModel) {
188
+ this._filterModel = new JSONModel();
189
+ this._filterModel.attachPropertyChange(this._handleFilterModelChange, this);
190
+ this.setModel(this._filterModel, CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS);
191
+ }
192
+ }
193
+
194
+ /**
195
+ * Gets the content of this wrapper control.
196
+ *
197
+ * @returns {sap.ui.core.Control} The wrapper content
198
+ * @private
199
+ */
200
+ getContent(): Control {
201
+ this._registerFilterModel();
202
+ return this.getAggregation("content") as Control;
203
+ }
204
+
205
+ /**
206
+ * Gets the value for control property 'conditions'.
207
+ *
208
+ * @returns {object[]} Array of filter conditions
209
+ * @private
210
+ */
211
+ getConditions(): object[] {
212
+ return this.getProperty("conditions");
213
+ }
214
+
215
+ /**
216
+ * Sets the value for control property 'conditions'.
217
+ *
218
+ * @param {Array} conditions Array of filter conditions
219
+ * @private
220
+ */
221
+ setConditions(conditions: object[]): void {
222
+ this.setProperty("conditions", conditions);
223
+ }
224
+
225
+ /**
226
+ * Gets the filter model alias 'filterValues'.
227
+ *
228
+ * @returns {string} The filter model
229
+ * @private
230
+ */
231
+ getFilterModelAlias(): string {
232
+ return CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS;
233
+ }
234
+
235
+ /**
236
+ * Updates the property "conditions" with filter values
237
+ * sent by ExtensionAPI#setFilterValues().
238
+ *
239
+ * @param {any} values The filter values
240
+ * @param {string} operator The operator name
241
+ * @private
242
+ */
243
+ updateConditionsByFilterValues(values: any, operator: string): void {
244
+ const conditions = CustomFilterFieldContentWrapper._filterValuesToConditions(values, operator);
245
+ this.setConditions(conditions);
246
+ }
247
+
248
+ /**
249
+ * Updates filter model with conditions
250
+ * sent by the {@link sap.ui.mdc.FilterField FilterField}.
251
+ *
252
+ * @param {Array} conditions Array of filter conditions
253
+ * @private
254
+ */
255
+ updateFilterModelByConditions(conditions: any[]): void {
256
+ // When the filter field is created via "Adapt Filter"
257
+ // this handler is fired before the filter model is created
258
+ // -> in general, create it, if needed!
259
+ // TODO: Consider using method Control#clone() to register filter model
260
+ this._registerFilterModel();
261
+ const operator = conditions[0]?.operator || "";
262
+ const formatOptions: FormatOptionsType = operator !== "" ? { operators: [operator] } : { operators: [] };
263
+ if (this.getBindingContext(CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS)) {
264
+ const stringValue = CustomFilterFieldContentWrapper._conditionsToFilterModelString(conditions, formatOptions);
265
+ this._filterModel.setProperty(
266
+ this.getBindingContext(CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS)?.getPath(),
267
+ stringValue
268
+ );
269
+ }
270
+ }
271
+
272
+ // TODO: Check, if implementation of _setAriaLabelledBy() is needed ?
273
+
274
+ getAccessibilityInfo(): any {
275
+ const content = this.getContent();
276
+ return content?.getAccessibilityInfo?.() || {};
277
+ }
278
+ }
@@ -1,127 +1,170 @@
1
1
  /*!
2
- * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+ * (c) Copyright 2009-2021 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(
6
- ["sap/m/QuickViewPage", "sap/m/Button", "sap/fe/core/CommonUtils", "sap/fe/macros/DelegateUtil", "sap/fe/core/helpers/KeepAliveHelper"],
7
- function(QuickViewPage, Button, CommonUtils, DelegateUtil, KeepAliveHelper) {
8
- "use strict";
9
-
10
- return QuickViewPage.extend("sap.fe.core.controls.CustomQuickViewPage", {
11
- metadata: {
12
- defaultAggregation: "groups",
13
- aggregations: {
14
- customContent: {
15
- type: "sap.ui.core.Control",
16
- multiple: true,
17
- bindable: "bindable"
18
- },
19
- groups: { type: "sap.m.QuickViewGroup", multiple: true, singularName: "group", bindable: "bindable" }
20
- },
21
- publicMethods: []
22
- },
23
- renderer: {},
24
- onAfterRendering: function() {
25
- QuickViewPage.prototype.onAfterRendering.apply(this, arguments);
26
- },
27
- onBeforeRendering: function() {
28
- if (
29
- this.getParent() &&
30
- this.getParent().isA("sap.fe.core.controls.ConditionalWrapper") &&
31
- this.getParent().getProperty("condition") === true
32
- ) {
33
- this.setCrossAppNavCallback(
34
- function() {
35
- var sQuickViewPageTitleLinkHref = DelegateUtil.getCustomData(this, "titleLink");
36
- var oView = sap.ui.fl.Utils.getViewForControl(this);
37
- var oAppComponent = CommonUtils.getAppComponent(oView);
38
- var oShellServiceHelper = oAppComponent.getShellServices();
39
- var oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkHref);
40
- var oNavArgs = {
41
- target: {
42
- semanticObject: oShellHash.semanticObject,
43
- action: oShellHash.action
44
- },
45
- params: oShellHash.params
46
- };
47
- var sQuickViewPageTitleLinkIntent = oNavArgs.target.semanticObject + "-" + oNavArgs.target.action;
48
-
49
- if (
50
- sQuickViewPageTitleLinkIntent &&
51
- this.oCrossAppNavigator &&
52
- this.oCrossAppNavigator.isNavigationSupported([sQuickViewPageTitleLinkIntent])
53
- ) {
54
- if (sQuickViewPageTitleLinkIntent && sQuickViewPageTitleLinkIntent !== "") {
55
- if (typeof sQuickViewPageTitleLinkIntent === "string" && sQuickViewPageTitleLinkIntent !== "") {
56
- var sTargetHref;
57
- var oLinkControl = this.getParent();
58
- while (oLinkControl && !oLinkControl.isA("sap.ui.mdc.Link")) {
59
- oLinkControl = oLinkControl.getParent();
60
- }
61
- var _aLinks = oLinkControl.getModel("$sapuimdcLink").getProperty("/linkItems");
62
- if (_aLinks) {
63
- if (_aLinks.length > 0) {
64
- for (var i = 0; i < _aLinks.length; i++) {
65
- if (_aLinks[i].key === sQuickViewPageTitleLinkIntent) {
66
- sTargetHref = _aLinks[i].href;
67
- break;
68
- }
69
- }
70
- if (sTargetHref) {
71
- oShellHash = oShellServiceHelper.parseShellHash(sTargetHref);
72
- } else {
73
- oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkIntent);
74
- }
75
- }
76
- } else {
77
- oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkIntent);
78
- }
79
- KeepAliveHelper.storeControlRefreshStrategyForHash(oView, oShellHash);
80
- return {
81
- target: {
82
- semanticObject: oShellHash.semanticObject,
83
- action: oShellHash.action
84
- },
85
- params: oShellHash.params
86
- };
87
- }
88
- }
89
- } else {
90
- var oCurrentShellHash = oShellServiceHelper.parseShellHash(window.location.hash);
91
- KeepAliveHelper.storeControlRefreshStrategyForHash(oView, oCurrentShellHash);
92
-
93
- return {
94
- target: {
95
- semanticObject: oCurrentShellHash.semanticObject,
96
- action: oCurrentShellHash.action,
97
- appSpecificRoute: oCurrentShellHash.appSpecificRoute
98
- },
99
- params: oCurrentShellHash.params
100
- };
101
- }
102
- }.bind(this)
103
- );
104
- }
105
- QuickViewPage.prototype.onBeforeRendering.apply(this, arguments);
106
- var oPageContent = this.getPageContent();
107
- var oForm = oPageContent.form;
108
- if (oForm) {
109
- var _aContent = this.getAggregation("customContent");
110
- if (_aContent && _aContent.length > 0) {
111
- _aContent.forEach(
112
- function(_oContent) {
113
- var _oContentClone = _oContent.clone();
114
- _oContentClone.setModel(this.getModel());
115
- _oContentClone.setBindingContext(this.getBindingContext());
116
- oForm.addContent(_oContentClone);
117
- }.bind(this)
118
- );
119
- setTimeout(function() {
120
- oForm.rerender();
121
- }, 0);
122
- }
123
- }
124
- }
125
- });
126
- }
127
- );
5
+ sap.ui.define(["sap/fe/core/CommonUtils", "sap/fe/core/helpers/ClassSupport", "sap/fe/core/helpers/KeepAliveHelper", "sap/fe/macros/DelegateUtil", "sap/m/QuickViewPage"], function (CommonUtils, ClassSupport, KeepAliveHelper, DelegateUtil, QuickViewPage) {
6
+ "use strict";
7
+
8
+ var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
9
+
10
+ var defineUI5Class = ClassSupport.defineUI5Class;
11
+ var aggregation = ClassSupport.aggregation;
12
+
13
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
14
+
15
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+
17
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
18
+
19
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
+
21
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
22
+
23
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
24
+
25
+ var CustomQuickViewPage = (_dec = defineUI5Class("sap.fe.core.controls.CustomQuickViewPage"), _dec2 = aggregation({
26
+ type: "sap.ui.core.Control",
27
+ multiple: true
28
+ }), _dec3 = aggregation({
29
+ type: "sap.m.QuickViewGroup",
30
+ multiple: true,
31
+ singularName: "group",
32
+ isDefault: true
33
+ }), _dec(_class = (_class2 = /*#__PURE__*/function (_QuickViewPage) {
34
+ _inheritsLoose(CustomQuickViewPage, _QuickViewPage);
35
+
36
+ function CustomQuickViewPage() {
37
+ var _this;
38
+
39
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40
+ args[_key] = arguments[_key];
41
+ }
42
+
43
+ _this = _QuickViewPage.call.apply(_QuickViewPage, [this].concat(args)) || this;
44
+
45
+ _initializerDefineProperty(_this, "customContent", _descriptor, _assertThisInitialized(_this));
46
+
47
+ _initializerDefineProperty(_this, "groups", _descriptor2, _assertThisInitialized(_this));
48
+
49
+ return _this;
50
+ }
51
+
52
+ var _proto = CustomQuickViewPage.prototype;
53
+
54
+ _proto.onBeforeRendering = function onBeforeRendering(oEvent) {
55
+ var _this2 = this;
56
+
57
+ if (this.getParent() && this.getParent().isA("sap.fe.core.controls.ConditionalWrapper") && this.getParent().getProperty("condition") === true) {
58
+ this.setCrossAppNavCallback(function () {
59
+ var sQuickViewPageTitleLinkHref = DelegateUtil.getCustomData(_this2, "titleLink");
60
+ var oView = CommonUtils.getTargetView(_this2);
61
+ var oAppComponent = CommonUtils.getAppComponent(oView);
62
+ var oShellServiceHelper = oAppComponent.getShellServices();
63
+ var oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkHref);
64
+ var oNavArgs = {
65
+ target: {
66
+ semanticObject: oShellHash.semanticObject,
67
+ action: oShellHash.action
68
+ },
69
+ params: oShellHash.params
70
+ };
71
+ var sQuickViewPageTitleLinkIntent = oNavArgs.target.semanticObject + "-" + oNavArgs.target.action;
72
+
73
+ if (sQuickViewPageTitleLinkIntent && _this2.oCrossAppNavigator && _this2.oCrossAppNavigator.isNavigationSupported([sQuickViewPageTitleLinkIntent])) {
74
+ if (sQuickViewPageTitleLinkIntent && sQuickViewPageTitleLinkIntent !== "") {
75
+ if (typeof sQuickViewPageTitleLinkIntent === "string" && sQuickViewPageTitleLinkIntent !== "") {
76
+ var sTargetHref;
77
+
78
+ var oLinkControl = _this2.getParent();
79
+
80
+ while (oLinkControl && !oLinkControl.isA("sap.ui.mdc.Link")) {
81
+ oLinkControl = oLinkControl.getParent();
82
+ }
83
+
84
+ var _aLinks = oLinkControl.getModel("$sapuimdcLink").getProperty("/linkItems");
85
+
86
+ if (_aLinks) {
87
+ if (_aLinks.length > 0) {
88
+ for (var i = 0; i < _aLinks.length; i++) {
89
+ if (_aLinks[i].key === sQuickViewPageTitleLinkIntent) {
90
+ sTargetHref = _aLinks[i].href;
91
+ break;
92
+ }
93
+ }
94
+
95
+ if (sTargetHref) {
96
+ oShellHash = oShellServiceHelper.parseShellHash(sTargetHref);
97
+ } else {
98
+ oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkIntent);
99
+ }
100
+ }
101
+ } else {
102
+ oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkIntent);
103
+ }
104
+
105
+ KeepAliveHelper.storeControlRefreshStrategyForHash(oView, oShellHash);
106
+ return {
107
+ target: {
108
+ semanticObject: oShellHash.semanticObject,
109
+ action: oShellHash.action
110
+ },
111
+ params: oShellHash.params
112
+ };
113
+ }
114
+ }
115
+ } else {
116
+ var oCurrentShellHash = oShellServiceHelper.parseShellHash(window.location.hash);
117
+ KeepAliveHelper.storeControlRefreshStrategyForHash(oView, oCurrentShellHash);
118
+ return {
119
+ target: {
120
+ semanticObject: oCurrentShellHash.semanticObject,
121
+ action: oCurrentShellHash.action,
122
+ appSpecificRoute: oCurrentShellHash.appSpecificRoute
123
+ },
124
+ params: oCurrentShellHash.params
125
+ };
126
+ }
127
+ });
128
+ }
129
+
130
+ _QuickViewPage.prototype.onBeforeRendering.call(this, oEvent);
131
+
132
+ var oPageContent = this.getPageContent();
133
+ var oForm = oPageContent.form;
134
+
135
+ if (oForm) {
136
+ var _aContent = this.customContent;
137
+
138
+ if (_aContent && _aContent.length > 0) {
139
+ _aContent.forEach(function (_oContent) {
140
+ var _oContentClone = _oContent.clone();
141
+
142
+ _oContentClone.setModel(_this2.getModel());
143
+
144
+ _oContentClone.setBindingContext(_this2.getBindingContext());
145
+
146
+ oForm.addContent(_oContentClone);
147
+ });
148
+
149
+ setTimeout(function () {
150
+ oForm.rerender();
151
+ }, 0);
152
+ }
153
+ }
154
+ };
155
+
156
+ return CustomQuickViewPage;
157
+ }(QuickViewPage), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "customContent", [_dec2], {
158
+ configurable: true,
159
+ enumerable: true,
160
+ writable: true,
161
+ initializer: null
162
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "groups", [_dec3], {
163
+ configurable: true,
164
+ enumerable: true,
165
+ writable: true,
166
+ initializer: null
167
+ })), _class2)) || _class);
168
+ return CustomQuickViewPage;
169
+ }, false);
170
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkN1c3RvbVF1aWNrVmlld1BhZ2UudHMiXSwibmFtZXMiOlsiQ3VzdG9tUXVpY2tWaWV3UGFnZSIsImRlZmluZVVJNUNsYXNzIiwiYWdncmVnYXRpb24iLCJ0eXBlIiwibXVsdGlwbGUiLCJzaW5ndWxhck5hbWUiLCJpc0RlZmF1bHQiLCJvbkJlZm9yZVJlbmRlcmluZyIsIm9FdmVudCIsImdldFBhcmVudCIsImlzQSIsImdldFByb3BlcnR5Iiwic2V0Q3Jvc3NBcHBOYXZDYWxsYmFjayIsInNRdWlja1ZpZXdQYWdlVGl0bGVMaW5rSHJlZiIsIkRlbGVnYXRlVXRpbCIsImdldEN1c3RvbURhdGEiLCJvVmlldyIsIkNvbW1vblV0aWxzIiwiZ2V0VGFyZ2V0VmlldyIsIm9BcHBDb21wb25lbnQiLCJnZXRBcHBDb21wb25lbnQiLCJvU2hlbGxTZXJ2aWNlSGVscGVyIiwiZ2V0U2hlbGxTZXJ2aWNlcyIsIm9TaGVsbEhhc2giLCJwYXJzZVNoZWxsSGFzaCIsIm9OYXZBcmdzIiwidGFyZ2V0Iiwic2VtYW50aWNPYmplY3QiLCJhY3Rpb24iLCJwYXJhbXMiLCJzUXVpY2tWaWV3UGFnZVRpdGxlTGlua0ludGVudCIsIm9Dcm9zc0FwcE5hdmlnYXRvciIsImlzTmF2aWdhdGlvblN1cHBvcnRlZCI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