@openui5/sap.ui.mdc 1.97.1 → 1.100.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 (296) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +6 -3
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
  7. package/src/sap/ui/mdc/BaseDelegate.js +1 -1
  8. package/src/sap/ui/mdc/Chart.js +1128 -1806
  9. package/src/sap/ui/mdc/ChartDelegate.js +454 -250
  10. package/src/sap/ui/mdc/ChartRenderer.js +73 -77
  11. package/src/sap/ui/mdc/Control.js +11 -6
  12. package/src/sap/ui/mdc/Element.js +10 -6
  13. package/src/sap/ui/mdc/Field.js +19 -4
  14. package/src/sap/ui/mdc/FilterBar.js +3 -2
  15. package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
  16. package/src/sap/ui/mdc/FilterField.js +50 -9
  17. package/src/sap/ui/mdc/Link.js +25 -6
  18. package/src/sap/ui/mdc/LinkDelegate.js +3 -3
  19. package/src/sap/ui/mdc/MultiValueField.js +30 -6
  20. package/src/sap/ui/mdc/Table.js +151 -102
  21. package/src/sap/ui/mdc/TableDelegate.js +68 -13
  22. package/src/sap/ui/mdc/ValueHelp.js +26 -11
  23. package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -1
  24. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
  26. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
  27. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +60 -17
  28. package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
  29. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +10 -10
  30. package/src/sap/ui/mdc/chart/DrillStackHandler.js +43 -254
  31. package/src/sap/ui/mdc/chart/Item.js +62 -92
  32. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
  33. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
  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 +4 -2
  38. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +388 -67
  39. package/src/sap/ui/mdc/condition/Operator.js +4 -2
  40. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -24
  41. package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
  42. package/src/sap/ui/mdc/designtime/Util.js +63 -0
  43. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
  44. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +83 -5
  45. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
  46. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
  47. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
  48. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +35 -8
  49. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  50. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  51. package/src/sap/ui/mdc/field/ConditionType.js +17 -6
  52. package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
  53. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  54. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  55. package/src/sap/ui/mdc/field/DefineConditionPanel.js +88 -29
  56. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +77 -20
  57. package/src/sap/ui/mdc/field/FieldBase.js +93 -16
  58. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
  59. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
  60. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  61. package/src/sap/ui/mdc/field/FieldInfoBase.js +24 -10
  62. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  63. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  64. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  65. package/src/sap/ui/mdc/field/FieldValueHelp.js +5 -2
  66. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  67. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
  68. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +5 -4
  69. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
  70. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
  71. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
  72. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  73. package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
  74. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  75. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  76. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  77. package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
  78. package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
  79. package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
  80. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
  81. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  82. package/src/sap/ui/mdc/field/content/ContentFactory.js +10 -6
  83. package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
  84. package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
  85. package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
  86. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  87. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +285 -208
  88. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  89. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
  90. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +132 -56
  91. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
  92. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
  93. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
  94. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
  95. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +43 -19
  96. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
  97. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  98. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
  99. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
  100. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
  101. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
  102. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +47 -10
  103. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
  104. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  105. package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
  106. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +0 -1
  107. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
  108. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +27 -0
  109. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  110. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
  111. package/src/sap/ui/mdc/library.js +54 -44
  112. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  113. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  114. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  115. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  116. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  117. package/src/sap/ui/mdc/link/Factory.js +2 -2
  118. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  119. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  120. package/src/sap/ui/mdc/link/Log.js +1 -1
  121. package/src/sap/ui/mdc/link/Panel.js +140 -177
  122. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  123. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  124. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  125. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  126. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  127. package/src/sap/ui/mdc/messagebundle.properties +57 -2
  128. package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
  129. package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
  130. package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
  131. package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
  132. package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
  133. package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
  134. package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
  135. package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
  136. package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
  137. package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
  138. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
  139. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
  140. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
  141. package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
  142. package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
  143. package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
  144. package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
  145. package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
  146. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
  147. package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
  148. package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
  149. package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
  150. package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
  151. package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
  152. package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
  153. package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
  154. package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
  155. package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
  156. package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
  157. package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
  158. package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
  159. package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
  160. package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
  161. package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
  162. package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
  163. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
  164. package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
  165. package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
  166. package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
  167. package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
  168. package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
  169. package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
  170. package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
  171. package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
  172. package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
  173. package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
  174. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
  175. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
  176. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +30 -15
  177. package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -142
  178. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -17
  179. package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
  180. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +348 -0
  181. package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
  182. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
  183. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +106 -0
  184. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
  185. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
  186. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +117 -123
  187. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +3 -5
  188. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +1 -1
  189. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
  190. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +459 -351
  191. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
  192. package/src/sap/ui/mdc/p13n/Engine.js +51 -30
  193. package/src/sap/ui/mdc/p13n/FlexUtil.js +6 -118
  194. package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
  195. package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
  196. package/src/sap/ui/mdc/p13n/StateUtil.js +24 -6
  197. package/src/sap/ui/mdc/p13n/UIManager.js +20 -19
  198. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
  199. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +19 -12
  200. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  201. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
  202. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
  203. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1094 -49
  204. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
  205. package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
  206. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +108 -0
  207. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
  208. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -7
  209. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
  210. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
  211. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
  212. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +22 -11
  213. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +174 -0
  214. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +12 -19
  215. package/src/sap/ui/mdc/table/Column.js +12 -12
  216. package/src/sap/ui/mdc/table/CreationRow.js +11 -11
  217. package/src/sap/ui/mdc/table/GridTableType.js +80 -33
  218. package/src/sap/ui/mdc/table/PropertyHelper.js +63 -19
  219. package/src/sap/ui/mdc/table/ResponsiveTableType.js +94 -23
  220. package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
  221. package/src/sap/ui/mdc/table/RowSettings.js +45 -4
  222. package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
  223. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
  224. package/src/sap/ui/mdc/themes/base/Chart.less +2 -0
  225. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  226. package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
  227. package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
  228. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +16 -4
  229. package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
  230. package/src/sap/ui/mdc/util/Common.js +1 -1
  231. package/src/sap/ui/mdc/util/DateUtil.js +33 -8
  232. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  233. package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
  234. package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
  235. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  236. package/src/sap/ui/mdc/util/PropertyHelper.js +243 -87
  237. package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
  238. package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
  239. package/src/sap/ui/mdc/valuehelp/Popover.js +6 -3
  240. package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
  241. package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
  242. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
  243. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +5 -4
  244. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
  245. package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
  246. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
  247. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +23 -14
  248. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +46 -17
  249. package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -27
  250. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  251. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  252. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  253. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  254. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  255. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  256. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  257. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +291 -0
  258. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
  259. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -9
  260. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  261. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  262. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  263. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  264. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  265. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +264 -139
  266. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  267. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
  268. package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
  269. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
  270. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
  271. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  272. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  273. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  274. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  275. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  276. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  277. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  278. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  279. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  280. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  281. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  282. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  283. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  284. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +0 -150
  285. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  286. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  287. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  288. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  289. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +0 -39
  290. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
  291. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
  292. package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -404
  293. package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
  294. package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
  295. package/src/sap/ui/mdc/ui/Container.js +0 -240
  296. package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
