@openui5/sap.ui.rta 1.104.0 → 1.105.1

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 (151) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +1 -1
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +1 -1
  5. package/src/sap/ui/rta/Client.js +1 -1
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +12 -6
  7. package/src/sap/ui/rta/Utils.js +1 -1
  8. package/src/sap/ui/rta/api/startAdaptation.js +2 -2
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  11. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +5 -3
  12. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  13. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  14. package/src/sap/ui/rta/command/AddXML.js +1 -1
  15. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  16. package/src/sap/ui/rta/command/AppDescriptorCommand.js +8 -3
  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 +1 -1
  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 +2 -2
  25. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  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 +1 -1
  30. package/src/sap/ui/rta/command/LREPSerializer.js +11 -8
  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 +3 -3
  41. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  42. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  46. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  47. package/src/sap/ui/rta/library.js +2 -2
  48. package/src/sap/ui/rta/messagebundle_ar.properties +13 -1
  49. package/src/sap/ui/rta/messagebundle_bg.properties +13 -1
  50. package/src/sap/ui/rta/messagebundle_ca.properties +13 -1
  51. package/src/sap/ui/rta/messagebundle_cs.properties +13 -1
  52. package/src/sap/ui/rta/messagebundle_cy.properties +13 -1
  53. package/src/sap/ui/rta/messagebundle_da.properties +13 -1
  54. package/src/sap/ui/rta/messagebundle_de.properties +13 -1
  55. package/src/sap/ui/rta/messagebundle_el.properties +13 -1
  56. package/src/sap/ui/rta/messagebundle_en.properties +13 -1
  57. package/src/sap/ui/rta/messagebundle_en_GB.properties +13 -1
  58. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
  59. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +13 -1
  60. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +13 -1
  61. package/src/sap/ui/rta/messagebundle_es.properties +13 -1
  62. package/src/sap/ui/rta/messagebundle_es_MX.properties +13 -1
  63. package/src/sap/ui/rta/messagebundle_et.properties +13 -1
  64. package/src/sap/ui/rta/messagebundle_fi.properties +13 -1
  65. package/src/sap/ui/rta/messagebundle_fr.properties +13 -1
  66. package/src/sap/ui/rta/messagebundle_fr_CA.properties +13 -1
  67. package/src/sap/ui/rta/messagebundle_hi.properties +13 -1
  68. package/src/sap/ui/rta/messagebundle_hr.properties +13 -1
  69. package/src/sap/ui/rta/messagebundle_hu.properties +13 -1
  70. package/src/sap/ui/rta/messagebundle_id.properties +13 -1
  71. package/src/sap/ui/rta/messagebundle_it.properties +13 -1
  72. package/src/sap/ui/rta/messagebundle_iw.properties +13 -1
  73. package/src/sap/ui/rta/messagebundle_ja.properties +13 -1
  74. package/src/sap/ui/rta/messagebundle_kk.properties +13 -1
  75. package/src/sap/ui/rta/messagebundle_ko.properties +13 -1
  76. package/src/sap/ui/rta/messagebundle_lt.properties +13 -1
  77. package/src/sap/ui/rta/messagebundle_lv.properties +13 -1
  78. package/src/sap/ui/rta/messagebundle_ms.properties +13 -1
  79. package/src/sap/ui/rta/messagebundle_nl.properties +13 -1
  80. package/src/sap/ui/rta/messagebundle_no.properties +13 -1
  81. package/src/sap/ui/rta/messagebundle_pl.properties +13 -1
  82. package/src/sap/ui/rta/messagebundle_pt.properties +13 -1
  83. package/src/sap/ui/rta/messagebundle_pt_PT.properties +13 -1
  84. package/src/sap/ui/rta/messagebundle_ro.properties +13 -1
  85. package/src/sap/ui/rta/messagebundle_ru.properties +13 -1
  86. package/src/sap/ui/rta/messagebundle_sh.properties +13 -1
  87. package/src/sap/ui/rta/messagebundle_sk.properties +13 -1
  88. package/src/sap/ui/rta/messagebundle_sl.properties +13 -1
  89. package/src/sap/ui/rta/messagebundle_sv.properties +13 -1
  90. package/src/sap/ui/rta/messagebundle_th.properties +13 -1
  91. package/src/sap/ui/rta/messagebundle_tr.properties +13 -1
  92. package/src/sap/ui/rta/messagebundle_uk.properties +13 -1
  93. package/src/sap/ui/rta/messagebundle_vi.properties +13 -1
  94. package/src/sap/ui/rta/messagebundle_zh_CN.properties +13 -1
  95. package/src/sap/ui/rta/messagebundle_zh_TW.properties +13 -1
  96. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  97. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  98. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  99. package/src/sap/ui/rta/plugin/CompVariant.js +2 -2
  100. package/src/sap/ui/rta/plugin/ControlVariant.js +21 -15
  101. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  102. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  103. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  104. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  105. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  106. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  107. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  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.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  122. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  123. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  124. package/src/sap/ui/rta/service/Action.js +1 -1
  125. package/src/sap/ui/rta/service/ControllerExtension.js +8 -9
  126. package/src/sap/ui/rta/service/Outline.js +1 -1
  127. package/src/sap/ui/rta/service/Property.js +1 -1
  128. package/src/sap/ui/rta/service/Selection.js +1 -1
  129. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  130. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  131. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  132. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  133. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  134. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  135. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  136. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  137. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  138. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  139. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  140. package/src/sap/ui/rta/util/ReloadManager.js +3 -2
  141. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  142. package/src/sap/ui/rta/util/adaptationStarter.js +2 -2
  143. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +80 -48
  144. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +100 -55
  145. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +21 -101
  146. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +2 -2
  147. package/src/sap/ui/rta/util/changeVisualization/categories/CombineVisualization.js +2 -2
  148. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +3 -3
  149. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +2 -2
  150. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +2 -2
  151. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +8 -3
