@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
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @constructor
36
36
  * @alias sap.ui.mdc.MultiValueField
37
37
  * @author SAP SE
38
- * @version 1.103.1
38
+ * @version 1.104.0
39
39
  * @since 1.93.0
40
40
  *
41
41
  * @private
@@ -1104,7 +1104,13 @@ sap.ui.define([
1104
1104
  });
1105
1105
  var oResourceBundle = Core.getLibraryResourceBundle("sap.ui.mdc");
1106
1106
  var oListFormat = ListFormat.getInstance();
1107
- var sFilterText = oResourceBundle.getText("table.FILTER_INFO", oListFormat.format(aPropertyLabels));
1107
+
1108
+ var sFilterText;
1109
+ if (aPropertyLabels.length > 1) {
1110
+ sFilterText = oResourceBundle.getText("table.MULTIPLE_FILTERS_ACTIVE", [aPropertyLabels.length, oListFormat.format(aPropertyLabels)]);
1111
+ } else {
1112
+ sFilterText = oResourceBundle.getText("table.ONE_FILTER_ACTIVE", aPropertyLabels[0]);
1113
+ }
1108
1114
 
1109
1115
  if (!oFilterInfoBar.getVisible()) {
1110
1116
  oFilterInfoBar.setVisible(true);
@@ -61,15 +61,11 @@ sap.ui.define([
61
61
  var oGroupedProperty = oTable._getGroupedProperties()[0];
62
62
 
63
63
  if (oGroupedProperty) {
64
- var oSortedProperty = oTable._getSortedProperties().find(function(oProperty) {
65
- return oProperty.name === oGroupedProperty.name;
66
- });
67
- var sPath = oTable.getPropertyHelper().getProperty(oGroupedProperty.name).path;
68
- var bDescending = oSortedProperty ? oSortedProperty.descending : false;
69
-
70
- oBindingInfo.sorter.push(new Sorter(sPath, bDescending, function(oContext) {
71
- return this.formatGroupHeader(oTable, oContext, oGroupedProperty.name);
72
- }.bind(this)));
64
+ var oSorter = this.getGroupSorter(oTable, oGroupedProperty.name);
65
+
66
+ if (oSorter) {
67
+ oBindingInfo.sorter.push(oSorter);
68
+ }
73
69
  }
74
70
  }
75
71
 
@@ -82,6 +78,26 @@ sap.ui.define([
82
78
  );
83
79
  };
84
80
 
81
+ /**
82
+ * Creates a new sorter for the grouping functionality.
83
+ *
84
+ * @param {sap.ui.mdc.Table} oTable Instance of the MDC table
85
+ * @param {string} sPropertyName Property to group
86
+ * @returns {sap.ui.model.Sorter} New sorter
87
+ * @protected
88
+ */
89
+ TableDelegate.getGroupSorter = function(oTable, sPropertyName){
90
+ var oSortedProperty = oTable._getSortedProperties().find(function(oProperty) {
91
+ return oProperty.name === sPropertyName;
92
+ });
93
+ var sPath = oTable.getPropertyHelper().getProperty(sPropertyName).path;
94
+ var bDescending = oSortedProperty ? oSortedProperty.descending : false;
95
+
96
+ return new Sorter(sPath, bDescending, function(oContext) {
97
+ return this.formatGroupHeader(oTable, oContext, sPropertyName);
98
+ }.bind(this));
99
+ };
100
+
85
101
  /**
86
102
  * Updates the row binding of the table.
87
103
  *
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  * @class Element for the <code>FieldHelp</code> association in the {@link sap.ui.mdc.field.FieldBase FieldBase} controls.
84
84
  * @extends sap.ui.mdc.Element
85
85
  * @implements sap.ui.core.PopupInterface
86
- * @version 1.103.1
86
+ * @version 1.104.0
87
87
  * @constructor
88
88
  * @abstract
89
89
  * @private
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @class The action for an {@link sap.ui.mdc.ActionToolbar ActionToolbar}) control
22
22
  * @extends sap.ui.core.Control
23
23
  * @author SAP SE
24
- * @version 1.103.1
24
+ * @version 1.104.0
25
25
  * @constructor
26
26
  * @private
27
27
  * @since 1.58
@@ -8,7 +8,6 @@ sap.ui.define([], function() {
8
8
  "use strict";
9
9
 
10
10
  /**
11
- * Form renderer.
12
11
  * @namespace
13
12
  */
14
13
  var ActionToolbarActionRenderer = {
@@ -22,7 +21,7 @@ sap.ui.define([], function() {
22
21
  * @param {sap.ui.mdc.actiontoolbar.ActionToolbarAction} oActionToolbarAction an object representation of the control that should be rendered
23
22
  */
24
23
  ActionToolbarActionRenderer.render = function(rm, oActionToolbarAction) {
25
- var mAriaProps = { role: "form" };
24
+ var mAriaProps = { role: "action" };
26
25
 
27
26
  rm.openStart("div", oActionToolbarAction);
28
27
 
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @class The ChartSelectionDetails control creates a sap.m.SelectionDetails popover based on metadata and the configuration specified.
34
34
  * @extends sap.m.SelectionDetails
35
35
  * @author SAP SE
36
- * @version 1.103.1
36
+ * @version 1.104.0
37
37
  * @constructor
38
38
  * @experimental As of version ...
39
39
  * @private
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @class The ChartToolbar control is a sap.m.OverflowToolbar based on metadata and the configuration specified.
43
43
  * @extends sap.ui.mdc.ActionToolbar
44
44
  * @author SAP SE
45
- * @version 1.103.1
45
+ * @version 1.104.0
46
46
  * @constructor
47
47
  * @experimental As of version 1.88
48
48
  * @private
@@ -88,10 +88,11 @@ sap.ui.define([
88
88
  this._chartInternalButtonsToEnable = [];
89
89
 
90
90
  /**add beginning**/
91
- var title = new Title(oMDCChart.getId() + "-title", {
92
- text: oMDCChart.getHeader()
91
+ this._oTitle = new Title(oMDCChart.getId() + "-title", {
92
+ text: oMDCChart.getHeader(),
93
+ level: oMDCChart.getHeaderLevel()
93
94
  });
94
- this.addBegin(title);
95
+ this.addBegin(this._oTitle);
95
96
 
96
97
  /** variant management */
97
98
  if (oMDCChart.getVariant()){
@@ -325,5 +326,10 @@ sap.ui.define([
325
326
  }
326
327
 
327
328
  };
329
+
330
+ ChartToolbar.prototype._setHeaderLevel = function(sHeaderLevel) {
331
+ this._oTitle.setLevel(sHeaderLevel);
332
+ };
333
+
328
334
  return ChartToolbar;
329
335
  });
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.mdc.util.PropertyHelper
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.103.1
28
+ * @version 1.104.0
29
29
  *
30
30
  * @private
31
31
  * @experimental
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  *
29
29
  * @namespace
30
30
  * @author SAP SE
31
- * @version 1.103.1
31
+ * @version 1.104.0
32
32
  * @since 1.61.0
33
33
  * @alias sap.ui.mdc.condition.Condition
34
34
  *
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @namespace
26
26
  * @author SAP SE
27
- * @version 1.103.1
27
+ * @version 1.104.0
28
28
  * @private
29
29
  * @ui5-restricted sap.ui.mdc
30
30
  * @experimental As of version 1.74
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.model.json.JSONModel
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.103.1
38
+ * @version 1.104.0
39
39
  * @since 1.48.0
40
40
  * @alias sap.ui.mdc.condition.ConditionModel
41
41
  *
@@ -24,7 +24,7 @@ function(
24
24
  *
25
25
  * @namespace
26
26
  * @author SAP SE
27
- * @version 1.103.1
27
+ * @version 1.104.0
28
28
  * @since 1.78.0
29
29
  * @alias sap.ui.mdc.condition.FilterConverter
30
30
  *
@@ -56,7 +56,7 @@ function(
56
56
  *
57
57
  * @namespace
58
58
  * @author SAP SE
59
- * @version 1.103.1
59
+ * @version 1.104.0
60
60
  * @since 1.73.0
61
61
  * @alias sap.ui.mdc.condition.FilterOperatorUtil
62
62
  *
@@ -84,7 +84,7 @@ sap.ui.define([
84
84
  * @param {string} [oConfiguration.additionalInfo] additionalInfo text for the operator. Will be shown in the operator suggest as second column. If not used (undefined) the Include or Exclude information of the operator is used.
85
85
  * @constructor
86
86
  * @author SAP SE
87
- * @version 1.103.1
87
+ * @version 1.104.0
88
88
  * @private
89
89
  * @ui5-restricted sap.fe
90
90
  * @MDC_PUBLIC_CANDIDATE
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @extends sap.m.DynamicDateOption
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.103.1
54
+ * @version 1.104.0
55
55
  *
56
56
  * @private
57
57
  * @ui5-restricted sap.ui.mdc
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @param {int[]|function} [oConfiguration.defaultValues] Array of values for the defaults of <code>RangeOperators</code> parameter. This can be a function, which returns the array of values. If not used the default for the values is 1.
34
34
  * @constructor
35
35
  * @author SAP SE
36
- * @version 1.103.1
36
+ * @version 1.104.0
37
37
  * @private
38
38
  * @ui5-restricted sap.fe
39
39
  * @MDC_PUBLIC_CANDIDATE
@@ -15,7 +15,18 @@ sap.ui.define([
15
15
  var oDesignTime = {
16
16
  description: "{description}",
17
17
  name: "{name}",
18
- aggregations: {},
18
+ aggregations: {
19
+ between: {
20
+ propagateMetadata: function(oElement) {
21
+ if (oElement.isA("sap.ui.fl.variants.VariantManagement")) {
22
+ return null;
23
+ }
24
+ return {
25
+ actions: "not-adaptable" // other controls within the conten aggregation will not be adaptable for RTA and Visual Editor
26
+ };
27
+ }
28
+ }
29
+ },
19
30
  properties: {},
20
31
  actions: {
21
32
  settings: {
@@ -30,7 +41,7 @@ sap.ui.define([
30
41
  }
31
42
  },
32
43
  aAllowedAggregations = [
33
- "actions"
44
+ "actions", "between"
34
45
  ],
35
46
  aAllProperties = [];
36
47
 
@@ -82,6 +82,9 @@ sap.ui.define([
82
82
  },
83
83
  propertyInfo: {
84
84
  ignore: true
85
+ },
86
+ headerLevel : {
87
+ ignore: false
85
88
  }
86
89
  },
87
90
  aggregations: {
@@ -28,7 +28,9 @@ sap.ui.define([
28
28
  aggregations: {
29
29
  _content: {
30
30
  propagateMetadata: function(oElement) {
31
- if (oElement.isA("sap.ui.mdc.ActionToolbar") || (oElement.getParent() && oElement.getParent().isA("sap.ui.mdc.actiontoolbar.ActionToolbarAction"))) {
31
+ if (oElement.isA("sap.ui.mdc.ActionToolbar")
32
+ || (oElement.getParent() && oElement.getParent().isA("sap.ui.mdc.actiontoolbar.ActionToolbarAction"))
33
+ || oElement.isA("sap.ui.fl.variants.VariantManagement")) {
32
34
  return {
33
35
  actions: {
34
36
  settings: {}
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @param {object} [mSettings] Initial settings for the new control
36
36
  * @class A field help used in the <code>FieldHelp</code> association in <code>FieldBase</code> controls that shows a list for Boolean values.
37
37
  * @extends sap.ui.mdc.field.FieldHelpBase
38
- * @version 1.103.1
38
+ * @version 1.104.0
39
39
  * @constructor
40
40
  * @private
41
41
  * @ui5-restricted sap.ui.mdc.field.FieldBase
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @param {object} [mSettings] Initial settings for the new control
36
36
  * @class A field help used in the <code>FieldHelp</code> association in <code>FieldBase</code> controls to show a popover of conditions.
37
37
  * @extends sap.ui.mdc.field.FieldHelpBase
38
- * @version 1.103.1
38
+ * @version 1.104.0
39
39
  * @constructor
40
40
  * @private
41
41
  * @ui5-restricted sap.ui.mdc.field.FieldBase, sap.fe
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @extends sap.ui.model.SimpleType
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.103.1
54
+ * @version 1.104.0
55
55
  *
56
56
  * @since 1.62.0
57
57
  * @private
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.model.SimpleType
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.103.1
39
+ * @version 1.104.0
40
40
  *
41
41
  * @since 1.62.0
42
42
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] Initial settings for the new control
17
17
  * @class A field help used in the <code>FieldHelp</code> association in <code>FieldBase</code> controls that allows you to add custom content.
18
18
  * @extends sap.ui.mdc.field.FieldHelpBase
19
- * @version 1.103.1
19
+ * @version 1.104.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @ui5-restricted sap.fe
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] Initial settings for the new control
17
17
  * @class A field help used in the <code>FieldInfo</code> aggregation in <code>FieldBase</code> controls that allows you to add custom content.
18
18
  * @extends sap.ui.mdc.field.FieldInfoBase
19
- * @version 1.103.1
19
+ * @version 1.104.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @ui5-restricted sap.fe
@@ -93,7 +93,7 @@ sap.ui.define([
93
93
  * @extends sap.ui.core.Control
94
94
  *
95
95
  * @author SAP SE
96
- * @version 1.103.1
96
+ * @version 1.104.0
97
97
  *
98
98
  * @constructor
99
99
  * @alias sap.ui.mdc.field.DefineConditionPanel
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.mdc.field.ConditionsType
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.103.1
49
+ * @version 1.104.0
50
50
  *
51
51
  * @since 1.96.0
52
52
  * @private
@@ -4,7 +4,6 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- 'sap/ui/thirdparty/jquery',
8
7
  'sap/ui/Device',
9
8
  'sap/ui/mdc/enum/EditMode',
10
9
  'sap/ui/mdc/enum/FieldDisplay',
@@ -35,7 +34,6 @@ sap.ui.define([
35
34
  'sap/base/util/restricted/_debounce',
36
35
  'sap/ui/events/KeyCodes'
37
36
  ], function(
38
- jQuery,
39
37
  Device,
40
38
  EditMode,
41
39
  FieldDisplay,
@@ -86,7 +84,7 @@ sap.ui.define([
86
84
  * @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent
87
85
  *
88
86
  * @author SAP SE
89
- * @version 1.103.1
87
+ * @version 1.104.0
90
88
  *
91
89
  * @constructor
92
90
  * @alias sap.ui.mdc.field.FieldBase
@@ -2179,6 +2177,7 @@ sap.ui.define([
2179
2177
 
2180
2178
  }
2181
2179
 
2180
+ // Please note: This method may update aConditions!
2182
2181
  function _updateConditionsFromChange(oCondition, aConditions, oConditionType, bValid, vValue, oSource, oChange) {
2183
2182
 
2184
2183
  var iMaxConditions = this.getMaxConditions();
@@ -2199,7 +2198,7 @@ sap.ui.define([
2199
2198
  if (oCondition) {
2200
2199
  if (this._oContentFactory.isMeasure() && aConditions.length === 1 && aConditions[0].values[0][0] === undefined) {
2201
2200
  // remove empty condition
2202
- aConditions = [];
2201
+ aConditions.length = 0;
2203
2202
  }
2204
2203
  if (iMaxConditions !== 1 && FilterOperatorUtil.indexOfCondition(oCondition, aConditions) >= 0) {
2205
2204
  // condition already exist (only error if tokens, in SearchField it is OK)
@@ -2212,7 +2211,7 @@ sap.ui.define([
2212
2211
  aConditions.push(oCondition);
2213
2212
  }
2214
2213
  } else if (iMaxConditions === 1) {
2215
- aConditions = [];
2214
+ aConditions.length = 0;
2216
2215
  }
2217
2216
 
2218
2217
  if (!deepEqual(aConditions, this.getConditions())) {
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @class Base type for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
41
41
  * @extends sap.ui.mdc.Element
42
42
  * @implements sap.ui.core.PopupInterface
43
- * @version 1.103.1
43
+ * @version 1.104.0
44
44
  * @constructor
45
45
  * @abstract
46
46
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @param {object} [mSettings] Initial settings for the new control
28
28
  * @class A <code>FieldInfoBase</code> element is a base class that shows any kind of information related to the <code>Field</code> control, for example, navigation targets or contact details.
29
29
  * @extends sap.ui.mdc.Element
30
- * @version 1.103.1
30
+ * @version 1.104.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.54.0
@@ -91,8 +91,8 @@ sap.ui.define([
91
91
  * @protected
92
92
  */
93
93
  FieldInfoBase.prototype.open = function(oControl) {
94
- var oParent = this.getParent();
95
- if (!oParent) {
94
+ oControl = oControl ? oControl : this.getParent();
95
+ if (!oControl) {
96
96
  throw new Error("sap.ui.mdc.field.FieldInfoBase: popover can not be open because the control is undefined");
97
97
  }
98
98
  // Avoid creation of a new popover instance if the same triggerable control is triggered again.
@@ -102,13 +102,7 @@ sap.ui.define([
102
102
  return this.checkDirectNavigation().then(function(bNavigated) {
103
103
  return bNavigated ? Promise.resolve() : this.createPopover().then(function(oPopover) {
104
104
  if (oPopover) {
105
- // Note: it is not needed to destroy this._oPopover in exit as through addDependent() the popover
106
- // instance will be automatically destroyed once the FieldInfoBase instance is destroyed.
107
- this._oPopover = oPopover;
108
-
109
- this.addDependent(this._oPopover);
110
-
111
- this._oPopover.openBy(oControl || oParent);
105
+ this._oPopover.openBy(oControl);
112
106
 
113
107
  this._oPopover.attachAfterOpen(function() {
114
108
  this.firePopoverAfterOpen();
@@ -177,19 +171,27 @@ sap.ui.define([
177
171
  }.bind(this)
178
172
  });
179
173
 
180
- sap.ui.require([
181
- 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'
182
- ], function(FlexRuntimeInfoAPI) {
183
- if (FlexRuntimeInfoAPI.isFlexSupported({element: oPanel})) {
184
- FlexRuntimeInfoAPI.waitForChanges({element: oPanel}).then(function () {
174
+ // Note: it is not needed to destroy this._oPopover in exit as through addDependent() the popover
175
+ // instance will be automatically destroyed once the FieldInfoBase instance is destroyed.
176
+ this._oPopover = oPopover;
177
+
178
+ this.addDependent(this._oPopover);
179
+
180
+ return new Promise(function(resolve, reject) {
181
+ sap.ui.require([
182
+ 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'
183
+ ], function(FlexRuntimeInfoAPI) {
184
+ if (FlexRuntimeInfoAPI.isFlexSupported({element: oPanel})) {
185
+ FlexRuntimeInfoAPI.waitForChanges({element: oPanel}).then(function () {
186
+ oPopover.addAriaLabelledBy(oPanel.getContentTitle ? oPanel.getContentTitle() : "");
187
+ resolve(oPopover);
188
+ });
189
+ } else if (oPanel) {
185
190
  oPopover.addAriaLabelledBy(oPanel.getContentTitle ? oPanel.getContentTitle() : "");
186
- });
187
- } else if (oPanel) {
188
- oPopover.addAriaLabelledBy(oPanel.getContentTitle ? oPanel.getContentTitle() : "");
189
- }
191
+ resolve(oPopover);
192
+ }
193
+ });
190
194
  });
191
-
192
- return oPopover;
193
195
  }.bind(this));
194
196
  };
195
197
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @param {object} [mSettings] Initial settings for the new control
24
24
  * @class The <code>FieldInput</code> control is used to render an input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
25
25
  * @extends sap.m.Input
26
- * @version 1.103.1
26
+ * @version 1.104.0
27
27
  * @constructor
28
28
  * @abstract
29
29
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class Functions uses in <code>FieldInputRenderer</code> and <code>FieldMultiInputRenderer</code> to adjust aria attributes.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.103.1
19
+ * @version 1.104.0
20
20
  * @since 1.86.0
21
21
  * @alias sap.ui.mdc.field.FieldInputRenderUtil
22
22
  *
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @param {object} [mSettings] Initial settings for the new control
24
24
  * @class The <code>FieldMultiInput</code> control is used to render a multi-input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
25
25
  * @extends sap.m.MultiInput
26
- * @version 1.103.1
26
+ * @version 1.104.0
27
27
  * @constructor
28
28
  * @abstract
29
29
  * @private
@@ -74,7 +74,7 @@ sap.ui.define([
74
74
  * @param {object} [mSettings] Initial settings for the new control
75
75
  * @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a value help dialog.
76
76
  * @extends sap.ui.mdc.field.FieldHelpBase
77
- * @version 1.103.1
77
+ * @version 1.104.0
78
78
  * @constructor
79
79
  * @private
80
80
  * @ui5-restricted sap.fe
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @param {object} [mSettings] Initial settings for the new control
24
24
  * @class Base type for <code>FieldValueHelp</code> content control wrapper.
25
25
  * @extends sap.ui.core.Element
26
- * @version 1.103.1
26
+ * @version 1.104.0
27
27
  * @constructor
28
28
  * @abstract
29
29
  * @private
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @param {object} [mSettings] Initial settings for the new control
36
36
  * @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
37
37
  * @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
38
- * @version 1.103.1
38
+ * @version 1.104.0
39
39
  * @constructor
40
40
  * @private
41
41
  * @ui5-restricted sap.fe
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @param {object} [mSettings] Initial settings for the new control
43
43
  * @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
44
44
  * @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
45
- * @version 1.103.1
45
+ * @version 1.104.0
46
46
  * @constructor
47
47
  * @private
48
48
  * @ui5-restricted sap.fe
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @param {object} [mSettings] Initial settings for the new control
48
48
  * @class Wrapper to use a table control as content of a <code>FieldValueHelp</code> element
49
49
  * @extends sap.ui.mdc.field.FieldValueHelpContentWrapperBase
50
- * @version 1.103.1
50
+ * @version 1.104.0
51
51
  * @constructor
52
52
  * @private
53
53
  * @experimental As of version 1.88
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @param {object} [mSettings] Initial settings for the new control
34
34
  * @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
35
35
  * @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
36
- * @version 1.103.1
36
+ * @version 1.104.0
37
37
  * @constructor
38
38
  * @private
39
39
  * @ui5-restricted sap.ui.mdc
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @param {object} [mSettings] Initial settings for the new control
21
21
  * @class The <code>InParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
22
22
  * @extends sap.ui.core.Element
23
- * @version 1.103.1
23
+ * @version 1.104.0
24
24
  * @constructor
25
25
  * @abstract
26
26
  * @private
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @param {object} [mSettings] Initial settings for the new control
40
40
  * @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a list of items.
41
41
  * @extends sap.ui.mdc.field.FieldHelpBase
42
- * @version 1.103.1
42
+ * @version 1.104.0
43
43
  * @constructor
44
44
  * @private
45
45
  * @ui5-restricted sap.fe
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.core.ListItem
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.103.1
26
+ * @version 1.104.0
27
27
  *
28
28
  * @private
29
29
  * @ui5-restricted sap.fe
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @param {object} [mSettings] Initial settings for the new control
21
21
  * @class Base type for <code>MultiValueFieldItem</code> control.
22
22
  * @extends sap.ui.core.Element
23
- * @version 1.103.1
23
+ * @version 1.104.0
24
24
  * @constructor
25
25
  * @abstract
26
26
  * @private