@openui5/sap.ui.rta 1.127.1 → 1.129.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 (178) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -1
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +21 -3
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  9. package/src/sap/ui/rta/appVariant/Feature.js +2 -2
  10. package/src/sap/ui/rta/appVariant/Utils.js +3 -3
  11. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +2 -2
  12. package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +27 -27
  13. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  14. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  15. package/src/sap/ui/rta/command/AddXML.js +1 -1
  16. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  17. package/src/sap/ui/rta/command/Annotation.js +46 -0
  18. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  19. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  20. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  21. package/src/sap/ui/rta/command/Combine.js +1 -1
  22. package/src/sap/ui/rta/command/CommandFactory.js +14 -8
  23. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +14 -15
  27. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  28. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  29. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  30. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  31. package/src/sap/ui/rta/command/FlexCommand.js +8 -5
  32. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  33. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  34. package/src/sap/ui/rta/command/Move.js +1 -1
  35. package/src/sap/ui/rta/command/Property.js +1 -1
  36. package/src/sap/ui/rta/command/Remove.js +1 -1
  37. package/src/sap/ui/rta/command/Rename.js +1 -1
  38. package/src/sap/ui/rta/command/Resize.js +1 -1
  39. package/src/sap/ui/rta/command/Reveal.js +1 -1
  40. package/src/sap/ui/rta/command/Settings.js +1 -1
  41. package/src/sap/ui/rta/command/Split.js +1 -1
  42. package/src/sap/ui/rta/command/Stack.js +5 -2
  43. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +6 -4
  45. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +7 -5
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +5 -3
  48. package/src/sap/ui/rta/enablement/TestDelegate.js +4 -3
  49. package/src/sap/ui/rta/enablement/elementActionTest.js +9 -6
  50. package/src/sap/ui/rta/library.js +2 -2
  51. package/src/sap/ui/rta/messagebundle.properties +47 -3
  52. package/src/sap/ui/rta/messagebundle_ar.properties +24 -2
  53. package/src/sap/ui/rta/messagebundle_bg.properties +24 -2
  54. package/src/sap/ui/rta/messagebundle_ca.properties +24 -2
  55. package/src/sap/ui/rta/messagebundle_cnr.properties +25 -3
  56. package/src/sap/ui/rta/messagebundle_cs.properties +24 -2
  57. package/src/sap/ui/rta/messagebundle_cy.properties +25 -3
  58. package/src/sap/ui/rta/messagebundle_da.properties +25 -3
  59. package/src/sap/ui/rta/messagebundle_de.properties +24 -2
  60. package/src/sap/ui/rta/messagebundle_el.properties +24 -2
  61. package/src/sap/ui/rta/messagebundle_en.properties +24 -2
  62. package/src/sap/ui/rta/messagebundle_en_GB.properties +24 -2
  63. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +24 -2
  64. package/src/sap/ui/rta/messagebundle_es.properties +24 -2
  65. package/src/sap/ui/rta/messagebundle_es_MX.properties +24 -2
  66. package/src/sap/ui/rta/messagebundle_et.properties +24 -2
  67. package/src/sap/ui/rta/messagebundle_fi.properties +24 -2
  68. package/src/sap/ui/rta/messagebundle_fr.properties +24 -2
  69. package/src/sap/ui/rta/messagebundle_fr_CA.properties +25 -3
  70. package/src/sap/ui/rta/messagebundle_hi.properties +24 -2
  71. package/src/sap/ui/rta/messagebundle_hr.properties +24 -2
  72. package/src/sap/ui/rta/messagebundle_hu.properties +25 -3
  73. package/src/sap/ui/rta/messagebundle_id.properties +25 -3
  74. package/src/sap/ui/rta/messagebundle_it.properties +24 -2
  75. package/src/sap/ui/rta/messagebundle_iw.properties +24 -2
  76. package/src/sap/ui/rta/messagebundle_ja.properties +24 -2
  77. package/src/sap/ui/rta/messagebundle_kk.properties +24 -2
  78. package/src/sap/ui/rta/messagebundle_ko.properties +25 -3
  79. package/src/sap/ui/rta/messagebundle_lt.properties +24 -2
  80. package/src/sap/ui/rta/messagebundle_lv.properties +24 -2
  81. package/src/sap/ui/rta/messagebundle_mk.properties +24 -2
  82. package/src/sap/ui/rta/messagebundle_ms.properties +24 -2
  83. package/src/sap/ui/rta/messagebundle_nl.properties +24 -2
  84. package/src/sap/ui/rta/messagebundle_no.properties +24 -2
  85. package/src/sap/ui/rta/messagebundle_pl.properties +24 -2
  86. package/src/sap/ui/rta/messagebundle_pt.properties +24 -2
  87. package/src/sap/ui/rta/messagebundle_pt_PT.properties +24 -2
  88. package/src/sap/ui/rta/messagebundle_ro.properties +25 -3
  89. package/src/sap/ui/rta/messagebundle_ru.properties +24 -2
  90. package/src/sap/ui/rta/messagebundle_sh.properties +25 -3
  91. package/src/sap/ui/rta/messagebundle_sk.properties +24 -2
  92. package/src/sap/ui/rta/messagebundle_sl.properties +24 -2
  93. package/src/sap/ui/rta/messagebundle_sr.properties +25 -3
  94. package/src/sap/ui/rta/messagebundle_sv.properties +24 -2
  95. package/src/sap/ui/rta/messagebundle_th.properties +24 -2
  96. package/src/sap/ui/rta/messagebundle_tr.properties +24 -2
  97. package/src/sap/ui/rta/messagebundle_uk.properties +26 -4
  98. package/src/sap/ui/rta/messagebundle_vi.properties +25 -3
  99. package/src/sap/ui/rta/messagebundle_zh_CN.properties +24 -2
  100. package/src/sap/ui/rta/messagebundle_zh_TW.properties +24 -2
  101. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  102. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  103. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  104. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  105. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  106. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  107. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  108. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  109. package/src/sap/ui/rta/plugin/Plugin.js +2 -3
  110. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  111. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  112. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  113. package/src/sap/ui/rta/plugin/RenameHandler.js +5 -2
  114. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  115. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  116. package/src/sap/ui/rta/plugin/Settings.js +34 -10
  117. package/src/sap/ui/rta/plugin/Split.js +1 -1
  118. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +0 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +70 -69
  123. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  124. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +9 -7
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +22 -7
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -1
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +7 -4
  129. package/src/sap/ui/rta/service/Action.js +4 -3
  130. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  131. package/src/sap/ui/rta/service/Outline.js +5 -9
  132. package/src/sap/ui/rta/service/Property.js +10 -11
  133. package/src/sap/ui/rta/service/Selection.js +1 -1
  134. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  135. package/src/sap/ui/rta/themes/base/AddIFrame.less +8 -10
  136. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +2 -3
  137. package/src/sap/ui/rta/themes/base/ContextMenu.less +13 -13
  138. package/src/sap/ui/rta/themes/base/Dialogs.less +2 -2
  139. package/src/sap/ui/rta/themes/base/FieldRepository.less +5 -10
  140. package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +9 -4
  141. package/src/sap/ui/rta/themes/base/Overlay.less +27 -180
  142. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +1 -1
  143. package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +18 -76
  144. package/src/sap/ui/rta/themes/base/Toolbar.base.less +18 -18
  145. package/src/sap/ui/rta/themes/base/WhatsNew.less +7 -0
  146. package/src/sap/ui/rta/themes/base/library.source.less +10 -11
  147. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +8 -0
  148. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +8 -1
  149. package/src/sap/ui/rta/toolbar/Adaptation.js +9 -2
  150. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  151. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  152. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  153. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  154. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  155. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +20 -18
  156. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +1 -1
  157. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  158. package/src/sap/ui/rta/toolbar/translation/Translation.js +3 -3
  159. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  160. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  161. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  162. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  163. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  164. package/src/sap/ui/rta/util/ServiceManager.js +2 -2
  165. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  166. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +10 -10
  167. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +11 -13
  168. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +60 -25
  169. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +110 -0
  170. package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +81 -0
  171. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +82 -0
  172. package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +75 -0
  173. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +73 -0
  174. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +138 -0
  175. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/AdvancedSettingsImage.png +0 -0
  176. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/FullIframe.png +0 -0
  177. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/MiniMenu.png +0 -0
  178. package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/WhatsNewOverview.png +0 -0
