@openui5/sap.ui.mdc 1.96.1 → 1.97.1
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 +1 -1
- package/THIRDPARTY.txt +2 -1
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +2 -2
- package/src/sap/ui/mdc/ActionToolbar.js +3 -8
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +2 -2
- package/src/sap/ui/mdc/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/ChartDelegateNew.js +1 -1
- package/src/sap/ui/mdc/ChartNew.js +2 -2
- package/src/sap/ui/mdc/ChartNewRenderer.js +3 -3
- package/src/sap/ui/mdc/ChartRenderer.js +1 -1
- package/src/sap/ui/mdc/Control.js +2 -2
- package/src/sap/ui/mdc/Delegate.js +1 -1
- package/src/sap/ui/mdc/Element.js +2 -2
- package/src/sap/ui/mdc/Field.js +4 -3
- package/src/sap/ui/mdc/FilterBar.js +2 -2
- package/src/sap/ui/mdc/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +17 -3
- package/src/sap/ui/mdc/Link.js +2 -2
- package/src/sap/ui/mdc/LinkDelegate.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +3 -2
- package/src/sap/ui/mdc/Table.js +175 -135
- package/src/sap/ui/mdc/TableDelegate.js +14 -12
- package/src/sap/ui/mdc/ValueHelp.js +34 -8
- package/src/sap/ui/mdc/ValueHelpDelegate.js +21 -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/chart/ChartSettings.js +1 -1
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +1 -1
- package/src/sap/ui/mdc/chart/DimensionItem.js +1 -1
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +1 -1
- package/src/sap/ui/mdc/chart/Item.js +1 -1
- package/src/sap/ui/mdc/chart/MeasureItem.js +1 -1
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +1 -1
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -2
- package/src/sap/ui/mdc/chart/SelectionHandler.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +2 -2
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +2 -2
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +2 -2
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillBreadcrumbsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ItemNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +2 -2
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionConverter.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionModel.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionModelPropertyBinding.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +2 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +7 -3
- package/src/sap/ui/mdc/condition/Operator.js +10 -10
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
- package/src/sap/ui/mdc/condition/RangeOperator.js +2 -2
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +18 -18
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +21 -0
- package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
- package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
- package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/library.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
- package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +1 -1
- package/src/sap/ui/mdc/enum/BaseType.js +1 -1
- package/src/sap/ui/mdc/enum/ConditionValidated.js +1 -1
- package/src/sap/ui/mdc/enum/ContentMode.js +1 -1
- package/src/sap/ui/mdc/enum/EditMode.js +1 -1
- package/src/sap/ui/mdc/enum/FieldDisplay.js +1 -1
- package/src/sap/ui/mdc/enum/OutParameterMode.js +1 -1
- package/src/sap/ui/mdc/enum/PersistenceMode.js +1 -1
- package/src/sap/ui/mdc/enum/SelectType.js +1 -1
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/ConditionType.js +8 -8
- package/src/sap/ui/mdc/field/ConditionsType.js +8 -8
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +2 -2
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +2 -2
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +55 -48
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderer.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldMultiInputRenderer.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +7 -7
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +21 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -2
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/InParameter.js +2 -2
- package/src/sap/ui/mdc/field/ListFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +2 -2
- package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +2 -2
- package/src/sap/ui/mdc/field/OutParameter.js +2 -2
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +3 -2
- package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
- package/src/sap/ui/mdc/field/content/ContentFactory.js +24 -22
- package/src/sap/ui/mdc/field/content/DateContent.js +129 -3
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +10 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/field/content/SearchContent.js +1 -1
- package/src/sap/ui/mdc/field/content/TimeContent.js +9 -2
- package/src/sap/ui/mdc/field/content/UnitContent.js +24 -5
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +26 -18
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +2 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/SortFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +1 -1
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +1 -1
- package/src/sap/ui/mdc/library.js +20 -4
- package/src/sap/ui/mdc/link/ContactDetails.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +2 -2
- package/src/sap/ui/mdc/link/Factory.js +2 -2
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +2 -2
- package/src/sap/ui/mdc/link/LinkItem.js +2 -2
- package/src/sap/ui/mdc/link/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +2 -2
- package/src/sap/ui/mdc/link/PanelItem.js +2 -2
- package/src/sap/ui/mdc/link/PanelListItem.js +2 -2
- package/src/sap/ui/mdc/link/SelectionDialog.js +2 -2
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +2 -2
- package/src/sap/ui/mdc/messagebundle.properties +13 -4
- package/src/sap/ui/mdc/messagebundle_ar.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_bg.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +27 -13
- package/src/sap/ui/mdc/messagebundle_cy.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_en.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -19
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +17 -3
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_fr.properties +22 -8
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +15 -1
- package/src/sap/ui/mdc/messagebundle_hi.properties +17 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_iw.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +24 -10
- package/src/sap/ui/mdc/messagebundle_kk.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_lt.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_no.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_pl.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_pt.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_th.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_tr.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +18 -4
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +17 -3
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +4 -4
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -2
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +2 -2
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +66 -38
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +13 -4
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +33 -10
- package/src/sap/ui/mdc/p13n/FlexUtil.js +1 -1
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +2 -2
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +22 -11
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +21 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +12 -7
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +1 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +1 -1
- package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +3 -3
- package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +20 -4
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +41 -33
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ListView.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +35 -10
- package/src/sap/ui/mdc/table/CreationRow.js +15 -14
- package/src/sap/ui/mdc/table/GridTableType.js +12 -11
- package/src/sap/ui/mdc/table/PropertyHelper.js +22 -22
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +24 -25
- package/src/sap/ui/mdc/table/RowSettings.js +9 -7
- package/src/sap/ui/mdc/table/TableSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +5 -5
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +16 -72
- package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -1
- package/src/sap/ui/mdc/ui/Container.js +3 -3
- package/src/sap/ui/mdc/ui/ContainerItem.js +3 -3
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/FormatUtil.js +1 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +1 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +2 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +112 -320
- package/src/sap/ui/mdc/util/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/util/loadModules.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +3 -2
- package/src/sap/ui/mdc/valuehelp/Popover.js +14 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +33 -2
- package/src/sap/ui/mdc/valuehelp/base/Content.js +36 -6
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -2
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +43 -16
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +26 -32
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +9 -4
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +16 -4
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +102 -96
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @extends sap.ui.mdc.chartNew.PropertyHelperNew
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.97.1
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @experimental
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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(["sap/ui/mdc/util/TypeUtil"], function(TypeUtil) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
|
|
@@ -35,11 +35,11 @@ sap.ui.define([
|
|
|
35
35
|
var TableMap = new window.WeakMap(); // To store table-related information for easy access in the delegate.
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Delegate class for sap.ui.mdc.Table and ODataV4
|
|
38
|
+
* Delegate class for <code>sap.ui.mdc.Table</code> and <code>ODataV4</code>.
|
|
39
39
|
* Enables additional analytical capabilities.
|
|
40
|
-
* <b>Note:</b> The class is experimental and the API/behavior is not finalized.
|
|
41
40
|
*
|
|
42
41
|
* @author SAP SE
|
|
42
|
+
* @experimental
|
|
43
43
|
* @private
|
|
44
44
|
* @ui5-restricted sap.fe
|
|
45
45
|
* @MDC_PUBLIC_CANDIDATE
|
|
@@ -49,12 +49,30 @@ sap.ui.define([
|
|
|
49
49
|
var Delegate = Object.assign({}, TableDelegate);
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Fetches the model-specific
|
|
52
|
+
* Fetches the model-specific <code>PropertyHelper</code> class or instance.
|
|
53
|
+
*
|
|
54
|
+
* <b>Note:</b> The PropertyHelper adds the extension of a property to the reserved attribute "extension". It is not allowed to add an "extension"
|
|
55
|
+
* attribute in the standard property infos.
|
|
56
|
+
*
|
|
57
|
+
* @example <caption>Initialize a PropertyHelper with extensions:</caption>
|
|
58
|
+
* new PropertyHelper(
|
|
59
|
+
* [{
|
|
60
|
+
* name: "propA",
|
|
61
|
+
* label: "Property A",
|
|
62
|
+
* extension: {
|
|
63
|
+
* messageType: "Success"
|
|
64
|
+
* }
|
|
65
|
+
* }, {
|
|
66
|
+
* name: "propB",
|
|
67
|
+
* label: "Property B"
|
|
68
|
+
* }]
|
|
69
|
+
* )
|
|
53
70
|
*
|
|
54
71
|
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
55
72
|
* @param {object[]} aProperties The property infos
|
|
56
73
|
* @param {Promise<object<string, object>|null>} mExtensions The property extensions
|
|
57
|
-
* @returns {Promise<sap.ui.mdc.table.V4AnalyticsPropertyHelper>} A
|
|
74
|
+
* @returns {Promise<sap.ui.mdc.table.V4AnalyticsPropertyHelper>} A <code>Promise</code> that resolves with the <code>PropertyHelper</code> class
|
|
75
|
+
* or instance
|
|
58
76
|
* @private
|
|
59
77
|
* @ui5-restricted sap.ui.mdc
|
|
60
78
|
*/
|
|
@@ -66,7 +84,11 @@ sap.ui.define([
|
|
|
66
84
|
|
|
67
85
|
/**
|
|
68
86
|
* Fetches the property extensions.
|
|
69
|
-
*
|
|
87
|
+
*
|
|
88
|
+
* <b>Note:</b> Property extensions are adding model-specific information. To ensure a clear separation from the standard property information,
|
|
89
|
+
* the extensions need to be passed separately to the constructor, together with their attribute metadata. An extension has to be provided as a
|
|
90
|
+
* key-value pair, where the key is the name of the property and the value is the extension of this property. It is not allowed to provide
|
|
91
|
+
* extensions without the corresponding attribute metadata.
|
|
70
92
|
*
|
|
71
93
|
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
72
94
|
* @param {object[]} aProperties The property infos
|
|
@@ -79,11 +101,11 @@ sap.ui.define([
|
|
|
79
101
|
|
|
80
102
|
/**
|
|
81
103
|
* Retrieves the relevant metadata that will be used for the table binding, and returns the property info array.
|
|
82
|
-
* If not
|
|
83
|
-
* When
|
|
104
|
+
* If it is not overridden, this method returns the same as <code>fetchProperties</code>.
|
|
105
|
+
* When overriding the method make sure the returned result is consistent with what is returned by <code>fetchProperties</code>.
|
|
84
106
|
*
|
|
85
|
-
* @param {
|
|
86
|
-
* @returns {Promise} Once resolved, an array of
|
|
107
|
+
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
108
|
+
* @returns {Promise} Once resolved, an array of <code>PropertyInfo</code> objects is returned
|
|
87
109
|
* @protected
|
|
88
110
|
*/
|
|
89
111
|
Delegate.fetchPropertiesForBinding = function(oTable) {
|
|
@@ -92,8 +114,8 @@ sap.ui.define([
|
|
|
92
114
|
|
|
93
115
|
/**
|
|
94
116
|
* Fetches the property extensions that will be used for the table binding.
|
|
95
|
-
* If not
|
|
96
|
-
* When
|
|
117
|
+
* If it is not overridden, this method returns the same as <code>fetchPropertyExtensions</code>.
|
|
118
|
+
* When overriding the method make sure the returned result is consistent with what is returned by <code>fetchPropertyExtensions</code>.
|
|
97
119
|
*
|
|
98
120
|
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
99
121
|
* @param {object[]} aProperties The property infos
|
|
@@ -111,6 +133,7 @@ sap.ui.define([
|
|
|
111
133
|
* @param {sap.ui.model.Context} oContext Binding context
|
|
112
134
|
* @param {string} sProperty The name of the grouped property
|
|
113
135
|
* @returns {string | undefined} The group header title. If <code>undefined</code> is returned, the default group header title is set.
|
|
136
|
+
* @private
|
|
114
137
|
*/
|
|
115
138
|
Delegate.formatGroupHeader = function(oTable, oContext, sProperty) {};
|
|
116
139
|
|
|
@@ -125,14 +148,14 @@ sap.ui.define([
|
|
|
125
148
|
});
|
|
126
149
|
};
|
|
127
150
|
|
|
128
|
-
Delegate.validateState = function(
|
|
151
|
+
Delegate.validateState = function(oTable, oState, sKey) {
|
|
129
152
|
var oBaseStates = TableDelegate.validateState.apply(this, arguments);
|
|
130
153
|
var oValidation;
|
|
131
154
|
|
|
132
155
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
133
156
|
|
|
134
157
|
if (sKey == "Sort" && oState.sorters) {
|
|
135
|
-
if (!checkForValidity(
|
|
158
|
+
if (isAnalyticsEnabled(oTable) && !checkForValidity(oTable, oState.items, oState.sorters)) {
|
|
136
159
|
oValidation = {
|
|
137
160
|
validation: coreLibrary.MessageType.Information,
|
|
138
161
|
message: oResourceBundle.getText("table.PERSONALIZATION_DIALOG_SORT_RESTRICTION")
|
|
@@ -142,9 +165,10 @@ sap.ui.define([
|
|
|
142
165
|
var aAggregateProperties = Object.keys(oState.aggregations);
|
|
143
166
|
var aAggregateGroupableProperties = [];
|
|
144
167
|
var oListFormat = ListFormat.getInstance();
|
|
145
|
-
aAggregateProperties.forEach(function(
|
|
146
|
-
|
|
147
|
-
|
|
168
|
+
aAggregateProperties.forEach(function(sProperty) {
|
|
169
|
+
var oProperty = oTable.getPropertyHelper().getProperty(sProperty);
|
|
170
|
+
if (oProperty && oProperty.groupable) {
|
|
171
|
+
aAggregateGroupableProperties.push(sProperty);
|
|
148
172
|
}
|
|
149
173
|
});
|
|
150
174
|
|
|
@@ -158,11 +182,11 @@ sap.ui.define([
|
|
|
158
182
|
var sMessage;
|
|
159
183
|
var aAggregateProperties = oState.aggregations && Object.keys(oState.aggregations);
|
|
160
184
|
|
|
161
|
-
if (!checkForValidity(
|
|
185
|
+
if (!checkForValidity(oTable, oState.items, aAggregateProperties)) {
|
|
162
186
|
sMessage = oResourceBundle.getText("table.PERSONALIZATION_DIALOG_TOTAL_RESTRICTION");
|
|
163
187
|
}
|
|
164
188
|
|
|
165
|
-
if (!checkForValidity(
|
|
189
|
+
if (isAnalyticsEnabled(oTable) && !checkForValidity(oTable, oState.items, oState.sorters)) {
|
|
166
190
|
sMessage = sMessage ? sMessage + "\n" + oResourceBundle.getText("table.PERSONALIZATION_DIALOG_SORT_RESTRICTION")
|
|
167
191
|
: oResourceBundle.getText("table.PERSONALIZATION_DIALOG_SORT_RESTRICTION");
|
|
168
192
|
}
|
|
@@ -184,7 +208,7 @@ sap.ui.define([
|
|
|
184
208
|
* <b>Note:</b> To remove a binding info parameter, the value must be set to <code>undefined</code>. For more information, see
|
|
185
209
|
* {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters}.
|
|
186
210
|
*
|
|
187
|
-
* @param {sap.ui.mdc.Table}
|
|
211
|
+
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
188
212
|
* @param {object} oDelegatePayload The delegate payload
|
|
189
213
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
190
214
|
* @function
|
|
@@ -202,7 +226,7 @@ sap.ui.define([
|
|
|
202
226
|
* <code>model</code>... must be provided in the {@link #updateBindingInfo updateBindingInfo} method always,
|
|
203
227
|
* and those keys must not be changed conditionally.
|
|
204
228
|
*
|
|
205
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
229
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
206
230
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model.
|
|
207
231
|
* @param {sap.ui.model.ListBinding} [oBinding] The binding instance of the table
|
|
208
232
|
* @protected
|
|
@@ -256,8 +280,14 @@ sap.ui.define([
|
|
|
256
280
|
}
|
|
257
281
|
|
|
258
282
|
var oPropertyHelper = oTable.getPropertyHelper();
|
|
259
|
-
var
|
|
260
|
-
|
|
283
|
+
var oProperty = oPropertyHelper.getProperty(oMDCColumn.getDataProperty());
|
|
284
|
+
|
|
285
|
+
if (!oProperty) {
|
|
286
|
+
return [];
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
var aGroupProperties = oProperty.getGroupableProperties();
|
|
290
|
+
var aAggregateProperties = oProperty.getAggregatableProperties();
|
|
261
291
|
var oPopover = oTable._oPopover;
|
|
262
292
|
var oAggregatePopoverItem;
|
|
263
293
|
var oGroupPopoverItem;
|
|
@@ -277,11 +307,11 @@ sap.ui.define([
|
|
|
277
307
|
});
|
|
278
308
|
}
|
|
279
309
|
|
|
280
|
-
if (oTable.isGroupingEnabled() && aGroupProperties
|
|
310
|
+
if (oTable.isGroupingEnabled() && aGroupProperties.length > 0) {
|
|
281
311
|
oGroupPopoverItem = createGroupPopoverItem(aGroupProperties, oMDCColumn);
|
|
282
312
|
}
|
|
283
313
|
|
|
284
|
-
if (oTable.isAggregationEnabled() && aAggregateProperties
|
|
314
|
+
if (oTable.isAggregationEnabled() && aAggregateProperties.length > 0) {
|
|
285
315
|
oAggregatePopoverItem = createAggregatePopoverItem(aAggregateProperties, oMDCColumn);
|
|
286
316
|
}
|
|
287
317
|
|
|
@@ -291,8 +321,8 @@ sap.ui.define([
|
|
|
291
321
|
function createGroupPopoverItem(aGroupProperties, oMDCColumn) {
|
|
292
322
|
var aGroupChildren = aGroupProperties.map(function(oGroupProperty) {
|
|
293
323
|
return new Item({
|
|
294
|
-
text: oGroupProperty.
|
|
295
|
-
key: oGroupProperty.
|
|
324
|
+
text: oGroupProperty.label,
|
|
325
|
+
key: oGroupProperty.name
|
|
296
326
|
});
|
|
297
327
|
});
|
|
298
328
|
|
|
@@ -312,8 +342,8 @@ sap.ui.define([
|
|
|
312
342
|
function createAggregatePopoverItem(aAggregateProperties, oMDCColumn) {
|
|
313
343
|
var aAggregateChildren = aAggregateProperties.map(function(oAggregateProperty) {
|
|
314
344
|
return new Item({
|
|
315
|
-
text: oAggregateProperty.
|
|
316
|
-
key: oAggregateProperty.
|
|
345
|
+
text: oAggregateProperty.label,
|
|
346
|
+
key: oAggregateProperty.name
|
|
317
347
|
});
|
|
318
348
|
});
|
|
319
349
|
|
|
@@ -515,10 +545,8 @@ sap.ui.define([
|
|
|
515
545
|
var aUnitProperties = [];
|
|
516
546
|
|
|
517
547
|
aProperties.forEach(function(oProperty) {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
if (oUnitProperty) {
|
|
521
|
-
aUnitProperties.push(oUnitProperty);
|
|
548
|
+
if (oProperty.unitProperty) {
|
|
549
|
+
aUnitProperties.push(oProperty.unitProperty);
|
|
522
550
|
}
|
|
523
551
|
});
|
|
524
552
|
|
|
@@ -554,9 +582,9 @@ sap.ui.define([
|
|
|
554
582
|
/**
|
|
555
583
|
* Compares the message type and returns the message with higher priority.
|
|
556
584
|
*
|
|
557
|
-
* @param {Object} oBaseState
|
|
558
|
-
* @param {Object} oValidationState
|
|
559
|
-
* @return {Object}
|
|
585
|
+
* @param {Object} oBaseState Message set by the base <code>TableDelegate</code>
|
|
586
|
+
* @param {Object} oValidationState Message set by the <code>ODataV4Delegate</code>
|
|
587
|
+
* @return {Object} The message with higher priority
|
|
560
588
|
* @private
|
|
561
589
|
*/
|
|
562
590
|
function mergeValidation(oBaseState, oValidationState) {
|
|
@@ -570,10 +598,10 @@ sap.ui.define([
|
|
|
570
598
|
}
|
|
571
599
|
|
|
572
600
|
/**
|
|
573
|
-
* Configures the inner table to support the
|
|
601
|
+
* Configures the inner table to support the personalization settings of the MDC table.
|
|
574
602
|
*
|
|
575
603
|
* @param {sap.ui.mdc.Table} oTable Instance of the MDC table
|
|
576
|
-
* @return {Promise} A
|
|
604
|
+
* @return {Promise} A <code>Promise</code> that revolves when the inner table is configured
|
|
577
605
|
*/
|
|
578
606
|
function configureInnerTable(oTable) {
|
|
579
607
|
return oTable._isOfType(TableType.Table) ? configureGridTable(oTable) : configureResponsiveTable(oTable);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
var ODataV4ValueHelpDelegate = Object.assign({}, ValueHelpDelegate);
|
|
17
17
|
|
|
18
18
|
ODataV4ValueHelpDelegate.isSearchSupported = function(oPayload, oListBinding) {
|
|
19
|
-
return
|
|
19
|
+
return !!oListBinding.changeParameters;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
var _waitForBindingData = function (oBinding) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
|
|
@@ -20,7 +20,8 @@ sap.ui.define([
|
|
|
20
20
|
"sap/m/VBox",
|
|
21
21
|
"sap/ui/base/ManagedObjectObserver",
|
|
22
22
|
"sap/ui/core/ResizeHandler",
|
|
23
|
-
"sap/ui/mdc/p13n/panels/ChartItemPanelNew"
|
|
23
|
+
"sap/ui/mdc/p13n/panels/ChartItemPanelNew",
|
|
24
|
+
"sap/m/MessageStrip"
|
|
24
25
|
], function (
|
|
25
26
|
V4ChartDelegate,
|
|
26
27
|
loadModules,
|
|
@@ -37,7 +38,8 @@ sap.ui.define([
|
|
|
37
38
|
VBox,
|
|
38
39
|
ManagedObjectObserver,
|
|
39
40
|
ResizeHandler,
|
|
40
|
-
ChartItemPanel
|
|
41
|
+
ChartItemPanel,
|
|
42
|
+
MessageStrip
|
|
41
43
|
) {
|
|
42
44
|
"use strict";
|
|
43
45
|
/**
|
|
@@ -325,7 +327,14 @@ sap.ui.define([
|
|
|
325
327
|
//var aRolesAvailable = [MDCLib.ChartItemRoleType.axis1, MDCLib.ChartItemRoleType.axis2, MDCLib.ChartItemRoleType.axis3, MDCLib.ChartItemRoleType.category, MDCLib.ChartItemRoleType.category2, MDCLib.ChartItemRoleType.series];
|
|
326
328
|
var oArguments = {panelConfig: oLayoutConfig};
|
|
327
329
|
|
|
328
|
-
|
|
330
|
+
var oPanel = new ChartItemPanel(oArguments);
|
|
331
|
+
|
|
332
|
+
if (oMDCChart.getChartType() === "heatmap"){
|
|
333
|
+
var MDCRb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
334
|
+
oPanel.setMessageStrip(new MessageStrip({text: MDCRb.getText("chart.PERSONALIZATION_DIALOG_MEASURE_WARNING"), type:"Warning"}));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return Promise.resolve(oPanel);
|
|
329
338
|
};
|
|
330
339
|
|
|
331
340
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
|
|
@@ -14,9 +14,10 @@ sap.ui.define([
|
|
|
14
14
|
"sap/ui/core/library",
|
|
15
15
|
"sap/ui/mdc/p13n/StateUtil",
|
|
16
16
|
"sap/ui/core/Element",
|
|
17
|
-
"sap/ui/mdc/p13n/DefaultProviderRegistry",
|
|
18
|
-
"sap/ui/mdc/p13n/UIManager"
|
|
19
|
-
|
|
17
|
+
"sap/ui/mdc/p13n/modules/DefaultProviderRegistry",
|
|
18
|
+
"sap/ui/mdc/p13n/UIManager",
|
|
19
|
+
"sap/ui/mdc/p13n/modules/StateHandlerRegistry"
|
|
20
|
+
], function (AdaptationProvider, merge, Log, PropertyHelper, FlexModificationHandler, MessageStrip, coreLibrary, StateUtil, Element, DefaultProviderRegistry, UIManager, StateHandlerRegistry) {
|
|
20
21
|
"use strict";
|
|
21
22
|
|
|
22
23
|
var ERROR_INSTANCING = "Engine: This class is a singleton. Please use the getInstance() method instead.";
|
|
@@ -39,7 +40,7 @@ sap.ui.define([
|
|
|
39
40
|
* @extends sap.ui.base.Object
|
|
40
41
|
*
|
|
41
42
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
43
|
+
* @version 1.97.1
|
|
43
44
|
*
|
|
44
45
|
* @private
|
|
45
46
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -56,12 +57,16 @@ sap.ui.define([
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
this._aRegistry = [];
|
|
60
|
+
this._aStateHandlers = [];
|
|
59
61
|
|
|
60
62
|
//Default Provider Registry to be used for internal PersistenceProvider functionality access
|
|
61
63
|
this.defaultProviderRegistry = DefaultProviderRegistry.getInstance();
|
|
62
64
|
|
|
63
65
|
//UIManager to be used for p13n UI creation
|
|
64
66
|
this.uimanager = UIManager.getInstance(this);
|
|
67
|
+
|
|
68
|
+
//Default state Handler Registry to be used for state event handling
|
|
69
|
+
this.stateHandlerRegistry = StateHandlerRegistry.getInstance();
|
|
65
70
|
}
|
|
66
71
|
});
|
|
67
72
|
|
|
@@ -200,7 +205,7 @@ sap.ui.define([
|
|
|
200
205
|
control: oController.getAdaptationControl(),
|
|
201
206
|
changeOperations: mchangeOperations,
|
|
202
207
|
deltaAttributes: ["name"],
|
|
203
|
-
propertyInfo: oRegistryEntry.helper.getProperties().map(function(a){return {name: a.
|
|
208
|
+
propertyInfo: oRegistryEntry.helper.getProperties().map(function(a){return {name: a.name};})
|
|
204
209
|
};
|
|
205
210
|
|
|
206
211
|
//Only execute change calculation in case there is a difference (--> example: press 'Ok' without a difference)
|
|
@@ -236,6 +241,9 @@ sap.ui.define([
|
|
|
236
241
|
|
|
237
242
|
var oModificationSetting = this._determineModification(oControl);
|
|
238
243
|
return oModificationSetting.handler.reset(oResetConfig, oModificationSetting.payload).then(function(){
|
|
244
|
+
//trigger statehandlerregistry notification
|
|
245
|
+
this.stateHandlerRegistry.fireChange(oControl);
|
|
246
|
+
|
|
239
247
|
//Re-Init housekeeping after update
|
|
240
248
|
return this.initAdaptation(oControl, aKeys).then(function(oPropertyHelper){
|
|
241
249
|
aKeys.forEach(function(sKey){
|
|
@@ -283,7 +291,11 @@ sap.ui.define([
|
|
|
283
291
|
Engine.prototype._processChanges = function(vControl, aChanges) {
|
|
284
292
|
if (aChanges instanceof Array && aChanges.length > 0) {
|
|
285
293
|
var oModificationSetting = this._determineModification(vControl);
|
|
286
|
-
return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload)
|
|
294
|
+
return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload)
|
|
295
|
+
.then(function(aChanges){
|
|
296
|
+
this.stateHandlerRegistry.fireChange(Engine.getControlInstance(vControl));
|
|
297
|
+
return aChanges;
|
|
298
|
+
}.bind(this));
|
|
287
299
|
} else {
|
|
288
300
|
return Promise.resolve([]);
|
|
289
301
|
}
|
|
@@ -319,7 +331,10 @@ sap.ui.define([
|
|
|
319
331
|
fResolveRTA = resolve;
|
|
320
332
|
});
|
|
321
333
|
|
|
322
|
-
oModificationHandler.processChanges =
|
|
334
|
+
oModificationHandler.processChanges = function(aChanges) {
|
|
335
|
+
fResolveRTA(aChanges);
|
|
336
|
+
return Promise.resolve(aChanges);
|
|
337
|
+
};
|
|
323
338
|
|
|
324
339
|
this._setModificationHandler(oControl, oModificationHandler);
|
|
325
340
|
|
|
@@ -998,11 +1013,17 @@ sap.ui.define([
|
|
|
998
1013
|
* This method can be used for debugging to retrieve the complete registry.
|
|
999
1014
|
*/
|
|
1000
1015
|
Engine.prototype._getRegistry = function() {
|
|
1001
|
-
var oRegistry = {
|
|
1016
|
+
var oRegistry = {
|
|
1017
|
+
stateHandlerRegistry: this.stateHandlerRegistry,
|
|
1018
|
+
defaultProviderRegistry: this.defaultProviderRegistry,
|
|
1019
|
+
controlRegistry: {}
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1002
1022
|
this._aRegistry.forEach(function(sKey){
|
|
1003
1023
|
var oControl = sap.ui.getCore().byId(sKey);
|
|
1004
|
-
oRegistry[sKey] = _mRegistry.get(oControl);
|
|
1024
|
+
oRegistry.controlRegistry[sKey] = _mRegistry.get(oControl);
|
|
1005
1025
|
});
|
|
1026
|
+
|
|
1006
1027
|
return oRegistry;
|
|
1007
1028
|
};
|
|
1008
1029
|
|
|
@@ -1017,6 +1038,8 @@ sap.ui.define([
|
|
|
1017
1038
|
_mRegistry.delete(this);
|
|
1018
1039
|
this.defaultProviderRegistry.destroy();
|
|
1019
1040
|
this.defaultProviderRegistry = null;
|
|
1041
|
+
this.stateHandlerRegistry.destroy();
|
|
1042
|
+
this.stateHandlerRegistry = null;
|
|
1020
1043
|
this.uimanager.destroy();
|
|
1021
1044
|
this.uimanager = null;
|
|
1022
1045
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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([
|
|
@@ -216,7 +216,7 @@ sap.ui.define([
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
mItem.name = oProperty.name;
|
|
219
|
-
mItem.label = oProperty.
|
|
219
|
+
mItem.label = oProperty.label || oProperty.name;
|
|
220
220
|
mItem.tooltip = oProperty.tooltip;
|
|
221
221
|
|
|
222
222
|
if (mItemsGrouped) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
-
"sap/ui/core/Control", "sap/ui/fl/variants/VariantManagement", "sap/ui/fl/Utils", "sap/ui/mdc/enum/PersistenceMode"
|
|
8
|
-
], function(CoreControl, VariantManagement, Utils, mode) {
|
|
7
|
+
"sap/ui/core/Control", "sap/ui/fl/variants/VariantManagement", "sap/ui/fl/Utils", "sap/ui/mdc/enum/PersistenceMode", "sap/ui/layout/VerticalLayout"
|
|
8
|
+
], function(CoreControl, VariantManagement, Utils, mode, VerticalLayout) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -78,12 +78,23 @@ sap.ui.define([
|
|
|
78
78
|
this._bmodeLocked = true;
|
|
79
79
|
|
|
80
80
|
if (this.getMode() === mode.Transient) {
|
|
81
|
-
|
|
81
|
+
var oVM = new VariantManagement(this.getId() + "--vm", {"for": this.getAssociation("for")});
|
|
82
82
|
this._oModelPromise.then(function (oModel) {
|
|
83
|
-
|
|
84
|
-
}
|
|
83
|
+
oVM.setModel(oModel, Utils.VARIANT_MODEL_NAME);
|
|
84
|
+
});
|
|
85
|
+
this._oWrapper = new VerticalLayout(this.getId() + "--accWrapper", {
|
|
86
|
+
content: [
|
|
87
|
+
oVM
|
|
88
|
+
]
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
this._oWrapper.onAfterRendering = function() {
|
|
92
|
+
VerticalLayout.prototype.onAfterRendering.apply(this, arguments);
|
|
93
|
+
this.getDomRef().setAttribute("aria-hidden", true);
|
|
94
|
+
};
|
|
95
|
+
|
|
85
96
|
var oStatic = sap.ui.getCore().getUIArea(sap.ui.getCore().getStaticAreaRef());
|
|
86
|
-
oStatic.addContent(this.
|
|
97
|
+
oStatic.addContent(this._oWrapper);
|
|
87
98
|
}
|
|
88
99
|
|
|
89
100
|
return this;
|
|
@@ -109,12 +120,12 @@ sap.ui.define([
|
|
|
109
120
|
};
|
|
110
121
|
|
|
111
122
|
PersistenceProvider.prototype.exit = function () {
|
|
112
|
-
if (this.
|
|
123
|
+
if (this._oWrapper) {
|
|
113
124
|
var oStatic = sap.ui.getCore().getUIArea(sap.ui.getCore().getStaticAreaRef());
|
|
114
|
-
oStatic.removeContent(this.
|
|
125
|
+
oStatic.removeContent(this._oWrapper);
|
|
115
126
|
|
|
116
|
-
this.
|
|
117
|
-
this.
|
|
127
|
+
this._oWrapper.destroy();
|
|
128
|
+
this._oWrapper = null;
|
|
118
129
|
}
|
|
119
130
|
|
|
120
131
|
this._oModelPromise = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
|
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.mdc.util.PropertyHelper
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.97.1
|
|
33
33
|
*
|
|
34
34
|
* @private
|
|
35
35
|
* @experimental
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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([
|
|
@@ -108,6 +108,26 @@ sap.ui.define([
|
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Attaches an event handler to the <code>StateUtil</code>.
|
|
113
|
+
* The event handler may be fired every time a user triggers a personalization change for a control instance during runtime.
|
|
114
|
+
*
|
|
115
|
+
* @param {function} fnListener fnFunction The handler function to call when the event occurs
|
|
116
|
+
*/
|
|
117
|
+
attachStateChange: function(fnListener) {
|
|
118
|
+
sap.ui.mdc.p13n.Engine.getInstance().stateHandlerRegistry.attachChange(fnListener);
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Removes a previously attached state change event handler from the <code>StateUtil</code> class.
|
|
123
|
+
* The passed parameters must match those used for registration with {@link StateUtil#attachChange} beforehand.
|
|
124
|
+
*
|
|
125
|
+
* @param {function} fnListener fnFunction The handler function to detach from the event
|
|
126
|
+
*/
|
|
127
|
+
detachStateChange: function(fnListener) {
|
|
128
|
+
sap.ui.mdc.p13n.Engine.getInstance().stateHandlerRegistry.detachChange(fnListener);
|
|
129
|
+
},
|
|
130
|
+
|
|
111
131
|
_externalizeKeys: function(oInternalState) {
|
|
112
132
|
var mKeysForState = {
|
|
113
133
|
Sort: "sorters",
|