@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
|
@@ -1,489 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
* OpenUI5
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
3
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
], function(
|
|
18
|
-
MDCLib,
|
|
19
|
-
BaseChartDelegate,
|
|
20
|
-
SyncPromise,
|
|
21
|
-
MetaModelUtil,
|
|
22
|
-
merge,
|
|
23
|
-
Core,
|
|
24
|
-
FilterUtil,
|
|
25
|
-
DelegateUtil,
|
|
26
|
-
TypeUtil
|
|
8
|
+
"../../ChartDelegate",
|
|
9
|
+
"../../util/loadModules",
|
|
10
|
+
"../../library",
|
|
11
|
+
"sap/ui/core/Core"
|
|
12
|
+
], function (
|
|
13
|
+
ChartDelegate,
|
|
14
|
+
loadModules,
|
|
15
|
+
library,
|
|
16
|
+
Core
|
|
27
17
|
) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
//fiscal tag is stronger than calendarTag
|
|
48
|
-
switch (sFiscalTag) {
|
|
49
|
-
|
|
50
|
-
case "year":
|
|
51
|
-
this.timeUnit = "fiscalyear";
|
|
52
|
-
break;
|
|
53
|
-
|
|
54
|
-
case "yearPeriod":
|
|
55
|
-
this.timeUnit = "fiscalyearperiod";
|
|
56
|
-
break;
|
|
57
|
-
|
|
58
|
-
default:
|
|
59
|
-
this.timeUnit = undefined;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (sCalendarTag && !this.timeUnit) {
|
|
65
|
-
|
|
66
|
-
switch (sCalendarTag) {
|
|
67
|
-
|
|
68
|
-
case "yearMonth":
|
|
69
|
-
this.timeUnit = "yearmonth";
|
|
70
|
-
break;
|
|
71
|
-
|
|
72
|
-
case "date":
|
|
73
|
-
this.timeUnit = "yearmonthday";
|
|
74
|
-
break;
|
|
75
|
-
|
|
76
|
-
case "yearQuarter":
|
|
77
|
-
this.timeUnit = "yearquarter";
|
|
78
|
-
break;
|
|
79
|
-
|
|
80
|
-
case "yearWeek":
|
|
81
|
-
this.timeUnit = "yearweek";
|
|
82
|
-
break;
|
|
83
|
-
|
|
84
|
-
default:
|
|
85
|
-
this.timeUnit = undefined;
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.criticality = aHeadData[6];
|
|
93
|
-
return this;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function handleProperty(aResults) {
|
|
97
|
-
var bGroupable = aResults[0], bAggregatable = aResults[1];
|
|
98
|
-
var oHeadItem = {}, oProperty = {}, oItem;
|
|
99
|
-
|
|
100
|
-
oProperty.inChart = bGroupable || bAggregatable || false;
|
|
101
|
-
|
|
102
|
-
if (oProperty.inChart) {
|
|
103
|
-
oProperty.chartItems = [];
|
|
104
|
-
|
|
105
|
-
if (bGroupable) {
|
|
106
|
-
oHeadItem.kind = MDCLib.ChartItemType.Dimension;
|
|
107
|
-
oHeadItem.role = MDCLib.ChartItemRoleType.category;
|
|
108
|
-
oItem = merge({}, oHeadItem);
|
|
109
|
-
oProperty.chartItems.push(oItem);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (bAggregatable) {
|
|
113
|
-
oHeadItem.kind = MDCLib.ChartItemType.Measure;
|
|
114
|
-
oHeadItem.role = MDCLib.ChartItemRoleType.axis1;
|
|
115
|
-
oHeadItem.contextDefiningProperties = aResults[4] || [];
|
|
116
|
-
|
|
117
|
-
var aSupportedAggregationMethods = aResults[2] || [],
|
|
118
|
-
sDefaultAggregationMethod = aResults[3];
|
|
119
|
-
|
|
120
|
-
for (var i = 0; i < aSupportedAggregationMethods.length; i++) {
|
|
121
|
-
oItem = merge({}, oHeadItem);
|
|
122
|
-
oItem.aggregationMethod = aSupportedAggregationMethods[i] instanceof Object ? aSupportedAggregationMethods[i]["$Path"] : aSupportedAggregationMethods[i];
|
|
123
|
-
oItem.default = oItem.aggregationMethod == sDefaultAggregationMethod instanceof Object ? sDefaultAggregationMethod[i]["$Path"] : sDefaultAggregationMethod[i];
|
|
124
|
-
oProperty.chartItems.push(oItem);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
var oMetaModel = this.getModel();
|
|
130
|
-
|
|
131
|
-
return Promise.all([
|
|
132
|
-
oMetaModel.requestObject("@sapui.name", this),
|
|
133
|
-
oMetaModel.requestObject("@com.sap.vocabularies.Common.v1.Label", this),
|
|
134
|
-
oMetaModel.requestObject("@com.sap.vocabularies.Common.v1.Text/$Path", this),
|
|
135
|
-
oMetaModel.requestObject("$Type", this),
|
|
136
|
-
MetaModelUtil.fetchCalendarTag(oMetaModel,this),
|
|
137
|
-
MetaModelUtil.fetchFiscalTag(oMetaModel, this),
|
|
138
|
-
MetaModelUtil.fetchCriticality(oMetaModel, this)
|
|
139
|
-
]).then(fillHeadData.bind(oProperty));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function retrieveItems(oEntity, sPath, oMetaModel, mAnnos) {
|
|
143
|
-
var sKey, oProperty, aPropertyPromise = [], aItems = [], sPrefix, aProperties = [], bSetFilterable,
|
|
144
|
-
bSetSortable, mKnownAggregatableProps = {};
|
|
145
|
-
|
|
146
|
-
var mCustomAggregates = MetaModelUtil.getAllCustomAggregates(mAnnos);
|
|
147
|
-
|
|
148
|
-
// collect custom aggregates
|
|
149
|
-
for (var sCustom in mCustomAggregates) {
|
|
150
|
-
|
|
151
|
-
aItems.push(merge({}, mCustomAggregates[sCustom], {
|
|
152
|
-
propertyPath: sCustom,
|
|
153
|
-
kind: MDCLib.ChartItemType.Measure,
|
|
154
|
-
role: MDCLib.ChartItemRoleType.axis1,
|
|
155
|
-
sortable: mCustomAggregates[sCustom].sortable,
|
|
156
|
-
filterable: mCustomAggregates[sCustom].filterable
|
|
157
|
-
}));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
var mTypeAggregatableProps = MetaModelUtil.getAllAggregatableProperties(mAnnos);
|
|
161
|
-
|
|
162
|
-
for (var sAggregatable in mTypeAggregatableProps) {
|
|
163
|
-
sKey = mTypeAggregatableProps[sAggregatable].propertyPath;
|
|
164
|
-
mKnownAggregatableProps[sKey] = mKnownAggregatableProps[sKey] || {};
|
|
165
|
-
|
|
166
|
-
mKnownAggregatableProps[sKey][mTypeAggregatableProps[sAggregatable].aggregationMethod] = {
|
|
167
|
-
name: mTypeAggregatableProps[sAggregatable].name,
|
|
168
|
-
label: mTypeAggregatableProps[sAggregatable].label
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
var oSortRestrictionsInfo = MetaModelUtil.getSortRestrictionsInfo(mAnnos["@Org.OData.Capabilities.V1.SortRestrictions"]),
|
|
173
|
-
oFilterRestrictionsInfo = MetaModelUtil.getFilterRestrictionsInfo(mAnnos["@Org.OData.Capabilities.V1.FilterRestrictions"]);
|
|
174
|
-
|
|
175
|
-
function push(oProperty) {
|
|
176
|
-
aProperties.push(oProperty);
|
|
177
|
-
|
|
178
|
-
// calculate sortable/filterable
|
|
179
|
-
MetaModelUtil.addSortInfoForProperty(oProperty, oSortRestrictionsInfo);
|
|
180
|
-
MetaModelUtil.addFilterInfoForProperty(oProperty, oFilterRestrictionsInfo);
|
|
181
|
-
|
|
182
|
-
if (oProperty.inChart) {
|
|
183
|
-
|
|
184
|
-
for (var i = 0; i < oProperty.chartItems.length; i++) {
|
|
185
|
-
var oItem = oProperty.chartItems[i];
|
|
186
|
-
oItem.propertyPath = oProperty.name;
|
|
187
|
-
oItem.type = oProperty.type;
|
|
188
|
-
oItem.timeUnit = oProperty.timeUnit;
|
|
189
|
-
oItem.criticality = oProperty.criticality;
|
|
190
|
-
|
|
191
|
-
if (oItem.kind == MDCLib.ChartItemType.Measure) {
|
|
192
|
-
|
|
193
|
-
var sAggregationMethod = oItem.aggregationMethod instanceof Object ? oItem.aggregationMethod["$Path"] : oItem.aggregationMethod;
|
|
194
|
-
|
|
195
|
-
if (mKnownAggregatableProps[oItem.propertyPath] && mKnownAggregatableProps[oItem.propertyPath][sAggregationMethod]) {
|
|
196
|
-
oItem.name = mKnownAggregatableProps[oItem.propertyPath][oItem.aggregationMethod].name;
|
|
197
|
-
oItem.label = mKnownAggregatableProps[oItem.propertyPath][oItem.aggregationMethod].label;
|
|
198
|
-
} else {
|
|
199
|
-
oItem.name = sAggregationMethod + oItem.propertyPath;
|
|
200
|
-
|
|
201
|
-
oItem.label = oProperty.label + " (" + sAggregationMethod + ")";
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
oItem.customAggregate = false;
|
|
205
|
-
|
|
206
|
-
// in the first wave let us only sort by used items
|
|
207
|
-
oItem.sortable = true;
|
|
208
|
-
oItem.sortDirection = "both";
|
|
209
|
-
oItem.filterable = true;
|
|
210
|
-
} else {
|
|
211
|
-
oItem.name = oProperty.name;
|
|
212
|
-
oItem.textProperty = oProperty.textProperty;
|
|
213
|
-
oItem.label = oProperty.label;
|
|
214
|
-
|
|
215
|
-
// in the first wave let us only sort by used items
|
|
216
|
-
oItem.sortable = oProperty.sortable;
|
|
217
|
-
oItem.sortDirection = oProperty.sortDirection;
|
|
218
|
-
|
|
219
|
-
// allow filtering on each possible dimension
|
|
220
|
-
oItem.filterable = oProperty.filterable;
|
|
221
|
-
oItem.allowedExpressions = oProperty.allowedExpressions;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
aItems.push(oItem);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
for (sKey in oEntity) {
|
|
230
|
-
|
|
231
|
-
if (sKey[0] !== "$") {// no special annotation
|
|
232
|
-
oProperty = oEntity[sKey];
|
|
233
|
-
|
|
234
|
-
if (oProperty && oProperty.$kind && (oProperty.$kind == "Property")) {
|
|
235
|
-
sPrefix = sPath + sKey + AGGREGATION_ANNO;
|
|
236
|
-
|
|
237
|
-
aPropertyPromise.push(
|
|
238
|
-
Promise.all([
|
|
239
|
-
oMetaModel.requestObject(sPrefix + ".Groupable"),
|
|
240
|
-
oMetaModel.requestObject(sPrefix + ".Aggregatable"),
|
|
241
|
-
oMetaModel.requestObject(sPrefix + ".SupportedAggregationMethods"),
|
|
242
|
-
oMetaModel.requestObject(sPrefix + ".RecommendedAggregationMethod"),
|
|
243
|
-
oMetaModel.requestObject(sPrefix + ".ContextDefiningProperties")
|
|
244
|
-
])
|
|
245
|
-
.then(handleProperty.bind(oMetaModel.getMetaContext(sPath + sKey)))
|
|
246
|
-
.then(push)
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
return Promise.all(aPropertyPromise).then(function() {
|
|
253
|
-
return [bSetSortable, bSetFilterable, aProperties, aItems];
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* OData V4 delegate module for the <code>sap.ui.mdc.Chart</code> control.
|
|
259
|
-
*
|
|
260
|
-
* This module interpret service metadata that represents entity-relationship
|
|
261
|
-
* models, service capabilities, and annotations to automatically create
|
|
262
|
-
* some chart's inner controls, for example, dimension and measure items.
|
|
263
|
-
*
|
|
264
|
-
* <b>Note:</b> The module is experimental and is not finalized, hence it should not be used
|
|
265
|
-
* productively.
|
|
266
|
-
*
|
|
267
|
-
* @private
|
|
268
|
-
* @experimental
|
|
269
|
-
* @alias module:sap/ui/mdc/odata/v4/ChartDelegate
|
|
270
|
-
* @since 1.62
|
|
271
|
-
* @author SAP SE
|
|
272
|
-
*/
|
|
273
|
-
var ChartDelegate = Object.assign({}, BaseChartDelegate);
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @inheritdoc
|
|
277
|
-
*/
|
|
278
|
-
ChartDelegate.MetadataProperty = {
|
|
279
|
-
kind: "Measure",
|
|
280
|
-
role: "axis1",
|
|
281
|
-
contextDefiningProperties: [],
|
|
282
|
-
className: "sap.ui.mcd.chart.MeasureItem",
|
|
283
|
-
aggregationMethod: "sum",
|
|
284
|
-
"default": true,
|
|
285
|
-
custom: false,
|
|
286
|
-
name: "sumSalesAmount",
|
|
287
|
-
propertyPath: "SalesAmount",
|
|
288
|
-
label: "Total Sales Amount",
|
|
289
|
-
textProperty: "",
|
|
290
|
-
sortable: true,
|
|
291
|
-
sortDirection: "both",
|
|
292
|
-
filterable: true,
|
|
293
|
-
allowedExpressions: []
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* @inheritdoc
|
|
298
|
-
*/
|
|
299
|
-
ChartDelegate.fetchProperties = function(oChart) {
|
|
300
|
-
return this.retrieveAllMetadata(oChart).then(function(oMetadata) {
|
|
301
|
-
return oMetadata.properties;
|
|
302
|
-
});
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* @inheritdoc
|
|
307
|
-
*/
|
|
308
|
-
ChartDelegate.retrieveAggregationItem = function(sAggregationName, oMetadata) {
|
|
309
|
-
var oSettings;
|
|
310
|
-
var oAggregation = {
|
|
311
|
-
className: "",
|
|
312
|
-
settings: {
|
|
313
|
-
key: oMetadata.name,
|
|
314
|
-
label: oMetadata.label || oMetadata.name,
|
|
315
|
-
type: oMetadata.type
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
switch (oMetadata.kind) {
|
|
320
|
-
|
|
321
|
-
case MDCLib.ChartItemType.Dimension:
|
|
322
|
-
oAggregation.className = "sap.ui.mdc.chart.DimensionItem";
|
|
323
|
-
|
|
324
|
-
oSettings = {
|
|
325
|
-
textProperty: oMetadata.textProperty,
|
|
326
|
-
timeUnit: oMetadata.timeUnit,
|
|
327
|
-
displayText: true,
|
|
328
|
-
criticality: oMetadata.criticality
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
break;
|
|
332
|
-
|
|
333
|
-
case MDCLib.ChartItemType.Measure:
|
|
334
|
-
oAggregation.className = "sap.ui.mdc.chart.MeasureItem";
|
|
335
|
-
|
|
336
|
-
oSettings = {
|
|
337
|
-
propertyPath: oMetadata.propertyPath,
|
|
338
|
-
aggregationMethod: oMetadata.aggregationMethod
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
break;
|
|
342
|
-
|
|
343
|
-
// no default
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
oAggregation.settings = Object.assign(oAggregation.settings, oSettings);
|
|
347
|
-
return oAggregation;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
ChartDelegate.getModel = function(oChart) {
|
|
351
|
-
var vModelName = oChart.getDelegate().model,
|
|
352
|
-
oModel = oChart.getModel(vModelName);
|
|
353
|
-
|
|
354
|
-
if (oModel) {
|
|
355
|
-
return SyncPromise.resolve(oModel);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
return new SyncPromise(function(resolve, reject) {
|
|
359
|
-
|
|
360
|
-
function onModelContextChange() {
|
|
361
|
-
var oModel = oChart.getModel(vModelName);
|
|
362
|
-
|
|
363
|
-
if (oModel) {
|
|
364
|
-
oChart.detachModelContextChange(onModelContextChange, oChart);
|
|
365
|
-
return resolve(oModel);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
oChart.attachModelContextChange(onModelContextChange, oChart);
|
|
370
|
-
});
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @inheritdoc
|
|
375
|
-
*/
|
|
376
|
-
ChartDelegate.retrieveAllMetadata = function(oChart) {
|
|
377
|
-
var oModelPromise = this.getModel(oChart);
|
|
378
|
-
|
|
379
|
-
function onModelPropagated(oModel) {
|
|
380
|
-
var oDelegate = oChart.getDelegate(),
|
|
381
|
-
sPath = "/" + oDelegate.payload.collectionName,
|
|
382
|
-
oMetaModel = oModel && oModel.getMetaModel();
|
|
383
|
-
|
|
384
|
-
if (sPath.endsWith("/")) {
|
|
385
|
-
throw new Error("The leading path for metadata calculation is the entity set not the path");
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
var sSetPath = sPath,
|
|
389
|
-
sTypePath = sPath + "/";
|
|
390
|
-
|
|
391
|
-
function resolve(aResult) {
|
|
392
|
-
var oMetadata = {
|
|
393
|
-
sortable: aResult[0],
|
|
394
|
-
filterable: aResult[1],
|
|
395
|
-
attributes: aResult[2],
|
|
396
|
-
properties: aResult[3]
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
return oMetadata;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
var aSetAndTypePromise = [
|
|
403
|
-
oMetaModel.requestObject(sTypePath),
|
|
404
|
-
oMetaModel.requestObject(sSetPath)
|
|
405
|
-
];
|
|
406
|
-
|
|
407
|
-
return Promise.all(aSetAndTypePromise).then(function(aTypeAndSet) {
|
|
408
|
-
var oEntity = aTypeAndSet[0];
|
|
409
|
-
var aAnnotationsPromises = [
|
|
410
|
-
MetaModelUtil.fetchAllAnnotations(oMetaModel, sTypePath),
|
|
411
|
-
MetaModelUtil.fetchAllAnnotations(oMetaModel, sSetPath)
|
|
412
|
-
];
|
|
413
|
-
|
|
414
|
-
return Promise.all(aAnnotationsPromises).then(function(aAnnotations) {
|
|
415
|
-
|
|
416
|
-
// merge the annotations of set and type and let set overrule
|
|
417
|
-
var oAnnotations = Object.assign(aAnnotations[0], aAnnotations[1]);
|
|
418
|
-
return retrieveItems(oEntity, sTypePath, oMetaModel, oAnnotations);
|
|
419
|
-
});
|
|
420
|
-
|
|
421
|
-
}).then(resolve);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
return oModelPromise.then(onModelPropagated);
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Updates the binding info with the relevant filters
|
|
429
|
-
*
|
|
430
|
-
* @param {Object} oMDCChart The MDC chart instance
|
|
431
|
-
* @param {Object} oBindingInfo The binding info of the chart
|
|
432
|
-
*/
|
|
433
|
-
ChartDelegate.updateBindingInfo = function(oMDCChart, oBindingInfo) {
|
|
434
|
-
var oFilter = Core.byId(oMDCChart.getFilter());
|
|
435
|
-
if (oFilter) {
|
|
436
|
-
var mConditions = oFilter.getConditions();
|
|
437
|
-
|
|
438
|
-
if (mConditions) {
|
|
439
|
-
|
|
440
|
-
if (!oBindingInfo) {
|
|
441
|
-
oBindingInfo = {};
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
var aPropertiesMetadata = oFilter.getPropertyInfoSet ? oFilter.getPropertyInfoSet() : null;
|
|
445
|
-
var aParameterNames = DelegateUtil.getParameterNames(oFilter);
|
|
446
|
-
var oFilterInfo = FilterUtil.getFilterInfo(ChartDelegate.getTypeUtil(), mConditions, aPropertiesMetadata, aParameterNames);
|
|
447
|
-
if (oFilterInfo) {
|
|
448
|
-
oBindingInfo.filters = oFilterInfo.filters;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
var sParameterPath = DelegateUtil.getParametersInfo(oFilter);
|
|
452
|
-
if (sParameterPath) {
|
|
453
|
-
oBindingInfo.path = sParameterPath;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
// get the basic search
|
|
458
|
-
var sSearchText = oFilter.getSearch instanceof Function ? oFilter.getSearch() : "";
|
|
459
|
-
if (sSearchText) {
|
|
460
|
-
|
|
461
|
-
if (!oBindingInfo) {
|
|
462
|
-
oBindingInfo = {};
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
if (!oBindingInfo.parameters) {
|
|
466
|
-
oBindingInfo.parameters = {};
|
|
467
|
-
}
|
|
468
|
-
// add basic search parameter as expected by v4.ODataListBinding
|
|
469
|
-
oBindingInfo.parameters.$search = sSearchText;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Checks the binding of the table and rebinds it if required.
|
|
476
|
-
*
|
|
477
|
-
* @param {Object} oMDCChart The MDC chart instance
|
|
478
|
-
* @param {Object} oBindingInfo The row binding info of the table
|
|
479
|
-
*/
|
|
480
|
-
ChartDelegate.rebindChart = function(oMDCChart, oBindingInfo) {
|
|
481
|
-
BaseChartDelegate.rebindChart(oMDCChart, oBindingInfo);
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
ChartDelegate.getTypeUtil = function (oPayload) {
|
|
485
|
-
return TypeUtil;
|
|
486
|
-
};
|
|
487
|
-
|
|
488
|
-
return ChartDelegate;
|
|
489
|
-
});
|
|
18
|
+
"use strict";
|
|
19
|
+
/**
|
|
20
|
+
* Delegate class for sap.ui.mdc.Chart and ODataV4.
|
|
21
|
+
* Enables additional analytical capabilities.
|
|
22
|
+
* <b>Note:</b> The class is experimental and the API/behavior is not finalized.
|
|
23
|
+
*
|
|
24
|
+
* @author SAP SE
|
|
25
|
+
* @private
|
|
26
|
+
* @ui5-restricted sap.fe
|
|
27
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
28
|
+
* @since 1.88
|
|
29
|
+
* @alias sap.ui.mdc.odata.v4.ChartDelegate
|
|
30
|
+
*/
|
|
31
|
+
var Delegate = Object.assign({}, ChartDelegate);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
return Delegate;
|
|
35
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/mdc/chart/PropertyHelper",
|
|
9
|
+
"sap/ui/mdc/library"
|
|
10
|
+
], function(
|
|
11
|
+
PropertyHelperBase,
|
|
12
|
+
MDCLib
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Constructor for a new table property helper.
|
|
18
|
+
*
|
|
19
|
+
* @param {object[]} aProperties The properties to process in this helper
|
|
20
|
+
* @param {sap.ui.base.ManagedObject} [oParent] A reference to an instance that will act as the parent of this helper
|
|
21
|
+
*
|
|
22
|
+
* @class
|
|
23
|
+
* Table property helpers give tables of this library a consistent and standardized view on properties and their attributes.
|
|
24
|
+
* Validates the given properties, sets defaults, and provides utilities to work with these properties.
|
|
25
|
+
* The utilities can only be used for properties that are known to the helper. Known properties are all those that are passed to the constructor.
|
|
26
|
+
*
|
|
27
|
+
* @extends sap.ui.mdc.chart.PropertyHelper
|
|
28
|
+
*
|
|
29
|
+
* @author SAP SE
|
|
30
|
+
* @version 1.100.0
|
|
31
|
+
*
|
|
32
|
+
* @private
|
|
33
|
+
* @experimental
|
|
34
|
+
* @since 1.83
|
|
35
|
+
* @alias sap.ui.mdc.table.PropertyHelper
|
|
36
|
+
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
37
|
+
*/
|
|
38
|
+
var PropertyHelper = PropertyHelperBase.extend("sap.ui.mdc.odata.v4.ChartPropertyHelper");
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Applies defaults and resolves property references.
|
|
43
|
+
*
|
|
44
|
+
* @param {object} oProperty The property to prepare
|
|
45
|
+
* @protected
|
|
46
|
+
*/
|
|
47
|
+
PropertyHelper.prototype.prepareProperty = function(oProperty) {
|
|
48
|
+
|
|
49
|
+
if (oProperty.groupable) {
|
|
50
|
+
oProperty.availableRoles = this._getLayoutOptionsForType("groupable");
|
|
51
|
+
oProperty.kind = "Groupable";
|
|
52
|
+
} else if (oProperty.aggregatable) {
|
|
53
|
+
oProperty.availableRoles = this._getLayoutOptionsForType("aggregatable");
|
|
54
|
+
oProperty.kind = "Aggregatable";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!oProperty.typeConfig && oProperty.dataType){
|
|
58
|
+
var oFormatOptions = oProperty.formatOptions ? oProperty.formatOptions : null;
|
|
59
|
+
var oConstraints = oProperty.constraints ? oProperty.constraints : {};
|
|
60
|
+
|
|
61
|
+
oProperty.typeConfig = this.getParent().getControlDelegate().getTypeUtil().getTypeConfig(oProperty.dataType, oFormatOptions, oConstraints);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
PropertyHelperBase.prototype.prepareProperty.apply(this, arguments);
|
|
65
|
+
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* This returns the layout options for a specific type of Item (measure/dimension,groupable/aggregatable)
|
|
70
|
+
* It is used by p13n to determine which layout options to show in the p13n panel
|
|
71
|
+
* @param {string} sType the type for which the layout options are requested
|
|
72
|
+
*/
|
|
73
|
+
PropertyHelper.prototype._getLayoutOptionsForType = function(sType){
|
|
74
|
+
var MDCRb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
75
|
+
var oAvailableRoles = {
|
|
76
|
+
groupable: [
|
|
77
|
+
{
|
|
78
|
+
key: MDCLib.ChartItemRoleType.category,
|
|
79
|
+
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_CHARTROLE_CATEGORY')
|
|
80
|
+
}, {
|
|
81
|
+
key: MDCLib.ChartItemRoleType.category2,
|
|
82
|
+
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_CHARTROLE_CATEGORY2')
|
|
83
|
+
}, {
|
|
84
|
+
key: MDCLib.ChartItemRoleType.series,
|
|
85
|
+
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_CHARTROLE_SERIES')
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
aggregatable: [
|
|
89
|
+
{
|
|
90
|
+
key: MDCLib.ChartItemRoleType.axis1,
|
|
91
|
+
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_CHARTROLE_AXIS1')
|
|
92
|
+
}, {
|
|
93
|
+
key: MDCLib.ChartItemRoleType.axis2,
|
|
94
|
+
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_CHARTROLE_AXIS2')
|
|
95
|
+
}, {
|
|
96
|
+
key: MDCLib.ChartItemRoleType.axis3,
|
|
97
|
+
text: MDCRb.getText('chart.PERSONALIZATION_DIALOG_CHARTROLE_AXIS3')
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
return oAvailableRoles[sType];
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
return PropertyHelper;
|
|
106
|
+
});
|