@openui5/sap.ui.rta 1.123.1 → 1.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +1 -1
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +4 -4
- 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/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/TestDelegate.js +23 -4
- 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 +10 -4
- package/src/sap/ui/rta/messagebundle_ar.properties +5 -2
- package/src/sap/ui/rta/messagebundle_bg.properties +6 -3
- package/src/sap/ui/rta/messagebundle_ca.properties +5 -2
- package/src/sap/ui/rta/messagebundle_cnr.properties +5 -2
- package/src/sap/ui/rta/messagebundle_cs.properties +5 -2
- package/src/sap/ui/rta/messagebundle_cy.properties +6 -3
- package/src/sap/ui/rta/messagebundle_da.properties +5 -2
- package/src/sap/ui/rta/messagebundle_de.properties +6 -3
- package/src/sap/ui/rta/messagebundle_el.properties +6 -3
- package/src/sap/ui/rta/messagebundle_en.properties +5 -326
- package/src/sap/ui/rta/messagebundle_en_GB.properties +6 -3
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -3
- package/src/sap/ui/rta/messagebundle_es.properties +5 -2
- package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -2
- package/src/sap/ui/rta/messagebundle_et.properties +5 -2
- package/src/sap/ui/rta/messagebundle_fi.properties +6 -3
- package/src/sap/ui/rta/messagebundle_fr.properties +5 -2
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -2
- package/src/sap/ui/rta/messagebundle_hi.properties +5 -2
- package/src/sap/ui/rta/messagebundle_hr.properties +6 -3
- package/src/sap/ui/rta/messagebundle_hu.properties +6 -3
- package/src/sap/ui/rta/messagebundle_id.properties +6 -3
- package/src/sap/ui/rta/messagebundle_it.properties +6 -3
- package/src/sap/ui/rta/messagebundle_iw.properties +6 -3
- package/src/sap/ui/rta/messagebundle_ja.properties +6 -3
- package/src/sap/ui/rta/messagebundle_kk.properties +5 -2
- package/src/sap/ui/rta/messagebundle_ko.properties +5 -2
- package/src/sap/ui/rta/messagebundle_lt.properties +6 -3
- package/src/sap/ui/rta/messagebundle_lv.properties +5 -2
- package/src/sap/ui/rta/messagebundle_mk.properties +7 -4
- package/src/sap/ui/rta/messagebundle_ms.properties +6 -3
- package/src/sap/ui/rta/messagebundle_nl.properties +5 -2
- package/src/sap/ui/rta/messagebundle_no.properties +5 -2
- package/src/sap/ui/rta/messagebundle_pl.properties +5 -2
- package/src/sap/ui/rta/messagebundle_pt.properties +6 -3
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +6 -3
- package/src/sap/ui/rta/messagebundle_ro.properties +6 -3
- package/src/sap/ui/rta/messagebundle_ru.properties +5 -2
- package/src/sap/ui/rta/messagebundle_sh.properties +107 -104
- package/src/sap/ui/rta/messagebundle_sk.properties +5 -2
- package/src/sap/ui/rta/messagebundle_sl.properties +7 -4
- package/src/sap/ui/rta/messagebundle_sr.properties +5 -2
- package/src/sap/ui/rta/messagebundle_sv.properties +5 -2
- package/src/sap/ui/rta/messagebundle_th.properties +5 -2
- package/src/sap/ui/rta/messagebundle_tr.properties +5 -2
- package/src/sap/ui/rta/messagebundle_uk.properties +5 -2
- package/src/sap/ui/rta/messagebundle_vi.properties +6 -3
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -2
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -2
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.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/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +5 -4
- 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 +110 -134
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +15 -12
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +126 -24
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +19 -9
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +44 -30
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +0 -5
- 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/BindingsExtractor.js +24 -9
- 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/adaptationStarter.js +0 -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
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
contentWidth="50rem"
|
|
18
18
|
contentHeight="44rem"
|
|
19
19
|
core:require="{ FloatType: 'sap/ui/model/type/Float' }"
|
|
20
|
+
afterOpen="configureMultiInput"
|
|
20
21
|
>
|
|
21
22
|
<content>
|
|
22
|
-
|
|
23
23
|
<layout:VerticalLayout
|
|
24
24
|
id="sapUiRtaAddIFrameDialog_VL"
|
|
25
25
|
width="100%"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
ariaLabelledBy="sapUiRtaAddIFrameDialog_WidthUnitLabel"
|
|
73
73
|
selectedKey="{dialogInfo>/frameWidthUnit/value}"
|
|
74
74
|
items="{dialogInfo>/unitsOfWidthMeasure}"
|
|
75
|
-
showSecondaryValues=
|
|
75
|
+
showSecondaryValues="true"
|
|
76
76
|
columnRatio="1:5"
|
|
77
77
|
width="auto"
|
|
78
78
|
maxWidth="400px">
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
selectedKey="{dialogInfo>/frameHeightUnit/value}"
|
|
100
100
|
forceSelection="false"
|
|
101
101
|
items="{dialogInfo>/unitsOfHeightMeasure}"
|
|
102
|
-
showSecondaryValues=
|
|
102
|
+
showSecondaryValues="true"
|
|
103
103
|
columnRatio="1:5"
|
|
104
104
|
width="auto"
|
|
105
105
|
maxWidth="400px">
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
<ToolbarSpacer />
|
|
209
209
|
<Button
|
|
210
210
|
id="sapUiRtaAddIFrameDialog_PreviewButton"
|
|
211
|
-
enabled="{= !${dialogInfo>/frameUrlError/value} && ${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/
|
|
211
|
+
enabled="{= !${dialogInfo>/frameUrlError/value} && (${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/settingsUpdate/value})}"
|
|
212
212
|
text="{=${dialogInfo>/previewUrl/value} === '' ? ${dialogInfo>/text/showPreviewButton} : ${dialogInfo>/text/updatePreviewButton} }"
|
|
213
213
|
press="onShowPreview"
|
|
214
214
|
class="sapUiTinyMarginTop sapUiRtaAddIFrameDialogPreviewButton" />
|
|
@@ -219,7 +219,12 @@
|
|
|
219
219
|
<Link
|
|
220
220
|
id="sapUiRtaAddIFrameDialog_PreviewLink"
|
|
221
221
|
class="sapUiRtaAddIFrameDialogPreviewLink"
|
|
222
|
-
href="{dialogInfo>/previewUrl/value}"
|
|
222
|
+
href="{dialogInfo>/previewUrl/value}"
|
|
223
|
+
text="{dialogInfo>/previewUrl/value}"
|
|
224
|
+
wrapping="true"
|
|
225
|
+
visible="{= !!${dialogInfo>/previewUrl/value} }"
|
|
226
|
+
target="_blank"
|
|
227
|
+
/>
|
|
223
228
|
</content>
|
|
224
229
|
</Panel>
|
|
225
230
|
</layout:Grid>
|
|
@@ -244,8 +249,8 @@
|
|
|
244
249
|
id="sapUiRtaAddIFrameDialog_PreviewFrame"
|
|
245
250
|
height="100%"
|
|
246
251
|
title="{dialogInfo>/text/previewFrameLabel}"
|
|
247
|
-
useLegacyNavigation="{dialogInfo>/previewUseLegacyNavigation/value/}"
|
|
248
252
|
class="sapUiRtaAddIFrameDialogPreviewFrame"
|
|
253
|
+
advancedSettings="{dialogInfo>/advancedSettings/value}"
|
|
249
254
|
visible="{= !!${dialogInfo>/previewUrl/value} }"/>
|
|
250
255
|
</items>
|
|
251
256
|
</VBox>
|
|
@@ -255,13 +260,17 @@
|
|
|
255
260
|
containerQuery="true"
|
|
256
261
|
defaultSpan="XL12 L12 M12 S12">
|
|
257
262
|
<Panel
|
|
263
|
+
id="sapUiRtaAddIFrameDialog_AdvancedSettingsPanel"
|
|
258
264
|
expandable="true"
|
|
259
265
|
width="auto"
|
|
260
266
|
expanded="false"
|
|
261
267
|
class="sapUiResponsiveMargin sapUiRtaAddIFrameDialogPreviewLinkPanel">
|
|
262
268
|
<headerToolbar>
|
|
263
269
|
<OverflowToolbar
|
|
264
|
-
|
|
270
|
+
id="sapUiRtaAddIFrameDialog_AdvancedSettingsToolbar"
|
|
271
|
+
class="sapUiRtaAddIFrameDialogPreviewLinkToolbar"
|
|
272
|
+
height="3rem"
|
|
273
|
+
style="Clear">
|
|
265
274
|
<Title
|
|
266
275
|
class="sapUiRtaAddIFrameDialogPreviewLinkTitle"
|
|
267
276
|
text="{dialogInfo>/text/advancedSettingsTitle}" />
|
|
@@ -269,22 +278,116 @@
|
|
|
269
278
|
</OverflowToolbar>
|
|
270
279
|
</headerToolbar>
|
|
271
280
|
<content>
|
|
272
|
-
<
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
281
|
+
<MessageStrip
|
|
282
|
+
id="sapUiRtaAddIFrameDialog_SecurityWarningMessage"
|
|
283
|
+
text="{dialogInfo>/text/additionalParametersSecurityWarningText}"
|
|
284
|
+
type="Warning"
|
|
285
|
+
showIcon="true"
|
|
286
|
+
showCloseButton="true"
|
|
287
|
+
class="sapUiSmallMarginBottom">
|
|
288
|
+
<link>
|
|
289
|
+
<Link text="{dialogInfo>/text/additionalParametersWarningMoreInfoText}"
|
|
290
|
+
target="_blank"
|
|
291
|
+
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox"/>
|
|
292
|
+
</link>
|
|
293
|
+
</MessageStrip>
|
|
294
|
+
<form:Form editable="true">
|
|
295
|
+
<form:layout>
|
|
296
|
+
<form:ResponsiveGridLayout
|
|
297
|
+
id="sapUiRtaAddIFrameDialog_SanboxPropertiesForm"
|
|
298
|
+
adjustLabelSpan="false" singleContainerFullSize="false"
|
|
299
|
+
labelSpanXL="6" labelSpanL="6" labelSpanM="6" labelSpanS="12"
|
|
300
|
+
columnsXL="2" columnsL="2" columnsM="2"/>
|
|
301
|
+
</form:layout>
|
|
302
|
+
<form:FormContainer>
|
|
303
|
+
<form:FormElement label="allow-forms">
|
|
304
|
+
<Switch
|
|
305
|
+
change="onSwitchChange"
|
|
306
|
+
id="sapUiRtaAddIFrameDialog_allowFormsSwitch"
|
|
307
|
+
customTextOn=" "
|
|
308
|
+
customTextOff=" "
|
|
309
|
+
state="{dialogInfo>/advancedSettings/value/allowForms}" />
|
|
310
|
+
</form:FormElement>
|
|
311
|
+
<form:FormElement label="allow-popups">
|
|
312
|
+
<Switch
|
|
313
|
+
change="onSwitchChange"
|
|
314
|
+
id="sapUiRtaAddIFrameDialog_allowPopupsSwitch"
|
|
315
|
+
customTextOn=" "
|
|
316
|
+
customTextOff=" "
|
|
317
|
+
state="{dialogInfo>/advancedSettings/value/allowPopups}" />
|
|
318
|
+
</form:FormElement>
|
|
319
|
+
<form:FormElement label="allow-scripts">
|
|
320
|
+
<Switch
|
|
321
|
+
change="onSwitchChange"
|
|
322
|
+
id="sapUiRtaAddIFrameDialog_allowScriptsSwitch"
|
|
323
|
+
customTextOn=" "
|
|
324
|
+
customTextOff=" "
|
|
325
|
+
state="{dialogInfo>/advancedSettings/value/allowScripts}" />
|
|
326
|
+
</form:FormElement>
|
|
327
|
+
<form:FormElement label="allow-modals">
|
|
328
|
+
<Switch
|
|
329
|
+
change="onSwitchChange"
|
|
330
|
+
id="sapUiRtaAddIFrameDialog_allowModalsSwitch"
|
|
331
|
+
customTextOn=" "
|
|
332
|
+
customTextOff=" "
|
|
333
|
+
state="{dialogInfo>/advancedSettings/value/allowModals}" />
|
|
334
|
+
</form:FormElement>
|
|
335
|
+
<form:FormElement label="allow-same-origin">
|
|
336
|
+
<Switch
|
|
337
|
+
change="onSwitchChange"
|
|
338
|
+
id="sapUiRtaAddIFrameDialog_allowSameOriginSwitch"
|
|
339
|
+
customTextOn=" "
|
|
340
|
+
customTextOff=" "
|
|
341
|
+
state="{dialogInfo>/advancedSettings/value/allowSameOrigin}" />
|
|
342
|
+
</form:FormElement>
|
|
343
|
+
</form:FormContainer>
|
|
344
|
+
<form:FormContainer>
|
|
345
|
+
<form:FormElement label="allow-top-navigation">
|
|
346
|
+
<Switch
|
|
347
|
+
change="onSwitchChange"
|
|
348
|
+
id="sapUiRtaAddIFrameDialog_allowTopNavigationSwitch"
|
|
349
|
+
customTextOn=" "
|
|
350
|
+
customTextOff=" "
|
|
351
|
+
state="{dialogInfo>/advancedSettings/value/allowTopNavigation}" />
|
|
352
|
+
</form:FormElement>
|
|
353
|
+
<form:FormElement label="allow-downloads">
|
|
354
|
+
<Switch
|
|
355
|
+
change="onSwitchChange"
|
|
356
|
+
id="sapUiRtaAddIFrameDialog_allowDownloadsSwitch"
|
|
357
|
+
customTextOn=" "
|
|
358
|
+
customTextOff=" "
|
|
359
|
+
state="{dialogInfo>/advancedSettings/value/allowDownloads}" />
|
|
360
|
+
</form:FormElement>
|
|
361
|
+
<form:FormElement label="allow-downloads-without-user-activation">
|
|
362
|
+
<Switch
|
|
363
|
+
change="onSwitchChange"
|
|
364
|
+
id="sapUiRtaAddIFrameDialog_allowDownloadsWithoutUserActivationSwitch"
|
|
365
|
+
customTextOn=" "
|
|
366
|
+
customTextOff=" "
|
|
367
|
+
state="{dialogInfo>/advancedSettings/value/allowDownloadsWithoutUserActivation}" />
|
|
368
|
+
</form:FormElement>
|
|
369
|
+
<form:FormElement>
|
|
370
|
+
<Label
|
|
371
|
+
id="sapUiRtaAddIFrameDialog_AddAdditionalParametersLabel"
|
|
372
|
+
class="sapUiSmallMarginTop"
|
|
373
|
+
text="{dialogInfo>/text/additionalSandboxParametersLabel}"
|
|
374
|
+
labelFor="sapUiRtaAddIFrameDialog_AddAdditionalParametersInput" />
|
|
375
|
+
</form:FormElement>
|
|
376
|
+
<form:FormElement>
|
|
377
|
+
<MultiInput
|
|
378
|
+
id="sapUiRtaAddIFrameDialog_AddAdditionalParametersInput"
|
|
379
|
+
placeholder="{dialogInfo>/text/additionalSandboxParametersPlaceholder}"
|
|
380
|
+
showValueHelp="false"
|
|
381
|
+
tokenUpdate="onTokenUpdate"
|
|
382
|
+
tokens="{dialogInfo>/advancedSettings/value/additionalSandboxParameters}"
|
|
383
|
+
ariaLabelledBy="sapUiRtaAddIFrameDialog_AddAdditionalParametersLabel">
|
|
384
|
+
<tokens>
|
|
385
|
+
<Token text="{dialogInfo>}" key="{dialogInfo>}"/>
|
|
386
|
+
</tokens>
|
|
387
|
+
</MultiInput>
|
|
388
|
+
</form:FormElement>
|
|
389
|
+
</form:FormContainer>
|
|
390
|
+
</form:Form>
|
|
288
391
|
</content>
|
|
289
392
|
</Panel>
|
|
290
393
|
</layout:Grid>
|
|
@@ -295,7 +398,6 @@
|
|
|
295
398
|
<core:InvisibleText id="sapUiRtaAddIFrameDialog_HeightUnitLabel" text="{dialogInfo>/text/heightUnitLabel}"/>
|
|
296
399
|
<core:InvisibleText id="sapUiRtaAddIFrameDialog_ParameterSearchLabel" text="{dialogInfo>/text/parameterSearchLabel}"/>
|
|
297
400
|
</content>
|
|
298
|
-
|
|
299
401
|
<beginButton>
|
|
300
402
|
<Button
|
|
301
403
|
id="sapUiRtaAddIFrameDialogSaveButton"
|
|
@@ -63,11 +63,13 @@ sap.ui.define([
|
|
|
63
63
|
selectAdditionalTextPx: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PX"),
|
|
64
64
|
selectAdditionalTextRem: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_REM"),
|
|
65
65
|
advancedSettingsTitle: _oTextResources.getText("IFRAME_ADDIFRAME_ADVANCED_SETTINGS"),
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
additionalParametersSecurityWarningText: _oTextResources.getText("IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_SECURITY_WARNING_TEXT"),
|
|
67
|
+
additionalParametersWarningMoreInfoText: _oTextResources.getText("IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_WARNING_MORE_INFO_TEXT"),
|
|
68
|
+
additionalSandboxParametersLabel: _oTextResources.getText("IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL"),
|
|
69
|
+
additionalSandboxParametersPlaceholder: _oTextResources.getText("IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_PLACEHOLDER")
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
function createJSONModel(bSetUpdateTitle, bAsContainer, sFrameWidthValue, sFrameHeightValue,
|
|
72
|
+
function createJSONModel(bSetUpdateTitle, bAsContainer, sFrameWidthValue, sFrameHeightValue, oAdvancedSettings) {
|
|
71
73
|
_mText.dialogTitle = bSetUpdateTitle ? _mText.dialogUpdateTitle : _mText.dialogCreateTitle;
|
|
72
74
|
|
|
73
75
|
var sSelectAdditionalTextPercent = bAsContainer
|
|
@@ -135,11 +137,19 @@ sap.ui.define([
|
|
|
135
137
|
unit: "rem",
|
|
136
138
|
descriptionText: _mText.selectAdditionalTextRem
|
|
137
139
|
}],
|
|
138
|
-
|
|
139
|
-
value:
|
|
140
|
+
advancedSettings: {
|
|
141
|
+
value: {
|
|
142
|
+
allowForms: true,
|
|
143
|
+
allowPopups: true,
|
|
144
|
+
allowScripts: true,
|
|
145
|
+
allowModals: true,
|
|
146
|
+
allowSameOrigin: true,
|
|
147
|
+
additionalSandboxParameters: [],
|
|
148
|
+
...oAdvancedSettings
|
|
149
|
+
}
|
|
140
150
|
},
|
|
141
|
-
|
|
142
|
-
value:
|
|
151
|
+
settingsUpdate: {
|
|
152
|
+
value: false
|
|
143
153
|
}
|
|
144
154
|
});
|
|
145
155
|
}
|
|
@@ -150,7 +160,7 @@ sap.ui.define([
|
|
|
150
160
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
151
161
|
* @extends sap.ui.base.ManagedObject
|
|
152
162
|
* @author SAP SE
|
|
153
|
-
* @version 1.
|
|
163
|
+
* @version 1.124.1
|
|
154
164
|
* @constructor
|
|
155
165
|
* @private
|
|
156
166
|
* @since 1.78
|
|
@@ -193,7 +203,7 @@ sap.ui.define([
|
|
|
193
203
|
!!mSettings?.asContainer,
|
|
194
204
|
mSettings?.frameWidth,
|
|
195
205
|
mSettings?.frameHeight,
|
|
196
|
-
mSettings?.
|
|
206
|
+
mSettings?.advancedSettings
|
|
197
207
|
);
|
|
198
208
|
this._oController = new AddIFrameDialogController(this._oJSONModel, mSettings);
|
|
199
209
|
Fragment.load({
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/Log",
|
|
8
|
-
"sap/m/
|
|
9
|
-
"sap/m/Text",
|
|
8
|
+
"sap/m/Token",
|
|
10
9
|
"sap/ui/core/mvc/Controller",
|
|
11
10
|
"sap/ui/core/Element",
|
|
12
11
|
"sap/ui/core/Lib",
|
|
@@ -18,8 +17,7 @@ sap.ui.define([
|
|
|
18
17
|
"sap/ui/rta/plugin/iframe/urlCleaner"
|
|
19
18
|
], function(
|
|
20
19
|
Log,
|
|
21
|
-
|
|
22
|
-
Text,
|
|
20
|
+
Token,
|
|
23
21
|
Controller,
|
|
24
22
|
Element,
|
|
25
23
|
Lib,
|
|
@@ -39,7 +37,7 @@ sap.ui.define([
|
|
|
39
37
|
|
|
40
38
|
var _aTextInputFields = ["frameUrl", "title"];
|
|
41
39
|
var _aNumericInputFields = ["frameWidth", "frameHeight"];
|
|
42
|
-
var _aOtherInputFields = ["frameWidthUnit", "frameHeightUnit", "
|
|
40
|
+
var _aOtherInputFields = ["frameWidthUnit", "frameHeightUnit", "advancedSettings"];
|
|
43
41
|
|
|
44
42
|
function isValidUrl(sUrl) {
|
|
45
43
|
if (
|
|
@@ -54,6 +52,11 @@ sap.ui.define([
|
|
|
54
52
|
return IFrame.isValidUrl(encodeURI(sUrl));
|
|
55
53
|
}
|
|
56
54
|
|
|
55
|
+
function multiInputValidator(oValue) {
|
|
56
|
+
const sText = oValue.text;
|
|
57
|
+
return new Token({key: sText, text: sText});
|
|
58
|
+
}
|
|
59
|
+
|
|
57
60
|
return Controller.extend("sap.ui.rta.plugin.iframe.AddIFrameDialogController", {
|
|
58
61
|
// eslint-disable-next-line object-shorthand
|
|
59
62
|
constructor: function(oJSONModel, mSettings) {
|
|
@@ -61,6 +64,39 @@ sap.ui.define([
|
|
|
61
64
|
this._importSettings(mSettings);
|
|
62
65
|
},
|
|
63
66
|
|
|
67
|
+
configureMultiInput() {
|
|
68
|
+
// This syntax is the suggested way by the UI5 documentation to trigger a submit on the input field on focus loss
|
|
69
|
+
const oMultiInput = Element.getElementById("sapUiRtaAddIFrameDialog_AddAdditionalParametersInput");
|
|
70
|
+
oMultiInput.addValidator(multiInputValidator);
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
onSwitchChange() {
|
|
74
|
+
this._oJSONModel.setProperty("/settingsUpdate/value", true);
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Event handler for token update
|
|
79
|
+
* @param {sap.ui.base.Event} oEvent - Event
|
|
80
|
+
*/
|
|
81
|
+
onTokenUpdate(oEvent) {
|
|
82
|
+
let aSandboxParameters = this._oJSONModel.getProperty("/advancedSettings/value/additionalSandboxParameters");
|
|
83
|
+
|
|
84
|
+
if (oEvent.getParameter("type") === "added") {
|
|
85
|
+
oEvent.getParameter("addedTokens").forEach(function(oToken) {
|
|
86
|
+
aSandboxParameters = [...aSandboxParameters, oToken.getText()];
|
|
87
|
+
});
|
|
88
|
+
} else if (oEvent.getParameter("type") === "removed") {
|
|
89
|
+
oEvent.getParameter("removedTokens").forEach(function(oToken) {
|
|
90
|
+
aSandboxParameters = aSandboxParameters.filter(function(sText) {
|
|
91
|
+
return sText !== oToken.getText();
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
this._oJSONModel.setProperty("/advancedSettings/value/additionalSandboxParameters", aSandboxParameters);
|
|
97
|
+
this._oJSONModel.setProperty("/settingsUpdate/value", true);
|
|
98
|
+
},
|
|
99
|
+
|
|
64
100
|
/**
|
|
65
101
|
* Event handler for validation success
|
|
66
102
|
* @param {sap.ui.base.Event} oEvent - Event
|
|
@@ -116,11 +152,9 @@ sap.ui.define([
|
|
|
116
152
|
try {
|
|
117
153
|
this._oJSONModel.setProperty("/previewUrl/value", sURL);
|
|
118
154
|
this._oJSONModel.setProperty("/previousFrameUrl/value", sReturnedURL);
|
|
119
|
-
this._oJSONModel.setProperty(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
);
|
|
123
|
-
oIFrame.applySettings({ url: sURL });
|
|
155
|
+
this._oJSONModel.setProperty("/settingsUpdate/value", false);
|
|
156
|
+
|
|
157
|
+
oIFrame.applySettings({ url: sURL, advancedSettings: {...this._oJSONModel.getProperty("/advancedSettings/value")} });
|
|
124
158
|
} catch (oError) {
|
|
125
159
|
Log.error("Error previewing the URL: ", oError);
|
|
126
160
|
}
|
|
@@ -146,26 +180,6 @@ sap.ui.define([
|
|
|
146
180
|
oBinding.filter([oFilter]);
|
|
147
181
|
},
|
|
148
182
|
|
|
149
|
-
onLegacyNavigationInfoPress(oEvent) {
|
|
150
|
-
const oButton = oEvent.getSource();
|
|
151
|
-
if (!this._oPopover) {
|
|
152
|
-
this._oPopover = new Popover(
|
|
153
|
-
`${oButton.getId()}-popover`,
|
|
154
|
-
{
|
|
155
|
-
showHeader: false,
|
|
156
|
-
contentWidth: "400px",
|
|
157
|
-
content: [
|
|
158
|
-
new Text({
|
|
159
|
-
text: "{/text/useLegacyNavigationInfo}"
|
|
160
|
-
}).addStyleClass("sapUiSmallMargin")
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
oButton.addDependent(this._oPopover);
|
|
165
|
-
}
|
|
166
|
-
this._oPopover.openBy(oButton);
|
|
167
|
-
},
|
|
168
|
-
|
|
169
183
|
/**
|
|
170
184
|
* Build preview URL
|
|
171
185
|
* @returns {string} URL with resolved bindings
|
|
@@ -28,11 +28,12 @@ function(
|
|
|
28
28
|
* @param {sap.ui.core.Control} oElement - Starting point of the search
|
|
29
29
|
* @param {sap.ui.model.Model} oModel - Model for filtering irrelevant binding paths
|
|
30
30
|
* @param {sap.ui.core.Control} [oRelevantContainerElement] - if this element is given then only bindings from element related to the relevant container are considered
|
|
31
|
+
* @param {number} iDepth - If provided only bindings from children up to the given depth are considered
|
|
31
32
|
* @returns {{bindingPaths: Array, bindingContextPaths: Array}} - returns with all relevant bindingPaths and all bindingContextPaths for all properties of the element
|
|
32
33
|
*
|
|
33
34
|
* @private
|
|
34
35
|
*/
|
|
35
|
-
BindingsExtractor.collectBindingPaths = function(oElement, oModel, oRelevantContainerElement) {
|
|
36
|
+
BindingsExtractor.collectBindingPaths = function(oElement, oModel, oRelevantContainerElement, iDepth) {
|
|
36
37
|
var mBindingsCollection = {
|
|
37
38
|
bindingPaths: [],
|
|
38
39
|
bindingContextPaths: []
|
|
@@ -43,7 +44,8 @@ function(
|
|
|
43
44
|
element: oElement,
|
|
44
45
|
model: oModel,
|
|
45
46
|
relevantContainerElement: oRelevantContainerElement,
|
|
46
|
-
parent: oParent
|
|
47
|
+
parent: oParent,
|
|
48
|
+
depth: iDepth
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
if (oParent) {
|
|
@@ -60,13 +62,16 @@ function(
|
|
|
60
62
|
|
|
61
63
|
if (oTemplateDefaultAggregation) {
|
|
62
64
|
var sTemplateDefaultAggregationName = oTemplateDefaultAggregation.name;
|
|
63
|
-
var oTemplateElement = ElementUtil.getAggregation(
|
|
65
|
+
var oTemplateElement = ElementUtil.getAggregation(
|
|
66
|
+
oTemplate, sTemplateDefaultAggregationName
|
|
67
|
+
)[iPositionOfInvisibleElement];
|
|
64
68
|
aBindings = aBindings.concat(BindingsExtractor.getBindings({
|
|
65
69
|
model: oModel,
|
|
66
70
|
element: oTemplateElement,
|
|
67
71
|
template: true,
|
|
68
72
|
relevantContainerElement: oRelevantContainerElement,
|
|
69
|
-
parent: oParent
|
|
73
|
+
parent: oParent,
|
|
74
|
+
depth: iDepth
|
|
70
75
|
}));
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -137,15 +142,24 @@ function(
|
|
|
137
142
|
}
|
|
138
143
|
var aAggregationNames = sAggregationName ? [sAggregationName] : Object.keys(oElement.getMetadata().getAllAggregations());
|
|
139
144
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
if (!Number.isInteger(mPropertyBag.depth) || mPropertyBag.depth > 0) {
|
|
146
|
+
aAggregationNames.forEach(function(sAggregationNameInLoop) {
|
|
147
|
+
aBindings = aBindings.concat(getBindingsForAggregation(
|
|
148
|
+
oElement,
|
|
149
|
+
oModel,
|
|
150
|
+
mPropertyBag.template,
|
|
151
|
+
sAggregationNameInLoop,
|
|
152
|
+
oRelevantContainerElement,
|
|
153
|
+
mPropertyBag.depth && mPropertyBag.depth - 1
|
|
154
|
+
));
|
|
155
|
+
});
|
|
156
|
+
}
|
|
143
157
|
|
|
144
158
|
// Remove duplicates
|
|
145
159
|
return _uniqWith(aBindings, deepEqual);
|
|
146
160
|
};
|
|
147
161
|
|
|
148
|
-
function getBindingsForAggregation(oElement, oModel, bTemplate, sAggregationName, oRelevantContainerElement) {
|
|
162
|
+
function getBindingsForAggregation(oElement, oModel, bTemplate, sAggregationName, oRelevantContainerElement, iDepth) {
|
|
149
163
|
var aBindings = [];
|
|
150
164
|
var aElements = [];
|
|
151
165
|
var oTemplate;
|
|
@@ -185,7 +199,8 @@ function(
|
|
|
185
199
|
model: oModel,
|
|
186
200
|
template: bIsInTemplate,
|
|
187
201
|
relevantContainerElement: oRelevantContainerElement,
|
|
188
|
-
parent: oElement
|
|
202
|
+
parent: oElement,
|
|
203
|
+
depth: iDepth
|
|
189
204
|
})
|
|
190
205
|
);
|
|
191
206
|
}
|