@@ -0,0 +1,138 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ "sap/ui/core/Lib"
9
+ ], function(
10
+ Lib
11
+ ) {
12
+ "use strict";
13
+
14
+ const WhatsNewFeatures = {};
15
+
16
+ const oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
17
+
18
+ function getImagePath(sFileName) {
19
+ const _sAppModulePath = "sap/ui/rta/util/";
20
+ return `${sap.ui.require.toUrl(_sAppModulePath)}whatsNew/whatsNewContent/whatsNewImages/${sFileName}`;
21
+ }
22
+
23
+ /**
24
+ * Callback filter function to determine if the feature should be displayed in the dialog
25
+ * @typedef {function} sap.ui.rta.util.whatsNew.whatsNewContent.WhatsNewFeatures.isFeatureApplicable
26
+ * @param {sap.ui.fl.registry.Settings} oFlexSettings - Flex settings
27
+ * @returns {boolean} <code>false</code> if the feature shouldn't be displayed in the dialog
28
+ */
29
+
30
+ /**
31
+ * The `aWhatsNewFeaturesContent` array defines the features that will be displayed inside the "What's New" dialog.
32
+ * To add a new feature, add a new object to this array. Each feature object should have the following structure:
33
+ *
34
+ * {
35
+ * featureId: <Unique identifier for the feature, saved in the backend>,
36
+ * title: <Title of the new feature>,
37
+ * description: <Description of the new feature>,
38
+ * documentationUrls: {
39
+ * btpUrl: <Url to the btp documentation of the feature>
40
+ * s4HanaCloudUrl: <Url to the s4HanaCloud documentation of the feature>
41
+ * s4HanaOnPremUrl: <Url to the ABAP on-Premise documentation of the feature>
42
+ * }
43
+ * information: [
44
+ * to display content inside the dialog there are three options:
45
+ * option 1: text and image to the left
46
+ * {
47
+ * text: <Text description of the feature>,
48
+ * image: <URL or path to an image representing the feature>
49
+ * }
50
+ * option 2: text only
51
+ * {
52
+ * text: <Text description of the feature>,
53
+ * image: null (the null is mandatory for spacing to work properly)
54
+ * }
55
+ * option 3: image only
56
+ * {
57
+ * text: null (the null is mandatory for spacing to work properly),
58
+ * image: <URL or path to an image representing the feature>
59
+ * }]
60
+ * isFeatureApplicable: <Filter function that returns a boolean value to determine
61
+ * if the feature should be displayed in the dialog> (optional)
62
+ * <code>{@link sap.ui.rta.util.whatsNew.whatsNewContent.WhatsNewFeatures.isFeatureApplicable isFeatureApplicable}</code>
63
+ * }
64
+ *
65
+ */
66
+ const aWhatsNewFeaturesContent =
67
+ [
68
+ {
69
+ featureId: "WhatsNewFeature",
70
+ title: oTextResources.getText("TIT_WHATS_NEW_DIALOG_WHATS_NEW_FEATURE_TITLE"),
71
+ description: oTextResources.getText("TXT_WHATS_NEW_DIALOG_WHATS_NEW_FEATURE_DESCRIPTION"),
72
+ documentationUrls: {
73
+ btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/adapting-ui",
74
+ s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/d868950a1e8c4b0f9b9453176939a19b.html",
75
+ s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/d868950a1e8c4b0f9b9453176939a19b.html"
76
+ },
77
+ information: [
78
+ {
79
+ text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_WHATS_NEW_FEATURE_TEXT"),
80
+ image: null
81
+ },
82
+ {
83
+ text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_WHATS_NEW_OVERVIEW_TEXT"),
84
+ image: getImagePath("WhatsNewOverview.png")
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ featureId: "IFrameSandboxProperties",
90
+ description: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_DESCRIPTION"),
91
+ documentationUrls: {
92
+ btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/embedding-content",
93
+ s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/8db25610e91342919fcf63d4e5868ae9.html",
94
+ s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/8db25610e91342919fcf63d4e5868ae9.html"
95
+ },
96
+ title: oTextResources.getText("TIT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TITLE"),
97
+ information: [
98
+ {
99
+ text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TEXT"),
100
+ image: null
101
+ },
102
+ {
103
+ text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TEXT_2"),
104
+ image: getImagePath("FullIframe.png")
105
+ },
106
+ {
107
+ text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TEXT_3"),
108
+ image: getImagePath("AdvancedSettingsImage.png")
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ featureId: "MinimenuRemoval",
114
+ title: oTextResources.getText("TIT_WHATS_NEW_DIALOG_MINIMENU_REMOVAL_TITLE"),
115
+ description: oTextResources.getText("TXT_WHATS_NEW_DIALOG_MINIMENU_REMOVAL_DESCRIPTION"),
116
+ documentationUrls: {
117
+ btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/adapting-ui",
118
+ s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/d868950a1e8c4b0f9b9453176939a19b.html",
119
+ s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/d868950a1e8c4b0f9b9453176939a19b.html"
120
+ },
121
+ information: [
122
+ {
123
+ text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_MINIMENU_REMOVAL_TEXT"),
124
+ image: getImagePath("MiniMenu.png")
125
+ }
126
+ ]
127
+ }
128
+ ];
129
+
130
+ /**
131
+ * @returns {object[]} All What's New features
132
+ */
133
+ WhatsNewFeatures.getAllFeatures = function() {
134
+ return aWhatsNewFeaturesContent;
135
+ };
136
+
137
+ return WhatsNewFeatures;
138
+ });