@openui5/sap.ui.mdc 1.102.2 → 1.104.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 (256) hide show
  1. package/.reuse/dep5 +17 -0
  2. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  3. package/THIRDPARTY.txt +35 -2
  4. package/package.json +4 -4
  5. package/src/sap/ui/mdc/.library +1 -1
  6. package/src/sap/ui/mdc/ActionToolbar.js +1 -1
  7. package/src/sap/ui/mdc/AggregationBaseDelegate.js +11 -0
  8. package/src/sap/ui/mdc/Chart.js +141 -57
  9. package/src/sap/ui/mdc/ChartDelegate.js +97 -92
  10. package/src/sap/ui/mdc/Control.js +1 -1
  11. package/src/sap/ui/mdc/Element.js +1 -1
  12. package/src/sap/ui/mdc/Field.js +2 -2
  13. package/src/sap/ui/mdc/FilterBar.js +1 -1
  14. package/src/sap/ui/mdc/FilterField.js +2 -2
  15. package/src/sap/ui/mdc/Link.js +77 -12
  16. package/src/sap/ui/mdc/LinkDelegate.js +81 -76
  17. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  18. package/src/sap/ui/mdc/Table.js +7 -1
  19. package/src/sap/ui/mdc/ValueHelp.js +1 -19
  20. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -1
  21. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
  22. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -2
  23. package/src/sap/ui/mdc/chart/ChartToolbar.js +43 -5
  24. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +6 -2
  25. package/src/sap/ui/mdc/chart/Item.js +6 -11
  26. package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -8
  27. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -3
  28. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  29. package/src/sap/ui/mdc/condition/ConditionConverter.js +16 -131
  30. package/src/sap/ui/mdc/condition/ConditionModel.js +50 -21
  31. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  32. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +3 -3
  33. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  34. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
  35. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  36. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +18 -4
  37. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +53 -0
  38. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +3 -0
  39. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +9 -4
  40. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +3 -1
  41. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  42. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  43. package/src/sap/ui/mdc/field/ConditionType.js +135 -39
  44. package/src/sap/ui/mdc/field/ConditionsType.js +71 -10
  45. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
  46. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  47. package/src/sap/ui/mdc/field/DefineConditionPanel.js +93 -81
  48. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
  49. package/src/sap/ui/mdc/field/FieldBase.js +94 -74
  50. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +20 -1
  51. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -39
  52. package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -21
  53. package/src/sap/ui/mdc/field/FieldInput.js +2 -2
  54. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  55. package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
  56. package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
  57. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -19
  58. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  59. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
  60. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
  61. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
  62. package/src/sap/ui/mdc/field/InParameter.js +1 -4
  63. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  64. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  65. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  66. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  67. package/src/sap/ui/mdc/field/TokenDisplay.js +2 -2
  68. package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
  69. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -5
  70. package/src/sap/ui/mdc/field/content/DateTimeContent.js +1 -1
  71. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -4
  72. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
  73. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  74. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
  75. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  76. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +80 -4
  77. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +19 -38
  78. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  79. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +23 -41
  80. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +43 -58
  81. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  82. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  83. package/src/sap/ui/mdc/flexibility/GroupFlex.js +25 -55
  84. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +38 -57
  85. package/src/sap/ui/mdc/flexibility/SortFlex.js +23 -52
  86. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +3 -3
  87. package/src/sap/ui/mdc/flexibility/Util.js +82 -0
  88. package/src/sap/ui/mdc/flexibility/xConfigFlex.js +137 -0
  89. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +3 -1
  90. package/src/sap/ui/mdc/library.js +4 -15
  91. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  92. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  93. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  94. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  95. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  96. package/src/sap/ui/mdc/link/Factory.js +1 -1
  97. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  98. package/src/sap/ui/mdc/link/LinkItem.js +9 -1
  99. package/src/sap/ui/mdc/link/Panel.js +26 -11
  100. package/src/sap/ui/mdc/link/PanelItem.js +10 -1
  101. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  102. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  103. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  104. package/src/sap/ui/mdc/messagebundle.properties +16 -2
  105. package/src/sap/ui/mdc/messagebundle_ar.properties +12 -2
  106. package/src/sap/ui/mdc/messagebundle_bg.properties +12 -2
  107. package/src/sap/ui/mdc/messagebundle_ca.properties +12 -2
  108. package/src/sap/ui/mdc/messagebundle_cs.properties +15 -5
  109. package/src/sap/ui/mdc/messagebundle_cy.properties +12 -2
  110. package/src/sap/ui/mdc/messagebundle_da.properties +12 -2
  111. package/src/sap/ui/mdc/messagebundle_de.properties +12 -2
  112. package/src/sap/ui/mdc/messagebundle_el.properties +24 -14
  113. package/src/sap/ui/mdc/messagebundle_en.properties +12 -2
  114. package/src/sap/ui/mdc/messagebundle_en_GB.properties +12 -2
  115. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +12 -2
  116. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +12 -2
  117. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +12 -2
  118. package/src/sap/ui/mdc/messagebundle_es.properties +18 -8
  119. package/src/sap/ui/mdc/messagebundle_es_MX.properties +12 -2
  120. package/src/sap/ui/mdc/messagebundle_et.properties +12 -2
  121. package/src/sap/ui/mdc/messagebundle_fi.properties +12 -2
  122. package/src/sap/ui/mdc/messagebundle_fr.properties +14 -4
  123. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +12 -2
  124. package/src/sap/ui/mdc/messagebundle_hi.properties +12 -2
  125. package/src/sap/ui/mdc/messagebundle_hr.properties +15 -5
  126. package/src/sap/ui/mdc/messagebundle_hu.properties +13 -3
  127. package/src/sap/ui/mdc/messagebundle_id.properties +12 -2
  128. package/src/sap/ui/mdc/messagebundle_it.properties +57 -47
  129. package/src/sap/ui/mdc/messagebundle_iw.properties +12 -2
  130. package/src/sap/ui/mdc/messagebundle_ja.properties +12 -2
  131. package/src/sap/ui/mdc/messagebundle_kk.properties +12 -2
  132. package/src/sap/ui/mdc/messagebundle_ko.properties +14 -4
  133. package/src/sap/ui/mdc/messagebundle_lt.properties +12 -2
  134. package/src/sap/ui/mdc/messagebundle_lv.properties +12 -2
  135. package/src/sap/ui/mdc/messagebundle_ms.properties +12 -2
  136. package/src/sap/ui/mdc/messagebundle_nl.properties +26 -16
  137. package/src/sap/ui/mdc/messagebundle_no.properties +12 -2
  138. package/src/sap/ui/mdc/messagebundle_pl.properties +12 -2
  139. package/src/sap/ui/mdc/messagebundle_pt.properties +16 -6
  140. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +12 -2
  141. package/src/sap/ui/mdc/messagebundle_ro.properties +12 -2
  142. package/src/sap/ui/mdc/messagebundle_ru.properties +12 -2
  143. package/src/sap/ui/mdc/messagebundle_sh.properties +13 -3
  144. package/src/sap/ui/mdc/messagebundle_sk.properties +12 -2
  145. package/src/sap/ui/mdc/messagebundle_sl.properties +12 -2
  146. package/src/sap/ui/mdc/messagebundle_sv.properties +12 -2
  147. package/src/sap/ui/mdc/messagebundle_th.properties +17 -7
  148. package/src/sap/ui/mdc/messagebundle_tr.properties +12 -2
  149. package/src/sap/ui/mdc/messagebundle_uk.properties +12 -2
  150. package/src/sap/ui/mdc/messagebundle_vi.properties +12 -2
  151. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +12 -2
  152. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +13 -3
  153. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  154. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  155. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  156. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  157. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  158. package/src/sap/ui/mdc/odata/TypeUtil.js +24 -2
  159. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +5 -5
  160. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +6 -0
  161. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +15 -28
  162. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +6 -6
  163. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +0 -33
  164. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +360 -152
  165. package/src/sap/ui/mdc/p13n/Engine.js +1 -1
  166. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -0
  167. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  168. package/src/sap/ui/mdc/p13n/StateUtil.js +1 -1
  169. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  170. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  171. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +133 -0
  172. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -7
  173. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +31 -6
  174. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +7 -32
  175. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +12 -4
  176. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
  177. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  178. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +24 -28
  179. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  180. package/src/sap/ui/mdc/table/PropertyHelper.js +30 -32
  181. package/src/sap/ui/mdc/table/ResponsiveTableType.js +2 -1
  182. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  183. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  184. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -7
  185. package/src/sap/ui/mdc/table/menu/Item.js +3 -3
  186. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
  187. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +5 -0
  188. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  189. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  190. package/src/sap/ui/mdc/util/PropertyHelper.js +49 -51
  191. package/src/sap/ui/mdc/util/TypeUtil.js +105 -17
  192. package/src/sap/ui/mdc/valuehelp/Dialog.js +97 -30
  193. package/src/sap/ui/mdc/valuehelp/Popover.js +48 -7
  194. package/src/sap/ui/mdc/valuehelp/base/Container.js +37 -28
  195. package/src/sap/ui/mdc/valuehelp/base/Content.js +39 -21
  196. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +5 -5
  197. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +41 -34
  198. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
  199. package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
  200. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +11 -3
  201. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
  202. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +25 -3
  203. package/src/sap/ui/mdc/valuehelp/content/MTable.js +3 -3
  204. package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
  205. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +4 -1
  206. package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
  207. package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
  208. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
  209. package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +413 -0
  210. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +320 -264
  211. package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
  212. package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +40 -0
  213. package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
  214. package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
  215. package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
  216. package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
  217. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
  218. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
  219. package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
  220. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +79 -13
  221. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
  222. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
  223. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
  224. package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
  225. package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
  226. package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
  227. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
  228. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
  229. package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
  230. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
  231. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +34 -82
  232. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
  233. package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
  234. package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +205 -0
  235. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +138 -9
  236. package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
  237. package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
  238. package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
  239. package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
  240. package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
  241. package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
  242. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
  243. package/test/sap/ui/mdc/testutils/opa/variant/Actions.js +124 -0
  244. package/test/sap/ui/mdc/testutils/opa/variant/Assertions.js +48 -0
  245. package/test/sap/ui/mdc/testutils/opa/variant/JSDoc.md +84 -0
  246. package/test/sap/ui/mdc/testutils/opa/variant/TestObjects.js +95 -0
  247. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManager.js +43 -0
  248. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerButton.js +45 -0
  249. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerItem.js +54 -0
  250. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerOverlay.js +44 -0
  251. package/ui5.yaml +4 -1
  252. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +0 -139
  253. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
  254. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
  255. package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
  256. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  "sap/ui/mdc/p13n/panels/ChartItemPanel",
