@openui5/sap.ui.mdc 1.96.5 → 1.99.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 (282) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +7 -9
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
  7. package/src/sap/ui/mdc/BaseDelegate.js +1 -1
  8. package/src/sap/ui/mdc/Chart.js +1100 -1796
  9. package/src/sap/ui/mdc/ChartDelegate.js +429 -270
  10. package/src/sap/ui/mdc/ChartRenderer.js +73 -77
  11. package/src/sap/ui/mdc/Control.js +1 -1
  12. package/src/sap/ui/mdc/Element.js +1 -1
  13. package/src/sap/ui/mdc/Field.js +3 -2
  14. package/src/sap/ui/mdc/FilterBar.js +3 -2
  15. package/src/sap/ui/mdc/FilterField.js +25 -8
  16. package/src/sap/ui/mdc/Link.js +23 -4
  17. package/src/sap/ui/mdc/LinkDelegate.js +3 -3
  18. package/src/sap/ui/mdc/MultiValueField.js +21 -6
  19. package/src/sap/ui/mdc/Table.js +204 -161
  20. package/src/sap/ui/mdc/TableDelegate.js +47 -17
  21. package/src/sap/ui/mdc/ValueHelp.js +51 -15
  22. package/src/sap/ui/mdc/ValueHelpDelegate.js +20 -0
  23. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  24. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
  25. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
  26. package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
  27. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
  28. package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
  29. package/src/sap/ui/mdc/chart/Item.js +62 -92
  30. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
  31. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
  32. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  33. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  34. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  35. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  36. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +261 -44
  37. package/src/sap/ui/mdc/condition/Operator.js +9 -9
  38. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
  39. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  40. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +80 -5
  41. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +97 -0
  42. package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
  43. package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
  44. package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
  45. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
  46. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
  47. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  48. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  49. package/src/sap/ui/mdc/field/ConditionType.js +9 -9
  50. package/src/sap/ui/mdc/field/ConditionsType.js +7 -7
  51. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  52. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  53. package/src/sap/ui/mdc/field/DefineConditionPanel.js +75 -27
  54. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
  55. package/src/sap/ui/mdc/field/FieldBase.js +85 -52
  56. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
  57. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  58. package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
  59. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  60. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  61. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  62. package/src/sap/ui/mdc/field/FieldValueHelp.js +7 -7
  63. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  64. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +20 -0
  65. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  66. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
  67. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +7 -3
  68. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
  69. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  70. package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
  71. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  72. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  73. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  74. package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
  75. package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
  76. package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
  77. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
  78. package/src/sap/ui/mdc/field/ValueHelpPanel.js +2 -1
  79. package/src/sap/ui/mdc/field/content/BooleanContent.js +1 -1
  80. package/src/sap/ui/mdc/field/content/ContentFactory.js +28 -26
  81. package/src/sap/ui/mdc/field/content/DateContent.js +128 -2
  82. package/src/sap/ui/mdc/field/content/DateTimeContent.js +9 -1
  83. package/src/sap/ui/mdc/field/content/DefaultContent.js +36 -14
  84. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  85. package/src/sap/ui/mdc/field/content/TimeContent.js +8 -1
  86. package/src/sap/ui/mdc/field/content/UnitContent.js +23 -4
  87. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +359 -142
  88. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  89. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  90. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
  91. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
  92. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
  93. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
  94. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  95. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
  96. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
  97. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
  98. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  99. package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
  100. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
  101. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
  102. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  103. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
  104. package/src/sap/ui/mdc/library.js +62 -43
  105. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  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/Factory.js +2 -2
  111. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  112. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  113. package/src/sap/ui/mdc/link/Log.js +1 -1
  114. package/src/sap/ui/mdc/link/Panel.js +140 -177
  115. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  116. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  117. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  118. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  119. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  120. package/src/sap/ui/mdc/messagebundle.properties +68 -5
  121. package/src/sap/ui/mdc/messagebundle_ar.properties +47 -6
  122. package/src/sap/ui/mdc/messagebundle_bg.properties +61 -20
  123. package/src/sap/ui/mdc/messagebundle_ca.properties +45 -4
  124. package/src/sap/ui/mdc/messagebundle_cs.properties +60 -19
  125. package/src/sap/ui/mdc/messagebundle_cy.properties +45 -4
  126. package/src/sap/ui/mdc/messagebundle_da.properties +52 -11
  127. package/src/sap/ui/mdc/messagebundle_de.properties +45 -4
  128. package/src/sap/ui/mdc/messagebundle_el.properties +46 -5
  129. package/src/sap/ui/mdc/messagebundle_en.properties +45 -4
  130. package/src/sap/ui/mdc/messagebundle_en_GB.properties +45 -4
  131. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +51 -2
  132. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +45 -4
  133. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +51 -2
  134. package/src/sap/ui/mdc/messagebundle_es.properties +46 -5
  135. package/src/sap/ui/mdc/messagebundle_es_MX.properties +59 -18
  136. package/src/sap/ui/mdc/messagebundle_et.properties +45 -4
  137. package/src/sap/ui/mdc/messagebundle_fi.properties +51 -10
  138. package/src/sap/ui/mdc/messagebundle_fr.properties +50 -9
  139. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +45 -4
  140. package/src/sap/ui/mdc/messagebundle_hi.properties +46 -5
  141. package/src/sap/ui/mdc/messagebundle_hr.properties +45 -4
  142. package/src/sap/ui/mdc/messagebundle_hu.properties +45 -4
  143. package/src/sap/ui/mdc/messagebundle_id.properties +45 -4
  144. package/src/sap/ui/mdc/messagebundle_it.properties +61 -20
  145. package/src/sap/ui/mdc/messagebundle_iw.properties +46 -5
  146. package/src/sap/ui/mdc/messagebundle_ja.properties +46 -5
  147. package/src/sap/ui/mdc/messagebundle_kk.properties +45 -4
  148. package/src/sap/ui/mdc/messagebundle_ko.properties +46 -5
  149. package/src/sap/ui/mdc/messagebundle_lt.properties +45 -4
  150. package/src/sap/ui/mdc/messagebundle_lv.properties +49 -8
  151. package/src/sap/ui/mdc/messagebundle_ms.properties +45 -4
  152. package/src/sap/ui/mdc/messagebundle_nl.properties +49 -8
  153. package/src/sap/ui/mdc/messagebundle_no.properties +53 -12
  154. package/src/sap/ui/mdc/messagebundle_pl.properties +46 -5
  155. package/src/sap/ui/mdc/messagebundle_pt.properties +52 -11
  156. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +45 -4
  157. package/src/sap/ui/mdc/messagebundle_ro.properties +45 -4
  158. package/src/sap/ui/mdc/messagebundle_ru.properties +45 -4
  159. package/src/sap/ui/mdc/messagebundle_sh.properties +45 -4
  160. package/src/sap/ui/mdc/messagebundle_sk.properties +45 -4
  161. package/src/sap/ui/mdc/messagebundle_sl.properties +45 -4
  162. package/src/sap/ui/mdc/messagebundle_sv.properties +47 -6
  163. package/src/sap/ui/mdc/messagebundle_th.properties +48 -7
  164. package/src/sap/ui/mdc/messagebundle_tr.properties +45 -4
  165. package/src/sap/ui/mdc/messagebundle_uk.properties +49 -8
  166. package/src/sap/ui/mdc/messagebundle_vi.properties +45 -4
  167. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +46 -5
  168. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +45 -4
  169. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
  170. package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
  171. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +16 -11
  172. package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
  173. package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
  174. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
  175. package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
  176. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +160 -116
  177. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
  178. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +1 -1
  179. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
  180. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +215 -116
  181. package/src/sap/ui/mdc/p13n/Engine.js +61 -20
  182. package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
  183. package/src/sap/ui/mdc/p13n/P13nBuilder.js +8 -8
  184. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +21 -10
  185. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  186. package/src/sap/ui/mdc/p13n/StateUtil.js +40 -6
  187. package/src/sap/ui/mdc/p13n/UIManager.js +15 -12
  188. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
  189. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
  190. package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +2 -2
  191. package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
  192. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +19 -3
  193. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
  194. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
  195. package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
  196. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
  197. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +1 -1
  198. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
  199. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
  200. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
  201. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
  202. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
  203. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
  204. package/src/sap/ui/mdc/table/Column.js +35 -10
  205. package/src/sap/ui/mdc/table/CreationRow.js +14 -13
  206. package/src/sap/ui/mdc/table/GridTableType.js +13 -13
  207. package/src/sap/ui/mdc/table/PropertyHelper.js +64 -27
  208. package/src/sap/ui/mdc/table/ResponsiveTableType.js +26 -29
  209. package/src/sap/ui/mdc/table/RowSettings.js +7 -5
  210. package/src/sap/ui/mdc/table/TableTypeBase.js +6 -6
  211. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +15 -71
  212. package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
  213. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  214. package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
  215. package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
  216. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
  217. package/src/sap/ui/mdc/themes/base/library.source.less +3 -0
  218. package/src/sap/ui/mdc/ui/Container.js +2 -2
  219. package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
  220. package/src/sap/ui/mdc/util/Common.js +1 -1
  221. package/src/sap/ui/mdc/util/DateUtil.js +1 -1
  222. package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
  223. package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
  224. package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
  225. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  226. package/src/sap/ui/mdc/util/PropertyHelper.js +148 -325
  227. package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
  228. package/src/sap/ui/mdc/valuehelp/Dialog.js +12 -8
  229. package/src/sap/ui/mdc/valuehelp/Popover.js +14 -2
  230. package/src/sap/ui/mdc/valuehelp/base/Container.js +33 -1
  231. package/src/sap/ui/mdc/valuehelp/base/Content.js +36 -5
  232. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
  233. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +43 -15
  234. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
  235. package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
  236. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +28 -32
  237. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
  238. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +50 -10
  239. package/src/sap/ui/mdc/valuehelp/content/MTable.js +57 -26
  240. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  241. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  242. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  243. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  244. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  245. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  246. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  247. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
  248. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
  249. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
  250. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  251. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  252. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  253. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  254. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  255. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +362 -233
  256. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  257. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
  258. package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
  259. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
  260. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
  261. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  262. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  263. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  264. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  265. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  266. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  267. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  268. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  269. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  270. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  271. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  272. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  273. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  274. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  275. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  276. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  277. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  278. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1171
  279. package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
  280. package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
  281. package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
  282. package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
