@openui5/sap.ui.rta 1.110.0 → 1.111.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 (144) hide show
  1. package/package.json +6 -6
  2. package/src/sap/ui/rta/.library +1 -1
  3. package/src/sap/ui/rta/Client.js +1 -1
  4. package/src/sap/ui/rta/RuntimeAuthoring.js +30 -11
  5. package/src/sap/ui/rta/Utils.js +1 -1
  6. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  7. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  8. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  9. package/src/sap/ui/rta/command/AddXML.js +1 -1
  10. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  11. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  12. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  13. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  14. package/src/sap/ui/rta/command/Combine.js +1 -1
  15. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  16. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  17. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  18. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  19. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantSwitch.js +14 -12
  22. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  23. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  24. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  25. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  26. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  27. package/src/sap/ui/rta/command/Move.js +1 -1
  28. package/src/sap/ui/rta/command/Property.js +1 -1
  29. package/src/sap/ui/rta/command/Remove.js +1 -1
  30. package/src/sap/ui/rta/command/Rename.js +1 -1
  31. package/src/sap/ui/rta/command/Resize.js +1 -1
  32. package/src/sap/ui/rta/command/Reveal.js +1 -1
  33. package/src/sap/ui/rta/command/Settings.js +1 -1
  34. package/src/sap/ui/rta/command/Split.js +1 -1
  35. package/src/sap/ui/rta/command/Stack.js +1 -1
  36. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  37. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  38. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  39. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  40. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  41. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  42. package/src/sap/ui/rta/library.js +2 -2
  43. package/src/sap/ui/rta/messagebundle.properties +7 -1
  44. package/src/sap/ui/rta/messagebundle_ar.properties +4 -1
  45. package/src/sap/ui/rta/messagebundle_bg.properties +4 -1
  46. package/src/sap/ui/rta/messagebundle_ca.properties +4 -1
  47. package/src/sap/ui/rta/messagebundle_cs.properties +4 -1
  48. package/src/sap/ui/rta/messagebundle_cy.properties +4 -1
  49. package/src/sap/ui/rta/messagebundle_da.properties +4 -1
  50. package/src/sap/ui/rta/messagebundle_de.properties +4 -1
  51. package/src/sap/ui/rta/messagebundle_el.properties +4 -1
  52. package/src/sap/ui/rta/messagebundle_en.properties +4 -1
  53. package/src/sap/ui/rta/messagebundle_en_GB.properties +4 -1
  54. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +4 -1
  55. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +10 -1
  56. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +4 -1
  57. package/src/sap/ui/rta/messagebundle_es.properties +4 -1
  58. package/src/sap/ui/rta/messagebundle_es_MX.properties +4 -1
  59. package/src/sap/ui/rta/messagebundle_et.properties +4 -1
  60. package/src/sap/ui/rta/messagebundle_fi.properties +4 -1
  61. package/src/sap/ui/rta/messagebundle_fr.properties +4 -1
  62. package/src/sap/ui/rta/messagebundle_fr_CA.properties +4 -1
  63. package/src/sap/ui/rta/messagebundle_hi.properties +4 -1
  64. package/src/sap/ui/rta/messagebundle_hr.properties +4 -1
  65. package/src/sap/ui/rta/messagebundle_hu.properties +4 -1
  66. package/src/sap/ui/rta/messagebundle_id.properties +4 -1
  67. package/src/sap/ui/rta/messagebundle_it.properties +4 -1
  68. package/src/sap/ui/rta/messagebundle_iw.properties +4 -1
  69. package/src/sap/ui/rta/messagebundle_ja.properties +4 -1
  70. package/src/sap/ui/rta/messagebundle_kk.properties +4 -1
  71. package/src/sap/ui/rta/messagebundle_ko.properties +4 -1
  72. package/src/sap/ui/rta/messagebundle_lt.properties +4 -1
  73. package/src/sap/ui/rta/messagebundle_lv.properties +4 -1
  74. package/src/sap/ui/rta/messagebundle_ms.properties +4 -1
  75. package/src/sap/ui/rta/messagebundle_nl.properties +4 -1
  76. package/src/sap/ui/rta/messagebundle_no.properties +4 -1
  77. package/src/sap/ui/rta/messagebundle_pl.properties +4 -1
  78. package/src/sap/ui/rta/messagebundle_pt.properties +4 -1
  79. package/src/sap/ui/rta/messagebundle_pt_PT.properties +4 -1
  80. package/src/sap/ui/rta/messagebundle_ro.properties +4 -1
  81. package/src/sap/ui/rta/messagebundle_ru.properties +4 -1
  82. package/src/sap/ui/rta/messagebundle_sh.properties +4 -1
  83. package/src/sap/ui/rta/messagebundle_sk.properties +4 -1
  84. package/src/sap/ui/rta/messagebundle_sl.properties +4 -1
  85. package/src/sap/ui/rta/messagebundle_sv.properties +4 -1
  86. package/src/sap/ui/rta/messagebundle_th.properties +4 -1
  87. package/src/sap/ui/rta/messagebundle_tr.properties +4 -1
  88. package/src/sap/ui/rta/messagebundle_uk.properties +4 -1
  89. package/src/sap/ui/rta/messagebundle_vi.properties +4 -1
  90. package/src/sap/ui/rta/messagebundle_zh_CN.properties +4 -1
  91. package/src/sap/ui/rta/messagebundle_zh_TW.properties +4 -1
  92. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  93. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  94. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  95. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  96. package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
  97. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  98. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  99. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  100. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  101. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  102. package/src/sap/ui/rta/plugin/Plugin.js +10 -3
  103. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  104. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  105. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  106. package/src/sap/ui/rta/plugin/RenameHandler.js +3 -2
  107. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  108. package/src/sap/ui/rta/plugin/Selection.js +2 -2
  109. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  110. package/src/sap/ui/rta/plugin/Split.js +1 -1
  111. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  112. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  113. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  114. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +3 -1
  115. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  116. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  118. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  119. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  120. package/src/sap/ui/rta/service/Action.js +1 -1
  121. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  122. package/src/sap/ui/rta/service/Outline.js +1 -1
  123. package/src/sap/ui/rta/service/Property.js +1 -1
  124. package/src/sap/ui/rta/service/Selection.js +1 -1
  125. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  126. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  127. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  128. package/src/sap/ui/rta/toolbar/Fiori.js +5 -2
  129. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  130. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  131. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  132. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  133. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +80 -3
  134. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +5 -2
  135. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +49 -9
  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 +1 -1
  141. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  142. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +2 -4
  143. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  144. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +19 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.110.0",
