@openui5/sap.ui.mdc 1.102.2 → 1.104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/.reuse/dep5 +17 -0
  2. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  3. package/THIRDPARTY.txt +35 -2
  4. package/package.json +4 -4
  5. package/src/sap/ui/mdc/.library +1 -1
  6. package/src/sap/ui/mdc/ActionToolbar.js +1 -1
  7. package/src/sap/ui/mdc/AggregationBaseDelegate.js +11 -0
  8. package/src/sap/ui/mdc/Chart.js +141 -57
  9. package/src/sap/ui/mdc/ChartDelegate.js +97 -92
  10. package/src/sap/ui/mdc/Control.js +1 -1
  11. package/src/sap/ui/mdc/Element.js +1 -1
  12. package/src/sap/ui/mdc/Field.js +2 -2
  13. package/src/sap/ui/mdc/FilterBar.js +1 -1
  14. package/src/sap/ui/mdc/FilterField.js +2 -2
  15. package/src/sap/ui/mdc/Link.js +77 -12
  16. package/src/sap/ui/mdc/LinkDelegate.js +81 -76
  17. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  18. package/src/sap/ui/mdc/Table.js +7 -1
  19. package/src/sap/ui/mdc/ValueHelp.js +1 -19
  20. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -1
  21. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
  22. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -2
  23. package/src/sap/ui/mdc/chart/ChartToolbar.js +43 -5
  24. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +6 -2
  25. package/src/sap/ui/mdc/chart/Item.js +6 -11
  26. package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -8
  27. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -3
  28. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  29. package/src/sap/ui/mdc/condition/ConditionConverter.js +16 -131
  30. package/src/sap/ui/mdc/condition/ConditionModel.js +50 -21
  31. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  32. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +3 -3
  33. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  34. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
  35. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  36. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +18 -4
  37. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +53 -0
  38. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +3 -0
  39. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +9 -4
  40. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +3 -1
  41. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  42. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  43. package/src/sap/ui/mdc/field/ConditionType.js +135 -39
  44. package/src/sap/ui/mdc/field/ConditionsType.js +71 -10
  45. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
  46. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  47. package/src/sap/ui/mdc/field/DefineConditionPanel.js +93 -81
  48. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
  49. package/src/sap/ui/mdc/field/FieldBase.js +94 -74
  50. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +20 -1
  51. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -39
  52. package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -21
  53. package/src/sap/ui/mdc/field/FieldInput.js +2 -2
  54. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  55. package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
  56. package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
  57. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -19
  58. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  59. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
  60. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
  61. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
  62. package/src/sap/ui/mdc/field/InParameter.js +1 -4
  63. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  64. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  65. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  66. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  67. package/src/sap/ui/mdc/field/TokenDisplay.js +2 -2
  68. package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
  69. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -5
  70. package/src/sap/ui/mdc/field/content/DateTimeContent.js +1 -1
  71. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -4
  72. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
  73. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  74. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
  75. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  76. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +80 -4
  77. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +19 -38
  78. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  79. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +23 -41
  80. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +43 -58
  81. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  82. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  83. package/src/sap/ui/mdc/flexibility/GroupFlex.js +25 -55
  84. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +38 -57
  85. package/src/sap/ui/mdc/flexibility/SortFlex.js +23 -52
  86. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +3 -3
  87. package/src/sap/ui/mdc/flexibility/Util.js +82 -0
  88. package/src/sap/ui/mdc/flexibility/xConfigFlex.js +137 -0
  89. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +3 -1
  90. package/src/sap/ui/mdc/library.js +4 -15
  91. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  92. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  93. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  94. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  95. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  96. package/src/sap/ui/mdc/link/Factory.js +1 -1
  97. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  98. package/src/sap/ui/mdc/link/LinkItem.js +9 -1
  99. package/src/sap/ui/mdc/link/Panel.js +26 -11
  100. package/src/sap/ui/mdc/link/PanelItem.js +10 -1
  101. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  102. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  103. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  104. package/src/sap/ui/mdc/messagebundle.properties +16 -2
  105. package/src/sap/ui/mdc/messagebundle_ar.properties +12 -2
  106. package/src/sap/ui/mdc/messagebundle_bg.properties +12 -2
  107. package/src/sap/ui/mdc/messagebundle_ca.properties +12 -2
  108. package/src/sap/ui/mdc/messagebundle_cs.properties +15 -5
  109. package/src/sap/ui/mdc/messagebundle_cy.properties +12 -2
  110. package/src/sap/ui/mdc/messagebundle_da.properties +12 -2
  111. package/src/sap/ui/mdc/messagebundle_de.properties +12 -2
  112. package/src/sap/ui/mdc/messagebundle_el.properties +24 -14
  113. package/src/sap/ui/mdc/messagebundle_en.properties +12 -2
  114. package/src/sap/ui/mdc/messagebundle_en_GB.properties +12 -2
  115. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +12 -2
  116. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +12 -2
  117. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +12 -2
  118. package/src/sap/ui/mdc/messagebundle_es.properties +18 -8
  119. package/src/sap/ui/mdc/messagebundle_es_MX.properties +12 -2
  120. package/src/sap/ui/mdc/messagebundle_et.properties +12 -2
  121. package/src/sap/ui/mdc/messagebundle_fi.properties +12 -2
  122. package/src/sap/ui/mdc/messagebundle_fr.properties +14 -4
  123. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +12 -2
  124. package/src/sap/ui/mdc/messagebundle_hi.properties +12 -2
  125. package/src/sap/ui/mdc/messagebundle_hr.properties +15 -5
  126. package/src/sap/ui/mdc/messagebundle_hu.properties +13 -3
  127. package/src/sap/ui/mdc/messagebundle_id.properties +12 -2
  128. package/src/sap/ui/mdc/messagebundle_it.properties +57 -47
  129. package/src/sap/ui/mdc/messagebundle_iw.properties +12 -2
  130. package/src/sap/ui/mdc/messagebundle_ja.properties +12 -2
  131. package/src/sap/ui/mdc/messagebundle_kk.properties +12 -2
  132. package/src/sap/ui/mdc/messagebundle_ko.properties +14 -4
  133. package/src/sap/ui/mdc/messagebundle_lt.properties +12 -2
  134. package/src/sap/ui/mdc/messagebundle_lv.properties +12 -2
  135. package/src/sap/ui/mdc/messagebundle_ms.properties +12 -2
  136. package/src/sap/ui/mdc/messagebundle_nl.properties +26 -16
  137. package/src/sap/ui/mdc/messagebundle_no.properties +12 -2
  138. package/src/sap/ui/mdc/messagebundle_pl.properties +12 -2
  139. package/src/sap/ui/mdc/messagebundle_pt.properties +16 -6
  140. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +12 -2
  141. package/src/sap/ui/mdc/messagebundle_ro.properties +12 -2
  142. package/src/sap/ui/mdc/messagebundle_ru.properties +12 -2
  143. package/src/sap/ui/mdc/messagebundle_sh.properties +13 -3
  144. package/src/sap/ui/mdc/messagebundle_sk.properties +12 -2
  145. package/src/sap/ui/mdc/messagebundle_sl.properties +12 -2
  146. package/src/sap/ui/mdc/messagebundle_sv.properties +12 -2
  147. package/src/sap/ui/mdc/messagebundle_th.properties +17 -7
  148. package/src/sap/ui/mdc/messagebundle_tr.properties +12 -2
  149. package/src/sap/ui/mdc/messagebundle_uk.properties +12 -2
  150. package/src/sap/ui/mdc/messagebundle_vi.properties +12 -2
  151. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +12 -2
  152. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +13 -3
  153. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  154. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  155. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  156. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  157. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  158. package/src/sap/ui/mdc/odata/TypeUtil.js +24 -2
  159. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +5 -5
  160. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +6 -0
  161. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +15 -28
  162. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +6 -6
  163. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +0 -33
  164. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +360 -152
  165. package/src/sap/ui/mdc/p13n/Engine.js +1 -1
  166. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -0
  167. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  168. package/src/sap/ui/mdc/p13n/StateUtil.js +1 -1
  169. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  170. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  171. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +133 -0
  172. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -7
  173. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +31 -6
  174. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +7 -32
  175. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +12 -4
  176. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
  177. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  178. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +24 -28
  179. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  180. package/src/sap/ui/mdc/table/PropertyHelper.js +30 -32
  181. package/src/sap/ui/mdc/table/ResponsiveTableType.js +2 -1
  182. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  183. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  184. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -7
  185. package/src/sap/ui/mdc/table/menu/Item.js +3 -3
  186. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
  187. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +5 -0
  188. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  189. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  190. package/src/sap/ui/mdc/util/PropertyHelper.js +49 -51
  191. package/src/sap/ui/mdc/util/TypeUtil.js +105 -17
  192. package/src/sap/ui/mdc/valuehelp/Dialog.js +97 -30
  193. package/src/sap/ui/mdc/valuehelp/Popover.js +48 -7
  194. package/src/sap/ui/mdc/valuehelp/base/Container.js +37 -28
  195. package/src/sap/ui/mdc/valuehelp/base/Content.js +39 -21
  196. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +5 -5
  197. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +41 -34
  198. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
  199. package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
  200. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +11 -3
  201. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
  202. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +25 -3
  203. package/src/sap/ui/mdc/valuehelp/content/MTable.js +3 -3
  204. package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
  205. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +4 -1
  206. package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
  207. package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
  208. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
  209. package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +413 -0
  210. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +320 -264
  211. package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
  212. package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +40 -0
  213. package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
  214. package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
  215. package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
  216. package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
  217. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
  218. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
  219. package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
  220. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +79 -13
  221. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
  222. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
  223. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
  224. package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
  225. package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
  226. package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
  227. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
  228. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
  229. package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
  230. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
  231. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +34 -82
  232. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
  233. package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
  234. package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +205 -0
  235. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +138 -9
  236. package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
  237. package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
  238. package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
  239. package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
  240. package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
  241. package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
  242. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
  243. package/test/sap/ui/mdc/testutils/opa/variant/Actions.js +124 -0
  244. package/test/sap/ui/mdc/testutils/opa/variant/Assertions.js +48 -0
  245. package/test/sap/ui/mdc/testutils/opa/variant/JSDoc.md +84 -0
  246. package/test/sap/ui/mdc/testutils/opa/variant/TestObjects.js +95 -0
  247. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManager.js +43 -0
  248. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerButton.js +45 -0
  249. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerItem.js +54 -0
  250. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerOverlay.js +44 -0
  251. package/ui5.yaml +4 -1
  252. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +0 -139
  253. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
  254. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
  255. package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
  256. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
