@sapui5/sap.fe.templates 1.101.0 → 1.102.1
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
|
@@ -92,7 +92,11 @@ const ViewStateOverride: any = {
|
|
|
92
92
|
}
|
|
93
93
|
aStateControls.push(oTable);
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
if (oController._getControls("Chart")) {
|
|
96
|
+
oController._getControls("Chart").forEach(function (oChart: any) {
|
|
97
|
+
aStateControls.push(oChart);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
96
100
|
if (oController._hasMultiVisualizations()) {
|
|
97
101
|
aStateControls.push(oController._getSegmentedButton(TemplateContentView.Chart));
|
|
98
102
|
aStateControls.push(oController._getSegmentedButton(TemplateContentView.Table));
|
|
@@ -175,6 +179,8 @@ const ViewStateOverride: any = {
|
|
|
175
179
|
} else {
|
|
176
180
|
bPreventInitialSearch = this._preventInitialSearch(oFilterBarVM);
|
|
177
181
|
}
|
|
182
|
+
// reset the suspend selection on filter bar to allow loading of data when needed (was set on LR Init)
|
|
183
|
+
oFilterBarControl.setSuspendSelection(false);
|
|
178
184
|
this._bSearchTriggered = !bPreventInitialSearch;
|
|
179
185
|
oDynamicPage.setHeaderExpanded(system.desktop || bPreventInitialSearch);
|
|
180
186
|
}
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
controllerName="sap.fe.templates.ObjectPage.ObjectPageController"
|
|
14
14
|
template:require="{
|
|
15
15
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
16
|
-
OP: 'sap/fe/templates/ObjectPage/
|
|
16
|
+
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
17
17
|
CONTACT: 'sap/fe/macros/ContactHelper',
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
UI: 'sap/fe/core/templating/UIFormatters',
|
|
19
|
+
COMMON: 'sap/fe/macros/CommonHelper'
|
|
20
20
|
}"
|
|
21
21
|
>
|
|
22
22
|
<template:with path="entitySet>./" var="entityType">
|
|
23
23
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
24
|
-
|
|
24
|
+
<!-- OPLayout binding contains explicit $select for SAP__Messages or the path from @Common.Messages until model provides an alternative.
|
|
25
25
|
This is to enable side effects to request messages. -->
|
|
26
26
|
<uxap:ObjectPageLayout
|
|
27
27
|
id="fe::ObjectPage"
|
|
@@ -67,12 +67,157 @@
|
|
|
67
67
|
enabled="{= OP.getDeleteCommandExecutionEnabled(${converterContext>header/actions}) }"
|
|
68
68
|
command="DeleteObject"
|
|
69
69
|
/>
|
|
70
|
-
<control:CommandExecution
|
|
70
|
+
<control:CommandExecution
|
|
71
|
+
execute="._saveDocument(${$view>/getBindingContext})"
|
|
72
|
+
visible="{ui>/isEditable}"
|
|
73
|
+
command="Save"
|
|
74
|
+
/>
|
|
71
75
|
<control:CommandExecution
|
|
72
76
|
execute="._cancelDocument(${$view>/getBindingContext},{cancelButton:'fe::FooterBar::StandardAction::Cancel'})"
|
|
73
77
|
visible="{ui>/isEditable}"
|
|
74
78
|
command="Cancel"
|
|
75
79
|
/>
|
|
80
|
+
<template:if test="{converterContext>header/actions}">
|
|
81
|
+
<template:repeat list="{converterContext>header/actions}" var="headerAction">
|
|
82
|
+
<template:if test="{= ${headerAction>type} === 'Menu' }">
|
|
83
|
+
<template:then>
|
|
84
|
+
<template:repeat list="{headerAction>menu}" var="menuItemAction">
|
|
85
|
+
<template:if test="{menuItemAction>command}">
|
|
86
|
+
<template:with path="menuItemAction>annotationPath" var="dataField">
|
|
87
|
+
<template:if test="{= ${menuItemAction>type} === 'ForAction'}">
|
|
88
|
+
<template:then>
|
|
89
|
+
<control:CommandExecution
|
|
90
|
+
execute="{= OP.getPressExpressionForEdit(${dataField>}, ${entitySet>@sapui.name}, ${headerAction>}) }"
|
|
91
|
+
enabled="{menuItemAction>enabled}"
|
|
92
|
+
visible="{menuItemAction>visible}"
|
|
93
|
+
command="{menuItemAction>command}"
|
|
94
|
+
/>
|
|
95
|
+
</template:then>
|
|
96
|
+
<template:elseif test="{= ${menuItemAction>type} === 'ForNavigation'}">
|
|
97
|
+
<control:CommandExecution
|
|
98
|
+
execute="{menuItemAction>press}"
|
|
99
|
+
enabled="{menuItemAction>enabled}"
|
|
100
|
+
visible="{menuItemAction>visible}"
|
|
101
|
+
command="{menuItemAction>command}"
|
|
102
|
+
/>
|
|
103
|
+
</template:elseif>
|
|
104
|
+
<template:else>
|
|
105
|
+
<control:CommandExecution
|
|
106
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
107
|
+
execute="{= COMMON.buildActionWrapper(${menuItemAction>}, ${headerAction>})}"
|
|
108
|
+
visible="{menuItemAction>visible}"
|
|
109
|
+
enabled="{menuItemAction>enabled}"
|
|
110
|
+
command="{menuItemAction>command}"
|
|
111
|
+
/>
|
|
112
|
+
</template:else>
|
|
113
|
+
</template:if>
|
|
114
|
+
</template:with>
|
|
115
|
+
</template:if>
|
|
116
|
+
</template:repeat>
|
|
117
|
+
</template:then>
|
|
118
|
+
<template:elseif test="{headerAction>command}">
|
|
119
|
+
<template:with path="headerAction>annotationPath" var="dataField">
|
|
120
|
+
<template:if test="{= ${headerAction>type} === 'ForNavigation'}">
|
|
121
|
+
<template:then>
|
|
122
|
+
<control:CommandExecution
|
|
123
|
+
execute="{headerAction>press}"
|
|
124
|
+
enabled="{headerAction>enabled}"
|
|
125
|
+
visible="{headerAction>visible}"
|
|
126
|
+
command="{headerAction>command}"
|
|
127
|
+
/>
|
|
128
|
+
</template:then>
|
|
129
|
+
<template:elseif test="{= ${headerAction>type} === 'ForAction'}">
|
|
130
|
+
<template:if
|
|
131
|
+
test="{= ${dataField>$Type} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' && ${dataField>Determining} !== true }"
|
|
132
|
+
>
|
|
133
|
+
<template:with
|
|
134
|
+
path="dataField>Action"
|
|
135
|
+
helper="COMMON.getActionContext"
|
|
136
|
+
var="actionContext"
|
|
137
|
+
>
|
|
138
|
+
<template:with
|
|
139
|
+
path="dataField>Action"
|
|
140
|
+
helper="COMMON.getPathToBoundActionOverload"
|
|
141
|
+
var="isBound"
|
|
142
|
+
>
|
|
143
|
+
<template:if
|
|
144
|
+
test="{= !(${dataField>./@com.sap.vocabularies.UI.v1.Hidden} === true) && (${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false) }"
|
|
145
|
+
>
|
|
146
|
+
<control:CommandExecution
|
|
147
|
+
execute="{= OP.getPressExpressionForEdit(${dataField>}, ${entitySet>@sapui.name}, ${headerAction>}) }"
|
|
148
|
+
enabled="{headerAction>enabled}"
|
|
149
|
+
visible="{headerAction>visible}"
|
|
150
|
+
command="{headerAction>command}"
|
|
151
|
+
/>
|
|
152
|
+
</template:if>
|
|
153
|
+
</template:with>
|
|
154
|
+
</template:with>
|
|
155
|
+
</template:if>
|
|
156
|
+
</template:elseif>
|
|
157
|
+
<template:else>
|
|
158
|
+
<control:CommandExecution
|
|
159
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
160
|
+
execute="{= COMMON.buildActionWrapper(${headerAction>})}"
|
|
161
|
+
enabled="{headerAction>enabled}"
|
|
162
|
+
visible="{headerAction>visible}"
|
|
163
|
+
command="{headerAction>command}"
|
|
164
|
+
/>
|
|
165
|
+
</template:else>
|
|
166
|
+
</template:if>
|
|
167
|
+
</template:with>
|
|
168
|
+
</template:elseif>
|
|
169
|
+
</template:if>
|
|
170
|
+
</template:repeat>
|
|
171
|
+
</template:if>
|
|
172
|
+
<template:if test="{converterContext>footerActions}">
|
|
173
|
+
<template:repeat list="{converterContext>footerActions}" var="footerAction">
|
|
174
|
+
<template:if test="{footerAction>command}">
|
|
175
|
+
<template:if test="{= ${footerAction>type} === 'ForAction'}">
|
|
176
|
+
<template:then>
|
|
177
|
+
<template:with path="footerAction>annotationPath" var="dataField">
|
|
178
|
+
<template:if test="{= !(${dataField>./@com.sap.vocabularies.UI.v1.Hidden} === true) }">
|
|
179
|
+
<template:if
|
|
180
|
+
test="{= ${dataField>$Type} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' && ${dataField>Determining} === true}"
|
|
181
|
+
>
|
|
182
|
+
<template:with
|
|
183
|
+
path="dataField>Action"
|
|
184
|
+
helper="COMMON.getActionContext"
|
|
185
|
+
var="actionContext"
|
|
186
|
+
>
|
|
187
|
+
<template:with
|
|
188
|
+
path="dataField>Action"
|
|
189
|
+
helper="COMMON.getPathToBoundActionOverload"
|
|
190
|
+
var="isBound"
|
|
191
|
+
>
|
|
192
|
+
<template:if
|
|
193
|
+
test="{= ${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false }"
|
|
194
|
+
>
|
|
195
|
+
<control:CommandExecution
|
|
196
|
+
execute="{= OP.getPressExpressionForFooterAnnotationAction(${dataField>}, ${entitySet>@sapui.name}, ${footerAction>}) }"
|
|
197
|
+
visible="{footerAction>visible}"
|
|
198
|
+
enabled="{footerAction>enabled}"
|
|
199
|
+
command="{footerAction>command}"
|
|
200
|
+
/>
|
|
201
|
+
</template:if>
|
|
202
|
+
</template:with>
|
|
203
|
+
</template:with>
|
|
204
|
+
</template:if>
|
|
205
|
+
</template:if>
|
|
206
|
+
</template:with>
|
|
207
|
+
</template:then>
|
|
208
|
+
<template:elseif test="{= OP.isManifestAction(${footerAction>}) }">
|
|
209
|
+
<control:CommandExecution
|
|
210
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
211
|
+
execute="{= COMMON.buildActionWrapper(${footerAction>})}"
|
|
212
|
+
visible="{footerAction>visible}"
|
|
213
|
+
enabled="{footerAction>enabled}"
|
|
214
|
+
command="{footerAction>command}"
|
|
215
|
+
/>
|
|
216
|
+
</template:elseif>
|
|
217
|
+
</template:if>
|
|
218
|
+
</template:if>
|
|
219
|
+
</template:repeat>
|
|
220
|
+
</template:if>
|
|
76
221
|
</uxap:dependents>
|
|
77
222
|
<template:if test="{converterContext>header/visible}">
|
|
78
223
|
<template:with path="converterContext>header" var="header">
|
|
@@ -80,20 +225,20 @@
|
|
|
80
225
|
<uxap:ObjectPageDynamicHeaderTitle primaryArea="Begin" areaShrinkRatio="0:0:1">
|
|
81
226
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.Heading" type="XML" />
|
|
82
227
|
<uxap:expandedContent>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
text="{=
|
|
228
|
+
<FlexBox>
|
|
229
|
+
<template:if test="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description}">
|
|
230
|
+
<Label
|
|
231
|
+
text="{= OP.getExpressionForDescription(${headerInfo>@@UI.getConverterContext}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
87
232
|
wrapping="true"
|
|
88
233
|
/>
|
|
89
|
-
|
|
90
|
-
|
|
234
|
+
</template:if>
|
|
235
|
+
</FlexBox>
|
|
91
236
|
</uxap:expandedContent>
|
|
92
237
|
<uxap:snappedContent>
|
|
93
238
|
<FlexBox>
|
|
94
239
|
<template:if test="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description}">
|
|
95
240
|
<Label
|
|
96
|
-
text="{=
|
|
241
|
+
text="{= OP.getExpressionForDescription(${headerInfo>@@UI.getConverterContext}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
97
242
|
wrapping="true"
|
|
98
243
|
/>
|
|
99
244
|
</template:if>
|
|
@@ -101,11 +246,13 @@
|
|
|
101
246
|
</uxap:snappedContent>
|
|
102
247
|
<uxap:content>
|
|
103
248
|
<template:if test="{entitySet>@com.sap.vocabularies.Common.v1.DraftRoot}">
|
|
104
|
-
<macro:DraftIndicator
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
249
|
+
<macro:DraftIndicator
|
|
250
|
+
DraftIndicatorType="IconOnly"
|
|
251
|
+
class="sapUiTinyMarginBegin sapMTB sapMTBNewFlex"
|
|
252
|
+
entitySet="{entitySet>}"
|
|
253
|
+
/>
|
|
108
254
|
</template:if>
|
|
255
|
+
<SituationsIndicator xmlns="sap.fe.macros.internal.situations" entitySet="{entitySet>}" />
|
|
109
256
|
</uxap:content>
|
|
110
257
|
<uxap:navigationActions>
|
|
111
258
|
<template:if test="{= ${viewData>/viewLevel} > 1}">
|
|
@@ -125,8 +272,7 @@
|
|
|
125
272
|
visible="{= OP.getVisibleExpressionForBreadcrumbs(${viewData>/}) }"
|
|
126
273
|
modelContextChange="._setBreadcrumbLinks(${$source>/})"
|
|
127
274
|
id="fe::Breadcrumbs"
|
|
128
|
-
|
|
129
|
-
</Breadcrumbs>
|
|
275
|
+
/>
|
|
130
276
|
</uxap:breadcrumbs>
|
|
131
277
|
</uxap:ObjectPageDynamicHeaderTitle>
|
|
132
278
|
</uxap:headerTitle>
|