@openui5/sap.m 1.130.0 → 1.131.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/THIRDPARTY.txt +1 -1
- package/package.json +4 -4
- package/src/sap/m/.library +1 -1
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSheet.js +1 -1
- package/src/sap/m/ActionTile.js +1 -1
- package/src/sap/m/ActionTileContent.js +1 -1
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +7 -4
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +10 -8
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +11 -7
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +2 -2
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/ContentConfig.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +1 -1
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/Dialog.js +44 -17
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateFormat.js +1 -1
- package/src/sap/m/DynamicDateOption.js +1 -1
- package/src/sap/m/DynamicDateRange.js +26 -17
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +37 -3
- package/src/sap/m/FacetFilterItem.js +9 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +1 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +2 -2
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +3 -2
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +11 -20
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/Image.js +18 -2
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/ImageRenderer.js +9 -5
- package/src/sap/m/Input.js +4 -2
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +7 -9
- package/src/sap/m/LinkTileContent.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +1 -1
- package/src/sap/m/ListItemBase.js +3 -2
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +67 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +38 -5
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +91 -3
- package/src/sap/m/MenuItemGroup.js +1 -1
- package/src/sap/m/MenuListItem.js +13 -1
- package/src/sap/m/MenuListItemRenderer.js +15 -5
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +6 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +16 -4
- package/src/sap/m/NavContainer.js +1 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +2 -2
- package/src/sap/m/OverflowToolbar.js +2 -3
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +1 -1
- package/src/sap/m/P13nConditionPanel.js +1 -2
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -2
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +26 -7
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +12 -1
- package/src/sap/m/PlanningCalendarLegendRenderer.js +10 -4
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +227 -36
- package/src/sap/m/PopoverRenderer.js +12 -1
- package/src/sap/m/ProgressIndicator.js +2 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -3
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +0 -4
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +11 -10
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +22 -8
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +45 -11
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +1 -3
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TileInfo.js +1 -1
- package/src/sap/m/TimePicker.js +2 -2
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +22 -11
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliderRenderer.js +1 -0
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/VariantManagement.js +2 -2
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +6 -3
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/designtime/Popover.designtime.js +6 -6
- package/src/sap/m/library.js +3 -3
- package/src/sap/m/messagebundle_en_US_saprigi.properties +14 -0
- package/src/sap/m/messagebundle_es.properties +11 -11
- package/src/sap/m/messagebundle_fr.properties +4 -4
- package/src/sap/m/messagebundle_ms.properties +2 -2
- package/src/sap/m/messagebundle_no.properties +1 -1
- package/src/sap/m/messagebundle_pl.properties +5 -5
- package/src/sap/m/p13n/AbstractContainer.js +3 -2
- package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
- package/src/sap/m/p13n/BasePanel.js +20 -4
- package/src/sap/m/p13n/Container.js +1 -2
- package/src/sap/m/p13n/Engine.js +3 -5
- package/src/sap/m/p13n/FilterController.js +1 -1
- package/src/sap/m/p13n/FilterPanel.js +1 -1
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/MessageStrip.js +2 -1
- package/src/sap/m/p13n/Popup.js +19 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +1 -1
- package/src/sap/m/p13n/SelectionPanel.js +14 -2
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/handler/xConfigHandler.js +6 -6
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +0 -1
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +0 -1
- package/src/sap/m/p13n/modification/ModificationHandler.js +0 -1
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +1 -1
- package/src/sap/m/p13n/modules/xConfigAPI.js +21 -16
- package/src/sap/m/plugins/CellSelector.js +24 -15
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
- package/src/sap/m/plugins/CopyProvider.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/plugins/UploadSetwithTable.js +35 -35
- package/src/sap/m/semantic/AddAction.js +1 -1
- package/src/sap/m/semantic/CancelAction.js +1 -1
- package/src/sap/m/semantic/DeleteAction.js +1 -1
- package/src/sap/m/semantic/DetailPage.js +1 -1
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/m/semantic/EditAction.js +1 -1
- package/src/sap/m/semantic/FavoriteAction.js +1 -1
- package/src/sap/m/semantic/FilterAction.js +1 -1
- package/src/sap/m/semantic/FilterSelect.js +1 -1
- package/src/sap/m/semantic/FlagAction.js +1 -1
- package/src/sap/m/semantic/ForwardAction.js +1 -1
- package/src/sap/m/semantic/FullscreenPage.js +1 -1
- package/src/sap/m/semantic/GroupAction.js +1 -1
- package/src/sap/m/semantic/GroupSelect.js +1 -1
- package/src/sap/m/semantic/MainAction.js +1 -1
- package/src/sap/m/semantic/MasterPage.js +1 -1
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +1 -1
- package/src/sap/m/semantic/NegativeAction.js +1 -1
- package/src/sap/m/semantic/OpenInAction.js +1 -1
- package/src/sap/m/semantic/PositiveAction.js +1 -1
- package/src/sap/m/semantic/PrintAction.js +1 -1
- package/src/sap/m/semantic/SaveAction.js +1 -1
- package/src/sap/m/semantic/Segment.js +1 -1
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -1
- package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/m/semantic/SemanticControl.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/table/ColumnWidthController.js +1 -1
- package/src/sap/m/table/Util.js +2 -2
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +1 -1
- package/src/sap/m/table/columnmenu/MenuBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/BarBase.less +12 -12
- package/src/sap/m/themes/base/Button.less +1 -3
- package/src/sap/m/themes/base/Carousel.less +3 -4
- package/src/sap/m/themes/base/CheckBox.less +40 -32
- package/src/sap/m/themes/base/ContextMenuSetting.less +1 -1
- package/src/sap/m/themes/base/CustomTile.less +2 -3
- package/src/sap/m/themes/base/Dialog.less +2 -17
- package/src/sap/m/themes/base/FeedContent.less +14 -12
- package/src/sap/m/themes/base/FeedInput.less +132 -133
- package/src/sap/m/themes/base/FeedListItem.less +62 -65
- package/src/sap/m/themes/base/GenericTag.less +56 -42
- package/src/sap/m/themes/base/GenericTile.less +1034 -516
- package/src/sap/m/themes/base/HeaderContainer.less +48 -33
- package/src/sap/m/themes/base/IconTabBar.less +9 -4
- package/src/sap/m/themes/base/IllustratedMessage.less +16 -14
- package/src/sap/m/themes/base/ImageContent.less +5 -5
- package/src/sap/m/themes/base/Input.less +21 -6
- package/src/sap/m/themes/base/InputBase.less +95 -62
- package/src/sap/m/themes/base/InputListItem.less +4 -3
- package/src/sap/m/themes/base/Label.less +46 -33
- package/src/sap/m/themes/base/LightBox.less +40 -36
- package/src/sap/m/themes/base/ListBase.less +44 -59
- package/src/sap/m/themes/base/ListItemBase.less +55 -76
- package/src/sap/m/themes/base/MenuButton.less +43 -41
- package/src/sap/m/themes/base/MenuListItem.less +11 -21
- package/src/sap/m/themes/base/MessageBox.less +16 -11
- package/src/sap/m/themes/base/MessageView.less +1 -0
- package/src/sap/m/themes/base/NotificationListBase.less +7 -5
- package/src/sap/m/themes/base/NotificationListGroup.less +16 -13
- package/src/sap/m/themes/base/NotificationListItem.less +14 -15
- package/src/sap/m/themes/base/ObjectAttribute.less +17 -15
- package/src/sap/m/themes/base/ObjectIdentifier.less +4 -3
- package/src/sap/m/themes/base/ObjectListItem.less +25 -27
- package/src/sap/m/themes/base/ObjectMarker.less +15 -7
- package/src/sap/m/themes/base/ObjectNumber.less +81 -41
- package/src/sap/m/themes/base/ObjectStatus.less +230 -205
- package/src/sap/m/themes/base/OverflowToolbarAssociativePopover.less +79 -76
- package/src/sap/m/themes/base/P13nColumnsPanel.less +9 -10
- package/src/sap/m/themes/base/P13nConditionPanel.less +7 -7
- package/src/sap/m/themes/base/P13nDialog.less +6 -6
- package/src/sap/m/themes/base/P13nFilterPanel.less +11 -11
- package/src/sap/m/themes/base/Popover.less +68 -7
- package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +0 -4
- package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +16 -0
- package/src/sap/m/themes/base/Table.less +1 -1
- package/src/sap/m/themes/base/p13n.Container.less +11 -10
- package/src/sap/m/themes/base/p13n.QueryPanel.less +7 -6
- package/src/sap/m/themes/base/p13n.SelectionPanel.less +21 -15
- package/src/sap/m/upload/ActionsPlaceholder.js +1 -1
- package/src/sap/m/upload/Column.js +1 -1
- package/src/sap/m/upload/FilePreviewDialog.js +42 -42
- package/src/sap/m/upload/UploadItem.js +1 -1
- package/src/sap/m/upload/UploadItemConfiguration.js +1 -1
- package/src/sap/m/upload/UploadSet.js +53 -25
- package/src/sap/m/upload/UploadSetItem.js +1 -1
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploaderTableItem.js +1 -1
package/src/sap/m/Popover.js
CHANGED
|
@@ -29,6 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
"sap/ui/dom/getScrollbarSize",
|
|
30
30
|
"sap/ui/events/KeyCodes",
|
|
31
31
|
"sap/base/Log",
|
|
32
|
+
"sap/base/util/clamp",
|
|
32
33
|
"sap/ui/dom/jquery/Focusable", // jQuery Plugin "firstFocusableDomRef", "lastFocusableDomRef"
|
|
33
34
|
"sap/ui/dom/jquery/rect" // jQuery Plugin "rect"
|
|
34
35
|
],
|
|
@@ -55,7 +56,8 @@ sap.ui.define([
|
|
|
55
56
|
jQuery,
|
|
56
57
|
getScrollbarSize,
|
|
57
58
|
KeyCodes,
|
|
58
|
-
Log
|
|
59
|
+
Log,
|
|
60
|
+
clamp
|
|
59
61
|
) {
|
|
60
62
|
"use strict";
|
|
61
63
|
|
|
@@ -124,7 +126,7 @@ sap.ui.define([
|
|
|
124
126
|
* @extends sap.ui.core.Control
|
|
125
127
|
* @implements sap.ui.core.PopupInterface
|
|
126
128
|
* @author SAP SE
|
|
127
|
-
* @version 1.
|
|
129
|
+
* @version 1.131.0
|
|
128
130
|
*
|
|
129
131
|
* @public
|
|
130
132
|
* @alias sap.m.Popover
|
|
@@ -578,6 +580,7 @@ sap.ui.define([
|
|
|
578
580
|
that._deregisterContentResizeHandler();
|
|
579
581
|
Popup.prototype._applyPosition.call(this, oPosition);
|
|
580
582
|
that._fnAdjustPositionAndArrow();
|
|
583
|
+
that._updateResizeHandlerPlacement();
|
|
581
584
|
that._restoreScrollPosition();
|
|
582
585
|
|
|
583
586
|
//register the content resize handler
|
|
@@ -770,6 +773,7 @@ sap.ui.define([
|
|
|
770
773
|
* @private
|
|
771
774
|
*/
|
|
772
775
|
Popover.prototype.exit = function () {
|
|
776
|
+
this._removeDocumentEventListeners();
|
|
773
777
|
this._deregisterContentResizeHandler();
|
|
774
778
|
|
|
775
779
|
Device.resize.detachHandler(this._fnOrientationChange);
|
|
@@ -778,6 +782,7 @@ sap.ui.define([
|
|
|
778
782
|
|
|
779
783
|
this.removeDelegate(this._oRestoreFocusDelegate);
|
|
780
784
|
this._oRestoreFocusDelegate = null;
|
|
785
|
+
this._sResizeHandleClass = null;
|
|
781
786
|
|
|
782
787
|
if (this.oPopup) {
|
|
783
788
|
this.oPopup.detachClosed(this._handleClosed, this);
|
|
@@ -817,7 +822,10 @@ sap.ui.define([
|
|
|
817
822
|
* @public
|
|
818
823
|
*/
|
|
819
824
|
Popover.prototype.openBy = function (oControl, bSkipInstanceManager) {
|
|
820
|
-
|
|
825
|
+
if (!this.getVisible()) {
|
|
826
|
+
return this;
|
|
827
|
+
}
|
|
828
|
+
|
|
821
829
|
var oPopup = this.oPopup,
|
|
822
830
|
ePopupState = this.oPopup.getOpenState(),
|
|
823
831
|
// The control that needs to be focused after popover is open is calculated in following sequence:
|
|
@@ -887,6 +895,7 @@ sap.ui.define([
|
|
|
887
895
|
this._oOpenBy = oControl;
|
|
888
896
|
}
|
|
889
897
|
|
|
898
|
+
this._addDocumentEventListeners();
|
|
890
899
|
this.fireBeforeOpen({openBy: this._oOpenBy});
|
|
891
900
|
|
|
892
901
|
oPopup.attachOpened(this._handleOpened, this);
|
|
@@ -961,6 +970,7 @@ sap.ui.define([
|
|
|
961
970
|
return this;
|
|
962
971
|
}
|
|
963
972
|
|
|
973
|
+
this._removeDocumentEventListeners();
|
|
964
974
|
this.fireBeforeClose({openBy: this._oOpenBy});
|
|
965
975
|
|
|
966
976
|
// beforeCloseEvent is already fired here, the parameter true needs to be passed into the popup's close method.
|
|
@@ -1069,9 +1079,8 @@ sap.ui.define([
|
|
|
1069
1079
|
oStyle.right = "";
|
|
1070
1080
|
oStyle.top = "";
|
|
1071
1081
|
oStyle.bottom = "";
|
|
1072
|
-
oStyle.width = "";
|
|
1082
|
+
oStyle.width = (this.isResized() && sContentWidth) ? sContentWidth : "";
|
|
1073
1083
|
oStyle.height = "";
|
|
1074
|
-
oStyle.overflow = "";
|
|
1075
1084
|
|
|
1076
1085
|
oScrollAreaStyle.width = "";
|
|
1077
1086
|
oScrollAreaStyle.display = "";
|
|
@@ -1247,53 +1256,206 @@ sap.ui.define([
|
|
|
1247
1256
|
}
|
|
1248
1257
|
};
|
|
1249
1258
|
|
|
1259
|
+
Popover.prototype._getResizeHandlePlacement = function () {
|
|
1260
|
+
switch (this._getCalculatedPlacement()) {
|
|
1261
|
+
case PlacementType.Left:
|
|
1262
|
+
if (this.getOffsetY() > 0) {
|
|
1263
|
+
return "BottomLeft";
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
return "TopLeft";
|
|
1267
|
+
case PlacementType.Right:
|
|
1268
|
+
if (this.getOffsetY() < 0) {
|
|
1269
|
+
return "TopRight";
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
return "BottomRight";
|
|
1273
|
+
case PlacementType.Bottom:
|
|
1274
|
+
if (!this.getShowArrow()) {
|
|
1275
|
+
return "BottomRight";
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (this.getOffsetX() < 0) {
|
|
1279
|
+
return "BottomLeft";
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
return "BottomRight";
|
|
1283
|
+
case PlacementType.Top:
|
|
1284
|
+
default:
|
|
1285
|
+
if (!this.getShowArrow()) {
|
|
1286
|
+
return "TopRight";
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
if (this.getOffsetX() < 0) {
|
|
1290
|
+
return "TopLeft";
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
return "TopRight";
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1250
1297
|
/**
|
|
1251
1298
|
* Takes care of resizing the popover
|
|
1252
1299
|
* @param {jQuery.Event} oEvent The event object
|
|
1253
1300
|
*/
|
|
1254
1301
|
Popover.prototype.onmousedown = function (oEvent) {
|
|
1255
|
-
var bRTL = Localization.getRTL();
|
|
1256
1302
|
if (!oEvent.target.closest(".sapMPopoverResizeHandle")) {
|
|
1257
1303
|
return;
|
|
1258
1304
|
}
|
|
1259
1305
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1306
|
+
const $d = jQuery(document);
|
|
1307
|
+
const $popover = this.$();
|
|
1308
|
+
const $popoverContent = this.$("cont");
|
|
1309
|
+
const contentHeight = $popoverContent.height();
|
|
1310
|
+
const $arrow = this.$("arrow");
|
|
1311
|
+
const $scrollArea = this.$("scroll");
|
|
1312
|
+
const calculatedPlacement = this._getCalculatedPlacement();
|
|
1313
|
+
const posParams = this._getPositionParams($popover, $arrow, $popoverContent, $scrollArea);
|
|
1314
|
+
const contentDimensions = this._getContentDimensionsCss(posParams);
|
|
1315
|
+
|
|
1263
1316
|
$popover.addClass('sapMPopoverResizing');
|
|
1264
1317
|
|
|
1265
1318
|
oEvent.preventDefault();
|
|
1266
1319
|
oEvent.stopPropagation();
|
|
1267
1320
|
|
|
1268
|
-
|
|
1321
|
+
const initial = {
|
|
1269
1322
|
x: oEvent.pageX,
|
|
1270
1323
|
y: oEvent.pageY,
|
|
1271
1324
|
|
|
1272
1325
|
width: $popover.width(),
|
|
1273
|
-
height:
|
|
1326
|
+
height: contentHeight,
|
|
1327
|
+
maxWidth: parseFloat(contentDimensions["max-width"]),
|
|
1328
|
+
maxHeight: parseFloat(contentDimensions["max-height"]),
|
|
1329
|
+
footerHeaderHeight: $popover.height() - contentHeight,
|
|
1330
|
+
offsetX: this.getOffsetX(),
|
|
1331
|
+
offsetY: this.getOffsetY(),
|
|
1332
|
+
left: parseFloat($popover.css("left")),
|
|
1333
|
+
top: parseFloat($popover.css("top")),
|
|
1334
|
+
posParams: this._recalculateMargins(calculatedPlacement, posParams)
|
|
1274
1335
|
};
|
|
1275
1336
|
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
if (bRTL) {
|
|
1280
|
-
width = initial.width + initial.x - e.pageX;
|
|
1281
|
-
height = initial.height + (initial.y - e.pageY);
|
|
1282
|
-
} else {
|
|
1283
|
-
width = initial.width + e.pageX - initial.x;
|
|
1284
|
-
height = initial.height + (initial.y - e.pageY);
|
|
1285
|
-
}
|
|
1337
|
+
// prevent autoclose during resizing
|
|
1338
|
+
const isAutoClose = this.oPopup.getAutoClose();
|
|
1339
|
+
this.oPopup.setAutoClose(false);
|
|
1286
1340
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1341
|
+
$d.on("mousemove.sapMPopover", (e) => {
|
|
1342
|
+
this._resize(initial, e);
|
|
1289
1343
|
});
|
|
1290
1344
|
|
|
1291
|
-
$d.on("mouseup.sapMPopover",
|
|
1345
|
+
$d.on("mouseup.sapMPopover", () => {
|
|
1292
1346
|
$popover.removeClass("sapMPopoverResizing");
|
|
1293
1347
|
$d.off("mouseup.sapMPopover, mousemove.sapMPopover");
|
|
1348
|
+
if (this.oPopup) {
|
|
1349
|
+
this.oPopup.setAutoClose(isAutoClose);
|
|
1350
|
+
}
|
|
1294
1351
|
});
|
|
1295
1352
|
};
|
|
1296
1353
|
|
|
1354
|
+
Popover.prototype._resize = function (initial, e) {
|
|
1355
|
+
this._resized = true;
|
|
1356
|
+
|
|
1357
|
+
const placement = this._getCalculatedPlacement();
|
|
1358
|
+
const resizeHandlerPlacement = this._getResizeHandlePlacement();
|
|
1359
|
+
const posParams = initial.posParams;
|
|
1360
|
+
const withinAreaWidth = posParams._fWithinAreaWidth;
|
|
1361
|
+
const withinAreaHeight = posParams._fWithinAreaHeight;
|
|
1362
|
+
|
|
1363
|
+
let dx;
|
|
1364
|
+
let dy;
|
|
1365
|
+
let width;
|
|
1366
|
+
let height;
|
|
1367
|
+
let offsetX;
|
|
1368
|
+
let offsetY;
|
|
1369
|
+
let popoverMarginLeft;
|
|
1370
|
+
|
|
1371
|
+
if (Localization.getRTL()) {
|
|
1372
|
+
dx = initial.x - e.pageX;
|
|
1373
|
+
dy = initial.y - e.pageY;
|
|
1374
|
+
popoverMarginLeft = posParams._fPopoverMarginRight;
|
|
1375
|
+
} else {
|
|
1376
|
+
popoverMarginLeft = posParams._fPopoverMarginLeft;
|
|
1377
|
+
dx = e.pageX - initial.x;
|
|
1378
|
+
dy = initial.y - e.pageY;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
if (!this.getShowArrow() && (placement === PlacementType.Top || placement === PlacementType.Bottom)) {
|
|
1382
|
+
if (placement === PlacementType.Bottom) {
|
|
1383
|
+
dy = -dy;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
this.setContentWidth(Math.max(initial.width + dx, this._minDimensions.width) + 'px');
|
|
1387
|
+
this.setContentHeight(Math.max(initial.height + dy, this._minDimensions.height) + 'px');
|
|
1388
|
+
return;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
switch (placement) {
|
|
1392
|
+
case PlacementType.Top:
|
|
1393
|
+
height = Math.max(initial.height + dy, this._minDimensions.height);
|
|
1394
|
+
|
|
1395
|
+
if (resizeHandlerPlacement === "TopRight") {
|
|
1396
|
+
width = clamp(initial.width + dx, this._minDimensions.width, withinAreaWidth - initial.left);
|
|
1397
|
+
offsetX = Math.max(0, initial.offsetX + (width - initial.width) / 2);
|
|
1398
|
+
} else { // TopLeft
|
|
1399
|
+
width = clamp(initial.width - dx, this._minDimensions.width, initial.width + initial.left - popoverMarginLeft);
|
|
1400
|
+
offsetX = Math.min(-1, initial.offsetX + (initial.width - width) / 2);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
this.setOffsetX(Math.round(offsetX));
|
|
1404
|
+
break;
|
|
1405
|
+
case PlacementType.Bottom:
|
|
1406
|
+
height = Math.max(initial.height - dy, this._minDimensions.height);
|
|
1407
|
+
|
|
1408
|
+
if (resizeHandlerPlacement === "BottomRight") {
|
|
1409
|
+
width = clamp(initial.width + dx, this._minDimensions.width, withinAreaWidth - initial.left);
|
|
1410
|
+
offsetX = Math.max(0, initial.offsetX + (width - initial.width) / 2);
|
|
1411
|
+
} else { // TopLeft
|
|
1412
|
+
width = clamp(initial.width - dx, this._minDimensions.width, initial.width + initial.left - popoverMarginLeft);
|
|
1413
|
+
offsetX = Math.min(-1, initial.offsetX + (initial.width - width) / 2);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
this.setOffsetX(Math.round(offsetX));
|
|
1417
|
+
break;
|
|
1418
|
+
case PlacementType.Left:
|
|
1419
|
+
width = clamp(initial.width - dx, this._minDimensions.width, initial.width + initial.left - popoverMarginLeft);
|
|
1420
|
+
|
|
1421
|
+
if (resizeHandlerPlacement === "TopLeft") {
|
|
1422
|
+
height = clamp(initial.height + dy, this._minDimensions.height, initial.height + initial.top - posParams._fPopoverMarginTop);
|
|
1423
|
+
offsetY = Math.min(0, initial.offsetY + (initial.height - height) / 2);
|
|
1424
|
+
} else { // BottomLeft
|
|
1425
|
+
height = clamp(initial.height - dy, this._minDimensions.height, withinAreaHeight - initial.footerHeaderHeight - initial.top);
|
|
1426
|
+
offsetY = Math.max(1, initial.offsetY + (height - initial.height) / 2);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
this.setOffsetY(Math.round(offsetY));
|
|
1430
|
+
break;
|
|
1431
|
+
case PlacementType.Right:
|
|
1432
|
+
width = clamp(initial.width + dx, this._minDimensions.width, withinAreaWidth - initial.left - this._marginRight);
|
|
1433
|
+
|
|
1434
|
+
if (resizeHandlerPlacement === "TopRight") {
|
|
1435
|
+
height = clamp(initial.height + dy, this._minDimensions.height, initial.height + initial.top - posParams._fPopoverMarginTop);
|
|
1436
|
+
offsetY = Math.min(-1, initial.offsetY + (initial.height - height) / 2);
|
|
1437
|
+
} else { // BottomRight
|
|
1438
|
+
height = clamp(initial.height - dy, this._minDimensions.height, withinAreaHeight - initial.footerHeaderHeight - initial.top);
|
|
1439
|
+
offsetY = Math.max(0, initial.offsetY + (height - initial.height) / 2);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
this.setOffsetY(Math.round(offsetY));
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
this.setContentWidth(`${width}px`);
|
|
1447
|
+
this.setContentHeight(`${height}px`);
|
|
1448
|
+
|
|
1449
|
+
this._calcPlacement();
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* @private
|
|
1454
|
+
*/
|
|
1455
|
+
Popover.prototype.isResized = function () {
|
|
1456
|
+
return this._resized;
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1297
1459
|
/* =========================================================== */
|
|
1298
1460
|
/* end: event handlers */
|
|
1299
1461
|
/* =========================================================== */
|
|
@@ -1993,18 +2155,18 @@ sap.ui.define([
|
|
|
1993
2155
|
// Set arrow offset
|
|
1994
2156
|
if (sCalculatedPlacement === PlacementType.Left || sCalculatedPlacement === PlacementType.Right) {
|
|
1995
2157
|
iPosArrow = oPosParams._$parent.offset().top - oPosParams._$popover.offset().top - oPosParams._fPopoverBorderTop + oPosParams._fPopoverOffsetY + 0.5 * (Popover.outerHeight(oPosParams._$parent[0], false) - oPosParams._$arrow.outerHeight(false));
|
|
1996
|
-
iPosArrow = Math.max(iPosArrow, arrowOffset);
|
|
2158
|
+
iPosArrow = Math.max(iPosArrow - this._getOffsetY(), arrowOffset);
|
|
1997
2159
|
iPosArrow = Math.min(iPosArrow, oPosParams._fPopoverHeight - arrowOffset - oPosParams._$arrow.outerHeight());
|
|
1998
2160
|
return {"top": iPosArrow};
|
|
1999
2161
|
} else if (sCalculatedPlacement === PlacementType.Top || sCalculatedPlacement === PlacementType.Bottom) {
|
|
2000
2162
|
if (bRtl) {
|
|
2001
2163
|
iPosArrow = oPosParams._$popover.offset().left + Popover.outerWidth(oPosParams._$popover[0], false) - (oPosParams._$parent.offset().left + Popover.outerWidth(oPosParams._$parent[0], false)) + oPosParams._fPopoverBorderRight + oPosParams._fPopoverOffsetX + 0.5 * (Popover.outerWidth(oPosParams._$parent[0], false) - oPosParams._$arrow.outerWidth(false));
|
|
2002
|
-
iPosArrow = Math.max(iPosArrow, arrowOffset);
|
|
2164
|
+
iPosArrow = Math.max(iPosArrow - this._getOffsetX(), arrowOffset);
|
|
2003
2165
|
iPosArrow = Math.min(iPosArrow, oPosParams._fPopoverWidth - arrowOffset - oPosParams._$arrow.outerWidth(false));
|
|
2004
2166
|
return {"right": iPosArrow};
|
|
2005
2167
|
} else {
|
|
2006
2168
|
iPosArrow = oPosParams._$parent.offset().left - oPosParams._$popover.offset().left - oPosParams._fPopoverBorderLeft + oPosParams._fPopoverOffsetX + 0.5 * (Popover.outerWidth(oPosParams._$parent[0], false) - oPosParams._$arrow.outerWidth(false));
|
|
2007
|
-
iPosArrow = Math.max(iPosArrow, arrowOffset);
|
|
2169
|
+
iPosArrow = Math.max(iPosArrow - this._getOffsetX(), arrowOffset);
|
|
2008
2170
|
iPosArrow = Math.min(iPosArrow, oPosParams._fPopoverWidth - arrowOffset - oPosParams._$arrow.outerWidth(false));
|
|
2009
2171
|
return {"left": iPosArrow};
|
|
2010
2172
|
}
|
|
@@ -2151,14 +2313,27 @@ sap.ui.define([
|
|
|
2151
2313
|
if (bUseContrastContainer) {
|
|
2152
2314
|
$arrow.addClass("sapContrast sapContrastPlus");
|
|
2153
2315
|
}
|
|
2154
|
-
|
|
2155
|
-
// Prevent the popover from hiding the arrow
|
|
2156
|
-
$popover.css("overflow", "visible");
|
|
2157
2316
|
}
|
|
2158
2317
|
|
|
2159
2318
|
this._afterAdjustPositionAndArrowHook();
|
|
2160
2319
|
};
|
|
2161
2320
|
|
|
2321
|
+
Popover.prototype._updateResizeHandlerPlacement = function () {
|
|
2322
|
+
if (!this.getResizable()) {
|
|
2323
|
+
return;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
const oDomRef = this.getDomRef();
|
|
2327
|
+
const sResizeHandleClass = `sapMPopoverResizeHandle${this._getResizeHandlePlacement()}`;
|
|
2328
|
+
|
|
2329
|
+
if (this._sResizeHandleClass) {
|
|
2330
|
+
oDomRef.classList.remove(this._sResizeHandleClass);
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
oDomRef.classList.add(sResizeHandleClass);
|
|
2334
|
+
this._sResizeHandleClass = sResizeHandleClass;
|
|
2335
|
+
};
|
|
2336
|
+
|
|
2162
2337
|
/**
|
|
2163
2338
|
* Adapt position and offsets variables if the Popover is used without arrow.
|
|
2164
2339
|
*
|
|
@@ -2672,7 +2847,6 @@ sap.ui.define([
|
|
|
2672
2847
|
};
|
|
2673
2848
|
|
|
2674
2849
|
Popover.prototype.destroyAggregation = function (sAggregationName, bSuppressInvalidate) {
|
|
2675
|
-
var oActiveControl = Element.closestTo(document.activeElement);
|
|
2676
2850
|
if (sAggregationName === "beginButton" || sAggregationName === "endButton") {
|
|
2677
2851
|
var sButton = this["_" + sAggregationName];
|
|
2678
2852
|
if (sButton) {
|
|
@@ -2683,11 +2857,6 @@ sap.ui.define([
|
|
|
2683
2857
|
Control.prototype.destroyAggregation.apply(this, arguments);
|
|
2684
2858
|
}
|
|
2685
2859
|
|
|
2686
|
-
// set focus to the popover itself when the focused control is destroyed to keep the popover open
|
|
2687
|
-
if (oActiveControl && !oActiveControl.getDomRef()) {
|
|
2688
|
-
this.focus();
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
2860
|
return this;
|
|
2692
2861
|
};
|
|
2693
2862
|
|
|
@@ -2722,5 +2891,27 @@ sap.ui.define([
|
|
|
2722
2891
|
Control.prototype._applyContextualSettings.call(this);
|
|
2723
2892
|
};
|
|
2724
2893
|
|
|
2894
|
+
Popover.prototype._addDocumentEventListeners = function () {
|
|
2895
|
+
if (!this._bDocumentListenersAdded) {
|
|
2896
|
+
this._bDocumentListenersAdded = true;
|
|
2897
|
+
|
|
2898
|
+
this._fnHandleDocumentKeydown = (oEvent) => {
|
|
2899
|
+
if (this.oPopup.isTopmost() && oEvent.which === KeyCodes.ESCAPE) {
|
|
2900
|
+
this.close();
|
|
2901
|
+
}
|
|
2902
|
+
};
|
|
2903
|
+
|
|
2904
|
+
document.addEventListener("keydown", this._fnHandleDocumentKeydown);
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2908
|
+
Popover.prototype._removeDocumentEventListeners = function () {
|
|
2909
|
+
if (this._bDocumentListenersAdded) {
|
|
2910
|
+
this._bDocumentListenersAdded = false;
|
|
2911
|
+
|
|
2912
|
+
document.removeEventListener("keydown", this._fnHandleDocumentKeydown);
|
|
2913
|
+
}
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2725
2916
|
return Popover;
|
|
2726
2917
|
});
|
|
@@ -32,7 +32,9 @@ sap.ui.define([
|
|
|
32
32
|
*/
|
|
33
33
|
PopoverRenderer.render = function(oRm, oControl) {
|
|
34
34
|
oRm.openStart("div", oControl);
|
|
35
|
-
var aClassNames = this.generateRootClasses(oControl)
|
|
35
|
+
var aClassNames = this.generateRootClasses(oControl),
|
|
36
|
+
sContentWidth = oControl.getContentWidth();
|
|
37
|
+
|
|
36
38
|
aClassNames.forEach(function(sClassName) {
|
|
37
39
|
oRm.class(sClassName);
|
|
38
40
|
});
|
|
@@ -50,6 +52,10 @@ sap.ui.define([
|
|
|
50
52
|
oRm.attr("title", sTooltip);
|
|
51
53
|
}
|
|
52
54
|
|
|
55
|
+
if (oControl.isResized() && sContentWidth) {
|
|
56
|
+
oRm.style("width", sContentWidth);
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
oRm.attr("tabindex", "-1")
|
|
54
60
|
.accessibilityState(oControl, oControl._getAccessibilityOptions()) // ARIA
|
|
55
61
|
.openEnd();
|
|
@@ -104,6 +110,10 @@ sap.ui.define([
|
|
|
104
110
|
.close("span");
|
|
105
111
|
}
|
|
106
112
|
|
|
113
|
+
oRm.openStart("div")
|
|
114
|
+
.class("sapMPopoverWrapper")
|
|
115
|
+
.openEnd();
|
|
116
|
+
|
|
107
117
|
// Header
|
|
108
118
|
if (oHeader) {
|
|
109
119
|
oRm.openStart("header")
|
|
@@ -191,6 +201,7 @@ sap.ui.define([
|
|
|
191
201
|
|
|
192
202
|
oRm.close("footer");
|
|
193
203
|
}
|
|
204
|
+
oRm.close("div"); // wrapper
|
|
194
205
|
|
|
195
206
|
// Arrow
|
|
196
207
|
if (oControl.getShowArrow()) {
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* @extends sap.ui.core.Control
|
|
62
62
|
*
|
|
63
63
|
* @author SAP SE
|
|
64
|
-
* @version 1.
|
|
64
|
+
* @version 1.131.0
|
|
65
65
|
*
|
|
66
66
|
* @constructor
|
|
67
67
|
* @public
|
|
@@ -76,6 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
properties : {
|
|
77
77
|
/**
|
|
78
78
|
* Switches enabled state of the control. Disabled fields have different colors, and cannot be focused.
|
|
79
|
+
* @deprecated As of version 1.130 with no replacement.
|
|
79
80
|
*/
|
|
80
81
|
enabled : {type : "boolean", group : "Behavior", defaultValue : true},
|
|
81
82
|
|
package/src/sap/m/QuickView.js
CHANGED
package/src/sap/m/RadioButton.js
CHANGED
package/src/sap/m/RangeSlider.js
CHANGED
package/src/sap/m/ScrollBar.js
CHANGED
|
@@ -25,7 +25,7 @@ function(Control, ScrollBarRenderer) {
|
|
|
25
25
|
* care of only rendering the currently visible rows and use this <code>ScrollBar</code> control to make
|
|
26
26
|
* the users think they are actually scrolling through a long list.
|
|
27
27
|
* @extends sap.ui.core.Control
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.131.0
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @alias sap.m.ScrollBar
|
package/src/sap/m/SearchField.js
CHANGED
package/src/sap/m/Select.js
CHANGED