@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
@@ -1,5 +1,4 @@
1
1
  <core:FragmentDefinition
2
- xmlns:f="sap.f"
3
2
  xmlns="sap.m"
4
3
  xmlns:core="sap.ui.core"
5
4
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
@@ -17,20 +16,22 @@
17
16
  class="sapUiTinyMarginBegin"
18
17
  items="{internal>/collaboration/activeUsers}"
19
18
  visible="{= ${ui>/isEditable} &amp;&amp; ${internal>/collaboration/connected} }"
19
+ alignItems="Center"
20
+ justifyContent="Start"
20
21
  >
21
- <f:Avatar initials="{internal>initials}" backgroundColor="Accent{internal>color}" displaySize="XS" press="._showCollaborationUserDetails" />
22
+ <Avatar
23
+ initials="{internal>initials}"
24
+ backgroundColor="Accent{internal>color}"
25
+ displaySize="XS"
26
+ press="._showCollaborationUserDetails"
27
+ />
22
28
  </HBox>
23
-
24
29
  <template:if test="{entitySet>@com.sap.vocabularies.Common.v1.DraftRoot/ShareAction}">
25
30
  <!-- For now the invite action is only shown on the root. we might provide it on all levels later as well -->
26
31
  <!-- Button class="sapUiTinyMarginBegin" visible="{ui>/isEditable}" text="Invite" press="._manageCollaboration" / -->
27
- <Avatar
28
- visible="{ui>/isEditable}"
29
- backgroundColor="TileIcon"
30
- src="sap-icon://add-employee"
31
- displaySize="XS"
32
- press="._manageCollaboration"
33
- />
32
+ <HBox visible="{ui>/isEditable}" alignItems="Center" justifyContent="Start">
33
+ <Avatar backgroundColor="TileIcon" src="sap-icon://add-employee" displaySize="XS" press="._manageCollaboration" />
34
+ </HBox>
34
35
  </template:if>
35
36
  </template:if>
36
37
  </core:FragmentDefinition>
@@ -11,7 +11,7 @@
11
11
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
12
12
  xmlns:formdata="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
13
13
  template:require="{
14
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper',
14
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
15
15
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
16
16
  FIELD: 'sap/fe/macros/field/FieldHelper',
17
17
  ID: 'sap/fe/core/helpers/StableIdHelper',
@@ -71,25 +71,25 @@
71
71
  </f:fields>
72
72
  </f:FormElement>
73
73
  <template:if test="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description}">
74
- <f:FormElement id="fe::EditableHeaderForm::EditableHeaderDescription">
75
- <f:label>
76
- <Label text="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description/@@MODEL.label}">
77
- <layoutData>
78
- <f:ColumnElementData cellsLarge="12" />
79
- </layoutData>
80
- </Label>
81
- </f:label>
82
- <f:fields>
83
- <internalMacro:Field
74
+ <f:FormElement id="fe::EditableHeaderForm::EditableHeaderDescription">
75
+ <f:label>
76
+ <Label text="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description/@@MODEL.label}">
77
+ <layoutData>
78
+ <f:ColumnElementData cellsLarge="12" />
79
+ </layoutData>
80
+ </Label>
81
+ </f:label>
82
+ <f:fields>
83
+ <internalMacro:Field
84
84
  idPrefix="fe::EditableHeaderForm::EditableHeaderDescription"
85
85
  vhIdPrefix="fe::EditableHeaderForm::EditableHeaderDescription::FieldValueHelp"
86
86
  entitySet="{entitySet>}"
87
87
  dataField="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description}"
88
88
  >
89
- <internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" />
90
- </internalMacro:Field>
91
- </f:fields>
92
- </f:FormElement>
89
+ <internalMacro:formatOptions textAlignMode="Form" showEmptyIndicator="true" />
90
+ </internalMacro:Field>
91
+ </f:fields>
92
+ </f:FormElement>
93
93
  </template:if>
94
94
  </f:formElements>
95
95
  </f:FormContainer>
@@ -6,37 +6,37 @@
6
6
  xmlns:core="sap.ui.core"
7
7
  template:require="{
8
8
  ID: 'sap/fe/core/helpers/StableIdHelper',
9
- CORE: 'sap/fe/core/AnnotationHelper',
10
9
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
11
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper',
10
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
12
11
  COMMON: 'sap/fe/macros/CommonHelper',
13
12
  UI: 'sap/fe/core/templating/UIFormatters',
14
- CRIT: 'sap/fe/core/templating/CriticalityFormatters',
15
- OPTemplating: 'sap/fe/templates/ObjectPage/templating/ObjectPageTemplating'
13
+ CRIT: 'sap/fe/core/templating/CriticalityFormatters'
16
14
  }"
