@openui5/sap.ui.rta 1.108.2 → 1.110.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 (253) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +2 -2
  5. package/src/sap/ui/rta/Client.js +2 -2
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +240 -191
  7. package/src/sap/ui/rta/Utils.js +40 -19
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -1
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  12. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
  13. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  14. package/src/sap/ui/rta/appVariant/Feature.js +2 -8
  15. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
  16. package/src/sap/ui/rta/appVariant/Utils.js +1 -1
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
  21. package/src/sap/ui/rta/command/AddIFrame.js +2 -2
  22. package/src/sap/ui/rta/command/AddProperty.js +2 -2
  23. package/src/sap/ui/rta/command/AddXML.js +3 -3
  24. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -3
  25. package/src/sap/ui/rta/command/AppDescriptorCommand.js +3 -3
  26. package/src/sap/ui/rta/command/BaseCommand.js +2 -2
  27. package/src/sap/ui/rta/command/BindProperty.js +2 -2
  28. package/src/sap/ui/rta/command/Combine.js +2 -2
  29. package/src/sap/ui/rta/command/CommandFactory.js +2 -2
  30. package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
  31. package/src/sap/ui/rta/command/ControlVariantConfigure.js +5 -3
  32. package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
  33. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +15 -15
  34. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +11 -4
  35. package/src/sap/ui/rta/command/ControlVariantSwitch.js +42 -10
  36. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  37. package/src/sap/ui/rta/command/CustomAdd.js +2 -2
  38. package/src/sap/ui/rta/command/FlexCommand.js +18 -16
  39. package/src/sap/ui/rta/command/LREPSerializer.js +27 -17
  40. package/src/sap/ui/rta/command/LocalReset.js +2 -2
  41. package/src/sap/ui/rta/command/Move.js +2 -2
  42. package/src/sap/ui/rta/command/Property.js +2 -2
  43. package/src/sap/ui/rta/command/Remove.js +2 -2
  44. package/src/sap/ui/rta/command/Rename.js +2 -2
  45. package/src/sap/ui/rta/command/Resize.js +2 -2
  46. package/src/sap/ui/rta/command/Reveal.js +2 -2
  47. package/src/sap/ui/rta/command/Settings.js +2 -2
  48. package/src/sap/ui/rta/command/Split.js +2 -2
  49. package/src/sap/ui/rta/command/Stack.js +11 -3
  50. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
  51. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -3
  52. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
  53. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +28 -6
  54. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
  55. package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
  56. package/src/sap/ui/rta/enablement/elementActionTest.js +28 -19
  57. package/src/sap/ui/rta/library.js +3 -3
  58. package/src/sap/ui/rta/messagebundle.properties +65 -17
  59. package/src/sap/ui/rta/messagebundle_ar.properties +32 -8
  60. package/src/sap/ui/rta/messagebundle_bg.properties +32 -8
  61. package/src/sap/ui/rta/messagebundle_ca.properties +32 -8
  62. package/src/sap/ui/rta/messagebundle_cs.properties +32 -8
  63. package/src/sap/ui/rta/messagebundle_cy.properties +31 -7
  64. package/src/sap/ui/rta/messagebundle_da.properties +31 -7
  65. package/src/sap/ui/rta/messagebundle_de.properties +31 -7
  66. package/src/sap/ui/rta/messagebundle_el.properties +31 -7
  67. package/src/sap/ui/rta/messagebundle_en.properties +31 -7
  68. package/src/sap/ui/rta/messagebundle_en_GB.properties +32 -8
  69. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +31 -7
  70. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +31 -7
  71. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +31 -7
  72. package/src/sap/ui/rta/messagebundle_es.properties +31 -7
  73. package/src/sap/ui/rta/messagebundle_es_MX.properties +31 -7
  74. package/src/sap/ui/rta/messagebundle_et.properties +31 -7
  75. package/src/sap/ui/rta/messagebundle_fi.properties +31 -7
  76. package/src/sap/ui/rta/messagebundle_fr.properties +31 -7
  77. package/src/sap/ui/rta/messagebundle_fr_CA.properties +32 -8
  78. package/src/sap/ui/rta/messagebundle_hi.properties +32 -8
  79. package/src/sap/ui/rta/messagebundle_hr.properties +32 -8
  80. package/src/sap/ui/rta/messagebundle_hu.properties +31 -7
  81. package/src/sap/ui/rta/messagebundle_id.properties +32 -8
  82. package/src/sap/ui/rta/messagebundle_it.properties +32 -8
  83. package/src/sap/ui/rta/messagebundle_iw.properties +31 -7
  84. package/src/sap/ui/rta/messagebundle_ja.properties +32 -8
  85. package/src/sap/ui/rta/messagebundle_kk.properties +31 -7
  86. package/src/sap/ui/rta/messagebundle_ko.properties +31 -7
  87. package/src/sap/ui/rta/messagebundle_lt.properties +31 -7
  88. package/src/sap/ui/rta/messagebundle_lv.properties +32 -8
  89. package/src/sap/ui/rta/messagebundle_ms.properties +32 -8
  90. package/src/sap/ui/rta/messagebundle_nl.properties +31 -7
  91. package/src/sap/ui/rta/messagebundle_no.properties +32 -8
  92. package/src/sap/ui/rta/messagebundle_pl.properties +32 -8
  93. package/src/sap/ui/rta/messagebundle_pt.properties +32 -8
  94. package/src/sap/ui/rta/messagebundle_pt_PT.properties +31 -7
  95. package/src/sap/ui/rta/messagebundle_ro.properties +32 -8
  96. package/src/sap/ui/rta/messagebundle_ru.properties +32 -8
  97. package/src/sap/ui/rta/messagebundle_sh.properties +31 -7
  98. package/src/sap/ui/rta/messagebundle_sk.properties +31 -7
  99. package/src/sap/ui/rta/messagebundle_sl.properties +31 -7
  100. package/src/sap/ui/rta/messagebundle_sv.properties +32 -8
  101. package/src/sap/ui/rta/messagebundle_th.properties +33 -9
  102. package/src/sap/ui/rta/messagebundle_tr.properties +31 -7
  103. package/src/sap/ui/rta/messagebundle_uk.properties +31 -7
  104. package/src/sap/ui/rta/messagebundle_vi.properties +32 -8
  105. package/src/sap/ui/rta/messagebundle_zh_CN.properties +32 -8
  106. package/src/sap/ui/rta/messagebundle_zh_TW.properties +32 -8
  107. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
  108. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  109. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  110. package/src/sap/ui/rta/plugin/CompVariant.js +107 -29
  111. package/src/sap/ui/rta/plugin/ControlVariant.js +118 -50
  112. package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
  113. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  114. package/src/sap/ui/rta/plugin/DragDrop.js +4 -4
  115. package/src/sap/ui/rta/plugin/EasyAdd.js +30 -21
  116. package/src/sap/ui/rta/plugin/EasyRemove.js +13 -11
  117. package/src/sap/ui/rta/plugin/LocalReset.js +6 -4
  118. package/src/sap/ui/rta/plugin/Plugin.js +50 -13
  119. package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
  120. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  121. package/src/sap/ui/rta/plugin/Rename.js +2 -2
  122. package/src/sap/ui/rta/plugin/RenameHandler.js +29 -19
  123. package/src/sap/ui/rta/plugin/Resize.js +2 -2
  124. package/src/sap/ui/rta/plugin/Selection.js +7 -14
  125. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  126. package/src/sap/ui/rta/plugin/Split.js +2 -2
  127. package/src/sap/ui/rta/plugin/Stretch.js +17 -16
  128. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +28 -7
  129. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +1 -0
  130. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
  131. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
  132. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -5
  133. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
  134. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
  135. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
  136. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +7 -2
  137. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  138. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -4
  139. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  140. package/src/sap/ui/rta/service/Action.js +2 -2
  141. package/src/sap/ui/rta/service/ControllerExtension.js +3 -3
  142. package/src/sap/ui/rta/service/Outline.js +2 -2
  143. package/src/sap/ui/rta/service/Property.js +2 -2
  144. package/src/sap/ui/rta/service/Receiver.js +1 -1
  145. package/src/sap/ui/rta/service/Selection.js +2 -2
  146. package/src/sap/ui/rta/service/SupportTools.js +2 -2
  147. package/src/sap/ui/rta/service/index.js +1 -1
  148. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +26 -9
  149. package/src/sap/ui/rta/themes/base/library.source.less +1 -1
  150. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
  151. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +82 -0
  152. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +35 -90
  153. package/src/sap/ui/rta/toolbar/Adaptation.js +83 -27
  154. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  155. package/src/sap/ui/rta/toolbar/Base.js +4 -4
  156. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
  157. package/src/sap/ui/rta/toolbar/Fiori.js +11 -10
  158. package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
  159. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
  160. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  161. package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
  162. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +263 -0
  163. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +149 -0
  164. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +185 -0
  165. package/src/sap/ui/rta/toolbar/contextBased/{SaveAsContextBasedAdaptationDialog.fragment.xml → SaveAsAdaptationDialog.fragment.xml} +19 -15
  166. package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
  167. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +4 -4
  168. package/src/sap/ui/rta/util/Animation.js +5 -9
  169. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  170. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  171. package/src/sap/ui/rta/util/PopupManager.js +2 -2
  172. package/src/sap/ui/rta/util/ReloadManager.js +2 -2
  173. package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
  174. package/src/sap/ui/rta/util/StylesLoader.js +1 -1
  175. package/src/sap/ui/rta/util/UrlParser.js +1 -1
  176. package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
  177. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
  178. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +4 -3
  179. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +11 -10
  180. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +1 -0
  181. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +28 -4
  182. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -2
  183. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +110 -72
  184. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
  185. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
  186. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  187. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
  188. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
  189. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  190. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
  191. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  192. package/src/sap/ui/rta/util/showMessageBox.js +1 -1
  193. package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
  194. package/src/sap/ui/rta/util/validateStableIds.js +1 -1
  195. package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +0 -76
  196. package/src/sap/ui/rta/appContexts/Component.js +0 -31
  197. package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +0 -323
  198. package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +0 -22
  199. package/src/sap/ui/rta/appContexts/i18n/i18n.properties +0 -47
  200. package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +0 -23
  201. package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +0 -23
  202. package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +0 -23
  203. package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +0 -23
  204. package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +0 -23
  205. package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +0 -23
  206. package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +0 -23
  207. package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +0 -23
  208. package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +0 -23
  209. package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +0 -23
  210. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +0 -23
  211. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +0 -23
  212. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +0 -23
  213. package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +0 -23
  214. package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +0 -23
  215. package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +0 -23
  216. package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +0 -23
  217. package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +0 -23
  218. package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +0 -23
  219. package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +0 -23
  220. package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +0 -23
  221. package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +0 -23
  222. package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +0 -23
  223. package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +0 -23
  224. package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +0 -23
  225. package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +0 -23
  226. package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +0 -23
  227. package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +0 -23
  228. package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +0 -23
  229. package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +0 -23
  230. package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +0 -23
  231. package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +0 -23
  232. package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +0 -23
  233. package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +0 -23
  234. package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +0 -23
  235. package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +0 -23
  236. package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +0 -23
  237. package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +0 -23
  238. package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +0 -23
  239. package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +0 -23
  240. package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +0 -23
  241. package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +0 -23
  242. package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +0 -23
  243. package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +0 -23
  244. package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +0 -23
  245. package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +0 -23
  246. package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +0 -23
  247. package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +0 -23
  248. package/src/sap/ui/rta/appContexts/index.html +0 -25
  249. package/src/sap/ui/rta/appContexts/manifest.json +0 -52
  250. package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +0 -76
  251. package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +0 -103
  252. package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +0 -76
  253. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +0 -124
