@openui5/sap.ui.rta 1.105.1 → 1.107.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 (163) hide show
  1. package/.reuse/dep5 +20 -17
  2. package/THIRDPARTY.txt +31 -21
  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 +652 -653
  7. package/src/sap/ui/rta/Utils.js +1 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  9. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -0
  10. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  11. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  12. package/src/sap/ui/rta/command/AddXML.js +1 -1
  13. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  14. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  15. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  16. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  17. package/src/sap/ui/rta/command/Combine.js +1 -1
  18. package/src/sap/ui/rta/command/CommandFactory.js +6 -5
  19. package/src/sap/ui/rta/command/CompositeCommand.js +7 -5
  20. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  25. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  26. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  27. package/src/sap/ui/rta/command/FlexCommand.js +3 -3
  28. package/src/sap/ui/rta/command/LREPSerializer.js +3 -2
  29. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  30. package/src/sap/ui/rta/command/Move.js +1 -1
  31. package/src/sap/ui/rta/command/Property.js +1 -1
  32. package/src/sap/ui/rta/command/Remove.js +1 -1
  33. package/src/sap/ui/rta/command/Rename.js +1 -1
  34. package/src/sap/ui/rta/command/Resize.js +1 -1
  35. package/src/sap/ui/rta/command/Reveal.js +1 -1
  36. package/src/sap/ui/rta/command/Settings.js +1 -1
  37. package/src/sap/ui/rta/command/Split.js +1 -1
  38. package/src/sap/ui/rta/command/Stack.js +26 -7
  39. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  40. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  41. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  42. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  44. package/src/sap/ui/rta/enablement/elementActionTest.js +89 -15
  45. package/src/sap/ui/rta/library.js +2 -2
  46. package/src/sap/ui/rta/messagebundle.properties +31 -0
  47. package/src/sap/ui/rta/messagebundle_ar.properties +16 -11
  48. package/src/sap/ui/rta/messagebundle_bg.properties +16 -11
  49. package/src/sap/ui/rta/messagebundle_ca.properties +16 -11
  50. package/src/sap/ui/rta/messagebundle_cs.properties +16 -11
  51. package/src/sap/ui/rta/messagebundle_cy.properties +16 -11
  52. package/src/sap/ui/rta/messagebundle_da.properties +16 -11
  53. package/src/sap/ui/rta/messagebundle_de.properties +17 -12
  54. package/src/sap/ui/rta/messagebundle_el.properties +16 -11
  55. package/src/sap/ui/rta/messagebundle_en.properties +7 -2
  56. package/src/sap/ui/rta/messagebundle_en_GB.properties +7 -2
  57. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +13 -1
  58. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +6 -1
  59. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
  60. package/src/sap/ui/rta/messagebundle_es.properties +16 -11
  61. package/src/sap/ui/rta/messagebundle_es_MX.properties +16 -11
  62. package/src/sap/ui/rta/messagebundle_et.properties +16 -11
  63. package/src/sap/ui/rta/messagebundle_fi.properties +16 -11
  64. package/src/sap/ui/rta/messagebundle_fr.properties +16 -11
  65. package/src/sap/ui/rta/messagebundle_fr_CA.properties +16 -11
  66. package/src/sap/ui/rta/messagebundle_hi.properties +16 -11
  67. package/src/sap/ui/rta/messagebundle_hr.properties +16 -11
  68. package/src/sap/ui/rta/messagebundle_hu.properties +16 -11
  69. package/src/sap/ui/rta/messagebundle_id.properties +16 -11
  70. package/src/sap/ui/rta/messagebundle_it.properties +16 -11
  71. package/src/sap/ui/rta/messagebundle_iw.properties +16 -11
  72. package/src/sap/ui/rta/messagebundle_ja.properties +16 -11
  73. package/src/sap/ui/rta/messagebundle_kk.properties +16 -11
  74. package/src/sap/ui/rta/messagebundle_ko.properties +16 -11
  75. package/src/sap/ui/rta/messagebundle_lt.properties +16 -11
  76. package/src/sap/ui/rta/messagebundle_lv.properties +16 -11
  77. package/src/sap/ui/rta/messagebundle_ms.properties +16 -11
  78. package/src/sap/ui/rta/messagebundle_nl.properties +16 -11
  79. package/src/sap/ui/rta/messagebundle_no.properties +16 -11
  80. package/src/sap/ui/rta/messagebundle_pl.properties +16 -11
  81. package/src/sap/ui/rta/messagebundle_pt.properties +16 -11
  82. package/src/sap/ui/rta/messagebundle_pt_PT.properties +16 -11
  83. package/src/sap/ui/rta/messagebundle_ro.properties +16 -11
  84. package/src/sap/ui/rta/messagebundle_ru.properties +16 -11
  85. package/src/sap/ui/rta/messagebundle_sh.properties +16 -11
  86. package/src/sap/ui/rta/messagebundle_sk.properties +16 -11
  87. package/src/sap/ui/rta/messagebundle_sl.properties +16 -11
  88. package/src/sap/ui/rta/messagebundle_sv.properties +16 -11
  89. package/src/sap/ui/rta/messagebundle_th.properties +16 -11
  90. package/src/sap/ui/rta/messagebundle_tr.properties +16 -11
  91. package/src/sap/ui/rta/messagebundle_uk.properties +16 -11
  92. package/src/sap/ui/rta/messagebundle_vi.properties +16 -11
  93. package/src/sap/ui/rta/messagebundle_zh_CN.properties +16 -11
  94. package/src/sap/ui/rta/messagebundle_zh_TW.properties +16 -11
  95. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +7 -5
  96. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  97. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  98. package/src/sap/ui/rta/plugin/CompVariant.js +8 -6
  99. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  100. package/src/sap/ui/rta/plugin/CreateContainer.js +9 -4
  101. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  102. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  103. package/src/sap/ui/rta/plugin/EasyAdd.js +3 -1
  104. package/src/sap/ui/rta/plugin/EasyRemove.js +3 -1
  105. package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
  106. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  107. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  108. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  109. package/src/sap/ui/rta/plugin/Rename.js +3 -3
  110. package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
  111. package/src/sap/ui/rta/plugin/Resize.js +3 -3
  112. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  113. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  114. package/src/sap/ui/rta/plugin/Split.js +2 -2
  115. package/src/sap/ui/rta/plugin/Stretch.js +3 -1
  116. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +9 -6
  119. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +9 -9
  120. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
  122. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +3 -3
  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 +1 -1
  126. package/src/sap/ui/rta/service/Outline.js +6 -4
  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/service/SupportTools.js +189 -0
  130. package/src/sap/ui/rta/service/index.js +7 -6
  131. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +11 -1
  132. package/src/sap/ui/rta/toolbar/Adaptation.js +9 -1
  133. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +3 -1
  134. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  135. package/src/sap/ui/rta/toolbar/BaseRenderer.js +6 -4
  136. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  137. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  138. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  139. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  140. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  141. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +125 -0
  142. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptationDialog.fragment.xml +79 -0
  143. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -5
  144. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  145. package/src/sap/ui/rta/util/BindingsExtractor.js +97 -41
  146. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  147. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  148. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  149. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  150. package/src/sap/ui/rta/util/StylesLoader.js +3 -3
  151. package/src/sap/ui/rta/util/adaptationStarter.js +13 -4
  152. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +50 -0
  153. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +44 -41
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +2 -2
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +2 -1
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +69 -43
  157. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +57 -83
  158. package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/CombineVisualization.js +1 -1
  159. package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/MoveVisualization.js +13 -10
  160. package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/RenameVisualization.js +1 -1
  161. package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/SplitVisualization.js +1 -1
  162. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +37 -0
  163. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +0 -35
