@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
|
*/
|
|
@@ -11,20 +11,19 @@ sap.ui.define([
|
|
|
11
11
|
"sap/m/library",
|
|
12
12
|
"sap/m/Text",
|
|
13
13
|
"sap/ui/mdc/library",
|
|
14
|
-
"sap/ui/mdc/odata/v4/ODataMetaModelUtil",
|
|
15
14
|
"sap/base/Log",
|
|
16
15
|
'sap/ui/mdc/util/FilterUtil',
|
|
17
16
|
'sap/ui/mdc/odata/v4/util/DelegateUtil',
|
|
18
17
|
"sap/ui/mdc/chart/ChartTypeButton",
|
|
19
18
|
"sap/ui/mdc/chart/Item",
|
|
20
19
|
"sap/ui/model/Sorter",
|
|
21
|
-
"sap/
|
|
20
|
+
"sap/ui/mdc/chart/ChartImplementationContainer",
|
|
22
21
|
"sap/ui/base/ManagedObjectObserver",
|
|
23
22
|
"sap/ui/core/ResizeHandler",
|
|
24
23
|
"sap/ui/mdc/p13n/panels/ChartItemPanel",
|
|
25
24
|
"sap/m/MessageStrip",
|
|
26
25
|
"../TypeUtil",
|
|
27
|
-
"
|
|
26
|
+
"sap/ui/mdc/FilterBarDelegate",
|
|
28
27
|
"sap/ui/model/Filter",
|
|
29
28
|
"sap/ui/mdc/odata/v4/ChartPropertyHelper",
|
|
30
29
|
"sap/ui/thirdparty/jquery"
|
|
@@ -35,14 +34,13 @@ sap.ui.define([
|
|
|
35
34
|
mobileLibrary,
|
|
36
35
|
Text,
|
|
37
36
|
MDCLib,
|
|
38
|
-
ODataMetaModelUtil,
|
|
39
37
|
Log,
|
|
40
38
|
FilterUtil,
|
|
41
39
|
DelegateUtil,
|
|
42
40
|
ChartTypeButton,
|
|
43
41
|
MDCChartItem,
|
|
44
42
|
Sorter,
|
|
45
|
-
|
|
43
|
+
ChartImplementationContainer,
|
|
46
44
|
ManagedObjectObserver,
|
|
47
45
|
ResizeHandler,
|
|
48
46
|
ChartItemPanel,
|
|
@@ -66,9 +64,6 @@ sap.ui.define([
|
|
|
66
64
|
*/
|
|
67
65
|
var ChartDelegate = Object.assign({}, V4ChartDelegate);
|
|
68
66
|
|
|
69
|
-
var FlexJustifyContent = mobileLibrary.FlexJustifyContent;
|
|
70
|
-
var FlexAlignItems = mobileLibrary.FlexAlignItems;
|
|
71
|
-
|
|
72
67
|
var mStateMap = new window.WeakMap();
|
|
73
68
|
//var ChartLibrary;
|
|
74
69
|
var Chart;
|
|
@@ -85,7 +80,9 @@ sap.ui.define([
|
|
|
85
80
|
return mStateMap.get(oMDCChart);
|
|
86
81
|
}
|
|
87
82
|
|
|
88
|
-
|
|
83
|
+
if (oMDCChart){
|
|
84
|
+
Log.info("Couldn't get state for " + oMDCChart.getId());
|
|
85
|
+
}
|
|
89
86
|
};
|
|
90
87
|
|
|
91
88
|
ChartDelegate._setState = function(oMDCChart, oState) {
|
|
@@ -140,13 +137,15 @@ sap.ui.define([
|
|
|
140
137
|
|
|
141
138
|
ChartDelegate._deleteState = function(oMDCChart) {
|
|
142
139
|
|
|
143
|
-
if (this._getState(oMDCChart)
|
|
144
|
-
this._getState(oMDCChart).vizTooltip
|
|
145
|
-
|
|
140
|
+
if (this._getState(oMDCChart)){
|
|
141
|
+
if (this._getState(oMDCChart).vizTooltip) {
|
|
142
|
+
this._getState(oMDCChart).vizTooltip.destroy();
|
|
143
|
+
}
|
|
146
144
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
if (this._getState(oMDCChart).observer) {
|
|
146
|
+
this._getState(oMDCChart).observer.disconnect();
|
|
147
|
+
this._getState(oMDCChart).observer = null;
|
|
148
|
+
}
|
|
150
149
|
}
|
|
151
150
|
|
|
152
151
|
return mStateMap.delete(oMDCChart);
|
|
@@ -159,7 +158,9 @@ sap.ui.define([
|
|
|
159
158
|
return mStateMap.get(oMDCChart).innerChart;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
|
-
|
|
161
|
+
if (oMDCChart){
|
|
162
|
+
Log.info("Couldn't get state for " + oMDCChart.getId());
|
|
163
|
+
}
|
|
163
164
|
|
|
164
165
|
return undefined;
|
|
165
166
|
|
|
@@ -178,7 +179,9 @@ sap.ui.define([
|
|
|
178
179
|
return mStateMap.get(oMDCChart).innerStructure;
|
|
179
180
|
}
|
|
180
181
|
|
|
181
|
-
|
|
182
|
+
if (oMDCChart){
|
|
183
|
+
Log.info("Couldn't get state for " + oMDCChart.getId());
|
|
184
|
+
}
|
|
182
185
|
|
|
183
186
|
return undefined;
|
|
184
187
|
};
|
|
@@ -196,7 +199,9 @@ sap.ui.define([
|
|
|
196
199
|
return mStateMap.get(oMDCChart).bindingInfo;
|
|
197
200
|
}
|
|
198
201
|
|
|
199
|
-
|
|
202
|
+
if (oMDCChart){
|
|
203
|
+
Log.info("Couldn't get state for " + oMDCChart.getId());
|
|
204
|
+
}
|
|
200
205
|
|
|
201
206
|
return undefined;
|
|
202
207
|
};
|
|
@@ -254,7 +259,11 @@ sap.ui.define([
|
|
|
254
259
|
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
255
260
|
*/
|
|
256
261
|
ChartDelegate.zoomIn = function (oMDCChart, iValue) {
|
|
257
|
-
this._getChart(oMDCChart)
|
|
262
|
+
var oInnerChart = this._getChart(oMDCChart);
|
|
263
|
+
|
|
264
|
+
if (oInnerChart) {
|
|
265
|
+
oInnerChart.zoom({direction: "in"});
|
|
266
|
+
}
|
|
258
267
|
};
|
|
259
268
|
|
|
260
269
|
/**
|
|
@@ -267,7 +276,11 @@ sap.ui.define([
|
|
|
267
276
|
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
268
277
|
*/
|
|
269
278
|
ChartDelegate.zoomOut = function (oMDCChart, iValue) {
|
|
270
|
-
this._getChart(oMDCChart)
|
|
279
|
+
var oInnerChart = this._getChart(oMDCChart);
|
|
280
|
+
|
|
281
|
+
if (oInnerChart) {
|
|
282
|
+
oInnerChart.zoom({direction: "out"});
|
|
283
|
+
}
|
|
271
284
|
};
|
|
272
285
|
|
|
273
286
|
|
|
@@ -683,18 +696,16 @@ sap.ui.define([
|
|
|
683
696
|
|
|
684
697
|
this._loadChart().then(function (aModules) {
|
|
685
698
|
|
|
686
|
-
|
|
699
|
+
this._setInnerStructure(oMDCChart, new ChartImplementationContainer(oMDCChart.getId() + "--implementationContainer", {}));
|
|
687
700
|
|
|
688
|
-
this._setInnerStructure(oMDCChart, new VBox({
|
|
689
|
-
justifyContent: "Center",
|
|
690
|
-
alignItems: "Center",
|
|
691
|
-
height: sVBoxHeight,
|
|
692
|
-
width: "100%"
|
|
693
|
-
}));
|
|
694
701
|
var oText = new Text();
|
|
695
702
|
oText.setText(oMDCChart.getNoDataText());
|
|
696
703
|
|
|
697
|
-
|
|
704
|
+
oMDCChart.addStyleClass("sapUiMDCChartTempTextOuter");
|
|
705
|
+
this._getInnerStructure(oMDCChart).addStyleClass("sapUiMDCChartTempText");
|
|
706
|
+
this._getInnerStructure(oMDCChart).setContent(oText);
|
|
707
|
+
|
|
708
|
+
//oMDCChart.addStyleClass("sapUiMDCChartGrid");
|
|
698
709
|
|
|
699
710
|
this._setUpChartObserver(oMDCChart);
|
|
700
711
|
|
|
@@ -866,16 +877,17 @@ sap.ui.define([
|
|
|
866
877
|
return this._addCriticality(oItem).then(function(){
|
|
867
878
|
this._getState(oItem.getParent()).aInSettings.push(oItem.getName());
|
|
868
879
|
|
|
869
|
-
if (oItem.getType === "aggregatable") {
|
|
880
|
+
if (oItem.getType() === "aggregatable") {
|
|
870
881
|
|
|
871
882
|
//Uses excact MDC CHart Item name
|
|
872
883
|
this._getPropertyInfosByName(oItem.getName(), oItem.getParent()).then(function (oPropertyInfo) {
|
|
873
|
-
|
|
884
|
+
this._getAdditionalColoringMeasuresForItem(oPropertyInfo).forEach(function(oMeasure){
|
|
874
885
|
|
|
875
|
-
if (this._getState(oItem.getParent()).aColMeasures.
|
|
876
|
-
this._getState(oItem.getParent()).aColMeasures.push(
|
|
886
|
+
if (this._getState(oItem.getParent()).aColMeasures && this._getState(oItem.getParent()).aColMeasures.indexOf(oMeasure) == -1) {
|
|
887
|
+
this._getState(oItem.getParent()).aColMeasures.push(oMeasure);
|
|
877
888
|
}
|
|
878
|
-
}
|
|
889
|
+
}.bind(this));
|
|
890
|
+
|
|
879
891
|
}.bind(this));
|
|
880
892
|
}
|
|
881
893
|
}.bind(this));
|
|
@@ -1253,6 +1265,7 @@ sap.ui.define([
|
|
|
1253
1265
|
this._setChart(oMDCChart, new Chart({
|
|
1254
1266
|
id: oMDCChart.getId() + "--innerChart",
|
|
1255
1267
|
chartType: "column",
|
|
1268
|
+
height: "100%",
|
|
1256
1269
|
width: "100%",
|
|
1257
1270
|
isAnalytical: true//,
|
|
1258
1271
|
}));
|
|
@@ -1264,14 +1277,9 @@ sap.ui.define([
|
|
|
1264
1277
|
//Initialize empty; will get filled later on
|
|
1265
1278
|
this._getState(oMDCChart).inResultDimensions = [];
|
|
1266
1279
|
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
//Set height correctly again if chart changes
|
|
1272
|
-
ResizeHandler.register(oMDCChart, function(){
|
|
1273
|
-
this.adjustChartHeight(oMDCChart);
|
|
1274
|
-
}.bind(this));
|
|
1280
|
+
this._getInnerStructure(oMDCChart).removeStyleClass("sapUiMDCChartTempText");
|
|
1281
|
+
oMDCChart.removeStyleClass("sapUiMDCChartTempTextOuter");
|
|
1282
|
+
oMDCChart.addStyleClass("sapUiMDCChartGrid");
|
|
1275
1283
|
|
|
1276
1284
|
var oState = this._getState(oMDCChart);
|
|
1277
1285
|
oState.aColMeasures = [];
|
|
@@ -1289,10 +1297,10 @@ sap.ui.define([
|
|
|
1289
1297
|
}
|
|
1290
1298
|
}.bind(this));
|
|
1291
1299
|
|
|
1292
|
-
this._getInnerStructure(oMDCChart).
|
|
1293
|
-
this._getInnerStructure(oMDCChart).setJustifyContent(FlexJustifyContent.Start);
|
|
1294
|
-
this._getInnerStructure(oMDCChart).setAlignItems(FlexAlignItems.Stretch);
|
|
1295
|
-
this._getInnerStructure(oMDCChart).
|
|
1300
|
+
//this._getInnerStructure(oMDCChart).removeAllContent();
|
|
1301
|
+
//this._getInnerStructure(oMDCChart).setJustifyContent(FlexJustifyContent.Start);
|
|
1302
|
+
//this._getInnerStructure(oMDCChart).setAlignItems(FlexAlignItems.Stretch);
|
|
1303
|
+
this._getInnerStructure(oMDCChart).setContent(this._getChart(oMDCChart));
|
|
1296
1304
|
|
|
1297
1305
|
oState.dataLoadedCallback = fnCallbackDataLoaded;
|
|
1298
1306
|
|
|
@@ -1331,61 +1339,20 @@ sap.ui.define([
|
|
|
1331
1339
|
};
|
|
1332
1340
|
|
|
1333
1341
|
/**
|
|
1334
|
-
*
|
|
1335
|
-
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
1336
|
-
* @returns {string} New height for the chart
|
|
1337
|
-
* @experimental
|
|
1338
|
-
* @private
|
|
1339
|
-
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
1340
|
-
*/
|
|
1341
|
-
ChartDelegate._calculateInnerChartHeight = function(oMDCChart) {
|
|
1342
|
-
var iTotalHeight = jQuery(oMDCChart.getDomRef()).height();
|
|
1343
|
-
var iToolbarHeight = 0;
|
|
1344
|
-
var oToolbar = oMDCChart.getAggregation("_toolbar");
|
|
1345
|
-
var iBreadcrumbsHeight = 0;
|
|
1346
|
-
var oBreadcrumbs = oMDCChart.getAggregation("_breadcrumbs");
|
|
1347
|
-
|
|
1348
|
-
if (oToolbar){
|
|
1349
|
-
iToolbarHeight = jQuery(oToolbar.getDomRef()).outerHeight(true);
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
if (oBreadcrumbs){
|
|
1353
|
-
iBreadcrumbsHeight = jQuery(oBreadcrumbs.getDomRef()).outerHeight(true);
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
var iSubHeight = iBreadcrumbsHeight + iToolbarHeight;
|
|
1357
|
-
|
|
1358
|
-
if (!iTotalHeight){
|
|
1359
|
-
return "480px";
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
return iTotalHeight - iSubHeight + "px";
|
|
1363
|
-
};
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* Adjusts the chart height to changed content strucutre, if needed.
|
|
1342
|
+
* Requests a toolbar update once the inner chart is ready.
|
|
1367
1343
|
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
1368
1344
|
* @experimental
|
|
1369
1345
|
* @private
|
|
1370
1346
|
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
1371
1347
|
*/
|
|
1372
|
-
ChartDelegate.
|
|
1373
|
-
if (oMDCChart.getHeight() && this._getChart(oMDCChart)){
|
|
1374
|
-
var sHeight = this._calculateInnerChartHeight(oMDCChart);
|
|
1348
|
+
ChartDelegate.requestToolbarUpdate = function(oMDCChart) {
|
|
1375
1349
|
|
|
1376
|
-
|
|
1377
|
-
|
|
1350
|
+
//Workaround as the sap.chart.Chart doesn't call renderComplete when no dimensions/measures are set up
|
|
1351
|
+
if (oMDCChart.getItems().length === 0) {
|
|
1352
|
+
oMDCChart._updateToolbar();
|
|
1353
|
+
return;
|
|
1378
1354
|
}
|
|
1379
|
-
};
|
|
1380
1355
|
|
|
1381
|
-
/**
|
|
1382
|
-
* Requests a toolbar update once the inner chart is ready.
|
|
1383
|
-
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
1384
|
-
* @experimental
|
|
1385
|
-
* @private
|
|
1386
|
-
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
1387
|
-
*/
|
|
1388
|
-
ChartDelegate.requestToolbarUpdate = function(oMDCChart) {
|
|
1389
1356
|
this._getState(oMDCChart).toolbarUpdateRequested = true;
|
|
1390
1357
|
};
|
|
1391
1358
|
|
|
@@ -1813,141 +1780,6 @@ sap.ui.define([
|
|
|
1813
1780
|
});
|
|
1814
1781
|
};
|
|
1815
1782
|
|
|
1816
|
-
/**
|
|
1817
|
-
* Returns the relevant property infos based on the metadata used with the MDC chart instance.
|
|
1818
|
-
*
|
|
1819
|
-
* @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
|
|
1820
|
-
* @returns {array} Array of the property infos to be used within MDC chart
|
|
1821
|
-
* @experimental
|
|
1822
|
-
* @private
|
|
1823
|
-
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
1824
|
-
*/
|
|
1825
|
-
ChartDelegate.fetchProperties = function (oMDCChart) {
|
|
1826
|
-
|
|
1827
|
-
var oModel = this._getModel(oMDCChart);
|
|
1828
|
-
var pCreatePropertyInfos;
|
|
1829
|
-
|
|
1830
|
-
if (!oModel) {
|
|
1831
|
-
pCreatePropertyInfos = new Promise(function (resolve) {
|
|
1832
|
-
oMDCChart.attachModelContextChange({
|
|
1833
|
-
resolver: resolve
|
|
1834
|
-
}, onModelContextChange, this);
|
|
1835
|
-
}.bind(this)).then(function (oModel) {
|
|
1836
|
-
return this._createPropertyInfos(oMDCChart.getDelegate().payload, oModel);
|
|
1837
|
-
}.bind(this));
|
|
1838
|
-
} else {
|
|
1839
|
-
pCreatePropertyInfos = this._createPropertyInfos(oMDCChart.getDelegate().payload, oModel);
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
return pCreatePropertyInfos.then(function (aProperties) {
|
|
1843
|
-
if (oMDCChart.data) {
|
|
1844
|
-
oMDCChart.data("$mdcChartPropertyInfo", aProperties);
|
|
1845
|
-
}
|
|
1846
|
-
return aProperties;
|
|
1847
|
-
});
|
|
1848
|
-
};
|
|
1849
|
-
|
|
1850
|
-
function onModelContextChange(oEvent, oData) {
|
|
1851
|
-
var oMDCChart = oEvent.getSource();
|
|
1852
|
-
var oModel = this._getModel(oMDCChart);
|
|
1853
|
-
|
|
1854
|
-
if (oModel) {
|
|
1855
|
-
oMDCChart.detachModelContextChange(onModelContextChange);
|
|
1856
|
-
oData.resolver(oModel);
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
ChartDelegate._createPropertyInfos = function (oDelegatePayload, oModel) {
|
|
1861
|
-
//var oMetadataInfo = oMDCChart.getDelegate().payload;
|
|
1862
|
-
var aProperties = [];
|
|
1863
|
-
var sEntitySetPath = "/" + oDelegatePayload.collectionName;
|
|
1864
|
-
var oMetaModel = oModel.getMetaModel();
|
|
1865
|
-
|
|
1866
|
-
return Promise.all([
|
|
1867
|
-
oMetaModel.requestObject(sEntitySetPath + "/"), oMetaModel.requestObject(sEntitySetPath + "@")
|
|
1868
|
-
]).then(function (aResults) {
|
|
1869
|
-
var oEntityType = aResults[0], mEntitySetAnnotations = aResults[1];
|
|
1870
|
-
var oSortRestrictions = mEntitySetAnnotations["@Org.OData.Capabilities.V1.SortRestrictions"] || {};
|
|
1871
|
-
var oSortRestrictionsInfo = ODataMetaModelUtil.getSortRestrictionsInfo(oSortRestrictions);
|
|
1872
|
-
var oFilterRestrictions = mEntitySetAnnotations["@Org.OData.Capabilities.V1.FilterRestrictions"];
|
|
1873
|
-
var oFilterRestrictionsInfo = ODataMetaModelUtil.getFilterRestrictionsInfo(oFilterRestrictions);
|
|
1874
|
-
|
|
1875
|
-
for (var sKey in oEntityType) {
|
|
1876
|
-
var oObj = oEntityType[sKey];
|
|
1877
|
-
|
|
1878
|
-
if (oObj && oObj.$kind === "Property") {
|
|
1879
|
-
// ignore (as for now) all complex properties
|
|
1880
|
-
// not clear if they might be nesting (complex in complex)
|
|
1881
|
-
// not clear how they are represented in non-filterable annotation
|
|
1882
|
-
// etc.
|
|
1883
|
-
if (oObj.$isCollection) {
|
|
1884
|
-
//Log.warning("Complex property with type " + oObj.$Type + " has been ignored");
|
|
1885
|
-
continue;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
var oPropertyAnnotations = oMetaModel.getObject(sEntitySetPath + "/" + sKey + "@");
|
|
1889
|
-
|
|
1890
|
-
//TODO: Check what we want to do with properties neither aggregatable nor groupable
|
|
1891
|
-
//Right now: skip them, since we can't create a chart from it
|
|
1892
|
-
if (!oPropertyAnnotations["@Org.OData.Aggregation.V1.Aggregatable"] && !oPropertyAnnotations["@Org.OData.Aggregation.V1.Groupable"]) {
|
|
1893
|
-
continue;
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
if (oPropertyAnnotations["@Org.OData.Aggregation.V1.Aggregatable"]){
|
|
1897
|
-
aProperties = aProperties.concat(this._createPropertyInfosForAggregatable(sKey, oPropertyAnnotations, oObj, oFilterRestrictionsInfo, oSortRestrictionsInfo));
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
if (oPropertyAnnotations["@Org.OData.Aggregation.V1.Groupable"]) {
|
|
1901
|
-
|
|
1902
|
-
aProperties.push({
|
|
1903
|
-
name: sKey,
|
|
1904
|
-
propertyPath: sKey,
|
|
1905
|
-
label: oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Label"] || sKey,
|
|
1906
|
-
sortable: oSortRestrictionsInfo[sKey] ? oSortRestrictionsInfo[sKey].sortable : true,
|
|
1907
|
-
filterable: oFilterRestrictionsInfo[sKey] ? oFilterRestrictionsInfo[sKey].filterable : true,
|
|
1908
|
-
groupable: true,
|
|
1909
|
-
aggregatable: false,
|
|
1910
|
-
maxConditions: ODataMetaModelUtil.isMultiValueFilterExpression(oFilterRestrictionsInfo.propertyInfo[sKey]) ? -1 : 1,
|
|
1911
|
-
sortKey: sKey,
|
|
1912
|
-
dataType: oObj.$Type,
|
|
1913
|
-
//formatOptions: null,
|
|
1914
|
-
//constraints: {},
|
|
1915
|
-
role: MDCLib.ChartItemRoleType.category, //standard, normally this should be interpreted from UI.Chart annotation
|
|
1916
|
-
criticality: null ,//To be implemented by FE
|
|
1917
|
-
textProperty: oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text"] ? oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text"].$Path : null //To be implemented by FE
|
|
1918
|
-
//textFormatter: string-> can be used to provide a custom formatter for the textProperty
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
return aProperties;
|
|
1924
|
-
}.bind(this));
|
|
1925
|
-
};
|
|
1926
|
-
|
|
1927
|
-
ChartDelegate._createPropertyInfosForAggregatable = function(sKey, oPropertyAnnotations, oObj, oFilterRestrictionsInfo, oSortRestrictionsInfo) {
|
|
1928
|
-
var aProperties = [];
|
|
1929
|
-
|
|
1930
|
-
if (oPropertyAnnotations["@Org.OData.Aggregation.V1.SupportedAggregationMethods"]){
|
|
1931
|
-
oPropertyAnnotations["@Org.OData.Aggregation.V1.SupportedAggregationMethods"].forEach(function(sAggregationMethod){
|
|
1932
|
-
aProperties.push({
|
|
1933
|
-
name: sAggregationMethod + sKey,
|
|
1934
|
-
propertyPath: sKey,
|
|
1935
|
-
label: oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Label"] + " (" + sAggregationMethod + ")" || sKey + " (" + sAggregationMethod + ")" ,
|
|
1936
|
-
sortable: oSortRestrictionsInfo[sKey] ? oSortRestrictionsInfo[sKey].sortable : true,
|
|
1937
|
-
filterable: oFilterRestrictionsInfo[sKey] ? oFilterRestrictionsInfo[sKey].filterable : true,
|
|
1938
|
-
groupable: false,
|
|
1939
|
-
aggregatable: oPropertyAnnotations["@Org.OData.Aggregation.V1.Aggregatable"],
|
|
1940
|
-
aggregationMethod: sAggregationMethod,
|
|
1941
|
-
maxConditions: ODataMetaModelUtil.isMultiValueFilterExpression(oFilterRestrictionsInfo.propertyInfo[sKey]) ? -1 : 1,
|
|
1942
|
-
dataType: oObj.$Type,
|
|
1943
|
-
datapoint: null //To be implemented by FE
|
|
1944
|
-
});
|
|
1945
|
-
});
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
return aProperties;
|
|
1949
|
-
};
|
|
1950
|
-
|
|
1951
1783
|
//Gets internal property infos by excact property name
|
|
1952
1784
|
ChartDelegate._getPropertyInfosByName = function(sName, oMDCChart){
|
|
1953
1785
|
return oMDCChart._getPropertyByNameAsync(sName);
|
|
@@ -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
|
*/
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @extends sap.ui.mdc.p13n.AdaptationProvider
|
|
42
42
|
*
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.105.0
|
|
45
45
|
*
|
|
46
46
|
* @private
|
|
47
47
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
+
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
'sap/base/util/merge', 'sap/base/util/deepEqual','sap/ui/mdc/condition/FilterOperatorUtil', 'sap/base/Log'
|
|
8
8
|
], function (merge, deepEqual, FilterOperatorUtil, Log) {
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
|
|
97
97
|
for (var sFieldPath in mNewConditionState) {
|
|
98
98
|
var bValidProperty = FlexUtil._hasProperty(aPropertyInfo, sFieldPath);
|
|
99
|
-
if (!bValidProperty) {
|
|
99
|
+
if (!bValidProperty && oAdaptationControl.isA("sap.ui.mdc.Control") && oAdaptationControl.isPropertyHelperFinal()) {
|
|
100
100
|
Log.warning("property '" + sFieldPath + "' not supported");
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
+
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"./PropertyHelper",
|
|
8
8
|
"sap/m/Button",
|
|
@@ -10,8 +10,9 @@ sap.ui.define([
|
|
|
10
10
|
"sap/m/Title",
|
|
11
11
|
"sap/base/util/merge",
|
|
12
12
|
"sap/m/MessageBox",
|
|
13
|
-
"sap/ui/Device"
|
|
14
|
-
|
|
13
|
+
"sap/ui/Device",
|
|
14
|
+
"sap/ui/fl/write/api/FieldExtensibility"
|
|
15
|
+
], function(P13nPropertyHelper, Button, Bar, Title, merge, MessageBox, Device, FieldExtensibility) {
|
|
15
16
|
"use strict";
|
|
16
17
|
|
|
17
18
|
var oRB = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
@@ -207,6 +208,7 @@ sap.ui.define([
|
|
|
207
208
|
oPropertyHelper.getProperties().forEach(function(oProperty) {
|
|
208
209
|
|
|
209
210
|
var mItem = {};
|
|
211
|
+
mItem.name = oProperty.name;
|
|
210
212
|
|
|
211
213
|
if (bEnhance) {
|
|
212
214
|
var bIsValid = fnEnhace(mItem, oProperty);
|
|
@@ -215,7 +217,6 @@ sap.ui.define([
|
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
mItem.name = oProperty.name;
|
|
219
220
|
mItem.label = oProperty.label || oProperty.name;
|
|
220
221
|
mItem.tooltip = oProperty.tooltip;
|
|
221
222
|
|
|
@@ -310,6 +311,80 @@ sap.ui.define([
|
|
|
310
311
|
mMap[oProp.name].position = iIndex;
|
|
311
312
|
return mMap;
|
|
312
313
|
}, {});
|
|
314
|
+
},
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @param {object} oDialog AdaptFiltersDialog
|
|
319
|
+
*
|
|
320
|
+
* @returns {Promise} Promise resolving in the Dialog instance
|
|
321
|
+
*/
|
|
322
|
+
addRTACustomFieldButton: function (oDialog) {
|
|
323
|
+
|
|
324
|
+
var bExtensibilityEnabled = false,
|
|
325
|
+
oDialogParent = oDialog.getParent();
|
|
326
|
+
|
|
327
|
+
return sap.ui.getCore().loadLibrary('sap.ui.rta', {
|
|
328
|
+
async: true
|
|
329
|
+
}).then(function() {
|
|
330
|
+
return new Promise(function(resolve) {
|
|
331
|
+
sap.ui.require([
|
|
332
|
+
"sap/ui/rta/Utils"
|
|
333
|
+
], function(rtaUtils) {
|
|
334
|
+
var oHandleExtensibility = Promise.all([
|
|
335
|
+
rtaUtils.isServiceUpToDate(oDialogParent),
|
|
336
|
+
FieldExtensibility.isExtensibilityEnabled(oDialogParent)
|
|
337
|
+
]);
|
|
338
|
+
|
|
339
|
+
return oHandleExtensibility.then(function (aResult) {
|
|
340
|
+
bExtensibilityEnabled = !!aResult[1];
|
|
341
|
+
})
|
|
342
|
+
.then(function() {
|
|
343
|
+
var oCustomHeader = oDialog.getCustomHeader(),
|
|
344
|
+
sId = oDialogParent && oDialogParent.getId ? oDialogParent.getId() : undefined,
|
|
345
|
+
oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
346
|
+
|
|
347
|
+
if (!oCustomHeader) {
|
|
348
|
+
var oBar = new Bar({
|
|
349
|
+
contentLeft: [
|
|
350
|
+
new Title({
|
|
351
|
+
text: oDialog.getTitle()
|
|
352
|
+
})
|
|
353
|
+
]
|
|
354
|
+
});
|
|
355
|
+
oDialog.setCustomHeader(oBar);
|
|
356
|
+
oCustomHeader = oDialog.getCustomHeader();
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (bExtensibilityEnabled) {
|
|
360
|
+
oCustomHeader.addContentRight(new Button( sId + "-addCustomField", {
|
|
361
|
+
icon: "sap-icon://add",
|
|
362
|
+
enabled: bExtensibilityEnabled,
|
|
363
|
+
tooltip: oResourceBundle.getText("p13nDialog.rtaAddTooltip"),
|
|
364
|
+
press: function (oEvt) {
|
|
365
|
+
var sRtaStyleClassName = rtaUtils.getRtaStyleClassName(),
|
|
366
|
+
oAdaptDialog = oEvt.getSource().getParent().getParent(),
|
|
367
|
+
oControl = oAdaptDialog.getParent();
|
|
368
|
+
|
|
369
|
+
FieldExtensibility.onControlSelected(oControl).then(function (oRetVal) {
|
|
370
|
+
FieldExtensibility.getExtensionData().then(function (oExtensibilityInfo) {
|
|
371
|
+
FieldExtensibility.onTriggerCreateExtensionData(oExtensibilityInfo, sRtaStyleClassName);
|
|
372
|
+
oAdaptDialog.close(); // close as if there is newly created custom field, next time user tries to open it - it checks for service outdated and shows correct information
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
}
|
|
377
|
+
}));
|
|
378
|
+
|
|
379
|
+
oDialog.setCustomHeader(oCustomHeader);
|
|
380
|
+
resolve(oDialog);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
});
|
|
386
|
+
});
|
|
387
|
+
});
|
|
313
388
|
}
|
|
314
389
|
|
|
315
390
|
};
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
oVM.setModel(oModel, Utils.VARIANT_MODEL_NAME);
|
|
84
84
|
});
|
|
85
85
|
this._oWrapper = new VerticalLayout(this.getId() + "--accWrapper", {
|
|
86
|
-
visible:
|
|
86
|
+
visible: true,
|
|
87
87
|
content: [
|
|
88
88
|
oVM
|
|
89
89
|
]
|
|
@@ -101,6 +101,28 @@ sap.ui.define([
|
|
|
101
101
|
return this;
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
+
PersistenceProvider.prototype.addFor = function (sControlId) {
|
|
105
|
+
this.addAssociation("for", sControlId);
|
|
106
|
+
|
|
107
|
+
var oVM = sap.ui.getCore().byId(this.getId() + "--vm");
|
|
108
|
+
if (this.getMode() === mode.Transient && oVM) {
|
|
109
|
+
oVM.addFor(sControlId);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return this;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
PersistenceProvider.prototype.removeFor = function (sControlId) {
|
|
116
|
+
this.removeAssociation("for", sControlId);
|
|
117
|
+
|
|
118
|
+
var oVM = sap.ui.getCore().byId(this.getId() + "--vm");
|
|
119
|
+
if (this.getMode() === mode.Transient && oVM) {
|
|
120
|
+
oVM.removeFor(sControlId);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return this;
|
|
124
|
+
};
|
|
125
|
+
|
|
104
126
|
/**
|
|
105
127
|
* Set the mode for the <code>PersistenceProvider</code>.
|
|
106
128
|
*
|
|
@@ -109,13 +131,13 @@ sap.ui.define([
|
|
|
109
131
|
* @ui5-restricted sap.fe
|
|
110
132
|
* @MDC_PUBLIC_CANDIDATE
|
|
111
133
|
*/
|
|
112
|
-
PersistenceProvider.prototype.setMode = function (
|
|
134
|
+
PersistenceProvider.prototype.setMode = function (sValue) {
|
|
113
135
|
|
|
114
|
-
if (this._bmodeLocked &&
|
|
136
|
+
if (this._bmodeLocked && sValue !== this.getMode()) {
|
|
115
137
|
throw new Error("mode is a final property.");
|
|
116
138
|
}
|
|
117
139
|
|
|
118
|
-
this.setProperty("mode",
|
|
140
|
+
this.setProperty("mode", sValue);
|
|
119
141
|
|
|
120
142
|
return this;
|
|
121
143
|
};
|