@@ -14,8 +14,11 @@ sap.ui.define([
14
14
  ) {
15
15
  "use strict";
16
16
 
17
+ /**
18
+ * @namespace onTheMDCFilterBar
19
+ */
17
20
  Opa5.createPageObjects({
18
- onFilterBar: {
21
+ onTheMDCFilterBar: {
19
22
  actions: {
20
23
  /**
21
24
  * OPA5 test action
@@ -33,9 +36,11 @@ sap.ui.define([
33
36
  * Closes the personalization dialog.
34
37
  * </li>
35
38
  * </ol>
39
+ * @memberof onTheMDCFilterBar
40
+ * @method iPersonalizeFilter
36
41
  * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code> that is filtered
37
42
  * @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
- * @returns
43
+ * @returns {Promise} OPA waitFor
39
44
  */
40
45
  iPersonalizeFilter: function(oFilterBar, oSettings) {
41
46
  return p13nActions.iPersonalizeFilterBar.call(this, oFilterBar, oSettings, filterBarActions.iOpenThePersonalizationDialog);
@@ -56,8 +61,10 @@ sap.ui.define([
56
61
  * Closes the personalization dialog.
57
62
  * </li>
58
63
  * </ol>
64
+ * @memberof onTheMDCFilterBar
65
+ * @method iResetThePersonalization
59
66
  * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
60
- * @returns
67
+ * @returns {Promise} OPA waitFor
61
68
  */
62
69
  iResetThePersonalization: function(oFilterBar) {
63
70
  return p13nActions.iResetThePersonalization.call(this, oFilterBar, filterBarActions.iOpenThePersonalizationDialog);
@@ -65,8 +72,10 @@ sap.ui.define([
65
72
  /**
66
73
  * OPA5 test action
67
74
  * Presses the apply filters button of the <code>FilterBar</code>.
75
+ * @memberof onTheMDCFilterBar
76
+ * @method iExpectSearch
68
77
  * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
69
- * @returns
78
+ * @returns {Promise} OPA waitFor
70
79
  */
71
80
  iExpectSearch: function(oFilterBar) {
72
81
  return filterBarActions.iExpectSearch.call(this, oFilterBar);
@@ -87,9 +96,11 @@ sap.ui.define([
87
96
  * Closes the personalization dialog.
88
97
  * </li>
89
98
  * </ol>
99
+ * @memberof onTheMDCFilterBar
100
+ * @method iEnterFilterValue
90
101
  * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
91
102
  * @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
92
- * @returns
103
+ * @returns {Promise} OPA waitFor
93
104
  */
94
105
  iEnterFilterValue: function(oFilterBar, mSettings) {
95
106
  return filterBarActions.iEnterFilterValue.call(this, oFilterBar, mSettings);
@@ -97,17 +108,38 @@ sap.ui.define([
97
108
  /**
98
109
  * OPA5 test action
99
110
  * Clears all values of a <code>FilterField</code> with a given label on the <code>FilterBar</code>.
111
+ * @memberof onTheMDCFilterBar
112
+ * @method iClearFilterValue
100
113
  * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
101
114
  * @param {string} sFilterLabel Label of the <code>FilterField</code>
102
- * @returns
115
+ * @returns {Promise} OPA waitFor
103
116
  */
104
117
  iClearFilterValue: function(oFilterBar, sFilterLabel) {
105
118
  return filterBarActions.iClearFilterValue.call(this, oFilterBar, sFilterLabel);
106
- }
107
- },
108
- assertions: {
119
+ },
120
+ /**
121
+ * OPA5 test action
122
+ * Changes the view of an open <code>sap.ui.mdc.p13n.panels.AdaptFiltersPanel</code> to the given view mode.
123
+ * @param {string} sViewMode The view mode
124
+ * @returns {Promise} OPA waitFor
125
+ */
126
+ iChangeAdaptFiltersView: function(sViewMode) {
127
+ return filterBarActions.iChangeAdaptFiltersView.apply(this, arguments);
128
+ },
109
129
  /**
110
130
  * OPA5 test action
131
+ * Checks if there is a button visible on the application with the adopt filters icon and presses that given button.
132
+ * @memberof onTheMDCFilterBar
133
+ * @method iPressOnTheAdaptFiltersButton
134
+ * @returns {Promise} OPA waitFor
135
+ */
136
+ iPressOnTheAdaptFiltersButton: function() {
137
+ return filterBarActions.iPressOnTheAdaptFiltersButton.apply(this, arguments);
138
+ }
139
+ },
140
+ assertions: {
141
+ /**
142
+ * OPA5 test assertion
111
143
  * Checks if given <code>FilterFields</code> are displayed on a given <code>FilterBar</code>.
112
144
  * Depending on the <code>vSettings</code> type this function can be used in two different ways:
113
145
  * <ul>
@@ -122,15 +154,49 @@ sap.ui.define([
122
154
  * If the value is an empty array, the given <code>FilterFields</code> doesn't have a value.
123
155
  * </li>
124
156
  * </ul>
157
+ * @memberof onTheMDCFilterBar
158
+ * @method iShouldSeeFilters
125
159
  * @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
126
- * @param {string[] | Object} vSettings
127
- * @returns
160
+ * @param {string[] | Object} vSettings Settings in which the expected filters are defined
161
+ * @returns {Promise} OPA waitFor
128
162
  */
129
163
  iShouldSeeFilters: function(oFilterBar, vSettings) {
130
164
  return filterBarAssertions.iShouldSeeFilters.call(this, oFilterBar, vSettings);
165
+ },
166
+
167
+ /**
168
+ * OPA5 test assertion
169
+ * Checks if there is a <code>FilterBar</code> visible on the application.
170
+ * @memberof onTheMDCFilterBar
171
+ * @method iShouldSeeTheFilterBar
172
+ * @returns {Promise} OPA waitFor
173
+ */
174
+ iShouldSeeTheFilterBar: function() {
175
+ return filterBarAssertions.iShouldSeeTheFilterBar.apply(this, arguments);
176
+ },
177
+ /**
178
+ * OPA5 test assertion
179
+ * Checks if there are <code>FilterFields</code> visible on the application with given labels.
180
+ * @memberof onTheMDCFilterBar
181
+ * @method iShouldSeeTheFilterFieldsWithLabels
182
+ * @param {string[]} aLabelNames Array containing the labels of the expected <code>FilterFields</code>
183
+ * @returns {Promise} OPA waitFor
184
+ */
185
+ iShouldSeeTheFilterFieldsWithLabels: function(aLabelNames) {
186
+ return filterBarAssertions.iShouldSeeTheFilterFieldsWithLabels.apply(this, arguments);
187
+ },
188
+ /**
189
+ * OPA5 test assertion
190
+ * Checks if there is a button visible on the application with the adopt filters icon.
191
+ * @memberof onTheMDCFilterBar
192
+ * @method iShouldSeeTheAdaptFiltersButton
193
+ * @returns {Promise} OPA waitFor
194
+ */
195
+ iShouldSeeTheAdaptFiltersButton: function() {
196
+ return filterBarAssertions.iShouldSeeTheAdaptFiltersButton.apply(this, arguments);
131
197
  }
132
198
  }
133
- }
134
- });
199
+ }
200
+ });
135
201
 
136
202
  });
@@ -0,0 +1,47 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5",
7
+ "../Utils"
8
+ ], function(
9
+ Opa5,
10
+ TestUtils
11
+ ) {
12
+ "use strict";
13
+
14
+ return function waitForAdaptFiltersButton(oSettings) {
15
+ oSettings = oSettings || {};
16
+ var sAdaptFiltersResourceBundleButtonText = TestUtils.getTextFromResourceBundle("sap.ui.mdc", "filterbar.ADAPT");
17
+ return this.waitFor({
18
+ controlType: "sap.m.Button",
19
+ properties: {
20
+ text: {
21
+ regex: {
22
+ source: sAdaptFiltersResourceBundleButtonText + "*",
23
+ flags: "ig"
24
+ }
25
+ }
26
+ },
27
+ matchers: {
28
+ ancestor: {
29
+ controlType: "sap.ui.mdc.FilterBar",
30
+ properties: {
31
+ showAdaptFiltersButton: true
32
+ }
33
+ }
34
+ },
35
+ actions: oSettings.actions,
36
+ success: function(aAdaptFiltersButton) {
37
+ Opa5.assert.strictEqual(aAdaptFiltersButton.length, 1, 'The "Adapt Filters" button was found');
38
+
39
+ if (typeof oSettings.success === "function") {
40
+ var oAdaptFiltersButton = aAdaptFiltersButton[0];
41
+ oSettings.success.call(this, oAdaptFiltersButton);
42
+ }
43
+ },
44
+ errorMessage: 'The "Adapt Filters" button was not found'
45
+ });
46
+ };
47
+ });
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5"
7
+ ], function(
8
+ Opa5
9
+ ) {
10
+ "use strict";
11
+
12
+ return function waitForFilterBar(oSettings) {
13
+ oSettings = oSettings || {};
14
+
15
+ return this.waitFor({
16
+ controlType: "sap.ui.mdc.FilterBar",
17
+ success: function(aFilterBar) {
18
+ Opa5.assert.strictEqual(aFilterBar.length, 1, "The FilterBar control was found");
19
+
20
+ if (typeof oSettings.success === "function") {
21
+ var oFilterBar = aFilterBar[0];
22
+ oSettings.success.call(this, oFilterBar);
23
+ }
24
+ },
25
+ errorMessage: "The FilterBar control was not found"
26
+ });
27
+ };
28
+ });
@@ -0,0 +1,70 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5",
7
+ "sap/ui/test/actions/EnterText",
8
+ "sap/ui/test/actions/Press",
9
+ "./waitForFilterField",
10
+ "./waitForFilterFieldValueHelpButton",
11
+ "sap/ui/events/KeyCodes"
12
+ ], function(
13
+ Opa5,
14
+ EnterText,
15
+ Press,
16
+ waitForFilterField,
17
+ waitForFilterFieldValueHelpButton,
18
+ KeyCodes
19
+ ) {
20
+ "use strict";
21
+
22
+
23
+ var Opa5Utils = Opa5.getUtils();
24
+
25
+ return {
26
+ iEnterTextOnTheFilterField: function(sLabelName, sValue, oConfig) {
27
+ return waitForFilterField.call(this, {
28
+ properties: {
29
+ label: sLabelName
30
+ },
31
+ actions: new EnterText(oConfig ? {
32
+ text: sValue
33
+ } : Object.assign({
34
+ text: sValue
35
+ }), oConfig ),
36
+ success: function(oFilterField) {
37
+ Opa5.assert.ok(true, 'The text "' + sValue + '" was entered into the filter field');
38
+ },
39
+ errorMessage: 'The text "' + sValue + '" could not be entered into the filter field'
40
+ });
41
+ },
42
+
43
+ iPressKeyOnFilterFieldWithLabel: function(sLabelName, sValue) {
44
+ return waitForFilterField.call(this, {
45
+ properties: {
46
+ label: sLabelName
47
+ },
48
+ success: function(oFilterField) {
49
+ var oContent = oFilterField.getAggregation("_content")[0];
50
+ Opa5Utils.triggerKeydown(oContent.getDomRef(), KeyCodes[sValue]);
51
+ Opa5.assert.ok(oContent, "Key '" + sValue + "' pressed on FilterField with label '" + sLabelName + "'");
52
+ },
53
+ errorMessage: 'The key "' + sValue + " could not be pressed on the FilterField with label '" + sLabelName + "'"
54
+ });
55
+ },
56
+
57
+ iPressOnTheFilterFieldValueHelpButton: function(sLabelName) {
58
+ return waitForFilterFieldValueHelpButton.call(this, {
59
+ properties: {
60
+ label: sLabelName
61
+ },
62
+ actions: new Press(),
63
+ success: function(oValueHelpIconButton) {
64
+ Opa5.assert.ok(oValueHelpIconButton, "The filter field value help button was pressed");
65
+ },
66
+ errorMessage: "The filter field value help button could not be press"
67
+ });
68
+ }
69
+ };
70
+ });
@@ -0,0 +1,87 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5",
7
+ "sap/ui/test/matchers/Ancestor",
8
+ "sap/base/util/deepEqual",
9
+ "./waitForFilterField"
10
+ ], function(
11
+ Opa5,
12
+ Ancestor,
13
+ deepEqual,
14
+ waitForFilterField
15
+ ) {
16
+ "use strict";
17
+
18
+ return {
19
+
20
+ iShouldSeeTheFilterFieldWithValues: function(sLabelName, oValues) {
21
+ return waitForFilterField.call(this, {
22
+ properties: {
23
+ label: sLabelName
24
+ },
25
+ check: function(aFilterFields) {
26
+ var oFilterField = aFilterFields[0];
27
+ var aConditions = oValues.conditions || [];
28
+ return deepEqual(oFilterField.getConditions(), aConditions);
29
+ },
30
+ success: onFilterFieldWithExpectedConditionsFound,
31
+ errorMessage: "The filter field stores the unexpected conditions"
32
+ });
33
+
34
+ function onFilterFieldWithExpectedConditionsFound(oFilterField) {
35
+ var sConditionMessage = 'The expected conditions are stored for the filter field labeled as "' + sLabelName + '"';
36
+ Opa5.assert.ok(true, sConditionMessage);
37
+
38
+ if (!Array.isArray(oValues.formattedValues)) {
39
+ return;
40
+ }
41
+
42
+ oValues.formattedValues.forEach(function(sValue) {
43
+ var sFormattedValueMessage = 'The expected value "' + sValue + '" is displayed into the filter field labeled as "' + sLabelName + '"';
44
+
45
+ if (sValue === "") {
46
+ Opa5.assert.ok(true, sFormattedValueMessage);
47
+ return;
48
+ }
49
+
50
+ var sControlType;
51
+
52
+ switch (oFilterField.getEditMode()) {
53
+ case "Display":
54
+ sControlType = "sap.m.Text";
55
+ break;
56
+
57
+ // extend to more edit modes as required
58
+
59
+ default:
60
+ sControlType = "sap.m.Token";
61
+ break;
62
+ }
63
+
64
+ this.waitFor({
65
+ controlType: sControlType,
66
+
67
+ // If the available space is limited, the MultiInput control
68
+ // renders the conditions as invisible tokens. Therefore,
69
+ // to make the test robust, visible and invisible tokens must
70
+ // be taken into consideration.
71
+ visible: false, // look for visible and invisible tokens
72
+
73
+ properties: {
74
+ text: sValue
75
+ },
76
+ matchers: new Ancestor(oFilterField),
77
+ success: function() {
78
+ Opa5.assert.ok(true, sFormattedValueMessage);
79
+ },
80
+ errorMessage: 'The filter filed displays the unexpected value "' + sValue + '"'
81
+ });
82
+ }, this);
83
+ }
84
+ }
85
+ };
86
+ });
87
+
@@ -0,0 +1,63 @@
1
+ <a name="onTheMDCFilterField"></a>
2
+
3
+ ## onTheMDCFilterField : <code>object</code>
4
+ **Kind**: global namespace
5
+
6
+ * [onTheMDCFilterField](#onTheMDCFilterField) : <code>object</code>
7
+ * [.iEnterTextOnTheFilterField(sLabelName, sValue, oConfig)](#onTheMDCFilterField.iEnterTextOnTheFilterField) ⇒ <code>Promise</code>
8
+ * [.iPressKeyOnFilterFieldWithLabel(sLabelName, sValue)](#onTheMDCFilterField.iPressKeyOnFilterFieldWithLabel) ⇒ <code>Promise</code>
9
+ * [.iPressOnTheFilterFieldValueHelpButton(sLabelName)](#onTheMDCFilterField.iPressOnTheFilterFieldValueHelpButton) ⇒ <code>Promise</code>
10
+ * [.iShouldSeeTheFilterFieldWithValues(sLabelName, oValues)](#onTheMDCFilterField.iShouldSeeTheFilterFieldWithValues) ⇒ <code>Promise</code>
11
+
12
+ <a name="onTheMDCFilterField.iEnterTextOnTheFilterField"></a>
13
+
14
+ ### onTheMDCFilterField.iEnterTextOnTheFilterField(sLabelName, sValue, oConfig) ⇒ <code>Promise</code>
15
+ OPA5 test action
16
+
17
+ **Kind**: static method of [<code>onTheMDCFilterField</code>](#onTheMDCFilterField)
18
+ **Returns**: <code>Promise</code> - OPA waitFor
19
+
20
+ | Param | Type | Description |
21
+ | --- | --- | --- |
22
+ | sLabelName | <code>string</code> | Label of the given <code>FilterField</code> |
23
+ | sValue | <code>string</code> | Value which is to be entered in the <code>FilterField</code> |
24
+ | oConfig | <code>object</code> | TODO: to be clarified |
25
+
26
+ <a name="onTheMDCFilterField.iPressKeyOnFilterFieldWithLabel"></a>
27
+
28
+ ### onTheMDCFilterField.iPressKeyOnFilterFieldWithLabel(sLabelName, sValue) ⇒ <code>Promise</code>
29
+ OPA5 test action
30
+
31
+ **Kind**: static method of [<code>onTheMDCFilterField</code>](#onTheMDCFilterField)
32
+ **Returns**: <code>Promise</code> - OPA waitFor
33
+
34
+ | Param | Type | Description |
35
+ | --- | --- | --- |
36
+ | sLabelName | <code>string</code> | Label of the given <code>FilterField</code> |
37
+ | sValue | <code>string</code> | Value of the Keycode which is to be pressed |
38
+
39
+ <a name="onTheMDCFilterField.iPressOnTheFilterFieldValueHelpButton"></a>
40
+
41
+ ### onTheMDCFilterField.iPressOnTheFilterFieldValueHelpButton(sLabelName) ⇒ <code>Promise</code>
42
+ OPA5 test action
43
+
44
+ **Kind**: static method of [<code>onTheMDCFilterField</code>](#onTheMDCFilterField)
45
+ **Returns**: <code>Promise</code> - OPA waitFor
46
+
47
+ | Param | Type | Description |
48
+ | --- | --- | --- |
49
+ | sLabelName | <code>string</code> | Label of the given <code>FilterField</code> |
50
+
51
+ <a name="onTheMDCFilterField.iShouldSeeTheFilterFieldWithValues"></a>
52
+
53
+ ### onTheMDCFilterField.iShouldSeeTheFilterFieldWithValues(sLabelName, oValues) ⇒ <code>Promise</code>
54
+ OPA5 test assertion
55
+
56
+ **Kind**: static method of [<code>onTheMDCFilterField</code>](#onTheMDCFilterField)
57
+ **Returns**: <code>Promise</code> - OPA waitFor
58
+
59
+ | Param | Type | Description |
60
+ | --- | --- | --- |
61
+ | sLabelName | <code>string</code> | Label of the given <code>FilterField</code> |
62
+ | oValues | <code>object</code> | Expected values |
63
+
@@ -0,0 +1,71 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ sap.ui.define([
5
+ "sap/ui/test/Opa5",
6
+ "./Actions",
7
+ "./Assertions"
8
+ ], function(
9
+ Opa5,
10
+ fieldActions,
11
+ fieldAssertions
12
+ ) {
13
+ "use strict";
14
+
15
+ /**
16
+ * @namespace onTheMDCFilterField
17
+ */
18
+ Opa5.createPageObjects({
19
+ onTheMDCFilterField: {
20
+ actions: {
21
+ /**
22
+ * OPA5 test action
23
+ * @memberof onTheMDCFilterField
24
+ * @method iEnterTextOnTheFilterField
25
+ * @param {string} sLabelName Label of the given <code>FilterField</code>
26
+ * @param {string} sValue Value which is to be entered in the <code>FilterField</code>
27
+ * @param {object} oConfig TODO: to be clarified
28
+ * @returns {Promise} OPA waitFor
29
+ */
30
+ iEnterTextOnTheFilterField: function(sLabelName, sValue, oConfig) {
31
+ return fieldActions.iEnterTextOnTheFilterField.apply(this, arguments);
32
+ },
33
+ /**
34
+ * OPA5 test action
35
+ * @memberof onTheMDCFilterField
36
+ * @method iPressKeyOnFilterFieldWithLabel
37
+ * @param {string} sLabelName Label of the given <code>FilterField</code>
38
+ * @param {string} sValue Value of the Keycode which is to be pressed
39
+ * @returns {Promise} OPA waitFor
40
+ */
41
+ iPressKeyOnFilterFieldWithLabel: function(sLabelName, sValue) {
42
+ return fieldActions.iPressKeyOnFilterFieldWithLabel.apply(this, arguments);
43
+ },
44
+ /**
45
+ * OPA5 test action
46
+ * @memberof onTheMDCFilterField
47
+ * @method iPressOnTheFilterFieldValueHelpButton
48
+ * @param {string} sLabelName Label of the given <code>FilterField</code>
49
+ * @returns {Promise} OPA waitFor
50
+ */
51
+ iPressOnTheFilterFieldValueHelpButton: function(sLabelName) {
52
+ return fieldActions.iPressOnTheFilterFieldValueHelpButton.apply(this, arguments);
53
+ }
54
+ },
55
+ assertions: {
56
+ /**
57
+ * OPA5 test assertion
58
+ * @memberof onTheMDCFilterField
59
+ * @method iShouldSeeTheFilterFieldWithValues
60
+ * @param {string} sLabelName Label of the given <code>FilterField</code>
61
+ * @param {object} oValues Expected values
62
+ * @returns {Promise} OPA waitFor
63
+ */
64
+ iShouldSeeTheFilterFieldWithValues: function(sLabelName, oValues) {
65
+ return fieldAssertions.iShouldSeeTheFilterFieldWithValues.call(this, sLabelName, oValues);
66
+ }
67
+ }
68
+ }
69
+ });
70
+
71
+ });
@@ -0,0 +1,36 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5"
7
+ ], function(
8
+ Opa5
9
+ ) {
10
+ "use strict";
11
+
12
+ return function waitForFilterField(oSettings) {
13
+ oSettings = oSettings || {};
14
+
15
+ return this.waitFor({
16
+ controlType: "sap.ui.mdc.FilterField",
17
+ properties: oSettings.properties,
18
+ // matchers: {
19
+ // ancestor: {
20
+ // controlType: "sap.ui.mdc.FilterBar"
21
+ // }
22
+ // },
23
+ actions: oSettings.actions,
24
+ check: oSettings.check,
25
+ success: function(aFilterFields) {
26
+ Opa5.assert.strictEqual(aFilterFields.length, 1, "The filter field was found");
27
+
28
+ if (typeof oSettings.success === "function") {
29
+ var oFilterField = aFilterFields[0];
30
+ oSettings.success.call(this, oFilterField);
31
+ }
32
+ },
33
+ errorMessage: "The filter field was not found"
34
+ });
35
+ };
36
+ });
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+
5
+ sap.ui.define([
6
+ "sap/ui/test/Opa5",
7
+ "sap/ui/test/matchers/Ancestor",
8
+ "./waitForFilterField"
9
+ ], function(
10
+ Opa5,
11
+ Ancestor,
12
+ waitForFilterField
13
+ ) {
14
+ "use strict";
15
+
16
+ return function waitForFilterFieldValueHelpButton(oSettings) {
17
+
18
+ return waitForFilterField.call(this, {
19
+ properties: oSettings.properties,
20
+ success: onFilterFieldFound
21
+ });
22
+
23
+ function onFilterFieldFound(oFilterField) {
24
+ var sValueHelpButtonID = oFilterField.getId() + "-inner-vhi";
25
+
26
+ this.waitFor({
27
+ id: sValueHelpButtonID,
28
+ controlType: "sap.ui.core.Icon",
29
+ matchers: new Ancestor(oFilterField),
30
+ actions: oSettings.actions,
31
+ success: function(oValueHelpIconButton) {
32
+ Opa5.assert.ok(oValueHelpIconButton, "The filter field value help button was found");
33
+
34
+ if (typeof oSettings.success === "function") {
35
+ oSettings.success.call(this, oValueHelpIconButton);
36
+ }
37
+ },
38
+ errorMessage: "The filter field value help button could not be found"
39
+ });
40
+ }
41
+ };
42
+ });