@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
|
@@ -33,9 +33,11 @@ sap.ui.define(
|
|
|
33
33
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
34
34
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.100.0
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
39
|
+
* @ui5-restricted sap.fe
|
|
40
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
39
41
|
* @since 1.84.0
|
|
40
42
|
* @alias sap.ui.mdc.filterbar.vh.FilterBar
|
|
41
43
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -59,23 +61,8 @@ sap.ui.define(
|
|
|
59
61
|
type: "int",
|
|
60
62
|
defaultValue: 8
|
|
61
63
|
}
|
|
62
|
-
|
|
63
|
-
// delegate: {
|
|
64
|
-
// type: "object",
|
|
65
|
-
// group: "Data",
|
|
66
|
-
// defaultValue: {name: 'sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate'}
|
|
67
|
-
// }
|
|
68
64
|
},
|
|
69
65
|
aggregations : {
|
|
70
|
-
/**
|
|
71
|
-
* <code>collectiveSearch</code> control of the filterbar.
|
|
72
|
-
*
|
|
73
|
-
* @since 1.87.0
|
|
74
|
-
*/
|
|
75
|
-
collectiveSearch: {
|
|
76
|
-
type: "sap.ui.mdc.filterbar.vh.CollectiveSearchSelect",
|
|
77
|
-
multiple: false
|
|
78
|
-
}
|
|
79
66
|
}
|
|
80
67
|
},
|
|
81
68
|
|
|
@@ -140,10 +127,23 @@ sap.ui.define(
|
|
|
140
127
|
this._oFilterBarLayout.addEndContent(this._oShowAllFiltersBtn);
|
|
141
128
|
};
|
|
142
129
|
|
|
130
|
+
FilterBar.prototype.applySettings = function(mSettings, oScope) {
|
|
131
|
+
this._applySettings(mSettings, oScope);
|
|
132
|
+
this._waitForMetadata();
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
FilterBar.prototype._handleConditionModelPropertyChange = function() {
|
|
136
|
+
this.fireFiltersChanged({conditionsBased: true});
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
|
|
143
140
|
FilterBar.prototype.exit = function() {
|
|
141
|
+
if (this._oCollectiveSearch) { // do not destroy CollectiveSearch as it is owned by value help and might be reused there
|
|
142
|
+
this._oFilterBarLayout.removeControl(this._oCollectiveSearch);
|
|
143
|
+
this._oCollectiveSearch = null;
|
|
144
|
+
}
|
|
144
145
|
FilterBarBase.prototype.exit.apply(this, arguments);
|
|
145
146
|
this._oBasicSearchField = null;
|
|
146
|
-
this._oCollectiveSearch = null;
|
|
147
147
|
this._oBtnFilters = null;
|
|
148
148
|
this._oShowAllFiltersBtn = null;
|
|
149
149
|
};
|
|
@@ -156,6 +156,15 @@ sap.ui.define(
|
|
|
156
156
|
this._oFilterBarLayout._updateFilterBarLayout(true);
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Sets the <code>CollectiveSearch</code> control
|
|
161
|
+
*
|
|
162
|
+
* <b>Note:</b> This must only be done by the corresponding value help, not from outside.
|
|
163
|
+
*
|
|
164
|
+
* @param {sap.ui.mdc.filterbar.vh.CollectiveSearchSelect} oCollectiveSearch <code>CollectiveSearch</code> control
|
|
165
|
+
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
166
|
+
* @protected
|
|
167
|
+
*/
|
|
159
168
|
FilterBar.prototype.setCollectiveSearch = function (oCollectiveSearch) {
|
|
160
169
|
if (this._oCollectiveSearch) {
|
|
161
170
|
if (this._oFilterBarLayout) {
|
|
@@ -170,11 +179,27 @@ sap.ui.define(
|
|
|
170
179
|
return this;
|
|
171
180
|
};
|
|
172
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Gets the <code>CollectiveSearch</code> control
|
|
184
|
+
*
|
|
185
|
+
* <b>Note:</b> This must only be used by the corresponding value help, not from outside.
|
|
186
|
+
*
|
|
187
|
+
* @returns {sap.ui.mdc.filterbar.vh.CollectiveSearchSelect} <code>CollectiveSearch</code> control
|
|
188
|
+
* @protected
|
|
189
|
+
*/
|
|
173
190
|
FilterBar.prototype.getCollectiveSearch = function () {
|
|
174
191
|
return this._oCollectiveSearch;
|
|
175
192
|
};
|
|
176
193
|
|
|
177
|
-
|
|
194
|
+
/**
|
|
195
|
+
* Destroyes the <code>CollectiveSearch</code> control
|
|
196
|
+
*
|
|
197
|
+
* <b>Note:</b> This must only be used by the corresponding value help, not from outside.
|
|
198
|
+
*
|
|
199
|
+
* @returns {this} Reference to <code>this</code> to allow method chaining
|
|
200
|
+
* @protected
|
|
201
|
+
*/
|
|
202
|
+
FilterBar.prototype.destroyCollectiveSearch = function () {
|
|
178
203
|
if (this._oCollectiveSearch && this._oFilterBarLayout) {
|
|
179
204
|
this._oFilterBarLayout.removeControl(this._oCollectiveSearch);
|
|
180
205
|
this._oCollectiveSearch.destroy();
|
|
@@ -184,7 +209,6 @@ sap.ui.define(
|
|
|
184
209
|
return this;
|
|
185
210
|
};
|
|
186
211
|
|
|
187
|
-
|
|
188
212
|
FilterBar.prototype.setBasicSearchField = function (oBasicSearchField) {
|
|
189
213
|
if (this._oBasicSearchField) {
|
|
190
214
|
if (this._oFilterBarLayout) {
|
|
@@ -27,7 +27,7 @@ sap.ui.define(
|
|
|
27
27
|
* @class The FilterContainer is a IFilterContainer implementation for <code>AlignedFlowLayout</code>
|
|
28
28
|
* @extends sap.ui.mdc.filterbar.IFilterContainer
|
|
29
29
|
* @constructor
|
|
30
|
-
* @
|
|
30
|
+
* @protected
|
|
31
31
|
* @since 1.84.0
|
|
32
32
|
* @alias sap.ui.mdc.filterbar.vh.FilterContainer
|
|
33
33
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -7,7 +7,7 @@ sap.ui.define(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], function (FlexRuntimeI
|
|
|
7
7
|
"use strict";
|
|
8
8
|
var fRebindControl = function (oControl) {
|
|
9
9
|
var bExecuteRebindForTable = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound();
|
|
10
|
-
var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart")
|
|
10
|
+
var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart"));
|
|
11
11
|
if (bExecuteRebindForTable || bExecuteRebindForChart) {
|
|
12
12
|
if (!oControl._bWaitForBindChanges) {
|
|
13
13
|
oControl._bWaitForBindChanges = true;
|
|
@@ -15,7 +15,7 @@ sap.ui.define(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], function (FlexRuntimeI
|
|
|
15
15
|
element: oControl
|
|
16
16
|
}).then(function () {
|
|
17
17
|
if (bExecuteRebindForTable) {
|
|
18
|
-
oControl.
|
|
18
|
+
oControl.rebind();
|
|
19
19
|
} else if (bExecuteRebindForChart) {
|
|
20
20
|
oControl.rebind();
|
|
21
21
|
}
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
var AggregationConfigFlex = {};
|
|
23
23
|
|
|
24
24
|
var fConfigModified = function(oControl) {
|
|
25
|
-
if (!oControl._bWaitForModificationChanges) {
|
|
25
|
+
if (!oControl._bWaitForModificationChanges && oControl.isA) {
|
|
26
26
|
oControl._bWaitForModificationChanges = true;
|
|
27
27
|
Engine.getInstance().waitForChanges(oControl).then(function() {
|
|
28
28
|
if (oControl._onModifications instanceof Function) {
|
|
@@ -33,6 +33,19 @@ sap.ui.define([
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
var fnQueueChange = function(oControl, fTask) {
|
|
37
|
+
var fCleanupPromiseQueue = function(pOriginalPromise) {
|
|
38
|
+
if (oControl._pQueue === pOriginalPromise){
|
|
39
|
+
delete oControl._pQueue;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
oControl._pQueue = oControl._pQueue instanceof Promise ? oControl._pQueue.then(fTask) : fTask();
|
|
44
|
+
oControl._pQueue.then(fCleanupPromiseQueue.bind(null, oControl._pQueue));
|
|
45
|
+
|
|
46
|
+
return oControl._pQueue;
|
|
47
|
+
};
|
|
48
|
+
|
|
36
49
|
/**
|
|
37
50
|
* Creates a changehandler specific to the provided aggregation and property name,
|
|
38
51
|
* to enhance the xConfig object for a given mdc control instance.
|
|
@@ -58,39 +71,43 @@ sap.ui.define([
|
|
|
58
71
|
"changeHandler": {
|
|
59
72
|
applyChange: function (oChange, oControl, mPropertyBag) {
|
|
60
73
|
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
})
|
|
64
|
-
.then(function(oPriorAggregationConfig) {
|
|
65
|
-
var sOldValue = null;
|
|
66
|
-
|
|
67
|
-
if (oPriorAggregationConfig
|
|
68
|
-
&& oPriorAggregationConfig.aggregations
|
|
69
|
-
&& oPriorAggregationConfig.aggregations[sAffectedAggregation]
|
|
70
|
-
&& oPriorAggregationConfig.aggregations[sAffectedAggregation][oChange.getContent().name]
|
|
71
|
-
&& oPriorAggregationConfig.aggregations[sAffectedAggregation][oChange.getContent().name][sAffectedProperty]
|
|
72
|
-
){
|
|
73
|
-
sOldValue = oPriorAggregationConfig.aggregations[sAffectedAggregation][oChange.getContent().name][sAffectedProperty];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
oChange.setRevertData({
|
|
77
|
-
name: oChange.getContent().name,
|
|
78
|
-
value: sOldValue
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
return Engine.getInstance().enhanceXConfig(oControl, {
|
|
82
|
-
controlMeta: {
|
|
83
|
-
aggregation: sAffectedAggregation,
|
|
84
|
-
property: sAffectedProperty
|
|
85
|
-
},
|
|
86
|
-
name: oChange.getContent().name,
|
|
87
|
-
value: oChange.getContent().value,
|
|
74
|
+
return fnQueueChange(oControl, function(){
|
|
75
|
+
return Engine.getInstance().readXConfig(oControl, {
|
|
88
76
|
propertyBag: mPropertyBag
|
|
77
|
+
})
|
|
78
|
+
.then(function(oPriorAggregationConfig) {
|
|
79
|
+
var sOldValue = null;
|
|
80
|
+
|
|
81
|
+
if (oPriorAggregationConfig
|
|
82
|
+
&& oPriorAggregationConfig.aggregations
|
|
83
|
+
&& oPriorAggregationConfig.aggregations[sAffectedAggregation]
|
|
84
|
+
&& oPriorAggregationConfig.aggregations[sAffectedAggregation][oChange.getContent().name]
|
|
85
|
+
&& oPriorAggregationConfig.aggregations[sAffectedAggregation][oChange.getContent().name][sAffectedProperty]
|
|
86
|
+
){
|
|
87
|
+
sOldValue = oPriorAggregationConfig.aggregations[sAffectedAggregation][oChange.getContent().name][sAffectedProperty];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
oChange.setRevertData({
|
|
91
|
+
name: oChange.getContent().name,
|
|
92
|
+
value: sOldValue
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
return Engine.getInstance().enhanceXConfig(oControl, {
|
|
96
|
+
controlMeta: {
|
|
97
|
+
aggregation: sAffectedAggregation,
|
|
98
|
+
property: sAffectedProperty
|
|
99
|
+
},
|
|
100
|
+
name: oChange.getContent().name,
|
|
101
|
+
value: oChange.getContent().value,
|
|
102
|
+
propertyBag: mPropertyBag
|
|
103
|
+
});
|
|
104
|
+
})
|
|
105
|
+
.then(function() {
|
|
106
|
+
fConfigModified(oControl);
|
|
89
107
|
});
|
|
90
|
-
|
|
91
|
-
.then(function() {
|
|
92
|
-
fConfigModified(oControl);
|
|
108
|
+
|
|
93
109
|
});
|
|
110
|
+
|
|
94
111
|
},
|
|
95
112
|
completeChangeContent: function (oChange, mChangeSpecificInfo, mPropertyBag) {
|
|
96
113
|
// Not used, but needs to be there
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
'./SortFlex', './ChartItemFlex'
|
|
8
|
-
], function(SortFlex, ChartItemFlex) {
|
|
7
|
+
'./SortFlex', './ChartItemFlex', './ConditionFlex'
|
|
8
|
+
], function(SortFlex, ChartItemFlex, ConditionFlex) {
|
|
9
9
|
"use strict";
|
|
10
10
|
/**
|
|
11
11
|
* Chart-control-specific change handler that enables the storing of changes in the layered repository of the flexibility services.
|
|
12
12
|
*
|
|
13
13
|
* @alias sap.ui.mdc.flexibility.Chart
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.100.0
|
|
16
16
|
*/
|
|
17
17
|
return {
|
|
18
18
|
addItem: ChartItemFlex.addItem,
|
|
@@ -58,6 +58,8 @@ sap.ui.define([
|
|
|
58
58
|
},
|
|
59
59
|
removeSort: SortFlex.removeSort,
|
|
60
60
|
addSort: SortFlex.addSort,
|
|
61
|
-
moveSort: SortFlex.moveSort
|
|
61
|
+
moveSort: SortFlex.moveSort,
|
|
62
|
+
addCondition: ConditionFlex.addCondition,
|
|
63
|
+
removeCondition: ConditionFlex.removeCondition
|
|
62
64
|
};
|
|
63
65
|
}, /* bExport= */true);
|
|
@@ -11,8 +11,24 @@ sap.ui.define([
|
|
|
11
11
|
|
|
12
12
|
var oChartItemFlex = Object.assign({}, ItemBaseFlex);
|
|
13
13
|
|
|
14
|
+
/* Disabled until clarified with flex
|
|
15
|
+
var fnQueueChange = function(oControl, fTask) {
|
|
16
|
+
var fCleanupPromiseQueue = function(pOriginalPromise) {
|
|
17
|
+
if (oControl._pQueue === pOriginalPromise){
|
|
18
|
+
delete oControl._pQueue;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
oControl._pQueue = oControl._pQueue instanceof Promise ? oControl._pQueue.then(fTask) : fTask();
|
|
23
|
+
oControl._pQueue.then(fCleanupPromiseQueue.bind(null, oControl._pQueue));
|
|
24
|
+
|
|
25
|
+
return oControl._pQueue;
|
|
26
|
+
};*/
|
|
27
|
+
|
|
14
28
|
oChartItemFlex.beforeAddItem = function(Delegate, sDataPropertyName, oControl, mPropertyBag, oChangeContent) {
|
|
29
|
+
|
|
15
30
|
return Delegate.addItem.call(Delegate, sDataPropertyName, oControl, mPropertyBag, oChangeContent.role);
|
|
31
|
+
|
|
16
32
|
};
|
|
17
33
|
|
|
18
34
|
oChartItemFlex.findItem = function(oModifier, aItems, sName) {
|
|
@@ -35,6 +51,26 @@ sap.ui.define([
|
|
|
35
51
|
}, Promise.resolve());
|
|
36
52
|
};
|
|
37
53
|
|
|
54
|
+
/* Disabled until clarified with flex
|
|
55
|
+
oChartItemFlex.createChangeHandler = function(fApply, fComplete, fRevert) {
|
|
56
|
+
return {
|
|
57
|
+
"changeHandler": {
|
|
58
|
+
applyChange: function(oChange, oControl, mPropertyBag) {
|
|
59
|
+
return fnQueueChange(oControl, function(){return fApply(oChange, oControl, mPropertyBag);});
|
|
60
|
+
},
|
|
61
|
+
completeChangeContent: function(oChange, mChangeSpecificInfo, mPropertyBag) {
|
|
62
|
+
fComplete(oChange, mChangeSpecificInfo, mPropertyBag);
|
|
63
|
+
},
|
|
64
|
+
revertChange: function(oChange, oControl, mPropertyBag) {
|
|
65
|
+
return fnQueueChange(fRevert(oChange, oControl, mPropertyBag, true));
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"layers": {
|
|
69
|
+
"USER": true
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
};*/
|
|
73
|
+
|
|
38
74
|
oChartItemFlex.addItem = oChartItemFlex.createAddChangeHandler();
|
|
39
75
|
oChartItemFlex.removeItem = oChartItemFlex.createRemoveChangeHandler();
|
|
40
76
|
oChartItemFlex.moveItem = oChartItemFlex.createMoveChangeHandler();
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
if (!oControl._bWaitForBindChanges) {
|
|
18
18
|
oControl._bWaitForBindChanges = true;
|
|
19
19
|
Engine.getInstance().waitForChanges(oControl).then(function() {
|
|
20
|
-
oControl.
|
|
20
|
+
oControl.rebind();
|
|
21
21
|
delete oControl._bWaitForBindChanges;
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
'sap/base/util/merge', 'sap/ui/mdc/condition/FilterOperatorUtil'
|
|
8
|
-
], function(merge, FilterOperatorUtil) {
|
|
7
|
+
'sap/base/util/merge', 'sap/base/Log', 'sap/ui/mdc/condition/FilterOperatorUtil'
|
|
8
|
+
], function(merge, Log, FilterOperatorUtil) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/*
|
|
@@ -30,6 +30,15 @@ sap.ui.define([
|
|
|
30
30
|
return oControl._pQueue;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
|
|
34
|
+
var fnGetDelegate = function(sDelegatePath) {
|
|
35
|
+
return new Promise(function(fResolveLoad, fRejectLoad){
|
|
36
|
+
sap.ui.require([
|
|
37
|
+
sDelegatePath
|
|
38
|
+
], fResolveLoad, fRejectLoad);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
33
42
|
var fDetermineFilterControl = function(oControl) {
|
|
34
43
|
var oController = oControl && oControl.getEngine ? oControl.getEngine().getController(oControl, "Filter") : null;
|
|
35
44
|
return oController ? oController.getFilterControl() : null;
|
|
@@ -79,10 +88,24 @@ sap.ui.define([
|
|
|
79
88
|
});
|
|
80
89
|
}
|
|
81
90
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
}
|
|
91
|
+
return oModifier.getProperty(oControl, "delegate")
|
|
92
|
+
.then(function(oDelegate){
|
|
93
|
+
return fnGetDelegate(oDelegate.name);
|
|
94
|
+
})
|
|
95
|
+
.then(function(Delegate){
|
|
96
|
+
var fnDelegateAddCondition = Delegate && (Delegate.getFilterDelegate ? Delegate.getFilterDelegate().addCondition : Delegate.addCondition);
|
|
97
|
+
if (fnDelegateAddCondition) {
|
|
98
|
+
return fnDelegateAddCondition(oChangeContent.name, oControl, mPropertyBag)
|
|
99
|
+
.catch(function(oEx) {
|
|
100
|
+
Log.error("Error during Delegate.addCondition call: " + oEx);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
.finally(function() {
|
|
105
|
+
if (oFilterControl && oFilterControl.addCondition) {
|
|
106
|
+
return oFilterControl.addCondition(oChangeContent.name, oChangeContent.condition);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
86
109
|
}
|
|
87
110
|
});
|
|
88
111
|
});
|
|
@@ -132,10 +155,24 @@ sap.ui.define([
|
|
|
132
155
|
});
|
|
133
156
|
}
|
|
134
157
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return
|
|
138
|
-
}
|
|
158
|
+
return oModifier.getProperty(oControl, "delegate")
|
|
159
|
+
.then(function(oDelegate){
|
|
160
|
+
return fnGetDelegate(oDelegate.name);
|
|
161
|
+
})
|
|
162
|
+
.then(function(Delegate){
|
|
163
|
+
var fnDelegateRemoveCondition = Delegate && (Delegate.getFilterDelegate ? Delegate.getFilterDelegate().removeCondition : Delegate.removeCondition);
|
|
164
|
+
if (fnDelegateRemoveCondition) {
|
|
165
|
+
return fnDelegateRemoveCondition(oChangeContent.name, oControl, mPropertyBag)
|
|
166
|
+
.catch(function(oEx) {
|
|
167
|
+
Log.error("Error during Delegate.removeCondition call: " + oEx);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
.finally(function() {
|
|
172
|
+
if (oFilterControl && oFilterControl.removeCondition) {
|
|
173
|
+
return oFilterControl.removeCondition(oChangeContent.name, oChangeContent.condition);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
139
176
|
}
|
|
140
177
|
}
|
|
141
178
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define(['./FilterItemFlex', './ConditionFlex'], function(FilterItemFlex, ConditionFlex) {
|
|
7
|
+
sap.ui.define(['./FilterItemFlex', './ConditionFlex', './PropertyInfoFlex'], function(FilterItemFlex, ConditionFlex, PropertyInfoFlex) {
|
|
8
8
|
"use strict";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -12,7 +12,7 @@ sap.ui.define(['./FilterItemFlex', './ConditionFlex'], function(FilterItemFlex,
|
|
|
12
12
|
*
|
|
13
13
|
* @alias sap.ui.mdc.flexibility.FilterBar
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.100.0
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
return {
|
|
@@ -20,6 +20,7 @@ sap.ui.define(['./FilterItemFlex', './ConditionFlex'], function(FilterItemFlex,
|
|
|
20
20
|
"removeFilter": FilterItemFlex.createRemoveChangeHandler(),
|
|
21
21
|
"moveFilter": FilterItemFlex.createMoveChangeHandler(),
|
|
22
22
|
"addCondition": ConditionFlex.addCondition,
|
|
23
|
-
"removeCondition": ConditionFlex.removeCondition
|
|
23
|
+
"removeCondition": ConditionFlex.removeCondition,
|
|
24
|
+
"addPropertyInfo": PropertyInfoFlex.addPropertyInfo
|
|
24
25
|
};
|
|
25
26
|
}, /* bExport= */true);
|
|
@@ -15,7 +15,7 @@ sap.ui.define(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], function (FlexRuntimeI
|
|
|
15
15
|
element: oControl
|
|
16
16
|
}).then(function () {
|
|
17
17
|
if (bExecuteRebindForTable) {
|
|
18
|
-
oControl.
|
|
18
|
+
oControl.rebind();
|
|
19
19
|
} else if (bExecuteRebindForChart) {
|
|
20
20
|
oControl.rebind();
|
|
21
21
|
}
|
|
@@ -21,7 +21,6 @@ sap.ui.define([
|
|
|
21
21
|
* @param {object} Delegate The control specific delegate
|
|
22
22
|
* @param {string} sDataPropertyName The property name which should be added
|
|
23
23
|
* @param {object} oControl The control defined as <code>selectorElement</code> in the change
|
|
24
|
-
* @param {object} oChangeContent The current change content
|
|
25
24
|
* @param {object} mPropertyBag Instance of property bag from Flex change API
|
|
26
25
|
*/
|
|
27
26
|
beforeAddItem: function(Delegate, sDataPropertyName, oControl, mPropertyBag) {
|
|
@@ -5,10 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
'sap/ui/fl/changeHandler/Base'
|
|
9
|
-
|
|
8
|
+
'sap/ui/fl/changeHandler/Base',
|
|
9
|
+
'./ItemBaseFlex'
|
|
10
|
+
], function(Base, ItemBaseFlex) {
|
|
10
11
|
"use strict";
|
|
11
12
|
|
|
13
|
+
var oLinkHandler = Object.assign({}, ItemBaseFlex);
|
|
14
|
+
oLinkHandler.findItem = function(oModifier, aActions, sName) {
|
|
15
|
+
return Promise.resolve(sap.ui.getCore().byId(sName));
|
|
16
|
+
};
|
|
17
|
+
|
|
12
18
|
/**
|
|
13
19
|
* Change handlers for adding and remove of a link in sap.ui.mdc.link.Panel.
|
|
14
20
|
*
|
|
@@ -118,7 +124,7 @@ sap.ui.define([
|
|
|
118
124
|
href: oMetadataOfNewItem.href,
|
|
119
125
|
target: oMetadataOfNewItem.target,
|
|
120
126
|
icon: oMetadataOfNewItem.icon,
|
|
121
|
-
visible:
|
|
127
|
+
visible: true
|
|
122
128
|
});
|
|
123
129
|
})
|
|
124
130
|
.then(function(oItem){
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
sap.ui.define([], function() {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
//obsolete
|
|
10
|
+
var oPropertyInfoFlex = {};
|
|
11
|
+
|
|
12
|
+
oPropertyInfoFlex.addPropertyInfo = {
|
|
13
|
+
"changeHandler": {
|
|
14
|
+
applyChange: function(oChange, oControl, mPropertyBag) {
|
|
15
|
+
},
|
|
16
|
+
completeChangeContent: function(oChange, mChangeSpecificInfo, mPropertyBag) {
|
|
17
|
+
},
|
|
18
|
+
revertChange: function(oChange, oControl, mPropertyBag) {
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"layers": {
|
|
22
|
+
"USER": true
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return oPropertyInfoFlex;
|
|
27
|
+
});
|
|
@@ -7,13 +7,13 @@ sap.ui.define(["sap/ui/mdc/p13n/Engine"], function(Engine) {
|
|
|
7
7
|
"use strict";
|
|
8
8
|
var fRebindControl = function(oControl) {
|
|
9
9
|
var bExecuteRebindForTable = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound();
|
|
10
|
-
var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart")
|
|
10
|
+
var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart"));
|
|
11
11
|
if (bExecuteRebindForTable || bExecuteRebindForChart) {
|
|
12
12
|
if (!oControl._bWaitForBindChanges) {
|
|
13
13
|
oControl._bWaitForBindChanges = true;
|
|
14
14
|
Engine.getInstance().waitForChanges(oControl).then(function() {
|
|
15
15
|
if (bExecuteRebindForTable) {
|
|
16
|
-
oControl.
|
|
16
|
+
oControl.rebind();
|
|
17
17
|
} else if (bExecuteRebindForChart) {
|
|
18
18
|
oControl.rebind();
|
|
19
19
|
}
|
|
@@ -58,7 +58,7 @@ sap.ui.define([
|
|
|
58
58
|
* Calculates the type of link that should be displayed
|
|
59
59
|
* @param {Object} oPayload - The Payload of the Link given by the application
|
|
60
60
|
* @returns {Promise} once resolved an object oLinkType is returned
|
|
61
|
-
* @returns {
|
|
61
|
+
* @returns {int} oLinkType.type - 0 (Text) | 1 (Direct Link) | 2 (Popup)
|
|
62
62
|
* @returns {sap.ui.mdc.link.LinkItem} oLinkType.directLink - instance of {@link sap.ui.mdc.link.LinkItem} which should be used for direct navigation
|
|
63
63
|
* In case oLinkType.type is 0 the Link will get rendered as a text
|
|
64
64
|
* In case oLinkType.type is 1 the Link will get rendered as a Link but it won't have a Popover - it will trigger a direct navigation on press
|
|
@@ -216,7 +216,7 @@ sap.ui.define([
|
|
|
216
216
|
* Retrieves the actual targets for the navigation of the link. This uses the UShell loaded by the {@link sap.ui.mdc.link.Factory} to retrieve
|
|
217
217
|
* the navigation targets from the FLP service.
|
|
218
218
|
* @private
|
|
219
|
-
* @param {
|
|
219
|
+
* @param {string} sAppStateKey key of the appstate (not used yet)
|
|
220
220
|
* @param {Object} oSemanticAttributes calculated by _calculateSemanticAttributes
|
|
221
221
|
* @param {Object} oPayload given by the application
|
|
222
222
|
* @param {Object} oInfoLog of type {@link sap.ui.mdc.link.Log} - the corresponding InfoLog of the Link
|
|
@@ -345,7 +345,7 @@ sap.ui.define([
|
|
|
345
345
|
* This will return an array of the SemanticObjects as strings given by the payload.
|
|
346
346
|
* @private
|
|
347
347
|
* @param {Object} oPayload defined by the application
|
|
348
|
-
* @returns {
|
|
348
|
+
* @returns {string[]} containing SemanticObjects based of the payload
|
|
349
349
|
*/
|
|
350
350
|
FlpLinkDelegate._getSemanticObjects = function(oPayload) {
|
|
351
351
|
return oPayload.semanticObjects ? oPayload.semanticObjects : [];
|
|
@@ -403,7 +403,7 @@ sap.ui.define([
|
|
|
403
403
|
* Converts a given array of SemanticObjectMapping into a Map containing SemanticObjects as Keys and a Map of it's corresponding SemanticObjectMappings as values.
|
|
404
404
|
* @private
|
|
405
405
|
* @param {Object[]} aSemanticObjectMappings of type {@link sap.ui.mdc.link.SemanticObjectMapping}
|
|
406
|
-
* @returns {
|
|
406
|
+
* @returns {Object<string, Object<string, string>>} mSemanticObjectMappings
|
|
407
407
|
*/
|
|
408
408
|
FlpLinkDelegate._convertSemanticObjectMapping = function(aSemanticObjectMappings) {
|
|
409
409
|
if (!aSemanticObjectMappings.length) {
|
|
@@ -426,7 +426,7 @@ sap.ui.define([
|
|
|
426
426
|
* Converts a given array of SemanticObjectUnavailableActions into a Map containing SemanticObjects as Keys and a Map of it's corresponding SemanticObjectUnavailableActions as values.
|
|
427
427
|
* @private
|
|
428
428
|
* @param {Object[]} aSemanticObjectUnavailableActions of type {@link sap.ui.mdc.link.SemanticObjectUnavailableAction}
|
|
429
|
-
* @returns {
|
|
429
|
+
* @returns {Object<string, Object<string, string>>} mSemanticObjectUnavailableActions
|
|
430
430
|
*/
|
|
431
431
|
FlpLinkDelegate._convertSemanticObjectUnavailableAction = function(aSemanticObjectUnavailableActions) {
|
|
432
432
|
if (!aSemanticObjectUnavailableActions.length) {
|
|
@@ -443,4 +443,4 @@ sap.ui.define([
|
|
|
443
443
|
};
|
|
444
444
|
|
|
445
445
|
return FlpLinkDelegate;
|
|
446
|
-
}
|
|
446
|
+
});
|