17
15
  >
18
-
19
16
  <OverflowToolbar
20
17
  unittest:id="OverflowToolbarTest"
21
18
  id="fe::FooterBar"
22
19
  asyncMode="true"
23
- visible="{= CORE.getFooterVisible(${converterContext>footerActions}, ${entityType>./@com.sap.vocabularies.UI.v1.Identification})}"
20
+ visible="{= OP.getFooterVisible(${converterContext>footerActions}, ${entityType>./@com.sap.vocabularies.UI.v1.Identification})}"
24
21
  >
25
- <core:InvisibleText id="fe::FooterBar::MessageButton::AriaText" text="{sap.fe.i18n>C_COMMON_SAPFE_ERROR_MESSAGES_PAGE_BUTTON_ARIA_TEXT}" />
26
- <common:MessageButton
22
+ <core:InvisibleText
23
+ id="fe::FooterBar::MessageButton::AriaText"
24
+ text="{sap.fe.i18n>C_COMMON_SAPFE_ERROR_MESSAGES_PAGE_BUTTON_ARIA_TEXT}"
25
+ />
26
+ <common:MessageButton
27
27
  id="fe::FooterBar::MessageButton"
28
28
  messageChange="_getFooterVisibility"
29
29
  ariaLabelledBy="fe::FooterBar::MessageButton::AriaText"
30
30
  type="Emphasized"
31
31
  ariaHasPopup="Dialog"
32
32
  />
33
- <ToolbarSpacer />
34
- <template:if
33
+ <ToolbarSpacer />
34
+ <template:if
35
35
  test="{= ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot} || ${entitySet>@com.sap.vocabularies.Common.v1.DraftNode}
36
36
  || COMMON.isDraftParentEntityForContainment(${entitySet>$ContainsTarget}, undefined, ${converterContext>}) }"
37
37
  >
38
- <DraftIndicator state="{ui>/draftStatus}" />
39
- </template:if>
38
+ <DraftIndicator state="{ui>/draftStatus}" />
39
+ </template:if>
40
40
  <template:if test="{converterContext>footerActions}">
41
41
  <template:repeat list="{converterContext>footerActions}" var="footerAction">
42
42
  <template:if test="{= ${footerAction>type} === 'DefaultApply'}">
@@ -45,31 +45,35 @@
45
45
  unittest:id="ApplyActionTest"
46
46
  id="fe::FooterBar::StandardAction::Apply"
47
47
  text="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_APPLY_DRAFT}"
48
- type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'CORE.buildEmphasizedButtonExpression'}"
48
+ type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'OP.buildEmphasizedButtonExpression'}"
49
49
  enabled="true"
50
50
  press="._applyDocument(${$view>/getBindingContext})"
51
- visible="{= ${ui>/editMode} === 'Editable'}"
51
+ visible="{ui>/isEditable}"
52
52
  />
53
53
  </template:then>
54
54
  <template:elseif test="{= ${footerAction>type} === 'ForAction'}">
55
55
  <template:with path="footerAction>annotationPath" var="dataField">
56
56
  <template:if test="{= !(${dataField>./@com.sap.vocabularies.UI.v1.Hidden} === true) }">
57
- <template:if test="{= ${dataField>$Type} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' &amp;&amp; ${dataField>Determining} === true}">
57
+ <template:if
58
+ test="{= ${dataField>$Type} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' &amp;&amp; ${dataField>Determining} === true}"
59
+ >
58
60
  <template:with path="dataField>Action" helper="COMMON.getActionContext" var="actionContext">
59
- <template:with path="dataField>Action" helper="COMMON.getPathToBoundActionOverload" var="isBound">
60
- <template:if test="{= ${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false }">
61
- <Button
61
+ <template:with path="dataField>Action" helper="COMMON.getPathToBoundActionOverload" var="isBound">
62
+ <template:if
63
+ test="{= ${isBound>$IsBound} !== true || ${actionContext>@Org.OData.Core.V1.OperationAvailable} !== false }"
64
+ >
65
+ <Button
62
66
  unittest:id="AnnotationActionTest"
63
67
  id="{= ID.generate(['fe', 'FooterBar', ${dataField>}] )}"
64
68
  text="{dataField>Label}"
65
69
  ariaHasPopup="{actionContext>@@COMMON.isDialog}"
66
- press="{= OP.getPressExpressionForFooterAnnotationAction(${dataField>}, ${entitySet>@sapui.name}, ${footerAction>}) }"
70
+ press="{= ${footerAction>command} ? ('cmd:' + ${footerAction>command}) : OP.getPressExpressionForFooterAnnotationAction(${dataField>}, ${entitySet>@sapui.name}, ${footerAction>}) }"
67
71
  visible="{footerAction>visible}"