package/.reuse/dep5 CHANGED
@@ -159,7 +159,7 @@ Copyright:
159
159
  License: Apache-2.0 and MIT
160
160
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
161
161
 
162
- Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite*
162
+ Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
163
163
  Copyright: jQuery Foundation and other contributors
164
164
  License: MIT
165
165
  Comment: these files belong to: QUnit Composite
package/THIRDPARTY.txt CHANGED
@@ -104,7 +104,7 @@ Component: QUnit Composite, version: 1.0.2-pre
104
104
  Copyright: jQuery Foundation and other contributors
105
105
  License: MIT
106
106
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
107
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite*
107
+ Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
108
108
 
109
109
  Component: JUnit Reporter for QUnit, version: 1.1.1
110
110
  Copyright: jQuery Foundation and other contributors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.104.0",
3
+ "version": "1.105.1",
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.104.0",
18
- "@openui5/sap.ui.core": "1.104.0",
19
- "@openui5/sap.ui.dt": "1.104.0",
20
- "@openui5/sap.ui.fl": "1.104.0",
21
- "@openui5/sap.ui.layout": "1.104.0"
17
+ "@openui5/sap.m": "1.105.1",
18
+ "@openui5/sap.ui.core": "1.105.1",
19
+ "@openui5/sap.ui.dt": "1.105.1",
20
+ "@openui5/sap.ui.fl": "1.105.1",
21
+ "@openui5/sap.ui.layout": "1.105.1"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.104.0</version>
9
+ <version>1.105.1</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @alias sap.ui.rta.Client
58
58
  * @author SAP SE
59
59
  * @since 1.56.0
60
- * @version 1.104.0
60
+ * @version 1.105.1
61
61
  * @private
62
62
  * @ui5-restricted
63
63
  */
