@openui5/sap.ui.mdc 1.115.0 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +1 -1
- package/src/sap/ui/mdc/Chart.js +2 -2
- package/src/sap/ui/mdc/ChartDelegate.js +2 -2
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/DefaultTypeMap.js +10 -10
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +2 -2
- package/src/sap/ui/mdc/FilterBarDelegate.js +21 -21
- package/src/sap/ui/mdc/FilterField.js +15 -13
- package/src/sap/ui/mdc/Link.js +4 -1
- package/src/sap/ui/mdc/MultiValueField.js +7 -7
- package/src/sap/ui/mdc/Table.js +32 -9
- package/src/sap/ui/mdc/TableDelegate.js +15 -17
- package/src/sap/ui/mdc/ValueHelp.js +11 -11
- package/src/sap/ui/mdc/ValueHelpDelegate.js +40 -40
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +2 -2
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +1 -1
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +9 -1
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +11 -2
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +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 +7 -8
- 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/enums/ActionToolbarActionAlignment.js +2 -0
- package/src/sap/ui/mdc/enums/ValueHelpPropagationReason.js +3 -6
- package/src/sap/ui/mdc/field/ConditionType.js +1 -1
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +118 -78
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +14 -14
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
- package/src/sap/ui/mdc/field/content/DefaultContent.js +6 -0
- package/src/sap/ui/mdc/field/content/UnitContent.js +62 -10
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -3
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +3 -3
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +4 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +10 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -18
- package/src/sap/ui/mdc/filterbar/vh/FilterBarDelegate.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/library.js +11 -14
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +1 -1
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +2 -0
- package/src/sap/ui/mdc/messagebundle_ar.properties +7 -6
- package/src/sap/ui/mdc/messagebundle_bg.properties +22 -21
- package/src/sap/ui/mdc/messagebundle_ca.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_cs.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_cy.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_da.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_de.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_el.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_en.properties +2 -1
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_et.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_fi.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_fr.properties +8 -7
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_hi.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_hr.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_hu.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_id.properties +2 -1
- package/src/sap/ui/mdc/messagebundle_it.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_iw.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_ja.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_kk.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_ko.properties +2 -1
- package/src/sap/ui/mdc/messagebundle_lt.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_lv.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_ms.properties +18 -17
- package/src/sap/ui/mdc/messagebundle_nl.properties +6 -5
- package/src/sap/ui/mdc/messagebundle_no.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_pl.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_pt.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_ro.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_ru.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_sh.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_sk.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_sl.properties +8 -7
- package/src/sap/ui/mdc/messagebundle_sv.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_th.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_tr.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_uk.properties +3 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +1 -0
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +8 -7
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +1 -0
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +2 -2
- package/src/sap/ui/mdc/odata/TypeMap.js +30 -30
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +8 -2
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +29 -29
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +56 -47
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +11 -2
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +5 -1
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +2 -1
- package/src/sap/ui/mdc/table/ColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +3 -0
- package/src/sap/ui/mdc/table/PropertyHelper.js +4 -1
- package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
- package/src/sap/ui/mdc/table/RowSettings.js +3 -3
- package/src/sap/ui/mdc/table/TableTypeBase.js +3 -0
- package/src/sap/ui/mdc/table/TreeTableType.js +3 -0
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +7 -1
- package/src/sap/ui/mdc/table/utils/Personalization.js +1 -1
- package/src/sap/ui/mdc/util/InfoBar.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +7 -3
- package/src/sap/ui/mdc/util/TypeMap.js +12 -12
- package/src/sap/ui/mdc/valuehelp/Dialog.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Popover.js +8 -8
- package/src/sap/ui/mdc/valuehelp/base/Container.js +54 -54
- package/src/sap/ui/mdc/valuehelp/base/Content.js +53 -53
- package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +5 -5
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +30 -32
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +5 -5
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +5 -5
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +8 -7
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +4 -4
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +1 -1
- package/src/sap/ui/mdc/enum/PersistenceMode.js +0 -46
- package/src/sap/ui/mdc/enums/PersistenceMode.js +0 -44
package/.reuse/dep5
CHANGED
|
@@ -457,11 +457,6 @@ Comment: these files belong to: UI5 Web Components
|
|
|
457
457
|
|
|
458
458
|
# Outside of Libraries:
|
|
459
459
|
|
|
460
|
-
Files: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
461
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
462
|
-
License: Apache-2.0
|
|
463
|
-
Comment: these files belong to: LESS
|
|
464
|
-
|
|
465
460
|
Files: lib/jsdoc/ui5/plugin.js
|
|
466
461
|
Copyright:
|
|
467
462
|
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
package/THIRDPARTY.txt
CHANGED
|
@@ -460,19 +460,13 @@ Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/*.*
|
|
|
460
460
|
|
|
461
461
|
Outside of Libraries:
|
|
462
462
|
|
|
463
|
-
Component: LESS, version: 1.6.3
|
|
464
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
465
|
-
License: Apache-2.0
|
|
466
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
467
|
-
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
468
|
-
|
|
469
463
|
Component: JSDoc 3, version: 3.6.7
|
|
470
464
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
471
465
|
License: Apache-2.0
|
|
472
466
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
473
467
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
474
468
|
|
|
475
|
-
Component: SAP Theming Base Content, version: 11.
|
|
469
|
+
Component: SAP Theming Base Content, version: 11.4.2
|
|
476
470
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
477
471
|
License: Apache-2.0
|
|
478
472
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.mdc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.116.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.mdc",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.116.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.116.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.116.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/ui/mdc/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.116.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.mdc</documentation>
|
|
12
12
|
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
|
|
32
32
|
* @extends sap.m.OverflowToolbar
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.116.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @since 1.58
|
|
37
37
|
* @public
|
package/src/sap/ui/mdc/Chart.js
CHANGED
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* <b>Note:</b> The inner chart needs to be assigned <code>ChartDelegate</code>.
|
|
68
68
|
* @extends sap.ui.mdc.Control
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.116.0
|
|
71
71
|
* @constructor
|
|
72
72
|
*
|
|
73
73
|
* @public
|
|
@@ -434,7 +434,7 @@ sap.ui.define([
|
|
|
434
434
|
* @property {string} [tooltip]
|
|
435
435
|
* The tooltip of the identifier
|
|
436
436
|
* @property {string} datatype
|
|
437
|
-
* The name of the type of the property
|
|
437
|
+
* The name of the data type of the property
|
|
438
438
|
* @property {object} [constraints]
|
|
439
439
|
* Defines constraints for the data type of the property
|
|
440
440
|
* @property {object} [formatOptions]
|
|
@@ -287,7 +287,7 @@ sap.ui.define([
|
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
290
|
+
* Chart <code>ChartTypeLayoutConfig</code> type.
|
|
291
291
|
*
|
|
292
292
|
* @typedef {object} sap.ui.mdc.chart.ChartTypeLayoutConfig
|
|
293
293
|
* @property {string} key identifier for the chart type
|
|
@@ -347,7 +347,7 @@ sap.ui.define([
|
|
|
347
347
|
/**
|
|
348
348
|
* Sets the chart type of the inner chart.
|
|
349
349
|
* This function is called by the chart when the <code>chartType</code> property is updated.
|
|
350
|
-
*
|
|
350
|
+
* <b>Note:</b> This function is called by the chart only. You must not call it directly but use {@link sap.ui.mdc.Chart#chartType chartType} instead.
|
|
351
351
|
*
|
|
352
352
|
* @param {string} sChartType New chart type
|
|
353
353
|
*
|
|
@@ -17,19 +17,19 @@ sap.ui.define([
|
|
|
17
17
|
* <b>Note:</b> This <code>TypeMap</code> implementation contains the following types:
|
|
18
18
|
*
|
|
19
19
|
* <ul>
|
|
20
|
-
* <li>sap.ui.model.type.Boolean (alias Boolean)</li>
|
|
21
|
-
* <li>sap.ui.model.type.Currency (alias Currency)</li>
|
|
22
|
-
* <li>sap.ui.model.type.Date (alias Date)</li>
|
|
23
|
-
* <li>sap.ui.model.type.DateTime (alias DateTime)</li>
|
|
24
|
-
* <li>sap.ui.model.type.Float (alias Float)</li>
|
|
25
|
-
* <li>sap.ui.model.type.Integer (alias Integer)</li>
|
|
26
|
-
* <li>sap.ui.model.type.String (alias String)</li>
|
|
27
|
-
* <li>sap.ui.model.type.Time (alias Time)</li>
|
|
28
|
-
* <li>sap.ui.model.type.Unit (alias Unit)</li>
|
|
20
|
+
* <li>{@link sap.ui.model.type.Boolean} (alias <code>Boolean</code>)</li>
|
|
21
|
+
* <li>{@link sap.ui.model.type.Currency} (alias <code>Currency</code>)</li>
|
|
22
|
+
* <li>{@link sap.ui.model.type.Date} (alias <code>Date</code>)</li>
|
|
23
|
+
* <li>{@link sap.ui.model.type.DateTime} (alias <code>DateTime</code>)</li>
|
|
24
|
+
* <li>{@link sap.ui.model.type.Float} (alias <code>Float</code>)</li>
|
|
25
|
+
* <li>{@link sap.ui.model.type.Integer} (alias <code>Integer</code>)</li>
|
|
26
|
+
* <li>{@link sap.ui.model.type.String} (alias <code>String</code>)</li>
|
|
27
|
+
* <li>{@link sap.ui.model.type.Time} (alias <code>Time</code>)</li>
|
|
28
|
+
* <li>{@link sap.ui.model.type.Unit} (alias <code>Unit</code>)</li>
|
|
29
29
|
* </ul>
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.116.0
|
|
33
33
|
* @public
|
|
34
34
|
* @since 1.114.0
|
|
35
35
|
* @namespace
|
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -52,11 +52,11 @@ sap.ui.define([
|
|
|
52
52
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
53
53
|
*
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.116.0
|
|
56
56
|
*
|
|
57
57
|
* @constructor
|
|
58
58
|
* @alias sap.ui.mdc.Field
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.116.0
|
|
60
60
|
* @since 1.54.0
|
|
61
61
|
*
|
|
62
62
|
* @public
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
22
22
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.116.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
27
27
|
* @since 1.61.0
|
|
@@ -228,7 +228,7 @@ sap.ui.define([
|
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* Returns the external conditions of the inner condition model.
|
|
231
|
-
* <b>Note:</b> This API returns only attributes related to the {@link sap.ui.mdc.FilterBar#p13nMode} property configuration.
|
|
231
|
+
* <b>Note:</b> This API returns only attributes related to the {@link sap.ui.mdc.FilterBar#setP13nMode p13nMode} property configuration.
|
|
232
232
|
* @public
|
|
233
233
|
* @returns {sap.ui.mdc.State} Object containing the current status of the <code>FilterBar</code>
|
|
234
234
|
*/
|
|
@@ -28,8 +28,8 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
28
28
|
* method might be called without the parameter <code>mPropertyBag</code>.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
31
32
|
* @param {string} sPropertyName The name of the property info object/JSON
|
|
32
|
-
* @param {sap.ui.mdc.Control} oControl Instance of an <code>sap.ui.mdc.Control</code>
|
|
33
33
|
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility change API
|
|
34
34
|
*
|
|
35
35
|
* @returns {Promise<sap.ui.mdc.FilterField>} <code>Promise</code> that resolves with an instance of the implementing {@link sap.ui.mdc.FilterField Control}.
|
|
@@ -38,8 +38,8 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
38
38
|
* has already been created, it must to either return the existing instance or create a new instance.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
-
FilterBarDelegate.addItem = function(
|
|
42
|
-
return AggregationBaseDelegate.addItem(
|
|
41
|
+
FilterBarDelegate.addItem = function(oFilterBar, sPropertyName, mPropertyBag) {
|
|
42
|
+
return AggregationBaseDelegate.addItem(oFilterBar, sPropertyName, mPropertyBag);
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -51,42 +51,42 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
51
51
|
* method can be called without the parameter <code>mPropertyBag</code>.
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
|
-
* @param {sap.ui.
|
|
55
|
-
* @param {sap.ui.mdc.
|
|
54
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
55
|
+
* @param {sap.ui.mdc.FilterField} oFilterField The filter field instance that was removed
|
|
56
56
|
* @param {Object} [mPropertyBag] Instance of property bag from SAPUI5 flexibility
|
|
57
57
|
*
|
|
58
58
|
* @returns {Promise<boolean>} <code>Promise</code> that resolved with <code>true</code>, <code>false</code> to allow/prevent default behavior of the change
|
|
59
59
|
*/
|
|
60
|
-
FilterBarDelegate.removeItem = function(
|
|
60
|
+
FilterBarDelegate.removeItem = function(oFilterBar, oFilterField, mPropertyBag) {
|
|
61
61
|
// return true within the Promise for default behavior
|
|
62
|
-
return AggregationBaseDelegate.removeItem(
|
|
62
|
+
return AggregationBaseDelegate.removeItem(oFilterBar, oFilterField, mPropertyBag);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* This method is called during the appliance of the add condition change.
|
|
67
|
-
* The intention is to update the {@link sap.ui.mdc.
|
|
67
|
+
* The intention is to update the {@link sap.ui.mdc.FilterBarBase#setPropertyInfo propertyInfo} property.
|
|
68
68
|
*
|
|
69
69
|
* @public
|
|
70
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
70
71
|
* @param {string} sPropertyName The name of a property
|
|
71
|
-
* @param {sap.ui.mdc.Control} oControl The instance of a filter bar
|
|
72
72
|
* @param {Object} mPropertyBag Instance of a property bag from the SAPUI5 flexibility change API
|
|
73
73
|
* @returns {Promise} <code>Promise</code> that is resolved once the propertyInfo property has been updated
|
|
74
74
|
*/
|
|
75
|
-
FilterBarDelegate.addCondition = function(
|
|
75
|
+
FilterBarDelegate.addCondition = function(oFilterBar, sPropertyName, mPropertyBag) {
|
|
76
76
|
return Promise.resolve();
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/**
|
|
79
|
+
/** propertyInfo
|
|
80
80
|
* This method is called during the appliance of the remove condition change.
|
|
81
|
-
* The intention is to update the
|
|
81
|
+
* The intention is to update the {@link sap.ui.mdc.FilterBarBase#setPropertyInfo propertyInfo} property.
|
|
82
82
|
*
|
|
83
83
|
* @public
|
|
84
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
84
85
|
* @param {string} sPropertyName The name of a property
|
|
85
|
-
* @param {sap.ui.mdc.Control} oControl The instance of a filter bar
|
|
86
86
|
* @param {Object} mPropertyBag Instance of a property bag from the SAPUI5 flexibility change API
|
|
87
87
|
* @returns {Promise} <code>Promise</code> that is resolved once the propertyInfo property has been updated
|
|
88
88
|
*/
|
|
89
|
-
FilterBarDelegate.removeCondition = function(
|
|
89
|
+
FilterBarDelegate.removeCondition = function(oFilterBar, sPropertyName, mPropertyBag) {
|
|
90
90
|
return Promise.resolve();
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -95,21 +95,21 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
95
95
|
* Retrieves the relevant metadata for a given payload and returns the property info array.
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
98
|
-
* @param {sap.ui.mdc.
|
|
98
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
99
99
|
* @returns {Promise<sap.ui.mdc.filterbar.PropertyInfo[]>} Once resolved, an array of property info objects is returned
|
|
100
100
|
*/
|
|
101
|
-
FilterBarDelegate.fetchProperties = function(
|
|
102
|
-
return AggregationBaseDelegate.fetchProperties(
|
|
101
|
+
FilterBarDelegate.fetchProperties = function(oFilterBar) {
|
|
102
|
+
return AggregationBaseDelegate.fetchProperties(oFilterBar);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* This method is called when the Clear button is pressed.
|
|
107
107
|
*
|
|
108
108
|
* @public
|
|
109
|
-
* @param {sap.ui.mdc.
|
|
109
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
110
110
|
* @returns {Promise} <code>Promise</code> that is resolved once the action has been completed
|
|
111
111
|
*/
|
|
112
|
-
FilterBarDelegate.clearFilters = function(
|
|
112
|
+
FilterBarDelegate.clearFilters = function(oFilterBar) {
|
|
113
113
|
return Promise.resolve();
|
|
114
114
|
};
|
|
115
115
|
|
|
@@ -117,7 +117,7 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
117
117
|
* A validator to evaluate the filter bar state.
|
|
118
118
|
*
|
|
119
119
|
* @public
|
|
120
|
-
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of
|
|
120
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
121
121
|
* @param {map} [mValidation] Object describing the validation result. This object is only provided when called from the {@link sap.ui.mdc.FilterBar FilterBar}
|
|
122
122
|
* @param {string} [mValidation.status] Status of the validation {@link sap.ui.mdc.enums.FilterBarValidationStatus}
|
|
123
123
|
* @returns {sap.ui.mdc.enums.FilterBarValidationStatus} The inner filter bar state
|
|
@@ -130,7 +130,7 @@ sap.ui.define(["sap/ui/mdc/AggregationBaseDelegate", "sap/ui/mdc/enums/FilterBar
|
|
|
130
130
|
* Visualizes the filter bar validation state.
|
|
131
131
|
*
|
|
132
132
|
* @public
|
|
133
|
-
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of
|
|
133
|
+
* @param {sap.ui.mdc.FilterBar} oFilterBar Instance of the filter bar
|
|
134
134
|
* @param {map} mValidation Describes the validation result. This object is only provided when called from the {@link sap.ui.mdc.FilterBar FilterBar}
|
|
135
135
|
* @param {sap.ui.mdc.enums.FilterBarValidationStatus} mValidation.status Status of the validation as returned via {@link sap.ui.mdc.filterbar.FilterBarBase#checkValidationState checkValidationState}
|
|
136
136
|
*/
|
|
@@ -30,30 +30,32 @@ sap.ui.define([
|
|
|
30
30
|
* That is why the <code>conditions</code> property must be bound to the related conditions in the {@link sap.ui.mdc.condition.ConditionModel ConditionModel}.
|
|
31
31
|
* The type of this data must be defined in the <code>dataType</code> property.
|
|
32
32
|
*
|
|
33
|
+
* Based on the data type settings, a default control is rendered by the <code>FilterField</code> as follows:
|
|
34
|
+
*
|
|
33
35
|
* <ul>
|
|
34
|
-
* <li>In display mode
|
|
35
|
-
* <li>If <code>multipleLines</code> is set
|
|
36
|
-
* <li>If multiple values are allowed a {@link sap.m.Tokenizer Tokenizer} control is rendered.</li>
|
|
37
|
-
* <li>In edit mode
|
|
38
|
-
* <li>If multiple values are allowed a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
39
|
-
* <li>If <code>multipleLines</code> is set a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
40
|
-
* <li>If a date type or a date
|
|
36
|
+
* <li>In display mode, usually a {@link sap.m.Text Text} control is rendered.</li>
|
|
37
|
+
* <li>If <code>multipleLines</code> is set, an {@link sap.m.ExpandableText ExpandableText} control is rendered.</li>
|
|
38
|
+
* <li>If multiple values are allowed, a {@link sap.m.Tokenizer Tokenizer} control is rendered.</li>
|
|
39
|
+
* <li>In edit mode, usually an {@link sap.m.Input Input} control is rendered.</li>
|
|
40
|
+
* <li>If multiple values are allowed, a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
41
|
+
* <li>If <code>multipleLines</code> is set, a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
42
|
+
* <li>If a date type or a date/time type is used, a {@link sap.m.DateRangeSelection DateRangeSelection} control is rendered.</li>
|
|
41
43
|
* <li>If a date type is used and only single values are allowed, a {@link sap.m.DatePicker DatePicker} control is rendered.</li>
|
|
42
44
|
* <li>If a date type is used and only single ranges are allowed, a {@link sap.m.DateRangeSelection DateRangeSelection} control is rendered.</li>
|
|
43
|
-
* <li>If a date
|
|
45
|
+
* <li>If a date/time type is used and only single values are allowed, a {@link sap.m.DateTimePicker DateTimePicker} control is rendered.</li>
|
|
44
46
|
* <li>If a time type is used and only single values are allowed, a {@link sap.m.TimePicker TimePicker} control is rendered.</li>
|
|
45
|
-
* <li>If used for search a {@link sap.m.SearchField SearchField} control is rendered.</li>
|
|
47
|
+
* <li>If used for search, a {@link sap.m.SearchField SearchField} control is rendered.</li>
|
|
46
48
|
* </ul>
|
|
47
49
|
*
|
|
48
50
|
* @extends sap.ui.mdc.field.FieldBase
|
|
49
51
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
50
52
|
*
|
|
51
53
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
54
|
+
* @version 1.116.0
|
|
53
55
|
*
|
|
54
56
|
* @constructor
|
|
55
57
|
* @alias sap.ui.mdc.FilterField
|
|
56
|
-
* @version 1.
|
|
58
|
+
* @version 1.116.0
|
|
57
59
|
* @since 1.48.0
|
|
58
60
|
*
|
|
59
61
|
* @public
|
|
@@ -67,7 +69,7 @@ sap.ui.define([
|
|
|
67
69
|
/**
|
|
68
70
|
* Supported operator names for conditions.
|
|
69
71
|
*
|
|
70
|
-
* If empty, default operators depending on used data type are
|
|
72
|
+
* If empty, default operators depending on used data type are taken.
|
|
71
73
|
*
|
|
72
74
|
* @since 1.73.0
|
|
73
75
|
*/
|
|
@@ -129,7 +131,7 @@ sap.ui.define([
|
|
|
129
131
|
|
|
130
132
|
/**
|
|
131
133
|
* Returns a <code>Promise</code> for the change. The <code>Promise</code> returns the value if it is resolved.
|
|
132
|
-
* If the <code>change</code> event is synchronous, the
|
|
134
|
+
* If the <code>change</code> event is synchronous, the <code>Promise</code> has already been resolved. If it is asynchronous,
|
|
133
135
|
* it will be resolved after the value has been updated.
|
|
134
136
|
*
|
|
135
137
|
* The <code>FilterField</code> should be set to busy during the parsing to prevent user input.
|
package/src/sap/ui/mdc/Link.js
CHANGED
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
* @extends sap.ui.mdc.field.FieldInfoBase
|
|
81
81
|
*
|
|
82
82
|
* @author SAP SE
|
|
83
|
-
* @version 1.
|
|
83
|
+
* @version 1.116.0
|
|
84
84
|
*
|
|
85
85
|
* @constructor
|
|
86
86
|
* @alias sap.ui.mdc.Link
|
|
@@ -483,6 +483,8 @@ sap.ui.define([
|
|
|
483
483
|
// ----------------------- sap/ui/mdc/LinkDelegate function calls ----------------------------------------------
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
|
+
* Retrieves the <code>AdditionalContent</code> objects depending on the given <code>LinkDelegate</code>.
|
|
487
|
+
* Caches the returned objects for further usage.
|
|
486
488
|
* @returns {Promise<sap.ui.core.Control[]>} Resolves an array of type {@link sap.ui.core.Control}
|
|
487
489
|
* @public
|
|
488
490
|
*/
|
|
@@ -526,6 +528,7 @@ sap.ui.define([
|
|
|
526
528
|
};
|
|
527
529
|
|
|
528
530
|
/**
|
|
531
|
+
* Determines the <code>LinkType</code> object depending on the given <code>LinkDelegate</code>.
|
|
529
532
|
* @returns {Promise<undefined|sap.ui.mdc.link.LinkType>} Returns <code>undefined</code> or a {@link sap.ui.mdc.link.LinkType}, once resolved
|
|
530
533
|
* @public
|
|
531
534
|
*/
|
|
@@ -27,13 +27,13 @@ sap.ui.define([
|
|
|
27
27
|
* @class
|
|
28
28
|
* A <code>MultiValueField</code> control can hold multiple values. The values are stored as items.
|
|
29
29
|
* A <code>MultiValueField</code> control can be used to bind its items to data of a certain data type. Based on the data type settings, a default
|
|
30
|
-
* control is rendered by the <code>MultiValueField</code> control
|
|
30
|
+
* control is rendered by the <code>MultiValueField</code> control as follows:
|
|
31
31
|
*
|
|
32
32
|
* <ul>
|
|
33
|
-
* <li>In display mode
|
|
34
|
-
* <li>If <code>multipleLines</code> is set
|
|
35
|
-
* <li>In edit mode
|
|
36
|
-
* <li>If <code>multipleLines</code> is set a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
33
|
+
* <li>In display mode, usually a {@link sap.m.Tokenizer Tokenizer} control is rendered.</li>
|
|
34
|
+
* <li>If <code>multipleLines</code> is set, an {@link sap.m.ExpandableText ExpandableText} control is rendered.</li>
|
|
35
|
+
* <li>In edit mode, usually a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
36
|
+
* <li>If <code>multipleLines</code> is set, a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
37
37
|
* </ul>
|
|
38
38
|
*
|
|
39
39
|
* @extends sap.ui.mdc.field.FieldBase
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @constructor
|
|
43
43
|
* @alias sap.ui.mdc.MultiValueField
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.116.0
|
|
46
46
|
* @since 1.93.0
|
|
47
47
|
*
|
|
48
48
|
* @public
|
|
@@ -103,7 +103,7 @@ sap.ui.define([
|
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Returns a <code>Promise</code> for the change. The <code>Promise</code> returns the items when it is resolved.
|
|
106
|
-
* If the <code>change</code> event is synchronous, the
|
|
106
|
+
* If the <code>change</code> event is synchronous, the <code>Promise</code> has already been resolved. If it is asynchronous,
|
|
107
107
|
* it will be resolved after the items have been updated.
|
|
108
108
|
*
|
|
109
109
|
* The <code>MultiValueField</code> control should be set to busy during the parsing to prevent user input.
|
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -213,6 +213,17 @@ sap.ui.define([
|
|
|
213
213
|
group: "Appearance",
|
|
214
214
|
defaultValue: TitleLevel.Auto
|
|
215
215
|
},
|
|
216
|
+
/**
|
|
217
|
+
* Defines style of the header.
|
|
218
|
+
* For more information, see {@link sap.m.Title#setTitleStyle}.
|
|
219
|
+
* @experimental Internal use only
|
|
220
|
+
* @ui5-restricted sap.fe
|
|
221
|
+
* @since 1.116
|
|
222
|
+
*/
|
|
223
|
+
headerStyle: {
|
|
224
|
+
type: "sap.ui.core.TitleLevel",
|
|
225
|
+
group: "Appearance"
|
|
226
|
+
},
|
|
216
227
|
/**
|
|
217
228
|
* Determines whether to bind the table automatically after the initial creation or re-creation of the table.
|
|
218
229
|
*/
|
|
@@ -984,6 +995,18 @@ sap.ui.define([
|
|
|
984
995
|
return this;
|
|
985
996
|
};
|
|
986
997
|
|
|
998
|
+
Table.prototype.setHeaderStyle = function(sStyle) {
|
|
999
|
+
if (this.getHeaderStyle() === sStyle) {
|
|
1000
|
+
return this;
|
|
1001
|
+
}
|
|
1002
|
+
this.setProperty("headerStyle", sStyle, true);
|
|
1003
|
+
this._oTitle && this._oTitle.setTitleStyle(this.getHeaderStyle() || TitleLevel.H4);
|
|
1004
|
+
return this;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* @inheritDoc
|
|
1009
|
+
*/
|
|
987
1010
|
Table.prototype.focus = function(oFocusInfo) {
|
|
988
1011
|
if (this._oTable) {
|
|
989
1012
|
this._oTable.focus(oFocusInfo);
|
|
@@ -1617,7 +1640,7 @@ sap.ui.define([
|
|
|
1617
1640
|
text: this.getHeader(),
|
|
1618
1641
|
width: this.getHeaderVisible() ? undefined : "0px",
|
|
1619
1642
|
level: this.getHeaderLevel(),
|
|
1620
|
-
titleStyle: TitleLevel.H4
|
|
1643
|
+
titleStyle: this.getHeaderStyle() || TitleLevel.H4
|
|
1621
1644
|
});
|
|
1622
1645
|
// Create Toolbar
|
|
1623
1646
|
this._oToolbar = new ActionToolbar(this.getId() + "-toolbar", {
|
|
@@ -1725,7 +1748,7 @@ sap.ui.define([
|
|
|
1725
1748
|
* Fetches the current state of the table (as a JSON)
|
|
1726
1749
|
* <b>Note:</b> This API may return attributes corresponding to the <code>p13nMode</code> property configuration.
|
|
1727
1750
|
*
|
|
1728
|
-
* @
|
|
1751
|
+
* @private
|
|
1729
1752
|
* @returns {Object} Current state of the table
|
|
1730
1753
|
*/
|
|
1731
1754
|
Table.prototype.getCurrentState = function() {
|
|
@@ -1762,7 +1785,7 @@ sap.ui.define([
|
|
|
1762
1785
|
/**
|
|
1763
1786
|
* Checks whether filter personalization is enabled.
|
|
1764
1787
|
*
|
|
1765
|
-
* @
|
|
1788
|
+
* @private
|
|
1766
1789
|
* @returns {boolean} Whether filter personalization is enabled
|
|
1767
1790
|
*/
|
|
1768
1791
|
Table.prototype.isFilteringEnabled = function() {
|
|
@@ -1772,7 +1795,7 @@ sap.ui.define([
|
|
|
1772
1795
|
/**
|
|
1773
1796
|
* Checks whether sort personalization is enabled.
|
|
1774
1797
|
*
|
|
1775
|
-
* @
|
|
1798
|
+
* @private
|
|
1776
1799
|
* @returns {boolean} Whether sort personalization is enabled
|
|
1777
1800
|
*/
|
|
1778
1801
|
Table.prototype.isSortingEnabled = function() {
|
|
@@ -1782,7 +1805,7 @@ sap.ui.define([
|
|
|
1782
1805
|
/**
|
|
1783
1806
|
* Checks whether group personalization is enabled.
|
|
1784
1807
|
*
|
|
1785
|
-
* @
|
|
1808
|
+
* @private
|
|
1786
1809
|
* @returns {boolean} Whether group personalization is enabled
|
|
1787
1810
|
*/
|
|
1788
1811
|
Table.prototype.isGroupingEnabled = function () {
|
|
@@ -1792,7 +1815,7 @@ sap.ui.define([
|
|
|
1792
1815
|
/**
|
|
1793
1816
|
* Checks whether aggregation personalization is enabled.
|
|
1794
1817
|
*
|
|
1795
|
-
* @
|
|
1818
|
+
* @private
|
|
1796
1819
|
* @returns {boolean} Whether aggregation personalization is enabled
|
|
1797
1820
|
*/
|
|
1798
1821
|
Table.prototype.isAggregationEnabled = function () {
|
|
@@ -2614,9 +2637,9 @@ sap.ui.define([
|
|
|
2614
2637
|
/**
|
|
2615
2638
|
* Static method for checking and wrapping binding event listeners
|
|
2616
2639
|
*
|
|
2617
|
-
* @param {object} oBindingInfo
|
|
2618
|
-
* @param {object} sEventName
|
|
2619
|
-
* @param {object} fHandler
|
|
2640
|
+
* @param {object} oBindingInfo The <code>bindingInfo</code> (or binding parameter) instance
|
|
2641
|
+
* @param {object} sEventName The event name
|
|
2642
|
+
* @param {object} fHandler The handler that is called internally
|
|
2620
2643
|
* @private
|
|
2621
2644
|
*/
|
|
2622
2645
|
Table._addBindingListener = function(oBindingInfo, sEventName, fHandler) {
|
|
@@ -58,16 +58,9 @@ sap.ui.define([
|
|
|
58
58
|
oBindingInfo.filters = this.getFilters(oTable);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (oGroupedProperty) {
|
|
65
|
-
var oSorter = this.getGroupSorter(oTable, oGroupedProperty.name);
|
|
66
|
-
|
|
67
|
-
if (oSorter) {
|
|
68
|
-
oBindingInfo.sorter.push(oSorter);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
61
|
+
var oGroupSorter = this.getGroupSorter(oTable);
|
|
62
|
+
if (oGroupSorter) {
|
|
63
|
+
oBindingInfo.sorter.push(oGroupSorter);
|
|
71
64
|
}
|
|
72
65
|
|
|
73
66
|
|
|
@@ -125,22 +118,27 @@ sap.ui.define([
|
|
|
125
118
|
* Creates a new sorter for the grouping functionality.
|
|
126
119
|
*
|
|
127
120
|
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
128
|
-
* @param {string} sPropertyName Property to group
|
|
129
121
|
* @returns {sap.ui.model.Sorter | undefined} New sorter
|
|
130
122
|
* @protected
|
|
131
123
|
*/
|
|
132
|
-
TableDelegate.getGroupSorter = function(oTable
|
|
124
|
+
TableDelegate.getGroupSorter = function(oTable) {
|
|
125
|
+
var oGroupedProperty = oTable._getGroupedProperties()[0];
|
|
126
|
+
|
|
127
|
+
if (!oGroupedProperty || !oTable._isOfType(TableType.ResponsiveTable)) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
|
|
133
131
|
var oSortedProperty = oTable._getSortedProperties().find(function(oProperty) {
|
|
134
|
-
return oProperty.name ===
|
|
132
|
+
return oProperty.name === oGroupedProperty.name;
|
|
135
133
|
});
|
|
136
|
-
var sPath = oTable.getPropertyHelper().getProperty(
|
|
134
|
+
var sPath = oTable.getPropertyHelper().getProperty(oGroupedProperty.name).path;
|
|
137
135
|
var bDescending = oSortedProperty ? oSortedProperty.descending : false;
|
|
138
136
|
|
|
139
|
-
if (!oTable._mFormatGroupHeaderInfo || oTable._mFormatGroupHeaderInfo.propertyName !==
|
|
137
|
+
if (!oTable._mFormatGroupHeaderInfo || oTable._mFormatGroupHeaderInfo.propertyName !== oGroupedProperty.name) {
|
|
140
138
|
oTable._mFormatGroupHeaderInfo = {
|
|
141
|
-
propertyName:
|
|
139
|
+
propertyName: oGroupedProperty.name,
|
|
142
140
|
formatter: function(oContext) {
|
|
143
|
-
return this.formatGroupHeader(oTable, oContext,
|
|
141
|
+
return this.formatGroupHeader(oTable, oContext, oGroupedProperty.name);
|
|
144
142
|
}.bind(this)
|
|
145
143
|
};
|
|
146
144
|
}
|