@openui5/sap.ui.rta 1.109.0 → 1.111.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/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +2 -2
- package/src/sap/ui/rta/Client.js +2 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +251 -151
- package/src/sap/ui/rta/Utils.js +40 -19
- package/src/sap/ui/rta/api/startAdaptation.js +1 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +2 -8
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
- package/src/sap/ui/rta/appVariant/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +2 -2
- package/src/sap/ui/rta/command/AddProperty.js +2 -2
- package/src/sap/ui/rta/command/AddXML.js +2 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
- package/src/sap/ui/rta/command/BaseCommand.js +2 -2
- package/src/sap/ui/rta/command/BindProperty.js +2 -2
- package/src/sap/ui/rta/command/Combine.js +2 -2
- package/src/sap/ui/rta/command/CommandFactory.js +2 -2
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +15 -13
- package/src/sap/ui/rta/command/CreateContainer.js +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +2 -2
- package/src/sap/ui/rta/command/FlexCommand.js +2 -2
- package/src/sap/ui/rta/command/LREPSerializer.js +27 -12
- package/src/sap/ui/rta/command/LocalReset.js +2 -2
- package/src/sap/ui/rta/command/Move.js +2 -2
- package/src/sap/ui/rta/command/Property.js +2 -2
- package/src/sap/ui/rta/command/Remove.js +2 -2
- package/src/sap/ui/rta/command/Rename.js +2 -2
- package/src/sap/ui/rta/command/Resize.js +2 -2
- package/src/sap/ui/rta/command/Reveal.js +2 -2
- package/src/sap/ui/rta/command/Settings.js +2 -2
- package/src/sap/ui/rta/command/Split.js +2 -2
- package/src/sap/ui/rta/command/Stack.js +11 -3
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
- package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
- package/src/sap/ui/rta/library.js +3 -3
- package/src/sap/ui/rta/messagebundle.properties +65 -13
- package/src/sap/ui/rta/messagebundle_ar.properties +35 -11
- package/src/sap/ui/rta/messagebundle_bg.properties +35 -11
- package/src/sap/ui/rta/messagebundle_ca.properties +35 -11
- package/src/sap/ui/rta/messagebundle_cs.properties +35 -11
- package/src/sap/ui/rta/messagebundle_cy.properties +34 -10
- package/src/sap/ui/rta/messagebundle_da.properties +34 -10
- package/src/sap/ui/rta/messagebundle_de.properties +37 -13
- package/src/sap/ui/rta/messagebundle_el.properties +34 -10
- package/src/sap/ui/rta/messagebundle_en.properties +33 -9
- package/src/sap/ui/rta/messagebundle_en_GB.properties +33 -9
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +31 -5
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +37 -5
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +31 -7
- package/src/sap/ui/rta/messagebundle_es.properties +34 -10
- package/src/sap/ui/rta/messagebundle_es_MX.properties +34 -10
- package/src/sap/ui/rta/messagebundle_et.properties +34 -10
- package/src/sap/ui/rta/messagebundle_fi.properties +34 -10
- package/src/sap/ui/rta/messagebundle_fr.properties +34 -10
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +35 -11
- package/src/sap/ui/rta/messagebundle_hi.properties +35 -11
- package/src/sap/ui/rta/messagebundle_hr.properties +35 -11
- package/src/sap/ui/rta/messagebundle_hu.properties +34 -10
- package/src/sap/ui/rta/messagebundle_id.properties +35 -11
- package/src/sap/ui/rta/messagebundle_it.properties +35 -11
- package/src/sap/ui/rta/messagebundle_iw.properties +34 -10
- package/src/sap/ui/rta/messagebundle_ja.properties +35 -11
- package/src/sap/ui/rta/messagebundle_kk.properties +34 -10
- package/src/sap/ui/rta/messagebundle_ko.properties +34 -10
- package/src/sap/ui/rta/messagebundle_lt.properties +34 -10
- package/src/sap/ui/rta/messagebundle_lv.properties +35 -11
- package/src/sap/ui/rta/messagebundle_ms.properties +35 -11
- package/src/sap/ui/rta/messagebundle_nl.properties +34 -10
- package/src/sap/ui/rta/messagebundle_no.properties +35 -11
- package/src/sap/ui/rta/messagebundle_pl.properties +35 -11
- package/src/sap/ui/rta/messagebundle_pt.properties +35 -11
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +34 -10
- package/src/sap/ui/rta/messagebundle_ro.properties +35 -11
- package/src/sap/ui/rta/messagebundle_ru.properties +35 -11
- package/src/sap/ui/rta/messagebundle_sh.properties +34 -10
- package/src/sap/ui/rta/messagebundle_sk.properties +34 -10
- package/src/sap/ui/rta/messagebundle_sl.properties +34 -10
- package/src/sap/ui/rta/messagebundle_sv.properties +35 -11
- package/src/sap/ui/rta/messagebundle_th.properties +36 -12
- package/src/sap/ui/rta/messagebundle_tr.properties +34 -10
- package/src/sap/ui/rta/messagebundle_uk.properties +34 -10
- package/src/sap/ui/rta/messagebundle_vi.properties +35 -11
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +35 -11
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +35 -11
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +2 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +4 -6
- package/src/sap/ui/rta/plugin/ControlVariant.js +2 -2
- package/src/sap/ui/rta/plugin/CreateContainer.js +3 -3
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +4 -4
- package/src/sap/ui/rta/plugin/EasyAdd.js +30 -21
- package/src/sap/ui/rta/plugin/EasyRemove.js +13 -11
- package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
- package/src/sap/ui/rta/plugin/Plugin.js +57 -13
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +3 -3
- package/src/sap/ui/rta/plugin/Rename.js +2 -2
- package/src/sap/ui/rta/plugin/RenameHandler.js +30 -19
- package/src/sap/ui/rta/plugin/Resize.js +2 -2
- package/src/sap/ui/rta/plugin/Selection.js +8 -15
- package/src/sap/ui/rta/plugin/Settings.js +2 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +17 -16
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +28 -7
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +1 -0
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +4 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -5
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +7 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -4
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/service/Action.js +2 -2
- package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
- package/src/sap/ui/rta/service/Outline.js +2 -2
- package/src/sap/ui/rta/service/Property.js +2 -2
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -2
- package/src/sap/ui/rta/service/SupportTools.js +2 -2
- package/src/sap/ui/rta/service/index.js +1 -1
- package/src/sap/ui/rta/themes/base/AddIFrame.less +1 -1
- package/src/sap/ui/rta/themes/base/Dialogs.less +1 -1
- package/src/sap/ui/rta/themes/base/FieldRepository.less +1 -1
- package/src/sap/ui/rta/themes/base/library.source.less +1 -1
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +82 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +35 -79
- package/src/sap/ui/rta/toolbar/Adaptation.js +83 -25
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +4 -4
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +15 -11
- package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
- package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +340 -0
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +152 -0
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +225 -0
- package/src/sap/ui/rta/toolbar/contextBased/{SaveAsContextBasedAdaptationDialog.fragment.xml → SaveAsAdaptationDialog.fragment.xml} +19 -15
- package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +4 -4
- package/src/sap/ui/rta/util/Animation.js +5 -9
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +2 -2
- package/src/sap/ui/rta/util/PopupManager.js +2 -2
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
- package/src/sap/ui/rta/util/StylesLoader.js +1 -1
- package/src/sap/ui/rta/util/UrlParser.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +4 -6
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +27 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +127 -71
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +1 -1
- package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
- package/src/sap/ui/rta/util/validateStableIds.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +0 -124
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<toolbar:OverflowToolbarButton
|
|
47
47
|
id="sapUiRta_publishVersion"
|
|
48
48
|
enabled="{versions>/publishVersionEnabled}"
|
|
49
|
-
visible="{parts: ['
|
|
49
|
+
visible="{parts: ['versions>/publishVersionVisible', 'versions>/versioningEnabled', 'versions>/displayedVersion', 'controls>/modeSwitcher'], formatter: '.formatPublishVersionVisibility'}"
|
|
50
50
|
press=".publishVersion"
|
|
51
51
|
type="Transparent"
|
|
52
52
|
icon="sap-icon://shipping-status"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
key="navigation" />
|
|
79
79
|
<SegmentedButtonItem
|
|
80
80
|
id="sapUiRta_visualizationSwitcherButton"
|
|
81
|
-
visible="{controls>/
|
|
81
|
+
visible="{controls>/visualizationButton/visible}"
|
|
82
82
|
text="{i18n>BTN_VISUALIZATION}"
|
|
83
83
|
width="auto"
|
|
84
84
|
key="visualization" />
|
|
@@ -95,27 +95,6 @@
|
|
|
95
95
|
<OverflowToolbar id="sapUiRta_actionsToolbar">
|
|
96
96
|
<content>
|
|
97
97
|
<ToolbarSpacer />
|
|
98
|
-
<MenuButton
|
|
99
|
-
id="sapUiRta_translateMenu"
|
|
100
|
-
icon="sap-icon://translate"
|
|
101
|
-
visible="{= ${controls>/modeSwitcher} === 'adaptation' && ${controls>/translationVisible}}"
|
|
102
|
-
enabled="{controls>/translationEnabled}"
|
|
103
|
-
type="Transparent"
|
|
104
|
-
tooltip="{i18n>BTN_TRANSLATE}">
|
|
105
|
-
<Menu
|
|
106
|
-
id="sapUiRta_translate"
|
|
107
|
-
class="sapUiRtaToolbarVisualizationSelection">
|
|
108
|
-
<MenuItem
|
|
109
|
-
text="{i18n>BTN_OPEN_DOWNLOAD_TRANSLATION}"
|
|
110
|
-
press=".openDownloadTranslationDialog"
|
|
111
|
-
icon="sap-icon://download"/>
|
|
112
|
-
<MenuItem
|
|
113
|
-
text="{i18n>BTN_OPEN_UPLOAD_TRANSLATION}"
|
|
114
|
-
press=".openUploadTranslationDialog"
|
|
115
|
-
enabled="{= ${translation>/sourceLanguages}.length > 0}"
|
|
116
|
-
icon="sap-icon://upload"/>
|
|
117
|
-
</Menu>
|
|
118
|
-
</MenuButton>
|
|
119
98
|
<Button
|
|
120
99
|
id="sapUiRta_toggleChangeVisualizationMenuButton"
|
|
121
100
|
visible="{= ${controls>/modeSwitcher} === 'visualization'}"
|
|
@@ -125,11 +104,24 @@
|
|
|
125
104
|
iconFirst="false"
|
|
126
105
|
press=".openChangeCategorySelectionPopover"
|
|
127
106
|
tooltip="{i18n>BUT_CHANGEVISUALIZATION_SELECTCHANGES}"/>
|
|
107
|
+
<Button
|
|
108
|
+
id="sapUiRta_actionsMenu"
|
|
109
|
+
icon="sap-icon://menu2"
|
|
110
|
+
visible="{= ${controls>/modeSwitcher} === 'adaptation' && (${controls>/translation/visible} || ${controls>/appVariantMenu/visible} || ${controls>/restore/visible} || ${controls>/contextBasedAdaptation/visible})}"
|
|
111
|
+
enabled="{controls>/actionsMenuButton/enabled}"
|
|
112
|
+
type="Transparent"
|
|
113
|
+
tooltip="{i18n>BTN_MENU}"
|
|
114
|
+
press=".showActionsMenu"
|
|
115
|
+
ariaHasPopup="Menu" >
|
|
116
|
+
<layoutData>
|
|
117
|
+
<OverflowToolbarLayoutData priority="NeverOverflow" />
|
|
118
|
+
</layoutData>
|
|
119
|
+
</Button>
|
|
128
120
|
<Button
|
|
129
121
|
id="sapUiRta_undo"
|
|
130
122
|
icon="sap-icon://undo"
|
|
131
123
|
press=".undo"
|
|
132
|
-
enabled="{controls>/
|
|
124
|
+
enabled="{controls>/undo/enabled}"
|
|
133
125
|
visible="{= ${controls>/modeSwitcher} === 'adaptation'}"
|
|
134
126
|
type="Transparent"
|
|
135
127
|
tooltip="{i18n>BTN_UNDO}" >
|
|
@@ -141,7 +133,7 @@
|
|
|
141
133
|
id="sapUiRta_redo"
|
|
142
134
|
icon="sap-icon://redo"
|
|
143
135
|
press=".redo"
|
|
144
|
-
enabled="{controls>/
|
|
136
|
+
enabled="{controls>/redo/enabled}"
|
|
145
137
|
visible="{= ${controls>/modeSwitcher} === 'adaptation'}"
|
|
146
138
|
type="Transparent"
|
|
147
139
|
tooltip="{i18n>BTN_REDO}" >
|
|
@@ -150,64 +142,19 @@
|
|
|
150
142
|
</layoutData>
|
|
151
143
|
</Button>
|
|
152
144
|
<toolbar:OverflowToolbarButton
|
|
153
|
-
id="
|
|
154
|
-
|
|
155
|
-
visible="{= (
|
|
156
|
-
press=".restore"
|
|
157
|
-
type="Transparent"
|
|
158
|
-
text="{i18n>BTN_RESTORE}" >
|
|
159
|
-
<toolbar:layoutData>
|
|
160
|
-
<OverflowToolbarLayoutData priority="High" />
|
|
161
|
-
</toolbar:layoutData>
|
|
162
|
-
</toolbar:OverflowToolbarButton>
|
|
163
|
-
<toolbar:OverflowToolbarButton
|
|
164
|
-
id="sapUiRta_manageApps"
|
|
165
|
-
press=".manageApps"
|
|
166
|
-
enabled="{controls>/manageAppsEnabled}"
|
|
167
|
-
visible="{= (${controls>/manageAppsVisible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
168
|
-
type="Transparent"
|
|
169
|
-
text="{i18n>BTN_MANAGE_APPS_TXT}" >
|
|
170
|
-
<toolbar:layoutData>
|
|
171
|
-
<OverflowToolbarLayoutData priority="Low" />
|
|
172
|
-
</toolbar:layoutData>
|
|
173
|
-
</toolbar:OverflowToolbarButton>
|
|
174
|
-
<MenuButton
|
|
175
|
-
id="sapUiRta_appVariantOverview"
|
|
176
|
-
enabled="{controls>/appVariantsOverviewEnabled}"
|
|
177
|
-
visible="{= (${controls>/appVariantsOverviewVisible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
178
|
-
type="Transparent"
|
|
179
|
-
text="{i18n>BTN_MANAGE_APPS_TXT}" >
|
|
180
|
-
<menu>
|
|
181
|
-
<Menu
|
|
182
|
-
itemSelected=".appVariantOverview"
|
|
183
|
-
id="sapUiRta_appVariantMenu" >
|
|
184
|
-
<MenuItem
|
|
185
|
-
id="sapUiRta_keyUser"
|
|
186
|
-
text="{i18n>MENU_ITEM_KEY_USER}" />
|
|
187
|
-
<MenuItem
|
|
188
|
-
id="sapUiRta_developer"
|
|
189
|
-
text="{i18n>MENU_ITEM_SAP_DEVELOPER}" />
|
|
190
|
-
</Menu>
|
|
191
|
-
</menu>
|
|
192
|
-
<layoutData>
|
|
193
|
-
<OverflowToolbarLayoutData priority="Low" />
|
|
194
|
-
</layoutData>
|
|
195
|
-
</MenuButton>
|
|
196
|
-
<toolbar:OverflowToolbarButton
|
|
197
|
-
id="sapUiRta_saveAsContextBasedAdaptation"
|
|
198
|
-
visible="{= (${controls>/contextBasedAdaptationVisible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
199
|
-
press=".saveAsContextBasedAdaptation"
|
|
145
|
+
id="sapUiRta_manageAdaptations"
|
|
146
|
+
press=".manageAdaptations"
|
|
147
|
+
visible="{= (${controls>/contextBasedAdaptation/visible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
200
148
|
type="Transparent"
|
|
201
|
-
text="{i18n>
|
|
149
|
+
text="{i18n>BTN_MANAGE_APP_CTX}" >
|
|
202
150
|
<toolbar:layoutData>
|
|
203
151
|
<OverflowToolbarLayoutData priority="Low" />
|
|
204
152
|
</toolbar:layoutData>
|
|
205
153
|
</toolbar:OverflowToolbarButton>
|
|
206
154
|
<toolbar:OverflowToolbarButton
|
|
207
|
-
id="
|
|
208
|
-
visible="{= (${controls>/
|
|
209
|
-
|
|
210
|
-
press=".saveAs"
|
|
155
|
+
id="sapUiRta_saveAsAdaptation"
|
|
156
|
+
visible="{= (${controls>/contextBasedAdaptation/visible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
157
|
+
press=".saveAsAdaptation"
|
|
211
158
|
type="Transparent"
|
|
212
159
|
text="{i18n>BTN_SAVE_AS}" >
|
|
213
160
|
<toolbar:layoutData>
|
|
@@ -216,14 +163,23 @@
|
|
|
216
163
|
</toolbar:OverflowToolbarButton>
|
|
217
164
|
</content>
|
|
218
165
|
</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>
|
|
219
174
|
<Button
|
|
220
175
|
id="sapUiRta_exit"
|
|
221
176
|
type="Transparent"
|
|
222
177
|
press=".exit"
|
|
223
|
-
|
|
178
|
+
tooltip="{i18n>BTN_EXIT}"
|
|
179
|
+
icon="sap-icon://decline" >
|
|
224
180
|
</Button>
|
|
225
181
|
<layoutData>
|
|
226
182
|
<FlexItemData growFactor="0" />
|
|
227
183
|
</layoutData>
|
|
228
184
|
</HBox>
|
|
229
|
-
</core:FragmentDefinition>
|
|
185
|
+
</core:FragmentDefinition>
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"require",
|
|
8
9
|
"sap/ui/core/Fragment",
|
|
10
|
+
"sap/ui/core/Popup",
|
|
11
|
+
"sap/ui/core/IconPool",
|
|
9
12
|
"sap/ui/fl/write/api/Version",
|
|
10
|
-
"sap/ui/rta/toolbar/contextBased/
|
|
13
|
+
"sap/ui/rta/toolbar/contextBased/SaveAsAdaptation",
|
|
14
|
+
"sap/ui/rta/toolbar/contextBased/ManageAdaptations",
|
|
11
15
|
"sap/ui/rta/toolbar/translation/Translation",
|
|
12
16
|
"sap/ui/rta/toolbar/versioning/Versioning",
|
|
13
17
|
"sap/ui/rta/appVariant/Feature",
|
|
14
18
|
"sap/ui/rta/toolbar/Base",
|
|
19
|
+
"sap/ui/rta/Utils",
|
|
15
20
|
"sap/ui/Device",
|
|
16
21
|
"./AdaptationRenderer"
|
|
17
22
|
], function(
|
|
23
|
+
require,
|
|
18
24
|
Fragment,
|
|
25
|
+
Popup,
|
|
26
|
+
IconPool,
|
|
19
27
|
Version,
|
|
20
|
-
|
|
28
|
+
SaveAsAdaptation,
|
|
29
|
+
ManageAdaptations,
|
|
21
30
|
Translation,
|
|
22
31
|
Versioning,
|
|
23
32
|
AppVariantFeature,
|
|
24
33
|
Base,
|
|
34
|
+
Utils,
|
|
25
35
|
Device,
|
|
26
36
|
AdaptationRenderer
|
|
27
37
|
) {
|
|
@@ -35,7 +45,7 @@ sap.ui.define([
|
|
|
35
45
|
* @extends sap.ui.rta.toolbar.Base
|
|
36
46
|
*
|
|
37
47
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
48
|
+
* @version 1.111.0
|
|
39
49
|
*
|
|
40
50
|
* @constructor
|
|
41
51
|
* @private
|
|
@@ -62,7 +72,6 @@ sap.ui.define([
|
|
|
62
72
|
activate: {},
|
|
63
73
|
discardDraft: {},
|
|
64
74
|
switchVersion: {},
|
|
65
|
-
saveAsContextBasedAdaptation: {},
|
|
66
75
|
openChangeCategorySelectionPopover: {}
|
|
67
76
|
}
|
|
68
77
|
}
|
|
@@ -83,6 +92,28 @@ sap.ui.define([
|
|
|
83
92
|
}
|
|
84
93
|
Device.media.attachHandler(this._onSizeChanged, this, DEVICE_SET);
|
|
85
94
|
}.bind(this));
|
|
95
|
+
|
|
96
|
+
IconPool.registerFont({
|
|
97
|
+
collectionName: "BusinessSuiteInAppSymbols",
|
|
98
|
+
fontFamily: "BusinessSuiteInAppSymbols",
|
|
99
|
+
fontURI: require.toUrl("sap/ushell/themes/base/fonts/"),
|
|
100
|
+
lazy: true
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
Adaptation.prototype._hideElementsOnIntersection = function(aEntries) {
|
|
105
|
+
if (aEntries[0].intersectionRatio === 0) {
|
|
106
|
+
this._observeActionToolbarIntersection();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
// Actions toolbar is no longer fully visible
|
|
110
|
+
if (aEntries[0].intersectionRatio < 1) {
|
|
111
|
+
if (!this._mSizeLimits.switchToIcons) {
|
|
112
|
+
var iHiddenWidth = aEntries[0].boundingClientRect.width - aEntries[0].intersectionRect.width;
|
|
113
|
+
this._mSizeLimits.switchToIcons = window.innerWidth + iHiddenWidth;
|
|
114
|
+
this._switchToIcons();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
86
117
|
};
|
|
87
118
|
|
|
88
119
|
Adaptation.prototype.onFragmentLoaded = function() {
|
|
@@ -128,8 +159,31 @@ sap.ui.define([
|
|
|
128
159
|
return this.getExtension("versioning", Versioning).openActivateVersionDialog(sDisplayedVersion);
|
|
129
160
|
};
|
|
130
161
|
|
|
131
|
-
Adaptation.prototype.
|
|
132
|
-
|
|
162
|
+
Adaptation.prototype.showActionsMenu = function(oEvent) {
|
|
163
|
+
var oButton = oEvent.getSource();
|
|
164
|
+
if (!this._oActionsMenuFragment) {
|
|
165
|
+
return Fragment.load({
|
|
166
|
+
id: this.getId() + "_actionsMenu_fragment",
|
|
167
|
+
name: "sap.ui.rta.toolbar.ActionsMenu",
|
|
168
|
+
controller: {
|
|
169
|
+
openDownloadTranslationDialog: onOpenDownloadTranslationDialog.bind(this),
|
|
170
|
+
openUploadTranslationDialog: onOpenUploadTranslationDialog.bind(this),
|
|
171
|
+
manageApps: onManageAppsPressed.bind(this),
|
|
172
|
+
overviewForKeyUser: onOverviewForKeyUserPressed.bind(this),
|
|
173
|
+
overviewForDeveloper: onOverviewForDeveloperPressed.bind(this),
|
|
174
|
+
restore: this.eventHandler.bind(this, "Restore"),
|
|
175
|
+
formatSaveAsEnabled: formatSaveAsEnabled,
|
|
176
|
+
saveAs: onSaveAsPressed.bind(this)
|
|
177
|
+
}
|
|
178
|
+
}).then(function(oMenu) {
|
|
179
|
+
oMenu.addStyleClass(Utils.getRtaStyleClassName());
|
|
180
|
+
this.addDependent(oMenu);
|
|
181
|
+
oMenu.openBy(oButton, true, Popup.Dock.CenterTop, Popup.Dock.CenterBottom);
|
|
182
|
+
this._oActionsMenuFragment = oMenu;
|
|
183
|
+
}.bind(this));
|
|
184
|
+
}
|
|
185
|
+
this._oActionsMenuFragment.openBy(oButton, true, Popup.Dock.CenterTop, Popup.Dock.CenterBottom);
|
|
186
|
+
return Promise.resolve();
|
|
133
187
|
};
|
|
134
188
|
|
|
135
189
|
Adaptation.prototype._showButtonIcon = function(sButtonName, sIcon, sToolTipKey) {
|
|
@@ -149,7 +203,6 @@ sap.ui.define([
|
|
|
149
203
|
this._showButtonIcon("adaptationSwitcherButton", "sap-icon://wrench", "BTN_ADAPTATION");
|
|
150
204
|
this._showButtonIcon("navigationSwitcherButton", "sap-icon://explorer", "BTN_NAVIGATION");
|
|
151
205
|
this._showButtonIcon("visualizationSwitcherButton", "sap-icon://show", "BTN_VISUALIZATION");
|
|
152
|
-
this._showButtonIcon("exit", "sap-icon://decline", "BTN_EXIT");
|
|
153
206
|
};
|
|
154
207
|
|
|
155
208
|
Adaptation.prototype._switchToTexts = function () {
|
|
@@ -161,7 +214,6 @@ sap.ui.define([
|
|
|
161
214
|
this._showButtonText("adaptationSwitcherButton", "BTN_ADAPTATION");
|
|
162
215
|
this._showButtonText("navigationSwitcherButton", "BTN_NAVIGATION");
|
|
163
216
|
this._showButtonText("visualizationSwitcherButton", "BTN_VISUALIZATION");
|
|
164
|
-
this._showButtonText("exit", "BTN_EXIT");
|
|
165
217
|
};
|
|
166
218
|
|
|
167
219
|
Adaptation.prototype._onSizeChanged = function(mParams, bInitial) {
|
|
@@ -201,22 +253,17 @@ sap.ui.define([
|
|
|
201
253
|
formatDiscardDraftVisible: this.formatDiscardDraftVisible.bind(this),
|
|
202
254
|
formatPublishVersionVisibility: this.formatPublishVersionVisibility.bind(this),
|
|
203
255
|
modeChange: this.eventHandler.bind(this, "ModeChange"),
|
|
204
|
-
openDownloadTranslationDialog: onOpenDownloadTranslationDialog.bind(this),
|
|
205
|
-
openUploadTranslationDialog: onOpenUploadTranslationDialog.bind(this),
|
|
206
256
|
undo: this.eventHandler.bind(this, "Undo"),
|
|
207
257
|
redo: this.eventHandler.bind(this, "Redo"),
|
|
208
258
|
openChangeCategorySelectionPopover: this.eventHandler.bind(this, "OpenChangeCategorySelectionPopover"),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
saveAs: onSaveAsPressed.bind(this),
|
|
212
|
-
saveAsContextBasedAdaptation: onSaveAsContextBasedAdaptation.bind(this),
|
|
213
|
-
formatSaveAsEnabled: formatSaveAsEnabled,
|
|
214
|
-
restore: this.eventHandler.bind(this, "Restore"),
|
|
259
|
+
saveAsAdaptation: onSaveAsAdaptation.bind(this),
|
|
260
|
+
manageAdaptations: onManageAdaptations.bind(this),
|
|
215
261
|
publishVersion: this.eventHandler.bind(this, "PublishVersion"),
|
|
262
|
+
save: this.eventHandler.bind(this, "Save"),
|
|
216
263
|
exit: this.eventHandler.bind(this, "Exit"),
|
|
217
264
|
formatVersionButtonText: this.formatVersionButtonText.bind(this),
|
|
218
265
|
showVersionHistory: this.showVersionHistory.bind(this),
|
|
219
|
-
|
|
266
|
+
showActionsMenu: this.showActionsMenu.bind(this)
|
|
220
267
|
}
|
|
221
268
|
});
|
|
222
269
|
};
|
|
@@ -241,14 +288,20 @@ sap.ui.define([
|
|
|
241
288
|
AppVariantFeature.onSaveAs(true, true, this.getRtaInformation().flexSettings.layer, null);
|
|
242
289
|
}
|
|
243
290
|
|
|
244
|
-
function
|
|
245
|
-
this.getExtension("
|
|
291
|
+
function onSaveAsAdaptation() {
|
|
292
|
+
this.getExtension("contextBasedSaveAs", SaveAsAdaptation).openAddAdaptationDialog(this.getRtaInformation().flexSettings.layer);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function onManageAdaptations() {
|
|
296
|
+
this.getExtension("contextBasedManage", ManageAdaptations).openManageAdaptationDialog();
|
|
246
297
|
}
|
|
247
298
|
|
|
248
|
-
function
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
299
|
+
function onOverviewForKeyUserPressed() {
|
|
300
|
+
return AppVariantFeature.onGetOverview(true, this.getRtaInformation().flexSettings.layer);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function onOverviewForDeveloperPressed() {
|
|
304
|
+
return AppVariantFeature.onGetOverview(false, this.getRtaInformation().flexSettings.layer);
|
|
252
305
|
}
|
|
253
306
|
|
|
254
307
|
function onManageAppsPressed() {
|
|
@@ -256,7 +309,12 @@ sap.ui.define([
|
|
|
256
309
|
}
|
|
257
310
|
|
|
258
311
|
Adaptation.prototype.getControl = function(sName) {
|
|
259
|
-
|
|
312
|
+
var oControl = sap.ui.getCore().byId(this.getId() + "_fragment--sapUiRta_" + sName);
|
|
313
|
+
// Control is inside the ActionsMenu
|
|
314
|
+
if (!oControl && this._oActionsMenuFragment) {
|
|
315
|
+
oControl = sap.ui.getCore().byId(this._oActionsMenuFragment.getId().replace("sapUiRta_actions", "sapUiRta_") + sName);
|
|
316
|
+
}
|
|
317
|
+
return oControl;
|
|
260
318
|
};
|
|
261
319
|
|
|
262
320
|
return Adaptation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.m.HBox
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.111.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
@@ -203,7 +203,7 @@ sap.ui.define([
|
|
|
203
203
|
// 2) animate DomRef
|
|
204
204
|
.then(function () {
|
|
205
205
|
return this.animation
|
|
206
|
-
? Animation.waitTransition(this
|
|
206
|
+
? Animation.waitTransition(this.getDomRef(), this.addStyleClass.bind(this, "is_visible"))
|
|
207
207
|
: Promise.resolve();
|
|
208
208
|
}.bind(this))
|
|
209
209
|
// 3) focus on Toolbar
|
|
@@ -225,7 +225,7 @@ sap.ui.define([
|
|
|
225
225
|
if (bSkipTransition) {
|
|
226
226
|
this.removeStyleClass("is_visible");
|
|
227
227
|
} else {
|
|
228
|
-
oPromise = Animation.waitTransition(this
|
|
228
|
+
oPromise = Animation.waitTransition(this.getDomRef(), this.removeStyleClass.bind(this, "is_visible"));
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
return oPromise
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ function(
|
|
|
32
32
|
* @extends sap.ui.rta.toolbar.Adaptation
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.111.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -65,14 +65,15 @@ function(
|
|
|
65
65
|
|
|
66
66
|
if (this._oFioriHeader.getShowLogo() && sLogoPath) {
|
|
67
67
|
// Unstable: if FLP changes ID of <img> element, logo could be not found
|
|
68
|
-
|
|
68
|
+
// $() is still needed because this._oFioriHeader does not offer a getDomRef method
|
|
69
|
+
var oLogo = this._oFioriHeader.$().find("#shell-header-icon").get(0);
|
|
69
70
|
var iWidth;
|
|
70
71
|
var iHeight;
|
|
71
72
|
|
|
72
|
-
if (
|
|
73
|
-
iWidth =
|
|
74
|
-
iHeight =
|
|
75
|
-
this._checkLogoSize(
|
|
73
|
+
if (oLogo) {
|
|
74
|
+
iWidth = oLogo.getBoundingClientRect().width;
|
|
75
|
+
iHeight = oLogo.getBoundingClientRect().height;
|
|
76
|
+
this._checkLogoSize(oLogo, iWidth, iHeight);
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
this.getControl("iconSpacer").setWidth("10%");
|
|
@@ -93,13 +94,16 @@ function(
|
|
|
93
94
|
Fiori.prototype.hide = function () {
|
|
94
95
|
return Adaptation.prototype.hide.apply(this, arguments)
|
|
95
96
|
.then(function () {
|
|
96
|
-
this._oFioriHeader
|
|
97
|
+
//TODO: this._oFioriHeader should never be empty here
|
|
98
|
+
if (this._oFioriHeader) {
|
|
99
|
+
this._oFioriHeader.removeStyleClass(FIORI_HIDDEN_CLASS);
|
|
100
|
+
}
|
|
97
101
|
}.bind(this));
|
|
98
102
|
};
|
|
99
103
|
|
|
100
|
-
Fiori.prototype._checkLogoSize = function(
|
|
101
|
-
var iNaturalWidth =
|
|
102
|
-
var iNaturalHeight =
|
|
104
|
+
Fiori.prototype._checkLogoSize = function(oLogo, iWidth, iHeight) {
|
|
105
|
+
var iNaturalWidth = oLogo.naturalWidth;
|
|
106
|
+
var iNaturalHeight = oLogo.naturalHeight;
|
|
103
107
|
|
|
104
108
|
if (iWidth !== iNaturalWidth || iHeight !== iNaturalHeight) {
|
|
105
109
|
Log.error([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ function(
|
|
|
20
20
|
* @extends sap.ui.rta.toolbar.Adaptation
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.111.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @extends sap.m.OverflowToolbarButton
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.111.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ function(
|
|
|
22
22
|
* @extends sap.ui.rta.toolbar.Base
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.111.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ function(
|
|
|
20
20
|
* @extends sap.ui.rta.toolbar.Adaptation
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.111.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|