68
72
  enabled="{footerAction>enabled}"
69
73
  type="{= CRIT.buildExpressionForCriticalityButtonType(${dataField>@@UI.getDataModelObjectPath}) }"
70
74
  />
71
- </template:if>
72
- </template:with>
75
+ </template:if>
76
+ </template:with>
73
77
  </template:with>
74
78
  </template:if>
75
79
  </template:if>
@@ -79,10 +83,10 @@
79
83
  <Button
80
84
  unittest:id="PrimaryActionTest"
81
85
  id="fe::FooterBar::StandardAction::Save"
82
- text="{= OPTemplating.getExpressionForSaveButton(${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
86
+ text="{= OP.getExpressionForSaveButton(${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
83
87
  tooltip="{= COMMON.getTooltipForKeyboardShortcuts(${sap.fe.i18n>T_KEYBOARD_SHORTCUT_SAVE_WIN}, ${sap.fe.i18n>T_KEYBOARD_SHORTCUT_SAVE_MAC})}"
84
- type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'CORE.buildEmphasizedButtonExpression'}"
85
- visible="{= ${ui>/editMode} === 'Editable' }"
88
+ type="{path: 'entitySet>./@com.sap.vocabularies.UI.v1.Identification', formatter: 'OP.buildEmphasizedButtonExpression'}"
89
+ visible="{ui>/isEditable}"
86
90
  enabled="true"
87
91
  press="cmd:Save"
88
92
  />
@@ -93,7 +97,7 @@
93
97
  id="fe::FooterBar::StandardAction::Cancel"
94
98
  text="{sap.fe.i18n>C_COMMON_OBJECT_PAGE_CANCEL}"
95
99
  press="cmd:Cancel"
96
- visible="{= ${ui>/editMode} === 'Editable' }"
100
+ visible="{ui>/isEditable}"
97
101
  ariaHasPopup="Dialog"
98
102
  enabled="true"
99
103
  >
@@ -102,13 +106,13 @@
102
106
  </layoutData>
103
107
  </Button>
104
108
  </template:elseif>
105
- <template:elseif test="{= CORE.isManifestAction(${footerAction>}) }">
109
+ <template:elseif test="{= OP.isManifestAction(${footerAction>}) }">
106
110
  <Button
107
111
  unittest:id="ManifestActionTest"
108
112
  core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
109
113
  id="{= ID.generate(['fe','FooterBar',${footerAction>id}])}"
110
114
  text="{footerAction>text}"
111
- press="{= CORE.buildActionWrapper(${footerAction>})}"
115
+ press="{= ${footerAction>command} ? ('cmd:' + ${footerAction>command}) : COMMON.buildActionWrapper(${footerAction>})}"
112
116
  type="Transparent"
113
117
  visible="{footerAction>visible}"
114
118
  enabled="{footerAction>enabled}"
@@ -4,11 +4,10 @@
4
4
  xmlns="sap.m"
5
5
  xmlns:core="sap.ui.core"
6
6
  template:require="{
7
- CORE: 'sap/fe/core/AnnotationHelper',
8
7
  ID: 'sap/fe/core/helpers/StableIdHelper',
9
8
  COMMON: 'sap/fe/macros/CommonHelper'
10
9
  }"
11
- >
10
+ >
12
11
  <template:if test="{= ${action>type} === 'Menu'}">
13
12
  <template:then>
14
13
  <MenuButton
@@ -22,41 +21,41 @@
22
21
  <menu>
23
22
  <Menu>
24
23
  <template:repeat list="{action>menu}" var="menuItemAction">
25
- <template:if test="{= ${menuItemAction>type} === 'Default'}">
26
- <template:then>
27
- <MenuItem
24
+ <template:if test="{= ${menuItemAction>type} === 'Default'}">
25
+ <template:then>
26
+ <MenuItem
28
27
  core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
29
28
  id="{= ID.generate(['fe',${menuItemAction>id}])}"
30
29
  text="{menuItemAction>text}"
31
- press="{= CORE.buildActionWrapper(${menuItemAction>})}"
30
+ press="{= ${menuItemAction>command} ? ('cmd:' + ${menuItemAction>command}) : COMMON.buildActionWrapper(${menuItemAction>})}"
32
31
  visible="{menuItemAction>visible}"
33
32
  enabled="{menuItemAction>enabled}"
34
- />
35
- </template:then>
36
- <template:else>
37
- <MenuItem
33
+ />
34
+ </template:then>
35
+ <template:else>
36
+ <MenuItem
38
37
  id="{menuItemAction>id}"
