@sapui5/sap.suite.ui.generic.template 1.131.1 → 1.133.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 (290) 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/Component.js +0 -4
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartFilterBarExt.js +3 -1
  5. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartKpiTag.js +37 -11
  6. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js +3 -1
  7. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroBar.js +3 -1
  8. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +26 -6
  9. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroDonut.js +3 -1
  10. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroLine.js +3 -1
  11. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +46 -15
  12. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +42 -17
  13. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +15 -6
  14. package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
  15. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saptrc.properties +105 -105
  16. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +1 -1
  17. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  18. package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +3 -0
  19. package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +17 -6
  20. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  21. package/src/sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList.js +2 -2
  22. package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +46 -22
  23. package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +18 -2
  24. package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +2 -2
  25. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +1 -4
  26. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +1 -3
  27. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +1 -3
  28. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +1 -3
  29. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +1 -3
  30. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +1 -3
  31. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +1 -3
  32. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +1 -3
  33. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +1 -3
  34. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +1 -3
  35. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +1 -3
  36. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +1 -3
  37. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +1 -3
  38. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saptrc.properties +58 -58
  39. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +1 -3
  40. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +1 -3
  41. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +1 -3
  42. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +1 -3
  43. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +1 -3
  44. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +1 -3
  45. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +1 -3
  46. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +1 -3
  47. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +1 -3
  48. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +1 -3
  49. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +1 -3
  50. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +1 -3
  51. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +1 -3
  52. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +1 -3
  53. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +1 -3
  54. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +1 -3
  55. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +1 -3
  56. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +1 -3
  57. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +1 -3
  58. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +1 -3
  59. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +1 -3
  60. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +2 -4
  61. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +1 -3
  62. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +1 -3
  63. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +1 -3
  64. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +1 -3
  65. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +1 -3
  66. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +1 -3
  67. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +1 -3
  68. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +1 -3
  69. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +1 -3
  70. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +1 -3
  71. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +1 -3
  72. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +1 -3
  73. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +1 -3
  74. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +1 -3
  75. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +1 -3
  76. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  77. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActionButtons.fragment.xml +3 -2
  78. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +1 -1
  79. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartList.fragment.xml +3 -3
  80. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +2 -1
  81. package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +13 -5
  82. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +117 -30
  83. package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +63 -10
  84. package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +34 -1
  85. package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +46 -4
  86. package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +22 -4
  87. package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +29 -5
  88. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +37 -6
  89. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +25 -5
  90. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +25 -5
  91. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +25 -5
  92. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +25 -5
  93. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +26 -6
  94. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +25 -5
  95. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +25 -5
  96. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +25 -5
  97. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +25 -5
  98. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +25 -5
  99. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +25 -5
  100. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +25 -5
  101. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saptrc.properties +95 -95
  102. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +25 -5
  103. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +25 -5
  104. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +25 -5
  105. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +25 -5
  106. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +25 -5
  107. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +25 -5
  108. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +25 -5
  109. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +25 -5
  110. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +25 -5
  111. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +25 -5
  112. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +25 -5
  113. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +25 -5
  114. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +25 -5
  115. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +25 -5
  116. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +25 -5
  117. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +25 -5
  118. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +25 -5
  119. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +25 -5
  120. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +25 -5
  121. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +25 -5
  122. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +25 -5
  123. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +25 -5
  124. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +25 -5
  125. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +25 -5
  126. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +26 -6
  127. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +25 -5
  128. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +25 -5
  129. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +25 -5
  130. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +25 -5
  131. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +25 -5
  132. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +25 -5
  133. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +25 -5
  134. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +25 -5
  135. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +27 -7
  136. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +25 -5
  137. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +25 -5
  138. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +25 -5
  139. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  140. package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -2
  141. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -2
  142. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Footer.fragment.xml +3 -3
  143. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +4 -4
  144. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderImage.fragment.xml +4 -4
  145. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartChart.fragment.xml +1 -1
  146. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +3 -2
  147. package/src/sap/suite/ui/generic/template/QuickCreate/i18n/i18n_en_US_saptrc.properties +14 -14
  148. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  149. package/src/sap/suite/ui/generic/template/QuickView/i18n/i18n_en_US_saptrc.properties +2 -2
  150. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  151. package/src/sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime.js +198 -193
  152. package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +215 -0
  153. package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +340 -0
  154. package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +43 -19
  155. package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +18 -18
  156. package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +19 -16
  157. package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +10 -7
  158. package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +52 -37
  159. package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +112 -23
  160. package/src/sap/suite/ui/generic/template/detailTemplates/i18n/i18n_en_US_saptrc.properties +6 -6
  161. package/src/sap/suite/ui/generic/template/fragments/BreakoutActions.fragment.xml +2 -2
  162. package/src/sap/suite/ui/generic/template/fragments/DeterminingActions.fragment.xml +3 -2
  163. package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +18 -20
  164. package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +0 -6
  165. package/src/sap/suite/ui/generic/template/fragments/GlobalActions.fragment.xml +3 -2
  166. package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +7 -6
  167. package/src/sap/suite/ui/generic/template/fragments/HeaderAddress.fragment.xml +2 -1
  168. package/src/sap/suite/ui/generic/template/fragments/HeaderContactWithDetailsPopover.fragment.xml +2 -1
  169. package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +2 -2
  170. package/src/sap/suite/ui/generic/template/fragments/HeaderForm.fragment.xml +1 -1
  171. package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +14 -7
  172. package/src/sap/suite/ui/generic/template/fragments/HeaderPlainText.fragment.xml +1 -1
  173. package/src/sap/suite/ui/generic/template/fragments/HeaderRatingIndicator.fragment.xml +5 -7
  174. package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -1
  175. package/src/sap/suite/ui/generic/template/fragments/ProgressIndicator.fragment.xml +2 -2
  176. package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +2 -2
  177. package/src/sap/suite/ui/generic/template/fragments/RatingIndicatorFacet.fragment.xml +2 -2
  178. package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +4 -3
  179. package/src/sap/suite/ui/generic/template/fragments/SmartMicroChart.fragment.xml +1 -1
  180. package/src/sap/suite/ui/generic/template/fragments/SmartTableUiTableCommons.fragment.xml +2 -5
  181. package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +9 -7
  182. package/src/sap/suite/ui/generic/template/fragments/TableColumnListItem.fragment.xml +2 -5
  183. package/src/sap/suite/ui/generic/template/fragments/ToolbarButton.fragment.xml +2 -2
  184. package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +4 -3
  185. package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +10 -9
  186. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +4 -2
  187. package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +70 -2
  188. package/src/sap/suite/ui/generic/template/genericUtilities/polyFill.js +14 -0
  189. package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +67 -30
  190. package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +3 -0
  191. package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +25 -14
  192. package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +78 -22
  193. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +16 -225
  194. package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +12 -3
  195. package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +5 -3
  196. package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +24 -5
  197. package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +78 -48
  198. package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +3 -3
  199. package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +39 -23
  200. package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +13 -5
  201. package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHelper.js +168 -0
  202. package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +6 -0
  203. package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
  204. package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +2 -3
  205. package/src/sap/suite/ui/generic/template/lib/ShellPersonalizationService.js +137 -0
  206. package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +56 -1
  207. package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +26 -7
  208. package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +91 -36
  209. package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +30 -35
  210. package/src/sap/suite/ui/generic/template/lib/deletionHelper.js +10 -2
  211. package/src/sap/suite/ui/generic/template/lib/filterHelper.js +7 -3
  212. package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +9 -15
  213. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +3 -9
  214. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +3 -9
  215. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +3 -9
  216. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +3 -9
  217. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +3 -9
  218. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +3 -9
  219. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +3 -9
  220. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +7 -13
  221. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +3 -9
  222. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +3 -9
  223. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +3 -9
  224. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +7 -11
  225. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +183 -149
  226. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +6 -12
  227. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +3 -9
  228. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +3 -9
  229. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +3 -9
  230. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +3 -9
  231. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +3 -9
  232. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +3 -9
  233. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +3 -9
  234. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +5 -11
  235. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +3 -9
  236. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +3 -9
  237. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +3 -9
  238. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +3 -9
  239. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +3 -9
  240. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +3 -9
  241. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +3 -9
  242. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +3 -9
  243. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +3 -9
  244. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +3 -9
  245. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +3 -9
  246. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +3 -9
  247. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +3 -9
  248. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +3 -9
  249. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +3 -9
  250. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +3 -9
  251. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +3 -9
  252. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +3 -9
  253. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +3 -9
  254. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +3 -9
  255. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +3 -9
  256. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +3 -9
  257. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +3 -9
  258. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +3 -9
  259. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +3 -9
  260. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +5 -11
  261. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +3 -9
  262. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +3 -9
  263. package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
  264. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +59 -38
  265. package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +93 -1
  266. package/src/sap/suite/ui/generic/template/library.js +7 -3
  267. package/src/sap/suite/ui/generic/template/listTemplates/fragments/ChartActions.fragment.xml +4 -3
  268. package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +4 -3
  269. package/src/sap/suite/ui/generic/template/listTemplates/i18n/i18n_en_US_saptrc.properties +1 -1
  270. package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +4 -1
  271. package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +27 -1
  272. package/src/sap/suite/ui/generic/template/support/DiagnosticsTool/DiagnosticsTool.js +15 -3
  273. package/src/sap/suite/ui/generic/template/support/DiagnosticsTool/view/DiagnosticsTool.view.xml +0 -24
  274. package/src/sap/suite/ui/generic/template/support/lib/CommonChecks.js +11 -19
  275. package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +0 -4
  276. package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ObjectPage.less +0 -4
  277. package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +0 -4
  278. package/src/sap/suite/ui/generic/template/themes/sap_fiori_3_hcb/AnalyticalListPage.less +0 -1
  279. package/src/sap/suite/ui/generic/template/themes/sap_fiori_3_hcw/AnalyticalListPage.less +0 -1
  280. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +0 -4
  281. package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/AnalyticalListPage.less +0 -1
  282. package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/AnalyticalListPage.less +0 -1
  283. package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroup.fragment.xml +0 -36
  284. package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +0 -28
  285. package/src/sap/suite/ui/generic/template/js/formatters/formatImageUrl.js +0 -21
  286. package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorAggregateCount.js +0 -21
  287. package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorFooterText.js +0 -21
  288. package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorSubTitle.js +0 -21
  289. package/src/sap/suite/ui/generic/template/js/formatters/setInfoHighlight.js +0 -21
  290. package/src/sap/suite/ui/generic/template/js/formatters/setRowNavigated.js +0 -26
