@openui5/sap.ui.rta 1.136.4 → 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 (182) hide show
  1. package/README.md +1 -1
  2. package/REUSE.toml +8 -29
  3. package/THIRDPARTY.txt +72 -90
  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 +90 -127
  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 +2 -3
  30. package/src/sap/ui/rta/command/LREPSerializer.js +2 -85
  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 +115 -87
  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 +39 -57
  50. package/src/sap/ui/rta/messagebundle_ar.properties +7 -31
  51. package/src/sap/ui/rta/messagebundle_bg.properties +8 -32
  52. package/src/sap/ui/rta/messagebundle_ca.properties +8 -32
  53. package/src/sap/ui/rta/messagebundle_cnr.properties +7 -31
  54. package/src/sap/ui/rta/messagebundle_cs.properties +7 -31
  55. package/src/sap/ui/rta/messagebundle_cy.properties +8 -32
  56. package/src/sap/ui/rta/messagebundle_da.properties +8 -32
  57. package/src/sap/ui/rta/messagebundle_de.properties +6 -30
  58. package/src/sap/ui/rta/messagebundle_el.properties +8 -32
  59. package/src/sap/ui/rta/messagebundle_en.properties +8 -32
  60. package/src/sap/ui/rta/messagebundle_en_GB.properties +8 -32
  61. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +29 -48
  62. package/src/sap/ui/rta/messagebundle_es.properties +8 -32
  63. package/src/sap/ui/rta/messagebundle_es_MX.properties +15 -39
  64. package/src/sap/ui/rta/messagebundle_et.properties +8 -32
  65. package/src/sap/ui/rta/messagebundle_fi.properties +8 -32
  66. package/src/sap/ui/rta/messagebundle_fr.properties +9 -33
  67. package/src/sap/ui/rta/messagebundle_fr_CA.properties +8 -32
  68. package/src/sap/ui/rta/messagebundle_hi.properties +7 -31
  69. package/src/sap/ui/rta/messagebundle_hr.properties +8 -32
  70. package/src/sap/ui/rta/messagebundle_hu.properties +8 -32
  71. package/src/sap/ui/rta/messagebundle_id.properties +9 -33
  72. package/src/sap/ui/rta/messagebundle_it.properties +8 -32
  73. package/src/sap/ui/rta/messagebundle_iw.properties +7 -31
  74. package/src/sap/ui/rta/messagebundle_ja.properties +8 -32
  75. package/src/sap/ui/rta/messagebundle_kk.properties +9 -33
  76. package/src/sap/ui/rta/messagebundle_ko.properties +8 -32
  77. package/src/sap/ui/rta/messagebundle_lt.properties +8 -32
  78. package/src/sap/ui/rta/messagebundle_lv.properties +8 -32
  79. package/src/sap/ui/rta/messagebundle_mk.properties +8 -32
  80. package/src/sap/ui/rta/messagebundle_ms.properties +8 -32
  81. package/src/sap/ui/rta/messagebundle_nl.properties +7 -31
  82. package/src/sap/ui/rta/messagebundle_no.properties +8 -32
  83. package/src/sap/ui/rta/messagebundle_pl.properties +8 -32
  84. package/src/sap/ui/rta/messagebundle_pt.properties +8 -32
  85. package/src/sap/ui/rta/messagebundle_pt_PT.properties +8 -32
  86. package/src/sap/ui/rta/messagebundle_ro.properties +8 -32
  87. package/src/sap/ui/rta/messagebundle_ru.properties +8 -32
  88. package/src/sap/ui/rta/messagebundle_sh.properties +7 -31
  89. package/src/sap/ui/rta/messagebundle_sk.properties +8 -32
  90. package/src/sap/ui/rta/messagebundle_sl.properties +8 -32
  91. package/src/sap/ui/rta/messagebundle_sr.properties +7 -31
  92. package/src/sap/ui/rta/messagebundle_sv.properties +8 -32
  93. package/src/sap/ui/rta/messagebundle_th.properties +8 -32
  94. package/src/sap/ui/rta/messagebundle_tr.properties +8 -32
  95. package/src/sap/ui/rta/messagebundle_uk.properties +8 -32
  96. package/src/sap/ui/rta/messagebundle_vi.properties +9 -33
  97. package/src/sap/ui/rta/messagebundle_zh_CN.properties +8 -32
  98. package/src/sap/ui/rta/messagebundle_zh_TW.properties +8 -32
  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 +14 -7
  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 +11 -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.fragment.xml +16 -3
  123. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +1 -1
  124. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
  125. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +3 -3
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +256 -203
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +28 -75
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +72 -17
  130. package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
  131. package/src/sap/ui/rta/plugin/rename/RenameDialog.fragment.xml +2 -2
  132. package/src/sap/ui/rta/plugin/rename/RenameDialog.js +41 -23
  133. package/src/sap/ui/rta/service/Action.js +1 -1
  134. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  135. package/src/sap/ui/rta/service/Outline.js +1 -1
  136. package/src/sap/ui/rta/service/Property.js +1 -1
  137. package/src/sap/ui/rta/service/Selection.js +1 -1
  138. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  139. package/src/sap/ui/rta/themes/base/AddIFrame.less +23 -33
  140. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +4 -2
  141. package/src/sap/ui/rta/toolbar/Adaptation.js +16 -3
  142. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  143. package/src/sap/ui/rta/toolbar/Fiori.js +2 -7
  144. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  145. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  146. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  147. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  148. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  149. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  150. package/src/sap/ui/rta/util/Animation.js +4 -6
  151. package/src/sap/ui/rta/util/BindingsExtractor.js +44 -53
  152. package/src/sap/ui/rta/util/PluginManager.js +6 -6
  153. package/src/sap/ui/rta/util/PopupManager.js +90 -109
  154. package/src/sap/ui/rta/util/ReloadManager.js +53 -98
  155. package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
  156. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  157. package/src/sap/ui/rta/util/adaptationStarter.js +59 -80
  158. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +3 -3
  159. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  160. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +5 -4
  161. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -4
  162. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +13 -25
  163. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +5 -7
  164. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +9 -9
  165. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +5 -5
  166. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +8 -8
  167. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +5 -5
  168. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +5 -5
  169. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +2 -2
  170. package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +22 -5
  171. package/src/sap/ui/rta/util/guidedTour/TourMarker.fragment.xml +1 -1
  172. package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
  173. package/src/sap/ui/rta/util/hasStableId.js +11 -19
  174. package/src/sap/ui/rta/util/showMessageBox.js +15 -15
  175. package/src/sap/ui/rta/util/validateFlexEnabled.js +35 -34
  176. package/src/sap/ui/rta/util/validateStableIds.js +22 -31
  177. package/src/sap/ui/rta/util/validateText.js +7 -7
  178. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +34 -9
  179. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +2 -6
  180. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +1 -0
  181. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +4 -4
  182. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +8 -22
