@openui5/sap.ui.rta 1.142.1 → 1.143.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -2
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +18 -27
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +0 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +4 -4
- package/src/sap/ui/rta/appVariant/Feature.js +1 -1
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -3
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +0 -1
- 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/AnnotationCommand.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 +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -3
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -2
- 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/ExtendControllerCommand.js +9 -2
- package/src/sap/ui/rta/command/FlexCommand.js +3 -3
- 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/ManifestCommand.js +2 -2
- 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 +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +3 -3
- package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
- package/src/sap/ui/rta/enablement/elementActionTest.js +5 -5
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +2 -0
- package/src/sap/ui/rta/messagebundle_ar.properties +3 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ca.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cnr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cs.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +3 -0
- package/src/sap/ui/rta/messagebundle_da.properties +3 -0
- package/src/sap/ui/rta/messagebundle_de.properties +3 -0
- package/src/sap/ui/rta/messagebundle_el.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -0
- package/src/sap/ui/rta/messagebundle_et.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +3 -0
- package/src/sap/ui/rta/messagebundle_id.properties +3 -0
- package/src/sap/ui/rta/messagebundle_it.properties +3 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +3 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +3 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +3 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +3 -0
- package/src/sap/ui/rta/messagebundle_mk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ms.properties +3 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_no.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ru.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sv.properties +3 -0
- package/src/sap/ui/rta/messagebundle_th.properties +3 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_vi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +3 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +3 -0
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +3 -3
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +3 -3
- package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +3 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +3 -3
- package/src/sap/ui/rta/plugin/Plugin.js +9 -9
- 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/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +2 -2
- 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 +3 -3
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +61 -48
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -3
- 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/annotations/AnnotationChangeDialog.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +4 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +3 -4
- package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +10 -5
- package/src/sap/ui/rta/service/Outline.js +3 -3
- package/src/sap/ui/rta/service/Property.js +10 -10
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +5 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -0
- package/src/sap/ui/rta/toolbar/Adaptation.js +5 -5
- package/src/sap/ui/rta/toolbar/Base.js +2 -3
- 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 +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +3 -4
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +4 -5
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +3 -4
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +3 -3
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +1 -2
- package/src/sap/ui/rta/util/adaptationStarter.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/resolveBinding.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
|
@@ -237,6 +237,7 @@ IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL=\u6FC0\u6D3B\u9644\u52A
|
|
|
237
237
|
IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_PLACEHOLDER=\u8F93\u5165\u9644\u52A0\u6C99\u76D2\u53C2\u6570
|
|
238
238
|
IFRAME_ADDIFRAME_DIALOG_SHOW_PARAMETERS_BUTTON_TEXT=\u7F16\u8F91 URL \u53C2\u6570
|
|
239
239
|
IFRAME_ADDIFRAME_DIALOG_HIDE_PARAMETERS_TOOLTIP=\u9690\u85CF URL \u53C2\u6570
|
|
240
|
+
IFRAME_ADDIFRAME_DIALOG_UNIT_TOOLTIP=\u8BA1\u91CF\u5355\u4F4D
|
|
240
241
|
|
|
241
242
|
IFRAME_RTA_CONTEXT_MENU_INFO=\u53EF\u4EE5\u4ECE\u5916\u90E8\u5E94\u7528\u7A0B\u5E8F\u6216\u7F51\u7AD9\u5C06\u5185\u5BB9\u5D4C\u5165\u5230\u5E94\u7528\u7A0B\u5E8F\u3002
|
|
242
243
|
LOCALRESET_RTA_CONTEXT_MENU_INFO=\u5220\u9664\u5728\u6B64\u63A7\u4EF6\u4E0A\u4E0B\u6587\u4E2D\u521B\u5EFA\u7684\u4EFB\u4F55\u66F4\u6539\u3002\u4F8B\u5982\uFF1A\u91CD\u547D\u540D\u6216\u79FB\u52A8\u66F4\u6539\u3002
|
|
@@ -308,6 +309,8 @@ BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_SPLIT=\u663E\u793A\u5176\u4ED6\
|
|
|
308
309
|
BUT_CHANGEVISUALIZATION_LEARNMORE=[\u4E86\u89E3\u66F4\u591A]
|
|
309
310
|
TXT_CHANGEVISUALIZATION_INDICATOR_TOOLTIP_SING=1 \u5904\u66F4\u6539
|
|
310
311
|
TXT_CHANGEVISUALIZATION_INDICATOR_TOOLTIP_PLUR={0} \u5904\u66F4\u6539
|
|
312
|
+
TXT_CHANGEVISUALIZATION_GROUP_IN_TITLE=\u5206\u7EC4
|
|
313
|
+
TIT_CHANGEVISUALIZATION_DETAILS=\u8BE6\u7EC6\u4FE1\u606F
|
|
311
314
|
|
|
312
315
|
MSG_ADAPTATION_STARTER_MIXED_CHANGES_WARNING=\u5DF2\u5728\u53E6\u4E00\u7CFB\u7EDF\u4E2D\u5BF9\u6B64\u5E94\u7528\u7A0B\u5E8F\u8FDB\u884C\u4E86 UI \u66F4\u6539\u3002\u4E3A\u907F\u514D\u51B2\u7A81\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u4EC5\u5728\u4E00\u4E2A\u7CFB\u7EDF\u4E2D\u8FDB\u884C UI \u66F4\u6539\uFF0C\u800C\u540E\u5C06\u5176\u4F20\u8F93\u5230\u5176\u4ED6\u7CFB\u7EDF\u3002\u8BF7\u53C2\u9605 [\u8C03\u6574 UI](https\://help.sap.com/docs/search?q\=Adapting%20the%20UI)\u3002
|
|
313
316
|
TIT_ADAPTATION_STARTER_MIXED_CHANGES_TITLE=\u8B66\u544A - \u4E25\u91CD\u51B2\u7A81\u98CE\u9669
|
|
@@ -237,6 +237,7 @@ IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL=\u555F\u7528\u5176\u4ED
|
|
|
237
237
|
IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_PLACEHOLDER=\u8F38\u5165\u5176\u4ED6\u6C99\u7BB1\u53C3\u6578
|
|
238
238
|
IFRAME_ADDIFRAME_DIALOG_SHOW_PARAMETERS_BUTTON_TEXT=\u7DE8\u8F2F URL \u53C3\u6578
|
|
239
239
|
IFRAME_ADDIFRAME_DIALOG_HIDE_PARAMETERS_TOOLTIP=\u96B1\u85CF URL \u53C3\u6578
|
|
240
|
+
IFRAME_ADDIFRAME_DIALOG_UNIT_TOOLTIP=\u8A08\u91CF\u55AE\u4F4D
|
|
240
241
|
|
|
241
242
|
IFRAME_RTA_CONTEXT_MENU_INFO=\u60A8\u53EF\u5C07\u5916\u90E8\u61C9\u7528\u7A0B\u5F0F\u6216\u7DB2\u7AD9\u7684\u5167\u5BB9\u5D4C\u5165\u81F3\u60A8\u7684\u61C9\u7528\u7A0B\u5F0F\u3002
|
|
242
243
|
LOCALRESET_RTA_CONTEXT_MENU_INFO=\u522A\u9664\u5728\u6B64\u63A7\u5236\u9805\u5167\u5BB9\u4E2D\u5EFA\u7ACB\u7684\u66F4\u6539\u5167\u5BB9\uFF0C\u4F8B\u5982\u91CD\u65B0\u547D\u540D\u6216\u79FB\u52D5\u66F4\u6539\u5167\u5BB9\u3002
|
|
@@ -308,6 +309,8 @@ BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_SPLIT=\u986F\u793A\u5176\u4ED6\
|
|
|
308
309
|
BUT_CHANGEVISUALIZATION_LEARNMORE=[\u6DF1\u5165\u77AD\u89E3]
|
|
309
310
|
TXT_CHANGEVISUALIZATION_INDICATOR_TOOLTIP_SING=1 \u500B\u66F4\u6539
|
|
310
311
|
TXT_CHANGEVISUALIZATION_INDICATOR_TOOLTIP_PLUR={0} \u500B\u66F4\u6539
|
|
312
|
+
TXT_CHANGEVISUALIZATION_GROUP_IN_TITLE=\u7FA4\u7D44
|
|
313
|
+
TIT_CHANGEVISUALIZATION_DETAILS=\u660E\u7D30
|
|
311
314
|
|
|
312
315
|
MSG_ADAPTATION_STARTER_MIXED_CHANGES_WARNING=\u6B64\u61C9\u7528\u7A0B\u5F0F\u7684\u4F7F\u7528\u8005\u4ECB\u9762\u66F4\u6539\u5167\u5BB9\u5DF2\u65BC\u5176\u4ED6\u7CFB\u7D71\u4E2D\u57F7\u884C\u3002\u82E5\u8981\u907F\u514D\u885D\u7A81\uFF0C\u5F37\u70C8\u5EFA\u8B70\u53EA\u5728\u4E00\u500B\u7CFB\u7D71\u4E2D\u9032\u884C\u4F7F\u7528\u8005\u4ECB\u9762\u66F4\u6539\uFF0C\u7136\u5F8C\u518D\u5C07\u9019\u4E9B\u66F4\u6539\u5167\u5BB9\u50B3\u8F38\u81F3\u5176\u4ED6\u7CFB\u7D71\u3002\u8ACB\u67E5\u770B [Adapting the UI] (https\://help.sap.com/docs/search?q\=Adapting%20the%20UI)\u3002
|
|
313
316
|
TIT_ADAPTATION_STARTER_MIXED_CHANGES_TITLE=\u8B66\u544A - \u56B4\u91CD\u885D\u7A81\u7684\u98A8\u96AA
|
|
@@ -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.143.1
|
|
53
53
|
* @constructor
|
|
54
54
|
* @private
|
|
55
55
|
* @since 1.78
|
|
@@ -76,10 +76,10 @@ sap.ui.define([
|
|
|
76
76
|
const oElementId = oElement.getId();
|
|
77
77
|
// determine a list of extension points for the given element. In case the element is a view
|
|
78
78
|
// all extension points available for the view are returned
|
|
79
|
-
const aExtensionPointInfo = ExtensionPointRegistryAPI.getExtensionPointInfoByParentId({parentId: oElementId});
|
|
79
|
+
const aExtensionPointInfo = ExtensionPointRegistryAPI.getExtensionPointInfoByParentId({ parentId: oElementId });
|
|
80
80
|
return aExtensionPointInfo.length
|
|
81
81
|
? aExtensionPointInfo
|
|
82
|
-
: values(ExtensionPointRegistryAPI.getExtensionPointInfoByViewId({viewId: oElementId}));
|
|
82
|
+
: values(ExtensionPointRegistryAPI.getExtensionPointInfoByViewId({ viewId: oElementId }));
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
function hasExtensionPoints(oElement) {
|
|
@@ -313,7 +313,7 @@ sap.ui.define([
|
|
|
313
313
|
// the modified flag might be changed before the dialog is closed, so it has to be saved here already
|
|
314
314
|
var bIsModified = oVariantManagementControl.getModified();
|
|
315
315
|
|
|
316
|
-
return oAction.handler(oControl, {styleClass: Utils.getRtaStyleClassName()}).then(function(aChangeContentData) {
|
|
316
|
+
return oAction.handler(oControl, { styleClass: Utils.getRtaStyleClassName() }).then(function(aChangeContentData) {
|
|
317
317
|
if (aChangeContentData && aChangeContentData.length) {
|
|
318
318
|
var sPersistencyKey = aChangeContentData[0].changeSpecificData.content.persistencyKey;
|
|
319
319
|
var aVariants = oVariantManagementControl.getAllVariants();
|
|
@@ -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.143.1
|
|
55
55
|
* @constructor
|
|
56
56
|
* @private
|
|
57
57
|
* @since 1.50
|
|
@@ -486,7 +486,7 @@ sap.ui.define([
|
|
|
486
486
|
const sVariantManagementReference = oOverlay.getVariantManagement();
|
|
487
487
|
|
|
488
488
|
return this.getCommandFactory().getCommandFor(oVMControl, "saveAs", {
|
|
489
|
-
sourceVariantReference: oVMControl.
|
|
489
|
+
sourceVariantReference: oVMControl.getCurrentVariantReference()
|
|
490
490
|
}, oDesignTimeMetadata, sVariantManagementReference)
|
|
491
491
|
.then(function(oSaveAsCommand) {
|
|
492
492
|
this.fireElementModified({
|
|
@@ -619,7 +619,7 @@ sap.ui.define([
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
if (this.isVariantSwitchAvailable(oElementOverlay)) {
|
|
622
|
-
const oCurrentVariant = oVMControl.getVariantByKey(oVMControl.
|
|
622
|
+
const oCurrentVariant = oVMControl.getVariantByKey(oVMControl.getCurrentVariantReference());
|
|
623
623
|
const aSubmenuItems = oVMControl.getVariants().reduce(function(aReducedVariants, oVariant) {
|
|
624
624
|
if (oVariant.getVisible()) {
|
|
625
625
|
const bCurrentItem = oCurrentVariant.getKey() === oVariant.getKey();
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @class The CreateContainer allows trigger CreateContainer operations on the overlay
|
|
30
30
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.143.1
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.34
|
|
@@ -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.143.1
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
*/
|
|
75
75
|
CutPaste.prototype.init = function(...aArgs) {
|
|
76
76
|
ControlCutPaste.prototype.init.apply(this, aArgs);
|
|
77
|
-
this.setElementMover(new RTAElementMover({commandFactory: this.getCommandFactory()}));
|
|
77
|
+
this.setElementMover(new RTAElementMover({ commandFactory: this.getCommandFactory() }));
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -33,7 +33,7 @@ function(
|
|
|
33
33
|
* @extends sap.ui.dt.plugin.ControlDragDrop
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.143.1
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
@@ -75,7 +75,7 @@ function(
|
|
|
75
75
|
*/
|
|
76
76
|
DragDrop.prototype.init = function(...aArgs) {
|
|
77
77
|
ControlDragDrop.prototype.init.apply(this, aArgs);
|
|
78
|
-
this.setElementMover(new RTAElementMover({commandFactory: this.getCommandFactory()}));
|
|
78
|
+
this.setElementMover(new RTAElementMover({ commandFactory: this.getCommandFactory() }));
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
DragDrop.prototype.setCommandFactory = function(oCommandFactory) {
|
|
@@ -211,7 +211,7 @@ function(
|
|
|
211
211
|
aRelevantOverlays = aRelevantOverlays.filter(function(oRelevantOverlay, iIndex, aSource) {
|
|
212
212
|
return iIndex === aSource.indexOf(oRelevantOverlay);
|
|
213
213
|
});
|
|
214
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
214
|
+
this.evaluateEditable(aRelevantOverlays, { onRegistration: false });
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @class
|
|
33
33
|
* @extends sap.ui.rta.plugin.Plugin
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.143.1
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.134
|
|
@@ -130,6 +130,8 @@ sap.ui.define([
|
|
|
130
130
|
|
|
131
131
|
const oElementOverlay = aElementOverlays[0];
|
|
132
132
|
|
|
133
|
+
// If the data returned from the handler has the property instanceSpecific = true,
|
|
134
|
+
// it refers to an instance-specific controller extension. In this case, the view ID will be added to the change content.
|
|
133
135
|
const mExtendControllerData = await fnControllerHandler(oElementOverlay);
|
|
134
136
|
|
|
135
137
|
const oExtendControllerCommand = await this.getCommandFactory().getCommandFor(
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @class
|
|
36
36
|
* @extends sap.ui.rta.plugin.Plugin
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.143.1
|
|
39
39
|
* @constructor
|
|
40
40
|
* @private
|
|
41
41
|
* @since 1.90
|
|
@@ -95,7 +95,7 @@ sap.ui.define([
|
|
|
95
95
|
oRelevantElement,
|
|
96
96
|
{
|
|
97
97
|
layer: this.getCommandFactory().getFlexSettings().layer,
|
|
98
|
-
currentVariant: oVMControl?.
|
|
98
|
+
currentVariant: oVMControl?.getCurrentVariantReference()
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
);
|
|
@@ -129,7 +129,7 @@ sap.ui.define([
|
|
|
129
129
|
const sVariantManagementReference = this.getVariantManagementReference(oOverlay);
|
|
130
130
|
const oAppComponent = FlUtils.getAppComponentForControl(oElement);
|
|
131
131
|
const oVMControl = ControlVariantApplyAPI.getVariantManagementControlByVMReference(sVariantManagementReference, oAppComponent);
|
|
132
|
-
const sCurrentVariantKey = oVMControl?.
|
|
132
|
+
const sCurrentVariantKey = oVMControl?.getCurrentVariantReference();
|
|
133
133
|
const bHasVariant = !!sCurrentVariantKey;
|
|
134
134
|
const oVariantManagementControl = bHasVariant
|
|
135
135
|
? oAppComponent.byId(sVariantManagementReference) || Element.getElementById(sVariantManagementReference)
|
|
@@ -114,7 +114,7 @@ sap.ui.define([
|
|
|
114
114
|
* @extends sap.ui.dt.Plugin
|
|
115
115
|
*
|
|
116
116
|
* @author SAP SE
|
|
117
|
-
* @version 1.
|
|
117
|
+
* @version 1.143.1
|
|
118
118
|
*
|
|
119
119
|
* @constructor
|
|
120
120
|
* @private
|
|
@@ -214,17 +214,17 @@ sap.ui.define([
|
|
|
214
214
|
aRelevantOverlays = this._getRelevantOverlays(oOverlay);
|
|
215
215
|
if (oParams.value === true) {
|
|
216
216
|
this.executeWhenVisible(oOverlay, function() {
|
|
217
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
217
|
+
this.evaluateEditable(aRelevantOverlays, { onRegistration: false });
|
|
218
218
|
}.bind(this));
|
|
219
219
|
} else {
|
|
220
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
220
|
+
this.evaluateEditable(aRelevantOverlays, { onRegistration: false });
|
|
221
221
|
}
|
|
222
222
|
} else if (oParams.type === "afterRendering") {
|
|
223
223
|
if (this.getDesignTime().getStatus() === "synced") {
|
|
224
|
-
this.evaluateEditable([oOverlay], {onRegistration: false});
|
|
224
|
+
this.evaluateEditable([oOverlay], { onRegistration: false });
|
|
225
225
|
} else {
|
|
226
226
|
this.getDesignTime().attachEventOnce("synced", function() {
|
|
227
|
-
this.evaluateEditable([oOverlay], {onRegistration: false});
|
|
227
|
+
this.evaluateEditable([oOverlay], { onRegistration: false });
|
|
228
228
|
}, this);
|
|
229
229
|
}
|
|
230
230
|
} else if (
|
|
@@ -233,7 +233,7 @@ sap.ui.define([
|
|
|
233
233
|
) {
|
|
234
234
|
debounceFunction(this._mDebounceFunctions.insertOrRemove, oOverlay, oParams.name, function() {
|
|
235
235
|
aRelevantOverlays = this._getRelevantOverlays(oOverlay, oParams.name);
|
|
236
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
236
|
+
this.evaluateEditable(aRelevantOverlays, { onRegistration: false });
|
|
237
237
|
}.bind(this));
|
|
238
238
|
} else if (oParams.type === "addOrSetAggregation") {
|
|
239
239
|
debounceFunction(this._mDebounceFunctions.addOrSet, oOverlay, oParams.name, function() {
|
|
@@ -246,11 +246,11 @@ sap.ui.define([
|
|
|
246
246
|
|
|
247
247
|
if (oDesignTime.getStatus() === "synced") {
|
|
248
248
|
aRelevantOverlays = this._getRelevantOverlays(oOverlay, oParams.name);
|
|
249
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
249
|
+
this.evaluateEditable(aRelevantOverlays, { onRegistration: false });
|
|
250
250
|
} else {
|
|
251
251
|
oDesignTime.attachEventOnce("synced", function() {
|
|
252
252
|
aRelevantOverlays = this._getRelevantOverlays(oOverlay, oParams.name);
|
|
253
|
-
this.evaluateEditable(aRelevantOverlays, {onRegistration: false});
|
|
253
|
+
this.evaluateEditable(aRelevantOverlays, { onRegistration: false });
|
|
254
254
|
}, this);
|
|
255
255
|
}
|
|
256
256
|
}.bind(this));
|
|
@@ -348,7 +348,7 @@ sap.ui.define([
|
|
|
348
348
|
|
|
349
349
|
BasePlugin.prototype.registerElementOverlay = function(oOverlay) {
|
|
350
350
|
this.executeWhenVisible(oOverlay, function() {
|
|
351
|
-
this.evaluateEditable([oOverlay], {onRegistration: true});
|
|
351
|
+
this.evaluateEditable([oOverlay], { onRegistration: true });
|
|
352
352
|
oOverlay.attachElementModified(_onElementModified, this);
|
|
353
353
|
}.bind(this));
|
|
354
354
|
};
|
|
@@ -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.143.1
|
|
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", icon: "sap-icon://less"});
|
|
312
|
+
return this._getMenuItems(aElementOverlays, { pluginId: "CTX_REMOVE", icon: "sap-icon://less" });
|
|
313
313
|
};
|
|
314
314
|
|
|
315
315
|
/**
|
|
@@ -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.143.1
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class The Settings allows trigger change of settings operations on the overlay
|
|
31
31
|
* @extends sap.ui.rta.plugin.Plugin
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.143.1
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.44
|
|
@@ -232,7 +232,7 @@ sap.ui.define([
|
|
|
232
232
|
Settings.prototype.handler = function(aElementOverlays, mPropertyBag, oSettingsAction) {
|
|
233
233
|
mPropertyBag ||= {};
|
|
234
234
|
const oElement = aElementOverlays[0].getElement();
|
|
235
|
-
let {fnHandler} = mPropertyBag;
|
|
235
|
+
let { fnHandler } = mPropertyBag;
|
|
236
236
|
|
|
237
237
|
fnHandler ||= aElementOverlays[0].getDesignTimeMetadata().getAction("settings").handler;
|
|
238
238
|
if (!fnHandler) {
|
|
@@ -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.143.1
|
|
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", icon: "sap-icon://split"});
|
|
157
|
+
return this._getMenuItems(vElementOverlays, { pluginId: "CTX_UNGROUP_FIELDS", icon: "sap-icon://split" });
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
/**
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* handled by the AdditionalElements Plugin (Reveal, Add Via Delegate, Add Custom)
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.143.1
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
*/
|
|
@@ -157,7 +157,7 @@ sap.ui.define([
|
|
|
157
157
|
const aRequiredLibraries = Object.keys(mRequiredLibraries || {});
|
|
158
158
|
try {
|
|
159
159
|
for (const sLibrary of aRequiredLibraries) {
|
|
160
|
-
await Lib.load({name: sLibrary});
|
|
160
|
+
await Lib.load({ name: sLibrary });
|
|
161
161
|
}
|
|
162
162
|
return true;
|
|
163
163
|
} catch (vError) {
|
|
@@ -284,7 +284,7 @@ sap.ui.define([
|
|
|
284
284
|
]);
|
|
285
285
|
// join and condense all action data
|
|
286
286
|
const mAllActions = merge(oRevealAction, oAddViaDelegateAction);
|
|
287
|
-
oSourceElementOverlay._mAddActions ||= {asSibling: {}, asChild: {}};
|
|
287
|
+
oSourceElementOverlay._mAddActions ||= { asSibling: {}, asChild: {} };
|
|
288
288
|
oSourceElementOverlay._mAddActions[sSiblingOrChild] = mAllActions;
|
|
289
289
|
return mAllActions;
|
|
290
290
|
};
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @class Context - Dialog for available Fields in Runtime Authoring
|
|
33
33
|
* @extends sap.ui.base.ManagedObject
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.143.1
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.44
|
|
@@ -57,57 +57,81 @@ sap.ui.define([
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
let oRTAResourceModel;
|
|
61
|
-
|
|
62
60
|
/**
|
|
63
61
|
* Initialize the Dialog
|
|
64
62
|
*
|
|
65
63
|
* @private
|
|
66
64
|
*/
|
|
67
65
|
AddElementsDialog.prototype.init = function() {
|
|
68
|
-
this._oDialogPromise = Fragment.load({
|
|
69
|
-
id: this.getId(),
|
|
70
|
-
name: "sap.ui.rta.plugin.additionalElements.AddElementsDialog",
|
|
71
|
-
controller: this
|
|
72
|
-
});
|
|
73
|
-
|
|
74
66
|
this._oDialogModel = new JSONModel({
|
|
75
67
|
elements: [],
|
|
76
68
|
customFieldButtonText: "",
|
|
77
69
|
customFieldButtonVisible: false,
|
|
78
70
|
businessContextVisible: false,
|
|
79
71
|
customFieldButtonTooltip: "",
|
|
80
|
-
businessContextTexts: [{text: ""}], // empty element in first place to be replaced by the headerText (see: addExtensibilityInfo)
|
|
72
|
+
businessContextTexts: [{ text: "" }], // empty element in first place to be replaced by the headerText (see: addExtensibilityInfo)
|
|
81
73
|
extensibilityMenuButtonActive: false,
|
|
82
74
|
extensibilityMenuButtonText: "",
|
|
83
75
|
extensibilityMenuButtonTooltip: "",
|
|
84
76
|
extensibilityOptions: []
|
|
85
77
|
});
|
|
86
78
|
|
|
87
|
-
this.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
this._bDescendingSortOrder = false;
|
|
80
|
+
this.oRTAResourceModel = new ResourceModel({ bundleName: "sap.ui.rta.messagebundle" });
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
AddElementsDialog.prototype.exit = function(...aArgs) {
|
|
84
|
+
if (this._oDialog) {
|
|
85
|
+
this._oDialog.destroy();
|
|
86
|
+
}
|
|
91
87
|
|
|
92
|
-
|
|
88
|
+
if (ManagedObject.prototype.exit) {
|
|
89
|
+
ManagedObject.prototype.exit.apply(this, aArgs);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Create the Add Elements Dialog
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
AddElementsDialog.prototype._createDialog = function() {
|
|
99
|
+
Fragment.load({
|
|
100
|
+
id: this.getId(),
|
|
101
|
+
name: "sap.ui.rta.plugin.additionalElements.AddElementsDialog",
|
|
102
|
+
controller: this
|
|
103
|
+
}).then(function(oDialog) {
|
|
104
|
+
this._oDialog = oDialog;
|
|
105
|
+
this._oDialog.addStyleClass(Utils.getRtaStyleClassName());
|
|
106
|
+
this._oDialog.setModel(this._oDialogModel);
|
|
107
|
+
this._oDialog.setModel(this.oRTAResourceModel, "i18n");
|
|
93
108
|
|
|
94
|
-
this._oDialogModel.setProperty("/listNoDataText", oRTAResourceModel.getProperty("MSG_NO_FIELDS").toLowerCase());
|
|
109
|
+
this._oDialogModel.setProperty("/listNoDataText", this.oRTAResourceModel.getProperty("MSG_NO_FIELDS").toLowerCase());
|
|
95
110
|
|
|
96
111
|
// retrieve List to set the sorting for the 'items' aggregation, since sap.ui.model.Sorter
|
|
97
112
|
// does not support binding to a model property...
|
|
98
113
|
this._oList = Element.getElementById(`${this.getId()}--rta_addElementsDialogList`);
|
|
99
|
-
this.
|
|
114
|
+
this._openDialog();
|
|
100
115
|
}.bind(this));
|
|
101
116
|
};
|
|
102
117
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Open and set up Add Elements Dialog
|
|
120
|
+
*
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
123
|
+
AddElementsDialog.prototype._openDialog = function() {
|
|
124
|
+
this._oDialog.attachAfterOpen(function() {
|
|
125
|
+
this.fireOpened();
|
|
126
|
+
}.bind(this));
|
|
107
127
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
128
|
+
this._oDialog.attachAfterClose(function() {
|
|
129
|
+
this._oDialog.destroy();
|
|
130
|
+
this._oDialog = null;
|
|
131
|
+
// The resolve/reject is handled by the specific dialog close methods (_submitDialog/_cancelDialog)
|
|
132
|
+
}.bind(this));
|
|
133
|
+
|
|
134
|
+
this._oDialog.open();
|
|
111
135
|
};
|
|
112
136
|
|
|
113
137
|
AddElementsDialog.prototype.setCustomFieldButtonVisible = function(bVisible) {
|
|
@@ -120,26 +144,22 @@ sap.ui.define([
|
|
|
120
144
|
|
|
121
145
|
/**
|
|
122
146
|
* Close the dialog.
|
|
123
|
-
* @returns {Promise} a Promise that resolves (to nothing) once the dialog is loaded and closed
|
|
124
147
|
*/
|
|
125
|
-
AddElementsDialog.prototype._submitDialog =
|
|
126
|
-
|
|
127
|
-
oDialog.close();
|
|
148
|
+
AddElementsDialog.prototype._submitDialog = function() {
|
|
149
|
+
this._oDialog.close();
|
|
128
150
|
this._fnResolveOnDialogConfirm();
|
|
129
151
|
// indicate that the dialog has been closed and the selected fields (if any) are to be added to the UI
|
|
130
152
|
};
|
|
131
153
|
|
|
132
154
|
/**
|
|
133
|
-
* Close dialog.
|
|
155
|
+
* Close dialog. Dialog is destroyed.
|
|
134
156
|
*/
|
|
135
157
|
AddElementsDialog.prototype._cancelDialog = function() {
|
|
136
158
|
// clear all selections
|
|
137
159
|
this._oDialogModel.getObject("/elements").forEach(function(oElem) {
|
|
138
160
|
oElem.selected = false;
|
|
139
161
|
});
|
|
140
|
-
this.
|
|
141
|
-
oDialog.close();
|
|
142
|
-
});
|
|
162
|
+
this._oDialog.close();
|
|
143
163
|
// indicate that the dialog has been closed without choosing to add any fields (canceled)
|
|
144
164
|
this._fnRejectOnDialogCancel();
|
|
145
165
|
};
|
|
@@ -161,20 +181,14 @@ sap.ui.define([
|
|
|
161
181
|
/**
|
|
162
182
|
* Open the Field Repository Dialog
|
|
163
183
|
*
|
|
164
|
-
* @returns {Promise}
|
|
184
|
+
* @returns {Promise} Promise that resolves once the dialog is opened
|
|
165
185
|
* @public
|
|
166
186
|
*/
|
|
167
187
|
AddElementsDialog.prototype.open = function() {
|
|
168
188
|
return new Promise(function(resolve, reject) {
|
|
169
189
|
this._fnResolveOnDialogConfirm = resolve;
|
|
170
190
|
this._fnRejectOnDialogCancel = reject;
|
|
171
|
-
|
|
172
|
-
this._oDialogPromise.then(function(oDialog) {
|
|
173
|
-
oDialog.attachAfterOpen(function() {
|
|
174
|
-
this.fireOpened();
|
|
175
|
-
}.bind(this));
|
|
176
|
-
oDialog.open();
|
|
177
|
-
}.bind(this));
|
|
191
|
+
this._createDialog();
|
|
178
192
|
}.bind(this));
|
|
179
193
|
};
|
|
180
194
|
|
|
@@ -219,16 +233,15 @@ sap.ui.define([
|
|
|
219
233
|
* @private
|
|
220
234
|
*/
|
|
221
235
|
AddElementsDialog.prototype._redirectToExtensibilityAction = function(sActionKey) {
|
|
222
|
-
this.fireTriggerExtensibilityAction({actionKey: sActionKey});
|
|
223
|
-
this.
|
|
224
|
-
oDialog.close();
|
|
225
|
-
});
|
|
236
|
+
this.fireTriggerExtensibilityAction({ actionKey: sActionKey });
|
|
237
|
+
this._oDialog.close();
|
|
226
238
|
};
|
|
227
239
|
|
|
228
|
-
AddElementsDialog.prototype.setTitle =
|
|
240
|
+
AddElementsDialog.prototype.setTitle = function(sTitle) {
|
|
229
241
|
ManagedObject.prototype.setProperty.call(this, "title", sTitle, true);
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
if (this._oDialog) {
|
|
243
|
+
this._oDialog.setTitle(sTitle);
|
|
244
|
+
}
|
|
232
245
|
};
|
|
233
246
|
|
|
234
247
|
/**
|
|
@@ -293,7 +306,7 @@ sap.ui.define([
|
|
|
293
306
|
} else {
|
|
294
307
|
// Message "none" when no extension data is available
|
|
295
308
|
aBusinessContextTexts.push({
|
|
296
|
-
text: oRTAResourceModel.getProperty("MSG_NO_BUSINESS_CONTEXTS")
|
|
309
|
+
text: this.oRTAResourceModel.getProperty("MSG_NO_BUSINESS_CONTEXTS")
|
|
297
310
|
});
|
|
298
311
|
}
|
|
299
312
|
// set the container visible
|
|
@@ -119,14 +119,13 @@ 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.143.1
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
126
126
|
* @alias sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
|
|
127
127
|
*/
|
|
128
128
|
const AdditionalElementsPlugin = Plugin.extend("sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin", {
|
|
129
|
-
// eslint-disable-next-line object-shorthand
|
|
130
129
|
constructor: function(...aArgs) {
|
|
131
130
|
this._getMenuItemsPromise = Promise.resolve();
|
|
132
131
|
const [oPropertyBag] = aArgs;
|
|
@@ -244,7 +243,7 @@ sap.ui.define([
|
|
|
244
243
|
const oMetaModel = oModel.getMetaModel();
|
|
245
244
|
if (oMetaModel && oMetaModel.loaded) {
|
|
246
245
|
await oMetaModel.loaded();
|
|
247
|
-
this.evaluateEditable([oOverlay], {onRegistration: true});
|
|
246
|
+
this.evaluateEditable([oOverlay], { onRegistration: true });
|
|
248
247
|
}
|
|
249
248
|
}
|
|
250
249
|
Plugin.prototype.registerElementOverlay.apply(this, aArgs);
|