@openui5/sap.ui.rta 1.140.0 → 1.141.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 +1 -1
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +6 -8
- package/src/sap/ui/rta/command/AddProperty.js +2 -2
- package/src/sap/ui/rta/command/AddXML.js +3 -3
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +17 -19
- package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +3 -4
- package/src/sap/ui/rta/command/BindProperty.js +4 -4
- package/src/sap/ui/rta/command/Combine.js +4 -4
- package/src/sap/ui/rta/command/CommandFactory.js +55 -77
- package/src/sap/ui/rta/command/CompositeCommand.js +19 -39
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +16 -20
- package/src/sap/ui/rta/command/ControlVariantSave.js +19 -28
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +38 -43
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +15 -26
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +29 -50
- package/src/sap/ui/rta/command/CreateContainer.js +3 -3
- package/src/sap/ui/rta/command/CustomAdd.js +2 -2
- package/src/sap/ui/rta/command/ExtendControllerCommand.js +2 -4
- package/src/sap/ui/rta/command/FlexCommand.js +34 -44
- package/src/sap/ui/rta/command/LREPSerializer.js +20 -23
- package/src/sap/ui/rta/command/LocalReset.js +3 -3
- package/src/sap/ui/rta/command/ManifestCommand.js +1 -1
- package/src/sap/ui/rta/command/Move.js +5 -5
- package/src/sap/ui/rta/command/Property.js +3 -3
- package/src/sap/ui/rta/command/Remove.js +4 -4
- package/src/sap/ui/rta/command/Rename.js +3 -3
- package/src/sap/ui/rta/command/Resize.js +2 -2
- package/src/sap/ui/rta/command/Reveal.js +3 -3
- package/src/sap/ui/rta/command/Settings.js +2 -2
- package/src/sap/ui/rta/command/Split.js +3 -3
- package/src/sap/ui/rta/command/Stack.js +51 -55
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +10 -10
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +4 -4
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +11 -11
- package/src/sap/ui/rta/command/manifest/AddLibrary.js +4 -8
- package/src/sap/ui/rta/enablement/elementActionTest.js +21 -9
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle_da.properties +1 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +1 -1
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +65 -87
- 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/ExtendControllerPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +26 -35
- 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 +1 -1
- package/src/sap/ui/rta/plugin/Resize.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 +7 -6
- 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/AdditionalElementsAnalyzer.js +17 -5
- 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/annotations/AnnotationChangeDialog.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.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/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +2 -4
- 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/service/SupportTools.js +1 -1
- 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/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +3 -3
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.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 +1 -1
- package/src/sap/ui/rta/util/changeVisualization/resolveBinding.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
|
@@ -9,6 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
"sap/base/util/ObjectPath",
|
|
10
10
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
11
11
|
"sap/ui/dt/ElementUtil",
|
|
12
|
+
"sap/ui/dt/OverlayRegistry",
|
|
12
13
|
"sap/ui/fl/apply/api/DelegateMediatorAPI",
|
|
13
14
|
"sap/ui/rta/util/BindingsExtractor"
|
|
14
15
|
], function(
|
|
@@ -16,6 +17,7 @@ sap.ui.define([
|
|
|
16
17
|
ObjectPath,
|
|
17
18
|
JsControlTreeModifier,
|
|
18
19
|
ElementUtil,
|
|
20
|
+
OverlayRegistry,
|
|
19
21
|
DelegateMediatorAPI,
|
|
20
22
|
BindingsExtractor
|
|
21
23
|
) {
|
|
@@ -136,13 +138,24 @@ sap.ui.define([
|
|
|
136
138
|
};
|
|
137
139
|
}
|
|
138
140
|
|
|
141
|
+
function getLabel(oElement, mAction) {
|
|
142
|
+
const oOverlay = OverlayRegistry.getOverlay(oElement);
|
|
143
|
+
// Try different label sources in the following order:
|
|
144
|
+
// 1) Action.getLabel
|
|
145
|
+
// 2) DTMetadata.getLabel
|
|
146
|
+
// 3) The fallbacks in ElementUtil.getLabelForElement
|
|
147
|
+
return (mAction.getLabel || !oOverlay)
|
|
148
|
+
? ElementUtil.getLabelForElement(oElement, mAction.getLabel)
|
|
149
|
+
: oOverlay.getDesignTimeMetadata().getLabel(oElement);
|
|
150
|
+
}
|
|
151
|
+
|
|
139
152
|
function elementToAdditionalElementInfo(mData) {
|
|
140
153
|
const oElement = mData.element;
|
|
141
|
-
const
|
|
154
|
+
const sLabel = getLabel(oElement, mData.action);
|
|
142
155
|
return {
|
|
143
156
|
selected: false,
|
|
144
|
-
label: oElement.__label ||
|
|
145
|
-
tooltip: oElement.__tooltip ||
|
|
157
|
+
label: oElement.__label || sLabel,
|
|
158
|
+
tooltip: oElement.__tooltip || sLabel || oElement.__bindingPath,
|
|
146
159
|
parentPropertyName: oElement.__parentPropertyName ? oElement.__parentPropertyName : "",
|
|
147
160
|
duplicateName: oElement.__duplicateName ? oElement.__duplicateName : false,
|
|
148
161
|
originalLabel: oElement.__renamedLabel && oElement.__label !== oElement.__originalLabel ? oElement.__originalLabel : "",
|
|
@@ -431,8 +444,7 @@ sap.ui.define([
|
|
|
431
444
|
aInvisibleElements.forEach(function(mInvisibleElement) {
|
|
432
445
|
const oInvisibleElement = mInvisibleElement.element;
|
|
433
446
|
const mRevealAction = mInvisibleElement.action;
|
|
434
|
-
|
|
435
|
-
oInvisibleElement.__label = ElementUtil.getLabelForElement(oInvisibleElement, mRevealAction.getLabel);
|
|
447
|
+
oInvisibleElement.__label = getLabel(oInvisibleElement, mRevealAction);
|
|
436
448
|
|
|
437
449
|
const bIncludeElement = enhanceByMetadata(
|
|
438
450
|
oElement, sAggregationName, mInvisibleElement, mActions, aRepresentedProperties, aProperties
|
|
@@ -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.
|
|
122
|
+
* @version 1.141.1
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
120
120
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.141.1
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.75
|
|
@@ -8,7 +8,6 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/base/ManagedObject",
|
|
9
9
|
"sap/ui/core/Element",
|
|
10
10
|
"sap/ui/core/Fragment",
|
|
11
|
-
"sap/ui/dt/ElementUtil",
|
|
12
11
|
"sap/ui/model/json/JSONModel",
|
|
13
12
|
"sap/ui/model/resource/ResourceModel",
|
|
14
13
|
"sap/ui/rta/util/validateText",
|
|
@@ -17,7 +16,6 @@ sap.ui.define([
|
|
|
17
16
|
ManagedObject,
|
|
18
17
|
Element,
|
|
19
18
|
Fragment,
|
|
20
|
-
ElementUtil,
|
|
21
19
|
JSONModel,
|
|
22
20
|
ResourceModel,
|
|
23
21
|
validateText,
|
|
@@ -29,7 +27,7 @@ sap.ui.define([
|
|
|
29
27
|
* @class Constructor for a new sap.ui.rta.plugin.rename.RenameDialog.
|
|
30
28
|
* @extends sap.ui.base.ManagedObject
|
|
31
29
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
30
|
+
* @version 1.141.1
|
|
33
31
|
* @constructor
|
|
34
32
|
* @since 1.136
|
|
35
33
|
* @private
|
|
@@ -66,7 +64,7 @@ sap.ui.define([
|
|
|
66
64
|
}
|
|
67
65
|
const oOverlay = mPropertyBag.overlay;
|
|
68
66
|
const oElement = oOverlay.getElement();
|
|
69
|
-
return
|
|
67
|
+
return oOverlay.getDesignTimeMetadata().getLabel(oElement);
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
/**
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* Constructor for a new sap.ui.rta.util.PopupManager
|
|
76
76
|
* @extends sap.ui.base.ManagedObject
|
|
77
77
|
* @author SAP SE
|
|
78
|
-
* @version 1.
|
|
78
|
+
* @version 1.141.1
|
|
79
79
|
* @constructor
|
|
80
80
|
* @private
|
|
81
81
|
* @since 1.48
|
|
@@ -491,8 +491,8 @@ sap.ui.define([
|
|
|
491
491
|
&& this.getRta()._oDesignTime) {
|
|
492
492
|
this.getRta()._oDesignTime.removeRootElement(oPopupElement);
|
|
493
493
|
}
|
|
494
|
-
// remove the Modal state from the map
|
|
495
|
-
this._oModalState
|
|
494
|
+
// remove the Modal state from the map (can be undefined if RTA has just been stopped)
|
|
495
|
+
this._oModalState?.delete(oPopupElement.oPopup);
|
|
496
496
|
// PopupManager internal method
|
|
497
497
|
this.fireClose(oPopupElement);
|
|
498
498
|
}
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
|
|
47
47
|
* @author SAP SE
|
|
48
48
|
* @since 1.84.0
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.141.1
|
|
50
50
|
* @private
|
|
51
51
|
*/
|
|
52
52
|
const ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
|
|
38
38
|
* @author SAP SE
|
|
39
39
|
* @since 1.86.0
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.141.1
|
|
41
41
|
* @private
|
|
42
42
|
*/
|
|
43
43
|
const ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
* @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
|
|
85
85
|
* @author SAP SE
|
|
86
86
|
* @since 1.84.0
|
|
87
|
-
* @version 1.
|
|
87
|
+
* @version 1.141.1
|
|
88
88
|
* @private
|
|
89
89
|
*/
|
|
90
90
|
const ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
|
|
@@ -180,7 +180,7 @@ sap.ui.define([
|
|
|
180
180
|
title: oTextResources.getText("TIT_TOUR_GENERAL_STEP_CONTEXT_BASED_ADAPTATIONS_TITLE"),
|
|
181
181
|
description: oTextResources.getText("TXT_TOUR_GENERAL_STEP_CONTEXT_BASED_ADAPTATIONS_DESCRIPTION"),
|
|
182
182
|
listContent: [],
|
|
183
|
-
markerSelector: "sapUIRta_toolbar_fragment--
|
|
183
|
+
markerSelector: "sapUIRta_toolbar_fragment--sapUiRta_contextBasedAdaptationMenu"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
title: oTextResources.getText("TIT_TOUR_GENERAL_STEP_FEEDBACK_BUTTON_TITLE"),
|