@openui5/sap.ui.mdc 1.113.0 → 1.115.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/README.md +22 -9
- 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 +5 -7
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +5 -5
- package/src/sap/ui/mdc/BaseDelegate.js +49 -14
- package/src/sap/ui/mdc/Chart.js +147 -179
- package/src/sap/ui/mdc/ChartDelegate.js +404 -514
- package/src/sap/ui/mdc/ChartRenderer.js +11 -11
- package/src/sap/ui/mdc/Control.js +4 -4
- package/src/sap/ui/mdc/DefaultTypeMap.js +84 -0
- package/src/sap/ui/mdc/Element.js +4 -4
- package/src/sap/ui/mdc/Field.js +98 -96
- package/src/sap/ui/mdc/FilterBar.js +33 -56
- package/src/sap/ui/mdc/FilterBarDelegate.js +36 -69
- package/src/sap/ui/mdc/FilterField.js +93 -47
- package/src/sap/ui/mdc/Link.js +83 -82
- package/src/sap/ui/mdc/LinkDelegate.js +29 -48
- package/src/sap/ui/mdc/MultiValueField.js +34 -30
- package/src/sap/ui/mdc/Table.js +182 -193
- package/src/sap/ui/mdc/TableDelegate.js +244 -33
- package/src/sap/ui/mdc/ValueHelp.js +67 -50
- package/src/sap/ui/mdc/ValueHelpDelegate.js +57 -89
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +4 -12
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +192 -197
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +10 -20
- package/src/sap/ui/mdc/chart/ChartToolbar.js +50 -50
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +23 -27
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +10 -10
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +14 -14
- package/src/sap/ui/mdc/chart/Item.js +30 -17
- package/src/sap/ui/mdc/chart/PropertyHelper.js +10 -10
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +23 -15
- package/src/sap/ui/mdc/condition/Condition.js +11 -23
- package/src/sap/ui/mdc/condition/ConditionConverter.js +8 -8
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +2 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +771 -123
- package/src/sap/ui/mdc/condition/Operator.js +52 -50
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +14 -14
- package/src/sap/ui/mdc/condition/RangeOperator.js +3 -5
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +2 -2
- package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +5 -9
- package/src/sap/ui/mdc/enum/BaseType.js +15 -20
- package/src/sap/ui/mdc/enum/ConditionValidated.js +5 -9
- package/src/sap/ui/mdc/enum/ContentMode.js +1 -0
- package/src/sap/ui/mdc/enum/EditMode.js +7 -19
- package/src/sap/ui/mdc/enum/FieldDisplay.js +12 -18
- package/src/sap/ui/mdc/enum/FilterBarValidationStatus.js +3 -1
- package/src/sap/ui/mdc/enum/LinkType.js +40 -0
- package/src/sap/ui/mdc/enum/OperatorOverwrite.js +4 -2
- package/src/sap/ui/mdc/enum/OperatorValueType.js +47 -0
- package/src/sap/ui/mdc/enum/PersistenceMode.js +36 -36
- package/src/sap/ui/mdc/enum/ProcessingStrategy.js +3 -1
- package/src/sap/ui/mdc/enum/PropagationReason.js +1 -1
- package/src/sap/ui/mdc/enum/ReasonMode.js +1 -0
- package/src/sap/ui/mdc/enum/SelectType.js +1 -0
- package/src/sap/ui/mdc/enums/ActionToolbarActionAlignment.js +31 -0
- package/src/sap/ui/mdc/enums/BaseType.js +72 -0
- package/src/sap/ui/mdc/enums/ChartItemRoleType.js +61 -0
- package/src/sap/ui/mdc/enums/ChartItemType.js +31 -0
- package/src/sap/ui/mdc/enums/ChartP13nMode.js +48 -0
- package/src/sap/ui/mdc/enums/ChartToolbarActionType.js +49 -0
- package/src/sap/ui/mdc/enums/ConditionValidated.js +43 -0
- package/src/sap/ui/mdc/enums/ContentMode.js +74 -0
- package/src/sap/ui/mdc/enums/FieldDisplay.js +49 -0
- package/src/sap/ui/mdc/enums/FieldEditMode.js +55 -0
- package/src/sap/ui/mdc/enums/FilterBarP13nMode.js +36 -0
- package/src/sap/ui/mdc/enums/FilterBarValidationStatus.js +56 -0
- package/src/sap/ui/mdc/enums/LinkType.js +38 -0
- package/src/sap/ui/mdc/enums/OperatorOverwrite.js +34 -0
- package/src/sap/ui/mdc/enums/OperatorValueType.js +44 -0
- package/src/sap/ui/mdc/enums/PersistenceMode.js +44 -0
- package/src/sap/ui/mdc/enums/ProcessingStrategy.js +39 -0
- package/src/sap/ui/mdc/enums/ReasonMode.js +53 -0
- package/src/sap/ui/mdc/enums/TableGrowingMode.js +42 -0
- package/src/sap/ui/mdc/enums/TableMultiSelectMode.js +35 -0
- package/src/sap/ui/mdc/enums/TableP13nMode.js +54 -0
- package/src/sap/ui/mdc/enums/TableRowAction.js +30 -0
- package/src/sap/ui/mdc/enums/TableRowCountMode.js +36 -0
- package/src/sap/ui/mdc/enums/TableSelectionMode.js +45 -0
- package/src/sap/ui/mdc/enums/TableType.js +43 -0
- package/src/sap/ui/mdc/enums/ValueHelpPropagationReason.js +41 -0
- package/src/sap/ui/mdc/enums/ValueHelpSelectionType.js +46 -0
- package/src/sap/ui/mdc/field/ConditionType.js +120 -88
- package/src/sap/ui/mdc/field/ConditionsType.js +149 -44
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +15 -17
- package/src/sap/ui/mdc/field/FieldBase.js +512 -323
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +31 -114
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +4 -4
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -21
- 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 +8 -29
- package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +2 -7
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +2 -6
- package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -1
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +0 -4
- package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
- package/src/sap/ui/mdc/field/content/ContentFactory.js +47 -35
- package/src/sap/ui/mdc/field/content/DateContent.js +49 -43
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +2 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +8 -8
- package/src/sap/ui/mdc/field/content/LinkContent.js +10 -6
- package/src/sap/ui/mdc/field/content/SearchContent.js +4 -4
- package/src/sap/ui/mdc/field/content/TimeContent.js +2 -2
- package/src/sap/ui/mdc/field/content/UnitContent.js +19 -11
- package/src/sap/ui/mdc/field/splitValue.js +45 -0
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +109 -218
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +22 -19
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +6 -7
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +2 -4
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +3 -7
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +52 -41
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -4
- package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +1 -3
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +4 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +14 -21
- package/src/sap/ui/mdc/filterbar/vh/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +2 -38
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +3 -3
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +11 -6
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +11 -2
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +25 -9
- package/src/sap/ui/mdc/flexibility/SortFlex.js +11 -1
- package/src/sap/ui/mdc/flexibility/Util.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +7 -4
- package/src/sap/ui/mdc/library.js +178 -84
- 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 +26 -5
- 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 +9 -0
- package/src/sap/ui/mdc/messagebundle_ar.properties +7 -1
- package/src/sap/ui/mdc/messagebundle_bg.properties +19 -13
- package/src/sap/ui/mdc/messagebundle_ca.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_cs.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_cy.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_da.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_de.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_el.properties +13 -7
- package/src/sap/ui/mdc/messagebundle_en.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_et.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_fi.properties +7 -1
- package/src/sap/ui/mdc/messagebundle_fr.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +10 -4
- package/src/sap/ui/mdc/messagebundle_hi.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_hr.properties +15 -9
- package/src/sap/ui/mdc/messagebundle_hu.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_it.properties +10 -4
- package/src/sap/ui/mdc/messagebundle_iw.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_ja.properties +14 -8
- package/src/sap/ui/mdc/messagebundle_kk.properties +16 -10
- package/src/sap/ui/mdc/messagebundle_ko.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_lt.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_lv.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_ms.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_nl.properties +7 -1
- package/src/sap/ui/mdc/messagebundle_no.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_pl.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_pt.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_ro.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_ru.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_sh.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_sk.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_sv.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_th.properties +19 -13
- package/src/sap/ui/mdc/messagebundle_tr.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_uk.properties +7 -1
- package/src/sap/ui/mdc/messagebundle_vi.properties +6 -0
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +7 -1
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +6 -0
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +33 -14
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +3 -5
- 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/TypeMap.js +155 -0
- package/src/sap/ui/mdc/odata/TypeUtil.js +42 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +17 -11
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +5 -50
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +156 -44
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +70 -0
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -1
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +8 -9
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +380 -390
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +6 -19
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +43 -34
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +3 -4
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +4 -6
- package/src/sap/ui/mdc/table/Column.js +45 -17
- package/src/sap/ui/mdc/table/ColumnSettings.js +2 -5
- package/src/sap/ui/mdc/table/CreationRow.js +4 -6
- package/src/sap/ui/mdc/table/GridTableType.js +31 -115
- package/src/sap/ui/mdc/table/PropertyHelper.js +56 -11
- package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +2 -5
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +13 -84
- package/src/sap/ui/mdc/table/RowActionItem.js +9 -14
- package/src/sap/ui/mdc/table/RowSettings.js +2 -5
- package/src/sap/ui/mdc/table/TableSettings.js +23 -19
- package/src/sap/ui/mdc/table/TableTypeBase.js +43 -15
- package/src/sap/ui/mdc/table/TreeTableType.js +12 -32
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -5
- package/src/sap/ui/mdc/table/menu/Item.js +1 -1
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +3 -3
- package/src/sap/ui/mdc/table/utils/Personalization.js +4 -4
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +6 -6
- package/src/sap/ui/mdc/util/DateUtil.js +15 -11
- package/src/sap/ui/mdc/util/FilterUtil.js +44 -19
- package/src/sap/ui/mdc/util/IdentifierUtil.js +0 -1
- package/src/sap/ui/mdc/util/InfoBar.js +1 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +15 -8
- package/src/sap/ui/mdc/util/TypeMap.js +377 -0
- package/src/sap/ui/mdc/util/TypeUtil.js +35 -2
- package/src/sap/ui/mdc/util/mapVersions.js +225 -0
- package/src/sap/ui/mdc/valuehelp/Dialog.js +52 -33
- package/src/sap/ui/mdc/valuehelp/Popover.js +33 -35
- package/src/sap/ui/mdc/valuehelp/base/Container.js +193 -62
- package/src/sap/ui/mdc/valuehelp/base/Content.js +134 -57
- package/src/sap/ui/mdc/{field → valuehelp/base}/DefineConditionPanel.js +426 -197
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -2
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +140 -47
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +11 -9
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +11 -20
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +26 -32
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +14 -17
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +60 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +194 -199
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -51
- package/test/sap/ui/mdc/testutils/opa/chart/AssertionsViz.js +4 -4
- package/test/sap/ui/mdc/testutils/opa/field/Actions.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +4 -2
- package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/table/Actions.js +41 -70
- package/test/sap/ui/mdc/testutils/opa/valueHelp/doWait.js +1 -1
- package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +0 -21
- package/src/sap/ui/mdc/util/FormatUtil.js +0 -82
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
'sap/ui/mdc/field/FieldBase',
|
|
8
8
|
'sap/ui/mdc/field/FieldBaseRenderer',
|
|
9
|
-
'sap/ui/mdc/
|
|
10
|
-
'sap/ui/mdc/
|
|
9
|
+
'sap/ui/mdc/enums/FieldDisplay',
|
|
10
|
+
'sap/ui/mdc/enums/BaseType',
|
|
11
11
|
'sap/base/util/deepEqual',
|
|
12
12
|
'sap/base/util/merge',
|
|
13
13
|
'sap/ui/model/BindingMode',
|
|
@@ -34,24 +34,33 @@ sap.ui.define([
|
|
|
34
34
|
*
|
|
35
35
|
* @class
|
|
36
36
|
* The <code>Field</code> control is used to bind its value to data of a certain data type. Based on the data type settings, a default
|
|
37
|
-
* control is rendered by the <code>Field</code
|
|
37
|
+
* control is rendered by the <code>Field</code> as follows:
|
|
38
|
+
*
|
|
39
|
+
* <ul>
|
|
40
|
+
* <li>In display mode, usually a {@link sap.m.Text Text} control is rendered.</li>
|
|
41
|
+
* <li>If <code>multipleLines</code> is set, an {@link sap.m.ExpandableText ExpandableText} control is rendered.</li>
|
|
42
|
+
* <li>If <code>fieldInfo</code> is set and it is configured to be triggerable, a {@link sap.m.Link Link} control is rendered.</li>
|
|
43
|
+
* <li>In edit mode, usually an {@link sap.m.Input Input} control is rendered.</li>
|
|
44
|
+
* <li>If <code>multipleLines</code> is set, a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
45
|
+
* <li>If a date type is used, a {@link sap.m.DatePicker DatePicker} control is rendered.</li>
|
|
46
|
+
* <li>If a date/time type is used, a {@link sap.m.DateTimePicker DateTimePicker} control is rendered.</li>
|
|
47
|
+
* <li>If a time type is used, a {@link sap.m.TimePicker TimePicker} control is rendered.</li>
|
|
48
|
+
* <li>If a currency or unit type is used, two {@link sap.m.Input Input} controls are rendered, one for number and one for unit.</li>
|
|
49
|
+
* </ul>
|
|
38
50
|
*
|
|
39
51
|
* @extends sap.ui.mdc.field.FieldBase
|
|
40
|
-
* @implements sap.ui.core.IFormContent
|
|
52
|
+
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
41
53
|
*
|
|
42
54
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
55
|
+
* @version 1.115.0
|
|
44
56
|
*
|
|
45
57
|
* @constructor
|
|
46
58
|
* @alias sap.ui.mdc.Field
|
|
47
|
-
* @
|
|
48
|
-
* @version 1.113.0
|
|
59
|
+
* @version 1.115.0
|
|
49
60
|
* @since 1.54.0
|
|
50
|
-
* @experimental As of version 1.54
|
|
51
61
|
*
|
|
52
|
-
* @
|
|
53
|
-
|
|
54
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
62
|
+
* @public
|
|
63
|
+
* @experimental As of version 1.54.0
|
|
55
64
|
*/
|
|
56
65
|
var Field = FieldBase.extend("sap.ui.mdc.Field", /* @lends sap.ui.mdc.Field.prototype */ {
|
|
57
66
|
metadata: {
|
|
@@ -94,7 +103,7 @@ sap.ui.define([
|
|
|
94
103
|
/**
|
|
95
104
|
* The new value of the <code>Field</code>.
|
|
96
105
|
*
|
|
97
|
-
* If a <code>
|
|
106
|
+
* If a <code>ValueHelp</code> is assigned to the <code>Field</code>, the <code>value</code> is used as key for the <code>ValueHelp</code> items.
|
|
98
107
|
*/
|
|
99
108
|
value: { type: "string" },
|
|
100
109
|
|
|
@@ -105,7 +114,7 @@ sap.ui.define([
|
|
|
105
114
|
|
|
106
115
|
/**
|
|
107
116
|
* Returns a <code>Promise</code> for the change. The <code>Promise</code> returns the value if it is resolved.
|
|
108
|
-
* If the <code>change</code> event is synchronous, the
|
|
117
|
+
* If the <code>change</code> event is synchronous, the <code>Promise</code> has already been already resolved. If it is asynchronous,
|
|
109
118
|
* it will be resolved after the value has been updated.
|
|
110
119
|
*
|
|
111
120
|
* The <code>Field</code> should be set to busy during the parsing to prevent user input.
|
|
@@ -130,6 +139,7 @@ sap.ui.define([
|
|
|
130
139
|
FieldBase.prototype.init.apply(this, arguments);
|
|
131
140
|
|
|
132
141
|
this.setMaxConditions(1);
|
|
142
|
+
this.setProperty("_operators", ["EQ"], true);
|
|
133
143
|
|
|
134
144
|
this._oObserver.observe(this, {
|
|
135
145
|
properties: ["value", "additionalValue"]
|
|
@@ -155,24 +165,24 @@ sap.ui.define([
|
|
|
155
165
|
|
|
156
166
|
if (sName === "value" && !oBindingInfo.formatter) { // not if a formatter is used, as this needs to be executed
|
|
157
167
|
oBindingInfo.targetType = "raw"; // provide internal value to inner control
|
|
158
|
-
var oDataType = this.
|
|
168
|
+
var oDataType = this.getContentFactory().getDataType();
|
|
159
169
|
if (oBindingInfo.type && (!oDataType ||
|
|
160
170
|
oDataType.getMetadata().getName() !== oBindingInfo.type.getMetadata().getName() ||
|
|
161
171
|
!deepEqual(oDataType.getFormatOptions(), oBindingInfo.type.getFormatOptions()) ||
|
|
162
172
|
!deepEqual(oDataType.getConstraints(), oBindingInfo.type.getConstraints()) ||
|
|
163
173
|
oDataType._bCreatedByOperator !== oBindingInfo.type._bCreatedByOperator)) {
|
|
164
|
-
this.
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
174
|
+
this.getContentFactory().setDataType(oBindingInfo.type);
|
|
175
|
+
this.getContentFactory().setDateOriginalType(undefined);
|
|
176
|
+
this.getContentFactory().setUnitOriginalType(undefined);
|
|
177
|
+
this.getContentFactory().setIsMeasure(false);
|
|
168
178
|
if (oBindingInfo.type.isA("sap.ui.model.CompositeType") && oBindingInfo.parts) {
|
|
169
179
|
var aTypes = [];
|
|
170
180
|
for (var i = 0; i < oBindingInfo.parts.length; i++) {
|
|
171
181
|
aTypes.push(oBindingInfo.parts[i].type);
|
|
172
182
|
}
|
|
173
|
-
this.
|
|
183
|
+
this.getContentFactory().setCompositeTypes(aTypes);
|
|
174
184
|
}
|
|
175
|
-
this.
|
|
185
|
+
this.getContentFactory().updateConditionType();
|
|
176
186
|
this.invalidate(); // as new inner control might be needed
|
|
177
187
|
}
|
|
178
188
|
}
|
|
@@ -181,9 +191,9 @@ sap.ui.define([
|
|
|
181
191
|
|
|
182
192
|
};
|
|
183
193
|
|
|
184
|
-
Field.prototype.
|
|
194
|
+
Field.prototype.handleModelContextChange = function(oEvent) {
|
|
185
195
|
|
|
186
|
-
FieldBase.prototype.
|
|
196
|
+
FieldBase.prototype.handleModelContextChange.apply(this, arguments);
|
|
187
197
|
|
|
188
198
|
var oBinding = this.getBinding("value");
|
|
189
199
|
if (oBinding) {
|
|
@@ -192,42 +202,42 @@ sap.ui.define([
|
|
|
192
202
|
if (Context.hasChanged(this._oBindingContext, oBindingContext)) {
|
|
193
203
|
// BindingContextChanged -> if parsing error trigger update to remove valueState and wrong input
|
|
194
204
|
this._oBindingContext = oBindingContext;
|
|
195
|
-
this.
|
|
196
|
-
if (this.
|
|
205
|
+
this.getContentFactory().updateConditionType();
|
|
206
|
+
if (this.isInvalidInput() || this._getValueHelp()) { // In ValueHelp case InParameters might need an update
|
|
197
207
|
if (this._oManagedObjectModel) {
|
|
198
208
|
this._oManagedObjectModel.checkUpdate(true, true); // async. to reduce updates
|
|
199
209
|
}
|
|
200
|
-
this.
|
|
210
|
+
this.resetInvalidInput();
|
|
201
211
|
}
|
|
202
212
|
}
|
|
203
213
|
|
|
204
|
-
if (!this.
|
|
205
|
-
this.
|
|
214
|
+
if (!this.getContentFactory().getDataType()) {
|
|
215
|
+
this.getContentFactory().setDataType(oBinding.getType());
|
|
206
216
|
this.invalidate(); // as new inner control might be needed
|
|
207
217
|
}
|
|
208
218
|
}
|
|
209
219
|
|
|
210
220
|
};
|
|
211
221
|
|
|
212
|
-
Field.prototype.
|
|
222
|
+
Field.prototype.initDataType = function() {
|
|
213
223
|
|
|
214
|
-
FieldBase.prototype.
|
|
224
|
+
FieldBase.prototype.initDataType.apply(this, arguments);
|
|
215
225
|
|
|
216
226
|
var oBinding = this.getBinding("value");
|
|
217
227
|
if (oBinding) {
|
|
218
|
-
this.
|
|
228
|
+
this.getContentFactory().setDataType(oBinding.getType());
|
|
219
229
|
}
|
|
220
230
|
|
|
221
231
|
};
|
|
222
232
|
|
|
223
233
|
Field.prototype.setProperty = function(sPropertyName, oValue, bSuppressInvalidate) {
|
|
224
234
|
|
|
225
|
-
if (sPropertyName === "value" && this.
|
|
235
|
+
if (sPropertyName === "value" && this.isInvalidInput() && deepEqual(this.getValue(), this.validateProperty(sPropertyName, oValue))) {
|
|
226
236
|
// in parse error and same value - no update on property - so remove error here
|
|
227
237
|
if (this._oManagedObjectModel) {
|
|
228
238
|
this._oManagedObjectModel.checkUpdate(true, true); // async. to reduce updates (additionalValue will follow)
|
|
229
239
|
}
|
|
230
|
-
this.
|
|
240
|
+
this.resetInvalidInput();
|
|
231
241
|
}
|
|
232
242
|
|
|
233
243
|
return FieldBase.prototype.setProperty.apply(this, arguments);
|
|
@@ -241,7 +251,6 @@ sap.ui.define([
|
|
|
241
251
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
242
252
|
* @private
|
|
243
253
|
* @ui5-restricted sap.fe
|
|
244
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
245
254
|
* @deprecated Not supported, this property is not supported for the <code>Field</code>.
|
|
246
255
|
* @ui5-not-supported
|
|
247
256
|
*/
|
|
@@ -255,9 +264,9 @@ sap.ui.define([
|
|
|
255
264
|
|
|
256
265
|
};
|
|
257
266
|
|
|
258
|
-
Field.prototype.
|
|
267
|
+
Field.prototype.observeChanges = function(oChanges) {
|
|
259
268
|
|
|
260
|
-
FieldBase.prototype.
|
|
269
|
+
FieldBase.prototype.observeChanges.apply(this, arguments);
|
|
261
270
|
|
|
262
271
|
if (oChanges.name === "value") {
|
|
263
272
|
var vValue = _adjustValue.call(this, oChanges.current, oChanges.old);
|
|
@@ -279,7 +288,7 @@ sap.ui.define([
|
|
|
279
288
|
if (oChanges.name === "conditions") {
|
|
280
289
|
// keep value/additionalValue and conditions in sync
|
|
281
290
|
// (value must be updated if conditions are changed in async parsing too, so not in change event)
|
|
282
|
-
if (this.
|
|
291
|
+
if (this.getCurrentContent().length <= 1) {
|
|
283
292
|
// in unit/currency field update value with change event to prevent update by navigating from number to unit
|
|
284
293
|
_updateValue.call(this, oChanges.current);
|
|
285
294
|
}
|
|
@@ -308,7 +317,7 @@ sap.ui.define([
|
|
|
308
317
|
if (!this.bDelegateInitialized) {
|
|
309
318
|
// wait until delegate is loaded
|
|
310
319
|
this.awaitControlDelegate().then(function() {
|
|
311
|
-
if (!this.
|
|
320
|
+
if (!this.isFieldDestroyed()) {
|
|
312
321
|
_triggerConditionUpdate.call(this);
|
|
313
322
|
}
|
|
314
323
|
}.bind(this));
|
|
@@ -333,7 +342,7 @@ sap.ui.define([
|
|
|
333
342
|
function _updateCondition(vValue, vAdditionalValue) {
|
|
334
343
|
|
|
335
344
|
var aConditions = this.getConditions();
|
|
336
|
-
if (this.
|
|
345
|
+
if (this.checkValueInitial(vValue) && !vAdditionalValue) {
|
|
337
346
|
// if empty -> no condition
|
|
338
347
|
if (aConditions.length > 0) {
|
|
339
348
|
this.setConditions([]);
|
|
@@ -344,8 +353,7 @@ sap.ui.define([
|
|
|
344
353
|
var sOldAdditionalValue = oCurrentCondition && oCurrentCondition.values[1] ? oCurrentCondition.values[1] : null; // to compare with default value
|
|
345
354
|
if (!oCurrentCondition || oCurrentCondition.operator !== "EQ" || !_compareValues.call(this, vOldValue, vValue) || sOldAdditionalValue !== vAdditionalValue) {
|
|
346
355
|
var oDelegate = this.getControlDelegate();
|
|
347
|
-
var
|
|
348
|
-
var oNextCondition = oDelegate.createCondition(oDelegatePayload, this, [vValue, vAdditionalValue], oCurrentCondition);
|
|
356
|
+
var oNextCondition = oDelegate.createCondition(this, this, [vValue, vAdditionalValue], oCurrentCondition);
|
|
349
357
|
if (!Condition.compareConditions(oCurrentCondition, oNextCondition)) { // We do a full comparison here as FilterOperatorUtils.compareConditions may ignore text changes
|
|
350
358
|
this.setConditions(oNextCondition ? [oNextCondition] : []);
|
|
351
359
|
}
|
|
@@ -356,7 +364,7 @@ sap.ui.define([
|
|
|
356
364
|
|
|
357
365
|
function _adjustValue(vValue, vOldValue) {
|
|
358
366
|
|
|
359
|
-
var sDataType = this.
|
|
367
|
+
var sDataType = this.getContentFactory().getDataType() ? this.getContentFactory().getDataType().getMetadata().getName() : this.getDataType(); // as type must not exist now
|
|
360
368
|
|
|
361
369
|
if (vValue && vOldValue && (sDataType === "sap.ui.model.odata.type.Unit" || sDataType === "sap.ui.model.odata.type.Currency")
|
|
362
370
|
&& !vValue[2] && vOldValue[2] !== undefined) {
|
|
@@ -388,9 +396,9 @@ sap.ui.define([
|
|
|
388
396
|
function _compareValues(vValue1, vValue2, bUpdateCheck) {
|
|
389
397
|
|
|
390
398
|
var bEqual = vValue1 === vValue2;
|
|
391
|
-
var sDataType = this.
|
|
399
|
+
var sDataType = this.getContentFactory().getDataType() ? this.getContentFactory().getDataType().getMetadata().getName() : this.getDataType(); // as type must not exist now
|
|
392
400
|
|
|
393
|
-
if (!bEqual && this.
|
|
401
|
+
if (!bEqual && this.getTypeMap().getBaseType(sDataType) === BaseType.Unit && Array.isArray(vValue1) && Array.isArray(vValue2)) {
|
|
394
402
|
// in unit type the unit table is in there setting the value but not after parsing
|
|
395
403
|
// units must be set at least once. so if not set compare too
|
|
396
404
|
var vNumber1 = vValue1[0];
|
|
@@ -415,11 +423,11 @@ sap.ui.define([
|
|
|
415
423
|
|
|
416
424
|
function _initializeType(vValue) {
|
|
417
425
|
|
|
418
|
-
if (!this.
|
|
426
|
+
if (!this._oTypeInitialization) {
|
|
419
427
|
if (!this.bDelegateInitialized) {
|
|
420
428
|
// wait until delegate is loaded
|
|
421
429
|
this.awaitControlDelegate().then(function() {
|
|
422
|
-
if (!this.
|
|
430
|
+
if (!this.isFieldDestroyed()) {
|
|
423
431
|
_initializeType.call(this, vValue);
|
|
424
432
|
}
|
|
425
433
|
}.bind(this));
|
|
@@ -427,31 +435,32 @@ sap.ui.define([
|
|
|
427
435
|
}
|
|
428
436
|
|
|
429
437
|
var oBinding = this.getBinding("value");
|
|
430
|
-
var oDataType = oBinding ? oBinding.getType() : this.
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
438
|
+
var oDataType = oBinding ? oBinding.getType() : this.getContentFactory().getDataType(); // use type from binding, not internal (might be a different one)
|
|
439
|
+
|
|
440
|
+
if (oDataType) {
|
|
441
|
+
this._oTypeInitialization = this.getTypeMap().initializeTypeFromValue(oDataType, vValue);
|
|
442
|
+
if (this._oTypeInitialization && this.getContentFactory().getUnitOriginalType()) {
|
|
443
|
+
this.getTypeMap().initializeInternalType(this.getContentFactory().getDataType(), this._oTypeInitialization);
|
|
444
|
+
this.getTypeMap().initializeInternalType(this.getContentFactory().getUnitType(), this._oTypeInitialization);
|
|
445
|
+
}
|
|
437
446
|
}
|
|
438
447
|
}
|
|
439
448
|
|
|
440
449
|
}
|
|
441
450
|
|
|
442
|
-
Field.prototype.
|
|
451
|
+
Field.prototype.fireChangeEvent = function(aConditions, bValid, vWrongValue, oPromise) {
|
|
443
452
|
|
|
444
453
|
var vValue;
|
|
445
454
|
|
|
446
455
|
if (aConditions) { // even if empty and error is returned, only in async case it is really empty
|
|
447
456
|
if (bValid) {
|
|
448
|
-
vValue = this.
|
|
457
|
+
vValue = this.getResultForChangePromise(aConditions);
|
|
449
458
|
} else {
|
|
450
459
|
vValue = vWrongValue;
|
|
451
460
|
}
|
|
452
461
|
}
|
|
453
462
|
|
|
454
|
-
if (this.
|
|
463
|
+
if (this.getCurrentContent().length > 1) {
|
|
455
464
|
// in unit/currency field update value with change event to prevent update by navigating from number to unit
|
|
456
465
|
if (aConditions) {
|
|
457
466
|
_updateValue.call(this, this.getConditions());
|
|
@@ -468,12 +477,12 @@ sap.ui.define([
|
|
|
468
477
|
|
|
469
478
|
};
|
|
470
479
|
|
|
471
|
-
Field.prototype.
|
|
480
|
+
Field.prototype.getResultForChangePromise = function(aConditions) {
|
|
472
481
|
|
|
473
482
|
var vValue;
|
|
474
|
-
if (aConditions.length === 0 && this.
|
|
483
|
+
if (aConditions.length === 0 && this.getContentFactory().getDataType()) {
|
|
475
484
|
// parse "" to get type specific initial value
|
|
476
|
-
vValue = this.
|
|
485
|
+
vValue = this.getContentFactory().getDataType().parseValue("", "string", []); // we need the empty array when the type is Unit
|
|
477
486
|
} else if (aConditions.length === 1) {
|
|
478
487
|
vValue = aConditions[0].values[0];
|
|
479
488
|
}
|
|
@@ -487,7 +496,7 @@ sap.ui.define([
|
|
|
487
496
|
if (!this.bDelegateInitialized) {
|
|
488
497
|
// wait until delegate is loaded
|
|
489
498
|
this.awaitControlDelegate().then(function() {
|
|
490
|
-
if (!this.
|
|
499
|
+
if (!this.isFieldDestroyed()) {
|
|
491
500
|
_updateValue.call(this, aConditions);
|
|
492
501
|
}
|
|
493
502
|
}.bind(this));
|
|
@@ -504,7 +513,7 @@ sap.ui.define([
|
|
|
504
513
|
return;
|
|
505
514
|
}
|
|
506
515
|
|
|
507
|
-
vValue = this.
|
|
516
|
+
vValue = this.getResultForChangePromise(aConditions);
|
|
508
517
|
if (aConditions.length === 0 && !vOldAdditionalValue) {
|
|
509
518
|
vAdditionalValue = vOldAdditionalValue; // to not update old initial value
|
|
510
519
|
} else if (aConditions.length === 1 && aConditions[0].values.length > 1) {
|
|
@@ -527,9 +536,9 @@ sap.ui.define([
|
|
|
527
536
|
|
|
528
537
|
}
|
|
529
538
|
|
|
530
|
-
Field.prototype.
|
|
539
|
+
Field.prototype.getSupportedOperators = function() {
|
|
531
540
|
|
|
532
|
-
return
|
|
541
|
+
return this.getProperty("_operators", []);
|
|
533
542
|
|
|
534
543
|
};
|
|
535
544
|
|
|
@@ -545,12 +554,12 @@ sap.ui.define([
|
|
|
545
554
|
|
|
546
555
|
}
|
|
547
556
|
|
|
548
|
-
Field.prototype.
|
|
557
|
+
Field.prototype.checkCreateInternalContent = function() {
|
|
549
558
|
|
|
550
|
-
if (!this.
|
|
559
|
+
if (!this.isFieldDestroyed() && this.getContentFactory().getDataType() && !this.isFieldPropertyInitial("editMode") && !this.isFieldPropertyInitial("multipleLines")) {
|
|
551
560
|
// If DataType is provided via Binding and EditMode is set the internal control can be created
|
|
552
561
|
// TODO: no control needed if just template for cloning
|
|
553
|
-
FieldBase.prototype.
|
|
562
|
+
FieldBase.prototype.checkCreateInternalContent.apply(this, arguments);
|
|
554
563
|
}
|
|
555
564
|
|
|
556
565
|
};
|
|
@@ -562,17 +571,22 @@ sap.ui.define([
|
|
|
562
571
|
return oConfig;
|
|
563
572
|
};
|
|
564
573
|
|
|
574
|
+
Field.prototype.isSearchField = function() {
|
|
575
|
+
|
|
576
|
+
return false; // Field cannot be a searchField (not supported for the moment)
|
|
577
|
+
|
|
578
|
+
};
|
|
579
|
+
|
|
565
580
|
/**
|
|
566
|
-
* Sets
|
|
581
|
+
* Sets a new value for property {@link #getConditions conditions}.
|
|
567
582
|
*
|
|
568
583
|
* Do not use the <code>conditions</code> property,
|
|
569
584
|
* use the <code>value</code> and <code>additionalValue</code> properties instead.
|
|
570
585
|
*
|
|
571
|
-
* @param {object[]} aConditions Conditions
|
|
586
|
+
* @param {object[]} aConditions Conditions that are set
|
|
572
587
|
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
573
588
|
* @private
|
|
574
589
|
* @ui5-restricted sap.fe
|
|
575
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
576
590
|
* @deprecated Not supported, use the <code>value</code> property and <code>additionalValue</code> property to bind the control.
|
|
577
591
|
* @ui5-not-supported
|
|
578
592
|
* @name sap.ui.mdc.Field#setConditions
|
|
@@ -580,15 +594,14 @@ sap.ui.define([
|
|
|
580
594
|
*/
|
|
581
595
|
|
|
582
596
|
/**
|
|
583
|
-
* Gets
|
|
597
|
+
* Gets current value of property {@link #getConditions conditions}.
|
|
584
598
|
*
|
|
585
599
|
* Do not use the <code>conditions</code> property,
|
|
586
600
|
* use the <code>value</code> and <code>additionalValue</code> properties instead.
|
|
587
601
|
*
|
|
588
|
-
* @returns {object[]}
|
|
602
|
+
* @returns {object[]} Conditions of the field
|
|
589
603
|
* @private
|
|
590
604
|
* @ui5-restricted sap.fe
|
|
591
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
592
605
|
* @deprecated Not supported, use the <code>value</code> property and <code>additionalValue</code> property to bind the control.
|
|
593
606
|
* @ui5-not-supported
|
|
594
607
|
* @name sap.ui.mdc.Field#getConditions
|
|
@@ -596,7 +609,7 @@ sap.ui.define([
|
|
|
596
609
|
*/
|
|
597
610
|
|
|
598
611
|
/**
|
|
599
|
-
* Binds property
|
|
612
|
+
* Binds property {@link #getConditions conditions} to model data.
|
|
600
613
|
*
|
|
601
614
|
* See {@link sap.ui.base.ManagedObject#bindProperty ManagedObject.bindProperty} for a detailed description of the possible properties of oBindingInfo
|
|
602
615
|
*
|
|
@@ -607,7 +620,6 @@ sap.ui.define([
|
|
|
607
620
|
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
608
621
|
* @private
|
|
609
622
|
* @ui5-restricted sap.fe
|
|
610
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
611
623
|
* @deprecated Not supported, use the <code>value</code> property and <code>additionalValue</code> property to bind the control.
|
|
612
624
|
* @ui5-not-supported
|
|
613
625
|
* @name sap.ui.mdc.Field#bindConditions
|
|
@@ -615,7 +627,7 @@ sap.ui.define([
|
|
|
615
627
|
*/
|
|
616
628
|
|
|
617
629
|
/**
|
|
618
|
-
* Unbinds property
|
|
630
|
+
* Unbinds property {@link #getConditions conditions} from model data.
|
|
619
631
|
*
|
|
620
632
|
* Do not use the <code>conditions</code> property,
|
|
621
633
|
* use the <code>value</code> and <code>additionalValue</code> properties instead.
|
|
@@ -623,7 +635,6 @@ sap.ui.define([
|
|
|
623
635
|
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
624
636
|
* @private
|
|
625
637
|
* @ui5-restricted sap.fe
|
|
626
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
627
638
|
* @deprecated Not supported, use the <code>value</code> property and <code>additionalValue</code> property to bind the control.
|
|
628
639
|
* @ui5-not-supported
|
|
629
640
|
* @name sap.ui.mdc.Field#unbindConditions
|
|
@@ -631,18 +642,17 @@ sap.ui.define([
|
|
|
631
642
|
*/
|
|
632
643
|
|
|
633
644
|
/**
|
|
634
|
-
* Sets a new value for property
|
|
645
|
+
* Sets a new value for property {@link #getDataType dataType}.
|
|
635
646
|
*
|
|
636
647
|
* The type of data handled by the field. The type is used to parse, format, and validate the value.
|
|
637
648
|
*
|
|
638
649
|
* <b>Note:</b> If the <code>value</code> property is bound to a model using a type, this type is used.
|
|
639
650
|
* In this case the value of the <code>dataType</code> property is ignored.
|
|
640
651
|
*
|
|
641
|
-
* @param {string} sDataType DataType
|
|
652
|
+
* @param {string} sDataType DataType that is set
|
|
642
653
|
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
643
654
|
* @private
|
|
644
655
|
* @ui5-restricted sap.fe
|
|
645
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
646
656
|
* @deprecated Not supported, the type in the binding to the <code>value</code> property is used.
|
|
647
657
|
* @ui5-not-supported
|
|
648
658
|
* @name sap.ui.mdc.Field#setDataType
|
|
@@ -650,18 +660,16 @@ sap.ui.define([
|
|
|
650
660
|
*/
|
|
651
661
|
|
|
652
662
|
/**
|
|
653
|
-
* Gets
|
|
663
|
+
* Gets current value of property {@link #getDataType dataType}.
|
|
654
664
|
*
|
|
655
665
|
* The type of data handled by the field. The type is used to parse, format, and validate the value.
|
|
656
666
|
*
|
|
657
667
|
* <b>Note:</b> If the <code>value</code> property is bound to a model using a type, this type is used.
|
|
658
668
|
* In this case the value of the <code>dataType</code> property is ignored.
|
|
659
669
|
*
|
|
660
|
-
* @
|
|
661
|
-
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
670
|
+
* @returns {this} Value of property <code>dataType</code>
|
|
662
671
|
* @private
|
|
663
672
|
* @ui5-restricted sap.fe
|
|
664
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
665
673
|
* @deprecated Not supported, the type in the binding to the <code>value</code> property is used.
|
|
666
674
|
* @ui5-not-supported
|
|
667
675
|
* @name sap.ui.mdc.Field#getDataType
|
|
@@ -669,18 +677,17 @@ sap.ui.define([
|
|
|
669
677
|
*/
|
|
670
678
|
|
|
671
679
|
/**
|
|
672
|
-
* Sets a new value for property
|
|
680
|
+
* Sets a new value for property {@link #getDataTypeConstraints dataTypeConstraints}.
|
|
673
681
|
*
|
|
674
682
|
* The constraints of the type specified in <code>dataType</code>.
|
|
675
683
|
*
|
|
676
684
|
* <b>Note:</b> If the <code>value</code> property is bound to a model using a type, this type is used.
|
|
677
685
|
* In this case the values of the <code>dataType</code> property and the <code>dataTypeConstraints</code> property are ignored.
|
|
678
686
|
*
|
|
679
|
-
* @param {string} oDataTypeConstraints Constraints
|
|
687
|
+
* @param {string} oDataTypeConstraints Constraints that are set
|
|
680
688
|
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
681
689
|
* @private
|
|
682
690
|
* @ui5-restricted sap.fe
|
|
683
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
684
691
|
* @deprecated Not supported, the <code>Constraints</code> of the type in the binding to the <code>value</code> property is used.
|
|
685
692
|
* @ui5-not-supported
|
|
686
693
|
* @name sap.ui.mdc.Field#setDataTypeConstraints
|
|
@@ -688,18 +695,16 @@ sap.ui.define([
|
|
|
688
695
|
*/
|
|
689
696
|
|
|
690
697
|
/**
|
|
691
|
-
* Gets
|
|
698
|
+
* Gets current value of property {@link #getDataTypeConstraints dataTypeConstraints}.
|
|
692
699
|
*
|
|
693
700
|
* The constraints of the type specified in <code>dataType</code>.
|
|
694
701
|
*
|
|
695
702
|
* <b>Note:</b> If the <code>value</code> property is bound to a model using a type, this type is used.
|
|
696
703
|
* In this case the values of the <code>dataType</code> property and the <code>dataTypeConstraints</code> property are ignored.
|
|
697
704
|
*
|
|
698
|
-
* @
|
|
699
|
-
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
705
|
+
* @returns {this} Value of property <code>dataTypeConstraints</code>
|
|
700
706
|
* @private
|
|
701
707
|
* @ui5-restricted sap.fe
|
|
702
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
703
708
|
* @deprecated Not supported, the <code>Constraints</code> of the type in the binding to the <code>value</code> property is used.
|
|
704
709
|
* @ui5-not-supported
|
|
705
710
|
* @name sap.ui.mdc.Field#getDataTypeConstraints
|
|
@@ -707,18 +712,17 @@ sap.ui.define([
|
|
|
707
712
|
*/
|
|
708
713
|
|
|
709
714
|
/**
|
|
710
|
-
* Sets a new value for property
|
|
715
|
+
* Sets a new value for property {@link #getDataTypeFormatOptions dataTypeFormatOptions}.
|
|
711
716
|
*
|
|
712
717
|
* The format options of the type specified in <code>dataType</code>.
|
|
713
718
|
*
|
|
714
719
|
* <b>Note:</b> If the <code>value</code> property is bound to a model using a type, this type is used.
|
|
715
720
|
* In this case the values of the <code>dataType</code> property and the <code>dataTypeFormatOptions</code> property are ignored.
|
|
716
721
|
*
|
|
717
|
-
* @param {string} oDataTypeFormatOptions Format options
|
|
722
|
+
* @param {string} oDataTypeFormatOptions Format options that are set
|
|
718
723
|
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
719
724
|
* @private
|
|
720
725
|
* @ui5-restricted sap.fe
|
|
721
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
722
726
|
* @deprecated Not supported, the <code>FormatOptions</code> of the type in the binding to the <code>value</code> property is used.
|
|
723
727
|
* @ui5-not-supported
|
|
724
728
|
* @name sap.ui.mdc.Field#setDataTypeFormatOptions
|
|
@@ -726,18 +730,16 @@ sap.ui.define([
|
|
|
726
730
|
*/
|
|
727
731
|
|
|
728
732
|
/**
|
|
729
|
-
* Gets
|
|
733
|
+
* Gets current value of property {@link #getDataTypeFormatOptions dataTypeFormatOptions}.
|
|
730
734
|
*
|
|
731
735
|
* The format options of the type specified in <code>dataType</code>.
|
|
732
736
|
*
|
|
733
737
|
* <b>Note:</b> If the <code>value</code> property is bound to a model using a type, this type is used.
|
|
734
738
|
* In this case the values of the <code>dataType</code> property and the <code>dataTypeFormatOptions</code> property are ignored.
|
|
735
739
|
*
|
|
736
|
-
* @
|
|
737
|
-
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
740
|
+
* @returns {this} Value of property <code>dataTypeFormatOptions</code>
|
|
738
741
|
* @private
|
|
739
742
|
* @ui5-restricted sap.fe
|
|
740
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
741
743
|
* @deprecated Not supported, the <code>FormatOptions</code> of the type in the binding to the <code>value</code> property is used.
|
|
742
744
|
* @ui5-not-supported
|
|
743
745
|
* @name sap.ui.mdc.Field#getDataTypeFormatOptions
|