@openui5/sap.ui.rta 1.132.1 → 1.134.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.
- package/.reuse/dep5 +2 -9
- package/LICENSES/LicenseRef-Unicode-3.0.txt +39 -0
- package/THIRDPARTY.txt +45 -78
- 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 +5 -7
- package/src/sap/ui/rta/Utils.js +12 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +0 -4
- package/src/sap/ui/rta/appVariant/Feature.js +15 -21
- package/src/sap/ui/rta/appVariant/Utils.js +31 -35
- 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/AppDescriptorCommand.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/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/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/appDescriptor/AddLibrary.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/enablement/elementActionTest.js +1 -7
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +6 -4
- package/src/sap/ui/rta/messagebundle_ar.properties +2 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +3 -2
- package/src/sap/ui/rta/messagebundle_ca.properties +2 -1
- package/src/sap/ui/rta/messagebundle_cnr.properties +3 -2
- package/src/sap/ui/rta/messagebundle_cs.properties +2 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +2 -1
- package/src/sap/ui/rta/messagebundle_da.properties +3 -2
- package/src/sap/ui/rta/messagebundle_de.properties +2 -1
- package/src/sap/ui/rta/messagebundle_el.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -1
- package/src/sap/ui/rta/messagebundle_es.properties +2 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -2
- package/src/sap/ui/rta/messagebundle_et.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +2 -1
- package/src/sap/ui/rta/messagebundle_id.properties +2 -1
- package/src/sap/ui/rta/messagebundle_it.properties +2 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +2 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +2 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +2 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +2 -1
- package/src/sap/ui/rta/messagebundle_mk.properties +3 -2
- package/src/sap/ui/rta/messagebundle_ms.properties +2 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_no.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +3 -2
- package/src/sap/ui/rta/messagebundle_sk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sr.properties +3 -2
- package/src/sap/ui/rta/messagebundle_sv.properties +2 -1
- package/src/sap/ui/rta/messagebundle_th.properties +2 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +2 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +2 -1
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +9 -3
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +168 -0
- 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/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +5 -4
- 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/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
- 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.fragment.xml +30 -47
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +30 -41
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +89 -32
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +19 -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/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +12 -0
- 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 +6 -4
- 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 +7 -4
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +5 -7
- 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/adaptationStarter.js +3 -3
- 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/isReuseComponent.js +44 -0
- package/src/sap/ui/rta/util/validateText.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +12 -7
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
- package/LICENSES/Unicode-DFS-2015.txt +0 -51
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @class
|
|
50
50
|
* @extends sap.ui.rta.plugin.Plugin
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.134.0
|
|
53
53
|
* @constructor
|
|
54
54
|
* @private
|
|
55
55
|
* @since 1.78
|
|
@@ -90,6 +90,11 @@ sap.ui.define([
|
|
|
90
90
|
return DesignTime.isDesignModeEnabled();
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
function checkViewId(oElementOverlay) {
|
|
94
|
+
const oView = getExtensionPointList(oElementOverlay.getElement())[0]?.view;
|
|
95
|
+
return oView && FlUtils.checkControlId(oView);
|
|
96
|
+
}
|
|
97
|
+
|
|
93
98
|
AddXMLAtExtensionPoint.prototype.bAppDescriptorCommandAlreadyAvailable = false;
|
|
94
99
|
|
|
95
100
|
/**
|
|
@@ -104,7 +109,7 @@ sap.ui.define([
|
|
|
104
109
|
if (isDesignMode()) {
|
|
105
110
|
var oElement = oOverlay.getElement();
|
|
106
111
|
return this.hasChangeHandler(FLEX_CHANGE_TYPE, oElement).then(function(bHasChangeHandler) {
|
|
107
|
-
return bHasChangeHandler && hasExtensionPoints(oElement);
|
|
112
|
+
return bHasChangeHandler && hasExtensionPoints(oElement) && checkViewId(oOverlay);
|
|
108
113
|
});
|
|
109
114
|
}
|
|
110
115
|
return Promise.resolve(false);
|
|
@@ -117,7 +122,8 @@ sap.ui.define([
|
|
|
117
122
|
* @public
|
|
118
123
|
*/
|
|
119
124
|
AddXMLAtExtensionPoint.prototype.isEnabled = function(aElementOverlays) {
|
|
120
|
-
|
|
125
|
+
const bEnabled = aElementOverlays.length === 1;
|
|
126
|
+
return bEnabled && !!checkViewId(aElementOverlays[0]);
|
|
121
127
|
};
|
|
122
128
|
|
|
123
129
|
AddXMLAtExtensionPoint.prototype.isAvailable = function(aOverlays) {
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/dt/Util",
|
|
9
|
+
"sap/ui/fl/Utils",
|
|
10
|
+
"sap/ui/rta/Utils",
|
|
11
|
+
"sap/ui/rta/plugin/Plugin",
|
|
12
|
+
"sap/ui/rta/util/isReuseComponent"
|
|
13
|
+
], function(
|
|
14
|
+
DtUtil,
|
|
15
|
+
FlUtils,
|
|
16
|
+
RtaUtils,
|
|
17
|
+
Plugin,
|
|
18
|
+
isReuseComponent
|
|
19
|
+
) {
|
|
20
|
+
"use strict";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Callback function responsible for fragment handling.
|
|
24
|
+
*
|
|
25
|
+
* The fragment handling function needs to be provided from outside of key user adaptation. It is called during the execution of the
|
|
26
|
+
* plugin handler with the target overlay.
|
|
27
|
+
*
|
|
28
|
+
* @typedef {function} sap.ui.rta.plugin.AddXML.fragmentHandler
|
|
29
|
+
* @since 1.134
|
|
30
|
+
* @param {sap.ui.dt.ElementOverlay} oOverlay - Target overlay for where XML will be added
|
|
31
|
+
* @param {string[]} aExcludedAggregation - Aggregations that should be excluded from the fragment handling
|
|
32
|
+
* @returns {Promise<{fragmentPath: string, fragment: string, targetAggregation: string, index: number}>} Object wrapped in a Promise containing values that are relevant for the <code>addXML</code> command
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Constructor for a new AddXML plugin.
|
|
36
|
+
* Adds the content of the XML fragment
|
|
37
|
+
* The fragment handler <code>{@link sap.ui.rta.plugin.AddXML.fragmentHandler FragmentHandler}</code>
|
|
38
|
+
* is a callback function that needs to be passed on instantiation of the plugin or alternatively into the
|
|
39
|
+
* propertyBag when the handler function is called.
|
|
40
|
+
*
|
|
41
|
+
* @class
|
|
42
|
+
* @extends sap.ui.rta.plugin.Plugin
|
|
43
|
+
* @author SAP SE
|
|
44
|
+
* @version 1.134.0
|
|
45
|
+
* @constructor
|
|
46
|
+
* @private
|
|
47
|
+
* @since 1.134
|
|
48
|
+
* @alias sap.ui.rta.plugin.AddXMLPlugin
|
|
49
|
+
*/
|
|
50
|
+
const AddXML = Plugin.extend("sap.ui.rta.plugin.AddXML", /** @lends sap.ui.rta.plugin.AddXMLPlugin.prototype */ {
|
|
51
|
+
metadata: {
|
|
52
|
+
library: "sap.ui.rta",
|
|
53
|
+
properties: {
|
|
54
|
+
fragmentHandler: {
|
|
55
|
+
type: "function"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
associations: {},
|
|
59
|
+
events: {}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const FLEX_CHANGE_TYPE = "addXML";
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if the given overlay is editable.
|
|
67
|
+
*
|
|
68
|
+
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
|
|
69
|
+
* @returns {Promise<boolean>} <code>true</code> when editable wrapped in a promise
|
|
70
|
+
* @private
|
|
71
|
+
*/
|
|
72
|
+
AddXML.prototype._isEditable = async function(oOverlay) {
|
|
73
|
+
// Action should be available by default
|
|
74
|
+
const oAddXMLAction = this.getAction(oOverlay);
|
|
75
|
+
const oComponent = FlUtils.getComponentForControl(oOverlay.getElement());
|
|
76
|
+
const bIsS4HanaCloud = RtaUtils.isS4HanaCloud();
|
|
77
|
+
if (
|
|
78
|
+
oAddXMLAction === null ||
|
|
79
|
+
!this.hasStableId(oOverlay) ||
|
|
80
|
+
(bIsS4HanaCloud && isReuseComponent(oComponent))
|
|
81
|
+
) {
|
|
82
|
+
return Promise.resolve(false);
|
|
83
|
+
}
|
|
84
|
+
const bHasChangeHandler = await this.hasChangeHandler(FLEX_CHANGE_TYPE, oOverlay.getElement());
|
|
85
|
+
return bHasChangeHandler;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Checks if AddXML is enabled for oOverlay
|
|
90
|
+
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
|
|
91
|
+
* @returns {boolean} <code>true</code> if enabled
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
AddXML.prototype.isEnabled = function(aElementOverlays) {
|
|
95
|
+
const bEnabled = aElementOverlays.length === 1;
|
|
96
|
+
return bEnabled;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
function handleAddXmlCommand(mAddXmlData, oElement) {
|
|
100
|
+
const mAddXmlSettings = {
|
|
101
|
+
fragment: mAddXmlData.fragment,
|
|
102
|
+
fragmentPath: mAddXmlData.fragmentPath,
|
|
103
|
+
targetAggregation: mAddXmlData.targetAggregation,
|
|
104
|
+
index: mAddXmlData.index
|
|
105
|
+
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
return this.getCommandFactory().getCommandFor(
|
|
109
|
+
oElement,
|
|
110
|
+
FLEX_CHANGE_TYPE,
|
|
111
|
+
mAddXmlSettings
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Triggers the plugin execution.
|
|
117
|
+
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
|
|
118
|
+
* @param {Object} mPropertyBag - Property bag
|
|
119
|
+
* @param {sap.ui.rta.plugin.AddXML.fragmentHandler} [mPropertyBag.fragmentHandler] - Handler function for fragment handling. The fragment handler is a callback function that needs to be passed here into the <code>propertyBag</code> or alternatively on instantiation of the plugin.
|
|
120
|
+
*/
|
|
121
|
+
AddXML.prototype.handler = async function(aElementOverlays, mPropertyBag) {
|
|
122
|
+
try {
|
|
123
|
+
const fnFragmentHandler = mPropertyBag.fragmentHandler || this.getFragmentHandler();
|
|
124
|
+
if (!fnFragmentHandler) {
|
|
125
|
+
throw Error("Fragment handler function is not available in the handler");
|
|
126
|
+
}
|
|
127
|
+
const oOverlay = aElementOverlays[0];
|
|
128
|
+
|
|
129
|
+
const aExcludedAggregation = this.getAction(oOverlay)?.excludedAggregations || [];
|
|
130
|
+
|
|
131
|
+
const mAddXmlData = await fnFragmentHandler(oOverlay, aExcludedAggregation);
|
|
132
|
+
|
|
133
|
+
const oAddXmlCommand = await handleAddXmlCommand.call(this, mAddXmlData, oOverlay.getElement());
|
|
134
|
+
this.fireElementModified({
|
|
135
|
+
command: oAddXmlCommand
|
|
136
|
+
});
|
|
137
|
+
} catch (vError) {
|
|
138
|
+
throw DtUtil.propagateError(
|
|
139
|
+
vError,
|
|
140
|
+
"AddXML#handler",
|
|
141
|
+
"Error occurred in AddXML handler function",
|
|
142
|
+
"sap.ui.rta"
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Retrieves the context menu item for the action.
|
|
149
|
+
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
|
|
150
|
+
* @returns {object[]} Array of the items with required data
|
|
151
|
+
*/
|
|
152
|
+
AddXML.prototype.getMenuItems = function(aElementOverlays) {
|
|
153
|
+
return this._getMenuItems(aElementOverlays, {
|
|
154
|
+
pluginId: "CTX_ADDXML",
|
|
155
|
+
icon: "sap-icon://attachment-html"
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Gets the name of the action related to this plugin.
|
|
161
|
+
* @returns {string} Action name
|
|
162
|
+
*/
|
|
163
|
+
AddXML.prototype.getActionName = function() {
|
|
164
|
+
return "addXML";
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
return AddXML;
|
|
168
|
+
});
|
|
@@ -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.
|
|
28
|
+
* @version 1.134.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.34
|
|
@@ -39,12 +39,11 @@ sap.ui.define([
|
|
|
39
39
|
CTX_GROUP_FIELDS: 90,
|
|
40
40
|
CTX_UNGROUP_FIELDS: 100,
|
|
41
41
|
CTX_ADDXML_AT_EXTENSIONPOINT: 105,
|
|
42
|
+
CTX_ADDXML: 106,
|
|
42
43
|
// Settings ranks go up 1 by 1 for each setting
|
|
43
44
|
CTX_SETTINGS: 110,
|
|
44
45
|
// IFrame ranks go up 1 by 1 for each possible child target
|
|
45
46
|
CTX_CREATE_SIBLING_IFRAME: 130,
|
|
46
|
-
// Annotation ranks go up 1 by 1 for each action
|
|
47
|
-
CTX_ANNOTATION: 140,
|
|
48
47
|
// Variant types are mutually exclusive
|
|
49
48
|
CTX_VARIANT_SET_TITLE: 200,
|
|
50
49
|
CTX_COMP_VARIANT_RENAME: 200,
|
|
@@ -56,7 +55,9 @@ sap.ui.define([
|
|
|
56
55
|
CTX_COMP_VARIANT_MANAGE: 230,
|
|
57
56
|
CTX_VARIANT_SWITCH_SUBMENU: 240,
|
|
58
57
|
CTX_COMP_VARIANT_SWITCH: 240,
|
|
59
|
-
CTX_COMP_VARIANT_CONTENT: 250
|
|
58
|
+
CTX_COMP_VARIANT_CONTENT: 250,
|
|
59
|
+
// Annotation ranks go up 1 by 1 for each action
|
|
60
|
+
CTX_ANNOTATION: 300
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
function _handleEditableByPlugin(mPropertyBag, aPromises, oSourceElementOverlay) {
|
|
@@ -105,7 +106,7 @@ sap.ui.define([
|
|
|
105
106
|
* @extends sap.ui.dt.Plugin
|
|
106
107
|
*
|
|
107
108
|
* @author SAP SE
|
|
108
|
-
* @version 1.
|
|
109
|
+
* @version 1.134.0
|
|
109
110
|
*
|
|
110
111
|
* @constructor
|
|
111
112
|
* @private
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* Provides Rename handling functionality
|
|
44
44
|
*
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.134.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
|
@@ -474,4 +474,4 @@ sap.ui.define([
|
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
return RenameHandler;
|
|
477
|
-
}
|
|
477
|
+
});
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
32
32
|
* @extends sap.ui.rta.plugin.Plugin
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.134.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -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.134.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
@@ -10,24 +10,9 @@
|
|
|
10
10
|
draggable="true"
|
|
11
11
|
contentWidth="50rem"
|
|
12
12
|
contentHeight="25rem"
|
|
13
|
+
title="{/title}"
|
|
14
|
+
class="sapUiContentPadding"
|
|
13
15
|
>
|
|
14
|
-
<customHeader>
|
|
15
|
-
<Bar>
|
|
16
|
-
<contentLeft>
|
|
17
|
-
<Label
|
|
18
|
-
id="sapUiRtaChangeAnnotationDialog_title"
|
|
19
|
-
class="sapUiSmallMargin"
|
|
20
|
-
text="{/title}"/>
|
|
21
|
-
</contentLeft>
|
|
22
|
-
<contentRight>
|
|
23
|
-
<Button
|
|
24
|
-
id="sapUiRtaChangeAnnotationDialog_toggleShowAllPropertiesButton"
|
|
25
|
-
class="sapUiSmallMargin"
|
|
26
|
-
text="{= ${/showChangedPropertiesOnly} ? ${i18n>ANNOTATION_CHANGE_DIALOG_BUTTON_ALL_PROPERTIES} : ${i18n>ANNOTATION_CHANGE_DIALOG_BUTTON_CHANGED_PROPERTIES}}"
|
|
27
|
-
press="switchDisplayMode"/>
|
|
28
|
-
</contentRight>
|
|
29
|
-
</Bar>
|
|
30
|
-
</customHeader>
|
|
31
16
|
<content>
|
|
32
17
|
<VBox>
|
|
33
18
|
<MessageStrip
|
|
@@ -45,13 +30,28 @@
|
|
|
45
30
|
id="sapUiRtaChangeAnnotationDialog_description"
|
|
46
31
|
visible="{= ${/description}.length > 0}"
|
|
47
32
|
text="{/description}"/>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
33
|
+
<HBox fitContainer="true">
|
|
34
|
+
<SearchField
|
|
35
|
+
id="sapUiRtaChangeAnnotationDialog_propertiesFilter"
|
|
36
|
+
placeholder="{i18n>ANNOTATION_CHANGE_DIALOG_PROPERTY_SEARCH}"
|
|
37
|
+
value="{/filterText}"
|
|
38
|
+
liveChange="onFilterProperties">
|
|
39
|
+
<layoutData>
|
|
40
|
+
<FlexItemData growFactor="1" styleClass="sapUiSmallMarginEnd"/>
|
|
41
|
+
</layoutData>
|
|
42
|
+
</SearchField>
|
|
43
|
+
<HBox alignItems="Center">
|
|
44
|
+
<Label
|
|
45
|
+
text="{i18n>ANNOTATION_CHANGE_DIALOG_BUTTON_CHANGED_PROPERTIES}"/>
|
|
46
|
+
<Switch
|
|
47
|
+
id="sapUiRtaChangeAnnotationDialog_toggleShowAllPropertiesSwitch"
|
|
48
|
+
state="{/showChangedPropertiesOnly}"
|
|
49
|
+
change="switchDisplayMode"
|
|
50
|
+
customTextOn=" "
|
|
51
|
+
customTextOff=" "/>
|
|
52
|
+
</HBox>
|
|
53
|
+
</HBox>
|
|
54
|
+
<f:Form editable="true">
|
|
55
55
|
<f:layout>
|
|
56
56
|
<f:ResponsiveGridLayout
|
|
57
57
|
labelSpanXL="3"
|
|
@@ -59,42 +59,25 @@
|
|
|
59
59
|
labelSpanM="3"
|
|
60
60
|
labelSpanS="12"
|
|
61
61
|
adjustLabelSpan="false"
|
|
62
|
-
emptySpanXL="
|
|
63
|
-
emptySpanL="
|
|
64
|
-
emptySpanM="
|
|
62
|
+
emptySpanXL="0"
|
|
63
|
+
emptySpanL="0"
|
|
64
|
+
emptySpanM="0"
|
|
65
65
|
emptySpanS="0"
|
|
66
66
|
columnsXL="1"
|
|
67
67
|
columnsL="1"
|
|
68
68
|
columnsM="1"
|
|
69
|
-
singleContainerFullSize="
|
|
69
|
+
singleContainerFullSize="true"/>
|
|
70
70
|
</f:layout>
|
|
71
71
|
<f:FormContainer
|
|
72
72
|
id="sapUiRtaChangeAnnotationDialog_propertyList"
|
|
73
|
-
formElements="{path: '/propertiesToDisplay',
|
|
74
|
-
<f:FormElement label="{propertyName}">
|
|
75
|
-
<Select
|
|
76
|
-
visible="{path: '/valueType', formatter: '.formatters.isValueList'}"
|
|
77
|
-
selectedKey="{currentValue}"
|
|
78
|
-
change="onValueListChange"
|
|
79
|
-
items="{path: '/possibleValues', templateShareable: false}">
|
|
80
|
-
<core:Item key="{key}" text="{text}" />
|
|
81
|
-
</Select>
|
|
82
|
-
<Input
|
|
83
|
-
visible="{path: '/valueType', formatter: '.formatters.isString'}"
|
|
84
|
-
value="{currentValue}"
|
|
85
|
-
change="onStringChange"/>
|
|
86
|
-
<CheckBox
|
|
87
|
-
visible="{path: '/valueType', formatter: '.formatters.isBoolean'}"
|
|
88
|
-
selected="{=!!${currentValue}}"
|
|
89
|
-
select="onBooleanChange"/>
|
|
90
|
-
</f:FormElement>
|
|
91
|
-
</f:FormContainer>
|
|
73
|
+
formElements="{path: '/propertiesToDisplay', factory: '.editorFactory'}" />
|
|
92
74
|
</f:Form>
|
|
93
75
|
</VBox>
|
|
94
76
|
</content>
|
|
95
77
|
<beginButton>
|
|
96
78
|
<Button
|
|
97
79
|
id="sapUiRtaChangeAnnotationDialog_saveButton"
|
|
80
|
+
enabled="{= ${path: '/properties', formatter: '.hasChangesFormatter'}}"
|
|
98
81
|
type="Emphasized"
|
|
99
82
|
text="{i18n>ANNOTATION_CHANGE_DIALOG_SAVE}"
|
|
100
83
|
press="onSavePress"
|