@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
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
47
47
  * @author SAP SE
48
48
  * @since 1.84.0
49
- * @version 1.133.1
49
+ * @version 1.135.0
50
50
  * @private
51
51
  */
52
52
  const ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
38
38
  * @author SAP SE
39
39
  * @since 1.86.0
40
- * @version 1.133.1
40
+ * @version 1.135.0
41
41
  * @private
42
42
  */
43
43
  const ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
@@ -84,7 +84,7 @@ sap.ui.define([
84
84
  * @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
85
85
  * @author SAP SE
86
86
  * @since 1.84.0
87
- * @version 1.133.1
87
+ * @version 1.135.0
88
88
  * @private
89
89
  */
90
90
  const ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
@@ -420,7 +420,7 @@ sap.ui.define([
420
420
  return sCommand;
421
421
  }
422
422
 
423
- if (!oChange.getSelector || !oChange.getSelector() || isEmptyObject(oChange.getSelector())) {
423
+ if (!oChange.canBeVisualized()) {
424
424
  return false;
425
425
  }
426
426
 
@@ -0,0 +1,44 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ "sap/ui/fl/Utils"
9
+ ], function(Utils) {
10
+ "use strict";
11
+
12
+ /**
13
+ * Returns <code>true</code> if the given component is found in the component
14
+ * usages of the app component manifest.
15
+ *
16
+ * @param {sap.ui.core.Component} oComponent - Component instance
17
+ * @returns {boolean} <code>true</code> if the given component is a reuse component
18
+ */
19
+ function isReuseComponent(oComponent) {
20
+ if (!oComponent) {
21
+ return false;
22
+ }
23
+
24
+ const oAppComponent = Utils.getAppComponentForControl(oComponent);
25
+ if (!oAppComponent) {
26
+ return false;
27
+ }
28
+
29
+ const oManifest = oComponent.getManifest();
30
+ const oAppManifest = oAppComponent.getManifest();
31
+ const sComponentName = oManifest?.["sap.app"]?.id;
32
+
33
+ // Look for component name in component usages of app component manifest
34
+ const oComponentUsages = oAppManifest?.["sap.ui5"]?.componentUsages;
35
+ return Object.values(oComponentUsages || {}).some((oComponentUsage) => {
36
+ if (oComponentUsage.name === sComponentName) {
37
+ return true;
38
+ }
39
+ return false;
40
+ });
41
+ }
42
+
43
+ return isReuseComponent;
44
+ });
@@ -68,4 +68,4 @@ sap.ui.define([
68
68
  throw Error(sErrorText);
69
69
  }
70
70
  };
71
- }, true);
71
+ });
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @class Constructor for a new sap.ui.rta.util.whatsNew.WhatsNew
34
34
  * @extends sap.ui.base.ManagedObject
35
35
  * @author SAP SE
36
- * @version 1.133.1
36
+ * @version 1.135.0
37
37
  * @constructor
38
38
  * @since 1.129
39
39
  * @private
@@ -5,10 +5,12 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/fl/registry/Settings",
8
+ "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
9
+ "sap/ui/rta/Utils",
9
10
  "sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures"
