@openui5/sap.ui.rta 1.127.1 → 1.129.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 (178) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -1
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +21 -3
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  9. package/src/sap/ui/rta/appVariant/Feature.js +2 -2
  10. package/src/sap/ui/rta/appVariant/Utils.js +3 -3
  11. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +2 -2
  12. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +27 -27
  13. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  14. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  15. package/src/sap/ui/rta/command/AddXML.js +1 -1
  16. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  17. package/src/sap/ui/rta/command/Annotation.js +46 -0
  18. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  19. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  20. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  21. package/src/sap/ui/rta/command/Combine.js +1 -1
  22. package/src/sap/ui/rta/command/CommandFactory.js +14 -8
  23. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +14 -15
  27. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  28. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  29. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  30. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  31. package/src/sap/ui/rta/command/FlexCommand.js +8 -5
  32. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  33. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  34. package/src/sap/ui/rta/command/Move.js +1 -1
  35. package/src/sap/ui/rta/command/Property.js +1 -1
  36. package/src/sap/ui/rta/command/Remove.js +1 -1
  37. package/src/sap/ui/rta/command/Rename.js +1 -1
  38. package/src/sap/ui/rta/command/Resize.js +1 -1
  39. package/src/sap/ui/rta/command/Reveal.js +1 -1
  40. package/src/sap/ui/rta/command/Settings.js +1 -1
  41. package/src/sap/ui/rta/command/Split.js +1 -1
  42. package/src/sap/ui/rta/command/Stack.js +5 -2
  43. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +6 -4
  45. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +7 -5
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +5 -3
  48. package/src/sap/ui/rta/enablement/TestDelegate.js +4 -3
  49. package/src/sap/ui/rta/enablement/elementActionTest.js +9 -6
  50. package/src/sap/ui/rta/library.js +2 -2
  51. package/src/sap/ui/rta/messagebundle.properties +47 -3
  52. package/src/sap/ui/rta/messagebundle_ar.properties +24 -2
  53. package/src/sap/ui/rta/messagebundle_bg.properties +24 -2
  54. package/src/sap/ui/rta/messagebundle_ca.properties +24 -2
  55. package/src/sap/ui/rta/messagebundle_cnr.properties +25 -3
  56. package/src/sap/ui/rta/messagebundle_cs.properties +24 -2
  57. package/src/sap/ui/rta/messagebundle_cy.properties +25 -3
  58. package/src/sap/ui/rta/messagebundle_da.properties +25 -3
  59. package/src/sap/ui/rta/messagebundle_de.properties +24 -2
  60. package/src/sap/ui/rta/messagebundle_el.properties +24 -2
  61. package/src/sap/ui/rta/messagebundle_en.properties +24 -2
  62. package/src/sap/ui/rta/messagebundle_en_GB.properties +24 -2
  63. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +24 -2
  64. package/src/sap/ui/rta/messagebundle_es.properties +24 -2
  65. package/src/sap/ui/rta/messagebundle_es_MX.properties +24 -2
  66. package/src/sap/ui/rta/messagebundle_et.properties +24 -2
  67. package/src/sap/ui/rta/messagebundle_fi.properties +24 -2
  68. package/src/sap/ui/rta/messagebundle_fr.properties +24 -2
  69. package/src/sap/ui/rta/messagebundle_fr_CA.properties +25 -3
  70. package/src/sap/ui/rta/messagebundle_hi.properties +24 -2
  71. package/src/sap/ui/rta/messagebundle_hr.properties +24 -2
  72. package/src/sap/ui/rta/messagebundle_hu.properties +25 -3
  73. package/src/sap/ui/rta/messagebundle_id.properties +25 -3
  74. package/src/sap/ui/rta/messagebundle_it.properties +24 -2
  75. package/src/sap/ui/rta/messagebundle_iw.properties +24 -2
  76. package/src/sap/ui/rta/messagebundle_ja.properties +24 -2
  77. package/src/sap/ui/rta/messagebundle_kk.properties +24 -2
  78. package/src/sap/ui/rta/messagebundle_ko.properties +25 -3
  79. package/src/sap/ui/rta/messagebundle_lt.properties +24 -2
  80. package/src/sap/ui/rta/messagebundle_lv.properties +24 -2
  81. package/src/sap/ui/rta/messagebundle_mk.properties +24 -2
  82. package/src/sap/ui/rta/messagebundle_ms.properties +24 -2
  83. package/src/sap/ui/rta/messagebundle_nl.properties +24 -2
  84. package/src/sap/ui/rta/messagebundle_no.properties +24 -2
  85. package/src/sap/ui/rta/messagebundle_pl.properties +24 -2
  86. package/src/sap/ui/rta/messagebundle_pt.properties +24 -2
  87. package/src/sap/ui/rta/messagebundle_pt_PT.properties +24 -2
  88. package/src/sap/ui/rta/messagebundle_ro.properties +25 -3
  89. package/src/sap/ui/rta/messagebundle_ru.properties +24 -2
  90. package/src/sap/ui/rta/messagebundle_sh.properties +25 -3
  91. package/src/sap/ui/rta/messagebundle_sk.properties +24 -2
  92. package/src/sap/ui/rta/messagebundle_sl.properties +24 -2
  93. package/src/sap/ui/rta/messagebundle_sr.properties +25 -3
  94. package/src/sap/ui/rta/messagebundle_sv.properties +24 -2
  95. package/src/sap/ui/rta/messagebundle_th.properties +24 -2
  96. package/src/sap/ui/rta/messagebundle_tr.properties +24 -2
  97. package/src/sap/ui/rta/messagebundle_uk.properties +26 -4
  98. package/src/sap/ui/rta/messagebundle_vi.properties +25 -3
  99. package/src/sap/ui/rta/messagebundle_zh_CN.properties +24 -2
  100. package/src/sap/ui/rta/messagebundle_zh_TW.properties +24 -2
  101. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  102. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  103. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  104. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  105. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  106. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  107. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  108. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  109. package/src/sap/ui/rta/plugin/Plugin.js +2 -3
  110. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  111. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  112. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  113. package/src/sap/ui/rta/plugin/RenameHandler.js +5 -2
  114. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  115. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  116. package/src/sap/ui/rta/plugin/Settings.js +34 -10
  117. package/src/sap/ui/rta/plugin/Split.js +1 -1
  118. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +0 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +70 -69
  123. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  124. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +9 -7
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +22 -7
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -1
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +7 -4
  129. package/src/sap/ui/rta/service/Action.js +4 -3
  130. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  131. package/src/sap/ui/rta/service/Outline.js +5 -9
  132. package/src/sap/ui/rta/service/Property.js +10 -11
  133. package/src/sap/ui/rta/service/Selection.js +1 -1
  134. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  135. package/src/sap/ui/rta/themes/base/AddIFrame.less +8 -10
  136. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +2 -3
  137. package/src/sap/ui/rta/themes/base/ContextMenu.less +13 -13
  138. package/src/sap/ui/rta/themes/base/Dialogs.less +2 -2
  139. package/src/sap/ui/rta/themes/base/FieldRepository.less +5 -10
  140. package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +9 -4
  141. package/src/sap/ui/rta/themes/base/Overlay.less +27 -180
  142. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +1 -1
  143. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +18 -76
  144. package/src/sap/ui/rta/themes/base/Toolbar.base.less +18 -18
  145. package/src/sap/ui/rta/themes/base/WhatsNew.less +7 -0
  146. package/src/sap/ui/rta/themes/base/library.source.less +10 -11
  147. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +8 -0
  148. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +8 -1
  149. package/src/sap/ui/rta/toolbar/Adaptation.js +9 -2
  150. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  151. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  152. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  153. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  154. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  155. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +20 -18
  156. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +1 -1
  157. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  158. package/src/sap/ui/rta/toolbar/translation/Translation.js +3 -3
  159. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  160. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  161. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  162. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  163. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  164. package/src/sap/ui/rta/util/ServiceManager.js +2 -2
  165. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  166. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +10 -10
  167. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +11 -13
  168. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +60 -25
  169. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +110 -0
  170. package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +81 -0
  171. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +82 -0
  172. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +75 -0
  173. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +73 -0
  174. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +138 -0
  175. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/AdvancedSettingsImage.png +0 -0
  176. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/FullIframe.png +0 -0
  177. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/MiniMenu.png +0 -0
  178. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/WhatsNewOverview.png +0 -0
