@openui5/sap.ui.rta 1.138.0 → 1.139.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 (160) hide show
  1. package/README.md +1 -1
  2. package/REUSE.toml +8 -1
  3. package/THIRDPARTY.txt +72 -66
  4. package/package.json +7 -7
  5. package/src/sap/ui/rta/.library +1 -1
  6. package/src/sap/ui/rta/Client.js +1 -1
  7. package/src/sap/ui/rta/RuntimeAuthoring.js +75 -122
  8. package/src/sap/ui/rta/Utils.js +1 -1
  9. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +5 -4
  10. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  11. package/src/sap/ui/rta/command/AddIFrame.js +12 -5
  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/AnnotationCommand.js +1 -1
  16. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  17. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  18. package/src/sap/ui/rta/command/Combine.js +1 -1
  19. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  20. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  26. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  27. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  28. package/src/sap/ui/rta/command/ExtendControllerCommand.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/ManifestCommand.js +1 -1
  33. package/src/sap/ui/rta/command/Move.js +1 -1
  34. package/src/sap/ui/rta/command/Property.js +1 -1
  35. package/src/sap/ui/rta/command/Remove.js +1 -1
  36. package/src/sap/ui/rta/command/Rename.js +1 -1
  37. package/src/sap/ui/rta/command/Resize.js +1 -1
  38. package/src/sap/ui/rta/command/Reveal.js +1 -1
  39. package/src/sap/ui/rta/command/Settings.js +1 -1
  40. package/src/sap/ui/rta/command/Split.js +1 -1
  41. package/src/sap/ui/rta/command/Stack.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 +1 -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/command/manifest/AddLibrary.js +1 -1
  47. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  48. package/src/sap/ui/rta/library.js +2 -2
  49. package/src/sap/ui/rta/messagebundle.properties +50 -20
  50. package/src/sap/ui/rta/messagebundle_ar.properties +2 -1
  51. package/src/sap/ui/rta/messagebundle_bg.properties +2 -1
  52. package/src/sap/ui/rta/messagebundle_ca.properties +2 -1
  53. package/src/sap/ui/rta/messagebundle_cnr.properties +1 -0
  54. package/src/sap/ui/rta/messagebundle_cs.properties +2 -1
  55. package/src/sap/ui/rta/messagebundle_cy.properties +1 -0
  56. package/src/sap/ui/rta/messagebundle_da.properties +2 -1
  57. package/src/sap/ui/rta/messagebundle_de.properties +2 -1
  58. package/src/sap/ui/rta/messagebundle_el.properties +2 -1
  59. package/src/sap/ui/rta/messagebundle_en.properties +2 -1
  60. package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -1
  61. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +23 -18
  62. package/src/sap/ui/rta/messagebundle_es.properties +2 -1
  63. package/src/sap/ui/rta/messagebundle_es_MX.properties +1 -0
  64. package/src/sap/ui/rta/messagebundle_et.properties +2 -1
  65. package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
  66. package/src/sap/ui/rta/messagebundle_fr.properties +2 -1
  67. package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -1
  68. package/src/sap/ui/rta/messagebundle_hi.properties +1 -0
  69. package/src/sap/ui/rta/messagebundle_hr.properties +2 -1
  70. package/src/sap/ui/rta/messagebundle_hu.properties +2 -1
  71. package/src/sap/ui/rta/messagebundle_id.properties +4 -3
  72. package/src/sap/ui/rta/messagebundle_it.properties +2 -1
  73. package/src/sap/ui/rta/messagebundle_iw.properties +3 -2
  74. package/src/sap/ui/rta/messagebundle_ja.properties +2 -1
  75. package/src/sap/ui/rta/messagebundle_kk.properties +2 -1
  76. package/src/sap/ui/rta/messagebundle_ko.properties +2 -1
  77. package/src/sap/ui/rta/messagebundle_lt.properties +1 -0
  78. package/src/sap/ui/rta/messagebundle_lv.properties +2 -1
  79. package/src/sap/ui/rta/messagebundle_mk.properties +2 -1
  80. package/src/sap/ui/rta/messagebundle_ms.properties +1 -0
  81. package/src/sap/ui/rta/messagebundle_nl.properties +1 -0
  82. package/src/sap/ui/rta/messagebundle_no.properties +2 -1
  83. package/src/sap/ui/rta/messagebundle_pl.properties +2 -1
  84. package/src/sap/ui/rta/messagebundle_pt.properties +2 -1
  85. package/src/sap/ui/rta/messagebundle_pt_PT.properties +2 -1
  86. package/src/sap/ui/rta/messagebundle_ro.properties +1 -0
  87. package/src/sap/ui/rta/messagebundle_ru.properties +2 -1
  88. package/src/sap/ui/rta/messagebundle_sh.properties +1 -0
  89. package/src/sap/ui/rta/messagebundle_sk.properties +2 -1
  90. package/src/sap/ui/rta/messagebundle_sl.properties +1 -0
  91. package/src/sap/ui/rta/messagebundle_sr.properties +1 -0
  92. package/src/sap/ui/rta/messagebundle_sv.properties +2 -1
  93. package/src/sap/ui/rta/messagebundle_th.properties +4 -3
  94. package/src/sap/ui/rta/messagebundle_tr.properties +2 -1
  95. package/src/sap/ui/rta/messagebundle_uk.properties +2 -1
  96. package/src/sap/ui/rta/messagebundle_vi.properties +3 -2
  97. package/src/sap/ui/rta/messagebundle_zh_CN.properties +2 -1
  98. package/src/sap/ui/rta/messagebundle_zh_TW.properties +1 -0
  99. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  100. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +3 -2
  101. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  102. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  103. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  104. package/src/sap/ui/rta/plugin/CreateContainer.js +57 -35
  105. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  106. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  107. package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +3 -2
  108. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  109. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  110. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  111. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  112. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  113. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  114. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  115. package/src/sap/ui/rta/plugin/Split.js +1 -1
  116. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  122. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +1 -1
  123. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
  124. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +1 -1
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +254 -201
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +28 -75
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +49 -11
  129. package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
  130. package/src/sap/ui/rta/plugin/rename/RenameDialog.fragment.xml +2 -2
  131. package/src/sap/ui/rta/plugin/rename/RenameDialog.js +41 -23
  132. package/src/sap/ui/rta/service/Action.js +1 -1
  133. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  134. package/src/sap/ui/rta/service/Outline.js +1 -1
  135. package/src/sap/ui/rta/service/Property.js +1 -1
  136. package/src/sap/ui/rta/service/Selection.js +1 -1
  137. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  138. package/src/sap/ui/rta/themes/base/AddIFrame.less +23 -33
  139. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +1 -1
  140. package/src/sap/ui/rta/toolbar/Adaptation.js +4 -3
  141. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Fiori.js +2 -7
  143. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  144. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  145. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  146. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  147. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  148. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  149. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  150. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  151. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  152. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  153. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +5 -4
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +13 -25
  157. package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +22 -5
  158. package/src/sap/ui/rta/util/guidedTour/TourMarker.fragment.xml +1 -1
  159. package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
  160. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +2 -3
