@sapui5/sap.fe.templates 1.101.1 → 1.102.2
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 +1 -1
- package/src/sap/fe/templates/.library +1 -1
- package/src/sap/fe/templates/ListReport/ExtensionAPI.js +8 -5
- package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +11 -5
- package/src/sap/fe/templates/ListReport/ListReport.view.xml +104 -57
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +104 -19
- package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +98 -19
- package/src/sap/fe/templates/ListReport/ListReportTemplating.js +45 -0
- package/src/sap/fe/templates/ListReport/ListReportTemplating.ts +30 -0
- package/src/sap/fe/templates/ListReport/overrides/Share.js +7 -4
- package/src/sap/fe/templates/ListReport/overrides/Share.ts +4 -3
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +10 -2
- package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +7 -1
- package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +164 -18
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +51 -47
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +52 -40
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +872 -0
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +837 -0
- package/src/sap/fe/templates/ObjectPage/overrides/Share.js +3 -3
- package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +2 -2
- package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +9 -10
- package/src/sap/fe/templates/ObjectPage/view/fragments/CollaborationDraft.fragment.xml +1 -2
- package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +15 -15
- package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +28 -24
- package/src/sap/fe/templates/ObjectPage/view/fragments/FormActionButtons.fragment.xml +15 -16
- package/src/sap/fe/templates/ObjectPage/view/fragments/FormActions.fragment.xml +1 -5
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPoint.fragment.xml +1 -2
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPointTitle.fragment.xml +1 -3
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacet.fragment.xml +3 -4
- package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +16 -17
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingTitle.fragment.xml +3 -3
- package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +3 -3
- package/src/sap/fe/templates/ObjectPage/view/fragments/RelatedApps.fragment.xml +7 -4
- package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +71 -6
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +114 -94
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContentLazyLoader.fragment.xml +127 -107
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +81 -33
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.ts +71 -33
- package/src/sap/fe/templates/controls/MacroChart.fragment.xml +1 -0
- package/src/sap/fe/templates/controls/Table.fragment.xml +3 -4
- package/src/sap/fe/templates/library.js +1 -1
- package/src/sap/fe/templates/messagebundle_ar.properties +10 -6
- package/src/sap/fe/templates/messagebundle_bg.properties +6 -2
- package/src/sap/fe/templates/messagebundle_ca.properties +10 -6
- package/src/sap/fe/templates/messagebundle_cs.properties +6 -2
- package/src/sap/fe/templates/messagebundle_cy.properties +10 -6
- package/src/sap/fe/templates/messagebundle_da.properties +10 -6
- package/src/sap/fe/templates/messagebundle_de.properties +10 -6
- package/src/sap/fe/templates/messagebundle_el.properties +10 -6
- package/src/sap/fe/templates/messagebundle_en.properties +6 -2
- package/src/sap/fe/templates/messagebundle_en_GB.properties +8 -4
- package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +13 -5
- package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +7 -3
- package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +7 -3
- package/src/sap/fe/templates/messagebundle_es.properties +6 -2
- package/src/sap/fe/templates/messagebundle_es_MX.properties +10 -6
- package/src/sap/fe/templates/messagebundle_et.properties +6 -2
- package/src/sap/fe/templates/messagebundle_fi.properties +10 -6
- package/src/sap/fe/templates/messagebundle_fr.properties +6 -2
- package/src/sap/fe/templates/messagebundle_fr_CA.properties +10 -6
- package/src/sap/fe/templates/messagebundle_hi.properties +10 -6
- package/src/sap/fe/templates/messagebundle_hr.properties +10 -6
- package/src/sap/fe/templates/messagebundle_hu.properties +6 -2
- package/src/sap/fe/templates/messagebundle_id.properties +6 -2
- package/src/sap/fe/templates/messagebundle_it.properties +10 -6
- package/src/sap/fe/templates/messagebundle_iw.properties +10 -6
- package/src/sap/fe/templates/messagebundle_ja.properties +6 -2
- package/src/sap/fe/templates/messagebundle_kk.properties +10 -6
- package/src/sap/fe/templates/messagebundle_ko.properties +6 -2
- package/src/sap/fe/templates/messagebundle_lt.properties +6 -2
- package/src/sap/fe/templates/messagebundle_lv.properties +6 -2
- package/src/sap/fe/templates/messagebundle_ms.properties +10 -6
- package/src/sap/fe/templates/messagebundle_nl.properties +6 -2
- package/src/sap/fe/templates/messagebundle_no.properties +10 -6
- package/src/sap/fe/templates/messagebundle_pl.properties +10 -6
- package/src/sap/fe/templates/messagebundle_pt.properties +7 -3
- package/src/sap/fe/templates/messagebundle_pt_PT.properties +6 -2
- package/src/sap/fe/templates/messagebundle_ro.properties +10 -6
- package/src/sap/fe/templates/messagebundle_ru.properties +10 -6
- package/src/sap/fe/templates/messagebundle_sh.properties +6 -2
- package/src/sap/fe/templates/messagebundle_sk.properties +6 -2
- package/src/sap/fe/templates/messagebundle_sl.properties +10 -6
- package/src/sap/fe/templates/messagebundle_sv.properties +6 -2
- package/src/sap/fe/templates/messagebundle_th.properties +10 -6
- package/src/sap/fe/templates/messagebundle_tr.properties +6 -2
- package/src/sap/fe/templates/messagebundle_uk.properties +6 -2
- package/src/sap/fe/templates/messagebundle_vi.properties +10 -6
- package/src/sap/fe/templates/messagebundle_zh_CN.properties +10 -6
- package/src/sap/fe/templates/messagebundle_zh_TW.properties +10 -6
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +0 -482
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.ts +0 -511
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +0 -120
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +0 -138
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
11
11
|
template:require="{
|
|
12
12
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
13
|
-
CORE: 'sap/fe/core/AnnotationHelper',
|
|
14
13
|
COMMON: 'sap/fe/macros/CommonHelper',
|
|
15
|
-
OP: 'sap/fe/templates/ObjectPage/
|
|
14
|
+
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
16
15
|
ID: 'sap/fe/core/helpers/StableIdHelper'
|
|
17
16
|
}"
|
|
18
17
|
>
|
|
@@ -35,7 +34,7 @@
|
|
|
35
34
|
</template:then>
|
|
36
35
|
<template:elseif test="{= ${converterHeaderFacet>targetAnnotationType} === 'Chart'}">
|
|
37
36
|
<template:with path="headerFacet>Target/$AnnotationPath" var="collection" helper="MODEL.resolve$Path">
|
|
38
|
-
<template:with path="collection>" var="collection" helper="
|
|
37
|
+
<template:with path="collection>" var="collection" helper="COMMON.getNavigationContext">
|
|
39
38
|
<internalMacro:MicroChart
|
|
40
39
|
unittest:id="macroMicroChart"
|
|
41
40
|
id="{= ID.generate(['fe', 'HeaderFacet', 'MicroChart', { Facet: ${headerFacet>} }]) }"
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
</template:elseif>
|
|
59
58
|
<template:elseif test="{= ${converterHeaderFacet>targetAnnotationType} === 'Contact'}">
|
|
60
59
|
<template:with path="headerFacet>Target/$AnnotationPath" var="collection" helper="MODEL.resolve$Path">
|
|
61
|
-
<template:with path="collection>" var="collection" helper="
|
|
60
|
+
<template:with path="collection>" var="collection" helper="COMMON.getNavigationContext">
|
|
62
61
|
<VBox id="{= ID.generate(['fe', 'HeaderFacet', 'Contact', { Facet: ${headerFacet>} }]) }" displayInline="true">
|
|
63
62
|
<template:if test="{headerFacet>@@MODEL.label}">
|
|
64
63
|
<Title text="{headerFacet>@@MODEL.label}" class="sapUiSmallMarginBottom" />
|
|
@@ -5,29 +5,28 @@
|
|
|
5
5
|
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
6
6
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
7
7
|
template:require="{
|
|
8
|
-
OPTemplating: 'sap/fe/templates/ObjectPage/templating/ObjectPageTemplating',
|
|
9
8
|
UI: 'sap/fe/core/templating/UIFormatters'
|
|
10
9
|
}"
|
|
11
10
|
>
|
|
12
11
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
<template:with path="header>avatar" var="avatar">
|
|
13
|
+
<uxap:expandedHeading>
|
|
14
|
+
<FlexBox>
|
|
15
|
+
<FlexBox visible="{header>title/expandedImageVisible}">
|
|
16
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
|
|
17
|
+
</FlexBox>
|
|
18
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
19
|
+
</FlexBox>
|
|
20
|
+
</uxap:expandedHeading>
|
|
21
|
+
<uxap:snappedHeading>
|
|
22
|
+
<FlexBox>
|
|
17
23
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
|
|
24
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
18
25
|
</FlexBox>
|
|
26
|
+
</uxap:snappedHeading>
|
|
27
|
+
<uxap:snappedTitleOnMobile>
|
|
19
28
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
20
|
-
</
|
|
21
|
-
</
|
|
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>
|
|
29
|
+
</uxap:snappedTitleOnMobile>
|
|
30
|
+
</template:with>
|
|
32
31
|
</template:with>
|
|
33
32
|
</core:FragmentDefinition>
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
6
6
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
7
7
|
template:require="{
|
|
8
|
-
|
|
8
|
+
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
9
9
|
UI: 'sap/fe/core/templating/UIFormatters'
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
12
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
13
|
-
|
|
14
|
-
text="{=
|
|
13
|
+
<Title
|
|
14
|
+
text="{= OP.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
15
15
|
wrapping="true"
|
|
16
16
|
/>
|
|
17
17
|
</template:with>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
template:require="{
|
|
8
8
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
9
9
|
ID: 'sap/fe/core/helpers/StableIdHelper',
|
|
10
|
-
OP: 'sap/fe/templates/ObjectPage/
|
|
10
|
+
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
11
11
|
FIELD: 'sap/fe/macros/field/FieldHelper'
|
|
12
12
|
}"
|
|
13
13
|
>
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
dataField="{dataField>}"
|
|
51
51
|
ariaLabelledBy="{= ID.generate([ ${formElement>idPrefix}, 'Label'])}"
|
|
52
52
|
>
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
<internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" />
|
|
54
|
+
</internalMacro:Field>
|
|
55
55
|
</HBox>
|
|
56
56
|
</template:with>
|
|
57
57
|
</template:then>
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
xmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
|
|
4
4
|
xmlns:core="sap.ui.core"
|
|
5
5
|
>
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<MenuButton
|
|
7
|
+
id="fe::RelatedApps"
|
|
8
|
+
text="{sap.fe.i18n>T_OP_RELATED_APPS}"
|
|
9
|
+
binding="{internal>relatedApps}"
|
|
10
|
+
visible="{internal>visibility}"
|
|
11
|
+
>
|
|
8
12
|
<menu>
|
|
9
13
|
<Menu items="{path: 'internal>items', sorter: { path: 'text' }}">
|
|
10
14
|
<items>
|
|
@@ -12,11 +16,10 @@
|
|
|
12
16
|
text="{internal>text}"
|
|
13
17
|
customData:targetSemObject="{internal>targetSemObject}"
|
|
14
18
|
customData:targetAction="{internal>targetAction}"
|
|
15
|
-
press="._intentBasedNavigation.navigate(${internal>targetSemObject}, ${internal>targetAction})"
|
|
19
|
+
press="._intentBasedNavigation.navigate(${internal>targetSemObject}, ${internal>targetAction}, ${internal>targetParams})"
|
|
16
20
|
/>
|
|
17
21
|
</items>
|
|
18
22
|
</Menu>
|
|
19
23
|
</menu>
|
|
20
24
|
</MenuButton>
|
|
21
|
-
|
|
22
25
|
</core:FragmentDefinition>
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
xmlns:dt="sap.ui.dt"
|
|
8
8
|
xmlns="sap.m"
|
|
9
9
|
xmlns:opcontrol="sap.fe.templates.ObjectPage.controls"
|
|
10
|
+
xmlns:control="sap.fe.core.controls"
|
|
10
11
|
template:require="{
|
|
11
12
|
fpm: 'sap/fe/macros/fpm/fpm',
|
|
12
13
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
13
|
-
OP: 'sap/fe/templates/ObjectPage/
|
|
14
|
+
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
14
15
|
COMMON: 'sap/fe/macros/CommonHelper',
|
|
15
16
|
ID: 'sap/fe/core/helpers/StableIdHelper'
|
|
16
17
|
}"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
titleUppercase="false"
|
|
30
31
|
>
|
|
31
32
|
<uxap:subSections>
|
|
32
|
-
<uxap:ObjectPageSubSection id="fe::EditableHeaderSubSection">
|
|
33
|
+
<uxap:ObjectPageSubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}">
|
|
33
34
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.EditableHeaderFacet" type="XML" />
|
|
34
35
|
</uxap:ObjectPageSubSection>
|
|
35
36
|
</uxap:subSections>
|
|
@@ -55,6 +56,58 @@
|
|
|
55
56
|
showTitle="{subSection>showTitle}"
|
|
56
57
|
visible="{subSection>visible}"
|
|
57
58
|
>
|
|
59
|
+
<uxap:dependents>
|
|
60
|
+
<template:repeat list="{subSection>actions}" var="action">
|
|
61
|
+
<template:if test="{= ${action>type} === 'Menu'}">
|
|
62
|
+
<template:then>
|
|
63
|
+
<template:repeat list="{action>menu}" var="menuItemAction">
|
|
64
|
+
<template:if test="{menuItemAction>command}">
|
|
65
|
+
<template:if test="{= ${menuItemAction>type} === 'Default'}">
|
|
66
|
+
<template:then>
|
|
67
|
+
<control:CommandExecution
|
|
68
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
69
|
+
execute="{= COMMON.buildActionWrapper(${menuItemAction>})}"
|
|
70
|
+
visible="{menuItemAction>visible}"
|
|
71
|
+
enabled="{menuItemAction>enabled}"
|
|
72
|
+
command="{menuItemAction>command}"
|
|
73
|
+
/>
|
|
74
|
+
</template:then>
|
|
75
|
+
<template:else>
|
|
76
|
+
<control:CommandExecution
|
|
77
|
+
execute="{menuItemAction>press}"
|
|
78
|
+
visible="{menuItemAction>visible}"
|
|
79
|
+
enabled="{menuItemAction>enabled}"
|
|
80
|
+
command="{menuItemAction>command}"
|
|
81
|
+
/>
|
|
82
|
+
</template:else>
|
|
83
|
+
</template:if>
|
|
84
|
+
</template:if>
|
|
85
|
+
</template:repeat>
|
|
86
|
+
</template:then>
|
|
87
|
+
<template:elseif test="{action>command}">
|
|
88
|
+
<template:if test="{= ${action>type} === 'Default'}">
|
|
89
|
+
<template:then>
|
|
90
|
+
<control:CommandExecution
|
|
91
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
92
|
+
execute="{= COMMON.buildActionWrapper(${action>})}"
|
|
93
|
+
visible="{action>visible}"
|
|
94
|
+
enabled="{action>enabled}"
|
|
95
|
+
command="{action>command}"
|
|
96
|
+
/>
|
|
97
|
+
</template:then>
|
|
98
|
+
<template:else>
|
|
99
|
+
<control:CommandExecution
|
|
100
|
+
execute="{action>press}"
|
|
101
|
+
visible="{action>visible}"
|
|
102
|
+
enabled="{action>enabled}"
|
|
103
|
+
command="{action>command}"
|
|
104
|
+
/>
|
|
105
|
+
</template:else>
|
|
106
|
+
</template:if>
|
|
107
|
+
</template:elseif>
|
|
108
|
+
</template:if>
|
|
109
|
+
</template:repeat>
|
|
110
|
+
</uxap:dependents>
|
|
58
111
|
<!--uxap:customData>
|
|
59
112
|
<core:CustomData key="strategyForVisibilityChange" value="lazyLoading" />
|
|
60
113
|
</uxap:customData-->
|
|
@@ -66,12 +119,18 @@
|
|
|
66
119
|
<template:if test="{viewData>/useNewLazyLoading}">
|
|
67
120
|
<template:then>
|
|
68
121
|
<template:repeat list="{subSection>content}" var="subSection">
|
|
69
|
-
<core:Fragment
|
|
122
|
+
<core:Fragment
|
|
123
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContentLazyLoader"
|
|
124
|
+
type="XML"
|
|
125
|
+
/>
|
|
70
126
|
</template:repeat>
|
|
71
127
|
</template:then>
|
|
72
128
|
<template:else>
|
|
73
129
|
<template:repeat list="{subSection>content}" var="subSection">
|
|
74
|
-
<core:Fragment
|
|
130
|
+
<core:Fragment
|
|
131
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContent"
|
|
132
|
+
type="XML"
|
|
133
|
+
/>
|
|
75
134
|
</template:repeat>
|
|
76
135
|
</template:else>
|
|
77
136
|
</template:if>
|
|
@@ -79,10 +138,16 @@
|
|
|
79
138
|
<template:else>
|
|
80
139
|
<template:if test="{viewData>/useNewLazyLoading}">
|
|
81
140
|
<template:then>
|
|
82
|
-
<core:Fragment
|
|
141
|
+
<core:Fragment
|
|
142
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContentLazyLoader"
|
|
143
|
+
type="XML"
|
|
144
|
+
/>
|
|
83
145
|
</template:then>
|
|
84
146
|
<template:else>
|
|
85
|
-
<core:Fragment
|
|
147
|
+
<core:Fragment
|
|
148
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContent"
|
|
149
|
+
type="XML"
|
|
150
|
+
/>
|
|
86
151
|
</template:else>
|
|
87
152
|
</template:if>
|
|
88
153
|
</template:else>
|
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
template:require="{
|
|
12
12
|
fpm: 'sap/fe/macros/fpm/fpm',
|
|
13
13
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
14
|
-
OP: 'sap/fe/templates/ObjectPage/
|
|
14
|
+
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
15
15
|
COMMON: 'sap/fe/macros/CommonHelper',
|
|
16
16
|
ID: 'sap/fe/core/helpers/StableIdHelper'
|
|
17
17
|
}"
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
<!-- We want to ensure that statically non visible sections are non visible-->
|
|
20
|
+
<template:if test="{subSection>visible}">
|
|
21
|
+
<template:if test="{= ${subSection>type} === 'XMLFragment'}">
|
|
22
|
+
<template:then>
|
|
23
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActions" type="XML" />
|
|
24
|
+
<uxap:blocks>
|
|
25
|
+
<opcontrol:SubSectionBlock>
|
|
26
|
+
<opcontrol:content>
|
|
27
|
+
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
28
|
+
<template:then>
|
|
29
|
+
<layout:DynamicSideContent
|
|
30
30
|
id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
|
|
31
31
|
showMainContent="true"
|
|
32
32
|
showSideContent="{subSection>sideContent/visible}"
|
|
@@ -34,40 +34,39 @@
|
|
|
34
34
|
containerQuery="true"
|
|
35
35
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
36
36
|
>
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
<layout:mainContent>
|
|
38
|
+
<core:Fragment
|
|
39
39
|
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
|
|
40
40
|
type="XML"
|
|
41
41
|
/>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
</layout:mainContent>
|
|
43
|
+
<layout:sideContent>
|
|
44
|
+
<core:Fragment
|
|
45
45
|
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
|
|
46
46
|
type="XML"
|
|
47
47
|
/>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
</layout:sideContent>
|
|
49
|
+
</layout:DynamicSideContent>
|
|
50
|
+
</template:then>
|
|
51
|
+
<template:else>
|
|
52
|
+
<core:Fragment
|
|
53
53
|
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
|
|
54
54
|
type="XML"
|
|
55
55
|
/>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<opcontrol:content>
|
|
56
|
+
</template:else>
|
|
57
|
+
</template:if>
|
|
58
|
+
</opcontrol:content>
|
|
59
|
+
</opcontrol:SubSectionBlock>
|
|
60
|
+
</uxap:blocks>
|
|
61
|
+
</template:then>
|
|
62
|
+
<template:elseif test="{= ${subSection>type} === 'Form'}">
|
|
63
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActions" type="XML" />
|
|
64
|
+
<uxap:blocks>
|
|
65
|
+
<opcontrol:SubSectionBlock>
|
|
66
|
+
<opcontrol:content>
|
|
68
67
|
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
<template:then>
|
|
69
|
+
<layout:DynamicSideContent
|
|
71
70
|
id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
|
|
72
71
|
showMainContent="true"
|
|
73
72
|
showSideContent="{subSection>sideContent/visible}"
|
|
@@ -75,32 +74,40 @@
|
|
|
75
74
|
containerQuery="true"
|
|
76
75
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
77
76
|
>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
<layout:mainContent>
|
|
78
|
+
<core:Fragment
|
|
79
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent"
|
|
80
|
+
type="XML"
|
|
81
|
+
/>
|
|
82
|
+
</layout:mainContent>
|
|
83
|
+
<layout:sideContent>
|
|
84
|
+
<core:Fragment
|
|
85
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
|
|
86
|
+
type="XML"
|
|
87
|
+
/>
|
|
88
|
+
</layout:sideContent>
|
|
89
|
+
</layout:DynamicSideContent>
|
|
90
|
+
</template:then>
|
|
91
|
+
<template:else>
|
|
92
|
+
<core:Fragment
|
|
93
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent"
|
|
94
|
+
type="XML"
|
|
95
|
+
/>
|
|
96
|
+
</template:else>
|
|
90
97
|
</template:if>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
</opcontrol:content>
|
|
99
|
+
</opcontrol:SubSectionBlock>
|
|
100
|
+
</uxap:blocks>
|
|
101
|
+
<template:if test="{subSection>formDefinition/hasFacetsNotPartOfPreview}">
|
|
102
|
+
<template:then>
|
|
103
|
+
<!-- Button "Show More / Less" is displayed for a collection facets that contains at least one reference facets with annotation "PartOfPreview === TRUE" -->
|
|
104
|
+
<uxap:moreBlocks>
|
|
105
|
+
<template:if test="{= ${subSection>level} === 2}">
|
|
106
|
+
<Title text="{subSection>title}" />
|
|
107
|
+
</template:if>
|
|
108
|
+
<opcontrol:SubSectionBlock>
|
|
109
|
+
<opcontrol:content>
|
|
110
|
+
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
104
111
|
<template:then>
|
|
105
112
|
<layout:DynamicSideContent
|
|
106
113
|
id="{= ID.generate(['fe', ${subSection>key}, 'MoreSideContentLayout'])}"
|
|
@@ -111,7 +118,10 @@
|
|
|
111
118
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
112
119
|
>
|
|
113
120
|
<layout:mainContent>
|
|
114
|
-
<core:Fragment
|
|
121
|
+
<core:Fragment
|
|
122
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
|
|
123
|
+
type="XML"
|
|
124
|
+
/>
|
|
115
125
|
</layout:mainContent>
|
|
116
126
|
<layout:sideContent>
|
|
117
127
|
<!--No Side Content for MoreBlocks so far-->
|
|
@@ -119,23 +129,26 @@
|
|
|
119
129
|
</layout:DynamicSideContent>
|
|
120
130
|
</template:then>
|
|
121
131
|
<template:else>
|
|
122
|
-
<core:Fragment
|
|
132
|
+
<core:Fragment
|
|
133
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
|
|
134
|
+
type="XML"
|
|
135
|
+
/>
|
|
123
136
|
</template:else>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
</template:if>
|
|
138
|
+
</opcontrol:content>
|
|
139
|
+
</opcontrol:SubSectionBlock>
|
|
140
|
+
</uxap:moreBlocks>
|
|
141
|
+
</template:then>
|
|
142
|
+
</template:if>
|
|
143
|
+
</template:elseif>
|
|
144
|
+
<template:elseif test="{= ${subSection>type} === 'DataVisualization'}">
|
|
145
|
+
<uxap:blocks>
|
|
146
|
+
<template:if test="{= ${subSection>level} === 2}">
|
|
147
|
+
<Title text="{subSection>title}" visible="{subSection>titleVisible}" />
|
|
148
|
+
</template:if>
|
|
149
|
+
<opcontrol:SubSectionBlock visible="{subSection>visible}">
|
|
150
|
+
<opcontrol:content>
|
|
151
|
+
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
139
152
|
<template:then>
|
|
140
153
|
<layout:DynamicSideContent
|
|
141
154
|
id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
|
|
@@ -146,27 +159,34 @@
|
|
|
146
159
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
147
160
|
>
|
|
148
161
|
<layout:mainContent>
|
|
149
|
-
<core:Fragment
|
|
162
|
+
<core:Fragment
|
|
163
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
|
|
164
|
+
type="XML"
|
|
165
|
+
/>
|
|
150
166
|
</layout:mainContent>
|
|
151
167
|
<layout:sideContent>
|
|
152
|
-
<core:Fragment
|
|
168
|
+
<core:Fragment
|
|
169
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
|
|
170
|
+
type="XML"
|
|
171
|
+
/>
|
|
153
172
|
</layout:sideContent>
|
|
154
173
|
</layout:DynamicSideContent>
|
|
155
174
|
</template:then>
|
|
156
175
|
<template:else>
|
|
157
|
-
<core:Fragment
|
|
176
|
+
<core:Fragment
|
|
177
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
|
|
178
|
+
type="XML"
|
|
179
|
+
/>
|
|
158
180
|
</template:else>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</template:if>
|
|
171
|
-
</template:if>
|
|
181
|
+
</template:if>
|
|
182
|
+
</opcontrol:content>
|
|
183
|
+
</opcontrol:SubSectionBlock>
|
|
184
|
+
</uxap:blocks>
|
|
185
|
+
</template:elseif>
|
|
186
|
+
<template:elseif test="{= ${subSection>type} === 'Unknown'}">
|
|
187
|
+
<Text text="{subSection>text}" />
|
|
188
|
+
</template:elseif>
|
|
189
|
+
<template:else />
|
|
190
|
+
</template:if>
|
|
191
|
+
</template:if>
|
|
172
192
|
</core:FragmentDefinition>
|