@sapui5/sap.fe.templates 1.100.0 → 1.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/package.json +4 -5
  2. package/src/sap/fe/templates/.library +1 -2
  3. package/src/sap/fe/templates/AnalyticalListPage/Component.js +24 -12
  4. package/src/sap/fe/templates/AnalyticalListPage/Component.ts +6 -0
  5. package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +30 -32
  6. package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.ts +25 -0
  7. package/src/sap/fe/templates/Feedback.js +80 -0
  8. package/src/sap/fe/templates/Feedback.ts +67 -0
  9. package/src/sap/fe/templates/ListComponent.js +156 -118
  10. package/src/sap/fe/templates/ListComponent.ts +105 -0
  11. package/src/sap/fe/templates/ListReport/Component.js +82 -53
  12. package/src/sap/fe/templates/ListReport/Component.ts +39 -0
  13. package/src/sap/fe/templates/ListReport/ExtensionAPI.js +126 -112
  14. package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +106 -0
  15. package/src/sap/fe/templates/ListReport/ListReport.view.xml +106 -58
  16. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +1196 -1081
  17. package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +1088 -0
  18. package/src/sap/fe/templates/ListReport/ListReportTemplating.js +45 -0
  19. package/src/sap/fe/templates/ListReport/ListReportTemplating.ts +30 -0
  20. package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +54 -53
  21. package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.ts +55 -0
  22. package/src/sap/fe/templates/ListReport/overrides/Share.js +137 -137
  23. package/src/sap/fe/templates/ListReport/overrides/Share.ts +135 -0
  24. package/src/sap/fe/templates/ListReport/overrides/ViewState.js +451 -428
  25. package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +419 -0
  26. package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +25 -25
  27. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.js +72 -0
  28. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.ts +62 -0
  29. package/src/sap/fe/templates/ListReport/view/fragments/{MultipleMode.fragment.xml → MultipleModeOld.fragment.xml} +24 -23
  30. package/src/sap/fe/templates/ObjectPage/Component.js +169 -138
  31. package/src/sap/fe/templates/ObjectPage/Component.ts +131 -0
  32. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +140 -142
  33. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +116 -0
  34. package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +162 -22
  35. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +1534 -1447
  36. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +1454 -0
  37. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +872 -0
  38. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +837 -0
  39. package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +136 -101
  40. package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.ts +84 -0
  41. package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +24 -21
  42. package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.ts +10 -0
  43. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +98 -53
  44. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.ts +50 -0
  45. package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +20 -19
  46. package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.ts +15 -0
  47. package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +50 -47
  48. package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.ts +47 -0
  49. package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +34 -34
  50. package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.ts +34 -0
  51. package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +15 -15
  52. package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.ts +13 -0
  53. package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +11 -11
  54. package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.ts +7 -0
  55. package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +55 -52
  56. package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.ts +57 -0
  57. package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +15 -17
  58. package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.ts +13 -0
  59. package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +13 -17
  60. package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.ts +14 -0
  61. package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +23 -21
  62. package/src/sap/fe/templates/ObjectPage/overrides/Paginator.ts +21 -0
  63. package/src/sap/fe/templates/ObjectPage/overrides/Share.js +310 -317
  64. package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +316 -0
  65. package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +66 -57
  66. package/src/sap/fe/templates/ObjectPage/overrides/ViewState.ts +65 -0
  67. package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +26 -33
  68. package/src/sap/fe/templates/ObjectPage/view/fragments/CollaborationDraft.fragment.xml +11 -10
  69. package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +15 -15
  70. package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +31 -27
  71. package/src/sap/fe/templates/ObjectPage/view/fragments/FormActionButtons.fragment.xml +15 -16
  72. package/src/sap/fe/templates/ObjectPage/view/fragments/FormActions.fragment.xml +1 -5
  73. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPoint.fragment.xml +1 -2
  74. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPointTitle.fragment.xml +1 -3
  75. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacet.fragment.xml +3 -4
  76. package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +16 -17
  77. package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingTitle.fragment.xml +3 -3
  78. package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +3 -3
  79. package/src/sap/fe/templates/ObjectPage/view/fragments/RelatedApps.fragment.xml +7 -4
  80. package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +71 -6
  81. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +114 -94
  82. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContentLazyLoader.fragment.xml +127 -107
  83. package/src/sap/fe/templates/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +27 -0
  84. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +899 -817
  85. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.ts +833 -0
  86. package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +205 -189
  87. package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.ts +178 -0
  88. package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +484 -459
  89. package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.ts +438 -0
  90. package/src/sap/fe/templates/RootContainer/overrides/EditFlow.js +16 -14
  91. package/src/sap/fe/templates/RootContainer/overrides/EditFlow.ts +20 -0
  92. package/src/sap/fe/templates/TableScroller.js +45 -53
  93. package/src/sap/fe/templates/TableScroller.ts +48 -0
  94. package/src/sap/fe/templates/controls/Chart.fragment.xml +18 -17
  95. package/src/sap/fe/templates/controls/MacroChart.fragment.xml +23 -0
  96. package/src/sap/fe/templates/controls/Table.fragment.xml +3 -4
  97. package/src/sap/fe/templates/library.js +49 -63
  98. package/src/sap/fe/templates/library.ts +57 -0
  99. package/src/sap/fe/templates/messagebundle.properties +19 -7
  100. package/src/sap/fe/templates/messagebundle_ar.properties +12 -4
  101. package/src/sap/fe/templates/messagebundle_bg.properties +12 -4
  102. package/src/sap/fe/templates/messagebundle_ca.properties +12 -4
  103. package/src/sap/fe/templates/messagebundle_cs.properties +12 -4
  104. package/src/sap/fe/templates/messagebundle_cy.properties +12 -4
  105. package/src/sap/fe/templates/messagebundle_da.properties +12 -4
  106. package/src/sap/fe/templates/messagebundle_de.properties +12 -4
  107. package/src/sap/fe/templates/messagebundle_el.properties +12 -4
  108. package/src/sap/fe/templates/messagebundle_en.properties +12 -4
  109. package/src/sap/fe/templates/messagebundle_en_GB.properties +12 -4
  110. package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +13 -5
  111. package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +13 -5
  112. package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +13 -5
  113. package/src/sap/fe/templates/messagebundle_es.properties +12 -4
  114. package/src/sap/fe/templates/messagebundle_es_MX.properties +12 -4
  115. package/src/sap/fe/templates/messagebundle_et.properties +12 -4
  116. package/src/sap/fe/templates/messagebundle_fi.properties +12 -4
  117. package/src/sap/fe/templates/messagebundle_fr.properties +12 -4
  118. package/src/sap/fe/templates/messagebundle_fr_CA.properties +12 -4
  119. package/src/sap/fe/templates/messagebundle_hi.properties +12 -4
  120. package/src/sap/fe/templates/messagebundle_hr.properties +12 -4
  121. package/src/sap/fe/templates/messagebundle_hu.properties +12 -4
  122. package/src/sap/fe/templates/messagebundle_id.properties +12 -4
  123. package/src/sap/fe/templates/messagebundle_it.properties +12 -4
  124. package/src/sap/fe/templates/messagebundle_iw.properties +12 -4
  125. package/src/sap/fe/templates/messagebundle_ja.properties +12 -4
  126. package/src/sap/fe/templates/messagebundle_kk.properties +12 -4
  127. package/src/sap/fe/templates/messagebundle_ko.properties +12 -4
  128. package/src/sap/fe/templates/messagebundle_lt.properties +12 -4
  129. package/src/sap/fe/templates/messagebundle_lv.properties +12 -4
  130. package/src/sap/fe/templates/messagebundle_ms.properties +12 -4
  131. package/src/sap/fe/templates/messagebundle_nl.properties +12 -4
  132. package/src/sap/fe/templates/messagebundle_no.properties +12 -4
  133. package/src/sap/fe/templates/messagebundle_pl.properties +12 -4
  134. package/src/sap/fe/templates/messagebundle_pt.properties +13 -5
  135. package/src/sap/fe/templates/messagebundle_pt_PT.properties +12 -4
  136. package/src/sap/fe/templates/messagebundle_ro.properties +12 -4
  137. package/src/sap/fe/templates/messagebundle_ru.properties +12 -4
  138. package/src/sap/fe/templates/messagebundle_sh.properties +12 -4
  139. package/src/sap/fe/templates/messagebundle_sk.properties +12 -4
  140. package/src/sap/fe/templates/messagebundle_sl.properties +12 -4
  141. package/src/sap/fe/templates/messagebundle_sv.properties +12 -4
  142. package/src/sap/fe/templates/messagebundle_th.properties +12 -4
  143. package/src/sap/fe/templates/messagebundle_tr.properties +12 -4
  144. package/src/sap/fe/templates/messagebundle_uk.properties +12 -4
  145. package/src/sap/fe/templates/messagebundle_vi.properties +12 -4
  146. package/src/sap/fe/templates/messagebundle_zh_CN.properties +12 -4
  147. package/src/sap/fe/templates/messagebundle_zh_TW.properties +12 -4
  148. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +0 -518
  149. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +0 -120
  150. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +0 -138
