@openui5/sap.ui.rta 1.106.0 → 1.107.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 (148) hide show
  1. package/package.json +6 -6
  2. package/src/sap/ui/rta/.library +1 -1
  3. package/src/sap/ui/rta/Client.js +1 -1
  4. package/src/sap/ui/rta/RuntimeAuthoring.js +641 -654
  5. package/src/sap/ui/rta/Utils.js +1 -1
  6. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -0
  8. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  9. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  10. package/src/sap/ui/rta/command/AddXML.js +1 -1
  11. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  12. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  13. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  14. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  15. package/src/sap/ui/rta/command/Combine.js +1 -1
  16. package/src/sap/ui/rta/command/CommandFactory.js +6 -5
  17. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  18. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  19. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  23. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  24. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  25. package/src/sap/ui/rta/command/FlexCommand.js +2 -2
  26. package/src/sap/ui/rta/command/LREPSerializer.js +3 -2
  27. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  28. package/src/sap/ui/rta/command/Move.js +1 -1
  29. package/src/sap/ui/rta/command/Property.js +1 -1
  30. package/src/sap/ui/rta/command/Remove.js +1 -1
  31. package/src/sap/ui/rta/command/Rename.js +1 -1
  32. package/src/sap/ui/rta/command/Resize.js +1 -1
  33. package/src/sap/ui/rta/command/Reveal.js +1 -1
  34. package/src/sap/ui/rta/command/Settings.js +1 -1
  35. package/src/sap/ui/rta/command/Split.js +1 -1
  36. package/src/sap/ui/rta/command/Stack.js +12 -3
  37. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  38. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  39. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  40. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  41. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  42. package/src/sap/ui/rta/enablement/elementActionTest.js +4 -4
  43. package/src/sap/ui/rta/library.js +2 -2
  44. package/src/sap/ui/rta/messagebundle_ar.properties +4 -1
  45. package/src/sap/ui/rta/messagebundle_bg.properties +4 -1
  46. package/src/sap/ui/rta/messagebundle_ca.properties +4 -1
  47. package/src/sap/ui/rta/messagebundle_cs.properties +4 -1
  48. package/src/sap/ui/rta/messagebundle_cy.properties +4 -1
  49. package/src/sap/ui/rta/messagebundle_da.properties +4 -1
  50. package/src/sap/ui/rta/messagebundle_de.properties +16 -13
  51. package/src/sap/ui/rta/messagebundle_el.properties +4 -1
  52. package/src/sap/ui/rta/messagebundle_en.properties +4 -1
  53. package/src/sap/ui/rta/messagebundle_en_GB.properties +4 -1
  54. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +3 -0
  55. package/src/sap/ui/rta/messagebundle_es.properties +4 -1
  56. package/src/sap/ui/rta/messagebundle_es_MX.properties +4 -1
  57. package/src/sap/ui/rta/messagebundle_et.properties +4 -1
  58. package/src/sap/ui/rta/messagebundle_fi.properties +4 -1
  59. package/src/sap/ui/rta/messagebundle_fr.properties +4 -1
  60. package/src/sap/ui/rta/messagebundle_fr_CA.properties +4 -1
  61. package/src/sap/ui/rta/messagebundle_hi.properties +4 -1
  62. package/src/sap/ui/rta/messagebundle_hr.properties +4 -1
  63. package/src/sap/ui/rta/messagebundle_hu.properties +4 -1
  64. package/src/sap/ui/rta/messagebundle_id.properties +4 -1
  65. package/src/sap/ui/rta/messagebundle_it.properties +4 -1
  66. package/src/sap/ui/rta/messagebundle_iw.properties +4 -1
  67. package/src/sap/ui/rta/messagebundle_ja.properties +4 -1
  68. package/src/sap/ui/rta/messagebundle_kk.properties +4 -1
  69. package/src/sap/ui/rta/messagebundle_ko.properties +4 -1
  70. package/src/sap/ui/rta/messagebundle_lt.properties +4 -1
  71. package/src/sap/ui/rta/messagebundle_lv.properties +4 -1
  72. package/src/sap/ui/rta/messagebundle_ms.properties +4 -1
  73. package/src/sap/ui/rta/messagebundle_nl.properties +4 -1
  74. package/src/sap/ui/rta/messagebundle_no.properties +4 -1
  75. package/src/sap/ui/rta/messagebundle_pl.properties +4 -1
  76. package/src/sap/ui/rta/messagebundle_pt.properties +4 -1
  77. package/src/sap/ui/rta/messagebundle_pt_PT.properties +4 -1
  78. package/src/sap/ui/rta/messagebundle_ro.properties +4 -1
  79. package/src/sap/ui/rta/messagebundle_ru.properties +4 -1
  80. package/src/sap/ui/rta/messagebundle_sh.properties +4 -1
  81. package/src/sap/ui/rta/messagebundle_sk.properties +4 -1
  82. package/src/sap/ui/rta/messagebundle_sl.properties +4 -1
  83. package/src/sap/ui/rta/messagebundle_sv.properties +4 -1
  84. package/src/sap/ui/rta/messagebundle_th.properties +4 -1
  85. package/src/sap/ui/rta/messagebundle_tr.properties +4 -1
  86. package/src/sap/ui/rta/messagebundle_uk.properties +4 -1
  87. package/src/sap/ui/rta/messagebundle_vi.properties +4 -1
  88. package/src/sap/ui/rta/messagebundle_zh_CN.properties +4 -1
  89. package/src/sap/ui/rta/messagebundle_zh_TW.properties +4 -1
  90. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +6 -4
  91. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  92. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  93. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  94. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  95. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  96. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  97. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  98. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  99. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  100. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  101. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  102. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  103. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  104. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  105. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  106. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  107. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  108. package/src/sap/ui/rta/plugin/Split.js +1 -1
  109. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  110. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  111. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  112. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  113. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  114. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  115. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  116. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  117. package/src/sap/ui/rta/service/Action.js +1 -1
  118. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  119. package/src/sap/ui/rta/service/Outline.js +6 -4
  120. package/src/sap/ui/rta/service/Property.js +1 -1
  121. package/src/sap/ui/rta/service/Selection.js +1 -1
  122. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  123. package/src/sap/ui/rta/toolbar/Adaptation.js +2 -1
  124. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +3 -1
  125. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  126. package/src/sap/ui/rta/toolbar/BaseRenderer.js +6 -4
  127. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  128. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  129. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  130. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  131. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  132. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +27 -34
  133. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptationDialog.fragment.xml +1 -1
  134. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  135. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  136. package/src/sap/ui/rta/util/BindingsExtractor.js +12 -3
  137. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  138. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  139. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  140. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  141. package/src/sap/ui/rta/util/StylesLoader.js +3 -3
  142. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +9 -9
  143. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +24 -17
  144. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +6 -3
  145. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
  146. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +13 -12
  147. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
  148. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
