@sapui5/sap.fe.templates 1.138.0 → 1.139.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 (73) hide show
  1. package/package.json +1 -1
  2. package/src/sap/fe/templates/.library +1 -1
  3. package/src/sap/fe/templates/AnalyticalListPage/manifest.json +1 -1
  4. package/src/sap/fe/templates/ListReport/ListReport.view.xml +92 -61
  5. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +12 -3
  6. package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +13 -2
  7. package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.js +36 -8
  8. package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.ts +25 -11
  9. package/src/sap/fe/templates/ListReport/designtime/ListReport.designtime.js +3 -1
  10. package/src/sap/fe/templates/ListReport/designtime/ListReport.designtime.ts +2 -0
  11. package/src/sap/fe/templates/ListReport/manifest.json +1 -1
  12. package/src/sap/fe/templates/ObjectPage/Component.js +14 -22
  13. package/src/sap/fe/templates/ObjectPage/Component.ts +5 -9
  14. package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +3 -4
  15. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +7 -53
  16. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +6 -55
  17. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +21 -17
  18. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +19 -14
  19. package/src/sap/fe/templates/ObjectPage/components/CollaborationDraft.js +16 -6
  20. package/src/sap/fe/templates/ObjectPage/components/CollaborationDraft.tsx +15 -5
  21. package/src/sap/fe/templates/ObjectPage/components/DraftToggle.js +30 -15
  22. package/src/sap/fe/templates/ObjectPage/components/DraftToggle.tsx +14 -4
  23. package/src/sap/fe/templates/ObjectPage/designtime/ObjectPage.designtime.js +3 -1
  24. package/src/sap/fe/templates/ObjectPage/designtime/ObjectPage.designtime.ts +2 -0
  25. package/src/sap/fe/templates/ObjectPage/manifest.json +1 -1
  26. package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +25 -6
  27. package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +2 -2
  28. package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +7 -2
  29. package/src/sap/fe/templates/library.js +1 -1
  30. package/src/sap/fe/templates/messagebundle.properties +5 -6
  31. package/src/sap/fe/templates/messagebundle_ar.properties +2 -2
  32. package/src/sap/fe/templates/messagebundle_bg.properties +2 -2
  33. package/src/sap/fe/templates/messagebundle_ca.properties +1 -1
  34. package/src/sap/fe/templates/messagebundle_cnr.properties +2 -2
  35. package/src/sap/fe/templates/messagebundle_cs.properties +1 -1
  36. package/src/sap/fe/templates/messagebundle_da.properties +2 -2
  37. package/src/sap/fe/templates/messagebundle_de.properties +2 -2
  38. package/src/sap/fe/templates/messagebundle_en.properties +2 -2
  39. package/src/sap/fe/templates/messagebundle_en_GB.properties +2 -2
  40. package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +2 -4
  41. package/src/sap/fe/templates/messagebundle_es.properties +1 -1
  42. package/src/sap/fe/templates/messagebundle_es_MX.properties +1 -1
  43. package/src/sap/fe/templates/messagebundle_et.properties +1 -1
  44. package/src/sap/fe/templates/messagebundle_fi.properties +2 -2
  45. package/src/sap/fe/templates/messagebundle_fr.properties +1 -1
  46. package/src/sap/fe/templates/messagebundle_fr_CA.properties +3 -3
  47. package/src/sap/fe/templates/messagebundle_hi.properties +1 -1
  48. package/src/sap/fe/templates/messagebundle_hr.properties +2 -2
  49. package/src/sap/fe/templates/messagebundle_hu.properties +2 -2
  50. package/src/sap/fe/templates/messagebundle_id.properties +1 -1
  51. package/src/sap/fe/templates/messagebundle_it.properties +2 -2
  52. package/src/sap/fe/templates/messagebundle_ja.properties +1 -1
  53. package/src/sap/fe/templates/messagebundle_kk.properties +1 -1
  54. package/src/sap/fe/templates/messagebundle_ko.properties +1 -1
  55. package/src/sap/fe/templates/messagebundle_lt.properties +1 -1
  56. package/src/sap/fe/templates/messagebundle_lv.properties +2 -2
  57. package/src/sap/fe/templates/messagebundle_mk.properties +1 -1
  58. package/src/sap/fe/templates/messagebundle_no.properties +1 -1
  59. package/src/sap/fe/templates/messagebundle_pl.properties +1 -1
  60. package/src/sap/fe/templates/messagebundle_pt.properties +1 -1
  61. package/src/sap/fe/templates/messagebundle_pt_PT.properties +1 -1
  62. package/src/sap/fe/templates/messagebundle_ro.properties +1 -1
  63. package/src/sap/fe/templates/messagebundle_sh.properties +2 -2
  64. package/src/sap/fe/templates/messagebundle_sk.properties +2 -2
  65. package/src/sap/fe/templates/messagebundle_sl.properties +1 -1
  66. package/src/sap/fe/templates/messagebundle_sr.properties +2 -2
  67. package/src/sap/fe/templates/messagebundle_sv.properties +1 -1
  68. package/src/sap/fe/templates/messagebundle_th.properties +2 -2
  69. package/src/sap/fe/templates/messagebundle_tr.properties +1 -1
  70. package/src/sap/fe/templates/messagebundle_uk.properties +1 -1
  71. package/src/sap/fe/templates/messagebundle_vi.properties +1 -1
  72. package/src/sap/fe/templates/messagebundle_zh_CN.properties +1 -1
  73. package/src/sap/fe/templates/messagebundle_zh_TW.properties +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.fe.templates",
