@sapui5/sap.suite.ui.generic.template 1.139.0 → 1.141.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 (149) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/generic/template/.library +1 -1
  3. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +7 -9
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +4 -1
  5. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ar.properties +0 -2
  6. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +0 -2
  7. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ca.properties +0 -2
  8. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cnr.properties +0 -2
  9. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cs.properties +0 -2
  10. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cy.properties +0 -2
  11. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +0 -2
  12. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +0 -2
  13. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_el.properties +0 -2
  14. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en.properties +0 -2
  15. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_GB.properties +0 -2
  16. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saprigi.properties +0 -2
  17. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +0 -2
  18. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es_MX.properties +0 -2
  19. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_et.properties +0 -2
  20. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fi.properties +0 -2
  21. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr.properties +0 -2
  22. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +0 -2
  23. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hi.properties +0 -2
  24. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hr.properties +0 -2
  25. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hu.properties +0 -2
  26. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +0 -2
  27. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +0 -2
  28. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_iw.properties +0 -2
  29. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ja.properties +0 -2
  30. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.properties +0 -2
  31. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ko.properties +0 -2
  32. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lt.properties +0 -2
  33. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lv.properties +0 -2
  34. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +0 -2
  35. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ms.properties +0 -2
  36. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +0 -2
  37. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_no.properties +0 -2
  38. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pl.properties +0 -2
  39. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt.properties +0 -2
  40. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt_PT.properties +0 -2
  41. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ro.properties +0 -2
  42. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ru.properties +0 -2
  43. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sh.properties +0 -2
  44. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +0 -2
  45. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sl.properties +0 -2
  46. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sr.properties +0 -2
  47. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sv.properties +0 -2
  48. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_th.properties +0 -2
  49. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_tr.properties +0 -2
  50. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_uk.properties +0 -2
  51. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_vi.properties +0 -2
  52. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_CN.properties +0 -2
  53. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_TW.properties +0 -2
  54. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  55. package/src/sap/suite/ui/generic/template/Canvas/extensionAPI/ExtensionAPI.js +4 -1
  56. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  57. package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +34 -33
  58. package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +4 -1
  59. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  60. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -0
  61. package/src/sap/suite/ui/generic/template/ObjectPage/annotationHelpers/AnnotationHelperActionButtons.js +49 -5
  62. package/src/sap/suite/ui/generic/template/ObjectPage/annotationHelpers/AnnotationHelperActionButtons.qunit.js +27 -0
  63. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +65 -23
  64. package/src/sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler.js +3 -1
  65. package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +17 -13
  66. package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +285 -270
  67. package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +4 -1
  68. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  69. package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -3
  70. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +18 -2
  71. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +31 -24
  72. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartForm.fragment.xml +1 -0
  73. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +1 -0
  74. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  75. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  76. package/src/sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime.js +2 -2
  77. package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +2 -2
  78. package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +2 -2
  79. package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +2 -2
  80. package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +6 -1
  81. package/src/sap/suite/ui/generic/template/fragments/AINotice.fragment.xml +24 -0
  82. package/src/sap/suite/ui/generic/template/fragments/ToolbarButton.fragment.xml +1 -0
  83. package/src/sap/suite/ui/generic/template/genericUtilities/polyFill.js +6 -7
  84. package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +120 -0
  85. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +3 -2
  86. package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +97 -14
  87. package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +4 -2
  88. package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +23 -14
  89. package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillHandler.js +407 -0
  90. package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +82 -0
  91. package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillNonUpdatableSmartForm.fragment.xml +18 -0
  92. package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillUpdatebleSmartForm.fragment.xml +15 -0
  93. package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +40 -5
  94. package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +2 -1
  95. package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +72 -0
  96. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +48 -0
  97. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +48 -0
  98. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +48 -0
  99. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +48 -0
  100. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +48 -0
  101. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +48 -0
  102. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +48 -0
  103. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +48 -0
  104. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +48 -0
  105. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +48 -0
  106. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +48 -0
  107. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +48 -0
  108. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +48 -0
  109. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +48 -0
  110. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +48 -0
  111. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +48 -0
  112. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +48 -0
  113. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +48 -0
  114. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +48 -0
  115. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +48 -0
  116. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +48 -0
  117. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +51 -3
  118. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +48 -0
  119. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +48 -0
  120. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +48 -0
  121. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +48 -0
  122. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +49 -1
  123. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +48 -0
  124. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +48 -0
  125. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +48 -0
  126. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +48 -0
  127. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +48 -0
  128. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +48 -0
  129. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +48 -0
  130. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +48 -0
  131. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +48 -0
  132. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +48 -0
  133. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +48 -0
  134. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +48 -0
  135. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +48 -0
  136. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +48 -0
  137. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +48 -0
  138. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +48 -0
  139. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +48 -0
  140. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +48 -0
  141. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +48 -0
  142. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +48 -0
  143. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +48 -0
  144. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +48 -0
  145. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
  146. package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +1 -1
  147. package/src/sap/suite/ui/generic/template/library.js +1 -1
  148. package/src/sap/suite/ui/generic/template/listTemplates/controller/SmartChartController.js +5 -3
  149. package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +51 -0
