@openui5/sap.ui.mdc 1.93.0 → 1.93.4

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.
Files changed (95) hide show
  1. package/.reuse/dep5 +5 -0
  2. package/THIRDPARTY.txt +10 -1
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +1 -1
  6. package/src/sap/ui/mdc/Chart.js +1 -1
  7. package/src/sap/ui/mdc/ChartNew.js +1 -1
  8. package/src/sap/ui/mdc/Control.js +1 -1
  9. package/src/sap/ui/mdc/Element.js +1 -1
  10. package/src/sap/ui/mdc/Field.js +2 -2
  11. package/src/sap/ui/mdc/FilterBar.js +1 -1
  12. package/src/sap/ui/mdc/FilterField.js +2 -2
  13. package/src/sap/ui/mdc/Link.js +1 -1
  14. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  15. package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
  16. package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +1 -1
  17. package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
  18. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  19. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  20. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  21. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  22. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
  23. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  24. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  25. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  26. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  27. package/src/sap/ui/mdc/field/ConditionType.js +43 -26
  28. package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
  29. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  30. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  31. package/src/sap/ui/mdc/field/DefineConditionPanel.js +1 -1
  32. package/src/sap/ui/mdc/field/FieldBase.js +4 -2
  33. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
  34. package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
  35. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  36. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  37. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  38. package/src/sap/ui/mdc/field/FieldValueHelp.js +44 -28
  39. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  40. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  41. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +52 -34
  42. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +7 -9
  43. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -1
  44. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  45. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  46. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  47. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  48. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  49. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  50. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +26 -5
  51. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +51 -26
  52. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  53. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  54. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  55. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  56. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +21 -13
  57. package/src/sap/ui/mdc/library.js +2 -2
  58. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  59. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  60. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  61. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  62. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  63. package/src/sap/ui/mdc/link/Factory.js +1 -1
  64. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  65. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  66. package/src/sap/ui/mdc/link/Panel.js +1 -1
  67. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  68. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  69. package/src/sap/ui/mdc/link/SelectionDialog.js +1 -1
  70. package/src/sap/ui/mdc/link/SelectionDialogItem.js +1 -1
  71. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  72. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  73. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  74. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  75. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  76. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  77. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
  78. package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
  79. package/src/sap/ui/mdc/p13n/Engine.js +1 -1
  80. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  81. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  82. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +1 -1
  83. package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
  84. package/src/sap/ui/mdc/p13n/panels/ListView.js +1 -1
  85. package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +1 -1
  86. package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +1 -1
  87. package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
  88. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  89. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  90. package/src/sap/ui/mdc/table/PropertyHelper.js +1 -1
  91. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  92. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  93. package/src/sap/ui/mdc/ui/Container.js +2 -2
  94. package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
  95. package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
package/.reuse/dep5 CHANGED
@@ -464,3 +464,8 @@ Copyright:
464
464
  License: Apache-2.0
465
465
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
466
466
 
467
+ Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
468
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
469
+ License: Apache-2.0
470
+ Comment: these files belong to: SAP Theming Base Content
471
+
package/THIRDPARTY.txt CHANGED
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.6
200
+ Component: URI.js, version: 1.19.7
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -462,6 +462,15 @@ License: Apache-2.0
462
462
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
463
463
  Contained in: lib/jsdoc/ui5/plugin.js
464
464
 
465
+ Component: SAP Theming Base Content, version: 11.1.34
466
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
467
+ License: Apache-2.0
468
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
+ Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
470
+ src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
471
+ src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
472
+ src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
473
+
465
474
 
466
475
  ALL LICENSE TEXTS:
467
476
  ==================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.mdc",
3
- "version": "1.93.0",
3
+ "version": "1.93.4",
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.93.0",
18
- "@openui5/sap.ui.core": "1.93.0",
19
- "@openui5/sap.ui.layout": "1.93.0"
17
+ "@openui5/sap.m": "1.93.4",
18
+ "@openui5/sap.ui.core": "1.93.4",
19
+ "@openui5/sap.ui.layout": "1.93.4"
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.93.0</version>
9
+ <version>1.93.4</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.mdc</documentation>
12
12
 
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
22
22
  * @extends sap.m.OverflowToolbar
23
23
  * @author SAP SE
24
- * @version 1.93.0
24
+ * @version 1.93.4
25
25
  * @constructor
26
26
  * @private
27
27
  * @experimental
