@openui5/sap.ui.rta 1.96.1 → 1.97.1

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 (175) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +2 -1
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +2 -2
  5. package/src/sap/ui/rta/Client.js +2 -2
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +4 -6
  7. package/src/sap/ui/rta/Utils.js +2 -2
  8. package/src/sap/ui/rta/api/startAdaptation.js +2 -3
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +3 -3
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +6 -4
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +5 -7
  12. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
  13. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -8
  14. package/src/sap/ui/rta/appVariant/Feature.js +1 -1
  15. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +3 -2
  16. package/src/sap/ui/rta/appVariant/Utils.js +1 -1
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
  21. package/src/sap/ui/rta/command/AddIFrame.js +2 -2
  22. package/src/sap/ui/rta/command/AddProperty.js +2 -2
  23. package/src/sap/ui/rta/command/AddXML.js +2 -2
  24. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  25. package/src/sap/ui/rta/command/AppDescriptorCommand.js +5 -4
  26. package/src/sap/ui/rta/command/BaseCommand.js +2 -2
  27. package/src/sap/ui/rta/command/BindProperty.js +2 -2
  28. package/src/sap/ui/rta/command/Combine.js +2 -2
  29. package/src/sap/ui/rta/command/CommandFactory.js +2 -2
  30. package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
  31. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  32. package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
  33. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
  34. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  35. package/src/sap/ui/rta/command/ControlVariantSwitch.js +2 -7
  36. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  37. package/src/sap/ui/rta/command/CustomAdd.js +2 -2
  38. package/src/sap/ui/rta/command/FlexCommand.js +2 -2
  39. package/src/sap/ui/rta/command/LREPSerializer.js +2 -2
  40. package/src/sap/ui/rta/command/LocalReset.js +2 -2
  41. package/src/sap/ui/rta/command/Move.js +2 -2
  42. package/src/sap/ui/rta/command/Property.js +2 -2
  43. package/src/sap/ui/rta/command/Remove.js +2 -2
  44. package/src/sap/ui/rta/command/Rename.js +2 -2
  45. package/src/sap/ui/rta/command/Reveal.js +2 -2
  46. package/src/sap/ui/rta/command/Settings.js +2 -2
  47. package/src/sap/ui/rta/command/Split.js +2 -2
  48. package/src/sap/ui/rta/command/Stack.js +2 -2
  49. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
  50. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
  51. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
  52. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
  53. package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
  54. package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
  55. package/src/sap/ui/rta/library.js +3 -3
  56. package/src/sap/ui/rta/messagebundle.properties +8 -6
  57. package/src/sap/ui/rta/messagebundle_ar.properties +11 -10
  58. package/src/sap/ui/rta/messagebundle_bg.properties +11 -10
  59. package/src/sap/ui/rta/messagebundle_ca.properties +10 -9
  60. package/src/sap/ui/rta/messagebundle_cs.properties +11 -10
  61. package/src/sap/ui/rta/messagebundle_cy.properties +11 -10
  62. package/src/sap/ui/rta/messagebundle_da.properties +11 -10
  63. package/src/sap/ui/rta/messagebundle_de.properties +10 -9
  64. package/src/sap/ui/rta/messagebundle_el.properties +11 -10
  65. package/src/sap/ui/rta/messagebundle_en.properties +11 -10
  66. package/src/sap/ui/rta/messagebundle_en_GB.properties +11 -10
  67. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -4
  68. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -14
  69. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +5 -4
  70. package/src/sap/ui/rta/messagebundle_es.properties +11 -10
  71. package/src/sap/ui/rta/messagebundle_es_MX.properties +11 -10
  72. package/src/sap/ui/rta/messagebundle_et.properties +11 -10
  73. package/src/sap/ui/rta/messagebundle_fi.properties +10 -9
  74. package/src/sap/ui/rta/messagebundle_fr.properties +11 -10
  75. package/src/sap/ui/rta/messagebundle_fr_CA.properties +11 -10
  76. package/src/sap/ui/rta/messagebundle_hi.properties +11 -10
  77. package/src/sap/ui/rta/messagebundle_hr.properties +11 -10
  78. package/src/sap/ui/rta/messagebundle_hu.properties +10 -9
  79. package/src/sap/ui/rta/messagebundle_id.properties +11 -10
  80. package/src/sap/ui/rta/messagebundle_it.properties +11 -10
  81. package/src/sap/ui/rta/messagebundle_iw.properties +11 -10
  82. package/src/sap/ui/rta/messagebundle_ja.properties +11 -10
  83. package/src/sap/ui/rta/messagebundle_kk.properties +11 -10
  84. package/src/sap/ui/rta/messagebundle_ko.properties +11 -10
  85. package/src/sap/ui/rta/messagebundle_lt.properties +11 -10
  86. package/src/sap/ui/rta/messagebundle_lv.properties +11 -10
  87. package/src/sap/ui/rta/messagebundle_ms.properties +11 -10
  88. package/src/sap/ui/rta/messagebundle_nl.properties +11 -10
  89. package/src/sap/ui/rta/messagebundle_no.properties +11 -10
  90. package/src/sap/ui/rta/messagebundle_pl.properties +11 -10
  91. package/src/sap/ui/rta/messagebundle_pt.properties +10 -9
  92. package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -9
  93. package/src/sap/ui/rta/messagebundle_ro.properties +11 -10
  94. package/src/sap/ui/rta/messagebundle_ru.properties +10 -9
  95. package/src/sap/ui/rta/messagebundle_sh.properties +11 -10
  96. package/src/sap/ui/rta/messagebundle_sk.properties +11 -10
  97. package/src/sap/ui/rta/messagebundle_sl.properties +11 -10
  98. package/src/sap/ui/rta/messagebundle_sv.properties +11 -10
  99. package/src/sap/ui/rta/messagebundle_th.properties +16 -15
  100. package/src/sap/ui/rta/messagebundle_tr.properties +11 -10
  101. package/src/sap/ui/rta/messagebundle_uk.properties +12 -11
  102. package/src/sap/ui/rta/messagebundle_vi.properties +11 -10
  103. package/src/sap/ui/rta/messagebundle_zh_CN.properties +11 -10
  104. package/src/sap/ui/rta/messagebundle_zh_TW.properties +11 -10
  105. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
  106. package/src/sap/ui/rta/plugin/BaseCreate.js +3 -3
  107. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  108. package/src/sap/ui/rta/plugin/CompVariant.js +1 -1
  109. package/src/sap/ui/rta/plugin/ControlVariant.js +2 -2
  110. package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
  111. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  112. package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
  113. package/src/sap/ui/rta/plugin/EasyAdd.js +2 -2
  114. package/src/sap/ui/rta/plugin/EasyRemove.js +2 -2
  115. package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
  116. package/src/sap/ui/rta/plugin/Plugin.js +2 -2
  117. package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
  118. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  119. package/src/sap/ui/rta/plugin/Rename.js +2 -2
  120. package/src/sap/ui/rta/plugin/RenameHandler.js +2 -15
  121. package/src/sap/ui/rta/plugin/Selection.js +2 -2
  122. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  123. package/src/sap/ui/rta/plugin/Split.js +3 -2
  124. package/src/sap/ui/rta/plugin/Stretch.js +2 -2
  125. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +2 -2
  126. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
  127. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
  128. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -2
  129. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
  130. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
  131. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
  132. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  133. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +2 -17
  134. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +2 -2
  135. package/src/sap/ui/rta/service/Action.js +2 -2
  136. package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
  137. package/src/sap/ui/rta/service/Outline.js +80 -30
  138. package/src/sap/ui/rta/service/Property.js +2 -4
  139. package/src/sap/ui/rta/service/Receiver.js +1 -1
  140. package/src/sap/ui/rta/service/Selection.js +3 -2
  141. package/src/sap/ui/rta/service/index.js +1 -1
  142. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +23 -30
  143. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +54 -35
  144. package/src/sap/ui/rta/themes/base/library.source.less +1 -1
  145. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
  146. package/src/sap/ui/rta/toolbar/Adaptation.js +2 -2
  147. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  148. package/src/sap/ui/rta/toolbar/Base.js +2 -2
  149. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
  150. package/src/sap/ui/rta/toolbar/Fiori.js +2 -2
  151. package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
  152. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +4 -4
  153. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  154. package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
  155. package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
  156. package/src/sap/ui/rta/util/Animation.js +1 -1
  157. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  158. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  159. package/src/sap/ui/rta/util/PopupManager.js +4 -12
  160. package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
  161. package/src/sap/ui/rta/util/StylesLoader.js +1 -1
  162. package/src/sap/ui/rta/util/UrlParser.js +1 -1
  163. package/src/sap/ui/rta/util/adaptationStarter.js +2 -2
  164. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +17 -79
  165. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +15 -37
  166. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +2 -3
  167. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +36 -31
  168. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +30 -0
  169. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +4 -3
  170. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +30 -0
  171. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +10 -4
  172. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  173. package/src/sap/ui/rta/util/showMessageBox.js +1 -1
  174. package/src/sap/ui/rta/util/validateFlexEnabled.js +5 -5
  175. package/src/sap/ui/rta/util/validateStableIds.js +1 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class The Settings allows trigger change of settings operations on the overlay
