@openui5/sap.ui.rta 1.109.0 → 1.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +2 -2
  5. package/src/sap/ui/rta/Client.js +2 -2
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +251 -151
  7. package/src/sap/ui/rta/Utils.js +40 -19
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -1
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  12. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
  13. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  14. package/src/sap/ui/rta/appVariant/Feature.js +2 -8
  15. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
  16. package/src/sap/ui/rta/appVariant/Utils.js +1 -1
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
  21. package/src/sap/ui/rta/command/AddIFrame.js +2 -2
  22. package/src/sap/ui/rta/command/AddProperty.js +2 -2
  23. package/src/sap/ui/rta/command/AddXML.js +2 -2
  24. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  25. package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
  26. package/src/sap/ui/rta/command/BaseCommand.js +2 -2
  27. package/src/sap/ui/rta/command/BindProperty.js +2 -2
  28. package/src/sap/ui/rta/command/Combine.js +2 -2
  29. package/src/sap/ui/rta/command/CommandFactory.js +2 -2
  30. package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
  31. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  32. package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
  33. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
  34. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  35. package/src/sap/ui/rta/command/ControlVariantSwitch.js +15 -13
  36. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  37. package/src/sap/ui/rta/command/CustomAdd.js +2 -2
  38. package/src/sap/ui/rta/command/FlexCommand.js +2 -2
  39. package/src/sap/ui/rta/command/LREPSerializer.js +27 -12
  40. package/src/sap/ui/rta/command/LocalReset.js +2 -2
  41. package/src/sap/ui/rta/command/Move.js +2 -2
  42. package/src/sap/ui/rta/command/Property.js +2 -2
  43. package/src/sap/ui/rta/command/Remove.js +2 -2
  44. package/src/sap/ui/rta/command/Rename.js +2 -2
  45. package/src/sap/ui/rta/command/Resize.js +2 -2
  46. package/src/sap/ui/rta/command/Reveal.js +2 -2
  47. package/src/sap/ui/rta/command/Settings.js +2 -2
  48. package/src/sap/ui/rta/command/Split.js +2 -2
  49. package/src/sap/ui/rta/command/Stack.js +11 -3
  50. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
  51. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
  52. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
  53. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
  54. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
  55. package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
  56. package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
  57. package/src/sap/ui/rta/library.js +3 -3
  58. package/src/sap/ui/rta/messagebundle.properties +65 -13
  59. package/src/sap/ui/rta/messagebundle_ar.properties +35 -11
  60. package/src/sap/ui/rta/messagebundle_bg.properties +35 -11
  61. package/src/sap/ui/rta/messagebundle_ca.properties +35 -11
  62. package/src/sap/ui/rta/messagebundle_cs.properties +35 -11
  63. package/src/sap/ui/rta/messagebundle_cy.properties +34 -10
  64. package/src/sap/ui/rta/messagebundle_da.properties +34 -10
  65. package/src/sap/ui/rta/messagebundle_de.properties +37 -13
  66. package/src/sap/ui/rta/messagebundle_el.properties +34 -10
  67. package/src/sap/ui/rta/messagebundle_en.properties +33 -9
  68. package/src/sap/ui/rta/messagebundle_en_GB.properties +33 -9
  69. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +31 -5
  70. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +37 -5
  71. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +31 -7
  72. package/src/sap/ui/rta/messagebundle_es.properties +34 -10
  73. package/src/sap/ui/rta/messagebundle_es_MX.properties +34 -10
  74. package/src/sap/ui/rta/messagebundle_et.properties +34 -10
  75. package/src/sap/ui/rta/messagebundle_fi.properties +34 -10
  76. package/src/sap/ui/rta/messagebundle_fr.properties +34 -10
  77. package/src/sap/ui/rta/messagebundle_fr_CA.properties +35 -11
  78. package/src/sap/ui/rta/messagebundle_hi.properties +35 -11
  79. package/src/sap/ui/rta/messagebundle_hr.properties +35 -11
  80. package/src/sap/ui/rta/messagebundle_hu.properties +34 -10
  81. package/src/sap/ui/rta/messagebundle_id.properties +35 -11
  82. package/src/sap/ui/rta/messagebundle_it.properties +35 -11
  83. package/src/sap/ui/rta/messagebundle_iw.properties +34 -10
  84. package/src/sap/ui/rta/messagebundle_ja.properties +35 -11
  85. package/src/sap/ui/rta/messagebundle_kk.properties +34 -10
  86. package/src/sap/ui/rta/messagebundle_ko.properties +34 -10
  87. package/src/sap/ui/rta/messagebundle_lt.properties +34 -10
  88. package/src/sap/ui/rta/messagebundle_lv.properties +35 -11
  89. package/src/sap/ui/rta/messagebundle_ms.properties +35 -11
  90. package/src/sap/ui/rta/messagebundle_nl.properties +34 -10
  91. package/src/sap/ui/rta/messagebundle_no.properties +35 -11
  92. package/src/sap/ui/rta/messagebundle_pl.properties +35 -11
  93. package/src/sap/ui/rta/messagebundle_pt.properties +35 -11
  94. package/src/sap/ui/rta/messagebundle_pt_PT.properties +34 -10
  95. package/src/sap/ui/rta/messagebundle_ro.properties +35 -11
  96. package/src/sap/ui/rta/messagebundle_ru.properties +35 -11
  97. package/src/sap/ui/rta/messagebundle_sh.properties +34 -10
  98. package/src/sap/ui/rta/messagebundle_sk.properties +34 -10
  99. package/src/sap/ui/rta/messagebundle_sl.properties +34 -10
  100. package/src/sap/ui/rta/messagebundle_sv.properties +35 -11
  101. package/src/sap/ui/rta/messagebundle_th.properties +36 -12
  102. package/src/sap/ui/rta/messagebundle_tr.properties +34 -10
  103. package/src/sap/ui/rta/messagebundle_uk.properties +34 -10
  104. package/src/sap/ui/rta/messagebundle_vi.properties +35 -11
  105. package/src/sap/ui/rta/messagebundle_zh_CN.properties +35 -11
  106. package/src/sap/ui/rta/messagebundle_zh_TW.properties +35 -11
  107. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
  108. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  109. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  110. package/src/sap/ui/rta/plugin/CompVariant.js +4 -6
  111. package/src/sap/ui/rta/plugin/ControlVariant.js +2 -2
  112. package/src/sap/ui/rta/plugin/CreateContainer.js +3 -3
  113. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  114. package/src/sap/ui/rta/plugin/DragDrop.js +4 -4
  115. package/src/sap/ui/rta/plugin/EasyAdd.js +30 -21
  116. package/src/sap/ui/rta/plugin/EasyRemove.js +13 -11
  117. package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
  118. package/src/sap/ui/rta/plugin/Plugin.js +57 -13
  119. package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
  120. package/src/sap/ui/rta/plugin/Remove.js +3 -3
  121. package/src/sap/ui/rta/plugin/Rename.js +2 -2
  122. package/src/sap/ui/rta/plugin/RenameHandler.js +30 -19
  123. package/src/sap/ui/rta/plugin/Resize.js +2 -2
  124. package/src/sap/ui/rta/plugin/Selection.js +8 -15
  125. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  126. package/src/sap/ui/rta/plugin/Split.js +2 -2
  127. package/src/sap/ui/rta/plugin/Stretch.js +17 -16
  128. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +28 -7
  129. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +1 -0
  130. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
  131. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +4 -2
  132. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -5
  133. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
  134. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
  135. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
  136. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +7 -2
  137. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  138. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -4
  139. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  140. package/src/sap/ui/rta/service/Action.js +2 -2
  141. package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
  142. package/src/sap/ui/rta/service/Outline.js +2 -2
  143. package/src/sap/ui/rta/service/Property.js +2 -2
  144. package/src/sap/ui/rta/service/Receiver.js +1 -1
  145. package/src/sap/ui/rta/service/Selection.js +2 -2
  146. package/src/sap/ui/rta/service/SupportTools.js +2 -2
  147. package/src/sap/ui/rta/service/index.js +1 -1
  148. package/src/sap/ui/rta/themes/base/AddIFrame.less +1 -1
  149. package/src/sap/ui/rta/themes/base/Dialogs.less +1 -1
  150. package/src/sap/ui/rta/themes/base/FieldRepository.less +1 -1
  151. package/src/sap/ui/rta/themes/base/library.source.less +1 -1
  152. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
  153. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +82 -0
  154. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +35 -79
  155. package/src/sap/ui/rta/toolbar/Adaptation.js +83 -25
  156. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  157. package/src/sap/ui/rta/toolbar/Base.js +4 -4
  158. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
  159. package/src/sap/ui/rta/toolbar/Fiori.js +15 -11
  160. package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
  161. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
  162. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  163. package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
  164. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +340 -0
  165. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +152 -0
  166. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +225 -0
  167. package/src/sap/ui/rta/toolbar/contextBased/{SaveAsContextBasedAdaptationDialog.fragment.xml → SaveAsAdaptationDialog.fragment.xml} +19 -15
  168. package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
  169. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +4 -4
  170. package/src/sap/ui/rta/util/Animation.js +5 -9
  171. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  172. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  173. package/src/sap/ui/rta/util/PopupManager.js +2 -2
  174. package/src/sap/ui/rta/util/ReloadManager.js +2 -2
  175. package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
  176. package/src/sap/ui/rta/util/StylesLoader.js +1 -1
  177. package/src/sap/ui/rta/util/UrlParser.js +1 -1
  178. package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
  179. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
  180. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +4 -6
  181. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
  182. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +27 -3
  183. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -2
  184. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +127 -71
  185. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
  186. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
  187. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  188. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
  189. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
  190. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  191. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
  192. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  193. package/src/sap/ui/rta/util/showMessageBox.js +1 -1
  194. package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
  195. package/src/sap/ui/rta/util/validateStableIds.js +1 -1
  196. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +0 -124
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -10,15 +10,13 @@ sap.ui.define([
10
10
  "sap/ui/dt/OverlayRegistry",
11
11
  "sap/ui/dt/OverlayUtil",
12
12
  "sap/base/util/includes",
13
- "sap/base/util/restricted/_debounce",
14
- "sap/ui/thirdparty/jquery"
13
+ "sap/base/util/restricted/_debounce"
15
14
  ], function(
16
15
  Plugin,
17
16
  OverlayRegistry,
18
17
  OverlayUtil,
19
18
  includes,
20
- _debounce,
21
- jQuery
19
+ _debounce
22
20
  ) {
23
21
  "use strict";
24
22
 
@@ -33,7 +31,7 @@ sap.ui.define([
33
31
  * @extends sap.ui.rta.plugin.Plugin
34
32
  *
35
33
  * @author SAP SE
36
- * @version 1.109.0
34
+ * @version 1.111.0
37
35
  *
38
36
  * @constructor
39
37
  * @private
@@ -77,12 +75,13 @@ sap.ui.define([
77
75
  oElement.removeStyleClass(Stretch.STRETCHSTYLECLASS);
78
76
  }
79
77
  } else {
80
- var $Element = oOverlay.getAssociatedDomRef();
81
- if ($Element) {
78
+ //TODO: replace when Overlay.getAssociatedDomRef() does not return jQuery any more
79
+ var oElementDomRef = oOverlay.getAssociatedDomRef() && oOverlay.getAssociatedDomRef().get(0);
80
+ if (oElementDomRef) {
82
81
  if (bAddClass) {
83
- $Element.addClass(Stretch.STRETCHSTYLECLASS);
82
+ oElementDomRef.classList.add(Stretch.STRETCHSTYLECLASS);
84
83
  } else {
85
- $Element.removeClass(Stretch.STRETCHSTYLECLASS);
84
+ oElementDomRef.classList.remove(Stretch.STRETCHSTYLECLASS);
86
85
  }
87
86
  }
88
87
  }
@@ -109,7 +108,7 @@ sap.ui.define([
109
108
  // remove padding if it is already stretched
110
109
  var iHeight = oParentGeometry.size.height;
111
110
  if (bIsAlreadyStretched) {
112
- iHeight -= parseInt(jQuery(oParentGeometry.domRef).css("padding-top"));
111
+ iHeight -= parseInt(window.getComputedStyle(oParentGeometry.domRef, null).getPropertyValue("padding-top"));
113
112
  }
114
113
  var iParentSize = Math.round(oParentGeometry.size.width) * Math.round(iHeight);
115
114
  aChildOverlays = aChildOverlays || OverlayUtil.getAllChildOverlays(oReferenceOverlay);
@@ -382,9 +381,10 @@ sap.ui.define([
382
381
 
383
382
  Stretch.prototype._reevaluateStretching = function(oOverlay) {
384
383
  if (!oOverlay.bIsDestroyed) {
385
- var $Element = oOverlay.getAssociatedDomRef();
386
- if ($Element) {
387
- var bIsStretched = $Element.hasClass(Stretch.STRETCHSTYLECLASS);
384
+ //TODO: replace when getAssociatedDomRef does not return jQuery any more
385
+ var oElementDomRef = oOverlay.getAssociatedDomRef() && oOverlay.getAssociatedDomRef().get(0);
386
+ if (oElementDomRef) {
387
+ var bIsStretched = oElementDomRef.classList.contains(Stretch.STRETCHSTYLECLASS);
388
388
  var bShouldBeStretched = childrenAreSameSize(oOverlay, undefined, bIsStretched);
389
389
  if (bIsStretched && !bShouldBeStretched) {
390
390
  this.removeStretchCandidate(oOverlay);
@@ -398,8 +398,9 @@ sap.ui.define([
398
398
 
399
399
  Stretch.prototype._checkParentAndAddToStretchCandidates = function(oOverlay) {
400
400
  var oParentOverlay = oOverlay.getParentElementOverlay();
401
- var $ParentElement = oParentOverlay && oParentOverlay.getAssociatedDomRef();
402
- if ($ParentElement) {
401
+ //TODO: replace when getAssociatedDomRef does not return jQuery any more
402
+ var oParentElementDOM = oParentOverlay && oParentOverlay.getAssociatedDomRef() && oParentOverlay.getAssociatedDomRef().get(0);
403
+ if (oParentElementDOM) {
403
404
  if (startAtSamePosition(oParentOverlay, oOverlay)) {
404
405
  if (childrenAreSameSize(oParentOverlay)) {
405
406
  this.addStretchCandidate(oParentOverlay);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -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.109.0
35
+ * @version 1.111.0
36
36
  * @private
37
37
  * @since 1.94
38
38
  * @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -326,13 +326,13 @@ sap.ui.define([
326
326
  *
327
327
  * @return {Promise} Resolving to a structure with all "add/reveal" action relevant data collected
328
328
  */
329
- ActionExtractor.getActions = function(bSibling, oSourceElementOverlay, oPlugin, bInvalidate) {
329
+ ActionExtractor.getActions = function(bSibling, oSourceElementOverlay, oPlugin, bInvalidate, oDesignTime) {
330
330
  var sSiblingOrChild = bSibling ? "asSibling" : "asChild";
331
331
  if (!bInvalidate && oSourceElementOverlay._mAddActions) {
332
332
  return Promise.resolve(oSourceElementOverlay._mAddActions[sSiblingOrChild]);
333
333
  }
334
334
 
335
- var oRevealActionsPromise = this._getRevealActions(bSibling, oSourceElementOverlay, oPlugin);
335
+ var oRevealActionsPromise = this._getRevealActions(bSibling, oSourceElementOverlay, oPlugin, oDesignTime);
336
336
  var oAddPropertyActionsPromise = this._getAddViaDelegateActions(bSibling, oSourceElementOverlay, oPlugin);
337
337
 
338
338
  return Promise.all([
@@ -359,6 +359,9 @@ sap.ui.define([
359
359
  return oOverlay._mAddActions && oOverlay._mAddActions[sSiblingOrChild];
360
360
  };
361
361
 
362
+ var mRevealCache = {};
363
+ var bIsSyncRegistered = true;
364
+
362
365
  /**
363
366
  * Returns the Reveal actions data (parameters + elements) for an Overlay
364
367
  * @param {boolean} bSibling - If source element overlay should be sibling or parent to the newly added fields
@@ -367,7 +370,15 @@ sap.ui.define([
367
370
  *
368
371
  * @returns {Promise<object>} Reveal action data
369
372
  */
370
- ActionExtractor._getRevealActions = function(bSibling, oSourceElementOverlay, oPlugin) {
373
+ ActionExtractor._getRevealActions = function(bSibling, oSourceElementOverlay, oPlugin, oDesignTime) {
374
+ if (bIsSyncRegistered) {
375
+ bIsSyncRegistered = false;
376
+ oDesignTime.attachEventOnce("synced", function() {
377
+ mRevealCache = {};
378
+ bIsSyncRegistered = true;
379
+ }, this);
380
+ }
381
+
371
382
  var mParents = AdditionalElementsUtils.getParents(bSibling, oSourceElementOverlay, oPlugin);
372
383
  var aParents = [mParents.parentOverlay];
373
384
  if (mParents.relevantContainer !== mParents.parent) {
@@ -379,7 +390,11 @@ sap.ui.define([
379
390
  }
380
391
  var aAggregationNames = [];
381
392
  if (mParents.parentOverlay) {
382
- aAggregationNames = mParents.parentOverlay.getAggregationOverlays().filter(function(oAggregationOverlay) {
393
+ var mCachedResult = mRevealCache[mParents.parentOverlay.getId()];
394
+ if (mCachedResult && bSibling) {
395
+ return mCachedResult;
396
+ }
397
+ aAggregationNames = mParents.parentOverlay.getChildren().filter(function(oAggregationOverlay) {
383
398
  return !oAggregationOverlay.getDesignTimeMetadata().isIgnored(mParents.parent);
384
399
  }).map(function(oAggregationOverlay) {
385
400
  return oAggregationOverlay.getAggregationName();
@@ -388,7 +403,13 @@ sap.ui.define([
388
403
  return oPreviousPromise.then(function(mReveal) {
389
404
  return getRevealActionFromAggregations(aParents, mReveal, sAggregationName, aAggregationNames, oPlugin);
390
405
  });
391
- }, Promise.resolve({}));
406
+ }, Promise.resolve({}))
407
+ .then(function(mAggregatedReveal) {
408
+ if (bSibling) {
409
+ mRevealCache[mParents.parentOverlay.getId()] = mAggregatedReveal;
410
+ }
411
+ return mAggregatedReveal;
412
+ });
392
413
  }
393
414
  return Promise.resolve({});
394
415
  };
@@ -20,6 +20,7 @@
20
20
  <Toolbar>
21
21
  <SearchField
22
22
  width="100%"
23
+ showSearchButton="false"
23
24
  liveChange="._updateModelFilter"/>
24
25
  <Button
25
26
  text=""
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.109.0
35
+ * @version 1.111.0
36
36
  * @constructor
37
37
  * @private
38
38
  * @since 1.44
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -380,7 +380,9 @@ sap.ui.define([
380
380
  if (mModelProperty.hideFromReveal) {
381
381
  return false;
382
382
  }
383
- _enhanceInvisibleElement(oInvisibleElement, mModelProperty);
383
+ if (bHasAddViaDelegate) {
384
+ _enhanceInvisibleElement(oInvisibleElement, mModelProperty);
385
+ }
384
386
  return true;
385
387
  }
386
388
  // if model property is not found, it depends if the hidden field is a removed custom field (AddViaDelegate case) or a standard field.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -75,7 +75,7 @@ sap.ui.define([
75
75
  * @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
76
76
  * @extends sap.ui.rta.plugin.Plugin
77
77
  * @author SAP SE
78
- * @version 1.109.0
78
+ * @version 1.111.0
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.44
@@ -234,7 +234,7 @@ sap.ui.define([
234
234
  var mActions;
235
235
  var aAllElements = [];
236
236
 
237
- return ActionExtractor.getActions(bOverlayIsSibling, oResponsibleElementOverlay, this)
237
+ return ActionExtractor.getActions(bOverlayIsSibling, oResponsibleElementOverlay, this, undefined, this.getDesignTime())
238
238
  .then(function(mRetrievedActions) {
239
239
  if (sAggregationName === "$$OnlyChildCustomField$$") {
240
240
  return [];
@@ -343,7 +343,7 @@ sap.ui.define([
343
343
  return false;
344
344
  }
345
345
 
346
- return ActionExtractor.getActions(bOverlayIsSibling, oOverlay, this, true)
346
+ return ActionExtractor.getActions(bOverlayIsSibling, oOverlay, this, true, this.getDesignTime())
347
347
  .then(function (mActions) {
348
348
  this.clearCachedElements();
349
349
  return Utils.doIfAllControlsAreAvailable([oOverlay, mParents.parentOverlay], function () {
@@ -397,7 +397,7 @@ sap.ui.define([
397
397
 
398
398
  this.clearExtensibilityInfo(bOverlayIsSibling);
399
399
 
400
- return ActionExtractor.getActions(bOverlayIsSibling, oElementOverlay, this)
400
+ return ActionExtractor.getActions(bOverlayIsSibling, oElementOverlay, this, undefined, this.getDesignTime())
401
401
  .then(function(mAllActions) {
402
402
  each(mAllActions, function(sAggregationName) {
403
403
  mActions = mAllActions[sAggregationName];
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * Helper object containing methods for the AdditionalElements plugin
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.109.0
18
+ * @version 1.111.0
19
19
  * @private
20
20
  * @since 1.94
21
21
  * @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -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.109.0
28
+ * @version 1.111.0
29
29
  * @private
30
30
  * @since 1.94
31
31
  * @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -110,7 +110,7 @@ sap.ui.define([
110
110
  * @class The AddIFrame allows trigger AddIFrame operations on the overlay.
111
111
  * @extends sap.ui.rta.plugin.BaseCreate
112
112
  * @author SAP SE
113
- * @version 1.109.0
113
+ * @version 1.111.0
114
114
  * @constructor
115
115
  * @private
116
116
  * @since 1.75
@@ -84,8 +84,13 @@
84
84
  <items>
85
85
  <Label id="sapUiRtaAddIFrameDialog_ParametersLabel" text="{/text/parametersLabel}" labelFor="sapUiRtaAddIFrameDialog_ParameterTable"
86
86
  class="sapUiRtaAddIFrameDialogParametersLabel" design="Bold"/>
87
- <SearchField id="sapUiRtaAddIFrameDialog_ParametersSearch" ariaLabelledBy="sapUiRtaAddIFrameDialog_ParameterSearchLabel"
88
- class="sapUiRtaAddIFrameDialogParametersSearch" search="onSearch" />
87
+ <SearchField
88
+ id="sapUiRtaAddIFrameDialog_ParametersSearch"
89
+ ariaLabelledBy="sapUiRtaAddIFrameDialog_ParameterSearchLabel"
90
+ class="sapUiRtaAddIFrameDialogParametersSearch"
91
+ liveChange="onLiveChange"
92
+ showSearchButton="false"
93
+ />
89
94
  <ScrollContainer height="12rem" vertical="true" >
90
95
  <Table id="sapUiRtaAddIFrameDialog_ParameterTable" items="{/parameters/value}" ariaLabelledBy="sapUiRtaAddIFrameDialog_ParametersLabel"
91
96
  class="sapUiSizeCompact sapUiRtaAddIFrameDialogParameterTable" sticky="ColumnHeaders">
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
  * @class Context - Dialog for IFrame settings in Runtime Authoring
114
114
  * @extends sap.ui.base.ManagedObject
115
115
  * @author SAP SE
116
- * @version 1.109.0
116
+ * @version 1.111.0
117
117
  * @constructor
118
118
  * @private
119
119
  * @since 1.78
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -129,11 +129,11 @@ sap.ui.define([
129
129
  },
130
130
 
131
131
  /**
132
- * Event handler for search
132
+ * Event handler for live change on the parameter search field
133
133
  * @param {sap.ui.base.Event} oEvent - Event
134
134
  */
135
- onSearch: function(oEvent) {
136
- var oFilter = new Filter("label", FilterOperator.Contains, oEvent.getParameter("query"));
135
+ onLiveChange: function(oEvent) {
136
+ var oFilter = new Filter("label", FilterOperator.Contains, oEvent.getParameter("newValue"));
137
137
  var oBinding = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_ParameterTable").getBinding("items");
138
138
  oBinding.filter([oFilter]);
139
139
  },
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @author SAP SE
26
26
  * @experimental Since 1.58
27
27
  * @since 1.58
28
- * @version 1.109.0
28
+ * @version 1.111.0
29
29
  * @private
30
30
  * @ui5-restricted
31
31
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @author SAP SE
32
32
  * @experimental Since 1.58
33
33
  * @since 1.58
34
- * @version 1.109.0
34
+ * @version 1.111.0
35
35
  * @private
36
36
  * @ui5-restricted
37
37
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @author SAP SE
45
45
  * @experimental Since 1.56
46
46
  * @since 1.56
47
- * @version 1.109.0
47
+ * @version 1.111.0
48
48
  * @private
49
49
  * @ui5-restricted
50
50
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @author SAP SE
29
29
  * @experimental Since 1.58
30
30
  * @since 1.58
31
- * @version 1.109.0
31
+ * @version 1.111.0
32
32
  * @private
33
33
  * @ui5-restricted
34
34
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -15,7 +15,7 @@ sap.ui.define(function () {
15
15
  * @author SAP SE
16
16
  * @experimental Since 1.58
17
17
  * @since 1.58
18
- * @version 1.109.0
18
+ * @version 1.111.0
19
19
  * @private
20
20
  * @ui5-restricted
21
21
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @author SAP SE
28
28
  * @experimental Since 1.106
29
29
  * @since 1.106
30
- * @version 1.109.0
30
+ * @version 1.111.0
31
31
  * @private
32
32
  * @ui5-restricted
33
33
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -12,7 +12,7 @@
12
12
  justify-content: center
13
13
  }
14
14
 
15
- &.sapMDialog > header.sapMDialogTitle {
15
+ &.sapMDialog > header .sapMDialogTitleGroup {
16
16
  &:focus::after {
17
17
  content: none;
18
18
  }
@@ -37,7 +37,7 @@
37
37
  border: 0.1875rem solid @_sap_ui_rta_Dialogs_BorderLightColor; //3px
38
38
  border-image: @_sap_ui_rta_Dialogs_BorderImage;
39
39
 
40
- & > .sapMDialogTitle:focus::after {
40
+ & header > .sapMDialogTitleGroup:focus::after {
41
41
  content: none;
42
42
  }
43
43
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  .sapUIRtaFieldRepositoryDialog {
9
9
 
10
- &.sapMDialog > header.sapMDialogTitle .sapMTitle {
10
+ &.sapMDialog > header .sapMDialogTitleGroup .sapMTitle {
11
11
  color: @_sap_ui_rta_FieldRepository_Title;
12
12
  }
13
13
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  @import "../../../../../sap/ui/core/themes/base/base.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  @import "../base/library.source.less";
@@ -0,0 +1,82 @@
1
+ <core:FragmentDefinition
2
+ xmlns="sap.m"
3
+ xmlns:core="sap.ui.core">
4
+ <Menu
5
+ id="sapUiRta_actions"
6
+ class="sapUiRtaToolbarVisualizationSelection">
7
+ <MenuItem
8
+ id="sapUiRta_translateMenu"
9
+ icon="sap-icon://translate"
10
+ visible="{= ${controls>/translation/visible}}"
11
+ enabled="{controls>/translation/enabled}"
12
+ tooltip="{i18n>BTN_TRANSLATE}"
13
+ text="{i18n>BTN_TRANSLATE}" >
14
+ <items>
15
+ <MenuItem
16
+ text="{i18n>BTN_OPEN_DOWNLOAD_TRANSLATION}"
17
+ press=".openDownloadTranslationDialog"
18
+ icon="sap-icon://download"/>
19
+ <MenuItem
20
+ text="{i18n>BTN_OPEN_UPLOAD_TRANSLATION}"
21
+ press=".openUploadTranslationDialog"
22
+ enabled="{= ${translation>/sourceLanguages}.length > 0}"
23
+ icon="sap-icon://upload"/>
24
+ </items>
25
+ </MenuItem>
26
+ <MenuItem
27
+ id="sapUiRta_appVariantMenu"
28
+ icon="sap-icon://BusinessSuiteInAppSymbols/icon-variant-configuration"
29
+ enabled="{controls>/appVariantMenu/enabled}"
30
+ visible="{= (${controls>/appVariantMenu/visible} &amp;&amp; ${controls>/modeSwitcher} === 'adaptation')}"
31
+ text="{i18n>BTN_MANAGE_APPS_TXT}" >
32
+ <items>
33
+ <MenuItem
34
+ id="sapUiRta_appVariantOverview"
35
+ icon="sap-icon://action-settings"
36
+ enabled="{controls>/appVariantMenu/overview/enabled}"
37
+ visible="{= (${controls>/appVariantMenu/overview/visible} &amp;&amp; ${controls>/modeSwitcher} === 'adaptation')}"
38
+ text="{i18n>BTN_MANAGE_APPS_ITEM}" >
39
+ <items>
40
+ <MenuItem
41
+ id="sapUiRta_keyUser"
42
+ press=".overviewForKeyUser"
43
+ icon="sap-icon://key-user-settings"
44
+ text="{i18n>MENU_ITEM_KEY_USER}" />
45
+ <MenuItem
46
+ id="sapUiRta_developer"
47
+ press=".overviewForDeveloper"
48
+ icon="sap-icon://developer-settings"
49
+ text="{i18n>MENU_ITEM_SAP_DEVELOPER}" />
50
+ </items>
51
+ </MenuItem>
52
+ <MenuItem
53
+ id="sapUiRta_manageApps"
54
+ icon="sap-icon://action-settings"
55
+ press=".manageApps"
56
+ enabled="{controls>/appVariantMenu/manageApps/enabled}"
57
+ visible="{= (${controls>/appVariantMenu/manageApps/visible} &amp;&amp; ${controls>/modeSwitcher} === 'adaptation')}"
58
+ text="{i18n>BTN_MANAGE_APPS_ITEM}" />
59
+ <MenuItem
60
+ id="sapUiRta_saveAs"
61
+ visible="{= (${controls>/appVariantMenu/saveAs/visible} &amp;&amp; ${controls>/modeSwitcher} === 'adaptation')}"
62
+ enabled="{parts: ['controls>/appVariantMenu/saveAs/enabled', 'versions>/displayedVersion'], formatter: '.formatSaveAsEnabled'}"
63
+ press=".saveAs"
64
+ icon="sap-icon://copy"
65
+ text="{i18n>BTN_SAVE_AS}" />
66
+ </items>
67
+ </MenuItem>
68
+ <MenuItem
69
+ id="sapUiRta_restore"
70
+ icon="sap-icon://reset"
71
+ enabled="{controls>/restore/enabled}"
72
+ visible="{= (${controls>/restore/visible} &amp;&amp; ((${controls>/modeSwitcher} === 'visualization') || (${controls>/modeSwitcher} === 'adaptation')))}"
73
+ press=".restore"
74
+ text="{i18n>BTN_RESTORE}" />
75
+ <MenuItem
76
+ id="sapUiRta_saveAsContextBasedAdaptation"
77
+ icon="sap-icon://save"
78
+ visible="{= (${controls>/contextBasedAdaptation/visible} &amp;&amp; ${controls>/modeSwitcher} === 'adaptation')}"
79
+ press=".saveAsContextBasedAdaptation"
80
+ text="{i18n>BTN_SAVE_AS}" />
81
+ </Menu>
82
+ </core:FragmentDefinition>