@openui5/sap.ui.rta 1.134.0 → 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 (157) hide show
  1. package/THIRDPARTY.txt +2 -2
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -1
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +34 -11
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +25 -25
  8. package/src/sap/ui/rta/appVariant/Feature.js +71 -71
  9. package/src/sap/ui/rta/appVariant/Utils.js +21 -23
  10. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +30 -30
  11. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr_CA.properties +2 -2
  12. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  13. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  14. package/src/sap/ui/rta/command/AddXML.js +1 -1
  15. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  16. package/src/sap/ui/rta/command/AnnotationCommand.js +65 -5
  17. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  18. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  19. package/src/sap/ui/rta/command/Combine.js +1 -1
  20. package/src/sap/ui/rta/command/CommandFactory.js +71 -47
  21. package/src/sap/ui/rta/command/CompositeCommand.js +12 -12
  22. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  27. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  28. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  29. package/src/sap/ui/rta/command/ExtendControllerCommand.js +92 -0
  30. package/src/sap/ui/rta/command/FlexCommand.js +54 -43
  31. package/src/sap/ui/rta/command/LREPSerializer.js +23 -23
  32. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  33. package/src/sap/ui/rta/command/ManifestCommand.js +112 -0
  34. package/src/sap/ui/rta/command/Move.js +1 -1
  35. package/src/sap/ui/rta/command/Property.js +1 -1
  36. package/src/sap/ui/rta/command/Remove.js +1 -1
  37. package/src/sap/ui/rta/command/Rename.js +1 -1
  38. package/src/sap/ui/rta/command/Resize.js +1 -1
  39. package/src/sap/ui/rta/command/Reveal.js +1 -1
  40. package/src/sap/ui/rta/command/Settings.js +1 -1
  41. package/src/sap/ui/rta/command/Split.js +1 -1
  42. package/src/sap/ui/rta/command/Stack.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  46. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  47. package/src/sap/ui/rta/command/{appDescriptor → manifest}/AddLibrary.js +10 -10
  48. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  49. package/src/sap/ui/rta/library.js +2 -2
  50. package/src/sap/ui/rta/messagebundle.properties +16 -3
  51. package/src/sap/ui/rta/messagebundle_ar.properties +1 -0
  52. package/src/sap/ui/rta/messagebundle_bg.properties +1 -0
  53. package/src/sap/ui/rta/messagebundle_ca.properties +1 -0
  54. package/src/sap/ui/rta/messagebundle_cnr.properties +1 -0
  55. package/src/sap/ui/rta/messagebundle_cs.properties +1 -0
  56. package/src/sap/ui/rta/messagebundle_cy.properties +1 -0
  57. package/src/sap/ui/rta/messagebundle_da.properties +1 -0
  58. package/src/sap/ui/rta/messagebundle_de.properties +1 -0
  59. package/src/sap/ui/rta/messagebundle_el.properties +1 -0
  60. package/src/sap/ui/rta/messagebundle_en.properties +1 -0
  61. package/src/sap/ui/rta/messagebundle_en_GB.properties +1 -0
  62. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -1
  63. package/src/sap/ui/rta/messagebundle_es.properties +1 -0
  64. package/src/sap/ui/rta/messagebundle_es_MX.properties +1 -0
  65. package/src/sap/ui/rta/messagebundle_et.properties +1 -0
  66. package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
  67. package/src/sap/ui/rta/messagebundle_fr.properties +10 -9
  68. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -4
  69. package/src/sap/ui/rta/messagebundle_hi.properties +1 -0
  70. package/src/sap/ui/rta/messagebundle_hr.properties +32 -31
  71. package/src/sap/ui/rta/messagebundle_hu.properties +1 -0
  72. package/src/sap/ui/rta/messagebundle_id.properties +1 -0
  73. package/src/sap/ui/rta/messagebundle_it.properties +46 -45
  74. package/src/sap/ui/rta/messagebundle_iw.properties +1 -0
  75. package/src/sap/ui/rta/messagebundle_ja.properties +1 -0
  76. package/src/sap/ui/rta/messagebundle_kk.properties +1 -0
  77. package/src/sap/ui/rta/messagebundle_ko.properties +1 -0
  78. package/src/sap/ui/rta/messagebundle_lt.properties +1 -0
  79. package/src/sap/ui/rta/messagebundle_lv.properties +1 -0
  80. package/src/sap/ui/rta/messagebundle_mk.properties +1 -0
  81. package/src/sap/ui/rta/messagebundle_ms.properties +1 -0
  82. package/src/sap/ui/rta/messagebundle_nl.properties +1 -0
  83. package/src/sap/ui/rta/messagebundle_no.properties +1 -0
  84. package/src/sap/ui/rta/messagebundle_pl.properties +1 -0
  85. package/src/sap/ui/rta/messagebundle_pt.properties +1 -0
  86. package/src/sap/ui/rta/messagebundle_pt_PT.properties +1 -0
  87. package/src/sap/ui/rta/messagebundle_ro.properties +1 -0
  88. package/src/sap/ui/rta/messagebundle_ru.properties +1 -0
  89. package/src/sap/ui/rta/messagebundle_sh.properties +1 -0
  90. package/src/sap/ui/rta/messagebundle_sk.properties +1 -0
  91. package/src/sap/ui/rta/messagebundle_sl.properties +1 -0
  92. package/src/sap/ui/rta/messagebundle_sr.properties +1 -0
  93. package/src/sap/ui/rta/messagebundle_sv.properties +1 -0
  94. package/src/sap/ui/rta/messagebundle_th.properties +1 -0
  95. package/src/sap/ui/rta/messagebundle_tr.properties +1 -0
  96. package/src/sap/ui/rta/messagebundle_uk.properties +1 -0
  97. package/src/sap/ui/rta/messagebundle_vi.properties +1 -0
  98. package/src/sap/ui/rta/messagebundle_zh_CN.properties +1 -0
  99. package/src/sap/ui/rta/messagebundle_zh_TW.properties +1 -0
  100. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +33 -33
  101. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
  102. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  103. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  104. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  105. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  106. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  107. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  108. package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +161 -0
  109. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  110. package/src/sap/ui/rta/plugin/Plugin.js +3 -1
  111. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  112. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  113. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  114. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  115. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  116. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  117. package/src/sap/ui/rta/plugin/Settings.js +71 -61
  118. package/src/sap/ui/rta/plugin/Split.js +1 -1
  119. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  124. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  125. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +9 -5
  126. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +58 -9
  127. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +11 -4
  128. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +54 -17
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  130. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  131. package/src/sap/ui/rta/service/Action.js +1 -1
  132. package/src/sap/ui/rta/service/ControllerExtension.js +10 -4
  133. package/src/sap/ui/rta/service/Outline.js +1 -1
  134. package/src/sap/ui/rta/service/Property.js +1 -1
  135. package/src/sap/ui/rta/service/Selection.js +1 -1
  136. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  137. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +5 -0
  138. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +21 -3
  139. package/src/sap/ui/rta/toolbar/Adaptation.js +33 -7
  140. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  141. package/src/sap/ui/rta/toolbar/Fiori.js +4 -3
  142. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  143. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  144. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  145. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  146. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  147. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  148. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  149. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  150. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  151. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  152. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  153. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +2 -2
  156. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
  157. package/src/sap/ui/rta/command/AppDescriptorCommand.js +0 -114
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.134.0
35
+ * @version 1.135.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -81,8 +81,9 @@ function(
81
81
  this.getControl("iconBox").addItem(
82
82
  new Image(`${this.getId()}_fragment--sapUiRta_icon`, {
83
83
  src: sLogoPath,
84
- width: iWidth ? `${iWidth}px` : iWidth,
85
- height: iHeight ? `${iHeight}px` : iHeight
84
+ // type check required cause of image could have zero width and height
85
+ width: typeof iWidth === "number" ? `${iWidth}px` : iWidth,
86
+ height: typeof iHeight === "number" ? `${iHeight}px` : iHeight
86
87
  })
87
88
  );
88
89
  }
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.134.0
23
+ * @version 1.135.0
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.m.OverflowToolbarButton
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.134.0
26
+ * @version 1.135.0
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Adaptation
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.134.0
25
+ * @version 1.135.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @class
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.134.0
48
+ * @version 1.135.0
49
49
  *
