@openui5/sap.ui.rta 1.133.1 → 1.135.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 (165) hide show
  1. package/.reuse/dep5 +0 -7
  2. package/THIRDPARTY.txt +2 -23
  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 +38 -17
  7. package/src/sap/ui/rta/Utils.js +11 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantManager.js +26 -26
  9. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +0 -4
  10. package/src/sap/ui/rta/appVariant/Feature.js +85 -91
  11. package/src/sap/ui/rta/appVariant/Utils.js +50 -56
  12. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +30 -30
  13. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr_CA.properties +2 -2
  14. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  15. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  16. package/src/sap/ui/rta/command/AddXML.js +1 -1
  17. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  18. package/src/sap/ui/rta/command/AnnotationCommand.js +65 -5
  19. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  20. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  21. package/src/sap/ui/rta/command/Combine.js +1 -1
  22. package/src/sap/ui/rta/command/CommandFactory.js +71 -47
  23. package/src/sap/ui/rta/command/CompositeCommand.js +12 -12
  24. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  28. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  29. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  30. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  31. package/src/sap/ui/rta/command/ExtendControllerCommand.js +92 -0
  32. package/src/sap/ui/rta/command/FlexCommand.js +54 -43
  33. package/src/sap/ui/rta/command/LREPSerializer.js +23 -23
  34. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  35. package/src/sap/ui/rta/command/ManifestCommand.js +112 -0
  36. package/src/sap/ui/rta/command/Move.js +1 -1
  37. package/src/sap/ui/rta/command/Property.js +1 -1
  38. package/src/sap/ui/rta/command/Remove.js +1 -1
  39. package/src/sap/ui/rta/command/Rename.js +1 -1
  40. package/src/sap/ui/rta/command/Resize.js +1 -1
  41. package/src/sap/ui/rta/command/Reveal.js +1 -1
  42. package/src/sap/ui/rta/command/Settings.js +1 -1
  43. package/src/sap/ui/rta/command/Split.js +1 -1
  44. package/src/sap/ui/rta/command/Stack.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  48. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  49. package/src/sap/ui/rta/command/{appDescriptor → manifest}/AddLibrary.js +10 -10
  50. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -7
  51. package/src/sap/ui/rta/library.js +2 -2
  52. package/src/sap/ui/rta/messagebundle.properties +22 -7
  53. package/src/sap/ui/rta/messagebundle_ar.properties +3 -1
  54. package/src/sap/ui/rta/messagebundle_bg.properties +4 -2
  55. package/src/sap/ui/rta/messagebundle_ca.properties +3 -1
  56. package/src/sap/ui/rta/messagebundle_cnr.properties +4 -2
  57. package/src/sap/ui/rta/messagebundle_cs.properties +3 -1
  58. package/src/sap/ui/rta/messagebundle_cy.properties +3 -1
  59. package/src/sap/ui/rta/messagebundle_da.properties +4 -2
  60. package/src/sap/ui/rta/messagebundle_de.properties +3 -1
  61. package/src/sap/ui/rta/messagebundle_el.properties +3 -1
  62. package/src/sap/ui/rta/messagebundle_en.properties +3 -1
  63. package/src/sap/ui/rta/messagebundle_en_GB.properties +3 -1
  64. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +10 -2
  65. package/src/sap/ui/rta/messagebundle_es.properties +3 -1
  66. package/src/sap/ui/rta/messagebundle_es_MX.properties +4 -2
  67. package/src/sap/ui/rta/messagebundle_et.properties +3 -1
  68. package/src/sap/ui/rta/messagebundle_fi.properties +4 -2
  69. package/src/sap/ui/rta/messagebundle_fr.properties +12 -10
  70. package/src/sap/ui/rta/messagebundle_fr_CA.properties +7 -5
  71. package/src/sap/ui/rta/messagebundle_hi.properties +3 -1
  72. package/src/sap/ui/rta/messagebundle_hr.properties +34 -32
  73. package/src/sap/ui/rta/messagebundle_hu.properties +3 -1
  74. package/src/sap/ui/rta/messagebundle_id.properties +3 -1
  75. package/src/sap/ui/rta/messagebundle_it.properties +48 -46
  76. package/src/sap/ui/rta/messagebundle_iw.properties +3 -1
  77. package/src/sap/ui/rta/messagebundle_ja.properties +3 -1
  78. package/src/sap/ui/rta/messagebundle_kk.properties +3 -1
  79. package/src/sap/ui/rta/messagebundle_ko.properties +3 -1
  80. package/src/sap/ui/rta/messagebundle_lt.properties +3 -1
  81. package/src/sap/ui/rta/messagebundle_lv.properties +3 -1
  82. package/src/sap/ui/rta/messagebundle_mk.properties +3 -1
  83. package/src/sap/ui/rta/messagebundle_ms.properties +3 -1
  84. package/src/sap/ui/rta/messagebundle_nl.properties +3 -1
  85. package/src/sap/ui/rta/messagebundle_no.properties +3 -1
  86. package/src/sap/ui/rta/messagebundle_pl.properties +3 -1
  87. package/src/sap/ui/rta/messagebundle_pt.properties +3 -1
  88. package/src/sap/ui/rta/messagebundle_pt_PT.properties +3 -1
  89. package/src/sap/ui/rta/messagebundle_ro.properties +3 -1
  90. package/src/sap/ui/rta/messagebundle_ru.properties +3 -1
  91. package/src/sap/ui/rta/messagebundle_sh.properties +4 -2
  92. package/src/sap/ui/rta/messagebundle_sk.properties +3 -1
  93. package/src/sap/ui/rta/messagebundle_sl.properties +3 -1
  94. package/src/sap/ui/rta/messagebundle_sr.properties +4 -2
  95. package/src/sap/ui/rta/messagebundle_sv.properties +3 -1
  96. package/src/sap/ui/rta/messagebundle_th.properties +3 -1
  97. package/src/sap/ui/rta/messagebundle_tr.properties +3 -1
  98. package/src/sap/ui/rta/messagebundle_uk.properties +3 -1
  99. package/src/sap/ui/rta/messagebundle_vi.properties +3 -1
  100. package/src/sap/ui/rta/messagebundle_zh_CN.properties +3 -1
  101. package/src/sap/ui/rta/messagebundle_zh_TW.properties +3 -1
  102. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +41 -35
  103. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +168 -0
  104. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  105. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  106. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  107. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  108. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  109. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  110. package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +161 -0
  111. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  112. package/src/sap/ui/rta/plugin/Plugin.js +7 -4
  113. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  114. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  115. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  116. package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
  117. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  118. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  119. package/src/sap/ui/rta/plugin/Settings.js +71 -61
  120. package/src/sap/ui/rta/plugin/Split.js +1 -1
  121. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  124. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  125. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  126. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  127. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +38 -51
  128. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +85 -47
  129. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +97 -33
  130. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +72 -17
  131. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  132. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  133. package/src/sap/ui/rta/service/Action.js +1 -1
  134. package/src/sap/ui/rta/service/ControllerExtension.js +10 -4
  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/Toolbar.adaptation.less +5 -0
  140. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +21 -3
  141. package/src/sap/ui/rta/toolbar/Adaptation.js +33 -7
  142. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  143. package/src/sap/ui/rta/toolbar/Fiori.js +4 -3
  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 +1 -1
  151. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  152. package/src/sap/ui/rta/util/PluginManager.js +5 -7
  153. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  154. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  155. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  156. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  157. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  158. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  159. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +2 -2
  160. package/src/sap/ui/rta/util/isReuseComponent.js +44 -0
  161. package/src/sap/ui/rta/util/validateText.js +1 -1
  162. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
  163. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +12 -7
  164. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
  165. package/src/sap/ui/rta/command/AppDescriptorCommand.js +0 -114
