@openui5/sap.ui.rta 1.99.1 → 1.102.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 +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 +146 -92
- package/src/sap/ui/rta/Utils.js +3 -5
- 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 +3 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
- 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 +3 -2
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +10 -4
- 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 +15 -12
- 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 +6 -12
- 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 +25 -26
- 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 -69
- 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 +33 -12
- 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 +108 -32
- 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
|
@@ -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.102.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.46
|
|
@@ -44,21 +44,15 @@ sap.ui.define([
|
|
|
44
44
|
/**
|
|
45
45
|
* Check if the given overlay is editable.
|
|
46
46
|
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
|
|
47
|
-
* @returns {Promise.<boolean
|
|
47
|
+
* @returns {Promise.<boolean>} <code>true</code> when editable wrapped in a promise.
|
|
48
48
|
* @private
|
|
49
49
|
*/
|
|
50
50
|
Combine.prototype._isEditable = function (oOverlay) {
|
|
51
51
|
var oCombineAction = this.getAction(oOverlay);
|
|
52
|
-
if (!oOverlay.isRoot() && oCombineAction && oCombineAction.
|
|
53
|
-
|
|
54
|
-
return this.hasChangeHandler(oCombineAction.changeType, oRelevantContainer)
|
|
55
|
-
.then(function(bHasChangeHandler) {
|
|
56
|
-
return bHasChangeHandler &&
|
|
57
|
-
this.hasStableId(oOverlay) &&
|
|
58
|
-
this._checkRelevantContainerStableID(oCombineAction, oOverlay);
|
|
59
|
-
}.bind(this));
|
|
52
|
+
if (!oOverlay.isRoot() && oCombineAction && oCombineAction.changeOnRelevantContainer) {
|
|
53
|
+
return this._checkChangeHandlerAndStableId(oOverlay);
|
|
60
54
|
}
|
|
61
|
-
return false;
|
|
55
|
+
return Promise.resolve(false);
|
|
62
56
|
};
|
|
63
57
|
|
|
64
58
|
Combine.prototype._checkForSameRelevantContainer = function(aElementOverlays) {
|
|
@@ -159,7 +153,7 @@ sap.ui.define([
|
|
|
159
153
|
/**
|
|
160
154
|
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - specified overlays
|
|
161
155
|
* @param {sap.ui.core.Element} oCombineElement - element where the combine was triggered
|
|
162
|
-
* @returns {
|
|
156
|
+
* @returns {Promise} Promise
|
|
163
157
|
*/
|
|
164
158
|
Combine.prototype.handleCombine = function(aElementOverlays, oCombineElement) {
|
|
165
159
|
var oCombineElementOverlay;
|
|
@@ -36,13 +36,9 @@ sap.ui.define([
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
function
|
|
40
|
-
return oOverlay.getElement().getMetadata().getName() === "sap.ui.comp.smartvariants.SmartVariantManagement";
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function createCommandAndFireEvent(oOverlay, sName, mProperties) {
|
|
39
|
+
function createCommandAndFireEvent(oOverlay, sName, mProperties, oElement) {
|
|
44
40
|
var oDesignTimeMetadata = oOverlay.getDesignTimeMetadata();
|
|
45
|
-
var oTargetElement = oOverlay.getElement();
|
|
41
|
+
var oTargetElement = oElement || oOverlay.getElement();
|
|
46
42
|
|
|
47
43
|
return this.getCommandFactory().getCommandFor(oTargetElement, sName, mProperties, oDesignTimeMetadata)
|
|
48
44
|
|
|
@@ -167,83 +163,106 @@ sap.ui.define([
|
|
|
167
163
|
}.bind(this), oContextSharingComponentContainer);
|
|
168
164
|
}
|
|
169
165
|
|
|
166
|
+
// ------ change content ------
|
|
167
|
+
function changeContent(aOverlays) {
|
|
168
|
+
var oControl = aOverlays[0].getElementInstance();
|
|
169
|
+
var oAction = this.getAction(aOverlays[0]);
|
|
170
|
+
oAction.handler(oControl, {styleClass: Utils.getRtaStyleClassName()}).then(function(aData) {
|
|
171
|
+
createCommandAndFireEvent.call(this, aOverlays[0], "compVariantContent", {
|
|
172
|
+
variantId: aData[0].changeSpecificData.content.key,
|
|
173
|
+
newContent: aData[0].changeSpecificData.content.content,
|
|
174
|
+
persistencyKey: aData[0].changeSpecificData.content.persistencyKey
|
|
175
|
+
}, oControl.getVariantManagement());
|
|
176
|
+
}.bind(this));
|
|
177
|
+
}
|
|
178
|
+
|
|
170
179
|
CompVariant.prototype._isEditable = function(oOverlay) {
|
|
171
|
-
return
|
|
180
|
+
return this.hasStableId(oOverlay) && !!this.getAction(oOverlay);
|
|
172
181
|
};
|
|
173
182
|
|
|
174
183
|
CompVariant.prototype.getMenuItems = function(aElementOverlays) {
|
|
175
184
|
var oElementOverlay = aElementOverlays[0];
|
|
176
185
|
var oVariantManagementControl = oElementOverlay.getElement();
|
|
177
186
|
var aMenuItems = [];
|
|
187
|
+
if (this.isAvailable([oElementOverlay])) {
|
|
188
|
+
if (this.getAction(oElementOverlay).changeType === "variantContent") {
|
|
189
|
+
aMenuItems.push({
|
|
190
|
+
id: "CTX_COMP_VARIANT_CONTENT",
|
|
191
|
+
text: this.getActionText(oElementOverlay, this.getAction(oElementOverlay)),
|
|
192
|
+
handler: changeContent.bind(this),
|
|
193
|
+
enabled: true,
|
|
194
|
+
rank: 250,
|
|
195
|
+
icon: "sap-icon://key-user-settings"
|
|
196
|
+
});
|
|
197
|
+
} else {
|
|
198
|
+
var sLayer = this.getCommandFactory().getFlexSettings().layer;
|
|
199
|
+
var oLibraryBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
200
|
+
var aVariants = getAllVariants(oElementOverlay);
|
|
201
|
+
var oCurrentVariant = aVariants.find(function(oVariant) {
|
|
202
|
+
return oVariant.getId() === oVariantManagementControl.getPresentVariantId();
|
|
203
|
+
});
|
|
178
204
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
205
|
+
if (oCurrentVariant.isRenameEnabled(sLayer)) {
|
|
206
|
+
aMenuItems.push({
|
|
207
|
+
id: "CTX_COMP_VARIANT_RENAME",
|
|
208
|
+
text: oLibraryBundle.getText("CTX_RENAME"),
|
|
209
|
+
handler: renameVariant.bind(this),
|
|
210
|
+
enabled: true,
|
|
211
|
+
rank: 210,
|
|
212
|
+
icon: "sap-icon://edit"
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (oCurrentVariant.isEditEnabled(sLayer)) {
|
|
217
|
+
aMenuItems.push({
|
|
218
|
+
id: "CTX_COMP_VARIANT_SAVE",
|
|
219
|
+
text: oLibraryBundle.getText("CTX_VARIANT_SAVE"),
|
|
220
|
+
handler: saveVariant.bind(this),
|
|
221
|
+
enabled: isSaveEnabled,
|
|
222
|
+
rank: 220,
|
|
223
|
+
icon: "sap-icon://save"
|
|
224
|
+
});
|
|
225
|
+
}
|
|
186
226
|
|
|
187
|
-
if (oCurrentVariant.isRenameEnabled(sLayer)) {
|
|
188
227
|
aMenuItems.push({
|
|
189
|
-
id: "
|
|
190
|
-
text: oLibraryBundle.getText("
|
|
191
|
-
handler:
|
|
228
|
+
id: "CTX_COMP_VARIANT_SAVE_AS",
|
|
229
|
+
text: oLibraryBundle.getText("CTX_VARIANT_SAVEAS"),
|
|
230
|
+
handler: saveAsNewVariant.bind(this),
|
|
192
231
|
enabled: true,
|
|
193
|
-
rank:
|
|
194
|
-
icon: "sap-icon://
|
|
232
|
+
rank: 230,
|
|
233
|
+
icon: "sap-icon://duplicate"
|
|
195
234
|
});
|
|
196
|
-
}
|
|
197
235
|
|
|
198
|
-
if (oCurrentVariant.isEditEnabled(sLayer)) {
|
|
199
236
|
aMenuItems.push({
|
|
200
|
-
id: "
|
|
201
|
-
text: oLibraryBundle.getText("
|
|
202
|
-
handler:
|
|
203
|
-
enabled:
|
|
204
|
-
rank:
|
|
205
|
-
icon: "sap-icon://
|
|
237
|
+
id: "CTX_COMP_VARIANT_MANAGE",
|
|
238
|
+
text: oLibraryBundle.getText("CTX_VARIANT_MANAGE"),
|
|
239
|
+
handler: configureVariants.bind(this),
|
|
240
|
+
enabled: true,
|
|
241
|
+
rank: 240,
|
|
242
|
+
icon: "sap-icon://action-settings"
|
|
206
243
|
});
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
aMenuItems.push({
|
|
210
|
-
id: "CTX_COMP_VARIANT_SAVE_AS",
|
|
211
|
-
text: oLibraryBundle.getText("CTX_VARIANT_SAVEAS"),
|
|
212
|
-
handler: saveAsNewVariant.bind(this),
|
|
213
|
-
enabled: true,
|
|
214
|
-
rank: 230,
|
|
215
|
-
icon: "sap-icon://duplicate"
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
aMenuItems.push({
|
|
219
|
-
id: "CTX_COMP_VARIANT_MANAGE",
|
|
220
|
-
text: oLibraryBundle.getText("CTX_VARIANT_MANAGE"),
|
|
221
|
-
handler: configureVariants.bind(this),
|
|
222
|
-
enabled: true,
|
|
223
|
-
rank: 240,
|
|
224
|
-
icon: "sap-icon://action-settings"
|
|
225
|
-
});
|
|
226
244
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
245
|
+
var aSubmenuItems = aVariants.map(function(oVariant) {
|
|
246
|
+
var bCurrentItem = oVariantManagementControl.getPresentVariantId() === oVariant.getId();
|
|
247
|
+
var oItem = {
|
|
248
|
+
id: oVariant.getId(),
|
|
249
|
+
text: oVariant.getText("variantName"),
|
|
250
|
+
icon: bCurrentItem ? "sap-icon://accept" : "blank",
|
|
251
|
+
enabled: !bCurrentItem
|
|
252
|
+
};
|
|
253
|
+
return oItem;
|
|
254
|
+
});
|
|
237
255
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
256
|
+
aMenuItems.push({
|
|
257
|
+
id: "CTX_COMP_VARIANT_SWITCH",
|
|
258
|
+
text: oLibraryBundle.getText("CTX_VARIANT_SWITCH"),
|
|
259
|
+
handler: switchVariant.bind(this),
|
|
260
|
+
enabled: isSwitchEnabled,
|
|
261
|
+
submenu: aSubmenuItems,
|
|
262
|
+
rank: 250,
|
|
263
|
+
icon: "sap-icon://switch-views"
|
|
264
|
+
});
|
|
265
|
+
}
|
|
247
266
|
}
|
|
248
267
|
|
|
249
268
|
return aMenuItems;
|
|
@@ -7,13 +7,11 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/rta/plugin/BaseCreate",
|
|
9
9
|
"sap/ui/fl/Utils",
|
|
10
|
-
"sap/ui/rta/Utils",
|
|
11
10
|
"sap/ui/dt/Util",
|
|
12
11
|
"sap/base/util/uid"
|
|
13
12
|
], function(
|
|
14
13
|
BaseCreate,
|
|
15
14
|
FlexUtils,
|
|
16
|
-
RtaUtils,
|
|
17
15
|
DtUtil,
|
|
18
16
|
uid
|
|
19
17
|
) {
|
|
@@ -27,7 +25,7 @@ sap.ui.define([
|
|
|
27
25
|
* @class The CreateContainer allows trigger CreateContainer operations on the overlay
|
|
28
26
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
29
27
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
28
|
+
* @version 1.102.0
|
|
31
29
|
* @constructor
|
|
32
30
|
* @private
|
|
33
31
|
* @since 1.34
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The EasyAdd Plugin adds an Icon to an Overlay, which allows to trigger add operations directly
|
|
26
26
|
* @extends sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.102.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.48
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @class The EasyRemove Plugin adds an Icon to an Overlay, which allows to trigger remove operations directly
|
|
24
24
|
* @extends sap.ui.rta.plugin.Remove
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.102.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.48
|
|
@@ -69,7 +69,7 @@ function(
|
|
|
69
69
|
* @extends sap.ui.dt.Plugin
|
|
70
70
|
*
|
|
71
71
|
* @author SAP SE
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.102.0
|
|
73
73
|
*
|
|
74
74
|
* @constructor
|
|
75
75
|
* @private
|
|
@@ -168,16 +168,20 @@ function(
|
|
|
168
168
|
BasePlugin.prototype._getRelevantOverlays = function(oOverlay, sAggregationName) {
|
|
169
169
|
var aAlreadyDefinedRelevantOverlays = oOverlay.getRelevantOverlays();
|
|
170
170
|
if (aAlreadyDefinedRelevantOverlays.length === 0) {
|
|
171
|
-
var aRelevantOverlays =
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
171
|
+
var aRelevantOverlays = [];
|
|
172
|
+
// Overlays in aggregation binding templates are not relevant
|
|
173
|
+
if (!oOverlay.getIsPartOfTemplate()) {
|
|
174
|
+
aRelevantOverlays = OverlayUtil.findAllOverlaysInContainer(oOverlay);
|
|
175
|
+
|
|
176
|
+
// if an aggregation name is given, those overlays are added without checking the relevant container
|
|
177
|
+
if (sAggregationName) {
|
|
178
|
+
var oAggregationOverlay = oOverlay.getAggregationOverlay(sAggregationName);
|
|
179
|
+
var aAggregationChildren = oAggregationOverlay ? oAggregationOverlay.getChildren() : [];
|
|
180
|
+
aAggregationChildren = aAggregationChildren.filter(function(oChildOverlay) {
|
|
181
|
+
return aRelevantOverlays.indexOf(oChildOverlay) === -1;
|
|
182
|
+
});
|
|
183
|
+
aRelevantOverlays = aRelevantOverlays.concat(aAggregationChildren);
|
|
184
|
+
}
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
oOverlay.setRelevantOverlays(aRelevantOverlays);
|
|
@@ -370,5 +374,22 @@ function(
|
|
|
370
374
|
return true;
|
|
371
375
|
};
|
|
372
376
|
|
|
377
|
+
BasePlugin.prototype._checkChangeHandlerAndStableId = function(oElementOverlay) {
|
|
378
|
+
var oAction = this.getAction(oElementOverlay);
|
|
379
|
+
if (oAction && oAction.changeType) {
|
|
380
|
+
var oElement = oAction.changeOnRelevantContainer ?
|
|
381
|
+
oElementOverlay.getRelevantContainer() :
|
|
382
|
+
oElementOverlay.getElement();
|
|
383
|
+
|
|
384
|
+
return this.hasChangeHandler(oAction.changeType, oElement)
|
|
385
|
+
.then(function(bHasChangeHandler) {
|
|
386
|
+
return bHasChangeHandler
|
|
387
|
+
&& this._checkRelevantContainerStableID(oAction, oElementOverlay)
|
|
388
|
+
&& this.hasStableId(oElementOverlay);
|
|
389
|
+
}.bind(this));
|
|
390
|
+
}
|
|
391
|
+
return Promise.resolve(false);
|
|
392
|
+
};
|
|
393
|
+
|
|
373
394
|
return BasePlugin;
|
|
374
395
|
});
|
|
@@ -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.102.0
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.34
|
|
@@ -59,26 +59,12 @@ sap.ui.define([
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* @param {sap.ui.dt.ElementOverlay}
|
|
63
|
-
* @return {Promise.<boolean
|
|
62
|
+
* @param {sap.ui.dt.ElementOverlay} oOverlay - Overlay to be checked for editable
|
|
63
|
+
* @return {Promise.<boolean>} <code>true</code> if it's editable wrapped in a promise.
|
|
64
64
|
* @private
|
|
65
65
|
*/
|
|
66
|
-
Remove.prototype._isEditable = function (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var oRemoveAction = this.getAction(oElementOverlay);
|
|
70
|
-
if (oRemoveAction && oRemoveAction.changeType) {
|
|
71
|
-
if (oRemoveAction.changeOnRelevantContainer) {
|
|
72
|
-
oElement = oElementOverlay.getRelevantContainer();
|
|
73
|
-
}
|
|
74
|
-
return this.hasChangeHandler(oRemoveAction.changeType, oElement)
|
|
75
|
-
.then(function(bHasChangeHandler) {
|
|
76
|
-
return bHasChangeHandler
|
|
77
|
-
&& this._checkRelevantContainerStableID(oRemoveAction, oElementOverlay)
|
|
78
|
-
&& this.hasStableId(oElementOverlay);
|
|
79
|
-
}.bind(this));
|
|
80
|
-
}
|
|
81
|
-
return false;
|
|
66
|
+
Remove.prototype._isEditable = function (oOverlay) {
|
|
67
|
+
return this._checkChangeHandlerAndStableId(oOverlay);
|
|
82
68
|
};
|
|
83
69
|
|
|
84
70
|
/**
|
|
@@ -114,12 +100,25 @@ sap.ui.define([
|
|
|
114
100
|
/**
|
|
115
101
|
* Checks if Overlay control has a valid parent and if it is
|
|
116
102
|
* not the last visible control in the aggregation
|
|
103
|
+
* The removal of the last element in the aggregation can
|
|
104
|
+
* be defined by the parameter 'removeLastElement' in the
|
|
105
|
+
* designtime of the aggregation
|
|
117
106
|
*
|
|
118
107
|
* @param {sap.ui.dt.ElementOverlay[]} aElementOverlays - overlays to be removed
|
|
119
108
|
* @return {boolean} Returns true if the control can be removed
|
|
120
109
|
* @private
|
|
121
110
|
*/
|
|
122
111
|
Remove.prototype._canBeRemovedFromAggregation = function(aElementOverlays) {
|
|
112
|
+
//Check if designtime allows removing last visible element
|
|
113
|
+
var fnCheckDesignTimeSettings = function (oOverlay) {
|
|
114
|
+
var oParentOverlay = oOverlay.getParentAggregationOverlay();
|
|
115
|
+
if (oParentOverlay) {
|
|
116
|
+
var oAction = this.getAction(oParentOverlay);
|
|
117
|
+
return !!(oAction && oAction.removeLastElement);
|
|
118
|
+
}
|
|
119
|
+
return false;
|
|
120
|
+
}.bind(this);
|
|
121
|
+
|
|
123
122
|
var oOverlay = aElementOverlays[0];
|
|
124
123
|
var oElement = oOverlay.getElement();
|
|
125
124
|
var oParent = oElement.getParent();
|
|
@@ -130,17 +129,17 @@ sap.ui.define([
|
|
|
130
129
|
if (!Array.isArray(aElements)) {
|
|
131
130
|
return true;
|
|
132
131
|
}
|
|
133
|
-
if
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Fallback to 1 if no overlay is selected
|
|
132
|
+
// check if selected Overlays are the last visible elements in aggregation
|
|
138
133
|
var iNumberOfSelectedOverlays = aElementOverlays.length;
|
|
139
134
|
var aInvisibleElements = aElements.filter(function(oElement) {
|
|
140
135
|
var oElementOverlay = OverlayRegistry.getOverlay(oElement);
|
|
141
136
|
return !(oElementOverlay && oElementOverlay.getElementVisibility());
|
|
142
137
|
});
|
|
143
|
-
|
|
138
|
+
var bIsLastVisibleElement = (aInvisibleElements.length + iNumberOfSelectedOverlays === aElements.length);
|
|
139
|
+
if (bIsLastVisibleElement) {
|
|
140
|
+
return fnCheckDesignTimeSettings(oOverlay);
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
144
143
|
};
|
|
145
144
|
|
|
146
145
|
/**
|
|
@@ -323,4 +322,4 @@ sap.ui.define([
|
|
|
323
322
|
};
|
|
324
323
|
|
|
325
324
|
return Remove;
|
|
326
|
-
});
|
|
325
|
+
});
|
|
@@ -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.102.0
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
@@ -76,12 +76,12 @@ sap.ui.define([
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
Rename.prototype.startEdit = function (oOverlay) {
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var vDomRef = oDesignTimeMetadata.getAction("rename", oElement).domRef;
|
|
79
|
+
var vDomRef = this.getAction(oOverlay).domRef;
|
|
80
|
+
var fnGetTextMutators = this.getAction(oOverlay).getTextMutators;
|
|
82
81
|
RenameHandler.startEdit.call(this, {
|
|
83
82
|
overlay: oOverlay,
|
|
84
83
|
domRef: vDomRef,
|
|
84
|
+
getTextMutators: fnGetTextMutators,
|
|
85
85
|
pluginMethodName: "plugin.Rename.startEdit"
|
|
86
86
|
});
|
|
87
87
|
};
|
|
@@ -162,20 +162,7 @@ sap.ui.define([
|
|
|
162
162
|
* @private
|
|
163
163
|
*/
|
|
164
164
|
Rename.prototype._isEditable = function(oOverlay) {
|
|
165
|
-
|
|
166
|
-
var oRenameAction = this.getAction(oOverlay);
|
|
167
|
-
if (oRenameAction && oRenameAction.changeType) {
|
|
168
|
-
if (oRenameAction.changeOnRelevantContainer) {
|
|
169
|
-
oElement = oOverlay.getRelevantContainer();
|
|
170
|
-
}
|
|
171
|
-
return this.hasChangeHandler(oRenameAction.changeType, oElement)
|
|
172
|
-
.then(function(bHasChangeHandler) {
|
|
173
|
-
return bHasChangeHandler
|
|
174
|
-
&& this._checkRelevantContainerStableID(oRenameAction, oOverlay)
|
|
175
|
-
&& this.hasStableId(oOverlay);
|
|
176
|
-
}.bind(this));
|
|
177
|
-
}
|
|
178
|
-
return false;
|
|
165
|
+
return this._checkChangeHandlerAndStableId(oOverlay);
|
|
179
166
|
};
|
|
180
167
|
|
|
181
168
|
/**
|
|
@@ -194,7 +181,7 @@ sap.ui.define([
|
|
|
194
181
|
*/
|
|
195
182
|
Rename.prototype._emitLabelChangeEvent = function() {
|
|
196
183
|
var sText = RenameHandler._getCurrentEditableFieldText.call(this);
|
|
197
|
-
this.
|
|
184
|
+
this._fnSetControlText(sText);
|
|
198
185
|
|
|
199
186
|
var oResponsibleElementOverlay = this.getResponsibleElementOverlay(this._oEditedOverlay);
|
|
200
187
|
var oRenamedElement = oResponsibleElementOverlay.getElement();
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
* Provides Rename handling functionality
|
|
56
56
|
*
|
|
57
57
|
* @author SAP SE
|
|
58
|
-
* @version 1.
|
|
58
|
+
* @version 1.102.0
|
|
59
59
|
*
|
|
60
60
|
* @constructor
|
|
61
61
|
* @private
|
|
@@ -109,6 +109,18 @@ sap.ui.define([
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
this._$oEditableControlDomRef = jQuery(vEditableControlDomRef); /* Text Control */
|
|
112
|
+
var mMutators = typeof mPropertyBag.getTextMutators === "function"
|
|
113
|
+
? mPropertyBag.getTextMutators(oElement)
|
|
114
|
+
: {
|
|
115
|
+
getText: function () {
|
|
116
|
+
return this._$oEditableControlDomRef.text();
|
|
117
|
+
}.bind(this),
|
|
118
|
+
setText: function (sNewText) {
|
|
119
|
+
this._$oEditableControlDomRef.text(sNewText);
|
|
120
|
+
}.bind(this)
|
|
121
|
+
};
|
|
122
|
+
this._fnGetControlText = mMutators.getText;
|
|
123
|
+
this._fnSetControlText = mMutators.setText;
|
|
112
124
|
var iWidthDifference = 0;
|
|
113
125
|
|
|
114
126
|
// case where the editable control has it's own overlay
|
|
@@ -154,11 +166,12 @@ sap.ui.define([
|
|
|
154
166
|
this._$editableField = jQuery("<div contentEditable='true'></div>").appendTo(_$oWrapper);
|
|
155
167
|
|
|
156
168
|
// if label is empty, set a preliminary dummy text at the control to get an overlay
|
|
157
|
-
|
|
158
|
-
|
|
169
|
+
var sCurrentText = this._fnGetControlText();
|
|
170
|
+
if (sCurrentText === "") {
|
|
171
|
+
this._fnSetControlText("_?_");
|
|
159
172
|
this._$editableField.text("");
|
|
160
173
|
} else {
|
|
161
|
-
this._$editableField.text(
|
|
174
|
+
this._$editableField.text(sCurrentText);
|
|
162
175
|
}
|
|
163
176
|
|
|
164
177
|
this.setOldValue(RenameHandler._getCurrentEditableFieldText.call(this));
|
|
@@ -172,6 +185,8 @@ sap.ui.define([
|
|
|
172
185
|
"-webkit-user-modify": "read-write",
|
|
173
186
|
"-ms-user-modify": "read-write",
|
|
174
187
|
"user-modify": "read-write",
|
|
188
|
+
"user-select": "text",
|
|
189
|
+
"-webkit-user-select": "text",
|
|
175
190
|
"text-overflow": "clip",
|
|
176
191
|
"white-space": "nowrap"
|
|
177
192
|
});
|
|
@@ -284,8 +299,8 @@ sap.ui.define([
|
|
|
284
299
|
this.setBusy(false);
|
|
285
300
|
|
|
286
301
|
// exchange the dummy text at the label with the genuine empty text (see start_edit function)
|
|
287
|
-
if (this.
|
|
288
|
-
this.
|
|
302
|
+
if (this._fnGetControlText() === "_?_") {
|
|
303
|
+
this._fnSetControlText("");
|
|
289
304
|
}
|
|
290
305
|
|
|
291
306
|
this._oEditedOverlay.$().find(".sapUiRtaEditableField").remove();
|
|
@@ -305,6 +320,8 @@ sap.ui.define([
|
|
|
305
320
|
delete this._$oEditableControlDomRef;
|
|
306
321
|
delete this._oEditedOverlay;
|
|
307
322
|
delete this._bBlurOrKeyDownStarted;
|
|
323
|
+
delete this._fnGetControlText;
|
|
324
|
+
delete this._fnSetControlText;
|
|
308
325
|
|
|
309
326
|
sap.ui.getCore().getEventBus().publish("sap.ui.rta", sPluginMethodName, {
|
|
310
327
|
overlay: oOverlay
|