@openui5/sap.ui.rta 1.99.0 → 1.100.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 (87) hide show
  1. package/THIRDPARTY.txt +2 -2
  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 +6 -7
  6. package/src/sap/ui/rta/Utils.js +3 -5
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  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 +3 -2
  11. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
  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 +3 -2
  15. package/src/sap/ui/rta/command/Combine.js +1 -1
  16. package/src/sap/ui/rta/command/CommandFactory.js +3 -3
  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 +1 -1
  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 +1 -1
  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/Reveal.js +1 -1
  33. package/src/sap/ui/rta/command/Settings.js +1 -1
  34. package/src/sap/ui/rta/command/Split.js +1 -1
  35. package/src/sap/ui/rta/command/Stack.js +8 -7
  36. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  37. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  38. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  39. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  40. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  41. package/src/sap/ui/rta/library.js +2 -2
  42. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  43. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  44. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  45. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  46. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  47. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  48. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  49. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  50. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  51. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  52. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  53. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  54. package/src/sap/ui/rta/plugin/Remove.js +21 -8
  55. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  56. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  57. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  58. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  59. package/src/sap/ui/rta/plugin/Split.js +1 -1
  60. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  61. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  62. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  63. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  64. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  65. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  66. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  67. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  68. package/src/sap/ui/rta/service/Action.js +1 -1
  69. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  70. package/src/sap/ui/rta/service/Outline.js +1 -1
  71. package/src/sap/ui/rta/service/Property.js +1 -1
  72. package/src/sap/ui/rta/service/Selection.js +1 -1
  73. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +5 -11
  74. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  75. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  76. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  77. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  78. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  79. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  80. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  81. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  82. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  83. package/src/sap/ui/rta/util/PopupManager.js +33 -12
  84. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  85. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  86. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  87. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +4 -6
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @class The EasyRemove Plugin adds an Icon to an Overlay, which allows to trigger remove operations directly
24
24
  * @extends sap.ui.rta.plugin.Remove
25
25
  * @author SAP SE
26
- * @version 1.99.0
26
+ * @version 1.100.1
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.48
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @class
36
36
  * @extends sap.ui.rta.plugin.Plugin
37
37
  * @author SAP SE
38
- * @version 1.99.0
38
+ * @version 1.100.1
39
39
  * @constructor
40
40
  * @private
41
41
  * @since 1.90
