@openui5/sap.ui.mdc 1.101.0 → 1.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +19 -0
- package/THIRDPARTY.txt +1 -1
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +1 -1
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +11 -0
- package/src/sap/ui/mdc/Chart.js +111 -55
- package/src/sap/ui/mdc/ChartDelegate.js +97 -92
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +9 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +2 -2
- package/src/sap/ui/mdc/Link.js +4 -1
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +114 -160
- package/src/sap/ui/mdc/TableDelegate.js +3 -23
- package/src/sap/ui/mdc/ValueHelp.js +20 -32
- package/src/sap/ui/mdc/ValueHelpDelegate.js +9 -3
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -2
- package/src/sap/ui/mdc/chart/ChartToolbar.js +38 -3
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +6 -2
- package/src/sap/ui/mdc/chart/Item.js +6 -11
- package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -8
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -3
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +16 -131
- package/src/sap/ui/mdc/condition/ConditionModel.js +50 -21
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +11 -11
- package/src/sap/ui/mdc/condition/Operator.js +85 -15
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +5 -3
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +6 -3
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +53 -0
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +13 -1
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +9 -4
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
- package/src/sap/ui/mdc/enum/PropagationReason.js +2 -2
- package/src/sap/ui/mdc/enum/SelectType.js +3 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +166 -52
- package/src/sap/ui/mdc/field/ConditionsType.js +76 -11
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +107 -99
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +9 -62
- package/src/sap/ui/mdc/field/FieldBase.js +108 -73
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +20 -1
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -39
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -19
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +13 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +28 -29
- package/src/sap/ui/mdc/field/InParameter.js +1 -4
- package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +2 -2
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -5
- package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
- package/src/sap/ui/mdc/field/content/DateContent.js +3 -3
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +43 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -4
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +21 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +80 -4
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +19 -38
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +23 -41
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +43 -58
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +25 -55
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +21 -42
- package/src/sap/ui/mdc/flexibility/SortFlex.js +23 -52
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +3 -3
- package/src/sap/ui/mdc/flexibility/Util.js +82 -0
- package/src/sap/ui/mdc/flexibility/xConfigFlex.js +137 -0
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +3 -1
- package/src/sap/ui/mdc/library.js +6 -17
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +1 -1
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +9 -1
- package/src/sap/ui/mdc/link/Panel.js +25 -13
- package/src/sap/ui/mdc/link/PanelItem.js +10 -1
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +13 -1
- package/src/sap/ui/mdc/messagebundle_ar.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_bg.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ca.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_cs.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_cy.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_da.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_de.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_el.properties +20 -12
- package/src/sap/ui/mdc/messagebundle_en.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +15 -7
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_et.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_fi.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_fr.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_hi.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_hr.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_hu.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_id.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_it.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_iw.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_kk.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ko.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_lt.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_lv.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ms.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_nl.properties +23 -15
- package/src/sap/ui/mdc/messagebundle_no.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_pl.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_pt.properties +18 -10
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ro.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ru.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_sh.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_sl.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_sv.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_th.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_tr.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_uk.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_vi.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +10 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +4 -4
- package/src/sap/ui/mdc/odata/TypeUtil.js +25 -2
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +5 -5
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +6 -0
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +6 -6
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +0 -33
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +378 -154
- package/src/sap/ui/mdc/p13n/Engine.js +8 -4
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -0
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +14 -11
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +133 -0
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +41 -42
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -0
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +12 -4
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +22 -27
- package/src/sap/ui/mdc/table/Column.js +4 -1
- package/src/sap/ui/mdc/table/CreationRow.js +3 -1
- package/src/sap/ui/mdc/table/GridTableType.js +0 -5
- package/src/sap/ui/mdc/table/PropertyHelper.js +27 -74
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +29 -17
- package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +3 -3
- package/src/sap/ui/mdc/themes/base/Chart.less +5 -0
- package/src/sap/ui/mdc/themes/base/InfoPanel.less +1 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +5 -0
- package/src/sap/ui/mdc/util/DateUtil.js +30 -5
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/util/TypeUtil.js +105 -17
- package/src/sap/ui/mdc/valuehelp/Dialog.js +148 -48
- package/src/sap/ui/mdc/valuehelp/Popover.js +16 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +45 -32
- package/src/sap/ui/mdc/valuehelp/base/Content.js +60 -28
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +5 -5
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +75 -32
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -3
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +11 -3
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +7 -3
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +9 -3
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -2
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +53 -12
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +6 -6
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +121 -202
- package/test/sap/ui/mdc/testutils/opa/p13n/waitForSelectWithSelectedTextOnPanel.js +5 -2
- package/test/sap/ui/mdc/testutils/opa/table/Actions.js +70 -0
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +9 -7
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +2 -2
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +0 -139
- package/src/sap/ui/mdc/valuehelp/content/ListCollection.js +0 -205
|
@@ -30,16 +30,16 @@ sap.ui.define([
|
|
|
30
30
|
"use strict";
|
|
31
31
|
|
|
32
32
|
var MDialog, MLibrary, Button, ManagedObjectModel, IconTabBar, IconTabFilter;
|
|
33
|
-
var Panel, HBox, Tokenizer, Token;
|
|
33
|
+
var Panel, HBox, Tokenizer, Token, Filter;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Constructor for a new <code>Dialog</code> container.
|
|
37
37
|
*
|
|
38
38
|
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
39
39
|
* @param {object} [mSettings] Initial settings for the new control
|
|
40
|
-
* @class Container for the
|
|
40
|
+
* @class Container for the {@link sap.ui.mdc.ValueHelp ValueHelp} element showing a dialog.
|
|
41
41
|
* @extends sap.ui.mdc.valuehelp.base.Container
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.103.0
|
|
43
43
|
* @constructor
|
|
44
44
|
* @abstract
|
|
45
45
|
* @private
|
|
@@ -71,6 +71,9 @@ sap.ui.define([
|
|
|
71
71
|
visibility: "hidden",
|
|
72
72
|
defaultValue: []
|
|
73
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* Configuration for groups (collective search).
|
|
76
|
+
*/
|
|
74
77
|
groupConfig: {
|
|
75
78
|
type: "object",
|
|
76
79
|
defaultValue: {}
|
|
@@ -114,7 +117,11 @@ sap.ui.define([
|
|
|
114
117
|
return oContent.getId() === sCurrentContentKey;
|
|
115
118
|
});
|
|
116
119
|
if (oCurrentContent) {
|
|
120
|
+
if (oCurrentContent.setCollectiveSearchSelect) {
|
|
121
|
+
oCurrentContent.setCollectiveSearchSelect(undefined); // remove collective search from Filterbar
|
|
122
|
+
}
|
|
117
123
|
oCurrentContent.onHide();
|
|
124
|
+
this._unbindContent(oCurrentContent);
|
|
118
125
|
}
|
|
119
126
|
this._renderSelectedContent(sNextId);
|
|
120
127
|
}.bind(this));
|
|
@@ -163,6 +170,10 @@ sap.ui.define([
|
|
|
163
170
|
oContent.onHide();
|
|
164
171
|
}
|
|
165
172
|
|
|
173
|
+
this.getContent().forEach(function (oContent) {
|
|
174
|
+
oContent.onContainerClose();
|
|
175
|
+
});
|
|
176
|
+
|
|
166
177
|
// Reset selection to initial key for retrieveContent calls before it is opened again.
|
|
167
178
|
this.setProperty("_selectedContentKey", this._sInitialContentKey);
|
|
168
179
|
|
|
@@ -219,9 +230,9 @@ sap.ui.define([
|
|
|
219
230
|
contentWidth: _getContentWidth(),
|
|
220
231
|
horizontalScrolling: false,
|
|
221
232
|
verticalScrolling: false,
|
|
222
|
-
title: {parts: ['$help>/title', '$help>/
|
|
233
|
+
title: {parts: ['$help>/title', '$help>/_selectableContents'], formatter:
|
|
223
234
|
function(sTitle, aContent) {
|
|
224
|
-
if (aContent.length == 1) {
|
|
235
|
+
if (aContent && aContent.length == 1) {
|
|
225
236
|
var oContent = aContent[0];
|
|
226
237
|
var sDlgTitle = oContent.getFormattedShortTitle() ? oContent.getFormattedShortTitle() : oContent.getTitle();
|
|
227
238
|
if (sDlgTitle) {
|
|
@@ -254,10 +265,13 @@ sap.ui.define([
|
|
|
254
265
|
oVBox.addStyleClass("sapMdcValueHelpPanel");
|
|
255
266
|
oDialog.addContent(oVBox);
|
|
256
267
|
|
|
257
|
-
var
|
|
258
|
-
|
|
268
|
+
var aPromises = [];
|
|
269
|
+
aPromises.push(this._getIconTabBar(oDialog));
|
|
259
270
|
|
|
260
|
-
|
|
271
|
+
if (_isTokenizerRequired(this.getMaxConditions(), this.getContent())) {
|
|
272
|
+
aPromises.push(this._getTokenizerPanel());
|
|
273
|
+
}
|
|
274
|
+
return Promise.all(aPromises).then(function (aControls) {
|
|
261
275
|
aControls.forEach(function (oControl) {
|
|
262
276
|
oVBox.addItem(oControl);
|
|
263
277
|
});
|
|
@@ -282,7 +296,7 @@ sap.ui.define([
|
|
|
282
296
|
if (oChanges.name === "content") {
|
|
283
297
|
var aContent = this.getContent();
|
|
284
298
|
this.setProperty("_quickSelectEnabled", aContent && aContent.every(function (oContent) {
|
|
285
|
-
return oContent.isQuickSelectSupported
|
|
299
|
+
return oContent.isQuickSelectSupported();
|
|
286
300
|
}));
|
|
287
301
|
|
|
288
302
|
this._updateInitialContentKey();
|
|
@@ -292,7 +306,20 @@ sap.ui.define([
|
|
|
292
306
|
}
|
|
293
307
|
|
|
294
308
|
this.setProperty("_selectableContents", this._getSelectableContents());
|
|
309
|
+
|
|
310
|
+
if (_isTokenizerRequired(this.getMaxConditions(), this.getContent())) {
|
|
311
|
+
// check if Tokenizer needs to be created lately
|
|
312
|
+
var oDialog = this.getAggregation("_container");
|
|
313
|
+
if (oDialog && oDialog.getContent()[0].getItems().length === 1) { // container already created but no tokenizer
|
|
314
|
+
Promise.all([this._getTokenizerPanel()]).then(function (aControls) {
|
|
315
|
+
aControls.forEach(function (oControl) {
|
|
316
|
+
oDialog.getContent()[0].addItem(oControl);
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
295
321
|
}
|
|
322
|
+
|
|
296
323
|
Container.prototype._observeChanges.apply(this, arguments);
|
|
297
324
|
};
|
|
298
325
|
|
|
@@ -392,6 +419,7 @@ sap.ui.define([
|
|
|
392
419
|
);
|
|
393
420
|
this._oGroupSelect = new CollectiveSearchSelect(this.getId() + "--Select",
|
|
394
421
|
{
|
|
422
|
+
title:"{$i18n>COL_SEARCH_SEL_TITLE}",
|
|
395
423
|
items: {
|
|
396
424
|
path: "$select>/entries",
|
|
397
425
|
template: oItemTemplate
|
|
@@ -477,6 +505,7 @@ sap.ui.define([
|
|
|
477
505
|
};
|
|
478
506
|
|
|
479
507
|
Dialog.prototype._getTokenizerPanel = function (oDialog) {
|
|
508
|
+
|
|
480
509
|
if (!this.oTokenizerPanel) {
|
|
481
510
|
return loadModules([
|
|
482
511
|
'sap/m/Panel',
|
|
@@ -493,7 +522,7 @@ sap.ui.define([
|
|
|
493
522
|
VBox = aModules[2];
|
|
494
523
|
Tokenizer = aModules[3];
|
|
495
524
|
Token = aModules[4];
|
|
496
|
-
|
|
525
|
+
Filter = aModules[5];
|
|
497
526
|
var ConditionType = aModules[6];
|
|
498
527
|
var BackgroundDesign = MLibrary.BackgroundDesign;
|
|
499
528
|
var ButtonType = MLibrary.ButtonType;
|
|
@@ -501,21 +530,9 @@ sap.ui.define([
|
|
|
501
530
|
this.oTokenizerPanel = new Panel(this.getId() + "-TokenPanel", {
|
|
502
531
|
backgroundDesign: BackgroundDesign.Transparent,
|
|
503
532
|
expanded: true,
|
|
504
|
-
visible: {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
if (aContent && aContent.some(function(oContent) {
|
|
509
|
-
// make the tokenizer visible when at least one content request the tokenizer
|
|
510
|
-
return oContent.getRequiresTokenizer();
|
|
511
|
-
})) {
|
|
512
|
-
bVisible = true;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
return bVisible && iMaxConditions === -1;
|
|
516
|
-
}},
|
|
517
|
-
headerText: {parts: ['$i18n>valuehelp.TOKENIZERTITLE', '$valueHelp>/conditions'], formatter:
|
|
518
|
-
function(sText, aConditions) {
|
|
533
|
+
visible: {parts: ['$valueHelp>/_config/maxConditions', '$help>/content'], formatter: _isTokenizerRequired},
|
|
534
|
+
headerText: {parts: ['$valueHelp>/conditions', '$help>/_selectableContents'], formatter:
|
|
535
|
+
function(aConditions, aContent) {
|
|
519
536
|
var iCount = 0;
|
|
520
537
|
for (var i = 0; i < aConditions.length; i++) {
|
|
521
538
|
var oCondition = aConditions[i];
|
|
@@ -523,11 +540,19 @@ sap.ui.define([
|
|
|
523
540
|
iCount++;
|
|
524
541
|
}
|
|
525
542
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
543
|
+
var sTitle;
|
|
544
|
+
if (aContent && aContent.length == 1) { // in case of single content the title will be provided by the content
|
|
545
|
+
sTitle = aContent[0].getFormattedTokenizerTitle(iCount);
|
|
546
|
+
return sTitle;
|
|
547
|
+
} else {
|
|
548
|
+
// default title
|
|
549
|
+
sTitle = this._oResourceBundle.getText("valuehelp.TOKENIZERTITLE");
|
|
550
|
+
if (iCount === 0) {
|
|
551
|
+
// in case of no items do not show a number
|
|
552
|
+
sTitle = this._oResourceBundle.getText("valuehelp.TOKENIZERTITLENONUMBER");
|
|
553
|
+
}
|
|
554
|
+
return formatMessage(sTitle, iCount);
|
|
529
555
|
}
|
|
530
|
-
return formatMessage(sText, iCount);
|
|
531
556
|
}.bind(this)
|
|
532
557
|
}
|
|
533
558
|
});
|
|
@@ -535,19 +560,9 @@ sap.ui.define([
|
|
|
535
560
|
|
|
536
561
|
var oHBox = new HBox(this.getId() + "-TokenBox", {fitContainer: true, width: "100%"});
|
|
537
562
|
|
|
538
|
-
var
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
var oConfig = oValueHelpModel ? oValueHelpModel.getProperty("/_config") : {};
|
|
542
|
-
var oParent = this.getParent();
|
|
543
|
-
var oFormatOptions = { // TODO: is more needed?
|
|
544
|
-
maxConditions: -1, // as for tokens there should not be a limit on type side
|
|
545
|
-
valueType: oConfig.dataType,
|
|
546
|
-
operators: oConfig.operators,
|
|
547
|
-
display: oConfig.display,
|
|
548
|
-
fieldHelpID: oParent && oParent.getId() // needed to get description for Token (if not provided)
|
|
549
|
-
};
|
|
550
|
-
var oTokenTemplate = new Token(this.getId() + "-Token", {text: {path: '$valueHelp>', type: new ConditionType(oFormatOptions)}});
|
|
563
|
+
var oFormatOptions = _getConditionFormatOptions.call(this);
|
|
564
|
+
this._oConditionType = new ConditionType(oFormatOptions);
|
|
565
|
+
this._oConditionType._bVHTokenizer = true; // just help for debugging
|
|
551
566
|
this.oTokenizer = new Tokenizer(this.getId() + "-Tokenizer", {
|
|
552
567
|
width: "100%",
|
|
553
568
|
tokenDelete: function(oEvent) {
|
|
@@ -566,11 +581,11 @@ sap.ui.define([
|
|
|
566
581
|
}
|
|
567
582
|
|
|
568
583
|
}.bind(this),
|
|
569
|
-
tokens: {path: '/conditions', model: "$valueHelp", templateShareable: false, template: oTokenTemplate, filters: oFilter},
|
|
570
584
|
layoutData: new FlexItemData({growFactor: 1, maxWidth: "calc(100% - 2rem)"})
|
|
571
585
|
});
|
|
572
586
|
this.oTokenizer.addAriaDescribedBy( this.oTokenizer.getTokensInfoId());
|
|
573
587
|
this.oTokenizer.addStyleClass("sapMdcTokenizer");
|
|
588
|
+
_bindTokenizer.call(this, true);
|
|
574
589
|
|
|
575
590
|
this.oRemoveAllBtn = new Button(this.getId() + "-TokenRemoveAll", {
|
|
576
591
|
press: function(oEvent) {
|
|
@@ -590,16 +605,91 @@ sap.ui.define([
|
|
|
590
605
|
|
|
591
606
|
return this.oTokenizerPanel;
|
|
592
607
|
}.bind(this));
|
|
608
|
+
} else { // update ConditionType with current formatOptions
|
|
609
|
+
var oFormatOptions = _getConditionFormatOptions.call(this);
|
|
610
|
+
this._oConditionType.setFormatOptions(oFormatOptions);
|
|
593
611
|
}
|
|
594
612
|
return this.oTokenizerPanel;
|
|
595
613
|
};
|
|
596
614
|
|
|
597
|
-
|
|
598
|
-
|
|
615
|
+
function _isTokenizerRequired(iMaxConditions, aContent) {
|
|
616
|
+
var bVisible = iMaxConditions !== 1;
|
|
617
|
+
|
|
618
|
+
if (bVisible && aContent && aContent.every(function(oContent) {
|
|
619
|
+
// make the tokenizer visible when at least one content request the tokenizer
|
|
620
|
+
return !oContent.getRequiresTokenizer();
|
|
621
|
+
})) {
|
|
622
|
+
bVisible = false;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
return bVisible;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
function _getConditionFormatOptions() {
|
|
629
|
+
|
|
630
|
+
var oValueHelpModel = this.getModel("$valueHelp");
|
|
631
|
+
var oConfig = oValueHelpModel ? oValueHelpModel.getProperty("/_config") : {};
|
|
632
|
+
var oParent = this.getParent();
|
|
633
|
+
var oControl = this._getControl();
|
|
634
|
+
return { // TODO: is more needed?
|
|
635
|
+
maxConditions: -1, // as for tokens there should not be a limit on type side
|
|
636
|
+
valueType: oConfig.dataType,
|
|
637
|
+
operators: oConfig.operators,
|
|
638
|
+
display: oConfig.display,
|
|
639
|
+
fieldHelpID: oParent && oParent.getId(), // needed to get description for Token (if not provided)
|
|
640
|
+
control: oControl,
|
|
641
|
+
delegate: oControl && oControl.getControlDelegate && oControl.getControlDelegate(),
|
|
642
|
+
delegateName: oControl && oControl.getDelegate && oControl.getDelegate() && oControl.getDelegate().name,
|
|
643
|
+
payload: oControl && oControl.getPayload && oControl.getPayload(),
|
|
644
|
+
convertWhitespaces: true
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
function _bindTokenizer(bBind) {
|
|
650
|
+
|
|
651
|
+
if (this.oTokenizer) {
|
|
652
|
+
var oBindingInfo = this.oTokenizer.getBindingInfo("tokens");
|
|
653
|
+
if (bBind) {
|
|
654
|
+
if (!oBindingInfo) { // not bound -> create binding
|
|
655
|
+
var oFilter = new Filter({path:'isEmpty', operator:'NE', value1:true});
|
|
656
|
+
var oTokenTemplate = new Token(this.getId() + "-Token", {text: {path: '$valueHelp>', type: this._oConditionType}});
|
|
657
|
+
this.oTokenizer.bindAggregation("tokens", {path: '/conditions', model: "$valueHelp", templateShareable: false, template: oTokenTemplate, filters: oFilter});
|
|
658
|
+
}
|
|
659
|
+
} else if (oBindingInfo) { // remove binding if dialog is closed to prevent updated on tokens if conditions are updated. (Suspend would not be enough, as every single binding on token would need to be suspended too.)
|
|
660
|
+
this.oTokenizer.unbindAggregation("tokens");
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
Dialog.prototype._open = function (oDialog) {
|
|
667
|
+
if (oDialog) {
|
|
599
668
|
this._updateInitialContentKey(); // Update initial key as visibilities might change during content retrieval
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
669
|
+
|
|
670
|
+
var fnRenderContent = function () {
|
|
671
|
+
this._renderSelectedContent(this._sInitialContentKey, function () {
|
|
672
|
+
oDialog.open();
|
|
673
|
+
this.getContent().forEach(function (oContent) {
|
|
674
|
+
oContent.onContainerOpen();
|
|
675
|
+
});
|
|
676
|
+
}.bind(this));
|
|
677
|
+
}.bind(this);
|
|
678
|
+
|
|
679
|
+
if (_isTokenizerRequired(this.getMaxConditions(), this.getContent()) && oDialog.getContent()[0].getItems().length === 1) {
|
|
680
|
+
// Tokenizer needed but already no tokenizer
|
|
681
|
+
Promise.all([this._getTokenizerPanel()]).then(function (aControls) {
|
|
682
|
+
aControls.forEach(function (oControl) {
|
|
683
|
+
oDialog.getContent()[0].addItem(oControl);
|
|
684
|
+
});
|
|
685
|
+
fnRenderContent();
|
|
686
|
+
});
|
|
687
|
+
} else {
|
|
688
|
+
if (this.oTokenizer) { // restore tokenizer binding to enable updates if open
|
|
689
|
+
_bindTokenizer.call(this, true);
|
|
690
|
+
}
|
|
691
|
+
fnRenderContent();
|
|
692
|
+
}
|
|
603
693
|
}
|
|
604
694
|
};
|
|
605
695
|
|
|
@@ -621,8 +711,14 @@ sap.ui.define([
|
|
|
621
711
|
}
|
|
622
712
|
return Promise.all(aNecessaryPromises).then(function (aPromiseResults) {
|
|
623
713
|
|
|
714
|
+
this._bindContent(oNextContent);
|
|
624
715
|
this.setProperty("_selectedContentKey", sNextContentId);
|
|
625
716
|
this.setProperty("_selectableContents", this._getSelectableContents());
|
|
717
|
+
this._oManagedObjectModel.checkUpdate(true, false, function (oBinding) { // force update as bindings to $help>displayContent are not updated automatically in some cases
|
|
718
|
+
if (oBinding.getPath() === "displayContent") { // do not update other bindings as this might lead to rerendering of IconTabBar ot other unwanted updates.
|
|
719
|
+
return true;
|
|
720
|
+
}
|
|
721
|
+
});
|
|
626
722
|
|
|
627
723
|
if (oGroupSelectPromise) {
|
|
628
724
|
this._updateGroupSelectModel();
|
|
@@ -646,6 +742,10 @@ sap.ui.define([
|
|
|
646
742
|
var oContainer = this.getAggregation("_container");
|
|
647
743
|
if (oContainer) {
|
|
648
744
|
oContainer.close();
|
|
745
|
+
|
|
746
|
+
if (this.oTokenizer) { // remove tokenizer binding to prevent updates if closed
|
|
747
|
+
_bindTokenizer.call(this, false);
|
|
748
|
+
}
|
|
649
749
|
}
|
|
650
750
|
};
|
|
651
751
|
|
|
@@ -24,9 +24,9 @@ sap.ui.define([
|
|
|
24
24
|
*
|
|
25
25
|
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
26
26
|
* @param {object} [mSettings] Initial settings for the new control
|
|
27
|
-
* @class Container for the
|
|
27
|
+
* @class Container for the {@link sap.ui.mdc.ValueHelp ValueHelp} element showing a popover.
|
|
28
28
|
* @extends sap.ui.mdc.valuehelp.base.Container
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.103.0
|
|
30
30
|
* @constructor
|
|
31
31
|
* @abstract
|
|
32
32
|
* @private
|
|
@@ -107,6 +107,10 @@ sap.ui.define([
|
|
|
107
107
|
afterClose: this._handleClosed.bind(this)
|
|
108
108
|
}).addStyleClass("sapMdcValueHelpPopover").addStyleClass("sapMComboBoxBasePicker").addStyleClass("sapMComboBoxBasePicker-CTX"); // to have a ComboBox popup
|
|
109
109
|
|
|
110
|
+
oPopover.isPopupAdaptationAllowed = function () {
|
|
111
|
+
return false;
|
|
112
|
+
};
|
|
113
|
+
|
|
110
114
|
oPopover.addStyleClass(this._isSingleSelect() ? "sapMdcValueHelpSingleSelect" : "sapMdcValueHelpMultiSelect");
|
|
111
115
|
|
|
112
116
|
oPopover.addDelegate({onsapshow: this._handleRequestSwitchToDialog.bind(this)});
|
|
@@ -185,6 +189,10 @@ sap.ui.define([
|
|
|
185
189
|
this._oCurrentContent = aContents[0];
|
|
186
190
|
var oFooterContent = aContents[1];
|
|
187
191
|
|
|
192
|
+
// to prevent a Fieldgroup leave if opening control has fieldgroups, asign the fieldgroups to content
|
|
193
|
+
var oControl = this._getControl();
|
|
194
|
+
this._oCurrentContent.setFieldGroupIds(oControl.getFieldGroupIds());
|
|
195
|
+
|
|
188
196
|
if (oFooterContent && oPopover.getFooter() != oFooterContent && oFooterContent.isA && oFooterContent.isA("sap.m.Toolbar")) {
|
|
189
197
|
oPopover.setFooter(oFooterContent);
|
|
190
198
|
return oPopover;
|
|
@@ -212,6 +220,8 @@ sap.ui.define([
|
|
|
212
220
|
return;
|
|
213
221
|
}
|
|
214
222
|
|
|
223
|
+
Container.prototype._open.apply(this, arguments);
|
|
224
|
+
|
|
215
225
|
var oControl = this._getControl();
|
|
216
226
|
var oTarget = oControl && oControl.getFocusElementForValueHelp ? oControl.getFocusElementForValueHelp(this.isTypeahead()) : oControl;
|
|
217
227
|
|
|
@@ -226,6 +236,7 @@ sap.ui.define([
|
|
|
226
236
|
|
|
227
237
|
Popover.prototype._close = function () {
|
|
228
238
|
|
|
239
|
+
Container.prototype._close.apply(this, arguments);
|
|
229
240
|
var oPopover = this.getAggregation("_container");
|
|
230
241
|
if (oPopover) {
|
|
231
242
|
oPopover.close();
|
|
@@ -241,6 +252,7 @@ sap.ui.define([
|
|
|
241
252
|
var oContent = this._getContent();
|
|
242
253
|
|
|
243
254
|
if (oContent) {
|
|
255
|
+
oContent.onContainerOpen();
|
|
244
256
|
oContent.onShow();
|
|
245
257
|
}
|
|
246
258
|
|
|
@@ -256,6 +268,7 @@ sap.ui.define([
|
|
|
256
268
|
|
|
257
269
|
if (oContent) {
|
|
258
270
|
oContent.onHide();
|
|
271
|
+
oContent.onContainerClose();
|
|
259
272
|
}
|
|
260
273
|
|
|
261
274
|
var oPopover = this.getAggregation("_container");
|
|
@@ -319,7 +332,7 @@ sap.ui.define([
|
|
|
319
332
|
return {
|
|
320
333
|
contentId: oContentAttributes.contentId,
|
|
321
334
|
ariaHasPopup: oContentAttributes.ariaHasPopup,
|
|
322
|
-
role: this.
|
|
335
|
+
role: this.isDialog() ? "combobox" : null, // Popover is a ComboBox, but only if used as valuehelp, only typeahead has no role (see sap.m.Input)
|
|
323
336
|
roleDescription: oContentAttributes.roleDescription // for multiselect-mTable it needs to be set
|
|
324
337
|
};
|
|
325
338
|
}
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @param {object} [mSettings] Initial settings for the new element
|
|
25
25
|
* @class Container for the {@link sap.ui.mdc.ValueHelp ValueHelp} element.
|
|
26
26
|
* @extends sap.ui.core.Element
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.103.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @abstract
|
|
30
30
|
* @private
|
|
@@ -130,7 +130,7 @@ sap.ui.define([
|
|
|
130
130
|
/**
|
|
131
131
|
* True if the focus should be set back to the field.
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
leaveFocus: { type: "boolean" },
|
|
134
134
|
/**
|
|
135
135
|
* Navigated condition.
|
|
136
136
|
*
|
|
@@ -160,8 +160,8 @@ sap.ui.define([
|
|
|
160
160
|
if (oChanges.mutation === "remove") {
|
|
161
161
|
this._unbindContent(oContent);
|
|
162
162
|
|
|
163
|
-
} else {
|
|
164
|
-
|
|
163
|
+
// } else {
|
|
164
|
+
// this._bindContent(oContent);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
};
|
|
@@ -291,9 +291,15 @@ sap.ui.define([
|
|
|
291
291
|
|
|
292
292
|
Container.prototype._open = function (oContainer) {
|
|
293
293
|
|
|
294
|
+
var aContent = this.getContent();
|
|
295
|
+
for (var i = 0; i < aContent.length; i++) { // for Dialog overwrite to only bind shown content
|
|
296
|
+
this._bindContent(aContent[i]);
|
|
297
|
+
}
|
|
298
|
+
|
|
294
299
|
};
|
|
295
300
|
|
|
296
301
|
Container.prototype._close = function () {
|
|
302
|
+
|
|
297
303
|
};
|
|
298
304
|
|
|
299
305
|
Container.prototype._handleOpened = function () {
|
|
@@ -303,6 +309,12 @@ sap.ui.define([
|
|
|
303
309
|
|
|
304
310
|
Container.prototype._handleClosed = function (oEvent) {
|
|
305
311
|
this._removePromise("open");
|
|
312
|
+
|
|
313
|
+
var aContent = this.getContent();
|
|
314
|
+
for (var i = 0; i < aContent.length; i++) {
|
|
315
|
+
this._unbindContent(aContent[i]);
|
|
316
|
+
}
|
|
317
|
+
|
|
306
318
|
this.fireClosed();
|
|
307
319
|
};
|
|
308
320
|
|
|
@@ -327,7 +339,6 @@ sap.ui.define([
|
|
|
327
339
|
*
|
|
328
340
|
* @private
|
|
329
341
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
330
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
331
342
|
*/
|
|
332
343
|
Container.prototype.isOpen = function () {
|
|
333
344
|
var oPromise = this._retrievePromise("open");
|
|
@@ -343,7 +354,6 @@ sap.ui.define([
|
|
|
343
354
|
*
|
|
344
355
|
* @private
|
|
345
356
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
346
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
347
357
|
*/
|
|
348
358
|
Container.prototype.isOpening = function () {
|
|
349
359
|
var oPromise = this._retrievePromise("open");
|
|
@@ -360,10 +370,14 @@ sap.ui.define([
|
|
|
360
370
|
* @param {object} oConfig Configuration
|
|
361
371
|
* @param {any} oConfig.value Value as entered by user
|
|
362
372
|
* @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
|
|
373
|
+
* @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.
|
|
374
|
+
* @param {object} [oConfig.context.inParameter] inParameters of the current condition
|
|
375
|
+
* @param {object} [oConfig.context.ouParameter] outParameters of the current condition
|
|
376
|
+
* @param {object} [oConfig.context.payload] payload of the current condition
|
|
363
377
|
* @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.
|
|
364
|
-
* @param {boolean} [oConfig.checkKeyFirst] If set, the
|
|
365
|
-
* @param {boolean} oConfig.checkKey If set, the
|
|
366
|
-
* @param {boolean} oConfig.checkDescription If set, the
|
|
378
|
+
* @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
|
|
379
|
+
* @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.
|
|
380
|
+
* @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.
|
|
367
381
|
* @param {sap.ui.mdc.condition.ConditionModel} [oConfig.conditionModel] <code>ConditionModel</code>, in case of <code>FilterField</code>
|
|
368
382
|
* @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, in case of <code>FilterField</code>
|
|
369
383
|
* @param {boolean} [oConfig.caseSensitive] If set, the check is done case sensitive
|
|
@@ -373,7 +387,6 @@ sap.ui.define([
|
|
|
373
387
|
*
|
|
374
388
|
* @private
|
|
375
389
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
376
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
377
390
|
*/
|
|
378
391
|
Container.prototype.getItemForValue = function(oConfig) { // TODO only for TypeAhead container
|
|
379
392
|
};
|
|
@@ -385,9 +398,8 @@ sap.ui.define([
|
|
|
385
398
|
*
|
|
386
399
|
* @private
|
|
387
400
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
388
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
389
401
|
*/
|
|
390
|
-
|
|
402
|
+
Container.prototype.isValidationSupported = function() { // TODO only for TypeAhead container
|
|
391
403
|
return false;
|
|
392
404
|
};
|
|
393
405
|
|
|
@@ -404,7 +416,6 @@ sap.ui.define([
|
|
|
404
416
|
*
|
|
405
417
|
* @private
|
|
406
418
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
407
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
408
419
|
*/
|
|
409
420
|
Container.prototype.navigate = function(iStep) { // pass through to content
|
|
410
421
|
return Promise.all([this._getContainer()]).then(function (aResults) {
|
|
@@ -422,7 +433,6 @@ sap.ui.define([
|
|
|
422
433
|
*
|
|
423
434
|
* @private
|
|
424
435
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
425
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
426
436
|
*/
|
|
427
437
|
Container.prototype.removeFocus = function() {
|
|
428
438
|
};
|
|
@@ -436,7 +446,6 @@ sap.ui.define([
|
|
|
436
446
|
*
|
|
437
447
|
* @private
|
|
438
448
|
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
439
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
440
449
|
*/
|
|
441
450
|
Container.prototype.isTypeahead = function () {
|
|
442
451
|
var oValueHelp = this.getParent();
|
|
@@ -452,12 +461,28 @@ sap.ui.define([
|
|
|
452
461
|
*
|
|
453
462
|
* @private
|
|
454
463
|
* @ui5-restricted sap.ui.mdc.ValueHelp, sap.ui.mdc.valueHelp.base.Content
|
|
455
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
456
464
|
*/
|
|
457
465
|
Container.prototype.isTypeaheadSupported = function () {
|
|
458
466
|
return false;
|
|
459
467
|
};
|
|
460
468
|
|
|
469
|
+
/**
|
|
470
|
+
* Determines if the container is used as dialog inside the value help
|
|
471
|
+
*
|
|
472
|
+
* The container is also used as dialog if <code>useAsValueHelp</code> is set on content and no other dialog is set.
|
|
473
|
+
*
|
|
474
|
+
* <b>Note:</b> This function is used by the container and content and must not be used from outside
|
|
475
|
+
*
|
|
476
|
+
* @returns {boolean} True if used as dialog
|
|
477
|
+
*
|
|
478
|
+
* @private
|
|
479
|
+
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
480
|
+
*/
|
|
481
|
+
Container.prototype.isDialog = function () {
|
|
482
|
+
var oValueHelp = this.getParent();
|
|
483
|
+
return oValueHelp && (oValueHelp.getDialog() === this || (this.isTypeahead() && !oValueHelp.getDialog() && this.getUseAsValueHelp()));
|
|
484
|
+
};
|
|
485
|
+
|
|
461
486
|
/**
|
|
462
487
|
* Determines if the container provides a own scroll functionality.
|
|
463
488
|
* If not, the <code>Content</code> needs to provide a scrolling solution like a {@link sap.m.ScrollContainer ScrollContainer}.
|
|
@@ -468,7 +493,6 @@ sap.ui.define([
|
|
|
468
493
|
*
|
|
469
494
|
* @private
|
|
470
495
|
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
471
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
472
496
|
*/
|
|
473
497
|
Container.prototype.providesScrolling = function () {
|
|
474
498
|
return false;
|
|
@@ -484,7 +508,6 @@ sap.ui.define([
|
|
|
484
508
|
*
|
|
485
509
|
* @private
|
|
486
510
|
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
487
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
488
511
|
*/
|
|
489
512
|
Container.prototype.getValueHelpDelegate = function () {
|
|
490
513
|
var oValueHelp = this.getParent();
|
|
@@ -500,9 +523,8 @@ sap.ui.define([
|
|
|
500
523
|
*
|
|
501
524
|
* @private
|
|
502
525
|
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
503
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
504
526
|
*/
|
|
505
|
-
|
|
527
|
+
Container.prototype.getValueHelpDelegatePayload = function () {
|
|
506
528
|
var oValueHelp = this.getParent();
|
|
507
529
|
return oValueHelp && oValueHelp.getPayload();
|
|
508
530
|
};
|
|
@@ -517,9 +539,8 @@ sap.ui.define([
|
|
|
517
539
|
*
|
|
518
540
|
* @private
|
|
519
541
|
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
520
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
521
542
|
*/
|
|
522
|
-
|
|
543
|
+
Container.prototype.awaitValueHelpDelegate = function () {
|
|
523
544
|
var oValueHelp = this.getParent();
|
|
524
545
|
return oValueHelp && oValueHelp.awaitControlDelegate();
|
|
525
546
|
};
|
|
@@ -533,9 +554,8 @@ sap.ui.define([
|
|
|
533
554
|
*
|
|
534
555
|
* @private
|
|
535
556
|
* @ui5-restricted sap.ui.mdc.valueHelp.base.Content
|
|
536
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
537
557
|
*/
|
|
538
|
-
|
|
558
|
+
Container.prototype.isValueHelpDelegateInitialized = function () {
|
|
539
559
|
var oValueHelp = this.getParent();
|
|
540
560
|
return oValueHelp && oValueHelp.bDelegateInitialized;
|
|
541
561
|
};
|
|
@@ -550,7 +570,6 @@ sap.ui.define([
|
|
|
550
570
|
* @returns {boolean} True if value help shall open as valuehelp
|
|
551
571
|
* @private
|
|
552
572
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
553
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
554
573
|
*/
|
|
555
574
|
Container.prototype.getUseAsValueHelp = function() {
|
|
556
575
|
return false;
|
|
@@ -562,7 +581,6 @@ sap.ui.define([
|
|
|
562
581
|
* @returns {string} Name of the icon
|
|
563
582
|
* @private
|
|
564
583
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
565
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
566
584
|
*/
|
|
567
585
|
Container.prototype.getValueHelpIcon = function() {
|
|
568
586
|
// not define icon property on Container as it might be dependent Popover/Dialog or used content
|
|
@@ -576,7 +594,6 @@ sap.ui.define([
|
|
|
576
594
|
* @returns {object} object with the aria-attibutes
|
|
577
595
|
* @private
|
|
578
596
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
579
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
580
597
|
*/
|
|
581
598
|
Container.prototype.getAriaAttributes = function(iMaxConditions) {
|
|
582
599
|
|
|
@@ -600,7 +617,6 @@ sap.ui.define([
|
|
|
600
617
|
* @returns {boolean} If <code>true</code>, the value help should open when user clicks into the connected field control
|
|
601
618
|
* @private
|
|
602
619
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
603
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
604
620
|
*/
|
|
605
621
|
Container.prototype.shouldOpenOnClick = function() {
|
|
606
622
|
return false;
|
|
@@ -612,9 +628,8 @@ sap.ui.define([
|
|
|
612
628
|
* @returns {boolean} If <code>true</code>, the value help should open when user used the arrow keys in the connected field control
|
|
613
629
|
* @private
|
|
614
630
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
615
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
616
631
|
*/
|
|
617
|
-
|
|
632
|
+
Container.prototype.shouldOpenOnNavigate = function() {
|
|
618
633
|
return false;
|
|
619
634
|
};
|
|
620
635
|
|
|
@@ -626,7 +641,6 @@ sap.ui.define([
|
|
|
626
641
|
*
|
|
627
642
|
* @private
|
|
628
643
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
629
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
630
644
|
*/
|
|
631
645
|
Container.prototype.isFocusInHelp = function() {
|
|
632
646
|
|
|
@@ -641,7 +655,6 @@ sap.ui.define([
|
|
|
641
655
|
*
|
|
642
656
|
* @private
|
|
643
657
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
644
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
645
658
|
*/
|
|
646
659
|
Container.prototype.isMultiSelect = function() {
|
|
647
660
|
|