@openui5/sap.ui.mdc 1.98.0 → 1.101.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 (267) hide show
  1. package/THIRDPARTY.txt +6 -6
  2. package/package.json +4 -4
  3. package/src/sap/ui/mdc/.library +1 -1
  4. package/src/sap/ui/mdc/ActionToolbar.js +6 -3
  5. package/src/sap/ui/mdc/AggregationBaseDelegate.js +1 -1
  6. package/src/sap/ui/mdc/Chart.js +186 -102
  7. package/src/sap/ui/mdc/ChartDelegate.js +85 -30
  8. package/src/sap/ui/mdc/ChartRenderer.js +1 -1
  9. package/src/sap/ui/mdc/Control.js +11 -6
  10. package/src/sap/ui/mdc/Element.js +10 -6
  11. package/src/sap/ui/mdc/Field.js +19 -4
  12. package/src/sap/ui/mdc/FilterBar.js +1 -1
  13. package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
  14. package/src/sap/ui/mdc/FilterField.js +41 -3
  15. package/src/sap/ui/mdc/Link.js +22 -4
  16. package/src/sap/ui/mdc/LinkDelegate.js +9 -7
  17. package/src/sap/ui/mdc/MultiValueField.js +30 -6
  18. package/src/sap/ui/mdc/Table.js +332 -316
  19. package/src/sap/ui/mdc/TableDelegate.js +146 -31
  20. package/src/sap/ui/mdc/ValueHelp.js +136 -624
  21. package/src/sap/ui/mdc/ValueHelpDelegate.js +154 -7
  22. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  23. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
  24. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
  25. package/src/sap/ui/mdc/chart/ChartToolbar.js +56 -11
  26. package/src/sap/ui/mdc/chart/ChartTypeButton.js +24 -10
  27. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +9 -7
  28. package/src/sap/ui/mdc/chart/DrillStackHandler.js +6 -6
  29. package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
  30. package/src/sap/ui/mdc/condition/Condition.js +14 -9
  31. package/src/sap/ui/mdc/condition/ConditionConverter.js +58 -6
  32. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  33. package/src/sap/ui/mdc/condition/FilterConverter.js +4 -2
  34. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +393 -68
  35. package/src/sap/ui/mdc/condition/Operator.js +14 -2
  36. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -24
  37. package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
  38. package/src/sap/ui/mdc/designtime/Util.js +63 -0
  39. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
  40. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +6 -0
  41. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +3 -1
  42. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
  43. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +36 -9
  44. package/src/sap/ui/mdc/enum/PropagationReason.js +43 -0
  45. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  46. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  47. package/src/sap/ui/mdc/field/ConditionType.js +44 -13
  48. package/src/sap/ui/mdc/field/ConditionsType.js +3 -1
  49. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  50. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  51. package/src/sap/ui/mdc/field/DefineConditionPanel.js +31 -9
  52. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +76 -19
  53. package/src/sap/ui/mdc/field/FieldBase.js +69 -14
  54. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +41 -19
  55. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  56. package/src/sap/ui/mdc/field/FieldInfoBase.js +24 -10
  57. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  58. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  59. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  60. package/src/sap/ui/mdc/field/FieldValueHelp.js +9 -4
  61. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  62. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
  63. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +5 -4
  64. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
  65. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
  66. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
  67. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  68. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  69. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  70. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  71. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  72. package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
  73. package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
  74. package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
  75. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
  76. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  77. package/src/sap/ui/mdc/field/content/ContentFactory.js +10 -6
  78. package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
  79. package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
  80. package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
  81. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  82. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +137 -216
  83. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  84. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +5 -0
  85. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
  86. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -0
  87. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -0
  88. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +144 -64
  89. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
  90. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
  91. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
  92. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +73 -23
  93. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
  94. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
  95. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +7 -42
  96. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
  97. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +54 -0
  98. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +49 -12
  99. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  100. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  101. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +0 -1
  102. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +2 -85
  103. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +5 -5
  104. package/src/sap/ui/mdc/library.js +41 -30
  105. package/src/sap/ui/mdc/link/ContactDetails.js +107 -23
  106. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  107. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  108. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  109. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  110. package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +26 -0
  111. package/src/sap/ui/mdc/link/Factory.js +1 -1
  112. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  113. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  114. package/src/sap/ui/mdc/link/Log.js +1 -1
  115. package/src/sap/ui/mdc/link/Panel.js +205 -29
  116. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  117. package/src/sap/ui/mdc/link/PanelRenderer.js +26 -0
  118. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  119. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  120. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  121. package/src/sap/ui/mdc/messagebundle.properties +59 -6
  122. package/src/sap/ui/mdc/messagebundle_ar.properties +40 -6
  123. package/src/sap/ui/mdc/messagebundle_bg.properties +58 -24
  124. package/src/sap/ui/mdc/messagebundle_ca.properties +40 -6
  125. package/src/sap/ui/mdc/messagebundle_cs.properties +40 -6
  126. package/src/sap/ui/mdc/messagebundle_cy.properties +40 -6
  127. package/src/sap/ui/mdc/messagebundle_da.properties +40 -6
  128. package/src/sap/ui/mdc/messagebundle_de.properties +40 -6
  129. package/src/sap/ui/mdc/messagebundle_el.properties +39 -5
  130. package/src/sap/ui/mdc/messagebundle_en.properties +40 -6
  131. package/src/sap/ui/mdc/messagebundle_en_GB.properties +40 -6
  132. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +40 -6
  133. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +68 -9
  134. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +41 -7
  135. package/src/sap/ui/mdc/messagebundle_es.properties +40 -6
  136. package/src/sap/ui/mdc/messagebundle_es_MX.properties +41 -7
  137. package/src/sap/ui/mdc/messagebundle_et.properties +40 -6
  138. package/src/sap/ui/mdc/messagebundle_fi.properties +40 -6
  139. package/src/sap/ui/mdc/messagebundle_fr.properties +41 -7
  140. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +40 -6
  141. package/src/sap/ui/mdc/messagebundle_hi.properties +40 -6
  142. package/src/sap/ui/mdc/messagebundle_hr.properties +40 -6
  143. package/src/sap/ui/mdc/messagebundle_hu.properties +40 -6
  144. package/src/sap/ui/mdc/messagebundle_id.properties +40 -6
  145. package/src/sap/ui/mdc/messagebundle_it.properties +41 -7
  146. package/src/sap/ui/mdc/messagebundle_iw.properties +39 -5
  147. package/src/sap/ui/mdc/messagebundle_ja.properties +41 -7
  148. package/src/sap/ui/mdc/messagebundle_kk.properties +40 -6
  149. package/src/sap/ui/mdc/messagebundle_ko.properties +39 -5
  150. package/src/sap/ui/mdc/messagebundle_lt.properties +40 -6
  151. package/src/sap/ui/mdc/messagebundle_lv.properties +44 -10
  152. package/src/sap/ui/mdc/messagebundle_ms.properties +40 -6
  153. package/src/sap/ui/mdc/messagebundle_nl.properties +40 -6
  154. package/src/sap/ui/mdc/messagebundle_no.properties +40 -6
  155. package/src/sap/ui/mdc/messagebundle_pl.properties +40 -6
  156. package/src/sap/ui/mdc/messagebundle_pt.properties +41 -7
  157. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +40 -6
  158. package/src/sap/ui/mdc/messagebundle_ro.properties +40 -6
  159. package/src/sap/ui/mdc/messagebundle_ru.properties +40 -6
  160. package/src/sap/ui/mdc/messagebundle_sh.properties +43 -9
  161. package/src/sap/ui/mdc/messagebundle_sk.properties +40 -6
  162. package/src/sap/ui/mdc/messagebundle_sl.properties +41 -7
  163. package/src/sap/ui/mdc/messagebundle_sv.properties +41 -7
  164. package/src/sap/ui/mdc/messagebundle_th.properties +43 -9
  165. package/src/sap/ui/mdc/messagebundle_tr.properties +41 -7
  166. package/src/sap/ui/mdc/messagebundle_uk.properties +43 -9
  167. package/src/sap/ui/mdc/messagebundle_vi.properties +40 -6
  168. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +40 -6
  169. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +40 -6
  170. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +24 -15
  171. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -141
  172. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -9
  173. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  174. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +354 -0
  175. package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
  176. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +70 -3
  177. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +8 -6
  178. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
  179. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
  180. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +32 -69
  181. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -4
  182. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +65 -5
  183. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +412 -326
  184. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
  185. package/src/sap/ui/mdc/p13n/Engine.js +169 -66
  186. package/src/sap/ui/mdc/p13n/FlexUtil.js +26 -19
  187. package/src/sap/ui/mdc/p13n/P13nBuilder.js +6 -6
  188. package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
  189. package/src/sap/ui/mdc/p13n/StateUtil.js +34 -51
  190. package/src/sap/ui/mdc/p13n/UIManager.js +21 -14
  191. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +0 -174
  192. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +2 -2
  193. package/src/sap/ui/mdc/p13n/modules/xConfigAPI.js +219 -0
  194. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
  195. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
  196. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +76 -16
  197. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
  198. package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
  199. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +54 -18
  200. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
  201. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +1 -2
  202. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  203. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +30 -2
  204. package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +46 -0
  205. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +37 -6
  206. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +40 -12
  207. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +9 -2
  208. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +1 -0
  209. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +4 -4
  210. package/src/sap/ui/mdc/table/Column.js +271 -132
  211. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  212. package/src/sap/ui/mdc/table/GridTableType.js +75 -27
  213. package/src/sap/ui/mdc/table/PropertyHelper.js +71 -95
  214. package/src/sap/ui/mdc/table/ResponsiveTableType.js +121 -40
  215. package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
  216. package/src/sap/ui/mdc/table/RowSettings.js +42 -1
  217. package/src/sap/ui/mdc/table/TableSettings.js +10 -22
  218. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
  219. package/src/sap/ui/mdc/table/menu/Item.js +78 -0
  220. package/src/sap/ui/mdc/table/menu/ItemContainer.js +60 -0
  221. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +151 -0
  222. package/src/sap/ui/mdc/themes/base/Chart.less +6 -0
  223. package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
  224. package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
  225. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +4 -3
  226. package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
  227. package/src/sap/ui/mdc/ui/Container.js +0 -240
  228. package/src/sap/ui/mdc/util/DateUtil.js +32 -7
  229. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  230. package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
  231. package/src/sap/ui/mdc/util/IdentifierUtil.js +7 -7
  232. package/src/sap/ui/mdc/util/PromiseCache.js +6 -2
  233. package/src/sap/ui/mdc/util/PropertyHelper.js +205 -76
  234. package/src/sap/ui/mdc/util/TypeUtil.js +1 -1
  235. package/src/sap/ui/mdc/valuehelp/Dialog.js +234 -44
  236. package/src/sap/ui/mdc/valuehelp/Popover.js +7 -4
  237. package/src/sap/ui/mdc/valuehelp/base/Container.js +63 -48
  238. package/src/sap/ui/mdc/valuehelp/base/Content.js +35 -16
  239. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
  240. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +161 -284
  241. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +4 -4
  242. package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
  243. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -4
  244. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +16 -13
  245. package/src/sap/ui/mdc/valuehelp/content/ListCollection.js +205 -0
  246. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +67 -66
  247. package/src/sap/ui/mdc/valuehelp/content/MTable.js +94 -185
  248. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -1
  249. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +6 -5
  250. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +4 -5
  251. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -9
  252. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +8 -8
  253. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +43 -27
  254. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
  255. package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
  256. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
  257. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
  258. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +0 -150
  259. package/src/sap/ui/mdc/link/ContactDetails.control.xml +0 -29
  260. package/src/sap/ui/mdc/link/Panel.control.xml +0 -36
  261. package/src/sap/ui/mdc/link/PanelListItem.control.xml +0 -24
  262. package/src/sap/ui/mdc/link/PanelListItem.js +0 -101
  263. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
  264. package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -408
  265. package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
  266. package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
  267. package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