package/THIRDPARTY.txt CHANGED
@@ -468,7 +468,7 @@ License: Apache-2.0
468
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
469
  Contained in: lib/jsdoc/ui5/plugin.js
470
470
 
471
- Component: SAP Theming Base Content, version: 11.16.1
471
+ Component: SAP Theming Base Content, version: 11.18.0
472
472
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
473
473
  License: Apache-2.0
474
474
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.127.1",
3
+ "version": "1.129.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.rta",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.127.1",
18
- "@openui5/sap.ui.core": "1.127.1",
19
- "@openui5/sap.ui.dt": "1.127.1",
20
- "@openui5/sap.ui.fl": "1.127.1",
21
- "@openui5/sap.ui.layout": "1.127.1"
17
+ "@openui5/sap.m": "1.129.0",
18
+ "@openui5/sap.ui.core": "1.129.0",
19
+ "@openui5/sap.ui.dt": "1.129.0",
20
+ "@openui5/sap.ui.fl": "1.129.0",
21
+ "@openui5/sap.ui.layout": "1.129.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.127.1</version>
9
+ <version>1.129.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @alias sap.ui.rta.Client
60
60
  * @author SAP SE
61
61
  * @since 1.56.0
62
- * @version 1.127.1
62
+ * @version 1.129.0
63
63
  * @private
64
64
  * @ui5-restricted
65
65
  */