@@ -4,20 +4,21 @@
4
4
  xmlns:l="sap.ui.layout">
5
5
  <Popover
6
6
  showHeader="false"
7
- placement="Bottom">
7
+ placement="Bottom"
8
+ id="popover">
8
9
  <SegmentedButton selectedKey="satellite" width="420px" selectionChange=".onVersioningCategoryChange">
9
10
  <items>
10
- <SegmentedButtonItem
11
- text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_ALL}"
11
+ <SegmentedButtonItem
12
+ text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_ALL}"
12
13
  key="all"/>
13
- <SegmentedButtonItem
14
- text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_DRAFT}"
15
- key="draft"
16
- visible="{visualizationModel>/versioningAvailable}"
14
+ <SegmentedButtonItem
15
+ text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_DRAFT}"
16
+ key="draft"
17
+ visible="{visualizationModel>/versioningAvailable}"
17
18
  enabled="{= ${visualizationModel>/hasDraftChanges} || ${visualizationModel>/hasDirtyChanges}}"/>
18
- <SegmentedButtonItem
19
+ <SegmentedButtonItem
19
20
  text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_DIRTY}"
20
- key="dirty"
21
+ key="dirty"
21
22
  enabled="{visualizationModel>/hasDirtyChanges}"/>
22
23
  </items>
