@sapui5/sap.fe.templates 1.101.1 → 1.102.2

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.
Files changed (93) hide show
  1. package/package.json +1 -1
  2. package/src/sap/fe/templates/.library +1 -1
  3. package/src/sap/fe/templates/ListReport/ExtensionAPI.js +8 -5
  4. package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +11 -5
  5. package/src/sap/fe/templates/ListReport/ListReport.view.xml +104 -57
  6. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +104 -19
  7. package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +98 -19
  8. package/src/sap/fe/templates/ListReport/ListReportTemplating.js +45 -0
  9. package/src/sap/fe/templates/ListReport/ListReportTemplating.ts +30 -0
  10. package/src/sap/fe/templates/ListReport/overrides/Share.js +7 -4
  11. package/src/sap/fe/templates/ListReport/overrides/Share.ts +4 -3
  12. package/src/sap/fe/templates/ListReport/overrides/ViewState.js +10 -2
  13. package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +7 -1
  14. package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +164 -18
  15. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +51 -47
  16. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +52 -40
  17. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +872 -0
  18. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +837 -0
  19. package/src/sap/fe/templates/ObjectPage/overrides/Share.js +3 -3
  20. package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +2 -2
  21. package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +9 -10
  22. package/src/sap/fe/templates/ObjectPage/view/fragments/CollaborationDraft.fragment.xml +1 -2
  23. package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +15 -15
  24. package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +28 -24
  25. package/src/sap/fe/templates/ObjectPage/view/fragments/FormActionButtons.fragment.xml +15 -16
  26. package/src/sap/fe/templates/ObjectPage/view/fragments/FormActions.fragment.xml +1 -5
  27. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPoint.fragment.xml +1 -2
  28. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPointTitle.fragment.xml +1 -3
  29. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacet.fragment.xml +3 -4
  30. package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +16 -17
  31. package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingTitle.fragment.xml +3 -3
  32. package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +3 -3
  33. package/src/sap/fe/templates/ObjectPage/view/fragments/RelatedApps.fragment.xml +7 -4
  34. package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +71 -6
  35. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +114 -94
  36. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContentLazyLoader.fragment.xml +127 -107
  37. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +81 -33
  38. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.ts +71 -33
  39. package/src/sap/fe/templates/controls/MacroChart.fragment.xml +1 -0
  40. package/src/sap/fe/templates/controls/Table.fragment.xml +3 -4
  41. package/src/sap/fe/templates/library.js +1 -1
  42. package/src/sap/fe/templates/messagebundle_ar.properties +10 -6
  43. package/src/sap/fe/templates/messagebundle_bg.properties +6 -2
  44. package/src/sap/fe/templates/messagebundle_ca.properties +10 -6
  45. package/src/sap/fe/templates/messagebundle_cs.properties +6 -2
  46. package/src/sap/fe/templates/messagebundle_cy.properties +10 -6
  47. package/src/sap/fe/templates/messagebundle_da.properties +10 -6
  48. package/src/sap/fe/templates/messagebundle_de.properties +10 -6
  49. package/src/sap/fe/templates/messagebundle_el.properties +10 -6
  50. package/src/sap/fe/templates/messagebundle_en.properties +6 -2
  51. package/src/sap/fe/templates/messagebundle_en_GB.properties +8 -4
  52. package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +13 -5
  53. package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +7 -3
  54. package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +7 -3
  55. package/src/sap/fe/templates/messagebundle_es.properties +6 -2
  56. package/src/sap/fe/templates/messagebundle_es_MX.properties +10 -6
  57. package/src/sap/fe/templates/messagebundle_et.properties +6 -2
  58. package/src/sap/fe/templates/messagebundle_fi.properties +10 -6
  59. package/src/sap/fe/templates/messagebundle_fr.properties +6 -2
  60. package/src/sap/fe/templates/messagebundle_fr_CA.properties +10 -6
  61. package/src/sap/fe/templates/messagebundle_hi.properties +10 -6
  62. package/src/sap/fe/templates/messagebundle_hr.properties +10 -6
  63. package/src/sap/fe/templates/messagebundle_hu.properties +6 -2
  64. package/src/sap/fe/templates/messagebundle_id.properties +6 -2
  65. package/src/sap/fe/templates/messagebundle_it.properties +10 -6
  66. package/src/sap/fe/templates/messagebundle_iw.properties +10 -6
  67. package/src/sap/fe/templates/messagebundle_ja.properties +6 -2
  68. package/src/sap/fe/templates/messagebundle_kk.properties +10 -6
  69. package/src/sap/fe/templates/messagebundle_ko.properties +6 -2
  70. package/src/sap/fe/templates/messagebundle_lt.properties +6 -2
  71. package/src/sap/fe/templates/messagebundle_lv.properties +6 -2
  72. package/src/sap/fe/templates/messagebundle_ms.properties +10 -6
  73. package/src/sap/fe/templates/messagebundle_nl.properties +6 -2
  74. package/src/sap/fe/templates/messagebundle_no.properties +10 -6
  75. package/src/sap/fe/templates/messagebundle_pl.properties +10 -6
  76. package/src/sap/fe/templates/messagebundle_pt.properties +7 -3
  77. package/src/sap/fe/templates/messagebundle_pt_PT.properties +6 -2
  78. package/src/sap/fe/templates/messagebundle_ro.properties +10 -6
  79. package/src/sap/fe/templates/messagebundle_ru.properties +10 -6
  80. package/src/sap/fe/templates/messagebundle_sh.properties +6 -2
  81. package/src/sap/fe/templates/messagebundle_sk.properties +6 -2
  82. package/src/sap/fe/templates/messagebundle_sl.properties +10 -6
  83. package/src/sap/fe/templates/messagebundle_sv.properties +6 -2
  84. package/src/sap/fe/templates/messagebundle_th.properties +10 -6
  85. package/src/sap/fe/templates/messagebundle_tr.properties +6 -2
  86. package/src/sap/fe/templates/messagebundle_uk.properties +6 -2
  87. package/src/sap/fe/templates/messagebundle_vi.properties +10 -6
  88. package/src/sap/fe/templates/messagebundle_zh_CN.properties +10 -6
  89. package/src/sap/fe/templates/messagebundle_zh_TW.properties +10 -6
  90. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +0 -482
  91. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.ts +0 -511
  92. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +0 -120
  93. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +0 -138