26
26
  * @extends sap.ui.rta.plugin.Plugin
27
27
  * @author SAP SE
28
- * @version 1.96.1
28
+ * @version 1.97.1
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.44
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @class
24
24
  * @extends sap.ui.rta.plugin.Plugin
25
25
  * @author SAP SE
26
- * @version 1.96.1
26
+ * @version 1.97.1
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.46
@@ -115,6 +115,7 @@ sap.ui.define([
115
115
 
116
116
  /**
117
117
  * @param {sap.ui.dt.ElementOverlay} oElementOverlay - element overlay to split
118
+ * @returns {Promise<sap.ui.rta.command.Split>} Resolves with a split command
118
119
  */
119
120
  Split.prototype.handleSplit = function (oElementOverlay) {
120
121
  var oSplitElement = oElementOverlay.getElement();
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.rta.plugin.Plugin
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.96.1
34
+ * @version 1.97.1
35
35
  *
36
36
  * @constructor
37
37
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * handled by the AdditionalElements Plugin (Reveal, Add Via Delegate, Add Custom)
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.1
35
+ * @version 1.97.1
36
36
  * @private
37
37
  * @since 1.94
38
38
  * @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @class Context - Dialog for available Fields in Runtime Authoring
33
33
  * @extends sap.ui.base.ManagedObject
34
34
  * @author SAP SE
35
- * @version 1.96.1
35
+ * @version 1.97.1
36
36
  * @constructor
37
37
  * @private
38
38
  * @since 1.44
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -75,7 +75,7 @@ sap.ui.define([
75
75
  * @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
76
76
  * @extends sap.ui.rta.plugin.Plugin
77
77
  * @author SAP SE
78
- * @version 1.96.1
78
+ * @version 1.97.1
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.44
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * Helper object containing methods for the AdditionalElements plugin
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.96.1
18
+ * @version 1.97.1
19
19
  * @private
20
20
  * @since 1.94
21
21
  * @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * Helper object to build the RTA commands resulting from the AdditionalElements Plugin
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.96.1
28
+ * @version 1.97.1
29
29
  * @private
30
30
  * @since 1.94
31
31
  * @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -110,7 +110,7 @@ sap.ui.define([
110
110
  * @class The AddIFrame allows trigger AddIFrame operations on the overlay.
111
111
  * @extends sap.ui.rta.plugin.BaseCreate
112
112
  * @author SAP SE
113
- * @version 1.96.1
113
+ * @version 1.97.1
114
114
  * @constructor
115
115
  * @private
116
116
  * @since 1.75
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
  * @class Context - Dialog for IFrame settings in Runtime Authoring
114
114
  * @extends sap.ui.base.ManagedObject
115
115
  * @author SAP SE
116
- * @version 1.96.1
116
+ * @version 1.97.1
117
117
  * @constructor
118
118
  * @private
119
119
  * @since 1.78
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -225,11 +225,6 @@ sap.ui.define([
225
225
  return this._mSettings;
226
226
  },
227
227
 
228
- /**
229
- * Verify that there is no error value state
230
- *
231
- * @private
232
- */
233
228
  _areAllValueStateNones: function() {
234
229
  var oData = this._oJSONModel.getData();
235
230
  return _aTextInputFields.concat(_aNumericInputFields).every(function (sFieldName) {
@@ -237,11 +232,6 @@ sap.ui.define([
237
232
  }, this);
238
233
  },
239
234
 
240
- /**
241
- * Verify that there is no empty input string
242
- *
243
- * @private
244
- */
245
235
  _areAllTextFieldsValid: function() {
246
236
  var oJSONModel = this._oJSONModel;
247
237
  return _aTextInputFields.reduce(function(bAllValid, sFieldName) {
@@ -257,11 +247,6 @@ sap.ui.define([
257
247
  }, true);
258
248
  },
259
249
 
260
- /**
261
- * Build the returned settings
262
- *
263
- * @private
264
- */
265
250
  _buildReturnedSettings: function() {
266
251
  var mSettings = {};
267
252
  var oData = this._oJSONModel.getData();
@@ -316,7 +301,7 @@ sap.ui.define([
316
301
  */
317
302
  _setFocusOnInvalidInput: function() {
318
303
  var oData = this._oJSONModel.getData();
319
- return _aNumericInputFields.some(function(sFieldName) {
304
+ _aNumericInputFields.some(function(sFieldName) {
320
305
  if (oData[sFieldName]["valueState"] === ValueState.Error) {
321
306
  var oElement = sap.ui.getCore().byId(oData[sFieldName]["id"]);
322
307
  oElement.focus();
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  *
15
15
  * @param {string} sURL URL to clean
16
16
  * @returns {string} Cleaned URL
17
- * @ui5-restricted sap.ui.rta
17
+ * @private
18
18
  */
19
19
  return function (sURL) {
20
20
  return sURL.replace(/\t|\r|\n/g, "");
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @author SAP SE
26
26
  * @experimental Since 1.58
27
27
  * @since 1.58
28
- * @version 1.96.1
28
+ * @version 1.97.1
29
29
  * @private
30
30
  * @ui5-restricted
31
31
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -30,7 +30,7 @@ function (
30
30
  * @author SAP SE
31
31
  * @experimental Since 1.58
32
32
  * @since 1.58
33
- * @version 1.96.1
33
+ * @version 1.97.1
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -42,10 +42,10 @@ sap.ui.define([
42
42
  * @author SAP SE
43
43
  * @experimental Since 1.56
44
44
  * @since 1.56
45
- * @version 1.96.1
45
+ * @version 1.97.1
46
46
  * @private
47
47
  * @ui5-restricted
48
- */
48
+ */
49
49
 
50
50
  /**
51
51
  * Object containing an outline of available nodes.
@@ -67,8 +67,9 @@ sap.ui.define([
67
67
  * @property {string} id - ID of the control
68
68
  * @property {string} [instanceName] - Text retrieved from node's design time metadata <code>getLabel()</code>
69
69
  * @property {string} [name] - Singular name from node's design time metadata
70
- * @property {string} technicalName - Class type for element nodes/aggregation name for aggregation nodes.
70
+ * @property {string} technicalName - Class type for element nodes/aggregation name for aggregation nodes
71
71
  * @property {boolean} editable - Indicates whether the node is editable
72
+ * @property {string} [templateReference] - Element ID referencing corresponding template
72
73
  * @property {string} [icon] - Icon path for the node
73
74
  * @property {string} type - Type of node
74
75
  * @property {boolean} [visible] - Visibility of node of type <code>element</code>
@@ -197,6 +198,55 @@ sap.ui.define([
197
198
  }
198
199
  };
199
200
 
201
+ function getTemplateData(oChildOverlay, mTemplateData, mInnerTemplateData) {
202
+ var sAggregationName = oChildOverlay.getAggregationName && oChildOverlay.getAggregationName();
203
+ if (sAggregationName) {
204
+ var sAggregationOverlayId = oChildOverlay.getParent().getId();
205
+ // Aggregation with root template
206
+ if (mInnerTemplateData[sAggregationName]) {
207
+ return Object.assign({
208
+ templateFor: sAggregationOverlayId
209
+ }, mInnerTemplateData[sAggregationName]);
210
+ }
211
+ return ((mTemplateData && mTemplateData.elements) || [])
212
+ .map(function(oElement) {
213
+ // Template
214
+ if (
215
+ oElement.type === "aggregationBindingTemplate"
216
+ || oElement.parentAggregationName === sAggregationName
217
+ ) {
218
+ return Object.assign({
219
+ templateFor: sAggregationOverlayId
220
+ }, oElement);
221
+ }
222
+ // Regular aggregation
223
+ return oElement.technicalName === sAggregationName && oElement;
224
+ })
225
+ .filter(Boolean)[0];
226
+ }
227
+ // Template root element
228
+ var aAggregationTemplateOverlays = (
229
+ oChildOverlay.getParentElementOverlay().getAggregationBindingTemplateOverlays
230
+ && oChildOverlay.getParentElementOverlay().getAggregationBindingTemplateOverlays()
231
+ .reduce(function (aAllRootElementOverlaysInsideTemplates, oAggregationOverlay) {
232
+ return aAllRootElementOverlaysInsideTemplates.concat(oAggregationOverlay.getChildren());
233
+ }, [])
234
+ ) || [];
235
+ if (aAggregationTemplateOverlays.includes(oChildOverlay)) {
236
+ return undefined;
237
+ }
238
+ if (!mTemplateData) {
239
+ return undefined;
240
+ }
241
+ // Element inside clone
242
+ var oParent = oChildOverlay.getParentElementOverlay();
243
+ if (oParent.getId() === mTemplateData.templateFor) {
244
+ return mTemplateData;
245
+ }
246
+ var iIndex = oChildOverlay.getParent().getChildren().indexOf(oChildOverlay);
247
+ return mTemplateData.elements[iIndex];
248
+ }
249
+
200
250
  /**
201
251
  * Returns outline model data including the children until max depth (<code>this.iDepth</code> or last child is reached).
202
252
  * During execution, the <code>fnFilter</code> is used to determine whether node data should be added.
@@ -205,17 +255,19 @@ sap.ui.define([
205
255
  * @param {sap.ui.dt.Overlay} oOverlay - Overlay for this node
206
256
  * @param {int} [iDepth] - Level of children to traverse
207
257
  * @param {sap.ui.dt.Overlay} [oParentOverlay] - Parent overlay (if present) for the passed overlay
258
+ * @param {object} [mTemplateData] - Propagates template data to the aggregation template clones
208
259
  * @returns {OutlineObject} Outline model data
209
260
  */
210
- oOutline._getChildrenNodes = function (oOverlay, iDepth, oParentOverlay) {
261
+ oOutline._getChildrenNodes = function (oOverlay, iDepth, oParentOverlay, mTemplateData) {
211
262
  var bValidDepth = DtUtil.isInteger(iDepth);
263
+ var mAggregationTemplates = {};
212
264
 
213
265
  if (oOverlay.getShouldBeDestroyed()) {
214
266
  return {};
215
267
  }
216
268
 
217
269
  //get necessary properties from overlay
218
- var oData = this._getNodeProperties(oOverlay, oParentOverlay) || {};
270
+ var oData = this._getNodeProperties(oOverlay, oParentOverlay, mTemplateData) || {};
219
271
 
220
272
  var aChildren = oOverlay.getChildren();
221
273
  //find aggregation binding template overlays
@@ -224,20 +276,12 @@ sap.ui.define([
224
276
  && oOverlay.getAggregationBindingTemplateOverlays()
225
277
  ) || [];
226
278
 
227
- //for binding template overlays, do not include children of the
228
- //corresponding aggregations on the outline (e.g. items)
229
279
  if (aAggregationTemplateOverlays.length > 0) {
230
- var aExcludedAggregations = [];
231
280
  aChildren = aAggregationTemplateOverlays.reduce(function(aCollectedChildren, oAggregationTemplateOverlay) {
232
- aExcludedAggregations.push(oAggregationTemplateOverlay.getAggregationName());
233
- return oAggregationTemplateOverlay.getChildren().concat(aCollectedChildren);
234
- }, aChildren)
235
- .filter(function(oChild) {
236
- if (oChild.getAggregationName && aExcludedAggregations.indexOf(oChild.getAggregationName()) > -1) {
237
- return false;
238
- }
239
- return true;
240
- });
281
+ var oTemplateOverlay = oAggregationTemplateOverlay.getChildren()[0];
282
+ mAggregationTemplates[oTemplateOverlay.getId()] = oAggregationTemplateOverlay.getAggregationName();
283
+ return [oTemplateOverlay].concat(aCollectedChildren);
284
+ }, aChildren);
241
285
  }
242
286
 
243
287
  //check if the tree should be traversed deeper and children overlays are present
@@ -248,9 +292,16 @@ sap.ui.define([
248
292
  //decrement depth for children nodes
249
293
  iDepth = bValidDepth ? iDepth - 1 : iDepth;
250
294
 
295
+ var mInnerTemplateData = {};
251
296
  oData.elements = aChildren
252
297
  .map(function (oChildOverlay) {
253
- return this._getChildrenNodes(oChildOverlay, iDepth, oChildOverlay.getParent());
298
+ var mNextTemplateData = getTemplateData(oChildOverlay, mTemplateData, mInnerTemplateData);
299
+ var oNextData = this._getChildrenNodes(oChildOverlay, iDepth, oChildOverlay.getParent(), mNextTemplateData);
300
+ if (oNextData.type === "aggregationBindingTemplate") {
301
+ var sAggregationName = mAggregationTemplates[oChildOverlay.getId()];
302
+ mInnerTemplateData[sAggregationName] = merge({}, oNextData);
303
+ }
304
+ return oNextData;
254
305
  }, this)
255
306
  .filter(function (oChildNode) {
256
307
  return !isEmptyObject(oChildNode);
@@ -270,10 +321,6 @@ sap.ui.define([
270
321
  && oParentElementOverlay.getAggregationOverlay(sParentAggregationName, "AggregationBindingTemplateOverlays") === oParentAggregationOverlay;
271
322
  }
272
323
 
273
- function getNumberOfTemplateChildrenOverlays(oParentAggregationOverlay, sParentAggregationName) {
274
- return oParentAggregationOverlay.getParent().getAggregationOverlay(sParentAggregationName).getChildren().length;
275
- }
276
-
277
324
  function getElementOverlayData(oOverlay, oElement, oDtMetadata) {
278
325
  var oData = {
279
326
  editable: oOverlay.getEditable(),
@@ -284,20 +331,18 @@ sap.ui.define([
284
331
  }
285
332
  var oParentAggregationOverlay = oOverlay.getParent() && oOverlay.getParentAggregationOverlay();
286
333
  var sParentAggregationName = (oParentAggregationOverlay && oParentAggregationOverlay.getAggregationName()) || "";
287
- var sDtNameSuffix = "";
288
334
  // Aggregation Binding Template
289
335
  if (isAggregationBindingTemplate(oOverlay, oParentAggregationOverlay, sParentAggregationName)) {
290
- var iNoOfChildren = getNumberOfTemplateChildrenOverlays(oParentAggregationOverlay, sParentAggregationName);
291
- sDtNameSuffix = " [" + iNoOfChildren + "]";
292
336
  oData.type = "aggregationBindingTemplate";
293
337
  oData.icon = "sap-icon://attachment-text-file";
338
+ oData.parentAggregationName = sParentAggregationName;
294
339
  } else {
295
340
  oData.type = "element";
296
341
  }
297
342
 
298
343
  var oDtName = oDtMetadata.getName(oElement);
299
344
  if (oDtName && oDtName.singular) {
300
- oData.name = (oDtName && oDtName.singular) + sDtNameSuffix;
345
+ oData.name = oDtName && oDtName.singular;
301
346
  }
302
347
  return oData;
303
348
  }
@@ -322,7 +367,7 @@ sap.ui.define([
322
367
  return oData;
323
368
  }
324
369
 
325
- function getDefaultData(oElement, oDtMetadata) {
370
+ function getDefaultData(oElement, oDtMetadata, mTemplateData) {
326
371
  var oData = {
327
372
  id: oElement.getId(),
328
373
  technicalName: oElement.getMetadata().getName(),
@@ -330,6 +375,10 @@ sap.ui.define([
330
375
  type: null
331
376
  };
332
377
 
378
+ if (mTemplateData) {
379
+ oData.templateReference = mTemplateData.id;
380
+ }
381
+
333
382
  var sDefaultIcon = getDefaultIcon(oDtMetadata);
334
383
  if (sDefaultIcon) {
335
384
  oData.icon = sDefaultIcon;
@@ -354,12 +403,13 @@ sap.ui.define([
354
403
  *
355
404
  * @param {sap.ui.dt.Overlay} oOverlay - Overlay of the node for which properties are calculated
356
405
  * @param {sap.ui.dt.Overlay} [oParentOverlay] - Parent overlay (if present) for the passed overlay
406
+ * @param {object} [mTemplateData] - Template data
357
407
  * @returns {object} Data containing applicable properties
358
408
  */
359
- oOutline._getNodeProperties = function (oOverlay, oParentOverlay) {
409
+ oOutline._getNodeProperties = function (oOverlay, oParentOverlay, mTemplateData) {
360
410
  var oElement = oOverlay.getElement();
361
411
  var oDtMetadata = oOverlay.getDesignTimeMetadata();
362
- var oData = getDefaultData(oElement, oDtMetadata);
412
+ var oData = getDefaultData(oElement, oDtMetadata, mTemplateData);
363
413
 
364
414
  if (oOverlay instanceof ElementOverlay) {
365
415
  return Object.assign(oData, getElementOverlayData(oOverlay, oElement, oDtMetadata));
@@ -1,11 +1,9 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- /* global Map */
8
-
9
7
  sap.ui.define([
10
8
  "sap/ui/dt/OverlayRegistry",
11
9
  "sap/ui/dt/Util",
@@ -30,7 +28,7 @@ sap.ui.define([
30
28
  * @author SAP SE
31
29
  * @experimental Since 1.58
32
30
  * @since 1.58
33
- * @version 1.96.1
31
+ * @version 1.97.1
34
32
  * @private
35
33
  * @ui5-restricted
36
34
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -15,10 +15,11 @@ sap.ui.define(function () {
15
15
  * @author SAP SE
16
16
  * @experimental Since 1.58
17
17
  * @since 1.58
18
- * @version 1.96.1
18
+ * @version 1.97.1
19
19
  * @private
20
20
  * @ui5-restricted
21
21
  */
22
+
22
23
  return function (oRta, fnPublish) {
23
24
  var oSelectionManager = oRta._oDesignTime.getSelectionManager();
24
25
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -8,6 +8,7 @@
8
8
  @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG: white;
9
9
  @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidHover: #0f648b;
10
10
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor: rgba(219,149,51,0.75);
11
+ @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent: rgba(219,149,51,0);
11
12
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorFocus: #a67026;
12
13
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid: rgb(219, 149, 51);
13
14
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolidHover: #b67a26;
@@ -40,24 +41,29 @@
40
41
  }
41
42
 
42
43
  .sapUiRtaChangeIndicatorDependent{
43
- border: 1px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
44
- background: radial-gradient(circle, transparent 41%, @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid 72%,@_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid 100%);
45
-
46
- &:focus{
47
- border: 1px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorFocus;
48
- outline: none;
49
- }
50
-
51
- &:hover{
52
- background: radial-gradient(circle, transparent 41%, @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolidHover 62%, @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid 100%);
53
- }
54
- }
55
-
56
- .sapUiRtaChangeIndicatorChangeSolid{
57
- background: radial-gradient(circle, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG 41%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid 72%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid 100%);
44
+ height: 100%;
45
+ width: 100%;
46
+ position: absolute;
47
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
48
+ outline-offset: -3px;
49
+ box-shadow: @_sap_ui_rta_Overlay_BoxShadow;
50
+ animation: fadeOut linear 1.5s;
51
+ animation-fill-mode: forwards;
58
52
 
59
- &:hover{
60
- background: radial-gradient(circle, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG 41%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorHover 62%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidHover 100%);
53
+ @keyframes fadeOut {
54
+ 0% {
55
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
56
+ outline-offset: -3px;
57
+ }
58
+ 66%{
59
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
60
+ outline-offset: -3px;
61
+ }
62
+ 100% {
63
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent;
64
+ outline-offset: -3px;
65
+ box-shadow: none;
66
+ }
61
67
  }
62
68
  }
63
69
 
@@ -77,19 +83,6 @@
77
83
  cursor: pointer;
78
84
  }
79
85
 
80
- .sapUiRtaChangeIndicatorIcon{
81
- top: 0;
82
- left: 0;
83
- position: absolute;
84
- width: 100%;
85
- height: 100%;
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- cursor: pointer;
90
- color: @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid;
91
- }
92
-
93
86
  .sapUiRtaChangeIndicatorHovered {
94
87
  -webkit-transition: background 0.1s cubic-bezier(1,.01,1,0);
95
88
  -moz-transition: background 0.1s cubic-bezier(1,.01,1,0);