@openui5/sap.ui.rta 1.126.1 → 1.128.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/THIRDPARTY.txt +1 -1
- 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 +2 -2
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/api/startAdaptation.js +2 -0
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +2 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +27 -27
- 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/Annotation.js +46 -0
- 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 +5 -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 +5 -2
- 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 +11 -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 -1
- 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 +5 -4
- package/src/sap/ui/rta/messagebundle_bg.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ca.properties +5 -4
- package/src/sap/ui/rta/messagebundle_cnr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_cs.properties +5 -4
- package/src/sap/ui/rta/messagebundle_cy.properties +5 -4
- package/src/sap/ui/rta/messagebundle_da.properties +5 -4
- package/src/sap/ui/rta/messagebundle_de.properties +6 -5
- package/src/sap/ui/rta/messagebundle_el.properties +5 -4
- package/src/sap/ui/rta/messagebundle_en.properties +3 -328
- package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -4
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +63 -53
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +12 -2
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +325 -315
- package/src/sap/ui/rta/messagebundle_es.properties +5 -4
- package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -4
- package/src/sap/ui/rta/messagebundle_et.properties +5 -4
- package/src/sap/ui/rta/messagebundle_fi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_fr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -4
- package/src/sap/ui/rta/messagebundle_hi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_hr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_hu.properties +5 -4
- package/src/sap/ui/rta/messagebundle_id.properties +5 -4
- package/src/sap/ui/rta/messagebundle_it.properties +6 -5
- package/src/sap/ui/rta/messagebundle_iw.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ja.properties +5 -4
- package/src/sap/ui/rta/messagebundle_kk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ko.properties +6 -5
- package/src/sap/ui/rta/messagebundle_lt.properties +5 -4
- package/src/sap/ui/rta/messagebundle_lv.properties +5 -4
- package/src/sap/ui/rta/messagebundle_mk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ms.properties +5 -4
- package/src/sap/ui/rta/messagebundle_nl.properties +5 -4
- package/src/sap/ui/rta/messagebundle_no.properties +5 -4
- package/src/sap/ui/rta/messagebundle_pl.properties +5 -4
- package/src/sap/ui/rta/messagebundle_pt.properties +5 -4
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ro.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ru.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sh.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sv.properties +5 -4
- package/src/sap/ui/rta/messagebundle_th.properties +5 -4
- package/src/sap/ui/rta/messagebundle_tr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_uk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_vi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -4
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -4
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +5 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +6 -6
- package/src/sap/ui/rta/plugin/ControlVariant.js +6 -6
- package/src/sap/ui/rta/plugin/CreateContainer.js +3 -3
- package/src/sap/ui/rta/plugin/CutPaste.js +3 -3
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +5 -2
- package/src/sap/ui/rta/plugin/Plugin.js +60 -2
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- 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 +5 -2
- package/src/sap/ui/rta/plugin/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +3 -3
- package/src/sap/ui/rta/plugin/Settings.js +35 -11
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- 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 +2 -2
- 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/iframe/AddIFrame.js +4 -5
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +21 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +42 -30
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +20 -6
- 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 +20 -2
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +8 -10
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +2 -3
- package/src/sap/ui/rta/themes/base/ContextMenu.less +13 -13
- package/src/sap/ui/rta/themes/base/Dialogs.less +2 -2
- package/src/sap/ui/rta/themes/base/FieldRepository.less +5 -10
- package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +9 -4
- package/src/sap/ui/rta/themes/base/Overlay.less +27 -180
- package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +18 -76
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +18 -18
- package/src/sap/ui/rta/themes/base/library.source.less +9 -11
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +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 +2 -1
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
120
120
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.128.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.75
|
|
@@ -177,7 +177,7 @@ sap.ui.define([
|
|
|
177
177
|
});
|
|
178
178
|
await IconPool.fontLoaded("tnt");
|
|
179
179
|
|
|
180
|
-
var iBaseRank =
|
|
180
|
+
var iBaseRank = this.getRank("CTX_CREATE_SIBLING_IFRAME");
|
|
181
181
|
var aMenuItems = [];
|
|
182
182
|
|
|
183
183
|
var bIsSibling = true;
|
|
@@ -191,18 +191,17 @@ sap.ui.define([
|
|
|
191
191
|
}, getCommonProperties.call(this));
|
|
192
192
|
|
|
193
193
|
aMenuItems.push(this.enhanceItemWithResponsibleElement(oSiblingMenuItem, aElementOverlays));
|
|
194
|
-
iBaseRank += 10;
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
|
|
198
197
|
bIsSibling = false;
|
|
199
198
|
if (this.isAvailable(aElementOverlays, bIsSibling)) {
|
|
200
199
|
aMenuItems = aMenuItems.concat(this.getCreateActions(bIsSibling, aElementOverlays[0])
|
|
201
|
-
.map(function(oAction
|
|
200
|
+
.map(function(oAction) {
|
|
202
201
|
var oParentMenuItem = Object.assign({
|
|
203
202
|
action: oAction,
|
|
204
203
|
id: `CTX_CREATE_CHILD_IFRAME_${oAction.aggregation.toUpperCase()}`,
|
|
205
|
-
rank: iBaseRank
|
|
204
|
+
rank: ++iBaseRank
|
|
206
205
|
}, getCommonProperties.call(this, oAction.aggregation));
|
|
207
206
|
|
|
208
207
|
return this.enhanceItemWithResponsibleElement(oParentMenuItem, aElementOverlays);
|
|
@@ -63,9 +63,13 @@
|
|
|
63
63
|
<Label id="sapUiRtaAddIFrameDialog_WidthLabel" class="sapUiRtaAddIFrameDialogWidthLabel" labelFor="sapUiRtaAddIFrameDialog_WidthInput"
|
|
64
64
|
text="{dialogInfo>/text/widthLabel}">
|
|
65
65
|
</Label>
|
|
66
|
-
<Input
|
|
66
|
+
<Input
|
|
67
|
+
id="sapUiRtaAddIFrameDialog_WidthInput"
|
|
68
|
+
class="sapUiRtaAddIFrameDialogWidthInput"
|
|
67
69
|
value="{path: 'dialogInfo>/frameWidth/value', type: 'FloatType', constraints: {minimum: 1}}"
|
|
68
|
-
valueState="{dialogInfo>/frameWidth/valueState}"
|
|
70
|
+
valueState="{dialogInfo>/frameWidth/valueState}"
|
|
71
|
+
valueStateText="{dialogInfo>/text/dimensionsErrorText}"
|
|
72
|
+
/>
|
|
69
73
|
<Select
|
|
70
74
|
id="sapUiRtaAddIFrameDialog_WidthUnit"
|
|
71
75
|
class="sapUiRtaAddIFrameDialogWidthUnit"
|
|
@@ -89,9 +93,13 @@
|
|
|
89
93
|
<form:content>
|
|
90
94
|
<Label id="sapUiRtaAddIFrameDialog_HeightLabel" class="sapUiRtaAddIFrameDialogHeightLabel" labelFor="sapUiRtaAddIFrameDialog_HeightInput"
|
|
91
95
|
text="{dialogInfo>/text/heightLabel}"/>
|
|
92
|
-
<Input
|
|
96
|
+
<Input
|
|
97
|
+
id="sapUiRtaAddIFrameDialog_HeightInput"
|
|
98
|
+
class="sapUiRtaAddIFrameDialogHeightInput"
|
|
93
99
|
value="{path: 'dialogInfo>/frameHeight/value', type: 'FloatType', constraints: {minimum: 1}}"
|
|
94
|
-
valueState="{dialogInfo>/frameHeight/valueState}"
|
|
100
|
+
valueState="{dialogInfo>/frameHeight/valueState}"
|
|
101
|
+
valueStateText="{dialogInfo>/text/dimensionsErrorText}"
|
|
102
|
+
/>
|
|
95
103
|
<Select
|
|
96
104
|
id="sapUiRtaAddIFrameDialog_HeightUnit"
|
|
97
105
|
class="sapUiRtaAddIFrameDialogHeightUnit"
|
|
@@ -152,8 +160,15 @@
|
|
|
152
160
|
<items>
|
|
153
161
|
<ColumnListItem type="Active" press="onParameterPress">
|
|
154
162
|
<cells>
|
|
155
|
-
<Text
|
|
156
|
-
|
|
163
|
+
<Text
|
|
164
|
+
text="{dialogInfo>label}"
|
|
165
|
+
tooltip="{dialogInfo>label}"
|
|
166
|
+
/>
|
|
167
|
+
<Text
|
|
168
|
+
text="{dialogInfo>value}"
|
|
169
|
+
tooltip="{=${dialogInfo>value}.toString()}"
|
|
170
|
+
wrapping="false"
|
|
171
|
+
/>
|
|
157
172
|
</cells>
|
|
158
173
|
</ColumnListItem>
|
|
159
174
|
</items>
|
|
@@ -42,6 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
widthUnitLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_WIDTH_UNITLABEL"),
|
|
43
43
|
heightLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_HEIGHT_LABEL"),
|
|
44
44
|
heightUnitLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_HEIGHT_UNITLABEL"),
|
|
45
|
+
dimensionsErrorText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_DIMENSIONS_ERROR"),
|
|
45
46
|
saveText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_SAVE"),
|
|
46
47
|
cancelText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_CANCEL"),
|
|
47
48
|
previewUrlLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_PREVIEW_URL_LABEL"),
|
|
@@ -158,7 +159,7 @@ sap.ui.define([
|
|
|
158
159
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
159
160
|
* @extends sap.ui.base.ManagedObject
|
|
160
161
|
* @author SAP SE
|
|
161
|
-
* @version 1.
|
|
162
|
+
* @version 1.128.0
|
|
162
163
|
* @constructor
|
|
163
164
|
* @private
|
|
164
165
|
* @since 1.78
|
|
@@ -261,37 +262,48 @@ sap.ui.define([
|
|
|
261
262
|
* @param {sap.ui.base.ManagedObject} oObject - Managed object to extract the context from
|
|
262
263
|
* @return {Promise<object[]>} Resolving to parameters array for URL builder exposed by the Add IFrame dialog
|
|
263
264
|
*/
|
|
264
|
-
AddIFrameDialog.buildUrlBuilderParametersFor = function(oObject) {
|
|
265
|
-
|
|
266
|
-
.
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
265
|
+
AddIFrameDialog.buildUrlBuilderParametersFor = async function(oObject) {
|
|
266
|
+
const oUserInfo = await getContainerUserInfo();
|
|
267
|
+
const oUserParameters = Object.keys(oUserInfo)
|
|
268
|
+
.map(function(sUserSetting) {
|
|
269
|
+
return {
|
|
270
|
+
label: sUserSetting,
|
|
271
|
+
key: `{$user>/${sUserSetting}}`,
|
|
272
|
+
value: oUserInfo[sUserSetting]
|
|
273
|
+
};
|
|
274
|
+
});
|
|
275
|
+
const oBindingContext = oObject.getBindingContext();
|
|
276
|
+
let aDefaultBoundObjectParameters;
|
|
277
|
+
if (oBindingContext) {
|
|
278
|
+
const oDefaultBoundObject = oBindingContext.getObject();
|
|
279
|
+
aDefaultBoundObjectParameters = Object.keys(oDefaultBoundObject)
|
|
280
|
+
.filter(function(sProperty) {
|
|
281
|
+
return typeof oDefaultBoundObject[sProperty] !== "object";
|
|
282
|
+
})
|
|
283
|
+
.map(async function(sProperty) {
|
|
284
|
+
const oModel = oBindingContext.getModel();
|
|
285
|
+
const oReturn = {
|
|
286
|
+
label: sProperty,
|
|
287
|
+
key: `{${sProperty}}`,
|
|
288
|
+
value: oDefaultBoundObject[sProperty]
|
|
273
289
|
};
|
|
290
|
+
// V4 Models automatically adjust values for certain data types based on localization settings,
|
|
291
|
+
// which can make them different from what we display on the table of parameters. We get the data
|
|
292
|
+
// type here to add the parameter to the URL later with the same value that was displayed on the table.
|
|
293
|
+
if (oModel.isA("sap.ui.model.odata.v4.ODataModel")) {
|
|
294
|
+
const oMetaModel = oModel.getMetaModel();
|
|
295
|
+
const sMetaPath = oMetaModel.getMetaPath(oBindingContext.getPath());
|
|
296
|
+
const sType = await oMetaModel.requestObject(`${sMetaPath}/${sProperty}/$Type`);
|
|
297
|
+
if (sType) {
|
|
298
|
+
oReturn.type = sType;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return oReturn;
|
|
274
302
|
});
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
oDefaultBoundObjectParameters = Object.keys(oDefaultBoundObject)
|
|
280
|
-
.filter(function(sProperty) {
|
|
281
|
-
return typeof oDefaultBoundObject[sProperty] !== "object";
|
|
282
|
-
})
|
|
283
|
-
.map(function(sProperty) {
|
|
284
|
-
return {
|
|
285
|
-
label: sProperty,
|
|
286
|
-
key: `{${sProperty}}`,
|
|
287
|
-
value: oDefaultBoundObject[sProperty]
|
|
288
|
-
};
|
|
289
|
-
});
|
|
290
|
-
} else {
|
|
291
|
-
oDefaultBoundObjectParameters = [];
|
|
292
|
-
}
|
|
293
|
-
return oUserParameters.concat(oDefaultBoundObjectParameters);
|
|
294
|
-
});
|
|
303
|
+
} else {
|
|
304
|
+
aDefaultBoundObjectParameters = [];
|
|
305
|
+
}
|
|
306
|
+
return oUserParameters.concat(await Promise.all(aDefaultBoundObjectParameters));
|
|
295
307
|
};
|
|
296
308
|
|
|
297
309
|
return AddIFrameDialog;
|
|
@@ -136,6 +136,7 @@ sap.ui.define([
|
|
|
136
136
|
onShowPreview() {
|
|
137
137
|
const sReturnedURL = this._buildReturnedURL();
|
|
138
138
|
const sURL = this._buildPreviewURL();
|
|
139
|
+
|
|
139
140
|
if (!isValidUrl(sURL).result) {
|
|
140
141
|
return;
|
|
141
142
|
}
|
|
@@ -150,11 +151,12 @@ sap.ui.define([
|
|
|
150
151
|
oPanelButton.setEnabled(false);
|
|
151
152
|
}
|
|
152
153
|
try {
|
|
153
|
-
this._oJSONModel.setProperty("/previewUrl/value", sURL);
|
|
154
154
|
this._oJSONModel.setProperty("/previousFrameUrl/value", sReturnedURL);
|
|
155
155
|
this._oJSONModel.setProperty("/settingsUpdate/value", false);
|
|
156
156
|
|
|
157
157
|
oIFrame.applySettings({ url: sURL, advancedSettings: {...this._oJSONModel.getProperty("/advancedSettings/value")} });
|
|
158
|
+
// Use the URL from the IFrame to ensure that the complete path is shown
|
|
159
|
+
this._oJSONModel.setProperty("/previewUrl/value", oIFrame.getUrl());
|
|
158
160
|
} catch (oError) {
|
|
159
161
|
Log.error("Error previewing the URL: ", oError);
|
|
160
162
|
}
|
|
@@ -165,8 +167,8 @@ sap.ui.define([
|
|
|
165
167
|
* @param {sap.ui.base.Event} oEvent - Event
|
|
166
168
|
*/
|
|
167
169
|
onParameterPress(oEvent) {
|
|
168
|
-
const
|
|
169
|
-
this._oJSONModel.setProperty("/frameUrl/value", this._addURLParameter(
|
|
170
|
+
const oObject = oEvent.getSource().getBindingContext("dialogInfo").getObject();
|
|
171
|
+
this._oJSONModel.setProperty("/frameUrl/value", this._addURLParameter(oObject));
|
|
170
172
|
this.onValidateUrl();
|
|
171
173
|
},
|
|
172
174
|
|
|
@@ -201,16 +203,28 @@ sap.ui.define([
|
|
|
201
203
|
/**
|
|
202
204
|
* Add URL parameter
|
|
203
205
|
*
|
|
204
|
-
* @param {
|
|
206
|
+
* @param {object} oObject - Parameter object
|
|
205
207
|
* @returns {string} URL with the added parameter
|
|
206
208
|
* @private
|
|
207
209
|
*/
|
|
208
|
-
_addURLParameter(
|
|
210
|
+
_addURLParameter(oObject) {
|
|
211
|
+
const sParameterKey = oObject.key;
|
|
212
|
+
let sParameterString;
|
|
213
|
+
// If the type is available, this is an OData V4 Model and the target type must be set to 'any' when adding the parameter
|
|
214
|
+
// to the URL to prevent it from being resolved to a localized value.
|
|
215
|
+
// E.g. boolean is resolved to "yes/no" in a system with English locale - but we need to add "true/false" to the URL
|
|
216
|
+
// The only type that does not require this special handling is Edm.String
|
|
217
|
+
if (oObject.type && oObject.type !== "Edm.String") {
|
|
218
|
+
const [, sParameter] = sParameterKey.match(/\{(.+?)\}/);
|
|
219
|
+
sParameterString = `{path:'${sParameter}',targetType:'any'}`;
|
|
220
|
+
} else {
|
|
221
|
+
sParameterString = sParameterKey;
|
|
222
|
+
}
|
|
209
223
|
const oTextField = Element.getElementById("sapUiRtaAddIFrameDialog_EditUrlTA");
|
|
210
224
|
const iCurrentSelectionStart = oTextField.getFocusDomRef().selectionStart;
|
|
211
225
|
const iCurrentSelectionEnd = oTextField.getFocusDomRef().selectionEnd;
|
|
212
226
|
const sCurrentUrl = this._buildReturnedURL();
|
|
213
|
-
return `${sCurrentUrl.substring(0, iCurrentSelectionStart)}${
|
|
227
|
+
return `${sCurrentUrl.substring(0, iCurrentSelectionStart)}${sParameterString}${sCurrentUrl.substring(iCurrentSelectionEnd)}`;
|
|
214
228
|
},
|
|
215
229
|
|
|
216
230
|
/**
|
|
@@ -14,7 +14,7 @@ sap.ui.define(function() {
|
|
|
14
14
|
* @name sap.ui.rta.service.Selection
|
|
15
15
|
* @author SAP SE
|
|
16
16
|
* @since 1.58
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.128.0
|
|
18
18
|
* @private
|
|
19
19
|
* @ui5-restricted
|
|
20
20
|
*/
|
|
@@ -88,7 +88,25 @@ sap.ui.define(function() {
|
|
|
88
88
|
* @returns {boolean} <code>true</code> if completed successfully (<code>false</code> if there is nothing to reset)
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
|
-
reset: oSelectionManager.reset.bind(oSelectionManager)
|
|
91
|
+
reset: oSelectionManager.reset.bind(oSelectionManager),
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Adds hover effect to the specified controls.
|
|
95
|
+
*
|
|
96
|
+
* @method sap.ui.rta.service.Selection.addHover
|
|
97
|
+
* @param {string|string[]} vControlIds - Control IDs to which to add the hover effect
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
addHover: oSelectionManager.addHover.bind(oSelectionManager),
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Removes hover effect from the specified controls.
|
|
104
|
+
*
|
|
105
|
+
* @method sap.ui.rta.service.Selection.removeHover
|
|
106
|
+
* @param {string|string[]} vControlIds - Control IDs from which to remove the hover effect
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
removeHover: oSelectionManager.removeHover.bind(oSelectionManager)
|
|
92
110
|
}
|
|
93
111
|
};
|
|
94
112
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/******************************************************************
|
|
2
2
|
Style of the RTA Add IFrame Dialog - base Theme
|
|
3
3
|
*******************************************************************/
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@_sap_ui_rta_AddIFrame_PreviewBG: @sapUiListTableGroupHeaderBackground; //#f2f2f2
|
|
4
|
+
@_sap_ui_rta_AddIFrame_BorderColor: @sapUiGroupContentBorderColor; //#000;
|
|
5
|
+
@_sap_ui_rta_AddIFrame_PreviewBackgroundColor: @sapUiContentImagePlaceholderBackground; //#fff
|
|
6
|
+
@_sap_ui_rta_AddIFrame_PreviewTextColor: @sapUiContentForegroundTextColor; //#000
|
|
8
7
|
|
|
9
8
|
.sapUiRtaMode {
|
|
10
9
|
.sapUiRtaAddIFrameDialog {
|
|
@@ -16,10 +15,6 @@
|
|
|
16
15
|
&:focus::after {
|
|
17
16
|
content: none;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
.sapMTitle {
|
|
21
|
-
color: @_sap_ui_rta_AddIFrame_Title;
|
|
22
|
-
}
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
.sapUiRtaAddIFrameDialogVlWrapper {
|
|
@@ -48,7 +43,7 @@
|
|
|
48
43
|
.sapUiRtaAddIFrameDialogPercentGrid {
|
|
49
44
|
padding: 0.25rem 0 0 0;
|
|
50
45
|
margin: 0 1rem;
|
|
51
|
-
border-bottom: 0.0625rem solid @
|
|
46
|
+
border-bottom: 0.0625rem solid @_sap_ui_rta_AddIFrame_BorderColor; //1px
|
|
52
47
|
|
|
53
48
|
> div {
|
|
54
49
|
margin-bottom: 0.25rem;
|
|
@@ -119,7 +114,7 @@
|
|
|
119
114
|
.sapUiRtaAddIFrameDialogPreviewGrid {
|
|
120
115
|
padding: 0;
|
|
121
116
|
margin: 0 1rem 1rem;
|
|
122
|
-
background: @
|
|
117
|
+
background: @_sap_ui_rta_AddIFrame_PreviewBackgroundColor;
|
|
123
118
|
border: 0.0625rem solid @_sap_ui_rta_AddIFrame_BorderColor; //1px
|
|
124
119
|
|
|
125
120
|
> div {
|
|
@@ -130,6 +125,9 @@
|
|
|
130
125
|
.sapUiRtaAddIFrameDialogNoPreviewLabel {
|
|
131
126
|
margin-top: 4rem;
|
|
132
127
|
}
|
|
128
|
+
.sapMLabelTextWrapper {
|
|
129
|
+
color: @_sap_ui_rta_AddIFrame_PreviewTextColor;
|
|
130
|
+
}
|
|
133
131
|
}
|
|
134
132
|
}
|
|
135
133
|
}
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorLight: @sapUiChartPaletteSequentialHue1Light1; //#4880cb
|
|
5
5
|
@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorMedium: @sapUiChartPaletteSequentialHue1Dark1; //#1b57a7
|
|
6
6
|
@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark: @sapUiChartPaletteSequentialHue11Dark2; //#0e4186
|
|
7
|
-
@_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent: @sapUiGroupTitleBackground; //#fff
|
|
8
7
|
@_sap_ui_rta_ChangeVisualization_OverlayBoxShadow: @sapUiUx3ToolPopupShadow; //0px 6px 12px 0px fade(black, 30);
|
|
9
|
-
@
|
|
8
|
+
@_sap_ui_rta_ChangeVisualization_OverlayOutlineColor: @sapUiSelected; //#8fb5ff
|
|
10
9
|
|
|
11
10
|
.sapUiRtaChangeIndicator {
|
|
12
11
|
height: 0.8rem;
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
content: " ";
|
|
56
55
|
transition: box-shadow .25s;
|
|
57
56
|
box-shadow: @_sap_ui_rta_ChangeVisualization_OverlayBoxShadow;
|
|
58
|
-
outline: 0.0625rem solid @
|
|
57
|
+
outline: 0.0625rem solid @_sap_ui_rta_ChangeVisualization_OverlayOutlineColor !important; //1px
|
|
59
58
|
outline-offset: -0.0625rem; //1px
|
|
60
59
|
}
|
|
61
60
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/******************************************************************
|
|
2
2
|
Style of the RTA Contextmenu - base Theme
|
|
3
3
|
*******************************************************************/
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
4
|
+
@_sap_ui_rta_ContextMenu_BorderLightColor: @sapUiButtonLiteBorderColor; //#fff
|
|
5
|
+
@_sap_ui_rta_ContextMenu_BorderDarkColor: @sapUiButtonAcceptBorderColor; //#006362
|
|
6
|
+
@_sap_ui_rta_ContextMenu_BoxShadowDarkColor: @sapUiDarkShadowTint; // #000
|
|
7
|
+
@_sap_ui_rta_ContextMenu_BoxShadowLightColor: @sapUiLightShadowTint; // #fff
|
|
8
8
|
|
|
9
|
-
@_sap_ui_rta_ContextMenu_BoxShadow: 0.375rem 0.625rem 2rem fade(@
|
|
10
|
-
0.125rem 0.375rem 1rem fade(@
|
|
11
|
-
0 0 0 0.0625rem fade(@
|
|
12
|
-
0 0.0625rem 0 0 fade(@
|
|
9
|
+
@_sap_ui_rta_ContextMenu_BoxShadow: 0.375rem 0.625rem 2rem fade(@_sap_ui_rta_ContextMenu_BoxShadowDarkColor, 30),
|
|
10
|
+
0.125rem 0.375rem 1rem fade(@_sap_ui_rta_ContextMenu_BoxShadowDarkColor, 60),
|
|
11
|
+
0 0 0 0.0625rem fade(@_sap_ui_rta_ContextMenu_BoxShadowLightColor, 20),
|
|
12
|
+
0 0.0625rem 0 0 fade(@_sap_ui_rta_ContextMenu_BoxShadowLightColor, 20); //10px 20px 6px 6px 1px 1px
|
|
13
13
|
|
|
14
14
|
.sapUiRtaMode {
|
|
15
15
|
.sapUiDtContextMenu {
|
|
16
16
|
&.sapMMenu {
|
|
17
|
-
border: 0.125rem solid @
|
|
18
|
-
border-image: repeating-linear-gradient(-45deg, @
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
17
|
+
border: 0.125rem solid @_sap_ui_rta_ContextMenu_BorderLightColor; //2px
|
|
18
|
+
border-image: repeating-linear-gradient(-45deg, @_sap_ui_rta_ContextMenu_BorderDarkColor,
|
|
19
|
+
@_sap_ui_rta_ContextMenu_BorderDarkColor 0.25rem,
|
|
20
|
+
@_sap_ui_rta_ContextMenu_BorderLightColor 0.25rem,
|
|
21
|
+
@_sap_ui_rta_ContextMenu_BorderLightColor 0.375rem) 4;
|
|
22
22
|
box-shadow: @_sap_ui_rta_ContextMenu_BoxShadow;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/******************************************************************
|
|
2
2
|
Style of the RTA Dialogs - base Theme
|
|
3
3
|
*******************************************************************/
|
|
4
|
-
@_sap_ui_rta_Dialogs_BorderLightColor: @
|
|
5
|
-
@_sap_ui_rta_Dialogs_BorderDarkColor:
|
|
4
|
+
@_sap_ui_rta_Dialogs_BorderLightColor: @sapUiButtonLiteBorderColor; //#fff
|
|
5
|
+
@_sap_ui_rta_Dialogs_BorderDarkColor: @sapUiButtonAcceptBorderColor; //#006362
|
|
6
6
|
@_sap_ui_rta_Dialogs_BoxShadowDarkColor: @sapUiDarkShadowTint; // #000
|
|
7
7
|
@_sap_ui_rta_Dialogs_BoxShadowLightColor: @sapUiLightShadowTint; // #fff
|
|
8
8
|
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
/******************************************************************
|
|
2
2
|
Style of the RTA Add Fields Dialog - base Theme
|
|
3
3
|
*******************************************************************/
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@_sap_ui_rta_FieldRepository_BC_Container_Border: @sapUiGroupContentBorderColor; //#000
|
|
4
|
+
@_sap_ui_rta_FieldRepository_BtnFocusOutlineColor: @sapUiContentFocusColor; //#000
|
|
5
|
+
@_sap_ui_rta_FieldRepository_BC_Container_BorderColor: @sapUiGroupContentBorderColor; //#000
|
|
7
6
|
|
|
8
7
|
.sapUIRtaFieldRepositoryDialog {
|
|
9
8
|
|
|
10
|
-
&.sapMDialog > header .sapMDialogTitleGroup .sapMTitle {
|
|
11
|
-
color: @_sap_ui_rta_FieldRepository_Title;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
9
|
.sapMBtn {
|
|
15
10
|
&:focus {
|
|
16
11
|
> .sapMBtnInner {
|
|
17
|
-
outline: 0.0625rem dotted @
|
|
12
|
+
outline: 0.0625rem dotted @_sap_ui_rta_FieldRepository_BtnFocusOutlineColor; //1px
|
|
18
13
|
border: 0.0625rem solid transparent;
|
|
19
14
|
}
|
|
20
15
|
}
|
|
@@ -28,10 +23,10 @@
|
|
|
28
23
|
width: 100%;
|
|
29
24
|
margin-top: 0.25rem; //4px
|
|
30
25
|
padding-bottom: 0.5rem; //8px
|
|
31
|
-
border-bottom: 0.0625rem solid @
|
|
26
|
+
border-bottom: 0.0625rem solid @_sap_ui_rta_FieldRepository_BC_Container_BorderColor; //1px
|
|
32
27
|
|
|
33
28
|
> div:not(:first-child) {
|
|
34
|
-
padding-left: 2.125rem;
|
|
29
|
+
padding-left: 2.125rem; //34px
|
|
35
30
|
padding-right: 0.625rem; //10px
|
|
36
31
|
}
|
|
37
32
|
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
/******************************************************************
|
|
2
2
|
Style used by flex support chrome extension - base Theme
|
|
3
3
|
*******************************************************************/
|
|
4
|
+
@_sap_ui_rta_FlexSupportExtension_BoxShadow: @sapUiUx3ToolPopupShadow; //0px 6px 12px 0px fade(black, 30);
|
|
5
|
+
@_sap_ui_rta_FlexSupportExtension_BackgroundColor: fade(@sapUiSelected, 5%); //rgba(143, 181, 255, 0.05);
|
|
6
|
+
@_sap_ui_rta_FlexSupportExtension_BorderRadius: @sapUiButtonBorderCornerRadius; //0.375rem
|
|
7
|
+
@_sap_ui_rta_FlexSupportExtension_OutlineColor: @sapUiSelected; //#8fb5ff
|
|
8
|
+
|
|
4
9
|
.sapUiFlexibilitySupportExtension_Selected {
|
|
5
|
-
box-shadow: @
|
|
10
|
+
box-shadow: @_sap_ui_rta_FlexSupportExtension_BoxShadow;
|
|
6
11
|
&:after {
|
|
7
12
|
content: " ";
|
|
8
|
-
background: @
|
|
13
|
+
background: @_sap_ui_rta_FlexSupportExtension_BackgroundColor;
|
|
9
14
|
opacity: 0.40;
|
|
10
|
-
border-radius: @
|
|
11
|
-
outline: 0.125rem solid @
|
|
15
|
+
border-radius: @_sap_ui_rta_FlexSupportExtension_BorderRadius;
|
|
16
|
+
outline: 0.125rem solid @_sap_ui_rta_FlexSupportExtension_OutlineColor; //1px
|
|
12
17
|
outline-offset: -0.125rem; //1px
|
|
13
18
|
}
|
|
14
19
|
}
|