@openui5/sap.ui.mdc 1.94.0 → 1.95.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 (178) hide show
  1. package/.reuse/dep5 +1 -6
  2. package/THIRDPARTY.txt +3 -9
  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 +12 -5
  7. package/src/sap/ui/mdc/ChartNew.js +1 -1
  8. package/src/sap/ui/mdc/Control.js +1 -1
  9. package/src/sap/ui/mdc/Element.js +2 -2
  10. package/src/sap/ui/mdc/Field.js +2 -2
  11. package/src/sap/ui/mdc/FilterBar.js +1 -1
  12. package/src/sap/ui/mdc/FilterField.js +28 -4
  13. package/src/sap/ui/mdc/Link.js +1 -1
  14. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  15. package/src/sap/ui/mdc/Table.js +44 -29
  16. package/src/sap/ui/mdc/ValueHelp.js +1459 -0
  17. package/src/sap/ui/mdc/ValueHelpDelegate.js +41 -0
  18. package/src/sap/ui/mdc/chart/ToolbarHandler.js +233 -224
  19. package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
  20. package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +1 -1
  21. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
  22. package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
  23. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  24. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  25. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  26. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  27. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
  28. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  29. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  30. package/src/sap/ui/mdc/enum/SelectType.js +43 -0
  31. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  32. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  33. package/src/sap/ui/mdc/field/ConditionType.js +61 -29
  34. package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
  35. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  36. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  37. package/src/sap/ui/mdc/field/DefineConditionPanel.js +13 -2
  38. package/src/sap/ui/mdc/field/FieldBase.js +81 -35
  39. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +9 -2
  40. package/src/sap/ui/mdc/field/FieldHelpBase.js +64 -4
  41. package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
  42. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  43. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  44. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  45. package/src/sap/ui/mdc/field/FieldValueHelp.js +7 -1
  46. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  47. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  48. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
  49. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
  50. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
  51. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  52. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  53. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  54. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  55. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  56. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  57. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +17 -9
  58. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  59. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
  60. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  61. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  62. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  63. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  64. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +203 -197
  65. package/src/sap/ui/mdc/library.js +576 -4
  66. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  67. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  68. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  69. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  70. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  71. package/src/sap/ui/mdc/link/Factory.js +1 -1
  72. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  73. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  74. package/src/sap/ui/mdc/link/Panel.js +1 -1
  75. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  76. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  77. package/src/sap/ui/mdc/link/SelectionDialog.js +1 -1
  78. package/src/sap/ui/mdc/link/SelectionDialogItem.js +1 -1
  79. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  80. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  81. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  82. package/src/sap/ui/mdc/messagebundle.properties +10 -3
  83. package/src/sap/ui/mdc/messagebundle_ar.properties +10 -3
  84. package/src/sap/ui/mdc/messagebundle_bg.properties +9 -2
  85. package/src/sap/ui/mdc/messagebundle_ca.properties +9 -2
  86. package/src/sap/ui/mdc/messagebundle_cs.properties +11 -4
  87. package/src/sap/ui/mdc/messagebundle_cy.properties +9 -2
  88. package/src/sap/ui/mdc/messagebundle_da.properties +9 -2
  89. package/src/sap/ui/mdc/messagebundle_de.properties +9 -2
  90. package/src/sap/ui/mdc/messagebundle_el.properties +10 -3
  91. package/src/sap/ui/mdc/messagebundle_en.properties +9 -2
  92. package/src/sap/ui/mdc/messagebundle_en_GB.properties +9 -2
  93. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -2
  94. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +7 -2
  95. package/src/sap/ui/mdc/messagebundle_es.properties +33 -26
  96. package/src/sap/ui/mdc/messagebundle_es_MX.properties +9 -2
  97. package/src/sap/ui/mdc/messagebundle_et.properties +9 -2
  98. package/src/sap/ui/mdc/messagebundle_fi.properties +10 -3
  99. package/src/sap/ui/mdc/messagebundle_fr.properties +16 -9
  100. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +9 -2
  101. package/src/sap/ui/mdc/messagebundle_hi.properties +9 -2
  102. package/src/sap/ui/mdc/messagebundle_hr.properties +9 -2
  103. package/src/sap/ui/mdc/messagebundle_hu.properties +10 -3
  104. package/src/sap/ui/mdc/messagebundle_id.properties +9 -2
  105. package/src/sap/ui/mdc/messagebundle_it.properties +32 -25
  106. package/src/sap/ui/mdc/messagebundle_iw.properties +9 -2
  107. package/src/sap/ui/mdc/messagebundle_ja.properties +9 -2
  108. package/src/sap/ui/mdc/messagebundle_kk.properties +9 -2
  109. package/src/sap/ui/mdc/messagebundle_ko.properties +9 -2
  110. package/src/sap/ui/mdc/messagebundle_lt.properties +9 -2
  111. package/src/sap/ui/mdc/messagebundle_lv.properties +9 -2
  112. package/src/sap/ui/mdc/messagebundle_ms.properties +9 -2
  113. package/src/sap/ui/mdc/messagebundle_nl.properties +10 -3
  114. package/src/sap/ui/mdc/messagebundle_no.properties +16 -9
  115. package/src/sap/ui/mdc/messagebundle_pl.properties +13 -6
  116. package/src/sap/ui/mdc/messagebundle_pt.properties +9 -2
  117. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +9 -2
  118. package/src/sap/ui/mdc/messagebundle_ro.properties +12 -5
  119. package/src/sap/ui/mdc/messagebundle_ru.properties +9 -2
  120. package/src/sap/ui/mdc/messagebundle_sh.properties +9 -2
  121. package/src/sap/ui/mdc/messagebundle_sk.properties +10 -3
  122. package/src/sap/ui/mdc/messagebundle_sl.properties +9 -2
  123. package/src/sap/ui/mdc/messagebundle_sv.properties +10 -3
  124. package/src/sap/ui/mdc/messagebundle_th.properties +15 -8
  125. package/src/sap/ui/mdc/messagebundle_tr.properties +9 -2
  126. package/src/sap/ui/mdc/messagebundle_uk.properties +9 -2
  127. package/src/sap/ui/mdc/messagebundle_vi.properties +9 -2
  128. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +9 -2
  129. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +9 -2
  130. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  131. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  132. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  133. package/src/sap/ui/mdc/mixin/PromiseMixin.js +94 -0
  134. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
  135. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
  136. package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
  137. package/src/sap/ui/mdc/p13n/Engine.js +1 -1
  138. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  139. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  140. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +2 -2
  141. package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
  142. package/src/sap/ui/mdc/p13n/panels/ListView.js +1 -1
  143. package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +1 -1
  144. package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +1 -1
  145. package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
  146. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  147. package/src/sap/ui/mdc/table/Column.js +20 -4
  148. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  149. package/src/sap/ui/mdc/table/PropertyHelper.js +176 -4
  150. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  151. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  152. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +51 -21
  153. package/src/sap/ui/mdc/ui/Container.js +2 -2
  154. package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
  155. package/src/sap/ui/mdc/util/Common.js +26 -0
  156. package/src/sap/ui/mdc/util/PromiseCache.js +266 -0
  157. package/src/sap/ui/mdc/util/PropertyHelper.js +19 -1
  158. package/src/sap/ui/mdc/valuehelp/Dialog.js +475 -0
  159. package/src/sap/ui/mdc/valuehelp/Popover.js +346 -0
  160. package/src/sap/ui/mdc/valuehelp/base/Container.js +440 -0
  161. package/src/sap/ui/mdc/valuehelp/base/Content.js +442 -0
  162. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +96 -0
  163. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +537 -0
  164. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +105 -0
  165. package/src/sap/ui/mdc/valuehelp/content/Bool.js +232 -0
  166. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +250 -0
  167. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +504 -0
  168. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +619 -0
  169. package/src/sap/ui/mdc/valuehelp/content/MTable.js +881 -0
  170. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -2
  171. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +250 -0
  172. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +91 -0
  173. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +137 -0
  174. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +25 -0
  175. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +239 -77
  176. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
  177. package/test/sap/ui/mdc/testutils/opa/p13n/{waitForP13nButtonWithParentAndIcon.js → waitForP13nButtonWithMatchers.js} +5 -18
  178. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +0 -1
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  "use strict";
16
16
 