@@ -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>
@@ -11,23 +11,23 @@
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
- <uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
26
- <opcontrol:SubSectionBlock>
27
- <opcontrol:content>
28
- <template:if test="{= ${subSection>sideContent} !== undefined}">
29
- <template:then>
30
- <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
+ <uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
26
+ <opcontrol:SubSectionBlock>
27
+ <opcontrol:content>
28
+ <template:if test="{= ${subSection>sideContent} !== undefined}">
29
+ <template:then>
30
+ <layout:DynamicSideContent
31
31
  id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
32
32
  showMainContent="true"
33
33
  showSideContent="{subSection>sideContent/visible}"
@@ -35,42 +35,41 @@
35
35
  containerQuery="true"
36
36
  equalSplit="{subSection>sideContent/equalSplit}"
37
37
  >
38
- <layout:mainContent>
39
- <core:Fragment
38
+ <layout:mainContent>
39
+ <core:Fragment
40
40
  fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
41
41
  type="XML"
42
42
  />
43
- </layout:mainContent>
44
- <layout:sideContent>
45
- <core:Fragment
43
+ </layout:mainContent>
44
+ <layout:sideContent>
45
+ <core:Fragment
46
46
  fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
47
47
  type="XML"
48
48
  />
49
- </layout:sideContent>
50
- </layout:DynamicSideContent>
51
- </template:then>
52
- <template:else>
53
- <core:Fragment
49
+ </layout:sideContent>
50
+ </layout:DynamicSideContent>
51
+ </template:then>
52
+ <template:else>
53
+ <core:Fragment
54
54
  fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionCustomSection"