package/.reuse/dep5 CHANGED
@@ -364,13 +364,6 @@ Copyright:
364
364
  License: Apache-2.0 and ISC
365
365
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
366
366
 
367
- Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
368
- Copyright:
369
- 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
370
- Arthur David Olson, Paul Eggert and other contributors
371
- License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
372
- Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
373
-
374
367
 
375
368
  # Library: sap.ui.documentation:
376
369
 
package/THIRDPARTY.txt CHANGED
@@ -22,7 +22,7 @@ Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
22
22
 
23
23
  Library: sap.ui.codeeditor:
24
24
 
25
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.31.1
25
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.36.5
26
26
  Copyright: 2010, Ajax.org B.V.
27
27
  License: BSD-3-Clause
28
28
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -342,12 +342,6 @@ License: ISC
342
342
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
343
343
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
344
344
 
345
- Component: Time Zone Database, version: 2024b
346
- Copyright: Arthur David Olson, Paul Eggert and other contributors
347
- License: LicenseRef-tzdata-PublicDomain
348
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
349
- Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
350
-
351
345
 
352
346
  Library: sap.ui.documentation:
353
347
 
@@ -468,7 +462,7 @@ License: Apache-2.0
468
462
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
463
  Contained in: lib/jsdoc/ui5/plugin.js
470
464
 
