@openui5/sap.ui.mdc 1.101.0 → 1.102.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/.eslintrc.json +19 -0
- package/THIRDPARTY.txt +1 -1
- 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/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +9 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +2 -2
- 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 +66 -148
- package/src/sap/ui/mdc/TableDelegate.js +3 -23
- package/src/sap/ui/mdc/ValueHelp.js +20 -14
- package/src/sap/ui/mdc/ValueHelpDelegate.js +9 -3
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +5 -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 +9 -9
- package/src/sap/ui/mdc/condition/Operator.js +85 -15
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +5 -3
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +13 -1
- package/src/sap/ui/mdc/enum/PropagationReason.js +2 -2
- package/src/sap/ui/mdc/enum/SelectType.js +3 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +30 -13
- package/src/sap/ui/mdc/field/ConditionsType.js +6 -2
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +15 -19
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +3 -3
- package/src/sap/ui/mdc/field/FieldBase.js +18 -4
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
- 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/FieldValueHelp.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +7 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +28 -29
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.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/OutParameter.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/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +43 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +21 -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/library.js +4 -4
- 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/ContactDetailsRenderer.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 +1 -1
- package/src/sap/ui/mdc/messagebundle_ar.properties +3 -3
- package/src/sap/ui/mdc/messagebundle_bg.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_ca.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_cs.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_cy.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_da.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_de.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_el.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_en.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_es.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_et.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_fi.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_fr.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_hi.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_hr.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_hu.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_id.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_it.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_iw.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_ja.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_kk.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_ko.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_lt.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_lv.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_ms.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_nl.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_no.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_pl.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_pt.properties +6 -6
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_ro.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_ru.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_sh.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_sk.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_sl.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_sv.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_th.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_tr.properties +3 -3
- package/src/sap/ui/mdc/messagebundle_uk.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_vi.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +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/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +4 -4
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -0
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +19 -3
- package/src/sap/ui/mdc/p13n/Engine.js +8 -4
- 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/modules/DefaultProviderRegistry.js +14 -11
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +42 -18
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -0
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +0 -5
- package/src/sap/ui/mdc/table/PropertyHelper.js +27 -74
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +29 -17
- 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/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +3 -3
- package/src/sap/ui/mdc/themes/base/Chart.less +5 -0
- package/src/sap/ui/mdc/util/DateUtil.js +30 -5
- 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/valuehelp/Dialog.js +61 -26
- package/src/sap/ui/mdc/valuehelp/Popover.js +2 -2
- package/src/sap/ui/mdc/valuehelp/base/Container.js +9 -5
- package/src/sap/ui/mdc/valuehelp/base/Content.js +23 -9
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +43 -7
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -3
- 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/MDCTable.js +7 -3
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +8 -2
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -2
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +53 -12
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +6 -6
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +87 -120
- package/test/sap/ui/mdc/testutils/opa/p13n/waitForSelectWithSelectedTextOnPanel.js +5 -2
- package/test/sap/ui/mdc/testutils/opa/table/Actions.js +70 -0
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +9 -7
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/ListCollection.js +0 -205
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"overrides": [
|
|
3
|
+
/*
|
|
4
|
+
* Productive code, sample and unit test code of sap.ui.mdc has been cleaned up.
|
|
5
|
+
* No more references to the global jQuery allowed
|
|
6
|
+
*/
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"src/**/*.js",
|
|
10
|
+
"test/sap/ui/mdc/demokit/**/*.js",
|
|
11
|
+
"test/sap/ui/mdc/integration/**/*.js",
|
|
12
|
+
"test/sap/ui/mdc/qunit/**/*.js"
|
|
13
|
+
],
|
|
14
|
+
"globals": {
|
|
15
|
+
"jQuery": "off"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/THIRDPARTY.txt
CHANGED
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.39
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
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.102.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.102.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.102.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.102.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-2022 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.102.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.102.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.58
|
package/src/sap/ui/mdc/Chart.js
CHANGED
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
* @class The Chart control creates a chart based on metadata and the configuration specified.
|
|
63
63
|
* @extends sap.ui.mdc.Control
|
|
64
64
|
* @author SAP SE
|
|
65
|
-
* @version 1.
|
|
65
|
+
* @version 1.102.0
|
|
66
66
|
* @constructor
|
|
67
67
|
* @experimental As of version ...
|
|
68
68
|
* @private
|
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -46,12 +46,12 @@ sap.ui.define([
|
|
|
46
46
|
* @implements sap.ui.core.IFormContent
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.102.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @alias sap.ui.mdc.Field
|
|
53
53
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
54
|
+
* @version 1.102.0
|
|
55
55
|
* @since 1.54.0
|
|
56
56
|
* @experimental As of version 1.54
|
|
57
57
|
*
|
|
@@ -166,6 +166,13 @@ sap.ui.define([
|
|
|
166
166
|
!deepEqual(oDataType.getConstraints(), oBindingInfo.type.getConstraints()) ||
|
|
167
167
|
oDataType._bCreatedByOperator !== oBindingInfo.type._bCreatedByOperator)) {
|
|
168
168
|
this._oContentFactory.setDataType(oBindingInfo.type);
|
|
169
|
+
if (oBindingInfo.type.isA("sap.ui.model.CompositeType") && oBindingInfo.parts) {
|
|
170
|
+
var aTypes = [];
|
|
171
|
+
for (var i = 0; i < oBindingInfo.parts.length; i++) {
|
|
172
|
+
aTypes.push(oBindingInfo.parts[i].type);
|
|
173
|
+
}
|
|
174
|
+
this._oContentFactory.setCompositeTypes(aTypes);
|
|
175
|
+
}
|
|
169
176
|
this._oContentFactory.updateConditionType();
|
|
170
177
|
this.invalidate(); // as new inner control might be needed
|
|
171
178
|
}
|
|
@@ -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.102.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @experimental As of version 1.61
|
|
27
27
|
* @private
|
|
@@ -33,12 +33,12 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.mdc.field.FieldBase
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.102.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @alias sap.ui.mdc.FilterField
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.102.0
|
|
42
42
|
* @since 1.48.0
|
|
43
43
|
*
|
|
44
44
|
* @experimental As of version 1.48
|
package/src/sap/ui/mdc/Link.js
CHANGED
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -29,7 +29,6 @@ sap.ui.define([
|
|
|
29
29
|
"sap/ui/core/library",
|
|
30
30
|
"sap/ui/events/KeyCodes",
|
|
31
31
|
"sap/ui/model/Sorter",
|
|
32
|
-
"sap/ui/dom/containsOrEquals",
|
|
33
32
|
"sap/base/strings/capitalize",
|
|
34
33
|
"sap/base/util/deepEqual",
|
|
35
34
|
"sap/base/util/Deferred",
|
|
@@ -73,7 +72,6 @@ sap.ui.define([
|
|
|
73
72
|
coreLibrary,
|
|
74
73
|
KeyCodes,
|
|
75
74
|
Sorter,
|
|
76
|
-
containsOrEquals,
|
|
77
75
|
capitalize,
|
|
78
76
|
deepEqual,
|
|
79
77
|
Deferred,
|
|
@@ -97,7 +95,6 @@ sap.ui.define([
|
|
|
97
95
|
|
|
98
96
|
var SelectionMode = library.SelectionMode;
|
|
99
97
|
var TableType = library.TableType;
|
|
100
|
-
var RowAction = library.RowAction;
|
|
101
98
|
var P13nMode = library.TableP13nMode;
|
|
102
99
|
var ToolbarDesign = MLibrary.ToolbarDesign;
|
|
103
100
|
var ToolbarStyle = MLibrary.ToolbarStyle;
|
|
@@ -172,16 +169,6 @@ sap.ui.define([
|
|
|
172
169
|
defaultValue: null,
|
|
173
170
|
invalidate: true
|
|
174
171
|
},
|
|
175
|
-
/**
|
|
176
|
-
* Actions available for a table row.
|
|
177
|
-
*
|
|
178
|
-
* @since 1.60
|
|
179
|
-
* @deprecated as of version 1.98, use row settings instead.
|
|
180
|
-
*/
|
|
181
|
-
rowAction: {
|
|
182
|
-
type: "sap.ui.mdc.RowAction[]",
|
|
183
|
-
defaultValue: []
|
|
184
|
-
},
|
|
185
172
|
/**
|
|
186
173
|
* Personalization options for the table.<br>
|
|
187
174
|
* <b>Note:</b> The order of the options does not influence the position on the UI.
|
|
@@ -889,11 +876,6 @@ sap.ui.define([
|
|
|
889
876
|
// ----End Type----
|
|
890
877
|
|
|
891
878
|
Table.prototype.setRowSettings = function(oRowSettings) {
|
|
892
|
-
if (this._oTableRowAction) {
|
|
893
|
-
if (oRowSettings.getRowActions().length == 0) {
|
|
894
|
-
oRowSettings.addRowAction(this._oTableRowAction);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
879
|
this.setAggregation("rowSettings", oRowSettings, true);
|
|
898
880
|
|
|
899
881
|
if (this._oTable) {
|
|
@@ -922,11 +904,8 @@ sap.ui.define([
|
|
|
922
904
|
};
|
|
923
905
|
|
|
924
906
|
Table.prototype.focus = function(oFocusInfo) {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
if (this._oTable && oDomRef && !containsOrEquals(oDomRef, document.activeElement)) {
|
|
929
|
-
this._oTable.focus();
|
|
907
|
+
if (this._oTable) {
|
|
908
|
+
this._oTable.focus(oFocusInfo);
|
|
930
909
|
}
|
|
931
910
|
};
|
|
932
911
|
|
|
@@ -968,24 +947,6 @@ sap.ui.define([
|
|
|
968
947
|
return this;
|
|
969
948
|
};
|
|
970
949
|
|
|
971
|
-
// TODO: Temporary solution until apps adapted changes. Remove this, as this is replaced by rowSettings
|
|
972
|
-
Table.prototype.setRowAction = function(aActions) {
|
|
973
|
-
this.setProperty("rowAction", aActions, true);
|
|
974
|
-
|
|
975
|
-
var oRowSettings = this.getRowSettings() || new RowSettings();
|
|
976
|
-
|
|
977
|
-
oRowSettings.destroyRowActions();
|
|
978
|
-
if (this.getRowAction().indexOf(RowAction.Navigation) > -1) {
|
|
979
|
-
this._oTableRowAction = new RowActionItem({
|
|
980
|
-
type: RowAction.Navigation
|
|
981
|
-
});
|
|
982
|
-
oRowSettings.addRowAction(this._oTableRowAction);
|
|
983
|
-
}
|
|
984
|
-
this.setRowSettings(oRowSettings);
|
|
985
|
-
|
|
986
|
-
return this;
|
|
987
|
-
};
|
|
988
|
-
|
|
989
950
|
Table.prototype.setCreationRow = function(oCreationRow) {
|
|
990
951
|
this.setAggregation("creationRow", oCreationRow, true);
|
|
991
952
|
|
|
@@ -1131,7 +1092,7 @@ sap.ui.define([
|
|
|
1131
1092
|
}
|
|
1132
1093
|
|
|
1133
1094
|
oFilterInfoBar.setVisible(false);
|
|
1134
|
-
oTable.
|
|
1095
|
+
getFilterInfoBarInvisibleText(oTable).setText("");
|
|
1135
1096
|
|
|
1136
1097
|
return;
|
|
1137
1098
|
}
|
|
@@ -1147,10 +1108,10 @@ sap.ui.define([
|
|
|
1147
1108
|
|
|
1148
1109
|
if (!oFilterInfoBar.getVisible()) {
|
|
1149
1110
|
oFilterInfoBar.setVisible(true);
|
|
1150
|
-
oTable._oTable.addAriaLabelledBy(oFilterInfoBarText);
|
|
1151
1111
|
}
|
|
1152
1112
|
|
|
1153
1113
|
oFilterInfoBarText.setText(sFilterText);
|
|
1114
|
+
getFilterInfoBarInvisibleText(oTable).setText(sFilterText);
|
|
1154
1115
|
});
|
|
1155
1116
|
}
|
|
1156
1117
|
|
|
@@ -1173,9 +1134,19 @@ sap.ui.define([
|
|
|
1173
1134
|
oTable._oTable.insertExtension(oFilterInfoBar, 1);
|
|
1174
1135
|
}
|
|
1175
1136
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1137
|
+
var oInvisibleText = getFilterInfoBarInvisibleText(oTable);
|
|
1138
|
+
oTable._oTable.addAriaLabelledBy(oInvisibleText.getId());
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
function getFilterInfoBarInvisibleText(oTable) {
|
|
1142
|
+
if (!oTable) {
|
|
1143
|
+
return null;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
if (!oTable._oFilterInfoBarInvisibleText) {
|
|
1147
|
+
oTable._oFilterInfoBarInvisibleText = new InvisibleText().toStatic();
|
|
1178
1148
|
}
|
|
1149
|
+
return oTable._oFilterInfoBarInvisibleText;
|
|
1179
1150
|
}
|
|
1180
1151
|
|
|
1181
1152
|
function createFilterInfoBar(oTable) {
|
|
@@ -1685,23 +1656,17 @@ sap.ui.define([
|
|
|
1685
1656
|
return null;
|
|
1686
1657
|
}
|
|
1687
1658
|
|
|
1688
|
-
var mDefaultExportSettings = {
|
|
1689
|
-
fileName: this.getHeader()
|
|
1690
|
-
};
|
|
1691
|
-
|
|
1692
|
-
if (!this._cachedExportSettings) {
|
|
1693
|
-
this._cachedExportSettings = mDefaultExportSettings;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
1659
|
if (!this._oExportButton) {
|
|
1697
1660
|
this._oExportButton = TableSettings.createExportButton(this.getId(), {
|
|
1698
1661
|
"default": [
|
|
1699
1662
|
function() {
|
|
1700
|
-
this._onExport(
|
|
1663
|
+
this._onExport();
|
|
1701
1664
|
}, this
|
|
1702
1665
|
],
|
|
1703
1666
|
"exportAs": [
|
|
1704
|
-
|
|
1667
|
+
function() {
|
|
1668
|
+
this._onExport(true);
|
|
1669
|
+
}, this
|
|
1705
1670
|
]
|
|
1706
1671
|
});
|
|
1707
1672
|
}
|
|
@@ -1734,8 +1699,7 @@ sap.ui.define([
|
|
|
1734
1699
|
* @returns {Promise} Column configuration to be exported
|
|
1735
1700
|
* @private
|
|
1736
1701
|
*/
|
|
1737
|
-
Table.prototype._createExportColumnConfiguration = function(
|
|
1738
|
-
var bSplitCells = mCustomConfig && mCustomConfig.splitCells;
|
|
1702
|
+
Table.prototype._createExportColumnConfiguration = function() {
|
|
1739
1703
|
var aColumns = this.getColumns();
|
|
1740
1704
|
|
|
1741
1705
|
return this._fullyInitialized().then(function() {
|
|
@@ -1743,26 +1707,35 @@ sap.ui.define([
|
|
|
1743
1707
|
var aSheetColumns = [];
|
|
1744
1708
|
|
|
1745
1709
|
aColumns.forEach(function(oColumn) {
|
|
1746
|
-
var aColumnExportSettings = oPropertyHelper.getColumnExportSettings(oColumn
|
|
1710
|
+
var aColumnExportSettings = oPropertyHelper.getColumnExportSettings(oColumn);
|
|
1747
1711
|
aSheetColumns = aSheetColumns.concat(aColumnExportSettings);
|
|
1748
1712
|
}, this);
|
|
1749
|
-
return
|
|
1713
|
+
return aSheetColumns;
|
|
1750
1714
|
}.bind(this));
|
|
1751
1715
|
};
|
|
1752
1716
|
|
|
1717
|
+
/**
|
|
1718
|
+
* Returns the label/header text of the column
|
|
1719
|
+
* @param {string} sPath column key
|
|
1720
|
+
* @returns {string|null} column label/header text. Returns null if no column or header/label text is available.
|
|
1721
|
+
* @private
|
|
1722
|
+
*/
|
|
1723
|
+
Table.prototype._getColumnLabel = function(sPath) {
|
|
1724
|
+
var oPropertyHelper = this.getPropertyHelper();
|
|
1725
|
+
var mPropertyInfo = oPropertyHelper.getProperty(sPath);
|
|
1726
|
+
return mPropertyInfo && mPropertyInfo.label;
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1753
1729
|
/**
|
|
1754
1730
|
* Triggers export via "sap.ui.export"/"Document Export Services" export functionality
|
|
1755
1731
|
*
|
|
1756
|
-
* @param {
|
|
1732
|
+
* @param {boolean} bExportAs controls whether the regular export or the Export As dialog should be called
|
|
1757
1733
|
* @returns {Promise} export build process promise
|
|
1758
1734
|
* @private
|
|
1759
1735
|
*/
|
|
1760
|
-
Table.prototype._onExport = function(
|
|
1736
|
+
Table.prototype._onExport = function(bExportAs) {
|
|
1761
1737
|
var that = this;
|
|
1762
|
-
return this._createExportColumnConfiguration(
|
|
1763
|
-
var aSheetColumns = aResult[0];
|
|
1764
|
-
var oPropertyHelper = aResult[1];
|
|
1765
|
-
|
|
1738
|
+
return this._createExportColumnConfiguration().then(function(aSheetColumns) {
|
|
1766
1739
|
// If no columns exist, show message and return without exporting
|
|
1767
1740
|
if (!aSheetColumns || !aSheetColumns.length) {
|
|
1768
1741
|
sap.ui.require(["sap/m/MessageBox"], function(MessageBox) {
|
|
@@ -1774,95 +1747,39 @@ sap.ui.define([
|
|
|
1774
1747
|
}
|
|
1775
1748
|
|
|
1776
1749
|
var oRowBinding = that._getRowBinding();
|
|
1750
|
+
var fnGetColumnLabel = that._getColumnLabel.bind(that);
|
|
1777
1751
|
var mExportSettings = {
|
|
1778
1752
|
workbook: {
|
|
1779
1753
|
columns: aSheetColumns,
|
|
1780
1754
|
context: {
|
|
1781
|
-
title: that.getHeader()
|
|
1755
|
+
title: that.getHeader()
|
|
1782
1756
|
}
|
|
1783
1757
|
},
|
|
1784
1758
|
dataSource: oRowBinding,
|
|
1785
|
-
|
|
1786
|
-
fileName: mCustomConfig ? mCustomConfig.fileName : this.getHeader()
|
|
1787
|
-
};
|
|
1788
|
-
|
|
1789
|
-
var mPDFUserSettings = {
|
|
1790
|
-
border: mCustomConfig.border,
|
|
1791
|
-
fontSize: mCustomConfig.fontSize,
|
|
1792
|
-
paperSize: mCustomConfig.selectedPaperSize,
|
|
1793
|
-
doEnableAccessibility: mCustomConfig.doEnableAccessibility,
|
|
1794
|
-
signature: mCustomConfig.signature,
|
|
1795
|
-
signatureReason: mCustomConfig.signatureReason,
|
|
1796
|
-
orientation: mCustomConfig.selectedOrientation,
|
|
1797
|
-
fitToPage: mCustomConfig.fitToPage,
|
|
1798
|
-
pdfArchive: mCustomConfig.pdfArchive
|
|
1759
|
+
fileName: that.getHeader()
|
|
1799
1760
|
};
|
|
1800
1761
|
|
|
1801
|
-
if (mExportSettings.fileType === "PDF") {
|
|
1802
|
-
Object.assign(mExportSettings, mPDFUserSettings);
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
1762
|
that._loadExportLibrary().then(function() {
|
|
1806
|
-
sap.ui.require(["sap/ui/export/
|
|
1807
|
-
var
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
}
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
oProcessor.then(function() {
|
|
1823
|
-
var mUserSettings = {
|
|
1824
|
-
splitCells: false,
|
|
1825
|
-
includeFilterSettings: false
|
|
1826
|
-
};
|
|
1827
|
-
|
|
1828
|
-
if (mCustomConfig) {
|
|
1829
|
-
mUserSettings.splitCells = mCustomConfig.splitCells;
|
|
1830
|
-
mUserSettings.includeFilterSettings = mCustomConfig.includeFilterSettings;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
ExportUtils.getExportInstance(mExportSettings).then(function(oSheet){
|
|
1834
|
-
oSheet.attachBeforeExport(function(oEvent) {
|
|
1835
|
-
var oExportSettings = oEvent.getParameter("exportSettings");
|
|
1836
|
-
|
|
1837
|
-
that.fireBeforeExport({
|
|
1838
|
-
exportSettings: oExportSettings,
|
|
1839
|
-
userExportSettings: mUserSettings
|
|
1840
|
-
});
|
|
1841
|
-
}, that);
|
|
1842
|
-
oSheet.build().finally(function() {
|
|
1843
|
-
oSheet.destroy();
|
|
1763
|
+
sap.ui.require(["sap/ui/export/ExportHandler"], function(ExportHandler) {
|
|
1764
|
+
var oHandler;
|
|
1765
|
+
|
|
1766
|
+
that.getControlDelegate().fetchExportCapabilities(that).then(function(oExportCapabilities) {
|
|
1767
|
+
if (!that._oExportHandler) {
|
|
1768
|
+
oHandler = new ExportHandler(oExportCapabilities);
|
|
1769
|
+
|
|
1770
|
+
oHandler.attachBeforeExport(function(oEvent) {
|
|
1771
|
+
that.fireBeforeExport({
|
|
1772
|
+
exportSettings: oEvent.getParameter('exportSettings'),
|
|
1773
|
+
userExportSettings: oEvent.getParameter('userExportSettings')
|
|
1774
|
+
});
|
|
1844
1775
|
});
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Opens the export settings dialog for providing user specific export settings.
|
|
1854
|
-
*
|
|
1855
|
-
* @private
|
|
1856
|
-
*/
|
|
1857
|
-
Table.prototype._onExportAs = function(mCustomConfig) {
|
|
1858
|
-
var that = this;
|
|
1859
|
-
|
|
1860
|
-
this._loadExportLibrary().then(function() {
|
|
1861
|
-
sap.ui.require(['sap/ui/export/ExportUtils'], function(ExportUtils) {
|
|
1862
|
-
that.getControlDelegate().fetchExportCapabilities().then(function(oExportCapabilities) {
|
|
1863
|
-
ExportUtils.getExportSettingsViaDialog(that._cachedExportSettings, oExportCapabilities, that).then(function(oUserInput) {
|
|
1864
|
-
that._cachedExportSettings = oUserInput;
|
|
1865
|
-
that._onExport(oUserInput);
|
|
1776
|
+
that._oExportHandler = oHandler;
|
|
1777
|
+
}
|
|
1778
|
+
if (bExportAs) {
|
|
1779
|
+
that._oExportHandler.exportAs(mExportSettings, fnGetColumnLabel);
|
|
1780
|
+
} else {
|
|
1781
|
+
that._oExportHandler.export(mExportSettings, fnGetColumnLabel);
|
|
1782
|
+
}
|
|
1866
1783
|
});
|
|
1867
1784
|
});
|
|
1868
1785
|
});
|
|
@@ -1895,7 +1812,7 @@ sap.ui.define([
|
|
|
1895
1812
|
|
|
1896
1813
|
if ((oEvent.metaKey || oEvent.ctrlKey) && oEvent.shiftKey && oEvent.which === KeyCodes.E) {
|
|
1897
1814
|
if (this.getEnableExport() && this._oExportButton && this._oExportButton.getEnabled()) {
|
|
1898
|
-
this.
|
|
1815
|
+
this._onExport(true);
|
|
1899
1816
|
oEvent.setMarked();
|
|
1900
1817
|
oEvent.preventDefault();
|
|
1901
1818
|
}
|
|
@@ -2078,10 +1995,6 @@ sap.ui.define([
|
|
|
2078
1995
|
this._oItemContainer.initializeItems()
|
|
2079
1996
|
]).then(function() {
|
|
2080
1997
|
if (this._oQuickActionContainer.hasQuickActions() || this._oItemContainer.hasItems()) {
|
|
2081
|
-
if (this._oColumnHeaderMenu._oItemsContainer) {
|
|
2082
|
-
this._oColumnHeaderMenu._oItemsContainer.destroy();
|
|
2083
|
-
this._oColumnHeaderMenu._oItemsContainer = null;
|
|
2084
|
-
}
|
|
2085
1998
|
this._oColumnHeaderMenu.openBy(oColumn);
|
|
2086
1999
|
}
|
|
2087
2000
|
}.bind(this));
|
|
@@ -2793,6 +2706,11 @@ sap.ui.define([
|
|
|
2793
2706
|
this._oFullInitialize = null;
|
|
2794
2707
|
this._oPasteButton = null;
|
|
2795
2708
|
|
|
2709
|
+
if (this._oFilterInfoBarInvisibleText) {
|
|
2710
|
+
this._oFilterInfoBarInvisibleText.destroy();
|
|
2711
|
+
this._oFilterInfoBarInvisibleText = null;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2796
2714
|
Control.prototype.exit.apply(this, arguments);
|
|
2797
2715
|
};
|
|
2798
2716
|
|
|
@@ -206,32 +206,12 @@ sap.ui.define([
|
|
|
206
206
|
/**
|
|
207
207
|
* Returns the feature set for exporting data in the MDC Table.
|
|
208
208
|
*
|
|
209
|
+
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
209
210
|
* @returns {Promise} Export capabilities with specific features
|
|
210
211
|
* @protected
|
|
211
212
|
*/
|
|
212
|
-
TableDelegate.fetchExportCapabilities = function() {
|
|
213
|
-
|
|
214
|
-
"XLSX": {} // default
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
// This is a temporary approach for testing purposes
|
|
218
|
-
if (new URL(window.location.href).search.indexOf("sap-ui-xx-enablePDFExport=true") > -1) {
|
|
219
|
-
oExportCapabilities["PDF"] = {
|
|
220
|
-
DocumentDescriptionReference: "../../../../default/iwbep/common/0001/$metadata",
|
|
221
|
-
DocumentDescriptionCollection: "MyDocumentDescriptions",
|
|
222
|
-
ArchiveFormat: true,
|
|
223
|
-
Border: true,
|
|
224
|
-
CoverPage: true,
|
|
225
|
-
FitToPage: true,
|
|
226
|
-
FontName: true,
|
|
227
|
-
FontSize: true,
|
|
228
|
-
Margin: true,
|
|
229
|
-
Signature: true,
|
|
230
|
-
ResultSizeDefault: 5000,
|
|
231
|
-
ResultSizeMaximum: 20000
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
return Promise.resolve(oExportCapabilities);
|
|
213
|
+
TableDelegate.fetchExportCapabilities = function(oTable) {
|
|
214
|
+
return Promise.resolve({ XLSX: {} });
|
|
235
215
|
};
|
|
236
216
|
|
|
237
217
|
TableDelegate.getSupportedP13nModes = function(oTable) {
|