@@ -1,276 +1,480 @@
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
  */
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
- };
12
+ "sap/ui/mdc/AggregationBaseDelegate"
13
+ ], function (AggregationBaseDelegate) {
14
+ "use strict";
64
15
 
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
- };
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);
112
27
 
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
28
 
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
- };
29
+ /**
30
+ * Toolbar relevant API (WIP)
31
+ */
142
32
 
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
- };
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
+ };
157
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
+ };
158
54
 
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
55
 
168
- var oFilter = Core.byId(oMDCChart.getFilter());
169
- if (oFilter) {
170
- var mConditions = oFilter.getConditions();
56
+ /**
57
+ * @typedef {object} ZoomState
58
+ * @property {boolean} 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
+ };
171
71
 
172
- if (mConditions) {
72
+ ChartDelegate.getFilterDelegate = function() {
73
+ return {
173
74
 
174
- if (!oBindingInfo) {
175
- oBindingInfo = {};
176
- }
75
+ /**
76
+ * Creates an instance of a <code>sap.ui.mdc.FilterField</code>.
77
+ *
78
+ * @param {string} sPropertyName The property name
79
+ * @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
80
+ * @returns {Promise<sap.ui.mdc.FilterField>} <code>Promise</code> that resolves with an instance of a <code>sap.ui.mdc.FilterField</code>.
81
+ * @see sap.ui.mdc.AggregationBaseDelegate#addItem
82
+ */
83
+ addItem: function (sPropertyName, oControl) {
84
+ return Promise.resolve();
85
+ },
177
86
 
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
- };
87
+ /**
88
+ * This methods is called during the appliance of the add condition change.
89
+ * This intention is to update the propertyInfo property.
90
+ *
91
+ * @param {string} sPropertyName The name of a property.
92
+ * @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
93
+ * @param {Object} mPropertyBag Instance of property bag from Flex change API
94
+ * @returns {Promise} Promise that resolves once the properyInfo property was updated
95
+ */
96
+ addCondition: function(sPropertyName, oControl, mPropertyBag) {
97
+ return Promise.resolve();
98
+ },
185
99
 
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
- }
100
+ /**
101
+ * This methods is called during the appliance of the remove condition change.
102
+ * This intention is to update the propertyInfo property.
103
+ *
104
+ * @param {string} sPropertyName The name of a property.
105
+ * @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
106
+ * @param {Object} mPropertyBag Instance of property bag from Flex change API
107
+ * @returns {Promise} Promise that resolves once the properyInfo property was updated
108
+ */
109
+ removeCondition: function(sPropertyName, oControl, mPropertyBag) {
110
+ return Promise.resolve();
111
+ }
112
+ };
196
113
  };
