@openui5/sap.ui.mdc 1.106.0 → 1.107.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/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +1 -2
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +12 -13
- package/src/sap/ui/mdc/Chart.js +46 -30
- package/src/sap/ui/mdc/ChartDelegate.js +24 -0
- package/src/sap/ui/mdc/ChartRenderer.js +1 -1
- 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 +16 -18
- package/src/sap/ui/mdc/FilterBar.js +1 -2
- package/src/sap/ui/mdc/FilterBarDelegate.js +90 -18
- package/src/sap/ui/mdc/FilterField.js +2 -2
- 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 +18 -16
- package/src/sap/ui/mdc/TableDelegate.js +10 -10
- package/src/sap/ui/mdc/ValueHelp.js +1 -3
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +4 -5
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +145 -10
- package/src/sap/ui/mdc/chart/ChartImplementationContainerRenderer.js +3 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +2 -3
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +3 -2
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +11 -5
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +20 -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 +79 -49
- package/src/sap/ui/mdc/condition/Operator.js +7 -6
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -2
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/enum/ProcessingStrategy.js +39 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/ConditionType.js +5 -4
- package/src/sap/ui/mdc/field/ConditionsType.js +7 -3
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +16 -11
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +31 -14
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +49 -29
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +40 -2
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -2
- package/src/sap/ui/mdc/field/FieldInput.js +1 -2
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -2
- package/src/sap/ui/mdc/field/FieldValueHelp.js +4 -4
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -2
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -2
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -2
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -2
- package/src/sap/ui/mdc/field/InParameter.js +1 -2
- package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -2
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -2
- package/src/sap/ui/mdc/field/OutParameter.js +1 -2
- package/src/sap/ui/mdc/field/TokenDisplay.js +1 -2
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -2
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/SearchContent.js +6 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +65 -73
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -2
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +0 -1
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +0 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +71 -26
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +0 -1
- package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +0 -1
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +0 -1
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +9 -8
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +28 -320
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +0 -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/library.js +3 -19
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -2
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -2
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -2
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -2
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -2
- package/src/sap/ui/mdc/link/Factory.js +1 -2
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -2
- package/src/sap/ui/mdc/link/LinkItem.js +1 -2
- package/src/sap/ui/mdc/link/Log.js +4 -4
- package/src/sap/ui/mdc/link/Panel.js +1 -2
- package/src/sap/ui/mdc/link/PanelItem.js +1 -2
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -2
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -2
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -2
- package/src/sap/ui/mdc/messagebundle.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_ar.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_bg.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_ca.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_cs.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_cy.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_da.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_de.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_el.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_en.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -3
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +7 -3
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_es.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_et.properties +11 -5
- package/src/sap/ui/mdc/messagebundle_fi.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_fr.properties +14 -8
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_hi.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_hu.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_id.properties +12 -6
- package/src/sap/ui/mdc/messagebundle_it.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_iw.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_kk.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_ko.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_lt.properties +10 -4
- package/src/sap/ui/mdc/messagebundle_lv.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_ms.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_nl.properties +10 -4
- package/src/sap/ui/mdc/messagebundle_no.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_pl.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_pt.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_ro.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_ru.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_sh.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_sk.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_sl.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_sv.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_th.properties +19 -13
- package/src/sap/ui/mdc/messagebundle_tr.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_uk.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_vi.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +10 -4
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +9 -3
- 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 +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +105 -21
- package/src/sap/ui/mdc/p13n/Engine.js +49 -41
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +4 -3
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +9 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +3 -3
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +191 -105
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +16 -11
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +25 -11
- package/src/sap/ui/mdc/table/Column.js +0 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -2
- package/src/sap/ui/mdc/table/GridTableType.js +0 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +1 -2
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +0 -1
- 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/TableSettings.js +15 -6
- package/src/sap/ui/mdc/table/TableTypeBase.js +0 -1
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -2
- package/src/sap/ui/mdc/table/menu/Item.js +9 -0
- package/src/sap/ui/mdc/table/menu/ItemContainer.js +2 -1
- package/src/sap/ui/mdc/themes/base/library.source.less +0 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +1 -2
- package/src/sap/ui/mdc/valuehelp/Dialog.js +6 -7
- package/src/sap/ui/mdc/valuehelp/Popover.js +3 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +5 -6
- package/src/sap/ui/mdc/valuehelp/base/Content.js +1 -2
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -2
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +19 -21
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -2
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -2
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +9 -2
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -2
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +16 -18
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +7 -15
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +10 -10
- package/test/sap/ui/mdc/testutils/opa/chart/AssertionsViz.js +30 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +1 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +83 -15
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +25 -2
- package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +4 -8
- package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +23 -11
- package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +1 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +4 -0
- package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +24 -0
- package/src/sap/ui/mdc/themes/base/CollectiveSearchSelect.less +0 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.mdc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.107.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.mdc",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.107.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.107.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.107.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/ui/mdc/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.107.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.mdc</documentation>
|
|
12
12
|
|
|
@@ -31,14 +31,13 @@ sap.ui.define([
|
|
|
31
31
|
* @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
|
|
32
32
|
* @extends sap.m.OverflowToolbar
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.107.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.58
|
|
38
38
|
* @experimental As of version 1.58
|
|
39
39
|
* @ui5-restricted sap.ui.mdc
|
|
40
40
|
* @alias sap.ui.mdc.ActionToolbar
|
|
41
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
42
41
|
*/
|
|
43
42
|
|
|
44
43
|
var ActionToolbar = OverflowToolbar.extend("sap.ui.mdc.ActionToolbar", {
|
|
@@ -32,8 +32,8 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
32
32
|
/**
|
|
33
33
|
* Retrieves the relevant metadata for a given payload and returns the property info array.
|
|
34
34
|
*
|
|
35
|
-
* @param {sap.ui.mdc.Control} oControl Instance of
|
|
36
|
-
* @returns {Promise<
|
|
35
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
36
|
+
* @returns {Promise<object[]>} Once resolved, an array of property info objects is returned
|
|
37
37
|
*/
|
|
38
38
|
fetchProperties: function(oControl) {
|
|
39
39
|
return Promise.resolve([]);
|
|
@@ -41,19 +41,19 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Creates an instance of the implementing MDC Control's default aggregation.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* during
|
|
44
|
+
*
|
|
45
|
+
* <b>Note:</b> The <code>addItem</code> hook can be used during the processing of an SAPUI5 flexibility change.
|
|
46
|
+
* Consequently the parameter <code>mPropertyBag</code> is only passed during preprocessing. In runtime scenarios (such as opening a personalization dialog), this
|
|
47
47
|
* method might be called without the parameter <code>mPropertyBag</code>.
|
|
48
48
|
*
|
|
49
49
|
* @param {string} sPropertyName The name of the property info object/JSON
|
|
50
|
-
* @param {sap.ui.mdc.Control} oControl Instance of
|
|
50
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
51
51
|
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility change API
|
|
52
52
|
*
|
|
53
53
|
* @returns {Promise} Promise that resolves with an instance of the implementing {@link sap.ui.mdc.Control Control} default aggregation.
|
|
54
54
|
* <b>Note:</b>
|
|
55
|
-
* This method always
|
|
56
|
-
* has already been created it is
|
|
55
|
+
* This method always requires a return value once it has been called. If an item for a given property <code>sPropertyName</code>
|
|
56
|
+
* has already been created, it is required to either return the existing instance or create a new instance.
|
|
57
57
|
*
|
|
58
58
|
* @public
|
|
59
59
|
*/
|
|
@@ -65,13 +65,12 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
65
65
|
* Triggers any necessary follow-up steps that need to be taken after the removal of created items via <code>removeItem</code>.
|
|
66
66
|
* The returned Boolean value inside the <code>Promise</code> can be used to prevent the default follow-up behavior of the SAPUI5 flexibility handling.
|
|
67
67
|
*
|
|
68
|
-
* <b>Note:</b>The <code>removeItem</code>
|
|
69
|
-
* Consequently the parameter <code>mPropertyBag</code> is only
|
|
70
|
-
*
|
|
71
|
-
* method can be called without the parameter <code>mPropertyBag</code>.
|
|
68
|
+
* <b>Note:</b> The <code>removeItem</code> hook can be used during the processing of an SAPUI5 flexibility change.
|
|
69
|
+
* Consequently the parameter <code>mPropertyBag</code> is only passed during preprocessing. In runtime scenarios (such as opening a personalization dialog), this
|
|
70
|
+
* method might be called without the parameter <code>mPropertyBag</code>.
|
|
72
71
|
*
|
|
73
72
|
* @param {sap.ui.core.Control} oItem The control instance that was removed
|
|
74
|
-
* @param {sap.ui.mdc.Control} oControl Instance of
|
|
73
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
75
74
|
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility
|
|
76
75
|
*
|
|
77
76
|
* @returns {Promise} Promise that resolves with <code>true</code>, <code>false</code> to allow/prevent default behavior of the change
|
package/src/sap/ui/mdc/Chart.js
CHANGED
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* @class The Chart control creates a chart based on metadata and the configuration specified.
|
|
64
64
|
* @extends sap.ui.mdc.Control
|
|
65
65
|
* @author SAP SE
|
|
66
|
-
* @version 1.
|
|
66
|
+
* @version 1.107.0
|
|
67
67
|
* @constructor
|
|
68
68
|
* @experimental As of version ...
|
|
69
69
|
* @private
|
|
@@ -302,6 +302,19 @@ sap.ui.define([
|
|
|
302
302
|
variant: {
|
|
303
303
|
type: "sap.ui.fl.variants.VariantManagement",
|
|
304
304
|
multiple: false
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* Defines the custom visualization if there is no data available.
|
|
308
|
+
* <b>Note:</b> If both a <code>noDataText</code> property and a <code>noData</code> aggregation are provided, the <code>noData</code> aggregation takes priority.
|
|
309
|
+
* If the <code>noData</code> aggregation is undefined or set to null, the <code>noDataText</code> property is used instead.
|
|
310
|
+
* @since 1.107
|
|
311
|
+
* @experimental
|
|
312
|
+
* @private
|
|
313
|
+
* @ui5-restricted sap.ui.mdc, sap-fe
|
|
314
|
+
*/
|
|
315
|
+
noData: {
|
|
316
|
+
type: "sap.ui.core.Control",
|
|
317
|
+
multiple: false
|
|
305
318
|
}
|
|
306
319
|
},
|
|
307
320
|
associations: {
|
|
@@ -347,19 +360,6 @@ sap.ui.define([
|
|
|
347
360
|
type: "sap.m.SelectionDetailsActionLevel"
|
|
348
361
|
}
|
|
349
362
|
}
|
|
350
|
-
},
|
|
351
|
-
/**
|
|
352
|
-
* This event is fired when a data load on the inner chart completes
|
|
353
|
-
*/
|
|
354
|
-
innerChartLoadedData: {
|
|
355
|
-
parameters: {
|
|
356
|
-
/**
|
|
357
|
-
* Reference to the inner chart
|
|
358
|
-
*/
|
|
359
|
-
innerChart: {
|
|
360
|
-
type: "sap.ui.core.Control"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
},
|
|
@@ -1041,6 +1041,30 @@ sap.ui.define([
|
|
|
1041
1041
|
return this;
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
1044
|
+
/**
|
|
1045
|
+
* Sets a new noData control for the chart.
|
|
1046
|
+
* This control will be displayed on top of the chart when no data is visible inside the chart.
|
|
1047
|
+
* @param {sap.ui.core.Control} oControl control to show
|
|
1048
|
+
* @returns {sap.ui.mdc.Chart} reference to <code>this</code> for method chaining
|
|
1049
|
+
*
|
|
1050
|
+
* @experimental
|
|
1051
|
+
* @private
|
|
1052
|
+
* @ui5-restricted Fiori Elements
|
|
1053
|
+
*/
|
|
1054
|
+
Chart.prototype.setNoData = function(oControl) {
|
|
1055
|
+
this.setAggregation("noData", oControl);
|
|
1056
|
+
|
|
1057
|
+
try {
|
|
1058
|
+
this.getControlDelegate().changedNoDataStruct(this);
|
|
1059
|
+
} catch (err) {
|
|
1060
|
+
//This fails when the delegate instance is not yet available.
|
|
1061
|
+
//It is not a problem as the delegate will use getNoData() on init of the chart, thus using the correct noData struct.
|
|
1062
|
+
//This error merely happens as the setter is calle don init of the MDC CHart from framework side.
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
return this;
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1044
1068
|
/**
|
|
1045
1069
|
* Gets the managed object model.
|
|
1046
1070
|
* @returns {sap.ui.model.base.ManagedObjectModel} the managed object model
|
|
@@ -1066,10 +1090,6 @@ sap.ui.define([
|
|
|
1066
1090
|
this._renderOverlay(false);
|
|
1067
1091
|
|
|
1068
1092
|
this.getControlDelegate().requestToolbarUpdate(this);
|
|
1069
|
-
|
|
1070
|
-
this.fireEvent("innerChartLoadedData ", {
|
|
1071
|
-
innerChart: this.getControlDelegate().getInnerChart(this)
|
|
1072
|
-
});
|
|
1073
1093
|
};
|
|
1074
1094
|
|
|
1075
1095
|
Chart.prototype._checkStyleClassesForDimensions = function() {
|
|
@@ -1216,7 +1236,7 @@ sap.ui.define([
|
|
|
1216
1236
|
};
|
|
1217
1237
|
|
|
1218
1238
|
/**
|
|
1219
|
-
* Adds/Removes the overlay shown above the inner chart
|
|
1239
|
+
* Adds/Removes the overlay shown above the inner chart.
|
|
1220
1240
|
* @param {boolean} bShow true to show overlay, false to hide
|
|
1221
1241
|
*
|
|
1222
1242
|
* @experimental
|
|
@@ -1224,17 +1244,13 @@ sap.ui.define([
|
|
|
1224
1244
|
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
1225
1245
|
*/
|
|
1226
1246
|
Chart.prototype._renderOverlay = function(bShow) {
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
} else if (!bShow) {
|
|
1235
|
-
$overlay.remove();
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1247
|
+
try {
|
|
1248
|
+
this.getControlDelegate().showOverlay(this, bShow);
|
|
1249
|
+
} catch (err) {
|
|
1250
|
+
//If this is called too early, no delegate is availabloe.
|
|
1251
|
+
//This should never happen!
|
|
1252
|
+
Log.error("sap.ui.mdc.Chart: Tried to render overlay on not initiailized chart. This will not work!");
|
|
1253
|
+
}
|
|
1238
1254
|
};
|
|
1239
1255
|
|
|
1240
1256
|
/**
|
|
@@ -352,6 +352,17 @@ sap.ui.define([
|
|
|
352
352
|
ChartDelegate.setChartType = function (sChartType) {
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
* This method is called to update invalidate the inner chart control to update the no data structure.
|
|
357
|
+
*
|
|
358
|
+
* @param {sap.ui.mdc.Chart} oMDCChart reference to the MDC Chart
|
|
359
|
+
*
|
|
360
|
+
* @experimental
|
|
361
|
+
* @private
|
|
362
|
+
*/
|
|
363
|
+
ChartDelegate.changedNoDataStruct = function(oMDCChart) {
|
|
364
|
+
};
|
|
365
|
+
|
|
355
366
|
/**
|
|
356
367
|
* Binds the inner chart to the back-end data and creates the inner chart content.
|
|
357
368
|
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
@@ -489,6 +500,19 @@ sap.ui.define([
|
|
|
489
500
|
* @ui5-restricted sap.ui.mdc
|
|
490
501
|
*/
|
|
491
502
|
ChartDelegate.fetchProperties = function (oMDCChart) {
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Adds/Removes the overlay shown above the inner chart.
|
|
507
|
+
* @param {sap.ui.mdc.Chart} oMDCChart reference to the chart
|
|
508
|
+
* @param {boolean} bShow <code>true</code> to show overlay, <code>false</code> to hide
|
|
509
|
+
*
|
|
510
|
+
* @experimental
|
|
511
|
+
* @private
|
|
512
|
+
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
513
|
+
*/
|
|
514
|
+
ChartDelegate.showOverlay = function(oMDCChart, bShow) {
|
|
515
|
+
|
|
492
516
|
};
|
|
493
517
|
|
|
494
518
|
return ChartDelegate;
|
|
@@ -32,7 +32,7 @@ sap.ui.define(['./library'],
|
|
|
32
32
|
*/
|
|
33
33
|
ChartRenderer.render = function(oRm, oMDCChart) {
|
|
34
34
|
oRm.openStart("div", oMDCChart);
|
|
35
|
-
//TODO: Clarify why
|
|
35
|
+
//TODO: Clarify why providing the control in openStart doesn't work on rerender
|
|
36
36
|
oRm.attr("id", oMDCChart.getId());
|
|
37
37
|
oRm.class(ChartRenderer.CSS_CLASS);
|
|
38
38
|
//oRm.class("sapUiFixFlex");
|
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -4,31 +4,27 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
'sap/ui/base/ManagedObjectObserver',
|
|
8
7
|
'sap/ui/mdc/field/FieldBase',
|
|
9
8
|
'sap/ui/mdc/field/FieldBaseRenderer',
|
|
10
9
|
'sap/ui/mdc/enum/FieldDisplay',
|
|
11
|
-
'sap/ui/mdc/condition/Condition',
|
|
12
10
|
'sap/ui/mdc/condition/FilterOperatorUtil',
|
|
13
11
|
'sap/ui/mdc/enum/BaseType',
|
|
14
|
-
'sap/ui/mdc/enum/ConditionValidated',
|
|
15
12
|
'sap/base/util/deepEqual',
|
|
16
13
|
'sap/base/util/merge',
|
|
17
14
|
'sap/ui/model/BindingMode',
|
|
18
|
-
'sap/ui/model/Context'
|
|
15
|
+
'sap/ui/model/Context',
|
|
16
|
+
'sap/ui/mdc/condition/Condition'
|
|
19
17
|
], function(
|
|
20
|
-
ManagedObjectObserver,
|
|
21
18
|
FieldBase,
|
|
22
19
|
FieldBaseRenderer,
|
|
23
20
|
FieldDisplay,
|
|
24
|
-
Condition,
|
|
25
21
|
FilterOperatorUtil,
|
|
26
22
|
BaseType,
|
|
27
|
-
ConditionValidated,
|
|
28
23
|
deepEqual,
|
|
29
24
|
merge,
|
|
30
25
|
BindingMode,
|
|
31
|
-
Context
|
|
26
|
+
Context,
|
|
27
|
+
Condition
|
|
32
28
|
) {
|
|
33
29
|
"use strict";
|
|
34
30
|
|
|
@@ -46,12 +42,12 @@ sap.ui.define([
|
|
|
46
42
|
* @implements sap.ui.core.IFormContent
|
|
47
43
|
*
|
|
48
44
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
45
|
+
* @version 1.107.0
|
|
50
46
|
*
|
|
51
47
|
* @constructor
|
|
52
48
|
* @alias sap.ui.mdc.Field
|
|
53
49
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
50
|
+
* @version 1.107.0
|
|
55
51
|
* @since 1.54.0
|
|
56
52
|
* @experimental As of version 1.54
|
|
57
53
|
*
|
|
@@ -340,14 +336,16 @@ sap.ui.define([
|
|
|
340
336
|
this.setConditions([]);
|
|
341
337
|
}
|
|
342
338
|
} else {
|
|
343
|
-
var
|
|
344
|
-
var
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
var
|
|
349
|
-
|
|
350
|
-
|
|
339
|
+
var oCurrentCondition = aConditions[0];
|
|
340
|
+
var vOldValue = oCurrentCondition && oCurrentCondition.values[0];
|
|
341
|
+
var sOldAdditionalValue = oCurrentCondition && oCurrentCondition.values[1] ? oCurrentCondition.values[1] : null; // to compare with default value
|
|
342
|
+
if (!oCurrentCondition || oCurrentCondition.operator !== "EQ" || !_compareValues.call(this, vOldValue, vValue) || sOldAdditionalValue !== vAdditionalValue) {
|
|
343
|
+
var oDelegate = this.getControlDelegate();
|
|
344
|
+
var oDelegatePayload = this.getPayload();
|
|
345
|
+
var oNextCondition = oDelegate.createCondition(oDelegatePayload, this, [vValue, vAdditionalValue], oCurrentCondition);
|
|
346
|
+
if (!Condition.compareConditions(oCurrentCondition, oNextCondition)) { // We do a full comparison here as FilterOperatorUtils.compareConditions may ignore text changes
|
|
347
|
+
this.setConditions(oNextCondition ? [oNextCondition] : []);
|
|
348
|
+
}
|
|
351
349
|
}
|
|
352
350
|
}
|
|
353
351
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
22
22
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.107.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @experimental As of version 1.61
|
|
27
27
|
* @private
|
|
@@ -29,7 +29,6 @@ sap.ui.define([
|
|
|
29
29
|
* @MDC_PUBLIC_CANDIDATE
|
|
30
30
|
* @since 1.61.0
|
|
31
31
|
* @alias sap.ui.mdc.FilterBar
|
|
32
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
33
32
|
*/
|
|
34
33
|
var FilterBar = FilterBarBase.extend("sap.ui.mdc.FilterBar", {
|
|
35
34
|
metadata: {
|
|
@@ -24,40 +24,112 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate"], function(AggregationBaseDe
|
|
|
24
24
|
*/
|
|
25
25
|
var FilterBarDelegate = Object.assign({}, AggregationBaseDelegate);
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Creates an instance of a filter field control.
|
|
29
|
+
* <b>Note:</b> The <code>addItem</code> hook can be used during the processing of an SAPUI5 flexibility change.
|
|
30
|
+
* Consequently the parameter <code>mPropertyBag</code> is only passed during preprocessing. In runtime scenarios (such as opening a personalization dialog), this
|
|
31
|
+
* method might be called without the parameter <code>mPropertyBag</code>.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} sPropertyName The name of the property info object/JSON
|
|
34
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
35
|
+
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility change API
|
|
36
|
+
*
|
|
37
|
+
* @returns {Promise} Promise that resolves with an instance of the implementing {@link sap.ui.mdc.FilterField Control}.
|
|
38
|
+
* <b>Note:</b>
|
|
39
|
+
* This method always requires a return value once it has been called. If an item for a given property <code>sPropertyName</code>
|
|
40
|
+
* has already been created, it is required to either return the existing instance or create a new instance.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
FilterBarDelegate.addItem = function(sPropertyName, oControl, mPropertyBag) {
|
|
45
|
+
return AggregationBaseDelegate.addItem(sPropertyName, oControl, mPropertyBag);
|
|
29
46
|
};
|
|
30
47
|
|
|
31
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Triggers any necessary follow-up steps that need to be taken after the removal of created items via <code>removeItem</code>.
|
|
50
|
+
* The returned Boolean value inside the <code>Promise</code> can be used to prevent the default follow-up behavior of the SAPUI5 flexibility handling.
|
|
51
|
+
*
|
|
52
|
+
* <b>Note:</b>The <code>removeItem</code> hook can be used during the processing of an SAPUI5 flexibility change.
|
|
53
|
+
* Consequently the parameter <code>mPropertyBag</code> is only passed during preprocessing. In runtime scenarios (such as opening a personalization dialog), this
|
|
54
|
+
* method can be called without the parameter <code>mPropertyBag</code>.
|
|
55
|
+
*
|
|
56
|
+
* @param {sap.ui.core.Control} oItem The control instance that was removed
|
|
57
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
58
|
+
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility
|
|
59
|
+
*
|
|
60
|
+
* @returns {Promise} Promise that resolved with <code>true</code>, <code>false</code> to allow/prevent default behavior of the change
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
FilterBarDelegate.removeItem = function(oItem, oControl, mPropertyBag) {
|
|
32
64
|
// return true within the Promise for default behavior
|
|
33
|
-
return
|
|
65
|
+
return AggregationBaseDelegate.removeItem(oItem, oControl, mPropertyBag);
|
|
34
66
|
};
|
|
35
67
|
|
|
36
68
|
/**
|
|
37
|
-
* This
|
|
38
|
-
*
|
|
69
|
+
* This method is called during the appliance of the add condition change.
|
|
70
|
+
* The intention is to update the propertyInfo property.
|
|
39
71
|
*
|
|
40
|
-
* @param {string} sPropertyName The name of a property
|
|
41
|
-
* @param {sap.ui.mdc.
|
|
42
|
-
* @param {Object} mPropertyBag Instance of property bag from
|
|
43
|
-
* @returns {Promise} Promise that
|
|
72
|
+
* @param {string} sPropertyName The name of a property
|
|
73
|
+
* @param {sap.ui.mdc.Control} oControl - The instance of a filter bar
|
|
74
|
+
* @param {Object} mPropertyBag Instance of a property bag from the SAPUI5 flexibility change API
|
|
75
|
+
* @returns {Promise} Promise that is resolved once the propertyInfo property has been updated
|
|
44
76
|
*/
|
|
45
|
-
FilterBarDelegate.addCondition = function(sPropertyName,
|
|
77
|
+
FilterBarDelegate.addCondition = function(sPropertyName, oControl, mPropertyBag) {
|
|
46
78
|
return Promise.resolve();
|
|
47
79
|
};
|
|
48
80
|
|
|
49
81
|
/**
|
|
50
|
-
* This
|
|
51
|
-
*
|
|
82
|
+
* This method is called during the appliance of the remove condition change.
|
|
83
|
+
* The intention is to update the propertyInfo property.
|
|
52
84
|
*
|
|
53
|
-
* @param {string} sPropertyName The name of a property
|
|
54
|
-
* @param {sap.ui.mdc.
|
|
55
|
-
* @param {Object} mPropertyBag Instance of property bag from
|
|
56
|
-
* @returns {Promise} Promise that
|
|
85
|
+
* @param {string} sPropertyName The name of a property
|
|
86
|
+
* @param {sap.ui.mdc.Control} oControl - The instance of a filter bar
|
|
87
|
+
* @param {Object} mPropertyBag Instance of a property bag from the SAPUI5 flexibility change API
|
|
88
|
+
* @returns {Promise} Promise that is resolved once the propertyInfo property has been updated
|
|
57
89
|
*/
|
|
58
|
-
FilterBarDelegate.removeCondition = function(sPropertyName,
|
|
90
|
+
FilterBarDelegate.removeCondition = function(sPropertyName, oControl, mPropertyBag) {
|
|
59
91
|
return Promise.resolve();
|
|
60
92
|
};
|
|
61
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves the relevant metadata for a given payload and returns the property info array.
|
|
96
|
+
*
|
|
97
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
98
|
+
* @returns {Promise<sap.ui.mdc.filterbar.PropertyInfo[]>} Once resolved, an array of property info objects is returned
|
|
99
|
+
*
|
|
100
|
+
* @typedef {sap.ui.mdc.filterbar.PropertyInfo} sap.ui.mdc.filterbar.PropertyInfo
|
|
101
|
+
*
|
|
102
|
+
* @property {string} path
|
|
103
|
+
* The identifier of the property
|
|
104
|
+
* @property {string} label
|
|
105
|
+
* The label of the identifier
|
|
106
|
+
* @property {string} [tooltip]
|
|
107
|
+
* The tooltip of the identifier
|
|
108
|
+
* @property {string} datatype
|
|
109
|
+
* The name of the type of the property
|
|
110
|
+
* @property {object} [constraints]
|
|
111
|
+
* Defines constraints for the data type of the property
|
|
112
|
+
* @property {object} [formatOptions]
|
|
113
|
+
* Defines format options for the data type of the property
|
|
114
|
+
* @property {string} group
|
|
115
|
+
* The group identifier to which the property belongs
|
|
116
|
+
* @property {string} groupLabel
|
|
117
|
+
* The group name of the group identifier
|
|
118
|
+
* @property {boolean} [caseSensitive = false]
|
|
119
|
+
* If <code>true</code> defines that the filter value will be treated as case-sensitive
|
|
120
|
+
* @property {sap.ui.mdc.enum.FieldDisplay} [display]
|
|
121
|
+
* Describes how the value will be presented to the user
|
|
122
|
+
* @property {boolean} [hiddenFilter = false]
|
|
123
|
+
* Defines if the filter will be visible on the filter bar
|
|
124
|
+
* @property {boolean} [required = false]
|
|
125
|
+
* Defines if the filter is mandatory
|
|
126
|
+
* @property {int} maxConditions
|
|
127
|
+
* Defines if the filter supports multiple values <code>-1</code> or single values <code>1</code>
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
FilterBarDelegate.fetchProperties = function(oControl) {
|
|
131
|
+
return AggregationBaseDelegate.fetchProperties(oControl);
|
|
132
|
+
};
|
|
133
|
+
|
|
62
134
|
return FilterBarDelegate;
|
|
63
135
|
});
|
|
@@ -33,12 +33,12 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.mdc.field.FieldBase
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.107.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @alias sap.ui.mdc.FilterField
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.107.0
|
|
42
42
|
* @since 1.48.0
|
|
43
43
|
*
|
|
44
44
|
* @experimental As of version 1.48
|
package/src/sap/ui/mdc/Link.js
CHANGED
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -132,7 +132,6 @@ sap.ui.define([
|
|
|
132
132
|
* @experimental
|
|
133
133
|
* @since 1.58
|
|
134
134
|
* @alias sap.ui.mdc.Table
|
|
135
|
-
* @ui5-metamodel This control will also be described in the UI5 (legacy) designtime metamodel
|
|
136
135
|
* @ui5-restricted sap.fe
|
|
137
136
|
* MDC_PUBLIC_CANDIDATE
|
|
138
137
|
*/
|
|
@@ -2105,6 +2104,7 @@ sap.ui.define([
|
|
|
2105
2104
|
});
|
|
2106
2105
|
}
|
|
2107
2106
|
this._oQuickActionContainer.setAssociation("column", oMDCColumn);
|
|
2107
|
+
this._oItemContainer.setAssociation("column", oMDCColumn);
|
|
2108
2108
|
|
|
2109
2109
|
Promise.all([
|
|
2110
2110
|
this._oQuickActionContainer.initializeQuickActions(),
|
|
@@ -2158,22 +2158,15 @@ sap.ui.define([
|
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
|
-
var aFilterable = [];
|
|
2162
2161
|
var oDelegate = this.getControlDelegate();
|
|
2163
2162
|
var aHeaderItems = (oDelegate.addColumnMenuItems && oDelegate.addColumnMenuItems(this, oMDCColumn)) || [];
|
|
2163
|
+
var aFilterableProperties = this.getPropertyHelper().getProperty(oMDCColumn.getDataProperty()).getFilterableProperties();
|
|
2164
2164
|
|
|
2165
|
-
this.
|
|
2166
|
-
aFilterable.push(new Item({
|
|
2167
|
-
text: oProperty.label,
|
|
2168
|
-
key: oProperty.name
|
|
2169
|
-
}));
|
|
2170
|
-
});
|
|
2171
|
-
|
|
2172
|
-
if (this.isFilteringEnabled() && aFilterable.length) {
|
|
2165
|
+
if (this.isFilteringEnabled() && aFilterableProperties.length > 0) {
|
|
2173
2166
|
var oFilter = new ColumnPopoverSelectListItem({
|
|
2174
2167
|
label: oResourceBundle.getText("table.SETTINGS_FILTER"),
|
|
2175
2168
|
icon: "sap-icon://filter",
|
|
2176
|
-
action: [onShowFilterDialog, this]
|
|
2169
|
+
action: [aFilterableProperties, onShowFilterDialog, this]
|
|
2177
2170
|
});
|
|
2178
2171
|
aHeaderItems.unshift(oFilter);
|
|
2179
2172
|
}
|
|
@@ -2554,8 +2547,7 @@ sap.ui.define([
|
|
|
2554
2547
|
*/
|
|
2555
2548
|
Table.prototype._onDataReceived = function() {
|
|
2556
2549
|
this._bIgnoreChange = false;
|
|
2557
|
-
this.
|
|
2558
|
-
this._updateExportState();
|
|
2550
|
+
this._updateTableHeaderState();
|
|
2559
2551
|
};
|
|
2560
2552
|
|
|
2561
2553
|
/**
|
|
@@ -2569,7 +2561,17 @@ sap.ui.define([
|
|
|
2569
2561
|
if (this._bIgnoreChange) {
|
|
2570
2562
|
return;
|
|
2571
2563
|
}
|
|
2564
|
+
this._updateTableHeaderState();
|
|
2565
|
+
};
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* Updates the table header states, like the header text and the export button.
|
|
2569
|
+
*
|
|
2570
|
+
* @private
|
|
2571
|
+
*/
|
|
2572
|
+
Table.prototype._updateTableHeaderState = function() {
|
|
2572
2573
|
this._updateHeaderText();
|
|
2574
|
+
this._updateExportState();
|
|
2573
2575
|
};
|
|
2574
2576
|
|
|
2575
2577
|
Table.prototype._updateHeaderText = function() {
|
|
@@ -2745,11 +2747,11 @@ sap.ui.define([
|
|
|
2745
2747
|
};
|
|
2746
2748
|
|
|
2747
2749
|
function onShowSettingsDialog(oEvent) {
|
|
2748
|
-
TableSettings.showPanel(this, "Columns"
|
|
2750
|
+
TableSettings.showPanel(this, "Columns");
|
|
2749
2751
|
}
|
|
2750
2752
|
|
|
2751
|
-
function onShowFilterDialog(oEvent) {
|
|
2752
|
-
TableSettings.showPanel(this, "Filter",
|
|
2753
|
+
function onShowFilterDialog(oEvent, aFilterableProperties) {
|
|
2754
|
+
TableSettings.showPanel(this, "Filter", aFilterableProperties);
|
|
2753
2755
|
}
|
|
2754
2756
|
|
|
2755
2757
|
// TODO: move to a base util that can be used by most aggregations
|