@openui5/sap.ui.rta 1.132.1 → 1.134.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 (162) hide show
  1. package/.reuse/dep5 +2 -9
  2. package/LICENSES/LicenseRef-Unicode-3.0.txt +39 -0
  3. package/THIRDPARTY.txt +45 -78
  4. package/package.json +6 -6
  5. package/src/sap/ui/rta/.library +1 -1
  6. package/src/sap/ui/rta/Client.js +1 -1
  7. package/src/sap/ui/rta/RuntimeAuthoring.js +5 -7
  8. package/src/sap/ui/rta/Utils.js +12 -2
  9. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +0 -4
  11. package/src/sap/ui/rta/appVariant/Feature.js +15 -21
  12. package/src/sap/ui/rta/appVariant/Utils.js +31 -35
  13. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  14. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  15. package/src/sap/ui/rta/command/AddXML.js +1 -1
  16. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  17. package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
  18. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  19. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  20. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  21. package/src/sap/ui/rta/command/Combine.js +1 -1
  22. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  23. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  28. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  29. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  30. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  31. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  32. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  33. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  34. package/src/sap/ui/rta/command/Move.js +1 -1
  35. package/src/sap/ui/rta/command/Property.js +1 -1
  36. package/src/sap/ui/rta/command/Remove.js +1 -1
  37. package/src/sap/ui/rta/command/Rename.js +1 -1
  38. package/src/sap/ui/rta/command/Resize.js +1 -1
  39. package/src/sap/ui/rta/command/Reveal.js +1 -1
  40. package/src/sap/ui/rta/command/Settings.js +1 -1
  41. package/src/sap/ui/rta/command/Split.js +1 -1
  42. package/src/sap/ui/rta/command/Stack.js +1 -1
  43. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  48. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -7
  49. package/src/sap/ui/rta/library.js +2 -2
  50. package/src/sap/ui/rta/messagebundle.properties +6 -4
  51. package/src/sap/ui/rta/messagebundle_ar.properties +2 -1
  52. package/src/sap/ui/rta/messagebundle_bg.properties +3 -2
  53. package/src/sap/ui/rta/messagebundle_ca.properties +2 -1
  54. package/src/sap/ui/rta/messagebundle_cnr.properties +3 -2
  55. package/src/sap/ui/rta/messagebundle_cs.properties +2 -1
  56. package/src/sap/ui/rta/messagebundle_cy.properties +2 -1
  57. package/src/sap/ui/rta/messagebundle_da.properties +3 -2
  58. package/src/sap/ui/rta/messagebundle_de.properties +2 -1
  59. package/src/sap/ui/rta/messagebundle_el.properties +2 -1
  60. package/src/sap/ui/rta/messagebundle_en.properties +2 -1
  61. package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -1
  62. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -1
  63. package/src/sap/ui/rta/messagebundle_es.properties +2 -1
  64. package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -2
  65. package/src/sap/ui/rta/messagebundle_et.properties +2 -1
  66. package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
  67. package/src/sap/ui/rta/messagebundle_fr.properties +2 -1
  68. package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -1
  69. package/src/sap/ui/rta/messagebundle_hi.properties +2 -1
  70. package/src/sap/ui/rta/messagebundle_hr.properties +2 -1
  71. package/src/sap/ui/rta/messagebundle_hu.properties +2 -1
  72. package/src/sap/ui/rta/messagebundle_id.properties +2 -1
  73. package/src/sap/ui/rta/messagebundle_it.properties +2 -1
  74. package/src/sap/ui/rta/messagebundle_iw.properties +2 -1
  75. package/src/sap/ui/rta/messagebundle_ja.properties +2 -1
  76. package/src/sap/ui/rta/messagebundle_kk.properties +2 -1
  77. package/src/sap/ui/rta/messagebundle_ko.properties +2 -1
  78. package/src/sap/ui/rta/messagebundle_lt.properties +2 -1
  79. package/src/sap/ui/rta/messagebundle_lv.properties +2 -1
  80. package/src/sap/ui/rta/messagebundle_mk.properties +3 -2
  81. package/src/sap/ui/rta/messagebundle_ms.properties +2 -1
  82. package/src/sap/ui/rta/messagebundle_nl.properties +2 -1
  83. package/src/sap/ui/rta/messagebundle_no.properties +2 -1
  84. package/src/sap/ui/rta/messagebundle_pl.properties +2 -1
  85. package/src/sap/ui/rta/messagebundle_pt.properties +2 -1
  86. package/src/sap/ui/rta/messagebundle_pt_PT.properties +2 -1
  87. package/src/sap/ui/rta/messagebundle_ro.properties +2 -1
  88. package/src/sap/ui/rta/messagebundle_ru.properties +2 -1
  89. package/src/sap/ui/rta/messagebundle_sh.properties +3 -2
  90. package/src/sap/ui/rta/messagebundle_sk.properties +2 -1
  91. package/src/sap/ui/rta/messagebundle_sl.properties +2 -1
  92. package/src/sap/ui/rta/messagebundle_sr.properties +3 -2
  93. package/src/sap/ui/rta/messagebundle_sv.properties +2 -1
  94. package/src/sap/ui/rta/messagebundle_th.properties +2 -1
  95. package/src/sap/ui/rta/messagebundle_tr.properties +2 -1
  96. package/src/sap/ui/rta/messagebundle_uk.properties +2 -1
  97. package/src/sap/ui/rta/messagebundle_vi.properties +2 -1
  98. package/src/sap/ui/rta/messagebundle_zh_CN.properties +2 -1
  99. package/src/sap/ui/rta/messagebundle_zh_TW.properties +2 -1
  100. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +9 -3
  101. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +168 -0
  102. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  103. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  104. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  105. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  106. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  107. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  108. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  109. package/src/sap/ui/rta/plugin/Plugin.js +5 -4
  110. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  111. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  112. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  113. package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
  114. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  115. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  116. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  117. package/src/sap/ui/rta/plugin/Split.js +1 -1
  118. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  124. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +30 -47
  125. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +30 -41
  126. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +89 -32
  127. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +19 -1
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  130. package/src/sap/ui/rta/service/Action.js +1 -1
  131. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  132. package/src/sap/ui/rta/service/Outline.js +1 -1
  133. package/src/sap/ui/rta/service/Property.js +1 -1
  134. package/src/sap/ui/rta/service/Selection.js +1 -1
  135. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  136. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +12 -0
  137. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  138. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  139. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  140. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  141. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Standalone.js +6 -4
  143. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  144. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  145. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +7 -4
  146. package/src/sap/ui/rta/util/Animation.js +1 -1
  147. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  148. package/src/sap/ui/rta/util/PluginManager.js +5 -7
  149. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  150. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  151. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  152. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  153. package/src/sap/ui/rta/util/adaptationStarter.js +3 -3
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -1
  157. package/src/sap/ui/rta/util/isReuseComponent.js +44 -0
  158. package/src/sap/ui/rta/util/validateText.js +1 -1
  159. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
  160. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +12 -7
  161. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
  162. package/LICENSES/Unicode-DFS-2015.txt +0 -51
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @class
50
50
  * @extends sap.ui.rta.plugin.Plugin
