@openui5/sap.ui.rta 1.98.0 → 1.101.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 (206) hide show
  1. package/THIRDPARTY.txt +6 -6
  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 +64 -50
  6. package/src/sap/ui/rta/Utils.js +4 -6
  7. package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +76 -0
  8. package/src/sap/ui/rta/appContexts/Component.js +31 -0
  9. package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +323 -0
  10. package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +22 -0
  11. package/src/sap/ui/rta/appContexts/i18n/i18n.properties +47 -0
  12. package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +23 -0
  13. package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +23 -0
  14. package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +23 -0
  15. package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +23 -0
  16. package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +23 -0
  17. package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +23 -0
  18. package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +23 -0
  19. package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +23 -0
  20. package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +23 -0
  21. package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +23 -0
  22. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +23 -0
  23. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +23 -0
  24. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +23 -0
  25. package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +23 -0
  26. package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +23 -0
  27. package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +23 -0
  28. package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +23 -0
  29. package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +23 -0
  30. package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +23 -0
  31. package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +23 -0
  32. package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +23 -0
  33. package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +23 -0
  34. package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +23 -0
  35. package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +23 -0
  36. package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +23 -0
  37. package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +23 -0
  38. package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +23 -0
  39. package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +23 -0
  40. package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +23 -0
  41. package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +23 -0
  42. package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +23 -0
  43. package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +23 -0
  44. package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +23 -0
  45. package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +23 -0
  46. package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +23 -0
  47. package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +23 -0
  48. package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +23 -0
  49. package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +23 -0
  50. package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +23 -0
  51. package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +23 -0
  52. package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +23 -0
  53. package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +23 -0
  54. package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +23 -0
  55. package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +23 -0
  56. package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +23 -0
  57. package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +23 -0
  58. package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +23 -0
  59. package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +23 -0
  60. package/src/sap/ui/rta/appContexts/index.html +25 -0
  61. package/src/sap/ui/rta/appContexts/manifest.json +52 -0
  62. package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +76 -0
  63. package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +103 -0
  64. package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +76 -0
  65. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +6 -3
  66. package/src/sap/ui/rta/appVariant/AppVariantManager.js +11 -11
  67. package/src/sap/ui/rta/appVariant/Feature.js +16 -6
  68. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  69. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  70. package/src/sap/ui/rta/command/AddXML.js +3 -2
  71. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
  72. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  73. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  74. package/src/sap/ui/rta/command/BindProperty.js +3 -2
  75. package/src/sap/ui/rta/command/Combine.js +5 -1
  76. package/src/sap/ui/rta/command/CommandFactory.js +20 -13
  77. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  78. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  79. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  80. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  81. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  82. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  83. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  84. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  85. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  86. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  87. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  88. package/src/sap/ui/rta/command/Move.js +1 -1
  89. package/src/sap/ui/rta/command/Property.js +1 -1
  90. package/src/sap/ui/rta/command/Remove.js +1 -1
  91. package/src/sap/ui/rta/command/Rename.js +1 -1
  92. package/src/sap/ui/rta/command/Resize.js +45 -0
  93. package/src/sap/ui/rta/command/Reveal.js +1 -1
  94. package/src/sap/ui/rta/command/Settings.js +1 -1
  95. package/src/sap/ui/rta/command/Split.js +1 -1
  96. package/src/sap/ui/rta/command/Stack.js +15 -12
  97. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  98. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  99. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  100. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  101. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  102. package/src/sap/ui/rta/library.js +6 -9
  103. package/src/sap/ui/rta/messagebundle.properties +20 -11
  104. package/src/sap/ui/rta/messagebundle_ar.properties +14 -9
  105. package/src/sap/ui/rta/messagebundle_bg.properties +16 -11
  106. package/src/sap/ui/rta/messagebundle_ca.properties +15 -10
  107. package/src/sap/ui/rta/messagebundle_cs.properties +14 -9
  108. package/src/sap/ui/rta/messagebundle_cy.properties +14 -9
  109. package/src/sap/ui/rta/messagebundle_da.properties +14 -9
  110. package/src/sap/ui/rta/messagebundle_de.properties +14 -9
  111. package/src/sap/ui/rta/messagebundle_el.properties +14 -9
  112. package/src/sap/ui/rta/messagebundle_en.properties +14 -9
  113. package/src/sap/ui/rta/messagebundle_en_GB.properties +14 -9
  114. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +14 -9
  115. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +42 -20
  116. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +14 -9
  117. package/src/sap/ui/rta/messagebundle_es.properties +14 -9
  118. package/src/sap/ui/rta/messagebundle_es_MX.properties +15 -10
  119. package/src/sap/ui/rta/messagebundle_et.properties +14 -9
  120. package/src/sap/ui/rta/messagebundle_fi.properties +14 -9
  121. package/src/sap/ui/rta/messagebundle_fr.properties +14 -9
  122. package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -9
  123. package/src/sap/ui/rta/messagebundle_hi.properties +13 -8
  124. package/src/sap/ui/rta/messagebundle_hr.properties +14 -9
  125. package/src/sap/ui/rta/messagebundle_hu.properties +14 -9
  126. package/src/sap/ui/rta/messagebundle_id.properties +14 -9
  127. package/src/sap/ui/rta/messagebundle_it.properties +14 -9
  128. package/src/sap/ui/rta/messagebundle_iw.properties +14 -9
  129. package/src/sap/ui/rta/messagebundle_ja.properties +14 -9
  130. package/src/sap/ui/rta/messagebundle_kk.properties +14 -9
  131. package/src/sap/ui/rta/messagebundle_ko.properties +14 -9
  132. package/src/sap/ui/rta/messagebundle_lt.properties +14 -9
  133. package/src/sap/ui/rta/messagebundle_lv.properties +16 -11
  134. package/src/sap/ui/rta/messagebundle_ms.properties +14 -9
  135. package/src/sap/ui/rta/messagebundle_nl.properties +14 -9
  136. package/src/sap/ui/rta/messagebundle_no.properties +14 -9
  137. package/src/sap/ui/rta/messagebundle_pl.properties +14 -9
  138. package/src/sap/ui/rta/messagebundle_pt.properties +14 -9
  139. package/src/sap/ui/rta/messagebundle_pt_PT.properties +14 -9
  140. package/src/sap/ui/rta/messagebundle_ro.properties +14 -9
  141. package/src/sap/ui/rta/messagebundle_ru.properties +14 -9
  142. package/src/sap/ui/rta/messagebundle_sh.properties +14 -9
  143. package/src/sap/ui/rta/messagebundle_sk.properties +15 -10
  144. package/src/sap/ui/rta/messagebundle_sl.properties +14 -9
  145. package/src/sap/ui/rta/messagebundle_sv.properties +14 -9
  146. package/src/sap/ui/rta/messagebundle_th.properties +14 -9
  147. package/src/sap/ui/rta/messagebundle_tr.properties +14 -9
  148. package/src/sap/ui/rta/messagebundle_uk.properties +13 -8
  149. package/src/sap/ui/rta/messagebundle_vi.properties +14 -9
  150. package/src/sap/ui/rta/messagebundle_zh_CN.properties +14 -9
  151. package/src/sap/ui/rta/messagebundle_zh_TW.properties +15 -10
  152. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  153. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  154. package/src/sap/ui/rta/plugin/Combine.js +15 -14
  155. package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
  156. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -3
  157. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  158. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  159. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  160. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  161. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  162. package/src/sap/ui/rta/plugin/Plugin.js +32 -11
  163. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  164. package/src/sap/ui/rta/plugin/Remove.js +26 -27
  165. package/src/sap/ui/rta/plugin/Rename.js +6 -19
  166. package/src/sap/ui/rta/plugin/RenameHandler.js +21 -6
  167. package/src/sap/ui/rta/plugin/Resize.js +432 -0
  168. package/src/sap/ui/rta/plugin/Selection.js +21 -8
  169. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  170. package/src/sap/ui/rta/plugin/Split.js +5 -11
  171. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  172. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +39 -38
  173. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  174. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  175. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  176. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  177. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  178. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  179. package/src/sap/ui/rta/service/Action.js +1 -1
  180. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  181. package/src/sap/ui/rta/service/Outline.js +1 -1
  182. package/src/sap/ui/rta/service/Property.js +1 -1
  183. package/src/sap/ui/rta/service/Selection.js +1 -1
  184. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +55 -75
  185. package/src/sap/ui/rta/themes/base/Overlay.less +50 -0
  186. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +5 -19
  187. package/src/sap/ui/rta/toolbar/Adaptation.js +4 -3
  188. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  189. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  190. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  191. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  192. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  193. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  194. package/src/sap/ui/rta/toolbar/translation/Translation.js +52 -31
  195. package/src/sap/ui/rta/util/PluginManager.js +9 -3
  196. package/src/sap/ui/rta/util/PopupManager.js +33 -12
  197. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  198. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +109 -60
  199. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +30 -0
  200. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +6 -5
  201. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  202. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +146 -79
  203. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +37 -0
  204. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +25 -4
  205. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +14 -2
  206. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +5 -2