55
55
  type="XML"
56
56
  />
57
- </template:else>
58
- </template:if>
59
- </opcontrol:content>
60
- </opcontrol:SubSectionBlock>
61
- </uxap:ObjectPageLazyLoader>
62
- </uxap:blocks>
63
-
64
- </template:then>
65
- <template:elseif test="{= ${subSection>type} === 'Form'}">
66
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActions" type="XML" />
67
- <uxap:blocks>
57
+ </template:else>
58
+ </template:if>
59
+ </opcontrol:content>
60
+ </opcontrol:SubSectionBlock>
61
+ </uxap:ObjectPageLazyLoader>
62
+ </uxap:blocks>
63
+ </template:then>
64
+ <template:elseif test="{= ${subSection>type} === 'Form'}">
65
+ <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActions" type="XML" />
66
+ <uxap:blocks>
68
67
  <uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
69
- <opcontrol:SubSectionBlock>
70
- <opcontrol:content>
71
- <template:if test="{= ${subSection>sideContent} !== undefined}">
72
- <template:then>
73
- <layout:DynamicSideContent
68
+ <opcontrol:SubSectionBlock>
69
+ <opcontrol:content>
70
+ <template:if test="{= ${subSection>sideContent} !== undefined}">
71
+ <template:then>
72
+ <layout:DynamicSideContent
74
73
  id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
75
74
  showMainContent="true"
76
75
  showSideContent="{subSection>sideContent/visible}"
@@ -78,33 +77,41 @@
78
77
  containerQuery="true"
79
78
  equalSplit="{subSection>sideContent/equalSplit}"
80
79
  >
