@openui5/sap.ui.webc.main 1.111.0 → 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
@@ -20,26 +20,25 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
20
20
|
_ListTemplate = _interopRequireDefault(_ListTemplate);
|
21
21
|
_List = _interopRequireDefault(_List);
|
22
22
|
_BrowserScrollbar = _interopRequireDefault(_BrowserScrollbar);
|
23
|
-
|
24
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
|
-
|
26
24
|
// Template
|
25
|
+
|
27
26
|
// Styles
|
27
|
+
|
28
28
|
// Texts
|
29
|
+
|
29
30
|
const INFINITE_SCROLL_DEBOUNCE_RATE = 250; // ms
|
30
31
|
|
31
32
|
const PAGE_UP_DOWN_SIZE = 10;
|
33
|
+
|
32
34
|
/**
|
33
35
|
* @public
|
34
36
|
*/
|
35
|
-
|
36
37
|
const metadata = {
|
37
38
|
tag: "ui5-list",
|
38
39
|
managedSlots: true,
|
39
40
|
fastNavigation: true,
|
40
|
-
slots:
|
41
|
-
/** @lends sap.ui.webcomponents.main.List.prototype */
|
42
|
-
{
|
41
|
+
slots: /** @lends sap.ui.webcomponents.main.List.prototype */{
|
43
42
|
/**
|
44
43
|
* Defines the component header.
|
45
44
|
* <br><br>
|
@@ -53,7 +52,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
53
52
|
header: {
|
54
53
|
type: HTMLElement
|
55
54
|
},
|
56
|
-
|
57
55
|
/**
|
58
56
|
* Defines the items of the component.
|
59
57
|
* <br><br>
|
@@ -68,9 +66,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
68
66
|
type: HTMLElement
|
69
67
|
}
|
70
68
|
},
|
71
|
-
properties:
|
72
|
-
/** @lends sap.ui.webcomponents.main.List.prototype */
|
73
|
-
{
|
69
|
+
properties: /** @lends sap.ui.webcomponents.main.List.prototype */{
|
74
70
|
/**
|
75
71
|
* Defines the component header text.
|
76
72
|
* <br><br>
|
@@ -83,7 +79,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
83
79
|
headerText: {
|
84
80
|
type: String
|
85
81
|
},
|
86
|
-
|
87
82
|
/**
|
88
83
|
* Defines the footer text.
|
89
84
|
*
|
@@ -94,7 +89,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
94
89
|
footerText: {
|
95
90
|
type: String
|
96
91
|
},
|
97
|
-
|
98
92
|
/**
|
99
93
|
* Determines whether the component is indented.
|
100
94
|
*
|
@@ -105,7 +99,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
105
99
|
indent: {
|
106
100
|
type: Boolean
|
107
101
|
},
|
108
|
-
|
109
102
|
/**
|
110
103
|
* Defines the mode of the component.
|
111
104
|
* <br><br>
|
@@ -120,7 +113,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
120
113
|
type: _ListMode.default,
|
121
114
|
defaultValue: _ListMode.default.None
|
122
115
|
},
|
123
|
-
|
124
116
|
/**
|
125
117
|
* Defines the text that is displayed when the component contains no items.
|
126
118
|
*
|
@@ -131,7 +123,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
131
123
|
noDataText: {
|
132
124
|
type: String
|
133
125
|
},
|
134
|
-
|
135
126
|
/**
|
136
127
|
* Defines the item separator style that is used.
|
137
128
|
* <br><br>
|
@@ -151,7 +142,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
151
142
|
type: _ListSeparators.default,
|
152
143
|
defaultValue: _ListSeparators.default.All
|
153
144
|
},
|
154
|
-
|
155
145
|
/**
|
156
146
|
* Defines whether the component will have growing capability either by pressing a <code>More</code> button,
|
157
147
|
* or via user scroll. In both cases <code>load-more</code> event is fired.
|
@@ -178,7 +168,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
178
168
|
type: _ListGrowingMode.default,
|
179
169
|
defaultValue: _ListGrowingMode.default.None
|
180
170
|
},
|
181
|
-
|
182
171
|
/**
|
183
172
|
* Defines if the component would display a loading indicator over the list.
|
184
173
|
*
|
@@ -190,7 +179,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
190
179
|
busy: {
|
191
180
|
type: Boolean
|
192
181
|
},
|
193
|
-
|
194
182
|
/**
|
195
183
|
* Defines the delay in milliseconds, after which the busy indicator will show up for this component.
|
196
184
|
*
|
@@ -202,7 +190,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
202
190
|
type: _Integer.default,
|
203
191
|
defaultValue: 1000
|
204
192
|
},
|
205
|
-
|
206
193
|
/**
|
207
194
|
* Defines the accessible name of the component.
|
208
195
|
*
|
@@ -214,7 +201,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
214
201
|
accessibleName: {
|
215
202
|
type: String
|
216
203
|
},
|
217
|
-
|
218
204
|
/**
|
219
205
|
* Defines the IDs of the elements that label the input.
|
220
206
|
*
|
@@ -227,7 +213,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
227
213
|
type: String,
|
228
214
|
defaultValue: ""
|
229
215
|
},
|
230
|
-
|
231
216
|
/**
|
232
217
|
* Defines the accessible role of the component.
|
233
218
|
* <br><br>
|
@@ -240,7 +225,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
240
225
|
type: String,
|
241
226
|
defaultValue: "list"
|
242
227
|
},
|
243
|
-
|
244
228
|
/**
|
245
229
|
* Defines if the entire list is in view port.
|
246
230
|
* @private
|
@@ -248,7 +232,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
248
232
|
_inViewport: {
|
249
233
|
type: Boolean
|
250
234
|
},
|
251
|
-
|
252
235
|
/**
|
253
236
|
* Defines the active state of the <code>More</code> button.
|
254
237
|
* @private
|
@@ -257,9 +240,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
257
240
|
type: Boolean
|
258
241
|
}
|
259
242
|
},
|
260
|
-
events:
|
261
|
-
/** @lends sap.ui.webcomponents.main.List.prototype */
|
262
|
-
{
|
243
|
+
events: /** @lends sap.ui.webcomponents.main.List.prototype */{
|
263
244
|
/**
|
264
245
|
* Fired when an item is activated, unless the item's <code>type</code> property
|
265
246
|
* is set to <code>Inactive</code>.
|
@@ -276,7 +257,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
276
257
|
}
|
277
258
|
}
|
278
259
|
},
|
279
|
-
|
280
260
|
/**
|
281
261
|
* Fired when the <code>Close</code> button of any item is clicked
|
282
262
|
* <br><br>
|
@@ -295,7 +275,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
295
275
|
}
|
296
276
|
}
|
297
277
|
},
|
298
|
-
|
299
278
|
/**
|
300
279
|
* Fired when the <code>Toggle</code> button of any item is clicked.
|
301
280
|
* <br><br>
|
@@ -313,7 +292,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
313
292
|
}
|
314
293
|
}
|
315
294
|
},
|
316
|
-
|
317
295
|
/**
|
318
296
|
* Fired when the Delete button of any item is pressed.
|
319
297
|
* <br><br>
|
@@ -331,7 +309,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
331
309
|
}
|
332
310
|
}
|
333
311
|
},
|
334
|
-
|
335
312
|
/**
|
336
313
|
* Fired when selection is changed by user interaction
|
337
314
|
* in <code>SingleSelect</code>, <code>SingleSelectBegin</code>, <code>SingleSelectEnd</code> and <code>MultiSelect</code> modes.
|
@@ -352,7 +329,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
352
329
|
selectionComponentPressed: {
|
353
330
|
type: Boolean
|
354
331
|
} // protected, indicates if the user used the selection components to change the selection
|
355
|
-
|
356
332
|
}
|
357
333
|
},
|
358
334
|
|
@@ -368,6 +344,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
368
344
|
"load-more": {}
|
369
345
|
}
|
370
346
|
};
|
347
|
+
|
371
348
|
/**
|
372
349
|
* @class
|
373
350
|
*
|
@@ -435,43 +412,40 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
435
412
|
* @appenddocs StandardListItem CustomListItem GroupHeaderListItem
|
436
413
|
* @public
|
437
414
|
*/
|
438
|
-
|
439
415
|
class List extends _UI5Element.default {
|
440
416
|
static get metadata() {
|
441
417
|
return metadata;
|
442
418
|
}
|
443
|
-
|
444
419
|
static get render() {
|
445
420
|
return _LitRenderer.default;
|
446
421
|
}
|
447
|
-
|
448
422
|
static get template() {
|
449
423
|
return _ListTemplate.default;
|
450
424
|
}
|
451
|
-
|
452
425
|
static get styles() {
|
453
426
|
return [_BrowserScrollbar.default, _List.default];
|
454
427
|
}
|
455
|
-
|
456
428
|
static async onDefine() {
|
457
429
|
List.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
458
430
|
}
|
459
|
-
|
460
431
|
static get dependencies() {
|
461
432
|
return [_BusyIndicator.default];
|
462
433
|
}
|
463
|
-
|
464
434
|
constructor() {
|
465
435
|
super();
|
466
|
-
this.initItemNavigation();
|
436
|
+
this.initItemNavigation();
|
467
437
|
|
468
|
-
|
438
|
+
// Stores the last focused item within the internal ul element.
|
439
|
+
this._previouslyFocusedItem = null;
|
469
440
|
|
441
|
+
// Indicates that the List is forwarding the focus before or after the internal ul.
|
470
442
|
this._forwardingFocus = false;
|
471
|
-
this._previouslySelectedItem = null;
|
443
|
+
this._previouslySelectedItem = null;
|
472
444
|
|
473
|
-
|
445
|
+
// Indicates that the List has already subscribed for resize.
|
446
|
+
this.resizeListenerAttached = false;
|
474
447
|
|
448
|
+
// Indicates if the IntersectionObserver started observing the List
|
475
449
|
this.listEndObserved = false;
|
476
450
|
this.addEventListener("ui5-_press", this.onItemPress.bind(this));
|
477
451
|
this.addEventListener("ui5-close", this.onItemClose.bind(this));
|
@@ -481,142 +455,110 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
481
455
|
this.addEventListener("ui5-_forward-before", this.onForwardBefore.bind(this));
|
482
456
|
this.addEventListener("ui5-_selection-requested", this.onSelectionRequested.bind(this));
|
483
457
|
this.addEventListener("ui5-_focus-requested", this.focusUploadCollectionItem.bind(this));
|
484
|
-
this._handleResize = this.checkListInViewport.bind(this);
|
485
|
-
// for the first time.
|
458
|
+
this._handleResize = this.checkListInViewport.bind(this);
|
486
459
|
|
460
|
+
// Indicates the List bottom most part has been detected by the IntersectionObserver
|
461
|
+
// for the first time.
|
487
462
|
this.initialIntersection = true;
|
488
463
|
}
|
489
|
-
|
490
464
|
onExitDOM() {
|
491
465
|
this.unobserveListEnd();
|
492
466
|
this.resizeListenerAttached = false;
|
493
|
-
|
494
467
|
_ResizeHandler.default.deregister(this.getDomRef(), this._handleResize);
|
495
468
|
}
|
496
|
-
|
497
469
|
onBeforeRendering() {
|
498
470
|
this.prepareListItems();
|
499
471
|
}
|
500
|
-
|
501
472
|
onAfterRendering() {
|
502
473
|
if (this.growsOnScroll) {
|
503
474
|
this.observeListEnd();
|
504
475
|
} else if (this.listEndObserved) {
|
505
476
|
this.unobserveListEnd();
|
506
477
|
}
|
507
|
-
|
508
478
|
if (this.grows) {
|
509
479
|
this.checkListInViewport();
|
510
480
|
this.attachForResize();
|
511
481
|
}
|
512
482
|
}
|
513
|
-
|
514
483
|
attachForResize() {
|
515
484
|
if (!this.resizeListenerAttached) {
|
516
485
|
this.resizeListenerAttached = true;
|
517
|
-
|
518
486
|
_ResizeHandler.default.register(this.getDomRef(), this._handleResize);
|
519
487
|
}
|
520
488
|
}
|
521
|
-
|
522
489
|
get shouldRenderH1() {
|
523
490
|
return !this.header.length && this.headerText;
|
524
491
|
}
|
525
|
-
|
526
492
|
get headerID() {
|
527
493
|
return `${this._id}-header`;
|
528
494
|
}
|
529
|
-
|
530
495
|
get modeLabelID() {
|
531
496
|
return `${this._id}-modeLabel`;
|
532
497
|
}
|
533
|
-
|
534
498
|
get listEndDOM() {
|
535
499
|
return this.shadowRoot.querySelector(".ui5-list-end-marker");
|
536
500
|
}
|
537
|
-
|
538
501
|
get hasData() {
|
539
502
|
return this.getSlottedNodes("items").length !== 0;
|
540
503
|
}
|
541
|
-
|
542
504
|
get showNoDataText() {
|
543
505
|
return !this.hasData && this.noDataText;
|
544
506
|
}
|
545
|
-
|
546
507
|
get isDelete() {
|
547
508
|
return this.mode === _ListMode.default.Delete;
|
548
509
|
}
|
549
|
-
|
550
510
|
get isSingleSelect() {
|
551
511
|
return [_ListMode.default.SingleSelect, _ListMode.default.SingleSelectBegin, _ListMode.default.SingleSelectEnd, _ListMode.default.SingleSelectAuto].includes(this.mode);
|
552
512
|
}
|
553
|
-
|
554
513
|
get isMultiSelect() {
|
555
514
|
return this.mode === _ListMode.default.MultiSelect;
|
556
515
|
}
|
557
|
-
|
558
516
|
get ariaLabelledBy() {
|
559
517
|
if (this.accessibleNameRef || this.accessibleName) {
|
560
518
|
return undefined;
|
561
519
|
}
|
562
|
-
|
563
520
|
const ids = [];
|
564
|
-
|
565
521
|
if (this.isMultiSelect || this.isSingleSelect || this.isDelete) {
|
566
522
|
ids.push(this.modeLabelID);
|
567
523
|
}
|
568
|
-
|
569
524
|
if (this.shouldRenderH1) {
|
570
525
|
ids.push(this.headerID);
|
571
526
|
}
|
572
|
-
|
573
527
|
return ids.length ? ids.join(" ") : undefined;
|
574
528
|
}
|
575
|
-
|
576
529
|
get ariaLabelTxt() {
|
577
530
|
return (0, _AriaLabelHelper.getEffectiveAriaLabelText)(this);
|
578
531
|
}
|
579
|
-
|
580
532
|
get ariaLabelModeText() {
|
581
533
|
if (this.isMultiSelect) {
|
582
534
|
return List.i18nBundle.getText(_i18nDefaults.ARIA_LABEL_LIST_MULTISELECTABLE);
|
583
535
|
}
|
584
|
-
|
585
536
|
if (this.isSingleSelect) {
|
586
537
|
return List.i18nBundle.getText(_i18nDefaults.ARIA_LABEL_LIST_SELECTABLE);
|
587
538
|
}
|
588
|
-
|
589
539
|
if (this.isDelete) {
|
590
540
|
return List.i18nBundle.getText(_i18nDefaults.ARIA_LABEL_LIST_DELETABLE);
|
591
541
|
}
|
592
|
-
|
593
542
|
return undefined;
|
594
543
|
}
|
595
|
-
|
596
544
|
get grows() {
|
597
545
|
return this.growing !== _ListGrowingMode.default.None;
|
598
546
|
}
|
599
|
-
|
600
547
|
get growsOnScroll() {
|
601
548
|
return this.growing === _ListGrowingMode.default.Scroll;
|
602
549
|
}
|
603
|
-
|
604
550
|
get growsWithButton() {
|
605
551
|
return this.growing === _ListGrowingMode.default.Button;
|
606
552
|
}
|
607
|
-
|
608
553
|
get _growingButtonText() {
|
609
554
|
return List.i18nBundle.getText(_i18nDefaults.LOAD_MORE_TEXT);
|
610
555
|
}
|
611
|
-
|
612
556
|
get busyIndPosition() {
|
613
557
|
if (!this.grows) {
|
614
558
|
return "absolute";
|
615
559
|
}
|
616
|
-
|
617
560
|
return this._inViewport ? "absolute" : "sticky";
|
618
561
|
}
|
619
|
-
|
620
562
|
get styles() {
|
621
563
|
return {
|
622
564
|
busyInd: {
|
@@ -624,7 +566,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
624
566
|
}
|
625
567
|
};
|
626
568
|
}
|
627
|
-
|
628
569
|
initItemNavigation() {
|
629
570
|
this._itemNavigation = new _ItemNavigation.default(this, {
|
630
571
|
skipItemsSize: PAGE_UP_DOWN_SIZE,
|
@@ -633,7 +574,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
633
574
|
getItemsCallback: () => this.getEnabledItems()
|
634
575
|
});
|
635
576
|
}
|
636
|
-
|
637
577
|
prepareListItems() {
|
638
578
|
const slottedItems = this.getSlottedNodes("items");
|
639
579
|
slottedItems.forEach((item, key) => {
|
@@ -644,7 +584,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
644
584
|
});
|
645
585
|
this._previouslySelectedItem = null;
|
646
586
|
}
|
647
|
-
|
648
587
|
async observeListEnd() {
|
649
588
|
if (!this.listEndObserved) {
|
650
589
|
await (0, _Render.renderFinished)();
|
@@ -652,7 +591,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
652
591
|
this.listEndObserved = true;
|
653
592
|
}
|
654
593
|
}
|
655
|
-
|
656
594
|
unobserveListEnd() {
|
657
595
|
if (this.growingIntersectionObserver) {
|
658
596
|
this.growingIntersectionObserver.disconnect();
|
@@ -660,33 +598,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
660
598
|
this.listEndObserved = false;
|
661
599
|
}
|
662
600
|
}
|
663
|
-
|
664
601
|
onInteresection(entries) {
|
665
602
|
if (this.initialIntersection) {
|
666
603
|
this.initialIntersection = false;
|
667
604
|
return;
|
668
605
|
}
|
669
|
-
|
670
606
|
entries.forEach(entry => {
|
671
607
|
if (entry.isIntersecting) {
|
672
608
|
(0, _debounce.default)(this.loadMore.bind(this), INFINITE_SCROLL_DEBOUNCE_RATE);
|
673
609
|
}
|
674
610
|
});
|
675
611
|
}
|
612
|
+
|
676
613
|
/*
|
677
614
|
* ITEM SELECTION BASED ON THE CURRENT MODE
|
678
615
|
*/
|
679
|
-
|
680
|
-
|
681
616
|
onSelectionRequested(event) {
|
682
617
|
const previouslySelectedItems = this.getSelectedItems();
|
683
618
|
let selectionChange = false;
|
684
619
|
this._selectionRequested = true;
|
685
|
-
|
686
620
|
if (this[`handle${this.mode}`]) {
|
687
621
|
selectionChange = this[`handle${this.mode}`](event.detail.item, event.detail.selected);
|
688
622
|
}
|
689
|
-
|
690
623
|
if (selectionChange) {
|
691
624
|
this.fireEvent("selection-change", {
|
692
625
|
selectedItems: this.getSelectedItems(),
|
@@ -696,134 +629,106 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
696
629
|
});
|
697
630
|
}
|
698
631
|
}
|
699
|
-
|
700
632
|
handleSingleSelect(item) {
|
701
633
|
if (item.selected) {
|
702
634
|
return false;
|
703
635
|
}
|
704
|
-
|
705
636
|
this.deselectSelectedItems();
|
706
637
|
item.selected = true;
|
707
638
|
return true;
|
708
639
|
}
|
709
|
-
|
710
640
|
handleSingleSelectBegin(item) {
|
711
641
|
return this.handleSingleSelect(item);
|
712
642
|
}
|
713
|
-
|
714
643
|
handleSingleSelectEnd(item) {
|
715
644
|
return this.handleSingleSelect(item);
|
716
645
|
}
|
717
|
-
|
718
646
|
handleSingleSelectAuto(item) {
|
719
647
|
return this.handleSingleSelect(item);
|
720
648
|
}
|
721
|
-
|
722
649
|
handleMultiSelect(item, selected) {
|
723
650
|
item.selected = selected;
|
724
651
|
return true;
|
725
652
|
}
|
726
|
-
|
727
653
|
handleDelete(item) {
|
728
654
|
this.fireEvent("item-delete", {
|
729
655
|
item
|
730
656
|
});
|
731
657
|
}
|
732
|
-
|
733
658
|
deselectSelectedItems() {
|
734
659
|
this.getSelectedItems().forEach(item => {
|
735
660
|
item.selected = false;
|
736
661
|
});
|
737
662
|
}
|
738
|
-
|
739
663
|
getSelectedItems() {
|
740
664
|
return this.getSlottedNodes("items").filter(item => item.selected);
|
741
665
|
}
|
742
|
-
|
743
666
|
getEnabledItems() {
|
744
667
|
return this.getSlottedNodes("items").filter(item => !item.disabled);
|
745
668
|
}
|
746
|
-
|
747
669
|
_onkeydown(event) {
|
748
670
|
if ((0, _Keys.isTabNext)(event)) {
|
749
671
|
this._handleTabNext(event);
|
750
672
|
}
|
751
673
|
}
|
752
|
-
|
753
674
|
_onLoadMoreKeydown(event) {
|
754
675
|
if ((0, _Keys.isSpace)(event)) {
|
755
676
|
event.preventDefault();
|
756
677
|
this._loadMoreActive = true;
|
757
678
|
}
|
758
|
-
|
759
679
|
if ((0, _Keys.isEnter)(event)) {
|
760
680
|
this._onLoadMoreClick();
|
761
|
-
|
762
681
|
this._loadMoreActive = true;
|
763
682
|
}
|
764
|
-
|
765
683
|
if ((0, _Keys.isTabNext)(event)) {
|
766
684
|
this.focusAfterElement();
|
767
685
|
}
|
768
|
-
|
769
686
|
if ((0, _Keys.isTabPrevious)(event)) {
|
770
687
|
if (this.getPreviouslyFocusedItem()) {
|
771
688
|
this.focusPreviouslyFocusedItem();
|
772
689
|
} else {
|
773
690
|
this.focusFirstItem();
|
774
691
|
}
|
775
|
-
|
776
692
|
event.preventDefault();
|
777
693
|
}
|
778
694
|
}
|
779
|
-
|
780
695
|
_onLoadMoreKeyup(event) {
|
781
696
|
if ((0, _Keys.isSpace)(event)) {
|
782
697
|
this._onLoadMoreClick();
|
783
698
|
}
|
784
|
-
|
785
699
|
this._loadMoreActive = false;
|
786
700
|
}
|
787
|
-
|
788
701
|
_onLoadMoreMousedown() {
|
789
702
|
this._loadMoreActive = true;
|
790
703
|
}
|
791
|
-
|
792
704
|
_onLoadMoreMouseup() {
|
793
705
|
this._loadMoreActive = false;
|
794
706
|
}
|
795
|
-
|
796
707
|
_onLoadMoreClick() {
|
797
708
|
this.loadMore();
|
798
709
|
}
|
799
|
-
|
800
710
|
checkListInViewport() {
|
801
711
|
this._inViewport = (0, _isElementInView.default)(this.getDomRef());
|
802
712
|
}
|
803
|
-
|
804
713
|
loadMore() {
|
805
714
|
this.fireEvent("load-more");
|
806
715
|
}
|
716
|
+
|
807
717
|
/*
|
808
718
|
* KEYBOARD SUPPORT
|
809
719
|
*/
|
810
|
-
|
811
|
-
|
812
720
|
_handleTabNext(event) {
|
813
721
|
// If forward navigation is performed, we check if the List has headerToolbar.
|
814
722
|
// If yes - we check if the target is at the last tabbable element of the headerToolbar
|
815
723
|
// to forward correctly the focus to the selected, previously focused or to the first list item.
|
816
724
|
let lastTabbableEl;
|
817
725
|
const target = this.getNormalizedTarget(event.target);
|
818
|
-
|
819
726
|
if (this.headerToolbar) {
|
820
727
|
lastTabbableEl = this.getHeaderToolbarLastTabbableElement();
|
821
728
|
}
|
822
|
-
|
823
729
|
if (!lastTabbableEl) {
|
824
730
|
return;
|
825
731
|
}
|
826
|
-
|
827
732
|
if (lastTabbableEl === target) {
|
828
733
|
if (this.getFirstItem(x => x.selected && !x.disabled)) {
|
829
734
|
this.focusFirstSelectedItem();
|
@@ -832,75 +737,62 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
832
737
|
} else {
|
833
738
|
this.focusFirstItem();
|
834
739
|
}
|
835
|
-
|
836
740
|
event.stopImmediatePropagation();
|
837
741
|
event.preventDefault();
|
838
742
|
}
|
839
743
|
}
|
840
|
-
|
841
744
|
_onfocusin(event) {
|
842
|
-
const target = this.getNormalizedTarget(event.target);
|
843
|
-
|
745
|
+
const target = this.getNormalizedTarget(event.target);
|
746
|
+
// If the focusin event does not origin from one of the 'triggers' - ignore it.
|
844
747
|
if (!this.isForwardElement(target)) {
|
845
748
|
event.stopImmediatePropagation();
|
846
749
|
return;
|
847
|
-
}
|
848
|
-
// If there is selected item - focus it or focus the first item.
|
849
|
-
|
750
|
+
}
|
850
751
|
|
752
|
+
// The focus arrives in the List for the first time.
|
753
|
+
// If there is selected item - focus it or focus the first item.
|
851
754
|
if (!this.getPreviouslyFocusedItem()) {
|
852
755
|
if (this.growsWithButton && this.isForwardAfterElement(target)) {
|
853
756
|
this.focusGrowingButton();
|
854
757
|
} else {
|
855
758
|
this.focusFirstItem();
|
856
759
|
}
|
857
|
-
|
858
760
|
event.stopImmediatePropagation();
|
859
761
|
return;
|
860
|
-
}
|
861
|
-
// focus the first selected item or the previously focused element.
|
862
|
-
|
762
|
+
}
|
863
763
|
|
764
|
+
// The focus returns to the List,
|
765
|
+
// focus the first selected item or the previously focused element.
|
864
766
|
if (!this.getForwardingFocus()) {
|
865
767
|
if (this.growsWithButton && this.isForwardAfterElement(target)) {
|
866
768
|
this.focusGrowingButton();
|
867
769
|
event.stopImmediatePropagation();
|
868
770
|
return;
|
869
771
|
}
|
870
|
-
|
871
772
|
this.focusPreviouslyFocusedItem();
|
872
773
|
event.stopImmediatePropagation();
|
873
774
|
}
|
874
|
-
|
875
775
|
this.setForwardingFocus(false);
|
876
776
|
}
|
877
|
-
|
878
777
|
isForwardElement(node) {
|
879
778
|
const nodeId = node.id;
|
880
779
|
const beforeElement = this.getBeforeElement();
|
881
|
-
|
882
780
|
if (this._id === nodeId || beforeElement && beforeElement.id === nodeId) {
|
883
781
|
return true;
|
884
782
|
}
|
885
|
-
|
886
783
|
return this.isForwardAfterElement(node);
|
887
784
|
}
|
888
|
-
|
889
785
|
isForwardAfterElement(node) {
|
890
786
|
const nodeId = node.id;
|
891
787
|
const afterElement = this.getAfterElement();
|
892
788
|
return afterElement && afterElement.id === nodeId;
|
893
789
|
}
|
894
|
-
|
895
790
|
onItemFocused(event) {
|
896
791
|
const target = event.target;
|
897
|
-
|
898
792
|
this._itemNavigation.setCurrentItem(target);
|
899
|
-
|
900
793
|
this.fireEvent("item-focused", {
|
901
794
|
item: target
|
902
795
|
});
|
903
|
-
|
904
796
|
if (this.mode === _ListMode.default.SingleSelectAuto) {
|
905
797
|
this.onSelectionRequested({
|
906
798
|
detail: {
|
@@ -912,16 +804,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
912
804
|
});
|
913
805
|
}
|
914
806
|
}
|
915
|
-
|
916
807
|
onItemPress(event) {
|
917
808
|
const pressedItem = event.detail.item;
|
918
|
-
|
919
809
|
if (!this.fireEvent("item-click", {
|
920
810
|
item: pressedItem
|
921
811
|
}, true)) {
|
922
812
|
return;
|
923
813
|
}
|
924
|
-
|
925
814
|
if (!this._selectionRequested && this.mode !== _ListMode.default.Delete) {
|
926
815
|
this._selectionRequested = true;
|
927
816
|
this.onSelectionRequested({
|
@@ -933,32 +822,27 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
933
822
|
}
|
934
823
|
});
|
935
824
|
}
|
936
|
-
|
937
825
|
this._selectionRequested = false;
|
938
|
-
}
|
939
|
-
|
826
|
+
}
|
940
827
|
|
828
|
+
// This is applicable to NoficationListItem
|
941
829
|
onItemClose(event) {
|
942
830
|
this.fireEvent("item-close", {
|
943
831
|
item: event.detail.item
|
944
832
|
});
|
945
833
|
}
|
946
|
-
|
947
834
|
onItemToggle(event) {
|
948
835
|
this.fireEvent("item-toggle", {
|
949
836
|
item: event.detail.item
|
950
837
|
});
|
951
838
|
}
|
952
|
-
|
953
839
|
onForwardBefore(event) {
|
954
840
|
this.setPreviouslyFocusedItem(event.target);
|
955
841
|
this.focusBeforeElement();
|
956
842
|
event.stopImmediatePropagation();
|
957
843
|
}
|
958
|
-
|
959
844
|
onForwardAfter(event) {
|
960
845
|
this.setPreviouslyFocusedItem(event.target);
|
961
|
-
|
962
846
|
if (!this.growsWithButton) {
|
963
847
|
this.focusAfterElement();
|
964
848
|
} else {
|
@@ -966,143 +850,112 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
966
850
|
event.preventDefault();
|
967
851
|
}
|
968
852
|
}
|
969
|
-
|
970
853
|
focusBeforeElement() {
|
971
854
|
this.setForwardingFocus(true);
|
972
855
|
this.getBeforeElement().focus();
|
973
856
|
}
|
974
|
-
|
975
857
|
focusAfterElement() {
|
976
858
|
this.setForwardingFocus(true);
|
977
859
|
this.getAfterElement().focus();
|
978
860
|
}
|
979
|
-
|
980
861
|
focusGrowingButton() {
|
981
862
|
const growingBtn = this.getGrowingButton();
|
982
|
-
|
983
863
|
if (growingBtn) {
|
984
864
|
growingBtn.focus();
|
985
865
|
}
|
986
866
|
}
|
987
|
-
|
988
867
|
getGrowingButton() {
|
989
868
|
return this.shadowRoot.querySelector(`#${this._id}-growing-btn`);
|
990
869
|
}
|
870
|
+
|
991
871
|
/**
|
992
872
|
* Focuses the first list item and sets its tabindex to "0" via the ItemNavigation
|
993
873
|
* @protected
|
994
874
|
*/
|
995
|
-
|
996
|
-
|
997
875
|
focusFirstItem() {
|
998
876
|
// only enabled items are focusable
|
999
877
|
const firstItem = this.getFirstItem(x => !x.disabled);
|
1000
|
-
|
1001
878
|
if (firstItem) {
|
1002
879
|
firstItem.focus();
|
1003
880
|
}
|
1004
881
|
}
|
1005
|
-
|
1006
882
|
focusPreviouslyFocusedItem() {
|
1007
883
|
const previouslyFocusedItem = this.getPreviouslyFocusedItem();
|
1008
|
-
|
1009
884
|
if (previouslyFocusedItem) {
|
1010
885
|
previouslyFocusedItem.focus();
|
1011
886
|
}
|
1012
887
|
}
|
1013
|
-
|
1014
888
|
focusFirstSelectedItem() {
|
1015
889
|
// only enabled items are focusable
|
1016
890
|
const firstSelectedItem = this.getFirstItem(x => x.selected && !x.disabled);
|
1017
|
-
|
1018
891
|
if (firstSelectedItem) {
|
1019
892
|
firstSelectedItem.focus();
|
1020
893
|
}
|
1021
894
|
}
|
895
|
+
|
1022
896
|
/**
|
1023
897
|
* Focuses a list item and sets its tabindex to "0" via the ItemNavigation
|
1024
898
|
* @protected
|
1025
899
|
* @param item
|
1026
900
|
*/
|
1027
|
-
|
1028
|
-
|
1029
901
|
focusItem(item) {
|
1030
902
|
this._itemNavigation.setCurrentItem(item);
|
1031
|
-
|
1032
903
|
item.focus();
|
1033
904
|
}
|
1034
|
-
|
1035
905
|
focusUploadCollectionItem(event) {
|
1036
906
|
setTimeout(() => {
|
1037
907
|
this.setPreviouslyFocusedItem(event.target);
|
1038
908
|
this.focusPreviouslyFocusedItem();
|
1039
909
|
}, 0);
|
1040
910
|
}
|
1041
|
-
|
1042
911
|
setForwardingFocus(forwardingFocus) {
|
1043
912
|
this._forwardingFocus = forwardingFocus;
|
1044
913
|
}
|
1045
|
-
|
1046
914
|
getForwardingFocus() {
|
1047
915
|
return this._forwardingFocus;
|
1048
916
|
}
|
1049
|
-
|
1050
917
|
setPreviouslyFocusedItem(item) {
|
1051
918
|
this._previouslyFocusedItem = item;
|
1052
919
|
}
|
1053
|
-
|
1054
920
|
getPreviouslyFocusedItem() {
|
1055
921
|
return this._previouslyFocusedItem;
|
1056
922
|
}
|
1057
|
-
|
1058
923
|
getFirstItem(filter) {
|
1059
924
|
const slottedItems = this.getSlottedNodes("items");
|
1060
925
|
let firstItem = null;
|
1061
|
-
|
1062
926
|
if (!filter) {
|
1063
927
|
return !!slottedItems.length && slottedItems[0];
|
1064
928
|
}
|
1065
|
-
|
1066
929
|
for (let i = 0; i < slottedItems.length; i++) {
|
1067
930
|
if (filter(slottedItems[i])) {
|
1068
931
|
firstItem = slottedItems[i];
|
1069
932
|
break;
|
1070
933
|
}
|
1071
934
|
}
|
1072
|
-
|
1073
935
|
return firstItem;
|
1074
936
|
}
|
1075
|
-
|
1076
937
|
getAfterElement() {
|
1077
938
|
if (!this._afterElement) {
|
1078
939
|
this._afterElement = this.shadowRoot.querySelector(`#${this._id}-after`);
|
1079
940
|
}
|
1080
|
-
|
1081
941
|
return this._afterElement;
|
1082
942
|
}
|
1083
|
-
|
1084
943
|
getBeforeElement() {
|
1085
944
|
if (!this._beforeElement) {
|
1086
945
|
this._beforeElement = this.shadowRoot.querySelector(`#${this._id}-before`);
|
1087
946
|
}
|
1088
|
-
|
1089
947
|
return this._beforeElement;
|
1090
948
|
}
|
1091
|
-
|
1092
949
|
getHeaderToolbarLastTabbableElement() {
|
1093
950
|
return (0, _TabbableElements.getLastTabbableElement)(this.headerToolbar.getDomRef()) || this.headerToolbar.getDomRef();
|
1094
951
|
}
|
1095
|
-
|
1096
952
|
getNormalizedTarget(target) {
|
1097
953
|
let focused = target;
|
1098
|
-
|
1099
954
|
if (target.shadowRoot && target.shadowRoot.activeElement) {
|
1100
955
|
focused = target.shadowRoot.activeElement;
|
1101
956
|
}
|
1102
|
-
|
1103
957
|
return focused;
|
1104
958
|
}
|
1105
|
-
|
1106
959
|
getIntersectionObserver() {
|
1107
960
|
if (!this.growingIntersectionObserver) {
|
1108
961
|
this.growingIntersectionObserver = new IntersectionObserver(this.onInteresection.bind(this), {
|
@@ -1111,12 +964,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1111
964
|
threshold: 1.0
|
1112
965
|
});
|
1113
966
|
}
|
1114
|
-
|
1115
967
|
return this.growingIntersectionObserver;
|
1116
968
|
}
|
1117
|
-
|
1118
969
|
}
|
1119
|
-
|
1120
970
|
List.define();
|
1121
971
|
var _default = List;
|
1122
972
|
_exports.default = _default;
|