@sapui5/sap.fe.templates 1.103.0 → 1.106.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 +5 -6
- 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 +2 -2
- package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.ts +1 -1
- package/src/sap/fe/templates/Feedback.js +1 -1
- package/src/sap/fe/templates/Feedback.ts +0 -3
- 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 +12 -86
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +90 -429
- package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +81 -392
- package/src/sap/fe/templates/ListReport/ListReportTemplating.js +1 -1
- package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.js +459 -0
- package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.ts +338 -0
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +16 -9
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.ts +15 -9
- package/src/sap/fe/templates/ListReport/overrides/Share.js +4 -12
- package/src/sap/fe/templates/ListReport/overrides/Share.ts +4 -12
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +23 -31
- package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +27 -31
- package/src/sap/fe/templates/ListReport/view/fragments/Chart.fragment.xml +3 -0
- package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +16 -5
- 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 +20 -4
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.ts +80 -48
- 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 +25 -12
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +18 -5
- package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +60 -151
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +195 -140
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +103 -93
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +52 -22
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +46 -25
- package/src/sap/fe/templates/ObjectPage/components/DraftHandlerButton.js +178 -0
- package/src/sap/fe/templates/ObjectPage/components/DraftHandlerButton.tsx +132 -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/IntentBasedNavigation.ts +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 +55 -29
- package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +28 -29
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +62 -62
- package/src/sap/fe/templates/ObjectPage/view/fragments/Chart.fragment.xml +13 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +10 -8
- package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/FormActionButtons.fragment.xml +5 -1
- 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 +11 -6
- 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 +5 -5
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.ts +3 -3
- 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 +4 -3
- package/src/sap/fe/templates/library.ts +2 -0
- package/src/sap/fe/templates/messagebundle.properties +2 -5
- package/src/sap/fe/templates/messagebundle_ar.properties +3 -12
- package/src/sap/fe/templates/messagebundle_bg.properties +2 -11
- package/src/sap/fe/templates/messagebundle_ca.properties +2 -11
- package/src/sap/fe/templates/messagebundle_cs.properties +3 -12
- package/src/sap/fe/templates/messagebundle_cy.properties +2 -11
- package/src/sap/fe/templates/messagebundle_da.properties +3 -12
- package/src/sap/fe/templates/messagebundle_de.properties +2 -11
- package/src/sap/fe/templates/messagebundle_el.properties +2 -11
- package/src/sap/fe/templates/messagebundle_en.properties +2 -11
- package/src/sap/fe/templates/messagebundle_en_GB.properties +2 -11
- package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +2 -11
- package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +2 -11
- package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +2 -11
- package/src/sap/fe/templates/messagebundle_es.properties +0 -9
- package/src/sap/fe/templates/messagebundle_es_MX.properties +2 -11
- package/src/sap/fe/templates/messagebundle_et.properties +0 -9
- package/src/sap/fe/templates/messagebundle_fi.properties +2 -11
- package/src/sap/fe/templates/messagebundle_fr.properties +3 -12
- package/src/sap/fe/templates/messagebundle_fr_CA.properties +2 -11
- package/src/sap/fe/templates/messagebundle_hi.properties +2 -11
- package/src/sap/fe/templates/messagebundle_hr.properties +2 -11
- package/src/sap/fe/templates/messagebundle_hu.properties +2 -11
- package/src/sap/fe/templates/messagebundle_id.properties +2 -11
- package/src/sap/fe/templates/messagebundle_it.properties +2 -11
- package/src/sap/fe/templates/messagebundle_iw.properties +2 -11
- package/src/sap/fe/templates/messagebundle_ja.properties +2 -11
- package/src/sap/fe/templates/messagebundle_kk.properties +2 -11
- package/src/sap/fe/templates/messagebundle_ko.properties +2 -11
- package/src/sap/fe/templates/messagebundle_lt.properties +2 -11
- package/src/sap/fe/templates/messagebundle_lv.properties +2 -11
- package/src/sap/fe/templates/messagebundle_ms.properties +2 -11
- package/src/sap/fe/templates/messagebundle_nl.properties +2 -11
- package/src/sap/fe/templates/messagebundle_no.properties +0 -9
- package/src/sap/fe/templates/messagebundle_pl.properties +0 -9
- package/src/sap/fe/templates/messagebundle_pt.properties +2 -11
- package/src/sap/fe/templates/messagebundle_pt_PT.properties +2 -11
- package/src/sap/fe/templates/messagebundle_ro.properties +0 -9
- package/src/sap/fe/templates/messagebundle_ru.properties +2 -11
- package/src/sap/fe/templates/messagebundle_sh.properties +2 -11
- package/src/sap/fe/templates/messagebundle_sk.properties +2 -11
- package/src/sap/fe/templates/messagebundle_sl.properties +2 -11
- package/src/sap/fe/templates/messagebundle_sv.properties +2 -11
- package/src/sap/fe/templates/messagebundle_th.properties +1 -10
- package/src/sap/fe/templates/messagebundle_tr.properties +2 -11
- package/src/sap/fe/templates/messagebundle_uk.properties +2 -11
- package/src/sap/fe/templates/messagebundle_vi.properties +0 -9
- package/src/sap/fe/templates/messagebundle_zh_CN.properties +0 -9
- package/src/sap/fe/templates/messagebundle_zh_TW.properties +2 -11
- package/src/sap/fe/templates/ListReport/view/fragments/MultipleModeOld.fragment.xml +0 -50
- package/src/sap/fe/templates/ObjectPage/handler/DraftHandler.js +0 -103
- package/src/sap/fe/templates/ObjectPage/handler/DraftHandler.ts +0 -97
- package/src/sap/fe/templates/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +0 -27
- package/src/sap/fe/templates/controls/Chart.fragment.xml +0 -25
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
xmlns="sap.m"
|
|
6
6
|
xmlns:core="sap.ui.core"
|
|
7
7
|
xmlns:macro="sap.fe.macros.internal"
|
|
8
|
+
xmlns:components="sap.fe.templates.ObjectPage.components"
|
|
8
9
|
template:require="{
|
|
9
10
|
ID: 'sap/fe/core/helpers/StableIdHelper',
|
|
10
11
|
OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
|
|
@@ -12,80 +13,79 @@
|
|
|
12
13
|
UI: 'sap/fe/core/templating/UIFormatters',
|
|
13
14
|
CRIT: 'sap/fe/core/templating/CriticalityFormatters',
|
|
14
15
|
COMMON: 'sap/fe/macros/CommonHelper',
|
|
15
|
-
FIELD: 'sap/fe/macros/field/FieldHelper'
|
|
16
|
+
FIELD: 'sap/fe/macros/field/FieldHelper',
|
|
17
|
+
DEFAULTACTIONHANDLER: 'sap/fe/macros/internal/helpers/DefaultActionHandler'
|
|
16
18
|
}"
|
|
17
19
|
>
|
|
18
20
|
<template:if test="{converterContext>header/actions}">
|
|
19
21
|
<template:repeat list="{converterContext>header/actions}" var="headerAction">
|
|
20
22
|
<template:if test="{= ${headerAction>type} === 'DraftActions' && OP.checkDraftState(${entitySet>@}) }">
|
|
21
23
|
<template:then>
|
|
22
|
-
<
|
|
23
|
-
text="{sap.fe.i18n>T_HEADER_DATAPOINT_TITLE_DRAFT_SWITCHER_ARIA_BUTTON}"
|
|
24
|
-
id="fe::StandardAction::SwitchDraftAndActiveObject::AriaTextDraftSwitcher"
|
|
25
|
-
/>
|
|
26
|
-
<Button
|
|
27
|
-
id="fe::StandardAction::SwitchDraftAndActiveObject"
|
|
28
|
-
text="{= ( !(${ui>/editMode} === 'Editable') && !${ui>createMode} && ${HasDraftEntity} ) ? ${sap.fe.i18n>C_COMMON_OBJECT_PAGE_SAVED_VERSION_BUT} : ${sap.fe.i18n>C_COMMON_OBJECT_PAGE_DRAFT_BUT} }"
|
|
29
|
-
visible="{= OP.getSwitchDraftAndActiveVisibility(${entitySet>@}) }"
|
|
30
|
-
icon="sap-icon://navigation-down-arrow"
|
|
31
|
-
iconFirst="false"
|
|
32
|
-
type="Transparent"
|
|
33
|
-
press="._showSwitchDraftAndActivePopover($event)"
|
|
34
|
-
ariaDescribedBy="fe::StandardAction::SwitchDraftAndActiveObject::AriaTextDraftSwitcher"
|
|
35
|
-
/>
|
|
24
|
+
<components:DraftHandlerButton contextPath="{entitySet>}" id="fe::StandardAction::SwitchDraftAndActiveObject" />
|
|
36
25
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.CollaborationDraft" type="XML" />
|
|
37
26
|
<ToolbarSpacer />
|
|
38
27
|
</template:then>
|
|
39
28
|
<template:elseif test="{= OP.isManifestAction(${headerAction>}) }">
|
|
40
29
|
<template:if test="{= ${headerAction>type} === 'Menu'}">
|
|
41
30
|
<template:then>
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
31
|
+
<template:with path="headerAction>defaultAction/annotationPath" var="dataFieldForDefaultAction">
|
|
32
|
+
<template:with
|
|
33
|
+
path="dataFieldForDefaultAction>Action"
|
|
34
|
+
helper="COMMON.getActionContext"
|
|
35
|
+
var="defaultActionContext"
|
|
36
|
+
>
|
|
37
|
+
<MenuButton
|
|
38
|
+
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
39
|
+
text="{headerAction>text}"
|
|
40
|
+
menuPosition="BeginBottom"
|
|
41
|
+
id="{= ID.generate(['fe',${headerAction>id}])}"
|
|
42
|
+
visible="{headerAction>visible}"
|
|
43
|
+
enabled="{headerAction>enabled}"
|
|
44
|
+
useDefaultActionOnly="{= DEFAULTACTIONHANDLER.getUseDefaultActionOnly(${headerAction>})}"
|
|
45
|
+
buttonMode="{= DEFAULTACTIONHANDLER.getButtonMode(${headerAction>})}"
|
|
46
|
+
defaultAction="{= DEFAULTACTIONHANDLER.getDefaultActionHandler(${converterContext>header}, ${headerAction>}, ${dataFieldForDefaultAction>}, ${entitySet>@sapui.name}, 'ObjectPage')}"
|
|
47
|
+
>
|
|
48
|
+
<menu>
|
|
49
|
+
<Menu>
|
|
50
|
+
<template:repeat list="{headerAction>menu}" var="menuItemAction">
|
|
51
|
+
<template:with path="menuItemAction>annotationPath" var="dataField">
|
|
52
|
+
<template:if test="{= ${menuItemAction>type} === 'ForAction'}">
|
|
53
|
+
<template:then>
|
|
54
|
+
<MenuItem
|
|
55
|
+
id="{= ID.generate(['fe', ${dataField>}]) }"
|
|
56
|
+
text="{dataField>Label}"
|
|
57
|
+
press="{= ${menuItemAction>command} ? ('cmd:' + ${menuItemAction>command}) : OP.getPressExpressionForEdit(${dataField>}, ${entitySet>@sapui.name}, ${headerAction>}) }"
|
|
58
|
+
visible="{menuItemAction>visible}"
|
|
59
|
+
enabled="{menuItemAction>enabled}"
|
|
60
|
+
/>
|
|
61
|
+
</template:then>
|
|
62
|
+
<template:elseif test="{= ${menuItemAction>type} === 'ForNavigation'}">
|
|
63
|
+
<MenuItem
|
|
64
|
+
id="{= ID.generate(['fe', ${dataField>}]) }"
|
|
65
|
+
text="{dataField>Label}"
|
|
66
|
+
press="{= ${menuItemAction>command} ? ('cmd:' + ${menuItemAction>command}) : ${menuItemAction>press}}"
|
|
67
|
+
enabled="{menuItemAction>enabled}"
|
|
68
|
+
visible="{menuItemAction>visible}"
|
|
69
|
+
macrodata:IBNData="{menuItemAction>customData}"
|
|
70
|
+
/>
|
|
71
|
+
</template:elseif>
|
|
72
|
+
<template:else>
|
|
73
|
+
<MenuItem
|
|
74
|
+
id="{= ID.generate(['fe',${menuItemAction>id}])}"
|
|
75
|
+
text="{menuItemAction>text}"
|
|
76
|
+
press="{= ${menuItemAction>command} ? ('cmd:' + ${menuItemAction>command}) : COMMON.buildActionWrapper(${menuItemAction>}, ${headerAction>})}"
|
|
77
|
+
visible="{menuItemAction>visible}"
|
|
78
|
+
enabled="{menuItemAction>enabled}"
|
|
79
|
+
/>
|
|
80
|
+
</template:else>
|
|
81
|
+
</template:if>
|
|
82
|
+
</template:with>
|
|
83
|
+
</template:repeat>
|
|
84
|
+
</Menu>
|
|
85
|
+
</menu>
|
|
86
|
+
</MenuButton>
|
|
87
|
+
</template:with>
|
|
88
|
+
</template:with>
|
|
89
89
|
</template:then>
|
|
90
90
|
<template:else>
|
|
91
91
|
<Button
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
+
<VBox fitContainer="true" alignItems="Stretch" alignContent="Stretch" justifyContent="Start" renderType="Div">
|
|
3
|
+
<MessageStrip
|
|
4
|
+
text="{sap.fe.i18n>C_MULTIVIZ_CHART_IGNORED_FILTER_DRAFT_DATA}"
|
|
5
|
+
type="Information"
|
|
6
|
+
showIcon="true"
|
|
7
|
+
showCloseButton="true"
|
|
8
|
+
class="sapUiSmallMargin"
|
|
9
|
+
visible="{='{= ${internal>controls/showMessageStrip/' + (${visualizationDefinition>entityName}) + (${visualizationDefinition>type}) + '} }' }"
|
|
10
|
+
/>
|
|
11
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.MacroChart" type="XML" />
|
|
12
|
+
</VBox>
|
|
13
|
+
</core:FragmentDefinition>
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
>
|
|
22
22
|
<f:Form
|
|
23
23
|
fl:delegate='{
|
|
24
|
-
"name": "sap/fe/macros/
|
|
25
|
-
"delegateType": "
|
|
24
|
+
"name": "sap/fe/macros/form/FormDelegate",
|
|
25
|
+
"delegateType": "complete"
|
|
26
26
|
}'
|
|
27
27
|
id="fe::EditableHeaderForm"
|
|
28
28
|
editable="true"
|
|
29
29
|
class="sapUxAPObjectPageSubSectionAlignContent"
|
|
30
|
-
formdata:navigationPath="{=
|
|
30
|
+
formdata:navigationPath="{= COMMON.getNavigationPath(${entitySet>}, true) }"
|
|
31
31
|
formdata:entitySet="{entitySet>@sapui.name}"
|
|
32
32
|
>
|
|
33
33
|
<f:layout>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<f:FormContainer
|
|
38
38
|
unittest:id="HeaderInfoFormContainerTest"
|
|
39
39
|
id="fe::EditableHeaderForm::EditableHeaderInfo"
|
|
40
|
-
visible="{= OP.
|
|
40
|
+
visible="{= OP.getVisiblityOfHeaderInfo(${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value/$Path@},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description/Value/$Path@},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value/$Path@@FIELD.fieldControl},${entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description/Value/$Path@@FIELD.fieldControl}) }"
|
|
41
41
|
>
|
|
42
42
|
<f:title>
|
|
43
43
|
<core:Title level="H4" text="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}" />
|
|
@@ -111,11 +111,12 @@
|
|
|
111
111
|
<template:with path="formContainer>entitySet" var="targetEntitySet">
|
|
112
112
|
<macro:FormContainer
|
|
113
113
|
id="{= ${formContainer>id} ? ID.generate(['fe', 'HeaderFacet', 'FormContainer', ${formContainer>id} ]) : undefined }"
|
|
114
|
-
designtimeSettings="{= ${subSection>flexSettings/designtime} === 'Default' ? 'sap/fe/macros/FormContainer.designtime' : ${subSection>flexSettings/designtime}}"
|
|
114
|
+
designtimeSettings="{= ${subSection>flexSettings/designtime} === 'Default' ? 'sap/fe/macros/form/FormContainer.designtime' : ${subSection>flexSettings/designtime}}"
|
|
115
115
|
title="{facet>@@MODEL.label}"
|
|
116
116
|
titleLevel="H4"
|
|
117
117
|
displayMode="Edit"
|
|
118
|
-
|
|
118
|
+
contextPath="{targetEntitySet>}"
|
|
119
|
+
metaPath="{formContainer>annotationPath}"
|
|
119
120
|
navigationPath="{= MODEL.getNavigationPath(${facet>Target/$AnnotationPath}) ? MODEL.getNavigationPath(${facet>Target/$AnnotationPath}) : ''}"
|
|
120
121
|
dataFieldCollection="{formContainer>formElements}"
|
|
121
122
|
visible="{subSection>visible}"
|
|
@@ -125,11 +126,12 @@
|
|
|
125
126
|
<template:else>
|
|
126
127
|
<macro:FormContainer
|
|
127
128
|
id="{= ${formContainer>id} ? ID.generate(['fe', 'HeaderFacet', 'FormContainer', ${formContainer>id} ]) : undefined }"
|
|
128
|
-
designtimeSettings="{= ${subSection>flexSettings/designtime} === 'Default' ? 'sap/fe/macros/FormContainer.designtime' : ${subSection>flexSettings/designtime}}"
|
|
129
|
+
designtimeSettings="{= ${subSection>flexSettings/designtime} === 'Default' ? 'sap/fe/macros/form/FormContainer.designtime' : ${subSection>flexSettings/designtime}}"
|
|
129
130
|
title="{facet>@@MODEL.label}"
|
|
130
131
|
titleLevel="H4"
|
|
131
132
|
displayMode="Edit"
|
|
132
|
-
|
|
133
|
+
contextPath="{entitySet>}"
|
|
134
|
+
metaPath="{formContainer>annotationPath}"
|
|
133
135
|
dataFieldCollection="{formContainer>formElements}"
|
|
134
136
|
visible="{subSection>visible}"
|
|
135
137
|
/>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
test="{= ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot} || ${entitySet>@com.sap.vocabularies.Common.v1.DraftNode}
|
|
36
36
|
|| COMMON.isDraftParentEntityForContainment(${entitySet>$ContainsTarget}, undefined, ${converterContext>}) }"
|
|
37
37
|
>
|
|
38
|
-
<DraftIndicator state="{ui>/draftStatus}" />
|
|
38
|
+
<DraftIndicator state="{ui>/draftStatus}" visible="{ui>/isEditable}" />
|
|
39
39
|
</template:if>
|
|
40
40
|
<template:if test="{converterContext>footerActions}">
|
|
41
41
|
<template:repeat list="{converterContext>footerActions}" var="footerAction">
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
xmlns:core="sap.ui.core"
|
|
6
6
|
template:require="{
|
|
7
7
|
ID: 'sap/fe/core/helpers/StableIdHelper',
|
|
8
|
-
COMMON: 'sap/fe/macros/CommonHelper'
|
|
8
|
+
COMMON: 'sap/fe/macros/CommonHelper',
|
|
9
|
+
DEFAULTACTIONHANDLER: 'sap/fe/macros/internal/helpers/DefaultActionHandler'
|
|
9
10
|
}"
|
|
10
11
|
>
|
|
11
12
|
<template:if test="{= ${action>type} === 'Menu'}">
|
|
@@ -17,6 +18,9 @@
|
|
|
17
18
|
visible="{= COMMON.handleVisibilityOfMenuActions(${action>visible}) }"
|
|
18
19
|
enabled="{action>enabled}"
|
|
19
20
|
class="sapUiSmallMarginBegin"
|
|
21
|
+
useDefaultActionOnly="{= DEFAULTACTIONHANDLER.getUseDefaultActionOnly(${action>})}"
|
|
22
|
+
buttonMode="{= DEFAULTACTIONHANDLER.getButtonMode(${action>})}"
|
|
23
|
+
defaultAction="{= DEFAULTACTIONHANDLER.getDefaultActionHandler(undefined, ${action>}, undefined, undefined, 'Form')}"
|
|
20
24
|
>
|
|
21
25
|
<menu>
|
|
22
26
|
<Menu>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
>
|
|
20
20
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeaderDataPointTitle" type="XML" />
|
|
21
21
|
<internalMacro:DataPoint metaPath="{dataPoint>}" contextPath="{entitySet>}">
|
|
22
|
-
<internalMacro:formatOptions
|
|
22
|
+
<internalMacro:formatOptions dataPointStyle="large" showLabels="true" iconSize="1.375rem" />
|
|
23
23
|
</internalMacro:DataPoint>
|
|
24
24
|
</VBox>
|
|
25
25
|
</core:FragmentDefinition>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
12
12
|
<template:with path="header>avatar" var="avatar">
|
|
13
13
|
<uxap:expandedHeading>
|
|
14
|
-
<FlexBox>
|
|
14
|
+
<FlexBox renderType="Bare">
|
|
15
15
|
<FlexBox visible="{header>title/expandedImageVisible}">
|
|
16
16
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
|
|
17
17
|
</FlexBox>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</FlexBox>
|
|
20
20
|
</uxap:expandedHeading>
|
|
21
21
|
<uxap:snappedHeading>
|
|
22
|
-
<FlexBox>
|
|
22
|
+
<FlexBox renderType="Bare">
|
|
23
23
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
|
|
24
24
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
|
|
25
25
|
</FlexBox>
|
|
@@ -6,14 +6,19 @@
|
|
|
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
|
-
UI: 'sap/fe/core/templating/UIFormatters'
|
|
9
|
+
UI: 'sap/fe/core/templating/UIFormatters',
|
|
10
|
+
DATAFIELDHELPER : 'sap/fe/core/converters/helpers/DataFieldHelper'
|
|
10
11
|
}"
|
|
11
12
|
>
|
|
12
13
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
13
|
-
<Title
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
<template:if test="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Title}">
|
|
15
|
+
<template:if test="{= !DATAFIELDHELPER.isHeaderStaticallyHidden(${headerInfo>Title@@UI.getDataModelObjectPath})}">
|
|
16
|
+
<Title
|
|
17
|
+
text="{= OP.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
18
|
+
wrapping="true"
|
|
19
|
+
level="H2"
|
|
20
|
+
/>
|
|
21
|
+
</template:if>
|
|
22
|
+
</template:if>
|
|
18
23
|
</template:with>
|
|
19
24
|
</core:FragmentDefinition>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:macro="sap.fe.macros.internal"
|
|
5
|
+
xmlns:core="sap.ui.core"
|
|
6
|
+
template:require="{
|
|
7
|
+
HELPER: 'sap/fe/macros/chart/ChartHelper'
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<macro:Chart
|
|
11
|
+
id="{visualizationDefinition>id}"
|
|
12
|
+
_applyIdToContent="true"
|
|
13
|
+
contextPath="{visualizationDefinition>collection}"
|
|
14
|
+
metaPath="{presentationContext>annotationPath}"
|
|
15
|
+
chartDefinition="{visualizationDefinition>}"
|
|
16
|
+
selectionMode="Multiple"
|
|
17
|
+
personalization="{visualizationDefinition>personalization}"
|
|
18
|
+
chartDelegate="{= '{name: \'sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate\', payload: { contextPath: \'' + HELPER.getCollectionName(${visualizationDefinition>collection}) + '\', parameters:{$$groupId:\'$auto.Workers\'}, selectionMode: \'Multiple\' } }' }"
|
|
19
|
+
selectionChange=".handlers.onChartSelectionChanged"
|
|
20
|
+
headerLevel='{= ${section>subSections}.length > 1 ? (${subSection>level} === 2 && ${subSection>titleVisible} ? "H6": "H5") : (${subSection>level} === 2 && ${subSection>titleVisible} ? "H5": "H4")}'
|
|
21
|
+
/>
|
|
22
|
+
</core:FragmentDefinition>
|
|
@@ -34,7 +34,12 @@
|
|
|
34
34
|
<template:if test="{= ${formElement>type} === 'Annotation' }">
|
|
35
35
|
<template:then>
|
|
36
36
|
<template:with path="formElement>annotationPath" var="dataField">
|
|
37
|
-
<HBox
|
|
37
|
+
<HBox
|
|
38
|
+
unittest:id="ObjectPageHeaderHBoxTest"
|
|
39
|
+
class="sapUiTinyMarginBottom"
|
|
40
|
+
visible="{formElement>visible}"
|
|
41
|
+
renderType="{= OP.getHeaderFormHboxRenderType(${dataField>@@UI.getDataModelObjectPath})}"
|
|
42
|
+
>
|
|
38
43
|
<Label
|
|
39
44
|
unittest:id="ObjectPageHeaderLabelTest"
|
|
40
45
|
id="{= ID.generate([ ${formElement>idPrefix}, 'Label'])}"
|
|
@@ -50,7 +55,7 @@
|
|
|
50
55
|
dataField="{dataField>}"
|
|
51
56
|
ariaLabelledBy="{= ID.generate([ ${formElement>idPrefix}, 'Label'])}"
|
|
52
57
|
>
|
|
53
|
-
<internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" />
|
|
58
|
+
<internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" fieldMode="nowrapper" />
|
|
54
59
|
</internalMacro:Field>
|
|
55
60
|
</HBox>
|
|
56
61
|
</template:with>
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
xmlns="sap.m"
|
|
9
9
|
xmlns:opcontrol="sap.fe.templates.ObjectPage.controls"
|
|
10
10
|
xmlns:control="sap.fe.core.controls"
|
|
11
|
+
xmlns:internalMacro="sap.fe.macros.internal"
|
|
11
12
|
template:require="{
|
|
12
13
|
fpm: 'sap/fe/macros/fpm/fpm',
|
|
13
14
|
MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
|
|
@@ -60,55 +61,13 @@
|
|
|
60
61
|
visible="{subSection>visible}"
|
|
61
62
|
>
|
|
62
63
|
<uxap:dependents>
|
|
63
|
-
<template:repeat list="{subSection>
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<control:CommandExecution
|
|
71
|
-
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
72
|
-
execute="{= COMMON.buildActionWrapper(${menuItemAction>})}"
|
|
73
|
-
visible="{menuItemAction>visible}"
|
|
74
|
-
enabled="{menuItemAction>enabled}"
|
|
75
|
-
command="{menuItemAction>command}"
|
|
76
|
-
/>
|
|
77
|
-
</template:then>
|
|
78
|
-
<template:else>
|
|
79
|
-
<control:CommandExecution
|
|
80
|
-
execute="{menuItemAction>press}"
|
|
81
|
-
visible="{menuItemAction>visible}"
|
|
82
|
-
enabled="{menuItemAction>enabled}"
|
|
83
|
-
command="{menuItemAction>command}"
|
|
84
|
-
/>
|
|
85
|
-
</template:else>
|
|
86
|
-
</template:if>
|
|
87
|
-
</template:if>
|
|
88
|
-
</template:repeat>
|
|
89
|
-
</template:then>
|
|
90
|
-
<template:elseif test="{action>command}">
|
|
91
|
-
<template:if test="{= ${action>type} === 'Default'}">
|
|
92
|
-
<template:then>
|
|
93
|
-
<control:CommandExecution
|
|
94
|
-
core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
|
|
95
|
-
execute="{= COMMON.buildActionWrapper(${action>})}"
|
|
96
|
-
visible="{action>visible}"
|
|
97
|
-
enabled="{action>enabled}"
|
|
98
|
-
command="{action>command}"
|
|
99
|
-
/>
|
|
100
|
-
</template:then>
|
|
101
|
-
<template:else>
|
|
102
|
-
<control:CommandExecution
|
|
103
|
-
execute="{action>press}"
|
|
104
|
-
visible="{action>visible}"
|
|
105
|
-
enabled="{action>enabled}"
|
|
106
|
-
command="{action>command}"
|
|
107
|
-
/>
|
|
108
|
-
</template:else>
|
|
109
|
-
</template:if>
|
|
110
|
-
</template:elseif>
|
|
111
|
-
</template:if>
|
|
64
|
+
<template:repeat list="{subSection>commandActions}" var="action">
|
|
65
|
+
<internalMacro:ActionCommand
|
|
66
|
+
action="{action>}"
|
|
67
|
+
onExecuteAction="{action>press}"
|
|
68
|
+
onExecuteIBN="{action>press}"
|
|
69
|
+
onExecuteManifest="{= COMMON.buildActionWrapper(${action>})}"
|
|
70
|
+
/>
|
|
112
71
|
</template:repeat>
|
|
113
72
|
</uxap:dependents>
|
|
114
73
|
<!--uxap:customData>
|
package/src/sap/fe/templates/ObjectPage/view/fragments/SectionPresentationVisualization.fragment.xml
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<template:with path="subSection>presentation" var="presentationContext">
|
|
11
11
|
<template:with path="subSection>presentation" var="primaryVisualization">
|
|
12
12
|
<template:repeat list="{presentationContext>visualizations}" var="visualizationDefinition">
|
|
13
|
-
<core:Fragment fragmentName="sap.fe.templates.
|
|
13
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.{visualizationDefinition>type}" type="XML" />
|
|
14
14
|
</template:repeat>
|
|
15
15
|
</template:with>
|
|
16
16
|
</template:with>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:macro="sap.fe.macros.internal"
|
|
4
|
+
xmlns:core="sap.ui.core"
|
|
5
|
+
xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
|
|
6
|
+
>
|
|
7
|
+
<macro:Table
|
|
8
|
+
unittest:id="TablePropertyExpressionTest"
|
|
9
|
+
metaPath="{presentationContext>annotationPath}"
|
|
10
|
+
tableDefinition="{visualizationDefinition>}"
|
|
11
|
+
contextPath="{fullContextPath>}"
|
|
12
|
+
filterBarId="{= ${converterContext>filterBarId} ? ${converterContext>filterBarId} : undefined}"
|
|
13
|
+
busy='{= "{ui>/busyLocal/"+${visualizationDefinition>annotation/id}+"}" }'
|
|
14
|
+
onContextChange=".handlers.onTableContextChange"
|
|
15
|
+
variantSelected=".handlers.onVariantSelected"
|
|
16
|
+
variantSaved=".handlers.onVariantSaved"
|
|
17
|
+
isAlp="{converterContext>hasMultiVisualizations}"
|
|
18
|
+
onSegmentedButtonPressed="{= ${converterContext>hasMultiVisualizations} ? '.handlers.onSegmentedButtonPressed' : undefined }"
|
|
19
|
+
visible="{= ${converterContext>hasMultiVisualizations} ? '{= ${pageInternal>alpContentView} !== \'Chart\'}' : 'true' }"
|
|
20
|
+
tabTitle="{view>title}"
|
|
21
|
+
headerLevel='{= ${section>subSections}.length > 1 ? (${subSection>level} === 2 && ${subSection>titleVisible} ? "H6": "H5") : (${subSection>level} === 2 && ${subSection>titleVisible} ? "H5": "H4")}'
|
|
22
|
+
/>
|
|
23
|
+
</core:FragmentDefinition>
|