@openui5/sap.ui.rta 1.111.1 → 1.112.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/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 +41 -14
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +5 -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 +9 -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 +5 -2
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +22 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +5 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +18 -0
- package/src/sap/ui/rta/messagebundle_ar.properties +13 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ca.properties +13 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +13 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +13 -1
- package/src/sap/ui/rta/messagebundle_da.properties +13 -1
- package/src/sap/ui/rta/messagebundle_de.properties +13 -1
- package/src/sap/ui/rta/messagebundle_el.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +10 -2
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +13 -1
- package/src/sap/ui/rta/messagebundle_es.properties +13 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +13 -1
- package/src/sap/ui/rta/messagebundle_et.properties +13 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +13 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -2
- package/src/sap/ui/rta/messagebundle_hi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +13 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +13 -1
- package/src/sap/ui/rta/messagebundle_id.properties +13 -1
- package/src/sap/ui/rta/messagebundle_it.properties +13 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +13 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +13 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +13 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +13 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +13 -1
- package/src/sap/ui/rta/messagebundle_no.properties +13 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +13 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +14 -2
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +13 -1
- package/src/sap/ui/rta/messagebundle_th.properties +13 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +13 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +13 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +13 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +13 -1
- 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 +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- 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 +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/Rename.js +15 -11
- package/src/sap/ui/rta/plugin/RenameHandler.js +6 -56
- 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/iframe/AddIFrame.js +13 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +73 -48
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +16 -14
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +34 -3
- 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 +9 -0
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +19 -21
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +30 -22
- package/src/sap/ui/rta/toolbar/Adaptation.js +118 -66
- package/src/sap/ui/rta/toolbar/Base.js +6 -2
- package/src/sap/ui/rta/toolbar/Fiori.js +49 -10
- 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/contextBased/ManageAdaptations.js +16 -6
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +17 -0
- 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/UrlParser.js +14 -7
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +8 -5
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +15 -10
- package/src/sap/ui/rta/util/validateText.js +71 -0
|
@@ -21,52 +21,77 @@
|
|
|
21
21
|
id="sapUiRtaAddIFrameDialog_VL"
|
|
22
22
|
width="100%"
|
|
23
23
|
class="sapUiRtaAddIFrameDialogVlWrapper">
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
24
|
+
<VBox visible="{/asContainer/value}" class="sapUiRtaAddIFrameDialogContainerTitleVBox" renderType="Bare">
|
|
25
|
+
<items>
|
|
26
|
+
<Label
|
|
27
|
+
id="sapUiRtaAddIFrameDialog_ContainerTitleLabel"
|
|
28
|
+
text="{/text/containerTitleLabel}"
|
|
29
|
+
class="sapUiRtaAddIFrameDialogContainerTitleLabel"
|
|
30
|
+
design="Bold"
|
|
31
|
+
/>
|
|
32
|
+
<Input
|
|
33
|
+
id="sapUiRtaAddIFrameDialog_ContainerTitle_TitleInput"
|
|
34
|
+
class="sapUiRtaAddIFrameDialogContainerTitleInput"
|
|
35
|
+
value="{
|
|
36
|
+
path : '/title/value',
|
|
37
|
+
type : 'sap.ui.model.type.String'
|
|
38
|
+
}"
|
|
39
|
+
liveChange=".onContainerTitleChange"
|
|
40
|
+
valueLiveUpdate="true"
|
|
41
|
+
valueState="{/title/valueState}"
|
|
42
|
+
/>
|
|
43
|
+
</items>
|
|
44
|
+
</VBox>
|
|
45
|
+
<VBox>
|
|
46
|
+
<items>
|
|
47
|
+
<Label id="sapUiRtaAddIFrameDialog_SizeTitle" text="{/text/sizeTitle}" class="sapUiRtaAddIFrameDialogSizeTitle" design="Bold"/>
|
|
48
|
+
<layout:Grid
|
|
49
|
+
id="sapUiRtaAddIFrameDialog_SizeGrid"
|
|
50
|
+
containerQuery="true" position="Center"
|
|
51
|
+
class="sapUiRtaAddIFrameDialogSizeGrid"
|
|
52
|
+
defaultSpan="XL6 L6 M6 S12">
|
|
53
|
+
<form:SimpleForm
|
|
54
|
+
id="sapUiRtaAddIFrameDialog_WidthForm" editable="true" layout="ResponsiveGridLayout" class="sapUiRtaAddIFrameDialogWidthForm"
|
|
55
|
+
adjustLabelSpan="false" singleContainerFullSize="false" ariaLabelledBy="sapUiRtaAddIFrameDialog_WidthLabel"
|
|
56
|
+
labelSpanXL="2" labelSpanL="2" labelSpanM="2" labelSpanS="4"
|
|
57
|
+
emptySpanXL="2" emptySpanL="2" emptySpanM="2" emptySpanS="0"
|
|
58
|
+
>
|
|
59
|
+
<form:content>
|
|
60
|
+
<Label id="sapUiRtaAddIFrameDialog_WidthLabel" class="sapUiRtaAddIFrameDialogWidthLabel" labelFor="sapUiRtaAddIFrameDialog_WidthInput"
|
|
61
|
+
text="{/text/widthLabel}">
|
|
62
|
+
</Label>
|
|
63
|
+
<Input id="sapUiRtaAddIFrameDialog_WidthInput" class="sapUiRtaAddIFrameDialogWidthInput"
|
|
64
|
+
value="{path: '/frameWidth/value', type: 'sap.ui.model.type.Float', constraints: {minimum: 1}}"
|
|
65
|
+
valueState="{/frameWidth/valueState}"/>
|
|
66
|
+
<Select id="sapUiRtaAddIFrameDialog_WidthUnit" class="sapUiRtaAddIFrameDialogWidthUnit"
|
|
67
|
+
ariaLabelledBy="sapUiRtaAddIFrameDialog_WidthUnitLabel" change="onSizeUnitChange"
|
|
68
|
+
selectedKey="{/frameWidthUnit/value}" items="{/unitsOfMeasure}">
|
|
69
|
+
<core:Item key="{name}" text="{name}" />
|
|
70
|
+
</Select>
|
|
71
|
+
</form:content>
|
|
72
|
+
</form:SimpleForm>
|
|
73
|
+
<form:SimpleForm
|
|
74
|
+
id="sapUiRtaAddIFrameDialog_HeightForm" editable="true" layout="ResponsiveGridLayout" class="sapUiRtaAddIFrameDialogHeightForm"
|
|
75
|
+
adjustLabelSpan="false" singleContainerFullSize="false" ariaLabelledBy="sapUiRtaAddIFrameDialog_HeightLabel"
|
|
76
|
+
labelSpanXL="2" labelSpanL="2" labelSpanM="2" labelSpanS="4"
|
|
77
|
+
emptySpanXL="2" emptySpanL="2" emptySpanM="2" emptySpanS="0"
|
|
78
|
+
>
|
|
79
|
+
<form:content>
|
|
80
|
+
<Label id="sapUiRtaAddIFrameDialog_HeightLabel" class="sapUiRtaAddIFrameDialogHeightLabel" labelFor="sapUiRtaAddIFrameDialog_HeightInput"
|
|
81
|
+
text="{/text/heightLabel}"/>
|
|
82
|
+
<Input id="sapUiRtaAddIFrameDialog_HeightInput" class="sapUiRtaAddIFrameDialogHeightInput"
|
|
83
|
+
value="{path: '/frameHeight/value', type: 'sap.ui.model.type.Float', constraints: {minimum: 1}}"
|
|
84
|
+
valueState="{/frameHeight/valueState}"/>
|
|
85
|
+
<Select id="sapUiRtaAddIFrameDialog_HeightUnit" class="sapUiRtaAddIFrameDialogHeightUnit"
|
|
86
|
+
ariaLabelledBy="sapUiRtaAddIFrameDialog_HeightUnitLabel" change="onSizeUnitChange"
|
|
87
|
+
selectedKey="{/frameHeightUnit/value}" items="{/unitsOfMeasure}">
|
|
88
|
+
<core:Item key="{name}" text="{name}" />
|
|
89
|
+
</Select>
|
|
90
|
+
</form:content>
|
|
91
|
+
</form:SimpleForm>
|
|
92
|
+
</layout:Grid>
|
|
93
|
+
</items>
|
|
94
|
+
</VBox>
|
|
70
95
|
<layout:Grid
|
|
71
96
|
id="sapUiRtaAddIFrameDialog_PercentGrid"
|
|
72
97
|
class="sapUiRtaAddIFrameDialogPercentGrid"
|
|
@@ -85,9 +110,9 @@
|
|
|
85
110
|
<Label id="sapUiRtaAddIFrameDialog_ParametersLabel" text="{/text/parametersLabel}" labelFor="sapUiRtaAddIFrameDialog_ParameterTable"
|
|
86
111
|
class="sapUiRtaAddIFrameDialogParametersLabel" design="Bold"/>
|
|
87
112
|
<SearchField
|
|
88
|
-
id="sapUiRtaAddIFrameDialog_ParametersSearch"
|
|
113
|
+
id="sapUiRtaAddIFrameDialog_ParametersSearch"
|
|
89
114
|
ariaLabelledBy="sapUiRtaAddIFrameDialog_ParameterSearchLabel"
|
|
90
|
-
class="sapUiRtaAddIFrameDialogParametersSearch"
|
|
115
|
+
class="sapUiRtaAddIFrameDialogParametersSearch"
|
|
91
116
|
liveChange="onLiveChange"
|
|
92
117
|
showSearchButton="false"
|
|
93
118
|
/>
|
|
@@ -51,10 +51,12 @@ sap.ui.define([
|
|
|
51
51
|
editUrlLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_EDIT_URL_LABEL"),
|
|
52
52
|
parametersLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_PARAMETERS_LABEL"),
|
|
53
53
|
columnParameterLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TABLE_PARAMETER_LABEL"),
|
|
54
|
-
columnUiValueLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TABLE_UI_VALUE_LABEL")
|
|
54
|
+
columnUiValueLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TABLE_UI_VALUE_LABEL"),
|
|
55
|
+
containerTitleLabel: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_CONTAINER_TITLE_LABEL"),
|
|
56
|
+
containerTitleDefaultValue: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_CONTAINER_TITLE_DEFAULT_VALUE_TEXT")
|
|
55
57
|
};
|
|
56
58
|
|
|
57
|
-
function createJSONModel(bSetUpdateTitle) {
|
|
59
|
+
function createJSONModel(bSetUpdateTitle, bAsContainer) {
|
|
58
60
|
if (bSetUpdateTitle) {
|
|
59
61
|
_mText.dialogTitle = _mText.dialogUpdateTitle;
|
|
60
62
|
} else {
|
|
@@ -62,15 +64,13 @@ sap.ui.define([
|
|
|
62
64
|
}
|
|
63
65
|
return new JSONModel({
|
|
64
66
|
text: _mText,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
asContainer: {
|
|
68
|
+
value: bAsContainer
|
|
67
69
|
},
|
|
68
|
-
|
|
69
|
-
value:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
value: "",
|
|
73
|
-
valueState: ValueState.None
|
|
70
|
+
title: {
|
|
71
|
+
value: _mText.containerTitleDefaultValue,
|
|
72
|
+
valueState: ValueState.None,
|
|
73
|
+
id: "sapUiRtaAddIFrameDialog_ContainerTitle_TitleInput"
|
|
74
74
|
},
|
|
75
75
|
frameWidth: {
|
|
76
76
|
value: 100,
|
|
@@ -113,7 +113,7 @@ sap.ui.define([
|
|
|
113
113
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
114
114
|
* @extends sap.ui.base.ManagedObject
|
|
115
115
|
* @author SAP SE
|
|
116
|
-
* @version 1.
|
|
116
|
+
* @version 1.112.0
|
|
117
117
|
* @constructor
|
|
118
118
|
* @private
|
|
119
119
|
* @since 1.78
|
|
@@ -150,11 +150,13 @@ sap.ui.define([
|
|
|
150
150
|
*/
|
|
151
151
|
AddIFrameDialog.prototype._createDialog = function(mSettings) {
|
|
152
152
|
// set the correct title
|
|
153
|
-
var bSetUpdateTitle
|
|
153
|
+
var bSetUpdateTitle;
|
|
154
|
+
var bAsContainer;
|
|
154
155
|
if (mSettings) {
|
|
155
|
-
bSetUpdateTitle = mSettings.updateMode
|
|
156
|
+
bSetUpdateTitle = !!mSettings.updateMode;
|
|
157
|
+
bAsContainer = !!mSettings.asContainer;
|
|
156
158
|
}
|
|
157
|
-
this._oJSONModel = createJSONModel(bSetUpdateTitle);
|
|
159
|
+
this._oJSONModel = createJSONModel(bSetUpdateTitle, bAsContainer);
|
|
158
160
|
this._oController = new AddIFrameDialogController(this._oJSONModel, mSettings);
|
|
159
161
|
Fragment.load({
|
|
160
162
|
name: "sap.ui.rta.plugin.iframe.AddIFrameDialog",
|
|
@@ -7,6 +7,7 @@ sap.ui.define([
|
|
|
7
7
|
"sap/base/Log",
|
|
8
8
|
"sap/ui/core/mvc/Controller",
|
|
9
9
|
"sap/ui/core/library",
|
|
10
|
+
"sap/ui/rta/util/validateText",
|
|
10
11
|
"sap/ui/rta/Utils",
|
|
11
12
|
"sap/ui/fl/util/IFrame",
|
|
12
13
|
"sap/ui/model/Filter",
|
|
@@ -16,6 +17,7 @@ sap.ui.define([
|
|
|
16
17
|
Log,
|
|
17
18
|
Controller,
|
|
18
19
|
coreLibrary,
|
|
20
|
+
validateText,
|
|
19
21
|
Utils,
|
|
20
22
|
IFrame,
|
|
21
23
|
Filter,
|
|
@@ -27,10 +29,9 @@ sap.ui.define([
|
|
|
27
29
|
// shortcut for sap.ui.core.ValueState
|
|
28
30
|
var ValueState = coreLibrary.ValueState;
|
|
29
31
|
|
|
30
|
-
var _aTextInputFields = ["frameUrl"];
|
|
32
|
+
var _aTextInputFields = ["frameUrl", "title"];
|
|
31
33
|
var _aNumericInputFields = ["frameWidth", "frameHeight"];
|
|
32
|
-
var _aSelectInputFields = ["
|
|
33
|
-
|
|
34
|
+
var _aSelectInputFields = ["frameWidthUnit", "frameHeightUnit"];
|
|
34
35
|
|
|
35
36
|
function isValidUrl(sUrl) {
|
|
36
37
|
return IFrame.isValidUrl(encodeURI(sUrl));
|
|
@@ -203,6 +204,31 @@ sap.ui.define([
|
|
|
203
204
|
this._close();
|
|
204
205
|
},
|
|
205
206
|
|
|
207
|
+
onContainerTitleChange: function(oEvent) {
|
|
208
|
+
var oInput = oEvent.getSource();
|
|
209
|
+
var sValueState = "None";
|
|
210
|
+
var bValidationError = false;
|
|
211
|
+
var sValue = oInput.getValue();
|
|
212
|
+
|
|
213
|
+
if (sValue.trim() === "") {
|
|
214
|
+
sValueState = "Error";
|
|
215
|
+
oInput.setValueState(sValueState);
|
|
216
|
+
bValidationError = true;
|
|
217
|
+
return bValidationError;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
try {
|
|
221
|
+
validateText(sValue);
|
|
222
|
+
} catch (oException) {
|
|
223
|
+
sValueState = "Error";
|
|
224
|
+
bValidationError = true;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
oInput.setValueState(sValueState);
|
|
228
|
+
|
|
229
|
+
return bValidationError;
|
|
230
|
+
},
|
|
231
|
+
|
|
206
232
|
/**
|
|
207
233
|
* Close AddIFrame Dialog
|
|
208
234
|
*
|
|
@@ -234,7 +260,12 @@ sap.ui.define([
|
|
|
234
260
|
|
|
235
261
|
_areAllTextFieldsValid: function() {
|
|
236
262
|
var oJSONModel = this._oJSONModel;
|
|
263
|
+
var bAsContainer = this._oJSONModel.getProperty("asContainer/value");
|
|
237
264
|
return _aTextInputFields.reduce(function(bAllValid, sFieldName) {
|
|
265
|
+
// The title field is only available on add as Section
|
|
266
|
+
if (sFieldName === "title" && !bAsContainer) {
|
|
267
|
+
return true;
|
|
268
|
+
}
|
|
238
269
|
var sValuePath = "/" + sFieldName + "/value";
|
|
239
270
|
var sValueState;
|
|
240
271
|
if (oJSONModel.getProperty(sValuePath).trim() === "") {
|
|
@@ -23,6 +23,15 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.sapUiRtaAddIFrameDialogVlWrapper {
|
|
26
|
+
.sapUiRtaAddIFrameDialogContainerTitleVBox {
|
|
27
|
+
margin-top: 1rem;
|
|
28
|
+
padding: 0 1rem 0 1rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sapUiRtaAddIFrameDialogContainerTitleInput {
|
|
32
|
+
margin-top: 0.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
26
35
|
.sapUiRtaAddIFrameDialogSizeTitle {
|
|
27
36
|
margin-top: 1rem;
|
|
28
37
|
padding-left: 1rem;
|
|
@@ -269,33 +269,31 @@
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
.sapUiMedia-sapUiRtaToolbar-sapUiRtaToolbarTablet .sapUiRtaToolbarActionsSection {
|
|
277
|
-
width: ~"calc(50% - 12.5rem) !important"; //200px
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.sapUiMedia-sapUiRtaToolbar-sapUiRtaToolbarDesktop .sapUiRtaVersionButton,
|
|
281
|
-
.sapUiMedia-sapUiRtaToolbar-sapUiRtaToolbarTablet .sapUiRtaVersionButton {
|
|
282
|
-
max-width: ~"calc(90% - 10rem)"; //160px
|
|
272
|
+
.sapUiRtaIconAndDraftToolbar {
|
|
273
|
+
// fit-content is required for the intersection observer
|
|
274
|
+
width: fit-content;
|
|
275
|
+
justify-content: flex-start;
|
|
283
276
|
}
|
|
284
277
|
|
|
285
|
-
.
|
|
286
|
-
|
|
278
|
+
.sapUiRtaActionsToolbar {
|
|
279
|
+
// fit-content is required for the intersection observer
|
|
280
|
+
width: fit-content;
|
|
281
|
+
justify-content: flex-end;
|
|
287
282
|
}
|
|
288
283
|
|
|
289
|
-
|
|
290
|
-
.
|
|
291
|
-
|
|
284
|
+
// the default hbox width which is set via the element properties must be overruled
|
|
285
|
+
.sapUiRtaToolbarIconAndDraftSection,
|
|
286
|
+
.sapUiRtaToolbarActionsSection {
|
|
287
|
+
// display grid is required so the toolbar is positioned on the end into the section hbox
|
|
288
|
+
display: grid;
|
|
289
|
+
width: ~"calc(50% - 12.5rem) !important"; //200px
|
|
292
290
|
}
|
|
293
291
|
|
|
294
|
-
.
|
|
295
|
-
|
|
296
|
-
width:
|
|
292
|
+
.sapUiRtaVersionButton {
|
|
293
|
+
max-width: 12.5rem; //200px
|
|
294
|
+
min-width: 3rem; //48px
|
|
297
295
|
}
|
|
298
296
|
|
|
299
|
-
.
|
|
300
|
-
width:
|
|
297
|
+
.sapUiRtaToolbarSwitcherSection {
|
|
298
|
+
width: auto;
|
|
301
299
|
}
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
<HBox
|
|
6
6
|
id="sapUiRta_toolbarIconAndDraftSection"
|
|
7
7
|
class="sapUiRtaToolbarIconAndDraftSection" >
|
|
8
|
-
<OverflowToolbar
|
|
8
|
+
<OverflowToolbar
|
|
9
|
+
id="sapUiRta_iconAndDraftToolbar"
|
|
10
|
+
class="sapUiRtaIconAndDraftToolbar">
|
|
9
11
|
<content>
|
|
10
12
|
<HBox id="sapUiRta_iconBox" />
|
|
11
13
|
<ToolbarSpacer
|
|
@@ -55,11 +57,10 @@
|
|
|
55
57
|
</OverflowToolbar>
|
|
56
58
|
</HBox>
|
|
57
59
|
<HBox
|
|
58
|
-
id="
|
|
60
|
+
id="sapUiRta_toolbarSwitcherSection"
|
|
59
61
|
class="sapUiRtaToolbarSwitcherSection" >
|
|
60
|
-
<
|
|
62
|
+
<Toolbar>
|
|
61
63
|
<content>
|
|
62
|
-
<ToolbarSpacer />
|
|
63
64
|
<SegmentedButton
|
|
64
65
|
id="sapUiRta_modeSwitcher"
|
|
65
66
|
selectionChange=".modeChange"
|
|
@@ -84,15 +85,16 @@
|
|
|
84
85
|
key="visualization" />
|
|
85
86
|
</items>
|
|
86
87
|
</SegmentedButton>
|
|
87
|
-
<ToolbarSpacer />
|
|
88
88
|
</content>
|
|
89
|
-
</
|
|
89
|
+
</Toolbar>
|
|
90
90
|
</HBox>
|
|
91
91
|
<HBox
|
|
92
92
|
id="sapUiRta_toolbarActionsSection"
|
|
93
93
|
class="sapUiRtaToolbarActionsSection"
|
|
94
94
|
justifyContent="End" >
|
|
95
|
-
<OverflowToolbar
|
|
95
|
+
<OverflowToolbar
|
|
96
|
+
id="sapUiRta_actionsToolbar"
|
|
97
|
+
class="sapUiRtaActionsToolbar">
|
|
96
98
|
<content>
|
|
97
99
|
<ToolbarSpacer />
|
|
98
100
|
<Button
|
|
@@ -161,23 +163,29 @@
|
|
|
161
163
|
<OverflowToolbarLayoutData priority="Low" />
|
|
162
164
|
</toolbar:layoutData>
|
|
163
165
|
</toolbar:OverflowToolbarButton>
|
|
166
|
+
<toolbar:OverflowToolbarButton
|
|
167
|
+
id="sapUiRta_save"
|
|
168
|
+
type="Transparent"
|
|
169
|
+
press=".save"
|
|
170
|
+
enabled="{controls>/save/enabled}"
|
|
171
|
+
tooltip="{= ${versions>/versioningEnabled} ? ${i18n>BTN_SAVE_DRAFT} : ${i18n>BTN_SAVE} }"
|
|
172
|
+
icon="sap-icon://save" >
|
|
173
|
+
<toolbar:layoutData>
|
|
174
|
+
<OverflowToolbarLayoutData priority="High" />
|
|
175
|
+
</toolbar:layoutData>
|
|
176
|
+
</toolbar:OverflowToolbarButton>
|
|
177
|
+
<toolbar:OverflowToolbarButton
|
|
178
|
+
id="sapUiRta_exit"
|
|
179
|
+
type="Transparent"
|
|
180
|
+
press=".exit"
|
|
181
|
+
tooltip="{i18n>BTN_EXIT}"
|
|
182
|
+
icon="sap-icon://decline" >
|
|
183
|
+
<toolbar:layoutData>
|
|
184
|
+
<OverflowToolbarLayoutData priority="High" />
|
|
185
|
+
</toolbar:layoutData>
|
|
186
|
+
</toolbar:OverflowToolbarButton>
|
|
164
187
|
</content>
|
|
165
188
|
</OverflowToolbar>
|
|
166
|
-
<Button
|
|
167
|
-
id="sapUiRta_save"
|
|
168
|
-
type="Transparent"
|
|
169
|
-
press=".save"
|
|
170
|
-
enabled="{controls>/save/enabled}"
|
|
171
|
-
tooltip="{i18n>BTN_SAVE}"
|
|
172
|
-
icon="sap-icon://save" >
|
|
173
|
-
</Button>
|
|
174
|
-
<Button
|
|
175
|
-
id="sapUiRta_exit"
|
|
176
|
-
type="Transparent"
|
|
177
|
-
press=".exit"
|
|
178
|
-
tooltip="{i18n>BTN_EXIT}"
|
|
179
|
-
icon="sap-icon://decline" >
|
|
180
|
-
</Button>
|
|
181
189
|
<layoutData>
|
|
182
190
|
<FlexItemData growFactor="0" />
|
|
183
191
|
</layoutData>
|