@@ -21,7 +21,7 @@
21
21
  ariaDescribedBy="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageAction', subType: 'EditText'})}"
22
22
  fesr:press="fe:edit"
23
23
  importance="High"
24
- visible="{= ${editAction>visible} || ${parts: [{path: 'entitySet>Org.OData.Capabilities.V1.UpdateRestrictions'}, {path: 'entitySet>'}, {path: 'appSettings>/'}, {path: 'parameter>/treeNode'}, {path: 'parameter>/treeNodeAncestors'}], formatter: 'AHActionButtons.getEditActionButtonVisibility'} }">
24
+ visible="{= ${editAction>visible} || ${parts: [{path: 'entitySet>Org.OData.Capabilities.V1.UpdateRestrictions'}, {path: 'entitySet>'}, {path: 'appSettings>/'}, {path: 'parameter>/treeNode'}, {path: 'parameter>/treeNodeAncestors'}, {value: 'false'}], formatter: 'AHActionButtons.getEditActionButtonVisibility'} }">
25
25
  <template:if test="${editAction>isStandardAction}">
26
26
  <uxap:customData>
27
27
  <core:CustomData key="CrossNavigation" value="{parameter>/treeNode/page/navigation/edit/target}"/>
@@ -132,7 +132,23 @@
132
132
  type="Ghost"
133
133
  dt:designtime="not-adaptable"
134
134
  visible="{_templPrivGlobal>/generic/fioriAI/isSummarizationEnabled}" />
135
-
135
+ <template:if test="{= !${parameter>/manifest/sap.ui.generic.app/pages/0/component/settings/treeTable}}">
136
+ <template:if test="{parts: [{path: 'entitySet>Org.OData.Capabilities.V1.UpdateRestrictions'}, {path: 'entitySet>'}, {path: 'parameter>/treeNode/page/navigation/edit/target'}, {path: 'parameter>/treeNodeAncestors'}, {path: 'parameter>/isDraftEnabled'}], formatter: 'AHActionButtons.isEditButtonRequired'}">
137
+ <uxap:ObjectPageHeaderActionButton
138
+ id="EasyFill"
139
+ text="{i18n>EASY_FILL_TITLE}"
140
+ icon="sap-icon://ai"
141
+ hideText="false"
142
+ importance="High"
143
+ enabled="{ui>/enabled}"
144
+ dt:designtime="not-adaptable"
145
+ press="._templateEventHandlers.onEasyFillEdit"
146
+ ariaHasPopup="Dialog"
147
+ type="Ghost"
148
+ visible="{parts: [{path: 'entitySet>Org.OData.Capabilities.V1.UpdateRestrictions'}, {path: 'entitySet>'}, {path: 'appSettings>/'}, {path: 'parameter>/treeNode'}, {path: 'parameter>/treeNodeAncestors'}], formatter: 'AHActionButtons.getEasyFillButtonVisibility'}"
149
+ />
150
+ </template:if>
151
+ </template:if>
136
152
  <template:if test="{parameter>/settings/showRelatedApps}">
