@openui5/sap.ui.rta 1.142.1 → 1.143.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 (168) hide show
  1. package/.eslintrc.json +3 -2
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -2
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +18 -27
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +2 -2
  8. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  9. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +0 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +4 -4
  11. package/src/sap/ui/rta/appVariant/Feature.js +1 -1
  12. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -3
  13. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +0 -1
  14. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  15. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  16. package/src/sap/ui/rta/command/AddXML.js +1 -1
  17. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  18. package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
  19. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  20. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  21. package/src/sap/ui/rta/command/Combine.js +1 -1
  22. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  23. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  25. package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
  26. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -3
  27. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  28. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -2
  29. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  30. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  31. package/src/sap/ui/rta/command/ExtendControllerCommand.js +9 -2
  32. package/src/sap/ui/rta/command/FlexCommand.js +3 -3
  33. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  34. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  35. package/src/sap/ui/rta/command/ManifestCommand.js +2 -2
  36. package/src/sap/ui/rta/command/Move.js +1 -1
  37. package/src/sap/ui/rta/command/Property.js +1 -1
  38. package/src/sap/ui/rta/command/Remove.js +1 -1
  39. package/src/sap/ui/rta/command/Rename.js +1 -1
  40. package/src/sap/ui/rta/command/Resize.js +1 -1
  41. package/src/sap/ui/rta/command/Reveal.js +1 -1
  42. package/src/sap/ui/rta/command/Settings.js +1 -1
  43. package/src/sap/ui/rta/command/Split.js +1 -1
  44. package/src/sap/ui/rta/command/Stack.js +2 -2
  45. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -2
  48. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +3 -3
  49. package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
  50. package/src/sap/ui/rta/enablement/elementActionTest.js +5 -5
  51. package/src/sap/ui/rta/library.js +2 -2
  52. package/src/sap/ui/rta/messagebundle.properties +2 -0
  53. package/src/sap/ui/rta/messagebundle_ar.properties +3 -0
  54. package/src/sap/ui/rta/messagebundle_bg.properties +3 -0
  55. package/src/sap/ui/rta/messagebundle_ca.properties +3 -0
  56. package/src/sap/ui/rta/messagebundle_cnr.properties +3 -0
  57. package/src/sap/ui/rta/messagebundle_cs.properties +3 -0
  58. package/src/sap/ui/rta/messagebundle_cy.properties +3 -0
  59. package/src/sap/ui/rta/messagebundle_da.properties +3 -0
  60. package/src/sap/ui/rta/messagebundle_de.properties +3 -0
  61. package/src/sap/ui/rta/messagebundle_el.properties +3 -0
  62. package/src/sap/ui/rta/messagebundle_en.properties +3 -0
  63. package/src/sap/ui/rta/messagebundle_en_GB.properties +3 -0
  64. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -0
  65. package/src/sap/ui/rta/messagebundle_es.properties +3 -0
  66. package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -0
  67. package/src/sap/ui/rta/messagebundle_et.properties +3 -0
  68. package/src/sap/ui/rta/messagebundle_fi.properties +3 -0
  69. package/src/sap/ui/rta/messagebundle_fr.properties +3 -0
  70. package/src/sap/ui/rta/messagebundle_fr_CA.properties +3 -0
  71. package/src/sap/ui/rta/messagebundle_hi.properties +3 -0
  72. package/src/sap/ui/rta/messagebundle_hr.properties +3 -0
  73. package/src/sap/ui/rta/messagebundle_hu.properties +3 -0
  74. package/src/sap/ui/rta/messagebundle_id.properties +3 -0
  75. package/src/sap/ui/rta/messagebundle_it.properties +3 -0
  76. package/src/sap/ui/rta/messagebundle_iw.properties +3 -0
  77. package/src/sap/ui/rta/messagebundle_ja.properties +3 -0
  78. package/src/sap/ui/rta/messagebundle_kk.properties +3 -0
  79. package/src/sap/ui/rta/messagebundle_ko.properties +3 -0
  80. package/src/sap/ui/rta/messagebundle_lt.properties +3 -0
  81. package/src/sap/ui/rta/messagebundle_lv.properties +3 -0
  82. package/src/sap/ui/rta/messagebundle_mk.properties +3 -0
  83. package/src/sap/ui/rta/messagebundle_ms.properties +3 -0
  84. package/src/sap/ui/rta/messagebundle_nl.properties +3 -0
  85. package/src/sap/ui/rta/messagebundle_no.properties +3 -0
  86. package/src/sap/ui/rta/messagebundle_pl.properties +3 -0
  87. package/src/sap/ui/rta/messagebundle_pt.properties +3 -0
  88. package/src/sap/ui/rta/messagebundle_pt_PT.properties +3 -0
  89. package/src/sap/ui/rta/messagebundle_ro.properties +3 -0
  90. package/src/sap/ui/rta/messagebundle_ru.properties +3 -0
  91. package/src/sap/ui/rta/messagebundle_sh.properties +3 -0
  92. package/src/sap/ui/rta/messagebundle_sk.properties +3 -0
  93. package/src/sap/ui/rta/messagebundle_sl.properties +3 -0
  94. package/src/sap/ui/rta/messagebundle_sr.properties +3 -0
  95. package/src/sap/ui/rta/messagebundle_sv.properties +3 -0
  96. package/src/sap/ui/rta/messagebundle_th.properties +3 -0
  97. package/src/sap/ui/rta/messagebundle_tr.properties +3 -0
  98. package/src/sap/ui/rta/messagebundle_uk.properties +3 -0
  99. package/src/sap/ui/rta/messagebundle_vi.properties +3 -0
  100. package/src/sap/ui/rta/messagebundle_zh_CN.properties +3 -0
  101. package/src/sap/ui/rta/messagebundle_zh_TW.properties +3 -0
  102. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +3 -3
  103. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
  104. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  105. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  106. package/src/sap/ui/rta/plugin/CompVariant.js +1 -1
  107. package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
  108. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  109. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  110. package/src/sap/ui/rta/plugin/DragDrop.js +3 -3
  111. package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +3 -1
  112. package/src/sap/ui/rta/plugin/LocalReset.js +3 -3
  113. package/src/sap/ui/rta/plugin/Plugin.js +9 -9
  114. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  115. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  116. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  117. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  118. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  119. package/src/sap/ui/rta/plugin/Split.js +2 -2
  120. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +3 -3
  122. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +61 -48
  123. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -3
  124. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  125. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  126. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +1 -1
  127. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
  128. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +2 -2
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  130. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +4 -1
  131. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  132. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +3 -4
  133. package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
  134. package/src/sap/ui/rta/plugin/rename/RenameDialog.js +1 -1
  135. package/src/sap/ui/rta/service/Action.js +1 -1
  136. package/src/sap/ui/rta/service/ControllerExtension.js +10 -5
  137. package/src/sap/ui/rta/service/Outline.js +3 -3
  138. package/src/sap/ui/rta/service/Property.js +10 -10
  139. package/src/sap/ui/rta/service/Selection.js +1 -1
  140. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  141. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +1 -1
  142. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +5 -0
  143. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -0
  144. package/src/sap/ui/rta/toolbar/Adaptation.js +5 -5
  145. package/src/sap/ui/rta/toolbar/Base.js +2 -3
  146. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  147. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  148. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
  149. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  150. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +3 -4
  151. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +4 -5
  152. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -2
  153. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +3 -4
  154. package/src/sap/ui/rta/util/Animation.js +1 -1
  155. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  156. package/src/sap/ui/rta/util/PopupManager.js +3 -3
  157. package/src/sap/ui/rta/util/ReloadManager.js +2 -2
  158. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  159. package/src/sap/ui/rta/util/ServiceManager.js +1 -2
  160. package/src/sap/ui/rta/util/adaptationStarter.js +2 -2
  161. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
  162. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
  163. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -2
  164. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  165. package/src/sap/ui/rta/util/changeVisualization/resolveBinding.js +1 -1
  166. package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
  167. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  168. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @class Constructor for a new sap.ui.rta.plugin.annotations.AnnotationChangeDialog.
