@openui5/sap.ui.rta 1.99.1 → 1.102.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 (223) hide show
  1. package/THIRDPARTY.txt +5 -5
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -1
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +146 -92
  6. package/src/sap/ui/rta/Utils.js +3 -5
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -2
  9. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +0 -17
  10. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n.properties +0 -4
  11. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ar.properties +0 -2
  12. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_bg.properties +0 -2
  13. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ca.properties +0 -2
  14. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cs.properties +0 -2
  15. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cy.properties +0 -2
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_da.properties +0 -2
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_de.properties +0 -2
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_el.properties +0 -2
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en.properties +0 -2
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_GB.properties +0 -2
  21. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +0 -2
  22. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saprigi.properties +0 -2
  23. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +0 -2
  24. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es.properties +0 -2
  25. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es_MX.properties +0 -2
  26. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_et.properties +0 -2
  27. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fi.properties +0 -2
  28. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr.properties +0 -2
  29. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr_CA.properties +0 -2
  30. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hi.properties +0 -2
  31. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hr.properties +0 -2
  32. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hu.properties +0 -2
  33. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_id.properties +0 -2
  34. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_it.properties +0 -2
  35. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_iw.properties +0 -2
  36. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ja.properties +0 -2
  37. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_kk.properties +0 -2
  38. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ko.properties +0 -2
  39. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lt.properties +0 -2
  40. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lv.properties +0 -2
  41. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ms.properties +0 -2
  42. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_nl.properties +0 -2
  43. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_no.properties +0 -2
  44. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pl.properties +0 -2
  45. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt.properties +0 -2
  46. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt_PT.properties +0 -2
  47. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ro.properties +0 -2
  48. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ru.properties +0 -2
  49. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sh.properties +0 -2
  50. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sk.properties +0 -2
  51. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sl.properties +0 -2
  52. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sv.properties +0 -2
  53. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_th.properties +0 -2
  54. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_tr.properties +0 -2
  55. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_uk.properties +0 -2
  56. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_vi.properties +0 -2
  57. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_CN.properties +0 -2
  58. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_TW.properties +0 -2
  59. package/src/sap/ui/rta/appVariant/manageApps/webapp/view/ManageApps.view.xml +0 -1
  60. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  61. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  62. package/src/sap/ui/rta/command/AddXML.js +3 -2
  63. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
  64. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  65. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  66. package/src/sap/ui/rta/command/BindProperty.js +3 -2
  67. package/src/sap/ui/rta/command/Combine.js +1 -1
  68. package/src/sap/ui/rta/command/CommandFactory.js +10 -4
  69. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  70. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  71. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  72. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  73. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  74. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  75. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  76. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  77. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  78. package/src/sap/ui/rta/command/LREPSerializer.js +3 -3
  79. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  80. package/src/sap/ui/rta/command/Move.js +1 -1
  81. package/src/sap/ui/rta/command/Property.js +1 -1
  82. package/src/sap/ui/rta/command/Remove.js +1 -1
  83. package/src/sap/ui/rta/command/Rename.js +1 -1
  84. package/src/sap/ui/rta/command/Resize.js +45 -0
  85. package/src/sap/ui/rta/command/Reveal.js +1 -1
  86. package/src/sap/ui/rta/command/Settings.js +1 -1
  87. package/src/sap/ui/rta/command/Split.js +1 -1
  88. package/src/sap/ui/rta/command/Stack.js +15 -12
  89. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  90. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +82 -0
  91. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  92. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  93. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  94. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  95. package/src/sap/ui/rta/library.js +6 -9
  96. package/src/sap/ui/rta/messagebundle.properties +24 -8
  97. package/src/sap/ui/rta/messagebundle_ar.properties +14 -6
  98. package/src/sap/ui/rta/messagebundle_bg.properties +16 -8
  99. package/src/sap/ui/rta/messagebundle_ca.properties +15 -7
  100. package/src/sap/ui/rta/messagebundle_cs.properties +14 -6
  101. package/src/sap/ui/rta/messagebundle_cy.properties +14 -6
  102. package/src/sap/ui/rta/messagebundle_da.properties +14 -6
  103. package/src/sap/ui/rta/messagebundle_de.properties +14 -6
  104. package/src/sap/ui/rta/messagebundle_el.properties +14 -6
  105. package/src/sap/ui/rta/messagebundle_en.properties +14 -6
  106. package/src/sap/ui/rta/messagebundle_en_GB.properties +14 -6
  107. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +14 -6
  108. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +14 -6
  109. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +14 -6
  110. package/src/sap/ui/rta/messagebundle_es.properties +14 -6
  111. package/src/sap/ui/rta/messagebundle_es_MX.properties +14 -6
  112. package/src/sap/ui/rta/messagebundle_et.properties +14 -6
  113. package/src/sap/ui/rta/messagebundle_fi.properties +14 -6
  114. package/src/sap/ui/rta/messagebundle_fr.properties +14 -6
  115. package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -6
  116. package/src/sap/ui/rta/messagebundle_hi.properties +13 -5
  117. package/src/sap/ui/rta/messagebundle_hr.properties +14 -6
  118. package/src/sap/ui/rta/messagebundle_hu.properties +14 -6
  119. package/src/sap/ui/rta/messagebundle_id.properties +14 -6
  120. package/src/sap/ui/rta/messagebundle_it.properties +14 -6
  121. package/src/sap/ui/rta/messagebundle_iw.properties +14 -6
  122. package/src/sap/ui/rta/messagebundle_ja.properties +14 -6
  123. package/src/sap/ui/rta/messagebundle_kk.properties +14 -6
  124. package/src/sap/ui/rta/messagebundle_ko.properties +14 -6
  125. package/src/sap/ui/rta/messagebundle_lt.properties +14 -6
  126. package/src/sap/ui/rta/messagebundle_lv.properties +14 -6
  127. package/src/sap/ui/rta/messagebundle_ms.properties +14 -6
  128. package/src/sap/ui/rta/messagebundle_nl.properties +14 -6
  129. package/src/sap/ui/rta/messagebundle_no.properties +14 -6
  130. package/src/sap/ui/rta/messagebundle_pl.properties +14 -6
  131. package/src/sap/ui/rta/messagebundle_pt.properties +14 -6
  132. package/src/sap/ui/rta/messagebundle_pt_PT.properties +14 -6
  133. package/src/sap/ui/rta/messagebundle_ro.properties +14 -6
  134. package/src/sap/ui/rta/messagebundle_ru.properties +14 -6
  135. package/src/sap/ui/rta/messagebundle_sh.properties +14 -6
  136. package/src/sap/ui/rta/messagebundle_sk.properties +14 -6
  137. package/src/sap/ui/rta/messagebundle_sl.properties +14 -6
  138. package/src/sap/ui/rta/messagebundle_sv.properties +14 -6
  139. package/src/sap/ui/rta/messagebundle_th.properties +14 -6
  140. package/src/sap/ui/rta/messagebundle_tr.properties +14 -6
  141. package/src/sap/ui/rta/messagebundle_uk.properties +14 -6
  142. package/src/sap/ui/rta/messagebundle_vi.properties +14 -6
  143. package/src/sap/ui/rta/messagebundle_zh_CN.properties +14 -6
  144. package/src/sap/ui/rta/messagebundle_zh_TW.properties +15 -7
  145. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  146. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  147. package/src/sap/ui/rta/plugin/Combine.js +6 -12
  148. package/src/sap/ui/rta/plugin/CompVariant.js +85 -66
  149. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  150. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -3
  151. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  152. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  153. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  154. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  155. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  156. package/src/sap/ui/rta/plugin/Plugin.js +32 -11
  157. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  158. package/src/sap/ui/rta/plugin/Remove.js +25 -26
  159. package/src/sap/ui/rta/plugin/Rename.js +6 -19
  160. package/src/sap/ui/rta/plugin/RenameHandler.js +23 -6
  161. package/src/sap/ui/rta/plugin/Resize.js +432 -0
  162. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  163. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  164. package/src/sap/ui/rta/plugin/Split.js +5 -11
  165. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  166. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  167. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  168. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +20 -10
  169. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  170. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  171. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  172. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  173. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  174. package/src/sap/ui/rta/service/Action.js +1 -1
  175. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  176. package/src/sap/ui/rta/service/Outline.js +1 -1
  177. package/src/sap/ui/rta/service/Property.js +1 -1
  178. package/src/sap/ui/rta/service/Selection.js +1 -1
  179. package/src/sap/ui/rta/themes/base/AddIFrame.less +37 -29
  180. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +63 -69
  181. package/src/sap/ui/rta/themes/base/ContextMenu.less +25 -0
  182. package/src/sap/ui/rta/themes/base/Dialogs.less +79 -0
  183. package/src/sap/ui/rta/themes/base/FieldRepository.less +14 -61
  184. package/src/sap/ui/rta/themes/base/Overlay.less +96 -98
  185. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +7 -1
  186. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +178 -36
  187. package/src/sap/ui/rta/themes/base/Toolbar.base.less +23 -154
  188. package/src/sap/ui/rta/themes/base/Toolbar.fiori.less +2 -21
  189. package/src/sap/ui/rta/themes/base/Toolbar.personalization.less +3 -14
  190. package/src/sap/ui/rta/themes/base/Toolbar.standalone.less +0 -9
  191. package/src/sap/ui/rta/themes/base/library.source.less +2 -0
  192. package/src/sap/ui/rta/themes/sap_hcb/ChangeVisualization.less +7 -0
  193. package/src/sap/ui/rta/themes/sap_hcb/ContextMenu.less +5 -0
  194. package/src/sap/ui/rta/themes/sap_hcb/Dialogs.less +28 -0
  195. package/src/sap/ui/rta/themes/sap_hcb/FieldRepository.less +18 -0
  196. package/src/sap/ui/rta/themes/sap_hcb/Overlay.less +52 -12
  197. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.adaptation.less +38 -0
  198. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.base.less +14 -2
  199. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.personalization.less +8 -2
  200. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +5 -2
  201. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +33 -32
  202. package/src/sap/ui/rta/toolbar/Adaptation.js +68 -24
  203. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  204. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  205. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  206. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  207. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  208. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  209. package/src/sap/ui/rta/toolbar/VersionHistory.fragment.xml +2 -1
  210. package/src/sap/ui/rta/toolbar/translation/DownloadTranslationDialog.fragment.xml +20 -17
  211. package/src/sap/ui/rta/toolbar/translation/Translation.js +104 -98
  212. package/src/sap/ui/rta/toolbar/translation/UploadTranslationDialog.fragment.xml +4 -2
  213. package/src/sap/ui/rta/util/PluginManager.js +10 -4
  214. package/src/sap/ui/rta/util/PopupManager.js +33 -12
  215. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  216. package/src/sap/ui/rta/util/adaptationStarter.js +102 -80
  217. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +11 -4
  218. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +30 -0
  219. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +1 -1
  220. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -6
  221. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +108 -32
  222. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +25 -7
  223. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.standalone.less +0 -9