@@ -206,6 +206,7 @@ TXT_CHANGEVISUALIZATION_CHANGE_CREATECONTAINER=\u5DF2\u65B0\u589E\u7FA4\u7D44 "{
206
206
  TXT_CHANGEVISUALIZATION_CHANGE_ADDDELEGATEPROPERTY=\u5DF2\u65B0\u589E\u6B04\u4F4D "{0}"
207
207
  TXT_CHANGEVISUALIZATION_CHANGE_ADDIFRAME=\u5DF2\u65B0\u589E iFrame
208
208
  TXT_CHANGEVISUALIZATION_CHANGE_SETTINGS=\u5DF2\u66F4\u6539\u5143\u7D20 "{0}" \u7684\u8A2D\u5B9A
209
+ TXT_CHANGEVISUALIZATION_CHANGE_OTHER=\u5DF2\u66F4\u6539\u5143\u7D20
209
210
  TIT_CHANGEVISUALIZATION_TYPE=\u985E\u578B
210
211
  TIT_CHANGEVISUALIZATION_CHANGES=\u66F4\u6539
211
212
  TIT_CHANGEVISUALIZATION_DATE=\u65E5\u671F
@@ -226,6 +227,8 @@ TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=\u5408\u4F75\u548C\u5206\u5272
226
227
  BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=\u5DF2\u5408\u4F75\u4E26\u5206\u5272\u5143\u7D20
227
228
  TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=\u79FB\u9664