137
153
  <uxap:ObjectPageHeaderActionButton id="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageAction', subType: 'RelatedApps'}) }"
138
154
  text="{i18n>RELATED_APPS}"
@@ -28,30 +28,37 @@
28
28
  <core:CustomData key="deleteButtonId" value="{deleteAction>id}"/>
29
29
  </customData>
30
30
  </template:if>
31
- <Button id="{deleteAction>id}"
32
- text="{deleteAction>text}"
33
- press="{deleteAction>press}"
34
- fesr:press="fe:deleteItem"
35
- type="Transparent"
36
- ariaHasPopup="{deleteAction>ariaHasPopup}"
37
- enabled="{deleteAction>enabled}"
38
- visible="{= ${path: 'objectPageTableSettings>value/inlineDelete'} ? 'false' : ${parameter>/isDraftEnabled} ? '{= ${ui>/editable} }' : '{= !${ui>/editable} }'}">
39
- <template:if test="${deleteAction>isStandardAction}">
40
- <template:then>
41
- <customData>
42
- <core:CustomData key="Type" value="CRUDActionDelete"/>
43
- </customData>
44
- </template:then>
45
- <template:else>
46
- <template:if test="!${deleteAction>enabled}">
47
- <core:CustomData key="Type" value="CRUDActionDelete"/>
48
- </template:if>
49
- <layoutData>
50
- <OverflowToolbarLayoutData priority="{path: 'deleteAction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
51
- </layoutData>
52
- </template:else>
53
- </template:if>
54
- </Button>
31
+ <Button id="{deleteAction>id}"
32
+ text="{deleteAction>text}"
33
+ press="{deleteAction>press}"
34
+ fesr:press="fe:deleteItem"
35
+ type="Transparent"
36
+ ariaHasPopup="{deleteAction>ariaHasPopup}"
37
+ enabled="{deleteAction>enabled}"
38
+ visible="{parts: [
39
+ {path: 'listEntitySet>'},
40
+ {path: 'entitySet>'},
41
+ {path: 'objectPageTableSettings>value/inlineDelete'},
42
+ {path:'parameter>/isDraftEnabled'}
43
+ ], formatter: 'AH.checkForDeleteRetriction'}">
44
+ <template:if test="${deleteAction>isStandardAction}">
45
+ <template:then>
46
+ <customData>
47
+ <core:CustomData key="Type" value="CRUDActionDelete"/>
48
+ </customData>
49
+ </template:then>
50
+ <template:else>
51
+ <template:if test="!${deleteAction>enabled}">
52
+ <core:CustomData key="Type" value="CRUDActionDelete"/>
53
+ </template:if>
54
+ <layoutData>
55
+ <OverflowToolbarLayoutData priority="{path: 'deleteAction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
56
+ </layoutData>
57
+ </template:else>
58
+ </template:if>
59
+ </Button>
55
60
  </template:with>
56
61
  </template:if>
57
62
  </core:FragmentDefinition>
63
+
64
+ <!-- visible="{= ${path: 'objectPageTableSettings>value/inlineDelete'} ? 'false' : ${parameter>/isDraftEnabled} ? '{= ${ui>/editable} }' : '{= !${ui>/editable} }'}" -->
@@ -21,6 +21,7 @@
21
21
  <core:CustomData key="defaultDropDownDisplayBehaviour" value="descriptionOnly" />
22
22
  <core:CustomData key="defaultTextInEditModeSource" value="ValueListNoValidation" />
