@openui5/sap.ui.mdc 1.103.0 → 1.105.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 (320) hide show
  1. package/.reuse/dep5 +18 -1
  2. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  3. package/THIRDPARTY.txt +36 -3
  4. package/package.json +4 -4
  5. package/src/sap/ui/mdc/.library +1 -1
  6. package/src/sap/ui/mdc/ActionToolbar.js +3 -3
  7. package/src/sap/ui/mdc/AggregationBaseDelegate.js +1 -1
  8. package/src/sap/ui/mdc/Chart.js +49 -35
  9. package/src/sap/ui/mdc/ChartDelegate.js +2 -2
  10. package/src/sap/ui/mdc/ChartRenderer.js +1 -1
  11. package/src/sap/ui/mdc/Control.js +1 -1
  12. package/src/sap/ui/mdc/Delegate.js +2 -2
  13. package/src/sap/ui/mdc/Element.js +1 -1
  14. package/src/sap/ui/mdc/Field.js +2 -2
  15. package/src/sap/ui/mdc/FilterBar.js +3 -3
  16. package/src/sap/ui/mdc/FilterBarDelegate.js +2 -2
  17. package/src/sap/ui/mdc/FilterField.js +2 -2
  18. package/src/sap/ui/mdc/Link.js +76 -15
  19. package/src/sap/ui/mdc/LinkDelegate.js +83 -78
  20. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  21. package/src/sap/ui/mdc/Table.js +18 -6
  22. package/src/sap/ui/mdc/TableDelegate.js +27 -11
  23. package/src/sap/ui/mdc/ValueHelp.js +7 -7
  24. package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -2
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +3 -3
  26. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
  27. package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +70 -0
  28. package/src/sap/ui/mdc/chart/ChartImplementationContainerRenderer.js +49 -0
  29. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
  30. package/src/sap/ui/mdc/chart/ChartSettings.js +2 -2
  31. package/src/sap/ui/mdc/chart/ChartToolbar.js +24 -10
  32. package/src/sap/ui/mdc/chart/ChartTypeButton.js +2 -2
  33. package/src/sap/ui/mdc/chart/PropertyHelper.js +3 -3
  34. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  35. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  36. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  37. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  38. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
  39. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  40. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
  41. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  42. package/src/sap/ui/mdc/designtime/Util.js +2 -2
  43. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +15 -4
  44. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +2 -2
  45. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +5 -2
  46. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +2 -2
  47. package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +2 -2
  48. package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +2 -2
  49. package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +2 -2
  50. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +4 -3
  51. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +2 -2
  52. package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +2 -2
  53. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +2 -2
  54. package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +2 -2
  55. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +10 -8
  56. package/src/sap/ui/mdc/enum/PropagationReason.js +2 -2
  57. package/src/sap/ui/mdc/enum/SelectType.js +2 -2
  58. package/src/sap/ui/mdc/field/BoolFieldHelp.js +3 -3
  59. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +3 -3
  60. package/src/sap/ui/mdc/field/ConditionType.js +1 -1
  61. package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
  62. package/src/sap/ui/mdc/field/CustomFieldHelp.js +3 -3
  63. package/src/sap/ui/mdc/field/CustomFieldInfo.js +3 -3
  64. package/src/sap/ui/mdc/field/DefineConditionPanel.js +1 -1
  65. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
  66. package/src/sap/ui/mdc/field/FieldBase.js +4 -5
  67. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +2 -2
  68. package/src/sap/ui/mdc/field/FieldHelpBase.js +3 -3
  69. package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +2 -2
  70. package/src/sap/ui/mdc/field/FieldInfoBase.js +30 -29
  71. package/src/sap/ui/mdc/field/FieldInput.js +3 -3
  72. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  73. package/src/sap/ui/mdc/field/FieldMultiInput.js +3 -3
  74. package/src/sap/ui/mdc/field/FieldValueHelp.js +3 -3
  75. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +3 -3
  76. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +2 -2
  77. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -3
  78. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +3 -3
  79. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
  80. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +3 -3
  81. package/src/sap/ui/mdc/field/InParameter.js +3 -3
  82. package/src/sap/ui/mdc/field/ListFieldHelp.js +3 -3
  83. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  84. package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +2 -2
  85. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +3 -3
  86. package/src/sap/ui/mdc/field/OutParameter.js +3 -3
  87. package/src/sap/ui/mdc/field/TokenDisplay.js +3 -3
  88. package/src/sap/ui/mdc/field/TokenizerDisplay.js +3 -3
  89. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  90. package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
  91. package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
  92. package/src/sap/ui/mdc/field/content/DateContent.js +10 -2
  93. package/src/sap/ui/mdc/field/content/DateTimeContent.js +2 -2
  94. package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
  95. package/src/sap/ui/mdc/field/content/LinkContent.js +2 -2
  96. package/src/sap/ui/mdc/field/content/SearchContent.js +2 -2
  97. package/src/sap/ui/mdc/field/content/TimeContent.js +2 -2
  98. package/src/sap/ui/mdc/field/content/UnitContent.js +2 -2
  99. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +17 -4
  100. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +2 -2
  101. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +4 -4
  102. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +2 -2
  103. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +2 -2
  104. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +5 -5
  105. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
  106. package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +2 -2
  107. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +2 -2
  108. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +2 -2
  109. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +2 -2
  110. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +3 -3
  111. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +2 -2
  112. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +2 -2
  113. package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +2 -2
  114. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  115. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +3 -3
  116. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +2 -2
  117. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +2 -2
  118. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +2 -2
  119. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +104 -131
  120. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +3 -3
  121. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +3 -3
  122. package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -2
  123. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +24 -20
  124. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +4 -5
  125. package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +2 -2
  126. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +2 -2
  127. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  128. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +2 -2
  129. package/src/sap/ui/mdc/flexibility/Util.js +3 -3
  130. package/src/sap/ui/mdc/flexibility/xConfigFlex.js +2 -2
  131. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -2
  132. package/src/sap/ui/mdc/library.js +7 -2
  133. package/src/sap/ui/mdc/link/ContactDetails.js +3 -3
  134. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +3 -3
  135. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +3 -3
  136. package/src/sap/ui/mdc/link/ContactDetailsItem.js +3 -3
  137. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +3 -3
  138. package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +2 -2
  139. package/src/sap/ui/mdc/link/Factory.js +3 -3
  140. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  141. package/src/sap/ui/mdc/link/LinkItem.js +3 -3
  142. package/src/sap/ui/mdc/link/Log.js +2 -2
  143. package/src/sap/ui/mdc/link/Panel.js +5 -4
  144. package/src/sap/ui/mdc/link/PanelItem.js +3 -3
  145. package/src/sap/ui/mdc/link/PanelRenderer.js +2 -2
  146. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +3 -3
  147. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +3 -3
  148. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +3 -3
  149. package/src/sap/ui/mdc/messagebundle.properties +9 -3
  150. package/src/sap/ui/mdc/messagebundle_ar.properties +5 -2
  151. package/src/sap/ui/mdc/messagebundle_bg.properties +5 -2
  152. package/src/sap/ui/mdc/messagebundle_ca.properties +5 -2
  153. package/src/sap/ui/mdc/messagebundle_cs.properties +8 -5
  154. package/src/sap/ui/mdc/messagebundle_cy.properties +5 -2
  155. package/src/sap/ui/mdc/messagebundle_da.properties +5 -2
  156. package/src/sap/ui/mdc/messagebundle_de.properties +5 -2
  157. package/src/sap/ui/mdc/messagebundle_el.properties +6 -3
  158. package/src/sap/ui/mdc/messagebundle_en.properties +5 -2
  159. package/src/sap/ui/mdc/messagebundle_en_GB.properties +5 -2
  160. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +5 -2
  161. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +5 -2
  162. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +5 -2
  163. package/src/sap/ui/mdc/messagebundle_es.properties +5 -2
  164. package/src/sap/ui/mdc/messagebundle_es_MX.properties +5 -2
  165. package/src/sap/ui/mdc/messagebundle_et.properties +5 -2
  166. package/src/sap/ui/mdc/messagebundle_fi.properties +5 -2
  167. package/src/sap/ui/mdc/messagebundle_fr.properties +9 -6
  168. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +5 -2
  169. package/src/sap/ui/mdc/messagebundle_hi.properties +5 -2
  170. package/src/sap/ui/mdc/messagebundle_hr.properties +8 -5
  171. package/src/sap/ui/mdc/messagebundle_hu.properties +6 -3
  172. package/src/sap/ui/mdc/messagebundle_id.properties +5 -2
  173. package/src/sap/ui/mdc/messagebundle_it.properties +49 -46
  174. package/src/sap/ui/mdc/messagebundle_iw.properties +6 -3
  175. package/src/sap/ui/mdc/messagebundle_ja.properties +5 -2
  176. package/src/sap/ui/mdc/messagebundle_kk.properties +5 -2
  177. package/src/sap/ui/mdc/messagebundle_ko.properties +8 -5
  178. package/src/sap/ui/mdc/messagebundle_lt.properties +5 -2
  179. package/src/sap/ui/mdc/messagebundle_lv.properties +5 -2
  180. package/src/sap/ui/mdc/messagebundle_ms.properties +5 -2
  181. package/src/sap/ui/mdc/messagebundle_nl.properties +5 -2
  182. package/src/sap/ui/mdc/messagebundle_no.properties +6 -3
  183. package/src/sap/ui/mdc/messagebundle_pl.properties +5 -2
  184. package/src/sap/ui/mdc/messagebundle_pt.properties +6 -3
  185. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +5 -2
  186. package/src/sap/ui/mdc/messagebundle_ro.properties +5 -2
  187. package/src/sap/ui/mdc/messagebundle_ru.properties +5 -2
  188. package/src/sap/ui/mdc/messagebundle_sh.properties +5 -2
  189. package/src/sap/ui/mdc/messagebundle_sk.properties +5 -2
  190. package/src/sap/ui/mdc/messagebundle_sl.properties +5 -2
  191. package/src/sap/ui/mdc/messagebundle_sv.properties +5 -2
  192. package/src/sap/ui/mdc/messagebundle_th.properties +14 -11
  193. package/src/sap/ui/mdc/messagebundle_tr.properties +5 -2
  194. package/src/sap/ui/mdc/messagebundle_uk.properties +6 -3
  195. package/src/sap/ui/mdc/messagebundle_vi.properties +5 -2
  196. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +6 -3
  197. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +5 -2
  198. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  199. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  200. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  201. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  202. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  203. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +2 -2
  204. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +3 -3
  205. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +2 -2
  206. package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +2 -2
  207. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +63 -39
  208. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
  209. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +2 -2
  210. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +61 -229
  211. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +3 -3
  212. package/src/sap/ui/mdc/p13n/Engine.js +3 -3
  213. package/src/sap/ui/mdc/p13n/FlexUtil.js +4 -4
  214. package/src/sap/ui/mdc/p13n/P13nBuilder.js +81 -6
  215. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +26 -4
  216. package/src/sap/ui/mdc/p13n/PropertyHelper.js +3 -3
  217. package/src/sap/ui/mdc/p13n/StateUtil.js +4 -4
  218. package/src/sap/ui/mdc/p13n/UIManager.js +3 -3
  219. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +3 -3
  220. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +3 -3
  221. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +31 -11
  222. package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +2 -2
  223. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +2 -2
  224. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +3 -9
  225. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +39 -12
  226. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +2 -2
  227. package/src/sap/ui/mdc/p13n/panels/GroupView.js +2 -2
  228. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +2 -2
  229. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +2 -2
  230. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +2 -2
  231. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  232. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +3 -3
  233. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +2 -2
  234. package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +2 -2
  235. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +2 -2
  236. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +2 -2
  237. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +4 -5
  238. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +2 -2
  239. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +4 -3
  240. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +2 -2
  241. package/src/sap/ui/mdc/table/Column.js +29 -3
  242. package/src/sap/ui/mdc/table/CreationRow.js +3 -3
  243. package/src/sap/ui/mdc/table/GridTableType.js +7 -2
  244. package/src/sap/ui/mdc/table/PropertyHelper.js +29 -34
  245. package/src/sap/ui/mdc/table/ResponsiveTableType.js +4 -3
  246. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  247. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  248. package/src/sap/ui/mdc/table/TableSettings.js +2 -2
  249. package/src/sap/ui/mdc/table/TableTypeBase.js +5 -2
  250. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +4 -9
  251. package/src/sap/ui/mdc/table/menu/Item.js +3 -3
  252. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
  253. package/src/sap/ui/mdc/themes/base/Chart.less +28 -0
  254. package/src/sap/ui/mdc/themes/base/InfoPanel.less +0 -1
  255. package/src/sap/ui/mdc/util/Common.js +2 -2
  256. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  257. package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
  258. package/src/sap/ui/mdc/util/IdentifierUtil.js +2 -2
  259. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  260. package/src/sap/ui/mdc/util/PropertyHelper.js +59 -55
  261. package/src/sap/ui/mdc/valuehelp/Dialog.js +5 -3
  262. package/src/sap/ui/mdc/valuehelp/Popover.js +36 -8
  263. package/src/sap/ui/mdc/valuehelp/base/Container.js +7 -7
  264. package/src/sap/ui/mdc/valuehelp/base/Content.js +7 -7
  265. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +3 -3
  266. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +3 -3
  267. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -3
  268. package/src/sap/ui/mdc/valuehelp/content/Bool.js +3 -3
  269. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +3 -3
  270. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +3 -3
  271. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +27 -5
  272. package/src/sap/ui/mdc/valuehelp/content/MTable.js +4 -4
  273. package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
  274. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  275. package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
  276. package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
  277. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
  278. package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +482 -0
  279. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +379 -267
  280. package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
  281. package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +41 -0
  282. package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
  283. package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
  284. package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
  285. package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
  286. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
  287. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
  288. package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
  289. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +100 -34
  290. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +3 -3
  291. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
  292. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
  293. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
  294. package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
  295. package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
  296. package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
  297. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
  298. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
  299. package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
  300. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
  301. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +26 -16
  302. package/test/sap/ui/mdc/testutils/opa/p13n/Assertions.js +293 -2
  303. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +4 -3
  304. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
  305. package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
  306. package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +256 -0
  307. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +179 -12
  308. package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
  309. package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
  310. package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
  311. package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
  312. package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
  313. package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
  314. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
  315. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +3 -3
  316. package/ui5.yaml +4 -1
  317. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
  318. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
  319. package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
  320. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -19,81 +19,86 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate'], function(BaseDelegate) {