@@ -10,9 +10,8 @@
10
10
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
11
11
  template:require="{
12
12
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
13
- CORE: 'sap/fe/core/AnnotationHelper',
14
13
  COMMON: 'sap/fe/macros/CommonHelper',
15
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper',
14
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
16
15
  ID: 'sap/fe/core/helpers/StableIdHelper'
17
16
  }"
18
17
  >
@@ -35,7 +34,7 @@
35
34
  </template:then>
36
35
  <template:elseif test="{= ${converterHeaderFacet>targetAnnotationType} === 'Chart'}">
37
36
  <template:with path="headerFacet>Target/$AnnotationPath" var="collection" helper="MODEL.resolve$Path">
38
- <template:with path="collection>" var="collection" helper="CORE.getNavigationContext">
37
+ <template:with path="collection>" var="collection" helper="COMMON.getNavigationContext">
39
38
  <internalMacro:MicroChart
40
39
  unittest:id="macroMicroChart"
41
40
  id="{= ID.generate(['fe', 'HeaderFacet', 'MicroChart', { Facet: ${headerFacet>} }]) }"
@@ -58,7 +57,7 @@
58
57
  </template:elseif>
59
58
  <template:elseif test="{= ${converterHeaderFacet>targetAnnotationType} === 'Contact'}">
60
59
  <template:with path="headerFacet>Target/$AnnotationPath" var="collection" helper="MODEL.resolve$Path">
61
- <template:with path="collection>" var="collection" helper="CORE.getNavigationContext">
60
+ <template:with path="collection>" var="collection" helper="COMMON.getNavigationContext">
62
61
  <VBox id="{= ID.generate(['fe', 'HeaderFacet', 'Contact', { Facet: ${headerFacet>} }]) }" displayInline="true">
63
62
  <template:if test="{headerFacet>@@MODEL.label}">
64
63
  <Title text="{headerFacet>@@MODEL.label}" class="sapUiSmallMarginBottom" />