@@ -0,0 +1,340 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
7
+ sap.ui.define([
8
+ "sap/base/util/deepClone",
9
+ "sap/suite/ui/generic/template/designtime/utils/designtimeUtils",
10
+ "sap/base/util/ObjectPath",
11
+ "sap/suite/ui/generic/template/genericUtilities/testableHelper"
12
+ ],
13
+ function (deepClone, designtimeUtils, ObjectPath, testableHelper) {
14
+ "use strict";
15
+
16
+ const LIST_REPORT_COMPONENT_NAME = "sap.suite.ui.generic.template.ListReport";
17
+ // ALP
18
+ const ANALYTICAL_LIST_PAGE_COMPONENT_NAME = "sap.suite.ui.generic.template.AnalyticalListPage";
19
+
20
+ /**
21
+ * @typedef {Object} DesigntimeSetting
22
+ * @property {string} id - The ID of the designtime setting.
23
+ * @property {string} name - The name of the designtime setting.
24
+ * @property {string} description - The description of the designtime setting.
25
+ * @property {PropertyValue} [value] - The default value of the designtime setting.
26
+ * @property {string} type - The type of the designtime setting.
27
+ * @property {Array.<Enum>} [enums] - The array of possible enum values for the designtime setting.
28
+ * @property {(mControlDetails: ControlInfo) => string} [getPath] - The path to the designtime setting in the manifest.
29
+ * @property {boolean} [bSupportsGlobalScope] - Indicates if the setting supports global scope. (Default: false)
30
+ * @property {string[]} [restrictedTo] - The array of components for which the setting is restricted.
31
+ * @property {Partial<DesigntimeSetting>[]} [writeObject] - An array of DesigntimeSetting objects.
32
+ * @property {string} [writeObjectFor] - The value for which the writeObject should be applied.
33
+ * @property {boolean} [skipChange] - Indicates if the change should be skipped.
34
+ * @property {boolean} keyUser - Indicates if the setting is allowed for key user.
35
+
36
+ ===============================================
37
+ * @typedef {Object} ChangeParameters - Descriptor change parameters.
38
+ * @property {string} [sScope] - The scope of the manifest setting.
39
+ * @property {string} [sChangeType] - Desciptor change type.
40
+ ===============================================
41
+
42
+ * @typedef {Object} ControlInfo
43
+ * @property {string} [sParentComponentName] - The name of the parent component.
44
+ * @extends ChangeParameters
45
+
46
+ * @typedef {ChangeParameters & ControlInfo} ControlChangeParams
47
+
48
+ * @typedef {string | boolean | string[] | null } PropertyValue
49
+
50
+ * @typedef {Object} Enum
51
+ * @property {string} id - The ID of the enum value.
52
+ * @property {string} name - The name of the enum value.
53
+ * @property {Object} [value] - The value of the enum value.
54
+ */
55
+
56
+
57
+ /**
58
+ * Retrieves the runtime adaptation properties based on the allowed design-time settings and global settings.
59
+ *
60
+ * @param {Array} aAllowedDesigntimeSettings - The array of allowed design-time settings.
61
+ * @param {Object} mFilterSettings - The global manifest settings object.
62
+ * @returns {Object} - The object containing the runtime adaptation properties.
63
+ */
64
+ function getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mFilterSettings) {
65
+ const mPropertyValues = {};
66
+
67
+ aAllowedDesigntimeSettings.forEach(oSetting => {
68
+ const sProperty = oSetting.id;
69
+ switch (sProperty) {
70
+ case "useDateRange":
71
+ mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
72
+ break;
73
+ case "navigationProperties":
74
+ mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
75
+ break;
76
+
77
+ case "showGoButtonOnFilterBar":
78
+ mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
79
+ break;
80
+ case "hideVisualFilter":
81
+ mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
82
+ break;
83
+ case "defaultFilterMode":
84
+ mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
85
+ break;
86
+ default:
87
+ break;
88
+ }
89
+ });
90
+ return mPropertyValues;
91
+ }
92
+
93
+ /**
94
+ * Retrieves the navigation properties for the SmartFilterBar control.
95
+ * Filters out excluded properties and only includes 0..1 navigation properties.
96
+ *
97
+ * @param {object} oControl - The SmartFilterBar control instance.
98
+ * @returns {Array<string>} - The array of valid navigation property names.
99
+ * @throws {Error} - Throws an error if the entity set cannot be retrieved.
100
+ */
101
+
102
+ function getNavigationProperties(oControl) {
103
+
104
+ function getNavigationPropertyNames(oEntityType) {
105
+ return (oEntityType.navigationProperty || []).map(oNavigationProperty => oNavigationProperty.name);
106
+ }
107
+
108
+ function isNotExcludedProperty(sNavigationProperty) {
109
+ const excludedProperties = ["SiblingEntity", "DraftAdministrativeData"];
110
+ return !excludedProperties.includes(sNavigationProperty);
111
+ }
112
+
113
+ function isCardinalitySupported(oMetaModel, oEntityType, sNavigationProperty) {
114
+ const multiplicity = oMetaModel.getODataAssociationEnd(oEntityType, sNavigationProperty).multiplicity;
115
+ return multiplicity.endsWith("1");
116
+ }
117
+
118
+ const oMetaModel = oControl.getModel().getMetaModel();
119
+ // Get the entity set of the SmartFilterBar control
120
+ const sEntitySet = oControl.getEntitySet?.();
121
+ if (!sEntitySet){
122
+ throw new Error("Error while retrieving the entity set of the SmartFilterBar control");
123
+ }
124
+
125
+ const oEntityType = oMetaModel.getODataEntityType(oMetaModel.getODataEntitySet(sEntitySet).entityType);
126
+
127
+
128
+ return getNavigationPropertyNames(oEntityType)
129
+ .filter(sNavigationProperty => isCardinalitySupported(oMetaModel, oEntityType, sNavigationProperty))
130
+ .filter(isNotExcludedProperty);
131
+ }
132
+
133
+ /**
134
+ * Retrieves the designtime settings for the Control.
135
+ * @param {object} oControl - The Control object.
136
+ * @returns {DesigntimeSetting[]}
137
+ */
138
+ let getAllDesigntimeSettings = function getAllDesigntimeSettings(oControl) {
139
+ /**
140
+ * Retrieves the enums for the SmartFilterBar control.
141
+ * @param {Array<string>} aPropertyNames - The array of enums.
142
+ * @returns {Array<Enum>} - The array of enums.
143
+ */
144
+ function getEnums(aPropertyNames) {
145
+ return aPropertyNames.map(sPropertyName => {
146
+ return {
147
+ id: sPropertyName,
148
+ name: sPropertyName
149
+ };
150
+ });
151
+ }
152
+
153
+
154
+ /**
155
+ * @type {DesigntimeSetting}
156
+ */
157
+
158
+ const enableDateRange = {
159
+ id: "useDateRange",
160
+ name: "Enable Date Range",
161
+ description: "Enable Date Range",
162
+ value: true,
163
+ type: "boolean",
164
+ getPath: function (mControlDetails) {
165
+ return `component/settings/filterSettings/dateSettings/useDateRange`;
166
+ },
167
+ restrictedTo: [LIST_REPORT_COMPONENT_NAME, ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
168
+ keyUser: true
169
+ };
170
+
171
+
172
+ /**
173
+ * @type {DesigntimeSetting}
174
+ */
175
+
176
+ const navigationProperties = {
177
+ id: "navigationProperties",
178
+ name: "Navigation Properties",
179
+ description: "Navigation Properties",
180
+ type: "string[]",
181
+ getPath: function (mControlDetails) {
182
+ return `component/settings/filterSettings/navigationProperties`;
183
+ },
184
+ value: [],
185
+ restrictedTo: [LIST_REPORT_COMPONENT_NAME],
186
+ enums: getEnums(getNavigationProperties(oControl)),
187
+ keyUser: true
188
+ };
189
+
190
+ /**
191
+ * @type {DesigntimeSetting}
192
+ */
193
+
194
+ const showGoButtonOnFilterBar = {
195
+ id: "showGoButtonOnFilterBar",
196
+ name: "Show Go Button on Filter Bar",
197
+ description: "Show Go Button on Filter Bar",
198
+ value: false,
199
+ type: "boolean",
200
+ getPath: function (mControlDetails) {
201
+ return `component/settings/showGoButtonOnFilterBar`;
202
+ },
203
+ restrictedTo: [ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
204
+ keyUser: true
205
+ };
206
+
207
+ /**
208
+ * @type {DesigntimeSetting}
209
+ */
210
+
211
+ const hideVisualFilter = {
212
+ id: "hideVisualFilter",
213
+ name: "Hide Visual Filter",
214
+ description: "Hide Visual Filter",
215
+ value: false,
216
+ type: "boolean",
217
+ getPath: function (mControlDetails) {
218
+ return `component/settings/hideVisualFilter`;
219
+ },
220
+ restrictedTo: [ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
221
+ keyUser: true
222
+ };
223
+
224
+ /**
225
+ * @type {DesigntimeSetting}
226
+ */
227
+
228
+ const defaultFilterMode = {
229
+ id: "defaultFilterMode",
230
+ name: "Default Filter Mode",
231
+ description: "Default Filter Mode",
232
+ value: "visual",
233
+ type: "string",
234
+ enums: [
235
+ {
236
+ id: "visual",
237
+ name: "Visual"
238
+ },
239
+ {
240
+ id: "compact",
241
+ name: "Compact"
242
+ }
243
+ ],
244
+ getPath: function (mControlDetails) {
245
+ return `component/settings/defaultFilterMode`;
246
+ },
247
+ restrictedTo: [ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
248
+ keyUser: true
249
+ };
250
+
251
+ return [
252
+ enableDateRange,
253
+ navigationProperties,
254
+ defaultFilterMode,
255
+ showGoButtonOnFilterBar,
256
+ hideVisualFilter
257
+ ];
258
+ };
259
+
260
+
261
+
262
+ function getFilterSettings(oComponent) {
263
+ const mFilterSettings = oComponent.getFilterSettings();
264
+ return {
265
+ useDateRange: ObjectPath.get("dateSettings.useDateRange", mFilterSettings),
266
+ navigationProperties: ObjectPath.get("navigationProperties", mFilterSettings),
267
+ hideVisualFilter: !!oComponent.getHideVisualFilter?.(),
268
+ defaultFilterMode: oComponent.getDefaultFilterMode?.(),
269
+ showGoButtonOnFilterBar: !!oComponent.getShowGoButtonOnFilterBar?.()
270
+ };
271
+ }
272
+
273
+ /**
274
+ * Opens the dialog for the table configuration.
275
+ * @param {sap.ui.core.Control} oControl - The control for which the dialog should be opened.
276
+ * @param {object} mPropertyBag - The property bag.
277
+ * @returns {Promise<ControlChangeParams[]>} - The changes.
278
+ */
279
+ async function fnOpenTableConfigurationDialog(oControl, mPropertyBag) {
280
+ const oResourceModel = oControl.getModel("i18n");
281
+ const oComponent = designtimeUtils.getOwnerComponentFor(oControl);
282
+ // Get the filter settings from the component
283
+ const mFilterSettings = getFilterSettings(oComponent);
284
+
285
+ // Get all the designtime settings
286
+ const aAllDesigntimeSettings = getAllDesigntimeSettings(oControl);
287
+ // Get the allowed designtime settings based on the floorplan
288
+
289
+ /**
290
+ * @type {DesigntimeSetting[]}
291
+ */
292
+ let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oControl, aAllDesigntimeSettings);
293
+
294
+ // Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
295
+ aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
296
+
297
+ // Get the current values of the properties
298
+ const mRuntimeAdaptationPropertyValues = getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mFilterSettings);
299
+ // Save the unchanged data to compare later
300
+ const mUnchangedData = deepClone(mRuntimeAdaptationPropertyValues);
301
+ // Get the settings of the dialog from the designtime settings using which the dialog will be created
302
+ const aItems = designtimeUtils.getSettings(mRuntimeAdaptationPropertyValues, aAllowedDesigntimeSettings);
303
+
304
+ // disable the scope control if there is only one option
305
+
306
+ const mPropertyValuesEntered = await designtimeUtils.openAdaptionDialog([...aItems], mRuntimeAdaptationPropertyValues, mUnchangedData, "{i18n>RTA_CONFIGURATION_TITLE_FILTER_BAR}", { width: "650px", height: "800px" }, oResourceModel);
307
+
308
+
309
+ /**
310
+ * @type {ControlChangeParams}
311
+ */
312
+ const mPathParameters = {
313
+ sChangeType: designtimeUtils.ChangeType.ChangePageConfiguration
314
+ };
315
+ return designtimeUtils.extractChanges(mPropertyValuesEntered, mUnchangedData, aAllowedDesigntimeSettings, oComponent, mPathParameters);
316
+
317
+ }
318
+
319
+ // Expose the functions for QUnit tests
320
+ testableHelper.testableStatic(fnOpenTableConfigurationDialog, "fnOpenTableConfigurationDialog");
321
+
322
+
323
+ const oHelper = {
324
+ getDesigntime: function (oControl) {
325
+ return {
326
+ actions: {
327
+ settings: {
328
+ fe: {
329
+ name: "Configuration",
330
+ icon: "sap-icon://developer-settings",
331
+ handler: fnOpenTableConfigurationDialog
332
+ }
333
+ }
334
+ }
335
+ };
336
+ }
337
+ };
338
+ return oHelper;
339
+ }
340
+ );
@@ -29,6 +29,7 @@ sap.ui.define([
29
29
  * @property {boolean=} bSupportsGlobalScope - Indicates if the setting supports global scope. (Default: false)
30
30
  * @property {string[]=} restrictedTo - The array of components for which the setting is restricted.
31
31
  * @property {boolean=} bGlobalSettingsOnly - Indicates if the setting is only available in global settings. (Default: false)
32
+ * @property {boolean} keyUser - Indicates if the setting is allowed for key user.
32
33
  */
33
34
 
34
35
  /**
@@ -129,28 +130,28 @@ sap.ui.define([
129
130
  const sProperty = oSetting.id;
130
131
  switch (sProperty) {
131
132
  case "type":
132
- mPropertyValues[sProperty] = oTableSettings.type || oSetting.value;
133
+ mPropertyValues[sProperty] = oTableSettings.type ?? oSetting.value;
133
134
  break;
134
135
  case "multiSelect":
135
- mPropertyValues[sProperty] = oTableSettings.multiSelect || oSetting.value;
136
+ mPropertyValues[sProperty] = oTableSettings.multiSelect ?? oSetting.value;
136
137
  break;
137
138
  case "createMode":
138
- mPropertyValues[sProperty] = oTableSettings.createMode || oSetting.value;
139
+ mPropertyValues[sProperty] = oTableSettings.createMode ?? oSetting.value;
139
140
  break;
140
141
  case "selectAll":
141
- mPropertyValues[sProperty] = oTableSettings.selectAll || oSetting.value;
142
+ mPropertyValues[sProperty] = oTableSettings.selectAll ?? oSetting.value;
142
143
  break;
143
144
  case "condensedTableLayout":
144
- mPropertyValues[sProperty] = oTableSettings.condensedTableLayout || oSetting.value;
145
+ mPropertyValues[sProperty] = oTableSettings.condensedTableLayout ?? oSetting.value;
145
146
  break;
146
147
  case "widthIncludingColumnHeader":
147
- mPropertyValues[sProperty] = oTableSettings.widthIncludingColumnHeader || oSetting.value;
148
+ mPropertyValues[sProperty] = oTableSettings.widthIncludingColumnHeader ?? oSetting.value;
148
149
  break;
149
150
  case "addCardtoInsightsHidden":
150
- mPropertyValues[sProperty] = oTableSettings.addCardtoInsightsHidden || oSetting.value;
151
+ mPropertyValues[sProperty] = oTableSettings.addCardtoInsightsHidden ?? oSetting.value;
151
152
  break;
152
153
  case "selectionLimit":
153
- mPropertyValues[sProperty] = oTableSettings.selectionLimit || oSetting.value;
154
+ mPropertyValues[sProperty] = oTableSettings.selectionLimit ?? oSetting.value;
154
155
  break;
155
156
  default:
156
157
  break;
@@ -159,12 +160,28 @@ sap.ui.define([
159
160
  return mPropertyValues;
160
161
  }
161
162
 
162
- async function fnOpenTableConfigurationDialog(oSmartTable, mPropertyBag) {
163
+ async function fnOpenTableConfigurationDialog(oControl, mPropertyBag) {
164
+ // if control is not a SmartTable, find the parent SmartTable
165
+ // work around for the issue where the SmartTable is not selectable in the RTA
166
+ const oSmartTable = oControl.isA("sap.ui.comp.smarttable.SmartTable") ? oControl : oControl.getParent();
167
+
168
+ if (!oSmartTable.isA("sap.ui.comp.smarttable.SmartTable")) {
169
+ throw new Error("The SmartTable control could not be found");
170
+ }
171
+
163
172
  const oResourceModel = oSmartTable.getModel("i18n");
164
173
  const oComponent = designtimeUtils.getOwnerComponentFor(oSmartTable);
165
174
  const sComponentName = oComponent.getMetadata().getComponentName();
166
175
  // Get the allowed designtime settings for the SmartTable
167
- const aAllowedDesigntimeSettings = getAllowedDesigntimeSettings(oSmartTable);
176
+ const aAllDesigntimeSettings = getAllDesigntimeSettings(oSmartTable);
177
+
178
+ /**
179
+ * @type {DesigntimeSetting[]}
180
+ */
181
+ let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oSmartTable, aAllDesigntimeSettings);
182
+
183
+ // Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
184
+ aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
168
185
 
169
186
  // Get the other table properties outside of the tableSettings Eg: settings/condensedTableLayout
170
187
  const aOtherTableProperties = ["condensedTableLayout"];
@@ -296,7 +313,7 @@ sap.ui.define([
296
313
  * @param {object} oSmartTable - The SmartTable object.
297
314
  * @returns {DesigntimeSetting[]} - The designtime settings for the SmartTable.
298
315
  */
299
- let getAllowedDesigntimeSettings = function getAllowedDesigntimeSettings(oSmartTable) {
316
+ let getAllDesigntimeSettings = function getAllDesigntimeSettings(oSmartTable) {
300
317
  /**
301
318
  * @type {DesigntimeSetting}
302
319
  */
@@ -313,7 +330,8 @@ sap.ui.define([
313
330
  { id: "TreeTable", name: "Tree Table" },
314
331
  { id: "AnalyticalTable", name: "Analytical Table" }
315
332
  ],
316
- bSupportsGlobalScope: false
333
+ bSupportsGlobalScope: false,
334
+ keyUser: true
317
335
  };
318
336
 
319
337
  /**
@@ -331,7 +349,8 @@ sap.ui.define([
331
349
  enums: [
332
350
  { id: "false", name: "Single" },
333
351
  { id: "true", name: "Multi" }
334
- ]
352
+ ],
353
+ keyUser: true
335
354
  };
336
355
 
337
356
  /**
@@ -344,7 +363,8 @@ sap.ui.define([
344
363
  value: false,
345
364
  type: "boolean",
346
365
  getPath: getPathForTableSettings("selectAll"),
347
- bSupportsGlobalScope: false
366
+ bSupportsGlobalScope: false,
367
+ keyUser: true
348
368
  };
349
369
 
350
370
  // /**
@@ -376,7 +396,8 @@ sap.ui.define([
376
396
  value: false,
377
397
  type: "boolean",
378
398
  getPath: () => "component/settings/condensedTableLayout",
379
- bSupportsGlobalScope: false
399
+ bSupportsGlobalScope: false,
400
+ keyUser: true
380
401
  };
381
402
 
382
403
  /**
@@ -391,7 +412,8 @@ sap.ui.define([
391
412
  getPath: getPathForTableSettings("widthIncludingColumnHeader"),
392
413
  bSupportsGlobalScope: true,
393
414
  restrictedTo: [sListReportComponentName],
394
- bGlobalSettingsOnly: true
415
+ bGlobalSettingsOnly: true,
416
+ keyUser: true
395
417
  };
396
418
 
397
419
  /**
@@ -404,7 +426,8 @@ sap.ui.define([
404
426
  value: false,
405
427
  type: "boolean",
406
428
  getPath: getPathForTableSettings("addCardtoInsightsHidden"),
407
- restrictedTo: [sListReportComponentName]
429
+ restrictedTo: [sListReportComponentName],
430
+ keyUser: true
408
431
  };
409
432
 
410
433
  /**
@@ -416,7 +439,8 @@ sap.ui.define([
416
439
  description: "Define the selection limit",
417
440
  value: 300,
418
441
  type: "number",
419
- getPath: getPathForTableSettings("selectionLimit")
442
+ getPath: getPathForTableSettings("selectionLimit"),
443
+ keyUser: true
420
444
  };
421
445
 
422
446
 
@@ -439,7 +463,7 @@ sap.ui.define([
439
463
  };
440
464
 
441
465
  // Expose the functions for QUnit tests
442
- getAllowedDesigntimeSettings = testableHelper.testableStatic(getAllowedDesigntimeSettings, "getAllowedDesigntimeSettings");
466
+ getAllDesigntimeSettings = testableHelper.testableStatic(getAllDesigntimeSettings, "getAllDesigntimeSettings");
443
467
  getPathForTableSettings = testableHelper.testableStatic(getPathForTableSettings, "getPathForTableSettings");
444
468
  testableHelper.testableStatic(getRuntimeAdapationProperties, "getRuntimeAdapationProperties");
445
469
  testableHelper.testableStatic(getManifestTableSettings, "getManifestTableSettings");
@@ -6,11 +6,14 @@
6
6
  */
7
7
  // Provides the design time metadata for the sap.suite.ui.generic.template.AnalyticalListPage component
8
8
 
9
- sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"],
10
- function (designtimeHelper) {
9
+ sap.ui.define([
10
+ "sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
11
+ "sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
12
+ ],
13
+ function (designtimeHelper, designtimeUtils) {
11
14
  "use strict";
12
15
 
13
- // allow list for designtime adaptation / level-0.
16
+ // allow list for designtime adaptation / level-0.
14
17
  var mAllowLevel0 = {
15
18
  "sap.f.DynamicPage": {
16
19
  properties: ["headerExpanded", "preserveHeaderStateOnScroll"]
@@ -42,7 +45,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
42
45
  properties: ["liveMode", "showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "considerPresentationVariant"]
43
46
  },
44
47
  "sap.m.Table": {
45
- properties: ["growingThreshold"]
48
+ properties: ["growingThreshold", "rememberSelections"]
46
49
  },
47
50
  "sap.m.Column": {
48
51
  properties: ["width", "hAlign"]
@@ -60,12 +63,9 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
60
63
  properties: ["scrollThreshold"]
61
64
  }
62
65
  };
63
-
64
- // grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
66
+
67
+ // grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
65
68
  var mGreyLevel0 = {
66
- "sap.suite.ui.generic.template.AnalyticalListPage.control.smartfilterbarext:SmartFilterBarExt": {
67
- properties: ["useDateRangeType"]
68
- },
69
69
  "sap.ui.table.AnalyticalTable": {
70
70
  properties: ["selectionMode", "minAutoRowCount", "visibleRowCountMode"]
71
71
  },
@@ -76,12 +76,12 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
76
76
  properties: ["header", "useTooltip"]
77
77
  }
78
78
  };
79
-
80
- // allow list for key user adaptation.
79
+
80
+ // allow list for key user adaptation.
81
81
  var mAllowKeyUser = {
82
82
  "sap.m.MenuButton": { // used for create and create with filters and possibly created by combining of buttons
83
83
  actions: ["split", "rename", "remove"]
84
- },
84
+ },
85
85
  "sap.m.Button": {
86
86
  actions: ["remove", "reveal", "rename"]
87
87
  },
@@ -104,7 +104,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
104
104
  actions: ["rename"]
105
105
  }
106
106
  };
107
-
107
+
108
108
  // allow list for variant management: All changes done here are stored with a variant, and only applied when that variant is selected.
109
109
  // this mode is indicated by url parameter fiori-tools-rta-mode=true
110
110
  var mAllowVariantManagement = {
@@ -127,8 +127,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
127
127
  // there's no reliable way to differentiate designtime adaptation and key user adaptation. However
128
128
  // - property changes are possible only in designtime adaptation
129
129
  // - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
130
- const sRtaModeValue = designtimeHelper.getRtaModeValue();
131
- const mAllow = sRtaModeValue === designtimeHelper.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
132
- return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
133
- });
134
-
130
+ const sRtaModeValue = designtimeUtils.getRtaModeValue();
131
+ const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
132
+ return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
133
+ });
134
+
@@ -6,11 +6,14 @@
6
6
  */
7
7
  // Provides the design time metadata for the sap.suite.ui.generic.template.ListReport component
8
8
 
9
- sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"],
10
- function (designtimeHelper) {
9
+ sap.ui.define([
10
+ "sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
11
+ "sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
12
+ ],
13
+ function (designtimeHelper, designtimeUtils) {
11
14
  "use strict";
12
15
 
13
- // allow list for designtime adaptation / level-0.
16
+ // allow list for designtime adaptation / level-0.
14
17
  var mAllowLevel0 = {
15
18
  "sap.f.DynamicPage": {
16
19
  properties: ["fitContent"]
@@ -23,7 +26,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
23
26
  actions: ["settings"]
24
27
  },
25
28
  "sap.m.Table": {
26
- properties: ["popinLayout", "includeItemInSelection", "growingThreshold"]
29
+ properties: ["popinLayout", "includeItemInSelection", "growingThreshold", "rememberSelections"]
27
30
  },
28
31
  "sap.m.Column": {
29
32
  properties: ["width", "hAlign"]
@@ -62,8 +65,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
62
65
  properties: ["scrollThreshold"]
63
66
  }
64
67
  };
65
-
66
- // grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
68
+
69
+ // grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
67
70
  var mGreyLevel0 = {
68
71
  "sap.f.DynamicPage": {
69
72
  properties: ["headerExpanded"]
@@ -72,7 +75,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
72
75
  properties: ["width"]
73
76
  },
74
77
  "sap.ui.comp.smartfilterbar.SmartFilterBar": {
75
- properties: ["showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "useDateRangeType", "filterBarExpanded", "showGoOnFB"]
78
+ properties: ["showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "filterBarExpanded", "showGoOnFB"]
76
79
  },
77
80
  "sap.m.Label": { // not created by us, but by SFB
78
81
  properties: ["width", "wrapping"]
@@ -120,8 +123,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
120
123
  properties: ["type"]
121
124
  }
122
125
  };
123
-
124
- // allow list for key user adaptation.
126
+
127
+ // allow list for key user adaptation.
125
128
  var mAllowKeyUser = {
126
129
  "sap.ui.comp.smartform.SmartForm": { // used in multiedit dialog
127
130
  aggregations: {
@@ -143,7 +146,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
143
146
  },
144
147
  "sap.m.MenuButton": { // used for create and create with filters and possibly created by combining of buttons
145
148
  actions: ["split", "rename", "remove"]
146
- },
149
+ },
147
150
  "sap.m.Button": {
148
151
  actions: ["remove", "reveal", "rename"]
149
152
  },
@@ -166,7 +169,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
166
169
  actions: ["rename"]
167
170
  }
168
171
  };
169
-
172
+
170
173
  // allow list for variant management: All changes done here are stored with a variant, and only applied when that variant is selected.
171
174
  // this mode is indicated by url parameter fiori-tools-rta-mode=true
172
175
  var mAllowVariantManagement = {
@@ -189,8 +192,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
189
192
  // there's no reliable way to differentiate designtime adaptation and key user adaptation. However
190
193
  // - property changes are possible only in designtime adaptation
191
194
  // - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
192
- const sRtaModeValue = designtimeHelper.getRtaModeValue();
193
- const mAllow = sRtaModeValue === designtimeHelper.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
194
- return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
195
- });
196
-
195
+ const sRtaModeValue = designtimeUtils.getRtaModeValue();
196
+ const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
197
+ return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
198
+ });
199
+