@openui5/sap.ui.rta 1.100.0 → 1.102.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/THIRDPARTY.txt +5 -5
- 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 +141 -86
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +0 -17
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n.properties +0 -4
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ar.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_bg.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ca.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cs.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cy.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_da.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_de.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_el.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_GB.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saprigi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es_MX.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_et.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr_CA.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hr.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hu.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_id.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_it.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_iw.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ja.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_kk.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ko.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lt.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lv.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ms.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_nl.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_no.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pl.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt_PT.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ro.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ru.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sh.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sk.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sl.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sv.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_th.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_tr.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_uk.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_vi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_CN.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_TW.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/view/ManageApps.view.xml +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/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 +8 -2
- 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 +3 -3
- 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 +45 -0
- 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 +8 -6
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +82 -0
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -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 +6 -9
- package/src/sap/ui/rta/messagebundle.properties +24 -8
- package/src/sap/ui/rta/messagebundle_ar.properties +14 -6
- package/src/sap/ui/rta/messagebundle_bg.properties +16 -8
- package/src/sap/ui/rta/messagebundle_ca.properties +15 -7
- package/src/sap/ui/rta/messagebundle_cs.properties +14 -6
- package/src/sap/ui/rta/messagebundle_cy.properties +14 -6
- package/src/sap/ui/rta/messagebundle_da.properties +14 -6
- package/src/sap/ui/rta/messagebundle_de.properties +14 -6
- package/src/sap/ui/rta/messagebundle_el.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_GB.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +14 -6
- package/src/sap/ui/rta/messagebundle_es.properties +14 -6
- package/src/sap/ui/rta/messagebundle_es_MX.properties +14 -6
- package/src/sap/ui/rta/messagebundle_et.properties +14 -6
- package/src/sap/ui/rta/messagebundle_fi.properties +14 -6
- package/src/sap/ui/rta/messagebundle_fr.properties +14 -6
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -6
- package/src/sap/ui/rta/messagebundle_hi.properties +13 -5
- package/src/sap/ui/rta/messagebundle_hr.properties +14 -6
- package/src/sap/ui/rta/messagebundle_hu.properties +14 -6
- package/src/sap/ui/rta/messagebundle_id.properties +14 -6
- package/src/sap/ui/rta/messagebundle_it.properties +14 -6
- package/src/sap/ui/rta/messagebundle_iw.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ja.properties +14 -6
- package/src/sap/ui/rta/messagebundle_kk.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ko.properties +14 -6
- package/src/sap/ui/rta/messagebundle_lt.properties +14 -6
- package/src/sap/ui/rta/messagebundle_lv.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ms.properties +14 -6
- package/src/sap/ui/rta/messagebundle_nl.properties +14 -6
- package/src/sap/ui/rta/messagebundle_no.properties +14 -6
- package/src/sap/ui/rta/messagebundle_pl.properties +14 -6
- package/src/sap/ui/rta/messagebundle_pt.properties +14 -6
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ro.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ru.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sh.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sk.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sl.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sv.properties +14 -6
- package/src/sap/ui/rta/messagebundle_th.properties +14 -6
- package/src/sap/ui/rta/messagebundle_tr.properties +14 -6
- package/src/sap/ui/rta/messagebundle_uk.properties +14 -6
- package/src/sap/ui/rta/messagebundle_vi.properties +14 -6
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +14 -6
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +15 -7
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +5 -11
- package/src/sap/ui/rta/plugin/CompVariant.js +85 -66
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -3
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +32 -11
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +5 -19
- package/src/sap/ui/rta/plugin/Rename.js +6 -19
- package/src/sap/ui/rta/plugin/RenameHandler.js +23 -6
- package/src/sap/ui/rta/plugin/Resize.js +432 -0
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +5 -11
- 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/AdditionalElementsAnalyzer.js +20 -10
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +37 -29
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +63 -63
- package/src/sap/ui/rta/themes/base/ContextMenu.less +25 -0
- package/src/sap/ui/rta/themes/base/Dialogs.less +79 -0
- package/src/sap/ui/rta/themes/base/FieldRepository.less +14 -61
- package/src/sap/ui/rta/themes/base/Overlay.less +96 -98
- package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +7 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +178 -36
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +23 -154
- package/src/sap/ui/rta/themes/base/Toolbar.fiori.less +2 -21
- package/src/sap/ui/rta/themes/base/Toolbar.personalization.less +3 -14
- package/src/sap/ui/rta/themes/base/Toolbar.standalone.less +0 -9
- package/src/sap/ui/rta/themes/base/library.source.less +2 -0
- package/src/sap/ui/rta/themes/sap_hcb/ChangeVisualization.less +7 -0
- package/src/sap/ui/rta/themes/sap_hcb/ContextMenu.less +5 -0
- package/src/sap/ui/rta/themes/sap_hcb/Dialogs.less +28 -0
- package/src/sap/ui/rta/themes/sap_hcb/FieldRepository.less +18 -0
- package/src/sap/ui/rta/themes/sap_hcb/Overlay.less +52 -12
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.adaptation.less +38 -0
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.base.less +14 -2
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.personalization.less +8 -2
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +5 -2
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +33 -32
- package/src/sap/ui/rta/toolbar/Adaptation.js +68 -24
- 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/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/VersionHistory.fragment.xml +2 -1
- package/src/sap/ui/rta/toolbar/translation/DownloadTranslationDialog.fragment.xml +20 -17
- package/src/sap/ui/rta/toolbar/translation/Translation.js +104 -98
- package/src/sap/ui/rta/toolbar/translation/UploadTranslationDialog.fragment.xml +4 -2
- package/src/sap/ui/rta/util/PluginManager.js +10 -4
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +102 -80
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +11 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +30 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -6
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +105 -27
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +25 -7
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.standalone.less +0 -9
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 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/rta/plugin/Plugin",
|
|
9
|
+
"sap/ui/dt/Overlay",
|
|
10
|
+
"sap/ui/dt/OverlayRegistry",
|
|
11
|
+
"sap/ui/dt/util/ZIndexManager",
|
|
12
|
+
"sap/ui/dt/Util",
|
|
13
|
+
"sap/ui/core/Core"
|
|
14
|
+
], function(
|
|
15
|
+
Plugin,
|
|
16
|
+
Overlay,
|
|
17
|
+
OverlayRegistry,
|
|
18
|
+
ZIndexManager,
|
|
19
|
+
DtUtil,
|
|
20
|
+
Core
|
|
21
|
+
) {
|
|
22
|
+
"use strict";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Constructor for a new Resize plugin.
|
|
26
|
+
*
|
|
27
|
+
* @class
|
|
28
|
+
* @extends sap.ui.rta.plugin.Plugin
|
|
29
|
+
* @author SAP SE
|
|
30
|
+
* @version 1.102.1
|
|
31
|
+
* @constructor
|
|
32
|
+
* @private
|
|
33
|
+
* @since 1.101
|
|
34
|
+
* @alias sap.ui.rta.plugin.Resize
|
|
35
|
+
* @experimental Since 1.101. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
36
|
+
*/
|
|
37
|
+
var Resize = Plugin.extend("sap.ui.rta.plugin.Resize", /** @lends sap.ui.rta.plugin.Resize.prototype */ {
|
|
38
|
+
metadata: {
|
|
39
|
+
library: "sap.ui.rta",
|
|
40
|
+
properties: {
|
|
41
|
+
// Handle used for resizing (dragging or keyboard)
|
|
42
|
+
handle: "object",
|
|
43
|
+
// Defines if resize dragging is currently happening
|
|
44
|
+
dragging: "boolean"
|
|
45
|
+
},
|
|
46
|
+
associations: {},
|
|
47
|
+
events: {}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
var HANDLE_CLASS_NAME = "sapUiRtaResizeHandle";
|
|
52
|
+
var HANDLE_EXTENSION_CLASS_NAME = "sapUiRtaResizeHandleExtension";
|
|
53
|
+
var FULL_SCREEN_DIV_CLASS_NAME = "sapUiRtaFullScreenDiv";
|
|
54
|
+
var MINIMUM_WIDTH = 15; // px
|
|
55
|
+
|
|
56
|
+
var bRTL = Core.getConfiguration().getRTL();
|
|
57
|
+
var iDirectionFactor = bRTL ? -1 : 1;
|
|
58
|
+
var sBeginDirection = bRTL ? "right" : "left";
|
|
59
|
+
var iKeyboardStep = 15 * iDirectionFactor; // px
|
|
60
|
+
|
|
61
|
+
function getWidth(oOverlay) {
|
|
62
|
+
return oOverlay.getDomRef().offsetWidth;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function createFullScreenDiv() {
|
|
66
|
+
this._oFullScreenDiv = document.createElement("div");
|
|
67
|
+
this._oFullScreenDiv.className = FULL_SCREEN_DIV_CLASS_NAME;
|
|
68
|
+
this._oFullScreenDiv.style["z-index"] = ZIndexManager.getNextZIndex();
|
|
69
|
+
var oOverlayContainer = Overlay.getOverlayContainer()[0];
|
|
70
|
+
oOverlayContainer.append(this._oFullScreenDiv);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function removeFullScreenDiv() {
|
|
74
|
+
this._oFullScreenDiv.removeEventListener("mouseup", this._fnOnMouseUp);
|
|
75
|
+
this._oFullScreenDiv.removeEventListener("mousemove", this._fnOnMouseMove);
|
|
76
|
+
this._oFullScreenDiv.remove();
|
|
77
|
+
delete this._oFullScreenDiv;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
|
|
82
|
+
* @return {Promise.<boolean>} <code>true</code> if it's editable wrapped in a promise.
|
|
83
|
+
* @private
|
|
84
|
+
* @override
|
|
85
|
+
*/
|
|
86
|
+
Resize.prototype._isEditable = function(oOverlay) {
|
|
87
|
+
var oAction = this.getAction(oOverlay);
|
|
88
|
+
if (oAction && oAction.handler) {
|
|
89
|
+
return Promise.resolve(this.hasStableId(oOverlay));
|
|
90
|
+
}
|
|
91
|
+
return this._checkChangeHandlerAndStableId(oOverlay);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
Resize.prototype._createResizeCommand = function(oOverlay, mChange, oCompositeCommand) {
|
|
95
|
+
var sVariantManagementReference = this.getVariantManagementReference(oOverlay);
|
|
96
|
+
|
|
97
|
+
return this.getCommandFactory().getCommandFor(
|
|
98
|
+
mChange.selectorElement,
|
|
99
|
+
"resize",
|
|
100
|
+
mChange.changeSpecificData,
|
|
101
|
+
undefined,
|
|
102
|
+
sVariantManagementReference
|
|
103
|
+
)
|
|
104
|
+
.then(function(oResizeCommand) {
|
|
105
|
+
return oCompositeCommand.addCommand(oResizeCommand);
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
Resize.prototype._createCompositeCommand = function(oOverlay, oElement, aChanges) {
|
|
110
|
+
var oCompositeCommand;
|
|
111
|
+
|
|
112
|
+
return this.getCommandFactory().getCommandFor(oElement, "composite")
|
|
113
|
+
.then(function(_oCompositeCommand) {
|
|
114
|
+
oCompositeCommand = _oCompositeCommand;
|
|
115
|
+
return aChanges.reduce(function(oPreviousPromise, mChange) {
|
|
116
|
+
return oPreviousPromise.then(this._createResizeCommand.bind(this, oOverlay, mChange, oCompositeCommand));
|
|
117
|
+
}.bind(this), Promise.resolve());
|
|
118
|
+
}.bind(this))
|
|
119
|
+
.then(function() {
|
|
120
|
+
return oCompositeCommand;
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
Resize.prototype._createCommand = function(oOverlay, iNewWidth) {
|
|
125
|
+
var oElement = oOverlay.getElement();
|
|
126
|
+
var oAction = this.getAction(oOverlay);
|
|
127
|
+
var fnHandler = oAction.handler;
|
|
128
|
+
|
|
129
|
+
return Promise.resolve()
|
|
130
|
+
.then(function() {
|
|
131
|
+
if (fnHandler) {
|
|
132
|
+
var mPropertyBag = {
|
|
133
|
+
newWidth: iNewWidth
|
|
134
|
+
};
|
|
135
|
+
return fnHandler(oElement, mPropertyBag)
|
|
136
|
+
.then(function(aChanges) {
|
|
137
|
+
if (aChanges.length > 0) {
|
|
138
|
+
return this._createCompositeCommand(oOverlay, oElement, aChanges);
|
|
139
|
+
}
|
|
140
|
+
return undefined;
|
|
141
|
+
}.bind(this))
|
|
142
|
+
.catch(function(vError) {
|
|
143
|
+
throw DtUtil.propagateError(
|
|
144
|
+
vError,
|
|
145
|
+
"Resize#handler",
|
|
146
|
+
"Error occured during handler execution",
|
|
147
|
+
"sap.ui.rta.plugin"
|
|
148
|
+
);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
// Case without handler - single command (= one change)
|
|
152
|
+
return this._createCompositeCommand(oOverlay, oElement, [{
|
|
153
|
+
changeSpecificData: {
|
|
154
|
+
changeType: oAction.changeType,
|
|
155
|
+
content: {
|
|
156
|
+
resizedElementId: oElement.getId(),
|
|
157
|
+
newWidth: iNewWidth
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
selectorElement: oElement
|
|
161
|
+
}]);
|
|
162
|
+
}.bind(this))
|
|
163
|
+
.then(function(oCompositeCommand) {
|
|
164
|
+
if (oCompositeCommand && oCompositeCommand.getCommands().length > 0) {
|
|
165
|
+
this.fireElementModified({
|
|
166
|
+
command: oCompositeCommand
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}.bind(this));
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
Resize.prototype._onHandleMouseDown = function(oOverlay, oEvent) {
|
|
173
|
+
this.setBusy(true);
|
|
174
|
+
if (oEvent.detail === 2) {
|
|
175
|
+
this._onDoubleClick(oOverlay);
|
|
176
|
+
this.setBusy(false);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
createFullScreenDiv.call(this);
|
|
180
|
+
var oAction = this.getAction(oOverlay);
|
|
181
|
+
var oHandle = this.getHandle();
|
|
182
|
+
var oElement = oOverlay.getElement();
|
|
183
|
+
var oOverlayDomElement = oOverlay.getDomRef();
|
|
184
|
+
var iOverlayBoundary = Math.round(oOverlayDomElement.getBoundingClientRect()[sBeginDirection]);
|
|
185
|
+
var iHalfOffsetWidth = Math.round(oHandle.offsetWidth / 2);
|
|
186
|
+
var iMousePosition = oEvent.clientX;
|
|
187
|
+
var oExtension;
|
|
188
|
+
|
|
189
|
+
// Initially set the current size of the element
|
|
190
|
+
var iNewWidth = getWidth(oOverlay);
|
|
191
|
+
// Place the middle of the handle on the mouse position
|
|
192
|
+
oHandle.style[sBeginDirection] = (iMousePosition - iOverlayBoundary) * iDirectionFactor - iHalfOffsetWidth + "px";
|
|
193
|
+
|
|
194
|
+
this.setDragging(true);
|
|
195
|
+
oOverlay.focus();
|
|
196
|
+
|
|
197
|
+
this._fnOnMouseMove = onMouseMove.bind(this);
|
|
198
|
+
this._fnOnMouseUp = onMouseUp.bind(this);
|
|
199
|
+
|
|
200
|
+
// Create handle extension (e.g. vertical line on the handle end going through all the lines of a table)
|
|
201
|
+
if (oAction.getHandleExtensionHeight) {
|
|
202
|
+
var iHandleExtensionHeight = oAction.getHandleExtensionHeight(oElement);
|
|
203
|
+
oExtension = document.createElement("div");
|
|
204
|
+
oExtension.className = HANDLE_EXTENSION_CLASS_NAME;
|
|
205
|
+
oExtension.style["height"] = iHandleExtensionHeight + "px";
|
|
206
|
+
oExtension.style["pointer-events"] = "none";
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// The handle position is relative to the parent Overlay
|
|
210
|
+
function onMouseMove(oEvent) {
|
|
211
|
+
if (oExtension) {
|
|
212
|
+
oHandle.append(oExtension);
|
|
213
|
+
oHandle.extension = oExtension;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
iNewWidth = (oEvent.clientX - iOverlayBoundary) * iDirectionFactor + iHalfOffsetWidth;
|
|
217
|
+
|
|
218
|
+
iNewWidth = this._limitNewWidth(oOverlay, iNewWidth);
|
|
219
|
+
|
|
220
|
+
// The middle of the handle is on the mouse cursor
|
|
221
|
+
oHandle.style[sBeginDirection] = iNewWidth - oHandle.offsetWidth + "px";
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function onMouseUp() {
|
|
225
|
+
this._finalizeResize(oOverlay, iNewWidth);
|
|
226
|
+
|
|
227
|
+
removeFullScreenDiv.call(this);
|
|
228
|
+
this.setDragging(false);
|
|
229
|
+
this.setBusy(false);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
this._oFullScreenDiv.addEventListener("mousemove", this._fnOnMouseMove);
|
|
233
|
+
this._oFullScreenDiv.addEventListener("mouseup", this._fnOnMouseUp);
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
Resize.prototype._onDoubleClick = function(oOverlay) {
|
|
237
|
+
var vAction = this.getAction(oOverlay);
|
|
238
|
+
if (vAction.getDoubleClickWidth) {
|
|
239
|
+
var iNewWidth = vAction.getDoubleClickWidth(oOverlay.getElement());
|
|
240
|
+
this._finalizeResize(oOverlay, iNewWidth);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
Resize.prototype._finalizeResize = function(oOverlay, iNewWidth) {
|
|
245
|
+
var iOldWidth = getWidth(oOverlay);
|
|
246
|
+
|
|
247
|
+
if (iNewWidth === iOldWidth) {
|
|
248
|
+
return Promise.resolve();
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
var fnRestoreEventHandler = function() {
|
|
252
|
+
oOverlay.setSelected(true);
|
|
253
|
+
oOverlay.focus();
|
|
254
|
+
oOverlay.detachEvent("geometryChanged", fnRestoreEventHandler, this);
|
|
255
|
+
oOverlay.attachEvent("geometryChanged", this._onOverlayGeometryChanged, this);
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
oOverlay.detachEvent("geometryChanged", this._onOverlayGeometryChanged, this);
|
|
259
|
+
oOverlay.attachEvent("geometryChanged", fnRestoreEventHandler, this);
|
|
260
|
+
oOverlay.setSelected(false);
|
|
261
|
+
|
|
262
|
+
return this._createCommand(oOverlay, iNewWidth)
|
|
263
|
+
.catch(function(vError) {
|
|
264
|
+
fnRestoreEventHandler.call(this);
|
|
265
|
+
throw DtUtil.propagateError(
|
|
266
|
+
vError,
|
|
267
|
+
"Resize",
|
|
268
|
+
"Error occured during resize command creation",
|
|
269
|
+
"sap.ui.rta.plugin"
|
|
270
|
+
);
|
|
271
|
+
}.bind(this));
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
Resize.prototype._limitNewWidth = function(oOverlay, iNewWidth) {
|
|
275
|
+
var vAction = this.getAction(oOverlay);
|
|
276
|
+
var oElement = oOverlay.getElement();
|
|
277
|
+
var mSizeLimits = vAction.getSizeLimits && vAction.getSizeLimits(oElement);
|
|
278
|
+
// Prevent resize to negative widths (minimum = 15px)
|
|
279
|
+
var iMinimumWidth = mSizeLimits && mSizeLimits.minimumWidth || MINIMUM_WIDTH;
|
|
280
|
+
var iMaximumWidth = mSizeLimits && mSizeLimits.maximumWidth;
|
|
281
|
+
|
|
282
|
+
if (iMinimumWidth && (iNewWidth < iMinimumWidth)) {
|
|
283
|
+
iNewWidth = iMinimumWidth;
|
|
284
|
+
}
|
|
285
|
+
if (iMaximumWidth && (iNewWidth > iMaximumWidth)) {
|
|
286
|
+
iNewWidth = iMaximumWidth;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return iNewWidth;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
Resize.prototype._createHandle = function(oEvent) {
|
|
293
|
+
var oCurrentHandle = this.getHandle();
|
|
294
|
+
var oOverlay = OverlayRegistry.getOverlay(oEvent.target.id);
|
|
295
|
+
|
|
296
|
+
// Mouse is over Overlay without action (e.g. child overlay)
|
|
297
|
+
if (!this.isEnabled([oOverlay])) {
|
|
298
|
+
this._removeHandle(false);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// Create the handle and attach it to active overlay
|
|
303
|
+
if (!oCurrentHandle && !this.getDragging()) {
|
|
304
|
+
var oOverlayDomElement = oOverlay.getDomRef();
|
|
305
|
+
var oNewHandle = document.createElement("div");
|
|
306
|
+
oNewHandle.className = HANDLE_CLASS_NAME;
|
|
307
|
+
oOverlayDomElement.append(oNewHandle);
|
|
308
|
+
oNewHandle.style[sBeginDirection] = oOverlayDomElement.clientWidth - oNewHandle.clientWidth + "px";
|
|
309
|
+
oNewHandle.style["z-index"] = ZIndexManager.getNextZIndex();
|
|
310
|
+
oNewHandle.addEventListener("mousedown", this._onHandleMouseDown.bind(this, oOverlay));
|
|
311
|
+
this.setHandle(oNewHandle);
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
Resize.prototype._removeHandle = function(bIgnoreDrag) {
|
|
316
|
+
var oHandle = this.getHandle();
|
|
317
|
+
if (oHandle && (bIgnoreDrag || !this.getDragging())) {
|
|
318
|
+
oHandle.remove();
|
|
319
|
+
this.setDragging(false);
|
|
320
|
+
this.setHandle(null);
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
Resize.prototype._onOverlayMouseMove = function(oEvent) {
|
|
325
|
+
var oOverlay = OverlayRegistry.getOverlay(oEvent.target.id);
|
|
326
|
+
if (oOverlay && oOverlay.isSelectable()) {
|
|
327
|
+
this._createHandle(oEvent);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
Resize.prototype._onOverlayKeyDown = function(oEvent) {
|
|
332
|
+
var oOverlay = OverlayRegistry.getOverlay(oEvent.target.id);
|
|
333
|
+
var iNewWidth;
|
|
334
|
+
// During drag the focus remains on the overlay
|
|
335
|
+
if (oEvent.key === "Escape") {
|
|
336
|
+
this._removeHandle(true);
|
|
337
|
+
if (this._oFullScreenDiv) {
|
|
338
|
+
removeFullScreenDiv.call(this);
|
|
339
|
+
}
|
|
340
|
+
oEvent.stopImmediatePropagation();
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
// Shift + right/left to resize
|
|
344
|
+
if (!oEvent.shiftKey || oEvent.ctrlKey || oEvent.metaKey || oEvent.altKey) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
var iCurrentWidth = getWidth(oOverlay);
|
|
348
|
+
if (oEvent.key === "ArrowLeft" || oEvent.key === "ArrowRight") {
|
|
349
|
+
var iDeltaWidth = oEvent.key === "ArrowLeft" ? iKeyboardStep * (-1) : iKeyboardStep;
|
|
350
|
+
iNewWidth = this._limitNewWidth(oOverlay, iCurrentWidth + iDeltaWidth);
|
|
351
|
+
this._finalizeResize(oOverlay, iNewWidth);
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
Resize.prototype._onOverlayMouseLeave = function() {
|
|
356
|
+
this._removeHandle(false);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
// Handle selection change via keyboard - show handle without mouseover
|
|
360
|
+
Resize.prototype._onOverlaySelectionChange = function(oEvent) {
|
|
361
|
+
if (oEvent.getParameter("selected")) {
|
|
362
|
+
this._removeHandle(false);
|
|
363
|
+
// Add target.id to DT event so it can be handled like a browser event
|
|
364
|
+
oEvent.target = {
|
|
365
|
+
id: oEvent.getParameter("id")
|
|
366
|
+
};
|
|
367
|
+
this._createHandle(oEvent);
|
|
368
|
+
} else {
|
|
369
|
+
this._removeHandle();
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
Resize.prototype._onOverlayFocus = function(oEvent) {
|
|
374
|
+
var oOverlay = OverlayRegistry.getOverlay(oEvent.target.id);
|
|
375
|
+
if (oOverlay.getSelected() && !this.getHandle()) {
|
|
376
|
+
this._createHandle(oEvent);
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
Resize.prototype._onOverlayGeometryChanged = function(oEvent) {
|
|
381
|
+
var oOverlay = OverlayRegistry.getOverlay(oEvent.getParameter("id"));
|
|
382
|
+
if (oOverlay.getSelected() && oOverlay.hasFocus()) {
|
|
383
|
+
this._removeHandle();
|
|
384
|
+
this._createHandle(oEvent);
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Registers the event handlers for resizing on the enabled overlays
|
|
390
|
+
*
|
|
391
|
+
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be registered
|
|
392
|
+
*
|
|
393
|
+
* @override
|
|
394
|
+
*/
|
|
395
|
+
Resize.prototype.registerElementOverlay = function(oOverlay) {
|
|
396
|
+
if (this.isEnabled([oOverlay])) {
|
|
397
|
+
oOverlay.attachBrowserEvent("mousemove", this._onOverlayMouseMove, this);
|
|
398
|
+
oOverlay.attachBrowserEvent("mouseleave", this._onOverlayMouseLeave, this);
|
|
399
|
+
oOverlay.attachBrowserEvent("keydown", this._onOverlayKeyDown, this);
|
|
400
|
+
oOverlay.attachBrowserEvent("focus", this._onOverlayFocus, this);
|
|
401
|
+
oOverlay.attachEvent("selectionChange", this._onOverlaySelectionChange, this);
|
|
402
|
+
oOverlay.attachEvent("geometryChanged", this._onOverlayGeometryChanged, this);
|
|
403
|
+
}
|
|
404
|
+
Plugin.prototype.registerElementOverlay.apply(this, arguments);
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* De-registers the event handlers for resizing on the previously enabled overlays
|
|
409
|
+
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be de-registered
|
|
410
|
+
*
|
|
411
|
+
* @override
|
|
412
|
+
*/
|
|
413
|
+
Resize.prototype.deregisterElementOverlay = function(oOverlay) {
|
|
414
|
+
oOverlay.detachBrowserEvent("mousemove", this._onOverlayMouseMove, this);
|
|
415
|
+
oOverlay.detachBrowserEvent("mouseleave", this._onOverlayMouseLeave, this);
|
|
416
|
+
oOverlay.detachBrowserEvent("keydown", this._onOverlayKeyDown, this);
|
|
417
|
+
oOverlay.detachBrowserEvent("focus", this._onOverlayFocus, this);
|
|
418
|
+
oOverlay.detachEvent("selectionChange", this._onOverlaySelectionChange, this);
|
|
419
|
+
oOverlay.detachEvent("geometryChanged", this._onOverlayGeometryChanged, this);
|
|
420
|
+
Plugin.prototype.deregisterElementOverlay.apply(this, arguments);
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Gets the name of the action related to this plugin.
|
|
425
|
+
* @return {string} Action name
|
|
426
|
+
*/
|
|
427
|
+
Resize.prototype.getActionName = function() {
|
|
428
|
+
return "resize";
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
return Resize;
|
|
432
|
+
});
|
|
@@ -30,7 +30,7 @@ function (
|
|
|
30
30
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
31
31
|
* @extends sap.ui.rta.plugin.Plugin
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.102.1
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -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.102.1
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.46
|
|
@@ -41,21 +41,15 @@ sap.ui.define([
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
|
|
44
|
-
* @return {Promise.<boolean
|
|
44
|
+
* @return {Promise.<boolean>} <code>true</code> if it's editable wrapped in a promise.
|
|
45
45
|
* @private
|
|
46
46
|
*/
|
|
47
47
|
Split.prototype._isEditable = function (oOverlay) {
|
|
48
48
|
var oSplitAction = this.getAction(oOverlay);
|
|
49
|
-
if (oSplitAction && oSplitAction.
|
|
50
|
-
|
|
51
|
-
return this.hasChangeHandler(oSplitAction.changeType, oRelevantContainer)
|
|
52
|
-
.then(function(bHasChangeHandler) {
|
|
53
|
-
return bHasChangeHandler
|
|
54
|
-
&& this.hasStableId(oOverlay)
|
|
55
|
-
&& this._checkRelevantContainerStableID(oSplitAction, oOverlay);
|
|
56
|
-
}.bind(this));
|
|
49
|
+
if (oSplitAction && oSplitAction.changeOnRelevantContainer) {
|
|
50
|
+
return this._checkChangeHandlerAndStableId(oOverlay);
|
|
57
51
|
}
|
|
58
|
-
return false;
|
|
52
|
+
return Promise.resolve(false);
|
|
59
53
|
};
|
|
60
54
|
|
|
61
55
|
/**
|
|
@@ -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.102.1
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -228,16 +228,26 @@ sap.ui.define([
|
|
|
228
228
|
* @private
|
|
229
229
|
*/
|
|
230
230
|
function _findModelProperty(aControlsBindingPaths, aProperties) {
|
|
231
|
-
return aProperties
|
|
232
|
-
|
|
233
|
-
//
|
|
234
|
-
//
|
|
235
|
-
//
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
231
|
+
return aProperties
|
|
232
|
+
.sort(function (oProperty1, oProperty2) {
|
|
233
|
+
// Temporary fix to avoid evaluating technical properties like RAP feature
|
|
234
|
+
// control flags, might lead to problems if multiple value bindings exist
|
|
235
|
+
// on a hidden control
|
|
236
|
+
return !!oProperty2.hideFromReveal - !!oProperty1.hideFromReveal;
|
|
237
|
+
})
|
|
238
|
+
.filter(function (oModelProperty) {
|
|
239
|
+
return aControlsBindingPaths.some(function(sBindingPath) {
|
|
240
|
+
//there might be some deeper binding paths available on controls,
|
|
241
|
+
//than returned by the model evaluation (e.g. navigation property paths)
|
|
242
|
+
//in this case we only check if the navigation path is valid
|
|
243
|
+
//unsupported: check existence of the property also in the navigation target
|
|
244
|
+
return (
|
|
245
|
+
sBindingPath === oModelProperty.bindingPath
|
|
246
|
+
|| sBindingPath.startsWith(oModelProperty.bindingPath + '/')
|
|
247
|
+
);
|
|
248
|
+
});
|
|
249
|
+
})
|
|
250
|
+
.pop();
|
|
241
251
|
}
|
|
242
252
|
|
|
243
253
|
function _vBindingToPath(vBinding) {
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
76
76
|
* @extends sap.ui.rta.plugin.Plugin
|
|
77
77
|
* @author SAP SE
|
|
78
|
-
* @version 1.
|
|
78
|
+
* @version 1.102.1
|
|
79
79
|
* @constructor
|
|
80
80
|
* @private
|
|
81
81
|
* @since 1.44
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* Helper object containing methods for the AdditionalElements plugin
|
|
16
16
|
*
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.102.1
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.94
|
|
21
21
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Helper object to build the RTA commands resulting from the AdditionalElements Plugin
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.102.1
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.94
|
|
31
31
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -110,7 +110,7 @@ sap.ui.define([
|
|
|
110
110
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
111
111
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
112
112
|
* @author SAP SE
|
|
113
|
-
* @version 1.
|
|
113
|
+
* @version 1.102.1
|
|
114
114
|
* @constructor
|
|
115
115
|
* @private
|
|
116
116
|
* @since 1.75
|