@@ -44,6 +44,7 @@ sap.ui.define([
44
44
  "sap/ui/rta/toolbar/FioriLike",
45
45
  "sap/ui/rta/toolbar/Standalone",
46
46
  "sap/ui/rta/util/changeVisualization/ChangeVisualization",
47
+ "sap/ui/rta/util/whatsNew/WhatsNew",
47
48
  "sap/ui/rta/util/PluginManager",
48
49
  "sap/ui/rta/util/PopupManager",
49
50
  "sap/ui/rta/util/ReloadManager",
@@ -90,6 +91,7 @@ sap.ui.define([
90
91
  FioriLikeToolbar,
91
92
  StandaloneToolbar,
92
93
  ChangeVisualization,
94
+ WhatsNew,
93
95
  PluginManager,
94
96
  PopupManager,
95
97
  ReloadManager,
@@ -111,7 +113,7 @@ sap.ui.define([
111
113
  * @class The runtime authoring allows to adapt the fields of a running application.
112
114
  * @extends sap.ui.base.ManagedObject
113
115
  * @author SAP SE
114
- * @version 1.127.1
116
+ * @version 1.129.0
115
117
  * @constructor
116
118
  * @private
117
119
  * @since 1.30
@@ -252,6 +254,13 @@ sap.ui.define([
252
254
  .then(function(mUShellServices) {
253
255
  this._mUShellServices = mUShellServices;
254
256
  ReloadManager.setUShellServices(mUShellServices);
257
+ return FeaturesAPI.isSeenFeaturesAvailable();
258
+ }.bind(this))
259
+ .then(function(isAvailable) {
260
+ if (isAvailable) {
261
+ this.addDependent(new WhatsNew({ layer: this.getLayer() }), "whatsNew");
262
+ }
263
+ return Promise.resolve();
255
264
  }.bind(this));
256
265
  }
257
266
  });
@@ -339,7 +348,7 @@ sap.ui.define([
339
348
  const oUriParams = new URLSearchParams(window.location.search);
340
349
  const sUriLayer = oUriParams.get("sap-ui-layer");
341
350
 
342
- mFlexSettings = Object.assign({}, this.getFlexSettings(), mFlexSettings);
351
+ mFlexSettings = { ...this.getFlexSettings(), ...mFlexSettings };
343
352
  if (sUriLayer) {
344
353
  mFlexSettings.layer = sUriLayer.toUpperCase();
345
354
  }
@@ -459,6 +468,10 @@ sap.ui.define([
459
468
  }
460
469
  setBlockedOnRootElements.call(this, true);
461
470
 
471
+ if (this.getWhatsNew) {
472
+ this.getWhatsNew().initializeWhatsNewDialog();
473
+ }
474
+
462
475
  // PopupManager sets the toolbar to already open popups' autoCloseAreas
463
476
  // Since at this point the toolbar is not available, it waits for RTA to start,
464
477
  // before adding it to the autoCloseAreas of the open popups
@@ -468,6 +481,7 @@ sap.ui.define([
468
481
  // the show() method of the toolbar relies on this RTA instance being set on the PopupManager
469
482
  await this.getToolbar().show();
470
483
  }
484
+
471
485
  if (Device.browser.name === "ff") {
472
486
  // in FF shift+f10 also opens a browser context menu.
473
487
  // It seems that the only way to get rid of it is to completely turn off context menu in ff..
@@ -1458,7 +1472,7 @@ sap.ui.define([
1458
1472
 
1459
1473
  await oToolbar.onFragmentLoaded();
1460
1474
  const bTranslationAvailable = await FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer());
1461
-
1475
+ const bWhatsNewFeaturesAvailable = await FeaturesAPI.isSeenFeaturesAvailable();
1462
1476
  const bAppVariantsAvailable = mButtonsAvailability.saveAsAvailable;
1463
1477
  const bExtendedOverview = bAppVariantsAvailable && RtaAppVariantFeature.isOverviewExtended();
1464
1478
  const oUriParameters = new URLSearchParams(window.location.search);
@@ -1485,6 +1499,10 @@ sap.ui.define([
1485
1499
  visible: bTranslationAvailable,
1486
1500
  enabled: this.bPersistedDataTranslatable
1487
1501
  },
1502
+ newFeaturesOverview: {
1503
+ visible: bWhatsNewFeaturesAvailable,
1504
+ enabled: bWhatsNewFeaturesAvailable
1505
+ },
1488
1506
  appVariantMenu: {
1489
1507
  visible: bAppVariantsAvailable,
1490
1508
  enabled: bAppVariantsAvailable,
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  *
45
45
  * @namespace
46
46
  * @author SAP SE
47
- * @version 1.127.1
47
+ * @version 1.129.0
48
48
  *
49
49
  * @private
50
50
  * @since 1.30
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  * @author SAP SE
27
- * @version 1.127.1
27
+ * @version 1.129.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
 
114
114
  AppVariantUtils.createAppVariant = function(vSelector, mPropertyBag) {
115
115
  mPropertyBag.version = "1.0.0"; // Application variant version should be 1.0.0 which is expected by backend
116
- return AppVariantWriteAPI.saveAs(Object.assign({selector: vSelector}, mPropertyBag));
116
+ return AppVariantWriteAPI.saveAs({ selector: vSelector, ...mPropertyBag });
117
117
  };
118
118
 
119
119
  AppVariantUtils.getInlineChangeInput = function(sValue, sComment) {
@@ -305,7 +305,7 @@ sap.ui.define([
305
305
  return fnTriggerCatalogAssignment(oAppVariantSaveClosure.id, oAppVariantSaveClosure.reference);
306
306
  })
307
307
  .then(function(oResult) {
308
- oIAMResponse = Object.assign({}, oResult);
308
+ oIAMResponse = { ...oResult };
309
309
  BusyIndicator.hide();
310
310
  return fnTriggerActionFlow.call(this, bSaveAsFromRta, null, sCurrentLayer);
311
311
  }.bind(this))
@@ -394,7 +394,7 @@ sap.ui.define([
394
394
  return fnTriggerCatalogUnAssignment(sAppVariantId);
395
395
  })
396
396
  .then(function(oResult) {
397
- oIAMResponse = Object.assign({}, oResult);
397
+ oIAMResponse = { ...oResult };
398
398
  return fnReloadOverviewDialog.call(this, !bCurrentlyAdapting, sCurrentLayer);
399
399
  }.bind(this))
400
400
  .then(function() {
@@ -154,7 +154,7 @@ function(
154
154
  oNavigationObject.params = oParams;
155
155
  }
156
156
 
157
- oNavigationObject = Object.assign({}, oNavigationObject, oDeleteButtonProperties);
157
+ oNavigationObject = { ...oNavigationObject, ...oDeleteButtonProperties };
158
158
  return oNavigationObject;
159
159
  }.bind(this));
160
160
  };
@@ -210,14 +210,14 @@ function(
210
210
  if (oAppVariantInfo.hasStartableIntent) {
211
211
  oPreparedObject.startWith = oAppVariantInfo.startWith;
212
212
  return this._getNavigationInfo(oPreparedObject).then(function(oNavigationObject) {
213
- oAppVariantAttributes = Object.assign({}, oAppVariantAttributes, oNavigationObject);
213
+ oAppVariantAttributes = { ...oAppVariantAttributes, ...oNavigationObject };
214
214
  return oAppVariantAttributes;
215
215
  });
216
216
  }
217
217
 
218
218
  oAppVariantAttributes.adaptUIButtonEnabled = false;
219
219
  var oDeleteButtonProperties = this._checkMenuItemOptions(oPreparedObject, false);
220
- oAppVariantAttributes = Object.assign({}, oAppVariantAttributes, oDeleteButtonProperties);
220
+ oAppVariantAttributes = { ...oAppVariantAttributes, ...oDeleteButtonProperties };
221
221
  return Promise.resolve(oAppVariantAttributes);
222
222
  }.bind(this));
223
223
  };
@@ -9,7 +9,7 @@ MAA_DIALOG_DELETE_APPVAR=[[[\u010E\u0113\u013A\u0113\u0163\u0113 \u0100\u03C1\u0
9
9
  MAA_DIALOG_ADAPT_UI=[[[\u0100\u018C\u0105\u03C1\u0163 \u016E\u012C\u2219\u2219\u2219\u2219\u2219\u2219]]]
10
10
  MAA_CURRENTLY_ADAPTING=[[[\u0108\u0171\u0157\u0157\u0113\u014B\u0163\u013A\u0177 \u0100\u018C\u0105\u03C1\u0163\u012F\u014B\u011F\u2219\u2219\u2219\u2219\u2219\u2219]]]
11
11
  MAA_OPERATION_IN_PROGRESS=[[[\u014E\u03C1\u0113\u0157\u0105\u0163\u012F\u014F\u014B \u012F\u014B \u01A4\u0157\u014F\u011F\u0157\u0113\u015F\u015F\u2219\u2219\u2219\u2219\u2219]]]
12
- MAA_NEW_APP_VARIANT=[[[\u0134\u0171\u015F\u0163 \u010B\u0157\u0113\u0105\u0163\u0113\u018C\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
12
+ MAA_NEW_APP_VARIANT=[[[\u0134\u0171\u015F\u0163 \u0108\u0157\u0113\u0105\u0163\u0113\u018C\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
13
13
  MAA_ORIGINAL_TYPE=[[[\u014E\u0157\u012F\u011F\u012F\u014B\u0105\u013A \u0100\u03C1\u03C1\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
14
14
  MAA_APP_VARIANT_TYPE=[[[\u0100\u03C1\u03C1 \u01B2\u0105\u0157\u012F\u0105\u014B\u0163\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
15
15
  MAA_CURRENT_APP_STATUS=[[[\u0108\u0171\u0157\u0157\u0113\u014B\u0163 \u015C\u0163\u0105\u0163\u0171\u015F\u2219\u2219\u2219\u2219\u2219]]]
@@ -23,6 +23,6 @@ MSG_APP_VARIANT_DELETE_CONFIRMATION=[[[\u010E\u014F \u0177\u014F\u0171 \u0157\u0
23
23
  TOOLTIP_ADAPTUI_STATUS_RUNNING=[[[\u014E\u03C1\u0113\u0157\u0105\u0163\u012F\u014F\u014B \u012F\u015F \u0157\u0171\u014B\u014B\u012F\u014B\u011F \u012F\u014B \u0163\u0125\u0113 \u0183\u0105\u010B\u0137\u011F\u0157\u014F\u0171\u014B\u018C.\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
24
24
  TOOLTIP_ADAPTUI_STATUS_PUBLISHED=[[[\u0158\u0113\u0192\u0157\u0113\u015F\u0125 \u0177\u014F\u0171\u0157 \u0183\u0157\u014F\u0175\u015F\u0113\u0157 \u0163\u014F \u0105\u010B\u0163\u012F\u028B\u0105\u0163\u0113 \u0163\u0125\u012F\u015F \u014F\u03C1\u0163\u012F\u014F\u014B.\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
25
25
  TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR=[[[\u01A4\u013A\u0113\u0105\u015F\u0113 \u010B\u0125\u0113\u010B\u0137 \u0175\u0125\u0177 \u0163\u0125\u0113 \u010B\u0105\u0163\u0105\u013A\u014F\u011F \u0105\u015F\u015F\u012F\u011F\u014B\u0271\u0113\u014B\u0163 \u0192\u0105\u012F\u013A\u0113\u018C.\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
26
- TOOLTIP_ADAPTUI_ON_PREMISE=[[[\u01A4\u013A\u0113\u0105\u015F\u0113 \u0105\u015F\u0137 \u0177\u014F\u0171\u0157 \u010B\u014F\u014B\u0163\u0113\u014B\u0163 \u0105\u018C\u0271\u012F\u014B\u012F\u015F\u0163\u0157\u0105\u0163\u014F\u0157 \u0163\u014F \u010B\u0157\u0113\u0105\u0163\u0113 \u0163\u0125\u0113 \u0163\u0105\u0157\u011F\u0113\u0163 \u0271\u0105\u03C1\u03C1\u012F\u014B\u011F\u015F \u0192\u014F\u0157 \u0163\u0125\u0113 \u0105\u03C1\u03C1 \u028B\u0105\u0157\u012F\u0105\u014B\u0163.\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
26
+ TOOLTIP_ADAPTUI_ON_PREMISE=[[[\u01A4\u013A\u0113\u0105\u015F\u0113 \u0105\u015F\u0137 \u0177\u014F\u0171\u0157 \u010B\u014F\u014B\u0163\u0113\u014B\u0163 \u0105\u018C\u0271\u012F\u014B\u012F\u015F\u0163\u0157\u0105\u0163\u014F\u0157 \u0163\u014F \u010B\u0157\u0113\u0105\u0163\u0113 \u0163\u0125\u0113 \u0163\u0105\u0157\u011F\u0113\u0163 \u0271\u0105\u03C1\u03C1\u012F\u014B\u011F\u015F \u0192\u014F\u0157 \u0163\u0125\u0113 \u0105\u03C1\u03C1 \u028B\u0105\u0157\u012F\u0105\u014B\u0163.\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
27
27
  MAA_COPY_ID_SUCCESS=[[[\u012C\u010E \u0175\u0105\u015F \u010B\u014F\u03C1\u012F\u0113\u018C \u015F\u0171\u010B\u010B\u0113\u015F\u015F\u0192\u0171\u013A\u013A\u0177.\u2219\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
28
28
  MAA_DIALOG_ACTIONS_HEADER=[[[\u0100\u028B\u0105\u012F\u013A\u0105\u0183\u013A\u0113 \u0100\u010B\u0163\u012F\u014F\u014B\u015F\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
@@ -1,28 +1,28 @@
1
1
 
2
- MAA_DIALOG_ICON=Kt9LdyoYT1fTbt1A4RyOMQ_Icon
3
- MAA_DIALOG_DESCRIPTION=cAXoNVCoV5HkJ8Il8KqOgA_Description
4
- MAA_DIALOG_COPY_ID_ACTION=CxUiBSjlx/9DbFc4KNSUbQ_Copy ID Action
5
- MAA_DIALOG_ADAPT_UI_ACTION=hJH0Ky6bMxNmT5vy0UUiCQ_Adapt UI Action
6
- MAA_DIALOG_SAVE_AS_ACTION=S7qx2IgTjxsVSHNQNZS48Q_Save As Action
7
- MAA_DIALOG_ACTIONS=8y/WAvdm9VIla+wfThZ2/g_Actions
8
- MAA_DIALOG_DELETE_APPVAR=S2sgnMisPnxjob9AqwOzag_Delete App Variant
9
- MAA_DIALOG_ADAPT_UI=iOFOxs5zabdvBUroBZpEYw_Adapt UI
10
- MAA_CURRENTLY_ADAPTING=1bEEja2xkFi5fHxilufy3Q_Currently Adapting
11
- MAA_OPERATION_IN_PROGRESS=yXHqDzdPzfAmR7vKXO9iJg_Operation in Progress
12
- MAA_NEW_APP_VARIANT=xOJGb0Xm6fqul1xnfJRaFw_Just created
13
- MAA_ORIGINAL_TYPE=H5VyoHhlf+ftRMVH7j+rcg_Original App
14
- MAA_APP_VARIANT_TYPE=mTJBor5MwQJh0HzFD98TXQ_App Variant
15
- MAA_CURRENT_APP_STATUS=K7+TT0VGz7plz5oygUm+PA_Current Status
16
- TOOLTIP_MAA_DIALOG_COPY_ID=WYxPNrMA4A1ZHV1Byobubw_Copy the ID of the app variant to the clipboard
17
- MAA_DIALOG_COPY_ID=jt3P49PuP9UStusLSJzZsw_Copy ID
18
- MAA_DIALOG_APP_TYPE=VK5TanY2OfjJVxsBPm14+w_App Type
19
- MAA_DIALOG_TITLE=HTFPVNX+CoBBN4cDQTU5zQ_Title
20
- MAA_DIALOG_SUBTITLE=g3lcCDKFqluB4RoyIenPXw_Subtitle
21
- TOOLTIP_DELETE_APP_VAR=QZNaFwAGdCQ03e7hYWERyA_Please ask your content administrator to delete the target mappings for this app variant. Then you can delete the app variant.
22
- MSG_APP_VARIANT_DELETE_CONFIRMATION=YTHRYH2FqLRwD+Jc9jj+Ew_Do you really want to delete this app variant?\nPlease keep in mind that this will delete the app variant for all users.
23
- TOOLTIP_ADAPTUI_STATUS_RUNNING=UfsPpMx/G0rbhB9y/ybBfQ_Operation is running in the background.
24
- TOOLTIP_ADAPTUI_STATUS_PUBLISHED=x5vvf5B8qBD3TAdPBy+m/Q_Refresh your browser to activate this option.
25
- TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR=GuhLMAP74enD6OiwOr8xLg_Please check why the catalog assignment failed.
26
- TOOLTIP_ADAPTUI_ON_PREMISE=KWfLyUoI9NUZKd6fOFLTeA_Please ask your content administrator to create the target mappings for the app variant.
27
- MAA_COPY_ID_SUCCESS=x/sVRpF9hN7/MDyEoak7iA_ID was copied successfully.
28
- MAA_DIALOG_ACTIONS_HEADER=ZKC6byDJ3pvqKxufGas7Hw_Available Actions
2
+ MAA_DIALOG_ICON=yY3ldI7THNUASTcX2CUK0g_Icon
3
+ MAA_DIALOG_DESCRIPTION=TtgjLSoHC2lSGBQBt/dFOQ_Description
4
+ MAA_DIALOG_COPY_ID_ACTION=W8du05RNPJwvTqJRWMI0lw_Copy ID Action
5
+ MAA_DIALOG_ADAPT_UI_ACTION=3xaDWftvftK0du5Pb7o+tA_Adapt UI Action
6
+ MAA_DIALOG_SAVE_AS_ACTION=RWEVH5KXkANL2aQhbyT51w_Save As Action
7
+ MAA_DIALOG_ACTIONS=DQmKppHrj2G9b1YuWg/ZWw_Actions
8
+ MAA_DIALOG_DELETE_APPVAR=UGpjHWlhpuuS6jM82tLp0A_Delete App Variant
9
+ MAA_DIALOG_ADAPT_UI=zlA/AugJ43yZQ+huVSe/5w_Adapt UI
10
+ MAA_CURRENTLY_ADAPTING=1F6vfzjkTTvmUP90jBE9mg_Currently Adapting
11
+ MAA_OPERATION_IN_PROGRESS=qy3649NEeF3uJaZpAHrPdw_Operation in Progress
12
+ MAA_NEW_APP_VARIANT=dd1Z1LK4DofhgZZA3sIbZQ_Just Created
13
+ MAA_ORIGINAL_TYPE=yIrCQP/s90cajlZYbgus+A_Original App
14
+ MAA_APP_VARIANT_TYPE=6WkVnZ0dJZYYMZMjOTU/CQ_App Variant
15
+ MAA_CURRENT_APP_STATUS=XaPKJTXBWyW8P/6LRNvBNg_Current Status
16
+ TOOLTIP_MAA_DIALOG_COPY_ID=PqNZMvFuj5P8CZNbv8O3kQ_Copy the ID of the app variant to the clipboard
17
+ MAA_DIALOG_COPY_ID=C2g0gGJZGvpzQtvTSzHFKQ_Copy ID
18
+ MAA_DIALOG_APP_TYPE=jQWGJJxn6MtVo5ob+7cjuQ_App Type
19
+ MAA_DIALOG_TITLE=de/MRTAn3kzskRT9FX/YOg_Title
20
+ MAA_DIALOG_SUBTITLE=aRaKCpDlO+Ea8uhAX1/qOA_Subtitle
21
+ TOOLTIP_DELETE_APP_VAR=J9gd8aRpsosGyWjd/i4yJA_Please ask your content administrator to delete the target mappings for this app variant. Then you can delete the app variant.
22
+ MSG_APP_VARIANT_DELETE_CONFIRMATION=ydoXh3jHvpKMBbiVJdn/QQ_Do you really want to delete this app variant?\nPlease keep in mind that this will delete the app variant for all users.
23
+ TOOLTIP_ADAPTUI_STATUS_RUNNING=zzzv6rPzu8lBJY4tJacVKg_Operation is running in the background.
24
+ TOOLTIP_ADAPTUI_STATUS_PUBLISHED=qBqvecASGOQwQ9NDX87Fsw_Refresh your browser to activate this option.
25
+ TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR=1P93DLTdQEiLcoiFPVVn0w_Please check why the catalog assignment failed.
26
+ TOOLTIP_ADAPTUI_ON_PREMISE=TW/kjF+IZPRBquxmbD5Vkg_Please ask your content administrator to create the target mappings for the app variant.
27
+ MAA_COPY_ID_SUCCESS=hd2HuEnXOL88hl1qoVK+eg_ID was copied successfully.
28
+ MAA_DIALOG_ACTIONS_HEADER=jXGQ1mXTF8IIe2uZ1Vnhzw_Available Actions
@@ -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.127.1
19
+ * @version 1.129.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.127.1
17
+ * @version 1.129.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.127.1
19
+ * @version 1.129.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.54
@@ -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.127.1
27
+ * @version 1.129.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -96,7 +96,7 @@ sap.ui.define([
96
96
  appComponent: oAppComponent,
97
97
  view: oView
98
98
  };
99
- return ChangesWriteAPI.apply(Object.assign({change: oChange, element: oSelectorElement}, mPropertyBag))
99
+ return ChangesWriteAPI.apply({ change: oChange, element: oSelectorElement, ...mPropertyBag })
100
100
  .then(function(oResult) {
101
101
  if (!oResult.success) {
102
102
  return Promise.reject(oResult.error);
@@ -0,0 +1,46 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2024 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
+ * Annotation Command
15
+ *
16
+ * @class
17
+ * @extends sap.ui.rta.command.FlexCommand
18
+ *
19
+ * @author SAP SE
20
+ * @version 1.129.0
21
+ *
22
+ * @constructor
23
+ * @private
24
+ * @since 1.128
25
+ * @alias sap.ui.rta.command.Annotation
26
+ */
27
+ var AnnotationCommand = FlexCommand.extend("sap.ui.rta.command.Annotation", {
28
+ metadata: {
29
+ library: "sap.ui.rta",
30
+ properties: {
31
+ content: {
32
+ type: "any",
33
+ group: "content"
34
+ }
35
+ },
36
+ events: {}
37
+ }
38
+ });
39
+
40
+ /**
41
+ * For annotation commands to take effect the app needs to be restarted as the models need to be reloaded.
42
+ */
43
+ AnnotationCommand.prototype.needsReload = true;
44
+
45
+ return AnnotationCommand;
46
+ });
@@ -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.127.1
24
+ * @version 1.129.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @extends sap.ui.base.ManagedObject
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.127.1
19
+ * @version 1.129.0
20
20
  *
21
21
  * @constructor
22
22
  * @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.127.1
29
+ * @version 1.129.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.38
@@ -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.127.1
19
+ * @version 1.129.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -259,10 +259,11 @@ sap.ui.define([
259
259
  function configureCustomAddCommand(oElement, mSettings, oDesignTimeMetadata) {
260
260
  var oAddAction = oDesignTimeMetadata.getAction("add", mSettings.element);
261
261
  if (oAddAction && oAddAction.custom && typeof oAddAction.custom.getItems === "function") {
262
- var oAction = Object.assign(oAddAction.custom, {
262
+ var oAction = {
263
+ ...oAddAction.custom,
263
264
  changeOnRelevantContainer: mSettings.changeOnRelevantContainer,
264
265
  changeType: mSettings.changeType
265
- });
266
+ };
266
267
  delete mSettings.changeOnRelevantContainer; // this property is not required for a sap.ui.rta.command.CustomAdd
267
268
  return oAction;
268
269
  }
@@ -382,6 +383,10 @@ sap.ui.define([
382
383
  clazz: "sap/ui/rta/command/AppDescriptorCommand",
383
384
  noSelector: true
384
385
  },
386
+ annotation: {
387
+ clazz: "sap/ui/rta/command/Annotation",
388
+ noSelector: true
389
+ },
385
390
  addIFrame: {
386
391
  clazz: "sap/ui/rta/command/AddIFrame",
387
392
  configure: configureAddIFrame
@@ -421,14 +426,15 @@ sap.ui.define([
421
426
  var bIsUiElement = vElement instanceof ManagedObject;
422
427
 
423
428
  // only sap.ui.rta.command.FlexCommand requires a selector property
424
- if (!mCommand.noSelector) {
425
- mSettings = Object.assign({}, mSettings, !bIsUiElement && {selector: vElement});
429
+ if (!mCommand.noSelector && !bIsUiElement) {
430
+ mSettings = { ...mSettings, selector: vElement };
426
431
  }
427
432
 
428
- mSettings = Object.assign({}, mSettings, {
433
+ mSettings = {
434
+ ...mSettings,
429
435
  element: bIsUiElement ? vElement : undefined,
430
436
  name: sCommand
431
- });
437
+ };
432
438
 
433
439
  var oAction;
434
440
  if (mCommand.configure) {
@@ -487,7 +493,7 @@ sap.ui.define([
487
493
  * @extends sap.ui.base.ManagedObject
488
494
  *
489
495
  * @author SAP SE
490
- * @version 1.127.1
496
+ * @version 1.129.0
491
497
  *
492
498
  * @constructor
493
499
  * @private
@@ -518,7 +524,7 @@ sap.ui.define([
518
524
  * @param {Object} [mFlexSettings] - Property bag. See {@link sap.ui.rta.RuntimeAuthoring#setFlexSettings} method for more information
519
525
  */
520
526
  CommandFactory.prototype.setFlexSettings = function(mFlexSettings) {
521
- this.setProperty("flexSettings", Object.assign(this.getFlexSettings(), mFlexSettings));
527
+ this.setProperty("flexSettings", { ...this.getFlexSettings(), ...mFlexSettings });
522
528
  };
523
529
 
524
530
  /**
@@ -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.127.1
24
+ * @version 1.129.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -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.127.1
27
+ * @version 1.129.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @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.127.1
23
+ * @version 1.129.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -5,15 +5,17 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/core/util/reflection/JsControlTreeModifier",
8
- "sap/ui/fl/Utils",
9
8
  "sap/ui/fl/write/api/ContextSharingAPI",
9
+ "sap/ui/fl/write/api/PersistenceWriteAPI",
10
+ "sap/ui/fl/Utils",
10
11
  "sap/ui/rta/command/BaseCommand",
11
12
  "sap/ui/rta/library",
12
13
  "sap/ui/rta/Utils"
13
14
  ], function(
14
15
  JsControlTreeModifier,
15
- flUtils,
16
16
  ContextSharingAPI,
17
+ PersistenceWriteAPI,
18
+ flUtils,
17
19
  BaseCommand,
18
20
  rtaLibrary,
19
21
  rtaUtils
@@ -26,7 +28,7 @@ sap.ui.define([
26
28
  * @class
27
29
  * @extends sap.ui.rta.command.BaseCommand
28
30
  * @author SAP SE
29
- * @version 1.127.1
31
+ * @version 1.129.0
30
32
  * @constructor
31
33
  * @private
32
34
  * @since 1.86
@@ -132,7 +134,7 @@ sap.ui.define([
132
134
  * @public
133
135
  * @returns {Promise} Resolves after undo
134
136
  */
135
- ControlVariantSaveAs.prototype.undo = function() {
137
+ ControlVariantSaveAs.prototype.undo = async function() {
136
138
  if (this._oVariantChange) {
137
139
  var aChangesToBeDeleted = [];
138
140
  this._aPreparedChanges.forEach(function(oChange) {
@@ -140,7 +142,10 @@ sap.ui.define([
140
142
  aChangesToBeDeleted.push(oChange);
141
143
  }
142
144
  });
143
- this.oModel.oChangePersistence.deleteChanges(aChangesToBeDeleted);
145
+ await PersistenceWriteAPI.remove({
146
+ flexObjects: aChangesToBeDeleted,
147
+ selector: this.oAppComponent
148
+ });
144
149
 
145
150
  var mPropertyBag = {
146
151
  variant: this._oVariantChange,
@@ -149,17 +154,11 @@ sap.ui.define([
149
154
  component: this.oAppComponent
150
155
  };
151
156
 
152
- return this.oModel.removeVariant(mPropertyBag, true)
153
- .then(function() {
154
- const aRelevantChanges = this._aControlChangesWithoutVariant;
155
- return this.oModel.addAndApplyChangesOnVariant(aRelevantChanges);
156
- }.bind(this))
157
- .then(function() {
158
- this._aPreparedChanges = null;
159
- this._oVariantChange = null;
160
- }.bind(this));
157
+ await this.oModel.removeVariant(mPropertyBag, true);
158
+ await this.oModel.addAndApplyChangesOnVariant(this._aControlChangesWithoutVariant);
159
+ this._aPreparedChanges = null;
160
+ this._oVariantChange = null;
161
161
  }
162
- return Promise.resolve();
163
162
  };
164
163
 
165
164
  return ControlVariantSaveAs;
@@ -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.127.1
27
+ * @version 1.129.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.50
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @class
23
23
  * @extends sap.ui.rta.command.BaseCommand
24
24
  * @author SAP SE
25
- * @version 1.127.1
25
+ * @version 1.129.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @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.127.1
15
+ * @version 1.129.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.127.1
15
+ * @version 1.129.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62