23
24
  </SegmentedButton>
@@ -25,7 +26,7 @@
25
26
  text="{visualizationModel>/popupInfoMessage}"
26
27
  type="Information"
27
28
  showIcon="true"
28
- visible="{= ${visualizationModel>/hiddenChanges}.length > 0 }">
29
+ visible="{= ${visualizationModel>/sortedChanges/relevantHiddenChanges}.length > 0 }">
29
30
  <link>
30
31
  <Link text="{i18n>BUT_CHANGEVISUALIZATION_LEARNMORE}"
31
32
  target="_blank"
@@ -5,6 +5,7 @@
5
5
  <Popover
6
6
  showHeader="false"
7
7
  placement="PreferredTopOrFlip"
8
+ id="popover"
8
9
  class="sapUiRtaPopover sapUiRtaChangeVisualizationPopover">
9
10
  <Table
10
11
  ariaLabelledBy="Changes"
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
40
40
  * @author SAP SE
41
41
  * @since 1.86.0
42
- * @version 1.108.2
42
+ * @version 1.110.0
43
43
  * @private
44
44
  */
45
45
  var ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
@@ -145,6 +145,18 @@ sap.ui.define([
145
145
  return oChangeIndicators;
146
146
  };
147
147
 
148
+ ChangeIndicatorRegistry.prototype.getRelevantChangesWithSelector = function () {
149
+ var oSelectors = this.getSelectorsWithRegisteredChanges();
150
+ var aRelevantChanges = [];
151
+ Object.keys(oSelectors).forEach(function(sSelectorId) {
152
+ var aRelevantChangesForSelector = oSelectors[sSelectorId].filter(function (oChange) {
153
+ return !oChange.dependent;
154
+ });
155
+ aRelevantChanges = aRelevantChanges.concat(aRelevantChangesForSelector);
156
+ });
157
+ return aRelevantChanges;
158
+ };
159
+
148
160
  /**
149
161
  * Returns the registered change indicator for the given element ID.
150
162
  *
@@ -195,8 +207,8 @@ sap.ui.define([
195
207
  }
196
208
 
197
209
  if (oChange.getState() === "NEW") {
198
- aChangeStates = [ChangeStates.DIRTY, ChangeStates.DRAFT];
199
- } else if (aDraftChangesList && aDraftChangesList.includes(oChange.getFileName())) {
210
+ aChangeStates = ChangeStates.getDraftAndDirtyStates();
211
+ } else if (aDraftChangesList && aDraftChangesList.includes(oChange.getId())) {
200
212
  aChangeStates = [ChangeStates.DRAFT];
201
213
  } else {
202
214
  aChangeStates = [ChangeStates.ACTIVATED];
@@ -311,5 +323,17 @@ sap.ui.define([
311
323
  }.bind(this));
312
324
  };
313
325
 
326
+ /**
327
+ * Removes changes without any displayElementIds from the registry so the change can be re-registered and
328
+ * the visualizationInfo is updated => if an element is inside a dialog which hasnt been opened yet
329
+ */
330
+ ChangeIndicatorRegistry.prototype.removeRegisteredChangesWithoutVizInfo = function () {
331
+ this.getAllRegisteredChanges().forEach(function(oChange) {
332
+ if (oChange.visualizationInfo && oChange.visualizationInfo.displayElementIds.length === 0) {
333
+ this.removeRegisteredChange(oChange.change.getId());
334
+ }
335
+ }.bind(this));
336
+ };
337
+
314
338
  return ChangeIndicatorRegistry;
315
339
  });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @returns {array} Array of change states.
