@openui5/sap.ui.mdc 1.103.1 → 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 (225) 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 +1 -1
  8. package/src/sap/ui/mdc/Chart.js +31 -3
  9. package/src/sap/ui/mdc/Control.js +1 -1
  10. package/src/sap/ui/mdc/Element.js +1 -1
  11. package/src/sap/ui/mdc/Field.js +2 -2
  12. package/src/sap/ui/mdc/FilterBar.js +1 -1
  13. package/src/sap/ui/mdc/FilterField.js +2 -2
  14. package/src/sap/ui/mdc/Link.js +74 -12
  15. package/src/sap/ui/mdc/LinkDelegate.js +81 -76
  16. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  17. package/src/sap/ui/mdc/Table.js +7 -1
  18. package/src/sap/ui/mdc/TableDelegate.js +25 -9
  19. package/src/sap/ui/mdc/ValueHelp.js +1 -1
  20. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
  21. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
  22. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
  23. package/src/sap/ui/mdc/chart/ChartToolbar.js +10 -4
  24. package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
  25. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  26. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  27. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  28. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  29. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
  30. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  31. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
  32. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  33. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +13 -2
  34. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +3 -0
  35. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +3 -1
  36. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  37. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  38. package/src/sap/ui/mdc/field/ConditionType.js +1 -1
  39. package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
  40. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  41. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  42. package/src/sap/ui/mdc/field/DefineConditionPanel.js +1 -1
  43. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
  44. package/src/sap/ui/mdc/field/FieldBase.js +4 -5
  45. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
  46. package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -21
  47. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  48. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  49. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  50. package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
  51. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  52. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  53. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
  54. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
  55. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
  56. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  57. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  58. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  59. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  60. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  61. package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
  62. package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
  63. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  64. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +1 -1
  65. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  66. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
  67. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  68. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  69. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  70. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  71. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +19 -17
  72. package/src/sap/ui/mdc/library.js +2 -2
  73. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  74. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  75. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  76. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  77. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  78. package/src/sap/ui/mdc/link/Factory.js +1 -1
  79. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  80. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  81. package/src/sap/ui/mdc/link/Panel.js +3 -2
  82. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  83. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  84. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  85. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  86. package/src/sap/ui/mdc/messagebundle.properties +7 -3
  87. package/src/sap/ui/mdc/messagebundle_ar.properties +4 -2
  88. package/src/sap/ui/mdc/messagebundle_bg.properties +4 -2
  89. package/src/sap/ui/mdc/messagebundle_ca.properties +4 -2
  90. package/src/sap/ui/mdc/messagebundle_cs.properties +7 -5
  91. package/src/sap/ui/mdc/messagebundle_cy.properties +4 -2
  92. package/src/sap/ui/mdc/messagebundle_da.properties +4 -2
  93. package/src/sap/ui/mdc/messagebundle_de.properties +4 -2
  94. package/src/sap/ui/mdc/messagebundle_el.properties +5 -3
  95. package/src/sap/ui/mdc/messagebundle_en.properties +4 -2
  96. package/src/sap/ui/mdc/messagebundle_en_GB.properties +4 -2
  97. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +4 -2
  98. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +4 -2
  99. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +4 -2
  100. package/src/sap/ui/mdc/messagebundle_es.properties +4 -2
  101. package/src/sap/ui/mdc/messagebundle_es_MX.properties +4 -2
  102. package/src/sap/ui/mdc/messagebundle_et.properties +4 -2
  103. package/src/sap/ui/mdc/messagebundle_fi.properties +4 -2
  104. package/src/sap/ui/mdc/messagebundle_fr.properties +7 -5
  105. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +4 -2
  106. package/src/sap/ui/mdc/messagebundle_hi.properties +4 -2
  107. package/src/sap/ui/mdc/messagebundle_hr.properties +7 -5
  108. package/src/sap/ui/mdc/messagebundle_hu.properties +5 -3
  109. package/src/sap/ui/mdc/messagebundle_id.properties +4 -2
  110. package/src/sap/ui/mdc/messagebundle_it.properties +48 -46
  111. package/src/sap/ui/mdc/messagebundle_iw.properties +5 -3
  112. package/src/sap/ui/mdc/messagebundle_ja.properties +4 -2
  113. package/src/sap/ui/mdc/messagebundle_kk.properties +4 -2
  114. package/src/sap/ui/mdc/messagebundle_ko.properties +4 -2
  115. package/src/sap/ui/mdc/messagebundle_lt.properties +4 -2
  116. package/src/sap/ui/mdc/messagebundle_lv.properties +4 -2
  117. package/src/sap/ui/mdc/messagebundle_ms.properties +4 -2
  118. package/src/sap/ui/mdc/messagebundle_nl.properties +4 -2
  119. package/src/sap/ui/mdc/messagebundle_no.properties +4 -2
  120. package/src/sap/ui/mdc/messagebundle_pl.properties +4 -2
  121. package/src/sap/ui/mdc/messagebundle_pt.properties +4 -2
  122. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +4 -2
  123. package/src/sap/ui/mdc/messagebundle_ro.properties +4 -2
  124. package/src/sap/ui/mdc/messagebundle_ru.properties +4 -2
  125. package/src/sap/ui/mdc/messagebundle_sh.properties +4 -2
  126. package/src/sap/ui/mdc/messagebundle_sk.properties +4 -2
  127. package/src/sap/ui/mdc/messagebundle_sl.properties +4 -2
  128. package/src/sap/ui/mdc/messagebundle_sv.properties +4 -2
  129. package/src/sap/ui/mdc/messagebundle_th.properties +9 -7
  130. package/src/sap/ui/mdc/messagebundle_tr.properties +4 -2
  131. package/src/sap/ui/mdc/messagebundle_uk.properties +4 -2
  132. package/src/sap/ui/mdc/messagebundle_vi.properties +4 -2
  133. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +4 -2
  134. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +4 -2
  135. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  136. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  137. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  138. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  139. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  140. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +1 -1
  141. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +61 -37
  142. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +1 -1
  143. package/src/sap/ui/mdc/p13n/Engine.js +1 -1
  144. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  145. package/src/sap/ui/mdc/p13n/StateUtil.js +1 -1
  146. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  147. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  148. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -7
  149. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +31 -6
  150. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  151. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +2 -1
  152. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  153. package/src/sap/ui/mdc/table/PropertyHelper.js +30 -32
  154. package/src/sap/ui/mdc/table/ResponsiveTableType.js +2 -1
  155. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  156. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  157. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -7
  158. package/src/sap/ui/mdc/table/menu/Item.js +3 -3
  159. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
  160. package/src/sap/ui/mdc/themes/base/InfoPanel.less +0 -1
  161. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  162. package/src/sap/ui/mdc/util/PropertyHelper.js +49 -51
  163. package/src/sap/ui/mdc/valuehelp/Dialog.js +3 -1
  164. package/src/sap/ui/mdc/valuehelp/Popover.js +34 -6
  165. package/src/sap/ui/mdc/valuehelp/base/Container.js +1 -1
  166. package/src/sap/ui/mdc/valuehelp/base/Content.js +1 -1
  167. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
  168. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +1 -1
  169. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
  170. package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
  171. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +1 -1
  172. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
  173. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +25 -3
  174. package/src/sap/ui/mdc/valuehelp/content/MTable.js +2 -2
  175. package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
  176. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +4 -1
  177. package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
  178. package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
  179. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
  180. package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +413 -0
  181. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +320 -264
  182. package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
  183. package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +40 -0
  184. package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
  185. package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
  186. package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
  187. package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
  188. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
  189. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
  190. package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
  191. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +79 -13
  192. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
  193. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
  194. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
  195. package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
  196. package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
  197. package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
  198. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
  199. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
  200. package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
  201. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
  202. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
  203. package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
  204. package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +205 -0
  205. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +138 -9
  206. package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
  207. package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
  208. package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
  209. package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
  210. package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
  211. package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
  212. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
  213. package/test/sap/ui/mdc/testutils/opa/variant/Actions.js +124 -0
  214. package/test/sap/ui/mdc/testutils/opa/variant/Assertions.js +48 -0
  215. package/test/sap/ui/mdc/testutils/opa/variant/JSDoc.md +84 -0
  216. package/test/sap/ui/mdc/testutils/opa/variant/TestObjects.js +95 -0
  217. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManager.js +43 -0
  218. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerButton.js +45 -0
  219. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerItem.js +54 -0
  220. package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerOverlay.js +44 -0
  221. package/ui5.yaml +4 -1
  222. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
  223. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
  224. package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
  225. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
