@openui5/sap.ui.rta 1.113.0 → 1.114.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 (152) 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 +157 -53
  6. package/src/sap/ui/rta/Utils.js +35 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +6 -5
  8. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  9. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  10. package/src/sap/ui/rta/command/AddXML.js +1 -1
  11. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  12. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  13. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  14. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  15. package/src/sap/ui/rta/command/Combine.js +1 -1
  16. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  17. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  18. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  19. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -2
  21. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  23. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  24. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  25. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  26. package/src/sap/ui/rta/command/LREPSerializer.js +4 -2
  27. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  28. package/src/sap/ui/rta/command/Move.js +1 -1
  29. package/src/sap/ui/rta/command/Property.js +1 -1
  30. package/src/sap/ui/rta/command/Remove.js +1 -1
  31. package/src/sap/ui/rta/command/Rename.js +1 -1
  32. package/src/sap/ui/rta/command/Resize.js +1 -1
  33. package/src/sap/ui/rta/command/Reveal.js +1 -1
  34. package/src/sap/ui/rta/command/Settings.js +1 -1
  35. package/src/sap/ui/rta/command/Split.js +1 -1
  36. package/src/sap/ui/rta/command/Stack.js +1 -1
  37. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  38. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  39. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  40. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  41. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  42. package/src/sap/ui/rta/enablement/elementActionTest.js +93 -76
  43. package/src/sap/ui/rta/library.js +2 -2
  44. package/src/sap/ui/rta/messagebundle.properties +40 -2
  45. package/src/sap/ui/rta/messagebundle_ar.properties +12 -4
  46. package/src/sap/ui/rta/messagebundle_bg.properties +12 -4
  47. package/src/sap/ui/rta/messagebundle_ca.properties +12 -4
  48. package/src/sap/ui/rta/messagebundle_cs.properties +12 -4
  49. package/src/sap/ui/rta/messagebundle_cy.properties +12 -4
  50. package/src/sap/ui/rta/messagebundle_da.properties +12 -4
  51. package/src/sap/ui/rta/messagebundle_de.properties +12 -4
  52. package/src/sap/ui/rta/messagebundle_el.properties +12 -4
  53. package/src/sap/ui/rta/messagebundle_en.properties +10 -2
  54. package/src/sap/ui/rta/messagebundle_en_GB.properties +10 -2
  55. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +7 -2
  56. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -2
  57. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +10 -2
  58. package/src/sap/ui/rta/messagebundle_es.properties +12 -4
  59. package/src/sap/ui/rta/messagebundle_es_MX.properties +12 -4
  60. package/src/sap/ui/rta/messagebundle_et.properties +12 -4
  61. package/src/sap/ui/rta/messagebundle_fi.properties +12 -4
  62. package/src/sap/ui/rta/messagebundle_fr.properties +12 -4
  63. package/src/sap/ui/rta/messagebundle_fr_CA.properties +12 -4
  64. package/src/sap/ui/rta/messagebundle_hi.properties +12 -4
  65. package/src/sap/ui/rta/messagebundle_hr.properties +12 -4
  66. package/src/sap/ui/rta/messagebundle_hu.properties +12 -4
  67. package/src/sap/ui/rta/messagebundle_id.properties +12 -4
  68. package/src/sap/ui/rta/messagebundle_it.properties +12 -4
  69. package/src/sap/ui/rta/messagebundle_iw.properties +12 -4
  70. package/src/sap/ui/rta/messagebundle_ja.properties +16 -8
  71. package/src/sap/ui/rta/messagebundle_kk.properties +12 -4
  72. package/src/sap/ui/rta/messagebundle_ko.properties +16 -8
  73. package/src/sap/ui/rta/messagebundle_lt.properties +12 -4
  74. package/src/sap/ui/rta/messagebundle_lv.properties +12 -4
  75. package/src/sap/ui/rta/messagebundle_ms.properties +16 -8
  76. package/src/sap/ui/rta/messagebundle_nl.properties +12 -4
  77. package/src/sap/ui/rta/messagebundle_no.properties +12 -4
  78. package/src/sap/ui/rta/messagebundle_pl.properties +12 -4
  79. package/src/sap/ui/rta/messagebundle_pt.properties +12 -4
  80. package/src/sap/ui/rta/messagebundle_pt_PT.properties +12 -4
  81. package/src/sap/ui/rta/messagebundle_ro.properties +12 -4
  82. package/src/sap/ui/rta/messagebundle_ru.properties +12 -4
  83. package/src/sap/ui/rta/messagebundle_sh.properties +12 -4
  84. package/src/sap/ui/rta/messagebundle_sk.properties +12 -4
  85. package/src/sap/ui/rta/messagebundle_sl.properties +12 -4
  86. package/src/sap/ui/rta/messagebundle_sv.properties +12 -4
  87. package/src/sap/ui/rta/messagebundle_th.properties +12 -4
  88. package/src/sap/ui/rta/messagebundle_tr.properties +12 -4
  89. package/src/sap/ui/rta/messagebundle_uk.properties +12 -4
  90. package/src/sap/ui/rta/messagebundle_vi.properties +12 -4
  91. package/src/sap/ui/rta/messagebundle_zh_CN.properties +12 -4
  92. package/src/sap/ui/rta/messagebundle_zh_TW.properties +12 -4
  93. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  94. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  95. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  96. package/src/sap/ui/rta/plugin/CompVariant.js +6 -2
  97. package/src/sap/ui/rta/plugin/ControlVariant.js +4 -2
  98. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  99. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  100. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  101. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  102. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  103. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  104. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  105. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  106. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  107. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  108. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  109. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  110. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  111. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  112. package/src/sap/ui/rta/plugin/Split.js +1 -1
  113. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  114. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +11 -24
  115. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  116. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  119. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  120. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +17 -13
  121. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  122. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -1
  123. package/src/sap/ui/rta/service/Action.js +1 -1
  124. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  125. package/src/sap/ui/rta/service/Outline.js +4 -1
  126. package/src/sap/ui/rta/service/Property.js +1 -1
  127. package/src/sap/ui/rta/service/Selection.js +1 -1
  128. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  129. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +59 -20
  130. package/src/sap/ui/rta/toolbar/Adaptation.js +161 -12
  131. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  132. package/src/sap/ui/rta/toolbar/FeedbackDialog.fragment.xml +24 -0
  133. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  134. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  135. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  136. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  137. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  138. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +68 -37
  139. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +5 -23
  140. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +121 -35
  141. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +12 -10
  142. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  143. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  144. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  145. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  146. package/src/sap/ui/rta/util/ReloadManager.js +32 -21
  147. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  148. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
  149. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
  150. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +15 -6
  151. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +1 -1
  152. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +16 -9