19
19
  * @ui5-restricted sap.ui.mdc, sap.fe
20
20
  * @MDC_PUBLIC_CANDIDATE
21
21
  */
22
- var LinkDelegate = Object.assign({}, BaseDelegate, {
23
- /**
24
- * Retrieves and returns the relevant {@link sap.ui.mdc.link.LinkItem} for the <code>Link</code> control.
25
- * @protected
26
- * @ui5-restricted sap.ui.mdc
27
- * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
28
- * @param {Object} oBindingContext Binding context of the <code>Link</code> control
29
- * @param {Object} oInfoLog InfoLog of the <code>Link</code> control
30
- * @returns {Promise} Once resolved, <code>null</code> or an array of {@link sap.ui.mdc.link.LinkItem} is returned
31
- * If <code>null</code> is returned, the link won't cache <code>LinkItem</code>.
32
- */
33
- fetchLinkItems: function(oPayload, oBindingContext, oInfoLog) {
34
- return Promise.resolve(null);
35
- },
36
- /**
37
- * @typedef {object} sap.ui.mdc.LinkDelegate.LinkType
38
- * @property {number} type 0 (Text) | 1 (Direct Link) | 2 (Popup)
39
- * If <code>oLinkType.type</code> is 0, the link is rendered as a text.
40
- * If <code>oLinkType.type</code> is 1, the link is rendered as a link. When pressed the link triggers a direct navigation instead.
41
- * If <code>oLinkType.type</code> is 2, the link is rendered as a link and opens a popover (default).
42
- * @property {sap.ui.mdc.link.LinkItem} directLink Instance of {@link sap.ui.mdc.link.LinkItem} which is used for direct navigation
43
- */
44
- /**
45
- * Calculates and returns the type of link that is displayed.
46
- * @protected
47
- * @ui5-restricted sap.ui.mdc
48
- * @param {Object} oPayload Payload of the <code>Link</code> given by the application
49
- * @returns {Promise} Once resolved, an object containing an initial {@link sap.ui.mdc.LinkDelegate.LinkType} and an optional <code>Promise</code> are returned
50
- * The optional <code>Promise</code> also returns a {@link sap.ui.mdc.LinkDelegate.LinkType} object.
51
- * Once the optional <code>Promise</code> has been resolved, the returned {@link sap.ui.mdc.LinkDelegate.LinkType} overwrites the <code>initialType</code>.
52
- */
53
- fetchLinkType: function(oPayload, oLink) {
54
- return Promise.resolve({
55
- initialType: {
56
- type: 2,
57
- directLink: undefined
58
- },
59
- runtimeType: null
60
- });
61
- },
62
- /**
63
- * Retrieves and returns the relevant <code>additionalContent</code> for the <code>Link</code> control as an array.
64
- * @protected
65
- * @ui5-restricted sap.ui.mdc
66
- * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
67
- * @param {Object} oLink Instance of the <code>Link</code> control
68
- * @returns {Promise} Once resolved, an array of {@link sap.ui.core.Control} is returned
69
- */
70
- fetchAdditionalContent: function(oPayload, oLink) {
71
- return Promise.resolve([]);
72
- },
73
- /**
74
- * Enables the modification of the {@link sap.ui.mdc.link.LinkItem} instances before the popover opens. This enables additional parameters
75
- * to be added to the link.
76
- * @protected
77
- * @ui5-restricted sap.ui.mdc
78
- * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
79
- * @param {Object} oBindingContext Binding context of the <code>Link</code> control
80
- * @param {sap.ui.mdc.link.LinkItem} aLinkItems The {@link sap.ui.mdc.link.LinkItem} instances of the link that can be modified
81
- * @returns {Promise} Once resolved, an array of link items is returned
82
- */
83
- modifyLinkItems: function(oPayload, oBindingContext, aLinkItems) {
84
- return Promise.resolve(aLinkItems);
85
- },
86
- /**
87
- * Allows for interception before the actual navigation takes place.
88
- * @protected
89
- * @ui5-restricted sap.ui.mdc
90
- * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
91
- * @param {Object} oEvent The <code>pressLink</code> event which is fired by the <code>Link</code> control
92
- * @returns {Promise} Once resolved, it returns a Boolean value which determines whether the navigation takes place
93
- */
94
- beforeNavigationCallback: function(oPayload, oEvent) {
95
- return Promise.resolve(true);
96
- }
97
- });
22
+ var LinkDelegate = Object.assign({}, BaseDelegate);
23
+
24
+ /**
25
+ * Retrieves and returns the relevant {@link sap.ui.mdc.link.LinkItem} for the <code>Link</code> control.
26
+ * @protected
27
+ * @ui5-restricted sap.ui.mdc
28
+ * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
29
+ * @param {Object} oBindingContext Binding context of the <code>Link</code> control
30
+ * @param {Object} oInfoLog InfoLog of the <code>Link</code> control
31
+ * @returns {Promise} Once resolved, <code>null</code> or an array of {@link sap.ui.mdc.link.LinkItem} is returned
32
+ * If <code>null</code> is returned, the link won't cache <code>LinkItem</code>.
33
+ */
34
+ LinkDelegate.fetchLinkItems = function(oPayload, oBindingContext, oInfoLog) {
35
+ return Promise.resolve(null);
36
+ };
37
+
38
+ /**
39
+ * @typedef {object} sap.ui.mdc.LinkDelegate.LinkType
40
+ * @property {number} type 0 (Text) | 1 (Direct Link) | 2 (Popup)
41
+ * If <code>oLinkType.type</code> is 0, the link is rendered as a text.
42
+ * If <code>oLinkType.type</code> is 1, the link is rendered as a link. When pressed the link triggers a direct navigation instead.
43
+ * If <code>oLinkType.type</code> is 2, the link is rendered as a link and opens a popover (default).
44
+ * @property {sap.ui.mdc.link.LinkItem} directLink Instance of {@link sap.ui.mdc.link.LinkItem} which is used for direct navigation
45
+ */
46
+ /**
47
+ * Calculates and returns the type of link that is displayed.
48
+ * @protected
49
+ * @ui5-restricted sap.ui.mdc
50
+ * @param {Object} oPayload Payload of the <code>Link</code> given by the application
51
+ * @returns {Promise} Once resolved, an object containing an initial {@link sap.ui.mdc.LinkDelegate.LinkType} and an optional <code>Promise</code> are returned
52
+ * The optional <code>Promise</code> also returns a {@link sap.ui.mdc.LinkDelegate.LinkType} object.
53
+ * Once the optional <code>Promise</code> has been resolved, the returned {@link sap.ui.mdc.LinkDelegate.LinkType} overwrites the <code>initialType</code>.
54
+ */
55
+ LinkDelegate.fetchLinkType = function(oPayload, oLink) {
56
+ return Promise.resolve({
57
+ initialType: {
58
+ type: 2,
59
+ directLink: undefined
60
+ },
61
+ runtimeType: null
62
+ });
63
+ };
64
+
65
+ /**
66
+ * Retrieves and returns the relevant <code>additionalContent</code> for the <code>Link</code> control as an array.
67
+ * @protected
68
+ * @ui5-restricted sap.ui.mdc
69
+ * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
70
+ * @param {Object} oLink Instance of the <code>Link</code> control
71
+ * @returns {Promise} Once resolved, an array of {@link sap.ui.core.Control} is returned
72
+ */
73
+ LinkDelegate.fetchAdditionalContent = function(oPayload, oLink) {
74
+ return Promise.resolve([]);
75
+ };
76
+
77
+ /**
78
+ * Enables the modification of the {@link sap.ui.mdc.link.LinkItem} instances before the popover opens. This enables additional parameters
79
+ * to be added to the link.
80
+ * @protected
81
+ * @ui5-restricted sap.ui.mdc
82
+ * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
83
+ * @param {Object} oBindingContext Binding context of the <code>Link</code> control
84
+ * @param {sap.ui.mdc.link.LinkItem} aLinkItems The {@link sap.ui.mdc.link.LinkItem} instances of the link that can be modified
85
+ * @returns {Promise} Once resolved, an array of link items is returned
86
+ */
87
+ LinkDelegate.modifyLinkItems = function(oPayload, oBindingContext, aLinkItems) {
88
+ return Promise.resolve(aLinkItems);
89
+ };
90
+
91
+ /**
92
+ * Allows for interception before the actual navigation takes place.
93
+ * @protected
94
+ * @ui5-restricted sap.ui.mdc
95
+ * @param {Object} oPayload Payload of the <code>Link</code> control given by the application
96
+ * @param {Object} oEvent The <code>pressLink</code> event which is fired by the <code>Link</code> control
97
+ * @returns {Promise} Once resolved, it returns a Boolean value which determines whether the navigation takes place
98
+ */
99
+ LinkDelegate.beforeNavigationCallback = function(oPayload, oEvent) {
100
+ return Promise.resolve(true);
101
+ };
102
+
98
103
  return LinkDelegate;
