@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
@@ -93,8 +93,8 @@ sap.ui.define([
93
93
  oCommand.setJsOnly(bJsOnly);
94
94
  if (oCommand.setVariantIndependent) {
95
95
  oCommand.setVariantIndependent(bVariantIndependent);
96
- } else {
97
- Log.error("the variant independent Flag is not available for the action used in: ", sChangeType);
96
+ } else if (bVariantIndependent) {
97
+ Log.error("the variant independent Flag is not available for the action", sChangeType);
98
98
  }
99
99
  return true;
100
100
  }
@@ -351,6 +351,9 @@ sap.ui.define([
351
351
  configure: configureSplitCommand,
352
352
  adjustForBinding: adjustSplitCommand
353
353
  },
354
+ resize: {
355
+ clazz: "sap/ui/rta/command/Resize"
356
+ },
354
357
  "switch": {
355
358
  clazz: "sap/ui/rta/command/ControlVariantSwitch"
356
359
  },
@@ -381,6 +384,9 @@ sap.ui.define([
381
384
  clazz: "sap/ui/rta/command/AddIFrame",
382
385
  configure: configureAddIFrame
383
386
  },
387
+ compVariantContent: {
388
+ clazz: "sap/ui/rta/command/compVariant/CompVariantContent"
389
+ },
384
390
  compVariantSaveAs: {
385
391
  clazz: "sap/ui/rta/command/compVariant/CompVariantSaveAs"
386
392
  },
@@ -479,7 +485,7 @@ sap.ui.define([
479
485
  * @extends sap.ui.base.ManagedObject
480
486
  *
481
487
  * @author SAP SE
482
- * @version 1.99.1
488
+ * @version 1.102.0
483
489
  *
484
490
  * @constructor
485
491
  * @private
@@ -530,7 +536,7 @@ sap.ui.define([
530
536
 
531
537
  /**
532
538
  * Static method for generating command
533
- * @param {sap.ui.Element|string} vElement - Could be either an element or a slector for the element for which the command is to be created
539
+ * @param {sap.ui.core.Element|string} vElement - Could be either an element or a slector for the element for which the command is to be created
534
540
  * @param {string} sCommand - Command type
535
541
  * @param {object} mSettings - Initial settings for the new command (command specific settings, looks diffrent for each and every command)
536
542
  * @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.99.1
24
+ * @version 1.102.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.99.1
23
+ * @version 1.102.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.52
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.99.1
23
+ * @version 1.102.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.BaseCommand
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.86
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.BaseCommand
18
18
  * @author SAP SE
19
- * @version 1.99.1
19
+ * @version 1.102.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.50
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.99.1
23
+ * @version 1.102.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.50
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.99.1
15
+ * @version 1.102.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.99.1
15
+ * @version 1.102.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.rta.command.BaseCommand
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.99.1
32
+ * @version 1.102.0
33
33
  *
34
34
  * @constructor
35
35
  * @private
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @class
30
30
  * @extends sap.ui.base.ManagedObject
31
31
  * @author SAP SE
32
- * @version 1.99.1
32
+ * @version 1.102.0
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.42
@@ -160,7 +160,8 @@ sap.ui.define([
160
160
  * @public
161
161
  */
162
162
  LREPSerializer.prototype.saveCommands = function(bSaveAsDraft, sLayer, bRemoveOtherLayerChanges) {
163
- this._lastPromise = this._lastPromise.catch(function() {
163
+ this._lastPromise = this._lastPromise.catch(function(oError) {
164
+ Log.error(oError);
164
165
  // _lastPromise chain must not be interrupted
165
166
  }).then(function() {
166
167
  var oRootControl = getRootControlInstance(this.getRootControl());
@@ -175,7 +176,6 @@ sap.ui.define([
175
176
  removeOtherLayerChanges: !!bRemoveOtherLayerChanges
176
177
  });
177
178
  }.bind(this))
178
-
179
179
  .then(function() {
180
180
  Log.info("UI adaptation successfully transfered changes to layered repository");
181
181
  this.getCommandStack().removeAllCommands();
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.99.1
23
+ * @version 1.102.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.90
@@ -17,7 +17,7 @@ function(
17
17
  * @class
18
18
  * @extends sap.ui.rta.command.FlexCommand
19
19
  * @author SAP SE
20
- * @version 1.99.1
20
+ * @version 1.102.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.99.1
19
+ * @version 1.102.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.99.1
15
+ * @version 1.102.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.42
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.99.1
15
+ * @version 1.102.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -0,0 +1,45 @@
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/rta/command/FlexCommand"
8
+ ], function(
9
+ FlexCommand
10
+ ) {
11
+ "use strict";
12
+
13
+ /**
14
+ * Resize command
15
+ *
16
+ * @class
17
+ * @extends sap.ui.rta.command.FlexCommand
18
+ * @author SAP SE
19
+ * @version 1.102.0
20
+ * @constructor
21
+ * @private
22
+ * @since 1.101
23
+ * @alias sap.ui.rta.command.Resize
24
+ */
25
+ var Resize = FlexCommand.extend("sap.ui.rta.command.Resize", {
26
+ metadata: {
27
+ library: "sap.ui.rta",
28
+ properties: {
29
+ // Generic structure is required as some implementations (e.g. Tables) create changes like in Settings action
30
+ content: {
31
+ type: "any",
32
+ group: "content"
33
+ },
34
+ changeType: {
35
+ type: "string",
36
+ defaultValue: "resize"
37
+ }
38
+ },
39
+ associations: {},
40
+ events: {}
41
+ }
42
+ });
43
+
44
+ return Resize;
45
+ });
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.99.1
15
+ * @version 1.102.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.99.1
15
+ * @version 1.102.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  * @class
15
15
  * @extends sap.ui.rta.command.FlexCommand
16
16
  * @author SAP SE
17
- * @version 1.99.1
17
+ * @version 1.102.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * @class
56
56
  * @extends sap.ui.base.ManagedObject
57
57
  * @author SAP SE
58
- * @version 1.99.1
58
+ * @version 1.102.0
59
59
  * @constructor
60
60
  * @private
61
61
  * @since 1.34
@@ -207,17 +207,18 @@ sap.ui.define([
207
207
  }).then(function() {
208
208
  var oCommand = this._getCommandToBeExecuted();
209
209
  if (oCommand) {
210
+ var mParam = {
211
+ command: oCommand,
212
+ undo: false
213
+ };
210
214
  return oCommand.execute()
211
215
 
216
+ .then(this._waitForCommandExecutionHandler.bind(this, mParam))
217
+
212
218
  .then(function() {
213
219
  this._toBeExecuted--;
214
- var mParam = {
215
- command: oCommand,
216
- undo: false
217
- };
218
220
  this.fireCommandExecuted(mParam);
219
221
  this.fireModified();
220
- return this._waitForCommandExecutionHandler(mParam);
221
222
  }.bind(this))
222
223
 
223
224
  .catch(function(oError) {
@@ -239,15 +240,17 @@ sap.ui.define([
239
240
  this._toBeExecuted++;
240
241
  var oCommand = this._getCommandToBeExecuted();
241
242
  if (oCommand) {
243
+ var mParam = {
244
+ command: oCommand,
245
+ undo: true
246
+ };
242
247
  return oCommand.undo()
248
+
249
+ .then(this._waitForCommandExecutionHandler.bind(this, mParam))
250
+
243
251
  .then(function() {
244
- var mParam = {
245
- command: oCommand,
246
- undo: true
247
- };
248
252
  this.fireCommandExecuted(mParam);
249
253
  this.fireModified();
250
- return this._waitForCommandExecutionHandler(mParam);
251
254
  }.bind(this));
252
255
  }
253
256
  return Promise.resolve();
@@ -314,4 +317,4 @@ sap.ui.define([
314
317
  };
315
318
 
316
319
  return Stack;
317
- });
320
+ });
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @extends sap.ui.rta.command.AppDescriptorCommand
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.99.1
20
+ * @version 1.102.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -0,0 +1,82 @@
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/rta/command/BaseCommand"
8
+ ], function(
9
+ BaseCommand
10
+ ) {
11
+ "use strict";
12
+
13
+ /**
14
+ * Change the content of a SmartVariantManagement variant
15
+ *
16
+ * @class
17
+ * @extends sap.ui.rta.command.BaseCommand
18
+ * @author SAP SE
19
+ * @version 1.102.0
20
+ * @constructor
21
+ * @private
22
+ * @since 1.102
23
+ * @alias sap.ui.rta.command.compVariant.CompVariantContent
24
+ */
25
+ var CompVariantContent = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantContent", {
26
+ metadata: {
27
+ library: "sap.ui.rta",
28
+ properties: {
29
+ variantId: {
30
+ type: "string"
31
+ },
32
+ persistencyKey: {
33
+ type: "string"
34
+ },
35
+ oldContent: {
36
+ type: "object"
37
+ },
38
+ newContent: {
39
+ type: "object"
40
+ }
41
+ }
42
+ }
43
+ });
44
+
45
+ CompVariantContent.prototype.execute = function() {
46
+ this.setOldContent(getCurrentVariantContent.call(this));
47
+ setVariantContent.call(this, this.getNewContent());
48
+
49
+ return Promise.resolve();
50
+ };
51
+
52
+ CompVariantContent.prototype.undo = function() {
53
+ setVariantContent.call(this, this.getOldContent());
54
+
55
+ return Promise.resolve();
56
+ };
57
+
58
+ // private function of the SmartVariantManagement are approved and documented to be used from here
59
+ function setVariantContent(oContent) {
60
+ var oContentToBeSet = {};
61
+ var oVariantManagementControl = this.getElement();
62
+ if (oVariantManagementControl.isPageVariant()) {
63
+ oContentToBeSet[this.getPersistencyKey()] = oContent;
64
+ oVariantManagementControl._applyVariantByPersistencyKey(this.getPersistencyKey(), oContentToBeSet, "KEY_USER");
65
+ } else {
66
+ oContentToBeSet = oContent;
67
+ oVariantManagementControl._applyVariant(oVariantManagementControl._getPersoController(), oContentToBeSet, "KEY_USER");
68
+ }
69
+ }
70
+
71
+ // private function of the SmartVariantManagement are approved and documented to be used from here
72
+ function getCurrentVariantContent() {
73
+ var oVariantManagementControl = this.getElement();
74
+ var oOldContent = oVariantManagementControl._getVariantContent(this.getVariantId());
75
+ if (oVariantManagementControl.isPageVariant()) {
76
+ oOldContent = oOldContent && oOldContent[this.getPersistencyKey()];
77
+ }
78
+ return oOldContent;
79
+ }
80
+
81
+ return CompVariantContent;
82
+ });
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @class
19
19
  * @extends sap.ui.rta.command.BaseCommand
20
20
  * @author SAP SE
21
- * @version 1.99.1
21
+ * @version 1.102.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @since 1.87
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.BaseCommand
18
18
  * @author SAP SE
19
- * @version 1.99.1
19
+ * @version 1.102.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.87
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.99.1
23
+ * @version 1.102.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.87
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * E.g. <code>controlEnablingCheck.only("Remove");</code>
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.99.1
54
+ * @version 1.102.0
55
55
  *
56
56
  * @static
57
57
  * @since 1.42
@@ -21,19 +21,16 @@ function() {
21
21
  * SAPUI5 library with RTA controls.
22
22
  *
23
23
  * @namespace
24
- * @name sap.ui.rta
24
+ * @alias sap.ui.rta
25
25
  * @author SAP SE
26
- * @version 1.99.1
26
+ * @version 1.102.0
27
27
  * @since 1.50
28
28
  * @private
29
29
  * @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
30
30
  */
31
-
32
-
33
- // delegate further initialization of this library to the Core
34
- sap.ui.getCore().initLibrary({
31
+ var thisLib = sap.ui.getCore().initLibrary({
35
32
  name: "sap.ui.rta",
36
- version: "1.99.1",
33
+ version: "1.102.0",
37
34
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
38
35
  types: [],
39
36
  interfaces: [],
@@ -41,7 +38,7 @@ function() {
41
38
  elements: []
42
39
  });
43
40
 
44
- sap.ui.rta.GENERATOR_NAME = "sap.ui.rta.command";
41
+ thisLib.GENERATOR_NAME = "sap.ui.rta.command";
45
42
 
46
- return sap.ui.rta;
43
+ return thisLib;
47
44
  });
@@ -85,6 +85,10 @@ TIT_VERSION_1=Version 1
85
85
  LBL_ACTIVE=Active
86
86
  #XLBL: Hightlight text for the indicator of the inactive version (for screen reader)
87
87
  LBL_INACTIVE=Inactive
88
+ #XTIT: Group Header for published versions
89
+ TIT_VERSION_HISTORY_PUBLISHED=Published
90
+ #XTIT: Group Header for unpublished versions
91
+ TIT_VERSION_HISTORY_UNPUBLISHED=Unpublished
88
92
  #XMSG: message toast text after an new version was successfully activated
89
93
  MSG_DRAFT_ACTIVATION_SUCCESS=New version activated
90
94
  #XMSG: message toast text when activated failed
@@ -105,6 +109,8 @@ BUT_VERSION_TITLE_DIALOG_CANCEL=Cancel
105
109
  TOL_ACTIVATE=Activate New Version
106
110
  #XTOL: Tooltip for the button 'Discard' for the draft located in the toolbar
107
111
  TOL_DISCARD_DRAFT=Discard Draft
112
+ #XTOL: Tooltip for the button 'Publish Version' in the toolbar
113
+ TOL_PUBLISH_VERSION=Publish Version
108
114
  #TIT: Title for the dialog to switch between versions
109
115
  TIT_SWITCH_VERSION_DIALOG=Switch Version
110
116
  #MSG: Text description that the user is about to switch versions, but has changes they must save or discard
@@ -119,6 +125,8 @@ BTN_TRANSLATE=Translate
119
125
  BTN_UPLOAD_CHANGED_TEXTS=Upload
120
126
  #XTIT: Title of the upload changed texts dialog
121
127
  TIT_UPLOAD_CHANGED_TEXTS=Upload Translations
128
+ #MSG: Message that untranslatable changes are present and the state will be saved before the translatable texts are downloaded
129
+ MSG_DOWNLOAD_CHANGED_TEXTS_DIRTY_CHANGES_EXIST=There are translatable unsaved changes with texts. The current state will be saved before the XLIFF file is downloaded.
122
130
  #MSG: Explanation of the upload changed texts dialog
123
131
  MSG_UPLOAD_CHANGED_TEXTS=Upload an XLIFF file containing translations of changed UI texts
124
132
  #XBUT: Button text to cancel the Upload Changed UI Texts dialog
@@ -127,6 +135,8 @@ BUT_UPLOAD_CHANGED_TEXTS_CANCEL=Cancel
127
135
  BTN_OPEN_DOWNLOAD_TRANSLATION=Download
128
136
  #XBUT: Button 'Upload' of the toolbar translate popover
129
137
  BTN_OPEN_UPLOAD_TRANSLATION=Upload
138
+ #MSG: Success message in after a translation was uploaded
139
+ MSG_UPLOAD_TRANSLATION_SUCCESS=Translation successfully uploaded
130
140
  #XBUT: Name of the Button 'Download' of the download changed texts dialog
131
141
  BTN_DOWNLOAD_CHANGED_TEXTS=Download
132
142
  #XTIT: Title of the download changed texts dialog
@@ -157,7 +167,7 @@ FORM_PERS_RESET_TITLE=Reset to Standard Version
157
167
  FORM_PERS_RESET_MESSAGE=Do you want to discard all UI changes and reset the app to the standard version?
158
168
  #XMSG: reset confirmation dialog message in personalization mode
159
169
  FORM_PERS_RESET_MESSAGE_PERSONALIZATION=Do you want to discard all your personalization changes and reset the app?
160
- #XMSG: Error message presented if storing to LREP fails
170
+ #XMSG: Error message presented if a technical error occurred
161
171
  MSG_LREP_TRANSFER_ERROR=Sorry, a technical error occurred. Please try again later, or contact your administrator.
162
172
  #XMSG: Error message showing the reason (technical info)
163
173
  MSG_ERROR_REASON=Reason\:\n{0}
@@ -376,8 +386,10 @@ IFRAME_ADDIFRAME_DIALOG_URL_WARNING_LINKTEXT=Read More
376
386
  TXT_CHANGEVISUALIZATION_CHANGE_RENAME_TO=Name was changed to ''{0}''
377
387
  #XTXT: Description for rename-changes
378
388
  TXT_CHANGEVISUALIZATION_CHANGE_RENAME_FROM_TO=Name was changed from ''{1}'' to ''{0}''
379
- #XTXT: Description for move-changes
389
+ #XTXT: Description for move-changes outside its group
380
390
  TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element ''{0}'' was moved
391
+ #XTXT: Description for move-changes within its group
392
+ TXT_CHANGEVISUALIZATION_CHANGE_MOVE_WITHIN=Element ''{0}'' was moved within its container
381
393
  #XTXT: Description for remove-changes
382
394
  TXT_CHANGEVISUALIZATION_CHANGE_REMOVE=Element {0} was removed
383
395
  #XTXT: Description for reveal-changes
@@ -408,28 +420,30 @@ TIT_CHANGEVISUALIZATION_DESCRIPTION=Description
408
420
  BUT_CHANGEVISUALIZATION_SHOWCHANGES=Visualize Key User Changes
409
421
  #XTOL: Tooltip for Select Changes Button in Toolbar
410
422
  BUT_CHANGEVISUALIZATION_SELECTCHANGES=Select Change Type
423
+ #XMSG: Info Message for Hidden Changes
424
+ MSG_CHANGEVISUALIZATION_HIDDEN_CHANGES_INFO=Changes not visualized: {0}
411
425
  #XTXT: Text for all-changes item of ChangesPopover
412
- TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=All ({0})
426
+ TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=All
413
427
  #XBUT: Button text for all-changes
414
428
  BTN_CHANGEVISUALIZATION_OVERVIEW_ALL=All Changes
415
429
  #XTXT: Text for move-changes item of ChangesPopover
416
- TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Move ({0})
430
+ TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Move
417
431
  #XBUT: Button text for move-changes
418
432
  BTN_CHANGEVISUALIZATION_OVERVIEW_MOVE=Moved Elements
419
433
  #XTXT: Text for rename-changes item of ChangesPopover
420
- TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Rename ({0})
434
+ TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Rename
421
435
  #XBUT: Button text for rename-changes
422
436
  BTN_CHANGEVISUALIZATION_OVERVIEW_RENAME=Renamed Elements
423
437
  #XTXT: Text for add-changes item of ChangesPopover
424
- TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Add ({0})
438
+ TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Add
425
439
  #BUT: Button text for add-changes
426
440
  BTN_CHANGEVISUALIZATION_OVERVIEW_ADD=Added Elements
427
441
  #XTXT: Text for combine- and split-changes item of ChangesPopover
428
- TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combine and Split ({0})
442
+ TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combine and Split
429
443
  #XBUT: Button text for combine- and split-changes
430
444
  BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combined and Split Elements
431
445
  #XTXT: Text for remove-changes item of ChangesPopover
432
- TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Remove ({0})
446
+ TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Remove
433
447
  #XBUT: Button text for remove-changes
434
448
  BTN_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Removed Elements
435
449
  #XTXT: Semantic date for changes created in same session
@@ -440,6 +454,8 @@ MSG_LOCAL_RESET_VARIANT_SAVE=The container has been reset and the view has been
440
454
  BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_MOVE=Show Source
441
455
  #XBUT: Button text for showing the dependent container of a split change
442
456
  BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_SPLIT=Show Other Parts
457
+ #XBUT: Button text for learn more link in change type selection dialog
458
+ BUT_CHANGEVISUALIZATION_LEARNMORE=[Learn more]
443
459
 
444
460
  #XMSG: Warning Message for mixed changes
445
461
  MSG_ADAPTATION_STARTER_MIXED_CHANGES_WARNING=UI changes to this app have been made in another system. To avoid conflicts, we strongly advise to make UI changes in one system only and transport them to the other systems. See [Adapting the UI](https://help.sap.com/viewer/a7b390faab1140c087b8926571e942b7/202110.000/en-US/4aa356f89e5a4409a9efe4dda4ddcb7e.html).