@openui5/sap.ui.rta 1.126.1 → 1.128.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.
- package/THIRDPARTY.txt +1 -1
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +2 -2
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/api/startAdaptation.js +2 -0
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +2 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +27 -27
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/Annotation.js +46 -0
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +5 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +5 -2
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +11 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +6 -4
- package/src/sap/ui/rta/messagebundle_ar.properties +5 -4
- package/src/sap/ui/rta/messagebundle_bg.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ca.properties +5 -4
- package/src/sap/ui/rta/messagebundle_cnr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_cs.properties +5 -4
- package/src/sap/ui/rta/messagebundle_cy.properties +5 -4
- package/src/sap/ui/rta/messagebundle_da.properties +5 -4
- package/src/sap/ui/rta/messagebundle_de.properties +6 -5
- package/src/sap/ui/rta/messagebundle_el.properties +5 -4
- package/src/sap/ui/rta/messagebundle_en.properties +3 -328
- package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -4
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +63 -53
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +12 -2
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +325 -315
- package/src/sap/ui/rta/messagebundle_es.properties +5 -4
- package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -4
- package/src/sap/ui/rta/messagebundle_et.properties +5 -4
- package/src/sap/ui/rta/messagebundle_fi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_fr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -4
- package/src/sap/ui/rta/messagebundle_hi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_hr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_hu.properties +5 -4
- package/src/sap/ui/rta/messagebundle_id.properties +5 -4
- package/src/sap/ui/rta/messagebundle_it.properties +6 -5
- package/src/sap/ui/rta/messagebundle_iw.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ja.properties +5 -4
- package/src/sap/ui/rta/messagebundle_kk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ko.properties +6 -5
- package/src/sap/ui/rta/messagebundle_lt.properties +5 -4
- package/src/sap/ui/rta/messagebundle_lv.properties +5 -4
- package/src/sap/ui/rta/messagebundle_mk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ms.properties +5 -4
- package/src/sap/ui/rta/messagebundle_nl.properties +5 -4
- package/src/sap/ui/rta/messagebundle_no.properties +5 -4
- package/src/sap/ui/rta/messagebundle_pl.properties +5 -4
- package/src/sap/ui/rta/messagebundle_pt.properties +5 -4
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ro.properties +5 -4
- package/src/sap/ui/rta/messagebundle_ru.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sh.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_sv.properties +5 -4
- package/src/sap/ui/rta/messagebundle_th.properties +5 -4
- package/src/sap/ui/rta/messagebundle_tr.properties +5 -4
- package/src/sap/ui/rta/messagebundle_uk.properties +5 -4
- package/src/sap/ui/rta/messagebundle_vi.properties +5 -4
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -4
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -4
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +5 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +6 -6
- package/src/sap/ui/rta/plugin/ControlVariant.js +6 -6
- package/src/sap/ui/rta/plugin/CreateContainer.js +3 -3
- package/src/sap/ui/rta/plugin/CutPaste.js +3 -3
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +5 -2
- package/src/sap/ui/rta/plugin/Plugin.js +60 -2
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Rename.js +2 -2
- package/src/sap/ui/rta/plugin/RenameHandler.js +5 -2
- package/src/sap/ui/rta/plugin/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +3 -3
- package/src/sap/ui/rta/plugin/Settings.js +35 -11
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +4 -5
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +21 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +42 -30
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +20 -6
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +20 -2
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +8 -10
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +2 -3
- package/src/sap/ui/rta/themes/base/ContextMenu.less +13 -13
- package/src/sap/ui/rta/themes/base/Dialogs.less +2 -2
- package/src/sap/ui/rta/themes/base/FieldRepository.less +5 -10
- package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +9 -4
- package/src/sap/ui/rta/themes/base/Overlay.less +27 -180
- package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +18 -76
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +18 -18
- package/src/sap/ui/rta/themes/base/library.source.less +9 -11
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +2 -1
|
@@ -58,8 +58,8 @@ TIT_VERSION_HISTORY_PUBLISHED=\u5DF2\u53D1\u5E03
|
|
|
58
58
|
TIT_VERSION_HISTORY_UNPUBLISHED=\u672A\u53D1\u5E03
|
|
59
59
|
MSG_DRAFT_ACTIVATION_SUCCESS=\u65B0\u7248\u672C\u5DF2\u6FC0\u6D3B
|
|
60
60
|
MSG_DRAFT_ACTIVATION_FAILED=\u62B1\u6B49\uFF0C\u6B64\u523B\u65E0\u6CD5\u6FC0\u6D3B\u8349\u7A3F\u3002\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002
|
|
61
|
-
MSG_SWITCH_VERSION_FAILED=\u5207\u6362\u7248\u672C\
|
|
62
|
-
MSG_SWITCH_ADAPTATION_FAILED=\u5207\u6362\u8C03\u6574\
|
|
61
|
+
MSG_SWITCH_VERSION_FAILED=\u5207\u6362\u7248\u672C\u65F6\u51FA\u9519\u3002\u8BF7\u91CD\u65B0\u52A0\u8F7D\u3002{0}
|
|
62
|
+
MSG_SWITCH_ADAPTATION_FAILED=\u5207\u6362\u8C03\u6574\u65F6\u51FA\u9519\u3002\u8BF7\u91CD\u65B0\u52A0\u8F7D\u3002
|
|
63
63
|
TIT_VERSION_TITLE=\u6807\u9898
|
|
64
64
|
TIT_VERSION_TITLE_DIALOG=\u6FC0\u6D3B\u65B0\u7248\u672C
|
|
65
65
|
TIT_REACTIVATE_VERSION_TITLE_DIALOG=\u91CD\u65B0\u6FC0\u6D3B\u7248\u672C
|
|
@@ -191,6 +191,7 @@ MSG_NO_FLEX_ENABLED_FLAG=\u672A\u542F\u7528\u5E94\u7528\u7A0B\u5E8F\u8FDB\u884C
|
|
|
191
191
|
IFRAME_ADDIFRAME_DIALOG_TITLE=\u5B9A\u4E49\u5D4C\u5165\u5F0F\u5185\u5BB9
|
|
192
192
|
IFRAME_ADDIFRAME_DIALOG_UPDATE_TITLE=\u66F4\u65B0\u5D4C\u5165\u5F0F\u5185\u5BB9
|
|
193
193
|
IFRAME_ADDIFRAME_DIALOG_SIZE_TITLE=IFrame \u7684\u5927\u5C0F
|
|
194
|
+
IFRAME_ADDIFRAME_DIALOG_DIMENSIONS_ERROR=\u8F93\u5165\u5927\u4E8E 0 \u7684\u6570\u5B57
|
|
194
195
|
IFRAME_ADDIFRAME_DIALOG_WIDTH_LABEL=\u5BBD\u5EA6
|
|
195
196
|
IFRAME_ADDIFRAME_DIALOG_WIDTH_UNITLABEL=\u5BBD\u5EA6\u7684\u5355\u4F4D
|
|
196
197
|
IFRAME_ADDIFRAME_DIALOG_HEIGHT_LABEL=\u9AD8\u5EA6
|
|
@@ -223,8 +224,8 @@ IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_REM=\u76F8\u5BF9\u4E8E\u6839 HTML
|
|
|
223
224
|
IFRAME_ADDIFRAME_ADVANCED_SETTINGS=\u9AD8\u7EA7\u8BBE\u7F6E
|
|
224
225
|
IFRAME_ADDIFRAME_ERROR_UNSAFE_PROTOCOL=\u534F\u8BAE\u4E0D\u88AB\u5141\u8BB8
|
|
225
226
|
IFRAME_ADDIFRAME_ERROR_MIXED_CONTENT=\u4E0D\u5141\u8BB8\u5728 HTTPS \u4E3B\u673A\u4E2D\u5D4C\u5165 HTTP \u5185\u5BB9\u3002
|
|
226
|
-
IFRAME_ADDIFRAME_ERROR_FORBIDDEN_URL=URL \u4E0D\u88AB\u5141\u8BB8\u3002
|
|
227
|
-
IFRAME_ADDIFRAME_ERROR_INVALID_URL=\u8F93\u5165\u6709\u6548\u7684 URL\
|
|
227
|
+
IFRAME_ADDIFRAME_ERROR_FORBIDDEN_URL=URL \u4E0D\u88AB\u5141\u8BB8\u3002\u8BF7\u4E0E\u7CFB\u7EDF\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
|
228
|
+
IFRAME_ADDIFRAME_ERROR_INVALID_URL=\u8F93\u5165\u6709\u6548\u7684 URL\uFF08\u4F8B\u5982 https\://www.sap.com\uFF09
|
|
228
229
|
IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_SECURITY_WARNING_TEXT=\u66F4\u6539\u53C2\u6570\u53EF\u80FD\u4F1A\u5F71\u54CD\u5E94\u7528\u7A0B\u5E8F\u7684\u5B89\u5168\u6027\u3002
|
|
229
230
|
IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_WARNING_MORE_INFO_TEXT=\u66F4\u591A\u4FE1\u606F
|
|
230
231
|
IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL=\u6FC0\u6D3B\u9644\u52A0\u6C99\u76D2\u53C2\u6570\uFF1A
|
|
@@ -58,8 +58,8 @@ TIT_VERSION_HISTORY_PUBLISHED=\u5DF2\u767C\u4F48
|
|
|
58
58
|
TIT_VERSION_HISTORY_UNPUBLISHED=\u672A\u767C\u4F48
|
|
59
59
|
MSG_DRAFT_ACTIVATION_SUCCESS=\u5DF2\u555F\u7528\u65B0\u7248\u672C
|
|
60
60
|
MSG_DRAFT_ACTIVATION_FAILED=\u62B1\u6B49\uFF0C\u73FE\u5728\u7121\u6CD5\u555F\u7528\u8349\u7A3F\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u4E00\u6B21\u3002
|
|
61
|
-
MSG_SWITCH_VERSION_FAILED=\
|
|
62
|
-
MSG_SWITCH_ADAPTATION_FAILED=\
|
|
61
|
+
MSG_SWITCH_VERSION_FAILED=\u5207\u63DB\u7248\u672C\u6642\u767C\u751F\u932F\u8AA4\uFF0C\u8ACB\u91CD\u65B0\u8F09\u5165\u3002\n {0}
|
|
62
|
+
MSG_SWITCH_ADAPTATION_FAILED=\u5207\u63DB\u8ABF\u6574\u5167\u5BB9\u6642\u767C\u751F\u932F\u8AA4\uFF0C\u8ACB\u91CD\u65B0\u8F09\u5165\u3002
|
|
63
63
|
TIT_VERSION_TITLE=\u6A19\u984C
|
|
64
64
|
TIT_VERSION_TITLE_DIALOG=\u555F\u7528\u65B0\u7248\u672C
|
|
65
65
|
TIT_REACTIVATE_VERSION_TITLE_DIALOG=\u91CD\u65B0\u555F\u7528\u7248\u672C
|
|
@@ -191,6 +191,7 @@ MSG_NO_FLEX_ENABLED_FLAG=\u60A8\u7684\u61C9\u7528\u7A0B\u5F0F\u672A\u555F\u7528\
|
|
|
191
191
|
IFRAME_ADDIFRAME_DIALOG_TITLE=\u5B9A\u7FA9\u5167\u5D4C\u5167\u5BB9
|
|
192
192
|
IFRAME_ADDIFRAME_DIALOG_UPDATE_TITLE=\u66F4\u65B0\u5167\u5D4C\u5167\u5BB9
|
|
193
193
|
IFRAME_ADDIFRAME_DIALOG_SIZE_TITLE=IFrame \u5927\u5C0F
|
|
194
|
+
IFRAME_ADDIFRAME_DIALOG_DIMENSIONS_ERROR=\u8F38\u5165\u5927\u65BC 0 \u7684\u6578\u5B57
|
|
194
195
|
IFRAME_ADDIFRAME_DIALOG_WIDTH_LABEL=\u5BEC\u5EA6
|
|
195
196
|
IFRAME_ADDIFRAME_DIALOG_WIDTH_UNITLABEL=\u5BEC\u5EA6\u55AE\u4F4D
|
|
196
197
|
IFRAME_ADDIFRAME_DIALOG_HEIGHT_LABEL=\u9AD8\u5EA6
|
|
@@ -223,8 +224,8 @@ IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_REM=\u76F8\u5C0D\u65BC\u6839 HTML
|
|
|
223
224
|
IFRAME_ADDIFRAME_ADVANCED_SETTINGS=\u9032\u968E\u8A2D\u5B9A
|
|
224
225
|
IFRAME_ADDIFRAME_ERROR_UNSAFE_PROTOCOL=\u4E0D\u5141\u8A31\u901A\u8A0A\u5354\u5B9A\u3002
|
|
225
226
|
IFRAME_ADDIFRAME_ERROR_MIXED_CONTENT=\u4E0D\u5141\u8A31 HTTPS \u4E3B\u6A5F\u4E2D\u7684\u5167\u5D4C HTTP \u5167\u5BB9\u3002
|
|
226
|
-
IFRAME_ADDIFRAME_ERROR_FORBIDDEN_URL=\u4E0D\u5141\u8A31 URL\u3002
|
|
227
|
-
IFRAME_ADDIFRAME_ERROR_INVALID_URL=\u8F38\u5165\u6709\u6548\u7684 URL\
|
|
227
|
+
IFRAME_ADDIFRAME_ERROR_FORBIDDEN_URL=\u4E0D\u5141\u8A31 URL\uFF0C\u8ACB\u806F\u7D61\u7CFB\u7D71\u7BA1\u7406\u54E1\u3002
|
|
228
|
+
IFRAME_ADDIFRAME_ERROR_INVALID_URL=\u8F38\u5165\u6709\u6548\u7684 URL (\u4F8B\u5982 https\://www.sap.com)
|
|
228
229
|
IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_SECURITY_WARNING_TEXT=\u66F4\u6539\u53C3\u6578\u6642\u53EF\u80FD\u6703\u5F71\u97FF\u61C9\u7528\u7A0B\u5F0F\u5B89\u5168\u6027\u3002
|
|
229
230
|
IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_WARNING_MORE_INFO_TEXT=\u66F4\u591A\u8CC7\u8A0A
|
|
230
231
|
IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL=\u555F\u7528\u5176\u4ED6\u6C99\u7BB1\u53C3\u6578\uFF1A
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @class
|
|
50
50
|
* @extends sap.ui.rta.plugin.Plugin
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.128.0
|
|
53
53
|
* @constructor
|
|
54
54
|
* @private
|
|
55
55
|
* @since 1.78
|
|
@@ -258,7 +258,10 @@ sap.ui.define([
|
|
|
258
258
|
* @returns {object[]} Array of the items with required data
|
|
259
259
|
*/
|
|
260
260
|
AddXMLAtExtensionPoint.prototype.getMenuItems = function(aElementOverlays) {
|
|
261
|
-
return this._getMenuItems(aElementOverlays, {
|
|
261
|
+
return this._getMenuItems(aElementOverlays, {
|
|
262
|
+
pluginId: "CTX_ADDXML_AT_EXTENSIONPOINT",
|
|
263
|
+
icon: "sap-icon://add-equipment"
|
|
264
|
+
});
|
|
262
265
|
};
|
|
263
266
|
|
|
264
267
|
/**
|
|
@@ -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.
|
|
28
|
+
* @version 1.128.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.46
|
|
@@ -200,7 +200,6 @@ sap.ui.define([
|
|
|
200
200
|
aElementOverlays,
|
|
201
201
|
{
|
|
202
202
|
pluginId: "CTX_GROUP_FIELDS",
|
|
203
|
-
rank: 90,
|
|
204
203
|
icon: "sap-icon://combine"
|
|
205
204
|
}
|
|
206
205
|
);
|
|
@@ -365,7 +365,7 @@ sap.ui.define([
|
|
|
365
365
|
text: this.getActionText(oElementOverlay, this.getAction(oElementOverlay)),
|
|
366
366
|
handler: changeContent.bind(this),
|
|
367
367
|
enabled: true,
|
|
368
|
-
rank:
|
|
368
|
+
rank: this.getRank("CTX_COMP_VARIANT_CONTENT"),
|
|
369
369
|
icon: "sap-icon://key-user-settings"
|
|
370
370
|
});
|
|
371
371
|
} else {
|
|
@@ -382,7 +382,7 @@ sap.ui.define([
|
|
|
382
382
|
text: oLibraryBundle.getText("CTX_RENAME"),
|
|
383
383
|
handler: renameVariant.bind(this),
|
|
384
384
|
enabled: true,
|
|
385
|
-
rank:
|
|
385
|
+
rank: this.getRank("CTX_COMP_VARIANT_RENAME"),
|
|
386
386
|
icon: "sap-icon://edit"
|
|
387
387
|
});
|
|
388
388
|
}
|
|
@@ -393,7 +393,7 @@ sap.ui.define([
|
|
|
393
393
|
text: oLibraryBundle.getText("CTX_VARIANT_SAVE"),
|
|
394
394
|
handler: saveVariant.bind(this),
|
|
395
395
|
enabled: isSaveEnabled,
|
|
396
|
-
rank:
|
|
396
|
+
rank: this.getRank("CTX_COMP_VARIANT_SAVE"),
|
|
397
397
|
icon: "sap-icon://save"
|
|
398
398
|
});
|
|
399
399
|
}
|
|
@@ -403,7 +403,7 @@ sap.ui.define([
|
|
|
403
403
|
text: oLibraryBundle.getText("CTX_VARIANT_SAVEAS"),
|
|
404
404
|
handler: saveAsNewVariant.bind(this),
|
|
405
405
|
enabled: true,
|
|
406
|
-
rank:
|
|
406
|
+
rank: this.getRank("CTX_COMP_VARIANT_SAVE_AS"),
|
|
407
407
|
icon: "sap-icon://duplicate"
|
|
408
408
|
});
|
|
409
409
|
|
|
@@ -412,7 +412,7 @@ sap.ui.define([
|
|
|
412
412
|
text: oLibraryBundle.getText("CTX_VARIANT_MANAGE"),
|
|
413
413
|
handler: configureVariants.bind(this),
|
|
414
414
|
enabled: true,
|
|
415
|
-
rank:
|
|
415
|
+
rank: this.getRank("CTX_COMP_VARIANT_MANAGE"),
|
|
416
416
|
icon: "sap-icon://action-settings"
|
|
417
417
|
});
|
|
418
418
|
|
|
@@ -433,7 +433,7 @@ sap.ui.define([
|
|
|
433
433
|
handler: switchVariant.bind(this),
|
|
434
434
|
enabled: isSwitchEnabled,
|
|
435
435
|
submenu: aSubmenuItems,
|
|
436
|
-
rank:
|
|
436
|
+
rank: this.getRank("CTX_COMP_VARIANT_SWITCH"),
|
|
437
437
|
icon: "sap-icon://switch-views"
|
|
438
438
|
});
|
|
439
439
|
}
|
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
* @class The ControlVariant allows propagation of variantManagement key
|
|
52
52
|
* @extends sap.ui.rta.plugin.Plugin
|
|
53
53
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
54
|
+
* @version 1.128.0
|
|
55
55
|
* @constructor
|
|
56
56
|
* @private
|
|
57
57
|
* @since 1.50
|
|
@@ -639,7 +639,7 @@ sap.ui.define([
|
|
|
639
639
|
text: Lib.getResourceBundleFor("sap.ui.rta").getText("CTX_RENAME"),
|
|
640
640
|
handler: this.renameVariant.bind(this),
|
|
641
641
|
enabled: this.isRenameEnabled.bind(this),
|
|
642
|
-
rank:
|
|
642
|
+
rank: this.getRank("CTX_VARIANT_SET_TITLE"),
|
|
643
643
|
icon: "sap-icon://edit"
|
|
644
644
|
});
|
|
645
645
|
}
|
|
@@ -650,7 +650,7 @@ sap.ui.define([
|
|
|
650
650
|
text: Lib.getResourceBundleFor("sap.ui.rta").getText("CTX_VARIANT_SAVE"),
|
|
651
651
|
handler: this.createSaveCommand.bind(this),
|
|
652
652
|
enabled: this.isVariantSaveEnabled.bind(this),
|
|
653
|
-
rank:
|
|
653
|
+
rank: this.getRank("CTX_VARIANT_SAVE"),
|
|
654
654
|
icon: "sap-icon://save"
|
|
655
655
|
});
|
|
656
656
|
}
|
|
@@ -661,7 +661,7 @@ sap.ui.define([
|
|
|
661
661
|
text: Lib.getResourceBundleFor("sap.ui.rta").getText("CTX_VARIANT_SAVEAS"),
|
|
662
662
|
handler: this.createSaveAsCommand.bind(this),
|
|
663
663
|
enabled: this.isVariantSaveAsEnabled.bind(this),
|
|
664
|
-
rank:
|
|
664
|
+
rank: this.getRank("CTX_VARIANT_SAVEAS"),
|
|
665
665
|
icon: "sap-icon://duplicate"
|
|
666
666
|
});
|
|
667
667
|
}
|
|
@@ -673,7 +673,7 @@ sap.ui.define([
|
|
|
673
673
|
handler: this.configureVariants.bind(this),
|
|
674
674
|
enabled: this.isVariantConfigureEnabled.bind(this),
|
|
675
675
|
startSection: true,
|
|
676
|
-
rank:
|
|
676
|
+
rank: this.getRank("CTX_VARIANT_MANAGE"),
|
|
677
677
|
icon: "sap-icon://action-settings"
|
|
678
678
|
});
|
|
679
679
|
}
|
|
@@ -707,7 +707,7 @@ sap.ui.define([
|
|
|
707
707
|
}.bind(this),
|
|
708
708
|
enabled: this.isVariantSwitchEnabled.bind(this),
|
|
709
709
|
submenu: aSubmenuItems,
|
|
710
|
-
rank:
|
|
710
|
+
rank: this.getRank("CTX_VARIANT_SWITCH_SUBMENU"),
|
|
711
711
|
icon: "sap-icon://switch-views"
|
|
712
712
|
});
|
|
713
713
|
}
|
|
@@ -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.
|
|
28
|
+
* @version 1.128.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.34
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
CreateContainer.prototype.getMenuItems = function(aElementOverlays) {
|
|
116
116
|
var bOverlayIsSibling = true;
|
|
117
117
|
var sPluginId = "CTX_CREATE_SIBLING_CONTAINER";
|
|
118
|
-
var iRank =
|
|
118
|
+
var iRank = this.getRank(sPluginId);
|
|
119
119
|
var aMenuItems = [];
|
|
120
120
|
|
|
121
121
|
var isMenuItemEnabled = function(bOverlayIsSibling, aOverlays) {
|
|
@@ -135,7 +135,7 @@ sap.ui.define([
|
|
|
135
135
|
}
|
|
136
136
|
bOverlayIsSibling = false;
|
|
137
137
|
sPluginId = "CTX_CREATE_CHILD_CONTAINER";
|
|
138
|
-
iRank =
|
|
138
|
+
iRank = this.getRank(sPluginId);
|
|
139
139
|
}
|
|
140
140
|
return aMenuItems;
|
|
141
141
|
};
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @extends sap.ui.dt.plugin.CutPaste
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.128.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -182,7 +182,7 @@ sap.ui.define([
|
|
|
182
182
|
enabled: function(aElementOverlays) {
|
|
183
183
|
return this.isElementPasteable(aElementOverlays[0]);
|
|
184
184
|
}.bind(this),
|
|
185
|
-
rank:
|
|
185
|
+
rank: this.getRank("CTX_PASTE"),
|
|
186
186
|
icon: "sap-icon://paste"
|
|
187
187
|
}, aElementOverlays, ["move"]);
|
|
188
188
|
var aResponsibleElementOverlays = oPasteMenuItem.responsible || aElementOverlays;
|
|
@@ -197,7 +197,7 @@ sap.ui.define([
|
|
|
197
197
|
enabled(aElementOverlays) {
|
|
198
198
|
return aElementOverlays.length === 1;
|
|
199
199
|
},
|
|
200
|
-
rank:
|
|
200
|
+
rank: this.getRank("CTX_CUT"),
|
|
201
201
|
icon: "sap-icon://scissors"
|
|
202
202
|
}, aElementOverlays, ["move"]);
|
|
203
203
|
aMenuItems.push(oCutMenuItem, oPasteMenuItem);
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @class
|
|
42
42
|
* @extends sap.ui.rta.plugin.Plugin
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.128.0
|
|
45
45
|
* @constructor
|
|
46
46
|
* @private
|
|
47
47
|
* @since 1.90
|
|
@@ -113,7 +113,10 @@ sap.ui.define([
|
|
|
113
113
|
* @return {object[]} Array of the items with required data
|
|
114
114
|
*/
|
|
115
115
|
LocalReset.prototype.getMenuItems = function(vElementOverlays) {
|
|
116
|
-
return this._getMenuItems(vElementOverlays, {
|
|
116
|
+
return this._getMenuItems(vElementOverlays, {
|
|
117
|
+
pluginId: "CTX_LOCAL_RESET",
|
|
118
|
+
icon: "sap-icon://reset"
|
|
119
|
+
});
|
|
117
120
|
};
|
|
118
121
|
|
|
119
122
|
/**
|
|
@@ -24,6 +24,39 @@ sap.ui.define([
|
|
|
24
24
|
) {
|
|
25
25
|
"use strict";
|
|
26
26
|
|
|
27
|
+
// The ranks define the order of the plugin actions in the context menu
|
|
28
|
+
const CONTEXT_MENU_RANKS = {
|
|
29
|
+
CTX_RENAME: 10,
|
|
30
|
+
CTX_ADD_ELEMENTS_AS_SIBLING: 20,
|
|
31
|
+
CTX_ADD_ELEMENTS_AS_CHILD: 25,
|
|
32
|
+
CTX_ADD_ELEMENTS_CHILD_AND_SIBLING: 30,
|
|
33
|
+
CTX_CREATE_SIBLING_CONTAINER: 40,
|
|
34
|
+
CTX_CREATE_CHILD_CONTAINER: 50,
|
|
35
|
+
CTX_REMOVE: 60,
|
|
36
|
+
CTX_LOCAL_RESET: 65,
|
|
37
|
+
CTX_CUT: 70,
|
|
38
|
+
CTX_PASTE: 80,
|
|
39
|
+
CTX_GROUP_FIELDS: 90,
|
|
40
|
+
CTX_UNGROUP_FIELDS: 100,
|
|
41
|
+
CTX_ADDXML_AT_EXTENSIONPOINT: 105,
|
|
42
|
+
// Settings ranks go up 1 by 1 for each setting
|
|
43
|
+
CTX_SETTINGS: 110,
|
|
44
|
+
// IFrame ranks go up 1 by 1 for each possible child target
|
|
45
|
+
CTX_CREATE_SIBLING_IFRAME: 130,
|
|
46
|
+
// Variant types are mutually exclusive
|
|
47
|
+
CTX_VARIANT_SET_TITLE: 140,
|
|
48
|
+
CTX_COMP_VARIANT_RENAME: 140,
|
|
49
|
+
CTX_VARIANT_SAVE: 150,
|
|
50
|
+
CTX_COMP_VARIANT_SAVE: 150,
|
|
51
|
+
CTX_VARIANT_SAVEAS: 160,
|
|
52
|
+
CTX_COMP_VARIANT_SAVE_AS: 160,
|
|
53
|
+
CTX_VARIANT_MANAGE: 170,
|
|
54
|
+
CTX_COMP_VARIANT_MANAGE: 170,
|
|
55
|
+
CTX_VARIANT_SWITCH_SUBMENU: 180,
|
|
56
|
+
CTX_COMP_VARIANT_SWITCH: 180,
|
|
57
|
+
CTX_COMP_VARIANT_CONTENT: 190
|
|
58
|
+
};
|
|
59
|
+
|
|
27
60
|
function _handleEditableByPlugin(mPropertyBag, aPromises, oSourceElementOverlay) {
|
|
28
61
|
// when a control gets destroyed it gets deregistered before it gets removed from the parent aggregation.
|
|
29
62
|
// this means that getElementInstance is undefined when we get here via removeAggregation mutation
|
|
@@ -70,7 +103,7 @@ sap.ui.define([
|
|
|
70
103
|
* @extends sap.ui.dt.Plugin
|
|
71
104
|
*
|
|
72
105
|
* @author SAP SE
|
|
73
|
-
* @version 1.
|
|
106
|
+
* @version 1.128.0
|
|
74
107
|
*
|
|
75
108
|
* @constructor
|
|
76
109
|
* @private
|
|
@@ -438,5 +471,30 @@ sap.ui.define([
|
|
|
438
471
|
return Promise.resolve(false);
|
|
439
472
|
};
|
|
440
473
|
|
|
474
|
+
/**
|
|
475
|
+
* Returns the rank (order) of the plugin action in the context menu.
|
|
476
|
+
* @param {string} sPluginId Plugin ID
|
|
477
|
+
* @return {number} Rank of the plugin action
|
|
478
|
+
*/
|
|
479
|
+
BasePlugin.prototype.getRank = function(sPluginId) {
|
|
480
|
+
return CONTEXT_MENU_RANKS[sPluginId];
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Generic function to return the menu items for a context menu.
|
|
485
|
+
* Retrieves the rank and then calls the method from the DT Plugin.
|
|
486
|
+
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - Target overlays
|
|
487
|
+
* @param {object} mPropertyBag Additional properties for the menu item
|
|
488
|
+
* @param {string} mPropertyBag.pluginId The ID of the plugin
|
|
489
|
+
* @param {string} mPropertyBag.icon an icon for the Button inside the context menu
|
|
490
|
+
* @param {string} mPropertyBag.group A group for buttons which should be grouped together in the MiniMenu
|
|
491
|
+
* @param {number} [mPropertyBag.rank] The rank (order) of the plugin action in the context menu
|
|
492
|
+
* @return {object[]} Returns an array with the object containing the required data for a context menu item
|
|
493
|
+
*/
|
|
494
|
+
BasePlugin.prototype._getMenuItems = function(aElementOverlays, mPropertyBag) {
|
|
495
|
+
mPropertyBag.rank ||= this.getRank(mPropertyBag.pluginId);
|
|
496
|
+
return Plugin.prototype._getMenuItems.apply(this, [aElementOverlays, mPropertyBag]);
|
|
497
|
+
};
|
|
498
|
+
|
|
441
499
|
return BasePlugin;
|
|
442
|
-
});
|
|
500
|
+
});
|
|
@@ -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.
|
|
32
|
+
* @version 1.128.0
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.34
|
|
@@ -309,7 +309,7 @@ sap.ui.define([
|
|
|
309
309
|
* @return {object[]} - array of the items with required data
|
|
310
310
|
*/
|
|
311
311
|
Remove.prototype.getMenuItems = function(aElementOverlays) {
|
|
312
|
-
return this._getMenuItems(aElementOverlays, {pluginId: "CTX_REMOVE",
|
|
312
|
+
return this._getMenuItems(aElementOverlays, {pluginId: "CTX_REMOVE", icon: "sap-icon://less"});
|
|
313
313
|
};
|
|
314
314
|
|
|
315
315
|
/**
|
|
@@ -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.
|
|
31
|
+
* @version 1.128.0
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
@@ -213,7 +213,7 @@ sap.ui.define([
|
|
|
213
213
|
* @return {object[]} - array of the items with required data
|
|
214
214
|
*/
|
|
215
215
|
Rename.prototype.getMenuItems = function(vElementOverlays) {
|
|
216
|
-
return this._getMenuItems(vElementOverlays, { pluginId: "CTX_RENAME",
|
|
216
|
+
return this._getMenuItems(vElementOverlays, { pluginId: "CTX_RENAME", icon: "sap-icon://edit" });
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
/**
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* Provides Rename handling functionality
|
|
44
44
|
*
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.128.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
|
@@ -234,7 +234,6 @@ sap.ui.define([
|
|
|
234
234
|
jQuery(_oWrapperDomRef).offset({left: DOMUtil.getOffset(this._oEditableControlDomRef).left});
|
|
235
235
|
RenameHandler._setEditableFieldPosition.apply(this);
|
|
236
236
|
this._oEditableField.style.visibility = "";
|
|
237
|
-
this._oEditableField.focus();
|
|
238
237
|
|
|
239
238
|
// If scrolling happens during startEdit, the position of the editable field can be wrong
|
|
240
239
|
// To avoid this, the position is recalculated after the scrollbar synchronization is ready
|
|
@@ -243,6 +242,10 @@ sap.ui.define([
|
|
|
243
242
|
oOverlayWithScrollbar.attachScrollSynced(RenameHandler._setEditableFieldPosition, this);
|
|
244
243
|
}.bind(this));
|
|
245
244
|
|
|
245
|
+
// The focus can trigger an immediate blur event (e.g. when the "discard draft" pop-up is opened),
|
|
246
|
+
// therefore the entire editable field preparation has to be finalized before the focus is set.
|
|
247
|
+
this._oEditableField.focus();
|
|
248
|
+
|
|
246
249
|
// keep Overlay selected while renaming
|
|
247
250
|
mPropertyBag.overlay.setSelected(true);
|
|
248
251
|
EventBus.getInstance().publish("sap.ui.rta", mPropertyBag.pluginMethodName, {
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
32
32
|
* @extends sap.ui.rta.plugin.Plugin
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.128.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -347,7 +347,7 @@ sap.ui.define([
|
|
|
347
347
|
if (oOverlay !== this._oHoverTarget) {
|
|
348
348
|
this._removePreviousHover();
|
|
349
349
|
this._oHoverTarget = oOverlay;
|
|
350
|
-
|
|
350
|
+
this.getDesignTime().getSelectionManager().addHover(oOverlay);
|
|
351
351
|
}
|
|
352
352
|
preventEventDefaultAndPropagation(oEvent);
|
|
353
353
|
}
|
|
@@ -380,7 +380,7 @@ sap.ui.define([
|
|
|
380
380
|
*/
|
|
381
381
|
Selection.prototype._removePreviousHover = function() {
|
|
382
382
|
if (this._oHoverTarget) {
|
|
383
|
-
this.
|
|
383
|
+
this.getDesignTime().getSelectionManager().removeHover(this._oHoverTarget);
|
|
384
384
|
}
|
|
385
385
|
delete this._oHoverTarget;
|
|
386
386
|
};
|
|
@@ -5,15 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/
|
|
9
|
-
"sap/ui/rta/Utils",
|
|
8
|
+
"sap/base/Log",
|
|
10
9
|
"sap/ui/dt/Util",
|
|
11
|
-
"sap/
|
|
10
|
+
"sap/ui/fl/Utils",
|
|
11
|
+
"sap/ui/rta/plugin/Plugin",
|
|
12
|
+
"sap/ui/rta/Utils"
|
|
13
|
+
|
|
12
14
|
], function(
|
|
13
|
-
|
|
14
|
-
Utils,
|
|
15
|
+
BaseLog,
|
|
15
16
|
DtUtil,
|
|
16
|
-
|
|
17
|
+
FlUtils,
|
|
18
|
+
Plugin,
|
|
19
|
+
Utils
|
|
17
20
|
) {
|
|
18
21
|
"use strict";
|
|
19
22
|
|
|
@@ -25,7 +28,7 @@ sap.ui.define([
|
|
|
25
28
|
* @class The Settings allows trigger change of settings operations on the overlay
|
|
26
29
|
* @extends sap.ui.rta.plugin.Plugin
|
|
27
30
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
31
|
+
* @version 1.128.0
|
|
29
32
|
* @constructor
|
|
30
33
|
* @private
|
|
31
34
|
* @since 1.44
|
|
@@ -166,6 +169,22 @@ sap.ui.define([
|
|
|
166
169
|
});
|
|
167
170
|
};
|
|
168
171
|
|
|
172
|
+
Settings.prototype._handleAnnotationChangeCommand = function(mChange, oElement, oCompositeCommand) {
|
|
173
|
+
var mChangeSpecificData = mChange.changeSpecificData;
|
|
174
|
+
|
|
175
|
+
return this.getCommandFactory().getCommandFor(
|
|
176
|
+
oElement,
|
|
177
|
+
"annotation",
|
|
178
|
+
{
|
|
179
|
+
content: mChangeSpecificData.content,
|
|
180
|
+
changeType: mChangeSpecificData.annotationChangeType
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
.then(function(oAnnotationCommand) {
|
|
184
|
+
return oCompositeCommand.addCommand(oAnnotationCommand);
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
|
|
169
188
|
Settings.prototype._handleCompositeCommand = function(aElementOverlays, oElement, aChanges, oSettingsAction) {
|
|
170
189
|
var oCompositeCommand;
|
|
171
190
|
|
|
@@ -180,17 +199,22 @@ sap.ui.define([
|
|
|
180
199
|
var mChangeSpecificData = mChange.changeSpecificData;
|
|
181
200
|
// Flex Change
|
|
182
201
|
if (mChangeSpecificData.changeType) {
|
|
183
|
-
return this._handleFlexChangeCommand(mChange, aElementOverlays, oCompositeCommand, oSettingsAction);
|
|
202
|
+
return () => this._handleFlexChangeCommand(mChange, aElementOverlays, oCompositeCommand, oSettingsAction);
|
|
184
203
|
// App Descriptor Change
|
|
185
204
|
} else if (mChangeSpecificData.appDescriptorChangeType) {
|
|
186
|
-
return this._handleAppDescriptorChangeCommand(mChange, oElement, oCompositeCommand);
|
|
205
|
+
return () => this._handleAppDescriptorChangeCommand(mChange, oElement, oCompositeCommand);
|
|
206
|
+
// Annotation Change
|
|
207
|
+
} else if (mChangeSpecificData.annotationChangeType) {
|
|
208
|
+
return () => this._handleAnnotationChangeCommand(mChange, oElement, oCompositeCommand);
|
|
187
209
|
}
|
|
188
210
|
return undefined;
|
|
189
211
|
}, this);
|
|
190
212
|
}.bind(this))
|
|
191
213
|
|
|
192
214
|
.then(function(aPromises) {
|
|
193
|
-
|
|
215
|
+
// Since oCompositeCommand gets modified by each handler, the promise execution must be sequential
|
|
216
|
+
// to ensure the correct order of the commands
|
|
217
|
+
return FlUtils.execPromiseQueueSequentially(aPromises);
|
|
194
218
|
})
|
|
195
219
|
|
|
196
220
|
.then(function() {
|
|
@@ -255,7 +279,7 @@ sap.ui.define([
|
|
|
255
279
|
|
|
256
280
|
const aMenuItems = [];
|
|
257
281
|
if (vSettingsActions) {
|
|
258
|
-
const iRank =
|
|
282
|
+
const iRank = this.getRank("CTX_SETTINGS");
|
|
259
283
|
|
|
260
284
|
if (vSettingsActions.handler) {
|
|
261
285
|
vSettingsActions = {
|
|
@@ -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.
|
|
26
|
+
* @version 1.128.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.46
|
|
@@ -154,7 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
* @return {object[]} - array of the items with required data
|
|
155
155
|
*/
|
|
156
156
|
Split.prototype.getMenuItems = function(vElementOverlays) {
|
|
157
|
-
return this._getMenuItems(vElementOverlays, {pluginId: "CTX_UNGROUP_FIELDS",
|
|
157
|
+
return this._getMenuItems(vElementOverlays, {pluginId: "CTX_UNGROUP_FIELDS", icon: "sap-icon://split"});
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
/**
|
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
120
120
|
* @extends sap.ui.rta.plugin.Plugin
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.128.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
@@ -608,7 +608,7 @@ sap.ui.define([
|
|
|
608
608
|
enabled: bHasSubMenu || function(bOverlayIsSibling, aElementOverlays) {
|
|
609
609
|
return this.isEnabled(aElementOverlays, bOverlayIsSibling, sAggregationName);
|
|
610
610
|
}.bind(this, bOverlayIsSibling),
|
|
611
|
-
rank:
|
|
611
|
+
rank: this.getRank(sPluginId),
|
|
612
612
|
icon: "sap-icon://add",
|
|
613
613
|
handler: vHandler
|
|
614
614
|
};
|