3
- "version": "1.138.0",
3
+ "version": "1.139.0",
4
4
  "description": "SAPUI5 Library sap.fe.templates",
5
5
  "keywords": [
6
6
  "sapui5",
@@ -6,7 +6,7 @@
6
6
  SAP UI development toolkit for HTML5 (SAPUI5)
7
7
  (c) Copyright 2009-2021 SAP SE. All rights reserved
8
8
  </copyright>
9
- <version>1.138.0</version>
9
+ <version>1.139.0</version>
10
10
 
11
11
  <documentation>UI5 library: sap.fe.templates</documentation>
12
12
 
@@ -4,7 +4,7 @@
4
4
  "id": "sap.fe.templates.AnalyticalListPage",
5
5
  "type": "component",
6
6
  "applicationVersion": {
7
- "version": "1.138.0"
7
+ "version": "1.139.0"
8
8
  },
9
9
  "title": "Analytical List Page",
10
10
  "tags": {
@@ -22,7 +22,8 @@
22
22
  ID: 'sap/fe/core/helpers/StableIdHelper',
23
23
  COMMON: 'sap/fe/macros/CommonHelper',
24
24
  FILTER: 'sap/fe/macros/filterBar/FilterHelper',
25
- LR: 'sap/fe/templates/ListReport/ListReportTemplating'
25
+ LR: 'sap/fe/templates/ListReport/ListReportTemplating',
26
+ UI: 'sap/fe/core/templating/UIFormatters'
26
27
  }"
27
28
  controllerName="sap.fe.templates.ListReport.ListReportController"
28
29
  >
@@ -119,16 +120,34 @@
119
120
  <ToolbarSpacer />
120
121
  <template:if test="{converterContext>headerActions}">
121
122
  <template:repeat list="{converterContext>headerActions}" var="headerAction">
122
- <Button
123
- core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
124
- id="{= ID.generate(['fe',${headerAction>id}])}"
125
- text="{headerAction>text}"
126
- press="{= ${headerAction>command} ? ('cmd:' + ${headerAction>command}) : COMMON.buildActionWrapper(${headerAction>})}"
127
- type="Ghost"
128
- visible="{headerAction>visible}"
129
- enabled="{headerAction>enabled}"
130
- icon="{= ${headerAction>isAIOperation} === true ? COMMON.getAIIcon() : undefined}"
131
- />
123
+ <template:if test="{= ${headerAction>type} !== 'Separator' }">
124
+ <template:then>
125
+ <Button
126
+ core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
127
+ id="{= ID.generate(['fe',${headerAction>id}])}"
128
+ text="{headerAction>text}"
129
+ press="{= ${headerAction>command} ? ('cmd:' + ${headerAction>command}) : COMMON.buildActionWrapper(${headerAction>})}"
130
+ type="Ghost"
131
+ visible="{headerAction>visible}"
132
+ enabled="{headerAction>enabled}"
133
+ icon="{= ${headerAction>isAIOperation} === true ? COMMON.getAIIcon() : undefined}"
134
+ >
135
+ <layoutData>
136
+ <OverflowToolbarLayoutData
137
+ priority="{headerAction>priority}"
138
+ group="{headerAction>group}"
139
+ />
140
+ </layoutData>
141
+ </Button>
142
+ </template:then>
143
+ <template:else>
144
+ <ToolbarSeparator>
145
+ <layoutData>
146
+ <OverflowToolbarLayoutData group="{headerAction>group}" />
147
+ </layoutData>
148
+ </ToolbarSeparator>
149
+ </template:else>
150
+ </template:if>
132
151
  </template:repeat>
133
152
  </template:if>
134
153
  <template:if
@@ -162,7 +181,11 @@
162
181
  </template:if>
163
182
  </contentSwitcher:ContentSwitcher>
164
183
  </template:if>
165
- <macro:Share id="fe::Share" visible="{= ${fclhelper>/} ? ${fclhelper>/showShareIcon} : true }">
184
+ <macro:Share
185
+ id="fe::Share"
186
+ visible="{= ${fclhelper>/} ? ${fclhelper>/showShareIcon} : true }"
187
+ priority="{viewData>/shareOverflowPriority}"
188
+ >
166
189
  <macro:msTeamsOptions>
167
190
  <macroShare:MsTeamsOptions enableCard="false" />
168
191
  </macro:msTeamsOptions>
@@ -188,7 +211,7 @@
188
211
  p13nMode="Item,Value"
189
212
  useSemanticDateRange="{converterContext>useSemanticDateRange}"
190
213
  suspendSelection="true"
191
- toggleControlId="{= ${converterContext>/filterLayout} === 'compactvisual' ? ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) : undefined }"
214
+ toggleControlId="{= ${converterContext>/filterLayout} === 'compactvisual' || ${converterContext>easyFilterEnabled} ? ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) : undefined }"
192
215
  initialLayout="{= ${converterContext>/filterLayout} === 'compactvisual' ? ${converterContext>/filterInitialLayout} : undefined }"
193
216
  disableDraftEditStateFilter="{filterBarContext>disableDraftEditStateFilter}"
194
217
  />
@@ -196,58 +219,66 @@
196
219
  </f:dependents>
197
220
  </template:then>
198
221
  </template:if>
199
- </f:DynamicPageTitle>
200
- </f:title>
201
- <f:header>
202
- <f:DynamicPageHeader pinnable="{converterContext>showPinnableToggle}">
203
- <VBox>
204
- <template:if test="{= !!${converterContext>expandedHeaderFragment} }">
205
- <template:then>
206
- <core:Fragment fragmentName="{converterContext>expandedHeaderFragment}" type="XML" />
207
- </template:then>
208
- </template:if>
209
- <template:if test="{= !${converterContext>hideFilterBar} }">
210
- <template:then>
211
- <template:with path="converterContext>filterBar" var="filterBarContext">
212
- <macroInternal:FilterBar
213
- id="{converterContext>filterBarId}"
214
- _applyIdToContent="true"
215
- metaPath="{entityType>}"
216
- variantBackreference="{= LR.getVariantBackReference(${viewData>}, ${converterContext>} )}"
217
- selectionFields="{filterBarContext>selectionFields}"
218
- internalFilterChanged=".handlers.onFiltersChanged"
219
- filterConditions="{parts:[{path:'converterContext>filterConditions'}, {path:'entitySet>'}, {path:'viewData>'}, {path:'filterBarContext>showDraftEditStatus'}], formatter: 'FILTER.getFilterConditions'}"
220
- internalSearch=".handlers.onSearch"
221
- hideBasicSearch="{filterBarContext>hideBasicSearch}"
222
- showClearButton="{filterBarContext>showClearButton}"
223
- afterClear=".onAfterClear"
224
- liveMode="{viewData>/liveMode}"
225
- showAdaptFiltersButton="true"
226
- p13nMode="Item,Value"
227
- useSemanticDateRange="{converterContext>useSemanticDateRange}"
228
- suspendSelection="true"
229
- toggleControlId="{= ${converterContext>/filterLayout} === 'compactvisual' ? ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) : undefined }"
230
- initialLayout="{= ${converterContext>/filterLayout} === 'compactvisual' ? ${converterContext>/filterInitialLayout} : undefined }"
231
- disableDraftEditStateFilter="{filterBarContext>disableDraftEditStateFilter}"
232
- />
233
- </template:with>
234
- </template:then>
235
- </template:if>
236
- <template:if test="{converterContext>easyFilterEnabled}">
222
+ <f:breadcrumbs>
223
+ <template:if test="{viewData>/breadcrumbsHierarchyMode}">
237
224
  <template:then>
238
- <macroAI:EasyFilterBar
239
- id="fe::EasyFilterBar"
240
- contextPath="{entityType>}"
241
- filterBar="{converterContext>filterBarId}"
242
- contentSwitcher="{= ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) }"
243
- contentSwitcherKey="ai"
244
- visible="false"
225
+ <macro:Breadcrumbs
226
+ visible="{= UI.getVisibleExpressionForBreadcrumbs(${viewData>/}) }"
227
+ hierarchyMode="{viewData>/breadcrumbsHierarchyMode}"
245
228
  />
246
229
  </template:then>
247
230
  </template:if>
248
- </VBox>
249
- </f:DynamicPageHeader>
250
- </f:header>
231
+ </f:breadcrumbs>
232
+ </f:DynamicPageTitle>
233
+ </f:title>
234
+ <template:if test="{= !${converterContext>hideFilterBar} }">
235
+ <f:header>
236
+ <f:DynamicPageHeader pinnable="{converterContext>showPinnableToggle}">
237
+ <VBox>
238
+ <template:if test="{= !!${converterContext>expandedHeaderFragment} }">
239
+ <template:then>
240
+ <core:Fragment fragmentName="{converterContext>expandedHeaderFragment}" type="XML" />
241
+ </template:then>
242
+ </template:if>
243
+ <template:with path="converterContext>filterBar" var="filterBarContext">
244
+ <macroInternal:FilterBar
245
+ id="{converterContext>filterBarId}"
246
+ _applyIdToContent="true"
247
+ metaPath="{entityType>}"
248
+ variantBackreference="{= LR.getVariantBackReference(${viewData>}, ${converterContext>} )}"
249
+ selectionFields="{filterBarContext>selectionFields}"
250
+ internalFilterChanged=".handlers.onFiltersChanged"
251
+ filterConditions="{parts:[{path:'converterContext>filterConditions'}, {path:'entitySet>'}, {path:'viewData>'}, {path:'filterBarContext>showDraftEditStatus'}], formatter: 'FILTER.getFilterConditions'}"
252
+ internalSearch=".handlers.onSearch"
253
+ hideBasicSearch="{filterBarContext>hideBasicSearch}"
254
+ showClearButton="{filterBarContext>showClearButton}"
255
+ afterClear=".onAfterClear"
256
+ liveMode="{viewData>/liveMode}"
257
+ showAdaptFiltersButton="true"
258
+ p13nMode="Item,Value"
259
+ useSemanticDateRange="{converterContext>useSemanticDateRange}"
260
+ suspendSelection="true"
261
+ toggleControlId="{= ${converterContext>/filterLayout} === 'compactvisual' || ${converterContext>easyFilterEnabled} ? ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) : undefined }"
262
+ initialLayout="{= ${converterContext>/filterLayout} === 'compactvisual' ? ${converterContext>/filterInitialLayout} : undefined }"
263
+ disableDraftEditStateFilter="{filterBarContext>disableDraftEditStateFilter}"
264
+ />
265
+ </template:with>
266
+ <template:if test="{converterContext>easyFilterEnabled}">
267
+ <template:then>
268
+ <macroAI:EasyFilterBar
269
+ id="fe::EasyFilterBar"
270
+ contextPath="{entityType>}"
271
+ filterBar="{converterContext>filterBarId}"
272
+ contentSwitcher="{= ID.generate([ ${converterContext>filterBarId}, 'LayoutToggle']) }"
273
+ contentSwitcherKey="ai"
274
+ visible="false"
275
+ />
276
+ </template:then>
277
+ </template:if>
278
+ </VBox>
279
+ </f:DynamicPageHeader>
280
+ </f:header>
281
+ </template:if>
251
282
  <f:content>
252
283
  <template:if test="{= ${converterContext>views}.length > 0}">
253
284
  <template:if test="{converterContext>multiViewsControl}">