@openui5/sap.ui.webc.main 1.111.1 → 1.112.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/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +1 -1
- package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
- package/src/sap/ui/webc/main/Badge.js +1 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
- package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
- package/src/sap/ui/webc/main/Button.js +1 -1
- package/src/sap/ui/webc/main/Calendar.js +1 -1
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +1 -1
- package/src/sap/ui/webc/main/CardHeader.js +1 -1
- package/src/sap/ui/webc/main/Carousel.js +1 -1
- package/src/sap/ui/webc/main/CheckBox.js +1 -1
- package/src/sap/ui/webc/main/ColorPalette.js +1 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +1 -1
- package/src/sap/ui/webc/main/ComboBox.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +1 -1
- package/src/sap/ui/webc/main/DatePicker.js +2 -2
- package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
- package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
- package/src/sap/ui/webc/main/Dialog.js +1 -1
- package/src/sap/ui/webc/main/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +5 -11
- package/src/sap/ui/webc/main/Input.js +1 -1
- package/src/sap/ui/webc/main/Label.js +1 -1
- package/src/sap/ui/webc/main/Link.js +1 -1
- package/src/sap/ui/webc/main/List.js +1 -1
- package/src/sap/ui/webc/main/Menu.js +1 -1
- package/src/sap/ui/webc/main/MenuItem.js +1 -1
- package/src/sap/ui/webc/main/MessageStrip.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +1 -1
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +1 -1
- package/src/sap/ui/webc/main/Popover.js +1 -1
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +1 -1
- package/src/sap/ui/webc/main/RangeSlider.js +1 -1
- package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
- package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +1 -1
- package/src/sap/ui/webc/main/SplitButton.js +1 -1
- package/src/sap/ui/webc/main/StandardListItem.js +1 -1
- package/src/sap/ui/webc/main/StepInput.js +1 -1
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
- package/src/sap/ui/webc/main/Switch.js +1 -1
- package/src/sap/ui/webc/main/Tab.js +1 -1
- package/src/sap/ui/webc/main/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +1 -1
- package/src/sap/ui/webc/main/TableCell.js +1 -1
- package/src/sap/ui/webc/main/TableColumn.js +1 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +1 -1
- package/src/sap/ui/webc/main/TimePicker.js +2 -2
- package/src/sap/ui/webc/main/Title.js +1 -1
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +1 -1
- package/src/sap/ui/webc/main/Token.js +1 -1
- package/src/sap/ui/webc/main/Tree.js +1 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/ui/webc/main/library.config.js +6 -0
- package/src/sap/ui/webc/main/library.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
- package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
- package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
- package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
- package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
- package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
- package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
- package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
- package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
- package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
- package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
- package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
- package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
- package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
- package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
- package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
- package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
- package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
- package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
- package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
- package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
- package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
- package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
- package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
- package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
- package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
- package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
- package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
- package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
- package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
- package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
- package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
- package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
- package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
- package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
- package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
- package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
- package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
- package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
- package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
- package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
- package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
- package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
- package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
- package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
- package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
- package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
- package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
- package/ui5.yaml +1 -1
@@ -15,14 +15,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
15
15
|
_AvatarSize = _interopRequireDefault(_AvatarSize);
|
16
16
|
_AvatarGroupType = _interopRequireDefault(_AvatarGroupType);
|
17
17
|
_AvatarColorScheme = _interopRequireDefault(_AvatarColorScheme);
|
18
|
-
|
19
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
20
|
-
|
21
19
|
// Template
|
20
|
+
|
22
21
|
// Styles
|
22
|
+
|
23
23
|
const OVERFLOW_BTN_CLASS = "ui5-avatar-group-overflow-btn";
|
24
|
-
const AVATAR_GROUP_OVERFLOW_BTN_SELECTOR = `.${OVERFLOW_BTN_CLASS}`;
|
24
|
+
const AVATAR_GROUP_OVERFLOW_BTN_SELECTOR = `.${OVERFLOW_BTN_CLASS}`;
|
25
25
|
|
26
|
+
// based on RTL/LTR a margin-left/right is set respectfully
|
26
27
|
const offsets = {
|
27
28
|
[_AvatarSize.default.XS]: {
|
28
29
|
[_AvatarGroupType.default.Individual]: "0.0625rem",
|
@@ -45,16 +46,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
45
46
|
[_AvatarGroupType.default.Group]: "-2.75rem"
|
46
47
|
}
|
47
48
|
};
|
49
|
+
|
48
50
|
/**
|
49
51
|
* @public
|
50
52
|
*/
|
51
|
-
|
52
53
|
const metadata = {
|
53
54
|
tag: "ui5-avatar-group",
|
54
55
|
managedSlots: true,
|
55
|
-
properties:
|
56
|
-
/** @lends sap.ui.webcomponents.main.AvatarGroup.prototype */
|
57
|
-
{
|
56
|
+
properties: /** @lends sap.ui.webcomponents.main.AvatarGroup.prototype */{
|
58
57
|
/**
|
59
58
|
* Defines the mode of the <code>AvatarGroup</code>.
|
60
59
|
* <br><br>
|
@@ -71,7 +70,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
71
70
|
type: String,
|
72
71
|
defaultValue: _AvatarGroupType.default.Group
|
73
72
|
},
|
74
|
-
|
75
73
|
/**
|
76
74
|
* Defines the aria-haspopup value of the component on:
|
77
75
|
* <br><br>
|
@@ -87,7 +85,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
87
85
|
ariaHaspopup: {
|
88
86
|
type: String
|
89
87
|
},
|
90
|
-
|
91
88
|
/**
|
92
89
|
* @private
|
93
90
|
*/
|
@@ -96,9 +93,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
96
93
|
noAttribute: true
|
97
94
|
}
|
98
95
|
},
|
99
|
-
slots:
|
100
|
-
/** @lends sap.ui.webcomponents.main.AvatarGroup.prototype */
|
101
|
-
{
|
96
|
+
slots: /** @lends sap.ui.webcomponents.main.AvatarGroup.prototype */{
|
102
97
|
/**
|
103
98
|
* Defines the items of the component. Use the <code>ui5-avatar</code> component as an item.
|
104
99
|
* <br><br>
|
@@ -113,7 +108,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
113
108
|
type: HTMLElement,
|
114
109
|
propertyName: "items"
|
115
110
|
},
|
116
|
-
|
117
111
|
/**
|
118
112
|
* Defines the overflow button of the component.
|
119
113
|
* <b>Note:</b> We recommend using the <code>ui5-button</code> component.
|
@@ -129,9 +123,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
129
123
|
type: HTMLElement
|
130
124
|
}
|
131
125
|
},
|
132
|
-
events:
|
133
|
-
/** @lends sap.ui.webcomponents.main.AvatarGroup.prototype */
|
134
|
-
{
|
126
|
+
events: /** @lends sap.ui.webcomponents.main.AvatarGroup.prototype */{
|
135
127
|
/**
|
136
128
|
* Fired when the component is activated either with a
|
137
129
|
* click/tap or by using the Enter or Space key.
|
@@ -151,7 +143,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
151
143
|
}
|
152
144
|
}
|
153
145
|
},
|
154
|
-
|
155
146
|
/**
|
156
147
|
* Fired when the count of visible <code>ui5-avatar</code> elements in the
|
157
148
|
* component has changed
|
@@ -162,6 +153,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
162
153
|
overflow: {}
|
163
154
|
}
|
164
155
|
};
|
156
|
+
|
165
157
|
/**
|
166
158
|
* @class
|
167
159
|
*
|
@@ -235,7 +227,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
235
227
|
* @since 1.0.0-rc.11
|
236
228
|
* @public
|
237
229
|
*/
|
238
|
-
|
239
230
|
class AvatarGroup extends _UI5Element.default {
|
240
231
|
constructor() {
|
241
232
|
super();
|
@@ -248,30 +239,25 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
248
239
|
this._hiddenItems = 0;
|
249
240
|
this._onResizeHandler = this._onResize.bind(this);
|
250
241
|
}
|
251
|
-
|
252
242
|
static get metadata() {
|
253
243
|
return metadata;
|
254
244
|
}
|
255
|
-
|
256
245
|
static get render() {
|
257
246
|
return _LitRenderer.default;
|
258
247
|
}
|
259
|
-
|
260
248
|
static get template() {
|
261
249
|
return _AvatarGroupTemplate.default;
|
262
250
|
}
|
263
|
-
|
264
251
|
static get styles() {
|
265
252
|
return _AvatarGroup.default;
|
266
253
|
}
|
267
|
-
|
268
254
|
static get dependencies() {
|
269
255
|
return [_Button.default];
|
270
256
|
}
|
271
|
-
|
272
257
|
static async onDefine() {
|
273
258
|
AvatarGroup.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
274
259
|
}
|
260
|
+
|
275
261
|
/**
|
276
262
|
* Returns an array containing the <code>ui5-avatar</code> instances that are currently not displayed due to lack of space.
|
277
263
|
* @readonly
|
@@ -279,11 +265,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
279
265
|
* @defaultValue []
|
280
266
|
* @public
|
281
267
|
*/
|
282
|
-
|
283
|
-
|
284
268
|
get hiddenItems() {
|
285
269
|
return this.items.slice(this._hiddenStartIndex);
|
286
270
|
}
|
271
|
+
|
287
272
|
/**
|
288
273
|
* Returns an array containing the <code>AvatarColorScheme</code> values that correspond to the avatars in the component.
|
289
274
|
* @readonly
|
@@ -291,24 +276,21 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
291
276
|
* @defaultValue []
|
292
277
|
* @public
|
293
278
|
*/
|
294
|
-
|
295
|
-
|
296
279
|
get colorScheme() {
|
297
280
|
return this.items.map(avatar => avatar._effectiveBackgroundColor);
|
298
281
|
}
|
299
|
-
|
300
282
|
get _customOverflowButton() {
|
301
283
|
return this.overflowButton.length ? this.overflowButton[0] : undefined;
|
302
284
|
}
|
303
|
-
|
304
285
|
get _ariaLabelText() {
|
305
286
|
const hiddenItemsCount = this.hiddenItems.length;
|
306
|
-
const typeLabelKey = this._isGroup ? _i18nDefaults.AVATAR_GROUP_ARIA_LABEL_GROUP : _i18nDefaults.AVATAR_GROUP_ARIA_LABEL_INDIVIDUAL;
|
287
|
+
const typeLabelKey = this._isGroup ? _i18nDefaults.AVATAR_GROUP_ARIA_LABEL_GROUP : _i18nDefaults.AVATAR_GROUP_ARIA_LABEL_INDIVIDUAL;
|
307
288
|
|
308
|
-
|
289
|
+
// avatar type label
|
290
|
+
let text = AvatarGroup.i18nBundle.getText(typeLabelKey);
|
309
291
|
|
292
|
+
// add displayed-hidden avatars label
|
310
293
|
text += ` ${AvatarGroup.i18nBundle.getText(_i18nDefaults.AVATAR_GROUP_DISPLAYED_HIDDEN_LABEL, this._itemsCount - hiddenItemsCount, hiddenItemsCount)}`;
|
311
|
-
|
312
294
|
if (this._isGroup) {
|
313
295
|
// the container role is "button", add the message for complete list activation
|
314
296
|
text += ` ${AvatarGroup.i18nBundle.getText(_i18nDefaults.AVATAR_GROUP_SHOW_COMPLETE_LIST_LABEL)}`;
|
@@ -316,51 +298,41 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
316
298
|
// the container role is "group", add the "how to navigate" message
|
317
299
|
text += ` ${AvatarGroup.i18nBundle.getText(_i18nDefaults.AVATAR_GROUP_MOVE)}`;
|
318
300
|
}
|
319
|
-
|
320
301
|
return text;
|
321
302
|
}
|
322
|
-
|
323
303
|
get _overflowButtonAriaLabelText() {
|
324
304
|
return this._isGroup ? undefined : AvatarGroup.i18nBundle.getText(_i18nDefaults.AVATAR_GROUP_SHOW_COMPLETE_LIST_LABEL);
|
325
305
|
}
|
326
|
-
|
327
306
|
get _containerAriaHasPopup() {
|
328
307
|
return this._isGroup ? this._getAriaHasPopup() : undefined;
|
329
308
|
}
|
330
|
-
|
331
309
|
get _overflowButtonAccAttributes() {
|
332
310
|
return {
|
333
311
|
hasPopup: this._isGroup ? undefined : this._getAriaHasPopup()
|
334
312
|
};
|
335
313
|
}
|
336
|
-
|
337
314
|
get _role() {
|
338
315
|
return this._isGroup ? "button" : "group";
|
339
316
|
}
|
340
|
-
|
341
317
|
get _hiddenStartIndex() {
|
342
318
|
return this._itemsCount - this._hiddenItems;
|
343
319
|
}
|
344
|
-
|
345
320
|
get _overflowBtnHidden() {
|
346
321
|
return this._hiddenItems === 0;
|
347
322
|
}
|
348
|
-
|
349
323
|
get _isGroup() {
|
350
324
|
return this.type === _AvatarGroupType.default.Group;
|
351
325
|
}
|
352
|
-
|
353
326
|
get _itemsCount() {
|
354
327
|
return this.items.length;
|
355
328
|
}
|
356
|
-
|
357
329
|
get _groupTabIndex() {
|
358
330
|
return this._isGroup ? "0" : "-1";
|
359
331
|
}
|
360
|
-
|
361
332
|
get _overflowButton() {
|
362
333
|
return this.shadowRoot.querySelector(AVATAR_GROUP_OVERFLOW_BTN_SELECTOR);
|
363
334
|
}
|
335
|
+
|
364
336
|
/**
|
365
337
|
* Return the effective overflow button width
|
366
338
|
* Differences are that when in "Group" type the button is offset and overlaps the avatars
|
@@ -369,28 +341,23 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
369
341
|
* 2) In case of "Individual" group type width is directly taken from button element
|
370
342
|
* @private
|
371
343
|
*/
|
372
|
-
|
373
|
-
|
374
344
|
get _overflowButtonEffectiveWidth() {
|
375
|
-
const button = this._customOverflowButton ? this._customOverflowButton : this._overflowButton;
|
376
|
-
|
345
|
+
const button = this._customOverflowButton ? this._customOverflowButton : this._overflowButton;
|
346
|
+
// if in "Group" mode overflow button size is equal to the offset from second item
|
377
347
|
if (this._isGroup) {
|
378
|
-
let item = this.items[1];
|
348
|
+
let item = this.items[1];
|
379
349
|
|
350
|
+
// in some cases when second avatar is overflowed the offset of the button is the right one
|
380
351
|
if (!item || item.hidden) {
|
381
352
|
item = button;
|
382
353
|
}
|
383
|
-
|
384
354
|
return this.effectiveDir === "rtl" ? this._getWidthToItem(item) : item.offsetLeft - this.offsetLeft;
|
385
355
|
}
|
386
|
-
|
387
356
|
return button.offsetWidth;
|
388
357
|
}
|
389
|
-
|
390
358
|
get firstAvatarSize() {
|
391
359
|
return this.items[0].size;
|
392
360
|
}
|
393
|
-
|
394
361
|
get classes() {
|
395
362
|
return {
|
396
363
|
overflowButton: {
|
@@ -403,31 +370,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
403
370
|
}
|
404
371
|
};
|
405
372
|
}
|
406
|
-
|
407
373
|
onAfterRendering() {
|
408
374
|
this._overflowItems();
|
409
375
|
}
|
410
|
-
|
411
376
|
onBeforeRendering() {
|
412
377
|
if (this._customOverflowButton) {
|
413
378
|
this._customOverflowButton.nonInteractive = this._isGroup;
|
414
379
|
}
|
415
|
-
|
416
380
|
this._prepareAvatars();
|
417
381
|
}
|
418
|
-
|
419
382
|
onEnterDOM() {
|
420
383
|
_ResizeHandler.default.register(this, this._onResizeHandler);
|
421
384
|
}
|
422
|
-
|
423
385
|
onExitDOM() {
|
424
386
|
_ResizeHandler.default.deregister(this, this._onResizeHandler);
|
425
387
|
}
|
426
|
-
|
427
388
|
_onResize() {
|
428
389
|
this._overflowItems();
|
429
390
|
}
|
430
|
-
|
431
391
|
_onkeydown(event) {
|
432
392
|
// when type is "Individual" the ui5-avatar and ui5-button both
|
433
393
|
// fire "click" event when SPACE or ENTER are pressed and
|
@@ -441,141 +401,120 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
441
401
|
}
|
442
402
|
}
|
443
403
|
}
|
444
|
-
|
445
404
|
_onkeyup(event) {
|
446
405
|
if (!event.shiftKey && (0, _Keys.isSpace)(event) && this._isGroup) {
|
447
406
|
this._fireGroupEvent(event.target);
|
448
|
-
|
449
407
|
event.preventDefault();
|
450
408
|
}
|
451
409
|
}
|
452
|
-
|
453
410
|
_fireGroupEvent(targetRef) {
|
454
411
|
const isOverflowButtonClicked = targetRef.classList.contains(OVERFLOW_BTN_CLASS) || targetRef === this._customOverflowButton;
|
455
|
-
|
456
412
|
this.fireEvent("click", {
|
457
413
|
targetRef,
|
458
414
|
overflowButtonClicked: isOverflowButtonClicked
|
459
415
|
});
|
460
416
|
}
|
461
|
-
|
462
417
|
_onClick(event) {
|
463
418
|
// no matter the value of noConflict, the ui5-button and the group container (div) always fire a native click event
|
464
419
|
const isButton = event.target.hasAttribute("ui5-button");
|
465
420
|
event.stopPropagation();
|
466
|
-
|
467
421
|
if (this._isGroup || isButton) {
|
468
422
|
this._fireGroupEvent(event.target);
|
469
423
|
}
|
470
424
|
}
|
471
|
-
|
472
425
|
_onUI5Click(event) {
|
473
426
|
// when noConflict=true only ui5-avatar will fire ui5-click event
|
474
427
|
const isAvatar = event.target.hasAttribute("ui5-avatar");
|
475
428
|
event.stopPropagation();
|
476
|
-
|
477
429
|
if (isAvatar) {
|
478
430
|
this._fireGroupEvent(event.target);
|
479
431
|
}
|
480
432
|
}
|
433
|
+
|
481
434
|
/**
|
482
435
|
* Modifies avatars to the needs of avatar group properties. Respects already set size and background color.
|
483
436
|
* Set the margins (offsets) based on RTL/LTR.
|
484
437
|
* @private
|
485
438
|
*/
|
486
|
-
|
487
|
-
|
488
439
|
_prepareAvatars() {
|
489
440
|
const RTL = this.effectiveDir === "rtl";
|
490
441
|
this._colorIndex = 0;
|
491
442
|
this.items.forEach((avatar, index) => {
|
492
443
|
const colorIndex = this._getNextBackgroundColor();
|
493
|
-
|
494
444
|
avatar.interactive = !this._isGroup;
|
495
|
-
|
496
445
|
if (!avatar.getAttribute("_color-scheme")) {
|
497
446
|
// AvatarGroup respects colors set to ui5-avatar
|
498
447
|
avatar.setAttribute("_color-scheme", _AvatarColorScheme.default[`Accent${colorIndex}`]);
|
499
|
-
}
|
500
|
-
|
448
|
+
}
|
501
449
|
|
450
|
+
// last avatar should not be offset as it breaks the container width and focus styles are no set correctly
|
502
451
|
if (index !== this._itemsCount - 1 || this._customOverflowButton) {
|
503
452
|
// based on RTL margin left or right is set to avatars
|
504
453
|
avatar.style[`margin-${RTL ? "left" : "right"}`] = offsets[avatar._effectiveSize][this.type];
|
505
454
|
}
|
506
455
|
});
|
507
456
|
}
|
508
|
-
|
509
457
|
_onfocusin(event) {
|
510
458
|
const target = event.target;
|
511
|
-
|
512
459
|
this._itemNavigation.setCurrentItem(target);
|
513
460
|
}
|
461
|
+
|
514
462
|
/**
|
515
463
|
* Returns the total width to item excluding the item width
|
516
464
|
* RTL/LTR aware
|
517
465
|
* @private
|
518
466
|
* @param {HTMLElement} item
|
519
467
|
*/
|
520
|
-
|
521
|
-
|
522
468
|
_getWidthToItem(item) {
|
523
469
|
const isRTL = this.effectiveDir === "rtl";
|
524
|
-
|
525
470
|
if (isRTL) {
|
526
471
|
// in RTL the total width is equal to difference of the parent container width and
|
527
472
|
// how much is the item offset to the left minus its offsetWidth
|
528
473
|
return item.offsetParent.offsetWidth - item.offsetLeft - item.offsetWidth;
|
529
|
-
}
|
530
|
-
|
474
|
+
}
|
531
475
|
|
476
|
+
// in LTR the width is equal to item.offsetLeft
|
532
477
|
return item.offsetLeft - this.offsetLeft;
|
533
478
|
}
|
479
|
+
|
534
480
|
/**
|
535
481
|
* Overflows items that were not able to fit the container
|
536
482
|
* @private
|
537
483
|
*/
|
538
|
-
|
539
|
-
|
540
484
|
_overflowItems() {
|
541
485
|
if (this.items.length < 2) {
|
542
486
|
// no need to overflow avatars
|
543
487
|
return;
|
544
488
|
}
|
545
|
-
|
546
489
|
let hiddenItems = 0;
|
547
|
-
|
548
490
|
for (let index = 0; index < this._itemsCount; index++) {
|
549
|
-
const item = this.items[index];
|
491
|
+
const item = this.items[index];
|
550
492
|
|
551
|
-
|
552
|
-
|
493
|
+
// show item to determine if it will fit the new container size
|
494
|
+
item.hidden = false;
|
553
495
|
|
496
|
+
// container width to current item + item width (avatar)
|
497
|
+
// used to determine whether the following items will fit the container or not
|
554
498
|
let totalWidth = this._getWidthToItem(item) + item.offsetWidth;
|
555
|
-
|
556
499
|
if (index !== this._itemsCount - 1 || this._customOverflowButton) {
|
557
500
|
totalWidth += this._overflowButtonEffectiveWidth;
|
558
501
|
}
|
559
|
-
|
560
502
|
if (totalWidth > this.offsetWidth) {
|
561
503
|
hiddenItems = this._itemsCount - index;
|
562
504
|
break;
|
563
505
|
}
|
564
|
-
}
|
565
|
-
|
506
|
+
}
|
566
507
|
|
508
|
+
// hide the items that did not fit the container size
|
567
509
|
this._setHiddenItems(hiddenItems);
|
568
510
|
}
|
569
|
-
|
570
511
|
_getNextBackgroundColor() {
|
571
512
|
// counter is to automatically assign background colors to avatars, `Accent10` is the highest color value
|
572
513
|
if (++this._colorIndex > 10) {
|
573
514
|
this._colorIndex = 1;
|
574
515
|
}
|
575
|
-
|
576
516
|
return this._colorIndex;
|
577
517
|
}
|
578
|
-
|
579
518
|
_setHiddenItems(hiddenItems) {
|
580
519
|
const shouldFireEvent = this._hiddenItems !== hiddenItems;
|
581
520
|
this._hiddenItems = hiddenItems;
|
@@ -583,22 +522,17 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
583
522
|
item.hidden = index >= this._hiddenStartIndex;
|
584
523
|
});
|
585
524
|
this._overflowButtonText = `+${hiddenItems > 99 ? 99 : hiddenItems}`;
|
586
|
-
|
587
525
|
if (shouldFireEvent) {
|
588
526
|
this.fireEvent("overflow");
|
589
527
|
}
|
590
528
|
}
|
591
|
-
|
592
529
|
_getAriaHasPopup() {
|
593
530
|
if (this.ariaHaspopup === "") {
|
594
531
|
return;
|
595
532
|
}
|
596
|
-
|
597
533
|
return this.ariaHaspopup;
|
598
534
|
}
|
599
|
-
|
600
535
|
}
|
601
|
-
|
602
536
|
AvatarGroup.define();
|
603
537
|
var _default = AvatarGroup;
|
604
538
|
_exports.default = _default;
|
@@ -10,10 +10,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
10
10
|
_isDefaultSlotProvided = _interopRequireDefault(_isDefaultSlotProvided);
|
11
11
|
_BadgeTemplate = _interopRequireDefault(_BadgeTemplate);
|
12
12
|
_Badge = _interopRequireDefault(_Badge);
|
13
|
-
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
|
16
14
|
// Template
|
15
|
+
|
17
16
|
// Styles
|
18
17
|
|
19
18
|
/**
|
@@ -22,9 +21,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
22
21
|
const metadata = {
|
23
22
|
tag: "ui5-badge",
|
24
23
|
languageAware: true,
|
25
|
-
properties:
|
26
|
-
/** @lends sap.ui.webcomponents.main.Badge.prototype */
|
27
|
-
{
|
24
|
+
properties: /** @lends sap.ui.webcomponents.main.Badge.prototype */{
|
28
25
|
/**
|
29
26
|
* Defines the color scheme of the component.
|
30
27
|
* There are 10 predefined schemes. Each scheme applies different values for the <code>background-color</code> and <code>border-color</code>.
|
@@ -39,7 +36,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
39
36
|
type: String,
|
40
37
|
defaultValue: "1"
|
41
38
|
},
|
42
|
-
|
43
39
|
/**
|
44
40
|
* Defines if the badge has an icon.
|
45
41
|
* @private
|
@@ -47,7 +43,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
47
43
|
_hasIcon: {
|
48
44
|
type: Boolean
|
49
45
|
},
|
50
|
-
|
51
46
|
/**
|
52
47
|
* Defines if the badge has only an icon (and no text).
|
53
48
|
* @private
|
@@ -57,9 +52,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
57
52
|
}
|
58
53
|
},
|
59
54
|
managedSlots: true,
|
60
|
-
slots:
|
61
|
-
/** @lends sap.ui.webcomponents.main.Badge.prototype */
|
62
|
-
{
|
55
|
+
slots: /** @lends sap.ui.webcomponents.main.Badge.prototype */{
|
63
56
|
/**
|
64
57
|
* Defines the text of the component.
|
65
58
|
* <br><b>Note:</b> Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
|
@@ -71,7 +64,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
71
64
|
"default": {
|
72
65
|
type: Node
|
73
66
|
},
|
74
|
-
|
75
67
|
/**
|
76
68
|
* Defines the icon to be displayed in the component.
|
77
69
|
*
|
@@ -84,6 +76,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
84
76
|
}
|
85
77
|
}
|
86
78
|
};
|
79
|
+
|
87
80
|
/**
|
88
81
|
* @class
|
89
82
|
* <h3 class="comment-api-title">Overview</h3>
|
@@ -110,51 +103,39 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
110
103
|
* @since 0.12.0
|
111
104
|
* @public
|
112
105
|
*/
|
113
|
-
|
114
106
|
class Badge extends _UI5Element.default {
|
115
107
|
static get metadata() {
|
116
108
|
return metadata;
|
117
109
|
}
|
118
|
-
|
119
110
|
static get render() {
|
120
111
|
return _LitRenderer.default;
|
121
112
|
}
|
122
|
-
|
123
113
|
static get template() {
|
124
114
|
return _BadgeTemplate.default;
|
125
115
|
}
|
126
|
-
|
127
116
|
static get styles() {
|
128
117
|
return _Badge.default;
|
129
118
|
}
|
130
|
-
|
131
119
|
static async onDefine() {
|
132
120
|
Badge.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
133
121
|
}
|
134
|
-
|
135
122
|
onBeforeRendering() {
|
136
123
|
this._hasIcon = this.hasIcon;
|
137
124
|
this._iconOnly = this.iconOnly;
|
138
125
|
}
|
139
|
-
|
140
126
|
get hasText() {
|
141
127
|
return (0, _isDefaultSlotProvided.default)(this);
|
142
128
|
}
|
143
|
-
|
144
129
|
get hasIcon() {
|
145
130
|
return !!this.icon.length;
|
146
131
|
}
|
147
|
-
|
148
132
|
get iconOnly() {
|
149
133
|
return this.hasIcon && !this.hasText;
|
150
134
|
}
|
151
|
-
|
152
135
|
get badgeDescription() {
|
153
136
|
return Badge.i18nBundle.getText(_i18nDefaults.BADGE_DESCRIPTION);
|
154
137
|
}
|
155
|
-
|
156
138
|
}
|
157
|
-
|
158
139
|
Badge.define();
|
159
140
|
var _default = Badge;
|
160
141
|
_exports.default = _default;
|