@openui5/sap.ui.mdc 1.142.0 → 1.142.1
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.toml +1 -1
- package/THIRDPARTY.txt +2 -2
- 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/Chart.js +1 -1
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/DefaultTypeMap.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +38 -3
- package/src/sap/ui/mdc/FilterField.js +2 -2
- package/src/sap/ui/mdc/Geomap.js +1 -1
- package/src/sap/ui/mdc/Link.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +3 -0
- package/src/sap/ui/mdc/ValueHelp.js +1 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarControlFactory.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- 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/designtime/filterbar/FilterBar.designtime.js +6 -0
- package/src/sap/ui/mdc/field/ConditionType.js +1 -1
- package/src/sap/ui/mdc/field/ConditionTypeMixin.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 +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +19 -3
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +20 -4
- package/src/sap/ui/mdc/field/FieldSelect.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/filterbar/FilterBarBase.js +15 -2
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/SortFlex.js +3 -3
- package/src/sap/ui/mdc/flexibility/actiontoolbar/CombineAction.js +1 -1
- package/src/sap/ui/mdc/flexibility/actiontoolbar/SplitAction.js +1 -1
- package/src/sap/ui/mdc/geomap/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/library.js +2 -2
- package/src/sap/ui/mdc/link/Factory.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/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterBarLayoutMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
- package/src/sap/ui/mdc/odata/TypeMap.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +1 -1
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +13 -8
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnFreezeController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ShowDetailsController.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +0 -8
- 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/DragDropConfig.js +1 -1
- package/src/sap/ui/mdc/table/ODataV4PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +1 -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 +1 -1
- package/src/sap/ui/mdc/table/utils/Personalization.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/util/InfoBar.js +1 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelperUtil.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +1 -1
- package/src/sap/ui/mdc/valuehelp/FilterBar.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Popover.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/Container.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +1 -1
package/REUSE.toml
CHANGED
|
@@ -385,7 +385,7 @@ SPDX-FileComment = "these files belong to: handlebars"
|
|
|
385
385
|
[[annotations]]
|
|
386
386
|
path = "src/sap.ui.core/src/sap/ui/thirdparty/require.js"
|
|
387
387
|
precedence = "aggregate"
|
|
388
|
-
SPDX-FileCopyrightText = "2010-
|
|
388
|
+
SPDX-FileCopyrightText = "2010-2024, jQuery Foundation and other contributors"
|
|
389
389
|
SPDX-License-Identifier = "MIT"
|
|
390
390
|
SPDX-FileComment = "these files belong to: requireJS"
|
|
391
391
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -254,8 +254,8 @@ License: MIT
|
|
|
254
254
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
|
|
255
255
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/handlebars.js
|
|
256
256
|
|
|
257
|
-
Component: requireJS, version: 2.
|
|
258
|
-
Copyright: 2010-
|
|
257
|
+
Component: requireJS, version: 2.3.7
|
|
258
|
+
Copyright: 2010-2024, jQuery Foundation and other contributors
|
|
259
259
|
License: MIT
|
|
260
260
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
|
|
261
261
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/require.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.mdc",
|
|
3
|
-
"version": "1.142.
|
|
3
|
+
"version": "1.142.1",
|
|
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/UI5/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.142.
|
|
18
|
-
"@openui5/sap.ui.core": "1.142.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.142.
|
|
17
|
+
"@openui5/sap.m": "1.142.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.142.1",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.142.1"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/ui/mdc/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.142.
|
|
9
|
+
<version>1.142.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.mdc</documentation>
|
|
12
12
|
|
package/src/sap/ui/mdc/Chart.js
CHANGED
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -64,13 +64,13 @@ sap.ui.define([
|
|
|
64
64
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
65
65
|
*
|
|
66
66
|
* @author SAP SE
|
|
67
|
-
* @version 1.142.
|
|
67
|
+
* @version 1.142.1
|
|
68
68
|
*
|
|
69
69
|
* @constructor
|
|
70
70
|
* @alias sap.ui.mdc.Field
|
|
71
71
|
* @see {@link topic:1dd2aa91115d43409452a271d11be95b sap.ui.mdc}
|
|
72
72
|
* @see {@link topic:5260b9ca249f465ab33769b9edb442aa Field Building Block (OData V4)}
|
|
73
|
-
* @version 1.142.
|
|
73
|
+
* @version 1.142.1
|
|
74
74
|
* @since 1.54.0
|
|
75
75
|
* @public
|
|
76
76
|
*/
|
|
@@ -14,8 +14,9 @@ sap.ui.define([
|
|
|
14
14
|
"sap/m/Button",
|
|
15
15
|
"sap/base/util/merge",
|
|
16
16
|
"sap/base/Log",
|
|
17
|
-
"sap/ui/mdc/enums/FilterBarP13nMode"
|
|
18
|
-
|
|
17
|
+
"sap/ui/mdc/enums/FilterBarP13nMode",
|
|
18
|
+
"sap/base/strings/formatMessage"
|
|
19
|
+
], (FilterController, AdaptFiltersController, FilterContainer, FilterItemLayout, FilterBarBase, FilterBarBaseRenderer, mLibrary, Button, merge, Log, FilterBarP13nMode, formatMessage) => {
|
|
19
20
|
"use strict";
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -42,7 +43,7 @@ sap.ui.define([
|
|
|
42
43
|
* The metadata information is provided via the {@link module:sap/ui/mdc/FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
43
44
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
44
45
|
* @author SAP SE
|
|
45
|
-
* @version 1.142.
|
|
46
|
+
* @version 1.142.1
|
|
46
47
|
* @constructor
|
|
47
48
|
* @public
|
|
48
49
|
* @since 1.61.0
|
|
@@ -87,6 +88,28 @@ sap.ui.define([
|
|
|
87
88
|
type: "boolean",
|
|
88
89
|
visibility: "hidden",
|
|
89
90
|
defaultValue: false
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Defines a text for the "Adapt Filters" button.
|
|
94
|
+
*
|
|
95
|
+
* <b>Note:</b> Both <code>adaptFiltersText</code> and <code>adaptFiltersTextNonZero</code> need to be set for them to take effect.
|
|
96
|
+
*
|
|
97
|
+
* @private
|
|
98
|
+
* @ui5-restricted sap.fe
|
|
99
|
+
*/
|
|
100
|
+
adaptFiltersText: {
|
|
101
|
+
type: "string"
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* Defines a text for the "Adapt Filters" button in case of multiple filters being applied.
|
|
105
|
+
*
|
|
106
|
+
* <b>Note:</b> Both <code>adaptFiltersText</code> and <code>adaptFiltersTextNonZero</code> need to be set for them to take effect.
|
|
107
|
+
* <b>Note:</b> If the count should be shown use <code>{0}</code> as a placeholder within the string.
|
|
108
|
+
* @private
|
|
109
|
+
* @ui5-restricted sap.fe
|
|
110
|
+
*/
|
|
111
|
+
adaptFiltersTextNonZero: {
|
|
112
|
+
type: "string"
|
|
90
113
|
}
|
|
91
114
|
}
|
|
92
115
|
},
|
|
@@ -268,6 +291,18 @@ sap.ui.define([
|
|
|
268
291
|
this._aRemovedFilterFields = undefined;
|
|
269
292
|
};
|
|
270
293
|
|
|
294
|
+
FilterBar.prototype.getAdaptFiltersButtonText = function(iFilterCount) {
|
|
295
|
+
let sText = FilterBarBase.prototype.getAdaptFiltersButtonText.call(this, iFilterCount);
|
|
296
|
+
|
|
297
|
+
const sAdaptFiltersText = this.getAdaptFiltersText(),
|
|
298
|
+
sAdaptFiltersTextNonZero = this.getAdaptFiltersTextNonZero();
|
|
299
|
+
if (sAdaptFiltersText && sAdaptFiltersTextNonZero) {
|
|
300
|
+
sText = iFilterCount ? formatMessage(sAdaptFiltersTextNonZero, [iFilterCount]) : sAdaptFiltersText;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
return sText;
|
|
304
|
+
};
|
|
305
|
+
|
|
271
306
|
FilterBar.prototype._handleAddedFilterField = function(oFilterField) {
|
|
272
307
|
if (this._aAddedFilterFields && this._aRemovedFilterFields) {
|
|
273
308
|
const nDelIdx = this._aRemovedFilterFields.indexOf(oFilterField);
|
|
@@ -53,13 +53,13 @@ sap.ui.define([
|
|
|
53
53
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
54
54
|
*
|
|
55
55
|
* @author SAP SE
|
|
56
|
-
* @version 1.142.
|
|
56
|
+
* @version 1.142.1
|
|
57
57
|
*
|
|
58
58
|
* @constructor
|
|
59
59
|
* @alias sap.ui.mdc.FilterField
|
|
60
60
|
* @see {@link topic:1dd2aa91115d43409452a271d11be95b sap.ui.mdc}
|
|
61
61
|
* @see {@link topic:2df783760a8e4540ad19ce5ec3ed91c8 FilterField Building Block (OData V4)}
|
|
62
|
-
* @version 1.142.
|
|
62
|
+
* @version 1.142.1
|
|
63
63
|
* @since 1.48.0
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
package/src/sap/ui/mdc/Geomap.js
CHANGED
package/src/sap/ui/mdc/Link.js
CHANGED
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -3216,6 +3216,9 @@ sap.ui.define([
|
|
|
3216
3216
|
this._onAfterInitialization("Destroyed");
|
|
3217
3217
|
this._onAfterFullInitialization("Destroyed");
|
|
3218
3218
|
|
|
3219
|
+
// Cleanup plugins before the plugin owner is destroyed
|
|
3220
|
+
MTableUtil.cleanupPluginsBeforeDestroy(this);
|
|
3221
|
+
|
|
3219
3222
|
// Destroy destructible elements and delete references.
|
|
3220
3223
|
[
|
|
3221
3224
|
"_oTable",
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* and {@link sap.ui.mdc.FilterField FilterField} controls using the <code>valueHelp</code> association. One <code>ValueHelp</code> element instance can be
|
|
70
70
|
* assigned to multiple fields (like in different table rows). It should be placed in the control tree on the container holding the fields.
|
|
71
71
|
* @extends sap.ui.mdc.Element
|
|
72
|
-
* @version 1.142.
|
|
72
|
+
* @version 1.142.1
|
|
73
73
|
* @constructor
|
|
74
74
|
* @abstract
|
|
75
75
|
* @public
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* The action for an {@link sap.ui.mdc.ActionToolbar ActionToolbar} control with given layout information that determines where the wrapped control is displayed on the <code>ActionToolbar</code>.
|
|
28
28
|
* @extends sap.ui.core.Control
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.142.
|
|
30
|
+
* @version 1.142.1
|
|
31
31
|
* @constructor
|
|
32
32
|
* @since 1.58
|
|
33
33
|
* @public
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @class The <code>ChartImplementationContainer</code> creates a container for the <code>content</code> (chart) and <code>noDataContent</code>. Based on the <code>showNoDataStruct</code> the <code>content</code> or <code>noDataContent</code> will be shown.
|
|
22
22
|
* @extends sap.ui.core.Control
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.142.
|
|
24
|
+
* @version 1.142.1
|
|
25
25
|
* @constructor
|
|
26
26
|
*
|
|
27
27
|
* @public
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @class The <code>ChartSelectionDetails</code> control creates a <code>sap.m.SelectionDetails</code> popover based on metadata and the configuration specified.
|
|
39
39
|
* @extends sap.m.SelectionDetails
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.142.
|
|
41
|
+
* @version 1.142.1
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
|
44
44
|
* @experimental As of version 1.88
|
|
@@ -144,7 +144,7 @@ sap.ui.define([
|
|
|
144
144
|
* @param {function} [oConfiguration.getTextForCopy] Function to determine the text copied into clipboard
|
|
145
145
|
* @constructor
|
|
146
146
|
* @author SAP SE
|
|
147
|
-
* @version 1.142.
|
|
147
|
+
* @version 1.142.1
|
|
148
148
|
* @public
|
|
149
149
|
* @alias sap.ui.mdc.condition.Operator
|
|
150
150
|
* @since 1.73.0
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @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.
|
|
40
40
|
* @constructor
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.142.
|
|
42
|
+
* @version 1.142.1
|
|
43
43
|
* @public
|
|
44
44
|
* @alias sap.ui.mdc.condition.RangeOperator
|
|
45
45
|
* @since 1.74.0
|
|
@@ -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.142.
|
|
19
|
+
* @version 1.142.1
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @ui5-restricted sap.fe
|
|
@@ -101,7 +101,7 @@ sap.ui.define([
|
|
|
101
101
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent, sap.ui.core.ILabelable
|
|
102
102
|
*
|
|
103
103
|
* @author SAP SE
|
|
104
|
-
* @version 1.142.
|
|
104
|
+
* @version 1.142.1
|
|
105
105
|
*
|
|
106
106
|
* @constructor
|
|
107
107
|
* @alias sap.ui.mdc.field.FieldBase
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* 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.
|
|
32
32
|
* This is the basis for link-features. If the link is pressed a popover might be opened.
|
|
33
33
|
* @extends sap.ui.mdc.Element
|
|
34
|
-
* @version 1.142.
|
|
34
|
+
* @version 1.142.1
|
|
35
35
|
* @constructor
|
|
36
36
|
* @since 1.54.0
|
|
37
37
|
* @public
|
|
@@ -7,14 +7,18 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
'sap/m/Input',
|
|
9
9
|
'sap/ui/mdc/field/FieldInputRenderer',
|
|
10
|
-
'sap/ui/base/ManagedObjectObserver'
|
|
10
|
+
'sap/ui/base/ManagedObjectObserver',
|
|
11
|
+
'sap/ui/core/Lib'
|
|
11
12
|
], (
|
|
12
13
|
Input,
|
|
13
14
|
FieldInputRenderer,
|
|
14
|
-
ManagedObjectObserver
|
|
15
|
+
ManagedObjectObserver,
|
|
16
|
+
Library
|
|
15
17
|
) => {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
20
|
+
const oRbM = Library.getResourceBundleFor("sap.m");
|
|
21
|
+
|
|
18
22
|
/**
|
|
19
23
|
* Constructor for a new <code>FieldInput</code>.
|
|
20
24
|
*
|
|
@@ -24,7 +28,7 @@ sap.ui.define([
|
|
|
24
28
|
* 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
29
|
* It enhances the {@link sap.m.Input Input} control to add ARIA attributes and other {@link sap.ui.mdc.field.FieldBase FieldBase}-specific logic.
|
|
26
30
|
* @extends sap.m.Input
|
|
27
|
-
* @version 1.142.
|
|
31
|
+
* @version 1.142.1
|
|
28
32
|
* @constructor
|
|
29
33
|
* @abstract
|
|
30
34
|
* @private
|
|
@@ -73,6 +77,18 @@ sap.ui.define([
|
|
|
73
77
|
|
|
74
78
|
};
|
|
75
79
|
|
|
80
|
+
FieldInput.prototype.getAccessibilityInfo = function() {
|
|
81
|
+
|
|
82
|
+
const oInfo = Input.prototype.getAccessibilityInfo.apply(this, arguments);
|
|
83
|
+
|
|
84
|
+
if (oInfo.role === "combobox") { // use text like in ComboBox
|
|
85
|
+
oInfo.type = oRbM.getText("ACC_CTR_TYPE_COMBO");
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return oInfo;
|
|
89
|
+
|
|
90
|
+
};
|
|
91
|
+
|
|
76
92
|
function _observeChanges(oChanges) {
|
|
77
93
|
|
|
78
94
|
if (oChanges.name === "ariaAttributes") {
|
|
@@ -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.142.
|
|
19
|
+
* @version 1.142.1
|
|
20
20
|
* @since 1.86.0
|
|
21
21
|
* @alias sap.ui.mdc.field.FieldInputRenderUtil
|
|
22
22
|
*
|
|
@@ -10,18 +10,21 @@ sap.ui.define([
|
|
|
10
10
|
'sap/m/Tokenizer',
|
|
11
11
|
'sap/ui/mdc/field/FieldMultiInputRenderer',
|
|
12
12
|
'sap/ui/Device',
|
|
13
|
-
'sap/ui/base/ManagedObjectObserver'
|
|
13
|
+
'sap/ui/base/ManagedObjectObserver',
|
|
14
|
+
'sap/ui/core/Lib'
|
|
14
15
|
], (
|
|
15
16
|
Element,
|
|
16
17
|
MultiInput,
|
|
17
18
|
Tokenizer,
|
|
18
19
|
FieldMultiInputRenderer,
|
|
19
20
|
Device,
|
|
20
|
-
ManagedObjectObserver
|
|
21
|
-
|
|
21
|
+
ManagedObjectObserver,
|
|
22
|
+
Library
|
|
22
23
|
) => {
|
|
23
24
|
"use strict";
|
|
24
25
|
|
|
26
|
+
const oRbM = Library.getResourceBundleFor("sap.m");
|
|
27
|
+
|
|
25
28
|
/**
|
|
26
29
|
* Constructor for a new <code>FieldMultiInput</code>.
|
|
27
30
|
*
|
|
@@ -31,7 +34,7 @@ sap.ui.define([
|
|
|
31
34
|
* 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}.
|
|
32
35
|
* It enhances the {@link sap.m.MultiInput MultiInput} control to add ARIA attributes and other {@link sap.ui.mdc.field.FieldBase FieldBase}-specific logic.
|
|
33
36
|
* @extends sap.m.MultiInput
|
|
34
|
-
* @version 1.142.
|
|
37
|
+
* @version 1.142.1
|
|
35
38
|
* @constructor
|
|
36
39
|
* @abstract
|
|
37
40
|
* @private
|
|
@@ -294,6 +297,19 @@ sap.ui.define([
|
|
|
294
297
|
this._bValueHelpOpen = false; // otherwise in non-modal Valuehelp focusout will not show the more-indicator. In Field case, onSapFocusLeave is prevented on opening ValueHelp-Dialog, so the original use-case will not occur
|
|
295
298
|
};
|
|
296
299
|
|
|
300
|
+
FieldMultiInput.prototype.getAccessibilityInfo = function() {
|
|
301
|
+
|
|
302
|
+
const oInfo = MultiInput.prototype.getAccessibilityInfo.apply(this, arguments);
|
|
303
|
+
|
|
304
|
+
if (oInfo.role === "combobox") { // use text like in ComboBox
|
|
305
|
+
oInfo.type = oRbM.getText("ACC_CTR_TYPE_MULTICOMBO");
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return oInfo;
|
|
309
|
+
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
297
313
|
return FieldMultiInput;
|
|
298
314
|
|
|
299
315
|
});
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* The <code>FieldSelect</code> control is used to render an select field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
32
32
|
* It enhances the {@link sap.m.Select Select} control to allow {@link sap.ui.mdc.field.FieldBase FieldBase}-specific ValueHelp logic.
|
|
33
33
|
* @extends sap.m.Input
|
|
34
|
-
* @version 1.142.
|
|
34
|
+
* @version 1.142.1
|
|
35
35
|
* @constructor
|
|
36
36
|
* @abstract
|
|
37
37
|
* @private
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* Base type for <code>MultiValueFieldItem</code> control.
|
|
21
21
|
* The {@link sap.ui.mdc.MultiValueField MultiValueField} holds its values as items. The <code>MultiValueFieldItem</code> element defines these items.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.142.
|
|
23
|
+
* @version 1.142.1
|
|
24
24
|
* @constructor
|
|
25
25
|
* @since 1.93.0
|
|
26
26
|
* @public
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* The <code>TokenDisplay</code> control is used to render a field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
23
23
|
* It enhances the {@link sap.m.Token Token} control to add ARIA attributes and other {@link sap.ui.mdc.field.FieldBase FieldBase}-specific logic.
|
|
24
24
|
* @extends sap.m.Token
|
|
25
|
-
* @version 1.142.
|
|
25
|
+
* @version 1.142.1
|
|
26
26
|
* @constructor
|
|
27
27
|
* @abstract
|
|
28
28
|
* @private
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* It enhances the {@link sap.m.Tokenizer Tokenizer} control to support display only tokens.
|
|
30
30
|
* @extends sap.m.Tokenizer
|
|
31
31
|
* @implements sap.ui.core.ILabelable
|
|
32
|
-
* @version 1.142.
|
|
32
|
+
* @version 1.142.1
|
|
33
33
|
* @constructor
|
|
34
34
|
* @abstract
|
|
35
35
|
*
|