228
229
  BTN_CHANGEVISUALIZATION_OVERVIEW_REMOVE=\u5DF2\u79FB\u9664\u7684\u5143\u7D20
230
+ TXT_CHANGEVISUALIZATION_OVERVIEW_OTHER=\u5176\u4ED6
231
+ BTN_CHANGEVISUALIZATION_OVERVIEW_OTHER=\u5176\u4ED6\u66F4\u6539\u5167\u5BB9
229
232
  TXT_CHANGEVISUALIZATION_CREATED_IN_SESSION_DATE=\u73FE\u5728
230
233
  MSG_LOCAL_RESET_VARIANT_SAVE=\u5BB9\u5668\u5DF2\u91CD\u8A2D\u4E14\u6AA2\u8996\u5DF2\u81EA\u52D5\u5132\u5B58\u3002
231
234
  BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_MOVE=\u986F\u793A\u4F86\u6E90
@@ -236,7 +239,7 @@ MSG_ADAPTATION_STARTER_MIXED_CHANGES_WARNING=\u6B64\u61C9\u7528\u7A0B\u5F0F\u768
236
239
  TIT_ADAPTATION_STARTER_MIXED_CHANGES_TITLE=\u8B66\u544A - \u56B4\u91CD\u885D\u7A81\u7684\u98A8\u96AA
237
240
  MSG_ADAPTATION_STARTER_NO_CHANGES_IN_P_WARNING=\u60A8\u6B63\u5728\u6B63\u5F0F\u904B\u4F5C\u7CFB\u7D71\u4E2D\u555F\u52D5\u4F7F\u7528\u8005\u4ECB\u9762\u8ABF\u6574\u3002\u82E5\u60A8\u5177\u5099\u958B\u767C\u6216\u6E2C\u8A66\u7CFB\u7D71\uFF0C\u5247\u5EFA\u8B70\u60A8\u5728\u9019\u4E9B\u7CFB\u7D71\u4E2D\u9032\u884C\u66F4\u6539\uFF0C\u4E26\u4E14\u4F7F\u7528\u50B3\u8F38\u6A5F\u5236\u767C\u4F48\u9019\u4E9B\u66F4\u6539\u5167\u5BB9\u3002
238
241
  TIT_ADAPTATION_STARTER_NO_CHANGES_IN_P_TITLE=\u8B66\u544A - \u60A8\u5373\u5C07\u5728\u6B63\u5F0F\u904B\u4F5C\u7CFB\u7D71\u4E2D\u9032\u884C\u66F4\u6539
239
- MSG_GENERIC_ERROR_MESSAGE=\u767C\u751F\u932F\u8AA4\uFF0C\u8ACB\u4F7F\u7528\u5143\u4EF6 CA-UI5-FL-RTA \u958B\u555F\u8A18\u9304\u55AE\u4EE5\u806F\u7D61 SAP \u652F\u63F4\u3002\n\u6280\u8853\u8CC7\u8A0A\uFF1A{0}
242
+ MSG_GENERIC_ERROR_MESSAGE=\u767C\u751F\u932F\u8AA4\uFF0C\u8ACB\u4F7F\u7528\u5143\u4EF6 CA-UI5-FL-RTA \u958B\u555F\u8A18\u9304\u55AE\u4EE5\u806F\u7D61 SAP \u652F\u63F4\u3002\n\u8ACB\u5728\u60A8\u7684\u8A18\u9304\u55AE\u4E2D\u5305\u542B\u4E0B\u5217\u6280\u8853\u8CC7\u8A0A\uFF1A\n {0}
240
243
 
241
244
  MSG_ADAPTATION_COULD_NOT_START=\u555F\u52D5\u4F7F\u7528\u8005\u4ECB\u9762\u8ABF\u6574\u6642\u767C\u751F\u932F\u8AA4
242
245
 
