@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
@@ -0,0 +1,346 @@
1
+ /*
2
+ * ! OpenUI5
3
+ * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ 'sap/ui/mdc/valuehelp/base/Container',
9
+ 'sap/ui/mdc/util/loadModules',
10
+ "sap/ui/dom/units/Rem"
11
+ ], function(
12
+ Container,
13
+ loadModules,
14
+ Rem
15
+ ) {
16
+ "use strict";
17
+
18
+ var MPopover, MLibrary, Toolbar, ToolbarSpacer;
19
+ var Popover = Container.extend("sap.ui.mdc.valuehelp.Popover", /** @lends sap.ui.mdc.valuehelp.Popover.prototype */
20
+ {
21
+ metadata: {
22
+ library: "sap.ui.mdc",
23
+ interfaces: [
24
+ "sap.ui.mdc.valuehelp.ITypeaheadContainer",
25
+ "sap.ui.mdc.valuehelp.IDialogContainer"
26
+ ],
27
+ properties: {
28
+ },
29
+ defaultAggregation: "content"
30
+ }
31
+ });
32
+
33
+ Popover.prototype.invalidate = function(oOrigin) {
34
+
35
+ if (oOrigin) {
36
+ var oPopover = this.getAggregation("_container");
37
+ var oContent = this._oCurrentContent;
38
+ if (oPopover && oContent && oOrigin === oContent && !this._bIsBeingDestroyed) {
39
+ // Content invalidated -> invalidate Popover to rerender content
40
+ oPopover.invalidate(oOrigin);
41
+ } else { // standard logic
42
+ Container.prototype.invalidate.apply(this, arguments);
43
+ }
44
+ }
45
+
46
+ };
47
+
48
+ Popover.prototype._getUIAreaForContent = function() {
49
+ // if List or Table needs to be rerendered because of a change the corresponding UIArea is the static-UIArea used in the Popover.
50
+ var oPopover = this.getAggregation("_container");
51
+ if (oPopover) {
52
+ return oPopover.getUIArea();
53
+ }
54
+
55
+ return Container.prototype._getUIAreaForContent.apply(this, arguments);
56
+
57
+ };
58
+
59
+ Popover.prototype._getContent = function () {
60
+ var oContent = this.getContent();
61
+ return oContent && oContent[0];
62
+ };
63
+
64
+ Popover.prototype._getContainer = function () {
65
+ var oPopover = this.getAggregation("_container");
66
+
67
+ if (!oPopover) {
68
+ return loadModules([
69
+ "sap/m/Popover",
70
+ "sap/m/library",
71
+ "sap/m/Toolbar",
72
+ "sap/m/ToolbarSpacer"
73
+ ]).then(function (aLoaded) {
74
+ MPopover = aLoaded[0];
75
+ MLibrary = aLoaded[1];
76
+ Toolbar = aLoaded[2];
77
+ ToolbarSpacer = aLoaded[3];
78
+
79
+ oPopover = new MPopover(this.getId() + "-pop", {
80
+ contentHeight: "auto",
81
+ placement: MLibrary.PlacementType.VerticalPreferredBottom,
82
+ showHeader: false,
83
+ showArrow: false,
84
+ title: this.getTitle(),
85
+ titleAlignment: MLibrary.TitleAlignment.Center,
86
+ afterOpen: this._handleOpened.bind(this),
87
+ afterClose: this._handleClosed.bind(this)
88
+ }).addStyleClass("sapMdcValueHelpPopover").addStyleClass("sapMComboBoxBasePicker").addStyleClass("sapMComboBoxBasePicker-CTX"); // to have a ComboBox popup
89
+
90
+ oPopover.addStyleClass(this._isSingleSelect() ? "sapMdcValueHelpSingleSelect" : "sapMdcValueHelpMultiSelect");
91
+
92
+ oPopover.addDelegate({onsapshow: this._handleRequestSwitchToDialog.bind(this)});
93
+
94
+ oPopover._getAllContent = function() {
95
+ var oParent = this.getParent();
96
+ var aContent = [];
97
+ if (oParent) {
98
+ if (this._oCurrentContent) {
99
+ aContent.push(this._oCurrentContent);
100
+ }
101
+ }
102
+ return aContent;
103
+ }.bind(this);
104
+
105
+ var oContent = this._getContent();
106
+ var oPopoverConfiguration = oContent && oContent.getPopoverConfiguration && oContent.getPopoverConfiguration();
107
+
108
+ if (oPopoverConfiguration) {
109
+ oPopover.setShowArrow(!!oPopoverConfiguration.showArrow);
110
+ oPopover.setShowHeader(!!oPopoverConfiguration.showHeader);
111
+ oPopover.setResizable(!!oPopoverConfiguration.resizable);
112
+ }
113
+
114
+ this.setAggregation("_container", oPopover, true);
115
+ return oPopover;
116
+ }.bind(this));
117
+ }
118
+
119
+ return oPopover;
120
+ };
121
+
122
+ var _setContainerHeight = function () {
123
+ var oContainer = this.getAggregation("_container");
124
+ var oContent = this._getContent();
125
+ if (oContainer && oContent && oContent.getContentHeight) {
126
+ var iHeight = oContent && oContent.getContentHeight();
127
+ var iContainerHeight = oContainer.$().find(".sapMPopoverCont").height();
128
+ var bContainerHeightBelowLimit = iContainerHeight < Rem.toPx("30rem");
129
+ oContainer.setContentHeight(!iHeight || bContainerHeightBelowLimit || iContainerHeight >= iHeight ? "auto" : "30rem");
130
+ oContainer.invalidate(); // TODO: Better way? Popover does not always update correctly
131
+ }
132
+ };
133
+
134
+ Popover.prototype._observeChanges = function (oChanges) {
135
+ if (oChanges.name === "content") {
136
+ var oContent = oChanges.child;
137
+ if (oChanges.mutation === "remove") {
138
+ oContent.detachEvent("contentUpdated", _setContainerHeight, this);
139
+ oContent.detachNavigated(this._handleNavigated, this);
140
+ } else {
141
+ oContent.attachEvent("contentUpdated", _setContainerHeight, this);
142
+ }
143
+ }
144
+ Container.prototype._observeChanges.apply(this, arguments);
145
+ };
146
+
147
+ Popover.prototype._placeContent = function (oPopover) {
148
+
149
+ var oContent = this._getContent();
150
+ var oContentPromise = oContent && oContent.getContent();
151
+ var oFooterContentPromise = oContent && oContent.getFooterContent();
152
+
153
+ return Promise.all([oContentPromise, oFooterContentPromise]).then(function (aContents) {
154
+ this._oCurrentContent = aContents[0];
155
+ var oFooterContent = aContents[1];
156
+
157
+ if (oFooterContent && oPopover.getFooter() != oFooterContent && oFooterContent.isA && oFooterContent.isA("sap.m.Toolbar")) {
158
+ oPopover.setFooter(oFooterContent);
159
+ return oPopover;
160
+ }
161
+
162
+ if (oFooterContent) {
163
+ if (!oPopover.getFooter()) {
164
+ var aToolbarContent = [new ToolbarSpacer(this.getId() + "-Spacer")].concat(oFooterContent);
165
+ var oToolbar = new Toolbar(this.getId() + "-TB", {
166
+ content: aToolbarContent
167
+ }).setModel(this._oManagedObjectModel, "$help"); // TODO: ManagedObjectModel never created!!!
168
+ oPopover.setFooter(oToolbar);
169
+ } else {
170
+ // TODO: update Toolbar?
171
+ }
172
+ } else if (oPopover.getFooter()) {
173
+ oPopover.setFooter();
174
+ }
175
+ return oPopover;
176
+ }.bind(this));
177
+ };
178
+
179
+ Popover.prototype.getDomRef = function() {
180
+
181
+ var oPopover = this.getAggregation("_container");
182
+ if (oPopover) {
183
+ return oPopover.getDomRef();
184
+ }
185
+
186
+ };
187
+
188
+ Popover.prototype._open = function (oPopover) {
189
+ if (oPopover.isOpen()) {
190
+ return;
191
+ }
192
+
193
+ var oControl = this._getControl();
194
+ var oTarget = oControl && oControl.getFocusElementForValueHelp && oControl.getFocusElementForValueHelp(this.isTypeahead());
195
+
196
+ if (oTarget && oTarget.getDomRef()) {
197
+ oPopover.setContentMinWidth(jQuery(oTarget.getDomRef()).outerWidth() + "px");
198
+ oPopover.setInitialFocus(oTarget);
199
+ oPopover.openBy(oTarget);
200
+ }
201
+ };
202
+
203
+ Popover.prototype._close = function () {
204
+
205
+ var oPopover = this.getAggregation("_container");
206
+ if (oPopover) {
207
+ oPopover.close();
208
+ }
209
+
210
+ };
211
+
212
+ Popover.prototype._handleOpened = function () {
213
+ _setContainerHeight.call(this);
214
+
215
+ Container.prototype._handleOpened.apply(this, arguments);
216
+
217
+ var oContent = this._getContent();
218
+
219
+ if (oContent) {
220
+ oContent.onShow();
221
+ }
222
+
223
+ };
224
+
225
+ Popover.prototype._handleConfirmed = function (oEvent) {
226
+ this.fireConfirm({close: oEvent.getParameter("close") || this._isSingleSelect()});
227
+ };
228
+
229
+ Popover.prototype._handleClosed = function (oEvent) {
230
+
231
+ var oContent = this._getContent();
232
+
233
+ if (oContent) {
234
+ oContent.onHide();
235
+ }
236
+
237
+ var oPopover = this.getAggregation("_container");
238
+ if (oPopover) {
239
+ oPopover._oPreviousFocus = null; // TODO - find real solution
240
+ }
241
+
242
+ Container.prototype._handleClosed.apply(this, arguments);
243
+ };
244
+
245
+ Popover.prototype.removeFocus = function() {
246
+ var oContent = this._getContent();
247
+ if (oContent) {
248
+ oContent.removeFocus();
249
+ }
250
+ };
251
+
252
+ Popover.prototype._navigate = function (iStep) {
253
+ var oContent = this._getContent();
254
+ if (oContent) {
255
+ return oContent.navigate(iStep);
256
+ }
257
+ };
258
+
259
+
260
+ Popover.prototype.getItemForValue = function(oConfig) {
261
+ var oContent = this._getContent();
262
+ if (oContent) {
263
+ return oContent.getItemForValue(oConfig);
264
+ }
265
+ };
266
+
267
+ Popover.prototype.isValidationSupported = function(oConfig) {
268
+ var oContent = this._getContent();
269
+ if (oContent) {
270
+ return oContent.isValidationSupported();
271
+ }
272
+ };
273
+
274
+ Popover.prototype.getUseAsValueHelp = function() {
275
+
276
+ var oContent = this._getContent();
277
+ return oContent && oContent.getUseAsValueHelp && oContent.getUseAsValueHelp();
278
+
279
+ };
280
+
281
+ Popover.prototype.getValueHelpIcon = function() {
282
+
283
+ // ask content for icon
284
+ var oContent = this._getContent();
285
+ return oContent && oContent.getValueHelpIcon();
286
+
287
+ };
288
+
289
+ Popover.prototype.getAriaAttributes = function(iMaxConditions) {
290
+
291
+ var oContent = this._getContent();
292
+ var oContentAttributes = oContent && oContent.getAriaAttributes(iMaxConditions);
293
+
294
+ if (oContentAttributes) {
295
+ return {
296
+ contentId: oContentAttributes.contentId,
297
+ ariaHasPopup: oContentAttributes.ariaHasPopup,
298
+ role: this.getUseAsValueHelp() ? "combobox" : null, // Popover is a ComboBox, but only if used as valuehelp, only typeahead has no role (see sap.m.Input)
299
+ roleDescription: oContentAttributes.roleDescription // for multiselect-mTable it needs to be set
300
+ };
301
+ }
302
+
303
+ return Container.prototype.getAriaAttributes.apply(this, arguments);
304
+
305
+ };
306
+
307
+ Popover.prototype.shouldOpenOnClick = function() {
308
+
309
+ var oContent = this._getContent();
310
+ return !!oContent && oContent.shouldOpenOnClick();
311
+
312
+ };
313
+
314
+ Popover.prototype.shouldOpenOnNavigate = function() {
315
+
316
+ var oContent = this._getContent();
317
+ return !!oContent && oContent.shouldOpenOnNavigate();
318
+
319
+ };
320
+
321
+ Popover.prototype.isFocusInHelp = function() {
322
+
323
+ var oContent = this._getContent();
324
+ return !!oContent && oContent.isFocusInHelp();
325
+
326
+ };
327
+
328
+ Popover.prototype.isMultiSelect = function() {
329
+
330
+ var oContent = this._getContent();
331
+ return !!oContent && oContent.isMultiSelect();
332
+
333
+ };
334
+
335
+ Popover.prototype.exit = function () {
336
+ if (this._oCurrentContent) {
337
+ if (!this._oCurrentContent.bIsDestroyed) {
338
+ this._oCurrentContent.destroy();
339
+ }
340
+ this._oCurrentContent = null;
341
+ }
342
+ };
343
+
344
+ return Popover;
345
+
346
+ });