@openui5/sap.ui.mdc 1.102.1 → 1.103.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/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/AggregationBaseDelegate.js +11 -0
- package/src/sap/ui/mdc/Chart.js +111 -55
- package/src/sap/ui/mdc/ChartDelegate.js +97 -92
- 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 +4 -1
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +48 -12
- package/src/sap/ui/mdc/ValueHelp.js +1 -19
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -2
- package/src/sap/ui/mdc/chart/ChartToolbar.js +34 -2
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +6 -2
- package/src/sap/ui/mdc/chart/Item.js +6 -11
- package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -8
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -3
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +16 -131
- package/src/sap/ui/mdc/condition/ConditionModel.js +50 -21
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +3 -3
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +6 -3
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +53 -0
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +9 -4
- package/src/sap/ui/mdc/designtime/table/Table.designtime.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 +135 -39
- package/src/sap/ui/mdc/field/ConditionsType.js +71 -10
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +93 -81
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +9 -62
- package/src/sap/ui/mdc/field/FieldBase.js +91 -70
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +20 -1
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -39
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -19
- 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 -4
- 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 +2 -2
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -5
- package/src/sap/ui/mdc/field/content/DateContent.js +3 -3
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -4
- package/src/sap/ui/mdc/filterbar/IFilterContainer.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/ActionToolbar.flexibility.js +80 -4
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +19 -38
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +23 -41
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +43 -58
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +25 -55
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +21 -42
- package/src/sap/ui/mdc/flexibility/SortFlex.js +23 -52
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +3 -3
- package/src/sap/ui/mdc/flexibility/Util.js +82 -0
- package/src/sap/ui/mdc/flexibility/xConfigFlex.js +137 -0
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +3 -1
- package/src/sap/ui/mdc/library.js +4 -15
- 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 +9 -1
- package/src/sap/ui/mdc/link/Panel.js +25 -10
- package/src/sap/ui/mdc/link/PanelItem.js +10 -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 +12 -0
- package/src/sap/ui/mdc/messagebundle_ar.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_bg.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ca.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_cs.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_cy.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_da.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_de.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_el.properties +19 -11
- package/src/sap/ui/mdc/messagebundle_en.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +14 -6
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_et.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_fi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_fr.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_hi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_hr.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_hu.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_id.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_it.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_iw.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ja.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_kk.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ko.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_lt.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_lv.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ms.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_nl.properties +22 -14
- package/src/sap/ui/mdc/messagebundle_no.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_pl.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_pt.properties +12 -4
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ro.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ru.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_sh.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_sk.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_sl.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_sv.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_th.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_tr.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_uk.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_vi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +9 -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/TypeUtil.js +24 -2
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +5 -5
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +6 -0
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +6 -6
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +0 -33
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +359 -151
- package/src/sap/ui/mdc/p13n/Engine.js +1 -1
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -0
- 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/panels/ActionToolbarPanel.js +133 -0
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +7 -32
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +12 -4
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +22 -27
- 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/ValueHelpDialog.less +5 -0
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/util/TypeUtil.js +105 -17
- package/src/sap/ui/mdc/valuehelp/Dialog.js +95 -30
- package/src/sap/ui/mdc/valuehelp/Popover.js +15 -2
- package/src/sap/ui/mdc/valuehelp/base/Container.js +37 -28
- package/src/sap/ui/mdc/valuehelp/base/Content.js +39 -21
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +5 -5
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +41 -34
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +11 -3
- 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 +2 -2
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +34 -82
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +0 -139
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.mdc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.103.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.103.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.103.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.103.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.103.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.103.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.58
|
|
@@ -101,6 +101,17 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
101
101
|
/* Please provide a meaningful message here. */
|
|
102
102
|
message: undefined
|
|
103
103
|
};
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Hook that will be executed is called when changes are done applying to controls during the XML flexibility change appliance process.
|
|
108
|
+
*
|
|
109
|
+
* @param {Object<sap.ui.mdc.Control>} oControl Instance of an MDC control
|
|
110
|
+
* @param {Object} mPropertyBag Property bag from SAPUI5 flexibility
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
onAfterXMLChangeProcessing: function(oControl, mPropertyBag) {
|
|
114
|
+
//Neccessary cleanups can be implemented here
|
|
104
115
|
}
|
|
105
116
|
|
|
106
117
|
|
package/src/sap/ui/mdc/Chart.js
CHANGED
|
@@ -57,12 +57,12 @@ sap.ui.define([
|
|
|
57
57
|
/**
|
|
58
58
|
* Constructor for a new Chart.
|
|
59
59
|
*
|
|
60
|
-
* @param {string} [sId]
|
|
61
|
-
* @param {object} [mSettings]
|
|
60
|
+
* @param {string} [sId] ID for the new control, generated automatically if no id is given
|
|
61
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
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.103.0
|
|
66
66
|
* @constructor
|
|
67
67
|
* @experimental As of version ...
|
|
68
68
|
* @private
|
|
@@ -70,7 +70,6 @@ sap.ui.define([
|
|
|
70
70
|
* @MDC_PUBLIC_CANDIDATE
|
|
71
71
|
* @since 1.88
|
|
72
72
|
* @alias sap.ui.mdc.Chart
|
|
73
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
74
73
|
*/
|
|
75
74
|
var Chart = Control.extend("sap.ui.mdc.Chart", /** @lends sap.ui.mdc.Chart.prototype */ {
|
|
76
75
|
metadata: {
|
|
@@ -225,13 +224,16 @@ sap.ui.define([
|
|
|
225
224
|
group: "Misc",
|
|
226
225
|
defaultValue: "column"
|
|
227
226
|
},
|
|
227
|
+
/**
|
|
228
|
+
* Enables the Details button in the chart toolbar.
|
|
229
|
+
*/
|
|
228
230
|
showSelectionDetails: {
|
|
229
231
|
type: "boolean",
|
|
230
232
|
group: "Misc",
|
|
231
233
|
defaultValue: true
|
|
232
234
|
},
|
|
233
235
|
/**
|
|
234
|
-
* Specifies the
|
|
236
|
+
* Specifies the chart metadata.<br>
|
|
235
237
|
* <b>Note</b>: This property must not be bound.<br>
|
|
236
238
|
* <b>Note</b>: This property is used exclusively for SAPUI5 flexibility/ Fiori Elements. Do not use it otherwise.
|
|
237
239
|
*
|
|
@@ -243,10 +245,18 @@ sap.ui.define([
|
|
|
243
245
|
}
|
|
244
246
|
},
|
|
245
247
|
aggregations: {
|
|
248
|
+
/**
|
|
249
|
+
* This property describes the measures and dimensions visible in the chart.
|
|
250
|
+
* Changes in the personalization are also reflected here.
|
|
251
|
+
*/
|
|
246
252
|
items: {
|
|
247
253
|
type: "sap.ui.mdc.chart.Item",
|
|
248
254
|
multiple: true
|
|
249
255
|
},
|
|
256
|
+
/**
|
|
257
|
+
* This aggregation describes actions that are added to the chart toolbar.
|
|
258
|
+
* See {@link sap.ui.mdc.actiontoolbar.ActionToolbarAction} for more information.
|
|
259
|
+
*/
|
|
250
260
|
actions: {
|
|
251
261
|
type: "sap.ui.core.Control",
|
|
252
262
|
multiple: true,
|
|
@@ -275,7 +285,7 @@ sap.ui.define([
|
|
|
275
285
|
multiple: false
|
|
276
286
|
},
|
|
277
287
|
/**
|
|
278
|
-
*
|
|
288
|
+
* Reference to a {@link sap.ui.fl.variants.VariantManagement} control for the chart.
|
|
279
289
|
*/
|
|
280
290
|
variant: {
|
|
281
291
|
type: "sap.ui.fl.variants.VariantManagement",
|
|
@@ -284,7 +294,7 @@ sap.ui.define([
|
|
|
284
294
|
},
|
|
285
295
|
associations: {
|
|
286
296
|
/**
|
|
287
|
-
* Control or object
|
|
297
|
+
* Control or object that enables the chart to do filtering, such as {@link sap.ui.mdc.FilterBar}.
|
|
288
298
|
* Also see {@link sap.ui.mdc.IFilter}.
|
|
289
299
|
*
|
|
290
300
|
* @since 1.88
|
|
@@ -364,6 +374,16 @@ sap.ui.define([
|
|
|
364
374
|
this._setPropertyHelperClass(PropertyHelper);
|
|
365
375
|
};
|
|
366
376
|
|
|
377
|
+
/**
|
|
378
|
+
* Defines which personalization options are available in the chart.
|
|
379
|
+
* Valid options are: "Item", "Sort", "Type".
|
|
380
|
+
* @param {array} aMode String array containing the p13n options that are available
|
|
381
|
+
* @returns {sap.ui.mdc.Chart} Reference to <code>this</code> for method chaining
|
|
382
|
+
*
|
|
383
|
+
* @experimental
|
|
384
|
+
* @private
|
|
385
|
+
* @ui5-restricted Fiori Elements
|
|
386
|
+
*/
|
|
367
387
|
Chart.prototype.setP13nMode = function(aMode) {
|
|
368
388
|
var aSortedKeys = null;
|
|
369
389
|
if (aMode && aMode.length >= 1){
|
|
@@ -426,11 +446,6 @@ sap.ui.define([
|
|
|
426
446
|
|
|
427
447
|
};
|
|
428
448
|
|
|
429
|
-
|
|
430
|
-
Chart.prototype.isFilteringEnabled = function() {
|
|
431
|
-
return this.getP13nMode().indexOf("Filter") > -1;
|
|
432
|
-
};
|
|
433
|
-
|
|
434
449
|
Chart.prototype.setFilterConditions = function(mConditions) {
|
|
435
450
|
this.setProperty("filterConditions", mConditions, true);
|
|
436
451
|
|
|
@@ -442,6 +457,14 @@ sap.ui.define([
|
|
|
442
457
|
return this;
|
|
443
458
|
};
|
|
444
459
|
|
|
460
|
+
/**
|
|
461
|
+
* Getter for <code>filterConditions</code> set in the personalization settings.
|
|
462
|
+
* @returns {array} Filters set in the chart
|
|
463
|
+
*
|
|
464
|
+
* @experimental
|
|
465
|
+
* @private
|
|
466
|
+
* @ui5-restricted Fiori Elements
|
|
467
|
+
*/
|
|
445
468
|
Chart.prototype.getConditions = function() {
|
|
446
469
|
//may only return conditions if the inner FilterBar has already been initialized
|
|
447
470
|
return this.getInbuiltFilter() ? this.getInbuiltFilter().getConditions() : [];
|
|
@@ -454,7 +477,7 @@ sap.ui.define([
|
|
|
454
477
|
};
|
|
455
478
|
|
|
456
479
|
/**
|
|
457
|
-
* Applies given settings onto the MDC
|
|
480
|
+
* Applies given settings onto the MDC chart, loads the delegate and initializes the MDC chart
|
|
458
481
|
*
|
|
459
482
|
* @param {*} mSettings settings to apply
|
|
460
483
|
*
|
|
@@ -501,7 +524,7 @@ sap.ui.define([
|
|
|
501
524
|
};
|
|
502
525
|
|
|
503
526
|
/**
|
|
504
|
-
* Initializes the inner controls of the MDC
|
|
527
|
+
* Initializes the inner controls of the MDC chart (toolbar, inner chart)
|
|
505
528
|
* Inner chart is initialized via the delegate
|
|
506
529
|
*/
|
|
507
530
|
Chart.prototype._initInnerControls = function () {
|
|
@@ -554,7 +577,7 @@ sap.ui.define([
|
|
|
554
577
|
]
|
|
555
578
|
});
|
|
556
579
|
|
|
557
|
-
//Sync MDC
|
|
580
|
+
//Sync MDC chart properties with inner chart
|
|
558
581
|
this._propagatePropertiesToInnerChart();
|
|
559
582
|
|
|
560
583
|
this._fnResolveInnerChartBound();
|
|
@@ -562,6 +585,15 @@ sap.ui.define([
|
|
|
562
585
|
}.bind(this));
|
|
563
586
|
};
|
|
564
587
|
|
|
588
|
+
/**
|
|
589
|
+
* Defines the height of the chart.
|
|
590
|
+
* @param {sap.ui.core.CSSSize} iHeight New height for the chart.
|
|
591
|
+
* @returns {sap.ui.mdc.Chart} Reference to <code>this</code> for method chaining
|
|
592
|
+
*
|
|
593
|
+
* @experimental
|
|
594
|
+
* @private
|
|
595
|
+
* @ui5-restricted Fiori Elements
|
|
596
|
+
*/
|
|
565
597
|
Chart.prototype.setHeight = function(iHeight) {
|
|
566
598
|
try {
|
|
567
599
|
this.getControlDelegate().adjustChartHeight(this);
|
|
@@ -587,7 +619,7 @@ sap.ui.define([
|
|
|
587
619
|
};
|
|
588
620
|
|
|
589
621
|
/**
|
|
590
|
-
* Loads the delegate for the MDC
|
|
622
|
+
* Loads the delegate for the MDC chart
|
|
591
623
|
* @returns {Promise} resolved when delegate is loaded
|
|
592
624
|
*/
|
|
593
625
|
Chart.prototype._loadDelegate = function () {
|
|
@@ -604,7 +636,8 @@ sap.ui.define([
|
|
|
604
636
|
|
|
605
637
|
};
|
|
606
638
|
/**
|
|
607
|
-
* Gets whether filtering is enabled
|
|
639
|
+
* Gets whether filtering is enabled in the personalization dialog.
|
|
640
|
+
* @returns {boolean} <code>true</code> if filtering enabled, <code>false</code> if otherwise
|
|
608
641
|
*
|
|
609
642
|
* @experimental
|
|
610
643
|
* @private
|
|
@@ -615,8 +648,13 @@ sap.ui.define([
|
|
|
615
648
|
};
|
|
616
649
|
|
|
617
650
|
/**
|
|
618
|
-
* Gets the
|
|
619
|
-
*
|
|
651
|
+
* Gets the adaptation panel for the p13n dialog.
|
|
652
|
+
* <b>Note:</b> This is only used for personalization, do not use it otherwise.
|
|
653
|
+
* @returns {Promise} <code>Promise</code> that resolves with the adaptation panel control
|
|
654
|
+
*
|
|
655
|
+
* @experimental
|
|
656
|
+
* @private
|
|
657
|
+
* @ui5-restricted sap.ui.mdc
|
|
620
658
|
*/
|
|
621
659
|
Chart.prototype.getAdaptationUI = function () {
|
|
622
660
|
return this.getControlDelegate().getAdaptionUI(this);
|
|
@@ -739,30 +777,11 @@ sap.ui.define([
|
|
|
739
777
|
}
|
|
740
778
|
};
|
|
741
779
|
|
|
742
|
-
//TODO: Think of a good name
|
|
743
|
-
Chart.prototype._addItems = function () {
|
|
744
|
-
|
|
745
|
-
};
|
|
746
|
-
|
|
747
780
|
/**
|
|
748
|
-
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
751
|
-
* @
|
|
752
|
-
* @private
|
|
753
|
-
* @ui5-restricted Fiori Elements
|
|
754
|
-
*/
|
|
755
|
-
Chart.prototype.getCollectionModel = function () {
|
|
756
|
-
var oBindingInfo = this.getBindingInfo("data");
|
|
757
|
-
return oBindingInfo ? this.getModel(oBindingInfo.model) : null;
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* Can be used to check whether the chart is initialized
|
|
763
|
-
* After initialization the delegate should be loaded and (in case of autoBindOnInit=true) the inner chart has been created
|
|
764
|
-
* This does not include the inner chart to be bound. Use <code>innerChartBound</code> for it.
|
|
765
|
-
* @returns {Promise} Promise that resolves once MDC Chart is initialized. Contains reference to MDC Chart
|
|
781
|
+
* Checks whether the chart is initialized.
|
|
782
|
+
* After initialization the delegate is loaded and (in case of <code>autoBindOnInit=true</code>) the inner chart is created.
|
|
783
|
+
* The inner chart is not bound yet. Use <code>innerChartBound</code> for it.
|
|
784
|
+
* @returns {Promise} <code>Promise</code> that resolves once MDC chart is initialized. Contains reference to MDC chart
|
|
766
785
|
*
|
|
767
786
|
* @experimental
|
|
768
787
|
* @private
|
|
@@ -773,8 +792,8 @@ sap.ui.define([
|
|
|
773
792
|
};
|
|
774
793
|
|
|
775
794
|
/**
|
|
776
|
-
* Can be used to check whether the inner chart is initialized and bound
|
|
777
|
-
* @returns {Promise} Promise that resolves once MDC
|
|
795
|
+
* Can be used to check whether the inner chart is initialized and bound.
|
|
796
|
+
* @returns {Promise} Promise that resolves once MDC chart is bound
|
|
778
797
|
*
|
|
779
798
|
* @experimental
|
|
780
799
|
* @private
|
|
@@ -785,7 +804,7 @@ sap.ui.define([
|
|
|
785
804
|
};
|
|
786
805
|
|
|
787
806
|
/**
|
|
788
|
-
* Zooms in the inner chart
|
|
807
|
+
* Zooms in the inner chart.
|
|
789
808
|
* @param {int} iValue how much steps should be zoomed in
|
|
790
809
|
*
|
|
791
810
|
* @experimental
|
|
@@ -801,7 +820,7 @@ sap.ui.define([
|
|
|
801
820
|
};
|
|
802
821
|
|
|
803
822
|
/**
|
|
804
|
-
* Zooms out the inner chart
|
|
823
|
+
* Zooms out the inner chart.
|
|
805
824
|
* @param {int} iValue how much steps should be zoomed out
|
|
806
825
|
*
|
|
807
826
|
* @experimental
|
|
@@ -833,22 +852,49 @@ sap.ui.define([
|
|
|
833
852
|
return this.getControlDelegate().getZoomState(this);
|
|
834
853
|
};
|
|
835
854
|
|
|
855
|
+
/**
|
|
856
|
+
* Retrieves the selection handler of the inner chart.
|
|
857
|
+
* @returns {object} Selection handler of the inner chart
|
|
858
|
+
*
|
|
859
|
+
* @experimental
|
|
860
|
+
* @private
|
|
861
|
+
* @ui5-restricted sap.ui.mdc, sap.fe
|
|
862
|
+
*/
|
|
836
863
|
Chart.prototype.getSelectionHandler = function () {
|
|
837
864
|
return this.getControlDelegate().getInnerChartSelectionHandler(this);
|
|
838
865
|
};
|
|
839
866
|
|
|
867
|
+
/**
|
|
868
|
+
* Retrieves the chart type layout configuration.
|
|
869
|
+
* <b>Note:</b> This is only used inside personalization.
|
|
870
|
+
* @returns {object} Layout configuration
|
|
871
|
+
*
|
|
872
|
+
* @experimental
|
|
873
|
+
* @private
|
|
874
|
+
* @ui5-restricted sap.ui.mdc
|
|
875
|
+
*/
|
|
840
876
|
Chart.prototype.getChartTypeLayoutConfig = function() {
|
|
841
877
|
return this.getControlDelegate().getChartTypeLayoutConfig();
|
|
842
878
|
};
|
|
843
879
|
|
|
880
|
+
/**
|
|
881
|
+
* Retrieves the allowed chart roles for the chart types.
|
|
882
|
+
* <b>Note:</b> This is only used inside the personalization.
|
|
883
|
+
* @returns {object} Allowed roles
|
|
884
|
+
*
|
|
885
|
+
* @experimental
|
|
886
|
+
* @private
|
|
887
|
+
* @ui5-restricted sap.ui.mdc
|
|
888
|
+
*/
|
|
844
889
|
Chart.prototype.getAllowedRolesForKinds = function() {
|
|
845
890
|
return this.getControlDelegate().getAllowedRolesForKinds();
|
|
846
891
|
};
|
|
847
892
|
|
|
848
893
|
/**
|
|
849
|
-
* Sets the visibility of the legend
|
|
850
|
-
* Calls
|
|
851
|
-
* @param {boolean} bVisible true to show legend, false to hide
|
|
894
|
+
* Sets the visibility of the legend.
|
|
895
|
+
* Calls <code>setLegendVisible</code> on the delegate.
|
|
896
|
+
* @param {boolean} bVisible <code>true</code> to show legend, <code>false</code> to hide
|
|
897
|
+
* @returns {sap.ui.mdc.Chart} Reference to <code>this</code> for method chaining
|
|
852
898
|
*
|
|
853
899
|
* @experimental
|
|
854
900
|
* @private
|
|
@@ -871,7 +917,7 @@ sap.ui.define([
|
|
|
871
917
|
/**
|
|
872
918
|
* Sets the ShowChartTooltip Property
|
|
873
919
|
* @param {boolean} bValue true for visible; false for invisible
|
|
874
|
-
* @returns {sap.ui.mdc.Chart} the MDC
|
|
920
|
+
* @returns {sap.ui.mdc.Chart} the MDC chart
|
|
875
921
|
*/
|
|
876
922
|
Chart.prototype.setShowChartTooltip = function (bValue) {
|
|
877
923
|
this.setProperty("showChartTooltip", bValue);
|
|
@@ -931,7 +977,7 @@ sap.ui.define([
|
|
|
931
977
|
};
|
|
932
978
|
|
|
933
979
|
/**
|
|
934
|
-
* If some properties are set on the MDC
|
|
980
|
+
* If some properties are set on the MDC chart while the inner chart is not yet initialized, they need to eb set after initialaization.
|
|
935
981
|
* This methods gets called after inner chart is ready and takes care of that
|
|
936
982
|
*
|
|
937
983
|
* @private
|
|
@@ -946,7 +992,7 @@ sap.ui.define([
|
|
|
946
992
|
/**
|
|
947
993
|
* Gets information about the current chart type.
|
|
948
994
|
*
|
|
949
|
-
* @returns {
|
|
995
|
+
* @returns {object} object containing information about the chart type
|
|
950
996
|
*
|
|
951
997
|
* @experimental
|
|
952
998
|
* @private
|
|
@@ -986,7 +1032,7 @@ sap.ui.define([
|
|
|
986
1032
|
|
|
987
1033
|
|
|
988
1034
|
/**
|
|
989
|
-
* Sets the MDC
|
|
1035
|
+
* Sets the MDC chart to a specific chart type
|
|
990
1036
|
* @param {string} sChartType the name of the new chart type
|
|
991
1037
|
* @returns {sap.ui.mdc.chart} reference to <code>this</code> for method chaining
|
|
992
1038
|
*/
|
|
@@ -1008,7 +1054,7 @@ sap.ui.define([
|
|
|
1008
1054
|
*
|
|
1009
1055
|
* @experimental
|
|
1010
1056
|
* @private
|
|
1011
|
-
* @ui5-restricted
|
|
1057
|
+
* @ui5-restricted sap.ui.mdc
|
|
1012
1058
|
*/
|
|
1013
1059
|
Chart.prototype.getManagedObjectModel = function () {
|
|
1014
1060
|
return this._oManagedObjectModel;
|
|
@@ -1137,7 +1183,7 @@ sap.ui.define([
|
|
|
1137
1183
|
|
|
1138
1184
|
/**
|
|
1139
1185
|
* Callback for when fuilters changed
|
|
1140
|
-
* Activates the overlay on the MDC
|
|
1186
|
+
* Activates the overlay on the MDC chart
|
|
1141
1187
|
*
|
|
1142
1188
|
* @param oEvent filter changed event
|
|
1143
1189
|
*
|
|
@@ -1185,6 +1231,16 @@ sap.ui.define([
|
|
|
1185
1231
|
}
|
|
1186
1232
|
};
|
|
1187
1233
|
|
|
1234
|
+
/**
|
|
1235
|
+
* Adds an action to the <code>actions</code> aggregation of the chart.
|
|
1236
|
+
* If the given control is not of type {@link sap.ui.mdc.actiontoolbar.ActionToolbarAction}, a container is created for the control before passing it on to the {@link sap.ui.mdc.ActionToolbar}.
|
|
1237
|
+
* @param {sap.ui.core.Control} oControl to add to the aggregation
|
|
1238
|
+
* @return {sap.ui.mdc.Chart} Reference to <code>this</code> for method chaining.
|
|
1239
|
+
*
|
|
1240
|
+
* @experimental
|
|
1241
|
+
* @private
|
|
1242
|
+
* @ui5-restricted sap.ui.mdc, sap.fe
|
|
1243
|
+
*/
|
|
1188
1244
|
Chart.prototype.addAction = function(oControl) {
|
|
1189
1245
|
if (oControl.getMetadata().getName() !== "sap.ui.mdc.actiontoolbar.ActionToolbarAction") {
|
|
1190
1246
|
oControl = new ActionToolbarAction(oControl.getId() + "-action", {
|