@openui5/sap.ui.mdc 1.134.0 → 1.136.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.toml +649 -0
- package/THIRDPARTY.txt +23 -23
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +2 -2
- package/src/sap/ui/mdc/ActionToolbar.js +2 -2
- 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/ChartRenderer.js +1 -1
- package/src/sap/ui/mdc/Control.js +2 -2
- package/src/sap/ui/mdc/DefaultTypeMap.js +2 -2
- package/src/sap/ui/mdc/Element.js +2 -2
- package/src/sap/ui/mdc/Field.js +3 -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 +3 -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 +2 -2
- package/src/sap/ui/mdc/Table.js +54 -8
- package/src/sap/ui/mdc/TableDelegate.js +1 -1
- package/src/sap/ui/mdc/ValueHelp.js +105 -28
- package/src/sap/ui/mdc/ValueHelpDelegate.js +88 -19
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +10 -2
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +2 -2
- package/src/sap/ui/mdc/chart/ChartImplementationContainerRenderer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +2 -2
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +1 -1
- package/src/sap/ui/mdc/chart/Item.js +1 -1
- package/src/sap/ui/mdc/chart/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/chart/SelectionButton.js +1 -1
- package/src/sap/ui/mdc/chart/SelectionButtonDisplay.js +1 -1
- package/src/sap/ui/mdc/chart/SelectionButtonItem.js +1 -1
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarControlFactory.js +3 -3
- package/src/sap/ui/mdc/chart/Util.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/ConditionValidateException.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +91 -57
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +41 -4
- package/src/sap/ui/mdc/condition/Operator.js +18 -13
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +2 -2
- package/src/sap/ui/mdc/condition/RangeOperator.js +2 -2
- package/src/sap/ui/mdc/designtime/Util.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +22 -18
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +12 -9
- 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/table/Table.designtime.js +11 -8
- 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/FilterBarValidationStatus.js +1 -1
- package/src/sap/ui/mdc/enum/LinkType.js +1 -1
- package/src/sap/ui/mdc/enum/OperatorOverwrite.js +1 -1
- package/src/sap/ui/mdc/enum/OperatorValueType.js +1 -1
- package/src/sap/ui/mdc/enum/ProcessingStrategy.js +1 -1
- package/src/sap/ui/mdc/enum/PropagationReason.js +1 -1
- package/src/sap/ui/mdc/enum/ReasonMode.js +1 -1
- package/src/sap/ui/mdc/enum/SelectType.js +1 -1
- package/src/sap/ui/mdc/enums/ActionToolbarActionAlignment.js +1 -1
- package/src/sap/ui/mdc/enums/BaseType.js +1 -1
- package/src/sap/ui/mdc/enums/ChartItemRoleType.js +1 -1
- package/src/sap/ui/mdc/enums/ChartItemType.js +1 -1
- package/src/sap/ui/mdc/enums/ChartP13nMode.js +1 -1
- package/src/sap/ui/mdc/enums/ChartToolbarActionType.js +1 -1
- package/src/sap/ui/mdc/enums/ConditionValidated.js +1 -1
- package/src/sap/ui/mdc/enums/ContentMode.js +1 -1
- package/src/sap/ui/mdc/enums/FieldDisplay.js +1 -1
- package/src/sap/ui/mdc/enums/FieldEditMode.js +1 -1
- package/src/sap/ui/mdc/enums/FilterBarP13nMode.js +1 -1
- package/src/sap/ui/mdc/enums/FilterBarValidationStatus.js +1 -1
- package/src/sap/ui/mdc/enums/LinkType.js +1 -1
- package/src/sap/ui/mdc/enums/OperatorName.js +1 -1
- package/src/sap/ui/mdc/enums/OperatorOverwrite.js +1 -1
- package/src/sap/ui/mdc/enums/OperatorValueType.js +1 -1
- package/src/sap/ui/mdc/enums/ProcessingStrategy.js +1 -1
- package/src/sap/ui/mdc/enums/ReasonMode.js +1 -1
- package/src/sap/ui/mdc/enums/RequestShowContainerReason.js +62 -0
- package/src/sap/ui/mdc/enums/TableGrowingMode.js +1 -1
- package/src/sap/ui/mdc/enums/TableMultiSelectMode.js +1 -1
- package/src/sap/ui/mdc/enums/TableP13nMode.js +1 -1
- package/src/sap/ui/mdc/enums/TableRowActionType.js +1 -1
- package/src/sap/ui/mdc/enums/TableRowCountMode.js +1 -1
- package/src/sap/ui/mdc/enums/TableSelectionMode.js +1 -1
- package/src/sap/ui/mdc/enums/TableType.js +1 -1
- package/src/sap/ui/mdc/enums/ValueHelpPropagationReason.js +1 -1
- package/src/sap/ui/mdc/enums/ValueHelpSelectionType.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +2 -2
- package/src/sap/ui/mdc/field/ConditionTypeMixin.js +2 -2
- package/src/sap/ui/mdc/field/ConditionsType.js +2 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +2 -2
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +2 -2
- package/src/sap/ui/mdc/field/FieldBase.js +104 -47
- 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/FieldInfoBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInput.js +44 -4
- 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 +48 -4
- package/src/sap/ui/mdc/field/FieldMultiInputRenderer.js +1 -1
- 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/TokenDisplay.js +2 -2
- package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +43 -3
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +1 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +2 -2
- package/src/sap/ui/mdc/field/content/DateContent.js +1 -1
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +1 -1
- package/src/sap/ui/mdc/field/content/DefaultContent.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/field/content/UnitContent.js +1 -1
- package/src/sap/ui/mdc/field/splitValue.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +2 -2
- 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/PropertyInfoValidator.js +1 -1
- 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/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.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/Chart.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.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/PropertyInfoFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/SortFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +5 -1
- package/src/sap/ui/mdc/flexibility/Util.js +1 -1
- package/src/sap/ui/mdc/flexibility/actiontoolbar/CombineAction.js +2 -2
- package/src/sap/ui/mdc/flexibility/actiontoolbar/SplitAction.js +2 -2
- package/src/sap/ui/mdc/flexibility/helpers/addKeyOrName.js +1 -1
- package/src/sap/ui/mdc/flexibility/xConfigFlex.js +1 -1
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +1 -1
- package/src/sap/ui/mdc/i18n/interaction.xml +43 -0
- package/src/sap/ui/mdc/library.js +8 -4
- package/src/sap/ui/mdc/library.support.js +1 -1
- package/src/sap/ui/mdc/link/Factory.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/PanelRenderer.js +1 -1
- 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_bg.properties +14 -14
- package/src/sap/ui/mdc/messagebundle_de.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_es.properties +1 -1
- package/src/sap/ui/mdc/messagebundle_sl.properties +3 -3
- package/src/sap/ui/mdc/messagebundle_th.properties +8 -8
- 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 +2 -2
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/delegate/FilterIntegrationDefault.js +1 -1
- package/src/sap/ui/mdc/odata/TypeMap.js +2 -2
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +52 -29
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +2 -2
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- 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/ChartDelegate.js +3 -3
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +1 -1
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +2 -2
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +4 -4
- 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 +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnFreezeController.js +161 -0
- 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/LinkPanelController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/SelectionController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ShowDetailsController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +1 -1
- package/src/sap/ui/mdc/rules/Table.support.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +20 -6
- package/src/sap/ui/mdc/table/ColumnSettings.js +2 -2
- package/src/sap/ui/mdc/table/CreationRow.js +2 -2
- package/src/sap/ui/mdc/table/DragDropConfig.js +2 -2
- package/src/sap/ui/mdc/table/GridTableType.js +64 -2
- package/src/sap/ui/mdc/table/PropertyHelper.js +18 -4
- package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +2 -2
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +12 -6
- package/src/sap/ui/mdc/table/RowActionItem.js +2 -2
- package/src/sap/ui/mdc/table/RowSettings.js +2 -2
- package/src/sap/ui/mdc/table/TableSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +1 -1
- package/src/sap/ui/mdc/table/TreeTableType.js +1 -1
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +114 -47
- package/src/sap/ui/mdc/table/menu/GroupHeaderRowContextMenu.js +1 -1
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +1 -1
- package/src/sap/ui/mdc/table/utils/Personalization.js +20 -2
- package/src/sap/ui/mdc/themes/base/AdaptFiltersPanel.less +13 -8
- package/src/sap/ui/mdc/themes/base/AdaptationFilterBar.less +7 -2
- package/src/sap/ui/mdc/themes/base/FieldBase.less +11 -5
- package/src/sap/ui/mdc/themes/base/FilterBar.less +5 -3
- package/src/sap/ui/mdc/themes/base/GroupView.less +37 -32
- package/src/sap/ui/mdc/themes/base/InfoPanel.less +28 -22
- package/src/sap/ui/mdc/themes/base/ListView.less +20 -15
- package/src/sap/ui/mdc/themes/base/PersonalizationDialog.less +6 -13
- package/src/sap/ui/mdc/themes/base/QueryPanel.less +5 -4
- package/src/sap/ui/mdc/themes/base/Table.less +6 -0
- package/src/sap/ui/mdc/themes/base/TokenDisplay.less +27 -29
- package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +18 -22
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +31 -27
- package/src/sap/ui/mdc/themes/base/library.source.less +1 -3
- package/src/sap/ui/mdc/ushell/LinkDelegate.js +23 -23
- package/src/sap/ui/mdc/ushell/SemanticObjectMapping.js +2 -2
- package/src/sap/ui/mdc/ushell/SemanticObjectMappingItem.js +2 -2
- package/src/sap/ui/mdc/ushell/SemanticObjectUnavailableAction.js +2 -2
- 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/DensityHelper.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +1 -1
- package/src/sap/ui/mdc/util/InfoBar.js +2 -2
- package/src/sap/ui/mdc/util/InfoBarRenderer.js +1 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +2 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +38 -10
- package/src/sap/ui/mdc/util/PropertyHelperUtil.js +2 -2
- package/src/sap/ui/mdc/util/TypeMap.js +1 -1
- 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/CollectiveSearchSelect.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +36 -17
- package/src/sap/ui/mdc/valuehelp/FilterBar.js +2 -2
- package/src/sap/ui/mdc/valuehelp/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/valuehelp/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Popover.js +73 -24
- package/src/sap/ui/mdc/valuehelp/base/Container.js +6 -20
- package/src/sap/ui/mdc/valuehelp/base/Content.js +13 -25
- package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +4 -3
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -2
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +6 -6
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +12 -2
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +12 -2
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +68 -34
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +8 -4
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +165 -92
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +206 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +44 -0
- package/ui5.yaml +1 -1
- package/.reuse/dep5 +0 -471
- package/src/sap/ui/mdc/themes/base/SelectionDialog.less +0 -5
- package/src/sap/ui/mdc/themes/base/Wrapper.less +0 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 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(
|
|
@@ -39,7 +39,7 @@ sap.ui.define(
|
|
|
39
39
|
* <b>Note:</b> The <code>FilterBar</code> can only be used for a {@link sap.ui.mdc.valuehelp.Dialog Dialog} and not on its own.
|
|
40
40
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.136.0
|
|
43
43
|
* @constructor
|
|
44
44
|
* @public
|
|
45
45
|
* @since 1.124.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -11,7 +11,8 @@ sap.ui.define([
|
|
|
11
11
|
'sap/ui/mdc/util/loadModules',
|
|
12
12
|
'sap/ui/thirdparty/jquery',
|
|
13
13
|
'sap/ui/core/library',
|
|
14
|
-
'sap/ui/Device'
|
|
14
|
+
'sap/ui/Device',
|
|
15
|
+
'sap/ui/mdc/enums/RequestShowContainerReason'
|
|
15
16
|
], (
|
|
16
17
|
Container,
|
|
17
18
|
OperatorName,
|
|
@@ -19,7 +20,8 @@ sap.ui.define([
|
|
|
19
20
|
loadModules,
|
|
20
21
|
jQuery,
|
|
21
22
|
coreLibrary,
|
|
22
|
-
Device
|
|
23
|
+
Device,
|
|
24
|
+
RequestShowContainerReason
|
|
23
25
|
) => {
|
|
24
26
|
"use strict";
|
|
25
27
|
|
|
@@ -35,7 +37,7 @@ sap.ui.define([
|
|
|
35
37
|
* @param {object} [mSettings] Initial settings for the new control
|
|
36
38
|
* @class Container for the {@link sap.ui.mdc.ValueHelp ValueHelp} element showing a popover.
|
|
37
39
|
* @extends sap.ui.mdc.valuehelp.base.Container
|
|
38
|
-
* @version 1.
|
|
40
|
+
* @version 1.136.0
|
|
39
41
|
* @constructor
|
|
40
42
|
*
|
|
41
43
|
* @public
|
|
@@ -115,11 +117,14 @@ sap.ui.define([
|
|
|
115
117
|
const oPopover = this.getAggregation("_container");
|
|
116
118
|
|
|
117
119
|
if (!oPopover) {
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
if (!this._oGetContainerControlPromise) {
|
|
121
|
+
if (Device.system.phone) {
|
|
122
|
+
this._oGetContainerControlPromise = _getContainerControlPhone.call(this);
|
|
123
|
+
} else {
|
|
124
|
+
this._oGetContainerControlPromise = _getContainerControlDesktop.call(this);
|
|
125
|
+
}
|
|
122
126
|
}
|
|
127
|
+
return this._oGetContainerControlPromise;
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
let oValueHelpHeader;
|
|
@@ -194,6 +199,11 @@ sap.ui.define([
|
|
|
194
199
|
"sap/ui/core/InvisibleText",
|
|
195
200
|
"sap/ui/core/Lib"
|
|
196
201
|
]).then((aLoaded) => {
|
|
202
|
+
|
|
203
|
+
if (this.isDestroyStarted()) {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
|
|
197
207
|
let MPopover, MLibrary, ValueStateHeader, InvisibleText, Library;
|
|
198
208
|
[MPopover, MLibrary, Toolbar, ToolbarSpacer, ValueStateHeader, InvisibleText, Library] = aLoaded;
|
|
199
209
|
|
|
@@ -281,8 +291,14 @@ sap.ui.define([
|
|
|
281
291
|
"sap/ui/model/ParseException",
|
|
282
292
|
"sap/ui/mdc/field/ConditionType"
|
|
283
293
|
]).then((aLoaded) => {
|
|
294
|
+
|
|
295
|
+
if (this.isDestroyStarted()) {
|
|
296
|
+
return null;
|
|
297
|
+
}
|
|
298
|
+
|
|
284
299
|
let Dialog, Input, Button, ToggleButton, Bar, ScrollContainer, Title, ValueStateHeader, List, StandardListItem, MLibrary, IconPool, InvisibleText, Library, BindingMode, ParseException, ConditionType;
|
|
285
300
|
[Dialog, Input, Button, ToggleButton, Bar, ScrollContainer, Title, Toolbar, ToolbarSpacer, ValueStateHeader, List, StandardListItem, MLibrary, IconPool, InvisibleText, Library, BindingMode, FormatException, ParseException, ConditionType] = aLoaded;
|
|
301
|
+
|
|
286
302
|
const {TitleAlignment, ListMode, ListType} = MLibrary;
|
|
287
303
|
const oResourceBundleM = Library.getResourceBundleFor("sap.m");
|
|
288
304
|
const bSingleSelect = this.isSingleSelect();
|
|
@@ -570,14 +586,10 @@ sap.ui.define([
|
|
|
570
586
|
|
|
571
587
|
const oContent = this._getContent();
|
|
572
588
|
const oOpenPromise = this._retrievePromise("open");
|
|
573
|
-
Promise.resolve(oContent && oContent.onBeforeShow(true)).then(() => { // onBeforeShow should guarantee filtering is done, when we observe the table in showTypeahead
|
|
574
|
-
const oDelegate = this.getValueHelpDelegate();
|
|
589
|
+
Promise.resolve(oContent && oContent.onBeforeShow(true)).then(async () => { // onBeforeShow should guarantee filtering is done, when we observe the table in showTypeahead
|
|
575
590
|
const oValueHelp = this.getValueHelp();
|
|
576
|
-
|
|
577
|
-
return
|
|
578
|
-
// Only continue the opening process, if delegate confirms "showTypeahead" and open promise is not canceled (might happen due to focus loss in target control).
|
|
579
|
-
return bShowTypeahead && !oOpenPromise.isCanceled() ? true : Promise.reject();
|
|
580
|
-
});
|
|
591
|
+
const bShowTypeahead = bTypeahead ? await oValueHelp._requestShowContainer(this, RequestShowContainerReason.Filter) : true;
|
|
592
|
+
return bShowTypeahead && !oOpenPromise.isCanceled() ? true : Promise.reject(); // Only continue the opening process, if delegate confirms "showTypeahead" and open promise is not canceled (might happen due to focus loss in target control).
|
|
581
593
|
}).then(() => {
|
|
582
594
|
if (Device.system.phone) {
|
|
583
595
|
oPopover.open();
|
|
@@ -585,10 +597,16 @@ sap.ui.define([
|
|
|
585
597
|
this._openContainerByTarget(oPopover);
|
|
586
598
|
}
|
|
587
599
|
}).catch((oError) => {
|
|
588
|
-
this.
|
|
589
|
-
|
|
590
|
-
|
|
600
|
+
const oCurrentOpenPromise = this._retrievePromise("open");
|
|
601
|
+
|
|
602
|
+
const bCancelOpen = oOpenPromise === oCurrentOpenPromise; // only cancel if open promise is still the same (may change if valuehelp is opened again in another context)
|
|
603
|
+
if (bCancelOpen) {
|
|
604
|
+
this._cancelPromise(oOpenPromise);
|
|
605
|
+
if (oError && oError instanceof Error) { // Re-throw actual errors
|
|
606
|
+
throw oError;
|
|
607
|
+
}
|
|
591
608
|
}
|
|
609
|
+
|
|
592
610
|
});
|
|
593
611
|
};
|
|
594
612
|
|
|
@@ -604,11 +622,18 @@ sap.ui.define([
|
|
|
604
622
|
}
|
|
605
623
|
};
|
|
606
624
|
|
|
607
|
-
Popover.prototype.closeContainer = function() {
|
|
625
|
+
Popover.prototype.closeContainer = function(bDoNotRestoreFocus) {
|
|
608
626
|
|
|
609
627
|
Container.prototype.closeContainer.apply(this, arguments);
|
|
610
628
|
const oPopover = this.getAggregation("_container");
|
|
611
629
|
if (oPopover) {
|
|
630
|
+
if (bDoNotRestoreFocus) {
|
|
631
|
+
if (Device.system.phone) {
|
|
632
|
+
oPopover.oPopup._oPreviousFocus = null; // TODO - find real solution
|
|
633
|
+
} else {
|
|
634
|
+
oPopover._oPreviousFocus = null; // TODO - find real solution
|
|
635
|
+
}
|
|
636
|
+
}
|
|
612
637
|
oPopover.close();
|
|
613
638
|
}
|
|
614
639
|
|
|
@@ -619,15 +644,16 @@ sap.ui.define([
|
|
|
619
644
|
this._resolvePromise("open");
|
|
620
645
|
|
|
621
646
|
const oContent = this._getContent();
|
|
622
|
-
let oShowResult;
|
|
623
647
|
|
|
624
648
|
if (oContent) {
|
|
625
649
|
oContent.onContainerOpen();
|
|
626
|
-
|
|
650
|
+
oContent.onShow(true).then((oShowResult) => {
|
|
651
|
+
this.fireOpened({ itemId: oShowResult?.itemId, items: oShowResult?.items });
|
|
652
|
+
});
|
|
653
|
+
} else {
|
|
654
|
+
this.fireOpened({ itemId: undefined, items: undefined });
|
|
627
655
|
}
|
|
628
656
|
|
|
629
|
-
this.fireOpened({ itemId: oShowResult?.itemId, items: oShowResult?.items });
|
|
630
|
-
|
|
631
657
|
};
|
|
632
658
|
|
|
633
659
|
Popover.prototype.handleConfirmed = function(oEvent) {
|
|
@@ -674,7 +700,11 @@ sap.ui.define([
|
|
|
674
700
|
|
|
675
701
|
const oPopover = this.getAggregation("_container");
|
|
676
702
|
if (oPopover) {
|
|
677
|
-
|
|
703
|
+
if (Device.system.phone) {
|
|
704
|
+
oPopover.oPopup._oPreviousFocus = null; // TODO - find real solution
|
|
705
|
+
} else {
|
|
706
|
+
oPopover._oPreviousFocus = null; // TODO - find real solution
|
|
707
|
+
}
|
|
678
708
|
}
|
|
679
709
|
|
|
680
710
|
Container.prototype.handleClosed.apply(this, arguments);
|
|
@@ -692,6 +722,7 @@ sap.ui.define([
|
|
|
692
722
|
|
|
693
723
|
Popover.prototype.navigateInContent = function(iStep) {
|
|
694
724
|
const oContent = this._getContent();
|
|
725
|
+
this.bindContentToContainer(oContent); // adds navigation listener
|
|
695
726
|
if (oContent) {
|
|
696
727
|
oContent.navigate(iStep);
|
|
697
728
|
}
|
|
@@ -747,6 +778,11 @@ sap.ui.define([
|
|
|
747
778
|
|
|
748
779
|
};
|
|
749
780
|
|
|
781
|
+
/**
|
|
782
|
+
* Determines if the value help should be opened when the user used the arrow keys.
|
|
783
|
+
*
|
|
784
|
+
* @returns {boolean} If <code>true</code>, the value help should open when user used the arrow keys in the connected field control
|
|
785
|
+
*/
|
|
750
786
|
Popover.prototype.shouldOpenOnNavigate = function() {
|
|
751
787
|
|
|
752
788
|
const oContent = this._getContent();
|
|
@@ -782,6 +818,16 @@ sap.ui.define([
|
|
|
782
818
|
|
|
783
819
|
};
|
|
784
820
|
|
|
821
|
+
/**
|
|
822
|
+
* Determines if the content of the container supports typeahead.
|
|
823
|
+
*
|
|
824
|
+
* <b>Note:</b> This function is used by the container and content and must not be used from outside
|
|
825
|
+
*
|
|
826
|
+
* @returns {boolean} Flag if searching is supported
|
|
827
|
+
*
|
|
828
|
+
* @private
|
|
829
|
+
* @ui5-restricted sap.ui.mdc.ValueHelp, sap.ui.mdc.valueHelp.base.Content
|
|
830
|
+
*/
|
|
785
831
|
Popover.prototype.isTypeaheadSupported = function() {
|
|
786
832
|
|
|
787
833
|
if (Device.system.phone && (this.isSingleSelect() || this.isDialog())) {
|
|
@@ -799,6 +845,9 @@ sap.ui.define([
|
|
|
799
845
|
};
|
|
800
846
|
|
|
801
847
|
Popover.prototype.exit = function() {
|
|
848
|
+
|
|
849
|
+
this._oGetContainerControlPromise = undefined;
|
|
850
|
+
|
|
802
851
|
if (this._oCurrentContent) {
|
|
803
852
|
if (!this._oCurrentContent.isDestroyed()) {
|
|
804
853
|
this._oCurrentContent.destroy();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @param {object} [mSettings] Initial settings for the new element
|
|
27
27
|
* @class Container for the {@link sap.ui.mdc.ValueHelp ValueHelp} element.
|
|
28
28
|
* @extends sap.ui.core.Element
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.136.0
|
|
30
30
|
* @constructor
|
|
31
31
|
* @abstract
|
|
32
32
|
*
|
|
@@ -468,11 +468,11 @@ sap.ui.define([
|
|
|
468
468
|
/*
|
|
469
469
|
* Closes the container.
|
|
470
470
|
*/
|
|
471
|
-
Container.prototype.close = function() {
|
|
471
|
+
Container.prototype.close = function(bDoNotRestoreFocus) {
|
|
472
472
|
const oPromise = this._retrievePromise("open");
|
|
473
473
|
if (oPromise) {
|
|
474
474
|
if (oPromise.isSettled()) {
|
|
475
|
-
this.closeContainer();
|
|
475
|
+
this.closeContainer(bDoNotRestoreFocus);
|
|
476
476
|
} else {
|
|
477
477
|
this._cancelPromise(oPromise);
|
|
478
478
|
}
|
|
@@ -506,9 +506,10 @@ sap.ui.define([
|
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
508
|
* Closes the container control or element.
|
|
509
|
+
* @param {boolean} bDoNotRestoreFocus If set, closing must not restore the focus on the field
|
|
509
510
|
* @protected
|
|
510
511
|
*/
|
|
511
|
-
Container.prototype.closeContainer = function() {
|
|
512
|
+
Container.prototype.closeContainer = function(bDoNotRestoreFocus) {
|
|
512
513
|
|
|
513
514
|
};
|
|
514
515
|
|
|
@@ -901,33 +902,18 @@ sap.ui.define([
|
|
|
901
902
|
return oContainer && oContainer.getScrollDelegate && oContainer.getScrollDelegate();
|
|
902
903
|
};
|
|
903
904
|
|
|
904
|
-
/*
|
|
905
|
-
* Determines if the value help should be opened when the user focuses the connected control.
|
|
906
|
-
*
|
|
907
|
-
* @returns {Promise<boolean>} If <code>true</code>, the value help should open when user focuses the connected field control
|
|
908
|
-
*/
|
|
909
905
|
Container.prototype.shouldOpenOnFocus = function() {
|
|
910
906
|
const oDelegate = this.getValueHelpDelegate();
|
|
911
907
|
const oValueHelp = this.getValueHelp();
|
|
912
908
|
return oDelegate ? oDelegate.shouldOpenOnFocus(oValueHelp, this) : Promise.resolve(false);
|
|
913
909
|
};
|
|
914
910
|
|
|
915
|
-
/*
|
|
916
|
-
* Determines if the value help should be opened when the user clicks into the connected control.
|
|
917
|
-
*
|
|
918
|
-
* @returns {Promise<boolean>} If <code>true</code>, the value help should open when user clicks into the connected field control
|
|
919
|
-
*/
|
|
920
911
|
Container.prototype.shouldOpenOnClick = function() {
|
|
921
912
|
const oDelegate = this.getValueHelpDelegate();
|
|
922
913
|
const oValueHelp = this.getValueHelp();
|
|
923
914
|
return oDelegate ? oDelegate.shouldOpenOnClick(oValueHelp, this) : Promise.resolve(false);
|
|
924
915
|
};
|
|
925
916
|
|
|
926
|
-
/*
|
|
927
|
-
* Determines if the value help should be opened when the user used the arrow keys.
|
|
928
|
-
*
|
|
929
|
-
* @returns {boolean} If <code>true</code>, the value help should open when user used the arrow keys in the connected field control
|
|
930
|
-
*/
|
|
931
917
|
Container.prototype.shouldOpenOnNavigate = function() {
|
|
932
918
|
return false;
|
|
933
919
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -12,7 +12,8 @@ sap.ui.define([
|
|
|
12
12
|
'sap/ui/mdc/condition/FilterOperatorUtil',
|
|
13
13
|
'sap/ui/mdc/enums/ConditionValidated',
|
|
14
14
|
'sap/ui/mdc/enums/OperatorValueType',
|
|
15
|
-
'sap/base/strings/formatMessage'
|
|
15
|
+
'sap/base/strings/formatMessage',
|
|
16
|
+
'sap/ui/mdc/enums/RequestShowContainerReason'
|
|
16
17
|
], (
|
|
17
18
|
Element,
|
|
18
19
|
PromiseMixin,
|
|
@@ -21,7 +22,8 @@ sap.ui.define([
|
|
|
21
22
|
FilterOperatorUtil,
|
|
22
23
|
ConditionValidated,
|
|
23
24
|
OperatorValueType,
|
|
24
|
-
formatMessage
|
|
25
|
+
formatMessage,
|
|
26
|
+
RequestShowContainerReason
|
|
25
27
|
) => {
|
|
26
28
|
"use strict";
|
|
27
29
|
|
|
@@ -34,7 +36,7 @@ sap.ui.define([
|
|
|
34
36
|
* @param {object} [mSettings] Initial settings for the new element
|
|
35
37
|
* @class Content for the {@link sap.ui.mdc.valuehelp.base.Container Container} element.
|
|
36
38
|
* @extends sap.ui.core.Element
|
|
37
|
-
* @version 1.
|
|
39
|
+
* @version 1.136.0
|
|
38
40
|
* @constructor
|
|
39
41
|
* @abstract
|
|
40
42
|
*
|
|
@@ -348,7 +350,7 @@ sap.ui.define([
|
|
|
348
350
|
* Called if the content will be shown.
|
|
349
351
|
*
|
|
350
352
|
* @param {boolean} bInitial Indicates, if the content is shown for the first time since it's container opened.
|
|
351
|
-
* @returns {object} Object containing <code>itemId</code> and <code>items</code> where <code>itemId</code> is the ID of the initial selected item if it belongs to the value of the field and <code>items</code> is the number of found items (if it can be determined).
|
|
353
|
+
* @returns {Promise<object>} Promise returning Object containing <code>itemId</code> and <code>items</code> where <code>itemId</code> is the ID of the initial selected item if it belongs to the value of the field and <code>items</code> is the number of found items (if it can be determined).
|
|
352
354
|
* @private
|
|
353
355
|
* @ui5-restricted sap.ui.mdc.valuehelp.base.Container
|
|
354
356
|
*/
|
|
@@ -356,7 +358,7 @@ sap.ui.define([
|
|
|
356
358
|
this._bVisible = true;
|
|
357
359
|
this.handleConditionsUpdate();
|
|
358
360
|
|
|
359
|
-
return {};
|
|
361
|
+
return Promise.resolve({});
|
|
360
362
|
};
|
|
361
363
|
|
|
362
364
|
/**
|
|
@@ -439,18 +441,16 @@ sap.ui.define([
|
|
|
439
441
|
* @param {object} oChanges Change
|
|
440
442
|
* @protected
|
|
441
443
|
*/
|
|
442
|
-
Content.prototype.handleFilterValueUpdate = function(oChanges) {
|
|
444
|
+
Content.prototype.handleFilterValueUpdate = async function(oChanges) {
|
|
443
445
|
if (this.isContainerOpen() && this.isTypeahead()) {
|
|
444
|
-
const oDelegate = this.getValueHelpDelegate();
|
|
445
446
|
const oValueHelp = this.getValueHelpInstance();
|
|
446
447
|
|
|
447
448
|
// Everytime the filterValue changes, we consult the delegate again to decide if the typeahead should still be shown or hidden via a cancel event
|
|
448
449
|
// Please also see the default implementation of sap.ui.mdc.ValueHelpDelegate.showTypeahead
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
});
|
|
450
|
+
const bCancelOpen = !await oValueHelp._requestShowContainer(this.getParent(), RequestShowContainerReason.Filter);
|
|
451
|
+
if (bCancelOpen) {
|
|
452
|
+
this.fireCancel();
|
|
453
|
+
}
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
|
|
@@ -695,23 +695,11 @@ sap.ui.define([
|
|
|
695
695
|
return this.getMaxConditions() === 1;
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
-
/*
|
|
699
|
-
* Determines if the value help should be opened when the user clicks into the connected control.
|
|
700
|
-
*
|
|
701
|
-
* @returns {boolean} If <code>true</code>, the value help should open when user clicks into the connected field control
|
|
702
|
-
*/
|
|
703
698
|
Content.prototype.shouldOpenOnClick = function() {
|
|
704
699
|
return false;
|
|
705
700
|
};
|
|
706
701
|
|
|
707
|
-
/*
|
|
708
|
-
* Determines if the value help should be opened when the user used the arrow keys.
|
|
709
|
-
* By default navigation on closed popover is enabled.
|
|
710
|
-
*
|
|
711
|
-
* @returns {boolean} If <code>true</code>, the value help should open when user used the arrow keys in the connected field control
|
|
712
|
-
*/
|
|
713
702
|
Content.prototype.shouldOpenOnNavigate = function() {
|
|
714
|
-
// return !this.isSingleSelect();
|
|
715
703
|
return false;
|
|
716
704
|
};
|
|
717
705
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 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([
|
|
@@ -121,7 +121,7 @@ sap.ui.define([
|
|
|
121
121
|
* @extends sap.ui.core.Control
|
|
122
122
|
*
|
|
123
123
|
* @author SAP SE
|
|
124
|
-
* @version 1.
|
|
124
|
+
* @version 1.136.0
|
|
125
125
|
*
|
|
126
126
|
* @constructor
|
|
127
127
|
* @alias sap.ui.mdc.valuehelp.base.DefineConditionPanel
|
|
@@ -336,7 +336,7 @@ sap.ui.define([
|
|
|
336
336
|
|
|
337
337
|
if (!this.getModel("$i18n")) {
|
|
338
338
|
// if ResourceModel not provided from outside create own one
|
|
339
|
-
this.setModel(new ResourceModel({ bundleName: "sap/ui/mdc/messagebundle", async:
|
|
339
|
+
this.setModel(new ResourceModel({ bundleName: "sap/ui/mdc/messagebundle", async: true}), "$i18n");
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
if (this.getConditions().length === 0 && !this._sConditionsTimer) {
|
|
@@ -1709,6 +1709,7 @@ sap.ui.define([
|
|
|
1709
1709
|
let oValue0Field = aGridContent[iIndex];
|
|
1710
1710
|
let oValue1Field;
|
|
1711
1711
|
if (oValue0Field.hasOwnProperty("_iValueIndex") && oValue0Field._iValueIndex === 0) {
|
|
1712
|
+
oValue0Field.setValueHelp?.(_operatorSupportsValueHelp(oCondition.operator) && this._getValueHelp());
|
|
1712
1713
|
if (oCondition.values.length > 0) {
|
|
1713
1714
|
oValueBindingContext = this._oManagedObjectModel.getContext(oBindingContext.getPath() + "values/0/");
|
|
1714
1715
|
oValue0Field.setBindingContext(oValueBindingContext, "$this");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 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,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class Content for the <code>sap.ui.mdc.valuehelp.content.Dialog</code> element.
|
|
22
22
|
* @extends sap.ui.core.Control
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.136.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @param {object} [mSettings] Initial settings for the new element
|
|
45
45
|
* @class Content for the {@link sap.ui.mdc.valuehelp.base.Container Container} element.
|
|
46
46
|
* @extends sap.ui.mdc.valuehelp.base.ListContent
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.136.0
|
|
48
48
|
* @constructor
|
|
49
49
|
* @abstract
|
|
50
50
|
* @public
|
|
@@ -160,9 +160,9 @@ sap.ui.define([
|
|
|
160
160
|
|
|
161
161
|
FilterableListContent.prototype.handleFilterValueUpdate = function(oChanges) {
|
|
162
162
|
if ((this.isContainerOpening() || this.isContainerOpen()) && this._bContentBound) {
|
|
163
|
-
Promise.resolve(this.applyFilters()).finally(
|
|
164
|
-
ListContent.prototype.handleFilterValueUpdate.
|
|
165
|
-
}
|
|
163
|
+
Promise.resolve(this.applyFilters()).finally(() => {
|
|
164
|
+
ListContent.prototype.handleFilterValueUpdate.call(this, oChanges);
|
|
165
|
+
});
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
@@ -302,7 +302,7 @@ sap.ui.define([
|
|
|
302
302
|
return loadModules([
|
|
303
303
|
"sap/ui/mdc/FilterField"
|
|
304
304
|
]).then((aModules) => {
|
|
305
|
-
if (!oFilterBar.isDestroyed()) {
|
|
305
|
+
if (!this.isDestroyStarted() && !oFilterBar.isDestroyed()) {
|
|
306
306
|
const FilterField = aModules[0];
|
|
307
307
|
this._oSearchField = new FilterField(this.getId() + "-search", {
|
|
308
308
|
conditions: "{$filters>/conditions/" + sSearchPath + "}",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @param {object} [mSettings] Initial settings for the new element
|
|
22
22
|
* @class Content for the {@link sap.ui.mdc.valuehelp.base.Container Container} element.
|
|
23
23
|
* @extends sap.ui.mdc.valuehelp.base.Content
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.136.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @abstract
|
|
27
27
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 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,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new element
|
|
21
21
|
* @class Content for the {@link sap.ui.mdc.valuehelp.base.Container Container} element to provide a value help for boolean fields.
|
|
22
22
|
* @extends sap.ui.mdc.valuehelp.content.FixedList
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.136.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -66,6 +66,11 @@ sap.ui.define([
|
|
|
66
66
|
return loadModules([
|
|
67
67
|
"sap/ui/mdc/valuehelp/content/FixedListItem", "sap/ui/model/json/JSONModel"
|
|
68
68
|
]).then(function(aModules) {
|
|
69
|
+
|
|
70
|
+
if (this.isDestroyStarted()) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
|
|
69
74
|
const FixedListItem = aModules[0];
|
|
70
75
|
const JSONModel = aModules[1];
|
|
71
76
|
this._oModel = new JSONModel({
|
|
@@ -130,6 +135,11 @@ sap.ui.define([
|
|
|
130
135
|
|
|
131
136
|
};
|
|
132
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Determines if the value help should be opened when the user clicks into the connected control.
|
|
140
|
+
*
|
|
141
|
+
* @returns {boolean} If <code>true</code>, the value help should open when user clicks into the connected field control
|
|
142
|
+
*/
|
|
133
143
|
Bool.prototype.shouldOpenOnClick = function() {
|
|
134
144
|
|
|
135
145
|
return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] Initial settings for the new element
|
|
28
28
|
* @class Content for the {@link sap.ui.mdc.valuehelp.base.Container Container} element showing a condition panel.
|
|
29
29
|
* @extends sap.ui.mdc.valuehelp.base.Content
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.136.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @public
|
|
33
33
|
* @since 1.95.0
|
|
@@ -122,6 +122,11 @@ sap.ui.define([
|
|
|
122
122
|
aModules.push("sap/m/ScrollContainer");
|
|
123
123
|
}
|
|
124
124
|
return loadModules(aModules).then((aModules) => {
|
|
125
|
+
|
|
126
|
+
if (this.isDestroyStarted()) {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
const DefineConditionPanel = aModules[0];
|
|
126
131
|
const ManagedObjectModel = aModules[1];
|
|
127
132
|
// FilterOperatorUtil = aModules[2];
|
|
@@ -239,6 +244,11 @@ sap.ui.define([
|
|
|
239
244
|
getFooter: function() {
|
|
240
245
|
return this._retrievePromise("footer", () => {
|
|
241
246
|
return loadModules(["sap/m/library", "sap/m/Button"]).then((aModules) => {
|
|
247
|
+
|
|
248
|
+
if (this.isDestroyStarted()) {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
|
|
242
252
|
const oMLibrary = aModules[0];
|
|
243
253
|
const { ButtonType } = oMLibrary;
|
|
244
254
|
const Button = aModules[1];
|