@openui5/sap.ui.mdc 1.101.0 → 1.103.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 (222) hide show
  1. package/.eslintrc.json +19 -0
  2. package/THIRDPARTY.txt +1 -1
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +1 -1
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +11 -0
  7. package/src/sap/ui/mdc/Chart.js +111 -55
  8. package/src/sap/ui/mdc/ChartDelegate.js +97 -92
  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 +9 -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 +4 -1
  15. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  16. package/src/sap/ui/mdc/Table.js +114 -160
  17. package/src/sap/ui/mdc/TableDelegate.js +3 -23
  18. package/src/sap/ui/mdc/ValueHelp.js +20 -32
  19. package/src/sap/ui/mdc/ValueHelpDelegate.js +9 -3
  20. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -1
  21. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -2
  22. package/src/sap/ui/mdc/chart/ChartToolbar.js +38 -3
  23. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +6 -2
  24. package/src/sap/ui/mdc/chart/Item.js +6 -11
  25. package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -8
  26. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -3
  27. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  28. package/src/sap/ui/mdc/condition/ConditionConverter.js +16 -131
  29. package/src/sap/ui/mdc/condition/ConditionModel.js +50 -21
  30. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  31. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +11 -11
  32. package/src/sap/ui/mdc/condition/Operator.js +85 -15
  33. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +5 -3
  34. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  35. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +6 -3
  36. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +53 -0
  37. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +13 -1
  38. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +9 -4
  39. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
  40. package/src/sap/ui/mdc/enum/PropagationReason.js +2 -2
  41. package/src/sap/ui/mdc/enum/SelectType.js +3 -0
  42. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  43. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  44. package/src/sap/ui/mdc/field/ConditionType.js +166 -52
  45. package/src/sap/ui/mdc/field/ConditionsType.js +76 -11
  46. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
  47. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  48. package/src/sap/ui/mdc/field/DefineConditionPanel.js +107 -99
  49. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +9 -62
  50. package/src/sap/ui/mdc/field/FieldBase.js +108 -73
  51. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +20 -1
  52. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -39
  53. package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
  54. package/src/sap/ui/mdc/field/FieldInput.js +2 -2
  55. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  56. package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
  57. package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
  58. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -19
  59. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -1
  60. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +13 -1
  61. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
  62. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +28 -29
  63. package/src/sap/ui/mdc/field/InParameter.js +1 -4
  64. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  65. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  66. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  67. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  68. package/src/sap/ui/mdc/field/TokenDisplay.js +2 -2
  69. package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
  70. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -5
  71. package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
  72. package/src/sap/ui/mdc/field/content/DateContent.js +3 -3
  73. package/src/sap/ui/mdc/field/content/DateTimeContent.js +43 -2
  74. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -4
  75. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
  76. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  77. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +21 -1
  78. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  79. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +80 -4
  80. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +19 -38
  81. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  82. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +23 -41
  83. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +43 -58
  84. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  85. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  86. package/src/sap/ui/mdc/flexibility/GroupFlex.js +25 -55
  87. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +21 -42
  88. package/src/sap/ui/mdc/flexibility/SortFlex.js +23 -52
  89. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +3 -3
  90. package/src/sap/ui/mdc/flexibility/Util.js +82 -0
  91. package/src/sap/ui/mdc/flexibility/xConfigFlex.js +137 -0
  92. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +3 -1
  93. package/src/sap/ui/mdc/library.js +6 -17
  94. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  95. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  96. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  97. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  98. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  99. package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +1 -1
  100. package/src/sap/ui/mdc/link/Factory.js +1 -1
  101. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  102. package/src/sap/ui/mdc/link/LinkItem.js +9 -1
  103. package/src/sap/ui/mdc/link/Panel.js +25 -13
  104. package/src/sap/ui/mdc/link/PanelItem.js +10 -1
  105. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  106. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  107. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  108. package/src/sap/ui/mdc/messagebundle.properties +13 -1
  109. package/src/sap/ui/mdc/messagebundle_ar.properties +11 -3
  110. package/src/sap/ui/mdc/messagebundle_bg.properties +9 -1
  111. package/src/sap/ui/mdc/messagebundle_ca.properties +9 -1
  112. package/src/sap/ui/mdc/messagebundle_cs.properties +9 -1
  113. package/src/sap/ui/mdc/messagebundle_cy.properties +9 -1
  114. package/src/sap/ui/mdc/messagebundle_da.properties +9 -1
  115. package/src/sap/ui/mdc/messagebundle_de.properties +9 -1
  116. package/src/sap/ui/mdc/messagebundle_el.properties +20 -12
  117. package/src/sap/ui/mdc/messagebundle_en.properties +9 -1
  118. package/src/sap/ui/mdc/messagebundle_en_GB.properties +9 -1
  119. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +9 -1
  120. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +8 -0
  121. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +8 -0
  122. package/src/sap/ui/mdc/messagebundle_es.properties +15 -7
  123. package/src/sap/ui/mdc/messagebundle_es_MX.properties +9 -1
  124. package/src/sap/ui/mdc/messagebundle_et.properties +9 -1
  125. package/src/sap/ui/mdc/messagebundle_fi.properties +9 -1
  126. package/src/sap/ui/mdc/messagebundle_fr.properties +10 -2
  127. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +9 -1
  128. package/src/sap/ui/mdc/messagebundle_hi.properties +9 -1
  129. package/src/sap/ui/mdc/messagebundle_hr.properties +9 -1
  130. package/src/sap/ui/mdc/messagebundle_hu.properties +9 -1
  131. package/src/sap/ui/mdc/messagebundle_id.properties +9 -1
  132. package/src/sap/ui/mdc/messagebundle_it.properties +10 -2
  133. package/src/sap/ui/mdc/messagebundle_iw.properties +10 -2
  134. package/src/sap/ui/mdc/messagebundle_ja.properties +9 -1
  135. package/src/sap/ui/mdc/messagebundle_kk.properties +9 -1
  136. package/src/sap/ui/mdc/messagebundle_ko.properties +11 -3
  137. package/src/sap/ui/mdc/messagebundle_lt.properties +9 -1
  138. package/src/sap/ui/mdc/messagebundle_lv.properties +9 -1
  139. package/src/sap/ui/mdc/messagebundle_ms.properties +9 -1
  140. package/src/sap/ui/mdc/messagebundle_nl.properties +23 -15
  141. package/src/sap/ui/mdc/messagebundle_no.properties +9 -1
  142. package/src/sap/ui/mdc/messagebundle_pl.properties +9 -1
  143. package/src/sap/ui/mdc/messagebundle_pt.properties +18 -10
  144. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +9 -1
  145. package/src/sap/ui/mdc/messagebundle_ro.properties +9 -1
  146. package/src/sap/ui/mdc/messagebundle_ru.properties +9 -1
  147. package/src/sap/ui/mdc/messagebundle_sh.properties +10 -2
  148. package/src/sap/ui/mdc/messagebundle_sk.properties +9 -1
  149. package/src/sap/ui/mdc/messagebundle_sl.properties +9 -1
  150. package/src/sap/ui/mdc/messagebundle_sv.properties +9 -1
  151. package/src/sap/ui/mdc/messagebundle_th.properties +9 -1
  152. package/src/sap/ui/mdc/messagebundle_tr.properties +11 -3
  153. package/src/sap/ui/mdc/messagebundle_uk.properties +9 -1
  154. package/src/sap/ui/mdc/messagebundle_vi.properties +9 -1
  155. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +9 -1
  156. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +10 -2
  157. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  158. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  159. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  160. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  161. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +4 -4
  162. package/src/sap/ui/mdc/odata/TypeUtil.js +25 -2
  163. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +5 -5
  164. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +6 -0
  165. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +6 -6
  166. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +0 -33
  167. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +378 -154
  168. package/src/sap/ui/mdc/p13n/Engine.js +8 -4
  169. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -0
  170. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  171. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  172. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +14 -11
  173. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +133 -0
  174. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +41 -42
  175. package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -0
  176. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +12 -4
  177. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
  178. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  179. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +22 -27
  180. package/src/sap/ui/mdc/table/Column.js +4 -1
  181. package/src/sap/ui/mdc/table/CreationRow.js +3 -1
  182. package/src/sap/ui/mdc/table/GridTableType.js +0 -5
  183. package/src/sap/ui/mdc/table/PropertyHelper.js +27 -74
  184. package/src/sap/ui/mdc/table/ResponsiveTableType.js +29 -17
  185. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  186. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  187. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  188. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +3 -3
  189. package/src/sap/ui/mdc/themes/base/Chart.less +5 -0
  190. package/src/sap/ui/mdc/themes/base/InfoPanel.less +1 -0
  191. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +5 -0
  192. package/src/sap/ui/mdc/util/DateUtil.js +30 -5
  193. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  194. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  195. package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
  196. package/src/sap/ui/mdc/util/TypeUtil.js +105 -17
  197. package/src/sap/ui/mdc/valuehelp/Dialog.js +148 -48
  198. package/src/sap/ui/mdc/valuehelp/Popover.js +16 -3
  199. package/src/sap/ui/mdc/valuehelp/base/Container.js +45 -32
  200. package/src/sap/ui/mdc/valuehelp/base/Content.js +60 -28
  201. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +5 -5
  202. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +75 -32
  203. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -3
  204. package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
  205. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +11 -3
  206. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
  207. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +7 -3
  208. package/src/sap/ui/mdc/valuehelp/content/MTable.js +9 -3
  209. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
  210. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +3 -3
  211. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +3 -3
  212. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
  213. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -2
  214. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +53 -12
  215. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +6 -6
  216. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +121 -202
  217. package/test/sap/ui/mdc/testutils/opa/p13n/waitForSelectWithSelectedTextOnPanel.js +5 -2
  218. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +70 -0
  219. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +9 -7
  220. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +2 -2
  221. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +0 -139
  222. package/src/sap/ui/mdc/valuehelp/content/ListCollection.js +0 -205