@@ -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.113.0
27
+ * @version 1.114.1
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.113.0
25
+ * @version 1.114.1
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.113.0
15
+ * @version 1.114.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.113.0
15
+ * @version 1.114.1
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.113.0
36
+ * @version 1.114.1
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.113.0
30
+ * @version 1.114.1
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.42
@@ -152,7 +152,8 @@ sap.ui.define([
152
152
  * @param {boolean} mPropertyBag.saveAsDraft - save the changes as a draft
153
153
  * @param {string} [mPropertyBag.layer] - Layer for which the changes should be saved
154
154
  * @param {boolean} [mPropertyBag.removeOtherLayerChanges=false] - Whether to remove changes on other layers before saving
155
- * @param {string} [mPropertyBag.version] - Layer for which the changes should be saved
155
+ * @param {string} [mPropertyBag.version] - Version to load into Flex State after saving (e.g. undefined when exiting RTA)
156
+ * @param {string} [mPropertyBag.adaptationId] - Adaptation to load into Flex State after saving (e.g. undefined when exiting RTA)
156
157
  * @returns {Promise} return empty promise
157
158
  * @public
158
159
  */
@@ -172,6 +173,7 @@ sap.ui.define([
172
173
  layer: mPropertyBag.layer,
173
174
  removeOtherLayerChanges: !!mPropertyBag.removeOtherLayerChanges,
174
175
  version: mPropertyBag.version,
176
+ adaptationId: mPropertyBag.adaptationId,
175
177
  condenseAnyLayer: mPropertyBag.condenseAnyLayer
176
178
  });
177
179
  }.bind(this))