51
51
  * @author SAP SE
52
- * @version 1.132.1
52
+ * @version 1.134.0
53
53
  * @constructor
54
54
  * @private
55
55
  * @since 1.78
@@ -90,6 +90,11 @@ sap.ui.define([
90
90
  return DesignTime.isDesignModeEnabled();
91
91
  }
92
92
 
93
+ function checkViewId(oElementOverlay) {
94
+ const oView = getExtensionPointList(oElementOverlay.getElement())[0]?.view;
95
+ return oView && FlUtils.checkControlId(oView);
96
+ }
97
+
93
98
  AddXMLAtExtensionPoint.prototype.bAppDescriptorCommandAlreadyAvailable = false;
94
99
 
95
100
  /**
@@ -104,7 +109,7 @@ sap.ui.define([
104
109
  if (isDesignMode()) {
105
110
  var oElement = oOverlay.getElement();
106
111
  return this.hasChangeHandler(FLEX_CHANGE_TYPE, oElement).then(function(bHasChangeHandler) {
107
- return bHasChangeHandler && hasExtensionPoints(oElement);
112
+ return bHasChangeHandler && hasExtensionPoints(oElement) && checkViewId(oOverlay);
108
113
  });
109
114
  }
110
115
  return Promise.resolve(false);
@@ -117,7 +122,8 @@ sap.ui.define([
117
122
  * @public
118
123
  */
119
124
  AddXMLAtExtensionPoint.prototype.isEnabled = function(aElementOverlays) {
120
- return aElementOverlays.length === 1;
125
+ const bEnabled = aElementOverlays.length === 1;
126
+ return bEnabled && !!checkViewId(aElementOverlays[0]);
121
127
  };
122
128
 
123
129
  AddXMLAtExtensionPoint.prototype.isAvailable = function(aOverlays) {
@@ -0,0 +1,168 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ "sap/ui/dt/Util",
9
+ "sap/ui/fl/Utils",
10
+ "sap/ui/rta/Utils",
11
+ "sap/ui/rta/plugin/Plugin",
12
+ "sap/ui/rta/util/isReuseComponent"
13
+ ], function(
14
+ DtUtil,
15
+ FlUtils,
16
+ RtaUtils,
17
+ Plugin,
18
+ isReuseComponent
19
+ ) {
20
+ "use strict";
21
+
22
+ /**
23
+ * Callback function responsible for fragment handling.
24
+ *
25
+ * The fragment handling function needs to be provided from outside of key user adaptation. It is called during the execution of the
26
+ * plugin handler with the target overlay.
27
+ *
28
+ * @typedef {function} sap.ui.rta.plugin.AddXML.fragmentHandler
29
+ * @since 1.134
30
+ * @param {sap.ui.dt.ElementOverlay} oOverlay - Target overlay for where XML will be added
31
+ * @param {string[]} aExcludedAggregation - Aggregations that should be excluded from the fragment handling
32
+ * @returns {Promise<{fragmentPath: string, fragment: string, targetAggregation: string, index: number}>} Object wrapped in a Promise containing values that are relevant for the <code>addXML</code> command
33
+
34
+ /**
35
+ * Constructor for a new AddXML plugin.
36
+ * Adds the content of the XML fragment
37
+ * The fragment handler <code>{@link sap.ui.rta.plugin.AddXML.fragmentHandler FragmentHandler}</code>
38
+ * is a callback function that needs to be passed on instantiation of the plugin or alternatively into the
39
+ * propertyBag when the handler function is called.
40
+ *
41
+ * @class
42
+ * @extends sap.ui.rta.plugin.Plugin
43
+ * @author SAP SE
44
+ * @version 1.134.0
45
+ * @constructor
46
+ * @private
47
+ * @since 1.134
48
+ * @alias sap.ui.rta.plugin.AddXMLPlugin
49
+ */
50
+ const AddXML = Plugin.extend("sap.ui.rta.plugin.AddXML", /** @lends sap.ui.rta.plugin.AddXMLPlugin.prototype */ {
51
+ metadata: {
52
+ library: "sap.ui.rta",
53
+ properties: {
54
+ fragmentHandler: {
55
+ type: "function"
56
+ }
57
+ },
58
+ associations: {},
59
+ events: {}
60
+ }
61
+ });
62
+
63
+ const FLEX_CHANGE_TYPE = "addXML";
64
+
65
+ /**
66
+ * Check if the given overlay is editable.
67
+ *
68
+ * @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
69
+ * @returns {Promise<boolean>} <code>true</code> when editable wrapped in a promise
70
+ * @private
71
+ */
72
+ AddXML.prototype._isEditable = async function(oOverlay) {
73
+ // Action should be available by default
74
+ const oAddXMLAction = this.getAction(oOverlay);
75
+ const oComponent = FlUtils.getComponentForControl(oOverlay.getElement());
76
+ const bIsS4HanaCloud = RtaUtils.isS4HanaCloud();
77
+ if (
78
+ oAddXMLAction === null ||
79
+ !this.hasStableId(oOverlay) ||
80
+ (bIsS4HanaCloud && isReuseComponent(oComponent))
81
+ ) {
82
+ return Promise.resolve(false);
83
+ }
84
+ const bHasChangeHandler = await this.hasChangeHandler(FLEX_CHANGE_TYPE, oOverlay.getElement());
85
+ return bHasChangeHandler;
86
+ };
87
+
88
+ /**
89
+ * Checks if AddXML is enabled for oOverlay
90
+ * @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
91
+ * @returns {boolean} <code>true</code> if enabled
92
+ * @public
93
+ */
94
+ AddXML.prototype.isEnabled = function(aElementOverlays) {
95
+ const bEnabled = aElementOverlays.length === 1;
96
+ return bEnabled;
97
+ };
98
+
99
+ function handleAddXmlCommand(mAddXmlData, oElement) {
100
+ const mAddXmlSettings = {
101
+ fragment: mAddXmlData.fragment,
102
+ fragmentPath: mAddXmlData.fragmentPath,
103
+ targetAggregation: mAddXmlData.targetAggregation,
104
+ index: mAddXmlData.index
105
+
106
+ };
107
+
108
+ return this.getCommandFactory().getCommandFor(
109
+ oElement,
110
+ FLEX_CHANGE_TYPE,
111
+ mAddXmlSettings
112
+ );
113
+ }
114
+
115
+ /**
116
+ * Triggers the plugin execution.
117
+ * @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
118
+ * @param {Object} mPropertyBag - Property bag
119
+ * @param {sap.ui.rta.plugin.AddXML.fragmentHandler} [mPropertyBag.fragmentHandler] - Handler function for fragment handling. The fragment handler is a callback function that needs to be passed here into the <code>propertyBag</code> or alternatively on instantiation of the plugin.
120
+ */
121
+ AddXML.prototype.handler = async function(aElementOverlays, mPropertyBag) {
122
+ try {
123
+ const fnFragmentHandler = mPropertyBag.fragmentHandler || this.getFragmentHandler();
124
+ if (!fnFragmentHandler) {
125
+ throw Error("Fragment handler function is not available in the handler");
126
+ }
127
+ const oOverlay = aElementOverlays[0];
128
+
129
+ const aExcludedAggregation = this.getAction(oOverlay)?.excludedAggregations || [];
130
+
131
+ const mAddXmlData = await fnFragmentHandler(oOverlay, aExcludedAggregation);
132
+
133
+ const oAddXmlCommand = await handleAddXmlCommand.call(this, mAddXmlData, oOverlay.getElement());
134
+ this.fireElementModified({
135
+ command: oAddXmlCommand
136
+ });
137
+ } catch (vError) {
138
+ throw DtUtil.propagateError(
139
+ vError,
140
+ "AddXML#handler",
141
+ "Error occurred in AddXML handler function",
142
+ "sap.ui.rta"
143
+ );
144
+ }
145
+ };
146
+
147
+ /**
148
+ * Retrieves the context menu item for the action.
149
+ * @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
150
+ * @returns {object[]} Array of the items with required data
151
+ */
152
+ AddXML.prototype.getMenuItems = function(aElementOverlays) {
153
+ return this._getMenuItems(aElementOverlays, {
154
+ pluginId: "CTX_ADDXML",
155
+ icon: "sap-icon://attachment-html"
156
+ });
157
+ };
158
+
159
+ /**
160
+ * Gets the name of the action related to this plugin.
161
+ * @returns {string} Action name
162
+ */
163
+ AddXML.prototype.getActionName = function() {
164
+ return "addXML";
165
+ };
166
+
167
+ return AddXML;
168
+ });
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class The BaseCreate allows trigger BaseCreate operations on the overlay.
26
26
  * @extends sap.ui.rta.plugin.Plugin
