@openui5/sap.ui.mdc 1.112.2 → 1.114.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 (208) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +4 -4
  3. package/src/sap/ui/mdc/.library +1 -1
  4. package/src/sap/ui/mdc/ActionToolbar.js +5 -4
  5. package/src/sap/ui/mdc/BaseDelegate.js +49 -15
  6. package/src/sap/ui/mdc/Chart.js +167 -147
  7. package/src/sap/ui/mdc/ChartDelegate.js +525 -481
  8. package/src/sap/ui/mdc/Control.js +3 -2
  9. package/src/sap/ui/mdc/DefaultTypeMap.js +72 -0
  10. package/src/sap/ui/mdc/Element.js +3 -2
  11. package/src/sap/ui/mdc/Field.js +53 -17
  12. package/src/sap/ui/mdc/FilterBar.js +24 -11
  13. package/src/sap/ui/mdc/FilterBarDelegate.js +40 -55
  14. package/src/sap/ui/mdc/FilterField.js +17 -8
  15. package/src/sap/ui/mdc/Link.js +69 -55
  16. package/src/sap/ui/mdc/LinkDelegate.js +26 -30
  17. package/src/sap/ui/mdc/MultiValueField.js +42 -4
  18. package/src/sap/ui/mdc/Table.js +276 -178
  19. package/src/sap/ui/mdc/TableDelegate.js +187 -16
  20. package/src/sap/ui/mdc/ValueHelp.js +13 -14
  21. package/src/sap/ui/mdc/ValueHelpDelegate.js +12 -7
  22. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +4 -9
  23. package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +194 -197
  24. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -4
  25. package/src/sap/ui/mdc/chart/ChartToolbar.js +1 -1
  26. package/src/sap/ui/mdc/chart/ChartTypeButton.js +42 -56
  27. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +3 -3
  28. package/src/sap/ui/mdc/chart/DrillStackHandler.js +60 -69
  29. package/src/sap/ui/mdc/chart/Item.js +13 -13
  30. package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -7
  31. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +24 -15
  32. package/src/sap/ui/mdc/condition/Condition.js +21 -15
  33. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  34. package/src/sap/ui/mdc/condition/ConditionModel.js +6 -149
  35. package/src/sap/ui/mdc/condition/ConditionModelPropertyBinding.js +5 -3
  36. package/src/sap/ui/mdc/condition/FilterConverter.js +2 -22
  37. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +910 -22
  38. package/src/sap/ui/mdc/condition/Operator.js +78 -42
  39. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +3 -2
  40. package/src/sap/ui/mdc/condition/RangeOperator.js +104 -104
  41. package/src/sap/ui/mdc/enum/ConditionValidated.js +4 -1
  42. package/src/sap/ui/mdc/enum/ContentMode.js +1 -1
  43. package/src/sap/ui/mdc/enum/EditMode.js +7 -7
  44. package/src/sap/ui/mdc/enum/FieldDisplay.js +3 -3
  45. package/src/sap/ui/mdc/enum/LinkType.js +46 -0
  46. package/src/sap/ui/mdc/enum/OperatorOverwrite.js +34 -0
  47. package/src/sap/ui/mdc/field/ConditionType.js +30 -30
  48. package/src/sap/ui/mdc/field/ConditionsType.js +5 -5
  49. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  50. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +22 -10
  51. package/src/sap/ui/mdc/field/FieldBase.js +128 -40
  52. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +17 -28
  53. package/src/sap/ui/mdc/field/FieldInfoBase.js +29 -14
  54. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  55. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  56. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  57. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +9 -29
  58. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -2
  59. package/src/sap/ui/mdc/field/TokenDisplay.js +2 -2
  60. package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
  61. package/src/sap/ui/mdc/field/content/ContentFactory.js +1 -1
  62. package/src/sap/ui/mdc/field/content/DateContent.js +43 -37
  63. package/src/sap/ui/mdc/field/content/LinkContent.js +8 -4
  64. package/src/sap/ui/mdc/field/content/UnitContent.js +11 -2
  65. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +33 -62
  66. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +31 -14
  67. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +6 -7
  68. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +2 -4
  69. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +0 -2
  70. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +13 -17
  71. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +1 -1
  72. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  73. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +16 -10
  74. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +0 -21
  75. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  76. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +0 -18
  77. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +0 -15
  78. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  79. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  80. package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -22
  81. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +1 -1
  82. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -21
  83. package/src/sap/ui/mdc/flexibility/Util.js +11 -9
  84. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +1 -1
  85. package/src/sap/ui/mdc/library.js +209 -48
  86. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  87. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  88. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  89. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  90. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  91. package/src/sap/ui/mdc/link/Factory.js +1 -1
  92. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  93. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  94. package/src/sap/ui/mdc/link/Panel.js +1 -1
  95. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  96. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  97. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  98. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  99. package/src/sap/ui/mdc/messagebundle.properties +11 -2
  100. package/src/sap/ui/mdc/messagebundle_ar.properties +20 -15
  101. package/src/sap/ui/mdc/messagebundle_bg.properties +6 -1
  102. package/src/sap/ui/mdc/messagebundle_ca.properties +5 -0
  103. package/src/sap/ui/mdc/messagebundle_cs.properties +5 -0
  104. package/src/sap/ui/mdc/messagebundle_cy.properties +5 -0
  105. package/src/sap/ui/mdc/messagebundle_da.properties +6 -1
  106. package/src/sap/ui/mdc/messagebundle_de.properties +7 -2
  107. package/src/sap/ui/mdc/messagebundle_el.properties +5 -0
  108. package/src/sap/ui/mdc/messagebundle_en.properties +5 -0
  109. package/src/sap/ui/mdc/messagebundle_en_GB.properties +5 -0
  110. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +4 -1
  111. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +4 -1
  112. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +6 -1
  113. package/src/sap/ui/mdc/messagebundle_es.properties +5 -0
  114. package/src/sap/ui/mdc/messagebundle_es_MX.properties +5 -0
  115. package/src/sap/ui/mdc/messagebundle_et.properties +5 -0
  116. package/src/sap/ui/mdc/messagebundle_fi.properties +5 -0
  117. package/src/sap/ui/mdc/messagebundle_fr.properties +5 -0
  118. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +5 -0
  119. package/src/sap/ui/mdc/messagebundle_hi.properties +5 -0
  120. package/src/sap/ui/mdc/messagebundle_hr.properties +5 -0
  121. package/src/sap/ui/mdc/messagebundle_hu.properties +5 -0
  122. package/src/sap/ui/mdc/messagebundle_id.properties +5 -0
  123. package/src/sap/ui/mdc/messagebundle_it.properties +5 -0
  124. package/src/sap/ui/mdc/messagebundle_iw.properties +5 -0
  125. package/src/sap/ui/mdc/messagebundle_ja.properties +5 -0
  126. package/src/sap/ui/mdc/messagebundle_kk.properties +5 -0
  127. package/src/sap/ui/mdc/messagebundle_ko.properties +5 -0
  128. package/src/sap/ui/mdc/messagebundle_lt.properties +5 -0
  129. package/src/sap/ui/mdc/messagebundle_lv.properties +5 -0
  130. package/src/sap/ui/mdc/messagebundle_ms.properties +6 -1
  131. package/src/sap/ui/mdc/messagebundle_nl.properties +5 -0
  132. package/src/sap/ui/mdc/messagebundle_no.properties +6 -1
  133. package/src/sap/ui/mdc/messagebundle_pl.properties +5 -0
  134. package/src/sap/ui/mdc/messagebundle_pt.properties +5 -0
  135. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +5 -0
  136. package/src/sap/ui/mdc/messagebundle_ro.properties +5 -0
  137. package/src/sap/ui/mdc/messagebundle_ru.properties +5 -0
  138. package/src/sap/ui/mdc/messagebundle_sh.properties +5 -0
  139. package/src/sap/ui/mdc/messagebundle_sk.properties +5 -0
  140. package/src/sap/ui/mdc/messagebundle_sl.properties +5 -0
  141. package/src/sap/ui/mdc/messagebundle_sv.properties +5 -0
  142. package/src/sap/ui/mdc/messagebundle_th.properties +11 -6
  143. package/src/sap/ui/mdc/messagebundle_tr.properties +5 -0
  144. package/src/sap/ui/mdc/messagebundle_uk.properties +7 -2
  145. package/src/sap/ui/mdc/messagebundle_vi.properties +5 -0
  146. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +5 -0
  147. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +5 -0
  148. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  149. package/src/sap/ui/mdc/mixin/DelegateMixin.js +11 -4
  150. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  151. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  152. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  153. package/src/sap/ui/mdc/odata/TypeMap.js +81 -0
  154. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +7 -2
  155. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +7 -8
  156. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +166 -19
  157. package/src/sap/ui/mdc/odata/v4/TypeMap.js +40 -0
  158. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +8 -8
  159. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +22 -50
  160. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  161. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  162. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +4 -0
  163. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +12 -24
  164. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +1 -1
  165. package/src/sap/ui/mdc/table/Column.js +0 -8
  166. package/src/sap/ui/mdc/table/ColumnSettings.js +1 -1
  167. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  168. package/src/sap/ui/mdc/table/GridTableType.js +20 -100
  169. package/src/sap/ui/mdc/table/PropertyHelper.js +49 -1
  170. package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +1 -1
  171. package/src/sap/ui/mdc/table/ResponsiveTableType.js +18 -73
  172. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  173. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  174. package/src/sap/ui/mdc/table/TableSettings.js +37 -131
  175. package/src/sap/ui/mdc/table/TableTypeBase.js +46 -5
  176. package/src/sap/ui/mdc/table/TreeTableType.js +11 -28
  177. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  178. package/src/sap/ui/mdc/table/menu/Item.js +1 -1
  179. package/src/sap/ui/mdc/table/menu/ItemContainer.js +4 -0
  180. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +12 -7
  181. package/src/sap/ui/mdc/table/utils/Personalization.js +236 -0
  182. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +3 -3
  183. package/src/sap/ui/mdc/util/DateUtil.js +10 -6
  184. package/src/sap/ui/mdc/util/FilterUtil.js +3 -0
  185. package/src/sap/ui/mdc/util/InfoBar.js +2 -3
  186. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  187. package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
  188. package/src/sap/ui/mdc/util/TypeMap.js +177 -0
  189. package/src/sap/ui/mdc/util/TypeUtilFactory.js +183 -0
  190. package/src/sap/ui/mdc/valuehelp/Dialog.js +6 -5
  191. package/src/sap/ui/mdc/valuehelp/Popover.js +3 -2
  192. package/src/sap/ui/mdc/valuehelp/base/Container.js +20 -2
  193. package/src/sap/ui/mdc/valuehelp/base/Content.js +6 -3
  194. package/src/sap/ui/mdc/{field → valuehelp/base}/DefineConditionPanel.js +51 -43
  195. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
  196. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +12 -36
  197. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +5 -2
  198. package/src/sap/ui/mdc/valuehelp/content/Bool.js +9 -9
  199. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +21 -4
  200. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +5 -4
  201. package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +63 -0
  202. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +4 -2
  203. package/src/sap/ui/mdc/valuehelp/content/MTable.js +8 -7
  204. package/test/sap/ui/mdc/testutils/opa/chart/AssertionsViz.js +4 -4
  205. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +3 -1
  206. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +39 -66
  207. package/test/sap/ui/mdc/testutils/opa/valueHelp/doWait.js +1 -1
  208. package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +0 -21