@@ -5,29 +5,28 @@
5
5
  xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
6
6
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
7
7
  template:require="{
8
- OPTemplating: 'sap/fe/templates/ObjectPage/templating/ObjectPageTemplating',
9
8
  UI: 'sap/fe/core/templating/UIFormatters'
10
9
  }"
11
10
  >
12
11
  <template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
13
- <template:with path="header>avatar" var="avatar">
14
- <uxap:expandedHeading>
15
- <FlexBox>
16
- <FlexBox visible="{header>title/expandedImageVisible}">
12
+ <template:with path="header>avatar" var="avatar">
13
+ <uxap:expandedHeading>
14
+ <FlexBox>
15
+ <FlexBox visible="{header>title/expandedImageVisible}">
16
+ <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
17
+ </FlexBox>
18
+ <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
19
+ </FlexBox>
20
+ </uxap:expandedHeading>
21
+ <uxap:snappedHeading>
22
+ <FlexBox>
17
23
  <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
24
+ <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
18
25
  </FlexBox>
26
+ </uxap:snappedHeading>
27
+ <uxap:snappedTitleOnMobile>
19
28
  <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
20
- </FlexBox>
21
- </uxap:expandedHeading>
22
- <uxap:snappedHeading>
23
- <FlexBox>
24
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
25
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
26
- </FlexBox>
27
- </uxap:snappedHeading>
28
- <uxap:snappedTitleOnMobile>
29
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
30
- </uxap:snappedTitleOnMobile>
31
- </template:with>
29
+ </uxap:snappedTitleOnMobile>
30
+ </template:with>
32
31
  </template:with>
33
32
  </core:FragmentDefinition>
@@ -5,13 +5,13 @@
5
5
  xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
6
6
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
7
7
  template:require="{
8
- OPTemplating: 'sap/fe/templates/ObjectPage/templating/ObjectPageTemplating',
8
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
9
9
  UI: 'sap/fe/core/templating/UIFormatters'
10
10
  }"
11
11
  >
12
12
  <template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
13
- <Title
14
- text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
13
+ <Title
14
+ text="{= OP.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
15
15
  wrapping="true"
16
16
  />
17
17
  </template:with>
@@ -7,7 +7,7 @@
7
7
  template:require="{
8
8
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
9
9
  ID: 'sap/fe/core/helpers/StableIdHelper',
10
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper',
10
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
11
11
  FIELD: 'sap/fe/macros/field/FieldHelper'
12
12
  }"
13
13
  >
@@ -50,8 +50,8 @@
50
50
  dataField="{dataField>}"
51
51
  ariaLabelledBy="{= ID.generate([ ${formElement>idPrefix}, 'Label'])}"
52
52
  >
53
- <internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" />
54
- </internalMacro:Field>
53
+ <internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" />
54
+ </internalMacro:Field>
55
55
  </HBox>
56
56
  </template:with>
57
57
  </template:then>
@@ -3,8 +3,12 @@
3
3
  xmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
4
4
  xmlns:core="sap.ui.core"
5
5
  >
6
-
7
- <MenuButton id="fe::RelatedApps" text="{sap.fe.i18n>T_OP_RELATED_APPS}" binding="{internal>relatedApps}" visible="{internal>visibility}">
6
+ <MenuButton
7
+ id="fe::RelatedApps"
8
+ text="{sap.fe.i18n>T_OP_RELATED_APPS}"
9
+ binding="{internal>relatedApps}"
10
+ visible="{internal>visibility}"
11
+ >
8
12
  <menu>
9
13
  <Menu items="{path: 'internal>items', sorter: { path: 'text' }}">
10
14
  <items>
@@ -12,11 +16,10 @@
12
16
  text="{internal>text}"
13
17
  customData:targetSemObject="{internal>targetSemObject}"
14
18
  customData:targetAction="{internal>targetAction}"
15
- press="._intentBasedNavigation.navigate(${internal>targetSemObject}, ${internal>targetAction})"
19
+ press="._intentBasedNavigation.navigate(${internal>targetSemObject}, ${internal>targetAction}, ${internal>targetParams})"
16
20
  />
