@sapui5/sap.fe.templates 1.100.0 → 1.102.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 +4 -5
- package/src/sap/fe/templates/.library +1 -2
- package/src/sap/fe/templates/AnalyticalListPage/Component.js +24 -12
- package/src/sap/fe/templates/AnalyticalListPage/Component.ts +6 -0
- package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +30 -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 +156 -118
- package/src/sap/fe/templates/ListComponent.ts +105 -0
- package/src/sap/fe/templates/ListReport/Component.js +82 -53
- package/src/sap/fe/templates/ListReport/Component.ts +39 -0
- package/src/sap/fe/templates/ListReport/ExtensionAPI.js +126 -112
- package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +106 -0
- package/src/sap/fe/templates/ListReport/ListReport.view.xml +106 -58
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +1196 -1081
- package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +1088 -0
- 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/IntentBasedNavigation.js +54 -53
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.ts +55 -0
- package/src/sap/fe/templates/ListReport/overrides/Share.js +137 -137
- package/src/sap/fe/templates/ListReport/overrides/Share.ts +135 -0
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +451 -428
- package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +419 -0
- package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +25 -25
- 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/{MultipleMode.fragment.xml → MultipleModeOld.fragment.xml} +24 -23
- package/src/sap/fe/templates/ObjectPage/Component.js +169 -138
- package/src/sap/fe/templates/ObjectPage/Component.ts +131 -0
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +140 -142
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +116 -0
- package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +162 -22
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +1534 -1447
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +1454 -0
- 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/controls/StashableHBox.js +136 -101
- package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.ts +84 -0
- package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +24 -21
- package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.ts +10 -0
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +98 -53
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.ts +50 -0
- package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +20 -19
- package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.ts +15 -0
- package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +50 -47
- package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.ts +47 -0
- package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +34 -34
- package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.ts +34 -0
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +15 -15
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.ts +13 -0
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +11 -11
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.ts +7 -0
- package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +55 -52
- package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.ts +57 -0
- package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +15 -17
- package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.ts +13 -0
- package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +13 -17
- package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.ts +14 -0
- package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +23 -21
- package/src/sap/fe/templates/ObjectPage/overrides/Paginator.ts +21 -0
- package/src/sap/fe/templates/ObjectPage/overrides/Share.js +310 -317
- package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +316 -0
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +66 -57
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.ts +65 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +26 -33
- package/src/sap/fe/templates/ObjectPage/view/fragments/CollaborationDraft.fragment.xml +11 -10
- package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +15 -15
- package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +31 -27
- 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/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +27 -0
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +899 -817
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.ts +833 -0
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +205 -189
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.ts +178 -0
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +484 -459
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.ts +438 -0
- package/src/sap/fe/templates/RootContainer/overrides/EditFlow.js +16 -14
- package/src/sap/fe/templates/RootContainer/overrides/EditFlow.ts +20 -0
- package/src/sap/fe/templates/TableScroller.js +45 -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 +23 -0
- package/src/sap/fe/templates/controls/Table.fragment.xml +3 -4
- package/src/sap/fe/templates/library.js +49 -63
- package/src/sap/fe/templates/library.ts +57 -0
- package/src/sap/fe/templates/messagebundle.properties +19 -7
- package/src/sap/fe/templates/messagebundle_ar.properties +12 -4
- package/src/sap/fe/templates/messagebundle_bg.properties +12 -4
- package/src/sap/fe/templates/messagebundle_ca.properties +12 -4
- package/src/sap/fe/templates/messagebundle_cs.properties +12 -4
- package/src/sap/fe/templates/messagebundle_cy.properties +12 -4
- package/src/sap/fe/templates/messagebundle_da.properties +12 -4
- package/src/sap/fe/templates/messagebundle_de.properties +12 -4
- package/src/sap/fe/templates/messagebundle_el.properties +12 -4
- package/src/sap/fe/templates/messagebundle_en.properties +12 -4
- package/src/sap/fe/templates/messagebundle_en_GB.properties +12 -4
- package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +13 -5
- package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +13 -5
- package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +13 -5
- package/src/sap/fe/templates/messagebundle_es.properties +12 -4
- package/src/sap/fe/templates/messagebundle_es_MX.properties +12 -4
- package/src/sap/fe/templates/messagebundle_et.properties +12 -4
- package/src/sap/fe/templates/messagebundle_fi.properties +12 -4
- package/src/sap/fe/templates/messagebundle_fr.properties +12 -4
- package/src/sap/fe/templates/messagebundle_fr_CA.properties +12 -4
- package/src/sap/fe/templates/messagebundle_hi.properties +12 -4
- package/src/sap/fe/templates/messagebundle_hr.properties +12 -4
- package/src/sap/fe/templates/messagebundle_hu.properties +12 -4
- package/src/sap/fe/templates/messagebundle_id.properties +12 -4
- package/src/sap/fe/templates/messagebundle_it.properties +12 -4
- package/src/sap/fe/templates/messagebundle_iw.properties +12 -4
- package/src/sap/fe/templates/messagebundle_ja.properties +12 -4
- package/src/sap/fe/templates/messagebundle_kk.properties +12 -4
- package/src/sap/fe/templates/messagebundle_ko.properties +12 -4
- package/src/sap/fe/templates/messagebundle_lt.properties +12 -4
- package/src/sap/fe/templates/messagebundle_lv.properties +12 -4
- package/src/sap/fe/templates/messagebundle_ms.properties +12 -4
- package/src/sap/fe/templates/messagebundle_nl.properties +12 -4
- package/src/sap/fe/templates/messagebundle_no.properties +12 -4
- package/src/sap/fe/templates/messagebundle_pl.properties +12 -4
- package/src/sap/fe/templates/messagebundle_pt.properties +13 -5
- package/src/sap/fe/templates/messagebundle_pt_PT.properties +12 -4
- package/src/sap/fe/templates/messagebundle_ro.properties +12 -4
- package/src/sap/fe/templates/messagebundle_ru.properties +12 -4
- package/src/sap/fe/templates/messagebundle_sh.properties +12 -4
- package/src/sap/fe/templates/messagebundle_sk.properties +12 -4
- package/src/sap/fe/templates/messagebundle_sl.properties +12 -4
- package/src/sap/fe/templates/messagebundle_sv.properties +12 -4
- package/src/sap/fe/templates/messagebundle_th.properties +12 -4
- package/src/sap/fe/templates/messagebundle_tr.properties +12 -4
- package/src/sap/fe/templates/messagebundle_uk.properties +12 -4
- package/src/sap/fe/templates/messagebundle_vi.properties +12 -4
- package/src/sap/fe/templates/messagebundle_zh_CN.properties +12 -4
- package/src/sap/fe/templates/messagebundle_zh_TW.properties +12 -4
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +0 -518
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +0 -120
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +0 -138
|
@@ -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>
|
package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContentLazyLoader.fragment.xml
CHANGED
|
@@ -11,23 +11,23 @@
|
|
|
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
|
-
|
|
30
|
-
|
|
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
|
+
<uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
|
|
26
|
+
<opcontrol:SubSectionBlock>
|
|
27
|
+
<opcontrol:content>
|
|
28
|
+
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
29
|
+
<template:then>
|
|
30
|
+
<layout:DynamicSideContent
|
|
31
31
|
id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
|
|
32
32
|
showMainContent="true"
|
|
33
33
|
showSideContent="{subSection>sideContent/visible}"
|
|
@@ -35,42 +35,41 @@
|
|
|
35
35
|
containerQuery="true"
|
|
36
36
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
37
37
|
>
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
<layout:mainContent>
|
|
39
|
+
<core:Fragment
|
|
40
40
|
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
|
|
41
41
|
type="XML"
|
|
42
42
|
/>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
</layout:mainContent>
|
|
44
|
+
<layout:sideContent>
|
|
45
|
+
<core:Fragment
|
|
46
46
|
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
|
|
47
47
|
type="XML"
|
|
48
48
|
/>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
</layout:sideContent>
|
|
50
|
+
</layout:DynamicSideContent>
|
|
51
|
+
</template:then>
|
|
52
|
+
<template:else>
|
|
53
|
+
<core:Fragment
|
|
54
54
|
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
|
|
55
55
|
type="XML"
|
|
56
56
|
/>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<uxap:blocks>
|
|
57
|
+
</template:else>
|
|
58
|
+
</template:if>
|
|
59
|
+
</opcontrol:content>
|
|
60
|
+
</opcontrol:SubSectionBlock>
|
|
61
|
+
</uxap:ObjectPageLazyLoader>
|
|
62
|
+
</uxap:blocks>
|
|
63
|
+
</template:then>
|
|
64
|
+
<template:elseif test="{= ${subSection>type} === 'Form'}">
|
|
65
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActions" type="XML" />
|
|
66
|
+
<uxap:blocks>
|
|
68
67
|
<uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
<opcontrol:SubSectionBlock>
|
|
69
|
+
<opcontrol:content>
|
|
70
|
+
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
71
|
+
<template:then>
|
|
72
|
+
<layout:DynamicSideContent
|
|
74
73
|
id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
|
|
75
74
|
showMainContent="true"
|
|
76
75
|
showSideContent="{subSection>sideContent/visible}"
|
|
@@ -78,33 +77,41 @@
|
|
|
78
77
|
containerQuery="true"
|
|
79
78
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
80
79
|
>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
80
|
+
<layout:mainContent>
|
|
81
|
+
<core:Fragment
|
|
82
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent"
|
|
83
|
+
type="XML"
|
|
84
|
+
/>
|
|
85
|
+
</layout:mainContent>
|
|
86
|
+
<layout:sideContent>
|
|
87
|
+
<core:Fragment
|
|
88
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
|
|
89
|
+
type="XML"
|
|
90
|
+
/>
|
|
91
|
+
</layout:sideContent>
|
|
92
|
+
</layout:DynamicSideContent>
|
|
93
|
+
</template:then>
|
|
94
|
+
<template:else>
|
|
95
|
+
<core:Fragment
|
|
96
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent"
|
|
97
|
+
type="XML"
|
|
98
|
+
/>
|
|
99
|
+
</template:else>
|
|
100
|
+
</template:if>
|
|
101
|
+
</opcontrol:content>
|
|
102
|
+
</opcontrol:SubSectionBlock>
|
|
96
103
|
</uxap:ObjectPageLazyLoader>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
</uxap:blocks>
|
|
105
|
+
<template:if test="{subSection>formDefinition/hasFacetsNotPartOfPreview}">
|
|
106
|
+
<template:then>
|
|
107
|
+
<!-- Button "Show More / Less" is displayed for a collection facets that contains at least one reference facets with annotation "PartOfPreview === TRUE" -->
|
|
108
|
+
<uxap:moreBlocks>
|
|
109
|
+
<template:if test="{= ${subSection>level} === 2}">
|
|
110
|
+
<Title text="{subSection>title}" />
|
|
111
|
+
</template:if>
|
|
112
|
+
<opcontrol:SubSectionBlock>
|
|
113
|
+
<opcontrol:content>
|
|
114
|
+
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
108
115
|
<template:then>
|
|
109
116
|
<layout:DynamicSideContent
|
|
110
117
|
id="{= ID.generate(['fe', ${subSection>key}, 'MoreSideContentLayout'])}"
|
|
@@ -115,7 +122,10 @@
|
|
|
115
122
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
116
123
|
>
|
|
117
124
|
<layout:mainContent>
|
|
118
|
-
<core:Fragment
|
|
125
|
+
<core:Fragment
|
|
126
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
|
|
127
|
+
type="XML"
|
|
128
|
+
/>
|
|
119
129
|
</layout:mainContent>
|
|
120
130
|
<layout:sideContent>
|
|
121
131
|
<!--No Side Content for MoreBlocks so far-->
|
|
@@ -123,29 +133,32 @@
|
|
|
123
133
|
</layout:DynamicSideContent>
|
|
124
134
|
</template:then>
|
|
125
135
|
<template:else>
|
|
126
|
-
<core:Fragment
|
|
136
|
+
<core:Fragment
|
|
137
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
|
|
138
|
+
type="XML"
|
|
139
|
+
/>
|
|
127
140
|
</template:else>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
</template:if>
|
|
142
|
+
</opcontrol:content>
|
|
143
|
+
</opcontrol:SubSectionBlock>
|
|
144
|
+
</uxap:moreBlocks>
|
|
145
|
+
</template:then>
|
|
146
|
+
</template:if>
|
|
147
|
+
</template:elseif>
|
|
148
|
+
<template:elseif test="{= ${subSection>type} === 'DataVisualization'}">
|
|
149
|
+
<uxap:blocks>
|
|
150
|
+
<uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
|
|
151
|
+
<template:if test="{= ${subSection>level} === 2}">
|
|
152
|
+
<Title
|
|
140
153
|
text="{subSection>title}"
|
|
141
154
|
visible="{= ${subSection>visible} && ${subSection>title} !=='undefined' && ${subSection>showTitle} ? true : false}"
|
|
142
155
|
/>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
156
|
+
</template:if>
|
|
157
|
+
<opcontrol:SubSectionBlock visible="{subSection>visible}">
|
|
158
|
+
<opcontrol:content>
|
|
146
159
|
<template:if test="{= ${subSection>sideContent} !== undefined}">
|
|
147
|
-
|
|
148
|
-
|
|
160
|
+
<template:then>
|
|
161
|
+
<layout:DynamicSideContent
|
|
149
162
|
id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
|
|
150
163
|
showMainContent="true"
|
|
151
164
|
showSideContent="{subSection>sideContent/visible}"
|
|
@@ -153,29 +166,36 @@
|
|
|
153
166
|
containerQuery="true"
|
|
154
167
|
equalSplit="{subSection>sideContent/equalSplit}"
|
|
155
168
|
>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
<layout:mainContent>
|
|
170
|
+
<core:Fragment
|
|
171
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
|
|
172
|
+
type="XML"
|
|
173
|
+
/>
|
|
174
|
+
</layout:mainContent>
|
|
175
|
+
<layout:sideContent>
|
|
176
|
+
<core:Fragment
|
|
177
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
|
|
178
|
+
type="XML"
|
|
179
|
+
/>
|
|
180
|
+
</layout:sideContent>
|
|
181
|
+
</layout:DynamicSideContent>
|
|
182
|
+
</template:then>
|
|
183
|
+
<template:else>
|
|
184
|
+
<core:Fragment
|
|
185
|
+
fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
|
|
186
|
+
type="XML"
|
|
187
|
+
/>
|
|
188
|
+
</template:else>
|
|
167
189
|
</template:if>
|
|
168
|
-
|
|
169
|
-
|
|
190
|
+
</opcontrol:content>
|
|
191
|
+
</opcontrol:SubSectionBlock>
|
|
170
192
|
</uxap:ObjectPageLazyLoader>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
</template:if>
|
|
180
|
-
</template:if>
|
|
193
|
+
</uxap:blocks>
|
|
194
|
+
</template:elseif>
|
|
195
|
+
<template:elseif test="{= ${subSection>type} === 'Unknown'}">
|
|
196
|
+
<Text text="{subSection>text}" />
|
|
197
|
+
</template:elseif>
|
|
198
|
+
<template:else />
|
|
199
|
+
</template:if>
|
|
200
|
+
</template:if>
|
|
181
201
|
</core:FragmentDefinition>
|
|
@@ -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>
|