81
- <layout:mainContent>
82
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent" type="XML" />
83
- </layout:mainContent>
84
- <layout:sideContent>
85
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer" type="XML" />
86
- </layout:sideContent>
87
- </layout:DynamicSideContent>
88
-
89
- </template:then>
90
- <template:else>
91
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent" type="XML" />
92
- </template:else>
93
- </template:if>
94
- </opcontrol:content>
95
- </opcontrol:SubSectionBlock>
80
+ <layout:mainContent>
81
+ <core:Fragment
82
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent"
83
+ type="XML"
84
+ />
85
+ </layout:mainContent>
86
+ <layout:sideContent>
87
+ <core:Fragment
88
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
89
+ type="XML"
90
+ />
91
+ </layout:sideContent>
92
+ </layout:DynamicSideContent>
93
+ </template:then>
94
+ <template:else>
95
+ <core:Fragment
96
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionFormContent"
97
+ type="XML"
98
+ />
99
+ </template:else>
100
+ </template:if>
101
+ </opcontrol:content>
102
+ </opcontrol:SubSectionBlock>
96
103
  </uxap:ObjectPageLazyLoader>
97
- </uxap:blocks>
98
- <template:if test="{subSection>formDefinition/hasFacetsNotPartOfPreview}">
99
- <template:then>
100
- <!-- Button "Show More / Less" is displayed for a collection facets that contains at least one reference facets with annotation "PartOfPreview === TRUE" -->
101
- <uxap:moreBlocks>
102
- <template:if test="{= ${subSection>level} === 2}">
103
- <Title text="{subSection>title}" />
104
- </template:if>
105
- <opcontrol:SubSectionBlock>
106
- <opcontrol:content>
107
- <template:if test="{= ${subSection>sideContent} !== undefined}">
104
+ </uxap:blocks>
105
+ <template:if test="{subSection>formDefinition/hasFacetsNotPartOfPreview}">
106
+ <template:then>
107
+ <!-- Button "Show More / Less" is displayed for a collection facets that contains at least one reference facets with annotation "PartOfPreview === TRUE" -->
108
+ <uxap:moreBlocks>
109
+ <template:if test="{= ${subSection>level} === 2}">
110
+ <Title text="{subSection>title}" />
111
+ </template:if>
112
+ <opcontrol:SubSectionBlock>
113
+ <opcontrol:content>
114
+ <template:if test="{= ${subSection>sideContent} !== undefined}">
108
115
  <template:then>
109
116
  <layout:DynamicSideContent
110
117
  id="{= ID.generate(['fe', ${subSection>key}, 'MoreSideContentLayout'])}"
@@ -115,7 +122,10 @@
115
122
  equalSplit="{subSection>sideContent/equalSplit}"
116
123
  >
117
124
  <layout:mainContent>
118
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent" type="XML" />
125
+ <core:Fragment
126
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
127
+ type="XML"
128
+ />
119
129
  </layout:mainContent>
120
130
  <layout:sideContent>
121
131
  <!--No Side Content for MoreBlocks so far-->
@@ -123,29 +133,32 @@
123
133
  </layout:DynamicSideContent>
124
134
  </template:then>
125
135
  <template:else>
126
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent" type="XML" />
136
+ <core:Fragment
137
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionMoreFormContent"
138
+ type="XML"
139
+ />
127
140
  </template:else>
128
- </template:if>
129
- </opcontrol:content>
130
- </opcontrol:SubSectionBlock>
131
- </uxap:moreBlocks>
132
- </template:then>
133
- </template:if>
134
- </template:elseif>
135
- <template:elseif test="{= ${subSection>type} === 'DataVisualization'}">
136
- <uxap:blocks>
137
- <uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
138
- <template:if test="{= ${subSection>level} === 2}">
139
- <Title
141
+ </template:if>
142
+ </opcontrol:content>
143
+ </opcontrol:SubSectionBlock>
144
+ </uxap:moreBlocks>
145
+ </template:then>
146
+ </template:if>
147
+ </template:elseif>
148
+ <template:elseif test="{= ${subSection>type} === 'DataVisualization'}">
149
+ <uxap:blocks>
150
+ <uxap:ObjectPageLazyLoader stashed="true" id="{= ID.generate(['fe', ${subSection>key}])}">
151
+ <template:if test="{= ${subSection>level} === 2}">
152
+ <Title
140
153
  text="{subSection>title}"