@@ -45,7 +45,7 @@ function(
45
45
  *
46
46
  * @namespace
47
47
  * @author SAP SE
48
- * @version 1.105.1
48
+ * @version 1.107.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.105.1
27
+ * @version 1.107.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -416,6 +416,8 @@ sap.ui.define([
416
416
  sErrorMessage = oError.messages.map(function(oError) {
417
417
  return oError.text;
418
418
  }).join("\n");
419
+ } else if (oError.userMessage) {
420
+ sErrorMessage = oError.userMessage;
419
421
  } else if (oError.iamAppId) {
420
422
  sErrorMessage = "IAM App Id: " + oError.iamAppId;
421
423
  } else {
@@ -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.105.1
19
+ * @version 1.107.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.105.1
17
+ * @version 1.107.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.105.1
19
+ * @version 1.107.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.105.1
27
+ * @version 1.107.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.105.1
24
+ * @version 1.107.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.105.1
16
+ * @version 1.107.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.105.1
29
+ * @version 1.107.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.105.1
19
+ * @version 1.107.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.105.1
488
+ * @version 1.107.0
489
489
  *
490
490
  * @constructor
491
491
  * @private
@@ -523,9 +523,9 @@ sap.ui.define([
523
523
 
524
524
  /**
525
525
  * Instance-specific method for generating command
526
- * @param {sap.ui.core.Element|string} vElement - Could be either an element or a slector for the element for which the command is to be created
526
+ * @param {sap.ui.core.Element|string} vElement - Could be either an element or a selector for the element for which the command is to be created
527
527
  * @param {string} sCommand - Command type
528
- * @param {object} mSettings - Initial settings for the new command (command specific settings, looks diffrent for each and every command)
528
+ * @param {object} mSettings - Initial settings for the new command (command specific settings, looks different for each and every command)
529
529
  * @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
530
530
  * @param {string} sVariantManagementReference - Variant management reference
531
531
  * @returns {Promise} A promise which will return the created command
@@ -536,9 +536,9 @@ sap.ui.define([
536
536
 
537
537
  /**
538
538
  * Static method for generating command
539
- * @param {sap.ui.core.Element|string} vElement - Could be either an element or a slector for the element for which the command is to be created
539
+ * @param {sap.ui.core.Element|string} vElement - Could be either an element or a selector for the element for which the command is to be created
540
540
  * @param {string} sCommand - Command type
541
- * @param {object} mSettings - Initial settings for the new command (command specific settings, looks diffrent for each and every command)
541
+ * @param {object} mSettings - Initial settings for the new command (command specific settings, looks different for each and every command)
542
542
  * @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
543
543
  * @param {object} [mFlexSettings] - Property bag
544
544
  * @param {string} [mFlexSettings.layer] - The Layer in which RTA should be started. Default: "CUSTOMER"
@@ -546,6 +546,7 @@ sap.ui.define([
546
546
  * @param {string} [mFlexSettings.baseId] - Base ID of the app
547
547
  * @param {string} [mFlexSettings.projectId] - Project ID
548
548
  * @param {string} [mFlexSettings.scenario] - Key representing the current scenario
549
+ * @param {string} [mFlexSettings.generator] - Generator of the change. Will be saved in the change
549
550
  * @returns {Promise} A promise which will return the created command
550
551
  */
551
552
  CommandFactory.getCommandFor = function (vElement, sCommand, mSettings, oDesignTimeMetadata, mFlexSettings) {
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.105.1
24
+ * @version 1.107.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -96,10 +96,12 @@ sap.ui.define([
96
96
  if (!this._sCompositeId) {
97
97
  this._sCompositeId = FlUtils.createDefaultFileName("composite");
98
98
  }
99
- if (oCommand.getPreparedChange && oCommand.getPreparedChange()) {
100
- var oChangeDefinition = oCommand.getPreparedChange().getDefinition();
101
- if (!oChangeDefinition.support.compositeCommand) {
102
- oChangeDefinition.support.compositeCommand = this._sCompositeId;
99
+ var oPreparedChange = oCommand.getPreparedChange && oCommand.getPreparedChange();
100
+ if (oPreparedChange) {
101
+ var oChangeSupportInformation = oPreparedChange.getSupportInformation();
102
+ if (!oChangeSupportInformation.compositeCommand) {
103
+ oChangeSupportInformation.compositeCommand = this._sCompositeId;
104
+ oPreparedChange.setSupportInformation(oChangeSupportInformation);
103
105
  }
104
106
  } else if (oCommand.setCompositeId) {
105
107
  // relevant for app descriptor commands
@@ -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.105.1
25
+ * @version 1.107.0
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.105.1
23
+ * @version 1.107.0
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.105.1
29
+ * @version 1.107.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.86
@@ -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.105.1
20
+ * @version 1.107.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.50
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.105.1
23
+ * @version 1.107.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.50
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.105.1
15
+ * @version 1.107.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.105.1
15
+ * @version 1.107.0
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.105.1
34
+ * @version 1.107.0
35
35
  *
36
36
  * @constructor
37
37
  * @private
@@ -208,7 +208,7 @@ sap.ui.define([
208
208
  mChangeSpecificData = Object.assign({}, mChangeSpecificData, mVariantObj);
209
209
  }
210
210
  mChangeSpecificData.command = sCommand;
211
- mChangeSpecificData.generator = rtaLibrary.GENERATOR_NAME;
211
+ mChangeSpecificData.generator = mFlexSettings.generator || rtaLibrary.GENERATOR_NAME;
212
212
  return ChangesWriteAPI.create({changeSpecificData: mChangeSpecificData, selector: this._validateControlForChange(mFlexSettings)})
213
213
  .then(function(oChange) {
214
214
  // originalSelector is only present when making a change on/inside a template; the selector does not work with the JS propagation hook (the template has no parent),
@@ -217,7 +217,7 @@ sap.ui.define([
217
217
  // ATTENTION! the change gets applied as soon as the parent is available, so there might be possible side effects with lazy loading
218
218
  if (mFlexSettings && mFlexSettings.originalSelector) {
219
219
  oChange.addDependentControl(mFlexSettings.originalSelector, "originalSelector", {modifier: JsControlTreeModifier, appComponent: this.getAppComponent()});
220
- oChange.getDefinition().selector = Object.assign(oChange.getDefinition().selector, JsControlTreeModifier.getSelector(this.getSelector().id, this.getAppComponent()));
220
+ oChange.setSelector(Object.assign(oChange.getSelector(), JsControlTreeModifier.getSelector(this.getSelector().id, this.getAppComponent())));
221
221
  oChange.setContent(Object.assign({}, oChange.getContent(), mFlexSettings.content));
222
222
  }
223
223
  return oChange;
@@ -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.105.1
32
+ * @version 1.107.0
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.42
@@ -176,7 +176,8 @@ sap.ui.define([
176
176
  draft: !!mPropertyBag.saveAsDraft,
177
177
  layer: mPropertyBag.layer,
178
178
  removeOtherLayerChanges: !!mPropertyBag.removeOtherLayerChanges,
179
- version: mPropertyBag.version
179
+ version: mPropertyBag.version,
180
+ condenseAnyLayer: mPropertyBag.condenseAnyLayer
180
181
  });
181
182
  }.bind(this))
182
183
  .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.105.1
23
+ * @version 1.107.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.105.1
20
+ * @version 1.107.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.105.1
19
+ * @version 1.107.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.105.1
15
+ * @version 1.107.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.105.1
15
+ * @version 1.107.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.105.1
19
+ * @version 1.107.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.105.1
15
+ * @version 1.107.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.105.1
15
+ * @version 1.107.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.105.1
17
+ * @version 1.107.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -9,14 +9,18 @@ sap.ui.define([
9
9
  "sap/ui/fl/Utils",
10
10
  "sap/ui/rta/command/Settings",
11
11
  "sap/ui/rta/command/CompositeCommand",
12
- "sap/ui/core/util/reflection/JsControlTreeModifier"
12
+ "sap/ui/core/util/reflection/JsControlTreeModifier",
13
+ "sap/ui/rta/util/showMessageBox",
14
+ "sap/ui/core/Core"
13
15
  ], function(
14
16
  ManagedObject,
15
17
  PersistenceWriteAPI,
16
18
  FlUtils,
17
19
  Settings,
18
20
  CompositeCommand,
19
- JsControlTreeModifier
21
+ JsControlTreeModifier,
22
+ showMessageBox,
23
+ Core
20
24
  ) {
21
25
  "use strict";
22
26
 
@@ -32,12 +36,12 @@ sap.ui.define([
32
36
  var oSelector = oChange.getSelector && oChange.getSelector();
33
37
  var oCommand = new Settings({
34
38
  selector: oSelector,
35
- changeType: oChange.getDefinition().changeType,
39
+ changeType: oChange.getChangeType(),
36
40
  element: JsControlTreeModifier.bySelector(oSelector, oComponent)
37
41
  });
38
42
  oCommand._oPreparedChange = oChange;
39
43
  // check if change belongs to a composite command
40
- var sCompositeId = oChange.getDefinition().support.compositeCommand;
44
+ var sCompositeId = oChange.getSupportInformation().compositeCommand;
41
45
  if (sCompositeId) {
42
46
  if (!mComposite[sCompositeId]) {
43
47
  mComposite[sCompositeId] = new CompositeCommand();
@@ -55,7 +59,7 @@ sap.ui.define([
55
59
  * @class
56
60
  * @extends sap.ui.base.ManagedObject
57
61
  * @author SAP SE
58
- * @version 1.105.1
62
+ * @version 1.107.0
59
63
  * @constructor
60
64
  * @private
61
65
  * @since 1.34
@@ -74,7 +78,15 @@ sap.ui.define([
74
78
  }
75
79
  },
76
80
  events: {
81
+ /**
82
+ * Fired if the Stack changes because of a change execution or if all commands get removed.
83
+ * In case of change execution the modified event will be fired after the commandExecuted event.
84
+ */
77
85
  modified: {},
86
+
87
+ /**
88
+ * Fired after a successful execution of a command (also includes undo).
89
+ */
78
90
  commandExecuted: {
79
91
  parameters: {
80
92
  command: {type: "object"},
@@ -126,12 +138,14 @@ sap.ui.define([
126
138
  Stack.prototype.addCommandExecutionHandler = function(fnHandler) {
127
139
  this._aCommandExecutionHandler.push(fnHandler);
128
140
  };
141
+
129
142
  Stack.prototype.removeCommandExecutionHandler = function(fnHandler) {
130
143
  var i = this._aCommandExecutionHandler.indexOf(fnHandler);
131
144
  if (i > -1) {
132
145
  this._aCommandExecutionHandler.splice(i, 1);
133
146
  }
134
147
  };
148
+
135
149
  Stack.prototype.init = function() {
136
150
  this._aCommandExecutionHandler = [];
137
151
  this._toBeExecuted = -1;
@@ -156,6 +170,7 @@ sap.ui.define([
156
170
  */
157
171
  Stack.prototype.pushExecutedCommand = function(oCommand) {
158
172
  this.push(oCommand, true);
173
+ this.fireModified();
159
174
  };
160
175
 
161
176
  Stack.prototype.push = function(oCommand, bExecuted) {
@@ -170,7 +185,6 @@ sap.ui.define([
170
185
  if (!bExecuted) {
171
186
  this._toBeExecuted++;
172
187
  }
173
- this.fireModified();
174
188
  };
175
189
 
176
190
  Stack.prototype.top = function() {
@@ -186,7 +200,6 @@ sap.ui.define([
186
200
 
187
201
  Stack.prototype.removeCommand = function(vObject, bSuppressInvalidate) {
188
202
  var oRemovedCommand = this.removeAggregation("commands", vObject, bSuppressInvalidate);
189
- this.fireModified();
190
203
  return oRemovedCommand;
191
204
  };
192
205
 
@@ -226,6 +239,12 @@ sap.ui.define([
226
239
  oError.index = this._toBeExecuted;
227
240
  oError.command = this.removeCommand(this._toBeExecuted); // remove failing command
228
241
  this._toBeExecuted--;
242
+ var oRtaResourceBundle = Core.getLibraryResourceBundle("sap.ui.rta");
243
+ showMessageBox(
244
+ oRtaResourceBundle.getText("MSG_GENERIC_ERROR_MESSAGE", oError.message),
245
+ {title: oRtaResourceBundle.getText("HEADER_ERROR")},
246
+ "error"
247
+ );
229
248
  return Promise.reject(oError);
230
249
  }.bind(this));
231
250
  }
@@ -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.105.1
20
+ * @version 1.107.0
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.105.1
19
+ * @version 1.107.0
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.105.1
23
+ * @version 1.107.0
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.105.1
19
+ * @version 1.107.0
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.105.1
25
+ * @version 1.107.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.87