@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
|
@@ -9,14 +9,6 @@ sap.ui.define([
|
|
|
9
9
|
], function (Core) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* @namespace
|
|
14
|
-
* @name sap.ui.mdc.mixin
|
|
15
|
-
* @private
|
|
16
|
-
* @experimental As of version 1.82.0
|
|
17
|
-
* @ui5-restricted sap.ui.mdc
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
12
|
/**
|
|
21
13
|
* Enhances a given control prototype with consolidated handling for external IFilter integration
|
|
22
14
|
*
|
|
@@ -25,7 +17,7 @@ sap.ui.define([
|
|
|
25
17
|
* <ul>
|
|
26
18
|
* <li><code>setFilter</code> - The setter for the <code>filter</code> association</li>
|
|
27
19
|
* <li><code>_validateFilter</code> - Validates the provided <code>IFilter</code> control instance and may return an error</li>
|
|
28
|
-
* <li><code>
|
|
20
|
+
* <li><code>rebind</code> - Executes a the <code>rebind</code> method for the given control instance.</li>
|
|
29
21
|
* </ul>
|
|
30
22
|
*
|
|
31
23
|
* To use the FilterIntegrationMixin, the implementing Control requires the <code>filter</code> associaton.
|
|
@@ -33,7 +25,7 @@ sap.ui.define([
|
|
|
33
25
|
* Additionally, the following methods are necessary to be implemented:
|
|
34
26
|
*
|
|
35
27
|
* <ul>
|
|
36
|
-
* <li><code>
|
|
28
|
+
* <li><code>_rebind</code></li>
|
|
37
29
|
* <li><code>isFilteringEnabled</code></li>
|
|
38
30
|
* </ul>
|
|
39
31
|
*
|
|
@@ -51,7 +43,7 @@ sap.ui.define([
|
|
|
51
43
|
* </ul>
|
|
52
44
|
*
|
|
53
45
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
46
|
+
* @version 1.100.0
|
|
55
47
|
* @alias sap.ui.mdc.mixin.FilterIntegrationMixin
|
|
56
48
|
* @namespace
|
|
57
49
|
* @since 1.82.0
|
|
@@ -94,7 +86,7 @@ sap.ui.define([
|
|
|
94
86
|
};
|
|
95
87
|
|
|
96
88
|
function onSearch(oEvent) {
|
|
97
|
-
this.
|
|
89
|
+
this._rebind();
|
|
98
90
|
if (this._onFilterSearch) {
|
|
99
91
|
this._onFilterSearch(oEvent);
|
|
100
92
|
}
|
|
@@ -180,8 +172,13 @@ sap.ui.define([
|
|
|
180
172
|
|
|
181
173
|
/**
|
|
182
174
|
* Executes a rebind considering the provided external and inbuilt filtering.
|
|
175
|
+
*
|
|
176
|
+
* @private
|
|
177
|
+
* @ui5-restricted sap.fe
|
|
178
|
+
* MDC_PUBLIC_CANDIDATE
|
|
179
|
+
* @since 1.98
|
|
183
180
|
*/
|
|
184
|
-
FilterIntegrationMixin.
|
|
181
|
+
FilterIntegrationMixin.rebind = function() {
|
|
185
182
|
|
|
186
183
|
if (this.bIsDestroyed) {
|
|
187
184
|
return;
|
|
@@ -209,7 +206,7 @@ sap.ui.define([
|
|
|
209
206
|
pOuterFilterSearch,
|
|
210
207
|
pInnerFilterSearch
|
|
211
208
|
]).then(function() {
|
|
212
|
-
this.
|
|
209
|
+
this._rebind();
|
|
213
210
|
}.bind(this), function(){
|
|
214
211
|
|
|
215
212
|
//TODO:
|
|
@@ -219,7 +216,7 @@ sap.ui.define([
|
|
|
219
216
|
} else {
|
|
220
217
|
|
|
221
218
|
//No Filter source provided --> rebind immediately
|
|
222
|
-
this.
|
|
219
|
+
this._rebind();
|
|
223
220
|
}
|
|
224
221
|
|
|
225
222
|
};
|
|
@@ -228,7 +225,7 @@ sap.ui.define([
|
|
|
228
225
|
|
|
229
226
|
this.setFilter = FilterIntegrationMixin.setFilter;
|
|
230
227
|
this._validateFilter = FilterIntegrationMixin._validateFilter;
|
|
231
|
-
this.
|
|
228
|
+
this.rebind = FilterIntegrationMixin.rebind;
|
|
232
229
|
};
|
|
233
230
|
|
|
234
|
-
}
|
|
231
|
+
});
|
|
@@ -13,7 +13,7 @@ sap.ui.define(
|
|
|
13
13
|
* Calling any of the enhanced methods after control exit will result in a no-op.
|
|
14
14
|
*
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.100.0
|
|
17
17
|
* @alias sap.ui.mdc.mixin.PromiseMixin
|
|
18
18
|
* @namespace
|
|
19
19
|
* @since 1.85.0
|
|
@@ -89,6 +89,5 @@ sap.ui.define(
|
|
|
89
89
|
this._retrievePromises = _noop(PromiseMixin.retrievePromises);
|
|
90
90
|
this.exit = PromiseMixin.exit(this.exit);
|
|
91
91
|
};
|
|
92
|
-
}
|
|
93
|
-
/* bExport= */ true
|
|
92
|
+
}
|
|
94
93
|
);
|
|
@@ -0,0 +1,348 @@
|
|
|
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(["sap/base/util/Deferred", "sap/ui/mdc/util/loadModules", "sap/base/Log"], function (Deferred, loadModules, Log) {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Enhances a given control prototype with consolidated asynchronous handling for providing a PropertyHelper
|
|
12
|
+
*
|
|
13
|
+
* The following methods are available:
|
|
14
|
+
*
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li><code>initPropertyHelper</code> - Loads and initializes the property helper related to the enhanced control.</li>
|
|
17
|
+
* <li><code>awaitPropertyHelper</code> - Provides access to the property helper initialization <code>Promise</code>.</li>
|
|
18
|
+
* <li><code>finalizePropertyHelper</code> - Finalizes the propertyHelper fetching all available propertyInfo via a given control delegate.</li>
|
|
19
|
+
* <li><code>isPropertyHelperFinal</code> - Indicates if the propertyHelper for this control allready contains all available propertyInfo.</li>
|
|
20
|
+
* <li><code>getPropertyHelper</code> - Returns the property helper instance, if available.</li>
|
|
21
|
+
* </ul>
|
|
22
|
+
*
|
|
23
|
+
* Additionally, the following methods are wrapped:
|
|
24
|
+
*
|
|
25
|
+
* <ul>
|
|
26
|
+
* <li><code>applySettings</code></li>
|
|
27
|
+
* <li><code>exit</code></li>
|
|
28
|
+
* <li><code>init</code></li>
|
|
29
|
+
* </ul>
|
|
30
|
+
*
|
|
31
|
+
* @author SAP SE
|
|
32
|
+
* @version 1.100.0
|
|
33
|
+
* @alias sap.ui.mdc.mixin.PropertyHelperMixin
|
|
34
|
+
* @namespace
|
|
35
|
+
* @since 1.100.0
|
|
36
|
+
* @private
|
|
37
|
+
* @experimental
|
|
38
|
+
* @ui5-restricted sap.ui.mdc
|
|
39
|
+
*/
|
|
40
|
+
var PropertyHelperMixin = {};
|
|
41
|
+
|
|
42
|
+
PropertyHelperMixin.init = function (fnInit) {
|
|
43
|
+
return function () {
|
|
44
|
+
|
|
45
|
+
this._oPropertyHelper = null;
|
|
46
|
+
this._oPropertyHelperDeferred = new Deferred();
|
|
47
|
+
this._oApplySettingsDeferred = new Deferred();
|
|
48
|
+
|
|
49
|
+
this._bPropertyHelperFinal = false;
|
|
50
|
+
this._bPropertyHelperInitializing = false;
|
|
51
|
+
this._sPropertyInfoStore = null;
|
|
52
|
+
|
|
53
|
+
if (fnInit) {
|
|
54
|
+
fnInit.apply(this, arguments);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
PropertyHelperMixin.applySettings = function (fnApplySettings) {
|
|
61
|
+
return function () {
|
|
62
|
+
if (fnApplySettings) {
|
|
63
|
+
fnApplySettings.apply(this, arguments);
|
|
64
|
+
}
|
|
65
|
+
this._oApplySettingsDeferred.resolve(this); // We want to make sure all other initial properties are set before initializing propertyHelper (e.g. delegate)
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Loads and initializes the property helper related to the enhanced control.
|
|
72
|
+
*
|
|
73
|
+
* @protected
|
|
74
|
+
* @param {sap.ui.mdc.util.PropertyHelper} [PropertyHelperClass] Custom property helper class
|
|
75
|
+
* @param {object[]} [aProperties] optional set of initial properties
|
|
76
|
+
* @param {object[]} [bFinal] flag for mark the propertyHelper as final
|
|
77
|
+
* @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
|
|
78
|
+
*/
|
|
79
|
+
PropertyHelperMixin.initPropertyHelper = function(PropertyHelperClass, aProperties, bFinal) {
|
|
80
|
+
if (PropertyHelperClass) {
|
|
81
|
+
this._setPropertyHelperClass(PropertyHelperClass);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return _createOrUpdatePropertyHelper.call(this, aProperties, bFinal);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Provide a new set of properties for the propertyHelper.
|
|
89
|
+
*
|
|
90
|
+
* @protected
|
|
91
|
+
* @param {object[]} [aProperties] optional set of initial properties
|
|
92
|
+
* @param {object[]} [bFinal] flag for mark the propertyHelper as final
|
|
93
|
+
* @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
|
|
94
|
+
* @throws exception if propertyHelper is already marked as final
|
|
95
|
+
*/
|
|
96
|
+
PropertyHelperMixin.updatePropertyHelper = function(aProperties, bFinal) {
|
|
97
|
+
return _createOrUpdatePropertyHelper.call(this, aProperties, bFinal);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Finalize the propertyHelper using the control's delegate.
|
|
102
|
+
*
|
|
103
|
+
* @protected
|
|
104
|
+
* @param {object[]} [aProperties] optional set of initial properties
|
|
105
|
+
* @param {object[]} [bFinal] flag for mark the propertyHelper as final
|
|
106
|
+
* @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
|
|
107
|
+
*/
|
|
108
|
+
PropertyHelperMixin.finalizePropertyHelper = function() {
|
|
109
|
+
this._pHelperFinalizationPromise = this._pHelperFinalizationPromise || _getDelegateProperties(this).then(function (aResult) {
|
|
110
|
+
return _createOrUpdatePropertyHelper.call(this, aResult, true);
|
|
111
|
+
}.bind(this));
|
|
112
|
+
return this._pHelperFinalizationPromise;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Indicates if the control's propertyHelper already contains all available properties
|
|
117
|
+
*
|
|
118
|
+
* @protected
|
|
119
|
+
* @returns {boolean} Returns a <code>boolean</code> indicating the propertyHelper's final state
|
|
120
|
+
*/
|
|
121
|
+
PropertyHelperMixin.isPropertyHelperFinal = function() {
|
|
122
|
+
return this._bPropertyHelperFinal;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Provides access to the property helper initialization <code>Promise</code>.
|
|
127
|
+
*
|
|
128
|
+
* @protected
|
|
129
|
+
* @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
|
|
130
|
+
*/
|
|
131
|
+
PropertyHelperMixin.awaitPropertyHelper = function() {
|
|
132
|
+
return this._oPropertyHelperDeferred.promise;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Returns the property helper instance, if available.
|
|
137
|
+
*
|
|
138
|
+
* @protected
|
|
139
|
+
* @returns {sap.ui.mdc.util.PropertyHelper} The property helper
|
|
140
|
+
*/
|
|
141
|
+
PropertyHelperMixin.getPropertyHelper = function() {
|
|
142
|
+
return this._oPropertyHelper;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
PropertyHelperMixin.exit = function (fnExit) {
|
|
146
|
+
return function () {
|
|
147
|
+
this._oPropertyHelper = null;
|
|
148
|
+
this._oPropertyHelperDeferred = null;
|
|
149
|
+
this._oApplySettingsDeferred = null;
|
|
150
|
+
this._bPropertyHelperFinal = null;
|
|
151
|
+
this._bPropertyHelperInitializing = null;
|
|
152
|
+
this._pHelperFinalizationPromise = null;
|
|
153
|
+
this._oPropertyHelperClass = null;
|
|
154
|
+
this._sPropertyInfoStore = null;
|
|
155
|
+
|
|
156
|
+
if (this._oPropertyInfoStoreMutatorOverride) {
|
|
157
|
+
this[this._oPropertyInfoStoreMutatorOverride.key] = this._oPropertyInfoStoreMutatorOverride.mutator;
|
|
158
|
+
this._oPropertyInfoStoreMutatorOverride = null;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (fnExit) {
|
|
162
|
+
fnExit.apply(this, arguments);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Controls may provide a property identifier representing a propertyInfo store for this control.
|
|
169
|
+
* This should be called as early as possible as the given property's mutator is overriden.
|
|
170
|
+
* @private
|
|
171
|
+
* @param {string} sPropertyName Name of the property containing propertyInfo for this control
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
PropertyHelperMixin._setupPropertyInfoStore = function(sPropertyName) {
|
|
175
|
+
var oProperties = this.getMetadata().getAllProperties();
|
|
176
|
+
var oPropertyInfoProperty = oProperties && oProperties[sPropertyName];
|
|
177
|
+
if (!oPropertyInfoProperty) {
|
|
178
|
+
throw new Error("PropertyHelperMixin: Property '" + sPropertyName + "' not found.");
|
|
179
|
+
}
|
|
180
|
+
var oJSONKeys = this.getMetadata().getJSONKeys()[sPropertyName];
|
|
181
|
+
this._oPropertyInfoStoreMutatorOverride = {key: oJSONKeys._sMutator, mutator: this[oJSONKeys._sMutator]};
|
|
182
|
+
|
|
183
|
+
this[oJSONKeys._sMutator] = function () {
|
|
184
|
+
this._oPropertyInfoStoreMutatorOverride.mutator.apply(this, arguments);
|
|
185
|
+
if (!this._bPropertyHelperFinal) {
|
|
186
|
+
_createOrUpdatePropertyHelper.call(this, this[oJSONKeys._sGetter](), false);
|
|
187
|
+
}
|
|
188
|
+
return this;
|
|
189
|
+
};
|
|
190
|
+
this._sPropertyInfoStore = sPropertyName;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
// Should ideally be called already during init for controls featuring a propertyInfo property (auto-initalization of PH after applySettings).
|
|
194
|
+
PropertyHelperMixin._setPropertyHelperClass = function (PropertyHelperClass) {
|
|
195
|
+
if (this._oPropertyHelper || this._bPropertyHelperInitializing) {
|
|
196
|
+
throw new Error("PropertyHelper already initializing/ed.");
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (PropertyHelperClass && (!PropertyHelperClass.getMetadata || !PropertyHelperClass.getMetadata().isA("sap.ui.mdc.util.PropertyHelper"))) {
|
|
200
|
+
throw new Error("The custom property helper class must be sap.ui.mdc.util.PropertyHelper or a subclass of it.");
|
|
201
|
+
}
|
|
202
|
+
this._oPropertyHelperClass = PropertyHelperClass;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
PropertyHelperMixin._getPropertyByName = function(sName) {
|
|
206
|
+
return this._oPropertyHelper && this._oPropertyHelper.getProperty(sName);
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
PropertyHelperMixin._getPropertyByNameAsync = function(sName) {
|
|
210
|
+
var oProperty = this._oPropertyHelper && this._oPropertyHelper.getProperty(sName);
|
|
211
|
+
|
|
212
|
+
if (!oProperty) {
|
|
213
|
+
return this.finalizePropertyHelper().then(function (oPropertyHelper) {
|
|
214
|
+
return oPropertyHelper.getProperty(sName);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return Promise.resolve(oProperty);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
function _createOrUpdatePropertyHelper(aProperties, bFinal) {
|
|
221
|
+
if (!this.bIsDestroyed) {
|
|
222
|
+
if (this._bPropertyHelperInitializing && typeof aProperties !== "undefined") {
|
|
223
|
+
return this._oPropertyHelperDeferred.promise.then(function () {
|
|
224
|
+
return _updatePropertyHelper.call(this, aProperties, bFinal);
|
|
225
|
+
}.bind(this));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (this._oPropertyHelper && typeof aProperties !== "undefined") {
|
|
229
|
+
_updatePropertyHelper.call(this, aProperties, bFinal);
|
|
230
|
+
}
|
|
231
|
+
if (!this._oPropertyHelper) {
|
|
232
|
+
_createPropertyHelper.call(this, aProperties, bFinal);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return this._oPropertyHelperDeferred && this._oPropertyHelperDeferred.promise;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function _createPropertyHelper (aProperties, bFinal) {
|
|
239
|
+
this._bPropertyHelperInitializing = true;
|
|
240
|
+
|
|
241
|
+
if (bFinal || !aProperties) { // also fall back to delegate if no initial properties given
|
|
242
|
+
bFinal = true;
|
|
243
|
+
this._pHelperFinalizationPromise = this._oPropertyHelperDeferred.promise;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
var oDelegate;
|
|
247
|
+
|
|
248
|
+
// we need to initialize the delegate for extensions or ph overrides first
|
|
249
|
+
return this._oApplySettingsDeferred.promise.then(function () {
|
|
250
|
+
return this.initControlDelegate();
|
|
251
|
+
}.bind(this)).then(function (oControlDelegate) {
|
|
252
|
+
oDelegate = oControlDelegate;
|
|
253
|
+
return bFinal ? _getDelegateProperties(this) : aProperties;
|
|
254
|
+
}.bind(this)).then(function(aProperties) {
|
|
255
|
+
if (this.bIsDestroyed) {
|
|
256
|
+
return [];
|
|
257
|
+
}
|
|
258
|
+
var aResult = [aProperties];
|
|
259
|
+
if (oDelegate && typeof oDelegate.fetchPropertyExtensions === "function") {
|
|
260
|
+
return oDelegate.fetchPropertyExtensions(this, aProperties).then(function(mExtensions) {
|
|
261
|
+
return aResult.concat(mExtensions);
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
return aResult.concat(undefined);
|
|
265
|
+
}.bind(this)).then(function(aResult) {
|
|
266
|
+
if (this.bIsDestroyed) {
|
|
267
|
+
return [];
|
|
268
|
+
}
|
|
269
|
+
return fetchPropertyHelperClass(this, oDelegate, aResult[0], aResult[1]).then(function(PropertyHelper) {
|
|
270
|
+
return aResult.concat(PropertyHelper);
|
|
271
|
+
});
|
|
272
|
+
}.bind(this)).then(function(aResult) {
|
|
273
|
+
if (this.bIsDestroyed) {
|
|
274
|
+
return undefined;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
var aProperties = aResult[0];
|
|
278
|
+
var mExtensions = aResult[1];
|
|
279
|
+
var PropertyHelper = aResult[2];
|
|
280
|
+
this._oPropertyHelper = new PropertyHelper(aProperties, mExtensions, this, undefined, undefined);
|
|
281
|
+
this._bPropertyHelperInitializing = false;
|
|
282
|
+
if (bFinal) {
|
|
283
|
+
this._bPropertyHelperFinal = true;
|
|
284
|
+
}
|
|
285
|
+
return this._oPropertyHelperDeferred.resolve(this._oPropertyHelper);
|
|
286
|
+
}.bind(this)).catch(function (oError) {
|
|
287
|
+
return this._oPropertyHelperDeferred && this._oPropertyHelperDeferred.reject(oError);
|
|
288
|
+
}.bind(this));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function _updatePropertyHelper(aProperties, bFinal) {
|
|
292
|
+
if (this._bPropertyHelperFinal) {
|
|
293
|
+
throw new Error("This property helper is already final and cannot be updated further.");
|
|
294
|
+
}
|
|
295
|
+
this._oPropertyHelper.setProperties(aProperties);
|
|
296
|
+
this._bPropertyHelperFinal = bFinal || this._bPropertyHelperFinal;
|
|
297
|
+
return this._oPropertyHelper;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// use delegate for final properties
|
|
301
|
+
function _getDelegateProperties (oControl) {
|
|
302
|
+
return oControl.initControlDelegate().then(function () {
|
|
303
|
+
return oControl.getControlDelegate(oControl).fetchProperties(oControl); // not using arg as some unit tests override "getControlDelegate"
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
function fetchPropertyHelperClass(oControl, oDelegate, aProperties) {
|
|
310
|
+
if (oDelegate && typeof oDelegate.getPropertyHelperClass === "function") {
|
|
311
|
+
var oDelegatePropertyHelperClass = oDelegate.getPropertyHelperClass();
|
|
312
|
+
var sBaseClass = oControl._oPropertyHelperClass ? oControl._oPropertyHelperClass.getMetadata().getName() : "sap.ui.mdc.util.PropertyHelper";
|
|
313
|
+
|
|
314
|
+
if (!oDelegatePropertyHelperClass || !oDelegatePropertyHelperClass.getMetadata || !oDelegatePropertyHelperClass.getMetadata().isA(sBaseClass)) {
|
|
315
|
+
throw new Error("The property helper class must be " + sBaseClass + " or a subclass of it.");
|
|
316
|
+
}
|
|
317
|
+
return Promise.resolve(oDelegatePropertyHelperClass);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (oControl._oPropertyHelperClass) {
|
|
321
|
+
return Promise.resolve(oControl._oPropertyHelperClass);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
return loadModules("sap/ui/mdc/util/PropertyHelper").then(function(aResult) {
|
|
325
|
+
return aResult[0];
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return function () {
|
|
330
|
+
this.init = PropertyHelperMixin.init(this.init);
|
|
331
|
+
this.exit = PropertyHelperMixin.exit(this.exit);
|
|
332
|
+
this.applySettings = PropertyHelperMixin.applySettings(this.applySettings);
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
this.initPropertyHelper = PropertyHelperMixin.initPropertyHelper;
|
|
336
|
+
this.awaitPropertyHelper = PropertyHelperMixin.awaitPropertyHelper;
|
|
337
|
+
this.getPropertyHelper = PropertyHelperMixin.getPropertyHelper;
|
|
338
|
+
|
|
339
|
+
this.finalizePropertyHelper = PropertyHelperMixin.finalizePropertyHelper;
|
|
340
|
+
this.isPropertyHelperFinal = PropertyHelperMixin.isPropertyHelperFinal;
|
|
341
|
+
|
|
342
|
+
this._getPropertyByName = PropertyHelperMixin._getPropertyByName;
|
|
343
|
+
this._getPropertyByNameAsync = PropertyHelperMixin._getPropertyByNameAsync;
|
|
344
|
+
this._setPropertyHelperClass = PropertyHelperMixin._setPropertyHelperClass;
|
|
345
|
+
this._setupPropertyInfoStore = PropertyHelperMixin._setupPropertyInfoStore;
|
|
346
|
+
|
|
347
|
+
};
|
|
348
|
+
});
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
*
|
|
30
30
|
* Falls back to 'object' if type cannot be found.
|
|
31
31
|
*
|
|
32
|
-
* @param {string}
|
|
32
|
+
* @param {string} sDataType Given model specific type
|
|
33
33
|
* @returns {string} primitive type name
|
|
34
34
|
*/
|
|
35
35
|
getPrimitiveType: function (sDataType) {
|
|
@@ -124,4 +124,4 @@ sap.ui.define([
|
|
|
124
124
|
|
|
125
125
|
return TypeUtil;
|
|
126
126
|
|
|
127
|
-
}
|
|
127
|
+
});
|