17
21
  </items>
18
22
  </Menu>
19
23
  </menu>
20
24
  </MenuButton>
21
-
22
25
  </core:FragmentDefinition>
@@ -7,10 +7,11 @@
7
7
  xmlns:dt="sap.ui.dt"
8
8
  xmlns="sap.m"
9
9
  xmlns:opcontrol="sap.fe.templates.ObjectPage.controls"
10
+ xmlns:control="sap.fe.core.controls"
10
11
  template:require="{
11
12
  fpm: 'sap/fe/macros/fpm/fpm',
12
13
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
13
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper',
14
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
14
15
  COMMON: 'sap/fe/macros/CommonHelper',
15
16
  ID: 'sap/fe/core/helpers/StableIdHelper'
16
17
  }"
@@ -29,7 +30,7 @@
29
30
  titleUppercase="false"
30
31
  >
31
32
  <uxap:subSections>
32
- <uxap:ObjectPageSubSection id="fe::EditableHeaderSubSection">
33
+ <uxap:ObjectPageSubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}">
33
34
  <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.EditableHeaderFacet" type="XML" />
34
35
  </uxap:ObjectPageSubSection>
35
36
  </uxap:subSections>
@@ -55,6 +56,58 @@
55
56
  showTitle="{subSection>showTitle}"
56
57
  visible="{subSection>visible}"
57
58
  >
59
+ <uxap:dependents>
60
+ <template:repeat list="{subSection>actions}" var="action">
61
+ <template:if test="{= ${action>type} === 'Menu'}">
62
+ <template:then>
63
+ <template:repeat list="{action>menu}" var="menuItemAction">
64
+ <template:if test="{menuItemAction>command}">
65
+ <template:if test="{= ${menuItemAction>type} === 'Default'}">
66
+ <template:then>
67
+ <control:CommandExecution
68
+ core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
69
+ execute="{= COMMON.buildActionWrapper(${menuItemAction>})}"
70
+ visible="{menuItemAction>visible}"
71
+ enabled="{menuItemAction>enabled}"
72
+ command="{menuItemAction>command}"
73
+ />
74
+ </template:then>
75
+ <template:else>
76
+ <control:CommandExecution
77
+ execute="{menuItemAction>press}"
78
+ visible="{menuItemAction>visible}"
79
+ enabled="{menuItemAction>enabled}"
80
+ command="{menuItemAction>command}"
81
+ />
82
+ </template:else>
83
+ </template:if>
84
+ </template:if>
85
+ </template:repeat>
86
+ </template:then>
87
+ <template:elseif test="{action>command}">
88
+ <template:if test="{= ${action>type} === 'Default'}">
89
+ <template:then>
90
+ <control:CommandExecution
91
+ core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
92
+ execute="{= COMMON.buildActionWrapper(${action>})}"
93
+ visible="{action>visible}"
94
+ enabled="{action>enabled}"
95
+ command="{action>command}"
96
+ />
97
+ </template:then>
98
+ <template:else>
99
+ <control:CommandExecution
100
+ execute="{action>press}"
101
+ visible="{action>visible}"
102
+ enabled="{action>enabled}"
103
+ command="{action>command}"
104
+ />
105
+ </template:else>
106
+ </template:if>
107
+ </template:elseif>
108
+ </template:if>
109
+ </template:repeat>
110
+ </uxap:dependents>
58
111
  <!--uxap:customData>
59
112
  <core:CustomData key="strategyForVisibilityChange" value="lazyLoading" />
60
113
  </uxap:customData-->
@@ -66,12 +119,18 @@
66
119
  <template:if test="{viewData>/useNewLazyLoading}">
67
120
  <template:then>
68
121
  <template:repeat list="{subSection>content}" var="subSection">
69
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContentLazyLoader" type="XML" />
122
+ <core:Fragment
123
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContentLazyLoader"
124
+ type="XML"
125
+ />
70
126
  </template:repeat>
71
127
  </template:then>
72
128
  <template:else>
73
129
  <template:repeat list="{subSection>content}" var="subSection">
74
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContent" type="XML" />
130
+ <core:Fragment
131
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContent"
132
+ type="XML"
133
+ />
75
134
  </template:repeat>