@@ -34,7 +34,7 @@ function(
34
34
  * @extends sap.ui.rta.toolbar.Adaptation
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.138.0
37
+ * @version 1.139.0
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -71,13 +71,9 @@ function(
71
71
  const sLogoPath = this.getUshellApi().getLogo();
72
72
 
73
73
  if (sLogoPath) {
74
- // get all images from the Fiori Header
75
- const aHeaderImages = this._oFioriHeader.getDomRef().querySelectorAll("img");
76
- // check if one of the images is the logo
77
- const oLogo = Array.from(aHeaderImages).find((oImage) => oImage.src.includes(sLogoPath));
74
+ const oLogo = this.getUshellApi().getLogoDomRef();
78
75
  let iWidth;
79
76
  let iHeight;
80
-
81
77
  if (oLogo) {
82
78
  iWidth = oLogo.getBoundingClientRect().width;
83
79
  iHeight = oLogo.getBoundingClientRect().height;
@@ -87,7 +83,6 @@ function(
87
83
  this.getControl("iconSpacer").setWidth("8px");
88
84
  this._iLogoWidth = iWidth + 8;
89
85
 
90
- // first control is the left HBox
91
86
  this.getControl("iconBox").addItem(
92
87
  new Image(`${this.getId()}_fragment--sapUiRta_icon`, {
93
88
  src: sLogoPath,
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Adaptation
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.138.0
25
+ * @version 1.139.0
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.138.0
26
+ * @version 1.139.0
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Adaptation
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.138.0
25
+ * @version 1.139.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @class
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.138.0
48
+ * @version 1.139.0
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.138.0
56
+ * @version 1.139.0
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.138.0
41
+ * @version 1.139.0
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -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.138.0
67
+ * @version 1.139.0
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.138.0
78
+ * @version 1.139.0
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.48
@@ -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.138.0
33
+ * @version 1.139.0
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  *
19
19
  * @extends sap.ui.core.EventBus
20
20
  * @author SAP SE
21
- * @version 1.138.0
21
+ * @version 1.139.0
22
22
  * @private
23
23
  * @since 1.56.0
24
24
  * @alias sap.ui.rta.util.ServiceEventBus
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.138.0
30
+ * @version 1.139.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.121
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
47
47
  * @author SAP SE
48
48
  * @since 1.84.0
49
- * @version 1.138.0
49
+ * @version 1.139.0
50
50
  * @private
51
51
  */
52
52
  const ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
38
38
  * @author SAP SE
39
39
  * @since 1.86.0
40
- * @version 1.138.0
40
+ * @version 1.139.0
41
41
  * @private
42
42
  */
43
43
  const ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
@@ -293,10 +293,11 @@ sap.ui.define([
293
293
 
294
294
  /**
295
295
  * Waits for the registered indicators to be rendered.
296
- * @returns {Promise} Resolves when all registered indicators are rendered.
296
+ * @returns {Promise} Resolves when all visible indicators are rendered.
297
297
  */
298
298
  ChangeIndicatorRegistry.prototype.waitForIndicatorRendering = function() {
299
- return Promise.all(this.getChangeIndicators().map((oIndicator) => oIndicator.waitForRendering()));
299
+ const aVisibleIndicators = this.getChangeIndicators().filter((oIndicator) => oIndicator.getVisible());
300
+ return Promise.all(aVisibleIndicators.map((oIndicator) => oIndicator.waitForRendering()));
300
301
  };
301
302
 
302
303
  /**
@@ -348,4 +349,4 @@ sap.ui.define([
348
349
  };
349
350
 
350
351
  return ChangeIndicatorRegistry;
351
- });
352
+ });
@@ -84,7 +84,7 @@ sap.ui.define([
84
84
  * @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
85
85
  * @author SAP SE
86
86
  * @since 1.84.0
87
- * @version 1.138.0
87
+ * @version 1.139.0
88
88
  * @private
89
89
  */
90
90
  const ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
@@ -133,7 +133,6 @@ sap.ui.define([
133
133
  });
134
134
  this._oChangeVisualizationModel.setDefaultBindingMode("TwoWay");
135
135
  this._sSelectedChangeCategory = ChangeCategories.ALL;
136
- this._bSetModeChanged = false;
137
136
 
138
137
  // For the event handlers to work, the function instance has to remain stable
139
138
  this._fnOnClickHandler = _onClick.bind(this);
@@ -266,10 +265,7 @@ sap.ui.define([
266
265
 
267
266
  // Filter allRegisteredChanges for independent changes and get the ids
268
267
  const aRegisteredIndependentChanges = aAllRegisteredChanges.filter(function(oChange) {
269
- if (!oChange.dependent) {
270
- return true;
271
- }
272
- return false;
268
+ return !oChange.dependent;
273
269
  });
274
270
 
275
271
  const oSortedChanges = this._determineChangeVisibility(
@@ -336,29 +332,21 @@ sap.ui.define([
336
332
  return `${sBaseText} (${sStateText})`;
337
333
  };
338
334
 
339
- ChangeVisualization.prototype.openChangeCategorySelectionPopover = function(oEvent) {
335
+ ChangeVisualization.prototype.openChangeCategorySelectionPopover = async function(oEvent) {
340
336
  // Event bubbled through the toolbar, get original source
341
- this._oToolbarButton ||= Element.getElementById(oEvent.getParameter("id"));
342
- const oPopover = this.getPopover();
337
+ this._oToolbarButton ||= Element.getElementById(oEvent?.getParameter("id"));
338
+ const oPopover = this.getPopover?.();
343
339
 
344
340
  if (!oPopover) {
345
- Fragment.load({
341
+ const oPopover = await Fragment.load({
346
342
  name: "sap.ui.rta.util.changeVisualization.ChangeIndicatorCategorySelection",
347
343
  id: `${this._oToolbarButton.sId}--ChangeIndicatorCategorySelection`,
348
344
  controller: this
349
- })
350
- .then(function(oPopover) {
351
- this._oToolbarButton.addDependent(oPopover);
352
- oPopover.setModel(this._oChangeVisualizationModel, "visualizationModel");
353
- oPopover.openBy(this._oToolbarButton);
354
- this.setPopover(oPopover);
355
- // Currently required because of an binding issue from the control
356
- // At the first opening of the popover the controls don't get updated when the bound
357
- // model changes. With the reopening this Problem gets fixed
358
- // TODO Remove once control owners have fixed the issue
359
- oPopover.close();
360
- oPopover.openBy(this._oToolbarButton);
361
- }.bind(this));
345
+ });
346
+ this._oToolbarButton.addDependent(oPopover);
347
+ oPopover.setModel(this._oChangeVisualizationModel, "visualizationModel");
348
+ oPopover.openBy(this._oToolbarButton);
349
+ this.setPopover(oPopover);
362
350
  return;
363
351
  }
364
352
 
@@ -633,7 +621,7 @@ sap.ui.define([
633
621
  // Set the tabindex according the sorting
634
622
  // Focus the first visible indicator
635
623
  await this._oChangeIndicatorRegistry.waitForIndicatorRendering();
636
- const aVisibleIndicators = [];
624
+
637
625
  this._oChangeIndicatorRegistry.getChangeIndicators().forEach((oIndicator) => {
638
626
  const oOverlay = OverlayRegistry.getOverlay(oIndicator.getOverlayId());
639
627
  // As setting the focus happens asynchronously after rendering,
@@ -643,12 +631,12 @@ sap.ui.define([
643
631
  }
644
632
  if (oIndicator.getVisible()) {
645
633
  oOverlay.setFocusable(true);
646
- aVisibleIndicators.push(oIndicator);
647
634
  } else {
648
635
  oOverlay.setFocusable(false);
649
636
  }
650
637
  });
651
638
 
639
+ const aVisibleIndicators = this._oChangeIndicatorRegistry.getChangeIndicators().filter((oIndicator) => oIndicator.getVisible());
652
640
  if (aVisibleIndicators.length > 0) {
653
641
  aVisibleIndicators.sort(function(oIndicator1, oIndicator2) {
654
642
  const iDeltaY = oIndicator1.getPosY() - oIndicator2.getPosY();
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class Constructor for a new sap.ui.rta.util.guidedTour.GuidedTour
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.138.0
30
+ * @version 1.139.0
31
31
  * @constructor
32
32
  * @since 1.136
33
33
  * @private
@@ -99,6 +99,13 @@ sap.ui.define([
99
99
  }
100
100
  }
101
101
 
102
+ function restorePopoverModality() {
103
+ // If the affected control was a Popover, we need to restore the modal state
104
+ if (this._oAffectedControl?.isA("sap.m.Popover")) {
105
+ this._oAffectedControl.setModal(this._oAffectedControlOriginalModalState);
106
+ }
107
+ }
108
+
102
109
  GuidedTour.prototype.autoStart = async function(oTourContent) {
103
110
  const sResponse = await Utils.showMessageBox(
104
111
  "information",
@@ -152,16 +159,23 @@ sap.ui.define([
152
159
  try {
153
160
  for (const sActionSelector of aActionSelectors) {
154
161
  const oActionControl = await waitForElementVisibility.call(this, sActionSelector);
155
- oActionControl.firePress();
162
+ await oActionControl.firePress();
156
163
  }
157
164
 
158
- const oAffectedControl = oStepConfig.waitForElement
165
+ this._oAffectedControl = oStepConfig.waitForElement
159
166
  ? await waitForElementVisibility.call(this, sSelector)
160
167
  : Element.getElementById(sSelector);
161
168
 
162
169
  // Open the popover if the element is visible
163
- if (oAffectedControl && oAffectedControl.getVisible()) {
164
- this._oPopover.openBy(oAffectedControl);
170
+ if (this._oAffectedControl && this._oAffectedControl.getVisible()) {
171
+ // If the affected control is a Popover, we need to open it modal
172
+ // because if the affected control is not modal, it could be closed
173
+ // this would also close the Guided Tour Popover
174
+ if (this._oAffectedControl.isA("sap.m.Popover")) {
175
+ this._oAffectedControlOriginalModalState = this._oAffectedControl.getModal();
176
+ this._oAffectedControl.setModal(true);
177
+ }
178
+ this._oPopover.openBy(this._oAffectedControl);
165
179
  } else {
166
180
  skipStep.call(this);
167
181
  }
@@ -184,6 +198,7 @@ sap.ui.define([
184
198
  };
185
199
 
186
200
  GuidedTour.prototype.onNextPress = function() {
201
+ restorePopoverModality.call(this);
187
202
  this.setProperty("forwardDirection", true);
188
203
  this._oPopover.close();
189
204
  const nCurrentStep = this.getCurrentStep();
@@ -200,6 +215,7 @@ sap.ui.define([
200
215
  };
201
216
 
202
217
  GuidedTour.prototype.onPreviousPress = function() {
218
+ restorePopoverModality.call(this);
203
219
  this.setProperty("forwardDirection", false);
204
220
  this._oPopover.close();
205
221
  const nCurrentStep = this.getCurrentStep();
@@ -225,6 +241,7 @@ sap.ui.define([
225
241
  };
226
242
 
227
243
  GuidedTour.prototype.onClosePress = async function() {
244
+ restorePopoverModality.call(this);
228
245
  this._oPopover.close();
229
246
  this.fireTourClosed();
230
247
  this.destroy();
@@ -36,7 +36,7 @@
36
36
  <OverflowToolbar>
37
37
  <ToolbarSpacer/>
38
38
  <Button
39
- id="previewsButton"
39
+ id="previousButton"
40
40
  text="{i18n>BTN_GUIDED_TOUR_PREV}"
41
41
  visible="{= !${/isFirstStep}}"
42
42
  press=".onPreviousPress" />
@@ -129,7 +129,7 @@ sap.ui.define([
129
129
  title: oTextResources.getText("TIT_TOUR_GENERAL_STEP_VERSIONS_DROPDOWN_TITLE"),
130
130
  description: oTextResources.getText("TXT_TOUR_GENERAL_STEP_VERSIONS_DROPDOWN_DESCRIPTION"),
131
131
  listContent: [],
132
- markerSelector: "sapUIRta_toolbar_fragment--sapUiRta_versionHistoryDialog--originalVersionList",
132
+ markerSelector: "sapUIRta_toolbar_fragment--sapUiRta_versionHistoryDialog--popover",
133
133
  waitForElement: true,
134
134
  actionSelectors: ["sapUIRta_toolbar_fragment--sapUiRta_versionButton"]
135
135
  },
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @class Constructor for a new sap.ui.rta.util.whatsNew.WhatsNew
32
32
  * @extends sap.ui.base.ManagedObject
33
33
  * @author SAP SE
34
- * @version 1.138.0
34
+ * @version 1.139.0
35
35
  * @constructor
36
36
  * @since 1.129
37
37
  * @private
@@ -73,8 +73,7 @@ sap.ui.define([
73
73
  this.aUnseenFeatures = await WhatsNewUtils.getFilteredFeatures(aDontShowAgainFeatureIds, this.getLayer());
74
74
  };
75
75
 
76
- WhatsNew.prototype.initializeWhatsNewDialog = async function(aExcludeFeatureIds = []) {
77
- const aDontShowAgainFeatureIds = await FeaturesAPI.getSeenFeatureIds({ layer: this.getLayer() });
76
+ WhatsNew.prototype.initializeWhatsNewDialog = async function(aDontShowAgainFeatureIds, aExcludeFeatureIds = []) {
78
77
  await this.setDontShowAgainFeatureIds(aDontShowAgainFeatureIds);
79
78
  if (this.aUnseenFeatures.length === 0 || this.getLayer() !== "CUSTOMER") {
80
79
  return;