@openui5/sap.ui.mdc 1.100.0 → 1.102.1

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 (223) hide show
  1. package/.eslintrc.json +19 -0
  2. package/THIRDPARTY.txt +5 -5
  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/Chart.js +28 -46
  7. package/src/sap/ui/mdc/ChartDelegate.js +10 -0
  8. package/src/sap/ui/mdc/Control.js +1 -1
  9. package/src/sap/ui/mdc/Element.js +1 -1
  10. package/src/sap/ui/mdc/Field.js +9 -2
  11. package/src/sap/ui/mdc/FilterBar.js +1 -1
  12. package/src/sap/ui/mdc/FilterField.js +2 -2
  13. package/src/sap/ui/mdc/Link.js +1 -1
  14. package/src/sap/ui/mdc/LinkDelegate.js +7 -5
  15. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  16. package/src/sap/ui/mdc/Table.js +313 -424
  17. package/src/sap/ui/mdc/TableDelegate.js +92 -39
  18. package/src/sap/ui/mdc/ValueHelp.js +147 -634
  19. package/src/sap/ui/mdc/ValueHelpDelegate.js +159 -7
  20. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
  21. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
  22. package/src/sap/ui/mdc/chart/ChartToolbar.js +8 -3
  23. package/src/sap/ui/mdc/chart/ChartTypeButton.js +11 -2
  24. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +2 -0
  25. package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
  26. package/src/sap/ui/mdc/condition/Condition.js +14 -9
  27. package/src/sap/ui/mdc/condition/ConditionConverter.js +58 -6
  28. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  29. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  30. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +14 -10
  31. package/src/sap/ui/mdc/condition/Operator.js +95 -15
  32. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +5 -3
  33. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  34. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +13 -1
  35. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +3 -1
  36. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
  37. package/src/sap/ui/mdc/enum/PropagationReason.js +43 -0
  38. package/src/sap/ui/mdc/enum/SelectType.js +3 -0
  39. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  40. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  41. package/src/sap/ui/mdc/field/ConditionType.js +59 -21
  42. package/src/sap/ui/mdc/field/ConditionsType.js +7 -2
  43. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  44. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  45. package/src/sap/ui/mdc/field/DefineConditionPanel.js +15 -19
  46. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +3 -3
  47. package/src/sap/ui/mdc/field/FieldBase.js +29 -13
  48. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +41 -19
  49. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
  50. package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
  51. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  52. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  53. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  54. package/src/sap/ui/mdc/field/FieldValueHelp.js +6 -4
  55. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  56. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -1
  57. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +7 -1
  58. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
  59. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +28 -29
  60. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  61. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  62. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  63. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  64. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  65. package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
  66. package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
  67. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  68. package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
  69. package/src/sap/ui/mdc/field/content/DateTimeContent.js +43 -2
  70. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +90 -69
  71. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +5 -0
  72. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  73. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -0
  74. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -0
  75. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +41 -11
  76. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +37 -5
  77. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +4 -41
  78. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +54 -0
  79. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +2 -2
  80. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  81. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  82. package/src/sap/ui/mdc/library.js +21 -25
  83. package/src/sap/ui/mdc/link/ContactDetails.js +107 -23
  84. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  85. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  86. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  87. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  88. package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +26 -0
  89. package/src/sap/ui/mdc/link/Factory.js +1 -1
  90. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  91. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  92. package/src/sap/ui/mdc/link/Panel.js +196 -24
  93. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  94. package/src/sap/ui/mdc/link/PanelRenderer.js +26 -0
  95. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  96. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  97. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  98. package/src/sap/ui/mdc/messagebundle.properties +9 -5
  99. package/src/sap/ui/mdc/messagebundle_ar.properties +9 -7
  100. package/src/sap/ui/mdc/messagebundle_bg.properties +7 -5
  101. package/src/sap/ui/mdc/messagebundle_ca.properties +7 -5
  102. package/src/sap/ui/mdc/messagebundle_cs.properties +7 -5
  103. package/src/sap/ui/mdc/messagebundle_cy.properties +7 -5
  104. package/src/sap/ui/mdc/messagebundle_da.properties +7 -5
  105. package/src/sap/ui/mdc/messagebundle_de.properties +7 -5
  106. package/src/sap/ui/mdc/messagebundle_el.properties +6 -4
  107. package/src/sap/ui/mdc/messagebundle_en.properties +7 -5
  108. package/src/sap/ui/mdc/messagebundle_en_GB.properties +7 -5
  109. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -5
  110. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +7 -5
  111. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +7 -5
  112. package/src/sap/ui/mdc/messagebundle_es.properties +7 -5
  113. package/src/sap/ui/mdc/messagebundle_es_MX.properties +7 -5
  114. package/src/sap/ui/mdc/messagebundle_et.properties +7 -5
  115. package/src/sap/ui/mdc/messagebundle_fi.properties +7 -5
  116. package/src/sap/ui/mdc/messagebundle_fr.properties +7 -5
  117. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +7 -5
  118. package/src/sap/ui/mdc/messagebundle_hi.properties +7 -5
  119. package/src/sap/ui/mdc/messagebundle_hr.properties +7 -5
  120. package/src/sap/ui/mdc/messagebundle_hu.properties +7 -5
  121. package/src/sap/ui/mdc/messagebundle_id.properties +7 -5
  122. package/src/sap/ui/mdc/messagebundle_it.properties +7 -5
  123. package/src/sap/ui/mdc/messagebundle_iw.properties +6 -4
  124. package/src/sap/ui/mdc/messagebundle_ja.properties +8 -6
  125. package/src/sap/ui/mdc/messagebundle_kk.properties +7 -5
  126. package/src/sap/ui/mdc/messagebundle_ko.properties +6 -4
  127. package/src/sap/ui/mdc/messagebundle_lt.properties +7 -5
  128. package/src/sap/ui/mdc/messagebundle_lv.properties +7 -5
  129. package/src/sap/ui/mdc/messagebundle_ms.properties +7 -5
  130. package/src/sap/ui/mdc/messagebundle_nl.properties +7 -5
  131. package/src/sap/ui/mdc/messagebundle_no.properties +7 -5
  132. package/src/sap/ui/mdc/messagebundle_pl.properties +7 -5
  133. package/src/sap/ui/mdc/messagebundle_pt.properties +13 -11
  134. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +7 -5
  135. package/src/sap/ui/mdc/messagebundle_ro.properties +7 -5
  136. package/src/sap/ui/mdc/messagebundle_ru.properties +7 -5
  137. package/src/sap/ui/mdc/messagebundle_sh.properties +10 -8
  138. package/src/sap/ui/mdc/messagebundle_sk.properties +7 -5
  139. package/src/sap/ui/mdc/messagebundle_sl.properties +8 -6
  140. package/src/sap/ui/mdc/messagebundle_sv.properties +8 -6
  141. package/src/sap/ui/mdc/messagebundle_th.properties +7 -5
  142. package/src/sap/ui/mdc/messagebundle_tr.properties +10 -8
  143. package/src/sap/ui/mdc/messagebundle_uk.properties +7 -5
  144. package/src/sap/ui/mdc/messagebundle_vi.properties +7 -5
  145. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +7 -5
  146. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +7 -5
  147. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +4 -11
  148. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  149. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  150. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  151. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +10 -4
  152. package/src/sap/ui/mdc/odata/TypeUtil.js +1 -0
  153. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +1 -1
  154. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +8 -6
  155. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +18 -33
  156. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +63 -3
  157. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +76 -3
  158. package/src/sap/ui/mdc/p13n/Engine.js +154 -54
  159. package/src/sap/ui/mdc/p13n/FlexUtil.js +26 -14
  160. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  161. package/src/sap/ui/mdc/p13n/StateUtil.js +30 -51
  162. package/src/sap/ui/mdc/p13n/UIManager.js +6 -2
  163. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +0 -178
  164. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +15 -12
  165. package/src/sap/ui/mdc/p13n/modules/xConfigAPI.js +219 -0
  166. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +73 -14
  167. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +42 -18
  168. package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -0
  169. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  170. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +30 -2
  171. package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +46 -0
  172. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +37 -6
  173. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +24 -6
  174. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +9 -2
  175. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +2 -2
  176. package/src/sap/ui/mdc/table/Column.js +271 -132
  177. package/src/sap/ui/mdc/table/CreationRow.js +3 -1
  178. package/src/sap/ui/mdc/table/GridTableType.js +0 -5
  179. package/src/sap/ui/mdc/table/PropertyHelper.js +80 -158
  180. package/src/sap/ui/mdc/table/ResponsiveTableType.js +64 -44
  181. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  182. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  183. package/src/sap/ui/mdc/table/TableSettings.js +10 -22
  184. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  185. package/src/sap/ui/mdc/table/menu/Item.js +78 -0
  186. package/src/sap/ui/mdc/table/menu/ItemContainer.js +60 -0
  187. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +151 -0
  188. package/src/sap/ui/mdc/themes/base/Chart.less +9 -0
  189. package/src/sap/ui/mdc/themes/base/InfoPanel.less +1 -0
  190. package/src/sap/ui/mdc/ui/Container.js +0 -0
  191. package/src/sap/ui/mdc/util/DateUtil.js +30 -5
  192. package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
  193. package/src/sap/ui/mdc/util/IdentifierUtil.js +3 -3
  194. package/src/sap/ui/mdc/util/PromiseCache.js +6 -2
  195. package/src/sap/ui/mdc/util/PropertyHelper.js +5 -1
  196. package/src/sap/ui/mdc/valuehelp/Dialog.js +291 -66
  197. package/src/sap/ui/mdc/valuehelp/Popover.js +4 -3
  198. package/src/sap/ui/mdc/valuehelp/base/Container.js +71 -52
  199. package/src/sap/ui/mdc/valuehelp/base/Content.js +57 -24
  200. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
  201. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +193 -280
  202. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +6 -6
  203. package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
  204. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -4
  205. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +4 -4
  206. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +65 -59
  207. package/src/sap/ui/mdc/valuehelp/content/MTable.js +95 -182
  208. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
  209. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +4 -5
  210. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +4 -5
  211. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
  212. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -2
  213. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +53 -12
  214. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +6 -6
  215. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +103 -122
  216. package/test/sap/ui/mdc/testutils/opa/p13n/waitForSelectWithSelectedTextOnPanel.js +5 -2
  217. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +70 -0
  218. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +9 -7
  219. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +2 -2
  220. package/src/sap/ui/mdc/link/ContactDetails.control.xml +0 -29
  221. package/src/sap/ui/mdc/link/Panel.control.xml +0 -36
  222. package/src/sap/ui/mdc/link/PanelListItem.control.xml +0 -24
  223. package/src/sap/ui/mdc/link/PanelListItem.js +0 -101