76
135
  </template:else>
77
136
  </template:if>
@@ -79,10 +138,16 @@
79
138
  <template:else>
80
139
  <template:if test="{viewData>/useNewLazyLoading}">
81
140
  <template:then>
82
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContentLazyLoader" type="XML" />
141
+ <core:Fragment
142
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContentLazyLoader"
143
+ type="XML"
144
+ />
83
145
  </template:then>
84
146
  <template:else>
85
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContent" type="XML" />
147
+ <core:Fragment
148
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionContent"
149
+ type="XML"
150
+ />
86
151
  </template:else>
87
152
  </template:if>
88
153
  </template:else>
@@ -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/AnnotationHelper',
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
- <!-- 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
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
- <layout:mainContent>
38
- <core:Fragment
37
+ <layout:mainContent>
38
+ <core:Fragment
39
39
  fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
40
40
  type="XML"
41
41
  />
42
- </layout:mainContent>
43
- <layout:sideContent>
44
- <core:Fragment
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
- </layout:sideContent>
49
- </layout:DynamicSideContent>
50
- </template:then>
51
- <template:else>
52
- <core:Fragment
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
- </template:else>
57
- </template:if>
58
- </opcontrol:content>
59
- </opcontrol:SubSectionBlock>
60
- </uxap:blocks>
61
-
62
- </template:then>
63
- <template:elseif test="{= ${subSection>type} === 'Form'}">
64
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActions" type="XML" />
65
- <uxap:blocks>
66
- <opcontrol:SubSectionBlock>
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
- <template:then>
70
- <layout:DynamicSideContent
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
- <layout:mainContent>
79
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent" type="XML" />
80
- </layout:mainContent>
81
- <layout:sideContent>
82
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer" type="XML" />
83
- </layout:sideContent>
84
- </layout:DynamicSideContent>
85
-
86
- </template:then>
87
- <template:else>
88
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent" type="XML" />
89
- </template:else>
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
- </opcontrol:content>
92
- </opcontrol:SubSectionBlock>
93
- </uxap:blocks>
94
- <template:if test="{subSection>formDefinition/hasFacetsNotPartOfPreview}">
95
- <template:then>
96
- <!-- Button "Show More / Less" is displayed for a collection facets that contains at least one reference facets with annotation "PartOfPreview === TRUE" -->
97
- <uxap:moreBlocks>
98
- <template:if test="{= ${subSection>level} === 2}">
99
- <Title text="{subSection>title}" />
100
- </template:if>
101
- <opcontrol:SubSectionBlock>
102
- <opcontrol:content>
103
- <template:if test="{= ${subSection>sideContent} !== undefined}">
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 fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent" type="XML" />
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 fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent" type="XML" />
132
+ <core:Fragment
133
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
134
+ type="XML"
135
+ />
123
136
  </template:else>
124
- </template:if>
125
- </opcontrol:content>
126
- </opcontrol:SubSectionBlock>
127
- </uxap:moreBlocks>
128
- </template:then>
129
- </template:if>
130
- </template:elseif>
131
- <template:elseif test="{= ${subSection>type} === 'DataVisualization'}">
132
- <uxap:blocks>
133
- <template:if test="{= ${subSection>level} === 2}">
134
- <Title text="{subSection>title}" visible="{subSection>titleVisible}" />
135
- </template:if>
136
- <opcontrol:SubSectionBlock visible="{subSection>visible}">
137
- <opcontrol:content>
138
- <template:if test="{= ${subSection>sideContent} !== undefined}">
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 fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization" type="XML" />
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 fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer" type="XML" />
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 fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization" type="XML" />
176
+ <core:Fragment
177
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
178
+ type="XML"
179
+ />
158
180
  </template:else>
159
- </template:if>
160
- </opcontrol:content>
161
- </opcontrol:SubSectionBlock>
162
- </uxap:blocks>
163
- </template:elseif>
164
- <template:elseif test="{= ${subSection>type} === 'Unknown'}">
165
- <Text text="{subSection>text}" />
166
- </template:elseif>
167
- <template:else>
168
-
169
- </template:else>
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>