@@ -254,7 +254,6 @@ sap.ui.define([
254
254
  }
255
255
  }
256
256
 
257
- // TODO: @ui5-restricted sap.ui.mdc
258
257
  /**
259
258
  * Constructor for a new <code>MDCTable</code> content.
260
259
  *
@@ -262,11 +261,13 @@ sap.ui.define([
262
261
  * @param {object} [mSettings] Initial settings for the new control
263
262
  * @class Content for the <code>sap.ui.mdc.valuehelp.base.Container</code> element using a sap.ui.mdc.Table.
264
263
  * @extends sap.ui.mdc.valuehelp.base.FilterableListContent
265
- * @version 1.96.5
264
+ * @version 1.99.0
266
265
  * @constructor
267
266
  * @abstract
268
267
  * @private
268
+ * @ui5-restricted sap.ui.mdc
269
269
  * @since 1.95.0
270
+ * @experimental As of version 1.95
270
271
  * @alias sap.ui.mdc.valuehelp.content.MDCTable
271
272
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
272
273
  */
@@ -282,6 +283,9 @@ sap.ui.define([
282
283
  aggregations: {
283
284
  /**
284
285
  * Table to be used in value help
286
+ *
287
+ * <b>Note:</b> Set the right selection mode (multiple selection or single selection) as it cannot be determined automatically
288
+ * for every case. (Maybe for multi-value <code>FilterField</code> controls only single selection from table might be wanted.)
285
289
  */
286
290
  table: {
287
291
  type: "sap.ui.mdc.Table",
@@ -386,8 +390,13 @@ sap.ui.define([
386
390
  }
387
391
  };
388
392
 
389
- var _handleSearch = function () {
390
- return this.applyFilters(this.getFilterValue());
393
+ var _handleSearch = function (oEvent) {
394
+ var sFilterFields = this.getFilterFields();
395
+ var oFilterBar = oEvent.getSource();
396
+ var oConditions = oFilterBar.getInternalConditions();
397
+ var oCondition = sFilterFields && oConditions[sFilterFields] && oConditions[sFilterFields][0];
398
+ var sFilterValue = oCondition && oCondition.values[0];
399
+ this.setFilterValue(sFilterValue);
391
400
  };
392
401
 
393
402
  MDCTable.prototype._observeChanges = function (oChanges) {
@@ -487,10 +496,6 @@ sap.ui.define([
487
496
  }
488
497
 
489
498
  function _adjustTable () {
490
- if (this._oTable) {
491
- this._oTable.setSelectionMode(this._isSingleSelect() ? MDCSelectionMode.Single : MDCSelectionMode.Multi);
492
- }
493
-
494
499
  if (this._oTableHelper) {
495
500
  this._oTableHelper.adjustTable.call(this);
496
501
  }
@@ -514,14 +519,18 @@ sap.ui.define([
514
519
  this._oFilterBarVBox.addStyleClass("sapMdcValueHelpPanelFilterbar");
515
520
  this._oFilterBarVBox._oWrapper = this;
516
521
  this._oFilterBarVBox.getItems = function () {
517
- return [this._oWrapper._getPriorityFilterBar.call(this._oWrapper)];
522
+ var oFilterBar = this._oWrapper._getPriorityFilterBar.call(this._oWrapper);
523
+ var aItems = oFilterBar ? [oFilterBar] : [];
524
+ return aItems;
518
525
  };
519
526
 
520
527
  this._oTableBox = new VBox(this.getId() + "-TB", {height: "100%"});
521
528
  this._oTableBox.addStyleClass("sapMdcValueHelpPanelTableBox");
522
529
  this._oTableBox._oWrapper = this;
523
530
  this._oTableBox.getItems = function () {
524
- return [this._oWrapper._sTableType === "ResponsiveTable" ? this._oWrapper._oScrollContainer : this._oWrapper._oTable];
531
+ var oTable = this._oWrapper._sTableType === "ResponsiveTable" ? this._oWrapper._oScrollContainer : this._oWrapper._oTable;
532
+ var aItems = oTable ? [oTable] : [];
533
+ return aItems;
525
534
  };
526
535
 
527
536
  this._oContentLayout = new FixFlex(this.getId() + "-FF", {minFlexSize: 200, fixContent: this._oFilterBarVBox, flexContent: this._oTableBox});
@@ -547,6 +556,7 @@ sap.ui.define([
547
556
 
548
557
  if (!this._getPriorityFilterBar()) {
549
558
  return this._createDefaultFilterBar().then(function () {
559
+ this._oFilterBarVBox.invalidate(); // to rerender if FilterBar added
550
560
  return this._oContentLayout;
551
561
  }.bind(this));
552
562
  }
@@ -564,6 +574,21 @@ sap.ui.define([
564
574
  return this._oTableHelper && this._oTableHelper.getListBindingInfo();
565
575
  };
566
576
 
577
+ MDCTable.prototype.onShow = function () {
578
+ if (this._oTable) {
579
+ // check if selection mode is fine
580
+ var sSelectionMode = FilterableListContent.prototype._isSingleSelect.apply(this) ? MDCSelectionMode.Single : MDCSelectionMode.Multi;
581
+ if (this._oTable.getSelectionMode() === MDCSelectionMode.None) { // only set automatically if not provided from outside (and do it only once)
582
+ this._oTable.setSelectionMode(sSelectionMode);
583
+ }
584
+ if (this._oTable.getSelectionMode() !== sSelectionMode) {
585
+ throw new Error("Table selectionMode needs to be " + sSelectionMode);
586
+ }
587
+ }
588
+
589
+ FilterableListContent.prototype.onShow.apply(this, arguments);
590
+ };
591
+
567
592
  MDCTable.prototype.applyFilters = function(sSearch) { // TODO the arguments are not passed as expected.
568
593
 
569
594
  var oTable = this.getTable();
@@ -634,5 +659,20 @@ sap.ui.define([
634
659
  _adjustTable.call(this);
635
660
  };
636
661
 
662
+ MDCTable.prototype._isSingleSelect = function() {
663
+
664
+ // use selection mode of table if set
665
+ if (this._oTable) {
666
+ if (this._oTable.getSelectionMode() === MDCSelectionMode.Multi) {
667
+ return false;
668
+ } else {
669
+ return true;
670
+ }
671
+ } else {
672
+ return FilterableListContent.prototype._isSingleSelect.apply(this, arguments);
673
+ }
674
+
675
+ };
676
+
637
677
  return MDCTable;
638
678
  });
@@ -6,7 +6,9 @@
6
6
 
7
7
  sap.ui.define([
8
8
  'sap/ui/mdc/valuehelp/base/FilterableListContent',
9
+ 'sap/ui/mdc/condition/Condition',
9
10
  'sap/ui/mdc/condition/FilterConverter',
11
+ 'sap/ui/mdc/enum/ConditionValidated',
10
12
  'sap/ui/mdc/util/loadModules',
11
13
  'sap/m/library',
12
14
  'sap/ui/model/FilterType',
@@ -20,7 +22,9 @@ sap.ui.define([
20
22
  'sap/base/Log'
21
23
  ], function(
22
24
  FilterableListContent,
25
+ Condition,
23
26
  FilterConverter,
27
+ ConditionValidated,
24
28
  loadModules,
25
29
  library,
26
30
  FilterType,
@@ -45,12 +49,13 @@ sap.ui.define([
45
49
  * @param {object} [mSettings] Initial settings for the new control
46
50
  * @class Content for the <code>sap.ui.mdc.valuehelp.base.Container</code> element using a sap.m.Table.
47
51
  * @extends sap.ui.mdc.valuehelp.base.FilterableListContent
48
- * @version 1.96.5
52
+ * @version 1.99.0
49
53
  * @constructor
50
54
  * @abstract
51
55
  * @private
52
56
  * @ui5-restricted sap.ui.mdc
53
57
  * @since 1.95.0
58
+ * @experimental As of version 1.95
54
59
  * @alias sap.ui.mdc.valuehelp.content.MTable
55
60
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
56
61
  */
@@ -68,6 +73,9 @@ sap.ui.define([
68
73
  aggregations: {
69
74
  /**
70
75
  * Table to be used in value help
76
+ *
77
+ * <b>Note:</b> Set the right selection mode (multiple selection or single selection) as it cannot be determined automatically
78
+ * for every case. (In type-ahead also for multi-value <code>FilterField</code> controls only single selection from table might be wanted.)
71
79
  */
72
80
  table: {
73
81
  type: "sap.m.Table",
@@ -109,20 +117,13 @@ sap.ui.define([
109
117
 
110
118
  function _updateSelection () {
111
119
  if (this._oTable) {
112
- // var aSelectedIds = this.getConditions().filter(function (oCondition) {
113
- // return oCondition.operator === "EQ";
114
- // }).map(function (oCondition) {
115
- // return oCondition.values[0];
116
- // });
117
120
  var aItems = this._oTable.getItems();
118
121
  var aConditions = this.getConditions();
122
+ var bHideSelection = this._isSingleSelect() && !FilterableListContent.prototype._isSingleSelect.apply(this); // if table is in single selection but Fild allows multiple values, don'tr select items
119
123
 
120
124
  for (var iId in aItems) {
121
125
  var oItem = aItems[iId];
122
- // var oContext = oItem && oItem.getBindingContext();
123
- // var oContextValue = oContext && oContext.getObject();
124
- // var bSelected = oContextValue && aSelectedIds.indexOf(oContextValue[this.getKeyPath()]) >= 0;
125
- var bSelected = this._isItemSelected(oItem, aConditions);
126
+ var bSelected = bHideSelection ? false : this._isItemSelected(oItem, aConditions);
126
127
  oItem.setSelected(bSelected);
127
128
  }
128
129
  }
@@ -153,8 +154,16 @@ sap.ui.define([
153
154
  var oDelegate = this._getValueHelpDelegate();
154
155
  var oDelegatePayload = this._getValueHelpDelegatePayload();
155
156
 
157
+ var sFilterFields = this.getFilterFields();
156
158
  var oFilterBar = this._getPriorityFilterBar();
157
159
  var oConditions = oFilterBar ? oFilterBar.getInternalConditions() : this.getProperty("inConditions"); // use InParameter if no FilterBar
160
+
161
+ if (!oFilterBar && sFieldSearch && sFilterFields && sFilterFields !== "$search") {
162
+ // add condition for Search value
163
+ var oCondition = Condition.createCondition("Contains", [sFieldSearch], undefined, undefined, ConditionValidated.NotValidated);
164
+ oConditions[sFilterFields] = [oCondition];
165
+ }
166
+
158
167
  var oConditionTypes = oConditions && this._getTypesForConditions(oConditions);
159
168
  var oFilter = oConditions && FilterConverter.createFilters( oConditions, oConditionTypes, undefined, this.getCaseSensitive());
160
169
  var aFilters = oFilter && [oFilter];
@@ -179,12 +188,13 @@ sap.ui.define([
179
188
  bUseFilter = false;
180
189
  }
181
190
 
182
- if (oDelegate && oDelegate.isSearchSupported(oDelegatePayload, oListBinding)){
191
+ if (sFilterFields === "$search" && oDelegate && oDelegate.isSearchSupported(oDelegatePayload, oListBinding)){
183
192
  if (!oListBinding.isSuspended() && bUseFilter) {
184
193
  // as we trigger two changes this would result to two requests therefore we suspend the binding
185
194
  oListBinding.suspend();
186
195
  }
187
196
 
197
+ sSearch = oDelegate.adjustSearch(oDelegatePayload, this.isTypeahead(), sSearch);
188
198
  oDelegate.executeSearch(oDelegatePayload, oListBinding, sSearch);
189
199
  Log.info("ValueHelp-Search: " + sSearch);
190
200
  }
@@ -249,6 +259,17 @@ sap.ui.define([
249
259
  if (!oTable.hasStyleClass("sapMComboBoxList")) { // TODO: only in typeahead case?
250
260
  oTable.addStyleClass("sapMComboBoxList"); // to allow focus outline in navigation
251
261
  }
262
+ // check if selection mode is fine
263
+ var sSelectionMode = this.isTypeahead() ? ListMode.SingleSelectMaster : ListMode.SingleSelectLeft;
264
+ if (!FilterableListContent.prototype._isSingleSelect.apply(this) && oTable.getMode() !== sSelectionMode) { // if in multi-select mode only single-selection on table is allowed this is also OK
265
+ sSelectionMode = ListMode.MultiSelect;
266
+ }
267
+ if (oTable.getMode() === ListMode.None) { // only set automatically if not provided from outside (and do it only once)
268
+ oTable.setMode(sSelectionMode);
269
+ }
270
+ if (oTable.getMode() !== sSelectionMode) {
271
+ throw new Error("Table selection mode needs to be " + sSelectionMode);
272
+ }
252
273
  }
253
274
 
254
275
  FilterableListContent.prototype.onShow.apply(this, arguments);
@@ -521,8 +542,15 @@ sap.ui.define([
521
542
  aInParameters.push(oConfig.inParameters.sPath);
522
543
  } else {
523
544
  for (var i = 0; i < oConfig.inParameters.aFilters.length; i++) {
524
- if (aInParameters.indexOf(oConfig.inParameters.aFilters[i].sPath) < 0) {
525
- aInParameters.push(oConfig.inParameters.aFilters[i].sPath);
545
+ var oInFilter = oConfig.inParameters.aFilters[i];
546
+ if (oInFilter.aFilters) {
547
+ for (var j = 0; j < oInFilter.aFilters.length; j++) {
548
+ if (oInFilter.aFilters[j].sPath && aInParameters.indexOf(oInFilter.aFilters[j].sPath) < 0) {
549
+ aInParameters.push(oInFilter.aFilters[j].sPath);
550
+ }
551
+ }
552
+ } else if (oInFilter.sPath && aInParameters.indexOf(oInFilter.sPath) < 0) {
553
+ aInParameters.push(oInFilter.sPath);
526
554
  }
527
555
  }
528
556
  }
@@ -770,18 +798,6 @@ sap.ui.define([
770
798
  // make headers sticky
771
799
  this._oTable.setSticky([Sticky.ColumnHeaders]);
772
800
  }
773
-
774
- if (this.isTypeahead()) {
775
- if (this._isSingleSelect()) {
776
- this._oTable.setMode(ListMode.SingleSelectMaster);
777
- } else {
778
- this._oTable.setMode(ListMode.MultiSelect);
779
- }
780
- } else if (this._isSingleSelect()) {
781
- this._oTable.setMode(ListMode.SingleSelectLeft);
782
- } else {
783
- this._oTable.setMode(ListMode.MultiSelect);
784
- }
785
801
  }
786
802
  }
787
803
  MTable.prototype.setParent = function(oParent) {
@@ -821,7 +837,6 @@ sap.ui.define([
821
837
  oDefaultFilterBar.attachSearch(_handleSearch, this);
822
838
  }
823
839
  oFilterBar.detachSearch(_handleSearch, this);
824
- this._createDefaultFilterBar(); // TODO: should this be part of FilterableListContent?
825
840
  }
826
841
  }
827
842
 
@@ -903,6 +918,22 @@ sap.ui.define([
903
918
  return true;
904
919
  };
905
920
 
921
+ MTable.prototype._isSingleSelect = function() {
922
+
923
+ // use selection mode of table if set
924
+ var oTable = this._getTable();
925
+ if (oTable) {
926
+ if (oTable.getMode() === ListMode.MultiSelect) {
927
+ return false;
928
+ } else {
929
+ return true;
930
+ }
931
+ } else {
932
+ return FilterableListContent.prototype._isSingleSelect.apply(this, arguments);
933
+ }
934
+
935
+ };
936
+
906
937
  MTable.prototype.exit = function () {
907
938
 
908
939
  Common.cleanup(this, [
@@ -5,7 +5,9 @@ sap.ui.define([
5
5
  "sap/ui/test/Opa5",
6
6
  "test-resources/sap/ui/mdc/testutils/opa/table/TestObjects",
7
7
  "test-resources/sap/ui/mdc/testutils/opa/filterbar/TestObjects",
8
- "test-resources/sap/ui/mdc/testutils/opa/chartNew/TestObjects"
8
+ "test-resources/sap/ui/mdc/testutils/opa/chart/TestObjects",
9
+ "test-resources/sap/ui/mdc/testutils/opa/link/TestObjects",
10
+ "test-resources/sap/ui/mdc/testutils/opa/valueHelp/TestObjects"
9
11
  ], function() {
10
12
  "use strict";
11
13
  });
@@ -14,11 +14,11 @@ sap.ui.define([
14
14
  *
15
15
  * @extends sap.ui.test.actions.Action
16
16
  * @public
17
- * @alias sap.ui.mdc.ActionToolbarTesting.pages.OpenContextMenu
17
+ * @alias sap.ui.mdc.actions.OpenContextMenu
18
18
  * @author SAP SE
19
19
  * @since 1.96
20
20
  */
21
- var ContextMenu = Action.extend("sap.ui.mdc.ActionToolbarTesting.pages.OpenContextMenu", /** @lends sap.ui.mdc.ActionToolbarTesting.pages.OpenContextMenu.prototype */ {
21
+ var ContextMenu = Action.extend("sap.ui.mdc.actions.OpenContextMenu", /** @lends sap.ui.mdc.actions.OpenContextMenu.prototype */ {
22
22
  metadata : {
23
23
  publicMethods : [ "executeOn" ]
24
24
  },
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  var $ActionDomRef = this.$(oControl);
35
35
 
36
36
  if ($ActionDomRef.length) {
37
- this.oLogger.timestamp("sap.ui.comp.actions.ContextMenu");
37
+ this.oLogger.timestamp("sap.ui.mdc.actions.OpenContextMenu");
38
38
  this.oLogger.debug("Right-clicked the control " + oControl);
39
39
 
40
40
  this._tryOrSimulateFocusin($ActionDomRef, oControl);
@@ -11,10 +11,10 @@ sap.ui.define([
11
11
  var waitForMDCChartWithId = function(sId, oSettings) {
12
12
  return this.waitFor({
13
13
  id: sId,
14
- controlType: "sap.ui.mdc.ChartNew",
15
- success: function(oMDCChartNew) {
14
+ controlType: "sap.ui.mdc.Chart",
15
+ success: function(oMDCChart) {
16
16
  if (oSettings && typeof oSettings.success === "function") {
17
- oSettings.success.call(this, oMDCChartNew);
17
+ oSettings.success.call(this, oMDCChart);
18
18
  }
19
19
  },
20
20
  actions: oSettings.actions ? oSettings.actions : []
@@ -11,7 +11,7 @@ sap.ui.define([
11
11
  //return Opa5.assert.ok(true);
12
12
 
13
13
  return this.waitFor({
14
- controlType: "sap.ui.mdc.ChartNew",
14
+ controlType: "sap.ui.mdc.Chart",
15
15
  check: function(aChart) {
16
16
  return aChart.length === 1;
17
17
  },
@@ -0,0 +1,289 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ sap.ui.define([
5
+ "sap/ui/test/Opa5",
6
+ "./ActionsViz",
7
+ "./AssertionsViz",
8
+ "../p13n/Actions"
9
+ ], function(
10
+ Opa5,
11
+ chartActions,
12
+ chartAssertions,
13
+ p13nActions
14
+ ) {
15
+ "use strict";
16
+
17
+ Opa5.createPageObjects({
18
+ onTheMDCChart: {
19
+ actions: {
20
+ /**
21
+ * @typedef {object} ChartPersonalizationConfiguration
22
+ * @property {string} key Key of the value that is the result of the personalization
23
+ * @property {string} role Role of the given value
24
+ */
25
+ /**
26
+ * OPA5 test action
27
+ * This only works with the new chart personalization
28
+ * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is personalized
29
+ * @param {string} sChartType String containing the type of chart that is displayed
30
+ * @param {ChartPersonalizationConfiguration[]} aConfigurations Array containing the chart personalization configuration objects
31
+ * @returns {Promise} OPA waitFor
32
+ * 1. Opens the personalization dialog of a given chart.
33
+ * 2. Selects a chart type given by <code>sChartType</code>.
34
+ * 3. Executes the given ChartPersonalizationConfigurations.
35
+ * 4. Closes the personalization dialog.
36
+ */
37
+ iPersonalizeChart: function(oChart, sChartType, aConfigurations){
38
+ return p13nActions.iPersonalizeChart.call(this, oChart, sChartType, aConfigurations);
39
+ },
40
+ /**
41
+ * @typedef {object} SortPersonalizationConfiguration
42
+ * @property {string} key Key of the item that is the result of the personalization
43
+ * @property {boolean} descending Determines whether the sort direction is descending
44
+ */
45
+ /**
46
+ * OPA5 test action
47
+ * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is sorted
48
+ * @param {SortPersonalizationConfiguration[]} aConfigurations Array containing the sort personalization configuration objects
49
+ * @returns {Promise} OPA waitFor
50
+ * 1. Opens the personalization dialog of a given chart.
51
+ * 2. Executes the given SortPersonalizationConfiguration.
52
+ * 3. Closes the personalization dialog.
53
+ */
54
+ iPersonalizeSort: function(oChart, aConfigurations) {
55
+ return p13nActions.iPersonalizeSort.call(this, oChart, aConfigurations);
56
+ },
57
+ /**
58
+ * Opa5 test action
59
+ * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is reset
60
+ * @returns {Promise} OPA waitFor
61
+ * 1. Opens the personalization dialog of a given chart.
62
+ * 2. Clicks on the reset personalization button.
63
+ * 3. Confirms the reset dialog.
64
+ * 4. Closes the personalization dialog.
65
+ */
66
+ iResetThePersonalization: function(oChart) {
67
+ return p13nActions.iResetThePersonalization.call(this, oChart);
68
+ },
69
+
70
+ /**
71
+ * OPA5 test action
72
+ * Clicks on the "Zoom In" button in the toolbar of a mdc chart.
73
+ * @param {string} sId The id of the mdc chart
74
+ * @returns {Promise} OPA waitFor
75
+ */
76
+ iClickOnZoomIn : function(sId){
77
+ return chartActions.iClickOnZoomIn.call(this, sId);
78
+ },
79
+
80
+ /**
81
+ * OPA5 test action
82
+ * Clicks on the "Zoom Out" button in the toolbar of a mdc chart.
83
+ * @param {string} sId The id of the mdc chart
84
+ * @returns {Promise} OPA waitFor
85
+ */
86
+ iClickOnZoomOut : function(sId){
87
+ return chartActions.iClickOnZoomOut.call(this, sId);
88
+ },
89
+ /**
90
+ * OPA5 test action
91
+ * Clicks on the "Legend" toggle button in the toolbar of a mdc chart.
92
+ * @param {string} sId The id of the mdc chart
93
+ * @returns {Promise} OPA waitFor
94
+ */
95
+ iClickOnTheLegendToggleButton : function(sId){
96
+ return chartActions.iClickOnTheLegendToggleButton.call(this, sId);
97
+ },
98
+ /**
99
+ * OPA5 test action
100
+ * Clicks on the "Show Details" button in the toolbar of a mdc chart.
101
+ * @param {*} sId The id of the mdc chart
102
+ * @returns {Promise} OPA waitFor
103
+ */
104
+ iClickOnTheSelectionDetailsButton: function(sId){
105
+ return chartActions.iClickOnTheSelectionDetailsButton.call(this, sId);
106
+ },
107
+ /**
108
+ * OPA5 test action
109
+ * Clicks on the "Drilldown" button in the toolbar of a mdc chart.
110
+ * @param {string} sId The id of the mdc chart.
111
+ * @returns {Promise} OPA waitFor
112
+ */
113
+ iClickOnTheDrillDownButton: function(sId){
114
+ return chartActions.iClickOnTheDrillDownButton.call(this, sId);
115
+ },
116
+ /**
117
+ * OPA5 test action
118
+ * Clicks on the "Chart Type" button in the toolbar of a mdc chart.
119
+ * @param {string} sId The id of the mdc chart.
120
+ * @returns {Promise} OPA waitFor
121
+ */
122
+ iClickOnTheChartTypeButton: function(sId){
123
+ return chartActions.iClickOnTheChartTypeButton.apply(this, arguments);
124
+ },
125
+ /**
126
+ * OPA5 test action
127
+ * Clicks on the "Personalisation" button in the toolbar of a mdc chart.
128
+ * @param {string} sId The id of the mdc chart.
129
+ * @returns {Promise} OPA waitFor
130
+ */
131
+ iClickOnThePersonalisationButton: function(sId){
132
+ return chartActions.iClickOnThePersonalisationButton.call(this, sId);
133
+ },
134
+ /**
135
+ * OPA5 test action
136
+ * Selects a specific chart type for a mdc chart in an open chart type popover
137
+ * @param {string} sChartTypeName The name of the chart type
138
+ * @returns {Promise} OPA waitFor
139
+ */
140
+ iSelectChartTypeInPopover: function(sChartTypeName){
141
+ return chartActions.iSelectChartTypeInPopover.call(this, sChartTypeName);
142
+ },
143
+ /**
144
+ * OPA5 test action
145
+ * Clicks on an drill-down breadcrumb with given name for given mdc chart
146
+ * @param {string} sName The name of the breadcrumbs
147
+ * @param {string} sId Id of the mdc chart.
148
+ * @returns {Promise} OPA waitFor
149
+ */
150
+ iClickOnTheBreadcrumbWithName: function(sName, sId){
151
+ return chartActions.iClickOnTheBreadcrumbWithName.call(this, sName, sId);
152
+ },
153
+ /**
154
+ * OPA5 test action
155
+ * Selects a specific dimension to drill-down for a mdc chart in an open chart drill-down popover
156
+ * @param {string} sDrillName Name of the Dimension which should be drilled-down
157
+ * @returns {Promise} OPA waitFor
158
+ */
159
+ iSelectANewDrillDimensionInPopover: function(sDrillName){
160
+ return chartActions.iSelectANewDrillDimensionInPopover.call(this, sDrillName);
161
+ },
162
+ /**
163
+ * OPA5 test action
164
+ * Selects given datapoints on given chart.
165
+ * @param {array} aDataPoints Datapoint objects to select
166
+ * @param {string} sId Id of the mdc chart
167
+ * @returns {Promise} OPA waitFor
168
+ */
169
+ iSelectTheDatapoint: function (aDataPoints, sId){
170
+ return chartActions.iSelectTheDatapoint.call(this, aDataPoints, sId);
171
+ },
172
+ /**
173
+ * OPA5 test action
174
+ * Selectes given categories (dimensions) for the given mdc chart
175
+ * @param {object} oCategories Categories to select
176
+ * @param {string} sId Id of the mdc chart
177
+ * @returns {Promise} OPA waitFor
178
+ */
179
+ iSelectTheCategories: function (oCategories, sId){
180
+ return chartActions.iSelectTheDatapoint.call(this, oCategories, sId);
181
+ },
182
+ /**
183
+ * OPA5 test action
184
+ * Performs a drill-down on the MDC Chart
185
+ * @param {string} sId The id of the MDC Chart.
186
+ * @param {string} sDrillName Name of the Dimension which should be drilled-down.
187
+ * @returns {Promise} OPA waitFor
188
+ */
189
+ iDrillDownInDimension: function(sId, sDrillName) {
190
+ return chartActions.iDrillDownInDimension.call(this, sId, sDrillName);
191
+ },
192
+ /**
193
+ * OPA5 test action
194
+ * Performs a drill-down on the MDC Chart
195
+ * @param {string} sId The id of the MDC Chart
196
+ * @param {string} sChartTypeName Name of the Dimension which should be drilled-down.
197
+ * @returns {Promise} OPA waitFor
198
+ */
199
+ iSelectAChartType: function(sId, sChartTypeName) {
200
+ return chartActions.iSelectAChartType.call(this, sId, sChartTypeName);
201
+ }
202
+
203
+ },
204
+ assertions: {
205
+ /**
206
+ * OPA5 assertion
207
+ * Assertion to check that there is a mdc chart visible on the screen.
208
+ * @returns {Promise} OPA waitFor
209
+ */
210
+ iShouldSeeAChart: function() {
211
+ return chartAssertions.iShouldSeeAChart.call(this);
212
+ },
213
+ /**
214
+ * Assertion to check that there is a legend visible on the screen for given mdc chart.
215
+ * @param {string} sId Id of the chart to be checked for a visible legend
216
+ * @returns {Promise} OPA waitFor
217
+ */
218
+ iShouldSeeALegend: function(sId) {
219
+ return chartAssertions.iShouldSeeALegend.call(this, sId);
220
+ },
221
+ /**
222
+ * Assertion to check that there is no legend visible on the screen for given mdc chart.
223
+ * @param {string} sId Id of the chart to be checked for a visible legend
224
+ * @returns {Promise} OPA waitFor
225
+ */
226
+ iShouldSeeNoLegend: function(sId) {
227
+ return chartAssertions.iShouldSeeNoLegend.call(this, sId);
228
+ },
229
+
230
+ /**
231
+ * Assertion to check that there is a chart type popover visible on the screen.
232
+ * @returns {Promise} OPA waitFor
233
+ */
234
+ iShouldSeeAChartTypePopover: function() {
235
+ return chartAssertions.iShouldSeeAChartTypePopover.call(this);
236
+ },
237
+ /**
238
+ * Assertion to check that there is chart visible with given chart type.
239
+ * @param {string} sChartId Id of the chart to be checked for a chart type
240
+ * @param {string} sChartType Chart type which should be selected for the given chart
241
+ * @returns {Promise} OPA waitFor
242
+ */
243
+ iShouldSeeTheChartWithChartType: function(sChartId, sChartType){
244
+ return chartAssertions.iShouldSeeTheChartWithChartType.call(this, sChartId, sChartType);
245
+ },
246
+ /**
247
+ * Assertion to check that there is a chart with given drillstack visible.
248
+ * @param {array} aCheckDrillStack Drillstack to check for
249
+ * @param {string} sChartId Id of the mdc chart
250
+ * @returns {Promise} OPA waitFor
251
+ */
252
+ iShouldSeeTheDrillStack: function(aCheckDrillStack, sChartId) {
253
+ return chartAssertions.iShouldSeeTheDrillStack.call(this, aCheckDrillStack, sChartId);
254
+ },
255
+ /**
256
+ * Assertion to check that there is a drilldown popover visible.
257
+ * @returns {Promise} OPA waitFor
258
+ */
259
+ iShouldSeeADrillDownPopover: function() {
260
+ return chartAssertions.iShouldSeeADrillDownPopover.call(this);
261
+ },
262
+ /**
263
+ * Assertion to check that there is a drilldown popover visible.
264
+ * @returns {Promise} OPA waitFor
265
+ */
266
+ iShouldSeeADetailsPopover: function() {
267
+ return chartAssertions.iShouldSeeADetailsPopover.call(this);
268
+ },
269
+ /**
270
+ * Assertion to check visible dimensions on the MDC Chart
271
+ * @param {string} sId Id of the MDC Chart
272
+ * @returns {Promise} OPA waitFor
273
+ */
274
+ iShouldSeeVisibleDimensionsInOrder: function(aDimensions, sId) {
275
+ return chartAssertions.iShouldSeeVisibleDimensionsInOrder.call(this, aDimensions, sId);
276
+ },
277
+ /**
278
+ * Assertion to check visible measures on the MDC Chart
279
+ * @param {string} sId Id of the MDC Chart
280
+ * @returns {Promise} OPA waitFor
281
+ */
282
+ iShouldSeeVisibleMeasuresInOrder: function(aMeasures, sId) {
283
+ return chartAssertions.iShouldSeeVisibleMeasuresInOrder.call(this, aMeasures, sId);
284
+ }
285
+ }
286
+ }
287
+ });
288
+
289
+ });