17
17
  sap.ui.getCore().initLibrary({
18
- version: "1.94.0",
18
+ version: "1.95.0",
19
19
  name: "sap.ui.mdc",
20
20
  dependencies: ["sap.ui.core", "sap.m"],
21
21
  designtime: "sap/ui/mdc/designtime/library.designtime",
@@ -32,7 +32,12 @@ sap.ui.define([
32
32
  interfaces: [
33
33
  "sap.ui.mdc.IFilterSource",
34
34
  "sap.ui.mdc.IFilter",
35
- "sap.ui.mdc.IxState"
35
+ "sap.ui.mdc.IxState",
36
+ "sap.ui.mdc.valuehelp.ITypeaheadContent",
37
+ "sap.ui.mdc.valuehelp.IDialogContent",
38
+ "sap.ui.mdc.valuehelp.ITypeaheadContainer",
39
+ "sap.ui.mdc.valuehelp.IDialogContainer"
40
+
36
41
  ],
37
42
  controls: [
38
43
  "sap.ui.mdc.Chart",
@@ -94,7 +99,10 @@ sap.ui.define([
94
99
  "sap.ui.mdc.field.InParameter",
95
100
  "sap.ui.mdc.field.OutParameter",
96
101
  "sap.ui.mdc.ui.ContainerItem",
97
- "sap.ui.mdc.field.MultiValueFieldItem"
102
+ "sap.ui.mdc.field.MultiValueFieldItem",
103
+ "sap.ui.mdc.ValueHelp",
104
+ "sap.ui.mdc.valuehelp.Popover",
105
+ "sap.ui.mdc.valuehelp.Dialog"
98
106
  ],
99
107
  extensions: {
100
108
  flChangeHandlers: {
@@ -109,6 +117,570 @@ sap.ui.define([
109
117
  },
110
118
  noLibraryCSS: false
111
119
  });
120
+
121
+
122
+
123
+
124
+
125
+
126
+ /**
127
+ *
128
+ * Interface for valuehelp containers / contents supporting typeahead functionality
129
+ *
130
+ *
131
+ * @since 1.94
132
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent
133
+ * @interface
134
+ * @private
135
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
136
+ */
137
+
138
+ /**
139
+ *
140
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent#cancel
141
+ * @event
142
+ * @param {sap.ui.base.Event} oControlEvent
143
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
144
+ */
145
+
146
+ /**
147
+ *
148
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent#confirm
149
+ * @event
150
+ * @param {sap.ui.base.Event} oControlEvent
151
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
152
+ */
153
+
154
+ /**
155
+ *
156
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent#requestDelegateContent
157
+ * @event
158
+ * @param {sap.ui.base.Event} oControlEvent
159
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
160
+ */
161
+
162
+ /**
163
+ *
164
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent#select
165
+ * @event
166
+ * @param {sap.ui.base.Event} oControlEvent
167
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
168
+ */
169
+
170
+ /**
171
+ * Returns a title for the given Content
172
+ *
173
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.getTitle
174
+ * @method
175
+ * @returns {string} Content title as string
176
+
177
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
178
+ */
179
+
180
+ /**
181
+ * Returns info if the given content is in multi select mode
182
+ *
183
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.isMultiSelect
184
+ * @method
185
+ * @returns {string} Content title as string
186
+
187
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
188
+ */
189
+
190
+ /**
191
+ * Loads additional dependencies, creates and returns displayed content.
192
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.getContent
193
+ * @method
194
+ * @returns {Promise<sap.ui.core.Control>} Promise resolving in displayed content
195
+ * @private
196
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
197
+ */
198
+
199
+
200
+ /**
201
+ * Determines the item (key and description) for a given value.
202
+ *
203
+ * The value help checks if there is an item with a key or description that fits this value.
204
+ *
205
+ * <b>Note:</b> This function must only be called by the control the <code>ValuedHelp</code> element
206
+ * belongs to, not by the application.
207
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.getItemForValue
208
+ * @method
209
+ * @param {object} oConfig Configuration
210
+ * @param {any} oConfig.value Value as entered by user
211
+ * @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
212
+ * @param {object} [oConfig.inParameters] In parameters for the key (as a key must not be unique.)
213
+ * @param {object} [oConfig.outParameters] Out parameters for the key (as a key must not be unique.)
214
+ * @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.
215
+ * @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
216
+ * @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.
217
+ * @param {boolean} oConfig.checkDescription If set, the field 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.
218
+ * @param {sap.ui.mdc.condition.ConditionModel} [oConfig.conditionModel] <code>ConditionModel</code>, in case of <code>FilterField</code>
219
+ * @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, in case of <code>FilterField</code>
220
+ * @returns {Promise<sap.ui.mdc.valuehelp.ValueHelpItem>} Promise returning object containing description, key, in and out parameters.
221
+ * @throws {sap.ui.model.FormatException|sap.ui.model.ParseException} if entry is not found or not unique
222
+ *
223
+ * @private
224
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
225
+ */
226
+
227
+ /**
228
+ * Navigates the typeaheads values (optional)
229
+ *
230
+ * As this could be asyncronous as data might be loaded a promise is returned.
231
+ *
232
+ *
233
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.navigate
234
+ * @method
235
+ * @param {int} iStep Number of steps for navigation (e.g. 1 means next item, -1 means previous item)
236
+ * @returns {Promise<object>} Promise returning object of navigated item (condition and itemId)
237
+ *
238
+ * @private
239
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
240
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
241
+ */
242
+
243
+
244
+ /**
245
+ * This optional event is fired after either a filter value or the visibility of a filter item has been changed.
246
+ *
247
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent#navigated
248
+ * @event
249
+ * @param {sap.ui.base.Event} oControlEvent
250
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
251
+ * @param {object} oControlEvent.getParameters
252
+ * @param {boolean} oControlEvent.getParameters.bLeaveFocus Indicates that the source control should be focused again
253
+ * @param {object} oControlEvent.getParameters.condition Provides the target condition of the navigation
254
+ * @param {string} oControlEvent.getParameters.value When no condition is given this can be used to create a default condition
255
+ * @param {string} oControlEvent.getParameters.key When no condition is given this can be used to create a default condition
256
+ * @param {string} oControlEvent.getParameters.itemId provides the navigated item's id (useful for aria attributes)
257
+ */
258
+
259
+ /**
260
+ * This optional event can be fired by typaehead contents also supporting dialog mode.
261
+ *
262
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent#requestSwitchToDialog
263
+ * @event
264
+ */
265
+
266
+ /**
267
+ If the container is used for type-ahead it might be wanted that the same content should also be shown as valuehelp. If not, the field should not show a valuehelp icon.
268
+ *
269
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.getUseAsValueHelp
270
+ * @method
271
+ * @private
272
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
273
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
274
+ */
275
+
276
+ /**
277
+ * Defines if the typeahead can be used for input validation.
278
+ *
279
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.isValidationSupported
280
+ * @method
281
+ * @returns {boolean} True if the typeahead container can be used for input validation
282
+ *
283
+ * @private
284
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
285
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
286
+ */
287
+
288
+ /**
289
+ * Defines if the typeahead containers values can be navigated without visibly opening the help
290
+ *
291
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.shouldOpenOnNavigate
292
+ * @method
293
+ * @returns {boolean} True if value help shall open as valuehelp
294
+ * @private
295
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
296
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
297
+ */
298
+
299
+ /**
300
+ * The focus visualization of the field help needs to be removed as the user starts typing into the source control.
301
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContent.removeFocus
302
+ * @method
303
+ * @private
304
+ * @ui5-restricted sap.ui.mdc.valuehelp.ITypeaheadContainer
305
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
306
+ */
307
+
308
+
309
+ /**
310
+ *
311
+ * Interface for valuehelp containers
312
+ *
313
+ *
314
+ * @since 1.94
315
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer
316
+ * @interface
317
+ * @private
318
+ * @ui5-restricted sap.ui.mdc.ValueHelp
319
+ */
320
+
321
+ /**
322
+ *
323
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#cancel
324
+ * @event
325
+ * @param {sap.ui.base.Event} oControlEvent
326
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
327
+ */
328
+
329
+ /**
330
+ *
331
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#confirm
332
+ * @event
333
+ * @param {sap.ui.base.Event} oControlEvent
334
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
335
+ */
336
+
337
+ /**
338
+ *
339
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#requestDelegateContent
340
+ * @event
341
+ * @param {sap.ui.base.Event} oControlEvent
342
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
343
+ */
344
+
345
+ /**
346
+ *
347
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#select
348
+ * @event
349
+ * @param {sap.ui.base.Event} oControlEvent
350
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
351
+ */
352
+
353
+ /**
354
+ *
355
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#opened
356
+ * @event
357
+ * @param {sap.ui.base.Event} oControlEvent
358
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
359
+ */
360
+
361
+ /**
362
+ *
363
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#closed
364
+ * @event
365
+ * @param {sap.ui.base.Event} oControlEvent
366
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
367
+ */
368
+
369
+ /**
370
+ * Opens the container
371
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.open
372
+ * @method
373
+ * @returns {Promise} This promise resolves after the container completely opened.
374
+ *
375
+ * @private
376
+ * @ui5-restricted sap.ui.mdc.ValueHelp
377
+ */
378
+
379
+ /**
380
+ * Closes the container
381
+ *
382
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.close
383
+ * @method
384
+ * @returns {Promise} This promise resolves after the container completely closed.
385
+ *
386
+ * @private
387
+ * @ui5-restricted sap.ui.mdc.ValueHelp
388
+ */
389
+
390
+ /**
391
+ * Determines the item (key and description) for a given value.
392
+ *
393
+ * The value help checks if there is an item with a key or description that fits this value.
394
+ *
395
+ * <b>Note:</b> This function must only be called by the control the <code>ValuedHelp</code> element
396
+ * belongs to, not by the application.
397
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.getItemForValue
398
+ * @method
399
+ * @param {object} oConfig Configuration
400
+ * @param {any} oConfig.value Value as entered by user
401
+ * @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
402
+ * @param {object} [oConfig.inParameters] In parameters for the key (as a key must not be unique.)
403
+ * @param {object} [oConfig.outParameters] Out parameters for the key (as a key must not be unique.)
404
+ * @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.
405
+ * @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
406
+ * @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.
407
+ * @param {boolean} oConfig.checkDescription If set, the field 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.
408
+ * @param {sap.ui.mdc.condition.ConditionModel} [oConfig.conditionModel] <code>ConditionModel</code>, in case of <code>FilterField</code>
409
+ * @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, in case of <code>FilterField</code>
410
+ * @returns {Promise<sap.ui.mdc.valuehelp.ValueHelpItem>} Promise returning object containing description, key, in and out parameters.
411
+ * @throws {sap.ui.model.FormatException|sap.ui.model.ParseException} if entry is not found or not unique
412
+ *
413
+ * @private
414
+ * @ui5-restricted sap.ui.mdc.ValueHelp
415
+ */
416
+
417
+ /**
418
+ * Navigates the typeaheads values (optional)
419
+ *
420
+ * As this could be asyncronous as data might be loaded a promise is returned.
421
+ *
422
+ *
423
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.navigate
424
+ * @method
425
+ * @param {int} iStep Number of steps for navigation (e.g. 1 means next item, -1 means previous item)
426
+ * @returns {Promise<object>} Promise returning object of navigated item (condition and itemId)
427
+ *
428
+ * @private
429
+ * @ui5-restricted sap.ui.mdc.ValueHelp
430
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
431
+ */
432
+
433
+
434
+ /**
435
+ * This optional event is fired after either a filter value or the visibility of a filter item has been changed.
436
+ *
437
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#navigated
438
+ * @event
439
+ * @param {sap.ui.base.Event} oControlEvent
440
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
441
+ * @param {object} oControlEvent.getParameters
442
+ * @param {boolean} oControlEvent.getParameters.bLeaveFocus Indicates that the source control should be focused again
443
+ * @param {object} oControlEvent.getParameters.condition Provides the target condition of the navigation
444
+ * @param {string} oControlEvent.getParameters.value When no condition is given this can be used to create a default condition
445
+ * @param {string} oControlEvent.getParameters.key When no condition is given this can be used to create a default condition
446
+ * @param {string} oControlEvent.getParameters.itemId provides the navigated item's id (useful for aria attributes)
447
+ */
448
+
449
+ /**
450
+ * This optional event can be fired by typaehead contents also supporting dialog mode.
451
+ *
452
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer#requestSwitchToDialog
453
+ * @event
454
+ */
455
+
456
+ /**
457
+ If the container is used for type-ahead it might be wanted that the same content should also be shown as valuehelp. If not, the field should not show a valuehelp icon.
458
+ *
459
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.getUseAsValueHelp
460
+ * @method
461
+ * @private
462
+ * @ui5-restricted sap.ui.mdc.ValueHelp
463
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
464
+ */
465
+
466
+ /**
467
+ * Defines if the typeahead can be used for input validation.
468
+ *
469
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.isValidationSupported
470
+ * @method
471
+ * @returns {boolean} True if the typeahead container can be used for input validation
472
+ *
473
+ * @private
474
+ * @ui5-restricted sap.ui.mdc.ValueHelp
475
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
476
+ */
477
+
478
+ /**
479
+ * Defines if the typeahead containers values can be navigated without visibly opening the help
480
+ *
481
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.shouldOpenOnNavigate
482
+ * @method
483
+ * @returns {boolean} True if value help shall open as valuehelp
484
+ * @private
485
+ * @ui5-restricted sap.ui.mdc.ValueHelp
486
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
487
+ */
488
+
489
+ /**
490
+ * The focus visualization of the field help needs to be removed as the user starts typing into the source control.
491
+ * @name sap.ui.mdc.valuehelp.ITypeaheadContainer.removeFocus
492
+ * @method
493
+ * @private
494
+ * @ui5-restricted sap.ui.mdc.ValueHelp
495
+ * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
496
+ */
497
+
498
+
499
+ /**
500
+ *
501
+ * Interface for valuehelp containers / contents supporting typeahead functionality
502
+ *
503
+ *
504
+ * @since 1.94
505
+ * @name sap.ui.mdc.valuehelp.IDialogContent
506
+ * @interface
507
+ * @private
508
+ * @ui5-restricted sap.ui.mdc.valuehelp.IDialogContainer
509
+ */
510
+
511
+ /**
512
+ *
513
+ * @name sap.ui.mdc.valuehelp.IDialogContent#cancel
514
+ * @event
515
+ * @param {sap.ui.base.Event} oControlEvent
516
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
517
+ */
518
+
519
+ /**
520
+ *
521
+ * @name sap.ui.mdc.valuehelp.IDialogContent#confirm
522
+ * @event
523
+ * @param {sap.ui.base.Event} oControlEvent
524
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
525
+ */
526
+
527
+ /**
528
+ *
529
+ * @name sap.ui.mdc.valuehelp.IDialogContent#requestDelegateContent
530
+ * @event
531
+ * @param {sap.ui.base.Event} oControlEvent
532
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
533
+ */
534
+
535
+ /**
536
+ *
537
+ * @name sap.ui.mdc.valuehelp.IDialogContent#select
538
+ * @event
539
+ * @param {sap.ui.base.Event} oControlEvent
540
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
541
+ */
542
+
543
+ /**
544
+ *
545
+ * Returns number of relevant conditions for this content
546
+ *
547
+ * @name sap.ui.mdc.valuehelp.IDialogContent.getCount
548
+ * @method
549
+ * @returns {number} Number of relevant conditions
550
+ * @private
551
+ * @ui5-restricted sap.ui.mdc.valuehelp.IDialogContainer
552
+ */
553
+
554
+ /**
555
+ * Returns a title for the given Content
556
+ *
557
+ * @name sap.ui.mdc.valuehelp.IDialogContent.getTitle
558
+ * @method
559
+ * @returns {string} Content title as string
560
+ * @ui5-restricted sap.ui.mdc.valuehelp.IDialogContainer
561
+ */
562
+
563
+ /**
564
+ * Returns info if the given content is in multi select mode
565
+ *
566
+ * @name sap.ui.mdc.valuehelp.IDialogContent.isMultiSelect
567
+ * @method
568
+ * @returns {string} Content title as string
569
+
570
+ * @ui5-restricted sap.ui.mdc.valuehelp.IDialogContainer
571
+ */
572
+
573
+ /**
574
+ * Loads additional dependencies, creates and returns displayed content.
575
+ * @name sap.ui.mdc.valuehelp.IDialogContent.getContent
576
+ * @method
577
+ * @returns {Promise<sap.ui.core.Control>} Promise resolving in displayed content
578
+ * @private
579
+ * @ui5-restricted sap.ui.mdc.valuehelp.IDialogContainer
580
+ */
581
+
582
+
583
+
584
+ /**
585
+ *
586
+ * Interface for valuehelp containers
587
+ *
588
+ *
589
+ * @since 1.94
590
+ * @name sap.ui.mdc.valuehelp.IDialogContainer
591
+ * @interface
592
+ * @private
593
+ * @ui5-restricted sap.ui.mdc.valuehelp.IDialogContainer
594
+ */
595
+
596
+ /**
597
+ *
598
+ * @name sap.ui.mdc.valuehelp.IDialogContainer#cancel
599
+ * @event
600
+ * @param {sap.ui.base.Event} oControlEvent
601
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
602
+ */
603
+
604
+ /**
605
+ *
606
+ * @name sap.ui.mdc.valuehelp.IDialogContainer#confirm
607
+ * @event
608
+ * @param {sap.ui.base.Event} oControlEvent
609
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
610
+ */
611
+
612
+ /**
613
+ *
614
+ * @name sap.ui.mdc.valuehelp.IDialogContainer#requestDelegateContent
615
+ * @event
616
+ * @param {sap.ui.base.Event} oControlEvent
617
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
618
+ */
619
+
620
+ /**
621
+ *
622
+ * @name sap.ui.mdc.valuehelp.IDialogContainer#select
623
+ * @event
624
+ * @param {sap.ui.base.Event} oControlEvent
625
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
626
+ */
627
+
628
+ /**
629
+ *
630
+ * @name sap.ui.mdc.valuehelp.IDialogContainer#opened
631
+ * @event
632
+ * @param {sap.ui.base.Event} oControlEvent
633
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
634
+ */
635
+
636
+ /**
637
+ *
638
+ * @name sap.ui.mdc.valuehelp.IDialogContainer#closed
639
+ * @event
640
+ * @param {sap.ui.base.Event} oControlEvent
641
+ * @param {sap.ui.base.EventProvider} oControlEvent.getSource
642
+ */
643
+
644
+ /**
645
+ * Opens the container
646
+ * @name sap.ui.mdc.valuehelp.IDialogContainer.open
647
+ * @method
648
+ * @returns {Promise} This promise resolves after the container completely opened.
649
+ * @private
650
+ * @ui5-restricted sap.ui.mdc.ValueHelp
651
+ */
652
+
653
+ /**
654
+ * Closes the container
655
+ *
656
+ * @name sap.ui.mdc.valuehelp.IDialogContainer.close
657
+ * @method
658
+ * @returns {Promise} This promise resolves after the container completely closed.
659
+ *
660
+ * @private
661
+ * @ui5-restricted sap.ui.mdc.ValueHelp
662
+ */
663
+
664
+
665
+
666
+ /**
667
+ * Item object type.
668
+ *
669
+ * If an item is requested using a description or key, an object with the following
670
+ * properties is returned.
671
+ *
672
+ * @type {sap.ui.mdc.valuehelp.ValueHelpItem}
673
+ * @static
674
+ * @constant
675
+ * @typedef {Object} sap.ui.mdc.valuehelp.ValueHelpItem
676
+ * @property {any} key Key of the item
677
+ * @property {string} description Description of the item
678
+ * @property {object} [inParameters] In parameters of the item. For each field path a value is stored
679
+ * @property {object} [outParameters] Out parameters of the item. For each field path a value is stored
680
+ * @private
681
+ * @ui5-restricted sap.ui.mdc
682
+ */
683
+
112
684
  /**
113
685
  *
114
686
  * Interface for controls or entities which are able to return a set of present conditions.
@@ -183,7 +755,7 @@ sap.ui.define([
183
755
  * @namespace
184
756
  * @alias sap.ui.mdc
185
757
  * @author SAP SE
186
- * @version 1.94.0
758
+ * @version 1.95.0
187
759
  * @since 1.80
188
760
  * @private
189
761
  * @ui5-restricted sap.fe
@@ -15,7 +15,7 @@ sap.ui.define(['sap/ui/core/XMLComposite', 'sap/m/Text', 'sap/m/Link', 'sap/m/La
15
15
  * @class The ContactDetails control is used to show additional information like for example 'contact details'.
16
16
  * @extends sap.ui.core.XMLComposite
17
17
  * @author SAP SE
18
- * @version 1.94.0
18
+ * @version 1.95.0
19
19
  * @constructor
20
20
  * @private
21
21
  * @since 1.56.0
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] initial settings for the new control
17
17
  * @class Type for...
18
18
  * @extends sap.ui.core.Element
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.56.0
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] initial settings for the new control
17
17
  * @class Type for...
18
18
  * @extends sap.ui.core.Element
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.56.0
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] initial settings for the new control
17
17
  * @class Type for...
18
18
  * @extends sap.ui.core.Element
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.56.0
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] initial settings for the new control
17
17
  * @class Type for...
18
18
  * @extends sap.ui.core.Element
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.56.0
@@ -11,7 +11,7 @@ sap.ui.define([], function() {
11
11
  * @namespace Factory to access services outside of sap.ui.mdc library like for example <code>ushell</code> services.
12
12
  * @name sap.ui.mdc.link.Factory
13
13
  * @author SAP SE
14
- * @version 1.94.0
14
+ * @version 1.95.0
15
15
  * @private
16
16
  * @since 1.54.0
17
17
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
@@ -13,7 +13,7 @@ sap.ui.define([
13
13
  * @namespace FakeFlpConnector.
14
14
  * @name sap.ui.mdc.link.FakeFlpConnector
15
15
  * @author SAP SE
16
- * @version 1.94.0
16
+ * @version 1.95.0
17
17
  * @private
18
18
  * @since 1.54.0
19
19
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] Initial settings for the new control
17
17
  * @class A <code>LinkItem</code> control is used in the {@link sap.ui.mdc.Link} control to provide a navigation target.
18
18
  * @extends sap.ui.core.Element
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.58.0
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * supposed that the properties of the item structure is not changed.
37
37
  * @extends sap.ui.core.XMLComposite
38
38
  * @author SAP SE
39
- * @version 1.94.0
39
+ * @version 1.95.0
40
40
  * @constructor
41
41
  * @private
42
42
  * @since 1.54.0