package/THIRDPARTY.txt CHANGED
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
400
400
 
401
401
  Library: sap.ui.webc.common:
402
402
 
403
- Component: UI5 Web Components, version: 1.0.0-rc.12
403
+ Component: UI5 Web Components, version: 1.1.2
404
404
  Copyright: SAP
405
405
  License: Apache-2.0
406
406
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
411
411
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
412
412
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
413
413
 
414
- Component: lit-html, version: 1.4.1
414
+ Component: lit-html, version: 2.0.1
415
415
  Copyright: Google LLC
416
416
  License: BSD-3-Clause
417
417
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
420
420
 
421
421
  Library: sap.ui.webc.fiori:
422
422
 
423
- Component: UI5 Web Components, version: 1.0.0-rc.12
423
+ Component: UI5 Web Components, version: 1.1.2
424
424
  Copyright: SAP
425
425
  License: Apache-2.0
426
426
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
429
429
 
430
430
  Library: sap.ui.webc.main:
431
431
 
432
- Component: UI5 Web Components, version: 1.0.0-rc.12
432
+ Component: UI5 Web Components, version: 1.1.2
433
433
  Copyright: SAP
434
434
  License: Apache-2.0
435
435
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -450,7 +450,7 @@ License: Apache-2.0
450
450
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
451
  Contained in: lib/jsdoc/ui5/plugin.js
