@sapui5/sap.fe.templates 1.104.1 → 1.105.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 +3 -3
- package/src/sap/fe/templates/.library +1 -1
- package/src/sap/fe/templates/AnalyticalListPage/Component.js +2 -2
- package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +1 -1
- package/src/sap/fe/templates/Feedback.js +1 -1
- package/src/sap/fe/templates/ListComponent.js +2 -2
- package/src/sap/fe/templates/ListReport/Component.js +2 -2
- package/src/sap/fe/templates/ListReport/ExtensionAPI.js +5 -3
- package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +2 -1
- package/src/sap/fe/templates/ListReport/ListReport.view.xml +10 -73
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +30 -116
- package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +25 -105
- package/src/sap/fe/templates/ListReport/ListReportTemplating.js +1 -1
- package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.js +166 -62
- package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.ts +129 -41
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +1 -1
- package/src/sap/fe/templates/ListReport/overrides/Share.js +1 -1
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +1 -1
- package/src/sap/fe/templates/ListReport/view/fragments/Chart.fragment.xml +3 -0
- package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +10 -4
- package/src/sap/fe/templates/{controls → ListReport/view/fragments}/MacroChart.fragment.xml +3 -2
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.js +3 -3
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.ts +6 -2
- package/src/sap/fe/templates/{controls → ListReport/view/fragments}/Table.fragment.xml +6 -6
- package/src/sap/fe/templates/ListReport/view/fragments/VariantManagement.fragment.xml +31 -0
- package/src/sap/fe/templates/ObjectPage/Component.js +9 -9
- package/src/sap/fe/templates/ObjectPage/Component.ts +10 -6
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +10 -5
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +6 -2
- package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +48 -143
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +48 -34
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +45 -29
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +15 -3
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +9 -1
- package/src/sap/fe/templates/ObjectPage/components/DraftHandlerButton.js +178 -0
- package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +2 -2
- package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +2 -2
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +2 -2
- package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +1 -1
- package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +1 -1
- package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +1 -1
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +1 -1
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/Share.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/Chart.fragment.xml +13 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPoint.fragment.xml +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +2 -2
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingTitle.fragment.xml +2 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/MacroChart.fragment.xml +22 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +7 -2
- package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +8 -49
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionPresentationVisualization.fragment.xml +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/Table.fragment.xml +23 -0
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +2 -2
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +2 -2
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +2 -2
- package/src/sap/fe/templates/RootContainer/overrides/EditFlow.js +1 -1
- package/src/sap/fe/templates/TableScroller.js +1 -1
- package/src/sap/fe/templates/library.js +2 -2
- package/src/sap/fe/templates/messagebundle_bg.properties +2 -2
- package/src/sap/fe/templates/messagebundle_cy.properties +2 -2
- package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +2 -7
- package/src/sap/fe/templates/messagebundle_lv.properties +2 -2
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleModeOld.fragment.xml +0 -50
- package/src/sap/fe/templates/controls/Chart.fragment.xml +0 -25
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
xmlns:fe="sap.fe.templates.controls"
|
|
11
11
|
xmlns:dt="sap.ui.dt"
|
|
12
12
|
xmlns:macro="sap.fe.macros"
|
|
13
|
+
xmlns:internalMacro="sap.fe.macros.internal"
|
|
13
14
|
controllerName="sap.fe.templates.ObjectPage.ObjectPageController"
|
|
14
15
|
template:require="{
|
|
15
16
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
CONTACT: 'sap/fe/macros/ContactHelper',
|
|
18
19
|
UI: 'sap/fe/core/templating/UIFormatters',
|
|
19
20
|
COMMON: 'sap/fe/macros/CommonHelper',
|
|
20
|
-
COMMONFORMATTERS: 'sap/fe/core/templating/CommonFormatters'
|
|
21
|
+
COMMONFORMATTERS: 'sap/fe/core/templating/CommonFormatters',
|
|
22
|
+
DATAFIELDHELPER : 'sap/fe/core/converters/helpers/DataFieldHelper'
|
|
21
23
|
}"
|
|
22
24
|
>
|
|
23
25
|
<template:with path="entitySet>./" var="entityType">
|
|
@@ -78,147 +80,46 @@
|
|
|
78
80
|
visible="{ui>/isEditable}"
|
|
79
81
|
command="Cancel"
|
|
80
82
|
/>
|
|
81
|
-
<template:
|
|
82
|
-
<template:
|
|
83
|
-
<template:
|
|
84
|
-
<template:
|
|
85
|
-
<template:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/>
|
|
96
|
-
</template:then>
|
|
97
|
-
<template:elseif test="{= ${menuItemAction>type} === 'ForNavigation'}">
|
|
98
|
-
<control:CommandExecution
|
|
99
|
-
execute="{menuItemAction>press}"
|
|
100
|
-
enabled="{menuItemAction>enabled}"
|
|
101
|
-
visible="{menuItemAction>visible}"
|
|
102
|
-
command="{menuItemAction>command}"
|
|
103
|
-
/>
|
|
104
|
-
</template:elseif>
|
|
105
|
-
<template:else>
|
|
106
|
-
<control:CommandExecution
|
|
107
|
-
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
108
|
-
execute="{= COMMON.buildActionWrapper(${menuItemAction>}, ${headerAction>})}"
|
|
109
|
-
visible="{menuItemAction>visible}"
|
|
110
|
-
enabled="{menuItemAction>enabled}"
|
|
111
|
-
command="{menuItemAction>command}"
|
|
112
|
-
/>
|
|
113
|
-
</template:else>
|
|
114
|
-
</template:if>
|
|
115
|
-
</template:with>
|
|
116
|
-
</template:if>
|
|
117
|
-
</template:repeat>
|
|
118
|
-
</template:then>
|
|
119
|
-
<template:elseif test="{headerAction>command}">
|
|
120
|
-
<template:with path="headerAction>annotationPath" var="dataField">
|
|
121
|
-
<template:if test="{= ${headerAction>type} === 'ForNavigation'}">
|
|
122
|
-
<template:then>
|
|
123
|
-
<control:CommandExecution
|
|
124
|
-
execute="{headerAction>press}"
|
|
125
|
-
enabled="{headerAction>enabled}"
|
|
126
|
-
visible="{headerAction>visible}"
|
|
127
|
-
command="{headerAction>command}"
|
|
128
|
-
/>
|
|
129
|
-
</template:then>
|
|
130
|
-
<template:elseif test="{= ${headerAction>type} === 'ForAction'}">
|
|
131
|
-
<template:if
|
|
132
|
-
test="{= ${dataField>$Type} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' && ${dataField>Determining} !== true }"
|
|
133
|
-
>
|
|
134
|
-
<template:with
|
|
135
|
-
path="dataField>Action"
|
|
136
|
-
helper="COMMON.getActionContext"
|
|
137
|
-
var="actionContext"
|
|
138
|
-
>
|
|
139
|
-
<template:with
|
|
140
|
-
path="dataField>Action"
|
|
141
|
-
helper="COMMON.getPathToBoundActionOverload"
|
|
142
|
-
var="isBound"
|
|
143
|
-
>
|
|
144
|
-
<template:if
|
|
145
|
-
test="{= !(${dataField>./@com.sap.vocabularies.UI.v1.Hidden} === true) && (${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false) }"
|
|
146
|
-
>
|
|
147
|
-
<control:CommandExecution
|
|
148
|
-
execute="{= OP.getPressExpressionForEdit(${dataField>}, ${entitySet>@sapui.name}, ${headerAction>}) }"
|
|
149
|
-
enabled="{headerAction>enabled}"
|
|
150
|
-
visible="{headerAction>visible}"
|
|
151
|
-
command="{headerAction>command}"
|
|
152
|
-
/>
|
|
153
|
-
</template:if>
|
|
154
|
-
</template:with>
|
|
155
|
-
</template:with>
|
|
156
|
-
</template:if>
|
|
157
|
-
</template:elseif>
|
|
158
|
-
<template:else>
|
|
159
|
-
<control:CommandExecution
|
|
160
|
-
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
161
|
-
execute="{= COMMON.buildActionWrapper(${headerAction>})}"
|
|
162
|
-
enabled="{headerAction>enabled}"
|
|
163
|
-
visible="{headerAction>visible}"
|
|
164
|
-
command="{headerAction>command}"
|
|
165
|
-
/>
|
|
166
|
-
</template:else>
|
|
167
|
-
</template:if>
|
|
168
|
-
</template:with>
|
|
169
|
-
</template:elseif>
|
|
170
|
-
</template:if>
|
|
171
|
-
</template:repeat>
|
|
172
|
-
</template:if>
|
|
173
|
-
<template:if test="{converterContext>footerActions}">
|
|
174
|
-
<template:repeat list="{converterContext>footerActions}" var="footerAction">
|
|
175
|
-
<template:if test="{footerAction>command}">
|
|
176
|
-
<template:if test="{= ${footerAction>type} === 'ForAction'}">
|
|
177
|
-
<template:then>
|
|
178
|
-
<template:with path="footerAction>annotationPath" var="dataField">
|
|
179
|
-
<template:if test="{= !(${dataField>./@com.sap.vocabularies.UI.v1.Hidden} === true) }">
|
|
180
|
-
<template:if
|
|
181
|
-
test="{= ${dataField>$Type} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' && ${dataField>Determining} === true}"
|
|
182
|
-
>
|
|
183
|
-
<template:with
|
|
184
|
-
path="dataField>Action"
|
|
185
|
-
helper="COMMON.getActionContext"
|
|
186
|
-
var="actionContext"
|
|
187
|
-
>
|
|
188
|
-
<template:with
|
|
189
|
-
path="dataField>Action"
|
|
190
|
-
helper="COMMON.getPathToBoundActionOverload"
|
|
191
|
-
var="isBound"
|
|
192
|
-
>
|
|
193
|
-
<template:if
|
|
194
|
-
test="{= ${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false }"
|
|
195
|
-
>
|
|
196
|
-
<control:CommandExecution
|
|
197
|
-
execute="{= OP.getPressExpressionForFooterAnnotationAction(${dataField>}, ${entitySet>@sapui.name}, ${footerAction>}) }"
|
|
198
|
-
visible="{footerAction>visible}"
|
|
199
|
-
enabled="{footerAction>enabled}"
|
|
200
|
-
command="{footerAction>command}"
|
|
201
|
-
/>
|
|
202
|
-
</template:if>
|
|
203
|
-
</template:with>
|
|
204
|
-
</template:with>
|
|
205
|
-
</template:if>
|
|
206
|
-
</template:if>
|
|
207
|
-
</template:with>
|
|
208
|
-
</template:then>
|
|
209
|
-
<template:elseif test="{= OP.isManifestAction(${footerAction>}) }">
|
|
210
|
-
<control:CommandExecution
|
|
211
|
-
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
212
|
-
execute="{= COMMON.buildActionWrapper(${footerAction>})}"
|
|
213
|
-
visible="{footerAction>visible}"
|
|
214
|
-
enabled="{footerAction>enabled}"
|
|
215
|
-
command="{footerAction>command}"
|
|
83
|
+
<template:repeat list="{converterContext>headerCommandActions}" var="headerAction">
|
|
84
|
+
<template:with path="headerAction>annotationPath" var="dataField">
|
|
85
|
+
<template:with path="dataField>Action" helper="COMMON.getActionContext" var="actionContext">
|
|
86
|
+
<template:with path="dataField>Action" helper="COMMON.getPathToBoundActionOverload" var="isBound">
|
|
87
|
+
<template:if
|
|
88
|
+
test="{= ${headerAction>type} === 'ForAction' ? ((${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false) && ${dataField>Determining} !== true) : true }"
|
|
89
|
+
>
|
|
90
|
+
<internalMacro:ActionCommand
|
|
91
|
+
action="{headerAction>}"
|
|
92
|
+
onExecuteAction="{= OP.getPressExpressionForEdit(${dataField>}, ${entitySet>@sapui.name}, ${headerAction>}) }"
|
|
93
|
+
onExecuteIBN="{headerAction>press}"
|
|
94
|
+
onExecuteManifest="{= COMMON.buildActionWrapper(${headerAction>})}"
|
|
95
|
+
isIBNEnabled="{headerAction>enabled}"
|
|
96
|
+
isActionEnabled="{headerAction>enabled}"
|
|
216
97
|
/>
|
|
217
|
-
</template:
|
|
218
|
-
</template:
|
|
219
|
-
</template:
|
|
220
|
-
</template:
|
|
221
|
-
</template:
|
|
98
|
+
</template:if>
|
|
99
|
+
</template:with>
|
|
100
|
+
</template:with>
|
|
101
|
+
</template:with>
|
|
102
|
+
</template:repeat>
|
|
103
|
+
<template:repeat list="{converterContext>footerCommandActions}" var="footerAction">
|
|
104
|
+
<template:with path="footerAction>annotationPath" var="dataField">
|
|
105
|
+
<template:with path="dataField>Action" helper="COMMON.getActionContext" var="actionContext">
|
|
106
|
+
<template:with path="dataField>Action" helper="COMMON.getPathToBoundActionOverload" var="isBound">
|
|
107
|
+
<template:if
|
|
108
|
+
test="{= ${footerAction>type} === 'ForAction' ? ((${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false) && ${dataField>Determining} === true) : true }"
|
|
109
|
+
>
|
|
110
|
+
<internalMacro:ActionCommand
|
|
111
|
+
action="{footerAction>}"
|
|
112
|
+
onExecuteAction="{= OP.getPressExpressionForFooterAnnotationAction(${dataField>}, ${entitySet>@sapui.name}, ${footerAction>}) }"
|
|
113
|
+
onExecuteIBN="{footerAction>press}"
|
|
114
|
+
onExecuteManifest="{= COMMON.buildActionWrapper(${footerAction>})}"
|
|
115
|
+
isIBNEnabled="{footerAction>enabled}"
|
|
116
|
+
isActionEnabled="{footerAction>enabled}"
|
|
117
|
+
/>
|
|
118
|
+
</template:if>
|
|
119
|
+
</template:with>
|
|
120
|
+
</template:with>
|
|
121
|
+
</template:with>
|
|
122
|
+
</template:repeat>
|
|
222
123
|
</uxap:dependents>
|
|
223
124
|
<template:if test="{converterContext>header/visible}">
|
|
224
125
|
<template:with path="converterContext>header" var="header">
|
|
@@ -227,7 +128,9 @@
|
|
|
227
128
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.Heading" type="XML" />
|
|
228
129
|
<uxap:expandedContent>
|
|
229
130
|
<FlexBox>
|
|
230
|
-
<template:if
|
|
131
|
+
<template:if
|
|
132
|
+
test="{= !DATAFIELDHELPER.isReferencePropertyStaticallyHidden(${headerInfo>Description@@UI.getDataModelObjectPath})}"
|
|
133
|
+
>
|
|
231
134
|
<Label
|
|
232
135
|
text="{= OP.getExpressionForDescription(${headerInfo>@@UI.getConverterContext}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
233
136
|
wrapping="true"
|
|
@@ -237,7 +140,9 @@
|
|
|
237
140
|
</uxap:expandedContent>
|
|
238
141
|
<uxap:snappedContent>
|
|
239
142
|
<FlexBox>
|
|
240
|
-
<template:if
|
|
143
|
+
<template:if
|
|
144
|
+
test="{= !DATAFIELDHELPER.isReferencePropertyStaticallyHidden(${headerInfo>Description@@UI.getDataModelObjectPath})}"
|
|
145
|
+
>
|
|
241
146
|
<Label
|
|
242
147
|
text="{= OP.getExpressionForDescription(${headerInfo>@@UI.getConverterContext}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
243
148
|
wrapping="true"
|