99
104
  });
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @constructor
36
36
  * @alias sap.ui.mdc.MultiValueField
37
37
  * @author SAP SE
38
- * @version 1.103.0
38
+ * @version 1.105.0
39
39
  * @since 1.93.0
40
40
  *
41
41
  * @private
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -1104,7 +1104,13 @@ sap.ui.define([
1104
1104
  });
1105
1105
  var oResourceBundle = Core.getLibraryResourceBundle("sap.ui.mdc");
1106
1106
  var oListFormat = ListFormat.getInstance();
1107
- var sFilterText = oResourceBundle.getText("table.FILTER_INFO", oListFormat.format(aPropertyLabels));
1107
+
1108
+ var sFilterText;
1109
+ if (aPropertyLabels.length > 1) {
1110
+ sFilterText = oResourceBundle.getText("table.MULTIPLE_FILTERS_ACTIVE", [aPropertyLabels.length, oListFormat.format(aPropertyLabels)]);
1111
+ } else {
1112
+ sFilterText = oResourceBundle.getText("table.ONE_FILTER_ACTIVE", aPropertyLabels[0]);
1113
+ }
1108
1114
 
1109
1115
  if (!oFilterInfoBar.getVisible()) {
1110
1116
  oFilterInfoBar.setVisible(true);
@@ -2317,9 +2323,11 @@ sap.ui.define([
2317
2323
  }
2318
2324
 
2319
2325
  Table.prototype._onItemPress = function(oEvent) {
2320
- this.fireRowPress({
2321
- bindingContext: oEvent.getParameter("listItem").getBindingContext()
2322
- });
2326
+ if (this.getSelectionMode() !== library.SelectionMode.SingleMaster) {
2327
+ this.fireRowPress({
2328
+ bindingContext: oEvent.getParameter("listItem").getBindingContext()
2329
+ });
2330
+ }
2323
2331
  ResponsiveTableType._onRowActionPress.apply(this, [oEvent]);
2324
2332
  };
2325
2333
 
@@ -2355,6 +2363,10 @@ sap.ui.define([
2355
2363
 
2356
2364
  // GridTable
2357
2365
  Table.prototype._onCellClick = function(oEvent) {
2366
+ if (this.getSelectionMode() === library.SelectionMode.SingleMaster) {
2367
+ return;
2368
+ }
2369
+
2358
2370
  this.fireRowPress({
2359
2371
  bindingContext: oEvent.getParameter("rowBindingContext")
2360
2372
  });
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -61,15 +61,11 @@ sap.ui.define([
61
61
  var oGroupedProperty = oTable._getGroupedProperties()[0];
62
62
 
63
63
  if (oGroupedProperty) {
64
- var oSortedProperty = oTable._getSortedProperties().find(function(oProperty) {
65
- return oProperty.name === oGroupedProperty.name;
66
- });
67
- var sPath = oTable.getPropertyHelper().getProperty(oGroupedProperty.name).path;
68
- var bDescending = oSortedProperty ? oSortedProperty.descending : false;
69
-
70
- oBindingInfo.sorter.push(new Sorter(sPath, bDescending, function(oContext) {
71
- return this.formatGroupHeader(oTable, oContext, oGroupedProperty.name);
72
- }.bind(this)));
64
+ var oSorter = this.getGroupSorter(oTable, oGroupedProperty.name);
65
+
66
+ if (oSorter) {
67
+ oBindingInfo.sorter.push(oSorter);
68
+ }
73
69
  }
74
70
  }
75
71
 
@@ -82,6 +78,26 @@ sap.ui.define([
82
78
  );
83
79
  };
84
80
 
81
+ /**
82
+ * Creates a new sorter for the grouping functionality.
83
+ *
84
+ * @param {sap.ui.mdc.Table} oTable Instance of the MDC table
85
+ * @param {string} sPropertyName Property to group
86
+ * @returns {sap.ui.model.Sorter} New sorter
87
+ * @protected
88
+ */
89
+ TableDelegate.getGroupSorter = function(oTable, sPropertyName){
90
+ var oSortedProperty = oTable._getSortedProperties().find(function(oProperty) {
91
+ return oProperty.name === sPropertyName;
92
+ });
93
+ var sPath = oTable.getPropertyHelper().getProperty(sPropertyName).path;
94
+ var bDescending = oSortedProperty ? oSortedProperty.descending : false;
95
+
96
+ return new Sorter(sPath, bDescending, function(oContext) {
97
+ return this.formatGroupHeader(oTable, oContext, sPropertyName);
98
+ }.bind(this));
99
+ };
100
+
85
101
  /**
86
102
  * Updates the row binding of the table.
87
103
  *
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  * @class Element for the <code>FieldHelp</code> association in the {@link sap.ui.mdc.field.FieldBase FieldBase} controls.
84
84
  * @extends sap.ui.mdc.Element
85
85
  * @implements sap.ui.core.PopupInterface
86
- * @version 1.103.0
86
+ * @version 1.105.0
87
87
  * @constructor
88
88
  * @abstract
89
89
  * @private
@@ -558,7 +558,7 @@ sap.ui.define([
558
558
 
559
559
  /**
560
560
  * Calls initialization of the <code>ValueHelp</code> element before the value help is really opened.
561
- * This is called in Typeahead on first letter before the value help is opened with a delay. So the
561
+ * This is called during type-ahead on first letter before the value help is opened with a delay. This way the
562
562
  * content can be determined in the delegate coding early.
563
563
  *
564
564
  * <b>Note:</b> This function must only be called by the control the <code>ValueHelp</code> element
@@ -716,9 +716,9 @@ sap.ui.define([
716
716
  * @param {any} oConfig.value Value as entered by user
717
717
  * @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
718
718
  * @param {object} [oConfig.context] Contextual information provided by condition payload or inParameters/outParameters. This is only filled if the description needs to be determined for an existing condition.
719
- * @param {object} [oConfig.context.inParameter] inParameters of the current condition
720
- * @param {object} [oConfig.context.ouParameter] outParameters of the current condition
721
- * @param {object} [oConfig.context.payload] payload of the current condition
719
+ * @param {object} [oConfig.context.inParameter] In parameters of the current condition
720
+ * @param {object} [oConfig.context.ouParameter] Out parameters of the current condition
721
+ * @param {object} [oConfig.context.payload] Payload of the current condition
722
722
  * @param {sap.ui.model.Context} [oConfig.bindingContext] <code>BindingContext</code> of the checked field. Inside a table the <code>ValueHelp</code> element might be connected to a different row.
723
723
  * @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
724
724
  * @param {boolean} oConfig.checkKey If set, the value help checks only if there is an item with the given key. This is set to <code>false</code> if the value cannot be a valid key because of type validation.
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @class The action for an {@link sap.ui.mdc.ActionToolbar ActionToolbar}) control
22
22
  * @extends sap.ui.core.Control
23
23
  * @author SAP SE
24
- * @version 1.103.0
24
+ * @version 1.105.0
25
25
  * @constructor
26
26
  * @private
27
27
  * @since 1.58
@@ -8,7 +8,6 @@ sap.ui.define([], function() {
8
8
  "use strict";
9
9
 
10
10
  /**
11
- * Form renderer.
12
11
  * @namespace
13
12
  */
14
13
  var ActionToolbarActionRenderer = {
@@ -22,7 +21,7 @@ sap.ui.define([], function() {
22
21
  * @param {sap.ui.mdc.actiontoolbar.ActionToolbarAction} oActionToolbarAction an object representation of the control that should be rendered
23
22
  */
24
23
  ActionToolbarActionRenderer.render = function(rm, oActionToolbarAction) {
25
- var mAriaProps = { role: "form" };
24
+ var mAriaProps = { role: "action" };
26
25
 
27
26
  rm.openStart("div", oActionToolbarAction);
28
27
 
@@ -0,0 +1,70 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ "sap/ui/core/Control",
9
+ "./ChartImplementationContainerRenderer"
10
+ ],
11
+ function (Control, Renderer
12
+ ) {
13
+ "use strict";
14
+
15
+ /**
16
+ * Constructor for a new Chart.
17
+ *
18
+ * @param {string} [sId] ID for the new control, generated automatically if no id is given
19
+ * @param {object} [mSettings] Initial settings for the new control
20
+ * @class The Chart control creates a chart based on metadata and the configuration specified.
21
+ * @extends sap.ui.core.Control
22
+ * @author SAP SE
23
+ * @version 1.105.0
24
+ * @constructor
25
+ * @experimental As of version 1.105
26
+ * @private
27
+ * @ui5-restricted sap.fe
28
+ * @MDC_PUBLIC_CANDIDATE
29
+ * @since 1.105
30
+ * @alias sap.ui.mdc.chart.ChartImplementationContainer
31
+ */
32
+ var Chart = Control.extend("sap.ui.mdc.chart.ChartImplementationContainer", /** @lends sap.ui.mdc.chart.ChartImplementationContainer.prototype */ {
33
+ metadata: {
34
+ library: "sap.ui.mdc",
35
+ interfaces: [
36
+ ],
37
+ properties: {
38
+ },
39
+ aggregations: {
40
+ /**
41
+ * This property describes the measures and dimensions visible in the chart.
42
+ * Changes in the personalization are also reflected here.
43
+ */
44
+ content: {
45
+ type: "sap.ui.core.Control",
46
+ multiple: false
47
+ }
48
+ },
49
+ associations: {
50
+ },
51
+ events: {
52
+ }
53
+ },
54
+
55
+ renderer: Renderer
56
+ });
57
+
58
+ /**
59
+ * Initialises the MDC Chart
60
+ *
61
+ * @experimental
62
+ * @private
63
+ * @ui5-restricted sap.ui.mdc
64
+ */
65
+ Chart.prototype.init = function () {
66
+ //TODO;
67
+ };
68
+
69
+ return Chart;
70
+ });
@@ -0,0 +1,49 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([],
8
+ function() {
9
+ "use strict";
10
+
11
+ /**
12
+ * Chart renderer.
13
+ * @namespace
14
+ */
15
+ var ChartRenderer = {
16
+ apiVersion: 2
17
+ };
18
+
19
+ /**
20
+ * CSS class to be applied to the HTML root element of the control.
21
+ *
22
+ * @readonly
23
+ * @const {string}
24
+ */
25
+ ChartRenderer.CSS_CLASS = "sapUiMDCChart";
26
+
27
+ /**
28
+ * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
29
+ *
30
+ * @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer
31
+ * @param {sap.ui.mdc.Chart} oMDCChart An object representation of the control that should be rendered
32
+ */
33
+ ChartRenderer.render = function(oRm, oChartImplContainer) {
34
+ oRm.openStart("div", oChartImplContainer);
35
+ //TODO: Clarify why writeControlData doesn't work on rerender
36
+ oRm.attr("id", oChartImplContainer.getId());
37
+ //oRm.class(ChartRenderer.CSS_CLASS);
38
+ //oRm.class("sapUiFixFlex");
39
+ //oRm.style("overflow", "hidden");
40
+ oRm.style("height", "100%");
41
+ oRm.style("width", "100%");
42
+ oRm.style("min-height", "200px");
43
+ oRm.openEnd();
44
+ oRm.renderControl(oChartImplContainer.getContent());
45
+ oRm.close("div");
46
+ };
47
+
48
+ return ChartRenderer;
49
+ }, true);
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @class The ChartSelectionDetails control creates a sap.m.SelectionDetails popover based on metadata and the configuration specified.
34
34
  * @extends sap.m.SelectionDetails
35
35
  * @author SAP SE
36
- * @version 1.103.0
36
+ * @version 1.105.0
37
37
  * @constructor
38
38
  * @experimental As of version ...
39
39
  * @private
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @class The ChartToolbar control is a sap.m.OverflowToolbar based on metadata and the configuration specified.
43
43
  * @extends sap.ui.mdc.ActionToolbar
44
44
  * @author SAP SE
45
- * @version 1.103.0
45
+ * @version 1.105.0
46
46
  * @constructor
47
47
  * @experimental As of version 1.88
48
48
  * @private
@@ -88,10 +88,11 @@ sap.ui.define([
88
88
  this._chartInternalButtonsToEnable = [];
89
89
 
90
90
  /**add beginning**/
91
- var title = new Title(oMDCChart.getId() + "-title", {
92
- text: oMDCChart.getHeader()
91
+ this._oTitle = new Title(oMDCChart.getId() + "-title", {
92
+ text: oMDCChart.getHeader(),
93
+ level: oMDCChart.getHeaderLevel()
93
94
  });
94
- this.addBegin(title);
95
+ this.addBegin(this._oTitle);
95
96
 
96
97
  /** variant management */
97
98
  if (oMDCChart.getVariant()){
@@ -99,12 +100,14 @@ sap.ui.define([
99
100
  }
100
101
 
101
102
  /**add end **/
102
- this._oChartSelectionDetails = new ChartSelectionDetails(oMDCChart.getId() + "-selectionDetails", {});
103
- this._oChartSelectionDetails.attachBeforeOpen(function (oEvent) {
104
- this._updateSelectionDetailsActions(oMDCChart);
105
- }.bind(this));
103
+ if (oMDCChart.getShowSelectionDetails()){
104
+ this._oChartSelectionDetails = new ChartSelectionDetails(oMDCChart.getId() + "-selectionDetails", {});
105
+ this._oChartSelectionDetails.attachBeforeOpen(function (oEvent) {
106
+ this._updateSelectionDetailsActions(oMDCChart);
107
+ }.bind(this));
106
108
 
107
- this.addEnd(this._oChartSelectionDetails);
109
+ this.addEnd(this._oChartSelectionDetails);
110
+ }
108
111
 
109
112
  //Check p13n mode property on the chart and enable only desired buttons
110
113
  var aP13nMode = oMDCChart.getP13nMode() || [];
@@ -264,7 +267,7 @@ sap.ui.define([
264
267
  }
265
268
 
266
269
  var oSelectionHandler = oMDCChart.getSelectionHandler();
267
- if (oSelectionHandler) {
270
+ if (oSelectionHandler && oMDCChart.getShowSelectionDetails()) {
268
271
  this._oChartSelectionDetails.attachSelectionHandler(oSelectionHandler.eventId, oSelectionHandler.listener);
269
272
  }
270
273
  };
@@ -293,6 +296,12 @@ sap.ui.define([
293
296
  };
294
297
 
295
298
  ChartToolbar.prototype._updateSelectionDetailsActions = function (oMDCChart) {
299
+
300
+ //In case details button is disabled
301
+ if (!oMDCChart.getShowSelectionDetails()) {
302
+ return;
303
+ }
304
+
296
305
  var oSelectionDetailsActions = oMDCChart.getSelectionDetailsActions(), oClone;
297
306
 
298
307
  if (oSelectionDetailsActions) {
@@ -325,5 +334,10 @@ sap.ui.define([
325
334
  }
326
335
 
327
336
  };
337
+
338
+ ChartToolbar.prototype._setHeaderLevel = function(sHeaderLevel) {
339
+ this._oTitle.setLevel(sHeaderLevel);
340
+ };
341
+
328
342
  return ChartToolbar;
329
343
  });
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.mdc.util.PropertyHelper
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.103.0
28
+ * @version 1.105.0
29
29
  *
30
30
  * @private
31
31
  * @experimental
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  *
29
29
  * @namespace
30
30
  * @author SAP SE
31
- * @version 1.103.0
31
+ * @version 1.105.0
32
32
  * @since 1.61.0
33
33
  * @alias sap.ui.mdc.condition.Condition
34
34
  *
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @namespace
26
26
  * @author SAP SE
27
- * @version 1.103.0
27
+ * @version 1.105.0
28
28
  * @private
29
29
  * @ui5-restricted sap.ui.mdc
30
30
  * @experimental As of version 1.74
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.model.json.JSONModel
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.103.0
38
+ * @version 1.105.0
39
39
  * @since 1.48.0
40
40
  * @alias sap.ui.mdc.condition.ConditionModel
41
41
  *
@@ -24,7 +24,7 @@ function(
24
24
  *
25
25
  * @namespace
26
26
  * @author SAP SE
27
- * @version 1.103.0
27
+ * @version 1.105.0
28
28
  * @since 1.78.0
29
29
  * @alias sap.ui.mdc.condition.FilterConverter
30
30
  *