@openui5/sap.ui.rta 1.136.0 → 1.136.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/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 +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- 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/ExtendControllerCommand.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/ManifestCommand.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/Resize.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 +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.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/command/manifest/AddLibrary.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/messagebundle.properties +4 -2
- 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 +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/ExtendControllerPlugin.js +16 -3
- 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 +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 +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/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 +8 -5
- 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 +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/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 +5 -3
- 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 +1 -1
- 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/guidedTour/GuidedTour.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.1",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.rta",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.136.
|
|
18
|
-
"@openui5/sap.ui.core": "1.136.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.136.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.136.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.136.
|
|
17
|
+
"@openui5/sap.m": "1.136.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.136.1",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.136.1",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.136.1",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.136.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.136.
|
|
9
|
+
<version>1.136.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
118
118
|
* @extends sap.ui.base.ManagedObject
|
|
119
119
|
* @author SAP SE
|
|
120
|
-
* @version 1.136.
|
|
120
|
+
* @version 1.136.1
|
|
121
121
|
* @constructor
|
|
122
122
|
* @private
|
|
123
123
|
* @since 1.30
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -22,14 +22,14 @@ sap.ui.define([
|
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.ui.rta
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.136.
|
|
25
|
+
* @version 1.136.1
|
|
26
26
|
* @since 1.50
|
|
27
27
|
* @private
|
|
28
28
|
*/
|
|
29
29
|
var thisLib = Lib.init({
|
|
30
30
|
name: "sap.ui.rta",
|
|
31
31
|
apiVersion: 2,
|
|
32
|
-
version: "1.136.
|
|
32
|
+
version: "1.136.1",
|
|
33
33
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
34
34
|
types: [],
|
|
35
35
|
interfaces: [],
|
|
@@ -43,10 +43,12 @@ CTX_RENAME=Rename
|
|
|
43
43
|
CTX_SETTINGS=Settings
|
|
44
44
|
#XMIT: Context Menu Entry 'AddXML'
|
|
45
45
|
CTX_ADDXML=Add: Fragment
|
|
46
|
-
#XMIT:
|
|
46
|
+
#XMIT: Plugin explanation text for when control is in reuse component
|
|
47
47
|
CTX_DISABLED_REUSE=This action is disabled because the controls are part of a reusable component.
|
|
48
|
-
#XMIT:
|
|
48
|
+
#XMIT: Plugin explanation text for when the control has no stable ID
|
|
49
49
|
CTX_DISABLED_NO_STABLE_ID=This action is disabled because the control or its parent control has an unstable ID.
|
|
50
|
+
#XMIT: Plugin explanation text for when control is not in an async view
|
|
51
|
+
CTX_DISABLED_NOT_ASYNC=This action is disabled because the controls are part of a synchronous view.
|
|
50
52
|
#XMIT: Context Menu Entry 'Switch Views' for variants
|
|
51
53
|
CTX_VARIANT_SWITCH=Switch Views
|
|
52
54
|
#XMIT: Context Menu Entry 'Save'
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The CreateContainer allows trigger CreateContainer operations on the overlay
|
|
26
26
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.136.
|
|
28
|
+
* @version 1.136.1
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.34
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/Lib",
|
|
9
9
|
"sap/ui/dt/Util",
|
|
10
|
+
"sap/ui/fl/Utils",
|
|
10
11
|
"sap/ui/rta/plugin/Plugin"
|
|
11
12
|
], function(
|
|
12
13
|
Lib,
|
|
13
14
|
DtUtil,
|
|
15
|
+
Utils,
|
|
14
16
|
Plugin
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
@@ -30,7 +32,7 @@ sap.ui.define([
|
|
|
30
32
|
* @class
|
|
31
33
|
* @extends sap.ui.rta.plugin.Plugin
|
|
32
34
|
* @author SAP SE
|
|
33
|
-
* @version 1.136.
|
|
35
|
+
* @version 1.136.1
|
|
34
36
|
* @constructor
|
|
35
37
|
* @private
|
|
36
38
|
* @since 1.134
|
|
@@ -52,6 +54,11 @@ sap.ui.define([
|
|
|
52
54
|
|
|
53
55
|
const FLEX_CHANGE_TYPE = "codeExt";
|
|
54
56
|
|
|
57
|
+
function isControlInAsyncView(oOverlay) {
|
|
58
|
+
// Currently there is no better way to get this information. When this changes, this code must be adapted.
|
|
59
|
+
return !!Utils.getViewForControl(oOverlay.getElement())?.oAsyncState;
|
|
60
|
+
}
|
|
61
|
+
|
|
55
62
|
/**
|
|
56
63
|
* Check if the given overlay should be editable.
|
|
57
64
|
*
|
|
@@ -70,8 +77,9 @@ sap.ui.define([
|
|
|
70
77
|
* @public
|
|
71
78
|
*/
|
|
72
79
|
ExtendControllerPlugin.prototype.isEnabled = function(aElementOverlays) {
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
return aElementOverlays.length === 1
|
|
81
|
+
&& !this.isInReuseComponentOnS4HanaCloud(aElementOverlays[0])
|
|
82
|
+
&& isControlInAsyncView(aElementOverlays[0]);
|
|
75
83
|
};
|
|
76
84
|
|
|
77
85
|
/**
|
|
@@ -98,6 +106,11 @@ sap.ui.define([
|
|
|
98
106
|
if (this.isInReuseComponentOnS4HanaCloud(oOverlay)) {
|
|
99
107
|
sText += ` (${Lib.getResourceBundleFor("sap.ui.rta").getText("CTX_DISABLED_REUSE")})`;
|
|
100
108
|
}
|
|
109
|
+
// The case where the control is not in an async view
|
|
110
|
+
// is not enabled and has a special text in parenthesis on the context menu
|
|
111
|
+
if (!isControlInAsyncView(oOverlay)) {
|
|
112
|
+
sText += ` (${Lib.getResourceBundleFor("sap.ui.rta").getText("CTX_DISABLED_NOT_ASYNC")})`;
|
|
113
|
+
}
|
|
101
114
|
return sText;
|
|
102
115
|
};
|
|
103
116
|
|