@openui5/sap.ui.mdc 1.102.1 → 1.102.2
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/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 +2 -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 +48 -12
- package/src/sap/ui/mdc/TableDelegate.js +25 -9
- 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/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +1 -1
- 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 +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/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- 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/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +9 -62
- package/src/sap/ui/mdc/field/FieldBase.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +7 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- 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/DateContent.js +3 -3
- 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 +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/library.js +2 -2
- 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 +2 -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 +3 -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 +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +53 -16
- package/src/sap/ui/mdc/p13n/Engine.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +4 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.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/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/InfoPanel.less +0 -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/valuehelp/Dialog.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/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/MDCTable.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +1 -1
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class Base type for <code>FieldValueHelp</code> content control wrapper.
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
|
-
* @version 1.102.
|
|
26
|
+
* @version 1.102.2
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @param {object} [mSettings] Initial settings for the new control
|
|
36
36
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
37
37
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
38
|
-
* @version 1.102.
|
|
38
|
+
* @version 1.102.2
|
|
39
39
|
* @constructor
|
|
40
40
|
* @private
|
|
41
41
|
* @ui5-restricted sap.fe
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @param {object} [mSettings] Initial settings for the new control
|
|
43
43
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
44
44
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
45
|
-
* @version 1.102.
|
|
45
|
+
* @version 1.102.2
|
|
46
46
|
* @constructor
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted sap.fe
|
|
@@ -110,6 +110,12 @@ sap.ui.define([
|
|
|
110
110
|
|
|
111
111
|
FieldValueHelpMdcTableWrapper.prototype.fieldHelpClose = function() {
|
|
112
112
|
this._bSearchTriggered = false;
|
|
113
|
+
|
|
114
|
+
var oFilterBar = this._getFieldHelp()._getFilterBar();
|
|
115
|
+
if (oFilterBar) {
|
|
116
|
+
Engine.getInstance().reset(oFilterBar, ["Filter"]);
|
|
117
|
+
}
|
|
118
|
+
|
|
113
119
|
FieldValueHelpTableWrapperBase.prototype.fieldHelpClose.apply(this, arguments);
|
|
114
120
|
return this;
|
|
115
121
|
};
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @param {object} [mSettings] Initial settings for the new control
|
|
48
48
|
* @class Wrapper to use a table control as content of a <code>FieldValueHelp</code> element
|
|
49
49
|
* @extends sap.ui.mdc.field.FieldValueHelpContentWrapperBase
|
|
50
|
-
* @version 1.102.
|
|
50
|
+
* @version 1.102.2
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
53
53
|
* @experimental As of version 1.88
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @param {object} [mSettings] Initial settings for the new control
|
|
34
34
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
35
35
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
36
|
-
* @version 1.102.
|
|
36
|
+
* @version 1.102.2
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
39
39
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class The <code>InParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.102.
|
|
23
|
+
* @version 1.102.2
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @param {object} [mSettings] Initial settings for the new control
|
|
40
40
|
* @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a list of items.
|
|
41
41
|
* @extends sap.ui.mdc.field.FieldHelpBase
|
|
42
|
-
* @version 1.102.
|
|
42
|
+
* @version 1.102.2
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
45
45
|
* @ui5-restricted sap.fe
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class Base type for <code>MultiValueFieldItem</code> control.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.102.
|
|
23
|
+
* @version 1.102.2
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @param {object} [mSettings] Initial settings for the new control
|
|
23
23
|
* @class The <code>OutParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
24
24
|
* @extends sap.ui.mdc.field.InParameter
|
|
25
|
-
* @version 1.102.
|
|
25
|
+
* @version 1.102.2
|
|
26
26
|
* @constructor
|
|
27
27
|
* @abstract
|
|
28
28
|
* @private
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class The <code>TokenDisplay</code> control is used to render a field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
25
|
* @extends sap.m.Token
|
|
26
|
-
* @version 1.102.
|
|
26
|
+
* @version 1.102.2
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @param {object} [mSettings] Initial settings for the new control
|
|
29
29
|
* @class The <code>TokenizerDisplay</code> control is used to render a Tokenizer inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
30
30
|
* @extends sap.m.Tokenizer
|
|
31
|
-
* @version 1.102.
|
|
31
|
+
* @version 1.102.2
|
|
32
32
|
* @constructor
|
|
33
33
|
* @abstract
|
|
34
34
|
* @private
|
|
@@ -272,13 +272,13 @@ sap.ui.define([
|
|
|
272
272
|
var oType = oContentFactory.retrieveDataType(); // TODO: do we need to create data type right now?
|
|
273
273
|
var sBaseType = oContentFactory.getField().getBaseType();
|
|
274
274
|
var oFormatOptions = oType.getFormatOptions();
|
|
275
|
-
var oUsedFormatOptions;
|
|
275
|
+
var oUsedFormatOptions = {UTC: true}; // we always work with UTC dates
|
|
276
276
|
var oDateRangeFormatOptions = {};
|
|
277
277
|
|
|
278
278
|
if (oFormatOptions.style) {
|
|
279
|
-
oUsedFormatOptions =
|
|
279
|
+
oUsedFormatOptions.style = oFormatOptions.style;
|
|
280
280
|
} else if (oFormatOptions.pattern) {
|
|
281
|
-
oUsedFormatOptions =
|
|
281
|
+
oUsedFormatOptions.pattern = oFormatOptions.pattern;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
if (sBaseType === BaseType.DateTime) {
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
* @class The <code>FilterBarBase</code> control is used as a faceless base class for common functionality of any MDC FilterBar derivation.
|
|
53
53
|
* @extends sap.ui.mdc.Control
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.102.
|
|
55
|
+
* @version 1.102.2
|
|
56
56
|
* @constructor
|
|
57
57
|
* @private
|
|
58
58
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -56,7 +56,7 @@ sap.ui.define(
|
|
|
56
56
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
57
57
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
58
58
|
* @author SAP SE
|
|
59
|
-
* @version 1.102.
|
|
59
|
+
* @version 1.102.2
|
|
60
60
|
* @constructor
|
|
61
61
|
* @private
|
|
62
62
|
* @ui5-restricted sap.fe
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @alias sap.ui.mdc
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.102.
|
|
26
|
+
* @version 1.102.2
|
|
27
27
|
* @since 1.80
|
|
28
28
|
* @private
|
|
29
29
|
* @ui5-restricted sap.fe
|
|
30
30
|
* @experimental As of version 1.54 Disclaimer: Usage Restrictions: The components of this library are under development and documented as private. Their APIs are subject to change and should not be used in productive scenarios without further agreement. A general availability of sap.ui.mdc will be announced via the usual channels.
|
|
31
31
|
*/
|
|
32
32
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
33
|
-
version: "1.102.
|
|
33
|
+
version: "1.102.2",
|
|
34
34
|
name: "sap.ui.mdc",
|
|
35
35
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
36
36
|
designtime: "sap/ui/mdc/designtime/library.designtime",
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The ContactDetails control is used to show additional information like for example 'contact details'.
|
|
26
26
|
* @extends sap.ui.core.Control
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.102.
|
|
28
|
+
* @version 1.102.2
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.56.0
|
|
@@ -11,7 +11,7 @@ sap.ui.define([], function() {
|
|
|
11
11
|
* @namespace Factory to access services outside of sap.ui.mdc library like for example <code>ushell</code> services.
|
|
12
12
|
* @name sap.ui.mdc.link.Factory
|
|
13
13
|
* @author SAP SE
|
|
14
|
-
* @version 1.102.
|
|
14
|
+
* @version 1.102.2
|
|
15
15
|
* @private
|
|
16
16
|
* @since 1.54.0
|
|
17
17
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
* @namespace FakeFlpConnector.
|
|
14
14
|
* @name sap.ui.mdc.link.FakeFlpConnector
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.102.
|
|
16
|
+
* @version 1.102.2
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.54.0
|
|
19
19
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @param {object} [mSettings] Initial settings for the new control
|
|
17
17
|
* @class A <code>LinkItem</code> control is used in the {@link sap.ui.mdc.Link} control to provide a navigation target.
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
|
-
* @version 1.102.
|
|
19
|
+
* @version 1.102.2
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.58.0
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* supposed that the properties of the item structure is not changed.
|
|
38
38
|
* @extends sap.ui.core.Control
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.102.
|
|
40
|
+
* @version 1.102.2
|
|
41
41
|
* @constructor
|
|
42
42
|
* @private
|
|
43
43
|
* @since 1.54.0
|
|
@@ -179,6 +179,7 @@ sap.ui.define([
|
|
|
179
179
|
|
|
180
180
|
Panel.prototype._createContent = function() {
|
|
181
181
|
var oVerticalLayout = new VerticalLayout({
|
|
182
|
+
width: "100%",
|
|
182
183
|
content: [
|
|
183
184
|
this._createAdditionalContentArea(),
|
|
184
185
|
this._createSeparator(),
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @param {object} [mSettings] initial settings for the new control
|
|
17
17
|
* @class Type for <code>items</code> aggregation in <code>Panel</code> control.
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
|
-
* @version 1.102.
|
|
19
|
+
* @version 1.102.2
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.54.0
|
|
@@ -722,7 +722,9 @@ table.SHORTCUT_EXPORT_TO_EXCEL_MAC=Cmd+Shift+E
|
|
|
722
722
|
#XMSG: Message text on sort panel when sorting is set for invisible columns
|
|
723
723
|
table.PERSONALIZATION_DIALOG_SORT_RESTRICTION=You can only sort visible columns. If a column has not been made visible, it will not be sorted.
|
|
724
724
|
#XMSG: Message text on group panel when totals is applied on the table
|
|
725
|
-
table.
|
|
725
|
+
table.PERSONALIZATION_DIALOG_GROUP_RESTRICTION_TOTALS=You cannot see columns {0} here since totals have been used. Remove totals to see these columns.
|
|
726
|
+
#XMSG: Message text on group panel when grouping is set for invisible columns
|
|
727
|
+
table.PERSONALIZATION_DIALOG_GROUP_RESTRICTION_VISIBLE=You can only group visible columns. If a column has not been made visible, it will not be grouped.
|
|
726
728
|
#XMSG: Message text on sort panel when sorting is set for invisible columns
|
|
727
729
|
table.PERSONALIZATION_DIALOG_TOTAL_RESTRICTION=You can only calculate totals for visible columns. If a column has not been made visible, totals will not be shown.
|
|
728
730
|
#XMSG: Message for P13n Filter Dialog when the table is filtered by related messages.
|
|
@@ -131,24 +131,33 @@ sap.ui.define([
|
|
|
131
131
|
message: oResourceBundle.getText("table.PERSONALIZATION_DIALOG_SORT_RESTRICTION")
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
} else if (sKey == "Group"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
134
|
+
} else if (sKey == "Group") {
|
|
135
|
+
if (oState.aggregations) {
|
|
136
|
+
var aAggregateProperties = Object.keys(oState.aggregations);
|
|
137
|
+
var aAggregateGroupableProperties = [];
|
|
138
|
+
var oListFormat = ListFormat.getInstance();
|
|
139
|
+
aAggregateProperties.forEach(function(sProperty) {
|
|
140
|
+
var oProperty = oTable.getPropertyHelper().getProperty(sProperty);
|
|
141
|
+
if (oProperty && oProperty.groupable) {
|
|
142
|
+
aAggregateGroupableProperties.push(sProperty);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
144
145
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
if (aAggregateGroupableProperties.length) {
|
|
147
|
+
oValidation = {
|
|
148
|
+
validation: coreLibrary.MessageType.Information,
|
|
149
|
+
message: oResourceBundle.getText("table.PERSONALIZATION_DIALOG_GROUP_RESTRICTION_TOTALS", [oListFormat.format(aAggregateGroupableProperties)])
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
} else if (oTable._bMobileTable) {
|
|
153
|
+
if (!checkForValidity(oTable, oState.items, oState.groupLevels)) {
|
|
154
|
+
oValidation = {
|
|
155
|
+
validation: coreLibrary.MessageType.Information,
|
|
156
|
+
message: oResourceBundle.getText("table.PERSONALIZATION_DIALOG_GROUP_RESTRICTION_VISIBLE")
|
|
157
|
+
};
|
|
158
|
+
}
|
|
150
159
|
}
|
|
151
|
-
} else if (sKey == "Column"
|
|
160
|
+
} else if (sKey == "Column") {
|
|
152
161
|
var sMessage;
|
|
153
162
|
var aAggregateProperties = oState.aggregations && Object.keys(oState.aggregations);
|
|
154
163
|
|
|
@@ -302,6 +311,34 @@ sap.ui.define([
|
|
|
302
311
|
return aSupportedModes;
|
|
303
312
|
};
|
|
304
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Provides a hook especially for V4 to suppress the grouping by non visible column.
|
|
316
|
+
*
|
|
317
|
+
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
318
|
+
* @param {string} sPropertyName Property to group
|
|
319
|
+
* @return {undefined|*} Undefined or continue on parent
|
|
320
|
+
* @protected
|
|
321
|
+
*/
|
|
322
|
+
Delegate.getGroupSorter = function(oTable, sPropertyName) {
|
|
323
|
+
var oPropertyHelper = oTable.getPropertyHelper();
|
|
324
|
+
var oVisibleProperty = oTable._getVisibleProperties().find(function(oProperty) {
|
|
325
|
+
var oCurrentProperty = oPropertyHelper.getProperty(oProperty.name);
|
|
326
|
+
if (oCurrentProperty.isComplex()){
|
|
327
|
+
return oCurrentProperty.getReferencedProperties().find(function(oSimpleProperty) {
|
|
328
|
+
return oSimpleProperty.name === sPropertyName;
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return oCurrentProperty.name === sPropertyName;
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
if (!oVisibleProperty) {
|
|
336
|
+
return undefined;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return TableDelegate.getGroupSorter.apply(this, arguments);
|
|
340
|
+
};
|
|
341
|
+
|
|
305
342
|
function createGroupPopoverItem(aGroupProperties, oMDCColumn) {
|
|
306
343
|
var aGroupChildren = aGroupProperties.map(function(oGroupProperty) {
|
|
307
344
|
return new Item({
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* {@link sap.ui.mdc.table.Column#getCreationTemplate creationTemplate} aggregation of the {@link sap.ui.mdc.table.Column}.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.102.
|
|
24
|
+
* @version 1.102.2
|
|
25
25
|
* @constructor
|
|
26
26
|
* @experimental
|
|
27
27
|
* @private
|