@openui5/sap.ui.mdc 1.115.1 → 1.117.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 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +1 -1
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +8 -6
- package/src/sap/ui/mdc/BaseDelegate.js +5 -5
- package/src/sap/ui/mdc/Chart.js +9 -6
- package/src/sap/ui/mdc/ChartDelegate.js +2 -2
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/DefaultTypeMap.js +10 -10
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +54 -8
- package/src/sap/ui/mdc/FilterBar.js +4 -3
- package/src/sap/ui/mdc/FilterBarDelegate.js +21 -21
- package/src/sap/ui/mdc/FilterField.js +15 -13
- package/src/sap/ui/mdc/Link.js +4 -1
- package/src/sap/ui/mdc/MultiValueField.js +7 -7
- package/src/sap/ui/mdc/Table.js +79 -15
- package/src/sap/ui/mdc/TableDelegate.js +48 -18
- package/src/sap/ui/mdc/ValueHelp.js +11 -11
- package/src/sap/ui/mdc/ValueHelpDelegate.js +40 -40
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +2 -2
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSettings.js +3 -3
- package/src/sap/ui/mdc/chart/ChartToolbar.js +3 -3
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +9 -1
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +11 -2
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +8 -6
- package/src/sap/ui/mdc/condition/ConditionConverter.js +3 -3
- 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 +7 -8
- package/src/sap/ui/mdc/condition/Operator.js +2 -2
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +1 -1
- package/src/sap/ui/mdc/enum/BaseType.js +1 -1
- package/src/sap/ui/mdc/enum/ConditionValidated.js +1 -1
- package/src/sap/ui/mdc/enum/ContentMode.js +1 -1
- package/src/sap/ui/mdc/enum/EditMode.js +1 -1
- package/src/sap/ui/mdc/enum/FieldDisplay.js +1 -1
- package/src/sap/ui/mdc/enum/FilterBarValidationStatus.js +1 -1
- package/src/sap/ui/mdc/enum/LinkType.js +1 -1
- package/src/sap/ui/mdc/enum/OperatorOverwrite.js +1 -1
- package/src/sap/ui/mdc/enum/OperatorValueType.js +1 -1
- package/src/sap/ui/mdc/enum/ProcessingStrategy.js +1 -1
- package/src/sap/ui/mdc/enum/PropagationReason.js +1 -1
- package/src/sap/ui/mdc/enum/ReasonMode.js +1 -1
- package/src/sap/ui/mdc/enum/SelectType.js +1 -1
- package/src/sap/ui/mdc/enums/ActionToolbarActionAlignment.js +2 -0
- package/src/sap/ui/mdc/enums/ValueHelpPropagationReason.js +3 -6
- package/src/sap/ui/mdc/field/ConditionType.js +1 -1
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +180 -86
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +14 -14
- package/src/sap/ui/mdc/field/FieldInfoBase.js +2 -2
- 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/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
- package/src/sap/ui/mdc/field/content/DefaultContent.js +6 -0
- package/src/sap/ui/mdc/field/content/UnitContent.js +62 -10
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +41 -26
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +3 -3
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +4 -1
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +24 -3
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +11 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -18
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.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/library.js +43 -27
- 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/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 +7 -2
- package/src/sap/ui/mdc/messagebundle_ar.properties +30 -27
- package/src/sap/ui/mdc/messagebundle_bg.properties +55 -52
- package/src/sap/ui/mdc/messagebundle_ca.properties +21 -18
- package/src/sap/ui/mdc/messagebundle_cs.properties +42 -39
- package/src/sap/ui/mdc/messagebundle_cy.properties +13 -10
- package/src/sap/ui/mdc/messagebundle_da.properties +23 -20
- package/src/sap/ui/mdc/messagebundle_de.properties +16 -13
- package/src/sap/ui/mdc/messagebundle_el.properties +24 -21
- package/src/sap/ui/mdc/messagebundle_en.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +23 -20
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +10 -7
- package/src/sap/ui/mdc/messagebundle_et.properties +21 -18
- package/src/sap/ui/mdc/messagebundle_fi.properties +14 -11
- package/src/sap/ui/mdc/messagebundle_fr.properties +38 -35
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +13 -10
- package/src/sap/ui/mdc/messagebundle_hi.properties +29 -26
- package/src/sap/ui/mdc/messagebundle_hr.properties +53 -50
- package/src/sap/ui/mdc/messagebundle_hu.properties +27 -24
- package/src/sap/ui/mdc/messagebundle_id.properties +15 -12
- package/src/sap/ui/mdc/messagebundle_it.properties +35 -32
- package/src/sap/ui/mdc/messagebundle_iw.properties +24 -21
- package/src/sap/ui/mdc/messagebundle_ja.properties +25 -22
- package/src/sap/ui/mdc/messagebundle_kk.properties +12 -9
- package/src/sap/ui/mdc/messagebundle_ko.properties +16 -13
- package/src/sap/ui/mdc/messagebundle_lt.properties +11 -8
- package/src/sap/ui/mdc/messagebundle_lv.properties +13 -10
- package/src/sap/ui/mdc/messagebundle_ms.properties +22 -19
- package/src/sap/ui/mdc/messagebundle_nl.properties +33 -30
- package/src/sap/ui/mdc/messagebundle_no.properties +18 -15
- package/src/sap/ui/mdc/messagebundle_pl.properties +28 -25
- package/src/sap/ui/mdc/messagebundle_pt.properties +24 -21
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +10 -7
- package/src/sap/ui/mdc/messagebundle_ro.properties +20 -17
- package/src/sap/ui/mdc/messagebundle_ru.properties +19 -16
- package/src/sap/ui/mdc/messagebundle_sh.properties +7 -4
- package/src/sap/ui/mdc/messagebundle_sk.properties +17 -14
- package/src/sap/ui/mdc/messagebundle_sl.properties +53 -50
- package/src/sap/ui/mdc/messagebundle_sv.properties +18 -15
- package/src/sap/ui/mdc/messagebundle_th.properties +17 -14
- package/src/sap/ui/mdc/messagebundle_tr.properties +26 -23
- package/src/sap/ui/mdc/messagebundle_uk.properties +28 -25
- package/src/sap/ui/mdc/messagebundle_vi.properties +19 -16
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +12 -9
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +27 -24
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +8 -8
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +19 -7
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +2 -2
- package/src/sap/ui/mdc/odata/TypeMap.js +30 -30
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +51 -3
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +30 -30
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +65 -56
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +9 -0
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +14 -2
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +8 -2
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +2 -1
- package/src/sap/ui/mdc/table/ColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +3 -0
- package/src/sap/ui/mdc/table/PropertyHelper.js +4 -1
- package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
- package/src/sap/ui/mdc/table/RowSettings.js +3 -3
- package/src/sap/ui/mdc/table/TableTypeBase.js +3 -0
- package/src/sap/ui/mdc/table/TreeTableType.js +3 -0
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +7 -1
- package/src/sap/ui/mdc/table/menu/Item.js +1 -1
- package/src/sap/ui/mdc/table/utils/Personalization.js +2 -2
- package/src/sap/ui/mdc/themes/base/FilterBar.less +8 -0
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/InfoBar.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +22 -6
- package/src/sap/ui/mdc/util/TypeMap.js +38 -15
- package/src/sap/ui/mdc/util/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Popover.js +20 -10
- package/src/sap/ui/mdc/valuehelp/base/Container.js +58 -58
- package/src/sap/ui/mdc/valuehelp/base/Content.js +60 -60
- package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +5 -5
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +32 -34
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +5 -5
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +3 -3
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +5 -5
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +8 -7
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +5 -5
- package/test/sap/ui/mdc/testutils/opa/p13n/Assertions.js +4 -2
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +1 -1
- package/ui5.yaml +1 -1
- package/src/sap/ui/mdc/enum/PersistenceMode.js +0 -46
- package/src/sap/ui/mdc/enums/PersistenceMode.js +0 -44
package/.reuse/dep5
CHANGED
|
@@ -457,11 +457,6 @@ Comment: these files belong to: UI5 Web Components
|
|
|
457
457
|
|
|
458
458
|
# Outside of Libraries:
|
|
459
459
|
|
|
460
|
-
Files: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
461
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
462
|
-
License: Apache-2.0
|
|
463
|
-
Comment: these files belong to: LESS
|
|
464
|
-
|
|
465
460
|
Files: lib/jsdoc/ui5/plugin.js
|
|
466
461
|
Copyright:
|
|
467
462
|
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
package/THIRDPARTY.txt
CHANGED
|
@@ -460,19 +460,13 @@ Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/*.*
|
|
|
460
460
|
|
|
461
461
|
Outside of Libraries:
|
|
462
462
|
|
|
463
|
-
Component: LESS, version: 1.6.3
|
|
464
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
465
|
-
License: Apache-2.0
|
|
466
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
467
|
-
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
468
|
-
|
|
469
463
|
Component: JSDoc 3, version: 3.6.7
|
|
470
464
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
471
465
|
License: Apache-2.0
|
|
472
466
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
473
467
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
474
468
|
|
|
475
|
-
Component: SAP Theming Base Content, version: 11.
|
|
469
|
+
Component: SAP Theming Base Content, version: 11.4.2
|
|
476
470
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
477
471
|
License: Apache-2.0
|
|
478
472
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.mdc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.117.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.117.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.117.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.117.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-2023 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.117.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.mdc</documentation>
|
|
12
12
|
|
|
@@ -31,7 +31,7 @@ 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.117.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @since 1.58
|
|
37
37
|
* @public
|
|
@@ -23,9 +23,12 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
25
|
*
|
|
26
|
+
* @namespace
|
|
27
|
+
* @private
|
|
26
28
|
* @ui5-restricted sap.ui.mdc
|
|
27
29
|
* @since 1.82.0
|
|
28
|
-
* @alias sap
|
|
30
|
+
* @alias module:sap/ui/mdc/AggregationBaseDelegate
|
|
31
|
+
* @extends module:sap/ui/mdc/BaseDelegate
|
|
29
32
|
*/
|
|
30
33
|
var AggregationBaseDelegate = Object.assign({}, BaseDelegate, {
|
|
31
34
|
|
|
@@ -83,7 +86,7 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
83
86
|
/**
|
|
84
87
|
* A validator to evaluate the theoretical control state.
|
|
85
88
|
*
|
|
86
|
-
* @param {sap.ui.mdc.Control} oControl Instance of
|
|
89
|
+
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
87
90
|
* @param {Object} oState The theoretical external state representation of an MDC control. The representation of this format is similar as processed by {@link sap.ui.mdc.p13n.StateUtil StateUtil}
|
|
88
91
|
* @returns {Object} An object that must contain at least the <code>validation</code> attribute {@link sap.ui.core.MessageType MessageType}.
|
|
89
92
|
* If <code>warning</code> or <code>error</code> state types have been provided, the <code>message</code> is shown in addition.
|
|
@@ -111,18 +114,17 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
111
114
|
},
|
|
112
115
|
|
|
113
116
|
/**
|
|
114
|
-
* A validator to evaluate the state of
|
|
117
|
+
* A validator to evaluate the state of an MDC control.
|
|
115
118
|
*
|
|
116
|
-
* @param {
|
|
119
|
+
* @param {sap.ui.mdc.Control} oControl Instance of a MDC control
|
|
117
120
|
* @param {map} [mValidation] Object Describing the validation result
|
|
118
|
-
|
|
119
121
|
*/
|
|
120
122
|
determineValidationState: function(oControl) {
|
|
121
123
|
return oControl.checkValidationState ? oControl.checkValidationState() : -1;
|
|
122
124
|
},
|
|
123
125
|
|
|
124
126
|
/**
|
|
125
|
-
* Visualizes the validation state of
|
|
127
|
+
* Visualizes the validation state of an MDC control.
|
|
126
128
|
*
|
|
127
129
|
* @param {Object<sap.ui.mdc.Control>} oControl Instance of a MDC control
|
|
128
130
|
* @returns {map} mValidation Describes the validation result.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
// sap
|
|
9
|
+
// module:sap/ui/mdc/BaseDelegate
|
|
10
10
|
sap.ui.define(['sap/ui/mdc/enums/BaseType', 'sap/ui/mdc/DefaultTypeMap', "sap/base/Log"], function (BaseType, DefaultTypeMap, Log) {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ sap.ui.define(['sap/ui/mdc/enums/BaseType', 'sap/ui/mdc/DefaultTypeMap', "sap/ba
|
|
|
14
14
|
* Basic Delegate for {@link sap.ui.mdc.Control}, {@link sap.ui.mdc.Element}<br>
|
|
15
15
|
*
|
|
16
16
|
* All delegate implementations for MDC controls must be derived directly or indirectly from this entity.
|
|
17
|
-
* Applications should implement {@link sap
|
|
17
|
+
* Applications should implement {@link module:sap/ui/mdc/BaseDelegate.getTypeMap getTypeMap} to provide type mappings based on their model usage.
|
|
18
18
|
* Please also see the following extensible presets: {@link sap.ui.mdc.DefaultTypeMap}, {@link sap.ui.mdc.odata.TypeMap}, {@link sap.ui.mdc.odata.v4.TypeMap}
|
|
19
19
|
*
|
|
20
20
|
* @namespace
|
|
@@ -29,9 +29,9 @@ sap.ui.define(['sap/ui/mdc/enums/BaseType', 'sap/ui/mdc/DefaultTypeMap', "sap/ba
|
|
|
29
29
|
* Returns a TypeUtil for this delegate.
|
|
30
30
|
*
|
|
31
31
|
* @param {sap.ui.mdc.Control} oControl Delegate payload object
|
|
32
|
-
* @return {sap.ui.mdc.util.TypeUtil|sap
|
|
32
|
+
* @return {sap.ui.mdc.util.TypeUtil|module:sap/ui/mdc/util/TypeMap} configured TypeUtil/TypeMap
|
|
33
33
|
* @since 1.79.0
|
|
34
|
-
* @deprecated
|
|
34
|
+
* @deprecated since 1.115.0 - please see {@link #getTypeMap}
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
BaseDelegate.getTypeUtil = function (oControl) {
|
|
@@ -48,7 +48,7 @@ sap.ui.define(['sap/ui/mdc/enums/BaseType', 'sap/ui/mdc/DefaultTypeMap', "sap/ba
|
|
|
48
48
|
* Returns the typeutil configuration for this delegate.
|
|
49
49
|
*
|
|
50
50
|
* @param {sap.ui.mdc.Control} oControl Delegate payload object
|
|
51
|
-
* @return {sap
|
|
51
|
+
* @return {module:sap/ui/mdc/util/TypeMap} typeMap configuration for this delegate
|
|
52
52
|
* Note: The returned array will also serve as a key in the weakmap-based typeutil cache of BaseDelegate
|
|
53
53
|
* @since 1.114.0
|
|
54
54
|
* @public
|
package/src/sap/ui/mdc/Chart.js
CHANGED
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* <b>Note:</b> The inner chart needs to be assigned <code>ChartDelegate</code>.
|
|
68
68
|
* @extends sap.ui.mdc.Control
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.117.0
|
|
71
71
|
* @constructor
|
|
72
72
|
*
|
|
73
73
|
* @public
|
|
@@ -434,7 +434,7 @@ sap.ui.define([
|
|
|
434
434
|
* @property {string} [tooltip]
|
|
435
435
|
* The tooltip of the identifier
|
|
436
436
|
* @property {string} datatype
|
|
437
|
-
* The name of the type of the property
|
|
437
|
+
* The name of the data type of the property
|
|
438
438
|
* @property {object} [constraints]
|
|
439
439
|
* Defines constraints for the data type of the property
|
|
440
440
|
* @property {object} [formatOptions]
|
|
@@ -832,8 +832,11 @@ sap.ui.define([
|
|
|
832
832
|
|
|
833
833
|
/**
|
|
834
834
|
* Rebinds the inner chart instance by calling oDelegate.rebind
|
|
835
|
-
|
|
836
|
-
|
|
835
|
+
*
|
|
836
|
+
* @param {boolean} [bForceRefresh] Indicates that the binding must be refreshed regardless of any <code>bindingInfo</code> change
|
|
837
|
+
* @private
|
|
838
|
+
*/
|
|
839
|
+
Chart.prototype._rebind = function (bForceRefresh) {
|
|
837
840
|
|
|
838
841
|
if (!this._bInnerChartReady) {
|
|
839
842
|
//TODO: This can lead to a race conditition when the "Go" button is pressed while the inner chart still intializes
|
|
@@ -842,7 +845,7 @@ sap.ui.define([
|
|
|
842
845
|
|
|
843
846
|
//Wait with rebind until inner chart is ready
|
|
844
847
|
this.initialized().then(function () {
|
|
845
|
-
this._rebind();
|
|
848
|
+
this._rebind(bForceRefresh);
|
|
846
849
|
}.bind(this));
|
|
847
850
|
return;
|
|
848
851
|
}
|
|
@@ -874,7 +877,7 @@ sap.ui.define([
|
|
|
874
877
|
Chart.prototype._getToolbar = function () {
|
|
875
878
|
if (this.getAggregation("_toolbar")) {
|
|
876
879
|
return this.getAggregation("_toolbar");
|
|
877
|
-
} else {
|
|
880
|
+
} else if (!this._bIsDestroyed){
|
|
878
881
|
var oToolbar = new ChartToolbar(this.getId() + "--toolbar", {
|
|
879
882
|
design: "Transparent"
|
|
880
883
|
});
|
|
@@ -287,7 +287,7 @@ sap.ui.define([
|
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
290
|
+
* Chart <code>ChartTypeLayoutConfig</code> type.
|
|
291
291
|
*
|
|
292
292
|
* @typedef {object} sap.ui.mdc.chart.ChartTypeLayoutConfig
|
|
293
293
|
* @property {string} key identifier for the chart type
|
|
@@ -347,7 +347,7 @@ sap.ui.define([
|
|
|
347
347
|
/**
|
|
348
348
|
* Sets the chart type of the inner chart.
|
|
349
349
|
* This function is called by the chart when the <code>chartType</code> property is updated.
|
|
350
|
-
*
|
|
350
|
+
* <b>Note:</b> This function is called by the chart only. You must not call it directly but use {@link sap.ui.mdc.Chart#chartType chartType} instead.
|
|
351
351
|
*
|
|
352
352
|
* @param {string} sChartType New chart type
|
|
353
353
|
*
|
|
@@ -17,19 +17,19 @@ sap.ui.define([
|
|
|
17
17
|
* <b>Note:</b> This <code>TypeMap</code> implementation contains the following types:
|
|
18
18
|
*
|
|
19
19
|
* <ul>
|
|
20
|
-
* <li>sap.ui.model.type.Boolean (alias Boolean)</li>
|
|
21
|
-
* <li>sap.ui.model.type.Currency (alias Currency)</li>
|
|
22
|
-
* <li>sap.ui.model.type.Date (alias Date)</li>
|
|
23
|
-
* <li>sap.ui.model.type.DateTime (alias DateTime)</li>
|
|
24
|
-
* <li>sap.ui.model.type.Float (alias Float)</li>
|
|
25
|
-
* <li>sap.ui.model.type.Integer (alias Integer)</li>
|
|
26
|
-
* <li>sap.ui.model.type.String (alias String)</li>
|
|
27
|
-
* <li>sap.ui.model.type.Time (alias Time)</li>
|
|
28
|
-
* <li>sap.ui.model.type.Unit (alias Unit)</li>
|
|
20
|
+
* <li>{@link sap.ui.model.type.Boolean} (alias <code>Boolean</code>)</li>
|
|
21
|
+
* <li>{@link sap.ui.model.type.Currency} (alias <code>Currency</code>)</li>
|
|
22
|
+
* <li>{@link sap.ui.model.type.Date} (alias <code>Date</code>)</li>
|
|
23
|
+
* <li>{@link sap.ui.model.type.DateTime} (alias <code>DateTime</code>)</li>
|
|
24
|
+
* <li>{@link sap.ui.model.type.Float} (alias <code>Float</code>)</li>
|
|
25
|
+
* <li>{@link sap.ui.model.type.Integer} (alias <code>Integer</code>)</li>
|
|
26
|
+
* <li>{@link sap.ui.model.type.String} (alias <code>String</code>)</li>
|
|
27
|
+
* <li>{@link sap.ui.model.type.Time} (alias <code>Time</code>)</li>
|
|
28
|
+
* <li>{@link sap.ui.model.type.Unit} (alias <code>Unit</code>)</li>
|
|
29
29
|
* </ul>
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.117.0
|
|
33
33
|
* @public
|
|
34
34
|
* @since 1.114.0
|
|
35
35
|
* @namespace
|
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -52,11 +52,11 @@ sap.ui.define([
|
|
|
52
52
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
53
53
|
*
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.117.0
|
|
56
56
|
*
|
|
57
57
|
* @constructor
|
|
58
58
|
* @alias sap.ui.mdc.Field
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.117.0
|
|
60
60
|
* @since 1.54.0
|
|
61
61
|
*
|
|
62
62
|
* @public
|
|
@@ -142,7 +142,7 @@ sap.ui.define([
|
|
|
142
142
|
this.setProperty("_operators", ["EQ"], true);
|
|
143
143
|
|
|
144
144
|
this._oObserver.observe(this, {
|
|
145
|
-
properties: ["value", "additionalValue"]
|
|
145
|
+
properties: ["value", "additionalValue", "valueState"]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
148
|
};
|
|
@@ -285,6 +285,13 @@ sap.ui.define([
|
|
|
285
285
|
_triggerConditionUpdate.call(this);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
if (oChanges.name === "valueState") {
|
|
289
|
+
// if condition update is pending do not remove the value state later if set before from outside
|
|
290
|
+
if (this._bPendingConditionUpdate) {
|
|
291
|
+
this._bKeepValueState = true;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
288
295
|
if (oChanges.name === "conditions") {
|
|
289
296
|
// keep value/additionalValue and conditions in sync
|
|
290
297
|
// (value must be updated if conditions are changed in async parsing too, so not in change event)
|
|
@@ -321,6 +328,7 @@ sap.ui.define([
|
|
|
321
328
|
_triggerConditionUpdate.call(this);
|
|
322
329
|
}
|
|
323
330
|
}.bind(this));
|
|
331
|
+
this._bPendingConditionUpdate = true;
|
|
324
332
|
return;
|
|
325
333
|
}
|
|
326
334
|
|
|
@@ -332,7 +340,6 @@ sap.ui.define([
|
|
|
332
340
|
this._iConditionUpdateTimer = setTimeout(function() {
|
|
333
341
|
_updateCondition.call(this, _getValue.call(this), _getAdditionalValue.call(this));
|
|
334
342
|
this._iConditionUpdateTimer = undefined;
|
|
335
|
-
this._bPendingConditionUpdate = false;
|
|
336
343
|
}.bind(this), 0);
|
|
337
344
|
this._bPendingConditionUpdate = true;
|
|
338
345
|
}
|
|
@@ -350,8 +357,8 @@ sap.ui.define([
|
|
|
350
357
|
} else {
|
|
351
358
|
var oCurrentCondition = aConditions[0];
|
|
352
359
|
var vOldValue = oCurrentCondition && oCurrentCondition.values[0];
|
|
353
|
-
var
|
|
354
|
-
if (!oCurrentCondition || oCurrentCondition.operator !== "EQ" || !_compareValues.call(this, vOldValue, vValue) ||
|
|
360
|
+
var vOldAdditionalValue = oCurrentCondition && oCurrentCondition.values[1] ? oCurrentCondition.values[1] : null; // to compare with default value
|
|
361
|
+
if (!oCurrentCondition || oCurrentCondition.operator !== "EQ" || !_compareValues.call(this, vOldValue, vValue) || !_compareAdditionalValues.call(this, vAdditionalValue, vOldAdditionalValue)) {
|
|
355
362
|
var oDelegate = this.getControlDelegate();
|
|
356
363
|
var oNextCondition = oDelegate.createCondition(this, this, [vValue, vAdditionalValue], oCurrentCondition);
|
|
357
364
|
if (!Condition.compareConditions(oCurrentCondition, oNextCondition)) { // We do a full comparison here as FilterOperatorUtils.compareConditions may ignore text changes
|
|
@@ -360,6 +367,9 @@ sap.ui.define([
|
|
|
360
367
|
}
|
|
361
368
|
}
|
|
362
369
|
|
|
370
|
+
this._bPendingConditionUpdate = false;
|
|
371
|
+
this._bKeepValueState = false;
|
|
372
|
+
|
|
363
373
|
}
|
|
364
374
|
|
|
365
375
|
function _adjustValue(vValue, vOldValue) {
|
|
@@ -421,6 +431,22 @@ sap.ui.define([
|
|
|
421
431
|
|
|
422
432
|
}
|
|
423
433
|
|
|
434
|
+
function _compareAdditionalValues(vValue1, vValue2, bUpdateCheck) {
|
|
435
|
+
|
|
436
|
+
var bEqual = vValue1 === vValue2;
|
|
437
|
+
|
|
438
|
+
if (!bEqual && (vValue1 === null || vValue1 === undefined || vValue1 === "") && (vValue2 === null || vValue2 === undefined || vValue2 === "")) {
|
|
439
|
+
// in the moment there is no real data type support for additionalValue, normally only String types are used.
|
|
440
|
+
// As, depending on the data type configuration a "" can be converted into null or vice versa it needs to be handed both as initial.
|
|
441
|
+
// In case of wrong user input with disabled ValueHelp input validation no addtitionalValue is added at all, so if set to "" by model it is no change.
|
|
442
|
+
// TODO: This logic needs to be adopted if there is a real data type support like for value.
|
|
443
|
+
bEqual = true;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return bEqual;
|
|
447
|
+
|
|
448
|
+
}
|
|
449
|
+
|
|
424
450
|
function _initializeType(vValue) {
|
|
425
451
|
|
|
426
452
|
if (!this._oTypeInitialization) {
|
|
@@ -508,7 +534,7 @@ sap.ui.define([
|
|
|
508
534
|
var vOldValue = this.getValue();
|
|
509
535
|
var vOldAdditionalValue = this.getAdditionalValue();
|
|
510
536
|
|
|
511
|
-
if (aConditions.length === 0 && vOldValue
|
|
537
|
+
if (aConditions.length === 0 && _isValueNull(vOldValue) && _isValueNull(vOldAdditionalValue)) {
|
|
512
538
|
// Field initialized from setter -> cannot have a condition -> no update needed
|
|
513
539
|
return;
|
|
514
540
|
}
|
|
@@ -528,7 +554,7 @@ sap.ui.define([
|
|
|
528
554
|
// to run not in V4 update issues if data not already loaded
|
|
529
555
|
this.setProperty("value", vValue, true);
|
|
530
556
|
}
|
|
531
|
-
if (vAdditionalValue
|
|
557
|
+
if (!_compareAdditionalValues.call(this, vAdditionalValue, vOldAdditionalValue, true) && !_checkAdditionalValueOneWay.call(this)) {
|
|
532
558
|
// to run not in V4 update issues if data not already loaded
|
|
533
559
|
// do not update property in OneWay mode to keep in sync with model
|
|
534
560
|
this.setProperty("additionalValue", vAdditionalValue, true);
|
|
@@ -577,6 +603,26 @@ sap.ui.define([
|
|
|
577
603
|
|
|
578
604
|
};
|
|
579
605
|
|
|
606
|
+
function _isValueNull(vValue) {
|
|
607
|
+
|
|
608
|
+
var bNull = false;
|
|
609
|
+
|
|
610
|
+
if (vValue === null) {
|
|
611
|
+
bNull = true;
|
|
612
|
+
} else if (Array.isArray(vValue)) {
|
|
613
|
+
bNull = true;
|
|
614
|
+
for (var i = 0; i < vValue.length; i++) {
|
|
615
|
+
if (vValue[i] !== null) {
|
|
616
|
+
bNull = false;
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
return bNull;
|
|
623
|
+
|
|
624
|
+
}
|
|
625
|
+
|
|
580
626
|
/**
|
|
581
627
|
* Sets a new value for property {@link #getConditions conditions}.
|
|
582
628
|
*
|
|
@@ -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.117.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
27
27
|
* @since 1.61.0
|
|
@@ -213,9 +213,10 @@ sap.ui.define([
|
|
|
213
213
|
FilterBar.prototype.onAdaptFilters = function(oEvent) {
|
|
214
214
|
|
|
215
215
|
return this._retrieveMetadata().then(function() {
|
|
216
|
-
return this.getEngine().
|
|
216
|
+
return this.getEngine().show(this, "Item", {
|
|
217
217
|
reset: function(){
|
|
218
218
|
this.getEngine().reset(this);
|
|
219
|
+
this._getConditionModel().checkUpdate(true);
|
|
219
220
|
}.bind(this)
|
|
220
221
|
})
|
|
221
222
|
.then(function(oPopup){
|
|
@@ -228,7 +229,7 @@ sap.ui.define([
|
|
|
228
229
|
|
|
229
230
|
/**
|
|
230
231
|
* Returns the external conditions of the inner condition model.
|
|
231
|
-
* <b>Note:</b> This API returns only attributes related to the {@link sap.ui.mdc.FilterBar#p13nMode} property configuration.
|
|
232
|
+
* <b>Note:</b> This API returns only attributes related to the {@link sap.ui.mdc.FilterBar#setP13nMode p13nMode} property configuration.
|
|
232
233
|
* @public
|
|
233
234
|
* @returns {sap.ui.mdc.State} Object containing the current status of the <code>FilterBar</code>
|
|
234
235
|
*/
|
|
@@ -28,8 +28,8 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
28
28
|
* method might be called without the parameter <code>mPropertyBag</code>.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
31
32
|
* @param {string} sPropertyName The name of the property info object/JSON
|
|
32
|
-
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
33
33
|
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility change API
|
|
34
34
|
*
|
|
35
35
|
* @returns {Promise<sap.ui.mdc.FilterField>} <code>Promise</code> that resolves with an instance of the implementing {@link sap.ui.mdc.FilterField Control}.
|
|
@@ -38,8 +38,8 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
38
38
|
* has already been created, it must to either return the existing instance or create a new instance.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
-
FilterBarDelegate.addItem = function(
|
|
42
|
-
return AggregationBaseDelegate.addItem(
|
|
41
|
+
FilterBarDelegate.addItem = function(oFilterBar, sPropertyName, mPropertyBag) {
|
|
42
|
+
return AggregationBaseDelegate.addItem(oFilterBar, sPropertyName, mPropertyBag);
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -51,42 +51,42 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
51
51
|
* method can be called without the parameter <code>mPropertyBag</code>.
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
|
-
* @param {sap.ui.
|
|
55
|
-
* @param {sap.ui.mdc.
|
|
54
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
55
|
+
* @param {sap.ui.mdc.FilterField} oFilterField The filter field instance that was removed
|
|
56
56
|
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility
|
|
57
57
|
*
|
|
58
58
|
* @returns {Promise<boolean>} <code>Promise</code> that resolved with <code>true</code>, <code>false</code> to allow/prevent default behavior of the change
|
|
59
59
|
*/
|
|
60
|
-
FilterBarDelegate.removeItem = function(
|
|
60
|
+
FilterBarDelegate.removeItem = function(oFilterBar, oFilterField, mPropertyBag) {
|
|
61
61
|
// return true within the Promise for default behavior
|
|
62
|
-
return AggregationBaseDelegate.removeItem(
|
|
62
|
+
return AggregationBaseDelegate.removeItem(oFilterBar, oFilterField, mPropertyBag);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* This method is called during the appliance of the add condition change.
|
|
67
|
-
* The intention is to update the {@link sap.ui.mdc.
|
|
67
|
+
* The intention is to update the {@link sap.ui.mdc.FilterBarBase#setPropertyInfo propertyInfo} property.
|
|
68
68
|
*
|
|
69
69
|
* @public
|
|
70
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
70
71
|
* @param {string} sPropertyName The name of a property
|
|
71
|
-
* @param {sap.ui.mdc.Control} oControl The instance of a filter bar
|
|
72
72
|
* @param {Object} mPropertyBag Instance of a property bag from the SAPUI5 flexibility change API
|
|
73
73
|
* @returns {Promise} <code>Promise</code> that is resolved once the propertyInfo property has been updated
|
|
74
74
|
*/
|
|
75
|
-
FilterBarDelegate.addCondition = function(
|
|
75
|
+
FilterBarDelegate.addCondition = function(oFilterBar, sPropertyName, mPropertyBag) {
|
|
76
76
|
return Promise.resolve();
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/**
|
|
79
|
+
/** propertyInfo
|
|
80
80
|
* This method is called during the appliance of the remove condition change.
|
|
81
|
-
* The intention is to update the
|
|
81
|
+
* The intention is to update the {@link sap.ui.mdc.FilterBarBase#setPropertyInfo propertyInfo} property.
|
|
82
82
|
*
|
|
83
83
|
* @public
|
|
84
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
84
85
|
* @param {string} sPropertyName The name of a property
|
|
85
|
-
* @param {sap.ui.mdc.Control} oControl The instance of a filter bar
|
|
86
86
|
* @param {Object} mPropertyBag Instance of a property bag from the SAPUI5 flexibility change API
|
|
87
87
|
* @returns {Promise} <code>Promise</code> that is resolved once the propertyInfo property has been updated
|
|
88
88
|
*/
|
|
89
|
-
FilterBarDelegate.removeCondition = function(
|
|
89
|
+
FilterBarDelegate.removeCondition = function(oFilterBar, sPropertyName, mPropertyBag) {
|
|
90
90
|
return Promise.resolve();
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -95,21 +95,21 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
95
95
|
* Retrieves the relevant metadata for a given payload and returns the property info array.
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
98
|
-
* @param {sap.ui.mdc.
|
|
98
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
99
99
|
* @returns {Promise<sap.ui.mdc.filterbar.PropertyInfo[]>} Once resolved, an array of property info objects is returned
|
|
100
100
|
*/
|
|
101
|
-
FilterBarDelegate.fetchProperties = function(
|
|
102
|
-
return AggregationBaseDelegate.fetchProperties(
|
|
101
|
+
FilterBarDelegate.fetchProperties = function(oFilterBar) {
|
|
102
|
+
return AggregationBaseDelegate.fetchProperties(oFilterBar);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* This method is called when the Clear button is pressed.
|
|
107
107
|
*
|
|
108
108
|
* @public
|
|
109
|
-
* @param {sap.ui.mdc.
|
|
109
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
110
110
|
* @returns {Promise} <code>Promise</code> that is resolved once the action has been completed
|
|
111
111
|
*/
|
|
112
|
-
FilterBarDelegate.clearFilters = function(
|
|
112
|
+
FilterBarDelegate.clearFilters = function(oFilterBar) {
|
|
113
113
|
return Promise.resolve();
|
|
114
114
|
};
|
|
115
115
|
|
|
@@ -117,7 +117,7 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
117
117
|
* A validator to evaluate the filter bar state.
|
|
118
118
|
*
|
|
119
119
|
* @public
|
|
120
|
-
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of
|
|
120
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
121
121
|
* @param {map} [mValidation] Object describing the validation result. This object is only provided when called from the {@link sap.ui.mdc.FilterBar FilterBar}
|
|
122
122
|
* @param {string} [mValidation.status] Status of the validation {@link sap.ui.mdc.enums.FilterBarValidationStatus}
|
|
123
123
|
* @returns {sap.ui.mdc.enums.FilterBarValidationStatus} The inner filter bar state
|
|
@@ -130,7 +130,7 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
130
130
|
* Visualizes the filter bar validation state.
|
|
131
131
|
*
|
|
132
132
|
* @public
|
|
133
|
-
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of
|
|
133
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
134
134
|
* @param {map} mValidation Describes the validation result. This object is only provided when called from the {@link sap.ui.mdc.FilterBar FilterBar}
|
|
135
135
|
* @param {sap.ui.mdc.enums.FilterBarValidationStatus} mValidation.status Status of the validation as returned via {@link sap.ui.mdc.filterbar.FilterBarBase#checkValidationState checkValidationState}
|
|
136
136
|
*/
|
|
@@ -30,30 +30,32 @@ sap.ui.define([
|
|
|
30
30
|
* That is why the <code>conditions</code> property must be bound to the related conditions in the {@link sap.ui.mdc.condition.ConditionModel ConditionModel}.
|
|
31
31
|
* The type of this data must be defined in the <code>dataType</code> property.
|
|
32
32
|
*
|
|
33
|
+
* Based on the data type settings, a default control is rendered by the <code>FilterField</code> as follows:
|
|
34
|
+
*
|
|
33
35
|
* <ul>
|
|
34
|
-
* <li>In display mode
|
|
35
|
-
* <li>If <code>multipleLines</code> is set
|
|
36
|
-
* <li>If multiple values are allowed a {@link sap.m.Tokenizer Tokenizer} control is rendered.</li>
|
|
37
|
-
* <li>In edit mode
|
|
38
|
-
* <li>If multiple values are allowed a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
39
|
-
* <li>If <code>multipleLines</code> is set a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
40
|
-
* <li>If a date type or a date
|
|
36
|
+
* <li>In display mode, usually a {@link sap.m.Text Text} control is rendered.</li>
|
|
37
|
+
* <li>If <code>multipleLines</code> is set, an {@link sap.m.ExpandableText ExpandableText} control is rendered.</li>
|
|
38
|
+
* <li>If multiple values are allowed, a {@link sap.m.Tokenizer Tokenizer} control is rendered.</li>
|
|
39
|
+
* <li>In edit mode, usually an {@link sap.m.Input Input} control is rendered.</li>
|
|
40
|
+
* <li>If multiple values are allowed, a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
41
|
+
* <li>If <code>multipleLines</code> is set, a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
42
|
+
* <li>If a date type or a date/time type is used, a {@link sap.m.DateRangeSelection DateRangeSelection} control is rendered.</li>
|
|
41
43
|
* <li>If a date type is used and only single values are allowed, a {@link sap.m.DatePicker DatePicker} control is rendered.</li>
|
|
42
44
|
* <li>If a date type is used and only single ranges are allowed, a {@link sap.m.DateRangeSelection DateRangeSelection} control is rendered.</li>
|
|
43
|
-
* <li>If a date
|
|
45
|
+
* <li>If a date/time type is used and only single values are allowed, a {@link sap.m.DateTimePicker DateTimePicker} control is rendered.</li>
|
|
44
46
|
* <li>If a time type is used and only single values are allowed, a {@link sap.m.TimePicker TimePicker} control is rendered.</li>
|
|
45
|
-
* <li>If used for search a {@link sap.m.SearchField SearchField} control is rendered.</li>
|
|
47
|
+
* <li>If used for search, a {@link sap.m.SearchField SearchField} control is rendered.</li>
|
|
46
48
|
* </ul>
|
|
47
49
|
*
|
|
48
50
|
* @extends sap.ui.mdc.field.FieldBase
|
|
49
51
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
50
52
|
*
|
|
51
53
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
54
|
+
* @version 1.117.0
|
|
53
55
|
*
|
|
54
56
|
* @constructor
|
|
55
57
|
* @alias sap.ui.mdc.FilterField
|
|
56
|
-
* @version 1.
|
|
58
|
+
* @version 1.117.0
|
|
57
59
|
* @since 1.48.0
|
|
58
60
|
*
|
|
59
61
|
* @public
|
|
@@ -67,7 +69,7 @@ sap.ui.define([
|
|
|
67
69
|
/**
|
|
68
70
|
* Supported operator names for conditions.
|
|
69
71
|
*
|
|
70
|
-
* If empty, default operators depending on used data type are
|
|
72
|
+
* If empty, default operators depending on used data type are taken.
|
|
71
73
|
*
|
|
72
74
|
* @since 1.73.0
|
|
73
75
|
*/
|
|
@@ -129,7 +131,7 @@ sap.ui.define([
|
|
|
129
131
|
|
|
130
132
|
/**
|
|
131
133
|
* Returns a <code>Promise</code> for the change. The <code>Promise</code> returns the value if it is resolved.
|
|
132
|
-
* If the <code>change</code> event is synchronous, the
|
|
134
|
+
* If the <code>change</code> event is synchronous, the <code>Promise</code> has already been resolved. If it is asynchronous,
|
|
133
135
|
* it will be resolved after the value has been updated.
|
|
134
136
|
*
|
|
135
137
|
* The <code>FilterField</code> should be set to busy during the parsing to prevent user input.
|