27
27
  * @author SAP SE
28
- * @version 1.132.1
28
+ * @version 1.134.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.75
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class
26
26
  * @extends sap.ui.rta.plugin.Plugin
27
27
  * @author SAP SE
28
- * @version 1.132.1
28
+ * @version 1.134.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.46
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @class The ControlVariant allows propagation of variantManagement key
54
54
  * @extends sap.ui.rta.plugin.Plugin
55
55
  * @author SAP SE
56
- * @version 1.132.1
56
+ * @version 1.134.0
57
57
  * @constructor
58
58
  * @private
59
59
  * @since 1.50
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class The CreateContainer allows trigger CreateContainer operations on the overlay
26
26
  * @extends sap.ui.rta.plugin.BaseCreate
27
27
  * @author SAP SE
28
- * @version 1.132.1
28
+ * @version 1.134.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.34
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.dt.plugin.CutPaste
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.132.1
35
+ * @version 1.134.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -33,7 +33,7 @@ function(
33
33
  * @extends sap.ui.dt.plugin.ControlDragDrop
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.132.1
36
+ * @version 1.134.0
37
37
  *
38
38
  * @constructor
39
39
  * @private
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @class
42
42
  * @extends sap.ui.rta.plugin.Plugin
43
43
  * @author SAP SE
44
- * @version 1.132.1
44
+ * @version 1.134.0
45
45
  * @constructor
46
46
  * @private
47
47
  * @since 1.90
@@ -39,12 +39,11 @@ sap.ui.define([
39
39
  CTX_GROUP_FIELDS: 90,
40
40
  CTX_UNGROUP_FIELDS: 100,
41
41
  CTX_ADDXML_AT_EXTENSIONPOINT: 105,
42
+ CTX_ADDXML: 106,
42
43
  // Settings ranks go up 1 by 1 for each setting
43
44
  CTX_SETTINGS: 110,
44
45
  // IFrame ranks go up 1 by 1 for each possible child target
45
46
  CTX_CREATE_SIBLING_IFRAME: 130,
46
- // Annotation ranks go up 1 by 1 for each action
47
- CTX_ANNOTATION: 140,
48
47
  // Variant types are mutually exclusive
49
48
  CTX_VARIANT_SET_TITLE: 200,
50
49
  CTX_COMP_VARIANT_RENAME: 200,
@@ -56,7 +55,9 @@ sap.ui.define([
56
55
  CTX_COMP_VARIANT_MANAGE: 230,
57
56
  CTX_VARIANT_SWITCH_SUBMENU: 240,
58
57
  CTX_COMP_VARIANT_SWITCH: 240,
59
- CTX_COMP_VARIANT_CONTENT: 250
58
+ CTX_COMP_VARIANT_CONTENT: 250,
59
+ // Annotation ranks go up 1 by 1 for each action
60
+ CTX_ANNOTATION: 300
60
61
  };
61
62
 
62
63
  function _handleEditableByPlugin(mPropertyBag, aPromises, oSourceElementOverlay) {
@@ -105,7 +106,7 @@ sap.ui.define([
105
106
  * @extends sap.ui.dt.Plugin
106
107
  *
107
108
  * @author SAP SE
108
- * @version 1.132.1
109
+ * @version 1.134.0
109
110
  *
110
111
  * @constructor
111
112
  * @private
@@ -35,7 +35,7 @@ function(
35
35
  * The RTAElementMover is responsible for the RTA specific adaptation of element movements.
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.132.1
38
+ * @version 1.134.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @class The Remove allows trigger remove operations on the overlay
30
30
  * @extends sap.ui.rta.plugin.Plugin
31
31
  * @author SAP SE
32
- * @version 1.132.1
32
+ * @version 1.134.0
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.34
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.rta.plugin.Plugin
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.132.1
31
+ * @version 1.134.0
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * Provides Rename handling functionality
44
44
  *
45
45
  * @author SAP SE
46
- * @version 1.132.1
46
+ * @version 1.134.0
47
47
  *
48
48
  * @constructor
49
49
  * @private
@@ -474,4 +474,4 @@ sap.ui.define([
474
474
  }
475
475
  };
476
476
  return RenameHandler;
477
- }, true);
477
+ });
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class
28
28
  * @extends sap.ui.rta.plugin.Plugin
29
29
  * @author SAP SE
30
- * @version 1.132.1
30
+ * @version 1.134.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.101
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
32
32
  * @extends sap.ui.rta.plugin.Plugin
33
33
  * @author SAP SE
34
- * @version 1.132.1
34
+ * @version 1.134.0
35
35
  * @constructor
36
36
  * @private
37
37
  * @since 1.34
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @class The Settings allows trigger change of settings operations on the overlay
29
29
  * @extends sap.ui.rta.plugin.Plugin
30
30
  * @author SAP SE
31
- * @version 1.132.1
31
+ * @version 1.134.0
32
32
  * @constructor
33
33
  * @private
34
34
  * @since 1.44
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @class
24
24
  * @extends sap.ui.rta.plugin.Plugin
25
25
  * @author SAP SE
26
- * @version 1.132.1
26
+ * @version 1.134.0
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.46
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.rta.plugin.Plugin
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.132.1
32
+ * @version 1.134.0
33
33
  *
34
34
  * @constructor
35
35
  * @private
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * handled by the AdditionalElements Plugin (Reveal, Add Via Delegate, Add Custom)
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.132.1
35
+ * @version 1.134.0
36
36
  * @private
37
37
  * @since 1.94
38
38
  */
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @class Context - Dialog for available Fields in Runtime Authoring
33
33
  * @extends sap.ui.base.ManagedObject
34
34
  * @author SAP SE
35
- * @version 1.132.1
35
+ * @version 1.134.0
36
36
  * @constructor
37
37
  * @private
38
38
  * @since 1.44
@@ -119,7 +119,7 @@ sap.ui.define([
119
119
  * @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
120
120
  * @extends sap.ui.rta.plugin.Plugin
121
121
  * @author SAP SE
122
- * @version 1.132.1
122
+ * @version 1.134.0
123
123
  * @constructor
124
124
  * @private
125
125
  * @since 1.44
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * Helper object containing methods for the AdditionalElements plugin
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.132.1
20
+ * @version 1.134.0
21
21
  * @private
22
22
  * @since 1.94
23
23
  */
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * Helper object to build the RTA commands resulting from the AdditionalElements Plugin
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.132.1
28
+ * @version 1.134.0
29
29
  * @private
30
30
  * @since 1.94
31
31
  */
@@ -10,24 +10,9 @@
10
10
  draggable="true"
11
11
  contentWidth="50rem"
12
12
  contentHeight="25rem"
13
+ title="{/title}"
14
+ class="sapUiContentPadding"
13
15
  >
14
- <customHeader>
15
- <Bar>
16
- <contentLeft>
17
- <Label
18
- id="sapUiRtaChangeAnnotationDialog_title"
19
- class="sapUiSmallMargin"
20
- text="{/title}"/>
21
- </contentLeft>
22
- <contentRight>
23
- <Button
24
- id="sapUiRtaChangeAnnotationDialog_toggleShowAllPropertiesButton"
25
- class="sapUiSmallMargin"
26
- text="{= ${/showChangedPropertiesOnly} ? ${i18n>ANNOTATION_CHANGE_DIALOG_BUTTON_ALL_PROPERTIES} : ${i18n>ANNOTATION_CHANGE_DIALOG_BUTTON_CHANGED_PROPERTIES}}"
27
- press="switchDisplayMode"/>
28
- </contentRight>
29
- </Bar>
30
- </customHeader>
31
16
  <content>
32
17
  <VBox>
33
18
  <MessageStrip
@@ -45,13 +30,28 @@
45
30
  id="sapUiRtaChangeAnnotationDialog_description"
46
31
  visible="{= ${/description}.length > 0}"
47
32
  text="{/description}"/>
48
- <SearchField
49
- id="sapUiRtaChangeAnnotationDialog_propertiesFilter"
50
- placeholder="{i18n>ANNOTATION_CHANGE_DIALOG_PROPERTY_SEARCH}"
51
- width="100%"
52
- value="{/filterText}"
53
- liveChange="onFilterProperties"/>
54
- <f:Form editable="false">
33
+ <HBox fitContainer="true">
34
+ <SearchField
35
+ id="sapUiRtaChangeAnnotationDialog_propertiesFilter"
36
+ placeholder="{i18n>ANNOTATION_CHANGE_DIALOG_PROPERTY_SEARCH}"
37
+ value="{/filterText}"
38
+ liveChange="onFilterProperties">
39
+ <layoutData>
40
+ <FlexItemData growFactor="1" styleClass="sapUiSmallMarginEnd"/>
41
+ </layoutData>
42
+ </SearchField>
43
+ <HBox alignItems="Center">
44
+ <Label
45
+ text="{i18n>ANNOTATION_CHANGE_DIALOG_BUTTON_CHANGED_PROPERTIES}"/>
46
+ <Switch
47
+ id="sapUiRtaChangeAnnotationDialog_toggleShowAllPropertiesSwitch"
48
+ state="{/showChangedPropertiesOnly}"
49
+ change="switchDisplayMode"
50
+ customTextOn=" "
51
+ customTextOff=" "/>
52
+ </HBox>
53
+ </HBox>
54
+ <f:Form editable="true">
55
55
  <f:layout>
56
56
  <f:ResponsiveGridLayout
57
57
  labelSpanXL="3"
@@ -59,42 +59,25 @@
59
59
  labelSpanM="3"
60
60
  labelSpanS="12"
61
61
  adjustLabelSpan="false"
62
- emptySpanXL="4"
63
- emptySpanL="4"
64
- emptySpanM="4"
62
+ emptySpanXL="0"
63
+ emptySpanL="0"
64
+ emptySpanM="0"
65
65
  emptySpanS="0"
66
66
  columnsXL="1"
67
67
  columnsL="1"
68
68
  columnsM="1"
69
- singleContainerFullSize="false"/>
69
+ singleContainerFullSize="true"/>
70
70
  </f:layout>
71
71
  <f:FormContainer
72
72
  id="sapUiRtaChangeAnnotationDialog_propertyList"
73
- formElements="{path: '/propertiesToDisplay', templateShareable: false}">
74
- <f:FormElement label="{propertyName}">
75
- <Select
76
- visible="{path: '/valueType', formatter: '.formatters.isValueList'}"
77
- selectedKey="{currentValue}"
78
- change="onValueListChange"
79
- items="{path: '/possibleValues', templateShareable: false}">
80
- <core:Item key="{key}" text="{text}" />
81
- </Select>
82
- <Input
83
- visible="{path: '/valueType', formatter: '.formatters.isString'}"
84
- value="{currentValue}"
85
- change="onStringChange"/>
86
- <CheckBox
87
- visible="{path: '/valueType', formatter: '.formatters.isBoolean'}"
88
- selected="{=!!${currentValue}}"
89
- select="onBooleanChange"/>
90
- </f:FormElement>
91
- </f:FormContainer>
73
+ formElements="{path: '/propertiesToDisplay', factory: '.editorFactory'}" />
92
74
  </f:Form>
93
75
  </VBox>
94
76
  </content>
95
77
  <beginButton>
96
78
  <Button
97
79
  id="sapUiRtaChangeAnnotationDialog_saveButton"
80
+ enabled="{= ${path: '/properties', formatter: '.hasChangesFormatter'}}"
98
81
  type="Emphasized"
99
82
  text="{i18n>ANNOTATION_CHANGE_DIALOG_SAVE}"
100
83
  press="onSavePress"