@@ -10,14 +10,16 @@ sap.ui.define([
10
10
  "sap/ui/fl/Utils",
11
11
  "sap/ui/fl/apply/_internal/flexState/ManifestUtils",
12
12
  "sap/ui/fl/write/api/ExtensionPointRegistryAPI",
13
- "sap/base/util/values"
13
+ "sap/base/util/values",
14
+ "sap/ui/core/Configuration"
14
15
  ], function(
15
16
  Plugin,
16
17
  DtUtil,
17
18
  FlUtils,
18
19
  ManifestUtils,
19
20
  ExtensionPointRegistryAPI,
20
- values
21
+ values,
22
+ Configuration
21
23
  ) {
22
24
  "use strict";
23
25
 
@@ -45,7 +47,7 @@ sap.ui.define([
45
47
  * @class
46
48
  * @extends sap.ui.rta.plugin.Plugin
47
49
  * @author SAP SE
48
- * @version 1.106.0
50
+ * @version 1.107.0
49
51
  * @constructor
50
52
  * @private
51
53
  * @since 1.78
@@ -81,7 +83,7 @@ sap.ui.define([
81
83
  }
82
84
 
83
85
  function isDesignMode() {
84
- return sap.ui.getCore().getConfiguration().getDesignMode();
86
+ return Configuration.getDesignMode();
85
87
  }
86
88
 
87
89
  AddXMLAtExtensionPoint.prototype.bAppDescriptorCommandAlreadyAvailable = false;
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @class The BaseCreate allows trigger BaseCreate operations on the overlay.
24
24
  * @extends sap.ui.rta.plugin.Plugin
25
25
  * @author SAP SE
26
- * @version 1.106.0
26
+ * @version 1.107.0
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.75
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class
26
26
  * @extends sap.ui.rta.plugin.Plugin
27
27
  * @author SAP SE
28
- * @version 1.106.0
28
+ * @version 1.107.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.46
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @class The ControlVariant allows propagation of variantManagement key
44
44
  * @extends sap.ui.rta.plugin.Plugin
45
45
  * @author SAP SE
46
- * @version 1.106.0
46
+ * @version 1.107.0
47
47
  * @constructor
48
48
  * @private
49
49
  * @since 1.50
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class The CreateContainer allows trigger CreateContainer operations on the overlay
26
26
  * @extends sap.ui.rta.plugin.BaseCreate
27
27
  * @author SAP SE
28
- * @version 1.106.0
28
+ * @version 1.107.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.34
@@ -31,7 +31,7 @@ function(
31
31
  * @extends sap.ui.dt.plugin.CutPaste
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.106.0
34
+ * @version 1.107.0
35
35
  *
36
36
  * @constructor
37
37
  * @private
@@ -33,7 +33,7 @@ function(
33
33
  * @extends sap.ui.dt.plugin.ControlDragDrop
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.106.0
36
+ * @version 1.107.0
37
37
  *
38
38
  * @constructor
39
39
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @class The EasyAdd Plugin adds an Icon to an Overlay, which allows to trigger add operations directly
26
26
  * @extends sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
27
27
  * @author SAP SE
28
- * @version 1.106.0
28
+ * @version 1.107.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.48
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @class The EasyRemove Plugin adds an Icon to an Overlay, which allows to trigger remove operations directly
24
24
  * @extends sap.ui.rta.plugin.Remove
25
25
  * @author SAP SE
26
- * @version 1.106.0
26
+ * @version 1.107.0
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.48
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @class
36
36
  * @extends sap.ui.rta.plugin.Plugin
37
37
  * @author SAP SE
38
- * @version 1.106.0
38
+ * @version 1.107.0
39
39
  * @constructor
40
40
  * @private
41
41
  * @since 1.90
@@ -69,7 +69,7 @@ function(
69
69
  * @extends sap.ui.dt.Plugin
70
70
  *
71
71
  * @author SAP SE
72
- * @version 1.106.0
72
+ * @version 1.107.0
73
73
  *
74
74
  * @constructor
75
75
  * @private
@@ -35,7 +35,7 @@ function(
35
35
  * The RTAElementMover is responsible for the RTA specific adaptation of element movements.
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.106.0
38
+ * @version 1.107.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @class The Remove allows trigger remove operations on the overlay
30
30
  * @extends sap.ui.rta.plugin.Plugin
31
31
  * @author SAP SE
32
- * @version 1.106.0
32
+ * @version 1.107.0
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.34
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.rta.plugin.Plugin
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.106.0
31
+ * @version 1.107.0
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * Provides Rename handling functionality
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.106.0
60
+ * @version 1.107.0
61
61
  *
62
62
  * @constructor
63
63
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class
28
28
  * @extends sap.ui.rta.plugin.Plugin
29
29
  * @author SAP SE
30
- * @version 1.106.0
30
+ * @version 1.107.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.101
@@ -30,7 +30,7 @@ function (
30
30
  * @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
31
31
  * @extends sap.ui.rta.plugin.Plugin
32
32
  * @author SAP SE
33
- * @version 1.106.0
33
+ * @version 1.107.0
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.34
@@ -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.106.0
28
+ * @version 1.107.0
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.44
@@ -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.106.0
26
+ * @version 1.107.0
27
27
  * @constructor
28
28
  * @private
29
29
  * @since 1.46
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.rta.plugin.Plugin
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.106.0
36
+ * @version 1.107.0
37
37
  *
38
38
  * @constructor
39
39
  * @private
@@ -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.106.0
35
+ * @version 1.107.0
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.
@@ -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.106.0
35
+ * @version 1.107.0
36
36
  * @constructor
37
37
  * @private
38
38
  * @since 1.44
@@ -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.106.0
78
+ * @version 1.107.0
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.44
@@ -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.106.0
18
+ * @version 1.107.0
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.
@@ -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.106.0
28
+ * @version 1.107.0
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.
@@ -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.106.0
113
+ * @version 1.107.0
114
114
  * @constructor
115
115
  * @private
116
116
  * @since 1.75
@@ -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.106.0
116
+ * @version 1.107.0
117
117
  * @constructor
118
118
  * @private
119
119
  * @since 1.78
@@ -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.106.0
28
+ * @version 1.107.0
29
29
  * @private
30
30
  * @ui5-restricted
31
31
  *
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @author SAP SE
32
32
  * @experimental Since 1.58
33
33
  * @since 1.58
34
- * @version 1.106.0
34
+ * @version 1.107.0
35
35
  * @private
36
36
  * @ui5-restricted
37
37
  */
@@ -16,7 +16,8 @@ sap.ui.define([
16
16
  "sap/base/util/merge",
17
17
  "sap/base/util/restricted/_omit",
18
18
  "sap/ui/core/mvc/View",
19
- "sap/base/Log"
19
+ "sap/base/Log",
20
+ "sap/ui/core/Configuration"
20
21
  ], function(
21
22
  OverlayRegistry,
22
23
  ElementOverlay,
@@ -29,7 +30,8 @@ sap.ui.define([
29
30
  merge,
30
31
  _omit,
31
32
  View,
32
- Log
33
+ Log,
34
+ Configuration
33
35
  ) {
34
36
  "use strict";
35
37
 
@@ -42,7 +44,7 @@ sap.ui.define([
42
44
  * @author SAP SE
43
45
  * @experimental Since 1.56
44
46
  * @since 1.56
45
- * @version 1.106.0
47
+ * @version 1.107.0
46
48
  * @private
47
49
  * @ui5-restricted
48
50
  */
@@ -182,7 +184,7 @@ sap.ui.define([
182
184
  };
183
185
 
184
186
  oOutline._enrichExtensionPointData = function (oData, oOverlay) {
185
- var bIsDesignMode = sap.ui.getCore().getConfiguration().getDesignMode();
187
+ var bIsDesignMode = Configuration.getDesignMode();
186
188
  if (!bIsDesignMode) {
187
189
  return undefined;
188
190
  }
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @author SAP SE
29
29
  * @experimental Since 1.58
30
30
  * @since 1.58
31
- * @version 1.106.0
31
+ * @version 1.107.0
32
32
  * @private
33
33
  * @ui5-restricted
34
34
  */
@@ -15,7 +15,7 @@ sap.ui.define(function () {
15
15
  * @author SAP SE
16
16
  * @experimental Since 1.58
17
17
  * @since 1.58
18
- * @version 1.106.0
18
+ * @version 1.107.0
19
19
  * @private
20
20
  * @ui5-restricted
21
21
  */
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @author SAP SE
28
28
  * @experimental Since 1.106
29
29
  * @since 1.106
30
- * @version 1.106.0
30
+ * @version 1.107.0
31
31
  * @private
32
32
  * @ui5-restricted
33
33
  */
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.rta.toolbar.Base
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.106.0
38
+ * @version 1.107.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -63,6 +63,7 @@ sap.ui.define([
63
63
  activate: {},
64
64
  discardDraft: {},
65
65
  switchVersion: {},
66
+ saveAsContextBasedAdaptation: {},
66
67
  openChangeCategorySelectionPopover: {}
67
68
  }
68
69
  }
@@ -13,8 +13,10 @@ sap.ui.define([
13
13
 
14
14
  var AdaptationRenderer = BaseRenderer.extend("sap.ui.rta.toolbar.AdaptationRenderer");
15
15
 
16
+ AdaptationRenderer.apiVersion = 1; // @todo-semantic-rendering out of order .class() call before openStart
17
+
16
18
  AdaptationRenderer.render = function (oRM, oControl) {
17
- oRM.addClass("sapUiRtaToolbarAdaptation");
19
+ oRM.class("sapUiRtaToolbarAdaptation");
18
20
 
19
21
  BaseRenderer.render(oRM, oControl);
20
22
  };
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.m.HBox
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.106.0
30
+ * @version 1.107.0
31
31
  *
32
32
  * @constructor
33
33
  * @private
@@ -16,16 +16,18 @@ function(
16
16
 
17
17
  var BaseRenderer = Renderer.extend.call(HBoxRenderer, "sap.ui.rta.toolbar.BaseRenderer");
18
18
 
19
+ BaseRenderer.apiVersion = 1; // @todo-semantic-rendering out of order .class() and .style() calls before openStart
20
+
19
21
  BaseRenderer.render = function (oRM, oControl) {
20
- oRM.addClass("sapUiRtaToolbar");
21
- oRM.addClass("color_" + oControl.getColor());
22
+ oRM.class("sapUiRtaToolbar");
23
+ oRM.class("color_" + oControl.getColor());
22
24
 
23
25
  // setting type if exists
24
- oControl.type && oRM.addClass("type_" + oControl.type);
26
+ oControl.type && oRM.class("type_" + oControl.type);
25
27
 
26
28
  // setting z-index if exists
27
29
  var iZIndex = oControl.getZIndex();
28
- iZIndex && oRM.addStyle("z-index", iZIndex);
30
+ iZIndex && oRM.style("z-index", iZIndex);
29
31
 
30
32
  HBoxRenderer.render(oRM, oControl);
31
33
  };
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.106.0
35
+ * @version 1.107.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.106.0
23
+ * @version 1.107.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.106.0
26
+ * @version 1.107.0
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Base
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.106.0
25
+ * @version 1.107.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.106.0
23
+ * @version 1.107.0
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @class
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.106.0
31
+ * @version 1.107.0
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -55,17 +55,9 @@ sap.ui.define([
55
55
  name: "sap.ui.rta.toolbar.contextBased.SaveAsContextBasedAdaptationDialog",
56
56
  id: this.getToolbar().getId() + "_fragment--sapUiRta_addAdaptationDialog",
57
57
  controller: {
58
- onAdaptationTitleChange: function (oEvent) {
59
- this.sAdaptationTitle = oEvent.getParameter("value");
60
- _validateAddAdaptationInput.call(this);
61
- }.bind(this),
62
- // TODO: implementation of save as context based adaptation
63
- onSaveAsContextBasedAdaptation: function () {
64
- },
65
- onCancelContextBasedAdaptationDialog: function () {
66
- _clearContexts.call(this);
67
- this._oAddAdaptationDialog.close();
68
- }.bind(this)
58
+ onAdaptationTitleChange: _onAdaptationTitleChange.bind(this),
59
+ onSaveAsContextBasedAdaptation: _onSaveAsContextBasedAdaptation.bind(this),
60
+ onCancelContextBasedAdaptationDialog: _onCancelContextBasedAdaptationDialog.bind(this)
69
61
  }
70
62
  }).then(function (oDialog) {
71
63
  this._oAddAdaptationDialog = oDialog;
@@ -81,41 +73,42 @@ sap.ui.define([
81
73
  }.bind(this));
82
74
  };
83
75
 
76
+ function _onAdaptationTitleChange(oEvent) {
77
+ this.sAdaptationTitle = oEvent.getParameter("value");
78
+ _enableSaveAsButton.call(this);
79
+ }
80
+
81
+ function _onCancelContextBasedAdaptationDialog() {
82
+ _clearContexts.call(this);
83
+ this._oAddAdaptationDialog.close();
84
+ }
85
+
86
+ function _onSaveAsContextBasedAdaptation() {
87
+ var oContextBasedAdaptation = {};
88
+ oContextBasedAdaptation.title = getAdaptationTitle.call(this);
89
+ oContextBasedAdaptation.contexts = this._oContextComponentInstance.getSelectedContexts();
90
+ this.getToolbar().fireEvent("saveAsContextBasedAdaptation", oContextBasedAdaptation);
91
+ }
92
+
84
93
  function createContextSharingComponent(sLayer) {
85
- var mPropertyBag = { layer: sLayer || Layer.CUSTOMER, isAppContext: true };
94
+ var mPropertyBag = { layer: sLayer || Layer.CUSTOMER };
86
95
  return ContextSharingAPI.createComponent(mPropertyBag).then(function (oContextSharingComponent) {
87
96
  this._oContextComponent = oContextSharingComponent;
88
97
  this._oContextComponentInstance = oContextSharingComponent.getComponentInstance();
89
- this._oContextComponentInstance.setSelectedContexts({ role: [] });
98
+ this._oContextComponentInstance.resetSelectedContexts();
90
99
  this._oAddAdaptationDialog.addContent(this._oContextComponent);
91
100
  var oSelectedContextsModel = this._oContextComponentInstance.getSelectedContextsModel();
92
101
  this.oSelectedContextsBinding = new Binding(oSelectedContextsModel, "/", oSelectedContextsModel.getContext("/"));
93
- this.oSelectedContextsBinding.attachChange(onSelectedContextsChange.bind(this));
102
+ this.oSelectedContextsBinding.attachChange(_enableSaveAsButton.bind(this));
94
103
  }.bind(this));
95
104
  }
96
105
 
97
- function onSelectedContextsChange() {
98
- this.aSelectedRoles = this._oContextComponentInstance.getSelectedContexts().role;
99
- _validateAddAdaptationInput.call(this);
100
- }
101
-
102
- function _validateAddAdaptationInput() {
103
- if (getAdaptationTitle.call(this).length > 0 && getSelectedContexts.call(this).length > 0) {
104
- _enableSaveAsButton.call(this, true);
105
- } else {
106
- _enableSaveAsButton.call(this, false);
107
- }
108
- }
109
-
110
106
  function getAdaptationTitle() {
111
107
  return this.sAdaptationTitle || "";
112
108
  }
113
109
 
114
- function getSelectedContexts() {
115
- return this.aSelectedRoles || [];
116
- }
117
-
118
- function _enableSaveAsButton(bEnable) {
110
+ function _enableSaveAsButton() {
111
+ var bEnable = getAdaptationTitle.call(this).length > 0 && this._oContextComponentInstance.getSelectedContexts().role.length > 0;
119
112
  this.getToolbar().getControl("addAdaptationDialog--saveContextBasedAdaptation-saveButton").setEnabled(bEnable);
120
113
  }
121
114
 
@@ -124,7 +117,7 @@ sap.ui.define([
124
117
  if (this._oContextComponent.isDestroyed()) {
125
118
  return createContextSharingComponent.call(this);
126
119
  }
127
- this._oContextComponentInstance.setSelectedContexts({ role: [] });
120
+ this._oContextComponentInstance.resetSelectedContexts();
128
121
  this._oAddAdaptationDialog.addContent(this._oContextComponent);
129
122
  }
130
123
  }
@@ -1,4 +1,4 @@
1
- <core:FragmentDefinition xmlns:richtexteditor="sap.ui.richtexteditor"
1
+ <core:FragmentDefinition
2
2
  xmlns:form="sap.ui.layout.form"
3
3
  xmlns="sap.m"
4
4
  xmlns:core="sap.ui.core">
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @class
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.106.0
52
+ * @version 1.107.0
53
53
  *
54
54
  * @constructor
55
55
  * @private