@openui5/sap.ui.rta 1.128.0 → 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 (166) 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/command/AddIFrame.js +1 -1
  12. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  13. package/src/sap/ui/rta/command/AddXML.js +1 -1
  14. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  15. package/src/sap/ui/rta/command/Annotation.js +1 -1
  16. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  17. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  18. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  19. package/src/sap/ui/rta/command/Combine.js +1 -1
  20. package/src/sap/ui/rta/command/CommandFactory.js +10 -8
  21. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +14 -15
  25. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  27. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  28. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  29. package/src/sap/ui/rta/command/FlexCommand.js +8 -5
  30. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  31. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  32. package/src/sap/ui/rta/command/Move.js +1 -1
  33. package/src/sap/ui/rta/command/Property.js +1 -1
  34. package/src/sap/ui/rta/command/Remove.js +1 -1
  35. package/src/sap/ui/rta/command/Rename.js +1 -1
  36. package/src/sap/ui/rta/command/Resize.js +1 -1
  37. package/src/sap/ui/rta/command/Reveal.js +1 -1
  38. package/src/sap/ui/rta/command/Settings.js +1 -1
  39. package/src/sap/ui/rta/command/Split.js +1 -1
  40. package/src/sap/ui/rta/command/Stack.js +1 -1
  41. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  42. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +6 -4
  43. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +7 -5
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +5 -3
  46. package/src/sap/ui/rta/enablement/TestDelegate.js +4 -3
  47. package/src/sap/ui/rta/enablement/elementActionTest.js +9 -6
  48. package/src/sap/ui/rta/library.js +2 -2
  49. package/src/sap/ui/rta/messagebundle.properties +43 -1
  50. package/src/sap/ui/rta/messagebundle_ar.properties +21 -0
  51. package/src/sap/ui/rta/messagebundle_bg.properties +21 -0
  52. package/src/sap/ui/rta/messagebundle_ca.properties +21 -0
  53. package/src/sap/ui/rta/messagebundle_cnr.properties +22 -1
  54. package/src/sap/ui/rta/messagebundle_cs.properties +21 -0
  55. package/src/sap/ui/rta/messagebundle_cy.properties +21 -0
  56. package/src/sap/ui/rta/messagebundle_da.properties +22 -1
  57. package/src/sap/ui/rta/messagebundle_de.properties +21 -0
  58. package/src/sap/ui/rta/messagebundle_el.properties +21 -0
  59. package/src/sap/ui/rta/messagebundle_en.properties +21 -0
  60. package/src/sap/ui/rta/messagebundle_en_GB.properties +21 -0
  61. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +14 -2
  62. package/src/sap/ui/rta/messagebundle_es.properties +21 -0
  63. package/src/sap/ui/rta/messagebundle_es_MX.properties +21 -0
  64. package/src/sap/ui/rta/messagebundle_et.properties +21 -0
  65. package/src/sap/ui/rta/messagebundle_fi.properties +21 -0
  66. package/src/sap/ui/rta/messagebundle_fr.properties +21 -0
  67. package/src/sap/ui/rta/messagebundle_fr_CA.properties +22 -1
  68. package/src/sap/ui/rta/messagebundle_hi.properties +21 -0
  69. package/src/sap/ui/rta/messagebundle_hr.properties +21 -0
  70. package/src/sap/ui/rta/messagebundle_hu.properties +21 -0
  71. package/src/sap/ui/rta/messagebundle_id.properties +22 -1
  72. package/src/sap/ui/rta/messagebundle_it.properties +21 -0
  73. package/src/sap/ui/rta/messagebundle_iw.properties +21 -0
  74. package/src/sap/ui/rta/messagebundle_ja.properties +21 -0
  75. package/src/sap/ui/rta/messagebundle_kk.properties +21 -0
  76. package/src/sap/ui/rta/messagebundle_ko.properties +21 -0
  77. package/src/sap/ui/rta/messagebundle_lt.properties +21 -0
  78. package/src/sap/ui/rta/messagebundle_lv.properties +21 -0
  79. package/src/sap/ui/rta/messagebundle_mk.properties +21 -0
  80. package/src/sap/ui/rta/messagebundle_ms.properties +21 -0
  81. package/src/sap/ui/rta/messagebundle_nl.properties +21 -0
  82. package/src/sap/ui/rta/messagebundle_no.properties +21 -0
  83. package/src/sap/ui/rta/messagebundle_pl.properties +21 -0
  84. package/src/sap/ui/rta/messagebundle_pt.properties +21 -0
  85. package/src/sap/ui/rta/messagebundle_pt_PT.properties +21 -0
  86. package/src/sap/ui/rta/messagebundle_ro.properties +22 -1
  87. package/src/sap/ui/rta/messagebundle_ru.properties +21 -0
  88. package/src/sap/ui/rta/messagebundle_sh.properties +22 -1
  89. package/src/sap/ui/rta/messagebundle_sk.properties +21 -0
  90. package/src/sap/ui/rta/messagebundle_sl.properties +21 -0
  91. package/src/sap/ui/rta/messagebundle_sr.properties +22 -1
  92. package/src/sap/ui/rta/messagebundle_sv.properties +21 -0
  93. package/src/sap/ui/rta/messagebundle_th.properties +21 -0
  94. package/src/sap/ui/rta/messagebundle_tr.properties +21 -0
  95. package/src/sap/ui/rta/messagebundle_uk.properties +22 -1
  96. package/src/sap/ui/rta/messagebundle_vi.properties +22 -1
  97. package/src/sap/ui/rta/messagebundle_zh_CN.properties +21 -0
  98. package/src/sap/ui/rta/messagebundle_zh_TW.properties +21 -0
  99. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  100. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  101. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  102. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  103. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  104. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  105. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  106. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  107. package/src/sap/ui/rta/plugin/Plugin.js +2 -3
  108. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  109. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  110. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  111. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  112. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  113. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  114. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  115. package/src/sap/ui/rta/plugin/Split.js +1 -1
  116. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +0 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +70 -69
  121. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  123. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +9 -7
  124. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -1
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -3
  127. package/src/sap/ui/rta/service/Action.js +4 -3
  128. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  129. package/src/sap/ui/rta/service/Outline.js +5 -9
  130. package/src/sap/ui/rta/service/Property.js +10 -11
  131. package/src/sap/ui/rta/service/Selection.js +1 -1
  132. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  133. package/src/sap/ui/rta/themes/base/WhatsNew.less +7 -0
  134. package/src/sap/ui/rta/themes/base/library.source.less +2 -1
  135. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +8 -0
  136. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +8 -1
  137. package/src/sap/ui/rta/toolbar/Adaptation.js +9 -2
  138. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  139. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  140. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  141. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  143. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +20 -18
  144. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +1 -1
  145. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  146. package/src/sap/ui/rta/toolbar/translation/Translation.js +3 -3
  147. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  148. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  149. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  150. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  151. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  152. package/src/sap/ui/rta/util/ServiceManager.js +2 -2
  153. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +10 -10
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +11 -13
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +59 -25
  157. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +110 -0
  158. package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +81 -0
  159. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +82 -0
  160. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +75 -0
  161. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +73 -0
  162. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +138 -0
  163. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/AdvancedSettingsImage.png +0 -0
  164. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/FullIframe.png +0 -0
  165. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/MiniMenu.png +0 -0
  166. 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.128.0",
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.128.0",
18
- "@openui5/sap.ui.core": "1.128.0",
19
- "@openui5/sap.ui.dt": "1.128.0",
20
- "@openui5/sap.ui.fl": "1.128.0",
21
- "@openui5/sap.ui.layout": "1.128.0"
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.128.0</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.128.0
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.128.0
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.128.0
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.128.0
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
  };