@@ -20,11 +20,11 @@ sap.ui.define([
20
20
  /**
21
21
  * Constructor for a new <code>Container</code>.
22
22
  *
23
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
24
- * @param {object} [mSettings] Initial settings for the new control
25
- * @class Container for the <code>ValueHelp</code> element.
23
+ * @param {string} [sId] ID for the new element, generated automatically if no ID is given
24
+ * @param {object} [mSettings] Initial settings for the new element
25
+ * @class Container for the {@link sap.ui.mdc.ValueHelp ValueHelp} element.
26
26
  * @extends sap.ui.core.Element
27
- * @version 1.100.0
27
+ * @version 1.102.1
28
28
  * @constructor
29
29
  * @abstract
30
30
  * @private
@@ -112,7 +112,10 @@ sap.ui.define([
112
112
  */
113
113
  requestDelegateContent: {
114
114
  parameters: {
115
- container: { type: "sap.ui.mdc.valuehelp.base.Container" }
115
+ /**
116
+ * Content wrapper id for which contents are requested
117
+ */
118
+ contentId: { type: "string" }
116
119
  }
117
120
  },
118
121
  /**
@@ -127,7 +130,7 @@ sap.ui.define([
127
130
  /**
128
131
  * True if the focus should be set back to the field.
129
132
  */
130
- bLeaveFocus: { type: "boolean" },
133
+ leaveFocus: { type: "boolean" },
131
134
  /**
132
135
  * Navigated condition.
133
136
  *
@@ -155,44 +158,50 @@ sap.ui.define([
155
158
  if (oChanges.name === "content") {
156
159
  var oContent = oChanges.child;
157
160
  if (oChanges.mutation === "remove") {
158
- oContent.unbindProperty("filterValue");
159
- oContent.unbindProperty("conditions");
160
- oContent.unbindProperty("config");
161
- oContent.detachConfirm(this._handleConfirmed, this);
162
- oContent.detachCancel(this._handleCanceled, this);
163
- oContent.detachSelect(this._handleSelect, this);
164
- oContent.detachRequestDelegateContent(this._handleRequestDelegateContent, this);
165
-
166
- if (oContent.detachNavigated) {
167
- oContent.detachNavigated(this._handleNavigated, this);
168
- }
169
-
170
- if (oContent.detachRequestSwitchToDialog) {
171
- oContent.detachRequestSwitchToDialog(this._handleRequestSwitchToDialog, this);
172
- }
161
+ this._unbindContent(oContent);
173
162
 
174
163
  } else {
175
- oContent.bindProperty("filterValue", { path: "/filterValue", model: "$valueHelp", mode: BindingMode.OneWay}); // inherit from ValueHelp
176
- var oBindingOptions = { path: "/conditions", model: "$valueHelp", mode: BindingMode.OneWay};
177
- if (oContent._formatConditions) {
178
- oBindingOptions.formatter = oContent._formatConditions.bind(oContent);
179
- }
180
- oContent.bindProperty("conditions", oBindingOptions); // inherit from ValueHelp
181
- oContent.bindProperty("config", { path: "/_config", model: "$valueHelp", mode: BindingMode.OneWay}); // inherit from ValueHelp
164
+ this._bindContent(oContent);
165
+ }
166
+ }
167
+ };
182
168
 
183
- oContent.attachConfirm(this._handleConfirmed, this);
184
- oContent.attachCancel(this._handleCanceled, this);
185
- oContent.attachSelect(this._handleSelect, this);
186
- oContent.attachRequestDelegateContent(this._handleRequestDelegateContent, this);
169
+ Container.prototype._bindContent = function (oContent) {
170
+ oContent.bindProperty("filterValue", { path: "/filterValue", model: "$valueHelp", mode: BindingMode.OneWay}); // inherit from ValueHelp
171
+ var oBindingOptions = { path: "/conditions", model: "$valueHelp", mode: BindingMode.OneWay};
172
+ if (oContent._formatConditions) {
173
+ oBindingOptions.formatter = oContent._formatConditions.bind(oContent);
174
+ }
175
+ oContent.bindProperty("conditions", oBindingOptions); // inherit from ValueHelp
176
+ oContent.bindProperty("config", { path: "/_config", model: "$valueHelp", mode: BindingMode.OneWay}); // inherit from ValueHelp
187
177
 
188
- if (oContent.attachNavigated) {
189
- oContent.attachNavigated(this._handleNavigated, this);
190
- }
178
+ oContent.attachConfirm(this._handleConfirmed, this);
179
+ oContent.attachCancel(this._handleCanceled, this);
180
+ oContent.attachSelect(this._handleSelect, this);
191
181
 
192
- if (oContent.attachRequestSwitchToDialog) {
193
- oContent.attachRequestSwitchToDialog(this._handleRequestSwitchToDialog, this);
194
- }
195
- }
182
+ if (oContent.attachNavigated) {
183
+ oContent.attachNavigated(this._handleNavigated, this);
184
+ }
185
+
186
+ if (oContent.attachRequestSwitchToDialog) {
187
+ oContent.attachRequestSwitchToDialog(this._handleRequestSwitchToDialog, this);
188
+ }
189
+ };
190
+
191
+ Container.prototype._unbindContent = function (oContent) {
192
+ oContent.unbindProperty("filterValue");
193
+ oContent.unbindProperty("conditions");
194
+ oContent.unbindProperty("config");
195
+ oContent.detachConfirm(this._handleConfirmed, this);
196
+ oContent.detachCancel(this._handleCanceled, this);
197
+ oContent.detachSelect(this._handleSelect, this);
198
+
199
+ if (oContent.detachNavigated) {
200
+ oContent.detachNavigated(this._handleNavigated, this);
201
+ }
202
+
203
+ if (oContent.detachRequestSwitchToDialog) {
204
+ oContent.detachRequestSwitchToDialog(this._handleRequestSwitchToDialog, this);
196
205
  }
197
206
  };
198
207
 
@@ -305,10 +314,6 @@ sap.ui.define([
305
314
  this.fireCancel();
306
315
  };
307
316
 
308
- Container.prototype._handleRequestDelegateContent = function (oEvent) {
309
- this.fireRequestDelegateContent({container: this});
310
- };
311
-
312
317
  Container.prototype._handleSelect = function (oEvent) {
313
318
  this.fireSelect({type: oEvent.getParameter("type"), conditions: oEvent.getParameter("conditions")});
314
319
  };
@@ -355,15 +360,18 @@ sap.ui.define([
355
360
  * @param {object} oConfig Configuration
356
361
  * @param {any} oConfig.value Value as entered by user
357
362
  * @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
358
- * @param {object} [oConfig.inParameters] In parameters for the key (as a key must not be unique.)
359
- * @param {object} [oConfig.outParameters] Out parameters for the key (as a key must not be unique.)
363
+ * @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.
364
+ * @param {object} [oConfig.context.inParameter] inParameters of the current condition
365
+ * @param {object} [oConfig.context.ouParameter] outParameters of the current condition
366
+ * @param {object} [oConfig.context.payload] payload of the current condition
360
367
  * @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.
361
- * @param {boolean} [oConfig.checkKeyFirst] If set, the container checks first if the value fits a key // TODO: not longer needed?
362
- * @param {boolean} oConfig.checkKey If set, the container 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.
363
- * @param {boolean} oConfig.checkDescription If set, the container checks only if there is an item with the given description. This is set to <code>false</code> if only the key is used in the field.
368
+ * @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
369
+ * @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.
370
+ * @param {boolean} oConfig.checkDescription If set, the value help checks only if there is an item with the given description. This is set to <code>false</code> if only the key is used in the field.
364
371
  * @param {sap.ui.mdc.condition.ConditionModel} [oConfig.conditionModel] <code>ConditionModel</code>, in case of <code>FilterField</code>
365
372
  * @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, in case of <code>FilterField</code>
366
373
  * @param {boolean} [oConfig.caseSensitive] If set, the check is done case sensitive
374
+ * @param {sap.ui.core.Control} oConfig.control Instance of the calling control
367
375
  * @returns {Promise<sap.ui.mdc.field.FieldHelpItem>} Promise returning object containing description, key, in and out parameters.
368
376
  * @throws {sap.ui.model.FormatException|sap.ui.model.ParseException} if entry is not found or not unique
369
377
  *
@@ -456,7 +464,7 @@ sap.ui.define([
456
464
 
457
465
  /**
458
466
  * Determines if the container provides a own scroll functionality.
459
- * If not, the <code>Content</code> needs to provide a scrolling solution like a <code>ScrollContainer</code>.
467
+ * If not, the <code>Content</code> needs to provide a scrolling solution like a {@link sap.m.ScrollContainer ScrollContainer}.
460
468
  *
461
469
  * <b>Note:</b> This function is used by the container and content and must not be used from outside
462
470
  *
@@ -475,7 +483,7 @@ sap.ui.define([
475
483
  *
476
484
  * <b>Note:</b> This function is used by the container and content and must not be used from outside
477
485
  *
478
- * @returns {sap.ui.mdc.BaseDelegate} <code>typeUtil</code> made available by a delegate module
486
+ * @returns {sap.ui.mdc.BaseDelegate} <code>Delegate</code> module
479
487
  * @throws Throws an error if the delegate module is not available
480
488
  *
481
489
  * @private
@@ -508,7 +516,7 @@ sap.ui.define([
508
516
  *
509
517
  * <b>Note:</b> This function is used by the container and content and must not be used from outside
510
518
  *
511
- * @returns {Promise} Returns a <code>Promise</code> reflecting the delegate initialization
519
+ * @returns {Promise} <code>Promise</code> reflecting the delegate initialization
512
520
  * @throws Throws an error if the delegate module is not available
513
521
  *
514
522
  * @private
@@ -568,7 +576,7 @@ sap.ui.define([
568
576
  /**
569
577
  * Returns the aria attributes the field needs from the value help
570
578
  *
571
- * @param {int} iMaxConditions maximal conditions allowed (as FieldHelp might not be connected to a field)
579
+ * @param {int} iMaxConditions maximal conditions allowed (as <code>ValueHelp</code> might not be connected to a field)
572
580
  * @returns {object} object with the aria-attibutes
573
581
  * @private
574
582
  * @ui5-restricted sap.ui.mdc.ValueHelp
@@ -662,6 +670,17 @@ sap.ui.define([
662
670
  return oResult;
663
671
  };
664
672
 
673
+
674
+ Container.prototype._getRetrieveDelegateContentPromise = function () {
675
+ var oValueHelp = this.getParent();
676
+ return oValueHelp && oValueHelp._retrievePromise("delegateContent");
677
+ };
678
+
679
+ Container.prototype.getSelectedContent = function () {
680
+ var oContent = this.getContent();
681
+ return oContent && oContent[0];
682
+ };
683
+
665
684
  Container.prototype.exit = function() {
666
685
  this._oObserver.disconnect();
667
686
  this._oObserver = undefined;
@@ -28,11 +28,11 @@ sap.ui.define([
28
28
  /**
29
29
  * Constructor for a new <code>Content</code>.
30
30
  *
31
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
32
- * @param {object} [mSettings] Initial settings for the new control
33
- * @class Content for the <code>sap.ui.mdc.valuehelp.base.Container</code> element.
31
+ * @param {string} [sId] ID for the new element, generated automatically if no ID is given
32
+ * @param {object} [mSettings] Initial settings for the new element
33
+ * @class Content for the {@link sap.ui.mdc.valuehelp.base.Container Container} element.
34
34
  * @extends sap.ui.core.Element
35
- * @version 1.100.0
35
+ * @version 1.102.1
36
36
  * @constructor
37
37
  * @abstract
38
38
  * @private
@@ -95,6 +95,14 @@ sap.ui.define([
95
95
  type: "object",
96
96
  defaultValue: {}//,
97
97
  // visibility: "hidden"
98
+ },
99
+ /**
100
+ * Hide content temporary.
101
+ */
102
+ visible: {
103
+ type: "boolean",
104
+ group : "Appearance",
105
+ defaultValue: true
98
106
  }
99
107
 
100
108
  },
@@ -144,10 +152,7 @@ sap.ui.define([
144
152
  * Fired if the change is cancelled.
145
153
  */
146
154
  cancel: {},
147
- /**
148
- * Fired if the content requests the delegate content.
149
- */
150
- requestDelegateContent: {},
155
+
151
156
  /**
152
157
  * Fired if the value help should switch to dialog mode.
153
158
  */
@@ -160,7 +165,7 @@ sap.ui.define([
160
165
  /**
161
166
  * True if the focus should be set back to the field.
162
167
  */
163
- bLeaveFocus: { type: "boolean" },
168
+ leaveFocus: { type: "boolean" },
164
169
  /**
165
170
  * Navigated condition.
166
171
  *
@@ -244,6 +249,16 @@ sap.ui.define([
244
249
 
245
250
  };
246
251
 
252
+ /**
253
+ * Finalize content before it is shown
254
+ *
255
+ * @private
256
+ * @ui5-restricted sap.ui.mdc.valuehelp.base.Container
257
+ */
258
+ Content.prototype.onBeforeShow = function () {
259
+
260
+ };
261
+
247
262
  /**
248
263
  * Called if the content will be shown.
249
264
  *
@@ -276,15 +291,18 @@ sap.ui.define([
276
291
  * @param {object} oConfig Configuration
277
292
  * @param {any} oConfig.value Value as entered by user
278
293
  * @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
279
- * @param {object} [oConfig.inParameters] In parameters for the key (as a key must not be unique.)
280
- * @param {object} [oConfig.outParameters] Out parameters for the key (as a key must not be unique.)
294
+ * @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.
295
+ * @param {object} [oConfig.context.inParameter] inParameters of the current condition
296
+ * @param {object} [oConfig.context.ouParameter] outParameters of the current condition
297
+ * @param {object} [oConfig.context.payload] payload of the current condition
281
298
  * @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.
282
- * @param {boolean} [oConfig.checkKeyFirst] If set, the content checks first if the value fits a key // TODO: not longer needed?
283
- * @param {boolean} oConfig.checkKey If set, the content 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.
284
- * @param {boolean} oConfig.checkDescription If set, the content checks only if there is an item with the given description. This is set to <code>false</code> if only the key is used in the field.
299
+ * @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
300
+ * @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.
301
+ * @param {boolean} oConfig.checkDescription If set, the value help checks only if there is an item with the given description. This is set to <code>false</code> if only the key is used in the field.
285
302
  * @param {sap.ui.mdc.condition.ConditionModel} [oConfig.conditionModel] <code>ConditionModel</code>, in case of <code>FilterField</code>
286
303
  * @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, in case of <code>FilterField</code>
287
304
  * @param {boolean} [oConfig.caseSensitive] If set, the check is done case sensitive
305
+ * @param {sap.ui.core.Control} oConfig.control Instance of the calling control
288
306
  * @returns {Promise<sap.ui.mdc.field.FieldHelpItem>} Promise returning object containing description, key, in and out parameters.
289
307
  * @throws {sap.ui.model.FormatException|sap.ui.model.ParseException} if entry is not found or not unique
290
308
  *
@@ -339,16 +357,15 @@ sap.ui.define([
339
357
  /**
340
358
  * Creates a condition based on the used operator.
341
359
  *
342
- * @param {string} vValue Value of the condition. For item conditions this must be the key.
360
+ * @param {any} vValue Value of the condition. For item conditions this must be the key.
343
361
  * @param {string} [sDescription] Description of the operator
344
- * @param {object} [oInParameters] In parameters of the condition
345
- * @param {object} [oOutParameters] Out parameters of the condition
362
+ * @param {object} [oPayload] payload
346
363
  * @returns {sap.ui.mdc.condition.ConditionObject} The new condition object with the maintained operator along with <code>sKey</code> and <code>sDescription</code> as <code>aValues</code>
347
364
  * @private
348
- * @ui5-restricted FieldHelp subclasses
365
+ * @ui5-restricted ValueHelp subclasses
349
366
  * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
350
367
  */
351
- Content.prototype._createCondition = function(vValue, sDescription, oInParameters, oOutParameters) {
368
+ Content.prototype._createCondition = function(vValue, sDescription, oPayload) {
352
369
 
353
370
  var oOperator = _getOperator.call(this);
354
371
 
@@ -358,8 +375,7 @@ sap.ui.define([
358
375
  aValues.push(sDescription);
359
376
  }
360
377
 
361
- return Condition.createCondition(oOperator.name, aValues, oInParameters, oOutParameters, ConditionValidated.Validated); // Conditions from help are always validated
362
-
378
+ return Condition.createCondition(oOperator.name, aValues, undefined, undefined, ConditionValidated.Validated, oPayload); // Conditions from help are always validated
363
379
  };
364
380
 
365
381
  /**
@@ -435,7 +451,7 @@ sap.ui.define([
435
451
 
436
452
  /**
437
453
  * Determines if the the content needs to provide a scrolling mechanism like a
438
- * <code>ScrollContainer</code>
454
+ * {@link sap.m.ScrollContainer ScrollContainer}
439
455
  *
440
456
  * <b>Note:</b> This function is used by the content and must not be used from outside
441
457
  *
@@ -479,6 +495,11 @@ sap.ui.define([
479
495
  return oContainer && oContainer.isValueHelpDelegateInitialized();
480
496
  };
481
497
 
498
+ Content.prototype._getControl = function () {
499
+ var oContainer = this.getParent();
500
+ return oContainer && oContainer._getControl();
501
+ };
502
+
482
503
  Content.prototype.getCount = function (aConditions) {
483
504
  return 0;
484
505
  };
@@ -488,7 +509,7 @@ sap.ui.define([
488
509
  *
489
510
  * <b>Note</b> This function needs only to be implemented for <code>Content</code>
490
511
  * implementing the <code>sap.ui.mdc.valuehelp.Popover</code> container.
491
- * On dialogs the <code>Dialog</code> container defines the icon, as it could have multiple contents.
512
+ * On dialogs the <code>sap.ui.mdc.valuehelp.Dialog</code> container defines the icon, as it could have multiple contents.
492
513
  *
493
514
  * @returns {string} Name of the icon
494
515
  * @private
@@ -582,6 +603,18 @@ sap.ui.define([
582
603
 
583
604
  };
584
605
 
606
+ /**
607
+ * Determines if quick selection is supported.
608
+ *
609
+ * @returns {boolean} if true, quick-selection is supported.
610
+ *
611
+ * @private
612
+ * @ui5-restricted sap.ui.mdc.valuehelp.base.Container
613
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
614
+ */
615
+ Content.prototype.isQuickSelectSupported = function() {
616
+ return false;
617
+ };
585
618
 
586
619
  /**
587
620
  * Determines if value help dialog should show the tokenizer for the content.
@@ -610,7 +643,7 @@ sap.ui.define([
610
643
  }
611
644
 
612
645
  /**
613
- * Determines the title used in the TabBar of the dialog.
646
+ * Determines the title used in the <code>TabBar</code> of the dialog.
614
647
  *
615
648
  * <b>Note:</b> This function is used by the container and must not be used from outside
616
649
  *
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @param {object} [mSettings] Initial settings for the new control
21
21
  * @class Content for the <code>sap.ui.mdc.valuehelp.content.Dialog</code> element.
22
22
  * @extends sap.ui.core.Control
23
- * @version 1.100.0
23
+ * @version 1.102.1
24
24
  * @constructor
25
25
  * @abstract
26
26
  * @private