@openui5/sap.ui.rta 1.101.0 → 1.102.2

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 (222) hide show
  1. package/THIRDPARTY.txt +1 -1
  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 +132 -83
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +6 -7
  9. package/src/sap/ui/rta/appVariant/Feature.js +3 -11
  10. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +0 -17
  11. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n.properties +0 -4
  12. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ar.properties +0 -2
  13. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_bg.properties +0 -2
  14. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ca.properties +0 -2
  15. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cs.properties +0 -2
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cy.properties +0 -2
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_da.properties +0 -2
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_de.properties +0 -2
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_el.properties +0 -2
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en.properties +0 -2
  21. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_GB.properties +0 -2
  22. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +0 -2
  23. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saprigi.properties +0 -2
  24. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +0 -2
  25. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es.properties +0 -2
  26. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es_MX.properties +0 -2
  27. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_et.properties +0 -2
  28. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fi.properties +0 -2
  29. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr.properties +0 -2
  30. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr_CA.properties +0 -2
  31. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hi.properties +0 -2
  32. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hr.properties +0 -2
  33. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hu.properties +0 -2
  34. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_id.properties +0 -2
  35. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_it.properties +0 -2
  36. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_iw.properties +0 -2
  37. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ja.properties +0 -2
  38. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_kk.properties +0 -2
  39. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ko.properties +0 -2
  40. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lt.properties +0 -2
  41. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lv.properties +0 -2
  42. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ms.properties +0 -2
  43. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_nl.properties +0 -2
  44. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_no.properties +0 -2
  45. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pl.properties +0 -2
  46. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt.properties +0 -2
  47. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt_PT.properties +0 -2
  48. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ro.properties +0 -2
  49. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ru.properties +0 -2
  50. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sh.properties +0 -2
  51. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sk.properties +0 -2
  52. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sl.properties +0 -2
  53. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sv.properties +0 -2
  54. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_th.properties +0 -2
  55. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_tr.properties +0 -2
  56. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_uk.properties +0 -2
  57. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_vi.properties +0 -2
  58. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_CN.properties +0 -2
  59. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_TW.properties +0 -2
  60. package/src/sap/ui/rta/appVariant/manageApps/webapp/view/ManageApps.view.xml +0 -1
  61. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  62. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  63. package/src/sap/ui/rta/command/AddXML.js +1 -1
  64. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  65. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  66. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  67. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  68. package/src/sap/ui/rta/command/Combine.js +1 -1
  69. package/src/sap/ui/rta/command/CommandFactory.js +5 -2
  70. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  71. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  72. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  73. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  74. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  75. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  76. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  77. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  78. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  79. package/src/sap/ui/rta/command/LREPSerializer.js +3 -3
  80. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  81. package/src/sap/ui/rta/command/Move.js +1 -1
  82. package/src/sap/ui/rta/command/Property.js +1 -1
  83. package/src/sap/ui/rta/command/Remove.js +1 -1
  84. package/src/sap/ui/rta/command/Rename.js +1 -1
  85. package/src/sap/ui/rta/command/Resize.js +1 -1
  86. package/src/sap/ui/rta/command/Reveal.js +1 -1
  87. package/src/sap/ui/rta/command/Settings.js +1 -1
  88. package/src/sap/ui/rta/command/Split.js +1 -1
  89. package/src/sap/ui/rta/command/Stack.js +1 -1
  90. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  91. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +82 -0
  92. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  93. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  94. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  95. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  96. package/src/sap/ui/rta/library.js +2 -2
  97. package/src/sap/ui/rta/messagebundle.properties +11 -1
  98. package/src/sap/ui/rta/messagebundle_ar.properties +5 -0
  99. package/src/sap/ui/rta/messagebundle_bg.properties +7 -2
  100. package/src/sap/ui/rta/messagebundle_ca.properties +5 -0
  101. package/src/sap/ui/rta/messagebundle_cs.properties +5 -0
  102. package/src/sap/ui/rta/messagebundle_cy.properties +5 -0
  103. package/src/sap/ui/rta/messagebundle_da.properties +5 -0
  104. package/src/sap/ui/rta/messagebundle_de.properties +5 -0
  105. package/src/sap/ui/rta/messagebundle_el.properties +5 -0
  106. package/src/sap/ui/rta/messagebundle_en.properties +5 -0
  107. package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -0
  108. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
  109. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -0
  110. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +5 -0
  111. package/src/sap/ui/rta/messagebundle_es.properties +5 -0
  112. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -0
  113. package/src/sap/ui/rta/messagebundle_et.properties +5 -0
  114. package/src/sap/ui/rta/messagebundle_fi.properties +5 -0
  115. package/src/sap/ui/rta/messagebundle_fr.properties +5 -0
  116. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -0
  117. package/src/sap/ui/rta/messagebundle_hi.properties +5 -0
  118. package/src/sap/ui/rta/messagebundle_hr.properties +5 -0
  119. package/src/sap/ui/rta/messagebundle_hu.properties +5 -0
  120. package/src/sap/ui/rta/messagebundle_id.properties +5 -0
  121. package/src/sap/ui/rta/messagebundle_it.properties +5 -0
  122. package/src/sap/ui/rta/messagebundle_iw.properties +5 -0
  123. package/src/sap/ui/rta/messagebundle_ja.properties +5 -0
  124. package/src/sap/ui/rta/messagebundle_kk.properties +5 -0
  125. package/src/sap/ui/rta/messagebundle_ko.properties +5 -0
  126. package/src/sap/ui/rta/messagebundle_lt.properties +5 -0
  127. package/src/sap/ui/rta/messagebundle_lv.properties +5 -0
  128. package/src/sap/ui/rta/messagebundle_ms.properties +5 -0
  129. package/src/sap/ui/rta/messagebundle_nl.properties +5 -0
  130. package/src/sap/ui/rta/messagebundle_no.properties +5 -0
  131. package/src/sap/ui/rta/messagebundle_pl.properties +5 -0
  132. package/src/sap/ui/rta/messagebundle_pt.properties +5 -0
  133. package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -0
  134. package/src/sap/ui/rta/messagebundle_ro.properties +5 -0
  135. package/src/sap/ui/rta/messagebundle_ru.properties +5 -0
  136. package/src/sap/ui/rta/messagebundle_sh.properties +5 -0
  137. package/src/sap/ui/rta/messagebundle_sk.properties +5 -0
  138. package/src/sap/ui/rta/messagebundle_sl.properties +5 -0
  139. package/src/sap/ui/rta/messagebundle_sv.properties +5 -0
  140. package/src/sap/ui/rta/messagebundle_th.properties +5 -0
  141. package/src/sap/ui/rta/messagebundle_tr.properties +5 -0
  142. package/src/sap/ui/rta/messagebundle_uk.properties +5 -0
  143. package/src/sap/ui/rta/messagebundle_vi.properties +5 -0
  144. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -0
  145. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -0
  146. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  147. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  148. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  149. package/src/sap/ui/rta/plugin/CompVariant.js +85 -66
  150. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  151. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  152. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  153. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  154. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  155. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  156. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  157. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  158. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  159. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  160. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  161. package/src/sap/ui/rta/plugin/RenameHandler.js +3 -1
  162. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  163. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  164. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  165. package/src/sap/ui/rta/plugin/Split.js +1 -1
  166. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  167. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  168. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  169. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +20 -10
  170. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  171. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  172. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  173. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  174. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  175. package/src/sap/ui/rta/service/Action.js +1 -1
  176. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  177. package/src/sap/ui/rta/service/Outline.js +1 -1
  178. package/src/sap/ui/rta/service/Property.js +1 -1
  179. package/src/sap/ui/rta/service/Selection.js +1 -1
  180. package/src/sap/ui/rta/themes/base/AddIFrame.less +37 -29
  181. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +65 -62
  182. package/src/sap/ui/rta/themes/base/ContextMenu.less +25 -0
  183. package/src/sap/ui/rta/themes/base/Dialogs.less +79 -0
  184. package/src/sap/ui/rta/themes/base/FieldRepository.less +14 -61
  185. package/src/sap/ui/rta/themes/base/Overlay.less +52 -104
  186. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +7 -1
  187. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +195 -38
  188. package/src/sap/ui/rta/themes/base/Toolbar.base.less +23 -154
  189. package/src/sap/ui/rta/themes/base/Toolbar.fiori.less +2 -21
  190. package/src/sap/ui/rta/themes/base/Toolbar.personalization.less +3 -14
  191. package/src/sap/ui/rta/themes/base/Toolbar.standalone.less +0 -9
  192. package/src/sap/ui/rta/themes/base/library.source.less +2 -0
  193. package/src/sap/ui/rta/themes/sap_hcb/ChangeVisualization.less +7 -0
  194. package/src/sap/ui/rta/themes/sap_hcb/ContextMenu.less +5 -0
  195. package/src/sap/ui/rta/themes/sap_hcb/Dialogs.less +28 -0
  196. package/src/sap/ui/rta/themes/sap_hcb/FieldRepository.less +18 -0
  197. package/src/sap/ui/rta/themes/sap_hcb/Overlay.less +52 -12
  198. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.adaptation.less +38 -0
  199. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.base.less +14 -2
  200. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.personalization.less +8 -2
  201. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +5 -2
  202. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +29 -14
  203. package/src/sap/ui/rta/toolbar/Adaptation.js +65 -22
  204. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  205. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  206. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  207. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  208. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  209. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  210. package/src/sap/ui/rta/toolbar/VersionHistory.fragment.xml +2 -1
  211. package/src/sap/ui/rta/toolbar/translation/DownloadTranslationDialog.fragment.xml +20 -17
  212. package/src/sap/ui/rta/toolbar/translation/Translation.js +104 -98
  213. package/src/sap/ui/rta/toolbar/translation/UploadTranslationDialog.fragment.xml +4 -2
  214. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  215. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  216. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  217. package/src/sap/ui/rta/util/adaptationStarter.js +108 -80
  218. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +9 -3
  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 +23 -10
  222. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.standalone.less +0 -9