197
114
 
115
+ /**
116
+ * Creates a new MDC chart item for a given property name and updates the inner chart.
117
+ * <b>Note:</b> This does <b>not</b> add the MDC chart item to the <code>Items</code> aggregation of the MDC chart.
118
+ * Called and used by <code>p13n</code>.
119
+ * @param {string} sPropertyName Name of the property added
120
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart to which the item is added
121
+ * @returns {Promise<sap.ui.mdc.Chart.Item>} <code>Promise</code> that resolves with new MDC chart item as parameter
122
+ *
123
+ * @experimental
124
+ * @private
125
+ * @ui5-restricted sap.ui.mdc
126
+ */
127
+ ChartDelegate.addItem = function (sPropertyName, oMDCChart, mPropertyBag, sRole) {
128
+ };
198
129
 
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
- };
130
+ /**
131
+ * @typedef {object} SelectionDetails
132
+ * @property {string} eventId ID of the selection event
133
+ * @property {sap.ui.core.Control} reference Reference to inner chart
134
+ */
135
+ /**
136
+ ** Returns the event handler for <code>chartSelectionDetails</code> as an object.
137
+ *
138
+ * @returns {SelectionDetails} Event handler for chartSelectionDetails
139
+ *
140
+ * @experimental
141
+ * @private
142
+ * @ui5-restricted sap.ui.mdc
143
+ */
144
+ ChartDelegate.getInnerChartSelectionHandler = function () {
145
+ };
240
146
 
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
- };
147
+ /**
148
+ * Sets the visibility of the legend.
149
+ * <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.
150
+ * @param {boolean} bVisible <code>true</code> to show legend, <code>false</code> to hide
151
+ *
152
+ * @experimental
153
+ * @private
154
+ * @ui5-restricted sap.ui.mdc
155
+ */
156
+ ChartDelegate.setLegendVisible = function (bVisible) {
157
+ };
251
158
 
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
- };
159
+ /**
160
+ * Creates a sorter for a given property.
161
+ * @param {sap.ui.mdc.Chart.Item} oMDCItem MDC item for which a sorter is created
162
+ * @param {object} oSortProperty The sorting information
163
+ *
164
+ * @experimental
165
+ * @private
166
+ * @ui5-restricted sap.ui.mdc
167
+ */
168
+ ChartDelegate.getSorterForItem = function (oMDCItem, oSortProperty) {
169
+ //TODO: Check wether we really need this method.
170
+ //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
171
+ //TODO: In old chart, aggragation method was included in name since every method had their own Item
172
+ };
262
173
 