471
- Component: SAP Theming Base Content, version: 11.24.0
465
+ Component: SAP Theming Base Content, version: 11.28.2
472
466
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
473
467
  License: Apache-2.0
474
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -1015,21 +1009,6 @@ END of license: LicenseRef-Unicode-3.0
1015
1009
  =================================
1016
1010
 
1017
1011
 
1018
- =================================
1019
- BEGIN of license: LicenseRef-tzdata-PublicDomain
1020
- =================================
1021
-
1022
- Unless specified below, all files in the tz code and data (including
1023
- this LICENSE file) are in the public domain.
1024
-
1025
- If the files date.c, newstrftime.3, and strftime.c are present, they
1026
- contain material derived from BSD and use the BSD 3-clause license.
1027
-
1028
- =================================
1029
- END of license: LicenseRef-tzdata-PublicDomain
1030
- =================================
1031
-
1032
-
1033
1012
  =================================
1034
1013
  BEGIN of license: MIT
1035
1014
  =================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.133.1",
3
+ "version": "1.135.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.133.1",
18
- "@openui5/sap.ui.core": "1.133.1",
19
- "@openui5/sap.ui.dt": "1.133.1",
20
- "@openui5/sap.ui.fl": "1.133.1",
21
- "@openui5/sap.ui.layout": "1.133.1"
17
+ "@openui5/sap.m": "1.135.0",
18
+ "@openui5/sap.ui.core": "1.135.0",
19
+ "@openui5/sap.ui.dt": "1.135.0",
20
+ "@openui5/sap.ui.fl": "1.135.0",
21
+ "@openui5/sap.ui.layout": "1.135.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-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.133.1</version>
9
+ <version>1.135.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.133.1
62
+ * @version 1.135.0
63
63
  * @private
64
64
  * @ui5-restricted
65
65
  */
