@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.
Files changed (147) hide show
  1. package/package.json +6 -6
  2. package/src/sap/ui/rta/.library +1 -1
  3. package/src/sap/ui/rta/Client.js +1 -1
  4. package/src/sap/ui/rta/RuntimeAuthoring.js +1 -1
  5. package/src/sap/ui/rta/Utils.js +1 -1
  6. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  7. package/src/sap/ui/rta/command/AddIFrame.js +4 -4
  8. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  9. package/src/sap/ui/rta/command/AddXML.js +1 -1
  10. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  11. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  12. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  13. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  14. package/src/sap/ui/rta/command/Combine.js +1 -1
  15. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  16. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  17. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  18. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  19. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  22. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  23. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  24. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  25. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  26. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  27. package/src/sap/ui/rta/command/Move.js +1 -1
  28. package/src/sap/ui/rta/command/Property.js +1 -1
  29. package/src/sap/ui/rta/command/Remove.js +1 -1
  30. package/src/sap/ui/rta/command/Rename.js +1 -1
  31. package/src/sap/ui/rta/command/Resize.js +1 -1
  32. package/src/sap/ui/rta/command/Reveal.js +1 -1
  33. package/src/sap/ui/rta/command/Settings.js +1 -1
  34. package/src/sap/ui/rta/command/Split.js +1 -1
  35. package/src/sap/ui/rta/command/Stack.js +1 -1
  36. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  37. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  38. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  39. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  40. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  41. package/src/sap/ui/rta/enablement/TestDelegate.js +23 -4
  42. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  43. package/src/sap/ui/rta/library.js +2 -2
  44. package/src/sap/ui/rta/messagebundle.properties +10 -4
  45. package/src/sap/ui/rta/messagebundle_ar.properties +5 -2
  46. package/src/sap/ui/rta/messagebundle_bg.properties +6 -3
  47. package/src/sap/ui/rta/messagebundle_ca.properties +5 -2
  48. package/src/sap/ui/rta/messagebundle_cnr.properties +5 -2
  49. package/src/sap/ui/rta/messagebundle_cs.properties +5 -2
  50. package/src/sap/ui/rta/messagebundle_cy.properties +6 -3
  51. package/src/sap/ui/rta/messagebundle_da.properties +5 -2
  52. package/src/sap/ui/rta/messagebundle_de.properties +6 -3
  53. package/src/sap/ui/rta/messagebundle_el.properties +6 -3
  54. package/src/sap/ui/rta/messagebundle_en.properties +5 -326
  55. package/src/sap/ui/rta/messagebundle_en_GB.properties +6 -3
  56. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -3
  57. package/src/sap/ui/rta/messagebundle_es.properties +5 -2
  58. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -2
  59. package/src/sap/ui/rta/messagebundle_et.properties +5 -2
  60. package/src/sap/ui/rta/messagebundle_fi.properties +6 -3
  61. package/src/sap/ui/rta/messagebundle_fr.properties +5 -2
  62. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -2
  63. package/src/sap/ui/rta/messagebundle_hi.properties +5 -2
  64. package/src/sap/ui/rta/messagebundle_hr.properties +6 -3
  65. package/src/sap/ui/rta/messagebundle_hu.properties +6 -3
  66. package/src/sap/ui/rta/messagebundle_id.properties +6 -3
  67. package/src/sap/ui/rta/messagebundle_it.properties +6 -3
  68. package/src/sap/ui/rta/messagebundle_iw.properties +6 -3
  69. package/src/sap/ui/rta/messagebundle_ja.properties +6 -3
  70. package/src/sap/ui/rta/messagebundle_kk.properties +5 -2
  71. package/src/sap/ui/rta/messagebundle_ko.properties +5 -2
  72. package/src/sap/ui/rta/messagebundle_lt.properties +6 -3
  73. package/src/sap/ui/rta/messagebundle_lv.properties +5 -2
  74. package/src/sap/ui/rta/messagebundle_mk.properties +7 -4
  75. package/src/sap/ui/rta/messagebundle_ms.properties +6 -3
  76. package/src/sap/ui/rta/messagebundle_nl.properties +5 -2
  77. package/src/sap/ui/rta/messagebundle_no.properties +5 -2
  78. package/src/sap/ui/rta/messagebundle_pl.properties +5 -2
  79. package/src/sap/ui/rta/messagebundle_pt.properties +6 -3
  80. package/src/sap/ui/rta/messagebundle_pt_PT.properties +6 -3
  81. package/src/sap/ui/rta/messagebundle_ro.properties +6 -3
  82. package/src/sap/ui/rta/messagebundle_ru.properties +5 -2
  83. package/src/sap/ui/rta/messagebundle_sh.properties +107 -104
  84. package/src/sap/ui/rta/messagebundle_sk.properties +5 -2
  85. package/src/sap/ui/rta/messagebundle_sl.properties +7 -4
  86. package/src/sap/ui/rta/messagebundle_sr.properties +5 -2
  87. package/src/sap/ui/rta/messagebundle_sv.properties +5 -2
  88. package/src/sap/ui/rta/messagebundle_th.properties +5 -2
  89. package/src/sap/ui/rta/messagebundle_tr.properties +5 -2
  90. package/src/sap/ui/rta/messagebundle_uk.properties +5 -2
  91. package/src/sap/ui/rta/messagebundle_vi.properties +6 -3
  92. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -2
  93. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -2
  94. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  95. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  96. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  97. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  98. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  99. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  100. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  101. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  102. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  103. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  104. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  105. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  106. package/src/sap/ui/rta/plugin/RenameHandler.js +5 -4
  107. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  108. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  109. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  110. package/src/sap/ui/rta/plugin/Split.js +1 -1
  111. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  112. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +110 -134
  113. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  114. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +15 -12
  115. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  116. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  118. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
  119. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +126 -24
  120. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +19 -9
  121. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +44 -30
  122. package/src/sap/ui/rta/service/Action.js +1 -1
  123. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  124. package/src/sap/ui/rta/service/Outline.js +1 -1
  125. package/src/sap/ui/rta/service/Property.js +1 -1
  126. package/src/sap/ui/rta/service/Selection.js +1 -1
  127. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  128. package/src/sap/ui/rta/themes/base/AddIFrame.less +0 -5
  129. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  130. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  131. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  132. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  133. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  134. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  135. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  136. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  137. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  138. package/src/sap/ui/rta/util/BindingsExtractor.js +24 -9
  139. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  140. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  141. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  142. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  143. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  144. package/src/sap/ui/rta/util/adaptationStarter.js +0 -1
  145. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  146. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  147. 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= "true"
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= "true"
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} &amp;&amp; ${dialogInfo>/previousFrameUrl/value} !== ${dialogInfo>/frameUrl/value} || ${dialogInfo>/previewUseLegacyNavigation/value} !== ${dialogInfo>/useLegacyNavigation/value}}"
211
+ enabled="{= !${dialogInfo>/frameUrlError/value} &amp;&amp; (${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}" text="{dialogInfo>/previewUrl/value}" wrapping="true" visible="{= !!${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
- class="sapUiRtaAddIFrameDialogPreviewLinkToolbar" height="3rem" style="Clear">
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
- <HBox
273
- alignItems="Center"
274
- class="sapUiRtaAddIFrameDialogLegacyNavigationContainer">
275
- <Switch
276
- id="sapUiRtaAddIFrameDialog_UseLegacyNavigationToggle"
277
- customTextOn=" "
278
- customTextOff=" "
279
- state="{dialogInfo>/useLegacyNavigation/value}" />
280
- <Label
281
- text="{dialogInfo>/text/useLegacyNavigationLabel}" />
282
- <Button
283
- icon="sap-icon://hint"
284
- type="Transparent"
285
- press="onLegacyNavigationInfoPress"
286
- ariaHasPopup="Dialog" />
287
- </HBox>
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
- useLegacyNavigationLabel: _oTextResources.getText("IFRAME_ADDIFRAME_USE_LEGACY_NAVIGATION"),
67
- useLegacyNavigationInfo: _oTextResources.getText("IFRAME_ADDIFRAME_USE_LEGACY_NAVIGATION_INFO")
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, bUseLegacyNavigation) {
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
- useLegacyNavigation: {
139
- value: !!bUseLegacyNavigation
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
- previewUseLegacyNavigation: {
142
- value: !!bUseLegacyNavigation
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.123.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?.useLegacyNavigation
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/Popover",
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
- Popover,
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", "useLegacyNavigation"];
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
- "/previewUseLegacyNavigation/value",
121
- this._oJSONModel.getProperty("/useLegacyNavigation/value")
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
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @name sap.ui.rta.service.Action
25
25
  * @author SAP SE
26
26
  * @since 1.58
27
- * @version 1.123.1
27
+ * @version 1.124.1
28
28
  * @private
29
29
  * @ui5-restricted
30
30
  *
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @name sap.ui.rta.service.ControllerExtension
33
33
  * @author SAP SE
34
34
  * @since 1.58
35
- * @version 1.123.1
35
+ * @version 1.124.1
36
36
  * @private
37
37
  * @ui5-restricted
38
38
  */
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @name sap.ui.rta.service.Outline
44
44
  * @author SAP SE
45
45
  * @since 1.56
46
- * @version 1.123.1
46
+ * @version 1.124.1
47
47
  * @private
48
48
  * @ui5-restricted
49
49
  */
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @name sap.ui.rta.service.Property
28
28
  * @author SAP SE
29
29
  * @since 1.58
30
- * @version 1.123.1
30
+ * @version 1.124.1
31
31
  * @private
32
32
  * @ui5-restricted
33
33
  */
@@ -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.123.1
17
+ * @version 1.124.1
18
18
  * @private
19
19
  * @ui5-restricted
20
20
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @name sap.ui.rta.service.SupportTools
29
29
  * @author SAP SE
30
30
  * @since 1.106
31
- * @version 1.123.1
31
+ * @version 1.124.1
32
32
  * @private
33
33
  * @ui5-restricted
34
34
  */
@@ -116,11 +116,6 @@
116
116
  }
117
117
  }
118
118
 
119
- .sapUiRtaAddIFrameDialogLegacyNavigationContainer > div {
120
- display: flex;
121
- align-items: center;
122
- }
123
-
124
119
  .sapUiRtaAddIFrameDialogPreviewGrid {
125
120
  padding: 0;
126
121
  margin: 0 1rem 1rem;
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * @extends sap.ui.rta.toolbar.Base
56
56
  *
57
57
  * @author SAP SE
58
- * @version 1.123.1
58
+ * @version 1.124.1
59
59
  *
60
60
  * @constructor
61
61
  * @private
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.m.HBox
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.123.1
36
+ * @version 1.124.1
37
37
  *
38
38
  * @constructor
39
39
  * @private
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.123.1
35
+ * @version 1.124.1
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.123.1
23
+ * @version 1.124.1
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.m.OverflowToolbarButton
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.123.1
26
+ * @version 1.124.1
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.123.1
23
+ * @version 1.124.1
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @class
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.123.1
48
+ * @version 1.124.1
49
49
  *
50
50
  * @constructor
51
51
  * @private
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @class
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.123.1
56
+ * @version 1.124.1
57
57
  *
58
58
  * @constructor
59
59
  * @private
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @class
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.123.1
41
+ * @version 1.124.1
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -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(oTemplate, sTemplateDefaultAggregationName)[iPositionOfInvisibleElement];
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
- aAggregationNames.forEach(function(sAggregationNameInLoop) {
141
- aBindings = aBindings.concat(getBindingsForAggregation(oElement, oModel, mPropertyBag.template, sAggregationNameInLoop, oRelevantContainerElement));
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
  }
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  * Constructor for a new sap.ui.rta.util.PluginManager
63
63
  * @extends sap.ui.base.ManagedObject
64
64
  * @author SAP SE
65
- * @version 1.123.1
65
+ * @version 1.124.1
66
66
  * @constructor
67
67
  * @private
68
68
  * @since 1.86
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * Constructor for a new sap.ui.rta.util.PopupManager
43
43
  * @extends sap.ui.base.ManagedObject
44
44
  * @author SAP SE
45
- * @version 1.123.1
45
+ * @version 1.124.1
46
46
  * @constructor
47
47
  * @private
48
48
  * @since 1.48