@@ -69,7 +69,7 @@ function(
69
69
  * @extends sap.ui.dt.Plugin
70
70
  *
71
71
  * @author SAP SE
72
- * @version 1.99.0
72
+ * @version 1.100.1
73
73
  *
74
74
  * @constructor
75
75
  * @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.99.0
38
+ * @version 1.100.1
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.99.0
32
+ * @version 1.100.1
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.34
@@ -114,12 +114,25 @@ sap.ui.define([
114
114
  /**
115
115
  * Checks if Overlay control has a valid parent and if it is
116
116
  * not the last visible control in the aggregation
117
+ * The removal of the last element in the aggregation can
118
+ * be defined by the parameter 'removeLastElement' in the
119
+ * designtime of the aggregation
117
120
  *
118
121
  * @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - overlays to be removed
119
122
  * @return {boolean} Returns true if the control can be removed
120
123
  * @private
121
124
  */
122
125
  Remove.prototype._canBeRemovedFromAggregation = function(aElementOverlays) {
126
+ //Check if designtime allows removing last visible element
127
+ var fnCheckDesignTimeSettings = function (oOverlay) {
128
+ var oParentOverlay = oOverlay.getParentAggregationOverlay();
129
+ if (oParentOverlay) {
130
+ var oAction = this.getAction(oParentOverlay);
131
+ return !!(oAction && oAction.removeLastElement);
132
+ }
133
+ return false;
134
+ }.bind(this);
135
+
123
136
  var oOverlay = aElementOverlays[0];
124
137
  var oElement = oOverlay.getElement();
125
138
  var oParent = oElement.getParent();
@@ -130,17 +143,17 @@ sap.ui.define([
130
143
  if (!Array.isArray(aElements)) {
131
144
  return true;
132
145
  }
133
- if (aElements.length === 1) {
134
- return false;
135
- }
136
-
137
- // Fallback to 1 if no overlay is selected
146
+ // check if selected Overlays are the last visible elements in aggregation
138
147
  var iNumberOfSelectedOverlays = aElementOverlays.length;
139
148
  var aInvisibleElements = aElements.filter(function(oElement) {
140
149
  var oElementOverlay = OverlayRegistry.getOverlay(oElement);
141
150
  return !(oElementOverlay && oElementOverlay.getElementVisibility());
142
151
  });
143
- return !(aInvisibleElements.length === (aElements.length - iNumberOfSelectedOverlays));
152
+ var bIsLastVisibleElement = (aInvisibleElements.length + iNumberOfSelectedOverlays === aElements.length);
153
+ if (bIsLastVisibleElement) {
154
+ return fnCheckDesignTimeSettings(oOverlay);
155
+ }
156
+ return true;
144
157
  };
145
158
 
146
159
  /**
@@ -323,4 +336,4 @@ sap.ui.define([
323
336
  };
324
337
 
325
338
  return Remove;
326
- });
339
+ });
@@ -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.99.0
31
+ * @version 1.100.1
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * Provides Rename handling functionality
56
56
  *
57
57
  * @author SAP SE
58
- * @version 1.99.0
58
+ * @version 1.100.1
59
59
  *
60
60
  * @constructor
61
61
  * @private
@@ -30,7 +30,7 @@ function (
30
30
  * @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
31
31
  * @extends sap.ui.rta.plugin.Plugin
32
32
  * @author SAP SE
33
- * @version 1.99.0
33
+ * @version 1.100.1
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.34
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class The Settings allows trigger change of settings operations on the overlay
26
26
  * @extends sap.ui.rta.plugin.Plugin
27
27
  * @author SAP SE
28
- * @version 1.99.0
28
+ * @version 1.100.1
29
29
  * @constructor
30
30
  * @private
31
31
  * @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.99.0
26
+ * @version 1.100.1
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.46
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.rta.plugin.Plugin
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.99.0
34
+ * @version 1.100.1
35
35
  *
36
36
  * @constructor
37
37
  * @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.99.0
35
+ * @version 1.100.1
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.
@@ -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.99.0
35
+ * @version 1.100.1
36
36
  * @constructor
37
37
  * @private
38
38
  * @since 1.44
@@ -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.99.0
78
+ * @version 1.100.1
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.44
@@ -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.99.0
18
+ * @version 1.100.1
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.
@@ -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.99.0
28
+ * @version 1.100.1
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.
@@ -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.99.0
113
+ * @version 1.100.1
114
114
  * @constructor
115
115
  * @private
116
116
  * @since 1.75
@@ -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.99.0
116
+ * @version 1.100.1
117
117
  * @constructor
118
118
  * @private
119
119
  * @since 1.78
@@ -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.99.0
28
+ * @version 1.100.1
29
29
  * @private
30
30
  * @ui5-restricted
31
31
  *
@@ -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.99.0
34
+ * @version 1.100.1
35
35
  * @private
36
36
  * @ui5-restricted
37
37
  */
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @author SAP SE
43
43
  * @experimental Since 1.56
44
44
  * @since 1.56
45
- * @version 1.99.0
45
+ * @version 1.100.1
46
46
  * @private
47
47
  * @ui5-restricted
48
48
  */
@@ -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.99.0
31
+ * @version 1.100.1
32
32
  * @private
33
33
  * @ui5-restricted
34
34
  */
@@ -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.99.0
18
+ * @version 1.100.1
19
19
  * @private
20
20
  * @ui5-restricted
21
21
  */
@@ -53,25 +53,19 @@
53
53
  width: auto;
54
54
  display: block;
55
55
  position: absolute;
56
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark;
57
- outline-offset: -3px;
58
- box-shadow: @_sap_ui_rta_Overlay_BoxShadow;
56
+ box-shadow: inset 0 0 0 3px @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, @_sap_ui_rta_Overlay_BoxShadow;
57
+ background-color: fade(@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, 25%);
59
58
  animation: fadeOut linear 1.5s;
60
59
  animation-fill-mode: forwards;
61
60
 
62
61
  @keyframes fadeOut {
63
- 0% {
64
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark;
65
- outline-offset: -3px;
66
- }
67
62
  66%{
68
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark;
69
- outline-offset: -3px;
63
+ box-shadow: inset 0 0 0 3px @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, @_sap_ui_rta_Overlay_BoxShadow;
64
+ background-color: fade(@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, 25%);
70
65
  }
71
66
  100% {
72
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent;
73
- outline-offset: -3px;
74
67
  box-shadow: none;
68
+ background-color: fade(@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, 0%);
75
69
  }
76
70
  }
77
71
  }
@@ -39,7 +39,7 @@ function(
39
39
  * @extends sap.ui.rta.toolbar.Base
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.99.0
42
+ * @version 1.100.1
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.m.HBox
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.99.0
28
+ * @version 1.100.1
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.99.0
35
+ * @version 1.100.1
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.99.0
23
+ * @version 1.100.1
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.m.OverflowToolbarButton
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.99.0
26
+ * @version 1.100.1
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Base
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.99.0
25
+ * @version 1.100.1
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.99.0
23
+ * @version 1.100.1
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @class
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.99.0
41
+ * @version 1.100.1
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * Constructor for a new sap.ui.rta.util.PluginManager
67
67
  * @extends sap.ui.base.ManagedObject
68
68
  * @author SAP SE
69
- * @version 1.99.0
69
+ * @version 1.100.1
70
70
  * @constructor
71
71
  * @private
72
72
  * @since 1.86
@@ -8,6 +8,7 @@ sap.ui.define([
8
8
  "sap/ui/base/ManagedObject",
9
9
  "sap/m/InstanceManager",
10
10
  "sap/ui/dt/Overlay",
11
+ "sap/ui/dt/OverlayRegistry",
11
12
  "sap/ui/fl/Utils",
12
13
  "sap/ui/core/Component",
13
14
  "sap/ui/core/ComponentContainer",
@@ -20,6 +21,7 @@ sap.ui.define([
20
21
  ManagedObject,
21
22
  InstanceManager,
22
23
  Overlay,
24
+ OverlayRegistry,
23
25
  flUtils,
24
26
  Component,
25
27
  ComponentContainer,
@@ -40,7 +42,7 @@ sap.ui.define([
40
42
  * Constructor for a new sap.ui.rta.util.PopupManager
41
43
  * @extends sap.ui.base.ManagedObject
42
44
  * @author SAP SE
43
- * @version 1.99.0
45
+ * @version 1.100.1
44
46
  * @constructor
45
47
  * @private
46
48
  * @since 1.48
@@ -58,17 +60,17 @@ sap.ui.define([
58
60
  * To set the associated controls as an autoCloseArea for all Popover/Dialog open in RTA mode.
59
61
  * Needs to be filled before the popup is open.
60
62
  */
61
- autoCloseAreas: {type: "sap.ui.core.Control", multiple: true, singularName: "autoCloseArea"}
63
+ autoCloseAreas: { type: "sap.ui.core.Control", multiple: true, singularName: "autoCloseArea" }
62
64
  },
63
65
  events: {
64
66
  open: {
65
67
  parameters: {
66
- oControl: {type: "sap.ui.core.Control"}
68
+ oControl: { type: "sap.ui.core.Control" }
67
69
  }
68
70
  },
69
71
  close: {
70
72
  parameters: {
71
- oControl: {type: "sap.ui.core.Control"}
73
+ oControl: { type: "sap.ui.core.Control" }
72
74
  }
73
75
  }
74
76
  },
@@ -85,7 +87,7 @@ sap.ui.define([
85
87
  // create map for modal states
86
88
  this._oModalState = new Map();
87
89
  this._aPopupFilters = [this._isSupportedPopup.bind(this), this._isPopupAdaptable.bind(this)];
88
- this._aPopupFilters.forEach(function (fnFilter) {
90
+ this._aPopupFilters.forEach(function(fnFilter) {
89
91
  ZIndexManager.addPopupFilter(fnFilter);
90
92
  });
91
93
  };
@@ -214,14 +216,27 @@ sap.ui.define([
214
216
  }
215
217
  };
216
218
 
219
+ /**
220
+ * Setting visibility hidden on the other root element overlays
221
+ * keeps the focus on the current popover overlay
222
+ * @param {boolean} bVisible - Overlay visibility
223
+ * @param {sap.m.Popover} oPopover - Current popover
224
+ */
225
+ PopupManager.prototype._adjustRootOverlayVisibility = function(bVisible, oPopover) {
226
+ this.getRta()._oDesignTime.getRootElements().forEach(function(oRootElement) {
227
+ if (oRootElement.getId() !== oPopover.getId()) {
228
+ OverlayRegistry.getOverlay(oRootElement).setVisible(bVisible);
229
+ }
230
+ });
231
+ };
232
+
217
233
  /**
218
234
  * Attached to RTA mode change
219
235
  * @param {sap.ui.base.Event} oEvent The Event triggered by the mode change
220
236
  */
221
237
  PopupManager.prototype._onModeChange = function(oEvent) {
222
238
  var sNewMode = oEvent.getParameters().mode;
223
-
224
- var fnApplyFocusAndSetModal = function (sMode, oPopover) {
239
+ var fnApplyFocusAndSetModal = function(sMode, oPopover) {
225
240
  if (sMode === 'navigation') {
226
241
  // add focus handlers
227
242
  oPopover.oPopup[this._getFocusEventName("add")]();
@@ -325,13 +340,19 @@ sap.ui.define([
325
340
  *
326
341
  * @private
327
342
  */
328
- PopupManager.prototype._setModal = function (bSetModal, oPopupElement) {
343
+ PopupManager.prototype._setModal = function(bSetModal, oPopupElement) {
329
344
  var bOriginalModalState = this._oModalState.get(oPopupElement.oPopup);
330
- if (typeof bOriginalModalState !== "boolean" && bSetModal && this.getRta().getMode() === 'adaptation') {
345
+ if (typeof bOriginalModalState !== "boolean" && bSetModal && this.getRta().getMode() !== 'navigation') {
331
346
  this._oModalState.set(oPopupElement.oPopup, oPopupElement.oPopup.getModal());
347
+ if (this._isPopupAdaptable(oPopupElement)) {
348
+ this._adjustRootOverlayVisibility(false, oPopupElement);
349
+ }
332
350
  oPopupElement.oPopup.setModal(true);
333
351
  } else if (typeof bOriginalModalState === "boolean" && bSetModal === false) {
334
352
  oPopupElement.oPopup.setModal(bOriginalModalState);
353
+ if (this._isPopupAdaptable(oPopupElement)) {
354
+ this._adjustRootOverlayVisibility(true, oPopupElement);
355
+ }
335
356
  this._oModalState.delete(oPopupElement.oPopup);
336
357
  }
337
358
  };
@@ -395,7 +416,7 @@ sap.ui.define([
395
416
  if (!this.fnOriginalPopupOnAfterRendering) {
396
417
  this.fnOriginalPopupOnAfterRendering = oPopup.onAfterRendering;
397
418
  }
398
- oPopup.onAfterRendering = function () {
419
+ oPopup.onAfterRendering = function() {
399
420
  var vOriginalReturn = this.fnOriginalPopupOnAfterRendering.apply(oPopup, arguments);
400
421
  oPopup[this._getFocusEventName("remove")]();
401
422
  return vOriginalReturn;
@@ -433,7 +454,7 @@ sap.ui.define([
433
454
  return function(oPopupElement) {
434
455
  var vOriginalReturn = fnOriginalFunction.apply(InstanceManager, arguments);
435
456
  if (this._isSupportedPopup(oPopupElement)) {
436
- if (this._isPopupAdaptable(oPopupElement, false)
457
+ if (this._isPopupAdaptable(oPopupElement)
437
458
  && this.getRta()._oDesignTime) {
438
459
  this.getRta()._oDesignTime.removeRootElement(oPopupElement);
439
460
  }
@@ -597,7 +618,7 @@ sap.ui.define([
597
618
  PopupManager.prototype.exit = function() {
598
619
  this._restoreInstanceFunctions();
599
620
  delete this._oModalState;
600
- this._aPopupFilters.forEach(function (fnFilter) {
621
+ this._aPopupFilters.forEach(function(fnFilter) {
601
622
  ZIndexManager.removePopupFilter(fnFilter);
602
623
  });
603
624
  };
@@ -19,7 +19,7 @@ function(
19
19
  *
20
20
  * @extends sap.ui.core.EventBus
21
21
  * @author SAP SE
22
- * @version 1.99.0
22
+ * @version 1.100.1
23
23
  * @private
24
24
  * @since 1.56.0
25
25
  * @alias sap.ui.rta.util.ServiceEventBus
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
49
49
  * @author SAP SE
50
50
  * @since 1.84.0
51
- * @version 1.99.0
51
+ * @version 1.100.1
52
52
  * @private
53
53
  */
54
54
  var ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
26
26
  * @author SAP SE
27
27
  * @since 1.86.0
28
- * @version 1.99.0
28
+ * @version 1.100.1
29
29
  * @private
30
30
  */
31
31
  var ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
@@ -12,7 +12,6 @@ sap.ui.define([
12
12
  "sap/ui/core/Control",
13
13
  "sap/ui/dt/OverlayRegistry",
14
14
  "sap/ui/dt/ElementUtil",
15
- "sap/ui/events/KeyCodes",
16
15
  "sap/ui/fl/apply/_internal/changes/Utils",
17
16
  "sap/ui/fl/write/api/ChangesWriteAPI",
18
17
  "sap/ui/fl/write/api/PersistenceWriteAPI",
@@ -30,7 +29,6 @@ sap.ui.define([
30
29
  Control,
31
30
  OverlayRegistry,
32
31
  ElementUtil,
33
- KeyCodes,
34
32
  ChangesUtils,
35
33
  ChangesWriteAPI,
36
34
  PersistenceWriteAPI,
@@ -92,7 +90,7 @@ sap.ui.define([
92
90
  * @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
93
91
  * @author SAP SE
94
92
  * @since 1.84.0
95
- * @version 1.99.0
93
+ * @version 1.100.1
96
94
  * @private
97
95
  */
98
96
  var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
@@ -219,7 +217,7 @@ sap.ui.define([
219
217
  * Sets the selected command category and visualizes all changes for the given category
220
218
  *
221
219
  * @param {event} oEvent - Event
222
- * @returns {promise} - Promise of category change
220
+ * @returns {Promise} - Promise of category change
223
221
  */
224
222
  ChangeVisualization.prototype.onCommandCategorySelection = function(oEvent) {
225
223
  var sSelectedCommandCategory = oEvent.getParameter("item").getKey();
@@ -362,12 +360,12 @@ sap.ui.define([
362
360
  ChangeVisualization.prototype._collectChanges = function() {
363
361
  var oComponent = this._getComponent();
364
362
  var mPropertyBag = {
365
- oComponent: oComponent,
366
363
  selector: oComponent,
367
364
  invalidateCache: false,
368
365
  // includeCtrlVariants: true,
369
366
  currentLayer: Layer.CUSTOMER,
370
- includeDirtyChanges: true
367
+ includeDirtyChanges: true,
368
+ onlyCurrentVariants: true
371
369
  };
372
370
  return PersistenceWriteAPI._getUIChanges(mPropertyBag);
373
371
  };