@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
@@ -25,10 +25,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
25
25
|
_BreadcrumbsPopoverTemplate = _interopRequireDefault(_BreadcrumbsPopoverTemplate);
|
26
26
|
_Breadcrumbs = _interopRequireDefault(_Breadcrumbs);
|
27
27
|
_BreadcrumbsPopover = _interopRequireDefault(_BreadcrumbsPopover);
|
28
|
-
|
29
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
30
|
-
|
31
29
|
// Templates
|
30
|
+
|
32
31
|
// Styles
|
33
32
|
|
34
33
|
/**
|
@@ -38,9 +37,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
38
37
|
tag: "ui5-breadcrumbs",
|
39
38
|
managedSlots: true,
|
40
39
|
languageAware: true,
|
41
|
-
slots:
|
42
|
-
/** @lends sap.ui.webcomponents.main.Breadcrumbs.prototype */
|
43
|
-
{
|
40
|
+
slots: /** @lends sap.ui.webcomponents.main.Breadcrumbs.prototype */{
|
44
41
|
/**
|
45
42
|
* Defines the component items.
|
46
43
|
*
|
@@ -56,9 +53,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
56
53
|
invalidateOnChildChange: true
|
57
54
|
}
|
58
55
|
},
|
59
|
-
properties:
|
60
|
-
/** @lends sap.ui.webcomponents.main.Breadcrumbs.prototype */
|
61
|
-
{
|
56
|
+
properties: /** @lends sap.ui.webcomponents.main.Breadcrumbs.prototype */{
|
62
57
|
/**
|
63
58
|
* Defines the visual indication and behavior of the breadcrumbs.
|
64
59
|
* Available options are <code>Standard</code> (by default) and <code>NoCurrentPage</code>.
|
@@ -74,7 +69,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
74
69
|
type: _BreadcrumbsDesign.default,
|
75
70
|
defaultValue: _BreadcrumbsDesign.default.Standard
|
76
71
|
},
|
77
|
-
|
78
72
|
/**
|
79
73
|
* Determines the visual style of the separator between the breadcrumb items.
|
80
74
|
*
|
@@ -97,7 +91,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
97
91
|
type: _BreadcrumbsSeparatorStyle.default,
|
98
92
|
defaultValue: _BreadcrumbsSeparatorStyle.default.Slash
|
99
93
|
},
|
100
|
-
|
101
94
|
/**
|
102
95
|
* Holds the number of items in the overflow.
|
103
96
|
*
|
@@ -111,9 +104,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
111
104
|
defaultValue: 0
|
112
105
|
}
|
113
106
|
},
|
114
|
-
events:
|
115
|
-
/** @lends sap.ui.webcomponents.main.Breadcrumbs.prototype */
|
116
|
-
{
|
107
|
+
events: /** @lends sap.ui.webcomponents.main.Breadcrumbs.prototype */{
|
117
108
|
/**
|
118
109
|
* Fires when a <code>BreadcrumbsItem</code> is clicked.
|
119
110
|
* <b>Note:</b> You can prevent browser location change by calling <code>event.preventDefault()</code>.
|
@@ -148,6 +139,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
148
139
|
}
|
149
140
|
}
|
150
141
|
};
|
142
|
+
|
151
143
|
/**
|
152
144
|
* @class
|
153
145
|
*
|
@@ -184,64 +176,51 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
184
176
|
* @public
|
185
177
|
* @since 1.0.0-rc.15
|
186
178
|
*/
|
187
|
-
|
188
179
|
class Breadcrumbs extends _UI5Element.default {
|
189
180
|
static get metadata() {
|
190
181
|
return metadata;
|
191
182
|
}
|
192
|
-
|
193
183
|
static get render() {
|
194
184
|
return _LitRenderer.default;
|
195
185
|
}
|
196
|
-
|
197
186
|
static get template() {
|
198
187
|
return _BreadcrumbsTemplate.default;
|
199
188
|
}
|
200
|
-
|
201
189
|
static get staticAreaTemplate() {
|
202
190
|
return _BreadcrumbsPopoverTemplate.default;
|
203
191
|
}
|
204
|
-
|
205
192
|
static get styles() {
|
206
193
|
return _Breadcrumbs.default;
|
207
194
|
}
|
208
|
-
|
209
195
|
static get staticAreaStyles() {
|
210
196
|
return _BreadcrumbsPopover.default;
|
211
197
|
}
|
212
|
-
|
213
198
|
constructor() {
|
214
199
|
super();
|
215
|
-
|
216
200
|
this._initItemNavigation();
|
201
|
+
this._onResizeHandler = this._updateOverflow.bind(this);
|
217
202
|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
203
|
+
// maps items to their widths
|
204
|
+
this._breadcrumbItemWidths = new WeakMap();
|
205
|
+
// the width of the interactive element that opens the overflow
|
222
206
|
this._dropdownArrowLinkWidth = 0;
|
223
207
|
this._labelFocusAdaptor = {
|
224
208
|
id: `${this._id}-labelWrapper`,
|
225
209
|
getlabelWrapper: this.getCurrentLocationLabelWrapper.bind(this),
|
226
|
-
|
227
210
|
set _tabIndex(value) {
|
228
211
|
const wrapper = this.getlabelWrapper();
|
229
212
|
wrapper && wrapper.setAttribute("tabindex", value);
|
230
213
|
},
|
231
|
-
|
232
214
|
get _tabIndex() {
|
233
215
|
const wrapper = this.getlabelWrapper();
|
234
216
|
return wrapper ? wrapper.getAttribute("tabindex") : undefined;
|
235
217
|
}
|
236
|
-
|
237
218
|
};
|
238
219
|
}
|
239
|
-
|
240
220
|
onInvalidation(changeInfo) {
|
241
221
|
if (changeInfo.reason === "childchange") {
|
242
222
|
const itemIndex = this.getSlottedNodes("items").indexOf(changeInfo.child),
|
243
|
-
|
244
|
-
|
223
|
+
isInOverflow = itemIndex < this._overflowSize;
|
245
224
|
if (isInOverflow) {
|
246
225
|
// the content of an overflowing item has changed
|
247
226
|
// => need to render the item outside the overflow to obtain its new width
|
@@ -250,25 +229,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
250
229
|
}
|
251
230
|
}
|
252
231
|
}
|
253
|
-
|
254
232
|
onBeforeRendering() {
|
255
233
|
this._preprocessItems();
|
256
234
|
}
|
257
|
-
|
258
235
|
onAfterRendering() {
|
259
236
|
this._cacheWidths();
|
260
|
-
|
261
237
|
this._updateOverflow();
|
262
238
|
}
|
263
|
-
|
264
239
|
onEnterDOM() {
|
265
240
|
_ResizeHandler.default.register(this, this._onResizeHandler);
|
266
241
|
}
|
267
|
-
|
268
242
|
onExitDOM() {
|
269
243
|
_ResizeHandler.default.deregister(this, this._onResizeHandler);
|
270
244
|
}
|
271
|
-
|
272
245
|
_initItemNavigation() {
|
273
246
|
if (!this._itemNavigation) {
|
274
247
|
this._itemNavigation = new _ItemNavigation.default(this, {
|
@@ -277,145 +250,118 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
277
250
|
});
|
278
251
|
}
|
279
252
|
}
|
253
|
+
|
280
254
|
/**
|
281
255
|
* Obtains the items for navigation via keyboard
|
282
256
|
* @private
|
283
257
|
*/
|
284
|
-
|
285
|
-
|
286
258
|
_getFocusableItems() {
|
287
259
|
const items = this._links;
|
288
|
-
|
289
260
|
if (!this._isOverflowEmpty) {
|
290
261
|
items.unshift(this._dropdownArrowLink);
|
291
262
|
}
|
292
|
-
|
293
263
|
if (this._endsWithCurrentLocationLabel) {
|
294
264
|
items.push(this._labelFocusAdaptor);
|
295
265
|
}
|
296
|
-
|
297
266
|
return items;
|
298
267
|
}
|
299
|
-
|
300
268
|
_onfocusin(event) {
|
301
269
|
const target = event.target,
|
302
|
-
|
303
|
-
|
304
|
-
|
270
|
+
labelWrapper = this.getCurrentLocationLabelWrapper(),
|
271
|
+
currentItem = target === labelWrapper ? this._labelFocusAdaptor : target;
|
305
272
|
this._itemNavigation.setCurrentItem(currentItem);
|
306
273
|
}
|
307
|
-
|
308
274
|
_onkeydown(event) {
|
309
275
|
const isDropdownArrowFocused = this._isDropdownArrowFocused;
|
310
|
-
|
311
276
|
if ((0, _Keys.isShow)(event) && isDropdownArrowFocused && !this._isOverflowEmpty) {
|
312
277
|
event.preventDefault();
|
313
|
-
|
314
278
|
this._toggleRespPopover();
|
315
|
-
|
316
279
|
return;
|
317
280
|
}
|
318
|
-
|
319
281
|
if ((0, _Keys.isSpace)(event) && isDropdownArrowFocused && !this._isOverflowEmpty && !this._isPickerOpen) {
|
320
282
|
event.preventDefault();
|
321
283
|
return;
|
322
284
|
}
|
323
|
-
|
324
285
|
if (((0, _Keys.isEnter)(event) || (0, _Keys.isSpace)(event)) && this._isCurrentLocationLabelFocused) {
|
325
286
|
this._onLabelPress();
|
326
287
|
}
|
327
288
|
}
|
328
|
-
|
329
289
|
_onkeyup(event) {
|
330
290
|
if (this._isDropdownArrowFocused && (0, _Keys.isSpace)(event) && !this._isOverflowEmpty && !this._isPickerOpen) {
|
331
291
|
this._openRespPopover();
|
332
292
|
}
|
333
293
|
}
|
294
|
+
|
334
295
|
/**
|
335
296
|
* Caches the space required to render the content
|
336
297
|
* @private
|
337
298
|
*/
|
338
|
-
|
339
|
-
|
340
299
|
_cacheWidths() {
|
341
300
|
const map = this._breadcrumbItemWidths,
|
342
|
-
|
343
|
-
|
344
|
-
|
301
|
+
items = this.getSlottedNodes("items"),
|
302
|
+
label = this._currentLocationLabel;
|
345
303
|
for (let i = this._overflowSize; i < items.length; i++) {
|
346
304
|
const item = items[i],
|
347
|
-
|
305
|
+
link = this.shadowRoot.querySelector(`#${item._id}-link-wrapper`);
|
348
306
|
map.set(item, this._getElementWidth(link) || 0);
|
349
307
|
}
|
350
|
-
|
351
308
|
if (items.length && this._endsWithCurrentLocationLabel && label) {
|
352
309
|
const item = items[items.length - 1];
|
353
310
|
map.set(item, this._getElementWidth(label));
|
354
311
|
}
|
355
|
-
|
356
312
|
if (!this._isOverflowEmpty) {
|
357
313
|
this._dropdownArrowLinkWidth = this._getElementWidth(this.shadowRoot.querySelector(".ui5-breadcrumbs-dropdown-arrow-link-wrapper"));
|
358
314
|
}
|
359
315
|
}
|
360
|
-
|
361
316
|
_updateOverflow() {
|
362
317
|
const items = this.getSlottedNodes("items"),
|
363
|
-
|
364
|
-
|
318
|
+
availableWidth = this.shadowRoot.querySelector(".ui5-breadcrumbs-root").offsetWidth;
|
365
319
|
let requiredWidth = this._getTotalContentWidth(),
|
366
|
-
|
367
|
-
|
320
|
+
overflowSize = 0;
|
368
321
|
if (requiredWidth > availableWidth) {
|
369
322
|
// need to show the component that opens the overflow
|
370
323
|
requiredWidth += this._dropdownArrowLinkWidth;
|
371
324
|
}
|
372
|
-
|
373
325
|
while (requiredWidth > availableWidth && overflowSize < this._maxAllowedOverflowSize) {
|
374
326
|
const itemToOverflow = items[overflowSize];
|
375
327
|
let itemWidth = 0;
|
376
|
-
|
377
328
|
if (this._isItemVisible(itemToOverflow)) {
|
378
329
|
itemWidth = this._breadcrumbItemWidths.get(itemToOverflow) || 0;
|
379
|
-
}
|
380
|
-
|
330
|
+
}
|
381
331
|
|
332
|
+
// move the item to the overflow
|
382
333
|
requiredWidth -= itemWidth;
|
383
334
|
overflowSize++;
|
384
335
|
}
|
336
|
+
this._overflowSize = overflowSize;
|
385
337
|
|
386
|
-
|
387
|
-
|
338
|
+
// if overflow was emptied while picker was open => close redundant popup
|
388
339
|
if (this._isOverflowEmpty && this._isPickerOpen) {
|
389
340
|
this.responsivePopover.close();
|
390
|
-
}
|
391
|
-
// ensure the first visible link is focusable
|
392
|
-
|
341
|
+
}
|
393
342
|
|
343
|
+
// if the last focused link has done into the overflow =>
|
344
|
+
// ensure the first visible link is focusable
|
394
345
|
const focusableItems = this._getFocusableItems();
|
395
|
-
|
396
346
|
if (!focusableItems.some(x => x._tabIndex === "0")) {
|
397
347
|
this._itemNavigation.setCurrentItem(focusableItems[0]);
|
398
348
|
}
|
399
349
|
}
|
400
|
-
|
401
350
|
_getElementWidth(element) {
|
402
351
|
if (element) {
|
403
352
|
return Math.ceil(element.getBoundingClientRect().width);
|
404
353
|
}
|
405
354
|
}
|
406
|
-
|
407
355
|
_getTotalContentWidth() {
|
408
356
|
const items = this.getSlottedNodes("items"),
|
409
|
-
|
410
|
-
|
357
|
+
widthsMap = this._breadcrumbItemWidths,
|
358
|
+
totalLinksWidth = items.reduce((sum, link) => sum + widthsMap.get(link), 0);
|
411
359
|
return totalLinksWidth;
|
412
360
|
}
|
413
|
-
|
414
361
|
_onLinkPress(event) {
|
415
362
|
const link = event.target,
|
416
|
-
|
417
|
-
|
418
|
-
|
363
|
+
items = this.getSlottedNodes("items"),
|
364
|
+
item = items.find(x => `${x._id}-link` === link.id);
|
419
365
|
if (!this.fireEvent("item-click", {
|
420
366
|
item,
|
421
367
|
...event.detail
|
@@ -423,21 +369,18 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
423
369
|
event.preventDefault();
|
424
370
|
}
|
425
371
|
}
|
426
|
-
|
427
372
|
_onLabelPress(event) {
|
428
373
|
const items = this.getSlottedNodes("items"),
|
429
|
-
|
374
|
+
item = items[items.length - 1];
|
430
375
|
this.fireEvent("item-click", {
|
431
376
|
item,
|
432
377
|
...event.detail
|
433
378
|
});
|
434
379
|
}
|
435
|
-
|
436
380
|
_onOverflowListItemSelect(event) {
|
437
381
|
const listItem = event.detail.selectedItems[0],
|
438
|
-
|
439
|
-
|
440
|
-
|
382
|
+
items = this.getSlottedNodes("items"),
|
383
|
+
item = items.find(x => `${x._id}-li` === listItem.id);
|
441
384
|
if (this.fireEvent("item-click", {
|
442
385
|
item
|
443
386
|
}, true)) {
|
@@ -445,137 +388,111 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
445
388
|
this.responsivePopover.close();
|
446
389
|
}
|
447
390
|
}
|
448
|
-
|
449
391
|
async _respPopover() {
|
450
392
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
451
393
|
return staticAreaItem.querySelector("[ui5-responsive-popover]");
|
452
394
|
}
|
453
|
-
|
454
395
|
async _toggleRespPopover() {
|
455
396
|
this.responsivePopover = await this._respPopover();
|
456
|
-
|
457
397
|
if (this._isPickerOpen) {
|
458
398
|
this._closeRespPopover();
|
459
399
|
} else {
|
460
400
|
this._openRespPopover();
|
461
401
|
}
|
462
402
|
}
|
463
|
-
|
464
403
|
async _closeRespPopover() {
|
465
404
|
this.responsivePopover && this.responsivePopover.close();
|
466
405
|
}
|
467
|
-
|
468
406
|
async _openRespPopover() {
|
469
407
|
this.responsivePopover = await this._respPopover();
|
470
408
|
this.responsivePopover.showAt(this._dropdownArrowLink);
|
471
409
|
}
|
472
|
-
|
473
410
|
_isItemVisible(item) {
|
474
411
|
return !item.hidden && this._hasVisibleContent(item);
|
475
412
|
}
|
476
|
-
|
477
413
|
_hasVisibleContent(item) {
|
478
414
|
// the check is not complete but may be extended in the future if needed to cover
|
479
415
|
// cases besides the standard (UX-recommended) ones
|
480
416
|
return item.innerText || Array.from(item.children).some(child => !child.hidden);
|
481
417
|
}
|
482
|
-
|
483
418
|
_preprocessItems() {
|
484
419
|
this.items.forEach(item => {
|
485
420
|
item._getRealDomRef = () => this.getDomRef().querySelector(`[data-ui5-stable*=${item.stableDomRef}]`);
|
486
421
|
});
|
487
422
|
}
|
488
|
-
|
489
423
|
_getItemPositionText(position, size) {
|
490
424
|
return Breadcrumbs.i18nBundle.getText(_i18nDefaults.BREADCRUMB_ITEM_POS, position, size);
|
491
425
|
}
|
492
|
-
|
493
426
|
_getItemAccessibleName(item, position, size) {
|
494
|
-
const positionText = this._getItemPositionText(position, size);
|
495
|
-
|
427
|
+
const positionText = this._getItemPositionText(position, size);
|
496
428
|
|
429
|
+
// innerText is needed as it is no longer read out when label is set
|
497
430
|
let text = "";
|
498
|
-
|
499
431
|
if (item.accessibleName) {
|
500
432
|
text = `${item.textContent.trim()} ${item.accessibleName} ${positionText}`;
|
501
433
|
} else {
|
502
434
|
text = `${item.textContent.trim()} ${positionText}`;
|
503
435
|
}
|
504
|
-
|
505
436
|
return text;
|
506
437
|
}
|
507
|
-
|
508
438
|
getCurrentLocationLabelWrapper() {
|
509
439
|
return this.shadowRoot.querySelector(".ui5-breadcrumbs-current-location > span");
|
510
440
|
}
|
511
|
-
|
512
441
|
get _visibleItems() {
|
513
442
|
return this.getSlottedNodes("items").slice(this._overflowSize).filter(i => this._isItemVisible(i));
|
514
443
|
}
|
515
|
-
|
516
444
|
get _endsWithCurrentLocationLabel() {
|
517
445
|
return this.design === _BreadcrumbsDesign.default.Standard;
|
518
446
|
}
|
519
|
-
|
520
447
|
get _currentLocationText() {
|
521
448
|
const items = this.getSlottedNodes("items");
|
522
|
-
|
523
449
|
if (this._endsWithCurrentLocationLabel && items.length) {
|
524
450
|
const item = items[items.length - 1];
|
525
|
-
|
526
451
|
if (this._isItemVisible(item)) {
|
527
452
|
return item.innerText;
|
528
453
|
}
|
529
454
|
}
|
530
|
-
|
531
455
|
return "";
|
532
456
|
}
|
533
|
-
|
534
457
|
get _currentLocationLabel() {
|
535
458
|
return this.shadowRoot.querySelector(".ui5-breadcrumbs-current-location [ui5-label]");
|
536
459
|
}
|
537
|
-
|
538
460
|
get _isDropdownArrowFocused() {
|
539
461
|
return this._dropdownArrowLink._tabIndex === "0";
|
540
462
|
}
|
541
|
-
|
542
463
|
get _isCurrentLocationLabelFocused() {
|
543
464
|
const label = this.getCurrentLocationLabelWrapper();
|
544
465
|
return label && label.tabIndex === 0;
|
545
466
|
}
|
467
|
+
|
546
468
|
/**
|
547
469
|
* Returns the maximum allowed count of items in the overflow
|
548
470
|
* with respect to the UX requirement to never overflow the last visible item
|
549
471
|
*/
|
550
|
-
|
551
|
-
|
552
472
|
get _maxAllowedOverflowSize() {
|
553
|
-
const items = this.getSlottedNodes("items").filter(item => this._isItemVisible(item));
|
554
|
-
|
473
|
+
const items = this.getSlottedNodes("items").filter(item => this._isItemVisible(item));
|
474
|
+
// all items except tha last visible one are allowed to overflow by UX requirement
|
555
475
|
return items.length - 1;
|
556
476
|
}
|
477
|
+
|
557
478
|
/**
|
558
479
|
* Getter for the interactive element that opens the overflow
|
559
480
|
* @private
|
560
481
|
*/
|
561
|
-
|
562
|
-
|
563
482
|
get _dropdownArrowLink() {
|
564
483
|
return this.shadowRoot.querySelector(".ui5-breadcrumbs-dropdown-arrow-link-wrapper [ui5-link]");
|
565
484
|
}
|
485
|
+
|
566
486
|
/**
|
567
487
|
* Getter for the list of abstract breadcrumb items to be rendered as list-items inside the overflow
|
568
488
|
*/
|
569
|
-
|
570
|
-
|
571
489
|
get _overflowItemsData() {
|
572
490
|
return this.getSlottedNodes("items").slice(0, this._overflowSize).filter(item => this._isItemVisible(item)).reverse();
|
573
491
|
}
|
492
|
+
|
574
493
|
/**
|
575
494
|
* Getter for the list of abstract breadcrumb items to be rendered as links outside the overflow
|
576
495
|
*/
|
577
|
-
|
578
|
-
|
579
496
|
get _linksData() {
|
580
497
|
const items = this._visibleItems;
|
581
498
|
const itemsCount = items.length; // get size before removing of current location
|
@@ -583,81 +500,62 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
583
500
|
if (this._endsWithCurrentLocationLabel) {
|
584
501
|
items.pop();
|
585
502
|
}
|
586
|
-
|
587
503
|
return items.map((item, index) => {
|
588
504
|
item._accessibleNameText = this._getItemAccessibleName(item, index + 1, itemsCount);
|
589
505
|
return item;
|
590
506
|
});
|
591
507
|
}
|
508
|
+
|
592
509
|
/**
|
593
510
|
* Getter for accessible name of the current location. Includes the position of the current location and the size of the breadcrumbs
|
594
511
|
*/
|
595
|
-
|
596
|
-
|
597
512
|
get _currentLocationAccName() {
|
598
513
|
const items = this._visibleItems;
|
599
|
-
|
600
514
|
const positionText = this._getItemPositionText(items.length, items.length);
|
601
|
-
|
602
515
|
const lastItem = items[items.length - 1];
|
603
|
-
|
604
516
|
if (!lastItem) {
|
605
517
|
return positionText;
|
606
518
|
}
|
607
|
-
|
608
519
|
if (lastItem.accessibleName) {
|
609
520
|
return `${lastItem.textContent.trim()} ${lastItem.accessibleName} ${positionText}`;
|
610
521
|
}
|
611
|
-
|
612
522
|
return `${lastItem.textContent.trim()} ${positionText}`;
|
613
523
|
}
|
524
|
+
|
614
525
|
/**
|
615
526
|
* Getter for the list of links corresponding to the abstract breadcrumb items
|
616
527
|
*/
|
617
|
-
|
618
|
-
|
619
528
|
get _links() {
|
620
529
|
return Array.from(this.shadowRoot.querySelectorAll(".ui5-breadcrumbs-link-wrapper [ui5-link]"));
|
621
530
|
}
|
622
|
-
|
623
531
|
get _isOverflowEmpty() {
|
624
532
|
return this._overflowItemsData.length === 0;
|
625
533
|
}
|
626
|
-
|
627
534
|
get _ariaHasPopup() {
|
628
535
|
if (!this._isOverflowEmpty) {
|
629
536
|
return "listbox";
|
630
537
|
}
|
631
|
-
|
632
538
|
return undefined;
|
633
539
|
}
|
634
|
-
|
635
540
|
get _isPickerOpen() {
|
636
541
|
return !!this.responsivePopover && this.responsivePopover.opened;
|
637
542
|
}
|
638
|
-
|
639
543
|
get _accessibleNameText() {
|
640
544
|
return Breadcrumbs.i18nBundle.getText(_i18nDefaults.BREADCRUMBS_ARIA_LABEL);
|
641
545
|
}
|
642
|
-
|
643
546
|
get _dropdownArrowAccessibleNameText() {
|
644
547
|
return Breadcrumbs.i18nBundle.getText(_i18nDefaults.BREADCRUMBS_OVERFLOW_ARIA_LABEL);
|
645
548
|
}
|
646
|
-
|
647
549
|
get _cancelButtonText() {
|
648
550
|
return Breadcrumbs.i18nBundle.getText(_i18nDefaults.BREADCRUMBS_CANCEL_BUTTON);
|
649
551
|
}
|
650
|
-
|
651
552
|
static get dependencies() {
|
652
553
|
return [_BreadcrumbsItem.default, _Link.default, _Label.default, _ResponsivePopover.default, _List.default, _StandardListItem.default, _Icon.default, _Button.default];
|
653
554
|
}
|
654
|
-
|
655
555
|
static async onDefine() {
|
656
556
|
Breadcrumbs.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
657
557
|
}
|
658
|
-
|
659
558
|
}
|
660
|
-
|
661
559
|
Breadcrumbs.define();
|
662
560
|
var _default = Breadcrumbs;
|
663
561
|
_exports.default = _default;
|
@@ -6,18 +6,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
6
6
|
});
|
7
7
|
_exports.default = void 0;
|
8
8
|
_UI5Element = _interopRequireDefault(_UI5Element);
|
9
|
-
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
|
-
|
12
10
|
/**
|
13
11
|
* @public
|
14
12
|
*/
|
15
13
|
const metadata = {
|
16
14
|
tag: "ui5-breadcrumbs-item",
|
17
15
|
managedSlots: true,
|
18
|
-
properties:
|
19
|
-
/** @lends sap.ui.webcomponents.main.BreadcrumbsItem.prototype */
|
20
|
-
{
|
16
|
+
properties: /** @lends sap.ui.webcomponents.main.BreadcrumbsItem.prototype */{
|
21
17
|
/**
|
22
18
|
* Defines the link href.
|
23
19
|
* <br><br>
|
@@ -30,7 +26,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
30
26
|
href: {
|
31
27
|
type: String
|
32
28
|
},
|
33
|
-
|
34
29
|
/**
|
35
30
|
* Defines the link target.
|
36
31
|
* <br><br>
|
@@ -53,7 +48,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
53
48
|
type: String,
|
54
49
|
defaultValue: undefined
|
55
50
|
},
|
56
|
-
|
57
51
|
/**
|
58
52
|
* Defines the accessible aria name of the item.
|
59
53
|
*
|
@@ -65,9 +59,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
65
59
|
type: String
|
66
60
|
}
|
67
61
|
},
|
68
|
-
slots:
|
69
|
-
/** @lends sap.ui.webcomponents.main.BreadcrumbsItem.prototype */
|
70
|
-
{
|
62
|
+
slots: /** @lends sap.ui.webcomponents.main.BreadcrumbsItem.prototype */{
|
71
63
|
/**
|
72
64
|
* Defines the text of the component.
|
73
65
|
* <br><br>
|
@@ -81,10 +73,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
81
73
|
type: Node
|
82
74
|
}
|
83
75
|
},
|
84
|
-
events:
|
85
|
-
/** @lends sap.ui.webcomponents.main.BreadcrumbsItem.prototype */
|
86
|
-
{}
|
76
|
+
events: /** @lends sap.ui.webcomponents.main.BreadcrumbsItem.prototype */{}
|
87
77
|
};
|
78
|
+
|
88
79
|
/**
|
89
80
|
* @class
|
90
81
|
*
|
@@ -101,18 +92,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
101
92
|
* @public
|
102
93
|
* @since 1.0.0-rc.15
|
103
94
|
*/
|
104
|
-
|
105
95
|
class BreadcrumbsItem extends _UI5Element.default {
|
106
96
|
static get metadata() {
|
107
97
|
return metadata;
|
108
98
|
}
|
109
|
-
|
110
99
|
get stableDomRef() {
|
111
100
|
return this.getAttribute("stable-dom-ref") || `${this._id}-stable-dom-ref`;
|
112
101
|
}
|
113
|
-
|
114
102
|
}
|
115
|
-
|
116
103
|
BreadcrumbsItem.define();
|
117
104
|
var _default = BreadcrumbsItem;
|
118
105
|
_exports.default = _default;
|