@openui5/sap.ui.mdc 1.96.2 → 1.98.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 (329) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +2 -2
  5. package/src/sap/ui/mdc/ActionToolbar.js +3 -8
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
  7. package/src/sap/ui/mdc/BaseDelegate.js +2 -2
  8. package/src/sap/ui/mdc/Chart.js +1017 -1797
  9. package/src/sap/ui/mdc/ChartDelegate.js +430 -271
  10. package/src/sap/ui/mdc/ChartRenderer.js +74 -78
  11. package/src/sap/ui/mdc/Control.js +2 -2
  12. package/src/sap/ui/mdc/Delegate.js +1 -1
  13. package/src/sap/ui/mdc/Element.js +2 -2
  14. package/src/sap/ui/mdc/Field.js +4 -3
  15. package/src/sap/ui/mdc/FilterBar.js +4 -3
  16. package/src/sap/ui/mdc/FilterBarDelegate.js +1 -1
  17. package/src/sap/ui/mdc/FilterField.js +26 -9
  18. package/src/sap/ui/mdc/Link.js +5 -4
  19. package/src/sap/ui/mdc/LinkDelegate.js +2 -2
  20. package/src/sap/ui/mdc/MultiValueField.js +3 -2
  21. package/src/sap/ui/mdc/Table.js +174 -142
  22. package/src/sap/ui/mdc/TableDelegate.js +31 -16
  23. package/src/sap/ui/mdc/ValueHelp.js +52 -16
  24. package/src/sap/ui/mdc/ValueHelpDelegate.js +21 -1
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  26. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
  27. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +9 -9
  28. package/src/sap/ui/mdc/chart/ChartSettings.js +1 -1
  29. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +11 -11
  30. package/src/sap/ui/mdc/chart/ChartTypeButton.js +49 -53
  31. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +4 -4
  32. package/src/sap/ui/mdc/chart/DrillStackHandler.js +39 -250
  33. package/src/sap/ui/mdc/chart/Item.js +63 -93
  34. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +4 -4
  35. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +18 -22
  36. package/src/sap/ui/mdc/condition/Condition.js +2 -2
  37. package/src/sap/ui/mdc/condition/ConditionConverter.js +2 -2
  38. package/src/sap/ui/mdc/condition/ConditionModel.js +2 -2
  39. package/src/sap/ui/mdc/condition/ConditionModelPropertyBinding.js +1 -1
  40. package/src/sap/ui/mdc/condition/FilterConverter.js +2 -2
  41. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +7 -3
  42. package/src/sap/ui/mdc/condition/Operator.js +10 -10
  43. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
  44. package/src/sap/ui/mdc/condition/RangeOperator.js +2 -2
  45. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +1 -1
  46. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +78 -6
  47. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +97 -0
  48. package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
  49. package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
  50. package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
  51. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +1 -1
  52. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +4 -1
  53. package/src/sap/ui/mdc/designtime/library.designtime.js +1 -1
  54. package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +1 -1
  55. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +1 -1
  56. package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +1 -1
  57. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
  58. package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +1 -1
  59. package/src/sap/ui/mdc/enum/BaseType.js +1 -1
  60. package/src/sap/ui/mdc/enum/ConditionValidated.js +1 -1
  61. package/src/sap/ui/mdc/enum/ContentMode.js +1 -1
  62. package/src/sap/ui/mdc/enum/EditMode.js +1 -1
  63. package/src/sap/ui/mdc/enum/FieldDisplay.js +1 -1
  64. package/src/sap/ui/mdc/enum/OutParameterMode.js +1 -1
  65. package/src/sap/ui/mdc/enum/PersistenceMode.js +1 -1
  66. package/src/sap/ui/mdc/enum/SelectType.js +1 -1
  67. package/src/sap/ui/mdc/field/BoolFieldHelp.js +2 -2
  68. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +2 -2
  69. package/src/sap/ui/mdc/field/ConditionType.js +8 -8
  70. package/src/sap/ui/mdc/field/ConditionsType.js +8 -8
  71. package/src/sap/ui/mdc/field/CustomFieldHelp.js +2 -2
  72. package/src/sap/ui/mdc/field/CustomFieldInfo.js +2 -2
  73. package/src/sap/ui/mdc/field/DefineConditionPanel.js +59 -22
  74. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
  75. package/src/sap/ui/mdc/field/FieldBase.js +84 -53
  76. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
  77. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +1 -4
  78. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  79. package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +1 -1
  80. package/src/sap/ui/mdc/field/FieldInfoBase.js +2 -2
  81. package/src/sap/ui/mdc/field/FieldInput.js +2 -2
  82. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +2 -2
  83. package/src/sap/ui/mdc/field/FieldInputRenderer.js +1 -1
  84. package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
  85. package/src/sap/ui/mdc/field/FieldMultiInputRenderer.js +1 -1
  86. package/src/sap/ui/mdc/field/FieldValueHelp.js +8 -8
  87. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +2 -2
  88. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +21 -1
  89. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +2 -2
  90. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
  91. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -2
  92. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -2
  93. package/src/sap/ui/mdc/field/InParameter.js +2 -2
  94. package/src/sap/ui/mdc/field/ListFieldHelp.js +11 -3
  95. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +2 -2
  96. package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +1 -1
  97. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +2 -2
  98. package/src/sap/ui/mdc/field/OutParameter.js +2 -2
  99. package/src/sap/ui/mdc/field/ValueHelpPanel.js +3 -2
  100. package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
  101. package/src/sap/ui/mdc/field/content/ContentFactory.js +24 -22
  102. package/src/sap/ui/mdc/field/content/DateContent.js +129 -3
  103. package/src/sap/ui/mdc/field/content/DateTimeContent.js +10 -2
  104. package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
  105. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  106. package/src/sap/ui/mdc/field/content/SearchContent.js +1 -1
  107. package/src/sap/ui/mdc/field/content/TimeContent.js +9 -2
  108. package/src/sap/ui/mdc/field/content/UnitContent.js +24 -5
  109. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +326 -141
  110. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  111. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
  112. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +2 -2
  113. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -1
  114. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -1
  115. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +9 -3
  116. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +1 -1
  117. package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +1 -1
  118. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +1 -1
  119. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +1 -1
  120. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +4 -2
  121. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +8 -2
  122. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
  123. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +7 -7
  124. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +1 -1
  125. package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +1 -1
  126. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +3 -3
  127. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +1 -1
  128. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +2 -2
  129. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +1 -1
  130. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +2 -2
  131. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +1 -1
  132. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +5 -4
  133. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
  134. package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -2
  135. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +1 -1
  136. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +10 -4
  137. package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +1 -1
  138. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
  139. package/src/sap/ui/mdc/flexibility/SortFlex.js +3 -3
  140. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +1 -1
  141. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -2
  142. package/src/sap/ui/mdc/library.js +50 -39
  143. package/src/sap/ui/mdc/link/ContactDetails.js +2 -2
  144. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +2 -2
  145. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +2 -2
  146. package/src/sap/ui/mdc/link/ContactDetailsItem.js +2 -2
  147. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +2 -2
  148. package/src/sap/ui/mdc/link/Factory.js +3 -3
  149. package/src/sap/ui/mdc/link/FakeFlpConnector.js +2 -2
  150. package/src/sap/ui/mdc/link/LinkItem.js +2 -2
  151. package/src/sap/ui/mdc/link/Log.js +1 -1
  152. package/src/sap/ui/mdc/link/Panel.js +141 -179
  153. package/src/sap/ui/mdc/link/PanelItem.js +2 -2
  154. package/src/sap/ui/mdc/link/PanelListItem.js +2 -2
  155. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +2 -2
  156. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +2 -2
  157. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +2 -2
  158. package/src/sap/ui/mdc/messagebundle.properties +19 -4
  159. package/src/sap/ui/mdc/messagebundle_ar.properties +13 -4
  160. package/src/sap/ui/mdc/messagebundle_bg.properties +11 -2
  161. package/src/sap/ui/mdc/messagebundle_ca.properties +11 -2
  162. package/src/sap/ui/mdc/messagebundle_cs.properties +26 -17
  163. package/src/sap/ui/mdc/messagebundle_cy.properties +11 -2
  164. package/src/sap/ui/mdc/messagebundle_da.properties +18 -9
  165. package/src/sap/ui/mdc/messagebundle_de.properties +11 -2
  166. package/src/sap/ui/mdc/messagebundle_el.properties +12 -3
  167. package/src/sap/ui/mdc/messagebundle_en.properties +11 -2
  168. package/src/sap/ui/mdc/messagebundle_en_GB.properties +11 -2
  169. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +17 -0
  170. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -19
  171. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +17 -0
  172. package/src/sap/ui/mdc/messagebundle_es.properties +12 -3
  173. package/src/sap/ui/mdc/messagebundle_es_MX.properties +24 -15
  174. package/src/sap/ui/mdc/messagebundle_et.properties +11 -2
  175. package/src/sap/ui/mdc/messagebundle_fi.properties +17 -8
  176. package/src/sap/ui/mdc/messagebundle_fr.properties +15 -6
  177. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +11 -2
  178. package/src/sap/ui/mdc/messagebundle_hi.properties +12 -3
  179. package/src/sap/ui/mdc/messagebundle_hr.properties +11 -2
  180. package/src/sap/ui/mdc/messagebundle_hu.properties +11 -2
  181. package/src/sap/ui/mdc/messagebundle_id.properties +11 -2
  182. package/src/sap/ui/mdc/messagebundle_it.properties +26 -17
  183. package/src/sap/ui/mdc/messagebundle_iw.properties +12 -3
  184. package/src/sap/ui/mdc/messagebundle_ja.properties +11 -2
  185. package/src/sap/ui/mdc/messagebundle_kk.properties +11 -2
  186. package/src/sap/ui/mdc/messagebundle_ko.properties +15 -6
  187. package/src/sap/ui/mdc/messagebundle_lt.properties +11 -2
  188. package/src/sap/ui/mdc/messagebundle_lv.properties +11 -2
  189. package/src/sap/ui/mdc/messagebundle_ms.properties +11 -2
  190. package/src/sap/ui/mdc/messagebundle_nl.properties +16 -7
  191. package/src/sap/ui/mdc/messagebundle_no.properties +19 -10
  192. package/src/sap/ui/mdc/messagebundle_pl.properties +12 -3
  193. package/src/sap/ui/mdc/messagebundle_pt.properties +18 -9
  194. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +11 -2
  195. package/src/sap/ui/mdc/messagebundle_ro.properties +11 -2
  196. package/src/sap/ui/mdc/messagebundle_ru.properties +11 -2
  197. package/src/sap/ui/mdc/messagebundle_sh.properties +11 -2
  198. package/src/sap/ui/mdc/messagebundle_sk.properties +11 -2
  199. package/src/sap/ui/mdc/messagebundle_sl.properties +11 -2
  200. package/src/sap/ui/mdc/messagebundle_sv.properties +13 -4
  201. package/src/sap/ui/mdc/messagebundle_th.properties +11 -2
  202. package/src/sap/ui/mdc/messagebundle_tr.properties +11 -2
  203. package/src/sap/ui/mdc/messagebundle_uk.properties +12 -3
  204. package/src/sap/ui/mdc/messagebundle_vi.properties +11 -2
  205. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +11 -2
  206. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +11 -2
  207. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +3 -4
  208. package/src/sap/ui/mdc/mixin/DelegateMixin.js +3 -3
  209. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +17 -12
  210. package/src/sap/ui/mdc/mixin/PromiseMixin.js +3 -4
  211. package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
  212. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +1 -1
  213. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +30 -484
  214. package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +6 -6
  215. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +1 -1
  216. package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +1 -1
  217. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +1 -1
  218. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
  219. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +158 -114
  220. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -2
  221. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
  222. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +2 -2
  223. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +137 -49
  224. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
  225. package/src/sap/ui/mdc/p13n/Engine.js +56 -19
  226. package/src/sap/ui/mdc/p13n/FlexUtil.js +12 -119
  227. package/src/sap/ui/mdc/p13n/P13nBuilder.js +3 -3
  228. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +22 -11
  229. package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
  230. package/src/sap/ui/mdc/p13n/StateUtil.js +41 -7
  231. package/src/sap/ui/mdc/p13n/UIManager.js +16 -13
  232. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +5 -2
  233. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +10 -7
  234. package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +3 -3
  235. package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
  236. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +1 -1
  237. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +20 -4
  238. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +1 -1
  239. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1093 -49
  240. package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -1
  241. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
  242. package/src/sap/ui/mdc/p13n/panels/ListView.js +7 -3
  243. package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +1 -1
  244. package/src/sap/ui/mdc/p13n/panels/SortPanel.js +1 -1
  245. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
  246. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -6
  247. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  248. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +157 -12
  249. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +16 -27
  250. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +7 -6
  251. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +1 -1
  252. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +7 -6
  253. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
  254. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
  255. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +11 -18
  256. package/src/sap/ui/mdc/table/Column.js +36 -11
  257. package/src/sap/ui/mdc/table/CreationRow.js +15 -14
  258. package/src/sap/ui/mdc/table/GridTableType.js +14 -14
  259. package/src/sap/ui/mdc/table/PropertyHelper.js +65 -28
  260. package/src/sap/ui/mdc/table/ResponsiveTableType.js +27 -30
  261. package/src/sap/ui/mdc/table/RowSettings.js +8 -6
  262. package/src/sap/ui/mdc/table/TableSettings.js +1 -1
  263. package/src/sap/ui/mdc/table/TableTypeBase.js +7 -7
  264. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +16 -72
  265. package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
  266. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  267. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +12 -1
  268. package/src/sap/ui/mdc/themes/base/library.source.less +2 -1
  269. package/src/sap/ui/mdc/ui/Container.js +3 -3
  270. package/src/sap/ui/mdc/ui/ContainerItem.js +3 -3
  271. package/src/sap/ui/mdc/util/Common.js +2 -2
  272. package/src/sap/ui/mdc/util/DateUtil.js +2 -2
  273. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  274. package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
  275. package/src/sap/ui/mdc/util/IdentifierUtil.js +2 -2
  276. package/src/sap/ui/mdc/util/PromiseCache.js +2 -2
  277. package/src/sap/ui/mdc/util/PropertyHelper.js +149 -326
  278. package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
  279. package/src/sap/ui/mdc/util/loadModules.js +1 -1
  280. package/src/sap/ui/mdc/valuehelp/Dialog.js +13 -9
  281. package/src/sap/ui/mdc/valuehelp/Popover.js +15 -3
  282. package/src/sap/ui/mdc/valuehelp/base/Container.js +34 -2
  283. package/src/sap/ui/mdc/valuehelp/base/Content.js +37 -6
  284. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +3 -2
  285. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +44 -16
  286. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -2
  287. package/src/sap/ui/mdc/valuehelp/content/Bool.js +3 -2
  288. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +29 -33
  289. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +12 -6
  290. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +44 -9
  291. package/src/sap/ui/mdc/valuehelp/content/MTable.js +58 -27
  292. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -1
  293. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  294. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  295. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  296. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  297. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  298. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  299. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
  300. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +5 -5
  301. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  302. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  303. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  304. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  305. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  306. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +365 -236
  307. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  308. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  309. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  310. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  311. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  312. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  313. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  314. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  315. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  316. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  317. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  318. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  319. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  320. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  321. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  322. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  323. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  324. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  325. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1171
  326. package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
  327. package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
  328. package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
  329. package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