30
30
  * @extends sap.ui.base.ManagedObject
31
31
  * @author SAP SE
32
- * @version 1.142.1
32
+ * @version 1.143.1
33
33
  * @constructor
34
34
  * @since 1.132
35
35
  * @private
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @class Controller for the AnnotationChangeDialog.
36
36
  * @extends sap.ui.core.mvc.Controller
37
37
  * @author SAP SE
38
- * @version 1.142.1
38
+ * @version 1.143.1
39
39
  * @constructor
40
40
  * @since 1.132
41
41
  * @private
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  {
42
42
  changeType: oAction.changeType,
43
43
  serviceUrl: oChange.serviceUrl,
44
- content: {...oChange.content, objectTemplateInfo: oAction.objectTemplateInfo},
44
+ content: { ...oChange.content, objectTemplateInfo: oAction.objectTemplateInfo },
45
45
  // aLegacyRenameChanges is only passed for singleRename scenarios, where there is only one annotation change to be saved
46
46
  // so we can simply add it in the loop
47
47
  changesToDelete: aLegacyRenameChanges
@@ -105,7 +105,7 @@ sap.ui.define([
105
105
  * @class
106
106
  * @extends sap.ui.rta.plugin.Plugin
107
107
  * @author SAP SE
108
- * @version 1.142.1
108
+ * @version 1.143.1
109
109
  * @constructor
110
110
  * @private
111
111
  * @since 1.132
@@ -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.142.1
122
+ * @version 1.143.1
123
123
  * @constructor
124
124
  * @private
125
125
  * @since 1.75
@@ -280,6 +280,7 @@
280
280
  width="auto"
281
281
  maxWidth="400px"
282
282
  change="onSizeUnitChange"
283
+ tooltip="{i18n>IFRAME_ADDIFRAME_DIALOG_UNIT_TOOLTIP}"
283
284
  >
284
285
  <core:ListItem key="{dialogInfo>unit}" text="{dialogInfo>unit}" additionalText="{dialogInfo>descriptionText}"/>
285
286
  <layoutData>
@@ -322,7 +323,9 @@
322
323
  columnRatio="1:5"
323
324
  width="auto"
324
325
  maxWidth="400px"
325
- change="onSizeUnitChange">
326
+ change="onSizeUnitChange"
327
+ tooltip="{i18n>IFRAME_ADDIFRAME_DIALOG_UNIT_TOOLTIP}"
328
+ >
326
329
  <core:ListItem key="{dialogInfo>unit}" text="{= ${dialogInfo>unit} === 'vh' ? '%' : ${dialogInfo>unit}}" additionalText="{dialogInfo>descriptionText}"/>
327
330
  <layoutData>
328
331
  <form:ColumnElementData cellsLarge="5" cellsSmall="5" />
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  "use strict";
32
32
 
33
33
  // shortcut for sap.ui.core.ValueState
34
- var {ValueState} = coreLibrary;
34
+ var { ValueState } = coreLibrary;
35
35
  var _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
36
36
 
37
37
  function createJSONModel(bSetUpdateTitle, bAsContainer, sFrameWidthValue, sFrameHeightValue, oAdvancedSettings) {
@@ -123,7 +123,7 @@ sap.ui.define([
123
123
  * @class Context - Dialog for IFrame settings in Runtime Authoring
124
124
  * @extends sap.ui.base.ManagedObject
125
125
  * @author SAP SE
126
- * @version 1.142.1
126
+ * @version 1.143.1
127
127
  * @constructor
128
128
  * @private
129
129
  * @since 1.78
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  "use strict";
32
32
 
33
33
  // shortcut for sap.ui.core.ValueState
34
- var {ValueState} = coreLibrary;
34
+ var { ValueState } = coreLibrary;
35
35
 
36
36
  const _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
37
37
 
@@ -54,7 +54,7 @@ sap.ui.define([
54
54
 
55
55
  function multiInputValidator(oValue) {
56
56
  const sText = oValue.text;
57
- return new Token({key: sText, text: sText});
57
+ return new Token({ key: sText, text: sText });
58
58
  }
59
59
 
60
60
  function setNewPreviewSize(sPropertyName) {
@@ -66,7 +66,6 @@ sap.ui.define([
66
66
  }
67
67
 
68
68
  return Controller.extend("sap.ui.rta.plugin.iframe.AddIFrameDialogController", {
69
- // eslint-disable-next-line object-shorthand
70
69
  constructor: function(oJSONModel, mSettings) {
71
70
  this._oJSONModel = oJSONModel;
72
71
  this._importSettings(mSettings);
@@ -159,7 +158,7 @@ sap.ui.define([
159
158
  this._oJSONModel.setProperty("/previousFrameUrl/value", sReturnedURL);
160
159
  this._oJSONModel.setProperty("/settingsUpdate/value", false);
161
160
 
162
- oIFrame.applySettings({ url: sURL, advancedSettings: {...this._oJSONModel.getProperty("/advancedSettings/value")} });
161
+ oIFrame.applySettings({ url: sURL, advancedSettings: { ...this._oJSONModel.getProperty("/advancedSettings/value") } });
163
162
  // Use the URL from the IFrame to ensure that the complete path is shown
164
163
  this._oJSONModel.setProperty("/previewUrl/value", oIFrame.getUrl());
165
164
  // Prevent the URL preview link (next element in the DOM) from getting the focus because it looks bad
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.rta.plugin.Plugin
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.142.1
31
+ * @version 1.143.1
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class Constructor for a new sap.ui.rta.plugin.rename.RenameDialog.
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.142.1
30
+ * @version 1.143.1
31
31
  * @constructor
32
32
  * @since 1.136
33
33
  * @private
@@ -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.142.1
27
+ * @version 1.143.1
28
28
  * @private
29
29
  * @ui5-restricted
30
30
  *
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @name sap.ui.rta.service.ControllerExtension
31
31
  * @author SAP SE
32
32
  * @since 1.58
33
- * @version 1.142.1
33
+ * @version 1.143.1
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -56,10 +56,11 @@ sap.ui.define([
56
56
  * @param {string} sCodeRef - Name of the file, without path, with the extension <code>.js</code>. Must comply to UI5 module naming convention.
57
57
  * Has to be unique and must not conflict with other already defined modules.
58
58
  * @param {string} sViewId - ID of the view whose controller should be extended
59
+ * @param {boolean} bIncludeViewId - Whether the change should include the view ID in the selector - for instance-specific controller extensions
59
60
  * @return {object} Definition of the newly created change
60
61
  * @public
61
62
  */
62
- add(sCodeRef, sViewId) {
63
+ add(sCodeRef, sViewId, bIncludeViewId) {
63
64
  var oFlexSettings = oRta.getFlexSettings();
64
65
  if (!oFlexSettings.developerMode) {
65
66
  throw DtUtil.createError(
@@ -83,7 +84,7 @@ sap.ui.define([
83
84
  var oAppComponent = FlexUtils.getAppComponentForControl(oView);
84
85
  var sControllerName = oView.getControllerModuleName() ? `module:${oView.getControllerModuleName()}` : oView.getController()?.getMetadata().getName();
85
86
  // Calculate moduleName for code extension
86
- var sReference = FlexRuntimeInfoAPI.getFlexReference({element: oAppComponent});
87
+ var sReference = FlexRuntimeInfoAPI.getFlexReference({ element: oAppComponent });
87
88
  var sModuleName = sReference.replace(/\.Component/g, "").replace(/\./g, "/");
88
89
  sModuleName += "/changes/";
89
90
  sModuleName += sCodeRef.replace(/\.js/g, "");
@@ -98,8 +99,12 @@ sap.ui.define([
98
99
  generator: "rta.service.ControllerExtension"
99
100
  };
100
101
 
101
- var oPreparedChange = ChangesWriteAPI.create({changeSpecificData: oChangeSpecificData, selector: oAppComponent});
102
- PersistenceWriteAPI.add({change: oPreparedChange, selector: oAppComponent});
102
+ if (bIncludeViewId) {
103
+ oChangeSpecificData.viewId = sViewId;
104
+ }
105
+
106
+ var oPreparedChange = ChangesWriteAPI.create({ changeSpecificData: oChangeSpecificData, selector: oAppComponent });
107
+ PersistenceWriteAPI.add({ change: oPreparedChange, selector: oAppComponent });
103
108
  return oPreparedChange.convertToFileContent();
104
109
  },
105
110
 
@@ -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.142.1
46
+ * @version 1.143.1
47
47
  * @private
48
48
  * @ui5-restricted
49
49
  */
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  */
84
84
 
85
85
  function getExtensionPointsForView(sViewId, aConsideredExtensionPointNames) {
86
- var mExtensionPoints = ExtensionPointRegistryAPI.getExtensionPointInfoByViewId({viewId: sViewId});
86
+ var mExtensionPoints = ExtensionPointRegistryAPI.getExtensionPointInfoByViewId({ viewId: sViewId });
87
87
  return _omit(mExtensionPoints, aConsideredExtensionPointNames);
88
88
  }
89
89
 
@@ -162,7 +162,7 @@ sap.ui.define([
162
162
  oOutline._getExtensionPoints = function(oData) {
163
163
  var sParentId = oData.id;
164
164
  var sAggregationName = oData.technicalName;
165
- return ExtensionPointRegistryAPI.getExtensionPointInfoByParentId({parentId: sParentId})
165
+ return ExtensionPointRegistryAPI.getExtensionPointInfoByParentId({ parentId: sParentId })
166
166
  .filter(function(mExtensionPoint) {
167
167
  return mExtensionPoint.aggregationName === sAggregationName;
168
168
  });
@@ -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.142.1
30
+ * @version 1.143.1
31
31
  * @private
32
32
  * @ui5-restricted
33
33
  */
@@ -118,11 +118,11 @@ sap.ui.define([
118
118
  )
119
119
  .then(function(aPromiseResults) {
120
120
  return {
121
- ...(aPromiseResults[0] && !isEmptyObject(aPromiseResults[0]) && {annotations: aPromiseResults[0]}),
122
- ...(aPromiseResults[1] && {properties: aPromiseResults[1]}),
123
- ...(aPromiseResults[2] && {label: validate(aPromiseResults[2])}),
124
- ...(oDesignTimeMetadataData.name && {name: oDesignTimeMetadata.getName(oElement)}),
125
- ...(!isEmptyObject(aPromiseResults[3]) && {links: aPromiseResults[3]})
121
+ ...(aPromiseResults[0] && !isEmptyObject(aPromiseResults[0]) && { annotations: aPromiseResults[0] }),
122
+ ...(aPromiseResults[1] && { properties: aPromiseResults[1] }),
123
+ ...(aPromiseResults[2] && { label: validate(aPromiseResults[2]) }),
124
+ ...(oDesignTimeMetadataData.name && { name: oDesignTimeMetadata.getName(oElement) }),
125
+ ...(!isEmptyObject(aPromiseResults[3]) && { links: aPromiseResults[3] })
126
126
  };
127
127
  });
128
128
  };
@@ -155,7 +155,7 @@ sap.ui.define([
155
155
  var mBindingInfo = oProperty._getBindingInfo(sKey, oElement);
156
156
  Object.assign(
157
157
  mFiltered[sKey],
158
- mBindingInfo && {binding: mBindingInfo}
158
+ mBindingInfo && { binding: mBindingInfo }
159
159
  );
160
160
  return mFiltered;
161
161
  }, {});
@@ -238,9 +238,9 @@ sap.ui.define([
238
238
  .then(function(vPossibleValues) {
239
239
  Object.assign(
240
240
  mEvaluatedProperty[sPropertyName],
241
- mBindingInfo && {binding: mBindingInfo},
242
- vPossibleValues && {possibleValues: validate(vPossibleValues)},
243
- typeof mDtObj[sPropertyName].nullable === "boolean" && {nullable: mDtObj[sPropertyName].nullable} // nullable property
241
+ mBindingInfo && { binding: mBindingInfo },
242
+ vPossibleValues && { possibleValues: validate(vPossibleValues) },
243
+ typeof mDtObj[sPropertyName].nullable === "boolean" && { nullable: mDtObj[sPropertyName].nullable } // nullable property
244
244
  );
245
245
 
246
246
  return mEvaluatedProperty;
@@ -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.142.1
17
+ * @version 1.143.1
18
18
  * @private
19
19
  * @ui5-restricted
20
20
  */
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @name sap.ui.rta.service.SupportTools
31
31
  * @author SAP SE
32
32
  * @since 1.106
33
- * @version 1.142.1
33
+ * @version 1.143.1
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -40,7 +40,7 @@
40
40
  content: " ";
41
41
  transition: box-shadow .25s;
42
42
  box-shadow: @_sap_ui_rta_ChangeVisualization_OverlayBoxShadow;
43
- outline: 0.0625rem solid @_sap_ui_rta_ChangeVisualization_OverlayOutlineColor !important; //1px
43
+ outline: 0.0625rem solid @_sap_ui_rta_ChangeVisualization_OverlayOutlineColor; //1px
44
44
  outline-offset: -0.0625rem; //1px
45
45
  }
46
46
  }
@@ -253,6 +253,11 @@
253
253
  min-width: 3rem; //48px
254
254
  }
255
255
 
256
+ .sapUiRtaCBAButton {
257
+ max-width: 12.5rem; //200px
258
+ min-width: 3rem; //48px
259
+ }
260
+
256
261
  .sapUiRtaToolbarSwitcherSection {
257
262
  width: auto;
258
263
  }
@@ -165,6 +165,7 @@
165
165
  </Button>
166
166
  <MenuButton
167
167
  id="sapUiRta_contextBasedAdaptationMenu"
168
+ class="sapUiRtaCBAButton"
168
169
  tooltip="{parts: [{path: 'contextBasedAdaptations>/count'}, {path: 'contextBasedAdaptations>/displayedAdaptation/title'}], formatter: '.formatAdaptationsMenuText'}"
169
170
  text="{parts: [{path: 'contextBasedAdaptations>/count'}, {path: 'contextBasedAdaptations>/displayedAdaptation/title'}], formatter: '.formatAdaptationsMenuText'}"
170
171
  visible="{= (${controls>/contextBasedAdaptation/visible} &amp;&amp; ${controls>/modeSwitcher} === 'adaptation')}">
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  * @extends sap.ui.rta.toolbar.Base
68
68
  *
69
69
  * @author SAP SE
70
- * @version 1.142.1
70
+ * @version 1.143.1
71
71
  *
72
72
  * @constructor
73
73
  * @private
@@ -405,7 +405,7 @@ sap.ui.define([
405
405
  if (sAction !== MessageBox.Action.CANCEL) {
406
406
  if (bDirty) {
407
407
  return new Promise(function(resolve) {
408
- this.fireEvent("save", {callback: resolve});
408
+ this.fireEvent("save", { callback: resolve });
409
409
  }.bind(this))
410
410
  .then(function() {
411
411
  return performMigration.call(this, oRtaInformation);
@@ -433,7 +433,7 @@ sap.ui.define([
433
433
  }))
434
434
  .then(function() {
435
435
  return new Promise(function(resolve) {
436
- this.fireEvent("switchAdaptation", {adaptationId: "DEFAULT", callback: resolve});
436
+ this.fireEvent("switchAdaptation", { adaptationId: "DEFAULT", callback: resolve });
437
437
  }.bind(this));
438
438
  }.bind(this))
439
439
  .catch(function(oError) {
@@ -474,7 +474,7 @@ sap.ui.define([
474
474
 
475
475
  function handleError(oError) {
476
476
  if (oError !== "cancel") {
477
- Utils.showMessageBox("error", "MSG_LREP_TRANSFER_ERROR", {error: oError});
477
+ Utils.showMessageBox("error", "MSG_LREP_TRANSFER_ERROR", { error: oError });
478
478
  Log.error(`sap.ui.rta: ${oError.stack || oError.message || oError}`);
479
479
  }
480
480
  }
@@ -492,7 +492,7 @@ sap.ui.define([
492
492
  }
493
493
 
494
494
  function onSwitchAdaptations(sAdaptationId) {
495
- this.fireEvent("switchAdaptation", {adaptationId: sAdaptationId});
495
+ this.fireEvent("switchAdaptation", { adaptationId: sAdaptationId });
496
496
  }
497
497
 
498
498
  function formatAdaptationsMenuText(iCount, sTitle) {
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.m.HBox
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.142.1
36
+ * @version 1.143.1
37
37
  *
38
38
  * @constructor
39
39
  * @private
@@ -71,7 +71,6 @@ sap.ui.define([
71
71
  textResources: "object"
72
72
  }
73
73
  },
74
- // eslint-disable-next-line object-shorthand
75
74
  constructor: function(...aArgs) {
76
75
  // call parent constructor
77
76
  HBox.apply(this, aArgs);
@@ -133,7 +132,7 @@ sap.ui.define([
133
132
  */
134
133
  Base.prototype.getExtension = function(sName, Extension) {
135
134
  if (!Object.keys(this._oExtensions).includes(sName)) {
136
- this._oExtensions[sName] = new Extension({toolbar: this});
135
+ this._oExtensions[sName] = new Extension({ toolbar: this });
137
136
  }
138
137
  return this._oExtensions[sName];
139
138
  };
@@ -34,7 +34,7 @@ function(
34
34
  * @extends sap.ui.rta.toolbar.Adaptation
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.142.1
37
+ * @version 1.143.1
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Adaptation
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.142.1
25
+ * @version 1.143.1
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.m.OverflowToolbarButton
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.142.1
26
+ * @version 1.143.1
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  "sap.m.IOverflowToolbarContent"
39
39
  ],
40
40
  properties: {
41
- visibleIcon: {type: "string", defaultValue: ""}
41
+ visibleIcon: { type: "string", defaultValue: "" }
42
42
  }
43
43
  },
44
44
  renderer: ButtonRenderer
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Adaptation
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.142.1
25
+ * @version 1.143.1
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -60,7 +60,6 @@ sap.ui.define([
60
60
  }
61
61
  }
62
62
  },
63
- // eslint-disable-next-line object-shorthand
64
63
  constructor: function(...aArgs) {
65
64
  ManagedObject.prototype.constructor.apply(this, aArgs);
66
65
  this.oTextResources = this.getToolbar().getTextResources();
@@ -111,7 +110,7 @@ sap.ui.define([
111
110
  this.oAdaptationsModel.updateAdaptations(oAdaptations.adaptations);
112
111
  this.oReferenceAdaptationsData = JSON.parse(JSON.stringify(this.oAdaptationsModel.getProperty("/adaptations")));
113
112
  this._oOriginAdaptationsData = JSON.parse(JSON.stringify(this.oAdaptationsModel.getProperty("/allAdaptations")));
114
- this._oControlConfigurationModel = new JSONModel({isTableItemSelected: false});
113
+ this._oControlConfigurationModel = new JSONModel({ isTableItemSelected: false });
115
114
  this._oManageAdaptationDialog.setModel(this.oAdaptationsModel, "contextBased");
116
115
  this._oManageAdaptationDialog.setModel(this._oControlConfigurationModel, "controlConfiguration");
117
116
  getAdaptationsTable.call(this).attachSelectionChange(onSelectionChange.bind(this));
@@ -371,7 +370,7 @@ sap.ui.define([
371
370
  return ContextBasedAdaptationsAPI.reorder({
372
371
  control: oRtaInformation.rootControl,
373
372
  layer: oRtaInformation.flexSettings.layer,
374
- parameters: {priorities: aAdaptationPriorities}
373
+ parameters: { priorities: aAdaptationPriorities }
375
374
  });
376
375
  }.bind(this)).then(function() {
377
376
  const oAllUpdatedAdaptations = _union(
@@ -383,7 +382,7 @@ sap.ui.define([
383
382
  }.bind(this))
384
383
  .catch(function(oError) {
385
384
  if (oError !== "cancel") {
386
- Utils.showMessageBox("error", "MSG_LREP_TRANSFER_ERROR", { titleKey: "BTN_MANAGE_APP_CTX", error: oError});
385
+ Utils.showMessageBox("error", "MSG_LREP_TRANSFER_ERROR", { titleKey: "BTN_MANAGE_APP_CTX", error: oError });
387
386
  Log.error(`sap.ui.rta: ${oError.stack || oError.message || oError}`);
388
387
  }
389
388
  });
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  "use strict";
37
37
 
38
38
  // shortcut for sap.ui.core.ValueState
39
- var {ValueState} = coreLibrary;
39
+ var { ValueState } = coreLibrary;
40
40
 
41
41
  /**
42
42
  * Controller for the <code>sap.ui.rta.toolbar.contextBased.SaveAsAdaptation</code> controls.
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @class
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.142.1
48
+ * @version 1.143.1
49
49
  *
50
50
  * @constructor
51
51
  * @private
@@ -60,7 +60,6 @@ sap.ui.define([
60
60
  }
61
61
  }
62
62
  },
63
- // eslint-disable-next-line object-shorthand
64
63
  constructor: function(...aArgs) {
65
64
  ManagedObject.prototype.constructor.apply(this, aArgs);
66
65
  this.oTextResources = this.getToolbar().getTextResources();
@@ -125,7 +124,7 @@ sap.ui.define([
125
124
  roles: oDisplayedAdaptation.contexts.role
126
125
  };
127
126
  this.getToolbar().getControl("addAdaptationDialog--saveAdaptation-title-input").setValue(this._mEditProperties.title);
128
- this._oContextComponentInstance.setSelectedContexts({role: this._mEditProperties.roles});
127
+ this._oContextComponentInstance.setSelectedContexts({ role: this._mEditProperties.roles });
129
128
  }
130
129
 
131
130
  // ------ formatting ------
@@ -201,7 +200,7 @@ sap.ui.define([
201
200
  contextBasedAdaptation: oContextBasedAdaptation
202
201
  }).then(function() {
203
202
  BusyIndicator.hide();
204
- this.getToolbar().fireEvent("switchAdaptation", {adaptationId: oContextBasedAdaptation.id, trigger: "SaveAs"});
203
+ this.getToolbar().fireEvent("switchAdaptation", { adaptationId: oContextBasedAdaptation.id, trigger: "SaveAs" });
205
204
  Measurement.end("onCBASaveAsAdaptation");
206
205
  Measurement.getActive() && Log.info(`onCBASaveAsAdaptation: ${Measurement.getMeasurement("onCBASaveAsAdaptation").time} ms`);
207
206
  }.bind(this)).catch(function(oError) {
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @class
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.142.1
56
+ * @version 1.143.1
57
57
  *
58
58
  * @constructor
59
59
  * @private
@@ -68,7 +68,6 @@ sap.ui.define([
68
68
  }
69
69
  }
70
70
  },
71
- // eslint-disable-next-line object-shorthand
72
71
  constructor: function(...aArgs) {
73
72
  ManagedObject.prototype.constructor.apply(this, aArgs);
74
73
  this._oTranslationModel = new JSONModel(getInitialTranslationModelData());
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @class
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.142.1
41
+ * @version 1.143.1
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -53,7 +53,6 @@ sap.ui.define([
53
53
  }
54
54
  }
55
55
  },
56
- // eslint-disable-next-line object-shorthand
57
56
  constructor: function(...aArgs) {
58
57
  ManagedObject.prototype.constructor.apply(this, aArgs);
59
58
  this.oTextResources = this.getToolbar().getTextResources();
@@ -69,7 +68,7 @@ sap.ui.define([
69
68
  sVersion = oVersionsBindingContext.getProperty("version");
70
69
  }
71
70
 
72
- this.getToolbar().fireEvent("switchVersion", {version: sVersion});
71
+ this.getToolbar().fireEvent("switchVersion", { version: sVersion });
73
72
  }
74
73
 
75
74
  function doesActiveVersionExists(aVersions) {
@@ -247,7 +246,7 @@ sap.ui.define([
247
246
  onConfirmVersioningDialog: function() {
248
247
  var sVersionTitle = this.getToolbar().getControl("activateVersionDialog--versionTitleInput").getValue();
249
248
  if (sVersionTitle.length > 0) {
250
- this.getToolbar().fireEvent("activate", {versionTitle: sVersionTitle});
249
+ this.getToolbar().fireEvent("activate", { versionTitle: sVersionTitle });
251
250
  this._oActivateVersionDialog.close();
252
251
  }
253
252
  }.bind(this),
@@ -21,7 +21,7 @@ sap.ui.define([], function() {
21
21
  }
22
22
 
23
23
  return new Promise(function(fnResolve) {
24
- oElement.addEventListener("transitionend", fnResolve, {once: true});
24
+ oElement.addEventListener("transitionend", fnResolve, { once: true });
25
25
 
26
26
  // perform animation in the next animation frame, normally 16-17ms later.
27
27
  let iTimestampInitial;
@@ -64,7 +64,7 @@ sap.ui.define([
64
64
  * Constructor for a new sap.ui.rta.util.PluginManager
65
65
  * @extends sap.ui.base.ManagedObject
66
66
  * @author SAP SE
67
- * @version 1.142.1
67
+ * @version 1.143.1
68
68
  * @constructor
69
69
  * @private
70
70
  * @since 1.86
@@ -75,7 +75,7 @@ sap.ui.define([
75
75
  * Constructor for a new sap.ui.rta.util.PopupManager
76
76
  * @extends sap.ui.base.ManagedObject
77
77
  * @author SAP SE
78
- * @version 1.142.1
78
+ * @version 1.143.1
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.48
@@ -423,7 +423,7 @@ sap.ui.define([
423
423
  */
424
424
  PopupManager.prototype._applyPopupPatch = function(oPopupElement) {
425
425
  const oOverlayContainer = Overlay.getOverlayContainer();
426
- const {oPopup} = oPopupElement;
426
+ const { oPopup } = oPopupElement;
427
427
  const aAutoCloseAreas = [
428
428
  oPopup.oContent.getDomRef(),
429
429
  oOverlayContainer
@@ -559,7 +559,7 @@ sap.ui.define([
559
559
  * @private
560
560
  */
561
561
  PopupManager.prototype._removePopupPatch = function(oPopupElement) {
562
- const {oPopup} = oPopupElement;
562
+ const { oPopup } = oPopupElement;
563
563
  oPopup[this._getFocusEventName("add")]();
564
564
  if (this.fnOriginalPopupOnAfterRendering) {
565
565
  oPopup.onAfterRendering = this.fnOriginalPopupOnAfterRendering;
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @namespace sap.ui.rta.util.ReloadManager
31
31
  * @alias sap.ui.rta.util.ReloadManager
32
32
  * @since 1.104
33
- * @version 1.142.1
33
+ * @version 1.143.1
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -148,7 +148,7 @@ sap.ui.define([
148
148
  * @param {sap.ui.core.Control} oRootControl - Root control for which key user adaptation was started
149
149
  */
150
150
  ReloadManager.enableAutomaticStart = function(sLayer, oRootControl) {
151
- const sFlexReference = FlexRuntimeInfoAPI.getFlexReference({element: oRootControl});
151
+ const sFlexReference = FlexRuntimeInfoAPI.getFlexReference({ element: oRootControl });
152
152
  const vParameter = sFlexReference || true;
153
153
  window.sessionStorage.setItem(`sap.ui.rta.restart.${sLayer}`, vParameter);
154
154
  };
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  *
19
19
  * @extends sap.ui.core.EventBus
20
20
  * @author SAP SE
21
- * @version 1.142.1
21
+ * @version 1.143.1
22
22
  * @private
23
23
  * @since 1.56.0
24
24
  * @alias sap.ui.rta.util.ServiceEventBus