@@ -31,7 +31,6 @@ sap.ui.define([
31
31
  "sap/ui/fl/write/api/VersionsAPI",
32
32
  "sap/ui/fl/write/api/TranslationAPI",
33
33
  "sap/ui/fl/Layer",
34
- "sap/ui/fl/registry/Settings",
35
34
  "sap/ui/fl/Utils",
36
35
  "sap/ui/model/json/JSONModel",
37
36
  "sap/ui/performance/Measurement",
@@ -77,7 +76,6 @@ sap.ui.define([
77
76
  VersionsAPI,
78
77
  TranslationAPI,
79
78
  Layer,
80
- Settings,
81
79
  FlexUtils,
82
80
  JSONModel,
83
81
  Measurement,
@@ -111,7 +109,7 @@ sap.ui.define([
111
109
  * @class The runtime authoring allows to adapt the fields of a running application.
112
110
  * @extends sap.ui.base.ManagedObject
113
111
  * @author SAP SE
114
- * @version 1.133.1
112
+ * @version 1.135.0
115
113
  * @constructor
116
114
  * @private
117
115
  * @since 1.30
@@ -487,7 +485,7 @@ sap.ui.define([
487
485
  oRootControl,
488
486
  this.fnOnPersonalizationChangeCreation
489
487
  );
490
- await checkFlexEnabled.call(this);
488
+ checkFlexEnabled.call(this);
491
489
 
492
490
  this._sStatus = STARTED;
493
491
  RuntimeAuthoring.disableRestart(this.getLayer());
@@ -559,7 +557,7 @@ sap.ui.define([
559
557
  *
560
558
  * @public
561
559
  * @param {boolean} bSkipSave - Stop RTA with or w/o saving changes
562
- * @param {boolean} bSkipRestart - Stop RTA with or w/o checking if a reload is needed to apply e.g. personalization/app descriptor changes
560
+ * @param {boolean} bSkipRestart - Stop RTA with or w/o checking if a reload is needed to apply e.g. personalization/manifest changes
563
561
  * @param {boolean} bSkipUnsavedChangesPrompt - Stop RTA without showing the "save changes" prompt to the user (e.g. closing of annotation dialog)
564
562
  * @returns {Promise} Resolves with undefined
565
563
  */
@@ -930,10 +928,10 @@ sap.ui.define([
930
928
  });
931
929
  }
932
930
 
933
- async function checkFlexEnabled() {
931
+ function checkFlexEnabled() {
934
932
  const sUriParam = new URLSearchParams(window.location.search).get("sap-ui-rta-skip-flex-validation");
935
- const oSettings = await Settings.getInstance();
936
- if (!oSettings.isCustomerSystem() && sUriParam !== "true") {
933
+ const bIsCustomerSystem = FlexRuntimeInfoAPI.isCustomerSystem();
934
+ if (!bIsCustomerSystem && sUriParam !== "true") {
937
935
  validateFlexEnabled(this);
938
936
  }
939
937
  }
@@ -1057,6 +1055,8 @@ sap.ui.define([
1057
1055
  "/translation/enabled",
1058
1056
  this.bPersistedDataTranslatable || bTranslationRelevantDirtyChange
1059
1057
  );
1058
+ const bChangesNeedHardReload = this._bSavedChangesNeedReload || await this._oSerializer.needsReload();
1059
+ this._oToolbarControlsModel.setProperty("/changesNeedHardReload", bChangesNeedHardReload);
1060
1060
  }
1061
1061
  this.fireUndoRedoStackModified();
1062
1062
  } catch (e) {
@@ -1119,6 +1119,28 @@ sap.ui.define([
1119
1119
  }
1120
1120
  }
1121
1121
 
1122
+ async function saveAndReload() {
1123
+ if (this.canSave()) {
1124
+ const sAction = await Utils.showMessageBox("warning", "MSG_SAVE_AND_RELOAD_DIALOG", {
1125
+ actions: [MessageBox.Action.OK, MessageBox.Action.CANCEL],
1126
+ emphasizedAction: MessageBox.Action.OK
1127
+ });
1128
+ if (sAction === MessageBox.Action.CANCEL) {
1129
+ return;
1130
+ }
1131
+ }
1132
+ await this.save();
1133
+ if (this._oVersionsModel.getProperty("/versioningEnabled")) {
1134
+ await VersionsAPI.loadDraftForApplication({
1135
+ control: this.getRootControlInstance(),
1136
+ layer: this.getLayer()
1137
+ });
1138
+ }
1139
+ RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
1140
+ await this.stop(true, true, true);
1141
+ ReloadManager.reloadPage();
1142
+ }
1143
+
1122
1144
  function saveOnly(oEvent) {
1123
1145
  const fnCallback = oEvent.getParameter("callback") || function() {};
1124
1146
  const bVersionsEnabled = this._oVersionsModel.getProperty("/versioningEnabled");
@@ -1199,6 +1221,10 @@ sap.ui.define([
1199
1221
  title: sVersionTitle,
1200
1222
  displayedVersion: sDisplayedVersion
1201
1223
  });
1224
+ await PersistenceWriteAPI.updateResetAndPublishInfo({
1225
+ selector: oSelector,
1226
+ layer: sLayer
1227
+ });
1202
1228
  showMessageToast.call(this, "MSG_DRAFT_ACTIVATION_SUCCESS");
1203
1229
  this.getPluginManager().getPlugin("toolHooks").setVersionWasActivated(true);
1204
1230
  this.bInitialResetEnabled = true;
@@ -1462,6 +1488,7 @@ sap.ui.define([
1462
1488
  ? this.getChangeVisualization().openChangeCategorySelectionPopover.bind(this.getChangeVisualization())
1463
1489
  : function() {};
1464
1490
  oProperties.save = saveOnly.bind(this);
1491
+ oProperties.saveAndReload = saveAndReload.bind(this);
1465
1492
 
1466
1493
  let oToolbar;
1467
1494
  if (Utils.isOriginalFioriToolbarAccessible()) {
@@ -1487,7 +1514,9 @@ sap.ui.define([
1487
1514
  });
1488
1515
  this.bPersistedDataTranslatable = false;
1489
1516
 
1517
+ const bChangesNeedHardReload = this._bSavedChangesNeedReload || await this._oSerializer.needsReload();
1490
1518
  this._oToolbarControlsModel = new JSONModel({
1519
+ changesNeedHardReload: bChangesNeedHardReload,
1491
1520
  modeSwitcher: this.getMode(),
1492
1521
  undo: {
1493
1522
  enabled: false
@@ -1567,7 +1596,7 @@ sap.ui.define([
1567
1596
 
1568
1597
  /**
1569
1598
  * Delete all changes for current layer and root control's component.
1570
- * In case of Base Applications (no App Variants) the App Descriptor Changes and UI Changes are saved
1599
+ * In case of Base Applications (no App Variants) the manifest Changes and UI Changes are saved
1571
1600
  * in different Flex Persistence instances, the changes for both places will be deleted. For App Variants
1572
1601
  * all the changes are saved in one place.
1573
1602
  *
@@ -1702,14 +1731,6 @@ sap.ui.define([
1702
1731
  this._pElementModified = this._pElementModified.then(function() {
1703
1732
  this.getPluginManager().handleStopCutPaste();
1704
1733
 
1705
- // Executed annotation commands will stop RTA and trigger a save + reload in RTA mode
1706
- if (oEvent.getParameter("hasAnnotationCommand")) {
1707
- this._pElementModified = Promise.resolve();
1708
- RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
1709
- return this.getCommandStack().pushAndExecute(oCommand)
1710
- .then(this.stop.bind(this, false, false, /* bSkipUnsavedChangesPrompt = */true));
1711
- }
1712
-
1713
1734
  if (oCommand instanceof BaseCommand) {
1714
1735
  if (sNewControlID) {
1715
1736
  scheduleOnCreated.call(this, sNewControlID, function(oElementOverlay) {
@@ -13,6 +13,7 @@ sap.ui.define([
13
13
  "sap/ui/dt/ElementUtil",
14
14
  "sap/ui/dt/MetadataPropagationUtil",
15
15
  "sap/ui/dt/OverlayUtil",
16
+ "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
16
17
  "sap/ui/fl/initial/api/Version",
17
18
  "sap/ui/fl/Layer",
18
19
  "sap/ui/fl/LayerUtils",
@@ -29,6 +30,7 @@ sap.ui.define([
29
30
  ElementUtil,
30
31
  MetadataPropagationUtil,
31
32
  OverlayUtil,
33
+ FlexRuntimeInfoAPI,
32
34
  Version,
33
35
  Layer,
34
36
  FlexLayerUtils,
@@ -44,7 +46,7 @@ sap.ui.define([
44
46
  *
45
47
  * @namespace
46
48
  * @author SAP SE
47
- * @version 1.133.1
49
+ * @version 1.135.0
48
50
  *
49
51
  * @private
50
52
  * @since 1.30
@@ -430,6 +432,14 @@ sap.ui.define([
430
432
  return undefined;
431
433
  };
432
434
 
435
+ /**
436
+ * Checks if the system is an S4Hana Cloud system
437
+ * @return {boolean} <code>true</code> if the system is an S4HANA Cloud system
438
+ */
439
+ Utils.isS4HanaCloud = function() {
440
+ return FlexRuntimeInfoAPI.isAtoEnabled() && FlexRuntimeInfoAPI.getSystem();
441
+ };
442
+
433
443
  /**
434
444
  * Checks drop ability for aggregation overlays
435
445
  * @param {sap.ui.dt.Overlay} oAggregationOverlay Aggregation overlay object
@@ -24,13 +24,13 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  * @author SAP SE
27
- * @version 1.133.1
27
+ * @version 1.135.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
31
31
  * @alias sap.ui.rta.appVariant.AppVariantManager
32
32
  */
33
- var AppVariantManager = ManagedObject.extend("sap.ui.rta.appVariant.AppVariantManager", {
33
+ const AppVariantManager = ManagedObject.extend("sap.ui.rta.appVariant.AppVariantManager", {
34
34
  metadata: {
35
35
  library: "sap.ui.rta",
36
36
  properties: {
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  });
46
46
 
47
47
  AppVariantManager.prototype._openDialog = function(fnCreate, fnCancel) {
48
- var oDialog = new AppVariantDialog("appVariantDialog");
48
+ const oDialog = new AppVariantDialog("appVariantDialog");
49
49
 
50
50
  oDialog.attachCreate(fnCreate);
51
51
  oDialog.attachCancel(fnCancel);
@@ -63,14 +63,14 @@ sap.ui.define([
63
63
  * Returns the info required to create the app variant
64
64
  * @private
65
65
  */
66
- AppVariantManager.prototype._prepareAppVariantData = function(oDescriptor, mParameters) {
66
+ AppVariantManager.prototype._prepareAppVariantData = function(oManifest, mParameters) {
67
67
  return {
68
- referenceAppId: oDescriptor["sap.app"].id,
68
+ referenceAppId: oManifest["sap.app"].id,
69
69
  title: mParameters.title,
70
70
  subTitle: mParameters.subTitle,
71
71
  description: mParameters.description,
72
72
  icon: mParameters.icon,
73
- inbounds: oDescriptor["sap.app"].crossNavigation && oDescriptor["sap.app"].crossNavigation.inbounds ? oDescriptor["sap.app"].crossNavigation.inbounds : null
73
+ inbounds: oManifest["sap.app"].crossNavigation && oManifest["sap.app"].crossNavigation.inbounds ? oManifest["sap.app"].crossNavigation.inbounds : null
74
74
  };
75
75
  };
76
76
 
@@ -78,13 +78,13 @@ sap.ui.define([
78
78
  *
79
79
  * @param {Object} oAppVariantSpecificData - Contains the specific info needed to create the inline changes for the app variant
80
80
  * @param {sap.ui.fl.Selector} vSelector - Managed object or selector object
81
- * @returns {Promise[]} returns all the descriptor inline changes
82
- * @description Creates all the descriptor inline changes for different change types.
81
+ * @returns {Promise[]} returns all the manifest inline changes
82
+ * @description Creates all the manifest inline changes for different change types.
83
83
  */
84
84
  AppVariantManager.prototype.createAllInlineChanges = function(oAppVariantSpecificData, vSelector) {
85
- var sAppVariantId = AppVariantUtils.getId(oAppVariantSpecificData.referenceAppId);
86
- var aAllInlineChangeOperations = [];
87
- var oPropertyChange = {};
85
+ const sAppVariantId = AppVariantUtils.getId(oAppVariantSpecificData.referenceAppId);
86
+ const aAllInlineChangeOperations = [];
87
+ let oPropertyChange = {};
88
88
 
89
89
  // create a inline change using a change type 'appdescr_app_setTitle'
90
90
  oPropertyChange.content = AppVariantUtils.prepareTextsChange("title", oAppVariantSpecificData.title);
@@ -105,12 +105,12 @@ sap.ui.define([
105
105
  /** *********************************************************Inbounds handling******************************************************************/
106
106
  return AppVariantUtils.getInboundInfo(oAppVariantSpecificData.inbounds)
107
107
  .then(function(oInboundInfo) {
108
- var sCurrentRunningInboundId = oInboundInfo.currentRunningInbound;
108
+ const sCurrentRunningInboundId = oInboundInfo.currentRunningInbound;
109
109
 
110
110
  // If there is no inbound, create a new inbound
111
111
  if (oInboundInfo.addNewInboundRequired) {
112
112
  // create a inline change using a change type 'appdescr_app_addNewInbound'
113
- var oInlineChangePromise = AppVariantUtils.prepareAddNewInboundChange(sCurrentRunningInboundId, sAppVariantId, oAppVariantSpecificData)
113
+ const oInlineChangePromise = AppVariantUtils.prepareAddNewInboundChange(sCurrentRunningInboundId, sAppVariantId, oAppVariantSpecificData)
114
114
  .then(function(oPropertyChange) {
115
115
  return AppVariantUtils.createInlineChange(oPropertyChange, "appdescr_app_addNewInbound", vSelector);
116
116
  });
@@ -138,7 +138,7 @@ sap.ui.define([
138
138
  * @description Creates the app variant with all inline changes in backend.
139
139
  */
140
140
  AppVariantManager.prototype.createAppVariant = function(sAppVariantId, vSelector) {
141
- var mPropertyBag = {
141
+ const mPropertyBag = {
142
142
  id: sAppVariantId,
143
143
  layer: this.getLayer()
144
144
  };
@@ -158,21 +158,21 @@ sap.ui.define([
158
158
 
159
159
  /**
160
160
  *
161
- * @param {Object} oDescriptor - Contains the app variant descriptor information
161
+ * @param {Object} oManifest - Contains the app variant manifest information
162
162
  * @param {boolean} bSaveAsTriggeredFromRtaToolbar - Boolean value which tells if 'Save As' is triggered from the UI adaptation header bar
163
163
  * @returns {Object} Contains the information to create the app variant
164
164
  * @description Processes the Save As Dialog and consolidates the input parameters from the 'Save As' dialog as an object.
165
165
  */
166
- AppVariantManager.prototype.processSaveAsDialog = function(oDescriptor, bSaveAsTriggeredFromRtaToolbar) {
166
+ AppVariantManager.prototype.processSaveAsDialog = function(oManifest, bSaveAsTriggeredFromRtaToolbar) {
167
167
  return new Promise(function(resolve, reject) {
168
- var fnCreate = function(oResult) {
169
- var mParameters = oResult.getParameters();
170
- var oAppVariantData = this._prepareAppVariantData(oDescriptor, mParameters);
168
+ const fnCreate = function(oResult) {
169
+ const mParameters = oResult.getParameters();
170
+ const oAppVariantData = this._prepareAppVariantData(oManifest, mParameters);
171
171
 
172
172
  resolve(oAppVariantData);
173
173
  }.bind(this);
174
174
 
175
- var fnCancel = function() {
175
+ const fnCancel = function() {
176
176
  if (!bSaveAsTriggeredFromRtaToolbar) {
177
177
  return RtaAppVariantFeature.onGetOverview(true, this.getLayer());
178
178
  }
@@ -199,7 +199,7 @@ sap.ui.define([
199
199
  * @description Clears the RTA command stack
200
200
  */
201
201
  AppVariantManager.prototype.clearRTACommandStack = function(bCopyUnsavedChanges) {
202
- var oCommandStack = this.getCommandSerializer().getCommandStack();
202
+ const oCommandStack = this.getCommandSerializer().getCommandStack();
203
203
  if (bCopyUnsavedChanges && oCommandStack.getAllExecutedCommands().length) {
204
204
  return this._clearRTACommandStack();
205
205
  }
@@ -217,10 +217,10 @@ sap.ui.define([
217
217
  * In 'Deletion' scenario: The app variant is unassigned from all catalogs.
218
218
  */
219
219
  AppVariantManager.prototype.triggerCatalogPublishing = function(sAppVariantId, sReferenceAppId, bSaveAs) {
220
- var fnTriggerCatalogOperation = bSaveAs ? AppVariantUtils.triggerCatalogAssignment : AppVariantUtils.triggerCatalogUnAssignment;
220
+ const fnTriggerCatalogOperation = bSaveAs ? AppVariantUtils.triggerCatalogAssignment : AppVariantUtils.triggerCatalogUnAssignment;
221
221
  return fnTriggerCatalogOperation(sAppVariantId, this.getLayer(), sReferenceAppId)
222
222
  .catch(function(oError) {
223
- var sMessageKey = bSaveAs ? "MSG_CATALOG_ASSIGNMENT_FAILED" : "MSG_DELETE_APP_VARIANT_FAILED";
223
+ const sMessageKey = bSaveAs ? "MSG_CATALOG_ASSIGNMENT_FAILED" : "MSG_DELETE_APP_VARIANT_FAILED";
224
224
  return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
225
225
  });
226
226
  };
@@ -236,9 +236,9 @@ sap.ui.define([
236
236
  * In case of deletion: It checks whether the catalogs bound to the app variant have been unpublished and the deletion can be started.
237
237
  */
238
238
  AppVariantManager.prototype.notifyKeyUserWhenPublishingIsReady = function(sIamId, sAppVarId, bCreation) {
239
- var oS4HanaCloudBackend = new S4HanaCloudBackend();
239
+ const oS4HanaCloudBackend = new S4HanaCloudBackend();
240
240
  return oS4HanaCloudBackend.notifyFlpCustomizingIsReady(sIamId, bCreation).catch(function(oError) {
241
- var sMessageKey = bCreation ? "MSG_TILE_CREATION_FAILED" : "MSG_DELETE_APP_VARIANT_FAILED";
241
+ let sMessageKey = bCreation ? "MSG_TILE_CREATION_FAILED" : "MSG_DELETE_APP_VARIANT_FAILED";
242
242
  if (!bCreation && oError.error === "locked") {
243
243
  sMessageKey = "MSG_CATALOGS_LOCKED";
244
244
  }
@@ -259,4 +259,4 @@ sap.ui.define([
259
259
  };
260
260
 
261
261
  return AppVariantManager;
262
- }, true);
262
+ });
@@ -385,10 +385,6 @@ sap.ui.define([
385
385
  });
386
386
  };
387
387
 
388
- AppVariantUtils.isS4HanaCloud = function(oSettings) {
389
- return oSettings.isAtoEnabled() && oSettings.isAtoAvailable();
390
- };
391
-
392
388
  AppVariantUtils.copyId = function(sId) {
393
389
  var textArea = document.createElement("textarea");
394
390
  textArea.value = sId;