452
452
 
453
- Component: SAP Theming Base Content, version: 11.1.34
453
+ Component: SAP Theming Base Content, version: 11.1.39
454
454
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
455
455
  License: Apache-2.0
456
456
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.99.1",
3
+ "version": "1.102.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.rta",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.99.1",
18
- "@openui5/sap.ui.core": "1.99.1",
19
- "@openui5/sap.ui.dt": "1.99.1",
20
- "@openui5/sap.ui.fl": "1.99.1",
21
- "@openui5/sap.ui.layout": "1.99.1"
17
+ "@openui5/sap.m": "1.102.0",
18
+ "@openui5/sap.ui.core": "1.102.0",
19
+ "@openui5/sap.ui.dt": "1.102.0",
20
+ "@openui5/sap.ui.fl": "1.102.0",
21
+ "@openui5/sap.ui.layout": "1.102.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.99.1</version>
9
+ <version>1.102.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @alias sap.ui.rta.Client
58
58
  * @author SAP SE
59
59
  * @since 1.56.0
60
- * @version 1.99.1
60
+ * @version 1.102.0
61
61
  * @private
62
62
  * @ui5-restricted
63
63
  */
@@ -21,6 +21,7 @@ sap.ui.define([
21
21
  "sap/ui/dt/OverlayRegistry",
22
22
  "sap/ui/dt/Util",
23
23
  "sap/ui/events/KeyCodes",
24
+ "sap/ui/fl/write/api/Version",
24
25
  "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
25
26
  "sap/ui/fl/apply/api/SmartVariantManagementApplyAPI",
26
27
  "sap/ui/fl/write/api/ControlPersonalizationWriteAPI",
@@ -28,9 +29,9 @@ sap.ui.define([
28
29
  "sap/ui/fl/write/api/PersistenceWriteAPI",
29
30
  "sap/ui/fl/write/api/ReloadInfoAPI",
30
31
  "sap/ui/fl/write/api/VersionsAPI",
32
+ "sap/ui/fl/write/api/TranslationAPI",
31
33
  "sap/ui/fl/Layer",
32
34
  "sap/ui/fl/LayerUtils",
33
- "sap/ui/fl/library",
34
35
  "sap/ui/fl/registry/Settings",
35
36
  "sap/ui/fl/Utils",
36
37
  "sap/ui/model/json/JSONModel",
@@ -67,6 +68,7 @@ sap.ui.define([
67
68
  OverlayRegistry,
68
69
  DtUtil,
69
70
  KeyCodes,
71
+ Version,
70
72
  FlexRuntimeInfoAPI,
71
73
  SmartVariantManagementApplyAPI,
72
74
  ControlPersonalizationWriteAPI,
@@ -74,9 +76,9 @@ sap.ui.define([
74
76
  PersistenceWriteAPI,
75
77
  ReloadInfoAPI,
76
78
  VersionsAPI,
79
+ TranslationAPI,
77
80
  Layer,
78
81
  LayerUtils,
79
- flexLibrary,
80
82
  Settings,
81
83
  FlexUtils,
82
84
  JSONModel,
@@ -114,7 +116,7 @@ sap.ui.define([
114
116
  * @class The runtime authoring allows to adapt the fields of a running application.
115
117
  * @extends sap.ui.base.ManagedObject
116
118
  * @author SAP SE
117
- * @version 1.99.1
119
+ * @version 1.102.0
118
120
  * @constructor
119
121
  * @private
120
122
  * @since 1.30
@@ -330,7 +332,7 @@ sap.ui.define([
330
332
 
331
333
  /**
332
334
  * Getter method for plugins.
333
- * @returns {object<sap.ui.rta.plugin.Plugin>} map with plugins
335
+ * @returns {Object<string, sap.ui.rta.plugin.Plugin>} map with plugins
334
336
  */
335
337
  RuntimeAuthoring.prototype.getPlugins = function () {
336
338
  return this.getPluginManager
@@ -413,7 +415,7 @@ sap.ui.define([
413
415
 
414
416
  RuntimeAuthoring.prototype._initVersioning = function() {
415
417
  return VersionsAPI.initialize({
416
- selector: this.getRootControlInstance(),
418
+ control: this.getRootControlInstance(),
417
419
  layer: this.getLayer()
418
420
  }).then(this._setVersionsModel.bind(this));
419
421
  };
@@ -609,14 +611,14 @@ sap.ui.define([
609
611
 
610
612
  RuntimeAuthoring.prototype._isOldVersionDisplayed = function() {
611
613
  return VersionsAPI.isOldVersionDisplayed({
612
- selector: this.getRootControlInstance(),
614
+ control: this.getRootControlInstance(),
613
615
  layer: this.getLayer()
614
616
  });
615
617
  };
616
618
 
617
619
  RuntimeAuthoring.prototype._isDraftAvailable = function() {
618
620
  return VersionsAPI.isDraftAvailable({
619
- selector: this.getRootControlInstance(),
621
+ control: this.getRootControlInstance(),
620
622
  layer: this.getLayer()
621
623
  });
622
624
  };
@@ -682,7 +684,7 @@ sap.ui.define([
682
684
  */
683
685
  RuntimeAuthoring.prototype._onStackModified = function() {
684
686
  var bBackEndDraftExists = this._oVersionsModel.getProperty("/backendDraft");
685
- var bDraftDisplayed = this._oVersionsModel.getProperty("/displayedVersion") === sap.ui.fl.Versions.Draft;
687
+ var bDraftDisplayed = this._oVersionsModel.getProperty("/displayedVersion") === Version.Number.Draft;
686
688
  var oCommandStack = this.getCommandStack();
687
689
  var bCanUndo = oCommandStack.canUndo();
688
690
 
@@ -721,6 +723,8 @@ sap.ui.define([
721
723
  var oCommandStack = this.getCommandStack();
722
724
  var bCanUndo = oCommandStack.canUndo();
723
725
  var bCanRedo = oCommandStack.canRedo();
726
+ var bTranslationRelevantDirtyChange = this._oToolbarControlsModel.getProperty("/translationVisible") &&
727
+ TranslationAPI.hasTranslationRelevantDirtyChanges({layer: Layer.CUSTOMER, selector: this.getRootControlInstance()});
724
728
 
725
729
  // TODO: move to the setter to the ChangesState
726
730
  this._oVersionsModel.setDirtyChanges(bCanUndo);
@@ -728,6 +732,7 @@ sap.ui.define([
728
732
  this._oToolbarControlsModel.setProperty("/redoEnabled", bCanRedo);
729
733
  this._oToolbarControlsModel.setProperty("/publishEnabled", this.bInitialPublishEnabled || bCanUndo);
730
734
  this._oToolbarControlsModel.setProperty("/restoreEnabled", this.bInitialResetEnabled || bCanUndo);
735
+ this._oToolbarControlsModel.setProperty("/translationEnabled", this.bPersistedDataTranslatable || bTranslationRelevantDirtyChange);
731
736
  }
732
737
  this.fireUndoRedoStackModified();
733
738
  return Promise.resolve();
@@ -878,9 +883,20 @@ sap.ui.define([
878
883
  return undefined;
879
884
  };
880
885
 
886
+ RuntimeAuthoring.prototype._saveOnly = function(oEvent) {
887
+ var fnCallback = oEvent.getParameter("callback") || function() {};
888
+ return waitForPendingActions.call(this)
889
+ .then(this._serializeToLrep.bind(this))
890
+ .then(fnCallback);
891
+ };
892
+
881
893
  RuntimeAuthoring.prototype._serializeAndSave = function() {
894
+ if (this.getShowToolbars()) {
895
+ this.bPersistedDataTranslatable = this._oToolbarControlsModel.getProperty("/translationEnabled");
896
+ }
882
897
  // Save changes on the current layer and discard dirty changes on other layers
883
- return this._oSerializer.saveCommands(this._oVersionsModel.getProperty("/versioningEnabled"), this.getLayer(), true);
898
+ var bSaveAsDraft = this._oVersionsModel.getProperty("/versioningEnabled") && this.getLayer() === Layer.CUSTOMER;
899
+ return this._oSerializer.saveCommands(bSaveAsDraft, this.getLayer(), true);
884
900
  };
885
901
 
886
902
  RuntimeAuthoring.prototype._serializeToLrep = function() {
@@ -913,7 +929,7 @@ sap.ui.define([
913
929
  })
914
930
  .then(function(sAction) {
915
931
  if (sAction === MessageBox.Action.OK) {
916
- this._activate(sVersionTitle);
932
+ return this._activate(sVersionTitle);
917
933
  }
918
934
  }.bind(this));
919
935
  }
@@ -923,10 +939,13 @@ sap.ui.define([
923
939
  RuntimeAuthoring.prototype._activate = function(sVersionTitle) {
924
940
  var sLayer = this.getLayer();
925
941
  var oSelector = this.getRootControlInstance();
926
- return VersionsAPI.activate({
927
- layer: sLayer,
928
- selector: oSelector,
929
- title: sVersionTitle
942
+ return this._serializeAndSave()
943
+ .then(function () {
944
+ return VersionsAPI.activate({
945
+ layer: sLayer,
946
+ control: oSelector,
947
+ title: sVersionTitle
948
+ });
930
949
  }).then(function () {
931
950
  this._showMessageToast("MSG_DRAFT_ACTIVATION_SUCCESS");
932
951
  this.bInitialResetEnabled = true;
@@ -965,7 +984,7 @@ sap.ui.define([
965
984
  if (sAction === MessageBox.Action.OK) {
966
985
  return VersionsAPI.discardDraft({
967
986
  layer: this.getLayer(),
968
- selector: this.getRootControlInstance(),
987
+ control: this.getRootControlInstance(),
969
988
  updateState: true
970
989
  })
971
990
  .then(this._handleDiscard.bind(this));
@@ -1020,11 +1039,11 @@ sap.ui.define([
1020
1039
  }
1021
1040
  var mParsedHash = FlexUtils.getParsedURLHash(this._getUShellService("URLParsing"));
1022
1041
  VersionsAPI.loadVersionForApplication({
1023
- selector: this.getRootControlInstance(),
1042
+ control: this.getRootControlInstance(),
1024
1043
  layer: this.getLayer(),
1025
1044
  version: sVersion
1026
1045
  });
1027
- var aVersionsParameter = mParsedHash.params[sap.ui.fl.Versions.UrlParameter];
1046
+ var aVersionsParameter = mParsedHash.params[Version.UrlParameter];
1028
1047
  if (
1029
1048
  aVersionsParameter &&
1030
1049
  aVersionsParameter[0] === sVersion &&
@@ -1033,7 +1052,7 @@ sap.ui.define([
1033
1052
  // RTA was started with a version parameter, the displayed version has changed and the key user switches back
1034
1053
  this._getUShellService("AppLifeCycle").reloadCurrentApp();
1035
1054
  } else {
1036
- mParsedHash.params[sap.ui.fl.Versions.UrlParameter] = sVersion;
1055
+ mParsedHash.params[Version.UrlParameter] = sVersion;
1037
1056
  this._triggerCrossAppNavigation(mParsedHash);
1038
1057
  }
1039
1058
  return undefined;
@@ -1054,19 +1073,21 @@ sap.ui.define([
1054
1073
  },
1055
1074
  textResources: this._getTextResources(),
1056
1075
  restore: this._onRestore.bind(this),
1057
- exit: this.stop.bind(this, false, bUserLayer)
1076
+ exit: this.stop.bind(this, false, bUserLayer),
1077
+ save: this._saveOnly.bind(this)
1058
1078
  };
1059
1079
 
1060
1080
  if (!bUserLayer) {
1061
1081
  oProperties.transport = this._onTransport.bind(this);
1082
+ oProperties.publishVersion = this._onPublishVersion.bind(this);
1062
1083
  oProperties.undo = this._onUndo.bind(this);
1063
1084
  oProperties.redo = this._onRedo.bind(this);
1064
1085
  oProperties.modeChange = this._onModeChange.bind(this);
1065
1086
  oProperties.activate = this._onActivate.bind(this);
1066
1087
  oProperties.discardDraft = this._onDiscardDraft.bind(this);
1067
1088
  oProperties.switchVersion = this._onSwitchVersion.bind(this);
1068
- oProperties.onCommandCategorySelection = this.getChangeVisualization
1069
- ? this.getChangeVisualization().onCommandCategorySelection.bind(this.getChangeVisualization())
1089
+ oProperties.openChangeCategorySelectionPopover = this.getChangeVisualization
1090
+ ? this.getChangeVisualization().openChangeCategorySelectionPopover.bind(this.getChangeVisualization())
1070
1091
  : function () {};
1071
1092
  }
1072
1093
 
@@ -1082,47 +1103,66 @@ sap.ui.define([
1082
1103
  }
1083
1104
  this.addDependent(oToolbar, "toolbar");
1084
1105
 
1085
- return oToolbar.onFragmentLoaded().then(function() {
1086
- var bSaveAsAvailable = aButtonsVisibility.saveAsAvailable;
1087
- var bExtendedOverview = bSaveAsAvailable && RtaAppVariantFeature.isOverviewExtended();
1088
- var oUriParameters = UriParameters.fromURL(window.location.href);
1089
- // the "Visualization" tab should not be visible if the "fiori-tools-rta-mode" URL-parameter is set to any value but "false"
1090
- var bVisualizationButtonVisible;
1091
- if (oUriParameters.has("fiori-tools-rta-mode") && oUriParameters.get("fiori-tools-rta-mode") !== "false") {
1092
- bVisualizationButtonVisible = false;
1093
- } else {
1094
- bVisualizationButtonVisible = true;
1095
- }
1106
+ return Promise.all([oToolbar.onFragmentLoaded(), FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer())])
1107
+ .then(function(aArguments) {
1108
+ var bTranslationAvailable = aArguments[1];
1109
+ var bSaveAsAvailable = aButtonsVisibility.saveAsAvailable;
1110
+ var bExtendedOverview = bSaveAsAvailable && RtaAppVariantFeature.isOverviewExtended();
1111
+ var oUriParameters = UriParameters.fromURL(window.location.href);
1112
+ // the "Visualization" tab should not be visible if the "fiori-tools-rta-mode" URL-parameter is set to any value but "false"
1113
+ var bVisualizationButtonVisible;
1114
+ bVisualizationButtonVisible = !oUriParameters.has("fiori-tools-rta-mode") || oUriParameters.get("fiori-tools-rta-mode") === "false";
1115
+ this.bPersistedDataTranslatable = false;
1116
+
1117
+ this._oToolbarControlsModel = new JSONModel({
1118
+ undoEnabled: false,
1119
+ redoEnabled: false,
1120
+ translationVisible: bTranslationAvailable,
1121
+ translationEnabled: this.bPersistedDataTranslatable,
1122
+ publishVisible: aButtonsVisibility.publishAvailable,
1123
+ publishEnabled: this.bInitialPublishEnabled,
1124
+ restoreEnabled: this.bInitialResetEnabled,
1125
+ appVariantsOverviewVisible: bSaveAsAvailable && bExtendedOverview,
1126
+ appVariantsOverviewEnabled: bSaveAsAvailable && bExtendedOverview,
1127
+ saveAsVisible: bSaveAsAvailable,
1128
+ saveAsEnabled: false,
1129
+ manageAppsVisible: bSaveAsAvailable && !bExtendedOverview,
1130
+ manageAppsEnabled: bSaveAsAvailable && !bExtendedOverview,
1131
+ modeSwitcher: this.getMode(),
1132
+ visualizationButtonVisible: bVisualizationButtonVisible
1133
+ });
1096
1134
 
1097
- this._oToolbarControlsModel = new JSONModel({
1098
- undoEnabled: false,
1099
- redoEnabled: false,
1100
- translationVisible: false,
1101
- translationEnabled: false,
1102
- publishVisible: aButtonsVisibility.publishAvailable,
1103
- publishEnabled: this.bInitialPublishEnabled,
1104
- restoreEnabled: this.bInitialResetEnabled,
1105
- appVariantsOverviewVisible: bSaveAsAvailable && bExtendedOverview,
1106
- appVariantsOverviewEnabled: bSaveAsAvailable && bExtendedOverview,
1107
- saveAsVisible: bSaveAsAvailable,
1108
- saveAsEnabled: false,
1109
- manageAppsVisible: bSaveAsAvailable && !bExtendedOverview,
1110
- manageAppsEnabled: bSaveAsAvailable && !bExtendedOverview,
1111
- modeSwitcher: this.getMode(),
1112
- visualizationButtonVisible: bVisualizationButtonVisible
1113
- });
1135
+ var oTranslationPromise = new Promise(function (resolve) {
1136
+ if (!bTranslationAvailable) {
1137
+ resolve();
1138
+ return;
1139
+ }
1114
1140
 
1115
- if (bSaveAsAvailable) {
1116
- RtaAppVariantFeature.isManifestSupported().then(function (bResult) {
1117
- this._oToolbarControlsModel.setProperty("/saveAsEnabled", bResult);
1118
- this._oToolbarControlsModel.setProperty("/appVariantsOverviewEnabled", bResult);
1119
- this._oToolbarControlsModel.setProperty("/manageAppsEnabled", bResult);
1141
+ TranslationAPI.getSourceLanguages({selector: this.getRootControlInstance(), layer: this.getLayer()})
1142
+ .then(function (aSourceLanguages) {
1143
+ this.bPersistedDataTranslatable = aSourceLanguages.length > 0;
1144
+ this._oToolbarControlsModel.setProperty("/translationEnabled", this.bPersistedDataTranslatable);
1145
+ }.bind(this)).finally(resolve);
1120
1146
  }.bind(this));
1121
- }
1122
1147
 
1123
- this.getToolbar().setModel(this._oVersionsModel, "versions");
1124
- this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
1125
- }.bind(this));
1148
+ var oSaveAsPromise = new Promise(function (resolve) {
1149
+ if (!bSaveAsAvailable) {
1150
+ resolve();
1151
+ return;
1152
+ }
1153
+
1154
+ RtaAppVariantFeature.isManifestSupported().then(function (bResult) {
1155
+ this._oToolbarControlsModel.setProperty("/saveAsEnabled", bResult);
1156
+ this._oToolbarControlsModel.setProperty("/appVariantsOverviewEnabled", bResult);
1157
+ this._oToolbarControlsModel.setProperty("/manageAppsEnabled", bResult);
1158
+ }.bind(this)).finally(resolve);
1159
+ }.bind(this));
1160
+
1161
+ this.getToolbar().setModel(this._oVersionsModel, "versions");
1162
+ this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
1163
+
1164
+ return Promise.all([oTranslationPromise, oSaveAsPromise]);
1165
+ }.bind(this));
1126
1166
  }
1127
1167
  return Promise.resolve();
1128
1168
  };
@@ -1177,6 +1217,22 @@ sap.ui.define([
1177
1217
  ManagedObject.prototype.destroy.apply(this, arguments);
1178
1218
  };
1179
1219
 
1220
+ RuntimeAuthoring.prototype._onPublishVersion = function() {
1221
+ this.getPluginManager().handleStopCutPaste();
1222
+
1223
+ return VersionsAPI.publish({
1224
+ selector: this.getRootControlInstance(),
1225
+ styleClass: Utils.getRtaStyleClassName(),
1226
+ layer: this.getLayer(),
1227
+ version: this._oVersionsModel.getProperty("/displayedVersion")
1228
+ })
1229
+ .then(function(sMessage) {
1230
+ if (sMessage !== "Error" && sMessage !== "Cancel") {
1231
+ MessageToast.show(sMessage);
1232
+ }
1233
+ });
1234
+ };
1235
+
1180
1236
  /**
1181
1237
  * Function to handle ABAP transport of the changes
1182
1238
  * @return {Promise} Returns a Promise processing the transport of changes
@@ -1203,21 +1259,21 @@ sap.ui.define([
1203
1259
  layer: this.getLayer(),
1204
1260
  appVariantDescriptors: aAppVariantDescriptor
1205
1261
  })
1206
- .then(function(sMessage) {
1207
- if (sMessage !== "Error" && sMessage !== "Cancel") {
1208
- MessageToast.show(sMessage);
1209
- if (this.getShowToolbars()) {
1210
- PersistenceWriteAPI.getResetAndPublishInfo({
1211
- selector: this.getRootControlInstance(),
1212
- layer: this.getLayer()
1213
- })
1214
- .then(function(oPublishAndResetInfo) {
1215
- this._oToolbarControlsModel.setProperty("/publishEnabled", oPublishAndResetInfo.isPublishEnabled);
1216
- this._oToolbarControlsModel.setProperty("/restoreEnabled", oPublishAndResetInfo.isResetEnabled);
1217
- }.bind(this));
1218
- }
1262
+ .then(function(sMessage) {
1263
+ if (sMessage !== "Error" && sMessage !== "Cancel") {
1264
+ MessageToast.show(sMessage);
1265
+ if (this.getShowToolbars()) {
1266
+ PersistenceWriteAPI.getResetAndPublishInfo({
1267
+ selector: this.getRootControlInstance(),
1268
+ layer: this.getLayer()
1269
+ })
1270
+ .then(function(oPublishAndResetInfo) {
1271
+ this._oToolbarControlsModel.setProperty("/publishEnabled", oPublishAndResetInfo.isPublishEnabled);
1272
+ this._oToolbarControlsModel.setProperty("/restoreEnabled", oPublishAndResetInfo.isResetEnabled);
1273
+ }.bind(this));
1219
1274
  }
1220
- }.bind(this));
1275
+ }
1276
+ }.bind(this));
1221
1277
  }.bind(this));
1222
1278
  }.bind(this))["catch"](showTechnicalError);
1223
1279
  };
@@ -1237,6 +1293,8 @@ sap.ui.define([
1237
1293
  selector: oSelector,
1238
1294
  layer: sLayer
1239
1295
  }).then(function () {
1296
+ // avoids the data loss popup; a reload is triggered later and will destroy RTA & the command stack
1297
+ this.getCommandStack().removeAllCommands(true);
1240
1298
  ReloadInfoAPI.removeInfoSessionStorage(oSelector);
1241
1299
  var oReloadInfo = {
1242
1300
  isDraftAvailable: ReloadInfoAPI.hasVersionParameterWithValue({value: sLayer}, this._getUShellService("URLParsing")),
@@ -1337,10 +1395,7 @@ sap.ui.define([
1337
1395
  }).then(function(sAction) {
1338
1396
  if (sAction === MessageBox.Action.OK) {
1339
1397
  RuntimeAuthoring.enableRestart(sLayer, this.getRootControlInstance());
1340
- return this._deleteChanges()
1341
- .then(function () {
1342
- this.getCommandStack().removeAllCommands();
1343
- }.bind(this));
1398
+ return this._deleteChanges();
1344
1399
  }
1345
1400
  return undefined;
1346
1401
  }.bind(this));
@@ -1503,9 +1558,9 @@ sap.ui.define([
1503
1558
  return mParsedHash;
1504
1559
  }
1505
1560
 
1506
- var sVersionParameter = FlexUtils.getParameter(flexLibrary.Versions.UrlParameter, this._getUShellService("URLParsing"));
1561
+ var sVersionParameter = FlexUtils.getParameter(Version.UrlParameter, this._getUShellService("URLParsing"));
1507
1562
  if (sVersionParameter) {
1508
- delete mParsedHash.params[flexLibrary.Versions.UrlParameter];
1563
+ delete mParsedHash.params[Version.UrlParameter];
1509
1564
  } else if (
1510
1565
  (this._isDraftAvailable() || bTriggerReload /* for discarding of dirty changes */) &&
1511
1566
  !oReloadInfo.hasHigherLayerChanges &&
@@ -1545,19 +1600,13 @@ sap.ui.define([
1545
1600
  return undefined;
1546
1601
  }
1547
1602
 
1548
- // allContexts do not change the url parameter to trigger a reload
1549
- if (
1550
- oReloadInfo.allContexts &&
1551
- !oReloadInfo.hasHigherLayerChanges &&
1552
- this._getUShellService("AppLifeCycle")
1553
- ) {
1603
+ if (oReloadInfo.hasHigherLayerChanges || oReloadInfo.hasVersionUrlParameter) {
1604
+ mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
1605
+ mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, mParsedHash, false);
1606
+ this._triggerCrossAppNavigation(mParsedHash);
1607
+ } else {
1554
1608
  this._getUShellService("AppLifeCycle").reloadCurrentApp();
1555
1609
  }
1556
-
1557
- mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
1558
- mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, mParsedHash, false);
1559
- this._triggerCrossAppNavigation(mParsedHash);
1560
-
1561
1610
  // In FLP scenario we need to remove all parameters and also trigger an hard reload on reset
1562
1611
  if (oReloadInfo.triggerHardReload) {
1563
1612
  this._reloadPage();
@@ -1660,16 +1709,16 @@ sap.ui.define([
1660
1709
  };
1661
1710
 
1662
1711
  RuntimeAuthoring.prototype._triggerReloadOnStart = function(oReloadInfo) {
1663
- if (this._getUShellService("CrossApplicationNavigation")) {
1712
+ if (this._getUShellService("CrossApplicationNavigation") && this._oVersionsModel.getProperty("/versioningEnabled")) {
1664
1713
  if (oReloadInfo.isDraftAvailable) {
1665
1714
  // clears FlexState and triggers reloading of the flex data without blocking
1666
1715
  VersionsAPI.loadDraftForApplication({
1667
- selector: oReloadInfo.selector,
1716
+ control: oReloadInfo.selector,
1668
1717
  layer: oReloadInfo.layer
1669
1718
  });
1670
1719
  } else {
1671
1720
  VersionsAPI.loadVersionForApplication({
1672
- selector: oReloadInfo.selector,
1721
+ control: oReloadInfo.selector,
1673
1722
  layer: oReloadInfo.layer,
1674
1723
  allContexts: oReloadInfo.allContexts
1675
1724
  });
@@ -1687,6 +1736,7 @@ sap.ui.define([
1687
1736
  if (
1688
1737
  oReloadInfo.allContexts &&
1689
1738
  !oReloadInfo.hasHigherLayerChanges &&
1739
+ !oReloadInfo.isDraftAvailable &&
1690
1740
  this._getUShellService("AppLifeCycle")
1691
1741
  ) {
1692
1742
  this._getUShellService("AppLifeCycle").reloadCurrentApp();
@@ -1802,6 +1852,10 @@ sap.ui.define([
1802
1852
  oTabHandlingPlugin[(sNewMode === "navigation") ? "restoreTabIndex" : "removeTabIndex"]();
1803
1853
  }
1804
1854
 
1855
+ if (sCurrentMode === "adaptation") {
1856
+ this.getPluginManager().handleStopCutPaste();
1857
+ }
1858
+
1805
1859
  oTabHandlingPlugin[(sNewMode === "adaptation") ? "restoreOverlayTabIndex" : "removeOverlayTabIndex"]();
1806
1860
  oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
1807
1861
 
@@ -41,15 +41,13 @@ function(
41
41
  "use strict";
42
42
 
43
43
  /**
44
- * Class for Utils.
45
- *
46
- * @class Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
44
+ * Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
47
45
  *
46
+ * @namespace
48
47
  * @author SAP SE
49
- * @version 1.99.1
48
+ * @version 1.102.0
50
49
  *
51
50
  * @private
52
- * @static
53
51
  * @since 1.30
54
52
  * @alias sap.ui.rta.Utils
55
53
  * @experimental Since 1.30. This class is experimental and provides only limited functionality.
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  * @author SAP SE
27
- * @version 1.99.1
27
+ * @version 1.102.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -563,10 +563,10 @@ sap.ui.define([
563
563
  var oUshellContainer = FlexUtils.getUshellContainer();
564
564
  var oComponentInstance;
565
565
  if (oUshellContainer) {
566
- return oUshellContainer.getServiceAsync("AppConfiguration")
566
+ return oUshellContainer.getServiceAsync("AppLifeCycle")
567
567
  .then(function(oAppConfiguration) {
568
568
  var oApplication = oAppConfiguration.getCurrentApplication();
569
- oComponentInstance = oApplication.componentHandle.getInstance();
569
+ oComponentInstance = oApplication.componentInstance;
570
570
  if (oComponentInstance) {
571
571
  return oUshellContainer.getServiceAsync("CrossApplicationNavigation");
572
572
  }
@@ -229,8 +229,6 @@ sap.ui.define([
229
229
  return this.copyId(oEvent);
230
230
  } else if (sItemPath === oI18n.getText("MAA_DIALOG_DELETE_APPVAR")) {
231
231
  return this.deleteAppVariant(oEvent);
232
- } else if (sItemPath === oI18n.getText("MAA_DIALOG_SAVE_AS_APP")) {
233
- return this.saveAsAppVariant(oEvent);
234
232
  }
235
233
 
236
234
  return undefined;
@@ -265,21 +263,6 @@ sap.ui.define([
265
263
  return false;
266
264
  },
267
265
 
268
- saveAsAppVariant: function(oEvent) {
269
- AppVariantUtils.closeOverviewDialog();
270
-
271
- var sDescriptorUrl = this.getModelProperty("descriptorUrl", oEvent.getSource().getBindingContext());
272
-
273
- BusyIndicator.show();
274
- return AppVariantOverviewUtils.getDescriptor({
275
- appVarUrl: sDescriptorUrl,
276
- layer: _sLayer
277
- }).then(function(oAppVariantDescriptor) {
278
- BusyIndicator.hide();
279
- return RtaAppVariantFeature.onSaveAs(false, false, _sLayer, oAppVariantDescriptor);
280
- });
281
- },
282
-
283
266
  copyId: function(oEvent) {
284
267
  var sCopiedId = this.getModelProperty("appId", oEvent.getSource().getBindingContext());
285
268
  AppVariantUtils.copyId(sCopiedId);
@@ -29,10 +29,6 @@ MAA_ORIGINAL_TYPE=Original App
29
29
  MAA_APP_VARIANT_TYPE=App Variant
30
30
  #XFLD
31
31
  MAA_CURRENT_APP_STATUS=Current Status
32
- #XFLD
33
- MAA_DIALOG_SAVE_AS_APP=Save As
34
- #XTOL: Tooltip for Button 'Save As' of the App variant overview list
35
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Create New App Variant
36
32
  #XTOL: Tooltip for Button 'Copy ID'
37
33
  TOOLTIP_MAA_DIALOG_COPY_ID=Copy the ID of the app variant to the clipboard
38
34
  #XFLD
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=\u0645\u0646\u0634\u0623 \u0644\u0644\u062A\u0648
13
13
  MAA_ORIGINAL_TYPE=\u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0623\u0635\u0644\u064A
14
14
  MAA_APP_VARIANT_TYPE=\u0645\u062A\u063A\u064A\u0631 \u0627\u0644\u062A\u0637\u0628\u064A\u0642
15
15
  MAA_CURRENT_APP_STATUS=\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u062D\u0627\u0644\u064A\u0629
16
- MAA_DIALOG_SAVE_AS_APP=\u062D\u0641\u0638 \u0628\u0627\u0633\u0645
17
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=\u0625\u0646\u0634\u0627\u0621 \u0645\u062A\u063A\u064A\u0631 \u062A\u0637\u0628\u064A\u0642 \u062C\u062F\u064A\u062F
18
16
  TOOLTIP_MAA_DIALOG_COPY_ID=\u0646\u0633\u062E \u0645\u0639\u0631\u0641 \u0645\u062A\u063A\u064A\u0631 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629
19
17
  MAA_DIALOG_COPY_ID=\u0645\u0639\u0631\u0641 \u0627\u0644\u0646\u0633\u062E
20
18
  MAA_DIALOG_APP_TYPE=\u0646\u0648\u0639 \u0627\u0644\u062A\u0637\u0628\u064A\u0642
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=\u0422\u043E\u043A\u0443-\u0449\u043E \u0441\u044A\u0437\u04
13
13
  MAA_ORIGINAL_TYPE=\u041E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u043D\u043E \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
14
14
  MAA_APP_VARIANT_TYPE=\u0412\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
15
15
  MAA_CURRENT_APP_STATUS=\u0422\u0435\u043A\u0443\u0449 \u0441\u0442\u0430\u0442\u0443\u0441
16
- MAA_DIALOG_SAVE_AS_APP=\u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043A\u0430\u0442\u043E
17
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=\u0421\u044A\u0437\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u043E\u0432 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
18
16
  TOOLTIP_MAA_DIALOG_COPY_ID=\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0418\u0414 \u0437\u0430 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u0442\u043E \u043D\u0430 \u043A\u043B\u0438\u043F\u0431\u043E\u0440\u0434
19
17
  MAA_DIALOG_COPY_ID=\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435 \u0418\u0414
20
18
  MAA_DIALOG_APP_TYPE=\u0412\u0438\u0434 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435