package/THIRDPARTY.txt CHANGED
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.7
200
+ Component: URI.js, version: 1.19.10
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
400
400
 
401
401
  Library: sap.ui.webc.common:
402
402
 
403
- Component: UI5 Web Components, version: 1.0.0-rc.12
403
+ Component: UI5 Web Components, version: 1.1.2
404
404
  Copyright: SAP
405
405
  License: Apache-2.0
406
406
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
411
411
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
412
412
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
413
413
 
414
- Component: lit-html, version: 1.4.1
414
+ Component: lit-html, version: 2.0.1
415
415
  Copyright: Google LLC
416
416
  License: BSD-3-Clause
417
417
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
420
420
 
421
421
  Library: sap.ui.webc.fiori:
422
422
 
423
- Component: UI5 Web Components, version: 1.0.0-rc.12
423
+ Component: UI5 Web Components, version: 1.1.2
424
424
  Copyright: SAP
425
425
  License: Apache-2.0
426
426
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
429
429
 
430
430
  Library: sap.ui.webc.main:
431
431
 
432
- Component: UI5 Web Components, version: 1.0.0-rc.12
432
+ Component: UI5 Web Components, version: 1.1.2
433
433
  Copyright: SAP
434
434
  License: Apache-2.0
435
435
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -450,7 +450,7 @@ License: Apache-2.0
450
450
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
451
  Contained in: lib/jsdoc/ui5/plugin.js