23
23
  <core:CustomData key="dateFormatSettings" value='\{"UTC":true,"style":"medium"\}' />
24
+ <core:CustomData key="smartFormAriaLabel" value="{parts: [{path: 'facet>'}, {path: 'entitySet>name'}, {path: 'block>'}, {path: 'subSectionData>'}], formatter: 'AH.getSmartFormTitle'}" />
24
25
  </sfo:customData>
25
26
  <sfo:layout>
26
27
  <template:if test="{= ${appSettings>/useColumnLayoutForSmartForm} !== false}">
@@ -62,6 +62,7 @@
62
62
  <core:CustomData key="dateFormatSettings"
63
63
  value='\{"UTC":true,"style":"medium"\}' />
64
64
  <core:CustomData key="useUTCDateTime" value="true" />
65
+ <core:CustomData key="defaultTextInEditModeSource" value="ValueList" />
65
66
  <template:if test="{= ${objectPageTableSettings>value/lineItemQualifier}}">
66
67
  <core:CustomData key="lineItemQualifier"
67
68
  value="{= ${objectPageTableSettings>value/lineItemQualifier}}" />
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.139.0"
9
+ "version": "1.141.0"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.139.0"
9
+ "version": "1.141.0"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -60,7 +60,7 @@ sap.ui.define([
60
60
  * @returns {DesigntimeSetting[]} The designtime metadata
61
61
  */
62
62
  function getAllDesigntimeSettings(oControl) {
63
- let oResourceBundle = oControl.getModel('i18n').getResourceBundle();
63
+ let oResourceBundle = designtimeUtils.getResourceBundle(oControl);
64
64
 
65
65
  /**
66
66
  * @type {DesigntimeSetting}
@@ -309,7 +309,7 @@ sap.ui.define([
309
309
  actions: {
310
310
  settings: {
311
311
  fe: {
312
- name: "Configuration",
312
+ name: designtimeUtils.getResourceBundle(oControl).getText("RTA_CONTEXT_MENU_CONFIG"),
313
313
  icon: "sap-icon://developer-settings",
314
314
  handler: fnOpenTableConfigurationDialog
315
315
  }
@@ -88,7 +88,7 @@ sap.ui.define([
88
88
  * @returns {DesigntimeSetting[]}
89
89
  */
90
90
  let getAllDesigntimeSettings = function getAllDesigntimeSettings(oControl) {
91
- let oResourceBundle = oControl.getModel('i18n').getResourceBundle();
91
+ let oResourceBundle = designtimeUtils.getResourceBundle(oControl);
92
92
 
93
93
  /**
94
94
  * @type {DesigntimeSetting}
@@ -219,7 +219,7 @@ sap.ui.define([
219
219
  actions: {
220
220
  settings: {
221
221
  fe: {
222
- name: "Configuration",
222
+ name: designtimeUtils.getResourceBundle(oControl).getText("RTA_CONTEXT_MENU_CONFIG"),
223
223
  icon: "sap-icon://developer-settings",
224
224
  handler: fnOpenObjectPageConfigurationDialog
225
225
  }
@@ -136,7 +136,7 @@ sap.ui.define([
136
136
  * @returns {DesigntimeSetting[]}
137
137
  */
138
138
  let getAllDesigntimeSettings = function getAllDesigntimeSettings(oControl) {
139
- let oResourceBundle = oControl.getModel("i18n").getResourceBundle();
139
+ let oResourceBundle = designtimeUtils.getResourceBundle(oControl);
140
140
 
141
141
  /**
142
142
  * Retrieves the enums for the SmartFilterBar control.
@@ -328,7 +328,7 @@ sap.ui.define([
328
328
  actions: {
329
329
  settings: {
330
330
  fe: {
331
- name: "Configuration",
331
+ name: designtimeUtils.getResourceBundle(oControl).getText("RTA_CONTEXT_MENU_CONFIG"),
332
332
  icon: "sap-icon://developer-settings",
333
333
  handler: fnOpenTableConfigurationDialog
334
334
  }
@@ -322,7 +322,7 @@ sap.ui.define([
322
322
  * @returns {DesigntimeSetting[]} - The designtime settings for the SmartTable.
323
323
  */
324
324
  let getAllDesigntimeSettings = function getAllDesigntimeSettings(oSmartTable, oControl) {
325
- let oResourceBundle = oControl.getModel("i18n").getResourceBundle();
325
+ let oResourceBundle = designtimeUtils.getResourceBundle(oControl);
326
326
 
327
327
  /**
328
328
  * @type {DesigntimeSetting}
@@ -518,7 +518,7 @@ sap.ui.define([
518
518
  actions: {
519
519
  settings: {
520
520
  fe: {
521
- name: "Configuration",
521
+ name: designtimeUtils.getResourceBundle(oSmartTable).getText("RTA_CONTEXT_MENU_CONFIG"),
522
522
  icon: "sap-icon://developer-settings",
523
523
  handler: fnOpenTableConfigurationDialog
524
524
  }
@@ -509,6 +509,10 @@ sap.ui.define([
509
509
  return aDesigntimeSettings;
510
510
  }
511
511
 
512
+ function getResourceBundle(oControl) {
513
+ return oControl.getModel("i18n").getResourceBundle();
514
+ }
515
+
512
516
  return {
513
517
  openAdaptionDialog: fnOpenAdaptionDialog,
514
518
  getSettings,
@@ -522,6 +526,7 @@ sap.ui.define([
522
526
  filterDesigntimeSettingsByFloorPlan,
523
527
  getRtaModeValue,
524
528
  FioriToolsRtaMode,
525
- getAllowedDesigntimeSettingsBasedOnAdaptationMode
529
+ getAllowedDesigntimeSettingsBasedOnAdaptationMode,
530
+ getResourceBundle
526
531
  };
527
532
  });
@@ -0,0 +1,24 @@
1
+ <core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
2
+ <Popover
3
+ showArrow="true"
4
+ showHeader="true"
5
+ placement="Auto"
6
+ class="sapSmartTemplatesObjectPageEasyFillAINoticePopover"
7
+ title="{i18n>EASY_FILL_POPOVER_AI_TITLE}"
8
+ >
9
+ <content>
10
+ <VBox>
11
+ <Text text="{i18n>EASY_FILL_POPOVER_AI_TEXT_1}" class="sapSmartTemplatesObjectPageEasyFillAINotice"/>
12
+ <Text text="{i18n>EASY_FILL_POPOVER_AI_TEXT_2}" class="sapSmartTemplatesObjectPageEasyFillAINotice"/>
13
+ </VBox>
14
+ </content>
15
+ <footer>
16
+ <OverflowToolbar>
17
+ <ToolbarSpacer />
18
+ <Button
19
+ text="{i18n>ST_GENERIC_DIALOG_CLOSE_BUT}"
20
+ press="onCloseAiPopover" />
21
+ </OverflowToolbar>
22
+ </footer>
23
+ </Popover>
24
+ </core:FragmentDefinition>
@@ -22,6 +22,7 @@
22
22
  <core:CustomData key="InvocationGrouping" value="{= ${dataField>InvocationGrouping/EnumMember}}"/>
23
23
  <template:with path="dataField>Action" helper="AHModel.gotoFunctionImport" var="action">
24
24
  <core:CustomData key="ActionFor" value="{action>sap:action-for}" />
25
+ <core:CustomData key="IsNavigateToInstance" value="{parts: [{path: 'parameter>/settings/sections/'}, {path: 'dataField>'}], formatter: 'AH.getNavigateToInstanceForDataFieldForAction'}" />
25
26
  </template:with>
26
27
  </customData>
27
28
  </Button>
@@ -33,13 +33,12 @@ sap.ui.define([
33
33
  */
34
34
  if (!Promise.withResolvers) {
35
35
  Promise.withResolvers = function() {
36
- var resolvers = {};
37
- var promise = new Promise(function(resolve, reject) {
38
- resolvers.resolve = resolve;
39
- resolvers.reject = reject;
40
- });
41
- Object.assign(promise, resolvers);
42
- return promise;
36
+ var result = {};
37
+ result.promise = new Promise(function(resolve, reject) {
38
+ result.resolve = resolve;
39
+ result.reject = reject;
40
+ });
41
+ return result;
43
42
  };
44
43
  }
45
44
  /**
@@ -734,6 +734,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
734
734
  }
735
735
  },
736
736
 
737
+
737
738
  getShareOptionVisibility: function(bFlexibleColumnLayout) {
738
739
  if (bFlexibleColumnLayout) {
739
740
  return "{= !(" + fnGetCommonShareVisibilityPath() + " || ${_templPrivGlobal>/generic/FCL/highestViewLevel})}";
@@ -2861,6 +2862,25 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
2861
2862
  return sNavigationPropertyPath;
2862
2863
  },
2863
2864
 
2865
+ checkForDeleteRetriction: function(oInterface, oRelatedEntitySet, oSourceEntitySet, isInline, isDraftEnabled) {
2866
+ var oModel = oInterface.getInterface(0).getModel();
2867
+ // The delete button in the table header is not required, as deletions will be handled via the inline delete button.
2868
+ if (isInline) {
2869
+ return false;
2870
+ }
2871
+ var sPath = isDraftEnabled ? "{= ${ui>/editable}" : "{= !${ui>/editable}";
2872
+ var oRestrictionSetViaNavRestrictions = oAnnotationHelper.handleNavigationRestrictions(oModel, oSourceEntitySet, oRelatedEntitySet, "Deletable");
2873
+ if (oRestrictionSetViaNavRestrictions?.Deletable) {
2874
+ if (oRestrictionSetViaNavRestrictions?.Deletable?.Bool === "false") {
2875
+ return false;
2876
+ }
2877
+ if (oRestrictionSetViaNavRestrictions?.Deletable?.Path) {
2878
+ sPath = sPath + " && ${" + oRestrictionSetViaNavRestrictions?.Deletable?.Path + "}";
2879
+ }
2880
+ }
2881
+ return sPath + "}";
2882
+ },
2883
+
2864
2884
  areBooleanRestrictionsValidAndPossible: function (oInterface, mRestrictions, oRelatedEntitySet, sRestrictionType, sSourceEntitySet, bOnlyValidityCheck) {
2865
2885
  var oSourceEntitySet;
2866
2886
  var oModel = oInterface.getInterface(0).getModel();
@@ -4414,6 +4434,24 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
4414
4434
  return sActionPress;
4415
4435
  },
4416
4436
 
4437
+ getNavigateToInstanceForDataFieldForAction: function (oSections, oDataField) {
4438
+ if (!oSections || !oDataField || !oDataField.Action || !oDataField.Action.String) {
4439
+ return undefined;
4440
+ }
4441
+ var actionKey = oDataField.Action.String.split("/")[1];
4442
+ for (var sectionKey in oSections) {
4443
+ var actions = oSections[sectionKey]?.annotatedActions;
4444
+ if (!actions) {
4445
+ continue;
4446
+ }
4447
+ var action = actions[actionKey];
4448
+ if (action && action.afterExecution && typeof action.afterExecution.navigateToInstance !== "undefined") {
4449
+ return action.afterExecution.navigateToInstance;
4450
+ }
4451
+ }
4452
+ return undefined;
4453
+ },
4454
+
4417
4455
  /**
4418
4456
  * A side effect should get triggered directly if a value is selected for a field like value help/combo box, checkbox, date picker, datetime picker
4419
4457
  * provided a side effect is defined on this field. However this should be only done if the side effect has only one source property (the source property must
@@ -4523,6 +4561,86 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
4523
4561
  break;
4524
4562
  }
4525
4563
  return sPriority;
4564
+ },
4565
+
4566
+ getModelData: function(oInterface, sBaseAnnotationPath, sEntitySetName) {
4567
+ var oModel = oInterface.getModel() ? oInterface.getModel() : oInterface.getInterface(0).getModel(),
4568
+ oBaseEntityType = oModel.getODataEntityType(oModel.getODataEntitySet(sEntitySetName).entityType);
4569
+
4570
+ if (sBaseAnnotationPath.indexOf("/") > -1) {
4571
+ var oRelevantData = oAnnotationHelper.getRelevantDataForAnnotationRecord(oModel, sBaseAnnotationPath, oBaseEntityType);
4572
+ return {
4573
+ sAnnotationPath: oRelevantData.dataFieldValuePath[0] === '@' ? oRelevantData.dataFieldValuePath.substring(1) : oRelevantData.dataFieldValuePath,
4574
+ oEntityType: oRelevantData.entityType
4575
+ };
4576
+ }
4577
+ return {
4578
+ sAnnotationPath: sBaseAnnotationPath[0] === '@' ? sBaseAnnotationPath.substring(1) : sBaseAnnotationPath,
4579
+ oEntityType: oBaseEntityType
4580
+ };
4581
+ },
4582
+
4583
+ getSmartFormTitle: function(oInterface, oFacet, sEntitySetName, oBlock, oSubSectionData) {
4584
+ if (!oFacet) {
4585
+ return oAnnotationHelper.getTitleForSectionsForms(oBlock, oSubSectionData);
4586
+ }
4587
+ return oAnnotationHelper.getTitleForHeaderForm(oInterface, oFacet, sEntitySetName);
4588
+ },
4589
+
4590
+ getTitleForSectionsForms: function(oBlock, oSubSectionData) {
4591
+ if (oSubSectionData?.annotations?.Facet?.annotation?.Facets?.length > 1
4592
+ || oSubSectionData?.annotations?.Facet?.annotation?.Label?.String !== oBlock?.aggregations?.groups[0]?.annotations?.Facet?.annotation?.Label?.String
4593
+ ) {
4594
+ // In case Section -> SubSection have more than one form, SmartForm will have it's titles visible
4595
+ // or
4596
+ // SubSectin title !== SmartForm title, SmartForm title will also be visible
4597
+ return;
4598
+ }
4599
+ if (oBlock?.aggregations?.groups[0]?.annotations?.Facet?.annotation?.Label?.String !== oBlock?.aggregations?.groups[0]?.targetAnnotation?.Label?.String) {
4600
+ // Compare SmartForm title !== FiledGroup title
4601
+ // if they differs -> use FiledGoup title
4602
+ return oBlock?.aggregations?.groups[0]?.targetAnnotation?.Label?.String;
4603
+ }
4604
+ return;
4605
+ },
4606
+
4607
+ getTitleForHeaderForm: function(oInterface, oFacet, sEntitySetName) {
4608
+ if (oFacet.Target && oFacet.Target.AnnotationPath && oFacet.Target.AnnotationPath.indexOf("com.sap.vocabularies.UI.v1.DataPoint") > -1) {
4609
+ // Process DataPoint case
4610
+ var { sAnnotationPath, oEntityType } = oAnnotationHelper.getModelData(oInterface, oFacet.Target.AnnotationPath, sEntitySetName);
4611
+ if (oEntityType[sAnnotationPath] && oEntityType[sAnnotationPath].Title && oEntityType[sAnnotationPath].Title.String) {
4612
+ return oEntityType[sAnnotationPath].Title.String;
4613
+ }
4614
+ // As DataPoint don't have title -> try to get property name as SmartForm title
4615
+ if (!oEntityType[sAnnotationPath] || !oEntityType[sAnnotationPath].Value || !oEntityType[sAnnotationPath].Value.Path || !oEntityType.property) {
4616
+ return;
4617
+ }
4618
+ var aProperty = oEntityType.property.filter(function(entry) {
4619
+ return entry.name === oEntityType[sAnnotationPath].Value.Path;
4620
+ });
4621
+ if (aProperty.length && aProperty[0]['sap:label']) {
4622
+ // Property name found
4623
+ return aProperty[0]['sap:label'];
4624
+ }
4625
+ return;
4626
+ }
4627
+ // It's Identification or FieldGroup case
4628
+ if (oFacet.Label && oFacet.Label.String) {
4629
+ return oFacet.Label.String;
4630
+ }
4631
+ if (!oFacet.Target || !oFacet.Target.AnnotationPath) {
4632
+ return;
4633
+ }
4634
+ if (oFacet.Target.AnnotationPath.indexOf("com.sap.vocabularies.UI.v1.Identification") > -1) {
4635
+ // Identification entry don't have any data which we can use as SmartForm title.
4636
+ return;
4637
+ }
4638
+ var { sAnnotationPath, oEntityType } = oAnnotationHelper.getModelData(oInterface, oFacet.Target.AnnotationPath, sEntitySetName);
4639
+ if (oEntityType[sAnnotationPath] && oEntityType[sAnnotationPath].Label && oEntityType[sAnnotationPath].Label.String) {
4640
+ // Use FieldGroup.Label.String as SmartForm title
4641
+ return oEntityType[sAnnotationPath].Label.String;
4642
+ }
4643
+ return;
4526
4644
  }
4527
4645
  };
4528
4646
  oAnnotationHelper.getBlockForEditableHeaderFacet.requiresIContext = true;
@@ -4552,6 +4670,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
4552
4670
  oAnnotationHelper.getProgressIndicatorTooltip.requiresIContext = true;
4553
4671
  oAnnotationHelper.buildExpressionForProgressIndicatorCriticality.requiresIContext = true;
4554
4672
  oAnnotationHelper.areBooleanRestrictionsValidAndPossible.requiresIContext = true;
4673
+ oAnnotationHelper.checkForDeleteRetriction.requiresIContext = true;
4555
4674
  oAnnotationHelper.isRelatedEntityCreatable.requiresIContext = true;
4556
4675
  oAnnotationHelper.isCreationAllowedByBoolAndPathRestrictions.requiresIContext = true;
4557
4676
  oAnnotationHelper.buildBreadCrumbExpression.requiresIContext = true;
@@ -4593,6 +4712,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
4593
4712
  oAnnotationHelper.getTextArrangementPath.requiresIContext = true;
4594
4713
  oAnnotationHelper.isValueHelpTableAvailable.requiresIContext = true;
4595
4714
  oAnnotationHelper.getTextArrangementFinalString.requiresIContext = true;
4715
+ oAnnotationHelper.getSmartFormTitle.requiresIContext = true;
4596
4716
 
4597
4717
  return oAnnotationHelper;
4598
4718
  }, /* bExport= */ true);
@@ -302,7 +302,8 @@ sap.ui.define([
302
302
  "fioriAI": {
303
303
  isSummarizationEnabled : false,
304
304
  isEasyFilterEnabled : false,
305
- isErrorExplanationEnabled : false
305
+ isErrorExplanationEnabled : false,
306
+ isEasyFillEnabled: false
306
307
  }
307
308
  });
308
309
  oAppComponent.setModel(oTemplateContract.oTemplatePrivateGlobalModel, "_templPrivGlobal");
@@ -944,7 +945,7 @@ sap.ui.define([
944
945
  * @public
945
946
  * @extends sap.ui.core.UIComponent
946
947
  * @author SAP SE
947
- * @version 1.139.0
948
+ * @version 1.141.0
948
949
  * @name sap.suite.ui.generic.template.lib.AppComponent
949
950
  */
950
951
  var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {