@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.
Files changed (161) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -1
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +2 -2
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/api/startAdaptation.js +2 -0
  8. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  9. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +2 -2
  10. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +27 -27
  11. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  12. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  13. package/src/sap/ui/rta/command/AddXML.js +1 -1
  14. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  15. package/src/sap/ui/rta/command/Annotation.js +46 -0
  16. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  17. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  18. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  19. package/src/sap/ui/rta/command/Combine.js +1 -1
  20. package/src/sap/ui/rta/command/CommandFactory.js +5 -1
  21. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  27. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  28. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  29. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  30. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  31. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  32. package/src/sap/ui/rta/command/Move.js +1 -1
  33. package/src/sap/ui/rta/command/Property.js +1 -1
  34. package/src/sap/ui/rta/command/Remove.js +1 -1
  35. package/src/sap/ui/rta/command/Rename.js +1 -1
  36. package/src/sap/ui/rta/command/Resize.js +1 -1
  37. package/src/sap/ui/rta/command/Reveal.js +1 -1
  38. package/src/sap/ui/rta/command/Settings.js +1 -1
  39. package/src/sap/ui/rta/command/Split.js +1 -1
  40. package/src/sap/ui/rta/command/Stack.js +5 -2
  41. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  42. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +11 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  46. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  47. package/src/sap/ui/rta/library.js +2 -2
  48. package/src/sap/ui/rta/messagebundle.properties +6 -4
  49. package/src/sap/ui/rta/messagebundle_ar.properties +5 -4
  50. package/src/sap/ui/rta/messagebundle_bg.properties +5 -4
  51. package/src/sap/ui/rta/messagebundle_ca.properties +5 -4
  52. package/src/sap/ui/rta/messagebundle_cnr.properties +5 -4
  53. package/src/sap/ui/rta/messagebundle_cs.properties +5 -4
  54. package/src/sap/ui/rta/messagebundle_cy.properties +5 -4
  55. package/src/sap/ui/rta/messagebundle_da.properties +5 -4
  56. package/src/sap/ui/rta/messagebundle_de.properties +6 -5
  57. package/src/sap/ui/rta/messagebundle_el.properties +5 -4
  58. package/src/sap/ui/rta/messagebundle_en.properties +3 -328
  59. package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -4
  60. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +63 -53
  61. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +12 -2
  62. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +325 -315
  63. package/src/sap/ui/rta/messagebundle_es.properties +5 -4
  64. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -4
  65. package/src/sap/ui/rta/messagebundle_et.properties +5 -4
  66. package/src/sap/ui/rta/messagebundle_fi.properties +5 -4
  67. package/src/sap/ui/rta/messagebundle_fr.properties +5 -4
  68. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -4
  69. package/src/sap/ui/rta/messagebundle_hi.properties +5 -4
  70. package/src/sap/ui/rta/messagebundle_hr.properties +5 -4
  71. package/src/sap/ui/rta/messagebundle_hu.properties +5 -4
  72. package/src/sap/ui/rta/messagebundle_id.properties +5 -4
  73. package/src/sap/ui/rta/messagebundle_it.properties +6 -5
  74. package/src/sap/ui/rta/messagebundle_iw.properties +5 -4
  75. package/src/sap/ui/rta/messagebundle_ja.properties +5 -4
  76. package/src/sap/ui/rta/messagebundle_kk.properties +5 -4
  77. package/src/sap/ui/rta/messagebundle_ko.properties +6 -5
  78. package/src/sap/ui/rta/messagebundle_lt.properties +5 -4
  79. package/src/sap/ui/rta/messagebundle_lv.properties +5 -4
  80. package/src/sap/ui/rta/messagebundle_mk.properties +5 -4
  81. package/src/sap/ui/rta/messagebundle_ms.properties +5 -4
  82. package/src/sap/ui/rta/messagebundle_nl.properties +5 -4
  83. package/src/sap/ui/rta/messagebundle_no.properties +5 -4
  84. package/src/sap/ui/rta/messagebundle_pl.properties +5 -4
  85. package/src/sap/ui/rta/messagebundle_pt.properties +5 -4
  86. package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -4
  87. package/src/sap/ui/rta/messagebundle_ro.properties +5 -4
  88. package/src/sap/ui/rta/messagebundle_ru.properties +5 -4
  89. package/src/sap/ui/rta/messagebundle_sh.properties +5 -4
  90. package/src/sap/ui/rta/messagebundle_sk.properties +5 -4
  91. package/src/sap/ui/rta/messagebundle_sl.properties +5 -4
  92. package/src/sap/ui/rta/messagebundle_sr.properties +5 -4
  93. package/src/sap/ui/rta/messagebundle_sv.properties +5 -4
  94. package/src/sap/ui/rta/messagebundle_th.properties +5 -4
  95. package/src/sap/ui/rta/messagebundle_tr.properties +5 -4
  96. package/src/sap/ui/rta/messagebundle_uk.properties +5 -4
  97. package/src/sap/ui/rta/messagebundle_vi.properties +5 -4
  98. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -4
  99. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -4
  100. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +5 -2
  101. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  102. package/src/sap/ui/rta/plugin/Combine.js +1 -2
  103. package/src/sap/ui/rta/plugin/CompVariant.js +6 -6
  104. package/src/sap/ui/rta/plugin/ControlVariant.js +6 -6
  105. package/src/sap/ui/rta/plugin/CreateContainer.js +3 -3
  106. package/src/sap/ui/rta/plugin/CutPaste.js +3 -3
  107. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  108. package/src/sap/ui/rta/plugin/LocalReset.js +5 -2
  109. package/src/sap/ui/rta/plugin/Plugin.js +60 -2
  110. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  111. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  112. package/src/sap/ui/rta/plugin/Rename.js +2 -2
  113. package/src/sap/ui/rta/plugin/RenameHandler.js +5 -2
  114. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  115. package/src/sap/ui/rta/plugin/Selection.js +3 -3
  116. package/src/sap/ui/rta/plugin/Settings.js +35 -11
  117. package/src/sap/ui/rta/plugin/Split.js +2 -2
  118. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -2
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  124. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +4 -5
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +21 -6
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +42 -30
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +20 -6
  128. package/src/sap/ui/rta/service/Action.js +1 -1
  129. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  130. package/src/sap/ui/rta/service/Outline.js +1 -1
  131. package/src/sap/ui/rta/service/Property.js +1 -1
  132. package/src/sap/ui/rta/service/Selection.js +20 -2
  133. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  134. package/src/sap/ui/rta/themes/base/AddIFrame.less +8 -10
  135. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +2 -3
  136. package/src/sap/ui/rta/themes/base/ContextMenu.less +13 -13
  137. package/src/sap/ui/rta/themes/base/Dialogs.less +2 -2
  138. package/src/sap/ui/rta/themes/base/FieldRepository.less +5 -10
  139. package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +9 -4
  140. package/src/sap/ui/rta/themes/base/Overlay.less +27 -180
  141. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +1 -1
  142. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +18 -76
  143. package/src/sap/ui/rta/themes/base/Toolbar.base.less +18 -18
  144. package/src/sap/ui/rta/themes/base/library.source.less +9 -11
  145. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  146. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  147. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  148. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  149. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  150. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  151. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  152. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  153. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  154. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  155. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  156. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  157. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  158. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  159. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  160. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  161. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +2 -1
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * Helper object to build the RTA commands resulting from the AdditionalElements Plugin
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.126.1
28
+ * @version 1.128.0
29
29
  * @private
30
30
  * @since 1.94
31
31
  */
@@ -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.126.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 = 140;
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, iIndex) {
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 + 10 * iIndex
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 id="sapUiRtaAddIFrameDialog_WidthInput" class="sapUiRtaAddIFrameDialogWidthInput"
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 id="sapUiRtaAddIFrameDialog_HeightInput" class="sapUiRtaAddIFrameDialogHeightInput"
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 text="{dialogInfo>label}"/>
156
- <Text text="{dialogInfo>value}" wrapping="false"/>
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.126.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
- return getContainerUserInfo()
266
- .then(function(oUserInfo) {
267
- var oUserParameters = Object.keys(oUserInfo)
268
- .map(function(sUserSetting) {
269
- return {
270
- label: sUserSetting,
271
- key: `{$user>/${sUserSetting}}`,
272
- value: oUserInfo[sUserSetting]
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
- var oBindingContext = oObject.getBindingContext();
276
- var oDefaultBoundObjectParameters;
277
- if (oBindingContext) {
278
- var oDefaultBoundObject = oBindingContext.getObject();
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 sKey = oEvent.getSource().getBindingContext("dialogInfo").getObject().key;
169
- this._oJSONModel.setProperty("/frameUrl/value", this._addURLParameter(sKey));
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 {string} sParameter - URL parameter
206
+ * @param {object} oObject - Parameter object
205
207
  * @returns {string} URL with the added parameter
206
208
  * @private
207
209
  */
208
- _addURLParameter(sParameter) {
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)}${sParameter}${sCurrentUrl.substring(iCurrentSelectionEnd)}`;
227
+ return `${sCurrentUrl.substring(0, iCurrentSelectionStart)}${sParameterString}${sCurrentUrl.substring(iCurrentSelectionEnd)}`;
214
228
  },
215
229
 
216
230
  /**
@@ -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.126.1
27
+ * @version 1.128.0
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.126.1
35
+ * @version 1.128.0
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.126.1
46
+ * @version 1.128.0
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.126.1
30
+ * @version 1.128.0
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.126.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
  };
@@ -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.126.1
31
+ * @version 1.128.0
32
32
  * @private
33
33
  * @ui5-restricted
34
34
  */
@@ -1,10 +1,9 @@
1
1
  /******************************************************************
2
2
  Style of the RTA Add IFrame Dialog - base Theme
3
3
  *******************************************************************/
4
- @_sap_ui_rta_AddIFrame_Title: @sapUiTextTitle; //#000
5
- @_sap_ui_rta_AddIFrame_DelimiterLineColor: @sapUiInfobarActiveBackground; //#d9d9d9
6
- @_sap_ui_rta_AddIFrame_BorderColor: @sapUiNeutralBorder; //#fff;
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 @_sap_ui_rta_AddIFrame_DelimiterLineColor; //1px
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: @_sap_ui_rta_AddIFrame_PreviewBG;
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
- @_sap_ui_rta_ChangeVisualization_OverlayOutline: @sapUiSelected; //#8fb5ff
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 @_sap_ui_rta_ChangeVisualization_OverlayOutline !important; //1px
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
- @_sap_ui_rta_ContextMenu_Border_LightColor: @sapUiInvertedElement; //#fff
5
- @_sap_ui_rta_ContextMenu_Border_DarkColor: darken(desaturate(@sapUiChart1, 48%), 14%); //#435060
6
- @_sap_ui_rta_ContextMenu_BoxShadow_DarkColor: @sapUiDarkShadowTint; // #000
7
- @_sap_ui_rta_ContextMenu_BoxShadow_LightColor: @sapUiLightShadowTint; // #fff
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(@_sap_ui_rta_ContextMenu_BoxShadow_DarkColor, 30),
10
- 0.125rem 0.375rem 1rem fade(@_sap_ui_rta_ContextMenu_BoxShadow_DarkColor, 60),
11
- 0 0 0 0.0625rem fade(@_sap_ui_rta_ContextMenu_BoxShadow_LightColor, 20),
12
- 0 0.0625rem 0 0 fade(@_sap_ui_rta_ContextMenu_BoxShadow_LightColor, 20); //10px 20px 6px 6px 1px 1px
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 @_sap_ui_rta_ContextMenu_Border_LightColor; //2px
18
- border-image: repeating-linear-gradient(-45deg, @_sap_ui_rta_ContextMenu_Border_DarkColor,
19
- @_sap_ui_rta_ContextMenu_Border_DarkColor 0.25rem,
20
- @_sap_ui_rta_ContextMenu_Border_LightColor 0.25rem,
21
- @_sap_ui_rta_ContextMenu_Border_LightColor 0.375rem) 4;
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: @sapUiShellBackground; //#fff
5
- @_sap_ui_rta_Dialogs_BorderDarkColor: darken(desaturate(@sapUiChart1, 48%), 14%); //#435060
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
- @_sap_ui_rta_FieldRepository_Title: @sapUiTextTitle; //#000
5
- @_sap_ui_rta_FieldRepository_BtnFocusOtline: @sapUiButtonHoverBorderColor; //#000
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 @_sap_ui_rta_FieldRepository_BtnFocusOtline; //1px
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 @_sap_ui_rta_FieldRepository_BC_Container_Border; //1px
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; //34px
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: @sapUiUx3ToolPopupShadow;
10
+ box-shadow: @_sap_ui_rta_FlexSupportExtension_BoxShadow;
6
11
  &:after {
7
12
  content: " ";
8
- background: @sapUiMessageSuccessBorderColor;
13
+ background: @_sap_ui_rta_FlexSupportExtension_BackgroundColor;
9
14
  opacity: 0.40;
10
- border-radius: @sapUiButtonBorderCornerRadius;
11
- outline: 0.125rem solid @sapUiSelected; //1px
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
  }