@openui5/sap.ui.rta 1.109.0 → 1.110.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 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +2 -2
- package/src/sap/ui/rta/Client.js +2 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +224 -143
- package/src/sap/ui/rta/Utils.js +40 -19
- package/src/sap/ui/rta/api/startAdaptation.js +1 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +2 -8
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
- package/src/sap/ui/rta/appVariant/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +2 -2
- package/src/sap/ui/rta/command/AddProperty.js +2 -2
- package/src/sap/ui/rta/command/AddXML.js +2 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
- package/src/sap/ui/rta/command/BaseCommand.js +2 -2
- package/src/sap/ui/rta/command/BindProperty.js +2 -2
- package/src/sap/ui/rta/command/Combine.js +2 -2
- package/src/sap/ui/rta/command/CommandFactory.js +2 -2
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/CreateContainer.js +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +2 -2
- package/src/sap/ui/rta/command/FlexCommand.js +2 -2
- package/src/sap/ui/rta/command/LREPSerializer.js +27 -12
- package/src/sap/ui/rta/command/LocalReset.js +2 -2
- package/src/sap/ui/rta/command/Move.js +2 -2
- package/src/sap/ui/rta/command/Property.js +2 -2
- package/src/sap/ui/rta/command/Remove.js +2 -2
- package/src/sap/ui/rta/command/Rename.js +2 -2
- package/src/sap/ui/rta/command/Resize.js +2 -2
- package/src/sap/ui/rta/command/Reveal.js +2 -2
- package/src/sap/ui/rta/command/Settings.js +2 -2
- package/src/sap/ui/rta/command/Split.js +2 -2
- package/src/sap/ui/rta/command/Stack.js +11 -3
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
- package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
- package/src/sap/ui/rta/library.js +3 -3
- package/src/sap/ui/rta/messagebundle.properties +59 -13
- package/src/sap/ui/rta/messagebundle_ar.properties +32 -11
- package/src/sap/ui/rta/messagebundle_bg.properties +32 -11
- package/src/sap/ui/rta/messagebundle_ca.properties +32 -11
- package/src/sap/ui/rta/messagebundle_cs.properties +32 -11
- package/src/sap/ui/rta/messagebundle_cy.properties +31 -10
- package/src/sap/ui/rta/messagebundle_da.properties +31 -10
- package/src/sap/ui/rta/messagebundle_de.properties +34 -13
- package/src/sap/ui/rta/messagebundle_el.properties +31 -10
- package/src/sap/ui/rta/messagebundle_en.properties +30 -9
- package/src/sap/ui/rta/messagebundle_en_GB.properties +30 -9
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +28 -5
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +28 -5
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +28 -7
- package/src/sap/ui/rta/messagebundle_es.properties +31 -10
- package/src/sap/ui/rta/messagebundle_es_MX.properties +31 -10
- package/src/sap/ui/rta/messagebundle_et.properties +31 -10
- package/src/sap/ui/rta/messagebundle_fi.properties +31 -10
- package/src/sap/ui/rta/messagebundle_fr.properties +31 -10
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +32 -11
- package/src/sap/ui/rta/messagebundle_hi.properties +32 -11
- package/src/sap/ui/rta/messagebundle_hr.properties +32 -11
- package/src/sap/ui/rta/messagebundle_hu.properties +31 -10
- package/src/sap/ui/rta/messagebundle_id.properties +32 -11
- package/src/sap/ui/rta/messagebundle_it.properties +32 -11
- package/src/sap/ui/rta/messagebundle_iw.properties +31 -10
- package/src/sap/ui/rta/messagebundle_ja.properties +32 -11
- package/src/sap/ui/rta/messagebundle_kk.properties +31 -10
- package/src/sap/ui/rta/messagebundle_ko.properties +31 -10
- package/src/sap/ui/rta/messagebundle_lt.properties +31 -10
- package/src/sap/ui/rta/messagebundle_lv.properties +32 -11
- package/src/sap/ui/rta/messagebundle_ms.properties +32 -11
- package/src/sap/ui/rta/messagebundle_nl.properties +31 -10
- package/src/sap/ui/rta/messagebundle_no.properties +32 -11
- package/src/sap/ui/rta/messagebundle_pl.properties +32 -11
- package/src/sap/ui/rta/messagebundle_pt.properties +32 -11
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +31 -10
- package/src/sap/ui/rta/messagebundle_ro.properties +32 -11
- package/src/sap/ui/rta/messagebundle_ru.properties +32 -11
- package/src/sap/ui/rta/messagebundle_sh.properties +31 -10
- package/src/sap/ui/rta/messagebundle_sk.properties +31 -10
- package/src/sap/ui/rta/messagebundle_sl.properties +31 -10
- package/src/sap/ui/rta/messagebundle_sv.properties +32 -11
- package/src/sap/ui/rta/messagebundle_th.properties +33 -12
- package/src/sap/ui/rta/messagebundle_tr.properties +31 -10
- package/src/sap/ui/rta/messagebundle_uk.properties +31 -10
- package/src/sap/ui/rta/messagebundle_vi.properties +32 -11
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +32 -11
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +32 -11
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +2 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +4 -6
- package/src/sap/ui/rta/plugin/ControlVariant.js +2 -2
- package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +4 -4
- package/src/sap/ui/rta/plugin/EasyAdd.js +30 -21
- package/src/sap/ui/rta/plugin/EasyRemove.js +13 -11
- package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
- package/src/sap/ui/rta/plugin/Plugin.js +50 -13
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Rename.js +2 -2
- package/src/sap/ui/rta/plugin/RenameHandler.js +28 -18
- package/src/sap/ui/rta/plugin/Resize.js +2 -2
- package/src/sap/ui/rta/plugin/Selection.js +7 -14
- package/src/sap/ui/rta/plugin/Settings.js +2 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +17 -16
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +28 -7
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +1 -0
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -5
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +7 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -4
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/service/Action.js +2 -2
- package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
- package/src/sap/ui/rta/service/Outline.js +2 -2
- package/src/sap/ui/rta/service/Property.js +2 -2
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -2
- package/src/sap/ui/rta/service/SupportTools.js +2 -2
- package/src/sap/ui/rta/service/index.js +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +1 -1
- package/src/sap/ui/rta/themes/base/Dialogs.less +1 -1
- package/src/sap/ui/rta/themes/base/FieldRepository.less +1 -1
- package/src/sap/ui/rta/themes/base/library.source.less +1 -1
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +82 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +35 -79
- package/src/sap/ui/rta/toolbar/Adaptation.js +83 -25
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +4 -4
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +11 -10
- package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
- package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +263 -0
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +149 -0
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +185 -0
- package/src/sap/ui/rta/toolbar/contextBased/{SaveAsContextBasedAdaptationDialog.fragment.xml → SaveAsAdaptationDialog.fragment.xml} +19 -15
- package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +4 -4
- package/src/sap/ui/rta/util/Animation.js +5 -9
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +2 -2
- package/src/sap/ui/rta/util/PopupManager.js +2 -2
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
- package/src/sap/ui/rta/util/StylesLoader.js +1 -1
- package/src/sap/ui/rta/util/UrlParser.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +3 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +27 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +109 -71
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +1 -1
- package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
- package/src/sap/ui/rta/util/validateStableIds.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +0 -124
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides class sap.ui.rta.plugin.Plugin.
|
|
8
8
|
sap.ui.define([
|
|
9
|
+
"sap/base/util/restricted/_debounce",
|
|
9
10
|
"sap/ui/dt/Plugin",
|
|
10
11
|
"sap/ui/fl/write/api/ChangesWriteAPI",
|
|
11
12
|
"sap/ui/dt/OverlayRegistry",
|
|
12
13
|
"sap/ui/dt/OverlayUtil",
|
|
13
|
-
"sap/ui/
|
|
14
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
14
15
|
"sap/ui/rta/util/hasStableId"
|
|
15
|
-
],
|
|
16
|
-
|
|
16
|
+
], function(
|
|
17
|
+
debounce,
|
|
17
18
|
Plugin,
|
|
18
19
|
ChangesWriteAPI,
|
|
19
20
|
OverlayRegistry,
|
|
@@ -69,7 +70,7 @@ function(
|
|
|
69
70
|
* @extends sap.ui.dt.Plugin
|
|
70
71
|
*
|
|
71
72
|
* @author SAP SE
|
|
72
|
-
* @version 1.
|
|
73
|
+
* @version 1.110.0
|
|
73
74
|
*
|
|
74
75
|
* @constructor
|
|
75
76
|
* @private
|
|
@@ -125,7 +126,39 @@ function(
|
|
|
125
126
|
}
|
|
126
127
|
};
|
|
127
128
|
|
|
129
|
+
function debounceFunction(mDebounceFunctions, oOverlay, sName, fnOriginalFunction) {
|
|
130
|
+
// Create debounced function for the given parameters if it was not created before
|
|
131
|
+
var sOverlayId = oOverlay.getId();
|
|
132
|
+
if (!mDebounceFunctions[sOverlayId]) {
|
|
133
|
+
mDebounceFunctions[sOverlayId] = {};
|
|
134
|
+
}
|
|
135
|
+
if (!mDebounceFunctions[sOverlayId][sName]) {
|
|
136
|
+
// Debounce with approximately one frame to cover multiple synchronous calls
|
|
137
|
+
// without causing a huge delay
|
|
138
|
+
mDebounceFunctions[sOverlayId][sName] = debounce(fnOriginalFunction, 16);
|
|
139
|
+
}
|
|
140
|
+
// Execute the function
|
|
141
|
+
mDebounceFunctions[sOverlayId][sName]();
|
|
142
|
+
}
|
|
143
|
+
|
|
128
144
|
var _onElementModified = function (oEvent) {
|
|
145
|
+
// Initialize here because plugins may not extend the rta.Plugin and
|
|
146
|
+
// instead inherit the method via rta.Utils.extendWith
|
|
147
|
+
// Therefore the constructor/init might not be properly called
|
|
148
|
+
if (!this._mDebounceFunctions) {
|
|
149
|
+
// The _onElementModified callback might be triggered many times in a row, e.g.
|
|
150
|
+
// by SimpleForms which add all aggregation items one by one
|
|
151
|
+
// Since the resulting editable checks in the plugins can be expensive async functions
|
|
152
|
+
// the calls are debounced
|
|
153
|
+
this._mDebounceFunctions = {
|
|
154
|
+
// Make sure that all closure variables of the debounced function
|
|
155
|
+
// are part of the map key:
|
|
156
|
+
// [overlayId][oEvent.getParameters().name]: function
|
|
157
|
+
insertOrRemove: {},
|
|
158
|
+
addOrSet: {}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
129
162
|
var oParams = oEvent.getParameters();
|
|
130
163
|
var aRelevantOverlays;
|
|
131
164
|
var oOverlay = oEvent.getSource();
|
|
@@ -150,18 +183,22 @@ function(
|
|
|
150
183
|
oParams.type === "insertAggregation"
|
|
151
184
|
|| oParams.type === "removeAggregation"
|
|
152
185
|
) {
|
|
153
|
-
|
|
154
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
155
|
-
} else if (oParams.type === "addOrSetAggregation") {
|
|
156
|
-
if (this.getDesignTime().getStatus() === "synced") {
|
|
186
|
+
debounceFunction(this._mDebounceFunctions["insertOrRemove"], oOverlay, oParams.name, function() {
|
|
157
187
|
aRelevantOverlays = this._getRelevantOverlays(oOverlay, oParams.name);
|
|
158
188
|
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
159
|
-
}
|
|
160
|
-
|
|
189
|
+
}.bind(this));
|
|
190
|
+
} else if (oParams.type === "addOrSetAggregation") {
|
|
191
|
+
debounceFunction(this._mDebounceFunctions["addOrSet"], oOverlay, oParams.name, function() {
|
|
192
|
+
if (this.getDesignTime().getStatus() === "synced") {
|
|
161
193
|
aRelevantOverlays = this._getRelevantOverlays(oOverlay, oParams.name);
|
|
162
194
|
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
163
|
-
}
|
|
164
|
-
|
|
195
|
+
} else {
|
|
196
|
+
this.getDesignTime().attachEventOnce("synced", function () {
|
|
197
|
+
aRelevantOverlays = this._getRelevantOverlays(oOverlay, oParams.name);
|
|
198
|
+
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
199
|
+
}, this);
|
|
200
|
+
}
|
|
201
|
+
}.bind(this));
|
|
165
202
|
}
|
|
166
203
|
};
|
|
167
204
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
38
|
+
* @version 1.110.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.34
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
31
|
+
* @version 1.110.0
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* Provides Rename handling functionality
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.110.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -136,7 +136,7 @@ sap.ui.define([
|
|
|
136
136
|
|
|
137
137
|
// case where the editable control has it's own overlay
|
|
138
138
|
var oOverlayForWrapper = OverlayRegistry.getOverlay(
|
|
139
|
-
vEditableControlDomRef
|
|
139
|
+
vEditableControlDomRef.jquery
|
|
140
140
|
? vEditableControlDomRef.get(0).id
|
|
141
141
|
: vEditableControlDomRef.id
|
|
142
142
|
);
|
|
@@ -145,20 +145,25 @@ sap.ui.define([
|
|
|
145
145
|
// for this purpose the width of the editable control should be adjusted
|
|
146
146
|
if (!oOverlayForWrapper) {
|
|
147
147
|
oOverlayForWrapper = this._oEditedOverlay;
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
var iControlForWrapperWidth = parseInt(
|
|
148
|
+
var _oControlForWrapperDomRef = ElementUtil.getDomRef(oElement); /* Main Control */
|
|
149
|
+
var _oEditableControlParentDomRef = this._$oEditableControlDomRef.parent().get(0); /* Text Control parent */
|
|
150
|
+
var iControlForWrapperWidth = _oControlForWrapperDomRef ? parseInt(_oControlForWrapperDomRef.offsetWidth) : "NaN"; /* Main Control Width */
|
|
151
151
|
|
|
152
152
|
if (!isNaN(iControlForWrapperWidth)) {
|
|
153
153
|
var iEditableControlWidth = parseInt(this._$oEditableControlDomRef.outerWidth());
|
|
154
|
-
var iEditableControlParentWidth = parseInt(
|
|
154
|
+
var iEditableControlParentWidth = parseInt(_oEditableControlParentDomRef.offsetWidth);
|
|
155
155
|
|
|
156
156
|
iWidthDifference = iControlForWrapperWidth - iEditableControlWidth;
|
|
157
157
|
|
|
158
|
+
var aCHildren = Array.from(_oEditableControlParentDomRef.children);
|
|
159
|
+
var aVisibleChildren = aCHildren.filter(function(oNode) {
|
|
160
|
+
return DOMUtil.isVisible(oNode);
|
|
161
|
+
});
|
|
162
|
+
|
|
158
163
|
if (iWidthDifference < 0 && iEditableControlParentWidth) {
|
|
159
|
-
if (
|
|
160
|
-
&&
|
|
161
|
-
&&
|
|
164
|
+
if (_oEditableControlParentDomRef.id !== _oControlForWrapperDomRef.id
|
|
165
|
+
&& aVisibleChildren.length === 1
|
|
166
|
+
&& aVisibleChildren[0].id === this._$oEditableControlDomRef.get(0).id
|
|
162
167
|
&& iControlForWrapperWidth > iEditableControlParentWidth) {
|
|
163
168
|
iWidthDifference = iControlForWrapperWidth - iEditableControlParentWidth;
|
|
164
169
|
} else {
|
|
@@ -168,13 +173,17 @@ sap.ui.define([
|
|
|
168
173
|
}
|
|
169
174
|
}
|
|
170
175
|
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
var _oWrapperDomRef = document.createElement("div");
|
|
177
|
+
_oWrapperDomRef.classList.add("sapUiRtaEditableField");
|
|
178
|
+
_oWrapperDomRef.style.whiteSpace = "nowrap";
|
|
179
|
+
_oWrapperDomRef.style.overflow = "hidden";
|
|
180
|
+
_oWrapperDomRef.style.width = "calc(100% - (" + iWidthDifference + "px))";
|
|
181
|
+
oOverlayForWrapper.getDomRef().append(_oWrapperDomRef);
|
|
182
|
+
var _oEditableFieldDomRef = document.createElement("div");
|
|
183
|
+
_oEditableFieldDomRef.setAttribute("contentEditable", "true");
|
|
184
|
+
_oWrapperDomRef.append(_oEditableFieldDomRef);
|
|
185
|
+
//TODO: replace the private jQuery variable to HTMLElement
|
|
186
|
+
this._$editableField = jQuery(_oEditableFieldDomRef);
|
|
178
187
|
|
|
179
188
|
// if label is empty, set a preliminary dummy text at the control to get an overlay
|
|
180
189
|
var sCurrentText = this._fnGetControlText();
|
|
@@ -228,7 +237,7 @@ sap.ui.define([
|
|
|
228
237
|
this._$editableField.on("mousedown", RenameHandler._stopPropagation.bind(this));
|
|
229
238
|
|
|
230
239
|
this._$oEditableControlDomRef.css("visibility", "hidden");
|
|
231
|
-
|
|
240
|
+
jQuery(_oWrapperDomRef).offset({left: this._$oEditableControlDomRef.offset().left});
|
|
232
241
|
RenameHandler._setEditableFieldPosition.apply(this);
|
|
233
242
|
this._$editableField.css("visibility", "");
|
|
234
243
|
this._$editableField.trigger("focus");
|
|
@@ -320,6 +329,7 @@ sap.ui.define([
|
|
|
320
329
|
this._fnSetControlText("");
|
|
321
330
|
}
|
|
322
331
|
|
|
332
|
+
//TODO: check why test gets red when this is replaced by vanilla JS
|
|
323
333
|
this._oEditedOverlay.$().find(".sapUiRtaEditableField").remove();
|
|
324
334
|
Overlay.getMutationObserver().ignoreOnce({
|
|
325
335
|
target: this._$oEditableControlDomRef.get(0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class
|
|
28
28
|
* @extends sap.ui.rta.plugin.Plugin
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.110.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.101
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -133,17 +133,6 @@ function (
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
/**
|
|
137
|
-
* Gets the value of the isActive property.
|
|
138
|
-
* When set to <code>true</code>, then additional check for busy plugnis is triggered.
|
|
139
|
-
* @return {boolean} bValue - <code>false</code> if inactive or some busy plugins available.
|
|
140
|
-
*/
|
|
141
|
-
Selection.prototype.getIsActive = function() {
|
|
142
|
-
return this.getProperty("isActive")
|
|
143
|
-
&& this.getDesignTime()
|
|
144
|
-
&& !this.getDesignTime().getBusyPlugins().length;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
136
|
/**
|
|
148
137
|
* Register an overlay
|
|
149
138
|
*
|
|
@@ -324,7 +313,11 @@ function (
|
|
|
324
313
|
*/
|
|
325
314
|
Selection.prototype._onMouseover = function(oEvent) {
|
|
326
315
|
var oOverlay = OverlayRegistry.getOverlay(oEvent.currentTarget.id);
|
|
327
|
-
|
|
316
|
+
// due to some timing issues the mouseover event callback can be triggered during drag&drop
|
|
317
|
+
if (
|
|
318
|
+
!this.getIsActive()
|
|
319
|
+
|| (this.getDesignTime() && this.getDesignTime().getBusyPlugins().length)
|
|
320
|
+
) {
|
|
328
321
|
// Propagation should be stopped at the root overlay to prevent the selection of the underlying elements
|
|
329
322
|
if (oOverlay.isRoot()) {
|
|
330
323
|
preventEventDefaultAndPropagation(oEvent);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
28
|
+
* @version 1.110.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.44
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
26
|
+
* @version 1.110.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.46
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -10,15 +10,13 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/dt/OverlayRegistry",
|
|
11
11
|
"sap/ui/dt/OverlayUtil",
|
|
12
12
|
"sap/base/util/includes",
|
|
13
|
-
"sap/base/util/restricted/_debounce"
|
|
14
|
-
"sap/ui/thirdparty/jquery"
|
|
13
|
+
"sap/base/util/restricted/_debounce"
|
|
15
14
|
], function(
|
|
16
15
|
Plugin,
|
|
17
16
|
OverlayRegistry,
|
|
18
17
|
OverlayUtil,
|
|
19
18
|
includes,
|
|
20
|
-
_debounce
|
|
21
|
-
jQuery
|
|
19
|
+
_debounce
|
|
22
20
|
) {
|
|
23
21
|
"use strict";
|
|
24
22
|
|
|
@@ -33,7 +31,7 @@ sap.ui.define([
|
|
|
33
31
|
* @extends sap.ui.rta.plugin.Plugin
|
|
34
32
|
*
|
|
35
33
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
34
|
+
* @version 1.110.0
|
|
37
35
|
*
|
|
38
36
|
* @constructor
|
|
39
37
|
* @private
|
|
@@ -77,12 +75,13 @@ sap.ui.define([
|
|
|
77
75
|
oElement.removeStyleClass(Stretch.STRETCHSTYLECLASS);
|
|
78
76
|
}
|
|
79
77
|
} else {
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
//TODO: replace when Overlay.getAssociatedDomRef() does not return jQuery any more
|
|
79
|
+
var oElementDomRef = oOverlay.getAssociatedDomRef() && oOverlay.getAssociatedDomRef().get(0);
|
|
80
|
+
if (oElementDomRef) {
|
|
82
81
|
if (bAddClass) {
|
|
83
|
-
|
|
82
|
+
oElementDomRef.classList.add(Stretch.STRETCHSTYLECLASS);
|
|
84
83
|
} else {
|
|
85
|
-
|
|
84
|
+
oElementDomRef.classList.remove(Stretch.STRETCHSTYLECLASS);
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
}
|
|
@@ -109,7 +108,7 @@ sap.ui.define([
|
|
|
109
108
|
// remove padding if it is already stretched
|
|
110
109
|
var iHeight = oParentGeometry.size.height;
|
|
111
110
|
if (bIsAlreadyStretched) {
|
|
112
|
-
iHeight -= parseInt(
|
|
111
|
+
iHeight -= parseInt(window.getComputedStyle(oParentGeometry.domRef, null).getPropertyValue("padding-top"));
|
|
113
112
|
}
|
|
114
113
|
var iParentSize = Math.round(oParentGeometry.size.width) * Math.round(iHeight);
|
|
115
114
|
aChildOverlays = aChildOverlays || OverlayUtil.getAllChildOverlays(oReferenceOverlay);
|
|
@@ -382,9 +381,10 @@ sap.ui.define([
|
|
|
382
381
|
|
|
383
382
|
Stretch.prototype._reevaluateStretching = function(oOverlay) {
|
|
384
383
|
if (!oOverlay.bIsDestroyed) {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
384
|
+
//TODO: replace when getAssociatedDomRef does not return jQuery any more
|
|
385
|
+
var oElementDomRef = oOverlay.getAssociatedDomRef() && oOverlay.getAssociatedDomRef().get(0);
|
|
386
|
+
if (oElementDomRef) {
|
|
387
|
+
var bIsStretched = oElementDomRef.classList.contains(Stretch.STRETCHSTYLECLASS);
|
|
388
388
|
var bShouldBeStretched = childrenAreSameSize(oOverlay, undefined, bIsStretched);
|
|
389
389
|
if (bIsStretched && !bShouldBeStretched) {
|
|
390
390
|
this.removeStretchCandidate(oOverlay);
|
|
@@ -398,8 +398,9 @@ sap.ui.define([
|
|
|
398
398
|
|
|
399
399
|
Stretch.prototype._checkParentAndAddToStretchCandidates = function(oOverlay) {
|
|
400
400
|
var oParentOverlay = oOverlay.getParentElementOverlay();
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
//TODO: replace when getAssociatedDomRef does not return jQuery any more
|
|
402
|
+
var oParentElementDOM = oParentOverlay && oParentOverlay.getAssociatedDomRef() && oParentOverlay.getAssociatedDomRef().get(0);
|
|
403
|
+
if (oParentElementDOM) {
|
|
403
404
|
if (startAtSamePosition(oParentOverlay, oOverlay)) {
|
|
404
405
|
if (childrenAreSameSize(oParentOverlay)) {
|
|
405
406
|
this.addStretchCandidate(oParentOverlay);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
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.
|
|
@@ -326,13 +326,13 @@ sap.ui.define([
|
|
|
326
326
|
*
|
|
327
327
|
* @return {Promise} Resolving to a structure with all "add/reveal" action relevant data collected
|
|
328
328
|
*/
|
|
329
|
-
ActionExtractor.getActions = function(bSibling, oSourceElementOverlay, oPlugin, bInvalidate) {
|
|
329
|
+
ActionExtractor.getActions = function(bSibling, oSourceElementOverlay, oPlugin, bInvalidate, oDesignTime) {
|
|
330
330
|
var sSiblingOrChild = bSibling ? "asSibling" : "asChild";
|
|
331
331
|
if (!bInvalidate && oSourceElementOverlay._mAddActions) {
|
|
332
332
|
return Promise.resolve(oSourceElementOverlay._mAddActions[sSiblingOrChild]);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
var oRevealActionsPromise = this._getRevealActions(bSibling, oSourceElementOverlay, oPlugin);
|
|
335
|
+
var oRevealActionsPromise = this._getRevealActions(bSibling, oSourceElementOverlay, oPlugin, oDesignTime);
|
|
336
336
|
var oAddPropertyActionsPromise = this._getAddViaDelegateActions(bSibling, oSourceElementOverlay, oPlugin);
|
|
337
337
|
|
|
338
338
|
return Promise.all([
|
|
@@ -359,6 +359,9 @@ sap.ui.define([
|
|
|
359
359
|
return oOverlay._mAddActions && oOverlay._mAddActions[sSiblingOrChild];
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
+
var mRevealCache = {};
|
|
363
|
+
var bIsSyncRegistered = true;
|
|
364
|
+
|
|
362
365
|
/**
|
|
363
366
|
* Returns the Reveal actions data (parameters + elements) for an Overlay
|
|
364
367
|
* @param {boolean} bSibling - If source element overlay should be sibling or parent to the newly added fields
|
|
@@ -367,7 +370,15 @@ sap.ui.define([
|
|
|
367
370
|
*
|
|
368
371
|
* @returns {Promise<object>} Reveal action data
|
|
369
372
|
*/
|
|
370
|
-
ActionExtractor._getRevealActions = function(bSibling, oSourceElementOverlay, oPlugin) {
|
|
373
|
+
ActionExtractor._getRevealActions = function(bSibling, oSourceElementOverlay, oPlugin, oDesignTime) {
|
|
374
|
+
if (bIsSyncRegistered) {
|
|
375
|
+
bIsSyncRegistered = false;
|
|
376
|
+
oDesignTime.attachEventOnce("synced", function() {
|
|
377
|
+
mRevealCache = {};
|
|
378
|
+
bIsSyncRegistered = true;
|
|
379
|
+
}, this);
|
|
380
|
+
}
|
|
381
|
+
|
|
371
382
|
var mParents = AdditionalElementsUtils.getParents(bSibling, oSourceElementOverlay, oPlugin);
|
|
372
383
|
var aParents = [mParents.parentOverlay];
|
|
373
384
|
if (mParents.relevantContainer !== mParents.parent) {
|
|
@@ -379,7 +390,11 @@ sap.ui.define([
|
|
|
379
390
|
}
|
|
380
391
|
var aAggregationNames = [];
|
|
381
392
|
if (mParents.parentOverlay) {
|
|
382
|
-
|
|
393
|
+
var mCachedResult = mRevealCache[mParents.parentOverlay.getId()];
|
|
394
|
+
if (mCachedResult && bSibling) {
|
|
395
|
+
return mCachedResult;
|
|
396
|
+
}
|
|
397
|
+
aAggregationNames = mParents.parentOverlay.getChildren().filter(function(oAggregationOverlay) {
|
|
383
398
|
return !oAggregationOverlay.getDesignTimeMetadata().isIgnored(mParents.parent);
|
|
384
399
|
}).map(function(oAggregationOverlay) {
|
|
385
400
|
return oAggregationOverlay.getAggregationName();
|
|
@@ -388,7 +403,13 @@ sap.ui.define([
|
|
|
388
403
|
return oPreviousPromise.then(function(mReveal) {
|
|
389
404
|
return getRevealActionFromAggregations(aParents, mReveal, sAggregationName, aAggregationNames, oPlugin);
|
|
390
405
|
});
|
|
391
|
-
}, Promise.resolve({}))
|
|
406
|
+
}, Promise.resolve({}))
|
|
407
|
+
.then(function(mAggregatedReveal) {
|
|
408
|
+
if (bSibling) {
|
|
409
|
+
mRevealCache[mParents.parentOverlay.getId()] = mAggregatedReveal;
|
|
410
|
+
}
|
|
411
|
+
return mAggregatedReveal;
|
|
412
|
+
});
|
|
392
413
|
}
|
|
393
414
|
return Promise.resolve({});
|
|
394
415
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -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.
|
|
35
|
+
* @version 1.110.0
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.44
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
79
79
|
* @constructor
|
|
80
80
|
* @private
|
|
81
81
|
* @since 1.44
|
|
@@ -234,7 +234,7 @@ sap.ui.define([
|
|
|
234
234
|
var mActions;
|
|
235
235
|
var aAllElements = [];
|
|
236
236
|
|
|
237
|
-
return ActionExtractor.getActions(bOverlayIsSibling, oResponsibleElementOverlay, this)
|
|
237
|
+
return ActionExtractor.getActions(bOverlayIsSibling, oResponsibleElementOverlay, this, undefined, this.getDesignTime())
|
|
238
238
|
.then(function(mRetrievedActions) {
|
|
239
239
|
if (sAggregationName === "$$OnlyChildCustomField$$") {
|
|
240
240
|
return [];
|
|
@@ -343,7 +343,7 @@ sap.ui.define([
|
|
|
343
343
|
return false;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
return ActionExtractor.getActions(bOverlayIsSibling, oOverlay, this, true)
|
|
346
|
+
return ActionExtractor.getActions(bOverlayIsSibling, oOverlay, this, true, this.getDesignTime())
|
|
347
347
|
.then(function (mActions) {
|
|
348
348
|
this.clearCachedElements();
|
|
349
349
|
return Utils.doIfAllControlsAreAvailable([oOverlay, mParents.parentOverlay], function () {
|
|
@@ -397,7 +397,7 @@ sap.ui.define([
|
|
|
397
397
|
|
|
398
398
|
this.clearExtensibilityInfo(bOverlayIsSibling);
|
|
399
399
|
|
|
400
|
-
return ActionExtractor.getActions(bOverlayIsSibling, oElementOverlay, this)
|
|
400
|
+
return ActionExtractor.getActions(bOverlayIsSibling, oElementOverlay, this, undefined, this.getDesignTime())
|
|
401
401
|
.then(function(mAllActions) {
|
|
402
402
|
each(mAllActions, function(sAggregationName) {
|
|
403
403
|
mActions = mAllActions[sAggregationName];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
114
114
|
* @constructor
|
|
115
115
|
* @private
|
|
116
116
|
* @since 1.75
|