@@ -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.128.0
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.128.0
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.128.0
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.128.0
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);
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.128.0
20
+ * @version 1.129.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -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.128.0
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.128.0
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.128.0
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.128.0
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
  }
@@ -425,14 +426,15 @@ sap.ui.define([
425
426
  var bIsUiElement = vElement instanceof ManagedObject;
426
427
 
427
428
  // only sap.ui.rta.command.FlexCommand requires a selector property
428
- if (!mCommand.noSelector) {
429
- mSettings = Object.assign({}, mSettings, !bIsUiElement && {selector: vElement});
429
+ if (!mCommand.noSelector && !bIsUiElement) {
430
+ mSettings = { ...mSettings, selector: vElement };
430
431
  }
431
432
 
432
- mSettings = Object.assign({}, mSettings, {
433
+ mSettings = {
434
+ ...mSettings,
433
435
  element: bIsUiElement ? vElement : undefined,
434
436
  name: sCommand
435
- });
437
+ };
436
438
 
437
439
  var oAction;
438
440
  if (mCommand.configure) {
@@ -491,7 +493,7 @@ sap.ui.define([
491
493
  * @extends sap.ui.base.ManagedObject
492
494
  *
493
495
  * @author SAP SE
494
- * @version 1.128.0
496
+ * @version 1.129.0
495
497
  *
496
498
  * @constructor
497
499
  * @private
@@ -522,7 +524,7 @@ sap.ui.define([
522
524
  * @param {Object} [mFlexSettings] - Property bag. See {@link sap.ui.rta.RuntimeAuthoring#setFlexSettings} method for more information
523
525
  */
524
526
  CommandFactory.prototype.setFlexSettings = function(mFlexSettings) {
525
- this.setProperty("flexSettings", Object.assign(this.getFlexSettings(), mFlexSettings));
527
+ this.setProperty("flexSettings", { ...this.getFlexSettings(), ...mFlexSettings });
526
528
  };
527
529
 
528
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.128.0
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.128.0
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.128.0
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.128.0
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.128.0
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.128.0
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.128.0
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.128.0
15
+ * @version 1.129.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.rta.command.BaseCommand
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.128.0
38
+ * @version 1.129.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -208,7 +208,7 @@ sap.ui.define([
208
208
  variantReference: sVariantReference,
209
209
  isChangeOnStandardVariant: sVariantManagementReference === sVariantReference
210
210
  };
211
- mChangeSpecificData = Object.assign({}, mChangeSpecificData, mVariantObj);
211
+ mChangeSpecificData = { ...mChangeSpecificData, ...mVariantObj };
212
212
  }
213
213
  mChangeSpecificData.command = sCommand;
214
214
  mChangeSpecificData.generator = mFlexSettings.generator || rtaLibrary.GENERATOR_NAME;
@@ -220,8 +220,11 @@ sap.ui.define([
220
220
  // ATTENTION! the change gets applied as soon as the parent is available, so there might be possible side effects with lazy loading
221
221
  if (mFlexSettings && mFlexSettings.originalSelector) {
222
222
  oChange.addDependentControl(mFlexSettings.originalSelector, "originalSelector", {modifier: JsControlTreeModifier, appComponent: this.getAppComponent()});
223
- oChange.setSelector(Object.assign(oChange.getSelector(), JsControlTreeModifier.getSelector(this.getSelector().id, this.getAppComponent())));
224
- oChange.setContent(Object.assign({}, oChange.getContent(), mFlexSettings.content));
223
+ oChange.setSelector({
224
+ ...oChange.getSelector(),
225
+ ...JsControlTreeModifier.getSelector(this.getSelector().id, this.getAppComponent())
226
+ });
227
+ oChange.setContent({ ...oChange.getContent(), ...mFlexSettings.content });
225
228
  }
226
229
  return oChange;
227
230
  }.bind(this));
@@ -252,7 +255,7 @@ sap.ui.define([
252
255
  appComponent: oAppComponent,
253
256
  view: FlUtils.getViewForControl(oSelectorElement)
254
257
  };
255
- return ChangesWriteAPI.apply(Object.assign({change: oChange, element: oSelectorElement}, mPropertyBag))
258
+ return ChangesWriteAPI.apply({ change: oChange, element: oSelectorElement, ...mPropertyBag })
256
259
 
257
260
  .then(function(oResult) {
258
261
  if (!oResult.success) {
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.128.0
30
+ * @version 1.129.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @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.128.0
23
+ * @version 1.129.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.128.0
20
+ * @version 1.129.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.128.0
19
+ * @version 1.129.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.128.0
15
+ * @version 1.129.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.128.0
15
+ * @version 1.129.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @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.128.0
19
+ * @version 1.129.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.101
@@ -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.128.0
15
+ * @version 1.129.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.128.0
15
+ * @version 1.129.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.128.0
17
+ * @version 1.129.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46