@@ -17,10 +17,8 @@ sap.ui.define([
17
17
  "sap/ui/dt/DOMUtil",
18
18
  "sap/ui/dt/ElementUtil",
19
19
  "sap/ui/dt/Overlay",
20
- "sap/ui/dt/OverlayRegistry",
21
20
  "sap/ui/dt/Util",
22
21
  "sap/ui/events/KeyCodes",
23
- "sap/ui/fl/apply/_internal/flexState/ManifestUtils",
24
22
  "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
25
23
  "sap/ui/fl/initial/api/Version",
26
24
  "sap/ui/fl/write/api/ContextBasedAdaptationsAPI",
@@ -66,10 +64,8 @@ sap.ui.define([
66
64
  DOMUtil,
67
65
  ElementUtil,
68
66
  Overlay,
69
- OverlayRegistry,
70
67
  DtUtil,
71
68
  KeyCodes,
72
- ManifestUtils,
73
69
  FlexRuntimeInfoAPI,
74
70
  Version,
75
71
  ContextBasedAdaptationsAPI,
@@ -110,6 +106,7 @@ sap.ui.define([
110
106
  const STARTED = "STARTED";
111
107
  const STOPPED = "STOPPED";
112
108
  const FAILED = "FAILED";
109
+ const sParametersAfterRestartKey = "sap.ui.rta.RuntimeAuthoring.parametersAfterRestart";
113
110
 
114
111
  /**
115
112
  * Constructor for a new sap.ui.rta.RuntimeAuthoring class.
@@ -117,7 +114,7 @@ sap.ui.define([
117
114
  * @class The runtime authoring allows to adapt the fields of a running application.
118
115
  * @extends sap.ui.base.ManagedObject
119
116
  * @author SAP SE
120
- * @version 1.136.4
117
+ * @version 1.139.0
121
118
  * @constructor
122
119
  * @private
123
120
  * @since 1.30
@@ -138,19 +135,15 @@ sap.ui.define([
138
135
  /** Whether the create custom field button should be shown */
139
136
  showToolbars: {
140
137
  type: "boolean",
141
- defaultValue: true
142
- },
143
-
144
- /** Whether rta is triggered from a dialog button */
145
- triggeredFromDialog: {
146
- type: "boolean",
147
- defaultValue: false
138
+ defaultValue: true,
139
+ group: "restoreAfterReload"
148
140
  },
149
141
 
150
142
  /** Whether the window unload dialog should be shown */
151
143
  showWindowUnloadDialog: {
152
144
  type: "boolean",
153
- defaultValue: true
145
+ defaultValue: true,
146
+ group: "restoreAfterReload"
154
147
  },
155
148
 
156
149
  /** sap.ui.rta.command.Stack */
@@ -166,7 +159,8 @@ sap.ui.define([
166
159
  defaultValue: {
167
160
  layer: Layer.CUSTOMER,
168
161
  developerMode: true
169
- }
162
+ },
163
+ group: "restoreAfterReload"
170
164
  },
171
165
 
172
166
  /** Defines view state of key user adaptation. Possible values: adaptation, navigation, visualization */
@@ -180,11 +174,18 @@ sap.ui.define([
180
174
  */
181
175
  metadataScope: {
182
176
  type: "string",
183
- defaultValue: "default"
177
+ defaultValue: "default",
178
+ group: "restoreAfterReload"
179
+ },
180
+
181
+ hideReset: {
182
+ type: "boolean",
183
+ defaultValue: false,
184
+ group: "restoreAfterReload"
184
185
  }
185
186
  },
186
187
  events: {
187
- /** Fired when the runtime authoring is started */
188
+ /** Fired when runtime authoring is started */
188
189
  start: {
189
190
  parameters: {
190
191
  editablePluginsCount: {
@@ -193,10 +194,10 @@ sap.ui.define([
193
194
  }
194
195
  },
195
196
 
196
- /** Fired when the runtime authoring is stopped */
197
+ /** Fired when runtime authoring is stopped */
197
198
  stop: {},
198
199
 
199
- /** Fired when the runtime authoring failed to start */
200
+ /** Fired when runtime authoring failed to start */
200
201
  failed: {
201
202
  parameters: {
202
203
  error: {
@@ -230,7 +231,6 @@ sap.ui.define([
230
231
  _bNavigationModeWarningShown: false,
231
232
  // eslint-disable-next-line object-shorthand
232
233
  constructor: function(...aArgs) {
233
- // call parent constructor
234
234
  ManagedObject.apply(this, aArgs);
235
235
 
236
236
  this._dependents = {};
@@ -254,7 +254,7 @@ 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);
@@ -270,6 +270,25 @@ sap.ui.define([
270
270
  }
271
271
  });
272
272
 
273
+ RuntimeAuthoring.prototype.applySettings = function(...aArgs) {
274
+ const oSettings = { ...aArgs[0] };
275
+
276
+ const mParametersAfterRestart = window.sessionStorage.getItem(sParametersAfterRestartKey);
277
+ const aSupportedProperties = Object.values(this.getMetadata().getProperties())
278
+ .filter((oProperty) => oProperty.group === "restoreAfterReload");
279
+
280
+ if (mParametersAfterRestart) {
281
+ const aProperties = JSON.parse(mParametersAfterRestart);
282
+ aProperties.forEach(function(oProperty) {
283
+ if (aSupportedProperties.find((oSupportedProperty) => oSupportedProperty.name === oProperty.name)) {
284
+ oSettings[oProperty.name] = oProperty.value;
285
+ }
286
+ });
287
+ window.sessionStorage.removeItem(sParametersAfterRestartKey);
288
+ }
289
+ ManagedObject.prototype.applySettings.apply(this, [oSettings, aArgs[1]]);
290
+ };
291
+
273
292
  RuntimeAuthoring.prototype.addDependent = function(oObject, sName, bCreateGetter) {
274
293
  bCreateGetter = typeof bCreateGetter === "undefined" ? true : !!bCreateGetter;
275
294
  if (!(sName in this._dependents)) {
@@ -426,6 +445,16 @@ sap.ui.define([
426
445
  adaptationId: this._oContextBasedAdaptationsModel.getProperty("/displayedAdaptation/id")
427
446
  });
428
447
  if (bReloadTriggered) {
448
+ // After a reload RuntimeAuthoring should be initialized with the same parameters as before the reload
449
+ const aProperties = Object.values(this.getMetadata().getProperties())
450
+ .filter((oProperty) => oProperty.group === "restoreAfterReload")
451
+ .map((oProperty) => {
452
+ return {
453
+ name: oProperty.name,
454
+ value: oProperty.get(this)
455
+ };
456
+ });
457
+ window.sessionStorage.setItem(sParametersAfterRestartKey, JSON.stringify(aProperties));
429
458
  // FLP Plugin reacts on this error string and doesn't pass the error on the UI
430
459
  throw Error("Reload triggered");
431
460
  }
@@ -473,7 +502,9 @@ sap.ui.define([
473
502
  }
474
503
  setBlockedOnRootElements.call(this, true);
475
504
 
476
- const bGuidedTourAutostart = await shouldAutoStartGuidedTour(this.getRootControlInstance(), this.getLayer());
505
+ const aSeenFeatureIds = await FeaturesAPI.getSeenFeatureIds({ layer: this.getLayer() });
506
+
507
+ const bGuidedTourAutostart = await shouldAutoStartGuidedTour(this.getRootControlInstance(), this.getLayer(), aSeenFeatureIds);
477
508
 
478
509
  // The What's new should only be shown once per session
479
510
  const sWhatsNewReloadFlag = "sap.ui.rta.dontShowWhatsNewAfterReload";
@@ -485,14 +516,13 @@ sap.ui.define([
485
516
  if (bShowWhatsNew) {
486
517
  // we want to exclude the guided tour feature from the whats new dialog if the tour opens before the dialog
487
518
  const aExcludeGuidedTourFeature = ["GuidedTour"];
488
- this.getWhatsNew().initializeWhatsNewDialog(aExcludeGuidedTourFeature);
519
+ this.getWhatsNew().initializeWhatsNewDialog(aSeenFeatureIds, aExcludeGuidedTourFeature);
489
520
  window.sessionStorage.setItem(sWhatsNewReloadFlag, true);
490
521
  }
491
522
  });
492
- GeneralTour.getTourContent();
493
523
  oGuidedTour.autoStart(GeneralTour.getTourContent());
494
524
  } else if (bShowWhatsNew) {
495
- this.getWhatsNew().initializeWhatsNewDialog();
525
+ this.getWhatsNew().initializeWhatsNewDialog(aSeenFeatureIds);
496
526
  window.sessionStorage.setItem(sWhatsNewReloadFlag, true);
497
527
  }
498
528
 
@@ -605,7 +635,11 @@ sap.ui.define([
605
635
  await this._oSerializer.clearCommandStack(/* bRemoveChanges = */true);
606
636
  }
607
637
  }
608
- const oReloadInfo = bSkipRestart ? {} : await ReloadManager.checkReloadOnExit({
638
+ const bSkipRestartViaSessionStorage = window.sessionStorage.getItem("sap.ui.rta.skipReload");
639
+ if (bSkipRestartViaSessionStorage) {
640
+ window.sessionStorage.removeItem("sap.ui.rta.skipReload");
641
+ }
642
+ const oReloadInfo = (bSkipRestart || bSkipRestartViaSessionStorage) ? {} : await ReloadManager.checkReloadOnExit({
609
643
  layer: this.getLayer(),
610
644
  selector: this.getRootControlInstance(),
611
645
  isDraftAvailable: this._oVersionsModel.getProperty("/draftAvailable"),
@@ -624,7 +658,6 @@ sap.ui.define([
624
658
  if (!bSkipRestart) {
625
659
  ReloadInfoAPI.removeInfoSessionStorage(this.getRootControlInstance());
626
660
  ReloadManager.handleReloadOnExit(oReloadInfo);
627
- ReloadManager.removeDontShowWhatsNewAfterReload();
628
661
  }
629
662
  VersionsAPI.clearInstances();
630
663
  } catch (vError) {
@@ -1041,14 +1074,19 @@ sap.ui.define([
1041
1074
  * @returns {Promise<boolean>} Resolves to a boolean indicating if the guided tour should be started automatically
1042
1075
  * @ui5-restricted sap.ui.rta
1043
1076
  */
1044
- async function shouldAutoStartGuidedTour(oRootControl, sLayer) {
1077
+ async function shouldAutoStartGuidedTour(oRootControl, sLayer, aSeenFeatureIds) {
1045
1078
  const aConnectors = FlexUtils.getConnectors();
1046
1079
  const aProhibitedConnectors = ["LocalStorageConnector", "SessionStorageConnector"];
1047
1080
  const bHasConnectors = aConnectors.length > 0;
1048
1081
  const bHasOnlyAllowedConnectors = bHasConnectors
1049
1082
  && aConnectors.every((sConnector) => !aProhibitedConnectors.includes(sConnector));
1083
+ const sUIAdaptationTourReloadFlag = "sap.ui.rta.dontShowUIAdaptationTourAfterReload";
1050
1084
 
1051
- if (!bHasOnlyAllowedConnectors || LayerUtils.isDeveloperLayer(sLayer)) {
1085
+ if (
1086
+ !bHasOnlyAllowedConnectors
1087
+ || LayerUtils.isDeveloperLayer(sLayer)
1088
+ || window.sessionStorage.getItem(sUIAdaptationTourReloadFlag)
1089
+ ) {
1052
1090
  return false;
1053
1091
  }
1054
1092
 
@@ -1060,15 +1098,30 @@ sap.ui.define([
1060
1098
 
1061
1099
  const aHasOwnChanges = await PersistenceWriteAPI._getFlexObjectsForUser({
1062
1100
  selector: oRootControl,
1063
- layer: sLayer
1101
+ layer: sLayer,
1102
+ includeManifestChanges: true,
1103
+ includeAnnotationChanges: true
1064
1104
  });
1065
1105
 
1066
- if (!aHasOwnChanges || aHasOwnChanges.length > 0) {
1067
- return false;
1106
+ const aVersionsFromUser = VersionsAPI.getCreatedVersionsByUser(
1107
+ {
1108
+ layer: sLayer,
1109
+ control: oRootControl
1110
+ },
1111
+ sUserId
1112
+ );
1113
+
1114
+ let bAutostartGuidedTour = true;
1115
+
1116
+ if (!aHasOwnChanges || aHasOwnChanges.length > 0 || aVersionsFromUser.length > 0 || aSeenFeatureIds.length > 0) {
1117
+ bAutostartGuidedTour = false;
1068
1118
  }
1069
1119
 
1070
- const bHasSeenWNFeatures = (await FeaturesAPI.getSeenFeatureIds({ layer: sLayer })).length > 0;
1071
- return !bHasSeenWNFeatures;
1120
+ // UI Adaptation Tour should only be shown once per session
1121
+ if (bAutostartGuidedTour) {
1122
+ window.sessionStorage.setItem(sUIAdaptationTourReloadFlag, true);
1123
+ }
1124
+ return bAutostartGuidedTour;
1072
1125
  }
1073
1126
 
1074
1127
  function showTechnicalError(vError) {
@@ -1201,7 +1254,7 @@ sap.ui.define([
1201
1254
  }
1202
1255
  RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
1203
1256
  await this.stop(true, true, true);
1204
- ReloadManager.reloadPage();
1257
+ ReloadManager.triggerReload({});
1205
1258
  }
1206
1259
 
1207
1260
  function saveOnly(oEvent) {
@@ -1316,7 +1369,6 @@ sap.ui.define([
1316
1369
  function handleDiscard() {
1317
1370
  const sLayer = this.getLayer();
1318
1371
  const oReloadInfo = {
1319
- layer: sLayer,
1320
1372
  removeDraft: true,
1321
1373
  selector: this.getRootControlInstance()
1322
1374
  };
@@ -1616,7 +1668,7 @@ sap.ui.define([
1616
1668
  }
1617
1669
  },
1618
1670
  restore: {
1619
- visible: !this._oVersionsModel.getProperty("/versioningEnabled"),
1671
+ visible: !this._oVersionsModel.getProperty("/versioningEnabled") && this.getHideReset() === false,
1620
1672
  enabled: this.bInitialResetEnabled
1621
1673
  },
1622
1674
  contextBasedAdaptation: {
@@ -1653,6 +1705,7 @@ sap.ui.define([
1653
1705
  if (bAppVariantsAvailable) {
1654
1706
  const bIsAppVariantSupported = FlexUtils.isVariantByStartupParameter(this.getRootControlInstance()) ?
1655
1707
  false : await RtaAppVariantFeature.isManifestSupported();
1708
+ this._oToolbarControlsModel.setProperty("/appVariantMenu/enabled", bIsAppVariantSupported);
1656
1709
  this._oToolbarControlsModel.setProperty("/appVariantMenu/saveAs/enabled", bIsAppVariantSupported);
1657
1710
  this._oToolbarControlsModel.setProperty("/appVariantMenu/overview/enabled", bIsAppVariantSupported);
1658
1711
  this._oToolbarControlsModel.setProperty("/appVariantMenu/manageApps/enabled", bIsAppVariantSupported);
@@ -1661,9 +1714,6 @@ sap.ui.define([
1661
1714
 
1662
1715
  /**
1663
1716
  * Delete all changes for current layer and root control's component.
1664
- * In case of Base Applications (no App Variants) the manifest Changes and UI Changes are saved
1665
- * in different Flex Persistence instances, the changes for both places will be deleted. For App Variants
1666
- * all the changes are saved in one place.
1667
1717
  *
1668
1718
  * @returns {Promise} Resolves when change persistence is reset
1669
1719
  */
@@ -1678,9 +1728,7 @@ sap.ui.define([
1678
1728
  this.getCommandStack().removeAllCommands(true);
1679
1729
  ReloadInfoAPI.removeInfoSessionStorage(oSelector);
1680
1730
  const oReloadInfo = {
1681
- layer: sLayer,
1682
- ignoreMaxLayerParameter: true,
1683
- triggerHardReload: true
1731
+ ignoreMaxLayerParameter: true
1684
1732
  };
1685
1733
  return ReloadManager.triggerReload(oReloadInfo);
1686
1734
  }.bind(this))
@@ -1709,86 +1757,6 @@ sap.ui.define([
1709
1757
  this._oDesignTime.attachEvent("elementOverlayCreated", onElementOverlayCreated, this);
1710
1758
  }
1711
1759
 
1712
- /**
1713
- * Triggers a callback when a control gets created and its associated overlay is visible.
1714
- *
1715
- * @param {string} sNewControlID - ID of the newly created control
1716
- * @param {Function} fnCallback - Callback to execute when the conditions are met, the overlay is the only parameter
1717
- */
1718
- function scheduleOnCreatedAndVisible(sNewControlID, fnCallback) {
1719
- function onGeometryChanged(oEvent) {
1720
- const oElementOverlay = oEvent.getSource();
1721
- if (oElementOverlay.getGeometry() && oElementOverlay.getGeometry().visible) {
1722
- oElementOverlay.detachEvent("geometryChanged", onGeometryChanged);
1723
- fnCallback(oElementOverlay);
1724
- }
1725
- }
1726
-
1727
- function onGeometryCheck(oElementOverlay) {
1728
- // the control can be set to visible, but still have no size when we do the check
1729
- // that's why we also attach to 'geometryChanged' and check if the overlay has a size
1730
- if (!oElementOverlay.getGeometry() || !oElementOverlay.getGeometry().visible) {
1731
- oElementOverlay.attachEvent("geometryChanged", onGeometryChanged);
1732
- } else {
1733
- fnCallback(oElementOverlay);
1734
- }
1735
- }
1736
-
1737
- scheduleOnCreated.call(this, sNewControlID, function(oNewOverlay) {
1738
- // the overlay needs to be rendered
1739
- if (oNewOverlay.isRendered()) {
1740
- onGeometryCheck(oNewOverlay);
1741
- } else {
1742
- oNewOverlay.attachEventOnce("afterRendering", function(oEvent) {
1743
- onGeometryCheck(oEvent.getSource());
1744
- });
1745
- }
1746
- });
1747
- }
1748
-
1749
- /**
1750
- * Function to automatically start the rename plugin on a container when it gets created
1751
- *
1752
- * @param {object} vAction - The create action from designtime metadata
1753
- * @param {string} sNewControlID - The id of the newly created container
1754
- * @param {string} sNewContainerName - The name of the newly created container
1755
- */
1756
- function scheduleRenameOnCreatedContainer(vAction, sNewControlID, sNewContainerName) {
1757
- const fnStartEdit = function(oElementOverlay) {
1758
- if (oElementOverlay.getSelectable()) {
1759
- oElementOverlay.setSelected(true);
1760
- } else {
1761
- // TODO todos#7
1762
- // The async editableByPlugin evaluation has not finished yet
1763
- // thus the overlay is not selectable yet and setSelected would fail
1764
- oElementOverlay.attachEventOnce("selectableChange", () => {
1765
- oElementOverlay.setSelected(true);
1766
- });
1767
- }
1768
- this.getPluginManager().getPlugin("rename").startEdit(oElementOverlay);
1769
- }.bind(this);
1770
-
1771
- scheduleOnCreatedAndVisible.call(this, sNewControlID, async function(oElementOverlay) {
1772
- // get container of the new control for rename
1773
- const sNewContainerID = this.getPluginManager().getPlugin("createContainer").getCreatedContainerId(
1774
- vAction,
1775
- oElementOverlay.getElement().getId()
1776
- );
1777
- const oContainerElementOverlay = OverlayRegistry.getOverlay(sNewContainerID);
1778
- if (oContainerElementOverlay) {
1779
- if (sNewContainerName) {
1780
- await this.getPluginManager().getPlugin("rename").createRenameCommand(oContainerElementOverlay, sNewContainerName);
1781
- // The create container and rename must be a single command in the stack
1782
- this.getCommandStack().compositeLastTwoCommands();
1783
- } else {
1784
- fnStartEdit(oContainerElementOverlay);
1785
- }
1786
- } else {
1787
- scheduleOnCreatedAndVisible.call(this, sNewContainerID, fnStartEdit);
1788
- }
1789
- }.bind(this));
1790
- }
1791
-
1792
1760
  /**
1793
1761
  * Function to handle modification of an element
1794
1762
  *
@@ -1799,8 +1767,6 @@ sap.ui.define([
1799
1767
  // events are synchronously reset after the handlers are called
1800
1768
  const oCommand = oEvent.getParameter("command");
1801
1769
  const sNewControlID = oEvent.getParameter("newControlId");
1802
- const vAction = oEvent.getParameter("action");
1803
- const sContainerTitle = oEvent.getParameter("title");
1804
1770
 
1805
1771
  this._pElementModified = this._pElementModified.then(function() {
1806
1772
  this.getPluginManager().handleStopCutPaste();
@@ -1814,9 +1780,6 @@ sap.ui.define([
1814
1780
  fnSelect(oElementOverlay.getElement());
1815
1781
  }
1816
1782
  });
1817
- if (vAction) {
1818
- scheduleRenameOnCreatedContainer.call(this, vAction, sNewControlID, sContainerTitle);
1819
- }
1820
1783
  }
1821
1784
  return this.getCommandStack().pushAndExecute(oCommand)
1822
1785
  // Error handling when a command fails is done in the Stack
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  *
47
47
  * @namespace
48
48
  * @author SAP SE
49
- * @version 1.136.4
49
+ * @version 1.139.0
50
50
  *
51
51
  * @private
52
52
  * @since 1.30
@@ -97,7 +97,7 @@ sap.ui.define([
97
97
 
98
98
  function _handleSearch(oEvent) {
99
99
  var sValue = oEvent.getParameter("value");
100
- var oFilter = new Filter("name", FilterOperator.Contains, sValue);
100
+ var oFilter = new Filter("text", FilterOperator.Contains, sValue);
101
101
  var oBinding = oEvent.getSource().getBinding("items");
102
102
  oBinding.filter([oFilter]);
103
103
  }
@@ -136,7 +136,7 @@ sap.ui.define([
136
136
  oSelectDialog.bindAggregation("items", {
137
137
  path: "/icons",
138
138
  template: new StandardListItem({
139
- title: "{name}",
139
+ title: "{text}",
140
140
  description: "",
141
141
  icon: "{icon}",
142
142
  iconDensityAware: false,
@@ -149,10 +149,11 @@ sap.ui.define([
149
149
  var aIcons = [];
150
150
 
151
151
  aUI5Icons.forEach(function(sName) {
152
- var iconInfo = IconPool.getIconInfo(sName);
152
+ const iconInfo = IconPool.getIconInfo(sName);
153
153
  aIcons.push({
154
154
  icon: iconInfo.uri,
155
- name: (iconInfo.text === "") ? sName.toLowerCase() : iconInfo.text
155
+ name: iconInfo.name,
156
+ text: iconInfo.text || sName.toLowerCase()
156
157
  });
157
158
  });
158
159
 
@@ -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.4
27
+ * @version 1.139.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.4
19
+ * @version 1.139.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -87,11 +87,18 @@ sap.ui.define([
87
87
 
88
88
  AddIFrame.prototype._getChangeSpecificData = function() {
89
89
  var mChangeSpecificData = FlexCommand.prototype._getChangeSpecificData.call(this);
90
- var sChangeType = mChangeSpecificData.changeType;
91
- delete mChangeSpecificData.changeType;
90
+ const { title: sTitle, ...oContent } = mChangeSpecificData.content;
92
91
  return {
93
- changeType: sChangeType,
94
- content: mChangeSpecificData.content
92
+ changeType: mChangeSpecificData.changeType,
93
+ content: oContent,
94
+ texts: sTitle
95
+ ? {
96
+ title: {
97
+ value: sTitle,
98
+ type: "XTIT"
99
+ }
100
+ }
101
+ : {}
95
102
  };
96
103
  };
97
104
 
@@ -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.4
17
+ * @version 1.139.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.4
19
+ * @version 1.139.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.4
27
+ * @version 1.139.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.4
32
+ * @version 1.139.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.4
19
+ * @version 1.139.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.4
29
+ * @version 1.139.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.4
19
+ * @version 1.139.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.4
520
+ * @version 1.139.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.4
24
+ * @version 1.139.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.4
33
+ * @version 1.139.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.4
23
+ * @version 1.139.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.4
33
+ * @version 1.139.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.4
29
+ * @version 1.139.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.4
27
+ * @version 1.139.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.4
15
+ * @version 1.139.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.4
15
+ * @version 1.139.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62