@@ -1,276 +1,435 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
1
+ /*
2
+ * ! OpenUI5
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
  */
6
6
 
7
+ // ---------------------------------------------------------------------------------------
8
+ // Helper class used to help create content in the MDC chart and fill relevant metadata
9
+ // ---------------------------------------------------------------------------------------
10
+ // ---------------------------------------------------------------------------------------
7
11
  sap.ui.define([
8
- "sap/ui/mdc/AggregationBaseDelegate",
9
- "sap/ui/base/SyncPromise",
10
- "sap/ui/mdc/chart/MeasureItem",
11
- "sap/ui/mdc/chart/DimensionItem",
12
- "sap/ui/core/Core",
13
- "sap/ui/mdc/util/FilterUtil"
14
- ], function(
15
- AggregationBaseDelegate,
16
- SyncPromise,
17
- MeasureItem,
18
- DimensionItem,
19
- Core,
20
- FilterUtil
21
- ) {
22
- "use strict";
23
-
24
- /**
25
- * Base delegate module for the <code>sap.ui.mdc.Chart</code> control.
26
- *
27
- * This module provides an interface and some basic functionality for sub-modules.
28
- * Sub-modules usually interpret service metadata that represents entity-relationship
29
- * models, service capabilities, and annotations.
30
- *
31
- * The result of this service metadata information is used to automatically create
32
- * some chart's inner controls, for example, dimension and measure items.
33
- *
34
- * <b>Note:</b> The module is experimental and is not finalized, hence it should not
35
- * be used productively.
36
- *
37
- * @private
38
- * @experimental
39
- * @alias module:sap/ui/mdc/ChartDelegate
40
- * @since 1.62
41
- * @author SAP SE
42
- */
43
- var ChartDelegate = Object.assign({}, AggregationBaseDelegate);
44
-
45
- /**
46
- * Delegates metadata structure.
47
- *
48
- * @typedef {object} sap.ui.mdc.ChartDelegate.Metadata Metadata structure
49
- * @property {sap.ui.mdc.chart.Item[]} items The items in the <code>items</code> aggregation of the
50
- * <code>sap.ui.mdc.Chart</code> control
51
- * @property {array} properties An array of properties the entity set that is used via the
52
- * {@link sap.ui.mdc.Chart} class
53
- * Although being part of the entity, not every property results in a chart item only those properties
54
- * that support aggregation or grouping.
55
- * @property {boolean} sortable Indicates whether the chart control is sortable
56
- * @property {boolean} filterable Indicates whether the chart control is filterable
57
- */
58
- ChartDelegate.Metadata = {
59
- items: [],
60
- properties: [],
61
- sortable: true,
62
- filterable: true
63
- };
64
-
65
- /**
66
- * Delegate metadata property structure.
67
- * An object that represents the result of the chart control delegates metadata item structure.
68
- *
69
- * @typedef {object} sap.ui.mdc.ChartDelegate.MetadataProperty Metadata property structure
70
- * @property {sap.ui.mdc.ChartItemType} kind The type of the item
71
- * @property {sap.ui.mdc.ChartItemRoleType} role The role of the item
72
- * @property {array} contextDefiningProperties An array of properties' context (TBD)
73
- * @property {string} className The chart item class name reflecting the chart aggregation items.
74
- * For example, an {@link sap.ui.mcd.chart.MeasureItem} item or an {@link sap.ui.mcd.chart.DimensionItem}
75
- * item.
76
- * @property {string} aggregationMethod For measures a string corresponding to the aggregation method.
77
- * For example, <code>min</code>, <code>max</code>, <code>sum</code>, <code>average</code>,
78
- * <code>count</code>, if not set for a measure the measure is a custom aggregate
79
- * @property {boolean} default Indicates whether the aggregation method is the default method
80
- * @property {boolean} custom Indicates whether the corresponding chart item is a custom aggregate
81
- * @property {string} name The name of the chart item which for measures coincides with its alias
82
- * @property {string} propertyPath The path to the corresponding object attribute in the model only
83
- * evaluated for measures
84
- * @property {string} label Defines the label of the chart item
85
- * @property {string} textProperty The reference to a text property for a chart item.
86
- * <b>Note:</b> ony used for dimensions
87
- * @property {boolean} sortable Indicates whether the chart item is sortable
88
- * @property {string} sortDirection Defines the sort direction of the chart item.
89
- * Possible values are <code>both</code>, <code>asc</code> and <code>desc</code>
90
- * @property {boolean} filterable Indicates whether the chart item is filterable
91
- * @property {array} allowedExpressions Allowed filter expressions
92
- * @private
93
- * @static
94
- */
95
- ChartDelegate.MetadataProperty = {
96
- kind: "",
97
- role: "",
98
- contextDefiningProperties: [],
99
- className: "",
100
- aggregationMethod: "",
101
- "default": true,
102
- custom: false,
103
- name: "",
104
- propertyPath: "",
105
- label: "",
106
- textProperty: "",
107
- sortable: true,
108
- sortDirection: "",
109
- filterable: true,
110
- allowedExpressions: []
111
- };
112
-
113
- /**
114
- * Fetches the relevant metadata for the chart control and returns property info array.
115
- *
116
- * <b>Note:</b> To be overwritten by sub-modules.
117
- *
118
- * @static
119
- * @param {sap.ui.mdc.Chart} oChart A chart instance
120
- * @returns {Promise<sap.ui.mdc.ChartDelegate.Metadata>} A <code>Promise</code> object,
121
- * otherwise a <code>Promise</code> object to be rejected
122
- */
123
- ChartDelegate.retrieveAllMetadata = function(oChart) {
124
- return Promise.resolve(ChartDelegate.Metadata);
125
- };
126
-
127
- /**
128
- * Fetches the metadata properties that can be used as items for the chart.
129
- *
130
- * <b>Note:</b> To be overwritten by sub-modules.
131
- *
132
- * @param {sap.ui.mdc.Chart} oChart A chart instance
133
- * @static
134
- * @return {Promise<sap.ui.mdc.ChartDelegate.MetadataProperty[]>} A fulfilled <code>Promise</code>
135
- * object or a <code>Promise</code> object to be fulfilled, otherwise a <code>Promise</code>
136
- * object to be rejected
137
- */
138
- ChartDelegate.fetchProperties = function(oChart) {
139
- var aProperties = [ this.MetadataProperty ];
140
- return Promise.resolve(aProperties);
141
- };
142
-
143
- /**
144
- * Retrieve a control/fragment pointing to the current aggregation.
145
- *
146
- * <b>Note:</b> To be overwritten by sub-modules.
147
- *
148
- * @param {string} sAggregationName The name of the aggregation
149
- * @param {sap.ui.mdc.ChartDelegate.MetadataProperty} oMetadataProperty The metadata property
150
- * @static
151
- * @abstract
152
- * @returns {object} Aggregation settings
153
- */
154
- ChartDelegate.retrieveAggregationItem = function(sAggregationName, oMetadataProperty) {
155
- return {};
156
- };
157
-
158
-
159
- /**
160
- * Updates the binding info with the relevant filters
161
- *
162
- * @param {Object} oMDCChart The MDC chart instance
163
- * @param {Object} oBindingInfo The binding info of the chart
164
- */
165
- ChartDelegate.updateBindingInfo = function(oMDCChart, oBindingInfo) {
166
- if (oMDCChart && oMDCChart.getAggregation("_chart") && oBindingInfo) {
167
-
168
- var oFilter = Core.byId(oMDCChart.getFilter());
169
- if (oFilter) {
170
- var mConditions = oFilter.getConditions();
171
-
172
- if (mConditions) {
173
-
174
- if (!oBindingInfo) {
175
- oBindingInfo = {};
176
- }
177
-
178
- var aPropertiesMetadata = oFilter.getPropertyInfoSet ? oFilter.getPropertyInfoSet() : null;
179
- var oFilterInfo = FilterUtil.getFilterInfo(ChartDelegate.getTypeUtil(), mConditions, aPropertiesMetadata);
180
- oBindingInfo.filters = oFilterInfo.filters;
181
- }
182
- }
183
- }
184
- };
185
-
186
- /**
187
- * Checks the binding of the chart and rebinds it if required.
188
- *
189
- * @param {Object} oMDCChart The MDC chart instance
190
- * @param {Object} oBindingInfo The binding info of the chart
191
- */
192
- ChartDelegate.rebindChart = function(oMDCChart, oBindingInfo) {
193
- if (oMDCChart && oMDCChart.getAggregation("_chart") && oBindingInfo) {
194
- oMDCChart.getAggregation("_chart").bindData(oBindingInfo);
195
- }
196
- };
197
-
198
-
199
- /**
200
- * Create a chart item based on the metadata.
201
- *
202
- * This method is a factory method that interprets the provided metadata to create the concrete
203
- * chart item by calling, for example, the {@link sap.ui.mdc.ChartDelegate#createDimensionItem}
204
- * or the {@link sap.ui.mdc.ChartDelegate#createMeasureItem} method.
205
- *
206
- * @param {string} sName
207
- * @param {sap.ui.mdc.Chart} oChart A chart instance
208
- * @param {string} sRole
209
- * @static
210
- * @returns {Promise<sap.ui.mdc.chart.Item>} A promise object
211
- */
212
- ChartDelegate.createChartItem = function(sName, oChart, sRole) {
213
- return this.fetchProperties(oChart).then(function(aProperties) {
214
-
215
- var oPropertyInfo = aProperties.find(function(oCurrentPropertyInfo) {
216
- return oCurrentPropertyInfo.name === sName;
217
- });
218
-
219
- if (!oPropertyInfo) {
220
- return null;
221
- }
222
-
223
- var oChartItem = null,
224
- sID = oChart.getId() + "--" + sName,
225
- sCreateItemMethodName = "create" + oPropertyInfo.kind + "Item",
226
- fnItemCreator = this[sCreateItemMethodName];
227
-
228
- if (typeof fnItemCreator === "function") {
229
- var oSettings = this.retrieveAggregationItem(oPropertyInfo.kind, oPropertyInfo).settings;
230
- oChartItem = fnItemCreator.call(this, sID, oSettings);
231
-
232
- if (sRole) {
233
- oChartItem.setRole(sRole);
234
- }
235
- }
236
-
237
- return oChartItem;
238
- }.bind(this));
239
- };
240
-
241
- /**
242
- * Create a chart dimension item.
243
- *
244
- * @param {string} [sID] ID for the dimension item, generated automatically if no ID is given
245
- * @param {object} oSettings Initial settings for the dimension item
246
- * @returns {sap.ui.mdc.chart.DimensionItem} An dimension item instance
247
- */
248
- ChartDelegate.createDimensionItem = function(sID, oSettings) {
249
- return new DimensionItem(sID, oSettings);
250
- };
251
-
252
- /**
253
- * Create a chart measure item.
254
- *
255
- * @param {string} [sID] ID for the measure item, generated automatically if no ID is given
256
- * @param {object} oSettings Initial settings for the measure item
257
- * @returns {sap.ui.mdc.chart.MeasureItem} A measure item instance
258
- */
259
- ChartDelegate.createMeasureItem = function(sID, oSettings) {
260
- return new MeasureItem(sID, oSettings);
261
- };
262
-
263
- ChartDelegate.addItem = function(sPropertyName, oChart, mPropertyBag, sRole) {
264
- if (typeof oChart.getModel === "function") {
265
- return this.createChartItem(sPropertyName, oChart, sRole);
266
- }
267
-
268
- return SyncPromise.resolve(null);
269
- };
270
-
271
- ChartDelegate.removeItem = function(sPropertyName, oChart, mPropertyBag) {
272
- return SyncPromise.resolve(true);
273
- };
274
-
275
- return ChartDelegate;
12
+ "sap/ui/mdc/AggregationBaseDelegate"
13
+ ], function (AggregationBaseDelegate) {
14
+ "use strict";
15
+
16
+ /**
17
+ * Base delegate class for sap.ui.mdc.Chart.<br>
18
+ * <b>Note:</b> The class is experimental and the API/behavior is not finalized and hence this should not be used for productive usage.
19
+ *
20
+ * @author SAP SE
21
+ * @private
22
+ * @experimental
23
+ * @since 1.88
24
+ * @alias sap.ui.mdc.ChartDelegate
25
+ */
26
+ var ChartDelegate = Object.assign({}, AggregationBaseDelegate);
27
+
28
+
29
+ /**
30
+ * Toolbar relevant API (WIP)
31
+ */
32
+
33
+ /**
34
+ *Zooms in on the inner chart.
35
+ * @param {int} iValue Number of steps for zooming in
36
+ *
37
+ * @experimental
38
+ * @private
39
+ * @ui5-restricted sap.ui.mdc
40
+ */
41
+ ChartDelegate.zoomIn = function (iValue) {
42
+ };
43
+
44
+ /**
45
+ *Zooms out of the inner chart.
46
+ * @param {int} iValue Number of steps for zooming out
47
+ *
48
+ * @experimental
49
+ * @private
50
+ * @ui5-restricted sap.ui.mdc
51
+ */
52
+ ChartDelegate.zoomOut = function (iValue) {
53
+ };
54
+
55
+
56
+ /**
57
+ * @typedef {Object} ZoomState
58
+ * @property {bool} enabled <code>true</code> if zooming is enabled
59
+ * @property {number} currentZoomLevel Current zoom level of the chart in percent (between 0 and 1)
60
+ */
61
+ /**
62
+ * Retrieves the current zooming information for the inner chart.
63
+ * @returns {ZoomState} Current zoom state on the inner chart
64
+ *
65
+ * @experimental
66
+ * @private
67
+ * @ui5-restricted sap.ui.mdc
68
+ */
69
+ ChartDelegate.getZoomState = function () {
70
+ };
71
+
72
+ /**
73
+ * @typedef {Object} SelectionDetails
74
+ * @property {string} eventId ID of the selection event
75
+ * @property {sap.core.Control} reference Reference to inner chart
76
+ */
77
+ /**
78
+ ** Returns the event handler for <code>chartSelectionDetails</code> as an object.
79
+ *
80
+ * @returns {SelectionDetails} Event handler for chartSelectionDetails
81
+ *
82
+ * @experimental
83
+ * @private
84
+ * @ui5-restricted sap.ui.mdc
85
+ */
86
+ ChartDelegate.getInnerChartSelectionHandler = function () {
87
+ };
88
+
89
+ /**
90
+ * Sets the visibility of the legend.
91
+ * <b>Note:</b> This function is called by the MDC chart only. You must not call it directly but use {@link sap.ui.mdc.Chart#setLegendVisible LegendVisible} instead.
92
+ * @param {bool} bVisible <code>true</code> to show legend, <code>false</code> to hide
93
+ *
94
+ * @experimental
95
+ * @private
96
+ * @ui5-restricted sap.ui.mdc
97
+ */
98
+ ChartDelegate.setLegendVisible = function (bVisible) {
99
+ };
100
+
101
+ /**
102
+ * Creates a sorter for a given property.
103
+ * @param {sap.ui.mdc.Chart.Item} oMDCItem MDC item for which a sorter is created
104
+ * @param {object} oSortProperty The sorting information
105
+ *
106
+ * @experimental
107
+ * @private
108
+ * @ui5-restricted sap.ui.mdc
109
+ */
110
+ ChartDelegate.getSorterForItem = function (oMDCItem, oSortProperty) {
111
+ //TODO: Check wether we really need this method.
112
+ //TODO: Right now it is needed since the name of a property does not include the aggregation method -> leads to an error when calling back-end
113
+ //TODO: In old chart, aggragation method was included in name since every method had their own Item
114
+ };
115
+
116
+ /**
117
+ * Inserts an MDC chart item (for <code>sap.chart.Chart</code>, this would be a measure/dimension) into the inner chart.
118
+ * This function is called by the MDC chart after a change of the <code>Items</code> aggregation.
119
+ * <b>Note:</b> Do not call this yourself, as it would not be synced with the MDC chart, but instead insert the Item into the MDC chart.
120
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem MDC chart item that is inserted into the inner chart
121
+ * @param {int} iIndex The index into which items are inserted
122
+ *
123
+ * @experimental
124
+ * @private
125
+ * @ui5-restricted sap.ui.mdc
126
+ */
127
+ ChartDelegate.insertItemToInnerChart = function (oMDCChartItem, iIndex) {
128
+ };
129
+
130
+ /**
131
+ * Removes an item (for <code>sap.chart.Chart</code>, this would be a measure/dimension) from the inner chart.
132
+ * This function is called by the MDC chart after a change of the <code>Items</code> aggregation.
133
+ * <b>Note:</b> Do not call this yourself, as it would not be synced with the MDC chart, but instead remove the item from the MDC chart.
134
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem The item to be removed from the inner chart
135
+ *
136
+ * @experimental
137
+ * @private
138
+ * @ui5-restricted sap.ui.mdc
139
+ */
140
+ ChartDelegate.removeItemFromInnerChart = function (oMDCChartItem) {
141
+ };
142
+
143
+ /**
144
+ * Creates a new MDC chart item for a given property name and updates the inner chart.
145
+ * <b>Note:</b> This does <b>not</b> add the MDC chart item to the <code>Items</code> aggregation of the MDC chart.
146
+ * Called and used by <code>p13n</code>.
147
+ * @param {string} sPropertyName Name of the property added
148
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart to which the item is added
149
+ * @returns {Promise<sap.ui.mdc.Chart.Item>} <code>Promise</code> that resolves with new MDC chart item as parameter
150
+ *
151
+ * @experimental
152
+ * @private
153
+ * @ui5-restricted sap.ui.mdc
154
+ */
155
+ ChartDelegate.addItem = function (sPropertyName, oMDCChart, mPropertyBag, sRole) {
156
+ };
157
+
158
+ /**
159
+ * Removes an existing MDC chart item for a given property name and updates the inner chart.
160
+ * Called and used by p13n
161
+ * @param {string} sPropertyName Name of the property removed
162
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart from which property is removed
163
+ * @returns {Promise<bool>} Promise containing information whether the item was deleted
164
+ *
165
+ * @experimental
166
+ * @private
167
+ * @ui5-restricted sap.ui.mdc
168
+ */
169
+ ChartDelegate.removeItem = function (oProperty, oMDCChart) {
170
+ return Promise.resolve(true);
171
+ };
172
+
173
+ /**
174
+ * Chart relevant API (WIP)
175
+ */
176
+
177
+ /**
178
+ * Loads the required libraries and creates the inner chart.
179
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
180
+ * @returns {Promise} Resolved once the inner chart has been initialized
181
+ *
182
+ * @experimental
183
+ * @private
184
+ * @ui5-restricted sap.ui.mdc
185
+ */
186
+ ChartDelegate.initializeInnerChart = function (oMDCChart) {
187
+ };
188
+
189
+ /**
190
+ * Creates the initial content for the chart before the metadata is retrieved.
191
+ * This can be used by chart libraries that can already show some information without the actual data (for example, axis labels, legend, ...).
192
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
193
+ *
194
+ * @experimental
195
+ * @private
196
+ * @ui5-restricted sap.ui.mdc
197
+ */
198
+ ChartDelegate.createInitialChartContent = function (oMDCChart) {
199
+ //Not relevant for sap.chart.Chart
200
+ };
201
+ /**
202
+ * Returns the instance of the inner chart.
203
+ * @returns {sap.core.Control} Instance of the inner chart
204
+ */
205
+ ChartDelegate.getInnerChart = function () {
206
+ };
207
+
208
+ /**
209
+ * @typedef {Object} ChartTypeObject
210
+ * @property {string} key Unique key of the chart type
211
+ * @property {string} icon URI for the icon for the current chart type
212
+ * @property {string} text Name of the current chart type
213
+ * @property {bool} selected Whether the chart type is the one currently used
214
+ */
215
+ /**
216
+ * Returns the current chart type.
217
+ * @returns {ChartTypeObject} Information about the current chart type
218
+ * @throws exception if inner chart is not initialized yet
219
+ *
220
+ * @experimental
221
+ * @private
222
+ * @ui5-restricted sap.ui.mdc
223
+ */
224
+ ChartDelegate.getChartTypeInfo = function () {
225
+ };
226
+
227
+ /**
228
+ * This function is used by P13n to determine which chart type supports which layout options.
229
+ * There might be chart tyoes which do not support certain layout options (i.e. "Axis3").
230
+ * Layout config is defined as followed:
231
+ * {
232
+ * key: string //identifier for the chart type
233
+ * allowedLayoutOptions : [] //array containing allowed layout options as string
234
+ * }
235
+ *
236
+ * @returns {array}
237
+ */
238
+ ChartDelegate.getChartTypeLayoutConfig = function() {
239
+
240
+ };
241
+
242
+ /**
243
+ * Gets the available chart types for the current state of the inner chart.
244
+ *
245
+ * @returns {array<ChartTypeObject>} Array containing the available chart types
246
+ *
247
+ * @experimental
248
+ * @private
249
+ * @ui5-restricted Fiori Elements
250
+ */
251
+ ChartDelegate.getAvailableChartTypes = function () {
252
+ };
253
+
254
+ /**
255
+ * Returns the current drilling stack of the inner chart.
256
+ * The returned objects need at least a <code>label</code> and a <code>name</code> property.
257
+ * Also, a <code>dimension</code> array containing the dimension drill stack at the current level is required.
258
+ * @returns {array} Array containing the drill stack
259
+ *
260
+ * @experimental
261
+ * @private
262
+ * @ui5-restricted sap.ui.mdc
263
+ */
264
+ ChartDelegate.getDrillStack = function () {
265
+ };
266
+
267
+ /**
268
+ * Returns all sorted dimensions of an inner chart as property.
269
+ * This is used to determine possible drilldown dimensions in the drill down popover of the MDC chart.
270
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
271
+ * @returns {Promise<array<sap.ui.mdc.chart.Item>>} <code>Promise</code> containing an array of dimensions that is sorted
272
+ *
273
+ * @experimental
274
+ * @private
275
+ * @ui5-restricted sap.ui.mdc
276
+ */
277
+ ChartDelegate.getSortedDimensions = function (oMDCChart) {
278
+ };
279
+
280
+ /**
281
+ * Determines which MDC items are drillable and returns them.
282
+ * This function is used by the breadcrumb navigation.
283
+ *
284
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
285
+ * @returns {array<sap.ui.mdc.chart.Item>} Array of MDC items that are drillable
286
+ *
287
+ * @experimental
288
+ * @private
289
+ * @ui5-restricted sap.ui.mdc
290
+ */
291
+ ChartDelegate.getDrillableItems = function (oMDCChart) {
292
+ };
293
+
294
+ /**
295
+ * Sets the chart type of the inner chart.
296
+ * This function is called by the MDC chart when the <code>chartType</code> property is updated.
297
+ * <b>Note:</b> This function is called by the MDC chart only. You must not call it directly but use {@link sap.ui.mdc.Chart#setChartType setChartType} instead.
298
+ * @param {string} sChartType The new chart type
299
+ *
300
+ * @experimental
301
+ * @private
302
+ * @ui5-restricted sap.ui.mdc
303
+ */
304
+ ChartDelegate.setChartType = function (sChartType) {
305
+ };
306
+
307
+ /**
308
+ * Binds the inner chart to the back-end data and creates the inner chart content.
309
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
310
+ * @param {function} fnCallbackDataLoaded Callback function when data is loaded
311
+ *
312
+ * @experimental
313
+ * @private
314
+ * @ui5-restricted sap.ui.mdc
315
+ */
316
+ ChartDelegate.createInnerChartContent = function (oMDCChart, fnCallbackDataLoaded) {
317
+ };
318
+
319
+ /**
320
+ * Checks the binding of the chart and rebinds it if required.
321
+ *
322
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
323
+ * @param {object} oBindingInfo The bindingInfo of the chart
324
+ * @deprecated as of 1.98;: use rebind instead
325
+ *
326
+ * @experimental
327
+ * @private
328
+ * @ui5-restricted sap.ui.mdc
329
+ */
330
+ ChartDelegate.rebindChart = function (oMDCChart, oBindingInfo) {
331
+ };
332
+
333
+
334
+ /**
335
+ * Checks the binding of the chart and rebinds it if required.
336
+ *
337
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
338
+ * @param {object} oBindingInfo The bindingInfo of the chart
339
+ *
340
+ * @experimental
341
+ * @private
342
+ * @ui5-restricted sap.ui.mdc
343
+ */
344
+ ChartDelegate.rebind = function (oMDCChart, oBindingInfo) {
345
+ };
346
+
347
+ /**
348
+ * Returns the information whether the inner chart is currently bound.
349
+ * @returns {bool} <code>true</code> if inner chart is bound; <code>false</code> if not
350
+ *
351
+ * @experimental
352
+ * @private
353
+ * @ui5-restricted sap.ui.mdc
354
+ */
355
+ ChartDelegate.getInnerChartBound = function () {
356
+ };
357
+
358
+ /**
359
+ * Updates the binding info with the relevant filters.
360
+ *
361
+ * @param {Object} oMDCChart The MDC chart instance
362
+ * @param {Object} oBindingInfo The binding info of the chart
363
+ *
364
+ * @experimental
365
+ * @private
366
+ * @ui5-restricted sap.ui.mdc
367
+ */
368
+ ChartDelegate.updateBindingInfo = function (oMDCChart, oBindingInfo) {
369
+ };
370
+
371
+ /**
372
+ * Sets tooltips to visible/invisible for the inner chart.
373
+ * <b>Note:</b> This function is called by the MDC chart only. You must not call it directly but use {@link sap.ui.mdc.Chart#setShowChartTooltip setShowChartTooltip} instead.
374
+ * @param {bool} bFlag <code>true</code> for visible, <code>false</code> for invisible
375
+ *
376
+ * @experimental
377
+ * @private
378
+ * @ui5-restricted sap.ui.mdc
379
+ */
380
+ ChartDelegate.setChartTooltipVisibility = function (bFlag) {
381
+ };
382
+
383
+ /**
384
+ * This function returns an id which should be used in the internal chart for the measure/dimension
385
+ * In the standard case, this is just the id of the property.
386
+ * If it is necessary to use another id internally inside the chart (e.g. on duplicate property ids) this method can be overwritten.
387
+ * In this case, <code>getPropertyFromNameAndKind</code> needs to be overwritten aswell.
388
+ * @param {string} sName ID of the property
389
+ * @param {string} sKind Kind of the Property (Measure/Dimension)
390
+ * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
391
+ * @returns {string} internal id for the sap.chart.Chart
392
+ */
393
+ ChartDelegate.getInternalChartNameFromPropertyNameAndKind = function(sName, sKind, oMDCChart) {
394
+
395
+ };
396
+
397
+ /**
398
+ * This maps an id of an internal chart dimension/measure & kind of a property to its coresponding property entry.
399
+ * @param {string} sName the id of internal chart measure/dimension
400
+ * @param {string} sKind the kind of the property
401
+ * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
402
+ * @returns {object} the property object
403
+ */
404
+ ChartDelegate.getPropertyFromNameAndKind = function(sName, sKind, oMDCChart) {
405
+
406
+ };
407
+
408
+
409
+ /**
410
+ * Initializes a new chart property helper for V4 analytics with the property extensions merged into the property infos.
411
+ *
412
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
413
+ * @returns {Promise<sap.ui.mdc.chart.PropertyHelper>} <code>Promise</code> that resolves with the property helper
414
+ * @private
415
+ * @ui5-restricted sap.ui.mdc
416
+ */
417
+ ChartDelegate.initPropertyHelper = function (oMDCChart) {
418
+ return Promise.resolve(true);
419
+ };
420
+
421
+ /**
422
+ * Returns the relevant propery infos based on the metadata used with the MDC chart instance.
423
+ *
424
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
425
+ * @returns {array} Array of the property infos to be used within MDC chart
426
+ *
427
+ * @experimental
428
+ * @private
429
+ * @ui5-restricted sap.ui.mdc
430
+ */
431
+ ChartDelegate.fetchProperties = function (oMDCChart) {
432
+ };
433
+
434
+ return ChartDelegate;
276
435
  });