39
38
  binding="{menuItemAction>binding}"
40
39
  text="{menuItemAction>text}"
41
- press="{menuItemAction>press}"
40
+ press="{= ${menuItemAction>command} ? ('cmd:' + ${menuItemAction>command}) : ${menuItemAction>press}}"
42
41
  ariaHasPopup="{menuItemAction>requiresDialog}"
43
42
  visible="{menuItemAction>visible}"
44
43
  enabled="{menuItemAction>enabled}"
45
44
  macrodata:IBNData="{menuItemAction>customData}"
46
45
  />
47
- </template:else>
48
- </template:if>
46
+ </template:else>
47
+ </template:if>
49
48
  </template:repeat>
50
49
  </Menu>
51
50
  </menu>
52
51
  </MenuButton>
53
- </template:then>
52
+ </template:then>
54
53
  <template:elseif test="{= ${action>type} === 'Default'}">
55
54
  <Button
56
55
  core:require="{FPM: 'sap/fe/core/helpers/FPMHelper'}"
57
56
  id="{= ID.generate(['fe',${action>id}])}"
58
57
  text="{action>text}"
59
- press="{= CORE.buildActionWrapper(${action>})}"
58
+ press="{= ${action>command} ? ('cmd:' + ${action>command}) : COMMON.buildActionWrapper(${action>})}"
60
59
  type="Transparent"
61
60
  visible="{action>visible}"
62
61
  enabled="{action>enabled}"
@@ -67,7 +66,7 @@
67
66
  id="{action>id}"
68
67
  binding="{action>binding}"
69
68
  text="{action>text}"
70
- press="{action>press}"
69
+ press="{= ${action>command} ? ('cmd:' + ${action>command}) : ${action>press}}"
71
70
  type="{action>buttonType}"
72
71
  ariaHasPopup="{action>requiresDialog}"
73
72
  visible="{action>visible}"
@@ -3,9 +3,6 @@
3
3
  xmlns="sap.m"
4
4
  xmlns:core="sap.ui.core"
5
5
  xmlns:uxap="sap.uxap"
6
- template:require="{
7
- AH: 'sap/fe/templates/ObjectPage/AnnotationHelper'
8
- }"
9
6
  >
10
7
  <!--
11
8
  This Fragment renders Action buttons in Sections.
@@ -17,8 +14,7 @@
17
14
  -->
18
15
  <uxap:actions>
19
16
  <template:repeat list="{subSection>actions}" var="action">
20
- <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActionButtons" type="XML" />
17
+ <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.FormActionButtons" type="XML" />
21
18
  </template:repeat>
22
19
  </uxap:actions>
23
-
24
20
  </core:FragmentDefinition>
@@ -6,7 +6,7 @@
6
6
  xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
7
7
  template:require="{
8
8
  ID: 'sap/fe/core/helpers/StableIdHelper',
9
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper',
9
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating',
10
10
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
11
11
  MESSAGE: 'sap/base/strings/formatMessage',
12
12
  FIELD: 'sap/fe/macros/field/FieldHelper',
@@ -14,7 +14,6 @@
14
14
  UI: 'sap/fe/core/templating/UIFormatters'
15
15
  }"
16
16
  >
17
-
18
17
  <VBox
19
18
  id="{= ID.generate(['fe', 'HeaderFacet', ${converterHeaderFacet>headerDataPointData/type} !== 'Content' ? ${converterHeaderFacet>headerDataPointData/type} : 'KeyFigure', { Facet: ${headerFacet>} }]) }"
20
19
  >
@@ -8,7 +8,7 @@
8
8
  MODEL: 'sap/ui/model/odata/v4/AnnotationHelper',
9
9
  COMMON: 'sap/fe/macros/CommonHelper',
10
10
  FIELD: 'sap/fe/macros/field/FieldHelper',
11
- OP: 'sap/fe/templates/ObjectPage/AnnotationHelper'
11
+ OP: 'sap/fe/templates/ObjectPage/ObjectPageTemplating'
12
12
  }"
13
13
  >
14
14
  <template:if
@@ -44,8 +44,6 @@
44
44
  class="sapUiTinyMarginBottom"
45
45
  visible="{= COMMON.getHeaderDataPointLinkVisibility(ID.generate(['fe', 'HeaderDPLink', ${converterHeaderFacet>targetAnnotationValue}]), false, ${dataPoint>@@FIELD.isNotAlwaysHidden}) }"
46
46
  />
47
-
48
-
49
47
  </template:then>
50
48
  <template:elseif
51
49
  test="{= ${viewData>controlConfiguration}[${converterHeaderFacet>targetAnnotationValue}]['navigation']['targetSections'] }"
@@ -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>