@openui5/sap.ui.rta 1.138.0 → 1.139.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/README.md +1 -1
- package/REUSE.toml +8 -1
- package/THIRDPARTY.txt +72 -66
- package/package.json +7 -7
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +75 -122
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +5 -4
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +12 -5
- 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 +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/ExtendControllerCommand.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/ManifestCommand.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- 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/command/manifest/AddLibrary.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +50 -20
- package/src/sap/ui/rta/messagebundle_ar.properties +2 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ca.properties +2 -1
- package/src/sap/ui/rta/messagebundle_cnr.properties +1 -0
- package/src/sap/ui/rta/messagebundle_cs.properties +2 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +1 -0
- package/src/sap/ui/rta/messagebundle_da.properties +2 -1
- package/src/sap/ui/rta/messagebundle_de.properties +2 -1
- package/src/sap/ui/rta/messagebundle_el.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +23 -18
- package/src/sap/ui/rta/messagebundle_es.properties +2 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +1 -0
- package/src/sap/ui/rta/messagebundle_et.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +1 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +2 -1
- package/src/sap/ui/rta/messagebundle_id.properties +4 -3
- package/src/sap/ui/rta/messagebundle_it.properties +2 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +3 -2
- package/src/sap/ui/rta/messagebundle_ja.properties +2 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +2 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +1 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +2 -1
- package/src/sap/ui/rta/messagebundle_mk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +1 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +1 -0
- package/src/sap/ui/rta/messagebundle_no.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +1 -0
- package/src/sap/ui/rta/messagebundle_ru.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +1 -0
- package/src/sap/ui/rta/messagebundle_sk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +1 -0
- package/src/sap/ui/rta/messagebundle_sr.properties +1 -0
- package/src/sap/ui/rta/messagebundle_sv.properties +2 -1
- package/src/sap/ui/rta/messagebundle_th.properties +4 -3
- package/src/sap/ui/rta/messagebundle_tr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +3 -2
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +2 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +1 -0
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +3 -2
- 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/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +57 -35
- 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/ExtendControllerPlugin.js +3 -2
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +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/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 +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +254 -201
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +28 -75
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +49 -11
- package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.fragment.xml +2 -2
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +41 -23
- 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/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +23 -33
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +4 -3
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +2 -7
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +5 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +13 -25
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +22 -5
- package/src/sap/ui/rta/util/guidedTour/TourMarker.fragment.xml +1 -1
- package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +2 -3
|
@@ -6,84 +6,48 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/Log",
|
|
8
8
|
"sap/ui/base/ManagedObject",
|
|
9
|
-
"sap/ui/core/Fragment",
|
|
10
|
-
"sap/ui/core/library",
|
|
11
9
|
"sap/ui/core/Element",
|
|
10
|
+
"sap/ui/core/Fragment",
|
|
12
11
|
"sap/ui/core/Lib",
|
|
12
|
+
"sap/ui/core/library",
|
|
13
|
+
"sap/ui/fl/util/getContainerUserInfo",
|
|
13
14
|
"sap/ui/model/json/JSONModel",
|
|
14
|
-
"sap/ui/
|
|
15
|
+
"sap/ui/model/resource/ResourceModel",
|
|
15
16
|
"sap/ui/rta/plugin/iframe/AddIFrameDialogController",
|
|
16
|
-
"sap/ui/
|
|
17
|
+
"sap/ui/rta/Utils"
|
|
17
18
|
], function(
|
|
18
19
|
Log,
|
|
19
20
|
ManagedObject,
|
|
20
|
-
Fragment,
|
|
21
|
-
coreLibrary,
|
|
22
21
|
Element,
|
|
22
|
+
Fragment,
|
|
23
23
|
Lib,
|
|
24
|
+
coreLibrary,
|
|
25
|
+
getContainerUserInfo,
|
|
24
26
|
JSONModel,
|
|
25
|
-
|
|
27
|
+
ResourceModel,
|
|
26
28
|
AddIFrameDialogController,
|
|
27
|
-
|
|
29
|
+
RtaUtils
|
|
28
30
|
) {
|
|
29
31
|
"use strict";
|
|
30
32
|
|
|
31
33
|
// shortcut for sap.ui.core.ValueState
|
|
32
34
|
var {ValueState} = coreLibrary;
|
|
33
35
|
var _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
34
|
-
var _sDocumentationURL = "https://help.sap.com/docs/search?q=Embedding%20Content%20%28Object%20Pages%29";
|
|
35
|
-
var _sDocumentationHTML = `${_oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_URL_WARNING_TEXT")} (` + `<a href=${_sDocumentationURL}>${_oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_URL_WARNING_LINKTEXT")}</a>)`;
|
|
36
|
-
var _mText = {
|
|
37
|
-
dialogTitle: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TITLE"),
|
|
38
|
-
dialogCreateTitle: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TITLE"),
|
|
39
|
-
dialogUpdateTitle: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_UPDATE_TITLE"),
|
|
40
|
-
sizeTitle: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SIZE_TITLE"),
|
|
41
|
-
widthLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_WIDTH_LABEL"),
|
|
42
|
-
widthUnitLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_WIDTH_UNITLABEL"),
|
|
43
|
-
heightLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_HEIGHT_LABEL"),
|
|
44
|
-
heightUnitLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_HEIGHT_UNITLABEL"),
|
|
45
|
-
dimensionsErrorText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_DIMENSIONS_ERROR"),
|
|
46
|
-
saveText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_SAVE"),
|
|
47
|
-
cancelText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_CANCEL"),
|
|
48
|
-
previewUrlLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_PREVIEW_URL_LABEL"),
|
|
49
|
-
previewUrlMessage: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_PREVIEW_MESSAGE"),
|
|
50
|
-
previewButtonText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_SHOW_PREVIEW"),
|
|
51
|
-
showPreviewButton: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_SHOW_PREVIEW"),
|
|
52
|
-
updatePreviewButton: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_BUTTON_UPDATE_PREVIEW"),
|
|
53
|
-
previewFrameLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_PREVIEW_FRAME_LABEL"),
|
|
54
|
-
parameterSearchLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_PARAMETER_SEARCH_LABEL"),
|
|
55
|
-
editUrlLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_EDIT_URL_LABEL"),
|
|
56
|
-
parametersLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_PARAMETERS_LABEL"),
|
|
57
|
-
columnParameterLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TABLE_PARAMETER_LABEL"),
|
|
58
|
-
columnUiValueLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TABLE_UI_VALUE_LABEL"),
|
|
59
|
-
containerTitleLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_CONTAINER_TITLE_LABEL"),
|
|
60
|
-
containerTitleDefaultValue: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_CONTAINER_TITLE_DEFAULT_VALUE_TEXT"),
|
|
61
|
-
selectAdditionalTextPercentSection: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PERCENT_SECTION"),
|
|
62
|
-
selectAdditionalTextPercentHeader: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PERCENT_HEADER"),
|
|
63
|
-
selectAdditionalTextVh: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_VH"),
|
|
64
|
-
selectAdditionalTextPx: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PX"),
|
|
65
|
-
selectAdditionalTextRem: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_REM"),
|
|
66
|
-
advancedSettingsTitle: _oTextResources.getText("IFRAME_ADDIFRAME_ADVANCED_SETTINGS"),
|
|
67
|
-
additionalParametersSecurityWarningText: _oTextResources.getText("IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_SECURITY_WARNING_TEXT"),
|
|
68
|
-
additionalParametersWarningMoreInfoText: _oTextResources.getText("IFRAME_ADDIFRAME_ADDITIONAL_PARAMETERS_WARNING_MORE_INFO_TEXT"),
|
|
69
|
-
additionalSandboxParametersLabel: _oTextResources.getText("IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_LABEL"),
|
|
70
|
-
additionalSandboxParametersPlaceholder: _oTextResources.getText("IFRAME_ADDIFRAME_ADD_ADDITIONAL_SANDBOX_PARAMETERS_PLACEHOLDER")
|
|
71
|
-
};
|
|
72
36
|
|
|
73
37
|
function createJSONModel(bSetUpdateTitle, bAsContainer, sFrameWidthValue, sFrameHeightValue, oAdvancedSettings) {
|
|
74
|
-
_mText.dialogTitle = bSetUpdateTitle ? _mText.dialogUpdateTitle : _mText.dialogCreateTitle;
|
|
75
|
-
|
|
76
38
|
var sSelectAdditionalTextPercent = bAsContainer
|
|
77
|
-
?
|
|
78
|
-
:
|
|
39
|
+
? _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PERCENT_SECTION")
|
|
40
|
+
: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PERCENT_HEADER");
|
|
79
41
|
|
|
80
42
|
return new JSONModel({
|
|
81
|
-
|
|
43
|
+
dialogTitle: bSetUpdateTitle ?
|
|
44
|
+
_oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_UPDATE_TITLE") :
|
|
45
|
+
_oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TITLE"),
|
|
82
46
|
asContainer: {
|
|
83
47
|
value: bAsContainer
|
|
84
48
|
},
|
|
85
49
|
title: {
|
|
86
|
-
value:
|
|
50
|
+
value: bAsContainer ? _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_CONTAINER_TITLE_DEFAULT_VALUE_TEXT") : null,
|
|
87
51
|
valueState: ValueState.None,
|
|
88
52
|
id: "sapUiRtaAddIFrameDialog_ContainerTitle_TitleInput"
|
|
89
53
|
},
|
|
@@ -96,7 +60,7 @@ sap.ui.define([
|
|
|
96
60
|
value: "%"
|
|
97
61
|
},
|
|
98
62
|
frameHeight: {
|
|
99
|
-
value: parseFloat(sFrameHeightValue) ||
|
|
63
|
+
value: parseFloat(sFrameHeightValue) || 35,
|
|
100
64
|
valueState: ValueState.None,
|
|
101
65
|
id: "sapUiRtaAddIFrameDialog_HeightInput"
|
|
102
66
|
},
|
|
@@ -114,29 +78,26 @@ sap.ui.define([
|
|
|
114
78
|
value: undefined
|
|
115
79
|
},
|
|
116
80
|
previewUrl: { value: "" },
|
|
117
|
-
documentationLink: {
|
|
118
|
-
HTML: _sDocumentationHTML
|
|
119
|
-
},
|
|
120
81
|
parameters: { value: [] },
|
|
121
82
|
unitsOfWidthMeasure: [{
|
|
122
83
|
unit: "%",
|
|
123
84
|
descriptionText: sSelectAdditionalTextPercent
|
|
124
85
|
}, {
|
|
125
86
|
unit: "px",
|
|
126
|
-
descriptionText:
|
|
87
|
+
descriptionText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PX")
|
|
127
88
|
}, {
|
|
128
89
|
unit: "rem",
|
|
129
|
-
descriptionText:
|
|
90
|
+
descriptionText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_REM")
|
|
130
91
|
}],
|
|
131
92
|
unitsOfHeightMeasure: [{
|
|
132
93
|
unit: "vh",
|
|
133
|
-
descriptionText:
|
|
94
|
+
descriptionText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_VH")
|
|
134
95
|
}, {
|
|
135
96
|
unit: "px",
|
|
136
|
-
descriptionText:
|
|
97
|
+
descriptionText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_PX")
|
|
137
98
|
}, {
|
|
138
99
|
unit: "rem",
|
|
139
|
-
descriptionText:
|
|
100
|
+
descriptionText: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_SELECT_ADDITIONAL_TEXT_REM")
|
|
140
101
|
}],
|
|
141
102
|
advancedSettings: {
|
|
142
103
|
value: {
|
|
@@ -149,6 +110,9 @@ sap.ui.define([
|
|
|
149
110
|
},
|
|
150
111
|
settingsUpdate: {
|
|
151
112
|
value: false
|
|
113
|
+
},
|
|
114
|
+
showParameters: {
|
|
115
|
+
value: false
|
|
152
116
|
}
|
|
153
117
|
});
|
|
154
118
|
}
|
|
@@ -159,7 +123,7 @@ sap.ui.define([
|
|
|
159
123
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
160
124
|
* @extends sap.ui.base.ManagedObject
|
|
161
125
|
* @author SAP SE
|
|
162
|
-
* @version 1.
|
|
126
|
+
* @version 1.139.0
|
|
163
127
|
* @constructor
|
|
164
128
|
* @private
|
|
165
129
|
* @since 1.78
|
|
@@ -214,6 +178,8 @@ sap.ui.define([
|
|
|
214
178
|
this._oDialog.setModel(this._oJSONModel, "dialogInfo");
|
|
215
179
|
this._oDialog.setModel(oReferenceControl.getModel());
|
|
216
180
|
this._oDialog.setBindingContext(oReferenceControl.getBindingContext());
|
|
181
|
+
const oI18nModel = new ResourceModel({ bundleName: "sap.ui.rta.messagebundle" });
|
|
182
|
+
this._oDialog.setModel(oI18nModel, "i18n");
|
|
217
183
|
this._openDialog();
|
|
218
184
|
}.bind(this)).catch(function(oError) {
|
|
219
185
|
Log.error("Error loading fragment sap.ui.rta.plugin.iframe.AddIFrameDialog: ", oError);
|
|
@@ -227,7 +193,6 @@ sap.ui.define([
|
|
|
227
193
|
*/
|
|
228
194
|
AddIFrameDialog.prototype._openDialog = function() {
|
|
229
195
|
this._oDialog.attachAfterOpen(function() {
|
|
230
|
-
this._disablePanelExpand();
|
|
231
196
|
const oIframe = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
232
197
|
const oUserModel = oIframe.getModel("$user");
|
|
233
198
|
this._oDialog.setModel(oUserModel, "$user");
|
|
@@ -244,18 +209,6 @@ sap.ui.define([
|
|
|
244
209
|
this._oDialog.open();
|
|
245
210
|
};
|
|
246
211
|
|
|
247
|
-
/**
|
|
248
|
-
* Disables the opening of the Panel at start
|
|
249
|
-
*
|
|
250
|
-
* @private
|
|
251
|
-
*/
|
|
252
|
-
AddIFrameDialog.prototype._disablePanelExpand = function() {
|
|
253
|
-
var oPanelButton = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewLinkPanel").getDependents()[0];
|
|
254
|
-
if (oPanelButton) {
|
|
255
|
-
oPanelButton.setEnabled(false);
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
|
|
259
212
|
/**
|
|
260
213
|
* Helper to extract current context URL parameters for the URL builder
|
|
261
214
|
*
|
|
@@ -57,6 +57,14 @@ sap.ui.define([
|
|
|
57
57
|
return new Token({key: sText, text: sText});
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
function setNewPreviewSize(sPropertyName) {
|
|
61
|
+
const sUnit = this._oJSONModel.getProperty(`${sPropertyName}Unit/value`);
|
|
62
|
+
const sValue = this._oJSONModel.getProperty(`${sPropertyName}/value`);
|
|
63
|
+
const oIFramePreview = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
64
|
+
const sIFramePropertyName = sPropertyName === "/frameWidth" ? "width" : "height";
|
|
65
|
+
oIFramePreview.setProperty(sIFramePropertyName, sValue + sUnit);
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
return Controller.extend("sap.ui.rta.plugin.iframe.AddIFrameDialogController", {
|
|
61
69
|
// eslint-disable-next-line object-shorthand
|
|
62
70
|
constructor: function(oJSONModel, mSettings) {
|
|
@@ -138,9 +146,8 @@ sap.ui.define([
|
|
|
138
146
|
|
|
139
147
|
/**
|
|
140
148
|
* Event handler for Show Preview button
|
|
141
|
-
* @param {sap.ui.base.Event} oEvent - Event
|
|
142
149
|
*/
|
|
143
|
-
|
|
150
|
+
onPreviewPress() {
|
|
144
151
|
const sReturnedURL = this._buildReturnedURL();
|
|
145
152
|
const sURL = this._buildPreviewURL();
|
|
146
153
|
|
|
@@ -148,15 +155,6 @@ sap.ui.define([
|
|
|
148
155
|
return;
|
|
149
156
|
}
|
|
150
157
|
const oIFrame = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
151
|
-
// enable/disable expanding the Panel
|
|
152
|
-
const oPanel = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewLinkPanel");
|
|
153
|
-
const oPanelButton = oPanel.getDependents()[0];
|
|
154
|
-
if (sURL) {
|
|
155
|
-
oPanelButton.setEnabled(true);
|
|
156
|
-
} else {
|
|
157
|
-
oPanel.setExpanded(false);
|
|
158
|
-
oPanelButton.setEnabled(false);
|
|
159
|
-
}
|
|
160
158
|
try {
|
|
161
159
|
this._oJSONModel.setProperty("/previousFrameUrl/value", sReturnedURL);
|
|
162
160
|
this._oJSONModel.setProperty("/settingsUpdate/value", false);
|
|
@@ -164,11 +162,23 @@ sap.ui.define([
|
|
|
164
162
|
oIFrame.applySettings({ url: sURL, advancedSettings: {...this._oJSONModel.getProperty("/advancedSettings/value")} });
|
|
165
163
|
// Use the URL from the IFrame to ensure that the complete path is shown
|
|
166
164
|
this._oJSONModel.setProperty("/previewUrl/value", oIFrame.getUrl());
|
|
165
|
+
// Prevent the URL preview link (next element in the DOM) from getting the focus because it looks bad
|
|
166
|
+
setTimeout(() => {
|
|
167
|
+
Element.getElementById("sapUiRtaAddIFrameDialog_PreviewLink").getFocusDomRef().blur();
|
|
168
|
+
}, 0);
|
|
167
169
|
} catch (oError) {
|
|
168
170
|
Log.error("Error previewing the URL: ", oError);
|
|
169
171
|
}
|
|
170
172
|
},
|
|
171
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Event handler for handling the visibility of the parameters table
|
|
176
|
+
*/
|
|
177
|
+
toggleParameterVisibility() {
|
|
178
|
+
const bValue = this._oJSONModel.getProperty("/showParameters/value");
|
|
179
|
+
this._oJSONModel.setProperty("/showParameters/value", !bValue);
|
|
180
|
+
},
|
|
181
|
+
|
|
172
182
|
/**
|
|
173
183
|
* Event handler for pressing a parameter
|
|
174
184
|
* @param {sap.ui.base.Event} oEvent - Event
|
|
@@ -189,6 +199,34 @@ sap.ui.define([
|
|
|
189
199
|
oBinding.filter([oFilter]);
|
|
190
200
|
},
|
|
191
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Event handler for size value change - can be the width or height
|
|
204
|
+
* This is used to update the iFrame size in the preview
|
|
205
|
+
* @param {sap.ui.base.Event} oEvent - Event
|
|
206
|
+
*/
|
|
207
|
+
onSizeValueChange(oEvent) {
|
|
208
|
+
// Get changed field and retrieve its unit from this._oJSONModel
|
|
209
|
+
const oSource = oEvent.getSource();
|
|
210
|
+
const sPropertyPath = oSource.getBindingInfo("value").parts[0].path;
|
|
211
|
+
// Extract "/frameWidth" or "/frameHeight" from the binding path (e.g. /frameWidth/value)
|
|
212
|
+
const sPropertyName = sPropertyPath.replace(/\/value$/, "");
|
|
213
|
+
setNewPreviewSize.call(this, sPropertyName);
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Event handler for size unit change - can be the width or height
|
|
218
|
+
* This is used to update the iFrame size in the preview
|
|
219
|
+
* @param {sap.ui.base.Event} oEvent - Event
|
|
220
|
+
*/
|
|
221
|
+
onSizeUnitChange(oEvent) {
|
|
222
|
+
// Get changed field and retrieve its unit from this._oJSONModel
|
|
223
|
+
const oSource = oEvent.getSource();
|
|
224
|
+
const sPropertyPath = oSource.getBindingInfo("selectedKey").parts[0].path;
|
|
225
|
+
// Extract "/frameWidth" or "/frameHeight" from the binding path (e.g. /frameWidthUnit/value)
|
|
226
|
+
const sPropertyName = sPropertyPath.replace(/Unit\/value$/, "");
|
|
227
|
+
setNewPreviewSize.call(this, sPropertyName);
|
|
228
|
+
},
|
|
229
|
+
|
|
192
230
|
/**
|
|
193
231
|
* Build preview URL
|
|
194
232
|
* @returns {string} URL with resolved bindings
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
resizable="false"
|
|
8
8
|
draggable="true"
|
|
9
9
|
contentWidth="50rem"
|
|
10
|
-
title="{i18n>RENAME_DIALOG_TITLE}"
|
|
10
|
+
title="{= ${/dialogSettings/title} || ${i18n>RENAME_DIALOG_TITLE}}"
|
|
11
11
|
class="sapUiContentPadding"
|
|
12
12
|
initialFocus="sapUiRtaRenameDialog_input"
|
|
13
13
|
escapeHandler=".onCancel"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<beginButton>
|
|
46
46
|
<Button
|
|
47
47
|
id="sapUiRtaRenameDialog_saveButton"
|
|
48
|
-
enabled="{
|
|
48
|
+
enabled="{/isSaveEnabled}"
|
|
49
49
|
type="Emphasized"
|
|
50
50
|
text="{i18n>RENAME_DIALOG_CONFIRM}"
|
|
51
51
|
press="onSave"
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class Constructor for a new sap.ui.rta.plugin.rename.RenameDialog.
|
|
28
28
|
* @extends sap.ui.base.ManagedObject
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.139.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @since 1.136
|
|
33
33
|
* @private
|
|
@@ -58,18 +58,42 @@ sap.ui.define([
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
function getCurrentText(mPropertyBag) {
|
|
62
|
+
if (mPropertyBag.currentText) {
|
|
63
|
+
return mPropertyBag.currentText;
|
|
64
|
+
}
|
|
63
65
|
const oOverlay = mPropertyBag.overlay;
|
|
64
66
|
const oElement = oOverlay.getElement();
|
|
65
67
|
const oDesignTimeMetadata = oOverlay.getDesignTimeMetadata();
|
|
66
68
|
const oEditableControlDomRef = oDesignTimeMetadata.getAssociatedDomRef(oElement, mPropertyBag.domRef);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
if (typeof mPropertyBag.action.getTextMutators === "function") {
|
|
70
|
+
return mPropertyBag.action.getTextMutators(oElement).getText();
|
|
71
|
+
}
|
|
72
|
+
return oEditableControlDomRef.textContent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Opens the rename dialog and handles the rename.
|
|
77
|
+
* @param {object} mPropertyBag - Properties for the rename dialog
|
|
78
|
+
* @param {object} mPropertyBag.action - Action definition used to retrieve validators
|
|
79
|
+
* @param {sap.ui.dt.ElementOverlay} mPropertyBag.overlay - Overlay of the element to be renamed
|
|
80
|
+
* @param {string} [mPropertyBag.currentText] - Current text of the element, if not provided it will be fetched via the designtime metadata
|
|
81
|
+
* @param {boolean} [mPropertyBag.acceptSameText] - If true, the save button is still enabled and will return the same text if no changes are made
|
|
82
|
+
* @param {object} [mPropertyBag.dialogSettings] - Additional settings to customize the dialog
|
|
83
|
+
* @param {string} [mPropertyBag.dialogSettings.title] - Title of the dialog
|
|
84
|
+
* @returns {Promise<string>} Promise that resolves with the new text after renaming or undefined if cancelled
|
|
85
|
+
* @private
|
|
86
|
+
* @ui5-restricted sap.ui.rta
|
|
87
|
+
*/
|
|
88
|
+
RenameDialog.prototype.openDialogAndHandleRename = async function(mPropertyBag) {
|
|
89
|
+
this._oDialog = await this._createPopup();
|
|
90
|
+
const sCurrentText = getCurrentText(mPropertyBag);
|
|
91
|
+
this.bAcceptSameText = mPropertyBag.acceptSameText || false;
|
|
70
92
|
this.oDialogModel.setData({
|
|
71
93
|
oldText: sCurrentText,
|
|
72
|
-
newText: sCurrentText
|
|
94
|
+
newText: sCurrentText,
|
|
95
|
+
dialogSettings: mPropertyBag.dialogSettings || {},
|
|
96
|
+
isSaveEnabled: this.bAcceptSameText
|
|
73
97
|
});
|
|
74
98
|
this.oDialogModel.refresh(true);
|
|
75
99
|
this.oAction = mPropertyBag.action;
|
|
@@ -85,43 +109,37 @@ sap.ui.define([
|
|
|
85
109
|
return sNewText;
|
|
86
110
|
};
|
|
87
111
|
|
|
88
|
-
|
|
89
|
-
VALID: "VALID",
|
|
90
|
-
INVALID: "INVALID",
|
|
91
|
-
SAME_TEXT: "SAME_TEXT"
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
RenameDialog.prototype.checkValidRename = function() {
|
|
112
|
+
function checkValidRename() {
|
|
95
113
|
const oModelData = this.oDialogModel.getData();
|
|
96
114
|
const sNewText = oModelData.newText || "";
|
|
97
115
|
const sOldText = oModelData.oldText || "";
|
|
98
116
|
try {
|
|
99
117
|
validateText(sNewText, sOldText, this.oAction);
|
|
100
118
|
this.oDialogModel.setProperty("/validationError", undefined);
|
|
101
|
-
|
|
119
|
+
this.oDialogModel.setProperty("/isSaveEnabled", true);
|
|
120
|
+
return true;
|
|
102
121
|
} catch (oError) {
|
|
103
122
|
if (oError.message === "sameTextError") {
|
|
104
123
|
// Do not show error message in case of same text
|
|
105
124
|
this.oDialogModel.setProperty("/validationError", undefined);
|
|
106
|
-
|
|
125
|
+
this.oDialogModel.setProperty("/isSaveEnabled", this.bAcceptSameText);
|
|
126
|
+
return true;
|
|
107
127
|
}
|
|
108
128
|
this.oDialogModel.setProperty("/validationError", oError.message);
|
|
109
|
-
this.oDialogModel.setProperty("/
|
|
110
|
-
return
|
|
129
|
+
this.oDialogModel.setProperty("/isSaveEnabled", false);
|
|
130
|
+
return false;
|
|
111
131
|
}
|
|
112
|
-
}
|
|
132
|
+
}
|
|
113
133
|
|
|
114
134
|
RenameDialog.prototype.onTextChange = function(oEvent) {
|
|
115
135
|
const sNewText = oEvent.getParameter("value").trim("");
|
|
116
136
|
this.oDialogModel.setProperty("/newText", sNewText.length ? sNewText : "\xa0");
|
|
117
|
-
|
|
137
|
+
checkValidRename.call(this);
|
|
118
138
|
};
|
|
119
139
|
|
|
120
140
|
RenameDialog.prototype.onSave = function() {
|
|
121
|
-
if (
|
|
141
|
+
if (checkValidRename.call(this)) {
|
|
122
142
|
this._fnResolveAfterClose(this.oDialogModel.getData().newText);
|
|
123
|
-
} else if (this.checkValidRename() === VALIDATION_STATES.SAME_TEXT) {
|
|
124
|
-
this._fnResolveAfterClose();
|
|
125
143
|
}
|
|
126
144
|
};
|
|
127
145
|
|
|
@@ -18,23 +18,27 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.sapUiRtaAddIFrameDialogVlWrapper {
|
|
21
|
-
.
|
|
22
|
-
margin-top: 1rem;
|
|
21
|
+
.sapUiRtaAddIFrameDialogContainer {
|
|
23
22
|
padding: 0 1rem 0 1rem;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
.
|
|
27
|
-
margin-top:
|
|
25
|
+
.sapUiRtaAddIFrameDialogShowParametersButton {
|
|
26
|
+
margin-top: 1.3rem;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
.
|
|
31
|
-
margin-top:
|
|
32
|
-
padding-left: 1rem;
|
|
29
|
+
.sapUiRtaAddIFrameDialogHideParametersButton {
|
|
30
|
+
margin-top: -@sapUiMarginTiny;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
.
|
|
36
|
-
margin-
|
|
33
|
+
.sapUiRtaAddIFrameParametersHeader {
|
|
34
|
+
margin-bottom: -@sapUiMarginTiny;
|
|
35
|
+
}
|
|
37
36
|
|
|
37
|
+
.sapUiRtaAddIFrameDialogSizeVBox {
|
|
38
|
+
margin-top: -@sapUiMarginSmall;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sapUiRtaAddIFrameDialogSizeGrid {
|
|
38
42
|
.sapUiFormResGridMain {
|
|
39
43
|
padding: 0;
|
|
40
44
|
}
|
|
@@ -59,13 +63,8 @@
|
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
.sapUiRtaAddIFrameDialogEditGrid {
|
|
62
|
-
height: 15rem;
|
|
63
66
|
margin-top: 1rem;
|
|
64
67
|
|
|
65
|
-
> div {
|
|
66
|
-
margin-bottom: 0.5rem;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
68
|
.sapUiRtaAddIFrameDialogParameters {
|
|
70
69
|
.sapMScrollCont {
|
|
71
70
|
border: 0.0625rem solid @_sap_ui_rta_AddIFrame_BorderColor; //1px
|
|
@@ -87,26 +86,22 @@
|
|
|
87
86
|
padding-left: 1.625rem;
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
.
|
|
91
|
-
.
|
|
89
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsGrid {
|
|
90
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsPanel {
|
|
92
91
|
margin: 0 !important;
|
|
93
92
|
|
|
94
93
|
.sapMPanelContent {
|
|
95
94
|
padding: 0.5rem 1rem 0.5rem 1rem;
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
.
|
|
97
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsToolbar {
|
|
99
98
|
height: 2rem !important;
|
|
100
99
|
padding-right: 0;
|
|
101
100
|
margin-left: 2.75rem;
|
|
102
101
|
|
|
103
|
-
.
|
|
102
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsTitle {
|
|
104
103
|
font-size: 0.875rem;
|
|
105
104
|
}
|
|
106
|
-
|
|
107
|
-
.sapUiRtaAddIFrameDialogPreviewButton {
|
|
108
|
-
margin: 0 !important;
|
|
109
|
-
}
|
|
110
105
|
}
|
|
111
106
|
}
|
|
112
107
|
}
|
|
@@ -116,18 +111,13 @@
|
|
|
116
111
|
margin: 0 1rem 1rem;
|
|
117
112
|
background: @_sap_ui_rta_AddIFrame_PreviewBackgroundColor;
|
|
118
113
|
border: 0.0625rem solid @_sap_ui_rta_AddIFrame_BorderColor; //1px
|
|
114
|
+
overflow: auto;
|
|
115
|
+
height: 230px;
|
|
119
116
|
|
|
120
117
|
> div {
|
|
121
118
|
margin-bottom: 0;
|
|
122
119
|
height: 9.75rem;
|
|
123
120
|
}
|
|
124
|
-
|
|
125
|
-
.sapUiRtaAddIFrameDialogNoPreviewLabel {
|
|
126
|
-
margin-top: 4rem;
|
|
127
|
-
}
|
|
128
|
-
.sapMLabelTextWrapper {
|
|
129
|
-
color: @_sap_ui_rta_AddIFrame_PreviewTextColor;
|
|
130
|
-
}
|
|
131
121
|
}
|
|
132
122
|
}
|
|
133
123
|
}
|
|
@@ -136,12 +126,12 @@
|
|
|
136
126
|
.sapUiRtaMode.sapUiSizeCozy {
|
|
137
127
|
.sapUiRtaAddIFrameDialog {
|
|
138
128
|
.sapUiRtaAddIFrameDialogVlWrapper {
|
|
139
|
-
.
|
|
140
|
-
.
|
|
141
|
-
.
|
|
129
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsGrid {
|
|
130
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsPanel {
|
|
131
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsToolbar {
|
|
142
132
|
height: 2.625rem !important;
|
|
143
133
|
|
|
144
|
-
.
|
|
134
|
+
.sapUiRtaAddIFrameDialogAdvancedSettingsTitle {
|
|
145
135
|
margin-left: 0.25rem;
|
|
146
136
|
}
|
|
147
137
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
enabled="{parts: ['controls>/appVariantMenu/saveAs/enabled', 'versions>/displayedVersion'], formatter: '.formatSaveAsEnabled'}"
|
|
64
64
|
press=".saveAs"
|
|
65
65
|
icon="sap-icon://copy"
|
|
66
|
-
tooltip="{
|
|
66
|
+
tooltip="{parts: ['controls>/appVariantMenu/saveAs/enabled', 'versions>/displayedVersion'], formatter: '.formatSaveAsAppVariants'}"
|
|
67
67
|
text="{i18n>BTN_SAVE_AS}" />
|
|
68
68
|
</items>
|
|
69
69
|
</MenuItem>
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @extends sap.ui.rta.toolbar.Base
|
|
68
68
|
*
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.139.0
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
@@ -384,8 +384,9 @@ sap.ui.define([
|
|
|
384
384
|
return bAppVariantsMenuEnabled ? null : this.getTextResources().getText("TOOLTIP_MANAGE_APPS_TXT_DISABLED");
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
function formatSaveAsAppVariantsEnabled(bAppVariantSaveAsEnabled) {
|
|
388
|
-
return bAppVariantSaveAsEnabled
|
|
387
|
+
function formatSaveAsAppVariantsEnabled(bAppVariantSaveAsEnabled, sDisplayedVersion) {
|
|
388
|
+
return (bAppVariantSaveAsEnabled && sDisplayedVersion !== Version.Number.Draft)
|
|
389
|
+
? null : this.getTextResources().getText("TOOLTIP_SAVE_AS_APP_VARIANT_DISABLED");
|
|
389
390
|
}
|
|
390
391
|
|
|
391
392
|
function onSaveAsPressed() {
|