@openui5/sap.ui.rta 1.97.1 → 1.100.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 (211) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  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 +224 -168
  7. package/src/sap/ui/rta/Utils.js +4 -6
  8. package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +76 -0
  9. package/src/sap/ui/rta/appContexts/Component.js +31 -0
  10. package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +323 -0
  11. package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +22 -0
  12. package/src/sap/ui/rta/appContexts/i18n/i18n.properties +47 -0
  13. package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +23 -0
  14. package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +23 -0
  15. package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +23 -0
  16. package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +23 -0
  17. package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +23 -0
  18. package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +23 -0
  19. package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +23 -0
  20. package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +23 -0
  21. package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +23 -0
  22. package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +23 -0
  23. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +23 -0
  24. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +23 -0
  25. package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +23 -0
  26. package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +23 -0
  27. package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +23 -0
  28. package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +23 -0
  29. package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +23 -0
  30. package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +23 -0
  31. package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +23 -0
  32. package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +23 -0
  33. package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +23 -0
  34. package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +23 -0
  35. package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +23 -0
  36. package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +23 -0
  37. package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +23 -0
  38. package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +23 -0
  39. package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +23 -0
  40. package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +23 -0
  41. package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +23 -0
  42. package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +23 -0
  43. package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +23 -0
  44. package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +23 -0
  45. package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +23 -0
  46. package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +23 -0
  47. package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +23 -0
  48. package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +23 -0
  49. package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +23 -0
  50. package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +23 -0
  51. package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +23 -0
  52. package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +23 -0
  53. package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +23 -0
  54. package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +23 -0
  55. package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +23 -0
  56. package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +23 -0
  57. package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +23 -0
  58. package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +23 -0
  59. package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +23 -0
  60. package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +23 -0
  61. package/src/sap/ui/rta/appContexts/index.html +25 -0
  62. package/src/sap/ui/rta/appContexts/manifest.json +52 -0
  63. package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +76 -0
  64. package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +103 -0
  65. package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +76 -0
  66. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +6 -3
  67. package/src/sap/ui/rta/appVariant/AppVariantManager.js +11 -11
  68. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +3 -4
  69. package/src/sap/ui/rta/appVariant/Feature.js +22 -11
  70. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  71. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  72. package/src/sap/ui/rta/command/AddXML.js +3 -2
  73. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
  74. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  75. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  76. package/src/sap/ui/rta/command/BindProperty.js +3 -2
  77. package/src/sap/ui/rta/command/Combine.js +5 -1
  78. package/src/sap/ui/rta/command/CommandFactory.js +17 -13
  79. package/src/sap/ui/rta/command/CompositeCommand.js +5 -5
  80. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  81. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  82. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  83. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  84. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  85. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  86. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  87. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  88. package/src/sap/ui/rta/command/LREPSerializer.js +11 -3
  89. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  90. package/src/sap/ui/rta/command/Move.js +1 -1
  91. package/src/sap/ui/rta/command/Property.js +1 -1
  92. package/src/sap/ui/rta/command/Remove.js +1 -1
  93. package/src/sap/ui/rta/command/Rename.js +1 -1
  94. package/src/sap/ui/rta/command/Reveal.js +1 -1
  95. package/src/sap/ui/rta/command/Settings.js +1 -1
  96. package/src/sap/ui/rta/command/Split.js +1 -1
  97. package/src/sap/ui/rta/command/Stack.js +22 -27
  98. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  99. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  100. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  101. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  102. package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
  103. package/src/sap/ui/rta/library.js +2 -2
  104. package/src/sap/ui/rta/messagebundle.properties +37 -17
  105. package/src/sap/ui/rta/messagebundle_ar.properties +20 -9
  106. package/src/sap/ui/rta/messagebundle_bg.properties +22 -11
  107. package/src/sap/ui/rta/messagebundle_ca.properties +20 -9
  108. package/src/sap/ui/rta/messagebundle_cs.properties +20 -9
  109. package/src/sap/ui/rta/messagebundle_cy.properties +20 -9
  110. package/src/sap/ui/rta/messagebundle_da.properties +20 -9
  111. package/src/sap/ui/rta/messagebundle_de.properties +20 -9
  112. package/src/sap/ui/rta/messagebundle_el.properties +20 -9
  113. package/src/sap/ui/rta/messagebundle_en.properties +20 -9
  114. package/src/sap/ui/rta/messagebundle_en_GB.properties +20 -9
  115. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +20 -9
  116. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +39 -20
  117. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +22 -11
  118. package/src/sap/ui/rta/messagebundle_es.properties +20 -9
  119. package/src/sap/ui/rta/messagebundle_es_MX.properties +24 -13
  120. package/src/sap/ui/rta/messagebundle_et.properties +21 -10
  121. package/src/sap/ui/rta/messagebundle_fi.properties +20 -9
  122. package/src/sap/ui/rta/messagebundle_fr.properties +20 -9
  123. package/src/sap/ui/rta/messagebundle_fr_CA.properties +20 -9
  124. package/src/sap/ui/rta/messagebundle_hi.properties +20 -9
  125. package/src/sap/ui/rta/messagebundle_hr.properties +20 -9
  126. package/src/sap/ui/rta/messagebundle_hu.properties +20 -9
  127. package/src/sap/ui/rta/messagebundle_id.properties +23 -12
  128. package/src/sap/ui/rta/messagebundle_it.properties +21 -10
  129. package/src/sap/ui/rta/messagebundle_iw.properties +20 -9
  130. package/src/sap/ui/rta/messagebundle_ja.properties +20 -9
  131. package/src/sap/ui/rta/messagebundle_kk.properties +20 -9
  132. package/src/sap/ui/rta/messagebundle_ko.properties +21 -10
  133. package/src/sap/ui/rta/messagebundle_lt.properties +20 -9
  134. package/src/sap/ui/rta/messagebundle_lv.properties +22 -11
  135. package/src/sap/ui/rta/messagebundle_ms.properties +20 -9
  136. package/src/sap/ui/rta/messagebundle_nl.properties +20 -9
  137. package/src/sap/ui/rta/messagebundle_no.properties +20 -9
  138. package/src/sap/ui/rta/messagebundle_pl.properties +20 -9
  139. package/src/sap/ui/rta/messagebundle_pt.properties +20 -9
  140. package/src/sap/ui/rta/messagebundle_pt_PT.properties +20 -9
  141. package/src/sap/ui/rta/messagebundle_ro.properties +20 -9
  142. package/src/sap/ui/rta/messagebundle_ru.properties +20 -9
  143. package/src/sap/ui/rta/messagebundle_sh.properties +20 -9
  144. package/src/sap/ui/rta/messagebundle_sk.properties +20 -9
  145. package/src/sap/ui/rta/messagebundle_sl.properties +20 -9
  146. package/src/sap/ui/rta/messagebundle_sv.properties +20 -9
  147. package/src/sap/ui/rta/messagebundle_th.properties +20 -9
  148. package/src/sap/ui/rta/messagebundle_tr.properties +20 -9
  149. package/src/sap/ui/rta/messagebundle_uk.properties +21 -10
  150. package/src/sap/ui/rta/messagebundle_vi.properties +20 -9
  151. package/src/sap/ui/rta/messagebundle_zh_CN.properties +20 -9
  152. package/src/sap/ui/rta/messagebundle_zh_TW.properties +20 -9
  153. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  154. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  155. package/src/sap/ui/rta/plugin/Combine.js +11 -4
  156. package/src/sap/ui/rta/plugin/ControlVariant.js +5 -6
  157. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  158. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  159. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  160. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  161. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  162. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  163. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  164. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  165. package/src/sap/ui/rta/plugin/Remove.js +22 -9
  166. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  167. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  168. package/src/sap/ui/rta/plugin/Selection.js +35 -33
  169. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  170. package/src/sap/ui/rta/plugin/Split.js +1 -1
  171. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  172. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +53 -121
  173. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  174. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +0 -67
  175. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +9 -10
  176. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +3 -4
  177. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +17 -47
  178. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  179. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  180. package/src/sap/ui/rta/service/Action.js +1 -1
  181. package/src/sap/ui/rta/service/ControllerExtension.js +5 -6
  182. package/src/sap/ui/rta/service/Outline.js +6 -3
  183. package/src/sap/ui/rta/service/Property.js +1 -1
  184. package/src/sap/ui/rta/service/Selection.js +1 -1
  185. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +44 -61
  186. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -0
  187. package/src/sap/ui/rta/toolbar/Adaptation.js +12 -12
  188. package/src/sap/ui/rta/toolbar/Base.js +3 -3
  189. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  190. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  191. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
  192. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  193. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  194. package/src/sap/ui/rta/toolbar/translation/DownloadTranslationDialog.fragment.xml +19 -10
  195. package/src/sap/ui/rta/toolbar/translation/Translation.js +146 -56
  196. package/src/sap/ui/rta/toolbar/translation/TranslationPopover.fragment.xml +8 -13
  197. package/src/sap/ui/rta/toolbar/translation/UploadTranslationDialog.fragment.xml +41 -0
  198. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  199. package/src/sap/ui/rta/util/PopupManager.js +37 -13
  200. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  201. package/src/sap/ui/rta/util/adaptationStarter.js +40 -2
  202. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +112 -60
  203. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +6 -5
  204. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  205. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +87 -103
  206. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +37 -0
  207. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +5 -2
  208. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +14 -2
  209. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +5 -2
  210. package/src/sap/ui/rta/util/showMessageBox.js +4 -3
  211. package/src/sap/ui/rta/util/validateFlexEnabled.js +2 -1