50
50
  * @constructor
51
51
  * @private
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @class
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.134.0
56
+ * @version 1.135.0
57
57
  *
58
58
  * @constructor
59
59
  * @private
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @class
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.134.0
41
+ * @version 1.135.0
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -64,7 +64,7 @@ sap.ui.define([
64
64
  * Constructor for a new sap.ui.rta.util.PluginManager
65
65
  * @extends sap.ui.base.ManagedObject
66
66
  * @author SAP SE
67
- * @version 1.134.0
67
+ * @version 1.135.0
68
68
  * @constructor
69
69
  * @private
70
70
  * @since 1.86
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * Constructor for a new sap.ui.rta.util.PopupManager
43
43
  * @extends sap.ui.base.ManagedObject
44
44
  * @author SAP SE
45
- * @version 1.134.0
45
+ * @version 1.135.0
46
46
  * @constructor
47
47
  * @private
48
48
  * @since 1.48
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @namespace sap.ui.rta.util.ReloadManager
31
31
  * @alias sap.ui.rta.util.ReloadManager
32
32
  * @since 1.104
33
- * @version 1.134.0
33
+ * @version 1.135.0
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -19,7 +19,7 @@ function(
19
19
  *
20
20
  * @extends sap.ui.core.EventBus
21
21
  * @author SAP SE
22
- * @version 1.134.0
22
+ * @version 1.135.0
23
23
  * @private
24
24
  * @since 1.56.0
25
25
  * @alias sap.ui.rta.util.ServiceEventBus
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.134.0
30
+ * @version 1.135.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.121
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
47
47
  * @author SAP SE
48
48
  * @since 1.84.0
49
- * @version 1.134.0
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.134.0
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.134.0
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
 
@@ -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.134.0
36
+ * @version 1.135.0
37
37
  * @constructor
38
38
  * @since 1.129
39
39
  * @private
@@ -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.134.0
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
- });