22
22
  */
23
- ChangeStates.getDraftState = function() {
23
+ ChangeStates.getDraftAndDirtyStates = function() {
24
24
  return [this.DRAFT, this.DIRTY];
25
25
  };
26
26
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -51,6 +51,10 @@ sap.ui.define([
51
51
  }
52
52
  }
53
53
 
54
+ function _isOverlayVisible(oOverlay) {
55
+ return !oOverlay || !oOverlay.getDomRef() || !oOverlay.isVisible();
56
+ }
57
+
54
58
  /**
55
59
  * @class
56
60
  * Root control for RTA change visualization.
@@ -59,7 +63,7 @@ sap.ui.define([
59
63
  * @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
60
64
  * @author SAP SE
61
65
  * @since 1.84.0
62
- * @version 1.108.2
66
+ * @version 1.110.0
63
67
  * @private
64
68
  */
65
69
  var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
@@ -149,34 +153,84 @@ sap.ui.define([
149
153
  this._oChangeIndicatorRegistry.reset();
150
154
  };
151
155
 
152
- ChangeVisualization.prototype._updateVisualizationModelMenuData = function() {
153
- var aAllRegisteredChanges = this._oChangeIndicatorRegistry.getAllRegisteredChanges();
154
- var aHiddenChanges = this._oChangeVisualizationModel.getData().hiddenChanges;
155
- var aHiddenChangeIds = aHiddenChanges.map(function(oHiddenChange) {
156
- return oHiddenChange.id;
156
+ ChangeVisualization.prototype._determineChangeVisibility = function(aRegisteredIndependentChanges, aAllRelevantChanges, sVisualizedChangeState) {
157
+ function filterRelevantChanges(aChanges) {
158
+ return aChanges.filter(function(oChange) {
159
+ if (!sVisualizedChangeState || sVisualizedChangeState === "all" || oChange.changeStates.includes(sVisualizedChangeState)) {
160
+ return true;
161
+ }
162
+ return false;
163
+ });
164
+ }
165
+ // Array of all Hidden Changes
166
+ var aHiddenChanges = [];
167
+ // Array of all Visualized Changes
168
+ var aVisualizedChanges = [];
169
+
170
+ var bHasDraftChanges = false;
171
+ var bHasDirtyChanges = false;
172
+
173
+ var aAllRelevantChangeIds = aAllRelevantChanges.map(function(oChange) {
174
+ return oChange.id;
157
175
  });
158
- var sVisualizedChangeState = this._oChangeVisualizationModel.getData().changeState;
159
- var aHiddenChangesPerChangeState = aHiddenChanges.filter(function (oHiddenChange) {
160
- if (!sVisualizedChangeState || sVisualizedChangeState === "all") {
161
- return true;
176
+
177
+ aRegisteredIndependentChanges.forEach(function (oChange) {
178
+ if (oChange.changeStates.includes(ChangeStates.DIRTY)) {
179
+ bHasDraftChanges = true;
180
+ bHasDirtyChanges = true;
181
+ } else if (oChange.changeStates.includes(ChangeStates.DRAFT)) {
182
+ bHasDraftChanges = true;
183
+ }
184
+
185
+ var oOverlay = OverlayRegistry.getOverlay(oChange.visualizationInfo.displayElementIds[0]);
186
+
187
+ if (!aAllRelevantChangeIds.includes(oChange.change.getId())) {
188
+ aHiddenChanges.push(oChange);
189
+ } else if (_isOverlayVisible(oOverlay)) {
190
+ aHiddenChanges.push(oChange);
191
+ } else {
192
+ aVisualizedChanges.push(oChange);
162
193
  }
163
- return oHiddenChange.changeStates.includes(sVisualizedChangeState);
164
194
  });
165
- var aVisualizedChanges = aAllRegisteredChanges.filter(function (oChange) {
166
- var bIsChangeVisible = !aHiddenChangeIds.includes(oChange.change.getId());
167
- if (!sVisualizedChangeState || sVisualizedChangeState === "all") {
168
- return bIsChangeVisible;
195
+ var aRelevantHiddenChanges = filterRelevantChanges(aHiddenChanges);
196
+ var aRelevantVisualizedChanges = filterRelevantChanges(aVisualizedChanges);
197
+ return {
198
+ relevantHiddenChanges: aRelevantHiddenChanges,
199
+ relevantVisualizedChanges: aRelevantVisualizedChanges,
200
+ hasDirtyChanges: bHasDirtyChanges,
201
+ hasDraftChanges: bHasDraftChanges
202
+ };
203
+ };
204
+
205
+ ChangeVisualization.prototype._updateVisualizationModelMenuData = function() {
206
+ // Get selected change state and change category
207
+ var sVisualizedChangeState = this._oChangeVisualizationModel.getData().changeState;
208
+
209
+ // Get all registered and relevant change ids
210
+ var aAllRegisteredChanges = this._oChangeIndicatorRegistry.getAllRegisteredChanges();
211
+ var aAllRelevantChanges = this._oChangeIndicatorRegistry.getRelevantChangesWithSelector();
212
+
213
+ // Filter allRegisteredChanges for independent changes and get the ids
214
+ var aRegisteredIndependentChanges = aAllRegisteredChanges.filter(function(oChange) {
215
+ if (!oChange.dependent) {
216
+ return true;
169
217
  }
170
- return bIsChangeVisible && oChange.changeStates.includes(sVisualizedChangeState);
218
+ return false;
171
219
  });
220
+
221
+ var oSortedChanges = this._determineChangeVisibility(
222
+ aRegisteredIndependentChanges,
223
+ aAllRelevantChanges,
224
+ sVisualizedChangeState
225
+ );
172
226
  var aCommandData = Object.keys(ChangeCategories.getCategories()).map(function(sChangeCategoryName) {
173
227
  var sTitle = this._getChangeCategoryLabel(
174
228
  sChangeCategoryName,
175
- this._getChangesForChangeCategory(sChangeCategoryName, aVisualizedChanges).length
229
+ this._getChangesForChangeCategory(sChangeCategoryName, oSortedChanges.relevantVisualizedChanges).length
176
230
  );
177
231
  return {
178
232
  key: sChangeCategoryName,
179
- count: this._getChangesForChangeCategory(sChangeCategoryName, aVisualizedChanges).length,
233
+ count: this._getChangesForChangeCategory(sChangeCategoryName, oSortedChanges.relevantVisualizedChanges).length,
180
234
  title: sTitle,
181
235
  icon: ChangeCategories.getIconForCategory(sChangeCategoryName)
182
236
  };
@@ -184,19 +238,20 @@ sap.ui.define([
184
238
 
185
239
  aCommandData.unshift({
186
240
  key: ChangeCategories.ALL,
187
- count: this._getChangesForChangeCategory(ChangeCategories.ALL, aVisualizedChanges).length,
188
- title: this._getChangeCategoryLabel(ChangeCategories.ALL, this._getChangesForChangeCategory(ChangeCategories.ALL, aVisualizedChanges).length),
241
+ count: this._getChangesForChangeCategory(ChangeCategories.ALL, oSortedChanges.relevantVisualizedChanges).length,
242
+ title: this._getChangeCategoryLabel(ChangeCategories.ALL, this._getChangesForChangeCategory(ChangeCategories.ALL, oSortedChanges.relevantVisualizedChanges).length),
189
243
  icon: ChangeCategories.getIconForCategory(ChangeCategories.ALL)
190
244
  });
191
245
 
192
246
  this._updateVisualizationModel({
193
247
  changeCategories: aCommandData,
194
- hasDraftChanges: this._oChangeVisualizationModel.getData().draftChanges.length > 0,
195
- hasDirtyChanges: this._oChangeVisualizationModel.getData().dirtyChanges.length > 0,
248
+ hasDraftChanges: oSortedChanges.hasDraftChanges,
249
+ hasDirtyChanges: oSortedChanges.hasDirtyChanges,
196
250
  popupInfoMessage: this._oTextBundle.getText(
197
251
  "MSG_CHANGEVISUALIZATION_HIDDEN_CHANGES_INFO",
198
- [aHiddenChangesPerChangeState.length]
199
- )
252
+ [oSortedChanges.relevantHiddenChanges.length]
253
+ ),
254
+ sortedChanges: oSortedChanges
200
255
  });
201
256
  };
202
257
 
@@ -228,7 +283,7 @@ sap.ui.define([
228
283
  if (!oPopover) {
229
284
  Fragment.load({
230
285
  name: "sap.ui.rta.util.changeVisualization.ChangeIndicatorCategorySelection",
231
- id: this._getComponent().createId("changeVisualization_changesListPopover"),
286
+ id: this._getComponent().createId("changeVisualization_changesList"),
232
287
  controller: this
233
288
  })
234
289
  .then(function(oPopover) {
@@ -352,7 +407,14 @@ sap.ui.define([
352
407
 
353
408
  ChangeVisualization.prototype._updateChangeRegistry = function() {
354
409
  return this._collectChanges().then(function(aChanges) {
410
+ // remove updated changes
355
411
  this._oChangeIndicatorRegistry.removeOutdatedRegisteredChanges();
412
+ // remove changes with incomplete vizInfo
413
+ this._oChangeIndicatorRegistry.removeRegisteredChangesWithoutVizInfo();
414
+ // remove all registered changes after versions activation
415
+ if (this._oChangeVisualizationModel.getData().displayedVersion !== "0") {
416
+ this._oChangeIndicatorRegistry.reset();
417
+ }
356
418
  var aRegisteredChangeIds = this._oChangeIndicatorRegistry.getRegisteredChangeIds();
357
419
  var oCurrentChanges = aChanges
358
420
  .filter(function(oChange) {
@@ -370,7 +432,6 @@ sap.ui.define([
370
432
  difference(aRegisteredChangeIds, aCurrentChangeIds).forEach(function(sChangeIdToRemove) {
371
433
  this._oChangeIndicatorRegistry.removeRegisteredChange(sChangeIdToRemove);
372
434
  }.bind(this));
373
-
374
435
  var aPromises = [];
375
436
  // Register missing changes
376
437
  difference(aCurrentChangeIds, aRegisteredChangeIds).forEach(function(sChangeIdToAdd) {
@@ -412,23 +473,7 @@ sap.ui.define([
412
473
  ChangeVisualization.prototype._updateChangeIndicators = function() {
413
474
  var oSelectors = this._oChangeIndicatorRegistry.getSelectorsWithRegisteredChanges();
414
475
  var oIndicators = {};
415
- var aVisualizedChanges = [];
416
- var aActivatedChanges = [];
417
- var aDraftChanges = [];
418
- var aDirtyChanges = [];
419
- var aHiddenChanges = [];
420
476
  Object.keys(oSelectors).forEach(function(sSelectorId) {
421
- oSelectors[sSelectorId].forEach(function (oChange) {
422
- if (!oChange.dependent) {
423
- if (oChange.changeStates.includes(ChangeStates.ACTIVATED)) {
424
- aActivatedChanges.push(oChange.id);
425
- } else if (oChange.changeStates.includes(ChangeStates.DIRTY)) {
426
- aDirtyChanges.push(oChange.id);
427
- } else if (oChange.changeStates.includes(ChangeStates.DRAFT)) {
428
- aDraftChanges.push(oChange.id);
429
- }
430
- }
431
- });
432
477
  var aChangesOnIndicator = oSelectors[sSelectorId];
433
478
  var aRelevantChanges = this._filterRelevantChanges(oSelectors[sSelectorId]);
434
479
  var oOverlay = OverlayRegistry.getOverlay(sSelectorId);
@@ -445,22 +490,11 @@ sap.ui.define([
445
490
  return false;
446
491
  });
447
492
  }
448
- if (!oOverlay || !oOverlay.getDomRef() || !oOverlay.isVisible()) {
493
+ if (_isOverlayVisible(oOverlay)) {
449
494
  // Change is not visible
450
- aChangesOnIndicator.forEach(function (oChange) {
451
- var aHiddenChangeIds = aHiddenChanges.map(function(oHiddenChange) {
452
- return oHiddenChange.id;
453
- });
454
- if (!aHiddenChangeIds.includes(oChange.id)) {
455
- aHiddenChanges.push(oChange);
456
- }
457
- });
458
495
  return undefined;
459
496
  }
460
497
  var oOverlayPosition = oOverlay.getDomRef().getClientRects()[0] || { left: 0, top: 0 };
461
- aRelevantChanges.forEach(function (oChange) {
462
- aVisualizedChanges.push(oChange);
463
- });
464
498
  oIndicators[sSelectorId] = {
465
499
  posX: parseInt(oOverlayPosition.left),
466
500
  posY: parseInt(oOverlayPosition.top),
@@ -482,21 +516,10 @@ sap.ui.define([
482
516
  !deepEqual(
483
517
  oIndicators,
484
518
  this._oChangeVisualizationModel.getData().content
485
- ) || !deepEqual(
486
- aVisualizedChanges,
487
- this._oChangeVisualizationModel.getData().visualizedChanges
488
- ) || !deepEqual(
489
- aHiddenChanges,
490
- this._oChangeVisualizationModel.getData().hiddenChanges
491
519
  )
492
520
  ) {
493
521
  this._updateVisualizationModel({
494
- content: oIndicators,
495
- visualizedChanges: aVisualizedChanges,
496
- dirtyChanges: aDirtyChanges,
497
- activatedChanges: aActivatedChanges,
498
- draftChanges: aDraftChanges,
499
- hiddenChanges: aHiddenChanges
522
+ content: oIndicators
500
523
  });
501
524
  }
502
525
  };
@@ -560,10 +583,22 @@ sap.ui.define([
560
583
  if (aVisibleIndicators.length === 0) {
561
584
  return;
562
585
  }
586
+
587
+ var aVisibleIndicatorsOnScrollPosition = [];
563
588
  aVisibleIndicators.forEach(function(oIndicator, iIndex) {
564
589
  oIndicator.getDomRef().tabIndex = iIndex + 2;
590
+ // Indicators with posY < 0 are outside of the current scroll position
591
+ if (oIndicator.getPosY() > 0) {
592
+ aVisibleIndicatorsOnScrollPosition.push(oIndicator);
593
+ }
565
594
  });
566
- aVisibleIndicators[0].focus();
595
+ if (aVisibleIndicatorsOnScrollPosition.length > 0) {
596
+ // Indicators visible with the current scroll position get focus
597
+ // to avoid unexpected scrolling when visualization is started
598
+ aVisibleIndicatorsOnScrollPosition[0].focus();
599
+ } else {
600
+ aVisibleIndicators[0].focus();
601
+ }
567
602
  };
568
603
 
569
604
  ChangeVisualization.prototype._toggleRootOverlayClickHandler = function (bEnable) {
@@ -594,14 +629,17 @@ sap.ui.define([
594
629
  ChangeVisualization.prototype.triggerModeChange = function(oRootControl, oToolbar) {
595
630
  this.oMenuButton = oToolbar.getControl("toggleChangeVisualizationMenuButton");
596
631
  this.oRootOverlay = OverlayRegistry.getOverlay(oRootControl);
597
- if (oToolbar.getModel("versions")) {
598
- this.setVersionsModel(oToolbar);
632
+ this.setVersionsModel(oToolbar);
633
+ if (this.oVersionsModel && this.oVersionsModel.getData().versioningEnabled) {
599
634
  this._updateVisualizationModel({
600
- versioningAvailable: this.oVersionsModel.getData().versioningEnabled
635
+ versioningAvailable: this.oVersionsModel.getData().versioningEnabled,
636
+ displayedVersion: this.oVersionsModel.getData().displayedVersion
601
637
  });
602
638
  } else {
639
+ // no versioning available, setting draft version id for caching to be working
603
640
  this._updateVisualizationModel({
604
- versioningAvailable: false
641
+ versioningAvailable: false,
642
+ displayedVersion: "0"
605
643
  });
606
644
  }
607
645
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,76 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- // Provides the <code>sap.ui.rta.appContexts.AppContextsOverviewDialog</code> control.
8
- sap.ui.define([
9
- "sap/ui/core/ComponentContainer",
10
- "sap/m/Button",
11
- "sap/m/Dialog",
12
- "sap/m/DialogRenderer",
13
- "sap/ui/rta/appContexts/Component",
14
- "sap/ui/rta/Utils"
15
- ], function (
16
- ComponentContainer,
17
- Button,
18
- Dialog,
19
- DialogRenderer,
20
- ManageAppContextsComponent,
21
- RtaUtils
22
- ) {
23
- "use strict";
24
-
25
- var AppContextsOverviewDialog = Dialog.extend("sap.ui.rta.appContexts.AppVariantOverviewDialog", {
26
- metadata: {
27
- library: "sap.ui.rta",
28
- events: {
29
- cancel: {}
30
- },
31
- properties: {
32
- layer: "string"
33
- }
34
- },
35
- constructor: function () {
36
- Dialog.prototype.constructor.apply(this, arguments);
37
- this._oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
38
-
39
- // Create manage apps component
40
- this._oManageAppContextsComponent = new ManageAppContextsComponent("sap.ui.rta.appContexts", { layer: this.getLayer() });
41
-
42
- // Place component in container and display
43
- this._oManageAppsComponentContainer = new ComponentContainer({
44
- component: this._oManageAppContextsComponent
45
- });
46
-
47
- this.addContent(this._oManageAppsComponentContainer);
48
- this._createButton();
49
-
50
- this.setContentWidth("650px");
51
- this.setContentHeight("450px");
52
-
53
- this.setHorizontalScrolling(false);
54
- this.setTitle(this._oTextResources.getText("APP_CONTEXTS_OVERVIEW_DIALOG_TITLE"));
55
-
56
- this.addStyleClass(RtaUtils.getRtaStyleClassName());
57
- },
58
- destroy: function () {
59
- Dialog.prototype.destroy.apply(this, arguments);
60
- },
61
- renderer: DialogRenderer
62
- });
63
-
64
- AppContextsOverviewDialog.prototype._createButton = function () {
65
- this.addButton(new Button({
66
- text: this._oTextResources.getText("APP_VARIANT_DIALOG_CLOSE"),
67
- press: function () {
68
- this.close();
69
- this.fireCancel();
70
- }.bind(this)
71
- }));
72
- };
73
-
74
-
75
- return AppContextsOverviewDialog;
76
- });
@@ -1,31 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
- sap.ui.define([
7
- "sap/ui/core/UIComponent"
8
- ], function (UIComponent) {
9
- "use strict";
10
-
11
- return UIComponent.extend("sap.ui.rta.appContexts.Component", {
12
-
13
- metadata: {
14
- manifest: "json",
15
- library: "sap.ui.rta",
16
- properties: {
17
- layer: "string"
18
- }
19
- },
20
-
21
- /**
22
- * Component is automatically initialized by UI5 at startup of the app and calls the init method once.
23
- * @public
24
- * @override
25
- */
26
- init: function () {
27
- // call the base component's init function
28
- UIComponent.prototype.init.apply(this, arguments);
29
- }
30
- });
31
- });