@@ -116,7 +116,7 @@ sap.ui.define([
116
116
  * @class The runtime authoring allows to adapt the fields of a running application.
117
117
  * @extends sap.ui.base.ManagedObject
118
118
  * @author SAP SE
119
- * @version 1.104.0
119
+ * @version 1.105.1
120
120
  * @constructor
121
121
  * @private
122
122
  * @since 1.30
@@ -909,13 +909,19 @@ sap.ui.define([
909
909
  .then(fnCallback);
910
910
  };
911
911
 
912
- RuntimeAuthoring.prototype._serializeAndSave = function() {
912
+ RuntimeAuthoring.prototype._serializeAndSave = function(bActivateVersion) {
913
913
  if (this.getShowToolbars()) {
914
914
  this.bPersistedDataTranslatable = this._oToolbarControlsModel.getProperty("/translationEnabled");
915
915
  }
916
- // Save changes on the current layer and discard dirty changes on other layers
917
- var bSaveAsDraft = this._oVersionsModel.getProperty("/versioningEnabled") && this.getLayer() === Layer.CUSTOMER;
918
- return this._oSerializer.saveCommands(bSaveAsDraft, this.getLayer(), true);
916
+ var mPropertyBag = {
917
+ // Save changes on the current layer and discard dirty changes on other layers
918
+ saveAsDraft: this._oVersionsModel.getProperty("/versioningEnabled") && this.getLayer() === Layer.CUSTOMER,
919
+ layer: this.getLayer(),
920
+ removeOtherLayerChanges: true,
921
+ version: bActivateVersion ? this._oVersionsModel.getProperty("/displayedVersion") : undefined
922
+ };
923
+
924
+ return this._oSerializer.saveCommands(mPropertyBag);
919
925
  };
920
926
 
921
927
  RuntimeAuthoring.prototype._serializeToLrep = function() {
@@ -961,7 +967,7 @@ sap.ui.define([
961
967
  var sLayer = this.getLayer();
962
968
  var oSelector = this.getRootControlInstance();
963
969
  var sDisplayedVersion = this._oVersionsModel.getProperty("/displayedVersion");
964
- return this._serializeAndSave()
970
+ return this._serializeAndSave(true)
965
971
  .then(function () {
966
972
  return VersionsAPI.activate({
967
973
  layer: sLayer,
@@ -45,7 +45,7 @@ function(
45
45
  *
46
46
  * @namespace
47
47
  * @author SAP SE
48
- * @version 1.104.0
48
+ * @version 1.105.1
49
49
  *
50
50
  * @private
51
51
  * @since 1.30
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -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.104.0
27
+ * @version 1.105.1
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -16,7 +16,8 @@ sap.ui.define([
16
16
  "sap/ui/rta/RuntimeAuthoring",
17
17
  "sap/ui/core/BusyIndicator",
18
18
  "sap/base/i18n/ResourceBundle",
19
- "sap/m/MessageToast"
19
+ "sap/m/MessageToast",
20
+ "sap/m/MenuItem"
20
21
  ], function(
21
22
  Controller,
22
23
  Layer,
@@ -30,7 +31,8 @@ sap.ui.define([
30
31
  RuntimeAuthoring,
31
32
  BusyIndicator,
32
33
  ResourceBundle,
33
- MessageToast
34
+ MessageToast,
35
+ MenuItem
34
36
  ) {
35
37
  "use strict";
36
38
 
@@ -212,7 +214,7 @@ sap.ui.define([
212
214
  var oItem = oEvent.getParameter("item");
213
215
  var sItemPath = "";
214
216
 
215
- while (oItem instanceof sap.m.MenuItem) {
217
+ while (oItem instanceof MenuItem) {
216
218
  sItemPath = oItem.getText() + " > " + sItemPath;
217
219
  oItem = oItem.getParent();
218
220
  }
@@ -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.104.0
19
+ * @version 1.105.1
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.104.0
17
+ * @version 1.105.1
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.104.0
19
+ * @version 1.105.1
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.104.0
27
+ * @version 1.105.1
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -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.104.0
24
+ * @version 1.105.1
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -99,8 +99,13 @@ sap.ui.define([
99
99
  }
100
100
  })
101
101
  .then(function(oAppDescriptorChangeContent) {
102
- return new DescriptorChangeFactory().createNew(this.getReference(),
103
- oAppDescriptorChangeContent, this.getLayer(), this.getAppComponent());
102
+ return new DescriptorChangeFactory().createNew(
103
+ this.getReference(),
104
+ oAppDescriptorChangeContent,
105
+ this.getLayer(),
106
+ this.getAppComponent(),
107
+ "sap.ui.rta.AppDescriptorCommand"
108
+ );
104
109
  }.bind(this))
105
110
  .then(function(oAppDescriptorChange) {
106
111
  var oChange = oAppDescriptorChange.store();
@@ -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.104.0
16
+ * @version 1.105.1
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.104.0
29
+ * @version 1.105.1
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.104.0
19
+ * @version 1.105.1
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -485,7 +485,7 @@ sap.ui.define([
485
485
  * @extends sap.ui.base.ManagedObject
486
486
  *
487
487
  * @author SAP SE
488
- * @version 1.104.0
488
+ * @version 1.105.1
489
489
  *
490
490
  * @constructor
491
491
  * @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.104.0
24
+ * @version 1.105.1
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -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.104.0
25
+ * @version 1.105.1
26
26
  * @constructor
27
27
  * @private
28
28
  * @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.104.0
23
+ * @version 1.105.1
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.BaseCommand
28
28
  * @author SAP SE
29
- * @version 1.104.0
29
+ * @version 1.105.1
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.86
@@ -112,7 +112,7 @@ sap.ui.define([
112
112
  .then(function(aDirtyChanges) {
113
113
  this._aPreparedChanges = aDirtyChanges;
114
114
  this._oVariantChange = aDirtyChanges[0];
115
- this.sNewVariantReference = this._oVariantChange.getDefinition().fileName;
115
+ this.sNewVariantReference = this._oVariantChange.getId();
116
116
  this._aPreparedChanges.forEach(function(oChange) {
117
117
  if (oChange.getFileType() === "change") {
118
118
  oChange.assignedToVariant = true;
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @class
18
18
  * @extends sap.ui.rta.command.BaseCommand
19
19
  * @author SAP SE
20
- * @version 1.104.0
20
+ * @version 1.105.1
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.50
@@ -69,7 +69,7 @@ sap.ui.define([
69
69
  this.sVariantManagementReference = JsControlTreeModifier.getSelector(oVariantManagementControl, this.oAppComponent).id;
70
70
  this.sCurrentVariant = this.oModel.getCurrentVariantReference(this.sVariantManagementReference);
71
71
 
72
- var sCurrentTitle = this.oModel.getVariantProperty(this.sCurrentVariant, "title");
72
+ var sCurrentTitle = this.oModel.getVariantTitle(this.sCurrentVariant, this.sVariantManagementReference);
73
73
  this.setOldText(sCurrentTitle);
74
74
 
75
75
  var mPropertyBag = {
@@ -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.104.0
23
+ * @version 1.105.1
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.104.0
15
+ * @version 1.105.1
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.104.0
15
+ * @version 1.105.1
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.rta.command.BaseCommand
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.104.0
34
+ * @version 1.105.1
35
35
  *
36
36
  * @constructor
37
37
  * @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.104.0
32
+ * @version 1.105.1
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.42
@@ -153,13 +153,15 @@ sap.ui.define([
153
153
  * Serializes and saves all changes to LREP
154
154
  * In case of Base Applications (no App Variants) the App Descriptor Changes and UI Changes are saved in different Flex Persistence instances,
155
155
  * so we have to call save twice. For App Variants all the changes are saved in one place.
156
- * @param {boolean} bSaveAsDraft - save the changes as a draft
157
- * @param {string} [sLayer] - Layer for which the changes should be saved
158
- * @param {boolean} [bRemoveOtherLayerChanges=false] - Whether to remove changes on other layers before saving
156
+ * @param {object} mPropertyBag - Property bag
157
+ * @param {boolean} mPropertyBag.saveAsDraft - save the changes as a draft
158
+ * @param {string} [mPropertyBag.layer] - Layer for which the changes should be saved
159
+ * @param {boolean} [mPropertyBag.removeOtherLayerChanges=false] - Whether to remove changes on other layers before saving
160
+ * @param {string} [mPropertyBag.version] - Layer for which the changes should be saved
159
161
  * @returns {Promise} return empty promise
160
162
  * @public
161
163
  */
162
- LREPSerializer.prototype.saveCommands = function(bSaveAsDraft, sLayer, bRemoveOtherLayerChanges) {
164
+ LREPSerializer.prototype.saveCommands = function(mPropertyBag) {
163
165
  this._lastPromise = this._lastPromise.catch(function(oError) {
164
166
  Log.error(oError);
165
167
  // _lastPromise chain must not be interrupted
@@ -171,9 +173,10 @@ sap.ui.define([
171
173
  return PersistenceWriteAPI.save({
172
174
  selector: oRootControl,
173
175
  skipUpdateCache: false,
174
- draft: !!bSaveAsDraft,
175
- layer: sLayer,
176
- removeOtherLayerChanges: !!bRemoveOtherLayerChanges
176
+ draft: !!mPropertyBag.saveAsDraft,
177
+ layer: mPropertyBag.layer,
178
+ removeOtherLayerChanges: !!mPropertyBag.removeOtherLayerChanges,
179
+ version: mPropertyBag.version
177
180
  });
178
181
  }.bind(this))
179
182
  .then(function() {
@@ -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.104.0
23
+ * @version 1.105.1
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.104.0
20
+ * @version 1.105.1
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.104.0
19
+ * @version 1.105.1
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.104.0
15
+ * @version 1.105.1
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.104.0
15
+ * @version 1.105.1
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.104.0
19
+ * @version 1.105.1
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.104.0
15
+ * @version 1.105.1
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.104.0
15
+ * @version 1.105.1
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.104.0
17
+ * @version 1.105.1
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  }
30
30
 
31
31
  function pushToStack(oComponent, mComposite, oStack, oChange) {
32
- var oSelector = oChange.getSelector();
32
+ var oSelector = oChange.getSelector && oChange.getSelector();
33
33
  var oCommand = new Settings({
34
34
  selector: oSelector,
35
35
  changeType: oChange.getDefinition().changeType,
@@ -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.104.0
58
+ * @version 1.105.1
59
59
  * @constructor
60
60
  * @private
61
61
  * @since 1.34
@@ -107,7 +107,7 @@ sap.ui.define([
107
107
  var mComposite = {};
108
108
  var mChanges = {};
109
109
  aChanges.forEach(function(oChange) {
110
- mChanges[oChange.getDefinition().fileName] = oChange;
110
+ mChanges[oChange.getId()] = oChange;
111
111
  });
112
112
  aFileNames
113
113
  .reduce(toAvailableChanges.bind(null, mChanges), [])
@@ -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.104.0
20
+ * @version 1.105.1
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -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.104.0
19
+ * @version 1.105.1
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.102
@@ -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.104.0
23
+ * @version 1.105.1
24
24
  * @constructor
25
25
  * @private
26
26
  * @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.104.0
19
+ * @version 1.105.1
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.87
@@ -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.104.0
25
+ * @version 1.105.1
26
26
  * @constructor
27
27
  * @private
28
28
  * @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.104.0
54
+ * @version 1.105.1
55
55
  *
56
56
  * @static
57
57
  * @since 1.42
@@ -23,14 +23,14 @@ function() {
23
23
  * @namespace
24
24
  * @alias sap.ui.rta
25
25
  * @author SAP SE
26
- * @version 1.104.0
26
+ * @version 1.105.1
27
27
  * @since 1.50
28
28
  * @private
29
29
  * @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
30
30
  */
31
31
  var thisLib = sap.ui.getCore().initLibrary({
32
32
  name: "sap.ui.rta",
33
- version: "1.104.0",
33
+ version: "1.105.1",
34
34
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
35
35
  types: [],
36
36
  interfaces: [],