25
25
  "sap/m/MessageStrip",
26
26
  "../TypeUtil",
27
- "../FilterBarDelegate",
27
+ "sap/ui/mdc/FilterBarDelegate",
28
28
  "sap/ui/model/Filter",
29
29
  "sap/ui/mdc/odata/v4/ChartPropertyHelper",
30
30
  "sap/ui/thirdparty/jquery"
@@ -100,14 +100,18 @@ sap.ui.define([
100
100
  return V4FilterBarDelegate;
101
101
  };
102
102
 
103
- /**
104
- * This methods is called during the appliance of the add condition change.
105
- * This intention is to update the propertyInfo property.
106
- *
107
- * @param {string} sPropertyName The name of a property.
108
- * @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
109
- * @param {Object} mPropertyBag Instance of property bag from Flex change API
110
- * @returns {Promise} Promise that resolves once the properyInfo property was updated
103
+ /**
104
+ * This method is called when an <code>AddCondition</code> change is applied by the personalization.
105
+ * It can be used to perform tasks, such as caching information or modifying the control.
106
+ *
107
+ * @param {string} sPropertyName Name of a property
108
+ * @param {sap.ui.mdc.Control} oControl Instance of the MDC control
109
+ * @param {Object} mPropertyBag Instance of property bag from the SAPUI5 flexibility API
110
+ * @returns {Promise} <code>Promise</code> that resolves once the properyInfo property has been updated
111
+ *
112
+ * @experimental
113
+ * @private
114
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
111
115
  */
112
116
  ChartDelegate.addCondition = function(sPropertyName, oControl, mPropertyBag) {
113
117
  //return this.getFilterDelegate().addCondition(sPropertyName, oControl, mPropertyBag);
@@ -115,14 +119,18 @@ sap.ui.define([
115
119
  return Promise.resolve();
116
120
  };
117
121
 
118
- /**
119
- * This methods is called during the appliance of the remove condition change.
120
- * This intention is to update the propertyInfo property.
121
- *
122
- * @param {string} sPropertyName The name of a property.
123
- * @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
124
- * @param {Object} mPropertyBag Instance of property bag from Flex change API
125
- * @returns {Promise} Promise that resolves once the properyInfo property was updated
122
+ /**
123
+ * This method is called when a <code>RemoveCondition</code> change is applied by the personalization.
124
+ * It can be used to perform tasks, such as caching information or modifying the control.
125
+ *
126
+ * @param {string} sPropertyName Name of a property
127
+ * @param {sap.ui.mdc.Control} oControl Instance of the MDC control
128
+ * @param {Object} mPropertyBag Instance of property bag from the SAPUI5 flexibility API
129
+ * @returns {Promise} <code>Promise</code> that resolves once the properyInfo property has been updated
130
+ *
131
+ * @experimental
132
+ * @private
133
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
126
134
  */
127
135
  ChartDelegate.removeCondition = function(sPropertyName, oControl, mPropertyBag) {
128
136
  //return this.getFilterDelegate().removeCondition(sPropertyName, oControl, mPropertyBag);
@@ -236,18 +244,40 @@ sap.ui.define([
236
244
  /**
237
245
  * Toolbar relevant API (WIP)
238
246
  */
247
+ /**
248
+ * Notifies the inner chart to zoom in.
249
+ * <b>Note:</b> iValue does not affect the zoom for the sap.chart.Chart.
250
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
251
+ * @param {int} iValue Value to zoom in
252
+ * @experimental
253
+ * @private
254
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
255
+ */
239
256
  ChartDelegate.zoomIn = function (oMDCChart, iValue) {
240
257
  this._getChart(oMDCChart).zoom({direction: "in"});
241
258
  };
242
259
 
260
+ /**
261
+ * Notifies the inner chart to zoom out.
262
+ * <b>Note:</b> iValue does not affect the zoom in case of the sap.chart.Chart.
263
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
264
+ * @param {int} iValue Value to zoom in
265
+ * @experimental
266
+ * @private
267
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
268
+ */
243
269
  ChartDelegate.zoomOut = function (oMDCChart, iValue) {
244
270
  this._getChart(oMDCChart).zoom({direction: "out"});
245
271
  };
246
272
 
247
273
 
248
274
  /**
249
- * Gets the current zooming information for the inner chart
250
- * @returns {int} Current zoom level on the inner chart
275
+ * Gets the current zooming information for the inner chart.
276
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
277
+ * @returns {object} Current <code>ZoomState</code> of the inner chart
278
+ * @experimental
279
+ * @private
280
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
251
281
  */
252
282
  ChartDelegate.getZoomState = function (oMDCChart) {
253
283
 
@@ -257,13 +287,17 @@ sap.ui.define([
257
287
 
258
288
  };
259
289
  /**
260
- ** Returns the event handler for chartSelectionDetails as an object
290
+ ** Returns the event handler for chartSelectionDetails as an object:
261
291
  * {
262
292
  * "eventId": id of the selection event,
263
- * "listener": reference to inner chart
293
+ * "listener": Reference to inner chart
264
294
  * }
265
295
  *
266
- * @returns {object} event handler for chartSelectionDetails
296
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
297
+ * @returns {object} Event handler for chartSelectionDetails
298
+ * @experimental
299
+ * @private
300
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
267
301
  */
268
302
  ChartDelegate.getInnerChartSelectionHandler = function (oMDCChart) {
269
303
  return {eventId: "_selectionDetails", listener: this._getChart(oMDCChart)};
@@ -271,14 +305,17 @@ sap.ui.define([
271
305
 
272
306
  /**
273
307
  * 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:
308
+ * There might be chart types that do not support certain layout options (i.e. "Axis3").
309
+ * Layout configuration is defined as followed:
276
310
  * {
277
- * key: string //identifier for the chart type
311
+ * key: string, //identifier for the chart type
278
312
  * allowedLayoutOptions : [] //array containing allowed layout options as string
279
313
  * }
280
314
  *
281
- * @returns {array}
315
+ * @returns {array} Layout configuration for personalization panel
316
+ * @experimental
317
+ * @private
318
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
282
319
  */
283
320
  ChartDelegate.getChartTypeLayoutConfig = function() {
284
321
 
@@ -328,6 +365,15 @@ sap.ui.define([
328
365
  return this._aChartTypeLayout;
329
366
  };
330
367
 
368
+ /**
369
+ * This function returns an UI which is then shown inside the p13n Items panel.
370
+ * Depending on which chart is used, the panel might offer different functionality.
371
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
372
+ * @returns {sap.core.Control} Adaptation UI to be used
373
+ * @experimental
374
+ * @private
375
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
376
+ */
331
377
  ChartDelegate.getAdaptionUI = function(oMDCChart) {
332
378
 
333
379
  return Promise.resolve(this._setupAdaptionUI(oMDCChart));
@@ -364,10 +410,10 @@ sap.ui.define([
364
410
  };
365
411
 
366
412
  /**
367
- * Sets the visibility of the legend
368
- * This is called by the MDC Chart, do not call it directly!
369
- * @param {sap.ui.mdc.Chart} oMDCChart Chart to the set the legend visibility on
370
- * @param {boolean} bVisible true to show legend, false to hide
413
+ * Sets the visibility of the legend.
414
+ * This is called by the MDC chart, do not call it directly!
415
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart to the set the legend visibility on
416
+ * @param {boolean} bVisible <code>true</code> to show legend, false to hide
371
417
  *
372
418
  * @experimental
373
419
  * @private
@@ -389,9 +435,13 @@ sap.ui.define([
389
435
  };
390
436
 
391
437
  /**
392
- * Creates a Sorter for given Property
393
- * @param {sap.ui.mdc.Chart.Item} oMDCItem the MDC Item to create a Sorter for
394
- * @param {object} oSortProperty the sorting information
438
+ * Creates a Sorter for a given property.
439
+ * @param {sap.ui.mdc.Chart.Item} oMDCItem MDC item to create a sorter for
440
+ * @param {object} oSortProperty Sorting information
441
+ * @returns {sap.ui.model.Sorter} Sorter for given item
442
+ * @experimental
443
+ * @private
444
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
395
445
  */
396
446
  ChartDelegate.getSorterForItem = function (oMDCItem, oSortProperty) {
397
447
  //TODO: Check wether we really need this method.
@@ -407,11 +457,14 @@ sap.ui.define([
407
457
  };
408
458
 
409
459
  /**
410
- * Inserts an MDC Chart Item (in case of sap.chart.Chart a Measure/Dimension) on the inner chart
411
- * This function is called by MDC Chart on a change of the <code>Items</code> aggregation
412
- * @param {sap.ui.mdc.Chart} oMDCChart the MDC Chart to insert the item into
413
- * @param {sap.ui.mdc.chart.Item} oMDCChartItem the MDC Chart Item to insert into the inner chart
414
- * @param {int} iIndex the index to insert into
460
+ * Inserts an MDC chart item (in case of sap.chart.Chart a measure/dimension) on the inner chart.
461
+ * This function is called by the MDC chart after a change of the <code>Items</code> aggregation-
462
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart to insert the item into
463
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem MDC chart item to insert into the inner chart
464
+ * @param {int} iIndex Index to insert into
465
+ * @experimental
466
+ * @private
467
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
415
468
  */
416
469
  ChartDelegate.insertItemToInnerChart = function (oMDCChart, oMDCChartItem, iIndex) {
417
470
  //TODO: Create Measures/Dimension only when required?
@@ -449,10 +502,13 @@ sap.ui.define([
449
502
  };
450
503
 
451
504
  /**
452
- * Removes an Item (in case of sap.chart.Chart a Measure/Dimension) from the inner chart
453
- * This function is called by MDC Chart on a change of the <code>Items</code> aggregation
454
- * @param {sap.ui.mdc.Chart} oMDCChart the MDC Chart to remove the item from
455
- * @param {sap.ui.mdc.chart.Item} oMDCChartItem The Item to remove from the inner chart
505
+ * Removes an item (in case of sap.chart.Chart a measure/dimension) from the inner chart.
506
+ * This function is called by MDC chart on a change of the <code>Items</code> aggregation.
507
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart to remove the item from
508
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem Item to remove from the inner chart
509
+ * @experimental
510
+ * @private
511
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
456
512
  */
457
513
  ChartDelegate.removeItemFromInnerChart = function (oMDCChart, oMDCChartItem) {
458
514
  if (oMDCChartItem.getType() === "groupable" && this._getChart(oMDCChart).getVisibleDimensions().includes(this.getInternalChartNameFromPropertyNameAndKind(oMDCChartItem.getName(), "groupable", oMDCChart))) {
@@ -490,13 +546,19 @@ sap.ui.define([
490
546
  this._updateSemanticalPattern(oMDCChart);
491
547
  };
492
548
 
549
+
493
550
  /**
494
- * Creates a new MDC Chart Item for given Property name and updates inner chart
495
- * (Does NOT add the MDC CHart Item to the Item aggregation of the MDC Chart)
496
- * Called by p13n
497
- * @param {string} sPropertyName the name of the property added
498
- * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart to add the property to
499
- * @returns {Promise} Promise that resolves with new MDC Chart Item as parameter
551
+ * Creates a new MDC chart item for a given property name and updates the inner chart.
552
+ * <b>Note:</b> This does <b>not</b> add the MDC chart item to the <code>Items</code> aggregation of the MDC chart.
553
+ * Called and used by <code>p13n</code>.
554
+ * @param {string} sPropertyName Name of the property added
555
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart to add the property to
556
+ * @param {object} mPropertyBag Property bag containing useful information about the change
557
+ * @param {strring} sRole New role for given item (if available)
558
+ * @returns {Promise} Promise that resolves with new MDC chart item as parameter
559
+ * @experimental
560
+ * @private
561
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
500
562
  */
501
563
  ChartDelegate.addItem = function (sPropertyName, oMDCChart, mPropertyBag, sRole) {
502
564
  if (oMDCChart.getModel) {
@@ -509,10 +571,13 @@ sap.ui.define([
509
571
  };
510
572
 
511
573
  /**
512
- * This will iterate over all items of the MDC Chart to make sure all necessary information is available on them
513
- * If something is missing, this method will update the item accordingly
514
- * @param {sap.ui.mdc.Chart} oMDCChart the MDC Chart to check the items on
515
- * @returns {Promise} resolves once check is complete
574
+ * This iterates over all items of the MDC chart to make sure all necessary information is available on them.
575
+ * If something is missing, this method updates the item accordingly. This is the last check before the inner chart is rendered.
576
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart to check the items on
577
+ * @returns {Promise} Resolves once check is complete
578
+ * @experimental
579
+ * @private
580
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
516
581
  */
517
582
  ChartDelegate.checkAndUpdateMDCItems = function(oMDCChart) {
518
583
  return new Promise(function(resolve, reject){
@@ -543,6 +608,16 @@ sap.ui.define([
543
608
 
544
609
  };
545
610
 
611
+ /**
612
+ * Creates an MDC chart Item for given property.
613
+ * @param {string} sPropertyName the name of the property in the propertyInfo object.
614
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
615
+ * @param {string} sRole Role of the new item (if available)
616
+ * @returns {sap.ui.mdc.chart.Item} Created MDC Item
617
+ * @experimental
618
+ * @private
619
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
620
+ */
546
621
  ChartDelegate._createMDCChartItem = function (sPropertyName, oMDCChart, sRole) {
547
622
 
548
623
  return this._getPropertyInfosByName(sPropertyName, oMDCChart).then(function(oPropertyInfo){
@@ -556,6 +631,16 @@ sap.ui.define([
556
631
 
557
632
  };
558
633
 
634
+ /**
635
+ * Creates an MDC Item from given property info.
636
+ * @param {object} oPropertyInfo PropertyInfo object
637
+ * @param {string} idPrefix Prefix for the id of the item
638
+ * @param {string} sRole Role of the new item (if available)
639
+ * @returns {sap.ui.mdc.chart.Item} Created MDC Item
640
+ * @experimental
641
+ * @private
642
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
643
+ */
559
644
  ChartDelegate._createMDCItemFromProperty = function(oPropertyInfo, idPrefix, sRole) {
560
645
 
561
646
  if (oPropertyInfo.groupable) {
@@ -584,8 +669,13 @@ sap.ui.define([
584
669
  * Chart relevant API (WIP)
585
670
  */
586
671
  /**
587
- * Loads necessary libraries and creates inner chart
588
- * @returns {Promise} resolved when inner chart is ready
672
+ * Loads required libraries and creates the inner chart.
673
+ * For the vizChart, only an outer structure is created, the chart has not yet been initialized.
674
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
675
+ * @returns {Promise} Resolved when inner chart is ready
676
+ * @experimental
677
+ * @private
678
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
589
679
  */
590
680
  ChartDelegate.initializeInnerChart = function (oMDCChart) {
591
681
 
@@ -614,13 +704,25 @@ sap.ui.define([
614
704
  };
615
705
 
616
706
  /**
617
- * Creates initial content for the chart, while metadata has not been retrieved yet
618
- * @param {sap.ui.mdc.chart} oMDCChart the MDC Chart
707
+ * Creates initial content for the chart while metadata has not been retrieved yet.
708
+ * @param {sap.ui.mdc.chart} oMDCChart MDC chart
709
+ * @experimental
710
+ * @private
711
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
619
712
  */
620
713
  ChartDelegate.createInitialChartContent = function(oMDCChart) {
621
714
  //Not relevant for sap.chart.Chart
622
715
  };
623
716
 
717
+ /**
718
+ * This function creates the content defined by the MDC chart for the inner chart instance.
719
+ * For vizFrame, coloring dimensions/measures are set up here too.
720
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
721
+ * @returns {Promise} Resolved once chart content has been created
722
+ * @experimental
723
+ * @private
724
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
725
+ */
624
726
  ChartDelegate._createContentFromItems = function (oMDCChart) {
625
727
  return new Promise(function(resolve, reject){
626
728
  //This is done so the user doesn't have to specify property path & aggregation method in the XML
@@ -691,7 +793,7 @@ sap.ui.define([
691
793
  aVisibleMeasures.push(oMeasure);
692
794
  this._getChart(oMDCChart).addMeasure(oMeasure);
693
795
  resolve();
694
- }); //this.getPropertyFromNameAndKind not used as the key is the name of the MDC Chart Item
796
+ }); //this.getPropertyFromNameAndKind not used as the key is the name of the MDC chart Item
695
797
 
696
798
  }));
697
799
  }
@@ -739,11 +841,26 @@ sap.ui.define([
739
841
  }.bind(this));
740
842
  };
741
843
 
844
+ /**
845
+ * Returns the instance of the inner chart for a given MDC chart.
846
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
847
+ * @returns {sap.ui.Control} Inner chart instance
848
+ * @experimental
849
+ * @private
850
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
851
+ */
742
852
  ChartDelegate.getInnerChart = function (oMDCChart) {
743
853
  return this._getChart(oMDCChart);
744
854
  };
745
855
 
746
-
856
+ /**
857
+ * Prepares the internal vizFrame coloring for given MDC chart Item.
858
+ * @param {sa.ui.mdc.chart.Item} oItem item to prepare coloring for
859
+ * @returns {Promise} resolved, once coloring is rpepared
860
+ * @experimental
861
+ * @private
862
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
863
+ */
747
864
  ChartDelegate._prepareColoringForItem = function(oItem) {
748
865
  //COLORING
749
866
  return this._addCriticality(oItem).then(function(){
@@ -779,9 +896,10 @@ sap.ui.define([
779
896
  };
780
897
 
781
898
  /**
782
- * Adds criticality to an item
899
+ * Adds criticality to an item.
783
900
  *
784
- * @param oItem item to add criticality to
901
+ * @param {sap.ui.mdc.chart.Item} oItem Item to add criticality to
902
+ * @returns {Promise} Resolved once criticality is added
785
903
  *
786
904
  * @experimental
787
905
  * @private
@@ -789,7 +907,7 @@ sap.ui.define([
789
907
  */
790
908
  ChartDelegate._addCriticality = function (oItem) {
791
909
 
792
- //Uses excact MDC Chart item name to idenfiy property
910
+ //Uses excact MDC chart item name to idenfiy property
793
911
  return this._getPropertyInfosByName(oItem.getName(), oItem.getParent()).then(function (oPropertyInfo) {
794
912
 
795
913
  if (oPropertyInfo.criticality || (oPropertyInfo.datapoint && oPropertyInfo.datapoint.criticality)){
@@ -838,10 +956,10 @@ sap.ui.define([
838
956
  };
839
957
 
840
958
  /**
841
- * Updates the coloring on the inner chart
842
- * @param {sap.chart.Chart} oMDCChart inner chart
843
- * @param {array} aVisibleDimensions visible dimensions for inner chart
844
- * @param {array} aVisibleMeasures visible measures for inner chart
959
+ * Updates the coloring on the inner chart.
960
+ * @param {sap.chart.Chart} oMDCChart Inner chart
961
+ * @param {array} aVisibleDimensions Visible dimensions for inner chart
962
+ * @param {array} aVisibleMeasures Visible measures for inner chart
845
963
  *
846
964
  * @experimental
847
965
  * @private
@@ -895,10 +1013,9 @@ sap.ui.define([
895
1013
  };
896
1014
 
897
1015
  /**
898
- * Updates the semantical pattern for given measures
1016
+ * Updates the semantical pattern for given measures.
899
1017
  *
900
- * @param {sap.chart.Chart} oMDCChart the inner chart
901
- * @param {*} aProperties // TODO what is this parameter used for?
1018
+ * @param {sap.chart.Chart} oMDCChart Inner chart
902
1019
  *
903
1020
  * @experimental
904
1021
  * @private
@@ -956,14 +1073,18 @@ sap.ui.define([
956
1073
  };
957
1074
 
958
1075
  /**
959
- * Returns the current chart type
1076
+ * Returns the current chart type in form:
960
1077
  * {
961
1078
  * icon : string,
962
1079
  * text: string
963
1080
  * }
964
1081
  *
965
- * @returns {object} information about the current chart type
966
- * @throws exception if inner chart is not yet ready
1082
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1083
+ * @returns {object} Information about the current chart type
1084
+ * @throws Exception if inner chart is not yet ready
1085
+ * @experimental
1086
+ * @private
1087
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
967
1088
  */
968
1089
  ChartDelegate.getChartTypeInfo = function (oMDCChart) {
969
1090
  if (!this._getChart(oMDCChart)) {
@@ -984,8 +1105,9 @@ sap.ui.define([
984
1105
  };
985
1106
 
986
1107
  /**
987
- * Gets the available chart types for the current state of the inner chart
1108
+ * Gets the available chart types for the current state of the inner chart.
988
1109
  *
1110
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
989
1111
  * @returns {array} Array containing the available chart types
990
1112
  *
991
1113
  * @experimental
@@ -1017,15 +1139,14 @@ sap.ui.define([
1017
1139
  return aChartTypes;
1018
1140
  };
1019
1141
 
1020
- //TODO: Check for setDrillStackInfo
1021
- ChartDelegate.getDrillStackInfo = function () {
1022
-
1023
- };
1024
-
1025
1142
  /**
1026
- * Returns the current drill stack of the inner chart
1027
- * The returned objects need at least a "label" and a "name" property
1143
+ * Returns the current drill stack of the inner chart.
1144
+ * The returned objects need at least a label and a name property.
1145
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1028
1146
  * @returns {array} Array containing the drill stack
1147
+ * @experimental
1148
+ * @private
1149
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1029
1150
  */
1030
1151
  ChartDelegate.getDrillStack = function (oMDCChart) {
1031
1152
  //TODO: Generify the return values here for other chart frameworks
@@ -1050,8 +1171,12 @@ sap.ui.define([
1050
1171
 
1051
1172
  /**
1052
1173
  * This returns all sorted dimensions of an inner chart as property.
1053
- * This is used to determine possible drill-down dimensions in the drill down popover of the MDC Chart
1054
- * @returns {Promise} Promsie containing an array of Dimensions in a sorted manner
1174
+ * This is used to determine possible drill-down dimensions in the drill-down popover of the MDC chart.
1175
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1176
+ * @returns {Promise} <code>Promise</code> containing an array of dimensions that are sorted
1177
+ * @experimental
1178
+ * @private
1179
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1055
1180
  */
1056
1181
  ChartDelegate.getSortedDimensions = function (oMDCChart) {
1057
1182
  return new Promise(function (resolve, reject) {
@@ -1083,11 +1208,14 @@ sap.ui.define([
1083
1208
  };
1084
1209
 
1085
1210
  /**
1086
- * Determines which MDC Items are Drillable and returns them
1087
- * Used by breadcrumbs
1211
+ * Determines which MDC items are drillable and returns them.
1212
+ * Used by breadcrumbs of MDC charts.
1088
1213
  *
1089
- * @param {sap.ui.mdc.Chart} oMDCChart the MDC Chart to get the Items from
1090
- * @returns {array} Array of MDC Items which are drillable
1214
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart to get the items from
1215
+ * @returns {array} Array of MDC items that are drillable
1216
+ * @experimental
1217
+ * @private
1218
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1091
1219
  *
1092
1220
  */
1093
1221
  ChartDelegate.getDrillableItems = function (oMDCChart) {
@@ -1098,17 +1226,26 @@ sap.ui.define([
1098
1226
  };
1099
1227
 
1100
1228
  /**
1101
- * Sets the chart type of the inner chart
1102
- * Is called by MDC Chart when <code>chartType</code> property is updated
1103
- * @param {sap.ui.mdc.Chart} oMDCChart the MDC Chart to set the chart type for
1104
- * @param {string} sChartType the new chart type
1229
+ * Sets the chart type of the inner chart.
1230
+ * This function is called by MDC chart when the <code>chartType</code> property is updated.
1231
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart to set the chart type for
1232
+ * @param {string} sChartType New chart type
1233
+ * @experimental
1234
+ * @private
1235
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1105
1236
  */
1106
1237
  ChartDelegate.setChartType = function (oMDCChart, sChartType) {
1107
1238
  this._getChart(oMDCChart).setChartType(sChartType);
1108
1239
  };
1109
1240
 
1110
1241
  /**
1111
- * Creates the inner dataset for the inner chart
1242
+ * Creates the inner data set for the inner chart.
1243
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1244
+ * @param {function} fnCallbackDataLoaded Callback for when data is loaded in the inner chart
1245
+ * @returns {Promise} Resolved once inner chart has been created
1246
+ * @experimental
1247
+ * @private
1248
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1112
1249
  */
1113
1250
  ChartDelegate.createInnerChartContent = function (oMDCChart, fnCallbackDataLoaded) {
1114
1251
 
@@ -1172,6 +1309,16 @@ sap.ui.define([
1172
1309
 
1173
1310
  };
1174
1311
 
1312
+ /**
1313
+ * Performs the initial binding for the inner chart.
1314
+ * It is used for the vizFrame to make sure that the inner chart is correctly initialized upon creation.
1315
+ * Otherwise the chart will go into an error loop. <br><b>Note:</b> You must not override this setting.
1316
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1317
+ * @param {object} oBindingInfo Binding info object
1318
+ * @experimental
1319
+ * @private
1320
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1321
+ */
1175
1322
  ChartDelegate._performInitialBind = function(oMDCChart, oBindingInfo) {
1176
1323
  if (oMDCChart && oBindingInfo && this._getChart(oMDCChart)) {
1177
1324
  this._addBindingListener(oBindingInfo, "dataReceived", this._getState(oMDCChart).dataLoadedCallback.bind(oMDCChart));
@@ -1183,6 +1330,14 @@ sap.ui.define([
1183
1330
  }
1184
1331
  };
1185
1332
 
1333
+ /**
1334
+ * Calculates the height of the inner chart in accoredance with the outer container.
1335
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1336
+ * @returns {string} New height for the chart
1337
+ * @experimental
1338
+ * @private
1339
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1340
+ */
1186
1341
  ChartDelegate._calculateInnerChartHeight = function(oMDCChart) {
1187
1342
  var iTotalHeight = jQuery(oMDCChart.getDomRef()).height();
1188
1343
  var iToolbarHeight = 0;
@@ -1208,7 +1363,11 @@ sap.ui.define([
1208
1363
  };
1209
1364
 
1210
1365
  /**
1211
- * Adjust chart height to changed content strucutre, if needed
1366
+ * Adjusts the chart height to changed content strucutre, if needed.
1367
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1368
+ * @experimental
1369
+ * @private
1370
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1212
1371
  */
1213
1372
  ChartDelegate.adjustChartHeight = function(oMDCChart){
1214
1373
  if (oMDCChart.getHeight() && this._getChart(oMDCChart)){
@@ -1219,10 +1378,25 @@ sap.ui.define([
1219
1378
  }
1220
1379
  };
1221
1380
 
1381
+ /**
1382
+ * Requests a toolbar update once the inner chart is ready.
1383
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1384
+ * @experimental
1385
+ * @private
1386
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1387
+ */
1222
1388
  ChartDelegate.requestToolbarUpdate = function(oMDCChart) {
1223
1389
  this._getState(oMDCChart).toolbarUpdateRequested = true;
1224
1390
  };
1225
1391
 
1392
+ /**
1393
+ * Creates and adds a dimension for the inner chart for a given MDC chart item.
1394
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1395
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem MDC chart item to be added to the inner chart
1396
+ * @experimental
1397
+ * @private
1398
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1399
+ */
1226
1400
  ChartDelegate.createInnerDimension = function (oMDCChart, oMDCChartItem) {
1227
1401
  //TODO: Check for Hierachy and Time
1228
1402
  //TODO: Check for role annotation
@@ -1234,6 +1408,14 @@ sap.ui.define([
1234
1408
 
1235
1409
  };
1236
1410
 
1411
+ /**
1412
+ * Creates and adds a measure for the inner chart for given MDC chart item.
1413
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1414
+ * @param {sap.ui.mdc.chart.Item} oMDCChartItem MDC chart item to be added to the inner chart
1415
+ * @experimental
1416
+ * @private
1417
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1418
+ */
1237
1419
  ChartDelegate.createInnerMeasure = function (oMDCChart, oMDCChartItem) {
1238
1420
 
1239
1421
  this._getPropertyInfosByName(oMDCChartItem.getName(), oMDCChart).then(function(oPropInfo){
@@ -1287,26 +1469,40 @@ sap.ui.define([
1287
1469
  this._getChart(oMDCChart).addMeasure(oMeasure);
1288
1470
  };
1289
1471
 
1472
+ /**
1473
+ * Gets the aggreagted name for given propertyInfo.
1474
+ * @param {object} oPoperty PropertyInfo object
1475
+ * @returns {string} Name for inner chart
1476
+ * @experimental
1477
+ * @private
1478
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1479
+ */
1290
1480
  ChartDelegate._getAggregatedMeasureNameForProperty = function(oPoperty){
1291
1481
  return oPoperty.aggregationMethod + oPoperty.name;
1292
1482
  };
1293
1483
 
1294
1484
  /**
1295
- * Checks the binding of the table and rebinds it if required.
1485
+ * Checks the binding of the chart and rebinds it if required.
1296
1486
  *
1297
- * @param {sap.ui.mdc.Chart} oMDCChart The MDC chart instance
1298
- * @param {object} oBindingInfo The bindingInfo of the chart
1487
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart instance
1488
+ * @param {object} oBindingInfo BindingInfo of the chart
1299
1489
  * @deprecated as of 1.98; use rebind instead
1490
+ * @experimental
1491
+ * @private
1492
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1300
1493
  */
1301
1494
  ChartDelegate.rebindChart = function (oMDCChart, oBindingInfo) {
1302
1495
  this.rebind(oMDCChart, oBindingInfo);
1303
1496
  };
1304
1497
 
1305
1498
  /**
1306
- * Checks the binding of the table and rebinds it if required.
1499
+ * Checks the binding of the chart and rebinds it if required.
1307
1500
  *
1308
- * @param {sap.ui.mdc.Chart} oMDCChart The MDC chart instance
1309
- * @param {object} oBindingInfo The bindingInfo of the chart
1501
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart instance
1502
+ * @param {object} oBindingInfo BindingInfo of the chart
1503
+ * @experimental
1504
+ * @private
1505
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1310
1506
  */
1311
1507
  ChartDelegate.rebind = function (oMDCChart, oBindingInfo) {
1312
1508
  if (oMDCChart && oBindingInfo && this._getChart(oMDCChart)) {
@@ -1328,6 +1524,15 @@ sap.ui.define([
1328
1524
  }
1329
1525
  };
1330
1526
 
1527
+ /**
1528
+ * Returns the binding info for given chart.
1529
+ * If no binding info exists yet, a new one will be created.
1530
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1531
+ * @returns {object} BindingInfo object
1532
+ * @experimental
1533
+ * @private
1534
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1535
+ */
1331
1536
  ChartDelegate._getBindingInfo = function (oMDCChart) {
1332
1537
 
1333
1538
  if (this._getBindingInfoFromState(oMDCChart)) {
@@ -1343,8 +1548,12 @@ sap.ui.define([
1343
1548
  };
1344
1549
 
1345
1550
  /**
1346
- * Returns whether the inner chart is currently bound
1347
- * @returns {boolean} true if inner chart is bound; false if not
1551
+ * Returns whether the inner chart is currently bound.
1552
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1553
+ * @returns {boolean} <code>true</code> if inner chart is bound; <code>false</code> if not
1554
+ * @experimental
1555
+ * @private
1556
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1348
1557
  */
1349
1558
  ChartDelegate.getInnerChartBound = function (oMDCChart) {
1350
1559
  var oState = this._getState(oMDCChart);
@@ -1357,10 +1566,14 @@ sap.ui.define([
1357
1566
  };
1358
1567
 
1359
1568
  /**
1360
- * Updates the binding info with the relevant filters
1569
+ * Updates the binding info with the relevant filters and sorters.
1570
+ * Override this to apply custom info to the binding.
1361
1571
  *
1362
- * @param {Object} oMDCChart The MDC chart instance
1363
- * @param {Object} oBindingInfo The binding info of the chart
1572
+ * @param {Object} oMDCChart MDC chart instance
1573
+ * @param {Object} oBindingInfo BindingInfo of the chart
1574
+ * @experimental
1575
+ * @private
1576
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1364
1577
  */
1365
1578
  ChartDelegate.updateBindingInfo = function (oMDCChart, oBindingInfo) {
1366
1579
  var aFilters = createInnerFilters.call(this, oMDCChart).concat(createOuterFilters.call(this, oMDCChart));
@@ -1434,8 +1647,8 @@ sap.ui.define([
1434
1647
  }
1435
1648
 
1436
1649
  /**
1437
- * Returns sorters available for the data
1438
- *
1650
+ * Returns sorters available for the data.
1651
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1439
1652
  * @returns {array} Array containing available sorters
1440
1653
  *
1441
1654
  * @experimental
@@ -1478,57 +1691,43 @@ sap.ui.define([
1478
1691
  };
1479
1692
 
1480
1693
  /**
1481
- * This function returns an id which should be used in the internal chart for the measure/dimension
1482
- * In the standard case, this is just the id of the property.
1483
- * If it is necessary to use another id internally inside the chart (e.g. on duplicate property ids) this method can be overwritten.
1484
- * In this case, <code>getPropertyFromNameAndKind</code> needs to be overwritten aswell.
1694
+ * This function returns an ID that is used in the internal chart for the measure/dimension.
1695
+ * In the standard case, this is just the ID of the property.
1696
+ * If it is necessary to use another ID internally inside the chart (for example, on duplicate property IDs) this method can be overwritten.
1697
+ * In this case, <code>getPropertyFromNameAndKind</code> needs to be overwritten as well.
1485
1698
  * @param {string} sName ID of the property
1486
1699
  * @param {string} sKind Kind of the Property (Measure/Dimension)
1487
- * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
1488
- * @returns {string} internal id for the sap.chart.Chart
1700
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1701
+ * @returns {string} Internal id for the sap.chart.Chart
1702
+ * @experimental
1703
+ * @private
1704
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1489
1705
  */
1490
1706
  ChartDelegate.getInternalChartNameFromPropertyNameAndKind = function(sName, sKind, oMDCChart) {
1491
1707
  return sName;
1492
1708
  };
1493
1709
 
1494
1710
  /**
1495
- * This maps an id of an internal chart dimension/measure & kind of a property to its coresponding property entry.
1496
- * @param {string} sName the id of internal chart measure/dimension
1497
- * @param {string} sKind the kind of the property
1498
- * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
1499
- * @returns {object} the property object
1711
+ * This maps an ID of an internal chart dimension/measure & kind of a property to its corresponding property entry.
1712
+ * @param {string} sName ID of internal chart measure/dimension
1713
+ * @param {string} sKind Kind of the property
1714
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1715
+ * @returns {object} Property object
1716
+ * @experimental
1717
+ * @private
1718
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1500
1719
  */
1501
1720
  ChartDelegate.getPropertyFromNameAndKind = function(sName, sKind, oMDCChart) {
1502
1721
  return oMDCChart.getPropertyHelper().getProperty(sName);
1503
1722
  };
1504
1723
 
1505
-
1506
1724
  /**
1507
- * Adds an item to the inner chart (measure/dimension)
1508
- */
1509
- ChartDelegate.addInnerItem = function (sPropertyName, oMDCChart, mPropertyBag) {
1510
- return Promise.resolve(null);
1511
- };
1512
-
1513
- /**
1514
- * Inserts an item to the inner chart (measure/dimension)
1515
- */
1516
- ChartDelegate.insertInnerItem = function (sPropertyName, oMDCChart, mPropertyBag) {
1517
-
1518
- };
1519
-
1520
- /**
1521
- * Removes an item from the inner chart
1522
- */
1523
- ChartDelegate.removeInnerItem = function (sPropertyName, oMDCChart, mPropertyBag) {
1524
- // return true within the Promise for default behaviour (e.g. continue to destroy the item)
1525
- return Promise.resolve(true);
1526
- };
1527
-
1528
- /**
1529
- * Sets tooltips visible/invisible on inner chart
1530
- * @param {sap.ui.mdc.Chart} oMDCChart the MDC Chart
1531
- * @param {boolean} bFlag true for visible, false for invisible
1725
+ * Sets tooltips to visible/invisible on inner chart.
1726
+ * @param {sap.ui.mdc.Chart} oMDCChart MDC chart
1727
+ * @param {boolean} bFlag <code>true</code> for visible, <code>false</code> for invisible
1728
+ * @experimental
1729
+ * @private
1730
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1532
1731
  */
1533
1732
  ChartDelegate.setChartTooltipVisibility = function (oMDCChart, bFlag) {
1534
1733
 
@@ -1579,8 +1778,8 @@ sap.ui.define([
1579
1778
  };
1580
1779
 
1581
1780
  /**
1582
- * Returns the propertyHelper used for the chart delegate
1583
- * @returns {Promise} Promise with the property helper reference
1781
+ * Returns the propertyHelper used for the chart delegate.
1782
+ * @returns {Promise} <code>Promise</code> with the property helper reference
1584
1783
  */
1585
1784
  ChartDelegate.getPropertyHelperClass = function () {
1586
1785
  return PropertyHelper;
@@ -1588,19 +1787,25 @@ sap.ui.define([
1588
1787
 
1589
1788
  /**
1590
1789
  * This allows formatting for axis labels of the inner sap.chart.Chart.
1591
- * Note: As the inner chart has no association to the propertyInfo, "this" will be bound to the propertyInfo object when calling this method
1592
- * @param {string} sKey the key of the dimension
1593
- * @param {string} SDesc the description provided by the metadata
1594
- * @returns {string} the label which should be shown on the chart axis
1790
+ * Note: As the inner chart has no association to the propertyInfo, <code>this</code> will be bound to the propertyInfo object when calling this method.
1791
+ * @param {string} sKey Key of the dimension
1792
+ * @param {string} SDesc Description provided by the metadata
1793
+ * @returns {string} Label which should be shown on the chart axis
1794
+ * @experimental
1795
+ * @private
1796
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1595
1797
  */
1596
1798
  ChartDelegate._formatText = function(sKey, SDesc) {
1597
1799
  return sKey;
1598
1800
  };
1599
1801
 
1600
1802
  /**
1601
- * Defines a <code>noDataText</code>text for the inner chart.
1803
+ * Defines a <code>noDataText</code> text for the inner chart.
1602
1804
  * @param {sap.ui.mdc.Chart} oMDCChart Reference to chart
1603
- * @param {string} sText Text to show if no data is displayed in the chart
1805
+ * @param {string} sText Text that shows if no data is displayed in the chart
1806
+ * @experimental
1807
+ * @private
1808
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1604
1809
  */
1605
1810
  ChartDelegate.setNoDataText = function(oMDCChart, sText) {
1606
1811
  this._getChart(oMDCChart).setCustomMessages({
@@ -1609,10 +1814,13 @@ sap.ui.define([
1609
1814
  };
1610
1815
 
1611
1816
  /**
1612
- * Returns the relevant propery infos based on the metadata used with the MDC Chart instance.
1817
+ * Returns the relevant property infos based on the metadata used with the MDC chart instance.
1613
1818
  *
1614
- * @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
1615
- * @returns {array} Array of the property infos to be used within MDC Chart
1819
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1820
+ * @returns {array} Array of the property infos to be used within MDC chart
1821
+ * @experimental
1822
+ * @private
1823
+ * @ui5-restricted Fiori Elements, sap.ui.mdc
1616
1824
  */
1617
1825
  ChartDelegate.fetchProperties = function (oMDCChart) {
1618
1826