@@ -20,7 +20,6 @@ sap.ui.define([
20
20
  'sap/ui/base/ManagedObjectObserver',
21
21
  'sap/base/util/merge',
22
22
  'sap/base/util/deepEqual',
23
- 'sap/ui/mdc/enum/PersistenceMode',
24
23
  'sap/ui/mdc/enum/PropagationReason'
25
24
  ], function(
26
25
  Element,
@@ -38,7 +37,6 @@ sap.ui.define([
38
37
  ManagedObjectObserver,
39
38
  merge,
40
39
  deepEqual,
41
- PersistenceMode,
42
40
  PropagationReason
43
41
  ) {
44
42
  "use strict";
@@ -85,7 +83,7 @@ sap.ui.define([
85
83
  * @class Element for the <code>FieldHelp</code> association in the {@link sap.ui.mdc.field.FieldBase FieldBase} controls.
86
84
  * @extends sap.ui.mdc.Element
87
85
  * @implements sap.ui.core.PopupInterface
88
- * @version 1.101.0
86
+ * @version 1.103.0
89
87
  * @constructor
90
88
  * @abstract
91
89
  * @private
@@ -115,6 +113,13 @@ sap.ui.define([
115
113
  byValue: true
116
114
  },
117
115
 
116
+ /**
117
+ * Path to the <code>Delegate</code> module that provides the required APIs to execute model-specific logic.<br>
118
+ * <b>Note:</b> Ensure that the related file can be requested (any required library has to be loaded before that).<br>
119
+ * Do not bind or modify the module. This property can only be configured during control initialization.
120
+ *
121
+ * @experimental
122
+ */
118
123
  delegate: {
119
124
  type: "object",
120
125
  group: "Data",
@@ -137,8 +142,8 @@ sap.ui.define([
137
142
  },
138
143
 
139
144
  /**
140
- * If this property is set, the user input is validated against the value help.
141
- * If no entry is found for the user input, an error occurs.
145
+ * If this property is set, the user input of the corresponding field is validated against the value help.
146
+ * If no entry is found for the user input, an error is shown on the field.
142
147
  *
143
148
  * If this property is not set, the user input is still checked against the value help.
144
149
  * But if no entry is found, the user input is set to the field if the used data type allows this.
@@ -184,7 +189,7 @@ sap.ui.define([
184
189
  },
185
190
  events: {
186
191
  /**
187
- * This event is fired when a value is selected in the field help.
192
+ * This event is fired when a value is selected in the value help.
188
193
  *
189
194
  * <b>Note:</b> This event must only be handled by the control the <code>ValueHelp</code> element
190
195
  * belongs to, not by the application.
@@ -226,14 +231,14 @@ sap.ui.define([
226
231
  closed: {},
227
232
 
228
233
  /**
229
- * This event is fired after the user navigated in the value help.
234
+ * This event is fired after the user navigated, using the arrow keys, in the value help.
230
235
  */
231
236
  navigated: {
232
237
  parameters: {
233
238
  /**
234
239
  * True if the focus should be set back to the field.
235
240
  */
236
- bLeaveFocus: { type: "boolean" },
241
+ leaveFocus: { type: "boolean" },
237
242
  /**
238
243
  * Navigated condition.
239
244
  *
@@ -258,7 +263,6 @@ sap.ui.define([
258
263
  ValueHelp.prototype.init = function() {
259
264
 
260
265
  Element.prototype.init.apply(this, arguments);
261
- this.getEngine().defaultProviderRegistry.attach(this, PersistenceMode.Transient);
262
266
 
263
267
  this._oObserver = new ManagedObjectObserver(_observeChanges.bind(this));
264
268
 
@@ -275,7 +279,6 @@ sap.ui.define([
275
279
 
276
280
  ValueHelp.prototype.exit = function() {
277
281
 
278
- this.getEngine().defaultProviderRegistry.detach(this);
279
282
 
280
283
  if (this._oManagedObjectModel) {
281
284
  this._oManagedObjectModel.destroy();
@@ -316,7 +319,6 @@ sap.ui.define([
316
319
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
317
320
  * @private
318
321
  * @ui5-restricted sap.ui.mdc.field.FieldBase
319
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
320
322
  */
321
323
  ValueHelp.prototype.connect = function(oControl, oConfig) {
322
324
  if (this._oControl && this._oControl !== oControl) {
@@ -360,7 +362,6 @@ sap.ui.define([
360
362
  * @returns {object} object with the aria-attibutes
361
363
  * @private
362
364
  * @ui5-restricted sap.ui.mdc.field.FieldBase
363
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
364
365
  */
365
366
  ValueHelp.prototype.getAriaAttributes = function(iMaxConditions) {
366
367
 
@@ -442,7 +443,6 @@ sap.ui.define([
442
443
  *
443
444
  * @private
444
445
  * @ui5-restricted sap.ui.mdc.field.FieldBase
445
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
446
446
  */
447
447
  ValueHelp.prototype.open = function(bTypeahead) {
448
448
  var oContainer = bTypeahead ? this.getTypeahead() : _getValueHelpContainer.call(this);
@@ -474,7 +474,6 @@ sap.ui.define([
474
474
  *
475
475
  * @private
476
476
  * @ui5-restricted sap.ui.mdc.field.FieldBase
477
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
478
477
  */
479
478
  ValueHelp.prototype.close = function() {
480
479
  var oTypeahead = this.getTypeahead();
@@ -499,7 +498,6 @@ sap.ui.define([
499
498
  *
500
499
  * @private
501
500
  * @ui5-restricted sap.ui.mdc.field.FieldBase
502
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
503
501
  */
504
502
  ValueHelp.prototype.toggleOpen = function(bTypeahead) {
505
503
  var oTypeahead = this.getTypeahead();
@@ -529,7 +527,6 @@ sap.ui.define([
529
527
  *
530
528
  * @private
531
529
  * @ui5-restricted sap.ui.mdc.field.FieldBase
532
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
533
530
  */
534
531
  ValueHelp.prototype.isOpen = function() {
535
532
  var oTypeahead = this.getTypeahead();
@@ -545,7 +542,6 @@ sap.ui.define([
545
542
  *
546
543
  * @private
547
544
  * @ui5-restricted sap.ui.mdc.field.FieldBase
548
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
549
545
  */
550
546
  ValueHelp.prototype.skipOpening = function() { // ? Use close based logic instead?
551
547
  var oTypeahead = this.getTypeahead();
@@ -561,18 +557,17 @@ sap.ui.define([
561
557
  };
562
558
 
563
559
  /**
564
- * Calls initialization of the ValueHelp before the ValueHelp is really opened.
565
- * This is called in Typeahead on first letter before the ValueHelp is opened with a delay. So the
560
+ * Calls initialization of the <code>ValueHelp</code> element before the value help is really opened.
561
+ * This is called in Typeahead on first letter before the value help is opened with a delay. So the
566
562
  * content can be determined in the delegate coding early.
567
563
  *
568
564
  * <b>Note:</b> This function must only be called by the control the <code>ValueHelp</code> element
569
565
  * belongs to, not by the application.
570
566
  *
571
- * @param {boolean} bTypeahead Flag that determines whether value help is opened for suggestion or for complex help
567
+ * @param {boolean} bTypeahead Flag that determines whether value help is opened for type-ahead or for complex help
572
568
  *
573
569
  * @private
574
570
  * @ui5-restricted sap.ui.mdc.field.FieldBase
575
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
576
571
  */
577
572
  ValueHelp.prototype.initBeforeOpen = function(bTypeahead) { // ? naming, include as config in open?
578
573
 
@@ -590,7 +585,6 @@ sap.ui.define([
590
585
  * @returns {Promise<boolean>} if <code>true</code>, the field help should open by typing. The result might be returned asynchronously, so a Promise is used.
591
586
  * @private
592
587
  * @ui5-restricted sap.ui.mdc.field.FieldBase
593
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
594
588
  */
595
589
  ValueHelp.prototype.isTypeaheadSupported = function() { // always return promise ?
596
590
 
@@ -617,7 +611,6 @@ sap.ui.define([
617
611
  * @returns {boolean} If <code>true</code>, the value help should open when user clicks into the connected field control
618
612
  * @private
619
613
  * @ui5-restricted sap.ui.mdc.field.FieldBase
620
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
621
614
  */
622
615
  ValueHelp.prototype.shouldOpenOnClick = function () { // was openByClick before, better naming?
623
616
 
@@ -637,7 +630,6 @@ sap.ui.define([
637
630
  *
638
631
  * @private
639
632
  * @ui5-restricted sap.ui.mdc.field.FieldBase
640
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
641
633
  */
642
634
  ValueHelp.prototype.isFocusInHelp = function() { // find more elegant way?
643
635
 
@@ -651,7 +643,6 @@ sap.ui.define([
651
643
  *
652
644
  * @private
653
645
  * @ui5-restricted sap.ui.mdc.field.FieldBase
654
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
655
646
  */
656
647
  ValueHelp.prototype.removeFocus = function() {
657
648
  var oTypeahead = this.getTypeahead();
@@ -671,7 +662,6 @@ sap.ui.define([
671
662
  *
672
663
  * @private
673
664
  * @ui5-restricted sap.ui.mdc.field.FieldBase
674
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
675
665
  */
676
666
  ValueHelp.prototype.navigate = function(iStep) { // pass through to container
677
667
  var oTypeahead = this.getTypeahead();
@@ -725,7 +715,10 @@ sap.ui.define([
725
715
  * @param {object} oConfig Configuration
726
716
  * @param {any} oConfig.value Value as entered by user
727
717
  * @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
728
- * @param {any} [oConfig.context] Contextual information provided by condition payload or inParameters/outParameters
718
+ * @param {object} [oConfig.context] Contextual information provided by condition payload or inParameters/outParameters. This is only filled if the description needs to be determined for an existing condition.
719
+ * @param {object} [oConfig.context.inParameter] inParameters of the current condition
720
+ * @param {object} [oConfig.context.ouParameter] outParameters of the current condition
721
+ * @param {object} [oConfig.context.payload] payload of the current condition
729
722
  * @param {sap.ui.model.Context} [oConfig.bindingContext] <code>BindingContext</code> of the checked field. Inside a table the <code>ValueHelp</code> element might be connected to a different row.
730
723
  * @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
731
724
  * @param {boolean} oConfig.checkKey If set, the value help checks only if there is an item with the given key. This is set to <code>false</code> if the value cannot be a valid key because of type validation.
@@ -739,7 +732,6 @@ sap.ui.define([
739
732
  *
740
733
  * @private
741
734
  * @ui5-restricted sap.ui.mdc.field.FieldBase, sap.ui.mdc.field.ConditionType
742
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
743
735
  */
744
736
  ValueHelp.prototype.getItemForValue = function(oConfig) {
745
737
  // TODO: Discuss how we handle binding / typeahead changes ??
@@ -771,7 +763,6 @@ sap.ui.define([
771
763
  *
772
764
  * @private
773
765
  * @ui5-restricted sap.ui.mdc.field.FieldBase
774
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
775
766
  */
776
767
  ValueHelp.prototype.isValidationSupported = function() { // isUsableForValidation also necessary?
777
768
 
@@ -792,7 +783,6 @@ sap.ui.define([
792
783
  *
793
784
  * @private
794
785
  * @ui5-restricted sap.ui.mdc.field.FieldBase
795
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
796
786
  */
797
787
  ValueHelp.prototype.onControlChange = function() {
798
788
 
@@ -812,7 +802,6 @@ sap.ui.define([
812
802
  *
813
803
  * @private
814
804
  * @ui5-restricted sap.ui.mdc.field.FieldBase
815
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
816
805
  */
817
806
  ValueHelp.prototype.getIcon = function() {
818
807
 
@@ -850,7 +839,6 @@ sap.ui.define([
850
839
  * @returns {boolean} <code>true</code> if value help is enabled, <code>false</code> if only typeahead is enabled
851
840
  * @private
852
841
  * @ui5-restricted sap.ui.mdc.field.FieldBase
853
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
854
842
  */
855
843
  ValueHelp.prototype.valueHelpEnabled = function() {
856
844
 
@@ -158,7 +158,7 @@ sap.ui.define([
158
158
  /**
159
159
  * Checks if the <code>ListBinding</code> is waiting for an update.
160
160
  * As long as the context has not been set for <code>ListBinding</code>,
161
- * <code>FieldValueHelp</code> needs to wait.
161
+ * <code>ValueHelp</code> needs to wait.
162
162
  *
163
163
  * @param {object} oPayload Payload for delegate
164
164
  * @param {sap.ui.model.ListBinding} oListBinding <code>ListBinding</code> to check
@@ -174,7 +174,7 @@ sap.ui.define([
174
174
  // InOut =====
175
175
 
176
176
  /**
177
- * Callback invoked everytime a {@link sap.ui.mdc.ValueHelp ValueHelp} fires a select event or the vlaue of the corresponding field changes
177
+ * Callback invoked everytime a {@link sap.ui.mdc.ValueHelp ValueHelp} fires a select event or the value of the corresponding field changes
178
178
  * This callback may be used to update external fields.
179
179
  *
180
180
  * @param {object} oPayload Payload for delegate
@@ -193,8 +193,14 @@ sap.ui.define([
193
193
  /**
194
194
  * Provides an initial condition configuration everytime a value help content is shown.
195
195
  *
196
+ * <b>Note:</b> Make sure to provide the type information to the corresponding properties of
197
+ * the {@link sap.ui.mdc.filterbar.vh.FilterBar FilterBar}.
198
+ *
199
+ * <b>Note:</b> Be aware that setting the condition for the search field or type-ahead could
200
+ * lead to unwanted side effects.
201
+ *
196
202
  * @param {object} oPayload Payload for delegate
197
- * @param {sap.ui.mdc.ValueHelp} oContent ValueHelp content requesting conditions configuration
203
+ * @param {sap.ui.mdc.valuehelp.base.FilterableListContent} oContent ValueHelp content requesting conditions configuration
198
204
  * @param {sap.ui.core.Control} oControl Instance of the calling control
199
205
  * @returns {Promise<object>|object} Returns a map of conditions suitable for a sap.ui.mdc.FilterBar control
200
206
  * @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.101.0
24
+ * @version 1.103.0
25
25
  * @constructor
26
26
  * @private
27
27
  * @since 1.58
@@ -33,6 +33,7 @@ sap.ui.define([
33
33
  var ActionToolbarAction = Control.extend("sap.ui.mdc.actiontoolbar.ActionToolbarAction", {
34
34
  metadata: {
35
35
  library: "sap.ui.mdc",
36
+ designtime: "sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime",
36
37
  interfaces : [
37
38
  "sap.m.IOverflowToolbarContent"
38
39
  ],
@@ -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.101.0
36
+ * @version 1.103.0
37
37
  * @constructor
38
38
  * @experimental As of version ...
39
39
  * @private
@@ -41,7 +41,6 @@ sap.ui.define([
41
41
  * @MDC_PUBLIC_CANDIDATE
42
42
  * @since 1.88
43
43
  * @alias sap.ui.mdc.chart.ChartSelectionDetails
44
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
45
44
  */
46
45
  var ChartSelectionDetails = SelectionDetails.extend("sap.ui.mdc.chart.ChartSelectionDetails", /** @lends sap.ui.mdc.chart.ChartSelectionDetails.prototype */ {
47
46
  metadata: {
@@ -42,13 +42,12 @@ 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.101.0
45
+ * @version 1.103.0
46
46
  * @constructor
47
47
  * @experimental As of version 1.88
48
48
  * @private
49
49
  * @since 1.88
50
50
  * @alias sap.ui.mdc.chart.ChartToolbar
51
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
52
51
  */
53
52
  var ChartToolbar = ActionToolbar.extend("sap.ui.mdc.chart.ChartToolbar", /** @lends sap.ui.mdc.chart.ChartToolbar.prototype */ {
54
53
  metadata: {
@@ -76,6 +75,14 @@ sap.ui.define([
76
75
  ActionToolbar.prototype.init.apply(this, arguments);
77
76
  };
78
77
 
78
+ /**
79
+ * Creates the inner toolbar content.
80
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the parent chart
81
+ *
82
+ * @experimental
83
+ * @private
84
+ * @ui5-restricted sap.ui.mdc
85
+ */
79
86
  ChartToolbar.prototype.createToolbarContent = function (oMDCChart) {
80
87
  //Keep track of chart buttons to enable them later on
81
88
  this._chartInternalButtonsToEnable = [];
@@ -164,7 +171,10 @@ sap.ui.define([
164
171
  enabled: false,
165
172
  press: function (oEvent) {
166
173
  var aP13nMode = oMDCChart.getP13nMode();
167
- aP13nMode.pop("Type");
174
+ var iIdx = aP13nMode.indexOf("Type");
175
+ if (iIdx > -1) {
176
+ aP13nMode.splice(iIdx, 1);
177
+ }
168
178
 
169
179
  //TODO: Move this to p13n functionality?
170
180
  if (oMDCChart.isPropertyHelperFinal()){
@@ -189,6 +199,14 @@ sap.ui.define([
189
199
 
190
200
  };
191
201
 
202
+ /**
203
+ * This adds a <code>VariantManagement</code> control at the beginning of the toolbar.
204
+ * @param {sap.ui.fl.variantManagement} oVariantManagement the <code>VariantManagement</code> control to add to the toolbar
205
+ *
206
+ * @experimental
207
+ * @private
208
+ * @ui5-restricted sap.ui.mdc
209
+ */
192
210
  ChartToolbar.prototype.addVariantManagement = function(oVariantManagement) {
193
211
 
194
212
  if (oVariantManagement){
@@ -202,6 +220,14 @@ sap.ui.define([
202
220
 
203
221
  };
204
222
 
223
+ /**
224
+ * This checks the enablement of the zoom button in the toolbar.
225
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the parent chart
226
+ *
227
+ * @experimental
228
+ * @private
229
+ * @ui5-restricted sap.ui.mdc, sap.fe
230
+ */
205
231
  ChartToolbar.prototype.toggleZoomButtons = function (oMDCChart) {
206
232
  var oZoomInfo = this._getZoomEnablement(oMDCChart);
207
233
 
@@ -215,6 +241,15 @@ sap.ui.define([
215
241
 
216
242
  };
217
243
 
244
+ /**
245
+ * This updates the toolbar in accordance with the parent chart.
246
+ * Only used internally.
247
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to the parent chart
248
+ *
249
+ * @experimental
250
+ * @private
251
+ * @ui5-restricted sap.ui.mdc, sap.fe
252
+ */
218
253
  ChartToolbar.prototype.updateToolbar = function (oMDCChart) {
219
254
  this.toggleZoomButtons(oMDCChart);
220
255
 
@@ -20,9 +20,13 @@ sap.ui.define([
20
20
  * @author SAP SE
21
21
  * @private
22
22
  * @since 1.88
23
- * @alias sap.ui.mdc.odata.v4.vizChart.ChartDelegate
23
+ * @alias sap.ui.mdc.chart.DrillBreadcrumbs
24
24
  */
25
- var DrillBreadcrumbs = Breadcrumbs.extend("sap/m/Breadcrumbs", {});
25
+ var DrillBreadcrumbs = Breadcrumbs.extend("sap.ui.mdc.chart.DrillBreadcrumbs", {
26
+ renderer: {
27
+ apiVersion: 2
28
+ }
29
+ });
26
30
 
27
31
  DrillBreadcrumbs.prototype.init = function(){
28
32
  Breadcrumbs.prototype.init.apply(this, arguments);
@@ -15,10 +15,8 @@ sap.ui.define([
15
15
  *
16
16
  * @param {string} [sId] ID for the new control, generated automatically if no ID is given
17
17
  * @param {object} [mSettings] initial settings for the new control
18
- * @class The Item for the field/property metadata used within MDC controls, an instance can be created to override the default/metadata
18
+ * @class The <code>Item</code> control for the field/property metadata used within MDC controls. An instance can be created to override the default/metadata.
19
19
  * behavior.
20
- * <h3><b>Note:</b></h3>
21
- * The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
22
20
  * @extends sap.ui.core.Element
23
21
  * @author SAP SE
24
22
  * @private
@@ -27,7 +25,6 @@ sap.ui.define([
27
25
  * @experimental
28
26
  * @since 1.88
29
27
  * @alias sap.ui.mdc.chart.Item
30
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
31
28
  */
32
29
  var Item = Element.extend("sap.ui.mdc.chart.Item", /** @lends sap.ui.mdc.chart.Item.prototype */
33
30
  {
@@ -36,15 +33,13 @@ sap.ui.define([
36
33
  library: "sap.ui.mdc",
37
34
  properties: {
38
35
  /**
39
- * The unique identifier of the chart item which reflects to the name of the data property in the resulting data set
36
+ * The unique identifier of the chart item that reflects the name of the data property in the resulting data set.
40
37
  */
41
38
  name: {
42
39
  type: "string"
43
40
  },
44
41
  /**
45
- * Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label.
46
- *
47
- * <b>NOTE:</b> This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting.
42
+ * Label for the item, either as a string literal or by a pointer, using the binding to some property containing the label.
48
43
  */
49
44
  label: {
50
45
  type: "string"
@@ -55,9 +50,9 @@ sap.ui.define([
55
50
  defaultValue:""
56
51
  },
57
52
  /**
58
- * Specifies the role of the Item for the chart.
59
- * This is specific for the used chart library. Consult their documentation.
60
- * <b>NOTE: </b> This property should not be changed after initialization.
53
+ * Specifies the role of the item for the chart.
54
+ * This is specific for the used chart library.
55
+ * <b>NOTE: </b> This property must not be changed after initialization.
61
56
  */
62
57
  role: {
63
58
  type: "string"
@@ -12,26 +12,25 @@ sap.ui.define([
12
12
  "use strict";
13
13
 
14
14
  /**
15
- * Constructor for a new table property helper.
15
+ * Constructor for a new chart property helper.
16
16
  *
17
17
  * @param {object[]} aProperties The properties to process in this helper
18
18
  * @param {sap.ui.base.ManagedObject} [oParent] A reference to an instance that will act as the parent of this helper
19
19
  *
20
20
  * @class
21
- * Table property helpers give tables of this library a consistent and standardized view on properties and their attributes.
22
- * Validates the given properties, sets defaults, and provides utilities to work with these properties.
21
+ * Chart property helpers give charts of this library a consistent and standardized view on properties and their attributes.
22
+ * Property helpers validate the given properties, set default values, and provides utilities to work with these properties.
23
23
  * 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.
24
24
  *
25
25
  * @extends sap.ui.mdc.util.PropertyHelper
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.101.0
28
+ * @version 1.103.0
29
29
  *
30
30
  * @private
31
31
  * @experimental
32
32
  * @since 1.83
33
- * @alias sap.ui.mdc.table.PropertyHelper
34
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
33
+ * @alias sap.ui.mdc.chart.PropertyHelper
35
34
  */
36
35
  var PropertyHelper = PropertyHelperBase.extend("sap.ui.mdc.chart.PropertyHelper");
37
36
 
@@ -46,9 +45,9 @@ sap.ui.define([
46
45
  };
47
46
 
48
47
  /**
49
- * Gets all aggregatable properties.
48
+ * Gets all properties with aggregatable flag set to <code>true</code>.
50
49
  *
51
- * @returns {object[]} All aggregatable properties
50
+ * @returns {object[]} All properties with aggregatable flag set to <code>true</code>.
52
51
  * @public
53
52
  */
54
53
  PropertyHelper.prototype.getAllAggregatableProperties = function() {
@@ -13,16 +13,15 @@ sap.ui.define([
13
13
  * Constructor for a new SelectionDetailsActions.
14
14
  *
15
15
  * @param {string} [sId] ID for the new control, generated automatically if no ID is given
16
- * @param {object} [mSettings] initial settings for the new control
16
+ * @param {object} [mSettings] Initial settings for the new control
17
17
  * @extends sap.ui.core.Element
18
18
  * @author SAP SE
19
- * @class The SelectionDetailsActions are used to provide additional functionality to the details popover
19
+ * @class The SelectionDetailsActions are used to provide additional functionality to the Details popover.
20
20
  * @ui5-restricted sap.fe
21
21
  * @MDC_PUBLIC_CANDIDATE
22
22
  * @experimental
23
23
  * @since 1.88
24
24
  * @alias sap.ui.mdc.chart.SelectionDetailsActions
25
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
26
25
  */
27
26
  var SelectionDetailsActions = Element.extend("sap.ui.mdc.chart.SelectionDetailsActions", {
28
27
 
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  *
29
29
  * @namespace
30
30
  * @author SAP SE
31
- * @version 1.101.0
31
+ * @version 1.103.0
32
32
  * @since 1.61.0
33
33
  * @alias sap.ui.mdc.condition.Condition
34
34
  *