141
154
  visible="{= ${subSection>visible} &amp;&amp; ${subSection>title} !=='undefined' &amp;&amp; ${subSection>showTitle} ? true : false}"
142
155
  />
143
- </template:if>
144
- <opcontrol:SubSectionBlock visible="{subSection>visible}">
145
- <opcontrol:content>
156
+ </template:if>
157
+ <opcontrol:SubSectionBlock visible="{subSection>visible}">
158
+ <opcontrol:content>
146
159
  <template:if test="{= ${subSection>sideContent} !== undefined}">
147
- <template:then>
148
- <layout:DynamicSideContent
160
+ <template:then>
161
+ <layout:DynamicSideContent
149
162
  id="{= ID.generate(['fe', ${subSection>key}, 'SideContentLayout'])}"
150
163
  showMainContent="true"
151
164
  showSideContent="{subSection>sideContent/visible}"
@@ -153,29 +166,36 @@
153
166
  containerQuery="true"
154
167
  equalSplit="{subSection>sideContent/equalSplit}"
155
168
  >
156
- <layout:mainContent>
157
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization" type="XML" />
158
- </layout:mainContent>
159
- <layout:sideContent>
160
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer" type="XML" />
161
- </layout:sideContent>
162
- </layout:DynamicSideContent>
163
- </template:then>
164
- <template:else>
165
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization" type="XML" />
166
- </template:else>
169
+ <layout:mainContent>
170
+ <core:Fragment
171
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
172
+ type="XML"
173
+ />
174
+ </layout:mainContent>
175
+ <layout:sideContent>
176
+ <core:Fragment
177
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SideContentCustomContainer"
178
+ type="XML"
179
+ />
180
+ </layout:sideContent>
181
+ </layout:DynamicSideContent>
182
+ </template:then>
183
+ <template:else>
184
+ <core:Fragment
185
+ fragmentName="sap.fe.templates.ObjectPage.view.fragments.SectionPresentationVisualization"
186
+ type="XML"
187
+ />
188
+ </template:else>
167
189
  </template:if>
168
- </opcontrol:content>
169
- </opcontrol:SubSectionBlock>
190
+ </opcontrol:content>
191
+ </opcontrol:SubSectionBlock>
170
192
  </uxap:ObjectPageLazyLoader>
171
- </uxap:blocks>
172
- </template:elseif>
173
- <template:elseif test="{= ${subSection>type} === 'Unknown'}">
174
- <Text text="{subSection>text}" />
175
- </template:elseif>
176
- <template:else>
177
-
178
- </template:else>
179
- </template:if>
180
- </template:if>
193
+ </uxap:blocks>
194
+ </template:elseif>
195
+ <template:elseif test="{= ${subSection>type} === 'Unknown'}">
196
+ <Text text="{subSection>text}" />
197
+ </template:elseif>
198
+ <template:else />
199
+ </template:if>
200
+ </template:if>
181
201
  </core:FragmentDefinition>
@@ -0,0 +1,27 @@
1
+ <core:FragmentDefinition
2
+ xmlns:core="sap.ui.core"
3
+ xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
4
+ xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
5
+ xmlns="sap.m"
6
+ >
7
+ <Popover
8
+ unittest:id="SwitchDraftAndActiveObjectPopOver"
9
+ showHeader="false"
10
+ contentWidth="15.625rem"
11
+ verticalScrolling="false"
12
+ class="sapUiNoContentPadding"
13
+ >
14
+ <content>
15
+ <SelectList
16
+ selectedKey="{= %{HasDraftEntity} ? 'switchToActive' : 'switchToDraft' }"
17
+ itemPress="._switchDraftAndActivePopoverListSelect($event)"
18
+ >
19
+ <customData>
20
+ <core:CustomData key="listIdentifier" value="switchDraftAndActivePopoverList" />
21
+ </customData>
22
+ <core:Item text="{i18n>C_COMMON_OBJECT_PAGE_DISPLAY_DRAFT_MIT}" key="switchToDraft" />
23
+ <core:Item text="{i18n>C_COMMON_OBJECT_PAGE_DISPLAY_SAVED_VERSION_MIT}" key="switchToActive" />
24
+ </SelectList>
25
+ </content>
26
+ </Popover>
27
+ </core:FragmentDefinition>