@openui5/sap.ui.mdc 1.103.0 → 1.105.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 +18 -1
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +36 -3
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +3 -3
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +49 -35
- package/src/sap/ui/mdc/ChartDelegate.js +2 -2
- package/src/sap/ui/mdc/ChartRenderer.js +1 -1
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Delegate.js +2 -2
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +3 -3
- package/src/sap/ui/mdc/FilterBarDelegate.js +2 -2
- package/src/sap/ui/mdc/FilterField.js +2 -2
- package/src/sap/ui/mdc/Link.js +76 -15
- package/src/sap/ui/mdc/LinkDelegate.js +83 -78
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +18 -6
- package/src/sap/ui/mdc/TableDelegate.js +27 -11
- package/src/sap/ui/mdc/ValueHelp.js +7 -7
- package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +3 -3
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +70 -0
- package/src/sap/ui/mdc/chart/ChartImplementationContainerRenderer.js +49 -0
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSettings.js +2 -2
- package/src/sap/ui/mdc/chart/ChartToolbar.js +24 -10
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +2 -2
- package/src/sap/ui/mdc/chart/PropertyHelper.js +3 -3
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/Util.js +2 -2
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +15 -4
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +5 -2
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +4 -3
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +2 -2
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +10 -8
- package/src/sap/ui/mdc/enum/PropagationReason.js +2 -2
- package/src/sap/ui/mdc/enum/SelectType.js +2 -2
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +3 -3
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +3 -3
- package/src/sap/ui/mdc/field/ConditionType.js +1 -1
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +3 -3
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +3 -3
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +4 -5
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/field/FieldHelpBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +30 -29
- package/src/sap/ui/mdc/field/FieldInput.js +3 -3
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelp.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +3 -3
- package/src/sap/ui/mdc/field/InParameter.js +3 -3
- package/src/sap/ui/mdc/field/ListFieldHelp.js +3 -3
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +2 -2
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +3 -3
- package/src/sap/ui/mdc/field/OutParameter.js +3 -3
- package/src/sap/ui/mdc/field/TokenDisplay.js +3 -3
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +3 -3
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
- package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
- package/src/sap/ui/mdc/field/content/DateContent.js +10 -2
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +2 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
- package/src/sap/ui/mdc/field/content/LinkContent.js +2 -2
- package/src/sap/ui/mdc/field/content/SearchContent.js +2 -2
- package/src/sap/ui/mdc/field/content/TimeContent.js +2 -2
- package/src/sap/ui/mdc/field/content/UnitContent.js +2 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +17 -4
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +2 -2
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +4 -4
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +2 -2
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +5 -5
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +2 -2
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +2 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +3 -3
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +2 -2
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +3 -3
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +104 -131
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +3 -3
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +3 -3
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +24 -20
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +4 -5
- package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/Util.js +3 -3
- package/src/sap/ui/mdc/flexibility/xConfigFlex.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -2
- package/src/sap/ui/mdc/library.js +7 -2
- package/src/sap/ui/mdc/link/ContactDetails.js +3 -3
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +3 -3
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +3 -3
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +3 -3
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +3 -3
- package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +2 -2
- package/src/sap/ui/mdc/link/Factory.js +3 -3
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +3 -3
- package/src/sap/ui/mdc/link/Log.js +2 -2
- package/src/sap/ui/mdc/link/Panel.js +5 -4
- package/src/sap/ui/mdc/link/PanelItem.js +3 -3
- package/src/sap/ui/mdc/link/PanelRenderer.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +3 -3
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +3 -3
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +3 -3
- package/src/sap/ui/mdc/messagebundle.properties +9 -3
- package/src/sap/ui/mdc/messagebundle_ar.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_bg.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +8 -5
- package/src/sap/ui/mdc/messagebundle_cy.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_fr.properties +9 -6
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_hr.properties +8 -5
- package/src/sap/ui/mdc/messagebundle_hu.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_id.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +49 -46
- package/src/sap/ui/mdc/messagebundle_iw.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +8 -5
- package/src/sap/ui/mdc/messagebundle_lt.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_no.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_pl.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_pt.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_th.properties +14 -11
- package/src/sap/ui/mdc/messagebundle_tr.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_vi.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +6 -3
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +5 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +3 -3
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +63 -39
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +61 -229
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +3 -3
- package/src/sap/ui/mdc/p13n/Engine.js +3 -3
- package/src/sap/ui/mdc/p13n/FlexUtil.js +4 -4
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +81 -6
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +26 -4
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +3 -3
- package/src/sap/ui/mdc/p13n/StateUtil.js +4 -4
- package/src/sap/ui/mdc/p13n/UIManager.js +3 -3
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +3 -3
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +3 -3
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +31 -11
- package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +3 -9
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +39 -12
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +3 -3
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +4 -5
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +4 -3
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +2 -2
- package/src/sap/ui/mdc/table/Column.js +29 -3
- package/src/sap/ui/mdc/table/CreationRow.js +3 -3
- package/src/sap/ui/mdc/table/GridTableType.js +7 -2
- package/src/sap/ui/mdc/table/PropertyHelper.js +29 -34
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +4 -3
- package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableSettings.js +2 -2
- package/src/sap/ui/mdc/table/TableTypeBase.js +5 -2
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +4 -9
- package/src/sap/ui/mdc/table/menu/Item.js +3 -3
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
- package/src/sap/ui/mdc/themes/base/Chart.less +28 -0
- package/src/sap/ui/mdc/themes/base/InfoPanel.less +0 -1
- package/src/sap/ui/mdc/util/Common.js +2 -2
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
- package/src/sap/ui/mdc/util/IdentifierUtil.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +59 -55
- package/src/sap/ui/mdc/valuehelp/Dialog.js +5 -3
- package/src/sap/ui/mdc/valuehelp/Popover.js +36 -8
- package/src/sap/ui/mdc/valuehelp/base/Container.js +7 -7
- package/src/sap/ui/mdc/valuehelp/base/Content.js +7 -7
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +3 -3
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +3 -3
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -3
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +3 -3
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +3 -3
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +3 -3
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +27 -5
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +4 -4
- package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
- package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +482 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +379 -267
- package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +41 -0
- package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
- package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
- package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
- package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +100 -34
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +26 -16
- package/test/sap/ui/mdc/testutils/opa/p13n/Assertions.js +293 -2
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +4 -3
- package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
- package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
- package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +256 -0
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +179 -12
- package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +3 -3
- package/ui5.yaml +4 -1
- package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
- package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
*/
|
|
@@ -19,81 +19,86 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate'], function(BaseDelegate) {
|
|
|
19
19
|
* @ui5-restricted sap.ui.mdc, sap.fe
|
|
20
20
|
* @MDC_PUBLIC_CANDIDATE
|
|
21
21
|
*/
|
|
22
|
-
var LinkDelegate = Object.assign({}, BaseDelegate
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
22
|
+
var LinkDelegate = Object.assign({}, BaseDelegate);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves and returns the relevant {@link sap.ui.mdc.link.LinkItem} for the <code>Link</code> control.
|
|
26
|
+
* @protected
|
|
27
|
+
* @ui5-restricted sap.ui.mdc
|
|
28
|
+
* @param {Object} oPayload Payload of the <code>Link</code> control given by the application
|
|
29
|
+
* @param {Object} oBindingContext Binding context of the <code>Link</code> control
|
|
30
|
+
* @param {Object} oInfoLog InfoLog of the <code>Link</code> control
|
|
31
|
+
* @returns {Promise} Once resolved, <code>null</code> or an array of {@link sap.ui.mdc.link.LinkItem} is returned
|
|
32
|
+
* If <code>null</code> is returned, the link won't cache <code>LinkItem</code>.
|
|
33
|
+
*/
|
|
34
|
+
LinkDelegate.fetchLinkItems = function(oPayload, oBindingContext, oInfoLog) {
|
|
35
|
+
return Promise.resolve(null);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @typedef {object} sap.ui.mdc.LinkDelegate.LinkType
|
|
40
|
+
* @property {number} type 0 (Text) | 1 (Direct Link) | 2 (Popup)
|
|
41
|
+
* If <code>oLinkType.type</code> is 0, the link is rendered as a text.
|
|
42
|
+
* If <code>oLinkType.type</code> is 1, the link is rendered as a link. When pressed the link triggers a direct navigation instead.
|
|
43
|
+
* If <code>oLinkType.type</code> is 2, the link is rendered as a link and opens a popover (default).
|
|
44
|
+
* @property {sap.ui.mdc.link.LinkItem} directLink Instance of {@link sap.ui.mdc.link.LinkItem} which is used for direct navigation
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Calculates and returns the type of link that is displayed.
|
|
48
|
+
* @protected
|
|
49
|
+
* @ui5-restricted sap.ui.mdc
|
|
50
|
+
* @param {Object} oPayload Payload of the <code>Link</code> given by the application
|
|
51
|
+
* @returns {Promise} Once resolved, an object containing an initial {@link sap.ui.mdc.LinkDelegate.LinkType} and an optional <code>Promise</code> are returned
|
|
52
|
+
* The optional <code>Promise</code> also returns a {@link sap.ui.mdc.LinkDelegate.LinkType} object.
|
|
53
|
+
* Once the optional <code>Promise</code> has been resolved, the returned {@link sap.ui.mdc.LinkDelegate.LinkType} overwrites the <code>initialType</code>.
|
|
54
|
+
*/
|
|
55
|
+
LinkDelegate.fetchLinkType = function(oPayload, oLink) {
|
|
56
|
+
return Promise.resolve({
|
|
57
|
+
initialType: {
|
|
58
|
+
type: 2,
|
|
59
|
+
directLink: undefined
|
|
60
|
+
},
|
|
61
|
+
runtimeType: null
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves and returns the relevant <code>additionalContent</code> for the <code>Link</code> control as an array.
|
|
67
|
+
* @protected
|
|
68
|
+
* @ui5-restricted sap.ui.mdc
|
|
69
|
+
* @param {Object} oPayload Payload of the <code>Link</code> control given by the application
|
|
70
|
+
* @param {Object} oLink Instance of the <code>Link</code> control
|
|
71
|
+
* @returns {Promise} Once resolved, an array of {@link sap.ui.core.Control} is returned
|
|
72
|
+
*/
|
|
73
|
+
LinkDelegate.fetchAdditionalContent = function(oPayload, oLink) {
|
|
74
|
+
return Promise.resolve([]);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Enables the modification of the {@link sap.ui.mdc.link.LinkItem} instances before the popover opens. This enables additional parameters
|
|
79
|
+
* to be added to the link.
|
|
80
|
+
* @protected
|
|
81
|
+
* @ui5-restricted sap.ui.mdc
|
|
82
|
+
* @param {Object} oPayload Payload of the <code>Link</code> control given by the application
|
|
83
|
+
* @param {Object} oBindingContext Binding context of the <code>Link</code> control
|
|
84
|
+
* @param {sap.ui.mdc.link.LinkItem} aLinkItems The {@link sap.ui.mdc.link.LinkItem} instances of the link that can be modified
|
|
85
|
+
* @returns {Promise} Once resolved, an array of link items is returned
|
|
86
|
+
*/
|
|
87
|
+
LinkDelegate.modifyLinkItems = function(oPayload, oBindingContext, aLinkItems) {
|
|
88
|
+
return Promise.resolve(aLinkItems);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Allows for interception before the actual navigation takes place.
|
|
93
|
+
* @protected
|
|
94
|
+
* @ui5-restricted sap.ui.mdc
|
|
95
|
+
* @param {Object} oPayload Payload of the <code>Link</code> control given by the application
|
|
96
|
+
* @param {Object} oEvent The <code>pressLink</code> event which is fired by the <code>Link</code> control
|
|
97
|
+
* @returns {Promise} Once resolved, it returns a Boolean value which determines whether the navigation takes place
|
|
98
|
+
*/
|
|
99
|
+
LinkDelegate.beforeNavigationCallback = function(oPayload, oEvent) {
|
|
100
|
+
return Promise.resolve(true);
|
|
101
|
+
};
|
|
102
|
+
|
|
98
103
|
return LinkDelegate;
|
|
99
104
|
});
|
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
*/
|
|
@@ -1104,7 +1104,13 @@ sap.ui.define([
|
|
|
1104
1104
|
});
|
|
1105
1105
|
var oResourceBundle = Core.getLibraryResourceBundle("sap.ui.mdc");
|
|
1106
1106
|
var oListFormat = ListFormat.getInstance();
|
|
1107
|
-
|
|
1107
|
+
|
|
1108
|
+
var sFilterText;
|
|
1109
|
+
if (aPropertyLabels.length > 1) {
|
|
1110
|
+
sFilterText = oResourceBundle.getText("table.MULTIPLE_FILTERS_ACTIVE", [aPropertyLabels.length, oListFormat.format(aPropertyLabels)]);
|
|
1111
|
+
} else {
|
|
1112
|
+
sFilterText = oResourceBundle.getText("table.ONE_FILTER_ACTIVE", aPropertyLabels[0]);
|
|
1113
|
+
}
|
|
1108
1114
|
|
|
1109
1115
|
if (!oFilterInfoBar.getVisible()) {
|
|
1110
1116
|
oFilterInfoBar.setVisible(true);
|
|
@@ -2317,9 +2323,11 @@ sap.ui.define([
|
|
|
2317
2323
|
}
|
|
2318
2324
|
|
|
2319
2325
|
Table.prototype._onItemPress = function(oEvent) {
|
|
2320
|
-
this.
|
|
2321
|
-
|
|
2322
|
-
|
|
2326
|
+
if (this.getSelectionMode() !== library.SelectionMode.SingleMaster) {
|
|
2327
|
+
this.fireRowPress({
|
|
2328
|
+
bindingContext: oEvent.getParameter("listItem").getBindingContext()
|
|
2329
|
+
});
|
|
2330
|
+
}
|
|
2323
2331
|
ResponsiveTableType._onRowActionPress.apply(this, [oEvent]);
|
|
2324
2332
|
};
|
|
2325
2333
|
|
|
@@ -2355,6 +2363,10 @@ sap.ui.define([
|
|
|
2355
2363
|
|
|
2356
2364
|
// GridTable
|
|
2357
2365
|
Table.prototype._onCellClick = function(oEvent) {
|
|
2366
|
+
if (this.getSelectionMode() === library.SelectionMode.SingleMaster) {
|
|
2367
|
+
return;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2358
2370
|
this.fireRowPress({
|
|
2359
2371
|
bindingContext: oEvent.getParameter("rowBindingContext")
|
|
2360
2372
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
*/
|
|
@@ -61,15 +61,11 @@ sap.ui.define([
|
|
|
61
61
|
var oGroupedProperty = oTable._getGroupedProperties()[0];
|
|
62
62
|
|
|
63
63
|
if (oGroupedProperty) {
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
oBindingInfo.sorter.push(new Sorter(sPath, bDescending, function(oContext) {
|
|
71
|
-
return this.formatGroupHeader(oTable, oContext, oGroupedProperty.name);
|
|
72
|
-
}.bind(this)));
|
|
64
|
+
var oSorter = this.getGroupSorter(oTable, oGroupedProperty.name);
|
|
65
|
+
|
|
66
|
+
if (oSorter) {
|
|
67
|
+
oBindingInfo.sorter.push(oSorter);
|
|
68
|
+
}
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
71
|
|
|
@@ -82,6 +78,26 @@ sap.ui.define([
|
|
|
82
78
|
);
|
|
83
79
|
};
|
|
84
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new sorter for the grouping functionality.
|
|
83
|
+
*
|
|
84
|
+
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
85
|
+
* @param {string} sPropertyName Property to group
|
|
86
|
+
* @returns {sap.ui.model.Sorter} New sorter
|
|
87
|
+
* @protected
|
|
88
|
+
*/
|
|
89
|
+
TableDelegate.getGroupSorter = function(oTable, sPropertyName){
|
|
90
|
+
var oSortedProperty = oTable._getSortedProperties().find(function(oProperty) {
|
|
91
|
+
return oProperty.name === sPropertyName;
|
|
92
|
+
});
|
|
93
|
+
var sPath = oTable.getPropertyHelper().getProperty(sPropertyName).path;
|
|
94
|
+
var bDescending = oSortedProperty ? oSortedProperty.descending : false;
|
|
95
|
+
|
|
96
|
+
return new Sorter(sPath, bDescending, function(oContext) {
|
|
97
|
+
return this.formatGroupHeader(oTable, oContext, sPropertyName);
|
|
98
|
+
}.bind(this));
|
|
99
|
+
};
|
|
100
|
+
|
|
85
101
|
/**
|
|
86
102
|
* Updates the row binding of the table.
|
|
87
103
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
*/
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* @class Element for the <code>FieldHelp</code> association in the {@link sap.ui.mdc.field.FieldBase FieldBase} controls.
|
|
84
84
|
* @extends sap.ui.mdc.Element
|
|
85
85
|
* @implements sap.ui.core.PopupInterface
|
|
86
|
-
* @version 1.
|
|
86
|
+
* @version 1.105.0
|
|
87
87
|
* @constructor
|
|
88
88
|
* @abstract
|
|
89
89
|
* @private
|
|
@@ -558,7 +558,7 @@ sap.ui.define([
|
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
560
|
* Calls initialization of the <code>ValueHelp</code> element before the value help is really opened.
|
|
561
|
-
* This is called
|
|
561
|
+
* This is called during type-ahead on first letter before the value help is opened with a delay. This way the
|
|
562
562
|
* content can be determined in the delegate coding early.
|
|
563
563
|
*
|
|
564
564
|
* <b>Note:</b> This function must only be called by the control the <code>ValueHelp</code> element
|
|
@@ -716,9 +716,9 @@ sap.ui.define([
|
|
|
716
716
|
* @param {any} oConfig.value Value as entered by user
|
|
717
717
|
* @param {any} [oConfig.parsedValue] Value parsed by type to fit the data type of the key
|
|
718
718
|
* @param {object} [oConfig.context] Contextual information provided by condition payload or inParameters/outParameters. This is only filled if the description needs to be determined for an existing condition.
|
|
719
|
-
* @param {object} [oConfig.context.inParameter]
|
|
720
|
-
* @param {object} [oConfig.context.ouParameter]
|
|
721
|
-
* @param {object} [oConfig.context.payload]
|
|
719
|
+
* @param {object} [oConfig.context.inParameter] In parameters of the current condition
|
|
720
|
+
* @param {object} [oConfig.context.ouParameter] Out parameters of the current condition
|
|
721
|
+
* @param {object} [oConfig.context.payload] Payload of the current condition
|
|
722
722
|
* @param {sap.ui.model.Context} [oConfig.bindingContext] <code>BindingContext</code> of the checked field. Inside a table the <code>ValueHelp</code> element might be connected to a different row.
|
|
723
723
|
* @param {boolean} [oConfig.checkKeyFirst] If set, the value help checks first if the value fits a key // TODO: not longer needed?
|
|
724
724
|
* @param {boolean} oConfig.checkKey If set, the value help checks only if there is an item with the given key. This is set to <code>false</code> if the value cannot be a valid key because of type validation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
*/
|
|
@@ -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.105.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|
|
27
27
|
* @since 1.58
|
|
@@ -8,7 +8,6 @@ sap.ui.define([], function() {
|
|
|
8
8
|
"use strict";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Form renderer.
|
|
12
11
|
* @namespace
|
|
13
12
|
*/
|
|
14
13
|
var ActionToolbarActionRenderer = {
|
|
@@ -22,7 +21,7 @@ sap.ui.define([], function() {
|
|
|
22
21
|
* @param {sap.ui.mdc.actiontoolbar.ActionToolbarAction} oActionToolbarAction an object representation of the control that should be rendered
|
|
23
22
|
*/
|
|
24
23
|
ActionToolbarActionRenderer.render = function(rm, oActionToolbarAction) {
|
|
25
|
-
var mAriaProps = { role: "
|
|
24
|
+
var mAriaProps = { role: "action" };
|
|
26
25
|
|
|
27
26
|
rm.openStart("div", oActionToolbarAction);
|
|
28
27
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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/core/Control",
|
|
9
|
+
"./ChartImplementationContainerRenderer"
|
|
10
|
+
],
|
|
11
|
+
function (Control, Renderer
|
|
12
|
+
) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Constructor for a new Chart.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} [sId] ID for the new control, generated automatically if no id is given
|
|
19
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
20
|
+
* @class The Chart control creates a chart based on metadata and the configuration specified.
|
|
21
|
+
* @extends sap.ui.core.Control
|
|
22
|
+
* @author SAP SE
|
|
23
|
+
* @version 1.105.0
|
|
24
|
+
* @constructor
|
|
25
|
+
* @experimental As of version 1.105
|
|
26
|
+
* @private
|
|
27
|
+
* @ui5-restricted sap.fe
|
|
28
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
29
|
+
* @since 1.105
|
|
30
|
+
* @alias sap.ui.mdc.chart.ChartImplementationContainer
|
|
31
|
+
*/
|
|
32
|
+
var Chart = Control.extend("sap.ui.mdc.chart.ChartImplementationContainer", /** @lends sap.ui.mdc.chart.ChartImplementationContainer.prototype */ {
|
|
33
|
+
metadata: {
|
|
34
|
+
library: "sap.ui.mdc",
|
|
35
|
+
interfaces: [
|
|
36
|
+
],
|
|
37
|
+
properties: {
|
|
38
|
+
},
|
|
39
|
+
aggregations: {
|
|
40
|
+
/**
|
|
41
|
+
* This property describes the measures and dimensions visible in the chart.
|
|
42
|
+
* Changes in the personalization are also reflected here.
|
|
43
|
+
*/
|
|
44
|
+
content: {
|
|
45
|
+
type: "sap.ui.core.Control",
|
|
46
|
+
multiple: false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
associations: {
|
|
50
|
+
},
|
|
51
|
+
events: {
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
renderer: Renderer
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Initialises the MDC Chart
|
|
60
|
+
*
|
|
61
|
+
* @experimental
|
|
62
|
+
* @private
|
|
63
|
+
* @ui5-restricted sap.ui.mdc
|
|
64
|
+
*/
|
|
65
|
+
Chart.prototype.init = function () {
|
|
66
|
+
//TODO;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return Chart;
|
|
70
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
function() {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Chart renderer.
|
|
13
|
+
* @namespace
|
|
14
|
+
*/
|
|
15
|
+
var ChartRenderer = {
|
|
16
|
+
apiVersion: 2
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* CSS class to be applied to the HTML root element of the control.
|
|
21
|
+
*
|
|
22
|
+
* @readonly
|
|
23
|
+
* @const {string}
|
|
24
|
+
*/
|
|
25
|
+
ChartRenderer.CSS_CLASS = "sapUiMDCChart";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
29
|
+
*
|
|
30
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer
|
|
31
|
+
* @param {sap.ui.mdc.Chart} oMDCChart An object representation of the control that should be rendered
|
|
32
|
+
*/
|
|
33
|
+
ChartRenderer.render = function(oRm, oChartImplContainer) {
|
|
34
|
+
oRm.openStart("div", oChartImplContainer);
|
|
35
|
+
//TODO: Clarify why writeControlData doesn't work on rerender
|
|
36
|
+
oRm.attr("id", oChartImplContainer.getId());
|
|
37
|
+
//oRm.class(ChartRenderer.CSS_CLASS);
|
|
38
|
+
//oRm.class("sapUiFixFlex");
|
|
39
|
+
//oRm.style("overflow", "hidden");
|
|
40
|
+
oRm.style("height", "100%");
|
|
41
|
+
oRm.style("width", "100%");
|
|
42
|
+
oRm.style("min-height", "200px");
|
|
43
|
+
oRm.openEnd();
|
|
44
|
+
oRm.renderControl(oChartImplContainer.getContent());
|
|
45
|
+
oRm.close("div");
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return ChartRenderer;
|
|
49
|
+
}, true);
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
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.105.0
|
|
37
37
|
* @constructor
|
|
38
38
|
* @experimental As of version ...
|
|
39
39
|
* @private
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @class The ChartToolbar control is a sap.m.OverflowToolbar based on metadata and the configuration specified.
|
|
43
43
|
* @extends sap.ui.mdc.ActionToolbar
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.105.0
|
|
46
46
|
* @constructor
|
|
47
47
|
* @experimental As of version 1.88
|
|
48
48
|
* @private
|
|
@@ -88,10 +88,11 @@ sap.ui.define([
|
|
|
88
88
|
this._chartInternalButtonsToEnable = [];
|
|
89
89
|
|
|
90
90
|
/**add beginning**/
|
|
91
|
-
|
|
92
|
-
text: oMDCChart.getHeader()
|
|
91
|
+
this._oTitle = new Title(oMDCChart.getId() + "-title", {
|
|
92
|
+
text: oMDCChart.getHeader(),
|
|
93
|
+
level: oMDCChart.getHeaderLevel()
|
|
93
94
|
});
|
|
94
|
-
this.addBegin(
|
|
95
|
+
this.addBegin(this._oTitle);
|
|
95
96
|
|
|
96
97
|
/** variant management */
|
|
97
98
|
if (oMDCChart.getVariant()){
|
|
@@ -99,12 +100,14 @@ sap.ui.define([
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
/**add end **/
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
|
|
103
|
+
if (oMDCChart.getShowSelectionDetails()){
|
|
104
|
+
this._oChartSelectionDetails = new ChartSelectionDetails(oMDCChart.getId() + "-selectionDetails", {});
|
|
105
|
+
this._oChartSelectionDetails.attachBeforeOpen(function (oEvent) {
|
|
106
|
+
this._updateSelectionDetailsActions(oMDCChart);
|
|
107
|
+
}.bind(this));
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
this.addEnd(this._oChartSelectionDetails);
|
|
110
|
+
}
|
|
108
111
|
|
|
109
112
|
//Check p13n mode property on the chart and enable only desired buttons
|
|
110
113
|
var aP13nMode = oMDCChart.getP13nMode() || [];
|
|
@@ -264,7 +267,7 @@ sap.ui.define([
|
|
|
264
267
|
}
|
|
265
268
|
|
|
266
269
|
var oSelectionHandler = oMDCChart.getSelectionHandler();
|
|
267
|
-
if (oSelectionHandler) {
|
|
270
|
+
if (oSelectionHandler && oMDCChart.getShowSelectionDetails()) {
|
|
268
271
|
this._oChartSelectionDetails.attachSelectionHandler(oSelectionHandler.eventId, oSelectionHandler.listener);
|
|
269
272
|
}
|
|
270
273
|
};
|
|
@@ -293,6 +296,12 @@ sap.ui.define([
|
|
|
293
296
|
};
|
|
294
297
|
|
|
295
298
|
ChartToolbar.prototype._updateSelectionDetailsActions = function (oMDCChart) {
|
|
299
|
+
|
|
300
|
+
//In case details button is disabled
|
|
301
|
+
if (!oMDCChart.getShowSelectionDetails()) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
|
|
296
305
|
var oSelectionDetailsActions = oMDCChart.getSelectionDetailsActions(), oClone;
|
|
297
306
|
|
|
298
307
|
if (oSelectionDetailsActions) {
|
|
@@ -325,5 +334,10 @@ sap.ui.define([
|
|
|
325
334
|
}
|
|
326
335
|
|
|
327
336
|
};
|
|
337
|
+
|
|
338
|
+
ChartToolbar.prototype._setHeaderLevel = function(sHeaderLevel) {
|
|
339
|
+
this._oTitle.setLevel(sHeaderLevel);
|
|
340
|
+
};
|
|
341
|
+
|
|
328
342
|
return ChartToolbar;
|
|
329
343
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
*/
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @extends sap.ui.mdc.util.PropertyHelper
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.105.0
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @experimental
|