@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.
- package/.reuse/dep5 +1 -6
- package/THIRDPARTY.txt +3 -9
- 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/Chart.js +12 -5
- package/src/sap/ui/mdc/ChartNew.js +1 -1
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +2 -2
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +28 -4
- package/src/sap/ui/mdc/Link.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +44 -29
- package/src/sap/ui/mdc/ValueHelp.js +1459 -0
- package/src/sap/ui/mdc/ValueHelpDelegate.js +41 -0
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +233 -224
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/enum/SelectType.js +43 -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 +61 -29
- package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +13 -2
- package/src/sap/ui/mdc/field/FieldBase.js +81 -35
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +9 -2
- package/src/sap/ui/mdc/field/FieldHelpBase.js +64 -4
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +7 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- 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/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +17 -9
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- 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/ItemBaseFlex.js +203 -197
- package/src/sap/ui/mdc/library.js +576 -4
- 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/Factory.js +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +1 -1
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
- package/src/sap/ui/mdc/link/SelectionDialog.js +1 -1
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +1 -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 +10 -3
- package/src/sap/ui/mdc/messagebundle_ar.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_bg.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_cy.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +7 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +33 -26
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_fr.properties +16 -9
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_hr.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_id.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +32 -25
- package/src/sap/ui/mdc/messagebundle_iw.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_lt.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_no.properties +16 -9
- package/src/sap/ui/mdc/messagebundle_pl.properties +13 -6
- package/src/sap/ui/mdc/messagebundle_pt.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +12 -5
- package/src/sap/ui/mdc/messagebundle_ru.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sl.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_th.properties +15 -8
- package/src/sap/ui/mdc/messagebundle_tr.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +9 -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 +94 -0
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
- package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +1 -1
- 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/panels/BasePanel.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ListView.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +20 -4
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +176 -4
- 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/themes/base/ValueHelpDialog.less +51 -21
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +26 -0
- package/src/sap/ui/mdc/util/PromiseCache.js +266 -0
- package/src/sap/ui/mdc/util/PropertyHelper.js +19 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +475 -0
- package/src/sap/ui/mdc/valuehelp/Popover.js +346 -0
- package/src/sap/ui/mdc/valuehelp/base/Container.js +440 -0
- package/src/sap/ui/mdc/valuehelp/base/Content.js +442 -0
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +96 -0
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +537 -0
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +105 -0
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +232 -0
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +250 -0
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +504 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +619 -0
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +881 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -2
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +250 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +91 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +25 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +239 -77
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/{waitForP13nButtonWithParentAndIcon.js → waitForP13nButtonWithMatchers.js} +5 -18
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +0 -1
|
@@ -86,7 +86,7 @@ sap.ui.define([
|
|
|
86
86
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent
|
|
87
87
|
*
|
|
88
88
|
* @author SAP SE
|
|
89
|
-
* @version 1.
|
|
89
|
+
* @version 1.95.0
|
|
90
90
|
*
|
|
91
91
|
* @constructor
|
|
92
92
|
* @alias sap.ui.mdc.field.FieldBase
|
|
@@ -449,7 +449,7 @@ sap.ui.define([
|
|
|
449
449
|
* <b>Note:</b> For Boolean fields, no <code>FieldHelp</code> should be added, but a default <code>FieldHelp</code> used instead.
|
|
450
450
|
*/
|
|
451
451
|
fieldHelp: {
|
|
452
|
-
type: "sap.ui.mdc.
|
|
452
|
+
type: "sap.ui.mdc.ValueHelp",
|
|
453
453
|
multiple: false
|
|
454
454
|
},
|
|
455
455
|
|
|
@@ -728,7 +728,8 @@ sap.ui.define([
|
|
|
728
728
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
729
729
|
var oSource = oEvent.srcControl;
|
|
730
730
|
|
|
731
|
-
if (oFieldHelp && (!this._oContentFactory.isMeasure() || oSource.getShowValueHelp())) {
|
|
731
|
+
if (oFieldHelp && (!oFieldHelp.valueHelpEnabled || oFieldHelp.valueHelpEnabled() || oFieldHelp.isOpen()) && (!this._oContentFactory.isMeasure() || oSource.getShowValueHelp())) {
|
|
732
|
+
// if only type-ahead but no real value help, only navigate if open TODO: remove function check
|
|
732
733
|
oEvent.preventDefault();
|
|
733
734
|
oEvent.stopPropagation();
|
|
734
735
|
oFieldHelp.setFilterValue(this._sFilterValue); // to be sure to filter for typed value
|
|
@@ -742,7 +743,8 @@ sap.ui.define([
|
|
|
742
743
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
743
744
|
var oSource = oEvent.srcControl;
|
|
744
745
|
|
|
745
|
-
if (oFieldHelp && (!this._oContentFactory.isMeasure() || oSource.getShowValueHelp())) {
|
|
746
|
+
if (oFieldHelp && (!oFieldHelp.valueHelpEnabled || oFieldHelp.valueHelpEnabled() || oFieldHelp.isOpen()) && (!this._oContentFactory.isMeasure() || oSource.getShowValueHelp())) {
|
|
747
|
+
// if only type-ahead but no real value help, only navigate if open TODO: remove function check
|
|
746
748
|
oEvent.preventDefault();
|
|
747
749
|
oEvent.stopPropagation();
|
|
748
750
|
oFieldHelp.setFilterValue(this._sFilterValue); // to be sure to filter for typed value
|
|
@@ -774,7 +776,7 @@ sap.ui.define([
|
|
|
774
776
|
// in "Select"-case the suggestion help should open on click into field
|
|
775
777
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
776
778
|
if (oFieldHelp) {
|
|
777
|
-
if (oFieldHelp.
|
|
779
|
+
if (oFieldHelp.shouldOpenOnClick() && !oFieldHelp.isOpen(true)) {
|
|
778
780
|
oFieldHelp.open(true);
|
|
779
781
|
}
|
|
780
782
|
var oSource = oEvent.srcControl;
|
|
@@ -1024,12 +1026,12 @@ sap.ui.define([
|
|
|
1024
1026
|
|
|
1025
1027
|
}
|
|
1026
1028
|
|
|
1027
|
-
function
|
|
1029
|
+
FieldBase.prototype._removeUIMessage = function() {
|
|
1028
1030
|
|
|
1029
1031
|
this.setValueState(ValueState.None);
|
|
1030
1032
|
this.setValueStateText();
|
|
1031
1033
|
|
|
1032
|
-
}
|
|
1034
|
+
};
|
|
1033
1035
|
|
|
1034
1036
|
/**
|
|
1035
1037
|
* Observes changes.
|
|
@@ -1191,7 +1193,7 @@ sap.ui.define([
|
|
|
1191
1193
|
* @private
|
|
1192
1194
|
* @ui5-restricted sap.ui.mdc.field.FieldHelpBase
|
|
1193
1195
|
*/
|
|
1194
|
-
|
|
1196
|
+
FieldBase.prototype.getControlForSuggestion = function() {
|
|
1195
1197
|
|
|
1196
1198
|
var aContent = this._getContent();
|
|
1197
1199
|
if (aContent.length > 0) {
|
|
@@ -1206,6 +1208,12 @@ sap.ui.define([
|
|
|
1206
1208
|
|
|
1207
1209
|
};
|
|
1208
1210
|
|
|
1211
|
+
FieldBase.prototype.getFocusElementForValueHelp = function(bTypahead) {
|
|
1212
|
+
var oSuggestControl = this.getControlForSuggestion();
|
|
1213
|
+
var oIcon = oSuggestControl && oSuggestControl.mAggregations && oSuggestControl.mAggregations._endIcon && oSuggestControl.mAggregations._endIcon[0];
|
|
1214
|
+
return bTypahead || !oIcon ? oSuggestControl : oIcon;
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1209
1217
|
/**
|
|
1210
1218
|
* In the case that number and unit are shown in different controls, only one unit is supported.
|
|
1211
1219
|
* So the value help needs to be in single selection mode.
|
|
@@ -1330,23 +1338,24 @@ sap.ui.define([
|
|
|
1330
1338
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
1331
1339
|
|
|
1332
1340
|
if (oFieldHelp) {
|
|
1333
|
-
var
|
|
1334
|
-
|
|
1341
|
+
var oAriaAttributes = oFieldHelp.getAriaAttributes(this.getMaxConditionsForHelp());
|
|
1342
|
+
var sRoleDescription = oAriaAttributes.roleDescription;
|
|
1343
|
+
oAttributes["role"] = oAriaAttributes.role;
|
|
1335
1344
|
if (sRoleDescription) {
|
|
1336
1345
|
oAttributes.aria["roledescription"] = sRoleDescription;
|
|
1337
1346
|
}
|
|
1338
|
-
oAttributes.aria["haspopup"] =
|
|
1347
|
+
oAttributes.aria["haspopup"] = oAriaAttributes.ariaHasPopup;
|
|
1339
1348
|
oAttributes["autocomplete"] = "off";
|
|
1340
1349
|
if (bOpen) {
|
|
1341
1350
|
oAttributes.aria["expanded"] = "true";
|
|
1342
|
-
oAttributes.aria["controls"] =
|
|
1351
|
+
oAttributes.aria["controls"] = oAriaAttributes.contentId;
|
|
1343
1352
|
if (sItemId) {
|
|
1344
1353
|
oAttributes.aria["activedescendant"] = sItemId;
|
|
1345
1354
|
}
|
|
1346
1355
|
} else {
|
|
1347
1356
|
oAttributes.aria["expanded"] = "false";
|
|
1348
1357
|
}
|
|
1349
|
-
oAttributes["valueHelpEnabled"] =
|
|
1358
|
+
oAttributes["valueHelpEnabled"] = oAriaAttributes.valueHelpEnabled;
|
|
1350
1359
|
}
|
|
1351
1360
|
|
|
1352
1361
|
this.setProperty("_ariaAttributes", oAttributes, true);
|
|
@@ -1663,7 +1672,7 @@ sap.ui.define([
|
|
|
1663
1672
|
if (this._bParseError) {
|
|
1664
1673
|
// as wrong input get lost if content control is destroyed.
|
|
1665
1674
|
this._bParseError = false;
|
|
1666
|
-
_removeUIMessage
|
|
1675
|
+
this._removeUIMessage();
|
|
1667
1676
|
}
|
|
1668
1677
|
|
|
1669
1678
|
if (this._oContentFactory.isMeasure()) {
|
|
@@ -1993,7 +2002,7 @@ sap.ui.define([
|
|
|
1993
2002
|
|
|
1994
2003
|
if (bUpdateConditions) {
|
|
1995
2004
|
// text typed in MultiInput
|
|
1996
|
-
_removeUIMessage
|
|
2005
|
+
this._removeUIMessage();
|
|
1997
2006
|
var oConditionType;
|
|
1998
2007
|
var oMyChange;
|
|
1999
2008
|
|
|
@@ -2001,6 +2010,10 @@ sap.ui.define([
|
|
|
2001
2010
|
// remove filter value from input and don't use it as input
|
|
2002
2011
|
this._bIgnoreInputValue = false;
|
|
2003
2012
|
oSource.setDOMValue("");
|
|
2013
|
+
if (oSource.getMetadata().hasProperty("value")) {
|
|
2014
|
+
// clear "value" property of MultiInput as there might be an old value from a invalid input before
|
|
2015
|
+
oSource.setValue();
|
|
2016
|
+
}
|
|
2004
2017
|
return;
|
|
2005
2018
|
}
|
|
2006
2019
|
|
|
@@ -2070,7 +2083,7 @@ sap.ui.define([
|
|
|
2070
2083
|
this._sFilterValue = "";
|
|
2071
2084
|
if (!bAsync && bValid) {
|
|
2072
2085
|
_setConditionsOnFieldHelp.call(this, aConditions, oFieldHelp);
|
|
2073
|
-
oFieldHelp.
|
|
2086
|
+
oFieldHelp.onControlChange();
|
|
2074
2087
|
}
|
|
2075
2088
|
// do not trigger async suggestion
|
|
2076
2089
|
_clearLiveChangeTimer.call(this);
|
|
@@ -2141,7 +2154,7 @@ sap.ui.define([
|
|
|
2141
2154
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
2142
2155
|
if (oFieldHelp && this._bConnected) {
|
|
2143
2156
|
_setConditionsOnFieldHelp.call(this, aConditions, oFieldHelp);
|
|
2144
|
-
oFieldHelp.
|
|
2157
|
+
oFieldHelp.onControlChange();
|
|
2145
2158
|
}
|
|
2146
2159
|
oChange.result = aConditions;
|
|
2147
2160
|
_resolveAsyncChange.call(this, oChange);
|
|
@@ -2231,8 +2244,8 @@ sap.ui.define([
|
|
|
2231
2244
|
}
|
|
2232
2245
|
}
|
|
2233
2246
|
|
|
2234
|
-
var vOpenByTyping = oFieldHelp.
|
|
2235
|
-
if (this._bConnected && this._getContent()[0] && vOpenByTyping
|
|
2247
|
+
var vOpenByTyping = this.hasOwnProperty("_bOpenByTyping") ? this._bOpenByTyping : oFieldHelp.isTypeaheadSupported();
|
|
2248
|
+
if (this._bConnected && this._getContent()[0] && vOpenByTyping /*&& !(vOpenByTyping instanceof Promise)*/ && //TODO: isTypeaheadsupported always returns a promise now
|
|
2236
2249
|
(sap.ui.getCore().getCurrentFocusedControlId() === this._getContent()[0].getId() ||
|
|
2237
2250
|
(this._getContent()[1] && sap.ui.getCore().getCurrentFocusedControlId() === this._getContent()[1].getId()))) { // only if still connected and focussed
|
|
2238
2251
|
oFieldHelp.setFilterValue(this._sFilterValue);
|
|
@@ -2249,14 +2262,15 @@ sap.ui.define([
|
|
|
2249
2262
|
// on first call init FieldHelp (trigger loading metadata on first typing)
|
|
2250
2263
|
oFieldHelp.initBeforeOpen(true);
|
|
2251
2264
|
}
|
|
2252
|
-
var vOpenByTyping = oFieldHelp.
|
|
2265
|
+
var vOpenByTyping = oFieldHelp.isTypeaheadSupported(); // trigger determination of search functionality
|
|
2253
2266
|
if (vOpenByTyping instanceof Promise) {
|
|
2254
|
-
vOpenByTyping.then(function() {
|
|
2267
|
+
vOpenByTyping.then(function(bOpenByTyping) {
|
|
2255
2268
|
// trigger open after Promise resolved
|
|
2256
2269
|
var oFocusedElement = document.activeElement;
|
|
2257
2270
|
if (oFocusedElement && (containsOrEquals(this.getDomRef(), oFocusedElement)) && this._fnLiveChangeTimer) { // if destroyed this._fnLiveChangeTimer is removed
|
|
2258
2271
|
this._fnLiveChangeTimer(); // if resolved while initial debounce-time frame, it will not triggered twice
|
|
2259
2272
|
}
|
|
2273
|
+
this._bOpenByTyping = bOpenByTyping;
|
|
2260
2274
|
}.bind(this));
|
|
2261
2275
|
}
|
|
2262
2276
|
this._fnLiveChangeTimer();
|
|
@@ -2336,7 +2350,7 @@ sap.ui.define([
|
|
|
2336
2350
|
var oFieldHelp = sap.ui.getCore().byId(sId);
|
|
2337
2351
|
if (oFieldHelp) {
|
|
2338
2352
|
oFieldHelp.detachEvent("select", _handleFieldHelpSelect, this);
|
|
2339
|
-
oFieldHelp.detachEvent("
|
|
2353
|
+
oFieldHelp.detachEvent("navigated", _handleFieldHelpNavigated, this);
|
|
2340
2354
|
oFieldHelp.detachEvent("dataUpdate", _handleHelpDataUpdate, this);
|
|
2341
2355
|
oFieldHelp.detachEvent("disconnect", _handleDisconnect, this);
|
|
2342
2356
|
oFieldHelp.detachEvent("afterClose", _handleFieldHelpAfterClose, this);
|
|
@@ -2363,7 +2377,9 @@ sap.ui.define([
|
|
|
2363
2377
|
var oFieldHelp = sap.ui.getCore().byId(sId);
|
|
2364
2378
|
if (oFieldHelp) {
|
|
2365
2379
|
oFieldHelp.attachEvent("dataUpdate", _handleHelpDataUpdate, this);
|
|
2366
|
-
|
|
2380
|
+
if (!oFieldHelp.valueHelpEnabled || oFieldHelp.valueHelpEnabled()) { //TODO: remove check for existence of function
|
|
2381
|
+
this.setProperty("_fieldHelpEnabled", true, true);
|
|
2382
|
+
}
|
|
2367
2383
|
}
|
|
2368
2384
|
}
|
|
2369
2385
|
|
|
@@ -2531,7 +2547,10 @@ sap.ui.define([
|
|
|
2531
2547
|
}
|
|
2532
2548
|
this._sFilterValue = "";
|
|
2533
2549
|
} else if (bClose) {
|
|
2534
|
-
|
|
2550
|
+
if (this.getMaxConditions() !== 1 && !this._oContentFactory.getBoundProperty() && oContent.getMetadata().hasProperty("value") && oContent.getProperty("value")) {
|
|
2551
|
+
// clear "value" property of MultiInput as there might be an old value from a invalid input before
|
|
2552
|
+
oContent.setValue();
|
|
2553
|
+
}
|
|
2535
2554
|
oContent.setDOMValue("");
|
|
2536
2555
|
this._sFilterValue = "";
|
|
2537
2556
|
this._bIgnoreInputValue = false; // just clean up
|
|
@@ -2542,7 +2561,7 @@ sap.ui.define([
|
|
|
2542
2561
|
// after selection input cannot be wrong
|
|
2543
2562
|
if (this._bParseError) { // only remove messages set by Field itself, message from outside should stay.
|
|
2544
2563
|
this._bParseError = false;
|
|
2545
|
-
_removeUIMessage
|
|
2564
|
+
this._removeUIMessage();
|
|
2546
2565
|
}
|
|
2547
2566
|
}
|
|
2548
2567
|
|
|
@@ -2555,7 +2574,7 @@ sap.ui.define([
|
|
|
2555
2574
|
|
|
2556
2575
|
if (!FilterOperatorUtil.compareConditionsArray(aConditions, aConditionsOld)) { // update only if real change
|
|
2557
2576
|
// handle out-parameters
|
|
2558
|
-
oFieldHelp.
|
|
2577
|
+
oFieldHelp.onControlChange();
|
|
2559
2578
|
|
|
2560
2579
|
_triggerChange.call(this, aConditions, true);
|
|
2561
2580
|
}
|
|
@@ -2563,21 +2582,26 @@ sap.ui.define([
|
|
|
2563
2582
|
|
|
2564
2583
|
}
|
|
2565
2584
|
|
|
2566
|
-
function
|
|
2585
|
+
function _handleFieldHelpNavigated(oEvent) {
|
|
2567
2586
|
|
|
2568
2587
|
var sValue = oEvent.getParameter("value");
|
|
2569
2588
|
var vKey = oEvent.getParameter("key");
|
|
2570
2589
|
var oCondition = oEvent.getParameter("condition");
|
|
2571
2590
|
var sItemId = oEvent.getParameter("itemId");
|
|
2572
2591
|
var bLeaveFocus = oEvent.getParameter("leaveFocus");
|
|
2592
|
+
|
|
2593
|
+
if (!oCondition && vKey) {
|
|
2594
|
+
oCondition = Condition.createItemCondition(vKey, sValue);
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2573
2597
|
var sNewValue;
|
|
2574
2598
|
var sDOMValue;
|
|
2575
2599
|
var oContent = this.getControlForSuggestion();
|
|
2576
2600
|
var oOperator = FilterOperatorUtil.getEQOperator(this._getOperators()); /// use EQ operator of Field (might be different one)
|
|
2601
|
+
var oFieldHelp = _getFieldHelp.call(this);
|
|
2577
2602
|
|
|
2578
2603
|
if (bLeaveFocus) {
|
|
2579
2604
|
// nothing to navigate, just set focus visualization back to field
|
|
2580
|
-
var oFieldHelp = _getFieldHelp.call(this);
|
|
2581
2605
|
oContent.addStyleClass("sapMFocus");
|
|
2582
2606
|
oContent.focus();
|
|
2583
2607
|
oFieldHelp.removeFocus();
|
|
@@ -2636,9 +2660,11 @@ sap.ui.define([
|
|
|
2636
2660
|
sDOMValue = sValue || vKey;
|
|
2637
2661
|
}
|
|
2638
2662
|
}
|
|
2639
|
-
oContent.removeStyleClass("sapMFocus"); // to have focus outline on navigated item
|
|
2640
2663
|
oContent.setDOMValue(sDOMValue);
|
|
2641
2664
|
oContent._doSelect();
|
|
2665
|
+
if (oFieldHelp.isOpen()) {
|
|
2666
|
+
oContent.removeStyleClass("sapMFocus"); // to have focus outline on navigated item only
|
|
2667
|
+
}
|
|
2642
2668
|
}
|
|
2643
2669
|
|
|
2644
2670
|
this._bPreventGetDescription = false; // back to default
|
|
@@ -2658,6 +2684,10 @@ sap.ui.define([
|
|
|
2658
2684
|
var oContent = this.getControlForSuggestion();
|
|
2659
2685
|
this._bIgnoreInputValue = false;
|
|
2660
2686
|
oContent.setDOMValue("");
|
|
2687
|
+
if (this.getMaxConditions() !== 1 && !this._oContentFactory.getBoundProperty() && oContent.getMetadata().hasProperty("value") && oContent.getProperty("value")) {
|
|
2688
|
+
// clear "value" property of MultiInput as there might be an old value from a invalid input before
|
|
2689
|
+
oContent.setValue();
|
|
2690
|
+
}
|
|
2661
2691
|
}
|
|
2662
2692
|
|
|
2663
2693
|
_setAriaAttributes.call(this, false);
|
|
@@ -2697,10 +2727,11 @@ sap.ui.define([
|
|
|
2697
2727
|
|
|
2698
2728
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
2699
2729
|
oFieldHelp.detachEvent("select", _handleFieldHelpSelect, this);
|
|
2700
|
-
oFieldHelp.detachEvent("
|
|
2730
|
+
oFieldHelp.detachEvent("navigated", _handleFieldHelpNavigated, this);
|
|
2701
2731
|
oFieldHelp.detachEvent("disconnect", _handleDisconnect, this);
|
|
2702
|
-
oFieldHelp.detachEvent("afterClose", _handleFieldHelpAfterClose, this);
|
|
2732
|
+
oFieldHelp.detachEvent("afterClose", _handleFieldHelpAfterClose, this); // TODO: remove
|
|
2703
2733
|
oFieldHelp.detachEvent("switchToValueHelp", _handleFieldSwitchToValueHelp, this);
|
|
2734
|
+
oFieldHelp.detachEvent("closed", _handleFieldHelpAfterClose, this);
|
|
2704
2735
|
this._bConnected = false;
|
|
2705
2736
|
|
|
2706
2737
|
}
|
|
@@ -2709,13 +2740,26 @@ sap.ui.define([
|
|
|
2709
2740
|
|
|
2710
2741
|
var oFieldHelp = _getFieldHelp.call(this);
|
|
2711
2742
|
if (oFieldHelp && !this._bConnected) {
|
|
2712
|
-
|
|
2743
|
+
var oConditionModelInfo = _getConditionModelInfo.call(this);
|
|
2744
|
+
var oConfig = { // TODO: only what is needed (also for DefineConditions and Tokenizer)
|
|
2745
|
+
maxConditions: this.getMaxConditions(), // TODO: in unit case only 1?
|
|
2746
|
+
dataType: this._oContentFactory.getDataType(),
|
|
2747
|
+
operators: this._getOperators(),
|
|
2748
|
+
display: this._oContentFactory.isMeasure() ? FieldDisplay.Value : this.getDisplay(),
|
|
2749
|
+
delegate: this.getControlDelegate(),
|
|
2750
|
+
delegateName: this.getDelegate() && this.getDelegate().name,
|
|
2751
|
+
payload: this.getPayload(),
|
|
2752
|
+
conditionModel: oConditionModelInfo.model,
|
|
2753
|
+
conditionModelName : oConditionModelInfo.name
|
|
2754
|
+
};
|
|
2755
|
+
oFieldHelp.connect(this, oConfig);
|
|
2713
2756
|
this._bConnected = true;
|
|
2714
2757
|
oFieldHelp.attachEvent("select", _handleFieldHelpSelect, this);
|
|
2715
|
-
oFieldHelp.attachEvent("
|
|
2758
|
+
oFieldHelp.attachEvent("navigated", _handleFieldHelpNavigated, this);
|
|
2716
2759
|
oFieldHelp.attachEvent("disconnect", _handleDisconnect, this);
|
|
2717
|
-
oFieldHelp.attachEvent("afterClose", _handleFieldHelpAfterClose, this);
|
|
2760
|
+
oFieldHelp.attachEvent("afterClose", _handleFieldHelpAfterClose, this); // TODO: remove
|
|
2718
2761
|
oFieldHelp.attachEvent("switchToValueHelp", _handleFieldSwitchToValueHelp, this);
|
|
2762
|
+
oFieldHelp.attachEvent("closed", _handleFieldHelpAfterClose, this);
|
|
2719
2763
|
var aConditions = this.getConditions();
|
|
2720
2764
|
_setConditionsOnFieldHelp.call(this, aConditions, oFieldHelp);
|
|
2721
2765
|
|
|
@@ -2813,6 +2857,7 @@ sap.ui.define([
|
|
|
2813
2857
|
return {
|
|
2814
2858
|
valueType: this._oContentFactory.retrieveDataType(),
|
|
2815
2859
|
originalDateType: this._oContentFactory.getDateOriginalType() || this._oContentFactory.getUnitOriginalType(),
|
|
2860
|
+
additionalType: this._oContentFactory.getUnitType(), // only set if unit
|
|
2816
2861
|
display: this._oContentFactory.isMeasure() ? FieldDisplay.Value : this.getDisplay(),
|
|
2817
2862
|
fieldHelpID: this._oContentFactory.isMeasure() ? undefined : this.getFieldHelp() || this._sDefaultFieldHelp,
|
|
2818
2863
|
operators: this._getOperators(),
|
|
@@ -2886,7 +2931,8 @@ sap.ui.define([
|
|
|
2886
2931
|
|
|
2887
2932
|
return {
|
|
2888
2933
|
valueType: this._oContentFactory.getUnitType(),
|
|
2889
|
-
originalDateType: this._oContentFactory.
|
|
2934
|
+
originalDateType: this._oContentFactory.getDateOriginalType() || this._oContentFactory.getUnitOriginalType(),
|
|
2935
|
+
additionalType: this._oContentFactory.retrieveDataType(), // use type of measure for currentValue
|
|
2890
2936
|
display: this.getDisplay(),
|
|
2891
2937
|
fieldHelpID: this.getFieldHelp() || this._sDefaultFieldHelp,
|
|
2892
2938
|
operators: ["EQ"],
|
|
@@ -184,10 +184,17 @@ sap.ui.define([
|
|
|
184
184
|
* @ui5-restricted sap.fe
|
|
185
185
|
* @MDC_PUBLIC_CANDIDATE
|
|
186
186
|
*/
|
|
187
|
-
FieldBaseDelegate.getItemForValue = function(oPayload, oFieldHelp, vValue, vParsedValue, oBindingContext, bCheckKeyFirst, bCheckKey, bCheckDescription, oConditionModel, sConditionModelName) {
|
|
187
|
+
// FieldBaseDelegate.getItemForValue = function(oPayload, oFieldHelp, vValue, vParsedValue, oBindingContext, bCheckKeyFirst, bCheckKey, bCheckDescription, oConditionModel, sConditionModelName) {
|
|
188
|
+
//
|
|
189
|
+
// if (oFieldHelp) {
|
|
190
|
+
// return oFieldHelp.getItemForValue(vValue, vParsedValue, undefined, undefined, oBindingContext, bCheckKeyFirst, bCheckKey, bCheckDescription, oConditionModel, sConditionModelName);
|
|
191
|
+
// }
|
|
192
|
+
//
|
|
193
|
+
// };
|
|
194
|
+
FieldBaseDelegate.getItemForValue = function(oPayload, oFieldHelp, oConfig) {
|
|
188
195
|
|
|
189
196
|
if (oFieldHelp) {
|
|
190
|
-
return oFieldHelp.getItemForValue(
|
|
197
|
+
return oFieldHelp.getItemForValue(oConfig);
|
|
191
198
|
}
|
|
192
199
|
|
|
193
200
|
};
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @class Base type for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
|
|
41
41
|
* @extends sap.ui.mdc.Element
|
|
42
42
|
* @implements sap.ui.core.PopupInterface
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.95.0
|
|
44
44
|
* @constructor
|
|
45
45
|
* @abstract
|
|
46
46
|
* @private
|
|
@@ -712,7 +712,7 @@ sap.ui.define([
|
|
|
712
712
|
|
|
713
713
|
/**
|
|
714
714
|
* Calls initialization of the FieldHelp before the FieldHelp is really opened.
|
|
715
|
-
* This is called in
|
|
715
|
+
* This is called in Typeahead on first letter before the FieldHelp is opened with a delay. So the
|
|
716
716
|
* content can be determined in the delegate coding early.
|
|
717
717
|
*
|
|
718
718
|
* <b>Note:</b> This function must only be called by the control the <code>FieldHelp</code> element
|
|
@@ -1091,7 +1091,7 @@ sap.ui.define([
|
|
|
1091
1091
|
*/
|
|
1092
1092
|
FieldHelpBase.prototype.isValidationSupported = function() {
|
|
1093
1093
|
// to be implemented by the concrete FieldHelp
|
|
1094
|
-
return
|
|
1094
|
+
return this.isUsableForValidation();
|
|
1095
1095
|
};
|
|
1096
1096
|
|
|
1097
1097
|
/**
|
|
@@ -1122,7 +1122,28 @@ sap.ui.define([
|
|
|
1122
1122
|
*/
|
|
1123
1123
|
FieldHelpBase.prototype.getItemForValue = function(vValue, vParsedValue, oInParameters, oOutParameters, oBindingContext, bCheckKeyFirst, bCheckKey, bCheckDescription, oConditionModel, sConditionModelName) {
|
|
1124
1124
|
|
|
1125
|
-
|
|
1125
|
+
if (typeof vValue !== "object" || !vValue.hasOwnProperty("value")) {
|
|
1126
|
+
// not new config object -> map old properties to config
|
|
1127
|
+
vValue = {
|
|
1128
|
+
value: vValue,
|
|
1129
|
+
parsedValue: vParsedValue,
|
|
1130
|
+
inParameters: oInParameters, // TODO: needed?
|
|
1131
|
+
outParameters: oOutParameters, // TODO: needed?
|
|
1132
|
+
bindingContext: oBindingContext,
|
|
1133
|
+
checkKeyFirst: bCheckKeyFirst, // TODO: not longer needed?
|
|
1134
|
+
checkKey: bCheckKey,
|
|
1135
|
+
checkDescription: bCheckDescription,
|
|
1136
|
+
conditionModel: oConditionModel,
|
|
1137
|
+
conditionModelName: sConditionModelName
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
if (vValue && typeof vValue === "object" && vValue.hasOwnProperty("value")) {
|
|
1142
|
+
// map new Config to old API
|
|
1143
|
+
return _getItemForValue.call(this, vValue.value, vValue.parsedValue, vValue.inParameters, vValue.outParameters, vValue.bindingContext, vValue.checkKeyFirst && vValue.checkKey, vValue.checkKey, vValue.checkDescription, vValue.conditionModel, vValue.conditionModelName);
|
|
1144
|
+
} else {
|
|
1145
|
+
return _getItemForValue.call(this, vValue, vParsedValue, oInParameters, oOutParameters, oBindingContext, bCheckKeyFirst && bCheckKey, bCheckKey, bCheckDescription, oConditionModel, sConditionModelName);
|
|
1146
|
+
}
|
|
1126
1147
|
|
|
1127
1148
|
};
|
|
1128
1149
|
|
|
@@ -1476,6 +1497,45 @@ sap.ui.define([
|
|
|
1476
1497
|
|
|
1477
1498
|
}
|
|
1478
1499
|
|
|
1500
|
+
/// renaming of functions -> call original ones
|
|
1501
|
+
FieldHelpBase.prototype.isTypeaheadSupported = function() {
|
|
1502
|
+
return this.openByTyping();
|
|
1503
|
+
};
|
|
1504
|
+
FieldHelpBase.prototype.shouldOpenOnClick = function() {
|
|
1505
|
+
return this.openByClick();
|
|
1506
|
+
};
|
|
1507
|
+
FieldHelpBase.prototype.onControlChange = function() {
|
|
1508
|
+
return this.onFieldChange();
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
FieldHelpBase.prototype.getAriaAttributes = function(iMaxConditions) {
|
|
1512
|
+
|
|
1513
|
+
return {
|
|
1514
|
+
contentId: this.getContentId(),
|
|
1515
|
+
ariaHasPopup: this.getAriaHasPopup(),
|
|
1516
|
+
role: "combobox",
|
|
1517
|
+
roleDescription: this.getRoleDescription(iMaxConditions),
|
|
1518
|
+
valueHelpEnabled: this.getValueHelpEnabled()
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
FieldHelpBase.prototype.attachEvent = function(sEventId, oData, fnFunction, oListener) {
|
|
1524
|
+
if (sEventId === "navigated") {
|
|
1525
|
+
return Element.prototype.attachEvent.apply(this, ["navigate", oData, fnFunction, oListener]);
|
|
1526
|
+
} else {
|
|
1527
|
+
return Element.prototype.attachEvent.apply(this, arguments);
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
FieldHelpBase.prototype.detachEvent = function(sEventId, fnFunction, oListener) {
|
|
1532
|
+
if (sEventId === "navigated") {
|
|
1533
|
+
return Element.prototype.detachEvent.apply(this, ["navigate", fnFunction, oListener]);
|
|
1534
|
+
} else {
|
|
1535
|
+
return Element.prototype.detachEvent.apply(this, arguments);
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1479
1539
|
return FieldHelpBase;
|
|
1480
1540
|
|
|
1481
1541
|
});
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] Initial settings for the new control
|
|
28
28
|
* @class A <code>FieldInfoBase</code> element is a base class that shows any kind of information related to the <code>Field</code> control, for example, navigation targets or contact details.
|
|
29
29
|
* @extends sap.ui.mdc.Element
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.95.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.54.0
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class The <code>FieldInput</code> control is used to render an input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
25
|
* @extends sap.m.Input
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.95.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class Functions uses in <code>FieldInputRenderer</code> and <code>FieldMultiInputRenderer</code> to adjust aria attributes.
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.95.0
|
|
20
20
|
* @since 1.86.0
|
|
21
21
|
* @alias sap.ui.mdc.field.FieldInputRenderUtil
|
|
22
22
|
*
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class The <code>FieldMultiInput</code> control is used to render a multi-input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
25
|
* @extends sap.m.MultiInput
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.95.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @param {object} [mSettings] Initial settings for the new control
|
|
75
75
|
* @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a value help dialog.
|
|
76
76
|
* @extends sap.ui.mdc.field.FieldHelpBase
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.95.0
|
|
78
78
|
* @constructor
|
|
79
79
|
* @private
|
|
80
80
|
* @ui5-restricted sap.fe
|
|
@@ -1369,6 +1369,10 @@ sap.ui.define([
|
|
|
1369
1369
|
if (oWrapper) {
|
|
1370
1370
|
var oValueHelpPanel = oDialog.getContent()[0];
|
|
1371
1371
|
_setContentOnValueHelpPanel.call(this, oValueHelpPanel, oWrapper.getDialogContent());
|
|
1372
|
+
if (!this._bApplyFilter && !this._bClosing && (this.isOpen() || this._bOpen) && !oWrapper.isSuspended()) {
|
|
1373
|
+
// in case ListBinding changed or is not longer suspended
|
|
1374
|
+
this._bApplyFilter = true;
|
|
1375
|
+
}
|
|
1372
1376
|
}
|
|
1373
1377
|
}
|
|
1374
1378
|
}
|
|
@@ -2601,6 +2605,8 @@ sap.ui.define([
|
|
|
2601
2605
|
liveMode: !oWrapper.isSuspended(), // if suspended, no live search
|
|
2602
2606
|
showGoButton: false
|
|
2603
2607
|
});
|
|
2608
|
+
oFilterBar.setInternalConditions(this._oConditions); // if already InParameter or SearchValue set, move it to FilterBar
|
|
2609
|
+
this._oConditions = {};
|
|
2604
2610
|
this.setAggregation("_filterBar", oFilterBar, true);
|
|
2605
2611
|
}
|
|
2606
2612
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class Base type for <code>FieldValueHelp</code> content control wrapper.
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.95.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* @param {object} [mSettings] Initial settings for the new control
|
|
35
35
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
36
36
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
37
|
-
* @version 1.
|
|
37
|
+
* @version 1.95.0
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
40
40
|
* @ui5-restricted sap.fe
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @param {object} [mSettings] Initial settings for the new control
|
|
41
41
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
42
42
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.95.0
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
46
46
|
* @ui5-restricted sap.fe
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @param {object} [mSettings] Initial settings for the new control
|
|
48
48
|
* @class Wrapper to use a table control as content of a <code>FieldValueHelp</code> element
|
|
49
49
|
* @extends sap.ui.mdc.field.FieldValueHelpContentWrapperBase
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.95.0
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
53
53
|
* @experimental As of version 1.88
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @param {object} [mSettings] Initial settings for the new control
|
|
32
32
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
33
33
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.95.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class The <code>InParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.95.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @param {object} [mSettings] Initial settings for the new control
|
|
40
40
|
* @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a list of items.
|
|
41
41
|
* @extends sap.ui.mdc.field.FieldHelpBase
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.95.0
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
45
45
|
* @ui5-restricted sap.fe
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class Base type for <code>MultiValueFieldItem</code> control.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.95.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @param {object} [mSettings] Initial settings for the new control
|
|
23
23
|
* @class The <code>OutParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
24
24
|
* @extends sap.ui.mdc.field.InParameter
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.95.0
|
|
26
26
|
* @constructor
|
|
27
27
|
* @abstract
|
|
28
28
|
* @private
|