@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.
- package/THIRDPARTY.txt +2 -2
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +6 -7
- package/src/sap/ui/rta/Utils.js +3 -5
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +3 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +3 -2
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +3 -3
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +8 -7
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +2 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +21 -8
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +5 -11
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +33 -12
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- 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.
|
|
26
|
+
* @version 1.100.1
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.48
|
|
@@ -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.
|
|
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
|
|
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
|
-
|
|
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
|
+
});
|
|
@@ -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.
|
|
33
|
+
* @version 1.100.1
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -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.
|
|
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.
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
113
|
+
* @version 1.100.1
|
|
114
114
|
* @constructor
|
|
115
115
|
* @private
|
|
116
116
|
* @since 1.75
|
|
@@ -53,25 +53,19 @@
|
|
|
53
53
|
width: auto;
|
|
54
54
|
display: block;
|
|
55
55
|
position: absolute;
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
69
|
-
|
|
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
|
}
|
|
@@ -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.
|
|
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
|
|
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
|
|
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()
|
|
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
|
|
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
|
|
621
|
+
this._aPopupFilters.forEach(function(fnFilter) {
|
|
601
622
|
ZIndexManager.removePopupFilter(fnFilter);
|
|
602
623
|
});
|
|
603
624
|
};
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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 {
|
|
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
|
};
|