@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
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
sap.ui.define([
|
|
5
|
+
"sap/ui/test/Opa5",
|
|
6
|
+
"./ActionsViz",
|
|
7
|
+
"./AssertionsViz",
|
|
8
|
+
"../p13n/Actions"
|
|
9
|
+
], function(
|
|
10
|
+
Opa5,
|
|
11
|
+
chartActions,
|
|
12
|
+
chartAssertions,
|
|
13
|
+
p13nActions
|
|
14
|
+
) {
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
Opa5.createPageObjects({
|
|
18
|
+
onTheMDCChart: {
|
|
19
|
+
actions: {
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {object} ChartPersonalizationConfiguration
|
|
22
|
+
* @property {string} key Key of the value that is the result of the personalization
|
|
23
|
+
* @property {string} role Role of the given value
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* OPA5 test action
|
|
27
|
+
* This only works with the new chart personalization
|
|
28
|
+
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is personalized
|
|
29
|
+
* @param {string} sChartType String containing the type of chart that is displayed
|
|
30
|
+
* @param {ChartPersonalizationConfiguration[]} aConfigurations Array containing the chart personalization configuration objects
|
|
31
|
+
* @returns {Promise} OPA waitFor
|
|
32
|
+
* 1. Opens the personalization dialog of a given chart.
|
|
33
|
+
* 2. Selects a chart type given by <code>sChartType</code>.
|
|
34
|
+
* 3. Executes the given ChartPersonalizationConfigurations.
|
|
35
|
+
* 4. Closes the personalization dialog.
|
|
36
|
+
*/
|
|
37
|
+
iPersonalizeChart: function(oChart, sChartType, aConfigurations){
|
|
38
|
+
return p13nActions.iPersonalizeChart.call(this, oChart, sChartType, aConfigurations);
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* @typedef {object} SortPersonalizationConfiguration
|
|
42
|
+
* @property {string} key Key of the item that is the result of the personalization
|
|
43
|
+
* @property {boolean} descending Determines whether the sort direction is descending
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* OPA5 test action
|
|
47
|
+
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is sorted
|
|
48
|
+
* @param {SortPersonalizationConfiguration[]} aConfigurations Array containing the sort personalization configuration objects
|
|
49
|
+
* @returns {Promise} OPA waitFor
|
|
50
|
+
* 1. Opens the personalization dialog of a given chart.
|
|
51
|
+
* 2. Executes the given SortPersonalizationConfiguration.
|
|
52
|
+
* 3. Closes the personalization dialog.
|
|
53
|
+
*/
|
|
54
|
+
iPersonalizeSort: function(oChart, aConfigurations) {
|
|
55
|
+
return p13nActions.iPersonalizeSort.call(this, oChart, aConfigurations);
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* Opa5 test action
|
|
59
|
+
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is reset
|
|
60
|
+
* @returns {Promise} OPA waitFor
|
|
61
|
+
* 1. Opens the personalization dialog of a given chart.
|
|
62
|
+
* 2. Clicks on the reset personalization button.
|
|
63
|
+
* 3. Confirms the reset dialog.
|
|
64
|
+
* 4. Closes the personalization dialog.
|
|
65
|
+
*/
|
|
66
|
+
iResetThePersonalization: function(oChart) {
|
|
67
|
+
return p13nActions.iResetThePersonalization.call(this, oChart);
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* OPA5 test action
|
|
72
|
+
* Clicks on the "Zoom In" button in the toolbar of a mdc chart.
|
|
73
|
+
* @param {string} sId The id of the mdc chart
|
|
74
|
+
* @returns {Promise} OPA waitFor
|
|
75
|
+
*/
|
|
76
|
+
iClickOnZoomIn : function(sId){
|
|
77
|
+
return chartActions.iClickOnZoomIn.call(this, sId);
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* OPA5 test action
|
|
82
|
+
* Clicks on the "Zoom Out" button in the toolbar of a mdc chart.
|
|
83
|
+
* @param {string} sId The id of the mdc chart
|
|
84
|
+
* @returns {Promise} OPA waitFor
|
|
85
|
+
*/
|
|
86
|
+
iClickOnZoomOut : function(sId){
|
|
87
|
+
return chartActions.iClickOnZoomOut.call(this, sId);
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* OPA5 test action
|
|
91
|
+
* Clicks on the "Legend" toggle button in the toolbar of a mdc chart.
|
|
92
|
+
* @param {string} sId The id of the mdc chart
|
|
93
|
+
* @returns {Promise} OPA waitFor
|
|
94
|
+
*/
|
|
95
|
+
iClickOnTheLegendToggleButton : function(sId){
|
|
96
|
+
return chartActions.iClickOnTheLegendToggleButton.call(this, sId);
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* OPA5 test action
|
|
100
|
+
* Clicks on the "Show Details" button in the toolbar of a mdc chart.
|
|
101
|
+
* @param {*} sId The id of the mdc chart
|
|
102
|
+
* @returns {Promise} OPA waitFor
|
|
103
|
+
*/
|
|
104
|
+
iClickOnTheSelectionDetailsButton: function(sId){
|
|
105
|
+
return chartActions.iClickOnTheSelectionDetailsButton.call(this, sId);
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* OPA5 test action
|
|
109
|
+
* Clicks on the "Drilldown" button in the toolbar of a mdc chart.
|
|
110
|
+
* @param {string} sId The id of the mdc chart.
|
|
111
|
+
* @returns {Promise} OPA waitFor
|
|
112
|
+
*/
|
|
113
|
+
iClickOnTheDrillDownButton: function(sId){
|
|
114
|
+
return chartActions.iClickOnTheDrillDownButton.call(this, sId);
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* OPA5 test action
|
|
118
|
+
* Clicks on the "Chart Type" button in the toolbar of a mdc chart.
|
|
119
|
+
* @param {string} sId The id of the mdc chart.
|
|
120
|
+
* @returns {Promise} OPA waitFor
|
|
121
|
+
*/
|
|
122
|
+
iClickOnTheChartTypeButton: function(sId){
|
|
123
|
+
return chartActions.iClickOnTheChartTypeButton.apply(this, arguments);
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* OPA5 test action
|
|
127
|
+
* Clicks on the "Personalisation" button in the toolbar of a mdc chart.
|
|
128
|
+
* @param {string} sId The id of the mdc chart.
|
|
129
|
+
* @returns {Promise} OPA waitFor
|
|
130
|
+
*/
|
|
131
|
+
iClickOnThePersonalisationButton: function(sId){
|
|
132
|
+
return chartActions.iClickOnThePersonalisationButton.call(this, sId);
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* OPA5 test action
|
|
136
|
+
* Selects a specific chart type for a mdc chart in an open chart type popover
|
|
137
|
+
* @param {string} sChartTypeName The name of the chart type
|
|
138
|
+
* @returns {Promise} OPA waitFor
|
|
139
|
+
*/
|
|
140
|
+
iSelectChartTypeInPopover: function(sChartTypeName){
|
|
141
|
+
return chartActions.iSelectChartTypeInPopover.call(this, sChartTypeName);
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* OPA5 test action
|
|
145
|
+
* Clicks on an drill-down breadcrumb with given name for given mdc chart
|
|
146
|
+
* @param {string} sName The name of the breadcrumbs
|
|
147
|
+
* @param {string} sId Id of the mdc chart.
|
|
148
|
+
* @returns {Promise} OPA waitFor
|
|
149
|
+
*/
|
|
150
|
+
iClickOnTheBreadcrumbWithName: function(sName, sId){
|
|
151
|
+
return chartActions.iClickOnTheBreadcrumbWithName.call(this, sName, sId);
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* OPA5 test action
|
|
155
|
+
* Selects a specific dimension to drill-down for a mdc chart in an open chart drill-down popover
|
|
156
|
+
* @param {string} sDrillName Name of the Dimension which should be drilled-down
|
|
157
|
+
* @returns {Promise} OPA waitFor
|
|
158
|
+
*/
|
|
159
|
+
iSelectANewDrillDimensionInPopover: function(sDrillName){
|
|
160
|
+
return chartActions.iSelectANewDrillDimensionInPopover.call(this, sDrillName);
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* OPA5 test action
|
|
164
|
+
* Selects given datapoints on given chart.
|
|
165
|
+
* @param {array} aDataPoints Datapoint objects to select
|
|
166
|
+
* @param {string} sId Id of the mdc chart
|
|
167
|
+
* @returns {Promise} OPA waitFor
|
|
168
|
+
*/
|
|
169
|
+
iSelectTheDatapoint: function (aDataPoints, sId){
|
|
170
|
+
return chartActions.iSelectTheDatapoint.call(this, aDataPoints, sId);
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* OPA5 test action
|
|
174
|
+
* Selectes given categories (dimensions) for the given mdc chart
|
|
175
|
+
* @param {object} oCategories Categories to select
|
|
176
|
+
* @param {string} sId Id of the mdc chart
|
|
177
|
+
* @returns {Promise} OPA waitFor
|
|
178
|
+
*/
|
|
179
|
+
iSelectTheCategories: function (oCategories, sId){
|
|
180
|
+
return chartActions.iSelectTheDatapoint.call(this, oCategories, sId);
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* OPA5 test action
|
|
184
|
+
* Performs a drill-down on the MDC Chart
|
|
185
|
+
* @param {string} sId The id of the MDC Chart.
|
|
186
|
+
* @param {string} sDrillName Name of the Dimension which should be drilled-down.
|
|
187
|
+
* @returns {Promise} OPA waitFor
|
|
188
|
+
*/
|
|
189
|
+
iDrillDownInDimension: function(sId, sDrillName) {
|
|
190
|
+
return chartActions.iDrillDownInDimension.call(this, sId, sDrillName);
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* OPA5 test action
|
|
194
|
+
* Performs a drill-down on the MDC Chart
|
|
195
|
+
* @param {string} sId The id of the MDC Chart
|
|
196
|
+
* @param {string} sChartTypeName Name of the Dimension which should be drilled-down.
|
|
197
|
+
* @returns {Promise} OPA waitFor
|
|
198
|
+
*/
|
|
199
|
+
iSelectAChartType: function(sId, sChartTypeName) {
|
|
200
|
+
return chartActions.iSelectAChartType.call(this, sId, sChartTypeName);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
},
|
|
204
|
+
assertions: {
|
|
205
|
+
/**
|
|
206
|
+
* OPA5 assertion
|
|
207
|
+
* Assertion to check that there is a mdc chart visible on the screen.
|
|
208
|
+
* @returns {Promise} OPA waitFor
|
|
209
|
+
*/
|
|
210
|
+
iShouldSeeAChart: function() {
|
|
211
|
+
return chartAssertions.iShouldSeeAChart.call(this);
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* Assertion to check that there is a legend visible on the screen for given mdc chart.
|
|
215
|
+
* @param {string} sId Id of the chart to be checked for a visible legend
|
|
216
|
+
* @returns {Promise} OPA waitFor
|
|
217
|
+
*/
|
|
218
|
+
iShouldSeeALegend: function(sId) {
|
|
219
|
+
return chartAssertions.iShouldSeeALegend.call(this, sId);
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* Assertion to check that there is no legend visible on the screen for given mdc chart.
|
|
223
|
+
* @param {string} sId Id of the chart to be checked for a visible legend
|
|
224
|
+
* @returns {Promise} OPA waitFor
|
|
225
|
+
*/
|
|
226
|
+
iShouldSeeNoLegend: function(sId) {
|
|
227
|
+
return chartAssertions.iShouldSeeNoLegend.call(this, sId);
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Assertion to check that there is a chart type popover visible on the screen.
|
|
232
|
+
* @returns {Promise} OPA waitFor
|
|
233
|
+
*/
|
|
234
|
+
iShouldSeeAChartTypePopover: function() {
|
|
235
|
+
return chartAssertions.iShouldSeeAChartTypePopover.call(this);
|
|
236
|
+
},
|
|
237
|
+
/**
|
|
238
|
+
* Assertion to check that there is chart visible with given chart type.
|
|
239
|
+
* @param {string} sChartId Id of the chart to be checked for a chart type
|
|
240
|
+
* @param {string} sChartType Chart type which should be selected for the given chart
|
|
241
|
+
* @returns {Promise} OPA waitFor
|
|
242
|
+
*/
|
|
243
|
+
iShouldSeeTheChartWithChartType: function(sChartId, sChartType){
|
|
244
|
+
return chartAssertions.iShouldSeeTheChartWithChartType.call(this, sChartId, sChartType);
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
* Assertion to check that there is a chart with given drillstack visible.
|
|
248
|
+
* @param {array} aCheckDrillStack Drillstack to check for
|
|
249
|
+
* @param {string} sChartId Id of the mdc chart
|
|
250
|
+
* @returns {Promise} OPA waitFor
|
|
251
|
+
*/
|
|
252
|
+
iShouldSeeTheDrillStack: function(aCheckDrillStack, sChartId) {
|
|
253
|
+
return chartAssertions.iShouldSeeTheDrillStack.call(this, aCheckDrillStack, sChartId);
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Assertion to check that there is a drilldown popover visible.
|
|
257
|
+
* @returns {Promise} OPA waitFor
|
|
258
|
+
*/
|
|
259
|
+
iShouldSeeADrillDownPopover: function() {
|
|
260
|
+
return chartAssertions.iShouldSeeADrillDownPopover.call(this);
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
* Assertion to check that there is a drilldown popover visible.
|
|
264
|
+
* @returns {Promise} OPA waitFor
|
|
265
|
+
*/
|
|
266
|
+
iShouldSeeADetailsPopover: function() {
|
|
267
|
+
return chartAssertions.iShouldSeeADetailsPopover.call(this);
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* Assertion to check visible dimensions on the MDC Chart
|
|
271
|
+
* @param {array} aDimensions
|
|
272
|
+
* @param {string} sId Id of the MDC Chart
|
|
273
|
+
* @returns {Promise} OPA waitFor
|
|
274
|
+
*/
|
|
275
|
+
iShouldSeeVisibleDimensionsInOrder: function(aDimensions, sId) {
|
|
276
|
+
return chartAssertions.iShouldSeeVisibleDimensionsInOrder.call(this, aDimensions, sId);
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* Assertion to check visible measures on the MDC Chart
|
|
280
|
+
* @param {array} aMeasures
|
|
281
|
+
* @param {string} sId Id of the MDC Chart
|
|
282
|
+
* @returns {Promise} OPA waitFor
|
|
283
|
+
*/
|
|
284
|
+
iShouldSeeVisibleMeasuresInOrder: function(aMeasures, sId) {
|
|
285
|
+
return chartAssertions.iShouldSeeVisibleMeasuresInOrder.call(this, aMeasures, sId);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
});
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
sap.ui.define([
|
|
5
5
|
"sap/ui/test/Opa5",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"../chart/ActionsViz",
|
|
7
|
+
"../chart/AssertionsViz",
|
|
8
8
|
"../p13n/Actions"
|
|
9
9
|
], function(
|
|
10
10
|
Opa5,
|
|
@@ -18,14 +18,14 @@ sap.ui.define([
|
|
|
18
18
|
onTheMDCChart: {
|
|
19
19
|
actions: {
|
|
20
20
|
/**
|
|
21
|
-
* @typedef {
|
|
21
|
+
* @typedef {object} ChartPersonalizationConfiguration
|
|
22
22
|
* @property {string} key Key of the value that is the result of the personalization
|
|
23
23
|
* @property {string} role Role of the given value
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* OPA5 test action
|
|
27
27
|
* This only works with the new chart personalization
|
|
28
|
-
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>
|
|
28
|
+
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is personalized
|
|
29
29
|
* @param {string} sChartType String containing the type of chart that is displayed
|
|
30
30
|
* @param {ChartPersonalizationConfiguration[]} aConfigurations Array containing the chart personalization configuration objects
|
|
31
31
|
* @returns {Promise} OPA waitFor
|
|
@@ -38,13 +38,13 @@ sap.ui.define([
|
|
|
38
38
|
return p13nActions.iPersonalizeChart.call(this, oChart, sChartType, aConfigurations);
|
|
39
39
|
},
|
|
40
40
|
/**
|
|
41
|
-
* @typedef {
|
|
41
|
+
* @typedef {object} SortPersonalizationConfiguration
|
|
42
42
|
* @property {string} key Key of the item that is the result of the personalization
|
|
43
43
|
* @property {boolean} descending Determines whether the sort direction is descending
|
|
44
44
|
*/
|
|
45
45
|
/**
|
|
46
46
|
* OPA5 test action
|
|
47
|
-
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>
|
|
47
|
+
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is sorted
|
|
48
48
|
* @param {SortPersonalizationConfiguration[]} aConfigurations Array containing the sort personalization configuration objects
|
|
49
49
|
* @returns {Promise} OPA waitFor
|
|
50
50
|
* 1. Opens the personalization dialog of a given chart.
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
},
|
|
57
57
|
/**
|
|
58
58
|
* Opa5 test action
|
|
59
|
-
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>
|
|
59
|
+
* @param {sap.ui.core.Control | string} oChart Instance / ID of the <code>MDCChart</code> that is reset
|
|
60
60
|
* @returns {Promise} OPA waitFor
|
|
61
61
|
* 1. Opens the personalization dialog of a given chart.
|
|
62
62
|
* 2. Clicks on the reset personalization button.
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* Closes the personalization dialog.
|
|
34
34
|
* </li>
|
|
35
35
|
* </ol>
|
|
36
|
-
* @param {sap.ui.core.Control |
|
|
36
|
+
* @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code> that is filtered
|
|
37
37
|
* @param {Object} oSettings Map containing the settings for the filter personalization. Key is the label of the given group in the <code>FilterBar</code> personalization dialog, and value is an array containing the labels of the <code>FilterField</code>
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* Closes the personalization dialog.
|
|
57
57
|
* </li>
|
|
58
58
|
* </ol>
|
|
59
|
-
* @param {sap.ui.core.Control |
|
|
59
|
+
* @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
|
|
60
60
|
* @returns
|
|
61
61
|
*/
|
|
62
62
|
iResetThePersonalization: function(oFilterBar) {
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
/**
|
|
66
66
|
* OPA5 test action
|
|
67
67
|
* Presses the apply filters button of the <code>FilterBar</code>.
|
|
68
|
-
* @param {sap.ui.core.Control |
|
|
68
|
+
* @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
|
|
69
69
|
* @returns
|
|
70
70
|
*/
|
|
71
71
|
iExpectSearch: function(oFilterBar) {
|
|
@@ -87,8 +87,7 @@ sap.ui.define([
|
|
|
87
87
|
* Closes the personalization dialog.
|
|
88
88
|
* </li>
|
|
89
89
|
* </ol>
|
|
90
|
-
* @param {sap.ui.core.Control |
|
|
91
|
-
* @param {String} sFilterLabel Label of the <code>FilterField</code>
|
|
90
|
+
* @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
|
|
92
91
|
* @param {Object} mSettings Map containing the settings for the filter values. Key is the label of the given group in the <code>FilterBar</code> personalization dialog, and value is an object containing the label of the <code>FilterField</code> and the values that are entered
|
|
93
92
|
* @returns
|
|
94
93
|
*/
|
|
@@ -98,8 +97,8 @@ sap.ui.define([
|
|
|
98
97
|
/**
|
|
99
98
|
* OPA5 test action
|
|
100
99
|
* Clears all values of a <code>FilterField</code> with a given label on the <code>FilterBar</code>.
|
|
101
|
-
* @param {sap.ui.core.Control |
|
|
102
|
-
* @param {
|
|
100
|
+
* @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
|
|
101
|
+
* @param {string} sFilterLabel Label of the <code>FilterField</code>
|
|
103
102
|
* @returns
|
|
104
103
|
*/
|
|
105
104
|
iClearFilterValue: function(oFilterBar, sFilterLabel) {
|
|
@@ -123,8 +122,8 @@ sap.ui.define([
|
|
|
123
122
|
* If the value is an empty array, the given <code>FilterFields</code> doesn't have a value.
|
|
124
123
|
* </li>
|
|
125
124
|
* </ul>
|
|
126
|
-
* @param {sap.ui.core.Control |
|
|
127
|
-
* @param {
|
|
125
|
+
* @param {sap.ui.core.Control | string} oFilterBar Instance / ID of the <code>FilterBar</code>
|
|
126
|
+
* @param {string[] | Object} vSettings
|
|
128
127
|
* @returns
|
|
129
128
|
*/
|
|
130
129
|
iShouldSeeFilters: function(oFilterBar, vSettings) {
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
* ! ${copyright}
|
|
3
3
|
*/
|
|
4
4
|
sap.ui.define([
|
|
5
|
-
|
|
5
|
+
"sap/ui/core/Core"
|
|
6
|
+
], function(oCore) {
|
|
6
7
|
"use strict";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
var oMDCBundle = oCore.getLibraryResourceBundle("sap.ui.mdc");
|
|
10
|
+
//var oMBundle = oCore.getLibraryResourceBundle("sap.m");
|
|
10
11
|
|
|
11
12
|
var Util = {
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
texts: {
|
|
15
|
+
go: oMDCBundle.getText("filterbar.GO")
|
|
16
|
+
},
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
icons: {
|
|
19
|
+
decline: "sap-icon://decline",
|
|
20
|
+
valueHelp: "sap-icon://value-help"
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
};
|
|
23
24
|
|
|
24
25
|
return Util;
|
|
25
26
|
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
sap.ui.define([
|
|
6
|
+
"sap/ui/test/Opa5",
|
|
7
|
+
"sap/ui/test/matchers/Matcher",
|
|
8
|
+
"sap/ui/test/matchers/Properties",
|
|
9
|
+
"sap/ui/test/matchers/Ancestor",
|
|
10
|
+
"sap/ui/test/matchers/Descendant",
|
|
11
|
+
"sap/ui/test/matchers/PropertyStrictEquals",
|
|
12
|
+
"sap/ui/test/actions/Press",
|
|
13
|
+
"sap/ui/test/actions/EnterText",
|
|
14
|
+
"../p13n/Actions",
|
|
15
|
+
"../p13n/Util",
|
|
16
|
+
"./waitForLink"
|
|
17
|
+
], function(
|
|
18
|
+
Opa5,
|
|
19
|
+
Matcher,
|
|
20
|
+
Properties,
|
|
21
|
+
Ancestor,
|
|
22
|
+
Descendant,
|
|
23
|
+
PropertyStrictEquals,
|
|
24
|
+
Press,
|
|
25
|
+
EnterText,
|
|
26
|
+
p13nActions,
|
|
27
|
+
p13nUtil,
|
|
28
|
+
waitForLink
|
|
29
|
+
) {
|
|
30
|
+
"use strict";
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
iPressTheLink: function(oLinkIdentifier) {
|
|
34
|
+
return waitForLink.call(this, oLinkIdentifier, {
|
|
35
|
+
actions: new Press()
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
iPressLinkOnPopover: function(oLinkIdentifier, sLink) {
|
|
39
|
+
return waitForLink.call(this, oLinkIdentifier, {
|
|
40
|
+
actions: new Press(),
|
|
41
|
+
success: function() {
|
|
42
|
+
this.waitFor({
|
|
43
|
+
controlType: "sap.ui.mdc.link.Panel",
|
|
44
|
+
success: function(aPanels) {
|
|
45
|
+
Opa5.assert.equal(aPanels.length, 1, "mdc.link.Panel found");
|
|
46
|
+
var oPanel = aPanels[0];
|
|
47
|
+
this.waitFor({
|
|
48
|
+
controlType: "sap.m.Link",
|
|
49
|
+
matchers: [
|
|
50
|
+
new Ancestor(oPanel, false),
|
|
51
|
+
new PropertyStrictEquals({
|
|
52
|
+
name: "text",
|
|
53
|
+
value: sLink
|
|
54
|
+
})
|
|
55
|
+
],
|
|
56
|
+
actions: new Press(),
|
|
57
|
+
success: function(aLinks) {
|
|
58
|
+
Opa5.assert.equal(aLinks.length, 1, "link on Panel found and pressed");
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
iCloseThePopover: function() {
|
|
67
|
+
this.waitFor({
|
|
68
|
+
controlType: "sap.ui.mdc.link.Panel",
|
|
69
|
+
success: function(aPanels) {
|
|
70
|
+
Opa5.assert.equal(aPanels.length, 1, "mdc.link.Panel found");
|
|
71
|
+
var oPanel = aPanels[0];
|
|
72
|
+
|
|
73
|
+
this.waitFor({
|
|
74
|
+
controlType: "sap.m.ResponsivePopover",
|
|
75
|
+
matchers: new Descendant(oPanel),
|
|
76
|
+
success: function(aResponsivePopovers) {
|
|
77
|
+
Opa5.assert.equal(aResponsivePopovers.length, 1, "sap.m.ResponsivePopover found");
|
|
78
|
+
aResponsivePopovers[0].close();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
sap.ui.define([
|
|
6
|
+
"sap/ui/test/Opa5",
|
|
7
|
+
"sap/ui/test/matchers/Matcher",
|
|
8
|
+
"sap/ui/test/matchers/Ancestor",
|
|
9
|
+
"sap/ui/test/matchers/Descendant",
|
|
10
|
+
"./waitForLink"
|
|
11
|
+
], function(
|
|
12
|
+
Opa5,
|
|
13
|
+
Matcher,
|
|
14
|
+
Ancestor,
|
|
15
|
+
Descendant,
|
|
16
|
+
waitForLink
|
|
17
|
+
) {
|
|
18
|
+
"use strict";
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
iShouldSeeAPopover: function(oLinkIdentifier) {
|
|
22
|
+
return waitForLink.call(this, oLinkIdentifier, {
|
|
23
|
+
success: function(oLink) {
|
|
24
|
+
this.waitFor({
|
|
25
|
+
controlType: "sap.ui.mdc.Field",
|
|
26
|
+
matchers: new Descendant(oLink, true),
|
|
27
|
+
success: function(aFields) {
|
|
28
|
+
this.waitFor({
|
|
29
|
+
controlType: "sap.m.Popover",
|
|
30
|
+
matchers: new Ancestor(aFields[0].getFieldInfo(), false),
|
|
31
|
+
success: function(aPopovers) {
|
|
32
|
+
Opa5.assert.equal(aPopovers.length, 1, "Popover of mdc.Link found");
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
iShouldSeeLinksOnPopover: function(oLinkIdentifier, aLinks) {
|
|
41
|
+
return waitForLink.call(this, oLinkIdentifier, {
|
|
42
|
+
success: function() {
|
|
43
|
+
this.waitFor({
|
|
44
|
+
controlType: "sap.ui.mdc.link.Panel",
|
|
45
|
+
success: function(aPanels) {
|
|
46
|
+
Opa5.assert.equal(aPanels.length, 1, "mdc.link.Panel found");
|
|
47
|
+
var oPanel = aPanels[0];
|
|
48
|
+
var iIndex = 0;
|
|
49
|
+
var oMatcher = new Matcher();
|
|
50
|
+
oMatcher.isMatching = function(oLink) {
|
|
51
|
+
var bTextMatching = oLink.getText() === aLinks[iIndex];
|
|
52
|
+
iIndex++;
|
|
53
|
+
return bTextMatching;
|
|
54
|
+
};
|
|
55
|
+
if (aLinks.length > 0) {
|
|
56
|
+
this.waitFor({
|
|
57
|
+
controlType: "sap.m.Link",
|
|
58
|
+
matchers: [
|
|
59
|
+
new Ancestor(oPanel, false),
|
|
60
|
+
oMatcher
|
|
61
|
+
],
|
|
62
|
+
success: function(aLinkControls) {
|
|
63
|
+
Opa5.assert.equal(aLinks.length, aLinkControls.length, aLinks.length + " Links on Popover found");
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
var aVisibleItems = oPanel.getItems().filter(function(oItem) {
|
|
68
|
+
return oItem.getVisible();
|
|
69
|
+
});
|
|
70
|
+
Opa5.assert.equal(aVisibleItems.length, 0, aVisibleItems.length + " Links on Popover found");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
});
|