3
+ "version": "1.111.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.110.0",
18
- "@openui5/sap.ui.core": "1.110.0",
19
- "@openui5/sap.ui.dt": "1.110.0",
20
- "@openui5/sap.ui.fl": "1.110.0",
21
- "@openui5/sap.ui.layout": "1.110.0"
17
+ "@openui5/sap.m": "1.111.0",
18
+ "@openui5/sap.ui.core": "1.111.0",
19
+ "@openui5/sap.ui.dt": "1.111.0",
20
+ "@openui5/sap.ui.fl": "1.111.0",
21
+ "@openui5/sap.ui.layout": "1.111.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.110.0</version>
9
+ <version>1.111.0</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.110.0
60
+ * @version 1.111.0
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.110.0
119
+ * @version 1.111.0
120
120
  * @constructor
121
121
  * @private
122
122
  * @since 1.30
@@ -648,8 +648,8 @@ sap.ui.define([
648
648
  .then(function(oReturn) {
649
649
  oReloadInfo = oReturn;
650
650
  if (!bSkipSave) {
651
- // serializeToLrep has to be called even when no changes were made -> to invalidate cache
652
- return this._serializeToLrep();
651
+ // serializeToLrep has to be called on exit even when no changes were made -> to invalidate cache
652
+ return this._serializeToLrep(/*bCondenseAnyLayer=*/false, /*bIsExit=*/true);
653
653
  }
654
654
  return undefined;
655
655
  }.bind(this))
@@ -898,16 +898,16 @@ sap.ui.define([
898
898
  // ---- API ----
899
899
 
900
900
  // this function is used to save in the Visual Editor
901
- RuntimeAuthoring.prototype._serializeToLrep = function(bCondenseAnyLayer) {
901
+ RuntimeAuthoring.prototype._serializeToLrep = function(bCondenseAnyLayer, bIsExit) {
902
902
  // when saving a change that requires a reload, the information has to be cached
903
903
  // to do the reload when exiting UI Adaptation as then the change will not be available anymore
904
904
  if (!this._bSavedChangesNeedReload) {
905
905
  return this._oSerializer.needsReload().then(function(bReloadNeeded) {
906
906
  this._bSavedChangesNeedReload = bReloadNeeded;
907
- return serializeAndSave.call(this, undefined, bCondenseAnyLayer);
907
+ return serializeAndSave.call(this, undefined, bCondenseAnyLayer, bIsExit);
908
908
  }.bind(this));
909
909
  }
910
- return serializeAndSave.call(this, undefined, bCondenseAnyLayer);
910
+ return serializeAndSave.call(this, undefined, bCondenseAnyLayer, bIsExit);
911
911
  };
912
912
 
913
913
  /**
@@ -1161,20 +1161,39 @@ sap.ui.define([
1161
1161
  .then(fnCallback);
1162
1162
  }
1163
1163
 
1164
- function serializeAndSave(bActivateVersion, bCondenseAnyLayer) {
1164
+ function serializeAndSave(bActivateVersion, bCondenseAnyLayer, bIsExit) {
1165
1165
  if (this.getShowToolbars()) {
1166
1166
  this.bPersistedDataTranslatable = this._oToolbarControlsModel.getProperty("/translation/enabled");
1167
1167
  }
1168
+
1168
1169
  var mPropertyBag = {
1169
- // Save changes on the current layer and discard dirty changes on other layers
1170
- saveAsDraft: this._oVersionsModel.getProperty("/versioningEnabled") && this.getLayer() === Layer.CUSTOMER,
1171
1170
  layer: this.getLayer(),
1172
1171
  removeOtherLayerChanges: true,
1173
- version: bActivateVersion ? this._oVersionsModel.getProperty("/displayedVersion") : undefined,
1174
1172
  condenseAnyLayer: bCondenseAnyLayer
1175
1173
  };
1176
1174
 
1177
- return this._oSerializer.saveCommands(mPropertyBag);
1175
+ if (this._oVersionsModel.getProperty("/versioningEnabled")) {
1176
+ var sVersion = bActivateVersion ? this._oVersionsModel.getProperty("/displayedVersion") : undefined;
1177
+
1178
+ // If a draft is being processed, saving without exiting must retrieve the updated state of the draft version
1179
+ if (!sVersion) {
1180
+ sVersion = bIsExit ? undefined : Version.Number.Draft;
1181
+ }
1182
+ mPropertyBag.version = sVersion;
1183
+
1184
+ // Save changes on the current layer and discard dirty changes on other layers
1185
+ mPropertyBag.saveAsDraft = this.getLayer() === Layer.CUSTOMER;
1186
+ }
1187
+
1188
+ return this._oSerializer.saveCommands(mPropertyBag)
1189
+ .then(function() {
1190
+ if (!bIsExit) {
1191
+ //clean CViz after Save
1192
+ var oToolbar = this.getToolbar();
1193
+ var oChangeVisualization = this.getChangeVisualization();
1194
+ oChangeVisualization.updateAfterSave(oToolbar);
1195
+ }
1196
+ }.bind(this));
1178
1197
  }
1179
1198
 
1180
1199
  function onActivate(oEvent) {
@@ -45,7 +45,7 @@ function(
45
45
  *
46
46
  * @namespace
47
47
  * @author SAP SE
48
- * @version 1.110.0
48
+ * @version 1.111.0
49
49
  *
50
50
  * @private
51
51
  * @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.110.0
27
+ * @version 1.111.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -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.110.0
19
+ * @version 1.111.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.110.0
17
+ * @version 1.111.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.110.0
19
+ * @version 1.111.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.110.0
27
+ * @version 1.111.0
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.110.0
24
+ * @version 1.111.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
13
13
  * @extends sap.ui.base.ManagedObject
14
14
  *
15
15
  * @author SAP SE
16
- * @version 1.110.0
16
+ * @version 1.111.0
17
17
  *
18
18
  * @constructor
19
19
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.FlexCommand
28
28
  * @author SAP SE
29
- * @version 1.110.0
29
+ * @version 1.111.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.110.0
19
+ * @version 1.111.0
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.110.0
488
+ * @version 1.111.0
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.110.0
24
+ * @version 1.111.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.110.0
27
+ * @version 1.111.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.110.0
23
+ * @version 1.111.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @class
29
29
  * @extends sap.ui.rta.command.BaseCommand
30
30
  * @author SAP SE
31
- * @version 1.110.0
31
+ * @version 1.111.0
32
32
  * @constructor
33
33
  * @private
34
34
  * @since 1.86
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.BaseCommand
26
26
  * @author SAP SE
27
- * @version 1.110.0
27
+ * @version 1.111.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.110.0
25
+ * @version 1.111.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.50
@@ -91,19 +91,21 @@ sap.ui.define([
91
91
  * @returns {Promise} Returns resolve after undo
92
92
  */
93
93
  ControlVariantSwitch.prototype.undo = function() {
94
- var sOldVariantReference = this.getSourceVariantReference();
94
+ var sSourceVariantReference = this.getSourceVariantReference();
95
95
  var oAppComponent = this._getAppComponent();
96
96
 
97
- if (this.getDiscardVariantContent()) {
98
- return this.oModel.addAndApplyChangesOnVariant(this._aSourceVariantDirtyChanges)
99
- .then(function() {
100
- this._aSourceVariantDirtyChanges = null;
101
- this.oModel.checkUpdate(true);
102
- return this._updateModelVariant(sOldVariantReference, oAppComponent);
103
- }.bind(this));
104
- }
105
-
106
- return this._updateModelVariant(sOldVariantReference, oAppComponent);
97
+ return this._updateModelVariant(sSourceVariantReference, oAppComponent)
98
+ .then(function() {
99
+ // When discarding, dirty changes on source variant need to be applied AFTER the switch
100
+ if (this.getDiscardVariantContent()) {
101
+ return this.oModel.addAndApplyChangesOnVariant(this._aSourceVariantDirtyChanges)
102
+ .then(function() {
103
+ this._aSourceVariantDirtyChanges = null;
104
+ this.oModel.checkUpdate(true);
105
+ }.bind(this));
106
+ }
107
+ return undefined;
108
+ }.bind(this));
107
109
  };
108
110
 
109
111
  ControlVariantSwitch.prototype._updateModelVariant = function(sVariantReference, oAppComponent) {
@@ -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.110.0
15
+ * @version 1.111.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.110.0
15
+ * @version 1.111.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.rta.command.BaseCommand
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.110.0
36
+ * @version 1.111.0
37
37
  *
38
38
  * @constructor
39
39
  * @private
@@ -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.110.0
30
+ * @version 1.111.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.110.0
23
+ * @version 1.111.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.110.0
20
+ * @version 1.111.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.110.0
19
+ * @version 1.111.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.110.0
15
+ * @version 1.111.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.110.0
15
+ * @version 1.111.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.110.0
19
+ * @version 1.111.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.110.0
15
+ * @version 1.111.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.110.0
15
+ * @version 1.111.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.110.0
17
+ * @version 1.111.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @class
60
60
  * @extends sap.ui.base.ManagedObject
61
61
  * @author SAP SE
62
- * @version 1.110.0
62
+ * @version 1.111.0
63
63
  * @constructor
64
64
  * @private
65
65
  * @since 1.34
@@ -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.110.0
20
+ * @version 1.111.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.110.0
23
+ * @version 1.111.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @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.110.0
23
+ * @version 1.111.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.87
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @class
19
19
  * @extends sap.ui.rta.command.BaseCommand
20
20
  * @author SAP SE
21
- * @version 1.110.0
21
+ * @version 1.111.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @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.110.0
25
+ * @version 1.111.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.87
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * E.g. <code>elementActionTest.only("Remove");</code>
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.110.0
56
+ * @version 1.111.0
57
57
  *
58
58
  * @static
59
59
  * @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.110.0
26
+ * @version 1.111.0
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.110.0",
33
+ version: "1.111.0",
34
34
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
35
35
  types: [],
36
36
  interfaces: [],
@@ -560,4 +560,10 @@ TXT_DEFAULT_APP=Default App
560
560
  APP_CTX_DIALOG_SAVE=Save
561
561
  #XBUT: Context-Based Adaptation predefined text for Cancel button
562
562
  APP_CTX_DIALOG_CANCEL=Cancel
563
- TOOLTIP_APP_CTX_DIALOG_SAVE=context-based adaptation did not change
563
+ TOOLTIP_APP_CTX_DIALOG_SAVE=Context-based adaptation has not been changed.
564
+ #TXT: Context-Based Adaptation duplicate title error message
565
+ TXT_CTX_ERROR_DUPLICATE_TITLE=The adaptation title already exists. Please enter a different title.
566
+ #XTIT: Context-Based Adaptation predefined title for Error Message max length
567
+ TXT_CTX_ERROR_MAX_LEN=Adaptation titles are restricted to {0} characters
568
+ #TXT: Context-Based Adaptation empty title error message
569
+ TXT_CTX_ERROR_EMPTY_TITLE=Please enter a title.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=\u0627\u0644\u0623\u062F\u0648\u0627\u0631
283
283
  TXT_DEFAULT_APP=\u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A
284
284
  APP_CTX_DIALOG_SAVE=\u062D\u0641\u0638
285
285
  APP_CTX_DIALOG_CANCEL=\u0625\u0644\u063A\u0627\u0621
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=\u0627\u0644\u062A\u0647\u064A\u0626\u0629 \u062D\u0633\u0628 \u0627\u0644\u0633\u064A\u0627\u0642 \u0644\u0645 \u062A\u063A\u064A\u0631
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=\u0627\u0644\u062A\u0647\u064A\u0626\u0629 \u062D\u0633\u0628 \u0627\u0644\u0633\u064A\u0627\u0642 \u0644\u0645 \u062A\u062A\u063A\u064A\u0631.
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u062A\u0647\u064A\u0626\u0629 \u0645\u0648\u062C\u0648\u062F \u0628\u0627\u0644\u0641\u0639\u0644. \u0627\u0644\u0631\u062C\u0627\u0621 \u0625\u062F\u062E\u0627\u0644 \u0639\u0646\u0648\u0627\u0646 \u0645\u062E\u062A\u0644\u0641.
288
+ TXT_CTX_ERROR_MAX_LEN=\u0639\u0646\u0627\u0648\u064A\u0646 \u0627\u0644\u062A\u0647\u064A\u0626\u0629 \u0645\u0642\u064A\u0651\u064E\u062F\u0629 \u0639\u0644\u0649 {0} \u0645\u0646 \u0627\u0644\u062D\u0631\u0648\u0641
289
+ TXT_CTX_ERROR_EMPTY_TITLE=\u0627\u0644\u0631\u062C\u0627\u0621 \u0625\u062F\u062E\u0627\u0644 \u0639\u0646\u0648\u0627\u0646.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=\u0420\u043E\u043B\u0438
283
283
  TXT_DEFAULT_APP=\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u043F\u043E \u043F\u043E\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043D\u0435
284
284
  APP_CTX_DIALOG_SAVE=\u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435
285
285
  APP_CTX_DIALOG_CANCEL=\u041E\u0442\u043A\u0430\u0437
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=\u0410\u0434\u0430\u043F\u0442\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0431\u0430\u0437\u0430 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u043D\u0435 \u0435 \u043F\u0440\u043E\u043C\u0435\u043D\u0435\u043D\u043E
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=\u0410\u0434\u0430\u043F\u0442\u0438\u0440\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0430\u0437\u0430 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u043D\u0435 \u0435 \u043F\u0440\u043E\u043C\u0435\u043D\u0435\u043D\u043E.
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=\u0412\u0435\u0447\u0435 \u0441\u044A\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430 \u0442\u0430\u043A\u043E\u0432\u0430 \u0437\u0430\u0433\u043B\u0430\u0432\u0438\u0435 \u043D\u0430 \u0430\u0434\u0430\u043F\u0442\u0438\u0440\u0430\u043D\u0435. \u041C\u043E\u043B\u044F, \u0432\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u0434\u0440\u0443\u0433\u043E \u0437\u0430\u0433\u043B\u0430\u0432\u0438\u0435.
288
+ TXT_CTX_ERROR_MAX_LEN=\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u044F\u0442\u0430 \u043D\u0430 \u0430\u0434\u0430\u043F\u0442\u0438\u0440\u0430\u043D\u0435 \u0441\u0430 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438 \u0434\u043E {0} \u0441\u0438\u043C\u0432\u043E\u043B\u0430
289
+ TXT_CTX_ERROR_EMPTY_TITLE=\u041C\u043E\u043B\u044F, \u0432\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0438\u0435.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=Rols
283
283
  TXT_DEFAULT_APP=Aplicaci\u00F3 predeterminada
284
284
  APP_CTX_DIALOG_SAVE=Desar
285
285
  APP_CTX_DIALOG_CANCEL=Cancel\u00B7lar
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=L'adaptaci\u00F3 basada en el context no va canviar
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=L'adaptaci\u00F3 basada en el context no s'ha modificat.
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=El t\u00EDtol de l'adaptaci\u00F3 ja existeix. Introdu\u00EFu-ne un de diferent.
288
+ TXT_CTX_ERROR_MAX_LEN=Els t\u00EDtols de les adaptacions estan restringits a {0}\u00A0car\u00E0cters
289
+ TXT_CTX_ERROR_EMPTY_TITLE=Indiqueu un t\u00EDtol.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=Role
283
283
  TXT_DEFAULT_APP=Standardn\u00ED aplikace
284
284
  APP_CTX_DIALOG_SAVE=Ulo\u017Eit
285
285
  APP_CTX_DIALOG_CANCEL=Zru\u0161it
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=\u00DAprava zalo\u017Een\u00E1 na kontextu se nezm\u011Bnila
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=\u00DAprava zalo\u017Een\u00E1 na kontextu se nezm\u011Bnila.
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=Tento titulek \u00FApravy ji\u017E existuje. Zadejte jin\u00FD titulek.
288
+ TXT_CTX_ERROR_MAX_LEN=Titulky \u00FApravy jsou omezeny na {0} znak\u016F
289
+ TXT_CTX_ERROR_EMPTY_TITLE=Zadejte titulek.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=Rolau
283
283
  TXT_DEFAULT_APP=Ap Diofyn
284
284
  APP_CTX_DIALOG_SAVE=Cadw
285
285
  APP_CTX_DIALOG_CANCEL=Canslo
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=Addasiad ar sail cyd-destun ddim wedi newid
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=Dydy addasiad ar sail cyd-destun ddim wedi'i newid
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=Mae teitl yr addasiad yn bodoli'n barod. Rhowch deitl gwahanol.
288
+ TXT_CTX_ERROR_MAX_LEN=Mae teitlau addasiad wedi''u cyfyngu i {0} o nodau
289
+ TXT_CTX_ERROR_EMPTY_TITLE=Rhowch deitl.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=Roller
283
283
  TXT_DEFAULT_APP=Standardapp
284
284
  APP_CTX_DIALOG_SAVE=Gem
285
285
  APP_CTX_DIALOG_CANCEL=Afbryd
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=Kontekstbaseret tilpasning er u\u00E6ndret
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=Kontekstbaseret tilpasning er ikke \u00E6ndret.
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=Tilpasningstitlen findes allerede. Indtast en anden titel.
288
+ TXT_CTX_ERROR_MAX_LEN=Tilpasningstitler er begr\u00E6nset til {0} tegn
289
+ TXT_CTX_ERROR_EMPTY_TITLE=Indtast en titel.
@@ -283,4 +283,7 @@ TXT_TABLE_CONTEXT_CELL_ROLES=Rollen
283
283
  TXT_DEFAULT_APP=Standard-App
284
284
  APP_CTX_DIALOG_SAVE=Sichern
285
285
  APP_CTX_DIALOG_CANCEL=Abbrechen
286
- TOOLTIP_APP_CTX_DIALOG_SAVE=Kontextbasierte Anpassung unver\u00E4ndert
286
+ TOOLTIP_APP_CTX_DIALOG_SAVE=Kontextbasierte Anpassung wurde nicht ge\u00E4ndert.
287
+ TXT_CTX_ERROR_DUPLICATE_TITLE=Es gibt bereits eine Anwendung mit diesem Titel. Bitte geben Sie einen anderen Titel ein.
288
+ TXT_CTX_ERROR_MAX_LEN=Anwendungstitel d\u00FCrfen nicht l\u00E4nger als {0} Zeichen sein.
289
+ TXT_CTX_ERROR_EMPTY_TITLE=Geben Sie bitte einen Titel ein.