10
11
  ], function(
11
- Settings,
12
+ FlexRuntimeInfoAPI,
13
+ RtaUtils,
12
14
  WhatsNewFeatures
13
15
  ) {
14
16
  "use strict";
@@ -45,13 +47,16 @@ sap.ui.define([
45
47
  */
46
48
  getLearnMoreURL(sPath, aFeatureCollection) {
47
49
  const sFeaturePageIndex = sPath.slice(-1);
48
- const oSettings = Settings.getInstanceOrUndef();
49
- if (oSettings?.isAtoEnabled() && oSettings?.getSystem()) {
50
- return aFeatureCollection[sFeaturePageIndex].documentationUrls.s4HanaCloudUrl;
51
- }
52
- if (!oSettings?.isAtoEnabled() && oSettings?.getSystem()) {
50
+ const bIsS4Hana = !!FlexRuntimeInfoAPI.getSystem();
51
+
52
+ if (bIsS4Hana) {
53
+ if (RtaUtils.isS4HanaCloud()) {
54
+ return aFeatureCollection[sFeaturePageIndex].documentationUrls.s4HanaCloudUrl;
55
+ }
56
+
53
57
  return aFeatureCollection[sFeaturePageIndex].documentationUrls.s4HanaOnPremUrl;
54
58
  }
59
+
55
60
  return aFeatureCollection[sFeaturePageIndex].documentationUrls.btpUrl;
56
61
  },
57
62
 
@@ -1,5 +0,0 @@
1
- Unless specified below, all files in the tz code and data (including
2
- this LICENSE file) are in the public domain.
3
-
4
- If the files date.c, newstrftime.3, and strftime.c are present, they
5
- contain material derived from BSD and use the BSD 3-clause license.
@@ -1,114 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
- sap.ui.define([
7
- "sap/ui/rta/command/BaseCommand",
8
- "sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory",
9
- "sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory"
10
- ], function(
11
- BaseCommand,
12
- AppVariantInlineChangeFactory,
13
- DescriptorChangeFactory
14
- ) {
15
- "use strict";
16
-
17
- /**
18
- * Implementation of a command template for App Descriptor changes
19
- *
20
- * @class
21
- * @extends sap.ui.rta.command.BaseCommand
22
- *
23
- * @author SAP SE
24
- * @version 1.133.1
25
- *
26
- * @constructor
27
- * @private
28
- * @since 1.49
29
- * @alias sap.ui.rta.command.AppDescriptorCommand
30
- */
31
- var AppDescriptorCommand = BaseCommand.extend("sap.ui.rta.command.AppDescriptorCommand", {
32
- metadata: {
33
- library: "sap.ui.rta",
34
- properties: {
35
- reference: {
36
- type: "string"
37
- },
38
- appComponent: {
39
- type: "object"
40
- },
41
- layer: {
42
- type: "string"
43
- },
44
- changeType: {
45
- type: "string"
46
- },
47
- parameters: {
48
- type: "object"
49
- },
50
- texts: {
51
- type: "object"
52
- }
53
- },
54
- events: {}
55
- }
56
- });
57
-
58
- /**
59
- * For app descriptor commands to take effect usually the app needs to be restarted as server-side processing is involved.
60
- */
61
- AppDescriptorCommand.prototype.needsReload = true;
62
-
63
- /**
64
- * Prepare the app descriptor change, setting the layer.
65
- * @param {object} mFlexSettings - Map of flex settings
66
- * @param {string} mFlexSettings.layer - Layer where the change is applied
67
- * @returns {boolean} <code>true</true>
68
- */
69
- AppDescriptorCommand.prototype.prepare = function(mFlexSettings) {
70
- this.setLayer(mFlexSettings.layer);
71
- return true;
72
- };
73
-
74
- /**
75
- * Retrieves the prepared change for e.g. undo execution.
76
- * @return {sap.ui.fl.apply._internal.flexObjects.UIChange} Returns change after being created and stored
77
- */
78
- AppDescriptorCommand.prototype.getPreparedChange = function() {
79
- return this._oPreparedChange;
80
- };
81
-
82
- AppDescriptorCommand.prototype.setCompositeId = function(sCompositeId) {
83
- this._sCompositeId = sCompositeId;
84
- };
85
-
86
- /**
87
- * Create the change for the app descriptor and adds it to the Flex Persistence.
88
- * @return {Promise} Returns Promise resolving after change has been created and stored
89
- */
90
- AppDescriptorCommand.prototype.createAndStoreChange = function() {
91
- return AppVariantInlineChangeFactory.createDescriptorInlineChange({
92
- changeType: this.getChangeType(),
93
- content: this.getParameters(),
94
- texts: this.getTexts(),
95
- support: {
96
- compositeCommand: this._sCompositeId || ""
97
- }
98
- })
99
- .then(function(oAppDescriptorChangeContent) {
100
- return new DescriptorChangeFactory().createNew(
101
- this.getReference(),
102
- oAppDescriptorChangeContent,
103
- this.getLayer(),
104
- this.getAppComponent(),
105
- "sap.ui.rta.AppDescriptorCommand"
106
- );
107
- }.bind(this))
108
- .then(function(oAppDescriptorChange) {
109
- var oChange = oAppDescriptorChange.store();
110
- this._oPreparedChange = oChange;
111
- }.bind(this));
112
- };
113
- return AppDescriptorCommand;
114
- });