@openui5/sap.ui.mdc 1.96.5 → 1.99.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +7 -9
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +1100 -1796
- package/src/sap/ui/mdc/ChartDelegate.js +429 -270
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- 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 +3 -2
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterField.js +25 -8
- package/src/sap/ui/mdc/Link.js +23 -4
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +21 -6
- package/src/sap/ui/mdc/Table.js +204 -161
- package/src/sap/ui/mdc/TableDelegate.js +47 -17
- package/src/sap/ui/mdc/ValueHelp.js +51 -15
- package/src/sap/ui/mdc/ValueHelpDelegate.js +20 -0
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
- package/src/sap/ui/mdc/chart/Item.js +62 -92
- package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
- 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 +261 -44
- package/src/sap/ui/mdc/condition/Operator.js +9 -9
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +80 -5
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +97 -0
- package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
- package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
- package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
- 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 +9 -9
- package/src/sap/ui/mdc/field/ConditionsType.js +7 -7
- 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 +75 -27
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +85 -52
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
- 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 +7 -7
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +20 -0
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +7 -3
- 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 +10 -2
- 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 +70 -0
- package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +2 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +28 -26
- package/src/sap/ui/mdc/field/content/DateContent.js +128 -2
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +9 -1
- package/src/sap/ui/mdc/field/content/DefaultContent.js +36 -14
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/field/content/TimeContent.js +8 -1
- package/src/sap/ui/mdc/field/content/UnitContent.js +23 -4
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +359 -142
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
- package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
- package/src/sap/ui/mdc/library.js +62 -43
- 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 +2 -2
- 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/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +140 -177
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelListItem.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 +68 -5
- package/src/sap/ui/mdc/messagebundle_ar.properties +47 -6
- package/src/sap/ui/mdc/messagebundle_bg.properties +61 -20
- package/src/sap/ui/mdc/messagebundle_ca.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_cs.properties +60 -19
- package/src/sap/ui/mdc/messagebundle_cy.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_da.properties +52 -11
- package/src/sap/ui/mdc/messagebundle_de.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_el.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_en.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +51 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +51 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +59 -18
- package/src/sap/ui/mdc/messagebundle_et.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_fi.properties +51 -10
- package/src/sap/ui/mdc/messagebundle_fr.properties +50 -9
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_hi.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_hr.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_hu.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_id.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_it.properties +61 -20
- package/src/sap/ui/mdc/messagebundle_iw.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_ja.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_kk.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_ko.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_lt.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_lv.properties +49 -8
- package/src/sap/ui/mdc/messagebundle_ms.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_nl.properties +49 -8
- package/src/sap/ui/mdc/messagebundle_no.properties +53 -12
- package/src/sap/ui/mdc/messagebundle_pl.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_pt.properties +52 -11
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_ro.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_ru.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sh.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sk.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sl.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sv.properties +47 -6
- package/src/sap/ui/mdc/messagebundle_th.properties +48 -7
- package/src/sap/ui/mdc/messagebundle_tr.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_uk.properties +49 -8
- package/src/sap/ui/mdc/messagebundle_vi.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +45 -4
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +16 -11
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +160 -116
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +215 -116
- package/src/sap/ui/mdc/p13n/Engine.js +61 -20
- package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +8 -8
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +21 -10
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +40 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +15 -12
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
- package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +2 -2
- package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +19 -3
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
- package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
- package/src/sap/ui/mdc/table/Column.js +35 -10
- package/src/sap/ui/mdc/table/CreationRow.js +14 -13
- package/src/sap/ui/mdc/table/GridTableType.js +13 -13
- package/src/sap/ui/mdc/table/PropertyHelper.js +64 -27
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +26 -29
- package/src/sap/ui/mdc/table/RowSettings.js +7 -5
- package/src/sap/ui/mdc/table/TableTypeBase.js +6 -6
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +15 -71
- package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
- package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
- package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
- package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +3 -0
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
- package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +148 -325
- package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Dialog.js +12 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +14 -2
- package/src/sap/ui/mdc/valuehelp/base/Container.js +33 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +36 -5
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +43 -15
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +28 -32
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +50 -10
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +57 -26
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
- package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
- package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +362 -233
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
- package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
- package/src/sap/ui/mdc/ChartNew.js +0 -1114
- package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
- package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
- package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
- package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
- package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
- package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1171
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/m/OverflowToolbarButton", "sap/m/ButtonRenderer", "sap/ui/base/ManagedObjectObserver", "sap/ui/core/library", "sap/m/PlacementType"
|
|
8
|
-
], function(OverflowToolbarButton, ButtonRenderer, ManagedObjectObserver, CoreLibrary, PlacementType) {
|
|
9
|
-
"use strict";
|
|
10
|
-
|
|
11
|
-
var HasPopup = CoreLibrary.aria.HasPopup;
|
|
12
|
-
var ResponsivePopover, List, Bar, SearchField, StandardListItem, InvisibleText, Device, oRb;
|
|
13
|
-
|
|
14
|
-
var ChartTypeButton = OverflowToolbarButton.extend("sap.ui.mdc.chart.ChartTypeButton", {
|
|
15
|
-
metadata: {
|
|
16
|
-
library: "sap.ui.mdc"
|
|
17
|
-
},
|
|
18
|
-
constructor: function(oMDCChart) {
|
|
19
|
-
|
|
20
|
-
if (!oMDCChart) {
|
|
21
|
-
OverflowToolbarButton.apply(this);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
this.oMDCChartModel = oMDCChart.getManagedObjectModel();
|
|
26
|
-
var mSettings = {
|
|
27
|
-
type: "Transparent",
|
|
28
|
-
press: function(oEvent) {
|
|
29
|
-
this.displayChartTypes(oEvent.getSource(), oMDCChart);
|
|
30
|
-
}.bind(this),
|
|
31
|
-
id: oMDCChart.getId() + "-btnChartType",
|
|
32
|
-
icon: '{$chart>/getChartTypeInfo/icon}',
|
|
33
|
-
tooltip: '{$chart>/getChartTypeInfo/text}',
|
|
34
|
-
text: '{$chart>/getChartTypeInfo/text}',
|
|
35
|
-
ariaHasPopup: HasPopup.ListBox
|
|
36
|
-
};
|
|
37
|
-
this.oMDCChart = oMDCChart;
|
|
38
|
-
OverflowToolbarButton.apply(this, [
|
|
39
|
-
mSettings
|
|
40
|
-
]);
|
|
41
|
-
this.setModel(this.oMDCChartModel, "$chart");
|
|
42
|
-
|
|
43
|
-
this._oObserver = new ManagedObjectObserver(function() {
|
|
44
|
-
this.oMDCChartModel.checkUpdate(true);
|
|
45
|
-
}.bind(this));
|
|
46
|
-
this._oObserver.observe(this.oMDCChart, {
|
|
47
|
-
aggregations: [
|
|
48
|
-
"items"
|
|
49
|
-
],
|
|
50
|
-
properties: [
|
|
51
|
-
"chartType"
|
|
52
|
-
]
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
renderer: ButtonRenderer
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
ChartTypeButton.mMatchingIcon = {
|
|
60
|
-
"bar": "sap-icon://horizontal-bar-chart",
|
|
61
|
-
"bullet": "sap-icon://horizontal-bullet-chart",
|
|
62
|
-
"bubble": "sap-icon://bubble-chart",
|
|
63
|
-
"column": "sap-icon://vertical-bar-chart",
|
|
64
|
-
"combination": "sap-icon://business-objects-experience",
|
|
65
|
-
"dual_bar": "sap-icon://horizontal-bar-chart",
|
|
66
|
-
"dual_column": "sap-icon://vertical-bar-chart",
|
|
67
|
-
"dual_combination": "sap-icon://business-objects-experience",
|
|
68
|
-
"dual_horizontal_combination": "sap-icon://business-objects-experience",
|
|
69
|
-
"dual_horizontal_stacked_combination": "sap-icon://business-objects-experience",
|
|
70
|
-
"dual_line": "sap-icon://line-chart",
|
|
71
|
-
"dual_stacked_bar": "sap-icon://full-stacked-chart",
|
|
72
|
-
"dual_stacked_column": "sap-icon://vertical-stacked-chart",
|
|
73
|
-
"dual_stacked_combination": "sap-icon://business-objects-experience",
|
|
74
|
-
"donut": "sap-icon://donut-chart",
|
|
75
|
-
"heatmap": "sap-icon://heatmap-chart",
|
|
76
|
-
"horizontal_stacked_combination": "sap-icon://business-objects-experience",
|
|
77
|
-
"line": "sap-icon://line-chart",
|
|
78
|
-
"pie": "sap-icon://pie-chart",
|
|
79
|
-
"scatter": "sap-icon://scatter-chart",
|
|
80
|
-
"stacked_bar": "sap-icon://full-stacked-chart",
|
|
81
|
-
"stacked_column": "sap-icon://vertical-stacked-chart",
|
|
82
|
-
"stacked_combination": "sap-icon://business-objects-experience",
|
|
83
|
-
"treemap": "sap-icon://Chart-Tree-Map", // probably has to change
|
|
84
|
-
"vertical_bullet": "sap-icon://vertical-bullet-chart",
|
|
85
|
-
"100_dual_stacked_bar": "sap-icon://full-stacked-chart",
|
|
86
|
-
"100_dual_stacked_column": "sap-icon://vertical-stacked-chart",
|
|
87
|
-
"100_stacked_bar": "sap-icon://full-stacked-chart",
|
|
88
|
-
"100_stacked_column": "sap-icon://full-stacked-column-chart",
|
|
89
|
-
"waterfall": "sap-icon://vertical-waterfall-chart",
|
|
90
|
-
"horizontal_waterfall": "sap-icon://horizontal-waterfall-chart"
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Shows popover to select chart type
|
|
95
|
-
* @param oButton button opening the popover
|
|
96
|
-
* @param oMDCChart the inner chart
|
|
97
|
-
*
|
|
98
|
-
* @experimental
|
|
99
|
-
* @private
|
|
100
|
-
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
101
|
-
*/
|
|
102
|
-
ChartTypeButton.prototype.displayChartTypes = function(oButton, oMDCChart) {
|
|
103
|
-
if (!oMDCChart || !oButton) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (!this.oReadyPromise) {
|
|
108
|
-
this.oReadyPromise = new Promise(function(resolve) {
|
|
109
|
-
if (ResponsivePopover) {
|
|
110
|
-
resolve(true);
|
|
111
|
-
} else {
|
|
112
|
-
sap.ui.require([
|
|
113
|
-
"sap/m/ResponsivePopover", "sap/m/List", "sap/m/Bar", "sap/m/SearchField", "sap/m/StandardListItem", "sap/ui/core/InvisibleText", "sap/ui/Device"
|
|
114
|
-
], function(ResponsivePopoverLoaded, ListLoaded, BarLoaded, SearchFieldLoaded, StandardListItemLoaded, InvisibleTextLoaded, DeviceLoaded) {
|
|
115
|
-
ResponsivePopover = ResponsivePopoverLoaded;
|
|
116
|
-
List = ListLoaded;
|
|
117
|
-
Bar = BarLoaded;
|
|
118
|
-
SearchField = SearchFieldLoaded;
|
|
119
|
-
StandardListItem = StandardListItemLoaded;
|
|
120
|
-
InvisibleText = InvisibleTextLoaded;
|
|
121
|
-
Device = DeviceLoaded;
|
|
122
|
-
if (!oRb) {
|
|
123
|
-
sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc", true).then(function(oRbLoaded) {
|
|
124
|
-
oRb = oRbLoaded;
|
|
125
|
-
resolve(true);
|
|
126
|
-
});
|
|
127
|
-
} else {
|
|
128
|
-
resolve(true);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
this.oReadyPromise.then(function() {
|
|
137
|
-
this.oPopover = this._createPopover(oButton, oMDCChart);
|
|
138
|
-
this.oPopover.attachAfterClose(function(){
|
|
139
|
-
this.oPopover.destroy();
|
|
140
|
-
}.bind(this));
|
|
141
|
-
return this.oPopover.openBy(oButton);
|
|
142
|
-
}.bind(this));
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Creates the popover
|
|
147
|
-
* @param oButton button opening the popover
|
|
148
|
-
* @param oMDCChart inner chart
|
|
149
|
-
*
|
|
150
|
-
* @experimental
|
|
151
|
-
* @private
|
|
152
|
-
* @ui5-restricted sap.ui.mdc
|
|
153
|
-
*/
|
|
154
|
-
ChartTypeButton.prototype._createPopover = function(oButton, oMDCChart) {
|
|
155
|
-
var oItemTemplate = new StandardListItem({
|
|
156
|
-
title: "{$chart>text}",
|
|
157
|
-
icon: "{$chart>icon}",
|
|
158
|
-
selected: "{$chart>selected}"
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
var oList = new List({
|
|
162
|
-
mode: "SingleSelectMaster",
|
|
163
|
-
items: {
|
|
164
|
-
path: "$chart>/getAvailableChartTypes",
|
|
165
|
-
template: oItemTemplate
|
|
166
|
-
},
|
|
167
|
-
selectionChange: function(oEvent) {
|
|
168
|
-
//TODO: Implement Chart Type switch
|
|
169
|
-
if (oEvent && oEvent.mParameters && oEvent.mParameters.listItem) {
|
|
170
|
-
var oBinding = oEvent.mParameters.listItem.getBinding("title");
|
|
171
|
-
if (oBinding) {
|
|
172
|
-
var oCtx = oBinding.getContext();
|
|
173
|
-
if (oCtx) {
|
|
174
|
-
var oObj = oCtx.getObject();
|
|
175
|
-
if (oObj && oObj.key) {
|
|
176
|
-
sap.ui.require([
|
|
177
|
-
"sap/ui/mdc/p13n/FlexUtil", "sap/ui/mdc/flexibility/Chart.flexibility"
|
|
178
|
-
], function(FlexUtil,ChartFlex) {
|
|
179
|
-
var aChanges = [];
|
|
180
|
-
aChanges.push(ChartFlex["setChartType"].changeHandler.createChange({
|
|
181
|
-
control: oMDCChart,
|
|
182
|
-
chartType: oObj.key
|
|
183
|
-
}));
|
|
184
|
-
FlexUtil.handleChanges(aChanges);
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
oPopover.close();
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
var oSubHeader = new Bar();
|
|
196
|
-
var oSearchField = new SearchField({
|
|
197
|
-
placeholder: oRb.getText("chart.CHART_TYPE_SEARCH")
|
|
198
|
-
});
|
|
199
|
-
oSearchField.attachLiveChange(function(oEvent) {
|
|
200
|
-
if (oMDCChart){
|
|
201
|
-
this._triggerSearchInPopover(oEvent, oList);
|
|
202
|
-
}
|
|
203
|
-
}.bind(this));
|
|
204
|
-
oSubHeader.addContentRight(oSearchField);
|
|
205
|
-
|
|
206
|
-
var oPopover = new ResponsivePopover({
|
|
207
|
-
id: oMDCChart.getId() + "-btnChartTypePopover",
|
|
208
|
-
placement: PlacementType.VerticalPreferredBottom,
|
|
209
|
-
subHeader: oSubHeader,
|
|
210
|
-
contentWidth: "25rem"
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
oPopover.setModel(this.oMDCChartModel, "$chart");
|
|
214
|
-
|
|
215
|
-
//Show header only in mobile scenarios
|
|
216
|
-
//still support screen reader while on desktops.
|
|
217
|
-
if (Device.system.desktop) {
|
|
218
|
-
var oInvText = new InvisibleText({
|
|
219
|
-
text: oRb.getText("chart.CHART_TYPELIST_TEXT")
|
|
220
|
-
});
|
|
221
|
-
oPopover.setShowHeader(false);
|
|
222
|
-
oPopover.addContent(oInvText);
|
|
223
|
-
oPopover.addAriaLabelledBy(oInvText);
|
|
224
|
-
} else {
|
|
225
|
-
oPopover.setTitle(oRb.getText("chart.CHART_TYPELIST_TEXT"));
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
oPopover.addContent(oList);
|
|
229
|
-
|
|
230
|
-
if (oList.getItems().length < 7) {
|
|
231
|
-
oSubHeader.setVisible(false);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/*
|
|
235
|
-
oPopover.attachAfterClose(function(oEvent) {
|
|
236
|
-
oPopover.destroy();
|
|
237
|
-
});*/
|
|
238
|
-
|
|
239
|
-
return oPopover;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Triggers a search in the drill-down popover
|
|
244
|
-
*
|
|
245
|
-
* @param {object} oEvent The event arguments
|
|
246
|
-
* @param {sap.m.List} oList The list to search in
|
|
247
|
-
* @private
|
|
248
|
-
*/
|
|
249
|
-
ChartTypeButton.prototype._triggerSearchInPopover = function(oEvent, oList) {
|
|
250
|
-
|
|
251
|
-
var parameters, i, sTitle, sTooltip, sValue, aItems;
|
|
252
|
-
|
|
253
|
-
if (!oEvent || !oList) {
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
parameters = oEvent.getParameters();
|
|
258
|
-
if (!parameters) {
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
sValue = parameters.newValue ? parameters.newValue.toLowerCase() : "";
|
|
263
|
-
|
|
264
|
-
aItems = oList.getItems();
|
|
265
|
-
for (i = 0; i < aItems.length; i++) {
|
|
266
|
-
|
|
267
|
-
sTooltip = aItems[i].getTooltip();
|
|
268
|
-
sTitle = aItems[i].getTitle();
|
|
269
|
-
|
|
270
|
-
if ((sTitle && (sTitle.toLowerCase().indexOf(sValue) > -1)) || (sTooltip && (sTooltip.toLowerCase().indexOf(sValue) > -1))) {
|
|
271
|
-
aItems[i].setVisible(true);
|
|
272
|
-
} else {
|
|
273
|
-
aItems[i].setVisible(false);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Closes the popover to select chart type
|
|
280
|
-
*
|
|
281
|
-
* @experimental
|
|
282
|
-
* @private
|
|
283
|
-
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
284
|
-
*/
|
|
285
|
-
ChartTypeButton.prototype.exit = function() {
|
|
286
|
-
OverflowToolbarButton.prototype.exit.apply(this, arguments);
|
|
287
|
-
if (this.oPopover) {
|
|
288
|
-
this.oPopover.destroy();
|
|
289
|
-
this.oPopover = null;
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
return ChartTypeButton;
|
|
294
|
-
|
|
295
|
-
}, true);
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/core/Core",
|
|
8
|
-
"sap/m/ResponsivePopover",
|
|
9
|
-
"sap/m/List",
|
|
10
|
-
"sap/m/Bar",
|
|
11
|
-
"sap/m/SearchField",
|
|
12
|
-
"sap/m/StandardListItem",
|
|
13
|
-
"sap/ui/core/InvisibleText",
|
|
14
|
-
"sap/m/library",
|
|
15
|
-
"sap/ui/Device",
|
|
16
|
-
"sap/ui/mdc/chart/DimensionItem",
|
|
17
|
-
"sap/ui/mdc/chart/ChartSettings",
|
|
18
|
-
"sap/base/Log"
|
|
19
|
-
], function(
|
|
20
|
-
Core,
|
|
21
|
-
ResponsivePopover,
|
|
22
|
-
List,
|
|
23
|
-
Bar,
|
|
24
|
-
SearchField,
|
|
25
|
-
StandardListItem,
|
|
26
|
-
InvisibleText,
|
|
27
|
-
MLibrary,
|
|
28
|
-
Device,
|
|
29
|
-
DimensionItem,
|
|
30
|
-
ChartSettings,
|
|
31
|
-
Log
|
|
32
|
-
) {
|
|
33
|
-
"use strict";
|
|
34
|
-
|
|
35
|
-
// shortcut for sap.m.PlacementType
|
|
36
|
-
var PlacementType = MLibrary.PlacementType;
|
|
37
|
-
|
|
38
|
-
// shortcut for sap.m.ListType
|
|
39
|
-
var ListType = MLibrary.ListType;
|
|
40
|
-
|
|
41
|
-
// shortcut for sap.m.ListMode
|
|
42
|
-
var ListMode = MLibrary.ListMode;
|
|
43
|
-
|
|
44
|
-
function _getDrillStackDimensions(oMDCChart) {
|
|
45
|
-
var aDrillStack = oMDCChart.getControlDelegate().getDrillStack(oMDCChart);
|
|
46
|
-
var aStackDimensions = [];
|
|
47
|
-
|
|
48
|
-
aDrillStack.forEach(function(oStackEntry) {
|
|
49
|
-
// loop over nested dimension arrays
|
|
50
|
-
oStackEntry.dimension.forEach(function(sDimension) {
|
|
51
|
-
if (sDimension != null && sDimension != "" && aStackDimensions.indexOf(sDimension) == -1) {
|
|
52
|
-
aStackDimensions.push(sDimension);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
return aStackDimensions;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Handles all drill-stack operations on a mdc.Chart instance
|
|
62
|
-
* inlcuding drill-downs, drill-ups and updating of depending controls
|
|
63
|
-
* @constructor
|
|
64
|
-
*/
|
|
65
|
-
var DrillStackHandler = function() {
|
|
66
|
-
//TODO: Refactor to DrillDownPopover (extending Popover; like Toolbar)
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Creates a drill down popover
|
|
71
|
-
* @param oChart
|
|
72
|
-
* @returns the popover object
|
|
73
|
-
*
|
|
74
|
-
* @private
|
|
75
|
-
* @ui5-restricted sap.ui.mdc
|
|
76
|
-
*/
|
|
77
|
-
DrillStackHandler.createDrillDownPopover = function(oMDCChart) {
|
|
78
|
-
|
|
79
|
-
var oSubHeader = new Bar();
|
|
80
|
-
var oPopover = new ResponsivePopover({
|
|
81
|
-
id: oMDCChart.getId() + "-drilldownPopover",
|
|
82
|
-
contentWidth: "25rem",
|
|
83
|
-
contentHeight: "20rem",
|
|
84
|
-
placement: PlacementType.Bottom,
|
|
85
|
-
subHeader: oSubHeader
|
|
86
|
-
});
|
|
87
|
-
var oList = new List({
|
|
88
|
-
mode: ListMode.SingleSelectMaster,
|
|
89
|
-
selectionChange: function(oControlEvent) {
|
|
90
|
-
var oListItem = oControlEvent.getParameter("listItem");
|
|
91
|
-
|
|
92
|
-
if (oListItem) {
|
|
93
|
-
//Call flex to capture current state before adding an item to the chart aggregation
|
|
94
|
-
|
|
95
|
-
oMDCChart.getEngine().createChanges({
|
|
96
|
-
control: oMDCChart,
|
|
97
|
-
key: "Item",
|
|
98
|
-
state: [{
|
|
99
|
-
name: oListItem.data("dim").name,
|
|
100
|
-
position: oMDCChart.getItems().length
|
|
101
|
-
}]
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
oPopover.close();
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
oPopover.attachAfterClose(function(){
|
|
110
|
-
oPopover.destroy();
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
//TODO add search field
|
|
114
|
-
//var oSearchField = new SearchField({
|
|
115
|
-
//placeholder: this._oRb.getText("CHART_DRILLDOWN_SEARCH")
|
|
116
|
-
//});
|
|
117
|
-
//oSearchField.attachLiveChange(function(oEvent) {
|
|
118
|
-
//this._triggerSearchInDrillDownPopover(oEvent, oList);
|
|
119
|
-
//}.bind(this));
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var oRb = Core.getLibraryResourceBundle("sap.ui.mdc");
|
|
123
|
-
|
|
124
|
-
//Show header only in mobile scenarios
|
|
125
|
-
//still support screen reader while on desktops.
|
|
126
|
-
if (Device.system.desktop) {
|
|
127
|
-
var oInvText = new InvisibleText({
|
|
128
|
-
text: oRb.getText("chart.CHART_DRILLDOWN_TITLE")
|
|
129
|
-
});
|
|
130
|
-
oPopover.setShowHeader(false);
|
|
131
|
-
oPopover.addContent(oInvText);
|
|
132
|
-
oPopover.addAriaLabelledBy(oInvText);
|
|
133
|
-
} else {
|
|
134
|
-
oPopover.setTitle(oRb.getText("chart.CHART_DRILLDOWN_TITLE"));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
oPopover.addContent(oList);
|
|
138
|
-
oMDCChart._oDrillDownPopover = oPopover;
|
|
139
|
-
return oPopover;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Shows the drill-down popover on the toolbar button of an mdc.Chart instance
|
|
144
|
-
* @param {sap.ui.mdc.ChartNew} oChart
|
|
145
|
-
* @param {sap.m.Button}
|
|
146
|
-
*
|
|
147
|
-
* @experimental
|
|
148
|
-
* @private
|
|
149
|
-
* @ui5-restricted sap.ui.mdc
|
|
150
|
-
*/
|
|
151
|
-
DrillStackHandler.showDrillDownPopover = function(oMDCChart, oDrillBtn) {
|
|
152
|
-
//TODO: Rename "Measure" and "Dimensions"?
|
|
153
|
-
var pSortedDimensionsPromise = oMDCChart.getControlDelegate().getSortedDimensions(oMDCChart);
|
|
154
|
-
return pSortedDimensionsPromise.then(function(aSortedDimensions) {
|
|
155
|
-
//Remove all prior items from drill-down list
|
|
156
|
-
var oDrillDownPopover = oMDCChart._oDrillDownPopover;
|
|
157
|
-
var aIgnoreDimensions, oDimension, oListItem;
|
|
158
|
-
|
|
159
|
-
var aFilteredList = oDrillDownPopover.getContent().filter(function(oEntry){return oEntry.getMetadata().getClass() == List;});
|
|
160
|
-
var oDrillDownList = aFilteredList.length > 0 ? aFilteredList[0] : null;
|
|
161
|
-
|
|
162
|
-
if (!oDrillDownList){
|
|
163
|
-
Log.error("MDC Chart: Could not determine list to show drilldown. This should not happen. Did the application modify the drill-down popover?");
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
oDrillDownList.destroyItems();
|
|
168
|
-
|
|
169
|
-
// Ignore currently applied dimensions from drill-stack for selection
|
|
170
|
-
aIgnoreDimensions = _getDrillStackDimensions(oMDCChart);
|
|
171
|
-
|
|
172
|
-
for (var i = 0; i < aSortedDimensions.length; i++) {
|
|
173
|
-
oDimension = aSortedDimensions[i];
|
|
174
|
-
|
|
175
|
-
if (aIgnoreDimensions.indexOf(oDimension.name) > -1) {
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
//TODO: Check if still valid
|
|
180
|
-
// If dimension is not filterable and datapoints are selected then skip
|
|
181
|
-
/*if (!oViewField.filterable && this._oChart.getSelectedDataPoints().count > 0) {
|
|
182
|
-
continue;
|
|
183
|
-
}*/
|
|
184
|
-
|
|
185
|
-
oListItem = new StandardListItem({
|
|
186
|
-
title: oDimension.label,
|
|
187
|
-
type: ListType.Active
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
oListItem.data("dim", oDimension);
|
|
191
|
-
|
|
192
|
-
/*sTooltip = this._getFieldTooltip(oDimension.name);
|
|
193
|
-
if (sTooltip) {
|
|
194
|
-
oListItem.setTooltip(sTooltip);
|
|
195
|
-
}*/
|
|
196
|
-
|
|
197
|
-
//Add item to list within popover
|
|
198
|
-
oDrillDownList.addItem(oListItem);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return new Promise(function(resolve, reject) {
|
|
202
|
-
oDrillDownPopover.attachEventOnce("afterOpen", function onAfterDrillDownPopoverOpen(oControlEvent) {
|
|
203
|
-
resolve(oDrillDownPopover);
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
oDrillDownPopover.openBy(oDrillBtn);
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
return DrillStackHandler;
|
|
212
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* !OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/core/Element",
|
|
8
|
-
"sap/base/Log"
|
|
9
|
-
], function(Element, Log) {
|
|
10
|
-
"use strict";
|
|
11
|
-
|
|
12
|
-
// Provides the Item class.
|
|
13
|
-
/**
|
|
14
|
-
* Constructor for a new ItemNew.
|
|
15
|
-
*
|
|
16
|
-
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
17
|
-
* @param {object} [mSettings] initial settings for the new control
|
|
18
|
-
* @class The Item for the field/property metadata used within MDC controls, an instance can be created to override the default/metadata
|
|
19
|
-
* behavior.
|
|
20
|
-
* <h3><b>Note:</b></h3>
|
|
21
|
-
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
22
|
-
* @extends sap.ui.core.Element
|
|
23
|
-
* @author SAP SE
|
|
24
|
-
* @private
|
|
25
|
-
* @experimental
|
|
26
|
-
* @since 1.88
|
|
27
|
-
* @alias sap.ui.mdc.chartNew.ItemNew
|
|
28
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
29
|
-
*/
|
|
30
|
-
var Item = Element.extend("sap.ui.mdc.chartNew.ItemNew", /** @lends sap.ui.mdc.chartNew.ItemNew.prototype */
|
|
31
|
-
{
|
|
32
|
-
metadata: {
|
|
33
|
-
"abstract": false, //TODO: see comment at the end.
|
|
34
|
-
library: "sap.ui.mdc",
|
|
35
|
-
properties: {
|
|
36
|
-
/**
|
|
37
|
-
* The unique identifier of the chart item which reflects to the name of the data property in the resulting data set
|
|
38
|
-
*/
|
|
39
|
-
name: {
|
|
40
|
-
type: "string"
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label.
|
|
44
|
-
*
|
|
45
|
-
* <b>NOTE:</b> This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting.
|
|
46
|
-
*/
|
|
47
|
-
label: {
|
|
48
|
-
type: "string"
|
|
49
|
-
},
|
|
50
|
-
//TODO: Create a proper type map for groupable and aggregateable
|
|
51
|
-
type: {
|
|
52
|
-
type:"string",
|
|
53
|
-
defaultValue:""
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the role of the Item for the chart.
|
|
57
|
-
* This is specific for the used chart library. Consult their documentation.
|
|
58
|
-
* <b>NOTE: </b> This property should not be changed after initialization.
|
|
59
|
-
*/
|
|
60
|
-
role: {
|
|
61
|
-
type: "string"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
//TODO: Clarify if we really don't need an implementation for dimensions and measures, as both seem to have quite a difference in functionality.
|
|
69
|
-
|
|
70
|
-
return Item;
|
|
71
|
-
|
|
72
|
-
}, true);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* !OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/core/Element"
|
|
8
|
-
], function(Element) {
|
|
9
|
-
"use strict";
|
|
10
|
-
|
|
11
|
-
// The aggregation to feed details actions for datapoint selection in the mdc chart
|
|
12
|
-
var SelectionDetailsActions = Element.extend("sap.ui.mdc.chart.SelectionDetailsActionsNew", {
|
|
13
|
-
|
|
14
|
-
metadata: {
|
|
15
|
-
library: "sap.ui.mdc",
|
|
16
|
-
aggregations: {
|
|
17
|
-
detailsItemActions: {
|
|
18
|
-
type: "sap.ui.core.Item",
|
|
19
|
-
multiple: true
|
|
20
|
-
},
|
|
21
|
-
detailsActions: {
|
|
22
|
-
type: "sap.ui.core.Item",
|
|
23
|
-
multiple: true
|
|
24
|
-
},
|
|
25
|
-
actionGroups: {
|
|
26
|
-
type: "sap.ui.core.Item",
|
|
27
|
-
multiple: true
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
return SelectionDetailsActions;
|
|
34
|
-
}, true);
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/mdc/p13n/Engine"
|
|
8
|
-
], function (Engine) {
|
|
9
|
-
"use strict";
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
actions: {
|
|
13
|
-
settings: function () {
|
|
14
|
-
//RTA expects the settings to be returned as function
|
|
15
|
-
return {
|
|
16
|
-
handler: function (oControl, mPropertyBag) {
|
|
17
|
-
return Engine.getInstance().getRTASettingsActionHandler(oControl, mPropertyBag, oControl.getP13nMode());
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
properties: {
|
|
23
|
-
width: {
|
|
24
|
-
ignore: false
|
|
25
|
-
},
|
|
26
|
-
height: {
|
|
27
|
-
ignore: false
|
|
28
|
-
},
|
|
29
|
-
delegate: {
|
|
30
|
-
ignore: true
|
|
31
|
-
},
|
|
32
|
-
header: {
|
|
33
|
-
ignore: false
|
|
34
|
-
},
|
|
35
|
-
noDataText: {
|
|
36
|
-
ignore: false
|
|
37
|
-
},
|
|
38
|
-
p13nMode: {
|
|
39
|
-
ignore: false
|
|
40
|
-
},
|
|
41
|
-
legendVisible: {
|
|
42
|
-
ignore: false
|
|
43
|
-
},
|
|
44
|
-
ignoreToolbarActions: {
|
|
45
|
-
ignore: false
|
|
46
|
-
},
|
|
47
|
-
minWidth: {
|
|
48
|
-
ignore: false
|
|
49
|
-
},
|
|
50
|
-
minHeight: {
|
|
51
|
-
ignore: false
|
|
52
|
-
},
|
|
53
|
-
sortConditions: {
|
|
54
|
-
ignore: true
|
|
55
|
-
},
|
|
56
|
-
showChartTooltip: {
|
|
57
|
-
ignore: false
|
|
58
|
-
},
|
|
59
|
-
autoBindOnInit: {
|
|
60
|
-
ignore: false
|
|
61
|
-
},
|
|
62
|
-
chartType: {
|
|
63
|
-
ignore: false
|
|
64
|
-
},
|
|
65
|
-
showSelectionDetails: {
|
|
66
|
-
ignore: false
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
aggregations: {
|
|
70
|
-
items: {
|
|
71
|
-
ignore: false
|
|
72
|
-
},
|
|
73
|
-
actions: {
|
|
74
|
-
ignore: false
|
|
75
|
-
},
|
|
76
|
-
selectionDetailsActions: {
|
|
77
|
-
ignore: false
|
|
78
|
-
},
|
|
79
|
-
_toolbar: {
|
|
80
|
-
ignore: true
|
|
81
|
-
},
|
|
82
|
-
_breadcrumbs: {
|
|
83
|
-
ignore: true
|
|
84
|
-
},
|
|
85
|
-
_innerChart: {
|
|
86
|
-
ignore: true
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
});
|