@openui5/sap.ui.rta 1.135.0 → 1.136.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 (213) hide show
  1. package/REUSE.toml +649 -0
  2. package/THIRDPARTY.txt +22 -22
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +2 -2
  5. package/src/sap/ui/rta/Client.js +2 -2
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +92 -19
  7. package/src/sap/ui/rta/Utils.js +19 -2
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -1
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  12. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
  13. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  14. package/src/sap/ui/rta/appVariant/Feature.js +1 -1
  15. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
  16. package/src/sap/ui/rta/appVariant/Utils.js +8 -15
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +30 -44
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
  21. package/src/sap/ui/rta/command/AddIFrame.js +2 -2
  22. package/src/sap/ui/rta/command/AddProperty.js +2 -2
  23. package/src/sap/ui/rta/command/AddXML.js +2 -2
  24. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  25. package/src/sap/ui/rta/command/AnnotationCommand.js +2 -2
  26. package/src/sap/ui/rta/command/BaseCommand.js +2 -2
  27. package/src/sap/ui/rta/command/BindProperty.js +2 -2
  28. package/src/sap/ui/rta/command/Combine.js +2 -2
  29. package/src/sap/ui/rta/command/CommandFactory.js +2 -2
  30. package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
  31. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  32. package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
  33. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
  34. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  35. package/src/sap/ui/rta/command/ControlVariantSwitch.js +2 -2
  36. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  37. package/src/sap/ui/rta/command/CustomAdd.js +2 -2
  38. package/src/sap/ui/rta/command/ExtendControllerCommand.js +4 -3
  39. package/src/sap/ui/rta/command/FlexCommand.js +2 -2
  40. package/src/sap/ui/rta/command/LREPSerializer.js +2 -2
  41. package/src/sap/ui/rta/command/LocalReset.js +2 -2
  42. package/src/sap/ui/rta/command/ManifestCommand.js +2 -2
  43. package/src/sap/ui/rta/command/Move.js +2 -2
  44. package/src/sap/ui/rta/command/Property.js +2 -2
  45. package/src/sap/ui/rta/command/Remove.js +2 -2
  46. package/src/sap/ui/rta/command/Rename.js +2 -2
  47. package/src/sap/ui/rta/command/Resize.js +2 -2
  48. package/src/sap/ui/rta/command/Reveal.js +2 -2
  49. package/src/sap/ui/rta/command/Settings.js +2 -2
  50. package/src/sap/ui/rta/command/Split.js +2 -2
  51. package/src/sap/ui/rta/command/Stack.js +20 -5
  52. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
  53. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
  54. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
  55. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
  56. package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
  57. package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
  58. package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
  59. package/src/sap/ui/rta/library.js +3 -3
  60. package/src/sap/ui/rta/messagebundle.properties +168 -9
  61. package/src/sap/ui/rta/messagebundle_ar.properties +104 -6
  62. package/src/sap/ui/rta/messagebundle_bg.properties +104 -6
  63. package/src/sap/ui/rta/messagebundle_ca.properties +107 -9
  64. package/src/sap/ui/rta/messagebundle_cnr.properties +105 -7
  65. package/src/sap/ui/rta/messagebundle_cs.properties +102 -4
  66. package/src/sap/ui/rta/messagebundle_cy.properties +104 -6
  67. package/src/sap/ui/rta/messagebundle_da.properties +103 -5
  68. package/src/sap/ui/rta/messagebundle_de.properties +113 -15
  69. package/src/sap/ui/rta/messagebundle_el.properties +101 -3
  70. package/src/sap/ui/rta/messagebundle_en.properties +104 -6
  71. package/src/sap/ui/rta/messagebundle_en_GB.properties +104 -6
  72. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +2 -0
  73. package/src/sap/ui/rta/messagebundle_es.properties +108 -10
  74. package/src/sap/ui/rta/messagebundle_es_MX.properties +112 -14
  75. package/src/sap/ui/rta/messagebundle_et.properties +102 -4
  76. package/src/sap/ui/rta/messagebundle_fi.properties +105 -7
  77. package/src/sap/ui/rta/messagebundle_fr.properties +113 -15
  78. package/src/sap/ui/rta/messagebundle_fr_CA.properties +105 -7
  79. package/src/sap/ui/rta/messagebundle_hi.properties +104 -6
  80. package/src/sap/ui/rta/messagebundle_hr.properties +114 -16
  81. package/src/sap/ui/rta/messagebundle_hu.properties +103 -5
  82. package/src/sap/ui/rta/messagebundle_id.properties +112 -14
  83. package/src/sap/ui/rta/messagebundle_it.properties +102 -4
  84. package/src/sap/ui/rta/messagebundle_iw.properties +104 -6
  85. package/src/sap/ui/rta/messagebundle_ja.properties +116 -18
  86. package/src/sap/ui/rta/messagebundle_kk.properties +103 -5
  87. package/src/sap/ui/rta/messagebundle_ko.properties +104 -6
  88. package/src/sap/ui/rta/messagebundle_lt.properties +104 -6
  89. package/src/sap/ui/rta/messagebundle_lv.properties +103 -5
  90. package/src/sap/ui/rta/messagebundle_mk.properties +107 -9
  91. package/src/sap/ui/rta/messagebundle_ms.properties +114 -16
  92. package/src/sap/ui/rta/messagebundle_nl.properties +103 -5
  93. package/src/sap/ui/rta/messagebundle_no.properties +107 -9
  94. package/src/sap/ui/rta/messagebundle_pl.properties +103 -5
  95. package/src/sap/ui/rta/messagebundle_pt.properties +102 -4
  96. package/src/sap/ui/rta/messagebundle_pt_PT.properties +102 -4
  97. package/src/sap/ui/rta/messagebundle_ro.properties +102 -4
  98. package/src/sap/ui/rta/messagebundle_ru.properties +106 -8
  99. package/src/sap/ui/rta/messagebundle_sh.properties +105 -7
  100. package/src/sap/ui/rta/messagebundle_sk.properties +102 -4
  101. package/src/sap/ui/rta/messagebundle_sl.properties +102 -4
  102. package/src/sap/ui/rta/messagebundle_sr.properties +105 -7
  103. package/src/sap/ui/rta/messagebundle_sv.properties +103 -5
  104. package/src/sap/ui/rta/messagebundle_th.properties +103 -5
  105. package/src/sap/ui/rta/messagebundle_tr.properties +102 -4
  106. package/src/sap/ui/rta/messagebundle_uk.properties +104 -6
  107. package/src/sap/ui/rta/messagebundle_vi.properties +104 -6
  108. package/src/sap/ui/rta/messagebundle_zh_CN.properties +103 -5
  109. package/src/sap/ui/rta/messagebundle_zh_TW.properties +104 -6
  110. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
  111. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +54 -32
  112. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  113. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  114. package/src/sap/ui/rta/plugin/CompVariant.js +114 -114
  115. package/src/sap/ui/rta/plugin/ControlVariant.js +37 -54
  116. package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
  117. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  118. package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
  119. package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +49 -38
  120. package/src/sap/ui/rta/plugin/LocalReset.js +4 -3
  121. package/src/sap/ui/rta/plugin/Plugin.js +30 -12
  122. package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
  123. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  124. package/src/sap/ui/rta/plugin/Resize.js +2 -2
  125. package/src/sap/ui/rta/plugin/Selection.js +2 -2
  126. package/src/sap/ui/rta/plugin/Settings.js +5 -2
  127. package/src/sap/ui/rta/plugin/Split.js +2 -2
  128. package/src/sap/ui/rta/plugin/Stretch.js +2 -2
  129. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +2 -2
  130. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
  131. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
  132. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -2
  133. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
  134. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
  135. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +4 -4
  136. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +26 -13
  137. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +30 -31
  138. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +8 -5
  139. package/src/sap/ui/rta/plugin/annotations/AnnotationTypes.js +1 -1
  140. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +8 -2
  141. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  142. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -1
  143. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  144. package/src/sap/ui/rta/plugin/{Rename.js → rename/Rename.js} +29 -67
  145. package/src/sap/ui/rta/plugin/rename/RenameDialog.fragment.xml +63 -0
  146. package/src/sap/ui/rta/plugin/rename/RenameDialog.js +140 -0
  147. package/src/sap/ui/rta/service/Action.js +2 -2
  148. package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
  149. package/src/sap/ui/rta/service/Outline.js +2 -2
  150. package/src/sap/ui/rta/service/Property.js +2 -2
  151. package/src/sap/ui/rta/service/Receiver.js +1 -1
  152. package/src/sap/ui/rta/service/Selection.js +2 -2
  153. package/src/sap/ui/rta/service/SupportTools.js +2 -2
  154. package/src/sap/ui/rta/service/index.js +1 -1
  155. package/src/sap/ui/rta/themes/base/library.source.less +1 -1
  156. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
  157. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +6 -0
  158. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -6
  159. package/src/sap/ui/rta/toolbar/Adaptation.js +12 -3
  160. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  161. package/src/sap/ui/rta/toolbar/Base.js +2 -2
  162. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
  163. package/src/sap/ui/rta/toolbar/Fiori.js +16 -8
  164. package/src/sap/ui/rta/toolbar/FioriLike.js +7 -5
  165. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
  166. package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
  167. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +1 -1
  168. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -2
  169. package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
  170. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +2 -2
  171. package/src/sap/ui/rta/util/Animation.js +1 -1
  172. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  173. package/src/sap/ui/rta/util/PluginManager.js +8 -6
  174. package/src/sap/ui/rta/util/PopupManager.js +2 -2
  175. package/src/sap/ui/rta/util/ReloadManager.js +2 -2
  176. package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
  177. package/src/sap/ui/rta/util/ServiceManager.js +2 -2
  178. package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
  179. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
  180. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +2 -2
  181. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +2 -2
  182. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +1 -1
  183. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +3 -3
  184. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
  185. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
  186. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  187. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
  188. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
  189. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  190. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
  191. package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +242 -0
  192. package/src/sap/ui/rta/util/guidedTour/TourMarker.fragment.xml +50 -0
  193. package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +205 -0
  194. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  195. package/src/sap/ui/rta/util/isReuseComponent.js +1 -1
  196. package/src/sap/ui/rta/util/showMessageBox.js +1 -1
  197. package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
  198. package/src/sap/ui/rta/util/validateStableIds.js +1 -1
  199. package/src/sap/ui/rta/util/validateText.js +1 -1
  200. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +8 -4
  201. package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +1 -1
  202. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +1 -1
  203. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +1 -1
  204. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +85 -1
  205. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ChangeLabelsAction.png +0 -0
  206. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/DisplayBehavior.png +0 -0
  207. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ExtendedActions.png +0 -0
  208. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/GuidedTour.png +0 -0
  209. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ReloadButtonToolbar.png +0 -0
  210. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/RenameDialog.png +0 -0
  211. package/ui5.yaml +1 -1
  212. package/.reuse/dep5 +0 -471
  213. package/src/sap/ui/rta/plugin/RenameHandler.js +0 -477
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -119,7 +119,7 @@ sap.ui.define([
119
119
  * @class The AddIFrame allows trigger AddIFrame operations on the overlay.
120
120
  * @extends sap.ui.rta.plugin.BaseCreate
121
121
  * @author SAP SE
122
- * @version 1.135.0
122
+ * @version 1.136.0
123
123
  * @constructor
124
124
  * @private
125
125
  * @since 1.75
@@ -186,6 +186,9 @@ sap.ui.define([
186
186
  if (oAction) {
187
187
  var oSiblingMenuItem = {
188
188
  id: "CTX_CREATE_SIBLING_IFRAME",
189
+ additionalInfo: this._getAdditionalInfo(aElementOverlays[0], oAction, {
190
+ additionalInfoKey: "IFRAME_RTA_CONTEXT_MENU_INFO"
191
+ }),
189
192
  rank: iBaseRank,
190
193
  action: oAction,
191
194
  ...getCommonProperties.call(this)
@@ -202,6 +205,9 @@ sap.ui.define([
202
205
  var oParentMenuItem = {
203
206
  action: oAction,
204
207
  id: `CTX_CREATE_CHILD_IFRAME_${oAction.aggregation.toUpperCase()}`,
208
+ additionalInfo: this._getAdditionalInfo(aElementOverlays[0], oAction, {
209
+ additionalInfoKey: "IFRAME_RTA_CONTEXT_MENU_INFO"
210
+ }),
205
211
  rank: ++iBaseRank,
206
212
  ...getCommonProperties.call(this, oAction.aggregation)
207
213
  };
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -159,7 +159,7 @@ sap.ui.define([
159
159
  * @class Context - Dialog for IFrame settings in Runtime Authoring
160
160
  * @extends sap.ui.base.ManagedObject
161
161
  * @author SAP SE
162
- * @version 1.135.0
162
+ * @version 1.136.0
163
163
  * @constructor
164
164
  * @private
165
165
  * @since 1.78
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,17 +1,17 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/rta/plugin/Plugin",
9
- "sap/ui/rta/plugin/RenameHandler",
10
- "sap/base/Log"
8
+ "sap/base/Log",
9
+ "sap/ui/rta/plugin/rename/RenameDialog",
10
+ "sap/ui/rta/plugin/Plugin"
11
11
  ], function(
12
- Plugin,
13
- RenameHandler,
14
- Log
12
+ Log,
13
+ RenameDialog,
14
+ Plugin
15
15
  ) {
16
16
  "use strict";
17
17
 
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.rta.plugin.Plugin
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.135.0
31
+ * @version 1.136.0
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -56,41 +56,28 @@ sap.ui.define([
56
56
  }
57
57
  });
58
58
 
59
- /**
60
- * @override
61
- */
62
- Rename.prototype.exit = function(...aArgs) {
63
- Plugin.prototype.exit.apply(this, aArgs);
64
-
65
- this.setBusy(false);
66
- RenameHandler._exit.call(this);
67
- };
68
-
69
- /**
70
- * @override
71
- */
72
- Rename.prototype.setDesignTime = function(oDesignTime) {
73
- RenameHandler._setDesignTime.call(this, oDesignTime);
59
+ Rename.prototype.init = function(...aArgs) {
60
+ Plugin.prototype.init.apply(this, aArgs);
61
+ this._oDialog = new RenameDialog();
74
62
  };
75
63
 
76
- Rename.prototype.startEdit = function(oOverlay) {
77
- var vDomRef = this.getAction(oOverlay).domRef;
78
- var fnGetTextMutators = this.getAction(oOverlay).getTextMutators;
79
- RenameHandler.startEdit.call(this, {
64
+ Rename.prototype.startEdit = async function(oOverlay) {
65
+ const oResponsibleElementOverlay = this.getResponsibleElementOverlay(oOverlay);
66
+ const oDomRef = this.getAction(oOverlay).domRef;
67
+ const sNewText = await this._oDialog.openDialogAndHandleRename({
80
68
  overlay: oOverlay,
81
- domRef: vDomRef,
82
- getTextMutators: fnGetTextMutators,
83
- pluginMethodName: "plugin.Rename.startEdit"
69
+ domRef: oDomRef,
70
+ action: this.getAction(oResponsibleElementOverlay)
84
71
  });
85
- };
86
-
87
- Rename.prototype.stopEdit = function(bRestoreFocus) {
88
- RenameHandler._stopEdit.call(this, bRestoreFocus, "plugin.Rename.stopEdit");
72
+ if (sNewText) {
73
+ this.createRenameCommand(oOverlay, sNewText);
74
+ }
89
75
  };
90
76
 
91
77
  Rename.prototype.handler = function(aElementOverlays) {
92
- aElementOverlays = this.getSelectedOverlays() || aElementOverlays;
93
- this.startEdit(aElementOverlays[0]);
78
+ const aSelectedOverlays = this.getSelectedOverlays();
79
+ const [oOverlay] = aSelectedOverlays?.length > 0 ? aSelectedOverlays : aElementOverlays;
80
+ this.startEdit(oOverlay);
94
81
  };
95
82
 
96
83
  /**
@@ -145,16 +132,6 @@ sap.ui.define([
145
132
  return bIsEnabled;
146
133
  };
147
134
 
148
- /**
149
- * @override
150
- */
151
- Rename.prototype.registerElementOverlay = function(...aArgs) {
152
- const [oOverlay] = aArgs;
153
- oOverlay.attachEvent("editableChange", RenameHandler._manageClickEvent, this);
154
-
155
- Plugin.prototype.registerElementOverlay.apply(this, aArgs);
156
- };
157
-
158
135
  /**
159
136
  * @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
160
137
  * @returns {Promise.<boolean>|booolean} <code>true</code> if it's editable wrapped in a promise.
@@ -164,17 +141,6 @@ sap.ui.define([
164
141
  return this._checkChangeHandlerAndStableId(oOverlay);
165
142
  };
166
143
 
167
- /**
168
- * @override
169
- */
170
- Rename.prototype.deregisterElementOverlay = function(...aArgs) {
171
- const [oOverlay] = aArgs;
172
- oOverlay.detachEvent("editableChange", RenameHandler._manageClickEvent, this);
173
- oOverlay.detachBrowserEvent("click", RenameHandler._onClick, this);
174
-
175
- Plugin.prototype.deregisterElementOverlay.apply(this, aArgs);
176
- };
177
-
178
144
  Rename.prototype.createRenameCommand = function(oElementOverlay, sNewText) {
179
145
  var oResponsibleElementOverlay = this.getResponsibleElementOverlay(oElementOverlay);
180
146
  var oRenamedElement = oResponsibleElementOverlay.getElement();
@@ -197,16 +163,6 @@ sap.ui.define([
197
163
  });
198
164
  };
199
165
 
200
- /**
201
- * @returns {Promise} Empty promise
202
- * @private
203
- */
204
- Rename.prototype._emitLabelChangeEvent = function() {
205
- var sText = RenameHandler._getCurrentEditableFieldText.call(this);
206
- this._fnSetControlText(sText);
207
- return this.createRenameCommand(this._oEditedOverlay, sText);
208
- };
209
-
210
166
  /**
211
167
  * Retrieve the context menu item for the action.
212
168
  * @param {sap.ui.dt.ElementOverlay|sap.ui.dt.ElementOverlay[]} vElementOverlays - Target overlay(s)
@@ -224,5 +180,11 @@ sap.ui.define([
224
180
  return "rename";
225
181
  };
226
182
 
183
+ Rename.prototype.destroy = function(...args) {
184
+ Plugin.prototype.destroy.apply(this, args);
185
+ this._oDialog.destroy();
186
+ delete this._oDialog;
187
+ };
188
+
227
189
  return Rename;
228
190
  });
@@ -0,0 +1,63 @@
1
+ <core:FragmentDefinition
2
+ xmlns:core="sap.ui.core"
3
+ xmlns="sap.m"
4
+ >
5
+ <Dialog
6
+ id="sapUiRtaRenameDialog"
7
+ resizable="false"
8
+ draggable="true"
9
+ contentWidth="50rem"
10
+ title="{i18n>RENAME_DIALOG_TITLE}"
11
+ class="sapUiContentPadding"
12
+ initialFocus="sapUiRtaRenameDialog_input"
13
+ escapeHandler=".onCancel"
14
+ >
15
+ <content>
16
+ <HBox
17
+ alignItems="Center"
18
+ justifyContent="Start"
19
+ fitContainer="true"
20
+ >
21
+ <Label
22
+ text="{i18n>RENAME_DIALOG_LABEL}"
23
+ labelFor="sapUiRtaRenameDialog_input"
24
+ wrapping="true"
25
+ >
26
+ <layoutData>
27
+ <FlexItemData maxWidth="10rem" />
28
+ </layoutData>
29
+ </Label>
30
+ <Input
31
+ id="sapUiRtaRenameDialog_input"
32
+ value="{/newText}"
33
+ placeholder="{i18n>RENAME_DIALOG_PLACEHOLDER}"
34
+ liveChange="onTextChange"
35
+ valueState="{= ${/validationError} === undefined ? 'None' : 'Error'}"
36
+ valueStateText="{/validationError}"
37
+ width="100%"
38
+ >
39
+ <layoutData>
40
+ <FlexItemData growFactor="1" styleClass="sapUiTinyMarginBegin" />
41
+ </layoutData>
42
+ </Input>
43
+ </HBox>
44
+ </content>
45
+ <beginButton>
46
+ <Button
47
+ id="sapUiRtaRenameDialog_saveButton"
48
+ enabled="{= ${/validationError} === undefined }"
49
+ type="Emphasized"
50
+ text="{i18n>RENAME_DIALOG_CONFIRM}"
51
+ press="onSave"
52
+ />
53
+ </beginButton>
54
+ <endButton>
55
+ <Button
56
+ id="sapUiRtaRenameDialog_cancelButton"
57
+ type="Transparent"
58
+ text="{i18n>RENAME_DIALOG_CANCEL}"
59
+ press="onCancel"
60
+ />
61
+ </endButton>
62
+ </Dialog>
63
+ </core:FragmentDefinition>
@@ -0,0 +1,140 @@
1
+
2
+ /*!
3
+ * OpenUI5
4
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
5
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
+ */
7
+ sap.ui.define([
8
+ "sap/ui/base/ManagedObject",
9
+ "sap/ui/core/Element",
10
+ "sap/ui/core/Fragment",
11
+ "sap/ui/model/json/JSONModel",
12
+ "sap/ui/model/resource/ResourceModel",
13
+ "sap/ui/rta/util/validateText",
14
+ "sap/ui/rta/Utils"
15
+ ], function(
16
+ ManagedObject,
17
+ Element,
18
+ Fragment,
19
+ JSONModel,
20
+ ResourceModel,
21
+ validateText,
22
+ RtaUtils
23
+ ) {
24
+ "use strict";
25
+
26
+ /**
27
+ * @class Constructor for a new sap.ui.rta.plugin.rename.RenameDialog.
28
+ * @extends sap.ui.base.ManagedObject
29
+ * @author SAP SE
30
+ * @version 1.136.0
31
+ * @constructor
32
+ * @since 1.136
33
+ * @private
34
+ * @ui5-restricted sap.ui.rta
35
+ */
36
+ const RenameDialog = ManagedObject.extend("sap.ui.rta.plugin.rename.RenameDialog");
37
+
38
+ RenameDialog.prototype._createPopup = async function() {
39
+ const oDialog = await Fragment.load({
40
+ name: "sap.ui.rta.plugin.rename.RenameDialog",
41
+ controller: this
42
+ });
43
+ oDialog.addStyleClass(RtaUtils.getRtaStyleClassName());
44
+ this.oDialogModel = new JSONModel();
45
+ oDialog.setModel(this.oDialogModel);
46
+ const oI18nModel = new ResourceModel({ bundleName: "sap.ui.rta.messagebundle" });
47
+ oDialog.setModel(oI18nModel, "i18n");
48
+
49
+ return oDialog;
50
+ };
51
+
52
+ RenameDialog.prototype._openPopup = function() {
53
+ this._oDialog.open();
54
+ const oInput = Element.getElementById("sapUiRtaRenameDialog_input");
55
+ oInput.getFocusDomRef().select();
56
+ return new Promise((resolve) => {
57
+ this._fnResolveAfterClose = resolve;
58
+ });
59
+ };
60
+
61
+ RenameDialog.prototype.openDialogAndHandleRename = async function(mPropertyBag) {
62
+ this._oDialog = await this._createPopup();
63
+ const oOverlay = mPropertyBag.overlay;
64
+ const oElement = oOverlay.getElement();
65
+ const oDesignTimeMetadata = oOverlay.getDesignTimeMetadata();
66
+ const oEditableControlDomRef = oDesignTimeMetadata.getAssociatedDomRef(oElement, mPropertyBag.domRef);
67
+ const sCurrentText = typeof mPropertyBag.action.getTextMutators === "function"
68
+ ? mPropertyBag.action.getTextMutators(oElement).getText()
69
+ : oEditableControlDomRef.textContent;
70
+ this.oDialogModel.setData({
71
+ oldText: sCurrentText,
72
+ newText: sCurrentText
73
+ });
74
+ this.oDialogModel.refresh(true);
75
+ this.oAction = mPropertyBag.action;
76
+ const sNewText = await this._openPopup();
77
+ const oClosePromise = new Promise((resolve) => {
78
+ this._oDialog.attachAfterClose(() => {
79
+ this._oDialog.destroy();
80
+ resolve();
81
+ });
82
+ });
83
+ this._oDialog.close();
84
+ await oClosePromise;
85
+ return sNewText;
86
+ };
87
+
88
+ const VALIDATION_STATES = {
89
+ VALID: "VALID",
90
+ INVALID: "INVALID",
91
+ SAME_TEXT: "SAME_TEXT"
92
+ };
93
+
94
+ RenameDialog.prototype.checkValidRename = function() {
95
+ const oModelData = this.oDialogModel.getData();
96
+ const sNewText = oModelData.newText || "";
97
+ const sOldText = oModelData.oldText || "";
98
+ try {
99
+ validateText(sNewText, sOldText, this.oAction);
100
+ this.oDialogModel.setProperty("/validationError", undefined);
101
+ return VALIDATION_STATES.VALID;
102
+ } catch (oError) {
103
+ if (oError.message === "sameTextError") {
104
+ // Do not show error message in case of same text
105
+ this.oDialogModel.setProperty("/validationError", undefined);
106
+ return VALIDATION_STATES.SAME_TEXT;
107
+ }
108
+ this.oDialogModel.setProperty("/validationError", oError.message);
109
+ this.oDialogModel.setProperty("/isValidRename", false);
110
+ return VALIDATION_STATES.INVALID;
111
+ }
112
+ };
113
+
114
+ RenameDialog.prototype.onTextChange = function(oEvent) {
115
+ const sNewText = oEvent.getParameter("value").trim("");
116
+ this.oDialogModel.setProperty("/newText", sNewText.length ? sNewText : "\xa0");
117
+ this.checkValidRename();
118
+ };
119
+
120
+ RenameDialog.prototype.onSave = function() {
121
+ if (this.checkValidRename() === VALIDATION_STATES.VALID) {
122
+ this._fnResolveAfterClose(this.oDialogModel.getData().newText);
123
+ } else if (this.checkValidRename() === VALIDATION_STATES.SAME_TEXT) {
124
+ this._fnResolveAfterClose();
125
+ }
126
+ };
127
+
128
+ RenameDialog.prototype.onCancel = function() {
129
+ this._fnResolveAfterClose();
130
+ };
131
+
132
+ RenameDialog.prototype.destroy = function(...aArgs) {
133
+ ManagedObject.prototype.destroy.apply(this, aArgs);
134
+ if (this._oDialog) {
135
+ this._oDialog.destroy();
136
+ }
137
+ };
138
+
139
+ return RenameDialog;
140
+ });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @name sap.ui.rta.service.Action
25
25
  * @author SAP SE
26
26
  * @since 1.58
27
- * @version 1.135.0
27
+ * @version 1.136.0
28
28
  * @private
29
29
  * @ui5-restricted
30
30
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @name sap.ui.rta.service.ControllerExtension
31
31
  * @author SAP SE
32
32
  * @since 1.58
33
- * @version 1.135.0
33
+ * @version 1.136.0
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @name sap.ui.rta.service.Outline
44
44
  * @author SAP SE
45
45
  * @since 1.56
46
- * @version 1.135.0
46
+ * @version 1.136.0
47
47
  * @private
48
48
  * @ui5-restricted
49
49
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @name sap.ui.rta.service.Property
28
28
  * @author SAP SE
29
29
  * @since 1.58
30
- * @version 1.135.0
30
+ * @version 1.136.0
31
31
  * @private
32
32
  * @ui5-restricted
33
33
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -14,7 +14,7 @@ sap.ui.define(function() {
14
14
  * @name sap.ui.rta.service.Selection
15
15
  * @author SAP SE
16
16
  * @since 1.58
17
- * @version 1.135.0
17
+ * @version 1.136.0
18
18
  * @private
19
19
  * @ui5-restricted
20
20
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @name sap.ui.rta.service.SupportTools
31
31
  * @author SAP SE
32
32
  * @since 1.106
33
- * @version 1.135.0
33
+ * @version 1.136.0
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  @import "../../../../../sap/ui/core/themes/base/base.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  /* ============================================================================== */
@@ -78,6 +78,12 @@
78
78
  enabled="{controls>/newFeaturesOverview/enabled}"
79
79
  visible="{controls>/newFeaturesOverview/visible}"
80
80
  text="{i18n>BTN_WHATS_NEW_DIALOG_OVERVIEW}"
81
+ tooltip="{i18n>BTN_WHATS_NEW_DIALOG_OVERVIEW_TOOLTIP}"
81
82
  press=".openWhatsNewOverviewDialog"/>
83
+ <MenuItem
84
+ id="sapUiRta_generalTour"
85
+ icon="sap-icon://map-3"
86
+ text="{i18n>BTN_GUIDED_TOUR_START}"
87
+ press=".openGuidedTour"/>
82
88
  </Menu>
83
89
  </core:FragmentDefinition>
@@ -129,12 +129,7 @@
129
129
  icon="sap-icon://menu2"
130
130
  visible="{=
131
131
  ${controls>/modeSwitcher} === 'adaptation'
132
- &amp;&amp; (
133
- ${controls>/translation/visible}
134
- || ${controls>/appVariantMenu/visible}
135
- || ${controls>/restore/visible}
136
- || ${controls>/newFeaturesOverview/visible}
137
- )}"
132
+ }"
138
133
  enabled="{controls>/actionsMenuButton/enabled}"
139
134
  type="Transparent"
140
135
  tooltip="{i18n>BTN_MENU}"
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -26,6 +26,8 @@ sap.ui.define([
26
26
  "sap/ui/rta/toolbar/versioning/Versioning",
27
27
  "sap/ui/rta/toolbar/AdaptationRenderer",
28
28
  "sap/ui/rta/toolbar/Base",
29
+ "sap/ui/rta/util/guidedTour/content/GeneralTour",
30
+ "sap/ui/rta/util/guidedTour/GuidedTour",
29
31
  "sap/ui/rta/util/whatsNew/WhatsNewOverview",
30
32
  "sap/ui/rta/Utils"
31
33
  ], function(
@@ -50,6 +52,8 @@ sap.ui.define([
50
52
  Versioning,
51
53
  AdaptationRenderer,
52
54
  Base,
55
+ GeneralTour,
56
+ GuidedTour,
53
57
  WhatsNewOverview,
54
58
  Utils
55
59
  ) {
@@ -63,7 +67,7 @@ sap.ui.define([
63
67
  * @extends sap.ui.rta.toolbar.Base
64
68
  *
65
69
  * @author SAP SE
66
- * @version 1.135.0
70
+ * @version 1.136.0
67
71
  *
68
72
  * @constructor
69
73
  * @private
@@ -281,7 +285,8 @@ sap.ui.define([
281
285
  restore: this.eventHandler.bind(this, "Restore"),
282
286
  formatSaveAsEnabled,
283
287
  saveAs: onSaveAsPressed.bind(this),
284
- openWhatsNewOverviewDialog
288
+ openWhatsNewOverviewDialog,
289
+ openGuidedTour
285
290
  }
286
291
  }).then(function(oMenu) {
287
292
  oMenu.addStyleClass(Utils.getRtaStyleClassName());
@@ -505,6 +510,10 @@ sap.ui.define([
505
510
  WhatsNewOverview.openWhatsNewOverviewDialog();
506
511
  }
507
512
 
513
+ function openGuidedTour() {
514
+ new GuidedTour().start(GeneralTour.getTourContent());
515
+ }
516
+
508
517
  Adaptation.prototype.getControl = function(sName) {
509
518
  var oControl = Element.getElementById(`${this.getId()}_fragment--sapUiRta_${sName}`);
510
519
  // Control is inside the ActionsMenu
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.m.HBox
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.135.0
36
+ * @version 1.136.0
37
37
  *
38
38
  * @constructor
39
39
  * @private