@openui5/sap.m 1.98.0 → 1.101.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/.eslintrc.json +18 -0
- package/THIRDPARTY.txt +6 -6
- 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 +2 -2
- package/src/sap/m/ActionListItemRenderer.js +5 -7
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSelectRenderer.js +1 -1
- package/src/sap/m/ActionSheet.js +12 -5
- package/src/sap/m/ActionSheetRenderer.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 +21 -4
- package/src/sap/m/AvatarRenderer.js +6 -1
- package/src/sap/m/BadgeCustomData.js +6 -4
- package/src/sap/m/BadgeEnabler.js +3 -2
- package/src/sap/m/Bar.js +6 -5
- package/src/sap/m/BarRenderer.js +6 -6
- package/src/sap/m/Breadcrumbs.js +81 -7
- package/src/sap/m/BreadcrumbsRenderer.js +3 -7
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/BusyIndicatorRenderer.js +1 -1
- package/src/sap/m/Button.js +2 -2
- package/src/sap/m/ButtonRenderer.js +3 -3
- package/src/sap/m/Carousel.js +22 -17
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +10 -4
- package/src/sap/m/CheckBox.js +2 -4
- package/src/sap/m/CheckBoxRenderer.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 +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnListItemRenderer.js +10 -11
- 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 +3 -2
- package/src/sap/m/ComboBoxBase.js +5 -3
- package/src/sap/m/ComboBoxBaseRenderer.js +2 -2
- package/src/sap/m/ComboBoxRenderer.js +4 -4
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/ComboBoxTextFieldRenderer.js +2 -2
- package/src/sap/m/CustomDynamicDateOption.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomListItemRenderer.js +4 -6
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTileRenderer.js +2 -2
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/CustomTreeItemRenderer.js +2 -2
- package/src/sap/m/DatePicker.js +36 -7
- package/src/sap/m/DatePickerRenderer.js +1 -6
- package/src/sap/m/DateRangeSelection.js +42 -4
- package/src/sap/m/DateRangeSelectionRenderer.js +1 -1
- package/src/sap/m/DateTimeField.js +15 -6
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +375 -89
- package/src/sap/m/DateTimePickerRenderer.js +57 -0
- package/src/sap/m/Dialog.js +20 -7
- package/src/sap/m/DialogRenderer.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DisplayListItemRenderer.js +4 -6
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DraftIndicatorRenderer.js +1 -1
- package/src/sap/m/DynamicDate.js +3 -3
- package/src/sap/m/DynamicDateFormat.js +33 -1
- package/src/sap/m/DynamicDateOption.js +144 -9
- package/src/sap/m/DynamicDateRange.js +145 -49
- package/src/sap/m/DynamicDateRangeRenderer.js +1 -1
- package/src/sap/m/DynamicDateUtil.js +10 -3
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterItemRenderer.js +1 -1
- package/src/sap/m/FacetFilterList.js +7 -5
- package/src/sap/m/FacetFilterRenderer.js +10 -10
- package/src/sap/m/FeedContent.js +2 -2
- package/src/sap/m/FeedInput.js +2 -2
- package/src/sap/m/FeedInputRenderer.js +1 -1
- package/src/sap/m/FeedListItem.js +7 -7
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/FeedListItemRenderer.js +12 -7
- 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 +4 -1
- package/src/sap/m/GenericTag.js +5 -3
- package/src/sap/m/GenericTagRenderer.js +13 -5
- package/src/sap/m/GenericTile.js +62 -16
- package/src/sap/m/GenericTileLineModeRenderer.js +77 -3
- package/src/sap/m/GenericTileRenderer.js +89 -42
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GroupHeaderListItemRenderer.js +2 -2
- package/src/sap/m/GrowingEnablement.js +53 -3
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HBoxRenderer.js +1 -1
- package/src/sap/m/HeaderContainer.js +87 -16
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/HeaderContainerRenderer.js +1 -1
- package/src/sap/m/HyphenationSupport.js +1 -5
- package/src/sap/m/IconTabBar.js +2 -2
- package/src/sap/m/IconTabBarDragAndDropUtil.js +5 -4
- package/src/sap/m/IconTabBarSelectList.js +3 -5
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +9 -13
- package/src/sap/m/IconTabHeaderRenderer.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +29 -8
- package/src/sap/m/IllustratedMessageRenderer.js +5 -5
- package/src/sap/m/IllustratedMessageType.js +26 -2
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/IllustrationRenderer.js +4 -2
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +2 -2
- package/src/sap/m/ImageRenderer.js +1 -1
- package/src/sap/m/Input.js +13 -23
- package/src/sap/m/InputBase.js +6 -8
- package/src/sap/m/InputBaseRenderer.js +53 -39
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputListItemRenderer.js +4 -6
- package/src/sap/m/InputRenderer.js +12 -9
- package/src/sap/m/Label.js +3 -3
- package/src/sap/m/LabelRenderer.js +2 -2
- package/src/sap/m/LightBox.js +5 -5
- package/src/sap/m/LightBoxItem.js +2 -3
- package/src/sap/m/LightBoxRenderer.js +1 -1
- package/src/sap/m/Link.js +2 -2
- package/src/sap/m/LinkRenderer.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +50 -10
- package/src/sap/m/ListBaseRenderer.js +38 -24
- package/src/sap/m/ListItemBase.js +4 -3
- package/src/sap/m/ListItemBaseRenderer.js +23 -23
- package/src/sap/m/MaskEnabler.js +11 -11
- package/src/sap/m/MaskInput.js +9 -1
- package/src/sap/m/MaskInputRenderer.js +9 -43
- package/src/sap/m/MaskInputRule.js +5 -5
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +5 -1
- package/src/sap/m/MenuButtonRenderer.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MenuListItemRenderer.js +2 -2
- package/src/sap/m/MessageBox.js +1 -1
- 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/MessagePageRenderer.js +1 -1
- package/src/sap/m/MessagePopover.js +19 -34
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessagePopoverRenderer.js +1 -1
- package/src/sap/m/MessageStrip.js +2 -2
- package/src/sap/m/MessageStripRenderer.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +3 -3
- package/src/sap/m/MultiComboBox.js +6 -4
- package/src/sap/m/MultiComboBoxRenderer.js +4 -4
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +44 -27
- package/src/sap/m/NavContainer.js +53 -53
- package/src/sap/m/NavContainerRenderer.js +1 -1
- package/src/sap/m/NewsContent.js +2 -2
- 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/NotificationListGroupRenderer.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NotificationListItemRenderer.js +1 -1
- package/src/sap/m/NotificationListRenderer.js +2 -2
- package/src/sap/m/NumericContent.js +30 -22
- package/src/sap/m/NumericContentRenderer.js +10 -10
- package/src/sap/m/NumericInput.js +3 -2
- package/src/sap/m/NumericInputRenderer.js +13 -1
- package/src/sap/m/ObjectAttribute.js +4 -5
- package/src/sap/m/ObjectAttributeRenderer.js +3 -3
- package/src/sap/m/ObjectHeader.js +20 -7
- package/src/sap/m/ObjectHeaderRenderer.js +3 -3
- package/src/sap/m/ObjectIdentifier.js +3 -3
- package/src/sap/m/ObjectIdentifierRenderer.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectListItemRenderer.js +2 -2
- package/src/sap/m/ObjectMarker.js +35 -11
- package/src/sap/m/ObjectMarkerRenderer.js +15 -3
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectNumberRenderer.js +1 -2
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/ObjectStatusRenderer.js +4 -5
- package/src/sap/m/OverflowToolbar.js +23 -3
- package/src/sap/m/OverflowToolbarAssociativePopover.js +2 -2
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.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 +2 -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 -1
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +3 -3
- 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 +4 -3
- package/src/sap/m/PDFViewerRenderer.js +15 -7
- 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/PanelRenderer.js +1 -1
- package/src/sap/m/PlanningCalendar.js +16 -15
- package/src/sap/m/PlanningCalendarHeader.js +1 -4
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +25 -9
- package/src/sap/m/PopoverRenderer.js +1 -1
- package/src/sap/m/ProgressIndicator.js +3 -3
- package/src/sap/m/ProgressIndicatorRenderer.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/PullToRefreshRenderer.js +2 -2
- 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/QuickViewCardRenderer.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 +5 -2
- package/src/sap/m/QuickViewPageRenderer.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +14 -2
- package/src/sap/m/RadioButtonRenderer.js +1 -2
- package/src/sap/m/RangeSlider.js +17 -6
- package/src/sap/m/RangeSliderRenderer.js +5 -5
- package/src/sap/m/RatingIndicator.js +2 -2
- package/src/sap/m/RatingIndicatorRenderer.js +1 -1
- package/src/sap/m/ResponsivePopover.js +3 -5
- package/src/sap/m/ResponsivePopoverRenderer.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +3 -3
- package/src/sap/m/ScrollBarRenderer.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/ScrollContainerRenderer.js +1 -1
- package/src/sap/m/SearchField.js +2 -2
- package/src/sap/m/SegmentedButton.js +17 -7
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/SegmentedButtonRenderer.js +2 -2
- package/src/sap/m/Select.js +36 -6
- package/src/sap/m/SelectDialog.js +4 -4
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +4 -3
- package/src/sap/m/SelectListRenderer.js +5 -5
- package/src/sap/m/SelectRenderer.js +5 -5
- package/src/sap/m/SelectionDetails.js +3 -5
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +3 -3
- package/src/sap/m/SelectionDetailsRenderer.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/ShellRenderer.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SimpleFixFlexRenderer.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +21 -2
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +118 -67
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +16 -14
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +24 -10
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +1 -1
- 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 +2 -2
- package/src/sap/m/SlideTileRenderer.js +9 -2
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderRenderer.js +9 -9
- package/src/sap/m/SliderTooltip.js +3 -3
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipBaseRenderer.js +2 -2
- package/src/sap/m/SliderTooltipContainer.js +6 -2
- package/src/sap/m/SliderTooltipContainerRenderer.js +1 -1
- package/src/sap/m/SliderTooltipRenderer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +3 -1
- package/src/sap/m/SplitButtonRenderer.js +1 -1
- package/src/sap/m/SplitContainer.js +24 -31
- package/src/sap/m/StandardDynamicDateOption.js +154 -12
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardListItemRenderer.js +8 -8
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTileRenderer.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +4 -4
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +7 -22
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/SwitchRenderer.js +3 -3
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -3
- package/src/sap/m/TabContainerRenderer.js +2 -2
- package/src/sap/m/TabStrip.js +2 -2
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/TabStripRenderer.js +2 -2
- package/src/sap/m/Table.js +41 -9
- 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/TableRenderer.js +10 -5
- package/src/sap/m/TableSelectDialog.js +19 -19
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/TextAreaRenderer.js +1 -1
- package/src/sap/m/Tile.js +3 -3
- package/src/sap/m/TileContainer.js +6 -4
- package/src/sap/m/TileContainerRenderer.js +1 -1
- package/src/sap/m/TileContent.js +37 -5
- package/src/sap/m/TileContentRenderer.js +43 -6
- package/src/sap/m/TileRenderer.js +2 -2
- package/src/sap/m/TimePicker.js +4 -56
- package/src/sap/m/TimePickerClock.js +5 -6
- package/src/sap/m/TimePickerClockRenderer.js +1 -1
- package/src/sap/m/TimePickerClocks.js +6 -5
- package/src/sap/m/TimePickerClocksRenderer.js +3 -3
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInputsRenderer.js +1 -1
- package/src/sap/m/TimePickerInternals.js +8 -6
- package/src/sap/m/TimePickerRenderer.js +5 -17
- package/src/sap/m/TimePickerSlider.js +2 -2
- package/src/sap/m/TimePickerSliderRenderer.js +2 -2
- package/src/sap/m/TimePickerSliders.js +7 -5
- package/src/sap/m/TimePickerSlidersRenderer.js +1 -1
- package/src/sap/m/Title.js +1 -5
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/TitleRenderer.js +2 -2
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -2
- package/src/sap/m/TokenRenderer.js +21 -3
- package/src/sap/m/Tokenizer.js +8 -8
- package/src/sap/m/TokenizerRenderer.js +41 -7
- package/src/sap/m/Toolbar.js +5 -5
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarRenderer.js +3 -3
- package/src/sap/m/ToolbarSeparator.js +5 -3
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +6 -6
- package/src/sap/m/TreeItemBaseRenderer.js +2 -2
- package/src/sap/m/TreeRenderer.js +2 -2
- package/src/sap/m/UploadCollection.js +5 -3
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionRenderer.js +2 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/VBoxRenderer.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +118 -61
- package/src/sap/m/ViewSettingsDialogRenderer.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +2 -2
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/WheelSliderContainerRenderer.js +1 -1
- package/src/sap/m/WheelSliderRenderer.js +2 -2
- package/src/sap/m/Wizard.js +22 -4
- package/src/sap/m/WizardProgressNavigator.js +10 -3
- 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 +5 -5
- package/src/sap/m/delegate/DateNavigation.js +2 -2
- package/src/sap/m/designtime/ListBase.designtime.js +29 -0
- package/src/sap/m/inputUtils/SuggestionsPopoverDialogMixin.js +22 -16
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +10 -2
- package/src/sap/m/inputUtils/highlightDOMElements.js +1 -1
- package/src/sap/m/inputUtils/typeAhead.js +7 -7
- package/src/sap/m/library.js +74 -38
- package/src/sap/m/messagebundle.properties +80 -20
- package/src/sap/m/messagebundle_ar.properties +48 -14
- package/src/sap/m/messagebundle_bg.properties +77 -43
- package/src/sap/m/messagebundle_ca.properties +48 -14
- package/src/sap/m/messagebundle_cs.properties +50 -16
- package/src/sap/m/messagebundle_cy.properties +48 -14
- package/src/sap/m/messagebundle_da.properties +49 -15
- package/src/sap/m/messagebundle_de.properties +49 -15
- package/src/sap/m/messagebundle_el.properties +53 -19
- package/src/sap/m/messagebundle_en.properties +46 -12
- package/src/sap/m/messagebundle_en_GB.properties +46 -12
- package/src/sap/m/messagebundle_en_US_sappsd.properties +48 -12
- package/src/sap/m/messagebundle_en_US_saprigi.properties +291 -66
- package/src/sap/m/messagebundle_en_US_saptrc.properties +46 -12
- package/src/sap/m/messagebundle_es.properties +48 -14
- package/src/sap/m/messagebundle_es_MX.properties +48 -14
- package/src/sap/m/messagebundle_et.properties +48 -14
- package/src/sap/m/messagebundle_fi.properties +49 -15
- package/src/sap/m/messagebundle_fr.properties +61 -27
- package/src/sap/m/messagebundle_fr_CA.properties +47 -13
- package/src/sap/m/messagebundle_hi.properties +46 -12
- package/src/sap/m/messagebundle_hr.properties +48 -14
- package/src/sap/m/messagebundle_hu.properties +49 -15
- package/src/sap/m/messagebundle_id.properties +48 -14
- package/src/sap/m/messagebundle_it.properties +55 -21
- package/src/sap/m/messagebundle_iw.properties +48 -14
- package/src/sap/m/messagebundle_ja.properties +51 -17
- package/src/sap/m/messagebundle_kk.properties +48 -14
- package/src/sap/m/messagebundle_ko.properties +48 -14
- package/src/sap/m/messagebundle_lt.properties +48 -14
- package/src/sap/m/messagebundle_lv.properties +48 -14
- package/src/sap/m/messagebundle_ms.properties +47 -13
- package/src/sap/m/messagebundle_nl.properties +48 -14
- package/src/sap/m/messagebundle_no.properties +48 -14
- package/src/sap/m/messagebundle_pl.properties +48 -14
- package/src/sap/m/messagebundle_pt.properties +71 -37
- package/src/sap/m/messagebundle_pt_PT.properties +49 -15
- package/src/sap/m/messagebundle_ro.properties +48 -14
- package/src/sap/m/messagebundle_ru.properties +48 -14
- package/src/sap/m/messagebundle_sh.properties +48 -14
- package/src/sap/m/messagebundle_sk.properties +48 -14
- package/src/sap/m/messagebundle_sl.properties +48 -14
- package/src/sap/m/messagebundle_sv.properties +49 -15
- package/src/sap/m/messagebundle_th.properties +55 -21
- package/src/sap/m/messagebundle_tr.properties +48 -14
- package/src/sap/m/messagebundle_uk.properties +48 -14
- package/src/sap/m/messagebundle_vi.properties +47 -13
- package/src/sap/m/messagebundle_zh_CN.properties +48 -14
- package/src/sap/m/messagebundle_zh_TW.properties +47 -13
- package/src/sap/m/p13n/AbstractContainer.js +15 -8
- package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
- package/src/sap/m/p13n/BasePanel.js +39 -20
- package/src/sap/m/p13n/Container.js +20 -14
- package/src/sap/m/p13n/GroupPanel.js +6 -5
- package/src/sap/m/p13n/Popup.js +9 -2
- package/src/sap/m/p13n/QueryPanel.js +93 -30
- package/src/sap/m/p13n/SelectionPanel.js +16 -8
- package/src/sap/m/p13n/SortPanel.js +9 -6
- package/src/sap/m/plugins/ColumnResizer.js +38 -9
- 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/rules/Breadcrumbs.support.js +1 -1
- package/src/sap/m/rules/MessagePage.support.js +1 -1
- package/src/sap/m/rules/Tokenizer.support.js +4 -2
- 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 +7 -14
- 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 +2 -2
- 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/Util.js +104 -23
- package/src/sap/m/table/{ActionItem.js → columnmenu/ActionItem.js} +9 -10
- package/src/sap/m/table/{ColumnMenuEntry.js → columnmenu/Entry.js} +16 -16
- package/src/sap/m/table/{Item.js → columnmenu/Item.js} +8 -8
- package/src/sap/m/table/{ItemBase.js → columnmenu/ItemBase.js} +11 -12
- package/src/sap/m/table/columnmenu/ItemContainer.js +29 -0
- package/src/sap/m/table/columnmenu/Menu.js +556 -0
- package/src/sap/m/table/columnmenu/MenuRenderer.js +57 -0
- package/src/sap/m/table/columnmenu/QuickAction.js +65 -0
- package/src/sap/m/table/columnmenu/QuickActionBase.js +54 -0
- package/src/sap/m/table/columnmenu/QuickActionContainer.js +29 -0
- package/src/sap/m/table/columnmenu/QuickActionItem.js +51 -0
- package/src/sap/m/table/columnmenu/QuickGroup.js +146 -0
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +59 -0
- package/src/sap/m/table/columnmenu/QuickSort.js +80 -0
- package/src/sap/m/table/columnmenu/QuickSortItem.js +118 -0
- package/src/sap/m/table/columnmenu/QuickTotal.js +157 -0
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +59 -0
- package/src/sap/m/themes/base/AbstractContainer.less +2 -3
- package/src/sap/m/themes/base/Avatar.less +11 -5
- package/src/sap/m/themes/base/Button.less +2 -2
- package/src/sap/m/themes/base/Carousel.less +5 -0
- package/src/sap/m/themes/base/CheckBox.less +0 -5
- package/src/sap/m/themes/base/ColumnMenu.less +17 -13
- package/src/sap/m/themes/base/DatePicker.less +7 -2
- package/src/sap/m/themes/base/DateTimePicker.less +147 -1
- package/src/sap/m/themes/base/Dialog.less +4 -6
- package/src/sap/m/themes/base/DynamicDateRange.less +3 -1
- package/src/sap/m/themes/base/FeedListItem.less +1 -1
- package/src/sap/m/themes/base/GenericTile.less +418 -55
- package/src/sap/m/themes/base/HeaderContainer.less +25 -0
- package/src/sap/m/themes/base/IconTabBar.less +45 -14
- package/src/sap/m/themes/base/IllustratedMessage.less +16 -16
- package/src/sap/m/themes/base/Input.less +1 -1
- package/src/sap/m/themes/base/InputBase.less +112 -10
- package/src/sap/m/themes/base/Label.less +4 -1
- package/src/sap/m/themes/base/Link.less +12 -4
- package/src/sap/m/themes/base/ListBase.less +4 -0
- package/src/sap/m/themes/base/MenuButton.less +4 -4
- package/src/sap/m/themes/base/MessageToast.less +2 -2
- package/src/sap/m/themes/base/MultiInput.less +1 -1
- package/src/sap/m/themes/base/NewsContent.less +7 -0
- package/src/sap/m/themes/base/NumericContent.less +1 -5
- package/src/sap/m/themes/base/ObjectAttribute.less +1 -1
- package/src/sap/m/themes/base/ObjectMarker.less +3 -1
- package/src/sap/m/themes/base/ObjectStatus.less +5 -0
- package/src/sap/m/themes/base/Page.less +1 -1
- package/src/sap/m/themes/base/Popover.less +10 -7
- package/src/sap/m/themes/base/RadioButton.less +22 -3
- package/src/sap/m/themes/base/SearchField.less +23 -59
- package/src/sap/m/themes/base/SplitButton.less +5 -0
- package/src/sap/m/themes/base/SuggestionsPopover.less +1 -1
- package/src/sap/m/themes/base/TextArea.less +27 -0
- package/src/sap/m/themes/base/TileContent.less +45 -1
- package/src/sap/m/themes/base/Token.less +14 -13
- package/src/sap/m/themes/base/Tokenizer.less +2 -2
- package/src/sap/m/themes/base/ValueStateMessage.less +3 -3
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyCalendar.svg +73 -72
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyList.svg +33 -18
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoEntries.svg +1 -3
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoNotifications.svg +3 -5
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleBell.svg +12 -9
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleCalendar.svg +41 -40
- package/src/sap/m/themes/base/illustrations/{sapIllus-Dialog-SimpleCheckmark.svg → sapIllus-Dialog-SimpleCheckMark.svg} +1 -1
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SleepingBell.svg +29 -22
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessBalloon.svg +16 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessCheckMark.svg +8 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessHighFive.svg +45 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-Tent.svg +28 -23
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-UnableToLoadImage.svg +38 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Connection.svg +27 -27
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyCalendar.svg +86 -85
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyList.svg +42 -26
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoData.svg +0 -2
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoEntries.svg +0 -2
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleBell.svg +15 -12
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleCalendar.svg +43 -42
- package/src/sap/m/themes/base/illustrations/{sapIllus-Scene-SimpleCheckmark.svg → sapIllus-Scene-SimpleCheckMark.svg} +1 -1
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SleepingBell.svg +49 -42
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessBalloon.svg +33 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessCheckMark.svg +43 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessHighFive.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Tent.svg +58 -53
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-UnableToLoadImage.svg +35 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyCalendar.svg +42 -41
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyList.svg +24 -16
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoEntries.svg +10 -20
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoNotifications.svg +8 -13
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleBell.svg +11 -8
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleCalendar.svg +37 -39
- package/src/sap/m/themes/base/illustrations/{sapIllus-Spot-SimpleCheckmark.svg → sapIllus-Spot-SimpleCheckMark.svg} +1 -1
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SleepingBell.svg +38 -22
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessBalloon.svg +19 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessCheckMark.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessHighFive.svg +31 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-Tent.svg +28 -23
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-UnableToLoadImage.svg +36 -0
- package/src/sap/m/themes/sap_hcb/ComboBoxBase.less +0 -12
- package/src/sap/m/themes/sap_hcb/InputBase.less +7 -42
- package/src/sap/m/themes/sap_hcb/Popover.less +3 -0
- package/src/sap/m/themes/sap_hcb/Token.less +4 -0
- package/src/sap/m/themes/sap_hcb/ValueStateHeader.less +4 -0
- package/src/sap/m/themes/sap_hcb/ValueStateMessage.less +12 -1
- package/src/sap/m/upload/UploadSet.js +421 -59
- package/src/sap/m/upload/UploadSetItem.js +77 -8
- package/src/sap/m/upload/UploadSetRenderer.js +1 -1
- package/src/sap/m/table/ColumnMenu.js +0 -378
- package/src/sap/m/table/ColumnMenuRenderer.js +0 -82
- package/src/sap/m/table/QuickAction.js +0 -53
- package/src/sap/m/table/QuickActionBase.js +0 -53
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NewMail.svg +0 -21
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NewMail.svg +0 -54
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NewMail.svg +0 -18
|
@@ -19,7 +19,7 @@ sap.ui.define(['sap/ui/base/Object', "sap/base/Log"], function(BaseObject, Log)
|
|
|
19
19
|
* Constructor for an sap.m.semantic.Segment.
|
|
20
20
|
*
|
|
21
21
|
* @class Abstraction for a segment in a SegmentedContainer
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.101.0
|
|
23
23
|
* @private
|
|
24
24
|
* @since 1.30.0
|
|
25
25
|
* @alias sap.m.semantic.Segment
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/m/semantic/Segment', 'sap/ui/base/Object', "sap/base/Log"],
|
|
|
20
20
|
* Constructor for an sap.m.semantic.SegmentedContainer.
|
|
21
21
|
*
|
|
22
22
|
* @class text
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.101.0
|
|
24
24
|
* @private
|
|
25
25
|
* @since 1.30.0
|
|
26
26
|
* @alias sap.m.semantic.SegmentedContainer
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* Constructor for an sap.m.semantic.SemanticConfiguration.
|
|
37
37
|
*
|
|
38
38
|
* @class Defines the visual properties and positioning for each supported semantic type
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.101.0
|
|
40
40
|
* @private
|
|
41
41
|
* @since 1.30.0
|
|
42
42
|
* @alias sap.m.semantic.SemanticConfiguration
|
|
@@ -252,8 +252,7 @@ sap.ui.define([
|
|
|
252
252
|
getSettings: function() {
|
|
253
253
|
return {
|
|
254
254
|
icon: IconPool.getIconURI("add"),
|
|
255
|
-
text: oBundle.getText("SEMANTIC_CONTROL_ADD")
|
|
256
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_ADD")
|
|
255
|
+
text: oBundle.getText("SEMANTIC_CONTROL_ADD")
|
|
257
256
|
};
|
|
258
257
|
},
|
|
259
258
|
order: 0,
|
|
@@ -265,8 +264,7 @@ sap.ui.define([
|
|
|
265
264
|
getSettings: function() {
|
|
266
265
|
return {
|
|
267
266
|
icon: IconPool.getIconURI("favorite"),
|
|
268
|
-
text: oBundle.getText("SEMANTIC_CONTROL_FAVORITE")
|
|
269
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_FAVORITE")
|
|
267
|
+
text: oBundle.getText("SEMANTIC_CONTROL_FAVORITE")
|
|
270
268
|
};
|
|
271
269
|
},
|
|
272
270
|
order: 1,
|
|
@@ -278,8 +276,7 @@ sap.ui.define([
|
|
|
278
276
|
getSettings: function() {
|
|
279
277
|
return {
|
|
280
278
|
icon: IconPool.getIconURI("flag"),
|
|
281
|
-
text: oBundle.getText("SEMANTIC_CONTROL_FLAG")
|
|
282
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_FLAG")
|
|
279
|
+
text: oBundle.getText("SEMANTIC_CONTROL_FLAG")
|
|
283
280
|
};
|
|
284
281
|
},
|
|
285
282
|
order: 2,
|
|
@@ -306,8 +303,7 @@ sap.ui.define([
|
|
|
306
303
|
getSettings: function() {
|
|
307
304
|
return {
|
|
308
305
|
icon: IconPool.getIconURI("sort"),
|
|
309
|
-
text: oBundle.getText("SEMANTIC_CONTROL_SORT")
|
|
310
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_SORT")
|
|
306
|
+
text: oBundle.getText("SEMANTIC_CONTROL_SORT")
|
|
311
307
|
};
|
|
312
308
|
},
|
|
313
309
|
constraints: "IconOnly"
|
|
@@ -338,8 +334,7 @@ sap.ui.define([
|
|
|
338
334
|
getSettings: function() {
|
|
339
335
|
return {
|
|
340
336
|
icon: IconPool.getIconURI("filter"),
|
|
341
|
-
text: oBundle.getText("SEMANTIC_CONTROL_FILTER")
|
|
342
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_FILTER")
|
|
337
|
+
text: oBundle.getText("SEMANTIC_CONTROL_FILTER")
|
|
343
338
|
};
|
|
344
339
|
},
|
|
345
340
|
constraints: "IconOnly"
|
|
@@ -370,8 +365,7 @@ sap.ui.define([
|
|
|
370
365
|
getSettings: function() {
|
|
371
366
|
return {
|
|
372
367
|
icon: IconPool.getIconURI("group-2"),
|
|
373
|
-
text: oBundle.getText("SEMANTIC_CONTROL_GROUP")
|
|
374
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_GROUP")
|
|
368
|
+
text: oBundle.getText("SEMANTIC_CONTROL_GROUP")
|
|
375
369
|
};
|
|
376
370
|
},
|
|
377
371
|
constraints: "IconOnly"
|
|
@@ -480,7 +474,6 @@ sap.ui.define([
|
|
|
480
474
|
return aMessages.length || 0;
|
|
481
475
|
}
|
|
482
476
|
},
|
|
483
|
-
tooltip: oBundle.getText("SEMANTIC_CONTROL_MESSAGES_INDICATOR"),
|
|
484
477
|
type: ButtonType.Emphasized,
|
|
485
478
|
visible: {
|
|
486
479
|
path: "message>/",
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
* ShareMenu is a special menu that is represented by (1) an actionSheet with the menu items and (2) a button that opens the actionSheet.
|
|
49
49
|
* If the menu has only one item, then that item appears in place of the button that opens the actionSheet.
|
|
50
50
|
*
|
|
51
|
-
* @version 1.
|
|
51
|
+
* @version 1.101.0
|
|
52
52
|
* @private
|
|
53
53
|
* @since 1.30.0
|
|
54
54
|
* @alias sap.m.semantic.ShareMenu
|
|
@@ -310,8 +310,8 @@ sap.ui.define([
|
|
|
310
310
|
* (1) In actionSheet mode, it opens the menu
|
|
311
311
|
* (2) In "button" mode (i.e. when the menu has a single menu-item) it represents the only menu-item
|
|
312
312
|
*
|
|
313
|
-
* @param {boolean} bSuppressInvalidate - if true, the menu as well as the inserted child are not marked as changed
|
|
314
313
|
* @param {sap.m.Button} oButton - the new base button
|
|
314
|
+
* @param {boolean} bSuppressInvalidate - if true, the menu as well as the inserted child are not marked as changed
|
|
315
315
|
* @return {this} Returns <code>this</code> to allow method chaining
|
|
316
316
|
*/
|
|
317
317
|
ShareMenu.prototype._setBaseButton = function (oButton, bSuppressInvalidate) {
|
package/src/sap/m/table/Util.js
CHANGED
|
@@ -4,24 +4,25 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @class Provides utility functions for tables
|
|
9
|
-
* @alias sap.m.table.Util
|
|
10
|
-
* @author SAP SE
|
|
11
|
-
* @version 1.98.0
|
|
12
|
-
* @since 1.96.0
|
|
13
|
-
* @private
|
|
14
|
-
* @static
|
|
15
|
-
* @experimental Since 1.96.0. This class is experimental and the API might be changed in future.
|
|
16
|
-
*/
|
|
17
7
|
sap.ui.define([
|
|
18
8
|
"sap/m/library",
|
|
19
9
|
"sap/ui/core/Core",
|
|
20
|
-
"sap/ui/core/theming/Parameters"
|
|
21
|
-
|
|
10
|
+
"sap/ui/core/theming/Parameters",
|
|
11
|
+
"sap/m/IllustratedMessage"
|
|
12
|
+
], function(MLibrary, Core, ThemeParameters, IllustratedMessage) {
|
|
22
13
|
"use strict";
|
|
23
14
|
/*global Intl*/
|
|
24
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Provides utility functions for tables.
|
|
18
|
+
* @namespace
|
|
19
|
+
* @alias module:sap/m/table/Util
|
|
20
|
+
* @author SAP SE
|
|
21
|
+
* @version 1.101.0
|
|
22
|
+
* @since 1.96.0
|
|
23
|
+
* @private
|
|
24
|
+
* @experimental Since 1.96.0. This class is experimental and the API might be changed in future.
|
|
25
|
+
*/
|
|
25
26
|
var Util = {};
|
|
26
27
|
|
|
27
28
|
// local privates
|
|
@@ -57,7 +58,7 @@ sap.ui.define([
|
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
|
-
* Calculates the width of a
|
|
61
|
+
* Calculates the width of a given ODataType that is used in tables.
|
|
61
62
|
*
|
|
62
63
|
* @param {sap.ui.model.odata.type.ODataType} oType The ODataType instance
|
|
63
64
|
* @param {object} [mSettings] The settings object
|
|
@@ -68,10 +69,10 @@ sap.ui.define([
|
|
|
68
69
|
*/
|
|
69
70
|
Util.calcTypeWidth = (function() {
|
|
70
71
|
var fBooleanWidth = 0;
|
|
71
|
-
var
|
|
72
|
-
var oUTCDate = new Date(Date.UTC.apply(0,
|
|
73
|
-
var oLocalDate = new (Function.prototype.bind.apply(Date, [null].concat(
|
|
74
|
-
var mNumericLimits = { Byte: 3, SByte: 3, Int16: 5, Int32: 9, Int64: 12, Single: 6, Float: 12, Double: 13, Decimal: 15 };
|
|
72
|
+
var aDateParameters = [2023, 9, 26, 22, 47, 58, 999];
|
|
73
|
+
var oUTCDate = new Date(Date.UTC.apply(0, aDateParameters));
|
|
74
|
+
var oLocalDate = new (Function.prototype.bind.apply(Date, [null].concat(aDateParameters)))();
|
|
75
|
+
var mNumericLimits = { Byte: 3, SByte: 3, Int16: 5, Int32: 9, Int64: 12, Single: 6, Float: 12, Double: 13, Decimal: 15, Integer: 9 };
|
|
75
76
|
Core.attachThemeChanged(function() { fBooleanWidth = 0; });
|
|
76
77
|
|
|
77
78
|
return function(oType, mSettings) {
|
|
@@ -90,7 +91,7 @@ sap.ui.define([
|
|
|
90
91
|
|
|
91
92
|
if (sType == "String" || oType.isA("sap.ui.model.odata.type.String")) {
|
|
92
93
|
var iMaxWidth = mSettings && mSettings.maxWidth || 19;
|
|
93
|
-
var iMaxLength = oType.getConstraints().maxLength || 0;
|
|
94
|
+
var iMaxLength = parseInt(oType.getConstraints().maxLength) || 0;
|
|
94
95
|
|
|
95
96
|
if (!iMaxLength) {
|
|
96
97
|
return Math.max(Math.min(10, iMaxWidth), iMaxWidth * 0.75);
|
|
@@ -109,23 +110,27 @@ sap.ui.define([
|
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
if (sType.startsWith("Date") || sType.startsWith("Time")) {
|
|
112
|
-
var
|
|
113
|
+
var mFormatOptions = oType.getFormatOptions();
|
|
114
|
+
var oDate = mFormatOptions.UTC ? oUTCDate : oLocalDate;
|
|
113
115
|
var sSample = oDate.toLocaleDateString();
|
|
114
116
|
|
|
115
117
|
if (sType == "TimeOfDay") {
|
|
116
|
-
sSample = new Intl.DateTimeFormat(
|
|
118
|
+
sSample = new Intl.DateTimeFormat("de", {hour: "numeric", minute: "numeric", second: "numeric"}).format(oDate);
|
|
117
119
|
sSample = oType.formatValue(sSample, "string");
|
|
118
120
|
} else if (oType.isA("sap.ui.model.odata.type.Time")) {
|
|
119
121
|
sSample = oType.formatValue({ __edmType: "Edm.Time", ms: oUTCDate.valueOf() }, "string");
|
|
120
122
|
} else {
|
|
121
|
-
sSample = oType.formatValue(oDate, "string");
|
|
123
|
+
sSample = oType.formatValue(mFormatOptions.interval ? [oDate, new Date(oDate * 1.009)] : oDate, "string");
|
|
124
|
+
((oType.oFormat && oType.oFormat.oFormatOptions && oType.oFormat.oFormatOptions.pattern) || "").replace(/[MELVec]{3,4}/, function(sWideFormat) {
|
|
125
|
+
sSample += (sWideFormat.length == 4 ? "---" : "-");
|
|
126
|
+
});
|
|
122
127
|
}
|
|
123
128
|
return Util.measureText(sSample);
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
if (mNumericLimits[sType]) {
|
|
127
|
-
var iScale = oType.getConstraints().scale || 0;
|
|
128
|
-
var iPrecision = oType.getConstraints().precision || 20;
|
|
132
|
+
var iScale = parseInt(oType.getConstraints().scale) || 0;
|
|
133
|
+
var iPrecision = parseInt(oType.getConstraints().precision) || 20;
|
|
129
134
|
iPrecision = Math.min(iPrecision, mNumericLimits[sType]);
|
|
130
135
|
var sNumber = 2 * Math.pow(10, iPrecision - iScale - 1);
|
|
131
136
|
sNumber = oType.formatValue(sNumber, "string");
|
|
@@ -187,6 +192,82 @@ sap.ui.define([
|
|
|
187
192
|
};
|
|
188
193
|
})();
|
|
189
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Calculates the width of a table column.
|
|
197
|
+
*
|
|
198
|
+
* @param {sap.ui.model.odata.type.ODataType[]} vTypes The ODataType instances
|
|
199
|
+
* @param {string} [sHeader] The header of the column
|
|
200
|
+
* @param {object} [mSettings] The settings object
|
|
201
|
+
* @param {int} [mSettings.minWidth=2] The minimum content width of the field in rem
|
|
202
|
+
* @param {int} [mSettings.maxWidth=19] The maximum content width of the field in rem
|
|
203
|
+
* @param {int} [mSettings.padding=1] The sum of column padding and border in rem
|
|
204
|
+
* @param {float} [mSettings.gap=0] The additional content width in rem
|
|
205
|
+
* @param {boolean} [mSettings.verticalArrangement=false] Whether the fields are arranged vertically
|
|
206
|
+
* @param {int} [mSettings.defaultWidth=8] The default column content width when type check fails
|
|
207
|
+
* @returns {string} The calculated width of the column
|
|
208
|
+
* @private
|
|
209
|
+
* @ui5-restricted sap.fe, sap.ui.mdc, sap.ui.comp
|
|
210
|
+
* @since 1.101
|
|
211
|
+
*/
|
|
212
|
+
Util.calcColumnWidth = function(vTypes, sHeader, mSettings) {
|
|
213
|
+
if (!Array.isArray(vTypes)) {
|
|
214
|
+
vTypes = [vTypes];
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
mSettings = Object.assign({
|
|
218
|
+
minWidth: 2,
|
|
219
|
+
maxWidth: 19,
|
|
220
|
+
defaultWidth: 8,
|
|
221
|
+
padding: 1,
|
|
222
|
+
gap: 0,
|
|
223
|
+
verticalArrangement: false
|
|
224
|
+
}, mSettings);
|
|
225
|
+
|
|
226
|
+
var fHeaderWidth = 0;
|
|
227
|
+
var iMinWidth = Math.max(1, mSettings.minWidth);
|
|
228
|
+
var iMaxWidth = Math.max(iMinWidth, mSettings.maxWidth);
|
|
229
|
+
|
|
230
|
+
var fContentWidth = mSettings.gap + vTypes.reduce(function(fInnerWidth, vType) {
|
|
231
|
+
var oType = vType, oTypeSettings = mSettings;
|
|
232
|
+
|
|
233
|
+
if (Array.isArray(vType)) {
|
|
234
|
+
// for internal usage (mdc/Table) every field can provide own width settings
|
|
235
|
+
// in this case we get [<TypeInstance>, <TypeSettings>][] instead of <TypeInstance>[]
|
|
236
|
+
oType = vType[0];
|
|
237
|
+
oTypeSettings = vType[1] || mSettings;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
var fTypeWidth = Util.calcTypeWidth(oType, oTypeSettings);
|
|
241
|
+
return mSettings.verticalArrangement ? Math.max(fInnerWidth, fTypeWidth) : fInnerWidth + fTypeWidth + (fInnerWidth && 0.5);
|
|
242
|
+
}, 0);
|
|
243
|
+
|
|
244
|
+
if (sHeader) {
|
|
245
|
+
fHeaderWidth = Util.calcHeaderWidth(sHeader, fContentWidth, iMaxWidth, iMinWidth);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
fContentWidth = Math.max(iMinWidth, fContentWidth, fHeaderWidth);
|
|
249
|
+
fContentWidth = Math.min(fContentWidth, iMaxWidth);
|
|
250
|
+
fContentWidth = Math.round(fContentWidth * 100) / 100;
|
|
251
|
+
|
|
252
|
+
return fContentWidth + mSettings.padding + "rem";
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Returns an instance of <code>sap.m.IllustratedMessage</code> in case there are no visible columns in the table.
|
|
257
|
+
*
|
|
258
|
+
* @returns {sap.m.IllustratedMessage} The message to be displayed when the table has no visible columns
|
|
259
|
+
* @private
|
|
260
|
+
*/
|
|
261
|
+
Util.getNoColumnsIllustratedMessage = function() {
|
|
262
|
+
var oResourceBundle = Core.getLibraryResourceBundle("sap.m");
|
|
263
|
+
|
|
264
|
+
return new IllustratedMessage({
|
|
265
|
+
illustrationType: MLibrary.IllustratedMessageType.AddColumn,
|
|
266
|
+
title: oResourceBundle.getText("TABLE_NO_COLUMNS_TITLE"),
|
|
267
|
+
description: oResourceBundle.getText("TABLE_NO_COLUMNS_DESCRIPTION")
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
|
|
190
271
|
return Util;
|
|
191
272
|
|
|
192
273
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/m/table/ItemBase"
|
|
7
|
+
"sap/m/table/columnmenu/ItemBase"
|
|
8
8
|
], function(
|
|
9
9
|
ItemBase
|
|
10
10
|
) {
|
|
@@ -13,25 +13,24 @@ sap.ui.define([
|
|
|
13
13
|
/**
|
|
14
14
|
* Constructor for a new ActionItem.
|
|
15
15
|
*
|
|
16
|
-
* @param {string} [sId] ID for the new
|
|
17
|
-
* @param {object} [mSettings] Initial settings for the new
|
|
16
|
+
* @param {string} [sId] ID for the new ActionItem, generated automatically if no ID is given
|
|
17
|
+
* @param {object} [mSettings] Initial settings for the new ActionItem
|
|
18
18
|
*
|
|
19
19
|
* @class
|
|
20
|
-
*
|
|
21
|
-
* It can be used to specify control- and application-specific items
|
|
22
|
-
* which should solely serve as actions.
|
|
20
|
+
* The ActionItem serves as a menu action item for the sap.m.table.columnmenu.Menu.
|
|
21
|
+
* It can be used to specify control- and application-specific items which should solely serve as actions.
|
|
23
22
|
*
|
|
24
|
-
* @extends sap.m.table.ItemBase
|
|
23
|
+
* @extends sap.m.table.columnmenu.ItemBase
|
|
25
24
|
*
|
|
26
25
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
26
|
+
* @version 1.101.0
|
|
28
27
|
*
|
|
29
28
|
* @private
|
|
30
29
|
* @experimental
|
|
31
30
|
*
|
|
32
|
-
* @alias sap.m.table.ActionItem
|
|
31
|
+
* @alias sap.m.table.columnmenu.ActionItem
|
|
33
32
|
*/
|
|
34
|
-
var ActionItem = ItemBase.extend("sap.m.table.ActionItem", {
|
|
33
|
+
var ActionItem = ItemBase.extend("sap.m.table.columnmenu.ActionItem", {
|
|
35
34
|
metadata: {
|
|
36
35
|
library: "sap.m",
|
|
37
36
|
properties: {
|
|
@@ -11,26 +11,26 @@ sap.ui.define([
|
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Constructor for a new
|
|
14
|
+
* Constructor for a new Entry.
|
|
15
15
|
*
|
|
16
|
-
* @param {string} [sId] ID for the new
|
|
17
|
-
* @param {object} [mSettings] Initial settings for the new
|
|
16
|
+
* @param {string} [sId] ID for the new Entry, generated automatically if no ID is given
|
|
17
|
+
* @param {object} [mSettings] Initial settings for the new Entry
|
|
18
18
|
*
|
|
19
19
|
* @class
|
|
20
|
-
*
|
|
21
|
-
* This base class is faceless and should be inherited to implement
|
|
20
|
+
* The Entry serves as a base class for elements residing inside the sap.m.table.columnmenu.Menu.
|
|
21
|
+
* This base class is faceless and should be inherited to implement Menu items and quick actions.
|
|
22
22
|
*
|
|
23
23
|
* @extends sap.ui.core.Element
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.101.0
|
|
27
27
|
*
|
|
28
28
|
* @private
|
|
29
29
|
* @experimental
|
|
30
30
|
*
|
|
31
|
-
* @alias sap.m.table.
|
|
31
|
+
* @alias sap.m.table.columnmenu.Entry
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var Entry = Element.extend("sap.m.table.columnmenu.Entry", {
|
|
34
34
|
metadata: {
|
|
35
35
|
"abstract": true,
|
|
36
36
|
library: "sap.m",
|
|
@@ -41,19 +41,19 @@ sap.ui.define([
|
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* This method can be used to retrieve the
|
|
44
|
+
* This method can be used to retrieve the Menu, in which the entry resides in.
|
|
45
45
|
*
|
|
46
46
|
* If an entry is internally creating entries that use #getMenu or #getParent,
|
|
47
47
|
* and returns them in #getEffectiveItems or #getEffectiveQuickActions, they
|
|
48
48
|
* must be its children in the control tree.
|
|
49
49
|
*
|
|
50
|
-
* @returns {sap.m.
|
|
50
|
+
* @returns {sap.m.table.columnmenu.Menu} The menu of the entry
|
|
51
51
|
* @public
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
Entry.prototype.getMenu = function () {
|
|
54
54
|
var oElement = this.getParent();
|
|
55
55
|
while (oElement) {
|
|
56
|
-
if (oElement.isA("sap.m.table.
|
|
56
|
+
if (oElement.isA("sap.m.table.columnmenu.Menu")) {
|
|
57
57
|
return oElement;
|
|
58
58
|
}
|
|
59
59
|
oElement = oElement.getMenu();
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @returns {string} The label property specified in the control
|
|
68
68
|
* @abstract
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
Entry.prototype.getLabel = function () {
|
|
71
71
|
if (this.getMetadata().hasProperty("label")) {
|
|
72
72
|
return this.getProperty("label");
|
|
73
73
|
}
|
|
@@ -80,14 +80,14 @@ sap.ui.define([
|
|
|
80
80
|
* @returns {sap.ui.core.Control} The control specified in the content aggregation
|
|
81
81
|
* @abstract
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
Entry.prototype.getContent = function () {
|
|
84
84
|
if (this.getMetadata().hasAggregation("content")) {
|
|
85
85
|
return this.getAggregation("content");
|
|
86
86
|
}
|
|
87
87
|
throw new Error(this + " does not implement #getContent");
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Entry.prototype.setVisible = function (bVisible) {
|
|
91
91
|
if (this.getVisible() == bVisible) {
|
|
92
92
|
return this;
|
|
93
93
|
}
|
|
@@ -97,5 +97,5 @@ sap.ui.define([
|
|
|
97
97
|
return this;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
return
|
|
100
|
+
return Entry;
|
|
101
101
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/m/table/ItemBase"
|
|
7
|
+
"sap/m/table/columnmenu/ItemBase"
|
|
8
8
|
], function(
|
|
9
9
|
ItemBase
|
|
10
10
|
) {
|
|
@@ -13,24 +13,24 @@ sap.ui.define([
|
|
|
13
13
|
/**
|
|
14
14
|
* Constructor for a new Item.
|
|
15
15
|
*
|
|
16
|
-
* @param {string} [sId] ID for the new
|
|
17
|
-
* @param {object} [mSettings] Initial settings for the new
|
|
16
|
+
* @param {string} [sId] ID for the new Item, generated automatically if no ID is given
|
|
17
|
+
* @param {object} [mSettings] Initial settings for the new Item
|
|
18
18
|
*
|
|
19
19
|
* @class
|
|
20
|
-
* This
|
|
20
|
+
* This Item serves as a menu item for the sap.m.table.columnmenu.Menu.
|
|
21
21
|
* It can be used to specify control- and application-specific items.
|
|
22
22
|
*
|
|
23
|
-
* @extends sap.m.table.ItemBase
|
|
23
|
+
* @extends sap.m.table.columnmenu.ItemBase
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.101.0
|
|
27
27
|
*
|
|
28
28
|
* @private
|
|
29
29
|
* @experimental
|
|
30
30
|
*
|
|
31
|
-
* @alias sap.m.table.Item
|
|
31
|
+
* @alias sap.m.table.columnmenu.Item
|
|
32
32
|
*/
|
|
33
|
-
var Item = ItemBase.extend("sap.m.table.Item", {
|
|
33
|
+
var Item = ItemBase.extend("sap.m.table.columnmenu.Item", {
|
|
34
34
|
metadata: {
|
|
35
35
|
library: "sap.m",
|
|
36
36
|
properties: {
|