@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
@@ -3,8 +3,8 @@
3
3
  */
4
4
  sap.ui.define([
5
5
  "sap/ui/test/Opa5",
6
- "./ActionsViz",
7
- "./AssertionsViz",
6
+ "../chart/ActionsViz",
7
+ "../chart/AssertionsViz",
8
8
  "../p13n/Actions"
9
9
  ], function(
10
10
  Opa5,
@@ -18,14 +18,14 @@ sap.ui.define([
18
18
  onTheMDCChart: {
19
19
  actions: {
20
20
  /**
21
- * @typedef {Object} ChartPersonalizationConfiguration
21
+ * @typedef {object} ChartPersonalizationConfiguration
22
22
  * @property {string} key Key of the value that is the result of the personalization
23
23
  * @property {string} role Role of the given value
24
24
  */
25
25
  /**
26
26
  * OPA5 test action
27
27
  * This only works with the new chart personalization
28
- * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChartNew</code> that is personalized
28
+ * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is personalized
29
29
  * @param {string} sChartType String containing the type of chart that is displayed
30
30
  * @param {ChartPersonalizationConfiguration[]} aConfigurations Array containing the chart personalization configuration objects
31
31
  * @returns {Promise} OPA waitFor
@@ -38,13 +38,13 @@ sap.ui.define([
38
38
  return p13nActions.iPersonalizeChart.call(this, oChart, sChartType, aConfigurations);
39
39
  },
40
40
  /**
41
- * @typedef {Object} SortPersonalizationConfiguration
41
+ * @typedef {object} SortPersonalizationConfiguration
42
42
  * @property {string} key Key of the item that is the result of the personalization
43
43
  * @property {boolean} descending Determines whether the sort direction is descending
44
44
  */
45
45
  /**
46
46
  * OPA5 test action
47
- * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChartNew</code> that is sorted
47
+ * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is sorted
48
48
  * @param {SortPersonalizationConfiguration[]} aConfigurations Array containing the sort personalization configuration objects
49
49
  * @returns {Promise} OPA waitFor
50
50
  * 1. Opens the personalization dialog of a given chart.
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  },
57
57
  /**
58
58
  * Opa5 test action
59
- * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChartNew</code> that is reset
59
+ * @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is reset
60
60
  * @returns {Promise} OPA waitFor
61
61
  * 1. Opens the personalization dialog of a given chart.
62
62
  * 2. Clicks on the reset personalization button.
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * Closes the personalization dialog.
34
34
  * </li>
35
35
  * </ol>
36
- * @param {sap.ui.core.Control | String} oFilterBar Instance / ID of the <code>FilterBar</code> that is filtered
36
+ * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code> that is filtered
37
37
  * @param {Object} oSettings Map containing the settings for the filter personalization. Key is the label of the given group in the <code>FilterBar</code> personalization dialog, and value is an array containing the labels of the <code>FilterField</code>
38
38
  * @returns
39
39
  */
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * Closes the personalization dialog.
57
57
  * </li>
58
58
  * </ol>
59
- * @param {sap.ui.core.Control | String} oFilterBar Instance / ID of the <code>FilterBar</code>
59
+ * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
60
60
  * @returns
61
61
  */
62
62
  iResetThePersonalization: function(oFilterBar) {
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  /**
66
66
  * OPA5 test action
67
67
  * Presses the apply filters button of the <code>FilterBar</code>.
68
- * @param {sap.ui.core.Control | String} oFilterBar Instance / ID of the <code>FilterBar</code>
68
+ * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
69
69
  * @returns
70
70
  */
71
71
  iExpectSearch: function(oFilterBar) {
@@ -87,8 +87,8 @@ sap.ui.define([
87
87
  * Closes the personalization dialog.
88
88
  * </li>
89
89
  * </ol>
90
- * @param {sap.ui.core.Control | String} oFilterBar Instance / ID of the <code>FilterBar</code>
91
- * @param {String} sFilterLabel Label of the <code>FilterField</code>
90
+ * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
91
+ * @param {string} sFilterLabel Label of the <code>FilterField</code>
92
92
  * @param {Object} mSettings Map containing the settings for the filter values. Key is the label of the given group in the <code>FilterBar</code> personalization dialog, and value is an object containing the label of the <code>FilterField</code> and the values that are entered
93
93
  * @returns
94
94
  */
@@ -98,8 +98,8 @@ sap.ui.define([
98
98
  /**
99
99
  * OPA5 test action
100
100
  * Clears all values of a <code>FilterField</code> with a given label on the <code>FilterBar</code>.
101
- * @param {sap.ui.core.Control | String} oFilterBar Instance / ID of the <code>FilterBar</code>
102
- * @param {String} sFilterLabel Label of the <code>FilterField</code>
101
+ * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
102
+ * @param {string} sFilterLabel Label of the <code>FilterField</code>
103
103
  * @returns
104
104
  */
105
105
  iClearFilterValue: function(oFilterBar, sFilterLabel) {
@@ -123,8 +123,8 @@ sap.ui.define([
123
123
  * If the value is an empty array, the given <code>FilterFields</code> doesn't have a value.
124
124
  * </li>
125
125
  * </ul>
126
- * @param {sap.ui.core.Control | String} oFilterBar Instance / ID of the <code>FilterBar</code>
127
- * @param {String[] | Object} vSettings
126
+ * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
127
+ * @param {string[] | Object} vSettings
128
128
  * @returns
129
129
  */
130
130
  iShouldSeeFilters: function(oFilterBar, vSettings) {
@@ -2,24 +2,25 @@
2
2
  * ! ${copyright}
3
3
  */
4
4
  sap.ui.define([
5
- ], function() {
5
+ "sap/ui/core/Core"
6
+ ], function(oCore) {
6
7
  "use strict";
7
8
 
8
- var oMDCBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
9
- //var oMBundle = sap.ui.getCore().getLibraryResourceBundle("sap.m");
9
+ var oMDCBundle = oCore.getLibraryResourceBundle("sap.ui.mdc");
10
+ //var oMBundle = oCore.getLibraryResourceBundle("sap.m");
10
11
 
11
12
  var Util = {
12
13
 
13
- texts: {
14
- go: oMDCBundle.getText("filterbar.GO")
15
- },
14
+ texts: {
15
+ go: oMDCBundle.getText("filterbar.GO")
16
+ },
16
17
 
17
- icons: {
18
- decline: "sap-icon://decline",
19
- valueHelp: "sap-icon://value-help"
20
- }
18
+ icons: {
19
+ decline: "sap-icon://decline",
20
+ valueHelp: "sap-icon://value-help"
21
+ }
21
22
 
22
- };
23
+ };
23
24
 
24
25
  return Util;
25
26
  });
@@ -0,0 +1,85 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5",
7
+ "sap/ui/test/matchers/Matcher",
8
+ "sap/ui/test/matchers/Properties",
9
+ "sap/ui/test/matchers/Ancestor",
10
+ "sap/ui/test/matchers/Descendant",
11
+ "sap/ui/test/matchers/PropertyStrictEquals",
12
+ "sap/ui/test/actions/Press",
13
+ "sap/ui/test/actions/EnterText",
14
+ "../p13n/Actions",
15
+ "../p13n/Util",
16
+ "./waitForLink"
17
+ ], function(
18
+ Opa5,
19
+ Matcher,
20
+ Properties,
21
+ Ancestor,
22
+ Descendant,
23
+ PropertyStrictEquals,
24
+ Press,
25
+ EnterText,
26
+ p13nActions,
27
+ p13nUtil,
28
+ waitForLink
29
+ ) {
30
+ "use strict";
31
+
32
+ return {
33
+ iPressTheLink: function(oLinkIdentifier) {
34
+ return waitForLink.call(this, oLinkIdentifier, {
35
+ actions: new Press()
36
+ });
37
+ },
38
+ iPressLinkOnPopover: function(oLinkIdentifier, sLink) {
39
+ return waitForLink.call(this, oLinkIdentifier, {
40
+ actions: new Press(),
41
+ success: function() {
42
+ this.waitFor({
43
+ controlType: "sap.ui.mdc.link.Panel",
44
+ success: function(aPanels) {
45
+ Opa5.assert.equal(aPanels.length, 1, "mdc.link.Panel found");
46
+ var oPanel = aPanels[0];
47
+ this.waitFor({
48
+ controlType: "sap.m.Link",
49
+ matchers: [
50
+ new Ancestor(oPanel, false),
51
+ new PropertyStrictEquals({
52
+ name: "text",
53
+ value: sLink
54
+ })
55
+ ],
56
+ actions: new Press(),
57
+ success: function(aLinks) {
58
+ Opa5.assert.equal(aLinks.length, 1, "link on Panel found and pressed");
59
+ }
60
+ });
61
+ }
62
+ });
63
+ }
64
+ });
65
+ },
66
+ iCloseThePopover: function() {
67
+ this.waitFor({
68
+ controlType: "sap.ui.mdc.link.Panel",
69
+ success: function(aPanels) {
70
+ Opa5.assert.equal(aPanels.length, 1, "mdc.link.Panel found");
71
+ var oPanel = aPanels[0];
72
+
73
+ this.waitFor({
74
+ controlType: "sap.m.ResponsivePopover",
75
+ matchers: new Descendant(oPanel),
76
+ success: function(aResponsivePopovers) {
77
+ Opa5.assert.equal(aResponsivePopovers.length, 1, "sap.m.ResponsivePopover found");
78
+ aResponsivePopovers[0].close();
79
+ }
80
+ });
81
+ }
82
+ });
83
+ }
84
+ };
85
+ });
@@ -0,0 +1,79 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5",
7
+ "sap/ui/test/matchers/Matcher",
8
+ "sap/ui/test/matchers/Ancestor",
9
+ "sap/ui/test/matchers/Descendant",
10
+ "./waitForLink"
11
+ ], function(
12
+ Opa5,
13
+ Matcher,
14
+ Ancestor,
15
+ Descendant,
16
+ waitForLink
17
+ ) {
18
+ "use strict";
19
+
20
+ return {
21
+ iShouldSeeAPopover: function(oLinkIdentifier) {
22
+ return waitForLink.call(this, oLinkIdentifier, {
23
+ success: function(oLink) {
24
+ this.waitFor({
25
+ controlType: "sap.ui.mdc.Field",
26
+ matchers: new Descendant(oLink, true),
27
+ success: function(aFields) {
28
+ this.waitFor({
29
+ controlType: "sap.m.Popover",
30
+ matchers: new Ancestor(aFields[0].getFieldInfo(), false),
31
+ success: function(aPopovers) {
32
+ Opa5.assert.equal(aPopovers.length, 1, "Popover of mdc.Link found");
33
+ }
34
+ });
35
+ }
36
+ });
37
+ }
38
+ });
39
+ },
40
+ iShouldSeeLinksOnPopover: function(oLinkIdentifier, aLinks) {
41
+ return waitForLink.call(this, oLinkIdentifier, {
42
+ success: function() {
43
+ this.waitFor({
44
+ controlType: "sap.ui.mdc.link.Panel",
45
+ success: function(aPanels) {
46
+ Opa5.assert.equal(aPanels.length, 1, "mdc.link.Panel found");
47
+ var oPanel = aPanels[0];
48
+ var iIndex = 0;
49
+ var oMatcher = new Matcher();
50
+ oMatcher.isMatching = function(oLink) {
51
+ var bTextMatching = oLink.getText() === aLinks[iIndex];
52
+ iIndex++;
53
+ return bTextMatching;
54
+ };
55
+ if (aLinks.length > 0) {
56
+ this.waitFor({
57
+ controlType: "sap.m.Link",
58
+ matchers: [
59
+ new Ancestor(oPanel, false),
60
+ oMatcher
61
+ ],
62
+ success: function(aLinkControls) {
63
+ Opa5.assert.equal(aLinks.length, aLinkControls.length, aLinks.length + " Links on Popover found");
64
+ }
65
+ });
66
+ } else {
67
+ var aVisibleItems = oPanel.getItems().filter(function(oItem) {
68
+ return oItem.getVisible();
69
+ });
70
+ Opa5.assert.equal(aVisibleItems.length, 0, aVisibleItems.length + " Links on Popover found");
71
+ }
72
+ }
73
+ });
74
+ }
75
+ });
76
+ }
77
+ };
78
+
79
+ });
@@ -0,0 +1,112 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ sap.ui.define([
5
+ "sap/ui/test/Opa5",
6
+ "./Actions",
7
+ "./Assertions",
8
+ "../p13n/Actions",
9
+ "./waitForLink"
10
+ ], function(
11
+ Opa5,
12
+ linkActions,
13
+ linkAssertions,
14
+ p13nActions,
15
+ waitForLink
16
+ ) {
17
+ "use strict";
18
+
19
+ Opa5.createPageObjects({
20
+ onTheMDCLink: {
21
+ actions: {
22
+ /**
23
+ * Object to identify a <code>sap.ui.mdc.Link</code>. Should contain at least one of the following properties: <code>text</code> and <code>id</code>.
24
+ * @typedef {object} LinkIdentifier
25
+ * @property {string} id ID of a given <code>sap.m.Link</code> that represents the <code>sap.ui.mdc.Link</code>
26
+ * @property {string} text Text of a given <code>sap.m.Link</code> that represents the <code>sap.ui.mdc.Link</code>
27
+ */
28
+ /**
29
+ * Opa5 test action
30
+ * @param {LinkIdentifier} oLinkIdentifier The object to identify the <code>sap.ui.mdc.Link</code>
31
+ * @param {string[]} aLinks Array containing the texts of the links that are the result of the personalization
32
+ * @returns {Promise} OPA waitFor
33
+ * 1. Opens the personalization dialog of a given <code>sap.ui.mdc.Link</code>.
34
+ * 2. Selects all links given by <code>aLinks</code> and deselects all other links.
35
+ * 3. Closes the personalization dialog.
36
+ */
37
+ iPersonalizeTheLinks: function(oLinkIdentifier, aLinks) {
38
+ return waitForLink.call(this, oLinkIdentifier, {
39
+ success: function(oLink) {
40
+ p13nActions.iPersonalizeLink.call(this, oLink, aLinks);
41
+ }
42
+ });
43
+ },
44
+ /**
45
+ * Opa5 test action
46
+ * @param {LinkIdentifier} oLinkIdentifier The object to identify the <code>sap.ui.mdc.Link</code> that is reset
47
+ * @returns {Promise} OPA waitFor
48
+ * 1. Opens the personalization dialog of a given <code>sap.ui.mdc.Link</code>.
49
+ * 2. Presses the Reset personalization button.
50
+ * 3. Confirms the Reset dialog.
51
+ * 4. Closes the personalization dialog.
52
+ */
53
+ iResetThePersonalization: function(oLinkIdentifier) {
54
+ return waitForLink.call(this, oLinkIdentifier, {
55
+ success: function(oLink) {
56
+ p13nActions.iResetThePersonalization.call(this, oLink);
57
+ }
58
+ });
59
+ },
60
+ /**
61
+ * Opa5 test action
62
+ * @param {LinkIdentifier} oLinkIdentifier The object to identify the <code>sap.ui.mdc.Link</code> that is pressed
63
+ * @returns {Promise} OPA waitFor
64
+ */
65
+ iPressTheLink: function(oLinkIdentifier) {
66
+ return linkActions.iPressTheLink.call(this, oLinkIdentifier);
67
+ },
68
+ /**
69
+ * Opa5 test action
70
+ * @param {LinkIdentifier} oLinkIdentifier The object to identify the <code>sap.ui.mdc.Link</code> that opens the popover
71
+ * @param {string} sLink The text of the link that is to be clicked on the popover
72
+ * @returns {Promise} OPA waitFor
73
+ * 1. Presses a given <code>sap.ui.mdc.Link</code> to open its popover.
74
+ * 2. Presses a link on the opened popover defined by <code>sLink</code>.
75
+ */
76
+ iPressLinkOnPopover: function(oLinkIdentifier, sLink) {
77
+ return linkActions.iPressLinkOnPopover.call(this, oLinkIdentifier, sLink);
78
+ },
79
+ /**
80
+ * Opa5 test action
81
+ * @returns {Promise} OPA waitFor
82
+ * Closes an open popover of the <code>sap.ui.mdc.Link</code>.
83
+ */
84
+ iCloseThePopover: function() {
85
+ return linkActions.iCloseThePopover.call(this);
86
+ }
87
+ },
88
+ assertions: {
89
+ /**
90
+ * Opa5 test action
91
+ * @param {LinkIdentifier} oLinkIdentifier The object to identify the <code>sap.ui.mdc.Link</code> that opens the popover
92
+ * @returns {Promise} OPA waitFor
93
+ * Creates an assumption that there is an open popover for a given <code>sap.ui.mdc.Link</code>.
94
+ */
95
+ iShouldSeeAPopover: function(oLinkIdentifier) {
96
+ return linkAssertions.iShouldSeeAPopover.call(this, oLinkIdentifier);
97
+ },
98
+ /**
99
+ * Opa5 test action
100
+ * @param {LinkIdentifier} oLinkIdentifier The object to identify the <code>sap.ui.mdc.Link</code> that opens the popover
101
+ * @param {string[]} aLinks Array containing the texts of the links that are visible on the popover
102
+ * @returns {Promise} OPA waitFor
103
+ * Creates an assumption that there is an open popover for a given <code>sap.ui.mdc.Link</code> and checks that all given links defined in <code>aLinks</code> are on that popover in a defined order.
104
+ */
105
+ iShouldSeeLinksOnPopover: function(oLinkIdentifier, aLinks) {
106
+ return linkAssertions.iShouldSeeLinksOnPopover.call(this, oLinkIdentifier, aLinks);
107
+ }
108
+ }
109
+ }
110
+ });
111
+
112
+ });
@@ -0,0 +1,50 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ sap.ui.define([
5
+ "sap/ui/test/Opa5",
6
+ "sap/ui/test/matchers/PropertyStrictEquals"
7
+ ], function(
8
+ Opa5,
9
+ PropertyStrictEquals
10
+ ) {
11
+ "use strict";
12
+
13
+ return function waitForLink(oLinkIdentifier, oSettings) {
14
+ var sText = oLinkIdentifier.text;
15
+ var sId = oLinkIdentifier.id;
16
+ Opa5.assert.ok(sText || sId, "LinkIdentifier correct Text: '" + sText + "' - ID: '" + sId + "'");
17
+ var fnCallSuccess = function(oLink) {
18
+ if (typeof oSettings.success === "function") {
19
+ oSettings.success.call(this, oLink);
20
+ }
21
+ };
22
+
23
+ var oOpaSettings = {
24
+ controlType: "sap.m.Link",
25
+ actions: oSettings.actions
26
+ };
27
+
28
+ if (sText) {
29
+ oOpaSettings.matchers = new PropertyStrictEquals({
30
+ name: "text",
31
+ value: sText
32
+ });
33
+ }
34
+
35
+ if (sId) {
36
+ oOpaSettings.id = sId;
37
+ oOpaSettings.success = function(oLinkControl) {
38
+ Opa5.assert.ok(oLinkControl, "sap.ui.mdc.Link found");
39
+ fnCallSuccess.call(this, oLinkControl);
40
+ };
41
+ } else {
42
+ oOpaSettings.success = function(aLinkControls) {
43
+ Opa5.assert.equal(aLinkControls.length, 1, "sap.ui.mdc.Link found");
44
+ fnCallSuccess.call(this, aLinkControls[0]);
45
+ };
46
+ }
47
+
48
+ return this.waitFor(oOpaSettings);
49
+ };
50
+ });