263
- ChartDelegate.addItem = function(sPropertyName, oChart, mPropertyBag, sRole) {
264
- if (typeof oChart.getModel === "function") {
265
- return this.createChartItem(sPropertyName, oChart, sRole);
266
- }
174
+ /**
175
+ * Inserts an MDC chart item (for <code>sap.chart.Chart</code>, this would be a measure/dimension) into the inner chart.
176
+ * This function is called by the MDC chart after a change of the <code>Items</code> aggregation.
177
+ * <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.
178
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem MDC chart item that is inserted into the inner chart
179
+ * @param {int} iIndex The index into which items are inserted
180
+ *
181
+ * @experimental
182
+ * @private
183
+ * @ui5-restricted sap.ui.mdc
184
+ */
185
+ ChartDelegate.insertItemToInnerChart = function (oMDCChartItem, iIndex) {
186
+ };
267
187
 
268
- return SyncPromise.resolve(null);
269
- };
188
+ /**
189
+ * Removes an item (for <code>sap.chart.Chart</code>, this would be a measure/dimension) from the inner chart.
190
+ * This function is called by the MDC chart after a change of the <code>Items</code> aggregation.
191
+ * <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.
192
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem The item to be removed from the inner chart
193
+ *
194
+ * @experimental
195
+ * @private
196
+ * @ui5-restricted sap.ui.mdc
197
+ */
198
+ ChartDelegate.removeItemFromInnerChart = function (oMDCChartItem) {
199
+ };
270
200
 
271
- ChartDelegate.removeItem = function(sPropertyName, oChart, mPropertyBag) {
272
- return SyncPromise.resolve(true);
273
- };
274
201
 