@@ -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.98.0
27
+ * @version 1.101.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -133,7 +133,7 @@ sap.ui.define([
133
133
  };
134
134
 
135
135
  /**
136
- * @param {String} sAppVariantId - Application variant ID
136
+ * @param {string} sAppVariantId - Application variant ID
137
137
  * @param {sap.ui.fl.Selector} vSelector - Selector
138
138
  * @returns {Promise} Resolved promise
139
139
  * @description Creates the app variant with all inline changes in backend.
@@ -147,7 +147,7 @@ sap.ui.define([
147
147
  };
148
148
 
149
149
  /**
150
- * @param {String} sAppVariantId - Application variant ID
150
+ * @param {string} sAppVariantId - Application variant ID
151
151
  * @returns {Promise} Resolved promise
152
152
  * @description Deletes the app variant from backend.
153
153
  */
@@ -160,7 +160,7 @@ sap.ui.define([
160
160
  /**
161
161
  *
162
162
  * @param {Object} oDescriptor - Contains the app variant descriptor information
163
- * @param {Boolean} bSaveAsTriggeredFromRtaToolbar - Boolean value which tells if 'Save As' is triggered from the UI adaptation header bar
163
+ * @param {boolean} bSaveAsTriggeredFromRtaToolbar - Boolean value which tells if 'Save As' is triggered from the UI adaptation header bar
164
164
  * @returns {Object} Contains the information to create the app variant
165
165
  * @description Processes the Save As Dialog and consolidates the input parameters from the 'Save As' dialog as an object.
166
166
  */
@@ -195,7 +195,7 @@ sap.ui.define([
195
195
 
196
196
  /**
197
197
  *
198
- * @param {Boolean} bCopyUnsavedChanges - Boolean value which tells whether the dirty changes exist and need to be copied
198
+ * @param {boolean} bCopyUnsavedChanges - Boolean value which tells whether the dirty changes exist and need to be copied
199
199
  * @returns {Promise} Server response
200
200
  * @description Clears the RTA command stack
201
201
  */
@@ -210,9 +210,9 @@ sap.ui.define([
210
210
 
211
211
  /**
212
212
  *
213
- * @param {String} sAppVariantId - Contains the application variant ID
214
- * @param {String} sReferenceAppId - Contains the reference application ID
215
- * @param {Boolean} bSaveAs - Indicates whether the app is currently being saved
213
+ * @param {string} sAppVariantId - Contains the application variant ID
214
+ * @param {string} sReferenceAppId - Contains the reference application ID
215
+ * @param {boolean} bSaveAs - Indicates whether the app is currently being saved
216
216
  * @returns {Promise} Server response
217
217
  * @description In 'Save As' scenario: The app variant gets assigned to the same catalog(s) as the original app;
218
218
  * In 'Deletion' scenario: The app variant is unassigned from all catalogs.
@@ -228,9 +228,9 @@ sap.ui.define([
228
228
 
229
229
  /**
230
230
  *
231
- * @param {String} sIamId - Identity Access Management ID of SAP Fiori app
232
- * @param {String} sAppVarId - Application variant ID
233
- * @param {Boolean} bCreation - Indicates that app is being created
231
+ * @param {string} sIamId - Identity Access Management ID of SAP Fiori app
232
+ * @param {string} sAppVarId - Application variant ID
233
+ * @param {boolean} bCreation - Indicates that app is being created
234
234
  * @returns {Promise} Resolved promise
235
235
  * @description When the app variant creation/deletion and catalog assignment/unassignment are executed successfully, this asynchronous process gets triggered. It talks to the server every 2.5 secs.
236
236
  * In case of creation: It checks whether the new FLP tile is available.
@@ -108,13 +108,23 @@ sap.ui.define([
108
108
  var fnCancel = function() {
109
109
  AppVariantUtils.closeOverviewDialog();
110
110
  };
111
- sap.ui.require(["sap/ui/rta/appVariant/AppVariantOverviewDialog"], function(AppVariantOverviewDialog) {
111
+
112
+ var oUriParameters = new UriParameters(window.location.href);
113
+ var sAppContextsEnabled = oUriParameters.get("sap-ui-rta-appContexts");
114
+
115
+ var sOverviewPath = "sap/ui/rta/appVariant/AppVariantOverviewDialog";
116
+ var oProperties = {
117
+ idRunningApp: oDescriptor["sap.app"].id,
118
+ isOverviewForKeyUser: bAsKeyUser,
119
+ layer: sLayer
120
+ };
121
+ if (sAppContextsEnabled === "true") {
122
+ sOverviewPath = "sap/ui/rta/appContexts/AppContextsOverviewDialog";
123
+ oProperties = {layer: sLayer};
124
+ }
125
+ sap.ui.require([sOverviewPath], function(AppVariantOverviewDialog) {
112
126
  if (!oAppVariantOverviewDialog) {
113
- oAppVariantOverviewDialog = new AppVariantOverviewDialog({
114
- idRunningApp: oDescriptor["sap.app"].id,
115
- isOverviewForKeyUser: bAsKeyUser,
116
- layer: sLayer
117
- });
127
+ oAppVariantOverviewDialog = new AppVariantOverviewDialog(oProperties);
118
128
  }
119
129
 
120
130
  oAppVariantOverviewDialog.attachCancel(fnCancel);
@@ -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.98.0
19
+ * @version 1.101.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -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.98.0
17
+ * @version 1.101.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.78
@@ -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.98.0
19
+ * @version 1.101.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.54
@@ -55,7 +55,8 @@ sap.ui.define([
55
55
  });
56
56
 
57
57
  /**
58
- * @override to suppress the {} being recognized as binding strings
58
+ * Overridden to suppress the {} being recognized as binding strings.
59
+ * @override
59
60
  */
60
61
  AddXML.prototype.bindProperty = function(sName, oBindingInfo) {
61
62
  if (sName === "fragment") {
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.FlexCommand
26
26
  * @author SAP SE
27
- * @version 1.98.0
27
+ * @version 1.101.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -55,7 +55,8 @@ sap.ui.define([
55
55
  });
56
56
 
57
57
  /**
58
- * @override to suppress the {} being recognized as binding strings
58
+ * Overridden to suppress the {} being recognized as binding strings.
59
+ * @override
59
60
  */
60
61
  AddXMLAtExtensionPoint.prototype.bindProperty = function(sName, oBindingInfo) {
61
62
  if (sName === "fragment") {
@@ -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.98.0
24
+ * @version 1.101.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
13
13
  * @extends sap.ui.base.ManagedObject
14
14
  *
15
15
  * @author SAP SE
16
- * @version 1.98.0
16
+ * @version 1.101.0
17
17
  *
18
18
  * @constructor
19
19
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.FlexCommand
28
28
  * @author SAP SE
29
- * @version 1.98.0
29
+ * @version 1.101.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.38
@@ -55,7 +55,8 @@ sap.ui.define([
55
55
  });
56
56
 
57
57
  /**
58
- * @override to suppress the binding strings to be used as binding
58
+ * Overridden to suppress the binding strings to be used as binding.
59
+ * @override
59
60
  */
60
61
  BindProperty.prototype.bindProperty = function(sName, oBindingInfo) {
61
62
  if (sName === "newBinding") {
@@ -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.98.0
19
+ * @version 1.101.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -28,6 +28,9 @@ sap.ui.define([
28
28
  metadata: {
29
29
  library: "sap.ui.rta",
30
30
  properties: {
31
+ newElementId: {
32
+ type: "string"
33
+ },
31
34
  source: {
32
35
  type: "any"
33
36
  },
@@ -49,6 +52,7 @@ sap.ui.define([
49
52
  aFieldIds.push(oField.getId());
50
53
  });
51
54
  var mSpecificInfo = {
55
+ newElementId: this.getNewElementId(),
52
56
  changeType: this.getChangeType(),
53
57
  sourceControlId: this.getSource().getId(),
54
58
  combineElementIds: aFieldIds
@@ -93,19 +93,23 @@ 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
  }
101
101
 
102
102
  function configureAddXmlCommand(oElement, mSettings, oDesignTimeMetadata) {
103
- var oAction = {
104
- changeType: mSettings.name
105
- };
103
+ var vAction;
106
104
  if (oDesignTimeMetadata) {
107
- Object.assign(oAction, oDesignTimeMetadata.getAction(mSettings.name, oElement));
105
+ vAction = oDesignTimeMetadata.getAction(mSettings.name, oElement);
108
106
  }
107
+ // the change type is not configurable via designtime
108
+ // it can also not be disabled with 'not-adaptable' or null
109
+ var oAction = vAction || {};
110
+ Object.assign(oAction, {
111
+ changeType: mSettings.name
112
+ });
109
113
  return oAction;
110
114
  }
111
115
 
@@ -347,6 +351,9 @@ sap.ui.define([
347
351
  configure: configureSplitCommand,
348
352
  adjustForBinding: adjustSplitCommand
349
353
  },
354
+ resize: {
355
+ clazz: "sap/ui/rta/command/Resize"
356
+ },
350
357
  "switch": {
351
358
  clazz: "sap/ui/rta/command/ControlVariantSwitch"
352
359
  },
@@ -475,7 +482,7 @@ sap.ui.define([
475
482
  * @extends sap.ui.base.ManagedObject
476
483
  *
477
484
  * @author SAP SE
478
- * @version 1.98.0
485
+ * @version 1.101.0
479
486
  *
480
487
  * @constructor
481
488
  * @private
@@ -530,12 +537,12 @@ sap.ui.define([
530
537
  * @param {string} sCommand - Command type
531
538
  * @param {object} mSettings - Initial settings for the new command (command specific settings, looks diffrent for each and every command)
532
539
  * @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
533
- * @param {Object} [mFlexSettings] - Property bag
534
- * @param {String} [mFlexSettings.layer] - The Layer in which RTA should be started. Default: "CUSTOMER"
535
- * @param {Boolean} [mFlexSettings.developerMode] - Whether RTA is started in DeveloperMode Mode. Whether RTA is started in DeveloperMode Mode
536
- * @param {String} [mFlexSettings.baseId] - Base ID of the app
537
- * @param {String} [mFlexSettings.projectId] - Project ID
538
- * @param {String} [mFlexSettings.scenario] - Key representing the current scenario
540
+ * @param {object} [mFlexSettings] - Property bag
541
+ * @param {string} [mFlexSettings.layer] - The Layer in which RTA should be started. Default: "CUSTOMER"
542
+ * @param {boolean} [mFlexSettings.developerMode] - Whether RTA is started in DeveloperMode Mode. Whether RTA is started in DeveloperMode Mode
543
+ * @param {string} [mFlexSettings.baseId] - Base ID of the app
544
+ * @param {string} [mFlexSettings.projectId] - Project ID
545
+ * @param {string} [mFlexSettings.scenario] - Key representing the current scenario
539
546
  * @returns {Promise} A promise which will return the created command
540
547
  */
541
548
  CommandFactory.getCommandFor = function (vElement, sCommand, mSettings, oDesignTimeMetadata, mFlexSettings) {
@@ -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.98.0
24
+ * @version 1.101.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.98.0
23
+ * @version 1.101.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.98.0
23
+ * @version 1.101.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.98.0
27
+ * @version 1.101.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.98.0
19
+ * @version 1.101.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.98.0
23
+ * @version 1.101.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.98.0
15
+ * @version 1.101.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.98.0
15
+ * @version 1.101.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.98.0
32
+ * @version 1.101.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.98.0
32
+ * @version 1.101.0
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.42
@@ -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.98.0
23
+ * @version 1.101.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.98.0
20
+ * @version 1.101.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.98.0
19
+ * @version 1.101.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.98.0
15
+ * @version 1.101.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.98.0
15
+ * @version 1.101.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.101.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.98.0
15
+ * @version 1.101.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.98.0
15
+ * @version 1.101.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.98.0
17
+ * @version 1.101.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.98.0
58
+ * @version 1.101.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.98.0
20
+ * @version 1.101.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -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.98.0
21
+ * @version 1.101.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.98.0
19
+ * @version 1.101.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.98.0
23
+ * @version 1.101.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.98.0
54
+ * @version 1.101.0
55
55
  *
56
56
  * @static
57
57
  * @since 1.42