@openui5/sap.ui.mdc 1.113.0 → 1.115.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 (269) hide show
  1. package/.reuse/dep5 +0 -5
  2. package/README.md +22 -9
  3. package/THIRDPARTY.txt +1 -7
  4. package/package.json +4 -4
  5. package/src/sap/ui/mdc/.library +1 -1
  6. package/src/sap/ui/mdc/ActionToolbar.js +5 -7
  7. package/src/sap/ui/mdc/AggregationBaseDelegate.js +5 -5
  8. package/src/sap/ui/mdc/BaseDelegate.js +49 -14
  9. package/src/sap/ui/mdc/Chart.js +147 -179
  10. package/src/sap/ui/mdc/ChartDelegate.js +404 -514
  11. package/src/sap/ui/mdc/ChartRenderer.js +11 -11
  12. package/src/sap/ui/mdc/Control.js +4 -4
  13. package/src/sap/ui/mdc/DefaultTypeMap.js +84 -0
  14. package/src/sap/ui/mdc/Element.js +4 -4
  15. package/src/sap/ui/mdc/Field.js +98 -96
  16. package/src/sap/ui/mdc/FilterBar.js +33 -56
  17. package/src/sap/ui/mdc/FilterBarDelegate.js +36 -69
  18. package/src/sap/ui/mdc/FilterField.js +93 -47
  19. package/src/sap/ui/mdc/Link.js +83 -82
  20. package/src/sap/ui/mdc/LinkDelegate.js +29 -48
  21. package/src/sap/ui/mdc/MultiValueField.js +34 -30
  22. package/src/sap/ui/mdc/Table.js +182 -193
  23. package/src/sap/ui/mdc/TableDelegate.js +244 -33
  24. package/src/sap/ui/mdc/ValueHelp.js +67 -50
  25. package/src/sap/ui/mdc/ValueHelpDelegate.js +57 -89
  26. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +4 -12
  27. package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +192 -197
  28. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +10 -20
  29. package/src/sap/ui/mdc/chart/ChartToolbar.js +50 -50
  30. package/src/sap/ui/mdc/chart/ChartTypeButton.js +23 -27
  31. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +10 -10
  32. package/src/sap/ui/mdc/chart/DrillStackHandler.js +14 -14
  33. package/src/sap/ui/mdc/chart/Item.js +30 -17
  34. package/src/sap/ui/mdc/chart/PropertyHelper.js +10 -10
  35. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +23 -15
  36. package/src/sap/ui/mdc/condition/Condition.js +11 -23
  37. package/src/sap/ui/mdc/condition/ConditionConverter.js +8 -8
  38. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  39. package/src/sap/ui/mdc/condition/FilterConverter.js +2 -2
  40. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +771 -123
  41. package/src/sap/ui/mdc/condition/Operator.js +52 -50
  42. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +14 -14
  43. package/src/sap/ui/mdc/condition/RangeOperator.js +3 -5
  44. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +2 -2
  45. package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +5 -9
  46. package/src/sap/ui/mdc/enum/BaseType.js +15 -20
  47. package/src/sap/ui/mdc/enum/ConditionValidated.js +5 -9
  48. package/src/sap/ui/mdc/enum/ContentMode.js +1 -0
  49. package/src/sap/ui/mdc/enum/EditMode.js +7 -19
  50. package/src/sap/ui/mdc/enum/FieldDisplay.js +12 -18
  51. package/src/sap/ui/mdc/enum/FilterBarValidationStatus.js +3 -1
  52. package/src/sap/ui/mdc/enum/LinkType.js +40 -0
  53. package/src/sap/ui/mdc/enum/OperatorOverwrite.js +4 -2
  54. package/src/sap/ui/mdc/enum/OperatorValueType.js +47 -0
  55. package/src/sap/ui/mdc/enum/PersistenceMode.js +36 -36
  56. package/src/sap/ui/mdc/enum/ProcessingStrategy.js +3 -1
  57. package/src/sap/ui/mdc/enum/PropagationReason.js +1 -1
  58. package/src/sap/ui/mdc/enum/ReasonMode.js +1 -0
  59. package/src/sap/ui/mdc/enum/SelectType.js +1 -0
  60. package/src/sap/ui/mdc/enums/ActionToolbarActionAlignment.js +31 -0
  61. package/src/sap/ui/mdc/enums/BaseType.js +72 -0
  62. package/src/sap/ui/mdc/enums/ChartItemRoleType.js +61 -0
  63. package/src/sap/ui/mdc/enums/ChartItemType.js +31 -0
  64. package/src/sap/ui/mdc/enums/ChartP13nMode.js +48 -0
  65. package/src/sap/ui/mdc/enums/ChartToolbarActionType.js +49 -0
  66. package/src/sap/ui/mdc/enums/ConditionValidated.js +43 -0
  67. package/src/sap/ui/mdc/enums/ContentMode.js +74 -0
  68. package/src/sap/ui/mdc/enums/FieldDisplay.js +49 -0
  69. package/src/sap/ui/mdc/enums/FieldEditMode.js +55 -0
  70. package/src/sap/ui/mdc/enums/FilterBarP13nMode.js +36 -0
  71. package/src/sap/ui/mdc/enums/FilterBarValidationStatus.js +56 -0
  72. package/src/sap/ui/mdc/enums/LinkType.js +38 -0
  73. package/src/sap/ui/mdc/enums/OperatorOverwrite.js +34 -0
  74. package/src/sap/ui/mdc/enums/OperatorValueType.js +44 -0
  75. package/src/sap/ui/mdc/enums/PersistenceMode.js +44 -0
  76. package/src/sap/ui/mdc/enums/ProcessingStrategy.js +39 -0
  77. package/src/sap/ui/mdc/enums/ReasonMode.js +53 -0
  78. package/src/sap/ui/mdc/enums/TableGrowingMode.js +42 -0
  79. package/src/sap/ui/mdc/enums/TableMultiSelectMode.js +35 -0
  80. package/src/sap/ui/mdc/enums/TableP13nMode.js +54 -0
  81. package/src/sap/ui/mdc/enums/TableRowAction.js +30 -0
  82. package/src/sap/ui/mdc/enums/TableRowCountMode.js +36 -0
  83. package/src/sap/ui/mdc/enums/TableSelectionMode.js +45 -0
  84. package/src/sap/ui/mdc/enums/TableType.js +43 -0
  85. package/src/sap/ui/mdc/enums/ValueHelpPropagationReason.js +41 -0
  86. package/src/sap/ui/mdc/enums/ValueHelpSelectionType.js +46 -0
  87. package/src/sap/ui/mdc/field/ConditionType.js +120 -88
  88. package/src/sap/ui/mdc/field/ConditionsType.js +149 -44
  89. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  90. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +15 -17
  91. package/src/sap/ui/mdc/field/FieldBase.js +512 -323
  92. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +31 -114
  93. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +4 -4
  94. package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -21
  95. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  96. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  97. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  98. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +8 -29
  99. package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +2 -7
  100. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +2 -6
  101. package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
  102. package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -1
  103. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +0 -4
  104. package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
  105. package/src/sap/ui/mdc/field/content/ContentFactory.js +47 -35
  106. package/src/sap/ui/mdc/field/content/DateContent.js +49 -43
  107. package/src/sap/ui/mdc/field/content/DateTimeContent.js +2 -2
  108. package/src/sap/ui/mdc/field/content/DefaultContent.js +8 -8
  109. package/src/sap/ui/mdc/field/content/LinkContent.js +10 -6
  110. package/src/sap/ui/mdc/field/content/SearchContent.js +4 -4
  111. package/src/sap/ui/mdc/field/content/TimeContent.js +2 -2
  112. package/src/sap/ui/mdc/field/content/UnitContent.js +19 -11
  113. package/src/sap/ui/mdc/field/splitValue.js +45 -0
  114. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +109 -218
  115. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +22 -19
  116. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +6 -7
  117. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +2 -4
  118. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +3 -7
  119. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +52 -41
  120. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -4
  121. package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +1 -3
  122. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +4 -2
  123. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +14 -21
  124. package/src/sap/ui/mdc/filterbar/vh/FilterBarDelegate.js +1 -1
  125. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  126. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +2 -38
  127. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +3 -3
  128. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +11 -6
  129. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  130. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
  131. package/src/sap/ui/mdc/flexibility/GroupFlex.js +11 -2
  132. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +25 -9
  133. package/src/sap/ui/mdc/flexibility/SortFlex.js +11 -1
  134. package/src/sap/ui/mdc/flexibility/Util.js +2 -2
  135. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +7 -4
  136. package/src/sap/ui/mdc/library.js +178 -84
  137. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  138. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  139. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  140. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  141. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  142. package/src/sap/ui/mdc/link/Factory.js +1 -1
  143. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  144. package/src/sap/ui/mdc/link/LinkItem.js +26 -5
  145. package/src/sap/ui/mdc/link/Panel.js +1 -1
  146. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  147. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  148. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  149. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  150. package/src/sap/ui/mdc/messagebundle.properties +9 -0
  151. package/src/sap/ui/mdc/messagebundle_ar.properties +7 -1
  152. package/src/sap/ui/mdc/messagebundle_bg.properties +19 -13
  153. package/src/sap/ui/mdc/messagebundle_ca.properties +6 -0
  154. package/src/sap/ui/mdc/messagebundle_cs.properties +6 -0
  155. package/src/sap/ui/mdc/messagebundle_cy.properties +6 -0
  156. package/src/sap/ui/mdc/messagebundle_da.properties +6 -0
  157. package/src/sap/ui/mdc/messagebundle_de.properties +6 -0
  158. package/src/sap/ui/mdc/messagebundle_el.properties +13 -7
  159. package/src/sap/ui/mdc/messagebundle_en.properties +6 -0
  160. package/src/sap/ui/mdc/messagebundle_en_GB.properties +6 -0
  161. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +6 -0
  162. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +6 -0
  163. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +6 -0
  164. package/src/sap/ui/mdc/messagebundle_es.properties +6 -0
  165. package/src/sap/ui/mdc/messagebundle_es_MX.properties +6 -0
  166. package/src/sap/ui/mdc/messagebundle_et.properties +6 -0
  167. package/src/sap/ui/mdc/messagebundle_fi.properties +7 -1
  168. package/src/sap/ui/mdc/messagebundle_fr.properties +6 -0
  169. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +10 -4
  170. package/src/sap/ui/mdc/messagebundle_hi.properties +6 -0
  171. package/src/sap/ui/mdc/messagebundle_hr.properties +15 -9
  172. package/src/sap/ui/mdc/messagebundle_hu.properties +8 -2
  173. package/src/sap/ui/mdc/messagebundle_id.properties +6 -0
  174. package/src/sap/ui/mdc/messagebundle_it.properties +10 -4
  175. package/src/sap/ui/mdc/messagebundle_iw.properties +6 -0
  176. package/src/sap/ui/mdc/messagebundle_ja.properties +14 -8
  177. package/src/sap/ui/mdc/messagebundle_kk.properties +16 -10
  178. package/src/sap/ui/mdc/messagebundle_ko.properties +9 -3
  179. package/src/sap/ui/mdc/messagebundle_lt.properties +6 -0
  180. package/src/sap/ui/mdc/messagebundle_lv.properties +6 -0
  181. package/src/sap/ui/mdc/messagebundle_ms.properties +9 -3
  182. package/src/sap/ui/mdc/messagebundle_nl.properties +7 -1
  183. package/src/sap/ui/mdc/messagebundle_no.properties +6 -0
  184. package/src/sap/ui/mdc/messagebundle_pl.properties +8 -2
  185. package/src/sap/ui/mdc/messagebundle_pt.properties +6 -0
  186. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +6 -0
  187. package/src/sap/ui/mdc/messagebundle_ro.properties +6 -0
  188. package/src/sap/ui/mdc/messagebundle_ru.properties +6 -0
  189. package/src/sap/ui/mdc/messagebundle_sh.properties +6 -0
  190. package/src/sap/ui/mdc/messagebundle_sk.properties +8 -2
  191. package/src/sap/ui/mdc/messagebundle_sl.properties +6 -0
  192. package/src/sap/ui/mdc/messagebundle_sv.properties +6 -0
  193. package/src/sap/ui/mdc/messagebundle_th.properties +19 -13
  194. package/src/sap/ui/mdc/messagebundle_tr.properties +6 -0
  195. package/src/sap/ui/mdc/messagebundle_uk.properties +7 -1
  196. package/src/sap/ui/mdc/messagebundle_vi.properties +6 -0
  197. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +7 -1
  198. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +6 -0
  199. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  200. package/src/sap/ui/mdc/mixin/DelegateMixin.js +33 -14
  201. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +3 -5
  202. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  203. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  204. package/src/sap/ui/mdc/odata/TypeMap.js +155 -0
  205. package/src/sap/ui/mdc/odata/TypeUtil.js +42 -1
  206. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +17 -11
  207. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +5 -50
  208. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
  209. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +156 -44
  210. package/src/sap/ui/mdc/odata/v4/TypeMap.js +70 -0
  211. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -1
  212. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +8 -9
  213. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +380 -390
  214. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  215. package/src/sap/ui/mdc/p13n/StateUtil.js +6 -19
  216. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  217. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +43 -34
  218. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +3 -4
  219. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +1 -1
  220. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +4 -6
  221. package/src/sap/ui/mdc/table/Column.js +45 -17
  222. package/src/sap/ui/mdc/table/ColumnSettings.js +2 -5
  223. package/src/sap/ui/mdc/table/CreationRow.js +4 -6
  224. package/src/sap/ui/mdc/table/GridTableType.js +31 -115
  225. package/src/sap/ui/mdc/table/PropertyHelper.js +56 -11
  226. package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +2 -5
  227. package/src/sap/ui/mdc/table/ResponsiveTableType.js +13 -84
  228. package/src/sap/ui/mdc/table/RowActionItem.js +9 -14
  229. package/src/sap/ui/mdc/table/RowSettings.js +2 -5
  230. package/src/sap/ui/mdc/table/TableSettings.js +23 -19
  231. package/src/sap/ui/mdc/table/TableTypeBase.js +43 -15
  232. package/src/sap/ui/mdc/table/TreeTableType.js +12 -32
  233. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -5
  234. package/src/sap/ui/mdc/table/menu/Item.js +1 -1
  235. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +3 -3
  236. package/src/sap/ui/mdc/table/utils/Personalization.js +4 -4
  237. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +6 -6
  238. package/src/sap/ui/mdc/util/DateUtil.js +15 -11
  239. package/src/sap/ui/mdc/util/FilterUtil.js +44 -19
  240. package/src/sap/ui/mdc/util/IdentifierUtil.js +0 -1
  241. package/src/sap/ui/mdc/util/InfoBar.js +1 -2
  242. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  243. package/src/sap/ui/mdc/util/PropertyHelper.js +15 -8
  244. package/src/sap/ui/mdc/util/TypeMap.js +377 -0
  245. package/src/sap/ui/mdc/util/TypeUtil.js +35 -2
  246. package/src/sap/ui/mdc/util/mapVersions.js +225 -0
  247. package/src/sap/ui/mdc/valuehelp/Dialog.js +52 -33
  248. package/src/sap/ui/mdc/valuehelp/Popover.js +33 -35
  249. package/src/sap/ui/mdc/valuehelp/base/Container.js +193 -62
  250. package/src/sap/ui/mdc/valuehelp/base/Content.js +134 -57
  251. package/src/sap/ui/mdc/{field → valuehelp/base}/DefineConditionPanel.js +426 -197
  252. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -2
  253. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +140 -47
  254. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +11 -9
  255. package/src/sap/ui/mdc/valuehelp/content/Bool.js +11 -20
  256. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +26 -32
  257. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +14 -17
  258. package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +60 -0
  259. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +194 -199
  260. package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -51
  261. package/test/sap/ui/mdc/testutils/opa/chart/AssertionsViz.js +4 -4
  262. package/test/sap/ui/mdc/testutils/opa/field/Actions.js +1 -1
  263. package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +3 -3
  264. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +4 -2
  265. package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +1 -1
  266. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +41 -70
  267. package/test/sap/ui/mdc/testutils/opa/valueHelp/doWait.js +1 -1
  268. package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +0 -21
  269. package/src/sap/ui/mdc/util/FormatUtil.js +0 -82