275
- return ChartDelegate;
202
+
203
+ /**
204
+ * Removes an existing MDC chart item for a given property name and updates the inner chart.
205
+ * Called and used by p13n
206
+ * @param {string} oProperty Name of the property removed
207
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart from which property is removed
208
+ * @returns {Promise<boolean>} Promise containing information whether the item was deleted
209
+ *
210
+ * @experimental
211
+ * @private
212
+ * @ui5-restricted sap.ui.mdc
213
+ */
214
+ ChartDelegate.removeItem = function (oProperty, oMDCChart) {
215
+ return Promise.resolve(true);
216
+ };
217
+
218
+ /**
219
+ * Chart relevant API (WIP)
220
+ */
221
+
222
+ /**
223
+ * Loads the required libraries and creates the inner chart.
224
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
225
+ * @returns {Promise} Resolved once the inner chart has been initialized
226
+ *
227
+ * @experimental
228
+ * @private
229
+ * @ui5-restricted sap.ui.mdc
230
+ */
231
+ ChartDelegate.initializeInnerChart = function (oMDCChart) {
232
+ };
233
+
234
+ /**
235
+ * Creates the initial content for the chart before the metadata is retrieved.
236
+ * This can be used by chart libraries that can already show some information without the actual data (for example, axis labels, legend, ...).
237
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
238
+ *
239
+ * @experimental
240
+ * @private
241
+ * @ui5-restricted sap.ui.mdc
242
+ */
243
+ ChartDelegate.createInitialChartContent = function (oMDCChart) {
244
+ //Not relevant for sap.chart.Chart
245
+ };
246
+ /**
247
+ * Returns the instance of the inner chart.
248
+ * @returns {sap.core.Control} Instance of the inner chart
249
+ */
250
+ ChartDelegate.getInnerChart = function () {
251
+ };
252
+
253
+ /**
254
+ * @typedef {object} ChartTypeObject
255
+ * @property {string} key Unique key of the chart type
256
+ * @property {string} icon URI for the icon for the current chart type
257
+ * @property {string} text Name of the current chart type
258
+ * @property {boolean} selected Whether the chart type is the one currently used
259
+ */
260
+ /**
261
+ * Returns the current chart type.
262
+ * @returns {ChartTypeObject} Information about the current chart type
263
+ * @throws exception if inner chart is not initialized yet
264
+ *
265
+ * @experimental
266
+ * @private
267
+ * @ui5-restricted sap.ui.mdc
268
+ */
269
+ ChartDelegate.getChartTypeInfo = function () {
270
+ };
271
+
272
+ /**
273
+ * This function is used by P13n to determine which chart type supports which layout options.
274
+ * There might be chart tyoes which do not support certain layout options (i.e. "Axis3").
275
+ * Layout config is defined as followed:
276
+ * {
277
+ * key: string //identifier for the chart type
278
+ * allowedLayoutOptions : [] //array containing allowed layout options as string
279
+ * }
280
+ *
281
+ * @returns {array}
282
+ */
283
+ ChartDelegate.getChartTypeLayoutConfig = function() {
284
+
285
+ };
286
+
287
+ /**
288
+ * Gets the available chart types for the current state of the inner chart.
289
+ *
290
+ * @returns {Array<ChartTypeObject>} Array containing the available chart types
291
+ *
292
+ * @experimental
293
+ * @private
294
+ * @ui5-restricted Fiori Elements
295
+ */
296
+ ChartDelegate.getAvailableChartTypes = function () {
297
+ };
298
+
299
+ /**
300
+ * Returns the current drilling stack of the inner chart.
301
+ * The returned objects need at least a <code>label</code> and a <code>name</code> property.
302
+ * Also, a <code>dimension</code> array containing the dimension drill stack at the current level is required.
303
+ * @returns {array} Array containing the drill stack
304
+ *
305
+ * @experimental
306
+ * @private
307
+ * @ui5-restricted sap.ui.mdc
308
+ */
309
+ ChartDelegate.getDrillStack = function () {
310
+ };
311
+
312
+ /**
313
+ * Returns all sorted dimensions of an inner chart as property.
314
+ * This is used to determine possible drilldown dimensions in the drill down popover of the MDC chart.
315
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
316
+ * @returns {Promise<Array<sap.ui.mdc.chart.Item>>} <code>Promise</code> containing an array of dimensions that is sorted
317
+ *
318
+ * @experimental
319
+ * @private
320
+ * @ui5-restricted sap.ui.mdc
321
+ */
322
+ ChartDelegate.getSortedDimensions = function (oMDCChart) {
323
+ };
324
+
325
+ /**
326
+ * Determines which MDC items are drillable and returns them.
327
+ * This function is used by the breadcrumb navigation.
328
+ *
329
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
330
+ * @returns {Array<sap.ui.mdc.chart.Item>} Array of MDC items that are drillable
331
+ *
332
+ * @experimental
333
+ * @private
334
+ * @ui5-restricted sap.ui.mdc
335
+ */
336
+ ChartDelegate.getDrillableItems = function (oMDCChart) {
337
+ };
338
+
339
+ /**
340
+ * Sets the chart type of the inner chart.
341
+ * This function is called by the MDC chart when the <code>chartType</code> property is updated.
342
+ * <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.
343
+ * @param {string} sChartType The new chart type
344
+ *
345
+ * @experimental
346
+ * @private
347
+ * @ui5-restricted sap.ui.mdc
348
+ */
349
+ ChartDelegate.setChartType = function (sChartType) {
350
+ };
351
+
352
+ /**
353
+ * Binds the inner chart to the back-end data and creates the inner chart content.
354
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
355
+ * @param {function} fnCallbackDataLoaded Callback function when data is loaded
356
+ *
357
+ * @experimental
358
+ * @private
359
+ * @ui5-restricted sap.ui.mdc
360
+ */
361
+ ChartDelegate.createInnerChartContent = function (oMDCChart, fnCallbackDataLoaded) {
362
+ };
363
+
364
+ /**
365
+ * Checks the binding of the chart and rebinds it if required.
366
+ *
367
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
368
+ * @param {object} oBindingInfo The bindingInfo of the chart
369
+ * @deprecated as of 1.98;: use rebind instead
370
+ *
371
+ * @experimental
372
+ * @private
373
+ * @ui5-restricted sap.ui.mdc
374
+ */
375
+ ChartDelegate.rebindChart = function (oMDCChart, oBindingInfo) {
376
+ };
377
+
378
+
379
+ /**
380
+ * Checks the binding of the chart and rebinds it if required.
381
+ *
382
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
383
+ * @param {object} oBindingInfo The bindingInfo of the chart
384
+ *
385
+ * @experimental
386
+ * @private
387
+ * @ui5-restricted sap.ui.mdc
388
+ */
389
+ ChartDelegate.rebind = function (oMDCChart, oBindingInfo) {
390
+ };
391
+
392
+ /**
393
+ * Returns the information whether the inner chart is currently bound.
394
+ * @returns {boolean} <code>true</code> if inner chart is bound; <code>false</code> if not
395
+ *
396
+ * @experimental
397
+ * @private
398
+ * @ui5-restricted sap.ui.mdc
399
+ */
400
+ ChartDelegate.getInnerChartBound = function () {
401
+ };
402
+
403
+ /**
404
+ * Updates the binding info with the relevant filters.
405
+ *
406
+ * @param {Object} oMDCChart The MDC chart instance
407
+ * @param {Object} oBindingInfo The binding info of the chart
408
+ *
409
+ * @experimental
410
+ * @private
411
+ * @ui5-restricted sap.ui.mdc
412
+ */
413
+ ChartDelegate.updateBindingInfo = function (oMDCChart, oBindingInfo) {
414
+ };
415
+
416
+ /**
417
+ * Sets tooltips to visible/invisible for the inner chart.
418
+ * <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.
419
+ * @param {boolean} bFlag <code>true</code> for visible, <code>false</code> for invisible
420
+ *
421
+ * @experimental
422
+ * @private
423
+ * @ui5-restricted sap.ui.mdc
424
+ */
425
+ ChartDelegate.setChartTooltipVisibility = function (bFlag) {
426
+ };
427
+
428
+ /**
429
+ * This function returns an id which should be used in the internal chart for the measure/dimension
430
+ * In the standard case, this is just the id of the property.
431
+ * If it is necessary to use another id internally inside the chart (e.g. on duplicate property ids) this method can be overwritten.
432
+ * In this case, <code>getPropertyFromNameAndKind</code> needs to be overwritten aswell.
433
+ * @param {string} sName ID of the property
434
+ * @param {string} sKind Kind of the Property (Measure/Dimension)
435
+ * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
436
+ * @returns {string} internal id for the sap.chart.Chart
437
+ */
438
+ ChartDelegate.getInternalChartNameFromPropertyNameAndKind = function(sName, sKind, oMDCChart) {
439
+
440
+ };
441
+
442
+ /**
443
+ * This maps an id of an internal chart dimension/measure & kind of a property to its coresponding property entry.
444
+ * @param {string} sName the id of internal chart measure/dimension
445
+ * @param {string} sKind the kind of the property
446
+ * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
447
+ * @returns {object} the property object
448
+ */
449
+ ChartDelegate.getPropertyFromNameAndKind = function(sName, sKind, oMDCChart) {
450
+
451
+ };
452
+
453
+
454
+ /**
455
+ * Initializes a new chart property helper for V4 analytics with the property extensions merged into the property infos.
456
+ *
457
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
458
+ * @returns {Promise<sap.ui.mdc.chart.PropertyHelper>} <code>Promise</code> that resolves with the property helper
459
+ * @private
460
+ * @ui5-restricted sap.ui.mdc
461
+ */
462
+ ChartDelegate.initPropertyHelper = function (oMDCChart) {
463
+ return Promise.resolve(true);
464
+ };
465
+
466
+ /**
467
+ * Returns the relevant propery infos based on the metadata used with the MDC chart instance.
468
+ *
469
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
470
+ * @returns {array} Array of the property infos to be used within MDC chart
471
+ *
472
+ * @experimental
473
+ * @private
474
+ * @ui5-restricted sap.ui.mdc
475
+ */
476
+ ChartDelegate.fetchProperties = function (oMDCChart) {
477
+ };
478
+
479
+ return ChartDelegate;
276
480
  });