@@ -0,0 +1,50 @@
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
+ "./waitForField",
10
+ "./waitForFieldValueHelpButton"
11
+ ], function(
12
+ Opa5,
13
+ EnterText,
14
+ Press,
15
+ waitForField,
16
+ waitForFieldValueHelpButton
17
+ ) {
18
+ "use strict";
19
+
20
+ return {
21
+ iEnterTextOnTheField: function(sId, sValue) {
22
+ return waitForField.call(this, {
23
+ properties: {
24
+ id: sId
25
+ },
26
+ actions: new EnterText({
27
+ text: sValue
28
+ }),
29
+ success: function(oFilterField) {
30
+ Opa5.assert.ok(true, 'The text "' + sValue + '" was entered into the field');
31
+ },
32
+ errorMessage: 'The text "' + sValue + '" could not be entered into the field'
33
+ });
34
+ },
35
+
36
+ //TODO
37
+ iPressOnTheFieldValueHelpButton: function(sId) {
38
+ return waitForFieldValueHelpButton.call(this, {
39
+ properties: {
40
+ id: sId
41
+ },
42
+ actions: new Press(),
43
+ success: function(oValueHelpIconButton) {
44
+ Opa5.assert.ok(oValueHelpIconButton, "The field value help button was pressed");
45
+ },
46
+ errorMessage: "The field value help button could not be press"
47
+ });
48
+ }
49
+ };
50
+ });
@@ -0,0 +1,40 @@
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
+ "./waitForField"
10
+ ], function(
11
+ Opa5,
12
+ Ancestor,
13
+ deepEqual,
14
+ waitForField
15
+ ) {
16
+ "use strict";
17
+
18
+ return {
19
+
20
+ iShouldSeeTheFieldWithValues: function(sId, oValues) {
21
+ return waitForField.call(this, {
22
+ properties: {
23
+ id: sId
24
+ },
25
+ check: function(aFields) {
26
+ var oField = aFields[0];
27
+ return deepEqual(oField.getValue(), oValues);
28
+ },
29
+ success: onFieldWithExpectedValueFound,
30
+ errorMessage: "The field stores the unexpected value"
31
+ });
32
+
33
+ function onFieldWithExpectedValueFound(oFilterField) {
34
+ var sMessage = 'The expected value are stored for the field with the id "' + sId + '"';
35
+ Opa5.assert.ok(true, sMessage);
36
+ }
37
+ }
38
+ };
39
+ });
40
+
@@ -0,0 +1,37 @@
1
+ <a name="onTheMDCField"></a>
2
+
3
+ ## onTheMDCField : <code>object</code>
4
+ **Kind**: global namespace
5
+
6
+ * [onTheMDCField](#onTheMDCField) : <code>object</code>
7
+ * [.iEnterTextOnTheField(sId, oValue)](#onTheMDCField.iEnterTextOnTheField) ⇒ <code>Promise</code>
8
+ * [.iShouldSeeTheFieldWithValues(sId, oValues)](#onTheMDCField.iShouldSeeTheFieldWithValues) ⇒ <code>Promise</code>
9
+
10
+ <a name="onTheMDCField.iEnterTextOnTheField"></a>
11
+
12
+ ### onTheMDCField.iEnterTextOnTheField(sId, oValue) ⇒ <code>Promise</code>
13
+ Opa5 test action
14
+
15
+ **Kind**: static method of [<code>onTheMDCField</code>](#onTheMDCField)
16
+ **Returns**: <code>Promise</code> - OPA waitFor
17
+ **Access**: public
18
+
19
+ | Param | Type | Description |
20
+ | --- | --- | --- |
21
+ | sId | <code>string</code> | ID of the given <code>Field</code> |
22
+ | oValue | <code>Object</code> | Value which is to be entered in the <code>Field</code> |
23
+
24
+ <a name="onTheMDCField.iShouldSeeTheFieldWithValues"></a>
25
+
26
+ ### onTheMDCField.iShouldSeeTheFieldWithValues(sId, oValues) ⇒ <code>Promise</code>
27
+ Opa5 test assertion
28
+
29
+ **Kind**: static method of [<code>onTheMDCField</code>](#onTheMDCField)
30
+ **Returns**: <code>Promise</code> - OPA waitFor
31
+ **Access**: public
32
+
33
+ | Param | Type | Description |
34
+ | --- | --- | --- |
35
+ | sId | <code>string</code> | ID of the given <code>Field</code> |
36
+ | oValues | <code>object</code> | Values which are expected in the <code>Field</code> |
37
+
@@ -0,0 +1,52 @@
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 onTheMDCField
17
+ */
18
+ Opa5.createPageObjects({
19
+ onTheMDCField: {
20
+ actions: {
21
+ /**
22
+ * Opa5 test action
23
+ * @memberof onTheMDCField
24
+ * @method iEnterTextOnTheField
25
+ * @param {string} sId ID of the given <code>Field</code>
26
+ * @param {Object} oValue Value which is to be entered in the <code>Field</code>
27
+ * @returns {Promise} OPA waitFor
28
+ * @public
29
+ */
30
+ iEnterTextOnTheField: function(sId, oValue) {
31
+ return fieldActions.iEnterTextOnTheField.apply(this, arguments);
32
+ }
33
+ },
34
+ assertions: {
35
+ /**
36
+ * Opa5 test assertion
37
+ * @memberof onTheMDCField
38
+ * @method iShouldSeeTheFieldWithValues
39
+ * @param {string} sId ID of the given <code>Field</code>
40
+ * @param {object} oValues Values which are expected in the <code>Field</code>
41
+ * @returns {Promise} OPA waitFor
42
+ * @public
43
+ */
44
+ iShouldSeeTheFieldWithValues: function(sId, oValues) {
45
+ return fieldAssertions.iShouldSeeTheFieldWithValues.apply(this, arguments);
46
+ }
47
+
48
+ }
49
+ }
50
+ });
51
+
52
+ });
@@ -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 waitForField(oSettings) {
13
+ oSettings = oSettings || {};
14
+
15
+ return this.waitFor({
16
+ controlType: "sap.ui.mdc.Field",
17
+ properties: oSettings.properties,
18
+ matchers: {
19
+ // ancestor: {
20
+ // controlType: "sap.ui.layout.form.SimpleForm" // "sap.ui.mdc.FilterBar"
21
+ // }
22
+ },
23
+ actions: oSettings.actions,
24
+ check: oSettings.check,
25
+ success: function(aFields) {
26
+ Opa5.assert.strictEqual(aFields.length, 1, "The field was found");
27
+
28
+ if (typeof oSettings.success === "function") {
29
+ var oField = aFields[0];
30
+ oSettings.success.call(this, oField);
31
+ }
32
+ },
33
+ errorMessage: "The 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
+ "./waitForField"
9
+ ], function(
10
+ Opa5,
11
+ Ancestor,
12
+ waitForField
13
+ ) {
14
+ "use strict";
15
+
16
+ return function waitForFieldValueHelpButton(oSettings) {
17
+
18
+ return waitForField.call(this, {
19
+ properties: oSettings.properties,
20
+ success: onFieldFound
21
+ });
22
+
23
+ function onFieldFound(oField) {
24
+ var sValueHelpButtonID = oField.getId() + "-inner-vhi";
25
+
26
+ this.waitFor({
27
+ id: sValueHelpButtonID,
28
+ controlType: "sap.ui.core.Icon",
29
+ matchers: new Ancestor(oField),
30
+ actions: oSettings.actions,
31
+ success: function(oValueHelpIconButton) {
32
+ Opa5.assert.ok(oValueHelpIconButton, "The field value help button was found");
33
+
34
+ if (typeof oSettings.success === "function") {
35
+ oSettings.success.call(this, oValueHelpIconButton);
36
+ }
37
+ },
38
+ errorMessage: "The field value help button could not be found"
39
+ });
40
+ }
41
+ };
42
+ });
@@ -7,35 +7,34 @@ sap.ui.define([
7
7
  "sap/ui/test/matchers/Matcher",
8
8
  "sap/ui/test/matchers/Properties",
9
9
  "sap/ui/test/matchers/Ancestor",
10
- "sap/ui/test/matchers/Descendant",
11
10
  "sap/ui/test/matchers/PropertyStrictEquals",
12
11
  "sap/ui/test/actions/Press",
13
12
  "sap/ui/test/actions/EnterText",
14
13
  "./Util",
14
+ "../Utils",
15
15
  "../p13n/Actions",
16
16
  "../p13n/Util",
17
17
  "../p13n/waitForP13nButtonWithMatchers",
18
18
  "../p13n/waitForP13nDialog",
19
- "sap/ui/core/Core"
19
+ "./waitForAdaptFiltersButton"
20
20
  ], function(
21
21
  Opa5,
22
22
  Matcher,
23
23
  Properties,
24
24
  Ancestor,
25
- Descendant,
26
25
  PropertyStrictEquals,
27
26
  Press,
28
27
  EnterText,
29
28
  FilterBarUtil,
29
+ Utils,
30
30
  p13nActions,
31
31
  p13nUtil,
32
32
  waitForP13nButtonWithMatchers,
33
33
  waitForP13nDialog,
34
- oCore
34
+ waitForAdaptFiltersButton
35
35
  ) {
36
36
  "use strict";
37
37
 
38
- var oMDCBundle = oCore.getLibraryResourceBundle("sap.ui.mdc");
39
38
 
40
39
  var iEnterFilterValue = function(oGroupViewItem, mSettings) {
41
40
  // Get sap.m.Panel of GroupViewItem
@@ -150,11 +149,11 @@ sap.ui.define([
150
149
  // Add matcher for p13n button text
151
150
  var oMatcher = new Matcher();
152
151
  oMatcher.isMatching = function(oButton) {
153
- return oButton.getText().includes(oMDCBundle.getText("filterbar.ADAPT"));
152
+ return oButton.getText().includes(Utils.getTextFromResourceBundle("sap.ui.mdc", "filterbar.ADAPT"));
154
153
  };
155
154
  aButtonMatchers.push(oMatcher);
156
155
  aDialogMatchers.push(new Properties({
157
- title: oMDCBundle.getText("filterbar.ADAPT_TITLE")
156
+ title: Utils.getTextFromResourceBundle("sap.ui.mdc", "filterbar.ADAPT_TITLE")
158
157
  }));
159
158
 
160
159
  waitForP13nButtonWithMatchers.call(this, {
@@ -293,7 +292,32 @@ sap.ui.define([
293
292
  });
294
293
  }
295
294
  });
295
+ },
296
+
297
+ iChangeAdaptFiltersView: function(sViewMode) {
298
+ return this.waitFor({
299
+ controlType: "sap.ui.mdc.p13n.panels.AdaptFiltersPanel",
300
+ matchers: {
301
+ ancestor: {
302
+ controlType: "sap.ui.mdc.filterbar.FilterBarBase"
303
+ }
304
+ },
305
+ success:function(aGroupPanelBase) {
306
+ Opa5.assert.equal(aGroupPanelBase.length, 1, "Adapt Filters Panel found");
307
+ aGroupPanelBase[0].switchView(sViewMode);
308
+ }
309
+ });
310
+ },
311
+
312
+ iPressOnTheAdaptFiltersButton: function() {
313
+ return waitForAdaptFiltersButton.call(this, {
314
+ actions: new Press(),
315
+ success: function onAdaptFiltersButtonFound(oAdaptFiltersButton) {
316
+ Opa5.assert.ok(true, 'The "Adapt Filters" button was pressed');
317
+ }
318
+ });
296
319
  }
320
+
297
321
  };
298
322
 
299
323
  return oActions;
@@ -7,20 +7,20 @@ sap.ui.define([
7
7
  "sap/ui/test/matchers/Matcher",
8
8
  "sap/ui/test/matchers/Properties",
9
9
  "sap/ui/test/matchers/Ancestor",
10
- "sap/ui/test/matchers/Descendant",
11
- "sap/ui/test/matchers/PropertyStrictEquals"
10
+ "sap/ui/test/matchers/PropertyStrictEquals",
11
+ "./waitForFilterBar",
12
+ "./waitForAdaptFiltersButton"
12
13
  ], function(
13
14
  Opa5,
14
15
  Matcher,
15
16
  Properties,
16
17
  Ancestor,
17
- Descendant,
18
- PropertyStrictEquals
18
+ PropertyStrictEquals,
19
+ waitForFilterBar,
20
+ waitForAdaptFiltersButton
19
21
  ) {
20
22
  "use strict";
21
23
 
22
- //var oMDCBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
23
-
24
24
  var iShouldSeeFilterField = function(oFilterBarInstance, sLabel, aExpectedConditions) {
25
25
  var vMatchers;
26
26
 
@@ -85,7 +85,53 @@ sap.ui.define([
85
85
  }
86
86
  }
87
87
  });
88
- }
88
+ },
89
+
90
+ iShouldSeeTheFilterBar: function() {
91
+ return waitForFilterBar.call(this);
92
+ },
93
+
94
+ iShouldSeeTheFilterFieldsWithLabels: function(aLabelNames) {
95
+
96
+ function onFilterFieldsFound(aFilterFields) {
97
+ Opa5.assert.strictEqual(aFilterFields.length, aLabelNames.length, "The exact number of filter fields were found");
98
+
99
+ var oFilterBar = aFilterFields[0].getParent(),
100
+ aFilterFieldsReOrdered = oFilterBar.getFilterItems();
101
+
102
+ if (aFilterFieldsReOrdered.length === aLabelNames.length) {
103
+ aLabelNames.forEach(function(sLabel, iIndex) {
104
+ var oFilterField = aFilterFieldsReOrdered[iIndex];
105
+ Opa5.assert.strictEqual(oFilterField.getLabel(), sLabel, 'The filter field labeled as "' + sLabel + '" found');
106
+ });
107
+ }
108
+ }
109
+
110
+ return this.waitFor({
111
+ searchOpenDialogs: false,
112
+ controlType: "sap.ui.mdc.FilterBar",
113
+ matchers: {
114
+ properties: {
115
+ showAdaptFiltersButton: true
116
+ }
117
+ },
118
+ success: function(aFilterBar){
119
+ Opa5.assert.strictEqual(aFilterBar.length, 1, "Only one FilterBar is present");
120
+ this.waitFor({
121
+ controlType: "sap.ui.mdc.FilterField",
122
+ matchers: new Ancestor(aFilterBar[0], true),
123
+ success: function(aFilterFields) {
124
+ onFilterFieldsFound(aFilterFields);
125
+ }
126
+ });
127
+ },
128
+ errorMessage: "The filter fields could not be found"
129
+ });
130
+ },
131
+
132
+ iShouldSeeTheAdaptFiltersButton: function() {
133
+ return waitForAdaptFiltersButton.call(this);
134
+ }
89
135
  };
90
136
 
91
137
  });
@@ -0,0 +1,188 @@
1
+ <a name="onTheMDCFilterBar"></a>
2
+
3
+ ## onTheMDCFilterBar : <code>object</code>
4
+ **Kind**: global namespace
5
+
6
+ * [onTheMDCFilterBar](#onTheMDCFilterBar) : <code>object</code>
7
+ * [.iPersonalizeFilter(oFilterBar, oSettings)](#onTheMDCFilterBar.iPersonalizeFilter) ⇒ <code>Promise</code>
8
+ * [.iResetThePersonalization(oFilterBar)](#onTheMDCFilterBar.iResetThePersonalization) ⇒ <code>Promise</code>
9
+ * [.iExpectSearch(oFilterBar)](#onTheMDCFilterBar.iExpectSearch) ⇒ <code>Promise</code>
10
+ * [.iEnterFilterValue(oFilterBar, mSettings)](#onTheMDCFilterBar.iEnterFilterValue) ⇒ <code>Promise</code>
11
+ * [.iClearFilterValue(oFilterBar, sFilterLabel)](#onTheMDCFilterBar.iClearFilterValue) ⇒ <code>Promise</code>
12
+ * [.iPressOnTheAdaptFiltersButton()](#onTheMDCFilterBar.iPressOnTheAdaptFiltersButton) ⇒ <code>Promise</code>
13
+ * [.iShouldSeeFilters(oFilterBar, vSettings)](#onTheMDCFilterBar.iShouldSeeFilters) ⇒ <code>Promise</code>
14
+ * [.iShouldSeeTheFilterBar()](#onTheMDCFilterBar.iShouldSeeTheFilterBar) ⇒ <code>Promise</code>
15
+ * [.iShouldSeeTheFilterFieldsWithLabels(aLabelNames)](#onTheMDCFilterBar.iShouldSeeTheFilterFieldsWithLabels) ⇒ <code>Promise</code>
16
+ * [.iShouldSeeTheAdaptFiltersButton()](#onTheMDCFilterBar.iShouldSeeTheAdaptFiltersButton) ⇒ <code>Promise</code>
17
+
18
+ <a name="onTheMDCFilterBar.iPersonalizeFilter"></a>
19
+
20
+ ### onTheMDCFilterBar.iPersonalizeFilter(oFilterBar, oSettings) ⇒ <code>Promise</code>
21
+ OPA5 test action
22
+ <ol>
23
+ <li>
24
+ Opens the personalization dialog of the given <code>FilterBar</code>.
25
+ </li>
26
+ <li>
27
+ Navigates to the "Group" tab.
28
+ </li>
29
+ <li>
30
+ Opens all groups and selects / deselects all <code>FilterFields</code> depending on <code>oSettings</code>. Only the labels defined in <code>oSettings</code> will be selected, others will be deselected.
31
+ </li>
32
+ <li>
33
+ Closes the personalization dialog.
34
+ </li>
35
+ </ol>
36
+
37
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
38
+ **Returns**: <code>Promise</code> - OPA waitFor
39
+
40
+ | Param | Type | Description |
41
+ | --- | --- | --- |
42
+ | oFilterBar | <code>sap.ui.core.Control</code> \| <code>string</code> | Instance / ID of the <code>FilterBar</code> that is filtered |
43
+ | oSettings | <code>Object</code> | 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> |
44
+
45
+ <a name="onTheMDCFilterBar.iResetThePersonalization"></a>
46
+
47
+ ### onTheMDCFilterBar.iResetThePersonalization(oFilterBar) ⇒ <code>Promise</code>
48
+ OPA5 test action
49
+ <ol>
50
+ <li>
51
+ Opens the personalization dialog of the given <code>FilterBar</code>.
52
+ </li>
53
+ <li>
54
+ Presses the reset personalization button.
55
+ </li>
56
+ <li>
57
+ Confirms the reset dialog.
58
+ </li>
59
+ <li>
60
+ Closes the personalization dialog.
61
+ </li>
62
+ </ol>
63
+
64
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
65
+ **Returns**: <code>Promise</code> - OPA waitFor
66
+
67
+ | Param | Type | Description |
68
+ | --- | --- | --- |
69
+ | oFilterBar | <code>sap.ui.core.Control</code> \| <code>string</code> | Instance / ID of the <code>FilterBar</code> |
70
+
71
+ <a name="onTheMDCFilterBar.iExpectSearch"></a>
72
+
73
+ ### onTheMDCFilterBar.iExpectSearch(oFilterBar) ⇒ <code>Promise</code>
74
+ OPA5 test action
75
+ Presses the apply filters button of the <code>FilterBar</code>.
76
+
77
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
78
+ **Returns**: <code>Promise</code> - OPA waitFor
79
+
80
+ | Param | Type | Description |
81
+ | --- | --- | --- |
82
+ | oFilterBar | <code>sap.ui.core.Control</code> \| <code>string</code> | Instance / ID of the <code>FilterBar</code> |
83
+
84
+ <a name="onTheMDCFilterBar.iEnterFilterValue"></a>
85
+
86
+ ### onTheMDCFilterBar.iEnterFilterValue(oFilterBar, mSettings) ⇒ <code>Promise</code>
87
+ OPA5 test action
88
+ <ol>
89
+ <li>
90
+ Opens the personalization dialog of the given <code>FilterBar</code>.
91
+ </li>
92
+ <li>
93
+ Navigates to the "Group" tab.
94
+ </li>
95
+ <li>
96
+ Opens the given groups and enters all values in the <code>FilterFields</code> depending on <code>oSettings</code>.
97
+ </li>
98
+ <li>
99
+ Closes the personalization dialog.
100
+ </li>
101
+ </ol>
102
+
103
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
104
+ **Returns**: <code>Promise</code> - OPA waitFor
105
+
106
+ | Param | Type | Description |
107
+ | --- | --- | --- |
108
+ | oFilterBar | <code>sap.ui.core.Control</code> \| <code>string</code> | Instance / ID of the <code>FilterBar</code> |
109
+ | mSettings | <code>Object</code> | 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 |
110
+
111
+ <a name="onTheMDCFilterBar.iClearFilterValue"></a>
112
+
113
+ ### onTheMDCFilterBar.iClearFilterValue(oFilterBar, sFilterLabel) ⇒ <code>Promise</code>
114
+ OPA5 test action
115
+ Clears all values of a <code>FilterField</code> with a given label on the <code>FilterBar</code>.
116
+
117
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
118
+ **Returns**: <code>Promise</code> - OPA waitFor
119
+
120
+ | Param | Type | Description |
121
+ | --- | --- | --- |
122
+ | oFilterBar | <code>sap.ui.core.Control</code> \| <code>string</code> | Instance / ID of the <code>FilterBar</code> |
123
+ | sFilterLabel | <code>string</code> | Label of the <code>FilterField</code> |
124
+
125
+ <a name="onTheMDCFilterBar.iPressOnTheAdaptFiltersButton"></a>
126
+
127
+ ### onTheMDCFilterBar.iPressOnTheAdaptFiltersButton() ⇒ <code>Promise</code>
128
+ OPA5 test action
129
+ Checks if there is a button visible on the application with the adopt filters icon and presses that given button.
130
+
131
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
132
+ **Returns**: <code>Promise</code> - OPA waitFor
133
+ <a name="onTheMDCFilterBar.iShouldSeeFilters"></a>
134
+
135
+ ### onTheMDCFilterBar.iShouldSeeFilters(oFilterBar, vSettings) ⇒ <code>Promise</code>
136
+ OPA5 test assertion
137
+ Checks if given <code>FilterFields</code> are displayed on a given <code>FilterBar</code>.
138
+ Depending on the <code>vSettings</code> type this function can be used in two different ways:
139
+ <ul>
140
+ <li>
141
+ <code>vSettings</code> is an array of strings:
142
+ Checks if all given strings are labels for <code>FilterFields</code> on a given <code>FilterBar</code>.
143
+ </li>
144
+ <li>
145
+ <code>vSettings</code> is an object:
146
+ Checks for each key in the object if there is a label for a <code>FilterFields</code> of a given <code>FilterBar</code>.
147
+ The value of that key is an array containing objects with the operators and values that are expected for the given <code>FilterFields</code>.
148
+ If the value is an empty array, the given <code>FilterFields</code> doesn't have a value.
149
+ </li>
150
+ </ul>
151
+
152
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
153
+ **Returns**: <code>Promise</code> - OPA waitFor
154
+
155
+ | Param | Type | Description |
156
+ | --- | --- | --- |
157
+ | oFilterBar | <code>sap.ui.core.Control</code> \| <code>string</code> | Instance / ID of the <code>FilterBar</code> |
158
+ | vSettings | <code>Array.&lt;string&gt;</code> \| <code>Object</code> | Settings in which the expected filters are defined |
159
+
160
+ <a name="onTheMDCFilterBar.iShouldSeeTheFilterBar"></a>
161
+
162
+ ### onTheMDCFilterBar.iShouldSeeTheFilterBar() ⇒ <code>Promise</code>
163
+ OPA5 test assertion
164
+ Checks if there is a <code>FilterBar</code> visible on the application.
165
+
166
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
167
+ **Returns**: <code>Promise</code> - OPA waitFor
168
+ <a name="onTheMDCFilterBar.iShouldSeeTheFilterFieldsWithLabels"></a>
169
+
170
+ ### onTheMDCFilterBar.iShouldSeeTheFilterFieldsWithLabels(aLabelNames) ⇒ <code>Promise</code>
171
+ OPA5 test assertion
172
+ Checks if there are <code>FilterFields</code> visible on the application with given labels.
173
+
174
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
175
+ **Returns**: <code>Promise</code> - OPA waitFor
176
+
177
+ | Param | Type | Description |
178
+ | --- | --- | --- |
179
+ | aLabelNames | <code>Array.&lt;string&gt;</code> | Array containing the labels of the expected <code>FilterFields</code> |
180
+
181
+ <a name="onTheMDCFilterBar.iShouldSeeTheAdaptFiltersButton"></a>
182
+
183
+ ### onTheMDCFilterBar.iShouldSeeTheAdaptFiltersButton() ⇒ <code>Promise</code>
184
+ OPA5 test assertion
185
+ Checks if there is a button visible on the application with the adopt filters icon.
186
+
187
+ **Kind**: static method of [<code>onTheMDCFilterBar</code>](#onTheMDCFilterBar)
188
+ **Returns**: <code>Promise</code> - OPA waitFor