@@ -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.97.1
78
+ * @version 1.100.0
79
79
  * @constructor
80
80
  * @private
81
81
  * @since 1.44
@@ -173,7 +173,6 @@ sap.ui.define([
173
173
  if (
174
174
  mActions &&
175
175
  ((mActions.reveal && mActions.reveal.elements.length > 0)
176
- || mActions.addViaCustom
177
176
  || mActions.addViaDelegate)
178
177
  ) {
179
178
  bIsEnabled = true;
@@ -357,7 +356,7 @@ sap.ui.define([
357
356
  if (mActions[sAggregationName].addViaDelegate) {
358
357
  bEditable = this.checkAggregationsOnSelf(mParents.parentOverlay, "add", undefined, "delegate");
359
358
  }
360
- if (!bEditable && (mActions[sAggregationName].reveal || mActions[sAggregationName].addViaCustom)) {
359
+ if (!bEditable && mActions[sAggregationName].reveal) {
361
360
  return true;
362
361
  }
363
362
  return bEditable;
@@ -410,8 +409,7 @@ sap.ui.define([
410
409
  aggregation: sAggregationName,
411
410
  elementPromises: [
412
411
  mActions.reveal ? AdditionalElementsAnalyzer.enhanceInvisibleElements(mParents.parent, mActions) : Promise.resolve([]),
413
- mActions.addViaDelegate ? AdditionalElementsAnalyzer.getUnrepresentedDelegateProperties(mParents.parent, mActions.addViaDelegate) : Promise.resolve([]),
414
- mActions.addViaCustom ? AdditionalElementsAnalyzer.getCustomAddItems(mParents.parent, mActions.addViaCustom, mActions.aggregation) : Promise.resolve([])
412
+ mActions.addViaDelegate ? AdditionalElementsAnalyzer.getUnrepresentedDelegateProperties(mParents.parent, mActions.addViaDelegate) : Promise.resolve([])
415
413
  ]
416
414
  });
417
415
  });
@@ -567,16 +565,14 @@ sap.ui.define([
567
565
  // aggregation: "aggregation1",
568
566
  // elementPromises: [
569
567
  // revealPromise,
570
- // addViaDelegatePromise,
571
- // addViaCustomPromise
568
+ // addViaDelegatePromise
572
569
  // ]
573
570
  // },
574
571
  // {
575
572
  // aggregation: "aggregation2",
576
573
  // elementPromises: [
577
574
  // revealPromise,
578
- // addViaDelegatePromise,
579
- // addViaCustomPromise
575
+ // addViaDelegatePromise
580
576
  // ]
581
577
  // }
582
578
  // ...
@@ -599,9 +595,12 @@ sap.ui.define([
599
595
  aAllPromises.forEach(function(aPromisesByAggregation) {
600
596
  aCollectedPromises.push(
601
597
  Promise.all(aPromisesByAggregation.elementPromises).then(function(aAnalyzerValues) {
598
+ var aRevealElements = aAnalyzerValues[0];
599
+ var aAddViaDelegateElements = aAnalyzerValues[1];
600
+ var aAllElements = aRevealElements.concat(aAddViaDelegateElements);
602
601
  return {
603
602
  aggregation: aPromisesByAggregation.aggregation,
604
- elements: AdditionalElementsAnalyzer.getFilteredItemsList(aAnalyzerValues)
603
+ elements: aAllElements
605
604
  };
606
605
  })
607
606
  );
@@ -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.97.1
18
+ * @version 1.100.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.
@@ -28,8 +28,7 @@ sap.ui.define([
28
28
  * @returns {sap.ui.dt.ElementDesignTimeMetadata} Design time metadata
29
29
  */
30
30
  function getDTMetadataFromActions(mActions) {
31
- return (mActions["addViaDelegate"] && mActions["addViaDelegate"].designTimeMetadata)
32
- || (mActions["addViaCustom"] && mActions["addViaCustom"].designTimeMetadata);
31
+ return mActions["addViaDelegate"] && mActions["addViaDelegate"].designTimeMetadata;
33
32
  }
34
33
 
35
34
  /**
@@ -42,7 +41,7 @@ sap.ui.define([
42
41
  AdditionalElementsUtils.getParents = function(bSibling, oOverlay, oPlugin) {
43
42
  var oParentOverlay;
44
43
  var oResponsibleElementOverlay = oOverlay;
45
- var bResponsibleElementAvailable = ["add.delegate", "reveal", "add.custom"].some(function(vActionName) {
44
+ var bResponsibleElementAvailable = ["add.delegate", "reveal"].some(function(vActionName) {
46
45
  return oPlugin.isResponsibleElementActionAvailable(oOverlay, vActionName);
47
46
  });
48
47
  if (bResponsibleElementAvailable) {
@@ -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.97.1
28
+ * @version 1.100.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.
@@ -164,47 +164,6 @@ sap.ui.define([
164
164
  return Promise.resolve();
165
165
  }
166
166
 
167
- function createCommandsForCustomElement(mPropertyBag) {
168
- var oCompositeCommand = mPropertyBag.compositeCommand;
169
- var oSelectedElement = mPropertyBag.selectedElement;
170
- var mParents = mPropertyBag.parents;
171
- var oSiblingElement = mPropertyBag.siblingElement;
172
- var mActions = mPropertyBag.actions;
173
- var iIndex = mPropertyBag.index;
174
- var oPlugin = mPropertyBag.plugin;
175
- var oElement = mParents.parent;
176
- var oParentAggregationDTMetadata = mParents.parentOverlay.getAggregationOverlay(mActions.aggregation).getDesignTimeMetadata();
177
- var oActionSettings = Object.assign(
178
- {
179
- changeOnRelevantContainer: oSelectedElement.changeSpecificData.changeOnRelevantContainer,
180
- aggregationName: mActions.aggregation,
181
- changeType: oSelectedElement.changeSpecificData.changeType,
182
- addElementInfo: oSelectedElement.changeSpecificData.content,
183
- index: iIndex || Utils.getIndex(mParents.parent, oSiblingElement, mActions.aggregation)
184
- },
185
- oSelectedElement.itemId && { customItemId: oSelectedElement.itemId }
186
- );
187
-
188
- var sVariantManagementReference;
189
- if (mParents.relevantContainerOverlay) {
190
- sVariantManagementReference = oPlugin.getVariantManagementReference(mParents.relevantContainerOverlay);
191
- }
192
-
193
- return oPlugin.getCommandFactory().getCommandFor(
194
- oElement,
195
- "customAdd",
196
- oActionSettings,
197
- oParentAggregationDTMetadata,
198
- sVariantManagementReference
199
- )
200
- .then(function (oCustomAddCommand) {
201
- if (oCustomAddCommand) {
202
- oCompositeCommand.addCommand(oCustomAddCommand);
203
- }
204
- return oCompositeCommand;
205
- });
206
- }
207
-
208
167
  function createCommandsForAddViaDelegate(mPropertyBag) {
209
168
  var oCompositeCommand = mPropertyBag.compositeCommand;
210
169
  var mAddViaDelegateAction = mPropertyBag.actions.addViaDelegate.action;
@@ -226,6 +185,21 @@ sap.ui.define([
226
185
  });
227
186
  }
228
187
 
188
+ function getODataServiceUriFromManifest(oManifest) {
189
+ var sUri = "";
190
+ if (oManifest) {
191
+ var oSapApp = oManifest.getEntry ? oManifest.getEntry("sap.app") : oManifest["sap.app"];
192
+ if (
193
+ oSapApp && oSapApp.dataSources
194
+ && oSapApp.dataSources.mainService
195
+ && oSapApp.dataSources.mainService.uri
196
+ ) {
197
+ sUri = oSapApp.dataSources.mainService.uri;
198
+ }
199
+ }
200
+ return sUri;
201
+ }
202
+
229
203
  function createAddViaDelegateCommand(mPropertyBag, oParentAggregationDTMetadata) {
230
204
  var oSelectedElement = mPropertyBag.selectedElement;
231
205
  var mParents = mPropertyBag.parents;
@@ -240,7 +214,7 @@ sap.ui.define([
240
214
  var iAddTargetIndex = Utils.getIndex(mParents.parent, oSiblingElement, mActions.aggregation, oParentAggregationDTMetadata.getData().getIndex);
241
215
  var sCommandName = "addDelegateProperty";
242
216
  var oManifest = FlUtils.getAppComponentForControl(mParents.parent).getManifest();
243
- var sServiceUri = FlUtils.getODataServiceUriFromManifest(oManifest);
217
+ var sServiceUri = getODataServiceUriFromManifest(oManifest);
244
218
 
245
219
  return oPlugin.getCommandFactory().getCommandFor(mParents.parent, sCommandName, {
246
220
  newControlId: Utils.createFieldLabelId(oParent, oSelectedElement.entityType, oSelectedElement.bindingPath),
@@ -304,10 +278,6 @@ sap.ui.define([
304
278
  oPromise = oPromise.then(
305
279
  createCommandsForAddViaDelegate.bind(this, mPropertyBag));
306
280
  break;
307
- case "custom":
308
- oPromise = oPromise.then(
309
- createCommandsForCustomElement.bind(this, mPropertyBag));
310
- break;
311
281
  default:
312
282
  Log.error("Can't create command for untreated element.type " + oSelectedElement.type);
313
283
  }
@@ -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.97.1
113
+ * @version 1.100.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.97.1
116
+ * @version 1.100.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.97.1
28
+ * @version 1.100.0
29
29
  * @private
30
30
  * @ui5-restricted
31
31
  *
@@ -8,14 +8,15 @@ sap.ui.define([
8
8
  "sap/ui/dt/Util",
9
9
  "sap/ui/dt/OverlayRegistry",
10
10
  "sap/ui/fl/Utils",
11
+ "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
11
12
  "sap/ui/fl/write/api/ChangesWriteAPI",
12
13
  "sap/ui/fl/write/api/PersistenceWriteAPI",
13
14
  "sap/ui/thirdparty/jquery"
14
- ],
15
- function (
15
+ ], function (
16
16
  DtUtil,
17
17
  OverlayRegistry,
18
18
  FlexUtils,
19
+ FlexRuntimeInfoAPI,
19
20
  ChangesWriteAPI,
20
21
  PersistenceWriteAPI,
21
22
  jQuery
@@ -30,7 +31,7 @@ function (
30
31
  * @author SAP SE
31
32
  * @experimental Since 1.58
32
33
  * @since 1.58
33
- * @version 1.97.1
34
+ * @version 1.100.0
34
35
  * @private
35
36
  * @ui5-restricted
36
37
  */
@@ -90,7 +91,7 @@ function (
90
91
  var oAppComponent = FlexUtils.getAppComponentForControl(oView);
91
92
  var sControllerName = oView.getControllerName && oView.getControllerName() || oView.getController() && oView.getController().getMetadata().getName();
92
93
  //Calculate moduleName for code extension
93
- var sReference = FlexUtils.getComponentClassName(oAppComponent);
94
+ var sReference = FlexRuntimeInfoAPI.getFlexReference({element: oAppComponent});
94
95
  var sModuleName = sReference.replace(/\.Component/g, "").replace(/\./g, "/");
95
96
  sModuleName += "/changes/";
96
97
  sModuleName += sCodeRef.replace(/\.js/g, "");
@@ -103,8 +104,6 @@ function (
103
104
  },
104
105
  changeType: "codeExt",
105
106
  namespace: oFlexSettings.namespace,
106
- developerMode: oFlexSettings.developerMode,
107
- scenario: oFlexSettings.scenario,
108
107
  moduleName: sModuleName
109
108
  };
110
109
 
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @author SAP SE
43
43
  * @experimental Since 1.56
44
44
  * @since 1.56
45
- * @version 1.97.1
45
+ * @version 1.100.0
46
46
  * @private
47
47
  * @ui5-restricted
48
48
  */
@@ -69,11 +69,14 @@ sap.ui.define([
69
69
  * @property {string} [name] - Singular name from node's design time metadata
70
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
+ * @property {string} [templateReference]
73
+ * - ID of the template that the element was cloned from; can be used for filtering out clones or
74
+ * showing the template element in the outline for a clone selected in the UI
73
75
  * @property {string} [icon] - Icon path for the node
74
76
  * @property {string} type - Type of node
75
77
  * @property {boolean} [visible] - Visibility of node of type <code>element</code>
76
- * @property {sap.ui.rta.service.Outline.ExtensionPointInfo} [extensionPointInfo] - In case of an extension point additional extension point information is given.
78
+ * @property {sap.ui.rta.service.Outline.ExtensionPointInfo} [extensionPointInfo]
79
+ * - In case of an extension point additional extension point information is given.
77
80
  * @property {sap.ui.rta.service.Outline.OutlineObject[]} elements - Outline data for child nodes
78
81
  */
79
82
 
@@ -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.97.1
31
+ * @version 1.100.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.97.1
18
+ * @version 1.100.0
19
19
  * @private
20
20
  * @ui5-restricted
21
21
  */
@@ -1,94 +1,77 @@
1
1
  /******************************************************************
2
2
  Style of the RTA Change Visualization - base theme
3
3
  *******************************************************************/
4
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColor: rgba(131, 201, 233, 0.75);
5
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorFocus: #1c678a;
6
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorHover: rgba(14, 138, 195, 0.75);
7
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid: rgb(131, 201, 233);
8
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG: white;
9
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidHover: #0f648b;
10
- @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor: rgba(219,149,51,0.75);
11
- @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent: rgba(219,149,51,0);
12
- @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorFocus: #a67026;
13
- @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid: rgb(219, 149, 51);
14
- @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolidHover: #b67a26;
15
- @_sap_ui_rta_ChangeVisualization_ChangeIndicatorTextColor: #1c678a;
4
+ @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorLight: @sapUiChartPaletteSequentialHue1Light1;
5
+ @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorMedium: @sapUiChartPaletteSequentialHue1Dark1;
6
+ @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark: @sapUiChartPaletteSequentialHue11Dark2;
7
+ @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent: @sapUiGroupTitleBackground;
16
8
 
17
9
  .sapUiRtaChangeIndicator{
18
- border-radius: 25px;
19
- z-index: 1000;
10
+ height: 0.8rem;
11
+ width: 0.8rem;
20
12
  position: relative;
13
+ border-radius: 50%;
14
+ margin-top: 0.25rem;
15
+ margin-left: 0.25rem;
16
+ transition: width 0.3s, height 0.3s, box-shadow 0.3s;
21
17
  cursor: pointer;
22
18
  }
23
19
 
24
- .sapUiRtaChangeIndicatorChange{
25
- border: 1px solid @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColor;
26
- background: white;
27
- background: radial-gradient(circle, transparent 41%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColor 72%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid 100%);
20
+ .sapUiRtaChangeIndicator:focus{
21
+ outline: 0;
22
+ }
28
23
 
29
- &:focus{
30
- border: 1px solid @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorFocus;
31
- outline: none;
32
- }
24
+ .sapUiRtaChangeIndicatorColorLight{
25
+ background-color: @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorLight;
26
+ opacity: 0.6;
27
+ }
33
28
 
34
- &:hover{
35
- background: radial-gradient(circle, transparent 41%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorHover 62%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidHover 100%);
29
+ .sapUiRtaChangeIndicatorColorMedium{
30
+ background-color: @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorMedium;
31
+ opacity: 0.75;
32
+ }
36
33
 
37
- .sapUiRtaChangeIndicatorText{
38
- color:white;
39
- }
40
- }
34
+ .sapUiRtaChangeIndicatorColorDark{
35
+ background-color: @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark;
36
+ opacity: 0.75;
37
+ }
38
+
39
+ .sapUiRtaChangeIndicatorVerticallyCentered{
40
+ top: 50%;
41
+ transform: translateY(-50%);
42
+ margin-top: 0;
43
+ }
44
+
45
+ .sapUiRtaHover{
46
+ height: 0.9rem;
47
+ width: 0.9rem;
48
+ box-shadow: 0 0 0.25rem @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark;
41
49
  }
42
50
 
43
51
  .sapUiRtaChangeIndicatorDependent{
44
52
  height: 100%;
45
- width: 100%;
53
+ width: auto;
54
+ display: block;
46
55
  position: absolute;
47
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
48
- outline-offset: -3px;
49
- box-shadow: @_sap_ui_rta_Overlay_BoxShadow;
56
+ box-shadow: inset 0 0 0 3px @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, @_sap_ui_rta_Overlay_BoxShadow;
57
+ background-color: fade(@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, 25%);
50
58
  animation: fadeOut linear 1.5s;
51
59
  animation-fill-mode: forwards;
52
60
 
53
61
  @keyframes fadeOut {
54
- 0% {
55
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
56
- outline-offset: -3px;
57
- }
58
62
  66%{
59
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
60
- outline-offset: -3px;
63
+ box-shadow: inset 0 0 0 3px @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, @_sap_ui_rta_Overlay_BoxShadow;
64
+ background-color: fade(@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, 25%);
61
65
  }
62
66
  100% {
63
- outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent;
64
- outline-offset: -3px;
65
67
  box-shadow: none;
68
+ background-color: fade(@_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorDark, 0%);
66
69
  }
67
70
  }
68
71
  }
69
72
 
70
- .sapUiRtaChangeIndicatorText{
71
- top: 0;
72
- left: 0;
73
- position: absolute;
74
- width: 50%;
75
- height: 50%;
76
- border-radius: 50%;
77
- background: @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid;
78
- color: black;
79
- display: flex;
80
- justify-content: center;
81
- align-items: center;
82
- opacity: 0.8;
83
- cursor: pointer;
84
- }
85
-
86
73
  .sapUiRtaChangeIndicatorHovered {
87
- -webkit-transition: background 0.1s cubic-bezier(1,.01,1,0);
88
- -moz-transition: background 0.1s cubic-bezier(1,.01,1,0);
89
- -o-transition: background 0.1s cubic-bezier(1,.01,1,0);
90
- transition: background 0.1s cubic-bezier(1,.01,1,0);
91
-
74
+ cursor: pointer!important;
92
75
  &:after {
93
76
  content: " ";
94
77
  border: 0.0625rem solid @_sap_ui_rta_Overlay_HoverBorder!important; //1px
@@ -70,6 +70,7 @@
70
70
  key="navigation" />
71
71
  <SegmentedButtonItem
72
72
  id="sapUiRta_visualizationSwitcherButton"
73
+ visible="{controls>/visualizationButtonVisible}"
73
74
  text="{i18n>BTN_VISUALIZATION}"
74
75
  width="auto"
75
76
  key="visualization" />
@@ -39,7 +39,7 @@ function(
39
39
  * @extends sap.ui.rta.toolbar.Base
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.97.1
42
+ * @version 1.100.0
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -113,17 +113,17 @@ function(
113
113
  oButton.setIcon(sIcon || "");
114
114
  }
115
115
 
116
- Adaptation.prototype.formatDiscardDraftVisible = function (nDisplayedVersion, bVersioningEnabled) {
117
- return nDisplayedVersion === sap.ui.fl.Versions.Draft && bVersioningEnabled;
116
+ Adaptation.prototype.formatDiscardDraftVisible = function (sDisplayedVersion, bVersioningEnabled) {
117
+ return sDisplayedVersion === Versions.Draft && bVersioningEnabled;
118
118
  };
119
119
 
120
- Adaptation.prototype.formatVersionButtonText = function (aVersions, nDisplayedVersion) {
120
+ Adaptation.prototype.formatVersionButtonText = function (aVersions, sDisplayedVersion) {
121
121
  var oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
122
122
  var sText = "";
123
123
  var sType = "Active";
124
124
  aVersions = aVersions || [];
125
125
 
126
- if (nDisplayedVersion === undefined || nDisplayedVersion === Versions.Original) {
126
+ if (sDisplayedVersion === undefined || sDisplayedVersion === Versions.Original) {
127
127
  sText = oTextResources.getText("TIT_ORIGINAL_APP");
128
128
  sType = "inactive";
129
129
  if (aVersions.length === 0 || (aVersions.length === 1 && aVersions[0].type === "draft")) {
@@ -131,11 +131,11 @@ function(
131
131
  }
132
132
  } else {
133
133
  var oDisplayedVersion = aVersions.find(function (oVersion) {
134
- return oVersion.version === nDisplayedVersion;
134
+ return oVersion.version === sDisplayedVersion;
135
135
  });
136
136
  if (oDisplayedVersion) {
137
137
  sType = oDisplayedVersion.type;
138
- if (nDisplayedVersion === Versions.Draft) {
138
+ if (sDisplayedVersion === Versions.Draft) {
139
139
  sText = oTextResources.getText("TIT_DRAFT");
140
140
  } else {
141
141
  sText = oDisplayedVersion.title || oTextResources.getText("TIT_VERSION_1");
@@ -212,14 +212,14 @@ function(
212
212
 
213
213
  Adaptation.prototype.versionSelected = function (oEvent) {
214
214
  var oVersionsBindingContext = oEvent.getSource().getBindingContext("versions");
215
- var nVersion = Versions.Original;
215
+ var sVersion = Versions.Original;
216
216
 
217
217
  if (oVersionsBindingContext) {
218
218
  // the original Version does not have a version binding Context
219
- nVersion = oVersionsBindingContext.getProperty("version");
219
+ sVersion = oVersionsBindingContext.getProperty("version");
220
220
  }
221
221
 
222
- this.fireEvent("switchVersion", {version: nVersion});
222
+ this.fireEvent("switchVersion", {version: sVersion});
223
223
  };
224
224
 
225
225
  Adaptation.prototype.showVersionHistory = function (oEvent) {
@@ -398,7 +398,7 @@ function(
398
398
  return sap.ui.getCore().byId(this.getId() + "_fragment--sapUiRta_" + sName);
399
399
  };
400
400
 
401
- Adaptation.prototype._openVersionTitleDialog = function (nDisplayedVersion) {
401
+ Adaptation.prototype._openVersionTitleDialog = function (sDisplayedVersion) {
402
402
  var oDialogPromise;
403
403
 
404
404
  if (this._oDialog) {
@@ -410,7 +410,7 @@ function(
410
410
  return oDialogPromise.then(function () {
411
411
  var oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
412
412
  var sTitle = oTextResources.getText("TIT_VERSION_TITLE_DIALOG");
413
- if (nDisplayedVersion !== Versions.Draft) {
413
+ if (sDisplayedVersion !== Versions.Draft) {
414
414
  sTitle = oTextResources.getText("TIT_REACTIVATE_VERSION_TITLE_DIALOG");
415
415
  }
416
416
  this._oDialog.setTitle(sTitle);
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.m.HBox
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.97.1
28
+ * @version 1.100.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -112,7 +112,7 @@ sap.ui.define([
112
112
 
113
113
  /**
114
114
  * Adds an extension to the toolbar, if it is not already registered.
115
- * The new extension gets created with the toolbar itself as property 'context'.
115
+ * The new extension gets created with the toolbar itself as property 'toolbar'.
116
116
  *
117
117
  * @param {string} sName - Name of the extension
118
118
  * @param {sap.ui.base.ManagedObject} Extension - Extension Class to be instantiated
@@ -120,7 +120,7 @@ sap.ui.define([
120
120
  */
121
121
  Base.prototype.addExtension = function(sName, Extension) {
122
122
  if (!Object.keys(this._oExtensions).includes(sName)) {
123
- this._oExtensions[sName] = new Extension({context: this});
123
+ this._oExtensions[sName] = new Extension({toolbar: this});
124
124
  }
125
125
  return this._oExtensions[sName];
126
126
  };
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.97.1
35
+ * @version 1.100.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.97.1
23
+ * @version 1.100.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.97.1
26
+ * @version 1.100.0
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -95,4 +95,4 @@ sap.ui.define([
95
95
  };
96
96
 
97
97
  return OverflowToolbarButton;
98
- }, false);
98
+ });
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Base
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.97.1
25
+ * @version 1.100.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.97.1
23
+ * @version 1.100.0
24
24
  *
25
25
  * @constructor
26
26
  * @private