452
452
 
453
- Component: SAP Theming Base Content, version: 11.1.34
453
+ Component: SAP Theming Base Content, version: 11.1.38
454
454
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
455
455
  License: Apache-2.0
456
456
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.mdc",
3
- "version": "1.98.0",
3
+ "version": "1.101.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.mdc",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,8 +14,8 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.98.0",
18
- "@openui5/sap.ui.core": "1.98.0",
19
- "@openui5/sap.ui.layout": "1.98.0"
17
+ "@openui5/sap.m": "1.101.0",
18
+ "@openui5/sap.ui.core": "1.101.0",
19
+ "@openui5/sap.ui.layout": "1.101.0"
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.98.0</version>
9
+ <version>1.101.0</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.mdc</documentation>
12
12
 
@@ -7,15 +7,18 @@
7
7
  sap.ui.define([
8
8
  "sap/m/OverflowToolbar",
9
9
  "sap/m/OverflowToolbarRenderer",
10
- "sap/m/OverflowToolbarPriority",
11
10
  "sap/m/ToolbarSpacer",
12
11
  "sap/m/ToolbarSeparator",
12
+ "sap/m/library",
13
13
  "sap/ui/mdc/enum/ActionToolbarActionAlignment",
14
14
  "sap/ui/mdc/p13n/subcontroller/ActionToolbarController",
15
15
  "sap/ui/mdc/p13n/Engine"
16
- ], function(OverflowToolbar, OverflowToolbarRenderer, OverflowToolbarPriority, ToolbarSpacer, ToolbarSeparator, ActionToolbarActionAlignment, ActionToolbarController, Engine) {
16
+ ], function(OverflowToolbar, OverflowToolbarRenderer, ToolbarSpacer, ToolbarSeparator, mobileLibrary, ActionToolbarActionAlignment, ActionToolbarController, Engine) {
17
17
  "use strict";
18
18
 
19
+ // shortcut for sap.m.OverflowToolbarPriority
20
+ var OverflowToolbarPriority = mobileLibrary.OverflowToolbarPriority;
21
+
19
22
  /**
20
23
  * Constructor for a new ActionToolbar.<br>
21
24
  * <b>Note:</b><br>
@@ -28,7 +31,7 @@ sap.ui.define([
28
31
  * @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
29
32
  * @extends sap.m.OverflowToolbar
30
33
  * @author SAP SE
31
- * @version 1.98.0
34
+ * @version 1.101.0
32
35
  * @constructor
33
36
  * @private
34
37
  * @since 1.58
@@ -43,7 +43,7 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
43
43
  /**
44
44
  * Creates an instance of the implementing MDC Control's default aggregation.
45
45
  *
46
- * @param {String} sPropertyName The name of the property info object/JSON
46
+ * @param {string} sPropertyName The name of the property info object/JSON
47
47
  * @param {Object<sap.ui.mdc.Control>} oControl Instance of a MDC Control
48
48
  * @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility change API
49
49
  * <b>Note:</b>
@@ -19,10 +19,13 @@ sap.ui.define([
19
19
  "sap/ui/mdc/mixin/FilterIntegrationMixin",
20
20
  "sap/ui/model/base/ManagedObjectModel",
21
21
  "sap/ui/mdc/p13n/subcontroller/ChartItemController",
22
+ "sap/ui/mdc/p13n/subcontroller/FilterController",
22
23
  "sap/ui/mdc/p13n/subcontroller/SortController",
24
+ "sap/ui/mdc/p13n/subcontroller/ChartTypeController",
23
25
  "sap/ui/base/ManagedObjectObserver",
24
26
  "sap/ui/mdc/chart/DrillBreadcrumbs",
25
- "sap/ui/mdc/actiontoolbar/ActionToolbarAction"
27
+ "sap/ui/mdc/actiontoolbar/ActionToolbarAction",
28
+ "sap/ui/thirdparty/jquery"
26
29
  ],
27
30
  function (
28
31
  Core,
@@ -39,10 +42,13 @@ sap.ui.define([
39
42
  FilterIntegrationMixin,
40
43
  ManagedObjectModel,
41
44
  ChartItemController,
45
+ FilterController,
42
46
  SortController,
47
+ ChartTypeController,
43
48
  ManagedObjectObserver,
44
49
  Breadcrumbs,
45
- ActionToolbarAction
50
+ ActionToolbarAction,
51
+ jQuery
46
52
  ) {
47
53
  "use strict";
48
54
 
@@ -56,7 +62,7 @@ sap.ui.define([
56
62
  * @class The Chart control creates a chart based on metadata and the configuration specified.
57
63
  * @extends sap.ui.mdc.Control
58
64
  * @author SAP SE
59
- * @version 1.98.0
65
+ * @version 1.101.0
60
66
  * @constructor
61
67
  * @experimental As of version ...
62
68
  * @private
@@ -71,6 +77,7 @@ sap.ui.define([
71
77
  library: "sap.ui.mdc",
72
78
  designtime: "sap/ui/mdc/designtime/chart/Chart.designtime",
73
79
  interfaces: [
80
+ "sap.ui.mdc.IFilterSource",
74
81
  "sap.ui.mdc.IxState"
75
82
  ],
76
83
  defaultAggregation: "items",
@@ -126,11 +133,12 @@ sap.ui.define([
126
133
  * @since 1.88
127
134
  */
128
135
  p13nMode: {
129
- type: "sap.ui.mdc.ChartP13nMode[]"
136
+ type: "sap.ui.mdc.ChartP13nMode[]",
137
+ defaultValue: []
130
138
  },
131
139
 
132
140
  /**
133
- * Set chart's legend properties.
141
+ * Enables the legend of the chart.
134
142
  *
135
143
  * @since 1.88
136
144
  */
@@ -179,8 +187,18 @@ sap.ui.define([
179
187
  type: "object"
180
188
  },
181
189
  /**
182
- * Controls the visibility of the chart tooltip. If set to <code>true </code>, an instance of sap.viz.ui5.controls.VizTooltip will
183
- * be created and shown when hovering over a data point.
190
+ * Defines the filter conditions.
191
+ *
192
+ * <b>Note:</b> This property is exclusively used for handling flexibility changes. Do not use it for anything else.
193
+ *
194
+ * @since 1.99
195
+ */
196
+ filterConditions: {
197
+ type: "object",
198
+ defaultValue: {}
199
+ },
200
+ /**
201
+ * Controls the visibility of the chart tooltip. If set to <code>true</code>, an instance of {@link sap.viz.ui5.controls.VizTooltip} is created and shown when hovering over a data point.
184
202
  *
185
203
  * @since 1.88
186
204
  */
@@ -190,7 +208,8 @@ sap.ui.define([
190
208
  defaultValue: true
191
209
  },
192
210
  /**
193
- * Binds the chart automatically after the initial creation of the chart
211
+ * If set to <code>true</code>, the chart is automatically bound after initialization.
212
+ * If set to <code>false</code>, the chart is bound after the first call to <code>rebind</code>.
194
213
  */
195
214
  autoBindOnInit: {
196
215
  type: "boolean",
@@ -199,7 +218,7 @@ sap.ui.define([
199
218
  },
200
219
 
201
220
  /**
202
- * Specifies the type of chart to be created by the SmartChart control.
221
+ * Specifies the type of chart to be created by the <code>Chart</code> control.
203
222
  */
204
223
  chartType: {
205
224
  type: "string",
@@ -210,6 +229,17 @@ sap.ui.define([
210
229
  type: "boolean",
211
230
  group: "Misc",
212
231
  defaultValue: true
232
+ },
233
+ /**
234
+ * Specifies the filter metadata.<br>
235
+ * <b>Note</b>: This property must not be bound.<br>
236
+ * <b>Note</b>: This property is used exclusively for SAPUI5 flexibility/ Fiori Elements. Do not use it otherwise.
237
+ *
238
+ * @since 1.99
239
+ */
240
+ propertyInfo: {
241
+ type: "object",
242
+ defaultValue: []
213
243
  }
214
244
  },
215
245
  aggregations: {
@@ -243,6 +273,13 @@ sap.ui.define([
243
273
  selectionDetailsActions: {
244
274
  type: "sap.ui.mdc.chart.SelectionDetailsActions",
245
275
  multiple: false
276
+ },
277
+ /**
278
+ * <code>VariantManagement<code> control for the chart.
279
+ */
280
+ variant: {
281
+ type: "sap.ui.fl.variants.VariantManagement",
282
+ multiple: false
246
283
  }
247
284
  },
248
285
  associations: {
@@ -322,6 +359,9 @@ sap.ui.define([
322
359
  this.setModel(this._oManagedObjectModel, "$mdcChart");
323
360
  this._bNewP13n = true;//TODO: remove with migration
324
361
  Control.prototype.init.apply(this, arguments);
362
+
363
+ this._setupPropertyInfoStore("propertyInfo");
364
+ this._setPropertyHelperClass(PropertyHelper);
325
365
  };
326
366
 
327
367
  Chart.prototype.setP13nMode = function(aMode) {
@@ -340,8 +380,12 @@ sap.ui.define([
340
380
  if (mKeys.Sort) {
341
381
  aSortedKeys.push("Sort");
342
382
  }
383
+ if (mKeys.Filter) {
384
+ aSortedKeys.push("Filter");
385
+ }
343
386
  if (mKeys.Type) {
344
387
  this._typeBtnActive = true;
388
+ aSortedKeys.push("Type");
345
389
  } else {
346
390
  this._typeBtnActive = false;
347
391
  }
@@ -363,7 +407,9 @@ sap.ui.define([
363
407
 
364
408
  var mRegistryOptions = {
365
409
  Item: ChartItemController,
366
- Sort: SortController
410
+ Sort: SortController,
411
+ Filter: FilterController,
412
+ Type: ChartTypeController
367
413
  };
368
414
 
369
415
  if (aMode && aMode.length > 0) {
@@ -380,6 +426,33 @@ sap.ui.define([
380
426
 
381
427
  };
382
428
 
429
+
430
+ Chart.prototype.isFilteringEnabled = function() {
431
+ return this.getP13nMode().indexOf("Filter") > -1;
432
+ };
433
+
434
+ Chart.prototype.setFilterConditions = function(mConditions) {
435
+ this.setProperty("filterConditions", mConditions, true);
436
+
437
+ var oP13nFilter = this.getInbuiltFilter();
438
+ if (oP13nFilter) {
439
+ oP13nFilter.setFilterConditions(mConditions);
440
+ }
441
+
442
+ return this;
443
+ };
444
+
445
+ Chart.prototype.getConditions = function() {
446
+ //may only return conditions if the inner FilterBar has already been initialized
447
+ return this.getInbuiltFilter() ? this.getInbuiltFilter().getConditions() : [];
448
+ };
449
+
450
+ Chart.prototype._registerInnerFilter = function(oFilter) {
451
+ oFilter.attachSearch(function() {
452
+ this._rebind();
453
+ }, this);
454
+ };
455
+
383
456
  /**
384
457
  * Applies given settings onto the MDC Chart, loads the delegate and initializes the MDC Chart
385
458
  *
@@ -390,6 +463,7 @@ sap.ui.define([
390
463
  * @ui5-restricted sap.ui.mdc
391
464
  */
392
465
  Chart.prototype.applySettings = function (mSettings, oScope) {
466
+ this._setPropertyHelperClass(PropertyHelper);
393
467
  Control.prototype.applySettings.apply(this, arguments);
394
468
 
395
469
  this.initializedPromise = new Promise(function (resolve, reject) {
@@ -403,18 +477,26 @@ sap.ui.define([
403
477
  }.bind(this));
404
478
 
405
479
  //load required modules before init of inner controls
406
- this._loadDelegate().then(function (oDelegate) {
407
- this.initControlDelegate(oDelegate).then(function () {
408
- this._initInnerControls();
409
-
410
-
411
- }.bind(this)).catch(function (error) {
412
- this._fnRejectInitialized(error);
413
- }.bind(this));
480
+ var pLoadDelegate = this._loadDelegate().then(function(oDelegate){
481
+ return oDelegate;
482
+ }).then(function(oDelegate){
483
+ return this.initControlDelegate(oDelegate);
414
484
  }.bind(this)).catch(function (error) {
415
485
  this._fnRejectInitialized(error);
416
486
  }.bind(this));
417
487
 
488
+ var aInitPromises = [
489
+ pLoadDelegate
490
+ ];
491
+
492
+ if (this.isFilteringEnabled()) {
493
+ aInitPromises.push(this.retrieveInbuiltFilter());
494
+ }
495
+
496
+ //TODO: Refactor this so we use awaitPropertyHelper
497
+ Promise.all(aInitPromises).then(function(){
498
+ this._initInnerControls();
499
+ }.bind(this));
418
500
 
419
501
  };
420
502
 
@@ -423,6 +505,7 @@ sap.ui.define([
423
505
  * Inner chart is initialized via the delegate
424
506
  */
425
507
  Chart.prototype._initInnerControls = function () {
508
+
426
509
  this.getControlDelegate().initializeInnerChart(this).then(function (oInnerChart) {
427
510
 
428
511
  this.setBusyIndicatorDelay(0);
@@ -432,16 +515,14 @@ sap.ui.define([
432
515
 
433
516
  if (this.getAutoBindOnInit()) {
434
517
  this.setBusy(true);
435
- this._createContentfromPropertyInfos();
518
+ this._createContentfromPropertyInfos(oInnerChart);
436
519
  }
437
520
 
438
521
  this.setAggregation("_innerChart", oInnerChart);
439
-
440
522
  this._bInnerChartReady = true;
441
-
442
523
  this._fnResolveInitialized();
443
- // eslint-disable-next-line no-empty
444
524
  this.invalidate();
525
+
445
526
  }.bind(this)).catch(function (error) {
446
527
  this._fnRejectInitialized(error);
447
528
  }.bind(this));
@@ -458,27 +539,27 @@ sap.ui.define([
458
539
  *
459
540
  * Is called during init when autoBindOnInit = "true", if "false" then this is called by _rebind()
460
541
  */
461
- Chart.prototype._createContentfromPropertyInfos = function () {
462
- this.initPropertyHelper(PropertyHelper).then(function () {
463
- //Create content on inner chart instance
464
- this.getControlDelegate().createInnerChartContent(this, this._innerChartDataLoadComplete.bind(this));
465
-
466
- this._createBreadcrumbs();
467
- //From now on, listen to changes on Items Aggregation and sync them with inner chart
468
- this._oObserver = new ManagedObjectObserver(this._propagateItemChangeToInnerChart.bind(this));
469
- this._oObserver.observe(this, {
470
- aggregations: [
471
- "items"
472
- ]
473
- });
474
-
475
- //Sync MDC Chart properties with inner chart
476
- this._propagatePropertiesToInnerChart();
477
-
478
- this._fnResolveInnerChartBound();
542
+ Chart.prototype._createContentfromPropertyInfos = function (oInnerChart) {
479
543
 
544
+ //Make sure all MDC Items have the necessary information to create a chart
545
+ this.getControlDelegate().checkAndUpdateMDCItems(this).then(function(){
546
+ //Create content on inner chart instance
547
+ this.getControlDelegate().createInnerChartContent(this, this._innerChartDataLoadComplete.bind(this)).then(function(){
548
+ this._createBreadcrumbs();
549
+ //From now on, listen to changes on Items Aggregation and sync them with inner chart
550
+ this._oObserver = new ManagedObjectObserver(this._propagateItemChangeToInnerChart.bind(this));
551
+ this._oObserver.observe(this, {
552
+ aggregations: [
553
+ "items"
554
+ ]
555
+ });
556
+
557
+ //Sync MDC Chart properties with inner chart
558
+ this._propagatePropertiesToInnerChart();
559
+
560
+ this._fnResolveInnerChartBound();
561
+ }.bind(this));
480
562
  }.bind(this));
481
-
482
563
  };
483
564
 
484
565
  Chart.prototype.setHeight = function(iHeight) {
@@ -530,7 +611,7 @@ sap.ui.define([
530
611
  * @ui5-restricted Fiori Elements
531
612
  */
532
613
  Chart.prototype.isFilteringEnabled = function () {
533
-
614
+ return this.getP13nMode().indexOf("Filter") > -1;
534
615
  };
535
616
 
536
617
  /**
@@ -609,10 +690,6 @@ sap.ui.define([
609
690
 
610
691
  var oBindingInfo = this.getControlDelegate()._getBindingInfo(this);
611
692
 
612
- if (oBindingInfo) {
613
- oBindingInfo.sorter = this._getSorters();
614
- }
615
-
616
693
  this.getControlDelegate().updateBindingInfo(this, oBindingInfo); //Applies filters
617
694
  this.getControlDelegate().rebind(this, oBindingInfo);
618
695
  };
@@ -824,24 +901,33 @@ sap.ui.define([
824
901
  * @ui5-restricted sap.ui.mdc
825
902
  */
826
903
  Chart.prototype._showDrillDown = function (oDrillBtn) {
827
- if (DrillStackHandler) {
828
-
829
- DrillStackHandler.createDrillDownPopover(this);
830
- return DrillStackHandler.showDrillDownPopover(this, oDrillBtn);
831
- }
904
+ if (!this.oDrillPopover) {
905
+ if (DrillStackHandler) {
906
+ this.oDrillPopover = DrillStackHandler.createDrillDownPopover(this);
907
+ this.oDrillPopover.attachAfterClose(function(){
908
+ delete this.oDrillPopover;
909
+ }.bind(this));
910
+
911
+ return DrillStackHandler.showDrillDownPopover(this, oDrillBtn);
912
+ }
832
913
 
833
- return new Promise(function (resolve, reject) {
834
- sap.ui.require([
835
- "sap/ui/mdc/chart/DrillStackHandler"
836
- ], function (DrillStackHandlerLoaded) {
837
- DrillStackHandler = DrillStackHandlerLoaded;
838
- DrillStackHandler.createDrillDownPopover(this);
839
- DrillStackHandler.showDrillDownPopover(this, oDrillBtn)
840
- .then(function (oDrillDownPopover) {
841
- resolve(oDrillDownPopover);
842
- });
914
+ return new Promise(function (resolve, reject) {
915
+ sap.ui.require([
916
+ "sap/ui/mdc/chart/DrillStackHandler"
917
+ ], function (DrillStackHandlerLoaded) {
918
+ DrillStackHandler = DrillStackHandlerLoaded;
919
+ this.oDrillPopover = DrillStackHandler.createDrillDownPopover(this);
920
+ this.oDrillPopover.attachAfterClose(function(){
921
+ delete this.oDrillPopover;
922
+ }.bind(this));
923
+
924
+ DrillStackHandler.showDrillDownPopover(this, oDrillBtn)
925
+ .then(function (oDrillDownPopover) {
926
+ resolve(oDrillDownPopover);
927
+ });
928
+ }.bind(this));
843
929
  }.bind(this));
844
- }.bind(this));
930
+ }
845
931
  };
846
932
 
847
933
  /**
@@ -967,6 +1053,14 @@ sap.ui.define([
967
1053
  if (aP13nMode.indexOf("Sort") > -1) {
968
1054
  oState.sorters = this._getSortedProperties();
969
1055
  }
1056
+
1057
+ if (aP13nMode.indexOf("Filter") > -1) {
1058
+ oState.filter = this.getFilterConditions();
1059
+ }
1060
+
1061
+ if (aP13nMode.indexOf("Type") > -1) {
1062
+ oState.chartType = this.getChartType();
1063
+ }
970
1064
  }
971
1065
 
972
1066
  return oState;
@@ -1002,46 +1096,6 @@ sap.ui.define([
1002
1096
  return this.getSortConditions() ? this.getSortConditions().sorters : [];
1003
1097
  };
1004
1098
 
1005
- /**
1006
- * Returns sorters available for the data
1007
- *
1008
- * @returns {array} Array containing available sorters
1009
- *
1010
- * @experimental
1011
- * @private
1012
- * @ui5-restricted sap.ui.mdc
1013
- */
1014
- Chart.prototype._getSorters = function () {
1015
- var aSorters;
1016
- var aSorterProperties = this.getSortConditions() ? this.getSortConditions().sorters : [];
1017
-
1018
- aSorterProperties.forEach(function (oSortProp) {
1019
-
1020
- var oMDCItem = this.getItems().find(function (oProp) {
1021
- return oProp.getName() === oSortProp.name;
1022
- });
1023
-
1024
- //Ignore not visible Items
1025
- if (!oMDCItem) {
1026
- return;
1027
- }
1028
-
1029
- //TODO: Check for inResultDimensions
1030
- var oSorter = this.getControlDelegate().getSorterForItem(oMDCItem, oSortProp);
1031
-
1032
- if (aSorters) {
1033
- aSorters.push(oSorter);
1034
- } else {
1035
- aSorters = [
1036
- oSorter
1037
- ];//[] has special meaning in sorting
1038
- }
1039
- }.bind(this));
1040
-
1041
- return aSorters;
1042
-
1043
- };
1044
-
1045
1099
  /**
1046
1100
  * Returns the fetched properties from the delegate
1047
1101
  *
@@ -1063,6 +1117,24 @@ sap.ui.define([
1063
1117
  return !!this._typeBtnActive;
1064
1118
  };
1065
1119
 
1120
+ /**
1121
+ * Sets the <code>noDataText</code> property.
1122
+ * <code>noDataText</code> is displayed if the chart has no data to show.
1123
+ * @param {string} sText New value for <code>noDataText</code>
1124
+ * @returns {sap.ui.mdc.Chart} Reference to the <code>Chart</code>
1125
+ */
1126
+ Chart.prototype.setNoDataText = function(sText) {
1127
+ this.setProperty("noDataText", sText);
1128
+
1129
+ try {
1130
+ this.getControlDelegate().setNoDataText(this, sText);
1131
+ } catch (error) {
1132
+ //Nothing to do here as this is done during init
1133
+ }
1134
+
1135
+ return this;
1136
+ };
1137
+
1066
1138
  /**
1067
1139
  * Callback for when fuilters changed
1068
1140
  * Activates the overlay on the MDC Chart
@@ -1079,6 +1151,18 @@ sap.ui.define([
1079
1151
  }
1080
1152
  };
1081
1153
 
1154
+ Chart.prototype.setVariant = function(oControl) {
1155
+ this.setAggregation("variant", oControl);
1156
+
1157
+ //Only add VM directly when Toolbar already exists; otherwise VM will be added during init of toolbar
1158
+ if (this.getAggregation("_toolbar")){
1159
+ this.getAggregation("_toolbar").addVariantManagement(oControl);
1160
+ }
1161
+
1162
+
1163
+ return this;
1164
+ };
1165
+
1082
1166
  /**
1083
1167
  * Adds/Removes the overlay shown above the inner chart
1084
1168
  * @param {boolean} bShow true to show overlay, false to hide