@openui5/sap.ui.mdc 1.94.0 → 1.97.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 +12 -12
- package/THIRDPARTY.txt +21 -17
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +231 -334
- package/src/sap/ui/mdc/Chart.js +148 -21
- package/src/sap/ui/mdc/ChartDelegateNew.js +15 -0
- package/src/sap/ui/mdc/ChartNew.js +83 -56
- package/src/sap/ui/mdc/ChartNewRenderer.js +2 -2
- package/src/sap/ui/mdc/Control.js +4 -3
- package/src/sap/ui/mdc/Element.js +5 -4
- package/src/sap/ui/mdc/Field.js +3 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -10
- package/src/sap/ui/mdc/FilterField.js +42 -4
- package/src/sap/ui/mdc/Link.js +2 -2
- package/src/sap/ui/mdc/MultiValueField.js +2 -1
- package/src/sap/ui/mdc/Table.js +285 -186
- package/src/sap/ui/mdc/TableDelegate.js +13 -11
- package/src/sap/ui/mdc/ValueHelp.js +1500 -0
- package/src/sap/ui/mdc/ValueHelpDelegate.js +167 -0
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +49 -104
- package/src/sap/ui/mdc/chart/DimensionItem.js +3 -3
- package/src/sap/ui/mdc/chart/Item.js +2 -3
- package/src/sap/ui/mdc/chart/MeasureItem.js +2 -2
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +21 -2
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +237 -226
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +14 -10
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +11 -9
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +2 -2
- 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 +6 -2
- package/src/sap/ui/mdc/condition/Operator.js +9 -9
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +43 -0
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +91 -0
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +21 -0
- package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
- package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
- package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +19 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +31 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +5 -0
- package/src/sap/ui/mdc/enum/ContentMode.js +25 -4
- 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 +67 -35
- package/src/sap/ui/mdc/field/ConditionsType.js +12 -10
- 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/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +143 -83
- 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 +9 -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 +12 -6
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +20 -0
- 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 +2 -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 +2 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +16 -4
- package/src/sap/ui/mdc/field/content/ContentFactory.js +34 -24
- package/src/sap/ui/mdc/field/content/DateContent.js +128 -2
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +9 -1
- package/src/sap/ui/mdc/field/content/DefaultContent.js +65 -24
- package/src/sap/ui/mdc/field/content/LinkContent.js +6 -0
- package/src/sap/ui/mdc/field/content/SearchContent.js +21 -3
- package/src/sap/ui/mdc/field/content/TimeContent.js +8 -1
- package/src/sap/ui/mdc/field/content/UnitContent.js +25 -6
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +43 -24
- 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/ActionToolbar.flexibility.js +22 -0
- package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +19 -0
- 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 +603 -5
- 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 +2 -2
- 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 +37 -3
- package/src/sap/ui/mdc/messagebundle_ar.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_bg.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +36 -15
- package/src/sap/ui/mdc/messagebundle_cy.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +48 -27
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_fr.properties +36 -15
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_hr.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_id.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +46 -25
- package/src/sap/ui/mdc/messagebundle_iw.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +30 -9
- package/src/sap/ui/mdc/messagebundle_kk.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_lt.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_no.properties +30 -9
- package/src/sap/ui/mdc/messagebundle_pl.properties +27 -6
- package/src/sap/ui/mdc/messagebundle_pt.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +26 -5
- package/src/sap/ui/mdc/messagebundle_ru.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_sl.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +24 -3
- package/src/sap/ui/mdc/messagebundle_th.properties +29 -8
- package/src/sap/ui/mdc/messagebundle_tr.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +23 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +23 -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 +3 -3
- 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/TableDelegate.js +65 -37
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +221 -32
- package/src/sap/ui/mdc/p13n/Engine.js +34 -10
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +2 -2
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +21 -10
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +20 -0
- package/src/sap/ui/mdc/p13n/UIManager.js +11 -6
- package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +2 -2
- package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +59 -0
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +20 -5
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +8 -8
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1 -2
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +1179 -0
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -2
- package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -4
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +89 -0
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +9 -6
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +33 -4
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +9 -15
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +5 -12
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +19 -21
- package/src/sap/ui/mdc/table/Column.js +67 -17
- package/src/sap/ui/mdc/table/CreationRow.js +14 -13
- package/src/sap/ui/mdc/table/GridTableType.js +11 -11
- package/src/sap/ui/mdc/table/PropertyHelper.js +120 -17
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +35 -26
- package/src/sap/ui/mdc/table/RowSettings.js +8 -6
- package/src/sap/ui/mdc/table/TableTypeBase.js +4 -5
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +15 -71
- package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +51 -21
- package/src/sap/ui/mdc/themes/base/library.source.less +1 -0
- 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 +114 -304
- package/src/sap/ui/mdc/valuehelp/Dialog.js +499 -0
- package/src/sap/ui/mdc/valuehelp/Popover.js +373 -0
- package/src/sap/ui/mdc/valuehelp/base/Container.js +673 -0
- package/src/sap/ui/mdc/valuehelp/base/Content.js +658 -0
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +139 -0
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +584 -0
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +133 -0
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +318 -0
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +270 -0
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +532 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +643 -0
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +928 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -2
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +48 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ActionsBase.js +310 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ActionsViz.js +39 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/AssertionsBase.js +118 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/AssertionsViz.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ChartNew.js +24 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +289 -0
- 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 +407 -93
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +4 -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
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
+
"sap/ui/mdc/field/content/DefaultContent",
|
|
7
8
|
"sap/ui/mdc/field/content/DateContent"
|
|
8
|
-
], function(DateContent) {
|
|
9
|
+
], function(DefaultContent, DateContent) {
|
|
9
10
|
"use strict";
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -26,9 +27,16 @@ sap.ui.define([
|
|
|
26
27
|
"EQ": { name: "sap/m/DateTimePicker", create: this._createDatePickerControl } // as same API as DatePicker
|
|
27
28
|
};
|
|
28
29
|
},
|
|
30
|
+
getEdit: function() {
|
|
31
|
+
return DefaultContent.getEdit.apply(this, arguments);
|
|
32
|
+
},
|
|
29
33
|
createEditMultiLine: function() {
|
|
30
34
|
throw new Error("sap.ui.mdc.field.content.DateTimeContent - createEditMultiLine not defined!");
|
|
35
|
+
},
|
|
36
|
+
createEdit: function(oContentFactory, aControlClasses, sId) {
|
|
37
|
+
return DefaultContent.createEdit.apply(this, arguments);
|
|
31
38
|
}
|
|
39
|
+
|
|
32
40
|
});
|
|
33
41
|
|
|
34
42
|
return DateTimeContent;
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/m/library"
|
|
7
|
+
"sap/m/library",
|
|
8
|
+
"sap/ui/mdc/enum/ContentMode"
|
|
8
9
|
], function(
|
|
9
|
-
mLibrary
|
|
10
|
+
mLibrary,
|
|
11
|
+
ContentMode
|
|
10
12
|
) {
|
|
11
13
|
"use strict";
|
|
12
14
|
|
|
@@ -28,13 +30,16 @@ sap.ui.define([
|
|
|
28
30
|
getDisplay: function() {
|
|
29
31
|
return ["sap/m/Text"];
|
|
30
32
|
},
|
|
33
|
+
getDisplayMultiValue: function() {
|
|
34
|
+
return this.getDisplayMultiLine();
|
|
35
|
+
},
|
|
31
36
|
getDisplayMultiLine: function() {
|
|
32
37
|
return ["sap/m/ExpandableText"];
|
|
33
38
|
},
|
|
34
39
|
getEdit: function() {
|
|
35
40
|
return ["sap/ui/mdc/field/FieldInput"];
|
|
36
41
|
},
|
|
37
|
-
|
|
42
|
+
getEditMultiValue: function() {
|
|
38
43
|
return ["sap/ui/mdc/field/FieldMultiInput", "sap/m/Token"];
|
|
39
44
|
},
|
|
40
45
|
getEditMultiLine: function() {
|
|
@@ -43,11 +48,14 @@ sap.ui.define([
|
|
|
43
48
|
getEditOperator: function() {
|
|
44
49
|
return [null];
|
|
45
50
|
},
|
|
51
|
+
getEditForHelp: function() {
|
|
52
|
+
return this.getEdit();
|
|
53
|
+
},
|
|
46
54
|
getUseDefaultEnterHandler: function() {
|
|
47
55
|
return true;
|
|
48
56
|
},
|
|
49
57
|
getUseDefaultFieldHelp: function() {
|
|
50
|
-
return { name: "defineConditions", oneOperatorSingle: false, oneOperatorMulti: false };
|
|
58
|
+
return { name: "defineConditions", oneOperatorSingle: false, oneOperatorMulti: false, single: true, multi: true };
|
|
51
59
|
},
|
|
52
60
|
/**
|
|
53
61
|
* Determines which controls to return for a given {@link sap.ui.mdc.enum.ContentMode}.
|
|
@@ -58,25 +66,31 @@ sap.ui.define([
|
|
|
58
66
|
getControlNames: function(sContentMode, sOperator) {
|
|
59
67
|
var aControlNames;
|
|
60
68
|
switch (sContentMode) {
|
|
61
|
-
case
|
|
69
|
+
case ContentMode.Display:
|
|
62
70
|
aControlNames = this.getDisplay();
|
|
63
71
|
break;
|
|
64
|
-
case
|
|
72
|
+
case ContentMode.DisplayMultiValue:
|
|
73
|
+
aControlNames = this.getDisplayMultiValue();
|
|
74
|
+
break;
|
|
75
|
+
case ContentMode.DisplayMultiLine:
|
|
65
76
|
aControlNames = this.getDisplayMultiLine();
|
|
66
77
|
break;
|
|
67
|
-
case
|
|
68
|
-
aControlNames = this.
|
|
78
|
+
case ContentMode.EditMultiValue:
|
|
79
|
+
aControlNames = this.getEditMultiValue();
|
|
69
80
|
break;
|
|
70
|
-
case
|
|
81
|
+
case ContentMode.EditMultiLine:
|
|
71
82
|
aControlNames = this.getEditMultiLine();
|
|
72
83
|
break;
|
|
73
|
-
case
|
|
84
|
+
case ContentMode.EditOperator:
|
|
74
85
|
if (this.getEditOperator()) {
|
|
75
86
|
aControlNames = this.getEditOperator()[sOperator] ? this.getEditOperator()[sOperator].name : [null];
|
|
76
87
|
} else {
|
|
77
88
|
aControlNames = [null];
|
|
78
89
|
}
|
|
79
90
|
break;
|
|
91
|
+
case ContentMode.EditForHelp:
|
|
92
|
+
aControlNames = this.getEditForHelp();
|
|
93
|
+
break;
|
|
80
94
|
default:
|
|
81
95
|
aControlNames = this.getEdit();
|
|
82
96
|
}
|
|
@@ -96,25 +110,29 @@ sap.ui.define([
|
|
|
96
110
|
*/
|
|
97
111
|
create: function(oContentFactory, sContentMode, sOperator, aControls, sId) {
|
|
98
112
|
switch (sContentMode) {
|
|
99
|
-
case
|
|
113
|
+
case ContentMode.Display:
|
|
100
114
|
return this.createDisplay(oContentFactory, aControls, sId);
|
|
101
|
-
case
|
|
115
|
+
case ContentMode.DisplayMultiValue:
|
|
116
|
+
return this.createDisplayMultiValue(oContentFactory, aControls, sId);
|
|
117
|
+
case ContentMode.DisplayMultiLine:
|
|
102
118
|
return this.createDisplayMultiLine(oContentFactory, aControls, sId);
|
|
103
|
-
case
|
|
104
|
-
return this.
|
|
105
|
-
case
|
|
119
|
+
case ContentMode.EditMultiValue:
|
|
120
|
+
return this.createEditMultiValue(oContentFactory, aControls, sId);
|
|
121
|
+
case ContentMode.EditMultiLine:
|
|
106
122
|
return this.createEditMultiLine(oContentFactory, aControls, sId);
|
|
107
|
-
case
|
|
123
|
+
case ContentMode.EditOperator:
|
|
108
124
|
if (this.getEditOperator()) {
|
|
109
125
|
return this.getEditOperator()[sOperator] ? this.getEditOperator()[sOperator].create.call(this, oContentFactory, aControls, sId) : [null];
|
|
110
126
|
}
|
|
111
127
|
return [null];
|
|
128
|
+
case ContentMode.EditForHelp:
|
|
129
|
+
return this.createEditForHelp(oContentFactory, aControls, sId);
|
|
112
130
|
default:
|
|
113
131
|
return this.createEdit(oContentFactory, aControls, sId);
|
|
114
132
|
}
|
|
115
133
|
},
|
|
116
134
|
/**
|
|
117
|
-
* Creates the suitable controls for content mode
|
|
135
|
+
* Creates the suitable controls for content mode <code>Edit</code>.
|
|
118
136
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
119
137
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
120
138
|
* @param {String} sId ID of the field control
|
|
@@ -151,13 +169,13 @@ sap.ui.define([
|
|
|
151
169
|
return [oInput];
|
|
152
170
|
},
|
|
153
171
|
/**
|
|
154
|
-
* Creates the suitable controls for content mode
|
|
172
|
+
* Creates the suitable controls for content mode <code>EditMultiValue</code>.
|
|
155
173
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
156
174
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
157
175
|
* @param {String} sId ID of the field control
|
|
158
176
|
* @returns {sap.ui.core.Control[]} Array containing the created controls
|
|
159
177
|
*/
|
|
160
|
-
|
|
178
|
+
createEditMultiValue: function(oContentFactory, aControlClasses, sId) {
|
|
161
179
|
var Input = aControlClasses[0];
|
|
162
180
|
var Token = aControlClasses[1];
|
|
163
181
|
var oConditionType = oContentFactory.getConditionType();
|
|
@@ -185,6 +203,7 @@ sap.ui.define([
|
|
|
185
203
|
tokens: { path: "$field>/conditions", template: oToken },
|
|
186
204
|
dependents: [oToken], // to destroy it if MultiInput is destroyed
|
|
187
205
|
autocomplete: false,
|
|
206
|
+
showSuggestion: false, // as true by default
|
|
188
207
|
change: oContentFactory.getHandleContentChange(),
|
|
189
208
|
liveChange: oContentFactory.getHandleContentLiveChange(),
|
|
190
209
|
tokenUpdate: oContentFactory.getHandleTokenUpdate(),
|
|
@@ -197,7 +216,7 @@ sap.ui.define([
|
|
|
197
216
|
return [oMultiInput];
|
|
198
217
|
},
|
|
199
218
|
/**
|
|
200
|
-
* Creates the suitable controls for content mode
|
|
219
|
+
* Creates the suitable controls for content mode <code>EditMultiLine</code>.
|
|
201
220
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
202
221
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
203
222
|
* @param {String} sId ID of the field control
|
|
@@ -230,7 +249,7 @@ sap.ui.define([
|
|
|
230
249
|
return [oTextArea];
|
|
231
250
|
},
|
|
232
251
|
/**
|
|
233
|
-
* Creates the suitable controls for content mode
|
|
252
|
+
* Creates the suitable controls for content mode <code>Display</code>.
|
|
234
253
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
235
254
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
236
255
|
* @param {String} sId ID of the field control
|
|
@@ -253,7 +272,7 @@ sap.ui.define([
|
|
|
253
272
|
return [oText];
|
|
254
273
|
},
|
|
255
274
|
/**
|
|
256
|
-
* Creates the suitable controls for content mode
|
|
275
|
+
* Creates the suitable controls for content mode <code>DisplayMultiLine</code>.
|
|
257
276
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
258
277
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
259
278
|
* @param {String} sId ID of the field control
|
|
@@ -267,12 +286,34 @@ sap.ui.define([
|
|
|
267
286
|
text: { path: "$field>/conditions", type: oConditionsType },
|
|
268
287
|
textAlign: "{$field>/textAlign}",
|
|
269
288
|
textDirection: "{$field>/textDirection}",
|
|
270
|
-
tooltip: "{$field>/tooltip}"
|
|
271
|
-
|
|
289
|
+
tooltip: "{$field>/tooltip}",
|
|
290
|
+
emptyIndicatorMode: EmptyIndicatorMode.Auto
|
|
272
291
|
});
|
|
273
292
|
oContentFactory.setBoundProperty("text");
|
|
274
293
|
|
|
275
294
|
return [oExpandableText];
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* Creates the suitable controls for content mode <code>DisplayMultiValue</code>.
|
|
298
|
+
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
299
|
+
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
300
|
+
* @param {String} sId ID of the field control
|
|
301
|
+
* @returns {sap.ui.core.Control[]} Array containing the created controls
|
|
302
|
+
* @since 1.96
|
|
303
|
+
*/
|
|
304
|
+
createDisplayMultiValue: function(oContentFactory, aControlClasses, sId) {
|
|
305
|
+
return this.createDisplayMultiLine(oContentFactory, aControlClasses, sId); // for now just return the same asl in MultiLine mode
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Creates the suitable controls for content mode <code>EditForHelp</code>.
|
|
309
|
+
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
310
|
+
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
311
|
+
* @param {String} sId ID of the field control
|
|
312
|
+
* @returns {sap.ui.core.Control[]} Array containing the created controls
|
|
313
|
+
* @since 1.96
|
|
314
|
+
*/
|
|
315
|
+
createEditForHelp: function(oContentFactory, aControlClasses, sId) {
|
|
316
|
+
return this.createEdit(oContentFactory, aControlClasses, sId); // In normal cases there is no difference between EditForHelp and Edit.
|
|
276
317
|
}
|
|
277
318
|
};
|
|
278
319
|
|
|
@@ -24,6 +24,9 @@ sap.ui.define([
|
|
|
24
24
|
getDisplay: function() {
|
|
25
25
|
return ["sap/m/Link"];
|
|
26
26
|
},
|
|
27
|
+
getDisplayMultiValue: function() {
|
|
28
|
+
return [null];
|
|
29
|
+
},
|
|
27
30
|
getDisplayMultiLine: function() {
|
|
28
31
|
return ["sap/m/Link"]; // render Link too, it wraps in Multiline
|
|
29
32
|
},
|
|
@@ -54,6 +57,9 @@ sap.ui.define([
|
|
|
54
57
|
|
|
55
58
|
return [oLink];
|
|
56
59
|
},
|
|
60
|
+
createDisplayMultiValue: function() {
|
|
61
|
+
throw new Error("sap.ui.mdc.field.content.LinkContent - createDisplayMultiValue not defined!");
|
|
62
|
+
},
|
|
57
63
|
createDisplayMultiLine: function(oContentFactory, aControlClasses, sId) {
|
|
58
64
|
return LinkContent.createDisplay(oContentFactory, aControlClasses, sId);
|
|
59
65
|
}
|
|
@@ -22,15 +22,24 @@ sap.ui.define([
|
|
|
22
22
|
* @MDC_PUBLIC_CANDIDATE
|
|
23
23
|
*/
|
|
24
24
|
var SearchContent = Object.assign({}, DefaultContent, {
|
|
25
|
+
getDisplayMultiValue: function() {
|
|
26
|
+
return [null];
|
|
27
|
+
},
|
|
28
|
+
getDisplayMultiLine: function() {
|
|
29
|
+
return [null];
|
|
30
|
+
},
|
|
25
31
|
getEdit: function() {
|
|
26
32
|
return ["sap/m/SearchField"];
|
|
27
33
|
},
|
|
28
|
-
|
|
34
|
+
getEditMultiValue: function() {
|
|
29
35
|
return [null];
|
|
30
36
|
},
|
|
31
37
|
getEditMultiLine: function() {
|
|
32
38
|
return [null];
|
|
33
39
|
},
|
|
40
|
+
getEditForHelp: function() {
|
|
41
|
+
return [null];
|
|
42
|
+
},
|
|
34
43
|
getUseDefaultEnterHandler: function() {
|
|
35
44
|
return false;
|
|
36
45
|
},
|
|
@@ -58,11 +67,20 @@ sap.ui.define([
|
|
|
58
67
|
|
|
59
68
|
return [oControl];
|
|
60
69
|
},
|
|
61
|
-
|
|
62
|
-
throw new Error("sap.ui.mdc.field.content.SearchContent -
|
|
70
|
+
createEditMultiValue: function() {
|
|
71
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createEditMultiValue not defined!");
|
|
63
72
|
},
|
|
64
73
|
createEditMultiLine: function() {
|
|
65
74
|
throw new Error("sap.ui.mdc.field.content.SearchContent - createEditMultiLine not defined!");
|
|
75
|
+
},
|
|
76
|
+
createDisplayMultiValue: function() {
|
|
77
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createDisplayMultiValue not defined!");
|
|
78
|
+
},
|
|
79
|
+
createDisplayMultiLine: function() {
|
|
80
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createDisplayMultiLine not defined!");
|
|
81
|
+
},
|
|
82
|
+
createEditForHelp: function() {
|
|
83
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createEditForHelp not defined!");
|
|
66
84
|
}
|
|
67
85
|
});
|
|
68
86
|
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
+
"sap/ui/mdc/field/content/DefaultContent",
|
|
7
8
|
"sap/ui/mdc/field/content/DateContent"
|
|
8
|
-
], function(DateContent) {
|
|
9
|
+
], function(DefaultContent, DateContent) {
|
|
9
10
|
"use strict";
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -26,8 +27,14 @@ sap.ui.define([
|
|
|
26
27
|
"EQ": { name: "sap/m/TimePicker", create: this._createDatePickerControl } // as same API as DatePicker
|
|
27
28
|
};
|
|
28
29
|
},
|
|
30
|
+
getEdit: function() {
|
|
31
|
+
return DefaultContent.getEdit.apply(this, arguments);
|
|
32
|
+
},
|
|
29
33
|
createEditMultiLine: function() {
|
|
30
34
|
throw new Error("sap.ui.mdc.field.content.TimeContent - createEditMultiLine not defined!");
|
|
35
|
+
},
|
|
36
|
+
createEdit: function(oContentFactory, aControlClasses, sId) {
|
|
37
|
+
return DefaultContent.createEdit.apply(this, arguments);
|
|
31
38
|
}
|
|
32
39
|
});
|
|
33
40
|
|
|
@@ -26,8 +26,11 @@ sap.ui.define([
|
|
|
26
26
|
* @MDC_PUBLIC_CANDIDATE
|
|
27
27
|
*/
|
|
28
28
|
var UnitContent = Object.assign({}, DefaultContent, {
|
|
29
|
-
|
|
30
|
-
return ["sap/ui/mdc/field/
|
|
29
|
+
getEdit: function() {
|
|
30
|
+
return ["sap/ui/mdc/field/FieldInput", "sap/ui/core/InvisibleText"];
|
|
31
|
+
},
|
|
32
|
+
getEditMultiValue: function() {
|
|
33
|
+
return ["sap/ui/mdc/field/FieldMultiInput", "sap/ui/mdc/field/FieldInput", "sap/m/Token", "sap/ui/core/InvisibleText"];
|
|
31
34
|
},
|
|
32
35
|
getEditMultiLine: function() {
|
|
33
36
|
return [null];
|
|
@@ -38,9 +41,11 @@ sap.ui.define([
|
|
|
38
41
|
createEdit: function(oContentFactory, aControlClasses, sId) {
|
|
39
42
|
oContentFactory.setIsMeasure(true); // FieldHelp only on unit field
|
|
40
43
|
var Input = aControlClasses[0];
|
|
44
|
+
var InvisibleText = aControlClasses[1];
|
|
41
45
|
var oConditionsType = oContentFactory.getConditionsType();
|
|
42
46
|
this._adjustDataTypeForUnit(oContentFactory);
|
|
43
47
|
|
|
48
|
+
var sInvisibleTextId = InvisibleText.getStaticId("sap.ui.mdc", "field.NUMBER");
|
|
44
49
|
var aControls = [];
|
|
45
50
|
var oInput1 = new Input(sId, {
|
|
46
51
|
value: { path: "$field>/conditions", type: oConditionsType },
|
|
@@ -58,23 +63,25 @@ sap.ui.define([
|
|
|
58
63
|
tooltip: "{$field>/tooltip}",
|
|
59
64
|
autocomplete: false,
|
|
60
65
|
fieldGroupIds: [oContentFactory.getField().getId()], // use FieldGroup to fire change only if focus leaved complete Field
|
|
66
|
+
ariaDescribedBy: [sInvisibleTextId],
|
|
61
67
|
change: oContentFactory.getHandleContentChange(),
|
|
62
68
|
liveChange: oContentFactory.getHandleContentLiveChange()
|
|
63
69
|
});
|
|
64
70
|
oInput1._setPreferUserInteraction(true);
|
|
65
71
|
oContentFactory.setAriaLabelledBy(oInput1);
|
|
66
72
|
aControls.push(oInput1);
|
|
67
|
-
aControls = this._addUnitControl(oContentFactory, aControls, sId, Input);
|
|
73
|
+
aControls = this._addUnitControl(oContentFactory, aControls, sId, Input, InvisibleText);
|
|
68
74
|
|
|
69
75
|
oContentFactory.setBoundProperty("value");
|
|
70
76
|
|
|
71
77
|
return aControls;
|
|
72
78
|
},
|
|
73
|
-
|
|
79
|
+
createEditMultiValue: function(oContentFactory, aControlClasses, sId) {
|
|
74
80
|
oContentFactory.setIsMeasure(true); // FieldHelp only on unit field
|
|
75
81
|
var MultiInput = aControlClasses[0];
|
|
76
82
|
var Token = aControlClasses[2]; // is loaded by MultiInput
|
|
77
83
|
var Input = aControlClasses[1];
|
|
84
|
+
var InvisibleText = aControlClasses[3];
|
|
78
85
|
var oConditionType = oContentFactory.getConditionType();
|
|
79
86
|
this._adjustDataTypeForUnit(oContentFactory);
|
|
80
87
|
|
|
@@ -98,6 +105,7 @@ sap.ui.define([
|
|
|
98
105
|
}
|
|
99
106
|
});
|
|
100
107
|
|
|
108
|
+
var sInvisibleTextId = InvisibleText.getStaticId("sap.ui.mdc", "field.NUMBER");
|
|
101
109
|
var oMultiInput = new MultiInput(sId, {
|
|
102
110
|
placeholder: "{$field>/placeholder}",
|
|
103
111
|
textAlign: "{$field>/textAlign}",
|
|
@@ -111,6 +119,7 @@ sap.ui.define([
|
|
|
111
119
|
width: "70%",
|
|
112
120
|
tooltip: "{$field>/tooltip}",
|
|
113
121
|
fieldGroupIds: [oContentFactory.getField().getId()], // use FieldGroup to fire change only if focus leaved complete Field
|
|
122
|
+
ariaDescribedBy: [sInvisibleTextId],
|
|
114
123
|
tokens: { path: "$field>/conditions", template: oToken, filters: [oFilter] },
|
|
115
124
|
dependents: [oToken], // to destroy it if MultiInput is destroyed
|
|
116
125
|
change: oContentFactory.getHandleContentChange(),
|
|
@@ -120,7 +129,7 @@ sap.ui.define([
|
|
|
120
129
|
oMultiInput._setPreferUserInteraction(true);
|
|
121
130
|
oContentFactory.setAriaLabelledBy(oMultiInput);
|
|
122
131
|
aControls.push(oMultiInput);
|
|
123
|
-
aControls = this._addUnitControl(oContentFactory, aControls, sId, Input);
|
|
132
|
+
aControls = this._addUnitControl(oContentFactory, aControls, sId, Input, InvisibleText);
|
|
124
133
|
|
|
125
134
|
oContentFactory.setBoundProperty("value");
|
|
126
135
|
|
|
@@ -129,7 +138,7 @@ sap.ui.define([
|
|
|
129
138
|
createEditMultiLine: function() {
|
|
130
139
|
throw new Error("sap.ui.mdc.field.content.UnitContent - createEditMultiLine not defined!");
|
|
131
140
|
},
|
|
132
|
-
_addUnitControl: function(oContentFactory, aControls, sId, Input) {
|
|
141
|
+
_addUnitControl: function(oContentFactory, aControls, sId, Input, InvisibleText) {
|
|
133
142
|
var oUnitConditionsType = oContentFactory.getUnitConditionsType();
|
|
134
143
|
|
|
135
144
|
if (oContentFactory.getField().getEditMode() === EditMode.EditableDisplay) {
|
|
@@ -137,6 +146,15 @@ sap.ui.define([
|
|
|
137
146
|
aControls[0].setWidth("100%");
|
|
138
147
|
aControls[0].setFieldWidth("70%");
|
|
139
148
|
} else {
|
|
149
|
+
var sInvisibleTextId;
|
|
150
|
+
var oType = oContentFactory.getUnitOriginalType();
|
|
151
|
+
var sName = oType && oType.getMetadata().getName();
|
|
152
|
+
if (sName && sName.indexOf("Currency") >= 0) { // TODO: better solution
|
|
153
|
+
sInvisibleTextId = InvisibleText.getStaticId("sap.ui.mdc", "field.CURRENCY");
|
|
154
|
+
} else {
|
|
155
|
+
sInvisibleTextId = InvisibleText.getStaticId("sap.ui.mdc", "field.UNIT");
|
|
156
|
+
}
|
|
157
|
+
|
|
140
158
|
var oInput = new Input(sId + "-unit", {
|
|
141
159
|
value: { path: "$field>/conditions", type: oUnitConditionsType },
|
|
142
160
|
placeholder: "{$field>/placeholder}",
|
|
@@ -154,6 +172,7 @@ sap.ui.define([
|
|
|
154
172
|
tooltip: "{$field>/tooltip}",
|
|
155
173
|
autocomplete: false,
|
|
156
174
|
fieldGroupIds: [oContentFactory.getField().getId()], // use FieldGroup to fire change only if focus leaved complete Field
|
|
175
|
+
ariaDescribedBy: [sInvisibleTextId],
|
|
157
176
|
change: oContentFactory.getHandleContentChange(),
|
|
158
177
|
liveChange: oContentFactory.getHandleContentLiveChange(),
|
|
159
178
|
valueHelpRequest: oContentFactory.getHandleValueHelpRequest()
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
* @class The <code>FilterBarBase</code> control is used as a faceless base class for common functionality of any MDC FilterBar derivation.
|
|
61
61
|
* @extends sap.ui.mdc.Control
|
|
62
62
|
* @author SAP SE
|
|
63
|
-
* @version 1.
|
|
63
|
+
* @version 1.97.0
|
|
64
64
|
* @constructor
|
|
65
65
|
* @private
|
|
66
66
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -72,6 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
{
|
|
73
73
|
metadata: {
|
|
74
74
|
library: "sap.ui.mdc",
|
|
75
|
+
designtime: "sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime",
|
|
75
76
|
defaultAggregation: "filterItems",
|
|
76
77
|
interfaces : [
|
|
77
78
|
"sap.ui.mdc.IFilter",
|
|
@@ -783,9 +784,7 @@ sap.ui.define([
|
|
|
783
784
|
this._bSearchTriggered = true;
|
|
784
785
|
return Promise.resolve();
|
|
785
786
|
}
|
|
786
|
-
return this.validate()
|
|
787
|
-
this.fireSearch();
|
|
788
|
-
}.bind(this));
|
|
787
|
+
return this.validate();
|
|
789
788
|
};
|
|
790
789
|
|
|
791
790
|
/**
|
|
@@ -798,7 +797,9 @@ sap.ui.define([
|
|
|
798
797
|
* @returns {Promise} Returns a Promise which resolves after the validation of erroneous fields has been propagated.
|
|
799
798
|
*
|
|
800
799
|
*/
|
|
801
|
-
FilterBarBase.prototype.validate = function() {
|
|
800
|
+
FilterBarBase.prototype.validate = function(bSuppressSearch) {
|
|
801
|
+
|
|
802
|
+
var bFireSearch = !bSuppressSearch;
|
|
802
803
|
|
|
803
804
|
return this.initialized().then(function() {
|
|
804
805
|
if (!this._oValidationPromise) {
|
|
@@ -809,7 +810,7 @@ sap.ui.define([
|
|
|
809
810
|
}.bind(this));
|
|
810
811
|
|
|
811
812
|
var fDelayedFunction = function() {
|
|
812
|
-
this._validate();
|
|
813
|
+
this._validate(bFireSearch);
|
|
813
814
|
this._oValidationPromise = null;
|
|
814
815
|
};
|
|
815
816
|
setTimeout(fDelayedFunction.bind(this), 0);
|
|
@@ -900,7 +901,9 @@ sap.ui.define([
|
|
|
900
901
|
} else {
|
|
901
902
|
this.triggerSearch();
|
|
902
903
|
}
|
|
903
|
-
}.bind(this))
|
|
904
|
+
}.bind(this)).catch(function(oEx) {
|
|
905
|
+
Log.error(oEx);
|
|
906
|
+
});
|
|
904
907
|
}
|
|
905
908
|
};
|
|
906
909
|
|
|
@@ -955,7 +958,7 @@ sap.ui.define([
|
|
|
955
958
|
return oFilterField;
|
|
956
959
|
};
|
|
957
960
|
|
|
958
|
-
FilterBarBase.prototype._handleAsyncValidation = function() {
|
|
961
|
+
FilterBarBase.prototype._handleAsyncValidation = function(bFireSearch) {
|
|
959
962
|
if (this._aFIChanges && (this._aFIChanges.length > 0)) {
|
|
960
963
|
|
|
961
964
|
var aNamePromisesArray = this._aFIChanges.slice();
|
|
@@ -974,22 +977,22 @@ sap.ui.define([
|
|
|
974
977
|
oFF.setValueState(ValueState.None); //valid existing value -> clear missing required error
|
|
975
978
|
}
|
|
976
979
|
}, this);
|
|
977
|
-
this._validate();
|
|
980
|
+
this._validate(bFireSearch);
|
|
978
981
|
}.bind(this), function(aConditionsArray) {
|
|
979
|
-
this._validate();
|
|
982
|
+
this._validate(bFireSearch);
|
|
980
983
|
}.bind(this));
|
|
981
984
|
}
|
|
982
985
|
};
|
|
983
986
|
|
|
984
|
-
FilterBarBase.prototype._waitForChangeAppliance = function() {
|
|
987
|
+
FilterBarBase.prototype._waitForChangeAppliance = function(bFireSearch) {
|
|
985
988
|
|
|
986
989
|
var aChangePromises = this._aCollectedChangePromises.slice();
|
|
987
990
|
this._aCollectedChangePromises = null;
|
|
988
991
|
|
|
989
992
|
Promise.all(aChangePromises).then(function(aConditionsArray) {
|
|
990
|
-
this._validate();
|
|
993
|
+
this._validate(bFireSearch);
|
|
991
994
|
}.bind(this), function(aConditionsArray) {
|
|
992
|
-
this._validate();
|
|
995
|
+
this._validate(bFireSearch);
|
|
993
996
|
}.bind(this));
|
|
994
997
|
};
|
|
995
998
|
|
|
@@ -997,9 +1000,15 @@ sap.ui.define([
|
|
|
997
1000
|
* Executes the search.
|
|
998
1001
|
* @private
|
|
999
1002
|
*/
|
|
1000
|
-
FilterBarBase.prototype._validate = function() {
|
|
1003
|
+
FilterBarBase.prototype._validate = function(bFireSearch) {
|
|
1001
1004
|
var sErrorMessage, vRetErrorState;
|
|
1002
1005
|
|
|
1006
|
+
var fnCheckAndFireSearch = function() {
|
|
1007
|
+
if (bFireSearch) {
|
|
1008
|
+
this.fireSearch();
|
|
1009
|
+
}
|
|
1010
|
+
}.bind(this);
|
|
1011
|
+
|
|
1003
1012
|
var fnCleanup = function() {
|
|
1004
1013
|
this._fRejectedSearchPromise = null;
|
|
1005
1014
|
this._fResolvedSearchPromise = null;
|
|
@@ -1014,18 +1023,27 @@ sap.ui.define([
|
|
|
1014
1023
|
vRetErrorState = this._checkFilters();
|
|
1015
1024
|
|
|
1016
1025
|
if (vRetErrorState === ErrorState.AsyncValidation) {
|
|
1017
|
-
this._handleAsyncValidation();
|
|
1026
|
+
this._handleAsyncValidation(bFireSearch);
|
|
1018
1027
|
return;
|
|
1019
1028
|
}
|
|
1020
1029
|
|
|
1021
1030
|
if (this._aCollectedChangePromises && (this._aCollectedChangePromises.length > 0)) {
|
|
1022
|
-
this._waitForChangeAppliance();
|
|
1031
|
+
this._waitForChangeAppliance(bFireSearch);
|
|
1023
1032
|
return;
|
|
1024
1033
|
}
|
|
1025
1034
|
|
|
1026
1035
|
if (vRetErrorState === ErrorState.NoError) {
|
|
1027
|
-
this.
|
|
1028
|
-
|
|
1036
|
+
if (this._isChangeApplying()) {
|
|
1037
|
+
this._oFlexPromise.then(function() {
|
|
1038
|
+
fnCheckAndFireSearch();
|
|
1039
|
+
this._fResolvedSearchPromise();
|
|
1040
|
+
fnCleanup();
|
|
1041
|
+
}.bind(this));
|
|
1042
|
+
} else {
|
|
1043
|
+
fnCheckAndFireSearch();
|
|
1044
|
+
this._fResolvedSearchPromise();
|
|
1045
|
+
fnCleanup();
|
|
1046
|
+
}
|
|
1029
1047
|
} else {
|
|
1030
1048
|
if (vRetErrorState === ErrorState.RequiredHasNoValue) {
|
|
1031
1049
|
sErrorMessage = this._oRb.getText("filterbar.REQUIRED_CONDITION_MISSING");
|
|
@@ -1052,8 +1070,9 @@ sap.ui.define([
|
|
|
1052
1070
|
|
|
1053
1071
|
/**
|
|
1054
1072
|
* Assigns conditions to the inner condition model.
|
|
1055
|
-
* This method is only called for filling the in parameters for value help scenarios.
|
|
1056
|
-
* @
|
|
1073
|
+
* <br><b>Note:</b>This method is only called for filling the in parameters for value help scenarios.
|
|
1074
|
+
* @private
|
|
1075
|
+
* @ui5-restricted sap.ui.mdc
|
|
1057
1076
|
* @param {map} mConditions A map containing the conditions
|
|
1058
1077
|
*/
|
|
1059
1078
|
FilterBarBase.prototype.setInternalConditions = function(mConditions) {
|
|
@@ -1064,9 +1083,9 @@ sap.ui.define([
|
|
|
1064
1083
|
};
|
|
1065
1084
|
|
|
1066
1085
|
/**
|
|
1067
|
-
* Returns the conditions of the inner condition model
|
|
1068
|
-
*
|
|
1069
|
-
* @
|
|
1086
|
+
* Returns the conditions of the inner condition model.
|
|
1087
|
+
* @private
|
|
1088
|
+
* @ui5-restricted sap.ui.mdc
|
|
1070
1089
|
* @returns {map} A map containing the conditions
|
|
1071
1090
|
*/
|
|
1072
1091
|
FilterBarBase.prototype.getInternalConditions = function() {
|
|
@@ -1503,7 +1522,7 @@ sap.ui.define([
|
|
|
1503
1522
|
|
|
1504
1523
|
FilterBarBase.prototype._cleanUpFilterFieldInErrorState = function(oFilterField) {
|
|
1505
1524
|
|
|
1506
|
-
if (oFilterField
|
|
1525
|
+
if (oFilterField && (oFilterField.getValueState() !== ValueState.None)) {
|
|
1507
1526
|
oFilterField.setValueState(ValueState.None);
|
|
1508
1527
|
}
|
|
1509
1528
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define(
|
|
|
33
33
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
34
34
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.97.0
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
39
39
|
* @since 1.84.0
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
'./ItemBaseFlex'
|
|
9
|
+
], function(ItemBaseFlex) {
|
|
10
|
+
"use strict";
|
|
11
|
+
|
|
12
|
+
var oActionFlex = Object.assign({}, ItemBaseFlex);
|
|
13
|
+
oActionFlex.findItem = function(oModifier, aActions, sName) {
|
|
14
|
+
return sap.ui.getCore().byId(sName);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
"moveControls": "default",
|
|
19
|
+
moveAction: oActionFlex.createMoveChangeHandler()
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
});
|