@@ -69,7 +69,7 @@ sap.ui.define([
69
69
  * @class The Chart control creates a chart based on metadata and the configuration specified.
70
70
  * @extends sap.ui.mdc.Control
71
71
  * @author SAP SE
72
- * @version 1.93.0
72
+ * @version 1.93.4
73
73
  * @constructor
74
74
  * @experimental As of version 1.61
75
75
  * @private
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @class The Chart control creates a chart based on metadata and the configuration specified.
58
58
  * @extends sap.ui.mdc.Control
59
59
  * @author SAP SE
60
- * @version 1.93.0
60
+ * @version 1.93.4
61
61
  * @constructor
62
62
  * @experimental As of version ...
63
63
  * @private
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.core.Control
21
21
  * @abstract
22
22
  * @author SAP SE
23
- * @version 1.93.0
23
+ * @version 1.93.4
24
24
  * @alias sap.ui.mdc.Control
25
25
  *
26
26
  * @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.core.Element
21
21
  * @abstract
22
22
  * @author SAP SE
23
- * @version 1.93.0
23
+ * @version 1.93.4
24
24
  * @alias sap.ui.mdc.Element
25
25
  *
26
26
  * @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
@@ -46,12 +46,12 @@ sap.ui.define([
46
46
  * @implements sap.ui.core.IFormContent
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.93.0
49
+ * @version 1.93.4
50
50
  *
51
51
  * @constructor
52
52
  * @alias sap.ui.mdc.Field
53
53
  * @author SAP SE
54
- * @version 1.93.0
54
+ * @version 1.93.4
55
55
  * @since 1.54.0
56
56
  * @experimental As of version 1.54
57
57
  *
@@ -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.93.0
24
+ * @version 1.93.4
25
25
  * @constructor
26
26
  * @experimental As of version 1.61
27
27
  * @private
@@ -29,12 +29,12 @@ sap.ui.define([
29
29
  * @extends sap.ui.mdc.field.FieldBase
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.93.0
32
+ * @version 1.93.4
33
33
  *
34
34
  * @constructor
35
35
  * @alias sap.ui.mdc.FilterField
36
36
  * @author SAP SE
37
- * @version 1.93.0
37
+ * @version 1.93.4
38
38
  * @since 1.48.0
39
39
  *
40
40
  * @experimental As of version 1.48
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends sap.ui.mdc.field.FieldInfoBase
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.93.0
48
+ * @version 1.93.4
49
49
  *
50
50
  * @constructor
51
51
  * @alias sap.ui.mdc.Link
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @constructor
36
36
  * @alias sap.ui.mdc.MultiValueField
37
37
  * @author SAP SE
38
- * @version 1.93.0
38
+ * @version 1.93.4
39
39
  * @since 1.93.0
40
40
  *
41
41
  * @private
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @class The ChartSelectionDetailsNew control creates a sap.m.SelectionDetails popover based on metadata and the configuration specified.
34
34
  * @extends sap.m.SelectionDetails
35
35
  * @author SAP SE
36
- * @version 1.93.0
36
+ * @version 1.93.4
37
37
  * @constructor
38
38
  * @experimental As of version ...
39
39
  * @private
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @class The ChartToolbarNew control creates a sap.m.OverflowToolbar based on metadata and the configuration specified.
42
42
  * @extends sap.m.OverflowToolbar
43
43
  * @author SAP SE
44
- * @version 1.93.0
44
+ * @version 1.93.4
45
45
  * @constructor
46
46
  * @experimental As of version ...
47
47
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.mdc.util.PropertyHelper
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.93.0
28
+ * @version 1.93.4
29
29
  *
30
30
  * @private
31
31
  * @experimental
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  *
30
30
  * @namespace
31
31
  * @author SAP SE
32
- * @version 1.93.0
32
+ * @version 1.93.4
33
33
  * @since 1.61.0
34
34
  * @alias sap.ui.mdc.condition.Condition
35
35
  *
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  *
33
33
  * @namespace
34
34
  * @author SAP SE
35
- * @version 1.93.0
35
+ * @version 1.93.4
36
36
  * @private
37
37
  * @ui5-restricted sap.ui.mdc
38
38
  * @experimental As of version 1.74
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.model.json.JSONModel
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.93.0
38
+ * @version 1.93.4
39
39
  * @since 1.48.0
40
40
  * @alias sap.ui.mdc.condition.ConditionModel
41
41
  *
@@ -24,7 +24,7 @@ function(
24
24
  *
25
25
  * @namespace
26
26
  * @author SAP SE
27
- * @version 1.93.0
27
+ * @version 1.93.4
28
28
  * @since 1.78.0
29
29
  * @alias sap.ui.mdc.condition.FilterConverter
30
30
  *
@@ -50,7 +50,7 @@ function(
50
50
  *
51
51
  * @namespace
52
52
  * @author SAP SE
53
- * @version 1.93.0
53
+ * @version 1.93.4
54
54
  * @since 1.73.0
55
55
  * @alias sap.ui.mdc.condition.FilterOperatorUtil
56
56
  *
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  * @param {string} [oConfiguration.additionalInfo] additionalInfo text for the operator. Will be shown in the operator suggest as second column. If not used (undefined) the Include or Exclude information of the operator is used.
84
84
  * @constructor
85
85
  * @author SAP SE
86
- * @version 1.93.0
86
+ * @version 1.93.4
87
87
  * @private
88
88
  * @ui5-restricted sap.fe
89
89
  * @MDC_PUBLIC_CANDIDATE
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @param {int[]|function} [oConfiguration.defaultValues] Array of values for the defaults of <code>RangeOperators</code> parameter. This can be a function, which returns the array of values. If not used the default for the values is 1.
34
34
  * @constructor
35
35
  * @author SAP SE
36
- * @version 1.93.0
36
+ * @version 1.93.4
37
37
  * @private
38
38
  * @ui5-restricted sap.fe
39
39
  * @MDC_PUBLIC_CANDIDATE
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @param {object} [mSettings] Initial settings for the new control
36
36
  * @class A field help used in the <code>FieldHelp</code> association in <code>FieldBase</code> controls that shows a list for Boolean values.
37
37
  * @extends sap.ui.mdc.field.FieldHelpBase
38
- * @version 1.93.0
38
+ * @version 1.93.4
39
39
  * @constructor
40
40
  * @private
41
41
  * @ui5-restricted sap.ui.mdc.field.FieldBase
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @param {object} [mSettings] Initial settings for the new control
36
36
  * @class A field help used in the <code>FieldHelp</code> association in <code>FieldBase</code> controls to show a popover of conditions.
37
37
  * @extends sap.ui.mdc.field.FieldHelpBase
38
- * @version 1.93.0
38
+ * @version 1.93.4
39
39
  * @constructor
40
40
  * @private
41
41
  * @ui5-restricted sap.ui.mdc.field.FieldBase, sap.fe
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.model.SimpleType
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.93.0
49
+ * @version 1.93.4
50
50
  *
51
51
  * @since 1.62.0
52
52
  * @private
@@ -62,6 +62,7 @@ sap.ui.define([
62
62
  * @param {int} [oFormatOptions.maxConditions] Maximum number of allowed conditions
63
63
  * @param {sap.ui.model.Context} [oFormatOptions.bindingContext] BindingContext of field. Used to get key or description from the value help using in/out parameters. (In table, the value help might be connected to different row)
64
64
  * @param {sap.ui.model.Type} [oFormatOptions.originalDateType] Type used on field. E.g. for date types internally a different type is used internally to have different <code>formatOptions</code>
65
+ * @param {sap.ui.model.Type} [oFormatOptions.additionalType] additional Type used on other part of a field. (This is the case for unit fields.)
65
66
  * @param {function} [oFormatOptions.getConditions] Function to get the existing conditions of the field. Only used if <code>isUnit</code> is set. // TODO: better solution
66
67
  * @param {function} [oFormatOptions.asyncParsing] Callback function to tell the <code>Field</code> the parsing is asynchronous.
67
68
  * @param {object} [oFormatOptions.navigateCondition] Condition of keyboard navigation. If this is filled, no real parsing is needed as the condition has already been determined. Just return it
@@ -114,12 +115,10 @@ sap.ui.define([
114
115
  }
115
116
 
116
117
  var oType = _getValueType.call(this);
117
- var oOriginalDateType = _getOriginalDateType.call(this);
118
118
  var bIsUnit = _isUnit(oType);
119
119
  var bPreventGetDescription = this.oFormatOptions.preventGetDescription;
120
120
 
121
- _attachCurrentValueAtType.call(this, oCondition, oOriginalDateType); // use original condition
122
- _attachCurrentValueAtType.call(this, oCondition, oType);
121
+ _attachCurrentValueAtType.call(this, oCondition, oType); // use original condition
123
122
 
124
123
  switch (this.getPrimitiveType(sInternalType)) {
125
124
  case "string":
@@ -267,7 +266,7 @@ sap.ui.define([
267
266
  var sDisplay = _getDisplay.call(this);
268
267
  var bInputValidationEnabled = _isInputValidationEnabled.call(this);
269
268
  var oType = _getValueType.call(this);
270
- var oOriginalDateType = _getOriginalDateType.call(this);
269
+ var oOriginalType = _getOriginalType.call(this);
271
270
  var aOperators = _getOperators.call(this);
272
271
  var bIsUnit = _isUnit(oType);
273
272
  var sDefaultOperator;
@@ -279,8 +278,6 @@ sap.ui.define([
279
278
  }
280
279
 
281
280
  _initCurrentValueAtType.call(this, oType);
282
- _initCurrentValueAtType.call(this, oOriginalDateType);
283
- _useCurrentValueFromOriginalType.call(this, oType, oOriginalDateType);
284
281
 
285
282
  switch (this.getPrimitiveType(sInternalType)) {
286
283
  case "string":
@@ -349,12 +346,12 @@ sap.ui.define([
349
346
  }
350
347
  } catch (oException) {
351
348
  var oMyException = oException;
352
- if (oMyException instanceof ParseException && oOriginalDateType) {
349
+ if (oMyException instanceof ParseException && oOriginalType) {
353
350
  // As internal yyyy-MM-dd is used as pattern for dates (times similar) the
354
351
  // parse exception might contain this as pattern. The user should see the pattern thats shown
355
352
  // So try to parse date with the original type to get parseException with right pattern.
356
353
  try {
357
- oOriginalDateType.parseValue(vValue, "string", oOriginalDateType._aCurrentValue);
354
+ oOriginalType.parseValue(vValue, "string", oOriginalType._aCurrentValue);
358
355
  } catch (oOriginalException) {
359
356
  oMyException = oOriginalException;
360
357
  }
@@ -395,7 +392,6 @@ sap.ui.define([
395
392
  function _finishParseFromString(oCondition, oType) {
396
393
 
397
394
  var bIsUnit = _isUnit(oType);
398
- var oOriginalDateType = _getOriginalDateType.call(this);
399
395
 
400
396
  if (oCondition && !bIsUnit) {
401
397
  var sName = oType.getMetadata().getName();
@@ -413,7 +409,6 @@ sap.ui.define([
413
409
  }
414
410
 
415
411
  _attachCurrentValueAtType.call(this, oCondition, oType);
416
- _attachCurrentValueAtType.call(this, oCondition, oOriginalDateType);
417
412
 
418
413
  return oCondition;
419
414
 
@@ -570,7 +565,10 @@ sap.ui.define([
570
565
  // Field accepts values that are not found -> must be checked by caller
571
566
  // if user input fits to the type, let the caller validate it
572
567
  var oOperator;
573
- if (aOperators.length === 1) {
568
+ if (_isUnit(oType)) {
569
+ // in unit case just use EQ operator
570
+ oOperator = FilterOperatorUtil.getEQOperator("EQ");
571
+ } else if (aOperators.length === 1) {
574
572
  // just use the one supported type
575
573
  oOperator = FilterOperatorUtil.getOperator(aOperators[0]);
576
574
  } else {
@@ -589,6 +587,10 @@ sap.ui.define([
589
587
 
590
588
  if (oCondition) {
591
589
  oCondition.validated = ConditionValidated.NotValidated;
590
+ if (_isUnit(oType) && Array.isArray(oCondition.values[0])) {
591
+ // user input is valid for type -> just return unit for further processing
592
+ oCondition.values[0] = oCondition.values[0][1];
593
+ }
592
594
  }
593
595
 
594
596
  return oCondition;
@@ -598,7 +600,7 @@ sap.ui.define([
598
600
  ConditionType.prototype.validateValue = function(oCondition) {
599
601
 
600
602
  var oType = _getValueType.call(this);
601
- var oOriginalDateType = _getOriginalDateType.call(this);
603
+ var oOriginalType = _getOriginalType.call(this);
602
604
  var aOperators = _getOperators.call(this);
603
605
  var bIsUnit = _isUnit(oType);
604
606
 
@@ -647,11 +649,11 @@ sap.ui.define([
647
649
  try {
648
650
  oOperator.validate(oCondition.values, oType);
649
651
  } catch (oException) {
650
- if (oException instanceof ValidateException && oOriginalDateType) {
652
+ if (oException instanceof ValidateException && oOriginalType) {
651
653
  // As internal yyyy-MM-dd is used as pattern for dates (times similar) the
652
654
  // ValidateException might contain this as pattern. The user should see the pattern thats shown
653
655
  // So try to validate date with the original type to get ValidateException with right pattern.
654
- oOperator.validate(oCondition.values, oOriginalDateType);
656
+ oOperator.validate(oCondition.values, oOriginalType);
655
657
  }
656
658
  throw oException;
657
659
  }
@@ -691,12 +693,18 @@ sap.ui.define([
691
693
 
692
694
  }
693
695
 
694
- function _getOriginalDateType() {
696
+ function _getOriginalType() {
695
697
 
696
698
  return this.oFormatOptions.originalDateType;
697
699
 
698
700
  }
699
701
 
702
+ function _getAdditionalType() {
703
+
704
+ return this.oFormatOptions.additionalType;
705
+
706
+ }
707
+
700
708
  function _getOperators() {
701
709
 
702
710
  var aOperators = this.oFormatOptions.operators;
@@ -746,23 +754,32 @@ sap.ui.define([
746
754
  function _attachCurrentValueAtType(oCondition, oType) {
747
755
 
748
756
  if (_isCompositeType.call(this, oType) && oCondition && oCondition.values[0]) {
749
- oType._aCurrentValue = oCondition.values[0];
750
- }
751
-
752
- }
757
+ oType._aCurrentValue = oCondition.values[0];
753
758
 
754
- function _initCurrentValueAtType(oType) {
759
+ var oAdditionalType = _getAdditionalType.call(this);
760
+ if (_isCompositeType.call(this, oAdditionalType)) { // store in corresponding unit or measure type too
761
+ oAdditionalType._aCurrentValue = oCondition.values[0];
762
+ }
755
763
 
756
- if (_isCompositeType.call(this, oType) && !oType._aCurrentValue) {
757
- oType._aCurrentValue = [];
764
+ var oOriginalType = _getOriginalType.call(this);
765
+ if (_isCompositeType.call(this, oOriginalType)) { // store in original type too (Currently not used in Unit/Currency type, but basically in CompositeType for parsing)
766
+ oOriginalType._aCurrentValue = oCondition.values[0];
767
+ }
758
768
  }
759
769
 
760
770
  }
761
771
 
762
- function _useCurrentValueFromOriginalType(oType, oOriginalDateType) {
772
+ function _initCurrentValueAtType(oType) {
773
+
774
+ if (_isCompositeType.call(this, oType)) {
775
+ var oAdditionalType = _getAdditionalType.call(this);
776
+ if (_isCompositeType.call(this, oAdditionalType)) {
777
+ if (!oAdditionalType._aCurrentValue) {
778
+ oAdditionalType._aCurrentValue = [];
779
+ }
763
780
 
764
- if (_isCompositeType.call(this, oType) && _isCompositeType.call(this, oOriginalDateType) && oOriginalDateType._aCurrentValue) {
765
- oType._aCurrentValue = oOriginalDateType._aCurrentValue;
781
+ oType._aCurrentValue = oAdditionalType._aCurrentValue; // to use before entered corresponding number or unit
782
+ }
766
783
  }
767
784
 
768
785
  }
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.model.SimpleType
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.93.0
39
+ * @version 1.93.4
40
40
  *
41
41
  * @since 1.62.0
42
42
  * @private
@@ -52,6 +52,7 @@ sap.ui.define([
52
52
  * @param {int} [oFormatOptions.maxConditions] Maximum number of allowed conditions
53
53
  * @param {sap.ui.model.Context} [oFormatOptions.bindingContext] BindingContext of field. Used to get key or description from the value help using in/out parameters. (In table, the value help might be connected to different row)
54
54
  * @param {sap.ui.model.Type} [oFormatOptions.originalDateType] Type used on field. E.g. for date types internally a different type is used internally to have different <code>formatOptions</code>
55
+ * @param {sap.ui.model.Type} [oFormatOptions.additionalType] additional Type used on other part of a field. (This is the case for unit fields.)
55
56
  * @param {function} [oFormatOptions.getConditions] Function to get the existing conditions of the field. Only used if <code>isUnit</code> is set. TODO: better solution
56
57
  * @param {function} [oFormatOptions.asyncParsing] Callback function to tell the <code>Field</code> the parsing is asynchronous.
57
58
  * @param {object} [oFormatOptions.navigateCondition] Condition of keyboard navigation. If this is filled, no real parsing is needed as the condition has already been determined. Just return it
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] Initial settings for the new control
17
17
  * @class A field help used in the <code>FieldHelp</code> association in <code>FieldBase</code> controls that allows you to add custom content.
18
18
  * @extends sap.ui.mdc.field.FieldHelpBase
19
- * @version 1.93.0
19
+ * @version 1.93.4
20
20
  * @constructor
21
21
  * @private
22
22
  * @ui5-restricted sap.fe
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @param {object} [mSettings] Initial settings for the new control
17
17
  * @class A field help used in the <code>FieldInfo</code> aggregation in <code>FieldBase</code> controls that allows you to add custom content.
18
18
  * @extends sap.ui.mdc.field.FieldInfoBase
19
- * @version 1.93.0
19
+ * @version 1.93.4
20
20
  * @constructor
21
21
  * @private
22
22
  * @ui5-restricted sap.fe
@@ -88,7 +88,7 @@ sap.ui.define([
88
88
  * @extends sap.ui.core.Control
89
89
  *
90
90
  * @author SAP SE
91
- * @version 1.93.0
91
+ * @version 1.93.4
92
92
  *
93
93
  * @constructor
94
94
  * @alias sap.ui.mdc.field.DefineConditionPanel
@@ -86,7 +86,7 @@ sap.ui.define([
86
86
  * @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent
87
87
  *
88
88
  * @author SAP SE
89
- * @version 1.93.0
89
+ * @version 1.93.4
90
90
  *
91
91
  * @constructor
92
92
  * @alias sap.ui.mdc.field.FieldBase
@@ -2813,6 +2813,7 @@ sap.ui.define([
2813
2813
  return {
2814
2814
  valueType: this._oContentFactory.retrieveDataType(),
2815
2815
  originalDateType: this._oContentFactory.getDateOriginalType() || this._oContentFactory.getUnitOriginalType(),
2816
+ additionalType: this._oContentFactory.getUnitType(), // only set if unit
2816
2817
  display: this._oContentFactory.isMeasure() ? FieldDisplay.Value : this.getDisplay(),
2817
2818
  fieldHelpID: this._oContentFactory.isMeasure() ? undefined : this.getFieldHelp() || this._sDefaultFieldHelp,
2818
2819
  operators: this._getOperators(),
@@ -2886,7 +2887,8 @@ sap.ui.define([
2886
2887
 
2887
2888
  return {
2888
2889
  valueType: this._oContentFactory.getUnitType(),
2889
- originalDateType: this._oContentFactory.retrieveDataType(), // use type of measure for currentValue
2890
+ originalDateType: this._oContentFactory.getDateOriginalType() || this._oContentFactory.getUnitOriginalType(),
2891
+ additionalType: this._oContentFactory.retrieveDataType(), // use type of measure for currentValue
2890
2892
  display: this.getDisplay(),
2891
2893
  fieldHelpID: this.getFieldHelp() || this._sDefaultFieldHelp,
2892
2894
  operators: ["EQ"],
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @class Base type for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
41
41
  * @extends sap.ui.mdc.Element
42
42
  * @implements sap.ui.core.PopupInterface
43
- * @version 1.93.0
43
+ * @version 1.93.4
44
44
  * @constructor
45
45
  * @abstract
46
46
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @param {object} [mSettings] Initial settings for the new control
28
28
  * @class A <code>FieldInfoBase</code> element is a base class that shows any kind of information related to the <code>Field</code> control, for example, navigation targets or contact details.
29
29
  * @extends sap.ui.mdc.Element
30
- * @version 1.93.0
30
+ * @version 1.93.4
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.54.0
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @param {object} [mSettings] Initial settings for the new control
24
24
  * @class The <code>FieldInput</code> control is used to render an input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
25
25
  * @extends sap.m.Input
26
- * @version 1.93.0
26
+ * @version 1.93.4
27
27
  * @constructor
28
28
  * @abstract
29
29
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class Functions uses in <code>FieldInputRenderer</code> and <code>FieldMultiInputRenderer</code> to adjust aria attributes.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.93.0
19
+ * @version 1.93.4
20
20
  * @since 1.86.0
21
21
  * @alias sap.ui.mdc.field.FieldInputRenderUtil
22
22
  *
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @param {object} [mSettings] Initial settings for the new control
24
24
  * @class The <code>FieldMultiInput</code> control is used to render a multi-input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
25
25
  * @extends sap.m.MultiInput
26
- * @version 1.93.0
26
+ * @version 1.93.4
27
27
  * @constructor
28
28
  * @abstract
29
29
  * @private