@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
@@ -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>