@openui5/sap.ui.rta 1.136.1 → 1.138.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 (177) hide show
  1. package/REUSE.toml +0 -28
  2. package/THIRDPARTY.txt +1 -25
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +1 -1
  5. package/src/sap/ui/rta/Client.js +1 -1
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +33 -22
  7. package/src/sap/ui/rta/Utils.js +1 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  9. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  10. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  11. package/src/sap/ui/rta/command/AddXML.js +1 -1
  12. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  13. package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
  14. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  15. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  16. package/src/sap/ui/rta/command/Combine.js +1 -1
  17. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  18. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  19. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  24. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  25. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  26. package/src/sap/ui/rta/command/ExtendControllerCommand.js +1 -1
  27. package/src/sap/ui/rta/command/FlexCommand.js +2 -3
  28. package/src/sap/ui/rta/command/LREPSerializer.js +2 -85
  29. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  30. package/src/sap/ui/rta/command/ManifestCommand.js +1 -1
  31. package/src/sap/ui/rta/command/Move.js +1 -1
  32. package/src/sap/ui/rta/command/Property.js +1 -1
  33. package/src/sap/ui/rta/command/Remove.js +1 -1
  34. package/src/sap/ui/rta/command/Rename.js +1 -1
  35. package/src/sap/ui/rta/command/Resize.js +1 -1
  36. package/src/sap/ui/rta/command/Reveal.js +1 -1
  37. package/src/sap/ui/rta/command/Settings.js +1 -1
  38. package/src/sap/ui/rta/command/Split.js +1 -1
  39. package/src/sap/ui/rta/command/Stack.js +115 -87
  40. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  41. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  42. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  44. package/src/sap/ui/rta/command/manifest/AddLibrary.js +1 -1
  45. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  46. package/src/sap/ui/rta/library.js +2 -2
  47. package/src/sap/ui/rta/messagebundle.properties +12 -60
  48. package/src/sap/ui/rta/messagebundle_ar.properties +17 -41
  49. package/src/sap/ui/rta/messagebundle_bg.properties +17 -41
  50. package/src/sap/ui/rta/messagebundle_ca.properties +17 -41
  51. package/src/sap/ui/rta/messagebundle_cnr.properties +17 -41
  52. package/src/sap/ui/rta/messagebundle_cs.properties +16 -40
  53. package/src/sap/ui/rta/messagebundle_cy.properties +17 -41
  54. package/src/sap/ui/rta/messagebundle_da.properties +17 -41
  55. package/src/sap/ui/rta/messagebundle_de.properties +15 -39
  56. package/src/sap/ui/rta/messagebundle_el.properties +17 -41
  57. package/src/sap/ui/rta/messagebundle_en.properties +18 -42
  58. package/src/sap/ui/rta/messagebundle_en_GB.properties +18 -42
  59. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +102 -35
  60. package/src/sap/ui/rta/messagebundle_es.properties +43 -67
  61. package/src/sap/ui/rta/messagebundle_es_MX.properties +17 -41
  62. package/src/sap/ui/rta/messagebundle_et.properties +18 -42
  63. package/src/sap/ui/rta/messagebundle_fi.properties +17 -41
  64. package/src/sap/ui/rta/messagebundle_fr.properties +18 -42
  65. package/src/sap/ui/rta/messagebundle_fr_CA.properties +18 -42
  66. package/src/sap/ui/rta/messagebundle_hi.properties +17 -41
  67. package/src/sap/ui/rta/messagebundle_hr.properties +18 -42
  68. package/src/sap/ui/rta/messagebundle_hu.properties +17 -41
  69. package/src/sap/ui/rta/messagebundle_id.properties +22 -46
  70. package/src/sap/ui/rta/messagebundle_it.properties +17 -41
  71. package/src/sap/ui/rta/messagebundle_iw.properties +18 -42
  72. package/src/sap/ui/rta/messagebundle_ja.properties +20 -44
  73. package/src/sap/ui/rta/messagebundle_kk.properties +23 -47
  74. package/src/sap/ui/rta/messagebundle_ko.properties +18 -42
  75. package/src/sap/ui/rta/messagebundle_lt.properties +17 -41
  76. package/src/sap/ui/rta/messagebundle_lv.properties +17 -41
  77. package/src/sap/ui/rta/messagebundle_mk.properties +19 -43
  78. package/src/sap/ui/rta/messagebundle_ms.properties +17 -41
  79. package/src/sap/ui/rta/messagebundle_nl.properties +16 -40
  80. package/src/sap/ui/rta/messagebundle_no.properties +17 -41
  81. package/src/sap/ui/rta/messagebundle_pl.properties +20 -44
  82. package/src/sap/ui/rta/messagebundle_pt.properties +17 -41
  83. package/src/sap/ui/rta/messagebundle_pt_PT.properties +18 -42
  84. package/src/sap/ui/rta/messagebundle_ro.properties +17 -41
  85. package/src/sap/ui/rta/messagebundle_ru.properties +17 -41
  86. package/src/sap/ui/rta/messagebundle_sh.properties +17 -41
  87. package/src/sap/ui/rta/messagebundle_sk.properties +13 -37
  88. package/src/sap/ui/rta/messagebundle_sl.properties +38 -62
  89. package/src/sap/ui/rta/messagebundle_sr.properties +17 -41
  90. package/src/sap/ui/rta/messagebundle_sv.properties +18 -42
  91. package/src/sap/ui/rta/messagebundle_th.properties +18 -42
  92. package/src/sap/ui/rta/messagebundle_tr.properties +17 -41
  93. package/src/sap/ui/rta/messagebundle_uk.properties +18 -42
  94. package/src/sap/ui/rta/messagebundle_vi.properties +19 -43
  95. package/src/sap/ui/rta/messagebundle_zh_CN.properties +18 -42
  96. package/src/sap/ui/rta/messagebundle_zh_TW.properties +18 -42
  97. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  98. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
  99. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  100. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  101. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  102. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  103. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  104. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  105. package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +1 -1
  106. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  107. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  108. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  109. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  110. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  111. package/src/sap/ui/rta/plugin/Selection.js +14 -7
  112. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  113. package/src/sap/ui/rta/plugin/Split.js +1 -1
  114. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  115. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +11 -1
  116. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  120. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +16 -3
  121. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +1 -1
  122. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
  123. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +3 -3
  124. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +2 -2
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +23 -6
  128. package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
  129. package/src/sap/ui/rta/plugin/rename/RenameDialog.js +1 -1
  130. package/src/sap/ui/rta/service/Action.js +1 -1
  131. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  132. package/src/sap/ui/rta/service/Outline.js +1 -1
  133. package/src/sap/ui/rta/service/Property.js +1 -1
  134. package/src/sap/ui/rta/service/Selection.js +1 -1
  135. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  136. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +4 -4
  137. package/src/sap/ui/rta/toolbar/Adaptation.js +15 -3
  138. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  139. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  140. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  141. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  143. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  144. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  145. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  146. package/src/sap/ui/rta/util/Animation.js +4 -6
  147. package/src/sap/ui/rta/util/BindingsExtractor.js +44 -53
  148. package/src/sap/ui/rta/util/PluginManager.js +6 -6
  149. package/src/sap/ui/rta/util/PopupManager.js +90 -109
  150. package/src/sap/ui/rta/util/ReloadManager.js +53 -98
  151. package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
  152. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  153. package/src/sap/ui/rta/util/adaptationStarter.js +59 -80
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +3 -3
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  157. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -4
  158. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -1
  159. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +5 -7
  160. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +9 -9
  161. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +5 -5
  162. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +8 -8
  163. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +5 -5
  164. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +5 -5
  165. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +2 -2
  166. package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
  167. package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
  168. package/src/sap/ui/rta/util/hasStableId.js +11 -19
  169. package/src/sap/ui/rta/util/showMessageBox.js +15 -15
  170. package/src/sap/ui/rta/util/validateFlexEnabled.js +35 -34
  171. package/src/sap/ui/rta/util/validateStableIds.js +22 -31
  172. package/src/sap/ui/rta/util/validateText.js +7 -7
  173. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +33 -7
  174. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +2 -6
  175. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +1 -0
  176. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +4 -4
  177. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +8 -22