package/THIRDPARTY.txt CHANGED
@@ -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.38
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.101.0",
3
+ "version": "1.102.2",
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.101.0",
18
- "@openui5/sap.ui.core": "1.101.0",
19
- "@openui5/sap.ui.dt": "1.101.0",
20
- "@openui5/sap.ui.fl": "1.101.0",
21
- "@openui5/sap.ui.layout": "1.101.0"
17
+ "@openui5/sap.m": "1.102.2",
18
+ "@openui5/sap.ui.core": "1.102.2",
19
+ "@openui5/sap.ui.dt": "1.102.2",
20
+ "@openui5/sap.ui.fl": "1.102.2",
21
+ "@openui5/sap.ui.layout": "1.102.2"
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.101.0</version>
9
+ <version>1.102.2</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.101.0
60
+ * @version 1.102.2
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.101.0
119
+ * @version 1.102.2
118
120
  * @constructor
119
121
  * @private
120
122
  * @since 1.30
@@ -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();
@@ -886,8 +891,12 @@ sap.ui.define([
886
891
  };
887
892
 
888
893
  RuntimeAuthoring.prototype._serializeAndSave = function() {
894
+ if (this.getShowToolbars()) {
895
+ this.bPersistedDataTranslatable = this._oToolbarControlsModel.getProperty("/translationEnabled");
896
+ }
889
897
  // Save changes on the current layer and discard dirty changes on other layers
890
- 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);
891
900
  };
