@openui5/sap.ui.mdc 1.99.1 → 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 +5 -5
- 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 +77 -77
- package/src/sap/ui/mdc/ChartDelegate.js +76 -21
- package/src/sap/ui/mdc/ChartRenderer.js +1 -1
- package/src/sap/ui/mdc/Control.js +11 -6
- package/src/sap/ui/mdc/Element.js +10 -6
- package/src/sap/ui/mdc/Field.js +26 -4
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
- package/src/sap/ui/mdc/FilterField.js +41 -3
- package/src/sap/ui/mdc/Link.js +3 -3
- package/src/sap/ui/mdc/LinkDelegate.js +7 -5
- package/src/sap/ui/mdc/MultiValueField.js +11 -1
- package/src/sap/ui/mdc/Table.js +340 -417
- package/src/sap/ui/mdc/TableDelegate.js +115 -35
- package/src/sap/ui/mdc/ValueHelp.js +150 -632
- package/src/sap/ui/mdc/ValueHelpDelegate.js +161 -8
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +18 -6
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +11 -2
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +9 -7
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +6 -6
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +14 -9
- package/src/sap/ui/mdc/condition/ConditionConverter.js +58 -6
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +4 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +146 -34
- package/src/sap/ui/mdc/condition/Operator.js +98 -16
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +80 -24
- package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
- package/src/sap/ui/mdc/designtime/Util.js +63 -0
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +16 -1
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +39 -52
- package/src/sap/ui/mdc/enum/PropagationReason.js +43 -0
- 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 +70 -22
- package/src/sap/ui/mdc/field/ConditionsType.js +8 -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 +30 -23
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +76 -19
- package/src/sap/ui/mdc/field/FieldBase.js +84 -17
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +41 -19
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +2 -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 +9 -4
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +7 -4
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +11 -3
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +31 -32
- 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 +13 -1
- package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +42 -7
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +128 -239
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +5 -0
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -0
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -0
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +164 -64
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +73 -23
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +4 -41
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +54 -0
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +49 -12
- 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/ItemBaseFlex.js +0 -1
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +2 -85
- package/src/sap/ui/mdc/library.js +30 -27
- package/src/sap/ui/mdc/link/ContactDetails.js +107 -23
- 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 +26 -0
- 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 +197 -22
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelRenderer.js +26 -0
- 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 +11 -6
- package/src/sap/ui/mdc/messagebundle_ar.properties +9 -7
- package/src/sap/ui/mdc/messagebundle_bg.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ca.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_cs.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_cy.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_da.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_de.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_el.properties +6 -4
- package/src/sap/ui/mdc/messagebundle_en.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_es.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_et.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_fi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_fr.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_hi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_hr.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_hu.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_id.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_it.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_iw.properties +6 -4
- package/src/sap/ui/mdc/messagebundle_ja.properties +8 -6
- package/src/sap/ui/mdc/messagebundle_kk.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ko.properties +6 -4
- package/src/sap/ui/mdc/messagebundle_lt.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_lv.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ms.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_nl.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_no.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_pl.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_pt.properties +13 -11
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ro.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ru.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_sh.properties +10 -8
- package/src/sap/ui/mdc/messagebundle_sk.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_sl.properties +8 -6
- package/src/sap/ui/mdc/messagebundle_sv.properties +8 -6
- package/src/sap/ui/mdc/messagebundle_th.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_tr.properties +10 -8
- package/src/sap/ui/mdc/messagebundle_uk.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_vi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +7 -5
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +23 -29
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -141
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -9
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +354 -0
- package/src/sap/ui/mdc/odata/TypeUtil.js +2 -1
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +70 -3
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +8 -6
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +29 -66
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -4
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +65 -5
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +353 -262
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +172 -69
- package/src/sap/ui/mdc/p13n/FlexUtil.js +26 -19
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +34 -51
- package/src/sap/ui/mdc/p13n/UIManager.js +21 -14
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +0 -174
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +15 -12
- package/src/sap/ui/mdc/p13n/modules/xConfigAPI.js +219 -0
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +75 -15
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +160 -0
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +54 -28
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +54 -18
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +1 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +30 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +46 -0
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +37 -6
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +32 -10
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +9 -2
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +1 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +4 -4
- package/src/sap/ui/mdc/table/Column.js +271 -132
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +70 -27
- package/src/sap/ui/mdc/table/PropertyHelper.js +92 -163
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +133 -40
- package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
- package/src/sap/ui/mdc/table/RowSettings.js +42 -1
- package/src/sap/ui/mdc/table/TableSettings.js +10 -22
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
- package/src/sap/ui/mdc/table/menu/Item.js +78 -0
- package/src/sap/ui/mdc/table/menu/ItemContainer.js +60 -0
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +151 -0
- package/src/sap/ui/mdc/themes/base/Chart.less +11 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +1 -0
- package/src/sap/ui/mdc/ui/Container.js +0 -240
- package/src/sap/ui/mdc/util/DateUtil.js +56 -6
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/IdentifierUtil.js +3 -3
- package/src/sap/ui/mdc/util/PromiseCache.js +6 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +205 -76
- package/src/sap/ui/mdc/util/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +291 -66
- package/src/sap/ui/mdc/valuehelp/Popover.js +8 -5
- package/src/sap/ui/mdc/valuehelp/base/Container.js +71 -52
- package/src/sap/ui/mdc/valuehelp/base/Content.js +57 -24
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +196 -283
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +6 -6
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +16 -13
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +66 -66
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +100 -185
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +6 -5
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +4 -5
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -3
- 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 +111 -128
- 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/filterbar/vh/GenericFilterBarDelegate.js +0 -150
- package/src/sap/ui/mdc/link/ContactDetails.control.xml +0 -29
- package/src/sap/ui/mdc/link/Panel.control.xml +0 -36
- package/src/sap/ui/mdc/link/PanelListItem.control.xml +0 -24
- package/src/sap/ui/mdc/link/PanelListItem.js +0 -101
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
- package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -408
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
- package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
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
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -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
|
@@ -21,9 +21,11 @@ sap.ui.define([
|
|
|
21
21
|
"sap/ui/mdc/p13n/subcontroller/ChartItemController",
|
|
22
22
|
"sap/ui/mdc/p13n/subcontroller/FilterController",
|
|
23
23
|
"sap/ui/mdc/p13n/subcontroller/SortController",
|
|
24
|
+
"sap/ui/mdc/p13n/subcontroller/ChartTypeController",
|
|
24
25
|
"sap/ui/base/ManagedObjectObserver",
|
|
25
26
|
"sap/ui/mdc/chart/DrillBreadcrumbs",
|
|
26
|
-
"sap/ui/mdc/actiontoolbar/ActionToolbarAction"
|
|
27
|
+
"sap/ui/mdc/actiontoolbar/ActionToolbarAction",
|
|
28
|
+
"sap/ui/thirdparty/jquery"
|
|
27
29
|
],
|
|
28
30
|
function (
|
|
29
31
|
Core,
|
|
@@ -42,9 +44,11 @@ sap.ui.define([
|
|
|
42
44
|
ChartItemController,
|
|
43
45
|
FilterController,
|
|
44
46
|
SortController,
|
|
47
|
+
ChartTypeController,
|
|
45
48
|
ManagedObjectObserver,
|
|
46
49
|
Breadcrumbs,
|
|
47
|
-
ActionToolbarAction
|
|
50
|
+
ActionToolbarAction,
|
|
51
|
+
jQuery
|
|
48
52
|
) {
|
|
49
53
|
"use strict";
|
|
50
54
|
|
|
@@ -58,7 +62,7 @@ sap.ui.define([
|
|
|
58
62
|
* @class The Chart control creates a chart based on metadata and the configuration specified.
|
|
59
63
|
* @extends sap.ui.mdc.Control
|
|
60
64
|
* @author SAP SE
|
|
61
|
-
* @version 1.
|
|
65
|
+
* @version 1.102.0
|
|
62
66
|
* @constructor
|
|
63
67
|
* @experimental As of version ...
|
|
64
68
|
* @private
|
|
@@ -134,7 +138,7 @@ sap.ui.define([
|
|
|
134
138
|
},
|
|
135
139
|
|
|
136
140
|
/**
|
|
137
|
-
*
|
|
141
|
+
* Enables the legend of the chart.
|
|
138
142
|
*
|
|
139
143
|
* @since 1.88
|
|
140
144
|
*/
|
|
@@ -190,11 +194,11 @@ sap.ui.define([
|
|
|
190
194
|
* @since 1.99
|
|
191
195
|
*/
|
|
192
196
|
filterConditions: {
|
|
193
|
-
type: "object"
|
|
197
|
+
type: "object",
|
|
198
|
+
defaultValue: {}
|
|
194
199
|
},
|
|
195
200
|
/**
|
|
196
|
-
* Controls the visibility of the chart tooltip. If set to <code>true
|
|
197
|
-
* be created and shown when hovering over a data point.
|
|
201
|
+
* Controls the visibility of the chart tooltip. If set to <code>true</code>, an instance of {@link sap.viz.ui5.controls.VizTooltip} is created and shown when hovering over a data point.
|
|
198
202
|
*
|
|
199
203
|
* @since 1.88
|
|
200
204
|
*/
|
|
@@ -204,7 +208,8 @@ sap.ui.define([
|
|
|
204
208
|
defaultValue: true
|
|
205
209
|
},
|
|
206
210
|
/**
|
|
207
|
-
*
|
|
211
|
+
* If set to <code>true</code>, the chart is automatically bound after initialization.
|
|
212
|
+
* If set to <code>false</code>, the chart is bound after the first call to <code>rebind</code>.
|
|
208
213
|
*/
|
|
209
214
|
autoBindOnInit: {
|
|
210
215
|
type: "boolean",
|
|
@@ -213,7 +218,7 @@ sap.ui.define([
|
|
|
213
218
|
},
|
|
214
219
|
|
|
215
220
|
/**
|
|
216
|
-
* Specifies the type of chart to be created by the
|
|
221
|
+
* Specifies the type of chart to be created by the <code>Chart</code> control.
|
|
217
222
|
*/
|
|
218
223
|
chartType: {
|
|
219
224
|
type: "string",
|
|
@@ -224,6 +229,17 @@ sap.ui.define([
|
|
|
224
229
|
type: "boolean",
|
|
225
230
|
group: "Misc",
|
|
226
231
|
defaultValue: true
|
|
232
|
+
},
|
|
233
|
+
/**
|
|
234
|
+
* Specifies the filter metadata.<br>
|
|
235
|
+
* <b>Note</b>: This property must not be bound.<br>
|
|
236
|
+
* <b>Note</b>: This property is used exclusively for SAPUI5 flexibility/ Fiori Elements. Do not use it otherwise.
|
|
237
|
+
*
|
|
238
|
+
* @since 1.99
|
|
239
|
+
*/
|
|
240
|
+
propertyInfo: {
|
|
241
|
+
type: "object",
|
|
242
|
+
defaultValue: []
|
|
227
243
|
}
|
|
228
244
|
},
|
|
229
245
|
aggregations: {
|
|
@@ -343,6 +359,9 @@ sap.ui.define([
|
|
|
343
359
|
this.setModel(this._oManagedObjectModel, "$mdcChart");
|
|
344
360
|
this._bNewP13n = true;//TODO: remove with migration
|
|
345
361
|
Control.prototype.init.apply(this, arguments);
|
|
362
|
+
|
|
363
|
+
this._setupPropertyInfoStore("propertyInfo");
|
|
364
|
+
this._setPropertyHelperClass(PropertyHelper);
|
|
346
365
|
};
|
|
347
366
|
|
|
348
367
|
Chart.prototype.setP13nMode = function(aMode) {
|
|
@@ -366,6 +385,7 @@ sap.ui.define([
|
|
|
366
385
|
}
|
|
367
386
|
if (mKeys.Type) {
|
|
368
387
|
this._typeBtnActive = true;
|
|
388
|
+
aSortedKeys.push("Type");
|
|
369
389
|
} else {
|
|
370
390
|
this._typeBtnActive = false;
|
|
371
391
|
}
|
|
@@ -388,7 +408,8 @@ sap.ui.define([
|
|
|
388
408
|
var mRegistryOptions = {
|
|
389
409
|
Item: ChartItemController,
|
|
390
410
|
Sort: SortController,
|
|
391
|
-
Filter: FilterController
|
|
411
|
+
Filter: FilterController,
|
|
412
|
+
Type: ChartTypeController
|
|
392
413
|
};
|
|
393
414
|
|
|
394
415
|
if (aMode && aMode.length > 0) {
|
|
@@ -442,6 +463,7 @@ sap.ui.define([
|
|
|
442
463
|
* @ui5-restricted sap.ui.mdc
|
|
443
464
|
*/
|
|
444
465
|
Chart.prototype.applySettings = function (mSettings, oScope) {
|
|
466
|
+
this._setPropertyHelperClass(PropertyHelper);
|
|
445
467
|
Control.prototype.applySettings.apply(this, arguments);
|
|
446
468
|
|
|
447
469
|
this.initializedPromise = new Promise(function (resolve, reject) {
|
|
@@ -471,6 +493,7 @@ sap.ui.define([
|
|
|
471
493
|
aInitPromises.push(this.retrieveInbuiltFilter());
|
|
472
494
|
}
|
|
473
495
|
|
|
496
|
+
//TODO: Refactor this so we use awaitPropertyHelper
|
|
474
497
|
Promise.all(aInitPromises).then(function(){
|
|
475
498
|
this._initInnerControls();
|
|
476
499
|
}.bind(this));
|
|
@@ -482,6 +505,7 @@ sap.ui.define([
|
|
|
482
505
|
* Inner chart is initialized via the delegate
|
|
483
506
|
*/
|
|
484
507
|
Chart.prototype._initInnerControls = function () {
|
|
508
|
+
|
|
485
509
|
this.getControlDelegate().initializeInnerChart(this).then(function (oInnerChart) {
|
|
486
510
|
|
|
487
511
|
this.setBusyIndicatorDelay(0);
|
|
@@ -491,16 +515,14 @@ sap.ui.define([
|
|
|
491
515
|
|
|
492
516
|
if (this.getAutoBindOnInit()) {
|
|
493
517
|
this.setBusy(true);
|
|
494
|
-
this._createContentfromPropertyInfos();
|
|
518
|
+
this._createContentfromPropertyInfos(oInnerChart);
|
|
495
519
|
}
|
|
496
520
|
|
|
497
521
|
this.setAggregation("_innerChart", oInnerChart);
|
|
498
|
-
|
|
499
522
|
this._bInnerChartReady = true;
|
|
500
|
-
|
|
501
523
|
this._fnResolveInitialized();
|
|
502
|
-
// eslint-disable-next-line no-empty
|
|
503
524
|
this.invalidate();
|
|
525
|
+
|
|
504
526
|
}.bind(this)).catch(function (error) {
|
|
505
527
|
this._fnRejectInitialized(error);
|
|
506
528
|
}.bind(this));
|
|
@@ -517,27 +539,27 @@ sap.ui.define([
|
|
|
517
539
|
*
|
|
518
540
|
* Is called during init when autoBindOnInit = "true", if "false" then this is called by _rebind()
|
|
519
541
|
*/
|
|
520
|
-
Chart.prototype._createContentfromPropertyInfos = function () {
|
|
521
|
-
this.initPropertyHelper(PropertyHelper).then(function () {
|
|
522
|
-
//Create content on inner chart instance
|
|
523
|
-
this.getControlDelegate().createInnerChartContent(this, this._innerChartDataLoadComplete.bind(this));
|
|
524
|
-
|
|
525
|
-
this._createBreadcrumbs();
|
|
526
|
-
//From now on, listen to changes on Items Aggregation and sync them with inner chart
|
|
527
|
-
this._oObserver = new ManagedObjectObserver(this._propagateItemChangeToInnerChart.bind(this));
|
|
528
|
-
this._oObserver.observe(this, {
|
|
529
|
-
aggregations: [
|
|
530
|
-
"items"
|
|
531
|
-
]
|
|
532
|
-
});
|
|
533
|
-
|
|
534
|
-
//Sync MDC Chart properties with inner chart
|
|
535
|
-
this._propagatePropertiesToInnerChart();
|
|
536
|
-
|
|
537
|
-
this._fnResolveInnerChartBound();
|
|
542
|
+
Chart.prototype._createContentfromPropertyInfos = function (oInnerChart) {
|
|
538
543
|
|
|
544
|
+
//Make sure all MDC Items have the necessary information to create a chart
|
|
545
|
+
this.getControlDelegate().checkAndUpdateMDCItems(this).then(function(){
|
|
546
|
+
//Create content on inner chart instance
|
|
547
|
+
this.getControlDelegate().createInnerChartContent(this, this._innerChartDataLoadComplete.bind(this)).then(function(){
|
|
548
|
+
this._createBreadcrumbs();
|
|
549
|
+
//From now on, listen to changes on Items Aggregation and sync them with inner chart
|
|
550
|
+
this._oObserver = new ManagedObjectObserver(this._propagateItemChangeToInnerChart.bind(this));
|
|
551
|
+
this._oObserver.observe(this, {
|
|
552
|
+
aggregations: [
|
|
553
|
+
"items"
|
|
554
|
+
]
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
//Sync MDC Chart properties with inner chart
|
|
558
|
+
this._propagatePropertiesToInnerChart();
|
|
559
|
+
|
|
560
|
+
this._fnResolveInnerChartBound();
|
|
561
|
+
}.bind(this));
|
|
539
562
|
}.bind(this));
|
|
540
|
-
|
|
541
563
|
};
|
|
542
564
|
|
|
543
565
|
Chart.prototype.setHeight = function(iHeight) {
|
|
@@ -668,10 +690,6 @@ sap.ui.define([
|
|
|
668
690
|
|
|
669
691
|
var oBindingInfo = this.getControlDelegate()._getBindingInfo(this);
|
|
670
692
|
|
|
671
|
-
if (oBindingInfo) {
|
|
672
|
-
oBindingInfo.sorter = this._getSorters();
|
|
673
|
-
}
|
|
674
|
-
|
|
675
693
|
this.getControlDelegate().updateBindingInfo(this, oBindingInfo); //Applies filters
|
|
676
694
|
this.getControlDelegate().rebind(this, oBindingInfo);
|
|
677
695
|
};
|
|
@@ -1039,6 +1057,10 @@ sap.ui.define([
|
|
|
1039
1057
|
if (aP13nMode.indexOf("Filter") > -1) {
|
|
1040
1058
|
oState.filter = this.getFilterConditions();
|
|
1041
1059
|
}
|
|
1060
|
+
|
|
1061
|
+
if (aP13nMode.indexOf("Type") > -1) {
|
|
1062
|
+
oState.chartType = this.getChartType();
|
|
1063
|
+
}
|
|
1042
1064
|
}
|
|
1043
1065
|
|
|
1044
1066
|
return oState;
|
|
@@ -1074,46 +1096,6 @@ sap.ui.define([
|
|
|
1074
1096
|
return this.getSortConditions() ? this.getSortConditions().sorters : [];
|
|
1075
1097
|
};
|
|
1076
1098
|
|
|
1077
|
-
/**
|
|
1078
|
-
* Returns sorters available for the data
|
|
1079
|
-
*
|
|
1080
|
-
* @returns {array} Array containing available sorters
|
|
1081
|
-
*
|
|
1082
|
-
* @experimental
|
|
1083
|
-
* @private
|
|
1084
|
-
* @ui5-restricted sap.ui.mdc
|
|
1085
|
-
*/
|
|
1086
|
-
Chart.prototype._getSorters = function () {
|
|
1087
|
-
var aSorters;
|
|
1088
|
-
var aSorterProperties = this.getSortConditions() ? this.getSortConditions().sorters : [];
|
|
1089
|
-
|
|
1090
|
-
aSorterProperties.forEach(function (oSortProp) {
|
|
1091
|
-
|
|
1092
|
-
var oMDCItem = this.getItems().find(function (oProp) {
|
|
1093
|
-
return oProp.getName() === oSortProp.name;
|
|
1094
|
-
});
|
|
1095
|
-
|
|
1096
|
-
//Ignore not visible Items
|
|
1097
|
-
if (!oMDCItem) {
|
|
1098
|
-
return;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
//TODO: Check for inResultDimensions
|
|
1102
|
-
var oSorter = this.getControlDelegate().getSorterForItem(oMDCItem, oSortProp);
|
|
1103
|
-
|
|
1104
|
-
if (aSorters) {
|
|
1105
|
-
aSorters.push(oSorter);
|
|
1106
|
-
} else {
|
|
1107
|
-
aSorters = [
|
|
1108
|
-
oSorter
|
|
1109
|
-
];//[] has special meaning in sorting
|
|
1110
|
-
}
|
|
1111
|
-
}.bind(this));
|
|
1112
|
-
|
|
1113
|
-
return aSorters;
|
|
1114
|
-
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
1099
|
/**
|
|
1118
1100
|
* Returns the fetched properties from the delegate
|
|
1119
1101
|
*
|
|
@@ -1135,6 +1117,24 @@ sap.ui.define([
|
|
|
1135
1117
|
return !!this._typeBtnActive;
|
|
1136
1118
|
};
|
|
1137
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* Sets the <code>noDataText</code> property.
|
|
1122
|
+
* <code>noDataText</code> is displayed if the chart has no data to show.
|
|
1123
|
+
* @param {string} sText New value for <code>noDataText</code>
|
|
1124
|
+
* @returns {sap.ui.mdc.Chart} Reference to the <code>Chart</code>
|
|
1125
|
+
*/
|
|
1126
|
+
Chart.prototype.setNoDataText = function(sText) {
|
|
1127
|
+
this.setProperty("noDataText", sText);
|
|
1128
|
+
|
|
1129
|
+
try {
|
|
1130
|
+
this.getControlDelegate().setNoDataText(this, sText);
|
|
1131
|
+
} catch (error) {
|
|
1132
|
+
//Nothing to do here as this is done during init
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
return this;
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Callback for when fuilters changed
|
|
1140
1140
|
* Activates the overlay on the MDC Chart
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*Zooms in on the inner chart.
|
|
34
|
+
* Zooms in on the inner chart.
|
|
35
35
|
* @param {int} iValue Number of steps for zooming in
|
|
36
36
|
*
|
|
37
37
|
* @experimental
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*Zooms out of the inner chart.
|
|
45
|
+
* Zooms out of the inner chart.
|
|
46
46
|
* @param {int} iValue Number of steps for zooming out
|
|
47
47
|
*
|
|
48
48
|
* @experimental
|
|
@@ -69,6 +69,64 @@ sap.ui.define([
|
|
|
69
69
|
ChartDelegate.getZoomState = function () {
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
+
ChartDelegate.getFilterDelegate = function() {
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Creates an instance of a <code>sap.ui.mdc.FilterField</code>.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} sPropertyName The property name
|
|
79
|
+
* @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
|
|
80
|
+
* @returns {Promise<sap.ui.mdc.FilterField>} <code>Promise</code> that resolves with an instance of a <code>sap.ui.mdc.FilterField</code>.
|
|
81
|
+
* @see sap.ui.mdc.AggregationBaseDelegate#addItem
|
|
82
|
+
*/
|
|
83
|
+
addItem: function (sPropertyName, oControl) {
|
|
84
|
+
return Promise.resolve();
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* This methods is called during the appliance of the add condition change.
|
|
89
|
+
* This intention is to update the propertyInfo property.
|
|
90
|
+
*
|
|
91
|
+
* @param {string} sPropertyName The name of a property.
|
|
92
|
+
* @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
|
|
93
|
+
* @param {Object} mPropertyBag Instance of property bag from Flex change API
|
|
94
|
+
* @returns {Promise} Promise that resolves once the properyInfo property was updated
|
|
95
|
+
*/
|
|
96
|
+
addCondition: function(sPropertyName, oControl, mPropertyBag) {
|
|
97
|
+
return Promise.resolve();
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* This methods is called during the appliance of the remove condition change.
|
|
102
|
+
* This intention is to update the propertyInfo property.
|
|
103
|
+
*
|
|
104
|
+
* @param {string} sPropertyName The name of a property.
|
|
105
|
+
* @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
|
|
106
|
+
* @param {Object} mPropertyBag Instance of property bag from Flex change API
|
|
107
|
+
* @returns {Promise} Promise that resolves once the properyInfo property was updated
|
|
108
|
+
*/
|
|
109
|
+
removeCondition: function(sPropertyName, oControl, mPropertyBag) {
|
|
110
|
+
return Promise.resolve();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Creates a new MDC chart item for a given property name and updates the inner chart.
|
|
117
|
+
* <b>Note:</b> This does <b>not</b> add the MDC chart item to the <code>Items</code> aggregation of the MDC chart.
|
|
118
|
+
* Called and used by <code>p13n</code>.
|
|
119
|
+
* @param {string} sPropertyName Name of the property added
|
|
120
|
+
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart to which the item is added
|
|
121
|
+
* @returns {Promise<sap.ui.mdc.Chart.Item>} <code>Promise</code> that resolves with new MDC chart item as parameter
|
|
122
|
+
*
|
|
123
|
+
* @experimental
|
|
124
|
+
* @private
|
|
125
|
+
* @ui5-restricted sap.ui.mdc
|
|
126
|
+
*/
|
|
127
|
+
ChartDelegate.addItem = function (sPropertyName, oMDCChart, mPropertyBag, sRole) {
|
|
128
|
+
};
|
|
129
|
+
|
|
72
130
|
/**
|
|
73
131
|
* @typedef {object} SelectionDetails
|
|
74
132
|
* @property {string} eventId ID of the selection event
|
|
@@ -140,27 +198,14 @@ sap.ui.define([
|
|
|
140
198
|
ChartDelegate.removeItemFromInnerChart = function (oMDCChartItem) {
|
|
141
199
|
};
|
|
142
200
|
|
|
143
|
-
|
|
144
|
-
* Creates a new MDC chart item for a given property name and updates the inner chart.
|
|
145
|
-
* <b>Note:</b> This does <b>not</b> add the MDC chart item to the <code>Items</code> aggregation of the MDC chart.
|
|
146
|
-
* Called and used by <code>p13n</code>.
|
|
147
|
-
* @param {string} sPropertyName Name of the property added
|
|
148
|
-
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart to which the item is added
|
|
149
|
-
* @returns {Promise<sap.ui.mdc.Chart.Item>} <code>Promise</code> that resolves with new MDC chart item as parameter
|
|
150
|
-
*
|
|
151
|
-
* @experimental
|
|
152
|
-
* @private
|
|
153
|
-
* @ui5-restricted sap.ui.mdc
|
|
154
|
-
*/
|
|
155
|
-
ChartDelegate.addItem = function (sPropertyName, oMDCChart, mPropertyBag, sRole) {
|
|
156
|
-
};
|
|
201
|
+
|
|
157
202
|
|
|
158
203
|
/**
|
|
159
204
|
* Removes an existing MDC chart item for a given property name and updates the inner chart.
|
|
160
205
|
* Called and used by p13n
|
|
161
|
-
* @param {string}
|
|
206
|
+
* @param {string} oProperty Name of the property removed
|
|
162
207
|
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart from which property is removed
|
|
163
|
-
* @returns {Promise<
|
|
208
|
+
* @returns {Promise<boolean>} Promise containing information whether the item was deleted
|
|
164
209
|
*
|
|
165
210
|
* @experimental
|
|
166
211
|
* @private
|
|
@@ -242,7 +287,7 @@ sap.ui.define([
|
|
|
242
287
|
/**
|
|
243
288
|
* Gets the available chart types for the current state of the inner chart.
|
|
244
289
|
*
|
|
245
|
-
* @returns {
|
|
290
|
+
* @returns {Array<ChartTypeObject>} Array containing the available chart types
|
|
246
291
|
*
|
|
247
292
|
* @experimental
|
|
248
293
|
* @private
|
|
@@ -268,7 +313,7 @@ sap.ui.define([
|
|
|
268
313
|
* Returns all sorted dimensions of an inner chart as property.
|
|
269
314
|
* This is used to determine possible drilldown dimensions in the drill down popover of the MDC chart.
|
|
270
315
|
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
271
|
-
* @returns {Promise<
|
|
316
|
+
* @returns {Promise<Array<sap.ui.mdc.chart.Item>>} <code>Promise</code> containing an array of dimensions that is sorted
|
|
272
317
|
*
|
|
273
318
|
* @experimental
|
|
274
319
|
* @private
|
|
@@ -282,7 +327,7 @@ sap.ui.define([
|
|
|
282
327
|
* This function is used by the breadcrumb navigation.
|
|
283
328
|
*
|
|
284
329
|
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
285
|
-
* @returns {
|
|
330
|
+
* @returns {Array<sap.ui.mdc.chart.Item>} Array of MDC items that are drillable
|
|
286
331
|
*
|
|
287
332
|
* @experimental
|
|
288
333
|
* @private
|
|
@@ -418,6 +463,16 @@ sap.ui.define([
|
|
|
418
463
|
return Promise.resolve(true);
|
|
419
464
|
};
|
|
420
465
|
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Sets a "No Data" text for the inner chart.
|
|
469
|
+
* @param {sap.ui.mdc.Chart} oMDCChart Reference to mdc chart
|
|
470
|
+
* @param {string} sText Text to show when there is no data displayed on the chart
|
|
471
|
+
*/
|
|
472
|
+
ChartDelegate.setNoDataText = function(oMDCChart, sText) {
|
|
473
|
+
|
|
474
|
+
};
|
|
475
|
+
|
|
421
476
|
/**
|
|
422
477
|
* Returns the relevant propery infos based on the metadata used with the MDC chart instance.
|
|
423
478
|
*
|
|
@@ -28,7 +28,7 @@ sap.ui.define(['./library'],
|
|
|
28
28
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
29
29
|
*
|
|
30
30
|
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer
|
|
31
|
-
* @param {sap.ui.mdc.Chart}
|
|
31
|
+
* @param {sap.ui.mdc.Chart} oMDCChart An object representation of the control that should be rendered
|
|
32
32
|
*/
|
|
33
33
|
ChartRenderer.render = function(oRm, oMDCChart) {
|
|
34
34
|
oRm.openStart("div", oMDCChart);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/core/Control", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/AdaptationMixin"
|
|
8
|
-
], function(CoreControl, DelegateMixin, AdaptationMixin) {
|
|
7
|
+
"sap/ui/core/Control", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/PropertyHelperMixin", "sap/ui/mdc/mixin/AdaptationMixin"
|
|
8
|
+
], function(CoreControl, DelegateMixin, PropertyHelperMixin, AdaptationMixin) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @extends sap.ui.core.Control
|
|
21
21
|
* @abstract
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.102.0
|
|
24
24
|
* @alias sap.ui.mdc.Control
|
|
25
25
|
*
|
|
26
26
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
|
|
@@ -28,9 +28,12 @@ sap.ui.define([
|
|
|
28
28
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.getPayload as getPayload
|
|
29
29
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.getTypeUtil as getTypeUtil
|
|
30
30
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.initControlDelegate as initControlDelegate
|
|
31
|
-
*
|
|
32
|
-
* @borrows sap.ui.mdc.mixin.
|
|
33
|
-
* @borrows sap.ui.mdc.mixin.
|
|
31
|
+
*
|
|
32
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.initPropertyHelper as initPropertyHelper
|
|
33
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.awaitPropertyHelper as awaitPropertyHelper
|
|
34
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.getPropertyHelper as getPropertyHelper
|
|
35
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.finalizePropertyHelper as finalizePropertyHelper
|
|
36
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.isPropertyHelperFinal as isPropertyHelperFinal
|
|
34
37
|
*
|
|
35
38
|
* @borrows sap.ui.mdc.mixin.AdaptationMixin.getEngine as getInstance
|
|
36
39
|
* @borrows sap.ui.mdc.mixin.AdaptationMixin.retrieveInbuiltFilter as retrieveInbuiltFilter
|
|
@@ -61,8 +64,10 @@ sap.ui.define([
|
|
|
61
64
|
renderer: CoreControl.renderer
|
|
62
65
|
});
|
|
63
66
|
|
|
67
|
+
|
|
64
68
|
DelegateMixin.call(Control.prototype);
|
|
65
69
|
AdaptationMixin.call(Control.prototype);
|
|
70
|
+
PropertyHelperMixin.call(Control.prototype);
|
|
66
71
|
|
|
67
72
|
return Control;
|
|
68
73
|
});
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/core/Element", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/AdaptationMixin"
|
|
8
|
-
], function(CoreElement, DelegateMixin, AdaptationMixin) {
|
|
7
|
+
"sap/ui/core/Element", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/PropertyHelperMixin", "sap/ui/mdc/mixin/AdaptationMixin"
|
|
8
|
+
], function(CoreElement, DelegateMixin, PropertyHelperMixin, AdaptationMixin) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @extends sap.ui.core.Element
|
|
21
21
|
* @abstract
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.102.0
|
|
24
24
|
* @alias sap.ui.mdc.Element
|
|
25
25
|
*
|
|
26
26
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
|
|
@@ -28,10 +28,13 @@ sap.ui.define([
|
|
|
28
28
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.getPayload as getPayload
|
|
29
29
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.getTypeUtil as getTypeUtil
|
|
30
30
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.initControlDelegate as initControlDelegate
|
|
31
|
-
* @borrows sap.ui.mdc.mixin.DelegateMixin.initPropertyHelper as initPropertyHelper
|
|
32
|
-
* @borrows sap.ui.mdc.mixin.DelegateMixin.awaitPropertyHelper as awaitPropertyHelper
|
|
33
|
-
* @borrows sap.ui.mdc.mixin.DelegateMixin.getPropertyHelper as getPropertyHelper
|
|
34
31
|
*
|
|
32
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.initPropertyHelper as initPropertyHelper
|
|
33
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.awaitPropertyHelper as awaitPropertyHelper
|
|
34
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.getPropertyHelper as getPropertyHelper
|
|
35
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.finalizePropertyHelper as finalizePropertyHelper
|
|
36
|
+
* @borrows sap.ui.mdc.mixin.PropertyHelperMixin.isPropertyHelperFinal as isPropertyHelperFinal
|
|
37
|
+
*
|
|
35
38
|
* @borrows sap.ui.mdc.mixin.AdaptationMixin.getEngine as getInstance
|
|
36
39
|
* @borrows sap.ui.mdc.mixin.AdaptationMixin.retrieveInbuiltFilter as retrieveInbuiltFilter
|
|
37
40
|
* @borrows sap.ui.mdc.mixin.AdaptationMixin.getInbuiltFilter as getInbuiltFilter
|
|
@@ -63,6 +66,7 @@ sap.ui.define([
|
|
|
63
66
|
|
|
64
67
|
DelegateMixin.call(Element.prototype);
|
|
65
68
|
AdaptationMixin.call(Element.prototype);
|
|
69
|
+
PropertyHelperMixin.call(Element.prototype);
|
|
66
70
|
|
|
67
71
|
return Element;
|
|
68
72
|
});
|