package/REUSE.toml CHANGED
@@ -238,27 +238,6 @@ SPDX-FileCopyrightText = [
238
238
  SPDX-License-Identifier = "Apache-2.0 and MIT"
239
239
  SPDX-FileComment = "these files contain content from SAP and JUnit Reporter for QUnit: qunit-junit.js is overall written by SAP, but contains a modified copy of JUnit Reporter for QUnit (qunit-reporter-junit)"
240
240
 
241
- [[annotations]]
242
- path = "src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js"
243
- precedence = "aggregate"
244
- SPDX-FileCopyrightText = "2012 Matteo Spinelli"
245
- SPDX-License-Identifier = "MIT"
246
- SPDX-FileComment = "these files belong to: cubiq.org - iScroll"
247
-
248
- [[annotations]]
249
- path = "src/sap.ui.core/src/sap/ui/thirdparty/iscroll-lite.js"
250
- precedence = "aggregate"
251
- SPDX-FileCopyrightText = "2011 Matteo Spinelli"
252
- SPDX-License-Identifier = "MIT"
253
- SPDX-FileComment = "these files belong to: cubiq.org - iScroll Lite"
254
-
255
- [[annotations]]
256
- path = "src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js"
257
- precedence = "aggregate"
258
- SPDX-FileCopyrightText = "2012 Matteo Spinelli"
259
- SPDX-License-Identifier = "MIT"
260
- SPDX-FileComment = "these files belong to: cubiq.org - swipeview"
261
-
262
241
  [[annotations]]
263
242
  path = "src/sap.ui.core/src/sap/ui/thirdparty/zyngascroll.js"
264
243
  precedence = "aggregate"
@@ -308,13 +287,6 @@ SPDX-FileCopyrightText = "1991-2024 Unicode, Inc."
308
287
  SPDX-License-Identifier = "LicenseRef-Unicode-3.0"
309
288
  SPDX-FileComment = "these files belong to: Unicode Common Locale Data Repository"
310
289
 
311
- [[annotations]]
312
- path = "src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**"
313
- precedence = "aggregate"
314
- SPDX-FileCopyrightText = "2010-2013, Acid Media"
315
- SPDX-License-Identifier = "MIT"
316
- SPDX-FileComment = "these files belong to: MobiScroll"
317
-
318
290
  [[annotations]]
319
291
  path = [
320
292
  "src/sap.ui.core/src/sap/ui/thirdparty/sinon.js",
package/THIRDPARTY.txt CHANGED
@@ -133,24 +133,6 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
133
133
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-reporter-junit.js
134
134
  src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
135
135
 
136
- Component: cubiq.org - iScroll, version: 4.2.5
137
- Copyright: 2012 Matteo Spinelli
138
- License: MIT
139
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
140
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js
141
-
142
- Component: cubiq.org - iScroll Lite, version: 4.1.6
143
- Copyright: 2011 Matteo Spinelli
144
- License: MIT
145
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
146
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/iscroll-lite.js
147
-
148
- Component: cubiq.org - swipeview, version: 1.0
149
- Copyright: 2012 Matteo Spinelli
150
- License: MIT
151
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
152
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js
153
-
154
136
  Component: Zynga Scroller, version: 1.2.1-0-g5d43806
155
137
  Copyright: 2011 Zynga Inc.
156
138
  License: MIT
@@ -193,12 +175,6 @@ License: LicenseRef-Unicode-3.0
193
175
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-Unicode-3.0.txt
194
176
  Contained in: src/sap.ui.core/src/sap/ui/core/cldr/**
195
177
 
196
- Component: MobiScroll, version: 2.9.0
197
- Copyright: 2010-2013, Acid Media
198
- License: MIT
199
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
200
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**
201
-
202
178
  Component: SinonJS, version: 1.14.1
203
179
  Copyright: 2010-2014, Christian Johansen, christian@cjohansen.no
204
180
  License: BSD-3-Clause
@@ -462,7 +438,7 @@ License: Apache-2.0
462
438
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
463
439
  Contained in: lib/jsdoc/ui5/plugin.js
464
440
 
465
- Component: SAP Theming Base Content, version: 11.29.1
441
+ Component: SAP Theming Base Content, version: 11.31.0
466
442
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
467
443
  License: Apache-2.0
468
444
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.136.1",
3
+ "version": "1.138.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.rta",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.136.1",
18
- "@openui5/sap.ui.core": "1.136.1",
19
- "@openui5/sap.ui.dt": "1.136.1",
20
- "@openui5/sap.ui.fl": "1.136.1",
21
- "@openui5/sap.ui.layout": "1.136.1"
17
+ "@openui5/sap.m": "1.138.0",
18
+ "@openui5/sap.ui.core": "1.138.0",
19
+ "@openui5/sap.ui.dt": "1.138.0",
20
+ "@openui5/sap.ui.fl": "1.138.0",
21
+ "@openui5/sap.ui.layout": "1.138.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2025 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.136.1</version>
9
+ <version>1.138.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @alias sap.ui.rta.Client
60
60
  * @author SAP SE
61
61
  * @since 1.56.0
62
- * @version 1.136.1
62
+ * @version 1.138.0
63
63
  * @private
64
64
  * @ui5-restricted
65
65
  */
@@ -117,7 +117,7 @@ sap.ui.define([
117
117
  * @class The runtime authoring allows to adapt the fields of a running application.
118
118
  * @extends sap.ui.base.ManagedObject
119
119
  * @author SAP SE
120
- * @version 1.136.1
120
+ * @version 1.138.0
121
121
  * @constructor
122
122
  * @private
123
123
  * @since 1.30
@@ -254,15 +254,18 @@ sap.ui.define([
254
254
  }
255
255
  this.pServices = this.pServices.then(this.getService.bind(this, "supportTools"));
256
256
 
257
- this._loadUShellServicesPromise = FlexUtils.getUShellServices(["URLParsing", "AppLifeCycle", "Navigation"])
257
+ this._loadUShellServicesPromise = FlexUtils.getUShellServices(["AppLifeCycle", "Navigation"])
258
258
  .then(function(mUShellServices) {
259
259
  this._mUShellServices = mUShellServices;
260
260
  ReloadManager.setUShellServices(mUShellServices);
261
261
  return FeaturesAPI.isSeenFeaturesAvailable();
262
262
  }.bind(this))
263
- .then(function(isAvailable) {
264
- if (isAvailable && !ReloadManager.getDontShowWhatsNewAfterReload()) {
263
+ .then(function(bIsAvailable) {
264
+ // The What's new should only be shown once per session
265
+ const sWhatsNewReloadFlag = "sap.ui.rta.dontShowWhatsNewAfterReload";
266
+ if (bIsAvailable && !window.sessionStorage.getItem(sWhatsNewReloadFlag)) {
265
267
  this.addDependent(new WhatsNew({ layer: this.getLayer() }), "whatsNew");
268
+ window.sessionStorage.setItem(sWhatsNewReloadFlag, true);
266
269
  }
267
270
  this.addDependent(new GuidedTour(), "guidedTour");
268
271
  return Promise.resolve();
@@ -484,7 +487,6 @@ sap.ui.define([
484
487
  this.getWhatsNew().initializeWhatsNewDialog(aExcludeGuidedTourFeature);
485
488
  }
486
489
  });
487
- GeneralTour.getTourContent();
488
490
  oGuidedTour.autoStart(GeneralTour.getTourContent());
489
491
  } else if (this.getWhatsNew) {
490
492
  this.getWhatsNew().initializeWhatsNewDialog();
@@ -618,7 +620,6 @@ sap.ui.define([
618
620
  if (!bSkipRestart) {
619
621
  ReloadInfoAPI.removeInfoSessionStorage(this.getRootControlInstance());
620
622
  ReloadManager.handleReloadOnExit(oReloadInfo);
621
- ReloadManager.removeDontShowWhatsNewAfterReload();
622
623
  }
623
624
  VersionsAPI.clearInstances();
624
625
  } catch (vError) {
@@ -1041,8 +1042,13 @@ sap.ui.define([
1041
1042
  const bHasConnectors = aConnectors.length > 0;
1042
1043
  const bHasOnlyAllowedConnectors = bHasConnectors
1043
1044
  && aConnectors.every((sConnector) => !aProhibitedConnectors.includes(sConnector));
1045
+ const sUIAdaptationTourReloadFlag = "sap.ui.rta.dontShowUIAdaptationTourAfterReload";
1044
1046
 
1045
- if (!bHasOnlyAllowedConnectors || LayerUtils.isDeveloperLayer(sLayer)) {
1047
+ if (
1048
+ !bHasOnlyAllowedConnectors
1049
+ || LayerUtils.isDeveloperLayer(sLayer)
1050
+ || window.sessionStorage.getItem(sUIAdaptationTourReloadFlag)
1051
+ ) {
1046
1052
  return false;
1047
1053
  }
1048
1054
 
@@ -1054,14 +1060,29 @@ sap.ui.define([
1054
1060
 
1055
1061
  const aHasOwnChanges = await PersistenceWriteAPI._getFlexObjectsForUser({
1056
1062
  selector: oRootControl,
1057
- layer: sLayer
1063
+ layer: sLayer,
1064
+ includeManifestChanges: true,
1065
+ includeAnnotationChanges: true
1058
1066
  });
1059
1067
 
1060
- if (!aHasOwnChanges || aHasOwnChanges.length > 0) {
1068
+ const aVersionsFromUser = VersionsAPI.getCreatedVersionsByUser(
1069
+ {
1070
+ layer: sLayer,
1071
+ control: oRootControl
1072
+ },
1073
+ sUserId
1074
+ );
1075
+
1076
+ if (!aHasOwnChanges || aHasOwnChanges.length > 0 || aVersionsFromUser.length > 0) {
1061
1077
  return false;
1062
1078
  }
1063
1079
 
1064
1080
  const bHasSeenWNFeatures = (await FeaturesAPI.getSeenFeatureIds({ layer: sLayer })).length > 0;
1081
+
1082
+ // UI Adaptation Tour should only be shown once per session
1083
+ if (!bHasSeenWNFeatures) {
1084
+ window.sessionStorage.setItem(sUIAdaptationTourReloadFlag, true);
1085
+ }
1065
1086
  return !bHasSeenWNFeatures;
1066
1087
  }
1067
1088
 
@@ -1195,7 +1216,7 @@ sap.ui.define([
1195
1216
  }
1196
1217
  RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
1197
1218
  await this.stop(true, true, true);
1198
- ReloadManager.reloadPage();
1219
+ ReloadManager.triggerReload({});
1199
1220
  }
1200
1221
 
1201
1222
  function saveOnly(oEvent) {
@@ -1310,7 +1331,6 @@ sap.ui.define([
1310
1331
  function handleDiscard() {
1311
1332
  const sLayer = this.getLayer();
1312
1333
  const oReloadInfo = {
1313
- layer: sLayer,
1314
1334
  removeDraft: true,
1315
1335
  selector: this.getRootControlInstance()
1316
1336
  };
@@ -1565,7 +1585,6 @@ sap.ui.define([
1565
1585
 
1566
1586
  await oToolbar.onFragmentLoaded();
1567
1587
  const bTranslationAvailable = await FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer());
1568
- const bWhatsNewFeaturesAvailable = await FeaturesAPI.isSeenFeaturesAvailable();
1569
1588
  const bAppVariantsAvailable = mButtonsAvailability.saveAsAvailable;
1570
1589
  const bExtendedOverview = bAppVariantsAvailable && RtaAppVariantFeature.isOverviewExtended();
1571
1590
  const oUriParameters = new URLSearchParams(window.location.search);
@@ -1594,10 +1613,6 @@ sap.ui.define([
1594
1613
  visible: bTranslationAvailable,
1595
1614
  enabled: this.bPersistedDataTranslatable
1596
1615
  },
1597
- newFeaturesOverview: {
1598
- visible: bWhatsNewFeaturesAvailable,
1599
- enabled: bWhatsNewFeaturesAvailable
1600
- },
1601
1616
  appVariantMenu: {
1602
1617
  visible: bAppVariantsAvailable,
1603
1618
  enabled: bAppVariantsAvailable,
@@ -1652,6 +1667,7 @@ sap.ui.define([
1652
1667
  if (bAppVariantsAvailable) {
1653
1668
  const bIsAppVariantSupported = FlexUtils.isVariantByStartupParameter(this.getRootControlInstance()) ?
1654
1669
  false : await RtaAppVariantFeature.isManifestSupported();
1670
+ this._oToolbarControlsModel.setProperty("/appVariantMenu/enabled", bIsAppVariantSupported);
1655
1671
  this._oToolbarControlsModel.setProperty("/appVariantMenu/saveAs/enabled", bIsAppVariantSupported);
1656
1672
  this._oToolbarControlsModel.setProperty("/appVariantMenu/overview/enabled", bIsAppVariantSupported);
1657
1673
  this._oToolbarControlsModel.setProperty("/appVariantMenu/manageApps/enabled", bIsAppVariantSupported);
@@ -1660,9 +1676,6 @@ sap.ui.define([
1660
1676
 
1661
1677
  /**
1662
1678
  * Delete all changes for current layer and root control's component.
1663
- * In case of Base Applications (no App Variants) the manifest Changes and UI Changes are saved
1664
- * in different Flex Persistence instances, the changes for both places will be deleted. For App Variants
1665
- * all the changes are saved in one place.
1666
1679
  *
1667
1680
  * @returns {Promise} Resolves when change persistence is reset
1668
1681
  */
@@ -1677,9 +1690,7 @@ sap.ui.define([
1677
1690
  this.getCommandStack().removeAllCommands(true);
1678
1691
  ReloadInfoAPI.removeInfoSessionStorage(oSelector);
1679
1692
  const oReloadInfo = {
1680
- layer: sLayer,
1681
- ignoreMaxLayerParameter: true,
1682
- triggerHardReload: true
1693
+ ignoreMaxLayerParameter: true
1683
1694
  };
1684
1695
  return ReloadManager.triggerReload(oReloadInfo);
1685
1696
  }.bind(this))
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  *
47
47
  * @namespace
48
48
  * @author SAP SE
49
- * @version 1.136.1
49
+ * @version 1.138.0
50
50
  *
51
51
  * @private
52
52
  * @since 1.30
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  * @author SAP SE
27
- * @version 1.136.1
27
+ * @version 1.138.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.136.1
19
+ * @version 1.138.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  * @class
15
15
  * @extends sap.ui.rta.command.FlexCommand
16
16
  * @author SAP SE
17
- * @version 1.136.1
17
+ * @version 1.138.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.78
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.136.1
19
+ * @version 1.138.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.54
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.FlexCommand
26
26
  * @author SAP SE
27
- * @version 1.136.1
27
+ * @version 1.138.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.rta.command.FlexCommand
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.136.1
32
+ * @version 1.138.0
33
33
  *
34
34
  * @constructor
35
35
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @extends sap.ui.base.ManagedObject
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.136.1
19
+ * @version 1.138.0
20
20
  *
21
21
  * @constructor
22
22
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.FlexCommand
28
28
  * @author SAP SE
29
- * @version 1.136.1
29
+ * @version 1.138.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.38
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.136.1
19
+ * @version 1.138.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -517,7 +517,7 @@ sap.ui.define([
517
517
  * @extends sap.ui.base.ManagedObject
518
518
  *
519
519
  * @author SAP SE
520
- * @version 1.136.1
520
+ * @version 1.138.0
521
521
  *
522
522
  * @constructor
523
523
  * @private
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.136.1
24
+ * @version 1.138.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @class
31
31
  * @extends sap.ui.rta.command.BaseCommand
32
32
  * @author SAP SE
33
- * @version 1.136.1
33
+ * @version 1.138.0
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.52
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.136.1
23
+ * @version 1.138.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @class
31
31
  * @extends sap.ui.rta.command.BaseCommand
32
32
  * @author SAP SE
33
- * @version 1.136.1
33
+ * @version 1.138.0
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.86
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.BaseCommand
28
28
  * @author SAP SE
29
- * @version 1.136.1
29
+ * @version 1.138.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.50
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.BaseCommand
26
26
  * @author SAP SE
27
- * @version 1.136.1
27
+ * @version 1.138.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.50
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.136.1
15
+ * @version 1.138.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.136.1
15
+ * @version 1.138.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @class
23
23
  * @extends sap.ui.rta.command.FlexCommand
24
24
  * @author SAP SE
25
- * @version 1.136.1
25
+ * @version 1.138.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.135
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.rta.command.BaseCommand
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.136.1
38
+ * @version 1.138.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -121,8 +121,7 @@ sap.ui.define([
121
121
  this.setSelector(oSelector);
122
122
  }
123
123
 
124
- const oChange = await this._createChange(mFlexSettings, sVariantManagementReference, sCommand);
125
- this._oPreparedChange = oChange;
124
+ this._oPreparedChange = await this._createChange(mFlexSettings, sVariantManagementReference, sCommand);
126
125
  return true;
127
126
  } catch (oError) {
128
127
  Log.error(oError.message || oError.name);
@@ -5,16 +5,12 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/base/ManagedObject",
8
- "sap/ui/rta/command/FlexCommand",
9
- "sap/ui/rta/command/ManifestCommand",
10
8
  "sap/ui/fl/Utils",
11
9
  "sap/ui/dt/ElementUtil",
12
10
  "sap/base/Log",
13
11
  "sap/ui/fl/write/api/PersistenceWriteAPI"
14
12
  ], function(
15
13
  ManagedObject,
16
- FlexCommand,
17
- ManifestCommand,
18
14
  FlUtils,
19
15
  ElementUtil,
20
16
  Log,
@@ -27,7 +23,7 @@ sap.ui.define([
27
23
  * @class
28
24
  * @extends sap.ui.base.ManagedObject
29
25
  * @author SAP SE
30
- * @version 1.136.1
26
+ * @version 1.138.0
31
27
  * @constructor
32
28
  * @private
33
29
  * @since 1.42
@@ -61,78 +57,7 @@ sap.ui.define([
61
57
  LREPSerializer.prototype._lastPromise = Promise.resolve();
62
58
 
63
59
  LREPSerializer.prototype.setCommandStack = function(oCommandStack) {
64
- if (this.getCommandStack()) {
65
- this.getCommandStack().removeCommandExecutionHandler(this._fnHandleCommandExecuted);
66
- }
67
60
  this.setProperty("commandStack", oCommandStack);
68
- oCommandStack.addCommandExecutionHandler(this._fnHandleCommandExecuted);
69
- };
70
- LREPSerializer.prototype.init = function() {
71
- this._fnHandleCommandExecuted = this.handleCommandExecuted.bind(this);
72
- };
73
- LREPSerializer.prototype.exit = function() {
74
- this.getCommandStack().removeCommandExecutionHandler(this._fnHandleCommandExecuted);
75
- };
76
- LREPSerializer.prototype._isPersistedChange = function(oPreparedChange) {
77
- return !!this.getCommandStack()._aPersistedChanges
78
- && this.getCommandStack()._aPersistedChanges.indexOf(oPreparedChange.getId()) !== -1;
79
- };
80
-
81
- LREPSerializer.prototype.handleCommandExecuted = function(oEvent) {
82
- return (function(oEvent) {
83
- const oParams = oEvent;
84
- this._lastPromise = this._lastPromise.catch(function() {
85
- // _lastPromise chain must not be interrupted
86
- }).then(function() {
87
- const aCommands = this.getCommandStack().getSubCommands(oParams.command);
88
- let oAppComponent;
89
- const aFlexObjects = [];
90
- if (oParams.undo) {
91
- aCommands.forEach(function(oCommand) {
92
- // for revertable changes which don't belong to LREP (variantSwitch) or runtime only changes
93
- if (!(oCommand instanceof FlexCommand || oCommand instanceof ManifestCommand)
94
- || oCommand.getRuntimeOnly()) {
95
- return;
96
- }
97
- const oChange = oCommand.getPreparedChange();
98
- oAppComponent = oCommand.getAppComponent();
99
- if (oAppComponent) {
100
- aFlexObjects.push(oChange);
101
- }
102
- });
103
- if (oAppComponent) {
104
- return PersistenceWriteAPI.remove({
105
- flexObjects: aFlexObjects,
106
- selector: oAppComponent
107
- });
108
- }
109
- return Promise.resolve();
110
- }
111
- const aManifestCreateAndAdd = [];
112
- aCommands.forEach(function(oCommand) {
113
- // Runtime only changes should not be added to the persistence
114
- if (oCommand.getRuntimeOnly()) {
115
- return;
116
- }
117
- if (oCommand instanceof FlexCommand) {
118
- oAppComponent = oCommand.getAppComponent();
119
- if (oAppComponent) {
120
- const oPreparedChange = oCommand.getPreparedChange();
121
- if (!this._isPersistedChange(oPreparedChange)) {
122
- aFlexObjects.push(oCommand.getPreparedChange());
123
- }
124
- }
125
- } else if (oCommand instanceof ManifestCommand) {
126
- aManifestCreateAndAdd.push(oCommand.createAndStoreChange());
127
- }
128
- }.bind(this));
129
- if (oAppComponent) {
130
- PersistenceWriteAPI.add({flexObjects: aFlexObjects, selector: oAppComponent});
131
- }
132
- return Promise.all(aManifestCreateAndAdd);
133
- }.bind(this));
134
- return this._lastPromise;
135
- }.bind(this))(oEvent);
136
61
  };
137
62
 
138
63
  /**
@@ -230,19 +155,11 @@ sap.ui.define([
230
155
  LREPSerializer.prototype.clearCommandStack = function(bRemoveChanges) {
231
156
  const oCommandStack = this.getCommandStack();
232
157
 
233
- // Detach the event 'commandExecuted' here to stop the communication of LREPSerializer with Flex
234
- if (!bRemoveChanges) {
235
- oCommandStack.detachCommandExecuted(this.handleCommandExecuted.bind(this));
236
- }
237
158
  return this._triggerUndoChanges(bRemoveChanges)
238
159
  .then(function() {
239
160
  oCommandStack.removeAllCommands();
240
- // Attach the event 'commandExecuted' here to start the communication of LREPSerializer with Flex
241
- if (!bRemoveChanges) {
242
- oCommandStack.attachCommandExecuted(this.handleCommandExecuted.bind(this));
243
- }
244
161
  return true;
245
- }.bind(this));
162
+ });
246
163
  };
247
164
 
248
165
  return LREPSerializer;
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.136.1
23
+ * @version 1.138.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.90
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.136.1
24
+ * @version 1.138.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -17,7 +17,7 @@ function(
17
17
  * @class
18
18
  * @extends sap.ui.rta.command.FlexCommand
19
19
  * @author SAP SE
20
- * @version 1.136.1
20
+ * @version 1.138.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34