@@ -4,18 +4,22 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- // Provides control sap.ui.mdc.filterbar.FilterItemLayout.
8
7
  sap.ui.define([
9
8
  'sap/ui/core/Element'
10
9
  ], function(Element) {
11
10
  "use strict";
12
11
 
12
+ /**
13
+ * @class The <code>IFilterContainer</code> is the base container for the visualization of the filter items in the filter bar.
14
+ * @public
15
+ * @since 1.61.0
16
+ * @alias sap.ui.mdc.filterbar.IFilterContainer
17
+ */
13
18
  var IFilterContainer = Element.extend("sap.ui.mdc.filterbar.IFilterContainer");
14
19
 
15
20
  /**
16
- * Creates the inner layout for the IFilterContainer.
17
- * @protected
18
- * @ui5-restricted sap.ui.mdc, sap.fe
21
+ * Creates the inner layout for the <code>IFilterContainer</code>.
22
+ * @public
19
23
  */
20
24
  IFilterContainer.prototype.init = function() {
21
25
  Element.prototype.init.apply(this, arguments);
@@ -24,46 +28,45 @@ sap.ui.define([
24
28
 
25
29
  /**
26
30
  * Getter for the inner layout item.
27
- * @returns {sap.ui.core.Control} Control instance of the inner layout item.
28
- * @protected
29
- * @ui5-restricted sap.ui.mdc, sap.fe
31
+ * @returns {sap.ui.core.Control} Control instance of the inner layout item
32
+ * @public
30
33
  */
31
34
  IFilterContainer.prototype.getInner = function(){
32
35
  return this.oLayout;
33
36
  };
34
37
 
35
38
  /**
36
- * Insert the inner content to the layout item.
37
- * @protected
39
+ * Inserts the inner content into the layout item.
40
+ * @public
41
+ * @param {sap.ui.mdc.FilterItem} oControl to be inserted
42
+ * @param {int} iIndex Position where the control is added
38
43
  */
39
44
  IFilterContainer.prototype.insertFilterField = function(oControl, iIndex) {
40
45
  //insert the content to the inner layout this.oLayout
41
46
  };
42
47
 
43
48
  /**
44
- * Remove the inner content from the layout item.
45
- * @protected
46
- * @ui5-restricted sap.ui.mdc, sap.fe
49
+ * Removes the inner content from the layout item.
50
+ * @public
51
+ * @param {sap.ui.mdc.FilterItem} oControl Control that is removed
47
52
  */
48
53
  IFilterContainer.prototype.removeFilterField = function(oControl) {
49
54
  //remove the content from the inner layout this.oLayout
50
55
  };
51
56
 
52
57
  /**
53
- * Insert the inner content to the layout item.
54
- * @returns {Array} Array of all inner controls in the layout item.
55
- * @protected
56
- * @ui5-restricted sap.ui.mdc, sap.fe
58
+ * Returns the inner controls of the layout item.
59
+ * @returns {sap.ui.mdc.FilterItem[]} Array of all inner controls in the layout item
60
+ * @public
57
61
  */
58
62
  IFilterContainer.prototype.getFilterFields = function() {
59
63
  //return the inner controls as array
60
64
  };
61
65
 
62
66
  /**
63
- * Overwrite the default 'exit' to cleanup the created layout properly
67
+ * Overwrites the default exit to clean up the created layout properly.
64
68
  *
65
- * @protected
66
- * @ui5-restricted sap.ui.mdc, sap.fe
69
+ * @public
67
70
  */
68
71
  IFilterContainer.prototype.exit = function() {
69
72
  Element.prototype.exit.apply(this, arguments);
@@ -20,17 +20,16 @@ sap.ui.define([
20
20
  * A reference to an instance that will act as the parent of this helper
21
21
  *
22
22
  * @class
23
- * Filter bar property helpers give a consistent and standardized view on properties and their attributes.
24
- * Validates the given properties, sets defaults, and provides utilities to work with these properties.
23
+ * Filter bar property helper provide a consistent and standardized view on properties and their attributes.
24
+ * Validates the given properties, sets default values, and provides utilities to work with these properties.
25
25
  * The utilities can only be used for properties that are known to the helper. Known properties are all those that are passed to the constructor.
26
26
  *
27
27
  * @extends sap.ui.mdc.util.PropertyHelper
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.113.0
30
+ * @version 1.115.0
31
31
  *
32
32
  * @private
33
- * @experimental
34
33
  * @since 1.95
35
34
  * @alias sap.ui.mdc.filterbar.PropertyHelper
36
35
  */
@@ -49,9 +48,9 @@ sap.ui.define([
49
48
 
50
49
 
51
50
  /**
52
- * Applies defaults and resolves property references.
51
+ * Applies default values and resolves property references.
53
52
  *
54
- * @param {object} oProperty The property to prepare
53
+ * @param {object} oProperty The passed property
55
54
  * @protected
56
55
  */
57
56
  PropertyHelper.prototype.prepareProperty = function(oProperty) {
@@ -60,7 +59,7 @@ sap.ui.define([
60
59
 
61
60
  var oParent = this.getParent();
62
61
  if (oParent && oParent._oDelegate) {
63
- var oTypeUtil = oParent._oDelegate.getTypeUtil();
62
+ var oTypeUtil = oParent._oDelegate.getTypeMap(oParent);
64
63
  try {
65
64
  oProperty.typeConfig = oTypeUtil.getTypeConfig(oProperty.dataType, oProperty.formatOptions, oProperty.constraints);
66
65
  } catch (ex) {
@@ -4,7 +4,6 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- // Provides control sap.ui.mdc.filterbar.aligned.FilterItemLayout.
8
7
  sap.ui.define([
9
8
  'sap/ui/mdc/filterbar/IFilterContainer', 'sap/ui/layout/AlignedFlowLayout'
10
9
  ], function(IFilterContainer, AlignedFlowLayout) {
@@ -12,11 +11,10 @@ sap.ui.define([
12
11
  /**
13
12
  * Constructor for a new filterBar/aligned/FilterContainer.
14
13
  * @param {string} [sId] ID for the new control, generated automatically if no ID is given
15
- * @class The FilterContainer is a IFilterContainer implementation for <code>AlignedFlowLayout</code>
14
+ * @class The <code>FilterContainer</code> is an {@link sap.ui.layout.IFilterContainer IFilterContainer} implementation for {@link sap.ui.layout.AlignedFlowLayout AlignedFlowLayout}.
15
+ * It is used by the {@link sap.ui.mdc.FilterBar FilterBar} to display the filter items.
16
16
  * @extends sap.ui.mdc.filterbar.IFilterContainer
17
17
  * @constructor
18
- * @private
19
- * @ui5-restricted sap.ui.mdc, sap.fe
20
18
  * @since 1.80.0
21
19
  * @alias sap.ui.mdc.filterbar.aligned.FilterContainer
22
20
  */
@@ -16,8 +16,6 @@ sap.ui.define(['sap/ui/layout/VerticalLayout', 'sap/ui/layout/VerticalLayoutRend
16
16
  * @class Represents a filter item on the UI.
17
17
  * @extends sap.ui.layout.VerticalLayout
18
18
  * @constructor
19
- * @private
20
- * @ui5-restricted sap.ui.mdc, sap.fe
21
19
  * @since 1.61.0
22
20
  * @alias sap.ui.mdc.filterbar.aligned.FilterItemLayout
23
21
  */
@@ -37,7 +35,7 @@ sap.ui.define(['sap/ui/layout/VerticalLayout', 'sap/ui/layout/VerticalLayoutRend
37
35
 
38
36
  oFilterField.connectLabel(this._oLabel);
39
37
 
40
- if (oFilterField.getFieldPath() === "$search") {
38
+ if (this._getFieldPath() === "$search") {
41
39
  this._oLabel.setText("\u2008");
42
40
  } else {
43
41
  this._oLabel.addStyleClass("sapUiMdcFilterBarBaseLabel");
@@ -49,13 +47,12 @@ sap.ui.define(['sap/ui/layout/VerticalLayout', 'sap/ui/layout/VerticalLayoutRend
49
47
  };
50
48
 
51
49
  FilterItemLayout.prototype._getFieldPath = function () {
52
- return this._sFieldPath;
50
+ return this._oFilterField ? this._oFilterField.getPropertyKey() : null;
53
51
  };
54
52
 
55
53
  FilterItemLayout.prototype.setFilterField = function (oFilterField) {
56
- this._setLabel(oFilterField);
57
54
  this._oFilterField = oFilterField;
58
- this._sFieldPath = oFilterField.getFieldPath();
55
+ this._setLabel(oFilterField);
59
56
  };
60
57
 
61
58
  FilterItemLayout.prototype.getContent = function () {
@@ -68,7 +65,6 @@ sap.ui.define(['sap/ui/layout/VerticalLayout', 'sap/ui/layout/VerticalLayoutRend
68
65
 
69
66
  FilterItemLayout.prototype.exit = function () {
70
67
  this._oFilterField = null;
71
- this._sFieldPath = null;
72
68
 
73
69
  if (this._oLabel && !this._oLabel.bIsDestroyed) {
74
70
  this._oLabel.destroy();
@@ -4,8 +4,20 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- "sap/ui/core/library", "sap/ui/mdc/p13n/subcontroller/FilterController", "sap/ui/mdc/p13n/subcontroller/AdaptFiltersController", "sap/ui/mdc/filterbar/p13n/GroupContainer", "sap/ui/mdc/filterbar/p13n/FilterColumnLayout", "sap/ui/mdc/filterbar/p13n/FilterGroupLayout","sap/ui/mdc/filterbar/p13n/TableContainer", "sap/ui/mdc/filterbar/FilterBarBase", "sap/ui/mdc/filterbar/FilterBarBaseRenderer", "sap/base/util/merge", "sap/ui/core/Core", "sap/ui/mdc/enum/PersistenceMode"
8
- ], function(coreLibrary, FilterController, AdaptFiltersController, GroupContainer, FilterColumnLayout, FilterGroupLayout, TableContainer, FilterBarBase, FilterBarBaseRenderer, merge, Core, PersistenceMode) {
7
+ "sap/ui/core/library",
8
+ "sap/ui/mdc/p13n/subcontroller/FilterController",
9
+ "sap/ui/mdc/p13n/subcontroller/AdaptFiltersController",
10
+ "sap/ui/mdc/filterbar/p13n/GroupContainer",
11
+ "sap/ui/mdc/filterbar/p13n/FilterColumnLayout",
12
+ "sap/ui/mdc/filterbar/p13n/FilterGroupLayout",
13
+ "sap/ui/mdc/filterbar/p13n/TableContainer",
14
+ "sap/ui/mdc/filterbar/FilterBarBase",
15
+ "sap/ui/mdc/filterbar/FilterBarBaseRenderer",
16
+ "sap/base/util/merge",
17
+ "sap/ui/core/Core",
18
+ "sap/ui/mdc/enums/PersistenceMode",
19
+ "sap/ui/mdc/util/mapVersions"
20
+ ], function(coreLibrary, FilterController, AdaptFiltersController, GroupContainer, FilterColumnLayout, FilterGroupLayout, TableContainer, FilterBarBase, FilterBarBaseRenderer, merge, Core, PersistenceMode, mapVersions) {
9
21
  "use strict";
10
22
 
11
23
  var ValueState = coreLibrary.ValueState;
@@ -20,7 +32,7 @@ sap.ui.define([
20
32
  *
21
33
  * @extends sap.ui.mdc.filterbar.FilterBarBase
22
34
  * @author SAP SE
23
- * @version 1.113.0
35
+ * @version 1.115.0
24
36
  * @constructor
25
37
  * @private
26
38
  * @ui5-restricted sap.ui.mdc
@@ -68,7 +80,6 @@ sap.ui.define([
68
80
  AdaptationFilterBar.prototype.init = function() {
69
81
  FilterBarBase.prototype.init.apply(this,arguments);
70
82
  this.addStyleClass("sapUIAdaptationFilterBar");
71
- this._bPersistValues = true;
72
83
 
73
84
  this.getEngine().defaultProviderRegistry.attach(this, PersistenceMode.Transient);
74
85
  this._fnResolveAdaptationControlPromise = null;
@@ -79,7 +90,7 @@ sap.ui.define([
79
90
 
80
91
  /**
81
92
  * This method will be called whenever the <code>AdaptationFilterBar</code> will be instantiated in a Dialog using the
82
- * <code>sap.m.p13n.UIManager</code>. This flag determines whether the control should be destroyed or kept alive once the p13n
93
+ * {@link sap.m.p13n.UIManager}. This flag determines whether the control should be destroyed or kept alive once the p13n
83
94
  * dialog closes.
84
95
  *
85
96
  * @private
@@ -137,17 +148,15 @@ sap.ui.define([
137
148
  // path in the model. Once the key reference between FilterFields, Columns and property info object has been aligned,
138
149
  // the below fallback logic will become obsolete.
139
150
  AdaptationFilterBar.prototype._getPropertyByName = function(sName) {
151
+
152
+ var oProperty = FilterBarBase.prototype._getPropertyByName.apply(this, arguments);
140
153
  var oPropertyHelper = this.getPropertyHelper();
141
- if (oPropertyHelper) {
142
- var oProperty = oPropertyHelper.getProperties().find(function(oProp){
143
- return oProp.path === sName;
154
+ if (!oProperty || (oProperty.filterable === false)) {
155
+ oProperty = oPropertyHelper.getProperties().find(function(oProp){
156
+ return oProp.path === sName && oProp.filterable;
144
157
  });
145
-
146
- if (!oProperty) {
147
- oProperty = oPropertyHelper.getPropertyMap()[sName] || null;
148
- }
149
- return oProperty;
150
158
  }
159
+ return oProperty;
151
160
  };
152
161
 
153
162
  AdaptationFilterBar.prototype._waitForAdaptControlAndPropertyHelper = function(){
@@ -160,7 +169,7 @@ sap.ui.define([
160
169
 
161
170
  AdaptationFilterBar.prototype._initControlDelegate = function() {
162
171
  return this.initControlDelegate().then(function() {
163
- //this.getTypeUtil();
172
+ //this.getTypeMap();
164
173
  if (!this._bIsBeingDestroyed) {
165
174
  this._applyInitialFilterConditions();
166
175
  }
@@ -196,11 +205,15 @@ sap.ui.define([
196
205
  };
197
206
 
198
207
  AdaptationFilterBar.prototype.getTypeUtil = function() {
208
+ return this.getTypeMap();
209
+ };
210
+
211
+ AdaptationFilterBar.prototype.getTypeMap = function() {
199
212
  if (!this._getAdaptationControlInstance()) {
200
213
  throw new Error("No adaptation control assigned yet.");
201
214
  }
202
215
 
203
- return this._getAdaptationControlInstance().getTypeUtil();
216
+ return this._getAdaptationControlInstance().getTypeMap();
204
217
  };
205
218
 
206
219
  AdaptationFilterBar.prototype.setMessageStrip = function(oStrip) {
@@ -247,26 +260,20 @@ sap.ui.define([
247
260
  AdaptationFilterBar.prototype.createConditionChanges = function() {
248
261
  return Promise.all([this._oAdaptationControlPromise, this.awaitControlDelegate()]).then(function() {
249
262
  var mConditions = this._getModelConditions(this._getConditionModel(), false, true);
250
- if (this._bPersistValues) {
251
- //this._getAdaptationControlInstance(), "Filter", mConditions, true, true
252
- return this.getEngine().createChanges({
253
- control: this._getAdaptationControlInstance(),
254
- applyAbsolute: true,
255
- key: "Filter",
256
- state: mConditions,
257
- suppressAppliance: true
258
- });
259
- } else {
260
- //TODO: currently only required once the parent FilterBar has p13nMode 'value' disabled.
261
- this._getAdaptationControlInstance()._setXConditions(mConditions);
262
- return Promise.resolve(null);
263
- }
264
- }.bind(this));
263
+
264
+ return this.getEngine().createChanges({
265
+ control: this._getAdaptationControlInstance(),
266
+ applyAbsolute: true,
267
+ key: "Filter",
268
+ state: mConditions,
269
+ suppressAppliance: true
270
+ });
271
+ }.bind(this));
265
272
  };
266
273
 
267
274
  /**
268
275
  *
269
- * Please note that the provided model should be created with sap.ui.mdc.p13n.P13nBuilder
276
+ * Please note that the provided model should be created with {@link sap.ui.mdc.p13n.P13nBuilder}
270
277
  *
271
278
  * @param {object[]} aP13nData Necessary data to display and create <code>FilterColumnLayout</code> instances.
272
279
  *
@@ -283,7 +290,7 @@ sap.ui.define([
283
290
  oP13nData.forEach(function(oP13nItem){
284
291
  var oFilterField = this.mFilterFields && this.mFilterFields[oP13nItem.name];
285
292
  if (oFilterField) {
286
- var sKey = oFilterField.getFieldPath();
293
+ var sKey = oFilterField.getPropertyKey();
287
294
  if (mConditions[sKey] && mConditions[sKey].length > 0) {
288
295
  oP13nItem.active = true;
289
296
  }
@@ -318,19 +325,22 @@ sap.ui.define([
318
325
  */
319
326
  AdaptationFilterBar.prototype.createFilterFields = function(){
320
327
  return this.initializedWithMetadata().then(function(){
321
- var mConditions = this._bPersistValues ? this._getAdaptationControlInstance().getFilterConditions() : this._getAdaptationControlInstance()._getXConditions();
328
+ var mConditions = this._getAdaptationControlInstance().getFilterConditions();
322
329
 
323
330
  this.setFilterConditions(mConditions);
324
- this._setXConditions(mConditions);
331
+ var pConditions = this._setXConditions(mConditions);
325
332
 
326
333
  if (this._bFilterFieldsCreated) {
327
- this._oFilterBarLayout.setP13nData(this.getP13nData());
328
- return this;
334
+ return pConditions.then(function(){
335
+ this._oFilterBarLayout.setP13nData(this.getP13nData());
336
+ return this;
337
+ }.bind(this));
329
338
  }
330
339
 
331
340
  var oAdaptationControl = this._getAdaptationControlInstance();
332
341
  var oDelegate = oAdaptationControl.getControlDelegate();
333
342
  var oFilterDelegate = this._checkAdvancedParent(oAdaptationControl) ? oDelegate : oDelegate.getFilterDelegate();
343
+ mapVersions(oFilterDelegate);
334
344
 
335
345
  //used to store the originals
336
346
  this._mOriginalsForClone = {};
@@ -354,7 +364,7 @@ sap.ui.define([
354
364
  if (this._checkAdvancedParent(oAdaptationControl)) {
355
365
  if (oFilterField._bTemporaryOriginal) {
356
366
  delete oFilterFieldPromise._bTemporaryOriginal;
357
- this._mOriginalsForClone[oFilterField.getFieldPath()] = oFilterField;
367
+ this._mOriginalsForClone[oFilterField.getPropertyKey()] = oFilterField;
358
368
  }
359
369
  oFieldForDialog = oFilterField.clone();
360
370
 
@@ -406,7 +416,7 @@ sap.ui.define([
406
416
  var aExistingItems = this._checkAdvancedParent(oAdaptationControl) ? oAdaptationControl.getFilterItems() : [];
407
417
 
408
418
  var mExistingFilterItems = aExistingItems.reduce(function(mMap, oField){
409
- mMap[oField.getFieldPath()] = oField;
419
+ mMap[oField.getPropertyKey()] = oField;
410
420
  return mMap;
411
421
  },{});
412
422
 
@@ -414,7 +424,7 @@ sap.ui.define([
414
424
  oFilterFieldPromise = Promise.resolve(mExistingFilterItems[oItem.name]);
415
425
  } else {
416
426
 
417
- oFilterFieldPromise = oFilterDelegate.addItem(oItem.name, this._getAdaptationControlInstance());
427
+ oFilterFieldPromise = oFilterDelegate.addItem(this._getAdaptationControlInstance(), oItem.name);
418
428
 
419
429
  oFilterFieldPromise = oFilterFieldPromise.then(function(oFilterField){
420
430
 
@@ -439,7 +449,7 @@ sap.ui.define([
439
449
  var oDelegate = this._getAdaptationControlInstance().getControlDelegate();
440
450
 
441
451
  if (aExistingItems.indexOf(sKey) < 0) {//Originals that have not been selected --> use continue similar to 'ItemBaseFlex'
442
- var oRemovePromise = oDelegate.removeItem.call(oDelegate, sKey, this._getAdaptationControlInstance()).then(function(bContinue){
452
+ var oRemovePromise = oDelegate.removeItem.call(oDelegate, this._getAdaptationControlInstance(), sKey).then(function(bContinue){
443
453
  if (bContinue && this._mOriginalsForClone[sKey]) {
444
454
  // destroy the item
445
455
  this._mOriginalsForClone[sKey].destroy();
@@ -466,6 +476,7 @@ sap.ui.define([
466
476
  *
467
477
  * @param {sap.ui.mdc.Control} oControl the mdc control instance
468
478
  * @param {boolean} bSuppressInvalidate suppress invalidation
479
+ * @return {sap.ui.mdc.filterbar.p13n.AdaptationFilterBar} this
469
480
  */
470
481
  AdaptationFilterBar.prototype.setAdaptationControl = function(oControl, bSuppressInvalidate) {
471
482
 
@@ -487,7 +498,7 @@ sap.ui.define([
487
498
  if (oEvt.getParameter("reason") === "Remove") {
488
499
  var oItem = oEvt.getParameter("item");
489
500
  var mConditions = {};
490
- mConditions[this.mFilterFields[oItem.name].getFieldPath()] = [];
501
+ mConditions[this.mFilterFields[oItem.name].getPropertyKey()] = [];
491
502
 
492
503
  return this.getEngine().createChanges({
493
504
  control: this,
@@ -30,13 +30,12 @@ sap.ui.define(['sap/m/ColumnListItem', 'sap/m/ColumnListItemRenderer', 'sap/m/La
30
30
  });
31
31
 
32
32
  FilterColumnLayout.prototype._getFieldPath = function () {
33
- return this._sFieldPath;
33
+ return this._oFilterField ? this._oFilterField.getPropertyKey() : null;
34
34
  };
35
35
 
36
36
  FilterColumnLayout.prototype.setFilterField = function (oFilterField) {
37
- this._sLabel = oFilterField.getLabel();
38
37
  this._oFilterField = oFilterField;
39
- this._sFieldPath = oFilterField.getFieldPath();
38
+ this._sLabel = oFilterField.getLabel();
40
39
  };
41
40
 
42
41
  FilterColumnLayout.prototype.getCells = function() {
@@ -58,7 +57,6 @@ sap.ui.define(['sap/m/ColumnListItem', 'sap/m/ColumnListItemRenderer', 'sap/m/La
58
57
  FilterColumnLayout.prototype.exit = function () {
59
58
  ColumnListItem.prototype.exit.apply(this, arguments);
60
59
  this._oFilterField = null;
61
- this._sFieldPath = null;
62
60
  };
63
61
 
64
62
  return FilterColumnLayout;
@@ -35,12 +35,11 @@ sap.ui.define(['sap/ui/core/Control'
35
35
  });
36
36
 
37
37
  FilterGroupLayout.prototype._getFieldPath = function () {
38
- return this._sFieldPath;
38
+ return this._oFilterField ? this._oFilterField.getPropertyKey() : null;
39
39
  };
40
40
 
41
41
  FilterGroupLayout.prototype.setFilterField = function (oFilterField) {
42
42
  this._oFilterField = oFilterField;
43
- this._sFieldPath = oFilterField.getFieldPath();
44
43
  };
45
44
 
46
45
  FilterGroupLayout.prototype.getIdForLabel = function () {
@@ -62,7 +61,6 @@ sap.ui.define(['sap/ui/core/Control'
62
61
  FilterGroupLayout.prototype.exit = function () {
63
62
  Control.prototype.exit.apply(this, arguments);
64
63
  this._oFilterField = null;
65
- this._sFieldPath = null;
66
64
  };
67
65
 
68
66
  return FilterGroupLayout;
@@ -58,8 +58,10 @@ sap.ui.define([
58
58
 
59
59
  TableContainer.prototype.insertFilterField = function(oControl, iIndex) {
60
60
  var oFilterBar = oControl._oFilterField.getParent();
61
- var sKey = oFilterBar._getPropertyByName(oControl._getFieldPath()).name;
62
- this.mFilterItems[sKey] = oControl;
61
+ var oProperty = oFilterBar._getPropertyByName(oControl._getFieldPath());
62
+ if (oProperty) {
63
+ this.mFilterItems[oProperty.name] = oControl;
64
+ }
63
65
  };
64
66
 
65
67
  TableContainer.prototype.setP13nData = function(oAdaptationData) {
@@ -11,7 +11,7 @@ sap.ui.define(
11
11
  "sap/ui/mdc/filterbar/aligned/FilterItemLayout",
12
12
  "sap/ui/mdc/filterbar/vh/FilterContainer",
13
13
  "sap/m/Button",
14
- "sap/ui/mdc/enum/PersistenceMode"
14
+ "sap/ui/mdc/enums/PersistenceMode"
15
15
  ],
16
16
  function (
17
17
  mLibrary,
@@ -40,9 +40,7 @@ sap.ui.define(
40
40
  * @namespace
41
41
  * @name sap.ui.mdc.filterbar.vh
42
42
  * @since 1.84.0
43
- * @private
44
- * @experimental As of version 1.84
45
- * @ui5-restricted sap.ui.mdc
43
+ * @public
46
44
  */
47
45
 
48
46
  /**
@@ -56,11 +54,9 @@ sap.ui.define(
56
54
  * The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
57
55
  * @extends sap.ui.mdc.filterbar.FilterBarBase
58
56
  * @author SAP SE
59
- * @version 1.113.0
57
+ * @version 1.115.0
60
58
  * @constructor
61
- * @private
62
- * @ui5-restricted sap.fe
63
- * @MDC_PUBLIC_CANDIDATE
59
+ * @public
64
60
  * @since 1.84.0
65
61
  * @alias sap.ui.mdc.filterbar.vh.FilterBar
66
62
  */
@@ -70,6 +66,13 @@ sap.ui.define(
70
66
  metadata: {
71
67
  library: "sap.ui.mdc",
72
68
  properties: {
69
+ /**
70
+ * Path to the <code>Delegate</code> module that provides the required APIs to execute model-specific logic.<br>
71
+ * <b>Note:</b> Ensure that the related file can be requested (any required library has to be loaded before that).<br>
72
+ * Do not bind or modify the module. This property can only be configured during control initialization.
73
+ *
74
+ * @experimental
75
+ */
73
76
  delegate: {
74
77
  type: "object",
75
78
  defaultValue: {
@@ -156,29 +159,19 @@ sap.ui.define(
156
159
 
157
160
  this._oFilterBarLayout.addControl(this._oBtnFilters);
158
161
 
159
-
160
162
  this._oShowAllFiltersBtn = new Button(this.getId() + "-btnShowAllFilters", {
161
163
  type: ButtonType.Transparent,
162
164
  press: this._onShowAllFilters.bind(this),
163
- text: this._oRb.getText("valuehelp.SHOWALLFILTERS")
165
+ text: this._oRb.getText("valuehelp.SHOWALLFILTERS"),
166
+ visible: false
164
167
  });
165
- this._oFilterBarLayout.addEndContent(this._oShowAllFiltersBtn);
166
- };
167
168
 
168
- FilterBar.prototype.applySettings = function(mSettings, oScope) {
169
- this._applySettings(mSettings, oScope);
170
- this._waitForMetadata();
171
- };
172
-
173
- FilterBar.prototype._handleConditionModelPropertyChange = function() {
174
- FilterBarBase.prototype._handleConditionModelPropertyChange.apply(this, arguments);
175
- this.fireFiltersChanged({conditionsBased: true});
169
+ this._oFilterBarLayout.addEndContent(this._oShowAllFiltersBtn);
176
170
  };
177
171
 
178
172
 
179
173
  FilterBar.prototype.init = function() {
180
174
  FilterBarBase.prototype.init.apply(this, arguments);
181
- this._bPersistValues = true;
182
175
  this.getEngine().defaultProviderRegistry.attach(this, PersistenceMode.Transient);
183
176
  };
184
177
 
@@ -16,7 +16,7 @@ sap.ui.define(["sap/ui/mdc/FilterBarDelegate"], function(FilterBarDelegate) {
16
16
  ValueHelpFilterBarDelegate.fetchProperties = function(oFilterBar) {
17
17
  return Promise.resolve([{
18
18
  name: "$search",
19
- typeConfig: FilterBarDelegate.getTypeUtil().getTypeConfig("String", null, null)
19
+ typeConfig: FilterBarDelegate.getTypeMap().getTypeConfig("String", null, null)
20
20
  }]);
21
21
  };
22
22
 
@@ -12,7 +12,7 @@ sap.ui.define([
12
12
  *
13
13
  * @alias sap.ui.mdc.flexibility.Chart
14
14
  * @author SAP SE
15
- * @version 1.113.0
15
+ * @version 1.115.0
16
16
  */
17
17
  return {
18
18
  addItem: ChartItemFlex.addItem,
@@ -11,24 +11,8 @@ sap.ui.define([
11
11
 
12
12
  var oChartItemFlex = Object.assign({}, ItemBaseFlex);
13
13
 
14
- /* Disabled until clarified with flex
15
- var fnQueueChange = function(oControl, fTask) {
16
- var fCleanupPromiseQueue = function(pOriginalPromise) {
17
- if (oControl._pQueue === pOriginalPromise){
18
- delete oControl._pQueue;
19
- }
20
- };
21
-
22
- oControl._pQueue = oControl._pQueue instanceof Promise ? oControl._pQueue.then(fTask) : fTask();
23
- oControl._pQueue.then(fCleanupPromiseQueue.bind(null, oControl._pQueue));
24
-
25
- return oControl._pQueue;
26
- };*/
27
-
28
- oChartItemFlex.beforeAddItem = function(Delegate, sDataPropertyName, oControl, mPropertyBag, oChangeContent) {
29
-
30
- return Delegate.addItem.call(Delegate, sDataPropertyName, oControl, mPropertyBag, oChangeContent.role);
31
-
14
+ oChartItemFlex.beforeAddItem = function(Delegate, sPropertyKey, oControl, mPropertyBag, oChangeContent) {
15
+ return Delegate.addItem.call(Delegate, oControl, sPropertyKey, mPropertyBag, oChangeContent.role);
32
16
  };
33
17
 
34
18
  oChartItemFlex.findItem = function(oModifier, aItems, sName) {
@@ -51,26 +35,6 @@ sap.ui.define([
51
35
  }, Promise.resolve());
52
36
  };
53
37
 
54
- /* Disabled until clarified with flex
55
- oChartItemFlex.createChangeHandler = function(fApply, fComplete, fRevert) {
56
- return {
57
- "changeHandler": {
58
- applyChange: function(oChange, oControl, mPropertyBag) {
59
- return fnQueueChange(oControl, function(){return fApply(oChange, oControl, mPropertyBag);});
60
- },
61
- completeChangeContent: function(oChange, mChangeSpecificInfo, mPropertyBag) {
62
- fComplete(oChange, mChangeSpecificInfo, mPropertyBag);
63
- },
64
- revertChange: function(oChange, oControl, mPropertyBag) {
65
- return fnQueueChange(fRevert(oChange, oControl, mPropertyBag, true));
66
- }
67
- },
68
- "layers": {
69
- "USER": true
70
- }
71
- };
72
- };*/
73
-
74
38
  oChartItemFlex.addItem = oChartItemFlex.createAddChangeHandler();
75
39
  oChartItemFlex.removeItem = oChartItemFlex.createRemoveChangeHandler();
76
40
  oChartItemFlex.moveItem = oChartItemFlex.createMoveChangeHandler();
@@ -17,9 +17,9 @@ sap.ui.define([
17
17
  .then(function(oFoundColumn) {
18
18
  if (!oFoundColumn) {
19
19
  return Promise.resolve()
20
- .then(oModifier.getProperty.bind(oModifier, oColumn, "dataProperty"))
21
- .then(function(sDataProperty) {
22
- if (sDataProperty === sName) {
20
+ .then(oModifier.getProperty.bind(oModifier, oColumn, "propertyKey"))
21
+ .then(function(sPropertyKey) {
22
+ if (sPropertyKey === sName) {
23
23
  return oColumn;
24
24
  }
25
25
  });