892
901
 
893
902
  RuntimeAuthoring.prototype._serializeToLrep = function() {
@@ -920,7 +929,7 @@ sap.ui.define([
920
929
  })
921
930
  .then(function(sAction) {
922
931
  if (sAction === MessageBox.Action.OK) {
923
- this._activate(sVersionTitle);
932
+ return this._activate(sVersionTitle);
924
933
  }
925
934
  }.bind(this));
926
935
  }
@@ -930,10 +939,15 @@ sap.ui.define([
930
939
  RuntimeAuthoring.prototype._activate = function(sVersionTitle) {
931
940
  var sLayer = this.getLayer();
932
941
  var oSelector = this.getRootControlInstance();
933
- return VersionsAPI.activate({
934
- layer: sLayer,
935
- selector: oSelector,
936
- title: sVersionTitle
942
+ var sDisplayedVersion = this._oVersionsModel.getProperty("/displayedVersion");
943
+ return this._serializeAndSave()
944
+ .then(function () {
945
+ return VersionsAPI.activate({
946
+ layer: sLayer,
947
+ control: oSelector,
948
+ title: sVersionTitle,
949
+ displayedVersion: sDisplayedVersion
950
+ });
937
951
  }).then(function () {
938
952
  this._showMessageToast("MSG_DRAFT_ACTIVATION_SUCCESS");
939
953
  this.bInitialResetEnabled = true;
@@ -972,7 +986,7 @@ sap.ui.define([
972
986
  if (sAction === MessageBox.Action.OK) {
973
987
  return VersionsAPI.discardDraft({
974
988
  layer: this.getLayer(),
975
- selector: this.getRootControlInstance(),
989
+ control: this.getRootControlInstance(),
976
990
  updateState: true
977
991
  })
978
992
  .then(this._handleDiscard.bind(this));
@@ -1027,11 +1041,11 @@ sap.ui.define([
1027
1041
  }
1028
1042
  var mParsedHash = FlexUtils.getParsedURLHash(this._getUShellService("URLParsing"));
1029
1043
  VersionsAPI.loadVersionForApplication({
1030
- selector: this.getRootControlInstance(),
1044
+ control: this.getRootControlInstance(),
1031
1045
  layer: this.getLayer(),
1032
1046
  version: sVersion
1033
1047
  });
1034
- var aVersionsParameter = mParsedHash.params[sap.ui.fl.Versions.UrlParameter];
1048
+ var aVersionsParameter = mParsedHash.params[Version.UrlParameter];
1035
1049
  if (
1036
1050
  aVersionsParameter &&
1037
1051
  aVersionsParameter[0] === sVersion &&
@@ -1040,7 +1054,7 @@ sap.ui.define([
1040
1054
  // RTA was started with a version parameter, the displayed version has changed and the key user switches back
1041
1055
  this._getUShellService("AppLifeCycle").reloadCurrentApp();
1042
1056
  } else {
1043
- mParsedHash.params[sap.ui.fl.Versions.UrlParameter] = sVersion;
1057
+ mParsedHash.params[Version.UrlParameter] = sVersion;
1044
1058
  this._triggerCrossAppNavigation(mParsedHash);
1045
1059
  }
1046
1060
  return undefined;
@@ -1067,6 +1081,7 @@ sap.ui.define([
1067
1081
 
1068
1082
  if (!bUserLayer) {
1069
1083
  oProperties.transport = this._onTransport.bind(this);
1084
+ oProperties.publishVersion = this._onPublishVersion.bind(this);
1070
1085
  oProperties.undo = this._onUndo.bind(this);
1071
1086
  oProperties.redo = this._onRedo.bind(this);
1072
1087
  oProperties.modeChange = this._onModeChange.bind(this);
@@ -1090,47 +1105,66 @@ sap.ui.define([
1090
1105
  }
1091
1106
  this.addDependent(oToolbar, "toolbar");
1092
1107
 
1093
- return oToolbar.onFragmentLoaded().then(function() {
1094
- var bSaveAsAvailable = aButtonsVisibility.saveAsAvailable;
1095
- var bExtendedOverview = bSaveAsAvailable && RtaAppVariantFeature.isOverviewExtended();
1096
- var oUriParameters = UriParameters.fromURL(window.location.href);
1097
- // the "Visualization" tab should not be visible if the "fiori-tools-rta-mode" URL-parameter is set to any value but "false"
1098
- var bVisualizationButtonVisible;
1099
- if (oUriParameters.has("fiori-tools-rta-mode") && oUriParameters.get("fiori-tools-rta-mode") !== "false") {
1100
- bVisualizationButtonVisible = false;
1101
- } else {
1102
- bVisualizationButtonVisible = true;
1103
- }
1108
+ return Promise.all([oToolbar.onFragmentLoaded(), FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer())])
1109
+ .then(function(aArguments) {
1110
+ var bTranslationAvailable = aArguments[1];
1111
+ var bSaveAsAvailable = aButtonsVisibility.saveAsAvailable;
1112
+ var bExtendedOverview = bSaveAsAvailable && RtaAppVariantFeature.isOverviewExtended();
1113
+ var oUriParameters = UriParameters.fromURL(window.location.href);
1114
+ // the "Visualization" tab should not be visible if the "fiori-tools-rta-mode" URL-parameter is set to any value but "false"
1115
+ var bVisualizationButtonVisible;
1116
+ bVisualizationButtonVisible = !oUriParameters.has("fiori-tools-rta-mode") || oUriParameters.get("fiori-tools-rta-mode") === "false";
1117
+ this.bPersistedDataTranslatable = false;
1118
+
1119
+ this._oToolbarControlsModel = new JSONModel({
1120
+ undoEnabled: false,
1121
+ redoEnabled: false,
1122
+ translationVisible: bTranslationAvailable,
1123
+ translationEnabled: this.bPersistedDataTranslatable,
1124
+ publishVisible: aButtonsVisibility.publishAvailable,
1125
+ publishEnabled: this.bInitialPublishEnabled,
1126
+ restoreEnabled: this.bInitialResetEnabled,
1127
+ appVariantsOverviewVisible: bSaveAsAvailable && bExtendedOverview,
1128
+ appVariantsOverviewEnabled: bSaveAsAvailable && bExtendedOverview,
1129
+ saveAsVisible: bSaveAsAvailable,
1130
+ saveAsEnabled: false,
1131
+ manageAppsVisible: bSaveAsAvailable && !bExtendedOverview,
1132
+ manageAppsEnabled: bSaveAsAvailable && !bExtendedOverview,
1133
+ modeSwitcher: this.getMode(),
1134
+ visualizationButtonVisible: bVisualizationButtonVisible
1135
+ });
1104
1136
 
1105
- this._oToolbarControlsModel = new JSONModel({
1106
- undoEnabled: false,
1107
- redoEnabled: false,
1108
- translationVisible: false,
1109
- translationEnabled: false,
1110
- publishVisible: aButtonsVisibility.publishAvailable,
1111
- publishEnabled: this.bInitialPublishEnabled,
1112
- restoreEnabled: this.bInitialResetEnabled,
1113
- appVariantsOverviewVisible: bSaveAsAvailable && bExtendedOverview,
1114
- appVariantsOverviewEnabled: bSaveAsAvailable && bExtendedOverview,
1115
- saveAsVisible: bSaveAsAvailable,
1116
- saveAsEnabled: false,
1117
- manageAppsVisible: bSaveAsAvailable && !bExtendedOverview,
1118
- manageAppsEnabled: bSaveAsAvailable && !bExtendedOverview,
1119
- modeSwitcher: this.getMode(),
1120
- visualizationButtonVisible: bVisualizationButtonVisible
1121
- });
1137
+ var oTranslationPromise = new Promise(function (resolve) {
1138
+ if (!bTranslationAvailable) {
1139
+ resolve();
1140
+ return;
1141
+ }
1122
1142
 
1123
- if (bSaveAsAvailable) {
1124
- RtaAppVariantFeature.isManifestSupported().then(function (bResult) {
1125
- this._oToolbarControlsModel.setProperty("/saveAsEnabled", bResult);
1126
- this._oToolbarControlsModel.setProperty("/appVariantsOverviewEnabled", bResult);
1127
- this._oToolbarControlsModel.setProperty("/manageAppsEnabled", bResult);
1143
+ TranslationAPI.getSourceLanguages({selector: this.getRootControlInstance(), layer: this.getLayer()})
1144
+ .then(function (aSourceLanguages) {
1145
+ this.bPersistedDataTranslatable = aSourceLanguages.length > 0;
1146
+ this._oToolbarControlsModel.setProperty("/translationEnabled", this.bPersistedDataTranslatable);
1147
+ }.bind(this)).finally(resolve);
1128
1148
  }.bind(this));
1129
- }
1130
1149
 
1131
- this.getToolbar().setModel(this._oVersionsModel, "versions");
1132
- this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
1133
- }.bind(this));
1150
+ var oSaveAsPromise = new Promise(function (resolve) {
1151
+ if (!bSaveAsAvailable) {
1152
+ resolve();
1153
+ return;
1154
+ }
1155
+
1156
+ RtaAppVariantFeature.isManifestSupported().then(function (bResult) {
1157
+ this._oToolbarControlsModel.setProperty("/saveAsEnabled", bResult);
1158
+ this._oToolbarControlsModel.setProperty("/appVariantsOverviewEnabled", bResult);
1159
+ this._oToolbarControlsModel.setProperty("/manageAppsEnabled", bResult);
1160
+ }.bind(this)).finally(resolve);
1161
+ }.bind(this));
1162
+
1163
+ this.getToolbar().setModel(this._oVersionsModel, "versions");
1164
+ this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
1165
+
1166
+ return Promise.all([oTranslationPromise, oSaveAsPromise]);
1167
+ }.bind(this));
1134
1168
  }
1135
1169
  return Promise.resolve();
1136
1170
  };
@@ -1185,6 +1219,22 @@ sap.ui.define([
1185
1219
  ManagedObject.prototype.destroy.apply(this, arguments);
1186
1220
  };
1187
1221
 
1222
+ RuntimeAuthoring.prototype._onPublishVersion = function() {
1223
+ this.getPluginManager().handleStopCutPaste();
1224
+
1225
+ return VersionsAPI.publish({
1226
+ selector: this.getRootControlInstance(),
1227
+ styleClass: Utils.getRtaStyleClassName(),
1228
+ layer: this.getLayer(),
1229
+ version: this._oVersionsModel.getProperty("/displayedVersion")
1230
+ })
1231
+ .then(function(sMessage) {
1232
+ if (sMessage !== "Error" && sMessage !== "Cancel") {
1233
+ MessageToast.show(sMessage);
1234
+ }
1235
+ });
1236
+ };
1237
+
1188
1238
  /**
1189
1239
  * Function to handle ABAP transport of the changes
1190
1240
  * @return {Promise} Returns a Promise processing the transport of changes
@@ -1211,21 +1261,21 @@ sap.ui.define([
1211
1261
  layer: this.getLayer(),
1212
1262
  appVariantDescriptors: aAppVariantDescriptor
1213
1263
  })
1214
- .then(function(sMessage) {
1215
- if (sMessage !== "Error" && sMessage !== "Cancel") {
1216
- MessageToast.show(sMessage);
1217
- if (this.getShowToolbars()) {
1218
- PersistenceWriteAPI.getResetAndPublishInfo({
1219
- selector: this.getRootControlInstance(),
1220
- layer: this.getLayer()
1221
- })
1222
- .then(function(oPublishAndResetInfo) {
1223
- this._oToolbarControlsModel.setProperty("/publishEnabled", oPublishAndResetInfo.isPublishEnabled);
1224
- this._oToolbarControlsModel.setProperty("/restoreEnabled", oPublishAndResetInfo.isResetEnabled);
1225
- }.bind(this));
1226
- }
1264
+ .then(function(sMessage) {
1265
+ if (sMessage !== "Error" && sMessage !== "Cancel") {
1266
+ MessageToast.show(sMessage);
1267
+ if (this.getShowToolbars()) {
1268
+ PersistenceWriteAPI.getResetAndPublishInfo({
1269
+ selector: this.getRootControlInstance(),
1270
+ layer: this.getLayer()
1271
+ })
1272
+ .then(function(oPublishAndResetInfo) {
1273
+ this._oToolbarControlsModel.setProperty("/publishEnabled", oPublishAndResetInfo.isPublishEnabled);
1274
+ this._oToolbarControlsModel.setProperty("/restoreEnabled", oPublishAndResetInfo.isResetEnabled);
1275
+ }.bind(this));
1227
1276
  }
1228
- }.bind(this));
1277
+ }
1278
+ }.bind(this));
1229
1279
  }.bind(this));
1230
1280
  }.bind(this))["catch"](showTechnicalError);
1231
1281
  };
@@ -1510,9 +1560,9 @@ sap.ui.define([
1510
1560
  return mParsedHash;
1511
1561
  }
1512
1562
 
1513
- var sVersionParameter = FlexUtils.getParameter(flexLibrary.Versions.UrlParameter, this._getUShellService("URLParsing"));
1563
+ var sVersionParameter = FlexUtils.getParameter(Version.UrlParameter, this._getUShellService("URLParsing"));
1514
1564
  if (sVersionParameter) {
1515
- delete mParsedHash.params[flexLibrary.Versions.UrlParameter];
1565
+ delete mParsedHash.params[Version.UrlParameter];
1516
1566
  } else if (
1517
1567
  (this._isDraftAvailable() || bTriggerReload /* for discarding of dirty changes */) &&
1518
1568
  !oReloadInfo.hasHigherLayerChanges &&
@@ -1552,19 +1602,13 @@ sap.ui.define([
1552
1602
  return undefined;
1553
1603
  }
1554
1604
 
1555
- // allContexts do not change the url parameter to trigger a reload
1556
- if (
1557
- oReloadInfo.allContexts &&
1558
- !oReloadInfo.hasHigherLayerChanges &&
1559
- this._getUShellService("AppLifeCycle")
1560
- ) {
1605
+ if (oReloadInfo.hasHigherLayerChanges || oReloadInfo.hasVersionUrlParameter) {
1606
+ mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
1607
+ mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, mParsedHash, false);
1608
+ this._triggerCrossAppNavigation(mParsedHash);
1609
+ } else {
1561
1610
  this._getUShellService("AppLifeCycle").reloadCurrentApp();
1562
1611
  }
1563
-
1564
- mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
1565
- mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, mParsedHash, false);
1566
- this._triggerCrossAppNavigation(mParsedHash);
1567
-
1568
1612
  // In FLP scenario we need to remove all parameters and also trigger an hard reload on reset
1569
1613
  if (oReloadInfo.triggerHardReload) {
1570
1614
  this._reloadPage();
@@ -1671,12 +1715,12 @@ sap.ui.define([
1671
1715
  if (oReloadInfo.isDraftAvailable) {
1672
1716
  // clears FlexState and triggers reloading of the flex data without blocking
1673
1717
  VersionsAPI.loadDraftForApplication({
1674
- selector: oReloadInfo.selector,
1718
+ control: oReloadInfo.selector,
1675
1719
  layer: oReloadInfo.layer
1676
1720
  });
1677
1721
  } else {
1678
1722
  VersionsAPI.loadVersionForApplication({
1679
- selector: oReloadInfo.selector,
1723
+ control: oReloadInfo.selector,
1680
1724
  layer: oReloadInfo.layer,
1681
1725
  allContexts: oReloadInfo.allContexts
1682
1726
  });
@@ -1694,6 +1738,7 @@ sap.ui.define([
1694
1738
  if (
1695
1739
  oReloadInfo.allContexts &&
1696
1740
  !oReloadInfo.hasHigherLayerChanges &&
1741
+ !oReloadInfo.isDraftAvailable &&
1697
1742
  this._getUShellService("AppLifeCycle")
1698
1743
  ) {
1699
1744
  this._getUShellService("AppLifeCycle").reloadCurrentApp();
@@ -1809,6 +1854,10 @@ sap.ui.define([
1809
1854
  oTabHandlingPlugin[(sNewMode === "navigation") ? "restoreTabIndex" : "removeTabIndex"]();
1810
1855
  }
1811
1856
 
1857
+ if (sCurrentMode === "adaptation") {
1858
+ this.getPluginManager().handleStopCutPaste();
1859
+ }
1860
+
1812
1861
  oTabHandlingPlugin[(sNewMode === "adaptation") ? "restoreOverlayTabIndex" : "removeOverlayTabIndex"]();
1813
1862
  oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
1814
1863
 
@@ -45,7 +45,7 @@ function(
45
45
  *
46
46
  * @namespace
47
47
  * @author SAP SE
48
- * @version 1.101.0
48
+ * @version 1.102.2
49
49
  *
50
50
  * @private
51
51
  * @since 1.30
@@ -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.101.0
27
+ * @version 1.102.2
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -43,11 +43,12 @@ sap.ui.define([
43
43
 
44
44
  xhr.onload = function() {
45
45
  if (xhr.status >= 200 && xhr.status < 400) {
46
- resolve(xhr.response);
46
+ resolve(xhr.response === "true");
47
47
  } else {
48
48
  var oError = new Error(xhr.statusText);
49
49
  oError.status = xhr.status;
50
- reject(oError);
50
+ Log.error("Response status code is: " + oError.status, "Stacktrace: " + oError.stack);
51
+ reject(false);
51
52
  }
52
53
  };
53
54
  });
@@ -563,10 +564,10 @@ sap.ui.define([
563
564
  var oUshellContainer = FlexUtils.getUshellContainer();
564
565
  var oComponentInstance;
565
566
  if (oUshellContainer) {
566
- return oUshellContainer.getServiceAsync("AppConfiguration")
567
+ return oUshellContainer.getServiceAsync("AppLifeCycle")
567
568
  .then(function(oAppConfiguration) {
568
569
  var oApplication = oAppConfiguration.getCurrentApplication();
569
- oComponentInstance = oApplication.componentHandle.getInstance();
570
+ oComponentInstance = oApplication.componentInstance;
570
571
  if (oComponentInstance) {
571
572
  return oUshellContainer.getServiceAsync("CrossApplicationNavigation");
572
573
  }
@@ -593,9 +594,7 @@ sap.ui.define([
593
594
  };
594
595
 
595
596
  AppVariantUtils.handleBeforeUnloadEvent = function () {
596
- // oEvent.preventDefault();
597
- var sMessage = AppVariantUtils.getText("MSG_DO_NOT_CLOSE_BROWSER");
598
- return sMessage;
597
+ return AppVariantUtils.getText("MSG_DO_NOT_CLOSE_BROWSER");
599
598
  };
600
599
 
601
600
  AppVariantUtils.showMessage = function(sMessageKey) {
@@ -12,8 +12,7 @@ sap.ui.define([
12
12
  "sap/ui/fl/registry/Settings",
13
13
  "sap/ui/fl/write/_internal/appVariant/AppVariantFactory",
14
14
  "sap/ui/fl/write/api/FeaturesAPI",
15
- "sap/base/util/merge",
16
- "sap/base/Log"
15
+ "sap/base/util/merge"
17
16
  ], function(
18
17
  FlexUtils,
19
18
  AppVariantUtils,
@@ -22,8 +21,7 @@ sap.ui.define([
22
21
  Settings,
23
22
  AppVariantFactory,
24
23
  FeaturesAPI,
25
- merge,
26
- Log
24
+ merge
27
25
  ) {
28
26
  "use strict";
29
27
 
@@ -156,13 +154,7 @@ sap.ui.define([
156
154
  },
157
155
  isManifestSupported: function() {
158
156
  var oDescriptor = fnGetDescriptor();
159
-
160
- return AppVariantUtils.getManifirstSupport(oDescriptor["sap.app"].id).then(function(oResult) {
161
- return oResult.response;
162
- }).catch(function(oError) {
163
- Log.error("Response status code is: " + oError.status, "Stacktrace: " + oError.stack);
164
- return false;
165
- });
157
+ return AppVariantUtils.getManifirstSupport(oDescriptor["sap.app"].id);
166
158
  },
167
159
  /**
168
160
  * @param {object} oRootControl - Root control of an app (variant)
@@ -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
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Acabat de crear
13
13
  MAA_ORIGINAL_TYPE=Aplicaci\u00F3 original
14
14
  MAA_APP_VARIANT_TYPE=Variant d'aplicaci\u00F3
15
15
  MAA_CURRENT_APP_STATUS=Estat actual
16
- MAA_DIALOG_SAVE_AS_APP=Desar com a
17
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Crear nova variant d\u2019aplicaci\u00F3
18
16
  TOOLTIP_MAA_DIALOG_COPY_ID=Copiar l'ID de la variant d'aplicaci\u00F3 al porta-retalls
19
17
  MAA_DIALOG_COPY_ID=Copiar ID
20
18
  MAA_DIALOG_APP_TYPE=Afegir tipus
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Pr\u00E1v\u011B vytvo\u0159eno
13
13
  MAA_ORIGINAL_TYPE=P\u016Fvodn\u00ED aplikace
14
14
  MAA_APP_VARIANT_TYPE=Varianta aplikace
15
15
  MAA_CURRENT_APP_STATUS=Aktu\u00E1ln\u00ED status
16
- MAA_DIALOG_SAVE_AS_APP=Ulo\u017Eit jako
17
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Vytvo\u0159it novou variantu aplikace
18
16
  TOOLTIP_MAA_DIALOG_COPY_ID=Kop\u00EDrovat ID varianty aplikace do mezipam\u011Bti
19
17
  MAA_DIALOG_COPY_ID=ID kopie
20
18
  MAA_DIALOG_APP_TYPE=Typ aplikace
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Newydd ei Greu
13
13
  MAA_ORIGINAL_TYPE=Ap Gwreiddiol
14
14
  MAA_APP_VARIANT_TYPE=Amrywiad Ap
15
15
  MAA_CURRENT_APP_STATUS=Statws Cyfredol
16
- MAA_DIALOG_SAVE_AS_APP=Cadw Fel
17
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Creu Amrywiad Ap Newydd
18
16
  TOOLTIP_MAA_DIALOG_COPY_ID=Cop\u00EFo ID yr amrywiad ap i'r clipfwrdd
19
17
  MAA_DIALOG_COPY_ID=Cop\u00EFo ID
20
18
  MAA_DIALOG_APP_TYPE=Math o Ap
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Netop oprettet
13
13
  MAA_ORIGINAL_TYPE=Original app
14
14
  MAA_APP_VARIANT_TYPE=App-variant
15
15
  MAA_CURRENT_APP_STATUS=Aktuel status
16
- MAA_DIALOG_SAVE_AS_APP=Gem som
17
- TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Opret ny app-variant
18
16
  TOOLTIP_MAA_DIALOG_COPY_ID=Kopier ID'en for app-varianten til udklipsholderen
19
17
  MAA_DIALOG_COPY_ID=Kopier ID
20
18
  MAA_DIALOG_APP_TYPE=App-type