@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
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
xmlns:macroInternal="sap.fe.macros.internal"
|
|
8
8
|
xmlns:control="sap.fe.core.controls"
|
|
9
9
|
xmlns:core="sap.ui.core"
|
|
10
|
+
xmlns:fragments="sap.fe.templates.ListReport.view.fragments"
|
|
10
11
|
xmlns:l="sap.ui.layout"
|
|
11
12
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
12
13
|
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
13
14
|
xmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
|
|
14
15
|
template:require="{
|
|
15
|
-
CORE: 'sap/fe/core/AnnotationHelper',
|
|
16
16
|
ID: 'sap/fe/core/helpers/StableIdHelper',
|
|
17
17
|
COMMON: 'sap/fe/macros/CommonHelper',
|
|
18
|
-
FILTER: 'sap/fe/core/templating/FilterHelper'
|
|
18
|
+
FILTER: 'sap/fe/core/templating/FilterHelper',
|
|
19
|
+
LR: 'sap/fe/templates/ListReport/ListReportTemplating'
|
|
19
20
|
}"
|
|
20
21
|
controllerName="sap.fe.templates.ListReport.ListReportController"
|
|
21
22
|
>
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
customData:singleTableId="{converterContext>singleTableId}"
|
|
29
30
|
customData:singleChartId="{converterContext>singleChartId}"
|
|
30
31
|
customData:filterBarId="{converterContext>filterBarId}"
|
|
31
|
-
customData:defaultPath="{=
|
|
32
|
+
customData:defaultPath="{= LR.getDefaultPath(${converterContext>views})}"
|
|
32
33
|
customData:visualFilterBarId="{= ID.generate(['visualFilter',${converterContext>filterBarId}])}"
|
|
33
34
|
customData:filterBarVariantId="{converterContext>variantManagement/id}"
|
|
34
35
|
customData:ListReportTitle="{= ${manifest>/sap.app/title} }"
|
|
@@ -41,16 +42,31 @@
|
|
|
41
42
|
busyIndicatorDelay="0"
|
|
42
43
|
class="{= !${converterContext>hasMultiVisualizations} && ${converterContext>views}.length > 1 ? 'sapUiNoContentPadding' : 'sapUiResponsiveContentPadding'}"
|
|
43
44
|
>
|
|
45
|
+
<f:dependents>
|
|
46
|
+
<template:if test="{converterContext>headerActions}">
|
|
47
|
+
<template:repeat list="{converterContext>headerActions}" var="headerAction">
|
|
48
|
+
<template:if test="{headerAction>command}">
|
|
49
|
+
<control:CommandExecution
|
|
50
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
51
|
+
execute="{= COMMON.buildActionWrapper(${headerAction>})}"
|
|
52
|
+
visible="{headerAction>visible}"
|
|
53
|
+
enabled="{headerAction>enabled}"
|
|
54
|
+
command="{headerAction>command}"
|
|
55
|
+
/>
|
|
56
|
+
</template:if>
|
|
57
|
+
</template:repeat>
|
|
58
|
+
</template:if>
|
|
59
|
+
</f:dependents>
|
|
44
60
|
<f:title>
|
|
45
61
|
<f:DynamicPageTitle>
|
|
46
62
|
<f:heading>
|
|
47
63
|
<template:with path="converterContext>kpiDefinitions" var="definitions">
|
|
48
64
|
<template:if test="{definitions>length}">
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
65
|
+
<template:then>
|
|
66
|
+
<l:HorizontalLayout class="sapUiNoContentPadding sapUiNoMarginTop sapUiNoMarginBottom">
|
|
67
|
+
<template:if test="{= ${viewData>/variantManagement} === 'Page'}">
|
|
68
|
+
<template:then>
|
|
69
|
+
<v:VariantManagement
|
|
54
70
|
id="fe::PageVariantManagement"
|
|
55
71
|
unittest:id="listReportVMPageTest"
|
|
56
72
|
for="{converterContext>variantManagement/targetControlIds}"
|
|
@@ -58,11 +74,13 @@
|
|
|
58
74
|
select=".handlers.onVariantSelected"
|
|
59
75
|
save=".handlers.onVariantSaved"
|
|
60
76
|
displayTextForExecuteOnSelectionForStandardVariant="{= ${viewData>/initialLoad} === 'Auto' ? ${sap.fe.i18n>T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET} : undefined }"
|
|
61
|
-
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled'}"
|
|
77
|
+
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled' || ${viewData>/initialLoad} === 'Auto'}"
|
|
62
78
|
/>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
</template:then>
|
|
80
|
+
<template:elseif
|
|
81
|
+
test="{= ${viewData>/variantManagement} === 'Control' && !${converterContext>hideFilterBar}}"
|
|
82
|
+
>
|
|
83
|
+
<v:VariantManagement
|
|
66
84
|
id="{= ID.generate([ ${converterContext>filterBarId}, 'VariantManagement']) }"
|
|
67
85
|
unittest:id="listReportVMControlTest"
|
|
68
86
|
for="{converterContext>variantManagement/targetControlIds}"
|
|
@@ -70,24 +88,31 @@
|
|
|
70
88
|
select=".handlers.onVariantSelected"
|
|
71
89
|
save=".handlers.onVariantSaved"
|
|
72
90
|
displayTextForExecuteOnSelectionForStandardVariant="{= ${viewData>/initialLoad} === 'Auto' ? ${sap.fe.i18n>T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET} : undefined }"
|
|
73
|
-
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled'}"
|
|
91
|
+
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled' || ${viewData>/initialLoad} === 'Auto'}"
|
|
74
92
|
/>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
</template:elseif>
|
|
94
|
+
<template:else>
|
|
95
|
+
<Title
|
|
96
|
+
unittest:id="listReportTitleTest"
|
|
97
|
+
text="{= ${manifest>/sap.app/subTitle} || ${manifest>/sap.app/title} }"
|
|
98
|
+
/>
|
|
99
|
+
</template:else>
|
|
100
|
+
</template:if>
|
|
101
|
+
<template:repeat list="{converterContext>kpiDefinitions}" var="kpi">
|
|
102
|
+
<template:with path="kpi>datapoint" var="datapoint">
|
|
103
|
+
<macro:KPITag
|
|
104
|
+
id="{kpi>id}"
|
|
105
|
+
metaPath="{datapoint>annotationPath}"
|
|
106
|
+
hasUnit="{= ${datapoint>unit} !== undefined}"
|
|
107
|
+
/>
|
|
108
|
+
</template:with>
|
|
109
|
+
</template:repeat>
|
|
110
|
+
</l:HorizontalLayout>
|
|
111
|
+
</template:then>
|
|
112
|
+
<template:else>
|
|
113
|
+
<template:if test="{= ${viewData>/variantManagement} === 'Page'}">
|
|
114
|
+
<template:then>
|
|
115
|
+
<v:VariantManagement
|
|
91
116
|
id="fe::PageVariantManagement"
|
|
92
117
|
unittest:id="listReportVMPageTest"
|
|
93
118
|
for="{converterContext>variantManagement/targetControlIds}"
|
|
@@ -95,11 +120,13 @@
|
|
|
95
120
|
select=".handlers.onVariantSelected"
|
|
96
121
|
save=".handlers.onVariantSaved"
|
|
97
122
|
displayTextForExecuteOnSelectionForStandardVariant="{= ${viewData>/initialLoad} === 'Auto' ? ${sap.fe.i18n>T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET} : undefined }"
|
|
98
|
-
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled'}"
|
|
123
|
+
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled' || ${viewData>/initialLoad} === 'Auto'}"
|
|
99
124
|
/>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
125
|
+
</template:then>
|
|
126
|
+
<template:elseif
|
|
127
|
+
test="{= ${viewData>/variantManagement} === 'Control' && !${converterContext>hideFilterBar}}"
|
|
128
|
+
>
|
|
129
|
+
<v:VariantManagement
|
|
103
130
|
id="{= ID.generate([ ${converterContext>filterBarId}, 'VariantManagement']) }"
|
|
104
131
|
unittest:id="listReportVMControlTest"
|
|
105
132
|
for="{converterContext>variantManagement/targetControlIds}"
|
|
@@ -107,14 +134,17 @@
|
|
|
107
134
|
select=".handlers.onVariantSelected"
|
|
108
135
|
save=".handlers.onVariantSaved"
|
|
109
136
|
displayTextForExecuteOnSelectionForStandardVariant="{= ${viewData>/initialLoad} === 'Auto' ? ${sap.fe.i18n>T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET} : undefined }"
|
|
110
|
-
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled'}"
|
|
137
|
+
executeOnSelectionForStandardDefault="{= ${viewData>/initialLoad} === 'Enabled' || ${viewData>/initialLoad} === 'Auto'}"
|
|
111
138
|
/>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
139
|
+
</template:elseif>
|
|
140
|
+
<template:else>
|
|
141
|
+
<Title
|
|
142
|
+
unittest:id="listReportTitleTest"
|
|
143
|
+
text="{= ${manifest>/sap.app/subTitle} || ${manifest>/sap.app/title} }"
|
|
144
|
+
/>
|
|
145
|
+
</template:else>
|
|
146
|
+
</template:if>
|
|
115
147
|
</template:else>
|
|
116
|
-
</template:if>
|
|
117
|
-
</template:else>
|
|
118
148
|
</template:if>
|
|
119
149
|
</template:with>
|
|
120
150
|
</f:heading>
|
|
@@ -129,21 +159,31 @@
|
|
|
129
159
|
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
130
160
|
id="{= ID.generate(['fe',${headerAction>id}])}"
|
|
131
161
|
text="{headerAction>text}"
|
|
132
|
-
press="{=
|
|
162
|
+
press="{= ${headerAction>command} ? ('cmd:' + ${headerAction>command}) : COMMON.buildActionWrapper(${headerAction>})}"
|
|
133
163
|
type="Transparent"
|
|
134
164
|
visible="{headerAction>visible}"
|
|
135
165
|
enabled="{headerAction>enabled}"
|
|
136
166
|
/>
|
|
137
167
|
</template:repeat>
|
|
138
168
|
</template:if>
|
|
139
|
-
<template:if
|
|
169
|
+
<template:if
|
|
170
|
+
test="{= ${converterContext>/filterLayout} === 'compactvisual' && !${converterContext>hideFilterBar}}"
|
|
171
|
+
>
|
|
140
172
|
<SegmentedButton
|
|
141
173
|
id="{= ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) }"
|
|
142
174
|
selectedKey="{converterContext>/filterInitialLayout}"
|
|
143
175
|
>
|
|
144
176
|
<items>
|
|
145
|
-
<SegmentedButtonItem
|
|
146
|
-
|
|
177
|
+
<SegmentedButtonItem
|
|
178
|
+
tooltip="{sap.fe.i18n>T_SEGMENTED_BUTTON_TOOLTIP_COMPACT}"
|
|
179
|
+
key="compact"
|
|
180
|
+
icon="sap-icon://filter-fields"
|
|
181
|
+
/>
|
|
182
|
+
<SegmentedButtonItem
|
|
183
|
+
tooltip="{sap.fe.i18n>T_SEGMENTED_BUTTON_TOOLTIP_VISUAL}"
|
|
184
|
+
key="visual"
|
|
185
|
+
icon="sap-icon://filter-analytics"
|
|
186
|
+
/>
|
|
147
187
|
</items>
|
|
148
188
|
</SegmentedButton>
|
|
149
189
|
</template:if>
|
|
@@ -153,16 +193,16 @@
|
|
|
153
193
|
</f:title>
|
|
154
194
|
<f:header>
|
|
155
195
|
<template:if test="{= !${converterContext>hideFilterBar} }">
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
196
|
+
<template:then>
|
|
197
|
+
<template:with path="converterContext>filterBar" var="filterBarContext">
|
|
198
|
+
<f:DynamicPageHeader pinnable="{converterContext>showPinnableToggle}">
|
|
199
|
+
<VBox>
|
|
200
|
+
<macroInternal:FilterBar
|
|
161
201
|
unittest:id="listReportFilterBarTest"
|
|
162
202
|
id="{converterContext>filterBarId}"
|
|
163
203
|
_applyIdToContent="true"
|
|
164
204
|
contextPath="{entityType>}"
|
|
165
|
-
variantBackreference="{=
|
|
205
|
+
variantBackreference="{= LR.getVariantBackReference(${viewData>}, ${converterContext>} )}"
|
|
166
206
|
selectionFields="{filterBarContext>selectionFields}"
|
|
167
207
|
propertyInfo="{filterBarContext>propertyInfo}"
|
|
168
208
|
filterChanged=".handlers.onFiltersChanged"
|
|
@@ -176,27 +216,35 @@
|
|
|
176
216
|
suspendSelection="true"
|
|
177
217
|
toggleControlId="{= ${converterContext>/filterLayout} === 'compactvisual' ? ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) : undefined }"
|
|
178
218
|
initialLayout="{= ${converterContext>/filterLayout} === 'compactvisual' ? ${converterContext>/filterInitialLayout} : undefined }"
|
|
179
|
-
|
|
219
|
+
stateChange=".handlers.onStateChange"
|
|
180
220
|
/>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
221
|
+
</VBox>
|
|
222
|
+
</f:DynamicPageHeader>
|
|
223
|
+
</template:with>
|
|
224
|
+
</template:then>
|
|
185
225
|
</template:if>
|
|
186
226
|
</f:header>
|
|
187
227
|
<f:content>
|
|
188
228
|
<template:if test="{= ${converterContext>views}.length > 0}">
|
|
189
229
|
<template:if test="{converterContext>displayMultiVisualizations}">
|
|
190
230
|
<template:then>
|
|
191
|
-
<
|
|
231
|
+
<fragments:MultipleMode />
|
|
192
232
|
</template:then>
|
|
193
|
-
<template:elseif
|
|
233
|
+
<template:elseif
|
|
234
|
+
test="{= ${converterContext>views}.length === 1 && !${converterContext>hasMultiVisualizations} }"
|
|
235
|
+
>
|
|
194
236
|
<template:with path="converterContext>views/0/presentation" var="presentationContext">
|
|
195
|
-
<core:Fragment
|
|
237
|
+
<core:Fragment
|
|
238
|
+
fragmentName="sap.fe.templates.ListReport.view.fragments.CollectionVisualization"
|
|
239
|
+
type="XML"
|
|
240
|
+
/>
|
|
196
241
|
</template:with>
|
|
197
242
|
</template:elseif>
|
|
198
243
|
<template:else>
|
|
199
|
-
<core:Fragment
|
|
244
|
+
<core:Fragment
|
|
245
|
+
fragmentName="sap.fe.templates.ListReport.view.fragments.CollectionVisualization"
|
|
246
|
+
type="XML"
|
|
247
|
+
/>
|
|
200
248
|
</template:else>
|
|
201
249
|
</template:if>
|
|
202
250
|
</template:if>
|