@@ -4,17 +4,25 @@
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
+ * @private
15
+ * @ui5-restricted sap.fe sap.ui.mdc
16
+ * @MDC_PUBLIC_CANDIDATE
17
+ * @since 1.61.0
18
+ * @alias sap.ui.mdc.filterbar.IFilterContainer
19
+ */
13
20
  var IFilterContainer = Element.extend("sap.ui.mdc.filterbar.IFilterContainer");
14
21
 
15
22
  /**
16
- * Creates the inner layout for the IFilterContainer.
17
- * @protected
23
+ * Creates the inner layout for the <code>IFilterContainer</code>.
24
+ * @private
25
+ * @MDC_PUBLIC_CANDIDATE
18
26
  * @ui5-restricted sap.ui.mdc, sap.fe
19
27
  */
20
28
  IFilterContainer.prototype.init = function() {
@@ -24,8 +32,9 @@ sap.ui.define([
24
32
 
25
33
  /**
26
34
  * Getter for the inner layout item.
27
- * @returns {sap.ui.core.Control} Control instance of the inner layout item.
28
- * @protected
35
+ * @returns {sap.ui.core.Control} Control instance of the inner layout item
36
+ * @private
37
+ * @MDC_PUBLIC_CANDIDATE
29
38
  * @ui5-restricted sap.ui.mdc, sap.fe
30
39
  */
31
40
  IFilterContainer.prototype.getInner = function(){
@@ -33,26 +42,33 @@ sap.ui.define([
33
42
  };
34
43
 
35
44
  /**
36
- * Insert the inner content to the layout item.
37
- * @protected
45
+ * Inserts the inner content into the layout item.
46
+ * @private
47
+ * @MDC_PUBLIC_CANDIDATE
48
+ * @ui5-restricted sap.ui.mdc, sap.fe
49
+ * @param {sap.ui.mdc.FilterItem} oControl to be inserted
50
+ * @param {int} iIndex Position where the control is added
38
51
  */
39
52
  IFilterContainer.prototype.insertFilterField = function(oControl, iIndex) {
40
53
  //insert the content to the inner layout this.oLayout
41
54
  };
42
55
 
43
56
  /**
44
- * Remove the inner content from the layout item.
45
- * @protected
57
+ * Removes the inner content from the layout item.
58
+ * @private
59
+ * @MDC_PUBLIC_CANDIDATE
46
60
  * @ui5-restricted sap.ui.mdc, sap.fe
61
+ * @param {sap.ui.mdc.FilterItem} oControl Control that is removed
47
62
  */
48
63
  IFilterContainer.prototype.removeFilterField = function(oControl) {
49
64
  //remove the content from the inner layout this.oLayout
50
65
  };
51
66
 
52
67
  /**
53
- * Insert the inner content to the layout item.
54
- * @returns {Array} Array of all inner controls in the layout item.
55
- * @protected
68
+ * Returns the inner controls of the layout item.
69
+ * @returns {sap.ui.mdc.FilterItem[]} Array of all inner controls in the layout item
70
+ * @private
71
+ * @MDC_PUBLIC_CANDIDATE
56
72
  * @ui5-restricted sap.ui.mdc, sap.fe
57
73
  */
58
74
  IFilterContainer.prototype.getFilterFields = function() {
@@ -60,9 +76,10 @@ sap.ui.define([
60
76
  };
61
77
 
62
78
  /**
63
- * Overwrite the default 'exit' to cleanup the created layout properly
79
+ * Overwrites the default exit to clean up the created layout properly.
64
80
  *
65
- * @protected
81
+ * @private
82
+ * @MDC_PUBLIC_CANDIDATE
66
83
  * @ui5-restricted sap.ui.mdc, sap.fe
67
84
  */
68
85
  IFilterContainer.prototype.exit = function() {
@@ -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.112.2
30
+ * @version 1.114.0
31
31
  *
32
- * @private
33
- * @experimental
32
+ * @public
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) {
@@ -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
  */
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @extends sap.ui.mdc.filterbar.FilterBarBase
22
22
  * @author SAP SE
23
- * @version 1.112.2
23
+ * @version 1.114.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @ui5-restricted sap.ui.mdc
@@ -79,7 +79,7 @@ sap.ui.define([
79
79
 
80
80
  /**
81
81
  * 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
82
+ * {@link sap.m.p13n.UIManager}. This flag determines whether the control should be destroyed or kept alive once the p13n
83
83
  * dialog closes.
84
84
  *
85
85
  * @private
@@ -266,7 +266,7 @@ sap.ui.define([
266
266
 
267
267
  /**
268
268
  *
269
- * Please note that the provided model should be created with sap.ui.mdc.p13n.P13nBuilder
269
+ * Please note that the provided model should be created with {@link sap.ui.mdc.p13n.P13nBuilder}
270
270
  *
271
271
  * @param {object[]} aP13nData Necessary data to display and create <code>FilterColumnLayout</code> instances.
272
272
  *
@@ -311,15 +311,6 @@ sap.ui.define([
311
311
  return this.getEngine().waitForChanges(this._getAdaptationControlInstance());
312
312
  };
313
313
 
314
- AdaptationFilterBar.prototype.applyConditionsAfterChangesApplied = function(oControl) {
315
- if (oControl === this._getAdaptationControlInstance()) {
316
- this._getWaitForChangesPromise()
317
- .then(function(){
318
- this.triggerSearch();
319
- }.bind(this));
320
- }
321
- };
322
-
323
314
  /**
324
315
  * Method which will initialize the <code>AdaptationFilterBar</code> and create the required FilterFields
325
316
  *
@@ -330,11 +321,13 @@ sap.ui.define([
330
321
  var mConditions = this._bPersistValues ? this._getAdaptationControlInstance().getFilterConditions() : this._getAdaptationControlInstance()._getXConditions();
331
322
 
332
323
  this.setFilterConditions(mConditions);
333
- this._setXConditions(mConditions);
324
+ var pConditions = this._setXConditions(mConditions);
334
325
 
335
326
  if (this._bFilterFieldsCreated) {
336
- this._oFilterBarLayout.setP13nData(this.getP13nData());
337
- return this;
327
+ return pConditions.then(function(){
328
+ this._oFilterBarLayout.setP13nData(this.getP13nData());
329
+ return this;
330
+ }.bind(this));
338
331
  }
339
332
 
340
333
  var oAdaptationControl = this._getAdaptationControlInstance();
@@ -384,11 +377,13 @@ sap.ui.define([
384
377
  }.bind(this));
385
378
 
386
379
  return Promise.all(aFieldPromises).then(function(){
387
- this.getP13nData().items.forEach(function(oItem){
380
+ var oP13nData = this.getP13nData();
381
+ oP13nData.items.forEach(function(oItem){
388
382
  this.addAggregation("filterItems", this.mFilterFields[oItem.name]);
389
383
  }.bind(this));
390
384
 
391
- this._oFilterBarLayout.setP13nData(this.getP13nData());
385
+ this._updateActiveStatus(oP13nData.items);
386
+ this._oFilterBarLayout.setP13nData(oP13nData);
392
387
  this._bFilterFieldsCreated = true;
393
388
 
394
389
  return this;
@@ -473,6 +468,7 @@ sap.ui.define([
473
468
  *
474
469
  * @param {sap.ui.mdc.Control} oControl the mdc control instance
475
470
  * @param {boolean} bSuppressInvalidate suppress invalidation
471
+ * @return {sap.ui.mdc.filterbar.p13n.AdaptationFilterBar} this
476
472
  */
477
473
  AdaptationFilterBar.prototype.setAdaptationControl = function(oControl, bSuppressInvalidate) {
478
474
 
@@ -76,7 +76,7 @@ sap.ui.define([
76
76
  };
77
77
 
78
78
  GroupContainer.prototype.getInitialFocusedControl = function() {
79
- return this.oLayout._getSearchField && this.oLayout._getSearchField();
79
+ return this.oLayout.getInitialFocusedControl && this.oLayout.getInitialFocusedControl();
80
80
  };
81
81
 
82
82
  return GroupContainer;
@@ -56,7 +56,7 @@ sap.ui.define(
56
56
  * The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
57
57
  * @extends sap.ui.mdc.filterbar.FilterBarBase
58
58
  * @author SAP SE
59
- * @version 1.112.2
59
+ * @version 1.114.0
60
60
  * @constructor
61
61
  * @private
62
62
  * @ui5-restricted sap.fe
@@ -13,27 +13,31 @@ sap.ui.define([
13
13
  var oActionFlex = Object.assign({}, ItemBaseFlex);
14
14
 
15
15
  oActionFlex.findItem = function(oModifier, aActions, sName) {
16
- return sap.ui.getCore().byId(sName);
16
+ return aActions.find(function (oAction) {
17
+ return oModifier.getId(oAction) === sName;
18
+ });
17
19
  };
18
20
 
19
21
  oActionFlex.determineAggregation = function(oModifier, oControl) {
20
- return Promise.resolve().then(function() {
22
+ return oModifier.getAggregation(oControl, "actions").then(function(aActions) {
21
23
  return {
22
24
  name: "actions",
23
- items: oControl.getActions()
25
+ items: aActions
24
26
  };
25
27
  });
26
28
  };
27
29
 
28
30
  oActionFlex._applyMove = function(oChange, oControl, mPropertyBag, sChangeReason) {
29
31
  var bIsRevert = sChangeReason === Util.REVERT ? true : false;
30
- if (oControl.getParent()){
31
- if (oControl.getParent().isA("sap.ui.mdc.Chart")) {
32
+ var oModifier = mPropertyBag.modifier;
33
+ if (oModifier.getParent(oControl)){
34
+ var oParent = oModifier.getParent(oControl);
35
+ if (oModifier.getControlType(oParent) === "sap.ui.mdc.Chart") {
32
36
  // ActionToolbar of sap.ui.mdc.Chart
33
- oControl = oControl.getParent();
34
- } else if (oControl.getParent().getParent().isA("sap.ui.mdc.Table")) {
37
+ oControl = oParent;
38
+ } else if (oModifier.getParent(oParent) && oModifier.getControlType(oModifier.getParent(oParent)) === "sap.ui.mdc.Table") {
35
39
  // ActionToolbar of sap.ui.mdc.Table
36
- oControl = oControl.getParent().getParent();
40
+ oControl = oModifier.getParent(oParent);
37
41
  }
38
42
  }
39
43
  this.beforeApply(oChange.getChangeType(), oControl, bIsRevert);
@@ -41,11 +45,11 @@ sap.ui.define([
41
45
  this._delayInvalidate(oControl);
42
46
  }
43
47
 
44
- var oModifier = mPropertyBag.modifier;
45
48
  var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
46
49
  var oControlAggregationItem;
47
50
  var oAggregation;
48
51
  var iOldIndex;
52
+ var sControlAggregationItemId;
49
53
 
50
54
  // 1) Fetch existing item
51
55
  var pMove = this.determineAggregation(oModifier, oControl)
@@ -62,6 +66,7 @@ sap.ui.define([
62
66
  if (!oControlAggregationItem) {
63
67
  throw new Error("No corresponding item in " + oAggregation.name + " found. Change to move item cannot be " + this._getOperationText(bIsRevert) + "at this moment");
64
68
  }
69
+ sControlAggregationItemId = oModifier.getId(oControlAggregationItem);
65
70
  return oModifier.findIndexInParentAggregation(oControlAggregationItem);
66
71
  }.bind(this))
67
72
 
@@ -82,7 +87,8 @@ sap.ui.define([
82
87
  } else {
83
88
  oChange.setRevertData({
84
89
  name: oChangeContent.name,
85
- index: iOldIndex
90
+ index: iOldIndex,
91
+ item: sControlAggregationItemId
86
92
  });
87
93
  }
88
94
  this.afterApply(oChange.getChangeType(), oControl, bIsRevert);
@@ -10,25 +10,6 @@ sap.ui.define([
10
10
  ], function(Engine, Util, CondenserClassification) {
11
11
  "use strict";
12
12
 
13
- var fRebindControl = function (oControl) {
14
- var bExecuteRebindForTable = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound();
15
- var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart"));
16
- if (bExecuteRebindForTable || bExecuteRebindForChart) {
17
- if (!oControl._bWaitForBindChanges) {
18
- oControl._bWaitForBindChanges = true;
19
- Engine.getInstance().waitForChanges(oControl).then(function () {
20
- if (bExecuteRebindForTable) {
21
- oControl.rebind();
22
- } else if (bExecuteRebindForChart) {
23
- oControl.rebind();
24
- }
25
- delete oControl._bWaitForBindChanges;
26
- });
27
-
28
- }
29
- }
30
- };
31
-
32
13
  var fFinalizeAggregateChange = function (oChange, oControl, oAggregateContent, bIsRevert) {
33
14
  if (bIsRevert) {
34
15
  // Clear the revert data on the change
@@ -37,8 +18,6 @@ sap.ui.define([
37
18
  // Set revert data on the change
38
19
  oChange.setRevertData(oAggregateContent);
39
20
  }
40
- // Rebind Table if needed
41
- fRebindControl(oControl);
42
21
  };
43
22
 
44
23
  var fAddAggregate = function (oChange, oControl, mPropertyBag, sChangeReason) {
@@ -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.112.2
15
+ * @version 1.114.0
16
16
  */
17
17
  return {
18
18
  addItem: ChartItemFlex.addItem,
@@ -11,20 +11,6 @@ sap.ui.define([
11
11
 
12
12
  var ColumnFlex = Object.assign({}, ItemBaseFlex);
13
13
 
14
- // Rebind triggered on the Control only during runtime JS change
15
- var fRebindControl = function(oControl) {
16
- if (oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound()) {
17
- if (!oControl._bWaitForBindChanges) {
18
- oControl._bWaitForBindChanges = true;
19
- Engine.getInstance().waitForChanges(oControl).then(function() {
20
- oControl.rebind();
21
- delete oControl._bWaitForBindChanges;
22
- });
23
-
24
- }
25
- }
26
- };
27
-
28
14
  ColumnFlex.findItem = function(oModifier, aColumns, sName) {
29
15
  return aColumns.reduce(function(oPreviousPromise, oColumn) {
30
16
  return oPreviousPromise
@@ -43,10 +29,6 @@ sap.ui.define([
43
29
  }, Promise.resolve());
44
30
  };
45
31
 
46
- ColumnFlex.afterApply = function(sChangeType, oTable, bIsRevert) {
47
- fRebindControl(oTable);
48
- };
49
-
50
32
  ColumnFlex.addColumn = ColumnFlex.createAddChangeHandler();
51
33
  ColumnFlex.removeColumn = ColumnFlex.createRemoveChangeHandler();
52
34
  ColumnFlex.moveColumn = ColumnFlex.createMoveChangeHandler();
@@ -38,21 +38,11 @@ sap.ui.define([
38
38
  });
39
39
  };
40
40
 
41
- var fDetermineFilterControl = function(oControl) {
42
- var oController = oControl && oControl.getEngine ? oControl.getEngine().getController(oControl, "Filter") : null;
43
- return oController ? oController.getFilterControl() : null;
44
- };
45
-
46
41
  var fAddCondition = function(oChange, oControl, mPropertyBag, sChangeReason) {
47
42
 
48
- var oFilterControl = fDetermineFilterControl(oControl);
49
43
  var bIsRevert = (sChangeReason === Util.REVERT);
50
44
  var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
51
45
 
52
- if (oFilterControl && oFilterControl.applyConditionsAfterChangesApplied) {
53
- oFilterControl.applyConditionsAfterChangesApplied(oControl);
54
- }
55
-
56
46
  var mConditionsData, aConditions = null, oModifier = mPropertyBag.modifier;
57
47
 
58
48
  return fnQueueChange(oControl, function(){
@@ -116,14 +106,9 @@ sap.ui.define([
116
106
 
117
107
  var fRemoveCondition = function(oChange, oControl, mPropertyBag, sChangeReason) {
118
108
 
119
- var oFilterControl = fDetermineFilterControl(oControl);
120
109
  var bIsRevert = (sChangeReason === Util.REVERT);
121
110
  var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
122
111
 
123
- if (oFilterControl && oFilterControl.applyConditionsAfterChangesApplied) {
124
- oFilterControl.applyConditionsAfterChangesApplied(oControl);
125
- }
126
-
127
112
  var mConditionsData, aConditions, nDelIndex = -1, oModifier = mPropertyBag.modifier;
128
113
 
129
114
  return fnQueueChange(oControl, function(){
@@ -12,7 +12,7 @@ sap.ui.define(['./FilterItemFlex', './ConditionFlex', './PropertyInfoFlex'], fun
12
12
  *
13
13
  * @alias sap.ui.mdc.flexibility.FilterBar
14
14
  * @author SAP SE
15
- * @version 1.112.2
15
+ * @version 1.114.0
16
16
  */
17
17
 
18
18
  return {
@@ -12,7 +12,7 @@ sap.ui.define(['./ItemBaseFlex'], function(ItemBaseFlex) {
12
12
  *
13
13
  * @alias sap.ui.mdc.flexibility.FilterBar
14
14
  * @author SAP SE
15
- * @version 1.112.2
15
+ * @version 1.114.0
16
16
  */
17
17
 
18
18
  var oFilterItemFlex = Object.assign({}, ItemBaseFlex);
@@ -11,25 +11,6 @@ sap.ui.define([
11
11
  ], function(Engine, Util, FLChangeHandlerBase, CondenserClassification) {
12
12
  "use strict";
13
13
 
14
- var fRebindControl = function (oControl) {
15
- var bExecuteRebindForTable = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound();
16
- var bExecuteRebindForChart = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Chart");
17
- if (bExecuteRebindForTable || bExecuteRebindForChart) {
18
- if (!oControl._bWaitForBindChanges) {
19
- oControl._bWaitForBindChanges = true;
20
- Engine.getInstance().waitForChanges(oControl).then(function () {
21
- if (bExecuteRebindForTable) {
22
- oControl.rebind();
23
- } else if (bExecuteRebindForChart) {
24
- oControl.rebind();
25
- }
26
- delete oControl._bWaitForBindChanges;
27
- });
28
-
29
- }
30
- }
31
- };
32
-
33
14
  var fFinalizeGroupChange = function (oChange, oControl, oGroupContent, bIsRevert) {
34
15
  if (bIsRevert) {
35
16
  // Clear the revert data on the change
@@ -38,8 +19,6 @@ sap.ui.define([
38
19
  // Set revert data on the change
39
20
  oChange.setRevertData(oGroupContent);
40
21
  }
41
- // Rebind Table if needed
42
- fRebindControl(oControl);
43
22
  };
44
23
 
45
24
  var fAddGroup = function (oChange, oControl, mPropertyBag, sChangeReason) {
@@ -194,7 +173,8 @@ sap.ui.define([
194
173
  targetContainer: oChange.getSelector(),
195
174
  targetAggregation: "groupLevels",
196
175
  classification: CondenserClassification.Move,
197
- sourceIndex: oChange.getContent().index,
176
+ //sourceIndex: oChange.getContent().index,
177
+ sourceIndex: oChange.getRevertData().index,
198
178
  customAggregation: mPropertyBag.modifier.bySelector(oChange.getSelector(), mPropertyBag.appComponent).getGroupConditions().groupLevels,
199
179
  sourceContainer: oChange.getSelector(),
200
180
  sourceAggregation: "groupLevels",
@@ -263,7 +263,7 @@ sap.ui.define([
263
263
  // Continue? --> destroy the item (but only if it exists, it may not exist if an earlier layer removed it already)
264
264
  if (bContinue && oControlAggregationItem) {
265
265
  // destroy the item
266
- sControlAggregationItemId = sControlAggregationItemId = oControlAggregationItem.getId ? oControlAggregationItem.getId() : oControlAggregationItem.id;
266
+ sControlAggregationItemId = oModifier.getId(oControlAggregationItem);
267
267
  oModifier.destroy(oControlAggregationItem, "KeepDom");
268
268
  }
269
269
  this.afterApply(oChange.getChangeType(), oControl, bIsRevert);
@@ -10,24 +10,6 @@ sap.ui.define([
10
10
  "sap/ui/fl/changeHandler/condenser/Classification"
11
11
  ], function(Engine, Util, FLChangeHandlerBase, CondenserClassification) {
12
12
  "use strict";
13
- var fRebindControl = function(oControl) {
14
- var bExecuteRebindForTable = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound();
15
- var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart"));
16
- if (bExecuteRebindForTable || bExecuteRebindForChart) {
17
- if (!oControl._bWaitForBindChanges) {
18
- oControl._bWaitForBindChanges = true;
19
- Engine.getInstance().waitForChanges(oControl).then(function() {
20
- if (bExecuteRebindForTable) {
21
- oControl.rebind();
22
- } else if (bExecuteRebindForChart) {
23
- oControl.rebind();
24
- }
25
- delete oControl._bWaitForBindChanges;
26
- });
27
-
28
- }
29
- }
30
- };
31
13
 
32
14
  var fFinalizeSortChange = function(oChange, oControl, oSortContent, bIsRevert) {
33
15
  if (bIsRevert) {
@@ -37,8 +19,6 @@ sap.ui.define([
37
19
  // Set revert data on the change
38
20
  oChange.setRevertData(oSortContent);
39
21
  }
40
- // Rebind Table if needed
41
- fRebindControl(oControl);
42
22
  };
43
23
 
44
24
  var fAddSort = function(oChange, oControl, mPropertyBag, sChangeReason) {
@@ -194,7 +174,8 @@ sap.ui.define([
194
174
  targetContainer: oChange.getSelector(),
195
175
  targetAggregation: "sorters",
196
176
  classification: CondenserClassification.Move,
197
- sourceIndex: oChange.getContent().index,
177
+ //sourceIndex: oChange.getContent().index,
178
+ sourceIndex: oChange.getRevertData().index,
198
179
  customAggregation: mPropertyBag.modifier.bySelector(oChange.getSelector(), mPropertyBag.appComponent).getSortConditions().sorters,
199
180
  sourceContainer: oChange.getSelector(),
200
181
  sourceAggregation: "sorters",
@@ -117,18 +117,20 @@ sap.ui.define([
117
117
  onAfterXMLChangeProcessing: function(oControl, mPropertyBag) {
118
118
  mPropertyBag.modifier.getProperty(oControl, "delegate")
119
119
  .then(function(oDelegate){
120
- loadModules(oDelegate.name)
121
- .then(function(aModules){
122
- var oDelegate = aModules[0];
120
+ if (oDelegate) {
121
+ loadModules(oDelegate.name)
122
+ .then(function(aModules){
123
+ var oDelegate = aModules[0];
123
124
 
124
- if (oDelegate.onAfterXMLChangeProcessing instanceof Function) {
125
- oDelegate.onAfterXMLChangeProcessing(oControl, mPropertyBag);
126
- }
125
+ if (oDelegate.onAfterXMLChangeProcessing instanceof Function) {
126
+ oDelegate.onAfterXMLChangeProcessing(oControl, mPropertyBag);
127
+ }
127
128
 
128
- });
129
+ });
130
+ }
129
131
  });
130
- }
131
- // ,getCondenserInfo: mSettings.getCondenserInfo
132
+ },
133
+ getCondenserInfo: mSettings.getCondenserInfo
132
134
  },
133
135
  "layers": {
134
136
  "USER": true
@@ -187,7 +187,7 @@ sap.ui.define([
187
187
  };
188
188
  }
189
189
 
190
- // If more then one local property maps to the same target property (clash situation)
190
+ // If more than one local property maps to the same target property (clash situation)
191
191
  // we take the value of the last property and write an error log
192
192
  if (oResults[sSemanticObject][sAttributeNameMapped]) {
193
193
  SapBaseLog.error("FlpLinkDelegate: The attribute " + sAttributeName + " can not be renamed to the attribute " + sAttributeNameMapped + " due to a clash situation. This can lead to wrong navigation later on.");