@sapui5/sap.fe.templates 1.98.0 → 1.101.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 +9 -6
- package/src/sap/fe/templates/.library +1 -2
- package/src/sap/fe/templates/AnalyticalListPage/Component.js +25 -12
- package/src/sap/fe/templates/AnalyticalListPage/Component.ts +6 -0
- package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +31 -32
- package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.ts +25 -0
- package/src/sap/fe/templates/Feedback.js +80 -0
- package/src/sap/fe/templates/Feedback.ts +67 -0
- package/src/sap/fe/templates/ListComponent.js +157 -118
- package/src/sap/fe/templates/ListComponent.ts +105 -0
- package/src/sap/fe/templates/ListReport/Component.js +83 -39
- package/src/sap/fe/templates/ListReport/Component.ts +39 -0
- package/src/sap/fe/templates/ListReport/ExtensionAPI.js +124 -107
- package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +100 -0
- package/src/sap/fe/templates/ListReport/ListReport.view.xml +34 -27
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +1112 -1001
- package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +1009 -0
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +55 -53
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.ts +55 -0
- package/src/sap/fe/templates/ListReport/overrides/Share.js +135 -136
- package/src/sap/fe/templates/ListReport/overrides/Share.ts +134 -0
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +444 -406
- package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +413 -0
- package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +31 -23
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.js +72 -0
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.ts +62 -0
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleModeOld.fragment.xml +50 -0
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +479 -473
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.ts +511 -0
- package/src/sap/fe/templates/ObjectPage/Component.js +170 -149
- package/src/sap/fe/templates/ObjectPage/Component.ts +131 -0
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +141 -142
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +116 -0
- package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +14 -53
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +1531 -1464
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +1442 -0
- package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +137 -95
- package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.ts +84 -0
- package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +25 -21
- package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.ts +10 -0
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +99 -53
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.ts +50 -0
- package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +21 -16
- package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.ts +15 -0
- package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +51 -47
- package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.ts +47 -0
- package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +35 -34
- package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.ts +34 -0
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +16 -15
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.ts +13 -0
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +12 -11
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.ts +7 -0
- package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +56 -52
- package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.ts +57 -0
- package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +16 -17
- package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.ts +13 -0
- package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +14 -17
- package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.ts +14 -0
- package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +24 -21
- package/src/sap/fe/templates/ObjectPage/overrides/Paginator.ts +21 -0
- package/src/sap/fe/templates/ObjectPage/overrides/Share.js +311 -317
- package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +316 -0
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +67 -57
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.ts +65 -0
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +1 -1
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +3 -3
- package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +18 -24
- package/src/sap/fe/templates/ObjectPage/view/fragments/CollaborationDraft.fragment.xml +38 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +9 -5
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacet.fragment.xml +1 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacetCustomContainer.fragment.xml +1 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +33 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingAvatar.fragment.xml +17 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingTitle.fragment.xml +18 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionFormContent.fragment.xml +3 -3
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionMoreFormContent.fragment.xml +3 -3
- package/src/sap/fe/templates/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +27 -0
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +852 -815
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.ts +795 -0
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +206 -187
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.ts +178 -0
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +485 -459
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.ts +438 -0
- package/src/sap/fe/templates/RootContainer/overrides/EditFlow.js +17 -14
- package/src/sap/fe/templates/RootContainer/overrides/EditFlow.ts +20 -0
- package/src/sap/fe/templates/TableScroller.js +46 -53
- package/src/sap/fe/templates/TableScroller.ts +48 -0
- package/src/sap/fe/templates/controls/Chart.fragment.xml +18 -17
- package/src/sap/fe/templates/controls/MacroChart.fragment.xml +22 -0
- package/src/sap/fe/templates/library.js +50 -63
- package/src/sap/fe/templates/library.ts +57 -0
- package/src/sap/fe/templates/messagebundle.properties +32 -36
- package/src/sap/fe/templates/messagebundle_ar.properties +15 -8
- package/src/sap/fe/templates/messagebundle_bg.properties +15 -8
- package/src/sap/fe/templates/messagebundle_ca.properties +15 -8
- package/src/sap/fe/templates/messagebundle_cs.properties +15 -8
- package/src/sap/fe/templates/messagebundle_cy.properties +15 -8
- package/src/sap/fe/templates/messagebundle_da.properties +15 -8
- package/src/sap/fe/templates/messagebundle_de.properties +15 -8
- package/src/sap/fe/templates/messagebundle_el.properties +16 -9
- package/src/sap/fe/templates/messagebundle_en.properties +15 -8
- package/src/sap/fe/templates/messagebundle_en_GB.properties +15 -8
- package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +9 -6
- package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +15 -8
- package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +15 -8
- package/src/sap/fe/templates/messagebundle_es.properties +15 -8
- package/src/sap/fe/templates/messagebundle_es_MX.properties +15 -8
- package/src/sap/fe/templates/messagebundle_et.properties +15 -8
- package/src/sap/fe/templates/messagebundle_fi.properties +15 -8
- package/src/sap/fe/templates/messagebundle_fr.properties +15 -8
- package/src/sap/fe/templates/messagebundle_fr_CA.properties +15 -8
- package/src/sap/fe/templates/messagebundle_hi.properties +15 -8
- package/src/sap/fe/templates/messagebundle_hr.properties +16 -9
- package/src/sap/fe/templates/messagebundle_hu.properties +15 -8
- package/src/sap/fe/templates/messagebundle_id.properties +17 -10
- package/src/sap/fe/templates/messagebundle_it.properties +15 -8
- package/src/sap/fe/templates/messagebundle_iw.properties +15 -8
- package/src/sap/fe/templates/messagebundle_ja.properties +15 -8
- package/src/sap/fe/templates/messagebundle_kk.properties +15 -8
- package/src/sap/fe/templates/messagebundle_ko.properties +15 -8
- package/src/sap/fe/templates/messagebundle_lt.properties +15 -8
- package/src/sap/fe/templates/messagebundle_lv.properties +15 -8
- package/src/sap/fe/templates/messagebundle_ms.properties +15 -8
- package/src/sap/fe/templates/messagebundle_nl.properties +15 -8
- package/src/sap/fe/templates/messagebundle_no.properties +15 -8
- package/src/sap/fe/templates/messagebundle_pl.properties +15 -8
- package/src/sap/fe/templates/messagebundle_pt.properties +18 -11
- package/src/sap/fe/templates/messagebundle_pt_PT.properties +16 -9
- package/src/sap/fe/templates/messagebundle_ro.properties +15 -8
- package/src/sap/fe/templates/messagebundle_ru.properties +15 -8
- package/src/sap/fe/templates/messagebundle_sh.properties +15 -8
- package/src/sap/fe/templates/messagebundle_sk.properties +15 -8
- package/src/sap/fe/templates/messagebundle_sl.properties +15 -8
- package/src/sap/fe/templates/messagebundle_sv.properties +16 -9
- package/src/sap/fe/templates/messagebundle_th.properties +15 -8
- package/src/sap/fe/templates/messagebundle_tr.properties +15 -8
- package/src/sap/fe/templates/messagebundle_uk.properties +16 -9
- package/src/sap/fe/templates/messagebundle_vi.properties +15 -8
- package/src/sap/fe/templates/messagebundle_zh_CN.properties +15 -8
- package/src/sap/fe/templates/messagebundle_zh_TW.properties +15 -8
- package/ui5.yaml +0 -3
- package/src/sap/fe/templates/ListReport/overrides/MassEdit.js +0 -95
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.xml +0 -49
|
@@ -17,9 +17,22 @@
|
|
|
17
17
|
}"
|
|
18
18
|
>
|
|
19
19
|
<template:if test="{converterContext>header/actions}">
|
|
20
|
-
|
|
21
|
-
<template:if test="{=
|
|
20
|
+
<template:repeat list="{converterContext>header/actions}" var="headerAction">
|
|
21
|
+
<template:if test="{= ${headerAction>type} === 'DraftActions' && OP.checkDraftState(${entitySet>@}) }">
|
|
22
22
|
<template:then>
|
|
23
|
+
<Button
|
|
24
|
+
id="fe::StandardAction::SwitchDraftAndActiveObject"
|
|
25
|
+
text="{= ( !(${ui>/editMode} === 'Editable') && !${ui>createMode} && ${HasDraftEntity} ) ? ${sap.fe.i18n>C_COMMON_OBJECT_PAGE_SAVED_VERSION_BUT} : ${sap.fe.i18n>C_COMMON_OBJECT_PAGE_DRAFT_BUT} }"
|
|
26
|
+
visible="{= OP.getSwitchDraftAndActiveVisibility(${entitySet>@}) }"
|
|
27
|
+
icon="sap-icon://navigation-down-arrow"
|
|
28
|
+
iconFirst="false"
|
|
29
|
+
type="Transparent"
|
|
30
|
+
press="._showSwitchDraftAndActivePopover($event)"
|
|
31
|
+
/>
|
|
32
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.CollaborationDraft" type="XML" />
|
|
33
|
+
<ToolbarSpacer />
|
|
34
|
+
</template:then>
|
|
35
|
+
<template:elseif test="{= CORE.isManifestAction(${headerAction>}) }">
|
|
23
36
|
<template:if test="{= ${headerAction>type} === 'Menu'}">
|
|
24
37
|
<template:then>
|
|
25
38
|
<MenuButton
|
|
@@ -83,13 +96,12 @@
|
|
|
83
96
|
/>
|
|
84
97
|
</template:else>
|
|
85
98
|
</template:if>
|
|
86
|
-
</template:
|
|
87
|
-
|
|
99
|
+
</template:elseif>
|
|
88
100
|
<template:elseif test="{= ${headerAction>type} === 'Primary'}">
|
|
89
101
|
<template:with path="entitySet>" helper="OP.getEditAction" var="editAction">
|
|
90
102
|
<template:with path="editAction>@Org.OData.Core.V1.OperationAvailable" var="operationAvailable">
|
|
91
103
|
<template:if test="{= ${operationAvailable>} !== false }">
|
|
92
|
-
|
|
104
|
+
<Button
|
|
93
105
|
unittest:id="EditActionTest"
|
|
94
106
|
id="fe::StandardAction::Edit"
|
|
95
107
|
type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'CORE.buildEmphasizedButtonExpression'}"
|
|
@@ -118,24 +130,6 @@
|
|
|
118
130
|
ariaHasPopup="Dialog"
|
|
119
131
|
/>
|
|
120
132
|
</template:elseif>
|
|
121
|
-
<template:elseif test="{= ${headerAction>type} === 'SwitchToActiveObject' && OP.checkDraftState(${entitySet>@}) }">
|
|
122
|
-
<Button
|
|
123
|
-
id="fe::StandardAction::SwitchToActiveObject"
|
|
124
|
-
type="Default"
|
|
125
|
-
text="{sap.fe.i18n>C_COMMON_OBJECT_PAGE_DISPLAY_SAVED_VERSION}"
|
|
126
|
-
visible="{= OP.getSwitchToActiveVisibility(${entitySet>@}) }"
|
|
127
|
-
press="cmd:SwitchToActiveObject"
|
|
128
|
-
/>
|
|
129
|
-
</template:elseif>
|
|
130
|
-
<template:elseif test="{= ${headerAction>type} === 'SwitchToDraftObject' && OP.checkDraftState(${entitySet>@}) }">
|
|
131
|
-
<Button
|
|
132
|
-
id="fe::StandardAction::SwitchToDraftObject"
|
|
133
|
-
type="Default"
|
|
134
|
-
text="{sap.fe.i18n>C_COMMON_OBJECT_PAGE_RETURN_TO_DRAFT}"
|
|
135
|
-
visible="{= OP.getSwitchToDraftVisibility(${entitySet>@}) }"
|
|
136
|
-
press="cmd:SwitchToDraftObject"
|
|
137
|
-
/>
|
|
138
|
-
</template:elseif>
|
|
139
133
|
<template:elseif test="{= ${headerAction>type} === 'ForAction'}">
|
|
140
134
|
<template:with path="headerAction>annotationPath" var="dataField">
|
|
141
135
|
<template:if
|
|
@@ -164,7 +158,7 @@
|
|
|
164
158
|
</template:elseif>
|
|
165
159
|
<template:elseif test="{= ${headerAction>type} === 'ForNavigation'}">
|
|
166
160
|
<template:with path="headerAction>annotationPath" var="dataField">
|
|
167
|
-
|
|
161
|
+
<Button
|
|
168
162
|
id="{= ID.generate(['fe', ${dataField>}]) }"
|
|
169
163
|
text="{headerAction>text}"
|
|
170
164
|
press="{headerAction>press}"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns:f="sap.f"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:core="sap.ui.core"
|
|
5
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
6
|
+
template:require="{
|
|
7
|
+
FE_MODEL: 'sap/fe/core/helpers/ModelHelper'
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<template:if test="{entitySet>@@FE_MODEL.isCollaborationDraftSupported}">
|
|
11
|
+
<!-- issues with rendering therefore using HBox for now
|
|
12
|
+
<AvatarGroup avatarDisplaySize="XS" groupType="Individual" visible="{ui>/isEditable}" items="{ui>/collaboration/activeUsers}">
|
|
13
|
+
<AvatarGroupItem initials="{ui>initials}" />
|
|
14
|
+
</AvatarGroup>
|
|
15
|
+
-->
|
|
16
|
+
<HBox
|
|
17
|
+
class="sapUiTinyMarginBegin"
|
|
18
|
+
items="{internal>/collaboration/activeUsers}"
|
|
19
|
+
visible="{= ${ui>/isEditable} && ${internal>/collaboration/connected} }"
|
|
20
|
+
alignItems="Center"
|
|
21
|
+
justifyContent="Start"
|
|
22
|
+
>
|
|
23
|
+
<f:Avatar
|
|
24
|
+
initials="{internal>initials}"
|
|
25
|
+
backgroundColor="Accent{internal>color}"
|
|
26
|
+
displaySize="XS"
|
|
27
|
+
press="._showCollaborationUserDetails"
|
|
28
|
+
/>
|
|
29
|
+
</HBox>
|
|
30
|
+
<template:if test="{entitySet>@com.sap.vocabularies.Common.v1.DraftRoot/ShareAction}">
|
|
31
|
+
<!-- For now the invite action is only shown on the root. we might provide it on all levels later as well -->
|
|
32
|
+
<!-- Button class="sapUiTinyMarginBegin" visible="{ui>/isEditable}" text="Invite" press="._manageCollaboration" / -->
|
|
33
|
+
<HBox visible="{ui>/isEditable}" alignItems="Center" justifyContent="Start">
|
|
34
|
+
<Avatar backgroundColor="TileIcon" src="sap-icon://add-employee" displaySize="XS" press="._manageCollaboration" />
|
|
35
|
+
</HBox>
|
|
36
|
+
</template:if>
|
|
37
|
+
</template:if>
|
|
38
|
+
</core:FragmentDefinition>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
unittest:id="HeaderInfoFormContainerTest"
|
|
39
39
|
id="fe::EditableHeaderForm::EditableHeaderInfo"
|
|
40
40
|
title="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}"
|
|
41
|
-
visible="{= OP.getVisiblityOfHeaderFacet(${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value/$Path@},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value/$Path@@FIELD.fieldControl}) }"
|
|
41
|
+
visible="{= OP.getVisiblityOfHeaderFacet(${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value/$Path@},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description/Value/$Path@},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value/$Path@@FIELD.fieldControl},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description/Value/$Path@@FIELD.fieldControl}) }"
|
|
42
42
|
>
|
|
43
43
|
<f:dependents>
|
|
44
44
|
<macro:ValueHelp
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
type="Emphasized"
|
|
31
31
|
ariaHasPopup="Dialog"
|
|
32
32
|
/>
|
|
33
|
-
|
|
33
|
+
<ToolbarSpacer />
|
|
34
34
|
<template:if
|
|
35
35
|
test="{= ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot} || ${entitySet>@com.sap.vocabularies.Common.v1.DraftNode}
|
|
36
36
|
|| COMMON.isDraftParentEntityForContainment(${entitySet>$ContainsTarget}, undefined, ${converterContext>}) }"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'CORE.buildEmphasizedButtonExpression'}"
|
|
49
49
|
enabled="true"
|
|
50
50
|
press="._applyDocument(${$view>/getBindingContext})"
|
|
51
|
-
visible="{
|
|
51
|
+
visible="{ui>/isEditable}"
|
|
52
52
|
/>
|
|
53
53
|
</template:then>
|
|
54
54
|
<template:elseif test="{= ${footerAction>type} === 'ForAction'}">
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
text="{= OPTemplating.getExpressionForSaveButton(${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
83
83
|
tooltip="{= COMMON.getTooltipForKeyboardShortcuts(${sap.fe.i18n>T_KEYBOARD_SHORTCUT_SAVE_WIN}, ${sap.fe.i18n>T_KEYBOARD_SHORTCUT_SAVE_MAC})}"
|
|
84
84
|
type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'CORE.buildEmphasizedButtonExpression'}"
|
|
85
|
-
visible="{
|
|
85
|
+
visible="{ui>/isEditable}"
|
|
86
86
|
enabled="true"
|
|
87
87
|
press="cmd:Save"
|
|
88
88
|
/>
|
|
@@ -93,10 +93,14 @@
|
|
|
93
93
|
id="fe::FooterBar::StandardAction::Cancel"
|
|
94
94
|
text="{sap.fe.i18n>C_COMMON_OBJECT_PAGE_CANCEL}"
|
|
95
95
|
press="cmd:Cancel"
|
|
96
|
-
visible="{
|
|
96
|
+
visible="{ui>/isEditable}"
|
|
97
97
|
ariaHasPopup="Dialog"
|
|
98
98
|
enabled="true"
|
|
99
|
-
|
|
99
|
+
>
|
|
100
|
+
<layoutData>
|
|
101
|
+
<OverflowToolbarLayoutData priority="NeverOverflow" />
|
|
102
|
+
</layoutData>
|
|
103
|
+
</Button>
|
|
100
104
|
</template:elseif>
|
|
101
105
|
<template:elseif test="{= CORE.isManifestAction(${footerAction>}) }">
|
|
102
106
|
<Button
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
unittest:id="headerFacetContent"
|
|
24
24
|
class="sapUiMediumMarginEnd sapUiSmallMarginBottom"
|
|
25
25
|
visible="{converterHeaderFacet>visible}"
|
|
26
|
+
fallbackTitle="{headerFacet>@@MODEL.label}"
|
|
26
27
|
binding="{= OP.getStashableHBoxBinding(${viewData>/controlConfiguration}, { Facet: ${converterHeaderFacet>} })}"
|
|
27
28
|
stashed="{converterHeaderFacet>stashed}"
|
|
28
29
|
>
|
package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacetCustomContainer.fragment.xml
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
unittest:id="headerFacetContent"
|
|
21
21
|
class="sapUiMediumMarginEnd sapUiSmallMarginBottom"
|
|
22
22
|
visible="{converterHeaderFacet>visible}"
|
|
23
|
+
fallbackTitle="{converterHeaderFacet>title}"
|
|
23
24
|
binding="{converterHeaderFacet>binding}"
|
|
24
25
|
stashed="{converterHeaderFacet>stashed}"
|
|
25
26
|
>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:uxap="sap.uxap"
|
|
5
|
+
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
6
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
7
|
+
template:require="{
|
|
8
|
+
OPTemplating: 'sap/fe/templates/ObjectPage/templating/ObjectPageTemplating',
|
|
9
|
+
UI: 'sap/fe/core/templating/UIFormatters'
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
13
|
+
<template:with path="header>avatar" var="avatar">
|
|
14
|
+
<uxap:expandedHeading>
|
|
15
|
+
<FlexBox>
|
|
16
|
+
<FlexBox visible="{header>title/expandedImageVisible}">
|
|
17
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
|
|
18
|
+
</FlexBox>
|
|
19
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
20
|
+
</FlexBox>
|
|
21
|
+
</uxap:expandedHeading>
|
|
22
|
+
<uxap:snappedHeading>
|
|
23
|
+
<FlexBox>
|
|
24
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
|
|
25
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
26
|
+
</FlexBox>
|
|
27
|
+
</uxap:snappedHeading>
|
|
28
|
+
<uxap:snappedTitleOnMobile>
|
|
29
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
30
|
+
</uxap:snappedTitleOnMobile>
|
|
31
|
+
</template:with>
|
|
32
|
+
</template:with>
|
|
33
|
+
</core:FragmentDefinition>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
5
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
6
|
+
>
|
|
7
|
+
<template:if test="{avatar>}">
|
|
8
|
+
<Avatar
|
|
9
|
+
class="sapUiSmallMarginEnd"
|
|
10
|
+
src="{avatar>src}"
|
|
11
|
+
initials="{avatar>initials}"
|
|
12
|
+
fallbackIcon="{avatar>fallbackIcon}"
|
|
13
|
+
displayShape="{avatar>displayShape}"
|
|
14
|
+
displaySize="S"
|
|
15
|
+
/>
|
|
16
|
+
</template:if>
|
|
17
|
+
</core:FragmentDefinition>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:uxap="sap.uxap"
|
|
5
|
+
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
6
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
7
|
+
template:require="{
|
|
8
|
+
OPTemplating: 'sap/fe/templates/ObjectPage/templating/ObjectPageTemplating',
|
|
9
|
+
UI: 'sap/fe/core/templating/UIFormatters'
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
13
|
+
<Title
|
|
14
|
+
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
15
|
+
wrapping="true"
|
|
16
|
+
/>
|
|
17
|
+
</template:with>
|
|
18
|
+
</core:FragmentDefinition>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<core:FragmentDefinition
|
|
2
2
|
xmlns:core="sap.ui.core"
|
|
3
|
-
xmlns:macro="sap.fe.macros"
|
|
3
|
+
xmlns:macro="sap.fe.macros.internal"
|
|
4
4
|
xmlns="sap.m"
|
|
5
5
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
6
6
|
template:require="{
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
>
|
|
10
10
|
<macro:Form
|
|
11
11
|
id="{= ID.generate([${subSection>formDefinition/id}, 'Content']) }"
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
metaPath="{subSection>annotationPath}"
|
|
13
|
+
contextPath="{entitySet>}"
|
|
14
14
|
useFormContainerLabels="{= ${subSection>formDefinition/useFormContainerLabels}}"
|
|
15
15
|
partOfPreview="true"
|
|
16
16
|
formContainers="{subSection>formDefinition/formContainers}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition
|
|
2
2
|
xmlns:core="sap.ui.core"
|
|
3
3
|
xmlns="sap.m"
|
|
4
|
-
xmlns:macro="sap.fe.macros"
|
|
4
|
+
xmlns:macro="sap.fe.macros.internal"
|
|
5
5
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
6
6
|
template:require="{
|
|
7
7
|
ID: 'sap/fe/core/helpers/StableIdHelper'
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
>
|
|
10
10
|
<macro:Form
|
|
11
11
|
id="{= ID.generate([${subSection>formDefinition/id}, 'MoreContent']) }"
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
metaPath="{subSection>annotationPath}"
|
|
13
|
+
contextPath="{entitySet>}"
|
|
14
14
|
useFormContainerLabels="{= ${subSection>formDefinition/useFormContainerLabels}}"
|
|
15
15
|
partOfPreview="false"
|
|
16
16
|
formContainers="{subSection>formDefinition/formContainers}"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns:core="sap.ui.core"
|
|
3
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
4
|
+
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
5
|
+
xmlns="sap.m"
|
|
6
|
+
>
|
|
7
|
+
<Popover
|
|
8
|
+
unittest:id="SwitchDraftAndActiveObjectPopOver"
|
|
9
|
+
showHeader="false"
|
|
10
|
+
contentWidth="15.625rem"
|
|
11
|
+
verticalScrolling="false"
|
|
12
|
+
class="sapUiNoContentPadding"
|
|
13
|
+
>
|
|
14
|
+
<content>
|
|
15
|
+
<SelectList
|
|
16
|
+
selectedKey="{= %{HasDraftEntity} ? 'switchToActive' : 'switchToDraft' }"
|
|
17
|
+
itemPress="._switchDraftAndActivePopoverListSelect($event)"
|
|
18
|
+
>
|
|
19
|
+
<customData>
|
|
20
|
+
<core:CustomData key="listIdentifier" value="switchDraftAndActivePopoverList" />
|
|
21
|
+
</customData>
|
|
22
|
+
<core:Item text="{i18n>C_COMMON_OBJECT_PAGE_DISPLAY_DRAFT_MIT}" key="switchToDraft" />
|
|
23
|
+
<core:Item text="{i18n>C_COMMON_OBJECT_PAGE_DISPLAY_SAVED_VERSION_MIT}" key="switchToActive" />
|
|
24
|
+
</SelectList>
|
|
25
|
+
</content>
|
|
26
|
+
</Popover>
|
|
27
|
+
</core:FragmentDefinition>
|