@openui5/sap.ui.rta 1.144.0 → 1.146.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/.eslintrc.json +7 -1
- package/REUSE.toml +40 -16
- package/THIRDPARTY.txt +28 -7
- 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 +25 -6
- package/src/sap/ui/rta/Utils.js +4 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/Feature.js +6 -4
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +6 -3
- package/src/sap/ui/rta/appVariant/Utils.js +2 -2
- 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 +2 -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 +90 -94
- 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 +4 -4
- package/src/sap/ui/rta/messagebundle_bg.properties +4 -4
- package/src/sap/ui/rta/messagebundle_ca.properties +4 -4
- package/src/sap/ui/rta/messagebundle_cnr.properties +4 -4
- package/src/sap/ui/rta/messagebundle_cs.properties +3 -3
- package/src/sap/ui/rta/messagebundle_cy.properties +4 -4
- package/src/sap/ui/rta/messagebundle_da.properties +4 -4
- package/src/sap/ui/rta/messagebundle_de.properties +4 -4
- package/src/sap/ui/rta/messagebundle_el.properties +4 -4
- package/src/sap/ui/rta/messagebundle_en.properties +4 -4
- package/src/sap/ui/rta/messagebundle_en_GB.properties +4 -4
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_es.properties +3 -3
- package/src/sap/ui/rta/messagebundle_es_MX.properties +4 -4
- package/src/sap/ui/rta/messagebundle_et.properties +4 -4
- package/src/sap/ui/rta/messagebundle_fi.properties +4 -4
- package/src/sap/ui/rta/messagebundle_fr.properties +4 -4
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -5
- package/src/sap/ui/rta/messagebundle_hi.properties +4 -4
- package/src/sap/ui/rta/messagebundle_hr.properties +4 -4
- package/src/sap/ui/rta/messagebundle_hu.properties +3 -3
- package/src/sap/ui/rta/messagebundle_id.properties +5 -5
- package/src/sap/ui/rta/messagebundle_it.properties +5 -5
- package/src/sap/ui/rta/messagebundle_iw.properties +4 -4
- package/src/sap/ui/rta/messagebundle_ja.properties +4 -4
- package/src/sap/ui/rta/messagebundle_kk.properties +4 -4
- package/src/sap/ui/rta/messagebundle_ko.properties +4 -4
- package/src/sap/ui/rta/messagebundle_lt.properties +4 -4
- package/src/sap/ui/rta/messagebundle_lv.properties +4 -4
- package/src/sap/ui/rta/messagebundle_mk.properties +4 -4
- package/src/sap/ui/rta/messagebundle_ms.properties +4 -4
- package/src/sap/ui/rta/messagebundle_nl.properties +4 -4
- package/src/sap/ui/rta/messagebundle_no.properties +5 -5
- package/src/sap/ui/rta/messagebundle_pl.properties +4 -4
- package/src/sap/ui/rta/messagebundle_pt.properties +4 -4
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +4 -4
- package/src/sap/ui/rta/messagebundle_ro.properties +4 -4
- package/src/sap/ui/rta/messagebundle_ru.properties +6 -6
- package/src/sap/ui/rta/messagebundle_sh.properties +4 -4
- package/src/sap/ui/rta/messagebundle_sk.properties +4 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +4 -4
- package/src/sap/ui/rta/messagebundle_sr.properties +4 -4
- package/src/sap/ui/rta/messagebundle_sv.properties +4 -4
- package/src/sap/ui/rta/messagebundle_th.properties +4 -4
- package/src/sap/ui/rta/messagebundle_tr.properties +4 -4
- package/src/sap/ui/rta/messagebundle_uk.properties +4 -4
- package/src/sap/ui/rta/messagebundle_vi.properties +4 -4
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +4 -4
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +4 -4
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +4 -4
- 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 +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 +13 -11
- 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.fragment.xml +5 -20
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +278 -26
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +40 -11
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +4 -3
- 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 +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +29 -4
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +11 -17
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +8 -6
- package/src/sap/ui/rta/plugin/annotations/DocumentedAnnotationChanges.js +14 -0
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +14 -12
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +15 -94
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +22 -3
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +282 -102
- package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.fragment.xml +1 -0
- 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 +14 -6
- 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/ContextMenu.less +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +9 -4
- package/src/sap/ui/rta/toolbar/Adaptation.js +59 -4
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +7 -9
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +12 -17
- package/src/sap/ui/rta/toolbar/Fiori.js +5 -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/ManageAdaptations.js +13 -11
- 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 +15 -12
- 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 +3 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ExtendedActions.png +0 -0
|
@@ -15,8 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/layout/form/FormElement",
|
|
16
16
|
"sap/ui/model/Filter",
|
|
17
17
|
"sap/ui/model/FilterOperator",
|
|
18
|
-
"sap/ui/rta/plugin/annotations/AnnotationTypes"
|
|
19
|
-
"sap/ui/rta/Utils"
|
|
18
|
+
"sap/ui/rta/plugin/annotations/AnnotationTypes"
|
|
20
19
|
], function(
|
|
21
20
|
Input,
|
|
22
21
|
Label,
|
|
@@ -28,8 +27,7 @@ sap.ui.define([
|
|
|
28
27
|
FormElement,
|
|
29
28
|
Filter,
|
|
30
29
|
FilterOperator,
|
|
31
|
-
AnnotationTypes
|
|
32
|
-
RtaUtils
|
|
30
|
+
AnnotationTypes
|
|
33
31
|
) {
|
|
34
32
|
"use strict";
|
|
35
33
|
|
|
@@ -37,7 +35,7 @@ sap.ui.define([
|
|
|
37
35
|
* @class Controller for the AnnotationChangeDialog.
|
|
38
36
|
* @extends sap.ui.core.mvc.Controller
|
|
39
37
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
38
|
+
* @version 1.146.0
|
|
41
39
|
* @constructor
|
|
42
40
|
* @since 1.132
|
|
43
41
|
* @private
|
|
@@ -51,21 +49,17 @@ sap.ui.define([
|
|
|
51
49
|
});
|
|
52
50
|
};
|
|
53
51
|
|
|
54
|
-
AnnotationChangeDialogController.prototype.formatDocumentationUrl = function() {
|
|
55
|
-
const oDocumentationUrls = {
|
|
56
|
-
btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/making-ui-changes",
|
|
57
|
-
s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/54270a390b194c3e97be2424592c3352.html",
|
|
58
|
-
s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/54270a390b194c3e97be2424592c3352.html"
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return RtaUtils.getSystemSpecificDocumentationUrl(oDocumentationUrls);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
52
|
AnnotationChangeDialogController.prototype.filterProperties = function(sQuery, bEquals) {
|
|
65
53
|
const aFilters = [];
|
|
66
54
|
if (sQuery && sQuery.length > 0) {
|
|
67
|
-
const
|
|
68
|
-
|
|
55
|
+
const sOperator = bEquals ? FilterOperator.EQ : FilterOperator.Contains;
|
|
56
|
+
const oLabelFilter = new Filter("label", sOperator, sQuery);
|
|
57
|
+
const oValueFilter = new Filter("currentValue", sOperator, sQuery);
|
|
58
|
+
const oCombinedFilter = new Filter({
|
|
59
|
+
filters: [oLabelFilter, oValueFilter],
|
|
60
|
+
and: false
|
|
61
|
+
});
|
|
62
|
+
aFilters.push(oCombinedFilter);
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
const oList = Element.getElementById("sapUiRtaChangeAnnotationDialog_propertyList");
|
|
@@ -105,7 +105,7 @@ sap.ui.define([
|
|
|
105
105
|
* @class
|
|
106
106
|
* @extends sap.ui.rta.plugin.Plugin
|
|
107
107
|
* @author SAP SE
|
|
108
|
-
* @version 1.
|
|
108
|
+
* @version 1.146.0
|
|
109
109
|
* @constructor
|
|
110
110
|
* @private
|
|
111
111
|
* @since 1.132
|
|
@@ -130,7 +130,7 @@ sap.ui.define([
|
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* @param {sap.ui.dt.ElementOverlay} oElementOverlay - Overlay to be checked for editable
|
|
133
|
-
* @returns {boolean}
|
|
133
|
+
* @returns {boolean} <code>true</code> if it's editable
|
|
134
134
|
* @private
|
|
135
135
|
*/
|
|
136
136
|
AnnotationPlugin.prototype._isEditable = function(oElementOverlay) {
|
|
@@ -159,7 +159,7 @@ sap.ui.define([
|
|
|
159
159
|
* @public
|
|
160
160
|
*/
|
|
161
161
|
AnnotationPlugin.prototype.isEnabled = function(aElementOverlays) {
|
|
162
|
-
if (aElementOverlays.length !== 1) {
|
|
162
|
+
if (!this.isAvailable(aElementOverlays) || aElementOverlays.length !== 1) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -186,9 +186,10 @@ sap.ui.define([
|
|
|
186
186
|
*
|
|
187
187
|
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target Overlays of the action
|
|
188
188
|
* @param {object} oAction - The action object defined in the designtime
|
|
189
|
+
* @param {string} sKey - Key of the action, used to display the specific documentation link
|
|
189
190
|
* @return {Promise} Resolves with the creation of the commands
|
|
190
191
|
*/
|
|
191
|
-
AnnotationPlugin.prototype.handler = async function(aElementOverlays, oAction) {
|
|
192
|
+
AnnotationPlugin.prototype.handler = async function(aElementOverlays, oAction, sKey) {
|
|
192
193
|
const oElementOverlay = aElementOverlays[0];
|
|
193
194
|
const oElement = oElementOverlay.getElement();
|
|
194
195
|
|
|
@@ -201,7 +202,8 @@ sap.ui.define([
|
|
|
201
202
|
annotation: oAction.annotation,
|
|
202
203
|
description: oAction.description,
|
|
203
204
|
singleRename: oAction.singleRename,
|
|
204
|
-
controlBasedRenameChangeType: oAction.controlBasedRenameChangeType
|
|
205
|
+
controlBasedRenameChangeType: oAction.controlBasedRenameChangeType,
|
|
206
|
+
featureKey: sKey
|
|
205
207
|
});
|
|
206
208
|
|
|
207
209
|
if (aAnnotationChanges.length) {
|
|
@@ -272,7 +274,7 @@ sap.ui.define([
|
|
|
272
274
|
typeof oAction.isEnabled === "function" && oAction.isEnabled(aElementOverlays[0].getElement())
|
|
273
275
|
|| (oAction.isEnabled !== false) && this.isEnabled(aElementOverlays)
|
|
274
276
|
),
|
|
275
|
-
handler: this.handler.bind(this, aElementOverlays, oAction),
|
|
277
|
+
handler: this.handler.bind(this, aElementOverlays, oAction, sKey),
|
|
276
278
|
additionalInfo: this._getAdditionalInfo(oResponsibleElementOverlay, oAction)
|
|
277
279
|
});
|
|
278
280
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
/*!
|
|
3
|
+
* OpenUI5
|
|
4
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
|
+
*/
|
|
7
|
+
sap.ui.define([], function() {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
Rename: "rename",
|
|
12
|
+
TextArrangement: "textArrangement"
|
|
13
|
+
};
|
|
14
|
+
});
|
|
@@ -5,21 +5,23 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/Lib",
|
|
9
|
-
"sap/ui/rta/plugin/BaseCreate",
|
|
10
|
-
"sap/ui/fl/Utils",
|
|
11
|
-
"sap/ui/dt/Util",
|
|
12
8
|
"sap/base/util/uid",
|
|
13
9
|
"sap/ui/core/IconPool",
|
|
14
|
-
"sap/ui/
|
|
10
|
+
"sap/ui/core/Lib",
|
|
11
|
+
"sap/ui/dt/Util",
|
|
12
|
+
"sap/ui/fl/util/CancelError",
|
|
13
|
+
"sap/ui/fl/Utils",
|
|
14
|
+
"sap/ui/rta/plugin/iframe/AddIFrameDialog",
|
|
15
|
+
"sap/ui/rta/plugin/BaseCreate"
|
|
15
16
|
], function(
|
|
16
|
-
Lib,
|
|
17
|
-
BaseCreate,
|
|
18
|
-
FlexUtils,
|
|
19
|
-
DtUtil,
|
|
20
17
|
uid,
|
|
21
18
|
IconPool,
|
|
22
|
-
|
|
19
|
+
Lib,
|
|
20
|
+
DtUtil,
|
|
21
|
+
CancelError,
|
|
22
|
+
FlexUtils,
|
|
23
|
+
AddIFrameDialog,
|
|
24
|
+
BaseCreate
|
|
23
25
|
) {
|
|
24
26
|
"use strict";
|
|
25
27
|
|
|
@@ -89,7 +91,7 @@ sap.ui.define([
|
|
|
89
91
|
})
|
|
90
92
|
.then(function(mSettings) {
|
|
91
93
|
if (!mSettings) {
|
|
92
|
-
|
|
94
|
+
throw new CancelError();
|
|
93
95
|
}
|
|
94
96
|
mSettings.index = iIndex;
|
|
95
97
|
mSettings.aggregation = oAction.aggregation;
|
|
@@ -119,7 +121,7 @@ sap.ui.define([
|
|
|
119
121
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
120
122
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
121
123
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
124
|
+
* @version 1.146.0
|
|
123
125
|
* @constructor
|
|
124
126
|
* @private
|
|
125
127
|
* @since 1.75
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
valueState="{= !!${dialogInfo>/frameUrlError/value} ? 'Error' : 'None'}"
|
|
74
74
|
valueStateText="{dialogInfo>/frameUrlError/value}"
|
|
75
75
|
validateFieldGroup="onValidateUrl"
|
|
76
|
+
liveChange="onUrlLiveChange"
|
|
76
77
|
rows="{= !!${dialogInfo>/showParameters/value} ? 8 : 1 }"
|
|
77
78
|
growingMaxLines="8"
|
|
78
79
|
width="100%"
|
|
@@ -193,9 +194,9 @@
|
|
|
193
194
|
id="sapUiRtaAddIFrameDialog_PreviewButton"
|
|
194
195
|
class="sapUiRtaAddIFrameDialogPreviewButton"
|
|
195
196
|
press="onPreviewPress"
|
|
196
|
-
enabled="{= !${dialogInfo>/frameUrlError/value} && (${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/settingsUpdate/value})}"
|
|
197
|
+
enabled="{= !${dialogInfo>/frameUrlError/value} && ${dialogInfo>/frameUrl/value} !== '' && (${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/settingsUpdate/value})}"
|
|
197
198
|
icon="{=${dialogInfo>/previousFrameUrl/value} ? 'sap-icon://refresh' : null }"
|
|
198
|
-
type="{= !${dialogInfo>/frameUrlError/value} && (${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/settingsUpdate/value}) ? 'Emphasized' : 'Default' }"
|
|
199
|
+
type="{= !${dialogInfo>/frameUrlError/value} && ${dialogInfo>/frameUrl/value} !== '' && (${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/settingsUpdate/value}) ? 'Emphasized' : 'Default' }"
|
|
199
200
|
/>
|
|
200
201
|
</HBox>
|
|
201
202
|
<VBox id="sapUiRtaAddIFrameDialog_PreviewLinkVBox" class="sapUiRtaAddIFrameDialogContainer sapUiTinyMarginTop" renderType="Bare">
|
|
@@ -258,7 +259,7 @@
|
|
|
258
259
|
adjustLabelSpan="false"
|
|
259
260
|
singleContainerFullSize="false"
|
|
260
261
|
ariaLabelledBy="sapUiRtaAddIFrameDialog_WidthLabel"
|
|
261
|
-
columnsXL="2" columnsL="2" columnsM="2"
|
|
262
|
+
columnsXL="2" columnsL="2" columnsM="2"
|
|
262
263
|
labelSpanXL="2" labelSpanL="2" labelSpanM="2" labelSpanS="4"
|
|
263
264
|
emptySpanXL="2" emptySpanL="2" emptySpanM="2" emptySpanS="0"
|
|
264
265
|
>
|
|
@@ -301,7 +302,7 @@
|
|
|
301
302
|
adjustLabelSpan="false"
|
|
302
303
|
singleContainerFullSize="false"
|
|
303
304
|
ariaLabelledBy="sapUiRtaAddIFrameDialog_HeightLabel"
|
|
304
|
-
columnsXL="2" columnsL="2" columnsM="2"
|
|
305
|
+
columnsXL="2" columnsL="2" columnsM="2"
|
|
305
306
|
labelSpanXL="2" labelSpanL="2" labelSpanM="2" labelSpanS="4"
|
|
306
307
|
emptySpanXL="2" emptySpanL="2" emptySpanM="2" emptySpanS="0"
|
|
307
308
|
>
|
|
@@ -374,95 +375,15 @@
|
|
|
374
375
|
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox"/>
|
|
375
376
|
</link>
|
|
376
377
|
</MessageStrip>
|
|
377
|
-
<
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
<form:FormElement label="allow-forms">
|
|
387
|
-
<Switch
|
|
388
|
-
change="onSwitchChange"
|
|
389
|
-
id="sapUiRtaAddIFrameDialog_allowFormsSwitch"
|
|
390
|
-
customTextOn=" "
|
|
391
|
-
customTextOff=" "
|
|
392
|
-
state="{dialogInfo>/advancedSettings/value/allowForms}" />
|
|
393
|
-
</form:FormElement>
|
|
394
|
-
<form:FormElement label="allow-scripts">
|
|
395
|
-
<Switch
|
|
396
|
-
change="onSwitchChange"
|
|
397
|
-
id="sapUiRtaAddIFrameDialog_allowScriptsSwitch"
|
|
398
|
-
customTextOn=" "
|
|
399
|
-
customTextOff=" "
|
|
400
|
-
state="{dialogInfo>/advancedSettings/value/allowScripts}" />
|
|
401
|
-
</form:FormElement>
|
|
402
|
-
<form:FormElement label="allow-same-origin">
|
|
403
|
-
<Switch
|
|
404
|
-
change="onSwitchChange"
|
|
405
|
-
id="sapUiRtaAddIFrameDialog_allowSameOriginSwitch"
|
|
406
|
-
customTextOn=" "
|
|
407
|
-
customTextOff=" "
|
|
408
|
-
state="{dialogInfo>/advancedSettings/value/allowSameOrigin}" />
|
|
409
|
-
</form:FormElement>
|
|
410
|
-
<form:FormElement label="allow-popups">
|
|
411
|
-
<Switch
|
|
412
|
-
change="onSwitchChange"
|
|
413
|
-
id="sapUiRtaAddIFrameDialog_allowPopupsSwitch"
|
|
414
|
-
customTextOn=" "
|
|
415
|
-
customTextOff=" "
|
|
416
|
-
state="{dialogInfo>/advancedSettings/value/allowPopups}" />
|
|
417
|
-
</form:FormElement>
|
|
418
|
-
<form:FormElement label="allow-modals">
|
|
419
|
-
<Switch
|
|
420
|
-
change="onSwitchChange"
|
|
421
|
-
id="sapUiRtaAddIFrameDialog_allowModalsSwitch"
|
|
422
|
-
customTextOn=" "
|
|
423
|
-
customTextOff=" "
|
|
424
|
-
state="{dialogInfo>/advancedSettings/value/allowModals}" />
|
|
425
|
-
</form:FormElement>
|
|
426
|
-
</form:FormContainer>
|
|
427
|
-
<form:FormContainer>
|
|
428
|
-
<form:FormElement label="allow-top-navigation">
|
|
429
|
-
<Switch
|
|
430
|
-
change="onSwitchChange"
|
|
431
|
-
id="sapUiRtaAddIFrameDialog_allowTopNavigationSwitch"
|
|
432
|
-
customTextOn=" "
|
|
433
|
-
customTextOff=" "
|
|
434
|
-
state="{dialogInfo>/advancedSettings/value/allowTopNavigation}" />
|
|
435
|
-
</form:FormElement>
|
|
436
|
-
<form:FormElement label="allow-downloads">
|
|
437
|
-
<Switch
|
|
438
|
-
change="onSwitchChange"
|
|
439
|
-
id="sapUiRtaAddIFrameDialog_allowDownloadsSwitch"
|
|
440
|
-
customTextOn=" "
|
|
441
|
-
customTextOff=" "
|
|
442
|
-
state="{dialogInfo>/advancedSettings/value/allowDownloads}" />
|
|
443
|
-
</form:FormElement>
|
|
444
|
-
<form:FormElement>
|
|
445
|
-
<Label
|
|
446
|
-
id="sapUiRtaAddIFrameDialog_AddAdditionalParametersLabel"
|
|
447
|
-
class="sapUiSmallMarginTop"
|
|
448
|
-
text="{i18n>IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL}"
|
|
449
|
-
labelFor="sapUiRtaAddIFrameDialog_AddAdditionalParametersInput" />
|
|
450
|
-
</form:FormElement>
|
|
451
|
-
<form:FormElement>
|
|
452
|
-
<MultiInput
|
|
453
|
-
id="sapUiRtaAddIFrameDialog_AddAdditionalParametersInput"
|
|
454
|
-
placeholder="{i18n>IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_PLACEHOLDER}"
|
|
455
|
-
showValueHelp="false"
|
|
456
|
-
tokenUpdate="onTokenUpdate"
|
|
457
|
-
tokens="{dialogInfo>/advancedSettings/value/additionalSandboxParameters}"
|
|
458
|
-
ariaLabelledBy="sapUiRtaAddIFrameDialog_AddAdditionalParametersLabel">
|
|
459
|
-
<tokens>
|
|
460
|
-
<Token text="{dialogInfo>}" key="{dialogInfo>}"/>
|
|
461
|
-
</tokens>
|
|
462
|
-
</MultiInput>
|
|
463
|
-
</form:FormElement>
|
|
464
|
-
</form:FormContainer>
|
|
465
|
-
</form:Form>
|
|
378
|
+
<layout:Grid
|
|
379
|
+
id="sapUiRtaAddIFrameDialog_SandboxPropertiesGrid"
|
|
380
|
+
defaultSpan="XL6 L6 M6 S12"
|
|
381
|
+
hSpacing="1"
|
|
382
|
+
vSpacing="1"
|
|
383
|
+
content="{
|
|
384
|
+
path: 'dialogInfo>/advancedSettingsConfig',
|
|
385
|
+
factory: '.createAdvancedSettingsControl'
|
|
386
|
+
}"/>
|
|
466
387
|
</content>
|
|
467
388
|
</Panel>
|
|
468
389
|
</layout:Grid>
|
|
@@ -480,7 +401,7 @@
|
|
|
480
401
|
type="Emphasized"
|
|
481
402
|
text="{i18n>IFRAME_ADDIFRAME_DIALOG_BUTTON_SAVE}"
|
|
482
403
|
press="onSavePress"
|
|
483
|
-
enabled="{= !!${dialogInfo>/
|
|
404
|
+
enabled="{= !!${dialogInfo>/saveEnabled} }"
|
|
484
405
|
/>
|
|
485
406
|
</beginButton>
|
|
486
407
|
<endButton>
|
|
@@ -31,8 +31,19 @@ sap.ui.define([
|
|
|
31
31
|
"use strict";
|
|
32
32
|
|
|
33
33
|
// shortcut for sap.ui.core.ValueState
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
const { ValueState } = coreLibrary;
|
|
35
|
+
const _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
36
|
+
|
|
37
|
+
const _aAdvancedSettings = [
|
|
38
|
+
{ key: "allowForms", label: "allow-forms" },
|
|
39
|
+
{ key: "allowScripts", label: "allow-scripts" },
|
|
40
|
+
{ key: "allowSameOrigin", label: "allow-same-origin" },
|
|
41
|
+
{ key: "allowPopups", label: "allow-popups" },
|
|
42
|
+
{ key: "allowModals", label: "allow-modals" },
|
|
43
|
+
{ key: "allowTopNavigation", label: "allow-top-navigation" },
|
|
44
|
+
{ key: "allowDownloads", label: "allow-downloads" },
|
|
45
|
+
{ key: "additionalSandboxParameters", isMultiInput: true }
|
|
46
|
+
];
|
|
36
47
|
|
|
37
48
|
function createJSONModel(bSetUpdateTitle, bAsContainer, sFrameWidthValue, sFrameHeightValue, oAdvancedSettings) {
|
|
38
49
|
var sSelectAdditionalTextPercent = bAsContainer
|
|
@@ -76,16 +87,23 @@ sap.ui.define([
|
|
|
76
87
|
frameHeightUnit: {
|
|
77
88
|
value: "vh"
|
|
78
89
|
},
|
|
90
|
+
// The URL entered by the user (without resolving bindings)
|
|
79
91
|
frameUrl: {
|
|
80
92
|
value: "",
|
|
81
93
|
valueState: ValueState.None
|
|
82
94
|
},
|
|
95
|
+
// URL value when the dialog was opened (without resolving bindings), to detect changes for update
|
|
96
|
+
initialFrameUrl: {
|
|
97
|
+
value: ""
|
|
98
|
+
},
|
|
99
|
+
// URL value when the last preview was generated (with resolved bindings), to control the preview button state
|
|
83
100
|
previousFrameUrl: {
|
|
84
101
|
value: ""
|
|
85
102
|
},
|
|
86
103
|
frameUrlError: {
|
|
87
104
|
value: undefined
|
|
88
105
|
},
|
|
106
|
+
// URL used for the iframe preview (with resolved bindings)
|
|
89
107
|
previewUrl: { value: "" },
|
|
90
108
|
parameters: { value: [] },
|
|
91
109
|
unitsOfWidthMeasure: [{
|
|
@@ -117,6 +135,7 @@ sap.ui.define([
|
|
|
117
135
|
...oAdvancedSettings
|
|
118
136
|
}
|
|
119
137
|
},
|
|
138
|
+
advancedSettingsConfig: _aAdvancedSettings,
|
|
120
139
|
settingsUpdate: {
|
|
121
140
|
value: false
|
|
122
141
|
},
|
|
@@ -132,7 +151,7 @@ sap.ui.define([
|
|
|
132
151
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
133
152
|
* @extends sap.ui.base.ManagedObject
|
|
134
153
|
* @author SAP SE
|
|
135
|
-
* @version 1.
|
|
154
|
+
* @version 1.146.0
|
|
136
155
|
* @constructor
|
|
137
156
|
* @private
|
|
138
157
|
* @since 1.78
|