@openui5/sap.ui.mdc 1.97.1 → 1.100.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 +25 -30
- package/THIRDPARTY.txt +15 -22
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +6 -3
- 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 +1128 -1806
- package/src/sap/ui/mdc/ChartDelegate.js +454 -250
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- 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 +19 -4
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
- package/src/sap/ui/mdc/FilterField.js +50 -9
- package/src/sap/ui/mdc/Link.js +25 -6
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +30 -6
- package/src/sap/ui/mdc/Table.js +151 -102
- package/src/sap/ui/mdc/TableDelegate.js +68 -13
- package/src/sap/ui/mdc/ValueHelp.js +26 -11
- package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +60 -17
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +10 -10
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +43 -254
- 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 +4 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +388 -67
- package/src/sap/ui/mdc/condition/Operator.js +4 -2
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -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 +83 -5
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +35 -8
- 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 +17 -6
- package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +88 -29
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +77 -20
- package/src/sap/ui/mdc/field/FieldBase.js +93 -16
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
- 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 +24 -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 +5 -2
- 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 +5 -4
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
- 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 +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +10 -6
- package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
- package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +285 -208
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +132 -56
- 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/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +43 -19
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +47 -10
- 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/ItemBaseFlex.js +0 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +27 -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 +54 -44
- 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 +57 -2
- package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
- package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
- package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
- package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
- package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
- package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
- package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
- package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +30 -15
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -142
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -17
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +348 -0
- package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +106 -0
- 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 +117 -123
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +3 -5
- 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} +459 -351
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +51 -30
- package/src/sap/ui/mdc/p13n/FlexUtil.js +6 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +24 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +20 -19
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +19 -12
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- 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 +1094 -49
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +108 -0
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -7
- 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 +22 -11
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +174 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +12 -19
- package/src/sap/ui/mdc/table/Column.js +12 -12
- package/src/sap/ui/mdc/table/CreationRow.js +11 -11
- package/src/sap/ui/mdc/table/GridTableType.js +80 -33
- package/src/sap/ui/mdc/table/PropertyHelper.js +63 -19
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +94 -23
- package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
- package/src/sap/ui/mdc/table/RowSettings.js +45 -4
- package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
- package/src/sap/ui/mdc/themes/base/Chart.less +2 -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 +16 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +33 -8
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- 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 +243 -87
- package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
- package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +6 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +5 -4
- 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 +4 -2
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +23 -14
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +46 -17
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -27
- 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 +291 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -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 +264 -139
- 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/filterbar/vh/GenericFilterBarDelegate.js +0 -150
- 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/odata/v4/ChartPropertyHelperNew.js +0 -39
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
- package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -404
- 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/Container.js +0 -240
- package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
|
@@ -14,12 +14,14 @@ sap.ui.define([
|
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Base delegate
|
|
17
|
+
* Base delegate for {@link sap.ui.mdc.Table}.
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
+
* @namespace
|
|
21
|
+
* @alias module:sap/ui/mdc/TableDelegate
|
|
22
|
+
* @extends module:sap/ui/mdc/AggregationBaseDelegate
|
|
20
23
|
* @experimental
|
|
21
24
|
* @since 1.60
|
|
22
|
-
* @alias sap.ui.mdc.TableDelegate
|
|
23
25
|
* @private
|
|
24
26
|
* @ui5-restricted sap.fe
|
|
25
27
|
* MDC_PUBLIC_CANDIDATE
|
|
@@ -30,11 +32,10 @@ sap.ui.define([
|
|
|
30
32
|
* Provides a hook to update the binding info object that is used to bind the table to the model.
|
|
31
33
|
*
|
|
32
34
|
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
33
|
-
* @param {object} oDelegatePayload The delegate payload
|
|
34
35
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
35
36
|
* @protected
|
|
36
37
|
*/
|
|
37
|
-
TableDelegate.updateBindingInfo = function(oMDCTable,
|
|
38
|
+
TableDelegate.updateBindingInfo = function(oMDCTable, oBindingInfo) {
|
|
38
39
|
oBindingInfo.parameters = {};
|
|
39
40
|
|
|
40
41
|
if (oMDCTable._oMessageFilter) {
|
|
@@ -49,15 +50,15 @@ sap.ui.define([
|
|
|
49
50
|
* Updates the row binding of the table.
|
|
50
51
|
*
|
|
51
52
|
* The default implementation rebinds the table, but model-specific subclasses must call dedicated binding methods to update the binding instead
|
|
52
|
-
* of using {@link #
|
|
53
|
+
* of using {@link #rebind}.
|
|
53
54
|
*
|
|
54
|
-
* @param {sap.ui.mdc.Table} oMDCTable Instance of the
|
|
55
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the table
|
|
55
56
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
56
57
|
* @param {sap.ui.model.ListBinding} [oBinding] The binding instance of the table
|
|
57
58
|
* @protected
|
|
58
59
|
*/
|
|
59
60
|
TableDelegate.updateBinding = function(oMDCTable, oBindingInfo, oBinding) {
|
|
60
|
-
this.
|
|
61
|
+
this.rebind(oMDCTable, oBindingInfo);
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
TableDelegate.validateState = function(oControl, oState, sKey) {
|
|
@@ -79,16 +80,16 @@ sap.ui.define([
|
|
|
79
80
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
80
81
|
* @protected
|
|
81
82
|
*/
|
|
82
|
-
TableDelegate.
|
|
83
|
+
TableDelegate.rebind = function (oMDCTable, oBindingInfo) {
|
|
83
84
|
if (oMDCTable._oTable) {
|
|
84
85
|
oMDCTable._oTable.bindRows(oBindingInfo);
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
/**
|
|
89
|
-
* Returns the filter delegate of the table that provides basic filter functionality such as adding filter fields.
|
|
90
|
-
* <b>Note:</b> The functionality provided in this delegate
|
|
91
|
-
*
|
|
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.
|
|
92
93
|
*
|
|
93
94
|
* @example <caption>Example usage of <code>getFilterDelegate</code></caption>
|
|
94
95
|
* oFilterDelegate = {
|
|
@@ -107,14 +108,68 @@ sap.ui.define([
|
|
|
107
108
|
*
|
|
108
109
|
* @param {string} sPropertyName The property name
|
|
109
110
|
* @param {sap.ui.mdc.Table} oTable Instance of the table
|
|
110
|
-
* @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>.
|
|
111
112
|
* @see sap.ui.mdc.AggregationBaseDelegate#addItem
|
|
112
113
|
*/
|
|
113
114
|
addItem: function(sPropertyName, oTable) {
|
|
114
115
|
return Promise.resolve(null);
|
|
115
|
-
}
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* This methods is called during the appliance of the add condition change.
|
|
120
|
+
* This intention is to update the propertyInfo property.
|
|
121
|
+
*
|
|
122
|
+
* @param {string} sPropertyName The name of a property.
|
|
123
|
+
* @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
|
|
124
|
+
* @param {Object} mPropertyBag Instance of property bag from Flex change API
|
|
125
|
+
* @returns {Promise} Promise that resolves once the properyInfo property was updated
|
|
126
|
+
*/
|
|
127
|
+
addCondition: function(sPropertyName, oControl, mPropertyBag) {
|
|
128
|
+
return Promise.resolve();
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* This methods is called during the appliance of the remove condition change.
|
|
133
|
+
* This intention is to update the propertyInfo property.
|
|
134
|
+
*
|
|
135
|
+
* @param {string} sPropertyName The name of a property.
|
|
136
|
+
* @param {sap.ui.mdc.Control} oControl - the instance of the mdc control
|
|
137
|
+
* @param {Object} mPropertyBag Instance of property bag from Flex change API
|
|
138
|
+
* @returns {Promise} Promise that resolves once the properyInfo property was updated
|
|
139
|
+
*/
|
|
140
|
+
removeCondition: function(sPropertyName, oControl, mPropertyBag) {
|
|
141
|
+
return Promise.resolve();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Returns the feature set for exporting data in the MDC Table.
|
|
148
|
+
*
|
|
149
|
+
* @returns {Promise} Export capabilities with specific features
|
|
150
|
+
* @protected
|
|
151
|
+
*/
|
|
152
|
+
TableDelegate.fetchExportCapabilities = function() {
|
|
153
|
+
var oExportCapabilities = {
|
|
154
|
+
"XLSX": {} // default
|
|
116
155
|
};
|
|
156
|
+
|
|
157
|
+
// This is a temporary approach for testing purposes
|
|
158
|
+
if (new URL(window.location.href).search.indexOf("sap-ui-xx-enablePDFExport=true") > -1) {
|
|
159
|
+
oExportCapabilities["PDF"] = {
|
|
160
|
+
DocumentDescriptionReference: "../../../../default/iwbep/common/0001/$metadata",
|
|
161
|
+
DocumentDescriptionCollection: "MyDocumentDescriptions",
|
|
162
|
+
ArchiveFormat: true,
|
|
163
|
+
Signature: true,
|
|
164
|
+
CoverPage: true,
|
|
165
|
+
FitToPage: false,
|
|
166
|
+
ResultSizeDefault: 5000,
|
|
167
|
+
ResultSizeMaximum: 20000
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
return Promise.resolve(oExportCapabilities);
|
|
117
171
|
};
|
|
118
172
|
|
|
173
|
+
|
|
119
174
|
return TableDelegate;
|
|
120
175
|
});
|
|
@@ -41,7 +41,8 @@ sap.ui.define([
|
|
|
41
41
|
'sap/ui/model/base/ManagedObjectModel',
|
|
42
42
|
'sap/ui/base/ManagedObjectObserver',
|
|
43
43
|
'sap/base/util/merge',
|
|
44
|
-
'sap/base/util/deepEqual'
|
|
44
|
+
'sap/base/util/deepEqual',
|
|
45
|
+
'sap/ui/mdc/enum/PersistenceMode'
|
|
45
46
|
], function(
|
|
46
47
|
Element,
|
|
47
48
|
PromiseMixin,
|
|
@@ -57,7 +58,8 @@ sap.ui.define([
|
|
|
57
58
|
ManagedObjectModel,
|
|
58
59
|
ManagedObjectObserver,
|
|
59
60
|
merge,
|
|
60
|
-
deepEqual
|
|
61
|
+
deepEqual,
|
|
62
|
+
PersistenceMode
|
|
61
63
|
) {
|
|
62
64
|
"use strict";
|
|
63
65
|
|
|
@@ -69,13 +71,14 @@ sap.ui.define([
|
|
|
69
71
|
* @class Element for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
|
|
70
72
|
* @extends sap.ui.mdc.Element
|
|
71
73
|
* @implements sap.ui.core.PopupInterface
|
|
72
|
-
* @version 1.
|
|
74
|
+
* @version 1.100.0
|
|
73
75
|
* @constructor
|
|
74
76
|
* @abstract
|
|
75
77
|
* @private
|
|
76
78
|
* @ui5-restricted sap.fe
|
|
77
79
|
* @MDC_PUBLIC_CANDIDATE
|
|
78
|
-
* @since 1.
|
|
80
|
+
* @since 1.95.0
|
|
81
|
+
* @experimental As of version 1.95
|
|
79
82
|
* @alias sap.ui.mdc.ValueHelp
|
|
80
83
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
81
84
|
*/
|
|
@@ -285,6 +288,7 @@ sap.ui.define([
|
|
|
285
288
|
ValueHelp.prototype.init = function() {
|
|
286
289
|
|
|
287
290
|
Element.prototype.init.apply(this, arguments);
|
|
291
|
+
this.getEngine().defaultProviderRegistry.attach(this, PersistenceMode.Transient);
|
|
288
292
|
|
|
289
293
|
this._oObserver = new ManagedObjectObserver(_observeChanges.bind(this));
|
|
290
294
|
|
|
@@ -301,6 +305,8 @@ sap.ui.define([
|
|
|
301
305
|
|
|
302
306
|
ValueHelp.prototype.exit = function() {
|
|
303
307
|
|
|
308
|
+
this.getEngine().defaultProviderRegistry.detach(this);
|
|
309
|
+
|
|
304
310
|
if (this._oManagedObjectModel) {
|
|
305
311
|
this._oManagedObjectModel.destroy();
|
|
306
312
|
delete this._oManagedObjectModel;
|
|
@@ -454,6 +460,11 @@ sap.ui.define([
|
|
|
454
460
|
ValueHelp.prototype.open = function(bTypeahead) {
|
|
455
461
|
var oContainer = bTypeahead ? this.getTypeahead() : _getValueHelpContainer.call(this);
|
|
456
462
|
|
|
463
|
+
var oOtherContainer = bTypeahead ? this.getDialog() : this.getTypeahead();
|
|
464
|
+
if (oOtherContainer && oContainer !== oOtherContainer && (oOtherContainer.isOpen() || oOtherContainer.isOpening())) {
|
|
465
|
+
oOtherContainer.close(); // TODO: Check container to be fully closed via promise
|
|
466
|
+
}
|
|
467
|
+
|
|
457
468
|
if (oContainer && !oContainer.isOpen() && !oContainer.isOpening()) {
|
|
458
469
|
this._removePromise("delegateContent" + "--" + oContainer.getId());
|
|
459
470
|
oContainer.open(this._retrieveDelegateContent(oContainer, true));
|
|
@@ -765,11 +776,13 @@ sap.ui.define([
|
|
|
765
776
|
|
|
766
777
|
return oTypeahead.getItemForValue(oConfig).then(function(oItem) {
|
|
767
778
|
_cleanupParameterBinding.call(this, aInBindings);
|
|
768
|
-
if (oItem
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
779
|
+
if (oItem) {
|
|
780
|
+
if (oItem.inParameters) {
|
|
781
|
+
oItem.inParameters = _mapParametersToField.call(this, oItem.inParameters, this.getInParameters());
|
|
782
|
+
}
|
|
783
|
+
if (oItem.outParameters) {
|
|
784
|
+
oItem.outParameters = _mapParametersToField.call(this, oItem.outParameters, this.getOutParameters());
|
|
785
|
+
}
|
|
773
786
|
}
|
|
774
787
|
return oItem;
|
|
775
788
|
}.bind(this));
|
|
@@ -1124,14 +1137,16 @@ sap.ui.define([
|
|
|
1124
1137
|
if (!vValue && bInitialValueFilterEmpty) {
|
|
1125
1138
|
oCondition = Condition.createCondition("Empty", []);
|
|
1126
1139
|
oCondition.isEmpty = false; // no explicit check needed
|
|
1127
|
-
} else {
|
|
1140
|
+
} else if (vValue !== null) {
|
|
1128
1141
|
// TODO: way to provide description on InParameter
|
|
1129
1142
|
// validated to let FilterField determine description if visible on FilterBar.
|
|
1130
1143
|
// Also to show it as selected on table in FieldHelp of FilterField.
|
|
1131
1144
|
oCondition = Condition.createItemCondition(vValue);
|
|
1132
1145
|
oCondition.validated = ConditionValidated.Validated;
|
|
1133
1146
|
}
|
|
1134
|
-
|
|
1147
|
+
if (oCondition) {
|
|
1148
|
+
oInConditions[sFilterPath].push(oCondition);
|
|
1149
|
+
}
|
|
1135
1150
|
}
|
|
1136
1151
|
|
|
1137
1152
|
this.setProperty("_inConditions", oInConditions, true);
|
|
@@ -54,12 +54,13 @@ sap.ui.define([
|
|
|
54
54
|
* Checks if a <code>ListBinding</code> supports $Search.
|
|
55
55
|
*
|
|
56
56
|
* @param {object} oPayload Payload for delegate
|
|
57
|
+
* @param {sap.ui.mdc.valuehelp.base.Content} oContent Content element
|
|
57
58
|
* @param {sap.ui.model.ListBinding} oListBinding ListBinding
|
|
58
59
|
* @returns {boolean} true if $search is supported
|
|
59
60
|
* @private
|
|
60
61
|
* @ui5-restricted sap.ui.mdc.ValueHelp
|
|
61
62
|
*/
|
|
62
|
-
ValueHelpDelegate.isSearchSupported = function(oPayload, oListBinding) {
|
|
63
|
+
ValueHelpDelegate.isSearchSupported = function(oPayload, oContent, oListBinding) {
|
|
63
64
|
return false;
|
|
64
65
|
};
|
|
65
66
|
|
|
@@ -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.100.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();
|
|
@@ -19,7 +19,7 @@ sap.ui.define([], function() {
|
|
|
19
19
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
20
20
|
*
|
|
21
21
|
* @param {sap.ui.core.RenderManager} rm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
22
|
-
* @param {sap.ui.mdc.
|
|
22
|
+
* @param {sap.ui.mdc.actiontoolbar.ActionToolbarAction} oActionToolbarAction an object representation of the control that should be rendered
|
|
23
23
|
*/
|
|
24
24
|
ActionToolbarActionRenderer.render = function(rm, oActionToolbarAction) {
|
|
25
25
|
var mAriaProps = { role: "form" };
|
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.100.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,28 @@ 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
|
-
|
|
37
|
-
* Constructor for a new ChartToolbarNew.
|
|
38
|
+
* Constructor for a new ChartToolbar.
|
|
38
39
|
*
|
|
39
40
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
40
41
|
* @param {object} [mSettings] initial settings for the new control
|
|
41
|
-
* @class The
|
|
42
|
-
* @extends sap.
|
|
42
|
+
* @class The ChartToolbar control is a sap.m.OverflowToolbar based on metadata and the configuration specified.
|
|
43
|
+
* @extends sap.ui.mdc.ActionToolbar
|
|
43
44
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
45
|
+
* @version 1.100.0
|
|
45
46
|
* @constructor
|
|
46
|
-
* @experimental As of version
|
|
47
|
+
* @experimental As of version 1.88
|
|
47
48
|
* @private
|
|
48
49
|
* @since 1.88
|
|
49
|
-
* @alias sap.ui.mdc.
|
|
50
|
+
* @alias sap.ui.mdc.chart.ChartToolbar
|
|
50
51
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
51
52
|
*/
|
|
52
|
-
var ChartToolbar = ActionToolbar.extend("sap.ui.mdc.
|
|
53
|
+
var ChartToolbar = ActionToolbar.extend("sap.ui.mdc.chart.ChartToolbar", /** @lends sap.ui.mdc.chart.ChartToolbar.prototype */ {
|
|
53
54
|
metadata: {
|
|
54
55
|
library: "sap.ui.mdc",
|
|
55
56
|
interfaces: [],
|
|
@@ -76,7 +77,8 @@ sap.ui.define([
|
|
|
76
77
|
};
|
|
77
78
|
|
|
78
79
|
ChartToolbar.prototype.createToolbarContent = function (oMDCChart) {
|
|
79
|
-
|
|
80
|
+
//Keep track of chart buttons to enable them later on
|
|
81
|
+
this._chartInternalButtonsToEnable = [];
|
|
80
82
|
|
|
81
83
|
/**add beginning**/
|
|
82
84
|
var title = new Title(oMDCChart.getId() + "-title", {
|
|
@@ -84,8 +86,13 @@ sap.ui.define([
|
|
|
84
86
|
});
|
|
85
87
|
this.addBegin(title);
|
|
86
88
|
|
|
89
|
+
/** variant management */
|
|
90
|
+
if (oMDCChart.getVariant()){
|
|
91
|
+
this.addVariantManagement(oMDCChart.getVariant());
|
|
92
|
+
}
|
|
93
|
+
|
|
87
94
|
/**add end **/
|
|
88
|
-
this._oChartSelectionDetails = new
|
|
95
|
+
this._oChartSelectionDetails = new ChartSelectionDetails(oMDCChart.getId() + "-selectionDetails", {});
|
|
89
96
|
this._oChartSelectionDetails.attachBeforeOpen(function (oEvent) {
|
|
90
97
|
this._updateSelectionDetailsActions(oMDCChart);
|
|
91
98
|
}.bind(this));
|
|
@@ -100,11 +107,13 @@ sap.ui.define([
|
|
|
100
107
|
icon: "sap-icon://drill-down",
|
|
101
108
|
tooltip: MDCRb.getText("chart.CHART_DRILLDOWN_TITLE"),
|
|
102
109
|
text: MDCRb.getText("chart.CHART_DRILLDOWN_TITLE"),
|
|
110
|
+
enabled: false,
|
|
103
111
|
press: function (oEvent) {
|
|
104
112
|
oMDCChart._showDrillDown(this._oDrillDownBtn);
|
|
105
113
|
}.bind(this)
|
|
106
114
|
});
|
|
107
115
|
this.addEnd(this._oDrillDownBtn);
|
|
116
|
+
this._chartInternalButtonsToEnable.push(this._oDrillDownBtn);
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
if (!oMDCChart.getIgnoreToolbarActions().length || oMDCChart.getIgnoreToolbarActions().indexOf(MDCLib.ChartToolbarActionType.Legend) < 0) {
|
|
@@ -113,10 +122,11 @@ sap.ui.define([
|
|
|
113
122
|
text: MDCRb.getText("chart.LEGENDBTN_TEXT"),
|
|
114
123
|
tooltip: MDCRb.getText("chart.LEGENDBTN_TOOLTIP"),
|
|
115
124
|
icon: "sap-icon://legend",
|
|
116
|
-
pressed: "{$mdcChart>/legendVisible}"
|
|
117
|
-
|
|
125
|
+
pressed: "{$mdcChart>/legendVisible}",
|
|
126
|
+
enabled: false
|
|
118
127
|
});
|
|
119
128
|
this.addEnd(this._oLegendBtn);
|
|
129
|
+
this._chartInternalButtonsToEnable.push(this._oLegendBtn);
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
if (!oMDCChart.getIgnoreToolbarActions().length || oMDCChart.getIgnoreToolbarActions().indexOf(MDCLib.ChartToolbarActionType.ZoomInOut)) {
|
|
@@ -124,6 +134,7 @@ sap.ui.define([
|
|
|
124
134
|
icon: "sap-icon://zoom-in",
|
|
125
135
|
tooltip: MDCRb.getText("chart.TOOLBAR_ZOOM_IN"),
|
|
126
136
|
text: MDCRb.getText("chart.TOOLBAR_ZOOM_IN"),
|
|
137
|
+
enabled: false,
|
|
127
138
|
press: function onZoomOutButtonPressed(oControlEvent) {
|
|
128
139
|
oMDCChart.zoomIn();
|
|
129
140
|
this.toggleZoomButtons(oMDCChart);
|
|
@@ -134,6 +145,7 @@ sap.ui.define([
|
|
|
134
145
|
icon: "sap-icon://zoom-out",
|
|
135
146
|
tooltip: MDCRb.getText("chart.TOOLBAR_ZOOM_OUT"),
|
|
136
147
|
text: MDCRb.getText("chart.TOOLBAR_ZOOM_OUT"),
|
|
148
|
+
enabled: false,
|
|
137
149
|
press: function onZoomOutButtonPressed(oControlEvent) {
|
|
138
150
|
oMDCChart.zoomOut();
|
|
139
151
|
this.toggleZoomButtons(oMDCChart);
|
|
@@ -141,6 +153,7 @@ sap.ui.define([
|
|
|
141
153
|
});
|
|
142
154
|
this.addEnd(this.oZoomInButton);
|
|
143
155
|
this.addEnd(this.oZoomOutButton);
|
|
156
|
+
//Enabled via toggleZoomButtons()
|
|
144
157
|
}
|
|
145
158
|
|
|
146
159
|
if (aP13nMode.indexOf("Sort") > -1 || aP13nMode.indexOf("Item") > -1) {
|
|
@@ -148,16 +161,41 @@ sap.ui.define([
|
|
|
148
161
|
icon: "sap-icon://action-settings",//TODO the right icon for P13n chart dialog
|
|
149
162
|
tooltip: MDCRb.getText('chart.PERSONALIZATION_DIALOG_TITLE'),
|
|
150
163
|
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_TITLE'),
|
|
164
|
+
enabled: false,
|
|
151
165
|
press: function (oEvent) {
|
|
152
|
-
|
|
166
|
+
|
|
167
|
+
//TODO: Move this to p13n functionality?
|
|
168
|
+
if (oMDCChart.isPropertyHelperFinal()){
|
|
169
|
+
oMDCChart.getEngine().uimanager.show(oMDCChart, oMDCChart.getP13nMode());
|
|
170
|
+
} else {
|
|
171
|
+
oMDCChart.finalizePropertyHelper().then(function(){
|
|
172
|
+
oMDCChart.getEngine().uimanager.show(oMDCChart, oMDCChart.getP13nMode());
|
|
173
|
+
});
|
|
174
|
+
}
|
|
153
175
|
}
|
|
154
176
|
});
|
|
155
177
|
this.addEnd(this._oSettingsBtn);
|
|
178
|
+
this._chartInternalButtonsToEnable.push(this._oSettingsBtn);
|
|
156
179
|
}
|
|
157
180
|
|
|
158
181
|
if (oMDCChart._getTypeBtnActive()) {
|
|
159
182
|
this._oChartTypeBtn = new ChartTypeButton(oMDCChart);
|
|
183
|
+
this._oChartTypeBtn.setEnabled(false);
|
|
160
184
|
this.addEnd(this._oChartTypeBtn);
|
|
185
|
+
this._chartInternalButtonsToEnable.push(this._oChartTypeBtn);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
ChartToolbar.prototype.addVariantManagement = function(oVariantManagement) {
|
|
191
|
+
|
|
192
|
+
if (oVariantManagement){
|
|
193
|
+
if (this._oVariantManagement) {
|
|
194
|
+
this.removeBetween(this._oVariantManagement);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
this._oVariantManagement = oVariantManagement;
|
|
198
|
+
this.addBetween(this._oVariantManagement);
|
|
161
199
|
}
|
|
162
200
|
|
|
163
201
|
};
|
|
@@ -180,6 +218,11 @@ sap.ui.define([
|
|
|
180
218
|
|
|
181
219
|
if (!this._toolbarInitialUpdated) {
|
|
182
220
|
this.setEnabled(true);
|
|
221
|
+
|
|
222
|
+
this._chartInternalButtonsToEnable.forEach(function(oBtn){
|
|
223
|
+
oBtn.setEnabled(true);
|
|
224
|
+
});
|
|
225
|
+
|
|
183
226
|
this._toolbarInitialUpdated = true;
|
|
184
227
|
}
|
|
185
228
|
|
|
@@ -246,4 +289,4 @@ sap.ui.define([
|
|
|
246
289
|
|
|
247
290
|
};
|
|
248
291
|
return ChartToolbar;
|
|
249
|
-
}
|
|
292
|
+
});
|