@@ -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.113.0
23
+ * @version 1.114.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.113.0
20
+ * @version 1.114.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.113.0
19
+ * @version 1.114.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.113.0
15
+ * @version 1.114.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.113.0
15
+ * @version 1.114.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.113.0
19
+ * @version 1.114.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.113.0
15
+ * @version 1.114.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.113.0
15
+ * @version 1.114.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.113.0
17
+ * @version 1.114.1
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.113.0
62
+ * @version 1.114.1
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.113.0
20
+ * @version 1.114.1
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.113.0
23
+ * @version 1.114.1
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.113.0
23
+ * @version 1.114.1
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.113.0
21
+ * @version 1.114.1
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.113.0
25
+ * @version 1.114.1
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.87
@@ -8,8 +8,10 @@
8
8
  sap.ui.define([
9
9
  "sap/ui/core/UIComponent",
10
10
  "sap/ui/core/ComponentContainer",
11
+ "sap/ui/core/Core",
11
12
  "sap/ui/core/mvc/XMLView",
12
13
  "sap/ui/rta/command/CommandFactory",
14
+ "sap/ui/rta/util/changeVisualization/ChangeCategories",
13
15
  "sap/ui/rta/util/changeVisualization/ChangeVisualization",
14
16
  "sap/ui/dt/DesignTime",
15
17
  "sap/ui/dt/DesignTimeStatus",
@@ -25,8 +27,10 @@ sap.ui.define([
25
27
  ], function(
26
28
  UIComponent,
27
29
  ComponentContainer,
30
+ Core,
28
31
  XMLView,
29
32
  CommandFactory,
33
+ ChangeCategories,
30
34
  ChangeVisualization,
31
35
  DesignTime,
32
36
  DesignTimeStatus,
@@ -53,7 +57,7 @@ sap.ui.define([
53
57
  * E.g. <code>elementActionTest.only("Remove");</code>
54
58
  *
55
59
  * @author SAP SE
56
- * @version 1.113.0
60
+ * @version 1.114.1
57
61
  *
58
62
  * @static
59
63
  * @since 1.42
@@ -66,10 +70,12 @@ sap.ui.define([
66
70
  * @param {sap.ui.model.Model} [mOptions.model] - Any model to be assigned on the view
67
71
  * @param {string} [mOptions.placeAt="qunit-fixture"] - Id of tag to place view at runtime
68
72
  * @param {boolean} [mOptions.jsOnly] - Set to true, if change handler cannot work on xml view
73
+ * @param {string} [mOptions.label] - Check the result of "getLabel" function from the control designtime metadata
69
74
  * @param {object} mOptions.action - Action to operate on <code>mOptions.xmlView</code>
70
75
  * @param {string} mOptions.action.name - Name of the action - e.g. 'remove', 'move', 'rename'
71
76
  * @param {string} [mOptions.action.controlId] - Id of the control the action is executed with - may be the parent of the control being 'touched'
72
77
  * @param {function():sap.ui.core.Control} [mOptions.action.control] - Function returning the control instance on which the change is being applied
78
+ * @param {string} [mOptions.action.label] - Check the result of "getLabel" function from the action in the control designtime metadata
73
79
  * @param {function} mOptions.action.parameter - Function(oView) returning the parameter object of the action to be executed
74
80
  * @param {function} [mOptions.before] - Function(assert) hook before test execution is started
75
81
  * @param {function} [mOptions.after] - Function(assert) hook after test execution is finished
@@ -167,7 +173,7 @@ sap.ui.define([
167
173
  this.oView.setModel(mOptions.model);
168
174
  }
169
175
 
170
- sap.ui.getCore().applyChanges();
176
+ Core.applyChanges();
171
177
 
172
178
  return mOptions.model && mOptions.model.getMetaModel() && mOptions.model.getMetaModel().loaded();
173
179
  }.bind(this));
@@ -195,83 +201,94 @@ sap.ui.define([
195
201
  }
196
202
 
197
203
  function buildCommand(assert, oAction) {
198
- return Promise.resolve().then(function() {
199
- var oControl;
200
- var mParameter;
201
- var oElementDesignTimeMetadata;
204
+ var oControl;
205
+ var mParameter;
206
+ var oElementDesignTimeMetadata;
207
+ var sCommandName = oAction.name;
208
+ return Promise.resolve()
209
+ .then(function() {
202
210
  if (typeof oAction.control === "function") {
203
- oControl = oAction.control(this.oView);
204
- } else {
205
- oControl = this.oView.byId(oAction.controlId);
211
+ return oAction.control(this.oView);
206
212
  }
207
- var sCommandName = oAction.name;
208
- return oControl.getMetadata().loadDesignTime(oControl).then(function() {
209
- if (oAction.parameter) {
210
- if (typeof oAction.parameter === "function") {
211
- mParameter = oAction.parameter(this.oView);
212
- } else {
213
- mParameter = oAction.parameter;
214
- }
213
+ return this.oView.byId(oAction.controlId);
214
+ }.bind(this))
215
+ .then(function(oRetrievedControl) {
216
+ oControl = oRetrievedControl;
217
+ return oControl.getMetadata().loadDesignTime(oControl);
218
+ })
219
+ .then(function() {
220
+ if (oAction.parameter) {
221
+ if (typeof oAction.parameter === "function") {
222
+ mParameter = oAction.parameter(this.oView);
215
223
  } else {
216
- mParameter = {};
224
+ mParameter = oAction.parameter;
217
225
  }
226
+ } else {
227
+ mParameter = {};
228
+ }
218
229
 
219
- sap.ui.getCore().applyChanges();
220
- this.oDesignTime = new DesignTime({
221
- rootElements: [
222
- this.oView
223
- ]
224
- });
225
- return new Promise(function(resolve) {
226
- this.oDesignTime.attachEventOnce("synced", function() {
227
- var oControlOverlay = OverlayRegistry.getOverlay(oControl);
228
- oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
229
- var oResponsibleElement = oElementDesignTimeMetadata.getAction("getResponsibleElement", oControl);
230
- var oAggregationOverlay;
231
-
232
- if (oAction.name === "move") {
233
- var oElementOverlay = OverlayRegistry.getOverlay(mParameter.movedElements[0].element || mParameter.movedElements[0].id);
234
- var oRelevantContainer = oElementOverlay.getRelevantContainer();
235
- oControl = oRelevantContainer;
236
- oElementDesignTimeMetadata = oElementOverlay.getParentAggregationOverlay().getDesignTimeMetadata();
237
- } else if (oAction.name === "addODataProperty") {
238
- assert.ok(false, "addODataProperty action is deprecated. Use addViaDelegate action instead.");
239
- } else if (Array.isArray(oAction.name)) {
240
- var aAddActions = oElementDesignTimeMetadata.getActionDataFromAggregations(oAction.name[0], oControl, undefined, oAction.name[1]);
241
- assert.equal(aAddActions.length, 1, "there should be only one aggregation with the possibility to do an add " + oAction.name[1] + " action");
242
- oAggregationOverlay = oControlOverlay.getAggregationOverlay(aAddActions[0].aggregation);
243
- oElementDesignTimeMetadata = oAggregationOverlay.getDesignTimeMetadata();
244
- sCommandName = "addDelegateProperty";
245
- } else if (oResponsibleElement) {
246
- if (oAction.name === "reveal") {
247
- oControl = oAction.revealedElement(this.oView);
248
- oControlOverlay = OverlayRegistry.getOverlay(oAction.revealedElement(this.oView));
249
- oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
250
- } else {
251
- oControl = oResponsibleElement;
252
- oControlOverlay = OverlayRegistry.getOverlay(oControl);
253
- oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
254
- resolve(oControl.getMetadata().loadDesignTime(oControl));
230
+ Core.applyChanges();
231
+ this.oDesignTime = new DesignTime({
232
+ rootElements: [
233
+ this.oView
234
+ ]
235
+ });
236
+ return new Promise(function(resolve) {
237
+ this.oDesignTime.attachEventOnce("synced", function() {
238
+ // The "settings" action doesn't require an overlay
239
+ if (oAction.name === "settings") {
240
+ return resolve();
241
+ }
242
+ var oControlOverlay = OverlayRegistry.getOverlay(oControl);
243
+ oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
244
+ var oResponsibleElement = oElementDesignTimeMetadata.getAction("getResponsibleElement", oControl);
245
+ var oAggregationOverlay;
246
+ if (mOptions.label) {
247
+ assert.strictEqual(oElementDesignTimeMetadata.getLabel(oControl), mOptions.label, "then the control label is correct");
248
+ }
249
+ if (oAction.name === "move") {
250
+ var oElementOverlay = OverlayRegistry.getOverlay(mParameter.movedElements[0].element || mParameter.movedElements[0].id);
251
+ var oRelevantContainer = oElementOverlay.getRelevantContainer();
252
+ oControl = oRelevantContainer;
253
+ oElementDesignTimeMetadata = oElementOverlay.getParentAggregationOverlay().getDesignTimeMetadata();
254
+ } else if (Array.isArray(oAction.name)) {
255
+ var aAddActions = oElementDesignTimeMetadata.getActionDataFromAggregations(oAction.name[0], oControl, undefined, oAction.name[1]);
256
+ assert.equal(aAddActions.length, 1, "there should be only one aggregation with the possibility to do an add " + oAction.name[1] + " action");
257
+ oAggregationOverlay = oControlOverlay.getAggregationOverlay(aAddActions[0].aggregation);
258
+ oElementDesignTimeMetadata = oAggregationOverlay.getDesignTimeMetadata();
259
+ sCommandName = "addDelegateProperty";
260
+ } else if (oResponsibleElement) {
261
+ if (oAction.name === "reveal") {
262
+ oControl = oAction.revealedElement(this.oView);
263
+ oControlOverlay = OverlayRegistry.getOverlay(oAction.revealedElement(this.oView));
264
+ oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
265
+ if (oAction.label) {
266
+ var oRevealAction = oElementDesignTimeMetadata.getAction("reveal");
267
+ assert.strictEqual(oRevealAction.getLabel(oControl), oAction.label, "then the control label is correct");
255
268
  }
269
+ } else {
270
+ oControl = oResponsibleElement;
271
+ oControlOverlay = OverlayRegistry.getOverlay(oControl);
272
+ oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
273
+ resolve(oControl.getMetadata().loadDesignTime(oControl));
256
274
  }
257
- resolve();
258
- }.bind(this));
259
- }.bind(this));
260
- }.bind(this))
261
- .then(function() {
262
- var oCommandFactory = new CommandFactory({
263
- flexSettings: {
264
- layer: mOptions.layer || Layer.CUSTOMER
265
275
  }
266
- });
267
- return oCommandFactory.getCommandFor(oControl, sCommandName, mParameter, oElementDesignTimeMetadata);
268
- })
269
- .then(function(oCommand) {
270
- assert.ok(oCommand, "then the registration for action to change type, the registration for change and control type to change handler is available and " + mOptions.action.name + " is a valid action");
271
- return oCommand;
272
- });
276
+ resolve();
277
+ }.bind(this));
278
+ }.bind(this));
273
279
  }.bind(this))
274
-
280
+ .then(function() {
281
+ var oCommandFactory = new CommandFactory({
282
+ flexSettings: {
283
+ layer: mOptions.layer || Layer.CUSTOMER
284
+ }
285
+ });
286
+ return oCommandFactory.getCommandFor(oControl, sCommandName, mParameter, oElementDesignTimeMetadata);
287
+ })
288
+ .then(function(oCommand) {
289
+ assert.ok(oCommand, "then the registration for action to change type, the registration for change and control type to change handler is available and " + mOptions.action.name + " is a valid action");
290
+ return oCommand;
291
+ })
275
292
  .catch(function(oMessage) {
276
293
  throw new Error(oMessage);
277
294
  });
@@ -358,7 +375,7 @@ sap.ui.define([
358
375
  return oChangeVisualization._updateChangeRegistry()
359
376
 
360
377
  .then(function() {
361
- return oChangeVisualization._selectChangeCategory("all");
378
+ return oChangeVisualization._selectChangeCategory(ChangeCategories.ALL);
362
379
  })
363
380
 
364
381
  .then(function() {
@@ -496,7 +513,7 @@ sap.ui.define([
496
513
  }.bind(this))
497
514
 
498
515
  .then(function() {
499
- sap.ui.getCore().applyChanges();
516
+ Core.applyChanges();
500
517
  mOptions.afterUndo(this.oUiComponent, this.oView, assert);
501
518
  }.bind(this));
502
519
  });
@@ -525,7 +542,7 @@ sap.ui.define([
525
542
  }.bind(this))
526
543
 
527
544
  .then(function() {
528
- sap.ui.getCore().applyChanges();
545
+ Core.applyChanges();
529
546
  mOptions.afterRedo(this.oUiComponent, this.oView, assert);
530
547
  }.bind(this));
531
548
  });
@@ -576,7 +593,7 @@ sap.ui.define([
576
593
  }.bind(this))
577
594
 
578
595
  .then(function() {
579
- sap.ui.getCore().applyChanges();
596
+ Core.applyChanges();
580
597
  return mOptions.afterAction(this.oUiComponent, this.oView, assert);
581
598
  }.bind(this));
582
599
  });
@@ -589,7 +606,7 @@ sap.ui.define([
589
606
  .then(cleanUpAfterUndo.bind(null, this.aCommands))
590
607
 
591
608
  .then(function() {
592
- sap.ui.getCore().applyChanges();
609
+ Core.applyChanges();
593
610
  return mOptions.afterUndo(this.oUiComponent, this.oView, assert);
594
611
  }.bind(this));
595
612
  });
@@ -614,7 +631,7 @@ sap.ui.define([
614
631
  }.bind(this))
615
632
 
616
633
  .then(function() {
617
- sap.ui.getCore().applyChanges();
634
+ Core.applyChanges();
618
635
  return mOptions.afterRedo(this.oUiComponent, this.oView, assert);
619
636
  }.bind(this));
620
637
  });
@@ -23,14 +23,14 @@ function() {
23
23
  * @namespace
24
24
  * @alias sap.ui.rta
25
25
  * @author SAP SE
26
- * @version 1.113.0
26
+ * @version 1.114.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.113.0",
33
+ version: "1.114.1",
34
34
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
35
35
  types: [],
36
36
  interfaces: [],
@@ -95,6 +95,12 @@ BTN_MENU=More Actions
95
95
  BTN_RESTORE=Reset
96
96
  #XBUT: Button 'UI Adaptation' of the Toolbar
97
97
  BTN_ADAPTATION=UI Adaptation
98
+ #XBUT: Button 'Feedback' of the Toolbar
99
+ BTN_FEEDBACK=Feedback
100
+ #XBUT: Button 'Close' in Feedback Dialog
101
+ BTN_CLOSE_FEEDBACK_DIALOG=Close
102
+ #XTIT: Title for feedback dialog
103
+ TIT_FEEDBACK=Give Feedback
98
104
  #XTIT: Title used for a button text, feed title and highlight text to indicate the existence of a draft version in the current session
99
105
  TIT_DRAFT=Draft
100
106
  #XTIT: Title used for a button text, feed title and highlight text for the 'original app'
@@ -113,6 +119,10 @@ TIT_VERSION_HISTORY_UNPUBLISHED=Unpublished
113
119
  MSG_DRAFT_ACTIVATION_SUCCESS=New version activated
114
120
  #XMSG: message toast text when activated failed
115
121
  MSG_DRAFT_ACTIVATION_FAILED=Sorry, the draft cannot be activated at this time. Please try again later.
122
+ #XMSG: message box text when version switch failed
123
+ MSG_SWITCH_VERSION_FAILED=Failed to switch version. Please reload.
124
+ #XMSG: message box text when adaptation switch failed
125
+ MSG_SWITCH_ADAPTATION_FAILED=Failed to switch adaptation. Please reload.
116
126
  #TIT: Title of a published version
117
127
  TIT_VERSION_TITLE=Title
118
128
  #XTIT: Title for the dialog to state a title for a version the key user is about to activate
@@ -208,7 +218,7 @@ MSG_NO_FIELDS=No more content available
208
218
  #XHED: Dialog title for personalization exists
209
219
  HEADER_PERSONALIZATION_EXISTS=Information
210
220
  #XMSG: Dialog message for personalization exists
211
- MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=You have personalized the app or there are public views. The app will now reload without these changes. Any recently made changes may remain active.
221
+ MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=You have personalized the app or there are public views. The app will now reload without these changes.
212
222
  #XMSG: MessageToast to warn users that changes made in navigation mode will be discarded after exit
213
223
  MSG_NAVIGATION_MODE_CHANGES_WARNING=Changes made to the UI in navigation mode will be discarded after you exit UI Adaptation.
214
224
  #XMSG: Dialog message for draft changes exists
@@ -245,6 +255,10 @@ MSG_RELOAD_WITH_VIEWS_PERSONALIZATION_AND_WITHOUT_DRAFT=The app will now reload
245
255
  MSG_RELOAD_WITH_PERSONALIZATION_AND_RESTRICTED_CONTEXT=The app will now reload with your personalization changes. Your public or role-specific views will be applied again.
246
256
  #XMSG: Dialog message for reload without restricted contexts
247
257
  MSG_RELOAD_WITHOUT_ALL_CONTEXT=The app will now reload with your public or role-specific views.
258
+ #XMSG: Dialog message for reload without context-based adaptation and personalization changes
259
+ MSG_RELOAD_WITH_PERSONALIZATION_AND_CONTEXT_BASED_ADAPTATION=The app will now reload with your personal changes and with the adaptation that has the highest priority matching your user roles.
260
+ #XMSG: Dialog message for reload if key user adaptation is not the highest ranked context-based adaptation for end user
261
+ MSG_RELOAD_OTHER_CONTEXT_BASED_ADAPTATION=The app will now reload with the adaptation that has the highest priority matching your user roles.
248
262
  #XMSG: Dialog message before a reload when personalization changes will be applied again
249
263
  MSG_RELOAD_WITH_ALL_CHANGES=The app will reload with all changes.
250
264
  #XMSG: Dialog message before a reload when changes need server-side processing and new cache tokens to be fetched (rare case for use to see this message)
@@ -540,10 +554,32 @@ MSG_NO_KEY_USER_RIGHTS_ERROR_MESSAGE=You do not have key user permissions. Pleas
540
554
  BTN_TOOLTIP_MOVE_UP=Move up
541
555
  #XBTN: Tooltip for button to move list item down
542
556
  BTN_TOOLTIP_MOVE_DOWN=Move down
557
+ #XTIT: RTA toolbar menu button text if there is one context-based adaptation
558
+ BTN_ADAPTING_FOR=Adapting for ''{0}''
559
+ #XTIT: RTA toolbar menu button text if there is no context-based adaptation
560
+ BTN_ADAPTING_FOR_ALL_USERS=Adapting for 'All Users'
561
+ #XTIT: Context-based Adaptation Sub Menu Button to switch to another context-based adaptation
562
+ BTN_SWITCH_ADAPTATIONS=Switch Adaptations
543
563
  #XTIT: Context-Based Adaptation Edit Dialog title
544
564
  EAC_DIALOG_HEADER=Edit Adaptation
545
565
  #XTIT: Context-Based Adaptation Save Dialog title
546
566
  SAC_DIALOG_HEADER=Save as New Adaptation
567
+ #XTIT: Context-Based Adaptation Delete Dialog title
568
+ DAC_DIALOG_HEADER=Delete Adaptation
569
+ #XTIT: Context-Based Adaptation Delete Dialog description
570
+ DAC_DIALOG_DESCRIPTION=Do you really want to delete this adaptation?
571
+ #XMSG: Context-Based Adaptation dialog to delete but unsaved changes exist description
572
+ DAC_DATA_LOSS_DIALOG_DESCRIPTION=You have unsaved UI changes. Deleting this adaptation will also delete the UI changes. Do you really want to delete this adaptation?
573
+ #XTIT: Context-Based Adaptation Migration Dialog title
574
+ DAC_DIALOG_MIGRATION_HEADER=Migrate Views
575
+ #XMSG: Context-Based Adaptation Migration Dialog description
576
+ DAC_DIALOG_MIGRATION_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.
577
+ #XMSG: Context-Based Adaptation Migration Dialog description
578
+ DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.\n\n You have unsaved UI changes. These will be discarded before the migration.
579
+ #XMSG: Context-Based Adaptation Migration Successful Dialog description
580
+ DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION=Views have been successfully migrated.\n You can now switch to the created adaptations and verify them.
581
+ #XMSG: Context-Based Adaptation Migration Error Dialog description
582
+ DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION=An Error occurred during the migration. Please try again later or contact your administrator.
547
583
  #XTITT: Context-Based Adaptation Manage Dialog title
548
584
  MANAGE_ADAPTATIONS_DIALOG_HEADER=Manage Adaptations
549
585
  #XTIT: Text for Manage Adaptations Button in RTA toolbar
@@ -589,11 +625,13 @@ TXT_TABLE_CONTEXT_CELL_ROLE=role
589
625
  #XFLD: postfix for context table cell
590
626
  TXT_TABLE_CONTEXT_CELL_ROLES=roles
591
627
  #XTXT: title of adaptation without contexts
592
- TXT_DEFAULT_APP=Default App
628
+ TXT_DEFAULT_APP=Context-free adaptation
593
629
  #XBUT: Context-Based Adaptation predefined text for Save button
594
630
  APP_CTX_DIALOG_SAVE=Save
595
631
  #XBUT: Context-Based Adaptation predefined text for Cancel button
596
632
  APP_CTX_DIALOG_CANCEL=Cancel
633
+ #XBUT: Context-Based Adaptation predefined text for Confirm button
634
+ APP_CTX_DIALOG_CONFIRM=Confirm
597
635
  TOOLTIP_APP_CTX_DIALOG_SAVE=Context-based adaptation has not been changed.
598
636
  #TXT: Context-Based Adaptation duplicate title error message
599
637
  TXT_CTX_ERROR_DUPLICATE_TITLE=The adaptation title already exists. Please enter a different title.