@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
|
@@ -14,26 +14,28 @@ sap.ui.define([
|
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Base delegate
|
|
18
|
-
* <b>Note:</b> The class is experimental and the API/behavior is not finalized and hence this should not be used for productive usage.
|
|
17
|
+
* Base delegate for {@link sap.ui.mdc.Table}.
|
|
19
18
|
*
|
|
20
19
|
* @author SAP SE
|
|
21
|
-
* @
|
|
20
|
+
* @namespace
|
|
21
|
+
* @alias module:sap/ui/mdc/TableDelegate
|
|
22
|
+
* @extends module:sap/ui/mdc/AggregationBaseDelegate
|
|
22
23
|
* @experimental
|
|
23
24
|
* @since 1.60
|
|
24
|
-
* @
|
|
25
|
+
* @private
|
|
26
|
+
* @ui5-restricted sap.fe
|
|
27
|
+
* MDC_PUBLIC_CANDIDATE
|
|
25
28
|
*/
|
|
26
29
|
var TableDelegate = Object.assign({}, AggregationBaseDelegate);
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
|
-
* Provides hook to update the binding info object that is used to bind the table to the model.
|
|
32
|
+
* Provides a hook to update the binding info object that is used to bind the table to the model.
|
|
30
33
|
*
|
|
31
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
32
|
-
* @param {object} oDelegatePayload The delegate payload
|
|
34
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
33
35
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
34
36
|
* @protected
|
|
35
37
|
*/
|
|
36
|
-
TableDelegate.updateBindingInfo = function(oMDCTable,
|
|
38
|
+
TableDelegate.updateBindingInfo = function(oMDCTable, oBindingInfo) {
|
|
37
39
|
oBindingInfo.parameters = {};
|
|
38
40
|
|
|
39
41
|
if (oMDCTable._oMessageFilter) {
|
|
@@ -47,15 +49,16 @@ sap.ui.define([
|
|
|
47
49
|
/**
|
|
48
50
|
* Updates the row binding of the table.
|
|
49
51
|
*
|
|
50
|
-
* The default implementation rebinds the table but model-specific subclasses must call dedicated binding methods to update the binding instead
|
|
52
|
+
* The default implementation rebinds the table, but model-specific subclasses must call dedicated binding methods to update the binding instead
|
|
53
|
+
* of using {@link #rebind}.
|
|
51
54
|
*
|
|
52
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
55
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the table
|
|
53
56
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
54
57
|
* @param {sap.ui.model.ListBinding} [oBinding] The binding instance of the table
|
|
55
58
|
* @protected
|
|
56
59
|
*/
|
|
57
60
|
TableDelegate.updateBinding = function(oMDCTable, oBindingInfo, oBinding) {
|
|
58
|
-
this.
|
|
61
|
+
this.rebind(oMDCTable, oBindingInfo);
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
TableDelegate.validateState = function(oControl, oState, sKey) {
|
|
@@ -73,20 +76,20 @@ sap.ui.define([
|
|
|
73
76
|
/**
|
|
74
77
|
* Rebinds the table.
|
|
75
78
|
*
|
|
76
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
79
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
77
80
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
78
81
|
* @protected
|
|
79
82
|
*/
|
|
80
|
-
TableDelegate.
|
|
83
|
+
TableDelegate.rebind = function (oMDCTable, oBindingInfo) {
|
|
81
84
|
if (oMDCTable._oTable) {
|
|
82
85
|
oMDCTable._oTable.bindRows(oBindingInfo);
|
|
83
86
|
}
|
|
84
87
|
};
|
|
85
88
|
|
|
86
89
|
/**
|
|
87
|
-
*
|
|
88
|
-
* <b>Note:</b> The functionality provided in this delegate
|
|
89
|
-
*
|
|
90
|
+
* Returns the filter delegate of the table that provides basic filter functionality, such as adding filter fields.
|
|
91
|
+
* <b>Note:</b> The functionality provided in this delegate acts as a subset of a <code>FilterBarDelegate</code> to enable the table for inbuilt
|
|
92
|
+
* filtering.
|
|
90
93
|
*
|
|
91
94
|
* @example <caption>Example usage of <code>getFilterDelegate</code></caption>
|
|
92
95
|
* oFilterDelegate = {
|
|
@@ -105,7 +108,7 @@ sap.ui.define([
|
|
|
105
108
|
*
|
|
106
109
|
* @param {string} sPropertyName The property name
|
|
107
110
|
* @param {sap.ui.mdc.Table} oTable Instance of the table
|
|
108
|
-
* @returns {Promise<sap.ui.mdc.FilterField>} Promise that resolves with an instance of a <code>sap.ui.mdc.FilterField</code>.
|
|
111
|
+
* @returns {Promise<sap.ui.mdc.FilterField>} <code>Promise</code> that resolves with an instance of a <code>sap.ui.mdc.FilterField</code>.
|
|
109
112
|
* @see sap.ui.mdc.AggregationBaseDelegate#addItem
|
|
110
113
|
*/
|
|
111
114
|
addItem: function(sPropertyName, oTable) {
|
|
@@ -114,5 +117,32 @@ sap.ui.define([
|
|
|
114
117
|
};
|
|
115
118
|
};
|
|
116
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Returns the feature set for exporting data in the MDC Table.
|
|
122
|
+
*
|
|
123
|
+
* @returns {Promise} Export capabilities with specific features
|
|
124
|
+
* @protected
|
|
125
|
+
*/
|
|
126
|
+
TableDelegate.fetchExportCapabilities = function() {
|
|
127
|
+
var oExportCapabilities = {
|
|
128
|
+
"XLSX": {} // default
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// This is a temporary approach for testing purposes
|
|
132
|
+
if (new URL(window.location.href).search.indexOf("sap-ui-xx-enablePDFExport=true") > -1) {
|
|
133
|
+
oExportCapabilities["PDF"] = {
|
|
134
|
+
DocumentDescriptionReference: "../../../../default/iwbep/common/0001/$metadata",
|
|
135
|
+
DocumentDescriptionCollection: "MyDocumentDescriptions",
|
|
136
|
+
ArchiveFormat: true,
|
|
137
|
+
Signature: true,
|
|
138
|
+
CoverPage: true,
|
|
139
|
+
FitToPage: false,
|
|
140
|
+
ResultSizeDefault: 5000,
|
|
141
|
+
ResultSizeMaximum: 20000
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
return Promise.resolve(oExportCapabilities);
|
|
145
|
+
};
|
|
146
|
+
|
|
117
147
|
return TableDelegate;
|
|
118
148
|
});
|
|
@@ -69,13 +69,14 @@ sap.ui.define([
|
|
|
69
69
|
* @class Element for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
|
|
70
70
|
* @extends sap.ui.mdc.Element
|
|
71
71
|
* @implements sap.ui.core.PopupInterface
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.99.0
|
|
73
73
|
* @constructor
|
|
74
74
|
* @abstract
|
|
75
75
|
* @private
|
|
76
76
|
* @ui5-restricted sap.fe
|
|
77
77
|
* @MDC_PUBLIC_CANDIDATE
|
|
78
|
-
* @since 1.
|
|
78
|
+
* @since 1.95.0
|
|
79
|
+
* @experimental As of version 1.95
|
|
79
80
|
* @alias sap.ui.mdc.ValueHelp
|
|
80
81
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
81
82
|
*/
|
|
@@ -327,7 +328,16 @@ sap.ui.define([
|
|
|
327
328
|
* belongs to, not by the application.
|
|
328
329
|
*
|
|
329
330
|
* @param {sap.ui.core.Control} oControl Control to which the <code>FieldHelp</code> element is connected to
|
|
330
|
-
* @param {object} oConfig Configuration object that holds
|
|
331
|
+
* @param {object} [oConfig] Configuration object that holds required data of the connected control
|
|
332
|
+
* @param {int} [oConfig.maxConditions=-1] Maximum number of allowed conditions
|
|
333
|
+
* @param {sap.ui.model.Type} [oConfig.dataType] Type of the key (required for condition panel)
|
|
334
|
+
* @param {string[]} [oConfig.operators] Possible operators to be used in the condition
|
|
335
|
+
* @param {sap.ui.mdc.enum.FieldDisplay} [oConfig.display] Defines whether the value and/or description of the field is shown and in what order
|
|
336
|
+
* @param {object} [oConfig.delegate] Field delegate to handle model-specific logic (required for condition panel)
|
|
337
|
+
* @param {object} [oConfig.delegateName] Field delegate name to handle model-specific logic (required for condition panel)
|
|
338
|
+
* @param {object} [oConfig.payload] Payload of the field delegate (required for condition panel)
|
|
339
|
+
* @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, if bound to one (required if used for {@link sap.ui.mdc.FilterField FilterField})
|
|
340
|
+
* @param {string} [oConfig.defaultOperatorName] Name of the default <code>Operator</code> (required if used for {@link sap.ui.mdc.FilterField FilterField})
|
|
331
341
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
332
342
|
* @private
|
|
333
343
|
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
@@ -358,9 +368,10 @@ sap.ui.define([
|
|
|
358
368
|
var oTypeahead = this.getTypeahead();
|
|
359
369
|
var oDialog = this.getDialog();
|
|
360
370
|
|
|
361
|
-
|
|
371
|
+
// check for opening too as focus move sometimes to valuehelp before handleOpened finished
|
|
372
|
+
if (oTypeahead && (oTypeahead.isOpen() || oTypeahead.isOpening())) {
|
|
362
373
|
return oTypeahead.getDomRef();
|
|
363
|
-
} else if (oDialog && oDialog.isOpen()) {
|
|
374
|
+
} else if (oDialog && (oDialog.isOpen() || oDialog.isOpening())) {
|
|
364
375
|
return oDialog.getDomRef();
|
|
365
376
|
}
|
|
366
377
|
|
|
@@ -444,6 +455,11 @@ sap.ui.define([
|
|
|
444
455
|
ValueHelp.prototype.open = function(bTypeahead) {
|
|
445
456
|
var oContainer = bTypeahead ? this.getTypeahead() : _getValueHelpContainer.call(this);
|
|
446
457
|
|
|
458
|
+
var oOtherContainer = bTypeahead ? this.getDialog() : this.getTypeahead();
|
|
459
|
+
if (oOtherContainer && oContainer !== oOtherContainer && (oOtherContainer.isOpen() || oOtherContainer.isOpening())) {
|
|
460
|
+
oOtherContainer.close(); // TODO: Check container to be fully closed via promise
|
|
461
|
+
}
|
|
462
|
+
|
|
447
463
|
if (oContainer && !oContainer.isOpen() && !oContainer.isOpening()) {
|
|
448
464
|
this._removePromise("delegateContent" + "--" + oContainer.getId());
|
|
449
465
|
oContainer.open(this._retrieveDelegateContent(oContainer, true));
|
|
@@ -542,7 +558,16 @@ sap.ui.define([
|
|
|
542
558
|
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
543
559
|
*/
|
|
544
560
|
ValueHelp.prototype.skipOpening = function() { // ? Use close based logic instead?
|
|
545
|
-
this.
|
|
561
|
+
var oTypeahead = this.getTypeahead();
|
|
562
|
+
var oDialog = this.getDialog();
|
|
563
|
+
|
|
564
|
+
if (oTypeahead && oTypeahead.isOpening()) {
|
|
565
|
+
oTypeahead.close();
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
if (oDialog && oDialog.isOpening()) {
|
|
569
|
+
oDialog.close();
|
|
570
|
+
}
|
|
546
571
|
};
|
|
547
572
|
|
|
548
573
|
/**
|
|
@@ -579,7 +604,14 @@ sap.ui.define([
|
|
|
579
604
|
*/
|
|
580
605
|
ValueHelp.prototype.isTypeaheadSupported = function() { // always return promise ?
|
|
581
606
|
|
|
582
|
-
|
|
607
|
+
var oTypeahead = this.getTypeahead();
|
|
608
|
+
if (oTypeahead) {
|
|
609
|
+
return this._retrieveDelegateContent(oTypeahead).then(function () {
|
|
610
|
+
return !!oTypeahead && oTypeahead.isTypeaheadSupported(); // as might depend on binding in content
|
|
611
|
+
});
|
|
612
|
+
} else {
|
|
613
|
+
return Promise.resolve(false);
|
|
614
|
+
}
|
|
583
615
|
|
|
584
616
|
};
|
|
585
617
|
|
|
@@ -739,11 +771,13 @@ sap.ui.define([
|
|
|
739
771
|
|
|
740
772
|
return oTypeahead.getItemForValue(oConfig).then(function(oItem) {
|
|
741
773
|
_cleanupParameterBinding.call(this, aInBindings);
|
|
742
|
-
if (oItem
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
774
|
+
if (oItem) {
|
|
775
|
+
if (oItem.inParameters) {
|
|
776
|
+
oItem.inParameters = _mapParametersToField.call(this, oItem.inParameters, this.getInParameters());
|
|
777
|
+
}
|
|
778
|
+
if (oItem.outParameters) {
|
|
779
|
+
oItem.outParameters = _mapParametersToField.call(this, oItem.outParameters, this.getOutParameters());
|
|
780
|
+
}
|
|
747
781
|
}
|
|
748
782
|
return oItem;
|
|
749
783
|
}.bind(this));
|
|
@@ -892,7 +926,7 @@ sap.ui.define([
|
|
|
892
926
|
|
|
893
927
|
ValueHelp.prototype.getMaxConditions = function() { // ?
|
|
894
928
|
var oConfig = this.getProperty("_config");
|
|
895
|
-
return oConfig && oConfig.maxConditions;
|
|
929
|
+
return (oConfig && oConfig.maxConditions) || -1;
|
|
896
930
|
};
|
|
897
931
|
|
|
898
932
|
ValueHelp.prototype.getDisplay = function() { // ? currently necessary to determine how to render the tokens in valuehelp
|
|
@@ -1098,14 +1132,16 @@ sap.ui.define([
|
|
|
1098
1132
|
if (!vValue && bInitialValueFilterEmpty) {
|
|
1099
1133
|
oCondition = Condition.createCondition("Empty", []);
|
|
1100
1134
|
oCondition.isEmpty = false; // no explicit check needed
|
|
1101
|
-
} else {
|
|
1135
|
+
} else if (vValue !== null) {
|
|
1102
1136
|
// TODO: way to provide description on InParameter
|
|
1103
1137
|
// validated to let FilterField determine description if visible on FilterBar.
|
|
1104
1138
|
// Also to show it as selected on table in FieldHelp of FilterField.
|
|
1105
1139
|
oCondition = Condition.createItemCondition(vValue);
|
|
1106
1140
|
oCondition.validated = ConditionValidated.Validated;
|
|
1107
1141
|
}
|
|
1108
|
-
|
|
1142
|
+
if (oCondition) {
|
|
1143
|
+
oInConditions[sFilterPath].push(oCondition);
|
|
1144
|
+
}
|
|
1109
1145
|
}
|
|
1110
1146
|
|
|
1111
1147
|
this.setProperty("_inConditions", oInConditions, true);
|
|
@@ -77,6 +77,26 @@ sap.ui.define([
|
|
|
77
77
|
return Promise.resolve();
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Changes the search string.
|
|
82
|
+
*
|
|
83
|
+
* If <code>$search</code> is used, depending on which back-end service is used, the search string might need to be escaped.
|
|
84
|
+
*
|
|
85
|
+
* @param {object} oPayload Payload for delegate
|
|
86
|
+
* @param {boolean} bTypeahead <code>true</code> if the search is called for a type-ahead
|
|
87
|
+
* @param {string} sSearch Search string
|
|
88
|
+
* @returns {string} Search string to use
|
|
89
|
+
* @since 1.97.0
|
|
90
|
+
* @private
|
|
91
|
+
* @ui5-restricted sap.fe
|
|
92
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
93
|
+
*/
|
|
94
|
+
ValueHelpDelegate.adjustSearch = function(oPayload, bTypeahead, sSearch) {
|
|
95
|
+
|
|
96
|
+
return sSearch;
|
|
97
|
+
|
|
98
|
+
};
|
|
99
|
+
|
|
80
100
|
/**
|
|
81
101
|
* Executes a filter in a <code>ListBinding</code>.
|
|
82
102
|
*
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @class The action for an {@link sap.ui.mdc.ActionToolbar ActionToolbar}) control
|
|
22
22
|
* @extends sap.ui.core.Control
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.99.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|
|
27
27
|
* @since 1.58
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
|
-
* @returns {
|
|
96
|
+
* @returns {string} a text defining the label of this <code>ActionToolbarAction</code> defined by the inner action.
|
|
97
97
|
*/
|
|
98
98
|
ActionToolbarAction.prototype.getLabel = function() {
|
|
99
99
|
var oAction = this.getAction();
|
package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js}
RENAMED
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
"sap/m/SelectionDetailsItem",
|
|
12
12
|
"sap/m/SelectionDetailsItemLine",
|
|
13
13
|
"sap/m/SelectionDetailsRenderer",
|
|
14
|
-
"./
|
|
14
|
+
"./SelectionDetailsActions"
|
|
15
15
|
],
|
|
16
16
|
function (
|
|
17
17
|
Core,
|
|
@@ -26,24 +26,24 @@ sap.ui.define([
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
/**
|
|
29
|
-
* Constructor for a new
|
|
29
|
+
* Constructor for a new ChartSelectionDetails.
|
|
30
30
|
*
|
|
31
31
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
32
32
|
* @param {object} [mSettings] initial settings for the new control
|
|
33
|
-
* @class The
|
|
33
|
+
* @class The ChartSelectionDetails control creates a sap.m.SelectionDetails popover based on metadata and the configuration specified.
|
|
34
34
|
* @extends sap.m.SelectionDetails
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.99.0
|
|
37
37
|
* @constructor
|
|
38
38
|
* @experimental As of version ...
|
|
39
39
|
* @private
|
|
40
40
|
* @ui5-restricted sap.fe
|
|
41
41
|
* @MDC_PUBLIC_CANDIDATE
|
|
42
42
|
* @since 1.88
|
|
43
|
-
* @alias sap.ui.mdc.
|
|
43
|
+
* @alias sap.ui.mdc.chart.ChartSelectionDetails
|
|
44
44
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
45
45
|
*/
|
|
46
|
-
var ChartSelectionDetails = SelectionDetails.extend("sap.ui.mdc.
|
|
46
|
+
var ChartSelectionDetails = SelectionDetails.extend("sap.ui.mdc.chart.ChartSelectionDetails", /** @lends sap.ui.mdc.chart.ChartSelectionDetails.prototype */ {
|
|
47
47
|
metadata: {
|
|
48
48
|
library: "sap.ui.mdc",
|
|
49
49
|
interfaces: [
|
|
@@ -110,7 +110,7 @@ sap.ui.define([
|
|
|
110
110
|
ChartSelectionDetails.prototype._hasNavigationTargets = function(aData) {
|
|
111
111
|
return false;
|
|
112
112
|
};
|
|
113
|
-
//TODO: Consider implementation and handling within
|
|
113
|
+
//TODO: Consider implementation and handling within ChartToolbar like the update of actions as well
|
|
114
114
|
ChartSelectionDetails.prototype._attachEvents = function() {
|
|
115
115
|
// Attach to navigation event of selectionDetails
|
|
116
116
|
// for semantic object navigation
|
|
@@ -145,4 +145,4 @@ sap.ui.define([
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
return ChartSelectionDetails;
|
|
148
|
-
}
|
|
148
|
+
});
|
|
@@ -13,9 +13,10 @@ sap.ui.define([
|
|
|
13
13
|
"sap/m/OverflowToolbarToggleButton",
|
|
14
14
|
"sap/m/Title",
|
|
15
15
|
"sap/ui/mdc/library",
|
|
16
|
-
"sap/ui/mdc/
|
|
16
|
+
"sap/ui/mdc/chart/ChartTypeButton",
|
|
17
17
|
"sap/ui/mdc/chart/ChartSettings",
|
|
18
|
-
"./
|
|
18
|
+
"./ChartSelectionDetails",
|
|
19
|
+
"sap/m/ToolbarSeparator"
|
|
19
20
|
],
|
|
20
21
|
function (
|
|
21
22
|
Core,
|
|
@@ -28,28 +29,29 @@ sap.ui.define([
|
|
|
28
29
|
MDCLib,
|
|
29
30
|
ChartTypeButton,
|
|
30
31
|
ChartSettings,
|
|
31
|
-
|
|
32
|
+
ChartSelectionDetails,
|
|
33
|
+
ToolbarSeparator
|
|
32
34
|
) {
|
|
33
35
|
"use strict";
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
38
|
/**
|
|
37
|
-
* Constructor for a new
|
|
39
|
+
* Constructor for a new ChartToolbar.
|
|
38
40
|
*
|
|
39
41
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
40
42
|
* @param {object} [mSettings] initial settings for the new control
|
|
41
|
-
* @class The
|
|
43
|
+
* @class The ChartToolbar control creates a sap.m.OverflowToolbar based on metadata and the configuration specified.
|
|
42
44
|
* @extends sap.m.OverflowToolbar
|
|
43
45
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
46
|
+
* @version 1.99.0
|
|
45
47
|
* @constructor
|
|
46
48
|
* @experimental As of version ...
|
|
47
49
|
* @private
|
|
48
50
|
* @since 1.88
|
|
49
|
-
* @alias sap.ui.mdc.
|
|
51
|
+
* @alias sap.ui.mdc.chart.ChartToolbar
|
|
50
52
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
51
53
|
*/
|
|
52
|
-
var ChartToolbar = ActionToolbar.extend("sap.ui.mdc.
|
|
54
|
+
var ChartToolbar = ActionToolbar.extend("sap.ui.mdc.chart.ChartToolbar", /** @lends sap.ui.mdc.chart.ChartToolbar.prototype */ {
|
|
53
55
|
metadata: {
|
|
54
56
|
library: "sap.ui.mdc",
|
|
55
57
|
interfaces: [],
|
|
@@ -76,7 +78,8 @@ sap.ui.define([
|
|
|
76
78
|
};
|
|
77
79
|
|
|
78
80
|
ChartToolbar.prototype.createToolbarContent = function (oMDCChart) {
|
|
79
|
-
|
|
81
|
+
//Keep track of chart buttons to enable them later on
|
|
82
|
+
this._chartInternalButtonsToEnable = [];
|
|
80
83
|
|
|
81
84
|
/**add beginning**/
|
|
82
85
|
var title = new Title(oMDCChart.getId() + "-title", {
|
|
@@ -84,8 +87,13 @@ sap.ui.define([
|
|
|
84
87
|
});
|
|
85
88
|
this.addBegin(title);
|
|
86
89
|
|
|
90
|
+
/** variant management */
|
|
91
|
+
if (oMDCChart.getVariant()){
|
|
92
|
+
this.addVariantManagement(oMDCChart.getVariant());
|
|
93
|
+
}
|
|
94
|
+
|
|
87
95
|
/**add end **/
|
|
88
|
-
this._oChartSelectionDetails = new
|
|
96
|
+
this._oChartSelectionDetails = new ChartSelectionDetails(oMDCChart.getId() + "-selectionDetails", {});
|
|
89
97
|
this._oChartSelectionDetails.attachBeforeOpen(function (oEvent) {
|
|
90
98
|
this._updateSelectionDetailsActions(oMDCChart);
|
|
91
99
|
}.bind(this));
|
|
@@ -100,11 +108,13 @@ sap.ui.define([
|
|
|
100
108
|
icon: "sap-icon://drill-down",
|
|
101
109
|
tooltip: MDCRb.getText("chart.CHART_DRILLDOWN_TITLE"),
|
|
102
110
|
text: MDCRb.getText("chart.CHART_DRILLDOWN_TITLE"),
|
|
111
|
+
enabled: false,
|
|
103
112
|
press: function (oEvent) {
|
|
104
113
|
oMDCChart._showDrillDown(this._oDrillDownBtn);
|
|
105
114
|
}.bind(this)
|
|
106
115
|
});
|
|
107
116
|
this.addEnd(this._oDrillDownBtn);
|
|
117
|
+
this._chartInternalButtonsToEnable.push(this._oDrillDownBtn);
|
|
108
118
|
}
|
|
109
119
|
|
|
110
120
|
if (!oMDCChart.getIgnoreToolbarActions().length || oMDCChart.getIgnoreToolbarActions().indexOf(MDCLib.ChartToolbarActionType.Legend) < 0) {
|
|
@@ -113,10 +123,11 @@ sap.ui.define([
|
|
|
113
123
|
text: MDCRb.getText("chart.LEGENDBTN_TEXT"),
|
|
114
124
|
tooltip: MDCRb.getText("chart.LEGENDBTN_TOOLTIP"),
|
|
115
125
|
icon: "sap-icon://legend",
|
|
116
|
-
pressed: "{$mdcChart>/legendVisible}"
|
|
117
|
-
|
|
126
|
+
pressed: "{$mdcChart>/legendVisible}",
|
|
127
|
+
enabled: false
|
|
118
128
|
});
|
|
119
129
|
this.addEnd(this._oLegendBtn);
|
|
130
|
+
this._chartInternalButtonsToEnable.push(this._oLegendBtn);
|
|
120
131
|
}
|
|
121
132
|
|
|
122
133
|
if (!oMDCChart.getIgnoreToolbarActions().length || oMDCChart.getIgnoreToolbarActions().indexOf(MDCLib.ChartToolbarActionType.ZoomInOut)) {
|
|
@@ -124,6 +135,7 @@ sap.ui.define([
|
|
|
124
135
|
icon: "sap-icon://zoom-in",
|
|
125
136
|
tooltip: MDCRb.getText("chart.TOOLBAR_ZOOM_IN"),
|
|
126
137
|
text: MDCRb.getText("chart.TOOLBAR_ZOOM_IN"),
|
|
138
|
+
enabled: false,
|
|
127
139
|
press: function onZoomOutButtonPressed(oControlEvent) {
|
|
128
140
|
oMDCChart.zoomIn();
|
|
129
141
|
this.toggleZoomButtons(oMDCChart);
|
|
@@ -134,6 +146,7 @@ sap.ui.define([
|
|
|
134
146
|
icon: "sap-icon://zoom-out",
|
|
135
147
|
tooltip: MDCRb.getText("chart.TOOLBAR_ZOOM_OUT"),
|
|
136
148
|
text: MDCRb.getText("chart.TOOLBAR_ZOOM_OUT"),
|
|
149
|
+
enabled: false,
|
|
137
150
|
press: function onZoomOutButtonPressed(oControlEvent) {
|
|
138
151
|
oMDCChart.zoomOut();
|
|
139
152
|
this.toggleZoomButtons(oMDCChart);
|
|
@@ -141,6 +154,7 @@ sap.ui.define([
|
|
|
141
154
|
});
|
|
142
155
|
this.addEnd(this.oZoomInButton);
|
|
143
156
|
this.addEnd(this.oZoomOutButton);
|
|
157
|
+
//Enabled via toggleZoomButtons()
|
|
144
158
|
}
|
|
145
159
|
|
|
146
160
|
if (aP13nMode.indexOf("Sort") > -1 || aP13nMode.indexOf("Item") > -1) {
|
|
@@ -148,16 +162,33 @@ sap.ui.define([
|
|
|
148
162
|
icon: "sap-icon://action-settings",//TODO the right icon for P13n chart dialog
|
|
149
163
|
tooltip: MDCRb.getText('chart.PERSONALIZATION_DIALOG_TITLE'),
|
|
150
164
|
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_TITLE'),
|
|
165
|
+
enabled: false,
|
|
151
166
|
press: function (oEvent) {
|
|
152
167
|
oMDCChart.getEngine().uimanager.show(oMDCChart, oMDCChart.getP13nMode());
|
|
153
168
|
}
|
|
154
169
|
});
|
|
155
170
|
this.addEnd(this._oSettingsBtn);
|
|
171
|
+
this._chartInternalButtonsToEnable.push(this._oSettingsBtn);
|
|
156
172
|
}
|
|
157
173
|
|
|
158
174
|
if (oMDCChart._getTypeBtnActive()) {
|
|
159
175
|
this._oChartTypeBtn = new ChartTypeButton(oMDCChart);
|
|
176
|
+
this._oChartTypeBtn.setEnabled(false);
|
|
160
177
|
this.addEnd(this._oChartTypeBtn);
|
|
178
|
+
this._chartInternalButtonsToEnable.push(this._oChartTypeBtn);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
ChartToolbar.prototype.addVariantManagement = function(oVariantManagement) {
|
|
184
|
+
|
|
185
|
+
if (oVariantManagement){
|
|
186
|
+
if (this._oVariantManagement) {
|
|
187
|
+
this.removeBetween(this._oVariantManagement);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
this._oVariantManagement = oVariantManagement;
|
|
191
|
+
this.addBetween(this._oVariantManagement);
|
|
161
192
|
}
|
|
162
193
|
|
|
163
194
|
};
|
|
@@ -180,6 +211,11 @@ sap.ui.define([
|
|
|
180
211
|
|
|
181
212
|
if (!this._toolbarInitialUpdated) {
|
|
182
213
|
this.setEnabled(true);
|
|
214
|
+
|
|
215
|
+
this._chartInternalButtonsToEnable.forEach(function(oBtn){
|
|
216
|
+
oBtn.setEnabled(true);
|
|
217
|
+
});
|
|
218
|
+
|
|
183
219
|
this._toolbarInitialUpdated = true;
|
|
184
220
|
}
|
|
185
221
|
|
|
@@ -246,4 +282,4 @@ sap.ui.define([
|
|
|
246
282
|
|
|
247
283
|
};
|
|
248
284
|
return ChartToolbar;
|
|
249
|
-
}
|
|
285
|
+
});
|