@openui5/sap.ui.rta 1.109.0 → 1.110.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 +224 -143
- 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 +2 -2
- 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 +59 -13
- package/src/sap/ui/rta/messagebundle_ar.properties +32 -11
- package/src/sap/ui/rta/messagebundle_bg.properties +32 -11
- package/src/sap/ui/rta/messagebundle_ca.properties +32 -11
- package/src/sap/ui/rta/messagebundle_cs.properties +32 -11
- package/src/sap/ui/rta/messagebundle_cy.properties +31 -10
- package/src/sap/ui/rta/messagebundle_da.properties +31 -10
- package/src/sap/ui/rta/messagebundle_de.properties +34 -13
- package/src/sap/ui/rta/messagebundle_el.properties +31 -10
- package/src/sap/ui/rta/messagebundle_en.properties +30 -9
- package/src/sap/ui/rta/messagebundle_en_GB.properties +30 -9
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +28 -5
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +28 -5
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +28 -7
- package/src/sap/ui/rta/messagebundle_es.properties +31 -10
- package/src/sap/ui/rta/messagebundle_es_MX.properties +31 -10
- package/src/sap/ui/rta/messagebundle_et.properties +31 -10
- package/src/sap/ui/rta/messagebundle_fi.properties +31 -10
- package/src/sap/ui/rta/messagebundle_fr.properties +31 -10
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +32 -11
- package/src/sap/ui/rta/messagebundle_hi.properties +32 -11
- package/src/sap/ui/rta/messagebundle_hr.properties +32 -11
- package/src/sap/ui/rta/messagebundle_hu.properties +31 -10
- package/src/sap/ui/rta/messagebundle_id.properties +32 -11
- package/src/sap/ui/rta/messagebundle_it.properties +32 -11
- package/src/sap/ui/rta/messagebundle_iw.properties +31 -10
- package/src/sap/ui/rta/messagebundle_ja.properties +32 -11
- package/src/sap/ui/rta/messagebundle_kk.properties +31 -10
- package/src/sap/ui/rta/messagebundle_ko.properties +31 -10
- package/src/sap/ui/rta/messagebundle_lt.properties +31 -10
- package/src/sap/ui/rta/messagebundle_lv.properties +32 -11
- package/src/sap/ui/rta/messagebundle_ms.properties +32 -11
- package/src/sap/ui/rta/messagebundle_nl.properties +31 -10
- package/src/sap/ui/rta/messagebundle_no.properties +32 -11
- package/src/sap/ui/rta/messagebundle_pl.properties +32 -11
- package/src/sap/ui/rta/messagebundle_pt.properties +32 -11
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +31 -10
- package/src/sap/ui/rta/messagebundle_ro.properties +32 -11
- package/src/sap/ui/rta/messagebundle_ru.properties +32 -11
- package/src/sap/ui/rta/messagebundle_sh.properties +31 -10
- package/src/sap/ui/rta/messagebundle_sk.properties +31 -10
- package/src/sap/ui/rta/messagebundle_sl.properties +31 -10
- package/src/sap/ui/rta/messagebundle_sv.properties +32 -11
- package/src/sap/ui/rta/messagebundle_th.properties +33 -12
- package/src/sap/ui/rta/messagebundle_tr.properties +31 -10
- package/src/sap/ui/rta/messagebundle_uk.properties +31 -10
- package/src/sap/ui/rta/messagebundle_vi.properties +32 -11
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +32 -11
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +32 -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 +2 -2
- 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 +50 -13
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Rename.js +2 -2
- package/src/sap/ui/rta/plugin/RenameHandler.js +28 -18
- package/src/sap/ui/rta/plugin/Resize.js +2 -2
- package/src/sap/ui/rta/plugin/Selection.js +7 -14
- 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 +1 -1
- 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 +11 -10
- 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 +263 -0
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +149 -0
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +185 -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 +3 -3
- 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 +109 -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
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns:core="sap.ui.core"
|
|
3
|
+
xmlns:dnd="sap.ui.core.dnd"
|
|
4
|
+
xmlns="sap.m">
|
|
5
|
+
<Dialog
|
|
6
|
+
resizable="true"
|
|
7
|
+
draggable="true"
|
|
8
|
+
title="{i18n>MANAGE_ADAPTATIONS_DIALOG_HEADER}">
|
|
9
|
+
<Table id="manageAdaptationsTable"
|
|
10
|
+
showNoData="false"
|
|
11
|
+
inset="false"
|
|
12
|
+
sticky="HeaderToolbar"
|
|
13
|
+
mode="SingleSelectMaster"
|
|
14
|
+
items="{
|
|
15
|
+
path: 'contextBased>/adaptations',
|
|
16
|
+
sorter: {path: 'rank', descending: false}
|
|
17
|
+
}">
|
|
18
|
+
<headerToolbar>
|
|
19
|
+
<OverflowToolbar>
|
|
20
|
+
<Button id="moveUpButton"
|
|
21
|
+
icon="sap-icon://navigation-up-arrow"
|
|
22
|
+
tooltip="{i18n>BTN_TOOLTIP_MOVE_UP}"
|
|
23
|
+
press=".moveUp"
|
|
24
|
+
enabled="false"/>
|
|
25
|
+
<Button id="moveDownButton"
|
|
26
|
+
icon="sap-icon://navigation-down-arrow"
|
|
27
|
+
tooltip="{i18n>BTN_TOOLTIP_MOVE_DOWN}"
|
|
28
|
+
press=".moveDown"
|
|
29
|
+
enabled="false"/>
|
|
30
|
+
</OverflowToolbar>
|
|
31
|
+
</headerToolbar>
|
|
32
|
+
<columns>
|
|
33
|
+
<Column width="5rem"
|
|
34
|
+
minScreenWidth="tablet"
|
|
35
|
+
demandPopin="true"
|
|
36
|
+
popinDisplay="Inline"
|
|
37
|
+
hAlign="Left">
|
|
38
|
+
<Text text="{i18n>CLM_HEADER_PRIORITY}" />
|
|
39
|
+
</Column>
|
|
40
|
+
<Column minScreenWidth="tablet"
|
|
41
|
+
demandPopin="true"
|
|
42
|
+
popinDisplay="Inline"
|
|
43
|
+
hAlign="Left">
|
|
44
|
+
<Text text="{i18n>CLM_HEADER_ADAPTATIONS_TITLE}" />
|
|
45
|
+
</Column>
|
|
46
|
+
<Column width="8rem"
|
|
47
|
+
minScreenWidth="tablet"
|
|
48
|
+
demandPopin="true"
|
|
49
|
+
popinDisplay="Inline"
|
|
50
|
+
hAlign="Left">
|
|
51
|
+
<Text text="{i18n>CLM_HEADER_CONTEXT}" />
|
|
52
|
+
</Column>
|
|
53
|
+
<Column width="7rem"
|
|
54
|
+
minScreenWidth="tablet"
|
|
55
|
+
demandPopin="true"
|
|
56
|
+
popinDisplay="Inline"
|
|
57
|
+
hAlign="Left">
|
|
58
|
+
<Text text="{i18n>CLM_HEADER_ADAPTATIONS_ACTIONS}" />
|
|
59
|
+
</Column>
|
|
60
|
+
</columns>
|
|
61
|
+
<dragDropConfig>
|
|
62
|
+
<dnd:DragDropInfo sourceAggregation="items"
|
|
63
|
+
targetAggregation="items"
|
|
64
|
+
dropPosition="Between"
|
|
65
|
+
drop=".onDropSelectedAdaptation"/>
|
|
66
|
+
</dragDropConfig>
|
|
67
|
+
<items>
|
|
68
|
+
<ColumnListItem>
|
|
69
|
+
<cells>
|
|
70
|
+
<Text text="{contextBased>rank}"/>
|
|
71
|
+
<CustomListItem>
|
|
72
|
+
<HBox>
|
|
73
|
+
<VBox class="sapUiSmallMarginTopBottom">
|
|
74
|
+
<Text text="{contextBased>title}"/>
|
|
75
|
+
</VBox>
|
|
76
|
+
</HBox>
|
|
77
|
+
</CustomListItem>
|
|
78
|
+
<Text text="{ parts: ['contextBased>contexts/role'], formatter: '.formatContextColumnCell'}"
|
|
79
|
+
tooltip="{ parts: ['contextBased>contexts/role'], formatter: '.formatContextColumnTooltip'}" />
|
|
80
|
+
<MenuButton text="{i18n>CLM_HEADER_ADAPTATIONS_ACTIONS}">
|
|
81
|
+
<menu>
|
|
82
|
+
<Menu itemSelected="onMenuAction">
|
|
83
|
+
</Menu>
|
|
84
|
+
</menu>
|
|
85
|
+
</MenuButton>
|
|
86
|
+
</cells>
|
|
87
|
+
</ColumnListItem>
|
|
88
|
+
</items>
|
|
89
|
+
</Table>
|
|
90
|
+
<Table id="defaultContext">
|
|
91
|
+
<columns>
|
|
92
|
+
<Column width="4.195rem"
|
|
93
|
+
minScreenWidth="tablet"
|
|
94
|
+
demandPopin="true"
|
|
95
|
+
popinDisplay="Inline"
|
|
96
|
+
hAlign="Left">
|
|
97
|
+
</Column>
|
|
98
|
+
<Column minScreenWidth="tablet"
|
|
99
|
+
demandPopin="true"
|
|
100
|
+
popinDisplay="Inline"
|
|
101
|
+
hAlign="Left">
|
|
102
|
+
</Column>
|
|
103
|
+
<Column width="8rem"
|
|
104
|
+
minScreenWidth="tablet"
|
|
105
|
+
demandPopin="true"
|
|
106
|
+
popinDisplay="Inline"
|
|
107
|
+
hAlign="Left">
|
|
108
|
+
</Column>
|
|
109
|
+
<Column width="7rem"
|
|
110
|
+
minScreenWidth="tablet"
|
|
111
|
+
demandPopin="true"
|
|
112
|
+
popinDisplay="Inline"
|
|
113
|
+
hAlign="Left">
|
|
114
|
+
</Column>
|
|
115
|
+
</columns>
|
|
116
|
+
<items>
|
|
117
|
+
<ColumnListItem highlight="Information">
|
|
118
|
+
<cells>
|
|
119
|
+
<Text text=""/>
|
|
120
|
+
<CustomListItem>
|
|
121
|
+
<HBox>
|
|
122
|
+
<VBox class="sapUiSmallMarginTopBottom">
|
|
123
|
+
<Text text="{i18n>TXT_DEFAULT_APP}"/>
|
|
124
|
+
<FormattedText htmlText=""/>
|
|
125
|
+
</VBox>
|
|
126
|
+
</HBox>
|
|
127
|
+
</CustomListItem>
|
|
128
|
+
<Text text="" />
|
|
129
|
+
<MenuButton text="{i18n>CLM_HEADER_ADAPTATIONS_ACTIONS}">
|
|
130
|
+
</MenuButton>
|
|
131
|
+
</cells>
|
|
132
|
+
</ColumnListItem>
|
|
133
|
+
</items>
|
|
134
|
+
</Table>
|
|
135
|
+
<beginButton>
|
|
136
|
+
<Button id="manageAdaptations-saveButton"
|
|
137
|
+
enabled="false"
|
|
138
|
+
type="Emphasized"
|
|
139
|
+
text="{i18n>APP_CTX_DIALOG_SAVE}"
|
|
140
|
+
tooltip="{i18n>TOOLTIP_APP_CTX_DIALOG_SAVE}"
|
|
141
|
+
press=".onSaveReorderedAdaptations"/>
|
|
142
|
+
</beginButton>
|
|
143
|
+
<endButton>
|
|
144
|
+
<Button id="manageAdaptations-closeButton"
|
|
145
|
+
text="{i18n>APP_CTX_DIALOG_CANCEL}"
|
|
146
|
+
press=".onClose"/>
|
|
147
|
+
</endButton>
|
|
148
|
+
</Dialog>
|
|
149
|
+
</core:FragmentDefinition>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/base/ManagedObject",
|
|
9
|
+
"sap/base/Log",
|
|
10
|
+
"sap/base/strings/formatMessage",
|
|
11
|
+
"sap/ui/core/Fragment",
|
|
12
|
+
"sap/ui/fl/Layer",
|
|
13
|
+
"sap/ui/fl/write/api/ContextBasedAdaptationsAPI",
|
|
14
|
+
"sap/ui/fl/write/api/ContextSharingAPI",
|
|
15
|
+
"sap/ui/rta/Utils",
|
|
16
|
+
"sap/ui/model/Binding",
|
|
17
|
+
"sap/ui/model/json/JSONModel"
|
|
18
|
+
], function(
|
|
19
|
+
ManagedObject,
|
|
20
|
+
Log,
|
|
21
|
+
formatMessage,
|
|
22
|
+
Fragment,
|
|
23
|
+
Layer,
|
|
24
|
+
ContextBasedAdaptationsAPI,
|
|
25
|
+
ContextSharingAPI,
|
|
26
|
+
Utils,
|
|
27
|
+
Binding,
|
|
28
|
+
JSONModel
|
|
29
|
+
) {
|
|
30
|
+
"use strict";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Controller for the <code>sap.ui.rta.toolbar.contextBased.SaveAsAdaptation</code> controls.
|
|
34
|
+
* Contains implementation of context-based-adaptation functionality.
|
|
35
|
+
*
|
|
36
|
+
* @class
|
|
37
|
+
*
|
|
38
|
+
* @author SAP SE
|
|
39
|
+
* @version 1.110.0
|
|
40
|
+
*
|
|
41
|
+
* @constructor
|
|
42
|
+
* @private
|
|
43
|
+
* @since 1.110
|
|
44
|
+
* @alias sap.ui.rta.toolbar.contextBased.SaveAsAdaptation
|
|
45
|
+
*/
|
|
46
|
+
var SaveAsAdaptation = ManagedObject.extend("sap.ui.rta.toolbar.contextBased.SaveAsAdaptation", {
|
|
47
|
+
metadata: {
|
|
48
|
+
properties: {
|
|
49
|
+
toolbar: {
|
|
50
|
+
type: "any" // "sap.ui.rta.toolbar.Base"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
constructor: function() {
|
|
55
|
+
ManagedObject.prototype.constructor.apply(this, arguments);
|
|
56
|
+
this.oTextResources = this.getToolbar().getTextResources();
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
SaveAsAdaptation.prototype.openAddAdaptationDialog = function(sLayer) {
|
|
61
|
+
if (!this._oAddAdaptationDialogPromise) {
|
|
62
|
+
this._oAddAdaptationDialogPromise = Fragment.load({
|
|
63
|
+
name: "sap.ui.rta.toolbar.contextBased.SaveAsAdaptationDialog",
|
|
64
|
+
id: this.getToolbar().getId() + "_fragment--sapUiRta_addAdaptationDialog",
|
|
65
|
+
controller: {
|
|
66
|
+
onAdaptationTitleChange: onAdaptationTitleChange.bind(this),
|
|
67
|
+
onSaveAsAdaptation: onSaveAsAdaptation.bind(this),
|
|
68
|
+
onCancelAdaptationDialog: onCancelAdaptationDialog.bind(this),
|
|
69
|
+
onPriorityChange: onPriorityChange.bind(this)
|
|
70
|
+
}
|
|
71
|
+
}).then(function(oDialog) {
|
|
72
|
+
this._oAddAdaptationDialog = oDialog;
|
|
73
|
+
this._oAddAdaptationDialog.attachBeforeClose(clearComponent.bind(this));
|
|
74
|
+
oDialog.addStyleClass(Utils.getRtaStyleClassName());
|
|
75
|
+
this.getToolbar().addDependent(this._oAddAdaptationDialog);
|
|
76
|
+
}.bind(this));
|
|
77
|
+
} else {
|
|
78
|
+
this.getToolbar().getControl("addAdaptationDialog--saveAdaptation-title-input").setValue("");
|
|
79
|
+
}
|
|
80
|
+
return this._oAddAdaptationDialogPromise.then(function() {
|
|
81
|
+
return createContextSharingComponent.call(this, sLayer);
|
|
82
|
+
}.bind(this)).then(function() {
|
|
83
|
+
var oRtaInformation = this.getToolbar().getRtaInformation();
|
|
84
|
+
return ContextBasedAdaptationsAPI.load({
|
|
85
|
+
control: oRtaInformation.rootControl, layer: oRtaInformation.flexSettings.layer
|
|
86
|
+
});
|
|
87
|
+
}.bind(this)).catch(function(oError) {
|
|
88
|
+
Log.error(oError.stack);
|
|
89
|
+
return new JSONModel({ adaptations: [] });
|
|
90
|
+
}).then(function(oAdaptationsModel) {
|
|
91
|
+
return openDialog.call(this, oAdaptationsModel);
|
|
92
|
+
}.bind(this));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// ------ open dialog -----
|
|
96
|
+
function openDialog(oAdaptationsModelData) {
|
|
97
|
+
formatPriorityText.call(this, oAdaptationsModelData.getData());
|
|
98
|
+
return this._oAddAdaptationDialog.open();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// ------ formatting ------
|
|
102
|
+
function formatPriorityText(oAdaptationsModelData) {
|
|
103
|
+
var aItems = [{ key: 0, title: this.oTextResources.getText("TXT_SELECT_FIRST_PRIO") }];
|
|
104
|
+
var sPriorityTextTemplate = this.oTextResources.getText("TXT_SELECT_PRIO");
|
|
105
|
+
oAdaptationsModelData.adaptations.forEach(function(oAdaptation, iIndex) {
|
|
106
|
+
aItems.push({
|
|
107
|
+
key: (iIndex + 1).toString(),
|
|
108
|
+
title: formatMessage(sPriorityTextTemplate, [oAdaptation.title, iIndex + 2])
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
this.oPrioritySelectionModel = new JSONModel({
|
|
112
|
+
selected: this.oTextResources.getText("TXT_SELECT_FIRST_PRIO"),
|
|
113
|
+
priority: aItems
|
|
114
|
+
});
|
|
115
|
+
this._oAddAdaptationDialog.setModel(this.oPrioritySelectionModel, "prioritySelectionModel");
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function onAdaptationTitleChange(oEvent) {
|
|
119
|
+
this.sAdaptationTitle = oEvent.getParameter("value");
|
|
120
|
+
enableSaveAsButton.call(this);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function onCancelAdaptationDialog() {
|
|
124
|
+
this._oAddAdaptationDialog.close();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function onSaveAsAdaptation() {
|
|
128
|
+
var oContextBasedAdaptation = {};
|
|
129
|
+
oContextBasedAdaptation.title = getAdaptationTitle.call(this);
|
|
130
|
+
oContextBasedAdaptation.contexts = this._oContextComponentInstance.getSelectedContexts();
|
|
131
|
+
oContextBasedAdaptation.priority = getAdaptationPriority.call(this);
|
|
132
|
+
var oRtaInformation = this.getToolbar().getRtaInformation();
|
|
133
|
+
ContextBasedAdaptationsAPI.create({
|
|
134
|
+
control: oRtaInformation.rootControl,
|
|
135
|
+
layer: oRtaInformation.flexSettings.layer,
|
|
136
|
+
contextBasedAdaptation: oContextBasedAdaptation
|
|
137
|
+
}).catch(function(oError) {
|
|
138
|
+
Log.error(oError.stack);
|
|
139
|
+
var sMessage = "MSG_LREP_TRANSFER_ERROR";
|
|
140
|
+
var oOptions = { titleKey: "SAC_DIALOG_HEADER" };
|
|
141
|
+
oOptions.details = oError.userMessage;
|
|
142
|
+
Utils.showMessageBox("error", sMessage, oOptions);
|
|
143
|
+
});
|
|
144
|
+
this._oAddAdaptationDialog.close();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function onPriorityChange(oEvent) {
|
|
148
|
+
this.sPriority = oEvent.getParameters().selectedItem.getProperty("key");
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function createContextSharingComponent(sLayer) {
|
|
152
|
+
var mPropertyBag = { layer: sLayer || Layer.CUSTOMER };
|
|
153
|
+
return ContextSharingAPI.createComponent(mPropertyBag).then(function(oContextSharingComponent) {
|
|
154
|
+
this._oContextComponent = oContextSharingComponent;
|
|
155
|
+
this._oContextComponentInstance = oContextSharingComponent.getComponentInstance();
|
|
156
|
+
this._oContextComponentInstance.resetSelectedContexts();
|
|
157
|
+
this._oAddAdaptationDialog.addContent(this._oContextComponent);
|
|
158
|
+
var oSelectedContextsModel = this._oContextComponentInstance.getSelectedContextsModel();
|
|
159
|
+
this.oSelectedContextsBinding = new Binding(oSelectedContextsModel, "/", oSelectedContextsModel.getContext("/"));
|
|
160
|
+
this.oSelectedContextsBinding.attachChange(enableSaveAsButton.bind(this));
|
|
161
|
+
this._oContextComponentInstance.showMessageStrip(false);
|
|
162
|
+
}.bind(this));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function getAdaptationTitle() {
|
|
166
|
+
return this.sAdaptationTitle || "";
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function getAdaptationPriority() {
|
|
170
|
+
return Number(this.sPriority) || 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function enableSaveAsButton() {
|
|
174
|
+
var bEnable = getAdaptationTitle.call(this).length > 0 && this._oContextComponentInstance.getSelectedContexts().role.length > 0;
|
|
175
|
+
this.getToolbar().getControl("addAdaptationDialog--saveAdaptation-saveButton").setEnabled(bEnable);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function clearComponent() {
|
|
179
|
+
if (this._oContextComponentInstance) {
|
|
180
|
+
this._oContextComponentInstance.showMessageStrip(true);
|
|
181
|
+
this._oContextComponentInstance.resetSelectedContexts();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return SaveAsAdaptation;
|
|
185
|
+
});
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
resizable="true"
|
|
7
7
|
draggable="true"
|
|
8
8
|
title="{i18n>SAC_DIALOG_HEADER}">
|
|
9
|
-
<Panel id="
|
|
9
|
+
<Panel id="saveAdaptation-information-panel">
|
|
10
10
|
<Toolbar id="toolbar">
|
|
11
11
|
<Label id="label"
|
|
12
12
|
text="Information"
|
|
13
13
|
design="Bold">
|
|
14
14
|
</Label>
|
|
15
15
|
</Toolbar>
|
|
16
|
-
<form:Form id="
|
|
16
|
+
<form:Form id="saveAdaptation-form"
|
|
17
17
|
editable="true">
|
|
18
18
|
<form:layout>
|
|
19
19
|
<form:ResponsiveGridLayout labelSpanXL="3"
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
<form:formElements>
|
|
35
35
|
<form:FormElement >
|
|
36
36
|
<form:label>
|
|
37
|
-
<Label id="
|
|
37
|
+
<Label id="saveAdaptation-title-label"
|
|
38
38
|
text="{i18n>APP_DIALOG_TITLE_TEXT}"
|
|
39
39
|
textAlign="Left"
|
|
40
40
|
required="true">
|
|
41
41
|
</Label>
|
|
42
42
|
</form:label>
|
|
43
|
-
<Input id="
|
|
43
|
+
<Input id="saveAdaptation-title-input"
|
|
44
44
|
value="{/title}"
|
|
45
45
|
valueLiveUpdate="true"
|
|
46
46
|
liveChange=".onAdaptationTitleChange"
|
|
@@ -49,31 +49,35 @@
|
|
|
49
49
|
</form:FormElement>
|
|
50
50
|
<form:FormElement >
|
|
51
51
|
<form:label>
|
|
52
|
-
<Label id="
|
|
52
|
+
<Label id="saveAdaptation-rank-label"
|
|
53
53
|
text="{i18n>CLM_HEADER_PRIORITY}"
|
|
54
54
|
textAlign="Left"
|
|
55
55
|
required="true">
|
|
56
56
|
</Label>
|
|
57
57
|
</form:label>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
<Select
|
|
59
|
+
id="saveAdaptation-rank-select"
|
|
60
|
+
forceSelection="true"
|
|
61
|
+
selectedKey="{prioritySelectionModel>/selected}"
|
|
62
|
+
items="{prioritySelectionModel>/priority}"
|
|
63
|
+
change=".onPriorityChange">
|
|
64
|
+
<core:Item key="{prioritySelectionModel>key}" text="{prioritySelectionModel>title}" />
|
|
65
|
+
</Select>
|
|
61
66
|
</form:FormElement>
|
|
62
67
|
</form:formElements>
|
|
63
68
|
</form:FormContainer>
|
|
64
69
|
</form:Form>
|
|
65
70
|
</Panel>
|
|
66
71
|
<beginButton>
|
|
67
|
-
<Button id="
|
|
72
|
+
<Button id="saveAdaptation-saveButton"
|
|
68
73
|
type="Emphasized"
|
|
69
|
-
text="{i18n>
|
|
70
|
-
press=".
|
|
74
|
+
text="{i18n>APP_CTX_DIALOG_SAVE}"
|
|
75
|
+
press=".onSaveAsAdaptation"/>
|
|
71
76
|
</beginButton>
|
|
72
77
|
<endButton>
|
|
73
|
-
<Button id="
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
press=".onCancelContextBasedAdaptationDialog"/>
|
|
78
|
+
<Button id="saveAdaptation-cancelButton"
|
|
79
|
+
text="{i18n>APP_CTX_DIALOG_CANCEL}"
|
|
80
|
+
press=".onCancelAdaptationDialog"/>
|
|
77
81
|
</endButton>
|
|
78
82
|
</Dialog>
|
|
79
83
|
</core:FragmentDefinition>
|
|
@@ -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
|
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @class
|
|
50
50
|
*
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.110.0
|
|
53
53
|
*
|
|
54
54
|
* @constructor
|
|
55
55
|
* @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
|
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @class
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.110.0
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @private
|
|
@@ -131,7 +131,7 @@ sap.ui.define([
|
|
|
131
131
|
return new GroupHeaderListItem({
|
|
132
132
|
title: oGroup.key ? this.oTextResources.getText("TIT_VERSION_HISTORY_PUBLISHED") : this.oTextResources.getText("TIT_VERSION_HISTORY_UNPUBLISHED"),
|
|
133
133
|
upperCase: false,
|
|
134
|
-
visible: this.getToolbar().getModel("
|
|
134
|
+
visible: this.getToolbar().getModel("versions").getProperty("/publishVersionVisible")
|
|
135
135
|
}).addStyleClass("sapUiRtaVersionHistoryGrouping").addStyleClass("sapUiRtaVersionHistory");
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -214,7 +214,7 @@ sap.ui.define([
|
|
|
214
214
|
return this._oVersionHistoryDialogPromise.then(function(oVersionsDialog) {
|
|
215
215
|
if (!oVersionsDialog.isOpen()) {
|
|
216
216
|
oVersionsDialog.openBy(oVersionButton);
|
|
217
|
-
if (this.getToolbar().getModel("
|
|
217
|
+
if (this.getToolbar().getModel("versions").getProperty("/publishVersionVisible")) {
|
|
218
218
|
var oList = this.getToolbar().getControl("versionHistoryDialog--versionList");
|
|
219
219
|
var oSorter = new Sorter({
|
|
220
220
|
path: "isPublished",
|
|
@@ -1,33 +1,29 @@
|
|
|
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
|
-
"sap/ui/thirdparty/jquery"
|
|
9
8
|
],
|
|
10
|
-
function(
|
|
9
|
+
function() {
|
|
11
10
|
"use strict";
|
|
12
11
|
|
|
13
12
|
var module = {};
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* CSS Transition helper
|
|
17
|
-
* @param {
|
|
16
|
+
* @param {HTMLElement} oElement - Element
|
|
18
17
|
* @param {Function} fnCallback - The function should start animation process (e.g. by adding class to the element)
|
|
19
18
|
* @return {Promise} Returns a Promise performing the animation
|
|
20
19
|
*/
|
|
21
|
-
module.waitTransition = function (
|
|
22
|
-
if (!($element instanceof jQuery)) {
|
|
23
|
-
throw new Error('$element should be wrapped into jQuery object');
|
|
24
|
-
}
|
|
20
|
+
module.waitTransition = function (oElement, fnCallback) {
|
|
25
21
|
if (typeof fnCallback !== "function") {
|
|
26
22
|
throw new Error('fnCallback should be a function');
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
return new Promise(function (fnResolve) {
|
|
30
|
-
|
|
26
|
+
oElement.addEventListener('transitionend', fnResolve, {once: true});
|
|
31
27
|
|
|
32
28
|
// perform animation in the next animation frame, normally 16-17ms later.
|
|
33
29
|
var iTimestampInitial;
|
|
@@ -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
|
sap.ui.define([
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* Constructor for a new sap.ui.rta.util.PluginManager
|
|
69
69
|
* @extends sap.ui.base.ManagedObject
|
|
70
70
|
* @author SAP SE
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.110.0
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
74
74
|
* @since 1.86
|
|
@@ -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
|
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* Constructor for a new sap.ui.rta.util.PopupManager
|
|
43
43
|
* @extends sap.ui.base.ManagedObject
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.110.0
|
|
46
46
|
* @constructor
|
|
47
47
|
* @private
|
|
48
48
|
* @since 1.48
|
|
@@ -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
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @namespace sap.ui.rta.util.ReloadManager
|
|
31
31
|
* @alias sap.ui.rta.util.ReloadManager
|
|
32
32
|
* @since 1.104
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.110.0
|
|
34
34
|
* @private
|
|
35
35
|
* @ui5-restricted
|
|
36
36
|
*/
|
|
@@ -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
|
|
|
@@ -19,7 +19,7 @@ function(
|
|
|
19
19
|
*
|
|
20
20
|
* @extends sap.ui.core.EventBus
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.110.0
|
|
23
23
|
* @private
|
|
24
24
|
* @since 1.56.0
|
|
25
25
|
* @alias sap.ui.rta.util.ServiceEventBus
|
|
@@ -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
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
|
|
41
41
|
* @author SAP SE
|
|
42
42
|
* @since 1.84.0
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.110.0
|
|
44
44
|
* @private
|
|
45
45
|
*/
|
|
46
46
|
var ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|
|
@@ -300,7 +300,7 @@ sap.ui.define([
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
ChangeIndicator.prototype.onAfterRendering = function() {
|
|
303
|
-
var oOverlay = Core.
|
|
303
|
+
var oOverlay = Core.byId(this.getOverlayId());
|
|
304
304
|
if (oOverlay) {
|
|
305
305
|
// Attach to the overlay
|
|
306
306
|
oOverlay.getDomRef().appendChild(this.getDomRef());
|
package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
text="{visualizationModel>/popupInfoMessage}"
|
|
27
27
|
type="Information"
|
|
28
28
|
showIcon="true"
|
|
29
|
-
visible="{= ${visualizationModel>/
|
|
29
|
+
visible="{= ${visualizationModel>/sortedChanges/relevantHiddenChanges}.length > 0 }">
|
|
30
30
|
<link>
|
|
31
31
|
<Link text="{i18n>BUT_CHANGEVISUALIZATION_LEARNMORE}"
|
|
32
32
|
target="_blank"
|